/* ============================================================
   WAGHL Help — shared stylesheet
   Option A: clean & white (GitBook-style body, WAGHL chrome)

   Single source of truth for every page under /help/.
   Restyling the whole portal = editing this file.
   ============================================================ */

:root{
  /* ---- Surfaces (was warm paper #F5F1E8 → now white) ---- */
  --paper:        #FFFFFF;
  --paper-warm:   #F7F8F9;   /* code blocks, callout fills, hover states */
  --paper-sunk:   #FBFCFC;   /* sidebar / rail background */

  /* ---- Ink ---- */
  --ink:          #1B1F24;   /* headings — softer than the old near-black */
  --ink-body:     #3B424D;   /* body copy */
  --ink-soft:     #656D79;   /* secondary */
  --ink-faint:    #8A929D;   /* eyebrows, meta */

  /* ---- Lines (was hard 1px near-black → now hairlines) ---- */
  --line:         #E4E7EB;
  --line-soft:    #EFF1F3;
  --line-strong:  #D2D7DE;

  /* ---- Brand accent (retained — this is what keeps it WAGHL) ---- */
  --emerald:        #0a4d3a;
  --emerald-bright: #167754;
  --emerald-tint:   rgba(10, 77, 58, 0.06);
  --emerald-tint-2: rgba(10, 77, 58, 0.10);

  /* ---- Semantic accents (muted from the old coral/lime/tangerine) ---- */
  --accent-warn:    #B45309;
  --accent-warn-bg: #FFFBEB;
  --accent-warn-br: #FDE68A;
  --accent-info:    #1D4ED8;
  --accent-info-bg: #EFF6FF;
  --accent-info-br: #BFDBFE;
  --accent-ok:      #047857;
  --accent-ok-bg:   #ECFDF5;
  --accent-ok-br:   #A7F3D0;

  --whatsapp:     #25D366;

  /* ---- Type ---- */
  --font-sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ---- Metrics ---- */
  --nav-h:      72px;
  --sb-w:       278px;
  --toc-w:      232px;
  --radius:     8px;
  --radius-lg:  12px;
}

*{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; }
html, body{
  background: var(--paper);
  color: var(--ink-body);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
/* NOTE: the old body::before paper-texture radial gradients are deliberately
   gone. GitBook is flat white; the texture is what read as "warm zine". */

img{ max-width: 100%; height: auto; }

/* ============================================================
   LAYOUT — 3 columns: sidebar | article | TOC
   ============================================================ */
.help-shell{
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--sb-w) minmax(0, 1fr) var(--toc-w);
  gap: 0;
  align-items: start;
}

/* ============================================================
   SIDEBAR — GitBook-style collapsible tree
   ============================================================ */
.hsb{
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px 20px 48px 24px;
  border-right: 1px solid var(--line);
  background: var(--paper);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.hsb::-webkit-scrollbar{ width: 8px; }
.hsb::-webkit-scrollbar-thumb{ background: var(--line-strong); border-radius: 99px; border: 2px solid var(--paper); }
.hsb::-webkit-scrollbar-track{ background: transparent; }

/* ============================================================
   SEARCH — shared by the hero box on /help/ and the compact box in the
   sidebar (which is on every page). One implementation, two sizes.
   ============================================================ */
.help-search{ position: relative; }
.help-search-input{
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 16px 54px;
  font-family: var(--font-sans);
  font-size: 15.5px;
  color: var(--ink);
  outline: none;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.help-search-input:focus{
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px var(--emerald-tint-2);
}
.help-search-input::placeholder{ color: var(--ink-faint); }
.help-search-icon{
  position: absolute; left: 20px; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-faint);
  font-size: 15px;
  pointer-events: none;
}
.help-search-shortcut{
  position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-faint);
  background: var(--paper-warm);
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid var(--line);
  pointer-events: none;
}
.help-search-hint{
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  letter-spacing: .04em;
}
.help-search-hint a{
  color: var(--emerald);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- results dropdown ---- */
.help-search-results{
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 42px -14px rgba(14,17,22,.22);
  overflow: hidden;
  z-index: 60;
  display: none;
  max-height: 60vh;
  overflow-y: auto;
}
.help-search-results.visible{ display: block; }
.help-search-result{
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
  transition: background .1s ease;
}
.help-search-result:last-child{ border-bottom: 0; }
.help-search-result:hover,
.help-search-result.kb-active{ background: var(--emerald-tint); }
.help-search-result-cat{
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--ink-faint);
  margin-bottom: 2px;
}
.help-search-result-title{ font-size: 13.5px; color: var(--ink); font-weight: 500; }
.help-search-result-title mark{
  background: rgba(37,211,102,.28);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}
