/*
Theme Name: DevModules
Theme URI: https://devmodules.fuller.edu
Author: DevModules — Fuller University
Description: University developer publication + school of computing. Pure template-based pages (content lives in the PHP templates), editor-driven blog posts. Ported 1:1 from the static DevModules build.
Version: 1.4.1
Requires at least: 5.0
Requires PHP: 7.4
License: All Rights Reserved
Text Domain: devmodules
*/

/* ==========================================================================
   DevModules — devmodules.fuller.edu
   2026 redesign: photo-led university news language (à la modern campus
   newsrooms), cool white + deep navy + one cobalt accent.

   Type roles
     display : Bricolage Grotesque  (headlines, wordmark)
     ui/body : Schibsted Grotesk    (nav, decks, cards, metadata)
     prose   : Source Serif 4       (long-read article body only)

   Shape rule (locked): interactive controls are pills; media, cards and
   panels are sharp (radius 0). Chips/tags are pills. No mixed radii.

   Container: 1180px everywhere, including the article inner page.
   ========================================================================== */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-wght-italic.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-wght-italic.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --white: #ffffff;
  --ink: #101828;         /* cool near-black text */
  --ink-2: #475467;       /* secondary text */
  --ink-3: #667085;       /* faint metadata */
  --navy: #0a1f44;        /* brand dark: footer, newsletter, overlays */
  --navy-2: #12305f;      /* navy hover/soft */
  --blue: #1a56db;        /* the one accent */
  --blue-deep: #1240b8;
  --blue-tint: #ebf1fe;
  --line: #e4e7ec;
  --line-dark: #cdd5e0;
  --bg-soft: #f5f7fa;     /* cool section band */
  --code-bg: #0b1b33;
  --code-ink: #dbe4f5;

  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --ui: "Schibsted Grotesk", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --prose: "Source Serif 4", Charter, Georgia, serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  --measure: 1180px;      /* site + article inner container */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--blue-tint); color: var(--navy); }

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 { text-wrap: balance; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ==========================================================================
   Header (sticky)
   ========================================================================== */
.topline {
  background: var(--navy);
  color: #c6d2ea;
  font-size: 12.5px;
  letter-spacing: 0.01em;
}
.topline .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 34px;
  gap: 16px;
}
.topline a { color: #ffffff; text-decoration: none; font-weight: 500; }
.topline a:hover { text-decoration: underline; text-underline-offset: 3px; }
.topline .t-date { white-space: nowrap; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 6px 24px -14px rgba(10, 31, 68, 0.35); }
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--navy);
  margin-right: auto;
}
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .b-word {
  font-family: var(--display);
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand .b-sub {
  display: block;
  font-family: var(--ui);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 3px;
}

.main-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a {
  display: inline-block;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.main-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.main-nav a.active,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-ancestor > a { background: var(--blue-tint); color: var(--blue-deep); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.icon-btn:hover { border-color: var(--line-dark); color: var(--ink); }
.icon-btn:active { transform: scale(0.96); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  font-family: var(--ui);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s var(--ease), transform 0.12s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #ffffff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-dark); }
.btn-ghost:hover { border-color: var(--ink-3); }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}

/* Search panel */
.search-panel {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.search-panel.open { display: block; }
.search-panel form {
  display: flex;
  gap: 10px;
  padding: 18px 0;
}
.search-panel input[type="search"] {
  flex: 1;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 11px 20px;
  font-family: var(--ui);
  font-size: 15.5px;
  color: var(--ink);
  background: var(--white);
}
.search-panel input::placeholder { color: var(--ink-3); }
.search-panel input:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: transparent;
}

/* ==========================================================================
   Shared story pieces
   ========================================================================== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: var(--blue-tint);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 11px;
  text-decoration: none;
}
.chip.on-photo { background: rgba(255, 255, 255, 0.94); color: var(--navy); }

.headline a { color: inherit; text-decoration: none; }
.headline a:hover { color: var(--blue-deep); }

.dek { color: var(--ink-2); }

.byline {
  font-size: 13.5px;
  color: var(--ink-3);
  margin: 0;
}
.byline b { color: var(--ink-2); font-weight: 600; }

.media { position: relative; overflow: hidden; background: var(--bg-soft); margin: 0; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media .chip { position: absolute; top: 14px; left: 14px; z-index: 2; }

/* Section headers: plain title + rule + view-all */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 22px;
  margin: 0 0 26px;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 27px;
  letter-spacing: -0.02em;
  margin: 0;
  min-width: 0;
}
.section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  transform: translateY(-4px);
}
.section-head .more {
  order: 3;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-deep);
  text-decoration: none;
  white-space: nowrap;
}
.section-head .more:hover { text-decoration: underline; text-underline-offset: 3px; }

