.guide-page {
  --guide-ink: #14221b;
  --guide-muted: #5b675f;
  --guide-paper: #f4f0e7;
  --guide-line: rgba(20, 34, 27, 0.13);
  background: #fbfaf6;
  color: var(--guide-ink);
}

.guide-page .site-header {
  position: sticky;
  top: 0;
  z-index: 30;
}

.guide-page main {
  overflow: clip;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: clamp(2rem, 6vw, 6.5rem);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(4.5rem, 8vw, 8rem) 2rem clamp(4rem, 7vw, 7rem);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2.2rem;
  color: var(--guide-muted);
  font-size: 0.82rem;
}

.breadcrumbs a {
  color: inherit;
  text-decoration-color: rgba(20, 34, 27, 0.3);
  text-underline-offset: 0.2rem;
}

.guide-hero h1 {
  max-width: 850px;
  margin: 0.75rem 0 1.5rem;
  overflow-wrap: normal;
  font-size: clamp(2.7rem, 4.2vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.065em;
  hyphens: manual;
}

.guide-lead {
  max-width: 730px;
  margin: 0;
  color: var(--guide-muted);
  font-size: clamp(1.12rem, 2vw, 1.4rem);
  line-height: 1.65;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.4rem;
  margin: 1.7rem 0 0;
  color: var(--guide-muted);
  font-size: 0.83rem;
}

.guide-meta span {
  color: var(--guide-ink);
  font-weight: 800;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
  margin-top: 2.1rem;
}

.guide-action-note {
  margin: 0.8rem 0 0;
  color: var(--guide-muted);
  font-size: 0.78rem;
}

.local-model {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.7rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  background:
    radial-gradient(circle at 94% 5%, rgba(225, 243, 199, 0.2), transparent 30%),
    #0d3727;
  color: #f7f7ef;
  box-shadow: 0 28px 75px rgba(16, 48, 35, 0.2);
}

.local-model::before {
  position: absolute;
  top: -55px;
  right: -55px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.local-model-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.local-model-head b {
  color: #dff0c9;
}

.local-model ol {
  display: grid;
  gap: 0;
  margin: 1rem 0 1.25rem;
  padding: 0;
  list-style: none;
}

.local-model li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.local-model li > span {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border: 1px solid rgba(223, 240, 201, 0.38);
  border-radius: 50%;
  color: #dff0c9;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.76rem;
}

.local-model li div {
  display: grid;
  gap: 0.28rem;
}

.local-model li strong {
  font-size: 1.08rem;
}

.local-model li small,
.local-model > p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
}

.local-model > p {
  margin: 0;
  font-size: 0.77rem;
}

.guide-summary {
  display: grid;
  grid-template-columns: minmax(220px, 0.5fr) minmax(0, 1.5fr);
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(2.3rem, 5vw, 4rem) 2rem;
  border-top: 1px solid var(--guide-line);
  border-bottom: 1px solid var(--guide-line);
}

.guide-summary h2 {
  margin: 0.45rem 0 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.guide-summary ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-summary li {
  display: grid;
  grid-template-columns: 2.3rem 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid var(--guide-line);
  line-height: 1.5;
}

.guide-summary li b {
  color: #0b6e44;
  font-family: "DM Mono", ui-monospace, monospace;
}

.guide-layout {
  display: grid;
  grid-template-columns: 225px minmax(0, 780px);
  gap: clamp(3rem, 8vw, 8rem);
  justify-content: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(4.5rem, 8vw, 8rem) 2rem;
}

.guide-toc {
  position: sticky;
  top: 8.2rem;
  align-self: start;
  display: grid;
  gap: 0;
  padding-top: 0.2rem;
}

.guide-toc strong {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--guide-line);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guide-toc a {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--guide-line);
  color: var(--guide-muted);
  font-size: 0.83rem;
  line-height: 1.4;
  text-decoration: none;
}

.guide-toc a:hover {
  color: #0b6e44;
}

.guide-content {
  min-width: 0;
}

.guide-content > section {
  scroll-margin-top: 7rem;
  padding: 0 0 clamp(4.7rem, 8vw, 7rem);
}

.guide-content > section + section {
  padding-top: clamp(4.7rem, 8vw, 7rem);
  border-top: 1px solid var(--guide-line);
}

.guide-content h2 {
  max-width: 720px;
  margin: 0.65rem 0 1.6rem;
  overflow-wrap: anywhere;
  font-size: clamp(2.1rem, 4.3vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  hyphens: manual;
}

.guide-content > section > p:not(.eyebrow),
.source-section > p,
.guide-final > p {
  max-width: 720px;
  color: var(--guide-muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.guide-content > section > p strong {
  color: var(--guide-ink);
}

.fact-box {
  margin-top: 2.1rem;
  padding: 1.6rem 1.8rem;
  border-left: 4px solid #0b6e44;
  background: #edf4e7;
}

.fact-box strong {
  display: block;
  margin-bottom: 0.35rem;
}

.fact-box p {
  margin: 0;
  color: #425148;
  line-height: 1.65;
}

.checklist-block {
  margin-top: 3rem;
  border-top: 1px solid var(--guide-ink);
}

.checklist-head {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 0 1.35rem;
}

.checklist-head > span {
  color: #0b6e44;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.8rem;
}

.checklist-head div {
  display: grid;
  gap: 0.25rem;
}

.checklist-head strong {
  font-size: 1.2rem;
}

.checklist-head small {
  color: var(--guide-muted);
  line-height: 1.45;
}

.guide-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-item;
}

.checklist-block:nth-of-type(2) .guide-checklist {
  counter-reset: guide-item 6;
}

.checklist-block:nth-of-type(3) .guide-checklist {
  counter-reset: guide-item 9;
}

.guide-checklist li {
  counter-increment: guide-item;
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.7rem 0;
  border-top: 1px solid var(--guide-line);
}

.guide-checklist li::before {
  color: #0b6e44;
  content: counter(guide-item, decimal-leading-zero);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.82rem;
}

.guide-checklist h3 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  line-height: 1.25;
}

.guide-checklist p {
  margin: 0;
  color: var(--guide-muted);
  line-height: 1.7;
}

.guide-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  gap: 2rem;
  align-items: end;
  margin: 0 0 clamp(4.7rem, 8vw, 7rem);
  padding: clamp(2rem, 5vw, 3.8rem);
  background: #0d3727;
  color: #fff;
}

.guide-cta h2 {
  margin: 0.55rem 0 1rem;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.guide-cta p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.guide-cta .eyebrow {
  color: #dff0c9;
}

.guide-cta-actions {
  display: grid;
  gap: 1.05rem;
}

.guide-cta .text-link {
  color: #fff;
}

.measurement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 2.5rem 0;
  background: var(--guide-line);
  border: 1px solid var(--guide-line);
}

.measurement-grid article {
  min-height: 210px;
  padding: 1.7rem;
  background: #fbfaf6;
}

.measurement-grid span {
  color: #0b6e44;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.78rem;
}

.measurement-grid h3 {
  margin: 2.4rem 0 0.55rem;
  font-size: 1.25rem;
}

.measurement-grid p {
  margin: 0;
  color: var(--guide-muted);
  line-height: 1.6;
}

.guide-page .guide-faq {
  background: transparent;
}

.guide-page .guide-faq .section-head,
.guide-page .guide-faq .faq-list {
  max-width: none;
}

.source-section ul {
  display: grid;
  gap: 0;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--guide-line);
  list-style: none;
}

