@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,500;1,600&family=Manrope:wght@400;500;600;700;800&display=swap');
/* Tokens — evolução da paleta verde/off-white da Estrutura 2. */
:root {
  --royal:#1646D8;
  --royal-dark:#0B287A;
  --royal-soft:#EAF0FF;

  --red:#D62E3A;
  --red-dark:#A61927;
  --red-soft:#FCEAEC;

  --paper:#F7F7F4;
  --white:#FFFFFF;

  --ink:#101828;
  --muted:#5D6472;
  --line:#DDE2EA;

  --focus:#1646D8;

  --radius:8px;
  --container:1184px;
  --space:24px;
  --transition:150ms ease;

  --sans:"Manrope","Segoe UI",Arial,sans-serif;
  --serif:"Cormorant Garamond",Georgia,"Times New Roman",serif;
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:100px
}
body {
  margin:0;
  background:var(--white);
  color:var(--ink);
  font:16px/1.6 var(--sans);
  -webkit-font-smoothing:antialiased
}
body.modal-open {
  overflow:hidden
}
h1,h2,h3,p {
  margin:0
}
h1,h2,h3 {
  line-height:1.1;
}

h1,h2 {
  font-family:var(--serif);
  font-weight:600;
}

h1 {
  font-size:clamp(42px,5vw,68px);
  letter-spacing:-.025em;
}

h2 {
  font-size:clamp(32px,3.5vw,48px);
  letter-spacing:-.02em;
}

h3 {
  font-family:var(--sans);
  font-size:18px;
  font-weight:700;
}

