/* Guides: the index and one article. Brand tokens come from brand.css; headings use the report serif, like
   the homepage, and the article is one comfortable reading column. Light and dark follow the tokens. */

@font-face{font-family:Lucent Serif;src:url('../fonts/source-serif-4.woff2') format('woff2');font-weight:300 700;font-style:normal;font-display:swap}

.gd{--hairline:color-mix(in srgb,var(--text) 14%,transparent);--petrol:#16393f;--petrol-ink:#e6efee;background:var(--bg);color:var(--text)}
.gd main{overflow-x:clip}
.gd .public-header{background:var(--bg);border-bottom:1px solid var(--hairline)}
.gd .public-header .theme-toggle{min-width:40px;width:40px;height:40px;padding:0;justify-content:center;border-radius:50%}
.gd .public-header [data-theme-label]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.gd-article,.gd-index,.gd-footer{width:min(720px,100% - 32px);margin-inline:auto}
.gd-article,.gd-index{padding:40px 0 72px}
.gd :where(h1,h2){font-family:Lucent Serif,Georgia,serif;font-weight:400;letter-spacing:-.01em;color:var(--text);text-wrap:balance}
.gd a:focus-visible{outline:2px solid var(--focus);outline-offset:3px;border-radius:2px}

/* Breadcrumbs and byline */
.gd-crumbs ol{display:flex;flex-wrap:wrap;gap:4px 0;margin:0;padding:0;list-style:none;font-size:13px;color:var(--text-3)}
.gd-crumbs li+li::before{content:"\203A";margin:0 8px;color:var(--text-3)}
.gd-crumbs a{color:var(--text-2)}
.gd-crumbs a:hover{color:var(--text);text-decoration:underline}
.gd-crumbs [aria-current]{overflow-wrap:anywhere}
.gd-head{margin-top:28px}
.gd-head h1{margin:0;font-size:clamp(32px,5vw,46px);line-height:1.1}
.gd-byline{margin:16px 0 0;font-family:var(--font-mono);font-size:12px;letter-spacing:.02em;color:var(--text-3)}

/* On this page */
.gd-toc{margin-top:32px;padding:18px 22px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}
.gd-toc-title{margin:0 0 8px;font-family:var(--font-mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--text-3)}
.gd-toc ol{margin:0;padding-left:22px;font-size:15px;line-height:1.5}
.gd-toc li+li{margin-top:6px}
.gd-toc li::marker{font-family:var(--font-mono);font-size:12px;color:var(--text-3)}
.gd-toc a{color:var(--text-2)}
.gd-toc a:hover{color:var(--text);text-decoration:underline}

/* The article */
.gd-body{margin-top:36px;font-size:17px;line-height:1.7;color:var(--text-2);overflow-wrap:break-word}
.gd-body p,.gd-author p,.guide-sources-list p{color:inherit}
.gd-body :where(strong,th,h2,h3){color:var(--text)}
.gd-body>*{margin:0}
.gd-body>*+*{margin-top:18px}
.gd-body h2{margin-top:52px;font-size:clamp(26px,3.4vw,32px);line-height:1.2;scroll-margin-top:24px}
.gd-body h3{margin-top:34px;font-size:19px;line-height:1.35;font-weight:600;scroll-margin-top:24px}
.gd-body h2+*,.gd-body h3+*{margin-top:12px}
.gd-body a{color:var(--text);text-decoration:underline;text-decoration-color:var(--border-strong);text-underline-offset:3px}
.gd-body a:hover{text-decoration-color:currentColor}
.gd-body strong{font-weight:600}
.gd-body :where(ul,ol){padding-left:24px}
.gd-body li+li{margin-top:6px}
.gd-body li>p{margin:0}
.gd-body code{font-family:var(--font-mono);font-size:.86em;padding:1px 5px;border-radius:4px;background:var(--surface-2);border:1px solid var(--border)}
.gd-body pre{overflow-x:auto;padding:14px 16px;border-radius:var(--radius-sm);background:var(--surface-2);border:1px solid var(--border);font-size:14px;line-height:1.5}
.gd-body pre code{padding:0;border:0;background:none}
.gd-body blockquote{padding:4px 0 4px 20px;border-left:3px solid var(--border-strong);color:var(--text-2)}
.gd-body blockquote>*+*{margin-top:10px}
.gd-body blockquote p{margin:0}
.gd-body hr{border:0;border-top:1px solid var(--border);margin-block:36px}
.gd-body img{display:block;max-width:100%;height:auto;margin-inline:auto;border-radius:var(--radius-sm)}

/* Tables scroll inside their own box on a phone; the page itself never scrolls sideways. */
.guide-table{overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);-webkit-overflow-scrolling:touch}
.guide-table:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.guide-table table{width:100%;min-width:560px;border-collapse:collapse;font-size:14.5px;line-height:1.5}
.guide-table th,.guide-table td{padding:10px 14px;text-align:left;vertical-align:top;border-bottom:1px solid var(--border)}
.guide-table th{font-weight:600;color:var(--text);background:var(--surface-2);white-space:nowrap}
.guide-table td{color:var(--text-2)}
.guide-table tr:last-child td{border-bottom:0}
.guide-table td:first-child{color:var(--text);font-weight:500}

