/* =========================================================================
   Alexi theme — the whole stylesheet.
   Values match what Astra was rendering on alexsmyrk.com (Sep 2026).
   Colours: assets/tokens.css (1.2.0; palette consolidated 1.2.1) — the one place the palette lives.
   ========================================================================= */

:root {
	/* 1.2.0: colours come from assets/tokens.css (loaded before this file);
	   the short names below are aliases so the rules in this file read easily.
	   Change colours THERE, not here. */
	--font: "Lexend Deca", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--text: var(--alexi-text);
	--heading: var(--alexi-heading);
	--muted: var(--alexi-text-muted);
	--link: var(--alexi-link);
	--link-hover: var(--alexi-heading);
	--bg: var(--alexi-ground);
	--surface: var(--alexi-surface);
	--border: var(--alexi-border);
	--border-strong: var(--alexi-border-strong);
	--accent: var(--alexi-link);
	--container: 1240px;
	--gutter: 20px;
	--header-h: 81px;
	--radius: 4px;
	/* 1.1.0: ONE size for the site title and everything hanging off it (the
	   ASC Login "Login" / "Logout" word is sized in em from this). Change it here. */
	--title-size: 34px; /* 1.2.8 (Alex, 1 Oct 2026): "reduce the font size" — back to 34px (41px in 1.2.2–1.2.7); ASC Login's padlock circle beside it is sized in em of this */
}

/* --- Reset (light) ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
/* 1rem = 18px, as Astra set it. The ASC plugin CSS is written in rem, so this
   keeps every plugin size and spacing exactly as it was. Theme sizes are in px. */
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* 1.1.1: the header is sticky, so a jump to an anchor (e.g. /#register from the
   login panel's Register link) must stop below it, not under it. */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 18px;
	line-height: 1.65;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
img, video, iframe, svg { max-width: 100%; height: auto; }
img { display: inline-block; vertical-align: middle; }
iframe { border: 0; }
figure { margin: 0 0 1.5em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
pre, code, kbd, samp { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
pre { padding: 1em; background: var(--surface); overflow: auto; border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; margin: 0 0 1.5em; }
th, td { padding: 0.5em 0.75em; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--heading); font-weight: 500; } /* 1.2.7: 500 (was 600) */
blockquote { margin: 0 0 1.5em; padding: 0.25em 0 0.25em 1.25em; border-left: 3px solid var(--border-strong); color: var(--muted); }

/* --- Type --------------------------------------------------------------- */
/* 1.2.7 (Alex, 30 Sep 2026): "all headings fine, not bold or heavy — a very
   refined style". h1–h3 are 300, the same fine weight as the site title
   (1.2.5); h4–h6 sit at body size, so they stay 400 (300 there would be
   lighter than the text under them) and read as headings by colour alone.
   Lexend Deca is self-hosted as a variable font, so 300 is a real weight,
   not browser-thinned. */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font);
	color: var(--heading);
	font-weight: 300;
	line-height: 1.2;
	margin: 0 0 0.6em;
}
h1 { font-size: 32px; }
h2 { font-size: 20px; }
/* 1.2.11–1.2.12 (Alex, 4 Oct 2026): home page section headings as on the Home Page
   Tiles mockup — larger, with a hairline rule in ink under each section title. */
.home .entry-content .wp-block-group > h2.wp-block-heading,
.home .entry-content .wp-block-group > .wp-block-group__inner-container > h2.wp-block-heading {
	font-size: 26px;
	padding-bottom: 6px;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--alexi-ink);
}
h3 { font-size: 18px; }
h4, h5, h6 { font-size: 18px; font-weight: 400; }
p, ul, ol { margin: 0 0 1.5em; }
ul, ol { padding-left: 1.5em; }
li { margin-bottom: 0.25em; }
a { color: var(--link); text-decoration: none; }
a:hover, a:focus { color: var(--link-hover); text-decoration: none; }

