:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0a0a0a;
  color: #e5e5e5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-col: column;
  flex-direction: column;
}

a {
  color: #67e8f9;
  text-underline-offset: 3px;
  -webkit-tap-highlight-color: transparent;
}

a:hover {
  color: #a5f3fc;
}

a:focus-visible {
  outline: 2px solid #67e8f9;
  outline-offset: 3px;
  border-radius: 4px;
}

.site-header,
.site-footer {
  border-color: #262f3d;
  border-style: solid;
}

.site-header {
  border-width: 0 0 1px;
  padding: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.94) 0%, rgba(3, 7, 18, 0.78) 48%, rgba(3, 7, 18, 0.45) 100%),
    url("/assets/jeepney-header.jpg") center 58% / cover,
    #080b12;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 6.5rem;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid #262f3d;
  padding: 0.5rem;
}

.brand-logo {
  display: block;
  width: min(100%, 36rem);
  max-height: 6.5rem;
  padding: 0.25rem 0.5rem;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.015);
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  width: 100%;
  margin: 0 auto;
  padding: 0.6rem 0.75rem;
  background: rgba(8, 11, 18, 0.94);
  backdrop-filter: blur(8px);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  color: #d4d4d8;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 6px;
  transition: background-color 0.15s ease, color 0.15s ease;
  min-height: 34px;
}

nav a:hover {
  color: #67e8f9;
  background: rgba(14, 165, 233, 0.12);
}

nav a[aria-current="page"] {
  color: #67e8f9;
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(103, 232, 249, 0.3);
}

@media (min-width: 640px) {
  .brand {
    min-height: 8.5rem;
  }
  .brand-logo {
    max-height: 8rem;
  }
  nav {
    font-size: 0.8rem;
    gap: 0.4rem 0.75rem;
    padding: 0.65rem 1.5rem;
  }
}

main {
  width: min(100% - 2rem, 54rem);
  margin: 0 auto;
  padding: 2rem 0 4rem;
  flex: 1;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
  padding: 0.25rem 0;
}

.breadcrumbs a {
  color: #94a3b8;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #67e8f9;
  text-decoration: underline;
}

.breadcrumbs span[aria-hidden="true"] {
  color: #475569;
}

h1, h2, h3, h4 {
  color: #fff;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 800;
}

h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 0.4rem;
}

h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
}

h4 {
  margin: 1.25rem 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

p, ul, ol {
  color: #cbd5e1;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  line-height: 1.75;
}

ul, ol {
  padding-left: 1.4rem;
  margin: 1rem 0;
}

li + li {
  margin-top: 0.5rem;
}

/* Hero Badge */
.topic-tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #67e8f9;
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 9999px;
}

.hero-lede {
  color: #e2e8f0;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

/* Cards & Grid Containers */
.info-card {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid #262f3d;
  border-radius: 0.75rem;
  background: #0f141d;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.75rem 0;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-box {
  padding: 1.25rem;
  border: 1px solid #1e293b;
  border-radius: 0.75rem;
  background: #0e121a;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.feature-box:hover {
  transform: translateY(-2px);
  border-color: #0ea5e9;
}

.feature-box h3 {
  margin-top: 0;
  color: #38bdf8;
  font-size: 1.1rem;
}

.feature-box p {
  font-size: 0.92rem;
  margin: 0.5rem 0 0;
}

/* Station Table */
.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid #262f3d;
  border-radius: 0.75rem;
  background: #0c1017;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

thead {
  background: #111722;
  border-bottom: 1px solid #262f3d;
}

th {
  padding: 0.75rem 1rem;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #1a222e;
  color: #cbd5e1;
}

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

tr:hover td {
  background: rgba(14, 165, 233, 0.05);
}

/* Call to action bar */
.cta-banner {
  margin: 2.5rem 0;
  padding: 1.5rem;
  border: 1px solid rgba(14, 165, 233, 0.4);
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(8, 20, 36, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: 0 0 24px rgba(14, 165, 233, 0.12);
}

@media (min-width: 640px) {
  .cta-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 2rem;
  }
}

.cta-banner h3 {
  margin: 0 0 0.35rem;
  color: #fff;
  font-size: 1.2rem;
}

.cta-banner p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.92rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  background: #0ea5e9;
  color: #030712;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 9999px;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
  transition: background-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
  min-height: 44px;
}

.btn-primary:hover {
  background: #38bdf8;
  color: #000;
  transform: translateY(-1px);
}

/* FAQ Details Accordion */
details {
  border: 1px solid #1e293b;
  border-radius: 0.65rem;
  background: #0e121a;
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  transition: border-color 0.15s ease;
}

details[open] {
  border-color: #0ea5e9;
  background: #0f1622;
}

summary {
  font-weight: 700;
  color: #e2e8f0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
  min-height: 38px;
  -webkit-tap-highlight-color: transparent;
}

summary::-webkit-details-marker {
  display: none;
}

summary:hover {
  color: #67e8f9;
}

summary::after {
  content: "+";
  color: #38bdf8;
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 700;
  transition: transform 0.2s ease;
}

details[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

details p {
  margin: 0.75rem 0 0.25rem;
  font-size: 0.95rem;
  color: #94a3b8;
}

.site-footer {
  border-width: 1px 0 0;
  padding: 2rem 1rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
  background: #080b12;
  margin-top: auto;
}

.site-footer nav {
  background: transparent;
  padding: 0.5rem 0 1rem;
}

.site-footer a {
  color: #94a3b8;
}

.site-footer a:hover {
  color: #67e8f9;
}

/* Responsive adjustment for small screens (320px - 400px) */
@media (max-width: 480px) {
  main {
    padding: 1.25rem 0 3rem;
  }
  .info-card {
    padding: 1rem;
  }
}
