/* ── Content Flow — public front-end shared stylesheet ─────────────────────
   v30A.2_patch2. Loaded by:
   - /index.html (landing content inside #login-screen)
   - /how-it-works.html
   - /guides.html
   - /guides/privacy.html
   - /getting-started.html
   - /terms.html
   - /limitations.html
   - /contact.html
   Self-contained: does NOT depend on styles.css tokens (public pages must
   render correctly whether or not the app CSS is present). Uses
   prefers-color-scheme so users get a light or dark palette based on
   their OS preference. No JavaScript required.  */

:root {
  --pub-bg:        #fbfaf7;
  --pub-surface:   #ffffff;
  --pub-elev:      #f4f2ec;
  --pub-text:      #1c1c1a;
  --pub-text-mute: #6a6a66;
  --pub-border:    #e5e3dc;
  --pub-accent:    #1c1c1a;
  --pub-serif:     'DM Serif Display', Georgia, 'Times New Roman', serif;
  --pub-sans:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                    'Helvetica Neue', Arial, sans-serif;   /* shared with app */
  --pub-radius:    6px;
  --pub-radius-lg: 10px;
  --pub-radius-primary: 8px;        /* shared with app primary components */
  --pub-amber:     #BA7517;         /* exact Content Flow amber — nav/focus/hover/callout/large */
  --pub-amber-text: #8a560f;        /* darker amber for SMALL labels (AA 5.89 on light bg) */
  --pub-shadow:    0 1px 2px rgba(0,0,0,0.04);
  --pub-header-h:  64px;
  --pub-max:       1120px;
  --pub-content:   720px;
}

/* Non-guide public pages (terms, limitations, contact, landing) keep their
   original OS-preference dark mode. Guide pages opt out via pub-body--guides
   and instead follow the app's saved theme (see the data-theme rule below). */
@media (prefers-color-scheme: dark) {
  body.pub-body:not(.pub-body--guides) {
    --pub-bg:        #171717;
    --pub-surface:   #1e1e1e;
    --pub-elev:      #262624;
    --pub-text:      #ececea;
    --pub-text-mute: #a0a09a;
    --pub-border:    #333330;
    --pub-accent:    #ececea;
    --pub-shadow:    0 1px 2px rgba(0,0,0,0.3);
  }
}

/* v30E — Guide pages follow the APP's saved theme, not the OS. A boot script
   on each guide page reads the same localStorage key the app uses
   (commsflow_ui_theme_v1) and sets data-theme on <html> before paint. These
   dark tokens mirror the app's own dark palette so a dark-mode user lands on
   a guide that matches the app they came from. Light is the :root default
   above; dark is applied only when data-theme="dark". */
html[data-theme="dark"] body.pub-body--guides {
  --pub-amber:     #d99a3f;         /* exact Content Flow amber (dark) */
  --pub-amber-text: #d99a3f;        /* dark amber already AA 7.15 on dark bg */
  --pub-bg:        #1c1a17;
  --pub-surface:   #242220;
  --pub-elev:      #242220;
  --pub-text:      #ede9e3;
  --pub-text-mute: #a89e90;
  --pub-border:    #3a3733;
  --pub-accent:    #ede9e3;
  --pub-shadow:    0 1px 2px rgba(0,0,0,0.3);
}

*, *::before, *::after { box-sizing: border-box; }