/* Link hover = the plugin's "you are here" pale BLUE (1.1.5, 28 Sep 2026 — was the
   pale green #eaf3de / #173404; same tint as the current curriculum section and the
   Apartment Details / Exercise pills, asc-framework 0.80.9+).
   :where() gives these rules zero specificity, so any link that styles its own
   background or padding (buttons, pills, menu items) wins without a fight. */
/* Geometry (padding + cancelling margin) only for plain, unclassed links — on a
   classed link the plugin may set one but not the other and the text shifts. */
:where(a:not([class])) {
	padding: 0.05em 0.25em;
	margin: 0 -0.25em;
	border-radius: 4px;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}
:where(a) { transition: background-color 0.15s; }
:where(a:hover, a:focus-visible) {
	background-color: var(--alexi-tint);
	color: var(--alexi-tint-ink);
}
.site-title a, .main-header-menu a { padding-top: 0; padding-bottom: 0; margin: 0; border-radius: 0; }
.site-title a:hover, .site-title a:focus-visible,
.main-header-menu a:hover, .main-header-menu a:focus-visible { background: none; }

/* Curriculum sidebar: the plugin hovers clips in a grey-blue tint; use the
   same pale tint as the current section instead (Alex, 25 Sep 2026; blue since 1.1.5). */
.asc-side-lesson a:hover,
.asc-side-section > summary:hover { background: var(--alexi-tint); }
.asc-side-lesson.is-current a:hover { background: transparent; }

/* Course title in the sidebar is a heading first: no tinted block, just the
   plugin's own colour change on hover. */
.asc-side-course:hover, .asc-side-course:focus-visible,
.asc-page-course:hover, .asc-page-course:focus-visible { background: none; color: var(--alexi-accent); }

/* My Courses (asc-reports): the title h3 clips overflow for its ellipsis, which
   also clipped the hover highlight. Move the ellipsis onto the link itself. */
