:root{
  --bg:#f5f7fb;
  --panel:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --muted2:#64748b;
  --line:#e2e8f0;

  --brand:#1e3a8a;
  --brandSoft:#dbeafe;
  --accent:#c1121f;

  --radius:16px;
  --shadow:0 10px 28px rgba(15,23,42,.08);

  --max: clamp(860px, 64vw, 1020px);
  --pad:clamp(16px,3vw,28px);

  --font:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);
  line-height:1.45;
}
a{color:inherit;text-decoration:none}

/* Accessibility + motion */
:focus-visible{
  outline:3px solid rgba(219,234,254,.95);
  outline-offset:3px;
}
@media (prefers-reduced-motion: reduce){
  *{transition:none !important}
}

/* Subtle transitions */
.btn,
.navItem,
.tile,
.linkRow,
.affiliatesRow a{
  transition: background-color .18s ease, border-color .18s ease, filter .18s ease, transform .18s ease;
}

/* Active/current nav item styling support */
.navItem[aria-current="page"],
.navItem[aria-current="true"],
.navItem.current{
  background:var(--brandSoft);
  border-color:rgba(30,58,138,.35);
}

/* Shell */
.shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:360px 1fr;
}

/* Left rail */
.leftRail{
  position:relative;
  padding:20px;

  /* IMPORTANT: sticky breaks if an ancestor has overflow hidden/auto/scroll */
  overflow:visible;

  /* Stacked backgrounds (replaces ::before/::after reliably) */
  background:
    linear-gradient(to bottom, rgba(2,6,23,.55), rgba(2,6,23,.35)),
    url("SideImage.png");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

/* Sticky rail content (logo + menu stay in place; rail scrolls internally if needed) */
.railInner{
  position:sticky;
  top:20px;                      /* matches .leftRail padding */
  z-index:1;

  display:flex;
  flex-direction:column;
  gap:18px;

  height:calc(100vh - 40px);     /* avoids Safari bottom clipping */
  overflow-y:auto;
  overflow-x:hidden;

  padding-right:6px;             /* scrollbar breathing room */
  padding-bottom:18px;           /* prevents last item from being cut off */
  -webkit-overflow-scrolling:touch;
}

/* Optional scrollbar polish (quiet) */
.railInner::-webkit-scrollbar{width:10px}
.railInner::-webkit-scrollbar-thumb{
  border-radius:999px;
  background:rgba(15,23,42,.15);
}

.railLogo{
  display:flex;
  justify-content:center;
  padding-top:12px;
}
.railLogo img{
  height:170px;
  filter:drop-shadow(0 18px 30px rgba(0,0,0,.45));
}

/* Sidebar panel */
.railPanel{
  background:rgba(255,255,255,.94);
  border:1px solid rgba(226,232,240,.9);
  border-radius:var(--radius);
  box-shadow:0 16px 36px rgba(0,0,0,.18);
  padding:14px;
  max-width:320px;
}
.railPanel h2{
  font-size:14px;
  margin:0 0 10px;
}
.navItem{
  display:block;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--line);
  margin-bottom:8px;
  background:#fff;
}
.navItem strong{display:block;font-size:14px}
.navItem span{display:block;font-size:12px;color:var(--muted2)}
.navItem:hover{background:var(--brandSoft)}
.questions{
  margin-top:12px;
  padding:12px;
  border-radius:12px;
  background:#f8fafc;
  border:1px solid var(--line);
  font-size:13px;
  color:var(--muted);
}
.questions a{color:var(--brand);font-weight:900}

/* Right side */
.page{
  display:flex;
  flex-direction:column;
  min-width:0;
}

/* Top bar */
header{
  background:var(--brand);
  border-bottom:4px solid var(--accent);
}
.wrap{
  max-width:var(--max);
  width:100%;
  margin:0 auto;
  padding:0 var(--pad);
}
.valueBar{
  color:#fff;
  padding:14px 0;
  font-weight:900;
  text-align:center;
  letter-spacing:.2px;
}

/* Main */
main{padding:26px 0 34px}
.card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:20px;
  margin-bottom:18px;
}
.kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  color:var(--muted2);
  margin-bottom:10px;
}
.dot{width:8px;height:8px;border-radius:999px;background:#22c55e}

h1{
  font-size:clamp(26px,2.8vw,34px);
  margin:0 0 8px;
  line-height:1.1;
}
.lede{
  margin:0;
  color:var(--muted);
  font-size:15px;
  max-width:72ch;
}

.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:220px;
  padding:12px 16px;
  border-radius:12px;
  border:1px solid var(--brand);
  background:var(--brand);
  color:#fff;
  font-weight:900;
  font-size:13px;
}
.btn:hover{filter:brightness(.95)}

/* Join emphasis */
.btn.join{
  border:1.5px solid rgba(193,18,31,.45);
}
.btn.join:hover,
.btn.join:focus-visible{
  border-color:var(--accent);
}

.notice{
  margin-top:12px;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#f8fafc;
  color:var(--muted);
  font-size:13px;
}
.notice strong{color:var(--text)}

