/* Editorial pages share the portfolio's palette and locally hosted typeface. */
.editorial-page { --reading-width: 760px; }
.editorial-header { margin: 0 var(--gutter); padding: 25px 0; border-bottom: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.editorial-header nav, .editorial-languages { display: flex; align-items: center; gap: 30px; }
.editorial-header nav { font-size: 12px; }
.editorial-languages { gap: 16px; }
.editorial-languages a { padding: 10px 2px; }
.editorial-languages [aria-current] { color: var(--blue); text-decoration: underline; text-underline-offset: 6px; }
.editorial-main { max-width: 1440px; margin: auto; padding: 0 var(--gutter); }
.article-heading { padding: 48px 0 60px; max-width: 1080px; }
.back-link { display: inline-block; font-size: 13px; margin-bottom: 58px; }
.eyebrow, .section-number { font-family: 'SFMono-Regular', Consolas, monospace; font-size: 11px; line-height: 1.6; letter-spacing: .04em; }
.eyebrow { color: var(--muted); }
.eyebrow span { padding: 0 12px; }
.article-heading h1, .collection-heading h1 { font-size: clamp(40px, 5.8vw, 82px); line-height: 1.06; letter-spacing: -.055em; font-weight: 500; margin: 24px 0 30px; text-wrap: balance; }
.article-dot { color: var(--blue); }
.article-lede { max-width: 760px; font-size: clamp(18px, 2vw, 24px); line-height: 1.55; letter-spacing: -.025em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px 30px; margin-top: 32px; color: var(--muted); font-size: 12px; }
.article-layout { display: grid; grid-template-columns: minmax(175px, 1fr) minmax(0, var(--reading-width)); gap: clamp(35px, 7vw, 120px); border-top: 1px solid var(--rule); padding-top: 65px; padding-bottom: 80px; }
.article-aside nav { position: sticky; top: 35px; }
.article-aside ol { padding: 0; margin: 25px 0 0; list-style: none; }
.article-aside a { display: flex; gap: 13px; padding: 10px 0; font-size: 12px; line-height: 1.5; }
.article-aside a span { color: var(--blue); font-size: 10px; padding-top: 2px; }
.article-aside a:hover, .back-link:hover, .editorial-footer a:hover, .portfolio-link:hover { color: var(--blue); }
.article-copy { min-width: 0; }
.article-copy section { margin-bottom: 76px; scroll-margin-top: 32px; }
.section-number { color: var(--blue); margin-bottom: 18px; }
.article-copy h2 { font-size: clamp(27px, 3vw, 39px); line-height: 1.18; letter-spacing: -.04em; font-weight: 500; margin: 0 0 26px; text-wrap: balance; }
.article-copy :where(p:not(.section-number):not(.mono):not(.note)) { font-size: 17px; line-height: 1.8; margin: 0 0 20px; }
.article-copy a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.article-copy a:hover { color: var(--blue); }
.source-ref { font-size: 13px; display: inline-flex; align-items: center; gap: 4px; max-width: 100%; }
.article-copy blockquote { margin: 32px 0; border-left: 3px solid var(--blue); padding: 8px 0 8px 28px; font-size: 28px; font-weight: 500; letter-spacing: -.035em; line-height: 1.45; }
.cost-note, .next-note { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 28px 0 10px; margin: 32px 0; }
.cost-note .mono, .next-note .mono { color: var(--blue); font-size: 11px; margin-bottom: 16px; }
.article-copy .note { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 12px 0 18px; }
.next-note h3 { font-size: 24px; line-height: 1.3; font-weight: 500; letter-spacing: -.025em; margin-bottom: 18px; }
.prefix-figure { margin: 32px 0; padding: 24px; background: #e9e9e1; }
.prefix-figure figcaption { font-size: 13px; font-weight: 500; margin-bottom: 24px; }
.prefix-row { display: grid; grid-template-columns: 76px 1fr 1fr 1fr; gap: 6px; align-items: stretch; margin: 8px 0; }
.prefix-row > .mono { align-self: center; font-size: 9px; }
.prefix-block { padding: 15px 10px; display: flex; align-items: center; font-size: 11px; line-height: 1.5; }
.prefix-block.stable { background: var(--blue); color: white; }
.prefix-block.fresh { border: 1px dashed var(--ink); }
.data-figure { margin: 32px 0 20px; }
.daily-figure { margin: 36px 0 18px; padding-top: 26px; border-top: 1px solid var(--rule); }
.daily-figure > figcaption { font-size: 20px; font-weight: 500; letter-spacing: -.025em; margin-bottom: 25px; }
.daily-peaks { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 30px; }
.article-copy .daily-peak .peak-date { font-size: 12px; margin-bottom: 10px; }
.article-copy .daily-peak .peak-rate { color: var(--blue); font-size: clamp(40px, 5vw, 64px); letter-spacing: -.06em; line-height: 1; margin-bottom: 12px; }
.peak-rate > span { font-size: .5em; margin-left: 4px; }
.article-copy .daily-peak .peak-volume { font-size: 11px; line-height: 1.7; color: var(--muted); margin-bottom: 0; }
.daily-plot { position: relative; padding-left: 43px; }
.daily-plot svg { width: 100%; display: block; overflow: visible; }
.daily-y { position: absolute; left: 0; font-size: 10px; color: var(--muted); transform: translateY(-50%); }
.y100 { top: 3.7%; }.y85 { top: 17.6%; }.y0 { top: 96.3%; }
.daily-axis { position: relative; height: 16px; margin: 8px 1.1% 18px calc(43px + 1.1%); font-size: 10px; color: var(--muted); }
.daily-axis > span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.daily-axis > span:first-child { transform: none; }
.daily-axis > span:last-child { transform: translateX(-100%); }
.daily-values { font-size: 12px; margin: 0 0 35px; }
.daily-values summary { cursor: pointer; padding: 10px 0; text-decoration: underline; text-underline-offset: 4px; }
.daily-values-scroll { max-height: 360px; overflow: auto; margin-top: 14px; }
.daily-values table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
.daily-values caption { text-align: left; padding: 10px 0; }
.daily-values th, .daily-values td { border-bottom: 1px solid var(--rule); padding: 10px 4px; font-weight: 400; }
.data-figure table { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
.data-figure caption { text-align: left; font-size: 17px; font-weight: 500; margin-bottom: 20px; }
.data-figure th, .data-figure td { text-align: left; border-bottom: 1px solid var(--rule); padding: 15px 8px; }
.data-figure th { font-weight: 400; }
.data-figure thead th { font-size: 11px; color: var(--muted); }
.data-figure th:first-child { padding-left: 0; }
.data-figure th:last-child, .data-figure td:last-child { text-align: right; padding-right: 0; }
.data-figure td:nth-child(2) { width: 38%; }
.rate-track { display: inline-block; width: calc(100% - 65px); background: #e0e1d8; height: 10px; vertical-align: middle; margin-right: 12px; }
.rate-track > span { display: block; height: 100%; background: var(--blue); }
.data-figure figcaption { font-size: 12px; line-height: 1.7; color: var(--muted); margin-top: 18px; }
.method-note { border-bottom: 1px solid var(--rule); padding: 12px 0 20px; margin-bottom: 28px; }
.method-note:not([open]) > :not(summary) { display: none; }
.method-note summary { font-size: 13px; cursor: pointer; padding: 8px 0; text-decoration: underline; text-underline-offset: 4px; }
.method-note summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.article-copy .method-note p { font-size: 13px !important; margin: 12px 0 0 !important; }
.author-note { display: flex; align-items: flex-start; gap: 20px; border-top: 1px solid var(--rule); padding-top: 32px; }
.author-note img { border-radius: 50%; }
.article-copy .author-note p { font-size: 13px !important; margin-bottom: 6px !important; }
.author-note a { font-size: 13px; }
.editorial-footer { margin: 0 var(--gutter); padding: 30px 0; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 20px 30px; font-size: 12px; }
.editorial-footer > span { margin-left: auto; color: var(--muted); }
.collection-heading { padding: 100px 0 70px; max-width: 1050px; }
.study-feature { display: grid; grid-template-columns: 1.3fr 1fr; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 100px; }
.study-feature-copy { padding: 45px 60px 45px 0; }
.study-feature h2 { font-size: clamp(30px, 3.4vw, 48px); font-weight: 500; letter-spacing: -.045em; line-height: 1.12; margin: 24px 0; }
.study-feature h2 a:hover { color: var(--blue); }
.study-feature-copy > p:not(.eyebrow) { font-size: 17px; line-height: 1.7; max-width: 540px; }
.study-read { display: inline-flex; align-items: center; justify-content: space-between; gap: 40px; border-bottom: 1px solid var(--ink); padding: 12px 0; margin-top: 26px; font-size: 14px; }
.study-read:hover { color: var(--blue); border-color: var(--blue); }
.study-date { margin-top: 28px; }
.study-stat { background: var(--blue); color: var(--paper); padding: clamp(26px, 4vw, 65px); display: flex; flex-direction: column; justify-content: center; }
.stat-number { font-size: clamp(64px, 7vw, 110px); line-height: 1; letter-spacing: -.075em; margin-bottom: 22px; }
.stat-number span { font-size: .45em; margin-left: 8px; }
.stat-number--latency { font-size: clamp(44px, 5vw, 80px); white-space: nowrap; }
.stat-number .stat-prefix { margin: 0 8px 0 0; }
.study-stat > p:not(.stat-number):not(.stat-note) { font-size: 20px; line-height: 1.5; max-width: 310px; }
.stat-note { font-size: 11px; line-height: 1.7; margin-top: 30px; }
@media (max-width: 900px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 38px; padding-top: 30px; }
  .article-aside nav { position: static; }
  .article-aside ol { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin-top: 12px; }
  .article-aside { border-bottom: 1px solid var(--rule); padding-bottom: 24px; }
  .article-copy { width: 100%; max-width: var(--reading-width); margin: auto; }
  .study-feature-copy { padding-right: 30px; }
}
@media (max-width: 600px) {
  .editorial-header { flex-wrap: wrap; gap: 12px; padding: 22px 0 15px; }
  .editorial-header .wordmark { font-size: 21px; }
  .editorial-header nav { width: 100%; justify-content: space-between; gap: 10px; }
  .article-heading { padding-top: 30px; padding-bottom: 36px; }
  .back-link { margin-bottom: 38px; }
  .eyebrow { font-size: 10px; }
  .eyebrow span { padding: 0 4px; }
  .article-copy section { margin-bottom: 52px; }
  .article-copy :where(p:not(.section-number):not(.mono):not(.note)) { font-size: 16px; line-height: 1.8; }
  .article-copy blockquote { font-size: 24px; padding-left: 20px; }
  .prefix-figure { padding: 18px 14px; }
  .prefix-row { grid-template-columns: 1fr 1fr 1fr; gap: 4px; margin-top: 18px; }
  .prefix-row > .mono { grid-column: 1 / -1; padding-bottom: 4px; }
  .prefix-block { font-size: 10px; padding: 10px 7px; }
  .rate-track { display: none; }
  .data-figure td:nth-child(2) { width: auto; }
  .data-figure table { font-size: 12px; }
  .editorial-footer > span { margin-left: 0; width: 100%; }
  .collection-heading { padding: 65px 0 45px; }
  .study-feature { grid-template-columns: 1fr; margin-bottom: 60px; }
  .study-feature-copy { padding: 32px 0; }
  .study-stat { padding: 35px 28px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .editorial-header nav, .article-aside, .editorial-footer, .back-link { display: none; }
  .article-layout { display: block; padding-top: 25px; }
  .article-heading { padding: 20px 0; }
  .article-heading h1 { font-size: 36px; }
  .article-copy section { margin-bottom: 30px; }
  .article-copy h2 { break-after: avoid; }
  .prefix-figure, .data-figure { break-inside: avoid; }
}

/* Use the same square SVG arrow component as the portfolio. */
.editorial-footer a, .author-note a { display: inline-flex; align-items: center; gap: 6px; }
.editorial-page .arrow-icon { color: var(--blue); }
.editorial-footer .arrow-icon, .author-note .arrow-icon, .article-copy .source-ref .arrow-icon, .article-copy .note .arrow-icon { --arrow-size: 22px; }

.technical-list { padding-left: 22px; margin: 22px 0; font-size: 16px; line-height: 1.8; }
.technical-list li + li { margin-top: 16px; }
.article-copy .technical-formula { font-family: 'SFMono-Regular', Consolas, monospace; font-size: 14px; line-height: 2.2; overflow-wrap: anywhere; }
.article-copy h3 { font-size: 23px; font-weight: 500; line-height: 1.35; letter-spacing: -.025em; margin: 38px 0 20px; }
.article-copy code { font-size: .9em; overflow-wrap: anywhere; }
.request-flow { margin: 30px 0; }
.request-flow figcaption { font-size: 13px; line-height: 1.6; margin: 16px 0; }
.request-flow ol { padding: 0; list-style: none; counter-reset: stage; }
.request-flow li { counter-increment: stage; display: grid; grid-template-columns: 25px 115px 1fr; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--rule); padding: 18px 12px; }
.request-flow li::before { content: counter(stage, decimal-leading-zero); color: var(--blue); font-size: 11px; }
.request-flow li .mono { font-size: 10px; }
.request-flow li strong { font-size: 14px; font-weight: 400; line-height: 1.7; }
.request-flow li > span:not(.mono) { grid-column: 3; font-size: 11px; line-height: 1.6; }
.request-flow .provider-stage { background: var(--blue); color: var(--paper); }
.request-flow .provider-stage::before { color: var(--paper); }
.timing-table td:nth-child(2) { width: 22%; }
.timing-table td { white-space: nowrap; }
.latency-figure { margin: 30px 0 18px; }
/* Keep absolute screen-reader labels inside the table's scroll container. */
.metrics-scroll { position: relative; max-width: 100%; overflow-x: auto; contain: inline-size; scrollbar-color: var(--blue) var(--paper); }
.metrics-scroll:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.metrics-scroll table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.metrics-scroll caption { text-align: left; font-size: 16px; font-weight: 500; margin-bottom: 22px; line-height: 1.5; }
.metrics-scroll thead th { font-size: 10px; font-weight: 400; line-height: 1.6; color: var(--muted); }
.metrics-scroll th, .metrics-scroll td { padding: 12px 8px; white-space: nowrap; text-align: right; }
.metrics-scroll th:first-child { text-align: left; font-weight: 400; position: sticky; left: 0; background: var(--paper); z-index: 1; }
.latency-heatmap { min-width: 630px; }
.latency-heatmap td { border: 4px solid var(--paper); text-align: center; }
.latency-heatmap .no-data { background: #e5e5de; }
.latency-heatmap thead th { text-align: center; }
.provider-summary { min-width: 590px; }
.provider-summary td, .provider-summary th { border-bottom: 1px solid var(--rule); }
.latency-figure figcaption { margin-top: 14px; font-size: 11px; line-height: 1.7; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
  .request-flow li { grid-template-columns: 20px 1fr; gap: 8px 12px; }
  .request-flow li strong { grid-column: 2; }
  .request-flow li > span:not(.mono) { grid-column: 2; }
}
@media print {
  .metrics-scroll { overflow: visible; }
  .metrics-scroll table { min-width: 0; font-size: 9px; }
  .metrics-scroll th, .metrics-scroll td { padding: 8px 4px; }
}
