/* Living In The Private — refined editorial design */
:root {
  --bg: #eef1f6;
  --bg-deep: #e0e5ee;
  --surface: #fbfcfe;
  --surface-2: #f3f5f9;
  --ink: #161b26;
  --ink-soft: #4a5160;
  --ink-muted: #6f7788;
  --accent: #243b6b;
  --accent-mid: #34508a;
  --accent-hover: #1a2d54;
  --accent-soft: #e4eaf6;
  --gold: #c06a45;
  --gold-deep: #a35232;
  --gold-soft: #f7e8e1;
  --line: #cfd6e3;
  --line-soft: #e2e7f0;
  --shadow-sm: 0 1px 2px rgba(22, 27, 38, 0.05);
  --shadow: 0 2px 4px rgba(22, 27, 38, 0.04), 0 12px 32px rgba(36, 59, 107, 0.08);
  --shadow-lg: 0 8px 16px rgba(22, 27, 38, 0.05), 0 24px 48px rgba(36, 59, 107, 0.1);
  --radius: 16px;
  --radius-sm: 12px;
  --max: 700px;
  --max-wide: 1120px;
  --font-serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.78;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 100% 60% at 50% -10%, rgba(251, 252, 254, 0.95) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 15%, rgba(228, 234, 246, 0.55) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 0% 70%, rgba(247, 232, 225, 0.35) 0%, transparent 45%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}
a:hover { color: var(--gold-deep); }

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 252, 246, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(217, 208, 192, 0.85);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.header-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  position: relative;
}

.brand {
  font-family: var(--font-sans);
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
  min-width: 0;
  transition: opacity 0.15s ease;
}
.brand:hover { opacity: 0.88; text-decoration: none; color: var(--accent); }

.brand-logo {
  width: auto;
  height: 48px;
  max-width: min(280px, 42vw);
  flex-shrink: 0;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 1px 4px rgba(36, 59, 107, 0.1));
  border-radius: 0;
  background: transparent;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}
.brand-text--tag {
  border-left: 1px solid var(--line);
  padding-left: 0.75rem;
  margin-left: 0.15rem;
}
.brand-text strong {
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--accent);
}
.brand-text span {
  font-weight: 500;
  font-size: 0.62rem;
  color: var(--gold-deep);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Hamburger */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.nav-toggle:hover {
  background: var(--accent-soft);
  border-color: #c9bba6;
  box-shadow: var(--shadow);
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav */
.site-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.2rem;
  align-items: center;
  justify-content: flex-end;
}

.site-nav > a,
.nav-drop > summary {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.site-nav > a:hover,
.nav-drop > summary:hover {
  background: rgba(255, 252, 246, 0.9);
  color: var(--accent);
  border-color: var(--line-soft);
  text-decoration: none;
}
.site-nav > a.active,
.nav-drop[open] > summary {
  background: var(--accent);
  color: #fbfcfe;
  border-color: var(--accent);
  text-decoration: none;
}
.site-nav > a.active:hover {
  background: var(--accent-hover);
  color: #fbfcfe;
}

.nav-drop { position: relative; }
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop > summary::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4.5px solid currentColor;
  opacity: 0.6;
  margin-top: 1px;
}
.nav-drop[open] > summary::after { transform: rotate(180deg); }

.nav-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(780px, calc(100vw - 2rem));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 1.25rem 1.35rem 1.4rem;
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 1.35rem;
  animation: panelIn 0.18s ease;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 1100px) and (min-width: 961px) {
  .nav-panel {
    grid-template-columns: repeat(2, 1fr);
    width: min(520px, calc(100vw - 2rem));
  }
}
.nav-panel::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 2.2rem;
  width: 12px;
  height: 12px;
  background: var(--surface);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.nav-group-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 0.5rem;
  padding: 0 0.4rem;
}
.nav-group {
  min-width: 0;
  padding: 0.35rem;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--surface-2) 0%, transparent 100%);
}
.nav-group a {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.42rem 0.5rem;
  border-radius: 8px;
  line-height: 1.35;
  transition: background 0.12s ease, color 0.12s ease;
}
.nav-group a:hover,
.nav-group a.active {
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 26, 23, 0.28);
  backdrop-filter: blur(2px);
  z-index: 90;
  border: none;
  padding: 0;
  cursor: pointer;
}
.nav-backdrop.open { display: block; }

