/* =================================================================
   HOME PAGE — eh-local homepage styles
   All design tokens (--red, --bg, --surface, --border, etc.) come
   from ehlocal.css — never redefine them here.
   ================================================================= */

/* ── ANIMATIONS ── */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* ── STATUS BAR ── */
.status-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.status-bar::-webkit-scrollbar { display: none; }

.status-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 24px;
  white-space: nowrap;
  border-right: 1px solid var(--border);
  min-width: fit-content;
  gap: 2px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.status-tile:last-child { border-right: none; }
a.status-tile:hover { background: var(--surface-hover); text-decoration: none; color: inherit; }

.status-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.status-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.status-value .red { color: var(--red); font-weight: 700; }
.status-value .aqi-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  vertical-align: middle;
  margin-left: 4px;
  animation: pulse-dot 2s ease infinite;
}

/* ── INLINE FORECAST (mobile only — shown when sidebar below fold) ── */
.forecast-inline {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.forecast-inline__inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.forecast-inline__days {
  display: flex;
  gap: 0;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.forecast-inline__days::-webkit-scrollbar { display: none; }
.forecast-inline__day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
  gap: 1px;
}
.forecast-inline__day-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.forecast-inline__day-icon { font-size: 16px; line-height: 1.2; }
.forecast-inline__day-temps {
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
}
.forecast-inline__day-temps span {
  color: var(--dim);
  font-weight: 400;
}
.forecast-inline__link {
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}
.forecast-inline__link:hover { text-decoration: underline; }

/* ── MAIN GRID ── */
.home-grid {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 24px;
  padding: 24px 0;
  align-items: start;
  animation: fade-in 0.4s ease;
}
.home-main { min-width: 0; }

/* ── DATE STAMP ── */
.date-stamp {
  font-size: 11px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

/* ── SECTION RULES & HEADS ── */
.section-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 12px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-head__title {
  font-family: 'Druk Heavy', 'Arial Black', sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: var(--text);
  margin: 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.section-head__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  white-space: nowrap;
  text-decoration: none;
}
.section-head__link:hover { text-decoration: underline; }

/* ── SCOPE TABS ── */
.scope-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.scope-tab {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  letter-spacing: 0.01em;
  font-family: inherit;
  line-height: 1.4;
}
.scope-tab:hover {
  background: var(--surface-hover);
  border-color: var(--muted);
}
.scope-tab--active,
.scope-tab--active:hover {
  background: var(--red);
  color: #FFFFFF;
  border-color: var(--red);
}

/* ── SCOPE PANELS ── */
.scope-panel { display: none; }
.scope-panel--active { display: block; }

/* ── SCOPE SKELETON ── */
.scope-skeleton { padding: 8px 0; }
.scope-skeleton__lead { margin-bottom: 16px; }
.scope-skeleton__img {
  background: var(--border);
  border-radius: var(--radius-lg);
  height: 200px;
  margin-bottom: 14px;
  animation: pulse-dot 1.5s ease infinite;
}
.scope-skeleton__line {
  background: var(--border);
  border-radius: var(--radius-sm);
  animation: pulse-dot 1.5s ease infinite;
}
.scope-skeleton__line--title {
  height: 24px;
  width: 70%;
  margin-bottom: 8px;
}
.scope-skeleton__line--sub {
  height: 14px;
  width: 50%;
}
.scope-skeleton__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.scope-skeleton__line--row {
  height: 62px;
  width: 100%;
  border-radius: 6px;
}

/* =================================================================
   LEAD STORY — surface card, image on top, body below
   ================================================================= */
.news-lead {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  margin-bottom: 16px;
  transition: border-color 0.2s, transform 0.2s, background-color 0.2s;
}
.news-lead:hover {
  border-color: var(--red);
  transform: translateY(-1px);
  background-color: var(--surface-hover);
}

/* Image area */
.news-lead__img-wrap {
  position: relative;
  width: 100%;
  min-height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 50%, #333 100%);
}
.news-lead__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: 360px;
  object-fit: cover;
}

/* Text-only lead (no image) — compact padding */
.news-lead--text-only {
  padding: 0;
}
.news-lead--text-only .lead-body {
  padding: 20px;
}

/* Lead body */
.lead-body {
  padding: 20px;
}

/* Source bar: red pill source + time */
.news-lead__source-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.news-lead__source {
  display: inline-block;
  background: var(--red);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}
.news-lead__date {
  font-size: 12px;
  color: var(--dim);
}

/* Lead headline — Druk */
.news-lead__headline {
  font-family: 'Druk Heavy', 'Arial Black', sans-serif;
  font-size: 28px;
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 10px;
}
.news-lead__headline a {
  color: inherit;
  text-decoration: none;
}
.news-lead__headline a:hover {
  color: var(--red);
}

/* Lead summary */
.news-lead__summary {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 12px;
}

/* Lead actions row */
.news-lead__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.news-lead__link {
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}
.news-lead__link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* =================================================================
   EVENTS TEASER (inline between lead and secondary grid)
   ================================================================= */
.events-teaser {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.15s;
}
.events-teaser:hover {
  border-color: var(--red);
  background-color: var(--surface-hover);
}
.events-teaser__icon {
  color: var(--red);
  flex-shrink: 0;
}
.events-teaser__next {
  font-weight: 600;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.events-teaser__date {
  font-size: 12px;
  color: var(--dim);
  white-space: nowrap;
}
.events-teaser__more {
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  white-space: nowrap;
}

/* =================================================================
   SECONDARY NEWS GRID — 3 columns of cards
   ================================================================= */
.news-grid-secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.15s, background-color 0.2s;
}
.news-card:hover {
  border-color: var(--red);
  transform: translateY(-1px);
  background-color: var(--surface-hover);
}
.news-card--text-only {
  padding: 16px;
}

/* Card image */
.news-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 50%, #333 100%);
}
.news-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Card body content — add padding when image present */
.news-card__source,
.news-card__headline,
.news-card__summary,
.news-card__footer {
  padding-left: 14px;
  padding-right: 14px;
}
.news-card--text-only .news-card__source,
.news-card--text-only .news-card__headline,
.news-card--text-only .news-card__summary,
.news-card--text-only .news-card__footer {
  padding-left: 0;
  padding-right: 0;
}

