/* =========================================================
   Portfoliora — sistema visual
   Paleta terracota sobre areia, tipografia editorial.
   ========================================================= */

:root {
  /* Marca */
  --brand: #a8431f;
  --brand-strong: #8c3618;
  --brand-soft: #c8683f;
  --brand-ink: #4a1a0a;
  --brand-wash: #f6e7dd;

  /* Superfícies */
  --sand-0: #fffdfa;
  --sand-1: #fbf7f1;
  --sand-2: #f4ece2;
  --sand-3: #ebdfd1;
  --line: #e0d2c2;
  --line-soft: #eee4d8;

  /* Texto */
  --ink: #1b1512;
  --ink-2: #3d332c;
  --ink-3: #6d6057;
  --ink-4: #8d8077;

  /* Acentos de apoio */
  --pine: #1f5e52;
  --pine-wash: #e2efeb;
  --amber: #b97a12;
  --amber-wash: #fbefd8;

  /* Tipografia */
  --ui: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Métrica */
  --shell: 1200px;
  --narrow: 720px;
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --r-xl: 32px;

  /* Profundidade */
  --sh-1: 0 1px 2px rgba(74, 26, 10, .06), 0 2px 6px rgba(74, 26, 10, .05);
  --sh-2: 0 2px 4px rgba(74, 26, 10, .05), 0 10px 24px -8px rgba(74, 26, 10, .16);
  --sh-3: 0 4px 10px rgba(74, 26, 10, .07), 0 26px 50px -18px rgba(74, 26, 10, .28);
  --sh-brand: 0 18px 40px -14px rgba(168, 67, 31, .5);
}

/* ---------------------------------------------------------
   Base
   --------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--sand-1);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.72;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .ui {
  font-family: var(--ui);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.022em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }

img, svg, video { max-width: 100%; display: block; }

button, input, select, textarea { font: inherit; color: inherit; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 3px solid var(--brand-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: var(--r-s);
  font-family: var(--ui);
  font-weight: 700;
  font-size: .9rem;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}
.shell--narrow { width: min(100% - 2.5rem, var(--narrow)); }
.shell--wide { width: min(100% - 2.5rem, 1360px); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------
   Tipografia utilitária
   --------------------------------------------------------- */

.eyebrow {
  font-family: var(--ui);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-strong);
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "";
  width: 9px; height: 9px;
  background: var(--brand);
  transform: rotate(45deg);
  flex: none;
}
.eyebrow--plain::before { display: none; }

