/* Iridology International — iridologyinternational.com
   One stylesheet for every static page. Palette is taken from the eye itself:
   sclera white, pupil ink, iris umber, collarette gold, blue-grey iris.
   Headings and lesson prose are Spectral; interface text is IBM Plex Sans,
   the same sans as iridology-software.com so the two sites read as family. */

:root {
  --paper: #F1F2EE;
  --paper-2: #E6E8E2;
  --surface: #FBFBF8;
  --ink: #1D2433;
  --ink-2: #4A5261;
  --line: #D3D6CE;
  --umber: #8A5210;
  --umber-2: #6E400B;
  --gold: #D6A548;
  --slate: #4A6878;
  --night: #1D2433;
  --night-2: #151B27;
  --on-night: #EDEEE8;
  --on-night-2: #AEB5C2;

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 6px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #131925;
    --paper-2: #1B2230;
    --surface: #19202D;
    --ink: #E8E9E3;
    --ink-2: #A9AFBA;
    --line: #2C3546;
    --umber: #E0A956;
    --umber-2: #F0C27A;
    --slate: #8FB0C0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #131925; --paper-2: #1B2230; --surface: #19202D;
  --ink: #E8E9E3; --ink-2: #A9AFBA; --line: #2C3546;
  --umber: #E0A956; --umber-2: #F0C27A; --slate: #8FB0C0;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

a { color: var(--umber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--umber-2); }
:focus-visible { outline: 2px solid var(--umber); outline-offset: 3px; border-radius: 2px; }
.night :focus-visible, .masthead :focus-visible { outline-color: var(--gold); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: inherit; margin: 0; }
h1 { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.04; letter-spacing: -0.015em; font-weight: 500; text-wrap: balance; }
h2 { font-size: clamp(29px, 3.5vw, 42px); line-height: 1.12; letter-spacing: -0.01em; font-weight: 500; text-wrap: balance; }
h3 { font-size: 22px; line-height: 1.25; }
h4 { font-size: 18px; line-height: 1.3; }
p { margin: 0 0 1em; }

.skip {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip:focus {
  position: fixed; left: 8px; top: 8px; width: auto; height: auto; margin: 0;
  padding: 10px 16px; clip: auto; clip-path: none; overflow: visible;
  background: var(--gold); color: var(--night); z-index: 60;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: var(--radius);
  font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
}
.btn-primary { background: var(--gold); color: var(--night); }
.btn-primary:hover { background: #E4B85E; color: var(--night); }
.btn-quiet { border-color: currentColor; color: inherit; }
.btn-quiet:hover { color: inherit; background: color-mix(in srgb, currentColor 10%, transparent); }
.on-paper .btn-primary { background: var(--umber); color: #FFF; }
.on-paper .btn-primary:hover { background: var(--umber-2); color: #FFF; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .on-paper .btn-primary { color: var(--night); }
  :root:not([data-theme="light"]) .on-paper .btn-primary:hover { color: var(--night); }
}
:root[data-theme="dark"] .on-paper .btn-primary,
:root[data-theme="dark"] .on-paper .btn-primary:hover { color: var(--night); }
.btn small { font-weight: 400; opacity: .8; }

/* ---------- masthead ---------- */

.masthead {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--night) 94%, transparent);
  backdrop-filter: blur(8px);
  color: var(--on-night);
  border-bottom: 1px solid rgba(214, 165, 72, .22);
}
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; min-height: 68px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }
.mast-nav { display: flex; align-items: center; gap: 4px 22px; }
.mast-nav a { color: var(--on-night-2); text-decoration: none; font-size: 15.5px; font-weight: 500; white-space: nowrap; }
.mast-nav a:hover, .mast-nav a[aria-current="page"] { color: var(--on-night); }
.mast-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 8px; }
.mast-nav .btn { min-height: 40px; padding: 8px 16px; font-size: 15px; color: var(--night); }
.mast-nav .btn:hover { color: var(--night); }

