/* =========================================================================================================
 * AVCentral shared components, one design at three widths (owner INBOX #396 / #399, phase 0).
 *
 * Values from AVCENTRAL-DESIGN-GUIDE.md + avcentral-colours.json only (no new colours or fonts).
 * Phase 0 adds these classes but NO template uses them yet: the file is registered (handle 'avi-shared', after
 * 'avcentral-brand-tokens') and a template enqueues it when it moves to the shared components (phases 1-9).
 * Every class starts with .avs- so nothing on the site can match it by accident.
 *
 * Breakpoints (the only ones to use; inc/avi-breakpoints.php, assets/js/avi-bp.js):
 *   phone   (max-width: 767.98px)
 *   tablet  (min-width: 768px) and (max-width: 1023.98px)
 *   desktop (min-width: 1024px)
 *   wide    (min-width: 1280px)   max-widths and gaps only
 *   hover   (hover: hover) and (pointer: fine)   hover effects only on mouse devices
 * Only transform and opacity animate. Reduced motion: no lift, no movement.
 *
 * Section accent: set --avs-accent on the component (or a parent), e.g. style="--avs-accent: var(--avs-sec-jobs)".
 * ========================================================================================================= */

:root {
	--avs-bg-page: #060f1e;
	--avs-bg-card: #0c1a30;
	--avs-bg-feature: #0a1628;
	--avs-bg-raised: #0f1e38;
	--avs-board: #070e1b;
	--avs-board-line: #16294a;
	--avs-border-soft: rgba(255, 255, 255, 0.07);
	--avs-border: #1f3354;
	--avs-border-strong: #2a4266;
	--avs-t1: #e8eef5;
	--avs-t2: #94a7be;
	--avs-t3: #7d93ad;
	--avs-gold: #e8a020;
	--avs-gold-line: rgba(232, 160, 32, 0.7);
	--avs-gold-ring: rgba(232, 160, 32, 0.18);
	--avs-sec-jobs: #ef4444;
	--avs-sec-medicals: #5aa9ff;
	--avs-sec-schools: #ffb547;
	--avs-sec-pay: #48d1b5;
	--avs-sec-funding: #8fdc6f;
	--avs-sec-operators: #b58cff;
	--avs-ease: cubic-bezier(.33, 1, .68, 1);
	--avs-content: 1200px;   /* = --site-max (assets/brand/tokens.css) */
	--avs-gutter: 16px;
}
@media (min-width: 768px) { :root { --avs-gutter: clamp(16px, 2.5vw, 32px); } }

/* ---- Content container: 1200 px centred, gutters outside ---------------------------------------------- */
.avs-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--avs-content) + 2 * var(--avs-gutter));
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--avs-gutter);
	padding-right: var(--avs-gutter);
}

/* ---- Panel: a section on its own lighter navy (home slides on phones, wide panels on desktop) ---------- */
.avs-panel {
	box-sizing: border-box;
	background: var(--avs-bg-feature);
	border-radius: 24px;
	margin: 0 8px 10px;
	padding: 32px 20px;
	color: var(--avs-t1);
}
@media (min-width: 768px) {
	/* #406 / #410: full window width, 10 px inset and gap, 24 px radius, 1200 px content inside */
	.avs-panel {
		max-width: none;
		margin: 0 10px 10px;
		padding: clamp(40px, 6vw, 72px) max(var(--avs-gutter), calc((100% - var(--avs-content) - 20px) / 2));
	}
}
.avs-panel--fill { min-height: calc(100svh - 56px); display: flex; flex-direction: column; justify-content: center; }
/* Slide (#394 add-on rule, shared by the home page and the section hubs; #410): on phones in portrait at least 600 px
   tall, a slide is one screen (100lvh = the screen with the browser bars hidden) minus the sticky header, content
   centred; a longer slide grows, never clips. Landscape, short phones, tablets and desktop: sized to content.
   --avs-hdr-h = the sticky header's height (56 px phone header, #368). */
