body>header{background-image:linear-gradient(90deg,#251920e8,#34212bdd 50%,#251920e8),url('../assets/images/ornamento_cabecalho_referencia.webp')!important;background-size:cover!important;background-position:center 48%!important}.header-caliphate{min-height:54px;font:700 19px 'Times New Roman',serif}.header-caliphate span{color:#f1d78e}.header-crest{display:none}.header-edition .edition-cover{display:inline-block!important}.header-caliphate span{display:block!important}.public-media-note{font-size:16px}.research-hub-tabs button{min-height:44px}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #966e34;outline-offset:3px}@media(max-width:600px){body>header{height:auto!important;min-height:0!important;display:flex!important;flex-wrap:wrap!important;padding:12px!important;gap:10px!important}.header-title{width:100%!important;order:-1;min-width:0!important}.header-title h1{font-size:clamp(26px,7vw,34px)!important;line-height:1.15}.header-opening,.header-edition{position:static!important;width:100%!important;max-width:100%!important;margin:0!important}.header-opening-line{font-size:16px!important}.header-edition{padding:8px!important}.header-caliphate{min-height:44px}.page-section-nav button{min-height:44px}.research-hub-tabs{gap:6px!important}.research-hub-tabs button{padding:9px 12px!important;font-size:13px!important}.research-entry>summary{padding:12px!important}.research-entry-body{padding:12px!important}.research-entry-body p,.research-perspective p{font-size:15px!important;line-height:1.65!important}.map-toolbar{flex-wrap:wrap}.map-actions{gap:5px;flex-wrap:wrap}.map-heading h2{font-size:22px}.atlas-dialog{max-width:calc(100vw - 16px)!important;padding:10px!important}.dialog-heading{flex-wrap:wrap}.dialog-heading button{min-height:44px}.visual-table-scroll{max-width:100%}select,input,button{max-width:100%}.article-back{min-height:44px}.main{scroll-padding-top:70px}body[data-atlas-view=map]>header .header-opening,body[data-atlas-view=map]>header .header-edition{display:none!important}body[data-atlas-view=map]>header{padding:6px 10px!important}body[data-atlas-view=map] .header-title h1{font-size:23px!important;margin:3px 0!important}body[data-atlas-view=map] .header-title .subtitle,body[data-atlas-view=map] .header-arabic-invocation,body[data-atlas-view=map] .header-title .kicker{display:none!important}body[data-atlas-view=map] .map-toolbar{padding:8px!important}body[data-atlas-view=map] .map-heading h2{font-size:19px!important}}
 
/* Destaca o acesso ao mapa na navegação principal. */
.page-section-nav #tab-map {
  box-shadow: inset 0 -3px #a16c29;
  font-weight: 700;
}

/* Tela cheia móvel, com fallback para navegadores sem Fullscreen API. */
.mobile-fullscreen-controls { display: none; }
body.mobile-map-open { overflow: hidden; }
body.mobile-map-open .page-section-nav { visibility: hidden; }
body[data-atlas-view=map] .mapwrap.mobile-map-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #f8f4e9;
}
body[data-atlas-view=map] .mapwrap.mobile-map-fullscreen #map {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}
.mapwrap.mobile-map-fullscreen > :not(#map):not(.mobile-fullscreen-controls) {
  display: none !important;
}
.mapwrap.mobile-map-fullscreen #map .leaflet-top.leaflet-right {
  top: 58px !important;
  right: 8px !important;
}
.mobile-map-fullscreen .mobile-fullscreen-controls {
  position: absolute;
  z-index: 1001;
  top: max(8px, env(safe-area-inset-top));
  left: max(8px, env(safe-area-inset-left));
  right: max(8px, env(safe-area-inset-right));
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none;
}
.mobile-place-navigation { display: none; }
@media (pointer: coarse) and (max-width: 950px) {
  .mobile-map-fullscreen .mobile-place-navigation {
    position: fixed; display: flex; gap: 6px;
    left: max(8px, env(safe-area-inset-left));
    bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 1003; pointer-events: auto;
  }
  .mobile-place-navigation button {
    width: 44px; min-height: 44px; padding: 0; border: 1px solid #743d50;
    border-radius: 50%; background: #fffaf2; color: #532838; font-size: 22px;
  }
}
@media (pointer: coarse) and (orientation: landscape) and (max-height: 520px) {
  .mobile-fullscreen-controls details { width: clamp(130px, 22vw, 175px); max-height: calc(100dvh - 56px); overflow: auto; }
  .mapwrap.mobile-map-fullscreen #fullscreen-summary:not([hidden]) { width: clamp(130px, 22vw, 175px) !important; }
}
.mobile-fullscreen-controls > * { pointer-events: auto; }
.mobile-fullscreen-controls button,
.mobile-fullscreen-controls summary {
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #743d50;
  border-radius: 6px;
  background: #fffaf2;
  color: #532838;
  font: 700 15px/1.4 system-ui, sans-serif;
  cursor: pointer;
}
.mobile-fullscreen-controls details {
  max-width: min(235px, calc(100vw - 32px));
  border-radius: 6px;
  background: #fffaf2;
}
.mobile-fullscreen-controls .explore-layer-options {
  max-height: calc(100dvh - 70px);
  overflow: auto;
  margin: 0;
  padding: 8px 12px;
  border: 0;
}
.mobile-fullscreen-controls label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