section { scroll-margin-top: 88px; }

/* ==========================================================================
   Home: hero
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 344px;
  gap: 44px;
  padding-block: 36px 8px;
}

.hero-story .media { aspect-ratio: 16 / 9; }

/* Signature: white headline panel docked over the photo */
.hero-panel {
  position: relative;
  background: var(--white);
  width: min(86%, 640px);
  margin-top: -92px;
  padding: 26px 32px 0 0;
}
.hero-panel .headline {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(27px, 3.4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}
.hero-panel .dek { font-size: 17px; line-height: 1.6; margin: 0 0 12px; max-width: 58ch; }

.hero-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-secondary article {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.hero-secondary .media { aspect-ratio: 4 / 3; }
.hero-secondary .headline {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18.5px;
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin: 2px 0 8px;
}
.hero-secondary .byline { margin-top: 8px; }

/* The Latest rail */
.latest {
  border-top: 4px solid var(--navy);
  background: var(--bg-soft);
  padding: 22px 26px 10px;
  align-self: start;
}
.latest h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
}
.latest .live-dot {
  width: 9px;
  height: 9px;
  border-radius: 2.5px;      /* a tiny module, not a circle */
  background: var(--blue);
  animation: modpulse 2.2s var(--ease) infinite;
}
@keyframes modpulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
  .latest .live-dot { animation: none; }
}
.latest ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.latest li { padding: 14px 0; border-top: 1px solid var(--line-dark); }
.latest li:first-child { border-top: 0; }
.latest a {
  display: block;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
  text-decoration: none;
  color: var(--ink);
}
.latest a:hover { color: var(--blue-deep); }
.latest .l-meta { margin-top: 5px; font-size: 12.5px; color: var(--ink-3); }
.latest .l-meta .cat { color: var(--blue-deep); font-weight: 600; }

/* ==========================================================================
   Home: topics strip (photo tiles)
   ========================================================================== */
.topics { padding-block: 46px 10px; }
.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.topic-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  text-decoration: none;
  background: var(--navy);
}
.topic-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.topic-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 31, 68, 0.88) 0%, rgba(10, 31, 68, 0.25) 46%, rgba(10, 31, 68, 0) 70%);
  transition: background 0.25s var(--ease);
}
.topic-tile:hover::after {
  background: linear-gradient(to top, rgba(10, 31, 68, 0.95) 0%, rgba(10, 31, 68, 0.4) 55%, rgba(10, 31, 68, 0.08) 85%);
}
.topic-tile .t-label {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 16px;
  color: #ffffff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.topic-tile .t-count {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 52px;
  color: #c6d2ea;
  font-size: 12.5px;
  font-weight: 500;
}

/* ==========================================================================
   Home: deep dives (photo cards)
   ========================================================================== */
.dives { padding-block: 46px 10px; }
.card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.story-card { display: flex; flex-direction: column; }
.story-card .media { aspect-ratio: 3 / 2; margin-bottom: 16px; }
.story-card .headline {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.story-card .dek { font-size: 15px; line-height: 1.55; margin: 0 0 10px; }
.story-card .byline { margin-top: auto; }

/* ==========================================================================
   Home: releases & tooling
   ========================================================================== */
.releases { padding-block: 46px 10px; }
.release-list { border-top: 1px solid var(--line); }
.release-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 110px;
  gap: 22px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.version-chip {
  justify-self: start;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  background: var(--blue-tint);
  border-radius: 999px;
  padding: 5px 12px;
}
.release-item .r-title {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 16.5px;
  line-height: 1.35;
}
.release-item .r-title a { text-decoration: none; color: var(--ink); }
.release-item .r-title a:hover { color: var(--blue-deep); }
.release-item .r-meta { font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.release-item .r-when {
  justify-self: end;
  font-size: 13px;
  color: var(--ink-3);
  white-space: nowrap;
}

/* ==========================================================================
   Home: opinion
   ========================================================================== */
.opinion-band { background: var(--bg-soft); padding: 52px 0 56px; margin-top: 48px; }
.opinion-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.opinion-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.opinion-card .o-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-deep);
}
.opinion-card .headline {
  font-family: var(--display);
  font-weight: 700;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}
