:root {
  --ink: #111418;
  --text: #2d333b;
  --muted: #667085;
  --paper: #ffffff;
  --wash: #f5f7f8;
  --mist: #ebf3ef;
  --line: #dde3e7;
  --green: #0f8f72;
  --blue: #2458d3;
  --amber: #b46c18;
  --red: #c44735;
  --max: 1180px;
  --radius: 8px;
  --shadow: 0 18px 60px rgba(17, 20, 24, .11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--blue);
}

img {
  display: block;
  max-width: 100%;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 10px;
  top: 10px;
  z-index: 40;
  padding: 8px 12px;
  color: #fff;
  background: #000;
  border-radius: 6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 850;
  flex: 0 0 auto;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  line-height: 1.15;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.nav a {
  padding: 8px 12px;
  color: var(--text);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 730;
}

.nav a[aria-current="page"] {
  color: #fff;
  background: var(--ink);
}

.hero,
.page-hero,
.detail,
.tools-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 52px 20px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr);
  gap: 34px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 34px;
}

.hero h1,
.page-hero h1,
.detail-head h1 {
  margin: 12px 0 18px;
  max-width: 980px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.04;
  font-weight: 760;
}

.hero p,
.page-hero p,
.detail-head p {
  max-width: 820px;
  color: var(--text);
  font-size: 18px;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.button,
.download-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 780;
}