.news-card__source {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  margin-top: 12px;
  letter-spacing: 0.02em;
}
.news-card--text-only .news-card__source {
  margin-top: 0;
}

.news-card__headline {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin: 6px 0;
}
.news-card__headline a {
  color: inherit;
  text-decoration: none;
}
.news-card__headline a:hover {
  color: var(--red);
}

.news-card__summary {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-top: auto;
}
.news-card__date {
  font-size: 12px;
  color: var(--dim);
}

/* =================================================================
   NEWS COMPACT LIST — row layout, thumbnail left, text right
   ================================================================= */
.news-compact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-compact-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
  transition: border-color 0.2s, transform 0.15s, background-color 0.2s;
  cursor: default;
}
.news-compact-item:hover {
  border-color: var(--red);
  transform: translateY(-1px);
  background-color: var(--surface-hover);
}

/* Thumbnail — 88x62 fixed size */
.news-compact-item__thumb {
  width: 88px;
  height: 62px;
  min-width: 88px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 50%, #333 100%);
}

.news-compact-item__body {
  flex: 1;
  min-width: 0;
}

.news-compact-item__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 4px;
}
.news-compact-item__source {
  font-size: 12px;
  font-weight: 500;
  color: var(--red);
}
.news-compact-item__date {
  font-size: 12px;
  color: var(--dim);
}

.news-compact-item__headline {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin: 0 0 4px;
}
.news-compact-item__headline a {
  color: inherit;
  text-decoration: none;
}
.news-compact-item__headline a:hover {
  color: var(--red);
}

.news-compact-item__summary {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =================================================================
   SHARE & BOOKMARK BUTTONS
   ================================================================= */
.news-share,
.news-bookmark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background-color 0.15s;
  white-space: nowrap;
}
.news-share:hover,
.news-bookmark:hover {
  color: var(--red);
  background-color: var(--surface-hover);
}

.news-share__icon,
.news-bookmark__icon {
  display: block;
  flex-shrink: 0;
}
.news-share__label,
.news-bookmark__label {
  font-weight: 500;
}

/* Compact variant (cards footer) */
.news-share--compact,
.news-bookmark--compact {
  padding: 3px 4px;
}
.news-share--compact .news-share__label,
.news-bookmark--compact .news-bookmark__label {
  display: none;
}

/* Inline variant (compact list) */
.news-share--inline,
.news-bookmark--inline {
  font-size: 11px;
  padding: 2px 4px;
}

.home-news-card__actions,
.home-news-compact-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* =================================================================
   EVENTS SECTION (main column)
   ================================================================= */
.events-compact {
  margin-top: 8px;
}
.home-section { margin-bottom: 8px; }

.event-group {
  margin-bottom: 12px;
}
.event-group__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.event-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
}
.event-row:last-child { border-bottom: none; }
.event-row--today {
  font-weight: 500;
}

.event-row__time {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  min-width: 60px;
  white-space: nowrap;
}
.event-row__title {
  flex: 1;
  min-width: 0;
}
.event-row__date {
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  white-space: nowrap;
  min-width: 70px;
}
.event-row__location {
  font-size: 12px;
  color: var(--dim);
  white-space: nowrap;
  text-decoration: none;
  margin-left: auto;
  flex-shrink: 0;
}
.event-row__location:hover {
  color: var(--red);
  text-decoration: underline;
}

