/* The exam pages' design — template 16, the exam page (plan-exam-design-2026-11-04; the package's reba-design-system.css:
   .xq-* the questions, .etb-* the EasyTest banners — EasyTest's colors inside the banners only — and the lead band).
   A STATIC file, linked by the design alone (templates/exam-design/stylesheet.ts): no other page loads it — the Next 16
   check of 4.11 (CSS modules of a template land in the CSS of every content page). The file in public/ is this file,
   named by its hash (scripts/verify-exam-design.ts). The site's tokens; the few it lacks are set on .xd, not on :root.
   Mobile first (360–390px): 44px targets, no horizontal scroll, one sticky bar. No @import, no url(), nothing external. */

.xd {
  --etb-navy: #1b2b5e;
  --etb-navy-900: #0f1b3d;
  --etb-gold: #c9a84c;
  --etb-gold-hover: #d6b862;
  --etb-cream: #fdf8ec;
  --etb-ink-soft: #d5dbec;
  --etb-ink-mute: #b9c2db;
  --color-green-400: #a6d257;
  --radius-2xl: 28px;
  --shadow-lg: 0 18px 50px rgba(10, 55, 68, 0.14);
  --font-size-5xl: 2.3rem;
}
@media (min-width: 601px) {
  .xd {
    --font-size-5xl: 3.25rem;
  }
}

