:root{
  --text:#222;
  --text-muted:#585858;
  --heading:#121212;
  --link:#0b63ce;
  --glass-bg: rgba(255,255,255,.55);
  --glass-border: rgba(0,0,0,.06);
  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{margin:0; font-family: ui-sans-serif, -apple-system, Segoe UI, Roboto, Helvetica, Arial; line-height:1.6}

.glass{
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow: 0 18px 60px rgba(0,0,0,.16);
  border-radius: var(--radius);
}
.card { padding:18px 20px; width:min(480px, 92vw); }
.compact{ padding:14px 16px; width:min(360px, 88vw); }
.compact-sm{ width:min(320px, 84vw); }
input,button{ font: inherit; }

/* ===== Splash ===== */
.splash .splash-bg{
  position:fixed; inset:0; z-index:-1;
  background: url("images/splash_background.png") center/cover no-repeat;
}
.splash .splash-center{
  min-height: 78svh;
  display: grid; place-items: center;
  padding: 16px;
  margin-top: calc(12vh - 300px); /* moved up by 300px */
}
.hint{ color:#eee; opacity:.95; margin:0 0 8px; text-align:center; font-size:14px; }
#passwordForm{ display:grid; gap:10px; }
#passwordInput{
  width:100%; height:34px; border-radius:10px;
  border:1px solid rgba(255,255,255,.25);
  padding:8px 10px; background:rgba(0,0,0,.25); color:#fff;
  outline:none;
}
#passwordInput::placeholder{ color:#e7e7e7; opacity:.85; }
#passwordForm button{
  width:100%; height:34px; border-radius:10px;
  background: rgba(255,255,255,.28); color:#fff; border:1px solid rgba(255,255,255,.3);
}
.error{ margin-top:2px; color:#ffdfe0; font-size:13px; text-align:center; min-height:1em; }

/* request access footer */
.request-footer{
  position: fixed; left:0; right:0; bottom:14px; z-index:2;
  display: grid; place-items: center;
  pointer-events: none;
}
.request-footer .linklike{
  pointer-events: auto;
  background: rgba(0,0,0,.28);
  color:#f4f4f4; font-size:12px; padding:6px 10px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
}
.splash .request-footer .tiny{
  pointer-events: auto;
  margin-top:8px; width:min(320px, 92vw);
  padding:10px; display:grid; gap:6px;
  background: rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.2);
  color:#fff;
}
.splash .request-footer .tiny input{
  height:34px; border-radius:10px;
  border:1px solid rgba(0,0,0,.2);
  background: rgba(255,255,255,.92);
  color:#111; padding:6px 10px;
}
.request-footer .tiny .row{ display:flex; gap:8px; justify-content:flex-end; }
.request-footer .tiny button{ height:32px; border-radius:8px; padding:0 12px; }
.hidden{ display:none !important; }

/* ===== Shared resume/home backgrounds ===== */
body.home::before, body.resume::before{
  content:""; position:fixed; inset:0; z-index:-1;
  background: url("images/resume_background_desktop.png") center/cover no-repeat;
}
@media (max-aspect-ratio: 3/4){
  body.home::before, body.resume::before{
    background-image: url("images/resume_background_mobile.png");
  }
}

/* ===== Colors/typography on resume ===== */
body.home, body.resume{ color: var(--text); }
.content-panel{ color: var(--text); text-shadow:none; }
.content-panel h1, .content-panel h2, .content-panel h3{ color: var(--heading); }
.content-panel p, .content-panel li, .content-panel a{ color: var(--text); }
.content-panel a{ color: var(--link); }
.content-panel .muted{ color: var(--text-muted); }

/* ===== Layout: categories LEFT, content RIGHT ===== */
.layout{
  display:grid;
  grid-template-columns: minmax(220px, 260px) 1fr;
  gap: 18px;
  padding: 18px;
  min-height: 100vh;   /* grid row has a definite height */
  align-items: stretch;
  /* ... keep existing grid-template-columns, etc. ... */
}

.content-panel {
  width: 81%;
  height: auto;                  /* grows/shrinks to content */
  min-height: 100%;              /* at least as tall as the left column */
  max-height: none;              /* no forced cap */
  overflow: visible;             /* no scroll inside, page scrolls instead */

  padding: 24px 26px 32px;       /* keep your padding */
  padding-left: 32px;            /* ← buffer so text doesn’t touch edge */
  border-radius: 22px;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 18px 60px rgba(0,0,0,.12);
  justify-self: start;
}


/* Ensure inner content isn’t forcing a fixed box */
#content, .content-scroll{
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
}



/* 1) Turn off global gap so per-logo margins work */
.site-logos{
  position: fixed;
  top: 30px;
  right: 20px;
  display: flex;
  flex-direction: column;   /* vertical stack */
  align-items: flex-end;    /* align each logo’s RIGHT edge */
  gap: 0;                   /* disable global gap */
}

/* 2) Base logo style */
.site-logos img{
  display: block;
  height: auto;
  max-height: 40px;         /* your default size */
  margin: 0;                /* start clean; spacing set per-logo below */
}