.asc-rep-course .asc-rep-body .asc-rep-title { overflow: visible; }
.asc-rep-col .asc-rep-title a {
	display: inline-block;
	max-width: calc(100% + 0.6em);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: bottom;
	padding: 0.1em 0.3em;
	margin: 0 -0.3em;
	border-radius: 6px;
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
strong, b { font-weight: 600; }

/* --- Layout ------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: var(--container);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}
.container-narrow { max-width: 800px; margin-left: auto; margin-right: auto; }
#page { display: flex; flex-direction: column; min-height: 100vh; }
#content { flex: 1 0 auto; }
.site-main { padding-top: 24px; padding-bottom: 48px; } /* 1.2.10 (Alex, 1 Oct 2026, My Courses on a phone: the gap under the header "is a waste of space"): 24/48 (was 40/60); 12/32 on phones below */
.entry-content > *:last-child { margin-bottom: 0; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
	border: 0; white-space: nowrap;
}
.skip-link { left: -9999px; top: 0; z-index: 1000; background: var(--heading); color: #fff; padding: 0.5em 1em; }
.skip-link:focus { left: 8px; top: 8px; width: auto; height: auto; clip: auto; clip-path: none; }

/* --- Header ------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 99;
	background: var(--bg);
	border-bottom: 1px solid var(--border);
}
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* 1.1.0 (Alex, 26 Sep 2026): the site title sits in the CENTRE of the nav bar on
   every device and every page, with the ASC Login word (Login / Logout) flush right of it.
   Three columns: the outer two share the spare width equally, so the title is
   dead centre whenever there is room; when the right column's content (the
   desktop menu) needs more, it keeps its min-content and the title shifts
   left rather than colliding. --lane-l and
   --lane-r are the room reserved at the edges on course/lesson pages for the
   plugin's pull tabs (Clips on the left, Notes on the right). */
.header-inner {
	display: grid;
	/* 1.1.2: the outer columns' minimum is "auto" (their content) unless a lane
	   is set — with 0px the menu simply overflowed onto the title when it had
	   less than its share (seen with the Notes panel docked). */
	grid-template-columns: minmax(var(--lane-l, auto), 1fr) auto minmax(var(--lane-r, auto), 1fr);
	align-items: center;
	gap: 0;
	min-height: var(--header-h);
}
.site-branding {
	grid-column: 2;
	display: flex; align-items: center; justify-content: center;
	min-width: 0; padding: 0 8px;
	font-size: var(--title-size);
	position: relative;
}
/* 1.1.4 (Alex, 26 Sep 2026, from a phone screenshot): the title AND the door
   icon are centred together as one pair. 1.1.3 briefly parked the icon outside
   the flow so the word alone was dead centre — that looked lopsided ("the
   login/logout link doesn't appear to be centred"). The pair is what reads as
   centred; the ~30px the word sits left of true centre is invisible. */
.site-title { margin: 0; font-size: 1em; font-weight: 300; line-height: 1.2; white-space: nowrap; } /* 1.2.5 (Alex, 29 Sep 2026): "all text very fine" — 300 (was 500 in 1.2.2, 600 before); the dash and padlock ASC Login 1.12.5 prints beside it are fine to match */
.site-title a { color: var(--heading); text-decoration: none; }
.site-title a:hover { color: var(--link); }
.custom-logo-link { display: inline-flex; line-height: 0; }
.custom-logo { max-height: 48px; width: auto; }

/* Menu — 1.1.2: NOT printed any more (header.php no longer calls wp_nav_menu;
   Alex: no menu items in the nav bar, "there will be none"). The rules are kept
   dormant in case a menu is ever put back. */
.main-navigation { grid-column: 3; justify-self: end; display: flex; align-items: center; }
.main-header-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0; }
.main-header-menu li { position: relative; margin: 0; }
.main-header-menu a {
	display: inline-flex;
	align-items: center;
	padding: 0 15px;
	line-height: var(--header-h);
	color: var(--text);
	font-size: 18px;
	text-decoration: none;
	white-space: nowrap; /* 1.1.2: a short column must move the title, not break "My Details" in two */
}
.main-header-menu a:hover,
.main-header-menu a:focus,
.main-header-menu .current-menu-item > a,
.main-header-menu .current-menu-ancestor > a { color: var(--muted); text-decoration: none; }

/* Parent item with chevron */
.main-header-menu .menu-item-has-children > a { padding-right: 6px; }
.submenu-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 28px; height: 28px; margin-right: 8px;
	border: 0; background: none; color: var(--text); cursor: pointer;
	transition: transform 0.15s;
}
.submenu-toggle[aria-expanded="true"] { transform: rotate(180deg); }

/* Dropdown */
.main-header-menu .sub-menu {
	list-style: none; margin: 0; padding: 6px 0;
	position: absolute; top: 100%; left: 0;
	min-width: 240px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
	opacity: 0; visibility: hidden; transform: translateY(4px);
	transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.main-header-menu .sub-menu a { display: block; padding: 8px 18px; line-height: 1.5; white-space: nowrap; }
.main-header-menu .sub-menu a:hover { background: var(--surface); color: var(--heading); }
.main-header-menu li:hover > .sub-menu,
.main-header-menu li:focus-within > .sub-menu,
.main-header-menu li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }

/* Last item (Login / Log out): ASC Login draws its own divider, so none here */
.main-header-menu > li:last-child a { padding-right: 0; }

/* Hamburger: removed in 1.1.0 (Alex: no burger menu anywhere). */

/* Mobile menu (below 921px, same breakpoint Astra used) */
/* 1.2.13 (Alex, 15 Oct 2026: "have the LEAVE link render below the site title on
   mobiles? There is not enough room"): on phones the pair STACKS — title on top, the
   ASC Login word (ENTER / LEAVE) centred under it (ASC Login 1.13.5 drops the word's
   side margin and shortens its tap box there). The bar grows to fit; the login
   panel and the plugin's pull tabs measure the header, --header-h follows for the
   anchor scroll margin. Tablets (601px+) keep the side-by-side pair. */
