/*
 * Design tokens ported 1:1 from the React app's src/styles.css (Leadway
 * Trustees Tailwind theme). Same oklch values, same radii/shadow formulas.
 */
:root {
  --radius: 0.625rem;
  --radius-2xl: calc(var(--radius) + 8px);

  --background: oklch(1 0 0);
  --foreground: oklch(0.242 0.003 286);
  --card: oklch(1 0 0);

  --primary: oklch(0.687 0.196 40.6); /* #ff6b22 */
  --primary-foreground: oklch(1 0 0);
  --primary-dark: oklch(0.628 0.187 40.2); /* #e85a14 */
  --primary-tint: oklch(0.965 0.017 45); /* #fff1ea */

  --ink: oklch(0.242 0.003 286); /* #1c1c1e */
  --ink-foreground: oklch(1 0 0);
  --surface-warm: oklch(0.979 0.005 67); /* #faf7f4 */

  --muted-foreground: oklch(0.435 0.006 286); /* #4a4a4f */
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(1 0 0);
  --border: oklch(0.925 0.006 67); /* #ece7e2 */
  --input: oklch(0.925 0.006 67);
  --ring: oklch(0.687 0.196 40.6);

  --shadow-soft: 0 6px 24px -12px oklch(0 0 0 / 0.18);
  --shadow-lift: 0 18px 40px -20px oklch(0 0 0 / 0.28);

  --font-sans: "Ubuntu", ui-sans-serif, system-ui, sans-serif;
}

/* ---------------- Base ---------------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* `.lw-bleed` sections are 100vw wide, which includes the vertical scrollbar
   on Windows — ~15px wider than the page. Clip (unlike `hidden`) doesn't
   create a scroll container, so the sticky header keeps working. */
html, body { overflow-x: clip; }

body {
  margin: 0;
  background-color: var(--background);
  color: var(--muted-foreground);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
}

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

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---------------- Layout ---------------- */

.container-page {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Classic full-bleed breakout: escapes any ancestor's width constraint
   (including Elementor's boxed .elementor-container), since vw units are
   always relative to the viewport regardless of ancestor width/overflow. */
.lw-bleed { position: relative; left: 50%; right: 50%; width: 100vw; margin-left: -50vw; margin-right: -50vw; }

.bg-ink { background-color: var(--ink); }
.bg-primary { background-color: var(--primary); }
.bg-surface-warm { background-color: var(--surface-warm); }
.text-ink-foreground { color: var(--ink-foreground); }
.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }

/* ---------------- Reveal on scroll ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal[data-visible="true"] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------------- Buttons ---------------- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  border: none;
}
.pill-primary { background: var(--primary); color: var(--primary-foreground); }
.pill-primary:hover { background: var(--primary-dark); }
.pill-outline-light { border: 1px solid oklch(1 0 0 / 0.7); color: var(--primary-foreground); background: transparent; }
.pill-outline-light:hover { background: var(--primary-foreground); color: var(--ink); }
.pill-outline-dark { border: 1px solid var(--border); color: var(--foreground); background: transparent; }
.pill-outline-dark:hover { border-color: var(--primary); color: var(--primary); }

/* ---------------- Cards ---------------- */

.soft-card {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s, box-shadow 0.3s;
}
.soft-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.icon-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  width: 3.5rem;
  border-radius: 9999px;
  background: var(--primary-tint);
  color: var(--primary);
  margin-bottom: 1rem;
}
.icon-bubble svg { height: 1.5rem; width: 1.5rem; }

/* ---------------- Section heading ---------------- */

