/* Cartilha Online — vícios modernos e controle parental */
:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --surface-2: #f3eee6;
  --text: #1f2a30;
  --muted: #5a6870;
  --primary: #0f6b6b;
  --primary-ink: #ffffff;
  --primary-soft: #e0f0ee;
  --accent: #d9822b;
  --accent-soft: #fbeedd;
  --danger: #b4412f;
  --danger-soft: #fbe6e2;
  --border: #e4ddd2;
  --shadow: 0 1px 2px rgba(31, 42, 48, .06), 0 6px 20px rgba(31, 42, 48, .06);
  --radius: 14px;
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12181b;
    --surface: #1a2226;
    --surface-2: #222c31;
    --text: #e8eef0;
    --muted: #a4b2b8;
    --primary: #4fb8b0;
    --primary-ink: #0c1416;
    --primary-soft: #183433;
    --accent: #f0a55a;
    --accent-soft: #3a2b1b;
    --danger: #ef8a78;
    --danger-soft: #3b211d;
    --border: #2e3a40;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }

/* Garante que [hidden] sempre esconda, mesmo em elementos com display próprio (ex.: .badge-won) */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

a { color: var(--primary); }
a:hover { text-decoration-thickness: 2px; }

img { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--primary); color: var(--primary-ink); padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