@media (max-width: 600px) {
	:root { --header-h: 76px; }
	.header-inner { min-height: 76px; }
	.site-branding { flex-direction: column; gap: 0; padding: 8px 8px 4px; }
}
@media (max-width: 921px) {
	:root { --header-h: 64px; }
	.header-inner { min-height: 64px; }
	/* 1.2.2: 20% bigger here too (28 → 34px), but on course pages the pair
	   "alexi – Logout" must fit between the Clips and Notes tabs: the middle
	   column is only 187px on a 375px phone, 202px on 390px. So the size
	   follows the viewport — 24px at 375, 25px at 390, 27.5px at 430, and the
	   full 34px from ~530px up (tablets). Measured in the real Lexend Deca with the 1.12.4 padlock + word (1.2.4). */
	.site-branding { --title-size: clamp(22px, 6vw, 30px); } /* 1.2.8: scaled down with the desktop size (41→34); no dash now, so the pair "alexi.cz ●" still fits between the Clips and Notes tabs */ /* 1.2.5: the pair is now "alexi.cz – 🔒" (no word), so a touch bigger fits: 25.5px at 375, 26.5 at 390, 29 at 430, 34 from 500px */
	/* 1.1.0: with no hamburger the menu simply isn't shown below 921px. The
	   drawer rules below are kept so nav.js still has something sane to toggle
	   if a toggle is ever put back. */
	.main-navigation {
		display: none;
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--bg);
		border-bottom: 1px solid var(--border);
		box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
		max-height: calc(100vh - 64px); overflow-y: auto;
	}
	.main-navigation.is-open { display: block; }
	.main-header-menu { flex-direction: column; align-items: stretch; padding: 8px 0; }
	.main-header-menu li { border-top: 1px solid var(--border); }
	.main-header-menu li:first-child { border-top: 0; }
	.main-header-menu a { display: flex; justify-content: space-between; padding: 12px var(--gutter); line-height: 1.4; }
	.main-header-menu .menu-item-has-children { display: flex; flex-wrap: wrap; }
	.main-header-menu .menu-item-has-children > a { flex: 1; }
	.submenu-toggle { width: 48px; height: 48px; margin: 0; }
	.main-header-menu .sub-menu {
		position: static; width: 100%; min-width: 0;
		border: 0; border-radius: 0; box-shadow: none; padding: 0 0 4px;
		background: var(--surface);
		display: none; opacity: 1; visibility: visible; transform: none;
	}
	.main-header-menu li.is-open > .sub-menu { display: block; }
	.main-header-menu li:hover > .sub-menu:not(.is-open) { display: none; }
	.main-header-menu li.is-open:hover > .sub-menu { display: block; }
	.main-header-menu .sub-menu a { padding-left: calc(var(--gutter) + 16px); white-space: normal; }
	.main-header-menu > li:last-child a { padding-right: var(--gutter); }
}

/* --- Footer ------------------------------------------------------------- */
.site-footer {
	border-top: 1px solid var(--border);
	padding: 24px 0;
	text-align: center;
	font-size: 16px;
	color: var(--text);
}
.site-copyright { margin: 0; }
/* 1.2.14: footer menu (Appearance → Menus → "Footer Menu"), a centred row of
   links above the copyright line; hovers in the site tint like any text link. */
