/* BC Post v2: current conditions and city forecasts. */
.bc-weather-page {
  min-height: 60vh;
  padding-block: var(--bc-space-4) var(--bc-space-16);
  color: var(--bc-color-text);
  background: var(--bc-color-page);
}

.bc-weather-shell {
  width: min(100% - (2 * var(--bc-container-gutter)), var(--bc-container-max));
  margin-inline: auto;
}

.bc-weather-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--bc-space-2);
  min-height: 2.75rem;
  margin-bottom: var(--bc-space-4);
  color: var(--bc-color-text-muted);
  font-size: var(--bc-text-sm);
}

.bc-weather-breadcrumb > * + *::before {
  content: "/";
  margin-right: var(--bc-space-2);
  color: var(--bc-color-border);
}

.bc-weather-breadcrumb a {
  color: var(--bc-color-text-muted);
  text-decoration: none;
}

.bc-weather-breadcrumb a:hover {
  color: var(--bc-color-link-hover);
}

.bc-weather-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 25rem);
  gap: var(--bc-space-8);
  align-items: center;
  padding: var(--bc-space-8);
  color: var(--bc-color-surface);
  background: var(--bc-color-brand-navy);
  border-bottom: 4px solid var(--bc-color-primary);
  border-radius: var(--bc-radius-md) var(--bc-radius-md) 0 0;
}

.bc-weather-kicker,
.bc-weather-section-kicker,
.bc-weather-detail-kicker {
  color: var(--bc-color-accent);
  font-size: var(--bc-text-xs);
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bc-weather-hero .bc-weather-kicker {
  color: color-mix(in srgb, var(--bc-color-surface) 72%, transparent);
}

.bc-weather-title {
  margin: var(--bc-space-3) 0 var(--bc-space-4);
  color: var(--bc-color-surface);
  font-family: var(--bc-font-serif);
  font-size: clamp(2.5rem, 6vw, var(--bc-text-5xl));
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}

.bc-weather-intro {
  max-width: 62ch;
  margin: 0;
  color: color-mix(in srgb, var(--bc-color-surface) 78%, transparent);
  font-size: var(--bc-text-lg);
  line-height: 1.6;
}

.bc-weather-hero-card {
  min-width: 0;
  padding: var(--bc-space-5);
  color: var(--bc-color-brand-ink);
  background: var(--bc-color-surface);
  border: 1px solid color-mix(in srgb, var(--bc-color-surface) 54%, transparent);
  border-radius: var(--bc-radius-md);
}

.bc-weather-hero-main,
.bc-weather-card-top,
.bc-weather-detail-header,
.bc-weather-card-temp-row,
.bc-weather-card-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--bc-space-4);
}

.bc-weather-hero-city,
.bc-weather-card-city,
.bc-weather-card-label,
.bc-weather-detail-label,
.bc-weather-side-label {
  margin: 0;
  color: var(--bc-color-text-muted);
  font-size: var(--bc-text-xs);
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bc-weather-hero-condition,
.bc-weather-card-condition,
.bc-weather-detail-condition {
  margin: var(--bc-space-1) 0 0;
  color: var(--bc-color-text-muted);
  line-height: 1.4;
}

.bc-weather-hero-icon,
.bc-weather-card-icon,
.bc-weather-detail-icon,
.bc-weather-forecast-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  object-fit: contain;
}

.bc-weather-hero-icon {
  width: 4.75rem;
  height: 4.75rem;
  color: var(--bc-color-primary);
  font-size: var(--bc-text-4xl);
}

.bc-weather-hero-temp {
  margin: var(--bc-space-3) 0;
  color: var(--bc-color-brand-ink);
  font-family: var(--bc-font-serif);
  font-size: clamp(3rem, 6vw, 4.75rem);
  font-weight: 600;
  line-height: 0.95;
}

.bc-weather-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bc-space-2) var(--bc-space-4);
  color: var(--bc-color-text-muted);
  font-size: var(--bc-text-xs);
}

.bc-weather-hero-meta > * + *::before {
  content: "\00b7";
  margin-right: var(--bc-space-2);
}

