/*
 * MyRoad styles. Shared by index.html and privacy.html.
 * Colours are tokens: light by default, dark via the system setting or data-theme="dark".
 */

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/outfit-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    --font-sign: 'Helvetica Neue', Helvetica, Arial, sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Light theme (default) */
    --bg-base: #f1f5f9;
    --bg-veil: rgba(241, 245, 249, 0.86);
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --border-color: #cbd5e1;
    --border-highlight: #94a3b8;
    --input-border: #64748b;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #475569;
    --link: #1d4ed8;
    --focus: #1d4ed8;
    --btn-primary-bg: #1d4ed8;
    --btn-primary-bg-hover: #1e40af;
    --btn-primary-text: #ffffff;
    --shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.08);

    --alert-bg: #fef2f2;
    --alert-border: #ef4444;
    --alert-title: #991b1b;
    --alert-text: #7f1d1d;
    --holiday-bg: #fffbeb;
    --holiday-border: #d97706;
    --holiday-title: #92400e;
    --holiday-text: #78350f;
    --info-bg: #eff6ff;
    --info-border: #3b82f6;
    --info-title: #1e3a8a;
    --info-text: #1e3a8a;
    --error-bg: #fef2f2;
    --error-border: #dc2626;
    --error-text: #991b1b;

    --badge-bg: #eff6ff;
    --badge-text: #1d4ed8;
    --badge-border: #60a5fa;
    --badge-urgent-bg: #fef2f2;
    --badge-urgent-text: #b91c1c;
    --badge-urgent-border: #f87171;

    --pill-rubbish-bg: #f1f5f9;   --pill-rubbish-text: #0f172a;   --pill-rubbish-border: #94a3b8;
    --pill-recycling-bg: #fef2f2; --pill-recycling-text: #991b1b; --pill-recycling-border: #f87171;
    --pill-food-bg: #fff7ed;      --pill-food-text: #9a3412;      --pill-food-border: #fb923c;
    --pill-garden-bg: #ecfdf5;    --pill-garden-text: #065f46;    --pill-garden-border: #34d399;
    --pill-other-bg: #f5f3ff;     --pill-other-text: #5b21b6;     --pill-other-border: #a78bfa;
    --pill-electricals-bg: #f0f9ff; --pill-electricals-text: #0369a1; --pill-electricals-border: #38bdf8;
    --pill-textiles-bg: #fdf4ff;  --pill-textiles-text: #86198f;  --pill-textiles-border: #e879f9;

    --sign-bg: #fbf9f4;
    --sign-frame: #d1d5db;
    --sign-text: #1a1b1e;
    --sign-stripe: #f38048;   /* same orange as donnecl.uk (owner wants both signs identical) */
    --sign-stripe-text: #ffffff;

    --toast-bg: #0f172a;
    --toast-text: #f8fafc;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-base: #0c1017;
        --bg-veil: rgba(12, 16, 23, 0.9);
        --bg-surface: #141b26;
        --bg-card: rgba(26, 35, 50, 0.92);
        --bg-card-hover: rgba(36, 48, 68, 0.95);
        --border-color: rgba(255, 255, 255, 0.14);
        --border-highlight: rgba(255, 255, 255, 0.28);
        --input-border: #7c8aa0;
        --text-primary: #f0f4f8;
        --text-secondary: #c3cddb;
        --text-muted: #9aa8bb;
        --link: #93c5fd;
        --focus: #93c5fd;
        --btn-primary-bg: #2563eb;
        --btn-primary-bg-hover: #1d4ed8;
        --btn-primary-text: #ffffff;
        --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);

        --alert-bg: rgba(239, 68, 68, 0.16);
        --alert-border: #ef4444;
        --alert-title: #fecaca;
        --alert-text: #fde2e2;
        --holiday-bg: rgba(245, 158, 11, 0.14);
        --holiday-border: #f59e0b;
        --holiday-title: #fde68a;
        --holiday-text: #fef3c7;
        --info-bg: rgba(56, 189, 248, 0.12);
        --info-border: #38bdf8;
        --info-title: #bae6fd;
        --info-text: #e0f2fe;
        --error-bg: rgba(239, 68, 68, 0.14);
        --error-border: #f87171;
        --error-text: #fecaca;

        --badge-bg: rgba(59, 130, 246, 0.18);
        --badge-text: #bfdbfe;
        --badge-border: rgba(96, 165, 250, 0.5);
        --badge-urgent-bg: rgba(239, 68, 68, 0.2);
        --badge-urgent-text: #fecaca;
        --badge-urgent-border: rgba(248, 113, 113, 0.55);

        --pill-rubbish-bg: rgba(156, 163, 175, 0.16);   --pill-rubbish-text: #f3f4f6;   --pill-rubbish-border: rgba(156, 163, 175, 0.4);
        --pill-recycling-bg: rgba(239, 68, 68, 0.16);   --pill-recycling-text: #fecaca; --pill-recycling-border: rgba(239, 68, 68, 0.45);
        --pill-food-bg: rgba(249, 115, 22, 0.16);       --pill-food-text: #fed7aa;      --pill-food-border: rgba(249, 115, 22, 0.45);
        --pill-garden-bg: rgba(16, 185, 129, 0.16);     --pill-garden-text: #a7f3d0;    --pill-garden-border: rgba(16, 185, 129, 0.45);
        --pill-other-bg: rgba(139, 92, 246, 0.18);      --pill-other-text: #ddd6fe;     --pill-other-border: rgba(139, 92, 246, 0.45);
        --pill-electricals-bg: rgba(56, 189, 248, 0.15); --pill-electricals-text: #bae6fd; --pill-electricals-border: rgba(56, 189, 248, 0.45);
        --pill-textiles-bg: rgba(232, 121, 249, 0.15);   --pill-textiles-text: #f5d0fe;   --pill-textiles-border: rgba(232, 121, 249, 0.45);

        --toast-bg: #f8fafc;
        --toast-text: #0f172a;
    }
}

