:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #686868;
  --line: #dedede;
  --surface: #ffffff;
  --soft: #f5f5f5;
  --slop: #c83f36;
  --clean: #24745a;
  --accent: #245f8f;
}

* {
  box-sizing: border-box;
}

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

a {
  color: var(--ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 64px;
}

.page-narrow {
  width: min(960px, calc(100% - 32px));
}

.tabs,
.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 44px;
  font-weight: 800;
}

.topbar {
  justify-content: flex-start;
}

.tabs a,
.topbar a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.tabs a:hover,
.tabs a:focus,
.topbar a:hover,
.topbar a:focus {
  border-color: var(--ink);
}

.search-stage {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 140px);
  padding: 54px 0;
  text-align: center;
}

.search-copy {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.3rem, 9vw, 5.4rem);
  line-height: 0.95;
  overflow-wrap: anywhere;
}

h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
}

h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

p {
  margin: 0;
}

.notice {
  width: min(680px, 100%);
  margin: 22px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  font-weight: 800;
  text-align: left;
}

.notice.error {
  border-color: color-mix(in srgb, var(--slop) 50%, var(--line));
  color: var(--slop);
}

.notice.success {
  border-color: color-mix(in srgb, var(--clean) 50%, var(--line));
  color: var(--clean);
}

.search-box {
  width: min(680px, 100%);
  margin-top: 26px;
  text-align: left;
}

label,
legend {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

.search-row {
  display: flex;
  gap: 10px;
}

input[type="text"],
select,
textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

button {
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.content-section,
.report-panel {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

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

.faq-list article,
.report-panel,
.count {
  border-radius: 8px;
}

.faq-list article {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.faq-list p,
.empty,
.bar-labels,
.report-list span,
.report-list time {
  color: var(--muted);
}

.site-header {
  padding: 54px 0 28px;
}

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

.count {
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.count strong {
  display: block;
  font-size: 3.4rem;
  line-height: 1;
}

.count span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.count-slop strong {
  color: var(--slop);
}

.count-clean strong {
  color: var(--clean);
}

.ratio {
  margin-top: 24px;
  margin-bottom: 36px;
}

.bar {
  height: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--clean);
}

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

.bar-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-weight: 800;
}

.report-form {
  display: grid;
  gap: 16px;
  max-width: 720px;
}

fieldset {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 700;
}

.columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.report-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.report-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.report-list span,
.report-list time {
  font-size: 0.92rem;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .page,
  .page-narrow {
    width: min(100% - 24px, 1120px);
    padding-top: 14px;
  }

  .tabs {
    justify-content: center;
  }

  .search-stage {
    min-height: calc(100vh - 110px);
    padding: 38px 0;
  }

  .search-row,
  fieldset,
  .bar-labels {
    flex-direction: column;
  }

  button {
    width: 100%;
  }

  .faq-list,
  .count-grid,
  .columns {
    grid-template-columns: 1fr;
  }

  .report-list li {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-list span,
  .report-list time {
    white-space: normal;
  }
}