/* ── buttons (the package's .btn) ── */
.xd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 12px 24px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard);
}
.xd-btn svg {
  flex-shrink: 0;
}
.xd-btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.xd-btn--primary:hover {
  background: var(--color-primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.xd-btn--accent {
  background: var(--color-green-500);
  color: #173009;
}
.xd-btn--accent:hover {
  background: var(--color-green-600);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.xd-btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}
.xd-btn--ghost:hover {
  border-color: var(--color-primary);
  background: var(--color-blue-50);
}
.xd-btn--sm {
  padding: 9px 18px;
  font-size: var(--font-size-sm);
}
.xd-btn--lg {
  padding: 15px 32px;
  font-size: var(--font-size-lg);
}
.xd-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.xd-eyebrow {
  display: inline-block;
  margin-bottom: var(--space-3);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
  color: var(--color-navy-700);
}

/* ── the header's download buttons (.xq-downloads): long link texts wrap, on phones a full row each ── */
.xq-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.xq-downloads .xd-btn {
  white-space: normal;
  text-align: start;
}
@media (max-width: 600px) {
  .xq-downloads .xd-btn {
    flex: 1 1 100%;
    justify-content: flex-start;
  }
}

/* ── the exam section ── */
.xd-exam {
  padding-block: 44px;
}
@media (min-width: 601px) {
  .xd-exam {
    padding-block: var(--space-16);
  }
}
.xd-col {
  max-width: 820px;
  min-width: 0;
}
.xd-box {
  margin-bottom: var(--space-6);
}
.xd-hero {
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: var(--space-6);
  border-radius: var(--radius-lg);
}
.xq-intro {
  margin-bottom: var(--space-6);
}
.xq-intro h2 {
  margin: 0 0 var(--space-2);
}
.xq-intro > p {
  margin: 0;
  color: var(--color-text-secondary);
  text-wrap: pretty;
}
.xq-intro .xd-slice {
  margin-top: var(--space-4);
}

/* the practice toolbar: sticky on wide screens, in the flow at 900px and narrower (one sticky bar on phones) */
.xq-toolbar {
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-4);
  margin-bottom: var(--space-5);
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 901px) {
  .xq-toolbar {
    position: sticky;
    top: 86px;
  }
}
.xq-progress {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
}
.xq-progress b {
  color: var(--color-text-primary);
}
.xq-tools {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.xq-tools .xd-btn[aria-pressed='true'] {
  background: var(--color-blue-50);
  border-color: var(--color-primary);
}

/* the questions */
.xq-list {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.xq {
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  scroll-margin-top: 170px;
}
@media (min-width: 761px) {
  .xq {
    padding: var(--space-6);
  }
}
.xq-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.xq-num {
  margin: 0;
  font-size: var(--font-size-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-blue-700);
}
.xq-void {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  background: var(--color-gray-100);
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-text-secondary);
}
.xq-stem p {
  margin: 0 0 var(--space-3);
  line-height: 1.75;
  color: var(--color-text-primary);
  text-wrap: pretty;
}
.xq-stem p:last-child {
  margin: 0;
  font-weight: 700;
}
.xq-opts {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
  margin: var(--space-4) 0 0;
  padding: 0;
  border: 0;
  list-style: none;
}
.xq-opt {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-base) var(--ease-standard), background var(--duration-base) var(--ease-standard);
}
label.xq-opt {
  cursor: pointer;
}
.xq-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
label.xq-opt:hover {
  border-color: var(--color-primary);
  background: var(--color-blue-50);
}
.xq-opt:has(input:focus-visible) {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
/* a pick, also without JavaScript */
.xq-opt:has(input:checked) {
  border-color: var(--color-primary);
  background: var(--color-blue-50);
}
.xq-letter {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-text-secondary);
}
.xq-opt-text {
  padding-top: 2px;
  line-height: 1.6;
  color: var(--color-text-primary);
}
/* marked by the page's script (data-picked), or all answers shown */
.xq[data-picked] label.xq-opt {
  cursor: default;
}
.xq[data-picked] label.xq-opt:not([data-key]):not(:has(input:checked)):hover {
  border-color: var(--color-border);
  background: transparent;
}
.xq[data-picked] .xq-opt[data-key],
.xq-list[data-show-answers] .xq-opt[data-key] {
  border-color: var(--color-action-accessible);
  background: var(--color-green-50);
}
.xq[data-picked] .xq-opt[data-key] .xq-letter,
.xq-list[data-show-answers] .xq-opt[data-key] .xq-letter {
  border-color: var(--color-action-accessible);
  background: var(--color-action-accessible);
  color: #fff;
}
/* the pick among the accepted options — more than one may be right (83 q1; 84 q25, all accepted): a thicker border
   (inset, so nothing moves) and a ✓ at the end of the line, which only the eye needs (the radio says it is checked) */
.xq[data-picked] .xq-opt[data-key]:has(input:checked) {
  box-shadow: inset 0 0 0 1px var(--color-action-accessible);
}
.xq[data-picked] .xq-opt[data-key]:has(input:checked)::after {
  content: '✓';
  content: '✓' / '';
  flex-shrink: 0;
  margin-inline-start: auto;
  font-size: var(--font-size-lg);
  font-weight: 800;
  line-height: 28px;
  color: var(--color-action-accessible);
}
.xq[data-picked] .xq-opt:not([data-key]):has(input:checked) {
  border-color: var(--color-error);
  background: color-mix(in srgb, var(--color-error) 7%, var(--color-surface));
}
.xq[data-picked] .xq-opt:not([data-key]):has(input:checked) .xq-letter {
  border-color: var(--color-error);
  background: var(--color-error);
  color: #fff;
}
.xq-ans,
.xq-key {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px dashed var(--color-border);
}
.xq-ans summary,
.xq-key summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-blue-700);
}
.xq-ans summary::-webkit-details-marker,
.xq-key summary::-webkit-details-marker {
  display: none;
}
.xq-ans summary::before,
.xq-key summary::before {
  content: '+';
  font-size: 1.25em;
  line-height: 1;
}
.xq-ans[open] summary::before,
.xq-key[open] summary::before {
  content: '−';
}
.xq-ans p {
  margin: var(--space-2) 0 0;
  line-height: 1.7;
  color: var(--color-text-secondary);
}
.xq-ans strong {
  color: var(--color-action-accessible);
}
.xq-key {
  margin-top: var(--space-6);
}

