/* Styles for schools.html: the hero with the three-part pattern, five department blocks that are
   built identically (copy on the left, an example page on the right), and the closing sections.
   Builds on styles.css (tokens, nav, eyebrow, buttons, footer) and mentorship-case-study.css
   (the case card). Additive: changes nothing in either. */

.schools-page { --gutter: clamp(24px, 6vw, 96px); }

.skip-link { position: absolute; left: 24px; top: -100px; z-index: 50; background: var(--ink); color: var(--page); padding: 14px; }
.skip-link:focus { top: 16px; }

/* Coral buttons carry dark text here, as on the cards page: cream on coral is too faint at this size. */
.schools-page .button-primary,
.schools-page .nav-cta-primary,
.schools-page .nav-cta-primary:hover { color:var(--ink)!important; }
.schools-page .nav-links a[aria-current="page"] { color: var(--ink); }
.schools-page a:focus-visible { outline: 2px solid var(--coral); outline-offset: 4px; }

/* ---------- hero: the headline on the left, the three artifacts on the right ---------- */
.schools-hero { padding: 0 var(--gutter); background: var(--page); }
.schools-hero-inner { max-width: 1280px; margin: auto; padding: 84px 0 76px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 64px; align-items: end; }
.schools-hero h1 { max-width: none; font-size: clamp(32px, 3.75vw, 54px); line-height: 1.08; letter-spacing:-.012em; }
.schools-hero .hero-lede { max-width: 520px; }
.pattern { border-top: 1px solid var(--line); }
.pattern > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.pattern dt { font: 500 12px 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: .08em; color:var(--label); }
.pattern dd { margin-top: 6px; color: var(--ink); font-size: 16px; line-height: 1.55; }

/* ---------- the row of department links ---------- */
.dept-nav { display: flex; flex-wrap: wrap; gap: 4px 34px; width: calc(100% - 2 * var(--gutter)); max-width: 1280px; margin: 0 auto; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 12px 'IBM Plex Mono', monospace; color: var(--muted); }
.dept-nav a { padding: 10px 0; }
.dept-nav a:hover { color:var(--coral-ink); }

/* ---------- shared column: every section keeps the hero's gutter at every width ---------- */
.schools-page main > section,
.schools-page .footer { width: calc(100% - 2 * var(--gutter)); max-width: 1280px; margin-left: auto; margin-right: auto; }

/* ---------- a department: copy, then its example page ---------- */
.dept { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 64px; align-items: start; padding: 92px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 12px; }
.dept h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing:-.012em; }
.dept h2 span { display: block; scroll-margin-top: 24px; }
.dept-line { margin-top: 14px; color:var(--label); font-size: clamp(18px, 1.7vw, 22px); font-weight: 600; line-height: 1.35; letter-spacing: -.02em; }
.dept-points { list-style: none; margin-top: 26px; display: grid; gap: 12px; max-width: 54ch; }
.dept-points li { color: var(--muted); font-size: 16px; line-height: 1.65; }
.dept-points strong { color: var(--ink); font-weight: 600; }
.dept-io { margin-top: 28px; max-width: 54ch; border-top: 1px solid var(--line); }
.dept-io > div { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 12px 0; }
.dept-io > div + div { padding-top: 0; }
.dept-io dt { padding-top: 4px; font: 11px 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: .08em; color:var(--label); }
.dept-io dd { color: var(--ink); font-size: 15.5px; line-height: 1.6; }
.dept-links { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 30px; }
.dept-links .text-link { color:var(--label); padding: 8px 0; }
.dept-links .text-link:hover { color: var(--ink); }

/* ---------- the example page ---------- */
.sample { background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--rule); padding: 22px 26px 24px; }
.sample figcaption { font: 11px 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.sample table { width: 100%; margin-top: 14px; border-collapse: collapse; }
.sample caption { text-align: left; padding-bottom: 14px; color: var(--ink); font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -.02em; }
.sample thead th { padding: 0 0 9px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: bottom; font: 500 10.5px/1.4 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sample tbody th, .sample tbody td, .sample tfoot th, .sample tfoot td { padding: 8px 0; font-size: 14.5px; line-height: 1.4; text-align: left; font-weight: 400; color: var(--ink); }
.sample tbody tr:first-child th, .sample tbody tr:first-child td { padding-top: 12px; }
.sample tbody th { color: var(--muted); padding-right: 12px; }
.sample tfoot th, .sample tfoot td { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 600; }
.sample .num { text-align: right; padding-left: 12px; font-family: 'IBM Plex Mono', monospace; font-size: 13.5px; white-space: nowrap; }
.sample thead .num { font-size: 10.5px; white-space: normal; }
.sample td:not(.num), .sample thead th:not(.num):not(:first-child) { padding-left: 22px; }
.sample .off { color:var(--label); }
.sample-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink); font-size: 14.5px; line-height: 1.6; }