@media (max-width: 767.98px) and (orientation: portrait) and (min-height: 600px) {
	.avs-panel--slide { display: flex; flex-direction: column; justify-content: center;
		min-height: calc(100vh - var(--avs-hdr-h, 56px)); min-height: calc(100lvh - var(--avs-hdr-h, 56px)); }
}
/* First slide of a page (design guide principle 5, #414): the slide keeps its 100lvh height (the rule above), but its
   content is centred in the screen visible on load (100svh minus the header), slightly above centre (~45 %).
   How: two empty flex spacers share the free space 40 : 60 (which puts the content's middle at ~45 % of the visible
   screen for a typical hero block; 45 : 55 measured ~49 %), and the bottom one also takes the browser-toolbar
   difference (100lvh − 100svh) as its base, so the free space shared out is exactly the visible screen minus the
   content. Same conditions as .avs-panel--slide; elsewhere the slide is sized to its content as before. Use with
   .avs-panel--slide on the page's first slide only; the slide's own ::before / ::after must be free.
   --avs-toolbar can be set by hand to test (e.g. 80px) on a browser without a toolbar. */
@media (max-width: 767.98px) and (orientation: portrait) and (min-height: 600px) {
	.avs-panel--slide.avs-panel--first {
		--avs-toolbar: 0px;
		justify-content: flex-start;
		min-height: calc(100vh - var(--avs-hdr-h, 56px)); min-height: calc(100lvh - var(--avs-hdr-h, 56px));
		padding-top: 24px; padding-bottom: 24px;
	}
	@supports (height: 100lvh) {
		.avs-panel--slide.avs-panel--first { --avs-toolbar: calc(100lvh - 100svh); }
	}
	.avs-panel--slide.avs-panel--first::before,
	.avs-panel--slide.avs-panel--first::after { content: ""; display: block; flex-shrink: 0; }
	.avs-panel--slide.avs-panel--first::before { flex-grow: 40; flex-basis: 0; }
	.avs-panel--slide.avs-panel--first::after { flex-grow: 60; flex-basis: var(--avs-toolbar, 0px); }
}
/* Tablet / desktop slide height (owner INBOX #453): a slide lined up under the sticky header is exactly the rest of the
   window, so the next slide shows only after scrolling. --avs-header-h = the real height of the header that stays on
   screen (0 when it scrolls away), set on :root by assets/js/avi-bp.js (inline in <head>, every page); the value
   here is the fallback before it runs (the 56 px site header; the home page sets 0 for its scrolling desktop bar).
   Phones keep the 100lvh rules above (--avs-hdr-h). Windows under 640 px tall: sized to content. A taller slide grows. */
:root { --avs-header-h: 56px; }
@media (min-width: 768px) and (min-height: 640px) {
	.avs-panel--slide { box-sizing: border-box; display: flex; flex-direction: column; justify-content: center;
		min-height: calc(100vh - var(--avs-header-h)); min-height: calc(100dvh - var(--avs-header-h)); }
}
/* Tablet / desktop (#425): the first slide fills the window under the header (dvh) with the same 40 : 60 placement
   (#453: the same --avs-header-h, was a fixed 64 px + 20 px guess); windows under 640 px tall size it to its content. */
@media (min-width: 768px) and (min-height: 640px) {
	.avs-panel--first { display: flex; flex-direction: column; justify-content: flex-start;
		min-height: calc(100vh - var(--avs-header-h)); min-height: calc(100dvh - var(--avs-header-h)); }
	.avs-panel--first::before, .avs-panel--first::after { content: ""; display: block; flex-shrink: 0; flex-basis: 0; }
	.avs-panel--first::before { flex-grow: 40; }
	.avs-panel--first::after { flex-grow: 60; }
}

/* ---- Grid: 1 column on phones, 2 on tablets, 3 on desktop ---------------------------------------------- */
.avs-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 768px) { .avs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .avs-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .avs-grid { gap: 20px; } }

