/* QuizGlobe — site styles
   Palette is sampled from the logo: cream surround, green tile, navy/blue globe. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #f8f4ed;
  --cream-deep: #f0e9dc;
  --paper: #fffdf9;
  --line: #e3dacb;
  --ink: #0b2f45;
  --ink-soft: #40596a;
  --navy: #093d5c;
  --navy-deep: #06293e;
  --blue: #1b6a94;
  --green: #48906d;
  --green-deep: #2a6748;
  --green-tint: #e4efe6;
  --blue-tint: #e1edf3;
  --honey: #a86a08;
  --honey-tint: #f6ead2;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(11, 47, 69, 0.06), 0 10px 30px -14px rgba(11, 47, 69, 0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.7rem);
}
h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}
h3 {
  font-size: 1.35rem;
  line-height: 1.25;
}
p {
  margin: 0 0 1em;
  text-wrap: pretty;
}
a {
  color: var(--blue);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--navy);
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: clamp(56px, 9vw, 104px);
}
.section-flush {
  padding-top: 0;
}
.card-title {
  font-size: 1.6rem;
}
.section-head {
  max-width: 46rem;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 40rem;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 1rem;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 244, 237, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  width: 44px;
  height: 44px;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 5px;
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
}
.site-nav a:hover {
  background: var(--cream-deep);
}
.site-nav a[aria-current="page"] {
  background: var(--green-tint);
  color: var(--green-deep);
}
.site-nav .nav-cta {
  background: var(--navy);
  color: #fff;
  margin-left: 6px;
}
.site-nav .nav-cta:hover,
.site-nav .nav-cta[aria-current="page"] {
  background: var(--navy-deep);
  color: #fff;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 10px var(--gutter) 18px;
  }
  .site-nav.is-open {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .site-nav a {
    padding: 12px 14px;
    border-radius: 10px;
  }
  .site-nav .nav-cta {
    margin: 8px 0 0;
    text-align: center;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--green-deep);
  color: #fff;
}
.btn-primary:hover {
  background: #215539;
  color: #fff;
}
.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
}
.btn-light {
  background: var(--cream);
  color: var(--navy-deep);
}
.btn-light:hover {
  background: #fff;
  color: var(--navy-deep);
}
.btn .arrow {
  width: 16px;
  height: 16px;
  flex: none;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- Home hero ---------- */
.hero {
  padding-block: clamp(48px, 8vw, 96px) clamp(48px, 7vw, 80px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.hero h1 em {
  font-style: italic;
  font-weight: 480;
  color: var(--green-deep);
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

/* Group structure diagram: parent on top, three companies beneath */
.tree {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(22px, 3.4vw, 34px);
  margin: 0;
}
.tree-caption {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 18px;
}
.tree-parent {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  margin-inline: auto;
  padding: 14px 22px 14px 14px;
  border-radius: 18px;
  background: var(--navy);
  color: #fff;
}
.tree-parent img {
  width: 56px;
  height: 56px;
}
.tree-parent strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.1;
}
.tree-parent span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b9d3e0;
}
.tree-children {
  --rail: 30px;
  --gap: 12px;
  list-style: none;
  margin: 0;
  padding: calc(var(--rail) * 2) 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  position: relative;
}
.tree-children::before {
  content: "";
  position: absolute;
  left: calc(50% - 1px);
  top: 0;
  height: var(--rail);
  border-left: 2px solid var(--line);
}
.tree-children li {
  position: relative;
}
.tree-children li::before {
  content: "";
  position: absolute;
  left: calc(50% - 1px);
  top: calc(var(--rail) * -1);
  height: var(--rail);
  border-left: 2px solid var(--line);
}
.tree-children li::after {
  content: "";
  position: absolute;
  top: calc(var(--rail) * -1);
  left: calc(var(--gap) / -2);
  right: calc(var(--gap) / -2);
  border-top: 2px solid var(--line);
}
.tree-children li:first-child::after {
  left: calc(50% - 1px);
}
.tree-children li:last-child::after {
  right: calc(50% - 1px);
}
.tree-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 16px 10px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tree-node:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.tree-node strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
}
.tree-node strong + span {
  display: block;
  margin-top: 3px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.35;
}
@media (max-width: 520px) {
  .tree-children {
    grid-template-columns: 1fr;
    padding: var(--rail) 0 0 28px;
  }
  .tree-children::before {
    left: 10px;
  }
  .tree-children li::before {
    left: -18px;
    top: calc(var(--gap) * -1);
    height: calc(50% + var(--gap));
  }
  .tree-children li:first-child::before {
    top: calc(var(--rail) * -1);
    height: calc(50% + var(--rail));
  }
  .tree-children li::after,
  .tree-children li:first-child::after,
  .tree-children li:last-child::after {
    top: 50%;
    left: -18px;
    right: auto;
    width: 18px;
  }
  .tree-children::before {
    display: none;
  }
  .tree-parent {
    margin-inline: 0;
  }
  .tree-caption {
    text-align: left;
  }
  .tree-node {
    flex-direction: row;
    text-align: left;
    padding: 12px 14px;
    border-top-width: 1px;
    border-left: 4px solid var(--accent);
  }
}

