/* © alkat.x · Dolan's E-2 Project · v4.0.0 · core.css · Unified design system */

:root {
  /* === BRAND COLORS — GLOBAL UNIFIED PALETTE === */
  --brand: #1A5F3F;          /* Deep green — primary brand */
  --brand-deep: #0F3D27;     /* Darker green — hover/depth */
  --brand-soft: #E8F0EA;     /* Pale green — backgrounds */
  --gold: #C8922A;           /* Warm gold — accent */
  --gold-light: #E8B850;     /* Lighter gold — highlights */
  --gold-soft: #FAF1D9;      /* Pale gold — backgrounds */

  /* === NEUTRALS === */
  --bg: #FAFAF6;             /* Warm off-white — page background */
  --surface: #FFFFFF;        /* Card backgrounds */
  --surface-2: #F4F2EA;      /* Subtle differentiation */
  --ink: #161814;            /* Primary text — near-black with green tint */
  --ink-2: #4A4F49;          /* Secondary text */
  --ink-3: #7A7F75;          /* Tertiary text — meets WCAG AA on white */
  --ink-4: #B0B3A8;          /* Muted — placeholders only */
  --rule: #E5E2D6;           /* Borders */
  --rule-strong: #C9C5B5;    /* Stronger borders */

  /* === STATUS COLORS === */
  --risk-h: #C13525;         /* Critical risk */
  --risk-h-bg: #FBEAE7;
  --risk-m: #B58400;         /* Medium risk */
  --risk-m-bg: #FBF3DC;
  --risk-l: #2E8B57;         /* Low risk / success */
  --risk-l-bg: #E1F1E7;
  --info: #2C5F8B;           /* Info / legal citations */
  --info-bg: #E5EFF6;

  /* === TYPOGRAPHY === */
  --font-ui: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'PingFang SC', 'Hiragino Sans GB', system-ui, sans-serif;
  --font-serif: 'Iowan Old Style', 'Source Serif Pro', Georgia, serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  --font-display: 'Iowan Old Style', 'Playfair Display', Georgia, serif;

  /* === SPACING & LAYOUT === */
  --gap-xs: 6px;
  --gap-sm: 10px;
  --gap: 16px;
  --gap-lg: 24px;
  --gap-xl: 40px;
  --gap-2xl: 80px;
  --radius: 6px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --radius-pill: 99px;

  /* === EFFECTS === */
  --shadow-sm: 0 1px 2px rgba(20,25,20,0.04), 0 1px 3px rgba(20,25,20,0.06);
  --shadow-md: 0 1px 3px rgba(20,25,20,0.05), 0 4px 12px rgba(20,25,20,0.04);
  --shadow-lg: 0 4px 8px rgba(20,25,20,0.06), 0 16px 32px rgba(20,25,20,0.06);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: none; background: none; }
a { color: var(--brand); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-deep); }

::selection { background: var(--brand-soft); color: var(--brand-deep); }

/* === CONTAINERS === */
.ctr { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ctr-wide { max-width: 1400px; }
.ctr-narrow { max-width: 880px; }
.ctr-text { max-width: 720px; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 900; }
h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 800; }
h3 { font-size: clamp(20px, 2.5vw, 28px); font-weight: 700; }
h4 { font-size: 17px; font-weight: 700; }
p { margin: 0; }
em { font-style: italic; color: var(--brand); }
strong { color: var(--ink); }

/* === SECTION LABELS === */
.sec-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.sec-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: var(--brand);
}

.sec-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}
.sec-sub {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 720px;
  line-height: 1.65;
}

section { padding: var(--gap-2xl) 0; position: relative; }
section + section { border-top: 1px solid var(--rule); }
section.alt-bg { background: var(--surface-2); }
/* Rhythm modifiers — break monotony with variable section heights */
section.tight { padding: 60px 0; }
section.spacious { padding: 110px 0; }
@media (max-width: 768px) {
  section.tight { padding: 40px 0; }
  section.spacious { padding: 64px 0; }
}

/* ═══════════════════════════════════════════════════
   CHAPTER DIVIDERS (5-chapter IA structure v6.0.0)
   ═══════════════════════════════════════════════════ */