.display {
  font-size: clamp(2.4rem, 6.4vw, 4.35rem);
  letter-spacing: -.035em;
  line-height: 1.02;
}
.h-xl { font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -.03em; line-height: 1.06; }
.h-l  { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.h-m  { font-size: clamp(1.22rem, 2vw, 1.45rem); }
.h-s  { font-size: 1.06rem; letter-spacing: -.01em; }

.lede {
  font-size: clamp(1.1rem, 1.7vw, 1.28rem);
  line-height: 1.6;
  color: var(--ink-2);
}

.muted { color: var(--ink-3); }
.small { font-size: .9rem; }
.meta {
  font-family: var(--ui);
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: .01em;
}
.mark-brand { color: var(--brand); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.4rem;
}
.section-head p { max-width: 56ch; margin: .8rem 0 0; color: var(--ink-3); }

/* ---------------------------------------------------------
   Botões e chips
   --------------------------------------------------------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--ui);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: -.005em;
  padding: .88rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.8,.3,1), box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: linear-gradient(135deg, var(--brand-soft), var(--brand) 45%, var(--brand-strong));
  box-shadow: var(--sh-brand);
}
.btn--primary:hover { box-shadow: 0 22px 48px -14px rgba(168, 67, 31, .62); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
  box-shadow: var(--sh-1);
  background: rgba(255, 253, 250, .7);
}
.btn--ghost:hover { border-color: var(--brand-soft); background: #fff; }

.btn--sm { padding: .6rem 1.1rem; font-size: .85rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

.arrow { transition: transform .18s ease; }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(4px); }

.link-arrow {
  font-family: var(--ui);
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--brand-strong);
}
.link-arrow:hover { text-decoration: underline; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--ui);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .34rem .7rem;
  border-radius: 999px;
  background: var(--brand-wash);
  color: var(--brand-strong);
  text-decoration: none;
  white-space: nowrap;
}
a.chip:hover { background: var(--brand); color: #fff; }
.chip--quiet { background: var(--sand-2); color: var(--ink-3); }
.chip--pine { background: var(--pine-wash); color: var(--pine); }
.chip--amber { background: var(--amber-wash); color: var(--amber); }

.tag-row { display: flex; flex-wrap: wrap; gap: .45rem; }

/* ---------------------------------------------------------
   Cabeçalho
   --------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 241, .82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line-soft);
  box-shadow: 0 8px 26px -20px rgba(74, 26, 10, .6);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 74px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  text-decoration: none;
  flex: none;
  margin-right: auto;
}
.logo svg, .logo img { width: 30px; height: 30px; }
.logo span {
  font-family: var(--ui);
  font-weight: 800;
  font-size: 1.24rem;
  letter-spacing: -.03em;
  color: var(--ink);
  text-transform: uppercase;
}
.logo:hover span { color: var(--brand-strong); }

.nav { display: flex; align-items: center; gap: .2rem; }

.nav a, .nav .nav-trigger {
  font-family: var(--ui);
  font-weight: 600;
  font-size: .93rem;
  color: var(--ink-2);
  text-decoration: none;
  padding: .55rem .8rem;
  border-radius: 999px;
  background: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: background .16s ease, color .16s ease;
}
.nav a:hover, .nav .nav-trigger:hover { background: var(--sand-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--brand-strong); background: var(--brand-wash); }

.nav-trigger svg { transition: transform .2s ease; }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-trigger[aria-expanded="true"] { background: var(--sand-2); color: var(--ink); }

.header-cta { flex: none; margin-left: .4rem; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--sand-0);
  border-radius: 10px;
  width: 44px; height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  position: relative;
  border-radius: 2px;
  transition: transform .2s ease, background .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Painel de categorias */
.mega {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: var(--sand-0);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 30px 60px -30px rgba(74, 26, 10, .45);
  padding: 2rem 0 2.2rem;
  display: none;
}
.mega[data-open="true"] { display: block; animation: dropIn .22s ease both; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } }

.mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: .5rem 1.4rem;
}
.mega-grid a {
  padding: .7rem .8rem;
  border-radius: var(--r-m);
  display: block;
  font-family: var(--ui);
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  border: 1px solid transparent;
}
.mega-grid a small {
  display: block;
  font-weight: 500;
  font-size: .78rem;
  color: var(--ink-4);
  margin-top: .15rem;
  letter-spacing: 0;
}
.mega-grid a:hover { background: var(--sand-1); border-color: var(--line-soft); color: var(--brand-strong); }

.mega-foot {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}

/* ---------------------------------------------------------
   Fundos e ornamentos
   --------------------------------------------------------- */

.atmos { position: relative; isolation: isolate; }
.atmos::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(200, 104, 63, .2), transparent 62%),
    radial-gradient(760px 460px at 92% 6%, rgba(31, 94, 82, .12), transparent 60%),
    linear-gradient(180deg, var(--sand-2), var(--sand-1) 62%);
}
.atmos::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(to right, rgba(74, 26, 10, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(74, 26, 10, .055) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 78%);
}

