:root {
  --bg: #ffffff;
  --paper: #f7f8fb;
  --panel: #ffffff;
  --text: #20242c;
  --muted: #667085;
  --line: #d9dee8;
  --accent: #176b87;
  --accent-2: #4f6f52;
  --accent-soft: #edf7fa;
  --warn-soft: #fff8e8;
  --warn-line: #f0d28a;
  --shadow: 0 14px 36px rgba(32, 36, 44, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent-soft);
  color: #0f4c5c;
  font-size: 15px;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
  font-size: 14px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 60px;
}

.article-page {
  max-width: 960px;
}

.hero {
  padding: 14px 0 26px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 700;
}

h1 {
  max-width: 900px;
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.18;
  letter-spacing: 0;
}

.lead {
  max-width: 850px;
  margin: 0 0 18px;
  color: #384250;
  font-size: 18px;
}

.notice {
  max-width: 920px;
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--warn-line);
  border-radius: 8px;
  background: var(--warn-soft);
  color: #5f4b19;
  font-size: 14px;
}

.home-routes,
.related,
.guide-links,
.faq {
  margin-top: 32px;
}

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

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

.route-card,
.mini-card,
.content-card,
details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.route-card,
.mini-card {
  display: block;
  min-width: 0;
  padding: 18px;
  color: var(--text);
  text-decoration: none;
}

.route-card strong,
.route-card span,
.mini-card span {
  display: block;
}

.route-card strong {
  margin-bottom: 6px;
  font-size: 18px;
}

.route-card span,
.mini-card span {
  color: var(--muted);
  font-size: 15px;
}

.content-blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.content-card {
  padding: 22px;
}

h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: 0;
}

.content-card p,
details p {
  margin: 0;
}

.guide-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.guide-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}

details {
  padding: 16px 18px;
}

details + details {
  margin-top: 10px;
}

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

summary + p {
  margin-top: 10px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner p {
  max-width: 720px;
  margin: 0;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
}

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

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

  main {
    padding-top: 24px;
  }

  .card-grid,
  .card-grid.small,
  .content-blocks {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 32px;
  }

  .lead {
    font-size: 16px;
  }
}