.footer-nav { margin-bottom: 12px; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.footer-menu a { display: inline-block; padding: 0.15em 0.5em; border-radius: 4px; color: var(--text); white-space: nowrap; }
.footer-menu a:hover, .footer-menu a:focus-visible { background-color: var(--alexi-tint); color: var(--alexi-tint-ink); }

/* --- Blog bits ---------------------------------------------------------- */
.page-header { margin-bottom: 1.5em; }
.entry-header { margin-bottom: 1.5em; }
.entry-title a { color: var(--heading); }
.entry-meta { color: var(--muted); font-size: 16px; margin: -0.4em 0 1em; }
.entry-thumbnail img { border-radius: var(--radius); }
.entry-summary { padding: 1.5em 0; border-top: 1px solid var(--border); }
.entry-summary:first-child { border-top: 0; padding-top: 0; }
.entry-summary .entry-title { font-size: 22px; margin-bottom: 0.3em; }
.entry-excerpt p:last-child { margin-bottom: 0; }
.entry-footer { margin-top: 2em; font-size: 16px; color: var(--muted); }
.post-navigation { margin: 3em 0 0; padding-top: 1.5em; border-top: 1px solid var(--border); }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 1em; }
.pagination .nav-links { display: flex; gap: 0.5em; justify-content: center; margin-top: 2em; flex-wrap: wrap; }
.page-numbers { padding: 0.4em 0.8em; border: 1px solid var(--border); border-radius: var(--radius); }
.page-numbers.current { background: var(--surface); color: var(--heading); }
.archive-description { color: var(--muted); }
.comments-area { margin-top: 3em; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 2em; }
.comment-body { padding: 1em 0; border-top: 1px solid var(--border); }
.comment-meta { font-size: 16px; color: var(--muted); }
.comment-content p:last-child { margin-bottom: 0; }

