/*
  Finlance Enterprise UI layer
  A shared visual language for the portal, newsroom, calculators, and content hubs.
*/

:root {
  --fl-ink: #122033;
  --fl-ink-soft: #44546a;
  --fl-muted: #738196;
  --fl-bg: #f4f7fa;
  --fl-surface: #ffffff;
  --fl-surface-soft: #f8fafc;
  --fl-border: #e2e8f0;
  --fl-border-strong: #cbd5e1;
  --fl-primary: #0b6b68;
  --fl-primary-dark: #075451;
  --fl-primary-soft: #e6f4f2;
  --fl-blue: #2563eb;
  --fl-blue-soft: #eef4ff;
  --fl-green: #16855b;
  --fl-green-soft: #e8f7ef;
  --fl-gold: #b98932;
  --fl-gold-soft: #fff7e4;
  --fl-danger: #c44343;
  --fl-radius-sm: 8px;
  --fl-radius: 14px;
  --fl-radius-lg: 22px;
  --fl-shadow-sm: 0 1px 2px rgba(18, 32, 51, .04), 0 6px 18px rgba(18, 32, 51, .035);
  --fl-shadow: 0 14px 36px rgba(18, 32, 51, .07);
  --fl-shadow-lg: 0 24px 70px rgba(18, 32, 51, .13);
  --fl-max: 1240px;
  --fl-ease: 180ms cubic-bezier(.2, .65, .3, 1);
}

body.platform-home,
body.portal-page,
body.news-body,
body[data-tool],
body:has(.gc-shell) {
  background: var(--fl-bg);
  color: var(--fl-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.platform-home a,
body.portal-page a,
body.news-body a,
body[data-tool] a,
body:has(.gc-shell) a { text-underline-offset: 3px; }

body.platform-home button,
body.portal-page button,
body.news-body button,
body[data-tool] button,
body:has(.gc-shell) button,
body.platform-home input,
body.portal-page input,
body.news-body input,
body[data-tool] input,
body:has(.gc-shell) input,
body[data-tool] select,
body[data-tool] textarea,
body:has(.gc-shell) select,
body:has(.gc-shell) textarea { font-family: inherit; }

/* Shared enterprise navigation */
.platform-home #navbar,
.portal-page .main-nav,
.news-body .main-nav,
body[data-tool] .main-nav,
body:has(.gc-shell) .gc-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 72px;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--fl-border);
  box-shadow: 0 1px 0 rgba(18, 32, 51, .02);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: background-color var(--fl-ease), box-shadow var(--fl-ease), border-color var(--fl-ease);
}

.platform-home #navbar .nav-inner,
.portal-page .main-nav .nav-inner,
.news-body .main-nav .nav-inner,
body[data-tool] .main-nav .nav-inner,
body:has(.gc-shell) .gc-nav-inner {
  max-width: var(--fl-max);
  min-height: 72px;
  padding-left: 24px;
  padding-right: 24px;
}

.platform-home .nav-logo,
.portal-page .nav-logo,
.news-body .nav-logo,
body[data-tool] .nav-logo,
body:has(.gc-shell) .gc-logo {
  color: var(--fl-ink);
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 1.18rem;
  font-weight: 850;
  letter-spacing: -.035em;
}

.platform-home .nav-logo-icon,
.platform-home .nav-logo-badge,
.portal-page .nav-logo-badge,
.news-body .nav-logo-badge,
body[data-tool] .nav-logo-badge {
  border-radius: 9px;
  background: var(--fl-primary);
  border: 0;
  box-shadow: 0 5px 12px rgba(11, 107, 104, .22);
}

.platform-home .nav-links a,
.portal-page .nav-links a,
.news-body .nav-links a,
body[data-tool] .nav-links a,
body:has(.gc-shell) .gc-nav-links a { color: var(--fl-ink-soft); font-size: .83rem; font-weight: 700; }

.platform-home .nav-links a:hover,
.platform-home .nav-links a.active,
.portal-page .nav-links a:hover,
.portal-page .nav-links a.active,
.news-body .nav-links a:hover,
.news-body .nav-links a.active,
body[data-tool] .nav-links a:hover,
body[data-tool] .nav-links a.active,
body:has(.gc-shell) .gc-nav-links a:hover { color: var(--fl-primary); }

.platform-home .nav-actions .btn-primary,
.portal-page .nav-cta,
.news-body .nav-cta,
body[data-tool] .nav-cta { background: var(--fl-primary); border-color: var(--fl-primary); border-radius: 10px; }

