/* The guide hub and guide pages. They share the landing page's header, grid and meadow footer. */
.guides-page {
  --guide-ink: #090909;
  --guide-linen: #f7f6ee;
  --guide-forest: #0a4d2c;
  --guide-leaf: #dbff65;
  --guide-evergreen: #007c55;
  --guide-line: #d8dcd7;
  --guide-line-soft: #e5e5e5;
  --guide-muted: #595e5b;
  --guide-body: clamp(21px, calc(1.5vw + 2px), 24px);
}

.guides-skip { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 12px 16px; background: var(--guide-leaf); color: var(--guide-ink); border-radius: 6px; font: 12px/1.4 var(--mono); transform: translateY(-200%); }
.guides-skip:focus { transform: none; }
.guides-page main a:focus-visible { outline: 2px solid var(--guide-evergreen); outline-offset: 3px; }

.guides-main { padding-block: clamp(128px, 12vw, 176px) clamp(56px, 7vw, 100px); }
.guide-document { width: min(100%, calc(8 * var(--meadow-grid))); margin-inline: auto; }
.guide-hub { width: min(100%, calc(10 * var(--meadow-grid))); }

.guide-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 32px; padding: 0; list-style: none; color: var(--guide-muted); font: 12px/1.6 var(--mono); }
.guide-crumbs li { min-width: 0; overflow-wrap: anywhere; }
.guide-crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--guide-muted); }
.guide-crumbs a { color: var(--guide-forest); text-decoration: underline; text-underline-offset: 3px; }