.button.primary,
.download-link {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.download-link.secondary {
  background: var(--green);
  border-color: var(--green);
}

.button.ghost {
  background: var(--wash);
}

.button:hover,
.download-link:hover {
  border-color: var(--blue);
}

.hero-board {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(5, 72px);
  gap: 10px;
  min-height: 420px;
}

.board-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: 14px;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.board-item img {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42%;
  max-height: 90px;
  object-fit: contain;
  opacity: .9;
}

.board-item span,
.board-item small {
  position: relative;
  z-index: 1;
}

.board-item span {
  font-weight: 850;
  line-height: 1.2;
}

.board-item small {
  color: rgba(255, 255, 255, .78);
  overflow-wrap: anywhere;
}

.board-1 {
  grid-column: 1 / 5;
  grid-row: 1 / 3;
  background: #14251f;
}

.board-2 {
  grid-column: 5 / 7;
  grid-row: 1 / 4;
  background: #17305c;
}

.board-3 {
  grid-column: 1 / 3;
  grid-row: 3 / 6;
  background: #5a2c1f;
}

.board-4 {
  grid-column: 3 / 5;
  grid-row: 3 / 5;
  background: #25332e;
}

.board-5 {
  grid-column: 5 / 7;
  grid-row: 4 / 6;
  background: #312a55;
}

.board-6 {
  grid-column: 3 / 5;
  grid-row: 5 / 6;
  background: #50310f;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 48px;
  gap: 10px;
}

.proof-strip div {
  padding: 16px 18px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip strong {
  font-size: 30px;
  line-height: 1.05;
}

.proof-strip span {
  color: var(--muted);
  font-size: 13px;
}

.band {
  max-width: none;
  padding: 46px 20px;
  background: linear-gradient(180deg, var(--wash), #fff);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 8px 0;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.15;
}

.section-head p {
  max-width: 860px;
  color: var(--muted);
}

.split-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.route-grid,
.tool-grid,
.guide-grid,
.mini-grid,
.fact-grid,
.protocol-grid,
.check-grid {
  display: grid;
  gap: 14px;
}

.route-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tool-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-grid,
.protocol-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-grid,
.check-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.route-card,
.tool-card,
.guide-card,
.mini-grid a,
.fact-grid div,
.protocol-card,
.download-panel,
.check-grid div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.route-card {
  display: grid;
  min-height: 178px;
  align-content: space-between;
  padding: 18px;
}

.route-card strong {
  font-size: 20px;
}

.route-card p,
.guide-card p,
.tool-card p,
.protocol-card p,
.content-section p {
  color: var(--text);
}

.route-index {
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
}

.tool-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tool-media {
  position: relative;
  display: block;
  background: var(--wash);
  border-bottom: 1px solid var(--line);
}

.tool-media span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 4px 8px;
  color: #fff;
  background: rgba(17, 20, 24, .86);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.tool-thumb {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.tool-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.tool-card h2,
.tool-card p,
.guide-card h3,
.guide-card p {
  margin: 0;
}

.tool-card h2 {
  font-size: 22px;
  line-height: 1.25;
}

.tool-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span,
.keyword-panel a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
}

.guide-card,
.protocol-card,
.mini-grid a,
.check-grid div {
  padding: 18px;
}

.guide-card h3 {
  margin: 8px 0 10px;
  font-size: 22px;
  line-height: 1.28;
}

.page-hero {
  padding-top: 54px;
  padding-bottom: 28px;
}

.page-hero.compact {
  padding: 22px 0 12px;
}

.search-box {
  display: grid;
  max-width: 680px;
  margin-top: 20px;
  gap: 8px;
  font-weight: 760;
}

.search-box input {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14px;
}

.detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: 34px;
  align-items: center;
}

.detail-head h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.detail-visual {
  position: relative;
}

.detail-image {
  width: 100%;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.visual-caption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 10px 12px;
  color: #fff;
  background: rgba(17, 20, 24, .9);
  border-radius: 8px;
}

.visual-caption strong,
.visual-caption span,
.fact-grid span,
.fact-grid strong,
.mini-grid span,
.check-grid span,
.protocol-card span {
  display: block;
}

.visual-caption span,
.fact-grid span,
.mini-grid span,
.check-grid span,
.protocol-card span {
  color: var(--muted);
  font-size: 13px;
}

.visual-caption span {
  color: rgba(255, 255, 255, .78);
}

.fact-grid div {
  padding: 16px;
}

.fact-grid strong {
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.content-section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.content-section h2 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.25;
}

.content-section h3 {
  margin: 18px 0 10px;
}

.keyword-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

caption {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-weight: 850;
}

th,
td {
  padding: 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--text);
  background: #f9fafb;
  font-size: 13px;
}

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

.steps {
  padding-left: 20px;
  color: var(--text);
}

.steps li {
  margin: 9px 0;
}

.notice {
  margin-top: 14px;
  padding: 14px 16px;
  background: #fff7ec;
  border-left: 4px solid var(--amber);
  border-radius: 8px;
}

.notice p {
  margin: .4rem 0 0;
}

.asset-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.asset-list h3 {
  flex-basis: 100%;
  margin: 0 0 4px;
}

.asset-list a {
  max-width: 100%;
  padding: 6px 9px;
  overflow-wrap: anywhere;
  color: var(--text);
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
}

details {
  margin: 10px 0;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

summary {
  cursor: pointer;
  font-weight: 850;
}

.center-action {
  text-align: center;
}

.muted {
  color: var(--muted) !important;
}

.site-footer {
  color: #fff;
  background: var(--ink);
  border-top: 1px solid #000;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr .7fr .9fr;
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 20px;
  gap: 24px;
}

.footer-grid p,
.footer-grid a {
  color: #cbd3da;
}

.footer-grid a {
  display: block;
  margin: 6px 0;
}

.footer-grid h2 {
  margin: 0 0 10px;
  font-size: 15px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1080px) {
  .route-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .home-hero,
  .detail-head {
    grid-template-columns: 1fr;
  }

  .hero-board {
    grid-template-rows: repeat(3, 96px);
    min-height: 0;
  }

  .board-item {
    grid-column: auto;
    grid-row: auto;
  }

  .proof-strip,
  .fact-grid,
  .mini-grid,
  .check-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero,
  .page-hero,
  .detail,
  .tools-section {
    padding-top: 34px;
  }

  .hero h1,
  .page-hero h1,
  .detail-head h1 {
    font-size: 38px;
  }

  .hero-board,
  .route-grid,
  .tool-grid,
  .guide-grid,
  .protocol-grid,
  .proof-strip,
  .fact-grid,
  .mini-grid,
  .check-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-board {
    display: grid;
  }

  .split-head {
    align-items: flex-start;
    flex-direction: column;
  }

  table {
    min-width: 680px;
  }
}
