/* CashVaultMax — estilos
   Paleta tirada do logo: lilás → azul → azul-marinho, sobre fundo branco. */
:root {
  --lilac: #b47cf7;
  --violet: #7c4dff;
  --blue: #2f5bff;
  --navy: #0d1b5e;
  --ink: #141a33;
  --text: #2f3550;
  --muted: #6a7090;
  --line: #e6e8f2;
  --soft: #f5f4ff;
  --soft-2: #eef1ff;
  --bg: #ffffff;
  --ok: #138a5e;
  --ok-bg: #e9f8f1;
  --warn: #b5470f;
  --warn-bg: #fff3ea;
  --danger: #c62f43;
  --danger-bg: #fff0f2;
  --grad: linear-gradient(120deg, var(--lilac) 0%, var(--blue) 55%, var(--navy) 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(20, 26, 51, .05), 0 8px 24px rgba(20, 26, 51, .06);
  --shadow-lg: 0 12px 40px rgba(31, 41, 110, .14);
  --wrap: 1180px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --c: var(--violet);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); font-size: 16.5px; line-height: 1.65; color: var(--text); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.22; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(1.85rem, 1.2rem + 2.6vw, 2.85rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(47, 91, 255, .45); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* ---------- Botões e chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 1.5px solid transparent; border-radius: 999px; padding: .72em 1.3em; font-weight: 700; font-size: .96rem; line-height: 1.2; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s, color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); background-size: 140% 100%; color: #fff; box-shadow: 0 6px 18px rgba(47, 91, 255, .28); }
.btn-primary:hover { color: #fff; background-position: 100% 0; box-shadow: 0 8px 24px rgba(47, 91, 255, .36); }
.btn-soft { background: var(--soft); color: var(--navy); border-color: #e2defc; }
.btn-soft:hover { background: #ebe7ff; color: var(--navy); }
.btn-soft[aria-pressed="true"] { background: #ffe8f0; border-color: #ffc6d8; color: #c02662; }
.btn-soft[aria-pressed="true"] .icon { fill: currentColor; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: #c9cdf0; color: var(--navy); }
.btn-sm { padding: .5em 1em; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 600; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 0; background: transparent; color: var(--ink); position: relative; text-decoration: none; }
.icon-btn:hover { background: var(--soft); color: var(--navy); }
.icon-btn .icon { width: 22px; height: 22px; }
.link-arrow { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; text-decoration: none; color: var(--blue); }
.link-arrow .icon { transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }

.chips { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: .4em; padding: .42em .85em; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); color: var(--text); font-size: .88rem; font-weight: 600; text-decoration: none; line-height: 1.25; transition: border-color .15s, background .15s, color .15s; }
.chip .icon { color: var(--c); width: 1em; height: 1em; }
a.chip:hover, button.chip:hover { border-color: color-mix(in srgb, var(--c) 45%, white); color: var(--ink); }
.chip.is-on { background: var(--c); border-color: var(--c); color: #fff; }
.chip.is-on .icon { color: #fff; }
.chip-sm { font-size: .8rem; padding: .3em .7em; }
.badge { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e5336d; color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.badge-inline { background: var(--violet); color: #fff; border-radius: 9px; padding: 0 6px; font-size: .72rem; }
.badge-inline:empty { display: none; }

/* ---------- Cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; height: 70px; }
.brand { flex: none; display: block; }
.brand img { width: 196px; height: auto; }
.main-nav { display: flex; gap: 4px; margin: 0 auto; }
.main-nav a { padding: .5em .9em; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.main-nav a:hover { background: var(--soft); }
.main-nav a[aria-current] { color: var(--violet); background: var(--soft); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.fav-link[aria-current] { color: #e5336d; }
.pup-chip { display: inline-flex; align-items: center; gap: .45em; margin-left: 6px; padding: .5em 1em; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 700; font-size: .88rem; text-decoration: none; max-width: 230px; }
.pup-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pup-chip:hover { color: #fff; box-shadow: 0 6px 16px rgba(47, 91, 255, .3); }
.menu-btn { display: none; }

.drawer { position: fixed; inset: 0; z-index: 120; background: rgba(13, 27, 94, .35); }
.drawer-panel { position: absolute; inset: 0 auto 0 0; width: min(340px, 88vw); background: #fff; overflow-y: auto; padding: 16px 16px 90px; box-shadow: var(--shadow-lg); animation: slideIn .2s ease; }
@keyframes slideIn { from { transform: translateX(-30px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.drawer-head strong { flex: 1; font-size: 1.1rem; color: var(--ink); }
.drawer-nav, .drawer-temas { display: grid; gap: 2px; }
.drawer-nav a, .drawer-temas a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
.drawer-nav a:hover, .drawer-temas a:hover { background: var(--soft); }
.drawer-temas .icon { color: var(--c); }
.drawer-title { margin: 18px 12px 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }

.tabbar { display: none; }

/* ---------- Busca instantânea ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 130; background: rgba(13, 27, 94, .4); padding: 70px 16px 16px; overflow-y: auto; }
.search-panel { max-width: 720px; margin: 0 auto; background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .18s ease; }
@keyframes pop { from { transform: translateY(-8px); opacity: 0; } }
.search-box { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--line); }
.search-box > .icon { color: var(--violet); width: 22px; height: 22px; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 1.1rem; padding: 10px 0; background: transparent; }
.search-results { max-height: min(62vh, 560px); overflow-y: auto; padding: 8px; }
.search-hint { padding: 10px; margin: 0; color: var(--muted); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.search-hint button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .25em .8em; font-size: .88rem; font-weight: 600; }
.search-hint button:hover { border-color: var(--violet); color: var(--violet); }
.sr-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 14px; text-decoration: none; color: var(--text); }
.sr-item:hover, .sr-item.is-active { background: var(--soft); color: var(--text); }
.sr-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 12%, white); color: var(--c); }
.sr-item strong { display: block; color: var(--ink); line-height: 1.3; }
.sr-item small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.sr-item mark, .card mark { background: #fff1a8; color: inherit; border-radius: 3px; padding: 0 1px; }
.sr-gloss { margin: 4px 6px 8px; padding: 10px 12px; border-radius: 12px; background: var(--soft-2); font-size: .9rem; }
.sr-all { display: block; text-align: center; padding: 12px; font-weight: 700; text-decoration: none; border-top: 1px solid var(--line); margin-top: 6px; }
.sr-empty { padding: 16px; color: var(--muted); }

/* ---------- Migalhas ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 16px 20px 0; font-size: .86rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 4px; color: #b8bbd1; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.crumbs span[aria-current] { color: var(--ink); font-weight: 600; }
.crumbs.wrap { padding: 0; }

/* ---------- Cabeçalhos de página ---------- */
.page-head { padding-top: 28px; padding-bottom: 12px; }
.page-head .lead { max-width: 760px; }
.lead { font-size: 1.12rem; color: #474e6d; line-height: 1.6; }
.eyebrow { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .86rem; font-weight: 700; color: var(--c); text-transform: none; margin-bottom: 10px; }
.eyebrow a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.tema-ic { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: color-mix(in srgb, var(--c) 13%, white); color: var(--c); flex: none; }
.tema-ic .icon { width: 17px; height: 17px; }
.tema-ic-lg { width: 48px; height: 48px; border-radius: 14px; }
.tema-ic-lg .icon { width: 25px; height: 25px; }
.fmt-tag { background: var(--soft); color: var(--navy); border-radius: 999px; padding: .2em .7em; font-size: .78rem; }
.updated { color: var(--muted); font-size: .9rem; }
.sec-sub { color: var(--muted); margin-top: -.2em; }

/* ---------- Home ---------- */
.hero { background: radial-gradient(1000px 420px at 85% -10%, rgba(180, 124, 247, .22), transparent 60%), radial-gradient(700px 380px at -5% 110%, rgba(47, 91, 255, .12), transparent 60%), linear-gradient(#fbfaff, #fff); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; padding-top: 48px; padding-bottom: 52px; }
.hero h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.15rem); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-search { position: relative; display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid #dcd8fb; border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: var(--shadow); margin: 22px 0 22px; }
.hero-search > .icon { color: var(--violet); }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 10px 2px; font-size: 1.02rem; }
.hero-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 20; border: 1px solid var(--line); }
.stats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.stats strong { display: block; font-size: 1.6rem; color: var(--ink); line-height: 1.1; font-weight: 800; }
.stats span { font-size: .86rem; color: var(--muted); }
.hero-side { display: grid; gap: 16px; }
.hero-photo, .doc-photo, .tool-photo { position: relative; margin: 0; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 3 / 2; background: var(--soft); }
.hero-photo img, .doc-photo img, .tool-photo img, .hero-photo .ph, .doc-photo .ph, .tool-photo .ph { width: 100%; height: 100%; object-fit: cover; }
.credit { position: absolute; right: 10px; bottom: 10px; background: rgba(13, 27, 94, .62); color: #fff; font-size: .72rem; padding: 3px 9px; border-radius: 999px; backdrop-filter: blur(4px); max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.age-quick { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.age-quick-title { font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.age-quick-title .icon { color: var(--violet); }
.age-quick-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.age-quick-saved { margin: 10px 0 0; font-size: .9rem; }

.block { padding-top: 56px; padding-bottom: 8px; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.block-head h2 { margin: 0; }
.block-head .sec-sub { margin: 6px 0 0; max-width: 640px; }
.band { background: linear-gradient(180deg, #f7f6ff, #fff); margin-top: 56px; padding-bottom: 48px; border-top: 1px solid var(--line); }
.band .block { padding-top: 48px; }
.band-soft { background: var(--soft-2); border-bottom: 1px solid var(--line); }

.tema-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tema-tile { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s, border-color .15s; position: relative; overflow: hidden; }
.tema-tile::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--c); opacity: .0; transition: opacity .15s; }
.tema-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 35%, white); color: var(--text); }
.tema-tile:hover::after { opacity: 1; }
.tema-tile strong { color: var(--ink); font-size: 1.04rem; line-height: 1.3; margin-top: 6px; }
.tema-tile small { color: var(--muted); font-size: .86rem; line-height: 1.45; }
.tile-count { margin-top: auto; padding-top: 6px; font-size: .78rem; font-weight: 700; color: var(--c); }
.tema-grid-sm { grid-template-columns: repeat(3, 1fr); }
.tema-grid-sm .tema-tile { flex-direction: row; align-items: center; gap: 12px; padding: 14px; }
.tema-grid-sm .tema-tile strong { margin: 0; }

.timeline { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6%; right: 6%; top: 27px; height: 3px; background: linear-gradient(90deg, var(--lilac), var(--blue), var(--navy)); border-radius: 2px; opacity: .35; }
.timeline a { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 0 4px 10px; text-decoration: none; color: var(--text); border-radius: 14px; }
.tl-dot { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid #d8d4fb; color: var(--violet); transition: transform .15s, background .15s; }
.tl-dot .icon { width: 24px; height: 24px; }
.timeline strong { color: var(--ink); font-size: .95rem; line-height: 1.25; margin-top: 4px; }
.timeline small { color: var(--muted); font-size: .8rem; line-height: 1.3; }
.timeline a:hover .tl-dot { transform: scale(1.06); border-color: var(--violet); }
.timeline li.is-active .tl-dot, .timeline li.is-mine .tl-dot { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(47, 91, 255, .3); }
.timeline li.is-active strong { color: var(--violet); }
.timeline li.is-mine small::after { content: "seu filhote"; display: block; color: var(--violet); font-weight: 700; }
.timeline li { min-width: 0; }
.pup-line { margin: 14px 0 0; padding: 12px 16px; background: #fff; border: 1px solid #e1dcfb; border-radius: 14px; }

.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tool-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--text); }
.tool-card h3 { margin: 8px 0 0; }
.tool-card p { font-size: .93rem; color: var(--muted); margin: 0; }
.tool-card .link-arrow { margin-top: auto; padding-top: 10px; }
.tool-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.tool-ic .icon { width: 26px; height: 26px; }

.question-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.question-cloud a { display: inline-flex; align-items: center; gap: 6px; padding: .7em 1.1em; background: #fff; border: 1px solid #dcdff3; border-radius: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.question-cloud a .icon { color: var(--violet); }
.question-cloud a:hover { border-color: var(--violet); color: var(--violet); }

.trust { padding-bottom: 56px; }
.trust-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.trust-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.trust-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius-sm); background: var(--soft); }
.trust-list .icon { color: var(--violet); width: 24px; height: 24px; margin-top: 2px; }
.trust-list strong { display: block; color: var(--ink); }
.trust-list span { font-size: .92rem; color: var(--muted); }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 18px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s, box-shadow .15s; min-width: 0; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; display: block; aspect-ratio: 3 / 2; background: color-mix(in srgb, var(--c) 10%, white); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-media img { transform: scale(1.03); }
.card-media .ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--c); }
.ph-icon { width: 44px; height: 44px; opacity: .6; }
.ph { display: grid; place-items: center; background: color-mix(in srgb, var(--c) 10%, white); color: var(--c); }
.card-format { position: absolute; left: 12px; top: 12px; background: rgba(255, 255, 255, .94); color: var(--navy); font-size: .74rem; font-weight: 700; padding: .25em .7em; border-radius: 999px; }
.card-tema .card-format { background: var(--c); color: #fff; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-tema-link { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--c); text-decoration: none; margin-bottom: 6px; }
.card h3 { font-size: 1.05rem; margin: 0 0 6px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card h3 a:hover { color: var(--violet); }
.card-body p { font-size: .9rem; color: var(--muted); line-height: 1.5; margin: 0 0 10px; }
.card-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--muted); }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-meta .icon { color: var(--violet); width: 14px; height: 14px; }
.card-tema-link { position: relative; z-index: 2; }
.fav-btn { position: absolute; z-index: 3; right: 10px; top: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); color: var(--ink); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); transition: transform .15s; }
.fav-btn:hover { transform: scale(1.08); }
.fav-btn .icon { width: 19px; height: 19px; }
.fav-btn[aria-pressed="true"] { color: #e5336d; }
.fav-btn[aria-pressed="true"] .icon { fill: currentColor; }
.fav-btn.pulse { animation: pulse .35s ease; }
@keyframes pulse { 50% { transform: scale(1.25); } }

/* Lista (modo de exibição) */
.cards.is-list { grid-template-columns: 1fr; gap: 10px; }
.cards.is-list .card { flex-direction: row; align-items: stretch; }
.cards.is-list .card-media { width: 170px; flex: none; aspect-ratio: auto; }
.cards.is-list .card-format { display: none; }
.cards.is-list .card-body { padding: 12px 56px 12px 16px; }
.cards-mini .card-body p { display: none; }
.cards-mini h3 { font-size: .95rem; }

.group-title { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 1.15rem; }
.group-title:first-child { margin-top: 0; }
.group-title small { color: var(--muted); font-weight: 600; font-size: .85rem; }

/* ---------- Explorador ---------- */
.explorer { padding-bottom: 40px; }
.explorer-search { display: flex; gap: 10px; margin: 6px 0 22px; }
.search-field { flex: 1; display: flex; align-items: center; gap: 10px; border: 1.5px solid #dcd8fb; background: #fff; border-radius: 14px; padding: 0 14px; min-width: 0; }
.search-field:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 77, 255, .12); }
.search-field .icon { color: var(--violet); }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 13px 0; background: transparent; font-size: 1rem; }
.explorer-grid { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.filters { position: sticky; top: 90px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; max-height: calc(100vh - 110px); overflow-y: auto; }
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.filters-title { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); margin: 0; }
.filters fieldset { border: 0; padding: 0; margin: 14px 0 0; }
.filters legend { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 8px; }
.filters .chip { font-size: .83rem; }
.pup-filter { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; }
.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.results-count { margin: 0; color: var(--muted); }
.results-count strong { color: var(--ink); font-size: 1.1rem; }
.results-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.select-sm select { border: 1.5px solid var(--line); border-radius: 999px; padding: .45em 2em .45em 1em; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236a7090' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .8em center; appearance: none; font-size: .88rem; font-weight: 600; }
.view-toggle { display: inline-flex; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.view-toggle .icon-btn { width: 38px; height: 36px; border-radius: 0; }
.view-toggle .icon-btn.is-on { background: var(--soft); color: var(--violet); }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.active-filters:empty { display: none; }
.active-filters button { display: inline-flex; align-items: center; gap: 4px; border: 0; background: var(--soft); color: var(--navy); border-radius: 999px; padding: .3em .55em .3em .8em; font-size: .82rem; font-weight: 700; }
.active-filters button .icon { width: 14px; height: 14px; }
.empty { text-align: center; padding: 40px 20px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty-ic { width: 44px; height: 44px; color: var(--lilac); margin-bottom: 8px; }
.empty strong { color: var(--ink); }
.show-sm { display: none; }
.card.is-flash { animation: flash 1.2s ease; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 4px var(--violet); } }

/* ---------- Página de conteúdo ---------- */
.doc-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 22px; padding-bottom: 28px; }
.doc-hero h1 { margin-bottom: .35em; }
.doc-meta { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--muted); }
.doc-meta li { display: inline-flex; align-items: center; gap: 6px; }
.doc-meta .icon { color: var(--c); }
.doc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; padding-bottom: 20px; }
.doc-side { position: sticky; top: 90px; display: grid; gap: 14px; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; font-size: .92rem; }
.side-box p { margin-bottom: .7em; }
.side-title { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); font-size: .95rem; }
.side-title .icon { color: var(--violet); }
.side-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.side-list a { color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.35; display: block; }
.side-list a:hover { color: var(--violet); }
.side-warn { background: var(--warn-bg); border-color: #ffd9c2; }
.side-warn .side-title .icon { color: var(--warn); }
.side-mini { font-size: .82rem; color: var(--muted); margin: 12px 0 6px; }
.pup-box { background: linear-gradient(160deg, #f6f2ff, #eef2ff); border-color: #e0dbfb; }
.pup-box.has-pup p strong { color: var(--violet); }
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-size: .9rem; }
.toc-title { font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; border-left: 3px solid transparent; line-height: 1.35; }
.toc a:hover { color: var(--ink); background: var(--soft); }
.toc a.is-current { color: var(--violet); border-left-color: var(--violet); background: var(--soft); font-weight: 700; }

.prose { font-size: 1.04rem; }
.prose .sec { margin-top: 40px; }
.prose .intro p:first-child { font-size: 1.1rem; color: #3b425f; }
.prose h2 { scroll-margin-top: 90px; }
.prose ul, .lista { padding-left: 1.2em; }
.prose li, .lista li { margin-bottom: .45em; }
.lista-check, .prose .lista-check, .prose .ck-list, .prose .steps { list-style: none; padding-left: 0; }
.lista-check li { position: relative; padding-left: 28px; }
.lista-check li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 6px; background: color-mix(in srgb, var(--c) 14%, white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237c4dff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center; }
.lista-sm li { font-size: .9rem; margin-bottom: .35em; }
.prose-narrow { max-width: 820px; }
.prose-narrow.wrap { margin-left: auto; margin-right: auto; }
.box-soft { background: var(--soft); border-radius: var(--radius); padding: 20px; }
.box-soft h2 { font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.box-soft h2 .icon { color: var(--violet); }
.box-warn { background: var(--warn-bg); }
.box-warn h2 .icon { color: var(--warn); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.duo .sec { margin-top: 0; }

.box { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; margin: 16px 0; font-size: .96rem; }
.box > .icon { width: 22px; height: 22px; margin-top: 2px; }
.box p, .box ul { margin: 0; }
.box ul { padding-left: 1.1em; }
.box-tip { background: var(--soft-2); color: #2a3463; }
.box-tip > .icon { color: var(--blue); }
.box-alert { background: var(--danger-bg); color: #6d1a26; }
.box-alert > .icon { color: var(--danger); }
.box-ok { background: var(--ok-bg); color: #0d5139; }
.box-ok > .icon { color: var(--ok); }

/* Abas por fase */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: thin; }
.tabs button { flex: none; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .45em 1em; font-weight: 700; font-size: .9rem; color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--grad); color: #fff; border-color: transparent; }
.tabs button.is-mine:not([aria-selected="true"]) { border-color: var(--violet); color: var(--violet); }
.tab-panel { background: var(--soft); border-radius: var(--radius); padding: 18px 20px; }
.tab-panel h3 small { font-weight: 600; color: var(--muted); font-size: .85rem; margin-left: 6px; }

/* Passos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.step { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: background .2s, border-color .2s; }
.step h3 { margin-bottom: .3em; }
.step p { margin: 0; }
.step-check { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--c) 40%, white); background: #fff; color: var(--c); font-weight: 800; display: grid; place-items: center; }
.step-check .icon { display: none; width: 20px; height: 20px; }
.step.is-done { background: var(--ok-bg); border-color: #bfe8d5; }
.step.is-done .step-check { background: var(--ok); border-color: var(--ok); color: #fff; }
.step.is-done .step-check span { display: none; }
.step.is-done .step-check .icon { display: block; }

/* Checklist */
.checklist { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.checklist-head h2 { display: flex; align-items: center; gap: 10px; }
.checklist-head h2 .icon { color: var(--violet); }
.progress { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 99px; transition: width .3s; }
.checklist-count { font-size: .88rem; color: var(--muted); margin: 6px 0 12px; }
.ck-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.ck-list label { display: flex; gap: 12px; align-items: flex-start; padding: 9px 10px; border-radius: 12px; cursor: pointer; transition: background .15s; }
.ck-list label:hover { background: var(--soft); }
.ck-list input { position: absolute; opacity: 0; pointer-events: none; }
.ck-box { flex: none; width: 24px; height: 24px; border-radius: 8px; border: 2px solid #c9c5f3; display: grid; place-items: center; color: transparent; margin-top: 1px; transition: background .15s, border-color .15s; }
.ck-box .icon { width: 15px; height: 15px; }
.ck-list input:checked + .ck-box { background: var(--ok); border-color: var(--ok); color: #fff; }
.ck-list input:checked ~ .ck-text { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(106, 112, 144, .5); }
.ck-list input:focus-visible + .ck-box { outline: 3px solid rgba(47, 91, 255, .45); outline-offset: 2px; }
.checklist-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.checklist.is-complete .checklist-head h2::after { content: "Concluído!"; font-size: .75rem; background: var(--ok); color: #fff; border-radius: 99px; padding: .2em .7em; }

/* Erros comuns */
.erros { display: grid; gap: 12px; }
.erro { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.erro p { display: flex; gap: 10px; margin: 0; padding: 12px 16px; }
.erro .icon { margin-top: 3px; }
.erro-x { background: var(--danger-bg); color: #5d1822; font-weight: 600; }
.erro-x .icon { color: var(--danger); }
.erro-ok { background: #fff; }
.erro-ok .icon { color: var(--ok); }

/* Veterinário */
.vet { background: linear-gradient(160deg, #fff6f3, #fff); border: 1px solid #ffd9c9; border-radius: var(--radius); padding: 20px; }
.vet > h2 { display: flex; align-items: center; gap: 10px; }
.vet > h2 .icon { color: var(--danger); }
.vet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vet-col { background: #fff; border-radius: 14px; padding: 14px 16px; border: 1px solid #f4e3dc; }
.vet-col h3 { font-size: .98rem; display: flex; align-items: center; gap: 8px; }
.vet-urg h3 { color: var(--danger); }
.vet-col h3 .icon { color: currentColor; }
.vet-col ul { margin: 0; font-size: .95rem; }
.vet-note { font-size: .86rem; color: var(--muted); margin: 12px 0 0; }

/* FAQ / acordeão */
.faq-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.faq-head h2 { margin: 0; }
.faq details, .acc details { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; background: #fff; }
.faq summary, .acc summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-weight: 700; color: var(--ink); cursor: pointer; }
.faq summary::-webkit-details-marker, .acc summary::-webkit-details-marker { display: none; }
.faq-ic { margin-left: auto; color: var(--muted); transition: transform .2s; }
details[open] > summary .faq-ic { transform: rotate(180deg); }
.faq details > div, .acc details > div { padding: 0 16px 14px; }
.faq details > div p { margin: 0; }
.faq-main details { background: var(--soft); border-color: transparent; }

.tema-cta { display: flex; gap: 14px; align-items: flex-start; margin-top: 40px; padding: 18px; background: var(--soft); border-radius: var(--radius); }
.tema-cta p { margin-bottom: .4em; }
.prioridades { display: grid; gap: 10px; }
.prioridade { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 14px; background: #fff; }
.prioridade h3 { margin-bottom: .25em; }
.prioridade p { margin-bottom: .5em; font-size: .97rem; }
.prio-n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: color-mix(in srgb, var(--c) 14%, white); color: var(--c); display: grid; place-items: center; font-weight: 800; }

.related { padding-top: 40px; padding-bottom: 20px; }
.doc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 24px; padding-bottom: 40px; }
.doc-pager a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 700; }
.doc-pager a:hover { border-color: var(--violet); }
.doc-pager small { color: var(--muted); font-weight: 600; }
.doc-pager span { display: flex; align-items: center; gap: 8px; }
.pager-next { text-align: right; }
.pager-next span { justify-content: flex-end; }

/* ---------- Ferramentas ---------- */
.tool-hero { background: linear-gradient(180deg, #f8f6ff, #fff); border-bottom: 1px solid var(--line); }
.tool-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 24px; padding-bottom: 36px; }
.tool-hero-sm .tool-photo { aspect-ratio: 16 / 9; }
.card-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: grid; gap: 14px; margin-top: 18px; }
.field { display: grid; gap: 6px; font-weight: 600; color: var(--ink); font-size: .95rem; }
.field .opt { color: var(--muted); font-weight: 500; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row label, .form label, .add-task label, .planner-config label { display: grid; gap: 6px; font-weight: 600; color: var(--ink); font-size: .92rem; }
.input { width: 100%; border: 1.5px solid #dcdcec; border-radius: 12px; padding: .7em .9em; background: #fff; font-size: 1rem; font-weight: 500; }
.input:focus { outline: 0; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 77, 255, .12); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--soft); padding: 5px; border-radius: 14px; }
.seg label { position: relative; text-align: center; padding: .6em; border-radius: 10px; font-weight: 700; font-size: .92rem; cursor: pointer; color: var(--muted); }
.seg input { position: absolute; opacity: 0; }
.seg label:has(input:checked) { background: #fff; color: var(--violet); box-shadow: var(--shadow); }
.seg label:has(input:focus-visible) { outline: 3px solid rgba(47, 91, 255, .45); }
.check-line { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--muted); font-weight: 500; }
.check-line input { width: 18px; height: 18px; accent-color: var(--violet); }

.result { padding-top: 32px; padding-bottom: 20px; }
.result-summary { display: flex; gap: 20px; align-items: flex-start; padding: 26px; border-radius: 24px; background: radial-gradient(600px 220px at 100% 0, rgba(180, 124, 247, .2), transparent 70%), linear-gradient(160deg, #f7f4ff, #eef2ff); border: 1px solid #e0dbfb; margin-bottom: 26px; }
.result-badge { flex: none; width: 64px; height: 64px; border-radius: 20px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(47, 91, 255, .3); }
.result-badge .icon { width: 32px; height: 32px; }
.result-kicker { font-weight: 700; color: var(--violet); margin-bottom: 4px; }
.result-summary h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.result-summary h2 span { color: var(--muted); font-weight: 600; font-size: .7em; }
.growth { margin: 6px 0 14px; max-width: 520px; }
.growth-bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .8); overflow: hidden; border: 1px solid #ddd8fb; }
.growth-bar span { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.growth p { margin: 4px 0 0; color: var(--muted); }
.result-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; margin-top: 26px; }
.result-grid .sec:first-child { margin-top: 0; }
.result-side { display: grid; gap: 14px; position: sticky; top: 90px; }
.plan-group { margin-top: 14px; }
.plan-group h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin-bottom: 4px; }
.plan-group h3 a { color: var(--ink); text-decoration: none; }
.plan-group h3 a:hover { color: var(--c); }
.how { padding-top: 40px; padding-bottom: 40px; }
.how-steps { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-steps li { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--soft); }
.how-steps li > span { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; }
.how-steps p { margin: 0; font-size: .93rem; }

/* Organizador de rotina */
.planner { padding-top: 26px; padding-bottom: 30px; }
.planner-config { display: grid; grid-template-columns: 2fr 1fr auto; gap: 12px; align-items: end; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.planner-status { margin-top: 12px; }
.planner-status p { display: flex; gap: 8px; align-items: center; margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--soft-2); font-size: .92rem; }
.planner-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; margin-top: 24px; }
.planner-side { display: grid; gap: 14px; position: sticky; top: 90px; }
.day-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.day-progress { display: flex; align-items: center; gap: 12px; flex: none; }
.day-progress p { margin: 0; font-size: .9rem; line-height: 1.3; }
.ring { --p: 0; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--violet) calc(var(--p) * 1%), var(--soft) 0); position: relative; flex: none; }
.ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.ring span { position: relative; font-weight: 800; font-size: .85rem; color: var(--ink); }
.ring-lg { width: 92px; height: 92px; }
.ring-lg::before { inset: 10px; }
.ring-lg span { font-size: 1.1rem; }
.daybar { position: relative; height: 26px; border-radius: 10px; background: #f1f1f8; overflow: hidden; margin-top: 14px; }
.daybar i { position: absolute; top: 0; bottom: 0; background: var(--c); opacity: .85; min-width: 2px; }
.daybar i.is-done { opacity: .3; }
.daybar b { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--danger); }
.daybar-scale { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin: 4px 0 16px; }
.pl-filter { margin-bottom: 14px; }
.pl-filter .chip { font-size: .82rem; }
.tasks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.task { display: grid; grid-template-columns: 60px 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 14px; background: #fff; transition: background .2s, opacity .2s; }
.task.is-now { box-shadow: 0 0 0 2px color-mix(in srgb, var(--violet) 40%, white); }
.task-time { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.task-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 13%, white); color: var(--c); }
.task-body p { margin: 0; }
.task-title { font-weight: 700; color: var(--ink); line-height: 1.35; }
.task-meta { font-size: .8rem; color: var(--muted); }
.task-tip { font-size: .85rem; color: #4d5476; margin-top: 4px !important; }
.task-actions { display: flex; gap: 2px; align-items: center; }
.task-actions .icon-btn { width: 34px; height: 34px; }
.task-actions .icon-btn .icon { width: 17px; height: 17px; }
.task-done { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #c9c5f3; background: #fff; display: grid; place-items: center; color: transparent; }
.task-done .icon { width: 17px; height: 17px; }
.task.is-done { background: #f7fbf9; }
.task.is-done .task-done { background: var(--ok); border-color: var(--ok); color: #fff; }
.task.is-done .task-title { text-decoration: line-through; color: var(--muted); }
.task-edit { grid-column: 1 / -1; display: grid; grid-template-columns: 110px 1fr 90px 150px auto; gap: 8px; align-items: end; }
.task-edit .input { padding: .5em .7em; font-size: .92rem; }
.planner-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.add-task { display: grid; gap: 10px; }
.cat-stats { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.cat-stats li { display: grid; grid-template-columns: 20px 1fr auto auto; gap: 8px; align-items: center; }
.cat-stats .icon { color: var(--c); }
.cat-stats small { color: var(--muted); min-width: 56px; text-align: right; }
.rotina-guia { padding-bottom: 40px; padding-top: 20px; }

/* Central de checklists */
.cl-overview { display: flex; gap: 24px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, #f8f6ff, #fff); margin-bottom: 20px; }
.cl-overview p { margin-bottom: 10px; }
.cl-overview .chip-group { margin-bottom: 10px; }
.cl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: start; padding-bottom: 40px; }
.cl-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.cl-card summary { list-style: none; display: flex; gap: 12px; align-items: center; padding: 14px 16px; cursor: pointer; }
.cl-card summary::-webkit-details-marker { display: none; }
.cl-sum { flex: 1; min-width: 0; display: grid; gap: 4px; }
.cl-sum strong { color: var(--ink); line-height: 1.3; }
.cl-sum small { color: var(--muted); }
.cl-card .checklist { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); padding: 12px 14px; }
.cl-card.is-complete summary strong::after { content: " ✓"; color: var(--ok); }

/* Temas e fases (listas) */
.temas-list, .fase-list { display: grid; gap: 16px; padding-bottom: 40px; }
.fase-list { margin-top: 24px; grid-template-columns: repeat(2, 1fr); }
.tema-row, .fase-card { display: grid; grid-template-columns: 260px 1fr; gap: 22px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.fase-card { grid-template-columns: 180px 1fr; }
.tema-row-media, .fase-card-media { border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 2; display: block; background: var(--soft); }
.tr-img { width: 100%; height: 100%; object-fit: cover; }
.tema-row h2, .fase-card h2 { font-size: 1.3rem; margin-bottom: .3em; }
.tema-row h2 a, .fase-card h2 a { color: var(--ink); text-decoration: none; }
.tema-row h2 a:hover, .fase-card h2 a:hover { color: var(--violet); }
.tema-row-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.tema-row-links a { display: flex; gap: 4px; align-items: flex-start; font-size: .92rem; font-weight: 600; text-decoration: none; color: var(--navy); line-height: 1.4; }
.tema-row-links .icon { color: var(--c); margin-top: 2px; }

/* Glossário */
.az { display: flex; flex-wrap: wrap; gap: 4px; margin: 16px 0 10px; }
.az a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--soft); text-decoration: none; font-weight: 800; color: var(--navy); }
.az a:hover { background: var(--violet); color: #fff; }
.gloss-group h2 { font-size: 1.5rem; color: var(--violet); border-bottom: 2px solid var(--soft); padding-bottom: 4px; margin-top: 26px; }
.gloss-group dl { margin: 0; }
.gloss-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.gloss-item dt { font-weight: 800; color: var(--ink); }
.gloss-item dd { margin: 4px 0 0; }
.gloss-item:target { background: #fffbe6; border-radius: 10px; padding-left: 10px; }
[data-gloss] { padding-bottom: 40px; }

/* Formulários, institucionais */
.form { display: grid; gap: 14px; }
.hp { position: absolute; left: -9999px; }
.fs-hint, .contact-alt { font-size: .88rem; color: var(--muted); }
.credits li { font-size: .95rem; }
.sitemap-cols { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding-bottom: 40px; }
.sitemap-cols ul { padding-left: 1.1em; }
.sitemap-cols h3 { margin-top: 1.2em; font-size: 1.05rem; }
.page-404 { text-align: center; padding: 60px 20px; max-width: 640px; }
.page-404 .explorer-search { margin: 20px 0; }
.big-ic .icon { width: 72px; height: 72px; color: var(--lilac); }
.h-sec { margin-top: 40px; }
.gloss-hits { margin-bottom: 10px; }

/* Rodapé */
.vet-strip { display: flex; gap: 14px; align-items: flex-start; margin-top: 50px; margin-bottom: 0; padding-top: 18px; padding-bottom: 18px; background: #fff7f3; border: 1px solid #ffe0d2; border-radius: var(--radius); font-size: .92rem; max-width: calc(var(--wrap) - 40px); }
.vet-strip > .icon { color: var(--danger); width: 26px; height: 26px; margin-top: 2px; }
.vet-strip p { margin: 0; }
.site-footer { margin-top: 40px; background: var(--navy); background: linear-gradient(160deg, #0d1b5e, #141047 70%); color: #c8cbe8; padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { width: 200px; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 14px; }
.footer-brand p { font-size: .92rem; }
.site-footer h2 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.site-footer a { color: #c8cbe8; text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-temas { grid-template-columns: 1fr; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 34px; padding-top: 18px; font-size: .85rem; }
.footer-bottom p { margin: 0; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; z-index: 150; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); text-align: center; animation: pop .2s ease; }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px 16px; display: flex; gap: 14px; align-items: center; z-index: 140; font-size: .88rem; }
.cookie p { margin: 0; }
.ad-slot { margin: 30px 0; text-align: center; }
.ad-label { display: block; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .main-nav a { padding: .5em .6em; font-size: .9rem; }
  .tema-grid, .tools { grid-template-columns: repeat(3, 1fr); }
  .doc-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; }
  .explorer-grid { grid-template-columns: 240px 1fr; gap: 20px; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .cards-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  body { padding-bottom: 72px; }
  .main-nav, .hide-sm { display: none; }
  .menu-btn { display: inline-grid; }
  .header-inner { height: 62px; gap: 6px; }
  .brand { margin-right: auto; }
  .brand img { width: 168px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .7rem; font-weight: 700; color: var(--muted); text-decoration: none; padding: 4px 0; }
  .tabbar a .icon { width: 22px; height: 22px; }
  .tabbar a[aria-current] { color: var(--violet); }
  .tabbar .tab-main .icon { width: 44px; height: 44px; padding: 10px; margin-top: -22px; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(47, 91, 255, .35); }
  .hero-grid, .doc-hero, .tool-hero-grid, .trust-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero-grid { padding-top: 28px; padding-bottom: 32px; }
  .doc-photo, .tool-photo { order: -1; }
  .doc-layout, .result-grid, .planner-grid, .explorer-grid { grid-template-columns: minmax(0, 1fr); }
  .timeline { min-width: 0; }
  .doc-side, .result-side, .planner-side { position: static; }
  .doc-side .toc { display: none; }
  .filters { position: fixed; inset: auto 0 0 0; z-index: 125; max-height: 78vh; border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg); padding-bottom: calc(80px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .25s; top: auto; }
  .filters.is-open { transform: none; }
  .show-sm { display: inline-flex; }
  .timeline { grid-template-columns: repeat(6, minmax(110px, 1fr)); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .timeline li { scroll-snap-align: start; }
  .timeline::before { left: 50px; right: auto; width: 640px; }
  .fase-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cookie { bottom: 82px; }
  .toast { bottom: 90px; }
  .planner-config { grid-template-columns: 1fr 1fr; }
  .planner-config button { grid-column: 1 / -1; }
  .sitemap-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .btn { white-space: normal; text-align: center; }
  .crumbs ol { padding: 12px 16px 0; }
  .tema-grid, .tools, .cards-2, .cards-3 { grid-template-columns: 1fr; }
  .tema-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tema-tile { padding: 14px; }
  .tema-tile small { display: none; }
  .tema-grid-sm { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: 1fr 1fr; }
  .block { padding-top: 40px; }
  .block-head { flex-direction: column; align-items: flex-start; }
  .hero-search { border-radius: 18px; flex-wrap: wrap; padding: 8px 8px 8px 14px; }
  .hero-search .btn { width: 100%; }
  .hero-search input { width: calc(100% - 40px); }
  .age-quick-row { grid-template-columns: 1fr 1fr; }
  .age-quick-row .btn { grid-column: 1 / -1; }
  .explorer-search { flex-direction: column; }
  .results-tools { width: 100%; }
  .hide-xs { display: none; }
  .duo, .vet-grid, .how-steps, .cl-grid, .field-row { grid-template-columns: 1fr; }
  .tema-row, .fase-card { grid-template-columns: 1fr; gap: 12px; }
  .tema-row-links { grid-template-columns: 1fr; }
  .doc-pager { grid-template-columns: 1fr; }
  .result-summary { flex-direction: column; padding: 20px; }
  .cards.is-list .card-media { width: 110px; }
  .cards.is-list .card-body p { display: none; }
  .task { grid-template-columns: 48px minmax(0, 1fr); gap: 4px 10px; align-items: start; }
  .task-ic { display: none; }
  .task-actions { grid-column: 2; justify-content: flex-end; margin-top: -4px; }
  .doc-layout { padding-top: 6px; }
  .task-edit { grid-template-columns: 1fr 1fr; }
  .task-edit > :nth-child(2) { grid-column: 1 / -1; order: -1; }
  .day-head { flex-direction: column; }
  .planner-config { grid-template-columns: 1fr; }
  .cl-overview { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie { flex-direction: column; align-items: stretch; }
  .vet-strip { margin-left: 16px; margin-right: 16px; padding: 14px; width: auto; }
  h1 { font-size: 1.75rem; }
  .hero h1 { font-size: 2rem; }
}

/* ---------- Impressão ---------- */
@media print {
  .site-header, .tabbar, .site-footer, .crumbs, .doc-side, .related, .doc-pager, .doc-actions, .checklist-actions, .fav-btn, .cookie, .toast, .search-overlay, .drawer, .planner-config, .planner-side, .planner-actions, .pl-filter, .tool-hero, .vet-strip, .ad-slot, .faq-head button, .result-side, .timeline { display: none !important; }
  body { padding: 0; font-size: 12pt; color: #000; }
  .doc-layout, .result-grid, .planner-grid { display: block; }
  .doc-hero { display: block; padding: 0; }
  .doc-photo { display: none; }
  details > div { display: block !important; }
  .card, .step, .task, .checklist, .vet, .erro { break-inside: avoid; box-shadow: none; }
  a { color: #000; text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
