/* =====================================================================
   The Top Stock Broker — theme
   Bootstrap 5 loads first; this layer sets the design system on top.
   ===================================================================== */
:root {
  /* Colour tokens are NOT defined here. They come from the four admin
     colours via app/Views/partials/palette.php, which is emitted after this
     stylesheet. Redefining any of them here would silently override the
     admin's choice. Only non-colour design tokens belong in this block. */

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 27, 46, .06), 0 1px 3px rgba(16, 27, 46, .05);
  --shadow: 0 6px 24px rgba(16, 27, 46, .08);
  --shadow-lg: 0 18px 48px rgba(16, 27, 46, .14);
  --container: 1200px;

  --font: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* sticky footer: keep the footer flush to the bottom on short pages */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body>main {
  flex: 1 0 auto
}

.site-footer {
  flex-shrink: 0
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2
}

a {
  color: var(--brand-600);
  text-decoration: none;
  transition: color .15s
}

a:hover {
  color: var(--brand)
}

img {
  max-width: 100%;
  height: auto
}

.container {
  max-width: var(--container)
}

/* ---- utility ---- */
.text-accent {
  color: var(--accent-600) !important
}

.text-brand {
  color: var(--brand) !important
}

.text-muted2 {
  color: var(--muted) !important
}

.bg-brand {
  background: var(--brand) !important
}

.bg-soft {
  background: var(--brand-050) !important
}

.section {
  padding: 72px 0
}

.section-sm {
  padding: 48px 0
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: .6rem
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.02em
}

.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px
}

.divider-dot::before {
  content: "•";
  color: var(--muted);
  margin: 0 .5rem
}

/* ---- buttons ----
   Each custom variant also sets Bootstrap's --bs-btn-* vars so its own
   .btn:hover rule keeps a solid background. Without these the vars are
   undefined and Bootstrap turns the background transparent on hover, which
   left white text on a white background (invisible button on hover). */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: .62rem 1.25rem;
  transition: all .18s
}

.btn-lg {
  padding: .85rem 1.7rem;
  font-size: 1.02rem
}

.btn-brand {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--brand-700);
  --bs-btn-hover-border-color: var(--brand-700);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--brand-700);
  --bs-btn-active-border-color: var(--brand-700);
  background: var(--brand);
  border-color: var(--brand);
  color: #fff
}

.btn-brand:hover {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow)
}

.btn-accent {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--accent-600);
  --bs-btn-hover-border-color: var(--accent-600);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--accent-600);
  --bs-btn-active-border-color: var(--accent-600);
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700
}

.btn-accent:hover {
  background: var(--accent-600);
  border-color: var(--accent-600);
  color: var(--on-accent, #fff);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(41, 171, 226, .35)
}

.btn-outline-brand {
  --bs-btn-color: var(--brand);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--brand);
  --bs-btn-active-border-color: var(--brand);
  border: 1.5px solid var(--brand);
  color: var(--brand);
  background: transparent
}

.btn-outline-brand:hover {
  background: var(--brand);
  color: #fff
}

.btn-ghost {
  --bs-btn-color: var(--ink);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-050);
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-color: var(--brand);
  --bs-btn-active-bg: var(--brand-050);
  --bs-btn-active-border-color: transparent;
  color: var(--ink);
  background: transparent
}

.btn-ghost:hover {
  background: var(--brand-050);
  color: var(--brand)
}

/* ---- load-more button bar ---- */
.loadmore-bar {
  text-align: center;
  margin-top: 18px
}

.loadmore-bar .btn {
  min-width: 200px
}

/* ---- header ---- */
.topbar {
  background: var(--brand-700);
  color: var(--surface);
  font-size: .83rem
}

.topbar a {
  color: var(--surface)
}

.topbar a:hover {
  color: #fff
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm)
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -.02em;
  color: var(--ink)
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-weight: 800;
  margin-right: .55rem;
  box-shadow: var(--shadow-sm)
}

.brand-mark svg {
  width: 20px;
  height: 20px
}

.main-nav .nav-link {
  color: var(--ink);
  font-weight: 500;
  padding: .5rem .9rem;
  border-radius: 8px;
  position: relative
}

.main-nav .nav-link:hover {
  color: var(--brand);
  background: var(--brand-050)
}

.main-nav .nav-link.active {
  color: var(--brand);
  font-weight: 600
}

.main-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: .9rem;
  right: .9rem;
  bottom: .15rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px
}

/* ---- mega menu (full-width multi-column dropdown) ---- */
.site-header .navbar>.container {
  position: relative
}

.main-nav .nav-item.has-mega {
  position: static
}

.mega-menu {
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-top: 0
}

@media(min-width:992px) {
  .mega-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%
  }
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 6px 20px
}

.mega-link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: .94rem
}

.mega-link:hover {
  background: var(--brand-050);
  color: var(--brand)
}

/* ---- hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--surface);
  background: radial-gradient(1200px 500px at 80% -10%, rgba(18, 185, 129, .25), transparent 60%),
    linear-gradient(160deg, var(--brand-700) 0%, var(--brand) 55%, var(--brand-700) 100%)
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .6
}

.hero .container {
  position: relative;
  z-index: 2
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -.025em
}

.hero p.lead {
  color: var(--surface);
  font-size: 1.15rem;
  max-width: 560px
}

.hero .highlight {
  color: var(--surface)
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  color: var(--surface);
  padding: .35rem .85rem;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 500
}

.hero-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  color: var(--text)
}

.trust-row {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  color: var(--on-dark-muted);
  font-size: .9rem
}

.trust-row .ti {
  display: flex;
  align-items: center;
  gap: .4rem
}

/* ---- stat strip ---- */
.stat-strip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: -46px;
  position: relative;
  z-index: 5
}

.stat-strip .stat {
  padding: 22px 18px;
  text-align: center
}

.stat-strip .num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1
}

.stat-strip .lbl {
  color: var(--muted);
  font-size: .86rem;
  margin-top: .3rem
}

.stat-strip .stat+.stat {
  border-left: 1px solid var(--line)
}

/* ---- cards ---- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm)
}

.feature-card {
  padding: 26px;
  height: 100%;
  transition: transform .2s, box-shadow .2s;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card)
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent
}

.feature-ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: var(--accent-050);
  color: var(--accent-600)
}

.feature-ico svg {
  width: 26px;
  height: 26px
}

/* broker / rank card */
.broker-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: .2s
}

.broker-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px)
}

.rank-badge {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-600))
}

.rank-badge.top {
  background: linear-gradient(135deg, var(--gold), var(--brand))
}

.stars {
  color: var(--gold);
  letter-spacing: 1px;
  font-size: .9rem
}

/* ---- blog cards ---- */
.post-card {
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: .2s
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg)
}

.post-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--brand-050)
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s
}

.post-card:hover .post-thumb img {
  transform: scale(1.05)
}

.post-thumb.placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-600));
  color: #fff;
  font-weight: 800
}

.post-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1
}

.post-cat {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-600)
}

.post-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin: .4rem 0 .5rem;
  line-height: 1.35
}

.post-title a {
  color: var(--ink)
}

.post-title a:hover {
  color: var(--brand)
}

.post-meta {
  color: var(--muted);
  font-size: .82rem;
  margin-top: auto;
  display: flex;
  gap: .35rem;
  align-items: center
}

.chip {
  display: inline-block;
  background: var(--brand-050);
  color: var(--brand);
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 100px
}

/* ---- article / prose ---- */
/* Flat single-colour hero — deliberately no gradient. */
.article-hero {
  background: var(--brand-700);
  color: #fff;
  padding: 30px 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .08)
}

.article-hero h1 {
  color: #fff;
  font-size: clamp(1.5rem, 3.1vw, 2.05rem);
  letter-spacing: -.02em
}

/* ---- shared hero (every page uses partials/page_hero) ---- */
.article-hero h1 {
  margin: 0;
  font-size: clamp(1.55rem, 3.5vw, 2.3rem);
  line-height: 1.25;
  max-width: 900px
}

.ah-lede {
  margin: .7rem 0 0;
  color: var(--surface);
  max-width: 760px;
  line-height: 1.6
}

.ah-post {
  padding: 26px 0 30px
}

/* semantic breadcrumb (nav > ol > li) — only blog single uses the list form */
.breadcrumb-nav ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .15rem .5rem;
  margin: 0 0 .85rem;
  padding: 0
}

.breadcrumb-nav li {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0
}

.breadcrumb-nav li+li::before {
  content: "/";
  color: var(--text);
  font-size: .8rem
}

.breadcrumb-nav .bc-current {
  color: #9fb8d8;
  max-width: min(42ch, 60vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

/* meta row: avatar + icon items, no pipe separators */
.ah-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem 1.25rem;
  margin-top: 1rem;
  color: var(--on-dark-muted);
  font-size: .875rem
}

.ah-by,
.ah-item {
  display: inline-flex;
  align-items: center;
  gap: .5rem
}

.ah-item svg {
  opacity: .75;
  flex: 0 0 auto
}

.ah-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .02em;
  flex: 0 0 auto
}

.ah-avatar-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .35)
}

.ah-by a,
.ah-by strong {
  color: #fff;
  font-weight: 700
}

.ah-by a:hover {
  text-decoration: underline;
  text-underline-offset: 2px
}

@media(max-width:575px) {
  .ah-post {
    padding: 20px 0 24px
  }

  .ah-meta {
    gap: .5rem .9rem;
    font-size: .82rem
  }

  .breadcrumb-nav .bc-current {
    max-width: 100%
  }
}

.ipo-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: .8rem;
  color: var(--on-dark-muted)
}

.ipo-hero-meta b {
  color: #fff;
  font-weight: 600
}

.breadcrumb-nav {
  font-size: .85rem;
  color: var(--on-dark-muted)
}

.breadcrumb-nav a {
  color: var(--surface)
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem
}

.article-meta a {
  color: #fff
}

.article-meta .meta-sep {
  color: rgba(255, 255, 255, .38)
}

.prose {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8
}

.prose h2 {
  font-size: 1.7rem;
  margin: 2rem 0 .8rem;
  font-weight: 700
}

.prose h3 {
  font-size: 1.32rem;
  margin: 1.6rem 0 .6rem;
  font-weight: 700
}

.prose h4 {
  font-size: 1.12rem;
  margin: 1.3rem 0 .5rem;
  font-weight: 600
}

.prose p {
  margin: 0 0 1.1rem
}

.prose a {
  color: var(--brand-600);
  text-decoration: underline;
  text-underline-offset: 2px
}

.prose ul,
.prose ol {
  margin: 0 0 1.2rem;
  padding-left: 1.3rem
}

.prose li {
  margin: .35rem 0
}

.prose img {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  margin: 1rem 0
}

.prose blockquote {
  border-left: 4px solid var(--accent);
  background: var(--accent-050);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.4rem 0;
  color: var(--brand-700)
}

.prose figure {
  margin: 1.2rem 0
}

/* Responsive, brand-styled content tables */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm)
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: .94rem;
  min-width: 520px;
  background: var(--card)
}

.prose thead th {
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: .85rem 1rem;
  border: 0
}

.prose th,
.prose td {
  padding: .72rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line)
}

.prose th:last-child,
.prose td:last-child {
  border-right: 0
}

.prose tbody tr:nth-child(even) {
  background: var(--brand-050)
}

.prose tbody tr:hover {
  background: var(--card-alt)
}

.prose tbody tr:last-child td {
  border-bottom: 0
}

/* IPO data tables */
.ipo-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  background: var(--card)
}

.ipo-table thead th {
  background: var(--brand);
  color: #fff;
  border: 0;
  white-space: nowrap;
  padding: .8rem 1rem;
  font-weight: 700
}

.ipo-table th,
.ipo-table td {
  padding: .72rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle
}

.ipo-table tbody th {
  background: var(--brand-050);
  color: var(--ink);
  font-weight: 600
}

.ipo-table tbody tr:hover {
  background: var(--card)
}

.ipo-table tbody tr:last-child th,
.ipo-table tbody tr:last-child td {
  border-bottom: 0
}

.ipo-table a {
  color: var(--brand);
  font-weight: 600
}

/* ---------- IPO dashboard / archive ---------- */
.ipo-stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px
}

.ipo-stat-strip .s {
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  padding: 8px 16px;
  min-width: 104px
}

.ipo-stat-strip .s b {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  color: #fff
}

.ipo-stat-strip .s span {
  font-size: .74rem;
  color: var(--surface)
}

.ipo-boardbar {
  display: inline-flex;
  gap: 4px;
  background: var(--brand-050);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 4px;
  margin-bottom: 18px
}

.ipo-boardbar button,
.ipo-boardbar a {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: .85rem;
  padding: .42rem .95rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none
}

.ipo-boardbar button:hover,
.ipo-boardbar a:hover {
  color: var(--ink)
}

.ipo-boardbar button span,
.ipo-boardbar a span {
  font-size: .72rem;
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0 .45rem;
  line-height: 1.5
}

.ipo-boardbar button.on,
.ipo-boardbar a.on {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm)
}

.ipo-boardbar button.on span,
.ipo-boardbar a.on span {
  background: rgba(255, 255, 255, .22);
  color: #fff;
  border-color: transparent
}

.ipo-group {
  margin-bottom: 26px
}

.ipo-group-h {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 9px
}

.ipo-group-h .cnt {
  font-size: .72rem;
  font-weight: 700;
  background: var(--brand-050);
  color: var(--brand);
  border-radius: 20px;
  padding: .1rem .55rem
}

.ipo-dash td,
.ipo-dash th {
  white-space: nowrap
}

.ipo-dash .c-name {
  white-space: normal;
  min-width: 180px
}

.ipo-dash .c-name a {
  font-weight: 700
}

.ipo-dash .tba {
  color: var(--muted);
  font-weight: 500
}

.ipo-dash .up {
  color: var(--brand);
  font-weight: 700
}

.ipo-dash .dn {
  color: var(--danger);
  font-weight: 700
}

.ipo-dash .gmp-link {
  color: var(--brand);
  font-weight: 700
}

.board-tag {
  display: inline-block;
  margin-left: 8px;
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  border-radius: 5px;
  padding: .05rem .34rem;
  vertical-align: middle
}

.board-tag.mb {
  background: var(--brand-050);
  color: var(--brand)
}

.board-tag.sme {
  background: var(--card-alt);
  color: var(--text)
}

.ipo-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  border-radius: 20px;
  padding: .16rem .6rem;
  white-space: nowrap
}

.ipo-badge.b-open {
  background: var(--card-alt);
  color: var(--brand)
}

.ipo-badge.b-up {
  background: var(--card-alt);
  color: var(--text)
}

.ipo-badge.b-closed {
  background: var(--card-alt);
  color: var(--text)
}

.ipo-badge.b-listed {
  background: var(--card-alt);
  color: var(--text)
}

.ipo-longform {
  border-top: 1px solid var(--line);
  padding-top: 22px
}

.ipo-longform h2 {
  font-size: 1.35rem;
  margin-top: 1.6rem
}

.ipo-longform h3 {
  font-size: 1.08rem;
  margin-top: 1.2rem
}

/* IPO detail / GMP page components */
.ipo-subnav {
  position: sticky;
  top: var(--hh, 64px);
  z-index: 1020;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px
}

.ipo-subnav .in {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none
}

.ipo-subnav .in::-webkit-scrollbar {
  display: none
}

.ipo-subnav a {
  white-space: nowrap;
  font-weight: 600;
  font-size: .86rem;
  color: var(--muted);
  padding: .7rem .8rem;
  border-bottom: 2px solid transparent
}

.ipo-subnav a:hover {
  color: var(--ink)
}

.ipo-subnav a.on {
  color: var(--brand);
  border-bottom-color: var(--brand)
}

.ipo-sec {
  scroll-margin-top: calc(var(--hh, 64px) + 58px);
  margin-bottom: 18px
}

.ipo-sec .card {
  padding: 20px 22px
}

.ipo-sec h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .3rem
}

.ipo-note {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: .9rem
}

.kv {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden
}

.kv .row {
  background: var(--card);
  padding: 12px 15px
}

.kv .k {
  font-size: .76rem;
  color: var(--muted);
  margin-bottom: 2px
}

.kv .v {
  font-weight: 700;
  font-size: .98rem;
  color: var(--ink)
}

.kv .v small {
  font-weight: 500;
  color: var(--muted);
  font-size: .78rem
}

.kv .v.tba {
  color: var(--gold)
}

@media(max-width:640px) {
  .kv {
    grid-template-columns: 1fr
  }
}

.ipo-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px
}

.ipo-pill {
  font-weight: 700;
  font-size: .76rem;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff
}

.ipo-pill.up {
  background: rgba(245, 166, 35, .22);
  color: var(--surface)
}

.ipo-pill.open {
  background: rgba(41, 171, 226, .22);
  color: var(--surface)
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

@media(max-width:640px) {
  .two-col {
    grid-template-columns: 1fr
  }
}

.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 17px
}

.panel.pro {
  background: var(--card);
  border-color: var(--line)
}

.panel.con {
  background: var(--card-alt);
  border-color: var(--line-strong)
}

.panel h3 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .6rem
}

.panel.pro h3 {
  color: var(--brand-700)
}

.panel.con h3 {
  color: var(--text)
}

.panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem
}

.panel li {
  position: relative;
  padding-left: 20px;
  font-size: .9rem;
  color: var(--text)
}

.panel li::before {
  position: absolute;
  left: 0;
  font-weight: 800
}

.panel.pro li::before {
  content: "✓";
  color: var(--brand-700)
}

.panel.con li::before {
  content: "!";
  color: var(--danger)
}

.olist {
  list-style: none;
  counter-reset: o;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.olist li {
  counter-increment: o;
  position: relative;
  padding-left: 38px;
  font-size: .95rem;
  color: var(--text)
}

.olist li::before {
  content: counter(o);
  position: absolute;
  left: 0;
  top: -2px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--brand-050);
  color: var(--brand);
  font-weight: 800;
  font-size: .8rem;
  display: grid;
  place-items: center
}

.ipo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.ipo-chips .c {
  background: var(--brand-050);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 13px;
  font-size: .86rem;
  font-weight: 500;
  color: var(--ink)
}

.gmp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px
}

@media(max-width:640px) {
  .gmp-stats {
    grid-template-columns: 1fr
  }
}

.gmp-stat {
  background: var(--brand-050);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
  text-align: center
}

.gmp-stat .l {
  font-size: .78rem;
  color: var(--muted)
}

.gmp-stat .b {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ink);
  margin-top: 2px
}

.gmp-stat .b.pos {
  color: var(--brand-700)
}

.gmp-hero {
  background: var(--brand);
  color: #fff;
  border-radius: 16px;
  padding: 22px
}

.gmp-hero .big {
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -.03em;
  margin: 4px 0
}

.gmp-hero .est {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  display: flex;
  gap: 24px;
  font-size: .82rem;
  color: var(--surface)
}

.gmp-hero .est b {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff
}

.resbar {
  display: flex;
  height: 34px;
  border-radius: 9px;
  overflow: hidden;
  margin: 2px 0 12px;
  font-weight: 700;
  font-size: .8rem;
  color: #fff
}

.resbar span {
  display: grid;
  place-items: center;
  min-width: 40px
}

.resbar .qib {
  background: var(--brand)
}

.resbar .nii {
  background: var(--brand-600)
}

.resbar .rii {
  background: var(--brand-100);
  color: #0b5
}

.gm-strip {
  display: flex;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 15px;
  font-size: .82rem;
  color: var(--text);
  margin-bottom: 14px
}

.gm-strip b {
  color: var(--text)
}

.ipo-formula {
  background: var(--brand-700);
  color: var(--surface);
  border-radius: 12px;
  padding: 15px 18px;
  font-weight: 600
}

.ipo-formula b {
  color: var(--surface)
}

.ipo-formula .eg {
  display: block;
  margin-top: 6px;
  font-size: .8rem;
  color: #9fb3d1;
  font-weight: 400
}

.ipo-calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

@media(max-width:640px) {
  .ipo-calc {
    grid-template-columns: 1fr
  }
}

.ipo-calc .out {
  background: var(--brand-050);
  border: 1px solid var(--line);
  border-radius: 12px
}

.ipo-calc .out .r {
  display: flex;
  justify-content: space-between;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line)
}

.ipo-calc .out .r:last-child {
  border-bottom: 0
}

.ipo-calc .out .r .ov {
  font-weight: 800;
  color: var(--ink)
}

/* table of contents */
.toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm)
}

.toc h5 {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .6rem
}

.toc ol {
  list-style: none;
  counter-reset: t;
  padding: 0;
  margin: 0
}

.toc li {
  counter-increment: t;
  margin: .3rem 0
}

.toc a {
  color: var(--text);
  font-size: .92rem;
  display: flex;
  gap: .5rem
}

.toc a::before {
  content: counter(t, decimal-leading-zero);
  color: var(--accent-600);
  font-weight: 700;
  font-size: .8rem
}

.toc a:hover {
  color: var(--brand)
}

.sticky-side {
  position: sticky;
  top: calc(var(--hh, 64px) + 68px)
}

/* Sidebar widgets (recent / popular / related / lead form) */
.widget {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem
}

.widget h5 {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .9rem
}

.mini-post {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  padding: .6rem 0;
  border-top: 1px solid var(--line)
}

.mini-post:first-of-type {
  border-top: 0;
  padding-top: 0
}

.mini-thumb {
  flex: 0 0 58px
}

.mini-post img,
.mini-post .ph {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  display: grid;
  place-items: center
}

.mini-post .ph {
  background: var(--brand-050);
  color: var(--brand);
  font-weight: 700;
  font-size: .72rem
}

.mini-post a.t {
  color: var(--text);
  font-weight: 600;
  font-size: .86rem;
  line-height: 1.3;
  display: block
}

.mini-post a.t:hover {
  color: var(--brand)
}

.mini-post .d {
  color: var(--muted);
  font-size: .74rem;
  margin-top: .2rem
}

.lead-widget {
  position: relative;
  padding-top: 26px
}

.lead-tag {
  position: absolute;
  top: -12px;
  left: 16px;
  background: var(--brand);
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  padding: .35rem .7rem;
  border-radius: 8px
}

.lead-widget .form-label {
  color: var(--text);
  font-weight: 600
}

/* ---- forms ---- */
.form-control,
.form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  padding: .7rem .9rem;
  font-size: .98rem
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 .2rem rgba(27, 77, 138, .12)
}

.form-label {
  font-weight: 600;
  color: var(--ink);
  font-size: .9rem;
  margin-bottom: .35rem
}

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px
}

/* ---- alerts ---- */
.alert {
  border-radius: var(--radius-sm);
  border: none
}

.alert-success {
  background: var(--accent-050);
  color: var(--brand-700)
}

.alert-danger {
  background: var(--card-alt);
  color: var(--text)
}

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(135deg, var(--brand-700), var(--brand));
  border-radius: var(--radius);
  color: #fff;
  padding: 44px;
  position: relative;
  overflow: hidden
}

.cta-band h3 {
  color: #fff
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 185, 129, .35), transparent 70%)
}

/* ---- footer ---- */
.site-footer {
  background: linear-gradient(180deg, var(--brand-700) 0%, var(--brand-700) 100%);
  color: var(--on-dark-muted);
  padding-top: 56px
}

.site-footer h6 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem
}

.site-footer a {
  color: var(--on-dark-muted)
}

.site-footer a:hover {
  color: #fff
}

.site-footer .footer-brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0
}

.footer-links li {
  margin: .45rem 0
}

.social-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, .08);
  color: var(--surface);
  transition: .2s
}

.social-ico:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px)
}

.footer-bottom {
  margin-top: 6px;
  padding: 18px 0;
  font-size: .85rem;
  color: #8fabce
}

/* ---- Dynamic footer (brand left + columns right) ---- */
.footer-main {
  display: flex;
  gap: 3.5rem;
  padding-bottom: 30px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .1)
}

.footer-intro {
  flex: 0 0 320px;
  min-width: 0
}

.footer-about {
  color: var(--on-dark-muted);
  font-size: .92rem;
  line-height: 1.7
}

.footer-socials .social-ico:hover {
  background: var(--sc, var(--accent));
  color: #fff;
  transform: translateY(-2px)
}

.footer-cols {
  flex: 1 1 auto;
  min-width: 0;
  column-count: 4;
  column-gap: 2rem
}

.footer-cols .footer-group {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 1.8rem
}

.footer-cols .footer-group h6 {
  margin-bottom: .7rem
}

.footer-cols .footer-group h6 a {
  color: #fff
}

.footer-cols .footer-links li {
  margin: .35rem 0;
  font-size: .92rem
}

@media (max-width:992px) {
  .footer-main {
    flex-direction: column;
    gap: 2rem
  }

  .footer-intro {
    flex-basis: auto
  }

  .footer-cols {
    column-count: 3
  }
}

@media (max-width:768px) {
  .footer-cols {
    column-count: 2
  }
}

@media (max-width:480px) {
  .footer-cols {
    column-count: 1
  }
}

/* ---- FAQ accordion ---- */
.faq-section {
  background: var(--brand-050)
}

.faq-accordion .accordion-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm) !important;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--card)
}

.faq-accordion .accordion-button {
  font-weight: 600;
  color: var(--ink);
  font-size: 1.02rem;
  padding: 1.1rem 1.25rem;
  background: var(--card)
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--brand);
  background: var(--brand-050);
  box-shadow: none
}

.faq-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: transparent
}

.faq-accordion .accordion-button::after {
  width: 1.1rem;
  height: 1.1rem;
  background-size: 1.1rem
}

.faq-accordion .accordion-body {
  color: var(--text);
  line-height: 1.75;
  padding: 1.25rem 1.25rem;
}

/* pagination */
.pagination .page-link {
  border: none;
  color: var(--brand);
  border-radius: 10px !important;
  margin: 0 3px;
  font-weight: 600
}

.pagination .page-item.active .page-link {
  background: var(--brand);
  color: #fff
}

/* misc */
.rounded-2xl {
  border-radius: var(--radius) !important
}

.shadow-soft {
  box-shadow: var(--shadow) !important
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: .25s;
  z-index: 1040;
  border: none
}

.back-to-top.show {
  opacity: 1;
  visibility: visible
}

.back-to-top:hover {
  background: var(--accent);
  color: #fff
}

@media(max-width:991px) {
  .section {
    padding: 52px 0
  }

  .stat-strip {
    margin-top: 24px
  }

  .stat-strip .stat+.stat {
    border-left: none;
    border-top: 1px solid var(--line)
  }
}

::-webkit-scrollbar {
  width: 6px;
  height: 5px;
  border-radius: 34px;
  background: var(--card-alt);
}

::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border-radius: 34px;
}

::-webkit-scrollbar-track {
  border-radius: 30px;
  background: var(--card-alt);
}

/* ---------- Financial calculators ---------- */
.calc-cat {
  margin-bottom: 26px
}

.calc-cat-h {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 9px
}

.calc-cat-h .cnt {
  font-size: .72rem;
  font-weight: 700;
  background: var(--brand-050);
  color: var(--brand);
  border-radius: 20px;
  padding: .1rem .55rem
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px
}

.calc-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  text-decoration: none;
  transition: .15s
}

.calc-card:hover {
  border-color: var(--brand);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 12%, transparent);
  transform: translateY(-1px);
  color: var(--ink)
}

.calc-card-ic {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--brand-050);
  color: var(--brand);
  font-weight: 800;
  font-size: .82rem;
  display: grid;
  place-items: center
}

.calc-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0
}

.calc-card-t {
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.25
}

.calc-card-sub {
  font-size: .76rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.3
}

.calc-card-go {
  color: var(--brand);
  font-weight: 700;
  flex: none
}

/* Author byline card (calculator / article footer) */
.author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--brand-050);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px
}

.author-box .ab-av {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover
}

.author-box span.ab-av {
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  color: #fff
}

.author-box .ab-main {
  min-width: 0
}

.author-box .ab-eyebrow {
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
  font-weight: 700
}

.author-box .ab-name {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  margin-top: 2px
}

.author-box .ab-name a {
  color: var(--ink)
}

.author-box .ab-name a:hover {
  color: var(--brand)
}

.author-box .ab-role {
  color: var(--brand);
  font-size: .85rem;
  font-weight: 600;
  margin-top: 1px
}

.author-box .ab-bio {
  margin: .55rem 0 0;
  font-size: .9rem;
  color: var(--text)
}

/* Home-page IPO cards */
.ipo-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px
}

.ipo-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  transition: .15s
}

.ipo-card:hover {
  border-color: var(--brand);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 12%, transparent);
  transform: translateY(-1px);
  color: var(--ink)
}

.ipo-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px
}

.ipo-card-name {
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2
}

.ipo-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: .82rem;
  color: var(--muted);
  align-items: center
}

.ipo-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 9px;
  margin-top: auto
}

.ipo-card-gmp {
  font-weight: 700;
  font-size: .86rem;
  color: var(--brand)
}

.ipo-card-gmp .up {
  color: var(--brand)
}

.ipo-card-gmp .dn {
  color: var(--danger)
}

.ipo-card-go {
  color: var(--brand);
  font-weight: 700;
  font-size: .85rem;
  white-space: nowrap
}

/* ================= BROKER REVIEW / COMPARE ================= */
.br-strip {
  background: var(--brand-700);
  color: #fff;
  font-size: .86rem;
  text-align: center;
  padding: 9px 16px
}

