/* /articles/ — static article index and reading pages. Shell and tokens: shared/base.css. */

.articles-hero{padding:calc(var(--nav-h) + clamp(48px,7vw,96px)) var(--pad) clamp(56px,8vw,104px);background:var(--studio);}
.articles-hero .wrap{max-width:1180px;}
.breadcrumbs{list-style:none;margin:0 0 36px;padding:0;display:flex;flex-wrap:wrap;gap:8px 12px;color:var(--muted);font-size:14px;}
.breadcrumbs li{display:inline-flex;align-items:center;gap:12px;}
.breadcrumbs li+li::before{content:"/";color:var(--subtle);}
.breadcrumbs a{text-decoration:none;text-underline-offset:3px;}
.breadcrumbs a:hover{text-decoration:underline;}
.breadcrumbs [aria-current="page"]{color:var(--ink);}
.articles-title{margin-bottom:28px;}
.article-title{max-width:18ch;margin:24px 0 28px;font-weight:300;font-size:clamp(2.5rem,5.2vw,4.5rem);line-height:1.04;letter-spacing:-.04em;text-wrap:balance;}
.article-deck{max-width:52ch;color:var(--muted);font-size:clamp(1.0625rem,1.5vw,1.25rem);line-height:1.6;}

/* Index: three readable rows, with the whole row acting as the article link. */
.articles-list{padding-top:clamp(56px,7vw,96px);}
.article-index{list-style:none;margin:0;padding:0;border-top:1px solid var(--ink);}
.article-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:24px;align-items:start;padding:36px 0;border-bottom:1px solid var(--line);transition:background .25s var(--ease);}
.article-row:hover,.article-row:focus-within{background:var(--soft);}
.article-row-link::after,.related-link::after{content:"";position:absolute;inset:0;}
.article-row-link:focus-visible,.related-link:focus-visible{outline:none;}
.article-row:focus-within,.related-row:focus-within{outline:2px solid var(--accent);outline-offset:4px;}
.article-row-category{margin-bottom:14px;color:var(--accent);}
.article-row h2{max-width:28ch;font-weight:400;font-size:clamp(1.75rem,3vw,2.75rem);line-height:1.12;letter-spacing:-.03em;}
.article-row h2 a{text-decoration:none;}
.article-row-description{max-width:62ch;margin-top:18px;color:var(--muted);font-size:16px;}
.article-row-arrow,.related-arrow{justify-self:end;width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--line);border-radius:2px;font-size:20px;transition:color .25s,border-color .25s,transform .3s var(--ease);}
.article-row:hover .article-row-arrow,.related-row:hover .related-arrow{color:var(--accent);border-color:var(--accent);transform:translateX(4px);}

/* Reading layout: sticky contents on wide screens, native disclosure on every screen. */
.article-layout{max-width:1180px;padding-top:clamp(56px,7vw,96px);padding-bottom:clamp(72px,9vw,128px);display:grid;grid-template-columns:minmax(0,14rem) minmax(0,46rem);gap:clamp(40px,6vw,88px);justify-content:center;align-items:start;}
.article-sidebar{min-width:0;align-self:stretch;}
.article-toc{position:sticky;top:calc(var(--nav-h) + 24px);max-height:calc(100dvh - var(--nav-h) - 48px);overflow-y:auto;overscroll-behavior:contain;border-top:1px solid var(--ink);border-bottom:1px solid var(--line);padding:18px 0;}
.article-toc summary{cursor:pointer;color:var(--ink);font-family:"JetBrains Mono",ui-monospace,monospace;font-size:12px;letter-spacing:.02em;}
.article-toc nav{margin-top:16px;}
.toc-list{list-style:none;margin:0;padding:0;}
.toc-list li{border-top:1px solid var(--line);}
.toc-list a{display:block;padding:10px 0;color:var(--muted);font-size:14px;line-height:1.45;text-decoration:none;transition:color .2s;}
.toc-list a:hover{color:var(--accent);}
.article-content{min-width:0;max-width:46rem;font-size:1.0625rem;line-height:1.75;}
.article-content p,.article-content ul,.article-content ol,.article-content .table-scroll{margin:0 0 24px;}
.article-content h2{scroll-margin-top:24px;margin:clamp(52px,6vw,76px) 0 24px;font-weight:400;font-size:clamp(1.875rem,3vw,2.5rem);line-height:1.16;letter-spacing:-.025em;text-wrap:balance;}
.article-content h3{margin:40px 0 16px;font-weight:500;font-size:clamp(1.375rem,2vw,1.625rem);line-height:1.25;letter-spacing:-.015em;}
.article-content strong{font-weight:600;}
.article-content ul,.article-content ol{padding-left:1.4em;}
.article-content li{padding-left:.25em;}
.article-content li+li{margin-top:10px;}
.article-content a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:1px;text-underline-offset:3px;overflow-wrap:anywhere;}
.article-content a:hover{color:var(--accent);}

/* Source tables keep their own reading width and scroll locally on narrow screens. */
.table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;border-top:1px solid var(--ink);}
.table-scroll table{width:100%;min-width:38rem;border-collapse:collapse;font-size:.9375rem;line-height:1.55;}
.table-scroll th,.table-scroll td{padding:16px 18px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;}
.table-scroll th{background:var(--soft);font-weight:500;}
.table-scroll th:first-child,.table-scroll td:first-child{padding-left:0;}
.table-scroll th:last-child,.table-scroll td:last-child{padding-right:0;}
.article-diagram{margin:40px 0 32px;}
.article-diagram picture{display:block;}
.article-diagram img{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:2px;background:#fff;}
.article-diagram figcaption{margin-top:12px;color:var(--muted);font-size:.875rem;line-height:1.55;}

/* Service transition and two related articles follow, rather than interrupt, the source text. */
.service-cta{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(32px,6vw,88px);align-items:end;}
.service-cta .headline{max-width:25ch;}
.service-cta-copy{margin-bottom:28px;}
.service-cta-actions{justify-content:flex-start;}
.related-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--ink);}
.related-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:24px;align-items:start;padding:28px 0;border-bottom:1px solid var(--line);}
.related-row h3{max-width:34ch;font-weight:400;font-size:clamp(1.375rem,2vw,1.75rem);line-height:1.25;letter-spacing:-.02em;}
.related-row h3 a{text-decoration:none;}
.related-row p{max-width:60ch;margin-top:12px;color:var(--muted);font-size:15px;}

@media (max-width:1100px){
  .article-layout{grid-template-columns:minmax(0,12rem) minmax(0,46rem);gap:36px;}
}
@media (max-width:960px){
  .article-layout{display:block;max-width:46rem;}
  .article-sidebar{margin-bottom:48px;}
  .article-toc{position:static;}
  .toc-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;}
  .service-cta{grid-template-columns:1fr;align-items:start;}
}
@media (max-width:600px){
  .breadcrumbs{margin-bottom:28px;}
  .article-title{font-size:clamp(2.25rem,10vw,3.25rem);line-height:1.06;}
  .article-row{grid-template-columns:minmax(0,1fr);gap:16px;padding:28px 0;}
  .article-row-arrow{display:none;}
  .article-content{font-size:1.0625rem;line-height:1.72;}
  .article-content h2{margin-top:48px;}
  .table-scroll th,.table-scroll td{padding:14px 16px;}
  .toc-list{grid-template-columns:1fr;}
  .related-row{grid-template-columns:minmax(0,1fr);gap:16px;}
  .related-arrow{display:none;}
}
@media (prefers-reduced-motion:reduce){
  .article-row,.article-row-arrow,.related-arrow,.toc-list a{transition:none;}
}
