:root {
  color-scheme: light;
  --ink: #202124;
  --muted: #626a73;
  --paper: #f7f4ee;
  --panel: #ffffff;
  --line: #d9d4cb;
  --green: #157a4f;
  --yellow: #f2b705;
  --red: #c0392b;
  --blue: #1f6feb;
  --shadow: 0 18px 50px rgba(45, 38, 28, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(242, 183, 5, 0.18), transparent 28rem),
    linear-gradient(135deg, #fff9ea 0%, #eef7f2 46%, #f6f7fb 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input {
  font: inherit;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(32, 33, 36, 0.18);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.app-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.hero-panel {
  min-height: min(620px, calc(100vh - 120px));
  display: grid;
  align-content: center;
  gap: 28px;
  border-bottom: 1px solid rgba(32, 33, 36, 0.16);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-mark {
  width: clamp(72px, 11vw, 112px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(21, 122, 79, 0.94), rgba(31, 111, 235, 0.88)),
    var(--green);
  color: #fff;
  font-size: clamp(1.15rem, 3vw, 1.8rem);
  font-weight: 900;
  box-shadow: var(--shadow);
}

.kicker,
.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(3rem, 10vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.lede {
  max-width: 780px;
  color: #34383d;
  font-size: clamp(1.05rem, 2.2vw, 1.38rem);
  line-height: 1.55;
}

.search-card,
.panel,
.verdict-card,
.vote-card,
.trending-panel,
.tip-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.search-card {
  max-width: 820px;
  padding: 16px;
}

label,
legend {
  display: block;
  margin-bottom: 10px;
  color: #333940;
  font-size: 0.9rem;
  font-weight: 850;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input {
  width: 100%;
  min-height: 54px;
  border: 1px solid #b9c0c8;
  border-radius: 8px;
  padding: 0 15px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.14);
}

.input-row button {
  padding: 0 22px;
}

.result-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 18px;
  margin-top: 24px;
}

.is-hidden {
  display: none !important;
}

.verdict-card,
.vote-card,
.panel {
  padding: 22px;
}

.vote-card {
  grid-column: 1 / -1;
}

.trending-panel {
  margin-top: 18px;
  padding: 22px;
}

.trending-list {
  display: grid;
  gap: 10px;
}

.trending-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #e3e0d9;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
}

.trending-item strong {
  display: block;
  overflow-wrap: anywhere;
}

.trending-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.trending-badge {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(21, 122, 79, 0.1);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
}

#verdict-title {
  font-size: clamp(2rem, 5vw, 4.25rem);
}

#verdict-copy,
.panel p,
.guardrails {
  color: var(--muted);
  line-height: 1.55;
}

#verdict-copy:empty {
  display: none;
}

.meter {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e7eb;
}

.meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--yellow), var(--green));
  transition: width 220ms ease;
}

.fine-print {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.quick-stats {
  display: grid;
  gap: 12px;
}

.quick-stats div {
  min-height: 112px;
  display: grid;
  align-content: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.quick-stats span {
  font-size: 2.4rem;
  font-weight: 950;
}

.quick-stats p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.panel {
  margin-top: 18px;
}

.actions-grid .panel {
  margin-top: 0;
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.panel-heading h2 {
  margin-bottom: 0;
}

.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  white-space: nowrap;
  border: 1px solid rgba(21, 122, 79, 0.28);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(21, 122, 79, 0.08);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
}

.source-links,
.vote-row,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.source-links a,
.tag-cloud span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  text-decoration: none;
  font-weight: 850;
}

.source-links a {
  border: 1px solid #ccd2da;
  background: #fff;
  color: var(--ink);
}

.vote-row button {
  flex: 1 1 150px;
  padding: 0 14px;
}

.vote-row button[data-vote="paid"] {
  background: var(--green);
}

.vote-row button[data-vote="delayed"] {
  background: #8f6400;
}

.vote-row button[data-vote="unpaid"] {
  background: var(--red);
}

fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.tag-cloud span {
  background: #fff7d8;
  color: #5f4300;
}

.guardrails {
  margin-bottom: 0;
  padding-left: 20px;
}

.guardrails li + li {
  margin-top: 8px;
}

.is-wala {
  color: var(--red);
}

.is-meron {
  color: var(--green);
}

.is-pending {
  color: #8f6400;
}

.tip-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 18px 22px;
}

.tip-panel h2 {
  margin-bottom: 0;
  font-size: clamp(1.2rem, 3vw, 2rem);
}

.tip-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.tip-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.tip-button-secondary {
  background: var(--blue);
}

.seo-footer {
  max-width: 820px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.seo-footer h2 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.1rem;
}

.seo-footer p {
  margin-bottom: 8px;
}

@media (max-width: 780px) {
  .app-shell {
    width: min(100% - 22px, 1120px);
    padding-top: 18px;
  }

  .hero-panel {
    min-height: auto;
    padding: 36px 0 26px;
  }

  .brand-row,
  .input-row,
  .result-panel,
  .actions-grid {
    grid-template-columns: 1fr;
  }

  .brand-row {
    display: grid;
  }

  .input-row button {
    width: 100%;
  }

  .panel-heading {
    display: grid;
  }

  .trending-item {
    grid-template-columns: 1fr;
  }

  .tip-panel {
    display: grid;
  }

  .tip-actions {
    justify-content: stretch;
  }

  .tip-button {
    flex: 1 1 140px;
  }
}