body.pub-body {
  margin: 0;
  padding: 0;
  background: var(--pub-bg);
  color: var(--pub-text);
  font-family: var(--pub-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.pub-header {
  height: var(--pub-header-h);
  background: var(--pub-bg);
  border-bottom: 1px solid var(--pub-border);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 5;
}
.pub-header-inner {
  width: 100%;
  max-width: var(--pub-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.pub-brand {
  font-family: var(--pub-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--pub-text);
  text-decoration: none;
  flex: 0 0 auto;
}
.pub-brand:hover { color: var(--pub-text); }
.pub-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}
.pub-nav-link {
  color: var(--pub-text-mute);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.01em;
  transition: color 120ms ease;
  white-space: nowrap;
}
.pub-nav-link:hover,
.pub-nav-link:focus-visible { color: var(--pub-text); outline: none; }
.pub-nav-link[aria-current="page"] { color: var(--pub-text); }
.pub-signin-btn {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius);
  background: var(--pub-surface);
  color: var(--pub-text);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--pub-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}

/* v-proof — Open Content Flow: shared PRIMARY button language (app parity).
   Solid fill + 8px radius + Inter 13/500, amber on hover/focus. Used on the
   seven static subpages instead of Sign in. Landing keeps .pub-signin-btn. */
.pub-openapp-btn {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--pub-text);
  border-radius: var(--pub-radius-primary);
  background: var(--pub-text);
  color: var(--pub-bg);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--pub-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.pub-openapp-btn:hover {
  background: var(--pub-amber);
  border-color: var(--pub-amber);
  color: #1c1a17;
}
.pub-openapp-btn:focus-visible {
  outline: 2px solid var(--pub-amber);
  outline-offset: 2px;
}

/* v-proof — shared active-navigation + focus + link-hover language (amber) */
.pub-nav-link[aria-current="page"] {
  color: var(--pub-text);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--pub-amber);
}
.pub-nav-link:focus-visible,
.pub-brand:focus-visible,
.pub-footer-link:focus-visible {
  outline: 2px solid var(--pub-amber);
  outline-offset: 2px;
  border-radius: 3px;
}
.pub-nav-link:hover { color: var(--pub-amber); }

.pub-signin-btn:hover {
  background: var(--pub-elev);
  border-color: var(--pub-text-mute);
}

/* ── Hero (landing page only) ───────────────────────────────────────────── */
.pub-hero {
  padding: 80px 24px 72px;
  background: var(--pub-bg);
}
.pub-hero-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.pub-headline {
  font-family: var(--pub-serif);
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.6px;
  line-height: 1.1;
  margin: 0 0 22px 0;
  color: var(--pub-text);
}
.pub-lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--pub-text-mute);
  max-width: 620px;
  margin: 0 auto 28px;
}
.pub-credibility {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pub-text-mute);
  margin: 0 0 32px 0;
}
.pub-credibility-sep { margin: 0 8px; opacity: 0.5; }
.pub-cta-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.pub-cta-primary {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--pub-text);
  border-radius: var(--pub-radius);
  background: var(--pub-text);
  color: var(--pub-bg);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--pub-sans);
  text-decoration: none;
  cursor: pointer;
  transition: opacity 120ms ease;
}
.pub-cta-primary:hover { opacity: 0.88; color: var(--pub-bg); }
.pub-cta-secondary {
  font-size: 13px;
  color: var(--pub-text-mute);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.pub-cta-secondary:hover {
  color: var(--pub-text);
  border-bottom-color: var(--pub-text-mute);
}

/* ── Section container ─────────────────────────────────────────────────── */
.pub-section {
  padding: 72px 24px;
}
.pub-section-alt {
  background: var(--pub-surface);
  border-top: 1px solid var(--pub-border);
  border-bottom: 1px solid var(--pub-border);
}
.pub-section-inner {
  max-width: var(--pub-max);
  margin: 0 auto;
}
.pub-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pub-text-mute);
  margin: 0 0 10px 0;
}
.pub-section-title {
  font-family: var(--pub-serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.3px;
  line-height: 1.2;
  margin: 0 0 12px 0;
  color: var(--pub-text);
}
.pub-section-intro {
  font-size: 15px;
  color: var(--pub-text-mute);
  max-width: 620px;
  margin: 0 0 40px 0;
  line-height: 1.55;
}

/* ── How-it-works numbered cards ───────────────────────────────────────── */
.pub-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 800px) {
  .pub-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}
.pub-step {
  background: var(--pub-surface);
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius-lg);
  padding: 32px 28px 30px;
}
.pub-step-num {
  font-family: var(--pub-serif);
  font-size: 36px;
  font-weight: 500;
  color: var(--pub-text-mute);
  letter-spacing: -0.3px;
  line-height: 1;
  margin: 0 0 20px 0;
  opacity: 0.7;
}
.pub-step-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--pub-text);
  margin: 0 0 10px 0;
}
.pub-step-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--pub-text-mute);
  margin: 0;
}