/* O cabeçalho editorial fica na abertura. */
body[data-atlas-view="research"] > header,
body[data-atlas-view="map"] > header {
  display: none !important;
}

.mobile-map-rotate { display: none; }
@media (pointer: coarse) and (max-width: 950px) and (max-height: 950px) {
  body[data-atlas-view=map] .map-overview .mapwrap:not(.mobile-map-fullscreen) {
    height: calc(100dvh - var(--workspace-nav-height, 42px) - 20px) !important;
    min-height: 0 !important;
  }
  body[data-atlas-view=map] .mapwrap:not(.mobile-map-fullscreen) :is(.fullscreen-options,#show-map-panel,#fullscreen-summary,.active-map-layers,.legend,.leaflet-control-zoom,.map-actions > :not(#expand-map)) {
    display: none !important;
  }
  body[data-atlas-view=map] .mapwrap:not(.mobile-map-fullscreen) #map { pointer-events: none; }
  body[data-atlas-view=map] .map-overview .context-rail { display: none !important; }
  body[data-atlas-view=map] .layout > #atlas-navigation-panel { display: none !important; }
  body[data-atlas-view=map] .mapwrap.mobile-map-fullscreen .leaflet-control-zoom a {
    width: 44px;
    height: 44px;
    line-height: 44px;
  }
  .mapwrap.mobile-map-fullscreen > :is(#fullscreen-summary,.legend):not([hidden]),
  .mapwrap.mobile-map-fullscreen > dialog[open] { display: block !important; }
  .mapwrap.mobile-map-fullscreen #fullscreen-summary:not([hidden]) {
    position: absolute !important;
    inset: auto 8px 38px auto !important;
    width: min(260px, calc(100% - 16px)) !important;
    max-height: 30dvh !important;
    overflow: auto;
    overscroll-behavior: contain;
    z-index: 1000;
  }
  .mapwrap.mobile-map-fullscreen .mobile-fullscreen-controls { flex-wrap: wrap; }
  .mobile-fullscreen-controls button,.mobile-fullscreen-controls summary { font-size: 13px; }
}
@media (pointer: coarse) and (orientation: portrait) and (max-width: 760px) {
  .mobile-map-fullscreen .mobile-map-rotate {
    display: block; flex-basis: 100%; padding: 5px 8px; background: #fffaf2;
    border-radius: 5px; font-size: 12px; pointer-events: none;
  }
  .mapwrap.mobile-map-fullscreen #map .leaflet-top.leaflet-right { top: 90px !important; }
}
@media (pointer: coarse) and (orientation: landscape) and (max-height: 520px) {
  .mapwrap.mobile-map-fullscreen .mobile-fullscreen-controls details { width: clamp(138px, 25vw, 190px); }
  .mapwrap.mobile-map-fullscreen #fullscreen-summary:not([hidden]) {
    inset: 58px 8px auto auto !important;
    width: clamp(138px, 25vw, 190px) !important;
    max-height: calc(100dvh - 95px) !important;
    padding: 8px !important;
    font-size: 13px !important;
  }
  .mapwrap.mobile-map-fullscreen #fullscreen-summary .map-selection-heading h3 { font-size: 17px !important; }
  .mapwrap.mobile-map-fullscreen:has(#fullscreen-summary:not([hidden])) #map .leaflet-top.leaflet-right {
    right: calc(clamp(138px, 25vw, 190px) + 10px) !important;
  }
}
