@font-face {
  font-family: "Rawline";
  src: url("../fonts/rawline/rawline-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rawline";
  src: url("../fonts/rawline/rawline-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rawline";
  src: url("../fonts/rawline/rawline-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #eeebe4;
  --paper-2: #f7f5ef;
  --white: #ffffff;
  --ink: #1f2a2e;
  --muted: #68757a;
  --line: #d4d0c7;
  --line-strong: #b9b4a9;
  --green: #15803d;
  --green-dark: #0b5d3b;
  --green-soft: #e8f3ec;
  --amber: #b45309;
  --amber-soft: #fbf0e3;
  --blue: #1351b4;
  --blue-soft: #e9f0fb;
  --radius: 8px;
  --max: 1280px;
  --shadow: 0 18px 45px -30px rgba(20, 40, 30, 0.45);
}

[data-theme="dark"] {
  --paper: #111916;
  --paper-2: #16211d;
  --white: #1b2723;
  --ink: #edf5ef;
  --muted: #a7b5ae;
  --line: #2c3a34;
  --line-strong: #44564e;
  --green: #4ade80;
  --green-dark: #86efac;
  --green-soft: #1d3328;
  --amber: #f59e0b;
  --amber-soft: #33270f;
  --blue: #7aa7ff;
  --blue-soft: #1a2740;
  --shadow: 0 18px 45px -30px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Rawline", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.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;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 3000;
  background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: 6px;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------------------------------------------------------------- */
/* Cabeçalho                                                        */
/* ---------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 1200;
  background: color-mix(in srgb, var(--white) 94%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 22px;
  min-height: 66px; padding: 8px 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 220px; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand strong { display: block; font-size: 15px; line-height: 1.1; }
.brand small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.site-nav { display: flex; gap: 18px; align-items: center; font-size: 13px; font-weight: 600; }
.site-nav a { color: var(--muted); padding: 8px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a.on { color: var(--green); border-color: var(--green); }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  border: 1px solid var(--line-strong); background: var(--white); color: var(--muted);
  border-radius: 6px; padding: 7px 10px; font-size: 12px; font-weight: 600;
}
.icon-btn:hover { border-color: var(--green); color: var(--green); }

/* ---------------------------------------------------------------- */
/* Componentes                                                      */
/* ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--line-strong); background: var(--white); color: var(--ink);
  border-radius: 5px; padding: 9px 14px; font-size: 13px; font-weight: 600;
}
.btn:hover { text-decoration: none; border-color: var(--green); color: var(--green); }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.blue:hover { opacity: .9; color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--blue); padding-left: 4px; padding-right: 4px; }
.btn.small { padding: 6px 10px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); margin: 0 0 8px;
}
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tag {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; border: 1px solid; border-radius: 3px; padding: 3px 6px;
}
.tag.com { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 35%, transparent); background: var(--amber-soft); }
.tag.ins { color: var(--green-dark); border-color: color-mix(in srgb, var(--green) 35%, transparent); background: var(--green-soft); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; display: inline-block; }
.dot.com { background: var(--amber); }
.dot.ins { background: var(--green); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------------------------------------------------------------- */
/* Home                                                             */
/* ---------------------------------------------------------------- */
.hero { padding: 46px 0 30px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 36px; align-items: end; }
.hero h1 { margin: 0 0 12px; font-size: clamp(32px, 4.5vw, 54px); line-height: 1.02; letter-spacing: -.035em; max-width: 760px; }
.hero p { margin: 0 0 20px; max-width: 720px; color: var(--muted); font-size: 16px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.hero-stat { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-stat b { display: block; font-size: 24px; line-height: 1.1; letter-spacing: -.02em; color: var(--green-dark); }
.hero-stat span { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.home-layout { display: grid; grid-template-columns: 380px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.home-list { background: var(--white); border-right: 1px solid var(--line); padding: 20px 22px; }
.home-map { background: var(--paper-2); padding: 16px 18px 18px; min-width: 0; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.panel-head span { font-size: 11px; color: var(--muted); }
.search-form { display: flex; gap: 6px; margin-bottom: 12px; }
.search-form input {
  flex: 1; min-width: 0; border: 1px solid var(--line-strong); background: var(--paper-2);
  border-radius: 6px; padding: 9px 11px; font-size: 13px;
}
.search-form input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.list { display: flex; flex-direction: column; }
.list-item {
  display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; gap: 10px; align-items: start;
  padding: 11px 0; border-top: 1px solid var(--line); color: var(--ink);
}
.list-item:first-child { border-top: 0; }
.list-item:hover { text-decoration: none; }
.list-item:hover strong { color: var(--green); }
.list-item strong { display: block; font-size: 13px; line-height: 1.35; }
.list-item small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.list-item .cap { font-size: 12px; font-weight: 700; color: var(--green-dark); text-align: right; white-space: nowrap; }
.list-item .cap span { display: block; font-size: 9px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.map-card { display: flex; flex-direction: column; }
.map-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.map-head h2, .map-head h3 { margin: 0; font-size: 15px; }
.map-head span { font-size: 11px; color: var(--muted); }
.map-box {
  position: relative; min-height: 420px; height: clamp(420px, 52vh, 620px);
  background: var(--paper-2); border: 1px solid var(--line-strong); border-radius: var(--radius);
  overflow: hidden;
}
.map-slot {
  position: relative; height: clamp(420px, 52vh, 620px); min-height: 420px;
  background: var(--paper-2); border: 1px solid var(--line-strong); border-radius: var(--radius);
  overflow: hidden;
}
.map-slot[hidden] { display: none; }
.map-slot .leaflet-container { width: 100%; height: 100%; font-family: inherit; }
#map-holder {
  position: fixed; left: -10000px; top: 0; width: 1px; height: 1px; overflow: hidden;
}
#map-persistent {
  width: 100%; height: 100%; min-height: 0; border: 0; border-radius: 0;
}
#map-persistent.hidden { display: none; }
.map-box .leaflet-container { width: 100%; height: 100%; font-family: inherit; }
.map-loading {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: var(--paper-2); color: var(--muted); font-size: 12px; z-index: 500;
}
.map-note { margin: 9px 0 0; font-size: 11px; color: var(--muted); line-height: 1.5; }
.map-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 9px; font-size: 11px; color: var(--muted); }
.map-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.themes { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--white); }
.theme {
  display: block; padding: 20px 22px; border-right: 1px solid var(--line);
  color: var(--ink); border-top: 1px solid var(--line);
}
.theme:last-child { border-right: 0; }
.theme:hover { text-decoration: none; background: var(--paper-2); }
.theme .k { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.theme h3 { margin: 6px 0 4px; font-size: 15px; }
.theme p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ---------------------------------------------------------------- */
/* Cabeçalho de página                                              */
/* ---------------------------------------------------------------- */
.page-head { padding: 36px 0 18px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0 0 6px; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.08; letter-spacing: -.03em; }
.page-head p { margin: 0; max-width: 820px; color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------- */
/* Catálogo                                                         */
/* ---------------------------------------------------------------- */
.catalog-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 410px; min-height: 640px; }
.filters { background: var(--white); border-right: 1px solid var(--line); padding: 18px; }
.filters h2 { margin: 0 0 4px; font-size: 15px; }
.filters .filter-count { font-size: 11px; color: var(--muted); margin: 0 0 14px; }
.filter-group { margin-bottom: 12px; }
.filter-group label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.filter-group select {
  width: 100%; border: 1px solid var(--line); background: var(--paper-2);
  border-radius: 5px; padding: 7px 8px; font-size: 12px;
}
.filter-group select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.filter-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.filter-actions .btn { width: 100%; }
.chips { display: flex; gap: 5px; flex-wrap: wrap; margin: 10px 0 0; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line);
  background: var(--paper-2); border-radius: 999px; padding: 3px 8px; font-size: 10px; color: var(--muted);
}
.chip.on { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 30%, transparent); color: var(--green-dark); }
.chip button { border: 0; background: none; color: inherit; padding: 0; font-weight: 700; line-height: 1; }
.results { background: var(--white); padding: 18px 20px; min-width: 0; }
.catalog-search { display: flex; gap: 6px; margin-bottom: 10px; }
.catalog-search input {
  flex: 1; min-width: 0; border: 1px solid var(--line-strong); background: var(--paper-2);
  border-radius: 6px; padding: 8px 10px; font-size: 13px;
}
.catalog-search input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.results-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mobile-filter-btn { display: none; }
.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.results-head h2 { margin: 0; font-size: 15px; }
.results-head span { font-size: 11px; color: var(--muted); }
.sort-row { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.sort-row select { border: 1px solid var(--line); background: var(--paper-2); border-radius: 4px; padding: 4px 6px; font-size: 11px; }
.result-row {
  display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; gap: 10px; align-items: start;
  padding: 11px 8px; border-top: 1px solid var(--line); color: var(--ink);
}
.result-row:first-of-type { border-top: 0; }
.result-row:hover { background: var(--paper-2); text-decoration: none; }
.result-row.sel { background: var(--green-soft); box-shadow: inset 3px 0 0 var(--green); padding-left: 5px; }
.result-row strong { display: block; font-size: 13px; line-height: 1.35; }
.result-row small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.result-row .cap { font-size: 12px; font-weight: 700; color: var(--green-dark); text-align: right; white-space: nowrap; }
.result-row .cap span { display: block; font-size: 9px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.empty { padding: 30px 0; color: var(--muted); font-size: 13px; }
.load-more-wrap { padding: 14px 0; text-align: center; border-top: 1px solid var(--line); }
.catalog-map { background: var(--paper-2); border-left: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; min-width: 0; }
.catalog-map .map-box { height: 480px; min-height: 380px; }
.catalog-map .map-slot { height: 480px; min-height: 380px; }
.map-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 11px; color: var(--muted); }
.map-tools label { display: inline-flex; align-items: center; gap: 4px; }
.map-tools input { accent-color: var(--green); }
.mobile-map-btn { display: none; }

/* ---------------------------------------------------------------- */
/* Ficha / gaveta                                                   */
/* ---------------------------------------------------------------- */
.drawer { position: fixed; inset: 0; z-index: 2000; }
.drawer[hidden] { display: none; }
.drawer-overlay { position: absolute; inset: 0; background: rgba(10, 20, 16, .45); }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%);
  background: var(--white); border-left: 1px solid var(--line-strong);
  box-shadow: -20px 0 50px -30px rgba(0,0,0,.5); overflow-y: auto; padding: 22px 22px 40px;
}
.drawer-close {
  position: sticky; top: 0; margin-left: auto; display: block;
  border: 1px solid var(--line); background: var(--white); color: var(--muted);
  border-radius: 50%; width: 32px; height: 32px; font-size: 18px; line-height: 1;
}
.drawer-close:hover { color: var(--ink); border-color: var(--ink); }
.drawer-title { margin: 4px 0 4px; font-size: 24px; line-height: 1.12; letter-spacing: -.025em; }
.drawer-sub { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.drawer-tag { margin-bottom: 7px; }
.drawer-actions { display: flex; gap: 7px; flex-wrap: wrap; margin: 14px 0 18px; }
.drawer-section { margin-top: 18px; }
.drawer-section h3 { margin: 0 0 6px; font-size: 13px; }
.drawer-section p { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.fact-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.fact-table th { text-align: left; font-weight: 600; color: var(--muted); padding: 7px 0; width: 44%; vertical-align: top; border-top: 1px solid var(--line); }
.fact-table td { padding: 7px 0; vertical-align: top; border-top: 1px solid var(--line); }
.fact-table tr:first-child th, .fact-table tr:first-child td { border-top: 0; }
.related { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.related a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink); }
.related a span { color: var(--muted); font-size: 11px; text-align: right; }
.source-note { font-size: 11px; color: var(--muted); line-height: 1.5; margin-top: 12px; }
body.drawer-open { overflow: hidden; }

/* ---------------------------------------------------------------- */
/* Editorial                                                        */
/* ---------------------------------------------------------------- */
.editorial { background: var(--white); padding: 30px 0 46px; }
.editorial .wrap { max-width: 1040px; }
.editorial h1 { margin: 0 0 8px; font-size: clamp(30px, 4vw, 46px); line-height: 1.04; letter-spacing: -.035em; }
.editorial .lead { margin: 0 0 20px; font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 860px; }
.editorial h2 { margin: 32px 0 8px; font-size: 22px; letter-spacing: -.02em; }
.editorial h3 { margin: 22px 0 6px; font-size: 16px; }
.editorial p { margin: 0 0 14px; max-width: 860px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.editorial ul { max-width: 860px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 20px 0; }
.fact { padding: 14px 16px 14px 0; border-right: 1px solid var(--line); margin-right: 16px; }
.fact:last-child { border-right: 0; margin-right: 0; }
.fact b { display: block; font-size: 26px; letter-spacing: -.02em; color: var(--green-dark); line-height: 1.1; }
.fact span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.anatomy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 16px 0 6px; }
.anatomy-grid figure { margin: 0; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.anatomy-grid svg { display: block; width: 100%; height: auto; }
.anatomy-grid figcaption { font-size: 11px; color: var(--muted); margin-top: 6px; }
.anatomy-grid .legend-list { grid-column: 1 / -1; }
.legend-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.legend-list li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.legend-list .n {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--line-strong); font-size: 10px; font-weight: 700; color: var(--green-dark);
}
.legend-list b { color: var(--ink); }
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 10px; }
.type { border-top: 2px solid var(--green); padding-top: 10px; }
.type.com { border-color: var(--amber); }
.type b { display: block; font-size: 18px; margin-bottom: 2px; }
.type span { font-size: 12px; color: var(--muted); }
.type p { margin: 8px 0 0; font-size: 13px; }
.callout {
  border-left: 3px solid var(--green); background: var(--green-soft);
  padding: 12px 14px; margin: 18px 0; font-size: 13px; color: var(--ink);
}
[data-theme="dark"] .callout { background: var(--green-soft); }

/* ---------------------------------------------------------------- */
/* Montagem                                                         */
/* ---------------------------------------------------------------- */
.montagem-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.step-num {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--green); color: var(--green); font-size: 11px; font-weight: 700;
}
.step b { display: block; font-size: 14px; margin-bottom: 3px; }
.step p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.step em { display: block; margin-top: 5px; font-style: normal; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ficha-box { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: sticky; top: 86px; }
.ficha-box h2 { margin: 0 0 4px; font-size: 14px; }
.ficha-box .big { font-size: 30px; font-weight: 700; color: var(--green-dark); letter-spacing: -.03em; line-height: 1.1; }
.ficha-box .big span { display: block; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 3px; }
.ficha-box dl { display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; margin: 14px 0; font-size: 12px; }
.ficha-box dt { color: var(--muted); }
.ficha-box dd { margin: 0; text-align: right; font-weight: 600; }
.ficha-box .btn { width: 100%; margin-top: 6px; }
details.mat-group { border: 1px solid var(--line); border-radius: var(--radius); margin-top: 10px; background: var(--white); }
details.mat-group summary { cursor: pointer; padding: 12px 14px; font-weight: 600; font-size: 13px; list-style: none; }
details.mat-group summary::-webkit-details-marker { display: none; }
details.mat-group summary::after { content: "+"; float: right; color: var(--muted); }
details.mat-group[open] summary::after { content: "−"; }
.table-wrap { overflow-x: auto; }
.mat-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 560px; }
.mat-table th { text-align: left; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 7px 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mat-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.mat-table td:nth-child(3), .mat-table td:nth-child(4) { white-space: nowrap; text-align: right; }
.mat-table th:nth-child(3), .mat-table th:nth-child(4) { text-align: right; }
.mat-note { font-size: 11px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }

/* ---------------------------------------------------------------- */
/* Perfis                                                           */
/* ---------------------------------------------------------------- */
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 28px; align-items: start; }
.profile-head { padding: 32px 0 18px; border-bottom: 1px solid var(--line); }
.profile-head h1 { margin: 0 0 4px; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.03em; line-height: 1.08; }
.profile-head p { margin: 0; color: var(--muted); font-size: 14px; }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.profile-stat { padding: 12px 14px 12px 0; border-right: 1px solid var(--line); margin-right: 14px; }
.profile-stat:last-child { border-right: 0; margin-right: 0; }
.profile-stat b { display: block; font-size: 22px; color: var(--green-dark); line-height: 1.1; }
.profile-stat span { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.profile-map .map-box { height: 420px; min-height: 320px; }
.profile-map .map-slot { height: 420px; min-height: 320px; }

/* ---------------------------------------------------------------- */
/* Rodapé                                                           */
/* ---------------------------------------------------------------- */
.site-foot { border-top: 1px solid var(--line); background: var(--white); padding: 26px 0 34px; margin-top: 0; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.site-foot strong { color: var(--ink); }
.site-foot nav { display: flex; gap: 14px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }

/* ---------------------------------------------------------------- */
/* Aviso                                                            */
/* ---------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 6px;
  font-size: 12px; opacity: 0; pointer-events: none; transition: .2s ease; z-index: 3000;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: #9f1239; }

/* ---------------------------------------------------------------- */
/* Leaflet                                                          */
/* ---------------------------------------------------------------- */
.leaflet-control-layers { font-family: "Rawline", system-ui, sans-serif; font-size: 11px; border-radius: 5px; }
.leaflet-control-layers-toggle {
  background-image: none !important;
  width: auto !important;
  height: auto !important;
  padding: 5px 8px !important;
  font-size: 11px;
  font-weight: 600;
  color: #1f2a2e !important;
}
.leaflet-control-layers-toggle::after { content: "Camadas"; }
.leaflet-control-attribution { font-size: 9px !important; }
.leaflet-tile { filter: grayscale(1) contrast(0.92) brightness(1.05); }
[data-theme="dark"] .leaflet-tile {
  filter: grayscale(0.35) invert(0.92) hue-rotate(180deg) brightness(0.72) contrast(0.9);
}
.leaflet-bar a { color: #1f2a2e; background: #ffffff; }

/* ---------------------------------------------------------------- */
/* Diagramas SVG                                                    */
/* ---------------------------------------------------------------- */
.diagram-svg { display: block; width: 100%; height: auto; }
.diagram-svg text { font-family: "Rawline", system-ui, sans-serif; }
.diagram-svg .structure { fill: var(--green-soft); stroke: var(--green); stroke-width: 1.4; }
.diagram-svg .structure-line { fill: none; stroke: var(--green); stroke-width: 1.2; }
.diagram-svg .column { fill: var(--white); stroke: var(--green-dark); stroke-width: 1.2; }
.diagram-svg .irrigation { fill: none; stroke: var(--blue); stroke-width: 1.5; }
.diagram-svg .irrigation-main { fill: none; stroke: var(--blue); stroke-width: 3; }
.diagram-svg .irrigation-dot { fill: var(--blue); }
.diagram-svg .anchor { fill: none; stroke: var(--amber); stroke-width: 1; }
.diagram-svg .anchor-dot { fill: var(--amber); }
.diagram-svg .label { fill: var(--muted); font-size: 10px; }
.diagram-svg .label-strong { fill: var(--green-dark); font-size: 10px; }
.diagram-svg .label-water { fill: var(--blue); font-size: 10px; }
.diagram-svg .label-anchor { fill: var(--amber); font-size: 10px; }
.diagram-svg .ground { stroke: var(--line-strong); stroke-width: 1.5; }
.diagram-svg .concrete { fill: var(--line); }
.diagram-svg .roof { fill: var(--green); fill-opacity: .22; stroke: var(--green); stroke-width: 1.4; }
.diagram-svg .skirt { stroke: var(--green); stroke-width: 1.2; }
.diagram-svg .water { fill: var(--blue-soft); stroke: var(--blue); stroke-width: 1.2; }
.diagram-svg .pump { fill: var(--amber-soft); stroke: var(--amber); stroke-width: 1.2; }
.diagram-svg .number { fill: var(--white); stroke: var(--line-strong); stroke-width: 1; }
.diagram-svg .number-text { fill: var(--green-dark); font-size: 9px; font-weight: 700; }
.diagram-svg .barracao { fill: var(--paper-2); stroke: var(--line-strong); stroke-width: 1.2; }

/* ---------------------------------------------------------------- */
/* Responsivo                                                       */
/* ---------------------------------------------------------------- */
@media (max-width: 1080px) {
  .catalog-layout { grid-template-columns: 230px minmax(0, 1fr) 360px; }
  .home-layout { grid-template-columns: 340px minmax(0, 1fr); }
  .profile-grid { grid-template-columns: minmax(0, 1fr) 360px; }
}

@media (max-width: 920px) {
  .site-nav { display: none; }
  .site-head .wrap { flex-wrap: wrap; }
  .brand { min-width: 0; }
  .hero { padding: 30px 0 22px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: clamp(30px, 8vw, 42px); }
  .home-layout, .catalog-layout, .profile-grid, .montagem-layout, .anatomy-grid { grid-template-columns: 1fr; }
  .home-list { border-right: 0; border-bottom: 1px solid var(--line); }
  .home-map, .catalog-map { border-left: 0; }
  .filters { border-right: 0; border-bottom: 1px solid var(--line); }
  .filters[hidden] { display: none; }
  .mobile-filter-btn { display: inline-flex; }
  .catalog-map .map-box { height: 380px; min-height: 300px; }
  .catalog-map .map-slot { height: 380px; min-height: 300px; }
  .mobile-map-btn { display: inline-flex; margin: 10px 0 0; }
  .mobile-map-btn[hidden] { display: none !important; }
  .site-head { position: static; }
  .desktop-map { display: none; }
  .themes { grid-template-columns: 1fr; }
  .theme { border-right: 0; }
  .fact-grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 0; margin-right: 0; }
  .fact:nth-child(3), .fact:nth-child(4) { border-top: 1px solid var(--line); }
  .type-grid { grid-template-columns: 1fr; }
  .ficha-box { position: static; }
  .profile-stats { grid-template-columns: 1fr 1fr; }
  .profile-stat:nth-child(2) { border-right: 0; margin-right: 0; }
  .profile-stat:nth-child(3), .profile-stat:nth-child(4) { border-top: 1px solid var(--line); }
  .legend-list { grid-template-columns: 1fr; }
  .drawer-panel { width: 100%; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 24px); }
  .site-head .wrap { min-height: 58px; }
  .brand strong { font-size: 13px; }
  .brand small { font-size: 10px; }
  .brand img { width: 28px; height: 28px; }
  .hero-stat b { font-size: 20px; }
  .home-list, .home-map, .results, .filters, .catalog-map, .editorial .wrap { padding-left: 14px; padding-right: 14px; }
  .result-row { grid-template-columns: 9px minmax(0, 1fr); }
  .result-row .cap { grid-column: 2; text-align: left; margin-top: 2px; }
  .list-item { grid-template-columns: 9px minmax(0, 1fr) auto; }
  .drawer-panel { padding: 16px 16px 30px; }
  .drawer-title { font-size: 21px; }
  .fact-grid { grid-template-columns: 1fr; }
  .fact { border-right: 0; margin-right: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
  .profile-stats { grid-template-columns: 1fr; }
  .profile-stat { border-right: 0; margin-right: 0; }
  .profile-stat + .profile-stat { border-top: 1px solid var(--line); }
  .editorial h1 { font-size: 30px; }
  .map-box { min-height: 320px; height: 360px; }
  .map-slot { min-height: 320px; height: 360px; }
  .catalog-map .map-box { height: 340px; }
  .catalog-map .map-slot { height: 340px; }
  .ficha-box .big { font-size: 26px; }
  .mat-table { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-head, .site-foot, .skip, .drawer, .toast, .map-box, .map-slot, .map-note, .mobile-map-btn, .btn { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .editorial { padding: 0; }
  .editorial .wrap { max-width: none; width: 100%; }
  details.mat-group { break-inside: avoid; }
  details.mat-group summary::after { content: ""; }
  .mat-table { min-width: 0; }
  .mat-table th, .mat-table td { font-size: 9pt; }
}
