/* =================================================================
   HOME PAGE — Image-first newspaper layout
   NYT typography · Castanet density · No hero background
   ================================================================= */

/* ── CONTEXT STRIP (merged masthead + snapshot) ── */
.context-strip {
    border-bottom: 2px solid var(--season-accent, #111);
    padding: 0.4rem 0;
    background: none;
}
.context-strip__inner {
    display: flex;
    align-items: baseline;
    gap: 0;
    line-height: 1;
}
.context-strip__left {
    flex-shrink: 0;
    display: flex;
    align-items: baseline;
}
.context-strip__right {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    flex-wrap: wrap;
    flex: 1;
}
.context-strip__city {
    font-family: var(--font-body, 'Source Sans 3', sans-serif);
    font-size: 0.75rem;
    font-weight: 700;
    color: #555;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.3rem 0.55rem;
    white-space: nowrap;
    margin: 0;
    line-height: 1;
}
.context-strip__date {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    padding: 0.3rem 0.45rem;
    white-space: nowrap;
    line-height: 1;
}
.context-strip__date-mobile { display: none; }
.context-strip__icon { vertical-align: -0.15em; margin-right: 0.2rem; opacity: 0.7; }
/* Dark mode */
html[data-theme="dark"] .context-strip { background: none; border-bottom-color: var(--dk-border, #2e2e3a); }
html[data-theme="dark"] .context-strip__city { color: var(--dk-text-muted, #8e8e9a); }
html[data-theme="dark"] .context-strip__date { color: var(--dk-text-muted, #8e8e9a); }
html[data-theme="dark"] .context-strip__weather { color: var(--dk-text, #e2e2e6); }
/* ── MAIN GRID ── */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    padding: 0.35rem 0 2rem;
    align-items: start;
}
.home-main { min-width: 0; }
.home-sidebar {
    position: sticky;
    top: 60px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-top: 0.5rem;
}

/* ── SECTION RULES ── */
.section-rule { border: none; border-top: 2px solid var(--season-accent, #111); margin: 0 0 0.6rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.section-head__title { font-family: var(--font-heading, 'Playfair Display', serif); font-size: 1.15rem; font-weight: 800; color: #111; margin: 0; letter-spacing: -0.01em; }
.section-head__link { font-size: 0.8rem; font-weight: 600; color: var(--color-primary, #1a5276); white-space: nowrap; text-decoration: none; }
.section-head__link:hover { text-decoration: underline; }

/* ── EDITORIAL ── */
/* Editorial — sidebar card on desktop, slim banner on mobile */
.editorial { background: var(--season-tint, #fafaf8); border: 1px solid rgba(0,0,0,0.1); border-radius: 0.6rem; padding: 0.75rem 0.85rem; }
.editorial__label { display: inline-block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--season-accent, var(--color-primary, #1a5276)); margin-bottom: 0.35rem; }
.editorial__heading { font-family: var(--font-heading, 'Playfair Display', serif); font-size: 0.95rem; font-weight: 700; line-height: 1.25; margin: 0 0 0.3rem; color: #111; }
.editorial__heading a { color: inherit; text-decoration: none; }
.editorial__heading a:hover { color: var(--color-primary, #1a5276); }
a.editorial__label { text-decoration: none; }
a.editorial__label:hover { text-decoration: underline; }
.editorial__body { font-size: 0.78rem; line-height: 1.5; color: #333; }
.editorial__context { display: block; margin: 0.5rem 0 0; font-size: 0.7rem; line-height: 1.45; color: #5d6f5c; padding-top: 0.45rem; border-top: 1px solid rgba(0,0,0,0.06); }
.editorial__context strong { color: var(--season-accent, var(--color-primary, #1a5276)); font-weight: 700; }
/* Mobile: editorial becomes a slim inline banner in main column */
.editorial--mobile { display: none; }

/* ── SEASONAL ── */
/* seasonal-line removed — content folded into editorial sidebar card */

/* =================================================================
   NEWS — Image-first: lead, secondary grid, compact list
   ================================================================= */
.news-section { padding: 0; }


/* Lead story */
.news-lead { margin-bottom: 1.5rem; border-bottom: 1px solid #ddd; padding-bottom: 1.5rem; }
.news-lead__img-wrap { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #f0ede8; margin-bottom: 0.75rem; }
.news-lead__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.news-lead__img-wrap:hover .news-lead__img { transform: scale(1.02); }
.news-lead__source-bar { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.news-lead__source { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-primary, #1a5276); }
.news-lead__date { font-size: 0.72rem; color: #888; }
.news-lead__headline { font-family: var(--font-heading, 'Playfair Display', serif); font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 800; line-height: 1.18; color: #111; margin: 0 0 0.6rem; letter-spacing: -0.02em; }
.news-lead__headline a { color: inherit; text-decoration: none; }
.news-lead__headline a:hover { color: var(--color-primary, #1a5276); }
.news-lead__summary { font-size: 1rem; line-height: 1.65; color: #333; margin: 0 0 0.65rem; max-width: 680px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-lead__link { font-size: 0.8rem; font-weight: 700; color: var(--color-primary, #1a5276); text-decoration: none; letter-spacing: 0.02em; }
.news-lead__link:hover { text-decoration: underline; }
/* Lead story text-only variant (no image) */
.news-lead--text-only { border-left: 3px solid var(--color-primary, #1a5276); padding-left: 1.25rem; }
.news-lead--text-only .news-lead__headline { font-size: clamp(1.5rem, 3.8vw, 2.2rem); }

/* Secondary 3-column grid */
.news-grid-secondary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid #ddd; }
.news-card { display: flex; flex-direction: column; }
.news-card__img-wrap { aspect-ratio: 3 / 2; overflow: hidden; background: #f0ede8; margin-bottom: 0.6rem; flex-shrink: 0; }
.news-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease; }
.news-card__img-wrap:hover .news-card__img { transform: scale(1.03); }
.news-card__source { font-size: 0.64rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-primary, #1a5276); margin-bottom: 0.24rem; }
.news-card__headline { font-family: var(--font-heading, 'Playfair Display', serif); font-size: 0.95rem; font-weight: 700; line-height: 1.25; color: #111; margin: 0 0 0.35rem; letter-spacing: -0.01em; }
.news-card__headline a { color: inherit; text-decoration: none; }
.news-card__headline a:hover { color: var(--color-primary, #1a5276); }
.news-card__summary { font-size: 0.8rem; line-height: 1.5; color: #555; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 0.3rem; }
.news-card__date { font-size: 0.68rem; color: #999; margin-top: auto; }
/* Text-only card (no image) */
.news-card--text-only { padding-top: 0.6rem; border-top: 1px solid #e8e5e0; }
.news-card--text-only .news-card__headline { font-size: 0.9rem; }
.news-card--text-only .news-card__summary { -webkit-line-clamp: 3; }

/* Compact list (items 5+) */
.news-compact-list { display: flex; flex-direction: column; }
.news-compact-item { display: flex; gap: 0.85rem; align-items: flex-start; padding: 0.7rem 0; border-bottom: 1px solid rgba(0,0,0,0.07); }
.news-compact-item:last-child { border-bottom: none; }
.news-compact-item__thumb { flex-shrink: 0; width: 88px; height: 62px; object-fit: cover; }
.news-compact-item__body { flex: 1; min-width: 0; }
.news-compact-item__meta { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.15rem; }
.news-compact-item__source { font-size: 0.58rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-primary, #1a5276); }
.news-compact-item__date { font-size: 0.67rem; color: #999; }
.news-compact-item__headline { font-family: var(--font-heading, 'Playfair Display', serif); font-size: 0.88rem; font-weight: 700; line-height: 1.25; color: #111; margin: 0; letter-spacing: -0.01em; }
.news-compact-item__headline a { color: inherit; text-decoration: none; }
.news-compact-item__headline a:hover { text-decoration: underline; color: var(--color-primary, #1a5276); }
.news-compact-item__summary { font-size: 0.77rem; color: #666; line-height: 1.45; margin-top: 0.15rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.news-empty { text-align: center; padding: 2rem 1rem; color: #636363; font-size: 0.9rem; }

/* Events */
.events-compact { margin-bottom: 1.5rem; }
.event-row { display: flex; align-items: baseline; gap: 0.75rem; padding: 0.45rem 0; border-bottom: 1px solid rgba(0,0,0,0.06); font-size: 0.85rem; color: #111; }
.event-row:last-child { border-bottom: none; }
.event-row__date { flex-shrink: 0; width: 5.5rem; font-weight: 700; font-size: 0.76rem; color: var(--color-primary, #1a5276); text-transform: uppercase; letter-spacing: 0.03em; }
.event-row__title { flex: 1; font-weight: 600; color: #111; }
.event-row__location { flex-shrink: 0; font-size: 0.72rem; color: #636363; text-align: right; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.event-row__location:hover { color: var(--color-primary, #1a5276); text-decoration: underline; }
.event-group { margin-bottom: 0.5rem; }
.event-group__label { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-primary, #1a5276); padding: 0.35rem 0 0.15rem; }
.event-row--today { background: rgba(26,82,118,0.04); margin: 0 -0.5rem; padding-left: 0.5rem; padding-right: 0.5rem; border-radius: 4px; }
.event-row__time { flex-shrink: 0; font-size: 0.76rem; color: #444; white-space: nowrap; }
.events-actions { display: flex; gap: 1rem; margin-top: 0.5rem; font-size: 0.78rem; }
.home-section { margin-top: 1.75rem; }
.home-section__empty-link { color: var(--color-primary, #1a5276); }
.home-news-card__actions,
.home-news-compact-actions { display: inline-flex; align-items: center; }
.home-news-card__actions { gap: 0.2rem; }
.home-news-compact-actions { gap: 0.4rem; margin-top: 0.3rem; flex-wrap: wrap; }
.home-community-tag { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-primary, #1a5276); }

/* Sidebar: weather */
.wx-panel { background: linear-gradient(135deg, #1e88e5 0%, #1565c0 50%, #0d47a1 100%); border-radius: 0.6rem; padding: 1.1rem; color: #fff; box-shadow: 0 6px 24px rgba(13,71,161,0.22); }
.wx-panel__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.wx-panel__label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.66); }
.wx-panel__live { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #69f0ae; display: flex; align-items: center; gap: 0.3rem; }
.wx-panel__live::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #69f0ae; display: inline-block; }
.wx-panel__temp-row { display: flex; align-items: flex-end; gap: 0.6rem; margin-bottom: 0.35rem; }
.wx-panel__icon { font-size: 2.2rem; line-height: 1; }
.wx-panel__temp { font-size: 3rem; font-weight: 700; line-height: 1; }
.wx-panel__temp sup { font-size: 1.2rem; font-weight: 400; }
.wx-panel__desc { font-size: 0.95rem; text-transform: capitalize; color: rgba(255,255,255,0.85); padding-bottom: 0.15rem; }
.wx-panel__feels-like { font-size: 0.82rem; color: rgba(255,255,255,0.62); margin-bottom: 0.15rem; }
.wx-panel__details { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid rgba(255,255,255,0.15); }
.wx-detail { display: flex; flex-direction: column; }
.wx-detail__label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.62); }
.wx-detail__value { font-size: 0.95rem; font-weight: 600; }
.wx-panel__updated { font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.58); margin-top: 0.5rem; padding-top: 0.4rem; border-top: 1px solid rgba(255,255,255,0.1); }
/* HTMX live update pulse */
.wx-panel__live::before { animation: livePulse 2s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.wx-panel.htmx-settling { opacity: 0.85; }
.wx-panel { transition: opacity 0.3s ease; }
.front-masthead__weather { transition: opacity 0.3s ease; }
.front-masthead__weather.htmx-settling { opacity: 0.7; }

/* Sidebar: forecast */
.forecast-strip { background: #fff; border: 1px solid rgba(0,0,0,0.1); border-radius: 0.6rem; padding: 0.9rem; }
.forecast-strip .forecast-day { border-right-color: rgba(0,0,0,0.06); transition: none; }
.forecast-strip .forecast-day:hover { background: transparent; }
.forecast-strip__title { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #696969; margin-bottom: 0.55rem; }
.forecast-strip__days { display: flex; gap: 0; justify-content: space-between; }
.forecast-day { text-align: center; flex: 1; font-size: 0.72rem; }
.forecast-day__name { display: block; font-weight: 700; font-size: 0.6rem; letter-spacing: 0.05em; text-transform: uppercase; color: #636363; margin-bottom: 0.15rem; }
.forecast-day__icon { display: block; font-size: 1.3rem; line-height: 1.1; margin-bottom: 0.1rem; }
.forecast-day__temps { font-weight: 700; color: #111; font-size: 0.82rem; }
.forecast-day__temps span { font-weight: 400; color: #767676; font-size: 0.72rem; }
.forecast-day__desc { font-size: 0.6rem; color: #888; margin-top: 0.15rem; }

/* Sidebar: tides */
.tides-bar { background: #fff; border: 1px solid rgba(0,0,0,0.1); border-radius: 0.6rem; padding: 0.9rem; }
.tides-bar__title { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #696969; margin-bottom: 0.55rem; }
.tides-bar__station { font-weight: 400; text-transform: none; letter-spacing: 0; }
.tides-bar__entries { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tide-chip { display: flex; align-items: center; gap: 0.3rem; background: #f5f3ef; border-radius: 4px; padding: 0.3rem 0.5rem; font-size: 0.72rem; }
.tide-chip__type { font-weight: 700; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.05em; }
.tide-chip__type--high { color: #1565c0; }
.tide-chip__type--low  { color: #7b5e00; }
.tide-chip__time { color: #333; }
.tide-chip__height { color: #666; font-size: 0.68rem; }

/* Sidebar: alerts */
.alerts-panel { background: #fff7f0; border: 1px solid #f2c4a0; border-radius: 0.6rem; padding: 0.9rem; }
.alerts-panel__title { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #b85c00; margin-bottom: 0.5rem; }
.alerts-panel__item { display: flex; gap: 0.4rem; font-size: 0.8rem; color: #333; margin-bottom: 0.4rem; line-height: 1.4; }
.alerts-panel__icon { flex-shrink: 0; font-size: 0.85rem; }
.alerts-panel__link { font-size: 0.72rem; font-weight: 600; color: #b85c00; text-decoration: none; display: block; margin-top: 0.5rem; }
.alerts-panel__link:hover { text-decoration: underline; }

/* Sidebar: civic */
.civic-sidebar { background: #fff; border: 1px solid rgba(0,0,0,0.1); border-radius: 0.6rem; padding: 0.9rem; }
.civic-sidebar__title { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #696969; margin-bottom: 0.5rem; }
.civic-row { display: flex; align-items: baseline; gap: 0.4rem; padding: 0.3rem 0; border-bottom: 1px solid rgba(0,0,0,0.05); font-size: 0.78rem; flex-wrap: wrap; }
.civic-row:last-of-type { border-bottom: none; }
.civic-row__badge { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; background: #eef2f7; color: var(--color-primary, #1a5276); padding: 0.18rem 0.48rem; border-radius: 999px; white-space: nowrap; }
.civic-row__text { flex: 1; color: #222; }
.civic-row__date { font-size: 0.72rem; color: #777; white-space: nowrap; }
.civic-sidebar__link { font-size: 0.72rem; font-weight: 600; color: var(--color-primary, #1a5276); text-decoration: none; display: block; margin-top: 0.5rem; }
.civic-sidebar__link:hover { text-decoration: underline; }

/* Directory preview */
.directory-preview__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 0.5rem; }
.biz-card { display: flex; flex-direction: column; padding: 0.85rem; border: 1px solid rgba(0,0,0,0.1); border-radius: 0.5rem; text-decoration: none; color: inherit; transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s; background: #fff; }
.biz-card:hover { background-color: #fafaf9; border-color: var(--color-primary, #1a5276); box-shadow: 0 4px 12px rgba(0,0,0,0.12); color: inherit; text-decoration: none; }
.biz-card__top { display: flex; align-items: center; justify-content: space-between; gap: 0.45rem; margin-bottom: 0.35rem; }
.biz-card__category { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-primary, #1a5276); }
.biz-card__status { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.18rem 0.45rem; border-radius: 999px; white-space: nowrap; }
.biz-card__status--open { background: #e8f5e9; color: #2e7d32; }
.biz-card__status--closed { background: #fbe9e7; color: #c62828; }
.biz-card__name { font-family: var(--font-heading, 'Playfair Display', serif); font-size: 0.92rem; font-weight: 700; line-height: 1.25; color: #111; margin: 0 0 0.25rem; }
.biz-card__desc { font-size: 0.75rem; line-height: 1.45; color: #555; margin: 0 0 0.3rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.biz-card__address { font-size: 0.74rem; color: #777; margin-top: auto; }

/* Newsletter */
.life-section { background: #f5f3ef; border-top: 2px solid #111; padding: 2rem 0; margin-top: 2rem; }
.life-section__inner { max-width: 560px; }
.life-section__title { font-family: var(--font-heading, 'Playfair Display', serif); font-size: 1.4rem; font-weight: 800; color: #111; margin: 0 0 0.4rem; }
.life-section__text { font-size: 0.9rem; color: #444; margin: 0 0 1rem; line-height: 1.55; }
.newsletter-cta { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.newsletter-cta__input { flex: 1; min-width: 200px; padding: 0.65rem 0.9rem; border: 1.5px solid #ccc; border-radius: 4px; font-size: 0.9rem; min-height: 44px; background: #fff; color: #111; }
.newsletter-cta__input:focus { outline: 2px solid var(--color-primary, #1a5276); outline-offset: -1px; border-color: var(--color-primary, #1a5276); }
.newsletter-cta__btn { padding: 0.65rem 1.4rem; background: #111; color: #fff; border: none; border-radius: 4px; font-weight: 700; font-size: 0.88rem; cursor: pointer; min-height: 44px; transition: background 0.15s; }
.newsletter-cta__btn:hover { background: var(--color-primary, #1a5276); }

/* ── INLINE FORECAST (mobile/tablet only — desktop has sidebar) ── */
.forecast-inline { display: none; border-bottom: 1px solid rgba(0,0,0,0.08); padding: 0.35rem 0; background: var(--season-tint, rgba(0,0,0,0.015)); }
.forecast-inline__inner { display: flex; align-items: center; gap: 0.2rem; }
.forecast-inline__days { display: flex; flex: 1; justify-content: space-around; }
.forecast-inline__day { text-align: center; min-width: 0; }
.forecast-inline__day-name { display: block; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #888; line-height: 1; }
.forecast-inline__day-icon { display: block; font-size: 1.05rem; line-height: 1.25; }
.forecast-inline__day-temps { font-size: 0.75rem; font-weight: 700; color: #333; line-height: 1; }
.forecast-inline__day-temps span { font-weight: 400; color: #888; font-size: 0.65rem; }
.forecast-inline__link { font-size: 0.72rem; font-weight: 600; color: var(--color-primary, #1a5276); text-decoration: none; white-space: nowrap; padding: 0.65rem 0.5rem; min-height: 44px; display: flex; align-items: center; }
.forecast-inline__link:hover { text-decoration: underline; }
@media (max-width: 1000px) {
    .forecast-inline { display: block; }
    .forecast-inline__day-name { font-size: 0.8rem; }
    .forecast-inline__day-temps span { font-size: 0.8rem; }
    .forecast-inline__link { font-size: 0.8rem; }
}

/* ── SNAPSHOT BAR ── */
/* Snapshot items (inside context strip) */
.snapshot-bar__item { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.8rem; color: #43515c; text-decoration: none; white-space: nowrap; padding: 0.3rem 0.45rem; border-radius: 999px; min-height: 32px; transition: background 0.15s; line-height: 1; }
a.snapshot-bar__item:hover { color: var(--color-primary, #1a5276); background: rgba(0,0,0,0.03); }
.snapshot-bar__icon { font-size: 0.78rem; line-height: 1; color: var(--season-accent, var(--color-primary, #1a5276)); }
.snapshot-bar__content { display: inline-flex; align-items: baseline; gap: 0.2rem; min-width: 0; }
.snapshot-bar__label { font-weight: 600; color: #6d7983; font-size: 0.78rem; }
.snapshot-bar__value { font-size: 0.82rem; font-weight: 700; color: #243039; }
.snapshot-bar__sep { color: #ccc; font-size: 0.4rem; user-select: none; }
.snapshot-bar__aqi-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 0.15rem; vertical-align: middle; }
.snapshot-bar__item--outage { background: rgba(230, 81, 0, 0.1); }
.snapshot-bar__item--outage .snapshot-bar__icon { color: #e65100; }
.snapshot-bar__item--outage .snapshot-bar__value { color: #c62828; }
html[data-theme="dark"] .snapshot-bar__item--outage { background: rgba(230, 81, 0, 0.2); }
html[data-theme="dark"] .snapshot-bar__item--outage .snapshot-bar__value { color: #ef9a9a; }
html[data-theme="dark"] .event-row--today { background: rgba(255,255,255,0.05); }
html[data-theme="dark"] .event-row__time { color: var(--dk-text-muted, #8e8e9a); }
html[data-theme="dark"] .event-row__location:hover { color: var(--dk-link, #7ab4d9); }
html[data-theme="dark"] .event-group__label { color: var(--dk-text-muted, #8e8e9a); }

/* ── EVENTS TEASER (compact strip between news and secondary content) ── */
.events-teaser {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 0.5rem 0.75rem;
    border-left: 3px solid var(--color-primary, #1a5276);
    background: rgba(26, 82, 118, 0.04);
    border-radius: 0 6px 6px 0;
    text-decoration: none;
    color: inherit;
    min-height: 44px;
    transition: background-color 0.18s ease;
}
.events-teaser:hover {
    background: rgba(26, 82, 118, 0.08);
    text-decoration: none;
    color: inherit;
}
.events-teaser__icon {
    flex-shrink: 0;
    color: var(--color-primary, #1a5276);
    opacity: 0.7;
}
.events-teaser__next {
    font-size: 0.88rem;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.events-teaser__date {
    font-size: 0.82rem;
    color: #6b655d;
    white-space: nowrap;
    flex-shrink: 0;
}
.events-teaser__more {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-primary, #1a5276);
    white-space: nowrap;
    margin-left: auto;
    flex-shrink: 0;
}

/* Desktop: weather is in sidebar, hide from context strip */
@media (min-width: 1001px) {
    .context-strip__weather { display: none; }
}

/* Responsive */
@media (max-width: 1000px) {
    .home-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    /* sidebar comes AFTER main content — news is king */
    .home-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
    .wx-panel { grid-column: 1 / -1; }
    .news-grid-secondary { grid-template-columns: 1fr 1fr; }
    /* editorial: show abbreviated sidebar version on mobile (below tides) */
    .home-sidebar .editorial { grid-column: 1 / -1; padding: 0.55rem 0.85rem; border-radius: 4px; }
    .home-sidebar .editorial .editorial__body,
    .home-sidebar .editorial .editorial__context { display: none; }
    .home-sidebar .editorial .editorial__heading { font-size: 0.95rem; margin-bottom: 0; }
    .home-sidebar .editorial .editorial__label { margin-bottom: 0.15rem; }
    /* Audit S50: enforce 0.8rem (12px) floor for sidebar/metadata when single-column.
       These were only bumped at 640px but sidebar elements are visible from 1000px down. */
    /* Session 49: raise all mobile text to 0.93rem floor (15px root → ~14px) */
    .news-lead__source,
    .news-card__source,
    .news-compact-item__source { font-size: 0.93rem; letter-spacing: 0.05em; }
    .news-lead__date,
    .news-card__date,
    .news-compact-item__date { font-size: 0.93rem; }
    .news-lead__link { font-size: 0.93rem; }
    .news-compact-item__summary { font-size: 0.93rem; }
    .news-card__summary { font-size: 0.93rem; }
    .forecast-strip__title { font-size: 0.93rem; }
    .forecast-day { font-size: 0.93rem; }
    .forecast-day__name { font-size: 0.93rem; }
    .forecast-day__desc { font-size: 0.93rem; }
    .forecast-day__temps { font-size: 0.93rem; }
    .forecast-day__temps span { font-size: 0.93rem; }
    .editorial__label { font-size: 0.93rem; }
    .tides-bar__title { font-size: 0.93rem; }
    .tides-bar__station { font-size: 0.93rem; }
    .tide-chip { font-size: 0.93rem; }
    .tide-chip__type { font-size: 0.93rem; }
    .tide-chip__time { font-size: 0.93rem; }
    .tide-chip__height { font-size: 0.93rem; }
    .civic-sidebar__title { font-size: 0.93rem; }
    .civic-sidebar__link { font-size: 0.93rem; }
    .civic-row { font-size: 0.93rem; }
    .civic-row__badge { font-size: 0.93rem; }
    .civic-row__date { font-size: 0.93rem; }
    .biz-card__category,
    .biz-card__status { font-size: 0.93rem; }
    .biz-card__desc,
    .biz-card__address { font-size: 0.93rem; }
    .wx-panel__label,
    .wx-panel__live,
    .wx-detail__label,
    .wx-panel__updated { font-size: 0.93rem; }
    .wx-detail__value { font-size: 0.95rem; }
    .event-row__date { font-size: 0.93rem; }
    .event-row__time { font-size: 0.93rem; }
    .snapshot-bar__label,
    .snapshot-bar__value { font-size: 0.93rem; }
    .news-bookmark__label { font-size: 0.93rem; }
}
@media (max-width: 640px) {
    /* Context strip: compact single row on mobile */
    .context-strip { padding: 0.25rem 0; border-bottom-width: 1px; }
    .context-strip__inner { flex-direction: row; align-items: baseline; gap: 0; overflow: hidden; }
    .context-strip__left { display: flex; align-items: baseline; gap: 0; min-width: 0; overflow: hidden; flex: 1 1 auto; }
    .context-strip__right { flex: 0 0 auto; flex-wrap: nowrap; gap: 0; overflow: visible; align-items: baseline; }
    .context-strip__city { display: block; font-size: 0.93rem; padding: 0.2rem 0.25rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 0 1 auto; }
    .context-strip__date-desktop { display: none; }
    .context-strip__date-mobile { display: inline; }
    .context-strip__date { font-size: 0.93rem; font-weight: 600; padding: 0.2rem 0.2rem; margin-left: 0; flex-shrink: 0; }
    .context-strip__weather { display: inline-flex; font-size: 0.93rem; font-weight: 700; padding: 0.15rem 0.35rem; white-space: nowrap; }
    /* Hide snapshot items on mobile — available on their own pages */
    .context-strip .snapshot-bar__item { display: none; }
    /* Hide 5-day strip on phones — news must appear before weather (Prime Directive #2) */
    .forecast-inline { display: none; }
    /* Editorial: tighter on small phones */
    .home-sidebar .editorial { padding: 0.45rem 0.75rem; }
    .home-sidebar .editorial .editorial__heading { font-size: 0.93rem; }
    /* Events teaser: tighter on mobile */
    .events-teaser { margin: 0.65rem 0; padding: 0.4rem 0.65rem; gap: 0.35rem; }
    .events-teaser__next { font-size: 0.93rem; }
    .events-teaser__date { font-size: 0.93rem; }
    .events-teaser__more { font-size: 0.93rem; }
    .section-head__link { font-size: 0.93rem; min-height: 44px; display: inline-flex; align-items: center; }
    /* Lead story CTA: honest touch target */
    .news-lead__link { min-height: 44px; display: inline-flex; align-items: center; }
    /* Compact weather panel on mobile */
    .wx-panel { padding: 0.85rem; }
    .wx-panel__temp { font-size: 2rem; }
    .wx-panel__details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem 0.75rem; }
    .wx-panel__label,
    .wx-panel__live,
    .wx-detail__label,
    .wx-panel__updated { font-size: 0.93rem; }
    .wx-detail__value { font-size: 0.95rem; }
    /* Sidebar becomes single column on small screens */
    .home-sidebar { grid-template-columns: 1fr; }
    .wx-panel { grid-column: auto; }
    .news-grid-secondary { grid-template-columns: 1fr 1fr; }
    .news-compact-item { padding: 0.55rem 0; }
    .news-compact-item__headline { font-size: 0.93rem; }
    .news-compact-item__headline a { display: inline-block; padding: 0.4rem 0; }
    .news-compact-item__thumb { width: 70px; height: 50px; }
    .event-row {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0.28rem;
        padding: 0.6rem 0;
        font-size: 0.93rem;
    }
    .event-row__date {
        width: auto;
        font-size: 0.93rem;
        line-height: 1.35;
    }
    .event-row__time {
        font-size: 0.93rem;
    }
    .event-row__location {
        display: none;
    }
    .event-group__label {
        font-size: 0.93rem;
    }
    .event-row--today {
        margin: 0 -0.35rem;
        padding: 0.5rem 0.35rem;
    }
    .events-actions {
        flex-wrap: wrap;
        gap: 0.7rem;
    }
    .events-actions a { min-height: 44px; display: inline-flex; align-items: center; }
    .home-community-tag {
        font-size: 0.93rem;
        line-height: 1.35;
    }
    .civic-row {
        gap: 0.45rem 0.55rem;
        padding: 0.55rem 0;
    }
    .civic-row__date {
        width: 100%;
    }
    .biz-card__top {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 0.45rem 0.55rem;
    }
    .directory-preview__grid { grid-template-columns: 1fr; }
    .newsletter-cta { flex-direction: column; }
    .newsletter-cta__btn { width: 100%; font-size: 0.93rem; }
    /* Snapshot items: touch-friendly on mobile */
    .snapshot-bar__item { font-size: 0.93rem; padding: 0.3rem 0.4rem; min-height: 38px; }
    .biz-card__name { font-size: 0.93rem; }
    .wx-panel__feels-like { font-size: 0.93rem; }
    .snapshot-bar__sep { display: none; }
    /* Phone touch targets for sidebar links */
    .editorial__label { min-height: 44px; display: inline-flex; align-items: center; }
    .editorial__heading a { min-height: 44px; display: inline-flex; align-items: center; }
    .alerts-panel__link { min-height: 44px; display: inline-flex; align-items: center; }
    .civic-sidebar__link { min-height: 44px; display: inline-flex; align-items: center; }
    .life-section__text { font-size: 0.93rem; }
}

/* ── Scope panel skeleton (shown while HTMX loads deferred scope content) ── */
.scope-skeleton { padding: 0.5rem 0; }
.scope-skeleton__lead { margin-bottom: 1rem; }
.scope-skeleton__img {
    width: 100%; height: 180px; border-radius: 4px;
    background: linear-gradient(90deg, #eee 25%, #e0e0e0 50%, #eee 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
    margin-bottom: 0.75rem;
}
.scope-skeleton__line {
    border-radius: 3px;
    background: linear-gradient(90deg, #eee 25%, #e0e0e0 50%, #eee 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
.scope-skeleton__line--title { height: 1.2rem; width: 85%; margin-bottom: 0.5rem; }
.scope-skeleton__line--sub { height: 0.9rem; width: 55%; margin-bottom: 0.5rem; }
.scope-skeleton__rows { display: flex; flex-direction: column; gap: 0.65rem; }
.scope-skeleton__line--row { height: 0.85rem; width: 100%; }
.scope-skeleton__line--row:nth-child(2) { width: 90%; }
.scope-skeleton__line--row:nth-child(3) { width: 75%; }
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
html[data-theme="dark"] .scope-skeleton__img,
html[data-theme="dark"] .scope-skeleton__line {
    background: linear-gradient(90deg, #2a2a35 25%, #33333e 50%, #2a2a35 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) .scope-skeleton__img,
    html:not([data-theme="light"]) .scope-skeleton__line {
        background: linear-gradient(90deg, #2a2a35 25%, #33333e 50%, #2a2a35 75%);
        background-size: 200% 100%;
        animation: skeleton-shimmer 1.4s ease-in-out infinite;
    }
}

/* Dark mode for home page components is handled by html.dark in kaizen.css */