/* ── Privacy reassurance strip ─────────────────────────────────────────── */
.pub-strip {
  padding: 32px 24px;
  background: var(--pub-elev);
  border-top: 1px solid var(--pub-border);
  border-bottom: 1px solid var(--pub-border);
}
.pub-strip-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  font-size: 14px;
  color: var(--pub-text-mute);
  line-height: 1.55;
}
.pub-strip-link {
  color: var(--pub-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 6px;
  white-space: nowrap;
}
.pub-strip-link:hover { text-decoration-thickness: 2px; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.pub-footer {
  padding: 32px 24px;
  border-top: 1px solid var(--pub-border);
  background: var(--pub-bg);
}
.pub-footer-inner {
  max-width: var(--pub-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  font-size: 12px;
  color: var(--pub-text-mute);
}
.pub-footer-brand {
  font-family: var(--pub-serif);
  color: var(--pub-text-mute);
}
.pub-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.pub-footer-link {
  color: var(--pub-text-mute);
  text-decoration: none;
  font-size: 12px;
}
.pub-footer-link:hover { color: var(--pub-text); text-decoration: underline; text-underline-offset: 3px; }

/* ── Sub-page content wrapper ──────────────────────────────────────────── */
.pub-page {
  padding: 56px 24px 72px;
}
.pub-page-inner {
  max-width: var(--pub-content);
  margin: 0 auto;
}
.pub-page-title {
  font-family: var(--pub-serif);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.4px;
  line-height: 1.15;
  margin: 0 0 14px 0;
  color: var(--pub-text);
}
.pub-page-intro {
  font-size: 16px;
  line-height: 1.6;
  color: var(--pub-text-mute);
  margin: 0 0 36px 0;
}
.pub-section-block {
  margin: 0 0 36px 0;
}
.pub-section-block:last-child { margin-bottom: 0; }
.pub-block-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pub-text-mute);
  margin: 0 0 12px 0;
}
.pub-block-body { color: var(--pub-text); }
.pub-block-body p {
  margin: 0 0 14px 0;
  line-height: 1.65;
}
.pub-block-body p:last-child { margin-bottom: 0; }
.pub-block-body ul {
  list-style: disc;
  padding-left: 22px;
  margin: 0 0 14px 0;
}
.pub-block-body li { margin-bottom: 8px; line-height: 1.6; }
.pub-block-body li:last-child { margin-bottom: 0; }
.pub-block-body a {
  color: var(--pub-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pub-block-body a:hover { text-decoration-thickness: 2px; }

/* ── Guide card list (for /guides.html) ────────────────────────────────── */
.pub-guide-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.pub-guide-card {
  display: block;
  background: var(--pub-surface);
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius-lg);
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 120ms ease, background 120ms ease;
}
.pub-guide-card:hover {
  border-color: var(--pub-text-mute);
  background: var(--pub-elev);
}
.pub-guide-card-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--pub-text);
  margin: 0 0 6px 0;
}
.pub-guide-card-desc {
  display: block;
  font-size: 14px;
  line-height: 1.55;
  color: var(--pub-text-mute);
}