.help-search-result-snippet{
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.help-search-result-snippet mark{
  background: rgba(37,211,102,.28);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}
.help-search-empty{
  padding: 16px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}
.help-search-empty a{ color: var(--emerald); text-decoration: underline; }

/* ---- sidebar variant: compact ----
   Same component, smaller. Sits above the Help Center link on every page so
   you never have to navigate back to /help/ just to search. */
.hsb-search{ margin-bottom: 10px; }
.hsb-search .help-search-input{
  padding: 8px 32px 8px 32px;
  font-size: 13px;
  border-radius: 8px;
}
.hsb-search .help-search-icon{ left: 11px; font-size: 12px; }
.hsb-search .help-search-shortcut{
  right: 8px;
  font-size: 9px;
  padding: 2px 4px;
  border-radius: 4px;
}
/* The sidebar has overflow-y:auto, which forces a clipping context on BOTH axes
   — a dropdown wider than the rail gets its right edge cut off (measured: 296px
   dropdown vs 278px rail = 38px of every result sliced away).
   So: keep the dropdown INSIDE the rail's content box. Narrower than ideal, but
   correct. Escaping the clip would need position:fixed + JS repositioning on
   every scroll/resize, which is a lot of machinery for ~40px. */
.hsb-search .help-search-results{
  left: 0;
  right: 0;
  width: auto;
  max-height: 300px;
}

.hsb-home{
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background .12s ease, color .12s ease;
}
.hsb-home:hover{ background: var(--paper-warm); }
.hsb-home:focus-visible{ outline: 2px solid var(--emerald); outline-offset: -2px; }
.hsb-home.is-current{ background: var(--emerald-tint); color: var(--emerald); }
.hsb-home-icon{
  display: grid;
  place-items: center;
  width: 16px; height: 16px;
  flex-shrink: 0;
  color: var(--ink-faint);
}
.hsb-home-icon svg{ width: 14px; height: 14px; }
.hsb-home.is-current .hsb-home-icon{ color: var(--emerald); }

.hsb-divider{
  height: 1px;
  background: var(--line);
  margin: 10px 10px 12px;
}

.hsb-cat{ margin-bottom: 2px; }
.hsb-cat-head{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  user-select: none;
  transition: background .12s ease, color .12s ease;
}
.hsb-cat-head::-webkit-details-marker{ display: none; }  /* Safari */
.hsb-cat-head:hover{ background: var(--paper-warm); }
.hsb-cat-head:focus-visible{ outline: 2px solid var(--emerald); outline-offset: -2px; }

.hsb-chevron{
  display: grid;
  place-items: center;
  width: 16px; height: 16px;
  flex-shrink: 0;
  color: var(--ink-faint);
  transition: transform .18s ease;
}
.hsb-chevron svg{ width: 13px; height: 13px; }
.hsb-cat[open] > .hsb-cat-head .hsb-chevron{ transform: rotate(90deg); }
.hsb-cat[open] > .hsb-cat-head{ color: var(--ink); }

.hsb-cat-title{ letter-spacing: -0.01em; }

.hsb-list{
  list-style: none;
  margin: 2px 0 10px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  margin-left: 17px;   /* aligns the rail under the chevron centre */
}
.hsb-list li{ margin: 0; }

.hsb-section{
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-faint);
  padding: 12px 10px 5px;
}

