/* =================================================================
   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 ──
   Outer bar: flex row containing scrollable tiles + pinned date.
   The scroll container is the inner `.status-bar__tiles` div, NOT
   the outer bar — that way the masthead date can sit beside the
   tiles and stay pinned to the visible viewport's right edge,
   instead of getting swept off-screen by overflowing tiles.
   (G1s integration audit fix.) */
.status-bar {
  background: var(--surface);
  /* The hard black rule above the status-bar is supplied by the
     site-header's `border-bottom: 2px solid var(--header-border)`
     (#0B0B0B). Don't add a second top border here or it stacks. */
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1280px) / 2 + 24px));
}
.status-bar__tiles {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.status-bar__tiles::-webkit-scrollbar { display: none; }

/* Masthead date — sits at the right edge of the subheader on desktop,
   pushed there by margin-left:auto. Hidden on mobile (<1080px) where
   the live status tiles take the full row and the date relocates to
   the header bar via `.site-header__date`. Ref: G1s mockup, slice 2. */
.status-bar__date {
  /* `flex: 0 0 auto` keeps the date at its natural width; the parent
     `.status-bar` is now `display: flex` (not overflowing), so the
     date pins to the right of the visible bar regardless of how
     wide the scrollable tile group is. */
  flex: 0 0 auto;
  padding-left: 24px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.005em;
  white-space: nowrap;
}
.status-bar__date .day {
  color: var(--text);
  font-weight: 600;
}
@media (max-width: 1079px) {
  .status-bar__date { display: none; }
  .status-bar--mobile-has-tide-teaser .status-tile--tide,
  .status-bar--mobile-has-events-teaser .status-tile--events {
    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-tile.snapshot-ferry { min-width: 220px; }
.tide-arrow { vertical-align: baseline; margin: 0 2px; }
.tide-arrow--up { color: #22c55e; }
.tide-arrow--down { color: #3b82f6; }

.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);
  /* Inline-align temp + FMI glyph horizontally so the chip reads as a
     single line instead of stacking the icon below the °C. The bumped
     24px FMI glyph (TASK-24 R6.1) needs vertical centring. */
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.status-value .red { color: var(--red); font-weight: 700; }
.status-value .wx-glyph { vertical-align: middle; }
.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;
}

/* ── COMPACT WEATHER STRIP (mobile sub-sub-header) ──
   Single-line weather row that sits directly under `.status-bar` on
   mobile/tablet (<1080px). Replaces the legacy `.forecast-inline`
   forecast-only strip and the inline `.wx-row` rendered in the news
   feed. The sidebar `#wx-panel-live` widget is hidden on mobile too —
   weather lives in this single compact spot below the subheader. */
.weather-strip { display: none; }
@media (max-width: 1079px) {
  .weather-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px max(16px, calc((100vw - 1280px) / 2 + 16px));
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 11px;
    line-height: 1;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
    transition: background 0.15s;
  }
  .weather-strip,
  .weather-strip * {
    font-size: 11px;
  }
  .weather-strip::-webkit-scrollbar { display: none; }
  .weather-strip:hover { background: var(--surface-hover); color: var(--text); }
  .weather-strip__label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--red);
    flex: 0 0 auto;
  }
  .weather-strip__forecast {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .weather-strip__forecast::-webkit-scrollbar { display: none; }
  .weather-strip__day {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    color: var(--muted);
    font-weight: 500;
  }
  .weather-strip__day-name {
    color: var(--text);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    min-width: 22px;
  }
  .weather-strip__day-icon {
    font-size: 11px;
    line-height: 1;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
  }
  .weather-strip__day-temp { color: var(--text); font-weight: 600; }
  .weather-strip__cta {
    color: var(--red);
    font-weight: 700;
    flex: 0 0 auto;
  }
  /* Retire the sidebar weather widget AND the tides-bar widget on
     mobile — the sub-sub-header weather strip + the inline `.tide-row`
     in the news feed cover both use cases. Saves two full card slots
     at the top of the sidebar stack when it drops below the feed. */
  #wx-panel-live,
  .tides-bar { display: none; }
}
@media (max-width: 480px) {
  /* Narrow viewports: drop the day icon emoji to keep the row tight
     (name + temp only). Forecast still scrolls horizontally if needed. */
  .weather-strip__day-icon { display: none; }
}

@media (max-width: 640px) {
  .home-main .news-scope-panel__mobile .news-row__metaline,
  .home-main .news-scope-panel__mobile .news-row__src,
  .home-main .news-scope-panel__mobile .news-row__sep,
  .home-main .news-scope-panel__mobile .news-row__time {
    font-size: 12px;
  }
}

/* ── INLINE FORECAST (legacy — retired on mobile, kept for any
   remaining desktop touch-points). The new sub-sub-header weather
   strip replaces the mobile use case. ── */
.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: var(--font-headline);
  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 PANELS ──
   Shared tab and news-card primitives live in ehlocal.css/news.css.
   home.css owns only the home page's composition and side rail. */

/* ── 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;
}

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

.events-compact .section-rule {
  margin-bottom: 14px;
}

.events-compact .section-head {
  margin-bottom: 14px;
}

.events-compact .event-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.event-group__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.events-compact .event-group__label {
  margin-bottom: 0;
  font-weight: 700;
  letter-spacing: 0.10em;
}

.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;
}
.events-compact .event-row {
  display: grid;
  grid-template-columns: minmax(64px, auto) minmax(0, 1fr) minmax(160px, 0.7fr);
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--hairline, var(--border));
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}
.events-compact .event-row + .event-row {
  margin-top: 0;
}
.events-compact .event-row--today {
  border-left: 3px solid var(--red);
  padding-left: 12px;
}
.events-compact .event-row:not(.event-row--today) {
  grid-template-columns: 76px 72px minmax(0, 1fr);
}

.event-row__time {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  min-width: 60px;
  white-space: nowrap;
}
.events-compact .event-row__time {
  min-width: 0;
  color: var(--muted);
  font-weight: 700;
}
.event-row__title {
  flex: 1;
  min-width: 0;
}
.events-compact .event-row__title {
  font-weight: 700;
  line-height: 1.35;
}
.event-row__date {
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  white-space: nowrap;
  min-width: 70px;
}
.events-compact .event-row__date {
  min-width: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.event-row__location {
  font-size: 12px;
  color: var(--dim);
  white-space: nowrap;
  text-decoration: none;
  margin-left: auto;
  flex-shrink: 0;
}
.events-compact .event-row__location {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
  text-align: right;
}
.event-row__location:hover {
  color: var(--red);
  text-decoration: underline;
}

.events-actions {
  margin-top: 10px;
  display: flex;
  gap: 16px;
}
.events-compact .events-actions {
  justify-content: flex-end;
  margin-top: 12px;
}

@media (max-width: 1079px) {
  .events-compact {
    display: none;
  }
}

.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,
.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 Inter caps header for sidebar sections).
   Proto pattern — Inter 700 13px caps, NOT Druk. */
.tile-label {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.10em;
  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 ──
   The whole panel is now an `<a>` to /weather. Reset anchor styles so
   it still reads as a card; the small subtle `→` in the header carries
   the click-affordance signal (matches the tides-bar pattern). */
a.wx-panel--link,
a.wx-panel--link:hover {
  display: block;
  text-decoration: none;
  color: var(--text);
}
a.wx-panel--link:hover {
  background: var(--surface-hover);
  border-color: var(--muted);
}
.wx-panel__cta {
  margin-left: auto;
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}
.wx-panel__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.wx-panel__label {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.10em;
  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: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
}
.wx-panel__temp sup {
  font-size: 0.7em;
  vertical-align: top;
  line-height: 1;
  position: relative;
  top: 0.02em;
  margin-left: 2px;
}
.wx-panel__desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.wx-panel__icon {
  font-size: 40px;
  opacity: 0.7;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
  line-height: 1;
}
.forecast-day__icon {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
}

.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;
}
/* `.wx-panel__more` retired — the whole panel is now a link with
   a subtle arrow in the header. */

/* ── WEATHER FORECAST ROW (inside wx-panel) ── */
.wx-panel__forecast {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-bottom: 14px;
}
.wx-panel__forecast .forecast-day {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  padding: 0;
  border: none;
  background: transparent;
  transition: none;
  display: block;
}
.wx-panel__forecast .forecast-day:hover {
  background: transparent;
}
.wx-panel__forecast .forecast-day__name {
  display: block;
  font-weight: 600;
  color: var(--text);
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 4px;
}
.wx-panel__forecast .forecast-day__icon {
  /* Sidebar 5-day forecast icons. FMI line work below 32px loses
     fidelity, so size=40 (TASK-24 R6.2). The legacy `font-size`
     is dead for FMI <img> SVGs but kept as a fallback for any
     emoji-rendered glyph. */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  font-size: 28px;
  line-height: 1;
  margin: 4px 0;
}
.wx-panel__forecast .forecast-day__icon img,
.wx-panel__forecast .forecast-day__icon .wx-glyph {
  width: 40px;
  height: 40px;
}
.wx-panel__forecast .forecast-day__temp {
  display: block;
  color: var(--text);
  font-weight: 500;
  font-size: 13px;
  margin-top: 4px;
}

/* ── TIDES BAR ── */
.tides-bar__title {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tides-bar__cta {
  margin-left: auto;
  color: var(--red);
  font-weight: 700;
}
/* When tides-bar is rendered as an anchor it inherits underline +
   colour from the global `a` style. Reset both so the panel still
   looks like a card, not a link. The arrow + title carry the
   click-affordance signal. */
a.tides-bar--link,
a.tides-bar--link:hover {
  text-decoration: none;
  color: var(--text);
  display: block;
}
a.tides-bar--link:hover { background: var(--surface-hover); border-color: var(--muted); }
.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: grid;
  grid-template-columns: 16px minmax(72px, auto) 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.tide-chip:last-child { border-bottom: none; }
.tide-chip--next {
  /* Next-tide row gets a subtle red lead-bar so the user can see at
     a glance which tide is coming up next. */
  position: relative;
  padding-left: 8px;
  margin-left: -8px;
}
.tide-chip--next::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--red);
  border-radius: 1px;
}