.events-actions {
  margin-top: 10px;
  display: flex;
  gap: 16px;
}

.home-section__empty-link {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
}
.home-section__empty-link:hover { text-decoration: underline; }

/* Community board tag */
.home-community-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 70px;
}

/* =================================================================
   COMMUNITY & DIRECTORY PREVIEWS
   ================================================================= */
.community-preview,
.directory-preview { margin-bottom: 8px; }

.directory-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 10px;
}

.biz-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.15s, background-color 0.2s;
}
.biz-card:hover {
  border-color: var(--red);
  transform: translateY(-1px);
  background-color: var(--surface-hover);
}
.biz-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.biz-card__category {
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.biz-card__status {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
}
.biz-card__status--open {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}
.biz-card__status--closed {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}
.biz-card__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
  line-height: 1.3;
}
.biz-card__desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 6px;
}
.biz-card__address {
  font-size: 11px;
  color: var(--dim);
  margin-top: auto;
}

/* =================================================================
   NEWS EMPTY STATE
   ================================================================= */
.news-empty {
  padding: 32px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* =================================================================
   SIDEBAR
   ================================================================= */
.home-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Card base for all sidebar sections ── */
.wx-panel,
.forecast-strip,
.tides-bar,
.alerts-panel,
.civic-sidebar,
.editorial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--card-shadow);
}

