@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
  --font-albert: 'Albert Sans';
  --font-mono: 'Space Mono';
}

:root {
  --cobalt: #2f4f80;
  --navy: #23406b;
  --ink: #17233a;
  --steel: #1f8a7a;
  --muted: #5c6b85;
  --line-soft: #dde5f1;
  --paper: #ffffff;
  --mist: #f4f7fc;
  --mist-2: #eaf0f9;
  --font-body: var(--font-albert), system-ui, sans-serif;
  --font-code: var(--font-mono), ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--mist);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--cobalt);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 50;
}
.skip-link:focus {
  left: 0;
}

/* ============ Transit masthead ============ */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 28px;
  border-bottom: 3px solid var(--navy);
  background: var(--paper);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}
.wordmark-mark {
  display: inline-flex;
  padding: 5px;
  border: 1.5px solid var(--line-soft);
  border-radius: 10px;
  background: var(--mist);
}
.wordmark-text strong {
  display: block;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.wordmark-text small {
  display: block;
  font-family: var(--font-code);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.line-key {
  display: flex;
  align-items: center;
  gap: 14px;
}
.line-key-label {
  font-family: var(--font-code);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.line-key ul {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}
.line-key li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.line-key-swatch {
  width: 22px;
  height: 5px;
  border-radius: 3px;
}
.line-key-code {
  font-family: var(--font-code);
  font-weight: 700;
  font-size: 12px;
  color: var(--navy);
}
.line-key-name {
  font-size: 12.5px;
  color: var(--muted);
}

/* ============ Lead / cover ============ */
.transit-lead {
  max-width: 1180px;
  margin: 26px auto 0;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  background-image: linear-gradient(135deg, rgba(35, 64, 107, 0.92), rgba(47, 79, 128, 0.82)),
    url("/images/cobaltvillage-lead.jpg");
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
}
.lead-inner {
  padding: 52px 48px 44px;
  max-width: 820px;
}
.lead-eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-code);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #bcd0ee;
}
.transit-lead h1 {
  margin: 0 0 16px;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.lead-lede {
  margin: 0 0 26px;
  font-size: 17px;
  max-width: 640px;
  color: #e7eefb;
}
.lead-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.lead-lines li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lead-line-swatch {
  width: 26px;
  height: 6px;
  border-radius: 3px;
}
.lead-line-code {
  font-family: var(--font-code);
  font-weight: 700;
  font-size: 13px;
}
.lead-line-name {
  font-size: 13.5px;
  color: #dde7f7;
}

/* ============ Network map ============ */
.map-section {
  max-width: 1180px;
  margin: 38px auto 0;
  padding: 0 8px;
}
.map-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding: 0 20px;
}
.map-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.map-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 720px;
}
.map-notes li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  color: var(--muted);
}
.map-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--steel);
}
.map-figure {
  margin: 18px 0 0;
}
.map-scroll {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 18px 12px;
  box-shadow: 0 18px 40px -32px rgba(35, 64, 107, 0.6);
}
.metro {
  width: 100%;
  min-width: 980px;
  height: auto;
  display: block;
}
.metro a {
  cursor: pointer;
}
.metro a:hover circle:first-of-type {
  stroke-width: 5;
}
.tab-code {
  font-family: var(--font-code);
  font-weight: 700;
  font-size: 16px;
}
.st-name {
  font-family: var(--font-body);
  font-size: 14.5px;
  fill: var(--navy);
}
.st-name-open {
  font-weight: 800;
}
.st-code {
  font-family: var(--font-code);
  font-size: 11.5px;
  fill: var(--muted);
  letter-spacing: 0.04em;
}
.open-pill-text {
  font-family: var(--font-code);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.ix-box {
  fill: #ffffff;
  stroke: var(--navy);
  stroke-width: 1.4;
}
.ix-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  fill: var(--navy);
}
.ix-sub {
  font-family: var(--font-code);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  fill: var(--muted);
}
.map-figure figcaption {
  margin: 14px 6px 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 760px;
}

/* ============ Now open board ============ */
.board {
  max-width: 1180px;
  margin: 40px auto 24px;
  padding: 0 20px;
}
.board-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--line-soft);
  padding-bottom: 10px;
}
.board-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
}
.board-count {
  font-family: var(--font-code);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.board-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.board-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.board-row:hover {
  border-color: var(--cobalt);
  transform: translateX(3px);
}
.board-badge {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.board-badge-code {
  font-family: var(--font-code);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}
.board-line {
  display: block;
  font-family: var(--font-code);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.board-text strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.board-desc {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}
.board-go {
  font-family: var(--font-code);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
  border: 1.5px solid var(--cobalt);
  border-radius: 999px;
  padding: 6px 14px;
}

/* ============ Station (article) page ============ */
.station {
  max-width: 880px;
  margin: 30px auto 10px;
  padding: 0 20px;
}
.station-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 8px 40px 40px;
  box-shadow: 0 22px 50px -38px rgba(35, 64, 107, 0.7);
}
.station-head {
  position: relative;
  padding: 32px 0 26px 22px;
  border-bottom: 1px solid var(--line-soft);
}
.station-rail {
  position: absolute;
  left: 0;
  top: 30px;
  bottom: 24px;
  width: 7px;
  border-radius: 4px;
}
.station-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.line-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  color: #fff;
}
.line-badge-code {
  font-family: var(--font-code);
  font-weight: 700;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 1px 7px;
}
.line-badge-name {
  font-size: 13px;
  font-weight: 600;
}
.station-code {
  font-family: var(--font-code);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}
.station-head h1 {
  margin: 0 0 16px;
  font-size: 34px;
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--navy);
}
.platform-intro {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.55;
  color: #2c3a52;
}
.station-service {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  font-family: var(--font-code);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.station-service span {
  position: relative;
  padding-left: 14px;
}
.station-service span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--steel);
}

