.inner-page main.max-w-xl {
    width: min(1120px, calc(100% - 2.5rem));
    margin: 1rem auto 2rem;
    padding: 0 !important;
}

.inner-page main.content-shell {
    display: grid;
    gap: 1rem;
}

.inner-hero {
    margin-top: 0.8rem;
    margin-bottom: 1rem;
    padding: 1.25rem 1.35rem;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(240, 249, 255, 0.96));
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 0.5rem;
}

.inner-hero h1 {
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    margin: 0;
}

.inner-hero p {
    margin: 0;
    max-width: 75ch;
    line-height: 1.6;
}

.inner-page main h1,
.inner-page main h2,
.inner-page main h3 {
    color: var(--ink) !important;
}

.inner-page main p,
.inner-page main span,
.inner-page main li {
    color: var(--muted);
}

.inner-page main > h1,
.inner-page main > p,
.inner-page main > div.text-gray-600,
.inner-page main > div.space-y-4 {
    margin-left: 1rem;
    margin-right: 1rem;
}

.inner-page main > h1 {
    margin-top: 0;
    margin-bottom: 0.6rem;
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
    font-size: clamp(1.45rem, 2.3vw, 2rem);
}

.inner-page main > p,
.inner-page main > div.text-gray-600 {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.inner-page main > section,
.inner-page main > div.bg-white,
.inner-page main > div.space-y-3,
.inner-page main > div.space-y-4,
.inner-page main > div.space-y-4.mb-5,
.inner-page main > div.space-y-3.mb-5 {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    border-radius: 20px;
    padding: 1rem;
    margin-left: 0;
    margin-right: 0;
}

.inner-page main section.bg-red-700 {
    background: linear-gradient(165deg, #11365f, #0d2949) !important;
    border: 1px solid #2c527c;
    box-shadow: var(--shadow-bold);
}

.inner-page main section.bg-red-700 h1,
.inner-page main section.bg-red-700 p,
.inner-page main section.bg-red-700 label span,
.inner-page main section.bg-red-700 .route-from-to-pill-text {
    color: #ebf5ff !important;
}

.inner-page main section.bg-red-700 .metro-select-input,
.inner-page main section.bg-red-700 input,
.inner-page main section.bg-red-700 select {
    border-color: #7aa0cb;
    border-radius: 12px;
}

.inner-page main section.bg-red-700 button[type="submit"] {
    background: linear-gradient(130deg, var(--warm), #e87200) !important;
    color: #ffffff !important;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 12px 20px rgba(231, 114, 0, 0.28);
}

.inner-page main section.bg-red-700 button[type="submit"]:hover {
    background: linear-gradient(130deg, #ff9a3f, #ef7708) !important;
}

.route-page .route-from-to-swap {
    background: #ebf5ff !important;
    border-color: #95b8de !important;
}

.route-page .route-from-to-swap svg {
    color: #1d568e;
}

.route-page main section.bg-white,
.route-page main section.border-gray-100 {
    background: linear-gradient(180deg, #ffffff 0, #f6fbff 100%) !important;
}

.route-page .route-shell > section:not(.bg-red-700) {
    position: relative;
    overflow: hidden;
}

.route-page .route-shell > section:not(.bg-red-700)::after {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(31, 122, 216, 0.08) 0, transparent 70%);
    pointer-events: none;
}

.route-page main section .text-red-800,
.route-page main section .text-red-700,
.route-page main section .text-red-600 {
    color: #12467c !important;
}

.route-page main .hover\:border-red-200:hover {
    border-color: #9cc0e8 !important;
}

.route-page main a.text-blue-600 {
    color: #0f4f97 !important;
}

.route-page .route-shell .grid.grid-cols-1.sm\:grid-cols-2 > div {
    border-radius: 12px;
    background: #f9fcff;
}

.stations-page main .border-b.border-gray-200 {
    border-color: var(--line) !important;
}

.stations-page .stations-shell > .space-y-4.mb-5.border-b.border-gray-200.pb-4 {
    position: sticky;
    top: 86px;
    z-index: 40;
    background: rgba(237, 244, 255, 0.92);
    border: 1px solid var(--line) !important;
    border-radius: 16px;
    padding: 0.9rem !important;
    backdrop-filter: blur(6px);
}

.stations-page main #station-list-search {
    border-color: #b9d0ee !important;
    border-radius: 12px !important;
    background: #f7fbff !important;
}

.stations-page main #station-list-search:focus {
    border-color: #2f8bff !important;
    box-shadow: 0 0 0 3px rgba(47, 139, 255, 0.18) !important;
}

.stations-page main a.station-list-item {
    border-radius: 10px;
    padding: 0.52rem 0.6rem;
    transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.stations-page main a.station-list-item:hover {
    background: #eff6ff;
    box-shadow: 0 6px 12px rgba(13, 42, 77, 0.08);
    transform: translateY(-1px);
}

.stations-page .stations-shell > .bg-white.rounded-lg.border.border-gray-200.shadow-sm.overflow-hidden > ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem 0.85rem;
}

.stations-page .stations-shell > .bg-white.rounded-lg.border.border-gray-200.shadow-sm.overflow-hidden > ul > li {
    margin: 0;
}

.stations-page main .text-blue-600 {
    color: #11508f !important;
}

.stations-page main .bg-red-600.text-white,
.stations-page main .bg-red-100.text-red-800 {
    background: rgba(17, 91, 166, 0.12) !important;
    color: #165492 !important;
    border: 1px solid rgba(17, 91, 166, 0.2);
}

.stations-page main .bg-gray-100.text-gray-600 {
    background: #eef4ff !important;
    color: #446286 !important;
}

.lines-page main > .space-y-3 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.lines-page main > .space-y-3 > a {
    margin-top: 0 !important;
    border-radius: 16px !important;
    border-color: var(--line) !important;
    background: linear-gradient(180deg, #ffffff 0, #f6fbff 100%) !important;
    box-shadow: var(--shadow-soft) !important;
}

.lines-page main > .space-y-3 > a:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(13, 42, 77, 0.14) !important;
    border-color: #a5c4ea !important;
}

.lines-page main > .space-y-3 > a .text-red-600 {
    color: #0e5498 !important;
    font-weight: 700;
}

.lines-page .lines-shell > .space-y-3 > a {
    padding: 1rem 1.05rem !important;
}

.lines-page .lines-shell > .space-y-3 > a img {
    width: 52px !important;
    height: 52px !important;
    border-color: #c8dbf5 !important;
    background: #f8fbff !important;
}

.lines-page .lines-shell > .space-y-3 > a span.font-semibold {
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
    font-size: 1.05rem;
}

.lines-page .lines-shell > .space-y-3 > a p {
    line-height: 1.5;
}

.inner-page .context-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.72rem;
}

.inner-page .context-card {
    border: 1px solid #d3e3f8;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0, #f5faff 100%);
    padding: 0.82rem;
    display: grid;
    gap: 0.32rem;
}

.inner-page .context-card h3 {
    margin: 0;
    font-size: 0.95rem;
    color: #154a83;
}

.inner-page .context-card p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.55;
}

