/* Digital Facade / Get Found Playbook — the business-facing blog.
   Sits on top of /styles.css + /theme.css, so every EDC's brand applies
   automatically (colors, fonts, logo). Global for every skin as of
   2026-09-11 (classic / civic / split / poster all get the same article
   shape); skin-specific tweaks stay at the bottom.

   Shape of a post (both language blocks carry it):
     .crumb → .kicker → h1 → .lede → .meta (read time) → figure.hero →
     .plain ("In plain words", 3 lines) → .ai-prompt (copy-paste coach) →
     sections (h2, p, ol.steps-list, .box callouts, figure.inline) →
     .stat-card (shareable) → .guide-cta
   Standing rule: this is content, never an app. No logins, no progress. */

body.guide-page { background: var(--paper); }
a.scan-again { text-decoration: none; display: inline-block; }
.guide { max-width: 760px; margin: 0 auto; padding: 16px 20px 56px; }

.crumb {
  display: inline-block; margin: 8px 0 4px;
  color: var(--muted); font-size: 14px; text-decoration: none; font-weight: 700;
}
.crumb:hover { color: var(--primary); }

/* ---------- article head ---------- */
.guide .kicker {
  font: 700 12px/1 var(--font-body); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--primary); margin: 18px 0 12px;
}
.guide h1 { font-size: clamp(32px, 6vw, 50px); margin: 0 0 12px; max-width: 18ch; }
.guide .lede { font-size: 19px; line-height: 1.5; color: var(--muted); margin: 0 0 14px; max-width: 56ch; }
.guide .meta {
  display: flex; gap: 8px 14px; flex-wrap: wrap; align-items: center;
  margin: 0 0 20px; font: 700 13px var(--font-body); color: var(--muted);
}
.guide .meta .dot { color: color-mix(in srgb, var(--muted) 45%, transparent); }

/* hero image: fixed 16:9 box so the page never jumps while it loads */
.guide figure.hero {
  margin: 0 0 24px; border-radius: var(--radius-lg, 18px); overflow: hidden;
  aspect-ratio: 16 / 9; background: var(--mist);
}
.guide figure.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.guide figure.inline {
  margin: 26px 0; border-radius: var(--radius-lg, 18px); overflow: hidden;
  aspect-ratio: 16 / 9; background: var(--mist);
}
.guide figure.inline img { width: 100%; height: 100%; object-fit: cover; display: block; }
.guide figcaption { font-size: 13px; color: var(--muted); padding: 8px 4px 0; }

/* "In plain words" — the three-line version of the whole post */
.plain {
  border-radius: var(--radius-lg, 18px); padding: 20px 22px; margin: 0 0 22px;
  background: color-mix(in srgb, var(--primary) 7%, var(--paper));
  border: 2px solid color-mix(in srgb, var(--primary) 18%, var(--paper));
}
.plain > b {
  display: block; font: 700 12px/1 var(--font-body); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--primary); margin: 0 0 10px;
}
.plain ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.plain li { position: relative; padding-left: 28px; font-size: 17px; line-height: 1.45; color: var(--ink); }
.plain li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* per-business hello (injected by guides.js when the report deep-links
   here with ?biz=…&pts=…) */
.biz-hello {
  display: flex; gap: 14px; align-items: center; margin: 0 0 22px;
  padding: 16px 18px; border-radius: var(--radius-lg, 18px);
  background: color-mix(in srgb, var(--accent) 14%, var(--paper));
  border: 2px solid color-mix(in srgb, var(--accent) 40%, var(--paper));
  font-size: 17px; line-height: 1.45;
}
.biz-hello .wave { font-size: 26px; line-height: 1; flex: none; }
.biz-hello b { color: var(--ink); }

/* ---------- body copy ---------- */
.guide h2 { font-size: clamp(24px, 4vw, 32px); margin: 38px 0 12px; }
.guide h3 { font-size: 20px; margin: 24px 0 8px; }
.guide p, .guide li { font-size: 17px; line-height: 1.6; }
.guide p { margin: 0 0 14px; }
.guide ul:not(.plain ul):not(.guide-cards) { padding-left: 22px; display: grid; gap: 8px; margin: 10px 0 16px; }