/* injected article body */
.article-content {
  padding-top: 26px;
  font-size: 16.5px;
}
.article-content p {
  margin: 0 0 18px;
}
.article-content h2 {
  position: relative;
  margin: 36px 0 14px;
  padding-left: 22px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.article-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--paper);
  border: 4px solid var(--cobalt);
}
.article-content h3 {
  margin: 26px 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}
.article-content ul,
.article-content ol {
  margin: 0 0 20px;
  padding-left: 22px;
}
.article-content li {
  margin-bottom: 8px;
}
.article-content blockquote {
  margin: 22px 0;
  padding: 16px 22px;
  border-left: 5px solid var(--cobalt);
  background: var(--mist-2);
  border-radius: 0 10px 10px 0;
  font-size: 17px;
  color: var(--navy);
}
.article-content blockquote p {
  margin: 0;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 14.5px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
}
.article-content thead th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  font-weight: 700;
  padding: 11px 14px;
  font-size: 13.5px;
}
.article-content tbody td {
  padding: 11px 14px;
  border-top: 1px solid var(--line-soft);
  vertical-align: top;
}
.article-content tbody tr:nth-child(even) {
  background: var(--mist);
}
.article-content a {
  color: var(--cobalt);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}
.article-content a:hover {
  color: var(--navy);
}

/* FAQ */
.faq-section {
  margin-top: 36px;
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
}
.faq-section h2 {
  margin: 0 0 14px;
  font-size: 21px;
  font-weight: 800;
  color: var(--navy);
}
.faq-section details {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 4px 16px;
  margin-bottom: 10px;
  background: var(--paper);
}
.faq-section summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  padding: 12px 0;
  list-style: none;
  position: relative;
  padding-right: 26px;
}
.faq-section summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 10px;
  font-family: var(--font-code);
  color: var(--cobalt);
  font-size: 18px;
}
.faq-section details[open] summary::after {
  content: "\2212";
}
.faq-section details p {
  margin: 0 0 14px;
  color: #36445e;
}

/* Connecting stations */
.connecting {
  margin-top: 38px;
  border-top: 2px solid var(--navy);
  padding-top: 22px;
}
.connecting h2 {
  margin: 0 0 16px;
  font-size: 21px;
  font-weight: 800;
  color: var(--navy);
}
.connecting-open {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.connecting-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  text-decoration: none;
  color: inherit;
  background: var(--mist);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.connecting-row:hover {
  border-color: var(--cobalt);
  transform: translateX(3px);
}
.connecting-badge {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-code);
  font-weight: 700;
  font-size: 14px;
}
.connecting-line {
  display: block;
  font-family: var(--font-code);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.connecting-text strong {
  font-size: 16px;
  color: var(--navy);
  font-weight: 700;
}
.connecting-empty {
  color: var(--muted);
  margin: 0 0 22px;
}
.same-line {
  background: var(--mist);
  border: 1px dashed var(--line-soft);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 22px;
}
.same-line-head {
  margin: 0 0 12px;
  font-family: var(--font-code);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}
.same-line-stops {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
}
.same-line-stops li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.stop-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--cobalt);
  flex: none;
}
.stop-code {
  font-family: var(--font-code);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.stop-name {
  font-size: 14px;
  color: var(--navy);
}
.to-map {
  display: inline-block;
  font-family: var(--font-code);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cobalt);
  text-decoration: none;
  border-bottom: 2px solid var(--cobalt);
  padding-bottom: 2px;
}

/* ============ Footer ============ */
.site-footer {
  max-width: 1180px;
  margin: 30px auto 0;
  padding: 28px 28px 40px;
  border-top: 3px solid var(--navy);
  background: var(--paper);
}
.footer-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-mark {
  display: inline-flex;
  padding: 5px;
  border: 1.5px solid var(--line-soft);
  border-radius: 10px;
  background: var(--mist);
}
.footer-row strong {
  font-size: 17px;
  color: var(--navy);
}
.footer-row p {
  margin: 2px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 720px;
}
.footer-note {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 760px;
}
.footer-end {
  margin: 16px 0 0;
  font-family: var(--font-code);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cobalt);
}

/* ============ Narrow screens ============ */
@media (max-width: 960px) {
  .masthead {
    padding: 16px 18px;
  }
  .line-key {
    width: 100%;
  }
  .lead-inner {
    padding: 38px 24px 32px;
  }
  .transit-lead h1 {
    font-size: 32px;
  }
  .map-head {
    padding: 0 6px;
  }
  .station-card {
    padding: 8px 20px 30px;
  }
  .station-head h1 {
    font-size: 27px;
  }
  .same-line-stops {
    grid-template-columns: 1fr;
  }
  .board-row {
    grid-template-columns: 48px 1fr;
  }
  .board-go {
    display: none;
  }
}

@media (max-width: 720px) {
  .article-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
