/* ============================================================
   p.css: shared stylesheet for generated pages (guides and the hub).

   The landing page keeps its own inline CSS; it is one hand-tuned
   document and inlining is correct there. Generated pages share
   this file instead, so the browser caches it once across all of
   them and a design change is one edit rather than 100.

   Same brand system as the home page (approved 2026-11-12): white
   ground, ink type, one orange (#ff4d00) used in whole shapes, one
   tile grey. Instrument Sans for headings, buttons and labels,
   Hanken Grotesk for running text. Sentence case, no capital or
   monospace labels. Square corners, no shadows, 2px ink rules.
   ============================================================ */
:root{
  --ground:#ffffff;
  --ink:#0b0b0b;
  --orange:#ff4d00;
  --tile:#f1efec;
  --text-muted:#3d3a37;
  --rule-soft:#d9d5cf;
  --orange-ink:#b83600;   /* orange for small text and links on white (AA) */
  --on-ink:#ffffff;
  --font-display:"Instrument Sans","Helvetica Neue",Arial,sans-serif;
  --font-text:"Hanken Grotesk",system-ui,Arial,sans-serif;
  --rule:2px;
  --gutter:clamp(16px,4vw,40px);
  --wide:calc(1240px + 2 * var(--gutter));
}
*{margin:0;padding:0;box-sizing:border-box;border-radius:0}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

body{
  font-family:var(--font-text);
  background:var(--ground);
  color:var(--ink);
  font-size:1.125rem;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
::selection{background:var(--orange);color:var(--ink)}

.skip{position:absolute;left:-9999px;top:0;background:var(--ink);
      color:var(--on-ink);padding:.6rem 1rem;z-index:99}
.skip:focus{left:0}

.wrap{max-width:var(--wide);margin:0 auto;padding-inline:var(--gutter)}
/* The article column: about 720px of text, 60 to 75 characters a line. */
.wrap.narrow{max-width:calc(720px + 2 * var(--gutter))}

h1,h2,h3{font-family:var(--font-display);font-weight:600;color:var(--ink);text-wrap:balance}
/* Deliberately smaller than the landing page's hero h1. On these
   pages the answer paragraph underneath is the thing doing the
   work: it is what a scanner reads and what an AI engine is most
   likely to lift, so the headline must not push it below the fold. */
h1{font-size:clamp(36px,4.6vw,56px);line-height:1.02;letter-spacing:-.04em;max-width:22ch;margin-bottom:1rem}
h2{font-size:clamp(26px,2.8vw,32px);line-height:1.1;letter-spacing:-.03em;margin-bottom:1rem;max-width:26ch}
a{color:var(--orange-ink);text-underline-offset:3px}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:var(--rule) solid var(--orange-ink);outline-offset:3px}

/* Sentence-case label. Replaces the old letter-spaced mono capitals. */
.label{font-family:var(--font-display);font-size:15px;line-height:1.2;font-weight:700;letter-spacing:0;color:var(--text-muted)}
.eyebrow{display:block;margin-bottom:.9rem}

/* ---------- nav: same lockup as the home page ---------- */
.nav{position:sticky;top:0;z-index:50;background:var(--ground);
     border-bottom:var(--rule) solid var(--ink)}
.nav-inner{display:flex;align-items:center;justify-content:space-between;
           min-height:70px;padding-block:10px;gap:1rem}
.logo{display:inline-flex;align-items:center;gap:.4em;text-transform:lowercase;white-space:nowrap;font-family:var(--font-display);font-weight:700;
      letter-spacing:-.03em;font-size:1.5rem;line-height:1;color:var(--ink);text-decoration:none}
.logo::before{content:"";width:.96em;height:.96em;flex:none;background:linear-gradient(var(--orange),var(--orange)) 100% 100%/62.5% 62.5% no-repeat,linear-gradient(currentColor,currentColor) 0 0/62.5% 31.25% no-repeat,linear-gradient(currentColor,currentColor) 0 0/31.25% 62.5% no-repeat}
.nav-right{display:flex;align-items:center;gap:1.25rem}
.nav-right .btn{white-space:nowrap}
.nav-link{color:var(--ink);font-family:var(--font-display);font-weight:600;text-decoration:none;font-size:1rem}
.nav-link:hover{text-decoration:underline;text-underline-offset:4px}
@media (max-width:900px){ .nav-inner{min-height:62px} .logo{font-size:1.25rem} }
@media (max-width:400px){ .nav-right{gap:.75rem} .logo{font-size:1.1rem} }