p+p {
  margin-top:12px
}
a {
  color:var(--royal);
  text-underline-offset:4px
}
button,input,select {
  font:inherit
}
button,a,input,select,summary {
  -webkit-tap-highlight-color:transparent
}
button {
  cursor:pointer
}
button:disabled {
  cursor:not-allowed
}
button,select,input {
  border-radius:var(--radius)
}
a,button,summary {
  touch-action:manipulation
}
button,a {
  transition:background-color var(--transition),color var(--transition)
}
:focus-visible {
  outline:3px solid var(--focus);
  outline-offset:4px
}
#main:focus {
  outline:none
}
[hidden] {
  display:none!important
}
svg {
  width:24px;
  height:24px;
  flex-shrink:0
}
button svg,.text-link svg {
  width:20px;
  height:20px
}
.container {
  width:calc(100% - 64px);
  max-width:var(--container);
  margin-inline:auto
}
.muted {
  color:var(--muted)
}
.eyebrow {
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:12px;
  font-weight:700;
  color:var(--royal);
  margin-bottom:14px
}
.text-link {
  display:inline-flex;
  align-items:center;
  gap:12px;
  min-height:44px;
  font-weight:600;
  text-decoration:none
}
.text-link:hover {
  text-decoration:underline
}
.button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  min-height:46px;
  padding:10px 20px;
  border:1px solid transparent;
  font-weight:600;
  text-decoration:none;
  line-height:1.4
}
.primary {
  background:var(--royal);
  color:var(--white)
}
.primary:hover {
  background:var(--royal-dark)
}
.secondary {
  border-color:var(--line);
  background:var(--white);
  color:var(--royal)
}
.secondary:hover {
  background:var(--royal-soft)
}
.text-button {
  min-height:44px;
  border:0;
  background:transparent;
  color:var(--royal);
  padding:8px 0;
  text-decoration:underline;
  text-underline-offset:4px
}
.icon-button {
  display:grid;
  place-items:center;
  min-width:44px;
  height:44px;
  border:1px solid var(--line);
  background:var(--white);
  color:var(--royal)
}
.skip-link {
  position:fixed;
  top:8px;
  left:16px;
  z-index:10;
  transform:translateY(-160%);
  background:var(--royal);
  color:white;
  padding:12px 20px
}
.skip-link:focus {
  transform:translateY(0)
}
.notice {
  background:var(--royal-soft);
  color:var(--royal);
  font-size:12px
}
.notice .container {
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding-block:7px
}
#site-header {
  position:sticky;
  top:0;
  background:var(--white);
  border-bottom:1px solid var(--line);
  z-index:5
}
.header-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  min-height:84px
}
.logo {
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  font-weight:650;
  font-size:21px;
  line-height:1.2
}
.logo small {
  display:block;
  font-weight:400;
  font-size:11px;
  color:var(--muted);
  margin-top:5px
}
.mark {
  display:grid;
  place-items:center;
  width:42px;
  height:44px;
  background:var(--royal);
  color:var(--white);
  border-radius:4px;
  flex-shrink:0
}
.mark svg {
  width:28px;
  height:28px
}
.main-nav {
  display:flex;
  gap:24px;
  align-items:center
}
.main-nav a {
  display:flex;
  align-items:center;
  min-height:48px;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  border-bottom:2px solid transparent;
  color:var(--muted)
}
.main-nav a:hover,.main-nav a[aria-current] {
  color:var(--royal);
  border-color:var(--royal)
}
.main-nav a[href="transparencia.html"] {
  color:var(--royal)
}
.menu-button {
  display:none;
  align-items:center;
  gap:8px;
  min-height:44px;
  border:1px solid var(--line);
  background:white;
  padding:8px 12px;
  color:var(--royal)
}
dialog {
  border:1px solid var(--line);
  color:var(--ink);
  background:white;
  padding:28px;
  max-height:calc(100dvh - 32px);
  overflow:auto
}
dialog::backdrop {
  background:rgb(18 37 28 / .5)
}
.mobile-menu {
  margin:0 0 0 auto;
  width:min(390px,calc(100% - 24px));
  height:100dvh;
  max-height:100dvh;
  border:0;
  border-left:1px solid var(--line);
  padding:24px
}
.drawer-top {
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  margin-bottom:24px
}
.drawer-top h2 {
  font-size:20px
}
.drawer-top .eyebrow {
  margin:0
}
.mobile-menu nav {
  display:grid;
  margin-bottom:28px
}
.mobile-menu nav a {
  display:block;
  min-height:48px;
  padding:10px 0;
  border-bottom:1px solid var(--line);
  text-decoration:none
}
.mobile-menu nav a:hover {
  background:var(--paper)
}
.mobile-menu .muted {
  font-size:14px
}
/* Início: busca e orientação antes do conteúdo institucional. */
.hero {
  background:var(--paper);
  padding:52px 0 0
}
.hero-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:40px;
  margin-bottom:35px
}
.hero h1 {
  font-size:clamp(32px,3.6vw,50px);
  line-height:1.15
}
.hero h1 em {
  font-family:var(--serif);
  font-weight:400;
  color:var(--royal)
}
.hero-heading>p {
  font-size:16px;
  color:var(--muted);
  padding-left:24px;
  border-left:1px solid #bbc7bc;
  max-width:360px
}
.global-search>label {
  font-size:17px
}
.global-search label,form>label {
  display:block;
  font-weight:600;
  margin-bottom:10px
}
.search-box {
  display:flex;
  align-items:center;
  gap:16px;
  background:white;
  border:1px solid #9baa9e;
  padding:8px 8px 8px 20px;
  border-radius:var(--radius);
  min-width:0
}
.search-box:focus-within {
  border-color:var(--royal)
}
.search-box>svg {
  color:var(--royal)
}
.search-box input {
  flex:1;
  min-width:0;
  width:100%;
  border:0;
  padding:12px 0;
  background:white;
  color:var(--ink);
  font-size:16px
}
.search-box input::placeholder {
  color:var(--muted);
  opacity:1
}
.search-box input:focus-visible {
  outline-offset:0
}
.search-box .button {
  min-height:50px;
  padding-inline:25px
}
.global-search>p {
  font-size:13px;
  color:var(--muted);
  margin-top:10px
}
.quick-links {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin-top:30px;
  border-top:1px solid var(--line)
}
.quick-links a {
  display:flex;
  align-items:center;
  gap:12px;
  min-height:65px;
  padding:14px 16px 14px 0;
  border-bottom:1px solid var(--line);
  text-decoration:none;
  font-size:14px;
  font-weight:600
}
.quick-links a>svg:first-child {
  width:20px;
  height:20px
}
.quick-links a>svg:last-child {
  margin-left:auto;
  width:17px;
  height:17px
}
.quick-links a:not(:nth-child(3n+1)) {
  padding-left:22px;
  border-left:1px solid var(--line)
}
.quick-links a:hover {
  background:var(--royal-soft)
}
.home-recent {
  padding-block:48px
}
.section-heading {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:26px
}
.section-heading .eyebrow {
  margin-bottom:8px
}
.recent-empty {
  display:flex;
  align-items:center;
  gap:22px;
  padding:25px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line)
}
.recent-empty>svg {
  width:36px;
  height:36px;
  color:var(--royal)
}
.recent-empty p {
  margin-top:7px;
  color:var(--muted);
  max-width:640px;
  font-size:14px
}
.status-label {
  font-size:12px;
  color:var(--red);
  white-space:nowrap;
  margin-left:auto
}
.portal-overview {
  background:var(--paper);
  padding-block:48px
}
.overview-grid {
  display:grid;
  grid-template-columns:1fr 2fr;
  gap:72px
}
.overview-grid>.muted {
  max-width:290px
}
.overview-grid h2 {
  margin-bottom:18px
}
.overview-grid .text-link {
  margin-top:15px
}
.area-links {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:30px
}
.area-links>a {
  display:flex;
  align-items:flex-start;
  gap:13px;
  padding:19px 0;
  border-bottom:1px solid var(--line);
  text-decoration:none;
  min-width:0
}
.area-links strong {
  font-weight:600;
  font-size:16px;
  line-height:1.35;
  display:block
}
.area-links small {
  display:block;
  margin-top:6px;
  color:var(--muted);
  font-size:13px;
  line-height:1.5
}
.area-links>a>svg {
  margin-left:auto;
  width:18px;
  height:18px
}
.area-links a:hover strong {
  text-decoration:underline
}
.area-number {
  font-size:12px;
  font-variant-numeric:tabular-nums;
  color:var(--red);
  padding-top:2px
}
.home-support {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:72px;
  padding-block:48px
}
.home-support h2 {
  margin-bottom:15px
}
.home-support>div>p {
  max-width:400px
}
.home-support .text-link {
  margin-top:12px
}
.sic-callout {
  border-left:3px solid var(--royal);
  padding-left:28px
}
.sic-callout h2 {
  font-size:25px
}
.sic-callout p {
  color:var(--muted)
}
.sic-callout small {
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-top:12px
}
/* Consulta: filtros compactos e resultados em linhas. */
.page-intro {
  background:var(--paper);
  padding:22px 0 36px;
  border-bottom:1px solid var(--line)
}
.breadcrumb {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  font-size:13px;
  color:var(--muted);
  margin-bottom:25px
}
.breadcrumb a {
  min-height:30px
}
.page-intro .eyebrow {
  margin-bottom:10px
}
.page-intro h1 {
  font-size:clamp(30px,3vw,40px);
  margin-bottom:12px
}
.page-intro p:last-child {
  color:var(--muted)
}
.catalogue {
  padding-block:32px 48px
}
.catalogue-source {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:28px;
  padding:20px 24px;
  background:var(--royal-soft);
  border-left:3px solid var(--royal);
  margin-bottom:28px
}
.catalogue-source p {
  font-size:14px;
  color:var(--muted);
  margin-top:3px
}
.catalogue-source.is-demo {
  background:var(--red-soft);
  border-color:var(--red)
}
.demo-toggle {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  cursor:pointer;
  min-height:44px;
  max-width:320px;
  line-height:1.4
}
.demo-toggle input {
  width:20px;
  height:20px;
  accent-color:var(--royal);
  flex-shrink:0
}
.compact .button {
  min-height:46px
}
.filter-toolbar {
  display:flex;
  justify-content:flex-end;
  gap:16px;
  padding-top:8px
}
.filter-toolbar>#filter-toggle {
  display:none
}
.filter-panel {
  display:grid;
  grid-template-columns:1.35fr .7fr 1fr 1.25fr;
  gap:16px;
  margin-block:8px 16px
}
.filter-panel label {
  display:block;
  font-size:13px;
  font-weight:600;
  margin-bottom:6px
}
select {
  width:100%;
  min-width:0;
  min-height:46px;
  border:1px solid #9baa9e;
  background:white;
  padding:9px 30px 9px 10px;
  color:var(--ink);
  font-size:14px
}
select:disabled {
  background:var(--paper);
  color:var(--muted)
}
.active-filters {
  display:flex;
  flex-wrap:wrap;
  gap:8px
}
.active-filters button {
  display:flex;
  gap:10px;
  align-items:center;
  min-height:44px;
  padding:7px 12px;
  border:1px solid var(--line);
  background:var(--paper);
  color:var(--royal);
  font-size:13px;
  text-align:left;
  overflow-wrap:anywhere
}
.active-filters svg {
  width:16px;
  height:16px
}
.result-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  margin-top:20px;
  padding-block:16px
}
.result-toolbar>p {
  font-size:14px;
  font-weight:600
}
.result-toolbar>div {
  display:flex;
  align-items:center;
  gap:12px
}
.result-toolbar label {
  font-size:12px;
  white-space:nowrap
}
.result-toolbar select {
  width:auto;
  max-width:230px;
  font-size:13px
}
.empty-state {
  text-align:center;
  padding:52px 20px;
  max-width:620px;
  margin-inline:auto
}
.empty-icon {
  display:grid;
  place-items:center;
  width:58px;
  height:64px;
  margin:0 auto 18px;
  background:var(--paper);
  color:var(--royal)
}
.empty-icon svg {
  width:30px;
  height:30px
}
.empty-state h2 {
  font-size:23px;
  margin-bottom:12px
}
.empty-state p {
  color:var(--muted);
  font-size:15px
}
.empty-state .button {
  margin-top:22px
}
.doc-list {
  list-style:none;
  margin:0;
  padding:0
}
.doc-row {
  display:grid;
  grid-template-columns:36px minmax(0,1fr) auto;
  gap:18px;
  padding:24px 0;
  border-bottom:1px solid var(--line)
}
.doc-row>.doc-icon {
  color:var(--royal);
  padding-top:5px
}
.doc-row h2 {
  font-size:18px;
  font-weight:600;
  line-height:1.4;
  letter-spacing:0
}
.demo-label {
  color:var(--red);
  font-size:11px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  margin-bottom:5px
}
.doc-tags {
  display:flex;
  flex-wrap:wrap;
  gap:5px 16px;
  color:var(--muted);
  font-size:13px;
  margin-top:6px
}
.doc-tags span {
  display:inline-block
}
.doc-related {
  font-size:13px;
  color:var(--muted);
  margin-top:5px
}
.doc-file {
  font-size:12px;
  color:var(--muted);
  margin-top:10px
}
.doc-actions {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:center;
  gap:8px;
  min-width:170px
}
.doc-actions button,.doc-actions a {
  font-size:13px
}
.doc-actions button:disabled {
  color:var(--muted);
  background:var(--paper);
  border:1px solid var(--line)
}
.catalogue-help {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border-top:1px solid var(--line);
  padding-top:20px;
  margin-top:12px;
  font-size:14px
}
.catalogue-help>span {
  display:flex;
  align-items:center;
  gap:10px
}
.document-dialog {
  width:min(600px,calc(100% - 32px));
  border-radius:6px
}
.document-dialog h2 {
  font-size:26px;
  margin-bottom:15px
}
.document-dialog>p {
  font-size:14px;
  color:var(--muted)
}
.metadata {
  margin:24px 0
}
.metadata>div {
  display:grid;
  grid-template-columns:150px 1fr;
  gap:20px;
  padding:10px 0;
  border-bottom:1px solid var(--line);
  font-size:14px
}
.metadata dt {
  color:var(--muted)
}
.metadata dd {
  margin:0;
  overflow-wrap:anywhere
}
/* Áreas: sumário lateral, leitura progressiva e campos sem fatos presumidos. */
.areas-layout {
  display:grid;
  grid-template-columns:245px minmax(0,1fr);
  gap:64px;
  padding-block:40px 56px
}
.area-nav {
  position:sticky;
  top:115px
}
.area-nav a {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:47px;
  padding:8px 10px;
  font-size:14px;
  text-decoration:none;
  border-left:2px solid transparent
}
.area-nav a svg {
  width:19px;
  height:19px
}
.area-nav a:hover,.area-nav a[aria-current] {
  background:var(--royal-soft);
  border-left-color:var(--royal)
}
.area-section {
  padding-bottom:28px;
  margin-bottom:30px;
  border-bottom:1px solid var(--line);
  scroll-margin-top:105px
}
.area-section-heading {
  display:flex;
  gap:16px;
  margin-bottom:20px
}
.area-section h2 {
  font-size:27px;
  margin-bottom:9px
}
.area-section-heading p {
  font-size:14px;
  color:var(--muted)
}
.area-section>.area-section-heading .area-number {
  padding-top:7px
}
.area-detail>summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:13px 16px;
  background:var(--paper);
  color:var(--royal);
  font-size:14px;
  font-weight:600;
  min-height:48px;
  cursor:pointer;
  list-style:none
}
.area-detail>summary::after {
  content:'+';
  font-size:23px;
  font-weight:400
}
.area-detail[open]>summary::after {
  content:'−'
}
.area-detail summary::-webkit-details-marker {
  display:none
}
.area-detail-body {
  padding:24px 0 6px
}
.area-detail-body h3 {
  margin:25px 0 12px
}
.notice-block {
  border-left:3px solid var(--red);
  background:var(--red-soft);
  padding:15px 20px;
  font-size:14px;
  line-height:1.6;
  color:var(--ink)
}
.pending-fields {
  margin:20px 0
}
.pending-fields>div {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
  padding:13px 0;
  border-bottom:1px solid var(--line);
  font-size:14px
}
.pending-fields dt {
  font-weight:600
}
.pending-fields dd {
  margin:0;
  color:var(--muted)
}
.pending-list {
  list-style:none;
  padding:0;
  margin:18px 0
}
.pending-list li {
  display:flex;
  justify-content:space-between;
  gap:24px;
  border-bottom:1px solid var(--line);
  padding:13px 0;
  font-size:14px
}
.pending-list span {
  color:var(--muted)
}
.steps {
  padding-left:22px
}
.steps li {
  padding:0 0 20px 8px
}
.steps li::marker {
  color:var(--red)
}
.steps strong,.steps span {
  display:block
}
.steps span {
  font-size:14px;
  color:var(--muted);
  margin-top:5px
}
.help-detail {
  border-bottom:1px solid var(--line)
}
.help-detail summary {
  cursor:pointer;
  padding:14px 4px;
  min-height:48px;
  font-size:14px;
  font-weight:600;
  color:var(--royal)
}
.help-detail p {
  font-size:14px;
  padding:0 4px 20px
}
.area-section>p {
  color:var(--muted);
  margin-block:16px
}
footer {
  background:var(--royal-dark);
  color:#fff;
  padding-top:35px
}
footer a {
  color:white;
  text-decoration:none;
  min-height:44px;
  display:inline-flex;
  align-items:center
}
footer a:hover {
  text-decoration:underline
}
.footer-top {
  display:grid;
  grid-template-columns:1.4fr 1fr .8fr;
  gap:48px;
  padding-bottom:30px
}
.footer-brand {
  font-size:21px;
  font-weight:600
}
.footer-top p {
  font-size:13px
}
.footer-note {
  color:#cbd8cf;
  font-size:12px!important;
  line-height:1.7
}
.footer-top nav {
  display:grid;
  align-content:start
}
.footer-top nav a,.footer-top>div:last-child>a {
  font-size:14px
}
.footer-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border-top:1px solid #476252;
  padding-block:15px;
  color:#cbd8cf;
  font-size:12px
}
.footer-bottom a {
  font-size:12px;
  color:#cbd8cf
}
@media(min-width:761px) {
  .filter-panel[hidden] {
    display:grid!important
  }
}
@media(max-width:1100px) {
  .main-nav {
    gap:16px
  }
  .main-nav a {
    font-size:13px
  }
  .logo {
    font-size:19px
  }
  .logo small {
    font-size:10px
  }
  .overview-grid {
    gap:35px
  }
  .home-support {
    gap:40px
  }
  .areas-layout {
    gap:32px;
    grid-template-columns:215px minmax(0,1fr)
  }
}
@media(max-width:960px) {
  .main-nav {
    display:none
  }
  .menu-button {
    display:flex
  }
  .header-inner {
    min-height:74px
  }
  .hero-heading {
    gap:24px
  }
  .hero-heading>p {
    font-size:14px
  }
  .overview-grid {
    grid-template-columns:1fr 1.6fr
  }
  .area-links {
    grid-template-columns:1fr
  }
  .hero-heading .desktop-break {
    display:none
  }
  .footer-top {
    gap:28px
  }
  .status-label {
    white-space:normal
  }
  .areas-layout {
    grid-template-columns:190px minmax(0,1fr);
    gap:28px
  }
  .area-nav a {
    font-size:13px
  }
  .filter-panel {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
}
@media(max-width:760px) {
  .container {
    width:calc(100% - 40px)
  }
  .notice .container {
    font-size:11px;
    gap:6px;
    flex-wrap:wrap
  }
  .notice span {
    display:none
  }
  .header-inner {
    gap:14px;
    min-height:72px
  }
  .logo {
    font-size:19px;
    gap:9px
  }
  .logo small {
    font-size:9px;
    max-width:180px
  }
  .mark {
    width:35px;
    height:39px
  }
  .menu-button {
    padding:8px 10px
  }
  .menu-button span {
    display:none
  }
  .hero {
    padding-top:30px
  }
  .hero-heading {
    display:block;
    margin-bottom:25px
  }
  .hero-heading>p {
    padding:0;
    border:0;
    margin-top:18px;
    font-size:15px;
    max-width:430px
  }
  .hero h1 {
    font-size:38px
  }
  .eyebrow {
    font-size:11px
  }
  .search-box {
    gap:10px;
    padding:6px 6px 6px 12px;
    flex-wrap:wrap
  }
  .search-box>svg {
    width:20px;
    height:20px
  }
  .search-box input {
    width:calc(100% - 38px);
    flex:1;
    font-size:16px
  }
  .search-box .button {
    width:100%;
    min-height:46px
  }
  .global-search>p {
    font-size:12px
  }
  .quick-links {
    grid-template-columns:repeat(2,minmax(0,1fr));
    margin-top:23px
  }
  .quick-links a {
    gap:10px;
    padding:12px 10px 12px 0;
    font-size:13px;
    min-height:65px
  }
  .quick-links a:not(:nth-child(3n+1)) {
    padding-left:0;
    border-left:0
  }
  .quick-links a:nth-child(even) {
    padding-left:14px;
    border-left:1px solid var(--line)
  }
  .quick-links a>svg:last-child {
    display:none
  }
  .quick-links a>svg:first-child {
    width:18px;
    height:18px
  }
  .home-recent {
    padding-block:32px
  }
  .section-heading {
    align-items:start;
    flex-direction:column;
    gap:7px;
    margin-bottom:18px
  }
  .section-heading .text-link {
    font-size:14px
  }
  .recent-empty {
    display:grid;
    grid-template-columns:28px minmax(0,1fr);
    align-items:start;
    gap:15px
  }
  .recent-empty>div {
    flex:1;
    min-width:0
  }
  .recent-empty>svg {
    width:28px;
    height:28px
  }
  .recent-empty h3 {
    font-size:17px
  }
  .status-label {
    grid-column:2;
    margin-left:0
  }
  .portal-overview {
    padding-block:32px
  }
  .overview-grid {
    display:block
  }
  .overview-grid h2 br {
    display:none
  }
  .overview-grid>div>p {
    max-width:450px
  }
  .area-links {
    grid-template-columns:1fr;
    margin-top:15px
  }
  .area-links>a {
    padding:18px 0
  }
  .area-links strong {
    font-size:16px
  }
  .home-support {
    display:block;
    padding-block:32px
  }
  .home-support>div {
    margin-bottom:32px
  }
  .sic-callout {
    padding-left:20px
  }
  .home-support h2 {
    font-size:26px
  }
  .page-intro {
    padding-block:16px 28px
  }
  .breadcrumb {
    margin-bottom:18px
  }
  .catalogue {
    padding-block:24px 32px
  }
  .catalogue-source {
    display:block;
    padding:17px;
    margin-bottom:24px
  }
  .demo-toggle {
    margin-top:12px;
    max-width:none
  }
  .filter-toolbar {
    justify-content:space-between;
    align-items:center;
    padding-top:15px;
    gap:16px
  }
  .filter-toolbar>#filter-toggle {
    display:inline-flex;
    flex-shrink:0;
    padding-inline:12px;
    font-size:14px
  }
  .filter-toolbar .text-button {
    font-size:13px;
    text-align:right
  }
  .filter-panel {
    background:var(--paper);
    padding:16px;
    gap:15px;
    margin-top:14px;
    grid-template-columns:1fr
  }
  .filter-panel[hidden] {
    display:none
  }
  .active-filters {
    margin-top:12px
  }
  .result-toolbar {
    align-items:stretch;
    flex-direction:column;
    gap:12px;
    margin-top:15px
  }
  .result-toolbar>div {
    justify-content:space-between
  }
  .result-toolbar select {
    max-width:230px
  }
  .empty-state {
    padding:35px 0
  }
  .empty-state h2 {
    font-size:22px
  }
  .doc-row {
    grid-template-columns:24px minmax(0,1fr);
    gap:12px
  }
  .doc-row h2 {
    font-size:17px
  }
  .doc-actions {
    grid-column:2;
    flex-direction:row;
    flex-wrap:wrap;
    justify-content:flex-start;
    min-width:0
  }
  .doc-actions .button {
    flex:1;
    padding-inline:10px;
    min-width:110px
  }
  .catalogue-help {
    align-items:start;
    flex-direction:column;
    gap:7px
  }
  .areas-layout {
    display:block;
    padding-top:24px
  }
  .area-nav {
    position:static;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:2px;
    background:var(--paper);
    padding:15px;
    margin-bottom:30px
  }
  .area-nav .eyebrow {
    grid-column:1/-1
  }
  .area-nav a {
    font-size:13px;
    gap:8px;
    padding:8px 3px;
    line-height:1.4
  }
  .area-nav a svg {
    width:17px;
    height:17px
  }
  .area-section h2 {
    font-size:25px
  }
  .pending-fields>div {
    grid-template-columns:1fr;
    gap:4px
  }
  .pending-list li {
    flex-direction:column;
    gap:4px
  }
  .footer-top {
    grid-template-columns:1fr 1fr;
    gap:22px
  }
  .footer-top>div:first-child {
    grid-column:1/-1
  }
  .footer-bottom {
    flex-direction:column;
    align-items:flex-start;
    gap:2px
  }
  .footer-bottom a {
    min-height:40px
  }
  .document-dialog {
    padding:20px
  }
  .metadata>div {
    grid-template-columns:1fr;
    gap:3px
  }
  .document-dialog h2 {
    font-size:23px
  }
  .notice-block {
    padding:14px 16px
  }
}
@media(max-width:360px) {
  .container {
    width:calc(100% - 32px)
  }
  .logo small {
    max-width:160px;
    font-size:8px
  }
  .hero h1 {
    font-size:32px
  }
  .quick-links a {
    font-size:12px;
    gap:7px
  }
  .quick-links a:nth-child(even) {
    padding-left:10px
  }
  .area-nav {
    grid-template-columns:1fr
  }
  .result-toolbar>div {
    align-items:stretch;
    flex-direction:column;
    gap:4px
  }
  .result-toolbar select {
    width:100%;
    max-width:none
  }
  .footer-top {
    grid-template-columns:1fr
  }
  .footer-top>div:first-child {
    grid-column:auto
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  *,*::before,*::after {
    transition:none!important;
    animation:none!important
  }
}
@media print {
  #site-header,.notice,.skip-link,.menu-button,.filter-toolbar,.demo-toggle,footer,dialog {
    display:none
  }
  .container {
    width:100%
  }
  .page-intro,.hero {
    background:white
  }
  .areas-layout {
    display:block
  }
  .areas-layout>aside {
    display:none
  }
  body {
    font-size:12pt
  }
  a {
    color:inherit
  }
  .doc-row {
    break-inside:avoid
  }
}

