/*
 * Heritage refresh
 *
 * A shared visual layer for the pages surrounding the heritage homepage.
 * It intentionally keeps the underlying static HTML and content intact.
 */

:root {
  --bg: #ffffff;
  --bg-strong: #e9edff;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --ink: #151a2f;
  --ink-muted: #596078;
  --line: #d9deed;
  --line-strong: #c8cede;
  --brand: #4154f1;
  --brand-deep: #2f43cf;
  --brand-soft: #eef0ff;
  --accent: #c55433;
  --ink-inverse: #ffffff;
  --panel-dark: #17225b;
  --panel-dark-strong: #17225b;
  --panel-dark-line: rgba(255, 255, 255, 0.25);
  --shadow: 10px 10px 0 #e1e5f5;
  --shadow-soft: none;
  --radius: 0;
  --radius-sm: 0;
  --container: 1120px;
}

body {
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
}

.site-shell {
  overflow: clip;
}

.site-shell::before,
.site-shell::after {
  display: none;
}

.container {
  width: min(calc(100% - 48px), var(--container));
}

.site-header {
  position: relative;
  top: auto;
  background: var(--surface-strong);
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
}

.site-header__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  min-height: 88px;
}

.brand {
  gap: 12px;
  width: max-content;
}

.brand__mark {
  width: 46px;
  height: 46px;
}

.brand__text {
  gap: 3px;
}

.brand__text strong {
  font-size: 20px;
  line-height: 1.2;
}

.brand__text span {
  font-size: 12px;
}

.site-nav {
  gap: 25px;
  flex-wrap: nowrap;
}