.bc-weather-city-nav {
  padding: var(--bc-space-4);
  background: var(--bc-color-surface);
  border: 1px solid var(--bc-color-border);
  border-top: 0;
}

.bc-weather-city-list {
  display: flex;
  gap: var(--bc-space-2);
  overflow-x: auto;
  padding-bottom: var(--bc-space-1);
  scrollbar-width: thin;
}

.bc-weather-city-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 2.5rem;
  padding: var(--bc-space-2) var(--bc-space-4);
  color: var(--bc-color-brand-ink);
  font-size: var(--bc-text-sm);
  font-weight: 650;
  text-decoration: none;
  background: var(--bc-color-surface-muted);
  border: 1px solid var(--bc-color-border);
  border-radius: var(--bc-radius-pill);
}

.bc-weather-city-pill:hover,
.bc-weather-city-pill-active {
  color: var(--bc-color-surface);
  background: var(--bc-color-brand-ink);
  border-color: var(--bc-color-brand-ink);
}

.bc-weather-alert-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--bc-space-4);
  align-items: start;
  margin-block: var(--bc-space-6);
  padding: var(--bc-space-5);
  background: color-mix(in srgb, var(--bc-color-success) 7%, var(--bc-color-surface));
  border: 1px solid color-mix(in srgb, var(--bc-color-success) 28%, var(--bc-color-border));
  border-left: 4px solid var(--bc-color-success);
  border-radius: var(--bc-radius-md);
}

.bc-weather-alert-icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  color: var(--bc-color-success);
  background: var(--bc-color-surface);
  border-radius: var(--bc-radius-pill);
}

.bc-weather-alert-title {
  margin: 0 0 var(--bc-space-1);
  color: var(--bc-color-brand-ink);
  font-family: var(--bc-font-serif);
  font-size: var(--bc-text-lg);
  font-weight: 600;
}

.bc-weather-alert-text {
  margin: var(--bc-space-1) 0 0;
  color: var(--bc-color-text-muted);
}

.bc-weather-section {
  margin-top: var(--bc-space-10);
}

.bc-weather-section-header {
  margin-bottom: var(--bc-space-5);
  padding-bottom: var(--bc-space-4);
  border-bottom: 2px solid var(--bc-color-brand-ink);
}

.bc-weather-section-title,
.bc-weather-detail-title,
.bc-weather-side-title,
.bc-weather-empty-title {
  margin: var(--bc-space-1) 0 0;
  color: var(--bc-color-brand-ink);
  font-family: var(--bc-font-serif);
  font-weight: 600;
  line-height: 1.15;
}

.bc-weather-section-title {
  font-size: clamp(var(--bc-text-xl), 2.6vw, var(--bc-text-3xl));
}

.bc-weather-section-text {
  margin: var(--bc-space-2) 0 0;
  color: var(--bc-color-text-muted);
}

.bc-weather-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--bc-space-5);
}

.bc-weather-card {
  min-width: 0;
  overflow: hidden;
  background: var(--bc-color-surface);
  border: 1px solid var(--bc-color-border);
  border-radius: var(--bc-radius-md);
  transition: border-color var(--bc-transition-fast), transform var(--bc-transition-fast);
}

.bc-weather-card:hover,
.bc-weather-card-active {
  border-color: var(--bc-color-primary);
  transform: translateY(-2px);
}

.bc-weather-card-active {
  box-shadow: inset 0 3px 0 var(--bc-color-primary);
}

.bc-weather-card-link {
  display: block;
  height: 100%;
  padding: var(--bc-space-5);
  color: inherit;
  text-decoration: none;
}

.bc-weather-card-title {
  margin: var(--bc-space-1) 0 0;
  color: var(--bc-color-brand-ink);
  font-family: var(--bc-font-serif);
  font-size: var(--bc-text-lg);
  font-weight: 600;
}

.bc-weather-card-icon {
  width: 3rem;
  height: 3rem;
  color: var(--bc-color-primary);
  font-size: var(--bc-text-2xl);
}