.hsb-link{
  display: block;
  padding: 6px 10px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.45;
  transition: color .12s ease, background .12s ease, border-color .12s ease;
}
.hsb-link:hover{ color: var(--ink); background: var(--paper-warm); }
.hsb-link.is-current{
  color: var(--emerald);
  background: var(--emerald-tint);
  border-left-color: var(--emerald);
  font-weight: 600;
}
.hsb-link:focus-visible{ outline: 2px solid var(--emerald); outline-offset: -2px; }

/* ============================================================
   ARTICLE COLUMN
   ============================================================ */
.help-main{
  min-width: 0;
  padding: 32px 56px 96px;
}

/* Breadcrumb */
.breadcrumb{
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-faint);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a{ color: var(--ink-faint); text-decoration: none; transition: color .12s; }
.breadcrumb a:hover{ color: var(--emerald); }
.breadcrumb-sep{ color: var(--line-strong); }
.breadcrumb-current{ color: var(--ink-soft); }

/* Meta line */
.article-meta{
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.article-meta-cat{
  color: var(--emerald);
  font-weight: 600;
}

/* Headings — Fraunces serif → Inter Tight sans (this is the big visual shift) */
.article-h1{
  font-family: var(--font-sans);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 14px;
}
.article-h1 em{ font-style: normal; }  /* kill the serif-italic flourish */

.article-lead{
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 68ch;
}

.article-divider{
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

/* ---- Body prose ---- */
.article-body{
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--ink-body);
  max-width: 72ch;
  /* long URLs / tokens in prose must wrap, not widen the page on mobile */
  overflow-wrap: break-word;
}

.article-body h2{
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 44px 0 14px;
  padding-top: 4px;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.article-body h3{
  font-family: var(--font-sans);
  font-size: 17.5px;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 30px 0 10px;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.article-body h2 em, .article-body h3 em{ font-style: normal; }

.article-body p{ margin: 0 0 16px; }
.article-body ul, .article-body ol{ margin: 0 0 18px; padding-left: 24px; }
.article-body li{ margin-bottom: 7px; }
.article-body li::marker{ color: var(--ink-faint); }

.article-body a{
  color: var(--emerald);
  text-decoration: underline;
  text-decoration-color: rgba(10,77,58,0.28);
  text-underline-offset: 2.5px;
  transition: text-decoration-color .12s;
}
.article-body a:hover{ text-decoration-color: var(--emerald); }

.article-body strong{ color: var(--ink); font-weight: 650; }

.article-body code{
  font-family: var(--font-mono);
  font-size: 0.865em;
  background: var(--paper-warm);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 1.5px 5px;
  color: var(--ink);
  /* Long URLs inside prose (e.g. nifty-images' media_url example) are one
     unbreakable token and will push the page wider than a phone viewport.
     Allow them to break rather than overflow. */
  overflow-wrap: anywhere;
  word-break: break-word;
}
.article-body pre{
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  overflow-x: auto;
  margin: 0 0 18px;
}
.article-body pre code{ background: none; border: 0; padding: 0; font-size: 13px; line-height: 1.6; }

.article-body img{
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  margin: 8px 0 20px;
}

.article-body blockquote{
  border-left: 3px solid var(--line-strong);
  padding-left: 16px;
  margin: 0 0 18px;
  color: var(--ink-soft);
}

/* ---- Steps ----
   NOTE: uses absolute positioning for .step-num, NOT grid.
   A .step has a variable number of children (.step-num + h3 + one or more
   p/ul/callout/table). A 2-column grid would flow the 3rd child back into
   the narrow 28px column and shred the text to one word per line.
   Absolute positioning + left padding is agnostic to child count. */
.step{
  position: relative;
  padding: 16px 18px 16px 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  margin-bottom: 10px;
  transition: border-color .14s ease;
}
.step:hover{ border-color: var(--line-strong); }
.step-num{
  position: absolute;
  top: 16px; left: 16px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--emerald-tint);
  color: var(--emerald);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}
.step h3{ margin: 0 0 6px !important; font-size: 16px !important; }
.step p:last-child, .step ul:last-child, .step ol:last-child{ margin-bottom: 0; }
.step > .callout:last-child, .step > div:last-child{ margin-bottom: 0; }

/* ---- Callouts → GitBook hint blocks ---- */
.callout{
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--accent-info-br);
  background: var(--accent-info-bg);
  border-radius: var(--radius-lg);
  margin: 0 0 20px;
}
.callout-icon{
  flex-shrink: 0;
  width: 18px;
  color: var(--accent-info);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 1px;
}
.callout-title{
  display: block;
  font-weight: 650;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 3px;
}
.callout-text{ font-size: 14px; line-height: 1.6; color: var(--ink-body); }
.callout-text p:last-child{ margin-bottom: 0; }

.callout-warn{ border-color: var(--accent-warn-br); background: var(--accent-warn-bg); }
.callout-warn .callout-icon{ color: var(--accent-warn); }
.callout-ok{ border-color: var(--accent-ok-br); background: var(--accent-ok-bg); }
.callout-ok .callout-icon{ color: var(--accent-ok); }
/* .callout-tip is used on 15 pages, .callout-note on 3 — both were lime/sky in
   the old palette; remapped to Option A's green/blue semantic accents. */
.callout-tip{ border-color: var(--accent-ok-br); background: var(--accent-ok-bg); }
.callout-tip .callout-icon{ color: var(--accent-ok); }
.callout-note{ border-color: var(--accent-info-br); background: var(--accent-info-bg); }
.callout-note .callout-icon{ color: var(--accent-info); }

/* ---- FAQ accordion (faq-registration / faq-payment / faq-messaging / faq-warmup) ---- */
.faq-list{ margin: 8px 0 32px; }
.faq-item{ border-bottom: 1px solid var(--line); }
.faq-item:first-child{ border-top: 1px solid var(--line); }
.faq-item details{ width: 100%; }
.faq-item details > summary{
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15.5px;
  font-weight: 550;
  color: var(--ink);
  line-height: 1.45;
  user-select: none;
}
.faq-item details > summary::-webkit-details-marker{ display: none; }
.faq-item details > summary:focus-visible{ outline: 2px solid var(--emerald); outline-offset: 2px; }
.faq-item details[open] .faq-q-icon{
  background: var(--emerald);
  color: #fff;
  transform: rotate(45deg);
}
.faq-q-icon{
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  font-size: 11px;
  margin-top: 1px;
  transition: background .15s, transform .2s, color .15s;
}
.faq-q-text{ flex: 1; min-width: 0; }
.faq-a{
  padding: 0 0 20px 36px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-body);
}
.faq-a p{ margin-bottom: 12px; }
.faq-a p:last-child{ margin-bottom: 0; }
.faq-a ul, .faq-a ol{ margin: 8px 0 12px; padding-left: 18px; }
.faq-a li{ margin-bottom: 6px; }
.faq-a a{
  color: var(--emerald);
  text-decoration: underline;
  text-decoration-color: rgba(10,77,58,.28);
  text-underline-offset: 2.5px;
}
.faq-a a:hover{ text-decoration-color: var(--emerald); }
.faq-a strong{ color: var(--ink); font-weight: 650; }