/* ---------- Topo / navegação ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { font-weight: 800; color: var(--text); text-decoration: none; white-space: nowrap; font-size: 1.05rem; }
.brand span { color: var(--primary); }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  white-space: nowrap; text-decoration: none; color: var(--muted);
  padding: 6px 12px; border-radius: 999px; font-size: .92rem; font-weight: 700;
}
.nav a:hover, .nav a.active { background: var(--primary-soft); color: var(--primary); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; }
.hero .eyebrow {
  display: inline-block; background: var(--accent-soft); color: var(--accent);
  font-weight: 800; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin: 16px 0 12px; letter-spacing: -.01em; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 720px; margin: 0 0 24px; }
.verse {
  border-left: 4px solid var(--accent); background: var(--surface);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; max-width: 720px;
  box-shadow: var(--shadow); font-style: italic; margin: 0 0 28px;
}
.verse cite { display: block; font-style: normal; font-weight: 700; color: var(--muted); margin-top: 6px; font-size: .92rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 2px solid var(--primary); background: var(--primary); color: var(--primary-ink);
  font: inherit; font-weight: 800; font-size: 1rem; padding: 12px 20px; border-radius: 12px; text-decoration: none;
}
.btn.ghost { background: transparent; color: var(--primary); }
.btn:hover { filter: brightness(1.06); }
.btn:focus-visible, .nav a:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Seções ---------- */
section.block { padding: 48px 0; border-top: 1px solid var(--border); }
section.block > .wrap > h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin: 0 0 8px; line-height: 1.2; }
section.block > .wrap > p.intro { color: var(--muted); max-width: 760px; margin: 0 0 28px; font-size: 1.08rem; }
h3 { font-size: 1.25rem; margin: 0 0 8px; line-height: 1.3; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.card .icon { font-size: 1.8rem; line-height: 1; margin-bottom: 10px; display: block; }
.card p { margin: 0; color: var(--muted); }

.callout {
  background: var(--primary-soft); border-radius: var(--radius); padding: 20px 24px; margin: 28px 0 0;
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
}
.callout.warn { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.callout.danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.callout strong.big { display: block; font-size: 1.25rem; margin-bottom: 4px; }
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }

/* ---------- Passos ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 16px; }
.steps > li {
  counter-increment: step; position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 20px 20px 76px; box-shadow: var(--shadow);
}
.steps > li::before {
  content: counter(step); position: absolute; left: 20px; top: 20px;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: var(--primary-ink); font-weight: 800; font-size: 1.1rem;
}
.steps > li p { margin: 0 0 8px; }
.steps > li ul, .steps > li ol { margin: 6px 0 0; padding-left: 20px; }
.steps > li li { margin: 4px 0; }

.path {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .88em;
  background: var(--surface-2); padding: 1px 6px; border-radius: 6px; white-space: normal;
}

/* ---------- Acordeões (guias por plataforma) ---------- */
.guides { display: grid; gap: 12px; }
details.guide {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
details.guide > summary {
  cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 800; font-size: 1.12rem;
  display: flex; align-items: center; gap: 12px;
}
details.guide > summary::-webkit-details-marker { display: none; }
details.guide > summary .tag { margin-left: auto; font-size: .78rem; font-weight: 700; color: var(--muted); background: var(--surface-2); padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
details.guide > summary::after { content: "+"; font-size: 1.4rem; color: var(--primary); width: 20px; text-align: center; }
details.guide[open] > summary::after { content: "–"; }
.guide-body { padding: 0 20px 20px; border-top: 1px solid var(--border); }
.guide-body ol { padding-left: 22px; }
.guide-body li { margin: 8px 0; }
.guide-body .src { font-size: .9rem; color: var(--muted); margin-top: 12px; }

/* ---------- Tabela de idades ---------- */
.ages { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.age { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.age .range { font-weight: 800; color: var(--primary); font-size: .95rem; text-transform: uppercase; letter-spacing: .03em; }
.age .time { font-size: 1.5rem; font-weight: 800; margin: 4px 0; line-height: 1.2; }
.age p { margin: 0; color: var(--muted); font-size: .95rem; }
.footnote { font-size: .9rem; color: var(--muted); margin-top: 12px; }

/* ---------- Autoteste / checklists ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist label {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
}
.checklist input[type="checkbox"] { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--primary); flex: none; }
.checklist label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }

.result {
  margin-top: 16px; padding: 18px 20px; border-radius: var(--radius); font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--border);
}
.result[data-level="1"] { background: var(--primary-soft); }
.result[data-level="2"] { background: var(--accent-soft); }
.result[data-level="3"] { background: var(--danger-soft); }

.progress { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 8px 0 16px; }
.progress > span { display: block; height: 100%; width: 0; background: var(--primary); transition: width .3s; }

.two-col { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* ---------- Acordo familiar ---------- */
.pact { background: var(--surface); border: 2px dashed var(--border); border-radius: var(--radius); padding: 24px; }
.pact h3 { text-align: center; }
.pact .row { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 12px 0; }
@media (min-width: 640px) { .pact .row { grid-template-columns: 1fr 1fr; } }
.pact label { display: block; font-weight: 700; font-size: .95rem; }
.pact input[type="text"], .pact textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px; margin-top: 4px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text);
}
.pact textarea { min-height: 80px; resize: vertical; }
.sign { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; margin-top: 28px; }
.sign div { border-top: 1px solid var(--text); padding-top: 6px; text-align: center; font-size: .9rem; color: var(--muted); }

/* ---------- Ajuda ---------- */
.help .card strong.num { display: block; font-size: 1.8rem; color: var(--primary); line-height: 1.1; margin: 4px 0; }

/* ---------- Rodapé ---------- */
footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--muted); font-size: .95rem; }
footer p { margin: 0 0 8px; }

.print-only { display: none; }
.muted { color: var(--muted); margin: 0; }
.src { font-size: .95rem; color: var(--muted); margin-top: 20px; word-break: break-word; }

/* ---------- Migalhas ---------- */
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

/* ---------- Cartões de missão ---------- */
.mission-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.mission-grid.one { grid-template-columns: 1fr; }
.mission {
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px;
  text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .15s, border-color .15s;
}
.mission:hover { transform: translateY(-2px); border-color: var(--primary); }
.mission .m-icon { grid-row: 1 / 4; font-size: 2rem; line-height: 1; align-self: center; }
.mission .m-name { font-weight: 800; line-height: 1.25; }
.mission .m-meta { font-size: .85rem; color: var(--muted); }
.mission .m-status { font-size: .82rem; font-weight: 800; color: var(--primary); margin-top: 2px; }
.mission.doing { border-color: var(--accent); }
.mission.doing .m-status { color: var(--accent); }
.mission.done { background: var(--primary-soft); border-color: var(--primary); }
.cat-title { margin: 28px 0 12px; }

/* ---------- Painel / escudo ---------- */
.shield-panel {
  display: grid; gap: 24px; grid-template-columns: auto 1fr; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.shield {
  --pct: 0;
  width: 120px; height: 136px; display: grid; place-items: center;
  clip-path: polygon(50% 0, 100% 14%, 100% 55%, 50% 100%, 0 55%, 0 14%);
  background: linear-gradient(to top, var(--primary) calc(var(--pct) * 1%), var(--surface-2) calc(var(--pct) * 1%));
  transition: background .4s;
}
.shield span { font-weight: 800; font-size: 1.5rem; color: var(--text); background: color-mix(in srgb, var(--surface) 80%, transparent); padding: 2px 10px; border-radius: 999px; }
.level-label { margin: 0; font-size: .85rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.level { margin: 0 0 4px; font-size: 1.6rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
@media (max-width: 520px) { .shield-panel { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--border);
  background: var(--surface); font-weight: 700; font-size: .95rem; user-select: none;
}
.chip input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.badge-list { display: flex; flex-wrap: wrap; gap: 12px; }
.badge-item { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 16px 6px 6px; font-weight: 700; }

/* ---------- Página da missão ---------- */
.mission-hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.mission-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.mission-stats > span { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-size: .95rem; }
.stars { color: var(--accent); letter-spacing: 1px; }
.mission-layout { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .mission-layout { grid-template-columns: 1fr 280px; } .side { position: sticky; top: 80px; align-self: start; } }
.side h2 { font-size: 1.2rem; margin: 0 0 12px; }
.inventory { background: var(--accent-soft); border-radius: var(--radius); padding: 18px 22px; }
.inventory h2 { font-size: 1.2rem; margin: 0 0 6px; }
.inventory ul { margin: 0; padding-left: 20px; }
.progress-row { display: flex; align-items: center; gap: 12px; margin: 24px 0 4px; }
.progress-row .progress { flex: 1; margin: 0; }
.phase { margin-top: 28px; }
.phase h3 { color: var(--primary); }
.quest { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; counter-reset: q; }
.quest li { counter-increment: q; }
.quest label {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow);
}
.quest input { width: 24px; height: 24px; margin-top: 2px; accent-color: var(--primary); }
.quest label:has(input:checked) { background: var(--primary-soft); border-color: var(--primary); }
.quest label:has(input:checked) span { color: var(--muted); }
.badge-won {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin-top: 28px;
  background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft)); border: 2px solid var(--primary);
  border-radius: var(--radius); padding: 24px;
}
.badge-won h2 { margin: 4px 0 8px; font-size: 1.4rem; }
.badge-won p { margin: 0 0 12px; }
.medal {
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-size: 2.6rem;
  background: radial-gradient(circle at 35% 30%, #ffe8a3, #f2c14e 55%, #d9822b); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 30%, transparent);
}
.medal.small { width: 40px; height: 40px; font-size: 1.2rem; box-shadow: none; }
.faq { margin-top: 32px; }
.faq h2 { font-size: 1.4rem; }
.faq .guide { margin-top: 10px; }
.faq summary { font-size: 1.02rem !important; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.3rem; margin: 28px 0 6px; }

/* ---------- Toast e confete ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 40px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: 14px; font-weight: 700;
  line-height: 1.35; width: max-content; max-width: min(420px, calc(100% - 32px));
  box-shadow: var(--shadow); transition: .25s; z-index: 80; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.has-selfcheck .toast { bottom: 120px; }

/* ---------- Botão pequeno ---------- */
.btn.small { padding: 8px 14px; font-size: .92rem; border-radius: 10px; }

/* ---------- Link "E você?" no menu ---------- */
.nav-you {
  white-space: nowrap; text-decoration: none; font-weight: 800; font-size: .92rem;
  padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  border: 2px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.nav-you:hover, .nav-you.active { background: var(--accent); color: #fff; }

/* ---------- Barra fixa "E você?" ---------- */
.selfcheck {
  position: fixed; left: 50%; bottom: 16px; z-index: 70; width: min(860px, calc(100% - 24px));
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center;
  background: var(--surface); border: 2px solid var(--accent); border-radius: 16px; padding: 12px 14px 12px 16px;
  box-shadow: 0 10px 30px rgba(31, 42, 48, .18);
  transform: translate(-50%, 140%); transition: transform .35s ease;
}
.selfcheck.show { transform: translate(-50%, 0); }
.selfcheck .sc-icon { font-size: 1.8rem; line-height: 1; }
.selfcheck p { margin: 0; font-size: .98rem; line-height: 1.4; }
.selfcheck .sc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.selfcheck .btn { background: var(--accent); border-color: var(--accent); }
.selfcheck .btn.ghost { background: transparent; color: var(--accent); }
.sc-close { background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 6px; align-self: start; }
@media (max-width: 720px) {
  .selfcheck { grid-template-columns: auto 1fr auto; bottom: 8px; gap: 8px 10px; }
  .selfcheck .sc-actions { grid-column: 1 / -1; }
  .selfcheck .sc-actions .btn { flex: 1; justify-content: center; }
  .selfcheck .sc-close { grid-column: 3; grid-row: 1; }
}
body.has-selfcheck footer { padding-bottom: 150px; }

/* ---------- Bloco "E você?" ---------- */
section.evoce { border-top: none; padding-top: 8px; }
.evoce-card {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  background: linear-gradient(135deg, var(--accent-soft), var(--surface));
  border: 2px solid var(--accent); border-radius: var(--radius); padding: 28px;
}
.evoce-card h2 { margin: 0 0 8px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.evoce-card p { margin: 0 0 16px; color: var(--text); max-width: 720px; }
.evoce-card .btn { background: var(--accent); border-color: var(--accent); }
.evoce-card .btn.ghost { background: transparent; color: var(--accent); }
.evoce-icon { font-size: 3rem; line-height: 1; }
@media (max-width: 560px) { .evoce-card { grid-template-columns: 1fr; padding: 22px; } }

/* ---------- Vídeo ---------- */
.video-layout { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .video-layout { grid-template-columns: 1.7fr 1fr; align-items: start; } }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.yt iframe, .yt-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { padding: 0; cursor: pointer; background: #000; }
.yt-play img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; transition: opacity .2s; }
.yt-play:hover img { opacity: 1; }
.yt-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 54px; border-radius: 14px; background: #e1261c; color: #fff;
  display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.yt-label {
  position: absolute; left: 12px; bottom: 12px; background: rgba(0, 0, 0, .72); color: #fff;
  font-weight: 700; font-size: .9rem; padding: 6px 12px; border-radius: 999px;
}
.chapters { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.chapters h3 { margin: 0 0 8px; font-size: 1.1rem; }
.chapters ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.chapters button {
  width: 100%; text-align: left; background: none; border: 0; font: inherit; font-size: .95rem; color: var(--text);
  padding: 7px 8px; border-radius: 8px; cursor: pointer; display: flex; gap: 10px; align-items: baseline;
}
.chapters button:hover { background: var(--surface-2); }
.chapters .t { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; color: var(--primary); font-weight: 700; min-width: 42px; }
.chapters li.hl button { font-weight: 800; }
.chapters li.hl button::after { content: "★"; color: var(--accent); margin-left: auto; }
.chapters li.on button { background: var(--primary-soft); }
.chapters .src { margin-top: 12px; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; }

/* ---------- Impressão / PDF ---------- */
@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #f2f2f2; --shadow: none; }
  body { font-size: 11.5pt; }
  .topbar, .cta-row, .no-print, .skip, .toast, .confetti, footer, .selfcheck, .yt { display: none !important; }
  .video-layout { display: block; }
  .quest label { box-shadow: none; }
  .print-only { display: block; }
  section.block { padding: 18px 0; break-inside: auto; }
  .hero { padding: 0 0 12px; }
  .card, .steps > li, details.guide, .age, .pact { break-inside: avoid; box-shadow: none; }
  details.guide > summary::after { display: none; }
  a { color: inherit; text-decoration: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; word-break: break-all; }
  .pact input[type="text"], .pact textarea { border: none; border-bottom: 1px solid #999; border-radius: 0; background: transparent; }
  .pact ::placeholder { color: transparent; }
  .pact textarea { resize: none; }

  /* Botão "Imprimir só o acordo": esconde todo o resto da página */
  body.print-only-acordo main > section:not(#acordo) { display: none !important; }
  body.print-only-acordo #acordo { border-top: none; padding: 0; }
  body.print-only-acordo #acordo > .wrap > h2,
  body.print-only-acordo #acordo > .wrap > .intro { display: none; }
  body.print-only-acordo .pact { border: 2px solid #999; padding: 28px; font-size: 13pt; }
  body.print-only-acordo .pact h3 { font-size: 20pt; margin-bottom: 18px; }
  body.print-only-acordo .pact textarea { min-height: 90px; }
  body.print-only-acordo .sign { margin-top: 64px; }
}
