@layer reset, base, components, utilities;
@layer reset {
  *, *::before, *::after { box-sizing: border-box }
  body, h1, h2, h3, p { margin: 0 }
  img { display: block; max-width: 100%; height: auto }
  button, input, select { font: inherit }
}
@layer base {
  :root { color-scheme: light; --ink:#06152d; --navy:#102b4b; --gold:#c9953e; --deep-gold:#765018; --cream:#f8f6f1; --line:#e2e4e8; --text:#263b52; --muted:#526377; --shadow:0 12px 38px #102b4b0b; font:16px/1.55 'Segoe UI',Arial,sans-serif }
  body { color:var(--ink); background:var(--cream) }
  a { color:inherit; text-underline-offset:.22em }
  a:hover { text-decoration-thickness:2px }
  :focus-visible { outline:3px solid #1359a3; outline-offset:3px }
  main:focus { outline:none }
  h1,h2,h3 { letter-spacing:-.04em; line-height:1.08 }
  h1,h2 { font-family:Georgia,'Times New Roman',serif; font-weight:500 }
  h1 { font-size:clamp(2.6rem,6vw,5rem) }
  h2 { font-size:clamp(1.9rem,4vw,2.65rem) }
  h3 { font-size:1.25rem }
  button { cursor:pointer }
  button:disabled { opacity:.5; cursor:default }
  input,select { background:#fff; color:var(--ink); min-height:2.8rem; width:100%; border:1px solid #bfcad7; border-radius:.6rem; padding:.62rem .76rem }
  label { font-size:.84rem; font-weight:650 }
  summary { cursor:pointer; font-weight:650 }
}
@layer components {
  .shell { width:min(1152px,calc(100% - 44px)); margin-inline:auto }
  header { background:#fff; border-bottom:1px solid #e7e6e1 }
  .top { min-height:77px; display:flex; gap:1.8rem; align-items:center; justify-content:space-between }
  .brand,.top nav a { text-decoration:none }
  .brand-header { width:min(190px,26vw); max-height:64px; object-fit:contain; object-position:left }
  .wordmark { display:inline-grid; font:600 1.3rem/1 Georgia,serif; letter-spacing:.065em }
  .wordmark small { font:600 .63rem/1.5 'Segoe UI',sans-serif; letter-spacing:.25em; color:var(--deep-gold) }
  .top nav { display:flex; font-size:.92rem; gap:clamp(.7rem,2.1vw,1.65rem); flex-wrap:wrap; color:var(--text) }
  .top nav [aria-current=page] { color:var(--deep-gold); text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:.52em }
  .button { display:inline-flex; align-items:center; justify-content:center; gap:.35em; border-radius:.56rem; font-size:.91rem; font-weight:700; min-height:2.75rem; text-decoration:none; padding:.65rem .95rem; border:1px solid transparent; white-space:nowrap }
  .button.primary { background:#e1b367; color:#211609 }
  .button.primary:hover { background:#edc680 }
  .button.secondary { border-color:#c7d0da; color:var(--navy); background:#fff }
  .button.secondary:hover { background:#eef3f8 }
  .button.on-dark { border-color:#a8b8cc; color:#fff }
  .button.on-dark:hover { background:#fff1 }
  .hero { background:radial-gradient(ellipse at 86% 24%,#27476a 0%,transparent 48%),linear-gradient(125deg,#06152d,#102b4b 72%,#0d2542); color:#fff; min-height:430px; border-bottom:4px solid #c9953e }
  .hero-inner { display:grid; grid-template-columns:1.2fr .8fr; gap:clamp(1.5rem,6vw,6rem); align-items:center; min-height:430px; padding-block:3.1rem }
  .hero h1 { max-width:650px }
  .hero h1 em { color:#e1b367; display:block; font-style:normal }
  .hero-lead { margin:1.05rem 0 1.6rem; color:#e1e9f2; font-size:1.12rem; max-width:460px }
  .eyebrow { font-size:.71rem; font-weight:750; letter-spacing:.15em; color:var(--deep-gold); margin-bottom:.65rem }
  .hero .eyebrow { color:#f0c787 }
  .actions { display:flex; flex-wrap:wrap; gap:.65rem }
  .hero-side { display:grid; gap:1rem; justify-items:stretch }
  .hero-slogan,.hero-brand { padding:1.8rem 1.5rem; border:1px solid #a4bdd348; border-radius:.9rem; background:#ffffff09; font:1.65rem/1.29 Georgia,serif; color:#f3dfbf }
  .hero-brand { padding:.85rem; background:#fff; min-height:7rem; display:grid; align-items:center }
  .brand-home { max-height:150px; width:100%; object-fit:contain }
  .brand-slogan { margin:.75rem 0 .15rem; text-align:center; color:var(--navy); font:clamp(.94rem,2vw,1.2rem)/1.25 Georgia,serif }
  .capital small { font-size:.66rem; letter-spacing:.15em; font-weight:700; color:#f2c987 }
  .home-question { display:grid; gap:.5rem; min-width:0; padding:.85rem 1rem; background:#06152d73; border:1px solid #a4bdd348; border-radius:.65rem }
  .home-question-actions { display:flex; flex-wrap:wrap; gap:.45rem }
  .home-question-actions input { flex:1 1 12rem; min-width:0; color:var(--navy) }
  .home-question-result { font-size:.9rem; line-height:1.45; color:#eef4fb }
  .home-question-result details { padding:.45rem 0 }
  .home-question-result summary { cursor:pointer; font-weight:700 }
  .home-question-result p { margin:.4rem 0 }
  .section { padding-block:clamp(1.8rem,4.6vw,3.65rem) }
  .section-top { display:flex; flex-wrap:wrap; align-items:end; justify-content:space-between; gap:.8rem; margin-bottom:1.1rem }
  .section-top p,.module-intro p,.help-title p { margin-top:.43rem }
  .catalog-controls,.filters { display:grid; gap:.73rem; grid-template-columns:2fr 1fr; margin-bottom:1.05rem }
  .field { display:grid; gap:.22rem; min-width:0; align-content:end }
  .plan-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem }
  .plan-card { background:#fff; border:1px solid var(--line); border-radius:.84rem; padding:1.3rem; box-shadow:var(--shadow); display:grid; gap:.45rem; align-content:start }
  .plan-card .eyebrow { margin-bottom:.13rem }
  .plan-card.pilot { border-top:3px solid var(--gold) }
  .status { color:var(--muted); font-size:.83rem; margin-top:.35rem }
  .text-action { font:700 .88rem/1.3 'Segoe UI',Arial,sans-serif; color:var(--navy); border:0; background:none; padding:.36rem 0; text-underline-offset:.21em }
  .footer { display:grid; grid-template-columns:1fr 1.3fr auto; gap:1.3rem; color:#e0e8f2; font-size:.86rem; padding-block:2.1rem }
  footer { background:var(--ink) }
  footer strong { color:#fff }
  footer p { margin:.28rem 0; overflow-wrap:anywhere }
  .muted { color:var(--muted) }
  .prose { max-width:760px }
  .prose p { margin:1em 0 }
  .crumb { font-size:.84rem; color:var(--muted); margin-bottom:1.28rem }
  .module { display:grid; gap:1.05rem }
  .module-intro { display:grid; grid-template-columns:1fr minmax(240px,310px); gap:1.3rem; align-items:center }
  .module-intro h1 { font-size:clamp(2.6rem,6.2vw,4.4rem) }
  .insurer { display:flex; gap:.5rem; align-items:center; color:var(--text); font-size:.85rem; margin-top:.65rem }
  .insurer-logo { width:99px; max-height:49px; object-fit:contain }
  .capital { display:grid; gap:.35rem; padding:1.12rem 1.32rem; color:#fff; background:var(--navy); border-radius:.9rem; box-shadow:var(--shadow) }
  .capital strong { font:1.9rem/1.15 Georgia,serif }
  .capital span { font-size:.84rem; color:#e7edf5 }
  .banner { color:#654817; background:#fff7e8; border:1px solid #eddbb8; border-left:4px solid var(--gold); border-radius:.45rem; padding:.7rem .9rem; font-size:.9rem }
  .surface { background:#fff; border:1px solid var(--line); border-radius:.95rem; box-shadow:var(--shadow) }
  .lookup,.help,.source,.map { padding:clamp(1rem,2.5vw,1.55rem) }
  .lookup .section-top { margin-bottom:.8rem }
  .query { margin-bottom:.7rem }
  .filters { grid-template-columns:1.2fr 1.2fr .75fr .75fr auto; align-items:end; margin-bottom:.65rem }
  .search-tools,.faq-choices { display:flex; flex-wrap:wrap; gap:.5rem }
  .chip,.faq-button,.map-tab { border:1px solid #c6d2df; border-radius:.55rem; color:var(--navy); background:#f5f8fc; padding:.4rem .65rem; font-size:.83rem; font-weight:600 }
  .chip:hover,.map-tab:hover,.faq-button:hover { background:#e8eff8 }
  [aria-pressed=true].faq-button,[aria-pressed=true].map-tab { background:var(--navy); color:#fff }
  .map-content { margin-top:.75rem }
  .map-toggle { display:flex; justify-content:center; gap:.4rem }
  .body-map { position:relative; min-height:275px; max-width:590px; margin:.72rem auto; background:#f5f7fa; border-radius:.75rem }
  .silhouette { position:absolute; left:50%; transform:translateX(-50%); width:118px; height:255px; top:9px; opacity:.9 }
  .shape { display:block; background:#c1d3e2; position:absolute }
  .shape.head { width:38px;height:44px;left:40px;top:5px;border-radius:49% }
  .shape.neck { width:18px;height:14px;left:50px;top:43px }
  .shape.torso { width:63px;height:104px;left:28px;top:53px;border-radius:28% 28% 36% 36% }
  .shape.left-arm,.shape.right-arm { width:19px;height:94px;top:57px;border-radius:45% }
  .shape.left-arm {left:15px;transform:rotate(15deg)}
  .shape.right-arm {right:14px;transform:rotate(-15deg)}
  .shape.left-leg,.shape.right-leg {width:22px;height:102px;top:146px;border-radius:30%}
  .shape.left-leg {left:34px;transform:rotate(5deg)}
  .shape.right-leg {right:33px;transform:rotate(-5deg)}
  .back .shape.torso {background:linear-gradient(90deg,#c1d3e2 46%,#91adc5 46%,#91adc5 54%,#c1d3e2 54%)}
  .map-point { position:absolute; max-width:42%; font:600 .82rem/1.2 'Segoe UI',sans-serif; padding:.37rem .56rem; text-align:left; color:var(--navy); border:1px solid #aebfce; border-radius:.48rem; background:white }
  .map-point[aria-pressed=true] { color:#fff; background:var(--navy) }
  .map-point.head,.map-point.arm,.map-point.leg {left:6%}
  .map-point.chest,.map-point.abdomen,.map-point.spine,.map-point.skin {right:6%}
  .map-point.head {top:7%}
  .map-point.chest {top:26%}
  .map-point.arm {top:37%}
  .map-point.abdomen,.map-point.spine {top:49%}
  .map-point.leg {top:74%}
  .map-point.skin {top:77%}
  .result-head { display:flex; justify-content:space-between; gap:.75rem; flex-wrap:wrap; align-items:center; padding:.85rem 1rem }
  .count {font-weight:700}
  .export,.pagination { display:flex; align-items:end; gap:.45rem; flex-wrap:wrap }
  .pagination { justify-content:center; align-items:center; gap:.75rem; padding:.9rem }
  .table-scroll { overflow-x:auto; border-block:1px solid var(--line) }
  table { border-collapse:collapse; width:100%; color:var(--ink); font-size:.87rem }
  .procedures { min-width:740px }
  th,td { padding:.68rem .7rem; text-align:left; border-bottom:1px solid #e8edf2; vertical-align:top }
  th { background:#edf2f7; color:var(--navy); white-space:nowrap }
  tr:nth-child(even) { background:#fafbfd }
  .sort-button { border:0; color:inherit; background:none; font-weight:700; font-size:inherit; padding:0 }
  .desccell {min-width:190px}
  .desccell small {display:block; margin-top:.18rem; font-weight:600}
  .caution,.related {color:#785221}
  .exact {color:#21594e}
  .number,.money,.refcell {white-space:nowrap; font-variant-numeric:tabular-nums}
  .money {font-weight:700; color:var(--navy)}
  .wait { display:inline-block; font-size:.73rem; font-weight:700; color:#385269; background:#eaf2f7; border-radius:1em; padding:.12rem .48rem }
  .wait.yes {background:#fff1db; color:#7a4c0c}
  .empty {text-align:center; padding:1.6rem}
  .source p,.help p {margin-top:.48rem}
  .help-title {display:flex; align-items:center; gap:.85rem}
  .assistant-logo {width:40px}
  .faq-choices {margin:.8rem 0}
  .faq-search {margin-top:1rem; max-width:32rem}
  .faq-answer {background:#f4f7fb; border-radius:.65rem; padding:.75rem 1rem; color:var(--text)}
  .reference {font-size:.82rem;font-weight:650}
  .floating {position:fixed;inset:auto 1rem 1rem auto;background:var(--navy);color:#fff;padding:.58rem .85rem;border-radius:1.7rem;text-decoration:none;box-shadow:0 6px 22px #06152d45;font-weight:650}
}
@layer utilities {
  .skip,.sr {position:absolute; width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .skip:focus {width:auto;height:auto;clip-path:none;background:#fff;padding:.5rem;z-index:3}
  #impressao {display:none}
  @media(max-width:820px) {
    .top {flex-wrap:wrap; column-gap:1rem; row-gap:.35rem; padding-block:.65rem}
    .top nav {order:3; width:100%; padding:.37rem 0; font-size:.85rem}
    .hero-inner {grid-template-columns:1fr .7fr;gap:1.5rem}
    .plan-grid {grid-template-columns:repeat(2,1fr)}
    .filters {grid-template-columns:repeat(2,1fr)}
    .footer {grid-template-columns:1fr 1fr}
  }
  @media(max-width:590px) {
    .shell {width:calc(100% - 30px)}
    .hero-inner,.module-intro,.footer {grid-template-columns:1fr}
    .hero-inner {min-height:0; padding-block:2.15rem}
    .hero-brand {min-height:0; padding:.8rem}
    .brand-home {max-height:62px}
    .hero-side {padding-top:.1rem}
    .plan-grid,.catalog-controls {grid-template-columns:1fr}
    .result-head {align-items:start}
    .map-point {font-size:.71rem}
    .top nav {gap:.3rem .75rem}
  }
  @media print {
    body {background:white}
    body > :not(#impressao) {display:none !important}
    #impressao {display:block; color:#000}
    #impressao table {font-size:8.5pt}
    #impressao h1 {font-size:25pt}
    #impressao th,#impressao td {padding:4px}
    #impressao tr {break-inside:avoid}
    #impressao .print-brands { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:10px; break-inside:avoid }
    #impressao .print-brands p { font-size:9pt; margin-top:3px }
    #impressao .print-brands strong {display:block}
    #impressao .print-logo {width:155px;max-height:55px;object-fit:contain;object-position:left}
    #impressao .insurer-logo {width:78px;max-height:36px}
    @page {size:A4 landscape;margin:12mm}
  }
}