/* 3) Per-logo spacing (vertical) and right offset (horizontal)
   - margin-bottom: controls the space BELOW that logo
   - margin-right:  pushes that logo LEFT (larger value = further from right edge)
*/
.site-logos .corebridge  { max-height: 67px; margin-bottom: 30px; margin-right: 0px;  }
.site-logos .aig         { max-height: 80px; margin-bottom: 30px; margin-right: 47px;  }
.site-logos .johnhancock { max-height: 70px; margin-bottom: 10px; margin-right: 0px; }
.site-logos .sunlife     { max-height: 80px; margin-bottom: 45px; margin-right: 0px;  }
.site-logos .manulife    { max-height: 38px; margin-bottom: -5px; margin-right: 0px;  }
.site-logos .boston      { max-height: 180px; margin-bottom: -10px; margin-right: 5px;  }
.site-logos .putnam      { max-height: 50px; margin-bottom: 0px;  margin-right: 6px;  }  /* last item: no bottom gap */


@media (max-width: 1100px){
  .site-logos{ gap: 18px; bottom: 20px; }
  .site-logos .corebridge{height: 40px}
  .site-logos .aig{height: 40px}
  .site-logos .johnhancock{height: 42px}
  .site-logos .sunlife{height: 40px}
  .site-logos .manulife{height: 38px}
  .site-logos .boston{height: 68px}
  .site-logos .putnam{height: 36px}

}

/* Left menu stack */
.menu-panel{ align-self:start; position:sticky; top:18px; }
.menu-download{ display:block; margin:10px 0 0; text-align:center; font-weight:600; text-decoration:none; color:var(--link); }

/* Buttons */
.menu-btn{
  appearance:none; width:100%; margin:14px 0; padding:14px 16px;
  border-radius:16px; border:1px solid rgba(0,0,0,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.62)),
             radial-gradient(120% 180% at 10% 0%, rgba(255,255,255,.95), rgba(255,255,255,0));
  backdrop-filter: blur(10px) saturate(120%); -webkit-backdrop-filter: blur(10px) saturate(120%);
  color:#151515; font-weight:800; font-size:clamp(15px,1.9vw,18px); letter-spacing:.18em; text-transform:uppercase; text-align:center;
  cursor:pointer; position:relative; text-shadow:0 1px 0 rgba(255,255,255,.95),0 0 1px rgba(0,0,0,.25);
  box-shadow:inset 0 1px 6px rgba(255,255,255,.85), inset 0 -8px 12px rgba(0,0,0,.06), 0 10px 26px rgba(0,0,0,.16);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.menu-btn:hover{ transform:translateY(-2px); box-shadow:inset 0 2px 8px rgba(255,255,255,.9), inset 0 -12px 16px rgba(0,0,0,.08), 0 16px 34px rgba(0,0,0,.22); }
.menu-btn.active{ box-shadow:inset 0 2px 10px rgba(255,255,255,1), inset 0 -14px 20px rgba(0,0,0,.10), 0 18px 40px rgba(11,99,206,.24); }

/* Content typography */
.content-panel h2{ font-size:clamp(22px, 2.4vw, 28px); letter-spacing:.4px; margin:0 0 10px; }
.content-panel h3{ font-size:clamp(18px, 2vw, 22px); margin:18px 0 8px; }
.content-panel p{ margin:10px 0 10px; }
.content-panel ul{ padding-left:18px; margin:8px 0 14px; }
.content-panel li{ margin:6px 0; }
.content-panel hr{ border:0; height:1px; background:linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,.25), rgba(0,0,0,0)); margin:16px 0; }

/* Mobile stack */
@media (max-width: 900px){
  .layout{ grid-template-columns: 1fr; }
  .menu-panel{ position: static; top:auto; }
  .content-panel{ width:100%; max-height:none; }
}

/* Education logos */
.edu-logo { margin-top: 8px; }
.edu-logo img { max-height: 40px; width: auto; display: block; margin-top: 6px; }


.content-scroll li{ margin-bottom: 8px; }


/* ----- Education & Licensure (only) spacing + logos ----- */
.edu-section .edu-list li{ margin-bottom: 18px; }
.edu-section .edu-logo{ margin-top: 8px; display:flex; justify-content:center; }
.edu-section .edu-logo img{ max-height: 44px; width:auto; display:block; }
@media (max-width: 900px){
  .edu-section .edu-logo img{ max-height: 36px; }
}


/* --- Scroll hint (appears when content overflows) --- */
.scroll-hint{
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(0,0,0,.30);
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  pointer-events: none;
}
.scroll-hint::after{
  content: "\2304"; /* down arrowhead */
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 18px; line-height: 1; color: #fff; opacity: .9;
}

/* Positioning context for absolute scroll-hint */
.content-panel{ position: relative; }


.menu-btn.active{
  background:
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.78)),
    radial-gradient(120% 180% at 10% 0%, rgba(255,255,255,1), rgba(255,255,255,0));
  border-color: rgba(196,148,58,.55);
  box-shadow:
    inset 0 2px 10px rgba(255,255,255,1),
    inset 0 -16px 22px rgba(0,0,0,.10),
    0 18px 42px rgba(196,148,58,.28); /* soft gold glow */
}
.menu-btn.active::before{
  opacity: 1;
}


