:root {
  --hub-light: #eaf5fc;
  --hub-navy: #071b30;
  --hub-footer: #051120;
  --hub-ink: #102039;
  --hub-muted: #526a7c;
  scroll-padding-top: 96px;
}

body { background: var(--hub-light); color: var(--hub-ink); }
.topics, .featured-section, .library, .offer-preview, .advisor,
.article-related { background: var(--hub-light); }
.article-card, .topic-card { border-color: #cedfeb; }
.guides-section { background: var(--hub-navy); }
.site-footer { background: var(--hub-footer); color: #dce9f5; }
.site-footer :is(p, a, .footer-bottom) { color: #c1d3e3; }
.site-footer a:hover { color: #a8d0ff; }

.hub-latest { padding: clamp(38px, 5vw, 70px) 0; }
.hub-latest-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 24px;
}
.hub-latest-head h2 { font-size: clamp(28px, 3.5vw, 43px); margin: 4px 0 0; }
.hub-latest-head .eyebrow { color: #075ebf; }
.hub-latest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hub-latest-card {
  display: grid;
  gap: 8px;
  padding: 22px;
  color: var(--hub-ink);
  background: #fff;
  border: 1px solid #ccdeeb;
  border-radius: 16px;
  box-shadow: 0 10px 25px #1236550c;
}
.hub-latest-card small { color: #075ebf; font-weight: 750; }
.hub-latest-card strong { line-height: 1.35; }
.hub-latest-card span { color: var(--hub-muted); font-size: .875rem; }
.hub-latest-card:hover { border-color: #5999d9; }
.hub-latest-card:focus-visible { outline: 3px solid #287ac8; outline-offset: 3px; }

.hub-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(8px + env(safe-area-inset-top, 0px)) clamp(14px, 2vw, 30px) 0;
  pointer-events: none;
  color: #f4f9ff;
}
.hub-brand, .hub-menu { pointer-events: auto; }
.hub-brand { display: grid; align-items: center; position: relative; isolation: isolate; }
.hub-brand::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10px -18px;
  background: radial-gradient(ellipse, #071b3068 0%, #071b302b 50%, transparent 74%);
  transition: opacity .24s ease;
}
.hub-brand img {
  display: block;
  width: clamp(112px, 12vw, 158px);
  height: auto;
  filter: drop-shadow(0 2px 6px #0005);
  transition: filter .24s ease;
}
.hub-header[data-tone="light"] .hub-brand::before { opacity: .18; }
.hub-header[data-tone="light"] .hub-brand img {
  filter: brightness(0) saturate(100%) invert(13%) sepia(23%) saturate(1711%) hue-rotate(171deg);
}
.hub-menu { position: relative; margin: 0; padding: 0; border: 0; }
.hub-menu > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 15px;
  cursor: pointer;
  border: 1px solid #d7edff50;
  border-radius: 999px;
  list-style: none;
  font-size: .9rem;
  font-weight: 750;
  background: linear-gradient(145deg, #36566dd6, #10263ddd);
  box-shadow: 0 5px 18px #091d3822, inset 0 1px #fff2;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: background .24s ease, color .24s ease;
}
.hub-header[data-tone="light"] .hub-menu > summary {
  color: #102b45;
  border-color: #8fb0cd65;
  background: linear-gradient(145deg, #f8fcffeb, #dcebf6e0);
}
.hub-menu summary::-webkit-details-marker { display: none; }
.hub-menu-icon { display: grid; gap: 4px; }
.hub-menu-icon i { width: 17px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .24s, opacity .24s; }
.hub-menu[open] > summary i:first-child { transform: translateY(6px) rotate(45deg); }
.hub-menu[open] > summary i:nth-child(2) { opacity: 0; }
.hub-menu[open] > summary i:last-child { transform: translateY(-6px) rotate(-45deg); }
.hub-nav {
  position: absolute;
  inset: calc(100% + 9px) 0 auto auto;
  width: min(340px, calc(100vw - 28px));
  max-height: min(71vh, 640px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 10px;
  color: #f4f9ff;
  background: linear-gradient(150deg, #31475cf5, #101f31f5);
  border: 1px solid #eaf6ff30;
  border-radius: 22px;
  box-shadow: 0 16px 42px #071d3940;
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  backdrop-filter: blur(22px) saturate(130%);
}
.hub-header[data-tone="light"] .hub-nav {
  color: #102b45;
  background: linear-gradient(150deg, #f9fdfff5, #e8f2faf5);
  border-color: #91b3d067;
}
.hub-nav :is(a, summary) {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  line-height: 1.35;
}
.hub-nav > a, .hub-nav summary { font-weight: 720; }
.hub-nav > a { background: #8aafce1a; margin-bottom: 3px; }
.hub-nav-group { border: 0; margin: 3px 0; padding: 0; border-radius: 12px; }
.hub-nav-group[open] { background: #8aafce20; }
.hub-nav-group summary { display: flex; justify-content: space-between; list-style: none; cursor: pointer; }
.hub-nav-group summary::after { content: ""; width: 7px; height: 7px; margin: 3px 3px 0 12px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.hub-nav-group[open] summary::after { transform: rotate(225deg); margin-top: 8px; }
.hub-nav-group div { padding: 0 4px 5px; }
.hub-nav :is(a, summary):hover { background: #8aafce38; }
.hub-header :is(a, summary):focus-visible { outline: 2px solid #5daaff; outline-offset: 2px; }
.hub-menu[open] .hub-nav { animation: hub-menu-in .24s cubic-bezier(.22,.72,.24,1) both; }
@keyframes hub-menu-in {
  from { opacity: 0; transform: translateY(-6px) scale(.985); transform-origin: top right; }
  to { opacity: 1; transform: none; }
}

.hub-article-checklist {
  padding: 20px 24px;
  margin: 0 0 28px;
  background: #f7fbff;
  border: 1px solid #cadfeb;
  border-left: 4px solid #2476c9;
  border-radius: 14px;
}
.hub-article-checklist h2 { margin-top: 0; font-size: 1.25rem; }
.hub-article-checklist ul { margin-bottom: 12px; }
.hub-article-checklist a { color: #075ebf; }

@media (max-width: 700px) {
  .hub-latest-grid { grid-template-columns: 1fr; gap: 10px; }
  .hub-latest-head { align-items: start; flex-direction: column; }
  .hub-latest-card { padding: 16px 18px; }
  .hub-header { align-items: start; }
  .hub-brand img { width: 116px; }
  .hub-article-checklist { padding: 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .hub-header *, .hub-brand::before { transition: none !important; animation: none !important; }
}