.chapter-divider {
  padding: 96px 24px 48px;
  text-align: center;
  position: relative;
  border-top: 1px solid var(--rule-strong);
  background: linear-gradient(180deg, var(--surface-2) 0%, transparent 100%);
}
.chapter-divider::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--gold) 100%);
  border-radius: 0 0 99px 99px;
}
.chapter-divider .chapter-num {
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  display: inline-block;
}
.chapter-divider .chapter-name {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.chapter-divider .chapter-name em {
  font-style: italic;
  color: var(--brand);
}
.chapter-divider .chapter-name .gold { color: var(--gold); }
.chapter-divider .chapter-lede {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}
/* First chapter has no top border (sits below hero) */
.hero + .chapter-divider { border-top: none; }
/* When section follows a chapter-divider, no extra top border */
.chapter-divider + section { border-top: none; padding-top: 24px; }
@media (max-width: 768px) {
  .chapter-divider { padding: 64px 16px 32px; }
  .chapter-divider .chapter-lede { font-size: 15px; }
}

/* ═══════════════════════════════════════════════════
   TOPNAV CHAPTER DROPDOWNS (5 chapters with sub-sections)
   ═══════════════════════════════════════════════════ */
.topnav-links .nav-chapter {
  position: relative;
}
.topnav-links .nav-chapter > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 18px 0;        /* enlarge hover target */
}
.topnav-links .nav-chapter > a::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.55;
  transition: transform var(--transition);
}
.topnav-links .nav-chapter:hover > a::after,
.topnav-links .nav-chapter:focus-within > a::after {
  transform: rotate(180deg);
  opacity: 1;
}
/* Scroll-spy: highlight the chapter currently being read */
.topnav-links .nav-chapter.is-active > a {
  color: var(--brand);
}
.topnav-links .nav-chapter.is-active > a::after {
  border-top-color: var(--brand);
  opacity: 1;
}
.nav-submenu {
  position: absolute;
  top: 100%;
  left: -14px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  min-width: 240px;
  list-style: none;
  margin: 0;
  display: none;
  z-index: 200;
}
.nav-chapter:hover .nav-submenu,
.nav-chapter:focus-within .nav-submenu {
  display: block;
  animation: navFadeDown 0.16s ease-out;
}
@keyframes navFadeDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav-submenu li {
  list-style: none;
}
.nav-submenu li a {
  display: block;
  padding: 9px 18px;
  font-size: 12.5px;
  font-family: var(--font-ui);
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: var(--transition);
}
.nav-submenu li a:hover {
  background: var(--brand-soft);
  color: var(--brand);
}
.nav-submenu li a .sub-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  margin-right: 8px;
  font-weight: 600;
}

/* Mobile: dropdown becomes inline expansion (no hover support) */
@media (max-width: 1024px) {
  .topnav-links { gap: 14px; }
  .nav-submenu { min-width: 200px; }
}

/* ═══════════════════════════════════════════════════
   MOBILE HAMBURGER MENU (≤768px)
   ═══════════════════════════════════════════════════ */
.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.mobile-menu-toggle .bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: var(--transition);
}
.mobile-menu-toggle .bar::before,
.mobile-menu-toggle .bar::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  left: 0;
  transition: var(--transition);
}
.mobile-menu-toggle .bar::before { top: -6px; }
.mobile-menu-toggle .bar::after { top: 6px; }
body.mobile-menu-open .mobile-menu-toggle .bar { background: transparent; }
body.mobile-menu-open .mobile-menu-toggle .bar::before { top: 0; transform: rotate(45deg); }
body.mobile-menu-open .mobile-menu-toggle .bar::after { top: 0; transform: rotate(-45deg); }

.mobile-menu-panel {
  display: none;
  position: fixed;
  top: 56px;  /* match topnav height */
  left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 99;
  overflow-y: auto;
  padding: 24px;
  border-top: 1px solid var(--rule);
}
body.mobile-menu-open .mobile-menu-panel {
  display: block;
  animation: mobileMenuSlide 0.22s ease-out;
}
@keyframes mobileMenuSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-menu-panel ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu-panel .mm-chapter > a {
  display: block;
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.mobile-menu-panel .mm-chapter > a:hover { color: var(--brand); }
.mobile-menu-panel .mm-submenu {
  margin: 8px 0 16px 16px;
  padding: 0;
}
.mobile-menu-panel .mm-submenu li a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink-2);
  font-family: var(--font-ui);
}
.mobile-menu-panel .mm-submenu li a:hover { color: var(--brand); }
.mobile-menu-panel .mm-submenu .sub-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-right: 8px;
}

@media (max-width: 768px) {
  /* Mobile menu collapses topnav-links — replace with hamburger button */
  .nav-submenu { position: static; display: none !important; }
  .mobile-menu-toggle { display: inline-flex; }
  .topnav-cta .auth-badge,
  .topnav-cta .btn:not(#navSignIn) { display: none; }
  /* Body scroll lock when mobile menu is open */
  body.mobile-menu-open { overflow: hidden; }
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  min-height: 44px;             /* WCAG AAA 2.5.5 touch target */
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: var(--surface); }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); color: var(--surface); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--rule-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-deep); background: var(--surface); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }

/* === CARDS === */
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px;
  transition: var(--transition);
}
.card:hover { border-color: var(--rule-strong); box-shadow: var(--shadow-sm); }
.card-accent { border-left: 3px solid var(--brand); }
.card-gold { border-left: 3px solid var(--gold); }

/* === GRIDS === */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }

/* === LOCKED CONTENT (masking convention) === */
.lk {
  color: var(--ink-3);
  letter-spacing: 1px;
  font-style: normal;
  user-select: none;
  background: rgba(0,0,0,0.025);
  padding: 1px 5px;
  border-radius: 3px;
}
body.unlocked .lk {
  color: inherit;
  letter-spacing: inherit;
  user-select: auto;
  background: transparent;
  padding: 0;
}

/* === LOCK INDICATOR === */
.lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  vertical-align: middle;
}
body.unlocked .lock-badge { display: none; }

/* === NAVIGATION (top bar shared across pages) === */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 246, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--rule);
}
.topnav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 24px;
}
.topnav-brand {
  font-family: var(--font-display);
  color: var(--brand);
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
  gap: 2px;
}
.topnav-brand .brand-name {
  font-size: 16px;
  font-weight: 800;
}
.topnav-brand .brand-sub {
  font-family: var(--font-ui);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.topnav-brand:hover .brand-name { color: var(--brand-deep); }
.topnav-brand:hover .brand-sub { color: var(--ink-2); }
.topnav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  list-style: none;
}
.topnav-links a {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.01em;
  transition: var(--transition);
}
.topnav-links a:hover { color: var(--brand); }
.topnav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* === LOGIN MODAL === */
.login-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(22, 24, 20, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.login-modal.show { opacity: 1; visibility: visible; }
.login-box {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.login-box .login-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
.login-box h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  color: var(--ink);
}
.login-box .login-sub {
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 22px;
}
.login-box input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  background: var(--surface);
  color: var(--ink);
  transition: var(--transition);
  margin-bottom: 8px;
  box-sizing: border-box;
}
.login-box input::placeholder {
  color: var(--ink-3);
  font-weight: 400;
  opacity: 1; /* override Firefox default */
}
.login-box input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.login-box .login-err {
  color: var(--risk-h);
  font-size: 12px;
  margin-top: 10px;
  min-height: 18px;
}
/* Compact footer meta — "Email me a link · Forgot?" links */
.login-box .login-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-3);
}
.login-box .login-meta a {
  color: var(--ink-2);
  text-decoration: none;
}
.login-box .login-meta a:hover {
  color: var(--brand);
}
.login-box .login-meta .dot { color: var(--ink-4); }
.login-box .login-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--ink-3);
  cursor: pointer;
  line-height: 1;
}
.login-box .login-close:hover { color: var(--ink); }

/* Google sign-in button (multi-color G logo on white) */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.btn-google:hover {
  background: var(--surface-2);
  border-color: var(--rule-strong);
}
.btn-google:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.btn-google svg { width: 18px; height: 18px; flex-shrink: 0; }

/* "or" divider between auth methods */
.login-divider {
  display: flex;
  align-items: center;
  margin: 14px 0;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 400;
}
.login-divider::before, .login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.login-divider span { padding: 0 10px; }

/* === FOOTER === */
.site-foot {
  border-top: 1px solid var(--rule);
  padding: 40px 24px 32px;
  text-align: center;
  background: var(--surface-2);
}
.site-foot .brand-mark {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 8px;
}
.site-foot .foot-meta {
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  margin-top: 8px;
}
.site-foot .foot-conf {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-style: italic;
}

/* === BACK TO TOP === */
.back-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--brand);
  color: var(--surface);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background 0.2s;
  box-shadow: 0 4px 16px rgba(20,25,20,0.15);
  z-index: 90;
}
.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-top:hover {
  background: var(--brand-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20,25,20,0.2);
}
.back-top:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 768px) {
  .back-top { bottom: 16px; right: 16px; width: 40px; height: 40px; }
}

/* === SVG COUNTRY FLAGS (colored) === */
.flag {
  display: inline-block;
  width: 28px;
  height: 18px;
  border-radius: 2px;
  vertical-align: -3px;
  margin-right: 8px;
  border: 1px solid var(--rule-strong);
  overflow: hidden;
  background: var(--surface);
}
.flag-lg {
  width: 56px;
  height: 36px;
  margin-right: 14px;
  vertical-align: -10px;
  border-radius: 4px;
}
.flag svg { display: block; width: 100%; height: 100%; }

/* === ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.rv {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}
.rv.vis { opacity: 1; transform: translateY(0); }

/* === REDUCED MOTION (accessibility) === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .rv { opacity: 1; transform: none; }
}

/* === PRINT === */
@media print {
  body { background: white; color: black; }
  .no-print, .topnav, .site-foot, .login-modal { display: none !important; }
  .lk { color: var(--ink) !important; background: transparent !important; padding: 0 !important; }
  section { page-break-inside: avoid; padding: 24px 0; }
  .card { border: 1px solid #999; box-shadow: none; }
  a { color: inherit; text-decoration: none; }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .topnav-links { display: none; }
  .ctr { padding: 0 16px; }
}
