/*
Theme Name: Kosh Advisors
Description: Custom theme for a CA-led financial services firm — accounting & tax, insurance, loans, unlisted shares.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tricity
*/

/* =========================================================
   1. Design tokens
   ========================================================= */
:root {
  --navy: #0D47A1;
  --navy-light: #1976D2;
  --navy-dark: #0F172A;
  --navy-tint: #EAF1FB;
  --gold: #C9A227;
  --gold-light: #E3C465;
  --gold-dark: #8C6D12;
  --teal: #2A8C82;
  --terracotta: #C97B3D;
  --plum: #7A5C9E;
  --slate-blue: #4C6B8A;

  --ink: #1E293B;
  --muted: #475569;
  --muted-2: #64748B;
  --ground: #F5F7FA;
  --white: #FFFFFF;
  --line: rgba(13, 71, 161, 0.12);
  --card-border: var(--line);

  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 14px 32px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 24px 48px rgba(15, 23, 42, 0.13);

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(64px, 8vw, 104px);
}

/* =========================================================
   2. Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; font-family: 'Playfair Display', Georgia, serif; color: var(--ink); line-height: 1.25; text-wrap: balance; }
/* Playfair defaults to old-style figures (a "3" drops below the line) — force aligned numerals */
h1, h2, h3, h4, .stat-number, .team-name { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--navy-light); outline-offset: 2px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto; clip-path: none; height: auto; width: auto;
  left: 12px; top: 12px; z-index: 1000;
  background: #fff; color: var(--navy); padding: 12px 18px;
  border-radius: 8px; box-shadow: var(--shadow-md); font-weight: 600;
}

/* =========================================================
   3. Balanced grid system
   Column count is chosen per item count so a row is never
   left with a lone orphan:
     .g-2  → 2 items     2 / 1
     .g-3  → 3 items     3 / 1
     .g-4  → 4 items     4 / 2 / 1   (.g-keep-2 stays 2 on phones)
     .g-6  → 6 items     3 / 2 / 1
   ========================================================= */
.g { display: grid; gap: 24px; }
.g-1 { grid-template-columns: minmax(0, 1fr); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3, .g-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-narrow { max-width: 860px; margin-inline: auto; }
.g-narrower { max-width: 420px; margin-inline: auto; }

@media (max-width: 1080px) {
  .g-4, .g-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .g-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .g-2, .g-4, .g-6 { grid-template-columns: minmax(0, 1fr); }
  .g-4.g-keep-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =========================================================
   4. Typography helpers
   ========================================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Jost', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--navy);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--gold); flex-shrink: 0; }

.section-head { max-width: 720px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; align-items: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; }
.section-head p { font-size: 17px; color: var(--muted); }

.lede { font-size: 18px; line-height: 1.8; color: var(--muted); max-width: 860px; }
.lede + .lede { margin-top: 18px; }
.lede strong { color: var(--ink); }
.lede a { color: var(--navy); text-decoration: underline; }

.section-cta { margin-top: 44px; }
.section-cta.center { text-align: center; }

/* Intro: heading left, copy right — fills the width instead of a lone paragraph */
.intro-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.intro-split .section-head { margin-bottom: 0; }
.intro-split .lede { max-width: none; }
.intro-split + .section-head { margin-top: clamp(56px, 7vw, 88px); }
@media (max-width: 900px) { .intro-split { grid-template-columns: minmax(0, 1fr); } }

/* Long-form text (legal pages): readable measure, but on the same left edge as everything else */
.prose > * { max-width: 820px; }
.legal-updated { margin-top: 10px; font-size: 13.5px; color: var(--muted-2); letter-spacing: .02em; }

/* =========================================================
   5. Buttons
   ========================================================= */
.btn, .btn-xs {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid transparent; font-family: inherit; font-weight: 600;
  line-height: 1.2; text-align: center; cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn { padding: 14px 28px; border-radius: 8px; font-size: 15px; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn-xs { padding: 7px 14px; border-radius: 6px; font-size: 13px; }

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-light); box-shadow: 0 10px 24px rgba(13, 71, 161, .25); }
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: var(--gold-light); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--gold-light); color: var(--navy-dark); }
.btn-outline-dark { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy-tint); }
.btn-xs.btn-outline-dark { background: #fff; }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

/* =========================================================
   6. Utility bar + header + navigation
   ========================================================= */
.utility-bar { background: var(--navy-dark); color: rgba(255, 255, 255, .78); font-size: 13px; }
.utility-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 24px; padding-block: 9px; }
.u-left, .u-right { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 22px; }
.u-item { display: inline-flex; align-items: center; gap: 7px; }
.u-item svg { color: var(--gold-light); flex-shrink: 0; }
a.u-item:hover { color: #fff; }
@media (max-width: 760px) {
  .utility-bar .u-left { display: none; }
  .utility-bar .container { justify-content: center; }
}

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }

.brand { display: inline-flex; align-items: center; flex-shrink: 0; line-height: 0; }
.brand img { display: block; height: 46px; width: auto; }
@media (max-width: 480px) { .site-header .brand img { height: 40px; } }
.custom-logo-link img { max-height: 48px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav li { display: flex; }
.main-nav a { position: relative; padding: 8px 0; font-size: 15px; font-weight: 500; color: var(--ink); transition: color .15s ease; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a, .main-nav .current-menu-ancestor > a { color: var(--navy); }
.main-nav a:hover::after, .main-nav .current-menu-item > a::after, .main-nav .current_page_item > a::after, .main-nav .current-menu-ancestor > a::after { transform: scaleX(1); }

/* Dropdown (e.g. Tools → calculators) */
.main-nav li { position: relative; }
.main-nav .menu-item-has-children > a { padding-right: 17px; }
.main-nav .menu-item-has-children::before { content: ""; position: absolute; right: 2px; top: 50%; width: 6px; height: 6px; border-right: 1.7px solid var(--muted-2); border-bottom: 1.7px solid var(--muted-2); transform: translateY(-75%) rotate(45deg); pointer-events: none; transition: transform .2s ease; }
.main-nav .menu-item-has-children:hover::before, .main-nav .menu-item-has-children:focus-within::before { transform: translateY(-25%) rotate(225deg); }
.main-nav .sub-menu {
  position: absolute; top: calc(100% + 20px); left: -20px; z-index: 20; min-width: 290px;
  display: flex; flex-direction: column; gap: 2px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 0 0 12px 12px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.main-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; } /* hover bridge across the gap */
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav li.is-dismissed > .sub-menu { opacity: 0; visibility: hidden; }
.main-nav .sub-menu li { display: block; }
.main-nav .sub-menu a { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border-radius: 8px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.main-nav .sub-menu a::after { display: none; }
.main-nav .sub-menu a:hover, .main-nav .sub-menu a:focus-visible, .main-nav .sub-menu .current-menu-item > a { background: var(--navy-tint); color: var(--navy); }
.menu-desc { font-size: 13px; font-weight: 400; color: var(--muted-2); white-space: normal; }

/* Smaller laptops: tighten spacing so all items fit on one line */
@media (min-width: 1181px) and (max-width: 1340px) {
  .main-nav { gap: 19px; }
  .primary-nav { gap: 22px; }
  .main-nav a { font-size: 14.5px; }
}

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle-bar { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(15, 23, 42, .12);
    padding: 6px var(--gutter) 24px;
    max-height: calc(100vh - 120px); overflow-y: auto;
  }
  .primary-nav.is-open { display: flex; }
  .main-nav { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li { display: block; }
  .main-nav a { display: block; padding: 15px 2px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .main-nav a::after { display: none; }
  .nav-cta { margin-top: 18px; width: 100%; }
  /* Sub-items shown inline, indented under their parent */
  .main-nav .menu-item-has-children::before { display: none; }
  .main-nav .menu-item-has-children > a { padding-right: 2px; }
  .main-nav .sub-menu { position: static; min-width: 0; padding: 0 0 0 16px; gap: 0; background: none; border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .main-nav .sub-menu::before { display: none; }
  .main-nav .sub-menu a { padding: 12px 2px; border-radius: 0; font-size: 15px; font-weight: 500; color: var(--muted); white-space: normal; }
  .main-nav .sub-menu a:hover, .main-nav .sub-menu .current-menu-item > a { background: none; }
  .menu-desc { display: none; }
}

/* =========================================================
   7. Photo placeholders (swap for real photography later)
   ========================================================= */
.photo-placeholder, .media-placeholder {
  background: repeating-linear-gradient(135deg, #E6ECF5 0 10px, #EEF2F8 10px 20px);
  border: 1.5px dashed rgba(13, 71, 161, .28); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--muted-2); text-align: center; padding: 20px;
}
.photo-placeholder span, .media-placeholder span { font-size: 13px; font-weight: 600; max-width: 240px; line-height: 1.45; }
.media-placeholder { aspect-ratio: 4 / 3; }
.avatar-placeholder {
  width: 84px; height: 84px; border-radius: 50%; flex-shrink: 0;
  background: repeating-linear-gradient(135deg, #E6ECF5 0 8px, #EEF2F8 8px 16px);
  border: 1.5px dashed rgba(13, 71, 161, .3);
  display: flex; align-items: center; justify-content: center; color: var(--muted-2);
}
.avatar {
  --av-bg: var(--navy); --av-ink: var(--gold-light);
  width: 84px; height: 84px; border-radius: 50%; flex-shrink: 0;
  background: var(--av-bg); color: var(--av-ink);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .14), 0 6px 16px rgba(15, 23, 42, .12);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; letter-spacing: .02em; line-height: 1;
}
.team-grid .team-card:nth-child(6n+2) .avatar { --av-bg: var(--navy-dark); }
.team-grid .team-card:nth-child(6n+3) .avatar { --av-bg: var(--teal); --av-ink: #fff; }
.team-grid .team-card:nth-child(6n+4) .avatar { --av-bg: var(--gold-dark); --av-ink: #fff; }
.team-grid .team-card:nth-child(6n+5) .avatar { --av-bg: var(--plum); --av-ink: #fff; }
.team-grid .team-card:nth-child(6n+6) .avatar { --av-bg: var(--terracotta); --av-ink: #fff; }

/* =========================================================
   8. Homepage hero
   ========================================================= */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #EAF1FB 0%, var(--ground) 100%); padding: clamp(56px, 7vw, 96px) 0 clamp(112px, 11vw, 144px); }
.hero::before { content: ""; position: absolute; width: 640px; height: 640px; right: -200px; top: -240px; border-radius: 50%; background: radial-gradient(circle, rgba(25, 118, 210, .12) 0%, transparent 65%); pointer-events: none; }
.hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(36px, 4.6vw, 56px); font-weight: 700; line-height: 1.15; }
.hero h1 .mark {
  color: var(--navy); padding: 0 4px;
  background: linear-gradient(transparent 64%, rgba(201, 162, 39, .42) 64%, rgba(201, 162, 39, .42) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero-lede { font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 6px; }
.hero-points li { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.hero-points li::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.hero-media { position: relative; isolation: isolate; }
.hero-media-accent { position: absolute; inset: 28px -24px -24px 28px; background: var(--gold); border-radius: var(--radius-lg); z-index: -1; }
.hero-photo { aspect-ratio: 4 / 4.4; width: 100%; background-color: #fff; box-shadow: var(--shadow-lg); }

/* Hero panel: designed at-a-glance card in place of a photo */
.hero-panel { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 100%); color: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 22px; }
.hero-panel::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 20px 20px; pointer-events: none; }
.hero-panel > * { position: relative; }
.hero-panel-head { display: flex; flex-direction: column; gap: 6px; }
.hero-panel-kicker { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); }
.hero-panel-title { font-family: 'Playfair Display', serif; font-size: clamp(22px, 2.2vw, 27px); font-weight: 700; line-height: 1.25; font-variant-numeric: lining-nums; }
.hero-panel-list { display: flex; flex-direction: column; gap: 10px; }
.hero-panel-list a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #fff; transition: background .2s, border-color .2s, transform .2s; }
.hero-panel-list a:hover, .hero-panel-list a:focus-visible { background: rgba(255, 255, 255, .12); border-color: rgba(227, 196, 101, .55); transform: translateX(3px); }
.hp-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: rgba(227, 196, 101, .16); color: var(--gold-light); display: flex; align-items: center; justify-content: center; }
.hp-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hp-text strong { font-size: 16px; font-weight: 600; }
.hp-text span { font-size: 13px; color: rgba(255, 255, 255, .72); }
.hp-arrow { flex: none; color: var(--gold-light); font-size: 18px; }
.hero-panel-foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); }
.hero-panel-foot div { display: flex; flex-direction: column; gap: 2px; }
.hero-panel-foot strong { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; color: var(--gold-light); line-height: 1.1; font-variant-numeric: lining-nums; }
.hero-panel-foot span { font-size: 13px; color: rgba(255, 255, 255, .72); }
@media (prefers-reduced-motion: reduce) { .hero-panel-list a { transition: none; } .hero-panel-list a:hover { transform: none; } }

@media (max-width: 960px) {
  .hero .container { grid-template-columns: minmax(0, 1fr); }
  .hero-media { max-width: 520px; }
  .hero-media-accent { inset: 18px -12px -16px 14px; }
}

/* Floating intro cards that overlap the hero's bottom edge */
.intro-cards-wrap { position: relative; z-index: 2; margin-top: -76px; }
.intro-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; }
.intro-card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--navy-tint); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.intro-card h3 { font-family: 'Jost', sans-serif; font-size: 17px; font-weight: 600; }
.intro-card p { font-size: 15px; color: var(--muted); }

/* =========================================================
   9. Sections
   ========================================================= */
.content-section { padding-block: var(--section-y); }
.content-section.alt-bg { background: #fff; border-block: 1px solid var(--line); }

/* Thin CTA strip */
.cta-strip { background: linear-gradient(90deg, var(--navy) 0%, var(--navy-light) 100%); padding-block: 30px; }
.cta-strip .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; }
.cta-strip h3 { color: #fff; font-size: clamp(19px, 2.2vw, 24px); font-weight: 600; }

/* Stats strip */
.stats-strip { background: #fff; border-block: 1px solid var(--line); padding-block: 44px; }
.stats-grid { gap: 28px 0; }
.stat-item { text-align: center; padding: 4px 16px; border-left: 1px solid var(--line); }
.stat-item:first-child { border-left: 0; }
.stat-number { display: block; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.1; color: var(--navy); }
.stat-label { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 1080px) {
  .stats-grid.g-4 .stat-item:nth-child(odd) { border-left: 0; }
}
@media (max-width: 860px) {
  .stats-grid.g-3 .stat-item { border-left: 0; }
  .stats-grid.g-3 .stat-item + .stat-item { border-top: 1px solid var(--line); padding-top: 24px; }
}

/* Segment / service cards */
.service-card {
  --accent-color: var(--navy); --accent-tint: var(--navy-tint); --accent-ink: var(--navy);
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 32px 28px 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent-color); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.g > .service-card:nth-child(4n+2) { --accent-color: var(--gold); --accent-tint: #F8F1DC; --accent-ink: var(--gold-dark); }
.g > .service-card:nth-child(4n+3) { --accent-color: var(--teal); --accent-tint: #E3F2F0; --accent-ink: #1F6F67; }
.g > .service-card:nth-child(4n+4) { --accent-color: var(--terracotta); --accent-tint: #F8EADF; --accent-ink: #A35A22; }
.service-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.service-card h3 { font-family: 'Jost', sans-serif; font-size: 19px; font-weight: 600; line-height: 1.35; }
.service-card p { font-size: 15px; color: var(--muted); }
.service-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.service-chip { font-size: 12.5px; font-weight: 500; padding: 5px 12px; border-radius: 999px; background: var(--ground); border: 1px solid var(--line); color: var(--muted); }
.service-tag { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); }
.service-link { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--navy); }
.service-link:hover { color: var(--navy-light); }

/* Plan cards (sub-services inside each segment) */
.plan-card {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.plan-grid .plan-card:nth-child(6n+2) { border-top-color: var(--gold); }
.plan-grid .plan-card:nth-child(6n+3) { border-top-color: var(--teal); }
.plan-grid .plan-card:nth-child(6n+4) { border-top-color: var(--terracotta); }
.plan-grid .plan-card:nth-child(6n+5) { border-top-color: var(--plum); }
.plan-grid .plan-card:nth-child(6n+6) { border-top-color: var(--slate-blue); }
.plan-card h3 { font-family: 'Jost', sans-serif; font-size: 17.5px; font-weight: 600; }
.plan-card p { font-size: 15px; color: var(--muted); }
/* Whole card clickable: the heading link stretches over the card */
.plan-card.is-link { position: relative; }
.plan-card .card-link { color: inherit; }
.plan-card .card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.plan-card .card-link:focus-visible { outline: none; }
.plan-card.is-link:focus-within { outline: 2px solid var(--navy-light); outline-offset: 2px; }
.plan-card .card-more { margin-top: auto; padding-top: 4px; font-size: 14.5px; font-weight: 600; color: var(--navy); }
.plan-card.is-link:hover .card-link, .plan-card.is-link:hover .card-more { color: var(--navy-light); }
.table-scroll { overflow-x: auto; }
.service-disclaimer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); max-width: 900px; font-size: 13px; line-height: 1.65; color: var(--muted-2); }

/* Dark "approach" band */
.approach-band { position: relative; overflow: hidden; background: var(--navy-dark); padding-block: var(--section-y); }
.approach-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.approach-band .container { position: relative; }
.approach-band .eyebrow { color: var(--gold-light); }
.approach-band .section-head h2 { color: #fff; }
.approach-band .section-head p { color: rgba(255, 255, 255, .72); }
.approach-card { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-lg); padding: 28px 26px; display: flex; flex-direction: column; gap: 14px; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.approach-card:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .2); transform: translateY(-3px); }
.approach-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; }
.approach-card h3 { font-family: 'Jost', sans-serif; font-size: 17px; font-weight: 600; color: #fff; }
.approach-card p { font-size: 14.5px; color: rgba(255, 255, 255, .72); }

/* Process steps */
.step-item { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--shadow-sm); }
.alt-bg .step-item { background: var(--ground); box-shadow: none; }
.steps-grid.center .step-item { align-items: center; text-align: center; }
.step-number { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.steps-grid .step-item:nth-child(4n+2) .step-number { background: var(--plum); }
.steps-grid .step-item:nth-child(4n+3) .step-number { background: var(--terracotta); }
.steps-grid .step-item:nth-child(4n+4) .step-number { background: var(--teal); }
.step-item h3 { font-family: 'Jost', sans-serif; font-size: 16.5px; font-weight: 700; }
.step-item p { font-size: 15px; color: var(--muted); }

/* "Who we help" tiles */
.help-tile { position: relative; overflow: hidden; isolation: isolate; min-height: 210px; border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; background: var(--tile-color, var(--navy)); color: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.help-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, rgba(255, 255, 255, .12) 0%, rgba(0, 0, 0, .22) 100%); }
.help-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.help-tile-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center; }
.help-tile h3 { font-family: 'Jost', sans-serif; font-size: 18px; font-weight: 600; color: #fff; }
.help-tile p { margin-top: 4px; font-size: 14.5px; color: rgba(255, 255, 255, .88); }

/* Check-point cards ("why", "things to know", "documents") */
.check-grid .why-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.alt-bg .check-grid .why-item { background: var(--ground); }
.why-item { display: flex; gap: 14px; align-items: flex-start; }
.why-item svg { flex-shrink: 0; margin-top: 3px; color: var(--gold-dark); }
.why-item p { font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.doc-checklist { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }

/* Insurer chips */
.chip-row-wrap { display: flex; flex-direction: column; gap: 14px; margin-bottom: 44px; }
.trust-label { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.alt-bg .chip { background: var(--ground); }

/* Split layout (text + media) */
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(36px, 6vw, 72px); align-items: center; }
.split-media .photo-placeholder { aspect-ratio: 4 / 5; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } .split-media { max-width: 480px; } }

/* About-page "why us" block */
.why-local { background: #fff; border-block: 1px solid var(--line); padding-block: var(--section-y); }
.why-local .check-grid .why-item { background: var(--ground); }
.why-text { display: flex; flex-direction: column; gap: 24px; }
.why-text h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 600; }
.why-list { display: flex; flex-direction: column; gap: 16px; }

/* =========================================================
   10. Team
   ========================================================= */
.team-card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 30px 28px; display: flex; gap: 22px; align-items: flex-start; }
.team-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--navy); }
.team-card.stacked { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.team-card.compact { padding: 26px 22px; }
.team-card.compact .avatar-placeholder, .team-card.compact .avatar { width: 68px; height: 68px; }
.team-card.compact .avatar { font-size: 23px; }
.team-card.compact::before { background: var(--gold); }
.team-card-body { display: flex; flex-direction: column; gap: 4px; }
.team-card.stacked .team-card-body { align-items: center; }
.team-name { font-family: 'Playfair Display', Georgia, serif; font-size: 20px; font-weight: 700; color: var(--ink); }
.team-card.compact .team-name { font-size: 18px; }
.team-role { font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--gold-dark); }
.team-bio { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* =========================================================
   11. FAQ
   ========================================================= */
.faq-list { max-width: 880px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; font-family: 'Jost', sans-serif; font-size: 17px; font-weight: 600; color: var(--ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex-shrink: 0; width: 10px; height: 10px; margin-top: -5px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform .2s ease, margin .2s ease; }
.faq-list details[open] summary::after { transform: rotate(225deg); margin-top: 5px; }
.faq-list summary:hover { color: var(--navy); }
.faq-answer { padding: 0 4px 22px; max-width: 780px; font-size: 15.5px; color: var(--muted); }
.faq-answer a { color: var(--navy); text-decoration: underline; }

.faq-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 26px 24px; }
.alt-bg .faq-card { background: var(--ground); }
.faq-card h3 { font-family: 'Jost', sans-serif; font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.faq-card p { font-size: 15px; color: var(--muted); }

/* =========================================================
   12. Insights (blog preview)
   ========================================================= */
.insight-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.insight-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.insight-thumb { aspect-ratio: 16 / 9; background: var(--navy-tint); display: flex; align-items: center; justify-content: center; color: var(--navy); overflow: hidden; }
.insight-thumb img { width: 100%; height: 100%; object-fit: cover; }
.insight-body { flex: 1; padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.insight-date { font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--gold-dark); }
.insight-body h3 { font-family: 'Jost', sans-serif; font-size: 18px; font-weight: 600; line-height: 1.4; }
.insight-body h3 a:hover { color: var(--navy); }
.insight-body p { font-size: 14.5px; color: var(--muted); }

/* =========================================================
   13. Inner-page hero
   ========================================================= */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%); padding: clamp(56px, 7vw, 92px) 0 clamp(52px, 6vw, 80px); }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.page-hero::after { content: ""; position: absolute; width: 560px; height: 560px; right: -160px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(25, 118, 210, .35) 0%, transparent 65%); pointer-events: none; }
