/* ==========================================================
   Kaizen City — Editorial / News-Dense Stylesheet
   Premium newspaper aesthetic: black typography, tight grids,
   colorful live-data panels, information-dense layout.
   Colors/fonts via :root { {{ theme_css }} }
   ========================================================== */

/* --- Keyframes --- */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes subtleSlideIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes grainShift {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-2%, -2%); }
    30% { transform: translate(1%, -1%); }
    50% { transform: translate(-1%, 2%); }
    70% { transform: translate(2%, 1%); }
    90% { transform: translate(-2%, 1%); }
}

/* --- Reset & Base --- */

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

html {
    font-size: 15px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    color: #1a1a1a;
    background: #ffffff;
    line-height: 1.45;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-secondary, var(--color-primary));
    text-decoration: underline;
}


/* --- Screen Reader Only (accessibility) --- */

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


/* --- Skip Link (accessibility) --- */

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 999;
    background: var(--color-primary, #1a5276);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 6px 6px;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    transition: top 0.15s ease;
}

.skip-link:focus {
    top: 0;
    outline: none;
    color: #fff;
    text-decoration: none;
}


/* --- Focus Indicators (WCAG AA) --- */

*:focus-visible {
    outline: 2px solid var(--color-primary, #1a5276);
    outline-offset: 2px;
}

a:focus-visible {
    outline: 2px solid var(--color-primary, #1a5276);
    outline-offset: 2px;
    border-radius: 2px;
    text-decoration: none;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-primary, #1a5276);
    outline-offset: 2px;
}

.nav-link:focus-visible {
    outline: 2px solid var(--color-primary, #1a5276);
    outline-offset: -2px;
    border-radius: 2px;
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--color-primary, #1a5276);
    outline-offset: 2px;
    border-radius: 4px;
}

.scope-tab:focus-visible {
    outline: 2px solid var(--color-primary, #1a5276);
    outline-offset: -2px;
}

.site-footer a:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
    border-radius: 2px;
}

.alert-bar a:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.wx-panel a:focus-visible,
.wx-panel button:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}


::selection {
    background: var(--color-primary);
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}


/* --- Alert Bar --- */

.alert-bar {
    background: #d32f2f;
    color: #fff;
    padding: 0.5rem 0;
    font-size: 0.8125rem;
    text-align: center;
    letter-spacing: 0.02em;
    line-height: 1.5;
    animation: subtleSlideIn 0.4s ease-out;
    position: relative;
    z-index: 200;
}

.alert-bar--emergency {
    background: #b71c1c;
    padding: 0.75rem 0;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(183, 28, 28, 0.35);
}

.alert-bar--warning {
    background: #e65100;
    box-shadow: 0 2px 6px rgba(230, 81, 0, 0.25);
}

.alert-bar--watch {
    background: #f57f17;
    color: #1a1a1a;
}

.alert-bar--advisory,
.alert-bar--info {
    background: var(--color-primary, #3a7a8a);
}

.alert--emergency { background: transparent; }
.alert--warning { background: transparent; }
.alert--watch { background: transparent; }
.alert--advisory { background: transparent; }
.alert--info { background: transparent; }

.alert {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.1rem 0;
}

.alert__icon {
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.alert__text {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.7rem;
}

.alert-bar--emergency .alert__text {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

.alert-bar__link {
    display: inline-block;
    margin-top: 0.2rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-decoration: underline;
}

.alert-bar__link:hover {
    color: #fff;
}

.alert-bar--watch .alert-bar__link {
    color: rgba(0,0,0,0.6);
}

.alert-bar--watch .alert-bar__link:hover {
    color: #1a1a1a;
}

.nav-link--emergency {
    color: #c62828;
    font-weight: 700;
}


/* --- Site Header --- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.5rem 0;
    border-bottom: 2px solid #111;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

.site-header--compact {
    padding: 0.3rem 0;
}

.site-header--compact .site-header__city {
    font-size: 1.15rem;
}

.nav-link--sm {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
}

.site-header:has(+ main :not(:first-child)) {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-header__brand {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.site-header__brand:hover {
    text-decoration: none;
}

.site-header__city {
    font-family: var(--font-heading, Georgia, "Times New Roman", serif);
    font-size: 1.375rem;
    font-weight: 900;
    color: #111;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.site-header__tagline {
    font-size: 0.625rem;
    color: #696969;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    line-height: 1.4;
}

.site-header__nav {
    display: flex;
    gap: 0;
    align-items: center;
}

.nav-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1a1a1a;
    padding: 0.4rem 0.75rem;
    border-radius: 0;
    transition: color 0.15s ease;
    position: relative;
    line-height: 1.4;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.nav-link--active {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
}

.nav-link--active:hover {
    color: var(--color-primary);
}

.nav-link--featured {
    color: var(--color-primary);
    font-weight: 700;
}

.nav-link--featured:hover {
    color: var(--color-secondary, var(--color-primary));
}


/* --- Nav Toggle (hamburger) --- */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.nav-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.nav-toggle__bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #111;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle--open .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle--open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle--open .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* --- Hero --- */

.hero {
    background-color: var(--color-primary);
    background-size: cover;
    background-position: center;
    min-height: 38vh;
    max-height: 40vh;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -50%;
    width: 300%;
    height: 300%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    pointer-events: none;
    z-index: 1;
    animation: grainShift 8s steps(6) infinite;
    mix-blend-mode: overlay;
}

.hero__overlay {
    width: 100%;
    padding: 3rem 0 2rem;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.1) 75%,
        transparent 100%
    );
    position: relative;
    z-index: 2;
}

.hero__welcome {
    font-family: var(--font-heading, Georgia, "Times New Roman", serif);
    font-size: clamp(2rem, 5vw, 3.25rem);
    color: #fff;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__weather {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.95);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero__temp {
    font-size: 2rem;
    font-weight: 300;
    font-family: var(--font-heading, Georgia, serif);
    letter-spacing: -0.02em;
    line-height: 1;
}

.hero__conditions {
    font-size: 0.9375rem;
    opacity: 0.85;
    font-weight: 400;
}


/* --- Sections --- */

.section {
    padding: 2.5rem 0;
    animation: fadeIn 0.5s ease both;
    border-bottom: 1px solid #e0e0e0;
}

.section:last-of-type {
    border-bottom: none;
}

.section--alt {
    background: #f8f8f7;
}

.section--editorial {
    padding: 2rem 0;
}

.section__heading {
    font-family: var(--font-heading, Georgia, "Times New Roman", serif);
    font-size: 1.125rem;
    font-weight: 900;
    color: #111;
    margin-bottom: 1.25rem;
    letter-spacing: 0.06em;
    line-height: 1.3;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid #111;
}

.section__heading::after {
    content: none;
}

.section__empty {
    color: #636363;
    font-style: italic;
    font-size: 0.875rem;
    line-height: 1.45;
}


/* --- Grid --- */

.grid { display: grid; gap: 1.5rem; }
.grid--2col { grid-template-columns: 1fr 1fr; }

.stack { display: flex; flex-direction: column; gap: 1rem; }


/* --- Cards (generic) --- */

.card {
    background: #fff;
    border-radius: 0;
    padding: 1.25rem;
    box-shadow: none;
    border: 1px solid #e0e0e0;
    transition: border-color 0.2s ease;
    animation: subtleSlideIn 0.4s ease both;
}

.card:hover {
    transform: none;
    border-color: #bbb;
    box-shadow: none;
}

.card__heading {
    font-family: var(--font-heading, Georgia, serif);
    font-size: 0.6875rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 0.875rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-transform: uppercase;
}

.card__empty {
    color: #636363;
    font-size: 0.8125rem;
    font-style: italic;
    line-height: 1.45;
}

.card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.875rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.card__link::after {
    content: "\2192";
    transition: transform 0.2s ease;
}

.card__link:hover {
    text-decoration: none;
}

.card__link:hover::after {
    transform: translateX(3px);
}


/* --- Editorial Card --- */

.editorial-card {
    background: #fff;
    border-radius: 0;
    padding: 1.5rem;
    border-left: 4px solid #111;
    box-shadow: none;
    border-top: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    transition: border-left-color 0.2s ease;
    animation: subtleSlideIn 0.4s ease both;
}

.editorial-card:hover {
    transform: none;
    border-left-color: var(--color-primary);
    box-shadow: none;
}

.editorial-card__heading {
    font-family: var(--font-heading, Georgia, "Times New Roman", serif);
    font-size: 1.5rem;
    color: #111;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    font-weight: 900;
}

.editorial-card__date {
    font-size: 0.6875rem;
    color: #636363;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    line-height: 1.4;
}

.editorial-card__body {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #1a1a1a;
}

.editorial-card__body p {
    margin-bottom: 1rem;
}

.editorial-card__body p:last-child {
    margin-bottom: 0;
}

.editorial-card__body p + p {
    margin-top: 0;
}


/* --- Event List (sidebar) --- */

.event-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.event-list__item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    transition: background 0.15s ease;
}

.event-list__item:first-child { padding-top: 0; }
.event-list__item:last-child { border-bottom: none; padding-bottom: 0; }

.event-list__item:hover {
    background: #f8f8f7;
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.event-list__date {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--color-accent, var(--color-primary));
    white-space: nowrap;
    min-width: 4.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.45;
}

.event-list__detail strong {
    display: block;
    font-size: 0.8125rem;
    line-height: 1.4;
    font-weight: 700;
    color: #1a1a1a;
}

.event-list__location {
    font-size: 0.6875rem;
    color: #636363;
    line-height: 1.4;
}


/* --- Event Grid (full page) --- */

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0;
}

.event-card {
    background: #fff;
    border-radius: 0;
    padding: 1rem 1.25rem;
    box-shadow: none;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    transition: background 0.15s ease;
    animation: subtleSlideIn 0.4s ease both;
}

.event-card:hover {
    transform: none;
    background: #fafaf9;
    box-shadow: none;
}

.event-card__date {
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--color-accent, var(--color-primary));
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.4;
}

