/* ==========================================================================
   seo-pages.css — service and terminal landing pages
   (templates/services/_page.php: Meet and Greet, Park and Ride, Long Stay, T2–T5)

   Load AFTER theme-pd-layout.css. Every rule is scoped to #main-content and the
   sp-* / pg-* classes these pages use, so it cannot reach other templates.

   Palette (unchanged): ink #141A1F, green #0F7A52, green-dark #0A5C3E,
   mint #9FE3C2, tint #E4EFE9, chalk #F7F6F2, slate #56616B, line #E2E0D9.
   Contrast (WCAG relative luminance), every pair used below:
     #141A1F on #E4EFE9 14.89   #56616B on #FFFFFF 6.33   #56616B on #F7F6F2 5.85
     #56616B on #E4EFE9  5.37   #0A5C3E on #FFFFFF 8.04   #0A5C3E on #F7F6F2 7.43
     #0A5C3E on #E4EFE9  6.82   #FFFFFF on #0A5C3E 8.04   #C8CDD2 on #141A1F 10.96
     #C8CDD2 on #1E262D  9.57   #9FE3C2 on #141A1F 11.89
   No white text sits on anything lighter than #0F7A52.
   ========================================================================== */

/* ── Hero additions (copy only; the hero background is not touched) ──────── */
#main-content .sp-crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  margin: 0 0 16px; font: 500 13px/1.4 var(--sans); color: #C8CDD2;
}
#main-content .sp-crumb a {
  color: #C8CDD2; text-decoration: underline; text-decoration-color: rgba(200,205,210,.45);
  text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 24px;
}
#main-content .sp-crumb a:hover { text-decoration-color: #9FE3C2; }
#main-content .sp-crumb [aria-current] { color: #FFFFFF; }
#main-content .sp-status {
  margin: 22px 0 0; padding: 10px 14px; max-width: 540px;
  border-left: 3px solid #9FE3C2; border-radius: 0 10px 10px 0;
  background: #1E262D; color: #C8CDD2; font: 500 14px/1.5 var(--sans);
}

/* ── Intro: the plain-English definition of the service ─────────────────── */
#main-content .sp-prose { max-width: 820px; }
#main-content .sp-prose h2 {
  font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12; letter-spacing: -.8px; color: #141A1F; margin: 0 0 18px;
}
#main-content .sp-prose p { font: 400 17px/1.7 var(--sans); color: #56616B; margin: 0 0 14px; }
#main-content .sp-prose p:first-of-type { font-size: 19px; line-height: 1.6; color: #141A1F; }
#main-content .sp-prose p:last-child { margin-bottom: 0; }

/* Inline links in body copy: always underlined, never colour alone */
#main-content :is(.sp-prose, .sp-note, .sp-after, .sp-table, .pg-card, .pg-faq-item, .pg-fine) a {
  color: #0A5C3E; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
#main-content :is(.sp-prose, .sp-note, .sp-after, .sp-table, .pg-card, .pg-faq-item, .pg-fine) a:hover { color: #141A1F; }
#main-content :is(.sp-prose, .sp-note, .sp-after, .sp-table, .pg-card, .pg-faq-item, .pg-fine, .sp-crumb) a:focus-visible,
#main-content .pg-term:focus-visible {
  outline: 3px solid #0F7A52; outline-offset: 3px; border-radius: 4px;
}
#main-content .pg-hero .sp-crumb a:focus-visible { outline-color: #9FE3C2; }

/* ── Terminal pages: road access + airlines panels ──────────────────────── */
#main-content .sp-about-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; align-items: start;
}
#main-content .sp-panel {
  background: #FFFFFF; border: 1px solid #E2E0D9; border-radius: 14px; padding: 28px; min-width: 0;
}
#main-content .sp-panel h3 {
  font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.2; color: #141A1F; margin: 0 0 14px;
}
#main-content .sp-panel h3:not(:first-child) { margin-top: 28px; }
#main-content .sp-panel > p { font: 400 15.5px/1.6 var(--sans); color: #56616B; margin: 0 0 14px; }
#main-content .sp-dl { margin: 0; }
#main-content .sp-dl > div {
  display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 4px 16px;
  padding: 14px 0; border-top: 1px solid #E2E0D9;
}
#main-content .sp-dl > div:first-child { border-top: 0; padding-top: 0; }
#main-content .sp-dl dt {
  font: 600 12px/1.5 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #56616B; padding-top: 3px;
}
#main-content .sp-dl dd { margin: 0; font: 500 15.5px/1.55 var(--sans); color: #141A1F; }
#main-content .sp-note, #main-content .sp-panel > .sp-note { font: 400 14px/1.6 var(--sans); color: #56616B; margin: 16px 0 0; }
#main-content .sp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
#main-content .sp-chips li {
  background: #E4EFE9; color: #0A5C3E; border-radius: 999px; padding: 7px 14px; font: 600 14px/1.3 var(--sans);
}
#main-content .sp-panel .pg-checks li { font-size: 15px; }

