/* The search guides, /guides/. Drawn first in Figma as "Guide page — Desktop 1280" (523:2) and
   "Guide page — Mobile 375" (523:110), on Page 1 beside the website frames, from the homepage's own
   pieces: its nav pill, its eyebrow, its primary button, the stores' badges and its footer.

   Loaded AFTER /tokens.css and /_policy.css. The policy pages' single readable column is the right
   base for something read end to end; this file adds only what a guide has and a policy does not.

   EVERY COLOUR IS A TOKEN, AND EVERY TEXT/BACKGROUND PAIR HERE IS ONE `contrastPairs` VERIFIES
   (packages/tokens/tokens.json): text, textSecondary, textMuted and accent on bg, surface and
   surfaceAlt; onAccent on accent. textFaint is 3:1 only, so no guide text uses it. Rule 7. */

html{overflow-x:hidden}
body{font-size:18px; line-height:1.68}
.wrap{max-width:752px; padding:0 16px 0}
@media (min-width:600px){ .wrap{padding:0 24px} }

/* ---------- the homepage's nav pill ---------- */
.nav{position:sticky; top:12px; z-index:50; display:flex; justify-content:center; padding:16px 16px 0}
.nav-inner{
  display:flex; align-items:center; gap:18px; width:min(620px,100%);
  background:color-mix(in srgb, var(--pn-surface-alt) 88%, transparent);
  border:1px solid var(--pn-border); border-radius:999px;
  padding:9px 9px 9px 20px; backdrop-filter:blur(14px);
}
.brand{display:flex; align-items:center; gap:11px; font-family:var(--pn-font-display); font-weight:600; font-size:19px;
  color:var(--pn-text); text-decoration:none}
.brand svg{width:27px; height:27px; flex:0 0 auto; display:block}
.brand svg path{stroke:var(--pn-accent)}
.nav-link{margin-left:auto; color:var(--pn-text-secondary); font-weight:600; font-size:14px; text-decoration:none}
.nav-link:hover{color:var(--pn-text)}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  font:inherit; font-weight:600; font-size:16.5px; line-height:1.2; border-radius:999px;
  padding:17px 30px; border:1px solid transparent; text-decoration:none;
  background:var(--pn-accent); color:var(--pn-on-accent);
}
.btn:focus-visible,.brand:focus-visible,.nav-link:focus-visible,.store-badge:focus-visible,a:focus-visible{outline:2px solid var(--pn-accent); outline-offset:3px}
.nav-inner .btn{font-size:14px; padding:11px 20px}
@media (max-width:420px){ .nav-link{display:none} .nav-inner .btn{margin-left:auto} }

/* ---------- the article ---------- */
/* Headings and footnote targets clear the sticky nav pill when a link jumps to them. */
[id]{scroll-margin-top:112px}
main{padding:40px 0 24px}
@media (min-width:600px){ main{padding-top:60px} }
.crumbs{font-size:14px; color:var(--pn-text-muted); margin:0 0 26px}
.crumbs ol{list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:4px 0}
.crumbs li{margin:0; color:var(--pn-text-muted)}
.crumbs li + li::before{content:"›"; margin:0 8px; color:var(--pn-text-muted)}
.crumbs a{color:var(--pn-text-muted); text-decoration:none}
.crumbs a:hover{color:var(--pn-text); text-decoration:underline}
.eyebrow{
  display:inline-block; font-size:11.5px; font-weight:600; letter-spacing:.15em; line-height:1.3;
  text-transform:uppercase; color:var(--pn-accent);
  background:var(--pn-surface-alt); border:1px solid var(--pn-border);
  border-radius:999px; padding:8px 18px; margin:0 0 18px;
}
h1{font-size:clamp(34px,6.2vw,52px); line-height:1.1; letter-spacing:-.018em; text-wrap:balance; margin:0 0 14px}
h2{font-size:clamp(24px,3.4vw,30px); line-height:1.25; letter-spacing:-.01em; margin:52px 0 12px; text-wrap:balance}
h3{font-size:19px; line-height:1.35; color:var(--pn-text); margin:0 0 4px}
p{margin:0 0 16px}
.meta{font-size:14px; margin:0 0 28px}

.answer{
  background:var(--pn-surface); border-left:4px solid var(--pn-accent);
  border-radius:var(--pn-radius-card); padding:20px 22px; margin:0 0 28px;
}
@media (min-width:600px){ .answer{padding:22px 26px} }
.label{display:block; font-size:11.5px; font-weight:600; letter-spacing:.15em; text-transform:uppercase; color:var(--pn-accent); margin:0 0 8px}
.answer p{color:var(--pn-text); font-size:19px; line-height:1.6; margin:0}
@media (max-width:420px){ .answer p{font-size:17.5px} }

