/* Only local interactions supplement the preserved reference design tokens. */
.header-wordmark { height: 24px; width: auto; color: rgb(var(--text-primary)); text-decoration: none; }
.header-wordmark img { display: block; height: 24px; width: auto; }
.footer-lockup { display: block; height: 32px; width: auto; }
.listen-bar { display: flex; align-items: center; gap: 12px; margin: 8px 0 4px; padding: 14px 0; border-top: 1px solid #e6e6e6; border-bottom: 1px solid #e6e6e6; color: rgb(var(--text-primary)); }
.listen-play { width: 36px; height: 36px; border: 0; border-radius: 999px; background: #f2f2f2; color: inherit; display: grid; place-items: center; cursor: pointer; flex: 0 0 36px; }
.listen-play svg { width: 16px; height: 16px; fill: currentColor; }
.listen-play [data-icon="pause"] { display: none; }
.listen-bar.is-playing [data-icon="play"] { display: none; }
.listen-bar.is-playing [data-icon="pause"] { display: block; }
.listen-label { font-size: 15px; font-weight: 500; }
.listen-rule { width: 1px; height: 16px; background: #ddd; }
.listen-time { font-variant-numeric: tabular-nums; color: rgb(var(--text-secondary)); font-size: 15px; }
.listen-share { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 15px; }
.listen-share svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.listen-bar audio { display: none; }
.rd-size { display: flex; align-items: center; gap: 8px; margin: 18px 0; font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--text-secondary)); }
.rd-size button { border: 1px solid #e6e6e6; background: transparent; border-radius: 999px; min-width: 32px; height: 28px; cursor: pointer; color: inherit; }
.rd-size button[aria-pressed="true"] { background: rgb(var(--text-primary)); color: #fff; border-color: transparent; }
.rd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.rd-tags a { border: 1px solid #e6e6e6; border-radius: 999px; padding: 4px 10px; font-size: 13px; text-decoration: none; color: inherit; }
.rd-takeaways, .rd-numbers { margin: 0 0 28px; padding-top: 8px; }
.rd-takeaways h2, .rd-numbers h2 { margin: 0 0 12px; font-family: var(--font-heading); font-weight: 400; font-size: 22px; }
.rd-takeaways ul { margin: 0; padding-left: 18px; }
.rd-takeaways li { margin: 8px 0; }
.rd-takeaways p, .rd-numbers p span { color: rgb(var(--text-secondary)); font-size: 14px; }
.rd-numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rd-numbers h2 { grid-column: 1 / -1; }
.rd-numbers strong { display: block; font-family: var(--font-heading); font-size: 28px; font-weight: 400; letter-spacing: -0.02em; }
.rd-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; padding-top: 16px; border-top: 1px solid #e6e6e6; }
.rd-pager a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.rd-pager a:last-child { text-align: right; }
.rd-pager span { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgb(var(--text-secondary)); }
.rd { padding-bottom: 64px; }
.rd-back { color: inherit; text-decoration: none; font-size: 14px; }
.rd-kicker { margin: 18px 0 10px; font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.rd-title { max-width: 940px; margin: 0; font-family: var(--font-heading); font-weight: 400; font-size: 56px; line-height: 1.05; letter-spacing: -0.022em; text-wrap: balance; overflow: visible; }
.rd-dek { max-width: 760px; margin: 16px 0 0; font-size: 22px; line-height: 1.42; color: rgb(var(--text-secondary)); }
.rd-byline { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; margin-top: 18px; font-size: 14px; }
.rd-byline a { color: inherit; }
.rd-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; max-width: 940px; margin-top: 8px; }
.rd-tools .listen-bar { flex: 1 1 420px; margin: 0; }
.rd-share { margin-left: auto; border: 0; background: transparent; cursor: pointer; font-size: 15px; }
.rd-hero { margin: 28px 0 0; }
.rd-hero img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.rd-hero figcaption { max-width: 680px; margin-top: 8px; font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; color: rgb(var(--text-secondary)); }
.rd-layout { display: grid; grid-template-columns: minmax(0, 680px) minmax(220px, 1fr); gap: 48px; margin-top: 36px; align-items: start; }
.rd-side { position: sticky; top: 96px; }
.rd-side h2 { margin: 0 0 12px; font-family: var(--font-heading); font-weight: 400; font-size: 22px; }
.rd-more { display: flex; flex-direction: column; }
.rd-more a { padding: 12px 0; border-top: 1px solid #e7e7e7; color: inherit; text-decoration: none; }
.rd-more time { display: block; margin-bottom: 4px; font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; color: rgb(var(--text-secondary)); }
.blog-prose[data-text="s"] { font-size: 16px; }
.blog-prose[data-text="l"] { font-size: 20px; }
.topic-list { display: flex; flex-direction: column; }
.topic-list a { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid #e7e7e7; text-decoration: none; color: inherit; }
.topic-list time { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; color: rgb(var(--text-secondary)); }
@media (max-width: 900px) {
  .rd-title { font-size: 36px; }
  .rd-dek { font-size: 18px; }
  .rd-layout { grid-template-columns: 1fr; }
  .rd-side { position: static; }
  .rd-numbers { grid-template-columns: 1fr; }
  .rd-pager { grid-template-columns: 1fr; }
  .rd-pager a:last-child { text-align: left; }
}
.gist-home { padding-top: 28px; padding-bottom: 72px; color: rgb(var(--text-primary)); }
.gist-home a { color: inherit; text-decoration: none; }
.gist-home .gh-lead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.gist-home .gh-lead-main { grid-column: 1 / span 9; min-width: 0; }
.gist-home .gh-rail { grid-column: 10 / span 3; min-width: 0; }
.gist-home .gh-sec { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid #e7e7e7; }
.gist-home .gh-media { position: relative; overflow: hidden; background: #f3f3f3; aspect-ratio: 16 / 9; }
.gist-home .gh-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.gist-home a:hover img { transform: scale(1.03); }
.gist-home .gh-media-lead { margin-bottom: 18px; }
.gist-home .gh-kicker { margin: 0 0 8px; font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--text-secondary)); }
.gist-home .gh-display { max-width: 820px; margin: 0; font-family: var(--font-heading); font-weight: 400; font-size: 48px; line-height: 1.08; letter-spacing: -0.018em; text-wrap: balance; }
.gist-home .gh-dek { max-width: 720px; margin: 14px 0 0; font-size: 22px; line-height: 1.42; color: rgb(var(--text-secondary)); }
.gist-home .gh-dek-s { margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: rgb(var(--text-secondary)); }
.gist-home .gh-byline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 0; font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: rgb(var(--text-secondary)); }
.gist-home .gh-follow { list-style: none; margin: 16px 0 0; padding: 0; max-width: 720px; }
.gist-home .gh-follow li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid #e7e7e7; font-size: 16px; }
.gist-home .gh-follow time { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; color: rgb(var(--text-secondary)); }
.gist-home a:hover h2, .gist-home a:hover h3 { text-decoration: underline; text-underline-offset: .12em; text-decoration-thickness: 1px; }
.gist-home .gh-sec a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.gist-home .gh-sec h3 { margin: 0; font-family: var(--font-heading); font-weight: 400; font-size: 28px; line-height: 1.15; letter-spacing: -0.008em; text-wrap: balance; }
.gist-home .gh-rail h2, .gist-home .gh-sh h2, .gist-home .gh-brief h2 { margin: 0; font-family: var(--font-heading); font-weight: 400; letter-spacing: -0.012em; }
.gist-home .gh-rail h2 { font-size: 22px; padding-bottom: 12px; border-bottom: 1px solid rgb(var(--text-primary)); }
.gist-home .gh-rail ol { list-style: none; margin: 0; padding: 0; }
.gist-home .gh-rail li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-top: 1px solid #e7e7e7; }
.gist-home .gh-rail li:first-child { border-top: 0; }
.gist-home .gh-rail time { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; line-height: 1.6; color: rgb(var(--text-secondary)); }
.gist-home .gh-rail a { display: block; }
.gist-home .gh-rail a span { display: block; margin-bottom: 4px; font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--text-secondary)); }
.gist-home .gh-rail a { font-family: var(--font-heading); font-size: 16px; line-height: 1.3; }
.gist-home .gh-brief { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; margin-top: 96px; padding-top: 32px; border-top: 1px solid rgb(var(--text-primary)); }
.gist-home .gh-brief > div { grid-column: 1 / span 3; }
.gist-home .gh-brief h2 { font-size: 48px; line-height: 1; letter-spacing: -0.018em; }
.gist-home .gh-brief > div p { margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: rgb(var(--text-secondary)); }
.gist-home .gh-brief ol { counter-reset: brief; grid-column: 5 / span 8; list-style: none; margin: 0; padding: 0; }
.gist-home .gh-brief li { counter-increment: brief; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid #e7e7e7; }
.gist-home .gh-brief li:first-child { border-top: 0; padding-top: 0; }
.gist-home .gh-brief li::before { content: counter(brief, decimal-leading-zero); font-family: var(--font-mono, ui-monospace, monospace); font-size: 14px; color: rgb(var(--text-primary)); }
.gist-home .gh-brief li a { font-family: var(--font-heading); font-size: 21px; line-height: 1.35; }
.gist-home .gh-brief li span { font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--text-secondary)); }
.gist-home .gh-band { margin-top: 96px; }
.gist-home .gh-sh { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; padding-top: 12px; border-top: 1px solid rgb(var(--text-primary)); }
.gist-home .gh-sh h2 { font-size: 28px; line-height: 1.15; }
.gist-home .gh-sh a { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.gist-home .gh-feature { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr); gap: 32px; }
.gist-home .gh-feature > article > a { display: block; }
.gist-home .gh-feature h3 { margin: 0; font-family: var(--font-heading); font-weight: 400; font-size: 36px; line-height: 1.1; letter-spacing: -0.012em; text-wrap: balance; }
.gist-home .gh-media-feature { margin-bottom: 16px; }
.gist-home .gh-compacts article { border-top: 1px solid #e7e7e7; }
.gist-home .gh-compacts article:first-child { border-top: 0; }
.gist-home .gh-compacts a { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 16px; align-items: start; padding: 16px 0; }
.gist-home .gh-compacts h3 { margin: 0; font-family: var(--font-heading); font-weight: 400; font-size: 18px; line-height: 1.3; }
.gist-home .gh-media-thumb { aspect-ratio: 1; }
.gist-home .gh-topics { display: flex; flex-wrap: wrap; gap: 10px; }
.gist-home .gh-topics a { border: 1px solid #e6e6e6; border-radius: 999px; padding: 8px 14px; text-decoration: none; color: inherit; }
.gist-home .gh-channel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; }
.gist-home .gh-channel a { display: block; }
.gist-home .gh-channel h3 { margin: 10px 0 0; font-family: var(--font-heading); font-weight: 400; font-size: 16px; line-height: 1.3; }
@media (max-width: 1023px) {
  .gist-home .gh-lead, .gist-home .gh-brief, .gist-home .gh-sec, .gist-home .gh-feature { display: block; }
  .gist-home .gh-lead-main, .gist-home .gh-rail, .gist-home .gh-sec { grid-column: auto; }
  .gist-home .gh-rail { margin-top: 32px; }
  .gist-home .gh-sec article + article { margin-top: 28px; }
  .gist-home .gh-sec a { grid-template-columns: 1fr; }
  .gist-home .gh-display, .gist-home .gh-brief h2 { font-size: 36px; }
  .gist-home .gh-dek { font-size: 18px; }
  .gist-home .gh-brief { margin-top: 56px; }
  .gist-home .gh-brief li { grid-template-columns: 36px minmax(0, 1fr); }
  .gist-home .gh-brief li span { display: none; }
  .gist-home .gh-band { margin-top: 56px; }
  .gist-home .gh-feature h3 { font-size: 28px; }
  .gist-home .gh-channel { grid-template-columns: 1fr 1fr; }
}
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 2000; background: #000; color: #fff; padding: 12px; }
.skip-link:focus { top: 8px; }
[data-menu][aria-expanded="true"] { background: rgb(var(--tint-secondary)); }
[data-menu][aria-expanded="true"] > span:last-child { transform: rotate(180deg); }
#mega-menu { position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding-top: 12px; padding-bottom: 32px; box-shadow: 0 8px 16px #00000006; }
.mega-grid { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); }
.mega-column { display: flex; flex-direction: column; align-items: flex-start; grid-column: span 5; }
.mega-column p { color: rgb(var(--text-secondary)); font-size: 14px; line-height: 1.4; margin-bottom: 4px; }
.mega-column a { color: #111; font-size: 16px; line-height: 1.4; padding: 4px 0; text-decoration: none; }
.mega-column a:last-child { padding-bottom: 0; }
.mega-column a:hover { color: rgb(var(--text-accent)); }
#menu-backdrop { position: fixed; inset: 52px 0 0; z-index: 999; backdrop-filter: blur(5px); background: #fff1; }
#mobile-menu { position: fixed; inset: 52px 0 0; overflow-y: auto; background: #fcfcfc; }
.mobile-open { overflow: hidden; }
.mobile-inner { padding-block: 24px 40px; display: flex; flex-direction: column; gap: 24px; }
.mobile-inner > a, .mobile-inner summary { font-size: 20px; text-decoration: none; cursor: pointer; }
.mobile-inner summary { list-style: none; display: flex; justify-content: space-between; }
.mobile-inner summary::after { content: '+'; }
.mobile-inner details[open] summary::after { content: '−'; }
.mobile-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; padding-top: 24px; }
.mobile-columns .mega-column { grid-column: auto; }
.mobile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; border-top: 1px solid #e7e7e7; padding-top: 24px; }
.mobile-primary { background: black; color: white; border-radius: 100px; padding: 8px 14px; }
.article-back { width: 24px; height: 24px; display: flex; align-items: center; text-decoration: none; font-size: 27px; }
.article-columns { display: grid; grid-template-columns: minmax(0,680px) minmax(0,1fr); gap: 24px; align-items: start; }
.article-cover { width: 100%; border-radius: 4px; }
.article-toc { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 24px; }
.article-toc a { padding-left: 16px; font-size: 16px; color: rgb(var(--text-secondary)); text-decoration: none; }
.article-toc a.active, .article-toc a:hover { color: rgb(var(--text-blue)); }
/* Gist reading links: retain the reference layout with a quieter monochrome accent. */
.gist-article .blog-prose a {
  color: rgb(var(--text-primary));
  text-decoration-color: rgb(var(--text-primary) / 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms ease;
}
.gist-article .blog-prose a:hover,
.gist-article .blog-prose a:focus-visible { text-decoration-color: currentColor; }
.gist-article .article-toc a.active,
.gist-article .article-toc a:hover,
.gist-article .article-toc a:focus-visible { color: rgb(var(--text-primary)); }
.gist-article a:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
#copy-status:not(:empty) { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #111; color: #fff; padding: 12px 20px; border-radius: 4px; z-index: 2000; font-size: 14px; }
@media (max-width:1023px) { .article-columns { display: block; } .article-toc { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; } }
@media print { nav, footer, .article-back, .article-toc, #copy-status, .skip-link { display: none !important; } .dt-page { padding: 0 !important; } .article-columns { display: block; } .blog-prose { color: #222; } }