.gem {
  position: absolute;
  transform: rotate(45deg);
  border-radius: 6px;
  pointer-events: none;
  z-index: -1;
}
.gem--a { width: 120px; height: 120px; background: linear-gradient(135deg, var(--brand-soft), var(--brand)); opacity: .16; }
.gem--b { width: 62px; height: 62px; border: 2px solid var(--brand); opacity: .3; }
.gem--c { width: 200px; height: 200px; background: linear-gradient(160deg, rgba(31,94,82,.3), transparent); opacity: .5; filter: blur(2px); }

@keyframes float-slow {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(-16px); }
}
.gem--float { animation: float-slow 11s ease-in-out infinite; }

/* ---------------------------------------------------------
   Herói da home
   --------------------------------------------------------- */

.hero { padding: clamp(3.2rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-copy .display { margin-bottom: 1.3rem; }
.hero-copy .lede { max-width: 46ch; margin-bottom: 2rem; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.6rem;
  margin-top: 2.8rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.hero-stats div strong {
  display: block;
  font-family: var(--ui);
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: -.03em;
  color: var(--brand-strong);
  line-height: 1;
}
.hero-stats div span {
  font-family: var(--ui);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Composição da estação de trabalho */
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 40px 60px rgba(74, 26, 10, .22)); }

.hero-badge {
  position: absolute;
  background: rgba(255, 253, 250, .92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  box-shadow: var(--sh-2);
  padding: .7rem .95rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--ui);
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink-2);
}
.hero-badge i {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--brand-wash);
  color: var(--brand-strong);
  flex: none;
}
.hero-badge--tl { top: 6%; left: -6%; animation: float-slow 9s ease-in-out infinite; }
.hero-badge--br { bottom: 8%; right: -4%; animation: float-slow 12s ease-in-out infinite .6s; }
@media (max-width: 860px) {
  .hero-badge--tl { left: 0; }
  .hero-badge--br { right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-badge, .gem--float { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------
   Seções
   --------------------------------------------------------- */

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--sand { background: var(--sand-2); }
.section--paper { background: var(--sand-0); }

.section--ink {
  background:
    radial-gradient(700px 400px at 15% 0%, rgba(168, 67, 31, .45), transparent 60%),
    radial-gradient(600px 400px at 88% 100%, rgba(31, 94, 82, .35), transparent 60%),
    #1b1512;
  color: #f3e9e0;
}
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--ink .muted, .section--ink p { color: #d7c8bb; }
.section--ink .eyebrow { color: var(--brand-soft); }
.section--ink .eyebrow::before { background: var(--brand-soft); }

.rule-top { border-top: 1px solid var(--line); }

/* ---------------------------------------------------------
   Cartões de conteúdo
   --------------------------------------------------------- */

.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(292px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--sand-0);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-l);
  padding: 1.5rem 1.5rem 1.6rem;
  box-shadow: var(--sh-1);
  transition: transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--brand-soft); }

.card h3 { margin: .75rem 0 .5rem; font-size: 1.16rem; line-height: 1.24; }
.card p { font-size: .96rem; color: var(--ink-3); line-height: 1.6; margin-bottom: 1.1rem; }
.card .card-foot {
  margin-top: auto;
  padding-top: .9rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.stretch::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card--feature {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--sand-0), var(--brand-wash) 180%);
}
.card--feature h3 { font-size: clamp(1.4rem, 2.4vw, 1.95rem); line-height: 1.1; }
.card--feature p { font-size: 1.02rem; }
.card-figure {
  border-radius: var(--r-m);
  overflow: hidden;
  background: linear-gradient(150deg, var(--sand-2), var(--sand-3));
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}
.card-figure svg { width: 100%; height: 100%; }
@media (max-width: 780px) {
  .card--feature { grid-column: span 1; grid-template-columns: 1fr; padding: 1.5rem; }
}