.opinion-card .o-who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--navy);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.02em;
}
.opinion-card .o-who b { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   Newsletter band
   ========================================================================== */
.newsletter {
  background: var(--navy);
  color: #ffffff;
  padding: 60px 0 64px;
}
.newsletter .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.newsletter .n-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7ca3ff;
  margin: 0 0 10px;
}
.newsletter h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.newsletter .n-sub { color: #c6d2ea; font-size: 16px; line-height: 1.6; margin: 0; max-width: 60ch; }
.newsletter .n-cta { display: flex; justify-content: flex-end; }
.newsletter .n-cta .btn { padding: 15px 36px; font-size: 15.5px; }

/* ==========================================================================
   Footer
   ========================================================================== */
footer.site-footer {
  background: var(--navy);
  border-top: 1px solid var(--navy-2);
  color: #c6d2ea;
  padding: 54px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 48px;
}
.f-brand .brand { color: #ffffff; margin: 0 0 14px; }
.f-brand .brand .b-sub { color: #8fa3c9; }
.f-brand p { margin: 0; font-size: 14.5px; line-height: 1.65; max-width: 40ch; }
.footer-grid h3 {
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fa3c9;
  margin: 4px 0 14px;
}
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: #dbe4f5; text-decoration: none; font-size: 14.5px; }
.footer-grid a:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--navy-2);
  margin-top: 44px;
  padding-top: 22px;
  font-size: 13px;
  color: #8fa3c9;
}
.footer-bottom a { color: #c6d2ea; text-decoration: none; }
.footer-bottom a:hover { color: #ffffff; text-decoration: underline; }

/* ==========================================================================
   Article page — inner container is the same 1180px .wrap
   ========================================================================== */
.progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}
.progress-bar { height: 100%; width: 0; background: var(--blue); }

.article-head { padding-block: 44px 8px; }
.article-head .chip { margin-bottom: 18px; }
.article-head h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.028em;
  margin: 0 0 18px;
}
.article-head .dek {
  font-family: var(--prose);
  font-size: 21px;
  line-height: 1.5;
  margin: 0 0 26px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-3);
}
.article-meta .m-left { display: flex; align-items: center; gap: 12px; }
.article-meta b { color: var(--ink); font-weight: 600; }
.article-meta .m-sep { color: var(--line-dark); }
.share { display: flex; gap: 8px; }
.share a, .share button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 7px 15px;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.share a:hover, .share button:hover { border-color: var(--ink-3); color: var(--ink); }

.article-hero { margin: 30px 0 0; }
.article-hero .media { aspect-ratio: 21 / 10; }
.article-hero figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 2px 0;
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.5;
}
.article-hero .credit { white-space: nowrap; color: var(--ink-3); }

/* Two-column article body inside the 1180 container */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 72px;
  padding-block: 44px 24px;
}

.article-prose {
  max-width: 730px;
  font-family: var(--prose);
  font-size: 18.5px;
  line-height: 1.75;
  color: #1d2433;
}
.article-prose > * { margin: 0 0 1.35em; }
.article-prose .lede::first-letter {
  font-family: var(--display);
  font-weight: 800;
  font-size: 3.2em;
  line-height: 0.82;
  float: left;
  padding: 6px 12px 0 0;
  color: var(--navy);
}
.article-prose a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-prose a:hover { color: var(--blue); }
.article-prose h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 1.25em 0 0.6em;
  color: var(--ink);
}
.article-prose > h2:first-child { margin-top: 0.1em; }
.article-prose h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.015em;
  margin: 1.5em 0 0.6em;
  color: var(--ink);
}
.article-prose ul { padding-left: 1.2em; }
.article-prose li { margin-bottom: 0.55em; }
.article-prose li::marker { color: var(--blue); }
.article-prose :not(pre) > code {
  font-family: var(--mono);
  font-size: 0.82em;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.1em 0.38em;
  color: var(--navy);
}

.pullquote {
  margin: 2em 0;
  padding: 6px 0 6px 0;
  font-family: var(--display);
  font-weight: 600;
  font-style: normal;
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--navy);
  text-align: left;
}
.pullquote::before {
  content: "“";
  display: block;
  font-size: 58px;
  line-height: 0.6;
  color: var(--blue);
  margin-bottom: 12px;
}
.pullquote .pq-who {
  display: block;
  margin-top: 14px;
  font-family: var(--ui);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--ink-3);
}