.br-strip b {
  color: var(--surface)
}

.br-strip a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  margin-left: 6px;
  font-weight: 600
}

.br-logo {
  height: 46px;
  width: auto;
  margin-bottom: 12px;
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px
}

/* ---- gold rate cards + city grid ---- */
.gr-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 16px 0 6px
}

.gr-card {
  background: var(--brand-050);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px
}

.gr-card-h {
  font-size: .82rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px
}

.gr-card-v {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap
}

.gr-chip {
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px
}

.gr-chip.up {
  background: var(--card-alt);
  color: var(--brand)
}

.gr-chip.dn {
  background: var(--card-alt);
  color: var(--danger)
}

.gr-wtable td:first-child,
.gr-wtable th:first-child {
  width: 26%
}

.gr-citygrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px
}

.gr-citycard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font-size: .9rem
}

.gr-citycard:hover {
  border-color: var(--brand);
  background: var(--brand-050);
  color: var(--brand)
}

.gr-cityname {
  font-weight: 600
}

.gr-cityrate {
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap
}

/* ---- gold price tables (today / yesterday / change) ---- */
.gpt-title {
  text-align: left;
  font-size: 1.18rem;
  margin: 2px 0 10px
}

.gpt-table {
  margin-bottom: 0
}

.gpt-table thead th {
  background: var(--card-alt);
  text-align: center;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line)
}

.gpt-table tbody td {
  text-align: center;
  vertical-align: middle
}

.gpt-table tbody tr:nth-child(even) {
  background: var(--card)
}

.gt-up {
  color: var(--brand);
  font-weight: 700
}

.gt-dn {
  color: var(--danger);
  font-weight: 700
}

.gt-flat {
  color: var(--muted);
  font-weight: 700
}

.gpt-note {
  margin: 0 0 .5rem;
  color: var(--ink);
  line-height: 1.75
}

.gpt-note:last-child {
  margin-bottom: 0
}

/* ---- gold header city/country picker ---- */
.gold-picker {
  margin-top: 14px
}

.gp-btn {
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  padding: 9px 16px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.gp-btn:hover,
.gp-btn:focus {
  background: #fff;
  border-color: #fff;
  color: var(--brand-700)
}

.gp-btn svg {
  flex: 0 0 auto
}

.gp-menu {
  width: min(94vw, 430px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(15, 42, 71, .22);
  overflow: hidden
}

.gp-search-wrap {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  position: sticky;
  top: 0;
  z-index: 2
}

.gp-scroll {
  max-height: min(60vh, 380px);
  overflow-y: auto;
  padding: 6px 0 8px
}

.gp-grp-t {
  padding: 8px 14px 5px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted)
}

.gp-item {
  display: block;
  padding: 7px 14px;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.3
}

.gp-item:hover {
  background: var(--brand-050);
  color: var(--brand)
}

.gp-item.on {
  background: var(--brand-050);
  color: var(--brand);
  font-weight: 700
}

.gp-none {
  padding: 16px 14px;
  color: var(--muted);
  font-size: .88rem;
  text-align: center
}

@media(max-width:575px) {

  .gold-picker,
  .gp-btn {
    width: 100%
  }

  .gp-btn {
    justify-content: center
  }
}

/* ---- 404 / error page ---- */
.err-page {
  padding: 70px 0 90px
}

.err-code {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(5rem, 16vw, 9rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--brand), var(--brand-700));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -.04em
}

.err-title {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  margin: .4rem 0 .6rem;
  color: var(--ink)
}

.err-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 1.6rem
}

.err-actions {
  display: flex;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem
}

.err-search {
  max-width: 460px;
  margin: 0 auto 2rem
}

.err-links-label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .7rem
}

.err-links>div {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: center
}

.err-links a {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 7px 15px;
  font-weight: 600;
  font-size: .88rem;
  color: var(--ink)
}

.err-links a:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-050)
}

/* ---- homepage hero: live gold & silver card ---- */
.hhr {
  padding: 22px 22px 8px
}

.hhr-block {
  display: block;
  border-top: 1px solid var(--line);
  padding: 14px 0;
  text-decoration: none
}

.hhr-block:first-of-type {
  border-top: 0
}

.hhr-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted)
}

.hhr-badge {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: var(--font);
  font-weight: 800;
  font-size: .82rem;
  color: #fff
}

.hhr-badge.gold {
  background: linear-gradient(135deg, var(--brand), var(--brand))
}

.hhr-badge.silver {
  background: linear-gradient(135deg, var(--brand), var(--muted))
}

.hhr-rows {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.hhr-row {
  flex: 1 1 30%;
  min-width: 96px;
  display: flex;
  flex-direction: column;
  gap: 2px
}

.hhr-k {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted)
}

.hhr-v {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
  line-height: 1.1
}

.hhr-chip {
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  align-self: flex-start
}

.hhr-chip.up {
  background: var(--card-alt);
  color: var(--brand)
}

.hhr-chip.dn {
  background: var(--card-alt);
  color: var(--danger)
}

.hhr-chip.flat {
  background: var(--card-alt);
  color: var(--muted)
}

.hhr-block:hover .hhr-v {
  color: var(--brand)
}

/* ---- homepage: holiday calendar chips ---- */
.hol-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px
}

.hol-chip-lg {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--shadow-sm)
}

.hol-chip-lg svg {
  color: var(--brand)
}

.hol-chip-lg:hover {
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: var(--shadow)
}

/* ---- holiday sidebar lists ---- */
.hol-list {
  list-style: none;
  margin: 0;
  padding: 0
}

.hol-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: .5rem 0;
  border-top: 1px solid var(--line)
}

.hol-list li:first-child {
  border-top: 0;
  padding-top: 0
}

.hol-list a {
  color: var(--ink);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.35
}

.hol-list a:hover {
  color: var(--brand)
}

.hol-list a.on {
  color: var(--brand)
}

.hol-date {
  color: var(--muted);
  font-size: .76rem;
  white-space: nowrap;
  flex: 0 0 auto
}

/* ---- gold sidebar ---- */
.gold-side {
  position: sticky;
  top: calc(var(--hh, 70px) + 16px)
}

.gsb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: .5rem 0;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--muted)
}

.gsb-row:first-of-type {
  border-top: 0
}

.gsb-row strong {
  color: var(--ink);
  font-weight: 700
}

.gsb-rate .gsb-row strong {
  color: var(--brand)
}

.gsb-date {
  margin-top: .6rem;
  font-size: .76rem;
  color: var(--muted)
}

.gsb-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px
}

.gsb-links a {
  background: var(--card-alt);
  color: var(--ink);
  font-size: .8rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 16px
}

.gsb-links a:hover {
  background: var(--brand-050);
  color: var(--brand)
}

.gsb-all {
  display: inline-block;
  margin-top: 10px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--brand)
}

@media(max-width:991px) {
  .gold-side {
    position: static
  }
}

/* ---- gold section tables (cities / countries / last 10 days / history) ---- */
.gsec-table {
  margin-bottom: 0
}

.gsec-table thead th {
  background: var(--brand-700);
  color: #fff;
  font-weight: 700;
  border-bottom: 0;
  text-transform: uppercase;
  font-size: .76rem;
  letter-spacing: .05em;
  white-space: nowrap
}

.gsec-table tbody td {
  vertical-align: middle
}

.gsec-table tbody tr:nth-child(even) {
  background: var(--card)
}

.gsec-table tbody td a {
  font-weight: 600
}

.loadmore-bar {
  display: flex;
  justify-content: center;
  padding: 14px 0 2px
}

.gmh-acc .accordion-button {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  background: var(--card)
}

.gmh-acc .accordion-button:not(.collapsed) {
  background: var(--brand-050);
  color: var(--brand);
  box-shadow: none
}

.gmh-acc .accordion-button:focus {
  box-shadow: none;
  border-color: var(--line)
}

.gmh-acc .accordion-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden
}

/* ---- international spot price ---- */
.gspot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 12px
}

.gspot-item {
  background: var(--brand-050);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px
}

.gspot-l {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em
}

.gspot-v {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  margin-top: 3px
}

/* ---- gold price calculator ---- */
.gcalc-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap
}

.gcalc-tabs button {
  border: 0;
  background: var(--card-alt);
  color: var(--ink);
  font-weight: 700;
  font-size: .85rem;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: background .15s, color .15s
}

.gcalc-tabs button:hover {
  background: var(--brand-050);
  color: var(--brand)
}

.gcalc-tabs button.on {
  background: var(--brand);
  color: #fff
}

.gcalc-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start
}

.gcalc-field label {
  font-weight: 600;
  font-size: .85rem;
  color: var(--muted);
  display: block;
  margin-bottom: 6px
}

.gcalc-input {
  display: flex;
  gap: 8px
}

.gcalc-input .gcalc-qty {
  flex: 1 1 auto
}

.gcalc-input .gcalc-unit {
  flex: 0 0 130px
}

.gcalc-quick {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px
}

.gcalc-quick button {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 16px;
  cursor: pointer
}

.gcalc-quick button:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-050)
}

.gcalc-result {
  background: var(--brand-050);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px
}

.gcalc-rlabel {
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em
}

.gcalc-total {
  font-family: var(--font);
  font-weight: 800;
  font-size: 2rem;
  color: var(--brand);
  line-height: 1.2;
  margin: 4px 0 2px
}

.gcalc-sub {
  font-size: .82rem;
  color: var(--muted)
}

.gcalc-others {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px
}

.gcalc-olabel {
  width: 100%;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em
}

.gcalc-others span {
  font-weight: 700;
  color: var(--ink)
}

.gcalc-others i {
  font-style: normal;
  color: var(--muted);
  font-weight: 600;
  margin-right: 6px
}

@media(max-width:768px) {
  .gcalc-body {
    grid-template-columns: 1fr
  }

  .gcalc-total {
    font-size: 1.6rem
  }
}

/* Shared gold, silver and platinum rate-page refinements. */
body.site-shell .article-hero .gold-picker {
  margin-top: 1rem
}

body.site-shell .article-hero .gp-btn {
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase
}

body.site-shell .article-hero .gp-btn:hover,
body.site-shell .article-hero .gp-btn:focus {
  background: var(--accent);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 3px 3px 0 var(--ink)
}

body.site-shell .gp-menu {
  width: min(92vw, 360px);
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--surface);
  box-shadow: 6px 6px 0 color-mix(in srgb, var(--ink) 14%, transparent)
}

body.site-shell .gp-scroll {
  max-height: min(58vh, 330px);
  padding: .45rem 0 .75rem
}

body.site-shell .gp-grp+.gp-grp {
  margin-top: .35rem;
  padding-top: .35rem;
  border-top: 1px solid var(--line)
}

body.site-shell .gp-grp-t {
  padding: .5rem .85rem .28rem;
  color: var(--brand-700);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .11em
}

body.site-shell .gp-item {
  padding: .5rem .85rem;
  color: var(--ink);
  font-size: .84rem;
  font-weight: 700
}

body.site-shell .gp-item:hover,
body.site-shell .gp-item.on {
  background: var(--accent-050);
  color: var(--brand-700)
}

body.site-shell .gct-wrap {
  border-top: 4px solid var(--brand-700)
}

body.site-shell .gcalc-card {
  border: 2px solid var(--brand-700);
  border-top: 6px solid var(--brand-700);
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--ink) 12%, transparent)
}

body.site-shell .gcalc-card .gpt-title {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.15
}

body.site-shell .gcalc {
  margin-top: 1.1rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line)
}

body.site-shell .gcalc-field {
  padding: 1rem;
  border: 1px solid var(--line-strong);
  background: var(--card)
}

body.site-shell .gcalc-field label {
  color: var(--brand-700);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase
}

body.site-shell .gcalc-input {
  gap: .6rem
}

body.site-shell .gcalc-input .form-control,
body.site-shell .gcalc-input .form-select {
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--surface);
  box-shadow: none
}

body.site-shell .gcalc-input .form-control:focus,
body.site-shell .gcalc-input .form-select:focus {
  border-color: var(--brand-700);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 13%, transparent)
}

body.site-shell .gcalc-quick button {
  border-radius: 0;
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--brand-700);
  font-weight: 800
}

body.site-shell .gcalc-quick button:hover {
  border-color: var(--brand-700);
  background: var(--accent);
  color: #fff
}

body.site-shell .gcalc-result {
  border: 2px solid var(--brand-700);
  border-radius: 0;
  background: var(--card-alt);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--brand) 12%, transparent)
}

body.site-shell .gcalc-rlabel {
  color: var(--text);
  font-weight: 900
}

.site-shell .gcalc-total {
  color: var(--brand-700)
}

body.site-shell .gcalc-others {
  padding: 1rem;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--surface)
}

@media(max-width:575px) {

  body.site-shell .article-hero .gold-picker,
  body.site-shell .article-hero .gp-btn {
    width: 100%
  }

  body.site-shell .article-hero .gp-btn {
    justify-content: center
  }

  body.site-shell .gcalc-card {
    box-shadow: 3px 3px 0 color-mix(in srgb, var(--ink) 12%, transparent)
  }

  body.site-shell .gcalc-field,
  body.site-shell .gcalc-result {
    padding: .85rem
  }

  body.site-shell .gcalc-input {
    flex-direction: column
  }

  body.site-shell .gcalc-input .gcalc-unit {
    flex-basis: auto
  }
}

/* ---- gold price chart ---- */
.gc-ranges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap
}

.gc-ranges button {
  border: 0;
  background: var(--card-alt);
  color: var(--ink);
  font-weight: 700;
  font-size: .8rem;
  padding: 6px 13px;
  border-radius: 20px;
  cursor: pointer;
  transition: background .15s, color .15s
}

.gc-ranges button:hover {
  background: var(--brand-050);
  color: var(--brand)
}

.gc-ranges button.on {
  background: var(--brand);
  color: #fff
}

.gold-chart {
  position: relative;
  margin-top: 6px
}

.gc-plot {
  position: relative;
  width: 100%
}

.gc-svg {
  width: 100%;
  height: 320px;
  display: block;
  touch-action: pan-y
}

.gc-line {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round
}

.gc-area {
  stroke: none
}

.gc-grid {
  stroke: var(--line);
  stroke-width: 1;
  shape-rendering: crispEdges
}

.gc-ytxt {
  fill: var(--muted);
  font-size: 11px;
  text-anchor: end;
  font-family: var(--font-body, inherit)
}

.gc-xtxt {
  fill: var(--muted);
  font-size: 11px;
  text-anchor: middle
}

.gc-cross {
  stroke: #9aa7b8;
  stroke-width: 1;
  stroke-dasharray: 4 3
}

.gc-dot {
  fill: #fff;
  stroke: var(--brand);
  stroke-width: 3
}

.gc-tip {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  background: var(--brand-700);
  color: #fff;
  border-radius: 9px;
  padding: 8px 11px;
  font-size: .82rem;
  line-height: 1.5;
  box-shadow: 0 6px 18px rgba(15, 42, 71, .28);
  white-space: nowrap
}

.gc-tip span {
  display: block
}

.gc-tip i {
  display: inline-block;
  width: 34px;
  font-style: normal;
  color: #9fb2c9;
  font-weight: 600
}

.gc-tip .gc-24 b,
.gc-tip span {
  font-weight: 700
}

.gc-date {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  background: var(--brand-700);
  color: #fff;
  border-radius: 7px;
  padding: 4px 10px;
  font-size: .76rem;
  font-weight: 600;
  white-space: nowrap;
  transform: translateY(2px)
}

@media(max-width:640px) {
  .gc-svg {
    height: 250px
  }
}

/* ---- gold static content + timeline ---- */
/* Admin-written body copy (gold pages, timeline posts). Styles the raw markup
   TinyMCE produces so headings, lists and tables read well without extra work. */
.rich-content {
  color: var(--ink);
  line-height: 1.8;
  font-size: 1rem
}

.rich-content>*:first-child {
  margin-top: 0
}

.rich-content>*:last-child {
  margin-bottom: 0
}

.rich-content p {
  margin: 0 0 1rem;
  line-height: 1.75 !important;
}

.rich-content h2,
.rich-content h3,
.rich-content h4 {
  font-family: var(--font);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
  margin: 1.9rem 0 .7rem
}

.rich-content h2 {
  font-size: 1.42rem
}

.rich-content h3 {
  font-size: 1.18rem
}

.rich-content h4 {
  font-size: 1.04rem
}

.rich-content ul,
.rich-content ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem
}

.rich-content li {
  margin: .4rem 0;
  padding-left: .15rem
}

.rich-content li::marker {
  color: var(--brand)
}

.rich-content a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px
}

.rich-content a:hover {
  color: var(--brand-700)
}

.rich-content strong,
.rich-content b {
  font-weight: 700;
  color: var(--ink)
}

.rich-content blockquote {
  margin: 1.2rem 0;
  padding: .6rem 0 .6rem 1rem;
  border-left: 3px solid var(--brand);
  color: var(--muted);
  font-style: italic
}

.rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: .5rem 0
}

.rich-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.6rem 0
}

.rich-content code {
  background: var(--card-alt);
  padding: .12em .4em;
  border-radius: 5px;
  font-size: .9em
}

/* Tables inside admin content — styled by element so older content that was
   saved without the Bootstrap class still looks right, and never overflows. */
.rich-content .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1.2rem
}

.rich-content table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.2rem;
  font-size: .95rem
}

.rich-content .table-responsive>table {
  margin-bottom: 0
}

.rich-content table th,
.rich-content table td {
  padding: .7rem .85rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top
}

.rich-content table thead th {
  background: var(--card-alt);
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap
}

.rich-content table tbody tr:nth-child(even) {
  background: var(--card)
}

.rich-content table tbody tr:last-child td {
  border-bottom: 0
}

.gold-timeline {
  position: relative;
  padding-left: 26px
}

.gold-timeline:before {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--line)
}

.gt-item {
  position: relative;
  padding-bottom: 22px
}

.gt-item:last-child {
  padding-bottom: 0
}

.gt-dot {
  position: absolute;
  left: -22px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-050)
}

.gt-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-weight: 600;
  font-size: .82rem;
  background: var(--brand-050);
  padding: 3px 10px;
  border-radius: 20px
}

.gt-heading {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--ink);
  margin: .5rem 0 .35rem
}

.gt-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin: .25rem 0 .5rem
}

.gt-content {
  font-size: .95rem;
  color: var(--muted)
}

/* ---- broker type filter bar ---- */
.brk-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-bottom: 20px
}

.brk-filter-lbl {
  margin-right: auto;
  font-weight: 700;
  color: var(--muted);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em
}

.brk-filter a {
  padding: 9px 18px;
  border-radius: 10px;
  background: var(--card-alt);
  color: var(--ink);
  font-weight: 600;
  font-size: .9rem
}

.brk-filter a:hover {
  background: var(--brand-050);
  color: var(--brand)
}

.brk-filter a.on {
  background: var(--brand-700);
  color: #fff
}

@media(max-width:640px) {
  .brk-filter {
    justify-content: flex-start
  }

  .brk-filter-lbl {
    width: 100%;
    margin-bottom: 4px
  }
}

/* ---- broker listing card (archive / type pages / home) ---- */
.brk-list {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.brk-card {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 24px;
  transition: box-shadow .18s, border-color .18s
}

.brk-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--brand-050)
}

.brk-logo {
  flex: 0 0 118px;
  width: 118px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-050);
  overflow: hidden
}

.brk-logo img {
  max-width: 88px;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain
}

.brk-mark {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--brand)
}

.brk-main {
  flex: 1 1 auto;
  min-width: 0
}

.brk-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px
}

.brk-name {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -.01em
}

.brk-name:hover {
  color: var(--brand)
}

.brk-rate {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 600
}

.brk-tags {
  display: flex;
  align-items: center;
  gap: 8px 14px;
  flex-wrap: wrap;
  margin-bottom: 12px
}

.brk-type {
  background: var(--card-alt);
  color: var(--ink);
  font-weight: 600;
  font-size: .78rem;
  padding: 5px 12px;
  border-radius: 8px
}

.brk-seg {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink)
}

.brk-seg.no {
  color: var(--muted)
}

.brk-seg .ic {
  font-style: normal;
  font-size: .7rem;
  line-height: 1.9;
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  color: #fff;
}

.brk-seg.ok .ic {
  background: var(--brand)
}

.brk-seg.no .ic {
  background: var(--line)
}

.brk-charges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px
}

.brk-charges .k {
  display: block;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 3px
}

.brk-charges .v {
  display: block;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.02rem
}

.brk-cta {
  flex: 0 0 auto
}

.brk-cta .btn {
  white-space: nowrap;
  background: var(--brand-700);
  border-color: var(--brand-700);
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  color: #fff
}

.brk-cta .btn:hover {
  background: var(--brand);
  border-color: var(--brand)
}

@media(max-width:860px) {
  .brk-card {
    flex-wrap: wrap;
    gap: 16px
  }

  .brk-logo {
    flex-basis: 76px;
    width: 76px;
    height: 70px
  }

  .brk-cta {
    order: 3;
    width: 100%
  }

  .brk-cta .btn {
    width: 100%
  }

  .brk-charges {
    grid-template-columns: repeat(2, 1fr)
  }
}

/* hero head: logo on the left, H1 + tagline on the right */
.br-hero-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px
}

.br-hero-head .br-logo {
  margin-bottom: 0;
  flex: none;
  height: 56px
}

.br-hero-head-txt {
  min-width: 0
}

@media(max-width:575px) {
  .br-hero-head {
    gap: 12px
  }

  .br-hero-head .br-logo {
    height: 44px
  }
}

.br-stars {
  --pct: 78%;
  display: inline-block;
  font-size: 15px;
  line-height: 1;
  position: relative;
  font-family: Arial;
  vertical-align: middle
}

.br-stars::before {
  content: "★★★★★";
  color: rgba(255, 255, 255, .35)
}

.br-stars::after {
  content: "★★★★★";
  color: var(--gold);
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden
}

.ipo-table .br-stars::before {
  color: var(--line)
}

.br-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px
}

.br-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--surface)
}

.br-chip b {
  color: #fff
}

.br-chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-100)
}

.br-ratebadge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px
}

.br-ratebadge .score {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1
}

.br-ratebadge .score small {
  font-size: .9rem;
  color: var(--on-dark-muted);
  font-weight: 600
}

.br-ratebadge .meta {
  font-size: .78rem;
  color: var(--on-dark-muted)
}

.br-ratebadge .meta b {
  display: block;
  color: #fff;
  font-size: .85rem
}

.br-ctacard {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  padding: 22px;
  color: #fff
}

.br-ctacard h3 {
  color: #fff;
  font-size: 1.15rem;
  margin: 6px 0 12px
}

.br-ctacard ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  font-size: .9rem
}

.br-ctacard li {
  display: flex;
  gap: 8px;
  padding: 5px 0;
  color: var(--surface)
}

.br-ctacard .fine {
  font-size: .72rem;
  color: #8fa1b8;
  text-align: center;
  margin-top: 10px
}

.br-note {
  background: var(--brand-050);
  border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  font-size: .88rem;
  color: var(--text);
  margin-top: 14px
}

.br-note b {
  color: var(--ink)
}

.br-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 6px
}

.br-pf {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px
}

.br-pf h4 {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}

.br-pf .tag {
  font-size: .68rem;
  background: var(--brand-050);
  color: var(--brand);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700
}

.br-pf p {
  font-size: .86rem;
  margin: 8px 0 0;
  color: var(--muted)
}

.br-ratings {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px;
  align-items: center
}

.br-bigscore {
  text-align: center;
  background: var(--brand-050);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px
}

.br-bigscore .n {
  font-size: 3rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1
}

.br-bigscore .of {
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 600
}

.br-bigscore .votes {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 6px
}

.br-rrow {
  display: grid;
  grid-template-columns: 150px 1fr 40px;
  gap: 12px;
  align-items: center;
  padding: 8px 0
}

.br-rrow .lbl {
  font-size: .88rem;
  color: var(--text)
}

.br-rrow .bar {
  height: 8px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden
}

.br-rrow .bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: 99px
}

.br-rrow .val {
  font-weight: 700;
  font-size: .88rem;
  text-align: right
}

.br-steps {
  display: grid;
  gap: 10px;
  counter-reset: s
}

.br-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px
}

.br-step::before {
  counter-increment: s;
  content: counter(s);
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: .9rem
}

.br-step p {
  margin: 0;
  font-size: .9rem
}

.br-cmpgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px
}

.br-cmpgrid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  background: var(--card)
}

.br-cmpgrid a::after {
  content: "→";
  color: var(--muted)
}

.br-cmpgrid a:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-050)
}

/* ---- compare archive: "A vs B" row list (broker/compare_archive.php) ---- */
.cmp-list {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden
}

.cmp-vsrow {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 20px 26px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
  transition: background .15s
}

.cmp-list>.cmp-vsrow:last-child {
  border-bottom: 0
}

.cmp-vsrow:hover {
  background: var(--brand-050);
  color: inherit
}

.cmp-vsrow::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--line)
}

/* A fixed width (not content-shrunk) keeps every row's logo/name flush to
   the same starting position regardless of how long a broker's name or fact
   text is — content-based sizing made short names sit at a different indent
   than long ones, which read as misaligned row to row. Edge-aligned (not
   pulled toward the VS badge): the left side reads from the row's true left
   edge, the right side from the row's true right edge. */
.cmp-side {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 460px;
  min-width: 0
}

.cmp-side-a {
  justify-self: start
}

.cmp-side-b {
  justify-self: end;
  flex-direction: row-reverse;
  text-align: right
}

.cmp-logo {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: var(--brand-050);
  display: grid;
  place-items: center;
  overflow: hidden
}

.cmp-logo img {
  max-width: 54px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain
}

.cmp-mark {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--brand)
}

.cmp-info {
  min-width: 0;
  flex: 1 1 auto
}

/* Row 1: name alone. */
.cmp-name {
  display: block;
  font-weight: 800;
  color: var(--ink);
  font-size: 1.22rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

/* Row 2: rating · type · facts, single line, divided by thin rules. Order in
   the markup is the same for both sides (rate, type, facts) — the whole line
   is just pushed to the right edge for side B, not internally mirrored. */
.cmp-meta {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  margin-top: 7px;
  min-width: 0;
  overflow: hidden
}

.cmp-side-b .cmp-meta {
  justify-content: flex-end
}

.cmp-meta>*+* {
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
  flex: none;
  min-width: 0
}

.cmp-rate {
  flex: none;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .86rem;
  color: var(--muted);
  white-space: nowrap
}

.cmp-rate b {
  color: var(--ink);
  font-weight: 700
}

.cmp-rate .br-stars::before {
  color: var(--line)
}

/* Broker type (Discount / Full-service) */
.cmp-type {
  flex: none;
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-050);
  color: var(--brand);
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

/* Charge text length varies a lot (admin free text), so each fact truncates
   on its own line instead of wrapping and growing the row's height. */
.cmp-fact {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
  max-width: 85px
}

.cmp-fact i {
  font-style: normal;
  font-size: .62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.cmp-fact b {
  display: block;
  color: var(--ink);
  font-weight: 700;
  font-size: .8rem;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.cmp-vs {
  position: relative;
  z-index: 1;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink, var(--ink));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .76rem;
  letter-spacing: .02em
}

@media(max-width:1080px) {
  .cmp-side {
    width: auto;
    max-width: calc(50% - 30px)
  }
}

@media(max-width:575px) {
  .cmp-vsrow {
    gap: 8px;
    padding: 14px 12px
  }

  .cmp-side {
    gap: 8px
  }

  .cmp-logo {
    width: 44px;
    height: 44px
  }

  .cmp-logo img {
    max-width: 32px;
    max-height: 28px
  }

  .cmp-name {
    font-size: .92rem
  }

  .cmp-meta {
    margin-top: 4px
  }

  .cmp-rate {
    font-size: .76rem
  }

  .cmp-type,
  .cmp-fact {
    display: none
  }

  .cmp-vs {
    width: 32px;
    height: 32px;
    font-size: .64rem
  }
}

.br-disclaimer {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: .8rem;
  color: var(--text);
  line-height: 1.6
}

.br-disclaimer b {
  color: var(--text)
}

/* archive cards */
.br-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px
}

.br-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  transition: .15s
}

.br-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--ink)
}

.br-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px
}

.br-card-top img {
  height: 34px;
  width: auto
}

.br-card-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-050);
  color: var(--brand);
  font-weight: 800;
  display: grid;
  place-items: center
}

.br-card-rate {
  font-weight: 800;
  color: var(--brand);
  font-size: 1.1rem
}

.br-card-rate small {
  font-size: .7rem;
  color: var(--muted)
}

.br-card-name {
  font-weight: 800;
  font-size: 1.02rem
}

.br-card-type {
  font-size: .8rem;
  color: var(--muted)
}

.br-card-facts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: .78rem;
  color: var(--muted);
  margin-top: 6px
}

.br-card-facts b {
  color: var(--ink)
}

.br-card-go {
  margin-top: auto;
  padding-top: 8px;
  color: var(--brand);
  font-weight: 700;
  font-size: .84rem
}

/* ---- compare ---- */
.br-vsbar {
  position: sticky;
  top: var(--hh, 64px);
  z-index: 1010;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line)
}