@media (max-width: 480px) {
  .brand-text--tag { display: none; }
  .brand-logo {
    height: 40px;
    max-width: min(200px, 58vw);
    width: auto;
  }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 95;
    background:
      radial-gradient(ellipse 80% 40% at 50% 0%, #fff 0%, var(--bg) 70%);
    flex-direction: column;
    align-items: stretch;
    padding: 5.5rem 1.25rem 2.5rem;
    gap: 0.35rem;
    overflow-y: auto;
  }
  .site-nav.open { display: flex; }

  .site-nav > a,
  .nav-drop > summary {
    font-size: 1.05rem;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    width: 100%;
    justify-content: space-between;
    background: var(--surface);
    border-color: var(--line-soft);
    box-shadow: var(--shadow-sm);
  }
  .site-nav > a.active {
    background: var(--accent);
    border-color: var(--accent);
  }

  .nav-drop { width: 100%; }
  .nav-panel {
    position: static;
    width: 100%;
    box-shadow: none;
    border: 1px solid var(--line);
    border-radius: 14px;
    margin: 0.35rem 0 0.85rem;
    padding: 0.9rem;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    animation: none;
  }
  .nav-panel::before { display: none; }
  .nav-group { background: var(--surface-2); padding: 0.65rem; }
  .nav-group a { padding: 0.6rem 0.55rem; font-size: 0.95rem; }

  body.nav-open { overflow: hidden; }
}

@media (min-width: 961px) {
  .nav-backdrop { display: none !important; }
}

/* ========== Layout ========== */
.wrap {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3.75rem 1rem 2.75rem;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}
.hero-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.35rem;
  filter: drop-shadow(0 6px 16px rgba(36, 59, 107, 0.14));
  object-fit: contain;
}
.hero-mark--lockup {
  width: min(360px, 86vw);
  height: auto;
  max-height: 120px;
  padding: 0.85rem 1.25rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  filter: none;
}
.hero .eyebrow {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.hero .eyebrow::before,
.hero .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  display: block;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 5.5vw, 3.15rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--accent);
  margin: 0 0 1.15rem;
  letter-spacing: -0.025em;
}
.hero .lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 34em;
  line-height: 1.7;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.75rem;
}
.hero-pills a {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}
.hero-pills a:hover {
  background: var(--accent);
  color: #fbfcfe;
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

/* ========== Home page visual redesign ========== */
.home-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin: 1rem auto 2.5rem;
  max-width: var(--max-wide);
  min-height: clamp(440px, 58vw, 580px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.home-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.02);
}
.home-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 45, 84, 0.25) 0%, rgba(26, 45, 84, 0.15) 35%, rgba(16, 24, 48, 0.72) 72%, rgba(12, 18, 36, 0.9) 100%),
    linear-gradient(90deg, rgba(26, 45, 84, 0.35) 0%, transparent 40%, transparent 60%, rgba(26, 45, 84, 0.25) 100%);
}
.home-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2.5rem 1.5rem 2.85rem;
  max-width: 780px;
  width: 100%;
  color: #f4f6fb;
}
.home-hero__content .hero-mark {
  width: 78px;
  height: 78px;
  margin: 0 auto 1.2rem;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
  background: rgba(255, 255, 255, 0.08);
}
.home-hero__content .hero-mark--lockup {
  width: min(380px, 88vw);
  height: auto;
  max-height: 130px;
  padding: 0.9rem 1.35rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
  filter: none;
  border-radius: 50%;
  padding: 4px;
}
.home-hero__content .eyebrow {
  color: #e8b396;
}
.home-hero__content .eyebrow::before,
.home-hero__content .eyebrow::after {
  background: linear-gradient(90deg, transparent, #c06a45, transparent);
}
.home-hero__content h1 {
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
  margin-bottom: 1rem;
}
.home-hero__content .lede {
  color: rgba(244, 246, 251, 0.9);
  font-size: 1.12rem;
}
.home-hero__content .hero-pills {
  margin-top: 1.6rem;
}
.home-hero__content .hero-pills a {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  backdrop-filter: blur(8px);
}
.home-hero__content .hero-pills a:hover {
  background: #c06a45;
  border-color: #c06a45;
  color: #fff;
}

.feature-strip {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
  max-width: var(--max-wide);
  margin: 0 auto 2.75rem;
}
@media (min-width: 800px) {
  .feature-strip { grid-template-columns: repeat(3, 1fr); }
}
.feature-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #b8c3d6;
  text-decoration: none;
  color: inherit;
}
.feature-card__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: var(--accent-soft);
}
.feature-card__body {
  padding: 1.25rem 1.3rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.feature-card__body h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.45rem;
  letter-spacing: -0.01em;
}
.feature-card__body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
  flex: 1;
}
.feature-card__body .card-arrow {
  margin-top: 0.9rem;
}