/* Documentos publicados: mesma fonte para Home e áreas. */
.public-related-row { display:flex; justify-content:space-between; gap:24px; padding:22px 0; border-bottom:1px solid var(--line); }
.public-related-row>div { min-width:0; }
.public-related-row h3 { font-size:18px; overflow-wrap:anywhere; }
.public-related-row p { margin-top:8px; font-size:13px; color:var(--muted); }
.public-related-row>div:last-child { display:flex; align-items:center; gap:16px; }
.related-documents { margin-top:30px; border-top:1px solid var(--line); }
@media(max-width:760px){.public-related-row{flex-direction:column;gap:12px}}

/* =========================================================
   CASA DA SOPA — REDESIGN V2
   Camada visual da Home
   ========================================================= */

body[data-page="home"] {
  background:var(--white);
}

/* HEADER */
body[data-page="home"] #site-header {
  background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--line);
}

body[data-page="home"] .header-inner {
  min-height:92px;
}

body[data-page="home"] .logo {
  gap:14px;
  color:var(--ink);
}

body[data-page="home"] .logo .mark {
  background:var(--royal);
  color:var(--white);
  border-radius:10px;
}

body[data-page="home"] .logo small {
  color:var(--muted);
}

body[data-page="home"] .main-nav a {
  position:relative;
  font-weight:600;
}