/* ---------- buttons: ink, square ---------- */
.btn{
  display:inline-block;cursor:pointer;
  font-family:var(--font-display);font-weight:700;font-size:1rem;line-height:1;
  text-decoration:none;background:var(--ink);color:var(--on-ink);
  padding:16px 24px;border:0;
}
.btn:hover{outline:var(--rule) solid var(--ink);outline-offset:2px}
.btn-sm{padding:14px 18px;font-size:1rem}

/* ---------- page body ----------
   .answer is the front-loaded answer paragraph. It sits on a grey
   tile under a 2px ink rule, because it is doing the most work on
   the page: it is what a reader scans and what an AI engine is most
   likely to lift. */
.page-head{padding-block:clamp(2.5rem,6vw,4rem) 0}
.answer{
  font-size:clamp(19px,1.8vw,20px);line-height:1.5;
  background:var(--tile);border-top:var(--rule) solid var(--ink);
  padding:20px 24px 24px;margin-bottom:.5rem;
}

article section{padding-block:clamp(2.5rem,5vw,3.5rem)}
article section + section{border-top:1px solid var(--rule-soft)}
article p + p{margin-top:1rem}

.steps{margin-top:1.1rem;padding-left:1.2rem;display:grid;gap:.7rem}
.steps li{padding-left:.2rem}
.steps li::marker{font-family:var(--font-display);font-weight:700}
.steps strong{font-weight:700}

details{border-top:1px solid var(--rule-soft);padding-block:.9rem}
details:first-of-type{border-top:var(--rule) solid var(--ink)}
summary{cursor:pointer;font-family:var(--font-display);font-weight:600;font-size:1.25rem;line-height:1.3;list-style-position:outside}
summary::marker{color:var(--ink)}
details p{margin-top:.6rem}

/* ---------- closing CTA: a grey tile ---------- */
.cta{background:var(--tile);
     padding:clamp(1.6rem,4vw,2.4rem)!important;
     margin-block:clamp(2rem,5vw,3rem);border-top:0!important}
.cta p{margin-bottom:1.4rem;max-width:52ch}

/* ---------- footer ---------- */
.foot{padding-block:2rem;font-size:15px;color:var(--text-muted)}
.foot-inner{border-top:var(--rule) solid var(--ink);padding-top:1.5rem;display:flex;flex-wrap:wrap;gap:1rem;align-items:center;justify-content:space-between}
.foot a{color:var(--ink)}
.foot .logo{font-size:1.15rem}

/* ---------- related pages ----------
   Internal links are how a new page gets discovered and how authority
   moves between them. Generated from the manifest. */
.related{border-top:var(--rule) solid var(--ink)!important}
.related h2{font-size:clamp(22px,2vw,26px);margin-bottom:.9rem}
.related-list{list-style:none;padding:0;display:grid;gap:.55rem}
.related-list a{text-decoration:none;font-family:var(--font-display);font-weight:600;font-size:1.125rem;color:var(--ink);line-height:1.4}
.related-list a:hover{text-decoration:underline;text-underline-offset:4px}

/* ---------- breadcrumbs ---------- */
.crumbs{padding-top:1.4rem;font-size:15px;color:var(--text-muted)}
.crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:.35rem}
.crumbs li + li::before{content:"/";margin-right:.35rem;color:var(--text-muted)}
.crumbs a{color:var(--text-muted)}
.crumbs + .page-head{padding-top:clamp(1.2rem,3vw,2rem)}

/* ---------- guides hub: Squares ----------
   Each guide is a square tile; the grid leaves its ragged edge. */
