/* Getting-started guide only. Keeps the existing sample pages independent. */
body.guide-story {
  --paper: #faf8f2;
  --ink: #203e33;
  --muted: #596b60;
  --green: #255b46;
  --line: #dbdfd5;
  --soft: #eaf0e5;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}

.guide-story a { text-underline-offset: .2em; }
.guide-story :is(a, summary):focus-visible { outline: 3px solid #a66e1e; outline-offset: 5px; }
.guide-story :is(h1, h2, h3, p, li, a, summary) { overflow-wrap: break-word; }
.guide-story :is(h1, h2) { text-wrap: balance; }
.guide-story :is(figure, ol, ul) { margin: 0; }
.guide-story img { display: block; max-width: 100%; }
.guide-story .site-header { padding-block: 20px; }
.guide-story .sample-banner { padding: 12px 20px; }
.guide-story .sample-banner :is(strong, span) { font-size: .875rem; }
.guide-story .top-links { font-size: .875rem; }
.guide-story .eyebrow { font-size: .875rem; letter-spacing: .1em; margin: 0 0 12px; }
.guide-story .tour-menu { max-width: 1180px; margin: auto; padding: 14px 24px 0; }
.guide-story .tour-menu > summary { cursor: pointer; width: fit-content; font-size: .875rem; font-weight: 650; padding: 5px 0; }
.guide-story .tour-menu .sample-nav { padding: 12px 0 0; }
.guide-story .tour-menu .sample-nav a { font-size: .875rem; }
.guide-story main { padding-top: 16px; }
.guide-story :is(section, article)[id] { scroll-margin-top: 24px; }

.guide-story .guide-hero {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 28px 0 48px;
}
.guide-story .guide-hero > * { min-width: 0; }
.guide-story .guide-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.625rem, 4.4vw, 3.875rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.08;
  margin: 16px 0 24px;
}
.guide-story .guide-hero .lede { font-size: 1.1875rem; line-height: 1.65; max-width: 36rem; }
.guide-story .actions { gap: 16px 22px; margin: 24px 0 0; }
.guide-story .actions > a:not(.button) { font-size: .9375rem; font-weight: 600; }
.guide-story .button { font-size: 1rem; border-radius: 10px; padding: 12px 20px; }
.guide-story .button:hover { background: #1c4837; }
.guide-story .guide-hero-photo img { width: 100%; aspect-ratio: 1.2; height: auto; object-fit: cover; border-radius: 18px; }
.guide-story :is(.guide-hero-photo, .step-photo) figcaption { font-size: .875rem; color: var(--muted); line-height: 1.5; margin-top: 10px; }

.guide-story .section-intro { max-width: 45rem; margin-bottom: 24px; }
.guide-story .section-intro h2,
.guide-story .guide-closing h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.875rem, 3.1vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.025em;
  margin: 0 0 14px;
}
.guide-story .section-intro p:last-child { color: var(--muted); margin-bottom: 0; }
.guide-story .guide-start { border: 1px solid var(--line); border-radius: 20px; background: #fff; padding: 32px; margin: 0 0 48px; }
.guide-story .start-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 28px 0; }
.guide-story .start-list li { min-width: 0; display: flex; gap: 13px; align-items: flex-start; }
.guide-story .start-number { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; background: var(--soft); border-radius: 50%; font-size: .9375rem; font-weight: 750; }
.guide-story .start-list h3 { font-size: 1.0625rem; line-height: 1.4; margin: 3px 0 8px; letter-spacing: -.01em; }
.guide-story .start-list p { font-size: 1rem; color: var(--muted); margin: 0; }
.guide-story .review-note { padding: 16px 20px; background: var(--soft); border-left: 3px solid #8a9c70; border-radius: 0 10px 10px 0; margin: 22px 0; }
.guide-story .review-note p { margin: 0; }
.guide-story .guide-detail { border-top: 1px solid var(--line); margin-top: 20px; }
.guide-story .guide-detail > summary { font: inherit; font-weight: 650; cursor: pointer; padding: 15px 0; }
.guide-story .guide-detail > summary:hover { color: #346c53; }
.guide-story .guide-detail .detail-body { padding: 0 0 4px; }
.guide-story .guide-detail p { margin: 0 0 16px; color: var(--muted); }
.guide-story .guide-detail p:last-child { margin-bottom: 12px; }
.guide-story .guide-detail ul { padding-left: 22px; margin-bottom: 16px; }
.guide-story .guide-detail li + li { margin-top: 8px; }
.guide-story .guide-detail h3 { font-size: 1.0625rem; margin: 16px 0 8px; }

.guide-story .guide-choices { margin-bottom: 40px; }
.guide-story .choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.guide-story .choice-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.guide-story .choice-card.full-planner { background: var(--soft); }
.guide-story .choice-card h3 { font-size: 1.625rem; line-height: 1.25; margin: 8px 0 14px; letter-spacing: -.025em; }
.guide-story .choice-card p { color: var(--muted); }
.guide-story .choice-card .eyebrow { color: var(--ink); }
.guide-story .choice-card > a { font-size: 1rem; font-weight: 650; }
.guide-story .choice-note { color: var(--muted); margin: 16px 0 0; }
.guide-story .guide-jumps { display: flex; flex-wrap: wrap; gap: 10px; padding: 20px 0 28px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.guide-story .guide-jumps a { background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: 9px 16px; font-size: .875rem; font-weight: 650; text-decoration: none; }
.guide-story .guide-jumps a:hover { background: var(--soft); border-color: #9baea0; }

.guide-story .guide-roadmap > .section-intro { margin-bottom: 10px; }
.guide-story .guide-step { padding: 32px 0; border-bottom: 1px solid var(--line); }
.guide-story .step-heading { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 20px; }
.guide-story .step-heading > div { min-width: 0; }
.guide-story .step-number { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; background: var(--soft); font-weight: 750; font-size: 1.0625rem; margin-top: 5px; }
.guide-story .step-heading .eyebrow { margin-bottom: 8px; }
.guide-story .step-heading h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.75rem, 2.8vw, 2.25rem); font-weight: 500; line-height: 1.2; letter-spacing: -.025em; margin: 0; }
.guide-story .step-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; gap: 36px; margin-left: 60px; }
.guide-story .step-copy { min-width: 0; }
.guide-story .step-copy > p:first-child { margin-top: 0; }
.guide-story .step-copy > p { color: var(--muted); }
.guide-story .step-copy > ul { padding-left: 22px; margin-bottom: 20px; }
.guide-story .step-copy > ul li + li { margin-top: 8px; }
.guide-story .step-link { margin: 18px 0 0; }
.guide-story .step-link a { font-weight: 650; }
.guide-story .step-photo { min-width: 0; }
.guide-story .step-photo img { width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover; border-radius: 16px; }
.guide-story .text-step .step-body { display: block; max-width: 49rem; }
.guide-story .optional-tools { background: var(--soft); border-radius: 12px; padding: 0 18px; border-top: 0; }
.guide-story .optional-tools .guide-detail { border-color: #ccd5c7; }

.guide-story .guide-connection { padding: 40px 0; }
.guide-story .connection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.guide-story .connection-grid > * { min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.guide-story .connection-grid h3 { font-size: 1.25rem; line-height: 1.3; margin: 0 0 12px; }
.guide-story .connection-grid p { color: var(--muted); }
.guide-story .connection-grid a { font-weight: 650; }
.guide-story .guide-closing { padding: 32px; background: var(--soft); border-radius: 20px; border-left: 4px solid #8a9c70; margin: 0 0 12px; }
.guide-story .guide-closing > p { max-width: 44rem; color: var(--muted); }
.guide-story footer { font-size: .875rem; margin-top: 40px; }
.guide-story .image-disclosure { font-size: .875rem; color: var(--muted); }

@media (max-width: 750px) {
  .guide-story .site-header { padding: 18px; }
  .guide-story .brand { font-size: 1.375rem; }
  .guide-story .top-links { flex-wrap: wrap; gap: 8px 16px; font-size: .875rem; }
  .guide-story :is(main, footer) { padding: 18px; }
  .guide-story .tour-menu { padding: 12px 18px 0; }
  .guide-story .sample-banner { padding: 12px 18px; }
  .guide-story .guide-hero { grid-template-columns: 1fr; padding: 12px 0 32px; gap: 24px; }
  .guide-story .guide-hero h1 { font-size: clamp(2.375rem, 8vw, 3rem); }
  .guide-story .guide-hero .lede { font-size: 1.125rem; }
  .guide-story .guide-hero-photo img { aspect-ratio: 1.6; }
  .guide-story .actions { align-items: flex-start; }
  .guide-story .guide-start { padding: 24px; margin-bottom: 32px; }
  .guide-story .start-list { grid-template-columns: 1fr; gap: 22px; }
  .guide-story :is(.choice-grid, .connection-grid) { grid-template-columns: 1fr; gap: 16px; }
  .guide-story .choice-card { padding: 24px; }
  .guide-story .guide-choices { margin-bottom: 24px; }
  .guide-story .guide-jumps { gap: 8px; padding-top: 12px; }
  .guide-story .guide-jumps a { padding: 9px 13px; }
  .guide-story .guide-step { padding: 28px 0; }
  .guide-story .step-heading { gap: 12px; }
  .guide-story .step-number { flex-basis: 36px; width: 36px; height: 36px; }
  .guide-story .step-body { grid-template-columns: 1fr; margin-left: 0; gap: 24px; }
  .guide-story .step-photo img { aspect-ratio: 1.6; }
  .guide-story .guide-connection { padding-block: 32px; }
  .guide-story .guide-closing { padding: 26px; }
}

@media (max-width: 380px) {
  .guide-story .guide-start,
  .guide-story .choice-card,
  .guide-story .connection-grid > *,
  .guide-story .guide-closing { padding: 20px; }
  .guide-story .guide-hero h1 { font-size: 2.375rem; }
  .guide-story .review-note { padding: 14px; }
  .guide-story .step-heading h2 { font-size: 1.75rem; }
  .guide-story .button { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-story *, .guide-story *::before, .guide-story *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  body.guide-story { background: #fff; color: #000; font-size: 11pt; }
  .guide-story .tour-menu, .guide-story .guide-jumps, .guide-story .actions { display: none; }
  .guide-story :is(main, footer) { padding: 8px; max-width: none; }
  .guide-story :is(.guide-hero, .start-list, .choice-grid, .step-body, .connection-grid) { display: block; }
  .guide-story .guide-hero { padding: 0 0 18px; }
  .guide-story .guide-hero h1 { font-size: 28pt; }
  .guide-story .guide-hero-photo { display: none; }
  .guide-story .step-photo img { max-width: 240px; }
  .guide-story :is(.guide-start, .choice-card, .guide-closing, .connection-grid > *) { background: #fff; padding: 16px; margin: 14px 0; border: 1px solid #aaa; break-inside: avoid; }
  .guide-story .start-list li { margin: 12px 0; }
  .guide-story .step-body { margin-left: 0; }
  .guide-story .guide-step { padding: 18px 0; }
  .guide-story .step-heading { break-after: avoid; }
  .guide-story .step-heading h2 { font-size: 20pt; }
  .guide-story .guide-detail { break-inside: auto; }
  .guide-story .guide-detail > :not(summary) { display: block !important; }
  .guide-story .guide-detail::details-content { display: block; content-visibility: visible; }
  .guide-story .guide-detail > summary { list-style: none; padding: 12px 0 8px; }
  .guide-story :is(.review-note, .optional-tools) { background: #fff; }
  .guide-story :is(p, li, a, figcaption, .image-disclosure) { color: #000; }
}
