:root {
  color-scheme: light;
  --ink: #122d24;
  --muted: #53675d;
  --line: #d8e3dc;
  --green: #175942;
  --paper: #f3f6f1;
  font-family: "Aptos", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-content, nav, .actions { display: flex; gap: 12px; align-items: center; }
.header-content { justify-content: space-between; min-height: 72px; }
.brand { display: block; width: 86px; height: auto; margin-block: 8px; }
nav a { text-decoration: none; color: var(--muted); padding: 9px 12px; border-radius: 7px; font-weight: 600; }
nav a[aria-current] { color: var(--green); background: #e8f1e9; }
.intro { padding-block: 42px 28px; }
.eyebrow { color: var(--green); font-weight: 800; font-size: .72rem; letter-spacing: .13em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.15rem); line-height: 1.08; letter-spacing: -.04em; margin: 8px 0 12px; }
h2 { font-size: 1.25rem; margin: 0 0 18px; }
h3 { font-size: 1rem; }
p { line-height: 1.5; margin: 0 0 8px; }
.intro > p:last-child, .muted { color: var(--muted); }
.layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(270px, 1fr); gap: 24px; align-items: start; }
.card, .summary { border-radius: 16px; padding: 24px; }
.card { background: #fff; border: 1px solid var(--line); }
form { display: grid; gap: 16px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-weight: 650; font-size: .9rem; }
input, select, textarea { display: block; width: 100%; background: #fafcf9; border: 1px solid #bccdc3; border-radius: 7px; padding: 10px 12px; margin-top: 6px; color: var(--ink); font: inherit; font-weight: 400; }
textarea { resize: vertical; }
fieldset { min-width: 0; border: 0; padding: 0 0 18px; margin: 0 0 18px; border-bottom: 1px solid var(--line); }
fieldset:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
legend { font-weight: 750; margin-bottom: 6px; padding: 0; }
fieldset label + label { margin-top: 10px; }
.criterion-guide { margin: 8px 0 14px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; background: #f3f8f3; }
.criterion-guide summary { color: var(--green); font-weight: 650; }
.criterion-guide p, .criterion-guide ul { margin: 8px 0 0; font-size: .9rem; line-height: 1.5; }
.criterion-guide ul { padding-left: 1.3rem; }
.summary { position: sticky; top: 20px; background: #12392d; color: #fff; }
.summary .eyebrow { color: #b8e5bb; }
.summary h2 { margin-top: 8px; }
.summary p { color: #e1eee6; }
.result-value { display: block; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.05em; }
.score { margin-top: 18px; font-size: .87rem; }
progress { display: block; width: 100%; accent-color: #a4dca5; height: 12px; }
details { margin-top: 20px; border-top: 1px solid #527367; padding-top: 14px; }
summary { cursor: pointer; font-size: .9rem; }
details p { margin-top: 8px; font-size: .87rem; }
.actions { flex-wrap: wrap; }
button { cursor: pointer; font: inherit; font-weight: 700; border: 1px solid transparent; border-radius: 8px; padding: 10px 14px; background: var(--green); color: white; }
.secondary { background: #fff; color: var(--green); border-color: #bccdc3; }
.danger { background: #fff1ee; color: #8e2822; }
:focus-visible { outline: 3px solid #347955; outline-offset: 3px; }
#search { max-width: 380px; }
#records { margin-top: 16px; }
.record { border-top: 1px solid var(--line); padding: 14px 0; display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.record p { margin: 2px 0 0; }
.record > div:first-child, #report { overflow-wrap: anywhere; min-width: 0; }
#status { min-height: 1.5em; margin-top: 16px; }
footer { font-size: .8rem; color: var(--muted); padding: 8px 0 12px; border-top: 1px solid var(--line); }
.developer-credit { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.developer-credit strong { color: var(--ink); }
.developer-credit a, .developer-credit summary { color: var(--green); text-underline-offset: 3px; }
.developer-credit details { margin: 0; padding: 0; border: 0; }
.developer-credit details[open] { flex-basis: 100%; }
.developer-credit summary { font-size: inherit; }
.developer-credit p { margin: 4px 0 0; }
#report-view { max-width: 860px; margin-block: 24px; }
#report-view > .actions { margin-bottom: 16px; }
#report { max-width: 210mm; margin-inline: auto; padding: clamp(18px, 5vw, 46px); }
.report-heading { text-align: center; margin-bottom: 24px; }
.report-heading h1 { font-size: clamp(1.3rem, 4vw, 1.75rem); letter-spacing: normal; text-transform: uppercase; }
.report-heading p { font-weight: 650; }
.report-context p { text-align: justify; text-indent: 1.25em; }
.report-context ol { margin: 0 0 8px; padding-left: 2.5em; line-height: 1.5; }
#report h2 { margin: 22px 0 8px; font-size: 1.1rem; text-transform: uppercase; }
.report-criterion { margin-block: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.report-criterion h3 { margin: 0 0 4px; }
.report-label, .report-result { font-weight: 700; }
.report-label { margin-bottom: 2px; }
.report-date { margin-top: 16px; }
.reason { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 730px) {
  .layout { grid-template-columns: 1fr; }
  .summary { grid-row: 1; position: static; }
  .fields { grid-template-columns: 1fr; }
  .record { align-items: flex-start; flex-direction: column; }
  .header-content { flex-wrap: wrap; padding-block: 10px; }
  .card, .summary { padding: 18px; }
}
@page {
  size: A4 portrait;
  margin: 16mm 16mm 17mm;
  @bottom-right { content: counter(page) " de " counter(pages); font: 9pt Arial, sans-serif; }
}
@media print {
  :root { background: white; color: black; }
  .no-print { display: none; }
  #report-view { width: 100%; max-width: none; margin: 0; }
  #report { padding: 0; border: 0; border-radius: 0; font: 10.5pt Arial, sans-serif; }
  #report h1 { font-size: 14pt; }
  #report h2 { font-size: 11pt; margin-top: 13pt; }
  #report h3 { font-size: 10.5pt; }
  #report p { line-height: 1.35; orphans: 2; widows: 2; }
  .report-heading { margin-bottom: 16pt; break-inside: avoid; }
  .report-criterion { border-color: #bbb; break-inside: avoid; }
  #report h2, #report h3, .report-label { break-after: avoid; }
  .report-result { break-after: avoid; }
}