.site-nav a {
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-header__row > .button--small {
  justify-self: end;
}

.button,
.carousel-button {
  min-height: 50px;
  padding: 12px 20px;
  border: 2px solid var(--brand);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.25;
  box-shadow: none;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.button:hover,
.button:focus-visible,
.carousel-button:hover,
.carousel-button:focus-visible {
  transform: none;
}

.button--small {
  min-height: 42px;
  padding: 9px 15px;
  font-size: 13px;
}

.button--primary {
  color: var(--ink-inverse);
  background: var(--brand);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}

.button--secondary {
  color: var(--brand-deep);
  background: var(--surface-strong);
  border-color: var(--brand);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  color: var(--ink-inverse);
  background: var(--brand);
}

.button--whatsapp {
  color: var(--ink-inverse);
  background: #167c42;
  border-color: #167c42;
  box-shadow: none;
}

.button--whatsapp:hover,
.button--whatsapp:focus-visible {
  background: #116837;
  border-color: #116837;
}

/* Small labels above large headings were intentionally removed in the homepage refresh. */
.eyebrow,
.post-kicker {
  display: none;
}

.summary-card .eyebrow {
  display: block;
  margin: 0 0 12px;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: none;
}

.summary-card--ink .eyebrow {
  color: #ffffff;
}

.page-intro {
  padding: 72px 0 64px;
  background: #f4f6ff;
  border-bottom: 1px solid var(--line);
}

.page-intro--index {
  padding-bottom: 72px;
}

.page-intro h1,
.featured-insight h2,
.insight-card h3,
.prose h1,
.prose h2,
.prose h3,
.redirect-card h1,
.contact-copy h1,
.contact-card h2,
.cta h2 {
  font-family: "GM Sans", Arial, sans-serif;
  letter-spacing: -0.025em;
}

.page-intro--index h1,
.journal-hero h1,
.contact-copy h1 {
  font-size: clamp(46px, 5.5vw, 70px);
  font-weight: 780;
  line-height: 1.07;
}

.page-intro--index .visually-hidden {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

.journal-hero h1 {
  max-width: 14ch;
}

.journal-deck {
  max-width: 48rem;
  margin-top: 20px;
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 1.6;
}

.back-link {
  margin-bottom: 20px;
  color: var(--brand-deep);
  font-size: 14px;
}

.journal-meta,
.post-meta {
  color: var(--ink-muted);
  font-size: 14px;
}

.journal-hero--split {
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: clamp(40px, 6vw, 76px);
}

.journal-cover,
.featured-insight__figure {
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--surface-strong);
  box-shadow: 10px 10px 0 #e1e5f5;
}

.journal-cover img,
.featured-insight__figure img {
  border-radius: 0;
}

.section {
  padding: 76px 0;
}

.featured-insight,
.insight-card,
.journal-card,
.summary-card,
.redirect-card,
.contact-card,
.cta {
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.featured-insight {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 44px;
  margin-top: 42px;
  padding: 34px;
  background: var(--surface-strong);
}

.featured-insight__content {
  gap: 16px;
}

.featured-insight__content h2 {
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 760;
  line-height: 1.1;
}

.featured-insight__content p {
  color: var(--ink-muted);
}

.insights-grid {
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.insight-card {
  gap: 13px;
  min-height: 330px;
  padding: 28px;
  background: var(--surface-strong);
  border-top: 0;
  border-left: 0;
}

.insight-card h3 {
  font-size: 23px;
  font-weight: 740;
  line-height: 1.2;
}

.insight-card p {
  color: var(--ink-muted);
  font-size: 15px;
}

.insight-card__more {
  color: var(--brand-deep);
  font-size: 15px;
  font-weight: 720;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-layout {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
  gap: clamp(48px, 7vw, 80px);
}

.journal-card {
  padding: 0;
  background: transparent;
  border: 0;
}

.prose {
  font-size: 17px;
}

.prose > * + * {
  margin-top: 20px;
}

.prose h2 {
  margin-top: 50px;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 760;
  line-height: 1.12;
}

.prose h3 {
  margin-top: 38px;
  font-size: clamp(23px, 2.4vw, 30px);
  font-weight: 740;
}

.prose p,
.prose li {
  color: #31384f;
}

.prose blockquote {
  padding: 22px 26px;
  border-left: 5px solid var(--brand);
  border-radius: 0;
  background: #f4f6ff;
}

.prose blockquote p {
  font-family: "GM Sans", Arial, sans-serif;
  font-size: clamp(23px, 2.5vw, 31px);
  font-weight: 680;
}

.prose img {
  border-radius: 0;
  box-shadow: none;
}

.article-side {
  top: 24px;
  gap: 18px;
}

.summary-card {
  padding: 24px;
  background: #f4f6ff;
}

.summary-card--ink {
  color: var(--ink-inverse);
  background: var(--navy, #17225b);
  border-color: var(--navy, #17225b);
}

.summary-card--ink p,
.summary-card--ink li {
  color: #e4e8ff;
}

.summary-list li::before {
  border-radius: 0;
}

.section--cta {
  color: var(--ink-inverse);
  background: var(--brand);
}

.section--cta .cta {
  padding: 0;
  background: transparent;
  border: 0;
}

.section--cta .cta h2 {
  margin: 0 0 14px;
  color: var(--ink-inverse);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 760;
}

.section--cta .cta p {
  color: #e4e8ff;
}

.section--cta .button--primary {
  color: var(--brand-deep);
  background: var(--surface-strong);
  border-color: var(--surface-strong);
}

.section--cta .button--secondary {
  color: var(--ink-inverse);
  background: transparent;
  border-color: var(--surface-strong);
}

.contact-hero {
  padding: 76px 0 84px;
  background: #f4f6ff;
  border-bottom: 1px solid var(--line);
}

.contact-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(48px, 7vw, 86px);
  align-items: center;
}

.contact-copy h1 {
  max-width: 11ch;
}

.contact-copy .lede {
  margin-top: 24px;
  font-size: 20px;
}

.contact-card {
  padding: 30px;
  background: var(--surface-strong);
  border-color: var(--line-strong);
  box-shadow: 10px 10px 0 #e1e5f5;
}

.contact-card h2 {
  font-size: 28px;
  font-weight: 750;
}

.contact-actions {
  gap: 10px;
}

.contact-detail {
  border-color: var(--line);
}

.redirect-shell {
  background: #f4f6ff;
}

.redirect-card {
  background: var(--surface-strong);
  box-shadow: 10px 10px 0 #e1e5f5;
}

.site-footer {
  margin-top: 0;
  padding: 45px 0 26px;
  background: #f7f8fc;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.site-footer__logo {
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.site-footer__links a {
  color: #525a71;
  font-size: 14px;
  font-weight: 650;
}

.site-footer__meta {
  color: #687086;
  font-size: 13px;
}

@media (prefers-reduced-motion: no-preference) {
  .featured-insight,
  .insight-card,
  .journal-card,
  .summary-card,
  .redirect-card,
  .contact-card,
  .cta {
    animation: none;
  }
}

@media (max-width: 1080px) {
  .site-header__row {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .featured-insight,
  .journal-hero--split,
  .article-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .journal-cover,
  .contact-card {
    width: min(100%, 700px);
  }

  .article-side {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .site-header__row {
    min-height: auto;
    padding: 13px 0;
  }

  .brand__text span {
    display: none;
  }

  .site-header__row > .button--small {
    display: none;
  }

  .page-intro,
  .page-intro--index,
  .contact-hero,
  .section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .featured-insight {
    padding: 24px;
  }

  .insights-grid,
  .article-side {
    grid-template-columns: 1fr;
  }

  .insight-card {
    min-height: 0;
  }

  .cta,
  .site-footer__row,
  .site-footer__meta {
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  .brand__mark {
    width: 40px;
    height: 40px;
  }

  .brand__text strong {
    font-size: 17px;
  }

  .site-header__row > .button--small {
    padding: 8px 11px;
    font-size: 12px;
  }

  .page-intro--index h1,
  .journal-hero h1,
  .contact-copy h1 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .featured-insight {
    padding: 18px;
  }

  .contact-card {
    padding: 22px;
    box-shadow: 7px 7px 0 #e1e5f5;
  }

  .contact-actions .button,
  .article-actions .button,
  .summary-card .button,
  .cta__actions .button {
    width: 100%;
  }

  .site-footer__links {
    justify-content: flex-start;
  }
}