/* Code blocks — dark navy card, filename bar, copy button */
.code-wrap { position: relative; margin: 2em 0; }
.codecard {
  background: var(--code-bg);
  color: var(--code-ink);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.8;
  overflow: hidden;
}
.codecard .cc-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-family: var(--ui);
  font-size: 12.5px;
  color: #93a5c7;
}
.codecard .cc-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue);
  flex: none;
}
.codecard .cc-file {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.codecard pre {
  margin: 0;
  padding: 20px 24px 24px;
  overflow-x: auto;
}
.codecard pre code {
  display: block;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: #d7e1f4;
  min-width: max-content;
}
.codecard .ln {
  display: inline-block;
  width: 1.6em;
  margin-right: 1.4em;
  text-align: right;
  color: #44598a;
  user-select: none;
}
.tok-k { color: #8fb8ff; }
.tok-f { color: #7ce0c3; }
.tok-p { color: #eaf0fb; }
.tok-s { color: #f6cd96; }
.tok-n { color: #f2acbe; }
.tok-c { color: #7187ad; font-style: italic; }
.copy-btn {
  position: absolute;
  top: 7px;
  right: 10px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #c6d2ea;
  border-radius: 999px;
  padding: 4px 13px;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s var(--ease);
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.14); color: #ffffff; }

.article-prose figure { margin: 1.8em 0; }
.article-prose figcaption {
  font-family: var(--ui);
  font-size: 13.5px;
  color: var(--ink-3);
  padding-top: 10px;
  line-height: 1.5;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2.2em; }
.tags a {
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.tags a:hover { border-color: var(--blue); color: var(--blue-deep); }

/* Right rail */
.article-rail { align-self: start; position: sticky; top: 92px; }
.rail-box { border: 1px solid var(--line); padding: 22px 24px; margin-bottom: 24px; }
.rail-box.navy { background: var(--navy); border-color: var(--navy); color: #ffffff; }
.rail-box h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.rail-box.navy p { color: #c6d2ea; font-size: 13.5px; line-height: 1.6; margin: 0 0 14px; }
.rail-box.navy .btn { width: 100%; justify-content: center; }
.rail-box ol { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: mostread; }
.rail-box ol li {
  counter-increment: mostread;
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.rail-box ol li:first-child { border-top: 0; padding-top: 4px; }
.rail-box ol li::before {
  content: counter(mostread);
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  color: var(--line-dark);
  line-height: 1.1;
}
.rail-box ol a {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  text-decoration: none;
}
.rail-box ol a:hover { color: var(--blue-deep); }

/* Author box */
.author-box {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  margin: 40px 0 0;
  max-width: 730px;
}
.author-box .avatar { width: 64px; height: 64px; font-size: 19px; }
.author-box h4 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  margin: 2px 0 2px;
}
.author-box .a-role { font-size: 13px; font-weight: 600; color: var(--blue-deep); margin: 0 0 8px; }
.author-box p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 0; }

.related { padding-block: 48px 92px; }

/* ==========================================================================
   Scroll reveal (progressive enhancement — visible without JS)
   ========================================================================== */
.r-init { opacity: 0; transform: translateY(14px); }
.r-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

/* Keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-row .story-card:last-child { display: none; }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .article-rail { position: static; max-width: 730px; margin-top: 36px; }
}


@media (max-width: 991px) {
  .main-nav {
    display: block;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(10, 31, 68, 0.3);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s;
  }
  .main-nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 16px 14px; }
  .main-nav a { display: block; border-radius: 10px; padding: 12px 14px; font-size: 16px; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn-primary { display: none; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .hero-panel { width: 100%; margin-top: 0; padding: 20px 0 0; }
  .hero-secondary { grid-template-columns: 1fr; gap: 26px; }
  .latest { border-top-width: 4px; }

  .newsletter .wrap { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .opinion-row { grid-template-columns: 1fr; }
  .release-item { grid-template-columns: 84px minmax(0, 1fr); }
  .release-item .r-when { display: none; }
}

@media (max-width: 620px) {
  .topline .t-links { display: none; }
  .brand .b-sub { display: none; }
  .topic-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-row { grid-template-columns: 1fr; }
  .card-row .story-card:last-child { display: flex; }
  .hero-secondary article { grid-template-columns: 116px minmax(0, 1fr); gap: 14px; }
  .newsletter .n-cta .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-head .dek { font-size: 18.5px; }
  .article-prose { font-size: 17.5px; }
  .article-meta { flex-direction: column; align-items: flex-start; }
  .search-panel form { flex-direction: column; }
}

/* ==========================================================================
   Subpages — learning path, curriculum, workshops, essays, contact, legal
   ========================================================================== */
.page-head { padding-block: 46px 10px; }
.page-head .chip { margin-bottom: 18px; }
.page-head h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(33px, 4.4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.028em;
  margin: 0 0 18px;
}
.page-head .dek {
  font-family: var(--prose);
  font-size: 20.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}
.page-meta-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.page-meta-chips span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
}
.page-meta-chips b { color: var(--ink); font-weight: 700; }

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  margin-top: 36px;
}
.stat-band > div { padding: 20px 26px 22px; border-left: 1px solid var(--line); }
.stat-band > div:first-child { border-left: 0; padding-left: 0; }
.stat-band b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 2px;
}
.stat-band span { font-size: 13.5px; color: var(--ink-3); }

.page-section { padding: 54px 0 8px; }
.section-sub { font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 72ch; margin: -12px 0 32px; }

/* Learning-path stages */
.stage {
  border-top: 1px solid var(--line);
  padding: 36px 0 42px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 324px;
  gap: 10px 46px;
}
.stage .s-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #d3dbe8;
}
.stage h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 27px;
  letter-spacing: -0.02em;
  margin: 2px 0 6px;
}
.stage .s-meta { font-size: 14px; font-weight: 600; color: var(--blue); margin: 0 0 14px; }
.stage .s-desc { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin: 0 0 20px; }
.wk {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.55;
}
.wk b { color: var(--ink); font-weight: 700; white-space: nowrap; }
.wk span { color: var(--ink-2); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag-row span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 13px;
}
.milestone {
  align-self: start;
  background: var(--bg-soft);
  border-top: 3px solid var(--navy);
  padding: 22px 24px 24px;
}
.m-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 9px;
}
.milestone p { font-size: 14.5px; line-height: 1.62; color: var(--ink-2); margin: 0; }

/* Curriculum parts & workshop syllabi */
.part {
  border-top: 1px solid var(--line);
  padding: 34px 0 38px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 8px 46px;
}
.part .p-id b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 5px;
}
.part .p-id span { font-size: 13px; line-height: 1.5; color: var(--ink-3); display: block; }
.part h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.part .p-desc { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin: 0 0 20px; }
.units { border-top: 1px solid var(--line); }
.unit {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.unit .u-no { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--blue); }
.unit .u-ex { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.part .capstone {
  margin-top: 20px;
  background: var(--bg-soft);
  border-left: 3px solid var(--blue);
  padding: 16px 20px 18px;
}
.part .capstone p { font-size: 14.5px; line-height: 1.62; color: var(--ink-2); margin: 0; }
.refs { margin-top: 16px; font-size: 13.5px; line-height: 1.6; color: var(--ink-3); }
.refs b { color: var(--ink-2); font-weight: 600; }

/* Workshop catalog cards */
.ws-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.ws-card { border: 1px solid var(--line); padding: 24px 24px 20px; display: flex; flex-direction: column; }
.ws-card .w-glyph { font-family: var(--mono); font-size: 22px; line-height: 1; color: var(--blue); margin-bottom: 16px; }
.ws-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19.5px;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 8px;
}
.ws-card > p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 0 0 18px; flex: 1; }
.ws-card .w-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 13px;
  color: var(--ink-3);
}
.ws-card .w-meta b { color: var(--ink-2); font-weight: 600; }

