:root {
  --bg: #f7f8f8;
  --surface: #ffffff;
  --surface-soft: #f1f5f4;
  --surface-tint: #eaf5f2;
  --text: #101817;
  --muted: #5d6d69;
  --muted-strong: #3f514d;
  --border: #dce6e3;
  --border-strong: #c2d2ce;
  --accent: #0b675d;
  --accent-strong: #06483f;
  --warning: #a33a31;
  --warning-soft: #fff4f2;
  --radius: 8px;
  --radius-lg: 12px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

[id] {
  scroll-margin-top: 86px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0;
}

a {
  color: inherit;
}

button,
.button {
  min-height: 44px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

button:hover,
.button:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

button:active,
.button:active {
  transform: translateY(1px);
}

button.secondary,
.button.secondary {
  background: #fff;
  color: var(--accent-strong);
  border-color: var(--border-strong);
}

button.secondary:hover,
.button.secondary:hover {
  background: var(--surface-tint);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(11, 103, 93, 0.24);
  outline-offset: 3px;
}

.container {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 230, 227, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1220px, calc(100% - 36px));
  min-height: 58px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}

.brand {
  color: var(--text);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  scrollbar-width: none;
  min-width: 0;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  border-radius: 999px;
  padding: 7px 9px;
  text-decoration: none;
}

.nav a:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.hero,
.page-intro {
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.hero {
  padding: 46px 0 36px;
}

.page-intro {
  padding: 34px 0 30px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: start;
  gap: 26px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: 44px;
  font-weight: 760;
  line-height: 1.12;
}

h2 {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 740;
  line-height: 1.28;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
}

.muted-text {
  color: var(--muted);
}

.section {
  padding: 48px 0;
}

.muted {
  background: var(--surface-soft);
}

.finder-panel,
.plain-panel,
.category-card,
.pref-card,
.step-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 18px;
}

.finder-panel {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.finder-result {
  min-height: 28px;
  color: var(--muted);
}

.finder-result strong {
  display: block;
  color: var(--text);
}

.finder-result p {
  margin-bottom: 10px;
}

.action-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.metric-row,
.category-grid,
.pref-grid,
.two-column,
.feedback-grid,
.stats-grid {
  display: grid;
  gap: 14px;
}

.metric-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-row div {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 16px;
}

.metric-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.metric-row strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  line-height: 1;
}

.section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
}

.category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.pref-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.two-column,
.feedback-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.category-card,
.pref-card {
  padding: 0;
}

.category-card a,
.pref-card a {
  min-height: 112px;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 16px;
  text-decoration: none;
}

.category-card:hover,
.pref-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-tint);
}

.category-card span,
.pref-card span {
  font-size: 18px;
  font-weight: 740;
  line-height: 1.35;
}

.category-card small,
.pref-card small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.check-list li {
  position: relative;
  padding-left: 24px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.tag {
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-tint);
  color: var(--accent-strong);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 730;
  line-height: 1.2;
}

.compact-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.compact-link-grid a,
.compact-link {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.compact-link-grid a:hover,
.compact-link:hover {
  border-color: var(--border-strong);
  background: var(--surface-tint);
}

.step-list {
  display: grid;
  gap: 12px;
}

.step-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
}

.step-card > span {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 760;
}

.official-link {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  display: grid;
  gap: 4px;
  padding: 14px;
  text-decoration: none;
}

.official-link span {
  font-weight: 740;
}

.official-link small {
  color: var(--muted);
}

.copy-box {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

code {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 10px;
  overflow-wrap: anywhere;
}

.filter-panel {
  max-width: 520px;
}

.feedback-form {
  display: grid;
  gap: 12px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--border);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

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

.data-table th {
  background: var(--surface-soft);
  font-size: 14px;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.table-scroll .data-table {
  min-width: 640px;
}

.data-table td:first-child {
  overflow-wrap: anywhere;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 26px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 12px;
  color: var(--muted-strong);
  font-size: 13px;
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (max-width: 900px) {
  .hero-grid,
  .two-column,
  .feedback-grid,
  .section-heading-row {
    grid-template-columns: 1fr;
  }

  .metric-row,
  .category-grid,
  .pref-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: 38px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, var(--content));
  }

  .header-inner {
    min-height: 0;
    padding: 8px 0;
    display: grid;
    justify-content: stretch;
    gap: 6px;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    overflow: visible;
    white-space: normal;
    row-gap: 2px;
  }

  .nav a {
    padding: 5px 8px;
    line-height: 1.35;
  }

  body {
    font-size: 15px;
  }

  h1 {
    font-size: 31px;
  }

  h2 {
    font-size: 22px;
  }

  .section {
    padding: 40px 0;
  }

  .metric-row,
  .category-grid,
  .pref-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