body[data-page="home"] .main-nav a:first-child {
  color:var(--royal);
}

body[data-page="home"] .main-nav a:first-child::after {
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-14px;
  height:2px;
  background:var(--red);
}

/* HERO */
body[data-page="home"] .hero {
  position:relative;
  overflow:hidden;
  padding:76px 0 0;
  background:
    radial-gradient(circle at 92% 12%,rgba(22,70,216,.10),transparent 31%),
    linear-gradient(180deg,#fbfcff 0%,#f7f9ff 100%);
}

body[data-page="home"] .hero::before {
  content:"";
  position:absolute;
  width:310px;
  height:310px;
  border:58px solid rgba(22,70,216,.055);
  border-radius:50%;
  right:-110px;
  top:-120px;
  pointer-events:none;
}

body[data-page="home"] .hero-heading {
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(260px,.6fr);
  gap:80px;
  align-items:end;
  margin-bottom:42px;
}

body[data-page="home"] .hero-heading::after {
  content:"";
  position:absolute;
  width:72px;
  height:6px;
  left:0;
  bottom:-22px;
  background:var(--red);
  border-radius:999px;
}

body[data-page="home"] .hero .eyebrow {
  color:var(--royal);
}

body[data-page="home"] .hero h1 {
  max-width:760px;
  font-size:clamp(48px,5.4vw,76px);
  line-height:.98;
  color:var(--ink);
}

body[data-page="home"] .hero h1 em {
  color:var(--royal);
  font-weight:500;
}

body[data-page="home"] .hero-heading>p {
  border-left:1px solid rgba(22,70,216,.3);
  padding:5px 0 5px 25px;
  color:var(--muted);
  font-size:17px;
  line-height:1.65;
}

/* BUSCA */
body[data-page="home"] .global-search {
  position:relative;
  z-index:1;
  margin-top:54px;
}

body[data-page="home"] .global-search>label {
  font-weight:700;
  color:var(--ink);
}

body[data-page="home"] .search-box {
  min-height:76px;
  margin-top:10px;
  background:var(--white);
  border:1px solid #cbd4e4;
  border-radius:14px;
  box-shadow:0 16px 40px rgba(11,40,122,.08);
}

body[data-page="home"] .search-box:focus-within {
  border-color:var(--royal);
  box-shadow:0 0 0 4px rgba(22,70,216,.10),
             0 16px 40px rgba(11,40,122,.08);
}

body[data-page="home"] .search-box>svg {
  color:var(--royal);
}

body[data-page="home"] .search-box .button {
  min-height:58px;
  margin:8px;
  padding-inline:28px;
  border-radius:10px;
  background:var(--royal);
}

body[data-page="home"] .search-box .button:hover {
  background:var(--royal-dark);
}

body[data-page="home"] .global-search>p {
  color:var(--muted);
}

/* ACESSOS RÁPIDOS */
body[data-page="home"] .quick-links {
  margin-top:30px;
  border-top:1px solid #dce3ef;
  border-bottom:1px solid #dce3ef;
  background:rgba(255,255,255,.62);
}

body[data-page="home"] .quick-links a {
  min-height:72px;
  color:var(--ink);
}

body[data-page="home"] .quick-links a>svg:first-child {
  color:var(--royal);
}

body[data-page="home"] .quick-links a>svg:last-child {
  color:var(--red);
}

body[data-page="home"] .quick-links a:hover {
  background:var(--royal-soft);
  color:var(--royal-dark);
}

/* SEÇÕES ABAIXO DO HERO */
body[data-page="home"] .home-recent {
  padding-top:86px;
  padding-bottom:86px;
}

body[data-page="home"] .section-heading .eyebrow,
body[data-page="home"] .portal-overview .eyebrow,
body[data-page="home"] .home-support .eyebrow {
  color:var(--red);
}

body[data-page="home"] .portal-overview {
  background:var(--royal-dark);
  color:var(--white);
}

body[data-page="home"] .portal-overview .muted {
  color:rgba(255,255,255,.72);
}

body[data-page="home"] .portal-overview .eyebrow {
  color:#ff6b74;
}

body[data-page="home"] .portal-overview a {
  color:var(--white);
}

body[data-page="home"] .area-links a {
  color:var(--white);
  border-color:rgba(255,255,255,.18);
}

body[data-page="home"] .area-links a:hover {
  background:rgba(255,255,255,.07);
}

body[data-page="home"] .area-number {
  color:#ff6b74;
}

/* SIC */
body[data-page="home"] .sic-callout {
  border-top:5px solid var(--red);
  background:var(--royal-soft);
}

/* FOOTER */
body[data-page="home"] footer {
  background:#071b51;
}

/* RESPONSIVO DA CAMADA V2 */
@media (max-width:900px) {
  body[data-page="home"] .hero {
    padding-top:52px;
  }

  body[data-page="home"] .hero-heading {
    grid-template-columns:1fr;
    gap:28px;
    align-items:start;
  }

  body[data-page="home"] .hero-heading>p {
    max-width:600px;
  }

  body[data-page="home"] .hero h1 {
    font-size:clamp(44px,9vw,64px);
  }
}

@media (max-width:640px) {
  body[data-page="home"] .hero {
    padding-top:38px;
  }

  body[data-page="home"] .hero h1 {
    font-size:clamp(39px,12vw,54px);
  }

  body[data-page="home"] .hero-heading {
    margin-bottom:34px;
  }

  body[data-page="home"] .global-search {
    margin-top:44px;
  }

  body[data-page="home"] .search-box {
    border-radius:12px;
    box-shadow:none;
  }

  body[data-page="home"] .search-box .button {
    border-radius:8px;
  }
}
/* =========================================================
   HERO VISUAL — V2
   ========================================================= */

body[data-page="home"] .hero-v2 {
  grid-template-columns:minmax(0,.9fr) minmax(480px,1.1fr);
  align-items:stretch;
  gap:48px;
  margin-bottom:36px;
}

body[data-page="home"] .hero-copy {
  align-self:center;
  padding-block:22px;
}

body[data-page="home"] .hero-copy .hero-intro {
  max-width:620px;
  margin-top:26px;
  color:var(--muted);
  font-size:17px;
  line-height:1.7;
}

body[data-page="home"] .hero-visual {
  position:relative;
  min-height:420px;
  overflow:hidden;
  border-radius:22px;
  box-shadow:0 22px 60px rgba(11,40,122,.18);
}

body[data-page="home"] .hero-visual img {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}

body[data-page="home"] .hero-visual::after {
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      90deg,
      rgba(11,40,122,.05) 0%,
      rgba(11,40,122,.08) 48%,
      rgba(7,27,81,.78) 100%
    );
  pointer-events:none;
}

body[data-page="home"] .hero-visual-overlay {
  position:absolute;
  z-index:2;
  right:34px;
  bottom:34px;
  max-width:280px;
  color:white;
  text-align:right;
}

body[data-page="home"] .hero-visual-overlay>span {
  display:block;
  width:64px;
  height:5px;
  margin:0 0 20px auto;
  background:var(--red);
  border-radius:999px;
}

body[data-page="home"] .hero-visual-overlay p {
  font-family:var(--serif);
  font-size:clamp(30px,3vw,44px);
  line-height:1;
  font-style:italic;
  font-weight:500;
}

body[data-page="home"] .hero-visual-overlay small {
  display:block;
  margin-top:22px;
  font-family:var(--sans);
  font-size:11px;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
}

@media (max-width:980px) {
  body[data-page="home"] .hero-v2 {
    grid-template-columns:1fr;
  }

  body[data-page="home"] .hero-visual {
    min-height:360px;
  }
}