/* ── Meet and Greet v Park and Ride ─────────────────────────────────────── */
#main-content .sp-table-wrap {
  max-width: 980px; margin: 0 auto; background: #FFFFFF; border: 1px solid #E2E0D9; border-radius: 14px; overflow: hidden;
}
#main-content .sp-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
#main-content .sp-table th, #main-content .sp-table td {
  padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid #E2E0D9;
  font: 400 15.5px/1.5 var(--sans); color: #141A1F; overflow-wrap: anywhere;
}
#main-content .sp-table thead td { width: 24%; }
#main-content .sp-table thead th {
  font: 700 18px/1.2 var(--display); color: #141A1F; background: #F7F6F2; border-bottom: 2px solid #E2E0D9;
}
#main-content .sp-table thead td { background: #F7F6F2; border-bottom: 2px solid #E2E0D9; }
#main-content .sp-table thead th.is-focus { background: #E4EFE9; color: #0A5C3E; }
#main-content .sp-table tbody th { font: 600 13px/1.5 var(--sans); letter-spacing: .04em; color: #56616B; }
#main-content .sp-table tbody tr:last-child :is(th, td) { border-bottom: 0; }
#main-content .sp-table-links td { color: #56616B; }
#main-content .sp-after { max-width: 980px; margin: 20px auto 0; text-align: center; font: 400 16px/1.6 var(--sans); color: #56616B; }

/* ── Terminal cross-link band: descriptive anchors ──────────────────────── */
#main-content .pg-term { gap: 6px; padding: 20px; min-height: 100%; }
#main-content .pg-term b { color: #9FE3C2; line-height: 1; }
#main-content .pg-term strong { font: 700 16px/1.3 var(--display); color: #FFFFFF; }
#main-content .pg-term span { font: 400 13.5px/1.45 var(--sans); color: #C8CDD2; }
#main-content .pg-term:hover { border-color: #9FE3C2; }
#main-content .pg-term.is-current { border-color: #9FE3C2; box-shadow: 0 0 0 1px #9FE3C2 inset; }

/* ── Closing band: flat brand green so white text clears 4.5:1 everywhere ─ */
#main-content .pg-cta { background: #0A5C3E; }
#main-content .pg-cta p { color: #FFFFFF; }

/* ── Small type and widget copy on light surfaces ───────────────────────── */
#main-content .pg-fine { color: #56616B; max-width: 760px; margin-inline: auto; }
#main-content .pg-split-img figcaption { color: #56616B; }
#main-content .pg-option-body .pg-btn { margin-top: 8px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  #main-content .sp-about-grid { grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
}
@media (max-width: 640px) {
  #main-content .sp-prose p { font-size: 16px; }
  #main-content .sp-prose p:first-of-type { font-size: 17.5px; }
  #main-content .sp-panel { padding: 20px; }
  #main-content .sp-dl > div { grid-template-columns: minmax(0, 1fr); }
  #main-content .sp-status { margin-top: 18px; }

  /* Comparison table becomes one stacked block per row: label, then the two options */
  #main-content .sp-table, #main-content .sp-table tbody, #main-content .sp-table tr,
  #main-content .sp-table tbody th, #main-content .sp-table tbody td { display: block; width: auto; }
  #main-content .sp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  #main-content .sp-table tbody tr { padding: 16px; border-bottom: 1px solid #E2E0D9; }
  #main-content .sp-table tbody tr:last-child { border-bottom: 0; }
  #main-content .sp-table tbody th, #main-content .sp-table tbody td { padding: 0; border: 0; }
  #main-content .sp-table tbody th { margin-bottom: 8px; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
  #main-content .sp-table tbody td { padding: 6px 0 6px 12px; border-left: 3px solid #E2E0D9; margin-top: 6px; }
  #main-content .sp-table tbody td::before {
    display: block; font: 700 13px/1.4 var(--sans); color: #0A5C3E; margin-bottom: 2px;
  }
  #main-content .sp-table tbody td:nth-of-type(1)::before { content: "Meet and Greet"; }
  #main-content .sp-table tbody td:nth-of-type(2)::before { content: "Park and Ride"; }
}
@media (prefers-reduced-motion: reduce) {
  #main-content .pg-term { transition: none; }
  #main-content .pg-term:hover { transform: none; }
}