/* ---- Animated canvases (.flow-*, .gpt-*, .bot-*, .grp-*, .ch-*, .mode-*,
   .si-*, .pa-*, .mc-*) are BESPOKE PER PAGE and are NOT defined here.
   They stay in a per-page <style> block on the pages that use them — see
   README. Hoisting ~2,000 lines of one-page animation CSS into the shared
   sheet would penalise all 33 pages to serve one. ---- */

/* ---- Tables ---- */
.webhook-table, .article-body table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 0 20px;
  font-size: 14px;
}
.article-body th{
  background: var(--paper-warm);
  text-align: left;
  font-weight: 650;
  color: var(--ink);
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.article-body td{
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.article-body tr:last-child td{ border-bottom: 0; }
/* .webhook-url-cell holds a <code> + a copy <button> side by side.
   The flex layout here is load-bearing — without it the two sit as unaligned
   inline boxes. (I dropped it in the first pass; this is the original's rule,
   restyled.) nowrap keeps the button on the same line as the URL. */
.webhook-url-cell{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
}
.webhook-url-cell code{
  font-family: var(--font-mono);
  font-size: 12.5px;
  word-break: break-all;
}

/* ---- Copy button ----
   NOTE: .copy-btn-icon is an <svg>, so it needs width/height — NOT font-size.
   An SVG with no explicit size falls back to its intrinsic/default box (~300px)
   and shoves the label into a one-character column. */
.copy-btn{
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 5px 9px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .12s ease;
}
.copy-btn:hover{ border-color: var(--emerald); color: var(--emerald); background: var(--emerald-tint); }
.copy-btn.copied{ border-color: var(--accent-ok); color: var(--accent-ok); background: var(--accent-ok-bg); }
.copy-btn-icon{
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  fill: currentColor;
}

/* ---- Video ---- */
.video-embed{ margin: 0 0 28px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.video-embed-eyebrow{
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 9px;
}
.video-embed-frame{
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink);
}
.video-embed-caption{ font-size: 13px; color: var(--ink-faint); margin-top: 9px; }

.video-facade{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; padding: 0; margin: 0;
  cursor: pointer;
  background: var(--emerald);
  display: block;
  text-align: left;
}
.video-facade-bg{
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(22,119,84,.55), transparent 58%),
    linear-gradient(150deg, #0a4d3a 0%, #073227 100%);
}
.video-facade-logo{
  position: absolute; top: 18px; left: 20px;
  display: flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 700; font-size: 15px; letter-spacing: -0.02em;
  z-index: 2;
}
.video-facade-logo-mark{
  width: 24px; height: 24px; border-radius: 6px;
  background: #fff; color: var(--emerald);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
}
.video-facade-eyebrow{
  position: absolute; top: 21px; right: 20px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.72); z-index: 2;
}
.video-facade-eyebrow-dot{
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--whatsapp);
  box-shadow: 0 0 0 3px rgba(37,211,102,.22);
}
.video-facade-chip{
  position: absolute; left: 20px; bottom: 20px; right: 96px;
  display: flex; flex-direction: column; gap: 5px; z-index: 2;
}
.video-facade-chip-tag{
  font-family: var(--font-mono); font-size: 9.5px;
  text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.6);
}
.video-facade-title{
  color: #fff; font-size: 18px; font-weight: 650;
  letter-spacing: -0.02em; line-height: 1.3;
}
.video-facade-title em{ font-style: normal; color: #9CE5C0; }
.video-facade-duration{
  position: absolute; right: 20px; bottom: 20px;
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(255,255,255,.72);
  background: rgba(0,0,0,.28);
  padding: 3px 7px; border-radius: 4px; z-index: 2;
}
.video-facade-play{
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255,255,255,.95); color: var(--emerald);
  display: grid; place-items: center; z-index: 2;
  transition: transform .16s ease;
}
.video-facade-play svg{ width: 26px; height: 26px; margin-left: 3px; }
.video-facade:hover .video-facade-play{ transform: translate(-50%,-50%) scale(1.07); }