@media (max-width:640px) {
  body[data-page="home"] .hero-visual {
    min-height:300px;
    border-radius:16px;
  }

  body[data-page="home"] .hero-visual-overlay {
    right:20px;
    bottom:20px;
  }

  body[data-page="home"] .hero-visual-overlay p {
    font-size:30px;
  }

  body[data-page="home"] .hero-visual-overlay small {
    font-size:9px;
  }
}
/* =========================================================
   HEADER V2
   ========================================================= */

body[data-page="home"] .header-inner {
  min-height:96px;
  gap:28px;
}

body[data-page="home"] .brand-v2 {
  display:flex;
  align-items:center;
  gap:14px;
  flex-shrink:0;
}

body[data-page="home"] .brand-symbol {
  display:grid;
  place-items:center;
  width:66px;
  height:66px;
  flex:0 0 66px;
}

body[data-page="home"] .brand-symbol img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}

body[data-page="home"] .brand-copy {
  display:flex;
  flex-direction:column;
  gap:2px;
}

body[data-page="home"] .brand-copy strong {
  font-family:var(--serif);
  font-size:28px;
  line-height:1;
  font-weight:600;
  color:var(--royal-dark);
  white-space:nowrap;
}

body[data-page="home"] .brand-copy small {
  font-family:var(--sans);
  font-size:11px;
  color:var(--muted);
  font-weight:500;
}

body[data-page="home"] .header-cta {
  background:var(--red);
  color:white;
  border-color:var(--red);
  border-radius:10px;
  white-space:nowrap;
  min-height:52px;
  padding-inline:20px;
}

body[data-page="home"] .header-cta:hover {
  background:var(--red-dark);
  border-color:var(--red-dark);
}

body[data-page="home"] .header-cta svg {
  width:20px;
  height:20px;
}

/* Quick links como cards do mockup */
body[data-page="home"] .quick-links {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:14px;
  border:0;
  background:transparent;
  margin-top:28px;
  padding-bottom:28px;
}

body[data-page="home"] .quick-links a {
  min-width:0;
  min-height:100px;
  padding:18px;
  border:1px solid #dbe2ef;
  border-radius:14px;
  background:rgba(255,255,255,.92);
  box-shadow:0 8px 24px rgba(11,40,122,.045);
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:12px;
}

body[data-page="home"] .quick-links a:hover {
  transform:translateY(-3px);
  box-shadow:0 14px 34px rgba(11,40,122,.10);
  border-color:rgba(22,70,216,.35);
}

body[data-page="home"] .quick-links a>svg:first-child {
  width:28px;
  height:28px;
}

body[data-page="home"] .quick-links a>span {
  line-height:1.3;
}

@media (max-width:1180px) {
  body[data-page="home"] .header-cta {
    display:none;
  }

  body[data-page="home"] .quick-links {
    grid-template-columns:repeat(3,1fr);
  }
}

@media (max-width:760px) {
  body[data-page="home"] .brand-copy strong {
    font-size:22px;
  }

  body[data-page="home"] .brand-symbol {
    width:52px;
    height:52px;
    flex-basis:52px;
  }

  body[data-page="home"] .quick-links {
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:480px) {
  body[data-page="home"] .brand-copy small {
    display:none;
  }

  body[data-page="home"] .quick-links {
    grid-template-columns:1fr;
  }
}
/* =========================================================
   HERO — COMPOSIÇÃO FINAL V3
   ========================================================= */

body[data-page="home"] .hero-v2 {
  grid-template-columns:minmax(0,.82fr) minmax(560px,1.18fr);
  gap:34px;
  align-items:stretch;
}

body[data-page="home"] .hero-copy {
  padding:34px 0 24px;
}

body[data-page="home"] .hero-visual {
  min-height:500px;
  border-radius:0 0 0 72px;
  overflow:hidden;
  box-shadow:none;
}

body[data-page="home"] .hero-visual img {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  transform:scale(1.02);
}

body[data-page="home"] .hero-visual::after {
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      90deg,
      rgba(11,40,122,0) 0%,
      rgba(11,40,122,.05) 42%,
      rgba(7,27,81,.28) 68%,
      rgba(7,27,81,.78) 100%
    );
}

body[data-page="home"] .hero-visual-overlay {
  right:40px;
  bottom:44px;
  max-width:310px;
}

body[data-page="home"] .hero-visual-overlay>span {
  width:72px;
  height:5px;
  background:var(--red);
  margin:0 0 20px auto;
}

body[data-page="home"] .hero-visual-overlay p {
  font-family:var(--serif);
  font-size:clamp(38px,3.3vw,54px);
  line-height:.98;
  font-style:italic;
}

body[data-page="home"] .hero-visual-overlay small {
  margin-top:24px;
  font-size:11px;
  letter-spacing:.20em;
}

body[data-page="home"] .hero .global-search {
  position:relative;
  z-index:3;
  width:min(78%,930px);
  margin-top:-86px;
  margin-bottom:26px;
}

body[data-page="home"] .search-box {
  background:rgba(255,255,255,.98);
  box-shadow:0 18px 42px rgba(11,40,122,.14);
}

@media (max-width:980px) {
  body[data-page="home"] .hero-v2 {
    grid-template-columns:1fr;
    gap:28px;
  }

  body[data-page="home"] .hero-visual {
    min-height:380px;
    border-radius:22px;
  }

  body[data-page="home"] .hero .global-search {
    width:100%;
    margin-top:28px;
  }
}

@media (max-width:640px) {
  body[data-page="home"] .hero-visual {
    min-height:300px;
    border-radius:16px;
  }

  body[data-page="home"] .hero-visual-overlay {
    right:20px;
    bottom:22px;
  }

  body[data-page="home"] .hero-visual-overlay p {
    font-size:32px;
  }
}
/* =========================================================
   HEADER V2 — REFINAMENTO DE PROPORÇÕES
   ========================================================= */

body[data-page="home"] .header-inner {
  min-height:78px;
  gap:22px;
}

body[data-page="home"] .brand-v2 {
  gap:11px;
}

body[data-page="home"] .brand-symbol {
  width:54px;
  height:54px;
  flex-basis:54px;
}

body[data-page="home"] .brand-copy strong {
  font-size:25px;
}

body[data-page="home"] .brand-copy small {
  font-size:10px;
}

body[data-page="home"] .main-nav {
  gap:26px;
}

body[data-page="home"] .header-cta {
  min-height:48px;
  padding:9px 18px;
}

body[data-page="home"] #site-header {
  box-shadow:0 4px 18px rgba(11,40,122,.035);
}
/* =========================================================
   HOME — HEADER + HERO ALIGNMENT V4
   Aproximação controlada do mockup aprovado
   ========================================================= */

@media (min-width:981px) {

  /* HEADER */
  body[data-page="home"] .header-inner {
    min-height:96px;
    gap:30px;
  }

  body[data-page="home"] .brand-v2 {
    gap:14px;
  }

  body[data-page="home"] .brand-symbol {
    width:66px;
    height:66px;
    flex-basis:66px;
    overflow:visible;
  }

  body[data-page="home"] .brand-symbol img {
    width:100%;
    height:100%;
    object-fit:contain;
    transform:scale(1.08);
    transform-origin:center;
  }

  body[data-page="home"] .brand-copy strong {
    font-size:28px;
    line-height:1;
  }

  body[data-page="home"] .brand-copy small {
    margin-top:5px;
    font-size:11px;
  }

  body[data-page="home"] .main-nav {
    gap:30px;
  }

  body[data-page="home"] .header-cta {
    min-height:54px;
    padding-inline:22px;
    border-radius:11px;
  }

  /* HERO */
  body[data-page="home"] .hero {
    padding-top:0;
  }

  body[data-page="home"] .hero-v2 {
    grid-template-columns:minmax(430px,.86fr) minmax(590px,1.14fr);
    gap:34px;
    align-items:stretch;
    margin-bottom:0;
  }

  body[data-page="home"] .hero-copy {
    align-self:stretch;
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:52px 0 116px;
  }

  body[data-page="home"] .hero .eyebrow {
    margin-bottom:22px;
  }

  body[data-page="home"] .hero h1 {
    max-width:790px;
    font-size:clamp(58px,5.2vw,82px);
    line-height:.94;
  }

  body[data-page="home"] .hero-copy .hero-intro {
    max-width:650px;
    margin-top:27px;
    font-size:18px;
    line-height:1.65;
  }

  body[data-page="home"] .hero-visual {
    min-height:525px;
    border-radius:0 0 0 74px;
  }

  body[data-page="home"] .hero-visual img {
    transform:scale(1.02);
    object-position:center center;
  }

  body[data-page="home"] .hero .global-search {
    width:min(78%,930px);
    margin-top:-104px;
    margin-bottom:30px;
  }
}
/* =========================================================
   HOME — HERO PROPORTIONS V5
   Ajuste fino de desktop para aproximar do mockup aprovado
   ========================================================= */

@media (min-width:981px) {

  body[data-page="home"] .hero-v2 {
    grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);
    gap:26px;
  }

  body[data-page="home"] .hero-copy {
    padding:46px 0 118px;
  }

  body[data-page="home"] .hero h1 {
    max-width:900px;
    font-size:clamp(54px,4.6vw,78px);
    line-height:.96;
    letter-spacing:-.025em;
  }

  body[data-page="home"] .hero-copy .hero-intro {
    max-width:700px;
    margin-top:26px;
    font-size:18px;
    line-height:1.62;
  }

  body[data-page="home"] .hero-visual {
    min-height:510px;
  }

  body[data-page="home"] .hero .global-search {
    width:min(76%,920px);
    margin-top:-92px;
    margin-bottom:28px;
  }
}
/* =========================================================
   HOME — HERO DESKTOP V6
   Ajuste fino com base no asset original aprovado
   ========================================================= */

