/* ============================================================
   waldenstudent.com — homepage comp v2
   Family palette: Walden teal #0A6E7A + gold #E0A12E on cream
   #FBFAF5, shared with waldenpreceptor / waldentutors /
   waldenassignments.

   ARCHITECTURE IS DELIBERATELY UNLIKE capellastudent.com.
   That site is an instrument panel: stacked white cards on a
   centred column. This one is an ANNOTATED DOCUMENT — Walden's
   own policy set in serif down a measure, with our marginalia
   running alongside it. Serif/sans contrast, hanging margin
   grid, ruled rather than carded. No shared class vocabulary.
   ============================================================ */

:root {
  --paper:    #FBFAF5;
  --sheet:    #FFFFFF;
  --vellum:   #F4F2E8;
  --sage:     #E9F1EC;

  --ink:      #15211C;
  --body:     #3C4843;
  --quiet:    #63726B;
  --pale:     #82908A;

  --rule:     #E3DFD0;
  --rule-2:   #CFCBB9;

  --teal:      #0A6E7A;
  --teal-deep: #08545E;
  --teal-pale: #D7E9EB;
  --teal-mist: #EDF6F6;

  --ochre:      #9A6B14;
  --ochre-fill: #E0A12E;
  --ochre-pale: #F7EBD4;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Instrument Sans", "Segoe UI", Arial, sans-serif;
  --grot:  "Schibsted Grotesk", "Segoe UI", Arial, sans-serif;

  --edge: clamp(1.15rem, 4.5vw, 4rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--grot); margin: 0; line-height: 1.08; letter-spacing: -.03em; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 3px; }

.col { max-width: 1240px; margin: 0 auto; padding-inline: var(--edge); }

/* the governing grid: a document measure with a hanging margin */
.leaf { display: grid; grid-template-columns: minmax(0, 33rem) minmax(0, 19rem); gap: clamp(1.5rem, 4vw, 4rem); }
@media (max-width: 940px) { .leaf { grid-template-columns: 1fr; } }

.act {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--grot); font-weight: 700; font-size: 1rem; letter-spacing: -.01em;
  padding: .95rem 1.6rem; min-height: 50px;
  background: var(--teal); color: #fff; border: 0; border-radius: 4px; cursor: pointer; text-decoration: none;
  transition: background .16s ease;
}
.act:hover { background: var(--teal-deep); }
.act-small { min-height: 42px; padding: .6rem 1.1rem; font-size: .9rem; }
.act-plain { background: transparent; color: var(--teal-deep); box-shadow: inset 0 0 0 1px var(--rule-2); }
.act-plain:hover { background: var(--vellum); }

/* ============================================================
   MASTHEAD — a ruled bar, no floating pill nav
   ============================================================ */

.masthead { border-bottom: 2px solid var(--ink); background: var(--paper); }
.masthead .col { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; padding-block: 1.1rem .85rem; }

.sigil { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.sigil svg { width: 30px; height: 30px; flex: none; display: block; }
.sigil .o1, .sigil .o2 { transform-origin: 16px 16px; transition: transform .55s cubic-bezier(.22,1,.36,1), opacity .55s ease; }
.sigil:hover .o1 { transform: scale(1.12); }
.sigil:hover .o2 { transform: scale(1.2); opacity: .4; }
.sigil b { font-family: var(--grot); font-weight: 800; font-size: 1.12rem; letter-spacing: -.04em; }
.sigil i { font-style: normal; font-family: var(--serif); font-size: .92rem; color: var(--quiet); }

.contents { display: flex; align-items: flex-end; gap: 1.5rem; }
.contents a { font-family: var(--serif); font-size: .98rem; color: var(--body); text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 2px; }
.contents a:hover { border-bottom-color: var(--teal); color: var(--teal-deep); }
@media (max-width: 1080px) { .contents { display: none; } }

/* ============================================================
   OPENING — the hero IS a quotation
   ============================================================ */

.opening .col { padding-block: clamp(2.75rem, 6vw, 5rem) clamp(2rem, 4vw, 3.25rem); }

.disclaim { font-family: var(--serif); font-size: 1rem; color: var(--quiet); max-width: 52ch; }
.disclaim strong { color: var(--ink); font-weight: 600; }

.opening h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 800; letter-spacing: -.038em; margin-top: 1.35rem; max-width: 21ch; }