/* ── Sign-in modal ─────────────────────────────────────────────────────── */
.pub-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pub-modal[data-open="true"] { display: flex; }
.pub-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.55);
}
@media (prefers-color-scheme: dark) {
  .pub-modal-backdrop { background: rgba(0, 0, 0, 0.65); }
}
.pub-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: var(--pub-surface);
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  padding: 28px 26px 26px;
}
.pub-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--pub-radius);
  color: var(--pub-text-mute);
  cursor: pointer;
}
.pub-modal-close:hover { background: var(--pub-elev); color: var(--pub-text); }
.pub-modal-close:focus-visible {
  outline: 2px solid var(--pub-text-mute);
  outline-offset: 1px;
}
.pub-modal-close svg { width: 16px; height: 16px; }
.pub-modal-title {
  font-family: var(--pub-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.2px;
  margin: 0 0 18px 0;
  color: var(--pub-text);
}

/* v30E patch1 — Open Content Flow product action on guide/resource pages.
   Session-neutral link to / (in-page + article footer placements). */
.guide-openapp-row {
  max-width: var(--pub-max);
  margin: 0 auto;
  padding: 8px 24px 0;
}
.guide-openapp-row--article {
  padding: 0 24px 8px;
}
.guide-openapp-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--pub-text);
  text-decoration: none;
  padding-top: 8px;
}
.guide-openapp-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ══ v30E — Summarly-grade guide system ═══════════════════════════════════
   Additive only. Every selector below is namespaced under .guide-* or
   body.pub-body--guides, so no existing public page (terms, limitations,
   contact, landing) is affected. Accent panels (hero, quick answer) are
   explicitly coloured dark-on-light by design — they are NOT theme-driven,
   so they look identical whatever the OS preference. */

/* Hero band — confident dark banner at the top of hub + articles */
.guide-hero {
  background: #1c1c1a;
  color: #f4f2ec;
  padding: 64px 24px 60px;
  text-align: center;
}
/* Dark mode: page is already near-black, so give the hero a subtle lift +
   hairline so it still reads as a distinct band rather than dark-on-dark. */
html[data-theme="dark"] .pub-body--guides .guide-hero {
  background: #201e1b;
  border-bottom: 1px solid #3a3733;
}
html[data-theme="dark"] .pub-body--guides .guide-quick {
  background: #201e1b;
  border: 1px solid #3a3733;
}
.guide-hero-inner { max-width: var(--pub-content); margin: 0 auto; }
.guide-hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b7b3a8;
  margin: 0 0 18px 0;
}
.guide-hero-title {
  font-family: var(--pub-serif);
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.8px;
  line-height: 1.08;
  margin: 0 0 18px 0;
  color: #fbfaf7;
}
.guide-hero-lead {
  font-size: 18px;
  line-height: 1.6;
  color: #cfcabd;
  max-width: 560px;
  margin: 0 auto;
}
.guide-hero--article { text-align: left; padding: 48px 24px 44px; }
.guide-hero--article .guide-hero-inner { max-width: var(--pub-max); }
.guide-hero--article .guide-hero-title { font-size: 38px; max-width: 760px; }
.guide-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #cfcabd;
  text-decoration: none;
  margin-bottom: 22px;
  transition: color 120ms ease;
}
.guide-hero-back:hover { color: #fbfaf7; }
.guide-hero-back svg { width: 15px; height: 15px; }

/* Hub body — jump-to rail (optional) + category groups */
.guide-hub {
  max-width: var(--pub-max);
  margin: 0 auto;
  padding: 48px 24px 72px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}
.guide-rail { position: sticky; top: 28px; }
.guide-rail-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pub-text-mute);
  margin: 0 0 14px 0;
}
.guide-rail a {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: var(--pub-text-mute);
  text-decoration: none;
  padding: 6px 0 6px 12px;
  border-left: 2px solid var(--pub-border);
  transition: color 120ms ease, border-color 120ms ease;
}
.guide-rail a:hover { color: var(--pub-text); border-left-color: var(--pub-text-mute); }
.guide-hub-main { min-width: 0; }
.guide-category { margin-bottom: 44px; }
.guide-category:last-child { margin-bottom: 0; }
.guide-category-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pub-amber-text);
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pub-border);
}
.guide-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.guide-card {
  display: block;
  background: var(--pub-surface);
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius-primary);
  padding: 26px 28px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--pub-shadow);
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}
.guide-card:hover {
  border-color: var(--pub-amber);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}