/* --- Active state: neutral shaded (no gold) --- */
.menu-btn.active{
  background:
    linear-gradient(180deg, rgba(245,245,245,.98), rgba(232,232,232,.88));
  border-color: rgba(0,0,0,.12);
  color: #0f0f0f;
  box-shadow:
    inset 0 2px 8px rgba(255,255,255,.9),
    inset 0 -12px 18px rgba(0,0,0,.10),
    0 14px 30px rgba(0,0,0,.18);
}
.menu-btn.active::before{ opacity: .95; }
.menu-btn.active::after{ opacity: .0; }


/* Ensure education logos render clearly */
.edu-section .edu-logo img{ max-height: 52px; width:auto; display:block; }
@media (max-width: 900px){
  .edu-section .edu-logo img{ max-height: 40px; }
}


/* Education-only spacing + logo sizing (exact filenames now) */
.edu-section .edu-list li{ margin-bottom: 55px; }
.edu-section .edu-logo{ margin-top: 4px; display:flex; justify-content:center; }
.edu-section .edu-logo img{ max-height: 52px; width:auto; display:block; }
@media (max-width: 900px){
  .edu-section .edu-logo img{ max-height: 40px; }
}

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


/* TEMP: make logo boxes obvious for verification */
.edu-section .edu-logo img{ max-height: 56px; outline: 0px solid rgba(255,0,0,.0); }


/* Ensure education logos are visible and not clipped */
.edu-section .edu-logo{ margin-top:10px; display:flex; justify-content:center; align-items:center; overflow:visible; }
.edu-section .edu-logo img{ max-height:56px; width:auto; display:block; position:relative; z-index:3; }
.content-panel ul{ overflow:visible; }


/* resize the banner by changing this */
  object-fit:contain;
}
/* Only add top spacing on pages that opt in */
body.has-banner{ padding-top:140px; }
@media (max-width: 768px){
  .site-banner img{ max-height:88px; }
  body.has-banner{ padding-top:104px; }
}


/* Left menu biz-card image matches button width */
.menu-panel .menu-card{
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 12px 0;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
}


/* ===== Left categories styled to match bizcard coloring ===== */
.menu-panel{
  /* ensure consistent width holder; buttons & card are 100% of this */
}
.menu-panel .menu-card{
  width: 100%; /* already full width */
}
.menu-btn{
  width: 100%;
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 0 12px 0;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  /* Brushed-metal inspired dark slab */
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.18)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0, rgba(255,255,255,.05) 1px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 3px),
    #2d2f33;
  color: #e7e7e7;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.25),
    inset 0 -2px 6px rgba(0,0,0,.35),
    0 10px 24px rgba(0,0,0,.25);
  text-shadow: 0 1px 0 rgba(0,0,0,.7);
  transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .12s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.menu-btn:hover{
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    inset 0 -2px 8px rgba(0,0,0,.4),
    0 14px 32px rgba(0,0,0,.28);
}
.menu-btn.active{
  /* Significantly lightened when selected */
  background:
    linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.10)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0, rgba(255,255,255,.08) 1px, rgba(0,0,0,.04) 2px, rgba(0,0,0,.04) 3px),
    #585c62;
  color: #101113;
  border-color: rgba(255,255,255,.6);
  text-shadow: 0 1px 0 rgba(255,255,255,.6);
  box-shadow:
    inset 0 2px 6px rgba(255,255,255,.65),
    inset 0 -10px 16px rgba(0,0,0,.15),
    0 18px 40px rgba(0,0,0,.3);
}
.menu-btn:focus-visible{
  outline: 2px solid rgba(255,255,255,.8);
  outline-offset: 2px;
}
/* === Mobile/Tablet: Hide logos and replace with mobile-friendly business card === */
@media (max-width: 900px) {
  /* Hide the logos container completely on mobile/tablet */
  .site-logos {
    display: none !important;
  }

  /* Replace the bizcard image with mobile version for tablets and phones */
  .biz-card {
    background-image: url("images/businesscard_mobile.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: auto;
    padding-top: 0;
    padding-bottom: 50px; /* Adjust padding for mobile devices */
  }
}

/* === Adjust password box center for splash screen on mobile === */
@media (max-width: 900px) {
  .auth-card { 
    margin-top: 30vh;  /* better vertical centering for password box on small screens */
    width: min(92vw, 360px);  /* smaller card width on mobile/tablet */
  }
}

@media (max-width: 600px) {
  .auth-card { 
    margin-top: 35vh;  /* increase margin-top on very small screens */
    width: min(92vw, 340px);  /* adjust card width for even smaller screens */
  }
}

/* === Mobile/Tablet: Replace bizcard with businesscard_mobile.png === */
@media (max-width: 900px) {
  /* Replace the bizcard image with mobile version for tablets and phones */
  .biz-card {
    background-image: url("images/businesscard_mobile.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: auto;
    padding-top: 0;
    padding-bottom: 50px; /* Adjust padding for mobile devices */
  }
}