.event-card__title {
    font-family: var(--font-heading, Georgia, serif);
    font-size: 1rem;
    margin: 0.2rem 0 0.4rem;
    color: #111;
    letter-spacing: -0.01em;
    line-height: 1.3;
    font-weight: 700;
}

.event-card__desc {
    font-size: 0.8125rem;
    color: #555;
    margin-bottom: 0.4rem;
    line-height: 1.45;
}

.event-card__location {
    font-size: 0.75rem;
    color: #636363;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.event-card__location::before {
    content: "";
    width: 3px;
    height: 3px;
    background: #aaa;
    border-radius: 50%;
    flex-shrink: 0;
}

.event-card__time {
    font-size: 0.75rem;
    color: #636363;
    line-height: 1.4;
}


/* --- Weather Panel --- */

.weather-detail__current {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0;
    padding: 1.25rem;
    border-bottom: none;
    background: linear-gradient(135deg, #0077b6, #00b4d8, #48cae4);
    border-radius: 8px;
    color: #fff;
    margin-bottom: 1rem;
}

.weather-detail__temp {
    font-family: var(--font-heading, Georgia, serif);
    font-size: 3.25rem;
    font-weight: 200;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.04em;
}

.weather-detail__desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    line-height: 1.4;
}

.weather-detail__stats {
    display: flex;
    gap: 1.25rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    font-weight: 500;
    padding: 0 1.25rem 0;
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    border-radius: 0 0 8px 8px;
    padding: 0.5rem 1.25rem 0.75rem;
    margin-top: -1rem;
}