/* the result of a whole exam */
.xq-result {
  margin-top: var(--space-6);
  padding: var(--space-10) var(--space-6);
  text-align: center;
  background: var(--gradient-brand-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}
.xq-result[hidden] {
  display: none;
}
.xq-score {
  margin: var(--space-2) 0;
  font-size: var(--font-size-5xl);
  font-weight: 800;
  line-height: 1;
  color: var(--color-navy-deep);
}
.xq-result p {
  max-width: 46ch;
  margin: 0 auto var(--space-5);
  color: var(--color-text-secondary);
}
.xq-result .xd-btn {
  white-space: normal;
}

/* the end of the page's text, and the pager */
.xd-end {
  margin-top: var(--space-8);
}
.xq-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}
.xq-pager a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  font-weight: 700;
  color: var(--color-text-primary);
  text-decoration: none;
}
.xq-pager a span {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-text-tertiary);
}
.xq-pager a:hover {
  color: var(--color-blue-700);
}

/* ── EasyTest banners (.etb-*) ── */
.etb-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  direction: ltr;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.etb-logo svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.etb-logo b {
  font-weight: 900;
  color: #fff;
}
.etb-logo i {
  font-style: normal;
  color: var(--etb-gold);
}
.etb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 12px;
  background: var(--etb-gold);
  color: var(--etb-navy-900);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(201, 168, 76, 0.28);
  transition: background 0.15s, transform 0.15s;
}
.etb-btn:hover {
  background: var(--etb-gold-hover);
  color: var(--etb-navy-900);
  transform: translateY(-1px);
}
.etb-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* 1. the card after the questions */
.etb-card {
  container-type: inline-size;
  margin-top: var(--space-12);
}
.etb-card-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: end;
  overflow: hidden;
  padding: 30px 24px 0;
  background: var(--etb-navy-900);
  background-image: radial-gradient(120% 90% at 0% 100%, rgba(43, 64, 132, 0.55), transparent 60%);
  border-radius: 20px;
  color: #fff;
  box-shadow: 0 18px 50px rgba(15, 27, 61, 0.22);
}
.etb-copy {
  align-self: center;
  padding-bottom: 20px;
}
.etb-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 18px;
}
.etb-by {
  font-size: 14px;
  color: var(--etb-ink-mute);
}
.etb-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 14px;
  border: 1px solid rgba(201, 168, 76, 0.45);
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.14);
  color: #ebddae;
  font-size: 14px;
  font-weight: 700;
}
.etb-count svg {
  color: var(--etb-gold);
}
.etb-title {
  margin: 0 0 12px;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.22;
  color: #fff;
  text-wrap: balance;
}
.etb-title em {
  font-style: normal;
  color: var(--etb-gold);
}
.etb-text {
  max-width: 54ch;
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--etb-ink-soft);
  text-wrap: pretty;
}
.etb-list {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.etb-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
}
.etb-list svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--etb-gold);
}
.etb-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.etb-cta .etb-btn {
  flex: 1 1 100%;
}
.etb-note {
  font-size: 14px;
  color: var(--etb-ink-mute);
}
.etb-more-line {
  margin: 18px 0 0;
}
.etb-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 4px;
}
.etb-more:hover {
  color: var(--etb-gold);
  text-decoration-color: var(--etb-gold);
}
/* the phone: an HTML mockup of a question screen (decorative, aria-hidden) */
.etb-phone {
  justify-self: center;
  width: min(100%, 250px);
  height: 220px;
  padding: 10px 10px 0;
  background: #0a1230;
  border-radius: 38px 38px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.etb-screen {
  display: flex;
  flex-direction: column;
  gap: 9px;
  height: 100%;
  overflow: hidden;
  padding: 16px 14px 0;
  background: #f6f7fb;
  border-radius: 30px 30px 0 0;
  color: var(--etb-navy-900);
  font-size: 12px;
  line-height: 1.45;
}
.etb-s-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #4a5578;
}
.etb-s-top span:last-child {
  direction: ltr;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e7eaf3;
}
.etb-s-bar {
  height: 5px;
  overflow: hidden;
  border-radius: 5px;
  background: #e1e5ef;
}
.etb-s-bar i {
  display: block;
  width: 28%;
  height: 100%;
  border-radius: 5px;
  background: var(--etb-gold);
}
.etb-s-q {
  margin: 2px 0 0;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.4;
}
.etb-s-opts {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.etb-s-opts li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #dde2ec;
  border-radius: 10px;
  background: #fff;
  font-size: 12px;
}
.etb-s-opts li b {
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #eef0f6;
  font-size: 11px;
}
.etb-s-opts li.ok {
  border-color: #2e9e5b;
  background: #eaf7ef;
  font-weight: 700;
}
.etb-s-opts li.ok b {
  background: #2e9e5b;
  color: #fff;
}
.etb-s-exp {
  padding: 10px 11px;
  border: 1px solid #eedfb5;
  border-radius: 10px;
  background: var(--etb-cream);
  font-size: 11.5px;
}
.etb-s-exp strong {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
}
.etb-s-exp span {
  display: block;
  margin-top: 5px;
  font-weight: 700;
  color: #8a6d1e;
}
@container (min-width: 521px) {
  .etb-phone {
    width: 250px;
    height: 300px;
  }
}
@container (min-width: 761px) {
  .etb-card-in {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 40px;
    padding: 44px 48px 0;
  }
  .etb-copy {
    padding-bottom: 44px;
  }
  .etb-title {
    font-size: 30px;
  }
  .etb-text {
    font-size: 17px;
  }
  .etb-cta .etb-btn {
    flex: 0 0 auto;
  }
  .etb-phone {
    width: 270px;
    height: 410px;
  }
}