/* Tiles de categoria */
.tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1.6rem 1.5rem 1.5rem;
  border-radius: var(--r-l);
  background: var(--sand-0);
  border: 1px solid var(--line-soft);
  text-decoration: none;
  box-shadow: var(--sh-1);
  transition: transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s ease, border-color .22s ease;
  min-height: 172px;
}
.tile::after {
  content: "";
  position: absolute;
  right: -38px; bottom: -38px;
  width: 108px; height: 108px;
  background: var(--brand);
  opacity: .07;
  transform: rotate(45deg);
  transition: transform .35s cubic-bezier(.2,.8,.3,1), opacity .3s ease;
}
.tile:hover { transform: translateY(-5px); box-shadow: var(--sh-3); border-color: var(--brand-soft); }
.tile:hover::after { transform: rotate(45deg) scale(1.25); opacity: .13; }
.tile-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--brand-wash);
  color: var(--brand-strong);
  display: grid; place-items: center;
  margin-bottom: .5rem;
}
.tile h3 { font-size: 1.06rem; line-height: 1.25; color: var(--ink); }
.tile p { font-size: .89rem; color: var(--ink-3); line-height: 1.55; margin: 0; }
.tile .tile-count {
  margin-top: auto;
  padding-top: .9rem;
  font-family: var(--ui);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--brand-strong);
}

/* ---------------------------------------------------------
   Explorador (filtros)
   --------------------------------------------------------- */

.explorer-bar {
  position: sticky;
  top: 74px;
  z-index: 40;
  background: rgba(251, 247, 241, .93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-block: 1px solid var(--line-soft);
  padding: 1rem 0;
  margin-bottom: 2.2rem;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  padding: .35rem 0;
}
.filter-group + .filter-group { margin-top: .5rem; }
.filter-label {
  font-family: var(--ui);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
  width: 96px;
  flex: none;
}

.pill {
  font-family: var(--ui);
  font-size: .85rem;
  font-weight: 600;
  padding: .48rem .95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--sand-0);
  color: var(--ink-2);
  cursor: pointer;
  transition: all .16s ease;
  white-space: nowrap;
}
.pill:hover { border-color: var(--brand-soft); color: var(--brand-strong); }
.pill[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: var(--sh-2);
}

.search-field {
  position: relative;
  flex: 1 1 260px;
  min-width: 220px;
}
.search-field input {
  width: 100%;
  padding: .72rem 1rem .72rem 2.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--sand-0);
  font-family: var(--ui);
  font-size: .92rem;
}
.search-field input::placeholder { color: var(--ink-4); }
.search-field svg {
  position: absolute;
  left: .95rem; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-4);
}

.result-line {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.4rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.6rem;
  font-family: var(--ui);
  font-size: .9rem;
  color: var(--ink-3);
}
.result-line strong { color: var(--ink); }

.is-hidden { display: none !important; }

.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--r-l);
  background: var(--sand-0);
}
.empty-state svg { margin: 0 auto 1.2rem; color: var(--brand-soft); }

/* ---------------------------------------------------------
   Cartões expansíveis / acordeão
   --------------------------------------------------------- */

.expander {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  background: var(--sand-0);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.expander + .expander { margin-top: .75rem; }
.expander[open] { border-color: var(--brand-soft); box-shadow: var(--sh-2); }

.expander > summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--ui);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  transition: background .16s ease;
}
.expander > summary::-webkit-details-marker { display: none; }
.expander > summary:hover { background: var(--sand-1); }
.expander > summary .exp-icon {
  margin-left: auto;
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--sand-2);
  color: var(--brand-strong);
  display: grid; place-items: center;
  transition: transform .25s ease, background .2s ease;
}
.expander[open] > summary .exp-icon { transform: rotate(180deg); background: var(--brand-wash); }
.expander > summary .exp-num {
  font-size: .8rem;
  color: var(--brand-strong);
  font-weight: 800;
  letter-spacing: .05em;
  flex: none;
}
.expander-body {
  padding: 0 1.35rem 1.4rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.1rem;
  color: var(--ink-2);
  font-size: 1rem;
}
.expander-body > *:first-child { margin-top: 0; }