.section-heading { max-width: 42rem; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading .eyebrow {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
}
.section-heading h2 { font-size: 1.875rem; }
@media (min-width: 640px) { .section-heading h2 { font-size: 2.25rem; } }
.section-heading .intro { margin-top: 1rem; }

/* ---------------- Grids ---------------- */

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Same breakpoints as the source's `sm:grid-cols-2 lg:grid-cols-3/4` (640 / 1024). */
@media (max-width: 1023px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
/* `md:grid-cols-3` (one column below 768px). */
.grid-md-3 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-md-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* `py-16 sm:py-24` — the vertical rhythm of almost every section in the source. */
.section-py { padding-block: 4rem; }
@media (min-width: 640px) { .section-py { padding-block: 6rem; } }

/* Tailwind text sizes used by the source (size + line-height pairs). */
.text-xs { font-size: 0.75rem; line-height: 1.3333; }
.text-sm { font-size: 0.875rem; line-height: 1.4286; }
.text-base { font-size: 1rem; line-height: 1.5; }
.text-lg { font-size: 1.125rem; line-height: 1.5556; }
.text-xl { font-size: 1.25rem; line-height: 1.4; }
.text-center { text-align: center; }

/* ---------------- Page banner ---------------- */

.page-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  padding: 4rem 0;
}
/* Two classes so it outranks Elementor's `.elementor img` reset (0,1,1). */
.page-banner .page-banner-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0.35; }
.page-banner .page-banner-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, var(--ink), oklch(0.242 0.003 286 / 0.9), oklch(0.242 0.003 286 / 0.6)); }
.page-banner .breadcrumb { margin-top: 1rem; font-size: 0.875rem; color: oklch(1 0 0 / 0.75); }
.page-banner .breadcrumb a:hover { color: var(--primary); }
.page-banner .breadcrumb .sep { margin-inline: 0.5rem; }
.page-banner .breadcrumb .current { color: var(--primary); }
@media (min-width: 640px) { .page-banner { padding: 6rem 0; } }
.page-banner .eyebrow {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
}
.page-banner h1 { font-size: 1.875rem; color: var(--ink-foreground); }
@media (min-width: 640px) { .page-banner h1 { font-size: 3rem; } }

/* ---------------- Header ---------------- */

.top-bar { background: var(--ink); color: var(--ink-foreground); display: none; }
@media (min-width: 1024px) { .top-bar { display: block; } }
.top-bar .container-page { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 0.5rem; font-size: 0.75rem; }
.top-bar a { display: inline-flex; align-items: center; gap: 0.5rem; color: oklch(1 0 0 / 0.85); }
.top-bar a:hover { color: var(--primary); }
.top-bar-right { display: flex; align-items: center; gap: 1.25rem; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--background); transition: box-shadow 0.2s; }
.site-header.scrolled { box-shadow: var(--shadow-soft); }
.site-header .container-page { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.75rem; }
/* Horizontal dark-text logo (the footer uses the stacked white-text one). */
.site-header .logo img { height: 2.5rem; width: auto; }
.site-header.scrolled .logo img { height: 2.25rem; }