:root[data-theme="dark"] {
    --bg-base: #0c1017;
    --bg-veil: rgba(12, 16, 23, 0.9);
    --bg-surface: #141b26;
    --bg-card: rgba(26, 35, 50, 0.92);
    --bg-card-hover: rgba(36, 48, 68, 0.95);
    --border-color: rgba(255, 255, 255, 0.14);
    --border-highlight: rgba(255, 255, 255, 0.28);
    --input-border: #7c8aa0;
    --text-primary: #f0f4f8;
    --text-secondary: #c3cddb;
    --text-muted: #9aa8bb;
    --link: #93c5fd;
    --focus: #93c5fd;
    --btn-primary-bg: #2563eb;
    --btn-primary-bg-hover: #1d4ed8;
    --btn-primary-text: #ffffff;
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);

    --alert-bg: rgba(239, 68, 68, 0.16);
    --alert-border: #ef4444;
    --alert-title: #fecaca;
    --alert-text: #fde2e2;
    --holiday-bg: rgba(245, 158, 11, 0.14);
    --holiday-border: #f59e0b;
    --holiday-title: #fde68a;
    --holiday-text: #fef3c7;
    --info-bg: rgba(56, 189, 248, 0.12);
    --info-border: #38bdf8;
    --info-title: #bae6fd;
    --info-text: #e0f2fe;
    --error-bg: rgba(239, 68, 68, 0.14);
    --error-border: #f87171;
    --error-text: #fecaca;

    --badge-bg: rgba(59, 130, 246, 0.18);
    --badge-text: #bfdbfe;
    --badge-border: rgba(96, 165, 250, 0.5);
    --badge-urgent-bg: rgba(239, 68, 68, 0.2);
    --badge-urgent-text: #fecaca;
    --badge-urgent-border: rgba(248, 113, 113, 0.55);

    --pill-rubbish-bg: rgba(156, 163, 175, 0.16);   --pill-rubbish-text: #f3f4f6;   --pill-rubbish-border: rgba(156, 163, 175, 0.4);
    --pill-recycling-bg: rgba(239, 68, 68, 0.16);   --pill-recycling-text: #fecaca; --pill-recycling-border: rgba(239, 68, 68, 0.45);
    --pill-food-bg: rgba(249, 115, 22, 0.16);       --pill-food-text: #fed7aa;      --pill-food-border: rgba(249, 115, 22, 0.45);
    --pill-garden-bg: rgba(16, 185, 129, 0.16);     --pill-garden-text: #a7f3d0;    --pill-garden-border: rgba(16, 185, 129, 0.45);
    --pill-other-bg: rgba(139, 92, 246, 0.18);      --pill-other-text: #ddd6fe;     --pill-other-border: rgba(139, 92, 246, 0.45);
    --pill-electricals-bg: rgba(56, 189, 248, 0.15); --pill-electricals-text: #bae6fd; --pill-electricals-border: rgba(56, 189, 248, 0.45);
    --pill-textiles-bg: rgba(232, 121, 249, 0.15);   --pill-textiles-text: #f5d0fe;   --pill-textiles-border: rgba(232, 121, 249, 0.45);

    --toast-bg: #f8fafc;
    --toast-text: #0f172a;
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-base);
    background-image:
        linear-gradient(var(--bg-veil), var(--bg-veil)),
        linear-gradient(to bottom, transparent 45%, var(--bg-base) 100%),
        url('/assets/street-bg.jpg');
    background-size: 100% 100%, 100% 100vw, 100% auto;
    background-repeat: no-repeat;
    background-position: top center;
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    padding-bottom: 48px;
    overflow-x: hidden;
}

