/* Content hub (/compare/…, /guides/…): long-form reading on the site's dark steel system.
   Uses global.css tokens only; no inline styles (the CSP has no 'unsafe-inline'). */

/* The hub's own header and footer (the main site's are not used here). */
.hub-header { position: sticky; top: 0; z-index: 50; background: rgb(15 19 25 / 0.94); border-bottom: 1px solid var(--steel-800); }
.hub-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.hub-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--steel-100); }
.hub-header .hub-brand { margin-right: auto; }
.hub-brand svg { width: 30px; height: 30px; }
.hub-brand span { font: 800 1.3rem/1 var(--display); font-stretch: 112%; letter-spacing: -0.01em; }
.hub-header .header-sections ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.hub-header .header-sections a { display: inline-block; padding: 8px 12px; border-radius: 8px; color: var(--steel-200); text-decoration: none; font-size: 15px; }
.hub-header .header-sections a:hover { color: var(--steel-100); background: var(--steel-900); }
.hub-header .header-sections a[aria-current='true'] { color: var(--steel-100); box-shadow: inset 0 -2px 0 var(--ember); border-radius: 8px 8px 0 0; }
.hub-footer { border-top: 1px solid var(--steel-800); padding-bottom: 48px; position: relative; z-index: 1; }
.hub-footer .hubnav { border-top: 0; }
.hub-footer__base { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 28px; border-top: 1px solid var(--steel-800); margin-top: 24px; }
.hub-footer__base .hub-brand svg { width: 24px; height: 24px; }
.hub-footer__base .hub-brand span { font-size: 1.05rem; }
.hub-footer__base .fine { margin: 0; }
.hub-footer__base .fine a { color: var(--steel-200); text-decoration-color: var(--ember); }
@media (max-width: 1100px) {
  .hub-header .header-sections { display: none; }
}
@media (max-width: 600px) {
  .hub-header .wrap { gap: 12px; }
  .hub-header .hub-brand { gap: 8px; }
  .hub-brand span { font-size: 1.1rem; }
  .hub-header .btn--small { padding-inline: 14px; }
}

.crumbs { padding-top: 28px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--steel-400); }
.crumbs li + li::before { content: '/'; margin: 0 10px; color: var(--steel-500); }
.crumbs a { color: var(--steel-200); text-decoration: none; }
.crumbs a:hover { color: var(--steel-100); text-decoration: underline; text-decoration-color: var(--ember); }
.crumbs [aria-current='page'] { color: var(--steel-400); }

.hub .page-head { padding-top: 24px; }
.hub .page-head__bars { margin-bottom: clamp(28px, 4vh, 44px); }
.hub .page-head h1 { font-size: clamp(2.1rem, 3.9vw, 3.7rem); max-width: 26ch; line-height: 1.02; }
.page-head .updated { margin: 20px 0 0; font-size: 14px; color: var(--steel-400); }
.page-head .updated time { color: var(--steel-200); }

.article { padding: clamp(40px, 6vh, 72px) 0 clamp(56px, 8vh, 96px); }
.hub-prose { max-width: 860px; overflow-wrap: anywhere; hyphens: auto; }
.hub-prose code, .hub .page-head .lede code { white-space: normal; overflow-wrap: anywhere; hyphens: none; }
.hubnav, .article-end { overflow-wrap: anywhere; hyphens: auto; }
.hub-prose > * + * { margin-top: 0; }
.hub-prose h2 { font-size: clamp(1.5rem, 2.3vw, 2.1rem); font-stretch: 115%; line-height: 1.08; margin: 64px 0 16px; max-width: 30ch; }
.hub-prose section:first-child > h2:first-child, .hub-prose > h2:first-child { margin-top: 0; }
.hub-prose h3 { font-size: 1.15rem; margin: 36px 0 10px; }
.hub-prose p, .hub-prose li { color: var(--steel-200); max-width: 72ch; }
.hub-prose ul, .hub-prose ol:not(.steps) { padding-left: 1.2em; margin: 0 0 1em; }
.hub-prose li { margin: 6px 0; }
.hub-prose li::marker { color: var(--steel-500); }
.hub-prose a { color: var(--steel-100); text-decoration-color: var(--ember); }
.hub-prose a:hover { text-decoration-thickness: 2px; }
.hub-prose .table-wrap { margin: 20px 0 8px; }
.hub-prose table { font-size: 15px; }
.hub-prose caption { caption-side: top; text-align: left; font-size: 14px; color: var(--steel-400); padding: 0 0 10px; }
.hub-prose th[scope='row'] { font-weight: 600; color: var(--steel-100); }
.hub-prose td code, .hub-prose th code { white-space: nowrap; }
.hub-prose .table-note { font-size: 14px; color: var(--steel-400); margin: 8px 0 24px; max-width: 80ch; }