.home-split {
  display: grid;
  gap: 1.5rem;
  max-width: var(--max-wide);
  margin: 0 auto 2.75rem;
  align-items: stretch;
}
@media (min-width: 860px) {
  .home-split { grid-template-columns: 1.05fr 0.95fr; gap: 1.75rem; }
}
.home-split__media {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 280px;
  background: var(--accent-soft);
}
.home-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 280px;
}
.home-split .intro-panel {
  margin: 0;
  max-width: none;
  height: 100%;
}

.band {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  margin: 2.5rem auto;
  max-width: var(--max-wide);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.band__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.band__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(26, 45, 84, 0.9) 0%, rgba(36, 59, 107, 0.78) 55%, rgba(192, 106, 69, 0.35) 100%);
}
.band__content {
  position: relative;
  z-index: 1;
  padding: 2.25rem 1.75rem;
  color: #f4f6fb;
  max-width: 40em;
}
.band__content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin: 0 0 0.65rem;
  color: #fff;
  font-weight: 600;
}
.band__content p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(244, 246, 251, 0.9);
}
.band__content a {
  color: #f0c4b0;
  font-weight: 600;
}

.home-topics {
  max-width: var(--max-wide);
  margin: 0 auto;
}
.home-topics .section-block {
  margin-top: 2.75rem;
}
.home-topics .card {
  min-height: 140px;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  max-width: var(--max-wide);
  margin: 0 auto 2.5rem;
}
@media (min-width: 700px) {
  .stat-row { grid-template-columns: repeat(3, 1fr); }
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.4rem;
}
.stat span {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 600;
  line-height: 1.35;
}

@media (max-width: 600px) {
  .home-hero {
    border-radius: 16px;
    min-height: 420px;
  }
  .home-hero__content { padding: 2.25rem 1.1rem 2rem; }
  .feature-card__img { height: 140px; }
}

/* Page hero */
.page-hero {
  padding: 2.75rem 0 1.75rem;
  margin-bottom: 2.25rem;
  position: relative;
}
.page-hero::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 1.75rem;
  background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent);
}
.breadcrumb {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin: 0 0 0.9rem;
  letter-spacing: 0.01em;
}
.breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0;
}
.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  line-height: 1.4;
}
.breadcrumb-item a {
  color: var(--accent-mid);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}
.breadcrumb-item a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.breadcrumb-sep {
  display: inline-block;
  margin: 0 0.45rem;
  color: var(--ink-muted);
  opacity: 0.7;
  font-weight: 400;
}
.breadcrumb-current span:last-child {
  color: var(--ink-soft);
  font-weight: 500;
}
.page-hero .breadcrumb { margin: 0 0 0.9rem; }
.page-hero h1 {
  font-size: clamp(1.85rem, 4.2vw, 2.5rem);
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.55rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.page-hero .subtitle {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 38em;
  line-height: 1.55;
}

/* Content */
.article {
  max-width: var(--max);
  margin: 0 auto;
}

.prose p { margin: 0 0 1.2em; }
.prose p:last-child { margin-bottom: 0; }

.prose h2 {
  font-size: 1.42rem;
  font-weight: 600;
  color: var(--accent);
  margin: 2.4em 0 0.8em;
  letter-spacing: -0.015em;
  line-height: 1.28;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line-soft);
}
.prose h3 {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
  margin: 1.85em 0 0.55em;
}