/* ---- Feedback ---- */
.feedback{
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin: 48px 0 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  background: var(--paper-warm);
}
.feedback-q{ font-size: 14.5px; font-weight: 600; color: var(--ink); }
.feedback-buttons{ display: flex; gap: 8px; }
.feedback-btn{
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 7px 15px;
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 500;
  color: var(--ink-soft); cursor: pointer;
  transition: all .12s ease;
}
.feedback-btn:hover{ border-color: var(--emerald); color: var(--emerald); }
.feedback-btn.selected{ border-color: var(--emerald); background: var(--emerald-tint); color: var(--emerald); font-weight: 600; }
.feedback-thanks{ display: none; font-size: 14px; color: var(--accent-ok); font-weight: 550; }
.feedback.thanks-shown .feedback-buttons,
.feedback.thanks-shown .feedback-q{ display: none; }
.feedback.thanks-shown .feedback-thanks{ display: block; }

/* ---- Related ---- */
.related-section{ margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.related-eyebrow{
  font-family: var(--font-mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--ink-faint); margin-bottom: 14px;
}
.related-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.related-card{
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 15px 17px;
  text-decoration: none;
  background: var(--paper);
  transition: border-color .14s ease, transform .14s ease, box-shadow .14s ease;
}
.related-card:hover{
  border-color: var(--emerald);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -8px rgba(10,77,58,.22);
}
.related-card-cat{
  font-family: var(--font-mono); font-size: 9.5px;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-faint);
}
.related-card-title{ font-size: 14.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }

/* ---- Edge help CTA ---- */
.edge-help{
  margin-top: 28px;
  background: var(--emerald);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  color: #fff;
}
.edge-help-text{ flex: 1; min-width: 200px; }
.edge-help-text strong{
  font-family: var(--font-sans); font-size: 16px; font-weight: 650;
  display: block; margin-bottom: 2px; color: #fff;
}
.edge-help-text span{ font-size: 13.5px; color: rgba(255,255,255,.75); }
.edge-help-cta{
  background: #fff; color: var(--emerald);
  padding: 9px 18px; border-radius: var(--radius);
  text-decoration: none; font-size: 13.5px; font-weight: 650;
  display: inline-flex; align-items: center; gap: 7px;
  transition: transform .14s ease;
}
.edge-help-cta:hover{ transform: translateY(-1px); }

/* ============================================================
   RIGHT TOC
   ============================================================ */
.htoc{
  position: sticky;
  top: var(--nav-h);
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  padding: 36px 24px 48px 8px;
  scrollbar-width: thin;
}
.article-toc-eyebrow{
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--ink-faint); margin-bottom: 12px; padding-left: 12px;
}
.article-toc-list{ list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.article-toc-list li{ margin: 0; }
.article-toc-link{
  display: block;
  padding: 5px 12px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color .12s ease, border-color .12s ease;
}
.article-toc-link:hover{ color: var(--ink); }
.article-toc-link.active{ color: var(--emerald); border-left-color: var(--emerald); font-weight: 600; }

/* ============================================================
   MOBILE SIDEBAR TOGGLE
   ============================================================ */
.hsb-toggle{
  display: none;
  align-items: center; gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 600;
  color: var(--ink); cursor: pointer;
  margin-bottom: 20px;
}
.hsb-backdrop{
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.36);
  z-index: 90;
}
.hsb-backdrop.is-open{ display: block; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px){
  .help-shell{ grid-template-columns: var(--sb-w) minmax(0, 1fr); }
  .htoc{ display: none; }
  .help-main{ padding: 32px 40px 96px; }
}

@media (max-width: 900px){
  .help-shell{ grid-template-columns: 1fr; }
  .hsb-toggle{ display: inline-flex; }
  .hsb{
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 300px;
    height: 100vh;
    z-index: 95;
    transform: translateX(-100%);
    transition: transform .22s ease;
    box-shadow: 0 0 40px rgba(0,0,0,.14);
    padding-top: 24px;
  }
  .hsb.is-open{ transform: translateX(0); }
  .help-main{ padding: 24px 20px 80px; }
  .article-h1{ font-size: 30px; }
  .related-grid{ grid-template-columns: 1fr; }
  /* NOTE: chrome responsive rules (.home-nav-links, .home-foot-grid) are NOT
     here — the chrome CSS block is appended at the END of this file, so rules
     placed here would be overridden by source order. See the chrome responsive
     section at the bottom. */
}