.br-vsbar-in {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 0
}

.br-bhead {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0
}

.br-bhead.right {
  justify-content: flex-end;
  text-align: right
}

.br-bhead img {
  height: 30px;
  width: auto;
  flex: none
}

.br-bhead .bn {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  color: var(--ink)
}

.br-bhead .bmeta {
  font-size: .74rem;
  color: var(--muted)
}

.br-vsbadge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-700);
  color: #fff;
  font-weight: 800;
  font-size: .85rem;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: var(--shadow)
}

.br-verdict {
  background: var(--brand-050);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 22px
}

.br-verdict>h2 {
  font-size: 1.2rem;
  margin-bottom: 12px
}

.br-vcols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.br-vcol {
  padding: 16px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line)
}

.br-vcol.a {
  border-top: 3px solid var(--brand)
}

.br-vcol.b {
  border-top: 3px solid var(--brand-700)
}

.br-vcol .best {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px
}

.br-vcol.a .best {
  color: var(--brand)
}

.br-vcol.b .best {
  color: var(--text)
}

.br-vcol h3 {
  font-size: .98rem;
  margin-bottom: 6px
}

.br-vcol p {
  font-size: .86rem;
  color: var(--muted);
  margin: 0
}

/* Comparison sections are always expanded — no toggle. */
.br-acc {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--card)
}

.br-acc-h {
  padding: 16px 20px;
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink)
}

.br-acc .body {
  padding: 0 20px 20px
}

/* Shared by the dynamic intro <p> and the admin's static-override <div> for a
   section, so the two look identical regardless of which one is showing. */
.br-intro {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 12px
}

.br-intro p {
  margin: 0 0 8px
}

.br-intro p:last-child {
  margin-bottom: 0
}

.br-ctable .param {
  width: 34%
}

.br-ctable tbody td.param {
  font-weight: 600;
  color: var(--text)
}

/* header sits on the brand background — keep every heading white so the broker
   column names stay readable (brand-on-brand made them invisible). */
.br-ctable thead th,
.br-ctable thead th.param,
.br-ctable thead th.ca,
.br-ctable thead th.cb {
  color: #fff
}

.br-cwin {
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 8%, transparent), transparent)
}

.br-wintag {
  display: inline-block;
  font-size: .62rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-050);
  border-radius: 99px;
  padding: 1px 7px;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: .04em
}

.br-yn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  font-size: .85rem
}

.br-yn.yes {
  color: var(--brand)
}

.br-yn.no {
  color: var(--danger)
}

.br-starval {
  margin-left: 6px;
  font-weight: 700
}

.br-pcpair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.br-pcpair .head {
  font-weight: 800;
  font-size: .98rem;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 10px
}

.br-pcpair .head.a {
  color: var(--brand)
}

.br-pcpair .head.b {
  color: var(--text)
}

.br-pcpair h4 {
  font-size: .86rem;
  margin: 12px 0 6px
}

.br-pcpair h4.pcpos {
  color: var(--brand)
}

.br-pcpair h4.pcneg {
  color: var(--danger)
}

.br-pcpair ul {
  list-style: none;
  margin: 0;
  padding: 0
}

.br-pcpair li {
  font-size: .85rem;
  color: var(--muted);
  padding: 4px 0
}

.br-ctarow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px
}

.br-ctabtn {
  display: block;
  text-align: center;
  font-weight: 700;
  font-size: .98rem;
  padding: 14px;
  border-radius: 10px;
  color: #fff
}

.br-ctabtn.a {
  background: var(--brand)
}

.br-ctabtn.b {
  background: var(--brand)
}

.br-ctabtn:hover {
  color: #fff;
  transform: translateY(-1px)
}

.br-xlinks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px
}

.br-xcol h3 {
  font-size: .95rem;
  margin-bottom: 10px
}

.br-xcol h3.a {
  color: var(--brand)
}

.br-xcol h3.b {
  color: var(--text)
}

.br-xcol a {
  display: block;
  padding: 8px 0;
  font-size: .85rem;
  color: var(--text);
  border-bottom: 1px solid var(--line)
}

.br-xcol a:hover {
  color: var(--brand)
}

@media(max-width:760px) {
  .br-ratings {
    grid-template-columns: 1fr
  }

  .br-vcols,
  .br-pcpair,
  .br-ctarow,
  .br-xlinks {
    grid-template-columns: 1fr
  }

  .br-bhead .bmeta {
    display: none
  }

  .br-rrow {
    grid-template-columns: 120px 1fr 36px
  }
}

/* ---- Broker 16-page sub-nav + sub-page widgets ---- */
.br-subnav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line)
}

.br-subnav .in {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none
}

.br-subnav .in::-webkit-scrollbar {
  display: none
}

.br-subnav a {
  flex: 0 0 auto;
  padding: 13px 13px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2.5px solid transparent;
  white-space: nowrap
}

.br-subnav a:hover {
  color: var(--brand)
}

.br-subnav a.on {
  color: var(--brand);
  border-bottom-color: var(--brand)
}

.br-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 14px
}

.br-kpi {
  background: var(--brand-050);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px
}

.br-kpi .v {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--brand);
  line-height: 1.15
}

.br-kpi .k {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 4px
}

.br-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text)
}

.br-list li {
  padding: 4px 0;
  font-size: .9rem
}

.br-warn {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold, var(--line-strong));
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  font-size: .88rem;
  color: var(--text);
  margin-top: 12px
}

.br-warn b {
  color: var(--text)
}

.br-related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 6px
}

.br-related a {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink)
}

.br-related a:hover {
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: 0 4px 14px rgba(15, 32, 56, .07)
}

.br-related a span {
  display: block;
  font-weight: 400;
  font-size: .8rem;
  color: var(--muted);
  margin-top: 3px
}

/* brokerage calculator on the broker sub-page */
.br-calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px
}

.br-calcform {
  background: var(--brand-050);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px
}

.br-calcform .fld {
  margin-bottom: 12px
}

.br-calcform .fld label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 5px
}

.br-calcform .fld input,
.br-calcform .fld select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
  background: #fff
}

.br-calcform .fld input:focus,
.br-calcform .fld select:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px
}

.br-seg {
  display: flex;
  gap: 6px;
  flex-wrap: wrap
}

.br-seg label {
  flex: 1 1 auto;
  min-width: 70px;
  margin: 0
}

.br-seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none
}

.br-seg span {
  display: block;
  text-align: center;
  padding: 9px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 600;
  background: #fff;
  color: var(--muted);
  cursor: pointer
}

.br-seg input:checked+span {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff
}

.br-calcout {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px
}

.br-total {
  background: var(--brand-050);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px
}

.br-total .k {
  font-size: .76rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em
}

.br-total .v {
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--brand);
  line-height: 1.2
}

.br-total .sub {
  font-size: .78rem;
  color: var(--muted)
}

.br-orow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: .88rem
}

.br-orow:last-of-type {
  border-bottom: 0
}

.br-orow span:last-child {
  font-weight: 600;
  font-variant-numeric: tabular-nums
}

.br-orow.big {
  border-top: 2px solid var(--line);
  margin-top: 4px;
  padding-top: 11px;
  font-size: .95rem
}

.br-orow.big span:last-child {
  color: var(--brand);
  font-weight: 800
}

@media(max-width:760px) {
  .br-calc {
    grid-template-columns: 1fr
  }
}

.calc-card-tool {
  padding: 20px 22px
}

.calc-tool {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
  align-items: start
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.calc-field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 5px
}

.calc-field .cf-in {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: #fff
}

.calc-field .cf-in:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent)
}

.calc-field .cf-in input {
  border: 0;
  outline: 0;
  padding: .55rem .7rem;
  font-size: 1rem;
  font-weight: 600;
  width: 100%;
  color: var(--ink);
  background: transparent
}

.cf-pre,
.cf-suf {
  display: grid;
  place-items: center;
  padding: 0 .7rem;
  background: var(--brand-050);
  color: var(--muted);
  font-weight: 700;
  font-size: .85rem
}

.calc-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: .55rem .7rem;
  font-size: .95rem;
  font-weight: 600;
  background: #fff;
  color: var(--ink)
}

.calc-result {
  background: var(--brand-700);
  color: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  align-self: start
}

.calc-primary {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .18)
}

.calc-primary span {
  font-size: .78rem;
  color: var(--surface)
}

.calc-primary b {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1
}

.calc-primary b.pos {
  color: var(--surface)
}

.calc-primary b.neg {
  color: #ff9db0
}

.calc-bar {
  display: flex;
  height: 9px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, .15);
  margin-bottom: 8px
}

.calc-bar .a {
  background: var(--brand)
}

.calc-bar .b {
  background: var(--brand-100)
}

.calc-bar-lg {
  display: flex;
  justify-content: space-between;
  font-size: .76rem;
  color: var(--surface);
  margin-bottom: 12px
}

.calc-bar-lg .dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 5px
}

.calc-bar-lg .dot.a {
  background: var(--brand)
}

.calc-bar-lg .dot.b {
  background: var(--brand-100)
}

.calc-out {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem
}

.calc-out td {
  padding: .42rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12)
}

.calc-out td:last-child {
  text-align: right;
  font-weight: 700
}

.calc-out tr:last-child td {
  border-bottom: 0
}

.calc-note {
  font-size: .76rem;
  color: var(--surface);
  margin: 10px 0 0
}

.calc-formula {
  background: var(--brand-050);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 1rem;
  margin: 10px 0;
  overflow-x: auto
}

.calc-longform {
  border-top: 1px solid var(--line);
  padding-top: 22px
}

.calc-longform h2 {
  font-size: 1.3rem;
  margin-top: 1.5rem
}

.calc-longform h3 {
  font-size: 1.05rem;
  margin-top: 1.1rem
}

.calc-rep {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  grid-column: 1/-1
}

.calc-rep-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px
}

.calc-rep-head label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0
}

.calc-rep-add {
  border: 0;
  background: var(--brand-050);
  color: var(--brand);
  font-weight: 700;
  font-size: .8rem;
  border-radius: 7px;
  padding: .3rem .7rem;
  cursor: pointer
}

.calc-rep-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px
}

.calc-rep-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .45rem .6rem;
  font-size: .9rem
}

.calc-rep-del {
  flex: none;
  width: 34px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--danger);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1
}

.calc-side-link {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: .5rem 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none
}

.calc-side-link:first-of-type {
  border-top: 0
}

.calc-side-link:hover {
  color: var(--brand)
}

.calc-side-all {
  display: inline-block;
  margin-top: .7rem;
  font-weight: 700;
  color: var(--brand);
  font-size: .85rem;
  text-decoration: none
}

@media(max-width:720px) {
  .calc-tool {
    grid-template-columns: 1fr
  }
}

/* ---- Sticky footer CTA bar (Settings → Widgets) ------------------------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1045;
  background: var(--sb-bg, var(--ink));
  box-shadow: 0 -6px 24px color-mix(in srgb, var(--ink) 22%, transparent);
  animation: sbUp .35s cubic-bezier(.22, 1, .36, 1) both
}

@keyframes sbUp {
  from {
    transform: translateY(100%)
  }

  to {
    transform: translateY(0)
  }
}

.sticky-cta-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 11px 54px 11px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  position: relative
}

.sticky-cta-txt {
  margin: 0;
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.35;
  letter-spacing: .1px
}

.sticky-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sb-btn, var(--brand));
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  padding: 11px 22px;
  border-radius: 9px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
  transition: transform .15s ease, filter .15s ease
}

.sticky-cta-btn:hover {
  color: #fff;
  filter: brightness(1.08);
  transform: translateY(-1px)
}

.sticky-cta-btn svg {
  transition: transform .15s ease
}

.sticky-cta-btn:hover svg {
  transform: translateX(3px)
}

.sticky-cta-x {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease
}

.sticky-cta-x:hover {
  background: rgba(255, 255, 255, .28)
}

@media(max-width:640px) {
  .sticky-cta-in {
    padding: 10px 46px 10px 14px;
    gap: 10px
  }

  .sticky-cta-txt {
    font-size: .9rem;
    flex: 1 1 100%;
    text-align: center
  }

  .sticky-cta-btn {
    font-size: .88rem;
    padding: 9px 18px;
    flex: 1 1 auto;
    justify-content: center
  }
}

/* ---- Marketing popup (Admin → Popups) ---------------------------------- */
.pp-ov {
  position: fixed;
  inset: 0;
  z-index: 1080;
  background: color-mix(in srgb, var(--ink) 62%, transparent);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .22s ease
}

.pp-ov.on {
  opacity: 1
}

.pp-box {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 860px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 26px 70px color-mix(in srgb, var(--ink) 40%, transparent);
  transform: translateY(14px) scale(.98);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1)
}

.pp-ov.on .pp-box {
  transform: none
}

.pp-box.pp-center {
  max-width: 520px
}

.pp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch
}

.pp-box.pp-center .pp-grid {
  grid-template-columns: 1fr
}

.pp-media {
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center
}

.pp-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.pp-box.pp-center .pp-media img {
  height: auto;
  max-height: 280px;
  object-fit: contain
}

.pp-body {
  padding: 30px 30px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px
}

.pp-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--head, var(--ink))
}

.pp-text {
  margin: 0;
  color: var(--text);
  font-size: .97rem;
  line-height: 1.65
}

.pp-text p {
  margin: 0 0 .6rem
}

.pp-text p:last-child {
  margin-bottom: 0
}

.pp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: flex-start;
  background: var(--pp-btn, var(--brand));
  color: #fff;
  font-weight: 700;
  font-size: .97rem;
  padding: 12px 26px;
  border-radius: 9px;
  text-decoration: none;
  margin-top: 4px;
  transition: filter .15s ease, transform .15s ease
}

.pp-btn:hover {
  color: #fff;
  filter: brightness(1.08);
  transform: translateY(-1px)
}

.pp-x {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
  transition: background .15s ease
}

.pp-x:hover {
  background: #fff
}

@media(max-width:720px) {
  .pp-grid {
    grid-template-columns: 1fr
  }

  .pp-media img {
    max-height: 210px;
    object-fit: cover
  }

  .pp-body {
    padding: 22px 20px 26px
  }

  .pp-title {
    font-size: 1.25rem
  }

  .pp-btn {
    align-self: stretch
  }
}

/* Lift the floating buttons above the sticky bar when it is on screen. */
body:has(.sticky-cta) .back-to-top {
  bottom: calc(22px + var(--sb-h, 64px))
}

body:has(.sticky-cta) .wa-float {
  bottom: calc(24px + var(--sb-h, 64px))
}

/* ---- Corner popup (position: bottom-left / bottom-right) ----------------
   A non-blocking card: no backdrop, no scroll lock. It rises from below the
   fold, rests, then floats up and fades out. */
.pp-ov.pp-corner {
  background: none;
  backdrop-filter: none;
  display: block;
  padding: 0;
  pointer-events: none;
  opacity: 1;
  transition: none
}

.pp-corner .pp-box {
  position: fixed;
  bottom: 22px;
  width: min(360px, calc(100vw - 32px));
  max-width: none;
  max-height: none;
  border-radius: 14px;
  overflow: visible;
  pointer-events: auto;
  box-shadow: 0 14px 44px color-mix(in srgb, var(--ink) 28%, transparent);
  transform: translateY(calc(100% + 40px));
  opacity: 0;
  transition: none
}

.pp-corner.pp-left .pp-box {
  left: 22px
}

.pp-corner.pp-right .pp-box {
  right: 22px
}

/* rise in */
.pp-corner.on .pp-box {
  animation: ppRise .5s cubic-bezier(.22, 1, .36, 1) forwards
}

@keyframes ppRise {
  from {
    transform: translateY(calc(100% + 40px));
    opacity: 0
  }

  to {
    transform: translateY(0);
    opacity: 1
  }
}

/* float up and away */
.pp-corner.out .pp-box {
  animation: ppFloat .55s cubic-bezier(.55, 0, .68, .3) forwards
}

@keyframes ppFloat {
  from {
    transform: translateY(0);
    opacity: 1
  }

  to {
    transform: translateY(-70px);
    opacity: 0
  }
}

.pp-corner .pp-grid {
  display: block
}

.pp-corner .pp-body {
  padding: 16px 18px 18px;
  gap: 8px
}

/* Keep the heading clear of the close button in the top-right corner. */
.pp-corner .pp-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-right: 30px
}

.pp-corner .pp-logo {
  flex: none;
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 8px
}

.pp-corner .pp-title {
  font-size: 1.06rem;
  line-height: 1.3
}

.pp-corner .pp-text {
  font-size: .9rem;
  line-height: 1.55
}

.pp-corner .pp-btn {
  align-self: stretch;
  width: 100%;
  padding: 11px 18px;
  font-size: .95rem;
  margin-top: 8px
}

.pp-corner .pp-x {
  right: 8px;
  top: 8px;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, .9);
  box-shadow: none
}

.pp-corner .pp-x:hover {
  background: var(--card-alt)
}

@media(max-width:520px) {
  .pp-corner .pp-box {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto
  }

  .pp-corner.pp-right .pp-box {
    right: 12px
  }
}

/* Keep the corner card clear of the sticky bar when both are on screen. */
body:has(.sticky-cta) .pp-corner .pp-box {
  bottom: calc(22px + var(--sb-h, 64px))
}

/* =====================================================================
   Market Desk redesign
   A deliberately editorial system: paper, ink, measured green and a single
   signal colour replace the former bright application-style interface.
   ===================================================================== */
:root {
  /* Colour tokens are NOT defined here. They come from the four admin
     colours via app/Views/partials/palette.php, which is emitted after this
     stylesheet. Redefining any of them here would silently override the
     admin's choice. Only non-colour design tokens belong in this block. */
  --radius: 0px;
  --radius-sm: 0px;
  --shadow-sm: 0 1px 0 color-mix(in srgb, var(--ink) 8%, transparent);
  --shadow: 0 12px 30px color-mix(in srgb, var(--ink) 7%, transparent);
  --shadow-lg: 0 24px 54px color-mix(in srgb, var(--ink) 13%, transparent);
  --container: 1240px;

  --display: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.site-shell {
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  letter-spacing: .002em
}

body.site-shell::selection {
  background: var(--accent);
  color: #fff
}

body.site-shell h1,
body.site-shell h2,
body.site-shell h3,
body.site-shell h4,
body.site-shell h5,
body.site-shell h6 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.035em;
  line-height: 1.08;
}

body.site-shell a {
  color: var(--portal-yellow);
  text-underline-offset: 3px
}

body.site-shell a:hover {
  color: var(--brand-700)
}

body.site-shell .section {
  padding: 88px 0
}

body.site-shell .section-sm {
  padding: 62px 0
}

body.site-shell .bg-soft {
  background: var(--line) !important
}

body.site-shell .eyebrow {
  font-family: var(--font);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--brand);
}

body.site-shell .section-title {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 700;
}

body.site-shell .section-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted)
}

body.site-shell .section-title+.section-lead {
  margin-top: 1rem
}

body.site-shell .card {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--card);
  box-shadow: none
}

body.site-shell .rounded-2xl {
  border-radius: 0 !important
}

body.site-shell .shadow-soft {
  box-shadow: var(--shadow) !important
}

/* Controls */
body.site-shell .btn {
  border-radius: 0;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 800;
  padding: .82rem 1.15rem;
  box-shadow: none
}

body.site-shell .btn-lg {
  font-size: .83rem;
  padding: 1rem 1.45rem
}

body.site-shell .btn-brand {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--brand-700);
  --bs-btn-border-color: var(--brand-700);
  --bs-btn-hover-color: var(--ink);
  --bs-btn-hover-bg: var(--accent);
  --bs-btn-hover-border-color: var(--accent);
  background: var(--brand-700);
  border-color: var(--brand-700)
}

body.site-shell .btn-accent {
  --bs-btn-color: var(--on-accent, #fff);
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-color: var(--on-brand, #fff);
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent, #fff)
}

body.site-shell .btn-outline-brand {
  --bs-btn-color: var(--brand-700);
  --bs-btn-border-color: var(--brand-700);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--brand-700);
  --bs-btn-hover-border-color: var(--brand-700);
  border-width: 1px;
  color: var(--brand-700)
}

body.site-shell .btn:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 0 var(--ink);
  color: #ffffff;
}

body.site-shell .form-control,
body.site-shell .form-select {
  border-radius: 0;
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  padding: .72rem .8rem
}

body.site-shell .form-control:focus,
body.site-shell .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 13%, transparent)
}

/* Header and navigation */
body.site-shell .site-header {
  background: rgba(255, 254, 250, .94);
  border-bottom: 1px solid var(--ink);
  backdrop-filter: blur(14px);
  box-shadow: none
}

body.site-shell .site-header.scrolled {
  box-shadow: 0 5px 16px color-mix(in srgb, var(--ink) 9%, transparent)
}

body.site-shell .market-ribbon {
  background: var(--ink);
  color: var(--line);
  font-family: var(--font);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase
}

body.site-shell .market-ribbon-in {
  min-height: 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem
}

body.site-shell .ribbon-status {
  display: inline-flex;
  align-items: center;
  gap: .52rem
}

body.site-shell .ribbon-status i {
  width: 7px;
  height: 7px;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent)
}

body.site-shell .ribbon-note {
  color: #bfc9bf;
  font-weight: 500;
  letter-spacing: .04em
}

body.site-shell .navbar {
  min-height: 76px;
  padding: .55rem 0
}

body.site-shell .navbar-brand {
  gap: .65rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1
}

body.site-shell .brand-image {
  max-height: 48px;
  max-width: 220px;
  object-fit: contain
}

body.site-shell .brand-mark {
  width: 39px;
  height: 44px;
  border-radius: 0;
  background: var(--accent);
  color: #fff;
  margin: 0;
  box-shadow: inset 0 0 0 1px var(--ink)
}

body.site-shell .brand-mark svg {
  width: 23px;
  height: 23px
}

body.site-shell .brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0
}

body.site-shell .brand-overline {
  font-family: var(--font);
  font-size: .54rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap
}

body.site-shell .brand-name {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.045em;
  white-space: nowrap
}

body.site-shell .navbar-toggler {
  border-radius: 0 !important;
  padding: .45rem
}

.site-shell .navbar-toggler:focus {
  box-shadow: 0 0 0 2px var(--accent)
}

body.site-shell .main-nav {
  gap: .1rem
}

body.site-shell .main-nav .nav-link {
  color: var(--ink);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
  border-radius: 0;
  padding: .7rem .68rem
}

body.site-shell .main-nav .nav-link:hover,
body.site-shell .main-nav .nav-link.active {
  color: var(--brand);
  background: transparent
}

body.site-shell .main-nav .nav-link.active::after {
  left: .68rem;
  right: .68rem;
  bottom: .39rem;
  height: 1px;
  background: var(--brand)
}

body.site-shell .dropdown-menu,
body.site-shell .mega-menu {
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--surface);
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--ink) 12%, transparent)
}

body.site-shell .dropdown-item,
body.site-shell .mega-link {
  font-size: .86rem;
  font-weight: 700;
  color: var(--ink);
  border-radius: 0
}

body.site-shell .dropdown-item:hover,
body.site-shell .mega-link:hover {
  background: var(--accent-050);
  color: var(--brand-700)
}

body.site-shell .header-cta {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-left: .4rem
}

/* Homepage: a generous, paper-and-ink market briefing */
body.site-shell .hero {
  background: var(--ink);
  color: var(--surface)
}

body.site-shell .hero::before {
  content: "";
  position: absolute;
  width: min(58vw, 780px);
  height: min(58vw, 780px);
  right: -18vw;
  top: -38vw;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 72px color-mix(in srgb, var(--accent) 6%, transparent), 0 0 0 144px color-mix(in srgb, var(--accent) 3.5%, transparent)
}

body.site-shell .hero::after {
  background-image: linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .72
}

body.site-shell .discovery-hero .container {
  padding-top: 3rem !important;
  padding-bottom: 5.5rem !important
}

body.site-shell .hero .row {
  position: relative
}

body.site-shell .hero h1 {
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 5.55rem);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .94;
  max-width: 10.7ch
}

body.site-shell .hero .highlight {
  color: var(--accent-on-dark)
}

body.site-shell .hero p.lead {
  color: var(--surface);
  font-size: 1.14rem;
  line-height: 1.7;
  max-width: 50ch
}

body.site-shell .hero-index {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--accent-on-dark);
  font-family: var(--font);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase
}

body.site-shell .hero-index span:first-child {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  font-size: .62rem
}

body.site-shell .pill-badge {
  border-radius: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--surface);
  background: transparent;
  padding: .35rem .65rem;
  font-family: var(--font);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase
}

body.site-shell .trust-row {
  gap: .9rem 1.25rem;
  color: #c6d0c8;
  font-size: .8rem;
  font-weight: 600
}

body.site-shell .trust-row .ti {
  gap: .38rem
}

.site-shell .trust-row .ti span {
  color: var(--accent-on-dark);
  font-weight: 900
}

body.site-shell .hero-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 0;
  box-shadow: 12px 12px 0 color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--text);
  padding: 1.45rem
}

body.site-shell .hero-card::before {
  content: "Research snapshot";
  display: block;
  margin: -1.45rem -1.45rem 1.25rem;
  padding: .48rem .75rem;
  background: var(--accent);
  color: #fff;
  font-size: .63rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase
}

body.site-shell .hhb {
  padding: 1.45rem
}

.site-shell .hhb h5 {
  font-family: var(--display);
  font-size: 1.45rem
}

body.site-shell .hhb-row {
  border-color: var(--line);
  padding: .83rem 0
}

.site-shell .hhb-rank {
  border-radius: 0;
  background: var(--line);
  color: var(--brand-700);
  font-family: var(--display)
}

body.site-shell .hhb-rank.top {
  background: var(--brand-700);
  color: var(--accent-on-dark)
}

.site-shell .hhb-name {
  font-family: var(--display);
  font-size: 1.12rem
}

.site-shell .hhb-star {
  color: var(--gold)
}

body.site-shell .hhb-all {
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand-700);
  text-decoration: underline
}

body.site-shell .discovery-stat-wrap {
  position: relative;
  z-index: 4;
  margin-top: -3rem
}

body.site-shell .stat-strip {
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--accent);
  box-shadow: 9px 9px 0 color-mix(in srgb, var(--ink) 16%, transparent);
  margin-top: 0
}

body.site-shell .stat-strip .stat {
  padding: 1.4rem 1rem
}

.site-shell .stat-strip .num {
  font-family: var(--display);
  font-size: 2rem;
  color: var(--ink);
  letter-spacing: -.05em
}

.site-shell .stat-strip .lbl {
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text)
}

.site-shell .stat-strip .stat+.stat {
  border-color: color-mix(in srgb, var(--ink) 25%, transparent)
}

body.site-shell .feature-card {
  border-radius: 0;
  border: 1px solid var(--ink);
  padding: 1.55rem;
  background: var(--surface);
  box-shadow: 5px 5px 0 transparent
}

.site-shell .feature-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--accent);
  border-color: var(--ink)
}

body.site-shell .feature-ico {
  width: 40px;
  height: 40px;
  border-radius: 0;
  margin-bottom: 1.5rem;
  background: var(--accent);
  color: #fff
}

.site-shell .feature-ico svg {
  width: 21px;
  height: 21px
}

/* Shared editorial pages */
body.site-shell .article-hero {
  position: relative;
  overflow: hidden;
  background: var(--card-alt);
  color: var(--ink);
  padding: 3.3rem 0 3.05rem;
  border-top: 0;
  border-bottom: 1px solid var(--ink)
}

body.site-shell .article-hero::after {
  content: "";
  position: absolute;
  right: 5vw;
  bottom: -7.5rem;
  width: 18rem;
  height: 18rem;
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 30px color-mix(in srgb, var(--brand) 5%, transparent), 0 0 0 60px color-mix(in srgb, var(--brand) 3.5%, transparent)
}

body.site-shell .article-hero .container {
  position: relative;
  z-index: 1
}

body.site-shell .article-hero h1 {
  font-family: var(--display);
  color: var(--ink);
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.05em;
  max-width: 17ch
}

body.site-shell .ah-lede {
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 63ch
}

.site-shell .breadcrumb-nav {
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase
}

.site-shell .breadcrumb-nav a {
  color: var(--brand)
}

.site-shell .breadcrumb-nav li+li::before {
  color: #98a39c
}

.site-shell .breadcrumb-nav .bc-current {
  color: var(--text)
}

.site-shell .ah-meta {
  color: var(--text);
  font-size: .8rem
}

.site-shell .ah-avatar {
  border-radius: 0;
  background: var(--brand);
  color: var(--accent-on-dark)
}

.site-shell .ah-by a,
.site-shell .ah-by strong {
  color: var(--ink)
}

body.site-shell .prose {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.85
}

.site-shell .prose h2 {
  font-size: clamp(1.65rem, 3vw, 1.75rem);
  margin: 2.5rem 0 .85rem
}

.site-shell .prose h3 {
  font-size: 1.42rem;
  margin: 2rem 0 .7rem
}

.site-shell .prose a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent-on-dark);
  text-decoration-thickness: 2px
}

.site-shell .prose blockquote {
  border-left: 4px solid var(--accent);
  background: var(--card-alt);
  margin: 1.7rem 0;
  padding: 1.1rem 1.35rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.25rem
}

