.article-page {
  --orange: #ff4c1d;
  --soft: #f4f6f7;
  --tint: #dfe5e8;
  --font-head: inherit;
  color: #101926;
}

.article-hero {
  overflow: hidden;
  border-bottom: 1px solid #e2e7e9;
  background: linear-gradient(90deg, #fff 0%, #fff 45%, #f2f5f6 100%);
}

.article-hero__grid {
  min-height: clamp(34rem, 62vw, 43rem);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(25rem, 1.1fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
  padding-top: clamp(4rem, 7vw, 7rem);
  padding-bottom: clamp(4rem, 7vw, 7rem);
}

.article-hero__copy { position: relative; z-index: 1; }
.article-hero__copy h1 {
  max-width: 11.5ch;
  margin: 1rem 0 1.35rem;
  font-size: clamp(3.3rem, 5vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.052em;
}
.article-hero__copy h1 em { color: var(--orange); font-style: normal; }
.article-hero__copy > p:last-child {
  max-width: 40rem;
  margin: 0;
  color: #4c5968;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.65;
}

.article-hero__media {
  margin: 0;
  height: clamp(22rem, 38vw, 34rem);
  border-radius: 0.45rem;
  overflow: hidden;
  box-shadow: 0 1.4rem 4rem rgba(9, 22, 31, 0.14);
}
.article-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.article-section { padding: clamp(4rem, 6vw, 5.5rem) 1.25rem clamp(4.5rem, 7vw, 6.25rem); }
.article-shell { width: min(100%, 55rem); margin: 0 auto; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.25rem;
  margin: 0 0 2rem;
  color: #6b7480;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.article-meta span + span::before { content: "·"; color: var(--orange); margin-right: 1.25rem; }

.article-shell p,
.article-shell li {
  color: #364454;
  font-size: 1.06rem;
  line-height: 1.78;
}
.article-shell p { margin: 0 0 1.35rem; }
.article-shell > ul,
.article-shell > ol { margin: 0 0 1.8rem; padding-left: 1.45rem; }
.article-shell li { margin: 0.55rem 0; padding-left: 0.25rem; }
.article-shell strong { color: #101926; font-weight: 750; }
.article-shell h2 {
  scroll-margin-top: 7rem;
  margin: clamp(4rem, 8vw, 6rem) 0 1.25rem;
  color: #07111f;
  font-size: clamp(2.05rem, 3.4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.038em;
}
.article-shell h3 {
  margin: 2.8rem 0 0.85rem;
  color: #101926;
  font-size: clamp(1.42rem, 2.2vw, 1.85rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.article-shell a { color: #d9340a; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

.blog-toc {
  margin: 0 0 clamp(4rem, 8vw, 6.5rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid #dfe5e8;
  border-top: 3px solid var(--orange);
  border-radius: 0.45rem;
  background: #f7f9fa;
}
.blog-toc .blog-toc-title {
  margin: 0 0 1rem;
  color: #07111f;
  font-size: 0.78rem;
  line-height: 1.2;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.article-shell .blog-toc .blog-toc-title {
  margin-top: 0;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.blog-toc ol { columns: 2; column-gap: 2.4rem; margin: 0; padding-left: 1.2rem; }
.blog-toc li { break-inside: avoid; margin: 0 0 0.65rem; font-size: 0.93rem; line-height: 1.42; }
.blog-toc a { color: #253345; text-decoration: none; }
.blog-toc a:hover { color: var(--orange); }

.article-shell table {
  min-width: 46rem;
  color: #2d3b4b;
  border: 1px solid #dfe5e8;
  background: #fff;
}
.article-table-scroll {
  margin: 24px 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border-radius: .35rem;
  scrollbar-color: #aeb8c2 #eef1f3;
}
.article-table-scroll:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}
.article-table-hint {
  display: none;
  margin: 0 0 .55rem;
  color: #4d5966;
  font-size: .78rem;
  font-weight: 680;
  letter-spacing: .02em;
}
.article-shell th { color: #101926; background: #f3f6f7; }
.article-shell th,
.article-shell td { vertical-align: top; }
.article-shell .info-box {
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  border-left: 3px solid var(--orange);
  border-radius: 0 0.4rem 0.4rem 0;
  background: #f6f8f9;
}
.article-shell .info-box > :last-child { margin-bottom: 0; }

.article-closing { box-shadow: inset 0 -1px rgba(255,255,255,.12); }

.article-series-links { margin: 4.2rem auto; padding: 2rem; border: 1px solid #dbe3e9; border-radius: 6px; background: #f5f8fa; }
.article-series-links .eyebrow { margin-bottom: .65rem; }
.article-series-links h2 { margin: 0 0 1rem; }
.article-series-links > p { max-width: 760px; margin-bottom: 1.5rem; }
.article-series-links__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.article-series-links__grid a { display: flex; align-items: center; justify-content: space-between; min-height: 68px; padding: 1rem 1.1rem; border: 1px solid #d4dee6; border-radius: 4px; background: #fff; color: #071120; font-weight: 750; text-decoration: none; }
.article-series-links__grid a::after { color: #f34b17; content: "→"; }
.article-series-links__grid a:hover { border-color: #f34b17; }

@media (max-width: 980px) {
  .article-hero__grid { grid-template-columns: 1fr 0.9fr; gap: 2rem; }
  .article-hero__copy h1 { font-size: clamp(3rem, 6vw, 4.6rem); }
}

@media (max-width: 680px) {
  .article-series-links { margin-block: 3rem; padding: 1.35rem; }
  .article-series-links__grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .article-hero__grid { grid-template-columns: 1fr; min-height: 0; padding-top: 4.2rem; }
  .article-hero__copy h1 { max-width: 12ch; }
  .article-hero__media { height: 18rem; }
  .blog-toc ol { columns: 1; }
  .article-table-hint { display: block; }
}

@media (max-width: 420px) {
  .article-section { padding-left: 1rem; padding-right: 1rem; }
  .article-hero__copy h1 { font-size: 2.75rem; }
  .article-hero__media { height: 14.5rem; }
  .article-shell p,
  .article-shell li { font-size: 1rem; }
  .article-meta span + span::before { display: none; }
  .article-meta { display: grid; gap: 0.35rem; }
}


/* v4 — spoke guide presentation */
.spoke-article-page .article-hero__grid { min-height:clamp(31rem,52vw,39rem); grid-template-columns:minmax(0,.96fr) minmax(24rem,1.04fr); gap:clamp(2.5rem,6vw,6rem); padding-top:clamp(3.4rem,6vw,5.5rem); padding-bottom:clamp(3.4rem,6vw,5.5rem); }
.spoke-article-page .article-hero__copy h1 { max-width:15ch; font-size:clamp(2.8rem,4.45vw,4.85rem); line-height:.99; letter-spacing:-.043em; }
.spoke-article-page .article-hero__media { height:clamp(20rem,31vw,29rem); border-radius:.5rem; }
.spoke-article-page .article-shell > p > img { display:block; width:min(100%,62rem); height:auto; margin:2.4rem auto; border-radius:.5rem; box-shadow:0 1.2rem 3rem rgba(9,22,31,.11); }
.spoke-article-page .article-shell > p:has(> img) { margin-inline:calc((55rem - min(72vw,62rem))/2); }
.spoke-article-page .article-shell blockquote { margin:2rem 0; padding:1.2rem 1.5rem; border-left:3px solid var(--orange); background:#f6f8f9; }
.spoke-article-page .article-shell table { border-collapse:collapse; }
.spoke-article-page .article-shell th,.spoke-article-page .article-shell td { padding:.85rem .9rem; border-bottom:1px solid #dfe5e8; text-align:left; }
.spoke-article-page .article-shell th { font-size:.86rem; line-height:1.35; }
.spoke-article-page .article-shell td { font-size:.92rem; line-height:1.5; }
@media(max-width:760px){.spoke-article-page .article-hero__grid{grid-template-columns:1fr}.spoke-article-page .article-hero__copy h1{font-size:clamp(2.55rem,10vw,3.7rem)}.spoke-article-page .article-hero__media{height:auto;aspect-ratio:16/9;background:#f1f4f6}.spoke-article-page .article-hero__media img{object-fit:contain}.spoke-article-page .article-shell > p:has(> img){margin-inline:0}}

/* v8 — site-grid article frame with a disciplined reading measure */
.article-section { padding-inline:0; }
.article-shell {
  width:min(calc(100% - 64px),var(--container));
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,46rem) minmax(0,1fr);
  column-gap:28px;
}
.article-shell > * { grid-column:2; min-width:0; }
.article-shell > :is(.blog-toc,.article-diagram,.article-table-scroll,.article-series-links,.info-box,blockquote),
.article-shell > p:has(> img) { grid-column:1 / -1; width:min(100%,55rem); justify-self:center; }
.article-shell p { margin-bottom:1.15rem; }
.article-shell > ul,
.article-shell > ol { margin-bottom:1.55rem; }
.article-shell li { margin-block:.42rem; }
.article-shell h2 { margin-top:clamp(3.25rem,6vw,4.5rem); margin-bottom:1rem; }
.article-shell h3 { margin-top:2.25rem; margin-bottom:.72rem; }
.blog-toc { width:min(100%,55rem); margin-bottom:clamp(3rem,6vw,4.5rem); padding:clamp(1.35rem,2.4vw,2rem); }
.article-diagram { margin-block:2.4rem; }
.article-table-scroll { margin-block:2rem; }
.spoke-article-page .article-shell > p:has(> img) { margin-inline:0; }

@media(max-width:760px){
  .article-shell { width:min(calc(100% - 32px),var(--container)); grid-template-columns:minmax(0,1fr); column-gap:0; }
  .article-shell > *,
  .article-shell > :is(.blog-toc,.article-diagram,.article-table-scroll,.article-series-links,.info-box,blockquote),
  .article-shell > p:has(> img) { grid-column:1; width:100%; }
  .article-shell h2 { margin-top:2.8rem; font-size:clamp(1.85rem,8vw,2.35rem); }
  .article-shell h3 { margin-top:2rem; }
  .blog-toc { margin-bottom:2.75rem; padding:1.25rem; }
  .article-diagram { margin-block:2rem; }
  .spoke-article-page .article-hero__media img { object-fit:cover; }
}