.guide-tag { display: inline-flex; align-items: center; margin: 0 0 22px; padding: 8px 14px; border: 1px solid var(--guide-line-soft); border-radius: 999px; background: var(--guide-linen); color: var(--guide-ink); font: 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.guide-intro h1 { max-width: 18ch; margin: 0; font-size: clamp(48px, 6vw, 84px); font-weight: 500; line-height: 1; letter-spacing: var(--title-tracking); text-wrap: balance; }
.guide-summary { max-width: 40ch; margin: 24px 0 0; color: var(--guide-muted); font-size: clamp(23px, calc(1.8vw + 2px), 28px); line-height: 1.3; text-wrap: pretty; }

.guide-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.guide-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border: 1px solid var(--guide-ink); border-radius: 999px; background: #fff; color: var(--guide-ink); font: 13px/1.2 var(--mono); text-align: center; text-decoration: none; transition: background-color .2s ease-out, border-color .2s ease-out, color .2s ease-out; }
.guide-button:hover { background: var(--guide-linen); }
.guide-button-dark { background: var(--guide-ink); color: #fff; }
.guide-button-dark:hover { background: #2b2b2b; }

/* A guide: lead, numbered steps and sources on one Daylight sheet. */
.guide-body { margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 4vw, 56px); border: 1px solid var(--guide-line); border-radius: 8px; background: rgb(255 255 255 / 95%); }
.guide-lead { margin: 0 0 40px; padding-bottom: 36px; border-bottom: 1px solid var(--guide-line-soft); color: var(--guide-ink); font-size: clamp(24px, calc(1.9vw + 2px), 30px); line-height: 1.3; text-wrap: pretty; }
.guide-steps { margin: 0; padding: 0; list-style: none; }
.guide-step + .guide-step { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--guide-line-soft); }
.guide-step h2 { margin: 0 0 14px; font-size: clamp(30px, calc(2.4vw + 2px), 40px); font-weight: 500; line-height: 1.06; letter-spacing: var(--title-tracking); text-wrap: balance; }
.guide-step-number { display: block; margin-bottom: 14px; color: var(--guide-evergreen); font: 13px/1 var(--mono); letter-spacing: 0; }
.guide-step p, .guide-next p { max-width: 62ch; margin: 0; color: var(--guide-muted); font-size: var(--guide-body); line-height: 1.4; text-wrap: pretty; }

.guide-sources { margin-top: 48px; padding: clamp(20px, 3vw, 32px); border-radius: 8px; background: var(--guide-linen); }
.guide-sources h2 { margin: 0; font-size: clamp(28px, calc(2vw + 2px), 34px); font-weight: 500; line-height: 1.1; }
.guide-reviewed { margin: 8px 0 18px; color: var(--guide-muted); font: 12px/1.6 var(--mono); }
.guide-sources ul { margin: 0; padding: 0; list-style: none; }
.guide-sources li { padding: 12px 0; border-top: 1px solid var(--guide-line); font-size: var(--guide-body); line-height: 1.35; }
.guide-sources a { color: var(--guide-forest); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

.guide-next { margin-top: clamp(48px, 6vw, 80px); }
.guide-next h2, .guide-hub-section > h2 { margin: 0 0 16px; font-size: clamp(34px, calc(3vw + 2px), 48px); font-weight: 500; line-height: 1.04; letter-spacing: var(--title-tracking); text-wrap: balance; }
.guide-next .guide-actions { margin-top: 24px; }

/* The hub. */
.guide-hub-section { margin-top: clamp(64px, 8vw, 104px); }
.guide-hub-section > h2 { margin-bottom: 24px; }
.guide-sequence, .guide-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.guide-sequence { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-sequence-item { min-width: 0; padding: 28px; border: 1px solid var(--guide-line-soft); border-radius: 8px; background: var(--guide-linen); }
.guide-sequence-step { margin: 0 0 28px; color: var(--guide-evergreen); font: 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.guide-sequence-item h3, .guide-card h3 { margin: 0 0 12px; font-size: clamp(27px, calc(1.9vw + 2px), 32px); font-weight: 500; line-height: 1.08; text-wrap: balance; }
.guide-sequence-item p:last-child, .guide-card p { margin: 0; color: var(--guide-muted); font-size: clamp(20px, calc(1.3vw + 2px), 22px); line-height: 1.4; text-wrap: pretty; }

.guide-card { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 220px; padding: 28px; border: 1px solid var(--guide-line); border-radius: 8px; background: #fff; transition: border-color .2s ease-out, background-color .2s ease-out; }
.guide-card:hover { border-color: var(--guide-ink); }
.guide-card h3 a { color: inherit; text-decoration: none; }
.guide-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.guide-card h3 a:focus-visible { outline: none; }
.guide-card:has(a:focus-visible) { outline: 2px solid var(--guide-evergreen); outline-offset: 3px; }
.guide-card-more { margin-top: auto; padding-top: 24px; color: var(--guide-forest); font: 12px/1 var(--mono); }
.guide-card-more::after { content: " →"; }
.guide-card:hover .guide-card-more { text-decoration: underline; text-underline-offset: 3px; }

.guide-inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: clamp(48px, 6vw, 72px); padding: 24px 28px; border: 1px solid var(--guide-line); border-radius: 8px; background: #fff; }
.guide-inline-cta p { margin: 0; color: var(--guide-ink); font-size: var(--guide-body); line-height: 1.3; }

/* The closing call to action, the page's one Forest Shade block. */
.guide-cta { margin-top: clamp(64px, 8vw, 112px); padding: clamp(32px, 5vw, 72px); background: var(--guide-forest); color: #fff; }
.guide-cta-lead { max-width: 44ch; margin: 0 0 18px; color: var(--guide-linen); font-size: var(--guide-body); line-height: 1.35; }
.guide-cta h2 { max-width: 20ch; margin: 0; color: #fff; font-size: clamp(38px, calc(4vw + 2px), 60px); font-weight: 500; line-height: 1.02; letter-spacing: var(--title-tracking); text-wrap: balance; }
.guide-cta .guide-button-leaf { border-color: var(--guide-leaf); background: var(--guide-leaf); color: var(--guide-ink); }
.guide-cta .guide-button-leaf:hover { border-color: #fff; background: #fff; }
.guide-cta .guide-button-ghost { border-color: rgb(255 255 255 / 70%); background: transparent; color: #fff; }
.guide-cta .guide-button-ghost:hover { border-color: #fff; background: rgb(255 255 255 / 10%); }
.guide-cta a:focus-visible { outline-color: var(--guide-leaf); }

@media (max-width: 1000px) {
  .guide-sequence { grid-template-columns: 1fr; }
  .guide-sequence-step { margin-bottom: 16px; }
}
@media (max-width: 760px) {
  .guide-list { grid-template-columns: 1fr; }
  .guide-card { min-height: 0; }
}
@media (max-width: 599px) {
  .guides-page .nav-wrap { top: max(12px, env(safe-area-inset-top)); bottom: auto; }
  .guides-page .nav-wrap #site-navigation { top: calc(100% + 8px); bottom: auto; }
  .guides-main { padding-top: 104px; }
  .guide-crumbs ol { margin-bottom: 24px; }
  .guide-body { padding: 24px 20px; }
  .guide-lead { margin-bottom: 32px; padding-bottom: 28px; }
  .guide-step + .guide-step { margin-top: 28px; padding-top: 28px; }
  .guide-sequence-item, .guide-card { padding: 22px 20px; }
  .guide-inline-cta { padding: 22px 20px; }
  .guide-cta { padding: 32px 20px; }
  .guide-actions .guide-button { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-button, .guide-card { transition: none; }
}