.portal-category-bar {
  max-width: var(--fl-max);
  padding-top: 13px;
  padding-bottom: 13px;
  border-bottom-color: var(--fl-border);
}
.portal-category-bar a { color: var(--fl-muted); font-size: .73rem; }
.portal-category-bar a:hover,
.portal-category-bar a:first-child { color: var(--fl-primary); }
.platform-home .portal-category-bar { position: sticky; top: 72px; z-index: 15; background: rgba(244,247,250,.94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }

.portal-search {
  border-color: var(--fl-border);
  background: var(--fl-surface-soft);
  border-radius: 10px;
}
.portal-search:focus-within { border-color: var(--fl-primary); box-shadow: 0 0 0 4px rgba(11, 107, 104, .1); }

/* Publication-first homepage */
.platform-home #main-content { display: flex; flex-direction: column; }
.platform-home #main-content > .hero,
.platform-home #main-content > .trust-bar,
.platform-home .legacy-home-sections { display: none !important; }
.platform-home .front-breaking { order: 1; }
.platform-home .front-page-hero { order: 2; }
.platform-home #main-content > .portal-section:has([data-portal-trending]) { order: 3; }
.platform-home #main-content > .portal-section:has([data-portal-latest-articles]) { order: 4; }
.platform-home #main-content > .portal-section:has(.portal-category-grid) { order: 5; }
.platform-home #main-content > .portal-section:has([data-portal-editors-picks]) { order: 6; }
.platform-home #main-content > .portal-section:has([data-portal-guides]) { order: 7; }
.platform-home #main-content > .portal-section:has([data-portal-recent-tools]) { order: 8; }

.front-breaking {
  width: min(var(--fl-max), calc(100% - 48px));
  min-height: 44px;
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--fl-border);
  color: var(--fl-muted);
  overflow: hidden;
}
.front-breaking-label { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; color: var(--fl-danger); font-size: .64rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.front-breaking-label > span { width: 7px; height: 7px; border-radius: 50%; background: var(--fl-danger); box-shadow: 0 0 0 4px rgba(196,67,67,.12); }
.front-breaking-items { min-width: 0; display: flex; align-items: center; gap: 18px; flex: 1; overflow: hidden; }
.front-breaking-items a { min-width: 0; color: var(--fl-ink-soft); text-decoration: none; font-size: .76rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.front-breaking-items a span { margin-right: 8px; color: var(--fl-primary); font-size: .62rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.front-breaking-items a + a { padding-left: 18px; border-left: 1px solid var(--fl-border); }
.front-breaking-loading { color: var(--fl-muted); font-size: .76rem; }
.front-breaking-link { flex: 0 0 auto; color: var(--fl-primary); font-size: .72rem; font-weight: 850; text-decoration: none; white-space: nowrap; }
.front-breaking-link:hover { color: var(--fl-primary-dark); }

.front-page-hero {
  width: min(var(--fl-max), calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0 30px;
  display: grid;
  grid-template-columns: minmax(250px, .78fr) minmax(0, 1.36fr) minmax(250px, .72fr);
  gap: 24px;
  align-items: stretch;
}
.front-page-hero-intro { display: flex; flex-direction: column; justify-content: center; padding: 10px 0; }
.front-page-kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--fl-primary); font-size: .68rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.front-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fl-green); box-shadow: 0 0 0 5px rgba(22,133,91,.12); }
.front-page-hero h1 { margin: 0 0 18px; color: var(--fl-ink); font-size: clamp(2.5rem, 4vw, 4.25rem); font-weight: 790; letter-spacing: -.075em; line-height: .98; }
.front-page-hero h1 em { color: var(--fl-primary); font-style: normal; }
.front-page-hero-intro > p { max-width: 410px; margin: 0; color: var(--fl-muted); font-size: .96rem; line-height: 1.7; }
.front-topic-nav { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 26px; }
.front-topic-nav a { padding: 7px 10px; border: 1px solid var(--fl-border); border-radius: 8px; color: var(--fl-ink-soft); background: rgba(255,255,255,.72); font-size: .68rem; font-weight: 750; text-decoration: none; transition: border-color var(--fl-ease), color var(--fl-ease), background var(--fl-ease); }
.front-topic-nav a:hover { border-color: #9dcfc9; color: var(--fl-primary); background: var(--fl-primary-soft); }
.front-page-hero-story { min-width: 0; }
.front-story-card { height: 100%; overflow: hidden; border: 1px solid var(--fl-border); border-radius: var(--fl-radius-lg); background: #fff; box-shadow: var(--fl-shadow); }
.front-story-image-link { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: #dce7ec; }
.front-story-image { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .45s cubic-bezier(.2,.65,.3,1); }
.front-story-card:hover .front-story-image { transform: scale(1.035); }
.front-story-content { padding: 22px 24px 24px; }
.front-story-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; color: var(--fl-primary); font-size: .62rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.front-story-meta span + span { color: var(--fl-muted); }
.front-story-content h2 { margin: 12px 0 10px; color: var(--fl-ink); font-size: clamp(1.4rem, 2vw, 2rem); font-weight: 790; letter-spacing: -.05em; line-height: 1.06; }
.front-story-content h2 a { color: inherit; text-decoration: none; }
.front-story-content h2 a:hover { color: var(--fl-primary); }
.front-story-content p { max-width: 650px; margin: 0; color: var(--fl-muted); font-size: .86rem; line-height: 1.62; }
.front-story-cta { display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; color: var(--fl-primary); font-size: .75rem; font-weight: 850; text-decoration: none; }
.front-story-cta:hover { color: var(--fl-primary-dark); }
.front-page-hero-rail { display: grid; align-content: stretch; gap: 0; min-width: 0; border-top: 1px solid var(--fl-border); }
.front-rail-story { min-width: 0; display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: start; padding: 17px 0; border-bottom: 1px solid var(--fl-border); color: var(--fl-ink); text-decoration: none; transition: color var(--fl-ease), transform var(--fl-ease); }
.front-rail-story:hover { color: var(--fl-primary); transform: translateX(3px); }
.front-rail-index { color: var(--fl-border-strong); font-size: .68rem; font-weight: 850; }
.front-rail-copy { min-width: 0; display: grid; gap: 6px; }
.front-rail-meta { color: var(--fl-primary); font-size: .6rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.front-rail-copy strong { color: var(--fl-ink); font-size: .86rem; font-weight: 780; line-height: 1.25; }
.front-rail-story:hover .front-rail-copy strong { color: var(--fl-primary); }
.front-rail-date { color: var(--fl-muted); font-size: .67rem; }
.front-rail-arrow { color: var(--fl-primary); font-size: .9rem; }
.front-story-loading { min-height: 390px; display: grid; align-content: end; gap: 10px; padding: 24px; border: 1px solid var(--fl-border); border-radius: var(--fl-radius-lg); background: linear-gradient(110deg, #eef2f5 8%, #f9fbfc 18%, #eef2f5 33%); background-size: 200% 100%; animation: fl-skeleton 1.4s linear infinite; }
.front-story-loading span { display: block; height: 12px; width: 72%; border-radius: 999px; background: rgba(18,32,51,.08); }
.front-story-loading span:nth-child(2) { width: 92%; height: 22px; }
.front-story-loading span:nth-child(3) { width: 48%; }
.front-rail-loading { padding: 18px 0; color: var(--fl-muted); font-size: .78rem; }
@keyframes fl-skeleton { to { background-position: -200% 0; } }

/* Portal home */
.platform-home .hero {
  background:
    radial-gradient(circle at 90% 15%, rgba(37, 99, 235, .09), transparent 26rem),
    linear-gradient(135deg, #f8fbfd 0%, #eef6f6 52%, #f8fafc 100%);
  border-bottom: 1px solid var(--fl-border);
}
.platform-home .hero::after { background: linear-gradient(90deg, transparent, rgba(11, 107, 104, .45), transparent); }
.platform-home .hero-inner { min-height: 620px; align-items: center; gap: 72px; }
.platform-home .hero-title {
  max-width: 720px;
  color: var(--fl-ink);
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: clamp(3rem, 6.4vw, 5.7rem);
  font-weight: 760;
  letter-spacing: -.075em;
  line-height: .97;
}
.platform-home .hero-title em { color: var(--fl-primary); font-style: normal; }
.platform-home .hero-kicker { color: var(--fl-primary); font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.platform-home .hero-kicker-dot { background: var(--fl-primary); box-shadow: 0 0 0 5px rgba(11, 107, 104, .1); }
.platform-home .hero-desc { color: var(--fl-ink-soft); max-width: 590px; font-size: 1.05rem; line-height: 1.7; }
.platform-home .hero-actions { gap: 10px; }
.platform-home .btn,
.portal-page .btn,
.news-body .btn {
  border-radius: 10px;
  box-shadow: none;
  font-weight: 780;
  transition: transform var(--fl-ease), box-shadow var(--fl-ease), background var(--fl-ease), border-color var(--fl-ease);
}
.platform-home .btn:hover,
.portal-page .btn:hover,
.news-body .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(18, 32, 51, .12); }
.platform-home .btn-primary { background: var(--fl-primary); border-color: var(--fl-primary); }
.platform-home .btn-primary:hover { background: var(--fl-primary-dark); border-color: var(--fl-primary-dark); }
.platform-home .btn-outline { color: var(--fl-ink); border-color: var(--fl-border-strong); background: rgba(255, 255, 255, .7); }
.platform-home .btn-outline:hover { border-color: var(--fl-primary); color: var(--fl-primary); background: #fff; }
.platform-home .hero-stats { margin-top: 46px; gap: 22px; }
.platform-home .hstat-num { color: var(--fl-ink); font-size: 1.15rem; font-weight: 850; }
.platform-home .hstat-label { color: var(--fl-muted); font-size: .72rem; }
.platform-home .hstat-div { background: var(--fl-border-strong); }
.platform-home .hero-right { gap: 14px; }
.platform-home .hero-right .hcard {
  border: 1px solid var(--fl-border);
  border-radius: var(--fl-radius-lg);
  background: rgba(255,255,255,.9);
  box-shadow: var(--fl-shadow);
}
.platform-home .hero-right .live-calc-card { background: var(--fl-ink); border-color: var(--fl-ink); color: #fff; box-shadow: var(--fl-shadow-lg); }
.platform-home .hcard-title { font-size: .82rem; font-weight: 800; letter-spacing: .01em; }
.platform-home .hcard-live { border-radius: 999px; background: rgba(73, 207, 166, .15); color: #66dbb5; font-size: .65rem; font-weight: 850; }
.platform-home .mini-calc-field span { color: rgba(255,255,255,.68); font-size: .72rem; }
.platform-home .mini-calc-field output { color: #fff; font-weight: 800; }
.platform-home .live-calc-card input[type="range"] { accent-color: #57cbb0; }
.platform-home .mini-result { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 13px; }
.platform-home .mini-result span,
.platform-home .mini-result small { color: rgba(255,255,255,.58); }
.platform-home .mini-result strong { color: #fff; font-size: 1.85rem; letter-spacing: -.04em; }
.platform-home .mini-calc-link { color: #fff; border-color: rgba(255,255,255,.2); background: transparent; }
.platform-home .mini-calc-link:hover { border-color: #66dbb5; color: #66dbb5; background: transparent; }
.platform-home .hero-right .hcard:not(.live-calc-card) { background: #fff; }
.platform-home .calc-chip { border-color: var(--fl-border); border-radius: 9px; color: var(--fl-ink-soft); background: var(--fl-surface-soft); font-size: .74rem; font-weight: 740; }
.platform-home .calc-chip:hover { border-color: var(--fl-primary); background: var(--fl-primary-soft); color: var(--fl-primary); }
.platform-home .trust-bar { background: #fff; border-bottom: 1px solid var(--fl-border); border-top: 0; }
.platform-home .trust-item { color: var(--fl-muted); font-size: .68rem; font-weight: 800; letter-spacing: .11em; }
.platform-home .trust-dot { background: var(--fl-primary); }

/* Shared portal content blocks */
.portal-section {
  max-width: var(--fl-max);
  padding-top: 86px;
  padding-bottom: 0;
}
.portal-section--tint {
  max-width: none;
  padding-top: 86px;
  padding-bottom: 86px;
  background: #edf3f7;
}
.portal-section-head { margin-bottom: 26px; }
.portal-kicker { color: var(--fl-primary); font-size: .68rem; letter-spacing: .14em; }
.portal-section h2 { color: var(--fl-ink); font-family: Inter, ui-sans-serif, sans-serif; font-size: clamp(1.8rem, 3.2vw, 2.65rem); font-weight: 780; letter-spacing: -.055em; }
.portal-section-intro { color: var(--fl-muted); }
.portal-section-link { color: var(--fl-primary); font-size: .77rem; }
.portal-overview-grid { gap: 14px; }
.portal-card {
  padding: 24px;
  border-color: var(--fl-border);
  border-radius: var(--fl-radius);
  background: rgba(255,255,255,.96);
  box-shadow: var(--fl-shadow-sm);
  transition: transform var(--fl-ease), box-shadow var(--fl-ease), border-color var(--fl-ease);
}
.portal-card:hover { transform: translateY(-4px); border-color: #b5d9d5; box-shadow: var(--fl-shadow); }
.portal-card--featured { background: var(--fl-ink); border-color: var(--fl-ink); }
.portal-card--featured:hover { border-color: var(--fl-ink); }
.portal-card h3 { font-family: Inter, ui-sans-serif, sans-serif; font-size: 1.22rem; font-weight: 780; letter-spacing: -.035em; }
.portal-card-meta { color: var(--fl-primary); font-size: .64rem; }
.portal-card p { color: var(--fl-muted); }
.portal-card-footer { color: var(--fl-muted); }
.portal-empty { padding: 24px; border-color: var(--fl-border-strong); border-radius: var(--fl-radius); background: rgba(255,255,255,.6); color: var(--fl-muted); }
.portal-empty strong { color: var(--fl-ink); }
.portal-category-grid { gap: 12px; }
.portal-category-card {
  min-height: 142px;
  padding: 20px;
  border-color: var(--fl-border);
  border-radius: var(--fl-radius);
  background: #fff;
  box-shadow: var(--fl-shadow-sm);
}
.portal-category-card:hover { border-color: #99ccc5; box-shadow: var(--fl-shadow); }
.portal-category-card small { color: var(--fl-primary); }
.portal-category-card strong { font-family: Inter, ui-sans-serif, sans-serif; font-size: 1.07rem; font-weight: 780; letter-spacing: -.025em; }
.portal-category-card span { color: var(--fl-muted); }
.portal-calc-row { gap: 12px; }
.portal-calc-card { border-color: var(--fl-border); border-radius: var(--fl-radius); background: #fff; box-shadow: var(--fl-shadow-sm); transition: transform var(--fl-ease), border-color var(--fl-ease), box-shadow var(--fl-ease); }
.portal-calc-card:hover { transform: translateY(-3px); border-color: #99ccc5; box-shadow: var(--fl-shadow); }
.portal-calc-card small { color: var(--fl-primary); }
.portal-calc-card strong { font-family: Inter, ui-sans-serif, sans-serif; font-size: 1rem; font-weight: 780; }
.portal-calc-card span { color: var(--fl-muted); }
/* Legacy home sections that remain below the portal content */
.platform-home .section-pad { padding-top: 84px; padding-bottom: 84px; background: transparent !important; }
.platform-home .section-label,
.platform-home .section-kicker { color: var(--fl-primary); font-size: .68rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.platform-home .section-title,
.platform-home .edu-grid h2,
.platform-home .stats-grid + * h2 { color: var(--fl-ink); font-family: Inter, ui-sans-serif, sans-serif; font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 780; letter-spacing: -.06em; }
.platform-home .section-subtitle { color: var(--fl-muted); }
.platform-home .feature-card,
.platform-home .tool-tile,
.platform-home .methodology-card,
.platform-home .stat-card { border-color: var(--fl-border); border-radius: var(--fl-radius); background: #fff; box-shadow: var(--fl-shadow-sm); }
.platform-home .feature-card:hover,
.platform-home .tool-tile:hover { transform: translateY(-4px); border-color: #99ccc5; box-shadow: var(--fl-shadow); }
.platform-home .feat-icon { background: var(--fl-primary-soft); color: var(--fl-primary); border-radius: 12px; }
.platform-home .tool-tile { border-top: 3px solid var(--tile-color, var(--fl-primary)); }
.platform-home .tools-preview { background: #edf3f7 !important; }
.platform-home .edu-grid,
.platform-home .methodology-grid { gap: 18px; }
.platform-home .edu-list li::before { color: var(--fl-primary); }
.platform-home .faq-item,
.platform-home .faq-list details { border-color: var(--fl-border); }
.platform-home .faq-item summary,
.platform-home .faq-list summary { color: var(--fl-ink); }
.platform-home .cta-wrap { border-radius: var(--fl-radius-lg); background: linear-gradient(130deg, #102c42, #0b6b68); box-shadow: var(--fl-shadow-lg); }
.platform-home .cta-wrap h2 { font-family: Inter, ui-sans-serif, sans-serif; letter-spacing: -.05em; }
.platform-home .newsletter-form input { border-color: var(--fl-border-strong); border-radius: 10px; background: #fff; }
.platform-home footer { background: #0e1b2a; border-top: 0; color: rgba(255,255,255,.64); }
.platform-home footer a { color: rgba(255,255,255,.72); }
.platform-home footer a:hover { color: #72d4bb; }

/* Content hubs: guides, categories, search */
.portal-page { background: var(--fl-bg); }
.portal-page .portal-main { max-width: var(--fl-max); padding-top: 58px; padding-bottom: 92px; }
.portal-page .portal-hero { border-color: var(--fl-border); border-radius: var(--fl-radius-lg); background: linear-gradient(135deg, #eff8f7, #fff); box-shadow: var(--fl-shadow-sm); }
.portal-page .portal-hero h1 { color: var(--fl-ink); font-family: Inter, ui-sans-serif, sans-serif; font-weight: 780; letter-spacing: -.07em; }
.portal-page .portal-hero p { color: var(--fl-muted); }
.portal-page .portal-hero-aside { border-color: var(--fl-border); border-radius: var(--fl-radius); background: rgba(255,255,255,.85); }
.portal-page .portal-hero-aside strong { color: var(--fl-ink); font-family: Inter, ui-sans-serif, sans-serif; }
.portal-page .portal-toolbar { margin-top: 30px; }
.portal-page .portal-filter { border-color: var(--fl-border); background: #fff; color: var(--fl-muted); border-radius: 9px; }
.portal-page .portal-filter.active,
.portal-page .portal-filter:hover { background: var(--fl-primary-soft); border-color: #9dcfc9; color: var(--fl-primary); }
.portal-page .portal-search--large { border-color: var(--fl-border); box-shadow: var(--fl-shadow-sm); }
.portal-page .portal-search--large button { background: var(--fl-primary); }
.portal-page .portal-search-result { border-color: var(--fl-border); border-radius: var(--fl-radius); box-shadow: var(--fl-shadow-sm); }
.portal-page .portal-search-result:hover { border-color: #99ccc5; box-shadow: var(--fl-shadow); }
.portal-page .portal-search-result-type { color: var(--fl-primary); }
.portal-page .portal-search-result h3 { color: var(--fl-ink); font-family: Inter, ui-sans-serif, sans-serif; font-weight: 780; }
.portal-page .search-result-group + .search-result-group { margin-top: 34px; }
.portal-page .search-result-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 0 0 12px; }
.portal-page .search-result-group-head h2 { margin: 0; color: var(--fl-ink); font-family: Inter, ui-sans-serif, sans-serif; font-size: 1.15rem; font-weight: 800; letter-spacing: -.03em; }
.portal-page .search-result-group-head span { color: var(--fl-muted); font-size: .72rem; font-weight: 750; }
.portal-page footer { background: #0e1b2a; }

/* Newsroom */
.news-body { background: var(--fl-bg); }
.news-body .news-shell { max-width: var(--fl-max); padding-top: 28px; padding-bottom: 86px; }
.news-body .news-hero-panel { border-color: var(--fl-border); border-radius: var(--fl-radius-lg); background: linear-gradient(135deg, #eef8f7, #fff); box-shadow: var(--fl-shadow-sm); }
.news-body .hero-banner-wrap { border-color: var(--fl-border); border-radius: var(--fl-radius); box-shadow: var(--fl-shadow); }
.news-body .hero-label,
.news-body .news-section-kicker { color: var(--fl-primary); }
.news-body .news-hero-panel h1 { color: var(--fl-ink); font-family: Inter, ui-sans-serif, sans-serif; font-size: clamp(2.6rem, 5vw, 4.35rem); font-weight: 780; letter-spacing: -.07em; }
.news-body .news-hero-panel p { color: var(--fl-ink-soft); }
.news-body .news-cat-nav { margin-top: 24px; }
.news-body .ncn-btn { border-color: var(--fl-border); background: #fff; color: var(--fl-muted); border-radius: 9px; font-size: .78rem; }
.news-body .ncn-btn:hover,
.news-body .ncn-btn.active { border-color: #9dcfc9; background: var(--fl-primary-soft); color: var(--fl-primary); }
.news-body .news-search-wrap { border-color: var(--fl-border); border-radius: 10px; background: #fff; box-shadow: var(--fl-shadow-sm); }
.news-body .news-search-input { color: var(--fl-ink); }
.news-body .breaking-news-banner { border-color: #f0d7a5; border-radius: 10px; background: var(--fl-gold-soft); }
.news-body .bnb-badge { background: var(--fl-gold); }
.news-body .news-layout { gap: 22px; }
.news-body .feed-section-title span { color: var(--fl-primary); }
.news-body .feed-section-title strong { color: var(--fl-ink); font-family: Inter, ui-sans-serif, sans-serif; letter-spacing: -.04em; }
.news-body .news-article-card { border-color: var(--fl-border); border-radius: var(--fl-radius); background: #fff; box-shadow: var(--fl-shadow-sm); transition: transform var(--fl-ease), box-shadow var(--fl-ease), border-color var(--fl-ease); }
.news-body .news-article-card:hover { transform: translateY(-4px); border-color: #a9d2cd; box-shadow: var(--fl-shadow); }
.news-body .nac-title { font-family: Inter, ui-sans-serif, sans-serif; letter-spacing: -.035em; }
.news-body .nac-title a { color: var(--fl-ink); }
.news-body .nac-excerpt { color: var(--fl-muted); }
.news-body .nac-footer { color: var(--fl-muted); border-color: var(--fl-border); }
.news-body .news-widget,
.news-body .art-widget,
.news-body .why-card,
.news-body .calc-card-item { border-color: var(--fl-border); border-radius: var(--fl-radius); background: #fff; box-shadow: var(--fl-shadow-sm); }
.news-body .news-widget h2,
.news-body .art-widget h2 { color: var(--fl-ink); font-family: Inter, ui-sans-serif, sans-serif; }
.news-body .most-read-link:hover .mrl-text,
.news-body .tag-pill:hover { color: var(--fl-primary); }
.news-body .tag-pill { border-color: var(--fl-border); border-radius: 9px; background: var(--fl-surface-soft); color: var(--fl-muted); }
.news-body .popular-calc-section,
.news-body .newsletter-cta { border-radius: var(--fl-radius-lg); background: linear-gradient(135deg, #eff8f7, #fff); border-color: var(--fl-border); }
.news-body .popular-calc-grid { gap: 12px; }
.news-body .calc-card-item:hover { border-color: #99ccc5; box-shadow: var(--fl-shadow); }
.news-body .calc-card-item strong { color: var(--fl-ink); }
.news-body .calc-card-item .calc-action { color: var(--fl-primary); }
.news-body .why-card:hover { border-color: #99ccc5; box-shadow: var(--fl-shadow); }
.news-body .why-icon-wrap { background: var(--fl-primary-soft); color: var(--fl-primary); }
.news-body .newsletter-cta { box-shadow: var(--fl-shadow-sm); }
.news-body footer { background: #0e1b2a; border-top: 0; color: rgba(255,255,255,.64); }
.news-body footer a { color: rgba(255,255,255,.72); }

/* Calculator pages: consistent input/result/workbench language */
body[data-tool] { background: var(--fl-bg); }
body[data-tool] .tool-hero { max-width: var(--fl-max); padding-top: 52px; padding-bottom: 30px; }
body[data-tool] .breadcrumb { color: var(--fl-muted); }
body[data-tool] .breadcrumb a:hover { color: var(--fl-primary); }
body[data-tool] .hero-label,
body[data-tool] .calc-badge { border-color: #b8ddd8; background: var(--fl-primary-soft); color: var(--fl-primary); border-radius: 999px; }
body[data-tool] .tool-hero h1 { color: var(--fl-ink); font-family: Inter, ui-sans-serif, sans-serif; font-size: clamp(2.4rem, 5vw, 4.7rem); font-weight: 780; letter-spacing: -.075em; }
body[data-tool] .hero-desc { max-width: 700px; color: var(--fl-muted); }
body[data-tool] .tool-main { max-width: var(--fl-max); }
body[data-tool] .calc-layout { gap: 18px; }
body[data-tool] .calc-panel,
body[data-tool] .result-panel,
body[data-tool] .education-section,
body[data-tool] .related-tools { border-color: var(--fl-border); border-radius: var(--fl-radius-lg); background: #fff; box-shadow: var(--fl-shadow-sm); }
body[data-tool] .calc-panel h2,
body[data-tool] .result-panel h3,
body[data-tool] .education-head h2,
body[data-tool] .related-tools h2 { color: var(--fl-ink); font-family: Inter, ui-sans-serif, sans-serif; font-weight: 780; letter-spacing: -.04em; }
body[data-tool] .calculator-context,
body[data-tool] .calculator-context p,
body[data-tool] .calc-panel p,
body[data-tool] .education-section p,
body[data-tool] .education-section li { color: var(--fl-muted); }
body[data-tool] .field-row input,
body[data-tool] .field-row select,
body[data-tool] input,
body[data-tool] select,
body[data-tool] textarea { min-height: 48px; border-color: var(--fl-border-strong); border-radius: 10px; background: #fff; color: var(--fl-ink); }
body[data-tool] input:focus,
body[data-tool] select:focus,
body[data-tool] textarea:focus { border-color: var(--fl-primary); box-shadow: 0 0 0 4px rgba(11, 107, 104, .1); outline: 0; }
body[data-tool] .field-prefix,
body[data-tool] .field-suffix { border-color: var(--fl-border); background: var(--fl-surface-soft); color: var(--fl-muted); }
body[data-tool] .calc-btn { border-radius: 10px; font-weight: 800; }
body[data-tool] .calc-btn.primary { background: var(--fl-primary); }
body[data-tool] .calc-btn.primary:hover { background: var(--fl-primary-dark); }
body[data-tool] .calc-btn.secondary { background: var(--fl-surface-soft); color: var(--fl-ink); border-color: var(--fl-border); }
body[data-tool] .result-panel { position: sticky; top: 92px; }
body[data-tool] .result-primary { border-radius: var(--fl-radius); background: linear-gradient(135deg, #102c42, #0b6b68); color: #fff; }
body[data-tool] .result-primary .label,
body[data-tool] .result-item .label { color: var(--fl-muted); }
body[data-tool] .result-primary .label { color: rgba(255,255,255,.68); }
body[data-tool] .result-primary .value { color: #fff; letter-spacing: -.06em; }
body[data-tool] .result-item { border-color: var(--fl-border); background: var(--fl-surface-soft); border-radius: 10px; }
body[data-tool] .result-item .value { color: var(--fl-ink); }
body[data-tool] .result-item .positive { color: var(--fl-green); }
body[data-tool] .education-section h3 { color: var(--fl-ink); }
body[data-tool] .education-section pre,
body[data-tool] .education-tips,
body[data-tool] .education-faq,
body[data-tool] .education-links { border-color: var(--fl-border); background: var(--fl-surface-soft); }
body[data-tool] .education-faq details { border-color: var(--fl-border); }
body[data-tool] .education-reading-links { margin-top: 18px; border-top: 1px solid var(--fl-border); padding-top: 18px; }
body[data-tool] .tool-card { border-color: var(--fl-border); border-radius: var(--fl-radius); background: #fff; box-shadow: var(--fl-shadow-sm); }
body[data-tool] .tool-card:hover { transform: translateY(-3px); border-color: #99ccc5; box-shadow: var(--fl-shadow); }
body[data-tool] footer { background: #0e1b2a; border-top: 0; color: rgba(255,255,255,.64); }
body[data-tool] footer a { color: rgba(255,255,255,.72); }

/* New global calculator template */
body:has(.gc-shell) { background: var(--fl-bg); }
body:has(.gc-shell) .gc-nav { position: sticky; top: 0; z-index: 20; }
body:has(.gc-shell) .gc-nav-inner { width: min(var(--fl-max), calc(100% - 48px)); }
body:has(.gc-shell) .gc-nav-links a { color: var(--fl-ink-soft); font-weight: 750; }
body:has(.gc-shell) .gc-shell { width: min(var(--fl-max), calc(100% - 48px)); padding-top: 58px; padding-bottom: 90px; }
body:has(.gc-shell) .gc-breadcrumb { color: var(--fl-muted); }
body:has(.gc-shell) .gc-hero { max-width: 840px; }
body:has(.gc-shell) .gc-eyebrow { color: var(--fl-primary); font-weight: 850; letter-spacing: .14em; }
body:has(.gc-shell) .gc-hero h1 { color: var(--fl-ink); font-family: Inter, ui-sans-serif, sans-serif; font-size: clamp(2.4rem, 5vw, 4.7rem); font-weight: 780; letter-spacing: -.075em; }
body:has(.gc-shell) .gc-hero p { color: var(--fl-muted); }
body:has(.gc-shell) .gc-layout { gap: 18px; margin-top: 38px; }
body:has(.gc-shell) .gc-panel,
body:has(.gc-shell) .gc-content { border-color: var(--fl-border); border-radius: var(--fl-radius-lg); box-shadow: var(--fl-shadow-sm); }
body:has(.gc-shell) .gc-panel { background: #fff; }
body:has(.gc-shell) .gc-content { background: #fff; }
body:has(.gc-shell) .gc-content h2 { color: var(--fl-ink); font-weight: 780; letter-spacing: -.035em; }
body:has(.gc-shell) .gc-content p,
body:has(.gc-shell) .gc-content li { color: var(--fl-muted); }
body:has(.gc-shell) .global-fields span { color: var(--fl-ink); font-weight: 780; }
body:has(.gc-shell) .global-fields input { border-color: var(--fl-border-strong); border-radius: 10px; }
body:has(.gc-shell) .global-fields input:focus { border-color: var(--fl-primary); box-shadow: 0 0 0 4px rgba(11, 107, 104, .1); outline: 0; }
body:has(.gc-shell) .global-calc-form button { border-radius: 10px; background: var(--fl-primary); }
body:has(.gc-shell) .global-calc-form button:hover { background: var(--fl-primary-dark); }
body:has(.gc-shell) .global-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
body:has(.gc-shell) .global-actions button { min-height: 46px; border: 1px solid var(--fl-border); border-radius: 10px; background: var(--fl-surface-soft); color: var(--fl-ink); font-weight: 800; cursor: pointer; }
body:has(.gc-shell) .global-actions .gc-primary-action { border-color: var(--fl-primary); background: var(--fl-primary); color: #fff; }
body:has(.gc-shell) .global-actions button:hover { border-color: var(--fl-primary); color: var(--fl-primary); }
body:has(.gc-shell) .global-actions .gc-primary-action:hover { background: var(--fl-primary-dark); color: #fff; }
body:has(.gc-shell) .global-result { border: 1px solid rgba(255,255,255,.08); border-radius: var(--fl-radius); background: linear-gradient(135deg, #102c42, #0b6b68); color: #fff; }
body:has(.gc-shell) .global-result span,
body:has(.gc-shell) .global-result p { color: rgba(255,255,255,.68); }
body:has(.gc-shell) .global-result strong { color: #fff; }
body:has(.gc-shell) .gc-formula { border-left-color: var(--fl-primary); background: var(--fl-primary-soft); color: var(--fl-primary-dark); border-radius: 0 10px 10px 0; }
body:has(.gc-shell) .gc-faq details { border-color: var(--fl-border); }
body:has(.gc-shell) .global-reading { margin-top: 18px; padding: 18px; border: 1px solid var(--fl-border); border-radius: var(--fl-radius); background: var(--fl-surface-soft); }
body:has(.gc-shell) .global-reading > div:first-child { display: grid; gap: 4px; }
body:has(.gc-shell) .global-reading span { color: var(--fl-primary); font-size: .66rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
body:has(.gc-shell) .global-reading strong { color: var(--fl-ink); font-size: .95rem; }
body:has(.gc-shell) .global-reading-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
body:has(.gc-shell) .global-reading-links a { padding: 8px 10px; border: 1px solid var(--fl-border); border-radius: 8px; color: var(--fl-primary); background: #fff; font-size: .74rem; font-weight: 800; text-decoration: none; }
body:has(.gc-shell) .global-reading-links a:hover { border-color: #99ccc5; background: var(--fl-primary-soft); }
body:has(.gc-shell) .gc-footer { background: #0e1b2a; border-top: 0; color: rgba(255,255,255,.64); }
body:has(.gc-shell) .gc-footer a { color: rgba(255,255,255,.72); }

/* Standalone utility pages: About, Contact, legal, and directory */
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) {
  background: var(--fl-bg);
  color: var(--fl-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) #navbar {
  min-height: 72px;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--fl-border);
  box-shadow: 0 1px 0 rgba(18,32,51,.02);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) #navbar .nav-inner {
  max-width: var(--fl-max);
  height: 72px;
  padding-left: 24px;
  padding-right: 24px;
}
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) .nav-logo {
  color: var(--fl-ink);
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 1.18rem;
  font-weight: 850;
  letter-spacing: -.035em;
}
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) .nav-logo-badge {
  background: var(--fl-primary);
  border-radius: 9px;
  box-shadow: 0 5px 12px rgba(11,107,104,.22);
}
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) .nav-links a {
  color: var(--fl-ink-soft);
  font-size: .83rem;
  font-weight: 700;
}
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) .nav-links a:hover,
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) .nav-links a.active { color: var(--fl-primary); }
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) .nav-actions .btn-primary,
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) .nav-cta { background: var(--fl-primary); }
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) .page-hero,
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) .hero {
  background: linear-gradient(135deg, #eff8f7, #fff);
  border-bottom-color: var(--fl-border);
}
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) .page-hero h1,
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) .hero-title {
  color: var(--fl-ink);
  font-family: Inter, ui-sans-serif, sans-serif;
  font-weight: 780;
  letter-spacing: -.07em;
}
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) .page-label,
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) .hero-label {
  border-color: #b8ddd8;
  background: var(--fl-primary-soft);
  color: var(--fl-primary);
  border-radius: 999px;
}
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) .section-alt { background: #edf3f7; border-color: var(--fl-border); }
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) .mission-card,
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) .stat-item,
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) .team-card,
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) .why-card,
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) .contact-card,
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) .contact-form-wrap,
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) .legal-content {
  border-color: var(--fl-border);
  border-radius: var(--fl-radius);
  background: #fff;
  box-shadow: var(--fl-shadow-sm);
}
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) .team-card:hover,
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) .why-card:hover { border-color: #99ccc5; box-shadow: var(--fl-shadow); }
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) .btn-primary { background: var(--fl-primary); }
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) .form-control,
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) .search-input,
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) .search-box {
  border-color: var(--fl-border-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--fl-ink);
}
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) .form-control:focus,
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) .search-input:focus {
  border-color: var(--fl-primary);
  box-shadow: 0 0 0 4px rgba(11,107,104,.1);
  outline: 0;
}
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) .cta-section {
  border-radius: var(--fl-radius-lg);
  background: linear-gradient(130deg, #102c42, #0b6b68);
  box-shadow: var(--fl-shadow-lg);
}
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) .tool-card {
  border-color: var(--fl-border);
  border-radius: var(--fl-radius);
  background: #fff;
  box-shadow: var(--fl-shadow-sm);
  transition: transform var(--fl-ease), box-shadow var(--fl-ease), border-color var(--fl-ease);
}
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) .tool-card:hover { transform: translateY(-4px); border-color: #99ccc5; box-shadow: var(--fl-shadow); }
body:not(.platform-home):not(.portal-page):not(.news-body):not([data-tool]):not(.anchor-body):not(:has(.gc-shell)) footer { background: #0e1b2a; border-top: 0; }

@media (max-width: 1120px) {
  .front-page-hero { grid-template-columns: minmax(230px, .8fr) minmax(0, 1.2fr); }
  .front-page-hero-rail { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 0; gap: 16px; }
  .front-rail-story { padding: 15px 0; border-top: 1px solid var(--fl-border); }
}

@media (max-width: 960px) {
  .platform-home .hero-inner { min-height: auto; gap: 42px; padding-top: 74px; padding-bottom: 74px; }
  .platform-home .hero-right { max-width: 720px; }
}

@media (max-width: 760px) {
  .platform-home #navbar .nav-inner,
  .portal-page .main-nav .nav-inner,
  .news-body .main-nav .nav-inner,
  body[data-tool] .main-nav .nav-inner { min-height: 64px; padding-left: 16px; padding-right: 16px; }
  .platform-home .portal-category-bar { top: 64px; }
  .platform-home .hero-inner { padding-top: 56px; padding-bottom: 56px; }
  .platform-home .hero-title { font-size: clamp(2.7rem, 14vw, 4.2rem); }
  .platform-home .hero-actions { grid-template-columns: 1fr; }
  .platform-home .hero-actions .btn { width: 100%; justify-content: center; }
  .front-breaking { width: calc(100% - 32px); gap: 10px; }
  .front-breaking-items a:nth-child(n + 2) { display: none; }
  .front-page-hero { width: calc(100% - 32px); grid-template-columns: 1fr; padding-top: 42px; gap: 20px; }
  .front-page-hero h1 { font-size: clamp(2.6rem, 12vw, 4rem); }
  .front-page-hero-rail { grid-template-columns: 1fr; gap: 0; }
  .front-rail-story { grid-template-columns: 28px 1fr auto; }
  .portal-section,
  .portal-section--tint { padding-top: 58px; padding-bottom: 58px; padding-left: 16px; padding-right: 16px; }
  .portal-section-head { display: block; }
  .portal-section-link { display: inline-block; margin-top: 12px; }
  .news-body .news-shell { padding-left: 16px; padding-right: 16px; }
  .news-body .news-hero-panel { padding: 22px; }
  .news-body .news-hero-panel h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  body[data-tool] .tool-hero { padding-top: 32px; padding-bottom: 22px; }
  body[data-tool] .result-panel { position: static; }
  body:has(.gc-shell) .gc-shell { width: min(100% - 32px, var(--fl-max)); padding-top: 34px; }
  body:has(.gc-shell) .gc-hero h1 { font-size: clamp(2.4rem, 12vw, 3.5rem); }
  body:has(.gc-shell) .gc-layout { margin-top: 26px; }
  body:has(.gc-shell) .global-actions { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  body.platform-home .hero-stats { gap: 14px; }
  body.platform-home .hstat-div { display: none; }
  body.platform-home .hero-right .hcard { padding: 18px; }
  .front-breaking-link { display: none; }
  .front-story-content { padding: 18px; }
  body[data-tool] .calc-panel,
  body[data-tool] .result-panel,
  body[data-tool] .education-section,
  body[data-tool] .related-tools { border-radius: var(--fl-radius); }
  body:has(.gc-shell) .gc-shell { width: min(100% - 24px, var(--fl-max)); }
  body:has(.gc-shell) .gc-panel,
  body:has(.gc-shell) .gc-content { border-radius: var(--fl-radius); padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* -------------------------------------------------------------------------
   Finlance Editorial System v3
   Dense, publication-led composition shared by every public surface.
   ------------------------------------------------------------------------- */
:root {
  --fl-ink: #0b1726;
  --fl-ink-soft: #405166;
  --fl-muted: #748398;
  --fl-bg: #eef2f5;
  --fl-surface: #ffffff;
  --fl-surface-soft: #f6f8fa;
  --fl-border: #dbe3ea;
  --fl-border-strong: #bdcbd6;
  --fl-primary: #08766f;
  --fl-primary-dark: #04534f;
  --fl-primary-soft: #e2f2ef;
  --fl-blue: #1f5fba;
  --fl-blue-soft: #eaf1fb;
  --fl-green: #197a54;
  --fl-gold: #a56d16;
  --fl-danger: #b6323a;
  --fl-radius: 12px;
  --fl-radius-lg: 16px;
  --fl-shadow-sm: 0 1px 2px rgba(11,23,38,.04), 0 5px 14px rgba(11,23,38,.035);
  --fl-shadow: 0 12px 28px rgba(11,23,38,.075);
  --fl-shadow-lg: 0 20px 48px rgba(11,23,38,.12);
  --fl-ease: 160ms cubic-bezier(.2,.65,.3,1);
}

/* Tighten the public shell */
.platform-home .portal-section { padding-top: 56px; }
.platform-home .portal-section--tint { padding-top: 56px; padding-bottom: 56px; }
.platform-home .portal-section-head { margin-bottom: 18px; }
.platform-home .portal-section h2 { font-size: clamp(1.55rem, 2.8vw, 2.2rem); letter-spacing: -.055em; }
.platform-home .portal-section-intro { max-width: 640px; font-size: .88rem; }
.platform-home .front-page-hero { padding-top: 42px; padding-bottom: 18px; gap: 18px; }
.platform-home .front-page-hero h1 { font-size: clamp(2.4rem, 4vw, 4rem); }
.platform-home .front-story-card { border-radius: var(--fl-radius-lg); box-shadow: var(--fl-shadow); }
.platform-home .front-story-content { padding: 18px 20px 20px; }
.platform-home .front-story-content h2 { font-size: clamp(1.3rem, 1.9vw, 1.85rem); }

/* Editorial story modules */
.platform-home [data-portal-trending],
.platform-home [data-portal-latest-articles],
.platform-home [data-portal-editors-picks],
.platform-home [data-portal-guides] { align-items: stretch; }
.platform-home [data-portal-trending] { grid-template-columns: minmax(0, 1.55fr) repeat(2, minmax(0, .82fr)); grid-auto-rows: minmax(0, 1fr); }
.platform-home [data-portal-trending] .portal-card--lead { grid-row: span 2; }
.platform-home [data-portal-latest-articles] { grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, .9fr)); }
.platform-home [data-portal-editors-picks] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.platform-home [data-portal-guides] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.platform-home .portal-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--fl-radius);
  border-color: var(--fl-border);
  background: var(--fl-surface);
  box-shadow: var(--fl-shadow-sm);
}
.platform-home .portal-card:hover { transform: translateY(-3px); box-shadow: var(--fl-shadow); }
.platform-home .portal-card-image { display: block; overflow: hidden; aspect-ratio: 16/8; background: #dce5e9; }
.platform-home .portal-card-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .4s var(--fl-ease); }
.platform-home .portal-card:hover .portal-card-image img { transform: scale(1.035); }
.platform-home .portal-card-content { display: flex; flex: 1; flex-direction: column; padding: 15px 17px 16px; }
.platform-home .portal-card--lead .portal-card-image { aspect-ratio: 16/9; }
.platform-home .portal-card--lead .portal-card-content { padding: 18px 20px 19px; }
.platform-home .portal-card--lead h3 { font-size: clamp(1.2rem, 2.2vw, 1.75rem); line-height: 1.08; }
.platform-home .portal-card--trending:not(.portal-card--lead) .portal-card-image { aspect-ratio: 16/9; }
.platform-home .portal-card--trending:not(.portal-card--lead) h3 { font-size: .96rem; line-height: 1.17; }
.platform-home .portal-card--latest h3,
.platform-home .portal-card--editorial h3,
.platform-home .portal-card--guide h3 { font-size: 1rem; line-height: 1.18; }
.platform-home .portal-card-meta { gap: 7px; color: var(--fl-primary); font-size: .59rem; letter-spacing: .08em; }
.platform-home .portal-card-meta span + span { color: var(--fl-muted); }
.platform-home .portal-card h3 { margin: 8px 0 7px; color: var(--fl-ink); font-weight: 800; letter-spacing: -.035em; }
.platform-home .portal-card h3 a { color: inherit; text-decoration: none; }
.platform-home .portal-card h3 a:hover { color: var(--fl-primary); }
.platform-home .portal-card p { margin: 0; color: var(--fl-muted); font-size: .78rem; line-height: 1.5; }
.platform-home .portal-card-footer { margin-top: auto; padding-top: 13px; color: var(--fl-muted); font-size: .64rem; }
.platform-home .portal-card--featured { color: var(--fl-ink); background: var(--fl-surface); border-color: var(--fl-border); }
.platform-home .portal-card--featured .portal-card-meta { color: var(--fl-primary); }
.platform-home .portal-card--featured .portal-card-footer { color: var(--fl-muted); }

/* Newsroom index: dense but readable */
.news-body .news-shell { max-width: 1280px; padding-top: 20px; padding-bottom: 64px; }
.news-body .news-hero-panel { padding: 30px; border-radius: var(--fl-radius-lg); box-shadow: var(--fl-shadow-sm); }
.news-body .hero-content-grid { gap: 28px; }
.news-body .news-hero-panel h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); line-height: .99; }
.news-body .news-hero-panel p { font-size: .98rem; line-height: 1.65; }
.news-body .news-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
.news-body .news-sidebar { top: 92px; }
.news-body .news-article-card { border-radius: var(--fl-radius); box-shadow: var(--fl-shadow-sm); }
.news-body .news-article-card .nac-body { padding: 16px 18px 18px; }
.news-body .news-article-card.featured-article-card { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); }
.news-body .news-article-card.featured-article-card .nac-image-link { min-height: 260px; height: 100%; }
.news-body .primary-news-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.news-body .feed-section-title { margin-bottom: 14px; }
.news-body .news-section-stack { margin-top: 40px; }
.news-body .news-widget, .news-body .art-widget { padding: 18px; }
.news-body .news-widget h2, .news-body .art-widget h2 { font-size: .98rem; letter-spacing: -.025em; }

/* Article reading experience */
.news-body .article-layout { max-width: 1280px; grid-template-columns: 52px minmax(0, 760px) 280px; gap: 24px; align-items: start; }
.news-body .article-share-rail { position: sticky; top: 104px; display: grid; gap: 8px; padding-top: 170px; }
.news-body .share-btn { width: 38px; height: 38px; border-color: var(--fl-border); border-radius: 10px; background: #fff; color: var(--fl-muted); box-shadow: var(--fl-shadow-sm); }
.news-body .share-btn:hover { border-color: #9bcfc7; color: var(--fl-primary); background: var(--fl-primary-soft); }
.news-body .article-main { min-width: 0; max-width: 760px; }
.news-body .art-title { margin: 12px 0 12px; color: var(--fl-ink); font-size: clamp(2.35rem, 5.2vw, 4.4rem); line-height: .98; letter-spacing: -.075em; }
.news-body .art-subtitle { max-width: 690px; color: var(--fl-ink-soft); font-size: 1.05rem; line-height: 1.6; }
.news-body .art-meta { color: var(--fl-muted); font-size: .72rem; }
.news-body .art-cover-wrap { margin: 24px 0 26px; }
.news-body .art-cover-img { max-height: 460px; border-radius: var(--fl-radius-lg); box-shadow: var(--fl-shadow); }
.news-body .article-summary, .news-body .key-takeaways, .news-body .article-toc { border-color: var(--fl-border); border-radius: var(--fl-radius); background: var(--fl-surface-soft); }
.news-body .art-body { max-width: 700px; }
.news-body .art-body p { color: #34465b; font-size: 1.04rem; line-height: 1.86; }
.news-body .art-body h2 { margin-top: 42px; color: var(--fl-ink); font-size: 1.65rem; letter-spacing: -.045em; }
.news-body .article-sidebar { position: sticky; top: 96px; display: grid; gap: 14px; }
.news-body .article-sidebar .art-widget { box-shadow: var(--fl-shadow-sm); }

/* Portal/category/search density */
.portal-page .portal-main { padding-top: 36px; padding-bottom: 64px; }
.portal-page .portal-hero { padding: 26px; border-radius: var(--fl-radius-lg); }
.portal-page .portal-hero h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: .98; }
.portal-page .portal-toolbar { margin: 20px 0 14px; }
.portal-page .portal-section { padding-top: 36px; }
.portal-page .portal-results-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.portal-page .portal-results-grid .portal-card { min-height: 200px; }
.portal-page .portal-card { padding: 0; overflow: hidden; }
.portal-page .portal-card-image { display: block; aspect-ratio: 16/8; overflow: hidden; background: #dce5e9; }
.portal-page .portal-card-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.portal-page .portal-card-content { display: flex; flex: 1; flex-direction: column; padding: 16px 18px 17px; }
.portal-page .portal-search--large { margin-bottom: 22px; }
.portal-page .search-result-group + .search-result-group { margin-top: 26px; }
.portal-page .portal-search-result { padding: 14px 16px; }

/* Calculator workbench */
body[data-tool] .tool-hero { padding-top: 38px; padding-bottom: 22px; }
body[data-tool] .tool-main { padding-bottom: 60px; }
body[data-tool] .calc-layout { grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: 14px; }
body[data-tool] .calc-panel, body[data-tool] .result-panel { border-radius: var(--fl-radius-lg); box-shadow: var(--fl-shadow-sm); }
body[data-tool] .calc-panel { padding: 22px; }
body[data-tool] .result-panel { top: 88px; padding: 18px; }
body[data-tool] .fields-grid { gap: 12px; }
body[data-tool] .field { gap: 6px; }
body[data-tool] .field label { color: var(--fl-ink-soft); font-size: .72rem; font-weight: 800; }
body[data-tool] .calc-actions { gap: 8px; }
body[data-tool] .calc-btn { min-height: 44px; }
body[data-tool] .education-section { margin-top: 14px; }

/* Footer and utility nav */
.platform-home footer, .portal-page footer, .news-body footer, body[data-tool] footer, body:has(.gc-shell) .gc-footer { background: #091522; }
.platform-home footer .footer-inner, .portal-page footer .footer-inner, .news-body footer .footer-inner { max-width: var(--fl-max); }
.platform-home footer .footer-logo-link, .portal-page footer .footer-logo, .news-body footer .footer-logo { color: #fff; font-family: Inter, ui-sans-serif, sans-serif; font-weight: 850; letter-spacing: -.035em; }

@media (max-width: 1020px) {
  .platform-home [data-portal-trending], .platform-home [data-portal-latest-articles] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-home [data-portal-trending] .portal-card--lead { grid-column: span 2; grid-row: auto; }
  .platform-home [data-portal-editors-picks], .platform-home [data-portal-guides] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-body .article-layout { grid-template-columns: 44px minmax(0, 1fr); }
  .news-body .article-sidebar { grid-column: 2; position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .platform-home .front-page-hero { padding-top: 30px; }
  .platform-home [data-portal-trending], .platform-home [data-portal-latest-articles], .platform-home [data-portal-editors-picks], .platform-home [data-portal-guides] { grid-template-columns: 1fr; }
  .platform-home [data-portal-trending] .portal-card--lead { grid-column: auto; }
  .news-body .news-layout { grid-template-columns: 1fr; }
  .news-body .news-sidebar { position: static; }
  .news-body .primary-news-feed { grid-template-columns: 1fr; }
  .news-body .news-article-card.featured-article-card { grid-column: auto; display: block; }
  .news-body .news-article-card.featured-article-card .nac-image-link { min-height: 0; height: auto; }
  .news-body .article-layout { grid-template-columns: 1fr; }
  .news-body .article-share-rail { position: static; display: flex; padding-top: 0; order: 2; }
  .news-body .article-main { order: 1; }
  .news-body .article-sidebar { grid-column: auto; grid-template-columns: 1fr; order: 3; }
  .news-body .art-title { font-size: clamp(2.2rem, 11vw, 3.3rem); }
  .portal-page .portal-results-grid { grid-template-columns: 1fr; }
  body[data-tool] .calc-layout { grid-template-columns: 1fr; }
  body[data-tool] .result-panel { position: static; }
}

/* ==========================================================================
   FINLANCE GLOBAL NAVIGATION
   One shared header for every public surface.
   ========================================================================== */
.fl-global-header {
  --fl-nav-height: 70px;
  position: sticky;
  top: 0;
  z-index: 2000;
  width: 100%;
  color: var(--fl-ink);
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(226, 232, 240, .82);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  transition: background-color var(--fl-ease), box-shadow var(--fl-ease), border-color var(--fl-ease);
}

.fl-global-header.is-scrolled,
.fl-global-header.search-open,
.fl-global-header.menu-open {
  background: rgba(255, 255, 255, .97);
  border-bottom-color: var(--fl-border);
  box-shadow: 0 12px 34px rgba(18, 32, 51, .09);
}

.fl-nav-shell,
.fl-search-panel,
.fl-mobile-panel { width: min(var(--fl-max), calc(100% - 48px)); margin-inline: auto; }

.fl-nav-shell {
  min-height: var(--fl-nav-height);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.fl-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fl-ink) !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.fl-brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--fl-primary), #0a4f69);
  border-radius: 10px;
  box-shadow: 0 5px 12px rgba(11, 107, 104, .24);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -.08em;
  overflow: hidden;
}

.fl-brand-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }

.fl-brand-word { font-size: 1.13rem; font-weight: 850; letter-spacing: -.045em; }

.fl-primary-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.fl-primary-link,
.fl-mobile-primary-link,
.fl-mobile-topic-link {
  position: relative;
  color: var(--fl-ink-soft) !important;
  text-decoration: none !important;
  transition: color var(--fl-ease), background-color var(--fl-ease), transform var(--fl-ease);
}

.fl-primary-link {
  padding: 9px 11px;
  border-radius: 9px;
  font-size: .79rem;
  font-weight: 760;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.fl-primary-link:hover,
.fl-primary-link:focus-visible,
.fl-primary-link.is-active {
  color: var(--fl-primary) !important;
  background: var(--fl-primary-soft);
}

.fl-primary-link.is-active::after {
  content: '';
  position: absolute;
  right: 11px;
  bottom: 4px;
  left: 11px;
  height: 2px;
  background: var(--fl-primary);
  border-radius: 99px;
}

.fl-nav-actions { display: flex; align-items: center; gap: 9px; }

.fl-nav-search-toggle,
.fl-nav-menu {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: .76rem;
  font-weight: 780;
  transition: color var(--fl-ease), background-color var(--fl-ease), border-color var(--fl-ease), transform var(--fl-ease);
}

.fl-nav-search-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  color: var(--fl-muted);
  background: var(--fl-surface-soft);
  border-color: var(--fl-border);
  cursor: pointer;
}

.fl-nav-search-toggle:hover,
.fl-nav-search-toggle:focus-visible { color: var(--fl-primary); border-color: rgba(11, 107, 104, .3); background: var(--fl-primary-soft); }

.fl-search-icon,
.fl-search-form-icon {
  position: relative;
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 1.7px solid currentColor;
  border-radius: 50%;
}

.fl-search-icon::after,
.fl-search-form-icon::after {
  content: '';
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 6px;
  height: 1.7px;
  background: currentColor;
  border-radius: 99px;
  transform: rotate(45deg);
  transform-origin: left center;
}

.fl-search-shortcut {
  display: inline-grid;
  width: 19px;
  height: 19px;
  place-items: center;
  color: var(--fl-muted);
  background: #fff;
  border: 1px solid var(--fl-border);
  border-radius: 5px;
  font-size: .68rem;
  font-weight: 800;
}

.fl-nav-menu {
  display: none;
  width: 40px;
  padding: 9px;
  background: var(--fl-surface-soft);
  border-color: var(--fl-border);
  cursor: pointer;
}

.fl-nav-menu span { display: block; height: 2px; margin: 4px 0; background: var(--fl-ink); border-radius: 99px; transition: transform var(--fl-ease), opacity var(--fl-ease); }
.fl-global-header.menu-open .fl-nav-menu span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.fl-global-header.menu-open .fl-nav-menu span:nth-child(2) { opacity: 0; }
.fl-global-header.menu-open .fl-nav-menu span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.fl-search-panel { border-top: 1px solid var(--fl-border); }
.fl-search-form { display: flex; align-items: center; gap: 12px; max-width: 760px; min-height: 62px; margin-inline: auto; }
.fl-search-form-icon { flex: 0 0 auto; color: var(--fl-primary); }
.fl-search-form input { flex: 1; min-width: 0; height: 42px; padding: 0; color: var(--fl-ink); background: transparent; border: 0; outline: 0; font: inherit; font-size: 1rem; font-weight: 650; }
.fl-search-form input::placeholder { color: var(--fl-muted); font-weight: 500; }
.fl-search-form kbd { padding: 4px 7px; color: var(--fl-muted); background: var(--fl-surface-soft); border: 1px solid var(--fl-border); border-radius: 6px; font: 700 .68rem/1 Inter, sans-serif; }
.fl-search-form button { min-height: 36px; padding: 0 14px; color: #fff; background: var(--fl-primary); border: 0; border-radius: 8px; font: inherit; font-size: .75rem; font-weight: 800; cursor: pointer; }

.fl-mobile-panel { display: none; border-top: 1px solid var(--fl-border); padding: 14px 0 18px; }
.fl-mobile-search-row { margin-bottom: 13px; }
.fl-mobile-search-button { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 13px; color: var(--fl-muted); background: var(--fl-surface-soft); border: 1px solid var(--fl-border); border-radius: 10px; font: inherit; font-size: .82rem; font-weight: 650; text-align: left; cursor: pointer; }
.fl-mobile-primary-links, .fl-mobile-topic-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.fl-mobile-primary-link, .fl-mobile-topic-link { padding: 10px 11px; border-radius: 8px; font-size: .82rem; font-weight: 730; }
.fl-mobile-primary-link:hover, .fl-mobile-primary-link.is-active, .fl-mobile-topic-link:hover, .fl-mobile-topic-link.is-active { color: var(--fl-primary) !important; background: var(--fl-primary-soft); }
.fl-mobile-topic-heading { margin: 18px 0 7px; color: var(--fl-muted); font-size: .65rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.fl-mobile-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--fl-border); }
.fl-mobile-actions a { padding: 9px 11px; color: var(--fl-primary) !important; background: var(--fl-primary-soft); border-radius: 8px; font-size: .76rem; font-weight: 780; text-decoration: none !important; }

/* The former text-only ribbon is intentionally retired in favor of the shared category track. */
.portal-category-bar { display: none !important; }
html:not(.fl-nav-mounted) #navbar,
html:not(.fl-nav-mounted) .main-nav,
html:not(.fl-nav-mounted) .gc-nav,
html:not(.fl-nav-mounted) body > nav[aria-label="Main navigation"] {
  min-height: 115px !important;
  visibility: hidden;
}
body.fl-nav-locked { overflow: hidden; }

@media (max-width: 1080px) {
  .fl-nav-shell { gap: 15px; }
  .fl-primary-nav { gap: 1px; }
  .fl-primary-link { padding-inline: 8px; }
}

@media (max-width: 900px) {
  .fl-nav-shell, .fl-search-panel, .fl-mobile-panel { width: min(var(--fl-max), calc(100% - 32px)); }
  .fl-primary-nav { display: none; }
  .fl-nav-shell { grid-template-columns: auto minmax(0, 1fr) auto; }
  .fl-nav-actions { justify-content: flex-end; }
  .fl-nav-menu { display: block; }
  .fl-mobile-panel:not([hidden]) { display: block; }
}

@media (max-width: 560px) {
  html:not(.fl-nav-mounted) #navbar,
  html:not(.fl-nav-mounted) .main-nav,
  html:not(.fl-nav-mounted) .gc-nav,
  html:not(.fl-nav-mounted) body > nav[aria-label="Main navigation"] { min-height: 102px !important; }
  .fl-nav-shell { min-height: 62px; }
  .fl-brand-mark { width: 29px; height: 29px; border-radius: 9px; font-size: .95rem; }
  .fl-brand-word { font-size: 1.02rem; }
  .fl-nav-search-toggle { width: 39px; padding: 0; justify-content: center; }
  .fl-search-label, .fl-search-shortcut { display: none; }
  .fl-search-form { min-height: 58px; gap: 9px; }
  .fl-search-form kbd { display: none; }
  .fl-search-form button { padding-inline: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .fl-global-header *, .fl-global-header { transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* --------------------------------------------------------------------------
   FINAL POLISH: calmer navigation and a wide editorial reader
   -------------------------------------------------------------------------- */
.fl-global-header {
  border-top: 0;
  background: rgba(255, 255, 255, .96);
}

.fl-nav-shell { gap: clamp(16px, 2.4vw, 34px); }
.fl-primary-nav { gap: 3px; }
.fl-primary-link { padding-inline: 12px; font-size: .81rem; }
.news-body .news-shell.article-layout {
  width: min(100%, 1480px);
  max-width: none;
  padding: clamp(32px, 5vw, 72px) 24px 112px;
  grid-template-columns: 56px minmax(0, 1fr) 300px;
  gap: clamp(22px, 3vw, 38px);
}

.news-body .article-main {
  width: 100%;
  max-width: none;
  padding: clamp(34px, 5vw, 72px);
  border-radius: 24px;
  box-shadow: 0 18px 56px rgba(18, 32, 51, .08);
}

.news-body .article-main .article-breadcrumb { margin-bottom: 28px; }
.news-body .article-main .art-kicker-row { gap: 9px; flex-wrap: wrap; margin-bottom: 22px; }
.news-body .article-main .art-title {
  max-width: 1180px;
  margin-bottom: 20px;
  font-size: clamp(2.8rem, 5.4vw, 5.8rem);
  line-height: 1.01;
  letter-spacing: -.07em;
}
.news-body .article-main .art-subtitle { max-width: 1000px; font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.55; }
.news-body .article-main .art-meta { gap: 12px 24px; padding-bottom: 28px; margin-bottom: 32px; }
.news-body .article-main .art-cover-wrap { margin: 0 0 42px; border-radius: 18px; }
.news-body .article-main .art-cover-img { width: 100%; max-height: min(62vh, 700px); aspect-ratio: 16 / 8; object-fit: cover; }
.news-body .article-main .article-summary,
.news-body .article-main .key-takeaways,
.news-body .article-main .article-toc { max-width: 1120px; }
.news-body .article-main .art-body { max-width: 920px; font-size: 1.16rem; line-height: 1.9; }
.news-body .article-main .art-body p { font-size: 1.08em; line-height: 1.9; }
.news-body .article-main .art-body h2 { font-size: clamp(1.65rem, 2.8vw, 2.2rem); }
.news-body .article-sidebar { width: 100%; }

@media (max-width: 1180px) {
  .news-body .news-shell.article-layout { grid-template-columns: 48px minmax(0, 1fr); }
  .news-body .article-sidebar { grid-column: 2; position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .fl-primary-link { padding-inline: 9px; font-size: .76rem; }
  .news-body .news-shell.article-layout { width: min(100%, 100%); padding-inline: 18px; }
  .news-body .article-main { padding: clamp(26px, 5vw, 46px); }
  .news-body .article-main .art-title { font-size: clamp(2.45rem, 8vw, 4.5rem); }
}

@media (max-width: 760px) {
  .news-body .news-shell.article-layout { grid-template-columns: 1fr; padding: 24px 14px 86px; }
  .news-body .article-main { padding: 24px 20px 36px; border-radius: 18px; }
  .news-body .article-share-rail { grid-column: 1; grid-row: 2; }
  .news-body .article-main { grid-row: 1; }
  .news-body .article-sidebar { grid-column: 1; grid-template-columns: 1fr; }
  .news-body .article-main .art-title { font-size: clamp(2.25rem, 11vw, 3.6rem); }
  .news-body .article-main .art-cover-img { aspect-ratio: 4 / 3; }
  .news-body .article-main .art-body { font-size: 1.08rem; line-height: 1.82; }
}

/* Final header alignment: one compact, single-row navigation. */
@media (min-width: 901px) {
  .fl-nav-shell { grid-template-columns: auto minmax(0, 1fr) auto; min-height: 66px; }
  .fl-brand { grid-column: 1; grid-row: 1; justify-self: start; }
  .fl-primary-nav { grid-column: 2; grid-row: 1; justify-self: start; }
  .fl-nav-actions { grid-column: 3; grid-row: 1; justify-self: end; }
  .fl-primary-link { padding-inline: 10px; font-size: .78rem; }
}

@media (max-width: 900px) {
  .fl-nav-shell { grid-template-columns: auto minmax(0, 1fr) auto; }
  .fl-brand { grid-column: 1; grid-row: 1; justify-self: start; }
  .fl-nav-actions { grid-column: 3; grid-row: 1; justify-self: end; }
}

/* Fresh front page: one lead desk, then the three requested news streams. */
#main-content {
  display: flex;
  flex-direction: column;
}

#main-content > .front-breaking { order: 0; }
#main-content > .front-page-hero { order: 1; }
#main-content > .home-news-section { order: 2; }

#main-content > .hero,
#main-content > .portal-section[aria-labelledby="portal-overview-heading"],
#main-content > .portal-section[aria-labelledby="portal-categories-heading"],
#main-content > .portal-section[aria-labelledby="portal-latest-heading"],
#main-content > .portal-section[aria-labelledby="portal-guides-heading"],
#main-content > .portal-section[aria-labelledby="portal-picks-heading"],
#main-content > .portal-section[aria-labelledby="portal-tools-heading"] {
  display: none !important;
}

/* Publication layout: let editorial media and long-form copy use the page. */
.portal-page .portal-main { max-width: 1320px; }
.portal-page .portal-article { max-width: 1120px; }
.portal-page .portal-article-cover {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
  background: #eef3f3;
}
.portal-page .portal-article-body { max-width: 1040px; }
.news-body .article-main .art-cover-img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
  background: #eef3f3;
}
.news-body .article-main .art-body { max-width: 1080px; }

/* Compact, useful footers keep the reader focused on the content. */
.platform-home footer,
.portal-page footer,
.news-body footer {
  padding: 22px 20px;
  margin-top: 30px;
}
.platform-home footer .footer-inner,
.portal-page footer .footer-inner,
.news-body footer .footer-inner {
  gap: 10px 24px;
  padding: 0;
}
.platform-home footer p,
.portal-page footer p,
.news-body footer p { font-size: .76rem; }
.platform-home footer .footer-links,
.portal-page footer .footer-links,
.news-body footer .footer-links { gap: 8px 16px; }
.platform-home footer .footer-links a,
.portal-page footer .footer-links a,
.news-body footer .footer-links a { font-size: .74rem; }

@media (max-width: 760px) {
  .news-body .article-main .art-cover-img,
  .portal-page .portal-article-cover {
    aspect-ratio: auto;
    max-height: none;
  }
}