.menu-toggle { display: none; }
@media (max-width: 1020px) {
  .mast-nav .opt { display: none; }
}
@media (max-width: 760px) {
  .brand img { height: 34px; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid rgba(237,238,232,.35);
    color: var(--on-night); font: 500 15px var(--sans); padding: 8px 12px; border-radius: var(--radius); cursor: pointer;
  }
  .mast-nav {
    display: none; position: absolute; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--night); border-bottom: 1px solid rgba(214,165,72,.25); padding: 8px var(--gutter) 18px;
  }
  .mast-nav a, .mast-nav .opt { display: block; padding: 11px 0; font-size: 17px; border-bottom: 1px solid rgba(237,238,232,.08); }
  .mast-nav .btn { margin-top: 12px; display: flex; border: 0; }
  .masthead.open .mast-nav { display: flex; }
}

/* ---------- hero: the iris explorer ---------- */

.night { background: var(--night); color: var(--on-night); }
.night a:not(.btn) { color: var(--gold); }

.hero { padding-block: clamp(36px, 6vw, 72px) clamp(48px, 7vw, 88px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { max-width: 17ch; }
.hero .lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--on-night-2); max-width: 46ch; margin: 22px 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-facts { margin: 30px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; max-width: 460px; }
.hero-facts li { border-top: 1px solid rgba(214,165,72,.35); padding-top: 10px; font-size: 14.5px; color: var(--on-night-2); line-height: 1.45; }
.hero-facts b { display: block; font: 500 22px/1.2 var(--serif); color: var(--on-night); }

.explorer { margin: 0; }
.explorer-stage { position: relative; border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.explorer-stage img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.explorer-stage svg.trace { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.trace .shape { fill: none; stroke: var(--gold); stroke-width: 4; opacity: 0; transition: opacity .35s ease; filter: drop-shadow(0 0 3px rgba(0,0,0,.6)); }
.trace .shape.dashed { stroke-dasharray: 10 9; }
.trace .shape.on { opacity: 1; }

.spot {
  position: absolute; left: var(--x); top: var(--y); width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%;
}
.spot::before {
  content: ""; position: absolute; inset: 11px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.95); background: rgba(29,36,51,.35);
  box-shadow: 0 0 0 1px rgba(0,0,0,.35);
  transition: transform .2s ease, background .2s ease;
}
.spot:hover::before { transform: scale(1.15); }
.spot[aria-pressed="true"]::before { background: var(--gold); border-color: #FFF; transform: scale(1.2); }
.spot:focus-visible { outline: 2px solid var(--gold); outline-offset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .explorer.intro .spot::after {
    content: ""; position: absolute; inset: 11px; border-radius: 50%; border: 2px solid var(--gold);
    animation: ping 1.4s ease-out both; animation-delay: calc(var(--i) * 140ms + 500ms);
  }
  @keyframes ping { from { transform: scale(1); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
}

.explorer-card {
  margin-top: 14px; padding: 16px 18px 14px; border-radius: 10px;
  background: var(--night-2); border: 1px solid rgba(214,165,72,.22);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 18px; align-items: start; min-height: 150px;
}
.explorer-card .hint { grid-column: 1 / -1; margin: 0 0 4px; font-size: 14px; color: var(--on-night-2); }
.explorer-card h3 { font-size: 23px; color: var(--on-night); }
.explorer-card p { margin: 4px 0 0; font-size: 15.5px; color: var(--on-night-2); grid-column: 1 / -1; max-width: 62ch; }
.explorer-card .lesson { grid-column: 1 / -1; margin-top: 8px; font-size: 14.5px; color: var(--gold); }
.explorer-card .nav { display: flex; gap: 6px; grid-row: 2; grid-column: 2; }
.explorer-card .nav button {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(237,238,232,.3); background: none;
  color: var(--on-night); cursor: pointer; font: 18px/1 var(--sans);
}
.explorer-card .nav button:hover { border-color: var(--gold); color: var(--gold); }

@media (max-width: 920px) {
  /* Single column: bring the iris up under the buttons, facts after it. */
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-copy { display: contents; }
  .hero .explorer { order: 1; margin-top: 30px; }
  .hero .hero-facts { order: 2; }
  .hero h1 { max-width: 18ch; }
}

/* ---------- sections ---------- */

.section { padding-block: clamp(56px, 8vw, 104px); }
.section + .section.tint, .tint { background: var(--paper-2); }
.sec-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head p { font-size: 18px; color: var(--ink-2); margin-top: 16px; max-width: 62ch; }
.prose { max-width: 68ch; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- value ledger ---------- */

.ledger { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: clamp(20px, 3vw, 32px); }
.ledger table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.ledger th, .ledger td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger td.amt, .ledger th.amt { text-align: right; white-space: nowrap; padding-left: 16px; font-family: var(--serif); font-size: 21px; }
.ledger th { font-weight: 500; font-size: 14px; color: var(--ink-2); }
.ledger td b { display: block; font-weight: 600; }
.ledger td span { font-size: 14.5px; color: var(--ink-2); }
.ledger tr.sum td { border-bottom: 0; padding-top: 18px; }
.ledger tr.sum td b { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.ledger tr.total td { border-top: 2px solid var(--ink); border-bottom: 0; padding-top: 16px; }
.ledger tr.total td.amt { font-size: 30px; font-weight: 600; color: var(--umber); }
.ledger s { color: var(--ink-2); font-size: 16px; margin-right: 6px; }
.ledger .foot { margin: 18px 0 0; font-size: 14.5px; color: var(--ink-2); }

/* ---------- curriculum ---------- */

.modules { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: mod; }
.modules > li { border-bottom: 1px solid var(--line); }
.modules details > summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 4px 20px;
  align-items: baseline; padding: 22px 0;
}
.modules details > summary::-webkit-details-marker { display: none; }
.modules .num { font: 500 40px/1 var(--serif); color: var(--umber); grid-row: span 2; }
.modules .title { font: 600 23px/1.25 var(--serif); }
.modules .count { font-size: 14.5px; color: var(--ink-2); white-space: nowrap; }
.modules .blurb { grid-column: 2 / -1; color: var(--ink-2); font-size: 16px; max-width: 70ch; }
.modules summary .count::after { content: "+"; display: inline-block; width: 22px; text-align: center; margin-left: 10px; font: 400 22px/1 var(--sans); color: var(--umber); }
.modules details[open] summary .count::after { content: "\2212"; }
.modules summary:hover .title { color: var(--umber); }
.lessons { list-style: none; margin: 0 0 26px 84px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 28px; }
.lessons li { padding: 9px 0; border-top: 1px dashed var(--line); font-size: 15.5px; display: grid; grid-template-columns: 26px 1fr; }
.lessons li i { font-style: normal; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .modules details > summary { grid-template-columns: 40px minmax(0, 1fr); }
  .modules .num { font-size: 30px; }
  .modules .count { grid-column: 2; }
  .lessons { margin-left: 0; }
}

/* ---------- screenshot rows ---------- */

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin: 0; padding: 0; list-style: none; }
@media (max-width: 900px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .shots { grid-template-columns: minmax(0, 1fr); } }
.shot figure { margin: 0; }
.shot img { border-radius: var(--radius); border: 1px solid var(--line); background: #0A140A; width: 100%; aspect-ratio: 7 / 6; object-fit: cover; object-position: top; }
.shot figcaption { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.shot figcaption b { display: block; color: var(--ink); font: 600 18px/1.3 var(--serif); margin-bottom: 3px; }
.shot .tie { display: block; margin-top: 6px; font-size: 14px; color: var(--umber); }

.platform { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .platform { grid-template-columns: minmax(0, 1fr); } }
.platform-shots { display: grid; gap: 14px; }
.platform-shots img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; }
.facts { list-style: none; margin: 24px 0 0; padding: 0; }
.facts li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); }
.facts li b { color: var(--ink); font-weight: 600; }
@media (max-width: 480px) { .facts li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* ---------- library ---------- */

.library { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); margin: 0; padding: 0; list-style: none; }
.library li { grid-column: span 2; }
.library li.wide { grid-column: span 3; }
.library figure { margin: 0; }
.library img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.library figcaption { font-size: 15px; color: var(--ink-2); margin-top: 10px; }
.library figcaption b { color: var(--ink); display: block; font: 600 18px/1.3 var(--serif); }
@media (max-width: 860px) { .library li, .library li.wide { grid-column: span 3; } }
@media (max-width: 560px) { .library li, .library li.wide { grid-column: span 6; } }

/* ---------- faculty ---------- */

.faculty { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); }
@media (max-width: 860px) { .faculty { grid-template-columns: minmax(0, 1fr); } }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-top: 1px solid rgba(237,238,232,.14); }
.timeline li:last-child { border-bottom: 1px solid rgba(237,238,232,.14); }
.timeline .yr { font: 500 22px/1.2 var(--serif); color: var(--gold); font-variant-numeric: lining-nums; }
.timeline p { margin: 0; color: var(--on-night-2); font-size: 16px; }
.timeline p b { color: var(--on-night); font-weight: 600; display: block; }
@media (max-width: 480px) { .timeline li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* ---------- compare ---------- */

.asks { width: 100%; border-collapse: collapse; }
.asks th, .asks td { text-align: left; vertical-align: top; padding: 18px 0; border-top: 1px solid var(--line); }
.asks th { width: 38%; padding-right: 28px; font: 600 19px/1.35 var(--serif); }
.asks td { color: var(--ink-2); font-size: 16px; }
.asks tr:last-child th, .asks tr:last-child td { border-bottom: 1px solid var(--line); }
@media (max-width: 680px) {
  .asks, .asks tbody, .asks tr, .asks th, .asks td { display: block; width: 100%; }
  .asks th { padding-bottom: 4px; }
  .asks td { border-top: 0; padding-top: 0; }
  .asks tr:last-child th { border-bottom: 0; }
}

/* ---------- programs ---------- */

.programs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); }
@media (max-width: 860px) { .programs { grid-template-columns: minmax(0, 1fr); } }
.program { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; }
.program.lead { border: 2px solid var(--umber); }
.program .kind { font-size: 15px; color: var(--ink-2); margin: 0 0 6px; }
.program h3 { font-size: 27px; font-weight: 500; }
.program .price { margin: 18px 0 4px; font: 600 40px/1 var(--serif); font-variant-numeric: lining-nums; }
.program .price s { font-size: 20px; font-weight: 400; color: var(--ink-2); margin-left: 8px; }
.program .terms { font-size: 14.5px; color: var(--ink-2); margin: 0 0 18px; }
.program ul { margin: 0 0 24px; padding: 0; list-style: none; }
.program li { padding: 8px 0 8px 26px; border-top: 1px solid var(--line); font-size: 15.5px; position: relative; }
.program li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 12px; height: 7px; border-left: 2px solid var(--umber); border-bottom: 2px solid var(--umber); transform: rotate(-45deg); }
.program .cta-row { margin-top: auto; }

