/*
 * Albion theme styles.
 * Ported from the approved "ALBION Site Prototype"; all classes are prefixed
 * with `al-` so they never collide with WordPress core classes.
 * Colour, font and spacing values follow the ALBION design system tokens.
 */

:root {
	--al-paper: #f7f6f2;
	--al-paper-sunk: #efece4;
	--al-white: #ffffff;
	--al-line: #e2dfd6;
	--al-ink: #0d1a4a;
	--al-ink-muted: #4f5677;
	--al-ink-soft: #3d4466;
	--al-blue: #003cd5;
	--al-navy: #002c98;
	--al-red: #f6122f;
	--al-red-deep: #c8102e;
	--al-tint-blue: #e9eefc;
	--al-chip: #e9e6de;
	--al-footer-text: #dfe5ff;
	--al-footer-muted: #aebcff;
	--al-font: "Neris", "Avenir Next", "Segoe UI", system-ui, sans-serif;
	--al-shadow-card: 0 18px 50px rgba(0, 30, 110, .08);
	--al-shadow-menu: 0 18px 40px rgba(0, 30, 110, .12);
	--al-shadow-panel: 0 24px 40px rgba(0, 30, 110, .14);
}

/* ---- base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--al-white); color: var(--al-ink); font-family: var(--al-font); font-weight: 300; font-size: 17px; line-height: 1.6; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--al-blue); outline-offset: 2px; }
[hidden] { display: none !important; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > *, .al-main > * { margin-block-start: 0; margin-block-end: 0; }
.al-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--al-white); padding: 8px 12px; }
.al-skip:focus { left: 12px; top: 12px; }

.al-in { max-width: 1160px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.al-lbl { font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--al-red-deep); }
.al-h2 { margin: 0; font-weight: 900; font-size: clamp(30px, 4vw, 40px); line-height: 1.05; color: var(--al-ink); text-wrap: balance; }
.al-sec { padding-block: 64px; }
.al-sec--flush { padding-top: 0; }
.al-sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.al-sec-head__t { display: grid; gap: 8px; }
.al-more { font-weight: 600; font-size: 15px; color: var(--al-blue); text-decoration: none; white-space: nowrap; }
.al-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.al-tbd { color: var(--al-ink-muted); font-style: normal; }

/* buttons: our own and the core Button block */
.al-btn,
.wp-block-button .wp-block-button__link {
	display: inline-flex; align-items: center; gap: 8px; font-family: var(--al-font); font-weight: 600; font-size: 16px; line-height: 1.4;
	padding: 13px 22px; border-radius: 10px; border: 2px solid transparent; text-decoration: none; white-space: nowrap; cursor: pointer;
	background: var(--al-blue); color: #fff;
}
.al-btn--line,
.wp-block-button.is-style-outline .wp-block-button__link { border-color: var(--al-blue); color: var(--al-blue); background: var(--al-paper); }
.al-btn--red,
.wp-block-button.is-style-red .wp-block-button__link { background: var(--al-red-deep); color: #fff; }
.al-btn--sm { font-size: 14px; padding: 9px 16px; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; }

/* chevron: one shape everywhere a thing expands */
.al-chev { width: 12px; height: 8px; flex: none; transition: transform .28s ease; }
[aria-expanded="true"] > .al-chev, [aria-expanded="true"] > .al-cbox > .al-chev, .al-yr[open] > summary .al-chev { transform: rotate(180deg); }

.al-tag { justify-self: start; font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--al-blue); color: #fff; }
.al-tag--hot { background: var(--al-red-deep); }

/* ---- navigation ---------------------------------------------------------- */
.al-nav { background: var(--al-white); border-bottom: 1px solid var(--al-line); position: sticky; top: 0; z-index: 10; }
.admin-bar .al-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .al-nav { top: 0; } }
.al-nav > .al-in { display: flex; align-items: center; gap: 28px; padding-block: 12px; }
.al-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 19px; text-decoration: none; margin-right: auto; color: var(--al-ink); }
.al-brand img { width: 40px; height: 40px; border-radius: 50%; }
.al-links { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 14px; color: #4a4f66; }
.al-links a { text-decoration: none; white-space: nowrap; }
.al-links a:hover, .al-links a[aria-current="page"], .al-dd__menu a[aria-current="page"] { color: var(--al-blue); }
.al-dd { position: relative; }
.al-dd > button { font: inherit; font-weight: 600; font-size: 14px; color: #4a4f66; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; margin: -6px -10px; border-radius: 8px; }
.al-dd > button:hover, .al-dd > button[aria-expanded="true"], .al-dd.is-current > button { background: #eef2fd; color: var(--al-blue); }
.al-dd__menu { position: absolute; top: calc(100% + 14px); left: -16px; min-width: 230px; background: var(--al-white); border: 1px solid var(--al-line); border-radius: 12px; box-shadow: var(--al-shadow-menu); padding: 8px; display: grid; }
.al-dd__menu a { padding: 10px 12px; border-radius: 8px; }
.al-dd__menu a:hover { background: var(--al-paper); color: var(--al-blue); }
.al-dd__menu small, .al-psub small { display: block; font-weight: 300; font-size: 13px; color: var(--al-ink-muted); }
.al-fbi { width: 36px; height: 36px; border-radius: 50%; background: var(--al-blue); color: #fff; display: inline-grid; place-items: center; font-weight: 900; font-size: 19px; line-height: 1; text-decoration: none; flex: none; margin-left: -6px; }
.al-fbi:hover { background: var(--al-navy); }
.al-burger { display: none; width: 96px; font: inherit; font-weight: 600; font-size: 14px; line-height: 22px; text-align: center; color: var(--al-ink); background: var(--al-white); border: 1.5px solid var(--al-line); border-radius: 8px; padding: 6px 0; cursor: pointer; }
.al-burger[aria-expanded="true"] { border-color: var(--al-blue); color: var(--al-blue); }
.al-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--al-white); border-top: 1px solid var(--al-line); box-shadow: var(--al-shadow-panel); max-height: calc(100vh - 70px); overflow-y: auto; }
.al-panel > .al-in { display: grid; padding-block: 4px 20px; }
.al-prow { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 16px 2px; font: inherit; font-weight: 600; font-size: 18px; color: var(--al-ink); text-decoration: none; background: none; border: 0; border-bottom: 1px solid var(--al-line); cursor: pointer; text-align: left; }
.al-prow[aria-current="page"] { color: var(--al-blue); }
button.al-prow[aria-expanded="true"] { color: var(--al-blue); border-bottom-color: transparent; }
.al-cbox { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #eef2fd; color: var(--al-blue); }
.al-psub { display: grid; gap: 2px; background: var(--al-paper); border-radius: 12px; padding: 6px; margin-bottom: 10px; }
.al-psub a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 16px; }
.al-psub a[aria-current="page"] { color: var(--al-blue); }

/* ---- pennant + sketches -------------------------------------------------- */
.al-pennant { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 110px; z-index: 2; display: block; }
.al-sk { position: absolute; mix-blend-mode: multiply; max-width: none; width: auto; z-index: 1; }

/* ---- home hero ----------------------------------------------------------- */
.al-hero { position: relative; background: var(--al-paper); overflow: hidden; }
.al-hero > .al-in { position: relative; min-height: 540px; padding-block: 56px 150px; }
.al-hero__txt { display: grid; gap: 16px; position: relative; z-index: 3; max-width: 560px; }
.al-hero__row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.al-hero__logo { width: 104px; height: 104px; border-radius: 50%; }
.al-hero h1 { margin: 0; font-weight: 900; font-size: clamp(52px, 8vw, 88px); line-height: .92; color: var(--al-blue); }
.al-hero__sub { font-size: 22px; line-height: 1.4; color: var(--al-ink-soft); }
.al-acts { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 6px; }
.al-sk--bb { right: 9%; bottom: -60px; height: 560px; -webkit-mask-image: linear-gradient(to bottom, #000 58%, rgba(0,0,0,.35) 80%, transparent 96%); mask-image: linear-gradient(to bottom, #000 58%, rgba(0,0,0,.35) 80%, transparent 96%); }
.al-sk--tb { right: -4%; bottom: 38px; height: 260px; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 97%); mask-image: linear-gradient(to bottom, #000 72%, transparent 97%); }
/* Short windows (a laptop browser that isn't maximised): compact the hero so
   the announcements below it are visible without scrolling. */
@media (min-width: 721px) and (max-height: 820px) {
	.al-hero > .al-in { min-height: 0; padding-block: 28px 92px; }
	.al-hero__txt { gap: 12px; }
	.al-hero__logo { width: 72px; height: 72px; }
	.al-hero h1 { font-size: clamp(48px, 6vw, 72px); }
	.al-hero__sub { font-size: 20px; }
	.al-hero .al-pennant { height: 84px; }
	.al-sk--bb { height: 430px; bottom: -46px; }
	.al-sk--tb { height: 200px; bottom: 28px; }
	.al-hero + .al-sec { padding-top: 32px; }
}

/* ---- announcements ------------------------------------------------------- */
.al-ann { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.al-an { display: grid; gap: 12px; align-content: start; padding: 30px; border-radius: 16px; border: 1px solid var(--al-line); background: var(--al-paper); }
.al-an--main { background: var(--al-white); border: 2px solid var(--al-red); box-shadow: var(--al-shadow-card); }
.al-an h3 { margin: 0; font-weight: 900; font-size: 26px; line-height: 1.15; text-wrap: balance; }
.al-an--main h3 { font-size: clamp(26px, 3vw, 32px); }
.al-an__sum { margin: 0; color: var(--al-ink-muted); max-width: 56ch; }
.al-an__more { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; font-size: 15px; color: var(--al-blue); background: none; border: 0; padding: 4px 0; cursor: pointer; }
.al-an__det { display: grid; gap: 14px; border-top: 1px solid var(--al-line); padding-top: 16px; }
.al-an__det > * { margin: 0; }
.al-an__det .wp-block-button__link { font-size: 14px; padding: 10px 16px; }
/* two-column tables inside announcements read as fact lists */
.al-an__det figure.wp-block-table { margin: 0; }
.al-an__det table { border-collapse: collapse; width: 100%; }
.al-an__det td { border: 0; padding: 5px 0; vertical-align: top; }
.al-an__det td:first-child { width: 130px; padding-right: 12px; padding-top: 8px; font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--al-ink-muted); }

/* ---- stage cards (home) -------------------------------------------------- */
.al-stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 20px; }
.al-stage { border: 1px solid var(--al-line); background: var(--al-paper); border-radius: 12px; padding: 18px 20px; display: grid; gap: 4px; align-content: start; }
.al-stage b { font-weight: 900; font-size: 30px; line-height: 1; color: var(--al-blue); }
.al-stage strong { font-weight: 600; font-size: 17px; line-height: 1.3; }
.al-stage small { font-size: 14px; color: var(--al-ink-muted); font-variant-numeric: tabular-nums; }
.al-st { justify-self: start; margin-top: 6px; font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 2px 10px; border-radius: 999px; background: var(--al-chip); color: var(--al-ink-muted); }
.al-stage--now { border: 2px solid var(--al-blue); background: var(--al-white); }
.al-stage--now .al-st { background: var(--al-red-deep); color: #fff; }

/* ---- quick links --------------------------------------------------------- */
.al-quick { background: var(--al-paper); }
.al-ql { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.al-q { display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: 14px; background: var(--al-white); border: 1px solid var(--al-line); text-decoration: none; }
.al-q:hover { border-color: var(--al-blue); }
.al-q__ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #e6ecfb; color: var(--al-blue); font-weight: 900; font-size: 18px; }
.al-q h3 { margin: 0; font-weight: 600; font-size: 19px; line-height: 1.3; }
.al-q p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--al-ink-muted); }
.al-q__go { font-weight: 600; font-size: 14px; color: var(--al-blue); margin-top: 4px; }

/* ---- footer -------------------------------------------------------------- */
.al-foot { position: relative; background: var(--al-navy); color: var(--al-footer-text); overflow: hidden; }
.al-foot > .al-in { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); gap: 32px; padding-block: 96px 40px; position: relative; z-index: 2; }
.al-foot__fp { position: absolute; top: 0; left: 0; width: 100%; height: 60px; display: block; }
.al-foot__brand { display: flex; gap: 14px; align-items: center; }
.al-foot__brand img { width: 64px; height: 64px; border-radius: 50%; }
.al-foot__brand strong { display: block; font-weight: 900; font-size: 22px; color: #fff; line-height: 1.1; }
.al-foot__brand span { font-size: 14px; }
.al-foot h2 { margin: 0 0 10px; font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--al-footer-muted); }
.al-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.al-foot a { text-decoration: none; }
.al-foot a:hover { text-decoration: underline; }
.al-foot__copy { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 20px; font-size: 13px; color: var(--al-footer-muted); }

/* ---- subpage header ------------------------------------------------------ */
.al-phead { position: relative; background: var(--al-paper); overflow: hidden; }
.al-phead > .al-in { position: relative; z-index: 3; padding-block: 40px 120px; }
.al-crumbs { font-size: 14px; color: var(--al-ink-muted); display: flex; gap: 8px; flex-wrap: wrap; }
.al-crumbs a { text-decoration: none; color: var(--al-blue); }
.al-phead h1 { margin: 10px 0 0; font-weight: 900; font-size: clamp(42px, 6vw, 64px); line-height: .95; color: var(--al-blue); }
.al-phead__lead { margin: 12px 0 0; max-width: 54ch; font-size: 20px; line-height: 1.5; color: var(--al-ink-soft); }
.al-phead .al-sk { right: 8%; bottom: -34px; height: 290px; -webkit-mask-image: linear-gradient(to bottom, #000 58%, rgba(0,0,0,.35) 80%, transparent 96%); mask-image: linear-gradient(to bottom, #000 58%, rgba(0,0,0,.35) 80%, transparent 96%); }
.al-phead .al-sk--wide { right: -6%; bottom: 16px; height: 200px; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 97%); mask-image: linear-gradient(to bottom, #000 72%, transparent 97%); }
.al-phead .al-pennant { height: 80px; }

/* ---- subpage content ----------------------------------------------------- */
.al-pg { padding-block: 48px 72px; }
.al-pg .entry-content > * { margin-block: 0; }
.al-pg .entry-content > * + * { margin-block-start: 18px; }
.al-pg .entry-content > * + h2 { margin-block-start: 48px; }
.al-pg .entry-content > * + .al-callout, .al-pg .entry-content > * + .al-block { margin-block-start: 48px; }
.al-pg .entry-content > h2 + .al-block { margin-block-start: 18px; }
.al-pg h2 { margin: 0; font-weight: 900; font-size: clamp(26px, 3vw, 32px); line-height: 1.05; }
.al-pg .entry-content > p, .al-pg .entry-content > ul, .al-pg .entry-content > ol { max-width: 72ch; }
.al-blk { display: grid; gap: 18px; }
.al-callout { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; padding: 20px 24px; border-radius: 14px; background: var(--al-tint-blue); }
.al-callout > * { margin: 0 !important; }
.al-callout > p { flex: 1 1 320px; }
.al-callout .wp-block-button__link { font-size: 15px; padding: 10px 18px; }

/* timeline (Terminarz) */
.al-tl { list-style: none; margin: 0; padding: 0; display: grid; }
.al-tl li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 20px; align-items: start; padding: 22px 0; border-top: 1px solid var(--al-line); }
.al-tl li:last-child { border-bottom: 1px solid var(--al-line); }
.al-tl__n { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 20px; color: var(--al-blue); background: #e6ecfb; }
.al-tl h3 { margin: 0; font-weight: 600; font-size: 21px; line-height: 1.3; }
.al-tl p { margin: 4px 0 0; color: var(--al-ink-muted); font-size: 15px; }
.al-tl__d { font-weight: 600; font-size: 15px; color: var(--al-ink-muted); white-space: nowrap; padding-top: 4px; text-align: right; font-variant-numeric: tabular-nums; }
.al-tl__d .al-st { margin-top: 6px; }
.al-tl li.is-now .al-tl__n { background: var(--al-blue); color: #fff; }

/* extended schedule under the timeline (Terminarz): stages + deadlines + school calendar */
.al-hm { margin-top: 12px; padding: 26px 28px 18px; border: 1px solid var(--al-line); border-radius: 14px; background: var(--al-paper); }
.al-hm__h { margin: 0; font-weight: 600; font-size: 21px; line-height: 1.3; }
.al-hm__lead { margin: 4px 0 14px; color: var(--al-ink-muted); font-size: 15px; }
.al-hm__list { --hm-d: 168px; --hm-g: 18px; list-style: none; margin: 0; padding: 0; position: relative; }
.al-hm__list::before { content: ""; position: absolute; top: 22px; bottom: 22px; left: calc(var(--hm-d) + var(--hm-g) + 13px); width: 2px; background: var(--al-line); }
.al-hm__i { display: grid; grid-template-columns: var(--hm-d) 28px minmax(0, 1fr); gap: var(--hm-g); align-items: start; padding: 10px 0; }
.al-hm__d { padding-top: 3px; text-align: right; font-variant-numeric: tabular-nums; }
.al-hm__d b { display: block; font-weight: 600; font-size: 15px; line-height: 1.4; color: var(--al-ink); }
.al-hm__d small { display: block; font-size: 13px; line-height: 1.4; color: var(--al-ink-muted); }
.al-hm__dot { position: relative; z-index: 1; width: 28px; height: 28px; display: grid; place-items: center; }
.al-hm__i--konkurs .al-hm__dot::before, .al-hm__i--szkola .al-hm__dot::before { content: ""; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 4px var(--al-paper); }
.al-hm__i--konkurs .al-hm__dot::before { background: var(--al-blue); }
.al-hm__i--szkola .al-hm__dot::before { box-sizing: border-box; background: var(--al-paper); border: 2px solid #b4afa2; }
.al-hm__i--etap .al-hm__dot { border-radius: 50%; background: var(--al-blue); color: #fff; font-weight: 900; font-size: 12px; box-shadow: 0 0 0 4px var(--al-paper); }
.al-hm__t { padding-top: 3px; }
.al-hm__t strong { display: block; font-weight: 600; font-size: 16px; line-height: 1.4; }
.al-hm__t small { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--al-ink-muted); }
.al-hm__i--etap .al-hm__t strong { font-weight: 700; font-size: 17px; color: var(--al-blue); }
.al-hm__i--szkola .al-hm__t strong { font-weight: 400; color: var(--al-ink-soft); }
.al-hm__tag { display: inline-block; margin-bottom: 3px; padding: 1px 8px; border-radius: 999px; background: var(--al-chip); color: var(--al-ink-muted); font-weight: 600; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.al-hm__i.is-past { opacity: .55; }
.al-hm__i--here { margin: 6px 0; padding: 10px 0; border-block: 1px dashed var(--al-red-deep); }
.al-hm__i--here .al-hm__dot::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--al-red-deep); box-shadow: 0 0 0 4px var(--al-paper), 0 0 0 7px rgba(200, 16, 46, .22); }
.al-hm__i--here .al-hm__d b, .al-hm__i--here .al-hm__d small, .al-hm__i--here .al-hm__t strong { color: var(--al-red-deep); }
.al-hm__i--here .al-hm__t strong { font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .1em; }
.al-hm__i.is-now { position: relative; margin: 6px -14px; padding: 12px 14px; border: 1px solid var(--al-red-deep); border-radius: 12px; background: var(--al-white); box-shadow: var(--al-shadow-card); }
.al-hm__i.is-now .al-hm__d b, .al-hm__i.is-now .al-hm__d small { color: var(--al-red-deep); }
.al-hm__i--konkurs.is-now .al-hm__dot::before, .al-hm__i--szkola.is-now .al-hm__dot::before { width: 14px; height: 14px; border: 0; background: var(--al-red-deep); box-shadow: 0 0 0 4px var(--al-white), 0 0 0 7px rgba(200, 16, 46, .22); }
.al-hm__i--etap.is-now .al-hm__dot { background: var(--al-red-deep); box-shadow: 0 0 0 4px var(--al-white), 0 0 0 7px rgba(200, 16, 46, .22); }
.al-hm__i--szkola.is-now .al-hm__t strong { font-weight: 600; color: var(--al-ink); }
.al-hm__link { display: inline-block; margin-top: 4px; font-weight: 600; font-size: 14px; color: var(--al-blue); text-decoration: none; }
.al-hm__link:hover, .al-hm__link:focus-visible { text-decoration: underline; }
.al-hm__next { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--al-line); font-size: 14px; line-height: 1.45; color: var(--al-ink-soft); }
.al-hm__next b { display: block; font-weight: 600; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--al-ink-muted); }
.al-hm__now { display: inline-block; margin: 0 6px 3px 0; padding: 1px 8px; border-radius: 999px; background: var(--al-red-deep); color: #fff; font-weight: 600; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

/* documents (Regulamin) */
.al-docs { display: grid; gap: 14px; }
.al-doc { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px 24px; border: 1px solid var(--al-line); border-radius: 14px; background: var(--al-white); }
.al-doc__ft { width: 56px; height: 64px; border-radius: 6px; background: var(--al-paper); border: 1px solid var(--al-line); display: grid; place-items: end center; padding-bottom: 8px; font-weight: 900; font-size: 12px; letter-spacing: .08em; color: var(--al-red-deep); position: relative; }
.al-doc__ft::before { content: ""; position: absolute; top: 10px; left: 12px; right: 12px; height: 18px; background: repeating-linear-gradient(var(--al-line) 0 2px, transparent 2px 6px); }
.al-doc h3 { margin: 0; font-weight: 600; font-size: 19px; line-height: 1.3; }
.al-doc p { margin: 2px 0 0; font-size: 14px; color: var(--al-ink-muted); }
.al-doc--soon { background: var(--al-paper); border-style: dashed; }
.al-doc--soon .al-doc__ft { color: var(--al-ink-muted); }

/* tests archive */
.al-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.al-chip { font: inherit; font-weight: 600; font-size: 14px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--al-line); background: var(--al-white); color: var(--al-ink); cursor: pointer; }
.al-chip[aria-pressed="true"] { background: var(--al-blue); border-color: var(--al-blue); color: #fff; }
.al-years { display: grid; gap: 12px; }
.al-yr { border: 1px solid var(--al-line); border-radius: 14px; background: var(--al-white); overflow: hidden; }
.al-yr > summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; }
.al-yr > summary::-webkit-details-marker { display: none; }
.al-yr > summary b { font-weight: 900; font-size: 26px; font-variant-numeric: tabular-nums; color: var(--al-blue); min-width: 70px; }
.al-yr > summary span { color: var(--al-ink-muted); font-size: 15px; flex: 1; }
.al-yr > summary .al-chev { color: var(--al-blue); width: 14px; height: 9px; }
.al-yr[open] > summary { border-bottom: 1px solid var(--al-line); background: var(--al-paper); }
.al-rw { display: grid; grid-template-columns: 110px 190px minmax(0, 1fr); gap: 12px 18px; align-items: center; padding: 14px 22px; border-top: 1px solid var(--al-line); }
.al-rw:first-child { border-top: 0; }
.al-rw__stg { font-weight: 600; }
.al-grp { color: var(--al-ink-muted); font-size: 15px; }
.al-files { display: flex; flex-wrap: wrap; gap: 8px; }
.al-file { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; padding: 6px 12px; border-radius: 8px; background: var(--al-tint-blue); color: var(--al-blue); text-decoration: none; white-space: nowrap; }
.al-file::before { content: "PDF"; font-size: 10px; letter-spacing: .06em; color: var(--al-red-deep); }
.al-file:hover { background: var(--al-blue); color: #fff; }
.al-file:hover::before { color: #fff; }
.al-empty { padding: 22px; color: var(--al-ink-muted); margin: 0; }
.al-flat { border: 1px solid var(--al-line); border-radius: 14px; background: var(--al-white); overflow: hidden; }
.al-flat__h { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 18px; padding: 12px 22px; background: var(--al-paper); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--al-ink-muted); }
.al-fr { display: grid; grid-template-columns: 90px 220px minmax(0, 1fr); gap: 8px 18px; align-items: center; padding: 14px 22px; border-top: 1px solid var(--al-line); }
.al-fr__y { font-weight: 900; font-size: 22px; color: var(--al-blue); font-variant-numeric: tabular-nums; }

/* results */
.al-res { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.al-rc { display: grid; gap: 12px; align-content: start; padding: 28px; border-radius: 16px; border: 1px solid var(--al-line); background: var(--al-white); }
.al-rc--latest { border: 2px solid var(--al-red); }
.al-rc__y { font-weight: 900; font-size: 56px; line-height: .9; color: var(--al-blue); font-variant-numeric: tabular-nums; }
.al-rc h3 { margin: 0; font-weight: 600; font-size: 20px; }
.al-rc p { margin: 0; color: var(--al-ink-muted); font-size: 15px; }

/* gallery: core Gallery block */
.al-pg .wp-block-gallery.has-nested-images { gap: 12px; }
.al-pg .wp-block-gallery.has-nested-images figure.wp-block-image { border-radius: 12px; overflow: hidden; background: var(--al-paper-sunk); }
.al-pg .wp-block-gallery.has-nested-images figure.wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; }

/* contact */
.al-cways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.al-cw { display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: 16px; border: 1px solid var(--al-line); background: var(--al-white); }
.al-cw .al-lbl { color: var(--al-ink-muted); }
.al-cw strong { font-weight: 600; font-size: 20px; line-height: 1.3; word-break: break-word; }
.al-cw strong a { color: inherit; text-decoration: none; }
.al-cw strong a:hover { color: var(--al-blue); text-decoration: underline; text-underline-offset: 4px; }
.al-cw__row { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.al-cw__ok { font-size: 13px; color: var(--al-blue); min-height: 20px; }

/* plain post/page prose (direct children only, so theme blocks keep their own styles) */
.al-pg .entry-content > :is(p, ul, ol, h2, h3) a { color: var(--al-blue); }
.al-pg .entry-content > :is(ul, ol) { padding-left: 1.2em; }

/* ---- responsive ---------------------------------------------------------- */
@media (min-width: 981px) { .al-panel { display: none !important; } }
@media (max-width: 980px) {
	.al-links { display: none; }
	.al-burger { display: inline-block; }
	.al-ann { grid-template-columns: 1fr; }
	.al-ql { grid-template-columns: 1fr 1fr; }
	.al-cways { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
	.al-an { padding: 22px; }
	.al-nav > .al-in { gap: 10px; }
	.al-brand { white-space: nowrap; font-size: 17px; }
	.al-fbi { margin-left: 0; }
	.al-an__det td { display: block; width: auto; padding: 0; }
	.al-an__det td:first-child { width: auto; padding-top: 8px; }
	.al-hero > .al-in { min-height: 0; padding-block: 32px 260px; }
	.al-hero__logo { width: 80px; height: 80px; }
	.al-hero__sub { font-size: 19px; }
	.al-btn, .wp-block-button .wp-block-button__link { font-size: 15px; padding: 11px 18px; }
	.al-pennant { height: 72px; }
	.al-sk--bb { right: 5%; bottom: -38px; height: 320px; }
	.al-sk--tb { right: auto; left: -14px; bottom: 6px; height: 136px; }
	.al-sec { padding-block: 44px; }
	.al-sec--flush { padding-top: 0; }
	.al-stages { grid-template-columns: 1fr 1fr; gap: 10px; }
	.al-stage { padding: 14px; }
	.al-ql { grid-template-columns: 1fr; gap: 10px; }
	.al-q { grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; padding: 18px; }
	.al-q__ic { grid-row: span 3; }
	.al-foot > .al-in { grid-template-columns: 1fr 1fr; padding-block: 80px 32px; }
	.al-foot__brand-wrap { grid-column: 1 / -1; }
	.al-phead > .al-in { padding-block: 28px 150px; }
	.al-phead__lead { font-size: 17px; padding-right: 56px; }
	.al-phead .al-sk { right: 4%; height: 240px; bottom: -30px; }
	.al-phead .al-sk--wide { right: -30%; height: 120px; bottom: 10px; }
	.al-phead .al-pennant { height: 60px; }
	.al-pg { padding-block: 32px 48px; }
	.al-tl li { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
	.al-tl__n { width: 40px; height: 40px; font-size: 16px; }
	.al-tl__d { grid-column: 2; padding-top: 0; text-align: left; }
	.al-hm { padding: 20px 16px 12px; }
	.al-hm__list { --hm-g: 12px; }
	.al-hm__list::before { left: 13px; }
	.al-hm__i { grid-template-columns: 28px minmax(0, 1fr); row-gap: 2px; }
	.al-hm__dot { grid-row: 1 / span 2; grid-column: 1; }
	.al-hm__d { grid-column: 2; grid-row: 1; display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; text-align: left; padding-top: 4px; }
	.al-hm__t { grid-column: 2; padding-top: 0; }
	.al-hm__i.is-now { margin-inline: -8px; padding-inline: 8px; }
	.al-doc { grid-template-columns: 44px minmax(0, 1fr); padding: 16px; }
	.al-doc__ft { width: 44px; height: 52px; }
	.al-doc .al-btn { grid-column: 1 / -1; justify-self: start; }
	.al-rw { grid-template-columns: 1fr; gap: 6px; padding: 14px 16px; }
	.al-fr { grid-template-columns: 64px minmax(0, 1fr); padding: 14px 16px; }
	.al-fr .al-grp:empty { display: none; }
	.al-fr .al-files { grid-column: 2; }
	.al-flat__h { grid-template-columns: 64px minmax(0, 1fr); padding: 12px 16px; }
	.al-yr > summary { padding: 16px; }
	.al-res { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .al-chev { transition: none; } }