.inner-page .faq-shell .faq-list details {
    background: #f8fbff;
    border-color: #cfe1f7;
}

.inner-page .faq-shell .freshness-note {
    border-color: #b6d3f3;
}

.inner-page .site-footer {
    margin-top: 1.5rem;
    border-top: 1px solid rgba(151, 188, 231, 0.25);
    box-shadow: 0 -12px 24px rgba(7, 26, 49, 0.12);
}

.inner-page #scroll-ring,
.inner-page #scroll-top-btn path {
    stroke: #115aa6 !important;
}

@media (max-width: 1080px) {
    .lines-page main > .space-y-3 {
        grid-template-columns: 1fr;
    }

    .inner-page .context-grid {
        grid-template-columns: 1fr;
    }

    .stations-page .stations-shell > .bg-white.rounded-lg.border.border-gray-200.shadow-sm.overflow-hidden > ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 840px) {
    .inner-page main.max-w-xl,
    .inner-hero {
        margin-top: 0.5rem;
        border-radius: 18px;
        padding: 1rem;
    }

    .inner-page main > section,
    .inner-page main > div.bg-white,
    .inner-page main > div.space-y-3,
    .inner-page main > div.space-y-4,
    .inner-page main > div.space-y-4.mb-5,
    .inner-page main > div.space-y-3.mb-5,
    .stations-page .stations-shell > .space-y-4.mb-5.border-b.border-gray-200.pb-4 {
        position: static;
        backdrop-filter: none;
    }
}
