/* Guides — page-specific styles only.
 * Loaded *after* styles.css, and deliberately self-contained: it reuses the
 * site's --solid / --grad accents but declares its own neutrals so a future
 * styles.css refactor cannot silently strip the article layout.
 * No layout of the shared header/footer is touched here. */

.guide-main { padding-top: 40px; }

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 216px;
  gap: 56px;
  align-items: start;
  max-width: 1040px;
}

.guide-article { min-width: 0; max-width: 720px; }

.guide-crumb {
  font-size: 13px;
  color: #6b6b7b;
  margin-bottom: 10px;
}
.guide-crumb a { color: #6b6b7b; text-decoration: none; }
.guide-crumb a:hover { color: var(--solid, #D62976); text-decoration: underline; }
.guide-crumb span[aria-hidden] { margin: 0 6px; opacity: .5; }

.guide-article h1 {
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}

.guide-lede {
  font-size: 17px;
  line-height: 1.6;
  color: #3c3c4a;
  margin: 0 0 8px;
}

.guide-meta {
  font-size: 12.5px;
  color: #82828f;
  margin: 0 0 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid #ececf3;
}

.guide-article h2 {
  font-size: 20px;
  line-height: 1.35;
  margin: 34px 0 10px;
  letter-spacing: -0.01em;
  scroll-margin-top: 84px; /* keep the sticky header off the anchor target */
}
.guide-article h2:first-of-type { margin-top: 6px; }

.guide-article p {
  font-size: 15.5px;
  line-height: 1.72;
  color: #2c2c38;
  margin: 0 0 14px;
  overflow-wrap: anywhere;
}

.guide-article ul,
.guide-article ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.guide-article li {
  font-size: 15.5px;
  line-height: 1.72;
  color: #2c2c38;
  margin: 0 0 7px;
  overflow-wrap: anywhere;
}

.guide-steps { counter-reset: step; list-style: none; padding-left: 0; }
.guide-steps > li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 12px;
}
.guide-steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #f3eef7;
  color: var(--solid, #D62976);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-qa { margin: 0 0 16px; }
.guide-qa dt {
  font-weight: 700;
  font-size: 15px;
  color: #1a1a24;
  margin: 16px 0 4px;
}
.guide-qa dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #3c3c4a;
  overflow-wrap: anywhere;
}

.guide-article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: #f4f2f8;
  border-radius: 4px;
  padding: 1px 5px;
  overflow-wrap: anywhere;
}

.guide-callout {
  border-left: 3px solid var(--solid, #D62976);
  background: #fbf7fb;
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  margin: 0 0 18px;
}
.guide-callout p { margin: 0; font-size: 15px; }
.guide-callout--warn { border-left-color: #c47b00; background: #fdf8ee; }
.guide-callout--quiet { border-left-color: #b9b9c8; background: #f8f8fb; }

.guide-related {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid #ececf3;
}
.guide-related h2 { margin-top: 0; font-size: 17px; }
.guide-related ul { padding-left: 20px; }

.guide-cta {
  margin-top: 34px;
  padding: 22px 24px;
  border: 1px solid #ececf3;
  border-radius: 14px;
  background: #fbfbfe;
}
.guide-cta p { margin: 0 0 10px; }
.guide-cta .btn { margin: 4px 0 6px; }
.guide-cta-note { font-size: 13.5px; color: #6b6b7b; margin: 0; }

/* ── On this page ─────────────────────────────────────────────────────── */
.guide-toc {
  position: sticky;
  top: 88px;
  font-size: 13.5px;
  line-height: 1.55;
  border-left: 1px solid #ececf3;
  padding-left: 18px;
}
.guide-toc-title {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9a9aa8;
  margin: 0 0 8px;
}
.guide-toc a {
  display: block;
  color: #5b5b6b;
  text-decoration: none;
  padding: 3px 0;
}
.guide-toc a:hover { color: var(--solid, #D62976); }

/* ── Index ────────────────────────────────────────────────────────────── */
.guide-search { max-width: 520px; margin: 0 auto 40px; }
.guide-search-label {
  display: block;
  font-size: 12.5px;
  color: #6b6b7b;
  margin-bottom: 6px;
}
.guide-search input {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 15px;
  color: #1a1a24;
  background: #fff;
  border: 1px solid #dcdce6;
  border-radius: 10px;
}
.guide-search input:focus {
  outline: none;
  border-color: var(--solid, #D62976);
  box-shadow: 0 0 0 3px rgba(214, 41, 118, .12);
}
.guide-search-empty { font-size: 13.5px; color: #6b6b7b; margin: 10px 0 0; }

.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto;
}
.guide-card {
  border: 1px solid #ececf3;
  border-radius: 14px;
  padding: 22px 24px;
  background: #fff;
}
.guide-card h2 { font-size: 16.5px; margin: 0 0 4px; letter-spacing: -0.01em; }
.guide-card-sub { font-size: 13.5px; color: #6b6b7b; margin: 0 0 14px; }
.guide-card ul { list-style: none; margin: 0; padding: 0; }
.guide-card li { margin: 0 0 13px; font-size: 14.5px; line-height: 1.5; }
.guide-card li a { color: #1a1a24; font-weight: 600; text-decoration: none; }
.guide-card li a:hover { color: var(--solid, #D62976); text-decoration: underline; }
.guide-card li span { color: #6b6b7b; font-size: 13px; }

.guide-strip {
  max-width: 1000px;
  margin: 40px auto 0;
  padding: 22px 24px;
  border-radius: 14px;
  background: #fbfbfe;
  border: 1px solid #ececf3;
}
.guide-strip h2 { font-size: 16px; margin: 0 0 8px; }
.guide-strip p { font-size: 14.5px; line-height: 1.7; color: #3c3c4a; margin: 0; }

@media (max-width: 900px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .guide-toc { display: none; }
  .guide-cards { grid-template-columns: minmax(0, 1fr); }
  .guide-article { max-width: none; }
}

/* ---------------------------------------------------------------------------
   Figures (inline SVG, generated by scripts/make-guides.mjs -> figure()).
   Only concept diagrams: flows, layers, side-by-side comparisons. Deliberately
   NOT screenshots or drawn mockups of the extension UI -- a stale fake UI is
   worse than no image, and these stay true no matter how the panel evolves.
   Every SVG element is coloured through a guide-fig class so the gate can
   assert two-way class closure (a typo would otherwise ship as bare styling).
   --------------------------------------------------------------------------- */
.guide-fig {
  margin: 26px 0 30px;
  padding: 18px 20px 14px;
  background: #fff;
  border: 1px solid #ececf3;
  border-radius: 14px;
}
.guide-fig-svg { display: block; width: 100%; height: auto; }
.guide-fig text { font-family: inherit; }
.guide-fig-box { fill: #fff; stroke: #e4e4ef; stroke-width: 1.5; }
.guide-fig-num { fill: #D62976; }
.guide-fig-num-t { fill: #fff; font-size: 13px; font-weight: 700; }
.guide-fig-t1 { fill: #111827; font-size: 14px; font-weight: 650; }
.guide-fig-t1c { fill: #111827; font-size: 13.5px; font-weight: 650; text-anchor: middle; }
.guide-fig-t2 { fill: #6b6b7b; font-size: 12.5px; }
.guide-fig-t2c { fill: #6b6b7b; font-size: 12px; text-anchor: middle; }
.guide-fig-dot { fill: #D62976; }
.guide-fig-arrow { stroke: #c6c6d4; stroke-width: 1.8; fill: none; }
.guide-fig-head { fill: #c6c6d4; }
.guide-fig-chip { fill: #f5f5fa; stroke: #e4e4ef; stroke-width: 1; }
.guide-fig-chip-t { fill: #6b6b7b; font-size: 11.5px; font-weight: 600; }
.guide-fig-cap { margin: 12px 2px 0; font-size: 12.5px; line-height: 1.55; color: #6b6b7b; }

@media (max-width: 640px) {
  .guide-fig { padding: 12px 10px 8px; margin: 22px 0 26px; }
}
