:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --text: #17202a;
  --muted: #5f6b7a;
  --line: #d9e0e8;
  --accent: #0f6f8f;
  --accent-2: #a8324a;
  --good: #247a47;
  --warn: #a06200;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "IBM Plex Sans", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; }
.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 clamp(16px, 4vw, 48px);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  font-family: var(--font-heading);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
nav {
  display: flex;
  gap: 18px;
  white-space: nowrap;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.top-search {
  position: relative;
  display: flex;
  flex: 1;
  max-width: 460px;
  min-width: 220px;
}
.hero-search,
.search-page-form {
  position: relative;
  display: flex;
}
.top-search input,
.hero-search input,
.search-page-form input {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 1px solid #cdd6df;
  border-radius: 999px;
  padding: 0 112px 0 18px;
  color: var(--text);
  background: #fff;
  font: inherit;
  box-shadow: 0 1px 2px rgba(23, 32, 42, .04);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.top-search input {
  height: 38px;
  padding-right: 94px;
  font-size: 14px;
}
.top-search input:focus,
.hero-search input:focus,
.search-page-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 111, 143, .12), 0 1px 2px rgba(23, 32, 42, .04);
}
.top-search button,
.hero-search button,
.search-page-form button {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 92px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: var(--accent);
  color: #fff;
  font: 800 13px/1 var(--font-body);
  font-weight: 800;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.top-search button {
  min-width: 78px;
  height: 30px;
  font-size: 12px;
}
.top-search button:hover,
.hero-search button:hover,
.search-page-form button:hover {
  background: #0b5d78;
}
main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.hero {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 16px clamp(24px, 5vw, 56px);
  align-items: start;
  padding: 24px 0 10px;
}
.hero > div {
  min-width: 0;
}
.hero-copy {
  grid-column: 1;
}
.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1, h2, p { margin-top: 0; }
h1 {
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.35vw, 40px);
  line-height: 1.06;
  letter-spacing: 0;
  margin-bottom: 12px;
  max-width: 720px;
  text-wrap: balance;
}
h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: 0;
}
.lead {
  color: var(--muted);
  font-size: clamp(15px, 1.55vw, 17px);
  max-width: 660px;
  margin-bottom: 10px;
}
.update-line {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 2px 0 0;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.hero-search {
  grid-column: 1;
  width: min(680px, 100%);
  margin-top: 0;
}
.visual-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.visual-item {
  min-height: 166px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.visual-item img {
  width: 100%;
  height: 112px;
  object-fit: contain;
  padding: 14px;
  display: block;
  border-bottom: 1px solid var(--line);
}
.visual-item span {
  position: absolute;
  left: 10px;
  top: 10px;
  min-height: 22px;
  margin: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(232, 238, 244, .94);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.visual-item strong {
  display: block;
  overflow: hidden;
  padding: 10px 12px 12px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
}
.stat, .record-card, .table-wrap, .detail {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.stat {
  min-height: 86px;
  padding: 14px 16px;
  min-width: 0;
}
.stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.stat strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.15;
  white-space: nowrap;
}
.section {
  padding: 28px 0;
}
.section.image-highlights {
  padding: 8px 0 22px;
}
.image-highlights .section-head {
  margin-bottom: 10px;
}
.muted-band {
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.section-head a, .source-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.record-list {
  display: grid;
  gap: 12px;
}
.record-list.wide {
  padding-bottom: 42px;
}
.record-card {
  padding: 18px;
}
.record-card.has-image {
  display: block;
}
.record-head {
  min-width: 0;
}
.record-content {
  display: block;
}
.record-card.has-image .record-content {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.record-body {
  min-width: 0;
}
.record-image {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.record-image.card {
  width: 132px;
  aspect-ratio: 1.15;
}
.record-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  display: block;
}
.record-card h2 {
  font-size: 19px;
  margin-bottom: 10px;
}
.record-card h2 a {
  text-decoration: none;
}
.record-card p {
  color: var(--muted);
  margin-bottom: 14px;
}
.record-meta, .record-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.record-footer {
  justify-content: space-between;
}
.pill, .status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8eef4;
  color: #2e3b48;
  font-size: 12px;
  font-weight: 800;
}
.pill.demand {
  background: #f7e3e7;
  color: var(--accent-2);
}
.page-title {
  padding: 42px 0 24px;
}
.page-title h1 {
  font-size: 42px;
}
.search-page-form {
  width: min(760px, 100%);
  margin: 16px 0 12px;
}
.detail {
  margin: 36px 0 48px;
  padding: clamp(20px, 4vw, 42px);
}
.detail-head {
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  padding-bottom: 20px;
}
.detail-image {
  width: min(620px, 100%);
  margin: 22px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.detail-image img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  padding: 18px;
  display: block;
}
.detail-image figcaption {
  border-top: 1px solid var(--line);
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
  gap: 30px;
}
dl {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 12px 18px;
}
dt {
  color: var(--muted);
  font-weight: 700;
}
dd {
  margin: 0;
}
.trend-list {
  padding-left: 18px;
}
.trend-list span {
  color: var(--muted);
  font-size: 13px;
}
.table-wrap {
  overflow-x: auto;
  margin-bottom: 48px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
th {
  color: var(--muted);
  font-size: 13px;
}
.status.ok {
  color: var(--good);
  background: #e4f2e9;
}
.status.bad {
  color: #9b1c31;
  background: #f8dfe5;
}
.empty {
  padding: 28px;
  color: var(--muted);
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: 8px;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 26px clamp(16px, 4vw, 48px);
  color: var(--muted);
  font-size: 13px;
}
.footer p {
  margin-bottom: 10px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}
.footer-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.legal-title {
  max-width: 760px;
}
.legal-title p {
  color: var(--muted);
  font-size: 17px;
}
.legal-page {
  display: grid;
  gap: 14px;
  padding-bottom: 48px;
}
.page-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 26px);
}
.page-card h2 {
  margin-bottom: 8px;
}
.page-card p:last-child {
  margin-bottom: 0;
}
.page-card code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f8fafc;
  font-size: .92em;
}
@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 34px;
    gap: 18px;
  }
  .hero-copy,
  .stats,
  .hero-search {
    grid-column: auto;
    grid-row: auto;
  }
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-self: auto;
  }
}
@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .record-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .visual-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  dl {
    grid-template-columns: 1fr;
  }
  .top-search, .hero-search, .search-page-form {
    width: 100%;
    max-width: none;
    min-width: 0;
  }
}
@media (max-width: 520px) {
  main {
    width: min(100% - 24px, 1180px);
  }
  h1 {
    font-size: 34px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .visual-strip {
    grid-template-columns: 1fr;
  }
  .record-card.has-image .record-content {
    grid-template-columns: 1fr;
  }
  .record-image.card {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  nav {
    width: 100%;
    justify-content: space-between;
  }
}