:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18201d;
  background: #f5f7f6;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; display: flex; flex-direction: column; }
.site-header { border-bottom: 5px solid #f8b200; background: #000; }
.brand { display: block; width: min(960px, 100%); margin: 0 auto; }
.brand:focus-visible { outline: 3px solid #f8b200; outline-offset: -5px; }
.brand img { display: block; width: 100%; height: auto; }
.search-content, .results-content, footer { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
main { flex: 1; }
.search-section { background: #fff; border-bottom: 1px solid #dce2df; padding: 64px 0 56px; }
.search-content { max-width: 820px; }
.eyebrow { margin: 0 0 10px; color: #136f63; font-size: 13px; font-weight: 700; text-transform: uppercase; }
h1 { margin: 0; max-width: 720px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 6vw, 56px); line-height: 1.05; font-weight: 500; }
.dataset-context { margin: 18px 0 0; padding-left: 12px; border-left: 3px solid #f8b200; color: #58645f; font-size: 15px; }
.dataset-context strong { color: #27322e; }
.intro { margin: 12px 0 34px; color: #58645f; font-size: 18px; }
label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 650; }
.search-control { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 12px; padding: 7px 7px 7px 16px; border: 1px solid #87938e; background: #fff; box-shadow: 0 5px 18px rgba(24, 32, 29, .08); }
.search-control:focus-within { outline: 3px solid rgba(19, 111, 99, .2); border-color: #136f63; }
.search-control svg { width: 22px; fill: none; stroke: #58645f; stroke-width: 1.8; }
input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 12px 0; font: inherit; font-size: 16px; }
button { min-height: 44px; padding: 0 22px; border: 0; background: #136f63; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
button:hover { background: #0d594f; }
button:disabled { background: #87938e; cursor: wait; }
.results-section { padding: 38px 0 64px; }
.status { color: #58645f; font-size: 15px; }
.results { margin: 0; padding: 0; list-style: none; border-top: 1px solid #cbd3cf; }
.result { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 24px 0; border-bottom: 1px solid #cbd3cf; }
.result h2 { margin: 0 0 10px; font-size: 19px; line-height: 1.35; }
.metadata { display: flex; flex-wrap: wrap; gap: 8px 18px; color: #58645f; font-size: 14px; }
.metadata strong { color: #27322e; }
.estrato { align-self: start; min-width: 48px; padding: 8px 10px; background: #e5f1ee; color: #0d594f; font-size: 15px; font-weight: 800; text-align: center; }
footer { display: flex; justify-content: space-between; padding: 22px 0; border-top: 1px solid #dce2df; color: #65716c; font-size: 13px; }
footer a { color: #136f63; }

@media (max-width: 640px) {
  .search-content, .results-content, footer { width: min(100% - 28px, 1080px); }
  .search-section { padding: 42px 0 38px; }
  .search-control { grid-template-columns: 22px 1fr; }
  button { grid-column: 1 / -1; width: 100%; }
  .result { grid-template-columns: 1fr; gap: 14px; }
  .estrato { justify-self: start; }
}