.bc-weather-card-temp-row {
  align-items: center;
  margin-block: var(--bc-space-5);
}

.bc-weather-card-temp {
  color: var(--bc-color-brand-ink);
  font-family: var(--bc-font-serif);
  font-size: var(--bc-text-4xl);
  font-weight: 600;
  line-height: 1;
}

.bc-weather-card-feels {
  color: var(--bc-color-text-muted);
  font-size: var(--bc-text-xs);
  line-height: 1.35;
  text-align: right;
}

.bc-weather-card-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--bc-color-border);
  border: 1px solid var(--bc-color-border);
  border-radius: var(--bc-radius-sm);
}

.bc-weather-card-metric {
  display: grid;
  gap: var(--bc-space-1);
  padding: var(--bc-space-3);
  background: var(--bc-color-surface-muted);
}

.bc-weather-card-value {
  color: var(--bc-color-text);
  font-size: var(--bc-text-sm);
  font-weight: 650;
}

.bc-weather-card-footer {
  align-items: center;
  margin-top: var(--bc-space-4);
  padding-top: var(--bc-space-3);
  color: var(--bc-color-text-muted);
  font-size: var(--bc-text-xs);
  border-top: 1px solid var(--bc-color-border);
}

.bc-weather-card-source {
  font-weight: 700;
}

.bc-weather-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, var(--bc-container-sidebar));
  gap: var(--bc-space-8);
  align-items: start;
  margin-top: var(--bc-space-10);
}

.bc-weather-detail-card,
.bc-weather-side-card {
  padding: var(--bc-space-6);
  background: var(--bc-color-surface);
  border: 1px solid var(--bc-color-border);
  border-radius: var(--bc-radius-md);
}

.bc-weather-detail-card {
  border-top: 4px solid var(--bc-color-primary);
}

.bc-weather-detail-title {
  font-size: var(--bc-text-3xl);
}

.bc-weather-detail-icon {
  width: 4.875rem;
  height: 4.875rem;
  color: var(--bc-color-primary);
  font-size: var(--bc-text-4xl);
}

.bc-weather-detail-main {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bc-space-3);
  align-items: baseline;
  margin-block: var(--bc-space-6);
}

.bc-weather-detail-temp {
  color: var(--bc-color-brand-ink);
  font-family: var(--bc-font-serif);
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 600;
  line-height: 0.9;
}

.bc-weather-detail-feels {
  color: var(--bc-color-text-muted);
}

.bc-weather-detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--bc-color-border);
  border: 1px solid var(--bc-color-border);
  border-radius: var(--bc-radius-sm);
}

.bc-weather-detail-metric {
  display: grid;
  gap: var(--bc-space-2);
  padding: var(--bc-space-4);
  background: var(--bc-color-surface-muted);
}

.bc-weather-detail-value {
  color: var(--bc-color-text);
  font-size: var(--bc-text-sm);
  font-weight: 650;
}

.bc-weather-detail-link {
  display: inline-flex;
  align-items: center;
  gap: var(--bc-space-2);
  min-height: 2.75rem;
  margin-top: var(--bc-space-5);
  padding: var(--bc-space-2) var(--bc-space-4);
  color: var(--bc-color-brand-ink);
  font-size: var(--bc-text-sm);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--bc-color-brand-ink);
  border-radius: var(--bc-radius-sm);
}

.bc-weather-detail-link:hover {
  color: var(--bc-color-surface);
  background: var(--bc-color-brand-ink);
}

.bc-weather-side-panel {
  display: grid;
  gap: var(--bc-space-5);
}

.bc-weather-side-title {
  margin-bottom: var(--bc-space-3);
  font-size: var(--bc-text-xl);
}

.bc-weather-side-row,
.bc-weather-nearby-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--bc-space-3);
  min-height: 2.75rem;
  padding-block: var(--bc-space-3);
  border-top: 1px solid var(--bc-color-border);
}

.bc-weather-side-row:first-of-type,
.bc-weather-nearby-link:first-child {
  border-top: 0;
}

.bc-weather-side-value {
  color: var(--bc-color-text);
  font-size: var(--bc-text-sm);
  font-weight: 650;
  text-align: right;
}