@media (max-width: 520px){
  .help-main{ padding: 20px 16px 72px; }
  .article-h1{ font-size: 26px; }
  .feedback{ flex-direction: column; align-items: flex-start; }
  .edge-help{ flex-direction: column; align-items: flex-start; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Print ---- */
@media print{
  .hsb, .htoc, .feedback, .edge-help, .hsb-toggle, .home-nav, .home-foot{ display: none !important; }
  .help-shell{ grid-template-columns: 1fr; }
  .help-main{ padding: 0; }
}


/* ============================================================
   SITE CHROME — nav + footer
   Lifted verbatim from the marketing pages so /help/ matches
   waghl.com exactly. Deliberately NOT restyled: Option A applies
   to the article body, not the brand chrome.
   ============================================================ */

/* ============= HOME-STYLE NAV ============= */
  .home-nav {
    --nav-bg: #f4f1ea;
    --nav-ink: #0d1f17;
    --nav-ink-soft: #2a3d33;
    --nav-muted: #6b7a72;
    --nav-line: #d8d2c2;
    --nav-emerald: #0a4d3a;
    --nav-cream: #faf7f0;
    --nav-mono: 'JetBrains Mono', monospace;
    --nav-serif: 'Fraunces', 'Times New Roman', serif;
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(244, 241, 234, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(216, 210, 194, 0.5);
    z-index: 100;
    font-family: 'Inter Tight', -apple-system, sans-serif;
  }
  .home-nav-inner { max-width: 1280px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
  .home-nav .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--nav-ink); flex-shrink: 0; }
  .home-nav .logo-mark { width: 32px; height: 32px; border-radius: 7px; background: var(--nav-ink); color: var(--nav-cream); display: grid; place-items: center; font-family: var(--nav-serif); font-weight: 700; font-size: 18px; }
  .home-nav .logo-text { font-family: 'Inter Tight', sans-serif; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: var(--nav-ink); line-height: 1; }
  .home-nav-links { display: flex; align-items: center; gap: 36px; flex: 1; justify-content: center; }
  .home-nav-links a { text-decoration: none; color: var(--nav-ink-soft); font-size: 14.5px; font-weight: 500; transition: color 0.2s; }
  .home-nav-links a:hover { color: var(--nav-emerald); }
  .home-nav-links a.active { color: var(--nav-emerald); font-weight: 600; }
  .home-nav-cta { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
  .home-nav-btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; border: 1.5px solid transparent; transition: all 0.2s; }
  .home-nav-btn-ghost { color: var(--nav-ink); border-color: var(--nav-ink); }
  .home-nav-btn-ghost:hover { background: var(--nav-ink); color: var(--nav-cream); }
  .home-nav-btn-primary { background: var(--nav-emerald); color: var(--nav-cream); border-color: var(--nav-emerald); }
  .home-nav-btn-primary:hover { background: var(--nav-ink); border-color: var(--nav-ink); transform: translateY(-1px); }
  .home-nav-dropdown { position: relative; }
  .home-nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
  .home-nav-dropdown-chevron { font-size: 11px; color: var(--nav-muted); transition: transform 0.2s; line-height: 1; }
  .home-nav-dropdown:hover .home-nav-dropdown-chevron { transform: rotate(180deg); }
  .home-nav-dropdown-menu { position: absolute; top: 100%; left: -16px; margin-top: 12px; min-width: 280px; background: white; border: 1px solid var(--nav-line); border-radius: 12px; padding: 8px; box-shadow: 0 14px 36px -10px rgba(13, 31, 23, 0.18); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease; z-index: 100; }
  .home-nav-dropdown::before { content: ''; position: absolute; top: 100%; left: -16px; right: -16px; height: 12px; }
  .home-nav-dropdown:hover .home-nav-dropdown-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .home-nav-dropdown-item { display: flex !important; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--nav-ink) !important; transition: background 0.12s; }
  .home-nav-dropdown-item:hover { background: var(--nav-bg); }
  .home-nav-dropdown-item-icon { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, rgba(10, 77, 58, 0.08), rgba(10, 77, 58, 0.03)); color: var(--nav-emerald); display: grid; place-items: center; font-size: 15px; flex-shrink: 0; }
  .home-nav-dropdown-item-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .home-nav-dropdown-item-title { font-size: 13.5px; font-weight: 600; color: var(--nav-ink); display: inline-flex; align-items: center; gap: 6px; }
  .home-nav-dropdown-item-sub { font-size: 12px; color: var(--nav-muted); font-weight: 400; line-height: 1.4; }
  .home-nav-dropdown-divider { height: 1px; background: var(--nav-line); margin: 6px 4px; }
  .home-nav-dropdown-new { background: var(--nav-emerald); color: white; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 999px; letter-spacing: 0.4px; }
  .home-nav-spacer { height: 72px; }

  