.source-section li {
  border-bottom: 1px solid var(--guide-line);
}

.source-section a {
  display: block;
  padding: 1rem 2rem 1rem 0;
  color: var(--guide-ink);
  line-height: 1.5;
  text-decoration-color: rgba(11, 110, 68, 0.4);
  text-underline-offset: 0.22rem;
}

.source-section a::after {
  margin-left: 0.45rem;
  color: #0b6e44;
  content: "↗";
}

.guide-content > .guide-final {
  margin-top: 0;
  padding: clamp(3rem, 7vw, 5rem);
  border-top: 0;
  background: var(--guide-paper);
}

.guide-final h2 {
  max-width: 620px;
}

.guide-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2rem 0 1rem;
}

.guide-final > small {
  color: var(--guide-muted);
}

@media (max-width: 980px) {
  .guide-page .site-header .nav {
    display: none;
  }

  .guide-hero {
    grid-template-columns: 1fr;
  }

  .local-model {
    max-width: 680px;
  }

  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-toc strong {
    grid-column: 1 / -1;
  }

  .guide-toc a {
    padding-right: 1rem;
  }
}

@media (max-width: 720px) {
  .guide-page .site-header {
    padding: 0.8rem 1rem;
  }

  .guide-page .header-cta {
    padding: 0.78rem 0.9rem;
    font-size: 0.72rem;
  }

  .guide-hero,
  .guide-summary,
  .guide-layout {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .guide-hero {
    padding-top: 3.2rem;
  }

  .guide-hero h1 {
    overflow-wrap: anywhere;
    font-size: clamp(1.7rem, 8vw, 2.6rem);
    hyphens: manual;
  }

  .guide-actions,
  .guide-final-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .guide-actions .button,
  .guide-final-actions .button {
    width: 100%;
    text-align: center;
  }

  .guide-summary {
    grid-template-columns: 1fr;
  }

  .guide-summary ol,
  .measurement-grid {
    grid-template-columns: 1fr;
  }

  .guide-toc {
    grid-template-columns: 1fr;
  }

  .guide-content h2 {
    font-size: clamp(1.7rem, 8vw, 2.6rem);
  }

  .checklist-head,
  .guide-checklist li {
    grid-template-columns: 2.6rem minmax(0, 1fr);
  }

  .guide-cta {
    grid-template-columns: 1fr;
    padding: 2rem 1.35rem;
  }

  .guide-content > .guide-final {
    padding: 2.3rem 1.35rem;
  }
}

@media (max-width: 390px) {
  .guide-page .brand-copy small {
    display: none;
  }

  .guide-page .brand-mark {
    width: 29px;
    height: 29px;
  }

  .guide-page .header-cta {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .guide-hero h1 {
    letter-spacing: -0.055em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-page * {
    scroll-behavior: auto !important;
  }
}