.tide-chip__arrow {
  font-size: 11px;
  line-height: 1;
  text-align: center;
}
.tide-chip__arrow--up { color: #1F7A3A; }
.tide-chip__arrow--down { color: #1E5BC2; }

.tide-chip__time {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.tide-chip__height {
  font-size: 13px;
  color: var(--muted);
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.tide-chip__type {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tide-chip__type--high {
  background: rgba(31, 122, 58, 0.14);
  color: #1F7A3A;
}
.tide-chip__type--low {
  background: rgba(30, 91, 194, 0.14);
  color: #1E5BC2;
}
.tide-chip__next-pill {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--red);
  color: #fff;
  text-transform: uppercase;
}

/* ── ALERTS PANEL ── */
.alerts-panel__title {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.10em;
  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: var(--font-body, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.10em;
  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: var(--font-body, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-decoration: none;
}
a.editorial__label:hover { text-decoration: underline; }

.editorial__heading {
  font-family: var(--font-headline);
  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: var(--font-display);
  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 — sidebar collapse at the G1s integration breakpoint
   so the news feed + sidebar transition together (was 768px).
   ================================================================= */
@media (max-width: 1079px) {
  /* Grid collapses to single column — sidebar drops below content. */
  .home-grid {
    grid-template-columns: 1fr;
    padding: 16px 0;
    gap: 16px;
  }
}
@media (max-width: 768px) {

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

  /* Sidebar cards compact */
  .wx-panel,
  .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 */
@media (min-width: 769px) and (max-width: 1024px) {
  .directory-preview__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Headline sizes tuned for Druk Text (family set centrally via var(--font-headline)) */
.section-head__title      { font-size: 20px; }
.editorial__heading       { font-size: 22px; line-height: 1.15; }
.events-section__title    { font-size: 20px; }

@media (max-width: 768px) {
  .editorial__heading     { font-size: 19px; }
  .section-head__title    { font-size: 18px; }
  .events-compact .event-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 6px;
  }
  .events-compact .event-row__location {
    margin-left: 0;
    text-align: left;
  }
}