/* Numbered step cards (grading, weekly rhythm, after you enroll) */
.num-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.num-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.num-card .n-i {
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  color: var(--blue);
  letter-spacing: -0.02em;
}
.num-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17.5px;
  letter-spacing: -0.01em;
  margin: 9px 0 8px;
}
.num-card p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 0; }

/* Fact rows (prerequisites, opinions) */
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.fact { border-top: 1px solid var(--line); padding: 18px 0 20px; font-size: 14.5px; line-height: 1.62; color: var(--ink-2); }
.fact b { display: block; color: var(--ink); font-size: 15.5px; margin-bottom: 6px; }

/* Essay archive */
.essay-feature {
  background: var(--bg-soft);
  border-top: 3px solid var(--navy);
  padding: 30px 34px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 16px 44px;
  align-items: center;
}
.essay-feature .media { aspect-ratio: 16 / 10; }
.essay-feature .e-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-3);
  margin: 0 0 12px;
}
.essay-feature .btn { margin-top: 18px; }
.essay-feature h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(24px, 2.6vw, 31px);
  letter-spacing: -0.022em;
  line-height: 1.12;
  margin: 0 0 12px;
  max-width: 24ch;
}
.essay-feature h3 a { color: inherit; text-decoration: none; }
.essay-feature h3 a:hover { color: var(--blue-deep); }
.essay-feature p { font-size: 15.5px; line-height: 1.62; color: var(--ink-2); margin: 0; max-width: 62ch; }
.essay {
  border-top: 1px solid var(--line);
  padding: 26px 0 28px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 12px 40px;
  align-items: start;
}
.essay .media { aspect-ratio: 16 / 10; }
.essay .e-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 10px;
}
.essay h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21.5px;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 8px;
}
.essay h3 a { color: inherit; text-decoration: none; }
.essay h3 a:hover { color: var(--blue-deep); }
.essay p { font-size: 15px; line-height: 1.62; color: var(--ink-2); margin: 0 0 10px; }
.essay .draws { font-size: 13px; color: var(--ink-3); margin: 0; }
.essay .draws b { font-weight: 600; color: var(--ink-2); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 22px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 20px; color: var(--blue); flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 20px; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); max-width: 76ch; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 356px;
  gap: 64px;
  align-items: start;
  padding: 34px 0 10px;
}
.form-card { border: 1px solid var(--line); border-top: 3px solid var(--navy); padding: 30px 32px 32px; }
.form-card h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.form-card .f-sub { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 0 0 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: var(--ui);
  font-size: 15px;
  color: var(--ink);
  background: #ffffff;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--tint);
}
.field .hint { font-size: 12.5px; color: var(--ink-3); margin-top: 7px; }
.field .hint a { color: var(--blue); }
.form-card .btn { margin-top: 4px; }
.form-foot { font-size: 13.5px; color: var(--ink-3); margin: 16px 0 0; }
.form-foot a { color: var(--blue); text-decoration: none; }
.form-foot a:hover { text-decoration: underline; }
.form-ok { display: none; background: var(--tint); border: 1px solid #c7d7fb; padding: 28px 30px; }
.form-ok h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 10px;
}
.form-ok p { font-size: 15px; line-height: 1.62; color: var(--ink-2); margin: 0 0 10px; }
.form-ok p:last-child { margin-bottom: 0; }
.chan-row { border-top: 1px solid var(--line); padding: 12px 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-3); }
.chan-row:first-of-type { border-top: 0; padding-top: 4px; }
.chan-row b { display: block; font-size: 14px; color: var(--ink); margin-bottom: 2px; }
.chan-row a { color: var(--blue); text-decoration: none; font-family: var(--mono); font-size: 12.5px; }
.chan-row a:hover { text-decoration: underline; }

