@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=IBM+Plex+Mono:wght@400;600&family=Source+Sans+3:wght@400;600&display=swap');
:root { --paper:#ede7d5; --ink:#17352b; --forest:#174b3a; --rust:#b44a2a; --soft:#cfc5aa; --cream:#f8f4e8; font-family:'Source Sans 3',sans-serif; color:var(--ink); background:var(--paper); }
* { box-sizing:border-box; }
body { margin:0; background:var(--paper); }
a { color:inherit; }
.site-header { min-width:0; padding:26px 4vw; display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; border-bottom:2px solid var(--forest); }
.brand { max-width:100%; flex:0 0 auto; overflow-wrap:anywhere; font:32px 'DM Serif Display'; text-decoration:none; }
.brand i { margin-left:12px; color:var(--rust); font:600 10px 'IBM Plex Mono'; font-style:normal; letter-spacing:.18em; text-transform:uppercase; }
nav { display:flex; gap:20px; overflow:auto; }
.site-header nav { min-width:0; flex-wrap:wrap; gap:8px 20px; overflow-x:auto; }
nav a { border-bottom:1px solid transparent; font:600 14px/1.5 'Source Sans 3',sans-serif; text-decoration:none; white-space:nowrap; }
nav a:hover { color:var(--rust); border-color:var(--rust); }
nav a[aria-current="page"] { color:var(--rust); border-color:var(--rust); }
.site-header nav a { padding-block:8px; white-space:normal; }
.field-layout { max-width:1240px; margin:0 auto; padding:72px 4vw; display:grid; grid-template-columns:270px minmax(0,1fr); gap:7vw; }
.chapter-rail { padding-right:34px; display:flex; flex-direction:column; gap:18px; border-right:1px solid var(--soft); }
.chapter-rail nav { display:flex; flex-direction:column; gap:16px; overflow:visible; }
.chapter-rail nav a { white-space:normal; }
.chapter-rail span,.chapter-rail small,.kicker { font:600 10px 'IBM Plex Mono'; letter-spacing:.14em; text-transform:uppercase; }
.chapter-rail b { position:sticky; top:30px; color:var(--rust); font:36px/1.05 'DM Serif Display'; }
.chapter-rail small { color:#6c776d; }
article { max-width:760px; }
.kicker { color:var(--rust); }
h1,h2 { overflow-wrap:anywhere; font-family:'DM Serif Display',serif; font-weight:400; }
h1 { margin:0 0 28px; font-size:clamp(38px,5vw,64px); line-height:1.06; }
h1::after { content:''; width:70px; margin-top:28px; display:block; border-top:3px solid var(--rust); }
.lede { padding-left:24px; border-left:3px solid var(--rust); font-size:22px; line-height:1.65; }
.article-section { min-width:0; padding:38px 0; display:grid; grid-template-columns:40px 1fr; gap:22px; border-bottom:1px solid var(--soft); }
.section-index { padding-top:8px; color:var(--rust); font:600 11px 'IBM Plex Mono'; }
.section-content { min-width:0; }
h2 { margin:0 0 16px; font-size:36px; }
.article-section p { font-size:17px; line-height:1.85; }
.content-block + .content-block { margin-top:26px; }
.block-prose p:first-child { margin-top:0; }
.block-steps ol,.block-checklist ul { margin:0; padding-left:25px; }
.block-steps li,.block-checklist li { padding:7px 0 7px 8px; font-size:17px; line-height:1.75; }
.block-steps li::marker { color:var(--rust); font:600 11px 'IBM Plex Mono'; }
.block-checklist li::marker { color:var(--forest); }
.block-comparison .table-scroll { max-width:100%; overflow-x:auto; border-block:2px solid var(--forest); }
.block-comparison table { width:100%; min-width:560px; border-collapse:collapse; }
.block-comparison th,.block-comparison td { padding:15px 13px; text-align:left; vertical-align:top; border-bottom:1px solid var(--soft); line-height:1.55; }
.block-comparison th { color:var(--rust); background:var(--cream); font:600 14px 'Source Sans 3',sans-serif; }
.block-faq dl { margin:0; }
.block-faq .faq-item { padding:20px 0; border-top:1px solid var(--soft); }
.block-faq dt { color:var(--rust); font:22px 'DM Serif Display'; }
.block-faq dd { margin:10px 0 0; line-height:1.75; }
footer { padding:28px 4vw; display:flex; justify-content:space-between; border-top:2px solid var(--forest); font:11px 'IBM Plex Mono'; }
.footer-guide-index { flex:0 1 auto; min-width:0; flex-wrap:wrap; gap:8px 20px; overflow-x:auto; }
.footer-guide-index a { white-space:normal; }
footer { gap:24px; flex-wrap:wrap; }
footer > span { flex:0 0 auto; }
.player-action { display:inline-block; padding:10px 16px; border:1px solid var(--forest); color:var(--cream); background:var(--forest); font-weight:600; text-decoration:none; border-radius:4px; }
.player-action:hover { background:var(--ink); }
.player-action:focus-visible { outline:3px solid var(--rust); outline-offset:3px; }
@media(max-width:760px) { .site-header { flex-direction:column; align-items:flex-start; gap:18px; } .site-header nav { width:100%; } .field-layout { padding-top:42px; grid-template-columns:1fr; } .chapter-rail { padding:0 0 24px; border:0; border-bottom:1px solid var(--soft); } .chapter-rail b { position:static; } .article-section { grid-template-columns:32px minmax(0,1fr); } .block-comparison th,.block-comparison td { padding:11px; } footer { flex-direction:column; gap:10px; } }


/* Shared production navigation: bounded primary links, an accessible full guide menu,
   a wrapping footer directory, and an empty-safe advertising slot. */
.site-header {
  position: relative;
  gap: clamp(.65rem, 1.5vw, 1.4rem);
}
.site-header .primary-nav {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  overflow: visible;
  overflow-x: visible;
}
.site-header .primary-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  line-height: 1.25;
}
.site-header [data-guide-menu] {
  position: relative;
  z-index: 30;
  display: block;
  flex: 0 0 auto;
}
.site-header .language-menu {
  position: relative;
  z-index: 31;
  flex: 0 0 auto;
}
.site-header .language-menu > summary {
  height: 40px;
  min-height: 40px;
  padding: .65rem .75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line, currentColor);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.2;
  list-style: none;
  white-space: nowrap;
}
.site-header .language-menu > summary::-webkit-details-marker { display: none; }
.site-header .language-menu > div {
  position: absolute;
  z-index: 42;
  top: calc(100% + .45rem);
  right: 0;
  min-width: 9rem;
  padding: .45rem;
  display: grid;
  gap: .2rem;
  border: 1px solid var(--line, currentColor);
  background: var(--panel, var(--paper, var(--bg, #15191b)));
  box-shadow: 0 .8rem 2rem rgba(0,0,0,.3);
}
.site-header .language-menu:not([open]) > div { display: none !important; }
.site-header .language-menu > div a {
  min-height: 40px;
  padding: .5rem .65rem;
  display: flex;
  align-items: center;
  font-size: 13px;
  line-height: 1.25;
  text-decoration: none;
}
.site-header [data-guide-menu] summary {
  height: 42px;
  min-height: 40px;
  padding: .65rem .8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border: 1px solid var(--line, currentColor);
  background: var(--panel, var(--paper, var(--bg, #15191b)));
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  list-style: none;
  white-space: nowrap;
}
.site-header [data-guide-menu] summary::-webkit-details-marker { display: none; }
.site-header [data-guide-menu] summary span { font-size: 1rem; transition: transform .18s ease; }
.site-header [data-guide-menu][open] summary span { transform: rotate(45deg); }
.site-header [data-guide-menu] > nav {
  position: absolute;
  z-index: 40;
  top: calc(100% + .55rem);
  right: 0;
  width: min(36rem, calc(100vw - 2rem));
  min-width: 0;
  max-height: min(70vh, 36rem);
  padding: .75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .35rem;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--line, currentColor);
  background: var(--panel, var(--paper, var(--bg, #15191b)));
  box-shadow: 0 1.1rem 2.8rem rgba(0,0,0,.35);
}
.site-header [data-guide-menu]:not([open]) > nav { display: none !important; }
.site-header [data-guide-menu] > nav a {
  min-width: 0;
  min-height: 42px;
  padding: .65rem .72rem;
  display: flex;
  align-items: center;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
}
.site-header [data-guide-menu] > nav a:hover,
.site-header [data-guide-menu] > nav a:focus-visible,
.site-header [data-guide-menu] > nav a[aria-current="page"] {
  color: var(--amber, var(--acid, var(--red, var(--orange, currentColor))));
  background: rgba(127,127,127,.12);
  transform: none;
}
.site-header a:focus-visible,
.site-header summary:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid var(--amber, var(--acid, var(--red, var(--orange, currentColor))));
  outline-offset: 3px;
}
.site-footer {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(10rem, .35fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.4rem, 4vw, 4rem);
}
.footer-guide-groups {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 1.5rem clamp(1rem, 2.5vw, 2.4rem);
  overflow-x: visible;
}
.footer-guide-group { min-width: 0; }
.footer-guide-group h2 {
  margin: 0 0 .65rem;
  color: inherit;
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer-guide-group nav {
  min-width: 0;
  display: grid;
  gap: .2rem;
  overflow: visible;
  overflow-x: visible;
  background: transparent;
}
.footer-guide-group nav a {
  min-width: 0;
  min-height: 36px;
  padding: .35rem 0;
  display: flex;
  align-items: center;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
  transform: none;
}
.footer-guide-group nav a:hover,
.footer-guide-group nav a:focus-visible,
.footer-guide-group nav a[aria-current="page"] {
  color: var(--amber, var(--acid, var(--red, var(--orange, currentColor))));
  transform: none;
}
.ad-slot {
  width: min(60rem, 100%);
  min-width: 0;
  margin: clamp(1.5rem, 4vw, 3rem) auto 0;
  padding: .8rem 0 0;
  overflow: visible;
  border-top: 1px solid var(--line, currentColor);
}
.ad-slot > small {
  display: block;
  margin: 0 0 .55rem;
  font-size: 12px;
  line-height: 1.3;
  opacity: .72;
}
.ad-slot-container { width: 100%; min-width: 0; }
.ad-slot:has(> .ad-slot-container:empty) { display: none; }
.site-privacy {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: .85rem 0 1.25rem;
  border-top: 1px solid var(--line, currentColor);
  color: inherit;
  font-size: 12px;
  line-height: 1.55;
  opacity: .78;
}
.site-privacy > summary {
  width: max-content;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.site-privacy > p { max-width: 60rem; margin: .65rem 0 0; }
@media (max-width: 980px) {
  .site-header .primary-nav { display: none; }
  .footer-guide-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; }
  .site-header [data-guide-menu] > nav {
    position: fixed;
    top: max(4.5rem, env(safe-area-inset-top));
    right: 1rem;
    left: 1rem;
    width: auto;
    max-height: calc(100dvh - 6rem);
  }
  .site-footer { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .site-header [data-guide-menu] > nav,
  .footer-guide-groups { grid-template-columns: minmax(0, 1fr); }
}
