/* ==========================================================================
   ALPINE HUB SHARED DESIGN SYSTEM — CORE LAYOUT & COMPONENTS
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--hub-font-sans);
  color: var(--hub-ink);
  background: var(--hub-bg);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hub-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.hub-container {
  width: 100%;
  max-width: var(--hub-max-w);
  margin: 0 auto;
  padding-inline: 20px;
}

/* Header */
.hub-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hub-border);
}
.hub-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.hub-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--hub-ink);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.hub-brand:hover { text-decoration: none; color: var(--hub-accent); }
.hub-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--hub-accent-dark);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hub-brand-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--hub-ink-subtle);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}
.hub-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hub-nav a {
  color: var(--hub-ink-muted);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 6px 2px;
}
.hub-nav a:hover, .hub-nav a.active {
  color: var(--hub-accent);
  text-decoration: none;
}
.hub-partner-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--hub-surface);
  border: 1px solid var(--hub-border);
  border-radius: 999px;
  padding: 4px 12px 4px 8px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--hub-ink-muted);
  text-decoration: none;
  box-shadow: var(--hub-shadow-sm);
}
.hub-partner-pill:hover {
  border-color: var(--hub-accent);
  color: var(--hub-accent);
  text-decoration: none;
}
.hub-partner-pill img {
  height: 24px;
  width: auto;
}

/* Breadcrumbs */
.hub-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}
.hub-breadcrumb a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}
.hub-breadcrumb a:hover { text-decoration: underline; }
.hub-breadcrumb-sep { opacity: 0.6; }

/* Hero */
.hub-hero {
  position: relative;
  color: #ffffff;
  background-color: var(--hub-accent-dark);
  background-size: cover;
  background-position: center 40%;
  overflow: hidden;
}
.hub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hub-hero-scrim);
  z-index: 1;
}
.hub-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 48px;
  padding-bottom: 42px;
}
.hub-hero-home .hub-hero-inner {
  padding-top: 64px;
  padding-bottom: 54px;
}
.hub-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hub-hero h1 {
  margin: 0 0 14px;
  font-family: var(--hub-font-display);
  font-size: clamp(1.85rem, 4vw, 2.95rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 860px;
}
.hub-hero-lead {
  margin: 0 0 22px;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 740px;
  line-height: 1.55;
}
.hub-meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 24px;
}
.hub-meta-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hub-live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25);
  display: inline-block;
}
.hub-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 11px 18px;
  border-radius: var(--hub-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--hub-accent);
  color: #ffffff;
}
.btn-primary:hover { background: var(--hub-accent-dark); color: #ffffff; }
.btn-white {
  background: #ffffff;
  color: var(--hub-accent-dark);
}
.btn-white:hover { background: var(--hub-accent-soft); }
.btn-ghost-light {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.24); }
.btn-outline {
  background: #ffffff;
  color: var(--hub-accent);
  border-color: var(--hub-border-strong);
}
.btn-outline:hover { border-color: var(--hub-accent); background: var(--hub-accent-soft); }

/* Hero KPI Strip */
.hub-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.hub-kpi-card {
  background: rgba(255, 255, 255, 0.96);
  color: var(--hub-ink);
  border-radius: var(--hub-radius-md);
  padding: 16px 18px;
  box-shadow: var(--hub-shadow-md);
}
.hub-kpi-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.tag-recorded { background: var(--hub-recorded-bg); color: var(--hub-recorded-ink); }
.tag-forecast { background: var(--hub-forecast-bg); color: var(--hub-forecast-ink); }
.tag-depth { background: var(--hub-surface-alt); color: var(--hub-accent-dark); }
.tag-amber { background: var(--hub-amber-soft); color: var(--hub-amber); }

.hub-kpi-val {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--hub-ink);
  letter-spacing: -0.02em;
}
.hub-kpi-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--hub-ink-muted);
  margin-top: 4px;
}
.hub-kpi-sub {
  font-size: 0.77rem;
  color: var(--hub-ink-subtle);
  margin-top: 3px;
}