/* "Do this" steps: numbered cards, every skin */
.guide ol.steps-list {
  list-style: none; counter-reset: step; padding-left: 0; margin: 14px 0 20px;
  display: grid; gap: 12px;
}
.guide ol.steps-list li {
  counter-increment: step; position: relative;
  background: var(--mist); border-radius: var(--radius-lg, 18px);
  padding: 16px 20px 16px 62px; font-size: 16px; line-height: 1.55; color: var(--muted);
}
.guide ol.steps-list li::before {
  content: counter(step); position: absolute; top: 16px; left: 18px;
  display: inline-grid; place-content: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--primary); color: #fff;
  font: 800 14px var(--font-body);
}
.guide ol.steps-list li b { display: block; font-size: 17.5px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.guide ol.steps-list li code {
  font: 600 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #fff; border: 1px solid color-mix(in srgb, var(--muted) 25%, transparent);
  border-radius: 6px; padding: 2px 7px; color: var(--ink); white-space: nowrap;
}

/* callouts */
.box {
  border-radius: var(--radius-lg, 18px); padding: 18px 20px; margin: 22px 0;
  border-left: 5px solid var(--primary);
  background: color-mix(in srgb, var(--primary) 7%, var(--paper));
  font-size: 16px; line-height: 1.55;
}
.box b { display: block; margin-bottom: 4px; font-size: 17px; }
.box-do { border-left-color: var(--success); background: color-mix(in srgb, var(--success) 9%, var(--paper)); }
.box-warn { border-left-color: var(--alert); background: color-mix(in srgb, var(--alert) 8%, var(--paper)); }
.box-tip { border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, var(--paper)); }

/* shareable stat / pull-quote card: every skin now */
.stat-card {
  display: flex; align-items: center; gap: 18px; margin: 30px 0 8px;
  padding: 22px 24px; border-radius: var(--radius-lg, 18px);
  background: linear-gradient(155deg, var(--primary), var(--primary-deep)); color: #fff;
}
.stat-card .stat-num {
  flex: 0 1 38%; font: var(--display-weight) clamp(24px, 5vw, 40px)/1.1 var(--font-display);
  letter-spacing: var(--display-tracking);
}
.stat-card .stat-copy { flex: 1 1 55%; display: flex; flex-direction: column; gap: 5px; }
.stat-card .stat-copy p { margin: 0; font-size: 15.5px; line-height: 1.4; color: rgba(255,255,255,0.92); }
.stat-card .stat-tag { font: 700 11px/1.3 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.72); }
@media (max-width: 480px) {
  .stat-card { flex-direction: column; align-items: flex-start; gap: 8px; }
  .stat-card .stat-num { flex: none; }
}