.glyph {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent);
}
.glyph svg {
  width: 24px;
  height: 24px;
}
.is-spelling {
  --accent: var(--honey);
  --accent-tint: var(--honey-tint);
}
.is-neet {
  --accent: var(--green-deep);
  --accent-tint: var(--green-tint);
}
.is-adaptive {
  --accent: var(--blue);
  --accent-tint: var(--blue-tint);
}

/* ---------- Figures strip ---------- */
.figures {
  border-block: 1px solid var(--line);
  background: var(--paper);
}
.figures dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}
.figures dl > div {
  padding: 28px 20px;
  border-left: 1px solid var(--line);
}
.figures dl > div:first-child {
  border-left: 0;
  padding-left: 0;
}
.figures dt {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
.figures dd {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 560;
  line-height: 1.1;
  color: var(--navy);
}
.figures dl > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
}
@media (max-width: 760px) {
  .figures dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .figures dl > div {
    padding: 20px 16px;
  }
  .figures dl > div:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
  .figures dl > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* ---------- Companies ---------- */
.company {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(24px, 4vw, 40px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.company + .company {
  margin-top: 24px;
}
.company-id {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.company-id .glyph {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin-bottom: 18px;
}
.company-id .glyph svg {
  width: 30px;
  height: 30px;
}
.company-id h3 {
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  margin-bottom: 6px;
}
.company-kicker {
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.company-link {
  margin-top: auto;
  background: var(--accent);
  color: #fff;
}
.company-link:hover {
  background: var(--ink);
  color: #fff;
}
.company-body p {
  font-size: 1.08rem;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.facts dt {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.facts dd {
  margin: 0;
  font-weight: 500;
  line-height: 1.4;
}
@media (max-width: 820px) {
  .company {
    grid-template-columns: 1fr;
  }
  .company-link {
    margin-top: 0;
  }
  .company-id {
    order: 0;
  }
}
@media (max-width: 520px) {
  .facts {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ---------- Role (what the holding company does) ---------- */
.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 6vw, 72px);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: role;
}
.role-grid li {
  counter-increment: role;
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.role-grid li::before {
  content: "0" counter(role);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--green-deep);
  padding-top: 2px;
}
.role-grid h3 {
  margin-bottom: 6px;
}
.role-grid p {
  margin: 0;
  color: var(--ink-soft);
}
@media (max-width: 760px) {
  .role-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Principles band ---------- */
.band {
  background: var(--navy);
  color: #eef4f7;
}
.band h2,
.band h3 {
  color: #fff;
}
.band .eyebrow {
  color: #9fd0b3;
}
.band .lede {
  color: #c4d8e2;
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.principle {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}
.principle svg {
  width: 30px;
  height: 30px;
  color: #9fd0b3;
  margin-bottom: 16px;
}
.principle p {
  margin: 0;
  color: #c4d8e2;
}
@media (max-width: 860px) {
  .principles {
    grid-template-columns: 1fr;
  }
}

/* ---------- Call to action ---------- */
.cta {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: 24px 48px;
  align-items: center;
  padding: clamp(28px, 5vw, 52px);
  border-radius: var(--radius-lg);
  background: var(--green-tint);
  border: 1px solid #cfe1d3;
}
.cta h2 {
  margin-bottom: 0.35em;
}
.cta p {
  margin: 0;
  color: var(--ink-soft);
}
.cta .btn-row {
  margin-top: 0;
}
@media (max-width: 760px) {
  .cta {
    grid-template-columns: 1fr;
  }
}

/* ---------- Inner page hero ---------- */
.page-hero {
  padding-block: clamp(44px, 7vw, 84px) clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  max-width: 20ch;
}
.page-hero .lede {
  margin-bottom: 0;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}
.badges li {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.9rem;
  font-weight: 500;
}
.badges strong {
  font-weight: 700;
}

/* ---------- Prose and two-column content ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 6vw, 72px);
}
.split > :first-child h2 {
  margin-bottom: 0;
}
.prose > :last-child {
  margin-bottom: 0;
}
.prose p,
.prose li {
  color: var(--ink-soft);
}
.prose strong {
  color: var(--ink);
}
@media (max-width: 820px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
th,
td {
  padding: 15px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
thead th {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--cream);
  white-space: nowrap;
}
tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}
tbody th {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
}

.nowrap {
  white-space: nowrap;
}
/* Narrow screens: each row of a .stack table becomes a labelled block */
@media (max-width: 700px) {
  thead th,
  tbody th {
    white-space: normal;
  }
  .stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .stack,
  .stack tbody,
  .stack tr,
  .stack th,
  .stack td {
    display: block;
  }
  .stack tr {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
  }
  .stack tr:last-child {
    border-bottom: 0;
  }
  .stack th,
  .stack td {
    padding: 0;
    border: 0;
  }
  .stack tbody th {
    margin-bottom: 10px;
    white-space: normal;
  }
  .stack td {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 12px;
    padding-block: 4px;
  }
  .stack td::before {
    content: attr(data-label);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    padding-top: 3px;
  }
}

/* ---------- Legal pages ---------- */
.legal {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}
.toc {
  position: sticky;
  top: 100px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.toc h2 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.toc li {
  counter-increment: toc;
}
.toc a {
  display: grid;
  grid-template-columns: 1.7rem 1fr;
  padding: 5px 0;
  color: var(--ink);
  font-size: 0.93rem;
  line-height: 1.4;
  text-decoration: none;
}
.toc a::before {
  content: counter(toc);
  color: var(--green-deep);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.toc a:hover {
  color: var(--blue);
  text-decoration: underline;
}
.legal-body {
  max-width: 44rem;
  counter-reset: clause;
}
.clause {
  counter-increment: clause;
  padding-bottom: 34px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.clause-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 8px;
}
.clause h2 {
  font-size: 1.6rem;
  margin-bottom: 0.6em;
}
.clause h2::before {
  content: counter(clause) ". ";
  color: var(--green-deep);
}
.clause h3 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 1.4em 0 0.4em;
}
.clause p,
.clause li {
  color: var(--ink-soft);
}
.clause strong {
  color: var(--ink);
}
.clause ul {
  padding-left: 1.2em;
  margin: 0 0 1em;
}
.clause li {
  margin-bottom: 0.4em;
}
.clause > :last-child {
  margin-bottom: 0;
}
.callout {
  margin: 1.2em 0;
  padding: 14px 18px;
  border-left: 4px solid var(--green);
  border-radius: 0 10px 10px 0;
  background: var(--green-tint);
  color: var(--ink);
  font-weight: 500;
}
.clause .callout {
  color: var(--ink);
}
.commitment {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #d5e3ea;
}
.commitment h2 {
  color: #fff;
  font-size: 1.5rem;
}
.commitment p {
  margin: 0;
}
@media (max-width: 900px) {
  .legal {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc {
    position: static;
  }
  .toc ol {
    columns: 2;
    column-gap: 24px;
  }
  .toc li {
    break-inside: avoid;
  }
}
@media (max-width: 520px) {
  .toc ol {
    columns: 1;
  }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.card {
  padding: clamp(24px, 3.4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.card > :last-child {
  margin-bottom: 0;
}
.email-big {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 560;
  color: var(--navy);
  overflow-wrap: anywhere;
  margin-bottom: 10px;
}
.topic-list,
.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.topic-list li + li,
.link-list li + li {
  border-top: 1px solid var(--line);
}
.topic-list a,
.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  color: var(--ink);
  text-decoration: none;
}
.topic-list a:hover strong,
.link-list a:hover strong {
  color: var(--blue);
  text-decoration: underline;
}
.topic-list span,
.link-list span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.45;
}
.topic-list svg,
.link-list svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--ink-soft);
}
@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 56vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.notfound img {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
}
.notfound .lede {
  margin-inline: auto;
}
.notfound .btn-row {
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #b8cbd6;
  padding-block: clamp(44px, 6vw, 68px) 28px;
  font-size: 0.97rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 36px 32px;
}
.site-footer .brand {
  color: #fff;
  margin-bottom: 16px;
}
.site-footer .brand-tag {
  color: #9db5c2;
}
.site-footer p {
  max-width: 32ch;
}
.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li {
  margin-bottom: 9px;
}
.site-footer a {
  color: #d7e3ea;
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .tree-node {
    transition: none;
  }
  .btn:hover,
  .tree-node:hover {
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .toc,
  .skip-link {
    display: none;
  }
  body {
    background: #fff;
  }
}