/* Sections */
.hub-section {
  padding: 40px 0;
}
.hub-section-tight {
  padding: 28px 0;
}
.hub-section-alt {
  background: var(--hub-surface);
  border-top: 1px solid var(--hub-border);
  border-bottom: 1px solid var(--hub-border);
}
.hub-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}
.hub-section-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hub-ink);
}
.hub-section-desc {
  margin: 6px 0 0;
  color: var(--hub-ink-muted);
  max-width: 720px;
  font-size: 0.96rem;
}

/* Cards & Grids */
.hub-card {
  min-width: 0;
  background: var(--hub-surface);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-md);
  padding: 22px;
  box-shadow: var(--hub-shadow-sm);
}
.hub-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.hub-grid-2 > *, .hub-grid-3 > *, .hub-grid-4 > * { min-width: 0; }
.hub-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.hub-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* Briefing Box (AI-citable plain-text summary) */
.hub-briefing {
  background: var(--hub-surface);
  border: 1px solid var(--hub-border);
  border-left: 4px solid var(--hub-accent);
  border-radius: var(--hub-radius-md);
  padding: 22px 24px;
  box-shadow: var(--hub-shadow-sm);
}
.hub-briefing h2, .hub-briefing h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  font-weight: 800;
}
.hub-briefing p {
  margin: 0 0 10px;
  color: var(--hub-ink-muted);
}
.hub-briefing p:last-child { margin-bottom: 0; }

/* Altitude depth bars */
.alt-row {
  display: grid;
  grid-template-columns: 150px 1fr 90px 135px;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hub-border);
}
.alt-row:last-child { border-bottom: none; }
.alt-label strong { display: block; font-size: 0.95rem; }
.alt-label span { font-size: 0.8rem; color: var(--hub-ink-subtle); }
.alt-bar-track {
  height: 12px;
  background: var(--hub-surface-alt);
  border-radius: 999px;
  overflow: hidden;
}
.alt-bar-fill {
  height: 100%;
  background: var(--hub-depth-bar);
  border-radius: 999px;
}
.alt-depth {
  font-weight: 800;
  font-size: 1.05rem;
  text-align: right;
  color: var(--hub-ink);
}
.alt-wx {
  font-size: 0.84rem;
  color: var(--hub-ink-muted);
  text-align: right;
}

/* Tables */
.hub-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
}
.hub-input, .hub-select {
  font-family: inherit;
  font-size: 0.92rem;
  padding: 10px 13px;
  border: 1px solid var(--hub-border-strong);
  border-radius: var(--hub-radius-sm);
  background: #ffffff;
  color: var(--hub-ink);
}
.hub-input { flex: 1 1 240px; min-width: 200px; }
.hub-select { flex: 0 1 220px; }

.hub-table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--hub-surface);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-md);
  box-shadow: var(--hub-shadow-sm);
}
.hub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.91rem;
}
.hub-table th {
  text-align: left;
  padding: 13px 14px;
  background: var(--hub-surface-alt);
  color: var(--hub-ink-muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--hub-border);
  white-space: nowrap;
}
.hub-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--hub-border);
  vertical-align: middle;
}
.hub-table tbody tr:last-child td { border-bottom: none; }
.hub-table tbody tr:hover { background: #f8fbff; }
.hub-table .col-num { text-align: right; white-space: nowrap; }
.hub-table a.resort-link {
  font-weight: 700;
  color: var(--hub-ink);
}
.hub-table a.resort-link:hover { color: var(--hub-accent); }
.hub-table .area-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--hub-ink-subtle);
}
.badge-mb {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--hub-accent-soft);
  color: var(--hub-accent-dark);
  padding: 2px 6px;
  border-radius: 5px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Area & Resort Visual Cards */
.area-card {
  display: flex;
  flex-direction: column;
  background: var(--hub-surface);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-md);
  overflow: hidden;
  box-shadow: var(--hub-shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.area-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--hub-shadow-md);
  border-color: var(--hub-accent);
  text-decoration: none;
}
.area-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--hub-accent-dark);
  overflow: hidden;
}
.area-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.area-card-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(11, 27, 45, 0.84);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
}
.area-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.area-card-body h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--hub-ink);
}
.area-card-meta {
  font-size: 0.82rem;
  color: var(--hub-ink-subtle);
  margin-bottom: 10px;
}
.area-card-stats {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--hub-border);
  font-size: 0.84rem;
}
.area-card-stats div { flex: 1; }
.area-card-stats strong { display: block; font-size: 0.98rem; color: var(--hub-ink); }
.area-card-stats span { font-size: 0.74rem; color: var(--hub-ink-subtle); }