/* --- Forms & buttons ---------------------------------------------------- */
input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], input[type="tel"], textarea, select {
	font: inherit;
	color: var(--text);
	background: var(--bg);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius);
	padding: 0.5em 0.75em;
	max-width: 100%;
}
textarea { width: 100%; }
button, input[type="submit"], input[type="button"], .wp-block-button__link, .wp-element-button {
	font: inherit;
	line-height: 1; /* not the body's 1.65 — plugin buttons (Play clip etc.) inherit this */
	cursor: pointer;
}
.search-form { display: flex; gap: 0.5em; max-width: 480px; }
.search-form label { flex: 1; }
.search-field { width: 100%; }
.search-submit, .comment-form .submit {
	background: var(--accent); color: #fff; border: 0;
	border-radius: var(--radius); padding: 0.5em 1.1em;
}
.search-submit:hover, .comment-form .submit:hover { background: var(--heading); }
.wp-block-button__link, .wp-element-button {
	background: var(--accent); color: #fff; border: 0;
	border-radius: var(--radius); padding: 0.6em 1.3em; text-decoration: none; display: inline-block;
}
.wp-block-button__link:hover, .wp-element-button:hover { background: var(--heading); color: #fff; text-decoration: none; }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--accent); border: 2px solid currentColor; }

/* --- Block editor alignment (minimal) ----------------------------------- */
.alignwide { max-width: var(--container); margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.alignleft { float: left; margin: 0.25em 1.5em 1em 0; }
.alignright { float: right; margin: 0.25em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-block-embed__wrapper, .wp-block-embed iframe { max-width: 100%; }
.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper::before { content: ""; display: block; padding-top: 56.25%; }
.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper { position: relative; }
.wp-embed-responsive .wp-has-aspect-ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* --- ASC course/lesson pages ------------------------------------------ */
/* Lanes for the plugin's pull tabs, which sit flush against the screen edges
   level with the nav bar. Notes (right, ~86px wide, at every width): on a
   desktop the menu keeps clear of it. Below 921px (no menu, no hamburger) the
   bar is Clips › · title + padlock · ‹ Notes, so the grid's outer columns just
   reserve the lanes: 84px on the right (the Notes tab's 86px minus the
   10px gutter, plus an 8px gap) and, below 880px where the Clips tab exists
   (asc-framework 0.79.1), the same sum on the left from the width the plugin
   declares for it (--asc-cur-pull-w, 86px from the screen edge). Equal lanes,
   so the title sits dead centre at every phone width. */
body.asc-fe-page .main-navigation { padding-right: var(--asn-pull-w, 96px); }
@media (max-width: 921px) {
	body.asc-fe-page .main-navigation { padding-right: 0; }
	body.asc-fe-page .header-inner { --lane-r: calc(var(--asn-pull-w, 96px) - 12px); }
}
@media (max-width: 880px) {
	body.asc-fe-page .header-inner { --lane-l: calc(var(--asc-cur-pull-w, 86px) - var(--gutter) + 8px); }
}

/* 1.1.2 (Alex, 26 Sep 2026): the site title floats in the centre of the SCREEN,
   not in the centre of what is left beside the Notes panel. From 1200px up the
   plugin docks the panel by giving #page a right margin (--asn-w, 360px), which
   squeezed the header too and pulled the title 180px left. The header alone
   cancels that margin, so it stays screen-wide behind the panel (which is
   fixed, above it) and its container — and the title — keep centring on the
   viewport. With no menu in the bar (1.1.2) nothing needs to keep clear of the
   panel, so the title is dead centre at every width. Same easing as the
   plugin's #page shift so the two move together; no animation on the first
   frame, like the plugin. */
@media (min-width: 1200px) {
	.site-header { transition: margin-right .3s cubic-bezier(.4, 0, .2, 1); }
	html.asc-notes-noanim .site-header { transition: none !important; }
	.asc-notes-open .site-header { margin-right: calc(-1 * var(--asn-w, 360px)); }
}
/* 1.2.6 (Alex, 29 Sep 2026: "have the site title and padlock float in the
   middle of the header no matter which page is loaded"): the same trick on the
   LEFT for the curriculum bar. From 881px up asc-framework (0.80.0) fixes the
   bar at the screen's left edge and gives #page a matching left margin
   (--asc-side-w, 324px), which squeezed the header and centred the title in the
   space beside the bar, 162px right of the screen's centre. The header alone
   cancels that margin too, so it runs screen-wide under the bar (fixed, z-index
   100, above the header's 99) and the title centres on the viewport on course
   pages exactly as on every other page — with or without the Notes panel
   docked (both margins cancel, the header spans the whole screen). The left
   lane keeps the title's own column clear of the bar: when a window is too
   narrow for true centring the pair shifts right rather than under the bar. */
@media (min-width: 881px) {
	body.asc-fe-page .site-header { margin-left: calc(-1 * var(--asc-side-w, 324px)); }
	body.asc-fe-page .header-inner { --lane-l: calc(var(--asc-side-w, 324px) + 8px); }
}

/* Phones: the narrow gutter Astra used (0.54em ≈ 10px), which the plugin's
   edge-to-edge page head and video rely on. */
@media (max-width: 768px) {
	:root { --gutter: 10px; }
	.site-main { padding-top: 12px; padding-bottom: 32px; } /* 1.2.10 */
}

/* --- Third-party plugin output (1.2.15, 30 Oct 2026) -------------------------
   Moved here from Customizer → Additional CSS so every style lives in the theme.
   These dress markup the theme does not produce: Fluent Forms, Ninja Tables and
   the Complianz banner. (The popup × focus-ring override that was there too is
   gone: ASC Framework 0.93.9 fixed it in popup.js.) */

/* My details popup — Fluent Forms "My Details Display" (form 5) inside #my-details,
   styled as a profile card (21 Oct 2026). */
#my-details .fluentform_wrapper_5 { padding: 1rem 2rem 1.5rem; }
#my-details .fluentform_wrapper_5 .ff-el-group { margin-bottom: .4rem; }
#my-details .fluentform_wrapper_5 .ff-t-container { gap: 0 2rem; }
#my-details .fluentform_wrapper_5 h1 {
	font-size: 1.7rem; font-weight: 300; line-height: 1.2;
	margin: 0 0 .5rem; color: var(--alexi-heading, var(--alexi-ink));
}
#my-details .fluentform_wrapper_5 h1 strong { font-weight: 300; }
/* Section titles: Contact / Company / Neurodiversity */
#my-details .fluentform_wrapper_5 h3 {
	font-size: 1.05rem; font-weight: 400; letter-spacing: .02em;
	margin: .9rem 0 .5rem !important; padding-bottom: .3rem;
	border-bottom: 1px solid var(--alexi-line, #e4e4e0);
	color: var(--alexi-heading, var(--alexi-ink));
}
#my-details .fluentform_wrapper_5 h3 strong { font-weight: 400; }
/* Label above value */
#my-details .fluentform_wrapper_5 p {
	margin: 0 0 .9rem; font-size: 1.05rem; line-height: 1.4;
	color: var(--alexi-text, var(--alexi-ink));
}
#my-details .fluentform_wrapper_5 p > strong,
#my-details .fluentform_wrapper_5 blockquote strong {
	display: block; font-size: 11px; font-weight: 500;
	letter-spacing: .16em; text-transform: uppercase;
	color: var(--alexi-text-muted, var(--alexi-muted)); margin-bottom: .15rem;
}
/* Notes */
#my-details .fluentform_wrapper_5 blockquote {
	margin: .25rem 0 .9rem; padding: .2rem 0 .2rem 1rem;
	border-left: 2px solid var(--alexi-line, #e4e4e0);
	font-size: 1rem; line-height: 1.5; color: var(--alexi-body, var(--alexi-ink));
}
/* Update button — the site's outline look */
#my-details .fluentform_wrapper_5 .ff_submit_btn_wrapper { margin-top: 1rem; text-align: right; }
#my-details .fluentform_wrapper_5 .ff-btn-submit {
	background: transparent !important; color: var(--alexi-ink) !important;
	border: 1px solid var(--alexi-outline, var(--alexi-ink)) !important; border-radius: 5px !important;
	font-size: .9rem !important; font-weight: 500 !important; padding: .45rem 1.1rem !important;
}
#my-details .fluentform_wrapper_5 .ff-btn-submit:hover { background: var(--alexi-ink) !important; color: #fff !important; }
@media (max-width: 600px) {
	#my-details .fluentform_wrapper_5 { padding: .5rem 1rem 1rem; }
}