a {
    color: var(--link);
    text-underline-offset: 2px;
}

ul, ol {
    list-style: none;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

main:focus {
    outline: none;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 2000;
    background: var(--bg-surface);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--focus);
}

.skip-link:focus {
    top: 12px;
}

.app-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* ------------------------------------------------------------------ */
/* Header and street sign                                              */
/* ------------------------------------------------------------------ */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.street-sign-link {
    text-decoration: none;
    min-width: 0;
    border-radius: 4px;
}

.uk-street-sign {
    display: inline-flex;
    flex-direction: column;
    max-width: 100%;
    background: var(--sign-bg);
    border: 5px solid var(--sign-frame);
    border-radius: 3px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.street-sign-text {
    display: block;
    padding: 10px 18px 6px;
}

.street-sign-title {
    display: block;
    font-family: var(--font-sign);
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--sign-text);
    text-transform: uppercase;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.street-sign-stripe {
    display: block;
    background-color: var(--sign-stripe);
    color: var(--sign-stripe-text);
    font-family: var(--font-sign);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 4px 16px;
    text-align: right;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-icon {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-icon:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-highlight);
}

.btn-icon:disabled {
    opacity: 0.6;
    cursor: progress;
}

.btn-icon.is-on {
    border-color: var(--btn-primary-bg);
    box-shadow: inset 0 0 0 1px var(--btn-primary-bg);
}

.btn-icon.is-other::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--holiday-border);
    border: 2px solid var(--bg-surface);
}

/* ------------------------------------------------------------------ */
/* Buttons, inputs                                                     */
/* ------------------------------------------------------------------ */
.btn-primary,
.btn-secondary {
    border-radius: var(--radius-md);
    padding: 10px 18px;
    min-height: 44px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: 1px solid var(--btn-primary-bg);
}

.btn-primary:hover {
    background: var(--btn-primary-bg-hover);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-weight: 500;
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-highlight);
}

.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-wide {
    width: 100%;
}

.field-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-input,
.form-select {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    min-height: 44px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
}

.form-input[aria-invalid="true"] {
    border-color: var(--error-border);
    box-shadow: inset 0 0 0 1px var(--error-border);
}

.form-select[size] {
    padding: 4px;
}