.site-shell .prose table {
  font-size: .9rem
}

.site-shell .prose th {
  background: var(--ink);
  color: var(--surface)
}

.site-shell .prose th,
.site-shell .prose td {
  border-color: var(--line);
  padding: .75rem
}

.site-shell .table-wrap {
  border: 1px solid var(--line);
  border-radius: 0
}

/* Content collections and data cards */
body.site-shell .post-card,
body.site-shell .ipo-card,
body.site-shell .metal-card {
  border-radius: 0;
  border: 1px solid var(--ink);
  background: var(--surface);
  box-shadow: none
}

body.site-shell .post-card:hover,
body.site-shell .ipo-card:hover,
body.site-shell .metal-card:hover {
  transform: translate(-3px, -3px);
  border-color: var(--ink);
  box-shadow: 7px 7px 0 var(--accent);
  color: var(--ink)
}

body.site-shell .post-thumb {
  border-radius: 0;
  background: var(--brand-700)
}

.site-shell .post-thumb.placeholder {
  background: var(--brand-700);
  font-family: var(--display);
  color: var(--accent-on-dark);
  font-size: 2.2rem
}

.site-shell .post-body {
  padding: 1.35rem
}

.site-shell .post-cat {
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .14em;
  color: var(--brand)
}

.site-shell .post-title {
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.1;
  margin: .55rem 0 .7rem
}

.site-shell .post-title a {
  color: var(--ink)
}

body.site-shell .ipo-home-grid {
  gap: 1.2rem
}

.site-shell .ipo-card {
  padding: 1.2rem
}

.site-shell .ipo-card-name {
  font-family: var(--display);
  font-size: 1.3rem
}

.site-shell .ipo-card-go {
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-700)
}

.site-shell .ipo-badge {
  border-radius: 0
}

.site-shell .ipo-badge.b-open {
  background: var(--accent-050);
  color: var(--brand-700)
}

body.site-shell .metal-card {
  padding: 1.35rem
}

.site-shell .metal-card:hover {
  box-shadow: 7px 7px 0 var(--accent)
}

.site-shell .hhr-head {
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase
}

.site-shell .hhr-badge {
  border-radius: 0;
  background: var(--brand-700) !important;
  color: var(--accent-on-dark) !important
}

.site-shell .hhr-v {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--ink)
}

.site-shell .metal-go {
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-700)
}

body.site-shell .calc-card {
  border-radius: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1rem
}

.site-shell .calc-card:hover {
  border-color: var(--ink);
  box-shadow: 5px 5px 0 var(--accent);
  color: var(--ink);
  transform: translate(-2px, -2px)
}

.site-shell .calc-card-ic {
  border-radius: 0;
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  font-size: .9rem
}

.site-shell .calc-card-t {
  font-family: var(--display);
  font-size: 1.06rem;
  color: var(--ink)
}

.site-shell .calc-card-go {
  color: var(--brand-700)
}

body.site-shell .brk-filter {
  justify-content: flex-start;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1rem
}

.site-shell .brk-filter-lbl {
  font-size: .67rem;
  color: var(--brand-700)
}

.site-shell .brk-filter a {
  border-radius: 0;
  background: var(--line);
  color: var(--ink);
  font-size: .75rem
}

.site-shell .brk-filter a.on {
  background: var(--ink);
  color: var(--accent-on-dark)
}

body.site-shell .brk-card {
  border-radius: 0;
  border: 1px solid var(--ink);
  background: var(--surface);
  padding: 1.25rem;
  gap: 1.25rem;
  box-shadow: none
}

.site-shell .brk-card:hover {
  border-color: var(--ink);
  box-shadow: 7px 7px 0 var(--accent)
}

.site-shell .brk-logo {
  border-radius: 0;
  background: var(--card-alt)
}

.site-shell .brk-mark {
  font-family: var(--display);
  color: var(--brand-700)
}

.site-shell .brk-name {
  font-family: var(--display);
  font-size: 1.65rem;
  color: var(--ink)
}

.site-shell .brk-type {
  border-radius: 0;
  background: var(--accent-050);
  color: var(--brand-700)
}

.site-shell .brk-seg.ok .ic {
  background: var(--brand)
}

.site-shell .brk-charges .v {
  font-family: var(--display);
  font-size: 1.1rem
}

.site-shell .brk-cta .btn {
  background: var(--brand-700);
  border-color: var(--brand-700)
}

/* Guides, sidebars, calculators and FAQs */
body.site-shell .toc,
body.site-shell .widget {
  border-radius: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: none;
  padding: 1.25rem
}

.site-shell .toc {
  border-top: 4px solid var(--brand)
}

.site-shell .toc h5,
.site-shell .widget h5 {
  font-family: var(--font);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .13em;
  color: var(--brand-700)
}

.site-shell .toc a {
  font-size: .87rem
}

.site-shell .toc a::before {
  color: var(--brand)
}

.site-shell .lead-widget {
  border-top: 4px solid var(--accent)
}

.site-shell .lead-tag {
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .55rem
}

.site-shell .lead-widget h5 {
  font-family: var(--display);
  font-size: 1.5rem;
  text-transform: none;
  letter-spacing: -.03em;
  color: var(--ink)
}

body.site-shell .calc-card-tool {
  padding: 1.5rem;
  border-top: 4px solid var(--brand)
}

.site-shell .calc-result {
  border-radius: 0;
  background: var(--ink);
  box-shadow: 7px 7px 0 var(--accent)
}

.site-shell .calc-primary b {
  font-family: var(--display);
  color: var(--accent-on-dark)
}

.site-shell .calc-bar .a {
  background: var(--accent)
}

.site-shell .calc-bar .b {
  background: var(--surface)
}

.site-shell .calc-field .cf-in,
.site-shell .calc-field select {
  border-radius: 0;
  background: var(--surface)
}

.site-shell .calc-field .cf-in:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent)
}

.site-shell .cf-pre,
.site-shell .cf-suf {
  border-radius: 0;
  background: var(--line);
  color: var(--brand-700)
}

.site-shell .calc-formula {
  border-radius: 0;
  background: var(--card-alt);
  border-left-color: var(--accent)
}

body.site-shell .faq-section {
  background: var(--card-alt);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink)
}

.site-shell .faq-section .section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.9rem)
}

.site-shell .faq-accordion .accordion-item {
  border-radius: 0 !important;
  border-color: var(--line);
  background: var(--surface)
}

.site-shell .faq-accordion .accordion-button {
  border-radius: 0 !important;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700
}

.site-shell .faq-accordion .accordion-button:not(.collapsed) {
  background: var(--accent-050);
  color: var(--ink);
  box-shadow: inset 4px 0 0 var(--brand)
}

.site-shell .faq-accordion .accordion-body {
  color: var(--text);
  font-size: .98rem
}

body.site-shell .author-box {
  border-radius: 0;
  background: var(--line);
  border: 1px solid var(--line)
}

.site-shell .author-box .ab-av {
  border-radius: 0
}

.site-shell .author-box .ab-name {
  font-family: var(--display);
  font-size: 1.35rem
}

.site-shell .author-box .ab-role {
  color: var(--brand)
}

body.site-shell .hol-chip-lg {
  border-radius: 0;
  background: var(--surface);
  border-color: var(--line);
  font-size: .86rem;
  font-weight: 700
}

.site-shell .hol-chip-lg:hover {
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--accent);
  color: var(--brand-700)
}

body.site-shell .ipo-subnav,
body.site-shell .br-subnav {
  background: rgba(255, 254, 250, .96);
  border-color: var(--ink)
}

.site-shell .ipo-subnav a.on,
.site-shell .br-subnav a.on {
  color: var(--brand-700);
  border-bottom-color: var(--accent)
}

body.site-shell .cta-band {
  border-radius: 0;
  background: var(--ink);
  padding: 2.4rem;
  box-shadow: 9px 9px 0 var(--accent)
}

.site-shell .cta-band h3 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  color: var(--surface);
  max-width: 19ch
}

.site-shell .cta-band p {
  color: var(--surface) !important
}

.site-shell .cta-band .eyebrow {
  color: var(--accent-on-dark)
}

/* Footer */
body.site-shell .site-footer {
  background: var(--ink);
  color: #c8d0c9;
  padding-top: 0
}

.site-shell .footer-rule {
  height: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--accent);
  overflow: hidden
}

.site-shell .footer-rule span {
  display: block;
  width: 25%;
  height: 8px;
  background: var(--brand)
}

body.site-shell .footer-brief {
  display: grid;
  grid-template-columns: .75fr 1.55fr auto;
  align-items: end;
  gap: 2rem;
  padding: 4.5rem 0 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, .18)
}

.site-shell .footer-brief-kicker {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent-on-dark);
  padding-bottom: .5rem
}

.site-shell .footer-brief-kicker span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid color-mix(in srgb, var(--accent) 65%, transparent);
  font-size: .61rem
}

.site-shell .footer-brief h2 {
  max-width: 13ch;
  margin: 0;
  color: var(--surface);
  font-family: var(--display);
  font-size: clamp(2rem, 4.2vw, 4rem);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .94
}

.site-shell .footer-brief p {
  max-width: 48ch;
  margin: 1rem 0 0;
  color: #b8c3ba;
  font-size: .95rem;
  line-height: 1.65
}

.site-shell .footer-brief-link {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  justify-content: space-between;
  min-width: 13.5rem;
  border: 1px solid var(--accent);
  padding: .9rem 1rem;
  color: var(--accent-on-dark) !important;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none
}

.site-shell .footer-brief-link span:last-child {
  font-size: 1.1rem
}

.site-shell .footer-brief-link:hover {
  background: var(--accent);
  color: #fff !important
}

body.site-shell .footer-main {
  padding: 4rem 0
}

.site-shell .footer-intro {
  max-width: 27rem
}

.site-shell .footer-image {
  max-height: 52px;
  max-width: 230px;
  object-fit: contain
}

.site-shell .site-footer .brand-mark {
  background: var(--accent);
  color: #fff
}

.site-shell .site-footer .footer-brand {
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: -.05em
}

.site-shell .footer-label {
  font-family: var(--display);
  font-size: 1.28rem;
  line-height: 1.2;
  color: var(--surface);
  margin: 1.3rem 0 0
}

.site-shell .footer-about {
  color: #bcc8be
}

.site-shell .site-footer h6 {
  font-family: var(--font);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .13em;
  color: var(--accent-on-dark)
}

.site-shell .site-footer a {
  color: var(--surface)
}

.site-shell .site-footer a:hover {
  color: var(--accent-on-dark)
}

.site-shell .footer-legal {
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding: 1.2rem 0 1.5rem
}

.site-shell .footer-disclaimer {
  margin: 0;
  padding-bottom: 1.2rem;
  color: #9fac9f;
  font-size: .73rem;
  line-height: 1.65
}

.site-shell .footer- disclaimer strong {
  color: var(--surface);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase
}

.site-shell .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  color: #93a197;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em
}

.site-shell .footer-bottom-mark {
  color: var(--accent-on-dark);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase
}

.site-shell .social-ico {
  border-radius: 0
}

body.site-shell .back-to-top {
  border-radius: 0;
  background: var(--accent);
  color: #fff;
  box-shadow: 4px 4px 0 var(--ink)
}

@media (max-width:991px) {
  body.site-shell .navbar-collapse {
    margin-top: .8rem;
    padding-top: .7rem;
    border-top: 1px solid var(--line)
  }

  body.site-shell .main-nav .nav-link {
    padding: .7rem 0
  }

  body.site-shell .header-cta {
    margin: .6rem 0 0
  }

  body.site-shell .article-hero h1 {
    max-width: 22ch
  }
}

@media (max-width:767px) {
  body.site-shell .section {
    padding: 62px 0
  }

  body.site-shell .section-sm {
    padding: 46px 0
  }

  body.site-shell .market-ribbon-in {
    min-height: 28px
  }

  .site-shell .navbar {
    min-height: 66px
  }

  .site-shell .brand-overline {
    display: none
  }

  .site-shell .brand-name {
    font-size: 1.18rem
  }

  body.site-shell .discovery-hero .container {
    padding-top: 2rem !important;
    padding-bottom: 4.75rem !important
  }

  .site-shell .hero h1 {
    font-size: clamp(2.7rem, 13vw, 4.15rem)
  }

  .site-shell .hero::before {
    width: 22rem;
    height: 22rem;
    right: -12rem;
    top: -8rem
  }

  body.site-shell .stat-strip .stat:nth-child(odd) {
    border-right: 1px solid color-mix(in srgb, var(--ink) 25%, transparent)
  }

  body.site-shell .stat-strip .stat:nth-child(n+3) {
    border-top: 1px solid color-mix(in srgb, var(--ink) 25%, transparent)
  }

  body.site-shell .stat-strip .stat+.stat {
    border-left: 0
  }

  body.site-shell .article-hero {
    padding: 2.25rem 0
  }

  .site-shell .article-hero h1 {
    font-size: clamp(2.15rem, 10vw, 3.2rem)
  }

  .site-shell .article-hero::after {
    display: none
  }

  body.site-shell .brk-card {
    align-items: flex-start;
    flex-wrap: wrap
  }

  .site-shell .brk-logo {
    flex-basis: 82px;
    width: 82px;
    height: 70px
  }

  .site-shell .brk-main {
    flex-basis: calc(100% - 98px)
  }

  .site-shell .brk-charges {
    grid-template-columns: 1fr 1fr;
    gap: .7rem
  }

  .site-shell .brk-cta {
    width: 100%
  }

  .site-shell .brk-cta .btn {
    width: 100%
  }

  body.site-shell .cta-band {
    padding: 1.6rem;
    box-shadow: 6px 6px 0 var(--accent)
  }

  .site-shell .footer-brief {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 3.1rem 0
  }

  .site-shell .footer-brief h2 {
    max-width: 15ch
  }

  .site-shell .footer-brief-link {
    width: 100%;
    max-width: 24rem
  }

  .site-shell .footer-main {
    padding: 2.6rem 0
  }

  .site-shell .footer-disclaimer {
    grid-template-columns: 1fr;
    gap: .35rem
  }

  .site-shell .footer-bottom {
    align-items: flex-start;
    flex-direction: column
  }
}

/* Layout safety: no component may create a horizontal page wider than the viewport. */
html,
body.site-shell {
  width: 100%;
  max-width: 100%;
  overflow-x: clip
}

body.site-shell>.site-header,
body.site-shell>main,
body.site-shell>.site-footer {
  width: 100%;
  max-width: 100%;
  min-width: 0
}

body.site-shell main,
body.site-shell main>*,
body.site-shell .container,
body.site-shell .row>* {
  min-width: 0
}

body.site-shell .site-footer {
  overflow-x: clip
}

body.site-shell .footer-brief,
body.site-shell .footer-main,
body.site-shell .footer-legal {
  min-width: 0
}

body.site-shell .footer-brief-copy,
body.site-shell .footer-brief-link,
body.site-shell .footer-intro,
body.site-shell .footer-cols,
body.site-shell .footer-group {
  min-width: 0
}

@media (max-width:575px) {
  body.site-shell .container {
    padding-left: 1rem;
    padding-right: 1rem
  }

  body.site-shell .hero .btn,
  body.site-shell .cta-band .btn {
    width: 100%;
    justify-content: center
  }

  body.site-shell .trust-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: .48rem
  }

  body.site-shell .hero-card {
    margin-top: .35rem;
    padding: 1.1rem
  }

  body.site-shell .hero-card::before {
    margin: -1.1rem -1.1rem 1rem
  }

  body.site-shell .hhb-row {
    gap: .65rem
  }

  body.site-shell .hhb-name {
    font-size: 1rem
  }

  body.site-shell .footer-brief-link {
    max-width: none
  }

  body.site-shell .footer-cols {
    column-count: 1
  }
}

/* ---- Home hero: top-5 broker ranking card (partials/home_hero_brokers) --- */
.hhb {
  padding: 22px 22px 18px
}

.hhb-list {
  margin-top: 6px
}

.hhb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  text-decoration: none
}

.hhb-row:first-child {
  border-top: 0
}

.hhb-rank {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: var(--font);
  font-weight: 800;
  font-size: .98rem;
  background: var(--brand-050);
  color: var(--brand)
}

.hhb-rank.top {
  background: linear-gradient(135deg, var(--brand), var(--brand));
  color: #fff
}

.hhb-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px
}

.hhb-name {
  font-weight: 800;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.15
}

.hhb-row:hover .hhb-name {
  color: var(--brand)
}

.hhb-tag {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 600
}

.hhb-rate {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font);
  font-weight: 800;
  color: var(--ink);
  font-size: .95rem
}

.hhb-star {
  color: #e8a11a;
  font-size: .9rem;
  line-height: 1
}

.hhb-go {
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 700;
  transition: transform .15s ease, color .15s ease
}

.hhb-row:hover .hhb-go {
  color: var(--brand);
  transform: translateX(3px)
}

.hhb-all {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  color: var(--brand);
  font-size: .9rem;
  text-decoration: none
}

.hhb-all:hover {
  color: var(--brand)
}

/* ---- Home metals band: gold / silver / platinum cards (home_metals) ------ */
.metal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px
}

.metal-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 16px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease
}

.metal-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: transparent
}

.metal-card .hhr-rows {
  margin-top: 4px
}

.metal-go {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  color: var(--brand);
  font-size: .86rem
}

.hhr-badge.platinum {
  background: linear-gradient(135deg, var(--brand), var(--brand-700))
}

@media(max-width:860px) {
  .metal-grid {
    grid-template-columns: 1fr;
    gap: 14px
  }
}

/* Lead form ribbon: keep the text legible above the widget border. */
body.site-shell .lead-widget {
  position: relative;
  overflow: visible;
  padding-top: 2rem
}

body.site-shell .lead-widget .lead-tag {
  position: absolute;
  z-index: 2;
  top: -14px;
  left: 14px;
  margin: 0;
  padding: .46rem .72rem;
  border-radius: 0;
  background: var(--brand-700);
  color: var(--surface);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .105em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap
}

body.site-shell .lead-widget .lead-tag::selection {
  background: var(--accent);
  color: #fff
}

/* =====================================================================
   Portal home
   A compact research dashboard that surfaces the site's dynamic broker, IPO,
   rate and calculator data without relying on a copied third-party layout.
   ===================================================================== */
.portal-home {
  --portal-ink: var(--ink);
  --portal-blue: var(--brand-700);
  --portal-sky: var(--brand-050);
  --portal-line: var(--line);
  --portal-paper: var(--card);
  --portal-green: var(--brand-700);
  --portal-yellow: var(--accent);
  background: var(--card-alt);
  color: var(--text);
  padding-bottom: 0
}

.portal-home .container {
  max-width: 1240px
}

.portal-home .portal-kicker {
  display: inline-block;
  margin: 0 0 .65rem;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--portal-green)
}

.portal-home h1,
.portal-home h2,
.portal-home h3 {
  font-family: var(--font);
  letter-spacing: -.03em
}

.portal-home h2 {
  color: var(--portal-ink);
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  font-weight: 800;
  line-height: 1.08;
  margin: 0
}

/* Opening panel */
.portal-home .portal-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--brand-700) 0%, var(--brand-700) 100%);
  border-bottom: 5px solid var(--portal-yellow);
  color: #fff;
  padding: 2.1rem 0 2.7rem
}

.portal-home .portal-hero::before {
  content: "";
  position: absolute;
  right: 8%;
  bottom: -8rem;
  width: 22rem;
  height: 22rem;
  border: 1px solid rgba(217, 231, 93, .54);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(217, 231, 93, .06), 0 0 0 68px rgba(217, 231, 93, .03)
}

.portal-home .portal-hero .container {
  position: relative;
  z-index: 1
}

.portal-home .portal-crumb {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #b9d2dc;
  margin-bottom: 1.9rem
}

.portal-home .portal-crumb span {
  margin: 0 .5rem;
  color: var(--portal-yellow)
}

.portal-home .portal-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  align-items: stretch;
  gap: 3.5rem
}

.portal-home .portal-hero-copy {
  padding: 1.1rem 0 1.4rem;
  min-width: 0
}

.portal-home .portal-hero .portal-kicker {
  color: var(--portal-yellow)
}

.portal-home .portal-hero h1 {
  max-width: 15ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2.35rem, 4.3vw, 4rem);
  font-weight: 800;
  line-height: 1.02
}

.portal-home .portal-hero h1 .highlight {
  color: var(--portal-yellow)
}

.portal-home .portal-hero-copy>p {
  max-width: 58ch;
  margin: 1.2rem 0 0;
  color: var(--surface);
  font-size: 1.06rem;
  line-height: 1.75
}

.portal-home .portal-hero-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 1.65rem
}

.portal-home .portal-hero .btn {
  border-radius: 4px;
  background: var(--portal-yellow);
  border-color: var(--portal-yellow);
  color: #fff;
  box-shadow: none;
}

.portal-home .portal-hero .btn:hover {
  background: var(--accent-050);
  border-color: var(--line);
  box-shadow: none;
  transform: translateY(-1px);
}

.portal-home .portal-text-link {
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
  text-decoration: none
}

.portal-home .portal-text-link:hover {
  color: var(--portal-yellow)
}

.portal-home .portal-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.25rem;
  margin-top: 2rem;
  color: var(--surface);
  font-size: .82rem
}

.portal-home .portal-trust-list span {
  display: inline-flex;
  align-items: center;
  gap: .4rem
}

.portal-home .portal-trust-list i {
  color: var(--portal-yellow);
  font-style: normal;
  font-weight: 900
}

.portal-home .portal-launchpad {
  background: #fff;
  border-radius: 5px;
  overflow: hidden
}

.portal-home .portal-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: var(--portal-yellow);
  border: 1px soild var(--portal-yellow);
  padding: .76rem 1rem;
  color: #fff;
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase
}

.portal-home .portal-panel-date {
  font-weight: 700;
  letter-spacing: .04em
}

.portal-home .portal-launchpad-list {
  padding: .35rem 1rem;
  border-right: 1px solid var(--portal-line);
  border-left: 1px solid var(--portal-line);
}

.portal-home .portal-launchpad-list a {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .7rem;
  padding: .92rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--portal-ink);
  text-decoration: none
}

.portal-home .portal-launchpad-list a:last-child {
  border-bottom: 0
}

.portal-home .portal-launchpad-list a:hover strong {
  color: var(--portal-green)
}

.portal-home .portal-launchpad-list b {
  font-size: .72rem;
  color: var(--portal-green)
}

.portal-home .portal-launchpad-list strong,
.portal-home .portal-launchpad-list small {
  display: block
}

.portal-home .portal-launchpad-list strong {
  font-size: .95rem;
  font-weight: 800
}

.portal-home .portal-launchpad-list small {
  margin-top: .15rem;
  color: var(--text);
  font-size: .73rem;
  line-height: 1.35
}

.portal-home .portal-launchpad-list i {
  color: var(--portal-green);
  font-size: 1rem;
  font-style: normal
}

.portal-home .portal-panel-foot {
  padding: .73rem 1rem;
  background: var(--card);
  color: var(--text);
  font-size: .72rem;
  line-height: 1.45;
  border-left: 1px solid var(--portal-line);
  border-right: 1px solid var(--portal-line);
  border-bottom: 1px solid var(--portal-line);
}

/* Page framework */
.portal-home .portal-home-main {
  padding-top: 0
}

.portal-home .portal-section {
  padding: 3.3rem 0;
  border-bottom: 1px solid var(--portal-line)
}

.portal-home .portal-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.55rem
}

.portal-home .portal-section-head-compact {
  margin-bottom: 1.15rem
}

.portal-home .portal-section-head .portal-kicker {
  margin-bottom: .45rem
}

.portal-home .portal-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  flex: 0 0 auto;
  color: var(--portal-green);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .075em;
  text-transform: uppercase;
  text-decoration: none
}

.portal-home .portal-arrow-link:hover {
  color: var(--portal-blue)
}

.portal-home .portal-arrow-link span {
  font-size: 1.2rem;
  line-height: .8
}

.portal-home .portal-empty {
  border: 1px dashed var(--line-strong);
  padding: 1.3rem;
  background: var(--card);
  color: var(--text);
  font-size: .93rem
}

/* Data strip and directory */
.portal-home .portal-signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--portal-line);
  border-top: 0;
  box-shadow: 0 5px 13px rgba(20, 45, 44, .06)
}

.portal-home .portal-signal-strip a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: .05rem 1rem;
  min-width: 0;
  padding: 1rem 1.2rem;
  border-right: 1px solid var(--portal-line);
  color: var(--portal-ink);
  text-decoration: none
}

.portal-home .portal-signal-strip a:last-child {
  border-right: 0
}

.portal-home .portal-signal-strip a:hover {
  background: var(--portal-sky)
}

.portal-home .portal-signal-strip span {
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .095em;
  text-transform: uppercase;
  color: var(--text)
}

.portal-home .portal-signal-strip b {
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
  color: var(--portal-blue)
}

.portal-home .portal-signal-strip i {
  grid-column: 1/-1;
  color: var(--text);
  font-size: .73rem;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.portal-home .portal-directory {
  padding-top: 3.8rem
}

.portal-home .portal-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--portal-line);
  border-left: 1px solid var(--portal-line)
}

.portal-home .portal-directory-item {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .7rem;
  min-width: 0;
  padding: 1.1rem;
  border-right: 1px solid var(--portal-line);
  border-bottom: 1px solid var(--portal-line);
  background: var(--portal-paper);
  color: var(--portal-ink);
  text-decoration: none
}

.portal-home .portal-directory-item:hover {
  position: relative;
  background: #fff;
  box-shadow: inset 4px 0 0 var(--portal-yellow)
}

.portal-home .portal-directory-index {
  align-self: start;
  color: var(--portal-green);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .06em
}

.portal-home .portal-directory-item strong,
.portal-home .portal-directory-item small {
  display: block
}

.portal-home .portal-directory-item strong {
  font-size: 1rem;
  font-weight: 800
}

.portal-home .portal-directory-item small {
  margin-top: .22rem;
  color: var(--text);
  font-size: .75rem;
  line-height: 1.4
}

.portal-home .portal-directory-item i {
  font-size: 1.1rem;
  font-style: normal;
  color: var(--portal-green)
}

/* Broker cards */
.portal-home .portal-broker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem
}

.portal-home .portal-broker-card {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  min-width: 0;
  padding: 1.1rem;
  background: #fff;
  border: 1px solid var(--portal-line);
  border-top: 4px solid var(--portal-blue);
  transition: transform .15s ease, box-shadow .15s ease
}

.portal-home .portal-broker-card:hover {
  z-index: 1;
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--ink) 12%, transparent)
}

.portal-home .portal-broker-rank {
  position: absolute;
  right: .6rem;
  top: -.1rem;
  padding: .22rem .38rem;
  background: var(--portal-blue);
  color: var(--surface);
  font-size: .63rem;
  font-weight: 900;
  letter-spacing: .04em
}

.portal-home .portal-broker-brand {
  display: grid;
  place-items: center;
  width: 64px;
  height: 56px;
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden
}

.portal-home .portal-broker-brand img {
  max-width: 52px;
  max-height: 40px;
  object-fit: contain
}

.portal-home .portal-broker-brand>span {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--portal-blue)
}

.portal-home .portal-broker-copy {
  min-width: 0;
  padding-right: 1.2rem
}

.portal-home .portal-broker-copy a {
  display: block;
  color: var(--portal-ink);
  font-size: 1.05rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none
}

.portal-home .portal-broker-copy a:hover {
  color: var(--portal-green)
}

.portal-home .portal-broker-copy span {
  display: block;
  margin-top: .18rem;
  color: var(--text);
  font-size: .72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.portal-home .portal-broker-score {
  text-align: right;
  white-space: nowrap
}

.portal-home .portal-broker-score b {
  display: block;
  color: var(--portal-green);
  font-size: 1.15rem;
  line-height: 1
}

.portal-home .portal-broker-score small {
  display: block;
  margin-top: .2rem;
  color: var(--text);
  font-size: .62rem
}

.portal-home .portal-broker-card p {
  grid-column: 1/-1;
  min-height: 2.7em;
  margin: .15rem 0 0;
  color: var(--text);
  font-size: .8rem;
  line-height: 1.5
}

.portal-home .portal-card-link {
  grid-column: 1/-1;
  display: inline-flex;
  gap: .4rem;
  align-items: center;
  color: var(--portal-green);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .065em;
  text-transform: uppercase;
  text-decoration: none
}

.portal-home .portal-card-link:hover {
  color: var(--portal-blue)
}

/* IPO data board */
.portal-home .portal-market-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(260px, .8fr);
  gap: 1.5rem;
  align-items: start
}

.portal-home .portal-market-grid .portal-section-head h2 {
  font-size: 1.75rem
}

.portal-home .portal-ipo-board {
  min-width: 0;
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--portal-line);
  border-top: 4px solid var(--portal-green)
}

.portal-home .portal-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line)
}

.portal-home .portal-ipo-table {
  width: 100%;
  min-width: 680px;
  margin: 0;
  border-collapse: collapse;
  font-size: .82rem
}

.portal-home .portal-ipo-table th {
  padding: .65rem .75rem;
  background: var(--card);
  color: var(--muted);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .085em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap
}

.portal-home .portal-ipo-table td {
  padding: .83rem .75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap
}