/* ---- Ticket: the boarding-pass card (#391) -------------------------------------------------------------- */
.avs-ticket {
	--avs-accent: var(--avs-gold);
	--avs-notch: var(--avs-bg-feature);   /* the colour behind the card, shown in the notches */
	position: relative;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 88px;
	grid-template-rows: 1fr auto;
	background: var(--avs-bg-card);
	border: 1px solid var(--avs-border-strong);
	border-top: 3px solid var(--avs-accent);
	border-radius: 16px;
	color: var(--avs-t1);
	overflow: hidden;
}
.avs-ticket__main { padding: 18px 16px 16px 18px; min-width: 0; }
.avs-ticket__stub {
	position: relative;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	border-left: 1px dashed var(--avs-border-strong);
	padding: 12px 6px;
}
.avs-ticket__stub::before,
.avs-ticket__stub::after {
	content: ""; position: absolute; left: -9px; width: 16px; height: 16px; border-radius: 50%;
	background: var(--avs-notch);
}
.avs-ticket__stub::before { top: -9px; }
.avs-ticket__stub::after { bottom: -9px; }
.avs-ticket__eyebrow { font: 500 11px/1.3 'JetBrains Mono', monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--avs-accent); margin: 0 0 6px; }
.avs-ticket__title { font: 400 28px/1 'Bebas Neue', sans-serif; text-transform: uppercase; margin: 0 0 8px; color: var(--avs-t1); }
.avs-ticket__desc { font: 400 15px/1.45 'DM Sans', sans-serif; color: var(--avs-t2); margin: 0 0 12px; }
.avs-ticket__cta { font: 400 15px/1 'Bebas Neue', sans-serif; letter-spacing: .16em; color: var(--avs-accent); text-decoration: none; }
.avs-ticket__count { font: 400 44px/1 'Bebas Neue', sans-serif; color: var(--avs-accent); }
.avs-ticket__unit { font: 500 10px/1.2 'JetBrains Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--avs-t3); margin-top: 4px; text-align: center; }
.avs-ticket__strip {
	grid-column: 1 / -1;
	position: relative;
	display: flex; gap: 8px; flex-wrap: nowrap;
	padding: 12px 16px 14px;
	border-top: 1px dashed var(--avs-border-strong);
}
@media (min-width: 1024px) { .avs-ticket__count { font-size: 56px; } .avs-ticket__title { font-size: 34px; } }

/* ---- Pill: quick links (home tickets, hero quick picks) -------------------------------------------------- */
.avs-pill {
	display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px;
	border: 1px solid var(--avs-border-strong); border-radius: 999px;
	font: 400 12px/1 'DM Sans', sans-serif; color: var(--avs-t2); text-decoration: none; white-space: nowrap;
}
@media (max-width: 359.98px) { .avs-pill { font-size: 11px; padding: 0 9px; } }

/* ---- Board: the location / list board (split-flap rows) --------------------------------------------------- */
.avs-board { background: var(--avs-board); border: 1px solid var(--avs-border); border-radius: 14px; overflow: hidden; --avs-accent: var(--avs-gold); }
.avs-board__head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 12px 16px; border-bottom: 1px solid var(--avs-board-line);
	font: 500 11px/1.2 'JetBrains Mono', monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--avs-accent);
}
.avs-board__row {
	display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 16px; align-items: center; gap: 10px;
	min-height: 48px; padding: 0 16px; border-bottom: 1px solid var(--avs-board-line);
	font: 400 13px/1.2 'JetBrains Mono', monospace; text-transform: uppercase; color: var(--avs-t1); text-decoration: none;
}
.avs-board__row:last-child { border-bottom: 0; }
.avs-board__code, .avs-board__n { color: var(--avs-accent); }
.avs-board__go { color: var(--avs-t3); }
@media (min-width: 1024px) { .avs-board__row { grid-template-columns: 72px minmax(0, 1fr) auto 16px; padding: 0 20px; } }

/* ---- Feature card: tool cards on section hubs ------------------------------------------------------------- */
.avs-fcard {
	--avs-accent: var(--avs-sec-pay);
	position: relative; box-sizing: border-box;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
	min-height: 200px; padding: 20px; border-radius: 18px; border: 1px solid var(--avs-border-soft);
	background:
		linear-gradient(to top, color-mix(in srgb, var(--avs-accent) 40%, transparent) 0%, color-mix(in srgb, var(--avs-accent) 10%, transparent) 40%, transparent 75%),
		var(--avs-bg-feature);
	color: var(--avs-t1); text-decoration: none;
}
.avs-fcard__icon { width: 64px; height: 64px; color: var(--avs-accent); }
.avs-fcard__title { font: 600 20px/1.2 'DM Sans', sans-serif; margin: 0; }
.avs-fcard__tag { font: 400 15px/1.4 'DM Sans', sans-serif; color: var(--avs-t2); margin: 0; }
@media (min-width: 768px) { .avs-fcard { min-height: 248px; } .avs-fcard__icon { width: 88px; height: 88px; } .avs-fcard__title { font-size: 22px; } }

/* ---- Search field (not a button) ------------------------------------------------------------------------ */
.avs-search { position: relative; display: block; width: 100%; max-width: 640px; margin: 0 auto; }
.avs-search__input {
	box-sizing: border-box; width: 100%; height: 58px; padding: 0 16px 0 48px;
	background: var(--avs-bg-card); border: 1px solid var(--avs-border-strong); border-radius: 12px;
	font: 400 17px/1 'DM Sans', sans-serif; color: var(--avs-t1);
}
.avs-search__input::placeholder { color: var(--avs-t3); }
.avs-search__input:focus { outline: none; border-color: var(--avs-gold); box-shadow: 0 0 0 3px var(--avs-gold-ring); }
.avs-search__icon { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--avs-t1); pointer-events: none; }

