:root {
  --bg: #efebe2;
  --panel: #faf7f1;
  --line: #d8d0c2;
  --text: #1f1a15;
  --muted: #5f564d;
  --public: #216e46;
  --partial: #9a6b16;
  --missing: #9d2f2f;
  --soft-public: #e8f4ed;
  --soft-partial: #fbf2e1;
  --soft-missing: #fae8e8;
  --shadow-soft: 0 8px 22px rgba(18, 14, 10, 0.05);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 8% 0%, rgba(33, 110, 70, 0.1), transparent 46%),
    radial-gradient(circle at 100% 100%, rgba(157, 47, 47, 0.08), transparent 44%),
    var(--bg);
  color: var(--text);
  line-height: 1.45;
}

.app {
  width: min(1060px, 100%);
  margin: 0 auto;
  padding: 14px clamp(10px, 3.5vw, 18px) 28px;
  display: grid;
  gap: 14px;
}

.hero,
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.panel-core {
  border-color: #cfbfab;
  background:
    linear-gradient(180deg, rgba(33, 110, 70, 0.03), transparent 32%),
    var(--panel);
}

.panel-soft {
  background:
    linear-gradient(180deg, rgba(157, 47, 47, 0.03), transparent 32%),
    var(--panel);
}

.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-weight: 600;
}

h1 {
  font-size: clamp(1.65rem, 6vw, 2.5rem);
  line-height: 1.06;
  max-width: 20ch;
}

h2 {
  font-size: clamp(1.08rem, 4vw, 1.35rem);
}

h3 {
  font-size: 0.9rem;
}

.hero p {
  margin: 8px 0 0;
  color: var(--muted);
}

.sub {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-link {
  color: #734426;
  font-weight: 600;
  text-decoration-color: rgba(115, 68, 38, 0.35);
  text-underline-offset: 2px;
}

.hero-link:hover {
  text-decoration-color: #734426;
}

.section-head {
  margin-bottom: 12px;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.snapshot-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 11px;
}

.snapshot-k {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.snapshot-v {
  margin: 5px 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: 1.24rem;
  line-height: 1.1;
  color: var(--text);
}

.snapshot-m {
  margin: 6px 0 0;
  font-size: 0.77rem;
  color: var(--muted);
}

.status-strip {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.status-strip button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
}

.status-strip button.active {
  border-color: #544a40;
  background: #2f2822;
  color: #fff;
}

.status-strip span {
  font-weight: 700;
}

.indicator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.indicator-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 7px;
}

.indicator-card[data-status="publico"] {
  background: linear-gradient(180deg, var(--soft-public), #fff 55%);
}

.indicator-card[data-status="parcial"] {
  background: linear-gradient(180deg, var(--soft-partial), #fff 55%);
}

.indicator-card[data-status="ausente"] {
  background: linear-gradient(180deg, var(--soft-missing), #fff 55%);
}

.indicator-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.indicator-name {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.2;
}

.badge {
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 7px;
  height: fit-content;
  text-transform: uppercase;
}

.badge-publico {
  background: rgba(33, 110, 70, 0.15);
  color: var(--public);
}

.badge-parcial {
  background: rgba(154, 107, 22, 0.17);
  color: var(--partial);
}

.badge-ausente {
  background: rgba(157, 47, 47, 0.15);
  color: var(--missing);
}

.indicator-meta {
  margin: 0;
  font-size: 0.74rem;
  color: var(--muted);
}

.indicator-note {
  margin: 0;
  font-size: 0.78rem;
  color: #463f36;
}

.source-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.source-list a {
  display: inline-block;
  border: 1px solid #d9cfbe;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.7rem;
  text-decoration: none;
  color: #3f352b;
  background: #fff;
}

.source-list a:hover {
  border-color: #9f907d;
}

.thesis-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.thesis-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 12px;
}

.thesis-title {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.thesis-value {
  margin: 5px 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: 1.2rem;
  line-height: 1.15;
}

.thesis-text {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: #433a31;
}

.action-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.action-list li {
  font-size: 0.85rem;
  color: #3f352c;
}

.note p {
  margin: 0;
  font-size: 0.81rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .snapshot-grid,
  .thesis-cards {
    grid-template-columns: 1fr 1fr;
  }

  .indicator-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero,
  .panel {
    padding: 13px;
  }

  .snapshot-grid,
  .thesis-cards {
    grid-template-columns: 1fr;
  }

  .status-strip button {
    flex: 1 1 calc(50% - 7px);
  }
}
