:root {
  --ink: #172e29;
  --green: #104e41;
  --paper: #f6f7f2;
  --line: #d6ded4;
  --rust: #a84b29;
  --muted: #52665e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font:
    15px/1.55 "Inter",
    "Segoe UI",
    sans-serif;
}
a {
  color: var(--green);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 9px 14px;
  cursor: pointer;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
button:hover,
.btn:hover {
  border-color: var(--green);
  background: #e8f1e9;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #d87d4b;
  outline-offset: 3px;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.primary:hover {
  color: var(--green);
}
header,
nav,
main,
footer {
  padding-inline: max(5vw, calc((100vw - 1200px) / 2));
}
header {
  height: 74px;
  background: #103e36;
  color: white;
  display: flex;
  align-items: center;
  gap: 23px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  font:
    600 30px Georgia,
    serif;
  letter-spacing: -1px;
}
.brand i {
  font-weight: 400;
}
.seal {
  border: 1px solid #96b5a4;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font: 24px Georgia;
  color: #d0dfc8;
}
.brandline,
.eyebrow,
.kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.9px;
  text-transform: uppercase;
}
.brandline {
  color: #c2d4c8;
  border-left: 1px solid #54766b;
  padding-left: 22px;
}
.headerbtn {
  margin-left: auto;
  background: transparent;
  color: #fff;
  border-color: #58796b;
}
.headerbtn:hover {
  color: var(--green);
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
nav a {
  white-space: nowrap;
  display: block;
  padding: 13px 0 10px;
  text-decoration: none;
  font-weight: 650;
  font-size: 13px;
  border-bottom: 3px solid transparent;
}
nav a.on {
  border-color: var(--rust);
  color: var(--rust);
}
main {
  padding-top: 24px;
  min-height: 75vh;
}
h1,
h2,
h3,
p {
  margin: 0 0 10px;
}
h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.14;
}
h1 {
  font-size: clamp(34px, 4.4vw, 62px);
  letter-spacing: -1.6px;
}
h2 {
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -0.7px;
}
h3 {
  font-size: 22px;
}
p {
  max-width: 76ch;
}
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #123d35;
  isolation: isolate;
  color: #fff;
  min-height: 285px;
  display: flex;
  align-items: center;
  padding: 35px clamp(22px, 4vw, 62px);
  margin: 0 0 26px;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(
      90deg,
      #10372f 3%,
      #123b32ef 27%,
      #12392ead 49%,
      transparent 80%
    ),
    var(--hero);
  background-size:
    cover,
    70% auto;
  background-position:
    center,
    right 47%;
  background-repeat: no-repeat;
}
.hero h1 {
  max-width: 600px;
}
.hero p {
  color: #e1eee6;
  max-width: 420px;
}
.hero .eyebrow {
  color: #b4dbca;
  margin-bottom: 12px;
}
.hero .btn {
  margin-top: 7px;
  background: #edf3df;
  color: #193e32;
  border: 0;
}
.sectionhead,
.topline,
.controls,
.actionbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.sectionhead {
  margin: 24px 0 14px;
}
.sectionhead h2 {
  margin: 0;
}
.kicker,
.eyebrow {
  color: var(--rust);
  margin: 0 0 5px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 16px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.16s;
}
.card:hover {
  box-shadow: 0 5px 16px #10372f1c;
}
.card img {
  width: 100%;
  aspect-ratio: 1.9;
  object-fit: cover;
}
.card .inside {
  padding: 14px 15px;
}
.card h3 {
  margin: 0 0 4px;
  font-size: 21px;
}
.small,
small,
.muted {
  color: var(--muted);
  font-size: 13px;
}
.card .arrow {
  float: right;
  color: var(--rust);
}
.tilegrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.tile {
  display: block;
  color: var(--ink);
  text-decoration: none;
  background: #eef3ec;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px;
}
.tile b {
  display: block;
}
.crumb {
  display: inline-block;
  font-size: 13px;
  margin: 0 0 15px;
  text-decoration: none;
}
.panel,
details,
.row {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 17px;
  margin: 10px 0;
}
.row h3 {
  margin-bottom: 4px;
}
.controls {
  justify-content: flex-start;
  background: #edf2eb;
  border-radius: 10px;
  padding: 12px;
  margin: 14px 0;
}
.controls label,
.field {
  display: grid;
  gap: 4px;
  font-weight: 650;
  font-size: 13px;
}
select,
input,
textarea {
  min-width: 0;
  max-width: 100%;
  background: #fff;
  border: 1px solid #9cac9f;
  border-radius: 7px;
  padding: 8px;
  color: var(--ink);
}
input[type="checkbox"] {
  accent-color: var(--green);
  width: 18px;
  height: 18px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 10px 0;
}
.actions .btn,
.actions button {
  font-size: 13px;
}
.columns {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 18px;
}
.figure {
  width: 100%;
  border-radius: 10px;
  display: block;
  max-height: 365px;
  object-fit: cover;
}
.check {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 8px 0;
}
.badge {
  display: inline-block;
  background: #e8eee6;
  color: #385645;
  border-radius: 20px;
  padding: 3px 9px;
  font-size: 12px;
  margin-bottom: 6px;
}
.note {
  border-left: 3px solid #c08150;
  background: #faf3e9;
  padding: 12px 15px;
  margin: 12px 0;
}
.field {
  margin: 9px 0;
}
textarea {
  width: 100%;
}
dialog {
  border: none;
  border-radius: 14px;
  width: min(560px, 92vw);
  max-height: 85dvh;
  color: var(--ink);
  padding: 22px;
}
dialog::backdrop {
  background: #10251ee0;
}
#toast:not(:empty) {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: white;
  padding: 10px 18px;
  border-radius: 10px;
  z-index: 2000;
}
#map {
  height: 360px;
  background: #dae4dd;
  border-radius: 9px;
  margin: 12px 0;
}
.tablewrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid var(--line);
}
th {
  background: #edf3ee;
}
summary {
  cursor: pointer;
  font-weight: 700;
}
li {
  margin: 5px 0;
}
footer {
  margin-top: 38px;
  border-top: 1px solid var(--line);
  padding-block: 20px;
  font-size: 13px;
  color: var(--muted);
}
footer span {
  padding: 0 8px;
}
#searchResults {
  max-height: 50vh;
  overflow: auto;
}
.time {
  font-variant-numeric: tabular-nums;
}
.rigline {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  padding: 16px;
  background: #e4efe8;
  border-radius: 10px;
}
.splitpic {
  position: relative;
  aspect-ratio: 1.85;
  overflow: hidden;
  border-radius: 12px;
}
.splitpic img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.splitpic img:last-child {
  clip-path: inset(0 50% 0 0);
}
.headline {
  padding: 14px 0;
}
.resultlist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 12px;
}
.resultlist .row {
  margin: 0;
}
.sectionhead .small {
  margin-left: auto;
}
.taglinks {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.taglinks a {
  background: #e5eee4;
  padding: 5px 10px;
  border-radius: 8px;
  text-decoration: none;
}
.wide {
  width: 100%;
}
.previewpic {
  max-height: 200px;
  max-width: 100%;
}
@media (max-width: 680px) {
  header,
  nav,
  main,
  footer {
    padding-inline: 15px;
  }
  header {
    height: 58px;
  }
  .brand {
    font-size: 24px;
  }
  .seal {
    width: 33px;
    height: 33px;
    font-size: 20px;
  }
  .brandline {
    display: none;
  }
  .headerbtn {
    padding: 6px 10px;
  }
  nav {
    gap: 0 17px;
  }
  nav a {
    font-size: 12px;
    padding: 9px 0 7px;
  }
  main {
    padding-top: 14px;
  }
  .hero {
    min-height: 210px;
    padding: 20px 17px;
    border-radius: 11px;
    margin-bottom: 15px;
  }
  .hero h1 {
    font-size: 35px;
    max-width: 260px;
  }
  .hero p {
    font-size: 13px;
    max-width: 235px;
  }
  .hero:before {
    background-size:
      cover,
      auto 100%;
    background-position: center, right;
  }
  .hero .eyebrow {
    letter-spacing: 1.2px;
    font-size: 9px;
  }
  .grid,
  .tilegrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .card .inside {
    padding: 10px;
  }
  .card h3 {
    font-size: 17px;
  }
  .card .small {
    font-size: 12px;
  }
  .sectionhead {
    margin: 18px 0 10px;
  }
  .columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .panel,
  .row,
  details {
    padding: 13px;
  }
  h1 {
    font-size: 32px;
  }
  .controls {
    gap: 8px;
  }
  .controls label {
    max-width: 100%;
  }
  .tile {
    padding: 11px;
  }
  .actions {
    gap: 8px;
  }
  .controls select {
    max-width: 100%;
  }
  .card img {
    aspect-ratio: 1.7;
  }
}

/* Apresentação da app: aberta apenas pelo ícone do cabeçalho. */
.brand > a { color: inherit; text-decoration: none; }
#about-trigger { padding: 0; background: transparent; flex-shrink: 0; }
#about-trigger:hover { background: #ffffff18; }
#about { width: min(440px, calc(100vw - 24px)); max-height: 90vh; max-height: 90dvh; padding: 18px; color: var(--ink); background: var(--paper); border: 0; border-radius: 14px; box-shadow: 0 15px 60px #12251950; overflow: auto; }
#about::backdrop { background: #122319b8; }
.about-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .9rem; }
.about-head button { margin: 0; padding: 0; width: 38px; height: 38px; font-size: 1.4rem; line-height: 1; }
.about-identity { text-align: center; background: radial-gradient(ellipse at top, #41624a, #103e36); color: white; border-radius: 12px; margin: 10px 0; padding: 14px; }
.about-identity img { display: block; width: min(100%, 240px); height: auto; max-height: 22vh; object-fit: contain; margin: 0 auto 7px; }
.about-identity h2 { font-size: 1.85rem; margin: 0; }
.about-identity p { color: #d5e5d5; font-size: .94rem; margin: 4px 0 0; }
.about-features { padding-left: 22px; margin: 14px 0; }
.about-features li { margin: 4px 0; }
.about-features li::marker { color: #547b50; }
.about-credit { border-top: 1px solid var(--line); padding-top: 10px; }
.about-credit small { display: block; color: var(--muted); }
#about .about-close { width: 100%; margin: 14px 0 0; }


#about-trigger { border: 0; border-radius: 8px; overflow: hidden; }
#about-trigger img { display: block; width: 100%; height: 100%; object-fit: cover; }