.portal-home .portal-ipo-table td:first-child {
  white-space: normal;
  min-width: 170px
}

.portal-home .portal-ipo-table td:first-child a {
  display: block;
  color: var(--portal-ink);
  font-size: .92rem;
  font-weight: 800;
  text-decoration: none
}

.portal-home .portal-ipo-table td:first-child a:hover {
  color: var(--portal-green)
}

.portal-home .portal-ipo-table td:first-child small {
  display: block;
  margin-top: .16rem;
  color: var(--muted2);
  font-size: .68rem
}

.portal-home .portal-market-tag {
  display: inline-block;
  padding: .18rem .4rem;
  background: var(--card-alt);
  color: var(--portal-green);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase
}

.portal-home .portal-gmp {
  font-weight: 900;
  color: var(--portal-green)
}

.portal-home .portal-table-go {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  background: var(--portal-sky);
  color: var(--portal-blue);
  font-size: 1.1rem;
  font-weight: 900;
  text-decoration: none
}

.portal-home .portal-table-go:hover {
  background: var(--portal-yellow);
  color: var(--portal-ink)
}

.portal-home .portal-side-panel {
  background: #fff;
  border: var(--portal-line);
  border-top: 4px solid var(--portal-green);
  color: var(--portal-green); 
}

.portal-home .portal-side-panel-head {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.05rem .85rem;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase
}

.portal-home .portal-side-panel-head span:last-child {
  color: var(--portal-yellow)
}

.portal-home .portal-side-panel>a {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  padding: .8rem 1.05rem;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
  color: var(--ink);
  text-decoration: none
}

.portal-home .portal-side-panel>a:hover {
  background: rgba(255, 255, 255, .1);
  color: var(--portal-yellow)
}

.portal-home .portal-side-panel b {
  color: var(--portal-yellow);
  font-size: .65rem
}

.portal-home .portal-side-panel>a span {
  font-size: .86rem;
  font-weight: 700
}

.portal-home .portal-side-panel i {
  font-style: normal;
  font-size: 1rem
}

/* Rates and tools */
.portal-home .portal-rates>.section {
  padding: 0;
  background: transparent !important
}

.portal-home .portal-rates>.section>.container {
  max-width: none;
  padding: 0
}

.portal-home .portal-rates .metal-grid {
  gap: 1rem
}

.portal-home .portal-rates .metal-card {
  border: 1px solid var(--portal-line);
  border-top: 4px solid var(--portal-blue);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  padding: 1.2rem
}

.portal-home .portal-rates .metal-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 0 7px 16px color-mix(in srgb, var(--ink) 10%, transparent)
}

.portal-home .portal-rates .hhr-head {
  font-size: .7rem;
  color: var(--text)
}

.portal-home .portal-rates .hhr-badge {
  border-radius: 3px;
  background: var(--portal-blue) !important;
  color: #fff !important
}

.portal-home .portal-rates .hhr-row {
  padding: .5rem 0;
  border-color: var(--line)
}

.portal-home .portal-rates .hhr-v {
  font-family: var(--font);
  font-size: 1.15rem
}

.portal-home .portal-rates .metal-go {
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--portal-green)
}

.portal-home .portal-freshness {
  padding: .35rem .55rem;
  background: var(--card-alt);
  color: var(--portal-green);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .065em;
  text-transform: uppercase
}

.portal-home .portal-tools-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr);
  gap: 1.5rem
}

.portal-home .portal-tools {
  min-width: 0
}

.portal-home .portal-tools .portal-section-head {
  margin-bottom: 1.05rem
}

.portal-home .portal-tools .portal-section-head h2 {
  font-size: 1.75rem
}

.portal-home .portal-calculator-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--portal-line);
  border-left: 1px solid var(--portal-line)
}

.portal-home .portal-calculator-list>a {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .7rem;
  min-width: 0;
  padding: 1rem;
  border-right: 1px solid var(--portal-line);
  border-bottom: 1px solid var(--portal-line);
  background: #fff;
  color: var(--portal-ink);
  text-decoration: none
}

.portal-home .portal-calculator-list>a:hover {
  background: var(--portal-sky)
}

.portal-home .portal-calculator-list b {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  background: var(--portal-yellow);
  color: #fff;
  font-size: .65rem;
}

.portal-home .portal-calculator-list strong,
.portal-home .portal-calculator-list small {
  display: block
}

.portal-home .portal-calculator-list strong {
  font-size: .88rem;
  font-weight: 800
}

.portal-home .portal-calculator-list small {
  margin-top: .15rem;
  color: var(--text);
  font-size: .68rem;
  line-height: 1.35
}

.portal-home .portal-calculator-list i {
  color: var(--portal-green);
  font-size: 1rem;
  font-style: normal
}

.portal-home .portal-calendar {
  padding: 1.45rem;
  background: var(--card-alt);
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--portal-blue)
}

.portal-home .portal-calendar h2 {
  font-size: 1.65rem
}

.portal-home .portal-calendar p {
  margin: .7rem 0 1rem;
  color: var(--text);
  font-size: .87rem;
  line-height: 1.65
}

.portal-home .portal-calendar-links a {
  display: flex;
  justify-content: space-between;
  gap: .7rem;
  padding: .58rem 0;
  border-top: 1px solid rgba(17, 60, 89, .19);
  color: var(--portal-blue);
  font-size: .8rem;
  font-weight: 800;
  text-decoration: none
}

.portal-home .portal-calendar-links a:hover {
  color: var(--portal-green)
}

/* Insight and introduction blocks */
.portal-home .portal-insights .post-card {
  border-radius: 0;
  border-color: var(--portal-line);
  box-shadow: none
}

.portal-home .portal-insights .post-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--ink) 10%, transparent)
}

.portal-home .portal-insights .post-thumb {
  border-radius: 0;
  background: var(--portal-blue)
}

.portal-home .portal-insights .post-title {
  font-family: var(--font);
  font-size: 1.15rem;
  letter-spacing: -.02em
}

.portal-home .portal-insights .post-cat {
  color: var(--portal-green)
}

.portal-home .portal-introduction {
  padding-bottom: 3.7rem
}

.portal-home .portal-introduction .prose {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--portal-line);
  font-size: 1rem;
  line-height: 1.8
}

.portal-home .portal-introduction .prose h2 {
  font-family: var(--font);
  font-size: 1.55rem
}

.portal-home .faq-section {
  margin: 0;
  background: var(--card-alt);
  border-top: 1px solid var(--line-strong);
  border-bottom: 0
}

.portal-home .faq-accordion .accordion-item {
  border-radius: 0 !important;
  box-shadow: none
}

.portal-home .faq-accordion .accordion-button {
  font-family: var(--font);
  font-size: 1rem
}

.portal-home .faq-accordion .accordion-button:not(.collapsed) {
  background: var(--card);
  box-shadow: inset 4px 0 0 var(--portal-yellow);
  color: var(--portal-ink)
}

@media(max-width:991px) {
  .portal-home .portal-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem
  }

  .portal-home .portal-hero-copy {
    padding-bottom: 0
  }

  .portal-home .portal-launchpad {
    max-width: 640px
  }

  .portal-home .portal-market-grid,
  .portal-home .portal-tools-grid {
    grid-template-columns: 1fr
  }

  .portal-home .portal-side-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr)
  }

  .portal-home .portal-side-panel-head {
    grid-column: 1/-1
  }

  .portal-home .portal-side-panel>a:nth-last-child(1):nth-child(odd) {
    grid-column: 1/-1
  }
}

@media(max-width:767px) {
  .portal-home .portal-hero {
    padding: 1.45rem 0 2rem
  }

  .portal-home .portal-crumb {
    margin-bottom: 1.2rem
  }

  .portal-home .portal-hero h1 {
    font-size: clamp(2rem, 10vw, 3rem)
  }

  .portal-home .portal-hero-copy>p {
    font-size: .98rem
  }

  .portal-home .portal-signal-strip {
    grid-template-columns: repeat(2, 1fr)
  }

  .portal-home .portal-signal-strip a:nth-child(2) {
    border-right: 0
  }

  .portal-home .portal-signal-strip a:nth-child(n+3) {
    border-top: 1px solid var(--portal-line)
  }

  .portal-home .portal-directory-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .portal-home .portal-broker-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .portal-home .portal-section {
    padding: 2.4rem 0
  }

  .portal-home .portal-section-head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 1.2rem
  }

  .portal-home .portal-side-panel {
    grid-template-columns: 1fr
  }

  .portal-home .portal-side-panel>a:nth-last-child(1):nth-child(odd) {
    grid-column: auto
  }

  .portal-home .portal-calendar {
    margin-top: .2rem
  }
}

@media(max-width:575px) {
  .portal-home .portal-hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: .8rem
  }

  .portal-home .portal-hero .btn {
    width: 100%;
    justify-content: center
  }

  .portal-home .portal-text-link {
    padding: .55rem 0
  }

  .portal-home .portal-trust-list {
    display: grid;
    gap: .45rem;
    margin-top: 1.35rem
  }

  .portal-home .portal-launchpad-list {
    padding-left: .85rem;
    padding-right: .85rem
  }

  .portal-home .portal-directory-grid {
    grid-template-columns: 1fr
  }

  .portal-home .portal-broker-grid {
    grid-template-columns: 1fr
  }

  .portal-home .portal-calculator-list {
    grid-template-columns: 1fr
  }

  .portal-home .portal-insights .row {
    --bs-gutter-y: 1rem
  }

  .portal-home .portal-freshness {
    display: none
  }

  .portal-home .portal-section-head h2 {
    font-size: 1.55rem
  }

  .portal-home .portal-signal-strip a {
    padding: .85rem .9rem
  }

  .portal-home .portal-signal-strip b {
    font-size: 1.35rem
  }

  .portal-home .portal-ipo-board {
    padding: 1rem
  }

  .portal-home .portal-table-wrap {
    margin-right: -1rem
  }

  .portal-home .portal-ipo-table {
    font-size: .78rem
  }

  .portal-home .portal-home-main {
    padding-left: 0;
    padding-right: 0
  }

  .portal-home .portal-home-main>.portal-section,
  .portal-home .portal-home-main>.portal-signal-strip {
    margin-left: 1rem;
    margin-right: 1rem
  }

  .portal-home .portal-signal-strip {
    width: auto
  }

  .portal-home .portal-section-head {
    gap: .7rem
  }
}

/* Keep the last legacy homepage helpers aligned with the Market Desk system. */
body.site-shell .hhb {
  padding: 1.45rem
}

body.site-shell .hhb-row {
  border-color: var(--line);
  padding: .83rem 0
}

body.site-shell .hhb-rank {
  border-radius: 0;
  background: var(--line);
  color: var(--brand-700);
  font-family: var(--display)
}

body.site-shell .hhb-rank.top {
  background: var(--brand-700);
  color: var(--accent-on-dark)
}

body.site-shell .hhb-name {
  font-family: var(--display);
  font-size: 1.12rem
}

body.site-shell .hhb-star {
  color: var(--gold)
}

body.site-shell .hhb-all {
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand-700);
  text-decoration: underline
}

body.site-shell .metal-card {
  border-radius: 0;
  border-color: var(--ink);
  background: var(--surface);
  padding: 1.35rem;
  box-shadow: none
}

body.site-shell .metal-card:hover {
  transform: translate(-3px, -3px);
  border-color: var(--ink);
  box-shadow: 7px 7px 0 var(--accent)
}

/* Dense public utilities, rate dashboards and contact/error routes. */
body.site-shell .article-hero p[style] {
  color: var(--text) !important
}

body.site-shell .ipo-stat-strip .s {
  border-radius: 0;
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  border-color: color-mix(in srgb, var(--ink) 20%, transparent)
}

body.site-shell .ipo-stat-strip .s b {
  font-family: var(--display);
  color: var(--ink)
}

body.site-shell .ipo-stat-strip .s span {
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text)
}

body.site-shell .ipo-boardbar {
  border-radius: 0;
  border-color: var(--ink);
  background: var(--surface)
}

body.site-shell .ipo-boardbar a,
body.site-shell .ipo-boardbar button {
  border-radius: 0;
  font-size: .75rem;
  font-weight: 800
}

body.site-shell .ipo-boardbar a.on,
body.site-shell .ipo-boardbar button.on {
  background: var(--ink);
  color: var(--accent-on-dark)
}

body.site-shell .ipo-boardbar a.on span,
body.site-shell .ipo-boardbar button.on span {
  color: #fff;
  background: var(--accent)
}

body.site-shell .ipo-group-h {
  font-family: var(--display);
  font-size: 1.7rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: .65rem
}

body.site-shell .ipo-group-h .cnt {
  border-radius: 0;
  background: var(--accent-050);
  color: var(--brand-700)
}

body.site-shell .ipo-table {
  border: 1px solid var(--line);
  background: var(--surface)
}

body.site-shell .ipo-table thead th {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--brand-700);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase
}

body.site-shell .ipo-table td {
  border-color: var(--line);
  vertical-align: middle
}

body.site-shell .ipo-table tbody tr:hover {
  background: var(--card-alt)
}

body.site-shell .ipo-sec .card {
  border-radius: 0;
  border-top: 4px solid var(--brand)
}

body.site-shell .form-card {
  border-radius: 0;
  border: 1px solid var(--ink);
  border-top: 5px solid var(--accent);
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--ink) 10%, transparent)
}

body.site-shell .form-label {
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .075em;
  text-transform: uppercase;
  color: var(--brand-700)
}

body.site-shell .gr-card {
  border-radius: 0;
  background: var(--line);
  border-color: var(--line);
  padding: 1.1rem
}

body.site-shell .gr-card-h {
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-700)
}

body.site-shell .gr-card-v {
  font-family: var(--display);
  font-size: 1.65rem;
  color: var(--ink)
}

body.site-shell .gr-chip {
  border-radius: 0
}

body.site-shell .gold-picker,
.site-shell .gp-btn {
  border-radius: 0
}

body.site-shell .gold-side .widget {
  border-top: 4px solid var(--accent)
}

body.site-shell .gold-chart,
.site-shell .gold-timeline {
  background: var(--surface)
}

body.site-shell .err-page {
  background: radial-gradient(circle at 75% 22%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 18rem), var(--card-alt);
  min-height: 62vh;
  padding: 7rem 0;
  border-bottom: 1px solid var(--ink)
}

body.site-shell .err-code {
  font-family: var(--display);
  color: var(--brand-700);
  font-size: clamp(6rem, 20vw, 13rem);
  line-height: .75;
  letter-spacing: -.09em
}

body.site-shell .err-title {
  font-family: var(--display);
  font-size: clamp(2.1rem, 5vw, 4rem)
}

body.site-shell .err-search .input-group {
  border: 1px solid var(--ink);
  padding: .35rem;
  background: var(--surface)
}

body.site-shell .err-search .form-control {
  border: 0
}

.site-shell .err-search .btn:hover {
  box-shadow: none
}

/* Precious-metal calculator: a focused input-and-result workspace. */
body.site-shell .gcalc-card {
  overflow: hidden;
  padding: 0 !important;
  border: 1px solid var(--line-strong) !important;
  border-top: 5px solid var(--brand-700) !important;
  background: var(--surface);
  box-shadow: none !important
}

body.site-shell .gcalc-heading {
  padding: 1.55rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(100deg, var(--surface) 0%, var(--card) 100%)
}

body.site-shell .gcalc-heading-kicker {
  display: block;
  margin-bottom: .42rem;
  color: var(--brand);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase
}

body.site-shell .gcalc-card .gpt-title {
  max-width: 35ch;
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.13
}

body.site-shell .gcalc-card .ipo-note {
  max-width: 58ch;
  margin: .55rem 0 0;
  color: var(--text);
  font-size: .9rem;
  line-height: 1.55
}

body.site-shell .gcalc {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important
}

body.site-shell .gcalc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, .92fr);
  min-width: 0
}

body.site-shell .gcalc-controls {
  min-width: 0;
  padding: 1.4rem 1.75rem 1.6rem;
  background: var(--surface)
}

body.site-shell .gcalc-controls-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 1rem
}

body.site-shell .gcalc-controls-head span {
  color: var(--ink);
  font-size: .9rem;
  font-weight: 900
}

body.site-shell .gcalc-controls-head small {
  color: var(--text);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase
}

body.site-shell .gcalc-tabs {
  display: inline-flex;
  gap: 0;
  margin: 0 0 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  overflow: hidden
}

body.site-shell .gcalc-tabs button {
  min-width: 58px;
  border: 0;
  border-right: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--surface);
  color: var(--muted);
  font-size: .8rem;
  font-weight: 900;
  padding: .57rem .78rem
}

body.site-shell .gcalc-tabs button:last-child {
  border-right: 0
}

body.site-shell .gcalc-tabs button:hover {
  background: var(--card-alt);
  color: var(--ink)
}

body.site-shell .gcalc-tabs button.on {
  background: var(--brand-700);
  color: var(--surface)
}

body.site-shell .gcalc-field {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important
}

body.site-shell .gcalc-field label {
  margin-bottom: .42rem;
  color: var(--text);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase
}

body.site-shell .gcalc-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: .55rem
}

body.site-shell .gcalc-input .form-control,
body.site-shell .gcalc-input .form-select {
  min-height: 52px;
  border: 1px solid var(--line-strong) !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700
}

body.site-shell .gcalc-input .form-control {
  padding-left: .85rem
}

.site-shell .gcalc-input .form-select {
  flex: auto !important
}

body.site-shell .gcalc-input .form-control:focus,
body.site-shell .gcalc-input .form-select:focus {
  border-color: var(--brand-700) !important;
  box-shadow: inset 0 0 0 1px var(--brand-700), 0 0 0 3px color-mix(in srgb, var(--brand) 10%, transparent) !important
}

body.site-shell .gcalc-quick-wrap {
  margin-top: 1.05rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line)
}

body.site-shell .gcalc-quick-wrap>span {
  display: block;
  margin-bottom: .5rem;
  color: var(--text);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase
}

body.site-shell .gcalc-quick {
  gap: .42rem;
  margin: 0
}

body.site-shell .gcalc-quick button {
  min-width: 44px;
  border: 1px solid var(--line-strong) !important;
  border-radius: 0 !important;
  background: var(--surface) !important;
  color: var(--text) !important;
  font-size: .75rem;
  font-weight: 900;
  padding: .45rem .55rem
}

body.site-shell .gcalc-quick button:hover,
body.site-shell .gcalc-quick button:focus {
  border-color: var(--brand-700) !important;
  background: var(--accent) !important;
  color: #fff !important
}

body.site-shell .gcalc-result {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 244px;
  overflow: hidden;
  padding: 1.6rem 1.75rem !important;
  border: 0 !important;
  border-left: 1px solid rgba(255, 255, 255, .16) !important;
  border-radius: 0 !important;
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-700) 100%) !important;
  box-shadow: none !important;
  color: var(--surface)
}

body.site-shell .gcalc-result::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 26px color-mix(in srgb, var(--accent) 6%, transparent), 0 0 0 52px color-mix(in srgb, var(--accent) 4%, transparent);
  pointer-events: none
}

body.site-shell .gcalc-result>* {
  position: relative;
  z-index: 1
}

body.site-shell .gcalc-result-eyebrow {
  display: block;
  margin-bottom: .8rem;
  color: var(--accent-on-dark);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase
}

body.site-shell .gcalc-rlabel {
  color: var(--surface);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .025em;
  text-transform: none
}

body.site-shell .gcalc-rlabel .gcalc-kname {
  color: var(--surface);
  font-weight: 900
}

body.site-shell .gcalc-total {
  margin: .45rem 0 .35rem;
  color: var(--surface);
  font-family: var(--display);
  font-size: clamp(2.45rem, 5vw, 3.7rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.055em
}

body.site-shell .gcalc-sub {
  color: var(--surface);
  font-size: .84rem;
  line-height: 1.5
}

body.site-shell .gcalc-result-note {
  margin-top: 1.15rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(255, 255, 255, .22);
  color: #b9cfc2;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em
}

body.site-shell .gcalc-others {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 !important;
  padding: 1rem 1.75rem !important;
  border-top: 1px solid var(--line) !important;
  background: var(--card)
}

body.site-shell .gcalc-others[hidden] {
  display: none !important
}

body.site-shell .gcalc-olabel {
  width: auto;
  color: var(--text);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .095em;
  text-transform: uppercase
}

body.site-shell .gcalc-others span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--ink);
  font-size: .84rem;
  font-weight: 900
}

body.site-shell .gcalc-others i {
  padding: .18rem .38rem;
  background: var(--card-alt);
  color: var(--brand-700);
  font-size: .66rem;
  font-style: normal;
  font-weight: 900
}

@media(max-width:767px) {
  body.site-shell .gcalc-heading {
    padding: 1.25rem
  }

  body.site-shell .gcalc-layout {
    grid-template-columns: 1fr
  }

  body.site-shell .gcalc-controls {
    padding: 1.2rem
  }

  body.site-shell .gcalc-result {
    min-height: 200px;
    padding: 1.35rem 1.2rem !important;
    border-top: 1px solid rgba(255, 255, 255, .16) !important;
    border-left: 0 !important
  }

  body.site-shell .gcalc-others {
    padding: 1rem 1.2rem !important
  }
}

@media(max-width:440px) {
  body.site-shell .gcalc-controls-head {
    align-items: flex-start;
    flex-direction: column;
    gap: .25rem
  }

  body.site-shell .gcalc-input {
    grid-template-columns: 1fr
  }

  body.site-shell .gcalc-tabs {
    display: flex;
    width: 100%
  }

  body.site-shell .gcalc-tabs button {
    flex: 1;
    min-width: 0
  }
}

/* Rate-page location switcher: kept out of the clipped editorial hero. */
body.site-shell .rate-location-switcher {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  margin: 0 0 1rem;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--ink);
  border-left: 5px solid var(--accent);
  background: var(--card);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--ink) 12%, transparent)
}

body.site-shell .rate-location-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  gap: .16rem
}

body.site-shell .rate-location-kicker {
  color: var(--brand-700);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase
}

body.site-shell .rate-location-copy strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.18rem;
  line-height: 1.1
}

body.site-shell .rate-location-note {
  color: var(--text);
  font-size: .79rem;
  line-height: 1.4
}

body.site-shell .rate-location-switcher .gold-picker {
  position: relative;
  flex: 0 0 auto;
  margin: 0
}

body.site-shell .rate-location-switcher .gp-btn {
  min-height: 46px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--ink)
}

body.site-shell .rate-location-switcher .gp-btn:hover,
body.site-shell .rate-location-switcher .gp-btn:focus {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: var(--surface);
  box-shadow: 3px 3px 0 var(--ink)
}

body.site-shell .rate-location-switcher .gp-menu {
  z-index: 1060;
  margin-top: .7rem;
  border-color: var(--ink);
  box-shadow: 7px 7px 0 color-mix(in srgb, var(--ink) 16%, transparent)
}

@media(max-width:575px) {
  body.site-shell .rate-location-switcher {
    align-items: stretch;
    flex-direction: column;
    padding: 1rem
  }

  body.site-shell .rate-location-switcher .gold-picker,
  body.site-shell .rate-location-switcher .gp-btn {
    width: 100%
  }

  body.site-shell .rate-location-switcher .gp-btn {
    justify-content: center
  }

  body.site-shell .rate-location-switcher .gp-menu {
    width: 100%
  }
}

/* Corner promotions: stronger hierarchy and an accessible, legible CTA. */
body.site-shell .pp-corner .pp-box {
  overflow: hidden;
  border: 1px solid var(--brand-700);
  border-top: 5px solid var(--pp-btn, var(--brand));
  border-radius: 0;
  background: var(--surface);
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--ink) 20%, transparent), 0 18px 44px color-mix(in srgb, var(--ink) 20%, transparent)
}

body.site-shell .pp-corner .pp-body {
  gap: .7rem;
  padding: 1.25rem 1.25rem 1.35rem;
  background: linear-gradient(135deg, var(--surface) 0%, var(--card) 100%)
}

body.site-shell .pp-corner .pp-offer-kicker {
  display: inline-flex;
  align-self: flex-start;
  margin: 0;
  padding: .28rem .46rem;
  background: var(--accent);
  color: #fff;
  font-size: .61rem;
  font-weight: 900;
  letter-spacing: .11em;
  line-height: 1.15;
  text-transform: uppercase
}

body.site-shell .pp-corner .pp-head {
  align-items: flex-start;
  gap: .7rem;
  padding-right: 2rem
}

body.site-shell .pp-corner .pp-logo {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: #fff
}

body.site-shell .pp-corner .pp-title {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.025em
}

body.site-shell .pp-corner .pp-text {
  color: var(--text);
  font-size: .87rem;
  font-weight: 600;
  line-height: 1.5
}

body.site-shell .pp-corner .pp-text p {
  margin: 0
}

body.site-shell .pp-corner .pp-btn {
  min-height: 48px;
  margin-top: .35rem;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 0;
  background: var(--pp-btn, var(--brand));
  box-shadow: 3px 3px 0 #17312e;
  color: var(--surface) !important;
  font-size: .87rem;
  font-weight: 900;
  letter-spacing: .025em;
  text-align: center
}

body.site-shell .pp-corner .pp-btn:hover,
body.site-shell .pp-corner .pp-btn:focus {
  color: var(--surface) !important;
  filter: brightness(.96);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 #17312e
}

body.site-shell .pp-corner .pp-x {
  right: 9px;
  top: 9px;
  width: 29px;
  height: 29px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--surface);
  color: var(--brand-700)
}

body.site-shell .pp-corner .pp-x:hover {
  background: var(--accent);
  border-color: var(--ink);
  color: #fff
}

@media(max-width:520px) {
  body.site-shell .pp-corner .pp-body {
    padding: 1.08rem 1rem 1.15rem
  }

  body.site-shell .pp-corner .pp-title {
    font-size: 1.22rem
  }
}

/* ---------------------------------------------------------------------
   Site footer
   A calm, high-contrast research footer with a clear next step, grouped
   navigation, and a compact legal area.  It intentionally uses its own
   layout instead of inheriting the earlier column-count footer.
   --------------------------------------------------------------------- */
body.site-shell .site-footer {
  position: relative;
  overflow: hidden;
  background: var(--brand-700);
  color: var(--surface);
  padding: 0
}

body.site-shell .site-footer::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: -13rem;
  top: 8rem;
  width: 32rem;
  height: 32rem;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 34px color-mix(in srgb, var(--accent) 3.5%, transparent), 0 0 0 68px color-mix(in srgb, var(--accent) 2%, transparent);
  pointer-events: none
}

body.site-shell .site-footer>.container {
  position: relative;
  z-index: 1
}

body.site-shell .footer-signal {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(19rem, .7fr);
  gap: 3rem;
  align-items: end;
  padding: 4.5rem 0 3.4rem;
  border-bottom: 1px solid rgba(233, 243, 232, .16)
}

body.site-shell .footer-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .9rem;
  color: var(--accent-on-dark);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase
}

body.site-shell .footer-eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--accent)
}

body.site-shell .footer-signal h2 {
  max-width: 15ch;
  margin: 0;
  color: var(--surface);
  font-family: var(--display);
  font-size: clamp(2.15rem, 4.25vw, 4.3rem);
  font-weight: 700;
  letter-spacing: -.06em;
  line-height: .95
}

body.site-shell .footer-signal-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.35rem;
  padding-bottom: .25rem
}

body.site-shell .footer-signal-side p {
  max-width: 38ch;
  margin: 0;
  color: #b6c7bd;
  font-size: .94rem;
  line-height: 1.7
}

body.site-shell .footer-signal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem 1.3rem
}

body.site-shell .footer-action-primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.3rem;
  min-height: 47px;
  padding: .78rem .95rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff !important;
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .085em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 #061714
}

body.site-shell .footer-action-primary:hover,
body.site-shell .footer-action-primary:focus {
  background: var(--surface);
  border-color: var(--surface);
  color: var(--brand-700) !important;
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 #061714
}

body.site-shell .footer-action-primary span {
  font-size: 1.1rem;
  line-height: 0
}

body.site-shell .footer-action-text {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--surface) !important;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .075em;
  text-decoration: none;
  text-transform: uppercase
}

body.site-shell .footer-action-text:hover,
body.site-shell .footer-action-text:focus {
  color: var(--accent-on-dark) !important;
  text-decoration: underline;
  text-underline-offset: 4px
}

body.site-shell .footer-main {
  display: grid;
  grid-template-columns: minmax(14rem, .82fr) minmax(0, 1.7fr);
  gap: 4rem;
  margin: 0;
  padding: 3.5rem 0 3.3rem;
  border: 0
}

body.site-shell .footer-intro {
  max-width: 25rem;
  min-width: 0
}

body.site-shell .footer-identity {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--surface) !important;
  text-decoration: none
}

body.site-shell .footer-identity:hover {
  color: var(--accent-on-dark) !important
}

body.site-shell .footer-image {
  display: block;
  max-width: 230px;
  max-height: 56px;
  object-fit: contain;
  object-position: left center
}

body.site-shell .site-footer .brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff
}

body.site-shell .site-footer .brand-mark svg {
  width: 23px;
  height: 23px
}

body.site-shell .site-footer .footer-brand {
  color: var(--surface);
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -.045em
}

body.site-shell .footer-label {
  margin: 1.35rem 0 .5rem;
  color: var(--surface);
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1.12
}