/* 2. the closing band */
.etb-band {
  padding: 52px 0;
  background: var(--etb-navy-900);
  background-image: radial-gradient(80% 120% at 100% 0%, rgba(43, 64, 132, 0.5), transparent 60%);
  color: #fff;
}
.etb-band-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px 56px;
  align-items: center;
}
.etb-band h2 {
  margin: 14px 0 10px;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  text-wrap: balance;
}
.etb-band h2 em {
  font-style: normal;
  color: var(--etb-gold);
}
.etb-band p {
  max-width: 56ch;
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--etb-ink-soft);
}
.etb-band-cta {
  display: grid;
  justify-items: stretch;
  gap: 10px;
  text-align: center;
}
@media (min-width: 761px) {
  .etb-band {
    padding: 72px 0;
  }
  .etb-band-in {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .etb-band h2 {
    font-size: 34px;
  }
  .etb-band-cta {
    justify-items: center;
  }
}

/* 3. the sticky bar: phones only (900px and narrower), one, at the bottom; shown by the page's script (data-visible) */
.etb-sticky {
  display: none;
}
@media (max-width: 900px) {
  .etb-sticky {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--etb-navy-900);
    color: #fff;
    box-shadow: 0 -6px 24px rgba(15, 27, 61, 0.28);
    transform: translateY(110%);
    transition: transform 0.25s ease;
  }
  .etb-sticky[data-visible] {
    transform: none;
  }
  .etb-sticky > svg {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }
  .etb-sticky-t {
    display: grid;
    flex: 1;
    min-width: 0;
    line-height: 1.3;
  }
  .etb-sticky-t b {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
  }
  .etb-sticky-t span {
    font-size: 13px;
    color: var(--etb-ink-mute);
  }
  .etb-sticky .etb-btn {
    min-height: 44px;
    padding: 0 16px;
    font-size: 15px;
    box-shadow: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .etb-sticky,
  .etb-btn,
  .xd-btn,
  .ea-chips a,
  .ey-card {
    transition: none;
  }
}

/* ── the lead band: the page's own form (components/site/LeadForm, unchanged) in the package's look — its title and
   intro in one column, its fields in a card beside them; CSS only ── */
.xd-lead {
  padding-block: 44px;
}
@media (min-width: 601px) {
  .xd-lead {
    padding-block: var(--space-16);
  }
}
.xd-lead-grid {
  padding: var(--space-8) var(--space-5);
  background: var(--gradient-navy-deep);
  border-radius: var(--radius-2xl);
}
.xd-lead-grid > section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: 'title' 'note' 'card';
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
.xd-lead-grid > section > h2 {
  grid-area: title;
  color: var(--color-text-inverse);
  text-wrap: balance;
}
.xd-lead-grid > section > p {
  grid-area: note;
  max-width: 46ch;
  font-size: var(--font-size-md);
  line-height: 1.65;
  color: var(--color-blue-50);
}
.xd-lead-grid > section > div[role='status'] {
  grid-area: card;
  align-self: start;
}
.xd-lead-grid > section > form {
  grid-area: card;
  grid-template-columns: minmax(0, 1fr);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 901px) {
  .xd-lead-grid {
    padding: var(--space-16) var(--space-12);
  }
  .xd-lead-grid > section {
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    grid-template-areas: 'title card' 'note card' '. card';
    grid-template-rows: auto auto 1fr;
    column-gap: var(--space-12);
    align-items: start;
  }
  .xd-lead-grid > section > form {
    padding: var(--space-8);
  }
}

/* ══ stage 2: templates 14 (the archive, pages 7 and 6) and 15 (the year pages) — the package's 14-exam-archive.html and
   15-exam-year.html, mobile first ══ */

/* ── the areas: sections, the head of an area, the header's intro, the text after the cards ── */
.xd-section {
  padding-block: 44px;
}
@media (min-width: 601px) {
  .xd-section {
    padding-block: var(--space-16);
  }
}
.xd-alt {
  background: var(--color-gray-50);
}
.container.xd-narrow {
  max-width: 880px;
}
.xd-head2 {
  max-width: 720px;
  margin: 0 auto var(--space-8);
  text-align: center;
}
.xd-head2 h2 {
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
.xd-answer {
  margin: 0;
  font-size: var(--font-size-lg);
  line-height: 1.65;
  color: var(--color-text-secondary);
  text-wrap: pretty;
}
.xd .xd-intro {
  max-width: 64ch;
  margin-top: var(--space-5);
}
.xd .xd-intro p {
  font-size: var(--font-size-lg);
  line-height: 1.65;
  color: var(--color-text-secondary);
}
.xd-end {
  margin-top: var(--space-8);
}
.xd-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-8);
  margin: var(--space-8) 0 0;
}
.xd-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 700;
  color: var(--color-blue-700);
  text-decoration: none;
}
.xd-links a:hover {
  text-decoration: underline;
}