@media (min-width:981px) {

  /* Remove a faixa superior só na Home */
  body[data-page="home"] .notice {
    display:none;
  }

  /* Dá mais respiro horizontal para header e hero */
  body[data-page="home"] #site-header .container,
  body[data-page="home"] .hero > .container {
    width:min(1320px, calc(100% - 64px));
  }

  body[data-page="home"] .hero {
    padding-top:0;
  }

  /* Rebalanceia texto e imagem para a arte parecer menos quadrada */
  body[data-page="home"] .hero-v2 {
    grid-template-columns:minmax(0,.96fr) minmax(0,1.04fr);
    gap:24px;
    align-items:stretch;
    margin-bottom:0;
  }

  body[data-page="home"] .hero-copy {
    padding:44px 0 108px;
  }

  body[data-page="home"] .hero h1 {
    max-width:940px;
    font-size:clamp(52px,4.8vw,76px);
    line-height:.96;
    letter-spacing:-.02em;
  }

  body[data-page="home"] .hero-copy .hero-intro {
    max-width:690px;
    margin-top:24px;
    font-size:18px;
    line-height:1.62;
  }

  /* Ajusta o banner para leitura mais panorâmica */
  body[data-page="home"] .hero-visual {
    min-height:470px;
    border-radius:0 0 0 64px;
    overflow:hidden;
  }

  body[data-page="home"] .hero-visual img {
    object-fit:cover;
    object-position:center center;
    transform:none;
  }

  /* Sobe a copy da imagem para ela não brigar com a busca */
  body[data-page="home"] .hero-visual-overlay {
    right:40px;
    bottom:76px;
    max-width:260px;
  }

  body[data-page="home"] .hero-visual-overlay p {
    font-size:clamp(34px,3vw,50px);
    line-height:.98;
  }

  body[data-page="home"] .hero-visual-overlay small {
    margin-top:18px;
  }

  /* Abaixa e encurta a busca para não tampar a copy do banner */
  body[data-page="home"] .hero .global-search {
    width:min(68%,900px);
    margin-top:-48px;
    margin-bottom:28px;
  }
}
/* =========================================================
   HOME — HERO PANORÂMICO V7
   Corrige proporção visual do banner
   ========================================================= */

@media (min-width:981px) {

  body[data-page="home"] .hero-v2 {
    grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);
    gap:28px;
  }

  body[data-page="home"] .hero-copy {
    padding:42px 0 82px;
  }

  body[data-page="home"] .hero-visual {
    min-height:0;
    aspect-ratio:1.72 / 1;
    align-self:center;
    border-radius:0 0 0 56px;
  }

  body[data-page="home"] .hero-visual img {
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center center;
  }

  body[data-page="home"] .hero-visual-overlay {
    right:38px;
    bottom:42px;
    max-width:250px;
  }

  body[data-page="home"] .hero-visual-overlay p {
    font-size:clamp(32px,2.8vw,46px);
  }

  body[data-page="home"] .hero-visual-overlay small {
    margin-top:16px;
  }

  body[data-page="home"] .hero .global-search {
    width:min(72%,900px);
    margin-top:-36px;
    margin-bottom:30px;
  }
}
/* =========================================================
   HOME — HERO FINAL CALIBRATION V8
   Proporção + busca + acessibilidade
   ========================================================= */

@media (min-width:981px) {

  /* Mais território para a imagem, preservando a headline */
  body[data-page="home"] .hero-v2 {
    grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);
    gap:24px;
  }

  body[data-page="home"] .hero h1 {
    font-size:clamp(50px,4.15vw,70px);
    line-height:.96;
    max-width:760px;
  }

  /* Banner ainda mais horizontal */
  body[data-page="home"] .hero-visual {
    min-height:0;
    aspect-ratio:2 / 1;
    border-radius:0 0 0 52px;
  }

  body[data-page="home"] .hero-visual img {
    object-fit:cover;
    object-position:center center;
  }

  /* Mantém o label acessível, mas remove da composição visual */
  body[data-page="home"] .global-search > label {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
  }

  /* Busca volta a funcionar como base visual do hero */
  body[data-page="home"] .hero .global-search {
    width:min(75%,930px);
    margin-top:-28px;
    margin-bottom:18px;
  }

  body[data-page="home"] .hero-visual-overlay {
    right:38px;
    bottom:34px;
    max-width:255px;
  }

  body[data-page="home"] .hero-visual-overlay p {
    font-size:clamp(31px,2.7vw,45px);
  }
}
/* =========================================================
   HOME — HERO FINAL V9
   Fecha geometria desktop do mockup aprovado
   ========================================================= */

@media (min-width:981px) {

  body[data-page="home"] .hero-v2 {
    grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);
    gap:20px;
  }

  body[data-page="home"] .hero-copy {
    padding:38px 0 72px;
  }

  body[data-page="home"] .hero h1 {
    max-width:760px;
    font-size:clamp(50px,4.2vw,72px);
  }

  body[data-page="home"] .hero-copy .hero-intro {
    margin-top:22px;
  }

  body[data-page="home"] .hero-visual {
    aspect-ratio:1.86 / 1;
    border-radius:0 0 0 54px;
  }

  body[data-page="home"] .hero .global-search {
    width:min(74%,930px);
    margin-top:-56px;
    margin-bottom:16px;
  }

  body[data-page="home"] .search-box {
    box-shadow:0 12px 32px rgba(11,40,122,.08);
  }

  body[data-page="home"] .hero-visual-overlay {
    right:36px;
    bottom:34px;
  }
}
/* =========================================================
   GLOBAL BRAND V1
   Unifica a identidade da marca em todas as páginas públicas
   ========================================================= */

.brand-v2 {
  display:flex;
  align-items:center;
  gap:14px;
  flex-shrink:0;
  color:var(--ink);
}

.brand-symbol {
  display:grid;
  place-items:center;
  width:66px;
  height:66px;
  flex:0 0 66px;
  overflow:visible;
}

.brand-symbol img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  transform:scale(1.08);
  transform-origin:center;
}

.brand-copy {
  display:flex;
  flex-direction:column;
  gap:2px;
}

.brand-copy strong {
  font-family:var(--serif);
  font-size:28px;
  line-height:1;
  font-weight:600;
  color:var(--royal-dark);
  white-space:nowrap;
}

.brand-copy small {
  margin-top:5px;
  font-family:var(--sans);
  font-size:11px;
  line-height:1.2;
  color:var(--muted);
  font-weight:500;
}

/* Mantém proporção elegante em telas menores */
@media (max-width:760px) {
  .brand-symbol {
    width:52px;
    height:52px;
    flex-basis:52px;
  }

  .brand-copy strong {
    font-size:22px;
  }
}

@media (max-width:480px) {
  .brand-copy small {
    display:none;
  }
}
/* =========================================================
   PUBLIC HEADER GLOBAL V1
   Home + Transparência + Áreas
   ========================================================= */

:is(
  body[data-page="home"],
  body[data-page="catalogue"],
  body[data-page="areas"]
) #site-header {
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.97);
  border-bottom:1px solid var(--line);
  box-shadow:0 4px 18px rgba(11,40,122,.035);
  backdrop-filter:saturate(140%) blur(12px);
  -webkit-backdrop-filter:saturate(140%) blur(12px);
}

:is(
  body[data-page="home"],
  body[data-page="catalogue"],
  body[data-page="areas"]
) .header-inner {
  min-height:96px;
  gap:28px;
  align-items:center;
}

:is(
  body[data-page="home"],
  body[data-page="catalogue"],
  body[data-page="areas"]
) .main-nav {
  display:flex;
  align-items:center;
  gap:30px;
}

:is(
  body[data-page="home"],
  body[data-page="catalogue"],
  body[data-page="areas"]
) .main-nav a {
  position:relative;
  display:flex;
  align-items:center;
  min-height:48px;
  color:var(--muted);
  font-family:var(--sans);
  font-weight:500;
  text-decoration:none;
  transition:
    color .22s ease,
    transform .22s ease;
}

:is(
  body[data-page="home"],
  body[data-page="catalogue"],
  body[data-page="areas"]
) .main-nav a:hover {
  color:var(--royal);
  transform:translateY(-1px);
}

:is(
  body[data-page="home"],
  body[data-page="catalogue"],
  body[data-page="areas"]
) .main-nav a[aria-current="page"] {
  color:var(--royal);
  font-weight:700;
}

:is(
  body[data-page="home"],
  body[data-page="catalogue"],
  body[data-page="areas"]
) .main-nav a[aria-current="page"]::after {
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:2px;
  height:2px;
  background:var(--royal);
  border-radius:999px;
}

:is(
  body[data-page="home"],
  body[data-page="catalogue"],
  body[data-page="areas"]
) .header-cta {
  min-height:54px;
  padding:10px 22px;
  border-radius:11px;
  background:var(--red);
  border-color:var(--red);
  color:#fff;
  white-space:nowrap;
  transition:
    background .22s ease,
    border-color .22s ease,
    transform .22s ease,
    box-shadow .22s ease;
}

