/* ============================================================
   DRA. SILVIA RODRIGUES — site styles (shared)
   Sistema editorial-médico: petróleo + creme + terracota
   ============================================================ */

:root {
  /* Default palette — Petróleo + Terracota (editorial-médico) */
  --ink:        #0F2A2A;
  --ink-2:      #1B3A3A;
  --ink-soft:   #2E4848;
  --clay:       #C2543A;
  --clay-deep:  #9A3F2A;
  --cream:      #F4EFE6;
  --paper:      #FDFBF6;
  --rule:       #DDD5C5;
  --rule-2:     #C8BFAD;
  --muted:      #6B7A78;
  --ok:         #2C6E49;

  /* Type */
  --serif: "Instrument Serif", "Source Serif Pro", Georgia, serif;
  --sans:  "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "IBM Plex Mono", "JetBrains Mono", ui-monospace, monospace;

  /* Scale */
  --max:  1280px;
  --gutter: clamp(20px, 4vw, 64px);
}

/* Palette: Verde Bahia (alternativa) */
:root[data-palette="bahia"] {
  --ink:        #14361E;
  --ink-2:      #1F4A2A;
  --ink-soft:   #355B3F;
  --clay:       #E0A726;
  --clay-deep:  #B8801A;
  --cream:      #F4F1E4;
  --paper:      #FBF9EF;
  --rule:       #D7D2BC;
  --rule-2:     #BFBAA1;
  --muted:      #5F6B5F;
}

/* Palette: Azul Médico (alternativa) */
:root[data-palette="medico"] {
  --ink:        #0E2A4A;
  --ink-2:      #15396A;
  --ink-soft:   #2C4B7A;
  --clay:       #D45C2E;
  --clay-deep:  #A93F18;
  --cream:      #F2EEE7;
  --paper:      #FBF8F2;
  --rule:       #DAD3C2;
  --rule-2:     #C2B9A4;
  --muted:      #5E6C7D;
}

/* Palette: Magenta (saúde da mulher) */
:root[data-palette="rose"] {
  --ink:        #2A1726;
  --ink-2:      #3D2236;
  --ink-soft:   #553248;
  --clay:       #B83A6E;
  --clay-deep:  #8C2853;
  --cream:      #F4EBE5;
  --paper:      #FBF4ED;
  --rule:       #DAC6BB;
  --rule-2:     #C1A89B;
  --muted:      #6E5F65;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; letter-spacing: -0.005em; }
h1 { font-size: clamp(44px, 6.5vw, 92px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.08; }
h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.18; }
h4 { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.25; }
p  { margin: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.eyebrow .dot { color: var(--clay); margin-right: 6px; }

.lede {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
  color: var(--ink-2);
  font-style: italic;
}

.italic-serif { font-family: var(--serif); font-style: italic; }

/* Line-break utility helpers. Use <br class="br-desktop"> in HTML
   when a forced break should ONLY apply on desktop, and put a
   <span class="br-mobile"> </span> after it to render as a space
   in its place on phones. Default: br-desktop visible, br-mobile
   hidden. The mobile media query below flips this. */
.br-desktop { display: inline; }
.br-mobile  { display: none; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(64px, 9vw, 128px) 0; }
.section-tight { padding: clamp(48px, 6vw, 88px) 0; }

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.rule-thick { height: 2px; background: var(--ink); border: 0; margin: 0; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  gap: 24px;
}
.topbar-left { display: flex; gap: 24px; align-items: center; }
.topbar .badge {
  background: var(--clay);
  color: var(--cream);
  padding: 2px 8px;
  border-radius: 2px;
  font-weight: 600;
}
.topbar .topbar-right { display: flex; gap: 18px; opacity: 0.85; }
.topbar a:hover { color: #fff; opacity: 1; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand-mark {
  width: 44px; height: 44px;
  background: var(--ink);
  color: var(--cream);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
  border-radius: 2px;
  flex-shrink: 0;
}
.brand-mark .dot {
  width: 6px; height: 6px;
  background: var(--clay);
  border-radius: 50%;
  position: absolute;
  margin-top: 22px; margin-left: 20px;
}
.brand-text { line-height: 1.1; }
.brand-text .name {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--ink);
  display: block;
}
.brand-text .role {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 14.5px;
  padding: 10px 14px;
  color: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: color .15s;
}
.nav a:hover { color: var(--clay-deep); }
.nav a[aria-current="page"] { color: var(--clay-deep); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--clay);
}