body.site-shell .footer-about {
  max-width: 34ch;
  margin: 0;
  color: #aebfb5;
  font-size: .86rem;
  line-height: 1.7
}

body.site-shell .footer-socials {
  gap: .45rem !important;
  margin-top: 1.25rem !important
}

body.site-shell .site-footer .social-ico {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(233, 243, 232, .23);
  border-radius: 0;
  background: transparent;
  color: var(--surface)
}

body.site-shell .site-footer .social-ico:hover {
  border-color: var(--sc, var(--accent));
  background: var(--sc, var(--accent));
  color: var(--brand-700);
  transform: translateY(-2px)
}

body.site-shell .footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.25rem, 1fr));
  gap: 2.1rem 1.8rem;
  min-width: 0;
  column-count: auto;
  column-gap: 0
}

body.site-shell .footer-cols .footer-group {
  display: block;
  margin: 0;
  break-inside: auto
}

body.site-shell .site-footer .footer-group h6 {
  margin: 0 0 .85rem;
  color: var(--accent-on-dark);
  font-family: var(--font);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .13em;
  line-height: 1.3;
  text-transform: uppercase
}

body.site-shell .site-footer .footer-group h6 a {
  color: var(--accent-on-dark) !important;
  text-decoration: none
}

body.site-shell .site-footer .footer-group h6 a:hover {
  color: var(--surface) !important
}

body.site-shell .footer-links {
  display: grid;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none
}

body.site-shell .footer-links li {
  margin: 0 !important;
  min-width: 0
}

body.site-shell .footer-links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .4rem;
  color: #c1cfc7 !important;
  font-size: .82rem;
  line-height: 1.45;
  text-decoration: none
}

body.site-shell .footer-links a span {
  opacity: 0;
  color: var(--accent-on-dark);
  font-size: .85rem;
  transform: translateX(-3px);
  transition: opacity .16s ease, transform .16s ease
}

body.site-shell .footer-links a:hover,
body.site-shell .footer-links a:focus {
  color: var(--surface) !important
}

body.site-shell .footer-links a:hover span,
body.site-shell .footer-links a:focus span {
  opacity: 1;
  transform: translateX(0)
}

body.site-shell .footer-legal {
  margin: 0;
  padding: 1.3rem 0 1.6rem;
  border-top: 1px solid rgba(233, 243, 232, .16)
}

body.site-shell .footer-disclaimer {
  margin: 0;
  padding: 0 0 1.25rem;
  color: #93a89d;
  font-size: .72rem;
  line-height: 1.65
}

body.site-shell .footer-disclaimer strong {
  color: var(--accent-on-dark);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase
}

body.site-shell .footer-disclaimer p {
  margin: 0;
}

body.site-shell .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0;
  border: 0;
  color: #8fa399;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .035em
}

body.site-shell .footer-bottom-mark {
  color: var(--accent-on-dark);
  font-size: .61rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase
}

@media(max-width:991px) {
  body.site-shell .footer-signal {
    grid-template-columns: 1fr;
    gap: 1.7rem;
    padding: 3.4rem 0 3rem
  }

  body.site-shell .footer-signal h2 {
    max-width: 18ch
  }

  body.site-shell .footer-main {
    grid-template-columns: 1fr;
    gap: 2.7rem;
    padding: 2.9rem 0
  }

  body.site-shell .footer-intro {
    max-width: 38rem
  }

  body.site-shell .footer-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}

@media(max-width:620px) {
  body.site-shell .footer-signal {
    padding: 2.7rem 0 2.45rem
  }

  body.site-shell .footer-signal h2 {
    font-size: clamp(2.1rem, 11vw, 3.1rem)
  }

  body.site-shell .footer-signal-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%
  }

  body.site-shell .footer-action-primary {
    width: 100%
  }

  body.site-shell .footer-action-text {
    padding: .25rem 0
  }

  body.site-shell .footer-main {
    padding: 2.5rem 0;
    gap: 2.4rem
  }

  body.site-shell .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem 1.15rem
  }

  body.site-shell .footer-disclaimer {
    grid-template-columns: 1fr;
    gap: .4rem
  }

  body.site-shell .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: .45rem
  }
}

@media(max-width:390px) {
  body.site-shell .footer-cols {
    grid-template-columns: 1fr
  }
}

/* Homepage learning centre: a 12-guide editorial grid. */
.portal-home .portal-insights {
  padding-bottom: 4.35rem
}

.portal-home .portal-insight-head-actions {
  display: flex;
  align-items: center;
  gap: 1rem
}

.portal-home .portal-insight-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: .32rem .55rem;
  border: 1px solid var(--line-strong);
  background: var(--card-alt);
  color: var(--portal-green);
  font-size: .63rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap
}

.portal-home .portal-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: stretch
}

.portal-home .portal-insight-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--portal-line);
  border-top: 4px solid var(--portal-blue);
  background: #fff;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease
}

.portal-home .portal-insight-card:hover {
  z-index: 1;
  transform: translateY(-4px);
  border-color: var(--brand-700);
  box-shadow: 0 12px 22px color-mix(in srgb, var(--ink) 13%, transparent)
}

.portal-home .portal-insight-image {
  display: block;
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--brand-700);
  text-decoration: none
}

.portal-home .portal-insight-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(8, 30, 39, .22));
  opacity: .5;
  pointer-events: none
}

.portal-home .portal-insight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease
}

.portal-home .portal-insight-card:hover .portal-insight-image img {
  transform: scale(1.045)
}

.portal-home .portal-insight-image.is-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-700) 100%);
  color: var(--surface)
}

.portal-home .portal-insight-image.is-placeholder::before {
  content: "";
  position: absolute;
  width: 10rem;
  height: 10rem;
  border: 1px solid rgba(230, 240, 106, .5);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(230, 240, 106, .06), 0 0 0 44px rgba(230, 240, 106, .03)
}

.portal-home .portal-insight-image.is-placeholder span {
  position: relative;
  z-index: 1;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase
}

.portal-home .portal-insight-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 1.1rem 1.1rem 1rem
}

.portal-home .portal-insight-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  margin-bottom: .7rem;
  color: var(--text);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase
}

.portal-home .portal-insight-meta>a {
  min-width: 0;
  overflow: hidden;
  color: var(--portal-green);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap
}

.portal-home .portal-insight-meta>a:hover {
  color: var(--portal-blue);
  text-decoration: underline;
  text-underline-offset: 3px
}

.portal-home .portal-insight-meta>span:last-child {
  flex: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none
}

.portal-home .portal-insight-card h3 {
  margin: 0;
  color: var(--portal-ink);
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.17
}

.portal-home .portal-insight-card h3 a {
  color: inherit;
  text-decoration: none
}

.portal-home .portal-insight-card h3 a:hover {
  color: var(--portal-green)
}

.portal-home .portal-insight-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: .65rem 0 .9rem;
  color: var(--text);
  font-size: .8rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3
}

.portal-home .portal-insight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  margin-top: auto;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: .67rem;
  font-weight: 700
}

.portal-home .portal-insight-footer>a {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  color: var(--portal-green);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .055em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap
}

.portal-home .portal-insight-footer>a:hover {
  color: var(--portal-blue)
}

.portal-home .portal-insight-footer i {
  font-size: .95rem;
  font-style: normal;
  line-height: 1
}

.portal-home .portal-insight-card.is-featured {
  grid-column: span 2;
  border-top-color: var(--portal-green)
}

.portal-home .portal-insight-card.is-featured .portal-insight-image {
  aspect-ratio: 16/7
}

.portal-home .portal-insight-card.is-featured .portal-insight-copy {
  padding: 1.45rem 1.5rem 1.2rem
}

.portal-home .portal-insight-card.is-featured h3 {
  max-width: 27ch;
  font-size: clamp(1.45rem, 2.35vw, 2rem);
  line-height: 1.06
}

.portal-home .portal-insight-card.is-featured p {
  max-width: 66ch;
  font-size: .9rem;
  -webkit-line-clamp: 2
}

.portal-home .portal-insight-card.is-featured .portal-insight-footer {
  margin-top: .35rem
}

@media(max-width:991px) {
  .portal-home .portal-insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .portal-home .portal-insight-card.is-featured {
    grid-column: span 2
  }
}

@media(max-width:767px) {
  .portal-home .portal-insight-head-actions {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: .7rem
  }
}

@media(max-width:575px) {
  .portal-home .portal-insights {
    padding-bottom: 2.8rem
  }

  .portal-home .portal-insight-grid {
    grid-template-columns: 1fr;
    gap: 1rem
  }

  .portal-home .portal-insight-card.is-featured {
    grid-column: auto
  }

  .portal-home .portal-insight-card.is-featured .portal-insight-image {
    aspect-ratio: 16/9
  }

  .portal-home .portal-insight-card.is-featured .portal-insight-copy {
    padding: 1.1rem
  }

  .portal-home .portal-insight-card.is-featured h3 {
    font-size: 1.35rem
  }
}

/* Do not stretch smaller cards to the featured story's row height. */
.portal-home .portal-insight-grid {
  align-items: start
}

.portal-home .portal-insight-card {
  height: max-content
}

/* Top three stories: one feature story with two compact companion guides. */
.portal-home .portal-insight-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(17rem, .95fr);
  gap: 1.15rem;
  align-items: stretch;
  margin-bottom: 1.15rem
}

.portal-home .portal-insight-spotlight>.portal-insight-card.is-featured {
  grid-column: auto;
  height: auto
}

.portal-home .portal-insight-stack {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  min-width: 0
}

.portal-home .portal-insight-stack .portal-insight-card.is-compact {
  height: 100%;
  min-height: 0
}

.portal-home .portal-insight-card.is-compact .portal-insight-image {
  aspect-ratio: 16/6.2
}

.portal-home .portal-insight-card.is-compact .portal-insight-copy {
  padding: .85rem .95rem .8rem
}

.portal-home .portal-insight-card.is-compact .portal-insight-meta {
  margin-bottom: .42rem;
  font-size: .59rem
}

.portal-home .portal-insight-card.is-compact h3 {
  display: -webkit-box;
  overflow: hidden;
  font-size: .98rem;
  line-height: 1.13;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2
}

.portal-home .portal-insight-card.is-compact .portal-insight-footer {
  padding-top: .6rem;
  font-size: .62rem
}

.portal-home .portal-insight-card.is-compact .portal-insight-footer>a {
  font-size: .61rem
}

@media(max-width:767px) {
  .portal-home .portal-insight-spotlight {
    grid-template-columns: 1fr
  }
}

@media(max-width:575px) {
  .portal-home .portal-insight-spotlight {
    gap: 1rem;
    margin-bottom: 1rem
  }

  .portal-home .portal-insight-stack {
    grid-template-columns: 1fr;
    gap: 1rem
  }

  .portal-home .portal-insight-card.is-compact .portal-insight-image {
    aspect-ratio: 16/8
  }
}

/* ---------------------------------------------------------------------
   Broker comparison desk
   A dedicated research interface for the comparison directory and every
   head-to-head report. These rules deliberately replace the legacy rows,
   pale hero and rounded comparison panels.
   --------------------------------------------------------------------- */
body.site-shell .cmp-directory-hero,
body.site-shell .cmp-report-hero {
  position: relative;
  overflow: hidden;
  background: var(--brand-700);
  color: var(--card)
}

body.site-shell .cmp-directory-hero::before,
body.site-shell .cmp-report-hero::before {
  content: "";
  position: absolute;
  right: -9rem;
  top: -13rem;
  width: 31rem;
  height: 31rem;
  border: 1px solid rgba(222, 232, 95, .5);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(222, 232, 95, .06), 0 0 0 68px rgba(222, 232, 95, .035);
  pointer-events: none
}

body.site-shell .cmp-directory-hero .container,
body.site-shell .cmp-report-hero .container {
  position: relative;
  z-index: 1
}

body.site-shell .cmp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
  margin: 0;
  color: #b9ccd2;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase
}

body.site-shell .cmp-breadcrumb a {
  color: var(--accent-on-dark);
  text-decoration: none
}

body.site-shell .cmp-breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px
}

body.site-shell .cmp-eyebrow {
  display: inline-block;
  color: var(--brand-700);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase
}

body.site-shell .cmp-directory-hero .cmp-eyebrow,
body.site-shell .cmp-report-hero .cmp-eyebrow {
  color: var(--accent-on-dark)
}

body.site-shell .cmp-directory-hero {
  padding: 2rem 0 3.25rem;
  border-bottom: 5px solid var(--accent)
}

body.site-shell .cmp-directory-hero .cmp-breadcrumb {
  margin-bottom: 2.7rem
}

body.site-shell .cmp-directory-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(19rem, .9fr);
  gap: 3.5rem;
  align-items: center
}

body.site-shell .cmp-directory-copy h1 {
  max-width: 12ch;
  margin: .65rem 0 1rem;
  color: var(--surface);
  font-family: var(--display);
  font-size: clamp(2.7rem, 5vw, 5rem);
  font-weight: 700;
  line-height: .91;
  letter-spacing: -.065em
}

body.site-shell .cmp-directory-copy h1 em,
body.site-shell .cmp-report-copy h1 em {
  color: var(--accent-on-dark);
  font-style: normal
}

body.site-shell .cmp-directory-copy>p {
  max-width: 58ch;
  margin: 0;
  color: var(--surface);
  font-size: 1rem;
  line-height: 1.72
}

body.site-shell .cmp-directory-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1.4rem;
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .2);
  color: var(--surface);
  font-size: .72rem;
  font-weight: 700
}

body.site-shell .cmp-directory-facts span {
  display: inline-flex;
  align-items: baseline;
  gap: .3rem
}

body.site-shell .cmp-directory-facts b {
  color: var(--accent-on-dark);
  font-size: 1.1rem
}

body.site-shell .cmp-builder {
  padding: 1.35rem;
  border: 1px solid rgba(223, 233, 94, .7);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 9px 9px 0 rgba(0, 0, 0, .2)
}

body.site-shell .cmp-builder-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-strong)
}

body.site-shell .cmp-builder-head span {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -.035em
}

body.site-shell .cmp-builder-head small {
  color: var(--text);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase
}

body.site-shell .cmp-builder-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr);
  gap: .6rem;
  align-items: end;
  margin: 1.1rem 0
}

body.site-shell .cmp-builder-fields label {
  min-width: 0
}

body.site-shell .cmp-builder-fields label>span {
  display: block;
  margin: 0 0 .38rem;
  color: var(--muted);
  font-size: .63rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase
}

body.site-shell .cmp-builder .form-select {
  min-height: 47px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: #fff;
  color: var(--brand-700);
  font-size: .88rem;
  font-weight: 800
}

body.site-shell .cmp-builder .form-select:focus {
  border-color: var(--brand-700);
  box-shadow: 0 0 0 3px rgba(23, 107, 90, .14)
}

body.site-shell .cmp-builder-vs {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: .45rem;
  border: 1px solid var(--brand-700);
  background: var(--brand-700);
  color: var(--accent-on-dark);
  font-size: .62rem;
  font-weight: 900
}

body.site-shell .cmp-builder-go {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--brand-700)
}

body.site-shell .cmp-builder-go:hover {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: var(--surface);
  box-shadow: 5px 5px 0 var(--brand-700)
}

body.site-shell .cmp-directory-main {
  padding: 4rem 0 4.8rem;
  background: var(--card-alt)
}

body.site-shell .cmp-directory-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem
}

body.site-shell .cmp-directory-heading h2 {
  margin: .38rem 0 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.5vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1
}

body.site-shell .cmp-directory-heading>span {
  padding: .4rem .55rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap
}

body.site-shell .cmp-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent
}

body.site-shell .cmp-vsrow {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  padding: 1.15rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease
}

body.site-shell .cmp-list>.cmp-vsrow:last-child {
  border-bottom: 1px solid var(--line-strong)
}

body.site-shell .cmp-vsrow::before {
  display: none
}

body.site-shell .cmp-vsrow:hover {
  background: var(--surface);
  color: var(--ink);
  transform: translate(-3px, -3px);
  border-color: var(--brand-700);
  box-shadow: 7px 7px 0 var(--accent)
}

body.site-shell .cmp-matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 35px minmax(0, 1fr);
  gap: .65rem;
  align-items: center
}

body.site-shell .cmp-side {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: auto;
  min-width: 0
}

body.site-shell .cmp-side-a {
  justify-self: start
}

body.site-shell .cmp-side-b {
  justify-self: end;
  flex-direction: row-reverse;
  text-align: right
}

body.site-shell .cmp-logo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--card);
  overflow: hidden
}

body.site-shell .cmp-logo img {
  max-width: 40px;
  max-height: 35px;
  width: auto;
  height: auto;
  object-fit: contain
}

body.site-shell .cmp-mark {
  color: var(--brand-700);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700
}

body.site-shell .cmp-info {
  min-width: 0
}

body.site-shell .cmp-name {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.13rem;
  font-weight: 700;
  letter-spacing: -.035em;
  text-overflow: ellipsis;
  white-space: nowrap
}

body.site-shell .cmp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .5rem;
  margin-top: .25rem;
  overflow: visible;
  color: var(--text);
  font-size: .63rem;
  font-weight: 700;
  line-height: 1.35
}

body.site-shell .cmp-side-b .cmp-meta {
  justify-content: flex-end
}

body.site-shell .cmp-meta>*+* {
  margin: 0;
  padding: 0;
  border: 0
}

body.site-shell .cmp-meta span+span::before {
  content: "·";
  margin-right: .5rem;
  color: #a1afa8
}

body.site-shell .cmp-meta b {
  color: var(--brand-700)
}

body.site-shell .cmp-vs {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--brand-700);
  border-radius: 50%;
  background: var(--brand-700);
  color: var(--accent-on-dark);
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: .03em
}

body.site-shell .cmp-vsrow-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: .67rem;
  font-weight: 700
}

body.site-shell .cmp-vsrow-foot strong {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--brand-700);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .075em;
  text-transform: uppercase;
  white-space: nowrap
}

body.site-shell .cmp-vsrow-foot i {
  font-size: .95rem;
  font-style: normal
}

body.site-shell .cmp-directory-intro {
  margin-top: 3.4rem;
  padding: 1.35rem;
  border: 1px solid var(--line-strong);
  border-left: 5px solid var(--brand-700);
  background: var(--card)
}

/* The individual comparison report. */
body.site-shell .cmp-report-hero {
  padding: 1.65rem 0 3.15rem;
  border-bottom: 5px solid var(--accent)
}

body.site-shell .cmp-report-hero .cmp-breadcrumb {
  margin-bottom: 2.4rem
}

body.site-shell .cmp-report-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, .92fr);
  gap: 3.1rem;
  align-items: center
}

body.site-shell .cmp-report-copy h1 {
  max-width: 13ch;
  margin: .65rem 0 .95rem;
  color: var(--surface);
  font-family: var(--display);
  font-size: clamp(2.55rem, 4.8vw, 4.7rem);
  font-weight: 700;
  letter-spacing: -.065em;
  line-height: .92
}

body.site-shell .cmp-report-copy>p {
  max-width: 61ch;
  margin: 0;
  color: var(--surface);
  font-size: 1rem;
  line-height: 1.7
}

body.site-shell .cmp-report-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1.3rem
}

body.site-shell .cmp-report-tags span {
  padding: .32rem .48rem;
  border: 1px solid rgba(223, 233, 94, .48);
  color: var(--surface);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase
}

body.site-shell .cmp-battleboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  gap: .65rem;
  align-items: center;
  padding: 1.1rem;
  border: 1px solid rgba(223, 233, 94, .65);
  background: rgba(255, 255, 255, .07);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, .18)
}

body.site-shell .cmp-battle-broker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  color: var(--surface);
  text-align: center;
  text-decoration: none
}

body.site-shell .cmp-battle-broker:hover {
  color: var(--accent-on-dark)
}

body.site-shell .cmp-battle-logo {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(255, 255, 255, .38);
  background: var(--surface);
  overflow: hidden
}

body.site-shell .cmp-battle-logo img {
  max-width: 52px;
  max-height: 43px;
  object-fit: contain
}

body.site-shell .cmp-battle-logo b {
  color: var(--brand-700);
  font-family: var(--display);
  font-size: 1.35rem
}

body.site-shell .cmp-battle-broker strong {
  display: block;
  overflow: hidden;
  max-width: 13ch;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.035em;
  text-overflow: ellipsis;
  white-space: nowrap
}

body.site-shell .cmp-battle-broker small {
  display: block;
  margin-top: .18rem;
  color: var(--surface);
  font-size: .64rem;
  font-weight: 700;
  line-height: 1.35
}

body.site-shell .cmp-battle-vs {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: .66rem;
  font-weight: 900
}

body.site-shell .cmp-report-nav {
  position: sticky;
  top: var(--hh, 64px);
  z-index: 30;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 254, 250, .96);
  backdrop-filter: blur(12px)
}

body.site-shell .cmp-report-nav>div>div {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none
}

body.site-shell .cmp-report-nav>div>div::-webkit-scrollbar {
  display: none
}

body.site-shell .cmp-report-nav a {
  flex: 0 0 auto;
  padding: .8rem .78rem;
  border-right: 1px solid var(--line-strong);
  color: var(--text);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .055em;
  text-decoration: none;
  text-transform: uppercase
}

body.site-shell .cmp-report-nav a:first-child {
  border-left: 1px solid var(--line-strong)
}

body.site-shell .cmp-report-nav a:hover {
  background: var(--accent);
  color: #fff
}

body.site-shell .cmp-report-main {
  padding: 3.4rem 0 4.5rem;
  background: var(--card-alt)
}

body.site-shell .cmp-verdict {
  margin: 0 0 1.25rem;
  padding: 1.4rem;
  border: 1px solid var(--brand-700);
  border-top: 5px solid var(--accent);
  border-radius: 0;
  background: var(--card);
  box-shadow: 6px 6px 0 rgba(22, 62, 73, .13)
}

body.site-shell .cmp-verdict-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem
}

body.site-shell .cmp-verdict-head .cmp-eyebrow {
  margin-bottom: .4rem
}

body.site-shell .cmp-verdict h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -.045em
}

body.site-shell .br-vcols {
  gap: 1rem
}

body.site-shell .br-vcol {
  padding: 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--surface)
}

body.site-shell .br-vcol.a {
  border-top: 4px solid var(--brand-700)
}

body.site-shell .br-vcol.b {
  border-top: 4px solid var(--brand-700)
}

body.site-shell .br-vcol .best {
  margin-bottom: .42rem;
  color: var(--brand-700);
  font-size: .63rem;
  font-weight: 900;
  letter-spacing: .105em;
  text-transform: uppercase
}

body.site-shell .br-vcol.b .best {
  color: var(--brand-700)
}

body.site-shell .br-vcol h3 {
  margin: 0 0 .4rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.03em
}

body.site-shell .br-vcol p {
  color: var(--text);
  font-size: .84rem;
  line-height: 1.6
}

body.site-shell .cmp-section {
  margin-bottom: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--surface);
  overflow: hidden
}

body.site-shell .cmp-section .br-acc-h {
  display: flex;
  align-items: center;
  gap: .72rem;
  margin: 0;
  padding: 1.05rem 1.2rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -.035em
}

body.site-shell .cmp-section .br-acc-h>span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  background: var(--brand-700);
  color: var(--accent-on-dark);
  font-family: var(--font);
  font-size: .61rem;
  font-weight: 900;
  letter-spacing: .04em
}

body.site-shell .cmp-section .body {
  padding: 1.2rem
}

body.site-shell .cmp-section .br-intro {
  max-width: 83ch;
  margin: 0 0 1rem;
  color: var(--text);
  font-size: .91rem;
  line-height: 1.7
}

body.site-shell .cmp-report-table {
  border: 1px solid var(--line-strong)
}

body.site-shell .cmp-report-table .br-ctable {
  min-width: 640px;
  margin: 0
}

body.site-shell .cmp-report-table .br-ctable th {
  padding: .75rem .85rem;
  border-color: var(--brand-700);
  background: var(--brand-700);
  color: var(--surface);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase
}

body.site-shell .cmp-report-table .br-ctable th.ca {
  background: var(--brand-700)
}

body.site-shell .cmp-report-table .br-ctable td {
  padding: .78rem .85rem;
  border-color: var(--line);
  color: var(--text);
  font-size: .84rem;
  vertical-align: middle
}

body.site-shell .cmp-report-table .br-ctable tbody tr:nth-child(even) {
  background: var(--card)
}

body.site-shell .cmp-report-table .br-ctable tbody td.param {
  color: var(--brand-700);
  font-size: .77rem;
  font-weight: 900
}

body.site-shell .cmp-report-table .br-cwin {
  background: var(--card-alt) !important
}

body.site-shell .cmp-report-table .br-wintag {
  border-radius: 0;
  background: var(--accent);
  color: #fff;
  font-size: .57rem;
  font-weight: 900;
  letter-spacing: .06em;
  display: none;
}

body.site-shell .cmp-section .br-pcpair {
  gap: 1rem
}

body.site-shell .cmp-section .br-pcpair .col {
  padding: 1rem;
  border: 1px solid var(--line-strong);
  background: var(--card)
}

body.site-shell .cmp-section .br-pcpair .head {
  margin-bottom: .75rem;
  padding-bottom: .7rem;
  border-color: var(--line-strong);
  font-family: var(--display);
  font-size: 1.25rem
}

body.site-shell .cmp-section .br-pcpair h4 {
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase
}

body.site-shell .cmp-section .br-pcpair li {
  font-size: .82rem;
  line-height: 1.45
}

body.site-shell .cmp-account-ctas {
  gap: 1rem;
  margin: 1.3rem 0 3.7rem
}

body.site-shell .cmp-account-ctas .br-ctabtn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .3rem;
  min-height: 88px;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--brand-700);
  border-radius: 0;
  background: var(--brand-700);
  color: var(--surface);
  font-family: var(--display);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.1;
  text-align: left;
  box-shadow: 5px 5px 0 rgba(22, 62, 73, .18)
}

body.site-shell .cmp-account-ctas .br-ctabtn.b {
  background: var(--brand-700)
}

body.site-shell .cmp-account-ctas .br-ctabtn span {
  font-family: var(--font);
  font-size: .61rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase
}

body.site-shell .cmp-account-ctas .br-ctabtn i {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  font-family: var(--font);
  font-size: 1.15rem;
  font-style: normal
}

body.site-shell .cmp-account-ctas .br-ctabtn:hover {
  color: var(--surface);
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--accent)
}

body.site-shell .cmp-more-comparisons {
  padding-top: 2.4rem;
  border-top: 1px solid var(--line-strong)
}

body.site-shell .cmp-more-heading {
  margin-bottom: 1.1rem
}

body.site-shell .cmp-more-heading .cmp-eyebrow {
  margin-bottom: .35rem
}

body.site-shell .cmp-more-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.05em
}

body.site-shell .br-xlinks {
  gap: 1rem
}

body.site-shell .br-xcol {
  padding: 1rem;
  border: 1px solid var(--line-strong);
  background: var(--surface)
}

body.site-shell .br-xcol h3 {
  margin: 0 0 .55rem;
  color: var(--brand-700);
  font-family: var(--display);
  font-size: 1.25rem
}

body.site-shell .br-xcol h3.b {
  color: var(--brand-700)
}

body.site-shell .br-xcol a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  padding: .62rem 0;
  border-color: var(--line);
  color: var(--text);
  font-size: .8rem;
  font-weight: 700
}

body.site-shell .br-xcol a span {
  color: var(--brand-700);
  font-size: 1rem
}

body.site-shell .br-xcol a:hover {
  color: var(--brand-700)
}

body.site-shell .cmp-report-main .br-disclaimer {
  margin: 2.5rem 0 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-left: 5px solid var(--line-strong);
  border-radius: 0;
  background: var(--card);
  color: var(--text)
}

@media(max-width:991px) {

  body.site-shell .cmp-directory-hero-grid,
  body.site-shell .cmp-report-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem
  }

  body.site-shell .cmp-builder {
    max-width: 640px
  }

  body.site-shell .cmp-list {
    grid-template-columns: 1fr
  }
}

