@font-face{font-family:Overpass;src:url('assets/overpass-400.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:Overpass;src:url('assets/overpass-700.woff2') format('woff2');font-style:normal;font-weight:700;font-display:swap}

/* Moldura da prévia. A integração recebe somente .toriba-root. */

.toriba-root{
  --font-sans:'Overpass',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  --brand:#DC2822;--brand-hover:#B81F1A;
  --ink:#2B2B2D;--muted:#58595B;--line:#E8E5DF;--border:#D7D2CB;
  --paper:#fff;--wash:#FAF9F7;--active:#F2F0EC;
  --status-available:#008A52;--status-sold:#D64232;--status-reserved:#B97700;--status-unknown:#647078;
  --focus:#015061;
  color:var(--ink);font:400 16px/1.55 var(--font-sans);background:var(--paper);
  letter-spacing:.01em;
}
.toriba-root,.toriba-root *{box-sizing:border-box}
.toriba-root :is(button,input,select){font:inherit}
.toriba-root :is(button,a,select,input){touch-action:manipulation}
.toriba-root button{cursor:pointer;color:inherit}
.toriba-root a{color:inherit;text-underline-offset:4px}
.toriba-root svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.toriba-root button:disabled{opacity:.4;cursor:default}
.toriba-root :is(button,a,select,input,[tabindex]):focus-visible{outline:3px solid var(--focus);outline-offset:4px}
.toriba-root ::selection{background:var(--active);color:var(--ink)}
.toriba-root input{caret-color:var(--ink)}
.toriba-root [hidden]{display:none!important}

.toriba-root .study-note{padding:10px 24px;display:flex;justify-content:center;gap:14px;background:var(--active);color:var(--muted);font-size:12px;line-height:1.45;border-bottom:1px solid var(--line)}
.toriba-root .study-note strong{color:var(--ink);font-weight:700;white-space:nowrap}
.toriba-root .page-header{max-width:1240px;margin:auto;min-height:88px;display:flex;align-items:center;gap:32px;padding:16px 24px;border-bottom:1px solid var(--line)}
.toriba-root .page-header img{display:block;object-fit:contain}
.toriba-root .page-header>span{font-size:14px;color:var(--muted)}
.toriba-root .header-separator{margin:0 10px;color:#A8A4A0}
.toriba-root .back-link{font-size:13px;text-decoration:none;margin-left:auto;font-weight:700}
.toriba-root .back-link:hover{color:var(--brand)}
.toriba-root .back-link svg{margin-left:8px;width:16px}
.toriba-root .masterplan-section{max-width:1240px;padding:38px 24px 26px;margin:auto}
.toriba-root .section-heading{text-align:left;margin-bottom:26px;max-width:800px}
.toriba-root .section-heading .section-context{font-size:12px;letter-spacing:.08em;font-weight:700;color:var(--muted);margin:0 0 10px}
.toriba-root .section-heading h2{font:700 32px/1.2 var(--font-sans);letter-spacing:.025em;margin:0 0 12px;text-wrap:balance}
.toriba-root .section-heading p{margin:0;color:var(--muted);font-size:17px;line-height:1.6}

.toriba-root .explorer{border:1px solid var(--line);background:var(--paper)}
.toriba-root .toolbar{padding:18px 20px;display:flex;gap:18px;align-items:end;border-bottom:1px solid var(--line);background:var(--wash)}
.toriba-root .sector-field{display:grid;gap:5px;min-width:156px}
.toriba-root :is(.sector-field,.group-field)>span{font-size:12px;color:var(--muted)}
.toriba-root select{height:44px;padding:0 34px 0 12px;border:1px solid var(--border);border-radius:4px;background:var(--paper);max-width:100%;color:var(--ink);font-size:14px}
.toriba-root .filter-group{display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.toriba-root .filter{border:1px solid transparent;background:transparent;border-radius:4px;min-height:44px;padding:8px 11px;display:inline-flex;align-items:center;gap:7px;font-size:13px}
.toriba-root .filter:hover{background:var(--active)}
.toriba-root .filter.active{background:var(--paper);border-color:#A8A4A0;font-weight:700}
.toriba-root .status-dot{display:inline-block;width:12px;height:12px;border-radius:50%;flex-shrink:0}
.toriba-root .available{background:var(--status-available)}
.toriba-root .sold{background:var(--status-sold)}
.toriba-root .reserved{background:var(--status-reserved)}
.toriba-root .unknown{background:var(--status-unknown)}
.toriba-root .color-toggle{margin-left:auto;font-size:12px;display:flex;align-items:center;gap:7px;white-space:nowrap;height:44px;color:var(--muted)}
.toriba-root .color-toggle input{accent-color:var(--ink);width:16px;height:16px}
.toriba-root .group-field{display:grid;gap:5px}
.toriba-root .toolbar .group-field{margin:0;min-width:180px;max-width:238px}
.toriba-root .group-field select{width:100%;font-size:14px}
.toriba-root .toolbar:has(.group-field:not([hidden])){flex-wrap:wrap}

.toriba-root .explorer-body{display:grid;grid-template-columns:minmax(0,1fr) 296px}
.toriba-root .map-column{min-width:0}
.toriba-root .map-frame{position:relative;background:#E9EEEC;height:570px;overflow:hidden}
.toriba-root .map-frame>svg{height:100%;width:100%;display:block;stroke:none;touch-action:pan-y;cursor:grab}
.toriba-root .map-frame>svg.dragging{cursor:grabbing;touch-action:none}
.toriba-root .map-caption{position:absolute;left:16px;bottom:46px;max-width:calc(100% - 88px);background:rgba(255,255,255,.96);padding:8px 11px;font-size:12px;line-height:1.4;border-radius:3px;pointer-events:none}
.toriba-root .map-controls{position:absolute;top:16px;right:16px;display:grid;background:var(--paper);border:1px solid var(--border);border-radius:4px;overflow:hidden}
.toriba-root .map-controls button{width:44px;height:44px;padding:10px;border:0;background:var(--paper)}
.toriba-root .map-controls button+button{border-top:1px solid var(--line)}
.toriba-root .map-controls button:hover{background:var(--active)}
.toriba-root .map-controls svg{width:21px;height:21px}
.toriba-root .map-watermark{position:absolute;bottom:12px;left:16px;font-size:9px;letter-spacing:.035em;color:#fff;background:#2B2B2DEB;padding:4px 7px;pointer-events:none}
.toriba-root .legend{min-height:50px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px 20px;padding:12px 14px;font-size:12px;border-top:1px solid var(--line)}
.toriba-root .legend>span{display:inline-flex;align-items:center;gap:7px}

.toriba-root .info-panel{padding:26px 22px;border-left:1px solid var(--line);min-width:0}
.toriba-root .info-panel h2{font:700 21px/1.3 var(--font-sans);letter-spacing:.015em;margin:0 0 12px;text-wrap:balance}
.toriba-root .info-panel p{margin:0 0 20px}
.toriba-root .info-panel #tm-panel-intro{font-size:14px;color:var(--muted);line-height:1.6}
.toriba-root .search-field{display:flex;align-items:center;border:1px solid var(--border);border-radius:4px;gap:8px;padding:0 11px;height:44px;margin-bottom:22px}
.toriba-root .search-field svg{flex-shrink:0;width:17px;color:var(--muted)}
.toriba-root .search-field input{border:0;outline:0;min-width:0;width:100%;background:var(--paper);font-size:14px;height:100%}
.toriba-root .search-field input::placeholder{color:var(--muted);opacity:1}
.toriba-root .search-field:focus-within{outline:3px solid var(--focus);outline-offset:3px}
.toriba-root .search-field input:focus-visible{outline:none}
.toriba-root .info-panel .list-heading{font-size:12px;color:var(--muted);margin-bottom:8px}
.toriba-root .unit-list{max-height:305px;overflow:auto;scrollbar-color:#A8A4A0 var(--active);scrollbar-width:thin}
.toriba-root .list-row{display:flex;width:100%;align-items:center;justify-content:space-between;gap:8px;min-height:54px;text-align:left;padding:11px 0;background:none;border:0;border-bottom:1px solid var(--line);font-size:14px;font-weight:700}
.toriba-root .list-row:hover{background:var(--wash)}
.toriba-root .list-row small{display:block;font-size:11px;color:var(--muted);font-weight:400;line-height:1.5;margin-top:3px}
.toriba-root .list-row .row-status{display:flex;align-items:center;gap:5px;font-size:10px;white-space:nowrap;font-weight:400}
.toriba-root .list-row svg{width:15px;flex-shrink:0;color:var(--muted)}
.toriba-root .list-row .status-dot{width:8px;height:8px}
.toriba-root .empty-list{padding:20px 0;font-size:14px}
.toriba-root .info-panel #tm-detail-title{font-size:25px;line-height:1.25;margin:8px 0 10px}
.toriba-root .info-panel .detail-group{color:var(--muted);font-size:14px;margin-bottom:22px}
.toriba-root .info-panel .detail-status{display:flex;align-items:center;gap:8px;font-size:16px;margin-bottom:10px}
.toriba-root .info-panel .demo-explanation{font-size:12px;line-height:1.55;color:var(--muted);margin:0 0 18px}
.toriba-root .info-panel dl{margin:0 0 22px}
.toriba-root .info-panel dl div{border-top:1px solid var(--line);padding:9px 0}
.toriba-root .info-panel dt{font-size:11px;color:var(--muted)}
.toriba-root .info-panel dd{font-size:13px;margin:3px 0 0}
.toriba-root .back-to-list{background:none;border:none;padding:0 0 16px;min-height:44px;display:flex;align-items:center;gap:7px;font-size:12px}
.toriba-root .back-to-list svg{width:17px}
.toriba-root .primary-link{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:46px;background:var(--brand);color:white;padding:12px 13px;text-decoration:none;border-radius:4px;font-size:13px;font-weight:700}
.toriba-root .primary-link:hover{background:var(--brand-hover)}
.toriba-root .primary-link svg{flex-shrink:0;width:18px}
.toriba-root .secondary-button{display:block;width:100%;min-height:44px;border:1px solid var(--border);background:var(--paper);border-radius:4px;margin-top:10px;font-size:13px}
.toriba-root .secondary-button:hover{background:var(--wash)}
.toriba-root .contact-message{padding:14px 0;font-size:13px;line-height:1.6}
.toriba-root .contact-message p{margin:0 0 8px}
.toriba-root .contact-message small{color:var(--muted)}
.toriba-root .explorer-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px 20px;padding:11px 16px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}
.toriba-root .explorer-footer p{margin:0}
.toriba-root .coverage-note{font-size:12px;color:var(--muted);margin:14px 0 0;max-width:100ch;line-height:1.55}
.toriba-root .closing-section{display:flex;align-items:center;justify-content:space-between;gap:25px;text-align:left;padding:28px 0 36px;max-width:1192px;margin:8px auto 0;border-top:1px solid var(--line)}
.toriba-root .closing-section h2{font:700 20px/1.35 var(--font-sans);letter-spacing:.025em;margin:0 0 8px}
.toriba-root .closing-section p{font-size:14px;color:var(--muted);margin:0;max-width:65ch}
.toriba-root .closing-section a{font-size:13px;color:var(--brand);font-weight:700;white-space:nowrap}
.toriba-root .closing-section svg{margin-left:6px;width:16px}
.toriba-root .page-footer{padding:24px;max-width:1240px;margin:auto;display:flex;justify-content:space-between;font-size:11px;color:var(--muted);border-top:1px solid var(--line)}
.toriba-root .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.toriba-root .map-error{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;padding:30px;background:var(--active)}
.toriba-root .map-error button{border:1px solid var(--border);padding:9px 14px;background:var(--paper);border-radius:4px}
.toriba-root .point{cursor:pointer;outline:none}
.toriba-root .point text{fill:#fff;stroke:none;pointer-events:none;font-family:var(--font-sans);font-weight:700;text-anchor:middle;dominant-baseline:central;letter-spacing:0}
.toriba-root .point .marker{stroke:#fff;stroke-width:1.8}
.toriba-root .point .select-ring{fill:none;stroke:var(--ink);stroke-width:2.5}
.toriba-root .point:focus-visible .select-ring{display:block!important}
.toriba-root .island-label{cursor:pointer}
.toriba-root .island-label rect{fill:#fff;stroke:var(--border);stroke-width:1}
.toriba-root .island-label text{fill:var(--ink);stroke:none;text-anchor:middle;dominant-baseline:central;font-family:var(--font-sans);font-weight:700;letter-spacing:0}
.toriba-root .island-label:hover rect,.toriba-root .island-label:focus-visible rect{fill:var(--active);stroke:var(--ink);stroke-width:2}

@media(min-width:1450px){.toriba-root .map-frame{height:600px}}
@media(max-width:1239px){.toriba-root .closing-section{margin-left:24px;margin-right:24px}}
@media(max-width:1050px){
  .toriba-root .toolbar{gap:14px;flex-wrap:wrap}
  .toriba-root .color-toggle{margin-left:auto}
  .toriba-root .filter-group{margin-left:auto}
  .toriba-root .explorer-body{grid-template-columns:minmax(0,1fr) 276px}
  .toriba-root .info-panel{padding:24px 18px}
  .toriba-root .map-frame{height:560px}
  .toriba-root .other-filter{display:none}
  .toriba-root .closing-section{align-items:start;flex-direction:column;gap:16px}
}
@media(max-width:720px){
  .toriba-root .study-note{display:block;text-align:left;padding:10px 20px;font-size:11px;line-height:1.5}
  .toriba-root .study-note strong{display:block;margin-bottom:3px}
  .toriba-root .page-header{min-height:74px;padding:14px 20px;justify-content:space-between;gap:16px}
  .toriba-root .page-header>span{font-size:12px}
  .toriba-root .page-header img{width:64px;height:40px}
  .toriba-root .back-link{display:none}
  .toriba-root .masterplan-section{padding:28px 16px 22px}
  .toriba-root .section-heading{margin-bottom:23px}
  .toriba-root .section-heading .section-context{font-size:10px;margin-bottom:9px}
  .toriba-root .section-heading h2{font-size:28px;margin-bottom:10px}
  .toriba-root .section-heading p{font-size:15px;max-width:40ch;line-height:1.6}
  .toriba-root .toolbar{padding:14px;gap:12px;align-items:center}
  .toriba-root .sector-field{min-width:0;flex:1}
  .toriba-root .sector-field select{width:100%;height:44px}
  .toriba-root .color-toggle{margin-left:auto;align-self:end;font-size:11px;order:1}
  .toriba-root .filter-group{order:3;width:100%;margin:0;gap:5px}
  .toriba-root .filter{flex:1;justify-content:center;padding:8px 7px;font-size:12px;min-height:44px;gap:6px}
  .toriba-root .other-filter{display:none}
  .toriba-root .toolbar .group-field{order:2;flex-basis:100%;max-width:none}
  .toriba-root .explorer-body{display:flex;flex-direction:column}
  .toriba-root .map-frame{height:380px}
  .toriba-root .map-caption{left:10px;bottom:46px;font-size:11px;padding:7px 9px}
  .toriba-root .map-controls{right:10px;top:10px}
  .toriba-root .map-watermark{left:10px;bottom:10px;font-size:8px}
  .toriba-root .legend{gap:10px 18px;font-size:11px;justify-content:flex-start;padding:13px 14px}
  .toriba-root .legend .status-dot{width:12px;height:12px}
  .toriba-root .info-panel{border-left:0;border-top:1px solid var(--line);padding:24px 20px}
  .toriba-root .info-panel h2{font-size:22px}
  .toriba-root .info-panel #tm-panel-intro{font-size:14px}
  .toriba-root .unit-list{max-height:280px}
  .toriba-root .search-field{height:46px;margin-bottom:18px}
  .toriba-root .list-row{min-height:56px;font-size:15px}
  .toriba-root .list-row small{font-size:12px}
  .toriba-root .list-row .row-status{font-size:11px}
  .toriba-root .info-panel .list-heading{font-size:12px}
  .toriba-root .explorer-footer{padding:12px 14px;font-size:10px}
  .toriba-root .explorer-footer p{width:100%}
  .toriba-root .coverage-note{font-size:11px;line-height:1.6;margin-top:14px}
  .toriba-root .closing-section{padding:25px 0 30px;margin:0 20px;gap:16px}
  .toriba-root .closing-section h2{font-size:20px}
  .toriba-root .closing-section p{font-size:14px}
  .toriba-root .closing-section a{font-size:13px;white-space:normal}
  .toriba-root .page-footer{display:block;padding:22px 20px;font-size:11px}
  .toriba-root .page-footer span{display:block;margin-top:5px}
}
@media(prefers-reduced-motion:reduce){.toriba-root *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.toriba-root{--status-unavailable:#514B45}.toriba-root .status-dot.unavailable{background:var(--status-unavailable)}

/* Proposta local: orientação derivada do book Nordeste, sem escala geográfica. */
.toriba-root .preview-label{padding:8px 24px;background:var(--ink);color:#fff;text-align:center;font-size:12px}
.toriba-root .section-heading{max-width:900px}
.toriba-root .section-heading p{font-size:16px;max-width:85ch}
.toriba-root .orientation-bar{display:flex;align-items:center;gap:18px;padding:10px 20px;border-bottom:1px solid var(--line)}
.toriba-root .orientation-toggle{display:flex;gap:9px;align-items:center;background:var(--paper);border:1px solid var(--border);border-radius:4px;padding:8px 14px;min-height:44px;font-size:14px;font-weight:700}
.toriba-root .orientation-toggle:hover,.toriba-root .orientation-toggle[aria-expanded=true]{background:var(--active);border-color:var(--ink)}
.toriba-root .orientation-hint{font-size:13px;color:var(--muted)}
.toriba-root .mini-compass{position:absolute;left:14px;top:14px;width:88px;padding:5px 4px;background:rgba(255,255,255,.94);border-radius:3px;pointer-events:none;text-align:center;color:var(--ink)}
.toriba-root .mini-compass svg{width:72px;height:72px;stroke:var(--ink);stroke-width:1;display:block;margin:auto}
.toriba-root .mini-compass .needle-north{fill:var(--ink)}
.toriba-root .mini-compass text{fill:var(--ink);stroke:none;font-size:14px;font-weight:700;text-anchor:middle}
.toriba-root .mini-compass span{font-size:9px;display:block;white-space:nowrap}
.toriba-root #tm-orientation-rose{opacity:0;pointer-events:none;transition:opacity 320ms ease-out}
.toriba-root .orientation-open #tm-orientation-rose{opacity:1}
.toriba-root #tm-orientation-rose .rose-ring{fill:#ffffff12;stroke:#fff;stroke-width:2}
.toriba-root #tm-orientation-rose .rose-line{stroke:#fff;stroke-width:2;fill:none}
.toriba-root #tm-orientation-rose .rose-point{fill:#ffffff55;stroke:#fff;stroke-width:2}
.toriba-root #tm-orientation-rose .rose-point.north{fill:#2b2b2d99}
.toriba-root #tm-orientation-rose .rose-letter-bg{fill:#fff;stroke:#D7D2CB;stroke-width:1}
.toriba-root #tm-orientation-rose text{fill:#2B2B2D;stroke:none;font:700 22px Overpass,sans-serif;text-anchor:middle;dominant-baseline:central}
.toriba-root .orientation-open .mini-compass{opacity:0}
.toriba-root .island-label.direction-highlight rect{fill:#fff;stroke:var(--focus);stroke-width:5}
.toriba-root .island-label.direction-muted{opacity:.4}
.toriba-root .orientation-guide{padding:24px 24px 18px;border-top:1px solid var(--line);background:var(--wash)}
.toriba-root .orientation-guide h2{font:700 21px/1.3 var(--font-sans);margin:0 0 10px}
.toriba-root .orientation-guide p{font-size:14px;line-height:1.6;color:var(--muted);margin:0 0 16px;max-width:75ch}
.toriba-root .direction-options{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.toriba-root .direction-options button{min-height:44px;padding:8px 12px;background:var(--paper);border:1px solid var(--border);border-radius:3px;display:flex;align-items:center;gap:9px;font-size:13px}
.toriba-root .direction-options button span{font-size:11px;font-weight:700;color:var(--muted)}
.toriba-root .direction-options button:hover,.toriba-root .direction-options button[aria-pressed=true]{border-color:var(--focus);background:var(--active)}
.toriba-root .orientation-guide .direction-detail{color:var(--ink);font-size:14px;min-height:44px;margin-bottom:8px}
.toriba-root .orientation-guide .orientation-source{font-size:11px;margin-bottom:0}
@media(max-width:720px){
.toriba-root .preview-label{font-size:11px;padding:7px 16px}
.toriba-root .orientation-bar{padding:10px 14px}
.toriba-root .orientation-hint{display:none}
.toriba-root .orientation-toggle{width:100%;justify-content:center}
.toriba-root .mini-compass{left:10px;top:10px;width:72px}
.toriba-root .mini-compass svg{height:56px;width:56px}
.toriba-root .mini-compass span{font-size:8px}
.toriba-root .orientation-guide{padding:22px 18px}
.toriba-root .orientation-guide h2{font-size:20px}
.toriba-root .direction-options{gap:7px}
.toriba-root .direction-options button{padding:8px 10px}
}
@media(prefers-reduced-motion:reduce){.toriba-root #tm-orientation-rose{transition:none}}

@media(max-width:720px){.toriba-root #tm-orientation-rose text{font-size:48px}.toriba-root #tm-orientation-rose .rose-letter-bg{r:37px}}
/* A legenda de interação não deve encobrir L/NE durante a explicação. */
.toriba-root .orientation-open .map-caption,.toriba-root .orientation-open .map-watermark{visibility:hidden}

.toriba-root .filter-count{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:700}
@media(max-width:720px){.toriba-root .filter{font-size:11px;gap:5px;padding:8px 5px;white-space:nowrap}}

@media(max-width:720px){.toriba-root .filter .status-dot{width:9px;height:9px}}

#toriba-masterplan{scroll-margin-top:100px;text-align:left;max-width:1240px;margin:40px auto;padding:0 24px}#toriba-masterplan .masterplan-section{padding:28px 0 0;max-width:none}#toriba-masterplan .study-note{justify-content:flex-start}#toriba-masterplan label{margin:0;font-weight:400}#toriba-masterplan button{text-transform:none;letter-spacing:normal;box-shadow:none}#toriba-masterplan .section-heading h2{font:700 30px/1.2 var(--font-sans);text-transform:none;border:0;padding:0}#toriba-masterplan .coverage-note{margin-bottom:0}
