.guide-body { min-height: 100svh; }

.guide-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: calc(.7rem + env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) .7rem max(1rem, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--navy-950) 86%, transparent);
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
}

.guide-back, .guide-download {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  min-height: 2.55rem;
  padding: .55rem .75rem;
  border: 1px solid var(--button-border);
  border-radius: 999px;
  color: var(--gold-bright);
  background: var(--button-bg);
  font-size: .72rem;
  font-weight: 700;
  text-decoration: none;
}

.guide-back svg, .guide-download svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.guide-topbar a:hover, .guide-topbar a:focus-visible { border-color: var(--gold-bright); background: var(--accent-wash); }

.guide-shell { position: relative; z-index: 1; width: min(calc(100% - 2rem), 68rem); margin: 0 auto; padding: 2rem 0 calc(3rem + env(safe-area-inset-bottom)); }
.guide-hero { max-width: 47rem; margin: 0 auto 2rem; text-align: center; }
.guide-hero > img { display: block; width: 4.8rem; height: auto; margin: 0 auto .9rem; }
.guide-kicker, .guide-section > .section-kicker { margin: 0 0 .55rem; color: var(--gold); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.guide-hero h1 { margin: 0; color: var(--cream); font-family: "Marcellus", Georgia, serif; font-size: clamp(2.55rem, 9vw, 5rem); font-weight: 400; line-height: .98; }
.guide-hero > p:not(.guide-kicker) { max-width: 42rem; margin: 1rem auto 0; color: var(--muted); font-family: Georgia, serif; font-size: clamp(.95rem, 2vw, 1.1rem); line-height: 1.65; }

.guide-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin-top: 1.25rem; }
.guide-jump a { padding: .5rem .7rem; border: 1px solid var(--button-border); border-radius: 999px; color: var(--gold-bright); background: var(--button-bg); font-size: .66rem; text-decoration: none; }

.guide-content { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 1.2rem; }
.guide-section { min-width: 0; scroll-margin-top: 5.2rem; padding: clamp(1.15rem, 3vw, 2.2rem); border: 1px solid var(--card-border); border-radius: 1.45rem; background: linear-gradient(145deg, color-mix(in srgb, var(--card) 94%, var(--gold) 6%), color-mix(in srgb, var(--card) 93%, var(--page-bottom))); box-shadow: 0 1.1rem 2.8rem color-mix(in srgb, var(--shadow) 34%, transparent), inset 0 1px rgba(255,255,255,.05); }
.guide-section h2 { margin: 0 0 .9rem; color: var(--cream); font-family: "Marcellus", Georgia, serif; font-size: clamp(1.65rem, 5vw, 2.65rem); font-weight: 400; line-height: 1.1; }
.guide-section h3 { margin: 1.4rem 0 .45rem; color: var(--gold-bright); font-family: Georgia, serif; font-size: 1.18rem; font-weight: 400; }
.guide-section p { margin: 0 0 1rem; color: var(--muted); font-size: .88rem; line-height: 1.75; }
.guide-section strong { color: var(--cream); }
.guide-section em { color: var(--gold-bright); font-style: normal; }

.guide-note { margin: 1rem 0; padding: .9rem 1rem; border: 1px solid var(--choice-border); border-radius: .9rem; color: var(--muted); background: var(--accent-wash); font-size: .78rem; line-height: 1.65; }
.guide-note strong { display: block; margin-bottom: .18rem; color: var(--gold-bright); }

.guide-media-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(9rem, .7fr); align-items: start; gap: 1rem; margin: 1.25rem 0; }
.guide-media-grid figure, .guide-wide-image { margin: 0; }
.guide-media-grid img, .guide-wide-image img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 1rem; background: var(--row-bg); box-shadow: 0 .8rem 2rem rgba(0,0,0,.22); }
.guide-media-grid .guide-phone img { max-height: 38rem; object-fit: contain; background: color-mix(in srgb, var(--navy-950) 88%, transparent); }
.guide-wide-image { max-width: 48rem; margin: 1.25rem auto; }
.guide-media-grid figcaption, .guide-wide-image figcaption { padding: .55rem .25rem 0; color: var(--muted); font-size: .68rem; line-height: 1.45; text-align: center; }

.guide-step { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .85rem; margin-top: 1.2rem; }
.guide-step > span { display: grid; width: 2.1rem; height: 2.1rem; place-items: center; border: 1px solid var(--choice-border); border-radius: 50%; color: var(--gold-bright); background: var(--button-bg); font-weight: 800; }
.guide-step h3 { margin: .2rem 0 .35rem; }
.guide-step p { margin-bottom: 0; }
.guide-columns { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .8rem; }
.guide-columns > div { padding: .9rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--row-bg); }
.guide-columns h3 { margin-top: 0; }
.guide-columns p { margin-bottom: 0; font-size: .78rem; }

.guide-table-wrap { max-width: 100%; margin: 1.15rem 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 1rem; }
.guide-table-wrap table { width: 100%; border-collapse: collapse; min-width: 34rem; background: var(--row-bg); color: var(--muted); font-size: .76rem; line-height: 1.5; }
.guide-table-wrap th, .guide-table-wrap td { padding: .78rem .85rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.guide-table-wrap th { color: var(--gold-bright); background: var(--accent-wash); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
.guide-table-wrap tr:last-child td { border-bottom: 0; }
.guide-table-wrap td:first-child { color: var(--cream); }

.guide-faq { display: grid; gap: .5rem; margin: 1rem 0 1.5rem; }
.guide-faq details { border: 1px solid var(--line); border-radius: .85rem; background: var(--row-bg); }
.guide-faq summary { padding: .8rem .9rem; color: var(--cream); font-size: .8rem; font-weight: 700; cursor: pointer; }
.guide-faq details p { margin: 0; padding: 0 .9rem .9rem; font-size: .78rem; }

.guide-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin-top: 1.35rem; padding: 1rem .35rem; color: var(--muted); font-size: .7rem; }
.guide-footer p { margin: 0; }
.guide-footer a { color: var(--gold-bright); text-underline-offset: .2em; }

@media (max-width: 42rem) {
  .guide-shell { width: min(calc(100% - 1rem), 68rem); padding-top: 1.25rem; }
  .guide-download span { display: none; }
  .guide-download { width: 2.55rem; justify-content: center; padding-inline: 0; }
  .guide-media-grid { grid-template-columns: 1fr; }
  .guide-media-grid .guide-phone img { width: min(100%, 20rem); max-height: none; margin-inline: auto; }
  .guide-columns { grid-template-columns: 1fr; }
  .guide-section { border-radius: 1.15rem; }
  .guide-section p { font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