main > .wrap > section{padding-block:clamp(1.6rem,4vw,2.4rem)}
main > .wrap > section + section{border-top:1px solid var(--rule-soft)}
.hub .page-head .answer{max-width:760px}
.hub-list{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.hub-list a{display:flex;align-items:flex-end;height:100%;min-height:240px;padding:24px;background:var(--tile);color:var(--ink);
  font-family:var(--font-display);font-weight:600;font-size:20px;line-height:1.25;letter-spacing:-.015em;text-decoration:none}
.hub-list a:hover{outline:var(--rule) solid var(--ink);outline-offset:-2px}
.hub-list li:nth-child(5n+1) a{background:var(--ground);outline:var(--rule) solid var(--ink);outline-offset:-2px}
@media (max-width:1000px){ .hub-list{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:620px){ .hub-list{grid-template-columns:1fr} .hub-list a{min-height:120px;font-size:19px;padding:20px} }
.hub .cta{max-width:760px}
@media (max-width:620px){ .answer{padding:16px 18px 18px} }

/* ---------- call link ----------
   Secondary to the kit button on purpose: plain text, no second button. */
.cta .call-link{margin:1rem 0 0;font-size:1rem}
.cta .call-link a{color:var(--ink);font-family:var(--font-display);font-weight:600;text-underline-offset:4px}

/* ---------- sources ---------- */
.sources ul{list-style:none;display:grid;gap:.45rem;font-size:15px}
.sources a{color:var(--text-muted)}
.sources .checked{color:var(--text-muted);font-size:15px}

/* ---------- copyable files ---------- */
pre.code{background:var(--tile);border-top:var(--rule) solid var(--ink);
  padding:1rem 1.1rem;overflow-x:auto;margin-top:1rem;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:15px;line-height:1.55;white-space:pre}

/* ---------- updated date ----------
   Shown, not hidden in schema: a reader and an AI engine both see how
   fresh the page is. Only meaningful because lastmod is set by hand. */
.updated{color:var(--text-muted);margin:-.2rem 0 1.1rem;font-size:15px}
figure.shot{margin:1.6rem 0}
figure.shot img{display:block;max-width:100%;height:auto;border:var(--rule) solid var(--ink)}
figure.shot figcaption{margin-top:.5rem;font-size:15px;color:var(--text-muted)}

/* ---------- kit popup (kit-modal.js): the home page's kit dialog, on guides ---------- */
.kit-modal{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:1rem}
.kit-modal[hidden]{display:none}
.kit-modal-backdrop{position:absolute;inset:0;background:color-mix(in srgb, var(--ink) 82%, transparent)}
.kit-modal-card{position:relative;background:var(--ground);color:var(--ink);border:var(--rule) solid var(--ink);
  width:min(480px,100%);max-height:92vh;overflow:auto;padding:clamp(1.5rem,4vw,2.2rem);text-align:left}
.kit-modal-card h3{font-size:1.6rem;letter-spacing:-.03em;margin-bottom:1.2rem;padding-right:2rem}
.kit-modal-sub{color:var(--text-muted);margin:-.6rem 0 1.3rem}
.kit-modal-x{position:absolute;top:.4rem;right:.4rem;display:flex;align-items:center;justify-content:center;
  min-width:44px;min-height:44px;background:none;border:0;cursor:pointer;font-size:1.35rem;line-height:1;color:var(--text-muted);padding:.5rem}
.kit-modal-x:hover{color:var(--ink)}
.kit-field{display:block;margin-bottom:1rem}
.kit-field>span{display:block;font-family:var(--font-display);font-size:15px;font-weight:700;color:var(--ink);margin-bottom:.4rem}
.kit-field input{width:100%;font:inherit;color:var(--ink);background:var(--ground);
  border:1px solid var(--text-muted);padding:.7rem .8rem;border-radius:0}
.kit-req{display:inline;color:var(--orange-ink);margin-left:.35em}
.kit-field input:focus{outline:var(--rule) solid var(--ink);outline-offset:0}
.kit-modal .btn{width:100%;text-align:center}
.kit-note{margin-top:.9rem;font-size:15px;color:var(--text-muted)}
.kit-hp{position:absolute;left:-9999px;opacity:0;height:0;overflow:hidden}
.kit-modal-card.has-scheduler{width:min(760px,100%);height:92vh;display:flex;flex-direction:column;overflow:hidden}
.kit-modal-card.has-scheduler .kit-modal-success{display:flex;flex-direction:column;min-height:0;flex:1}
.kit-scheduler{flex:1;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch}
.kit-scheduler .tidycal-embed{margin-top:1.2rem;min-height:460px}