/* ---- Buttons + quiet links --------------------------------------------------------------------------------- */
.avs-btn {
	display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 48px; padding: 0 18px;
	border-radius: 10px; font: 600 15px/1 'DM Sans', sans-serif; text-decoration: none; cursor: pointer;
}
.avs-btn--gold { background: var(--avs-gold); color: var(--avs-bg-page); border: 1px solid var(--avs-gold); }
.avs-btn--line { background: transparent; color: var(--avs-t1); border: 1px solid var(--avs-border-strong); } /* #418: secondary = neutral outline, never gold */
.avs-btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 339.98px) { .avs-btn-pair { grid-template-columns: 1fr; } }
.avs-quiet { display: inline-flex; align-items: center; min-height: 28px; font: 400 13px/1.3 'DM Sans', sans-serif; color: var(--avs-t3); text-decoration: none; }

/* ---- Action card (#395 / #406): icon tile, Bebas title, one-line benefit, arrow -------------------------------------
   The icon tile is a soft tint of the card's accent behind the icon in the accent (#411 add-on, Chris 19:00Z): gold by
   default; a blue-accent page sets --avs-accent on the card (e.g. var(--avs-sec-medicals) on the Medicals closing
   slide). --avs-acard-tint = how much of the accent shows (14 %), plus a faint ring in the accent so the tint reads as
   the accent on navy (14 % gold alone over #0f1e38 looks grey-brown). Markup: the home talent slide (.fs-tl-card). */
.avs-acard { --avs-accent: var(--avs-gold); --avs-acard-tint: 14%; }
.avs-acard__ic {
	border-radius: 12px; color: var(--avs-accent);
	background: color-mix(in srgb, var(--avs-accent) var(--avs-acard-tint), transparent);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--avs-accent) 34%, transparent);
}

/* ---- Side-scroll card row (#420, Apple-style; first used on the Medicals hub "Before your medical") ------------
   Phones: one row of cards ~78 % of the screen wide, 10 px apart, so the next card peeks in; snaps one card at a time
   to the centre; no scrollbar; a dots pill under it marks the current card (wider dot). Tablet / desktop: the cards
   side by side in one row, no scrolling, no dots. Cards are the same height; the whole card is one link.
   Markup:
     <div class="avs-hscroll" data-avs-hscroll style="--avs-hs-bleed: 20px">      (bleed = the parent's side padding)
       <ul class="avs-hscroll__track" aria-label="…">
         <li class="avs-hscroll__item"><a class="avs-hcard avs-acard" href="…" style="--avs-accent: var(--avs-sec-medicals)">
           <span class="avs-hcard__ic avs-acard__ic" aria-hidden="true"><svg …/></span>
           <span class="avs-hcard__t">Title</span><span class="avs-hcard__d">One sentence.</span>
           <span class="avs-hcard__go">Read the guides &rarr;</span></a></li> …
       </ul>
       <div class="avs-hscroll__dots" aria-hidden="true"></div>                    (filled by assets/js/avi-hscroll.js)
     </div>
   Option: .avs-hcard--tall = tall centred card with a big line icon (below).
   JS (wp_enqueue_script( 'avi-hscroll' )): dots + current card, arrow keys / Home / End between cards, a focused card
   comes to the centre; smooth scrolling only without reduced motion. #418: neutral outline, accent only in the icon
   tile and the link text. */