/* ---------------------------------------------------------
   Checklists interativas
   --------------------------------------------------------- */

.checklist {
  background: var(--sand-0);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-l);
  padding: 1.6rem;
  box-shadow: var(--sh-1);
}
.checklist-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.checklist-head h3 { font-size: 1.1rem; }
.checklist-head p { font-size: .9rem; color: var(--ink-3); margin: .35rem 0 0; }

.progress {
  height: 8px;
  border-radius: 999px;
  background: var(--sand-3);
  overflow: hidden;
  margin-bottom: .6rem;
}
.progress i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-soft), var(--brand));
  transition: width .35s cubic-bezier(.2,.8,.3,1);
}
.progress-label {
  font-family: var(--ui);
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink-3);
  margin-bottom: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.progress-label b { color: var(--brand-strong); }

.check-item {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: .75rem .8rem;
  border-radius: var(--r-m);
  cursor: pointer;
  transition: background .16s ease;
}
.check-item:hover { background: var(--sand-1); }
.check-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-item .box {
  flex: none;
  width: 22px; height: 22px;
  margin-top: .18rem;
  border-radius: 7px;
  border: 2px solid var(--line);
  background: var(--sand-0);
  display: grid;
  place-items: center;
  color: transparent;
  transition: all .18s ease;
}
.check-item input:checked + .box {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.check-item input:focus-visible + .box { outline: 3px solid var(--brand-soft); outline-offset: 2px; }
.check-item .check-text { font-size: .98rem; line-height: 1.5; }
.check-item .check-text small {
  display: block;
  font-size: .84rem;
  color: var(--ink-4);
  margin-top: .15rem;
  line-height: 1.45;
}
.check-item input:checked ~ .check-text { color: var(--ink-4); text-decoration: line-through; text-decoration-color: var(--brand-soft); }
.check-item input:checked ~ .check-text small { text-decoration: none; }

.checklist-actions {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  align-items: center;
  justify-content: space-between;
}
.text-btn {
  background: none;
  border: 0;
  padding: .3rem 0;
  font-family: var(--ui);
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-btn:hover { color: var(--brand-strong); }

.save-hint {
  font-family: var(--ui);
  font-size: .78rem;
  color: var(--ink-4);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

/* ---------------------------------------------------------
   Artigo / prosa
   --------------------------------------------------------- */

.article-head { padding: clamp(2.2rem, 4vw, 3.4rem) 0 clamp(1.8rem, 3vw, 2.6rem); }
.article-head h1 { margin-bottom: 1.1rem; }
.article-head .lede { max-width: 62ch; }

.breadcrumb {
  font-family: var(--ui);
  font-size: .82rem;
  color: var(--ink-4);
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
}
.breadcrumb a { color: var(--ink-3); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { color: var(--brand-strong); text-decoration: underline; }
.breadcrumb span[aria-hidden] { color: var(--line); }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1.5rem;
  align-items: center;
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-family: var(--ui);
  font-size: .85rem;
  color: var(--ink-3);
  font-weight: 600;
}
.article-meta span { display: inline-flex; align-items: center; gap: .4rem; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-bottom: 4rem;
}
.article-aside { position: sticky; top: 100px; display: grid; gap: 1.2rem; }
@media (max-width: 980px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
}

.toc {
  background: var(--sand-0);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-m);
  padding: 1.25rem 1.3rem;
  box-shadow: var(--sh-1);
}
.toc h2, .toc strong {
  display: block;
  font-family: var(--ui);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: .85rem;
}
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: .1rem; }
.toc a {
  display: flex;
  gap: .6rem;
  padding: .4rem 0;
  font-family: var(--ui);
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  line-height: 1.4;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--brand-soft);
  font-size: .75rem;
  font-weight: 800;
  padding-top: .15rem;
  flex: none;
}
.toc a:hover { color: var(--brand-strong); }

