/* SEO landing pages (lib/landing.js). Plain documents, not the app shell:
   they load tokens.css first and resolve every colour through it so they
   follow the app's dark/light palettes. */

*, *::before, *::after { box-sizing: border-box; }

body.lp {
    margin: 0;
    background: var(--ds-bg-app);
    color: var(--ds-label-primary);
    font-family: var(--ds-font-sans);
    font-size: 17px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ds-text-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.lp-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--ds-fill-neutral);
}
.lp-brand {
    font-family: var(--ds-font-rounded);
    font-weight: 800;
    font-size: 20px;
    color: var(--ds-label-primary);
    letter-spacing: -0.02em;
}
.lp-nav { display: flex; gap: 14px; align-items: center; font-weight: 600; white-space: nowrap; }
@media (max-width: 420px) { .lp-nav { gap: 10px; font-size: 15px; } .lp-brand { font-size: 18px; } }
.lp-nav a { color: var(--ds-label-secondary); }
.lp-nav__cta {
    color: var(--ds-label-primary) !important;
    background: var(--ds-fill-active);
    padding: 6px 12px;
    border-radius: var(--ds-radius-pill);
}

.lp-main { max-width: 760px; margin: 0 auto; padding: 16px 16px 40px; }
.lp-foot {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 16px 48px;
    color: var(--ds-label-secondary);
    font-size: 14px;
    border-top: 1px solid var(--ds-fill-neutral);
}

.lp-crumbs { font-size: 14px; color: var(--ds-label-secondary); margin-bottom: 12px; }
.lp-crumbs__sep { margin: 0 6px; }

h1 { font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; margin: 8px 0 6px; font-weight: 800; }
h2 { font-size: 20px; margin: 28px 0 10px; font-weight: 700; }
h3 { font-size: 17px; margin: 0; }
.lp-h1sub { display: block; font-size: 16px; font-weight: 600; color: var(--ds-label-secondary); }
.lp-lede { margin: 6px 0 0; }
.lp-muted { color: var(--ds-label-secondary); font-size: 15px; }
.lp-empty { color: var(--ds-label-secondary); margin: 0; }
.lp-updated { color: var(--ds-label-tertiary); font-size: 13px; margin-top: 32px; }
.lp-updated a { color: inherit; text-decoration: underline; }

.lp-badge {
    display: inline-block;
    min-width: 28px;
    padding: 2px 8px;
    border-radius: var(--ds-radius-6);
    background: var(--badge);
    color: var(--badge-ink);
    font-weight: 800;
    font-size: 14px;
    text-align: center;
    vertical-align: middle;
    line-height: 1.5;
}
h1 .lp-badge { font-size: 18px; padding: 2px 10px; vertical-align: 4px; }
.lp-badgelink { color: var(--ds-label-primary); font-weight: 600; margin-right: 10px; }
.lp-lines { margin: 0 0 4px; }
.lp-acc { color: var(--ds-text-blue); font-size: 14px; }

.lp-status { margin: 4px 0 12px; font-size: 18px; }
.lp-status.is-ok strong { color: var(--ds-text-green); }
.lp-status.is-warn strong { color: var(--ds-text-orange); }
.lp-status.is-severe strong { color: var(--ds-text-red); }
.lp-status.is-info strong { color: var(--ds-text-blue); }

.lp-cta {
    display: inline-block;
    background: var(--ds-label-primary);
    color: var(--ds-bg-app);
    font-weight: 700;
    padding: 10px 16px;
    border-radius: var(--ds-radius-pill);
    margin-right: 8px;
}
.lp-cta:hover { text-decoration: none; opacity: 0.9; }

.lp-alert {
    background: var(--ds-bg-secondary);
    border-radius: var(--ds-radius-20);
    padding: 14px 16px;
    margin: 0 0 12px;
    border-left: 4px solid var(--ds-text-blue);
}
.lp-alert.is-warn { border-left-color: var(--ds-text-orange); }
.lp-alert.is-severe { border-left-color: var(--ds-text-red); }
.lp-alert__head { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; }
.lp-alert__effect { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.is-warn .lp-alert__effect { color: var(--ds-text-orange); }
.is-severe .lp-alert__effect { color: var(--ds-text-red); }
.is-info .lp-alert__effect { color: var(--ds-text-blue); }
.lp-alert__reason { margin: 2px 0 0; color: var(--ds-label-secondary); }
.lp-alert__when { margin: 6px 0 0; font-size: 15px; font-weight: 600; }
.lp-alert__text { margin: 8px 0 0; font-size: 15px; color: var(--ds-label-secondary); }

.lp-linelist { list-style: none; padding: 0; margin: 0; }
.lp-linerow {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--ds-fill-neutral);
}
.lp-linerow a { color: var(--ds-label-primary); font-weight: 600; display: flex; gap: 10px; align-items: center; }
.lp-linerow__status { font-size: 15px; color: var(--ds-text-green); text-align: right; }
.lp-linerow.is-warn .lp-linerow__status { color: var(--ds-text-orange); }
.lp-linerow.is-severe .lp-linerow__status { color: var(--ds-text-red); }
.lp-linerow.is-info .lp-linerow__status { color: var(--ds-text-blue); }

.lp-stationline { list-style: none; padding: 0 0 0 22px; margin: 0; position: relative; }
.lp-stationline::before {
    content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 6px;
    background: var(--line); border-radius: 3px;
}
.lp-stationline li { position: relative; padding: 6px 0; }
.lp-stationline li::before {
    content: ""; position: absolute; left: -20px; top: 12px; width: 10px; height: 10px;
    border-radius: 50%; background: var(--ds-bg-app); border: 2px solid var(--line);
}
.lp-stationline li a { color: var(--ds-label-primary); }
.lp-stationline li.is-affected a { color: var(--ds-text-red); font-weight: 700; }
.lp-stationline li.is-affected::before { background: var(--ds-text-red); border-color: var(--ds-text-red); }

.lp-stationgrid {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 4px 16px;
}
.lp-stationgrid a { color: var(--ds-label-primary); }
.lp-access { padding-left: 20px; margin: 0; }
.lp-access li { margin-bottom: 6px; }
.lp-neighbours { list-style: none; padding: 0; margin: 0; }
.lp-neighbours li { margin-bottom: 8px; }