.pull {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule);
  padding: clamp(1.5rem, 3.5vw, 2.5rem) 0;
}
.pull blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.3rem, 2.8vw, 1.9rem); line-height: 1.4; color: var(--ink); max-width: 44ch; }
.pull blockquote mark { background: var(--ochre-pale); color: inherit; padding: 0 .12em; box-decoration-break: clone; }
.pull cite { display: block; margin-top: 1.1rem; font-style: normal; font-size: .9rem; color: var(--pale); }

.reading { margin-top: 1.6rem; font-size: 1.05rem; color: var(--body); max-width: 46ch; }
.reading em { font-style: normal; background: var(--teal-mist); box-shadow: 0 0 0 3px var(--teal-mist); }

/* ============================================================
   THE DIAL — a figure inside the document, not a card
   ============================================================ */

.figure { margin-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--rule); padding-top: clamp(1.75rem, 3.5vw, 2.5rem); }
.figure-head { font-family: var(--grot); font-weight: 700; font-size: 1.25rem; letter-spacing: -.028em; }
.figure-sub { margin-top: .5rem; font-size: .96rem; color: var(--quiet); max-width: 50ch; }

.figure-body { margin-top: 1.75rem; display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 760px) { .figure-body { grid-template-columns: 1fr; } }

.dial { position: relative; width: 100%; max-width: 15rem; aspect-ratio: 1; margin-inline: auto; }
.dial svg { width: 100%; height: 100%; display: block; }
.dial-core { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.dial-core b { display: block; font-family: var(--grot); font-weight: 800; font-size: 2.3rem; letter-spacing: -.05em; line-height: 1; }
.dial-core span { font-size: .82rem; color: var(--quiet); }

.picker { display: grid; gap: .4rem; }
.picker button {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: baseline; text-align: left;
  font-family: var(--sans); font-size: .95rem; color: var(--body);
  background: none; border: 0; border-top: 1px solid var(--rule); padding: .8rem .2rem; min-height: 48px;
  cursor: pointer; transition: color .15s ease, padding-left .15s ease;
}
.picker button:last-child { border-bottom: 1px solid var(--rule); }
.picker button:hover { color: var(--teal-deep); padding-left: .55rem; }
.picker button b { font-family: var(--grot); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.picker button[aria-pressed="true"] { color: var(--teal-deep); }
.picker button[aria-pressed="true"] b { color: var(--teal); }
.picker button span { font-size: .9rem; }

.figure-note { margin-top: 1.4rem; font-size: .86rem; color: var(--pale); line-height: 1.55; max-width: 62ch; }

/* ============================================================
   THE ANNOTATED POLICY — the spine of the page
   ============================================================ */

.record { background: var(--sheet); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.record .col { padding-block: clamp(3rem, 6vw, 4.75rem); }

.record-open { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.record-open h2 { font-size: clamp(1.85rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -.038em; }
.record-open p { margin-top: 1.1rem; font-size: 1.05rem; color: var(--quiet); max-width: 58ch; }

.clause { border-top: 1px solid var(--rule); padding-block: clamp(1.75rem, 3.5vw, 2.5rem); }
.clause:last-of-type { border-bottom: 1px solid var(--rule); }

.clause-text { font-family: var(--serif); font-size: 1.16rem; line-height: 1.58; color: var(--ink); }
.clause-text mark { background: var(--ochre-pale); color: inherit; padding: 0 .1em; box-decoration-break: clone; }
.clause-src { margin-top: .75rem; font-size: .84rem; color: var(--pale); }

.annot { align-self: start; }
@media (min-width: 941px) { .annot { padding-top: .2rem; } }
.annot h3 { font-family: var(--grot); font-weight: 700; font-size: 1.02rem; letter-spacing: -.02em; color: var(--teal-deep); }
.annot p { margin-top: .5rem; font-size: .95rem; color: var(--body); line-height: 1.6; }
.annot p + p { margin-top: .7rem; }
.annot .heavy { color: var(--ochre); font-weight: 600; }

/* the five denials, drawn inside a clause */
.docket { display: flex; gap: .35rem; margin-top: 1.1rem; max-width: 21rem; }
.docket i { flex: 1; height: 42px; border-radius: 3px; background: var(--ochre-pale); border: 1px solid #E7D5AE; position: relative; }
.docket i::after { content: ""; position: absolute; inset: 9px 7px auto 7px; height: 2px; background: #DCC69B; box-shadow: 0 7px 0 #DCC69B, 0 14px 0 #DCC69B; }

/* ============================================================
   THE ARITHMETIC — a ruled table, not a card ladder
   ============================================================ */

.sums .col { padding-block: clamp(3rem, 6vw, 4.75rem); }
.sums h2 { font-size: clamp(1.85rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -.038em; max-width: 20ch; }
.sums > .col > p { margin-top: 1.1rem; font-size: 1.05rem; color: var(--quiet); max-width: 58ch; }

.tally { margin-top: clamp(2rem, 4vw, 3rem); border-top: 2px solid var(--ink); }
.tally-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto; gap: clamp(1rem, 3vw, 2.5rem); align-items: baseline; padding-block: 1.15rem; border-bottom: 1px solid var(--rule); }
@media (max-width: 780px) { .tally-row { grid-template-columns: 1fr auto; } .tally-row span { grid-column: 1 / -1; } }
.tally-row strong { font-family: var(--grot); font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; }
.tally-row span { font-size: .95rem; color: var(--quiet); }
.tally-row b { font-family: var(--grot); font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; text-align: right; }
.tally-row.added b { color: var(--ochre); }
.tally-note { margin-top: 1.4rem; font-size: .86rem; color: var(--pale); line-height: 1.55; max-width: 68ch; }

/* ============================================================
   THE INTAKE — inline questioning, not a boxed widget
   ============================================================ */

.intake { background: var(--sage); }
.intake .col { padding-block: clamp(3rem, 6vw, 4.75rem); }
.intake h2 { font-size: clamp(1.85rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -.038em; max-width: 18ch; }
.intake > .col > p { margin-top: 1.1rem; font-size: 1.05rem; color: var(--body); max-width: 56ch; }

.ask { margin-top: clamp(2rem, 4vw, 3rem); border-top: 2px solid var(--ink); padding-top: clamp(1.5rem, 3vw, 2.25rem); }
.ask-count { font-family: var(--serif); font-size: .95rem; color: var(--quiet); }
.ask-q { font-family: var(--grot); font-weight: 800; font-size: clamp(1.5rem, 3.4vw, 2.2rem); letter-spacing: -.038em; margin: .5rem 0 1.5rem; max-width: 22ch; }

.options { display: grid; gap: 0; max-width: 40rem; }
.options button {
  display: grid; grid-template-columns: 1.6rem 1fr; gap: .9rem; align-items: baseline; text-align: left; width: 100%;
  font-family: var(--serif); font-size: 1.12rem; color: var(--ink);
  background: none; border: 0; border-top: 1px solid var(--rule-2); padding: 1rem .2rem; min-height: 56px;
  cursor: pointer; transition: padding-left .16s ease, color .16s ease;
}
.options button:last-child { border-bottom: 1px solid var(--rule-2); }
.options button:hover { padding-left: .7rem; color: var(--teal-deep); }
.options button em { font-style: normal; font-family: var(--grot); font-weight: 700; font-size: .82rem; color: var(--pale); }
.options button:hover em { color: var(--teal); }

.ask-back { margin-top: 1.4rem; background: none; border: 0; cursor: pointer; font-family: var(--serif); font-size: .95rem; color: var(--quiet); padding: 0; }
.ask-back:hover { color: var(--ink); }
.ask-back[hidden] { display: none; }

.finding { display: none; }
.finding[data-open="1"] { display: block; }
.finding-tag { font-family: var(--grot); font-weight: 800; font-size: .95rem; letter-spacing: -.01em; padding-bottom: .5rem; border-bottom: 3px solid currentColor; display: inline-block; }
.finding-tag.no { color: var(--ochre); }
.finding-tag.yes { color: var(--teal-deep); }
.finding-tag.mid { color: var(--quiet); }
.finding h3 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.036em; margin-top: 1.25rem; max-width: 24ch; }
.finding-body { margin-top: 1rem; font-family: var(--serif); font-size: 1.14rem; line-height: 1.6; color: var(--body); max-width: 52ch; }
.riders { margin: 1.75rem 0 0; padding: 0; list-style: none; display: grid; gap: 1.1rem; max-width: 52rem; }
.riders li { border-left: 2px solid var(--teal-pale); padding-left: 1.1rem; }
.riders b { display: block; font-family: var(--grot); font-weight: 700; font-size: .98rem; letter-spacing: -.02em; }
.riders span { display: block; margin-top: .25rem; font-size: .95rem; color: var(--quiet); line-height: 1.55; }
.finding-act { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .7rem; }

/* ============================================================
   MATCHUPS — one-line verdicts, no cards
   ============================================================ */

.matchups .col { padding-block: clamp(3rem, 6vw, 4.75rem); }
.matchups h2 { font-size: clamp(1.85rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -.038em; }
.matchups > .col > p { margin-top: 1.1rem; font-size: 1.05rem; color: var(--quiet); max-width: 56ch; }
.versus { margin-top: clamp(2rem, 4vw, 3rem); border-top: 2px solid var(--ink); }
.versus a { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) auto; gap: clamp(1rem, 3vw, 2.5rem); align-items: baseline; padding-block: 1.3rem; border-bottom: 1px solid var(--rule); text-decoration: none; transition: padding-left .16s ease; }
.versus a:hover { padding-left: .6rem; }
.versus strong { font-family: var(--grot); font-weight: 700; font-size: 1.18rem; letter-spacing: -.028em; }
.versus span { font-family: var(--serif); font-size: 1.04rem; color: var(--body); }
.versus i { font-style: normal; color: var(--teal); font-size: 1.2rem; transition: transform .16s ease; }
.versus a:hover i { transform: translateX(4px); }
@media (max-width: 800px) { .versus a { grid-template-columns: 1fr auto; } .versus span { grid-column: 1 / -1; } }

/* ============================================================
   SIGN-OFF — a ruled teal spread, not a floating card
   ============================================================ */

.signoff { background: var(--teal); color: #fff; }
.signoff .col { padding-block: clamp(3rem, 6vw, 4.75rem); }
.signoff-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 21rem); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .signoff-grid { grid-template-columns: 1fr; } }
.signoff h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 800; letter-spacing: -.04em; max-width: 17ch; color: #fff; }
.signoff-lede { margin-top: 1.2rem; font-family: var(--serif); font-size: 1.14rem; line-height: 1.55; color: rgba(255,255,255,.9); max-width: 40ch; }
.signoff dl { margin: 2rem 0 0; display: grid; gap: 1.05rem; max-width: 44ch; }
.signoff dt { font-family: var(--grot); font-weight: 700; font-size: .98rem; color: var(--ochre-fill); }
.signoff dd { margin: .2rem 0 0; font-size: .96rem; color: rgba(255,255,255,.84); line-height: 1.55; }

.enquiry { background: var(--paper); color: var(--ink); border-radius: 4px; padding: clamp(1.5rem, 3.5vw, 2rem); display: grid; gap: .9rem; }
.enquiry h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.032em; }
.entry { display: grid; gap: .3rem; }
.entry label { font-family: var(--serif); font-size: .95rem; color: var(--body); }
.entry input, .entry select { font-family: var(--sans); font-size: 16px; color: var(--ink); background: var(--sheet); border: 1px solid var(--rule-2); border-radius: 3px; padding: .8rem .9rem; width: 100%; }
.entry input::placeholder { color: var(--pale); }
.enquiry small { font-size: .82rem; color: var(--quiet); line-height: 1.5; }
.decoy { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============================================================
   COLOPHON
   ============================================================ */

.colophon { border-top: 2px solid var(--ink); background: var(--paper); }
.colophon .col { padding-block: clamp(2.5rem, 5vw, 3.25rem) clamp(2rem, 4vw, 2.75rem); display: grid; gap: 1.75rem; }
.colophon-top { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; justify-content: space-between; align-items: baseline; }
.colophon-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; }
.colophon-nav a { font-family: var(--serif); font-size: .98rem; color: var(--body); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.colophon-nav a:hover { color: var(--teal-deep); }
.tenure { font-family: var(--serif); font-size: clamp(1.1rem, 2.2vw, 1.4rem); line-height: 1.45; max-width: 42ch; color: var(--ink); }
.tenure b { font-family: var(--grot); font-weight: 800; color: var(--teal); letter-spacing: -.02em; }
.smallprint { font-size: .84rem; color: var(--quiet); line-height: 1.6; max-width: 78ch; }
.smallprint b { color: var(--body); font-weight: 600; }
.imprint { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; padding-top: 1.3rem; border-top: 1px solid var(--rule); font-size: .84rem; color: var(--pale); }

@media (prefers-reduced-motion: reduce) { *, *::before { transition: none !important; } }
