:root {
  --navy: #1B2A4A;
  --teal: #0E4B4F;
  --gold: #B9975B;
  --cream: #F7F5F0;
  --ink: #2B2B2E;
  --muted: #5C574B;
  --border: #EAE6DC;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #fff;
}

header.site-header {
  border-bottom: 1px solid var(--border);
  padding: 18px 24px;
}
header.site-header .inner {
  max-width: 880px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { height: 34px; width: auto; }
.brand-title { font-size: 13px; letter-spacing: 1.5px; font-weight: 700; color: var(--navy); text-transform: uppercase; }
.brand-version { font-size: 11px; color: #8A8578; letter-spacing: 0.5px; }

main { max-width: 880px; margin: 0 auto; padding: 32px 24px 96px; }

footer.site-footer {
  max-width: 880px; margin: 0 auto; padding: 0 24px 40px;
  font-size: 11px; color: #9C978A; line-height: 1.6;
}

h1.hero-title { font-size: 34px; line-height: 1.15; color: var(--navy); margin: 0 0 16px; font-family: Georgia, serif; }
h2.section-title { font-size: 24px; color: var(--navy); font-family: Georgia, serif; margin: 0 0 10px; }
p.lede { font-size: 16px; line-height: 1.7; color: #4A4A4E; max-width: 640px; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 11px; color: var(--gold); font-weight: 700; margin-bottom: 12px; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0; }
.stat-card { border: 1px solid var(--border); border-radius: 8px; padding: 18px 16px; background: var(--cream); }
.stat-num { font-size: 24px; font-weight: 700; color: var(--teal); font-family: Georgia, serif; }
.stat-label { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.callout { background: var(--cream); border-left: 3px solid var(--gold); padding: 14px 18px; font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-bottom: 28px; }

.btn { border: none; border-radius: 7px; padding: 12px 26px; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.btn-secondary { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); padding: 11px 24px; font-size: 14px; }
.btn-ghost { background: transparent; color: #8A8578; border: none; font-size: 13.5px; cursor: pointer; text-decoration: underline; padding: 0; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border-radius: 6px; border: 1px solid #D9D4C6;
  font-size: 14px; font-family: inherit; background: #fff;
}

.consent-box { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 8px; cursor: pointer; }
.consent-box input { margin-top: 3px; }

.guardian-block { background: var(--cream); border-left: 3px solid var(--gold); padding: 16px 18px; margin-bottom: 18px; }
.guardian-block .title { font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }

.progress-wrap { margin-bottom: 22px; }
.progress-labels { display: flex; justify-content: space-between; font-size: 12px; color: #8A8578; margin-bottom: 6px; }
.progress-track { height: 6px; background: #EFECE3; border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--teal); transition: width .2s ease; }

.likert-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 14px 4px; border-bottom: 1px solid #F0EDE4; }
.likert-text { font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.likert-code { color: #B4AE9C; font-size: 12px; margin-right: 6px; }
.likert-scale { display: flex; gap: 6px; }
.likert-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid #D9D4C6;
  background: #fff; color: #8A8578; font-size: 13px; font-weight: 600; cursor: pointer;
}
.likert-btn.selected { border-color: var(--teal); background: var(--teal); color: #fff; }

.nav-row { margin-top: 28px; display: flex; justify-content: space-between; align-items: center; }
.nav-hint { text-align: right; font-size: 12px; color: #B08B4F; margin-top: 8px; }

.card { border: 1px solid var(--border); border-radius: 10px; padding: 20px 22px; margin-bottom: 20px; background: #fff; }
.card-title { font-size: 13px; font-weight: 700; color: var(--navy); letter-spacing: 0.3px; margin-bottom: 14px; }

.iml-hero { display: flex; align-items: center; gap: 24px; background: var(--navy); color: #fff; border-radius: 12px; padding: 26px 28px; margin-bottom: 28px; }
.iml-num { font-size: 42px; font-weight: 700; font-family: Georgia, serif; color: var(--gold); }
.iml-tag { font-size: 11px; letter-spacing: 1px; opacity: .75; text-transform: uppercase; }
.iml-detail { border-left: 1px solid rgba(255,255,255,0.2); padding-left: 24px; }
.iml-level { font-size: 16px; font-weight: 600; }
.iml-read { font-size: 13.5px; opacity: .85; line-height: 1.5; margin-top: 4px; max-width: 480px; }

.dim-bar-row { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 14px; margin-bottom: 10px; }
.dim-bar-track { background: #EFECE3; border-radius: 6px; height: 10px; overflow: hidden; }
.dim-bar-fill { height: 100%; background: var(--teal); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }

.save-status { font-size: 12px; font-weight: 600; margin-bottom: 18px; }
.save-status.saving { color: #8A8578; }
.save-status.saved { color: var(--teal); }
.save-status.error, .save-status.unavailable { color: #B0453F; }

table.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.admin-table th { text-align: left; padding: 6px 8px; color: #8A8578; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
table.admin-table td { padding: 8px; border-top: 1px solid #F0EDE4; color: var(--muted); }
table.admin-table td.strong { font-weight: 700; color: var(--navy); }

.pill-stats { display: flex; gap: 24px; margin-bottom: 20px; }
.pill-navy { background: var(--navy); color: #fff; border-radius: 10px; padding: 18px 22px; }
.pill-cream { background: var(--cream); border-radius: 10px; padding: 18px 22px; }
.pill-num { font-size: 30px; font-weight: 700; font-family: Georgia, serif; }
.pill-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }

/* -------- Impressão / PDF -------- */
@media print {
  .no-print { display: none !important; }
  .print-only { display: block !important; }
  body { background: #fff; }
  .card, .iml-hero { break-inside: avoid; }
}
.print-only { display: none; }