/* Credits (contribution page) */
.credit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.credit { border-top: 1px solid var(--line); padding: 18px 0 20px; }
.credit h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17.5px;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 3px;
}
.credit .who { font-size: 13px; color: var(--ink-3); margin: 0 0 8px; }
.credit p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 0; }

/* Legal / solo prose */
.prose-solo { max-width: 780px; padding: 10px 0 34px; }
.article-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.7em 0;
  font-family: var(--ui);
  font-size: 14.5px;
  line-height: 1.55;
}
.article-prose th {
  text-align: left;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 2px solid var(--navy);
  padding: 0 16px 10px 0;
}
.article-prose td {
  border-bottom: 1px solid var(--line);
  padding: 13px 16px 13px 0;
  vertical-align: top;
  color: var(--ink-2);
}
.article-prose td:first-child { color: var(--ink); font-weight: 600; width: 17%; }
.ref-list {
  border-top: 1px solid var(--line);
  margin: 10px 0 0;
  padding: 22px 0 0 1.25em;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.62;
}
.ref-list li { margin-bottom: 10px; }

/* Five-column footer on subpages */
.footer-grid.cols-5 { grid-template-columns: minmax(0, 1.45fr) repeat(4, minmax(0, 1fr)); gap: 44px; }

@media (max-width: 1080px) {
  .stage { grid-template-columns: 58px minmax(0, 1fr) 292px; gap: 10px 34px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; }
  .footer-grid.cols-5 { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 980px) {
  .ws-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .num-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-band b { font-size: 25px; }
}
@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; }
  .stage .s-num { font-size: 30px; margin-bottom: -4px; }
  .milestone { margin-top: 22px; }
  .part { grid-template-columns: 1fr; gap: 4px 0; }
  .part .p-id { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
  .part .p-id b { margin: 0; }
  .essay { grid-template-columns: 1fr; gap: 10px 0; }
  .essay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 22px; align-items: stretch; }
  .essay-grid .essay { display: flex; flex-direction: column; border: 1px solid var(--line); padding: 0 0 20px; }
  .essay-grid .essay .media { margin: 0 0 16px; }
  .essay-grid .essay > div { padding: 0 18px; }
  .essay-feature { grid-template-columns: 1fr; align-items: start; }
  .essay-feature .media { margin: 8px -34px -32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .credit-grid { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-grid.cols-5 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .ws-grid { grid-template-columns: 1fr; }
  .num-grid,
  .num-grid.cols-3 { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .stat-band > div { padding: 14px 18px 16px; }
  .stat-band > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat-band > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .wk { grid-template-columns: 1fr; gap: 2px; }
  .unit { grid-template-columns: 40px minmax(0, 1fr); }
  .unit .u-ex { grid-column: 2; }
  .footer-grid.cols-5 { grid-template-columns: 1fr; }
  .page-head .dek { font-size: 18px; }
}

/* Rail extras: table of contents + key-number stats */
.rail-box .toc { list-style: none; margin: 6px 0 0; padding: 0; }
.rail-box .toc li { border-top: 1px solid var(--line); }
.rail-box .toc li:first-child { border-top: 0; }
.rail-box .toc a {
  display: block;
  padding: 9px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
}
.rail-box .toc a:hover { color: var(--blue-deep); }
.rail-box .kn { display: flex; align-items: baseline; gap: 14px; border-top: 1px solid var(--line); padding: 10px 0; }
.rail-box .kn:first-of-type { border-top: 0; padding-top: 4px; }
.rail-box .kn b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--navy);
  min-width: 86px;
}
.rail-box .kn span { font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.rail-box .rail-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}
.rail-box .rail-link:hover { text-decoration: underline; }