:is(
  body[data-page="home"],
  body[data-page="catalogue"],
  body[data-page="areas"]
) .header-cta:hover {
  background:var(--red-dark);
  border-color:var(--red-dark);
  transform:translateY(-1px);
  box-shadow:0 8px 22px rgba(180,25,42,.16);
}

:is(
  body[data-page="home"],
  body[data-page="catalogue"],
  body[data-page="areas"]
) .header-cta svg {
  width:20px;
  height:20px;
}

/* Intermediário: preserva espaço sem esmagar o header */
@media (max-width:1180px) {
  :is(
    body[data-page="home"],
    body[data-page="catalogue"],
    body[data-page="areas"]
  ) .main-nav {
    gap:20px;
  }

  :is(
    body[data-page="home"],
    body[data-page="catalogue"],
    body[data-page="areas"]
  ) .header-cta {
    display:none;
  }
}

/* Mobile */
@media (max-width:760px) {
  :is(
    body[data-page="home"],
    body[data-page="catalogue"],
    body[data-page="areas"]
  ) .header-inner {
    min-height:74px;
    gap:14px;
  }
}

/* Respeita usuários que reduziram movimento */
@media (prefers-reduced-motion:reduce) {
  :is(
    body[data-page="home"],
    body[data-page="catalogue"],
    body[data-page="areas"]
  ) .main-nav a,
  :is(
    body[data-page="home"],
    body[data-page="catalogue"],
    body[data-page="areas"]
  ) .header-cta {
    transition:none;
    transform:none;
  }
}

/* HERO HOME — IMAGEM INSTITUCIONAL */
body[data-page="home"] .hero-visual {
  background:transparent;
}

body[data-page="home"] .hero-visual img {
  object-fit:contain;
  object-position:center;
  transform:none;
}

body[data-page="home"] .hero-visual::after {
  display:none;
}
/* =========================================================
   PUBLIC NOTICE V1
   Remove a faixa de avaliação das páginas públicas
   ========================================================= */

:is(
  body[data-page="home"],
  body[data-page="catalogue"],
  body[data-page="areas"]
) .notice {
  display:none;
}
/* =========================================================
   HOME — QUICK LINKS PREMIUM V1
   Refinamento visual dos acessos rápidos
   ========================================================= */

body[data-page="home"] .quick-links {
  position:relative;
  z-index:4;

  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:12px;

  margin-top:22px;
  margin-bottom:30px;
}

/* CARD */
body[data-page="home"] .quick-links > a {
  position:relative;
  isolation:isolate;

  display:grid;
  grid-template-columns:38px minmax(0,1fr) 22px;
  align-items:center;
  gap:12px;

  min-height:88px;
  padding:16px 15px;

  overflow:hidden;

  background:rgba(255,255,255,.94);
  border:1px solid rgba(22,70,216,.12);
  border-radius:15px;

  color:var(--royal-dark);
  text-decoration:none;

  box-shadow:
    0 6px 18px rgba(11,40,122,.045),
    0 1px 2px rgba(11,40,122,.025);

  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease,
    background-color .22s ease;
}

/* detalhe royal discreto */
body[data-page="home"] .quick-links > a::before {
  content:"";
  position:absolute;
  z-index:-1;

  width:92px;
  height:92px;

  left:-50px;
  bottom:-58px;

  border-radius:50%;

  background:rgba(22,70,216,.055);

  transform:scale(.88);
  transition:
    transform .28s ease,
    background-color .28s ease;
}

/* ÍCONE PRINCIPAL */
body[data-page="home"] .quick-links > a > svg:first-child {
  width:38px;
  height:38px;

  padding:8px;

  color:var(--royal);

  border:1px solid rgba(22,70,216,.11);
  border-radius:11px;

  background:rgba(22,70,216,.055);

  transition:
    transform .22s ease,
    background-color .22s ease;
}

/* TEXTO */
body[data-page="home"] .quick-links > a > span {
  min-width:0;

  font-family:var(--sans);
  font-size:13px;
  line-height:1.3;
  font-weight:700;

  color:var(--royal-dark);
}

/* SETA */
body[data-page="home"] .quick-links > a > svg:last-child {
  width:19px;
  height:19px;

  justify-self:end;

  color:rgba(11,40,122,.48);

  transition:
    transform .22s ease,
    color .22s ease;
}

/* HOVER */
@media (hover:hover) {
  body[data-page="home"] .quick-links > a:hover {
    transform:translateY(-4px);

    background:#fff;
    border-color:rgba(22,70,216,.24);

    box-shadow:
      0 16px 34px rgba(11,40,122,.10),
      0 3px 8px rgba(11,40,122,.04);
  }

  body[data-page="home"] .quick-links > a:hover::before {
    transform:scale(1.3);
    background:rgba(22,70,216,.085);
  }

  body[data-page="home"] .quick-links > a:hover > svg:first-child {
    transform:translateY(-2px);
    background:rgba(22,70,216,.09);
  }

  body[data-page="home"] .quick-links > a:hover > svg:last-child {
    transform:translateX(4px);
    color:var(--royal);
  }
}

/* ACESSIBILIDADE POR TECLADO */
body[data-page="home"] .quick-links > a:focus-visible {
  outline:3px solid rgba(22,70,216,.28);
  outline-offset:3px;
  border-color:var(--royal);
}

/* TABLET */
@media (max-width:1180px) {
  body[data-page="home"] .quick-links {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
  }

  body[data-page="home"] .quick-links > a {
    min-height:82px;
  }
}

/* MOBILE */
@media (max-width:760px) {
  body[data-page="home"] .quick-links {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;

    margin-top:18px;
  }

  body[data-page="home"] .quick-links > a {
    grid-template-columns:34px minmax(0,1fr) 18px;
    gap:10px;

    min-height:76px;
    padding:13px 12px;

    border-radius:13px;
  }

  body[data-page="home"] .quick-links > a > svg:first-child {
    width:34px;
    height:34px;
    padding:7px;
  }

  body[data-page="home"] .quick-links > a > span {
    font-size:12px;
  }
}

/* MOBILE ESTREITO */
@media (max-width:480px) {
  body[data-page="home"] .quick-links {
    grid-template-columns:1fr;
  }

  body[data-page="home"] .quick-links > a {
    min-height:68px;
  }
}

/* MOVIMENTO REDUZIDO */
@media (prefers-reduced-motion:reduce) {
  body[data-page="home"] .quick-links > a,
  body[data-page="home"] .quick-links > a::before,
  body[data-page="home"] .quick-links > a > svg {
    transition:none;
  }

  body[data-page="home"] .quick-links > a:hover,
  body[data-page="home"] .quick-links > a:hover > svg {
    transform:none;
  }
}

/* =========================================================
   REFINAMENTO VISUAL CONTROLADO V1
   Responsividade, legibilidade e microinteracoes
   ========================================================= */

body[data-page="home"] .portal-overview {
  padding-block:64px;
}

body[data-page="home"] .portal-overview .muted,
body[data-page="home"] .area-links small {
  color:rgba(255,255,255,.82);
}

body[data-page="home"] .area-links {
  column-gap:40px;
}

body[data-page="home"] .area-links > a {
  margin-inline:-12px;
  padding:22px 12px;
  border-radius:var(--radius);
  transition:
    background-color .18s ease,
    transform .18s ease;
}

@media (hover:hover) {
  body[data-page="home"] .quick-links > a:hover {
    transform:translateY(-3px);
  }

  body[data-page="home"] .quick-links > a:hover > svg:last-child {
    transform:translateX(3px);
  }

  body[data-page="home"] .area-links > a:hover {
    transform:translateX(3px);
  }
}

@keyframes mobile-menu-enter {
  from {
    opacity:.01;
    transform:translateX(12px);
  }
}

@keyframes mobile-menu-backdrop-enter {
  from {
    background:transparent;
  }
}

@media (max-width:960px) {
  :is(
    body[data-page="home"],
    body[data-page="catalogue"],
    body[data-page="areas"]
  ) .main-nav {
    display:none;
  }

  :is(
    body[data-page="home"],
    body[data-page="catalogue"],
    body[data-page="areas"]
  ) .menu-button {
    display:flex;
  }

  .mobile-menu[open] {
    animation:mobile-menu-enter .18s cubic-bezier(.16,1,.3,1);
  }

  .mobile-menu[open]::backdrop {
    animation:mobile-menu-backdrop-enter .18s ease-out;
  }
}

@media (max-width:760px) {
  body[data-page="home"] .portal-overview {
    padding-block:48px;
  }

  body[data-page="home"] .area-links {
    column-gap:0;
  }

  body[data-page="home"] .area-links > a {
    margin-inline:0;
    padding-inline:0;
  }
}

@media (prefers-reduced-motion:reduce) {
  body[data-page="home"] .area-links > a,
  .mobile-menu[open],
  .mobile-menu[open]::backdrop {
    animation:none;
    transition:none;
    transform:none;
  }
}

/* =========================================================
   MOTION PREMIUM CONTROLADO V1
   Uma abertura autoral e feedback funcional de interface
   ========================================================= */

@keyframes hero-content-enter {
  from {
    opacity:.82;
    transform:translateY(var(--hero-enter-distance,8px));
  }
}

body[data-page="home"] .hero {
  --hero-enter-distance:8px;
}

body[data-page="home"] .hero-copy .eyebrow,
body[data-page="home"] .hero-copy h1,
body[data-page="home"] .hero-copy .hero-intro,
body[data-page="home"] .global-search {
  animation:hero-content-enter .32s cubic-bezier(.16,1,.3,1) both;
}

