:root {
  --ink: #18263a;
  --paper: #f3f5f9;
  --green: #223e68;
  --gold: #ffc49f;
  --line: #d8e0ec;
  --muted: #46566c;
}
body {
  background: radial-gradient(ellipse at 85% 4%, #f7e5dc 0%, transparent 35%),
              linear-gradient(154deg, #e8eff8 0%, var(--paper) 52%, #faf8f6 100%);
  background-attachment: fixed;
  min-height: 100vh;
  font-size: clamp(16px, 1.45vw, 18px);
}
h1,h2 {font-family: Georgia,serif}
.top {padding-block: 19px}
.top nav {gap: 6px 14px}
.brand span {background: #e2e9f4;color: #223e68}
.card {border-color: var(--line);box-shadow: 0 7px 24px #152c4a0a}
.card.disclosure {max-width: none;background: #223e68;color: white}
.card.disclosure p {color:#e5edf9;max-width: 62ch;margin-bottom: 0}
.card.disclosure h1 {font-size: clamp(2.25rem,6vw,4.4rem);max-width: 19ch}
.portal-hero {background:#1c3557;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);padding:0;gap:0;overflow:hidden;min-height:390px}
.portal-copy {padding:clamp(26px,5vw,62px)}
.portal-copy h1 {font-size:clamp(2.45rem,5.5vw,4.85rem);line-height:1.03}
.portal-photo {margin:0;align-self:stretch;background:#29476d;min-height:220px;position:relative}
.portal-photo img {position:absolute;display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.hero-actions {display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:22px}
.hero-actions a:not(.button) {font-weight:700;text-underline-offset:4px}
.portal-tools {margin-block:36px}
.tool-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:14px}
.tool-card {display:flex;flex-direction:column;gap:6px;text-decoration:none;background:white;border:1px solid var(--line);border-radius:14px;padding:19px;min-width:0;box-shadow:0 5px 15px #152c4a09}
.tool-card:hover {border-color:#42638a;box-shadow:0 6px 20px #152c4a16}
.tool-card strong {font-size:1.22rem;line-height:1.2}
.tool-card p {margin:0 0 8px;color:var(--muted);font-size:.93rem}
.tool-kind {color:#865031;font-weight:750;font-size:.79rem}
.tool-link {color:#223e68;font-weight:750;margin-top:auto}
.fields>div,.guide fieldset {min-width:0}
.choice,.drop,.cal,.calendar-open,.dates>div,output:not(:empty),.topic-links a {background:#edf2f9;border-color:var(--line)}
.choice:has(input:checked) {background:#e1eafa;border-color:#839ab9}
.choice input,.guide .choice input[type=checkbox] {
  appearance:none;
  width:20px;height:20px;min-width:20px;min-height:20px;
  flex:0 0 20px;padding:0;margin:0;
  border:2px solid #587397;background:white;
}
.guide .choice input[type=checkbox] {border-radius:5px;display:grid;place-content:center}
.guide .choice input[type=checkbox]:checked {background:#223e68;border-color:#223e68}
.guide .choice input[type=checkbox]:checked::before {content:"";width:9px;height:5px;border-left:2px solid white;border-bottom:2px solid white;transform:translateY(-1px) rotate(-45deg)}
.choice input[type=radio]:checked {border:5px solid #223e68;background:#ffc49f}
.fields input,.guide input:not([type=radio]):not([type=checkbox]) {border-color:#8198b4;color:var(--ink)}
.calgrid button {min-width:0}
@media(max-width:720px) {
  .portal-hero {grid-template-columns:1fr}
  .portal-photo {min-height:0;aspect-ratio: 16/9}
  .top {align-items:flex-start}
  .top nav {justify-content:flex-end}
}

body {
  background: linear-gradient(90deg, #f7f5ed30, #f4f6fa5c 36%, #f4f6fa5c 64%, #f7f5ed30),
              url("/bairro-amanhecer.jpg") center center / cover no-repeat #e8edf2;
  background-attachment: fixed;
}
.top {background:#f5f7f4dd;border-radius:12px;margin-block:12px;padding:10px 16px}
.portal-hero {grid-template-columns:minmax(0,1fr) minmax(230px,32%);gap:20px;min-height:0;padding:clamp(18px,3vw,34px);align-items:center}
.portal-copy {padding:0}
.portal-copy h1 {font-size:clamp(2rem,4vw,3.45rem);line-height:1.04;margin:8px 0 12px}
.portal-copy p {margin:0}
.hero-actions {margin-top:15px}
.portal-photo {align-self:center;position:relative;min-height:0;aspect-ratio: 3 / 2;border-radius:13px;overflow:hidden}
.portal-tools {margin-block:22px 30px}
.section-heading h2 {display:inline-block;background:#f5f7f4ec;border-radius:10px;padding:9px 14px;margin:0 0 12px}
footer {background:#f5f7f4e8;border-radius:12px;padding-inline:16px}
@media(max-width:720px) {
  .portal-hero {grid-template-columns:1fr;gap:14px}
  .portal-photo {width:min(100%,340px);aspect-ratio: 2 / 1}
  body {background-position:42% center}
}
.news-spot {margin-block:22px}
.folha-exemplo {max-width:620px;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.folha-exemplo div {display:flex;gap:12px;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--line)}
.folha-exemplo div:last-child {border-bottom:0;background:#edf2f9}
.folha-exemplo dd {margin:0;white-space:nowrap;font-weight:750}