.main-nav { display: none; }
@media (min-width: 1024px) { .main-nav { display: block; } }
.main-nav > ul { display: flex; align-items: center; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a { display: inline-flex; align-items: center; gap: 0.25rem; border-radius: 9999px; padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500; color: var(--foreground); }
.main-nav > ul > li > a:hover { color: var(--primary); }
.main-nav .sub-menu {
  position: absolute; left: 0; top: 100%; z-index: 10; width: 16rem;
  border-radius: var(--radius-2xl); border: 1px solid var(--border);
  background: var(--card); padding: 0.5rem; box-shadow: var(--shadow-lift);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub-menu a { display: block; border-radius: 0.75rem; padding: 0.5rem 0.75rem; font-size: 0.875rem; color: var(--foreground); }
.main-nav .sub-menu a:hover { background: var(--primary-tint); color: var(--primary); }

.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; }
.icon-btn { display: inline-flex; padding: 0.5rem; border-radius: 9999px; background: none; border: none; color: var(--foreground); }
.icon-btn:hover { color: var(--primary); }
.menu-toggle { display: inline-flex; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.header-actions .pill { display: none; }
@media (min-width: 640px) { .header-actions .pill { display: inline-flex; } }

.mobile-drawer-overlay { position: fixed; inset: 0; z-index: 50; background: oklch(0.242 0.003 286 / 0.6); display: none; }
.mobile-drawer-overlay.open { display: block; }
.mobile-drawer { position: fixed; right: 0; top: 0; z-index: 51; height: 100%; width: 85%; max-width: 24rem; overflow-y: auto; background: var(--background); padding: 1.5rem; box-shadow: var(--shadow-lift); transform: translateX(100%); transition: transform 0.25s; }
.mobile-drawer.open { transform: translateX(0); }
@media (min-width: 1024px) { .mobile-drawer-overlay, .mobile-drawer { display: none !important; } }
.mobile-drawer-head { display: flex; align-items: center; justify-content: space-between; }
.mobile-nav { margin-top: 1.5rem; }
.mobile-nav > li { border-bottom: 1px solid var(--border); }
.mobile-nav > li > a, .mobile-nav .accordion-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 0.75rem 0; font-weight: 500; color: var(--foreground); background: none; border: none; text-align: left; }
.mobile-nav .sub-menu { display: none; padding-bottom: 0.5rem; padding-left: 0.75rem; }
.mobile-nav .sub-menu.open { display: block; }
.mobile-nav .sub-menu li a { display: block; padding: 0.5rem 0; font-size: 0.875rem; }
.mobile-nav .accordion-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.chevron { transition: transform 0.2s; }

/* ---------------- Footer ---------------- */

.site-footer { background: var(--ink); color: var(--ink-foreground); }
.site-footer .container-page { display: grid; gap: 2.5rem; padding-block: 3.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .site-footer .container-page { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer .container-page { grid-template-columns: repeat(4, 1fr); } }
.site-footer h3 { color: var(--ink-foreground); font-size: 1rem; }
.site-footer ul { margin-top: 1rem; }
.site-footer li { margin-top: 0.5rem; font-size: 0.875rem; color: oklch(1 0 0 / 0.75); }
.site-footer a:hover { color: var(--primary); }
.site-footer .footer-logo img { height: 3rem; width: auto; filter: brightness(0) invert(1); }
.site-footer .footer-about { margin-top: 1rem; font-size: 0.875rem; color: oklch(1 0 0 / 0.75); }
.footer-contact li { display: flex; gap: 0.75rem; align-items: flex-start; }
.footer-bottom { border-top: 1px solid oklch(1 0 0 / 0.1); }
.footer-bottom .container-page { display: block; padding-block: 1.25rem; text-align: center; font-size: 0.75rem; color: oklch(1 0 0 / 0.65); }

/* ---------------- Overlapping circular photos (Home "About us") ---------------- */

.lw-about-photos { position: relative; margin-inline: auto; height: 22rem; width: 100%; max-width: 28rem; }
/* Elementor's own frontend.css has a bare `.elementor img { border-radius: 0; }`
   reset (specificity 0,1,1) that loads after this stylesheet, so it wins the
   tie against a plain `.lw-about-photos img` rule at equal specificity. Using
   both classes on every rule here (0,2,0) beats it outright. */
.lw-about-photos .lw-photo-primary, .lw-about-photos .lw-photo-secondary {
  position: absolute; border-radius: 9999px; object-fit: cover; box-shadow: var(--shadow-lift);
}
.lw-about-photos .lw-photo-primary { left: 0; top: 0; height: 16rem; width: 16rem; }
.lw-about-photos .lw-photo-secondary { right: 0; bottom: 0; height: 11rem; width: 11rem; border: 8px solid var(--surface-warm); }
@media (min-width: 640px) {
  .lw-about-photos .lw-photo-primary { height: 18rem; width: 18rem; }
  .lw-about-photos .lw-photo-secondary { height: 14rem; width: 14rem; }
}

/* ---------------- Hero slider ---------------- */

.hero-slider { position: relative; overflow: hidden; background: var(--ink); }
.hero-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 0.7s; }
.hero-slide.active { position: relative; opacity: 1; pointer-events: auto; }
.hero-slide-inner { position: relative; min-height: 100vh; width: 100%; }
/* Two classes to outrank Elementor's `.elementor img { height: auto }`, which
   otherwise leaves the photo at its natural height and the slide's dark
   background showing underneath it. */
.hero-slider .hero-slide img { position: absolute; inset: 0; height: 100%; width: 100%; max-width: none; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, oklch(0.242 0.003 286 / 0.9), oklch(0.242 0.003 286 / 0.75), oklch(0.242 0.003 286 / 0.3)); }
.hero-content { position: relative; display: flex; min-height: 100vh; flex-direction: column; justify-content: center; padding-block: 6rem; }
.hero-text { max-width: 42rem; }
.hero-text .eyebrow { margin-bottom: 0.75rem; font-size: 0.875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.2em; color: var(--primary); }
.hero-text h1 { font-size: 2.25rem; color: var(--ink-foreground); }
@media (min-width: 640px) { .hero-text h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-text h1 { font-size: 3.75rem; } }
.hero-text .sub { margin-top: 1rem; font-size: 1.125rem; color: oklch(1 0 0 / 0.85); }
.hero-text .ctas { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-arrow { position: absolute; top: 50%; z-index: 10; display: inline-flex; height: 2.75rem; width: 2.75rem; transform: translateY(-50%); align-items: center; justify-content: center; border-radius: 9999px; border: 1px solid oklch(1 0 0 / 0.4); color: var(--ink-foreground); background: transparent; }
.hero-arrow:hover { background: var(--primary); border-color: var(--primary); }
.hero-arrow.prev { left: 0.75rem; }
.hero-arrow.next { right: 0.75rem; }

/* ---------------- Milestones / CTA bands ---------------- */

.milestones-band, .cta-band { background: var(--primary); padding-block: 3.5rem; }
@media (min-width: 640px) { .milestones-band { padding-block: 5rem; } }
.milestones-band .container-page { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .milestones-band .container-page { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .milestones-band .container-page { grid-template-columns: 1fr; } }
.milestone-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.milestone-year { display: flex; height: 6rem; width: 6rem; align-items: center; justify-content: center; border-radius: 9999px; border: 2px solid oklch(1 0 0 / 0.5); font-size: 1.5rem; font-weight: 700; color: var(--primary-foreground); }
.milestone-text { margin-top: 1rem; font-size: 0.875rem; color: oklch(1 0 0 / 0.9); }

.cta-band .container-page { display: flex; flex-direction: column; gap: 1.5rem; text-align: center; }
@media (min-width: 640px) { .cta-band .container-page { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; } }
.cta-band h2 { font-size: 1.5rem; color: var(--primary-foreground); }
@media (min-width: 640px) { .cta-band h2 { font-size: 1.875rem; } }

/* ---------------- Testimonials ---------------- */

/* Elementor ships `.elementor .elementor-widget:not(...):not(...) figure { margin: 0 }`
   (specificity 0,4,1) which beats a plain `.testimonial-figure` rule (0,1,0)
   for the figure's margins (centering, and the source's mt-10 below the
   heading) — !important is the pragmatic fix. */
.testimonial-figure { margin: 2.5rem auto 0 !important; max-width: 48rem; border-radius: var(--radius-2xl); background: var(--card); padding: 2rem; text-align: center; box-shadow: var(--shadow-soft); }
.testimonial-figure svg { margin-inline: auto; height: 2rem; width: 2rem; color: var(--primary); }
.testimonial-figure blockquote { margin-top: 1rem; font-size: 1.125rem; }
.testimonial-figure figcaption { margin-top: 1.25rem; font-weight: 500; color: var(--foreground); }
.testimonial-dots { margin-top: 1.5rem; display: flex; justify-content: center; gap: 0.5rem; }
.testimonial-dots button { height: 0.625rem; width: 0.625rem; border-radius: 9999px; background: var(--border); border: none; padding: 0; }
.testimonial-dots button.active { background: var(--primary); }

/* ---------------- Forms (Contact / LOA placeholder) ---------------- */

.lt-field { margin-top: 0.25rem; width: 100%; border-radius: 0.75rem; border: 1px solid var(--input); background: var(--background); padding: 0.75rem 1rem; font-size: 0.875rem; color: var(--foreground); outline: none; }
.lt-field:focus { border-color: var(--primary); }
.lt-label { font-size: 0.875rem; font-weight: 500; color: var(--foreground); }
.quform-placeholder { border: 2px dashed var(--border); border-radius: var(--radius-2xl); padding: 2rem; text-align: center; color: var(--muted-foreground); background: var(--surface-warm); }
.quform-placeholder code { background: var(--primary-tint); color: var(--primary-dark); padding: 0.15rem 0.5rem; border-radius: 0.4rem; }

/* ---------------- Shared content components ---------------- */

.card-col { display: flex; height: 100%; flex-direction: column; }
.card-grow { flex: 1; }
.text-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; line-height: 1.4286; font-weight: 500; color: var(--primary); }
.text-link:hover { color: var(--primary-dark); }
.link-icon { display: inline-flex; }
.link-icon svg { height: 1rem; width: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-row.center { justify-content: center; }
.btn-col { display: flex; flex-direction: column; gap: 0.75rem; }
.pill.w-full { width: 100%; }
.pill.is-active { border-color: var(--primary); color: var(--primary); }

/* Equal-height cards across a row of Elementor columns (the source's `h-full`
   cards in a CSS grid). Elementor doesn't stretch widgets to the column's
   height, so a card with less text would otherwise end up shorter. */
.elementor-column:has(.card-fill) > .elementor-widget-wrap { align-content: stretch; align-items: stretch; }
/* Works with and without Elementor's "Optimized Markup" — sites where it's off
   wrap every widget's content in an extra .elementor-widget-container. */
.elementor-widget-html:has(.card-fill),
.elementor-widget-html:has(.card-fill) > .elementor-widget-container { display: flex; }
.elementor-widget-html:has(.card-fill) > .elementor-widget-container { flex: 1; }
.elementor-widget-html .card-fill { flex: 1; }

/* Paragraphs inside Elementor Text Editor widgets (theme resets p margins). */
.elementor-widget-text-editor p + p { margin-top: 1rem; }

/* Extra space between content groups in one column: Elementor's 20px widget
   gap + 28px = the source's `space-y-12`. */
.lw-group { margin-top: 1.75rem; }

.link-list { margin-top: 1.25rem; display: grid; gap: 0.75rem; }
.link-list a { font-weight: 500; color: var(--primary); }
.link-list a:hover { color: var(--primary-dark); }

/* About Us milestones timeline (about-us.tsx). */
.timeline { position: relative; border-left: 2px solid var(--border); padding-left: 2rem; }
.timeline > li { position: relative; }
.timeline > li + li { margin-top: 2rem; }
.timeline-dot { position: absolute; left: -2.6rem; display: flex; height: 2rem; width: 2rem; align-items: center; justify-content: center; border-radius: 9999px; background: var(--primary); color: var(--primary-foreground); font-size: 0.75rem; font-weight: 700; }
.timeline h3 { color: var(--primary); }
.timeline p { margin-top: 0.25rem; }

/* [leadway_form_card] — card around a form (Contact, iWills) or the warm
   variant used by Estate Management. */
.form-card.warm { margin-top: 1.25rem; border-radius: 10px; background: var(--surface-warm); padding: 1rem; }
@media (min-width: 640px) { .form-card.warm { padding: 2rem; } }
.form-card h2 + .form-card-body { margin-top: 1.5rem; }

/* Panels: the source's plain `rounded-2xl border bg-card shadow-soft` boxes (no hover lift). */
.panel { border-radius: var(--radius-2xl); border: 1px solid var(--border); background: var(--card); padding: 1.5rem; box-shadow: var(--shadow-soft); }
.panel.p-8 { padding: 2rem; }
.soft-card.tint { background: var(--primary-tint); }

.chip { display: inline-block; border-radius: 9999px; background: var(--primary-tint); color: var(--primary); padding: 0.25rem 0.75rem; font-size: 0.75rem; line-height: 1.3333; font-weight: 500; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.checklist { margin-top: 1.25rem; display: grid; gap: 0.75rem; }
.checklist li { display: flex; gap: 0.75rem; font-size: 0.875rem; line-height: 1.4286; }
.checklist .check-icon { margin-top: 0.125rem; flex-shrink: 0; color: var(--primary); }
.checklist .check-icon svg { height: 1rem; width: 1rem; }

.circle-list { margin-top: 1rem; display: grid; gap: 0.75rem; }
.circle-list.loose { gap: 1rem; }
.circle-list li { display: flex; gap: 0.75rem; }
.circle-list .circle-icon { margin-top: 0.25rem; flex-shrink: 0; color: var(--primary); }
.circle-list .circle-icon svg { height: 1.25rem; width: 1.25rem; }
.circle-list-title { display: block; font-weight: 500; color: var(--foreground); }
.circle-list-text { display: block; }

/* Annuity Loans aside: `lg:sticky lg:top-28`. The sticky element must be the
   Elementor widget itself — its column is the tall box it can travel within. */
@media (min-width: 1025px) {
  .elementor-widget-html:has(.sticky-aside) { position: sticky; top: 7rem; align-self: flex-start; }
}

/* Alternating image/text rows: the image column comes first only on wide
   screens (source: `lg:order-1`), so stacked layouts still read text-first. */
@media (min-width: 1025px) {
  .elementor-column:has(.lw-order-first) { order: -1; }
}

/* Two classes on every rule below that styles an <img>, to outrank Elementor's
   `.elementor img { border-radius: 0; height: auto; box-shadow: none }`. */
.lw-photo .lw-photo-img { display: block; width: 100%; height: 20rem; max-width: none; object-fit: cover; border-radius: var(--radius-2xl); box-shadow: var(--shadow-lift); }

/* ---------------- Our Board ---------------- */

.board-card { display: flex; height: 100%; flex-direction: column; align-items: center; text-align: center; }
.board-card.lead { border-color: var(--primary); }
.board-card .board-photo { height: 8rem; width: 8rem; max-width: none; border-radius: 9999px; object-fit: cover; }
.board-card h3 { margin-top: 1.25rem; }
.board-role { margin-top: 0.25rem; color: var(--primary); }
.board-bio { margin-top: 0.75rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.board-card .pill { margin-top: 1.25rem; }
dialog.bio-dialog { width: calc(100% - 2rem); max-width: 42rem; max-height: 85vh; overflow-y: auto; border: 0; border-radius: var(--radius-2xl); background: var(--card); padding: 2rem; color: var(--muted-foreground); box-shadow: var(--shadow-lift); }
dialog.bio-dialog::backdrop { background: oklch(0.242 0.003 286 / 0.75); }
.bio-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.bio-who { display: flex; min-width: 0; align-items: center; gap: 1rem; }
.bio-dialog .bio-photo { height: 4rem; width: 4rem; max-width: none; flex-shrink: 0; border-radius: 9999px; object-fit: cover; }
.bio-close { flex-shrink: 0; border: 0; border-radius: 9999px; background: none; padding: 0.25rem; color: var(--muted-foreground); }
.bio-close:hover { color: var(--primary); }
.bio-close svg { height: 1.25rem; width: 1.25rem; }
.bio-text { margin-top: 1.25rem; }

/* ---------------- FAQ: Elementor classic Accordion in the source's card style ----------------
   Specificity is deliberately high: Elementor's kit CSS styles accordion titles
   at (0,3,0) for the active state and loads after this file. */

.elementor-widget-accordion .elementor-accordion .elementor-accordion-item { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-2xl); background: var(--card); box-shadow: var(--shadow-soft); }
.elementor-widget-accordion .elementor-accordion .elementor-accordion-item + .elementor-accordion-item { margin-top: 1rem; border-top: 1px solid var(--border); }
.elementor-widget-accordion .elementor-accordion .elementor-tab-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0; padding: 1.25rem 1.5rem; border: 0; cursor: pointer; }
.elementor-widget-accordion .elementor-accordion .elementor-tab-title .elementor-accordion-title { min-width: 0; font-family: inherit; font-size: 1rem; line-height: 1.5; font-weight: 600; color: var(--foreground); transition: color 0.2s; }
.elementor-widget-accordion .elementor-accordion .elementor-tab-title:hover .elementor-accordion-title { color: var(--primary); }
.elementor-widget-accordion .elementor-accordion .elementor-tab-title::after {
  content: ""; height: 1.25rem; width: 1.25rem; flex-shrink: 0; background-color: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.3s;
}
.elementor-widget-accordion .elementor-accordion .elementor-tab-title.elementor-active::after { transform: rotate(180deg); }
.elementor-widget-accordion .elementor-accordion .elementor-tab-content { border: 0; padding: 0 1.5rem 1.5rem; font-family: inherit; font-size: 0.875rem; line-height: 1.4286; color: var(--muted-foreground); }

/* ---------------- Blog ---------------- */

.blog-layout { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .blog-layout { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); } }
.blog-grid { display: grid; gap: 2rem; }
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.blog-card { display: flex; height: 100%; flex-direction: column; overflow: hidden; padding: 0; }
.blog-card .blog-card-media { display: block; overflow: hidden; }
.blog-card .blog-card-img { display: block; height: 14rem; width: 100%; max-width: none; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .blog-card-img { transform: scale(1.05); }
.blog-card.home-post .blog-card-img { height: 13rem; }
.blog-card.home-post:hover .blog-card-img { transform: none; }
.blog-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }
.blog-meta { font-size: 0.75rem; line-height: 1.3333; text-transform: uppercase; letter-spacing: 0.025em; color: var(--primary); }
.blog-card h2 { margin-top: 0.5rem; font-size: 1.125rem; line-height: 1.5556; }
.blog-card h2 a:hover { color: var(--primary); }
.blog-card .blog-excerpt { margin-top: 0.75rem; }
.blog-card .blog-more { margin-top: auto; padding-top: 1.25rem; }
.blog-aside { display: grid; align-content: start; gap: 2rem; }
.blog-aside h2 { font-size: 1rem; line-height: 1.5; }
.blog-aside .lt-field { margin-top: 0.75rem; }
.pill-list { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pager { margin-top: 3rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Home "Our Blog" preview cards (index.tsx). */
.home-post .chip-row + .blog-date { margin-top: 0.75rem; }
.home-post .blog-date { font-size: 0.75rem; line-height: 1.3333; text-transform: uppercase; letter-spacing: 0.05em; }
.home-post h3 { margin-top: 0.25rem; font-size: 1.125rem; line-height: 1.5556; }
.home-post .blog-excerpt { margin-top: 0.5rem; flex: 1; }
.home-post .blog-author { margin-top: 0.75rem; }
.home-post .text-link { margin-top: 1rem; }

/* ---------------- Banner variants ---------------- */

.page-banner.banner-hero { padding: 6rem 0; }
.page-banner.banner-hero .page-banner-overlay { background: linear-gradient(to right, var(--ink), oklch(0.242 0.003 286 / 0.85), oklch(0.242 0.003 286 / 0.4)); }
.page-banner.banner-hero .eyebrow { margin-bottom: 0.75rem; letter-spacing: 0.2em; }
.page-banner.banner-narrow .container-page { max-width: 48rem; }
.page-banner.banner-lg h1 { font-size: 2.25rem; }
.page-banner.banner-md h1 { font-size: 1.875rem; }
@media (min-width: 640px) {
  .page-banner.banner-lg h1 { font-size: 3rem; }
  .page-banner.banner-md h1 { font-size: 2.25rem; }
}
.page-banner.img-40 .page-banner-img { opacity: 0.4; }

/* ---------------- Single post ---------------- */

.post-article .container-page { max-width: 48rem; }
.post-feature { width: 100%; border-radius: var(--radius-2xl); object-fit: cover; box-shadow: var(--shadow-soft); }
.post-body { margin-top: 2rem; font-size: 1.125rem; line-height: 1.5556; }
.post-body p + p { margin-top: 1rem; }
.post-chips { margin-top: 1.5rem; }
.post-source { margin-top: 2rem; }
.post-back { margin-top: 2.5rem; }
.post-back a { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 500; color: var(--foreground); }
.post-back a:hover { color: var(--primary); }
.post-back svg, .post-source svg { height: 1rem; width: 1rem; }
.post-related { margin-top: 4rem; border-top: 1px solid var(--border); padding-top: 2.5rem; }
.post-related h2 { font-size: 1.25rem; line-height: 1.4; }
.post-related .grid { margin-top: 1.5rem; }
.related-card { display: block; padding: 1.25rem; }
.related-card .blog-meta { letter-spacing: 0.025em; }
.related-card h3 { margin-top: 0.5rem; font-size: 1rem; line-height: 1.5; }