.weather-detail__stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: rgba(255, 255, 255, 0.85);
}


/* --- Forecast Strip --- */

.forecast-strip {
    display: flex;
    gap: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f7fa;
    border: 1px solid #d0e4ec;
}

.forecast-day {
    flex: 1;
    text-align: center;
    padding: 0.75rem 0.4rem;
    border-right: 1px solid #d0e4ec;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    transition: background 0.15s ease;
    position: relative;
}

.forecast-day:last-child { border-right: none; }

.forecast-day:hover {
    background: #e4f0f5;
}

.forecast-day__name {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0077b6;
    line-height: 1.4;
}

.forecast-day__high {
    font-size: 1.125rem;
    font-weight: 800;
    color: #111;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.forecast-day__low {
    font-size: 0.75rem;
    color: #696969;
    font-weight: 500;
    line-height: 1.3;
}

.forecast-day__desc {
    font-size: 0.625rem;
    color: #636363;
    line-height: 1.3;
    font-style: italic;
}


/* --- Tides Panel --- */

.tide-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: linear-gradient(135deg, #1b4965, #277da1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #fff;
}

.tide-entry {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.15s ease;
}

.tide-entry:last-child { border-bottom: none; }

.tide-entry:hover {
    background: rgba(255, 255, 255, 0.06);
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 4px;
}