/* ============= Footer ============= */
  .home-foot {
    --foot-ink: #0d1f17;
    --foot-cream: #faf7f0;
    --foot-lime: #c8e85c;
    --foot-mono: 'JetBrains Mono', monospace;
    --foot-serif: 'Fraunces', 'Times New Roman', serif;
    background: var(--foot-ink);
    color: var(--foot-cream);
    padding: 64px 0 32px;
    font-family: 'Inter Tight', -apple-system, sans-serif;
    margin-top: 80px;
  }
  .home-foot-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
  .home-foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(250, 247, 240, 0.12); }
  .home-foot-brand .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
  .home-foot-brand .logo-text { color: var(--foot-cream); font-family: 'Inter Tight', sans-serif; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; line-height: 1; }
  .home-foot-brand .logo-mark { width: 32px; height: 32px; border-radius: 7px; background: var(--foot-cream); color: var(--foot-ink); display: grid; place-items: center; font-family: var(--foot-serif); font-weight: 700; font-size: 18px; }
  .home-foot-brand p { margin-top: 16px; color: rgba(250, 247, 240, 0.6); font-size: 14px; max-width: 320px; line-height: 1.55; }
  .home-foot-col h4 { font-family: var(--foot-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(250, 247, 240, 0.5); margin-bottom: 18px; font-weight: 500; }
  .home-foot-col ul { list-style: none; padding: 0; margin: 0; }
  .home-foot-col li { padding: 6px 0; }
  .home-foot-col a { color: rgba(250, 247, 240, 0.85); text-decoration: none; font-size: 14.5px; transition: color 0.2s; }
  .home-foot-col a:hover { color: var(--foot-lime); }
  .home-foot-bottom { padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 13px; color: rgba(250, 247, 240, 0.45); }

  

/* ============================================================
   CHROME RESPONSIVE — must be LAST in this file.

   The nav/footer CSS above is lifted verbatim from the marketing pages and
   sets `.home-nav-links { display: flex }`. In the original page these were
   overridden by a separate "Responsive" section that came after them; when I
   extracted the nav/footer blocks I did not carry that section across, so the
   desktop link row stayed laid out at mobile widths and pushed every page to
   ~446px inside a 390px viewport — horizontal overflow on all 32 pages.

   These rules restore it. They live at the END OF FILE deliberately: CSS
   source order decides, and the chrome block above would otherwise win.
   Do not move them up, and do not "fix" this with !important.
   ============================================================ */

@media (max-width: 900px){
  .home-nav-links{ display: none; }
  .home-foot-grid{ grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 520px){
  .home-foot-grid{ grid-template-columns: 1fr; }
}