/* ── "the upcoming exam" (14, in the header; decision 2): on phones the date beside the title, the rest below ── */
.ea-upcoming {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 var(--space-4);
  align-items: center;
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.ea-upcoming > :not(.ea-upcoming-date) {
  display: contents;
}
.ea-upcoming-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 76px;
  border-radius: var(--radius-md);
  background: var(--gradient-navy-deep);
  color: var(--color-text-inverse);
  line-height: 1;
}
.ea-upcoming-date b {
  font-size: var(--font-size-2xl);
  font-weight: 800;
}
.ea-upcoming-date span {
  margin-top: 6px;
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-green-400);
}
.ea-upcoming p {
  margin: 0;
  font-size: var(--font-size-sm);
  line-height: 1.6;
  color: var(--color-text-secondary);
}
.ea-upcoming p:not(.ea-upcoming-title) {
  grid-column: 1 / -1;
  margin-top: var(--space-3);
}
.ea-upcoming .ea-upcoming-title {
  font-size: var(--font-size-md);
  font-weight: 800;
  color: var(--color-text-primary);
  text-wrap: balance;
}
.ea-upcoming .ea-upcoming-next {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}
.ea-upcoming-next b {
  font-weight: 700;
  color: var(--color-text-primary);
}
.ea-upcoming-next a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 700;
  color: var(--color-blue-700);
  text-decoration: none;
  white-space: nowrap;
}
.ea-upcoming-next a:hover {
  text-decoration: underline;
}
/* after the last exam, while the next dates are not published */
.ea-upcoming--tbd .ea-upcoming-date {
  background: var(--color-blue-50);
  border: 1px dashed var(--color-primary);
  color: var(--color-blue-700);
}
.ea-upcoming--tbd .ea-upcoming-date span {
  margin: 0;
  padding: 0 6px;
  font-size: var(--font-size-xs);
  text-align: center;
  color: var(--color-blue-700);
}
@media (min-width: 561px) {
  .ea-upcoming {
    display: flex;
    max-width: 640px;
  }
  .ea-upcoming > :not(.ea-upcoming-date) {
    display: block;
  }
  .ea-upcoming .ea-upcoming-title {
    margin-bottom: 2px;
  }
  .ea-upcoming p:not(.ea-upcoming-title) {
    margin-top: 0;
  }
  .ea-upcoming .ea-upcoming-next {
    margin-top: var(--space-3);
  }
}

