/* Scout brand system — Scout Navy + Scout Blue, applied warm on the shell and
   marketing pages, lean and readable on legal pages. Palette from the Scout
   brand guide (colors extracted from the logo). */
:root {
  /* Brand */
  --navy: #04398f;       /* authority: headings, links, primary buttons */
  --navy-deep: #032c6e;  /* navy hover / pressed */
  --blue: #38b3fa;       /* Scout Blue: interactive accents, focus, highlights */
  --sky: #7cdafb;
  --mist: #bdf0fc;
  --cloud: #e6f4fb;      /* subtle brand surface band */
  --gold: #fbe253;       /* Beacon Gold: tiny beacon accents only */
  --teal: #2d9e6f;       /* Civic Teal: success / resolved */

  /* Neutrals, tinted toward Scout Navy (never pure black/white) */
  --bg: #ffffff;
  --bg-alt: #f2f7fc;
  --text: #111f38;
  --text-muted: #45566f;
  --text-dim: #6c7d97;
  --border: #dbe6f3;

  --max-w: 720px;
  --max-w-wide: 1080px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-1: 0 1px 3px rgba(4, 57, 143, 0.08);
  --shadow-2: 0 10px 30px rgba(4, 57, 143, 0.12);

  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--mist); color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 3px;
}

.container {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 24px;
}
.content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 24px 88px;
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
/* Thin brand ribbon: Scout Navy → Scout Blue. */
.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--blue) 70%, var(--sky));
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-decoration: none;
}
.brand img {
  width: 34px;
  height: 34px;
  display: block;
}
.site-nav {
  display: flex;
  gap: 26px;
}
.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--navy); }

/* ── Home hero ──────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: clamp(24px, 5vw, 56px) 0 clamp(28px, 4vw, 48px);
  /* Soft radial glow that fades to transparent — a hero moment without a
     hard-edged card box inside the reading column. */
  background: radial-gradient(90% 130% at 50% -15%, var(--cloud), transparent 62%);
}
.hero-logo {
  width: clamp(96px, 20vw, 128px);
  height: auto;
  margin: 0 auto 20px;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(4, 57, 143, 0.16));
}
.hero-kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 auto 14px;
  color: var(--navy);
  max-width: 14ch;
}
.hero-lead {
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto 28px;
}
.btn-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-1);
}
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--navy); }
/* Buttons live inside .content on the home/baixar pages, where `.content a`
   would otherwise win on specificity and repaint the label navy-on-navy. */
.content a.btn { text-decoration: none; }
.content a.btn-primary { color: #fff; }
.content a.btn-ghost { color: var(--navy); }

/* ── Content typography (legal + prose) ─────────────────── */
.content h1 {
  font-size: clamp(28px, 5vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  /* Vertical margins only — leave inline margins alone so the centered
     `.hero h1` (margin: 0 auto) isn't knocked to the left by this rule. */
  margin-block: 0 8px;
  color: var(--navy);
}
.content h2 {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 44px 0 12px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--text);
}
.content h2:first-of-type { border: none; padding-top: 0; margin-top: 28px; }
.content h3 {
  font-size: 17px;
  margin: 28px 0 8px;
  color: var(--navy);
}
.content p { max-width: 72ch; }
.content a {
  color: var(--navy);
  text-decoration-color: var(--sky);
  text-underline-offset: 2px;
}
.content a:hover { text-decoration-color: var(--blue); }
.content strong { color: var(--text); font-weight: 700; }

/* No side-stripe accents (brand ban): full border + tinted fill instead. */
.content blockquote {
  background: var(--cloud);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 22px 0;
  color: var(--text-muted);
}
.content blockquote p { margin: 0; max-width: none; }
.content blockquote p + p { margin-top: 8px; }

.content code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.88em;
  color: var(--navy);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.content pre {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
}
.content ul, .content ol { padding-left: 22px; max-width: 72ch; }
.content li { margin: 6px 0; }
.content li::marker { color: var(--blue); }
.content hr { border: none; border-top: 1px solid var(--border); margin: 36px 0; }

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14.5px;
}
.content table th, .content table td {
  border: 1px solid var(--border);
  padding: 9px 13px;
  text-align: left;
}
.content table th { background: var(--bg-alt); font-weight: 700; color: var(--navy); }

.subtitle { color: var(--text-dim); margin: 0 0 32px; font-size: 14px; }

.lead {
  background: var(--cloud);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.lead p:first-child { margin-top: 0; }
.lead p:last-child { margin-bottom: 0; }

/* ── Cidades integradas ─────────────────────────────────── */
.city-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.city-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.city-card strong { font-size: 17px; color: var(--navy); }
.city-state {
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
  letter-spacing: 0.04em;
}
.city-since { margin-left: auto; color: var(--text-dim); font-size: 13px; }

/* No side-stripe (brand ban): full border + cloud fill. */
.empty-state {
  background: var(--cloud);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 24px 0;
  color: var(--text-muted);
}
.empty-state p:first-child { margin-top: 0; color: var(--navy); font-weight: 600; }
.empty-state p:last-child { margin-bottom: 0; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  margin-top: 88px;
  padding: 48px 0 32px;
  font-size: 14px;
  color: var(--text-muted);
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-cols > div:first-child { max-width: 34ch; }
.footer-cols strong {
  display: block;
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 6px;
  text-transform: none;
  letter-spacing: -0.01em;
}
.footer-brand img { width: 26px; height: 26px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin: 7px 0; }
.footer-cols a { color: var(--text-muted); text-decoration: none; }
.footer-cols a:hover { color: var(--navy); }
.legal-note {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin: 0;
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .footer-cols > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .content { padding: 40px 20px 72px; }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 13.5px; }
}

/* ── /r/<slug> share preview ────────────────────────────── */
.share-page { max-width: var(--max-w); margin: 0 auto; padding: 24px 20px 48px; }
.share-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 20px;
  margin-bottom: 32px;
}
.share-title { margin: 0 0 4px; font-size: 22px; color: var(--navy); }
.share-address { margin: 0 0 12px; color: var(--text-muted); font-size: 15px; }
.share-meta { display: flex; gap: 12px; align-items: center; margin: 0 0 16px; font-size: 13px; color: var(--text-dim); }
.share-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--cloud);
  border: 1px solid var(--border);
  color: var(--navy);
  font-weight: 700;
}
.share-photo { display: block; width: 100%; max-height: 360px; object-fit: cover; border-radius: var(--radius-sm); margin: 0 0 16px; }
.share-open {
  display: inline-block;
  padding: 12px 22px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
}
.share-open:hover { background: var(--navy-deep); }
.share-cta { padding: 0 4px; }
.share-cta h2 { font-size: 18px; margin: 0 0 8px; color: var(--navy); }