.page-hero-inner { position: relative; z-index: 1; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); text-align: left; }
.page-hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

/* Call-back form on the right of service-page heroes */
.page-hero-inner.has-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 960px) { .page-hero-inner.has-form { grid-template-columns: minmax(0, 1fr); } }
.hero-form-card { position: relative; background: #fff; color: var(--ink); border-top: 3px solid var(--gold); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0, 0, 0, .25); padding: 18px 20px; }
@media (max-width: 960px) { .hero-form-card { max-width: 520px; } }
.hero-form-card h2 { margin-bottom: 12px; font-size: 19px; color: var(--navy-dark); }
.hero-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 480px) { .hero-form-grid { grid-template-columns: minmax(0, 1fr); } }
.hero-form-card .form-field { margin: 0; }
.hero-form-card .form-field input { padding: 10px 12px; font-size: 14.5px; }
.hero-form-submit { width: 100%; justify-content: center; padding: 10px 14px; font-size: 14px; }
.page-hero .hero-form-card .hero-form-error { margin: -4px 0 10px; padding: 7px 10px; max-width: none; border-radius: 6px; background: #FBECEC; font-size: 13px; line-height: 1.4; color: #8A2F2F; }
.hero-form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.hero-form-done { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; }
.hero-form-tick { grid-row: span 2; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #E9F6EE; color: #1E7B4C; }
.hero-form-done h2 { margin: 0; font-size: 17px; }
.page-hero .hero-form-done p { margin: 0; max-width: none; font-size: 14px; line-height: 1.4; color: var(--muted); }
.page-hero h1 { color: #fff; font-size: clamp(32px, 3.8vw, 48px); font-weight: 700; line-height: 1.18; max-width: 820px; }
.page-hero p { color: rgba(255, 255, 255, .84); font-size: clamp(16px, 1.6vw, 18.5px); line-height: 1.7; max-width: 680px; }
.page-hero .eyebrow { color: var(--gold-light); }
.breadcrumb { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; font-size: 13.5px; color: rgba(255, 255, 255, .62); }
.breadcrumb a { color: rgba(255, 255, 255, .85); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb-sep { color: rgba(255, 255, 255, .35); }
.hero-tag { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--navy-dark); background: var(--gold-light); padding: 6px 14px; border-radius: 999px; }

/* =========================================================
   14. Unlisted-shares listings table
   ========================================================= */
.listings-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 16px; }
.listings-search { position: relative; flex: 1 1 320px; max-width: 440px; }
.listings-search input { width: 100%; padding: 12px 14px 12px 42px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: 15px; color: var(--ink); }
.listings-search input:focus { outline: 2px solid var(--navy-light); outline-offset: 1px; border-color: var(--navy-light); }
.listings-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted-2); pointer-events: none; }
.listings-count { font-size: 14px; color: var(--muted); }
.listings-table-wrap { max-height: 640px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.listings-table { width: 100%; min-width: 820px; border-collapse: separate; border-spacing: 0; }
.listings-table thead th { position: sticky; top: 0; z-index: 1; background: #F3F6FB; text-align: left; font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 14px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.listings-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: middle; }
.listings-table tbody tr:hover td { background: #F8FAFD; }
.listings-table tbody tr:last-child td { border-bottom: 0; }
.listings-table .idx-cell { width: 56px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.listings-table .company-cell { font-weight: 600; color: var(--ink); }
.listings-table .num-cell { white-space: nowrap; }
.listings-table .muted-cell { color: var(--muted-2); }
.listings-empty { display: none; padding: 32px; text-align: center; color: var(--muted); }
.listings-note { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.table-actions { display: flex; gap: 8px; }

/* =========================================================
   15. Forms, enquiry dialog, banners
   ========================================================= */
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.form-field input, .form-field textarea, .form-field select { width: 100%; padding: 12px 14px; border: 1px solid rgba(15, 23, 42, .16); border-radius: 8px; background: #fff; font: inherit; font-size: 15px; color: var(--ink); }
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: 2px solid var(--navy-light); outline-offset: 1px; border-color: var(--navy-light); }
.form-row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 600px) { .form-row-2 { grid-template-columns: minmax(0, 1fr); } }
.form-note { font-size: 13px; color: var(--muted-2); margin: 2px 0 18px; }
.form-hint { font-size: 13px; color: var(--muted-2); margin: -8px 0 16px; }

dialog.enquiry-dialog { position: relative; width: 92vw; max-width: 440px; border: none; border-radius: var(--radius-lg); padding: 32px 28px; box-shadow: var(--shadow-lg); font-family: 'Jost', system-ui, sans-serif; color: var(--ink); }
dialog.enquiry-dialog::backdrop { background: rgba(15, 23, 42, .6); }
dialog.enquiry-dialog h3 { font-size: 22px; font-weight: 700; color: var(--navy); margin: 0 28px 8px 0; }
.enquiry-subtitle { font-size: 14px; line-height: 1.55; color: var(--muted); margin-bottom: 22px; }
.dialog-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: none; border-radius: 8px; background: none; font-size: 24px; line-height: 1; color: var(--muted-2); cursor: pointer; }
.dialog-close:hover { background: var(--ground); color: var(--navy); }

.enquiry-banner { padding: 16px 20px; border-radius: var(--radius); font-size: 15px; font-weight: 500; margin-bottom: 28px; }
.enquiry-banner.success { background: #E9F6EE; border: 1px solid #A7D7B8; color: #1E5A35; }
.enquiry-banner.error { background: #FBECEC; border: 1px solid #E8B4B4; color: #8A2F2F; }

/* =========================================================
   16. Contact page
   ========================================================= */
.info-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.info-grid .info-card:nth-child(4n+2) { border-top-color: var(--teal); }
.info-grid .info-card:nth-child(4n+3) { border-top-color: var(--gold); }
.info-grid .info-card:nth-child(4n+4) { border-top-color: var(--terracotta); }
.info-card-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--navy-tint); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.info-card h3 { font-family: 'Jost', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.info-card p, .info-card a { font-size: 16px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.info-card a:hover { color: var(--navy); text-decoration: underline; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(24px, 4vw, 40px); }
.aside-title { font-family: 'Jost', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.next-steps { counter-reset: ns; display: flex; flex-direction: column; gap: 16px; margin: 14px 0 28px; }
.next-steps li { counter-increment: ns; display: flex; gap: 14px; align-items: flex-start; font-size: 15.5px; color: var(--ink); }
.next-steps li::before { content: counter(ns); flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--navy-tint); color: var(--navy); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.hours-card { background: var(--navy-tint); border-radius: var(--radius); padding: 18px 20px; font-size: 15px; color: var(--ink); }
.hours-card strong { display: block; margin-bottom: 4px; color: var(--navy); }

/* =========================================================
   17. Final CTA band
   ========================================================= */
.contact-cta { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--navy) 0%, var(--navy-light) 100%); padding-block: clamp(64px, 8vw, 96px); }
.contact-cta::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.contact-cta .container { position: relative; max-width: 760px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.contact-cta h2 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; }
.contact-cta p { color: rgba(255, 255, 255, .86); font-size: 17px; }
.contact-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }
.contact-email { font-size: 14px; color: rgba(255, 255, 255, .72); }

/* =========================================================
   18. Footer
   ========================================================= */
.site-footer { background: var(--navy-dark); color: rgba(255, 255, 255, .72); padding-top: clamp(56px, 7vw, 80px); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr); gap: 40px 32px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand .brand img { height: 52px; }
.footer-brand p { font-size: 14.5px; line-height: 1.7; max-width: 320px; }
.nowrap { white-space: nowrap; }
.footer-brand .footer-slogan { margin-bottom: -6px; font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 600; line-height: 1.35; color: var(--gold-light); }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-label { margin-bottom: 4px; font-family: 'Jost', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); }
.footer-link { font-size: 14.5px; color: rgba(255, 255, 255, .72); transition: color .15s ease; overflow-wrap: anywhere; }
a.footer-link:hover { color: #fff; }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact-item svg { flex-shrink: 0; margin-top: 3px; color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding-block: 22px; font-size: 13.5px; color: rgba(255, 255, 255, .55); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-legal a:hover { color: #fff; }
.footer-disclaimer { max-width: 1000px; padding-bottom: 32px; font-size: 12.5px; line-height: 1.7; color: rgba(255, 255, 255, .45); }
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================
   20. Calculators (EMI, income tax, life cover)
   ========================================================= */
.calc-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3vw, 36px); align-items: start; }
@media (max-width: 960px) { .calc-layout { grid-template-columns: minmax(0, 1fr); } }

.calc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(22px, 3.5vw, 36px); }
.calc-group + .calc-group { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.calc-group-title { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 20px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.calc-group-title small { font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted-2); }

.calc-field { margin-bottom: 24px; }
.calc-field:last-child { margin-bottom: 0; }
.calc-field-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 12px; }
.calc-field-head label { flex: 1 1 240px; min-width: 0; font-size: 15.5px; font-weight: 600; color: var(--ink); }
@media (max-width: 600px) { .calc-field-head .calc-input { width: 100%; } }
.calc-hint { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; line-height: 1.45; color: var(--muted-2); }
.calc-input { display: flex; align-items: center; width: 200px; max-width: 100%; border: 1px solid rgba(15, 23, 42, .16); border-radius: 8px; background: var(--ground); transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.calc-input:focus-within { border-color: var(--navy-light); background: #fff; box-shadow: 0 0 0 3px rgba(25, 118, 210, .16); }
.calc-input input { flex: 1; min-width: 0; padding: 10px 12px; border: 0; background: transparent; outline: none; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.calc-affix { flex: none; padding: 0 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.calc-select { width: 290px; }
.calc-select select { flex: 1; min-width: 0; padding: 10px 12px; border: 0; background: transparent; outline: none; font: inherit; font-size: 15.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.calc-seg.calc-field { margin-bottom: 24px; }
.calc-rows [hidden] { display: none; }
.calc-affix:first-child { padding-right: 0; }
.calc-affix:last-child { padding-left: 0; }

.calc-range { display: block; width: 100%; height: 6px; margin: 4px 0 0; border-radius: 999px; cursor: pointer; -webkit-appearance: none; appearance: none; background: linear-gradient(to right, var(--navy) var(--fill, 50%), #DCE5F2 var(--fill, 50%)); }
.calc-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); box-shadow: 0 2px 6px rgba(15, 23, 42, .22); }
.calc-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); box-shadow: 0 2px 6px rgba(15, 23, 42, .22); }
.calc-scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12.5px; color: var(--muted-2); }

/* Fields with the label above a full-width box (used where sliders don't help, e.g. tax) */
.calc-row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; }
.calc-row-2 + .calc-row-2, .calc-row-2 + .calc-field, .calc-field + .calc-row-2 { margin-top: 20px; }
.calc-row-2 .calc-field { margin-bottom: 0; }
@media (max-width: 600px) { .calc-row-2 { grid-template-columns: minmax(0, 1fr); } }
.calc-field.stacked { display: flex; flex-direction: column; }
.calc-field.stacked .calc-field-head { flex: 1; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 8px; margin-bottom: 0; }
.calc-field.stacked .calc-field-head label { flex: none; font-size: 14.5px; }
.calc-field.stacked .calc-input { width: 100%; }
.calc-field.stacked .calc-input input { text-align: left; }

/* Segmented choice (e.g. age group) */
.calc-seg { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; }
.calc-seg legend { margin-bottom: 10px; padding: 0; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.calc-seg label { position: relative; }
.calc-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.calc-seg label > span { display: block; padding: 9px 18px; border: 1px solid rgba(15, 23, 42, .16); border-radius: 999px; background: #fff; font-size: 14.5px; font-weight: 500; color: var(--muted); cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.calc-seg label > span:hover { border-color: var(--navy-light); color: var(--navy); }
.calc-seg input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.calc-seg input:focus-visible + span { outline: 2px solid var(--navy-light); outline-offset: 2px; }

/* Advanced assumptions */
.calc-advanced { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.calc-advanced summary { cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--navy); list-style: none; }
.calc-advanced summary::-webkit-details-marker { display: none; }
.calc-advanced summary::before { content: "+"; display: inline-block; width: 18px; font-weight: 700; }
.calc-advanced[open] summary::before { content: "\2212"; }
.calc-advanced[open] summary { margin-bottom: 20px; }

/* Results panel */
.calc-result { position: sticky; top: 104px; overflow: hidden; background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 100%); color: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 22px; }
.calc-result::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 20px 20px; pointer-events: none; }
.calc-result > * { position: relative; }
@media (max-width: 960px) { .calc-result { position: static; } }
.calc-kicker { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); }
.calc-big { font-family: 'Playfair Display', serif; font-size: clamp(36px, 4vw, 48px); font-weight: 700; line-height: 1.05; font-variant-numeric: lining-nums; }
.calc-big-sub { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.calc-rows { margin: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.calc-rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 15px; }
.calc-rows dt { color: rgba(255, 255, 255, .76); }
.calc-rows dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-rows .total { border-bottom-color: rgba(255, 255, 255, .3); }
.calc-rows .total dt, .calc-rows .total dd { color: #fff; font-weight: 700; }
.calc-rows .minus dd { color: #9FD8C8; }
.calc-rows .highlight dt, .calc-rows .highlight dd { color: var(--gold-light); font-weight: 700; }
.calc-swatch { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 3px; vertical-align: 0; }
.calc-donut-wrap { display: flex; align-items: center; gap: 24px; }
.calc-donut { flex: none; width: 116px; height: 116px; transform: rotate(-90deg); }
.calc-donut circle { fill: none; stroke-width: 6; }
.calc-donut .d-interest { stroke: var(--gold-light); }
.calc-donut .d-principal { stroke: rgba(255, 255, 255, .92); transition: stroke-dasharray .3s ease; }
.calc-legend { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.calc-legend strong { color: #fff; font-weight: 600; }
.calc-bar { display: flex; height: 12px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.calc-bar span { display: block; height: 100%; transition: width .3s ease; }
.sw-white { background: rgba(255, 255, 255, .92); }
.sw-gold { background: var(--gold-light); }
.sw-blue { background: #64B5F6; }
.sw-teal { background: #4DB6A9; }
.calc-verdict { padding: 14px 16px; border-left: 3px solid var(--gold-light); border-radius: 0 8px 8px 0; background: rgba(227, 196, 101, .12); font-size: 15px; line-height: 1.5; }
.calc-verdict strong { color: var(--gold-light); }
.calc-compare { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.calc-compare th { padding: 0 0 10px; text-align: right; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.calc-compare td { padding: 9px 0; text-align: right; border-top: 1px solid rgba(255, 255, 255, .1); white-space: nowrap; }
.calc-compare th:first-child, .calc-compare td:first-child { text-align: left; white-space: normal; padding-right: 12px; }
.calc-compare td:first-child { color: rgba(255, 255, 255, .76); }
.calc-compare th + th, .calc-compare td + td { padding-left: 14px; }
.calc-compare .best { color: var(--gold-light); }
.calc-compare tr.total td { border-top-color: rgba(255, 255, 255, .32); font-weight: 700; color: #fff; }
.calc-compare tr.total td.best { color: var(--gold-light); }
.calc-compare tr.sub td { font-size: 13.5px; color: rgba(255, 255, 255, .6); }
.calc-result .btn { justify-content: center; text-align: center; }
.calc-note { font-size: 12.5px; line-height: 1.6; color: rgba(255, 255, 255, .62); }

/* Phones: floating live-result bar (added by calculators.js) */
.calc-mobile-bar { display: none; }
@media (max-width: 960px) {
  .calc-mobile-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--navy-dark); color: #fff; box-shadow: 0 10px 30px rgba(15, 23, 42, .35); transform: translateY(160%); transition: transform .25s ease; }
  .calc-mobile-bar.is-visible { transform: none; }
  .calc-mobile-text { display: flex; flex-direction: column; min-width: 0; }
  .calc-mobile-label { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); }
  .calc-mobile-bar strong { font-family: 'Playfair Display', serif; font-size: 22px; line-height: 1.2; font-variant-numeric: lining-nums; }
  .calc-mobile-go { flex: none; padding: 8px 14px; border-radius: 8px; background: var(--gold); color: var(--navy-dark); font-size: 13.5px; font-weight: 600; }
}

/* Content blocks on calculator pages */
.calc-table-wrap { max-height: 560px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.calc-table { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.calc-table th { position: sticky; top: 0; z-index: 1; padding: 14px 18px; background: #F3F6FB; border-bottom: 1px solid var(--line); text-align: right; font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.calc-table td { padding: 12px 18px; border-bottom: 1px solid var(--line); text-align: right; font-size: 15px; white-space: nowrap; }
.calc-table th:first-child, .calc-table td:first-child { text-align: left; }
.calc-table td:first-child { font-weight: 600; color: var(--ink); }
.calc-table tbody tr:last-child td { border-bottom: 0; }
.calc-table tbody tr:hover td { background: #F8FAFD; }
.compare-table th, .compare-table td { text-align: left; white-space: normal; vertical-align: top; }
.compare-table td:first-child a { color: var(--navy); }
.compare-table td:first-child a:hover { text-decoration: underline; }
.calc-progress { display: inline-flex; align-items: center; gap: 10px; }
.calc-progress i { display: block; width: 64px; height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--teal) var(--p), #E3EAF4 var(--p)); }

.formula { padding: 20px 24px; border-radius: var(--radius); background: var(--navy-tint); font-family: 'Playfair Display', serif; font-size: clamp(18px, 2vw, 22px); font-weight: 600; color: var(--navy-dark); text-align: center; font-variant-numeric: lining-nums; overflow-x: auto; }
.formula + .lede, .lede + .formula { margin-top: 18px; }
.formula-terms { margin-top: 14px; display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.formula-terms strong { color: var(--ink); font-family: 'Playfair Display', serif; }

.slab-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px 24px; }
.g > .slab-card:nth-child(2n) { border-top-color: var(--gold); }
.alt-bg .slab-card { background: var(--ground); box-shadow: none; }
.slab-card h3 { font-family: 'Jost', sans-serif; font-size: 18px; font-weight: 600; margin-bottom: 14px; }
.slab-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.slab-table th { padding: 0 0 10px; text-align: left; font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); }
.slab-table td { padding: 10px 0; border-top: 1px solid var(--line); }
.slab-table th:last-child, .slab-table td:last-child { text-align: right; font-weight: 600; }
/* Fact tables on service pages: longer text values, read left to right */
.facts-table th:last-child, .facts-table td:last-child { text-align: left; }
.facts-table td { vertical-align: top; }
.facts-table td:first-child { width: 42%; padding-right: 18px; color: var(--muted); }
.facts-table td:last-child { color: var(--ink); }
.slab-notes { margin-top: 16px; display: grid; gap: 8px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.slab-notes strong { color: var(--ink); }
.page-note { margin-top: 24px; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* =========================================================
   19. Misc
   ========================================================= */
.cross-note { background: var(--navy-tint); border-radius: var(--radius); padding: 18px 22px; font-size: 15px; line-height: 1.6; margin-top: 32px; }
.cross-note a { color: var(--navy); font-weight: 600; text-decoration: underline; }

/* =========================================================
   21. Blog: article page, article cards, listing
   ========================================================= */

/* Hero byline */
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14.5px; color: rgba(255, 255, 255, .78); }
.hero-meta strong { color: #fff; font-weight: 600; }
.byline-who { display: inline-flex; align-items: center; gap: 10px; }
.hero-meta .avatar { --av-bg: var(--gold-light); --av-ink: var(--navy-dark); width: 34px; height: 34px; font-size: 13px; box-shadow: none; }
.byline-logo { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.byline-sep { color: rgba(255, 255, 255, .4); }
@media (max-width: 600px) {
  .hero-meta { gap: 8px 16px; }
  .byline-sep { display: none; }
  .byline-who { flex-basis: 100%; }
}
.single-post .page-hero-text .breadcrumb { max-width: 100%; }
.single-post .breadcrumb > span:last-child { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Layout: article + sticky sidebar (table of contents, call-back card) */
.article-section { padding-top: clamp(40px, 5vw, 64px); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.article { min-width: 0; max-width: 760px; }
.article-aside { min-width: 0; }
.aside-sticky { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }
.admin-bar .aside-sticky { top: 132px; }
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-aside { max-width: 520px; }
  .aside-sticky { position: static; }
  .toc-side { display: none; }
}
@media (min-width: 1025px) { .toc-inline { display: none; } }

/* "In short" box */
.key-points { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px 26px; margin-bottom: 32px; }
.key-points-title { margin-bottom: 12px; font-family: 'Jost', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.key-points ul { display: grid; gap: 10px; }
.key-points li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.6; }
.key-points li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--gold-dark); border-bottom: 2px solid var(--gold-dark); transform: rotate(-45deg); }

/* Table of contents */
.toc ol { counter-reset: toc; display: grid; gap: 2px; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 6px 10px; border-radius: 6px; font-size: 14px; line-height: 1.45; color: var(--muted); transition: background .15s ease, color .15s ease; }
.toc a::before { content: counter(toc, decimal-leading-zero); flex-shrink: 0; padding-top: 1px; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--gold-dark); }
.toc a:hover, .toc a.is-active { background: var(--navy-tint); color: var(--navy); }
.toc-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 10px 10px; max-height: max(180px, calc(100vh - 470px)); overflow: auto; }
.toc-title { display: block; padding: 0 10px 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-dark); }
.toc-inline { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 32px; }
.toc-inline summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-weight: 600; color: var(--navy-dark); }
.toc-inline summary::-webkit-details-marker { display: none; }
.toc-inline summary::after { content: ""; width: 9px; height: 9px; margin-top: -4px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform .2s ease; }
.toc-inline[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.toc-inline ol { padding: 0 8px 12px; }

/* Article text */
.article-body { font-size: 17px; line-height: 1.75; color: var(--ink); }
.article-body > * + * { margin-top: 1.1em; }
.article-body > :first-child { margin-top: 0; }
.article-body h2 { margin-top: 2.1em; font-size: clamp(24px, 2.6vw, 30px); font-weight: 600; }
.article-body h3 { margin-top: 1.6em; font-family: 'Jost', sans-serif; font-size: 19.5px; font-weight: 600; line-height: 1.4; }
.article-body h2 + *, .article-body h3 + * { margin-top: .7em; }
.article-body a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.article-body strong { font-weight: 600; color: var(--navy-dark); }
.article-body ul, .article-body ol { display: grid; gap: .45em; padding-left: 1.4em; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li::marker { color: var(--gold-dark); }
.article-body .table-scroll { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.article-body th { padding: 12px 14px; background: #F3F6FB; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; font-weight: 600; letter-spacing: .03em; color: var(--muted); }
.article-body td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-body th, .article-body td { min-width: 110px; }
.article-body tr:last-child td { border-bottom: 0; }
.article-body td:first-child { font-weight: 500; color: var(--navy-dark); }
.article-body .callout { background: var(--navy-tint); border-left: 4px solid var(--navy); border-radius: var(--radius); padding: 16px 20px; font-size: 16px; line-height: 1.65; }
.article-body .callout p + p { margin-top: .6em; }

/* FAQs, sources, author, disclaimer */
.article-faqs { margin-top: 56px; }
.article-faqs .section-head { margin-bottom: 16px; }
.article-faqs .section-head h2 { font-size: clamp(24px, 2.6vw, 30px); }
.article-sources { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.article-sources h2 { margin-bottom: 12px; font-family: 'Jost', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.article-sources ol { display: grid; gap: 6px; padding-left: 1.3em; list-style: decimal; font-size: 14.5px; color: var(--muted); }
.article-sources a { color: var(--navy); text-decoration: underline; overflow-wrap: anywhere; }
.author-box { margin-top: 36px; display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 22px 24px; }
.author-box .avatar { width: 56px; height: 56px; font-size: 20px; }
.author-logo img { width: 56px; height: 56px; border-radius: 14px; }
.author-label { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); }
.author-name { margin: 2px 0 4px; font-family: 'Playfair Display', Georgia, serif; font-size: 20px; font-weight: 700; color: var(--navy-dark); }
.author-role { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.author-role a { color: var(--navy); font-weight: 600; text-decoration: underline; }
.article-disclaimer { margin-top: 28px; display: grid; gap: 10px; font-size: 13px; line-height: 1.65; color: var(--muted-2); }

/* Call-back card in the sidebar */
.article-aside .hero-form-card { box-shadow: var(--shadow-md); }
.hero-form-grid.is-stacked { grid-template-columns: minmax(0, 1fr); }
.article-aside .hero-form-error { margin: -4px 0 10px; padding: 7px 10px; border-radius: 6px; background: #FBECEC; font-size: 13px; line-height: 1.4; color: #8A2F2F; }
.article-aside .hero-form-done p { margin: 0; font-size: 14px; line-height: 1.4; color: var(--muted); }

/* Article cards */
.post-card {
  --pc-accent: var(--navy); --pc-tint: var(--navy-tint); --pc-ink: var(--navy);
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 26px 26px 22px; transition: transform .2s ease, box-shadow .2s ease;
}
.post-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--pc-accent); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card.accent-teal { --pc-accent: var(--teal); --pc-tint: #E3F2F0; --pc-ink: #1F6F67; }
.post-card.accent-terracotta { --pc-accent: var(--terracotta); --pc-tint: #F8EADF; --pc-ink: #A35A22; }
.post-card.accent-plum { --pc-accent: var(--plum); --pc-tint: #EFE9F6; --pc-ink: #5E4380; }
.post-card.accent-gold { --pc-accent: var(--gold); --pc-tint: #F8F1DC; --pc-ink: var(--gold-dark); }
.post-card-top { display: flex; align-items: center; gap: 10px; }
.post-card-icon { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--pc-tint); color: var(--pc-ink); }
.post-card-cat { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--pc-ink); }
.post-card-title { font-family: 'Jost', sans-serif; font-size: 19px; font-weight: 600; line-height: 1.4; }
.post-card-title a::after { content: ""; position: absolute; inset: 0; }
.post-card:hover .post-card-title a { color: var(--navy); }
.post-card p { flex: 1; font-size: 15px; line-height: 1.6; color: var(--muted); }
.post-card-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted-2); }

/* Listing: topic chips and pagination */
.topic-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.topic-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; font-weight: 500; color: var(--ink); transition: border-color .15s ease, color .15s ease; }
.topic-chip span { padding: 1px 8px; border-radius: 999px; background: var(--ground); font-size: 12px; font-weight: 600; color: var(--muted-2); }
.topic-chip:hover { border-color: var(--navy); color: var(--navy); }
.topic-chip.is-current { background: var(--navy); border-color: var(--navy); color: #fff; }
.topic-chip.is-current span { background: rgba(255, 255, 255, .18); color: #fff; }
.blog-pagination { margin-top: 44px; }
.blog-pagination ul { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-pagination a, .blog-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-weight: 500; }
.blog-pagination .current { background: var(--navy); border-color: var(--navy); color: #fff; }
.blog-pagination a:hover { border-color: var(--navy); color: var(--navy); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
