/* Hallmark: institutional editorial, reference-led marquee hero.
   Palette: navy/gold or forest/brass. Existing copy and layout hooks preserved.
   Local Playfair Display and Lato; existing competition copy only. */
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-display-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Lato;
  src: url("fonts/lato-regular-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Lato;
  src: url("fonts/lato-bold-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
body.t-heritage {
  --bg: #ffffff;
  --ink: #0f1c31;
  --accent: #0b3f74;
  --muted: #454b5c;
  --line: #dbe4ee;
  --card: #f2f7fb;
  --color-deep: #052648;
  --color-footer: #041d35;
  --color-gold: #e6b96f;
  --color-gold-hover: #f0cb8f;
  --color-white: #ffffff;
  --color-on-dark: #e2eaf3;
  --color-border-dark: #45617e;
  --color-glow: #37618a;
  --color-warm-glow: #596878;
  --color-ornament: #e6b96f;
  --color-shadow: #0526480d;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: Lato, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
  background: var(--bg);
  color: var(--muted);
  font: 400 15.5px/1.68 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
body.t-heritage[data-variant="forest"] {
  --bg: #fffdf6;
  --ink: #172e27;
  --accent: #255541;
  --muted: #495b50;
  --line: #dce3d8;
  --card: #f1f4e9;
  --color-deep: #133c2f;
  --color-footer: #0d2a21;
  --color-gold: #d5ba7f;
  --color-gold-hover: #e5cf9c;
  --color-on-dark: #e6eee5;
  --color-border-dark: #5c7868;
  --color-glow: #466c56;
  --color-warm-glow: #5b6c50;
  --color-ornament: #d5ba7f;
  --color-shadow: #133c2f0d;
}

body.t-heritage *, body.t-heritage *::before, body.t-heritage *::after { box-sizing: border-box; }
.t-heritage .wrap { width: min(1210px, calc(100% - 40px)); max-width: none; padding-inline: 0; margin-inline: auto; min-width: 0; }
.t-heritage a { color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.t-heritage a:hover { text-decoration-thickness: 2px; }
.t-heritage :is(a, summary, audio):focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.t-heritage :is(header, footer, .hero, .cta) a:focus-visible { outline-color: var(--color-gold); }
.t-heritage :is(h1, h2, h3, h4) { color: var(--ink); font-family: var(--font-display); font-weight: 600; font-style: normal; min-width: 0; overflow-wrap: anywhere; letter-spacing: -.012em; }
.t-heritage header { position: absolute; inset: 0 0 auto; z-index: 3; border: 0; color: var(--color-white); }
.t-heritage header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 18px; }
.t-heritage .brand { display: flex; gap: 12px; align-items: center; min-width: 0; font: 700 15px/1.15 var(--font-body); text-decoration: none; color: var(--color-white); }
.t-heritage .brand span { color: inherit; }
.t-heritage .brand .mark { flex: 0 0 48px; width: 48px; height: 48px; background: var(--color-gold); mask: url("crown.svg") center / contain no-repeat; }
.t-heritage .brand .word { max-width: 200px; }
.t-heritage .brand .word > span { display: block; font-weight: 400; }
.t-heritage nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.t-heritage nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--color-on-dark); white-space: nowrap; font: 400 13.5px/1.2 var(--font-body); border-bottom: 1px solid transparent; }
.t-heritage nav a[aria-current], .t-heritage nav a:hover { color: var(--color-white); border-bottom: 1px solid var(--color-gold); text-decoration: none; }
.t-heritage .hero { position: relative; isolation: isolate; color: var(--color-white); background: var(--color-deep); min-height: 490px; padding: 174px 0 64px; overflow: hidden; border-bottom: 5px solid var(--color-gold); }
.t-heritage .hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(100deg, var(--color-deep) 25%, transparent 85%), radial-gradient(ellipse at 85% 44%, var(--color-warm-glow), transparent 60%), linear-gradient(140deg, var(--color-deep), var(--color-glow)); }
.t-heritage .hero::after { content: ""; position: absolute; z-index: -1; right: 5%; top: 112px; width: 340px; height: 340px; opacity: .15; background: var(--color-ornament); mask: url("crown.svg") center / contain no-repeat; }
.t-heritage .hero .wrap { position: relative; }
.t-heritage .hero h1 { color: var(--color-white); font-size: 50px; font-weight: 500; line-height: 1.16; max-width: 720px; margin: 0 0 22px; letter-spacing: -.014em; }
.t-heritage .hero .lede { color: var(--color-on-dark); max-width: 640px; font: 400 16px/1.6 var(--font-body); }
.t-heritage .hero p { margin: 0; }
.t-heritage .hero .note { color: var(--color-gold); margin: 0 0 20px; font: 700 11.5px/1.5 var(--font-body); letter-spacing: .15em; text-transform: uppercase; }
.t-heritage .hero a { color: var(--color-gold); }
.t-heritage main.wrap { padding-block: 56px 72px; }
.t-heritage main > :is(p, ul, ol, .note, .transcript) { max-width: 780px; }
.t-heritage main > p { margin: 0 0 22px; }
.t-heritage h2 { max-width: 780px; margin: 52px 0 18px; font-size: 32px; line-height: 1.24; }
.t-heritage main > h2:first-child { margin-top: 8px; }
.t-heritage h3 { font-size: 23px; line-height: 1.3; margin: 28px 0 12px; }
.t-heritage h4 { font-size: 19px; }
.t-heritage .cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 26px; margin: 28px 0 44px; }
.t-heritage .card { margin: 0; background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--color-gold); border-radius: 5px; padding: 28px; box-shadow: 0 8px 26px var(--color-shadow); min-width: 0; }
.t-heritage .card h3 { font-size: 21px; }
.t-heritage .card p { margin: 12px 0 0; }
.t-heritage .tw { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; margin: 0 0 44px; padding: 0 0 16px; scrollbar-color: var(--accent) var(--card); }
.t-heritage main > .tw:first-child { margin-top: -56px; padding-block: 32px 24px; background: var(--card); box-shadow: 0 0 0 100vmax var(--card); clip-path: inset(0 -100vmax); }
.t-heritage table { font: 400 14px/1.5 var(--font-body); color: var(--ink); border-collapse: collapse; background: var(--card); }
.t-heritage table th, .t-heritage table td { padding: 12px 22px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.t-heritage table thead { background: var(--color-deep); color: var(--color-white); }
.t-heritage table thead th { font-size: 12px; letter-spacing: .04em; font-weight: 700; border-bottom: 3px solid var(--color-gold); }
.t-heritage tbody tr:nth-child(even) { background: var(--bg); }
.t-heritage tbody th { font-weight: 700; }
.t-heritage caption { padding: 15px 0 0; font: 400 12.5px/1.55 var(--font-body); color: var(--muted); white-space: normal; }
.t-heritage details { max-width: 900px; border: 1px solid var(--line); border-width: 0 0 1px; padding: 0; background: var(--bg); }
.t-heritage summary { position: relative; list-style: none; padding: 23px 44px 23px 0; color: var(--ink); font: 700 16px/1.5 var(--font-body); cursor: pointer; }
.t-heritage summary::-webkit-details-marker { display: none; }
.t-heritage summary::after { content: "+"; position: absolute; right: 8px; top: 19px; font-size: 24px; font-weight: 400; color: var(--accent); }
.t-heritage details[open] summary::after { content: "−"; }
.t-heritage details[open] { background: var(--card); padding-inline: 20px; border-left: 3px solid var(--color-gold); }
.t-heritage details p { max-width: 760px; margin: 0 0 23px; }
.t-heritage .note { font: 400 13px/1.6 var(--font-body); color: var(--muted); }
.t-heritage .cta { display: flex; gap: 24px 44px; justify-content: space-between; align-items: center; margin: 64px 0 -72px; padding: 40px 0; box-shadow: 0 0 0 100vmax var(--color-deep); clip-path: inset(0 -100vmax); background: var(--color-deep); border: 0; border-radius: 0; color: var(--color-on-dark); font: 400 15px/1.6 var(--font-body); }
.t-heritage .cta > span { flex: 1 1 380px; }
.t-heritage .btn { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 22px; border: 1px solid var(--color-gold); border-radius: 4px; background: var(--color-gold); color: var(--color-deep); font: 700 13px/1.3 var(--font-body); text-decoration: none; white-space: nowrap; transition: background-color .18s cubic-bezier(.16,1,.3,1); }
.t-heritage .btn:hover { background: var(--color-gold-hover); text-decoration: none; }
.t-heritage .btn:active { transform: translateY(1px); }
.t-heritage audio { max-width: 780px; }
.t-heritage .video { max-width: 900px; }
.t-heritage .video iframe { border-radius: 4px; }
.t-heritage footer { padding-block: 44px 38px; background: var(--color-footer); color: var(--color-on-dark); border-top: 1px solid var(--color-border-dark); font: 400 13px/1.7 var(--font-body); }
.t-heritage footer p { max-width: 1000px; margin: 0 0 18px; }
.t-heritage footer p:last-child { margin-bottom: 0; }
.t-heritage footer strong { color: var(--color-white); }
.t-heritage footer a { color: var(--color-gold); }
@media (min-width: 84rem) { .t-heritage .wrap { width: min(1210px, calc(100% - 64px)); } }
@media (max-width: 60rem) {
  .t-heritage header .wrap { gap: 8px 20px; }
  .t-heritage nav { gap: 2px 18px; }
  .t-heritage .hero::after { right: -90px; }
  .t-heritage .hero h1 { max-width: 700px; font-size: 44px; }
}
@media (max-width: 40rem) {
  .t-heritage header .wrap { display: block; padding-block: 17px 0; }
  .t-heritage .brand { font-size: 14px; gap: 10px; }
  .t-heritage .brand .mark { width: 42px; height: 42px; flex-basis: 42px; }
  .t-heritage nav { margin-top: 10px; gap: 0 18px; }
  .t-heritage nav a { font-size: 12px; min-height: 40px; }
  .t-heritage .hero { min-height: 550px; padding: 152px 0 52px; }
  .t-heritage .hero h1 { font-size: clamp(30px, 7.6vw, 38px); line-height: 1.16; max-width: 335px; margin-bottom: 22px; }
  .t-heritage .hero .lede { font-size: 16px; line-height: 1.6; }
  .t-heritage .hero::after { width: 290px; height: 290px; top: 260px; right: -155px; opacity: .09; }
  .t-heritage main.wrap { padding-block: 32px 48px; }
  .t-heritage h2 { font-size: 27px; margin: 42px 0 16px; }
  .t-heritage h3 { font-size: 22px; }
  .t-heritage .tw { margin-bottom: 30px; }
  .t-heritage main > .tw:first-child { margin-top: -32px; padding-block: 24px; }
  .t-heritage table th, .t-heritage table td { padding: 14px 16px; }
  .t-heritage .cards { gap: 20px; }
  .t-heritage .card { padding: 24px; }
  .t-heritage summary { font-size: 15px; }
  .t-heritage .cta { margin-top: 44px; margin-bottom: -48px; padding: 28px 0; gap: 22px; }
  .t-heritage .cta > span { flex-basis: 100%; }
  .t-heritage footer { padding-block: 32px; }
}
@media (max-width: 23rem) {
  .t-heritage nav { gap: 0 14px; }
  .t-heritage nav a { font-size: 11.5px; }
  .t-heritage .hero { padding-top: 188px; }
}
@media (prefers-reduced-motion: reduce) { .t-heritage .btn { transition: none; } }
