/* Correctness only. Palette, type and spacing come from the site.
   Every interactive element here takes its height from the box rather than from
   inline padding: padding on a short nav link makes it paint past its <nav>,
   measured on the live site. */
.skip-link {
  position: fixed;
  inset-block-start: .75rem;
  inset-inline-start: .75rem;
  z-index: 20;
  padding: .65rem .9rem;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  width: min(100% - 2rem, 88rem);
  min-block-size: 5.5rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }

/* 44px minimum, from the box. WCAG 2.5.8 exempts an inline anchor inside a <p>
   or <li> and nothing else. */
.site-header nav a, .site-header .brand, footer a, footer .brand {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
}

footer {
  width: min(100% - 2rem, 88rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
}
.footer-links { display: flex; flex-wrap: wrap; align-items: start; gap: 1.4rem; }
.copyright { grid-column: 1 / -1; }

@media (max-width: 38rem) {
  .site-header { min-block-size: 4.5rem; }
  footer { grid-template-columns: 1fr; }
}

/* Correctness only; the site owns colour, radius and typography. The label is
   the complete target and its 44px minimum comes from its box, not from a small
   radio padded beyond the layout. */
.choice-set {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.choice-set-options {
  min-inline-size: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: .5rem;
}
.choice-option {
  min-inline-size: 0;
  min-block-size: 44px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  align-items: center;
  gap: .65rem;
  padding: .65rem .75rem;
  cursor: pointer;
}
.choice-option input[type="radio"] {
  inline-size: 1.25rem;
  block-size: 1.25rem;
  margin: 0;
  accent-color: var(--accent);
}
.choice-option > :not(input) {
  min-inline-size: 0;
  overflow-wrap: anywhere;
}
.choice-option:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.progress-track {
  position: relative;
  block-size: .6rem;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.progress-fill {
  block-size: 100%;
  inline-size: var(--progress, 0%);
  border-radius: inherit;
  background: var(--accent);
  transition: inline-size .3s ease;
}
/* Indeterminate: set when the work cannot report a percentage.

   THIS SELECTOR USED TO BE THE VALUE SLOT ITSELF, and that was this block's own
   defect. Driving the sweep from a string in `aria-valuenow` means a meter that
   looks like it is working announces a value no assistive technology can read,
   and it contradicts the block's own min/max contract in the same breath. A
   visual state belongs in a data attribute; `aria-valuenow` stays a number for
   the whole life of the job. */
.progress-track[data-indeterminate="true"] .progress-fill {
  inline-size: 40%;
  animation: progress-sweep 1.2s ease-in-out infinite;
}
@keyframes progress-sweep {
  from { transform: translateX(-100%); }
  to   { transform: translateX(250%); }
}
.progress-status { min-block-size: 1.5rem; color: var(--ink-muted); font-variant-numeric: tabular-nums; }

/* Motion is the decoration, the number is the information. */
@media (prefers-reduced-motion: reduce) {
  .progress-fill { transition: none; animation: none; }
  .progress-track[data-indeterminate="true"] .progress-fill { inline-size: 100%; opacity: .4; }
}

/* The card grid uses six tracks so five cards break 3 + 2 rather than leaving a
   hole in the second row. The border rules assume exactly five; adding or
   removing a card means revisiting them. */
.result { overflow: hidden; }
.result-intro { padding: clamp(1.5rem, 5vw, 3.5rem); }
.result-subject { margin-block: 1.4rem 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }
.score-wrap { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2rem; }

.result-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.result-grid article { grid-column: span 2; min-block-size: 15rem; padding: 2rem; }
.result-grid article:nth-child(4), .result-grid article:nth-child(5) { grid-column: span 3; }

.result-actions { padding: 1.2rem 2rem; display: flex; justify-content: space-between; gap: 1rem; }

@media (max-width: 48rem) {
  /* Stacked, the 3 + 2 spans stop meaning anything, and `span 2` against a
     single track would invent columns. Undo both at the same specificity. */
  .result-grid { grid-template-columns: 1fr; }
  .result-grid article,
  .result-grid article:nth-child(4),
  .result-grid article:nth-child(5) { grid-column: auto; min-block-size: auto; }
  .score-wrap { grid-template-columns: 1fr; }
  /* Long subjects wrap: two long names plus a mark between them do not fit a
     phone, and the type is already at its floor. */
  .result-subject { flex-direction: column; align-items: stretch; gap: .5rem; }
  .result-actions { flex-direction: column; }
}

/* Reserved height per breakpoint, before anything loads.
   A slot with no unit wired yet renders nothing at all rather than an empty
   frame -- an ad-shaped hole reads as a broken page. */
.sf-adslot { display: block; margin-block: 2.5rem; }
.sf-adslot[data-ad-unit=""] { display: none; }
.sf-adslot ins { display: block; inline-size: 100%; }

/* 44px is the documented minimum. Inline anchors inside a <p> or <li> are
   exempt (WCAG 2.5.8) because padding them wrecks the surrounding line height. */
.text-button, nav a, footer a {
  min-block-size: 44px;
  display: inline-flex;
  align-items: center;
}

:root {
  color-scheme: light;
  --ink: #14221d;
  --muted: #5d6b65;
  --paper: #f4f1e8;
  --surface: #fffdf7;
  --line: #cad3c9;
  --accent: #ee6848;
  --lime: #d7ff67;
  --blue: #a6d8f0;
  --violet: #cabcf2;
  --shadow: 0 18px 50px rgb(20 34 29 / .09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.55; }
a { color: inherit; text-underline-offset: .2em; }
button, input { font: inherit; }
.skip-link { position: fixed; inset: .5rem auto auto .5rem; z-index: 100; padding: .75rem 1rem; background: var(--ink); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { max-width: 1240px; margin: auto; min-height: 76px; padding: .85rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.site-header nav { display: flex; gap: clamp(.65rem,2vw,1.5rem); flex-wrap: wrap; font-size: .92rem; font-weight: 700; }
.site-header nav a, .brand { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 850; letter-spacing: -.03em; }
.atlas-mark { inline-size: 36px; block-size: 36px; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; position: relative; background: var(--lime); }
.atlas-mark i { position: absolute; inline-size: 3px; block-size: 19px; background: var(--ink); transform: rotate(30deg); }
.atlas-mark i:nth-child(2) { transform: rotate(150deg); }
.atlas-mark i:nth-child(3) { block-size: 7px; transform: rotate(90deg); background: var(--accent); }
main { min-block-size: 70vh; overflow: clip; }
.hero, .catalogue-section, .test-list, .related, .source-note, .content-page, .test-shell, .crumb, .method-note, .category-hero, .editorial-band { max-width: 1160px; margin-inline: auto; padding-inline: 1.25rem; }
.atlas-hero { min-height: 650px; padding-block: clamp(4rem,8vw,8rem); display: grid; grid-template-columns: minmax(0,1.05fr) minmax(300px,.95fr); align-items: center; gap: 2rem; }
.hero-copy { max-width: 690px; }
.eyebrow, .card-kicker { margin: 0 0 .75rem; font-size: .76rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(2.8rem,7vw,6.5rem); }
h2 { font-size: clamp(2rem,4vw,3.5rem); }
h3 { font-size: 1.35rem; }
.hero-lead { max-width: 740px; font-size: clamp(1.1rem,2vw,1.35rem); color: var(--muted); }
.hero-actions, .form-actions, .result-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.button { min-height: 48px; display: inline-flex; justify-content: center; align-items: center; border: 2px solid var(--ink); border-radius: 999px; padding: .7rem 1.15rem; font-weight: 800; text-decoration: none; cursor: pointer; }
.button.primary { background: var(--ink); color: white; }
.button.secondary { background: transparent; color: var(--ink); }
.button:hover { transform: translateY(-1px); box-shadow: 0 6px 0 var(--lime); }
.button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.button:disabled { cursor: not-allowed; opacity: .45; transform: none; box-shadow: none; }
.trust-row { display: flex; gap: .75rem 1.5rem; flex-wrap: wrap; padding: 0; margin: 2rem 0 0; list-style: none; font-size: .9rem; font-weight: 700; }
.trust-row li::before { content: "✓"; margin-right: .4rem; color: #31754e; }
.atlas-visual { aspect-ratio: 1; position: relative; max-width: 500px; width: 100%; justify-self: center; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .15),var(--shadow); }
.ring { position: absolute; inset: 12%; border: 1px solid rgb(255 255 255 / .35); border-radius: 50%; }
.ring-two { inset: 28%; border-color: var(--lime); transform: rotate(25deg); }
.atlas-visual::before,.atlas-visual::after { content:""; position:absolute; inset:50% 8% auto; border-top:1px solid rgb(255 255 255 / .25); transform:rotate(28deg); }
.atlas-visual::after { transform:rotate(-38deg); }
.pin { position: absolute; border-radius: 999px; padding: .5rem .8rem; font-size: .8rem; font-weight: 800; box-shadow: var(--shadow); }
.pin-one { inset: 17% auto auto 15%; background: var(--lime); }
.pin-two { inset: 58% 5% auto auto; background: var(--blue); }
.pin-three { inset: auto auto 14% 23%; background: var(--violet); }
.pin-four { inset: 35% auto auto 58%; background: #ffb4a2; }
.catalogue-section { padding-block: 5rem; }
.section-heading { max-width: 700px; margin-bottom: 2rem; }
.section-heading h2 { margin: 0 0 1rem; }
.category-grid, .test-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 1rem; }
.category-card { grid-column: span 4; min-height: 270px; padding: 1.5rem; border: 2px solid var(--ink); border-radius: 24px; display: flex; flex-direction: column; box-shadow: 7px 7px 0 var(--ink); }
.category-card:nth-child(1),.category-card:nth-child(2) { grid-column: span 6; }
.category-card h2 { margin: 0; }
.category-card .count { margin-top: auto; font-weight: 800; }
.category-think { background: var(--lime); }
.category-personality { background: var(--violet); }
.category-work { background: var(--blue); }
.category-focus { background: #ffb4a2; }
.category-feel { background: #f5d99c; }
.category-relate { background: #bfe2c2; }
.category-play { background: #f1c4df; }
.editorial-band { margin-block: 4rem 7rem; padding-block: 3rem; border-block: 2px solid var(--ink); }
.editorial-band h2 { max-width: 760px; margin-block: 0 1rem; }
.editorial-band p { max-width: 760px; }
.crumb { display: flex; gap: .6rem; flex-wrap: wrap; padding-block: 1.5rem; font-size: .88rem; color: var(--muted); }
.category-hero { padding-block: 4rem; border-radius: 32px; margin-bottom: 4rem; }
.category-hero h1 { font-size: clamp(3.2rem,7vw,6rem); }
.test-list { padding-bottom: 5rem; }
.test-card { grid-column: span 4; padding: 1.35rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.test-card h3 { margin: 0 0 .75rem; }
.test-card h3 a { text-decoration-thickness: 2px; }
.card-meta { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.method-note,.source-note { margin-block: 3rem; padding-block: 2rem; border-top: 1px solid var(--line); }
.test-shell { max-width: 900px; padding-block: 3rem 5rem; }
.test-landing,.test-work,.review-panel,.result,.failure-panel { border: 2px solid var(--ink); border-radius: 28px; padding: clamp(1.25rem,4vw,3rem); background: var(--surface); box-shadow: 9px 9px 0 var(--ink); }
.test-landing h1 { font-size: clamp(2.6rem,6vw,5rem); }
.test-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-block: 2rem; border-block: 1px solid var(--line); }
.test-facts div { padding: 1rem; border-right: 1px solid var(--line); }
.test-facts div:last-child { border-right: 0; }
.test-facts dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.test-facts dd { margin: .35rem 0 0; font-weight: 750; }
.limits { margin-block: 1.5rem; padding: 1rem; border-left: 5px solid var(--accent); background: #fff3ee; }
.limits p,.privacy-line { margin-bottom: 0; }
.privacy-line { color: var(--muted); font-size: .9rem; }
.progress { margin-bottom: 2rem; }
.progress-track { overflow: hidden; border: 1px solid var(--ink); border-radius: 999px; background: #e6e8e2; }
.progress-fill { block-size: 10px; background: var(--accent); transition: width .2s ease; }
.section-intro { margin-bottom: 2rem; }
.choice-set { margin-block: 0 2rem; padding-block: 0 1.5rem; border-bottom: 1px solid var(--line); }
.choice-set legend { max-width: 720px; margin-bottom: 1rem; font-size: 1.08rem; font-weight: 800; }
.question-number { color: var(--accent); }
.choice-set-options { grid-template-columns: repeat(auto-fit,minmax(min(100%,10rem),1fr)); }
.choice-option { border: 1px solid var(--line); border-radius: 12px; background: white; }
.choice-option:has(input:checked) { border-color: var(--ink); background: var(--lime); box-shadow: inset 0 0 0 1px var(--ink); }
.choice-hint { margin: .5rem 0 0; color: var(--muted); font-size: .78rem; }
.form-error { min-height: 1.5rem; color: #9e2e20; font-weight: 750; }
.result .score-figure { font-size: clamp(2.5rem,8vw,5rem); }
.result-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.dimension-card { border: 1px solid var(--line); border-radius: 16px; padding: 1rem; background: white; }
.dimension-card h3 { margin-top: 0; text-transform: capitalize; }
.dimension-meter { height: 11px; overflow: hidden; border-radius: 999px; background: #e1e6de; }
.dimension-meter span { display: block; height: 100%; background: linear-gradient(90deg,var(--accent),#edb31d); }
.related { padding-block: 3rem; }
.source-note { max-width: 900px; }
.content-page { max-width: 850px; padding-block: 3rem 7rem; }
.content-page h1 { font-size: clamp(2.8rem,6vw,5rem); }
.content-page h2,.source-entry h2 { margin-top: 2.5rem; font-size: 1.7rem; }
.source-entry { padding-block: 1rem; border-bottom: 1px solid var(--line); }
.crumb a,
.category-card h2 a,
.test-card h3 a,
.related h3 a,
.editorial-band > a { display: inline-flex; align-items: center; min-block-size: 44px; }
.sf-adslot[data-ad-unit=""] { display: none; }
footer { max-width: 1160px; margin: 4rem auto 0; padding: 3rem 1.25rem; border-top: 2px solid var(--ink); display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; }
.copyright { grid-column: 1 / -1; color: var(--muted); font-size: .8rem; }

@media (max-width: 820px) {
  .site-header { align-items: flex-start; }
  .site-header nav { justify-content: flex-end; }
  .site-header nav a:nth-child(4) { display: none; }
  .atlas-hero { min-height: auto; grid-template-columns: 1fr; padding-block: 3rem 5rem; }
  .atlas-visual { max-width: 340px; order: -1; }
  .category-card,.category-card:nth-child(1),.category-card:nth-child(2),.test-card { grid-column: span 6; }
  .test-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .test-facts div:nth-child(2) { border-right: 0; }
  .test-facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .result-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .site-header { min-height: 66px; }
  .site-header nav a:nth-child(n+3) { display: none; }
  .atlas-mark { inline-size: 31px; block-size: 31px; }
  h1 { font-size: 2.7rem; }
  .category-card,.category-card:nth-child(1),.category-card:nth-child(2),.test-card { grid-column: 1 / -1; }
  .category-card { min-height: 230px; }
  .test-landing,.test-work,.review-panel,.result,.failure-panel { border-radius: 20px; box-shadow: 5px 5px 0 var(--ink); }
  .test-facts { grid-template-columns: 1fr; }
  .test-facts div { border-right: 0; border-bottom: 1px solid var(--line); }
  .form-actions .button,.result-actions .button { flex: 1 1 100%; }
  footer { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
