.guide-page .site-header { position: sticky; top: 0; background: var(--paper); }
.guide-hero { padding: 62px 0 78px; border-bottom: 1px solid var(--line); background: linear-gradient(120deg, #fff8f5, #fff0ea); }
.guide-hero-inner { max-width: 860px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 46px; color: var(--muted); font-size: 13px; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.guide-hero h1 { text-wrap: balance; max-width: 790px; margin: 0 0 24px; font-size: clamp(3.25rem, 5.5vw, 4.5rem); line-height: .97; }
.guide-lede { max-width: 680px; margin: 0; color: #4f433e; font-size: 19px; line-height: 1.62; }
.guide-byline { margin: 22px 0 0; color: var(--muted); font-size: 14px; }
.guide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 25px; margin-top: 32px; }
.guide-layout { display: grid; grid-template-columns: 210px minmax(0, 700px); gap: min(8vw, 112px); align-items: start; padding: 76px 0 110px; }
.guide-contents { position: sticky; top: 106px; padding-top: 6px; }
.guide-contents p { margin: 0 0 15px; color: var(--orange-dark); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.guide-contents ol { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.guide-contents li { border-bottom: 1px solid var(--line); }
.guide-contents a { display: block; padding: 10px 0; color: #574942; font-size: 13px; line-height: 1.35; }
.guide-contents a:hover, .guide-body a:hover { color: var(--orange-dark); }
.guide-body { min-width: 0; font-size: 17px; line-height: 1.72; }
.guide-body > p, .guide-body section > p { margin: 0 0 22px; }
.guide-body a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.guide-quick-answer { margin-bottom: 33px !important; padding: 22px 24px; border-left: 4px solid var(--orange); background: #fff0ea; color: #493a34; }
.guide-body section { margin-top: 65px; scroll-margin-top: 110px; }
.guide-body h2 { margin: 0 0 22px; font-size: clamp(2.35rem, 4vw, 3.35rem); line-height: 1; }
.guide-body h3 { margin: 40px 0 9px; font-family: var(--serif); font-size: 25px; font-weight: 400; letter-spacing: -.035em; line-height: 1.15; }
.step-label { margin: 0 0 11px !important; color: var(--orange-dark); font-size: 12px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.guide-note { margin: 31px 0 0; padding: 19px 22px; border: 1px solid var(--line); background: #fffdfb; color: #5c4d47; font-size: 15px; line-height: 1.6; }
.guide-note p { margin: 0; }
.guide-checklist {
  margin: 30px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--orange);
  background: #fff0ea;
  color: #4f433e;
}
.guide-checklist h3 { margin: 0 0 10px; font-family: var(--sans); font-size: 15px; font-weight: 800; letter-spacing: 0; line-height: 1.3; }
.guide-checklist ul { margin: 0; padding-left: 1.2em; }
.guide-checklist li + li { margin-top: 5px; }
.guide-body .guide-verification { margin-top: 34px; }
.guide-verification > h3 { margin: 0 0 12px; color: var(--ink); }
.guide-verification .guide-aside { margin: 0; }
/* The homepage FAQ links straight to #verify-pdf, which is the disclosure itself, so readers
   arriving there get the commands rather than a shut summary. This needs more room than the
   110px the surrounding sections use: that clears the sticky header alone, and here the
   heading above the disclosure has to stay visible too (~34px heading + its 12px gap). */
#verify-pdf { scroll-margin-top: 156px; }
.guide-table-wrap { margin: 31px 0 29px; overflow-x: auto; border: 1px solid var(--line); background: #fffdfb; }
.guide-table-wrap:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.guide-table-wrap table { width: 100%; min-width: 580px; border-collapse: collapse; text-align: left; font-size: 14px; line-height: 1.5; }
.guide-table-wrap th, .guide-table-wrap td { padding: 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
.guide-table-wrap thead th { background: #ffebe4; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.guide-table-wrap tbody tr:last-child th, .guide-table-wrap tbody tr:last-child td { border-bottom: 0; }
.guide-table-wrap tbody th { width: 21%; font-family: var(--serif); font-size: 19px; font-weight: 400; }
.sample-figure { margin: 37px 0 0; padding: 28px; background: #f5d9cf; }
.sample-pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px; }
.sample-pages img { display: block; width: 100%; height: auto; box-shadow: 0 16px 27px rgba(75, 37, 22, .18); }
.sample-pages p { margin: 10px 0 0; font-size: 13px; font-weight: 800; }
.sample-figure figcaption { margin-top: 23px; color: #654f46; font-size: 13px; line-height: 1.55; }
/* One page on its own, centred, instead of half of the two-page grid. */
.sample-pages-single { grid-template-columns: minmax(0, 300px); justify-content: center; }
/* Row labels here are whole needs ("A few messages to show someone"), not one-word options. */
.guide-table-needs tbody th { width: 34%; }

/* A single phone screenshot with a click indicator baked into the PNG, not the
   two-column PDF-page grid above: each shot already carries its own app
   background and status bar, so it sits directly on the page rather than inside
   a peach panel. */
.app-shot { margin: 32px 0 30px; text-align: center; }
.app-shot img { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto; border: 1px solid var(--line); box-shadow: 0 10px 18px rgba(75, 37, 22, .14); }
.app-shot figcaption { max-width: 420px; margin: 14px auto 0; color: #654f46; font-size: 13px; line-height: 1.55; }
.guide-closing { padding: 84px 0; background: var(--orange); }
.guide-closing-inner { max-width: 700px; }
.guide-closing h2 { max-width: 650px; margin: 0; font-family: var(--serif); font-size: clamp(3rem, 5.5vw, 4.7rem); font-weight: 400; letter-spacing: -.06em; line-height: .98; }
.guide-closing p:not(.eyebrow) { max-width: 615px; margin: 24px 0 0; color: #3e1608; font-size: 18px; line-height: 1.6; }
.guide-closing .text-link { color: var(--ink); }
.guide-page .footer-wrap { flex-wrap: wrap; }
.guide-page .footer-wrap p { min-width: 200px; }
@media (max-width: 800px) {
  .guide-hero { padding: 45px 0 56px; }
  .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 39px; padding: 54px 0 76px; }
  .guide-contents { position: static; padding: 20px; background: #fff0ea; }
  .guide-contents ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
}
@media (max-width: 560px) {
  .guide-hero { padding: 35px 0 44px; }
  .breadcrumb { margin-bottom: 35px; font-size: 12px; }
  .guide-hero h1 { font-size: 3.3rem; }
  .guide-lede { font-size: 17px; }
  .guide-actions { align-items: flex-start; gap: 20px; margin-top: 27px; }
  .guide-layout { padding-top: 38px; }
  .guide-contents ol, .sample-pages { grid-template-columns: 1fr; }
  .guide-contents a { padding: 9px 0; }
  .guide-body { font-size: 16px; }
  .guide-body section { margin-top: 52px; }
  .guide-body h2 { font-size: 2.45rem; }
  .guide-body h3 { margin-top: 34px; font-size: 23px; }
  .guide-quick-answer { padding: 18px; }
  .guide-checklist { padding: 18px; }
  .sample-figure { padding: 18px; }
  .sample-pages { gap: 20px; }
  .app-shot { margin: 24px 0 22px; }
  .guide-table-wrap::before { content: "Swipe to compare options →"; display: block; padding: 10px 16px 0; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .03em; }
  .guide-closing { padding: 65px 0; }
  .guide-closing p:not(.eyebrow) { font-size: 17px; }
  .guide-page .footer-wrap { gap: 14px; }
}

/* Inline identifiers (Bates numbers, file names) and the verification commands. `pre` scrolls
   inside its own box rather than widening the page: the commands are long and must not wrap,
   because a wrapped shell command is one a reader cannot copy. */
.guide-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
  background: #f4ece8;
  border-radius: 4px;
  padding: 1px 5px;
}
.guide-body pre {
  margin: 18px 0;
  padding: 14px 16px;
  background: #f4ece8;
  border-radius: 8px;
  overflow-x: auto;
}
.guide-body pre code {
  display: block;
  padding: 0;
  background: none;
  white-space: pre;
  line-height: 1.7;
}

/* Verification is a real capability but a minority need, and left inline it doubled the length of a
   step most readers just follow. `details` is native HTML, so the guide keeps its no-JS property,
   and the content stays in the DOM for search engines rather than being hidden behind script. */
.guide-aside {
  margin: 34px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdfb;
}
.guide-aside > summary {
  padding: 17px 22px;
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
}
.guide-aside > summary::-webkit-details-marker { display: none; }
.guide-aside > summary::after {
  content: "+";
  float: right;
  color: var(--orange-dark);
  font-size: 18px;
  line-height: 1;
}
.guide-aside[open] > summary::after { content: "\2013"; }
.guide-aside > summary:hover { color: var(--orange-dark); }
.guide-aside-body {
  padding: 0 22px 18px;
  font-size: 15px;
  line-height: 1.62;
  color: #5c4d47;
}
.guide-aside-body > p { margin: 0 0 16px; }
.guide-aside-body > *:last-child { margin-bottom: 0; }
.guide-aside-body pre { margin: 16px 0; }

/* Guides index: one card per article, thumbnail of real output beside the text. */
/* Same 860px column as .guide-hero-inner, so the cards line up under the heading. */
.guides-index { max-width: 860px; }
.guides-list { display: grid; gap: 22px; margin: 56px 0 96px; padding: 0; list-style: none; }
.guide-card-link { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 24px; height: 100%; padding: 24px; border: 1px solid var(--line); background: #fffdfb; color: var(--ink); text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
.guide-card-link:hover { border-color: var(--orange); transform: translateY(-2px); }
.guide-card-link:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.guide-card-thumb img { display: block; width: 100%; height: auto; border: 1px solid var(--line); box-shadow: 0 10px 22px rgba(75, 37, 22, .14); }
.guide-card-body { display: flex; flex-direction: column; gap: 10px; }
.guide-card-tag { color: var(--orange-dark); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.guide-card h2 { margin: 0; font-size: 28px; line-height: 1.1; letter-spacing: -.035em; }
.guide-card-link:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.guide-card-summary { color: #5d4f49; font-size: 15px; line-height: 1.55; }
.guide-card-meta { margin-top: auto; color: var(--muted); font-size: 13px; }
@media (max-width: 800px) {
  .guides-list { margin: 36px 0 64px; gap: 18px; }
}
@media (max-width: 560px) {
  .guide-card-link { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; padding: 18px; }
  .guide-card h2 { font-size: 23px; }
  .guide-card-summary { font-size: 14px; }
}