.page-section.last { padding-bottom: 68px; }
.refs.spaced { margin-top: 26px; }
.section-sub.tight { margin-bottom: 0; }
.num-card h3 small { font-family: var(--ui); font-size: 12.5px; font-weight: 600; color: var(--ink-3); margin-left: 6px; letter-spacing: 0; }
.field label small { font-weight: 400; font-size: 12.5px; color: var(--ink-3); }

/* Transplanted legal prose + inline code outside article prose */
.article-prose .lead { font-size: 1.08em; }
.article-prose .small-note { font-family: var(--ui); font-size: 14px; color: var(--ink-3); }
.page-head code, .essay code { font-family: var(--mono); font-size: 0.88em; }
.page-head .dek code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 5px; padding: 0.06em 0.3em; }

/* ==========================================================================
   Breadcrumbs + photo page banners
   ========================================================================== */
.crumbs { font-size: 13px; margin-bottom: 20px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 9px; opacity: 0.45; }
.crumbs a { color: inherit; font-weight: 600; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.page-head .crumbs,
.article-head .crumbs { color: var(--ink-3); }
.page-head .crumbs a,
.article-head .crumbs a { color: var(--ink-2); }

.page-banner { position: relative; background: var(--navy); color: #ffffff; overflow: hidden; }
.pb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pb-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(92deg, rgba(7, 20, 45, 0.94) 30%, rgba(7, 20, 45, 0.62) 72%, rgba(9, 26, 57, 0.42) 100%);
}
.page-banner .wrap { position: relative; z-index: 1; padding-block: 44px 50px; }
.page-banner .crumbs { color: #a9b9dc; }
.page-banner .crumbs a { color: #e6ecf9; }
.page-banner .chip { margin-bottom: 18px; }
.page-banner h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(33px, 4.4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.028em;
  color: #ffffff;
  margin: 0 0 18px;
}
.page-banner .dek {
  font-family: var(--prose);
  font-size: 20.5px;
  line-height: 1.55;
  color: #d3ddf1;
  margin: 0;
  max-width: 82ch;
}
.page-banner .dek code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 5px;
  padding: 0.06em 0.3em;
  color: #ffffff;
}

/* Legal pages at container width */
.prose-solo.wide { max-width: none; }

@media (max-width: 620px) {
  .page-banner .wrap { padding-block: 34px 38px; }
  .page-banner .dek { font-size: 18px; }
}

@media (max-width: 760px) {
  .section-head { flex-wrap: wrap; gap: 10px 22px; }
  .section-head h2 { line-height: 1.18; }
  .section-head::after { display: none; }
}

/* ==========================================================================
   Hover polish: smooth transitions + fully clickable cards
   ========================================================================== */
a { transition: color 0.16s var(--ease), background-color 0.16s var(--ease), border-color 0.16s var(--ease), opacity 0.16s var(--ease); }
.topic-tile .t-label,
.topic-tile .t-label * { transition: color 0.2s var(--ease), transform 0.2s var(--ease); }

/* Whole card is the click target; inner controls stay independently clickable */
.story-card,
.hero-secondary article,
.opinion-card,
.release-item,
.essay,
.essay-feature { position: relative; }
.story-card .headline a::after,
.hero-secondary .headline a::after,
.opinion-card .headline a::after,
.release-item .headline a::after,
.essay h3 a::after,
.essay-feature h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.essay .draws a,
.essay-feature .btn,
.release-item .tags a { position: relative; z-index: 2; }

/* Hovering anywhere on the card colours the title */
.story-card:hover .headline a,
.hero-secondary article:hover .headline a,
.opinion-card:hover .headline a,
.release-item:hover .headline a,
.latest li:hover .headline a,
.essay:hover h3 a,
.essay-feature:hover h3 a { color: var(--blue-deep); }


/* Pagination (Articles page + archives) */
.dm-pagination { margin-top: 38px; }
.dm-pagination .page-numbers {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.dm-pagination .page-numbers li { margin: 0; }
.dm-pagination a.page-numbers,
.dm-pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
}
.dm-pagination a.page-numbers:hover { border-color: var(--blue); color: var(--blue-deep); }
.dm-pagination span.page-numbers.current { background: var(--navy); border-color: var(--navy); color: #ffffff; }
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 38px; }
.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
}
.navigation.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #ffffff; }

/* Search field + back-home on search results and 404 */
.page-search { display: flex; gap: 10px; max-width: 560px; margin: 2px 0 22px; }
.page-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 22px;
  font-family: var(--ui);
  font-size: 15.5px;
  color: var(--ink);
  background: #ffffff;
}
.page-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--tint); }
.btn-outline {
  border: 1.5px solid var(--line-dark);
  background: #ffffff;
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
@media (max-width: 560px) {
  .essay-grid { grid-template-columns: 1fr; }
  .page-search { flex-direction: column; }
}

/* Feature card: the whole card is clickable, so the button reacts with it */
.essay-feature { cursor: pointer; }
.essay-feature .btn-primary { transition: background 0.18s var(--ease), transform 0.12s var(--ease); }
.essay-feature:hover .btn-primary { background: var(--blue-deep); }
.essay-feature:active .btn-primary { transform: translateY(1px); }
.share .copied { border-color: var(--blue); color: var(--blue-deep); }

/* Topic filter tabs (Articles page) */
.topic-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: -14px 0 30px;
}
.topic-tabs a {
  display: inline-flex;
  align-items: center;
  padding: 8px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}