.nav-cta {
  margin-left: 12px;
  background: var(--ink);
  color: var(--cream);
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 2px;
  transition: background .15s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--clay); color: var(--cream); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid var(--rule-2);
  padding: 8px 12px 8px 10px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  border-radius: 2px;
  transition: border-color .15s, color .15s;
}
.menu-toggle:hover { border-color: var(--ink); }
.menu-toggle-icon {
  width: 16px; height: 12px;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.menu-toggle-icon span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .2s ease, opacity .15s ease, top .2s ease;
}
.menu-toggle-icon span:nth-child(1) { top: 0; }
.menu-toggle-icon span:nth-child(2) { top: 5px; }
.menu-toggle-icon span:nth-child(3) { top: 10px; }
.menu-toggle.is-open .menu-toggle-icon span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-toggle.is-open .menu-toggle-icon span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open .menu-toggle-icon span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--ink) 60%, transparent);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.mobile-drawer.open { opacity: 1; pointer-events: auto; }
.mobile-drawer-inner {
  position: absolute;
  top: 0; right: 0;
  width: min(360px, 88%);
  height: 100%;
  max-height: 100dvh;
  background: var(--paper);
  border-left: 1px solid var(--rule);
  padding: 0 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(100%);
  transition: transform .25s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-drawer.open .mobile-drawer-inner { transform: translateX(0); }
.mobile-drawer-head {
  position: sticky;
  top: 0;
  background: var(--paper);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0 14px;
  margin: 0 0 8px;
  border-bottom: 1px solid var(--rule);
  z-index: 1;
}
.mobile-drawer-title {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.mobile-drawer-close {
  background: transparent;
  border: 1px solid var(--rule-2);
  padding: 7px 12px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  border-radius: 2px;
  transition: border-color .15s, color .15s;
}
.mobile-drawer-close:hover { border-color: var(--ink); color: var(--clay-deep); }
.mobile-nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav a {
  font-family: var(--serif);
  font-size: 24px;
  padding: 14px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.mobile-nav a[aria-current="page"] { color: var(--clay-deep); }
.mobile-cta { margin-top: 24px; justify-content: center; }
.mobile-meta {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.mobile-meta a { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  border-radius: 2px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all .18s ease;
  cursor: pointer;
}
.btn-primary { background: var(--clay); color: #fff; border-color: var(--clay); }
.btn-primary:hover { background: var(--clay-deep); border-color: var(--clay-deep); }
.btn-ink { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-ink:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-link {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 4px 0;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.btn-link:hover { color: var(--clay-deep); border-bottom-color: var(--clay); }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 72px 0 32px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-grid h5 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: color-mix(in srgb, var(--cream) 65%, transparent);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-grid a {
  display: block;
  padding: 4px 0;
  color: var(--cream);
  font-size: 15px;
  opacity: 0.85;
}
.footer-grid a:hover { opacity: 1; color: #fff; }
.footer-brand .brand-text .name { color: var(--cream); }
.footer-brand .brand-mark { background: var(--clay); }
.footer-brand .brand-text .role { color: color-mix(in srgb, var(--cream) 60%, transparent); }
.footer-brand p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  font-style: italic;
  color: color-mix(in srgb, var(--cream) 85%, transparent);
  margin: 18px 0 0;
  max-width: 360px;
}
.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--cream) 18%, transparent);
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 60%, transparent);
}
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Generic cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 32px;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--ink); }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 15px;
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  color: var(--ink);
  transition: border-color .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.checkbox-field {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: var(--ink-soft); line-height: 1.45;
  margin: 8px 0 18px;
}
.checkbox-field input { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; }

/* ---------- Page heading (reused on inner pages) ---------- */
.page-head {
  padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--rule);
}
.page-head .eyebrow { margin-bottom: 18px; display: inline-block; }
.page-head h1 { max-width: 18ch; }
.page-head .lede { margin-top: 24px; max-width: 52ch; }