/* APIUK Contextual Partner Card */
.apiuk-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f6fc 100%);
  border: 1px solid #c5daf0;
  border-radius: var(--hub-radius-md);
  padding: 24px 26px;
  box-shadow: var(--hub-shadow-sm);
}
.apiuk-card-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.apiuk-logo-box {
  background: #ffffff;
  border: 1px solid var(--hub-border);
  border-radius: 12px;
  padding: 10px 12px;
  flex-shrink: 0;
  box-shadow: var(--hub-shadow-sm);
}
.apiuk-logo-box img {
  height: 54px;
  width: auto;
}
.apiuk-card h2, .apiuk-card h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--hub-ink);
}
.apiuk-card p {
  margin: 0;
  color: var(--hub-ink-muted);
  font-size: 0.94rem;
  max-width: 640px;
}

/* Model chips */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.model-chip {
  background: var(--hub-bg);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-sm);
  padding: 10px 12px;
}
.model-chip strong { display: block; font-size: 0.84rem; color: var(--hub-ink); }
.model-chip span { font-size: 0.88rem; font-weight: 700; color: var(--hub-accent); }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--hub-surface);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-md);
  padding: 18px 20px;
}
.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--hub-ink);
}
.faq-item p {
  margin: 0;
  color: var(--hub-ink-muted);
  font-size: 0.94rem;
}

/* Footer */
.hub-footer {
  background: #0f2134;
  color: rgba(255, 255, 255, 0.84);
  padding: 46px 0 32px;
  margin-top: 32px;
}
.hub-footer a { color: #b9dbfa; }
.hub-footer a:hover { color: #ffffff; }
.hub-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.hub-footer h4 {
  margin: 0 0 12px;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
}
.hub-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.88rem; }
.hub-footer-bottom {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.68);
}
.hub-photo-credit {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--hub-border);
  font-size: 0.8rem;
  color: var(--hub-ink-subtle);
}