.prose { font-size: 1.09rem; line-height: 1.78; color: var(--ink-2); max-width: 70ch; }
.prose > h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.92rem);
  margin: 2.8rem 0 1rem;
  scroll-margin-top: 96px;
  position: relative;
  padding-top: 1.6rem;
}
.prose > h2::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 46px; height: 3px;
  background: var(--brand);
  border-radius: 2px;
}
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.22rem; margin: 2rem 0 .7rem; scroll-margin-top: 96px; }
.prose h4 { font-size: 1.04rem; margin: 1.6rem 0 .5rem; font-weight: 700; }
.prose ul, .prose ol { margin: 0 0 1.2rem; padding-left: 1.35rem; }
.prose li { margin-bottom: .55rem; }
.prose li::marker { color: var(--brand); font-weight: 700; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.5rem;
  border-left: 4px solid var(--brand);
  background: var(--sand-2);
  border-radius: 0 var(--r-m) var(--r-m) 0;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ink-2);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0;
  font-family: var(--ui);
  font-size: .93rem;
  background: var(--sand-0);
  border-radius: var(--r-m);
  overflow: hidden;
  box-shadow: var(--sh-1);
}
.prose th {
  text-align: left;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .8rem 1rem;
}
.prose td { padding: .8rem 1rem; border-top: 1px solid var(--line-soft); vertical-align: top; color: var(--ink-2); }
.prose tbody tr:nth-child(even) { background: var(--sand-1); }
.table-scroll { overflow-x: auto; }

.callout {
  margin: 2rem 0;
  padding: 1.3rem 1.4rem;
  border-radius: var(--r-m);
  background: var(--brand-wash);
  border: 1px solid rgba(168, 67, 31, .22);
  font-size: 1rem;
}
.callout strong.callout-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--ui);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-strong);
  margin-bottom: .55rem;
}
.callout--pine { background: var(--pine-wash); border-color: rgba(31, 94, 82, .22); }
.callout--pine strong.callout-title { color: var(--pine); }
.callout--amber { background: var(--amber-wash); border-color: rgba(185, 122, 18, .25); }
.callout--amber strong.callout-title { color: var(--amber); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.8rem 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.5rem 3.2rem;
  margin: 0;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--ui);
  font-weight: 800;
  font-size: .92rem;
  display: grid;
  place-items: center;
}
.steps > li::after {
  content: "";
  position: absolute;
  left: 17px; top: 40px; bottom: 6px;
  width: 2px;
  background: var(--line);
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps > li strong { display: block; font-family: var(--ui); color: var(--ink); margin-bottom: .2rem; }

.key-points {
  background: var(--sand-0);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-l);
  padding: 1.5rem 1.6rem;
  margin: 0 0 2.5rem;
  box-shadow: var(--sh-1);
}
.key-points h2 {
  font-size: .76rem !important;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0 0 .9rem !important;
  padding: 0 !important;
}
.key-points h2::before { display: none !important; }
.key-points ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.key-points li {
  display: flex;
  gap: .65rem;
  font-size: .98rem;
  line-height: 1.55;
  margin: 0;
}
.key-points li svg { flex: none; margin-top: .28rem; color: var(--brand); }

.aside-card {
  background: var(--sand-0);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  padding: 1.3rem;
  box-shadow: var(--sh-1);
}
.aside-card h2, .aside-card h3 { font-size: 1rem; margin-bottom: .6rem; }
.aside-card p { font-size: .9rem; color: var(--ink-3); line-height: 1.55; }
.aside-card ul { margin: 0; padding: 0; list-style: none; }
.aside-card ul li { border-top: 1px solid var(--line-soft); }
.aside-card ul li:first-child { border-top: 0; }
.aside-card ul a {
  display: block;
  padding: .65rem 0;
  font-family: var(--ui);
  font-size: .89rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-2);
  text-decoration: none;
}
.aside-card ul a:hover { color: var(--brand-strong); }

