:root {
  color-scheme: dark;
  --guide-bg: #0d0d0f;
  --guide-panel: #17171b;
  --guide-line: #303035;
  --guide-text: #f6f5f7;
  --guide-muted: #b0afb7;
  --guide-gold: #ffd450;
  --guide-header-height: 6.125rem;
}

body.guide-page {
  margin: 0;
  background: var(--guide-bg);
  color: var(--guide-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

.guide-page *, .guide-page *::before, .guide-page *::after { box-sizing: border-box; }
.guide-page a:focus-visible, .guide-page summary:focus-visible {
  outline: 2px solid var(--guide-gold);
  outline-offset: 4px;
}

.guide-skip {
  position: fixed;
  z-index: 40;
  inset: .75rem auto auto .75rem;
  translate: 0 -180%;
  padding: .5rem .8rem;
  background: var(--guide-text);
  color: var(--guide-bg);
  border-radius: .4rem;
}
.guide-skip:focus { translate: 0; }

.guide-main {
  display: grid;
  grid-template-columns: minmax(10.75rem, 14rem) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.75rem, 4.25vw, 4.25rem);
  max-inline-size: 76rem;
  padding: clamp(2.5rem, 5vw, 5.25rem) clamp(1rem, 3.5vw, 3rem) 6rem;
  margin-inline: auto;
  scroll-margin-block-start: var(--guide-header-height);
}

.guide-sidebar {
  position: sticky;
  inset-block-start: calc(var(--guide-header-height) + 1.75rem);
  min-inline-size: 0;
  margin-block-start: .25rem;
}
.guide-toc summary {
  padding: .15rem 0 .55rem;
  color: var(--guide-muted);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
}
.guide-toc nav { display: grid; margin-block-end: 1rem; }
.guide-toc nav a {
  border-inline-start: 2px solid var(--guide-line);
  padding: .4rem .8rem;
  color: var(--guide-muted);
  font-size: .9rem;
  text-decoration: none;
  line-height: 1.35;
}
.guide-toc nav a:hover { color: var(--guide-text); }
.guide-toc nav a[aria-current="location"] {
  border-inline-start-color: var(--guide-gold);
  color: var(--guide-text);
  background: linear-gradient(90deg, #ffd45012, transparent);
}

.guide-breadcrumb {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .55rem;
  color: var(--guide-muted);
  font-size: .875rem;
}
.guide-breadcrumb a { color: inherit; text-underline-offset: .18em; }
.guide-breadcrumb [aria-current] { color: var(--guide-text); }
.guide-intro h1 {
  margin: .7rem 0 1.05rem;
  font-size: clamp(2.65rem, 6vw, 4.9rem);
  font-weight: 740;
  line-height: 1.02;
  letter-spacing: -.055em;
}
.guide-intro h1 span { color: var(--guide-gold); }
.guide-lead {
  max-inline-size: 66ch;
  margin: 0;
  color: var(--guide-muted);
  font-size: clamp(1.05rem, 1.48vw, 1.25rem);
}
.guide-article strong { color: var(--guide-text); font-weight: 650; }
.guide-demo { margin: 1.5rem 0 0; }
.guide-demo video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--guide-line);
  border-radius: .8rem;
  background: #09090b;
}
.guide-demo figcaption { margin-top: .55rem; color: var(--guide-muted); font-size: .875rem; }
.guide-shot {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  border-inline-start: 3px solid var(--guide-gold);
  background: var(--guide-panel);
}
.guide-intro-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem 1.35rem;
  margin-block-start: 1.65rem;
}
.guide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-block-size: 44px;
  padding: .57rem .95rem;
  border-radius: .5rem;
  background: linear-gradient(110deg, #fff5c9, #ffb92e);
  color: #231603;
  font-size: .88rem;
  font-weight: 750;
  text-decoration: none;
}
.guide-button:hover { background: #ffdc68; }
.guide-sidebar-cta { inline-size: 100%; }
.guide-article a:not(.guide-button, .guide-breadcrumb a) {
  color: var(--guide-gold);
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
}
.guide-article a:not(.guide-button):hover { text-decoration-thickness: 2px; }
.guide-text-link { padding-block: .6rem; font-size: .9rem; }

.guide-section {
  margin-block-start: clamp(2.6rem, 5.25vw, 4.25rem);
  padding-block-start: 1.65rem;
  border-block-start: 1px solid var(--guide-line);
  scroll-margin-block-start: calc(var(--guide-header-height) + 1.4rem);
}
.guide-section h2 {
  margin: 0 0 .75rem;
  font-size: clamp(1.55rem, 3.1vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.038em;
  line-height: 1.16;
}
.guide-section h3 { margin: 0 0 .5rem; font-size: 1.05rem; line-height: 1.35; }
.guide-section p { margin: .6rem 0 1rem; color: var(--guide-muted); }
.guide-section p:last-child { margin-block-end: 0; }
.guide-section .guide-source { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-block-start: 1rem; font-size: .875rem; }

.guide-facts, .guide-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-facts {
  overflow: hidden;
  margin: 1.2rem 0 0;
  border: 1px solid var(--guide-line);
  border-radius: .7rem;
  gap: 1px;
  background: var(--guide-line);
}
.guide-facts div { min-inline-size: 0; padding: .95rem 1rem; background: var(--guide-panel); }
.guide-facts dt { margin-block-end: .25rem; color: var(--guide-muted); font-size: .81rem; }
.guide-facts dd { margin: 0; font-weight: 650; line-height: 1.4; }
.guide-cards { gap: .85rem; margin-block-start: 1.15rem; }
.guide-card { padding: 1.13rem; border: 1px solid var(--guide-line); border-radius: .7rem; background: var(--guide-panel); }
.guide-card p, .guide-card a { font-size: .9rem; }

.guide-table-wrap { margin-block: 1.2rem; border: 1px solid var(--guide-line); border-radius: .7rem; overflow: hidden; }
.guide-table { inline-size: 100%; table-layout: fixed; border-collapse: collapse; text-align: start; }
.guide-table caption { padding: .75rem; color: var(--guide-muted); background: var(--guide-panel); font-size: .82rem; text-align: start; }
.guide-table th, .guide-table td {
  padding: .73rem clamp(.45rem, 1.5vw, 1rem);
  border-block-start: 1px solid var(--guide-line);
  text-align: start;
  vertical-align: top;
  overflow-wrap: anywhere;
  font-size: .875rem;
  line-height: 1.45;
}
.guide-table th:first-child { inline-size: 25%; }
.guide-table thead { background: var(--guide-panel); }
.guide-table td { color: var(--guide-muted); }
.guide-table :is(td, th):nth-child(2) { background: #ffd4500b; }

.guide-timeline { display: grid; gap: .85rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.guide-timeline li { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: .65rem 1rem; padding: 1rem 1.1rem; border-inline-start: 2px solid var(--guide-gold); background: var(--guide-panel); }
.guide-timeline time { color: var(--guide-gold); font-size: .875rem; font-weight: 650; }
.guide-timeline p { font-size: .92rem; }

.guide-tool-links { display: grid; gap: .1rem; margin: .6rem 0 0; padding: 0; list-style: none; }
.guide-tool-links li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .6rem; color: var(--guide-muted); }
.guide-tool-links a { display: inline-grid; align-items: center; min-block-size: 2.45rem; }
.guide-tool-links span { font-size: .9rem; }
.guide-faq { margin-block-start: .8rem; border-block-end: 1px solid var(--guide-line); }
.guide-faq details { border-block-start: 1px solid var(--guide-line); }
.guide-faq summary { padding-block: .85rem; font-weight: 650; cursor: pointer; }
.guide-faq details p { margin-block: 0 1rem; }

@media (max-width: 51rem) {
  .guide-main { grid-template-columns: 1fr; gap: 1.75rem; padding-block: 1.35rem 4rem; }
  .guide-sidebar { position: static; margin: 0; }
  .guide-toc { border: 1px solid var(--guide-line); border-radius: .55rem; background: var(--guide-panel); }
  .guide-toc summary { min-block-size: 44px; padding: .63rem .8rem; color: var(--guide-text); }
  .guide-toc nav { margin: 0 .75rem .6rem; }
  .guide-toc nav a { min-block-size: 44px; align-content: center; }
  .guide-sidebar-cta { display: none; }
}

@media (max-width: 34rem) {
  .guide-cards { grid-template-columns: 1fr; }
  .guide-timeline li { grid-template-columns: 1fr; }
}