@media(max-width:640px) {
  body.site-shell .cmp-directory-hero {
    padding: 1.3rem 0 2.35rem
  }

  body.site-shell .cmp-directory-hero .cmp-breadcrumb,
  body.site-shell .cmp-report-hero .cmp-breadcrumb {
    margin-bottom: 1.7rem
  }

  body.site-shell .cmp-directory-copy h1,
  body.site-shell .cmp-report-copy h1 {
    font-size: clamp(2.35rem, 12vw, 3.25rem)
  }

  body.site-shell .cmp-builder {
    padding: 1rem;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, .2)
  }

  body.site-shell .cmp-builder-fields {
    grid-template-columns: 1fr;
    gap: .65rem
  }

  body.site-shell .cmp-builder-vs {
    margin: 0 auto
  }

  body.site-shell .cmp-directory-main,
  body.site-shell .cmp-report-main {
    padding: 2.5rem 0 3rem
  }

  body.site-shell .cmp-directory-heading {
    align-items: flex-start;
    flex-direction: column
  }

  body.site-shell .cmp-vsrow {
    padding: 1rem
  }

  body.site-shell .cmp-matchup {
    gap: .35rem;
    grid-template-columns: minmax(0, 1fr) 29px minmax(0, 1fr)
  }

  body.site-shell .cmp-logo {
    width: 43px;
    height: 43px
  }

  body.site-shell .cmp-logo img {
    max-width: 33px;
    max-height: 28px
  }

  body.site-shell .cmp-name {
    font-size: 1rem
  }

  body.site-shell .cmp-meta {
    font-size: .57rem
  }

  body.site-shell .cmp-vs {
    width: 28px;
    height: 28px;
    font-size: .54rem
  }

  body.site-shell .cmp-vsrow-foot>span {
    display: none
  }

  body.site-shell .cmp-vsrow-foot {
    justify-content: flex-end
  }

  body.site-shell .cmp-report-hero {
    padding: 1.35rem 0 2.35rem
  }

  body.site-shell .cmp-battleboard {
    padding: .9rem;
    gap: .35rem
  }

  body.site-shell .cmp-battle-logo {
    width: 55px;
    height: 55px
  }

  body.site-shell .cmp-battle-logo img {
    max-width: 42px;
    max-height: 35px
  }

  body.site-shell .cmp-battle-broker strong {
    font-size: 1.05rem
  }

  body.site-shell .cmp-battle-vs {
    width: 31px;
    height: 31px;
    font-size: .56rem
  }

  body.site-shell .cmp-verdict {
    padding: 1rem
  }

  body.site-shell .cmp-verdict-head {
    align-items: flex-start;
    flex-direction: column;
    gap: .4rem
  }

  body.site-shell .br-vcols,
  body.site-shell .cmp-section .br-pcpair,
  body.site-shell .cmp-account-ctas,
  body.site-shell .br-xlinks {
    grid-template-columns: 1fr
  }

  body.site-shell .cmp-section .br-acc-h {
    padding: .9rem;
    font-size: 1.25rem
  }

  body.site-shell .cmp-section .body {
    padding: 1rem
  }

  body.site-shell .cmp-report-nav a {
    padding: .72rem .65rem;
    font-size: .61rem
  }
}

/* Sticky account CTA: compact research prompt with a high-contrast action. */
body.site-shell .sticky-cta {
  isolation: isolate;
  border-top: 1px solid rgba(255, 255, 255, .13);
  background: var(--sb-bg, var(--brand-700));
  box-shadow: 0 -14px 30px color-mix(in srgb, var(--ink) 20%, transparent)
}

body.site-shell .sticky-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 10%;
  width: 18rem;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .075), transparent);
  transform: skewX(-24deg);
  pointer-events: none
}

body.site-shell .sticky-cta-in {
  max-width: 1160px;
  min-height: 76px;
  padding: 10px 58px 10px 18px;
  justify-content: space-between;
  gap: 1.3rem;
  flex-wrap: nowrap
}

body.site-shell .sticky-cta-message {
  display: flex;
  align-items: center;
  gap: .78rem;
  min-width: 0
}

body.site-shell .sticky-cta-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid color-mix(in srgb, var(--sb-btn, var(--brand)) 76%, white);
  background: color-mix(in srgb, var(--sb-btn, var(--brand)) 20%, transparent);
  color: var(--card)
}

body.site-shell .sticky-cta-copy {
  display: flex;
  flex-direction: column;
  gap: .08rem;
  min-width: 0
}

body.site-shell .sticky-cta-kicker {
  color: var(--surface);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .13em;
  line-height: 1.2;
  text-transform: uppercase
}

body.site-shell .sticky-cta-txt {
  margin: 0;
  color: var(--surface);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.25
}

body.site-shell .sticky-cta-btn {
  min-height: 48px;
  padding: .72rem 1rem;
  border: 1px solid color-mix(in srgb, var(--sb-btn, var(--brand)) 70%, white);
  border-radius: 0;
  background: var(--sb-btn, var(--brand));
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .28);
  color: var(--surface) !important;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .065em;
  text-transform: uppercase
}

body.site-shell .sticky-cta-btn:hover,
body.site-shell .sticky-cta-btn:focus {
  background: var(--sb-btn, var(--brand));
  color: var(--surface) !important;
  filter: brightness(1.12);
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .28)
}

body.site-shell .sticky-cta-btn svg {
  width: 17px;
  height: 17px
}

body.site-shell .sticky-cta-x {
  right: 15px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 0;
  background: rgba(255, 255, 255, .09);
  color: var(--surface)
}

body.site-shell .sticky-cta-x:hover,
body.site-shell .sticky-cta-x:focus {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff
}

@media(max-width:640px) {
  body.site-shell .sticky-cta-in {
    min-height: 0;
    padding: 9px 49px 9px 12px;
    gap: .65rem;
    align-items: center
  }

  body.site-shell .sticky-cta-mark {
    width: 33px;
    height: 33px
  }

  body.site-shell .sticky-cta-mark svg {
    width: 16px;
    height: 16px
  }

  body.site-shell .sticky-cta-kicker {
    font-size: .51rem
  }

  body.site-shell .sticky-cta-txt {
    font-size: .79rem
  }

  body.site-shell .sticky-cta-btn {
    flex: 0 0 auto;
    min-height: 39px;
    padding: .55rem .63rem;
    font-size: .58rem;
    letter-spacing: .04em
  }

  body.site-shell .sticky-cta-btn svg {
    display: none
  }

  body.site-shell .sticky-cta-x {
    right: 10px;
    width: 27px;
    height: 27px
  }
}

@media(max-width:420px) {
  body.site-shell .sticky-cta-message {
    gap: .48rem
  }

  body.site-shell .sticky-cta-mark {
    display: none
  }

  body.site-shell .sticky-cta-kicker {
    display: none
  }

  body.site-shell .sticky-cta-txt {
    font-size: .73rem
  }

  body.site-shell .sticky-cta-btn {
    max-width: 128px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
  }
}

/* WhatsApp contact widget: sits above the sticky CTA instead of behind it. */
body.site-shell .wa-float {
  position: fixed;
  z-index: 1050;
  left: 22px;
  bottom: calc(20px + var(--sb-h, 0px));
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 0 rgba(12, 93, 48, .22), 0 14px 30px rgba(8, 45, 26, .25);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease
}

body.site-shell .wa-float::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(37, 211, 102, .36);
  border-radius: 50%;
  animation: waRing 2s ease-out infinite;
  pointer-events: none
}

body.site-shell .wa-float-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  background: rgba(0, 0, 0, .08);
  color: #fff
}

body.site-shell .wa-float-icon svg {
  display: block;
  width: 28px;
  height: 28px
}

body.site-shell .wa-float-tip {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  padding: .48rem .62rem;
  border: 1px solid var(--brand-700);
  background: var(--brand-700);
  color: #fff;
  font-size: .63rem;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-6px, -50%);
  transition: opacity .16s ease, transform .16s ease
}

body.site-shell .wa-float-tip::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--brand-700);
  border-left: 1px solid var(--brand-700);
  border-bottom: 1px solid var(--brand-700);
  transform: translateY(-50%) rotate(45deg)
}

body.site-shell .wa-float:hover,
body.site-shell .wa-float:focus {
  background: #1fb85a;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 11px 0 rgba(12, 93, 48, .19), 0 20px 34px rgba(8, 45, 26, .28)
}

body.site-shell .wa-float:hover .wa-float-tip,
body.site-shell .wa-float:focus .wa-float-tip {
  opacity: 1;
  transform: translate(0, -50%)
}

@keyframes waRing {
  0% {
    transform: scale(.78);
    opacity: .9
  }

  75%,
  100% {
    transform: scale(1.28);
    opacity: 0
  }
}

@media(prefers-reduced-motion:reduce) {
  body.site-shell .wa-float::before {
    animation: none
  }
}

@media(max-width:640px) {
  body.site-shell .wa-float {
    left: 12px;
    bottom: calc(14px + var(--sb-h, 0px));
    width: 49px;
    height: 49px
  }

  body.site-shell .wa-float-icon {
    width: 39px;
    height: 39px
  }

  body.site-shell .wa-float-icon svg {
    width: 24px;
    height: 24px
  }

  body.site-shell .wa-float-tip {
    display: none
  }
}

/* ===========================================================================
   Public-page refresh — each information family has its own reading surface.
   The rules are intentionally scoped so admin pages and the home portal keep
   their existing presentation.
   =========================================================================== */
body.site-shell .article-hero {
  padding: 2.55rem 0 2.35rem;
  border-bottom: 1px solid var(--line-strong);
  background: linear-gradient(118deg, var(--card) 0%, var(--card-alt) 100%);
  color: var(--brand-700)
}

body.site-shell .article-hero::after {
  right: 8vw;
  bottom: -8.8rem;
  width: 16rem;
  height: 16rem;
  border-color: rgba(25, 101, 84, .26);
  box-shadow: 0 0 0 28px rgba(25, 101, 84, .045), 0 0 0 56px rgba(25, 101, 84, .025)
}

body.site-shell .article-hero h1 {
  max-width: 21ch;
  color: var(--brand-700);
  font-size: clamp(2rem, 3.75vw, 3rem);
  line-height: 1.035;
  letter-spacing: -.045em
}

body.site-shell .article-hero .ah-lede {
  max-width: 66ch;
  margin-top: .9rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65
}

body.site-shell .article-hero .breadcrumb-nav {
  margin-bottom: .9rem
}

body.site-shell .article-hero .breadcrumb-nav a {
  color: var(--brand-700)
}

body.site-shell .article-hero .breadcrumb-nav .bc-current {
  color: var(--text)
}

body.site-shell .article-hero .ah-meta {
  margin-top: 1.15rem;
  color: var(--text)
}

/* Live metal rates: a quiet market-terminal surface with material accents. */
body.site-shell .rate-hero {
  overflow: hidden;
  border-bottom: 0;
  background: linear-gradient(125deg, var(--brand-700) 0%, var(--brand-700) 62%, var(--brand-700) 100%);
  color: var(--surface)
}

body.site-shell .rate-hero::after {
  right: 6vw;
  bottom: -7rem;
  border-color: rgba(255, 255, 255, .25);
  box-shadow: 0 0 0 28px rgba(255, 255, 255, .04), 0 0 0 56px rgba(255, 255, 255, .025)
}

body.site-shell .rate-hero h1,
body.site-shell .rate-hero .ah-lede {
  color: var(--surface)
}

body.site-shell .rate-hero .ah-lede {
  color: var(--surface)
}

body.site-shell .rate-hero .breadcrumb-nav a {
  color: var(--surface)
}

body.site-shell .rate-hero .breadcrumb-nav .bc-current {
  color: var(--surface)
}

body.site-shell .rate-dashboard {
  position: relative;
  padding-top: 2rem;
  padding-bottom: 3.3rem;
  background: var(--card)
}

body.site-shell .rate-dashboard .ipo-sec>.card {
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--surface);
  box-shadow: 4px 4px 0 rgba(15, 55, 52, .08)
}

body.site-shell .rate-dashboard .ipo-sec>.card>div:first-child h2 {
  font-size: clamp(1.42rem, 2.3vw, 1.9rem);
  letter-spacing: -.025em
}

body.site-shell .rate-dashboard .rate-location-switcher {
  margin-bottom: 1.35rem;
  border: 1px solid var(--line-strong);
  border-left: 5px solid var(--brand-700);
  background: var(--surface);
  box-shadow: none
}

body.site-shell .rate-dashboard .rate-location-kicker {
  color: var(--brand-700)
}

body.site-shell .rate-dashboard .gr-cards {
  gap: .85rem
}

body.site-shell .rate-dashboard .gr-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--surface);
  box-shadow: none
}

body.site-shell .rate-dashboard .gr-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--material-accent, var(--accent))
}

body.site-shell .rate-dashboard .gr-card-h {
  color: var(--text);
  font-size: .66rem;
  letter-spacing: .1em
}

body.site-shell .rate-dashboard .gr-card-v {
  color: var(--brand-700);
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.4vw, 1.4rem)
}

body.site-shell .rate-dashboard .gold-side .widget {
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--material-accent, var(--line-strong));
  border-radius: 0;
  background: var(--surface);
  box-shadow: none
}

body.site-shell .rate-dashboard--gold {
  --material-accent: #d5a237
}

body.site-shell .rate-dashboard--silver {
  --material-accent: #7595aa
}

body.site-shell .rate-dashboard--platinum {
  --material-accent: #8e7aa8
}

body.site-shell .rate-hero--gold {
  background: linear-gradient(125deg, var(--brand-700) 0%, var(--brand-700) 60%, var(--brand-700) 100%)
}

body.site-shell .rate-hero--silver {
  background: linear-gradient(125deg, var(--brand-700) 0%, var(--brand) 60%, var(--brand-700) 100%)
}

body.site-shell .rate-hero--platinum {
  background: linear-gradient(125deg, var(--brand-700) 0%, var(--brand-700) 60%, var(--brand-700) 100%)
}

body.site-shell .rate-dashboard .gcalc-card {
  border-color: var(--line-strong) !important;
  border-top-color: var(--material-accent, var(--line-strong)) !important
}

body.site-shell .rate-dashboard .gcalc-heading-kicker {
  color: var(--brand-700)
}

body.site-shell .rate-dashboard .gcalc-result {
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-700) 100%) !important
}

/* Blog: an editorial layout with softer cards and more intentional hierarchy. */
body.site-shell .blog-hero {
  border-bottom: 5px solid var(--brand-700);
  background: linear-gradient(115deg, var(--card) 0%, var(--card-alt) 100%)
}

body.site-shell .blog-hero::after {
  border-color: rgba(201, 104, 67, .35);
  box-shadow: 0 0 0 28px rgba(201, 104, 67, .05), 0 0 0 56px rgba(201, 104, 67, .025)
}

body.site-shell .blog-hero h1 {
  max-width: 18ch;
  color: var(--text)
}

body.site-shell .blog-hero .ah-lede {
  color: var(--text)
}

body.site-shell .blog-index-page {
  background: var(--card)
}

body.site-shell .blog-index-page form {
  max-width: 54rem;
  margin: 0 auto 2.35rem !important;
  padding: 1rem;
  border: 1px solid var(--line-strong);
  background: #fff;
  box-shadow: 5px 5px 0 #f0ddcc
}

body.site-shell .blog-index-page .form-control {
  min-height: 48px;
  border-radius: 0;
  border-color: var(--line-strong);
  background: var(--card)
}

body.site-shell .blog-index-page .btn-brand {
  border-radius: 0;
  background: var(--brand);
  border-color: var(--brand-700)
}

body.site-shell .blog-index-page .btn-brand:hover {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: #ffffff !important;
}

body.site-shell .blog-index-page .post-card {
  height: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease
}

body.site-shell .blog-index-page .post-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-700);
  box-shadow: 6px 7px 0 #efd8c3
}

body.site-shell .blog-index-page .post-thumb {
  border-radius: 0;
  background: var(--brand-700)
}

body.site-shell .blog-index-page .post-body {
  padding: 1.25rem
}

body.site-shell .blog-index-page .post-cat {
  color: var(--text);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .12em
}

body.site-shell .blog-index-page .post-title {
  margin-top: .55rem;
  font-family: var(--display);
  font-size: 1.38rem;
  line-height: 1.12
}

body.site-shell .blog-index-page .post-title a {
  color: var(--text)
}

body.site-shell .blog-index-page .post-meta {
  padding-top: .85rem;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: .74rem
}

body.site-shell .blog-single-page {
  background: var(--card)
}

body.site-shell .blog-single-page .prose {
  padding: clamp(1.25rem, 3vw, 2.4rem);
  border: 1px solid var(--line-strong);
  background: #fff;
  box-shadow: 5px 5px 0 #f2e6da
}

body.site-shell .blog-story-cover {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  box-shadow: 5px 5px 0 #e7cfba
}

body.site-shell .blog-single-page .toc {
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--brand-700);
  border-radius: 0;
  background: var(--card)
}

body.site-shell .blog-story-hero h1 {
  max-width: 24ch;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -.04em
}

/* Calculators: a crisp software-workspace treatment. */
body.site-shell .calculator-hero {
  border-bottom: 5px solid var(--brand-700);
  background: linear-gradient(115deg, var(--card) 0%, var(--card-alt) 100%)
}

body.site-shell .calculator-hero::after {
  border-color: rgba(59, 123, 216, .34);
  box-shadow: 0 0 0 28px rgba(59, 123, 216, .055), 0 0 0 56px rgba(59, 123, 216, .025)
}

body.site-shell .calculator-hero h1 {
  max-width: 19ch;
  color: var(--text)
}

body.site-shell .calculator-hero h1 {
  max-width: 23ch;
  font-size: clamp(1.85rem, 3vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -.04em
}

body.site-shell .calculator-hero .ah-lede {
  color: var(--text)
}

body.site-shell .calculators-index-page {
  background: var(--card)
}

body.site-shell .calculators-index-page .calc-cat {
  margin-bottom: 2rem;
  padding: 1.15rem;
  border: 1px solid var(--line-strong);
  background: #fff;
  box-shadow: 4px 4px 0 rgba(61, 113, 184, .08)
}

body.site-shell .calculators-index-page .calc-cat-h {
  margin: 0 0 1rem;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.65rem
}

body.site-shell .calculators-index-page .calc-cat-h .cnt {
  border-radius: 999px;
  background: var(--card-alt);
  color: var(--text)
}

body.site-shell .calculators-index-page .calc-card {
  min-height: 108px;
  border: 1px solid var(--line);
  background: var(--card)
}

body.site-shell .calculators-index-page .calc-card:hover {
  border-color: var(--brand-700);
  box-shadow: 4px 4px 0 #c8dcf8;
  color: var(--text)
}

body.site-shell .calculators-index-page .calc-card-ic {
  border-radius: 10px;
  background: var(--card-alt);
  color: var(--text)
}

body.site-shell .calculators-index-page .calc-card-t {
  color: var(--text);
  font-family: var(--font);
  font-size: .98rem;
  letter-spacing: 0
}

body.site-shell .calculators-index-page .calc-card-go {
  color: var(--text)
}

body.site-shell .calculator-detail-page {
  background: var(--card)
}

body.site-shell .calculator-detail-page .calc-card-tool {
  border: 1px solid var(--line-strong);
  border-top: 6px solid var(--brand-700);
  background: #fff;
  box-shadow: 6px 6px 0 var(--brand-100)
}

body.site-shell .calculator-detail-page .calc-result {
  border-radius: 12px;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--ink) 18%, transparent)
}

body.site-shell .calculator-detail-page .widget {
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--brand-700);
  border-radius: 0;
  background: #fff;
  box-shadow: none
}

body.site-shell .calculator-detail-page .calc-longform {
  padding: 1.5rem;
  border: 1px solid var(--line-strong);
  background: #fff
}

/* IPO and GMP pages: a data-led market dashboard rather than a generic page. */
body.site-shell .market-archive-hero {
  border: 0;
  background: color-mix(in srgb, #14282b 62%, #14282b);
  color: var(--surface);
}

body.site-shell .market-archive-hero::after {
  border-color: rgba(179, 232, 211, .32);
  box-shadow: 0 0 0 28px rgba(179, 232, 211, .055), 0 0 0 56px rgba(179, 232, 211, .025)
}

body.site-shell .market-archive-hero h1 {
  max-width: 19ch;
  color: var(--surface)
}

body.site-shell .market-archive-hero h1 {
  max-width: 23ch;
  font-size: clamp(1.85rem, 3vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -.04em
}

body.site-shell .market-archive-hero p[style] {
  color: var(--text) !important
}

body.site-shell .market-archive-hero .breadcrumb-nav a {
  color: var(--surface)
}

body.site-shell .market-archive-hero .breadcrumb-nav span {
  color: #b7ccc5
}

body.site-shell .market-archive-hero .ipo-stat-strip {
  margin-top: 1.45rem;
  border: 1px solid rgba(210, 244, 228, .28);
  border-radius: 0;
  background: rgba(7, 22, 40, .34);
  box-shadow: none
}

body.site-shell .market-archive-hero .ipo-stat-strip .s {
  border-color: rgba(210, 244, 228, .22)
}

body.site-shell .market-archive-hero .ipo-stat-strip .s {
  background: rgba(4, 24, 44, .32)
}

body.site-shell .market-archive-hero .ipo-stat-strip .s b {
  color: var(--surface)
}

body.site-shell .market-archive-hero .ipo-stat-strip .s span {
  color: var(--surface)
}

body.site-shell .market-archive-page {
  background: var(--card)
}

body.site-shell .market-archive-page .ipo-boardbar {
  display: flex;
  margin-bottom: 1.4rem;
  padding: .35rem;
  border: 1px solid var(--line-strong);
  background: #fff;
  box-shadow: 4px 4px 0 rgba(20, 70, 64, .08)
}

body.site-shell .market-archive-page .ipo-boardbar a {
  flex: 1;
  text-align: center;
  color: var(--brand-700)
}

body.site-shell .market-archive-page .ipo-boardbar a.on {
  background: var(--brand-700);
  color: #fff
}

body.site-shell .market-archive-page .ipo-boardbar a.on span {
  background: var(--line);
  color: var(--text)
}

body.site-shell .market-archive-page .ipo-group {
  margin-bottom: 1.5rem;
  border: 1px solid var(--line-strong);
  background: #fff;
  box-shadow: 5px 5px 0 rgba(19, 68, 64, .07)
}

body.site-shell .market-archive-page .ipo-group-h {
  margin: 0;
  padding: 1.05rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  color: var(--brand-700);
  font-family: var(--display);
  font-size: 1.55rem
}

body.site-shell .market-archive-page .ipo-group-h .cnt {
  border-radius: 999px;
  background: var(--card-alt);
  color: var(--brand-700)
}

body.site-shell .market-archive-page .ipo-table {
  margin: 0
}

body.site-shell .market-archive-page .ipo-table thead th {
  background: var(--brand-700);
  color: #fff;
  font-size: .67rem;
  letter-spacing: .07em
}

body.site-shell .market-archive-page .ipo-table tbody tr:hover {
  background: var(--card)
}

body.site-shell .market-archive-page .ipo-note {
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--brand-700);
  background: var(--card-alt);
  color: var(--text)
}

/* Broker discovery and the broker review use two related, but distinct, layouts. */
body.site-shell .broker-directory-hero {
  border-bottom: 5px solid var(--line-strong);
  background: linear-gradient(118deg, var(--brand-700) 0%, var(--brand-700) 100%)
}

body.site-shell .broker-directory-hero h1 {
  color: var(--surface);
  max-width: 18ch
}

body.site-shell .broker-directory-hero h1 {
  max-width: 22ch ;
  font-size: clamp(1.85rem, 3vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -.04em
}

body.site-shell .broker-directory-hero .ah-lede {
  color: var(--surface)
}

body.site-shell .broker-directory-hero .breadcrumb-nav a {
  color: var(--surface)
}

body.site-shell .broker-directory-hero .breadcrumb-nav .bc-current {
  color: var(--surface)
}

body.site-shell .broker-directory-page {
  background: var(--card)
}

body.site-shell .broker-directory-page .brk-filter {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin: 0 0 1.5rem;
  padding: .65rem;
  border: 1px solid var(--line-strong);
  background: #fff;
  box-shadow: 4px 4px 0 rgba(18, 65, 60, .07)
}

body.site-shell .broker-directory-page .brk-filter-lbl {
  margin-right: .55rem;
  color: var(--text);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase
}

body.site-shell .broker-directory-page .brk-filter a {
  border-radius: 0;
  color: var(--brand-700);
  font-size: .77rem;
  font-weight: 800
}

body.site-shell .broker-directory-page .brk-filter a.on {
  background: var(--brand-700);
  color: #fff
}

body.site-shell .broker-directory-page .brk-card {
  border: 1px solid var(--line-strong);
  border-left: 5px solid var(--line-strong);
  border-radius: 0;
  background: #fff;
  box-shadow: none
}

body.site-shell .broker-directory-page .brk-card:hover {
  border-color: var(--brand-700);
  box-shadow: 5px 5px 0 rgba(21, 99, 88, .12)
}

body.site-shell .broker-directory-page .brk-cta .btn {
  border-radius: 0;
  background: var(--brand-700);
  border-color: var(--brand-700)
}

body.site-shell .broker-review-hero {
  border-bottom: 0;
  background: linear-gradient(122deg, var(--brand-700) 0%, var(--brand-700) 56%, var(--brand-700) 100%);
  color: var(--surface)
}

body.site-shell .broker-review-hero::after {
  border-color: rgba(239, 211, 116, .34);
  box-shadow: 0 0 0 28px rgba(239, 211, 116, .06), 0 0 0 56px rgba(239, 211, 116, .025)
}

body.site-shell .broker-review-hero h1 {
  max-width: 16ch;
  color: var(--surface);
  font-size: clamp(2.1rem, 3.9vw, 3.6rem);
  line-height: 1.03
}

body.site-shell .broker-review-hero .breadcrumb-nav a {
  color: var(--surface)
}

body.site-shell .broker-review-hero .breadcrumb-nav span {
  color: var(--surface)
}

body.site-shell .broker-review-hero .br-logo {
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: 4px 4px 0 rgba(4, 23, 30, .3)
}

body.site-shell .broker-review-hero .br-ratebadge {
  border-radius: 0;
  border: 1px solid rgba(238, 213, 117, .45);
  background: rgba(5, 29, 36, .38)
}

body.site-shell .broker-review-hero .br-ctacard {
  border-radius: 0;
  border: 1px solid rgba(244, 225, 148, .55);
  background: var(--surface);
  box-shadow: 7px 7px 0 color-mix(in srgb, var(--ink) 28%, transparent)
}

body.site-shell .broker-review-hero .br-ctacard h3 {
  color: var(--brand-700) !important
}

body.site-shell .broker-review-hero .br-ctacard .btn {
  border-radius: 0;
  background: var(--accent);
  border-color: var(--line-strong);
  color: #fff
}

body.site-shell .broker-review-page {
  background: var(--card)
}

body.site-shell .broker-review-page .ipo-sec>.card {
  border: 1px solid var(--line-strong);
  border-radius: 0;
  border-top: 4px solid var(--brand-700);
  background: #fff;
  box-shadow: 4px 4px 0 rgba(22, 83, 75, .07)
}

body.site-shell .broker-review-page .ipo-sec h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.05rem)
}

body.site-shell .broker-review-page .br-disclaimer {
  border-radius: 0;
  border-left-color: var(--line-strong);
  background: var(--card)
}

/* Legal/about pages: a calm, focused reading column. */
body.site-shell .static-hero {
  border-bottom: 5px solid var(--brand-700);
  background: linear-gradient(115deg, var(--card) 0%, var(--card-alt) 100%)
}

body.site-shell .static-hero h1 {
  max-width: 20ch;
  color: var(--brand-700)
}

body.site-shell .static-hero h1 {
  max-width: 24ch;
  font-size: clamp(1.85rem, 3vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -.04em
}

body.site-shell .static-page {
  background: var(--card)
}

body.site-shell .static-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 1.5rem;
  align-items: start;
  margin: 0 auto
}

body.site-shell .static-page .card {
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--surface);
  box-shadow: 7px 7px 0 var(--brand-100)
}

body.site-shell .market-explorer-sidebar {
  position: sticky;
  top: calc(var(--hh, 64px) + 18px)
}

body.site-shell .blog-single-page .market-explorer-sidebar {
  position: static;
  margin-bottom: 1rem
}

body.site-shell .market-explorer-card {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-top: 5px solid var(--brand-700);
  background: var(--surface);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--ink) 8%, transparent)
}

body.site-shell .market-explorer-card>.market-explorer-kicker,
body.site-shell .market-explorer-card>h2,
body.site-shell .market-explorer-card>p {
  margin-left: 1rem;
  margin-right: 1rem
}

body.site-shell .market-explorer-kicker {
  display: block;
  margin-top: 1rem;
  margin-bottom: .4rem;
  color: var(--brand-700);
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase
}

body.site-shell .market-explorer-card h2 {
  margin-top: 0;
  margin-bottom: .45rem;
  color: var(--brand-700);
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: -.035em
}

body.site-shell .market-explorer-card>p {
  margin-top: 0;
  margin-bottom: .85rem;
  color: var(--text);
  font-size: .76rem;
  line-height: 1.5
}

body.site-shell .market-explorer-card nav {
  display: grid;
  border-top: 1px solid var(--line)
}

body.site-shell .market-explorer-card nav a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 15px;
  align-items: center;
  gap: .6rem;
  padding: .7rem .85rem;
  border-bottom: 1px solid var(--line);
  color: var(--brand-700);
  text-decoration: none
}

body.site-shell .market-explorer-card nav a:last-child {
  border-bottom: 0
}

body.site-shell .market-explorer-card nav a:hover,
body.site-shell .market-explorer-card nav a:focus {
  background: var(--card);
  color: var(--brand-700)
}

body.site-shell .market-explorer-card nav a>span:nth-child(2) {
  min-width: 0;
  font-size: .74rem;
  font-weight: 900;
  line-height: 1.18
}

body.site-shell .market-explorer-card nav small {
  display: block;
  margin-top: .18rem;
  color: var(--text);
  font-size: .59rem;
  font-weight: 700
}

body.site-shell .market-explorer-card nav i {
  color: var(--brand-700);
  font-size: .95rem;
  font-style: normal
}

body.site-shell .market-explorer-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--brand-700);
  font-size: .63rem;
  font-weight: 900
}