/* The answer box: the direct answer, restated as facts, right under the head. */
.tldr { margin: 0 0 40px; padding: 22px 24px; background: var(--steel-900); border: 1px solid var(--steel-800); border-left: 3px solid var(--ember); border-radius: var(--radius); }
.tldr h2 { font: 650 13px/1.3 var(--body); text-transform: uppercase; letter-spacing: 0.08em; color: var(--steel-400); margin: 0 0 10px; max-width: none; }
.tldr ul { margin: 0; padding-left: 1.1em; }
.tldr li { margin: 6px 0; }

/* Code blocks: wrap long commands; scroll only when they truly can't. */
.hub-prose pre { margin: 16px 0 24px; padding: 16px 18px; background: var(--steel-900); border: 1px solid var(--steel-800); border-radius: var(--radius); overflow-x: auto; }
.hub-prose pre code { background: none; border: 0; padding: 0; font-size: 14px; line-height: 1.6; white-space: pre; color: var(--steel-100); }
.hub-prose pre:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

.callout { margin: 24px 0; padding: 16px 20px; border: 1px solid var(--steel-600); border-radius: var(--radius); }
.callout p:last-child { margin-bottom: 0; }
.callout strong:first-child { color: var(--ember); }

.hub-steps { margin: 16px 0 24px; }
.hub-steps li { color: var(--steel-200); }

.hub-faq { margin-top: 64px; }
.hub-faq h2 { margin-top: 0; }
.hub-faq .faq { max-width: none; }

.sources { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--steel-800); }
.sources h2 { font: 650 13px/1.3 var(--body); text-transform: uppercase; letter-spacing: 0.08em; color: var(--steel-400); margin: 0 0 10px; max-width: none; }
.sources li, .sources p { font-size: 14px; color: var(--steel-400); }

/* Cards on the hub index pages. */
.cards { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.cards li { border-top: 1px solid var(--steel-600); padding: 18px 0 22px; }
.cards a { font: 700 1.1rem/1.3 var(--display); font-stretch: 112%; color: var(--steel-100); text-decoration: none; }
.cards a:hover { text-decoration: underline; text-decoration-color: var(--ember); }
.cards p { margin: 8px 0 0; font-size: 15px; color: var(--steel-400); }

/* After the article: the call to action and the related pages. */
.article-end { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px 72px; padding: clamp(48px, 7vh, 80px) 0; border-top: 1px solid var(--steel-800); }
.related { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--steel-600); }
.related li { padding: 14px 0; border-bottom: 1px solid var(--steel-800); display: grid; gap: 4px; }
.related a { color: var(--steel-100); font-weight: 600; text-decoration-color: var(--ember); }
.related span { font-size: 15px; color: var(--steel-400); }

.hubnav { border-top: 1px solid var(--steel-800); padding: 40px 0 8px; }
.hubnav__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 72px; }
.hubnav h3 { font: 650 13px/1.3 var(--body); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 12px; }
.hubnav h3 a { color: var(--steel-400); text-decoration: none; }
.hubnav h3 a:hover { color: var(--steel-100); }
.hubnav ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.hubnav li { break-inside: avoid; padding: 5px 0; }
.hubnav li a { color: var(--steel-200); font-size: 15px; text-decoration: none; }
.hubnav li a:hover { color: var(--steel-100); text-decoration: underline; text-decoration-color: var(--ember); }
.hubnav li a[aria-current='page'] { color: var(--steel-100); text-decoration: underline; text-decoration-color: var(--ember); }

@media (max-width: 899px) {
  .article-end, .hubnav__cols, .cards { grid-template-columns: 1fr; }
  .hubnav ul { columns: 1; }
}
.article-end h2 { margin-bottom: 12px; }
:is(:lang(zh), :lang(ja), :lang(ko)) .hub :is(h1, h2, h3) { line-height: 1.2; letter-spacing: 0; }
