/* THKeymaker editorial system — independent from the homepage layout. */

.blog-body {
  --ink: #172526;
  --ink-soft: #435152;
  --muted: #718080;
  --paper: #f7f5ef;
  --paper-raised: #fffef9;
  --panel: #ece9df;
  --line: #d7d3c8;
  --teal: #0c746e;
  --teal-dark: #07504e;
  --teal-pale: #dcece7;
  --gold: #bc7a24;
  --gold-pale: #f3e6cf;
  --navy: #0d2528;
  --serif: "Noto Serif Vietnamese", "Noto Serif", Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Noto Sans", Arial, sans-serif;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
}

.blog-body::before { display: none; }

.blog-body ::selection {
  color: var(--ink);
  background: var(--gold-pale);
}

.editorial-shell {
  width: calc(100% - clamp(48px, 7.5vw, 144px));
  max-width: 1600px;
  margin-inline: auto;
}

.blog-body .site-header {
  position: relative;
  z-index: 100;
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px clamp(24px, 3.2vw, 64px);
  color: #e4efec;
  background: rgba(9, 27, 28, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.blog-body .brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.blog-body .brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-weight: 900;
}

.blog-body .brand-copy {
  display: grid;
  gap: 2px;
}

.blog-body .brand-copy strong {
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.blog-body .brand-copy span {
  max-width: 420px;
  color: #718080;
  font-size: 13px;
  line-height: 1.35;
}

.blog-body .site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 800;
}

.blog-body .site-nav a {
  color: #b9cbc6;
  text-decoration: none;
  opacity: 0.88;
}

.blog-body .site-nav a:hover,
.blog-body .site-nav a[aria-current="page"] { color: #d7a761; }

.blog-body .site-nav a:focus-visible,
.blog-body .brand:focus-visible,
.reader-menu-button:focus-visible,
.reader-panel-mobile-head button:focus-visible {
  outline: 2px solid #d7a761;
  outline-offset: 4px;
}

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 140;
  height: 3px;
  background: transparent;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--teal));
}

/* Blog index */

.blog-index .blog-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  min-height: clamp(320px, 32vw, 420px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: clamp(76px, 8vw, 124px) clamp(32px, 7.5vw, 144px);
  overflow: hidden;
  color: #f2f8f5;
  background: var(--navy);
}

.blog-index .blog-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(46vw, 720px);
  aspect-ratio: 1;
  top: -58%;
  right: -8%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 82px rgba(255, 255, 255, 0.022), 0 0 0 164px rgba(255, 255, 255, 0.014);
}

.blog-index .blog-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.065) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000, transparent 88%);
}

.blog-kicker {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 24px;
  color: #8fc6bb;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.blog-kicker::before {
  content: "";
  width: 38px;
  height: 1px;
  background: #c68e49;
}

.blog-index .blog-hero h1 {
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(66px, 7vw, 108px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.blog-index .blog-library {
  padding-block: clamp(72px, 7vw, 112px) clamp(100px, 9vw, 148px);
}

.blog-index .series-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(620px, 1fr);
  gap: clamp(52px, 6vw, 112px);
  min-height: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.blog-index .series-card-copy {
  position: sticky;
  top: 112px;
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 8px 0 34px;
  border: 0;
}

.blog-index .series-meta {
  margin-bottom: 54px;
  color: var(--muted);
  font-size: 10px;
}

.blog-index .series-card-copy .eyebrow {
  margin-bottom: 14px;
  color: var(--teal);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.blog-index .series-card-copy h2 {
  max-width: 520px;
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(44px, 4.2vw, 68px);
  font-weight: 430;
  letter-spacing: -0.04em;
  line-height: 1.06;
  text-wrap: balance;
}

.blog-index .blog-reading-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.blog-index .blog-reading-list li + li { border-top: 1px solid var(--line); }

.blog-index .blog-reading-list a {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(90px, auto);
  gap: clamp(20px, 2.4vw, 44px);
  align-items: center;
  min-height: 108px;
  padding: 24px 10px;
  color: var(--ink);
  text-decoration: none;
  transition: padding 180ms ease, background 180ms ease;
}

.blog-index .blog-reading-list a:hover {
  padding-inline: 22px;
  background: var(--teal-pale);
}

.blog-index .blog-reading-list span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 450;
  letter-spacing: -0.03em;
}

.blog-index .blog-reading-list small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-align: right;
  white-space: nowrap;
}

.blog-index .blog-reading-list strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(19px, 1.35vw, 23px);
  font-weight: 540;
  line-height: 1.42;
  text-wrap: pretty;
}