.avs-hscroll { --avs-hs-w: 78vw; --avs-hs-gap: 10px; --avs-hs-bleed: 0px; text-align: left; }
.avs-hscroll__track { list-style: none; margin: 0; padding: 0; }
.avs-hscroll__item { margin: 0; padding: 0; display: flex; min-width: 0; }
.avs-hcard {
	box-sizing: border-box; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 100%;
	padding: 20px; border-radius: 16px; background: var(--avs-bg-raised); border: 1px solid var(--avs-border-strong);
	color: var(--avs-t1); text-decoration: none !important; -webkit-tap-highlight-color: transparent;
}
.avs-hcard__ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 auto; }
.avs-hcard__t { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 26px; line-height: 1; letter-spacing: .03em; text-transform: uppercase; color: var(--avs-t1); }
.avs-hcard__d { font-family: 'DM Sans', sans-serif; font-size: 15px; line-height: 1.45; color: var(--avs-t2); }
.avs-hcard__go { margin-top: auto; padding-top: 6px; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; color: var(--avs-accent, var(--avs-gold)); }
.avs-hcard:focus-visible { outline: 2px solid var(--avs-gold); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
	.avs-hcard { transition: border-color .2s var(--avs-ease), transform .2s var(--avs-ease), box-shadow .2s var(--avs-ease); }
	.avs-hcard:hover { border-color: var(--avs-t3); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); } /* #425: lift */
}
/* Tall card (#424): the big feature-card look in the row: ~360-400 px tall, a large line icon in the card's accent
   (no tile), larger centred title and line, the link centred at the bottom; flat, neutral border.
   Markup: <a class="avs-hcard avs-hcard--tall" style="--avs-accent: …"><span class="avs-hcard__ic" aria-hidden="true">
   <svg …/></span><span class="avs-hcard__t">…</span><span class="avs-hcard__d">…</span><span class="avs-hcard__go">… &rarr;</span></a> */
.avs-hcard--tall { align-items: center; text-align: center; gap: 12px; min-height: clamp(340px, 48svh, 400px); padding: 28px 22px 24px; }
.avs-hcard--tall .avs-hcard__ic { width: auto; height: auto; margin-top: auto; margin-bottom: 6px; background: none; box-shadow: none; border-radius: 0; color: var(--avs-accent, var(--avs-gold)); }
.avs-hcard--tall .avs-hcard__ic svg { width: 84px; height: 84px; } /* #434: 84 px; stroke width from the svg (1.5) */
.avs-hcard--tall .avs-hcard__t { font-size: 34px; }
.avs-hcard--tall .avs-hcard__d { font-size: 16px; max-width: 30ch; }
.avs-hcard--tall .avs-hcard__go { margin-top: auto; padding-top: 14px; font-size: 15px; }
.avs-hscroll__dots { display: none; }
@media (max-width: 767.98px) {
	.avs-hscroll__track {
		display: flex; gap: var(--avs-hs-gap); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
		margin: 0 calc(-1 * var(--avs-hs-bleed));
		/* % = the row's width: the side padding centres the first and last card */
		padding: 4px calc((100% + 2 * var(--avs-hs-bleed) - var(--avs-hs-w)) / 2) 6px;
	}
	.avs-hscroll__track::-webkit-scrollbar { display: none; }
	.avs-hscroll__item { flex: 0 0 var(--avs-hs-w); scroll-snap-align: center; scroll-snap-stop: always; }
	.avs-hscroll__dots {
		display: flex; align-items: center; gap: 6px; width: max-content; margin: 14px auto 0; padding: 7px 10px;
		border-radius: 999px; background: var(--avs-bg-raised);
	}
	.avs-hscroll__dot { display: block; width: 6px; height: 6px; border-radius: 3px; background: var(--avs-border-strong); transition: width .3s var(--avs-ease), background-color .3s var(--avs-ease); }
	.avs-hscroll__dot.is-on { width: 18px; background: var(--avs-t1); }
}
/* #535 (WCAG 2.2.2): pause / play for the coverflow auto-advance (assets/js/avs-coverflow.js adds the button; phones only, where it advances).
   44 px target, neutral raised circle, no coloured outline; aria-pressed="true" = paused (shows the play glyph). */