.bc-weather-nearby-list {
  display: grid;
}

.bc-weather-nearby-link {
  color: var(--bc-color-brand-ink);
  font-size: var(--bc-text-sm);
  text-decoration: none;
}

.bc-weather-nearby-link:hover {
  color: var(--bc-color-link-hover);
}

.bc-weather-forecast-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--bc-space-4);
}

.bc-weather-forecast-card {
  display: grid;
  gap: var(--bc-space-3);
  justify-items: center;
  min-width: 0;
  padding: var(--bc-space-5) var(--bc-space-3);
  text-align: center;
  background: var(--bc-color-surface);
  border: 1px solid var(--bc-color-border);
  border-radius: var(--bc-radius-md);
}

.bc-weather-forecast-date {
  color: var(--bc-color-brand-ink);
  font-size: var(--bc-text-sm);
  font-weight: 750;
}

.bc-weather-forecast-icon {
  width: 3rem;
  height: 3rem;
  color: var(--bc-color-primary);
  font-size: var(--bc-text-2xl);
}

.bc-weather-forecast-condition {
  color: var(--bc-color-text);
  font-size: var(--bc-text-sm);
}

.bc-weather-forecast-temp,
.bc-weather-forecast-rain {
  color: var(--bc-color-text-muted);
  font-size: var(--bc-text-xs);
  line-height: 1.4;
}

.bc-weather-empty {
  margin-top: var(--bc-space-8);
  padding: var(--bc-space-8);
  text-align: center;
  background: var(--bc-color-surface);
  border: 1px dashed var(--bc-color-border);
  border-radius: var(--bc-radius-md);
}

.bc-weather-empty-title {
  margin-block: var(--bc-space-3);
  font-size: var(--bc-text-2xl);
}

.bc-weather-empty-text {
  max-width: 68ch;
  margin: 0 auto;
  color: var(--bc-color-text-muted);
  line-height: 1.6;
}

.bc-weather-empty code {
  overflow-wrap: anywhere;
  color: var(--bc-color-text);
  font-family: var(--bc-font-mono);
  font-size: var(--bc-text-sm);
}

@media (max-width: 70rem) {
  .bc-weather-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bc-weather-forecast-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 58rem) {
  .bc-weather-hero,
  .bc-weather-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .bc-weather-hero-card {
    max-width: none;
  }

  .bc-weather-side-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 47.99rem) {
  .bc-weather-page {
    padding-bottom: var(--bc-space-10);
  }

  .bc-weather-hero {
    padding: var(--bc-space-5);
  }

  .bc-weather-title {
    font-size: clamp(2.1rem, 11vw, 3.2rem);
  }

  .bc-weather-intro {
    font-size: var(--bc-text-base);
  }

  .bc-weather-hero-card,
  .bc-weather-detail-card,
  .bc-weather-side-card,
  .bc-weather-card-link {
    padding: var(--bc-space-4);
  }

  .bc-weather-hero-temp {
    font-size: 3.4rem;
  }

  .bc-weather-hero-meta {
    display: grid;
    gap: var(--bc-space-1);
  }

  .bc-weather-hero-meta > * + *::before {
    content: none;
  }

  .bc-weather-card-grid,
  .bc-weather-side-panel,
  .bc-weather-detail-metrics,
  .bc-weather-forecast-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bc-weather-card-active {
    transform: none;
  }

  .bc-weather-forecast-card {
    grid-template-columns: minmax(7rem, auto) 3rem minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    text-align: left;
  }

  .bc-weather-forecast-temp,
  .bc-weather-forecast-rain {
    grid-column: 3;
  }
}

@media (max-width: 24rem) {
  .bc-weather-hero {
    padding-inline: var(--bc-space-4);
  }

  .bc-weather-alert-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .bc-weather-card-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .bc-weather-forecast-card {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }

  .bc-weather-forecast-temp,
  .bc-weather-forecast-rain {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bc-weather-card {
    transition: none;
  }

  .bc-weather-card:hover {
    transform: none;
  }
}