/* Responsive */
@media (max-width: 960px) {
  .hub-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-footer-grid { grid-template-columns: 1fr 1fr; }
  .apiuk-card { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .hub-container {
    padding-left: 20px;
    padding-right: 20px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
  .hub-header-inner { padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  .hub-nav { gap: 8px 16px; font-size: 0.86rem; width: 100%; flex-wrap: wrap; padding-bottom: 2px; }
  .hub-partner-pill { display: none; }
  .hub-hero-inner, .hub-hero-home .hub-hero-inner { padding-top: 32px; padding-bottom: 30px; }
  .hub-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hub-kpi-val { font-size: 1.35rem; }
  .hub-grid-2, .hub-grid-3, .hub-grid-4 { grid-template-columns: minmax(0, 1fr); }
  .alt-row { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .alt-bar-track { grid-column: 1 / -1; }
  .alt-wx { grid-column: 1 / -1; text-align: left; }
  .apiuk-card-left { flex-direction: column; align-items: flex-start; }
  .hub-footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Reserved Sponsor Slots (Dormant until activated via data/sponsors.json — reusable across all 5 hubs) */
.hub-sponsor-banner {
  background: var(--hub-surface);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-lg);
  padding: 18px 22px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: var(--hub-shadow-sm);
}
.hub-sponsor-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hub-ink-subtle);
  margin-bottom: 4px;
}

/* Ski and Snow Profile, Guides and Live Decision Hub Additions */
.profile-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}
.profile-meta-chip {
  background: var(--hub-surface-alt, #f8fafc);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-md);
  padding: 12px 14px;
}
.profile-meta-chip span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hub-ink-subtle);
  margin-bottom: 4px;
}
.profile-meta-chip strong {
  display: block;
  font-size: 0.92rem;
  color: var(--hub-ink);
  line-height: 1.35;
}
.altitude-callout {
  margin-top: 16px;
  padding: 13px 16px;
  background: #f0f7ff;
  border-left: 3px solid var(--hub-accent);
  border-radius: 0 var(--hub-radius-sm, 6px) var(--hub-radius-sm, 6px) 0;
  font-size: 0.9rem;
  color: var(--hub-ink-muted);
}
.quick-answer-box {
  background: #f0f7ff;
  border: 1px solid #cce3fa;
  border-radius: var(--hub-radius-lg);
  padding: 20px 22px;
}
.quick-answer-box h2 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  color: var(--hub-ink);
}
.quick-answer-box ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--hub-ink);
  font-size: 0.95rem;
}
.guide-prose h2 {
  margin: 0 0 12px;
  font-size: 1.32rem;
  color: var(--hub-ink);
}
.guide-prose p {
  margin: 0 0 14px;
  font-size: 0.98rem;
  line-height: 1.68;
  color: var(--hub-ink-muted);
}
.guide-prose p:last-child { margin-bottom: 0; }
.worked-example-box {
  background: #f8fafc;
  border: 1px solid var(--hub-border);
  border-left: 4px solid #0f2439;
  border-radius: var(--hub-radius-md);
  padding: 18px 20px;
}
.worked-example-box h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
  color: var(--hub-ink);
}
.worked-example-box p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--hub-ink-muted);
}
.guide-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  background: var(--hub-surface);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-lg);
  padding: 22px;
  box-shadow: var(--hub-shadow-sm);
}
.guide-card h3 {
  margin: 8px 0 8px;
  font-size: 1.12rem;
  line-height: 1.3;
}
.guide-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--hub-ink-muted);
}
.pwa-install-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(185, 219, 250, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.pwa-install-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #b9dbfa;
}
.pwa-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 36, 57, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}
.pwa-modal-backdrop[hidden] { display: none; }
.pwa-modal {
  background: #ffffff;
  color: var(--hub-ink);
  border-radius: var(--hub-radius-lg);
  max-width: 420px;
  width: 100%;
  padding: 22px 24px;
  box-shadow: 0 20px 50px rgba(15, 36, 57, 0.28);
}
.pwa-modal h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}
.pwa-modal p {
  margin: 0 0 16px;
  font-size: 0.93rem;
  color: var(--hub-ink-muted);
  line-height: 1.5;
}
@media (max-width: 640px) {
  .profile-meta-grid { grid-template-columns: minmax(0, 1fr); }
}

/* === REQUEST A RESORT STRIP === */
.resort-request-strip {
  padding: 28px 0 36px;
  background: var(--bg-soft, #f4f7fb);
  border-top: 1px solid rgba(15, 36, 57, 0.08);
}
.resort-request-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #ffffff;
  border: 1px solid rgba(15, 36, 57, 0.12);
  border-left: 4px solid #1d4ed8;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 2px 10px rgba(15, 36, 57, 0.05);
}
.resort-request-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d4ed8;
  margin-bottom: 4px;
}
.resort-request-copy h2 {
  font-size: 1.15rem;
  color: #0f2439;
  margin: 0 0 6px;
}
.resort-request-copy p {
  font-size: 0.94rem;
  color: #475569;
  margin: 0;
  max-width: 640px;
  line-height: 1.5;
}
.resort-request-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 11px 18px;
  border-radius: 8px;
  background: #0f2439;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.15s ease;
}
.resort-request-btn:hover {
  background: #1d4ed8;
}
@media (max-width: 720px) {
  .resort-request-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    gap: 14px;
  }
  .resort-request-btn {
    width: 100%;
    box-sizing: border-box;
  }
}
/* === REFINED HEADER, COURTESY BAR & MOBILE POLISH (29 Nov 2026) === */
/* Option B (Steve's chosen shared 5-site satellite header): One Unified 20-Years API Crest + Clean Editorial Typography */
.hub-container {
  width: 100%;
  max-width: var(--hub-max-w);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.hub-header {
  position: relative;
  background: #ffffff;
  border-bottom: 1px solid var(--hub-border);
}
.hub-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 13px;
  padding-bottom: 13px;
  min-height: auto;
}
.hub-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.hub-brand-crest-link {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}
.hub-brand-crest {
  width: 50px;
  height: 50px;
  min-width: 50px;
  max-width: 50px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: block;
  object-fit: contain;
}
.hub-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}
.hub-brand-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: #0f2439;
  letter-spacing: -0.02em;
  text-decoration: none;
  line-height: 1.15;
}
.hub-brand-title:hover {
  color: var(--hub-accent);
  text-decoration: none;
}
.hub-brand-courtesy {
  font-size: 0.78rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  margin-top: 3px;
  line-height: 1.25;
}
.hub-brand-courtesy strong {
  color: #0f2439;
  font-weight: 700;
}
.hub-brand-courtesy:hover,
.hub-brand-courtesy:hover strong {
  color: var(--hub-accent);
  text-decoration: none;
}