body[data-page="home"] .hero-copy h1 {
  animation-delay:.035s;
}

body[data-page="home"] .hero-copy .hero-intro {
  animation-delay:.07s;
}

body[data-page="home"] .global-search {
  animation-delay:.105s;
}

body[data-page="home"] .quick-links > a:active {
  transform:translateY(-1px) scale(.995);
  transition-duration:.12s;
}

.area-nav a {
  transition:
    background-color .16s ease-out,
    border-color .16s ease-out,
    color .16s ease-out,
    transform .16s ease-out;
}

.area-detail > summary::after {
  display:inline-block;
  line-height:1;
  transform-origin:center;
  transition:
    color .18s ease-out,
    transform .18s cubic-bezier(.16,1,.3,1);
}

.area-detail[open] > summary::after {
  content:'+';
  color:var(--red);
  transform:rotate(45deg);
}

#filter-toggle svg {
  transition:
    color .16s ease-out,
    transform .16s ease-out;
}

#filter-toggle[aria-expanded="true"] svg {
  color:var(--red);
  transform:rotate(180deg);
}

.doc-list .doc-row {
  transition:
    background-color .16s ease-out,
    transform .16s ease-out;
}

.doc-list .doc-row:focus-within {
  background:var(--royal-soft);
  transform:translateX(2px);
}

@media (hover:hover) {
  .area-nav a:hover,
  .area-nav a:focus-visible {
    transform:translateX(2px);
  }

  .doc-list .doc-row:hover {
    background:var(--royal-soft);
    transform:translateX(2px);
  }
}

@media (max-width:760px) {
  body[data-page="home"] .hero {
    --hero-enter-distance:4px;
  }

  body[data-page="home"] .hero-copy .eyebrow,
  body[data-page="home"] .hero-copy h1,
  body[data-page="home"] .hero-copy .hero-intro,
  body[data-page="home"] .global-search {
    animation-duration:.24s;
  }

  body[data-page="home"] .hero-copy h1 {
    animation-delay:.025s;
  }

  body[data-page="home"] .hero-copy .hero-intro {
    animation-delay:.05s;
  }

  body[data-page="home"] .global-search {
    animation-delay:.075s;
  }

  .area-nav a:hover,
  .area-nav a:focus-visible,
  .doc-list .doc-row:hover,
  .doc-list .doc-row:focus-within {
    transform:none;
  }
}

@media (prefers-reduced-motion:reduce) {
  body[data-page="home"] .hero-copy .eyebrow,
  body[data-page="home"] .hero-copy h1,
  body[data-page="home"] .hero-copy .hero-intro,
  body[data-page="home"] .global-search,
  body[data-page="home"] .quick-links > a,
  .area-nav a,
  .area-detail > summary::after,
  #filter-toggle svg,
  .doc-list .doc-row {
    animation:none;
    transition:none;
    transform:none;
  }
}
/* =========================================================
   PUBLIC BRAND — LOGO SIZE FINAL
   Redução sutil do símbolo sem alterar a tipografia
   ========================================================= */

:is(
  body[data-page="home"],
  body[data-page="catalogue"],
  body[data-page="areas"]
) #site-header .brand-symbol {
  width:54px;
  height:54px;
  flex-basis:54px;
}

:is(
  body[data-page="home"],
  body[data-page="catalogue"],
  body[data-page="areas"]
) #site-header .brand-symbol img {
  transform:scale(1);
}

/* Tablet / mobile */
@media (max-width:760px) {
  :is(
    body[data-page="home"],
    body[data-page="catalogue"],
    body[data-page="areas"]
  ) #site-header .brand-symbol {
    width:44px;
    height:44px;
    flex-basis:44px;
  }
}

/* =========================================================
   HOME — REFINO LOCALIZADO DO HERO E ÁREAS
   ========================================================= */
@media (min-width:981px) {
  body[data-page="home"] .hero-visual img {
    object-position:right center;
  }

  body[data-page="home"] .area-links {
    grid-template-columns:1fr;
  }
}

/* =========================================================
   PÁGINAS PÚBLICAS — QUEM SOMOS E GALERIA
   ========================================================= */
body[data-page="about"] .institutional-intro,
body[data-page="gallery"] .gallery-intro {
  padding-block:34px 48px;
  background:
    radial-gradient(circle at 88% 18%,rgba(22,70,216,.09),transparent 27%),
    var(--paper);
}

.institutional-content,
.gallery-content {
  padding-block:64px 80px;
}

.institutional-sections {
  max-width:980px;
}

.institutional-section {
  position:relative;
  display:grid;
  grid-template-columns:8px minmax(0,1fr);
  gap:32px;
  padding:38px 0;
  border-bottom:1px solid var(--line);
}

.institutional-section:first-child {
  padding-top:0;
}

.institutional-accent {
  width:6px;
  height:52px;
  margin-top:5px;
  border-radius:999px;
  background:linear-gradient(180deg,var(--red),var(--royal));
}

.institutional-section h2 {
  max-width:720px;
  margin-bottom:14px;
  font-size:clamp(25px,3vw,38px);
  line-height:1.12;
}

.institutional-section p {
  max-width:820px;
  color:var(--muted);
  font-size:17px;
  line-height:1.8;
}

.gallery-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
}

.gallery-item {
  display:block;
  width:100%;
  aspect-ratio:4 / 3;
  padding:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:var(--paper);
  cursor:pointer;
  box-shadow:0 12px 30px rgba(11,40,122,.08);
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}

.gallery-item img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}

@media (hover:hover) {
  .gallery-item:hover {
    border-color:rgba(22,70,216,.45);
    box-shadow:0 18px 38px rgba(11,40,122,.14);
    transform:translateY(-2px);
  }
}

.gallery-dialog {
  width:min(1120px,calc(100% - 32px));
  max-height:calc(100dvh - 32px);
  margin:auto;
  padding:0;
  overflow:visible;
  border:0;
  border-radius:var(--radius-lg);
  background:transparent;
}

.gallery-dialog::backdrop {
  background:rgba(4,13,38,.84);
}

.gallery-dialog-shell {
  position:relative;
  display:grid;
  grid-template-columns:52px minmax(0,1fr) 52px;
  align-items:center;
  gap:18px;
  min-height:min(760px,calc(100dvh - 32px));
  padding:56px 24px 24px;
  border-radius:var(--radius-lg);
  background:#071b51;
  box-shadow:0 24px 80px rgba(0,0,0,.36);
}

.gallery-dialog figure {
  display:grid;
  place-items:center;
  gap:14px;
  margin:0;
  min-width:0;
}

.gallery-dialog figure img {
  display:block;
  max-width:100%;
  max-height:calc(100dvh - 142px);
  object-fit:contain;
}

.gallery-dialog figcaption {
  min-height:24px;
  color:rgba(255,255,255,.82);
  font-size:14px;
  text-align:center;
}

.gallery-close,
.gallery-nav {
  display:inline-grid;
  place-items:center;
  width:44px;
  height:44px;
  padding:0;
  border:1px solid rgba(255,255,255,.34);
  border-radius:999px;
  background:rgba(255,255,255,.12);
  color:#fff;
  font:700 24px/1 var(--sans);
  cursor:pointer;
}

.gallery-close {
  position:absolute;
  z-index:2;
  top:12px;
  right:12px;
}

.gallery-nav:disabled {
  opacity:.38;
  cursor:not-allowed;
}

.gallery-close:focus-visible,
.gallery-nav:focus-visible {
  outline:3px solid #fff;
  outline-offset:3px;
}

@media (max-width:900px) {
  .gallery-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:640px) {
  body[data-page="about"] .institutional-intro,
  body[data-page="gallery"] .gallery-intro {
    padding-block:22px 34px;
  }

  .institutional-content,
  .gallery-content {
    padding-block:40px 56px;
  }

  .institutional-section {
    gap:18px;
    padding:30px 0;
  }

  .institutional-section p {
    font-size:16px;
    line-height:1.7;
  }

  .gallery-grid {
    grid-template-columns:1fr;
    gap:18px;
  }

  .gallery-dialog-shell {
    grid-template-columns:44px minmax(0,1fr) 44px;
    gap:8px;
    min-height:calc(100dvh - 24px);
    padding:54px 10px 18px;
  }

  .gallery-close,
  .gallery-nav {
    width:40px;
    height:40px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .gallery-item {
    transition:none;
  }

  .gallery-item:hover {
    transform:none;
  }
}

@media (max-width:360px) {
  :is(body[data-page="home"],body[data-page="about"],body[data-page="gallery"]) .header-inner {
    gap:8px;
  }

  :is(body[data-page="home"],body[data-page="about"],body[data-page="gallery"]) .brand-v2 {
    min-width:0;
    gap:8px;
    flex:1 1 auto;
  }

  :is(body[data-page="home"],body[data-page="about"],body[data-page="gallery"]) .brand-symbol {
    width:44px;
    height:44px;
    flex-basis:44px;
  }

  :is(body[data-page="home"],body[data-page="about"],body[data-page="gallery"]) .brand-copy {
    min-width:0;
  }

  :is(body[data-page="home"],body[data-page="about"],body[data-page="gallery"]) .brand-copy strong {
    font-size:18px;
    white-space:nowrap;
  }

  :is(body[data-page="home"],body[data-page="about"],body[data-page="gallery"]) .menu-button {
    flex:0 0 auto;
  }
}