.blog-index .blog-reading-list a:hover strong { color: var(--teal-dark); }

/* Article opener */

.article-page .article-hero {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.article-hero-inner {
  width: calc(100% - clamp(48px, 7.5vw, 144px));
  max-width: 1600px;
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 860px) minmax(220px, 260px);
  gap: clamp(28px, 3.2vw, 64px);
  margin-inline: auto;
}

.reader-hero-gateway {
  position: relative;
  isolation: isolate;
  min-height: clamp(560px, 70vh, 780px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #f2f8f5;
  background: var(--navy);
}

.reader-hero-gateway::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(54vw, 820px);
  aspect-ratio: 1;
  top: -55%;
  right: -10%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 96px rgba(255, 255, 255, 0.022), 0 0 0 192px rgba(255, 255, 255, 0.014);
}

.reader-hero-gateway .article-hero-inner { padding-block: clamp(84px, 9vw, 138px); }

.reader-hero-chapter {
  color: var(--ink);
  background: var(--paper-raised);
  border-bottom: 1px solid var(--line);
}

.reader-hero-chapter .article-hero-inner {
  min-height: 460px;
  align-items: center;
  padding-block: 66px 60px;
}

.reader-chapter-number {
  grid-column: 1;
  align-self: start;
  margin-top: 62px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(96px, 9vw, 146px);
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 0.78;
}

.article-hero-copy {
  grid-column: 2 / 4;
  max-width: 1100px;
}

.article-page .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 42px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-page .breadcrumbs a { text-decoration: none; }