@media (max-width: 640px) {
  .hub-container {
    padding-left: 22px !important;
    padding-right: 22px !important;
    padding-left: max(22px, env(safe-area-inset-left)) !important;
    padding-right: max(22px, env(safe-area-inset-right)) !important;
  }
  .hub-header-inner {
    padding-top: 12px;
    padding-bottom: 11px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .hub-brand-lockup {
    gap: 12px;
    width: 100%;
  }
  .hub-brand-crest {
    width: 48px;
    height: 48px;
    min-width: 48px;
    max-width: 48px;
  }
  .hub-brand-title {
    font-size: 1.18rem;
  }
  .hub-brand-courtesy {
    font-size: 0.76rem;
  }
  .hub-nav {
    display: flex;
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 6px 14px;
    font-size: 0.84rem;
    width: 100%;
    padding-top: 9px;
    border-top: 1px solid #edf2f7;
  }
  .hub-nav a {
    padding: 3px 0;
    white-space: nowrap;
  }
  .hub-hero-inner, .hub-hero-home .hub-hero-inner {
    padding-top: 26px;
    padding-bottom: 26px;
  }
  .hub-hero h1 {
    font-size: 1.72rem;
    line-height: 1.18;
    margin-bottom: 10px;
  }
  .hub-hero-lead {
    font-size: 0.95rem;
    line-height: 1.48;
    margin-bottom: 14px;
  }
  .hub-meta-strip {
    gap: 6px 14px;
    font-size: 0.8rem;
    margin-bottom: 16px;
  }
  .hub-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }
  .hub-hero-actions .btn {
    padding: 11px 12px;
    font-size: 0.88rem;
    text-align: center;
    justify-content: center;
    width: 100%;
  }
}

/* === SHARE BUTTONS & MODAL (29 Nov 2026) === */
.hub-share-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid #cbd9e8;
  background: #f4f7fb;
  color: #0f2439;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.hub-share-nav-btn:hover {
  background: #e7f1fb;
  border-color: #1d5d96;
  color: #1d5d96;
}
.hub-hero-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.hub-hero-share-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}
.footer-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.footer-action-row .pwa-install-btn {
  margin-top: 0;
}
.share-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.share-action-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #cbd9e8;
  background: #f8fafc;
  color: #0f2439;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.share-action-btn:hover {
  background: #e7f1fb;
  border-color: #1d5d96;
  text-decoration: none;
}
.share-action-primary {
  background: #0f2439;
  border-color: #0f2439;
  color: #ffffff;
}
.share-action-primary:hover {
  background: #1d5d96;
  border-color: #1d5d96;
  color: #ffffff;
}
.share-status-note {
  margin-top: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #0f685a;
  min-height: 1.1em;
  text-align: center;
}