.subhead{font-size:14px;font-weight:900;margin:0 0 8px}
.meta{font-size:12px;color:var(--muted2);margin:0 0 8px}
.summary{margin:0;color:var(--muted);font-size:13px;max-width:76ch}

.grid3{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.tile{
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
  background:#fff;
}
.tile strong{display:block;font-size:13px;margin-bottom:6px}
.tile span{display:block;font-size:12px;color:var(--muted)}

/* Meet EASL rows */
.listLinks{
  display:grid;
  gap:10px;
  margin-top:10px;
}
.linkRow{
  border:1px solid var(--line);
  background:#fff;
  border-radius:14px;
  padding:14px;
}
.linkRow strong{display:block;font-size:13px;margin-bottom:4px}
.linkRow span{display:block;font-size:12px;color:var(--muted2)}
.linkRow:hover{background:var(--brandSoft)}

/* Contract viewer */
.contractViewer{
  margin-top:16px;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  display:none;
}
.contractViewer.active{display:block}
.contractViewer iframe{
  width:100%;
  height:75vh;
  border:0;
}
.viewerBar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  background:#fff;
}
.viewerTitle{font-weight:900;font-size:13px;color:var(--text)}
.btn.small{
  min-width:auto;
  padding:10px 12px;
}

/* Press / PD image helper */
.releaseImage,
.pdImage{
  width:100%;
  border-radius:12px;
  border:1px solid var(--line);
  display:block;
}

/* Footer (address only by default) */
.footerInfo{padding:0 0 10px}
.footerLabel{
  font-weight:900;
  font-size:13px;
  margin:0 0 6px;
}
.footerText{
  margin:0;
  font-size:13px;
  color:var(--muted);
}

/* Affiliates (index only when included in HTML) */
.affiliatesRow{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
  margin-top:12px;
}
.affiliatesRow a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
}
.affiliatesRow a:hover{background:var(--brandSoft)}
.affiliatesRow img{
  height:34px;
  width:auto;
  display:block;
  object-fit:contain;
}

/* Footer tagline image */
.footerTagline{
  padding:16px 0 40px;
  display:flex;
  justify-content:center;
}
.footerTagline img{
  max-width:360px;
  width:100%;
  height:auto;
  opacity:.95;
}

/* ---------------------------- */
/* Helpers to replace inline CSS */
/* ---------------------------- */

.mt10{margin-top:10px}
.mt14{margin-top:14px}
.mt16{margin-top:16px}

.block{display:block}
.w100{width:100%}
.hauto{height:auto}
.rounded12{border-radius:12px}

/* Montage strip image (index) */
.montageImg{
  display:block;
  width:100%;
  height:auto;
  border-radius:12px;
}

/* Divider and transcript styles (press landing) */
.divider{
  border:0;
  border-top:1px solid var(--line);
  margin:14px 0;
}
.transcript-body{
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}
.transcript-body p{margin:0 0 10px}

/* Media block spacing (press landing) */
.mediaBlock{margin-top:14px}

/* ================================ */
/* MOBILE NAVIGATION */
/* ================================ */

/* Mobile menu toggle button (hidden by default) */
.mobileMenuToggle{
  display:none;
  position:fixed;
  top:16px;
  right:16px;
  z-index:1000;
  padding:12px 16px;
  background:var(--brand);
  border:1px solid rgba(255,255,255,.2);
  border-radius:12px;
  color:#fff;
  font-weight:900;
  font-size:14px;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(0,0,0,.15);
}

.mobileMenuToggle:hover{
  background:rgba(30,58,138,.9);
}

/* Hamburger icon */
.menuIcon{
  display:inline-flex;
  flex-direction:column;
  gap:4px;
  margin-right:8px;
}

.menuIcon span{
  display:block;
  width:18px;
  height:2px;
  background:#fff;
  border-radius:2px;
  transition:transform .2s ease, opacity .2s ease;
}

/* Animated hamburger to X */
.mobileMenuToggle.active .menuIcon span:nth-child(1){
  transform:translateY(6px) rotate(45deg);
}
.mobileMenuToggle.active .menuIcon span:nth-child(2){
  opacity:0;
}
.mobileMenuToggle.active .menuIcon span:nth-child(3){
  transform:translateY(-6px) rotate(-45deg);
}

/* Mobile overlay */
.mobileMenuOverlay{
  display:none;
  position:fixed;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:rgba(2,6,23,.85);
  z-index:999;
  opacity:0;
  transition:opacity .3s ease;
}

.mobileMenuOverlay.active{
  opacity:1;
}

/* Mobile menu panel */
.mobileMenu{
  display:none;
  position:fixed;
  top:0;
  right:-100%;
  width:85%;
  max-width:360px;
  height:100%;
  background:#fff;
  z-index:1001;
  overflow-y:auto;
  transition:right .3s ease;
  box-shadow:-4px 0 24px rgba(0,0,0,.2);
}

.mobileMenu.active{
  right:0;
}

/* Mobile menu content */
.mobileMenuInner{
  padding:80px 20px 40px;
}