.aside-card--brand {
  background: linear-gradient(160deg, var(--ink), #2d221c);
  border-color: transparent;
}
.aside-card--brand h3, .aside-card--brand h2 { color: #fff; }
.aside-card--brand p { color: #cdbdb1; }

/* Navegação entre guias */
.pager {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.pager a {
  display: block;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  background: var(--sand-0);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.pager a:hover { border-color: var(--brand-soft); transform: translateY(-2px); }
.pager small {
  font-family: var(--ui);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
  display: block;
  margin-bottom: .3rem;
}
.pager strong { font-family: var(--ui); font-size: 1rem; color: var(--ink); line-height: 1.3; display: block; }
.pager a.pager--next { text-align: right; }

/* ---------------------------------------------------------
   Ferramentas
   --------------------------------------------------------- */

.tool-shell {
  background: var(--sand-0);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
  overflow: hidden;
}
.tool-topbar {
  background: linear-gradient(135deg, var(--ink), #34261e);
  color: #fff;
  padding: 1.3rem 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.tool-topbar h2, .tool-topbar p { color: #fff; margin: 0; }
.tool-topbar p { font-size: .9rem; color: #cdbdb1; }
.tool-body { padding: clamp(1.4rem, 3vw, 2.4rem); }

.quiz-step { display: none; }
.quiz-step.is-active { display: block; animation: fadeUp .3s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }

.quiz-question { font-size: clamp(1.2rem, 2.4vw, 1.6rem); margin-bottom: 1.4rem; }
.quiz-hint { font-size: .95rem; color: var(--ink-3); margin: -.8rem 0 1.4rem; }

.option-list { display: grid; gap: .7rem; margin-bottom: 2rem; }
.option {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--sand-0);
  cursor: pointer;
  transition: all .16s ease;
  font-size: 1rem;
  line-height: 1.5;
}
.option:hover { border-color: var(--brand-soft); background: var(--sand-1); }
.option input { position: absolute; opacity: 0; width: 0; height: 0; }
.option .radio {
  flex: none;
  width: 20px; height: 20px;
  margin-top: .2rem;
  border-radius: 50%;
  border: 2px solid var(--line);
  transition: all .16s ease;
  position: relative;
}
.option input:checked + .radio { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 4px var(--sand-0); }
.option:has(input:checked) { border-color: var(--brand); background: var(--brand-wash); box-shadow: var(--sh-1); }
.option input:focus-visible + .radio { outline: 3px solid var(--brand-soft); outline-offset: 2px; }

.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.3rem;
}
.quiz-progress { flex: 1 1 180px; }

.score-ring {
  --val: 0;
  width: 168px; height: 168px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--brand) calc(var(--val) * 1%), var(--sand-3) 0);
  position: relative;
  flex: none;
  transition: background .6s ease;
}
.score-ring::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--sand-0);
}
.score-ring b {
  position: relative;
  font-family: var(--ui);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--brand-strong);
  line-height: 1;
}
.score-ring b span { font-size: 1rem; color: var(--ink-4); }

.score-layout {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 1.8rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid var(--line-soft);
}
.score-copy { flex: 1 1 300px; }

.bar-list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: .3rem .8rem; }
.bar-row .bar-name { font-family: var(--ui); font-size: .92rem; font-weight: 600; }
.bar-row .bar-val { font-family: var(--ui); font-size: .85rem; font-weight: 700; color: var(--brand-strong); }
.bar-row .bar-track {
  grid-column: 1 / -1;
  height: 7px;
  border-radius: 999px;
  background: var(--sand-3);
  overflow: hidden;
}
.bar-row .bar-track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-soft), var(--brand));
  width: 0;
  transition: width .8s cubic-bezier(.2,.8,.3,1);
}
.bar-row.is-low .bar-track i { background: linear-gradient(90deg, #d98c6a, var(--brand-strong)); }
.bar-row.is-high .bar-track i { background: linear-gradient(90deg, #3f9184, var(--pine)); }
.bar-row.is-high .bar-val { color: var(--pine); }

/* ---------------------------------------------------------
   Faixa de destaque / CTA
   --------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(2.2rem, 5vw, 3.6rem);
  background:
    radial-gradient(600px 300px at 85% 20%, rgba(200, 104, 63, .5), transparent 65%),
    linear-gradient(135deg, var(--ink), #33251e);
  color: #f3e9e0;
  box-shadow: var(--sh-3);
}
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { color: #d7c8bb; max-width: 52ch; margin-top: .9rem; }
.cta-band .btn--ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); --btn-fg: #fff; }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.16); }
.cta-band .gem { z-index: 0; opacity: .12; }
.cta-inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; }

/* ---------------------------------------------------------
   Formulário
   --------------------------------------------------------- */

.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-family: var(--ui);
  font-size: .84rem;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: .4rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: var(--sand-0);
  font-family: var(--ui);
  font-size: .95rem;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(168,67,31,.15); }

/* ---------------------------------------------------------
   Rodapé
   --------------------------------------------------------- */

.site-footer {
  background: #171210;
  color: #b9a99d;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: .94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: 2.4rem;
  padding-bottom: 2.6rem;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.site-footer .logo span { color: #fff; }
.site-footer p { line-height: 1.65; max-width: 40ch; }
.site-footer h3 {
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: #b9a99d; text-decoration: none; font-family: var(--ui); font-size: .9rem; }
.site-footer a:hover { color: var(--brand-soft); }
.footer-bottom {
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 2rem;
  justify-content: space-between;
  align-items: center;
  font-size: .83rem;
  font-family: var(--ui);
  color: #8a7a6f;
}

/* ---------------------------------------------------------
   Responsivo
   --------------------------------------------------------- */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 520px; margin-inline: auto; }
  .article-layout { padding-bottom: 3rem; }
}

@media (max-width: 880px) {
  .shell, .shell--narrow, .shell--wide { width: min(100% - 1.8rem, var(--shell)); }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed;
    inset: 74px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    background: var(--sand-0);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.2rem 1.6rem;
    box-shadow: 0 30px 50px -26px rgba(74,26,10,.5);
    max-height: calc(100dvh - 74px);
    overflow-y: auto;
    display: none;
  }
  .nav[data-open="true"] { display: flex; animation: dropIn .2s ease both; }
  .nav a, .nav .nav-trigger { padding: .8rem .9rem; border-radius: var(--r-m); width: 100%; justify-content: space-between; font-size: 1rem; }
  .mega { position: static; box-shadow: none; border: 0; padding: .2rem 0 .6rem; background: none; }
  .mega .shell { width: 100%; }
  .mega-grid { grid-template-columns: 1fr; gap: .1rem; }
  .mega-grid a { padding: .6rem .9rem; font-size: .92rem; }
  .mega-grid a small { display: none; }
  .mega-foot { display: none; }
  .explorer-bar { top: 0; }
  .filter-label { width: 100%; margin-bottom: -.2rem; }
  .explorer-bar .filter-group { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; padding-bottom: .4rem; }
  .explorer-bar .filter-group::-webkit-scrollbar { display: none; }
  .section-head { margin-bottom: 1.8rem; }
  .score-layout { justify-content: center; text-align: center; }
  .grid { gap: 1rem; }
}

@media (max-width: 520px) {
  body { font-size: 1.02rem; }
  .prose { font-size: 1.04rem; }
  .card { padding: 1.25rem; }
  .hero-badge { display: none; }
  .btn { width: 100%; }
  .btn-row .btn { width: auto; flex: 1 1 auto; }
  .checklist { padding: 1.2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media print {
  .site-header, .site-footer, .explorer-bar, .btn, .pager, .cta-band { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .article-layout { grid-template-columns: 1fr; }
  a { text-decoration: none; color: #000; }
}