/* === 7-DAY FORECAST HEATMAP MATRIX + WEBCAM COLUMN (29 Nov 2026) === */
.matrix-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 12px;
}
.matrix-tabs {
  display: inline-flex;
  background: #edf2f7;
  padding: 4px;
  border-radius: 10px;
  gap: 4px;
}
.matrix-tab {
  border: 0;
  background: transparent;
  color: #475569;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.matrix-tab.active {
  background: #ffffff;
  color: #0f2439;
  box-shadow: 0 1px 4px rgba(15, 36, 57, 0.12);
}
.matrix-count {
  margin: 0;
  font-size: 0.85rem;
  color: var(--hub-ink-subtle);
}
.fc-matrix-table th,
.fc-matrix-table td {
  vertical-align: middle;
}
.col-sticky-resort {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #ffffff;
  min-width: 195px;
  box-shadow: 2px 0 6px rgba(15, 36, 57, 0.04);
}
thead th.col-sticky-resort {
  z-index: 4;
  background: #f8fafc;
}
.resort-row-flex {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rank-num {
  width: 22px;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  flex-shrink: 0;
}
.resort-row-meta {
  min-width: 0;
}
.col-cam {
  text-align: center !important;
  width: 66px;
  padding-left: 8px !important;
  padding-right: 8px !important;
}
.cam-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 30px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid #cbd9e8;
  color: #10375b;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.cam-btn:hover {
  background: #1d5d96;
  border-color: #1d5d96;
  color: #ffffff;
  text-decoration: none;
}
.col-day {
  text-align: center !important;
  min-width: 72px;
  padding: 9px 6px !important;
  border-left: 1px solid #edf2f7;
}
thead th.col-day {
  line-height: 1.25;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}