.mobileMenuLogo{
  text-align:center;
  margin-bottom:24px;
}

.mobileMenuLogo img{
  height:120px;
  width:auto;
}

.mobileNavItem{
  display:block;
  padding:14px 16px;
  margin-bottom:10px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
}

.mobileNavItem strong{
  display:block;
  font-size:15px;
  color:var(--text);
  margin-bottom:4px;
}

.mobileNavItem span{
  display:block;
  font-size:13px;
  color:var(--muted2);
}

.mobileNavItem:hover,
.mobileNavItem:active{
  background:var(--brandSoft);
}

.mobileNavItem.current{
  background:var(--brandSoft);
  border-color:rgba(30,58,138,.35);
}

.mobileQuestions{
  margin-top:24px;
  padding:14px;
  border-radius:12px;
  background:#f8fafc;
  border:1px solid var(--line);
  font-size:13px;
  color:var(--muted);
  text-align:center;
}

.mobileQuestions strong{
  display:block;
  color:var(--text);
  margin-bottom:8px;
}

.mobileQuestions a{
  color:var(--brand);
  font-weight:900;
}

/* ================================ */
/* RESPONSIVE BREAKPOINTS */
/* ================================ */

@media(max-width:980px){
  /* Switch to single column */
  .shell{grid-template-columns:1fr}
  
  /* Hide desktop sidebar */
  .leftRail{display:none}
  
  /* Show mobile menu elements */
  .mobileMenuToggle,
  .mobileMenuOverlay,
  .mobileMenu{
    display:block;
  }
  
  /* Adjust main content spacing */
  main{padding:20px 0 30px}
  
  /* Stack grid items */
  .grid3{grid-template-columns:1fr}
  
  /* Adjust header */
  header{
    position:relative;
    padding-right:80px; /* space for menu button */
  }
}

@media(max-width:640px){
  /* Smaller buttons on mobile */
  .btn{
    min-width:auto;
    width:100%;
  }
  
  /* Reduce card padding */
  .card{
    padding:16px;
  }
  
  /* Smaller headings */
  h1{
    font-size:24px;
  }
  
  /* Full width mobile menu */
  .mobileMenu{
    width:100%;
    max-width:100%;
  }
}
/* Headshots (Meet EASL) — added by request (fixed size) */
.headshot{
  width:160px;
  height:160px;
  object-fit:cover;
  border-radius:12px;
  display:block;
}
@media(max-width:980px){
  .headshot{width:140px;height:140px}
}

.image-caption {
  font-size: 12px;
  color: var(--muted2);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* Keep bio-hover headshots the same size as normal headshots */
.bioHover{
  position: relative;
  display: inline-block;
  max-width: 160px;   /* match your existing headshot visual size */
  width: 100%;
}

/* Ensure image respects that cap */
.bioHover .headshot{
  width: 100%;
  height: auto;
}

/* hidden by default */
.bioCard{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% + 10px);
  width: min(340px, 92vw);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 50;
}

/* little pointer */
.bioCard::after{
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  border: 8px solid transparent;
  border-top-color: #ffffff;
  filter: drop-shadow(0 -1px 0 var(--line));
}

.bioSmall{
  display: inline-block;
  margin-top: 6px;
  color: var(--muted);
}

.headshot {
  height: 230px;
  aspect-ratio: 4 / 5;
  width: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  display: block;
}

/* Show on hover (desktop) and focus (keyboard/touch) */
.bioHover:hover .bioCard,
.bioHover:focus .bioCard,
.bioHover:focus-within .bioCard{
  opacity: 1;
  visibility: visible;
}

/* Optional: reduce accidental popups on tiny screens */
@media (max-width: 520px){
  .bioCard{
    left: 0;
    transform: none;
  }
  .bioCard::after{
    left: 24px;
    transform: none;
  }
}

/* Floating Join button (uses existing .btn.join styling) */
.floatingJoin{
  position: fixed;
  right: 24px;
  top: 120px;         /* adjust if you want it higher/lower */
  z-index: 40;
}

/* Keep it from crowding content on smaller layouts */
@media (max-width: 1180px){
  .floatingJoin{ display: none; }
}

/* Sidebar nav: keep it scannable (titles only) */
.leftRail .navItem span{ display:none; }

/* Optional: show descriptions on hover (desktop only) */
@media (hover:hover){
  .leftRail .navItem:hover span{ display:block; }
}

/* ============================= */
/* Headshots — single source of truth (place at VERY END of styles.css) */
/* ============================= */

.headshot{
  width: 100%;
  max-width: 200px;        /* consistent visual width across all cards */
  aspect-ratio: 4 / 5;     /* keeps the "looks best" portrait ratio */
  height: auto;            /* derived from aspect-ratio */
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  display: block;
}

/* Bio hover wrapper should match the same image sizing */
.bioHover{
  max-width: 200px;
  width: 100%;
  display: inline-block;
}

/* Keep the same sizing on smaller screens */
@media (max-width: 980px){
  .headshot{ max-width: 180px; }
  .bioHover{ max-width: 180px; }
}