/* Referências oficiais consultadas em 10/11/2026:
   https://www12.senado.leg.br/ecidadania/principalideia
   https://www12.senado.leg.br/ecidadania/++resource++static/css/ecidadania.css
   https://www12.senado.leg.br/ecidadania/++theme++senado/essencial/css/essencial.css
   Cores de marca preservadas; tons mais escuros nos textos e botões para leitura. */
:root {
  --navy: #00305c;
  --blue: #005b9e;
  --portal-blue: #007db8;
  --gold: #faa731;
  --product: #f24f00;
  --product-ink: #b83d00;
  --ink: #333;
  --muted: #59636d;
  --line: #d5d9dd;
  --bg: #f6f6f7;
  --green: #1f6b50;
  --red: #a42c2c;
  --radius: 4px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-underline-offset: 4px; }
button, input, textarea { font: inherit; }
button, a, input, textarea { touch-action: manipulation; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
button:disabled { opacity: .6; cursor: not-allowed; }
.skip { position: absolute; top: -100px; background: white; padding: 12px; z-index: 10; }
.skip:focus { top: 0; }
.academic { padding: 5px max(24px, calc((100% - 1140px)/2)); background: #edf0f2; color: #4d5963; font-size: 12px; display: flex; justify-content: space-between; gap: 20px; }
.institutional { background: var(--blue); color: white; }
.institutional-inner { max-width: 1188px; min-height: 60px; margin: auto; padding: 0 24px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; padding-block: 12px; }
.brand img { display: block; width: 168px; height: auto; }
.institutional a { color: white; text-decoration: none; }
.institutional a:hover { text-decoration: underline; }
.institutional-contact { justify-self: end; font-size: 13px; padding-block: 12px; }
.icon { width: 20px; height: 20px; flex: none; }
.portal-menu { position: relative; justify-self: start; z-index: 5; }
.portal-menu summary { display: flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; list-style: none; min-width: 44px; min-height: 44px; padding: 10px 8px; font-size: 16px; }
.portal-menu summary::-webkit-details-marker { display: none; }
.portal-menu summary:hover, .portal-menu[open] summary { background: var(--portal-blue); }
.portal-menu-links { position: absolute; top: calc(100% + 8px); left: 0; width: min(300px, calc(100vw - 48px)); padding: 10px 0; background: white; border: 1px solid var(--line); border-top: 3px solid var(--gold); box-shadow: 0 5px 14px #00305c26; }
.portal-menu-links a { display: flex; justify-content: space-between; color: var(--navy); padding: 11px 20px; font-size: 14px; }
.portal-menu-links a:hover { background: #edf5fa; }
.portal-menu-links p { border-top: 1px solid var(--line); padding: 12px 20px 0; margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.masthead { background: var(--portal-blue); color: white; }
.section-heading { max-width: 1188px; padding: 17px 24px 10px; margin: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.section-brand { color: white; font-family: "Segoe UI", Arial, sans-serif; font-size: 40px; font-weight: 300; line-height: 1.3; text-decoration: none; }
.section-description { font-size: 14px; }
.section-nav { max-width: 1188px; padding: 0 24px; margin: auto; display: flex; align-items: stretch; }
.section-nav a { position: relative; display: flex; align-items: center; gap: 5px; padding: 12px 18px; color: white; text-decoration: none; font-size: 14px; line-height: 1.5; }
.section-nav a:first-child { padding-left: 0; }
.section-nav a + a::before { content: ""; position: absolute; left: 0; height: 16px; width: 1px; background: var(--gold); }
.section-nav a:last-child { margin-left: auto; padding-right: 0; padding-left: 22px; }
.section-nav a:last-child::before { display: none; }
.section-nav a[aria-current=page] { font-weight: 700; box-shadow: inset 0 -3px var(--gold); }
.section-nav a:hover { background: var(--blue); text-decoration: underline; }
.external-mark { font-size: 11px; }
.institutional :focus-visible, .masthead :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }
.portal-menu-links :focus-visible { outline-color: var(--blue); outline-offset: -3px; }
.service-heading { max-width: 1140px; margin: 28px auto 0; text-align: center; }
.service-title { display: flex; align-items: center; gap: 18px; margin: 0 0 3px; color: var(--product-ink); font-size: 24px; line-height: 1.4; font-weight: 700; text-transform: uppercase; }
.service-title::before, .service-title::after { content: ""; height: 2px; flex: 1; background: var(--product); }
.service-description { margin: 0; color: var(--ink); font-size: 13px; text-transform: uppercase; }
main { max-width: 1140px; min-height: 55vh; margin: auto; padding: 20px 0 56px; }
main:focus { outline: none; }
.crumb { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 24px; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.crumb span { color: var(--muted); }
.eyebrow { color: var(--blue); font-size: 12px; text-transform: uppercase; font-weight: 700; letter-spacing: .04em; margin: 0 0 10px; }
h1 { color: var(--navy); font-size: clamp(27px, 3vw, 34px); line-height: 1.25; font-weight: 600; margin: 0 0 14px; }
h2 { color: var(--navy); font-size: 21px; line-height: 1.35; margin: 0 0 12px; }
h3 { font-size: 16px; line-height: 1.45; margin: 0 0 7px; }
p { margin: 0 0 18px; }
.lead { font-size: 17px; color: var(--muted); max-width: 620px; }
.actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid var(--product-ink); border-radius: var(--radius); padding: 12px 22px; background: var(--product-ink); color: white; font-weight: 700; font-size: 14px; text-align: center; text-decoration: none; min-height: 48px; }
.btn:hover { background: #963200; border-color: #963200; color: white; }
.btn.secondary { background: white; color: var(--navy); border-color: #bfcdd8; }
.btn.secondary:hover { background: #f0f5f8; }
.text-link { font-size: 14px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 28px; align-items: start; }
.layout > * { min-width: 0; }
.card { border: 1px solid var(--line); background: white; border-radius: var(--radius); padding: 32px; }
.card-heading { border-bottom: 1px solid #e8edf1; padding-bottom: 20px; margin-bottom: 26px; }
.card-heading p:last-child { margin: 0; }
.aside { font-size: 14px; padding: 24px; background: white; border-top: 3px solid var(--portal-blue); }
.aside h2 { font-size: 18px; }
.aside ol { padding-left: 20px; margin-bottom: 0; }
.aside li { margin-bottom: 16px; color: var(--muted); font-size: 13px; padding-left: 3px; }
.aside li:last-child { margin-bottom: 0; }
.aside li::marker { color: var(--blue); font-weight: 700; }
.aside hr { border: 0; border-top: 1px solid var(--line); margin: 23px 0; }
.hint { font-size: 13px; color: var(--muted); }
.notice { padding: 16px 18px; border: 1px solid #d8e7f2; border-left: 4px solid var(--portal-blue); border-radius: var(--radius); background: #f1f7fb; font-size: 14px; margin: 23px 0; color: #284f6d; }
.notice strong { display: block; margin-bottom: 5px; font-size: 14px; }
.notice p:last-child { margin: 0; }
.notice.warning { background: #fff9ee; border-color: #ecd9b4; border-left-color: #aa6d00; color: #6b5127; }
.notice.success { background: #edf7f1; border-color: #c5e3d1; border-left-color: var(--green); color: #205e47; }
.notice.error { background: #fff1f1; border-color: #e7bcbc; border-left-color: var(--red); color: #822727; }
.steps { display: flex; list-style: none; padding: 0; margin: 0 0 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow: hidden; }
.steps li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 16px 20px; color: var(--muted); font-size: 13px; border-right: 1px solid #e9eef2; }
.steps li:last-child { border-right: 0; }
.step-number { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #d2dce4; border-radius: 50%; font-size: 11px; flex: none; }
.steps li.active { color: var(--navy); background: #edf5fb; font-weight: 700; box-shadow: inset 0 -3px var(--portal-blue); }
.steps li.active .step-number { background: var(--navy); color: white; border-color: var(--navy); }
.steps li.completed { color: var(--green); }
.steps li.completed .step-number { border-color: #b5d2c2; color: var(--green); }
.field { margin-bottom: 25px; }
.field-label { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 9px; }
label { display: block; font-size: 14px; font-weight: 650; }
.field-label small { font-size: 12px; color: var(--muted); }
input[type=text], textarea { display: block; width: 100%; border: 1px solid #8c99a5; border-radius: var(--radius); color: var(--ink); background: #fff; padding: 12px 14px; font-size: 16px; line-height: 1.6; }
input[type=text]:hover, textarea:hover { border-color: var(--blue); }
input[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--red); }
textarea { min-height: 170px; resize: vertical; }
.field-help { display: flex; justify-content: space-between; gap: 20px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.counter { white-space: nowrap; font-variant-numeric: tabular-nums; }
.form-bottom { border-top: 1px solid #e8edf1; padding-top: 23px; display: flex; gap: 18px; justify-content: space-between; align-items: center; }
.form-bottom .actions { margin: 0; }
.form-bottom .hint { margin: 0; }
.check { display: flex; gap: 11px; align-items: flex-start; font-weight: 400; font-size: 13px; }
.check input { margin-top: 3px; width: 19px; height: 19px; accent-color: var(--blue); flex: none; }
.review-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 25px; }
.review-block .eyebrow { font-size: 12px; }
.review-block h2 { font-size: 22px; overflow-wrap: anywhere; }
.review-text { white-space: pre-wrap; overflow-wrap: anywhere; color: #425e73; font-size: 15px; margin-bottom: 0; }
.badge { display: inline-flex; gap: 7px; align-items: center; width: fit-content; max-width: 100%; padding: 5px 10px; background: #eaf2f8; color: #1b547d; border-radius: var(--radius); font-size: 12px; font-weight: 700; height: fit-content; }
.badge::before { content: ""; width: 6px; height: 6px; flex: none; background: currentColor; border-radius: 50%; }
.badge.green { background: #e6f3eb; color: var(--green); }
.badge.gray { background: #edf0f2; color: #576570; }
.receipt { border-top: 4px solid var(--green); }
.receipt-icon { width: 48px; height: 48px; display: grid; place-items: center; background: #e7f3ec; color: var(--green); font-size: 23px; border-radius: 50%; margin-bottom: 22px; }
.receipt h1 { font-size: 34px; }
.metadata { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 23px; margin: 26px 0 0; border-top: 1px solid var(--line); }
.metadata .full { grid-column: 1 / -1; }
.metadata dt { font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.metadata dd { font-size: 14px; font-weight: 650; margin: 0; overflow-wrap: anywhere; }
.metadata code { font: 600 17px/1.4 Consolas, monospace; letter-spacing: .03em; }
.next-step { padding: 26px; background: #f1f6f9; border-top: 3px solid var(--portal-blue); }
.next-step .btn { width: 100%; margin-top: 8px; }
.next-step p { font-size: 13px; color: #486276; }
.next-step .eyebrow { color: var(--blue); }
.next-step .note { border-top: 1px solid #d6e2ea; padding-top: 17px; margin-top: 22px; font-size: 12px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.page-heading p:last-child { margin-bottom: 0; }
.page-heading h1 { font-size: 34px; }
.empty { padding: 55px 30px; text-align: center; border: 1px dashed #bdccd6; background: white; border-radius: var(--radius); }
.empty p { color: var(--muted); font-size: 14px; }
.empty .receipt-icon { margin-inline: auto; color: var(--blue); background: #edf3f8; }
.idea-summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.idea-summary h2 { max-width: 630px; font-size: 23px; }
.idea-summary .hint { margin-bottom: 7px; font-family: Consolas, monospace; }
.status-explainer { margin-top: 23px; }
.status-explainer h3 { font-size: 18px; }
.status-explainer p { color: var(--muted); font-size: 14px; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 25px 0 0; margin: 26px 0 28px; border-top: 1px solid var(--line); }
.timeline li { position: relative; padding: 28px 18px 0 0; border-top: 2px solid #dbe4eb; font-size: 13px; color: var(--muted); }
.timeline li::before { content: ""; width: 12px; height: 12px; position: absolute; top: -7px; left: 0; border: 2px solid #c5d2dc; border-radius: 50%; background: white; }
.timeline li.done { border-color: #94bba6; color: var(--green); }
.timeline li.done::before { background: var(--green); border-color: var(--green); }
.timeline li.current { color: var(--navy); }
.timeline li.current::before { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 4px #e3edf5; }
.timeline p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.text-details { padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }
.text-details summary { cursor: pointer; font-weight: 600; color: var(--blue); }
.text-details p { padding-top: 15px; font-size: 14px; }
.info-list { padding-left: 19px; font-size: 13px; color: var(--muted); }
.info-list li { margin-bottom: 12px; }
.site-footer { background: var(--navy); color: white; font-size: 13px; }
.footer-inner { max-width: 1188px; margin: auto; padding: 26px 24px 20px; }
.footer-main { display: flex; gap: 25px; align-items: center; justify-content: space-between; padding-bottom: 20px; }
.footer-main strong { font-size: 15px; }
.footer-main p { margin: 4px 0 0; color: #e1eaf1; }
.footer-main nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.site-footer a { color: white; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-address { padding-block: 16px; margin: 0; text-align: center; border-top: 1px solid #55718b; border-bottom: 1px solid #55718b; }
.footer-academic { margin: 14px 0 0; color: #e1eaf1; font-size: 12px; text-align: center; }
.lab { max-width: 1140px; margin: 24px auto 28px; border: 1px dashed #c0ccd6; border-radius: var(--radius); padding: 13px 18px; color: var(--muted); font-size: 12px; }
.lab summary { cursor: pointer; }
.lab p { margin: 12px 0; }
.lab-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lab button { font-size: 11px; padding: 9px 12px; border: 1px solid #becdd8; border-radius: 6px; color: var(--navy); background: white; }
.optional-contexts { margin-top: 17px; }
@media (max-width: 1188px) {
  main, .service-heading, .lab { margin-inline: 24px; }
}
@media (max-width: 1050px) {
  .section-nav a { padding-inline: 12px; font-size: 13px; }
  .section-nav a:last-child { padding-left: 12px; }
  .section-description { display: none; }
}
@media (max-width: 950px) {
  .layout { grid-template-columns: minmax(0, 1fr) 255px; gap: 22px; }
  .card { padding: 27px; }
  .aside { padding: 22px; }
  .steps li { padding-inline: 14px; }
  .idea-summary { flex-wrap: wrap; }
  .footer-main { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 760px) {
  .academic { padding-inline: 18px; font-size: 11px; }
  .academic span:last-child { display: none; }
  .institutional-inner { padding-inline: 18px; gap: 8px; }
  .institutional-contact, .portal-menu summary span { display: none; }
  .brand img { width: 154px; }
  .section-heading { padding: 14px 18px 10px; }
  .section-brand { font-size: 32px; }
  .section-nav { display: grid; grid-template-columns: 1fr 1fr; padding: 0 18px 12px; gap: 2px 8px; }
  .section-nav a, .section-nav a:first-child, .section-nav a:last-child { margin: 0; padding: 10px 8px; font-size: 13px; min-height: 44px; }
  .section-nav a + a::before { display: none; }
  .service-heading { margin: 22px 18px 0; }
  .service-title { font-size: 20px; gap: 10px; }
  .service-description { font-size: 11px; }
  main { margin-inline: 18px; padding-top: 18px; }
  .crumb { font-size: 12px; gap: 7px; margin-bottom: 20px; }
  .layout { grid-template-columns: 1fr; }
  .card { padding: 25px 22px; }
  .aside { order: 2; }
  .steps li { padding: 13px 4px; font-size: 12px; gap: 7px; flex-direction: column; text-align: center; min-width: 0; }
  .step-number { width: 24px; height: 24px; font-size: 12px; }
  .actions { align-items: stretch; }
  .actions .btn { flex: 1 1 200px; }
  .form-bottom { flex-wrap: wrap; }
  .form-bottom .actions { width: 100%; }
  .form-bottom .actions .btn { width: 100%; }
  .metadata { gap: 18px; }
  .receipt h1 { font-size: 30px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading h1 { font-size: 30px; }
  .idea-summary { flex-direction: column; }
  .idea-summary h2 { font-size: 22px; }
  .timeline { display: block; padding-top: 25px; }
  .timeline li { border-top: 0; border-left: 2px solid #dbe4eb; padding: 0 0 25px 24px; margin-left: 7px; }
  .timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
  .timeline li::before { left: -7px; top: 4px; }
  .timeline li strong { font-size: 14px; }
  .footer-inner { padding-inline: 18px; }
  .footer-main nav { flex-direction: column; gap: 6px; }
  .footer-main nav a { padding-block: 8px; }
  .footer-address, .footer-academic { text-align: left; }
  .lab { margin-inline: 18px; }
}
@media (max-width: 380px) {
  .card { padding-inline: 18px; }
  .metadata { grid-template-columns: 1fr; }
  .steps li { font-size: 11px; }
  .field-help { gap: 10px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background .15s, border-color .15s; }
}