.day-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f2439;
}
.day-date {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748b;
  margin: 1px 0 4px;
}
.conf-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}
.conf-high { background: #e3f5ec; color: #0f685a; }
.conf-med  { background: #fef3c7; color: #92400e; }
.conf-low  { background: #f1f5f9; color: #64748b; }

.fc-heat-0 { background: #ffffff; }
.fc-heat-1 { background: #e6f2fc; color: #0f2439; }
.fc-heat-2 { background: #c5e1f8; color: #0f2439; }
.fc-heat-3 { background: #8ec5f0; color: #0b2239; }
.fc-heat-4 { background: #3b8fd1; color: #ffffff; }
.fc-cm {
  display: block;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.1;
}
.fc-unit {
  display: block;
  font-size: 0.68rem;
  opacity: 0.78;
}
.fc-wx-glyph {
  display: block;
  font-size: 0.88rem;
  line-height: 1.15;
  color: #64748b;
}
.fc-wx-temp {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 1px;
}
.col-total, .col-depth-mini {
  text-align: center !important;
  min-width: 68px;
  border-left: 1px solid #dbe5f0;
  background: #f8fbfe;
}
thead th.col-total {
  border-bottom: 2px solid #1d5d96 !important;
  color: #1d5d96;
}
.col-total strong, .col-depth-mini strong {
  display: block;
  font-size: 0.96rem;
  color: #0f2439;
  line-height: 1.1;
}
.tot-unit {
  display: block;
  font-size: 0.7rem;
  color: #64748b;
}
.matrix-swipe-hint {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: #64748b;
}
@media (max-width: 640px) {
  .col-sticky-resort {
    min-width: 155px;
    max-width: 175px;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .matrix-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .matrix-tab {
    padding: 8px 8px;
    font-size: 0.8rem;
    text-align: center;
  }
}

/* === FRESH POWDER ALERTS SIGN-UP CARD & NAV BUTTON (29 Nov 2026) === */
.hub-alerts-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px !important;
  border-radius: 999px;
  background: #1d5d96;
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.hub-alerts-nav-btn:hover {
  background: #0f2439;
  color: #ffffff !important;
  text-decoration: none;
}
.powder-alerts-section {
  padding: 26px 0 10px;
}
.powder-alerts-card {
  background: linear-gradient(135deg, #0f2439 0%, #17446e 60%, #1d5d96 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 26px 28px;
  box-shadow: 0 10px 26px rgba(15, 36, 57, 0.14);
}
.powder-alerts-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #dbeafe;
  margin-bottom: 10px;
}
.powder-alerts-copy h2 {
  margin: 0 0 6px;
  font-size: 1.42rem;
  line-height: 1.22;
  color: #ffffff;
}
.powder-alerts-copy p {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 680px;
  line-height: 1.5;
}
.powder-form-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
}
.powder-input,
.powder-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #ffffff;
  color: #0f2439;
  font-family: inherit;
  font-size: 0.94rem;
}
.powder-submit-btn {
  padding: 12px 20px;
  border-radius: 9px;
  border: 0;
  background: #38bdf8;
  color: #0b2239;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.powder-submit-btn:hover {
  background: #7dd3fc;
}
.snow-alerts-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 12px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  text-align: left;
  grid-column: 1 / -1;
}
.snow-alerts-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #38bdf8;
  cursor: pointer;
}
.powder-submit-row {
  display: flex;
  align-items: center;
}
.powder-status {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 1em;
}
.powder-status.is-ok { color: #86efac; }
.powder-status.is-err { color: #fecaca; }

@media (max-width: 760px) {
  .powder-alerts-card {
    padding: 20px 18px;
  }
  .powder-alerts-copy h2 {
    font-size: 1.24rem;
  }
  .powder-form-row {
    grid-template-columns: 1fr;
  }
  .powder-submit-btn {
    width: 100%;
  }
}
/* === SINGLE-LINE DESKTOP HEADER FIT (29 Nov 2026) === */
@media (min-width: 1024px) {
  .hub-header .hub-container {
    max-width: 1380px;
  }
  .hub-header-inner {
    gap: 18px;
    flex-wrap: nowrap;
    padding-top: 22px;
    padding-bottom: 22px;
  }
  .hub-brand-lockup {
    gap: 16px;
    flex-shrink: 0;
  }
  .hub-brand-crest {
    width: 74px;
    height: 74px;
    min-width: 74px;
    max-width: 74px;
  }
  .hub-brand-title {
    font-size: 1.72rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    white-space: nowrap;
    line-height: 1.1;
  }
  .hub-brand-courtesy {
    font-size: 0.86rem;
    margin-top: 5px;
    white-space: nowrap;
  }
  .hub-nav {
    gap: 12px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    min-width: 0;
  }
  .hub-nav a {
    font-size: 0.85rem;
    white-space: nowrap;
    padding: 6px 1px;
  }
  .hub-alerts-nav-btn {
    padding: 7px 12px !important;
    font-size: 0.81rem !important;
  }
  .hub-share-nav-btn {
    padding: 7px 10px;
    font-size: 0.81rem;
  }
}
@media (max-width: 640px) {
  .hub-header-inner {
    padding-top: 17px;
    padding-bottom: 14px;
  }
  .hub-brand-crest {
    width: 62px !important;
    height: 62px !important;
    min-width: 62px !important;
    max-width: 62px !important;
  }
  .hub-brand-title {
    font-size: 1.52rem !important;
    line-height: 1.12;
  }
  .hub-brand-courtesy {
    font-size: 0.84rem !important;
    margin-top: 4px;
  }
}

/* === EUROPEAN LANGUAGE SWITCHER (29 Nov 2026) === */
.hub-lang-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.hub-lang-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 6px 24px 6px 10px;
  border-radius: 999px;
  border: 1px solid #cbd9e8;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230f2439' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  color: #0f2439;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
}
.hub-lang-select:hover {
  border-color: #1d5d96;
  background-color: #f4f7fb;
}
/* Suppress Google Translate top frame bar cleanly so layout never shifts */
.goog-te-banner-frame.skiptranslate,
iframe.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}
body {
  top: 0 !important;
}
@media (min-width: 1024px) {
  .hub-header .hub-container {
    max-width: 1420px;
  }
  .hub-nav {
    gap: 11px;
  }
  .hub-nav a {
    font-size: 0.84rem;
  }
}

/* MOBILE 1-LINE NAV ACTIONS POLISH */
.hub-nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .hub-nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    width: 100%;
    margin-top: 2px;
  }
  .hub-alerts-nav-btn {
    padding: 5px 10px !important;
    font-size: 0.74rem !important;
    gap: 4px;
    white-space: nowrap;
  }
  .hub-share-nav-btn {
    padding: 5px 9px;
    font-size: 0.74rem;
    gap: 4px;
    white-space: nowrap;
  }
  .hub-lang-select {
    padding: 5px 20px 5px 8px;
    font-size: 0.74rem;
    background-position: right 6px center;
  }
}

/* SAVE AS APP STEP-BY-STEP MODAL */
.pwa-modal.pwa-install-guide {
  max-width: 440px;
  max-height: 88vh;
  overflow-y: auto;
  text-align: left;
  padding: 22px 20px;
}
.pwa-install-guide h3 {
  font-size: 1.12rem;
  margin: 0 0 8px;
  color: #0f2439;
}
.pwa-guide-intro {
  margin: 0 0 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #475569;
}
.pwa-guide-section {
  background: #f4f8fc;
  border: 1px solid #dbe7f3;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.pwa-guide-section h4 {
  margin: 0 0 8px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f2439;
  letter-spacing: 0.01em;
}
.pwa-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pwa-steps li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.84rem;
  line-height: 1.42;
  color: #1e293b;
}
.pwa-step-num {
  flex-shrink: 0;
  width: 21px;
  height: 21px;
  border-radius: 999px;
  background: #1d5d96;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.pwa-inline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: -2px;
  padding: 1px 4px;
  border-radius: 4px;
  background: #e2effb;
  color: #1d5d96;
}
.pwa-guide-btn {
  width: 100%;
  margin-top: 4px;
}
.pwa-install-guide { max-height: 86vh; overflow-y: auto; }


/* === LESLEY POWERFUL BRAND HEADER SCALE (29 NOV 2026) === */
/* Tablet / default medium width */
.hub-brand-lockup {
  gap: 15px !important;
}
.hub-brand-crest {
  width: 78px !important;
  height: 78px !important;
  min-width: 78px !important;
  max-width: 78px !important;
}
.hub-brand-title {
  font-size: 1.88rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.028em !important;
  line-height: 1.06 !important;
}
.hub-brand-courtesy {
  font-size: 0.88rem !important;
  margin-top: 4px !important;
}

/* Desktop: bold flagship crest + title */
@media (min-width: 1024px) {
  .hub-header .hub-container {
    max-width: 1460px;
  }
  .hub-header-inner {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    gap: 18px 24px !important;
  }
  .hub-brand-lockup {
    gap: 18px !important;
  }
  .hub-brand-crest {
    width: 92px !important;
    height: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
  }
  .hub-brand-title {
    font-size: 2.15rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.03em !important;
    line-height: 1.05 !important;
  }
  .hub-brand-courtesy {
    font-size: 0.94rem !important;
    margin-top: 4px !important;
  }
}
@media (min-width: 1024px) and (max-width: 1299px) {
  .hub-header-inner {
    flex-wrap: wrap !important;
  }
  .hub-nav {
    width: 100%;
    justify-content: flex-start;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
  }
}

/* Mobile: commanding crest + single-line title on iPhone */
@media (max-width: 640px) {
  .hub-header-inner {
    padding-top: 16px !important;
    padding-bottom: 14px !important;
  }
  .hub-brand-lockup {
    gap: 13px !important;
  }
  .hub-brand-crest {
    width: 76px !important;
    height: 76px !important;
    min-width: 76px !important;
    max-width: 76px !important;
  }
  .hub-brand-title {
    font-size: 1.72rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.028em !important;
    line-height: 1.08 !important;
  }
  .hub-brand-courtesy {
    font-size: 0.83rem !important;
    margin-top: 4px !important;
  }
}

/* TOP-OF-PAGE SAVE AS APP BUTTON (29 NOV 2026) */
.hub-install-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid #0f4c81;
  background: #eff6ff;
  color: #0f4c81;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.hub-install-nav-btn:hover {
  background: #0f4c81;
  color: #ffffff;
  border-color: #0f4c81;
}
@media (max-width: 640px) {
  .hub-nav-actions {
    flex-wrap: nowrap !important;
    gap: 5px !important;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .hub-alerts-nav-btn {
    padding: 5px 8px !important;
    font-size: 0.70rem !important;
    gap: 3px !important;
    white-space: nowrap !important;
    flex-shrink: 0;
  }
  .hub-install-nav-btn {
    padding: 5px 8px !important;
    font-size: 0.70rem !important;
    gap: 3px !important;
    white-space: nowrap !important;
    flex-shrink: 0;
  }
  .hub-share-nav-btn {
    padding: 5px 7px !important;
    font-size: 0.70rem !important;
    gap: 3px !important;
    white-space: nowrap !important;
    flex-shrink: 0;
  }
  .hub-lang-select {
    padding: 5px 18px 5px 7px !important;
    font-size: 0.70rem !important;
    background-position: right 5px center !important;
    flex-shrink: 0;
  }
}