/* Footnote references and the sources they point to */
.gd .footnote-ref{font-size:.7em;line-height:0}
.gd .footnote-ref a{padding:0 2px;font-family:var(--font-mono);color:var(--text-2);text-decoration:none}
.gd .footnote-ref a:hover{color:var(--text);text-decoration:underline}
:target{scroll-margin-top:24px}
.gd-sources{margin-top:48px;padding-top:24px;border-top:1px solid var(--border)}
.gd-sources h2,.gd-related h2{margin:0;font-size:22px}
.guide-sources-list{margin:14px 0 0;padding-left:28px;font-size:14px;line-height:1.6;color:var(--text-2);overflow-wrap:anywhere}
.guide-sources-list li+li{margin-top:8px}
.guide-sources-list li::marker{font-family:var(--font-mono);font-size:12px;color:var(--text-3)}
.guide-sources-list p{margin:0}
.guide-sources-list a{color:var(--text-2);text-decoration:underline;text-decoration-color:var(--border-strong);text-underline-offset:2px}
.guide-sources-list li:target{background:var(--surface);box-shadow:0 0 0 6px var(--surface);border-radius:2px}
.guide-sources-list .guide-backref{margin-left:2px;text-decoration:none;color:var(--text-3)}
.guide-sources-list .guide-backref:hover{color:var(--text)}
/* A source cited many times links back to its first citation only. */
.guide-sources-list .guide-backref+.guide-backref{display:none}

/* The call to action */
.gd-cta{margin-top:56px;padding:30px 28px;border-radius:14px;background:var(--petrol);color:var(--petrol-ink)}
.gd-cta h2{margin:0;font-size:clamp(24px,3vw,30px);line-height:1.2;color:#fff}
.gd-cta p{margin:10px 0 0;font-size:16px;line-height:1.55;color:var(--petrol-ink)}
.gd-cta-button{display:inline-flex;align-items:center;gap:10px;min-height:46px;margin-top:22px;padding:0 22px;border-radius:999px;background:#fff;color:var(--petrol);font-size:15px;font-weight:500;text-decoration:none}
.gd-cta-button svg{width:16px;height:16px}
.gd-cta-button:hover{background:#e6efee}
.gd .gd-cta-button:focus-visible{outline-color:#fff}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .gd-cta{background:#07181b;border:1px solid var(--border)}}
:root[data-theme="dark"] .gd-cta{background:#07181b;border:1px solid var(--border)}

/* A named author, under the article */
.gd-author{margin-top:40px;padding:20px 22px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);font-size:15px;line-height:1.6;color:var(--text-2)}
.gd-author p{margin:0}
.gd-author p+p{margin-top:8px}
.gd-author-name{font-weight:600;color:var(--text)}
.gd-author-name span{margin-left:10px;font-weight:400;color:var(--text-3)}
.gd-author-links a{color:var(--text-2);text-decoration:underline;text-decoration-color:var(--border-strong);overflow-wrap:anywhere}

/* Related guides and the index list share one row style */
.gd-related{margin-top:48px}
.gd-related ul,.gd-list{margin:16px 0 0;padding:0;list-style:none;border-top:1px solid var(--border)}
.gd-related li,.gd-list li{padding:18px 0;border-bottom:1px solid var(--border)}
.gd-related li>a{font-size:17px;font-weight:600;color:var(--text)}
.gd-related li>a:hover,.gd-list h2 a:hover{text-decoration:underline;text-underline-offset:3px}
.gd-related li p,.gd-list p{margin:6px 0 0;font-size:15px;line-height:1.55;color:var(--text-2)}

/* The index */
.gd-index h1{margin:0;font-size:clamp(36px,6vw,52px);line-height:1.05}
.gd-lede{margin:14px 0 0;max-width:620px;font-size:18px;line-height:1.55;color:var(--text-2)}
.gd-list{margin-top:36px}
.gd-list h2{margin:0;font-size:24px;line-height:1.25}
.gd-list h2 a{color:var(--text)}
.gd .gd-list-date{margin-top:8px;font-family:var(--font-mono);font-size:12px;color:var(--text-3)}
.gd-empty{margin-top:36px;color:var(--text-3)}

.gd-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px 24px;padding:28px 0 36px;border-top:1px solid var(--hairline);font-size:13px;color:var(--text-3)}
.gd-footer a{color:inherit}
.gd-footer a:hover{color:var(--text)}

@media (max-width:640px){
  .gd .public-header{gap:10px}
  .gd .public-header .wordmark{white-space:nowrap;font-size:17px}
  .gd .header-actions{gap:6px;margin-left:auto}
  .gd .public-header .button{padding-inline:10px;font-size:12px}
  .gd .public-header .button svg{display:none}
  .gd-article,.gd-index{padding-top:28px}
  .gd-body{font-size:16.5px}
  .gd-cta{padding:24px 20px}
  .gd-cta-button{width:100%;justify-content:center}
}
@media (max-width:360px){
  .gd .public-header{padding-inline:12px}
  .gd .public-header .wordmark-name{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}
}