.reader-hero-gateway .breadcrumbs { color: #91aaa4; }
.article-page .breadcrumbs a:hover { color: var(--gold); }

.article-page .article-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--teal);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.article-page .article-meta,
.blog-index .series-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.reader-hero-gateway .article-kicker { color: #8fc6bb; }

.article-page .article-kicker span + span::before,
.article-page .article-meta span + span::before,
.blog-index .series-meta span + span::before {
  color: var(--gold);
  opacity: 1;
}

.article-page .article-hero h1 {
  max-width: 1020px;
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(50px, 5.4vw, 82px);
  font-weight: 420;
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-wrap: balance;
}

.reader-hero-gateway .article-hero h1 {
  color: #fff;
  font-size: clamp(58px, 6.5vw, 94px);
  line-height: 1;
}

.article-page .article-subtitle {
  max-width: 820px;
  margin: 28px 0 0;
  color: #b8cbc6;
  font-family: var(--serif);
  font-size: clamp(19px, 1.8vw, 27px);
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  text-wrap: pretty;
}

.article-page .article-caption {
  max-width: 820px;
  margin: 20px 0 0;
  color: #d7a761;
  font: 650 12px/1.55 var(--sans);
  letter-spacing: 0.035em;
}

.article-page .article-meta {
  margin-top: 34px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.reader-hero-gateway .article-meta { color: #95ada7; }

.reader-mobile-actions,
.reader-panel-mobile-head { display: none; }

/* Three-column reader */

.article-page .reading-layout {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 860px) minmax(220px, 260px);
  gap: clamp(28px, 3.2vw, 64px);
  align-items: start;
  padding-block: 78px 118px;
  color: var(--ink);
}

.article-page .series-rail,
.article-page .toc-rail {
  position: sticky;
  top: 28px;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  font-family: var(--sans);
  scrollbar-width: thin;
}

.article-page .series-rail {
  grid-column: 1;
  padding: 0 14px 20px;
  color: #dce9e5;
  background: var(--navy);
  scrollbar-color: #47645d transparent;
}

.rail-series-head {
  margin: 0 -14px;
  padding: 27px 22px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rail-series-head span,
.toc-heading span {
  display: block;
  margin-bottom: 8px;
  color: #88b7ae;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rail-series-head strong,
.toc-heading strong {
  display: block;
  color: #f9fbf9;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.28;
}

.article-page .series-mini-list {
  margin: 0;
  padding: 8px 0 0;
  list-style: none;
}

.article-page .series-mini-list li + li { border-top: 1px solid rgba(255, 255, 255, 0.075); }

.article-page .series-mini-list a {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 10px;
  padding: 15px 9px;
  color: #9cb0aa;
  text-decoration: none;
}

.article-page .series-mini-list a:hover,
.article-page .series-mini-list a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.065);
}

.article-page .series-mini-list span {
  grid-row: 1 / 3;
  color: #c99a55;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.35;
}

.article-page .series-mini-list strong {
  color: inherit;
  font-size: 12px;
  font-weight: 610;
  line-height: 1.42;
  text-wrap: pretty;
}

.article-page .series-mini-list small {
  color: #718b84;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.3;
  text-transform: uppercase;
}

.article-page .reading-content {
  grid-column: 2;
  min-width: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(18.5px, 1.12vw, 20px);
  font-weight: 400;
  line-height: 1.84;
  text-rendering: optimizeLegibility;
}

.article-page .reading-content > p:first-child {
  margin-bottom: 34px;
  color: var(--ink);
  font-size: 1.105em;
  line-height: 1.76;
}

.article-page .reading-content p {
  margin: 0 0 1.42em;
  color: inherit;
  font: inherit;
}

.article-page .reading-content h1,
.article-page .reading-content h2,
.article-page .reading-content h3,
.article-page .reading-content h4 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 540;
  letter-spacing: -0.026em;
  line-height: 1.22;
  scroll-margin-top: 32px;
  text-wrap: pretty;
}

.article-page .reading-content h1,
.article-page .reading-content h2 {
  margin: 2.45em 0 0.75em;
  padding: 0;
  border: 0;
  font-size: clamp(31px, 2.55vw, 42px);
}

.article-page .reading-content h3 {
  margin: 2.15em 0 0.72em;
  color: var(--teal-dark);
  font-size: clamp(23px, 1.65vw, 27px);
  font-weight: 620;
  line-height: 1.35;
}

.article-page .reading-content h4 {
  margin: 2em 0 0.68em;
  color: var(--teal-dark);
  font-size: 21px;
  font-weight: 650;
}

.article-page .reading-content hr {
  width: 38px;
  height: 1px;
  margin: 68px 0;
  border: 0;
  background: var(--gold);
}

.article-page .heading-anchor {
  color: var(--line);
  font-family: var(--sans);
}

.article-page .reading-content a:not(.heading-anchor) { color: var(--teal-dark); }

.article-page .reading-content strong,
.article-page .reading-content em { color: var(--ink); }

.article-page .reading-content ul,
.article-page .reading-content ol {
  margin: 0 0 1.55em;
  padding-left: 1.35em;
}

.article-page .reading-content li {
  margin-bottom: 0.56em;
  padding-left: 0.18em;
}

.article-page .reading-content blockquote {
  margin: 1.8em 0;
  padding: 21px 25px;
  color: var(--ink-soft);
  background: var(--gold-pale);
  border-left: 3px solid var(--gold);
  font: italic 17px/1.76 var(--serif);
}

.article-page .reading-content table {
  width: 100%;
  margin: 2em 0;
  border-collapse: collapse;
  color: var(--ink-soft);
  font: 13px/1.62 var(--sans);
}

.article-page .reading-content th,
.article-page .reading-content td {
  padding: 13px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-page .reading-content th {
  color: var(--ink);
  background: var(--panel);
}

.article-page .reading-content tr:nth-child(even) td { background: rgba(236, 233, 223, 0.5); }

.article-page .reading-content math {
  color: var(--ink);
  font-family: "STIX Two Math", math, serif;
  font-size: 1.04em;
}

.article-page .reading-content math[display="block"],
.article-page .reading-content p:has(> math:only-child) {
  display: block;
  max-width: 100%;
  margin-block: 1.8em;
  padding: 20px 22px;
  overflow-x: auto;
  color: var(--ink);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  text-align: center;
}

.article-page .reading-content p:has(> math:only-child) math {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.article-page .toc-rail {
  grid-column: 3;
  padding-left: 24px;
  border-left: 1px solid var(--line);
  scrollbar-color: #b6b0a4 transparent;
}

.toc-heading {
  padding: 2px 4px 21px;
  border-bottom: 1px solid var(--line);
}

.toc-heading span { color: var(--teal); }
.toc-heading strong { color: var(--ink); }

.article-page .article-toc {
  margin: 0;
  padding: 12px 0 0;
  list-style: none;
}

.article-page .article-toc li { margin: 0; }

.article-page .article-toc a {
  display: block;
  padding: 7px 4px;
  color: var(--muted);
  border: 0;
  border-radius: 0;
  font-size: 11px;
  line-height: 1.5;
  text-decoration: none;
}

.article-page .article-toc .toc-depth-1 a {
  padding-left: 16px;
  color: #82908f;
  font-size: 11.5px;
}

.article-page .article-toc .toc-depth-2 a {
  padding-left: 28px;
  color: #8d9998;
  font-size: 11px;
}

.article-page .article-toc a:hover,
.article-page .article-toc a[aria-current="location"] { color: var(--teal-dark); }

.article-page .article-toc a[aria-current="location"] {
  padding-left: 11px;
  box-shadow: inset 2px 0 var(--gold);
}

.article-page .reading-card {
  margin-top: 22px;
  padding: 18px;
  color: var(--ink-soft);
  background: var(--gold-pale);
  border: 0;
  border-left: 2px solid var(--gold);
  border-radius: 0;
}

.article-page .chapter-nav {
  display: grid;
  width: calc(100% - clamp(48px, 14vw, 280px));
  max-width: 1320px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0 auto;
  padding: 0 0 88px;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.article-page .chapter-nav a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 138px;
  padding: 29px 6px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  text-decoration: none;
}

.article-page .chapter-nav a + a {
  padding-left: 38px;
  border-left: 1px solid var(--line);
}

.article-page .chapter-nav a.next { padding-right: 6px; }

.article-page .chapter-nav span {
  color: var(--teal);
  font-size: 9px;
  letter-spacing: 0.15em;
}

.article-page .chapter-nav strong {
  max-width: 520px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 560;
  line-height: 1.4;
}

.blog-body .blog-footer {
  width: calc(100% - clamp(48px, 7.5vw, 144px));
  max-width: 1600px;
  margin: 0 auto;
  padding: 28px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-body .blog-footer a { color: var(--ink); }
.reader-overlay { display: none; }

/* Side panels become independent drawers below widescreen. */

@media (max-width: 1279px) {
  .article-hero-inner { grid-template-columns: minmax(110px, 160px) minmax(0, 1fr); }

  .reader-chapter-number {
    grid-column: 1;
    margin-top: 66px;
    font-size: 92px;
  }

  .article-hero-copy { grid-column: 2; }

  .article-page .reading-layout {
    width: calc(100% - clamp(48px, 14vw, 190px));
    max-width: 860px;
    grid-template-columns: minmax(0, 1fr);
    padding-block: 84px 110px;
  }

  .article-page .reading-content { grid-column: 1; }

  .reader-mobile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
  }

  .reader-menu-button {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    margin: 0;
    padding: 10px 15px;
    border: 1px solid currentColor;
    border-radius: 0;
    color: var(--teal-dark);
    background: transparent;
    font: 750 10px/1 var(--sans);
    letter-spacing: 0.13em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .reader-hero-gateway .reader-menu-button { color: #dce9e5; }

  .article-page .reader-panel {
    position: fixed;
    z-index: 130;
    inset: 0 auto 0 0;
    width: min(370px, 90vw);
    max-height: none;
    overflow-y: auto;
    transform: translateX(-103%);
    transition: transform 220ms ease;
    box-shadow: 16px 0 48px rgba(0, 0, 0, 0.28);
  }

  .article-page .series-rail { padding: 0 18px 30px; }

  .article-page .toc-rail {
    padding: 0 24px 36px;
    background: var(--paper-raised);
    border: 0;
  }

  .reader-panel-mobile-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 62px;
    margin-inline: -18px;
    padding: 0 20px;
    color: #dce9e5;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .toc-rail .reader-panel-mobile-head { margin-inline: -24px; }

  .reader-panel-mobile-head button {
    width: 38px;
    height: 38px;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    font: 300 28px/1 var(--sans);
    cursor: pointer;
  }

  .toc-heading { padding-top: 28px; }

  .reader-nav-open[data-reader-panel="series"] .series-rail,
  .reader-nav-open[data-reader-panel="toc"] .toc-rail { transform: translateX(0); }

  .reader-overlay {
    position: fixed;
    z-index: 120;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(5, 15, 14, 0.56);
    cursor: pointer;
  }

  .reader-nav-open .reader-overlay { display: block; }
  .reader-nav-open { overflow: hidden; }

  .blog-index .series-card {
    grid-template-columns: minmax(250px, 0.42fr) minmax(480px, 1fr);
    gap: 48px;
  }
}

@media (max-width: 880px) {
  .blog-index .series-card {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .blog-index .series-card-copy {
    position: static;
    padding-bottom: 0;
  }

  .blog-index .series-meta { margin-bottom: 32px; }

  .reader-hero-chapter .article-hero-inner,
  .reader-hero-gateway .article-hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .reader-chapter-number {
    grid-column: 1;
    margin: 0;
    font-size: 82px;
  }

  .article-hero-copy { grid-column: 1; }

  .reader-hero-chapter .article-hero-inner {
    min-height: 0;
    padding-block: 62px 58px;
  }
}

@media (max-width: 700px) {
  .editorial-shell,
  .article-hero-inner,
  .blog-body .blog-footer { width: calc(100% - 40px); }

  .blog-body .site-header {
    min-height: 62px;
    padding: 10px 16px;
  }

  .blog-body .brand-copy > span { display: none; }
  .blog-body .site-nav { gap: 12px; }

  .blog-body .site-nav a {
    font-size: 9px;
    letter-spacing: 0.06em;
  }

  .blog-index .blog-hero {
    min-height: 320px;
    padding: 70px 20px;
  }

  .blog-index .blog-hero h1 { font-size: clamp(60px, 21vw, 88px); }
  .blog-index .blog-library { padding-block: 66px 92px; }
  .blog-index .series-card-copy h2 { font-size: 42px; }

  .blog-index .blog-reading-list a {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 13px;
    min-height: 0;
    padding: 20px 0;
  }

  .blog-index .blog-reading-list a:hover { padding-inline: 10px; }
  .blog-index .blog-reading-list span { font-size: 19px; }

  .blog-index .blog-reading-list small {
    grid-column: 2;
    text-align: left;
  }

  .blog-index .blog-reading-list strong { font-size: 18px; }
  .reader-hero-gateway { min-height: calc(100svh - 62px); }
  .reader-hero-gateway .article-hero-inner { padding-block: 62px; }
  .article-page .breadcrumbs { margin-bottom: 32px; }

  .article-page .article-hero h1,
  .reader-hero-gateway .article-hero h1 {
    font-size: clamp(40px, 11.5vw, 56px);
    line-height: 1.06;
  }

  .article-page .article-subtitle { font-size: 18px; }

  .article-page .reading-layout {
    width: calc(100% - 42px);
    padding-block: 66px 84px;
  }

  .article-page .reading-content {
    font-size: 17.5px;
    line-height: 1.8;
  }

  .article-page .reading-content h1,
  .article-page .reading-content h2 {
    margin-top: 2.2em;
    font-size: 29px;
  }

  .article-page .reading-content h3 {
    margin-top: 2em;
    font-size: 22px;
  }

  .article-page .reading-content math[display="block"],
  .article-page .reading-content p:has(> math:only-child) {
    margin-inline: -8px;
    padding: 16px 11px;
  }

  .article-page .chapter-nav {
    width: calc(100% - 42px);
    grid-template-columns: 1fr;
  }

  .article-page .chapter-nav a + a {
    padding-left: 6px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .article-page .chapter-nav a.next { text-align: left; }
}

@media print {
  .blog-body .site-header,
  .reading-progress,
  .reader-panel,
  .reader-mobile-actions,
  .reader-overlay,
  .chapter-nav,
  .blog-footer { display: none !important; }

  .article-page .article-hero,
  .article-page .reading-layout {
    color: #111;
    background: #fff;
  }

  .article-page .reading-layout {
    display: block;
    width: auto;
    padding: 0;
  }

  .article-page .reading-content {
    max-width: none;
    font-size: 11pt;
  }
}