body.site-shell .market-explorer-mark.gold {
  background: var(--card-alt);
  color: var(--text)
}

body.site-shell .market-explorer-mark.silver {
  background: var(--card-alt);
  color: var(--text)
}

body.site-shell .market-explorer-mark.platinum {
  background: var(--card-alt);
  color: var(--text)
}

body.site-shell .market-explorer-mark.ipo {
  background: var(--card-alt);
  color: var(--brand-700);
  font-size: .55rem
}

body.site-shell .market-explorer-mark.broker {
  background: var(--card-alt);
  color: var(--brand-700);
  font-size: .56rem
}

body.site-shell .market-explorer-mark.gmp {
  background: var(--card-alt);
  color: var(--text);
  font-size: .54rem
}

body.site-shell .market-explorer-mark.upcoming {
  background: var(--card-alt);
  color: var(--text);
  font-size: 1rem
}

body.site-shell .static-page .prose {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8
}

body.site-shell .static-page .prose h2,
body.site-shell .static-page .prose h3 {
  color: var(--brand-700);
  font-family: var(--display);
  line-height: 1.13
}

body.site-shell .static-page .prose h2 {
  margin-top: 2rem;
  font-size: clamp(1.55rem, 2.7vw, 2.15rem)
}

@media(max-width:991px) {
  body.site-shell .rate-dashboard .gold-side {
    margin-top: 0
  }

  body.site-shell .blog-single-page .sticky-side {
    position: static
  }

  body.site-shell .broker-review-hero .br-ctacard {
    max-width: 34rem
  }
}

@media(max-width:640px) {
  body.site-shell .article-hero {
    padding: 2rem 0 1.9rem
  }

  body.site-shell .article-hero h1 {
    max-width: 19ch;
    font-size: clamp(1.9rem, 9vw, 2.65rem);
    line-height: 1.07
  }

  body.site-shell .article-hero .ah-lede {
    font-size: .91rem;
    line-height: 1.58
  }

  body.site-shell .rate-dashboard {
    padding-top: 1.2rem;
    padding-bottom: 2.2rem
  }

  body.site-shell .rate-dashboard .rate-location-switcher {
    border-left-width: 4px
  }

  body.site-shell .rate-dashboard .gr-cards {
    grid-template-columns: 1fr
  }

  body.site-shell .blog-index-page form {
    margin-bottom: 1.5rem !important;
    padding: .65rem
  }

  body.site-shell .blog-index-page .input-group {
    flex-wrap: wrap
  }

  body.site-shell .blog-index-page .form-control,
  body.site-shell .blog-index-page .btn-brand {
    width: 100%;
    flex: 0 0 100%
  }

  body.site-shell .blog-index-page .btn-brand {
    margin-top: .45rem
  }

  body.site-shell .blog-single-page .prose {
    padding: 1.1rem
  }

  body.site-shell .blog-story-hero h1 {
    font-size: clamp(1.65rem, 7.2vw, 2.2rem);
    line-height: 1.1
  }

  body.site-shell .calculators-index-page .calc-cat {
    padding: .8rem
  }

  body.site-shell .calculators-index-page .calc-card {
    min-height: 0
  }

  body.site-shell .calculator-hero h1 {
    font-size: clamp(1.7rem, 7.4vw, 2.25rem);
    line-height: 1.1
  }

  body.site-shell .market-archive-page .ipo-boardbar {
    overflow-x: auto
  }

  body.site-shell .market-archive-page .ipo-boardbar a {
    min-width: 116px
  }

  body.site-shell .market-archive-page .ipo-group-h {
    padding: .9rem 1rem;
    font-size: 1.32rem
  }

  body.site-shell .market-archive-hero h1 {
    font-size: clamp(1.7rem, 7.5vw, 2.3rem);
    line-height: 1.1
  }

  body.site-shell .broker-directory-page .brk-filter {
    align-items: stretch;
    flex-wrap: wrap
  }

  body.site-shell .broker-directory-page .brk-filter-lbl {
    width: 100%;
    margin: 0 0 .25rem
  }

  body.site-shell .broker-directory-page .brk-filter a {
    flex: 1;
    text-align: center
  }

  body.site-shell .broker-directory-hero h1 {
    font-size: clamp(1.7rem, 7.4vw, 2.25rem);
    line-height: 1.1
  }

  body.site-shell .broker-review-hero h1 {
    max-width: 17ch;
    font-size: clamp(2rem, 9vw, 2.75rem)
  }

  body.site-shell .broker-review-hero .br-ctacard {
    box-shadow: 4px 4px 0 color-mix(in srgb, var(--ink) 28%, transparent)
  }

  body.site-shell .static-page .card {
    padding: 1.25rem !important;
    box-shadow: 4px 4px 0 var(--brand-100)
  }

  body.site-shell .static-hero h1 {
    font-size: clamp(1.7rem, 7.4vw, 2.25rem);
    line-height: 1.1
  }
}

@media(max-width:991px) {
  body.site-shell .static-page-layout {
    grid-template-columns: 1fr
  }

  body.site-shell .market-explorer-sidebar {
    position: static
  }

  body.site-shell .market-explorer-card nav {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  body.site-shell .market-explorer-card nav a {
    border-right: 1px solid var(--line)
  }

  body.site-shell .market-explorer-card nav a:nth-child(2n) {
    border-right: 0
  }
}

@media(max-width:575px) {
  body.site-shell .market-explorer-card nav {
    grid-template-columns: 1fr
  }

  body.site-shell .market-explorer-card nav a {
    border-right: 0
  }
}

/* Broker review contrast repair: the review hero has a dark canvas, while its
   account card uses a light canvas. Keep the text explicit in both contexts. */
body.site-shell .br-strip {
  background: var(--brand-700);
  color: var(--surface)
}

body.site-shell .br-strip b {
  color: var(--accent-on-dark)
}

body.site-shell .br-strip a {
  color: var(--surface) !important;
  border-bottom-color: var(--line);
  font-weight: 800
}

body.site-shell .br-strip a:hover,
body.site-shell .br-strip a:focus {
  color: #fff !important;
  border-bottom-color: #fff
}

body.site-shell .broker-review-hero .br-hero-head-txt>p {
  color: var(--text) !important
}

body.site-shell .broker-review-hero .br-chips {
  color: var(--surface)
}

body.site-shell .broker-review-hero .br-chip {
  color: var(--surface);
  border-color: rgba(231, 250, 242, .31);
  background: rgba(5, 37, 43, .24)
}

body.site-shell .broker-review-hero .br-chip b {
  color: #fff
}

body.site-shell .broker-review-hero .br-ratebadge .meta {
  color: var(--surface)
}

body.site-shell .broker-review-hero .br-ratebadge .meta b {
  color: #fff
}

body.site-shell .broker-review-hero .ah-meta,
body.site-shell .broker-review-hero .ah-item {
  color: var(--surface)
}

body.site-shell .broker-review-hero .ah-by a,
body.site-shell .broker-review-hero .ah-by strong {
  color: var(--surface)
}

body.site-shell .broker-review-hero .ah-avatar {
  background: var(--accent);
  color: #fff
}

body.site-shell .broker-review-hero .br-ctacard {
  color: var(--text)
}

body.site-shell .broker-review-hero .br-ctacard .eyebrow[style] {
  color: var(--brand-700) !important
}

body.site-shell .broker-review-hero .br-ctacard ul {
  color: var(--text)
}

body.site-shell .broker-review-hero .br-ctacard li {
  color: var(--text);
  font-weight: 650
}

body.site-shell .broker-review-hero .br-ctacard .fine {
  color: var(--text)
}

/* Broker review identity panel: facts replace the promotional offer card. */
body.site-shell .broker-review-hero {
  padding: 2.15rem 0 2rem
}

body.site-shell .broker-review-hero .broker-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(290px, .72fr);
  gap: 2.2rem;
  align-items: stretch
}

body.site-shell .broker-review-hero .broker-hero-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center
}

body.site-shell .broker-review-hero .br-hero-head {
  margin: 0 0 .25rem
}

body.site-shell .broker-review-hero .br-hero-head-txt {
  min-width: 0
}

body.site-shell .broker-review-hero .br-hero-snapshot {
  position: relative;
  overflow: hidden;
  padding: 1.15rem;
  border: 1px solid rgba(229, 246, 237, .32);
  background: rgba(5, 35, 43, .36);
  box-shadow: 7px 7px 0 color-mix(in srgb, var(--ink) 20%, transparent)
}

body.site-shell .broker-review-hero .br-hero-snapshot::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -57px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(220, 239, 101, .45);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(220, 239, 101, .05);
  pointer-events: none
}

body.site-shell .broker-review-hero .br-hero-snapshot>* {
  position: relative;
  z-index: 1
}

body.site-shell .broker-review-hero .br-hero-snapshot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: .8rem;
  color: var(--surface);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase
}

body.site-shell .broker-review-hero .br-verified {
  padding: .25rem .42rem;
  border: 1px solid rgba(190, 237, 213, .42);
  background: rgba(34, 141, 107, .26);
  color: var(--surface);
  font-size: .57rem;
  letter-spacing: .08em;
  white-space: nowrap
}

body.site-shell .broker-review-hero .br-hero-snapshot h2 {
  margin: 0 0 1rem;
  color: var(--surface);
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  line-height: 1.06;
  letter-spacing: -.025em
}

body.site-shell .broker-review-hero .br-hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin: 0
}

body.site-shell .broker-review-hero .br-hero-facts>div {
  min-width: 0;
  padding: .68rem .72rem;
  border: 1px solid rgba(226, 245, 236, .18);
  background: rgba(255, 255, 255, .055)
}

body.site-shell .broker-review-hero .br-hero-facts dt {
  margin: 0 0 .28rem;
  color: var(--on-dark-muted);
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase
}

body.site-shell .broker-review-hero .br-hero-facts dd {
  margin: 0;
  color: var(--surface);
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.32;
  overflow-wrap: anywhere
}

body.site-shell .broker-review-hero .br-hero-exchanges {
  display: flex;
  flex-direction: column;
  gap: .24rem;
  margin: 1rem 0 0;
  padding-top: .78rem;
  border-top: 1px solid rgba(226, 245, 236, .22);
  color: var(--surface);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.4
}

body.site-shell .broker-review-hero .br-hero-exchanges span {
  color: var(--on-dark-muted);
  font-size: .59rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase
}

@media(max-width:991px) {
  body.site-shell .broker-review-hero .broker-hero-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem
  }

  body.site-shell .broker-review-hero .br-hero-snapshot {
    max-width: 42rem
  }
}

@media(max-width:575px) {
  body.site-shell .broker-review-hero {
    padding: 1.65rem 0 1.55rem
  }

  body.site-shell .broker-review-hero .br-hero-head {
    align-items: flex-start
  }

  body.site-shell .broker-review-hero .br-hero-snapshot {
    padding: 1rem;
    box-shadow: 4px 4px 0 color-mix(in srgb, var(--ink) 20%, transparent)
  }

  body.site-shell .broker-review-hero .br-hero-facts {
    grid-template-columns: 1fr
  }
}

/* Unified broker research reports: review and comparison pages share this
   desktop sidebar, hierarchy and partner-link treatment. */
body.site-shell .broker-comparison-hero {
  padding: 2.15rem 0 2rem;
  border: 0;
  background: linear-gradient(122deg, var(--brand-700) 0%, var(--brand-700) 56%, var(--brand-700) 100%)
}

body.site-shell .broker-comparison-hero::before {
  right: -8rem;
  top: -9rem;
  border-color: rgba(239, 211, 116, .33);
  box-shadow: 0 0 0 34px rgba(239, 211, 116, .06), 0 0 0 68px rgba(239, 211, 116, .025)
}

body.site-shell .broker-comparison-hero .cmp-breadcrumb a {
  color: var(--surface)
}

body.site-shell .broker-comparison-hero .cmp-report-copy h1 {
  max-width: 14ch;
  color: var(--surface);
  font-size: clamp(2.1rem, 3.9vw, 3.6rem);
  line-height: 1.03
}

body.site-shell .broker-comparison-hero .cmp-report-copy h1 em {
  color: var(--accent-on-dark)
}

body.site-shell .broker-comparison-hero .cmp-report-copy>p {
  color: var(--surface)
}

body.site-shell .broker-comparison-hero .cmp-report-tags span {
  border-color: rgba(231, 250, 242, .31);
  color: var(--surface)
}

body.site-shell .broker-comparison-hero .cmp-battleboard {
  border-color: rgba(229, 246, 237, .32);
  background: rgba(5, 35, 43, .36);
  box-shadow: 7px 7px 0 color-mix(in srgb, var(--ink) 20%, transparent)
}

body.site-shell .broker-comparison-hero .cmp-battle-vs {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff
}

body.site-shell .broker-comparison-hero .cmp-battle-broker:hover {
  color: var(--accent-on-dark)
}

body.site-shell .broker-comparison-page {
  background: var(--card)
}

body.site-shell .research-report-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start
}

body.site-shell .research-report-content {
  min-width: 0
}

body.site-shell .research-sidebar {
  position: sticky;
  top: calc(var(--hh, 64px) + 18px);
  display: grid;
  gap: 1rem;
  min-width: 0
}

body.site-shell .research-sidebar-nav,
body.site-shell .research-sidebar-promos {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--ink) 8%, transparent)
}

body.site-shell .research-sidebar-nav {
  padding: 1rem .9rem .75rem;
  border-top: 4px solid var(--brand-700)
}

body.site-shell .research-sidebar-kicker {
  display: block;
  margin: 0 0 .38rem;
  color: var(--brand-700);
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase
}

body.site-shell .research-sidebar h2 {
  margin: 0 0 .75rem;
  color: var(--brand-700);
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.05;
  letter-spacing: -.03em
}

body.site-shell .research-sidebar nav {
  display: grid;
  margin: 0 -0.2rem
}

body.site-shell .research-sidebar nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .58rem .55rem;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none
}

body.site-shell .research-sidebar nav a span {
  min-width: 0
}

body.site-shell .research-sidebar nav a i {
  flex: 0 0 auto;
  color: var(--brand-700);
  font-size: .9rem;
  font-style: normal;
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity .16s ease, transform .16s ease
}

body.site-shell .research-sidebar nav a:hover,
body.site-shell .research-sidebar nav a:focus {
  background: var(--card);
  color: var(--brand-700)
}

body.site-shell .research-sidebar nav a:hover i,
body.site-shell .research-sidebar nav a:focus i {
  opacity: 1;
  transform: translateX(0)
}

body.site-shell .research-sidebar nav a.on {
  margin: 0 -.2rem;
  padding-left: .75rem;
  border-top-color: var(--line-strong);
  border-left: 4px solid var(--line-strong);
  background: var(--card-alt);
  color: var(--brand-700)
}

body.site-shell .research-sidebar-promos {
  padding: 1rem .9rem;
  border-top: 4px solid var(--line-strong);
  background: var(--card)
}

body.site-shell .research-sidebar-promos>p {
  margin: 0 0 .75rem;
  color: var(--text);
  font-size: .76rem;
  line-height: 1.5
}

body.site-shell .research-sidebar-promos>a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: .45rem;
  padding: .6rem .65rem;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--brand-700);
  font-size: .72rem;
  font-weight: 900;
  line-height: 1.25;
  text-decoration: none
}

body.site-shell .research-sidebar-promos>a:hover,
body.site-shell .research-sidebar-promos>a:focus {
  border-color: var(--brand-700);
  background: var(--brand-700);
  color: var(--surface)
}

body.site-shell .research-sidebar-promos>a i {
  font-size: .95rem;
  font-style: normal
}

body.site-shell .research-sidebar-promos small {
  display: block;
  margin-top: .75rem;
  color: var(--text);
  font-size: .61rem;
  line-height: 1.45
}

@media(min-width:992px) {

  body.site-shell .br-subnav,
  body.site-shell .cmp-report-nav {
    display: none
  }
}

@media(max-width:991px) {
  body.site-shell .research-report-layout {
    display: block
  }

  body.site-shell .research-sidebar {
    display: none
  }

  body.site-shell .broker-comparison-hero .cmp-report-hero-grid {
    gap: 1.35rem
  }
}

@media(max-width:640px) {
  body.site-shell .broker-comparison-hero {
    padding: 1.65rem 0 1.55rem
  }

  body.site-shell .broker-comparison-hero .cmp-report-copy h1 {
    font-size: clamp(2rem, 9vw, 2.75rem)
  }
}

/* Compact report titles keep detailed broker topics readable at every width. */
body.site-shell .broker-review-hero h1,
body.site-shell .broker-comparison-hero .cmp-report-copy h1 {
  max-width: 20ch;
  font-size: clamp(1.9rem, 2.7vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -.04em
}

@media(max-width:640px) {

  body.site-shell .broker-review-hero h1,
  body.site-shell .broker-comparison-hero .cmp-report-copy h1 {
    max-width: 19ch;
    font-size: clamp(1.7rem, 7.5vw, 2.3rem);
    line-height: 1.1
  }
}

/* Blog desk: featured lead story with two quick reads and a clean guide grid. */
body.site-shell .blog-index-page.is-editorial {
  padding-top: 2rem;
  background: var(--card-alt)
}

body.site-shell .blog-index-page.is-editorial form {
  max-width: none;
  margin: 0 0 1.2rem !important;
  padding: .65rem .75rem;
  border: 1px solid var(--line-strong);
  background: var(--card);
  box-shadow: none
}

body.site-shell .blog-index-page.is-editorial form .input-group {
  max-width: 35rem
}

body.site-shell .blog-index-page.is-editorial .form-control {
  min-height: 42px;
  border-color: var(--line-strong);
  background: var(--surface);
  font-size: .84rem
}

body.site-shell .blog-index-page.is-editorial .btn-brand {
  min-height: 42px;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  background: var(--brand-700);
  border-color: var(--brand-700);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase
}

body.site-shell .blog-editorial-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.93fr) minmax(17rem, .96fr);
  gap: 1.1rem;
  align-items: stretch;
  margin-bottom: 1.1rem
}

body.site-shell .blog-editorial-stack {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  min-width: 0
}

body.site-shell .blog-editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: start
}

body.site-shell .blog-editorial-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--brand-700);
  background: var(--surface);
  box-shadow: none;
  transition: transform .17s ease, box-shadow .17s ease, border-color .17s ease
}

body.site-shell .blog-editorial-card:hover {
  position: relative;
  z-index: 1;
  transform: translate(-3px, -3px);
  border-color: var(--brand-700);
  box-shadow: 7px 7px 0 #dce95f
}

body.site-shell .blog-editorial-image {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--brand-700);
  text-decoration: none
}

body.site-shell .blog-editorial-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(8, 32, 38, .26));
  pointer-events: none
}

body.site-shell .blog-editorial-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease
}

body.site-shell .blog-editorial-card:hover .blog-editorial-image img {
  transform: scale(1.045)
}

body.site-shell .blog-editorial-image.is-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-700));
  color: var(--surface);
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase
}

body.site-shell .blog-editorial-image.is-placeholder::before {
  content: "";
  position: absolute;
  width: 10rem;
  height: 10rem;
  border: 1px solid rgba(220, 233, 95, .6);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(220, 233, 95, .06), 0 0 0 48px rgba(220, 233, 95, .03)
}

body.site-shell .blog-editorial-image.is-placeholder span {
  position: relative;
  z-index: 1
}

body.site-shell .blog-editorial-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 1.05rem 1.1rem .9rem
}

body.site-shell .blog-editorial-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  margin-bottom: .62rem;
  color: var(--text);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase
}

body.site-shell .blog-editorial-meta span {
  min-width: 0;
  overflow: hidden;
  color: var(--brand-700);
  text-overflow: ellipsis;
  white-space: nowrap
}

body.site-shell .blog-editorial-meta time {
  flex: 0 0 auto;
  color: var(--text);
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none
}

body.site-shell .blog-editorial-card h2 {
  margin: 0;
  color: var(--brand-700);
  font-family: var(--font);
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.14
}

body.site-shell .blog-editorial-card h2 a {
  color: inherit;
  text-decoration: none
}

body.site-shell .blog-editorial-card h2 a:hover {
  color: var(--brand-700)
}

body.site-shell .blog-editorial-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: .62rem 0 .85rem;
  color: var(--text);
  font-size: .79rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3
}

body.site-shell .blog-editorial-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  margin-top: auto;
  padding-top: .72rem;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: .64rem;
  font-weight: 700
}

body.site-shell .blog-editorial-foot a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--brand-700);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap
}

body.site-shell .blog-editorial-foot a:hover {
  color: var(--brand-700)
}

body.site-shell .blog-editorial-foot i {
  font-size: .95rem;
  font-style: normal;
  line-height: 1
}

body.site-shell .blog-editorial-card.is-featured {
  border-top-color: var(--brand-700)
}

body.site-shell .blog-editorial-card.is-featured .blog-editorial-image {
  aspect-ratio: 16/7
}

body.site-shell .blog-editorial-card.is-featured .blog-editorial-copy {
  padding: 1.25rem 1.4rem 1rem
}

body.site-shell .blog-editorial-card.is-featured h2 {
  max-width: 28ch;
  font-size: clamp(1.35rem, 2.25vw, 1.95rem);
  line-height: 1.07
}

body.site-shell .blog-editorial-card.is-featured p {
  max-width: 66ch;
  font-size: .88rem;
  -webkit-line-clamp: 2
}

body.site-shell .blog-editorial-card.is-compact {
  min-height: 0
}

body.site-shell .blog-editorial-card.is-compact .blog-editorial-image {
  aspect-ratio: 16/6.15
}

body.site-shell .blog-editorial-card.is-compact .blog-editorial-copy {
  padding: .78rem .85rem .72rem
}

body.site-shell .blog-editorial-card.is-compact .blog-editorial-meta {
  margin-bottom: .38rem;
  font-size: .57rem
}

body.site-shell .blog-editorial-card.is-compact h2 {
  display: -webkit-box;
  font-size: .94rem;
  line-height: 1.12;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden
}

body.site-shell .blog-editorial-card.is-compact .blog-editorial-foot {
  padding-top: .55rem;
  font-size: .6rem
}

body.site-shell .blog-editorial-card.is-compact .blog-editorial-foot a {
  font-size: .58rem
}

@media(max-width:991px) {
  body.site-shell .blog-editorial-spotlight {
    grid-template-columns: 1fr
  }

  body.site-shell .blog-editorial-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none
  }

  body.site-shell .blog-editorial-card.is-compact .blog-editorial-image {
    aspect-ratio: 16/8
  }

  body.site-shell .blog-editorial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:640px) {
  body.site-shell .blog-index-page.is-editorial {
    padding-top: 1rem
  }

  body.site-shell .blog-index-page.is-editorial form {
    padding: .55rem;
    margin-bottom: .9rem !important
  }

  body.site-shell .blog-editorial-stack,
  body.site-shell .blog-editorial-grid {
    grid-template-columns: 1fr;
    gap: .9rem
  }

  body.site-shell .blog-editorial-spotlight {
    gap: .9rem;
    margin-bottom: .9rem
  }

  body.site-shell .blog-editorial-card.is-featured .blog-editorial-image {
    aspect-ratio: 16/9
  }

  body.site-shell .blog-editorial-card.is-featured .blog-editorial-copy {
    padding: 1rem
  }

  body.site-shell .blog-editorial-card.is-featured h2 {
    font-size: 1.34rem
  }
}
/* Fuel cost calculator (fuel/_fuel_calculator) — the gold calculator plus a mode switch. */
body.site-shell .fcalc .gcalc-tabs {
  display: flex;
  flex-wrap: wrap;
  width: 100%
}

body.site-shell .fcalc .gcalc-tabs button {
  flex: 1 1 auto;
  min-width: 0
}

body.site-shell .fcalc .fcalc-input {
  grid-template-columns: minmax(0, 1fr) 118px
}

body.site-shell .fcalc-unit {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 .9rem;
  border: 1px solid var(--line-strong);
  background: var(--card-alt);
  color: var(--muted);
  font-size: .85rem;
  font-weight: 800;
  justify-content: center;
  white-space: nowrap
}

body.site-shell .fcalc-mileage {
  margin-top: .9rem
}

body.site-shell .fcalc-mileage[hidden] {
  display: none !important
}
/* Section headings inside rate-page cards (tables, history, key facts): ".ipo-sec h2"
   squeezed them to .3rem above the table — give them room. The calculator keeps its own. */
.ipo-sec h2.gpt-title {
  margin-bottom: 1rem
}

/* Fuel "key facts" (fuel/_key_facts) */
body.site-shell .fkf .gpt-intro {
  margin-bottom: .75rem;
  line-height: 1.7
}

body.site-shell .fkf .gpt-intro a {
  font-weight: 700
}

body.site-shell .fkf-cards {
  margin-top: 1rem
}

body.site-shell .fkf-cards .gr-card-v small {
  margin-left: .25rem;
  color: var(--muted);
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 700
}

body.site-shell .fkf-sub {
  margin-top: .3rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600
}
@media (max-width: 575.98px) {
  body.site-shell .fkf-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem
  }

  body.site-shell .fkf-cards .gr-card-v {
    font-size: 1.25rem
  }
}
/* ---- Stock archive (/stocks). The stock page itself is styled by assets/css/stock.css. ---- */
body.site-shell .stock-table td { vertical-align: middle }
/* The market lists (/stocks/trending …) as link cards above the table. */
body.site-shell .stock-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px }
body.site-shell .stock-list-link { display: block; padding: 12px 14px; border: 1px solid var(--line, #e3e8ee); border-radius: 12px; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s }
body.site-shell .stock-list-link:hover { border-color: var(--brand, #037c2f); box-shadow: 0 8px 20px -14px rgba(16, 24, 40, .35) }
body.site-shell .stock-list-link b { display: block; font-size: .92rem }
body.site-shell .stock-list-link span { display: block; margin-top: 3px; font-size: .78rem; color: #5d6877 }
@media (max-width: 575.98px) { body.site-shell .stock-lists { grid-template-columns: minmax(0, 1fr) } }
/* ---- Stock ticker in the header's top bar (partials/stock_ticker) ----
   Sits left of the account links, in the
   bar's own small uppercase style; the edges fade so items slide in and out. */
body.site-shell .market-ribbon .stk-ticker {
  flex: 1 1 auto;
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin: 0 .25rem;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%)
}
body.site-shell .stk-track {
  display: flex;
  width: max-content;
  animation: stk-scroll 90s linear infinite
}
body.site-shell .stk-ticker:hover .stk-track,
body.site-shell .stk-ticker:focus-within .stk-track { animation-play-state: paused }
body.site-shell .stk-run { display: flex; align-items: center; flex-shrink: 0 }
body.site-shell .stk-group {
  margin: 0 .5rem 0 1rem;
  padding: .12rem .45rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: #aab4aa;
  font-size: .58rem;
  letter-spacing: .1em;
  white-space: nowrap
}
body.site-shell .stk-item {
  display: inline-flex;
  align-items: baseline;
  gap: .35rem;
  padding: 0 .8rem;
  border-right: 1px solid rgba(255, 255, 255, .1);
  color: #e7ece7;
  font-size: .68rem;
  letter-spacing: .04em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap
}
body.site-shell .stk-item:last-child { border-right: 0 }
body.site-shell a.stk-item:hover { color: #fff }
body.site-shell a.stk-item:hover b { text-decoration: underline }
body.site-shell .stk-item b { font-weight: 800; letter-spacing: .06em }
body.site-shell .stk-p { font-weight: 600; color: #cfd8cf; letter-spacing: .02em }
body.site-shell .stk-c { font-style: normal; font-weight: 800; letter-spacing: .02em }
body.site-shell .stk-c.up { color: #5ee08f }
body.site-shell .stk-c.dn { color: #ff7a7a }
body.site-shell .stk-c.flat { color: #9aa59a }
body.site-shell .stk-go { display: none }
@keyframes stk-scroll { from { transform: translateX(0) } to { transform: translateX(-50%) } }
/* Phones: the prices get the room, the positioning line steps aside. */
@media (max-width: 767.98px) {
  body.site-shell .market-ribbon .stk-ticker { margin-left: -.25rem }
}
@media (prefers-reduced-motion: reduce) {
  body.site-shell .stk-track { animation: none }
  body.site-shell .market-ribbon .stk-ticker { overflow-x: auto; -webkit-mask-image: none; mask-image: none }
  body.site-shell .stk-run[aria-hidden="true"] { display: none }
}
/* The label and the account links keep their size; only the ticker between them flexes. */
body.site-shell .market-ribbon.has-ticker .ribbon-account { flex-shrink: 0; white-space: nowrap }/* Small phones: "Sign in" stays, "Create account" (reachable from sign-in) makes room for the prices. */
@media (max-width: 575.98px) {
  body.site-shell .market-ribbon.has-ticker .ribbon-sep,
  body.site-shell .market-ribbon.has-ticker .ribbon-account a[href$="register"] { display: none }
}/* Laptops (992–1279px): the full menu on one line — no "COMPARE / BROKERS" breaks. */
@media (min-width: 992px) and (max-width: 1279.98px) {
  body.site-shell .main-nav .nav-link {
    white-space: nowrap;
    font-size: .7rem;
    letter-spacing: .04em;
    padding: .7rem .38rem
  }
}