.topic-tabs a:hover { border-color: var(--blue); color: var(--blue-deep); }
.topic-tabs a.is-on {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}
@media (max-width: 620px) {
  .topic-tabs { gap: 8px; margin-bottom: 24px; }
  .topic-tabs a { padding: 7px 14px; font-size: 13px; }
}

/* Card descriptions clamp to two lines */
.card-dek,
.story-card .dek,
.essay > div > p:not(.draws),
.essay-feature > div > p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Table of contents: sub-headings sit one step in */
.rail-box .toc li.lvl-3 a { padding-left: 14px; font-weight: 500; font-size: 13.5px; }

/* Anchored listings clear the sticky header when jumped to */
#article-list { scroll-margin-top: 96px; }

/* Plain <pre>/<table> written in the editor — no classes needed */
.article-prose pre {
  background: var(--code-bg);
  color: #d7e1f4;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.8;
  margin: 2em 0;
  padding: 20px 24px;
  overflow-x: auto;
}
.article-prose pre code {
  display: block;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  min-width: max-content;
}
.article-prose blockquote:not(.pullquote) {
  margin: 1.9em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--blue);
  font-family: var(--prose);
  font-size: 19.5px;
  line-height: 1.55;
  color: var(--navy);
}
@media (max-width: 620px) {
  .article-prose pre { padding: 16px 18px; font-size: 13px; }
  .article-prose table { font-size: 13.5px; }
  .article-prose td:first-child { width: auto; }
}
