@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..600;1,9..144,400..500&family=Noto+Sans+SC:wght@400;500;700&family=Noto+Serif+SC:wght@400;500;600;700&display=swap');

/* ============================================================
   PREMIUM TYPE SYSTEM (Switzer self-hosted Latin sans site-wide +
   Google dynamic-subsetted Noto SC for Chinese glyphs as fallback).
   English/Latin glyphs come from the named Latin face; Chinese
   glyphs fall through to the Noto face listed next in each stack.
   Spivey-grade pairing:
     Juris Ivy   DISPLAY  = Zodiak  (high-contrast serif) + Noto Serif SC
                 BODY     = Switzer (premium grotesque)    + Noto Serif SC
     Santa Maria DISPLAY  = Switzer (clean grotesque)      + Noto Sans SC
                 BODY     = Switzer                         + Noto Sans SC
                 MONO     = JetBrains Mono (visa codes)     + Noto Sans SC
   Variables below point to these families; the legacy @font-face
   rules are retained only as graceful fallbacks.
   ============================================================ */
@font-face {
  font-family: "Switzer";
  src: url(../assets/fonts/switzer.woff2) format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Zodiak";
  src: url(../assets/fonts/zodiak.woff2) format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url(../assets/fonts/satoshi.woff2) format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url(../assets/fonts/general-sans.woff2) format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url(../assets/fonts/jetbrains-mono.woff2) format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
/* Juris Ivy Chinese display/body: Huiwen-Mincho (汇文明朝体) — elegant mincho,
   open for commercial use. CDN OTF for now; subset to woff2 before production. */
@font-face {
  font-family: "Huiwen-Mincho";
  src: url(https://cdn.jsdelivr.net/npm/@fontpkg/huiwen-mincho@1.0.0/Huiwen-mincho.otf) format("opentype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
/* Santa Maria Chinese display/body: KingHwa-OldSong (京华老宋体) — classical old-song
   serif, open for commercial use. CDN TTF for now; subset to woff2 before production. */
@font-face {
  font-family: "KingHwa-OldSong";
  src: url(https://cdn.jsdelivr.net/npm/@fontpkg/king-hwa-old-song@2.2.0/%E4%BA%AC%E8%8F%AF%E8%80%81%E5%AE%8B%E4%BD%93v2.002.ttf) format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
/* === Chosen Chinese set (2026-06-13): 朱雀仿宋 body (both), 汇文正楷 (SM), 竹石体 (JI hero accent). CDN now; subset to woff2 before production. === */
@font-face {
  font-family: "ZhuqueFangsong";
  src: url(https://cdn.jsdelivr.net/npm/@fontpkg/zhuque-fangsong-technical-preview@0.212.0/ZhuqueFangsong-Regular.ttf) format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HuiwenZhengkai";
  src: url(https://cdn.jsdelivr.net/npm/@fontpkg/huiwen-zheng-kai@1.0.0/%E6%B1%87%E6%96%87%E6%AD%A3%E6%A5%B7.ttf) format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "YRDZST";
  src: url(https://cdn.jsdelivr.net/npm/@fontpkg/yrdzst@1.23.0/%E6%9D%A8%E4%BB%BB%E4%B8%9C%E7%AB%B9%E7%9F%B3%E4%BD%93-Regular.ttf) format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Legacy families (retained as fallbacks only) ---- */
@font-face {
  font-family: "Fraunces";
  src: url(../assets/fonts/fraunces.woff2) format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url(../assets/fonts/newsreader.woff2) format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url(../assets/fonts/space-grotesk.woff2) format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url(../assets/fonts/inter.woff2) format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* CJK polish: when content is marked Chinese, drop heading tracking
   (letter-spacing harms CJK) while leaving the Latin default untouched.
   Latin tracking elsewhere stays as-is since CJK is only a fallback. */
:lang(zh) :is(h1, h2, h3),
:lang(zh):is(h1, h2, h3) {
  letter-spacing: normal;
}

:root {
  --ivory: #f7f3ea;
  --paper: #fffdf8;
  --ink: #13110d;
  --muted: #655f55;
  --line: #ddd5c8;
  --rust: #7b1f18;
  --navy: #081f3d;
  --green: #0f513f;
  --amber: #9a640e;
  --stone: #ede6dc;
  --shadow: 0 18px 48px rgba(43, 35, 24, 0.1);
  color-scheme: light;
  font-family: "Switzer", "HuiwenZhengkai", "Noto Sans SC", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  overflow-x: hidden;
}

a {
  color: inherit;
}

/* Kill the 300ms tap delay + default tap flash on every interactive
   element, site-wide (both brands). */
button,
a,
[role="button"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Sticky-header offset for in-page anchor targets */
:where(h1, h2, h3)[id] {
  scroll-margin-top: 5rem;
}

h1,
h2,
h3,
p,
a,
button,
li,
span,
strong,
small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem max(clamp(1rem, 4vw, 3rem), calc((100% - 1320px) / 2));
  max-width: 100%;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 243, 234, 0.92);
  backdrop-filter: blur(16px);
}

.wordmark {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.wordmark strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 500;
  line-height: 1;
}

.wordmark small {
  color: var(--rust);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wordmark span {
  color: var(--rust);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-top nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.55rem);
  min-width: 0;
  max-width: 100%;
  color: #241f18;
  font-size: 1.1rem;
  font-weight: 680;
}

.site-top nav a {
  text-decoration: none;
  white-space: nowrap;
}

.site-top nav a[aria-current="page"]:not(.button) {
  color: var(--rust);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.38rem;
}

.site-top nav a.button[aria-current="page"] {
  box-shadow: inset 0 0 0 1px rgba(255, 253, 248, 0.34);
}

/* "Book a Meeting" is the primary call-to-action: a raised, shadowed button,
   visually distinct from the underline that marks the current page. */
[data-brand="juris-ivy"] .site-top nav a.button {
  box-shadow: 0 4px 14px rgba(110, 29, 36, 0.30);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
[data-brand="juris-ivy"] .site-top nav a.button:hover,
[data-brand="juris-ivy"] .site-top nav a.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 7px 20px rgba(110, 29, 36, 0.40);
}

.nav-divider {
  display: block;
  width: 1px;
  height: 2.2rem;
  background: var(--line);
}

.wordmark-row {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
}

.wordmark-row > span:last-child {
  display: grid;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.brand-crest {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid rgba(123, 31, 24, 0.35);
  border-radius: 7px;
  background: linear-gradient(145deg, #9b321f, #6e1d16);
  color: #fffdf8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.86rem;
  letter-spacing: 0;
  box-shadow: 0 10px 24px rgba(123, 31, 24, 0.18);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 2px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.03);
  color: var(--muted);
  line-height: 1;
}

.lang-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0.2rem 0.6rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease, color 0.18s ease;
}

.lang-switch button.is-active {
  background: var(--rust);
  color: #fff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0 1.1rem;
  border: 1px solid var(--rust);
  border-radius: 8px;
  background: var(--rust);
  color: white;
  font-weight: 760;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.button.secondary {
  background: transparent;
  color: var(--rust);
}

.section,
.hero {
  width: min(1220px, calc(100% - clamp(3rem, 12vw, 9rem)));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 8vw, 6.5rem) 0 2rem;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7.2vw, 6.25rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero p,
.section-lead,
.card p,
.list-row p {
  color: var(--muted);
  line-height: 1.6;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.hero-panel,
.panel,
.card,
.wide-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 1.25rem;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.panel-title h2,
.section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 500;
}

.service-grid,
.metrics,
.article-grid,
.social-grid,
.address-grid {
  display: grid;
  gap: 1rem;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.card {
  padding: 1.2rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.tagline {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.8rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: var(--stone);
  color: var(--rust);
  font-size: 0.72rem;
  font-weight: 820;
  text-transform: uppercase;
}

.section {
  padding: clamp(3.5rem, 6vw, 5rem) 0 0;
}

.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  padding: 0.4rem 1rem;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  color: var(--rust);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.list {
  display: grid;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
}

.list-row {
  display: grid;
  grid-template-columns: minmax(8rem, 0.55fr) minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.list-row:last-child {
  border-bottom: 0;
}

.price {
  color: var(--rust);
  font-weight: 820;
  font-variant-numeric: tabular-nums;
}

.article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.social-grid,
.address-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qr-box,
.scheduler-box {
  display: grid;
  min-height: 11rem;
  place-items: center;
  border: 1px dashed rgba(123, 31, 24, 0.45);
  border-radius: 8px;
  background: rgba(123, 31, 24, 0.04);
  color: var(--rust);
  font-weight: 820;
  text-align: center;
}

.scheduler-box {
  min-height: 14rem;
  color: var(--green);
  border-color: rgba(15, 81, 63, 0.45);
  background: rgba(15, 81, 63, 0.05);
}

.footer {
  margin-top: 4rem;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.santa {
  --rust: #9b321f;
  --ink: #071d35;
  --green: #0e6a52;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.option-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.mini-option {
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-weight: 760;
}

.gateway-page .site-top,
.landing-page .site-top,
.subpage .site-top {
  background: rgba(255, 253, 248, 0.94);
}

.gateway-hero,
.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(24rem, 1.05fr);
  align-items: center;
  min-height: min(690px, calc(100vh - 5rem));
  border-bottom: 1px solid var(--line);
}

.gateway-copy,
.landing-copy {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 5rem);
}

.gateway-copy h1,
.landing-copy h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5.2vw, 5.6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}

.gateway-copy p,
.landing-copy p {
  max-width: 40rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.65;
}

.architecture-frame {
  height: 100%;
  min-height: 34rem;
  margin: 0;
  overflow: hidden;
  border-left: 1px solid var(--line);
}

.architecture-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gateway-paths,
.landing-paths,
.trust-row,
.subpage-shell,
.detail-hero {
  width: min(1280px, calc(100% - clamp(3rem, 12vw, 9rem)));
  margin: 0 auto;
}

.gateway-paths,
.landing-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: -4.25rem;
  position: relative;
  z-index: 2;
}

.entry-card {
  min-width: 0;
  min-height: 14rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 253, 248, 0.94);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 18px 48px rgba(43, 35, 24, 0.08);
}

.entry-card h2 {
  margin: 0.8rem 0 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
}

.entry-card p {
  color: var(--muted);
  line-height: 1.65;
}

.entry-card strong {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--rust);
}

.entry-card:hover,
.entry-card:focus-visible,
.choice-card:hover,
.choice-card:focus-visible {
  border-color: rgba(123, 31, 24, 0.38);
  background: rgba(255, 253, 248, 0.98);
  outline: 0;
  transform: translateY(-2px);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.entry-icon {
  color: var(--rust);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.trust-row {
  display: grid;
  grid-template-columns: minmax(16rem, 0.85fr) minmax(0, 1.15fr);
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.trust-row h2 {
  margin: 0 0 0.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
}

.trust-row p {
  color: var(--muted);
  line-height: 1.65;
}

.trust-row ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-row li {
  display: grid;
  gap: 0.35rem;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.trust-row strong {
  color: var(--rust);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.landing-page .landing-hero {
  grid-template-columns: minmax(0, 1fr) minmax(21rem, 0.78fr);
  min-height: auto;
  position: relative;
}

body.landing-page:not(.santa) .landing-hero {
  background:
    linear-gradient(90deg, rgba(247, 243, 234, 0) 0%, rgba(247, 243, 234, 0.9) 58%, rgba(247, 243, 234, 0.72) 100%),
    url("../assets/archway.svg") right center / min(44vw, 38rem) auto no-repeat;
}

.admissions-board {
  min-width: 0;
  margin: clamp(2.5rem, 7vw, 6rem) clamp(1rem, 5vw, 5rem) clamp(2.5rem, 7vw, 6rem) 0;
  padding: clamp(1.25rem, 2.5vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 22px 60px rgba(43, 35, 24, 0.11);
  backdrop-filter: blur(8px);
}

.santa .landing-panel {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 33rem;
  height: 100%;
  overflow: hidden;
  border-left: 1px solid var(--line);
}

.santa .landing-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(247, 243, 234, 0.06), rgba(247, 243, 234, 0.72));
  pointer-events: none;
}

.santa .landing-visual {
  position: absolute;
  inset: 0;
  margin: 0;
}

.santa .landing-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.santa .landing-panel .hero-panel {
  position: relative;
  z-index: 1;
  align-self: end;
  width: min(31rem, calc(100% - 3rem));
  margin: 0 1.5rem 1.5rem auto;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(8px);
}

.subnav-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.subnav-rail a {
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  color: var(--rust);
  font-weight: 760;
  text-decoration: none;
}

.mobile-action-board {
  display: none;
}

.mobile-action-board a {
  min-width: 0;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  color: inherit;
  text-decoration: none;
}

.mobile-action-board strong {
  display: block;
  color: var(--ink);
}

.mobile-action-board span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.landing-page .landing-copy h1 {
  font-size: clamp(2.75rem, 4.8vw, 5rem);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 0.55fr);
  gap: 2rem;
  padding: clamp(3rem, 7vw, 5rem) 0 2rem;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.detail-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 4.8vw, 4.7rem);
  font-weight: 500;
  line-height: 1.05;
}

.detail-hero p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.subpage-shell {
  display: grid;
  gap: 2rem;
  padding-top: 2rem;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.board-card {
  min-width: 0;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.board-card h2,
.board-card h3 {
  margin: 0 0 0.65rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.board-card p {
  color: var(--muted);
  line-height: 1.65;
}

.content-article {
  display: grid;
  gap: 1rem;
}

.content-article h1,
.content-article h2,
.content-article h3 {
  line-height: 1.12;
}

.compact-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.compact-list a,
.compact-list div {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
  color: inherit;
  text-decoration: none;
}

.hero-route-card:hover,
.hero-route-card:focus-visible {
  border-color: rgba(123, 31, 24, 0.38);
  background: rgba(255, 253, 248, 0.96);
}

.compact-list strong {
  color: var(--ink);
}

.compact-list span {
  color: var(--muted);
}

.next-step-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 253, 248, 0.96), rgba(237, 230, 220, 0.58));
}

.next-step-strip h2 {
  margin: 0 0 0.35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 500;
}

.next-step-strip p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.choice-shell {
  width: min(1180px, calc(100% - clamp(3rem, 12vw, 9rem)));
  margin: 0 auto;
}

.choice-hero {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  min-height: calc(100vh - 5.5rem);
  align-content: center;
  padding: clamp(3rem, 8vw, 7rem) 0;
}

.choice-hero h1 {
  max-width: 46rem;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

.choice-hero p {
  max-width: 46rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.choice-card {
  display: grid;
  min-height: 18rem;
  align-content: space-between;
  gap: 1.25rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(237, 230, 220, 0.62)),
    var(--paper);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.choice-card span,
.choice-card strong {
  color: var(--rust);
  font-weight: 820;
}

.choice-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
}

.choice-card p {
  color: var(--muted);
  line-height: 1.65;
}

.payment-page {
  background:
    linear-gradient(90deg, rgba(123, 31, 24, 0.035), transparent 34rem),
    var(--ivory);
}

.payment-page .app-shell {
  display: grid;
  grid-template-columns: minmax(18rem, 25rem) minmax(0, 1fr);
  gap: 1.25rem;
  width: min(1280px, calc(100% - clamp(3rem, 12vw, 9rem)));
  margin: 2rem auto 0;
}

.payment-form,
.payment-routes,
.sync-strip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 18px 48px rgba(43, 35, 24, 0.08);
}

.payment-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-self: start;
  padding: 1.35rem;
}

.payment-form h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 3.5vw, 3.45rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.payment-form p,
.routes-header p,
.sync-strip p,
.route-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.field {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
}

.field input,
.money-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

.field input {
  min-height: 3rem;
  padding: 0 0.9rem;
}

.money-input {
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Focus ring on the wrapper (the bare input drops its own outline so the
   fused $ + number stays visually intact). Brass for JI; SM overrides
   the colour in its scoped block. */
.money-input:focus-within {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 8px;
}

.money-input span {
  padding-left: 0.9rem;
  color: var(--muted);
  font-weight: 820;
}

.money-input input {
  border: 0;
  font-size: 1.55rem;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
  outline: 0;
}

.region-control {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.region-control legend {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
}

.region-control div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--stone);
}

.region-control button {
  min-height: 2.75rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 760;
  touch-action: manipulation;
}

.region-control button.is-selected {
  background: var(--paper);
  color: var(--rust);
  box-shadow: 0 8px 18px rgba(43, 35, 24, 0.08);
}

.guidance-panel {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid rgba(15, 81, 63, 0.16);
  border-radius: 8px;
  background: rgba(15, 81, 63, 0.055);
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}

.method-summary {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.method-summary strong {
  margin-top: 0.25rem;
  color: var(--ink);
}

.method-summary strong:first-child {
  margin-top: 0;
}

.payment-routes {
  overflow: hidden;
}

.routes-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 20rem);
  gap: 1rem;
  padding: 1.35rem;
  border-bottom: 1px solid var(--line);
}

.routes-header h2 {
  max-width: 42rem;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
  text-wrap: balance;
}

#fee-estimate {
  margin-top: 0.55rem;
  color: var(--amber);
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

#compliance-note {
  align-self: start;
  padding: 0.9rem;
  border: 1px solid rgba(154, 100, 14, 0.14);
  border-radius: 8px;
  background: rgba(154, 100, 14, 0.08);
  color: #73510f;
  font-size: 0.9rem;
}

.route-list {
  display: grid;
}

.route-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid var(--line);
}

.route-row:last-child {
  border-bottom: 0;
}

.route-row--primary,
.route-row--recommended {
  background: linear-gradient(90deg, rgba(15, 81, 63, 0.075), transparent);
}

.route-row--fallback {
  background: linear-gradient(90deg, rgba(154, 100, 14, 0.075), transparent);
}

.route-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 8px;
  background: var(--rust);
  color: white;
}

.route-row--recommended .route-icon,
.route-row--primary .route-icon {
  background: var(--green);
}

.route-row--fallback .route-icon {
  background: var(--amber);
}

.route-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

.route-title-line,
.route-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.route-title-line h3 {
  margin: 0;
  font-size: 1.05rem;
}

.route-title-line span {
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: var(--stone);
  color: var(--rust);
  font-size: 0.72rem;
  font-weight: 820;
  text-transform: uppercase;
}

.route-body {
  display: grid;
  gap: 0.45rem;
}

.route-meta {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 680;
}

.route-cost {
  color: var(--green) !important;
  font-size: 0.86rem;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.route-row button {
  min-width: 8.2rem;
  min-height: 2.75rem;
  border: 1px solid var(--rust);
  border-radius: 8px;
  background: var(--rust);
  color: white;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 760;
  touch-action: manipulation;
  transition:
    background 150ms ease,
    border-color 150ms ease;
}

.route-row button:hover {
  background: #641a14;
}

.sync-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.35rem;
}

.sync-strip h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 500;
  text-wrap: balance;
}

.sync-strip ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sync-strip li {
  display: grid;
  gap: 0.4rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  touch-action: manipulation;
}

.sync-strip strong {
  color: var(--rust);
}

.sync-strip span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .site-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-top nav {
    flex-wrap: wrap;
  }

  .hero,
  .payment-page .app-shell,
  .routes-header,
  .sync-strip,
  .sync-strip ol,
  .gateway-hero,
  .landing-hero,
  .landing-page .landing-hero,
  .gateway-paths,
  .landing-paths,
  .choice-grid,
  .trust-row,
  .trust-row ol,
  .detail-hero,
  .board-grid,
  .service-grid,
  .metrics,
  .article-grid,
  .social-grid,
  .address-grid,
  .solution-grid,
  .option-list,
  .next-step-strip {
    grid-template-columns: 1fr;
  }

  .list-row {
    grid-template-columns: 1fr;
  }

  .route-row {
    grid-template-columns: 2.75rem minmax(0, 1fr);
  }

  .route-row button {
    grid-column: 2;
    width: fit-content;
  }

  .gateway-paths,
  .landing-paths {
    margin-top: 1rem;
  }

  .architecture-frame {
    min-height: 22rem;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .gateway-copy h1,
  .landing-copy h1 {
    font-size: clamp(2.35rem, 10vw, 3.15rem);
  }

  .landing-copy {
    padding: clamp(2rem, 8vw, 3rem) 1rem 1.5rem;
  }

  body.landing-page:not(.santa) .landing-hero {
    background:
      linear-gradient(rgba(247, 243, 234, 0.82), rgba(247, 243, 234, 0.96)),
      url("../assets/archway.svg") right top / 34rem auto no-repeat;
  }

  .admissions-board {
    margin: 0 1rem 2rem;
  }

  .santa .landing-panel {
    min-height: auto;
    margin: 0 1rem 2rem;
    overflow: visible;
    border: 0;
  }

  .santa .landing-panel::after {
    display: none;
  }

  .santa .landing-visual {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid var(--line);
  }

  .santa .landing-panel .hero-panel {
    width: auto;
    margin: -2.5rem 1rem 0;
  }
}

@media (max-width: 520px) {
  .site-top {
    gap: 0.75rem;
    padding: 0.9rem 1rem;
  }

  .site-top nav {
    width: 100%;
    flex-wrap: nowrap;
    gap: 0.85rem;
    align-items: center;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    font-size: 0.86rem;
    line-height: 1.25;
    scrollbar-width: none;
  }

  .site-top nav::-webkit-scrollbar {
    display: none;
  }

  .site-top nav a,
  .site-top nav button,
  .lang-switch {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .site-top nav .button {
    min-height: 2.55rem;
    padding: 0 0.8rem;
  }

  .lang-switch {
    flex-basis: auto;
  }

  .wordmark strong {
    font-size: 1.45rem;
  }

  .wordmark small {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .gateway-paths,
  .landing-paths,
  .trust-row,
  .payment-page .app-shell,
  .subpage-shell,
  .detail-hero,
  .choice-shell,
  .section,
  .hero {
    width: min(100% - 1.25rem, 1280px);
  }

  .detail-hero {
    gap: 1rem;
    padding: 2.4rem 0 1.5rem;
  }

  .detail-hero h1 {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

  .gateway-copy h1,
  .landing-copy h1 {
    font-size: clamp(1.9rem, 8vw, 2.35rem);
    line-height: 1.08;
    overflow-wrap: break-word;
  }

  .hero-actions .button {
    flex: 1 1 9rem;
  }

  .subnav-rail {
    gap: 0.6rem;
  }

  .subnav-rail a {
    flex: 1 1 calc(50% - 0.6rem);
    padding: 0.68rem 0.55rem;
    text-align: center;
  }

  .mobile-action-board {
    display: grid;
    gap: 0.6rem;
    margin-top: 1rem;
  }

  .admissions-board .compact-list span,
  .santa .landing-panel .compact-list span {
    display: none;
  }

  .admissions-board {
    margin: 0 1rem 1rem;
  }

  .santa .landing-panel {
    margin: 0 1rem 1rem;
  }

  .santa .landing-visual {
    display: none;
  }

  .santa .landing-panel .hero-panel {
    margin: 0;
  }

  .detail-hero p {
    font-size: 1rem;
  }

  .board-card,
  .entry-card,
  .card,
  .payment-form,
  .routes-header,
  .route-row,
  .sync-strip {
    padding: 1rem;
  }

  .region-control div,
  .route-row {
    grid-template-columns: 1fr;
  }

  .route-row button {
    grid-column: auto;
    width: 100%;
  }

  .route-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .board-card h2,
  .board-card h3,
  .content-article h1,
  .content-article h2,
  .content-article h3 {
    font-size: clamp(1.35rem, 7.5vw, 2rem);
  }

  .button {
    max-width: 100%;
    white-space: normal;
  }
}

/* ============================================================
   SANTA MARIA — scoped theme (data-brand="santa-maria")
   Cross-border immigration & compliance practice / client portal.
   Cool navy/teal palette, sans-serif, grid/dossier feel.
   ============================================================ */
[data-brand="santa-maria"] {
  --bg: #ffffff;
  --bg-cool: #f4f7fa;
  --navy: #0f2742;
  --navy-deep: #0a1b30;
  --teal: #0b6e5b;
  --teal-bright: #0e8c74;
  --slate: #54616f;
  --line: #e2e8f0;
  --amber: #e0922f;

  /* Map legacy tokens (used by shared rules) onto the cool palette */
  --ivory: var(--bg-cool);
  --paper: #ffffff;
  --ink: var(--navy);
  --muted: var(--slate);
  --rust: var(--teal);
  --green: var(--teal);
  --stone: var(--bg-cool);
  --shadow: 0 12px 30px rgba(15, 39, 66, 0.08);

  /* SM type stack: Switzer display + body, JetBrains mono; Noto Sans SC for CJK */
  --sm-display: "Switzer", "HuiwenZhengkai", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sm-body: "Switzer", "HuiwenZhengkai", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sm-mono: "JetBrains Mono", "HuiwenZhengkai", "Noto Sans SC", ui-monospace, "SF Mono", monospace;
  font-family: var(--sm-body);
}

[data-brand="santa-maria"] body {
  background: var(--bg);
  color: var(--navy);
  /* Comfortable leading for CJK-heavy body copy (Noto Sans SC fallback) */
  line-height: 1.7;
}

/* Header / chrome -> cool, structured */
[data-brand="santa-maria"] .site-top {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}

[data-brand="santa-maria"] .wordmark strong,
[data-brand="santa-maria"] .panel-title h2,
[data-brand="santa-maria"] .section h2,
[data-brand="santa-maria"] .entry-card h2,
[data-brand="santa-maria"] .board-card h2,
[data-brand="santa-maria"] .board-card h3,
[data-brand="santa-maria"] .detail-hero h1,
[data-brand="santa-maria"] .landing-copy h1,
[data-brand="santa-maria"] .finder-intro h1,
[data-brand="santa-maria"] .routes-header h2,
[data-brand="santa-maria"] .sync-strip h2,
[data-brand="santa-maria"] .next-step-strip h2,
[data-brand="santa-maria"] .payment-form h1 {
  font-family: var(--sm-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--navy);
}

[data-brand="santa-maria"] .wordmark small,
[data-brand="santa-maria"] .wordmark span {
  color: var(--teal);
  font-family: var(--sm-mono);
  font-weight: 600;
  letter-spacing: 0.06em;
}

[data-brand="santa-maria"] .site-top nav a[aria-current="page"]:not(.button) {
  color: var(--teal);
  text-decoration-color: var(--teal);
}

[data-brand="santa-maria"] .lang-switch button.is-active {
  background: var(--teal);
  color: #04243a;
}

/* Buttons: primary solid teal r8 / secondary navy outline */
[data-brand="santa-maria"] .button {
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  font-weight: 600;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

[data-brand="santa-maria"] .button:hover {
  background: var(--teal-bright);
  border-color: var(--teal-bright);
}

[data-brand="santa-maria"] .button.secondary {
  border-color: var(--navy);
  background: transparent;
  color: var(--navy);
}

[data-brand="santa-maria"] .button.secondary:hover {
  background: rgba(15, 39, 66, 0.06);
  border-color: var(--navy);
  color: var(--navy);
}

/* Signature .visa-code chip */
[data-brand="santa-maria"] .visa-code {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-cool);
  color: var(--navy);
  font-family: var(--sm-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---- Solution finder hero ---- */
[data-brand="santa-maria"] .finder {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  width: min(1280px, calc(100% - clamp(3rem, 12vw, 9rem)));
  margin: 0 auto;
  padding: clamp(2.75rem, 7vw, 5.5rem) 0 4.75rem;
  border-bottom: 1px solid var(--line);
}

[data-brand="santa-maria"] .finder-intro .eyebrow {
  margin: 0 0 1rem;
  color: var(--teal);
  font-family: var(--sm-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

[data-brand="santa-maria"] .finder-intro h1 {
  max-width: 22ch;
  margin: 0;
  font-size: clamp(2.4rem, 4.6vw, 3.85rem);
  line-height: 1.04;
  text-wrap: balance;
}

[data-brand="santa-maria"] .finder-intro .lede {
  max-width: 46ch;
  margin: 1.1rem 0 0;
  color: var(--slate);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.6;
  text-wrap: pretty;
}

/* The shared .landing-paths uses a negative top margin to overlap the
   Juris Ivy hero IMAGE. SM's finder hero is a plain bordered section, so
   reset to positive spacing or the 01/02/03 cards collide with the rule. */
[data-brand="santa-maria"] .landing-paths {
  margin-top: clamp(2rem, 4vw, 3rem);
}

[data-brand="santa-maria"] .finder-intro .hero-actions {
  margin-top: 1.8rem;
}

/* ---- Finder path rows (dossier list) ---- */
[data-brand="santa-maria"] .finder-paths {
  display: grid;
  gap: 0.7rem;
  align-self: stretch;
}

[data-brand="santa-maria"] .path-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.6rem 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 39, 66, 0.04);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  /* Declared on the base selector so hover-OUT animates too */
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

[data-brand="santa-maria"] .path-row .visa-code {
  grid-row: 1 / span 2;
  align-self: start;
}

[data-brand="santa-maria"] .path-row strong {
  align-self: end;
  color: var(--navy);
  font-family: var(--sm-display);
  font-size: 1.05rem;
  font-weight: 600;
  text-wrap: pretty;
}

[data-brand="santa-maria"] .path-row span:not(.visa-code) {
  align-self: start;
  color: var(--slate);
  font-size: 0.92rem;
  line-height: 1.45;
  text-wrap: pretty;
}

[data-brand="santa-maria"] .path-row:hover,
[data-brand="santa-maria"] .path-row:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 10px 24px rgba(15, 39, 66, 0.1);
  outline: 0;
  transform: translateY(-2px);
}

/* ---- Cards / entry tiles -> white dossier cards ---- */
[data-brand="santa-maria"] .entry-card,
[data-brand="santa-maria"] .board-card,
[data-brand="santa-maria"] .card,
[data-brand="santa-maria"] .hero-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(15, 39, 66, 0.04);
}

[data-brand="santa-maria"] .entry-card {
  border-radius: 10px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  /* Base transition so hover-OUT animates too */
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

[data-brand="santa-maria"] .entry-icon,
[data-brand="santa-maria"] .entry-card strong {
  color: var(--teal);
  font-family: var(--sm-mono);
}

[data-brand="santa-maria"] .entry-icon {
  font-variant-numeric: tabular-nums;
}

[data-brand="santa-maria"] .entry-card:hover,
[data-brand="santa-maria"] .entry-card:focus-visible {
  border-color: var(--teal);
  background: var(--bg);
  box-shadow: 0 12px 30px rgba(15, 39, 66, 0.1);
  outline: 0;
  transform: translateY(-2px);
}

/* Accessible focus rings across the brand */
[data-brand="santa-maria"] a:focus-visible,
[data-brand="santa-maria"] button:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

[data-brand="santa-maria"] .footer {
  border-top: 1px solid var(--line);
  color: var(--slate);
}

/* ---- Santa Maria shared polish (headings, cards, hovers, numerics) ---- */

/* Balance multi-line headings; pretty-wrap body copy */
[data-brand="santa-maria"] h1,
[data-brand="santa-maria"] h2,
[data-brand="santa-maria"] h3,
[data-brand="santa-maria"] .detail-hero h1,
[data-brand="santa-maria"] .fee-head h2,
[data-brand="santa-maria"] .next-step-strip h2 {
  text-wrap: balance;
}

[data-brand="santa-maria"] p {
  text-wrap: pretty;
}

/* Content cards: subtle hover lift so they read as interactive */
[data-brand="santa-maria"] .board-card {
  transition:
    border-color 150ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

[data-brand="santa-maria"] .board-card:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 24px rgba(15, 39, 66, 0.1);
  transform: translateY(-2px);
}

/* CTA strip: cool SM gradient, not the warm JI ivory default */
[data-brand="santa-maria"] .next-step-strip {
  border-color: var(--line);
  background: linear-gradient(90deg, var(--bg) 60%, var(--bg-cool));
}

/* Price figures stay column-aligned as amounts vary */
[data-brand="santa-maria"] .fee-price {
  font-variant-numeric: tabular-nums;
}

/* Hero: top-align columns; nudge the right-side module to the cap line */
[data-brand="santa-maria"] .detail-hero {
  align-items: start;
}

[data-brand="santa-maria"] .detail-hero > div:last-child {
  margin-top: 0.5rem;
}

/* board-grid collapses gracefully when only 1-2 cards are present
   (scoped to SM so the JI 2-col editorial board is untouched) */
[data-brand="santa-maria"] .board-grid {
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
}

/* Money input + dynamic figures -> teal focus ring / tabular numerics */
[data-brand="santa-maria"] .money-input:focus-within {
  outline-color: var(--teal-bright);
}

[data-brand="santa-maria"] #fee-estimate,
[data-brand="santa-maria"] .route-cost {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* Region toggle hover (on-brand, plus teal focus already global) */
[data-brand="santa-maria"] .region-control button:hover {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
}

/* Route button focus ring matches the button's own 8px radius */
[data-brand="santa-maria"] .route-row button:focus-visible {
  border-radius: 8px;
}

/* Route button hover -> teal (override the shared JI oxblood hover) */
[data-brand="santa-maria"] .route-row button:hover {
  background: var(--teal-bright);
  border-color: var(--teal-bright);
}

@media (prefers-reduced-motion: reduce) {
  [data-brand="santa-maria"] .board-card,
  [data-brand="santa-maria"] .board-card:hover,
  [data-brand="santa-maria"] .fee-row:hover {
    transition: none;
    transform: none;
  }
}

@media (max-width: 820px) {
  [data-brand="santa-maria"] .finder {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 3rem;
  }

  [data-brand="santa-maria"] .finder-intro h1 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-brand="santa-maria"] *,
  [data-brand="santa-maria"] *::before,
  [data-brand="santa-maria"] *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }

  [data-brand="santa-maria"] .path-row:hover,
  [data-brand="santa-maria"] .path-row:focus-visible,
  [data-brand="santa-maria"] .entry-card:hover,
  [data-brand="santa-maria"] .entry-card:focus-visible {
    transform: none;
  }
}

/* ============================================================
   JURIS IVY — scoped theme (data-brand="juris-ivy")
   Law review / Ivy admissions chambers.
   Warm ivory + oxblood + brass hairlines + ink. Serif, editorial.
   ============================================================ */
[data-brand="juris-ivy"] {
  --paper: #fbf8f1;
  --ink: #1b1714;
  --oxblood: #6e1d24;
  --oxblood-deep: #511319;
  --brass: #a8884e;
  --stone: #6f6863;
  --line: rgba(27, 23, 20, 0.14);

  /* Map legacy tokens onto warm palette */
  --ivory: var(--paper);
  --muted: var(--stone);
  --rust: var(--oxblood);
  --green: var(--oxblood);
  --amber: var(--brass);
  --shadow: 0 16px 40px rgba(27, 23, 20, 0.1);

  /* JI type stack: Zodiak serif display, Switzer sans body; Noto Serif SC for CJK */
  --ji-display: "Zodiak", "ZhuqueFangsong", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --ji-body: "Switzer", "ZhuqueFangsong", "Noto Serif SC", system-ui, -apple-system, sans-serif;
  font-family: var(--ji-body);
}

[data-brand="juris-ivy"] body {
  background: var(--paper);
  color: var(--ink);
  /* Comfortable leading for CJK-heavy body copy (Noto Serif SC fallback) */
  line-height: 1.7;
}

[data-brand="juris-ivy"] .site-top {
  background: rgba(251, 248, 241, 0.92);
  border-bottom: 1px solid var(--line);
}

[data-brand="juris-ivy"] .wordmark strong,
[data-brand="juris-ivy"] h1,
[data-brand="juris-ivy"] h2,
[data-brand="juris-ivy"] .choice-card-name--ji {
  font-family: var(--ji-display);
  font-weight: 480;
  letter-spacing: -0.01em;
}

[data-brand="juris-ivy"] .wordmark small {
  color: var(--oxblood);
  font-family: var(--ji-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

[data-brand="juris-ivy"] .lang-switch button.is-active {
  background: var(--oxblood);
  color: #fff;
}

[data-brand="juris-ivy"] .button {
  border: 1px solid var(--oxblood);
  border-radius: 2px;
  background: var(--oxblood);
  color: var(--paper);
  font-weight: 600;
}

[data-brand="juris-ivy"] .button.secondary {
  background: transparent;
  color: var(--oxblood);
}

[data-brand="juris-ivy"] a:focus-visible,
[data-brand="juris-ivy"] button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Button hover feedback (guideline: buttons must react on hover) */
[data-brand="juris-ivy"] .button:hover {
  background: var(--oxblood-deep);
  border-color: var(--oxblood-deep);
}

[data-brand="juris-ivy"] .button.secondary:hover {
  background: transparent;
  color: var(--oxblood-deep);
}

/* Editorial text-wrap: balance big serif heads, pretty body copy */
[data-brand="juris-ivy"] h1,
[data-brand="juris-ivy"] h2,
[data-brand="juris-ivy"] .detail-hero h1,
[data-brand="juris-ivy"] .tariff-head h2,
[data-brand="juris-ivy"] .next-step-strip h2,
[data-brand="juris-ivy"] .board-card h2,
[data-brand="juris-ivy"] .cases-hero h1,
[data-brand="juris-ivy"] .case-title,
[data-brand="juris-ivy"] .cases-cta h2 {
  text-wrap: balance;
}

[data-brand="juris-ivy"] .detail-hero p,
[data-brand="juris-ivy"] .tariff-intro,
[data-brand="juris-ivy"] .ji-lead,
[data-brand="juris-ivy"] .board-card p,
[data-brand="juris-ivy"] .next-step-strip p,
[data-brand="juris-ivy"] .cases-hero p,
[data-brand="juris-ivy"] .case-desc,
[data-brand="juris-ivy"] .cases-cta p {
  text-wrap: pretty;
}

/* detail-hero head: slightly more leading at large optical sizes */
[data-brand="juris-ivy"] .detail-hero h1 {
  line-height: 1.08;
}

/* Board-cards: sharper editorial radius, brass provenance rule,
   breathing room, and an approach-cue hover/focus state */
[data-brand="juris-ivy"] .board-card {
  padding: 1.75rem;
  border-radius: 2px;
  transition:
    box-shadow 160ms ease,
    border-color 160ms ease;
}

[data-brand="juris-ivy"] .board-card h2,
[data-brand="juris-ivy"] .board-card h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

[data-brand="juris-ivy"] .board-card:hover,
[data-brand="juris-ivy"] .board-card:has(.button:hover) {
  border-color: rgba(110, 29, 36, 0.28);
  box-shadow: 0 4px 20px rgba(27, 23, 20, 0.08);
}

[data-brand="juris-ivy"] .board-grid {
  gap: 1.5rem;
}

/* Right-side content module in the insights hero: brass top rule */
[data-brand="juris-ivy"] .detail-hero .board-card {
  border-top: 3px solid var(--brass);
  border-radius: 2px;
}

/* Skip link — available to every JI subpage */
.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  border-radius: 2px;
  background: var(--rust);
  color: var(--paper);
  font-family: var(--ji-body);
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 150ms ease;
}

.skip-link:focus-visible {
  top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  [data-brand="juris-ivy"] *,
  [data-brand="juris-ivy"] *::before,
  [data-brand="juris-ivy"] *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   LOBBY — scoped theme (data-brand="lobby")
   Elegant neutral split entrance. Hints both brand identities.
   ============================================================ */
[data-brand="lobby"] {
  --lobby-bg: #f8f6f1;
  --lobby-ink: #1b1714;
  --lobby-muted: #6f6863;
  --lobby-line: rgba(27, 23, 20, 0.12);

  /* Mirror the two brands inside the lobby; Noto SC for CJK fallback */
  --lobby-ji-display: "Zodiak", "ZhuqueFangsong", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --lobby-ji-body: "Switzer", "ZhuqueFangsong", "Noto Serif SC", system-ui, sans-serif;
  --lobby-sm-display: "Switzer", "HuiwenZhengkai", "Noto Sans SC", system-ui, sans-serif;
  --lobby-sm-body: "Switzer", "HuiwenZhengkai", "Noto Sans SC", system-ui, sans-serif;
  --lobby-sm-mono: "JetBrains Mono", "HuiwenZhengkai", "Noto Sans SC", ui-monospace, monospace;

  font-family: "Switzer", "HuiwenZhengkai", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

[data-brand="lobby"] body {
  background: var(--lobby-bg);
  color: var(--lobby-ink);
  min-height: 100vh;
}

/* Nav top */
[data-brand="lobby"] .lobby-top {
  background: rgba(248, 246, 241, 0.92);
  border-bottom: 1px solid var(--lobby-line);
}

[data-brand="lobby"] .lobby-wordmark strong {
  font-family: var(--lobby-ji-display);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--lobby-ink);
}

[data-brand="lobby"] .lobby-wordmark small {
  color: var(--lobby-muted);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

[data-brand="lobby"] .lang-switch button.is-active {
  background: #6e1d24;
  color: #fff;
}

/* Inactive language option reacts to hover like other controls */
[data-brand="lobby"] .lang-switch button:hover {
  color: #6e1d24;
}

[data-brand="lobby"] .lang-switch button.is-active:hover {
  color: #fff;
}

/* Visible keyboard focus ring for the EN / 中文 buttons */
[data-brand="lobby"] .lang-switch button:focus-visible {
  outline: 2px solid #6e1d24;
  outline-offset: 3px;
  border-radius: 3px;
}

/* Intro block */
[data-brand="lobby"] .choice-hero {
  min-height: calc(100vh - 4.5rem);
  align-content: center;
}

[data-brand="lobby"] .lobby-intro {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

[data-brand="lobby"] .lobby-eyebrow {
  margin: 0 0 0.85rem;
  color: var(--lobby-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

[data-brand="lobby"] #choice-title {
  max-width: 22ch;
  margin: 0 0 0.75rem;
  font-family: var(--lobby-ji-display);
  font-size: clamp(2.7rem, 5.6vw, 5rem);
  font-weight: 380;
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--lobby-ink);
}

[data-brand="lobby"] .lobby-lead {
  max-width: 52ch;
  margin: 0;
  color: var(--lobby-muted);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  line-height: 1.65;
  text-wrap: pretty;
}

/* Choice grid */
[data-brand="lobby"] .choice-grid {
  gap: 1.25rem;
}

/* Base choice-card reset within lobby */
[data-brand="lobby"] .choice-card {
  display: grid;
  min-height: 22rem;
  align-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

[data-brand="lobby"] .choice-card:focus-visible {
  outline: 2px solid #a8884e;
  outline-offset: 3px;
}

/* --- Juris Ivy card (ivory / oxblood / serif) --- */
[data-brand="lobby"] .choice-card--ji {
  border: 1px solid rgba(27, 23, 20, 0.14);
  background:
    linear-gradient(158deg, #fbf8f1 55%, #f0ebe0 100%);
  box-shadow: 0 6px 24px rgba(27, 23, 20, 0.07), inset 0 1px 0 rgba(168, 136, 78, 0.2);
}

[data-brand="lobby"] .choice-card--ji:hover,
[data-brand="lobby"] .choice-card--ji:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(110, 29, 36, 0.3);
  box-shadow: 0 14px 38px rgba(27, 23, 20, 0.12), inset 0 1px 0 rgba(168, 136, 78, 0.3);
}

[data-brand="lobby"] .choice-card--ji .choice-card-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(168, 136, 78, 0.28);
}

[data-brand="lobby"] .choice-index--ji {
  font-family: var(--lobby-ji-display);
  font-size: 0.9rem;
  font-weight: 400;
  color: #a8884e;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

[data-brand="lobby"] .choice-label--ji {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6e1d24;
  font-family: var(--lobby-ji-body);
}

[data-brand="lobby"] .choice-card-name--ji {
  margin: 0;
  font-family: var(--lobby-ji-display);
  font-size: clamp(1.95rem, 3vw, 2.9rem);
  font-weight: 420;
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: #1b1714;
}

[data-brand="lobby"] .choice-card--ji .choice-card-body p {
  margin: 0.7rem 0 0;
  color: #6f6863;
  font-family: var(--lobby-ji-body);
  font-size: clamp(0.92rem, 1.1vw, 1rem);
  line-height: 1.6;
  max-width: 38ch;
  text-wrap: pretty;
}

[data-brand="lobby"] .choice-cta--ji {
  display: inline-block;
  font-family: var(--lobby-ji-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: #6e1d24;
  letter-spacing: 0.03em;
}

[data-brand="lobby"] .choice-card--ji:hover .choice-cta--ji,
[data-brand="lobby"] .choice-card--ji:focus-visible .choice-cta--ji {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Santa Maria card (navy / teal / sans) --- */
[data-brand="lobby"] .choice-card--sm {
  border: 1px solid #e2e8f0;
  background:
    linear-gradient(158deg, #ffffff 40%, #f0f5f9 100%);
  box-shadow: 0 4px 16px rgba(15, 39, 66, 0.07);
}

[data-brand="lobby"] .choice-card--sm:hover,
[data-brand="lobby"] .choice-card--sm:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(11, 110, 91, 0.4);
  box-shadow: 0 12px 32px rgba(15, 39, 66, 0.13);
}

[data-brand="lobby"] .choice-card--sm .choice-card-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

[data-brand="lobby"] .choice-index--sm {
  font-family: var(--lobby-sm-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: #0b6e5b;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

[data-brand="lobby"] .choice-label--sm {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0f2742;
  font-family: var(--lobby-sm-display);
}

[data-brand="lobby"] .choice-card-name--sm {
  margin: 0;
  font-family: var(--lobby-sm-display);
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: #0f2742;
}

[data-brand="lobby"] .choice-card--sm .choice-card-body p {
  margin: 0.7rem 0 0;
  color: #54616f;
  font-family: var(--lobby-sm-body);
  font-size: clamp(0.9rem, 1.05vw, 0.97rem);
  line-height: 1.6;
  max-width: 38ch;
  text-wrap: pretty;
}

[data-brand="lobby"] .choice-cta--sm {
  display: inline-block;
  font-family: var(--lobby-sm-display);
  font-size: 0.86rem;
  font-weight: 600;
  color: #0b6e5b;
  letter-spacing: 0.01em;
}

[data-brand="lobby"] .choice-card--sm:hover .choice-cta--sm,
[data-brand="lobby"] .choice-card--sm:focus-visible .choice-cta--sm {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Responsive */
@media (max-width: 820px) {
  [data-brand="lobby"] .choice-grid {
    grid-template-columns: 1fr;
  }

  [data-brand="lobby"] .choice-card {
    min-height: 17rem;
  }
}

@media (max-width: 520px) {
  [data-brand="lobby"] #choice-title {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  [data-brand="lobby"] .choice-card {
    min-height: 14rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-brand="lobby"] .choice-card {
    transition: none !important;
  }

  [data-brand="lobby"] .choice-card:hover,
  [data-brand="lobby"] .choice-card:focus-visible {
    transform: none;
  }
}

/* ============================================================
   SANTA MARIA — services & pricing page
   Eyebrows + explicit fee table (dossier card). Relies on the
   shared santa-maria .visa-code chip, :focus-visible, and
   reduced-motion rules defined above.
   ============================================================ */
[data-brand="santa-maria"] .detail-hero .eyebrow,
[data-brand="santa-maria"] .fee-head .eyebrow {
  margin: 0 0 0.7rem;
  color: var(--teal);
  font-family: var(--sm-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

[data-brand="santa-maria"] .fee-section {
  display: grid;
  gap: 1.5rem;
}

[data-brand="santa-maria"] .fee-head h2 {
  margin: 0 0 0.6rem;
  font-family: var(--sm-display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.08;
  color: var(--navy);
}

[data-brand="santa-maria"] .fee-intro {
  max-width: 60ch;
  margin: 0;
  color: var(--slate);
  font-size: 1.02rem;
  line-height: 1.6;
}

/* Fee table — dossier card */
[data-brand="santa-maria"] .fee-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(15, 39, 66, 0.04), 0 12px 32px rgba(15, 39, 66, 0.06);
}

[data-brand="santa-maria"] .fee-head-row,
[data-brand="santa-maria"] .fee-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(7rem, auto) minmax(0, 1.25fr);
  gap: 1.25rem;
  align-items: center;
  padding: 1.05rem 1.4rem;
}

[data-brand="santa-maria"] .fee-head-row {
  border-bottom: 1px solid var(--line);
  background: var(--bg-cool);
}

[data-brand="santa-maria"] .fee-col {
  color: var(--slate);
  font-family: var(--sm-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

[data-brand="santa-maria"] .fee-col-price {
  text-align: right;
}

[data-brand="santa-maria"] .fee-row {
  border-bottom: 1px solid var(--line);
}

[data-brand="santa-maria"] .fee-row:last-child {
  border-bottom: 0;
}

[data-brand="santa-maria"] .fee-row:hover {
  background: var(--bg-cool);
  transition: background 150ms ease;
}

[data-brand="santa-maria"] .fee-service {
  display: grid;
  gap: 0.5rem;
}

[data-brand="santa-maria"] .fee-name {
  font-family: var(--sm-display);
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--navy);
}

[data-brand="santa-maria"] .fee-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

[data-brand="santa-maria"] .fee-price {
  font-family: var(--sm-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: right;
  white-space: nowrap;
  color: var(--teal);
}

[data-brand="santa-maria"] .fee-scope {
  color: var(--slate);
  font-size: 0.92rem;
  line-height: 1.5;
}

[data-brand="santa-maria"] .fee-note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(224, 146, 47, 0.3);
  border-radius: 8px;
  background: rgba(224, 146, 47, 0.07);
  color: #8a5a17;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
}

[data-brand="santa-maria"] .fee-note::before {
  content: "i";
  display: grid;
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  border-radius: 50%;
  background: var(--amber);
  color: #ffffff;
  font-family: var(--sm-display);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Responsive: collapse header, stack each fee row <=820px */
@media (max-width: 820px) {
  [data-brand="santa-maria"] .fee-head-row {
    display: none;
  }

  [data-brand="santa-maria"] .fee-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.5rem 1rem;
    padding: 1rem 1.1rem;
  }

  [data-brand="santa-maria"] .fee-service {
    grid-column: 1;
    grid-row: 1;
  }

  [data-brand="santa-maria"] .fee-price {
    grid-column: 2;
    grid-row: 1;
  }

  [data-brand="santa-maria"] .fee-scope {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* ═══════════════════════════════════════════════════════
   SANTA MARIA — Consultation page components
   ═══════════════════════════════════════════════════════ */

/* Step eyebrow label */
.sm-eyebrow {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--sm-teal, #0b6e5b);
  font-family: var(--sm-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Hero copy column */
.sm-hero-copy {
  display: grid;
  align-content: start;
  gap: 0;
}

/* Process steps row */
.sm-process-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.sm-step {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--sm-line, #e2e8f0);
  border-radius: 8px;
  background: #ffffff;
}

.sm-step-num {
  font-family: var(--sm-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sm-teal, #0b6e5b);
}

.sm-step-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sm-navy, #0f2742);
  font-family: "Switzer", "HuiwenZhengkai", "Noto Sans SC", system-ui, sans-serif;
}

.sm-step-arrow {
  color: var(--sm-slate, #54616f);
  font-size: 0.9rem;
}

/* Scheduler slot — intentional embed placeholder */
[data-brand="santa-maria"] .scheduler-box.slot {
  display: flex;
  min-height: 15rem;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed #e2e8f0;
  border-radius: 10px;
  background: var(--sm-bg-cool, #f4f7fa);
  color: var(--sm-slate, #54616f);
  font-weight: normal;
}

.sm-slot-inner {
  display: grid;
  gap: 0.6rem;
  padding: 2rem;
  text-align: center;
  place-items: center;
}

.sm-slot-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid var(--sm-line, #e2e8f0);
  border-radius: 10px;
  background: #ffffff;
  color: var(--sm-teal, #0b6e5b);
}

.sm-slot-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.sm-slot-label {
  margin: 0;
  color: var(--sm-navy, #0f2742);
  font-family: var(--sm-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.sm-slot-sub {
  margin: 0;
  color: var(--sm-slate, #54616f);
  font-family: "Switzer", "HuiwenZhengkai", "Noto Sans SC", system-ui, sans-serif;
  font-size: 0.84rem;
  line-height: 1.55;
  max-width: 26rem;
  text-wrap: pretty;
}

/* Section header */
.sm-section-header {
  padding-bottom: 0.25rem;
}

.sm-section-header h2 {
  margin: 0.25rem 0 0.6rem;
  font-family: var(--sm-display);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: var(--sm-navy, #0f2742);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.sm-section-header p {
  margin: 0;
  color: var(--sm-slate, #54616f);
  font-family: "Switzer", "HuiwenZhengkai", "Noto Sans SC", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 58ch;
}

/* Payment cards — 3-column grid */
[data-brand="santa-maria"] .sm-board-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

[data-brand="santa-maria"] .sm-pay-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-color: var(--sm-line, #e2e8f0);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 39, 66, 0.06);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

[data-brand="santa-maria"] .sm-pay-card:hover {
  box-shadow: 0 6px 20px rgba(15, 39, 66, 0.1);
  transform: translateY(-2px);
}

[data-brand="santa-maria"] .sm-pay-card--accent {
  border-color: rgba(11, 110, 91, 0.28);
  background: linear-gradient(135deg, rgba(11, 110, 91, 0.04), #ffffff);
}

.sm-pay-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

[data-brand="santa-maria"] .sm-pay-card h3 {
  margin: 0;
  font-family: var(--sm-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--sm-navy, #0f2742);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

[data-brand="santa-maria"] .sm-pay-card p {
  margin: 0;
  color: var(--sm-slate, #54616f);
  font-family: "Switzer", "HuiwenZhengkai", "Noto Sans SC", system-ui, sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

/* Method chip list inside card */
.sm-method-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Card CTA — teal primary */
[data-brand="santa-maria"] .sm-card-cta {
  align-self: flex-start;
  min-height: 2.75rem;
  padding: 0 1rem;
  margin-top: auto;
  border-color: var(--sm-teal, #0b6e5b);
  border-radius: 8px;
  background: var(--sm-teal, #0b6e5b);
  color: #ffffff;
  font-family: "Switzer", "HuiwenZhengkai", "Noto Sans SC", system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
}

[data-brand="santa-maria"] .sm-card-cta:hover {
  background: var(--sm-teal-bright, #0e8c74);
  border-color: var(--sm-teal-bright, #0e8c74);
}

/* CTA strip overrides */
[data-brand="santa-maria"] .sm-cta-strip {
  border-color: var(--sm-line, #e2e8f0);
  background: linear-gradient(90deg, rgba(15, 39, 66, 0.03), #f4f7fa);
}

[data-brand="santa-maria"] .sm-cta-strip h2 {
  font-family: var(--sm-display);
  font-weight: 700;
  color: var(--sm-navy, #0f2742);
  text-wrap: balance;
}

[data-brand="santa-maria"] .sm-cta-strip p {
  color: var(--sm-slate, #54616f);
}

[data-brand="santa-maria"] .sm-cta-strip .button {
  border-color: var(--sm-teal, #0b6e5b);
  background: var(--sm-teal, #0b6e5b);
  color: #ffffff;
  font-family: "Switzer", "HuiwenZhengkai", "Noto Sans SC", system-ui, sans-serif;
  border-radius: 8px;
}

[data-brand="santa-maria"] .sm-cta-strip .button:hover {
  background: var(--sm-teal-bright, #0e8c74);
  border-color: var(--sm-teal-bright, #0e8c74);
}

/* Reduced motion — disable card lifts on consultation page */
@media (prefers-reduced-motion: reduce) {
  [data-brand="santa-maria"] .sm-pay-card {
    transition: none;
  }
  [data-brand="santa-maria"] .sm-pay-card:hover {
    transform: none;
  }
}

/* Responsive — stack 3-col to 1-col at 820px */
@media (max-width: 820px) {
  [data-brand="santa-maria"] .sm-board-grid {
    grid-template-columns: 1fr;
  }
  .sm-process-steps {
    gap: 0.4rem;
  }
}

/* ============================================================
   SIGNATURE PRIMITIVES (additive) — required class set per spec.
   Scoped by data-brand; reuse tokens already defined above.
   Juris Ivy : .eyebrow .lede .masthead .masthead-title .docket
               .docket-item .roman .rule .tariff .tariff-lead
               .tariff-price .tariff-list .tariff-note .slot
   Santa Maria: .eyebrow .lede .step .slot
   ============================================================ */

/* ---- JURIS IVY ---- */
/* Eyebrow: clean Satoshi, uppercase + tracked (replaces small-caps) */
[data-brand="juris-ivy"] .eyebrow {
  display: inline-block;
  margin: 0 0 1.15rem;
  color: var(--oxblood);
  font-family: var(--ji-body);
  font-size: 0.74rem;
  font-weight: 660;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

[data-brand="juris-ivy"] .lede {
  max-width: 60ch;
  margin: 0 0 1rem;
  color: var(--ink);
  font-family: var(--ji-body);
  font-size: clamp(1.12rem, 1.6vw, 1.35rem);
  line-height: 1.7;
  text-wrap: balance;
}
[data-brand="juris-ivy"] .lede span { display: block; }

/* Law-review masthead: brass double rules */
[data-brand="juris-ivy"] .masthead {
  width: min(1180px, calc(100% - clamp(3rem, 12vw, 9rem)));
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
  padding: clamp(1.4rem, 3.5vw, 2.2rem) 0 clamp(1.8rem, 4vw, 2.6rem);
  border-bottom: 1px solid rgba(168, 136, 78, 0.5);
  text-align: center;
}
/* Atmospheric animated hero background — subtle scenery behind the masthead text */
[data-brand="juris-ivy"] .masthead { position: relative; overflow: hidden; }
[data-brand="juris-ivy"] .hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-size: cover; background-position: center;
  opacity: 0.16;
  animation: heroDrift 30s ease-in-out infinite alternate;
  /* feather ALL four edges evenly so the band dissolves into the ivory (no hard rectangle) */
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 14%, #000 86%, transparent),
    linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 14%, #000 86%, transparent),
    linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
  mask-composite: intersect;
}
[data-brand="juris-ivy"] .masthead > *:not(.hero-bg) { position: relative; z-index: 1; }
/* Video variant: aerial loop provides its own motion; a touch more present than the still */
[data-brand="juris-ivy"] video.hero-bg { object-fit: cover; opacity: 0.34; animation: none; transform: none; }
@keyframes heroDrift {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to   { transform: scale(1.13) translate3d(-1.5%, -2%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  [data-brand="juris-ivy"] .hero-bg { animation: none; transform: scale(1.05); }
}

[data-brand="juris-ivy"] .masthead-title {
  margin: 0 0 1.4rem;
  font-family: var(--ji-display);
  font-weight: 420;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-optical-sizing: auto;
}

/* breathing room before the hero buttons */
[data-brand="juris-ivy"] .masthead .hero-actions { margin-top: 1.8rem; }

/* Docket: ordered ledger with roman numerals */
[data-brand="juris-ivy"] .docket {
  display: grid;
  width: min(1180px, calc(100% - clamp(3rem, 12vw, 9rem)));
  margin-inline: auto;
  margin-block: 1.25rem 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

[data-brand="juris-ivy"] .docket-item {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0.2rem 1rem;
  align-items: start;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

/* Title + description both occupy the wide second column under the
   shared roman numeral. Fixes the broken one-word-per-line layout where
   the <p> overflowed into the narrow first column. */
[data-brand="juris-ivy"] .docket-item h2,
[data-brand="juris-ivy"] .docket-item p {
  grid-column: 2;
}

[data-brand="juris-ivy"] .docket-item h2 {
  margin: 0 0 0.35rem;
  font-family: var(--ji-display);
  font-weight: 480;
  font-size: 1.18rem;
  line-height: 1.2;
  text-wrap: balance;
  color: var(--ink);
}

[data-brand="juris-ivy"] .docket-item p {
  margin: 0;
  max-width: 62ch;
  color: var(--stone);
  line-height: 1.6;
  text-wrap: pretty;
}

[data-brand="juris-ivy"] .roman {
  font-family: var(--ji-display);
  font-weight: 460;
  font-size: 1.1rem;
  color: var(--oxblood);
}

/* Hairline rule: thin double brass + ink */
[data-brand="juris-ivy"] .rule {
  height: 3px;
  margin: 1.4rem 0;
  border: 0;
  background:
    linear-gradient(var(--brass), var(--brass)) top / 100% 1px no-repeat,
    linear-gradient(rgba(27, 23, 20, 0.26), rgba(27, 23, 20, 0.26)) bottom / 100% 1px no-repeat;
}

/* Tariff: editorial price card */
[data-brand="juris-ivy"] .tariff {
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-top: 3px double var(--brass);
  background: #fff;
}

/* Engagement ledger — each lead is a 3-col row:
   roman numeral rail | title+scope body | right-aligned price.
   (The old .tariff-lead small-caps eyebrow styling was removed so it
   no longer inherits into the new flex/grid container.) */
[data-brand="juris-ivy"] .tariff-leads {
  display: grid;
  gap: 1.4rem;
  margin: 1.6rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

[data-brand="juris-ivy"] .tariff-lead {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) auto;
  gap: 0.4rem 1.1rem;
  align-items: baseline;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

[data-brand="juris-ivy"] .tariff-numeral {
  grid-row: 1 / span 2;
  font-family: var(--ji-display);
  font-weight: 460;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--oxblood);
}

[data-brand="juris-ivy"] .tariff-lead-body {
  display: block;
}

[data-brand="juris-ivy"] .tariff-lead-name {
  margin: 0 0 0.3rem;
  font-family: var(--ji-display);
  font-weight: 480;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--ink);
}

[data-brand="juris-ivy"] .tariff-lead-scope {
  margin: 0;
  max-width: 54ch;
  color: var(--stone);
  font-size: 0.98rem;
  line-height: 1.55;
}

[data-brand="juris-ivy"] .tariff-price {
  grid-column: 3;
  justify-self: end;
  display: block;
  margin: 0.2rem 0 0.8rem;
  font-family: var(--ji-display);
  font-weight: 440;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
}

[data-brand="juris-ivy"] .tariff-list {
  display: grid;
  gap: 0.55rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

[data-brand="juris-ivy"] .tariff-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--ink);
}

[data-brand="juris-ivy"] .tariff-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--brass);
}

/* 'Also available' two-part rows: serif name + body-copy scope */
[data-brand="juris-ivy"] .tariff-list-item {
  display: block;
}

[data-brand="juris-ivy"] .tariff-list-name {
  display: block;
  font-family: var(--ji-display);
  font-weight: 480;
  color: var(--ink);
}

[data-brand="juris-ivy"] .tariff-list-scope {
  display: block;
  margin-top: 0.15rem;
  color: var(--stone);
  font-size: 0.95rem;
  line-height: 1.5;
}

[data-brand="juris-ivy"] .tariff-note {
  margin: 1rem 0 0;
  color: var(--stone);
  font-size: 0.92rem;
  font-style: italic;
}

/* Placeholder panel */
[data-brand="juris-ivy"] .slot {
  display: grid;
  place-items: center;
  min-height: 9rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-top: 3px double var(--brass);
  background: rgba(168, 136, 78, 0.06);
  color: var(--oxblood);
  font-family: var(--ji-body);
  font-variant: small-caps;
  font-weight: 560;
  letter-spacing: 0.1em;
  text-align: center;
}

/* ---- SANTA MARIA ---- */
[data-brand="santa-maria"] .eyebrow {
  display: inline-block;
  margin: 0 0 0.6rem;
  color: var(--teal);
  font-family: var(--sm-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

[data-brand="santa-maria"] .lede {
  max-width: 60ch;
  margin: 0 0 1rem;
  color: var(--slate);
  font-family: "Switzer", "HuiwenZhengkai", "Noto Sans SC", system-ui, sans-serif;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.6;
}

/* Numbered process step (CSS counter so markup needs no manual numbers) */
[data-brand="santa-maria"] .finder-paths,
[data-brand="santa-maria"] .subpage-shell,
[data-brand="santa-maria"] .fee-section,
[data-brand="santa-maria"] main {
  counter-reset: sm-step;
}

[data-brand="santa-maria"] .step {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  counter-increment: sm-step;
}

[data-brand="santa-maria"] .step::before {
  content: counter(sm-step);
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-family: var(--sm-display);
  font-weight: 600;
  font-size: 1rem;
}

[data-brand="santa-maria"] .step h3 {
  margin: 0 0 0.25rem;
  font-family: var(--sm-display);
  font-weight: 600;
  color: var(--navy);
}

[data-brand="santa-maria"] .step p {
  margin: 0;
  color: var(--slate);
  line-height: 1.6;
}

/* Placeholder panel (mono, dossier) */
[data-brand="santa-maria"] .slot {
  display: grid;
  place-items: center;
  min-height: 9rem;
  padding: 1.25rem;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--bg-cool);
  color: var(--slate);
  font-family: var(--sm-mono);
  font-size: 0.92rem;
  text-align: center;
}

/* Reduced motion + mobile already handled by the global blocks above;
   step/docket collapse gracefully (single content column) on small screens. */
@media (max-width: 520px) {
  [data-brand="juris-ivy"] .docket-item {
    grid-template-columns: 1.6rem minmax(0, 1fr);
    gap: 0.2rem 0.75rem;
  }
  [data-brand="santa-maria"] .step {
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.75rem;
  }
  [data-brand="juris-ivy"] .masthead-title {
    font-size: clamp(2rem, 11vw, 3rem);
  }
}

/* ============================================================
   CREDIBILITY PRIMITIVES (additive) — shared class names the
   home agents will add. Styled per brand:
     .stats-strip / .stat / .stat-num / .stat-label
     .proof / .proof-item / .proof-rule
   JI = editorial ledger (Zodiak numerals, brass rules,
        tracked Satoshi labels). SM = portal dossier (General
        Sans numerals, teal accents, mono labels).
   ============================================================ */

/* ---- Shared scaffold (brand-neutral; brands restyle below) ---- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  width: min(1220px, calc(100% - clamp(3rem, 12vw, 9rem)));
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
}

.stat {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.stat-num {
  font-variant-numeric: tabular-nums;
  line-height: 0.95;
  text-wrap: balance;
}

.stat-label {
  font-size: 0.72rem;
  line-height: 1.4;
  text-wrap: pretty;
}

.proof {
  display: grid;
  gap: 0.9rem;
  width: min(1220px, calc(100% - clamp(3rem, 12vw, 9rem)));
  margin: clamp(1.5rem, 4vw, 2.5rem) auto 0;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  line-height: 1.5;
  text-wrap: pretty;
}

.proof-rule {
  height: 1px;
  margin: 0.2rem 0;
  border: 0;
}

/* ---- JURIS IVY: editorial ledger ---- */
[data-brand="juris-ivy"] .stats-strip {
  border-top: 1px solid rgba(168, 136, 78, 0.55);
  border-bottom: 1px solid rgba(168, 136, 78, 0.55);
}

[data-brand="juris-ivy"] .stat {
  padding-left: 1.25rem;
  border-left: 1px solid var(--line);
}

[data-brand="juris-ivy"] .stat:first-child {
  padding-left: 0;
  border-left: 0;
}

[data-brand="juris-ivy"] .stat-num {
  font-family: var(--ji-display);
  font-weight: 440;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  letter-spacing: -0.01em;
  color: var(--oxblood);
}

[data-brand="juris-ivy"] .stat-label {
  font-family: var(--ji-body);
  font-weight: 640;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
}

[data-brand="juris-ivy"] .proof-item {
  font-family: var(--ji-body);
  color: var(--ink);
}

[data-brand="juris-ivy"] .proof-item::before {
  content: "—";
  flex: 0 0 auto;
  color: var(--brass);
}

[data-brand="juris-ivy"] .proof-item strong {
  font-family: var(--ji-display);
  font-weight: 480;
}

[data-brand="juris-ivy"] .proof-rule {
  background:
    linear-gradient(var(--brass), var(--brass)) top / 100% 1px no-repeat,
    linear-gradient(rgba(27, 23, 20, 0.2), rgba(27, 23, 20, 0.2)) bottom / 100% 1px no-repeat;
  height: 3px;
}

/* ---- SANTA MARIA: portal dossier ---- */
[data-brand="santa-maria"] .stats-strip {
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(15, 39, 66, 0.04), 0 12px 32px rgba(15, 39, 66, 0.06);
}

[data-brand="santa-maria"] .stat {
  padding-left: 1.25rem;
  border-left: 2px solid var(--teal);
}

[data-brand="santa-maria"] .stat-num {
  font-family: var(--sm-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: -0.015em;
  color: var(--navy);
}

[data-brand="santa-maria"] .stat-label {
  font-family: var(--sm-mono);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}

[data-brand="santa-maria"] .proof-item {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font-family: var(--sm-body);
  color: var(--navy);
  box-shadow: 0 1px 2px rgba(15, 39, 66, 0.04);
}

[data-brand="santa-maria"] .proof-item::before {
  content: "";
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--teal);
}

[data-brand="santa-maria"] .proof-item strong {
  font-family: var(--sm-display);
  font-weight: 600;
}

[data-brand="santa-maria"] .proof-rule {
  background: var(--line);
}

/* Stack stats to two-up then single column on small screens */
@media (max-width: 820px) {
  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  [data-brand="juris-ivy"] .stat:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 480px) {
  .stats-strip {
    grid-template-columns: 1fr;
  }
  [data-brand="juris-ivy"] .stat {
    padding-left: 0;
    border-left: 0;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--line);
  }
  [data-brand="juris-ivy"] .stat:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
  [data-brand="santa-maria"] .stat {
    padding-left: 0.9rem;
  }
}

/* JI hero headline: Huiwen-Mincho (明朝) for Chinese, Zodiak for Latin */
[data-brand="juris-ivy"] .masthead-title {
  font-family: "Fraunces", "Huiwen-Mincho", "Noto Serif SC", Georgia, "Times New Roman", serif;
}

/* Always-available floating "Book" entry on content pages (injected by site.js) */
.book-fab {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: 60; display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.72rem 1.15rem; border-radius: 999px; text-decoration: none;
  font-size: 0.95rem; font-weight: 600; color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.20);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.book-fab:hover, .book-fab:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26); }
.book-fab .book-fab-icon { flex: none; }
[data-brand="juris-ivy"] .book-fab { background: var(--oxblood, #6E1D24); }
[data-brand="santa-maria"] .book-fab { background: var(--teal, #0B6E5B); }
@media (max-width: 560px) { .book-fab { padding: 0.62rem 0.9rem; font-size: 0.86rem; } }
@media (prefers-reduced-motion: reduce) { .book-fab { transition: none; } }

/* JI small editorial labels → Times New Roman (body stays Switzer).
   Top labels bold; bottom (footer/credits) regular weight. */
[data-brand="juris-ivy"] .eyebrow,
[data-brand="juris-ivy"] .stat-label,
[data-brand="juris-ivy"] .sg-credits,
[data-brand="juris-ivy"] .footer-col h3,
[data-brand="juris-ivy"] .footer-line .footer-k,
[data-brand="juris-ivy"] .footer-qrs figcaption,
[data-brand="juris-ivy"] .footer-bottom,
[data-brand="juris-ivy"] .footer-social {
  font-family: "Times New Roman", Times, "ZhuqueFangsong", "Noto Serif SC", serif;
}
[data-brand="juris-ivy"] .eyebrow,
[data-brand="juris-ivy"] .stat-label {
  font-weight: 700;
}
[data-brand="juris-ivy"] .sg-credits,
[data-brand="juris-ivy"] .footer-col h3,
[data-brand="juris-ivy"] .footer-line .footer-k,
[data-brand="juris-ivy"] .footer-qrs figcaption,
[data-brand="juris-ivy"] .footer-bottom,
[data-brand="juris-ivy"] .footer-social {
  font-weight: 400;
}

/* Juris Ivy header logo lockup: the Juris Ivy emblem (big), then 清禾留学 beside (divider) */
[data-brand="juris-ivy"] .brand-lockup { display:inline-flex; align-items:center; gap:1rem; line-height:1; }
[data-brand="juris-ivy"] .brand-mark { height:112px; width:auto; display:block; flex:none; }
[data-brand="juris-ivy"] .brand-divider { flex:none; align-self:center; width:1px; height:3.4rem; background:rgba(110,29,36,.32); }
[data-brand="juris-ivy"] .brand-cn {
  align-self:center; line-height:1; white-space:nowrap;
  font-family:"Huiwen-Mincho","Noto Serif SC",serif;
  font-size:2.2rem; font-weight:400; letter-spacing:.1em; color:var(--oxblood,#6E1D24);
}
[data-brand="juris-ivy"] .brand-logo-link { text-decoration:none; }
@media (max-width:1180px) {
  [data-brand="juris-ivy"] .brand-mark { height:78px; }
  [data-brand="juris-ivy"] .brand-cn { font-size:1.7rem; }
  [data-brand="juris-ivy"] .brand-divider { height:2.6rem; }
}
@media (max-width:560px) {
  [data-brand="juris-ivy"] .brand-mark { height:58px; }
  [data-brand="juris-ivy"] .brand-cn { font-size:1.3rem; letter-spacing:.06em; }
  [data-brand="juris-ivy"] .brand-divider { height:2rem; }
}


/* ===== Rich site footer (per-brand) ===== */
.site-footer{ margin-top:4.5rem; padding:3rem clamp(1.2rem,5vw,4rem) 1.8rem; }
.footer-grid{ display:grid; grid-template-columns:1.5fr 1fr 1.3fr 1.5fr; gap:2rem 2.5rem; max-width:1180px; margin:0 auto; }
.footer-col h3{ font-size:.72rem; letter-spacing:.14em; text-transform:uppercase; margin:0 0 1rem; }
.footer-col a, .footer-col p{ font-size:.92rem; line-height:1.7; margin:0 0 .45rem; text-decoration:none; }
.footer-col a{ display:block; }
.footer-col a:hover{ text-decoration:underline; }
.footer-brand{ display:flex; flex-direction:column; align-items:flex-start; gap:.1rem; }
.footer-brand .footer-logo{ display:inline-flex; align-items:center; gap:.55rem; margin-bottom:.2rem; }
/* Juris Ivy footer: four columns — logo | nav | contact | media(QR), brand stacked */
[data-brand="juris-ivy"] .footer-grid{ grid-template-columns:1fr 1fr 1.35fr 1.45fr; }
[data-brand="juris-ivy"] .footer-brand{ flex-direction:column; align-items:center; text-align:center; gap:.7rem; }
[data-brand="juris-ivy"] .footer-brand .footer-logo{ margin-bottom:0; gap:.6rem; }
[data-brand="juris-ivy"] .footer-brand .footer-logo img{ height:104px; width:auto; }
[data-brand="juris-ivy"] .footer-cn{ font-family:"Huiwen-Mincho","Noto Serif SC",serif; font-size:1.7rem; letter-spacing:.1em; line-height:1.1; color:var(--oxblood,#6E1D24); }
/* Footer English in the editorial Times New Roman (Chinese falls back to Mincho) */
[data-brand="juris-ivy"] .site-footer{ font-family:"Times New Roman", Times, "Huiwen-Mincho", "Noto Serif SC", serif; }
/* Fix: landing-paths normally overlaps the section above via a negative margin;
   on the JI home it follows the school grid, so cancel the overlap. */
[data-brand="juris-ivy"] .landing-paths{ margin-top:1.5rem; z-index:auto; }
.footer-line{ display:flex; gap:.45rem; font-size:.92rem; line-height:1.7; margin:0 0 .45rem; flex-wrap:wrap; }
.footer-line .footer-k{ opacity:.62; }
.footer-line a{ display:inline; }
[data-brand="juris-ivy"] .footer-addr-cn{ display:inline-block; font-size:.84rem; opacity:.8; }
.footer-wordmark{ font-size:1.3rem; display:block; margin-bottom:.5rem; }
.footer-tag{ font-size:.82rem; letter-spacing:.06em; opacity:.85; }
.footer-blurb{ max-width:30ch; opacity:.8; }
.footer-office{ margin-bottom:.6rem !important; }
.footer-office strong{ display:block; font-size:.76rem; letter-spacing:.06em; }
.footer-office span{ font-size:.88rem; opacity:.85; }
.footer-qrs{ display:flex; gap:1rem; flex-wrap:wrap; }
.footer-qrs figure{ margin:0; text-align:center; }
.footer-qr{ width:104px; height:104px; background:#fff; padding:5px; border:1px solid; border-radius:4px; display:block; }
.footer-qrs figcaption{ font-size:.7rem; margin-top:.35rem; opacity:.8; max-width:114px; line-height:1.3; }
.footer-social{ display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; margin-top:1rem; font-size:.84rem; }
.footer-social span{ opacity:.7; margin-right:.2rem; }
.footer-social a{ border:1px solid; padding:.24rem .65rem; border-radius:2px; text-decoration:none; }
.footer-bottom{ max-width:1180px; margin:2.2rem auto 0; padding-top:1.4rem; border-top:1px solid; font-size:.82rem; opacity:.78; }
@media (max-width:820px){ .footer-grid{ grid-template-columns:1fr 1fr; } [data-brand="juris-ivy"] .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){
  .footer-grid{ grid-template-columns:1fr; }
  [data-brand="juris-ivy"] .footer-grid{ grid-template-columns:1fr; }
  [data-brand="juris-ivy"] .footer-cn{ border-left:0; padding-left:0; }
}

[data-brand="juris-ivy"] .site-footer{ background:#F3EEE3; border-top:3px double rgba(110,29,36,.32); color:#46403a; }
[data-brand="juris-ivy"] .site-footer h3{ color:#6E1D24; }
[data-brand="juris-ivy"] .site-footer a{ color:#46403a; }
[data-brand="juris-ivy"] .footer-tag, [data-brand="juris-ivy"] .footer-office strong{ color:#1B1714; }
[data-brand="juris-ivy"] .footer-qr, [data-brand="juris-ivy"] .footer-social a{ border-color:rgba(110,29,36,.3); }
[data-brand="juris-ivy"] .footer-bottom{ border-color:rgba(27,23,20,.14); }

[data-brand="santa-maria"] .site-footer{ background:#0F2742; border-top:3px solid #0B6E5B; color:#c3d0dd; }
[data-brand="santa-maria"] .site-footer h3{ color:#5fd3ba; }
[data-brand="santa-maria"] .site-footer a{ color:#dbe6ef; }
[data-brand="santa-maria"] .footer-wordmark, [data-brand="santa-maria"] .footer-office strong{ color:#ffffff; }
[data-brand="santa-maria"] .footer-qr{ border-color:rgba(255,255,255,.22); }
[data-brand="santa-maria"] .footer-social a{ border-color:rgba(255,255,255,.26); }
[data-brand="santa-maria"] .footer-bottom{ border-color:rgba(255,255,255,.15); }

/* header: nav on one line only on desktop; lang switch never wraps */
@media (min-width: 1181px) { .site-top nav { flex-wrap: nowrap; } }
.site-top nav .lang-switch { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 0; }

/* Responsive header: stack logo + nav on medium/small screens so nav never crams */
@media (max-width: 1180px) {
  .site-top { flex-wrap: wrap; justify-content: center; row-gap: .55rem; padding-left: clamp(1rem,4vw,2rem); padding-right: clamp(1rem,4vw,2rem); }
  .site-top .wordmark { justify-items: center; text-align: center; }
  .site-top nav { flex-wrap: wrap; justify-content: center; width: 100%; gap: .5rem 1.2rem; font-size: 1rem; }
}
@media (max-width: 560px) {
  .site-top nav { font-size: .92rem; gap: .4rem .85rem; }
}

/* JI masthead: center lede + action buttons under the centered headline */
[data-brand="juris-ivy"] .masthead { text-align: center; }
[data-brand="juris-ivy"] .masthead .lede { margin-left: auto; margin-right: auto; }
[data-brand="juris-ivy"] .masthead .hero-actions { justify-content: center; }

/* JI home — School Guides grid */
[data-brand="juris-ivy"] .school-guides { padding:3rem max(clamp(1rem,4vw,3rem), calc((100% - 1180px)/2)); text-align:center; border-top:1px solid rgba(27,23,20,.1); }
[data-brand="juris-ivy"] .school-guides .sg-title { font-size:clamp(1.6rem,3.2vw,2.4rem); color:#1B1714; margin:.2rem 0 .5rem; }
[data-brand="juris-ivy"] .school-guides .sg-intro { color:#6F6863; max-width:60ch; margin:0 auto 2rem; }
/* School slider: horizontal scroll-snap carousel — ~3 cards visible + next peeking */
[data-brand="juris-ivy"] .school-carousel { position:relative; max-width:1080px; margin:0 auto; }
[data-brand="juris-ivy"] .school-grid {
  display:flex; gap:1.4rem; overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch; padding:.4rem .15rem 1rem; scrollbar-width:none;
}
[data-brand="juris-ivy"] .school-grid::-webkit-scrollbar { display:none; }
[data-brand="juris-ivy"] .sc-arrow {
  position:absolute; top:42%; transform:translateY(-50%); z-index:3;
  width:40px; height:40px; border-radius:50%; border:1px solid rgba(110,29,36,.25);
  background:rgba(251,248,241,.94); color:var(--oxblood,#6E1D24); font-size:1.45rem; line-height:1; cursor:pointer;
  display:flex; align-items:center; justify-content:center; box-shadow:0 5px 16px rgba(27,23,20,.14);
  transition:background .15s ease, transform .15s ease;
}
[data-brand="juris-ivy"] .sc-arrow:hover { background:#fff; transform:translateY(-50%) scale(1.06); }
[data-brand="juris-ivy"] .sc-prev { left:-10px; }
[data-brand="juris-ivy"] .sc-next { right:-10px; }
[data-brand="juris-ivy"] .school-card { flex:0 0 clamp(250px, 29%, 300px); scroll-snap-align:start; display:flex; flex-direction:column; border:1px solid rgba(27,23,20,.14); border-radius:3px; overflow:hidden; background:#fff; transition:box-shadow 180ms ease, transform 180ms ease; }
@media (max-width:560px){ [data-brand="juris-ivy"] .sc-arrow{ display:none; } [data-brand="juris-ivy"] .school-card{ flex:0 0 80%; } }
[data-brand="juris-ivy"] .school-card-main { display:block; text-decoration:none; color:inherit; }
[data-brand="juris-ivy"] .school-card img { display:block; width:100%; height:200px; object-fit:cover; }
[data-brand="juris-ivy"] .school-card .school-name { display:block; padding:.85rem 1rem .3rem; font-family:"Zodiak","Noto Serif SC",serif; font-size:1.05rem; color:#1B1714; }
[data-brand="juris-ivy"] .school-guide-link { display:block; margin-top:auto; padding:.15rem 1rem .9rem; font-family:"Times New Roman",Times,serif; font-size:.82rem; letter-spacing:.03em; color:var(--oxblood,#6E1D24); text-decoration:none; }
[data-brand="juris-ivy"] .school-guide-link:hover { text-decoration:underline; }
[data-brand="juris-ivy"] .school-card:hover { box-shadow:0 12px 32px rgba(27,23,20,.12); transform:translateY(-3px); }
[data-brand="juris-ivy"] .sg-credits { color:#8a837c; font-size:.78rem; margin:1.6rem auto 0; max-width:72ch; line-height:1.6; }
@media (max-width:820px){ [data-brand="juris-ivy"] .school-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px){ [data-brand="juris-ivy"] .school-grid{ grid-template-columns:1fr; } }
@media (prefers-reduced-motion:reduce){ [data-brand="juris-ivy"] .school-card{transition:none;} [data-brand="juris-ivy"] .school-card:hover{transform:none;} }