/* ---------- Tags / chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.chip.solid { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chip.clay { background: color-mix(in srgb, var(--clay) 14%, transparent); color: var(--clay-deep); border-color: color-mix(in srgb, var(--clay) 30%, transparent); }

/* ---------- Notice (draft placeholder banner) ---------- */
.draft-banner {
  background: color-mix(in srgb, var(--clay) 12%, var(--paper));
  border: 1px dashed var(--clay);
  padding: 14px 20px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--clay-deep);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.draft-banner b { color: var(--clay-deep); }

/* ---------- Tweaks panel ---------- */
.tweaks {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 200;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(15, 42, 42, 0.18);
  font-family: var(--sans);
  width: 280px;
  display: none;
}
.tweaks.open { display: block; }
.tweaks-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--ink);
  color: var(--cream);
  border-radius: 3px 3px 0 0;
}
.tweaks-head h6 {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}
.tweaks-head button {
  background: transparent;
  border: none;
  color: var(--cream);
  font-size: 18px;
  padding: 0;
  line-height: 1;
  opacity: 0.7;
}
.tweaks-head button:hover { opacity: 1; }
.tweaks-body { padding: 14px; }
.tweaks-body .group { margin-bottom: 14px; }
.tweaks-body label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.swatch {
  height: 36px;
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  display: flex;
  overflow: hidden;
}
.swatch.active { outline: 2px solid var(--ink); outline-offset: 2px; }
.swatch span { flex: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  :root { --gutter: 18px; }

  /* Topbar: show only the badge */
  .topbar { font-size: 11px; }
  .topbar-inner { padding: 8px 0; gap: 12px; }
  .topbar-left > *:not(.badge) { display: none; }
  .topbar-right { display: none; }

  /* Header: tighten, hide brand role + CTA.
     Override container gutter on the header so it gets a clean 20px lateral
     breathing room (the rest of the page keeps the tighter --gutter of 18px). */
  .site-header .container.site-header-inner {
    padding-left: 20px;
    padding-right: 20px;
    max-width: none;
  }
  .site-header-inner { padding-top: 14px; padding-bottom: 14px; gap: 12px; }
  .brand-mark { width: 38px; height: 38px; font-size: 22px; }
  .brand-text .name { font-size: 17px; line-height: 1.15; }
  .brand-text .role { display: none; }
  .nav-cta { display: none; }
  .menu-toggle { padding: 8px 10px; font-size: 10.5px; }

  /* Type scale clamps already responsive but tighten the largest */
  h1 { font-size: clamp(36px, 11vw, 56px); line-height: 1.04; }
  h2 { font-size: clamp(28px, 7vw, 40px); line-height: 1.1; }
  .lede { font-size: clamp(18px, 5vw, 22px); }

  /* Buttons full width-ish so they don't crush */
  .btn { padding: 14px 18px; font-size: 14.5px; }

  /* Footer single column at tight mobile */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Prevent grid item overflow from long inputs / form padding */
  form, input, select, textarea { min-width: 0; max-width: 100%; }
  .vol-form-grid, .ct-grid-inner { grid-template-columns: 1fr !important; }
  .vol-form-grid > *, .ct-grid-inner > * { min-width: 0; }
  form.vol, form.ct { padding: 24px; }

  /* Generic: any 2+ column grid the page styles forgot — guarantee single col */
  .container > *:has(> *) { /* no-op anchor */ }
}
@media (max-width: 520px) {
  .topbar { display: none; }
}
@media (max-width: 520px) {
  .topbar-right { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   MOBILE POLISH — refinements that apply across all pages.
   Page-level <style> blocks define heroes with desktop in mind;
   this block normalises them for phones so the opening of each
   page reads professionally and on-brand on small screens.
   ============================================================ */
@media (max-width: 720px) {
  /* --- Heroes: consistent breathing room on top --- */
  .blog-hero,
  .prop-hero,
  .ct-hero,
  .pr-hero,
  .sus-hero,
  .vol-hero,
  .sobre-hero {
    padding-top: 36px;
    padding-bottom: 40px;
  }

  /* On mobile, hide forced <br> elements in headlines. The HTML
     templates wrap them so they're replaced by an inline space
     (see: lines 124-128 — utility classes .br-desktop / .br-mobile). */
  .br-desktop { display: none; }
  .br-mobile  { display: inline; }

  /* H1 sizes — page-level rules use clamp(48px, 6.5vw, ~92px)
     which collapses to 48px on mobile, often too tight with the
     long sentences. Bring the floor down a touch and let the
     phone breathe. !important required to beat the page-level
     <style> rules that load after this file. */
  .blog-hero h1,
  .prop-hero h1,
  .sobre-hero h1,
  .sus-hero h1,
  .vol-hero h1,
  .ct-hero h1,
  .pr-hero h1 {
    font-size: clamp(34px, 9.4vw, 46px) !important;
    line-height: 1.04 !important;
    letter-spacing: -0.01em;
    max-width: none !important;
  }

  /* --- Lede: italic serif at 22px is too pompous on phones.
         Switch to a clean sans-serif lede with slightly muted
         tone — feels like a proper magazine sub-deck.
         !important needed because each page's <style> sets these
         with equal specificity AFTER site.css loads. --- */
  .blog-hero .lede,
  .prop-hero .lede,
  .sus-hero .lede,
  .ct-hero .lede,
  .pr-hero .lede {
    font-family: var(--sans) !important;
    font-style: normal !important;
    font-size: 17px !important;
    line-height: 1.55 !important;
    color: var(--ink-soft);
    margin-top: 20px;
    max-width: none;
  }
  /* Hero (home + sobre) lede is already sans-serif on desktop;
     vol-hero is italic-serif on desktop and needs the family
     swap on mobile too. */
  .hero .lede,
  .sobre-hero .lede,
  .vol-hero .lede {
    font-family: var(--sans) !important;
    font-style: normal !important;
    font-size: 17px !important;
    line-height: 1.55 !important;
    margin-top: 20px;
  }

  /* --- Eyebrow: a hair smaller, more spaced. Acts as a magazine
         section label above the headline. --- */
  .blog-hero .eyebrow,
  .prop-hero .eyebrow,
  .sus-hero .eyebrow,
  .vol-hero .eyebrow,
  .ct-hero .eyebrow,
  .pr-hero .eyebrow,
  .sobre-hero .eyebrow,
  .hero .eyebrow { font-size: 10.5px; letter-spacing: 0.16em; }

  /* --- Draft banner: align icon + text in column on phones,
         readable line-height, no awkward flex squashing. --- */
  .draft-banner {
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    font-size: 11.5px;
    line-height: 1.6;
  }
  .draft-banner b { display: block; }

  /* --- Horizontal scroll tab bars (.axis-nav / .cat-nav):
         these were already overflow-x:auto but visually offered
         no affordance. Add a soft right-edge fade so users know
         to swipe, and slim the cells a touch. --- */
  .axis-nav,
  .cat-nav {
    position: relative;
    top: 0; /* drop sticky on phones — saves vertical room and
               avoids the awkward double-stick with the header */
  }
  .axis-nav::after,
  .cat-nav::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 32px;
    background: linear-gradient(90deg,
      transparent,
      color-mix(in srgb, var(--paper) 92%, transparent));
    pointer-events: none;
  }
  .axis-nav a,
  .cat-nav a {
    flex: 0 0 auto;
    min-width: auto;
    padding: 14px 16px;
    font-size: 10.5px;
    letter-spacing: 0.1em;
  }

  /* --- Eyebrow + H1 vertical rhythm — make sure the H1 gets a
         touch more space below the eyebrow on mobile so the
         opening feels deliberate, not crammed. */
  .blog-hero h1[style*="margin-top"],
  .prop-hero h1[style*="margin-top"],
  .sus-hero h1[style*="margin-top"],
  .vol-hero h1[style*="margin-top"],
  .ct-hero h1[style*="margin-top"],
  .pr-hero h1[style*="margin-top"],
  .sobre-hero h1[style*="margin-top"] { margin-top: 16px !important; }
}

/* Extra tightening for very small phones (iPhone SE & co.) */
@media (max-width: 380px) {
  .blog-hero h1,
  .prop-hero h1,
  .sobre-hero h1,
  .sus-hero h1,
  .vol-hero h1,
  .ct-hero h1,
  .pr-hero h1 { font-size: 30px !important; }

  :root { --gutter: 16px; }
}