.prose ul, .prose ol {
  margin: 0 0 1.3em;
  padding-left: 1.3em;
}
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--gold); }

.prose blockquote,
.callout {
  margin: 1.85em 0;
  padding: 1.25rem 1.4rem;
  background: linear-gradient(135deg, var(--gold-soft) 0%, #f8f1e4 100%);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink);
  font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
}
.prose blockquote p:last-child,
.callout p:last-child { margin-bottom: 0; }

.callout-accent {
  background: linear-gradient(135deg, var(--accent-soft) 0%, #edf4f1 100%);
  border-left-color: var(--accent);
}

.maxim {
  margin: 2.25em 0;
  padding: 1.6rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.maxim::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
}
.maxim .latin {
  font-style: italic;
  color: var(--accent);
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.12rem;
}
.maxim .en {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.def-grid {
  display: grid;
  gap: 1.1rem;
  margin: 2.25rem 0;
}
@media (min-width: 640px) {
  .def-grid { grid-template-columns: 1fr 1fr; }
}
.def-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.4rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.def-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
}
.def-card:last-child::before { background: var(--accent); }
.def-card h3 {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 0.7rem;
}
.def-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.68;
  color: var(--ink-soft);
}
.def-card strong { color: var(--ink); }

/* ========== Home cards ========== */
.section-block {
  margin: 3.5rem 0 1rem;
}
.section-label {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-align: center;
  margin: 0 0 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.section-label::before,
.section-label::after {
  content: "";
  width: min(80px, 12vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.card-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
  max-width: var(--max-wide);
  margin: 0 auto 0.5rem;
}
@media (min-width: 600px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.45rem 1.45rem 1.35rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
  min-height: 100%;
}
.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--accent));
  opacity: 0;
  transition: opacity 0.18s ease;
}
.card:hover {
  border-color: #cfc3ad;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: inherit;
}
.card:hover::before { opacity: 1; }
.card h3 {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.card p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--ink-soft);
  flex: 1;
}
.card-arrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 0.95rem;
  opacity: 0.8;
  transition: opacity 0.15s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.card-arrow::after {
  content: "\2192";
  font-size: 1em;
  transition: transform 0.15s ease;
}
.card:hover .card-arrow {
  opacity: 1;
}
.card:hover .card-arrow::after {
  transform: translateX(4px);
}

.intro-panel {
  max-width: var(--max);
  margin: 0.5rem auto 2.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem 2rem 1.75rem;
  box-shadow: var(--shadow);
  position: relative;
}
.intro-panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  pointer-events: none;
  opacity: 0.7;
}
.intro-panel p { position: relative; }
.intro-panel p:last-child { margin-bottom: 0; }

/* Private / Public strip on home after defs */
.home-close {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--ink-muted);
}

/* ========== Footer ========== */
.site-footer {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--bg-deep) 0%, #d5dce8 100%);
  margin-top: 4rem;
  padding: 3rem 1.5rem 2rem;
}
.footer-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: grid;
  gap: 2.25rem;
}
@media (min-width: 700px) {
  .footer-inner { grid-template-columns: 1.35fr 1fr 1fr; gap: 2.5rem; }
}
.footer-brand {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.02rem;
}
.footer-brand img {
  width: auto;
  height: 40px;
  max-width: 200px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(36, 59, 107, 0.1));
}
.footer-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
  max-width: 28em;
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 0.85rem;
}
.footer-col a {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.28rem 0;
  transition: color 0.12s ease, padding-left 0.12s ease;
}
.footer-col a:hover {
  color: var(--accent);
  padding-left: 0.25rem;
}
.footer-bottom {
  max-width: var(--max-wide);
  margin: 2.25rem auto 0;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(163, 82, 50, 0.2);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-align: center;
  letter-spacing: 0.02em;
}

