:root {
  --primary: #1e40af;
  --ink: #1e3a8a;
  --bg: #f8fafc;
  --card: #fff;
  --muted: #475569;
  --line: #dbeafe;
  --soft: #e9eef6;
  --accent: #d97706;
  font:
    16px/1.6 Inter,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
nav,
main,
footer {
  max-width: 1180px;
  margin: auto;
  padding-inline: clamp(16px, 4vw, 52px);
}
nav,
.heading,
.sectionhead,
.inline,
.selection,
nav > div,
.chips,
.pager {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
nav,
.heading,
.sectionhead {
  justify-content: space-between;
}
nav {
  min-height: 68px;
}
.brand,
.detail {
  font-weight: 700;
}
.mark {
  display: inline-grid;
  place-items: center;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 27px;
  margin-right: 8px;
}
nav a,
.detail,
.pager a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
a {
  color: var(--primary);
}
a:hover {
  text-decoration: underline;
}
main {
  padding-block: 32px;
}
h1,
h2,
h3,
p {
  margin: 0 0 0.5rem;
}
h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}
h2 {
  font-size: 22px;
}
h3 {
  font-size: 19px;
}
p,
small,
dt,
footer {
  color: var(--muted);
}
small {
  font-size: 0.85rem;
  font-weight: 400;
}
.eyebrow {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
}
.heading,
.sectionhead {
  margin-block: 10px 20px;
}
.sectionhead {
  margin-top: 32px;
}
section,
article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(16px, 2.5vw, 28px);
  margin-bottom: 16px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.filters,
.cards {
  display: grid;
  gap: 14px;
}
.filters {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
}
.cards {
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
}
article {
  border-top: 4px solid var(--primary);
  margin: 0;
}
.metric {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  margin-top: 20px;
}
.selection {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 20px;
  align-items: end;
}
.inline {
  align-items: end;
}
fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
legend,
label {
  font-weight: 600;
}
.chips label {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 8px;
}
.chips input {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}
.chips {
  gap: 8px;
}
.stack {
  display: grid;
  gap: 14px;
  max-width: 640px;
}
select,
input:not([type="checkbox"]) {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  border: 1px solid var(--muted);
  border-radius: 7px;
  background: var(--card);
  padding: 8px;
  color: var(--ink);
  font: inherit;
}
button,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 600;
  border: 1px solid var(--primary);
  border-radius: 7px;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  cursor: pointer;
  text-decoration: none;
}
button:disabled {
  background: var(--soft);
  border-color: var(--soft);
  color: var(--muted);
  cursor: default;
}
.secondary {
  background: var(--card);
  color: var(--primary);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}
dl {
  margin: 16px 0 0;
}
.note {
  margin: 12px 0 24px;
  font-size: 0.9rem;
}
.notice {
  border-left: 3px solid var(--accent);
  background: var(--bg);
  padding: 8px 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
th,
td {
  text-align: left;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
}
td a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}
footer {
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  font-size: 0.88rem;
}
.pager {
  margin-top: 12px;
}
li {
  margin-block: 8px;
}
@media (max-width: 720px) {
  main {
    padding-block: 18px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .heading,
  .sectionhead {
    align-items: flex-start;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  nav {
    gap: 4px;
  }
  .brand {
    font-size: 1rem;
  }
  .chips {
    gap: 8px;
  }
  .sectionhead,
  .selection {
    align-items: stretch;
  }
  .inline {
    width: 100%;
  }
  .inline label {
    flex: 1;
    min-width: 0;
  }
  table {
    font-size: 0.9rem;
  }
  .stack dl > div {
    display: block;
  }
}
@media (max-width: 430px) {
  .filters {
    grid-template-columns: 1fr;
  }
  .selection > button {
    width: 100%;
  }
  nav > div {
    gap: 8px;
  }
  .brand .mark {
    width: 27px;
    height: 27px;
  }
  .selection {
    display: grid;
  }
  dl > div {
    flex-wrap: wrap;
  }
  main {
    padding-inline: 12px;
  }
}

summary { cursor: pointer; padding-block: 10px; color: var(--primary); min-height: 44px; }
.cards + section { margin-top: 20px; }
