/*
 * Guthrie Election 2027, /elections/guthrie-2027.
 *
 * Matches the Election 2027 promo graphic (img/specials/guthrie-election-2027.jpg):
 * a dusk sky from navy through plum to amber, cream Alfa Slab capitals with a
 * maroon drop, gold Playfair, the Canterbury wordmark, and City Hall's brick.
 */
@font-face { font-family: 'E27 Slab'; src: url('../fonts/AlfaSlabOne-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'E27 Playfair'; src: url('../fonts/PlayfairDisplay-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'E27 Playfair'; src: url('../fonts/PlayfairDisplay-Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'E27 Canterbury'; src: url('../fonts/Canterbury.ttf') format('truetype'); font-display: swap; }

:root {
    --e27-night: #141a3d;
    --e27-navy: #1f2756;
    --e27-plum: #4a3760;
    --e27-rose: #8d5a68;
    --e27-amber: #d79a5c;
    --e27-cream: #fff4dc;
    --e27-gold: #f3c76a;
    --e27-maroon: #7d1d2a;
    --e27-blue: #24418a;
    --e27-brick: #9a432e;
    --e27-ink: #1b1b1b;
    --e27-paper: #fffff7;
    --e27-sky: linear-gradient(170deg, #141a3d 0%, #262c5c 38%, #4a3760 66%, #8d5a68 88%, #c98a5c 100%);
}

.osc-e27-body { overflow-y: auto !important; }
.osc-e27-main { background: var(--e27-paper); }
.osc-e27-wrap {
    max-width: 60rem;
    margin: 0 auto;
    padding: 150px 20px 70px;
    color: var(--e27-ink);
}
@media (max-width: 640px) { .osc-e27-wrap { padding: 112px 16px 50px; } }

.osc-e27-sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.osc-e27-crumbs { font: 0.85rem/1.4 Arial, Helvetica, sans-serif; color: #6b6b6b; margin: 0 0 14px; }
.osc-e27-crumbs a { color: #6b6b6b; text-decoration: none; }
.osc-e27-crumbs a:hover { color: var(--e27-maroon); text-decoration: underline; }
.osc-e27-crumbs span[aria-current] { color: var(--e27-ink); }

/* ---- The banner ---------------------------------------------------------- */
.osc-e27-hero {
    margin: 0 0 44px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--e27-night);
    box-shadow: 0 18px 40px -18px rgba(20, 26, 61, 0.55);
}
.osc-e27-hero-img { display: block; width: 100%; height: auto; }
.osc-e27-hero-foot {
    display: flex; gap: 18px; align-items: flex-end; justify-content: space-between;
    padding: 18px 24px 20px;
    background: linear-gradient(180deg, #2a2340 0%, var(--e27-night) 100%);
    border-top: 3px solid var(--e27-maroon);
}
.osc-e27-lede {
    margin: 0;
    font: italic 400 1.12rem/1.5 'E27 Playfair', 'Playfair Display', Georgia, serif;
    color: var(--e27-cream);
    max-width: 40rem;
}
.osc-e27-count {
    margin: 0; flex: none;
    font: 700 0.72rem/1.2 Arial, Helvetica, sans-serif;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--e27-gold);
}
@media (max-width: 640px) {
    .osc-e27-hero { margin: 0 -16px 36px; border-radius: 0; }
    .osc-e27-hero-foot { flex-direction: column; align-items: flex-start; padding: 16px; }
    .osc-e27-lede { font-size: 1.02rem; }
}

/* ---- Section heads ------------------------------------------------------- */
.osc-e27-section { margin: 0 0 48px; }
.osc-e27-kicker {
    margin: 0 0 4px;
    font: 700 0.74rem/1.3 Arial, Helvetica, sans-serif;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--e27-maroon);
}
.osc-e27-h2 {
    margin: 0 0 8px;
    font: 400 2rem/1.12 'E27 Slab', 'Alfa Slab One', Georgia, serif;
    color: var(--e27-navy);
    text-shadow: 2px 2px 0 rgba(125, 29, 42, 0.18);
}
.osc-e27-sub { margin: 0 0 18px; font-size: 1.02rem; line-height: 1.55; color: #4a4a4a; max-width: 44rem; }
@media (max-width: 640px) { .osc-e27-h2 { font-size: 1.6rem; } }

/* ---- The four seats ------------------------------------------------------ */
.osc-e27-seats {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
@media (max-width: 900px) { .osc-e27-seats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .osc-e27-seats { grid-template-columns: 1fr; } }
.osc-e27-seat { margin: 0; }
.osc-e27-seat-link {
    position: relative;
    display: flex; flex-direction: column; height: 100%;
    padding: 18px 18px 16px;
    border-radius: 8px;
    background: var(--e27-sky);
    color: var(--e27-cream);
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 10px 24px -14px rgba(20, 26, 61, 0.7);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
/* The lamp-lit window glow of the promo, low in each card. */
.osc-e27-seat-link::after {
    content: ""; position: absolute; inset: auto -30% -45% -30%; height: 70%;
    background: radial-gradient(ellipse at 50% 100%, rgba(243, 199, 106, 0.28), transparent 65%);
    pointer-events: none;
}
.osc-e27-seat-link:hover, .osc-e27-seat-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -14px rgba(20, 26, 61, 0.85);
}
.osc-e27-seat-link:focus-visible { outline: 3px solid var(--e27-gold); outline-offset: 2px; }
.osc-e27-seat-name {
    font: 400 1.85rem/1 'E27 Slab', 'Alfa Slab One', Georgia, serif;
    color: var(--e27-cream);
    text-shadow: 3px 3px 0 var(--e27-maroon);
    letter-spacing: 0.01em;
}
.osc-e27-seat-term {
    margin: 8px 0 14px;
    font: 700 0.68rem/1.3 Arial, Helvetica, sans-serif;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(255, 244, 220, 0.72);
}
.osc-e27-seat-holder {
    font: 700 1.28rem/1.2 'E27 Playfair', 'Playfair Display', Georgia, serif;
    color: var(--e27-gold);
}
.osc-e27-seat-now {
    display: block; margin-bottom: 2px;
    font: italic 400 0.86rem/1.2 'E27 Playfair', 'Playfair Display', Georgia, serif;
    color: rgba(255, 244, 220, 0.75);
}
.osc-e27-seat-note {
    margin: 10px 0 14px;
    font-size: 0.88rem; line-height: 1.45;
    color: rgba(255, 244, 220, 0.88);
}
.osc-e27-seat-wiki {
    position: relative; z-index: 1;
    margin-top: auto;
    font: 700 0.78rem/1.2 Arial, Helvetica, sans-serif;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--e27-gold);
}
.osc-e27-seat-link:hover .osc-e27-seat-wiki { text-decoration: underline; }

/* ---- The first story ----------------------------------------------------- */
.osc-e27-first { margin: 0; }
.osc-e27-first-link {
    display: block;
    border: 1px solid #e3ddd0; border-radius: 8px; overflow: hidden;
    background: #fff; color: var(--e27-ink); text-decoration: none;
    box-shadow: 0 10px 26px -18px rgba(0, 0, 0, 0.45);
}
.osc-e27-first-words {
    display: flex; flex-direction: column; gap: 10px;
    padding: 24px 28px 22px;
    border-left: 6px solid var(--e27-maroon);
}
@media (max-width: 560px) { .osc-e27-first-words { padding: 18px 18px 16px; border-left-width: 4px; } }
.osc-e27-first-date {
    font: 700 0.72rem/1.2 Arial, Helvetica, sans-serif;
    letter-spacing: 0.12em; text-transform: uppercase; color: #6b6b6b;
}
.osc-e27-first-head {
    font: 700 1.85rem/1.18 'E27 Playfair', 'Playfair Display', Georgia, serif;
    color: var(--e27-navy);
}
.osc-e27-first-link:hover .osc-e27-first-head { text-decoration: underline; text-decoration-thickness: 2px; }
.osc-e27-first-dek { font-size: 1rem; line-height: 1.5; color: #4a4a4a; }
.osc-e27-first-opening {
    font: 400 1.06rem/1.6 Georgia, 'Times New Roman', serif;
    color: #2b2b2b;
    max-width: 46rem;
}
.osc-e27-first-more {
    margin-top: auto;
    font: 700 0.8rem/1.2 Arial, Helvetica, sans-serif;
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--e27-maroon);
}

/* ---- The Road to the Ballot ---------------------------------------------- */
.osc-e27-road {
    position: relative;
    padding: 26px 28px 22px;
    border-radius: 10px;
    background: var(--e27-sky);
    color: var(--e27-cream);
    overflow: hidden;
    box-shadow: 0 18px 40px -20px rgba(20, 26, 61, 0.75);
}
/* Soft cloud banks, as in the promo's sky. */
.osc-e27-road::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 40% 18% at 18% 14%, rgba(255, 255, 255, 0.07), transparent 70%),
        radial-gradient(ellipse 50% 14% at 78% 26%, rgba(255, 255, 255, 0.06), transparent 70%),
        radial-gradient(ellipse 70% 40% at 50% 112%, rgba(243, 170, 90, 0.35), transparent 70%);
}
.osc-e27-road > * { position: relative; }
.osc-e27-road-wordmark {
    margin: 0 0 2px;
    font: 400 1.35rem/1.1 'E27 Canterbury', Georgia, serif;
    color: var(--e27-cream);
}
.osc-e27-road-title { margin: 0 0 26px; line-height: 0.95; }
.osc-e27-road-gold {
    display: block;
    font: 700 1.7rem/1.1 'E27 Playfair', 'Playfair Display', Georgia, serif;
    color: var(--e27-gold);
}
.osc-e27-road-slab {
    display: block;
    font: 400 3.1rem/1 'E27 Slab', 'Alfa Slab One', Georgia, serif;
    text-transform: uppercase;
    color: var(--e27-cream);
    text-shadow: 4px 4px 0 var(--e27-maroon);
}

.osc-e27-stops {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 18px;
    position: relative;
}
/* The rail the stops sit on. */
.osc-e27-stops::before {
    content: ""; position: absolute; left: 9px; right: 9px; top: 9px; height: 3px;
    background: linear-gradient(90deg, var(--e27-gold), rgba(243, 199, 106, 0.45));
    border-radius: 2px;
}
.osc-e27-stop { position: relative; display: flex; flex-direction: column; padding-top: 34px; min-width: 0; }
.osc-e27-pin {
    position: absolute; top: 0; left: 0;
    width: 21px; height: 21px; border-radius: 50%;
    background: var(--e27-night);
    border: 3px solid var(--e27-gold);
}
.osc-e27-when { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.osc-e27-when-m {
    font: 700 1.2rem/1 'E27 Playfair', 'Playfair Display', Georgia, serif;
    color: var(--e27-gold);
}
.osc-e27-when-d {
    font: 400 2.6rem/1 'E27 Slab', 'Alfa Slab One', Georgia, serif;
    color: var(--e27-cream);
    text-shadow: 3px 3px 0 var(--e27-maroon);
}
.osc-e27-when-y {
    flex-basis: 100%;
    margin-top: 4px;
    font: 700 0.72rem/1 Arial, Helvetica, sans-serif;
    letter-spacing: 0.14em; color: rgba(255, 244, 220, 0.7);
}
.osc-e27-what {
    margin: 12px 0 0;
    font: 400 1.05rem/1.15 'E27 Slab', 'Alfa Slab One', Georgia, serif;
    text-transform: uppercase; letter-spacing: 0.02em;
    color: var(--e27-cream);
}
.osc-e27-flag {
    align-self: flex-start;
    margin: 8px 0 0;
    padding: 3px 8px;
    border-radius: 3px;
    background: var(--e27-gold);
    color: var(--e27-night);
    font: 700 0.68rem/1.2 Arial, Helvetica, sans-serif;
    letter-spacing: 0.1em; text-transform: uppercase;
}
.osc-e27-flag--done { background: rgba(255, 244, 220, 0.18); color: var(--e27-cream); }
.osc-e27-stop-note {
    margin: 10px 0 0;
    font-size: 0.86rem; line-height: 1.45;
    color: rgba(255, 244, 220, 0.86);
}
/* The next stop is lit like the promo's lamp; the ones behind are dimmed. */
.osc-e27-stop.is-next .osc-e27-pin,
.osc-e27-stop.is-now .osc-e27-pin {
    background: var(--e27-gold);
    box-shadow: 0 0 0 5px rgba(243, 199, 106, 0.25), 0 0 22px 6px rgba(243, 199, 106, 0.55);
}
.osc-e27-stop.is-done { opacity: 0.55; }
.osc-e27-stop.is-done .osc-e27-pin { background: var(--e27-gold); }
/* The new terms are the end of the road, not an election: a quieter stop. */
.osc-e27-stop--terms .osc-e27-when-d { font-size: 2.1rem; }

.osc-e27-road-foot {
    margin: 24px 0 0; padding-top: 14px;
    border-top: 1px solid rgba(255, 244, 220, 0.22);
    font: italic 400 0.95rem/1.45 'E27 Playfair', 'Playfair Display', Georgia, serif;
    color: rgba(255, 244, 220, 0.9);
}

/* Phones: the road runs down the page. */
@media (max-width: 720px) {
    .osc-e27-road { margin: 0 -16px; border-radius: 0; padding: 22px 18px 18px; }
    .osc-e27-road-slab { font-size: 2.35rem; }
    .osc-e27-road-gold { font-size: 1.35rem; }
    .osc-e27-stops { grid-template-columns: 1fr; gap: 22px; }
    .osc-e27-stops::before {
        left: 9px; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto;
        background: linear-gradient(180deg, var(--e27-gold), rgba(243, 199, 106, 0.45));
    }
    .osc-e27-stop { padding: 0 0 0 38px; }
}

/* ---- The ward map -------------------------------------------------------- */
.osc-e27-map {
    position: relative; display: block;
    border-radius: 8px; overflow: hidden;
    border: 3px solid var(--e27-navy);
    text-decoration: none;
    box-shadow: 0 12px 28px -18px rgba(20, 26, 61, 0.7);
}
.osc-e27-map img { display: block; width: 100%; height: auto; }
.osc-e27-map-cta {
    display: block;
    padding: 12px 16px;
    background: var(--e27-navy);
    color: var(--e27-gold);
    font: 700 0.86rem/1.2 Arial, Helvetica, sans-serif;
    letter-spacing: 0.08em; text-transform: uppercase;
}
.osc-e27-map:hover .osc-e27-map-cta, .osc-e27-map:focus-visible .osc-e27-map-cta { background: var(--e27-maroon); color: var(--e27-cream); }
.osc-e27-credit { margin: 8px 0 0; font-size: 0.8rem; color: #6b6b6b; }

/* ---- Every story --------------------------------------------------------- */
.osc-e27-list { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--e27-navy); }
.osc-e27-list li { margin: 0; border-bottom: 1px solid #e3ddd0; }
.osc-e27-item {
    display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px;
    padding: 16px 0; color: var(--e27-ink); text-decoration: none;
}
.osc-e27-item:not(:has(img)) { grid-template-columns: 1fr; }
@media (max-width: 560px) { .osc-e27-item { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; } }
.osc-e27-item-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.osc-e27-item-words { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.osc-e27-item-date {
    font: 700 0.7rem/1.2 Arial, Helvetica, sans-serif;
    letter-spacing: 0.12em; text-transform: uppercase; color: #6b6b6b;
}
.osc-e27-item-head { font: 700 1.2rem/1.25 'E27 Playfair', 'Playfair Display', Georgia, serif; color: var(--e27-navy); }
.osc-e27-item:hover .osc-e27-item-head { text-decoration: underline; }
.osc-e27-item-dek { font-size: 0.94rem; line-height: 1.45; color: #4a4a4a; }

.osc-e27-art-credit { margin: 0; font-size: 0.78rem; color: #7a7a7a; }