.note { margin-top: 28px; padding: 16px 20px; border-left: 3px solid var(--slate); background: var(--surface); font-size: 15px; color: var(--ink-2); max-width: 80ch; border-radius: 0 var(--radius) var(--radius) 0; }
.note b { color: var(--ink); }

/* ---------- faq ---------- */

.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 600 20px/1.35 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 18px; font: 400 24px/1 var(--sans); color: var(--umber); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--umber); }
.faq .a { padding: 0 0 20px; color: var(--ink-2); max-width: 70ch; }
.faq .a p:last-child { margin-bottom: 0; }

/* ---------- closing band ---------- */

.closer { padding-block: clamp(56px, 8vw, 96px); }
.closer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.closer p { color: var(--on-night-2); margin: 14px 0 0; max-width: 56ch; }
@media (max-width: 760px) { .closer .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- inner pages ---------- */

.page-head { padding-block: clamp(40px, 6vw, 72px) clamp(36px, 5vw, 60px); }
.page-head .crumb { font-size: 14.5px; color: var(--on-night-2); margin: 0 0 14px; }
.page-head .crumb a { color: var(--on-night-2); }
.page-head h1 { max-width: 20ch; font-size: clamp(34px, 4.6vw, 56px); }
.page-head .lede { color: var(--on-night-2); font-size: 18.5px; max-width: 60ch; margin: 18px 0 26px; }
.page-head .hero-facts { max-width: 720px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 700px) { .page-head .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.doc-toc { position: sticky; top: 92px; font-size: 15px; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.doc-toc a { display: block; padding: 7px 0 7px 16px; color: var(--ink-2); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; }
.doc-toc a:hover { color: var(--ink); border-left-color: var(--umber); }
@media (max-width: 900px) { .doc { grid-template-columns: minmax(0, 1fr); } .doc-toc { display: none; } }
.doc section { padding-bottom: clamp(36px, 5vw, 56px); margin-bottom: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.doc section:last-child { border-bottom: 0; margin-bottom: 0; }
.doc h2 { margin-bottom: 18px; font-size: clamp(27px, 3vw, 36px); }
.doc h3 { margin: 28px 0 8px; }

.syllabus { margin-top: 8px; }
.syllabus .mod { padding: 26px 0 8px; border-top: 2px solid var(--ink); margin-top: 18px; }
.syllabus .mod:first-child { margin-top: 0; }
.syllabus .mod > header { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 2px 16px; margin-bottom: 14px; }
.syllabus .mod .num { font: 500 38px/1 var(--serif); color: var(--umber); grid-row: span 2; }
.syllabus .mod h3 { margin: 0; font-size: 25px; font-weight: 500; }
.syllabus .mod header p { margin: 6px 0 0; color: var(--ink-2); font-size: 16px; }
.syllabus ol { list-style: none; margin: 0 0 0 72px; padding: 0; counter-reset: l; }
.syllabus ol li { padding: 14px 0; border-top: 1px solid var(--line); counter-increment: l; display: grid; grid-template-columns: 34px minmax(0, 1fr); }
.syllabus ol li::before { content: counter(l); font: 500 17px var(--serif); color: var(--ink-2); font-variant-numeric: lining-nums; }
.syllabus ol li b { font: 600 18.5px/1.35 var(--serif); display: block; }
.syllabus ol li span { font: 17px/1.65 var(--serif); color: var(--ink-2); display: block; margin-top: 3px; max-width: 68ch; }
@media (max-width: 640px) { .syllabus ol { margin-left: 0; } }

.check { list-style: none; padding: 0; margin: 12px 0 0; columns: 2 300px; column-gap: 36px; }
.check li { break-inside: avoid; padding: 7px 0 7px 28px; position: relative; color: var(--ink-2); font-size: 16px; }
.check li::before { content: ""; position: absolute; left: 3px; top: 15px; width: 12px; height: 7px; border-left: 2px solid var(--umber); border-bottom: 2px solid var(--umber); transform: rotate(-45deg); }

.credits { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; font-size: 16px; }
.credits th, .credits td { text-align: left; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.credits thead th { font-size: 14px; font-weight: 500; color: var(--ink-2); border-bottom: 2px solid var(--ink); }
.credits td:not(:first-child), .credits th:not(:first-child) { text-align: right; white-space: nowrap; }
.credits tfoot td { font-weight: 600; border-bottom: 0; }
.tablebox { overflow-x: auto; }

/* ---------- footer ---------- */

.footer { background: var(--night-2); color: var(--on-night-2); padding-block: 56px 40px; font-size: 15px; }
.footer .wrap { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer img { height: 44px; width: auto; margin-bottom: 16px; }
.footer h4 { font: 600 15px var(--sans); color: var(--on-night); margin: 6px 0 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { padding: 4px 0; }
.footer a { color: var(--on-night-2); text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(237,238,232,.12); padding-top: 22px; margin-top: 12px; font-size: 13.5px; line-height: 1.6; max-width: 110ch; }
.footer .legal p { margin: 0 0 8px; }
@media (max-width: 860px) { .footer .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer .about { grid-column: 1 / -1; } }

/* Long email addresses wrap instead of pushing the page sideways on phones. */
a[href^="mailto:"] { overflow-wrap: anywhere; }