.guide-card-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pub-amber-text);
  margin: 0 0 10px 0;
}
.guide-card-title {
  display: block;
  font-family: var(--pub-serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.3px;
  line-height: 1.2;
  color: var(--pub-text);
  margin: 0 0 10px 0;
}
.guide-card-desc {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: var(--pub-text-mute);
}

/* Article body — two columns (jump-to rail + content) */
.guide-article-wrap {
  max-width: var(--pub-max);
  margin: 0 auto;
  padding: 44px 24px 80px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}
.guide-article-col { min-width: 0; max-width: var(--pub-content); }

/* Quick Answer panel — bold dark callout at the top of an article */
.guide-quick {
  background: #1c1c1a;
  color: #ececea;
  border-radius: var(--pub-radius-lg);
  padding: 26px 28px;
  margin: 0 0 34px 0;
}
.guide-quick-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b7b3a8;
  margin: 0 0 12px 0;
}
.guide-quick p { margin: 0; font-size: 15px; line-height: 1.65; color: #e4e0d6; }

/* Article prose */
.guide-prose > p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--pub-text);
  margin: 0 0 18px 0;
}
.guide-prose h2 {
  font-family: var(--pub-serif);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.3px;
  line-height: 1.2;
  color: var(--pub-text);
  margin: 44px 0 16px 0;
}
.guide-prose h2:first-child { margin-top: 0; }
.guide-prose ul { list-style: none; padding: 0; margin: 0 0 22px 0; }
.guide-prose ul li {
  position: relative;
  padding: 0 0 0 20px;
  margin: 0 0 12px 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--pub-text);
}
.guide-prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pub-amber);
}
.guide-prose a {
  color: var(--pub-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.guide-prose a:hover { text-decoration-thickness: 2px; }

/* Callout / example box — light bordered panel inside prose */
.guide-callout {
  background: var(--pub-elev);
  border: 1px solid var(--pub-border);
  border-left: 3px solid var(--pub-amber);
  border-radius: var(--pub-radius);
  padding: 20px 22px;
  margin: 0 0 26px 0;
}
.guide-callout-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pub-amber-text);
  margin: 0 0 10px 0;
}
.guide-callout p { margin: 0 0 10px 0; font-size: 14.5px; line-height: 1.6; }
.guide-callout p:last-child { margin-bottom: 0; }
.guide-callout ul { margin-bottom: 0 !important; }

/* Related links block at the foot of an article */
.guide-related {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--pub-border);
}
.guide-related-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pub-text-mute);
  margin: 0 0 16px 0;
}
.guide-related-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
.guide-related-item {
  display: block;
  padding: 14px 18px;
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius);
  background: var(--pub-surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 120ms ease;
}
.guide-related-item:hover { border-color: var(--pub-text-mute); }
.guide-related-item strong { display: block; font-size: 14px; color: var(--pub-text); margin-bottom: 3px; }
.guide-related-item span { font-size: 13px; color: var(--pub-text-mute); }

/* ── Tablet band — hide public nav links so the wider Open Content Flow
      button fits (brand + button stay visible). v30E patch2. ──────────────── */
@media (max-width: 800px) {
  .pub-nav-link {
    display: none;
  }
}

/* ── Narrow viewport tuning ────────────────────────────────────────────── */
@media (max-width: 720px) {
  .pub-nav { gap: 0; }
  .pub-nav-link { display: none; }
  .pub-signin-btn { padding: 7px 14px; font-size: 12px; }
  .pub-hero { padding: 56px 20px 52px; }
  .pub-headline { font-size: 34px; }
  .pub-lead { font-size: 16px; }
  .pub-section { padding: 52px 20px; }
  .pub-page { padding: 40px 20px 56px; }
  .pub-page-title { font-size: 28px; }
  .pub-section-title { font-size: 26px; }
  .pub-strip-inner { text-align: left; }

  /* v30E guide system — collapse two-column layouts, drop the jump-to rail,
     scale the hero down for phones. */
  .guide-hub,
  .guide-article-wrap { grid-template-columns: 1fr; gap: 0; padding: 32px 20px 56px; }
  .guide-rail { display: none; }
  .guide-hero { padding: 48px 20px 44px; }
  .guide-hero-title { font-size: 32px; }
  .guide-hero-lead { font-size: 16px; }
  .guide-hero--article .guide-hero-title { font-size: 29px; }
  .guide-card-title { font-size: 21px; }
  .guide-prose h2 { font-size: 24px; }
}