/* ── Tile label (reusable red Druk header for sidebar sections) ── */
.tile-label {
  font-family: 'Druk Heavy', 'Arial Black', sans-serif;
  font-size: 12px;
  color: var(--red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-badge {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  background: var(--red);
  color: #FFFFFF;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  animation: pulse-live 2s ease infinite;
  letter-spacing: 0.05em;
}

/* ── WEATHER PANEL ── */
.wx-panel__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.wx-panel__label {
  font-family: 'Druk Heavy', 'Arial Black', sans-serif;
  font-size: 12px;
  color: var(--red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.wx-panel__live {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  background: var(--red);
  color: #FFFFFF;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  animation: pulse-live 2s ease infinite;
  letter-spacing: 0.05em;
}

.wx-panel__temp-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.wx-panel__temp {
  font-family: 'Druk Heavy', 'Arial Black', sans-serif;
  font-size: 56px;
  color: var(--text);
  line-height: 1;
}
.wx-panel__temp sup {
  font-size: 0.4em;
  vertical-align: super;
}
.wx-panel__desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.wx-panel__icon {
  font-size: 40px;
  opacity: 0.7;
}

.wx-panel__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.wx-detail {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 2px 0;
}
.wx-detail__label { color: var(--muted); }
.wx-detail__value { color: var(--text); font-weight: 500; }

.wx-panel__updated {
  margin-top: 10px;
  font-size: 11px;
  color: var(--dim);
  text-align: right;
}

/* ── FORECAST STRIP ── */
.forecast-strip__title {
  font-family: 'Druk Heavy', 'Arial Black', sans-serif;
  font-size: 12px;
  color: var(--red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.forecast-strip__days {
  display: flex;
  gap: 0;
}
.forecast-day {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}
.forecast-day__name {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.forecast-day__icon {
  display: block;
  font-size: 16px;
  margin: 2px 0;
}
.forecast-day__temps {
  color: var(--text);
  font-weight: 500;
  font-size: 12px;
}
.forecast-day__temps span {
  color: var(--dim);
  font-weight: 400;
}
.forecast-day__desc {
  font-size: 10px;
  color: var(--dim);
  margin-top: 2px;
  line-height: 1.3;
}

/* ── TIDES BAR ── */
.tides-bar__title {
  font-family: 'Druk Heavy', 'Arial Black', sans-serif;
  font-size: 12px;
  color: var(--red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tides-bar__station {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0;
  text-transform: none;
}
.tides-bar__entries {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tide-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.tide-chip:last-child { border-bottom: none; }

.tide-chip__time {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  min-width: 72px;
}
.tide-chip__height {
  font-size: 13px;
  color: var(--text);
  min-width: 52px;
  text-align: center;
}
.tide-chip__type {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 44px;
  text-align: center;
}
.tide-chip__type--high {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}
.tide-chip__type--low {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

/* ── ALERTS PANEL ── */
.alerts-panel__title {
  font-family: 'Druk Heavy', 'Arial Black', sans-serif;
  font-size: 12px;
  color: var(--red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.alerts-panel__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}
.alerts-panel__item:last-of-type { border-bottom: none; }
.alerts-panel__icon {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--red);
}
.alerts-panel__link {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
}
.alerts-panel__link:hover { text-decoration: underline; }

/* ── CIVIC SIDEBAR ── */
.civic-sidebar__title {
  font-family: 'Druk Heavy', 'Arial Black', sans-serif;
  font-size: 12px;
  color: var(--red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.civic-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.civic-row:last-of-type { border-bottom: none; }
.civic-row__badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.civic-row__text {
  flex: 1;
  color: var(--text);
  min-width: 0;
}
.civic-row__date {
  font-size: 11px;
  color: var(--dim);
  white-space: nowrap;
  flex-shrink: 0;
}
.civic-sidebar__link {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
}
.civic-sidebar__link:hover { text-decoration: underline; }

/* ── EDITORIAL (sidebar — last card, no left red border) ── */
.editorial__label {
  display: block;
  font-family: 'Druk Heavy', 'Arial Black', sans-serif;
  font-size: 12px;
  color: var(--red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-decoration: none;
}
a.editorial__label:hover { text-decoration: underline; }

.editorial__heading {
  font-family: 'Druk Heavy', 'Arial Black', sans-serif;
  font-size: 18px;
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 12px;
}
.editorial__heading a {
  color: inherit;
  text-decoration: none;
}
.editorial__heading a:hover { color: var(--red); }

.editorial__body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-family: 'Inter', sans-serif;
}
.editorial__body p + p { margin-top: 12px; }

.editorial__context {
  display: block;
  margin: 14px 0 0;
  font-size: 11px;
  color: var(--dim);
  line-height: 1.4;
}

/* =================================================================
   NEWSLETTER CTA — always dark #0B0B0B in both themes
   ================================================================= */
.life-section {
  background: #0B0B0B;
  padding: 48px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.life-section__inner {
  max-width: 540px;
  margin: 0 auto;
}
.life-section__title {
  font-family: 'Druk Heavy', 'Arial Black', sans-serif;
  font-size: 32px;
  color: #FFFFFF;
  margin: 0 0 8px;
}
.life-section__text {
  color: #888888;
  font-size: 14px;
  margin: 0 0 20px;
  line-height: 1.5;
}

.newsletter-cta {
  display: flex;
  max-width: 440px;
  margin: 0 auto;
  gap: 8px;
}
.newsletter-cta__input {
  flex: 1;
  background: #1A1A1A;
  border: 1px solid #2A2A2A;
  color: #E8E8E8;
  padding: 12px 16px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s;
}
.newsletter-cta__input::placeholder { color: #666666; }
.newsletter-cta__input:focus { border-color: #FF0000; }

.newsletter-cta__btn {
  background: #FF0000;
  color: #FFFFFF;
  border: none;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.newsletter-cta__btn:hover { opacity: 0.85; }

.newsletter-feedback-wrap {
  margin-top: 12px;
  font-size: 13px;
  color: #888888;
  min-height: 20px;
}

/* =================================================================
   RESPONSIVE — 768px breakpoint
   ================================================================= */
@media (max-width: 768px) {
  /* Grid collapses to single column */
  .home-grid {
    grid-template-columns: 1fr;
    padding: 16px 0;
    gap: 16px;
  }

  /* Show inline forecast on mobile */
  .forecast-inline { display: block; }

  /* Status bar compact */
  .status-tile { padding: 8px 16px; }

  /* Lead card */
  .news-lead__headline { font-size: 22px; }
  .news-lead__img-wrap { min-height: 160px; }
  .news-lead__img { min-height: 160px; }

  /* Secondary grid: 1 column on mobile */
  .news-grid-secondary {
    grid-template-columns: 1fr;
  }

  /* Compact items: smaller thumb */
  .news-compact-item__thumb {
    width: 60px;
    height: 42px;
    min-width: 60px;
  }

  /* Scope tabs scroll horizontally */
  .scope-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .scope-tabs::-webkit-scrollbar { display: none; }

  /* Sidebar cards compact */
  .wx-panel,
  .forecast-strip,
  .tides-bar,
  .alerts-panel,
  .civic-sidebar,
  .editorial {
    padding: 16px;
  }

  /* Weather temp smaller */
  .wx-panel__temp { font-size: 42px; }
  .wx-panel__details { grid-template-columns: 1fr; }

  /* Editorial heading smaller */
  .editorial__heading { font-size: 16px; }

  /* Newsletter compact */
  .life-section { padding: 32px 16px; }
  .life-section__title { font-size: 26px; }
  .newsletter-cta {
    flex-direction: column;
  }
  .newsletter-cta__btn { width: 100%; }

  /* Directory grid single column */
  .directory-preview__grid {
    grid-template-columns: 1fr;
  }

  /* Event row stack on very small screens */
  .event-row {
    flex-wrap: wrap;
    gap: 4px 10px;
  }
}

/* Tablet breakpoint — 2-col secondary grid */
@media (min-width: 769px) and (max-width: 1024px) {
  .news-grid-secondary {
    grid-template-columns: repeat(2, 1fr);
  }
  .directory-preview__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