.avs-cf-pause { display: none; }
@media (max-width: 767.98px) {
	.avs-hscroll[data-avs-coverflow] { position: relative; padding-bottom: 10px; }
	.avs-cf-pause {
		display: flex; align-items: center; justify-content: center; position: absolute; right: 8px; bottom: -10px; z-index: 2;
		width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid var(--avs-border-strong, #2a4266); border-radius: 50%;
		background: var(--avs-bg-raised, #0f1e38); color: #e8eef5; cursor: pointer; -webkit-tap-highlight-color: transparent;
	}
	.avs-cf-pause__i { fill: currentColor; }
	.avs-cf-pause__i--play, .avs-cf-pause[aria-pressed="true"] .avs-cf-pause__i--pause { display: none; }
	.avs-cf-pause[aria-pressed="true"] .avs-cf-pause__i--play { display: block; }
	.avs-cf-pause:focus-visible { outline: 2px solid #e8a020; outline-offset: 2px; }
}
@media (min-width: 768px) {
	.avs-hscroll__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.avs-hscroll__track { scroll-behavior: auto; }
	.avs-hscroll__dot { transition: none; }
	.avs-hcard, .avs-hcard:hover { transition: none; transform: none; }
}

/* ---- Line-icon draw-in (#434): put data-avs-draw on an inline line icon (svg). assets/js/avi-draw.js
   (wp_enqueue_script( 'avi-draw' )) gives every stroked path pathLength="1" and adds html.avs-draw; each icon then
   draws itself in once (stroke-dashoffset 1 -> 0, 1.4 s) when it reaches 75 % of the screen, or for a card in a
   side-scroll row when it first comes into view inside the row. Tinted parts (fill-opacity) fade in with it. No script
   or reduced motion: the icon is simply shown. ------------------------------------------------------------------------ */
html.avs-draw [data-avs-draw] [pathLength] { stroke-dasharray: 1 1; }
html.avs-draw [data-avs-draw]:not(.is-drawn) [pathLength] { stroke-dashoffset: 1; }
html.avs-draw [data-avs-draw]:not(.is-drawn) [fill-opacity] { fill-opacity: 0; }
html.avs-draw [data-avs-draw].is-drawn [pathLength] { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s cubic-bezier(.33, 1, .68, 1); }
html.avs-draw [data-avs-draw].is-drawn [fill-opacity] { transition: fill-opacity 1.4s cubic-bezier(.33, 1, .68, 1) .2s; }
/* reduced motion: avi-draw.js never adds html.avs-draw, so nothing above applies */

/* ---- Focus: same ring everywhere ---------------------------------------------------------------------------- */
.avs-ticket:focus-visible, .avs-fcard:focus-visible, .avs-board__row:focus-visible, .avs-pill:focus-visible,
.avs-btn:focus-visible, .avs-quiet:focus-visible, .avs-hover:focus-visible {
	outline: 2px solid var(--avs-gold); outline-offset: 2px;
}

/* ---- Hover: mouse devices only (subtle lift, accent edge brightens) ------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
	.avs-hover, .avs-ticket, .avs-fcard {
		transition: transform .2s var(--avs-ease), box-shadow .2s var(--avs-ease), border-color .2s var(--avs-ease);
	}
	.avs-hover:hover, a.avs-ticket:hover, .avs-ticket.avs-hover:hover, a.avs-fcard:hover {
		transform: translateY(-2px);
		box-shadow: 0 10px 28px rgba(0, 0, 0, .35), 0 0 0 1px color-mix(in srgb, var(--avs-accent, var(--avs-gold)) 35%, transparent);
	}
	/* Accent edge brightens: a soft glow in the card's own accent above its top edge (no new colour). */
	a.avs-ticket:hover, .avs-ticket.avs-hover:hover {
		box-shadow: 0 10px 28px rgba(0, 0, 0, .35), 0 -2px 14px -4px var(--avs-accent), 0 0 0 1px color-mix(in srgb, var(--avs-accent) 35%, transparent);
	}
	.avs-board__row:hover { background: var(--avs-bg-raised); }
	.avs-pill:hover, .avs-quiet:hover { color: var(--avs-t1); border-color: var(--avs-t3); }
	.avs-btn--line:hover { border-color: #7d93ad; color: #fff; } /* #418 */
}
@media (prefers-reduced-motion: reduce) {
	.avs-hover, .avs-ticket, .avs-fcard { transition: none; }
	.avs-hover:hover, a.avs-ticket:hover, .avs-ticket.avs-hover:hover, a.avs-fcard:hover { transform: none; }
}

/* ---- Play-in (one-time reveal, the #392 timing): hidden only once JS adds html.avs-anim ----------------------
   Each item rises from 100 px below: opacity 1 s ease-out, movement 2.4 s cubic-bezier(.16,1,.3,1) (it keeps
   drifting up after it is visible), 160 ms apart in reading order (--avs-i = 0, 1, 2 ...). Once per page load.
   2026-11-03 (owner INBOX #406): was 30 px / .9 s / .7 s / .15 s (the older guide timing). */
@media (prefers-reduced-motion: no-preference) {
	html.avs-anim [data-avs-in] { transition: opacity 1s ease-out, transform 2.4s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--avs-i, 0) * .16s); }
	html.avs-anim [data-avs-in]:not(.is-in) { opacity: 0; transform: translateY(100px); }
	html.avs-anim [data-avs-in].is-in { opacity: 1; transform: none; }
}


/* ---- Logo tile: the shared #405 class is .avi-lbox (assets/css/avi-featured-gold.css, inc/avi-logo-tile.php
   avi_logo_b2_html()); not repeated here. ---- */
