:root {
  --ink: #111315;
  --muted: #5f666d;
  --line: #dfe3e6;
  --paper: #f7f5ef;
  --white: #ffffff;
  --green: #087f5b;
  --amber: #b35c00;
  --red: #b42318;
  --blue: #1454d4;
  --coal: #171a1c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  color: var(--white);
  background:
    linear-gradient(rgba(7, 11, 14, 0.58), rgba(7, 11, 14, 0.62)),
    url("https://commons.wikimedia.org/wiki/Special:Redirect/file/Congresso_Nacional.jpg")
      center / cover;
}

.topbar {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-weight: 800;
  text-decoration: none;
  font-size: 1rem;
}

.navlinks {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
}

.navlinks a {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
}

.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: auto auto 8vh;
  padding-top: 9vh;
}

.eyebrow {
  margin: 0 0 12px;
  color: #d5b36a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 20px;
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions,
.controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--blue);
}

.button.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
}

.button.small {
  min-height: 40px;
}

.summary-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
  background: var(--white);
}

.summary-item {
  padding: 28px clamp(18px, 4vw, 56px);
  border-right: 1px solid var(--line);
}

.summary-item:last-child {
  border-right: 0;
}

.summary-item strong {
  display: block;
  color: var(--green);
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1;
}

.summary-item.danger strong {
  color: var(--red);
}

.summary-item span {
  color: var(--muted);
  font-weight: 700;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0;
}

.section p {
  color: var(--muted);
  line-height: 1.7;
}

.controls {
  justify-content: space-between;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.segmented {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.segment {
  min-height: 38px;
  border: 0;
  padding: 0 14px;
  background: var(--white);
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.segment.active {
  color: var(--white);
  background: var(--coal);
}

.search {
  flex: 1;
  min-width: min(100%, 260px);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

.search input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  font: inherit;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.person img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--line);
}

.name {
  display: block;
  font-weight: 850;
}

.meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.bar {
  width: 150px;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0f2;
}

.bar > span {
  display: block;
  height: 100%;
  background: var(--green);
}

.badge {
  display: inline-flex;
  min-width: 102px;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.ok {
  color: #07533d;
  background: #dff7ed;
}

.warn {
  color: #743800;
  background: #fff0d8;
}

.bad {
  color: #7a1710;
  background: #ffe3df;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.method-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.method-grid h3 {
  margin-bottom: 8px;
}

.sources {
  padding-top: 0;
}

.sources a {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--blue);
  font-weight: 800;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px max(16px, calc((100vw - 1180px) / 2));
  color: rgba(255, 255, 255, 0.76);
  background: var(--coal);
}

@media (max-width: 780px) {
  .topbar,
  .status-row,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .navlinks {
    width: 100%;
    justify-content: space-between;
  }

  .summary-band,
  .split,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .summary-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  h1 {
    font-size: clamp(3rem, 18vw, 5.2rem);
  }

  .section {
    padding: 64px 0;
  }
}
