:root {
  --purple-950: #06271c;
  --purple-900: #083426;
  --purple-800: #014028;
  --purple-700: #0b5a3d;
  --purple-100: #e5f0eb;
  --purple-50: #f3f8f5;
  --ink: #17231d;
  --muted: #536158;
  --line: #d2ddd7;
  --paper: #ffffff;
  --soft: #f4f7f5;
  --accent: #cfa447;
  --success: #126647;
  --max: 1320px;
  --focus: #e0ab35;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; padding-bottom: 96px; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; font-size: 20px; line-height: 1.7; }
body.dialog-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible { outline: 4px solid var(--focus); outline-offset: 4px; }
.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-link { position: fixed; left: 16px; top: -80px; z-index: 999; padding: 14px 18px; color: #fff; background: var(--purple-950); font-weight: 700; }
.skip-link:focus { top: 16px; }

.portal-header { position: sticky; top: 0; z-index: 100; color: #fff; background: var(--purple-950); border-bottom: 5px solid var(--accent); }
.portal-header__inner { width: min(100% - 48px, var(--max)); min-height: 104px; margin: 0 auto; display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 34px; align-items: center; }
.portal-identity { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.portal-identity--logo { width: 250px; height: 78px; overflow: hidden; background: transparent; }
.portal-header-logo { display: block; width: 100%; height: 100%; object-fit: contain; }
.portal-identity__name { font-family: Georgia, 'Times New Roman', serif; font-size: 1.55rem; letter-spacing: -.02em; white-space: nowrap; }
.portal-identity__name strong { color: var(--accent); font-weight: 500; }
.portal-identity__purpose { padding-left: 18px; color: rgba(255,255,255,.68); border-left: 1px solid rgba(255,255,255,.28); font-size: .78rem; line-height: 1.25; text-transform: uppercase; letter-spacing: .08em; }
.office-logo { width: 225px; height: 58px; object-fit: contain; padding: 5px 10px; background: #fff; }
.portal-nav { grid-column: 2; justify-self: end; display: flex; align-items: center; gap: 4px; }
.portal-nav a { min-height: 52px; display: inline-flex; align-items: center; padding: 9px 14px; color: rgba(255,255,255,.9); font-size: .96rem; font-weight: 700; text-decoration: none; }
.portal-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.portal-nav .nav-contact { margin-left: 8px; color: var(--purple-950); background: #fff; }
.menu-toggle { display: none; width: 50px; height: 50px; padding: 11px; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.35); }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: currentColor; }

.section-label { margin: 0 0 18px; color: var(--purple-700); font-size: .9rem; font-weight: 800; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.home-intro { min-height: 690px; display: grid; grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr); }
.home-intro__main { padding: clamp(64px, 8vw, 116px) max(40px, calc((100vw - var(--max)) / 2)); padding-right: clamp(45px, 6vw, 90px); color: #fff; background: var(--purple-800); }
.home-intro__main .section-label { color: #f0ce7b; }
.home-intro h1 { max-width: 700px; margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(3.2rem, 5.5vw, 6.2rem); font-weight: 400; line-height: .98; letter-spacing: -.055em; }
.home-intro__lead { max-width: 670px; margin: 34px 0; color: rgba(255,255,255,.82); font-size: 1.2rem; line-height: 1.55; }
.home-alert { max-width: 710px; display: grid; grid-template-columns: 48px 1fr; gap: 18px; margin: 38px 0 32px; padding: 25px 0; border-top: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); }
.home-alert > span { width: 42px; height: 42px; display: grid; place-items: center; color: var(--purple-950); background: #d9c9a7; border-radius: 50%; font-weight: 900; }
.home-alert strong { display: block; font-family: Georgia, 'Times New Roman', serif; font-size: 1.3rem; line-height: 1.35; }
.home-alert p { margin: 8px 0 0; color: rgba(255,255,255,.75); font-size: .94rem; }
.button { min-height: 64px; display: inline-flex; align-items: center; justify-content: center; padding: 16px 24px; border: 2px solid transparent; border-radius: 2px; font-size: 1rem; font-weight: 800; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer; }
.button-light { color: var(--purple-950); background: #fff; }
.button-light:hover { background: #e7f0eb; }
.button-primary { color: #fff; background: var(--purple-800); }
.button-primary:hover { background: var(--purple-950); }
.button-secondary { color: var(--purple-800); background: #fff; border-color: var(--purple-800); }
.button-secondary:hover { background: var(--purple-50); }
.button-full { width: 100%; }
.small-note { margin: 14px 0 0; color: rgba(255,255,255,.76); font-size: .92rem; }

.home-subjects { display: flex; flex-direction: column; padding: clamp(48px, 6vw, 88px) max(32px, calc((100vw - var(--max)) / 2)); padding-left: clamp(42px, 6vw, 86px); background: #fff; }
.subject-heading { display: flex; justify-content: space-between; gap: 30px; padding-bottom: 22px; border-bottom: 4px solid var(--purple-800); }
.subject-heading p:last-child { margin: 0; color: var(--muted); font-size: 1rem; }
.subject-row { flex: 1; min-height: 102px; display: grid; grid-template-columns: 54px minmax(0,1fr) auto; gap: 20px; align-items: center; padding: 22px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.subject-row > span { color: #64766c; font-family: Georgia, 'Times New Roman', serif; font-size: 1rem; font-style: italic; }
.subject-row strong { color: var(--purple-950); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 500; line-height: 1.2; }
.subject-row em { color: var(--purple-700); font-size: .88rem; font-style: normal; font-weight: 800; text-transform: uppercase; }
.subject-row:hover { padding-left: 18px; color: var(--purple-800); background: var(--purple-50); }
.subject-row--urgent { border-bottom-color: var(--purple-800); }

.quick-actions { display: grid; grid-template-columns: .72fr 1.28fr; background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quick-actions__title { padding: 88px max(40px, calc((100vw - var(--max)) / 2)); padding-right: 60px; background: #fff; }
.quick-actions__title h2, .other-topics h2 { margin: 0; color: var(--purple-950); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.2rem, 4vw, 4.2rem); font-weight: 400; line-height: 1.05; letter-spacing: -.04em; }
.quick-actions__list { display: grid; grid-template-columns: repeat(2,1fr); }
.quick-actions__list a { min-height: 190px; display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; align-content: center; padding: 38px clamp(30px, 4vw, 60px); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; }
.quick-actions__list a:nth-child(3), .quick-actions__list a:nth-child(4) { border-bottom: 0; }
.quick-actions__list a:hover { background: var(--purple-100); }
.quick-actions__list span { grid-row: 1 / 3; width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: var(--purple-800); border-radius: 50%; font-weight: 800; }
.quick-actions__list strong { color: var(--purple-950); font-family: Georgia, 'Times New Roman', serif; font-size: 1.35rem; font-weight: 500; }
.quick-actions__list small { color: var(--muted); font-size: .96rem; }

.other-topics { width: min(100% - 48px, var(--max)); margin: 0 auto; display: grid; grid-template-columns: .82fr 1.18fr; gap: 90px; padding: 110px 0; }
.other-topics__links { border-top: 4px solid var(--purple-800); }
.other-topics__links a { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 8px; color: var(--purple-950); border-bottom: 1px solid var(--line); font-weight: 700; text-decoration: none; }
.other-topics__links a::after { content: 'Abrir →'; color: var(--purple-700); font-size: .75rem; text-transform: uppercase; }
.other-topics__links a:hover { padding-left: 18px; background: var(--purple-50); }
.legal-band { display: grid; grid-template-columns: 280px 1fr; gap: 50px; padding: 36px max(24px, calc((100vw - var(--max)) / 2)); color: #fff; background: var(--purple-950); }
.legal-band strong { color: #d9c9a7; font-family: Georgia, 'Times New Roman', serif; font-size: 1.3rem; }
.legal-band p { max-width: 900px; margin: 0; color: rgba(255,255,255,.74); }

.portal-overview { width: min(100% - 48px, var(--max)); margin: 54px auto 0; display: grid; grid-template-columns: minmax(260px,.72fr) minmax(0,1.8fr); border: 2px solid var(--purple-800); background: #fff; }
.portal-overview__heading { padding: clamp(34px,5vw,64px); color: #fff; background: var(--purple-950); }
.portal-overview__heading .section-label { color: var(--accent); }
.portal-overview__heading h2 { margin: 14px 0 18px; color: #fff; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2rem,3.6vw,3.25rem); font-weight: 400; line-height: 1.08; }
.portal-overview__heading > p:last-child { margin: 0; color: rgba(255,255,255,.78); }
.portal-overview__content { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.portal-overview__statement, .portal-overview__detail { padding: clamp(28px,4vw,46px); }
.portal-overview__statement { min-height: 250px; color: var(--purple-950); background: var(--soft); }
.portal-overview__statement--mission { color: #fff; background: var(--purple-800); }
.portal-overview__statement > span, .portal-overview__detail > span { display: block; margin-bottom: 16px; color: var(--accent-dark); font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.portal-overview__statement--mission > span { color: var(--accent); }
.portal-overview__statement p { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.25rem,2vw,1.6rem); line-height: 1.48; }
.portal-overview__detail { display: grid; grid-template-columns: 110px 1fr; gap: 20px; border-top: 1px solid var(--line); }
.portal-overview__detail:nth-child(4) { border-left: 1px solid var(--line); }
.portal-overview__detail h3 { margin: 0 0 10px; color: var(--purple-950); font-family: Georgia, 'Times New Roman', serif; font-size: 1.5rem; font-weight: 400; }
.portal-overview__detail p { margin: 0; color: var(--muted); }

.people-places { display: grid; grid-template-columns: repeat(2,1fr); background: var(--purple-100); border-top: 1px solid var(--line); }
.people-places > a { min-height: 290px; display: grid; grid-template-columns: 1fr; gap: 18px; align-content: center; padding: 58px max(38px, calc((100vw - var(--max)) / 2)); padding-right: clamp(40px, 6vw, 90px); border-right: 1px solid var(--line); text-decoration: none; }
.people-places > a:nth-child(2) { padding-left: clamp(40px, 6vw, 90px); padding-right: max(38px, calc((100vw - var(--max)) / 2)); border-right: 0; }
.people-places > a:hover { background: #dceae3; }
.people-places h2 { margin: 0; color: var(--purple-950); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 400; line-height: 1.12; }
.people-places p:not(.section-label) { margin: 9px 0 0; color: var(--muted); font-size: 1rem; }
.people-places > a > strong { grid-column: 1; color: var(--purple-700); font-size: .78rem; text-transform: uppercase; }

.portal-footer { color: #e7efe9; background: #071a13; }
.portal-footer__main { width: min(100% - 48px, var(--max)); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr 1.1fr 1fr; gap: 45px; padding: 64px 0 52px; }
.portal-footer__main strong, .footer-title { display: block; margin-bottom: 12px; color: #fff; font-size: .96rem; letter-spacing: .06em; text-transform: uppercase; }
.footer-title { color: #e2bc63; font-family: Georgia, 'Times New Roman', serif; font-size: 1.45rem; letter-spacing: 0; text-transform: none; }
.portal-footer p { margin: 0; color: rgba(255,255,255,.76); font-size: .95rem; }
.portal-footer a { color: #fff; text-underline-offset: 4px; }
.portal-footer__legal { width: min(100% - 48px, var(--max)); margin: 0 auto; display: flex; justify-content: space-between; gap: 40px; align-items: center; padding: 24px 0 34px; border-top: 1px solid rgba(255,255,255,.16); }
.portal-footer__legal div { display: flex; gap: 24px; white-space: nowrap; }
.lumen-credit { margin-top: 4px; padding: 22px 24px; text-align: center; background: #03110c; border-top: 1px solid rgba(226,188,99,.28); }
.portal-footer .lumen-credit p, .policy-footer .lumen-credit p { margin: 0; color: rgba(255,255,255,.72); font-size: .9rem; }
.lumen-credit a { color: var(--accent) !important; font-weight: 800; }

.floating-help { position: fixed; right: 24px; bottom: 24px; z-index: 80; min-height: 58px; display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; color: #fff; background: #176b48; border: 2px solid #fff; border-radius: 40px; box-shadow: 0 14px 35px rgba(0,0,0,.22); font-size: .88rem; text-decoration: none; }
.floating-help > span { width: 38px; height: 38px; display: grid; place-items: center; background: rgba(255,255,255,.15); border-radius: 50%; font-weight: 900; }

.contact-shortcuts { position: fixed; left: 0; right: 0; bottom: 0; z-index: 180; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; padding: 0 0 env(safe-area-inset-bottom); background: #fff; border-top: 4px solid var(--accent); box-shadow: 0 -10px 32px rgba(3,38,26,.18); }
.contact-shortcut { min-width: 0; min-height: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 9px 6px; color: var(--purple-950); background: #fff; border: 0; border-right: 1px solid var(--line); font-size: .94rem; font-weight: 800; line-height: 1.1; text-align: center; text-decoration: none; }
.contact-shortcut:last-child { border-right: 0; }
.contact-shortcut:hover { color: #fff; background: var(--purple-800); }
.contact-shortcut svg { width: 27px; height: 27px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.contact-shortcut svg .filled { fill: currentColor; stroke: none; }
.contact-shortcut--whatsapp { color: #fff; background: var(--purple-800); }
.contact-shortcut--whatsapp:hover { background: var(--purple-950); }
.contact-shortcut--instagram { border-color: var(--accent); }
.contact-shortcut--instagram:hover { color: var(--purple-950); background: var(--accent); }

/* páginas internas */
.inner-main { background: #fff; }
.breadcrumb { width: min(100% - 48px, 1080px); margin: 0 auto; padding: 34px 0 0; font-size: .96rem; }
.breadcrumb a { color: var(--purple-700); font-weight: 800; text-underline-offset: 4px; }
.topic-hero { width: min(100% - 48px, 1080px); margin: 0 auto; display: grid; grid-template-columns: 105px 1fr; gap: 36px; padding: 70px 0 64px; border-bottom: 5px solid var(--purple-800); }
.topic-hero--plain { grid-template-columns: 1fr; }
.topic-code { width: 92px; height: 92px; display: grid; place-items: center; color: #fff; background: var(--purple-800); font-family: Georgia, 'Times New Roman', serif; font-size: 1.8rem; }
.topic-hero h1 { max-width: 880px; margin: 0; color: var(--purple-950); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(3rem, 6vw, 6rem); font-weight: 400; line-height: .98; letter-spacing: -.055em; }
.topic-hero p { max-width: 760px; margin: 28px 0 0; color: var(--muted); font-size: 1.18rem; }
.topic-content { width: min(100% - 48px, 1080px); margin: 0 auto; display: grid; grid-template-columns: 250px 1fr; gap: 72px; padding: 70px 0 110px; }
.topic-index { position: sticky; top: 130px; align-self: start; border-top: 4px solid var(--purple-800); }
.topic-index strong { display: block; padding: 18px 0 10px; font-family: Georgia, 'Times New Roman', serif; font-size: 1.15rem; }
.topic-index a { display: block; padding: 12px 0; color: var(--muted); border-bottom: 1px solid var(--line); font-size: .96rem; text-decoration: none; }
.topic-index a:hover { color: var(--purple-800); }
.topic-article { max-width: 760px; }
.plain-summary { margin: 0 0 54px; padding: 30px 34px; color: var(--purple-950); background: var(--purple-100); border-left: 7px solid var(--purple-800); font-family: Georgia, 'Times New Roman', serif; font-size: 1.35rem; line-height: 1.45; }
.topic-section { scroll-margin-top: 135px; padding: 0 0 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.topic-section h2 { margin: 0 0 20px; color: var(--purple-950); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; line-height: 1.1; letter-spacing: -.035em; }
.topic-section h3 { margin: 28px 0 8px; color: var(--purple-950); font-size: 1.1rem; }
.topic-section p { margin: 0 0 16px; color: #4f4853; }
.topic-section ul { margin: 0; padding-left: 24px; }
.topic-section li { margin-bottom: 11px; }
.topic-section a { color: var(--purple-700); font-weight: 700; }
.topic-callout { padding: 28px 30px; color: #fff; background: var(--purple-800); }
.topic-callout h2 { color: #fff; }
.topic-callout p { color: rgba(255,255,255,.78); }
.topic-callout .button { margin-top: 10px; }
.source-line { color: var(--muted); font-size: .92rem; }

/* páginas de tarefa */
.task-hero { padding: 74px max(24px, calc((100vw - 1080px) / 2)) 58px; color: #fff; background: var(--purple-800); }
.task-hero .section-label { color: #d9c9a7; }
.task-hero h1 { max-width: 920px; margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(3rem, 6vw, 5.8rem); font-weight: 400; line-height: 1; letter-spacing: -.05em; }
.task-hero p { max-width: 760px; margin: 26px 0 0; color: rgba(255,255,255,.78); font-size: 1.12rem; }
.task-shell { width: min(100% - 48px, 1080px); margin: 0 auto; padding: 64px 0 110px; }
.question-box { max-width: 850px; padding: 38px; background: var(--soft); border-top: 5px solid var(--purple-800); }
.question-box label { display: block; margin-bottom: 12px; color: var(--purple-950); font-weight: 800; }
.question-box textarea { width: 100%; min-height: 180px; padding: 20px; color: var(--ink); background: #fff; border: 2px solid #a99faf; border-radius: 0; resize: vertical; }
.question-box .button { margin-top: 16px; }
.privacy-inline { margin: 14px 0 0; color: var(--muted); font-size: .92rem; }
.answer-card { margin-top: 28px; padding: 28px; background: #fff; border-left: 6px solid var(--purple-800); }
.answer-card h3 { margin-top: 0; color: var(--purple-950); font-family: Georgia, 'Times New Roman', serif; font-size: 1.6rem; }
.answer-card a { color: var(--purple-700); font-weight: 700; }
.answer-meta { padding-top: 18px; border-top: 1px solid var(--line); font-size: .94rem; }

.triage-intro { display: flex; justify-content: space-between; gap: 35px; align-items: end; margin-bottom: 35px; }
.triage-intro h2 { margin: 0; color: var(--purple-950); font-family: Georgia, 'Times New Roman', serif; font-size: 2rem; font-weight: 400; }
.triage-intro p { max-width: 700px; margin: 10px 0 0; color: var(--muted); }
.triage-shell { overflow: hidden; background: #fff; border: 2px solid var(--purple-800); }
.triage-topbar { display: flex; justify-content: space-between; gap: 24px; padding: 24px 30px 18px; color: #fff; background: var(--purple-950); }
.triage-topbar span, .triage-topbar strong { display: block; }
.triage-topbar span { color: rgba(255,255,255,.67); font-size: .8rem; }
.progress-track { height: 12px; background: #ddd6e2; }
.progress-track > span { width: 0; height: 100%; display: block; background: var(--accent); transition: width .25s ease; }
.triage-content { min-height: 430px; padding: clamp(32px, 6vw, 66px); }
.triage-question { max-width: 760px; }
.triage-kicker { color: var(--purple-700); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.triage-question h3, .summary-wrap h3 { margin: 12px 0 14px; color: var(--purple-950); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; line-height: 1.1; }
.triage-question > p { color: var(--muted); }
.choice-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 26px; }
.choice-button { min-height: 72px; padding: 17px 20px; color: var(--purple-950); text-align: left; background: #fff; border: 2px solid #8ea197; cursor: pointer; }
.choice-button:hover, .choice-button[aria-pressed="true"] { color: #fff; background: var(--purple-800); border-color: var(--purple-800); }
.multi-choice-confirm { margin-top: 24px; }
.triage-consent, .saved-triage { margin: 24px 0; padding: 24px; background: var(--soft); border-left: 5px solid var(--gold); }
.triage-consent label { display: flex; align-items: flex-start; gap: 14px; font-weight: 700; }
.triage-consent input { width: 24px; height: 24px; flex: 0 0 auto; margin-top: 3px; accent-color: var(--purple-800); }
.triage-consent .button { margin-top: 20px; }
.save-status { margin: 12px 0 0; color: #8b1d1d; font-weight: 700; }
.saved-triage .summary-code { display: inline-block; margin: 0 12px 12px 0; }
.saved-triage p { margin: 8px 0; }
.button-small { min-height: 48px; padding: 10px 16px; }
.lookup-form { max-width: 760px; padding: 28px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(0, 48, 30, .08); }
.lookup-form label { display: block; margin-bottom: 10px; font-weight: 800; }
.lookup-form__row { display: flex; gap: 12px; }
.lookup-form__row .triage-input { margin: 0; }
.lookup-result { max-width: 920px; margin-top: 28px; padding: 28px; background: #fff; border-top: 5px solid var(--gold); }
.lookup-result[hidden] { display: none; }
.lookup-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.lookup-meta div { padding: 16px; background: var(--soft); }
.lookup-meta strong, .lookup-meta span { display: block; }
.lookup-list { display: grid; gap: 14px; padding: 0; list-style: none; }
.lookup-list li { padding: 16px; background: var(--soft); }
.triage-input, .triage-select { width: 100%; min-height: 68px; margin-top: 24px; padding: 16px 18px; color: var(--ink); background: #fff; border: 2px solid #87998f; }
.triage-footer { display: flex; justify-content: space-between; gap: 20px; padding: 18px 28px; background: var(--soft); border-top: 1px solid var(--line); }
.triage-footer-right { display: flex; gap: 12px; }
.document-zone { margin-top: 28px; padding: 28px; background: var(--soft); }
.document-zone label, .document-zone__label { display: block; margin: 16px 0 8px; font-weight: 800; }
.file-input-native { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.file-picker-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.document-zone .file-picker-button { display: inline-flex; align-items: center; justify-content: center; min-height: 60px; margin: 0; padding: 14px 22px; color: #fff; background: var(--purple-800); border: 2px solid var(--purple-800); cursor: pointer; }
.document-zone .file-picker-button:hover { color: var(--purple-950); background: var(--accent); border-color: var(--accent); }
.file-input-native:focus-visible + .file-picker-row .file-picker-button { outline: 4px solid var(--accent); outline-offset: 3px; }
.file-picker-status { color: var(--muted); font-size: .95rem; }
.integration-warning, .summary-warning { margin-top: 22px; padding: 20px; color: #4f4853; background: #eee9f3; border-left: 5px solid var(--purple-800); }
.file-item { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.file-item button { color: #762e3b; background: transparent; border: 0; text-decoration: underline; cursor: pointer; }
.summary-code { display: inline-block; padding: 7px 12px; color: #fff; background: var(--purple-800); font-weight: 800; }
.summary-stats { display: grid; grid-template-columns: repeat(4,1fr); margin: 28px 0; border: 1px solid var(--line); }
.summary-stat { padding: 24px 18px; border-right: 1px solid var(--line); }
.summary-stat:last-child { border-right: 0; }
.summary-stat strong, .summary-stat span { display: block; }
.summary-stat strong { color: var(--purple-800); font-family: Georgia, 'Times New Roman', serif; font-size: 2.2rem; }
.summary-stat span { color: var(--muted); font-size: .8rem; }
.summary-details { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.summary-details > div { padding: 24px; background: var(--soft); }
.summary-details h4 { margin: 0 0 12px; color: var(--purple-950); }
.contact-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.contact-option { padding: 30px; background: var(--soft); border-top: 5px solid var(--purple-800); }
.contact-option h2 { margin: 0 0 10px; color: var(--purple-950); font-family: Georgia, 'Times New Roman', serif; font-size: 1.8rem; font-weight: 400; }
.contact-option p { min-height: 88px; color: var(--muted); }
.contact-option--active { color: #fff; background: var(--purple-800); }
.contact-option--active h2, .contact-option--active p { color: inherit; }
.contact-option--active .button { color: var(--purple-950); background: #fff; }

/* experiência profissional */
.professional-hero { padding-bottom: 78px; }
.professional-list { width: min(100% - 48px, 1080px); margin: 0 auto; padding: 30px 0 90px; }
.professional-profile { display: grid; grid-template-columns: 250px 1fr; gap: 70px; padding: 76px 0; border-bottom: 1px solid var(--line); }
.profile-identity { align-self: start; }
.profile-identity > span { width: 150px; height: 180px; display: grid; place-items: center; color: #fff; background: var(--purple-800); font: 400 3rem Georgia, 'Times New Roman', serif; }
.profile-photo { display: block; width: 220px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border: 1px solid var(--line); box-shadow: 18px 18px 0 var(--soft); }
.profile-identity p { max-width: 150px; margin: 16px 0 0; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .06em; line-height: 1.4; text-transform: uppercase; }
.profile-content h2 { margin: 0; color: var(--purple-950); font: 400 clamp(2.5rem, 5vw, 4.8rem)/1 Georgia, 'Times New Roman', serif; letter-spacing: -.045em; }
.profile-role { margin: 16px 0 30px; color: var(--purple-700); font-weight: 800; }
.profile-content > p:not(.section-label):not(.profile-role) { color: #4f4853; }
.verified-points { margin: 34px 0; border-top: 4px solid var(--purple-800); }
.verified-points div { display: grid; grid-template-columns: 190px 1fr; gap: 25px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.verified-points strong { color: var(--purple-950); }
.verified-points span { color: var(--muted); }
.profile-sources { display: flex; flex-direction: column; gap: 8px; padding: 24px 28px; background: var(--soft); }
.profile-sources strong { color: var(--purple-950); }
.profile-sources a { color: var(--purple-700); font-size: .84rem; font-weight: 700; text-underline-offset: 4px; }

/* página do escritório */
.office-page-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: end; padding: 90px max(24px, calc((100vw - 1080px) / 2)) 75px; color: #fff; background: var(--purple-800); }
.office-page-hero .section-label { color: #d9c9a7; }
.office-page-hero h1 { max-width: 720px; margin: 0; font: 400 clamp(3rem, 6vw, 5.8rem)/1 Georgia, 'Times New Roman', serif; letter-spacing: -.05em; }
.office-page-hero p:not(.section-label) { color: rgba(255,255,255,.78); font-size: 1.12rem; }
.office-page-hero__actions { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.office-page-hero__actions > a:last-child { color: #fff; font-size: .86rem; font-weight: 800; }
.office-gallery { width: min(100% - 48px, 1080px); margin: 0 auto; padding: 84px 0 92px; }
.office-gallery__heading { display: grid; grid-template-columns: .8fr 1.2fr; gap: 36px 70px; align-items: end; margin-bottom: 42px; }
.office-gallery__heading .section-label { grid-column: 1; }
.office-gallery__heading h2 { grid-column: 1; margin: -22px 0 0; color: var(--purple-950); font: 400 clamp(2.5rem, 5vw, 4.8rem)/1 Georgia, 'Times New Roman', serif; letter-spacing: -.045em; }
.office-gallery__heading > p:last-child { grid-column: 2; grid-row: 1 / 3; margin: 0; color: var(--muted); }
.office-gallery__grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 22px; }
.photo-placeholder { margin: 0; }
.photo-placeholder--wide { grid-row: span 2; }
.photo-placeholder > div { min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; color: #fff; background: var(--purple-900); border: 2px dashed #bba9c7; }
.photo-placeholder--wide > div { min-height: 560px; background: var(--purple-950); }
.photo-placeholder span { color: #d9c9a7; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.photo-placeholder strong { margin-top: 8px; font: 400 1.8rem Georgia, 'Times New Roman', serif; }
.photo-placeholder small { margin-top: 8px; color: rgba(255,255,255,.6); font-size: .8rem; }
.photo-placeholder figcaption { padding: 12px 2px; color: var(--muted); font-size: .82rem; }
.photo-integrity { margin: 34px 0 0; padding: 25px 28px; color: var(--muted); background: var(--purple-100); border-left: 6px solid var(--purple-800); }
.visit-details { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; padding: 78px max(24px, calc((100vw - 1080px) / 2)); background: var(--soft); border-top: 1px solid var(--line); }
.visit-details h2 { margin: 0; color: var(--purple-950); font: 400 clamp(2.3rem, 4vw, 3.8rem)/1.05 Georgia, 'Times New Roman', serif; }
.visit-details p { margin-top: 0; color: var(--muted); }
.visit-details a:not(.button) { color: var(--purple-700); font-weight: 700; }

.document-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 44px; border-top: 4px solid var(--purple-800); }
.document-list div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.document-list strong { display: block; color: var(--purple-950); font-family: Georgia, 'Times New Roman', serif; font-size: 1.25rem; }
.document-list p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }

/* política */
.policy-page { background: #fff; }
.policy-header { color: #fff; background: var(--purple-950); border-bottom: 5px solid var(--accent); }
.policy-header-inner { width: min(100% - 48px, 1080px); min-height: 92px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.policy-header .brand { display: flex; align-items: center; gap: 20px; text-decoration: none; }
.policy-header .brand-logo { width: 210px; height: 56px; object-fit: contain; padding: 5px; background: #fff; }
.policy-header .portal-name { font-family: Georgia, 'Times New Roman', serif; font-size: 1.2rem; }
.policy-header .portal-name strong { color: #d7c39b; }
.policy-back { color: #fff; font-size: .85rem; font-weight: 800; }
.policy-hero { padding: 78px max(24px, calc((100vw - 1080px) / 2)) 58px; color: #fff; background: var(--purple-800); }
.policy-hero .eyebrow { margin: 0 0 14px; color: #d9c9a7; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.policy-hero h1 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(3rem, 6vw, 5.8rem); font-weight: 400; line-height: 1; }
.policy-hero p { max-width: 760px; color: rgba(255,255,255,.78); }
.policy-meta { display: flex; gap: 30px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.25); font-size: .82rem; }
.policy-layout { width: min(100% - 48px, 1080px); margin: 0 auto; display: grid; grid-template-columns: 240px 1fr; gap: 70px; padding: 68px 0 100px; }
.policy-index { position: sticky; top: 120px; align-self: start; border-top: 4px solid var(--purple-800); }
.policy-index strong, .policy-index a { display: block; padding: 10px 0; }
.policy-index a { color: var(--muted); border-bottom: 1px solid var(--line); font-size: .94rem; text-decoration: none; }
.policy-intro-note { padding: 26px; margin-bottom: 50px; background: var(--purple-100); border-left: 6px solid var(--purple-800); }
.policy-intro-note strong { font-family: Georgia, 'Times New Roman', serif; font-size: 1.3rem; }
.policy-intro-note p { margin-bottom: 0; }
.policy-article section { scroll-margin-top: 130px; display: grid; grid-template-columns: 45px 1fr; gap: 18px; padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.policy-article section > span { color: #85788e; font-family: Georgia, 'Times New Roman', serif; font-style: italic; }
.policy-article section h2 { margin: 0 0 18px; color: var(--purple-950); font-family: Georgia, 'Times New Roman', serif; font-size: 2rem; font-weight: 400; line-height: 1.15; }
.policy-article section p, .policy-article section ul, .policy-article section dl { grid-column: 2; margin-top: 0; }
.policy-article dl div { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 10px 0; border-top: 1px solid var(--line); }
.policy-article dt { font-weight: 800; }
.policy-article dd { margin: 0; }
.policy-sources { display: flex; flex-direction: column; gap: 8px; padding: 28px; color: #fff; background: var(--purple-800); }
.policy-footer { padding: 34px 24px; color: rgba(255,255,255,.78); background: #071a13; }
.policy-footer .container { width: min(100%,1080px); margin: 0 auto; display: flex; justify-content: space-between; gap: 30px; }
.policy-footer p { margin: 0; font-size: .94rem; }
.policy-footer a { color: #fff; }

/* diálogo */
.site-dialog { width: min(90vw, 700px); max-height: 88vh; padding: 38px; color: var(--ink); background: #fff; border: 0; border-top: 7px solid var(--purple-800); box-shadow: 0 25px 70px rgba(0,0,0,.3); }
.site-dialog::backdrop { background: rgba(2,31,20,.76); }
.dialog-close { position: absolute; right: 16px; top: 12px; width: 42px; height: 42px; color: var(--purple-950); background: var(--soft); border: 0; font-size: 1.6rem; cursor: pointer; }
.site-dialog h2 { color: var(--purple-950); font-family: Georgia, 'Times New Roman', serif; font-size: 2rem; font-weight: 400; }
.site-dialog .eyebrow { color: var(--purple-700); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.placeholder-box { padding: 20px; background: var(--purple-100); border-left: 5px solid var(--purple-800); }
.toast { position: fixed; left: 50%; bottom: 112px; z-index: 300; max-width: calc(100% - 40px); padding: 14px 20px; color: #fff; background: var(--purple-950); opacity: 0; transform: translate(-50%,30px); pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 1100px) {
  .portal-overview { grid-template-columns: 1fr; }
  .portal-header__inner { grid-template-columns: 220px minmax(0,1fr); gap: 24px; }
  .portal-identity--logo { width: 220px; height: 70px; }
  .office-logo { width: 190px; }
  .portal-identity__purpose { display: none; }
  .portal-nav a { padding-inline: 9px; font-size: .8rem; }
  .home-intro { grid-template-columns: 1fr; }
  .home-intro__main, .home-subjects { padding-left: max(36px, calc((100vw - 900px) / 2)); padding-right: max(36px, calc((100vw - 900px) / 2)); }
  .home-intro h1 { max-width: 850px; }
  .quick-actions { grid-template-columns: 1fr; }
  .quick-actions__title { padding: 65px max(36px, calc((100vw - 900px) / 2)); }
  .portal-footer__main { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 1250px) {
  .portal-header__inner { width: min(100% - 30px, var(--max)); grid-template-columns: 1fr auto; }
  .office-logo { display: none; }
  .menu-toggle { display: block; grid-column: 2; grid-row: 1; }
  .portal-nav { position: absolute; left: 0; right: 0; top: 109px; display: none; padding: 12px 15px 20px; background: var(--purple-950); border-bottom: 5px solid var(--accent); }
  .portal-nav.open { display: grid; }
  .portal-nav a { min-height: 58px; padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.16); font-size: 1rem; }
  .portal-nav .nav-contact { margin: 8px 0 0; justify-content: center; }
}

@media (max-width: 820px) {
  body { padding-bottom: 92px; font-size: 19px; }
  .portal-overview { width: calc(100% - 32px); margin-top: 28px; }
  .portal-overview__content { grid-template-columns: 1fr; }
  .portal-overview__statement { min-height: auto; }
  .portal-overview__detail { grid-template-columns: 1fr; gap: 0; }
  .portal-overview__detail:nth-child(4) { border-left: 0; }
  .portal-header__inner { width: min(100% - 30px, var(--max)); min-height: 88px; grid-template-columns: 1fr auto; }
  .portal-identity--logo { width: 210px; height: 66px; }
  .office-logo { display: none; }
  .menu-toggle { display: block; grid-column: 2; grid-row: 1; }
  .portal-nav { position: absolute; left: 0; right: 0; top: 93px; display: none; padding: 12px 15px 20px; background: var(--purple-950); border-bottom: 5px solid var(--accent); }
  .portal-nav.open { display: grid; }
  .portal-nav a { min-height: 58px; padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.16); font-size: 1rem; }
  .portal-nav .nav-contact { margin: 8px 0 0; justify-content: center; }
  .home-intro__main { padding-top: 62px; padding-bottom: 66px; }
  .home-intro h1 { font-size: clamp(3rem, 12vw, 5rem); }
  .subject-heading { display: block; }
  .subject-heading p:last-child { margin-top: 6px; }
  .subject-row { grid-template-columns: 42px 1fr; }
  .subject-row em { grid-column: 2; }
  .quick-actions__list { grid-template-columns: 1fr; }
  .quick-actions__list a { min-height: 150px; border-left: 0; border-bottom: 1px solid var(--line) !important; }
  .quick-actions__list a:last-child { border-bottom: 0 !important; }
  .other-topics { grid-template-columns: 1fr; gap: 42px; padding: 78px 0; }
  .legal-band { grid-template-columns: 1fr; gap: 12px; }
  .portal-footer__main { grid-template-columns: 1fr; gap: 34px; }
  .portal-footer__legal { align-items: flex-start; flex-direction: column; gap: 18px; }
  .people-places { grid-template-columns: 1fr; }
  .people-places > a, .people-places > a:nth-child(2) { min-height: 240px; padding: 44px 34px; border-right: 0; border-bottom: 1px solid var(--line); }
  .topic-hero { grid-template-columns: 1fr; gap: 24px; padding-top: 52px; }
  .topic-code { width: 70px; height: 70px; }
  .topic-content, .policy-layout { grid-template-columns: 1fr; gap: 42px; }
  .topic-index, .policy-index { position: static; }
  .contact-options { grid-template-columns: 1fr; }
  .contact-option p { min-height: 0; }
  .summary-stats { grid-template-columns: repeat(2,1fr); }
  .summary-stat:nth-child(2) { border-right: 0; }
  .summary-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .summary-details { grid-template-columns: 1fr; }
  .policy-header .portal-name { display: none; }
  .professional-profile { grid-template-columns: 150px 1fr; gap: 35px; }
  .profile-identity > span { width: 120px; height: 145px; }
  .profile-photo { width: 140px; box-shadow: 10px 10px 0 var(--soft); }
  .office-page-hero, .office-gallery__heading, .visit-details { grid-template-columns: 1fr; gap: 32px; }
  .office-gallery__heading > p:last-child { grid-column: 1; grid-row: auto; }
  .office-gallery__grid { grid-template-columns: 1fr; }
  .photo-placeholder--wide { grid-row: auto; }
  .photo-placeholder--wide > div { min-height: 400px; }
  .contact-shortcut { min-height: 76px; gap: 3px; padding: 7px 4px; font-size: .86rem; }
  .contact-shortcut svg { width: 25px; height: 25px; }
}

@media (max-width: 560px) {
  body { font-size: 19px; line-height: 1.65; }
  .portal-identity--logo { width: 190px; height: 60px; }
  .portal-identity__name { font-size: 1.35rem; }
  .home-intro__main, .home-subjects { padding-left: 22px; padding-right: 22px; }
  .home-intro h1 { font-size: 3.15rem; }
  .home-intro__lead { font-size: 1.06rem; }
  .home-alert { grid-template-columns: 1fr; }
  .button { width: 100%; min-height: 62px; }
  .subject-row { min-height: 110px; }
  .subject-row strong { font-size: 1.3rem; }
  .quick-actions__title { padding: 58px 22px; }
  .quick-actions__list a { padding: 32px 22px; }
  .other-topics { width: calc(100% - 44px); }
  .other-topics__links a { align-items: flex-start; flex-direction: column; gap: 4px; }
  .portal-footer__main, .portal-footer__legal { width: calc(100% - 44px); }
  .portal-footer__legal div { flex-direction: column; gap: 8px; white-space: normal; }
  .people-places > a, .people-places > a:nth-child(2) { grid-template-columns: 1fr; padding: 38px 22px; }
  .floating-help { right: 14px; bottom: 14px; padding-right: 14px; }
  .breadcrumb, .topic-hero, .topic-content, .task-shell { width: calc(100% - 36px); }
  .topic-hero h1, .task-hero h1 { font-size: 3rem; }
  .plain-summary { padding: 24px 20px; font-size: 1.18rem; }
  .topic-content { padding-top: 44px; }
  .question-box { padding: 24px 18px; }
  .triage-intro { align-items: stretch; flex-direction: column; }
  .triage-content { padding: 32px 18px; }
  .choice-list { grid-template-columns: 1fr; }
  .lookup-form__row { flex-direction: column; }
  .lookup-meta { grid-template-columns: 1fr; }
  .triage-footer { flex-direction: column-reverse; padding: 16px; }
  .triage-footer-right { flex-direction: column-reverse; }
  .triage-footer .button { width: 100%; }
  .document-zone { padding: 20px 16px; }
  .document-list { grid-template-columns: 1fr; }
  .professional-list, .office-gallery { width: calc(100% - 36px); }
  .professional-profile { grid-template-columns: 1fr; gap: 28px; padding: 58px 0; }
  .profile-identity { display: flex; align-items: center; gap: 18px; }
  .profile-identity > span { width: 82px; height: 82px; font-size: 1.8rem; }
  .profile-photo { width: 112px; flex: 0 0 auto; box-shadow: 8px 8px 0 var(--soft); }
  .profile-identity p { margin: 0; }
  .verified-points div { grid-template-columns: 1fr; gap: 4px; }
  .office-page-hero { padding-top: 62px; }
  .office-page-hero h1 { font-size: 3rem; }
  .photo-placeholder--wide > div { min-height: 300px; }
  .summary-stats { grid-template-columns: 1fr; }
  .summary-stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .summary-stat:last-child { border-bottom: 0; }
  .policy-header-inner { width: calc(100% - 32px); min-height: 78px; }
  .policy-header .brand-logo { width: 175px; }
  .policy-back { font-size: .72rem; }
  .policy-layout { width: calc(100% - 36px); }
  .policy-article section { grid-template-columns: 30px 1fr; gap: 10px; }
  .policy-article dl div { grid-template-columns: 1fr; gap: 3px; }
  .policy-footer .container { flex-direction: column; }
  .site-dialog { padding: 30px 22px; }
}