/* ---------- built to last ---------- */
.lasting { padding: 100px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 12px; }
.lasting h2 { max-width: 880px; font-size: clamp(32px, 4.4vw, 60px); line-height: 1.08; letter-spacing:-.012em; }
.lasting-body { max-width: 62ch; margin-top: 24px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.routine-record { margin-top: 44px; display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1fr; background: var(--panel); border: 1px solid var(--line); border-left: 2px solid var(--rule); }
.routine-record > div { padding: 20px 24px; }
.routine-record > div + div { border-left: 1px solid var(--line); }
.routine-record dt { font: 11px 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.routine-record dd { margin-top: 8px; color: var(--ink); font-size: 16px; line-height: 1.4; }

/* ---------- how it starts ---------- */
.start { display: grid; grid-template-columns: 25% 1fr; gap: 40px; padding: 100px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 12px; }
.start h2 { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.1; letter-spacing:-.012em; }
.start-steps { list-style: none; counter-reset: step; max-width: 760px; }
.start-steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; column-gap: 20px; padding: 0 0 30px; }
.start-steps li + li { padding-top: 30px; border-top: 1px solid var(--line); }
.start-steps li::before { content: counter(step, decimal-leading-zero); grid-row: 1 / span 2; padding-top: 7px; color:var(--label); font: 12px 'IBM Plex Mono', monospace; }
.start-steps h3 { font-size: clamp(21px, 2.2vw, 28px); line-height: 1.2; letter-spacing:-.012em; }
.start-steps p { grid-column: 2; margin-top: 8px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.start-more { grid-column: 2; }
.start-more .text-link { color:var(--label); }
.start-more .text-link:hover { color: var(--ink); }

/* ---------- the data rule ---------- */
.schools-page main > .data-rule { margin-top: 84px; margin-bottom: 20px; padding: 30px 32px 30px; border: 2px solid var(--rule); background: rgba(23,23,23,.045); scroll-margin-top: 24px; }
.data-rule h2 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing:-.012em; }
.data-rule p { max-width: 70ch; margin-top: 12px; color: var(--ink); font-size: 17px; line-height: 1.6; }

/* ---------- selected work: the shared case card, held to this page's column ---------- */
.schools-page main > .case-card { margin-left: auto; margin-right: auto; }

/* ---------- the ask ---------- */
.ask { padding: 110px 0 140px; scroll-margin-top: 12px; }
.ask h2 { font-size: clamp(40px, 6vw, 84px); line-height: 1.02; letter-spacing:-.012em; }
.ask-body { max-width: 60ch; margin-top: 26px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.ask-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; }

/* ---------- tablets and small laptops: the example page drops beneath the copy ---------- */
@media (max-width: 980px) {
  .schools-hero-inner { grid-template-columns: 1fr; gap: 44px; padding: 68px 0 60px; align-items: start; }
  .dept { grid-template-columns: 1fr; gap: 34px; padding: 72px 0; }
  .routine-record { grid-template-columns: 1fr 1fr; }
  .routine-record > div:nth-child(3) { border-left: 0; }
  .routine-record > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .schools-hero-inner { padding: 52px 0 48px; gap: 36px; }
  .schools-hero h1 { font-size: clamp(23px, 7vw, 44px); }
  .schools-hero .hero-actions .button { width: 100%; justify-content: space-between; }
  .dept-nav { gap: 0 22px; padding: 8px 0; }
  .dept { padding: 56px 0; }
  .dept-points li { font-size: 15.5px; }
  .sample { padding: 18px 16px 20px; }
  .sample caption { font-size: 16px; }
  .sample tbody th, .sample tbody td, .sample tfoot th, .sample tfoot td { font-size: 13.5px; }
  .sample .num { padding-left: 8px; font-size: 12.5px; }
  .sample thead .num { font-size: 10px; }
  .lasting, .start { padding: 68px 0; }
  .routine-record { grid-template-columns: 1fr; }
  .routine-record > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .start { display: block; }
  .start h2 { margin-bottom: 34px; }
  .start-steps li { grid-template-columns: 38px 1fr; column-gap: 12px; }
  .schools-page main > .data-rule { margin-top: 60px; padding: 24px 18px 22px; }
  .data-rule p { font-size: 16px; }
  .ask { padding: 72px 0 96px; }
  .ask-actions .button { width: 100%; justify-content: space-between; }
  .schools-page .footer { margin-left: auto; margin-right: auto; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- one click deeper: every row opens, and the first is shown open ---------- */
.sample thead th:first-child, .sample tfoot th { padding-left: 20px; }
.sample tbody th { padding-left: 20px; }
.sample tbody th::before { content: '+'; display: inline-block; width: 20px; margin-left: -20px; color: var(--muted); font: 13px 'IBM Plex Mono', monospace; }
.sample tbody tr.open th { color: var(--ink); }
.sample tbody tr.open th::before { content: '\2212'; color:var(--label); }
.sample tbody .drill-row td { padding: 2px 0 14px; }
.drill { margin-left: 20px; padding: 14px 16px; background: var(--panel-2); border-left: 2px solid var(--rule); }
.drill-label { color:var(--label); font: 500 10.5px/1.5 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: .06em; }
.drill-list { list-style: none; margin-top: 8px; }
.drill-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 4px 0; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.sample .drill-list .num { flex: none; padding-left: 0; color: var(--ink); font-size: 12.5px; }
.sample .drill-list .num.off { color:var(--label); }
.drill-note { margin-top: 8px; color: var(--ink); font-size: 13.5px; line-height: 1.5; }
@media (max-width: 760px) {
  .sample thead th:first-child, .sample tfoot th, .sample tbody th { padding-left: 16px; }
  .sample tbody th::before { width: 16px; margin-left: -16px; }
  .drill { margin-left: 0; padding: 12px 12px; }
  .drill-list li { font-size: 13px; }
}
.sample tbody tr:not(.drill-row) td:not(.num) { white-space: nowrap; }
@media (max-width: 760px) { .sample tbody tr:not(.drill-row) td:not(.num), .sample thead th:not(.num):not(:first-child) { padding-left: 12px; } }
.sample .drill-list .num i { margin-left: 12px; color: var(--muted); font-style: normal; }

/* Light theme: a figure that is off track is the one place a sample uses the darker coral. */
.sample .off, .sample .drill-list .num.off { color: var(--coral-ink); }