/* Lesson summaries inside the CTP Czechia Lessons Ninja Table (page 1426, table 1421)
   and on the Lesson Summaries page (626). The lesson-summary form editor keeps <h3>
   but strips inline styles, so the dyslexia-friendly standard is applied here:
   Lexend Deca, one heading level — regular weight, teal, clear space BEFORE each
   heading and none after — 1.5 line spacing (25–26 Oct 2026; see
   Teaching/Dyslexia-friendly formatting standard.md). */
[id^="footable_parent_"], .ninja_table_wrapper, .lf-summary, .lf-pane summary { font-family: var(--font); }
[id^="footable_parent_"] h3, .ninja_table_wrapper h3, .lf-summary h3,
[id^="footable_parent_"] h4, .ninja_table_wrapper h4, .lf-summary h4 {
	font-size: 1.25em; font-weight: 400; color: #1E6F68; line-height: 1.3;
	margin: 1.3em 0 0 !important; padding: 0;
}
[id^="footable_parent_"] p, .ninja_table_wrapper p, .lf-summary p { margin: 0 0 .7em; line-height: 1.5; }
[id^="footable_parent_"] ul, .ninja_table_wrapper ul, .lf-summary ul { margin: 0 0 .7em; padding-left: 1.4em; }
[id^="footable_parent_"] li, .ninja_table_wrapper li, .lf-summary li { margin: 0 0 .3em; line-height: 1.5; }

/* Complianz cookie banner (30 Oct 2026). Colours are set in Complianz itself; this is
   the bit its free version cannot do: the theme font, square editorial corners like the
   login panel, and a z-index above the lesson page's fixed Notes/Clips panels (both
   99999, same as Complianz's default — DOM order was hiding the banner). Stays below
   the cinema backdrop (100010). */
.cmplz-cookiebanner, .cmplz-cookiebanner * { font-family: var(--font); }
.cmplz-cookiebanner { z-index: 100001 !important; border-radius: 0 !important; line-height: 1.5; }
.cmplz-cookiebanner .cmplz-btn { border-radius: 0 !important; font-weight: 500; }
.cmplz-cookiebanner .cmplz-header .cmplz-title { font-weight: 500; }

/* --- Print -------------------------------------------------------------- */
@media print {
	.site-header, .site-footer, .menu-toggle, .skip-link { display: none; }
	body { font-size: 12pt; color: #000; }
	a { color: #000; text-decoration: underline; }
}