/* end-of-post CTA back into the scanner */
.guide-cta {
  background: linear-gradient(150deg, var(--primary), var(--primary-deep));
  border-radius: var(--radius-lg, 18px); color: #fff; padding: 28px; margin-top: 40px;
}
.guide-cta h2 { margin: 0 0 8px; color: #fff; }
.guide-cta p { color: rgba(255, 255, 255, 0.88); margin: 0 0 18px; }
.guide-cta .cta-actions { margin-top: 4px; }

/* related posts (bottom of an article) */
.related { margin-top: 34px; }
.related h2 { font-size: 22px; margin: 0 0 12px; }

/* ---------- "copy this AI prompt" coach block ---------- */
.ai-prompt {
  border-radius: var(--radius-lg, 18px); padding: 20px 22px 22px; margin: 26px 0;
  border: 2px dashed color-mix(in srgb, var(--primary) 40%, transparent);
  background: color-mix(in srgb, var(--primary) 5%, var(--paper));
}
.ai-prompt-label {
  display: flex; align-items: center; gap: 8px; margin: 0 0 6px;
  font: 700 12px/1 var(--font-body); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--primary);
}
.ai-prompt-label .ai-prompt-icon { font-size: 14px; }
.ai-prompt-how { margin: 0 0 14px; font-size: 15px; color: var(--muted); }
.ai-prompt-text {
  font-family: var(--font-body); font-size: 15px; line-height: 1.6; color: var(--ink);
  margin: 0 0 16px; padding: 14px 16px; background: #fff;
  border-radius: 12px; border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  max-height: 210px; overflow: auto;
}
.ai-prompt-text p { margin: 0 0 10px; font-size: 15px; }
.ai-prompt-text p:last-child { margin-bottom: 0; }
.ai-prompt-copy {
  display: inline-flex; align-items: center; gap: 8px; border: none;
  border-radius: var(--radius-pill); padding: 13px 22px 13px 18px; min-height: 46px;
  background: var(--primary); color: #fff; font: 700 15px var(--font-body);
  cursor: pointer; transition: transform 150ms var(--ease-out), opacity 150ms ease;
}
.ai-prompt-copy:hover { filter: brightness(1.08); }
.ai-prompt-copy:active { transform: scale(0.96); }
.ai-prompt-copy:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ai-prompt-copy .cp-icon { font-size: 16px; line-height: 1; }
.ai-prompt-copy .cp-text { position: relative; display: inline-block; min-width: 108px; height: 1.1em; text-align: left; }
.ai-prompt-copy .cp-default, .ai-prompt-copy .cp-done {
  position: absolute; inset: 0; white-space: nowrap;
  transition: opacity 180ms ease, transform 180ms var(--ease-out);
}
.ai-prompt-copy .cp-default { opacity: 1; transform: translateY(0); }
.ai-prompt-copy .cp-done { opacity: 0; transform: translateY(4px); }
.ai-prompt-copy.is-copied { background: var(--success); }
.ai-prompt-copy.is-copied .cp-default { opacity: 0; transform: translateY(-4px); }
.ai-prompt-copy.is-copied .cp-done { opacity: 1; transform: translateY(0); }
.ai-prompt-where { display: inline-flex; gap: 8px; flex-wrap: wrap; margin: 0 0 0 12px; vertical-align: middle; }
.ai-prompt-where a {
  font: 700 13px var(--font-body); color: var(--primary); text-decoration: none;
  padding: 8px 12px; border-radius: var(--radius-pill); border: 1.5px solid color-mix(in srgb, var(--primary) 35%, transparent);
}
.ai-prompt-where a:hover { background: #fff; }
@media (prefers-reduced-motion: reduce) {
  .ai-prompt-copy { transition: opacity 120ms linear; }
  .ai-prompt-copy:active { transform: none; }
  .ai-prompt-copy .cp-default, .ai-prompt-copy .cp-done { transition: opacity 120ms linear; transform: none; }
}

/* ---------- "Ask a question" box (help.js) ---------- */
.ask {
  border-radius: var(--radius-lg, 18px); padding: 22px 22px 18px; margin: 26px 0;
  background: var(--mist);
}
.ask h2, .ask h3 { margin: 0 0 6px; font-size: clamp(22px, 3.5vw, 28px); }
.ask > p { margin: 0 0 14px; font-size: 15px; color: var(--muted); }
.ask form { display: flex; gap: 10px; flex-wrap: wrap; }
.ask input {
  flex: 1 1 260px; min-height: 50px; padding: 10px 18px; border: 2px solid #fff;
  border-radius: var(--radius-pill); font: 400 17px var(--font-body); color: var(--ink);
  background: #fff;
}
.ask input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ask button { border: 0; cursor: pointer; min-height: 50px; padding: 0 22px; font-size: 15px; }
.ask .chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; }
.ask .chips button {
  min-height: 36px; padding: 6px 14px; border-radius: var(--radius-pill);
  background: #fff; color: var(--ink); font: 600 13.5px var(--font-body);
  border: 1.5px solid color-mix(in srgb, var(--muted) 30%, transparent); cursor: pointer;
}
.ask .chips button:hover { border-color: var(--primary); color: var(--primary); }
.ask-results { display: grid; gap: 10px; margin: 16px 0 0; }
.ask-results:empty { display: none; }
.ask-a {
  background: #fff; border-radius: 14px; padding: 16px 18px;
  border-left: 5px solid var(--primary);
}
.ask-a .q { display: block; font: 700 16px var(--font-body); color: var(--ink); margin: 0 0 6px; }
.ask-a .t { display: inline-block; font: 700 11px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); margin: 0 0 6px; }
.ask-a p { margin: 0 0 8px; font-size: 15.5px; line-height: 1.5; }
.ask-a a { font-weight: 700; }
.ask-none { background: #fff; border-radius: 14px; padding: 16px 18px; font-size: 15.5px; }
.ask-none .ai-prompt { margin: 12px 0 0; }

/* ---------- glossary (help.html) ---------- */
.gloss { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.gloss li { background: var(--mist); border-radius: 14px; padding: 14px 18px; }
.gloss dt, .gloss b.term { display: block; font: 700 17px var(--font-body); color: var(--ink); margin: 0 0 4px; }
.gloss p { margin: 0; font-size: 15.5px; line-height: 1.5; }
.gloss li[hidden] { display: none; }
.gloss-filter {
  width: 100%; min-height: 48px; padding: 10px 18px; border: 2px solid var(--mist);
  border-radius: var(--radius-pill); font: 400 16px var(--font-body); color: var(--ink);
}
.gloss-filter:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.faq details { border-bottom: 1px solid var(--mist); padding: 4px 0; }
.faq summary { cursor: pointer; font: 700 17px/1.4 var(--font-body); padding: 12px 0; color: var(--ink); list-style: none; display: flex; gap: 12px; align-items: flex-start; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-content: center; background: var(--primary); color: #fff; font: 700 16px/1 var(--font-body); margin-top: 1px; }
.faq details[open] summary::before { content: "–"; }
.faq details p { margin: 0 0 14px 38px; font-size: 16px; }
.faq details p a { font-weight: 700; }

/* ---------- hub (index.html) ---------- */
.guide-cards { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 560px) { .guide-cards { grid-template-columns: 1fr 1fr; } }
.gcard {
  display: grid; grid-template-rows: auto 1fr; text-decoration: none;
  background: #fff; border: 2px solid var(--mist); border-radius: var(--radius-lg, 18px);
  overflow: hidden;
  transition: border-color 150ms ease, transform 160ms var(--ease-out), box-shadow 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .gcard:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.07); }
}
.gcard:active { transform: scale(0.985); }
.gcard:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.gcard .thumb { aspect-ratio: 16 / 9; background: var(--mist); overflow: hidden; }
.gcard .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gcard .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.gcard .g-num {
  display: inline-grid; place-content: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--primary); color: #fff;
  font: 800 14px var(--font-body); margin-bottom: 6px;
}
.gcard h3 { margin: 0 0 2px; font-size: 21px; color: var(--ink); }
.gcard p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.gcard .g-time { margin-top: 8px; font: 700 12px var(--font-body); color: var(--primary); }
@media (prefers-reduced-motion: reduce) {
  .gcard, .gcard:active { transition: border-color 150ms ease; transform: none; }
}
.guide-cards.start-here { margin-top: 16px; }
.guide-intro { margin: 0 0 6px; color: var(--muted); font-size: 16px; }
.hub-section { margin-top: 40px; }
.hub-section h2 { margin: 0 0 4px; }

/* ---------- skin-specific ---------- */
/* classic (no layout class): the display font is Bebas-style condensed, so
   let the h1 run a touch larger; nothing else differs. */
body.guide-page:not([class*="layout-"]) .guide h1 { font-size: clamp(38px, 7vw, 60px); }