.toc{border:1px solid var(--pn-border); border-radius:var(--pn-radius-card); padding:16px 22px; margin:0 0 8px}
.toc .label{margin-bottom:6px}
.toc ul{margin:0; padding-left:20px}
.toc li{margin:4px 0; font-size:16px}

/* Numbered steps: the number is the list's own, so a screen reader reads it once. */
.steps{list-style:none; counter-reset:step; padding:0; margin:20px 0 8px}
.steps > li{counter-increment:step; position:relative; padding-left:54px; margin:0 0 24px}
.steps > li::before{
  content:counter(step); position:absolute; left:0; top:-2px; width:36px; height:36px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--pn-font-display); font-weight:600; font-size:17px; color:var(--pn-accent);
  background:var(--pn-surface-alt); border:1px solid var(--pn-border);
}
.steps p{margin:0 0 8px}
.steps p:last-child{margin-bottom:0}
@media (max-width:420px){ .steps > li{padding-left:48px} }

sup a{text-decoration:none; font-weight:600; font-size:.8em; padding:0 1px}

.callout{background:var(--pn-surface); border:1px solid var(--pn-border); border-left:1px solid var(--pn-border); border-radius:var(--pn-radius-card); padding:18px 22px; margin:36px 0 0}
.callout p{font-size:16px; margin:0 0 6px}
.callout p:last-child{margin:0}

.faq h3{font-family:var(--pn-font-display); font-weight:600; font-size:20px; line-height:1.3; margin:0 0 8px}
.faq > div{border-top:1px solid var(--pn-border); padding:20px 0 6px}

/* ---------- how Post Nights plans it ---------- */
.app{
  background:var(--pn-surface-alt); border:1px solid var(--pn-border); border-radius:var(--pn-radius-banner);
  padding:24px 20px; margin:56px 0 0;
}
@media (min-width:600px){ .app{padding:32px} }
.app h2{margin:0 0 12px}
.app p,.app li{color:var(--pn-text-secondary)}
.app ul{margin:0 0 16px}
.app .honest{font-size:15px; color:var(--pn-text-muted)}
.cta-row{display:flex; flex-wrap:wrap; align-items:center; gap:14px; margin:20px 0 12px}
.store-badge{display:inline-flex; border-radius:8px}
.store-badge img{display:block; height:48px; width:auto}
.micro{font-size:14px; color:var(--pn-text-muted); margin:0}

/* ---------- more guides ---------- */
.related{display:grid; grid-template-columns:1fr; gap:16px; margin-top:16px}
@media (min-width:600px){ .related{grid-template-columns:1fr 1fr} }
.card{display:block; background:var(--pn-surface); border:1px solid var(--pn-border); border-radius:var(--pn-radius-card); padding:20px 22px; text-decoration:none}
.card:hover{border-color:var(--pn-border-strong)}
.card .label{margin-bottom:6px}
.card strong{display:block; font-family:var(--pn-font-display); font-weight:600; font-size:20px; line-height:1.3; color:var(--pn-text); margin-bottom:6px}
.card span.line{display:block; font-size:15px; line-height:1.55; color:var(--pn-text-secondary)}

.sources{padding-left:22px; font-size:15px; line-height:1.55}
.sources li{margin:0 0 12px; color:var(--pn-text-secondary); overflow-wrap:anywhere}

/* ---------- the guides index ---------- */
.index-list{display:grid; gap:16px; margin-top:28px}

/* ---------- the homepage's footer, as a column ---------- */
.site-foot{max-width:752px; margin:56px auto 0; padding:36px 16px 56px; border-top:1px solid var(--pn-border)}
@media (min-width:600px){ .site-foot{padding:40px 24px 64px} }
.site-foot p{font-size:14.5px; color:var(--pn-text-muted); line-height:1.62; margin:0 0 16px}
.site-foot p strong{color:var(--pn-text-muted)}
.site-foot .policies a{color:var(--pn-accent); text-decoration:none; font-weight:600}
.site-foot .policies a:hover{text-decoration:underline}
.site-foot .trader{font-size:13px; line-height:1.6}
.site-foot .trader a{color:var(--pn-text-muted)}
footer{margin:0; padding:0; border:0}