.tide-entry__type {
    font-size: 0.5625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    min-width: 3rem;
    text-align: center;
    line-height: 1.5;
}

.tide-entry__type--high {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.tide-entry__type--low {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
}

.tide-entry__time {
    font-weight: 700;
    font-size: 0.8125rem;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
    color: #fff;
}

.tide-entry__height {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
}


/* --- News --- */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.news-card {
    background: #fff;
    border-radius: 0;
    padding: 1rem 1.25rem;
    box-shadow: none;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    transition: background 0.15s ease;
    animation: subtleSlideIn 0.4s ease both;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: none;
    background: #fafaf9;
    box-shadow: none;
}

/* --- News Scope Tabs --- */

.scope-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    padding: 0;
    background: none;
    border-radius: 0;
    border-bottom: 2px solid #e0e0e0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.scope-tabs::-webkit-scrollbar { display: none; }

.scope-tab {
    background: none;
    border: none;
    font-family: var(--font-body, sans-serif);
    font-size: 0.8125rem;
    font-weight: 600;
    color: #696969;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color 0.15s ease, border-color 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 0;
    line-height: 1.4;
    min-height: 2.75rem;
}

.scope-tab:hover {
    color: #1a1a1a;
    background: none;
}

.scope-tab--active {
    color: #111;
    background: none;
    box-shadow: none;
    border-bottom: 2px solid #111;
    font-weight: 700;
}

.scope-tab--active:hover {
    background: none;
}

.scope-tab__count {
    font-size: 0.625rem;
    background: #eee;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-weight: 700;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
    color: #555;
}

.scope-tab--active .scope-tab__count {
    background: #111;
    color: #fff;
}

.scope-panel { display: none; }
.scope-panel--active {
    display: block;
    animation: fadeIn 0.25s ease;
}


.news-card__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.news-card__date {
    font-size: 0.625rem;
    color: #696969;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
}

.news-card__source-name {
    font-size: 0.5625rem;
    font-weight: 700;
    color: #636363;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #f0f0f0;
    padding: 0.1rem 0.375rem;
    border-radius: 2px;
    line-height: 1.4;
}

.news-card__title {
    font-family: var(--font-heading, Georgia, "Times New Roman", serif);
    font-size: 1.0625rem;
    color: #111;
    line-height: 1.25;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.news-card__summary {
    font-size: 0.8125rem;
    color: #444;
    line-height: 1.45;
    flex: 1;
}

.news-card__source {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.news-card__source::after {
    content: "\2192";
    font-size: 0.8125rem;
    transition: transform 0.2s ease;
}

.news-card__source:hover {
    text-decoration: none;
}

.news-card__source:hover::after {
    transform: translateX(3px);
}


/* --- Business Directory --- */

.biz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0;
}

.biz-card {
    background: #fff;
    border-radius: 0;
    padding: 1rem 1.25rem;
    box-shadow: none;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    transition: background 0.15s ease;
    animation: subtleSlideIn 0.4s ease both;
}

.biz-card:hover {
    transform: none;
    background: #fafaf9;
    box-shadow: none;
}

.biz-card__name {
    font-family: var(--font-heading, Georgia, serif);
    font-size: 0.9375rem;
    color: #111;
    margin-bottom: 0.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.biz-card__category {
    display: inline-block;
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #636363;
    margin-bottom: 0.5rem;
    background: #f0f0f0;
    padding: 0.1rem 0.375rem;
    border-radius: 2px;
    line-height: 1.4;
}

.biz-card__address,
.biz-card__phone,
.biz-card__hours {
    font-size: 0.75rem;
    color: #555;
    margin-top: 0.2rem;
    line-height: 1.45;
}


/* --- Footer --- */

.site-footer {
    background: #111;
    color: rgba(255, 255, 255, 0.6);
    padding: 2.5rem 0 1.5rem;
    margin-top: 0;
    position: relative;
    border-top: 3px solid #111;
}

.site-footer::before {
    content: none;
}

.site-footer__grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.site-footer__brand {
    font-family: var(--font-heading, Georgia, serif);
    font-size: 1.125rem;
    color: #fff;
    margin-bottom: 0.4rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.site-footer__desc {
    font-size: 0.8125rem;
    max-width: 320px;
    line-height: 1.5;
}

.site-footer__links {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}

.site-footer__links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.35rem 0.6rem;
    border-radius: 0;
    transition: color 0.15s ease;
    line-height: 1.4;
    text-decoration: none;
}

.site-footer__links a:hover {
    color: #fff;
    text-decoration: none;
}

.site-footer__copy {
    font-size: 0.6875rem;
    opacity: 0.7;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
    line-height: 1.4;
    letter-spacing: 0.02em;
}


/* --- Responsive: Tablet --- */

@media (max-width: 768px) {
    .grid--2col { grid-template-columns: 1fr; }

    .nav-toggle {
        display: flex;
    }

    .site-header .container {
        flex-wrap: wrap;
        gap: 0;
    }

    .site-header__nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        border-top: 1px solid #e0e0e0;
        padding: 0.25rem 0;
        order: 3;
    }

    .site-header__nav--open {
        display: flex;
    }

    .site-header__nav .nav-link {
        width: 100%;
        padding: 0.75rem 0.25rem;
        font-size: 0.875rem;
        min-height: 48px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    }

    .site-header__nav .nav-link:last-child {
        border-bottom: none;
    }

    .hero {
        min-height: 30vh;
        max-height: 35vh;
    }

    .hero__welcome { font-size: 1.75rem; }
    .hero__temp { font-size: 1.75rem; }

    .hero__overlay {
        padding: 2.5rem 0 1.5rem;
    }

    .section {
        padding: 2rem 0;
    }

    .forecast-strip {
        flex-wrap: wrap;
        border-radius: 6px;
    }

    .forecast-day {
        min-width: calc(33.333% - 0.5rem);
        flex: unset;
    }

    .site-footer__grid {
        flex-direction: column;
        gap: 1.5rem;
    }

    .site-footer__links {
        flex-wrap: wrap;
    }

    .news-grid {
        grid-template-columns: 1fr 1fr;
    }

    .event-grid {
        grid-template-columns: 1fr;
    }

    .biz-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Responsive: Small Phone (390px) --- */

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 0.875rem;
    }

    .site-header {
        padding: 0.4rem 0;
    }

    .site-header__city {
        font-size: 1.125rem;
    }

    .hero {
        min-height: 25vh;
        max-height: 32vh;
    }

    .hero__overlay {
        padding: 2rem 0 1.25rem;
    }

    .hero__welcome {
        font-size: 1.5rem;
        line-height: 1.1;
    }

    .hero__weather {
        flex-direction: column;
        gap: 0.2rem;
    }

    .hero__temp {
        font-size: 1.5rem;
    }

    .section {
        padding: 1.5rem 0;
    }

    .section__heading {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .card {
        padding: 1rem;
    }

    .editorial-card {
        padding: 1rem;
    }

    .editorial-card__heading {
        font-size: 1.25rem;
    }

    .news-card {
        padding: 0.875rem 1rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .event-card {
        padding: 0.875rem 1rem;
    }

    .biz-card {
        padding: 0.875rem 1rem;
    }

    .biz-grid {
        grid-template-columns: 1fr;
    }

    .scope-tabs {
        margin-bottom: 1rem;
    }

    .scope-tab {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
        min-height: 48px;
    }

    .forecast-day {
        min-width: calc(33.333% - 0.25rem);
        padding: 0.5rem 0.2rem;
    }

    .weather-detail__temp {
        font-size: 2.5rem;
    }

    .site-footer {
        padding: 2rem 0 1.25rem;
    }

    .site-footer__grid {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .site-footer__links {
        gap: 0;
    }

    .site-footer__links a {
        padding: 0.4rem 0.5rem;
        min-height: 48px;
        display: flex;
        align-items: center;
    }
}

/* --- Reduced Motion --- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero::before {
        animation: none;
    }
}

/* --- Print --- */

@media print {
    .site-header,
    .site-footer,
    .alert-bar,
    .scope-tabs {
        display: none;
    }

    .hero {
        min-height: auto;
        max-height: auto;
        background: none !important;
    }

    .hero__overlay {
        background: none;
        padding: 1rem 0;
    }

    .hero__welcome {
        color: #000;
        text-shadow: none;
    }

    .card,
    .news-card,
    .event-card,
    .biz-card,
    .editorial-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }

    body {
        background: #fff;
        color: #000;
    }
}