.form-select option {
    padding: 8px 10px;
    border-radius: 6px;
}

.input-row {
    display: flex;
    gap: 8px;
}

.input-row .form-input {
    flex: 1;
    min-width: 0;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.input-row .form-input::placeholder {
    text-transform: none;
    color: var(--text-muted);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.button-row-end {
    justify-content: flex-end;
}

/* ------------------------------------------------------------------ */
/* Notices                                                             */
/* ------------------------------------------------------------------ */
.notice {
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 20px;
    border: 1px solid;
}

.notice p + p {
    margin-top: 6px;
}

.notice-info {
    background: var(--info-bg);
    border-color: var(--info-border);
    color: var(--info-text);
}

.notice-warning {
    background: var(--holiday-bg);
    border-color: var(--holiday-border);
    color: var(--holiday-text);
}

.notice-error {
    background: var(--error-bg);
    border-color: var(--error-border);
    color: var(--error-text);
}

.notice-detail {
    font-size: 0.9rem;
}

.ios-hint {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.ios-hint-title {
    font-size: 1rem;
    color: var(--info-title);
    margin-bottom: 4px;
}

.ios-hint p {
    font-size: 0.9rem;
}

/* ------------------------------------------------------------------ */
/* Landing                                                             */
/* ------------------------------------------------------------------ */
.landing-card {
    max-width: 520px;
    margin: 8px auto 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-card);
}

.landing-heading {
    font-size: 1.7rem;
    line-height: 1.2;
    margin-bottom: 6px;
}

.landing-intro {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.form-status {
    min-height: 1.5em;
    margin: 10px 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.form-status.is-error {
    color: var(--error-text);
    font-weight: 600;
}

.address-form {
    margin-bottom: 16px;
}

.address-form .form-select {
    margin-bottom: 12px;
}

.coverage-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    margin-top: 8px;
}

/* ------------------------------------------------------------------ */
/* Street page                                                         */
/* ------------------------------------------------------------------ */
.loading-state {
    text-align: center;
    padding: 40px 16px;
    color: var(--text-secondary);
}

.address-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.address-label {
    font-size: 1.5rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.address-meta {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.alert-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--alert-bg);
    border: 1.5px solid var(--alert-border);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    margin-bottom: 20px;
}

.alert-banner .alert-icon {
    font-size: 26px;
    line-height: 1;
}

.alert-banner h2 {
    font-size: 1.05rem;
    color: var(--alert-title);
}

.alert-banner p {
    font-size: 0.92rem;
    color: var(--alert-text);
}

.alert-holiday {
    background: var(--holiday-bg);
    border-color: var(--holiday-border);
}

.alert-holiday h2 { color: var(--holiday-title); }
.alert-holiday p { color: var(--holiday-text); }

.alert-weather {
    background: var(--info-bg);
    border-color: var(--info-border);
}

.alert-weather h2 { color: var(--info-title); }
.alert-weather p { color: var(--info-text); }

.hero-spotlight {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-card);
}

.hero-spotlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #10b981, #f59e0b, #ef4444);
}

.spotlight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.spotlight-title {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.countdown-badge {
    background: var(--badge-bg);
    color: var(--badge-text);
    border: 1.5px solid var(--badge-border);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
}

.countdown-badge.urgent {
    background: var(--badge-urgent-bg);
    color: var(--badge-urgent-text);
    border-color: var(--badge-urgent-border);
}

.trash-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

.bin-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bin-card.urgent {
    border-color: var(--alert-border);
}

.bin-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bin-avatar {
    width: 100px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bin-photo-img {
    height: 125px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
}

.bin-pill-img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.bin-status {
    font-weight: 600;
    white-space: nowrap;
}

.bin-status.is-changed {
    color: var(--holiday-title);
}

.kerbside-tip {
    margin-top: 16px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--info-bg);
    border: 1px dashed var(--info-border);
    border-radius: var(--radius-md);
}

.kerbside-tip-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.kerbside-tip-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.kerbside-tip-list {
    list-style: none;
    margin-top: 2px;
}

.kerbside-tip-list li {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.bin-pill-icon {
    font-size: 0.9rem;
    line-height: 1;
}

.garden-note {
    margin: 12px 0 0;
    font-size: 0.92rem;
}

.garden-note-status {
    font-style: italic;
}

.garden-note a {
    color: inherit;
    font-weight: 600;
}

.bin-days-chip {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--bg-base);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.bin-info h3 {
    font-size: 1.15rem;
    font-weight: 600;
}

.bin-date {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.bin-card-footer {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.holiday-flag {
    color: var(--holiday-title);
    font-weight: 600;
    font-size: 0.85rem;
}

.section-header {
    margin: 28px 0 14px;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeline-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.timeline-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.timeline-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
    padding: 6px 8px;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.day-num {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.1;
}

.month-name {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
}

.timeline-day {
    font-weight: 600;
}

.timeline-rel {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.timeline-bins-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.bin-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    border: 1.5px solid;
    white-space: nowrap;
}

.bin-pill[data-bin-type="rubbish"] { background: var(--pill-rubbish-bg); color: var(--pill-rubbish-text); border-color: var(--pill-rubbish-border); }
.bin-pill[data-bin-type="recycling"] { background: var(--pill-recycling-bg); color: var(--pill-recycling-text); border-color: var(--pill-recycling-border); }
.bin-pill[data-bin-type="food"] { background: var(--pill-food-bg); color: var(--pill-food-text); border-color: var(--pill-food-border); }
.bin-pill[data-bin-type="garden"] { background: var(--pill-garden-bg); color: var(--pill-garden-text); border-color: var(--pill-garden-border); }
.bin-pill[data-bin-type="electricals"] { background: var(--pill-electricals-bg); color: var(--pill-electricals-text); border-color: var(--pill-electricals-border); }
.bin-pill[data-bin-type="textiles"] { background: var(--pill-textiles-bg); color: var(--pill-textiles-text); border-color: var(--pill-textiles-border); }
/* Street's GREENbin round for non-subscribers: lighter, dashed */
.bin-pill.is-round {
    background: transparent;
    border-style: dashed;
    font-weight: 500;
}

.timeline-item.is-round {
    border-style: dashed;
    background: transparent;
}

.bin-pill[data-bin-type="other"] { background: var(--pill-other-bg); color: var(--pill-other-text); border-color: var(--pill-other-border); }

.bin-svg-sm {
    flex-shrink: 0;
}

.source-note {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.quick-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
}

.tool-title {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.tool-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    margin-top: 28px;
    box-shadow: var(--shadow-card);
}

.panel .section-title {
    margin-bottom: 14px;
}

.weather-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.weather-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 2px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
}

.weather-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.weather-icon {
    font-size: 1.3rem;
    line-height: 1.3;
}

.weather-temp {
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

.crime-summary {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.crime-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.crime-stat {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
}

.crime-num {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 600;
}

.crime-cat {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.rules-list {
    list-style: disc;
    margin-left: 22px;
}

.rules-list li {
    color: var(--text-secondary);
}

.rules-list li + li {
    margin-top: 6px;
}

.christmas-note {
    margin: 12px 0 0;
    font-size: 0.92rem;
}

.alert-banner p + p {
    margin-top: 4px;
}

.alert-banner a {
    color: inherit;
    font-weight: 600;
}

.timeline-item.is-tbc {
    border-style: dashed;
    border-color: var(--holiday-border);
}

.timeline-item.is-tbc .day-num {
    font-size: 1rem;
}

.sales-subtitle {
    margin-top: 18px;
}

.sales-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.sale-item {
    display: grid;
    grid-template-columns: 7.5em 7em 1fr;
    gap: 10px;
    align-items: baseline;
    padding: 8px 12px;
    background: var(--bg-surface);
}

.sale-item + .sale-item {
    border-top: 1px solid var(--border-color);
}

.sale-month {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.sale-price {
    font-family: var(--font-mono);
    font-weight: 600;
}

.sale-details {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.crime-link-row {
    margin-top: 12px;
    font-weight: 600;
}

.links-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* Report a Local Problem / Useful links cards (same as donnecl.uk) */
.info-section {
    margin-top: 40px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-card-title {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card-icon {
    font-size: 1.15rem;
}

.info-card-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.45;
    flex-grow: 1;
}

.info-card-text a {
    color: var(--link);
}

.info-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.info-card-actions .btn-secondary {
    text-decoration: none;
    padding: 8px 14px;
    font-size: 0.85rem;
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.site-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.site-footer p + p {
    margin-top: 6px;
}

.attribution {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ------------------------------------------------------------------ */
/* Dialogs                                                             */
/* ------------------------------------------------------------------ */
dialog.modal {
    border: none;
    padding: 0;
    background: transparent;
    color: var(--text-primary);
    width: calc(100% - 32px);
    max-width: 540px;
    max-height: 88vh;
    margin: auto;
}

dialog.modal::backdrop {
    background: rgba(0, 0, 0, 0.65);
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.modal-content > p + p {
    margin-top: 10px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.modal-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

.close-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.close-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.steps {
    list-style: decimal;
    margin: 12px 0 0 22px;
    color: var(--text-secondary);
}

.steps li + li {
    margin-top: 6px;
}

.guide-disclaimer {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 8px 0 12px;
}

.guide-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guide-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-base);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.item-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.item-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.guide-empty {
    color: var(--text-secondary);
    text-align: center;
    padding: 16px;
}

/* ------------------------------------------------------------------ */
/* Toast                                                               */
/* ------------------------------------------------------------------ */
.toast {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 32px);
    background: var(--toast-bg);
    color: var(--toast-text);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    z-index: 1500;
    font-size: 0.95rem;
}

/* ------------------------------------------------------------------ */
/* Privacy page                                                        */
/* ------------------------------------------------------------------ */
.prose {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-card);
}

.prose h1 {
    font-size: 1.7rem;
    line-height: 1.2;
    margin-bottom: 8px;
}

.prose h2 {
    font-size: 1.2rem;
    margin: 26px 0 8px;
}

.prose p,
.prose li {
    color: var(--text-secondary);
}

.prose p + p {
    margin-top: 10px;
}

.prose ul {
    list-style: disc;
    margin: 8px 0 0 22px;
}

.prose li + li {
    margin-top: 6px;
}

.prose strong {
    color: var(--text-primary);
}

/* ------------------------------------------------------------------ */
/* Small screens                                                       */
/* ------------------------------------------------------------------ */
@media (max-width: 640px) {
    .app-container {
        padding: 12px 16px;
    }

    .street-sign-title {
        font-size: 1.6rem;
    }

    .street-sign-stripe {
        font-size: 0.9rem;
        padding: 3px 12px;
    }

    .street-sign-text {
        padding: 8px 12px 4px;
    }

    .landing-card,
    .prose {
        padding: 20px 16px;
    }

    .landing-heading {
        font-size: 1.45rem;
    }

    .input-row {
        flex-direction: column;
    }

    .hero-spotlight,
    .panel {
        padding: 18px 16px;
    }

    .trash-cards-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px;
    }

    .timeline-bins-pills {
        justify-content: flex-start;
    }

    .quick-tools {
        grid-template-columns: 1fr;
    }

    .weather-days {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .info-card-actions .btn-secondary {
        flex: 1 1 auto;
    }

    .bin-avatar {
        width: 90px;
        height: 110px;
    }

    .bin-photo-img {
        height: 105px;
    }

    .sale-item {
        grid-template-columns: auto 1fr;
    }

    .sale-details {
        grid-column: 1 / -1;
    }

    .button-row-end {
        justify-content: stretch;
    }

    .button-row-end > * {
        flex: 1 1 100%;
    }
}

@media (max-width: 380px) {
    .street-sign-title {
        font-size: 1.3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