/* ── "בקצרה" (14 and 15; the package's .lp-facts, plan-exam-design-fixes-2026-11-05 §3): the label first in the document,
   the number above it on screen (column-reverse); two columns on phones, four from 901px ── */
.xd .lp-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin: var(--space-8) 0 0;
}
.xd .lp-fact {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--space-2);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
}
.xd .lp-fact dt {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}
.xd .lp-fact dd {
  margin: 0;
  font-size: var(--font-size-3xl);
  font-weight: 800;
  line-height: 1;
  color: var(--color-blue-700);
}
@media (min-width: 901px) {
  .xd .lp-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ── "דלגו לשנה" (14): on phones one row that scrolls in itself — the page never scrolls sideways ── */
.lp-toc {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  padding-block: var(--space-1);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to left, transparent, #000 12px, #000 calc(100% - 12px), transparent);
  mask-image: linear-gradient(to left, transparent, #000 12px, #000 calc(100% - 12px), transparent);
}
.lp-toc::-webkit-scrollbar {
  display: none;
}
.lp-toc > * {
  flex-shrink: 0;
  white-space: nowrap;
}
.lp-toc span {
  margin-inline-end: var(--space-1);
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-text-secondary);
}
.lp-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  text-decoration: none;
}
.lp-toc a:hover {
  border-color: var(--color-primary);
  color: var(--color-blue-700);
}
@media (min-width: 761px) {
  .lp-toc {
    flex-wrap: wrap;
    overflow-x: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* ── the dates table (14): a real table, shown as cards (one row = one sitting); the ARIA roles keep it a table ── */
.ea-dates-block {
  margin-bottom: var(--space-10);
}
#dates {
  scroll-margin-top: 104px;
}
.ea-dates {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 100%;
}
.ea-dates thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.ea-dates tbody {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}
.ea-dates tbody tr {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: 'season season' 'exam open' 'exam close';
  column-gap: var(--space-4);
  align-items: start;
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.ea-dates :where(th, td) {
  display: block;
  padding: 0;
  border: 0;
  text-align: start;
}
.ea-dates tbody th {
  grid-area: season;
  font-size: var(--font-size-sm);
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-blue-700);
}
.ea-date-exam {
  grid-area: exam;
  margin: var(--space-2) 0 0;
}
.ea-date-exam time {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-2xl);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-navy-deep);
  font-variant-numeric: tabular-nums;
}
.ea-date-exam span {
  display: block;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--color-text-secondary);
}
.ea-date-reg {
  grid-area: open;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: var(--space-2);
  padding-inline-start: var(--space-4);
  border-inline-start: 1px solid var(--color-border);
  line-height: 1.6;
}
.ea-date-reg + .ea-date-reg {
  grid-area: close;
  margin-top: 0;
  padding-top: var(--space-2);
}
.ea-date-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
}
.ea-date-reg time,
.ea-date-tbd {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
}
.ea-date-badge {
  position: absolute;
  top: 0;
  inset-inline-end: var(--space-5);
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-green-400);
  font-size: var(--font-size-xs);
  font-weight: 800;
  color: var(--color-navy-deep);
  white-space: nowrap;
  transform: translateY(-50%);
}
.ea-dates tr.is-next {
  background: var(--gradient-navy-deep);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.ea-dates tr.is-next th,
.ea-dates tr.is-next time,
.ea-dates tr.is-next .ea-date-tbd {
  color: var(--color-text-inverse);
}
.ea-dates tr.is-next .ea-date-exam span,
.ea-dates tr.is-next .ea-date-label {
  color: var(--color-blue-100);
}
.ea-dates tr.is-next .ea-date-exam,
.ea-dates tr.is-next .ea-date-reg {
  border-color: rgba(255, 255, 255, 0.2);
}
@media (min-width: 561px) {
  .ea-dates tbody {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ea-dates tbody tr {
    display: flex;
    flex-direction: column;
  }
  .ea-date-exam {
    flex: 1;
    margin: var(--space-2) 0 var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border);
  }
  .ea-date-reg {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0 var(--space-2);
    margin-top: 0;
    padding-inline-start: 0;
    border-inline-start: 0;
  }
  .ea-date-reg + .ea-date-reg {
    margin-top: var(--space-1);
    padding-top: 0;
  }
}
@media (min-width: 901px) {
  .ea-dates tbody {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ── the archive's years (14): a card per year — its sittings as chips, its year page, the EasyTest line ── */
.ea-years {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ea-year {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3) var(--space-6);
  align-items: center;
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  scroll-margin-top: 104px;
}
@media (min-width: 761px) {
  .ea-year {
    grid-template-columns: 132px minmax(0, 1fr) auto;
    padding: var(--space-5) var(--space-6);
  }
}
.ea-year h3 {
  margin: 0;
  font-size: var(--font-size-2xl);
  font-weight: 800;
  line-height: 1.05;
  color: var(--color-navy-deep);
}
.ea-year h3 span {
  display: block;
  margin-bottom: 4px;
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-blue-700);
}
.ea-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ea-chips a,
.ea-chip-text {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-decoration: none;
}
.ea-chips a {
  background: var(--color-blue-50);
  border: 1px solid transparent;
  color: var(--color-navy-deep);
  transition: border-color var(--duration-base) var(--ease-standard), background var(--duration-base) var(--ease-standard);
}
.ea-chips a:hover {
  background: var(--color-surface);
  border-color: var(--color-primary);
  color: var(--color-blue-700);
}
/* a sitting without a page or files yet: its name, no link */
.ea-chip-text {
  border: 1px dashed var(--color-border);
  color: var(--color-text-secondary);
}
.ea-chips-center {
  justify-content: center;
}
.ea-year-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-blue-700);
  text-decoration: none;
  white-space: nowrap;
}
.ea-year-link:hover {
  text-decoration: underline;
}
/* page 6: a card per year page — its title is its link, and the whole card leads there */
.ea-year.ea-year--page {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
}
.ea-year--page:hover {
  border-color: var(--color-primary);
}
.ea-year--page h3 {
  font-size: var(--font-size-xl);
  line-height: 1.3;
}
.ea-year--page h3 a {
  color: inherit;
  text-decoration: none;
}
.ea-year--page h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.ea-year--page .etb-year {
  position: relative;
  z-index: 1;
}
/* phones: two chips to a row, the year page's link a full row */
@media (max-width: 560px) {
  .ea-year .ea-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ea-year .ea-chips li {
    display: grid;
  }
  .ea-year .ea-chips a,
  .ea-year .ea-chip-text {
    justify-content: center;
    width: 100%;
    padding: 6px var(--space-3);
    line-height: 1.3;
    text-align: center;
  }
  .ea-year .ea-year-link {
    display: flex;
    justify-content: space-between;
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-border);
  }
}

/* the EasyTest line under a year (.etb-year: 2024 to 2026 only) — EasyTest's colors, in the banner only */
.etb-year {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  align-items: center;
  gap: 6px 12px;
  margin: 2px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--color-border);
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}
.etb-year svg.etb-m {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.etb-year a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 800;
  color: var(--etb-navy);
  text-decoration: none;
}
.etb-year a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.etb-year a svg {
  color: var(--etb-gold);
}

/* ── the sittings of a year page (15): a card each — the link to its exam page (the whole card), or its files ── */
.ey-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 761px) {
  .ey-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.ey-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard);
}
.ey-card--page:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}
.ey-card h3 {
  margin: 0;
  font-size: var(--font-size-xl);
}
.ey-card h3 a {
  color: var(--color-text-primary);
  text-decoration: none;
}
.ey-card--page h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.ey-card p {
  margin: 0;
  color: var(--color-text-secondary);
}
.ey-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-text-tertiary);
}
.ey-step svg {
  color: var(--color-primary);
}
.ey-card .xq-downloads {
  margin-top: var(--space-3);
}