/* ========== Utilities ========== */
.figure {
  margin: 2.25rem 0;
  text-align: center;
}
.figure img {
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.figure figcaption {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 0.7rem;
}

.related {
  max-width: var(--max);
  margin: 3.25rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
}
.related h2 {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1rem;
}
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.related-links a {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}
.related-links a:hover {
  border-color: var(--accent);
  color: #fbfcfe;
  background: var(--accent);
  box-shadow: var(--shadow);
}

.disclaimer {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--ink-muted);
  padding: 1.1rem 1.25rem;
  background: rgba(28, 26, 23, 0.035);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

/* ========== Educational diagrams (recreated from original site) ========== */
.diagram {
  margin: 2.25rem 0;
  max-width: 100%;
}
.diagram-caption {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-align: center;
  margin: 0.65rem 0 0;
}

.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.4;
  background: var(--surface);
}
.compare th,
.compare td {
  padding: 0.7rem 0.85rem;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
  width: 50%;
}
.compare tr:last-child th,
.compare tr:last-child td { border-bottom: none; }
.compare .col-left {
  background: linear-gradient(180deg, #e8eef5 0%, #dfe8f2 100%);
  color: #1e3a5f;
}
.compare .col-right {
  background: linear-gradient(180deg, #f7ebe4 0%, #f0ddd3 100%);
  color: #4a2e22;
}
.compare thead th {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 0.95rem 0.85rem;
  text-align: center;
}
.compare thead .col-left {
  background: linear-gradient(180deg, #c5d4e8 0%, #b4c7e0 100%);
  color: #16304f;
}
.compare thead .col-right {
  background: linear-gradient(180deg, #f0c4b0 0%, #dba88f 100%);
  color: #4a2e22;
}
.compare tbody td {
  text-align: center;
}
.compare .main {
  font-weight: 700;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.15rem;
  letter-spacing: 0.01em;
}
.compare .sub {
  font-weight: 400;
  font-size: 0.78rem;
  opacity: 0.85;
  display: block;
}
.compare .emph {
  color: #9b2c2c;
  font-weight: 700;
}
.compare .good {
  color: #243b6b;
  font-weight: 700;
}

/* Hierarchy stack (crossing the line) */
.law-stack {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  font-family: var(--font-sans);
}
.law-stack .stack-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 0.25rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  background: var(--gold-soft);
  color: var(--gold-deep);
  border-bottom: 1px solid var(--line);
}
.law-layer {
  text-align: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.law-layer .title {
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 0.2rem;
}
.law-layer .note {
  font-size: 0.8rem;
  opacity: 0.85;
  margin: 0;
}
.law-layer.above {
  background: linear-gradient(180deg, #f7ebe4 0%, #f0ddd3 100%);
  color: #4a2e22;
}
.law-layer.divider {
  background: linear-gradient(90deg, #243b6b, #c06a45, #243b6b);
  color: #fbfcfe;
  padding: 0.65rem 1rem;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.law-layer.below {
  background: linear-gradient(180deg, #dce6f0 0%, #cfdceb 100%);
  color: #1e3a5f;
}
.law-stack .stack-foot {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 0.25rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  background: #cfdceb;
  color: #1e3a5f;
}

/* Process / steps diagram */
.steps-diagram {
  display: grid;
  gap: 0.65rem;
  margin: 2rem 0;
}
.step-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-sans);
}
.step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fbfcfe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.step-card h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  color: var(--accent);
}
.step-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Theatre poster style */
.poster {
  margin: 2rem 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(165deg, #34508a 0%, #243b6b 45%, #1a2d54 100%);
  color: #f5efe4;
  text-align: center;
  padding: 0;
  font-family: var(--font-sans);
}
.poster-top {
  padding: 1.5rem 1.25rem 0.75rem;
  border-bottom: 1px solid rgba(192, 106, 69, 0.35);
}
.poster-top h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #f5efe4;
}
.poster-top .sub {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: #d4896a;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.poster-body {
  padding: 1.35rem 1.25rem 1.6rem;
}
.poster-body p {
  margin: 0.45rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(245, 239, 228, 0.92);
}
.poster-body strong {
  color: #f0c4b0;
  font-weight: 600;
}
.poster img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

/* Figure image */
.figure-img {
  margin: 2rem 0;
  text-align: center;
}
.figure-img img {
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  max-width: 100%;
  height: auto;
}
.figure-img figcaption {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 0.65rem;
}
.page-hero-img {
  margin: 0 0 1.75rem;
}
.page-hero-img img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}
.article.prose > .page-hero-img:first-child {
  margin-top: 0.25rem;
}

@media (max-width: 560px) {
  .compare { font-size: 0.78rem; }
  .compare th, .compare td { padding: 0.55rem 0.45rem; }
  .compare .main { font-size: 0.8rem; }
  .compare .sub { font-size: 0.7rem; }
  .law-stack .stack-head,
  .law-layer.divider,
  .law-stack .stack-foot { font-size: 0.62rem; }
}

/* Selection */
::selection {
  background: rgba(192, 106, 69, 0.28);
  color: var(--ink);
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Skip link + a11y */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0.75rem;
  color: #fff;
}

/* Mobile polish + layout safety */
@media (max-width: 1100px) {
  .site-nav > a:nth-of-type(n+3) { display: none; } /* hide Sovereignty/Jurisdiction/Rebut, keep Home + Topics */
  .site-nav > a:first-of-type { display: inline-flex; }
}

@media (max-width: 960px) {
  .site-nav > a:nth-of-type(n+3) { display: inline-flex; } /* restore all links in mobile drawer */
  .header-inner {
    padding: 0.65rem 1rem;
    min-height: 64px;
  }
  .wrap { padding: 0 1rem 3.5rem; }
  .home-hero {
    margin: 0.75rem auto 1.75rem;
    min-height: min(78vh, 520px);
    border-radius: 18px;
  }
  .home-hero__content {
    padding: 1.75rem 1rem 2rem;
  }
  .home-hero__content h1 {
    font-size: clamp(1.75rem, 7.5vw, 2.35rem);
  }
  .home-hero__content .lede {
    font-size: 1rem;
    line-height: 1.6;
  }
  .home-hero__content .hero-pills {
    gap: 0.4rem;
  }
  .home-hero__content .hero-pills a {
    font-size: 0.78rem;
    padding: 0.5rem 0.85rem;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
  .stat-row { gap: 0.65rem; margin-bottom: 1.75rem; }
  .stat { padding: 1rem 0.9rem; }
  .feature-strip { gap: 0.85rem; margin-bottom: 1.75rem; }
  .home-split { gap: 1rem; margin-bottom: 1.75rem; }
  .home-split__media,
  .home-split__media img { min-height: 200px; }
  .band__content { padding: 1.75rem 1.15rem; }
  .band__content h2 { font-size: 1.35rem; }
  .page-hero { padding: 1.5rem 0 1.1rem; margin-bottom: 1.25rem; }
  .page-hero h1 { font-size: clamp(1.55rem, 6.5vw, 2rem); }
  .page-hero-img img { max-height: 220px; border-radius: 14px; }
  .intro-panel { padding: 1.25rem 1.15rem 1.15rem; border-radius: 16px; }
  .intro-panel::before { inset: 6px; border-radius: 12px; }
  .card { padding: 1.15rem 1.15rem 1.1rem; }
  .related-links a,
  .hero-pills a { min-height: 40px; }
  .site-footer { padding: 2rem 1rem 1.5rem; margin-top: 2.5rem; }
  .footer-bottom { font-size: 0.75rem; line-height: 1.5; }
  body { font-size: 1.05rem; }
  .prose h2 { font-size: 1.25rem; }
  /* Comparison tables: allow horizontal scroll on tiny screens */
  .diagram {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: -0.15rem;
    margin-right: -0.15rem;
    padding: 0 0.15rem;
  }
  .compare { min-width: 300px; }
  .nav-toggle {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
  }
  .site-nav.open {
    padding-top: max(5rem, calc(env(safe-area-inset-top, 0px) + 4.5rem));
    padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 400px) {
  .brand-logo {
    height: 36px;
    max-width: min(180px, 62vw);
  }
  .home-hero__content .hero-mark--lockup {
    width: min(300px, 90vw);
    max-height: 96px;
    padding: 0.65rem 0.9rem;
  }
}

/* Slight visual polish */
.card-grid { gap: 1rem; }
.section-label { margin-bottom: 1.1rem; }
.page-hero .subtitle { max-width: 40em; }
.footer-bottom a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.footer-bottom a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
img[loading="lazy"] { background: var(--surface-2); }
