/* Public resume page: smooth top nav hide on scroll for desktop and mobile */
body.public-resume-page .topbar{
  transform:translateY(0);
  opacity:1;
  transition:transform .78s cubic-bezier(.16,1,.3,1), opacity .62s ease, box-shadow .45s ease, background .45s ease, backdrop-filter .45s ease;
  will-change:transform;
}
body.public-resume-page .topbar.navScrolled{
  background:rgba(11,15,25,.84);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  box-shadow:0 16px 34px rgba(0,0,0,.24);
}
body.public-resume-page.siteNavHidden:not(.siteMenuOpen) .topbar{
  transform:translateY(-115%);
  opacity:0;
  pointer-events:none;
}

/* Embedded example preview: hide the public page nav/header so the popup shows only the resume content. */
body.public-resume-page.preview-embed .topbar,
body.public-resume-page.preview-embed .navMobile,
body.public-resume-page.preview-embed .siteNav,
body.public-resume-page.preview-embed .mobileNav{
  display:none!important;
}
body.public-resume-page.preview-embed main.wrap{
  padding-top:18px!important;
}
body.public-resume-page.preview-embed{
  overflow:visible!important;
}

:root{
  --bg:#0b0f19;
  --text:#eaf0ff;
  --muted:#8ea1c5;
  --line:rgba(255,255,255,.10);
  --brand:#58a6ff;
  --brand2:#7c5cff;
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --radius: 18px;
  --max: 1120px;

  --ease: cubic-bezier(.2,.9,.2,1);
  --dur: 550ms;
}

*{box-sizing:border-box}

body{
  margin:0;
  overflow-x:hidden;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1100px 500px at 20% -10%, rgba(88,166,255,.25), transparent 60%),
              radial-gradient(900px 500px at 90% 0%, rgba(124,92,255,.22), transparent 55%),
              var(--bg);
  color:var(--text);
  line-height:1.5;
}

a{color:inherit; text-decoration:none}
.link{color: var(--brand); text-decoration: underline; text-underline-offset: 3px;}
.wrap{max-width:var(--max); margin:0 auto; padding:24px}

.topbar{
  position:sticky; top:0; z-index:20;
  backdrop-filter: blur(10px);
  background: rgba(11,15,25,.55);
  border-bottom: 1px solid var(--line);
}
.topbarWrap{
  display:flex; align-items:center; gap:12px;
  padding:14px 24px;
}
.brand{
  display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.3px;
}
.dot{
  width:10px; height:10px; border-radius:999px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 0 0 6px rgba(88,166,255,.12);
}

.topbarRight{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:10px;
}

.sessionChip{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
}
.sessionChip b{font-weight:1000}
.sessionChip .muted{color:var(--muted)}
.card[style*="background:#ecfdf5"], .cardx, .savedCard, .helper, .codePill, .flashBar{color:#0f172a;}
.cardx .muted, .cardx .sub, .cardx .list, .cardx .meta, .savedCard .muted, .savedCard .meta, .helper .muted, .codePill .muted{color:#334155 !important;}
.dirResultsTop .muted{color:var(--muted) !important;}

/* Keep dark text only on intentionally light surfaces. Do not force dark text on the core dark cards. */
.authCard,
.authCard .hint,
.authCard .note,
.lightSurface,
.lightSurface .muted,
.lightSurface .sub,
.lightSurface .meta,
.lightSurface .list,
.lightSurface label{
  color:#334155;
}


.navDesktop{display:flex; gap:10px; flex-wrap:wrap; margin-left:auto;}
.navDesktop a{
  padding:8px 10px; border-radius:999px;
  color:var(--muted);
  border:1px solid transparent;
  font-size:14px;
  transition: background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}
.navDesktop a:hover{ color:var(--text); border-color:var(--line); background:rgba(255,255,255,.04); }

.navToggle{
  display:none;
  margin-left:auto;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding:10px 12px;
  border-radius: 12px;
  font-weight: 900;
  cursor:pointer;
  white-space:nowrap;
  transition: transform 160ms var(--ease), background 160ms var(--ease);
}
.navToggle:hover{transform: translateY(-1px);}

.navMobile{
  border-top: 1px solid var(--line);
  background: rgba(11,15,25,.75);
  backdrop-filter: blur(10px);
}
.navMobile a{
  display:block;
  padding:12px 24px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  transition: background 160ms var(--ease), color 160ms var(--ease);
}
.navMobile a:hover{color:var(--text); background:rgba(255,255,255,.04);}

.navMobileLogin{
  width: calc(100% - 48px);
  margin: 12px 24px 18px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 900;
  cursor:pointer;
}

@media (max-width: 920px){
  .topbarWrap{flex-wrap:wrap}
  .navDesktop{display:none}
  .navToggle{display:inline-flex}
}

/* HERO */
.hero{
  padding:34px 0 8px;
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap:18px;
  align-items:start;
}
@media (max-width: 920px){
  .hero{grid-template-columns:1fr;}
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}
.card.pad{ padding:22px; }
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
}

/* Name row + PDF + Edit */
.heroTopRow{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.heroTopActions{
  display:flex;
  gap:10px;
  align-items:center;
}

.name{
  font-size: 44px;
  line-height:1.05;
  margin:0;
  letter-spacing:-.8px;
}
@media (max-width: 520px){
  .name{font-size:38px}
}

/* subtle PDF button */
.pdfLink{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
  transition: transform 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease);
  white-space: nowrap;
}
.pdfLink:hover{
  transform: translateY(-1px);
  color: var(--text);
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
}
.footerPdf{
  margin-left: auto;
}

.profilePhotoWrap{
  display:flex;
  justify-content:flex-start;
  margin: 12px 0 14px;
}
.profilePhoto{
  width: 130px;
  height: 130px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.14);
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  transition: transform 220ms var(--ease);
}
.profilePhoto:hover{ transform: scale(1.02); }
@media (max-width: 920px){
  .profilePhoto{ width: 120px; height: 120px; }
}

.tagline{
  margin:0 0 16px;
  color:var(--muted);
  font-size:16px;
  max-width: 65ch;
}

.pillrow{display:flex; flex-wrap:wrap; gap:10px; margin:14px 0 6px;}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px; border-radius:999px;
  background: rgba(255,255,255,.05);
  border:1px solid var(--line);
  color:var(--text);
  font-size:14px;
  white-space:nowrap;
  transition: transform 160ms var(--ease), background 160ms var(--ease);
}
.pill:hover{ transform: translateY(-1px); background: rgba(255,255,255,.06); }
.pill b{font-weight:900}

.actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:10px 14px;
  border-radius: 12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  font-weight:900;
  font-size:14px;
  transition: transform 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease);
  cursor:pointer;
}
.btn.primary{
  background: linear-gradient(135deg, rgba(88,166,255,.35), rgba(124,92,255,.35));
  border-color: rgba(88,166,255,.35);
}
.btn:hover{transform: translateY(-1px); border-color: rgba(255,255,255,.16);}
.mini{font-size:13px; color:var(--muted); margin-top:10px}

/* Snapshot */
.profileBox{
  display:grid;
  grid-template-columns: 110px 1fr;
  gap:14px;
  align-items:center;
}
.avatar{
  width:110px; height:110px; border-radius: 18px;
  border:1px solid var(--line);
  background: radial-gradient(circle at 30% 20%, rgba(88,166,255,.25), transparent 60%),
              radial-gradient(circle at 80% 30%, rgba(124,92,255,.22), transparent 55%),
              rgba(255,255,255,.04);
  display:flex; align-items:center; justify-content:center;
  font-weight:900;
  letter-spacing:.8px;
  color: rgba(234,240,255,.9);
  user-select:none;
}
.snapshotTitle{font-weight:900; font-size:16px;}
.snapshotSub{margin-top:6px;}
.kv{display:grid; gap:6px; margin-top:12px;}
.kv .row{
  display:flex; justify-content:space-between; gap:10px;
  font-size:14px;
  padding:10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.18);
  border:1px solid var(--line);
}
.kv .k{color:var(--muted)}
.kv .v{font-weight:900}

.editSlotRight{
  display:flex;
  justify-content:flex-end;
  margin-top: 12px;
}

/* Stat cards */
.statCards{
  display:grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap:10px;
  margin: 14px 0 4px;
}
@media (max-width: 1100px){
  .statCards{grid-template-columns: repeat(3, minmax(0, 1fr));}
}
@media (max-width: 640px){
  .statCards{grid-template-columns: repeat(2, minmax(0, 1fr));}
}
.statCard{
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  border-radius: 14px;
  padding: 10px 10px;
  min-width:0;
  transition: transform 160ms var(--ease), border-color 160ms var(--ease);
}
.statCard:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.16); }
.statLabel{color:var(--muted); font-weight:900; font-size:12px; letter-spacing:.6px;}
.statValue{font-size:21px; font-weight:1000; margin-top:2px;}
.statNote{color:var(--muted); font-size:12px; margin-top:2px;}

/* Sections + grid */
section{ padding:18px 0; }
.sectionHead{
  display:flex; align-items:end; justify-content:space-between; gap:12px;
  margin: 18px 0 12px;
}
h2{margin:0; font-size:22px; letter-spacing:-.2px}
.sub{color:var(--muted); font-size:14px}

.grid{
  display:grid; gap:14px;
  grid-template-columns: repeat(12, 1fr);
}
.col-6{grid-column: span 6;}
.col-4{grid-column: span 4;}
.col-8{grid-column: span 8;}
.col-12{grid-column: span 12;}
@media (max-width: 920px){
  .col-6,.col-4,.col-8{grid-column: span 12;}
}

.blockTitle{font-weight:900; margin-bottom:8px;}
.blockSub{margin-bottom:10px;}
.blockFoot{margin-top:10px;}

.list{margin:0; padding-left: 18px; color:var(--muted)}
.list li{margin:6px 0}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:999px;
  background: rgba(94,225,161,.12);
  border:1px solid rgba(94,225,161,.28);
  color: var(--text);
  font-size:13px; font-weight:900;
}

/* table */
.tableWrap{overflow:auto;}
table{
  width:100%;
  border-collapse: separate;
  border-spacing:0;
  overflow:hidden;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  font-size:14px;
  min-width: 1120px;
}
th, td{padding:12px 12px; border-bottom:1px solid var(--line); text-align:left;}
th{color: var(--muted); font-weight:900; background: rgba(255,255,255,.04);}
tr:last-child td{border-bottom:none;}
.right{text-align:right}
.muted{color:var(--muted)}


/* timeline */
.timeline{display:grid; gap:10px;}
.event{
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  background: rgba(0,0,0,.18);
}
.eventTop{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px;
}
.eventTop b{font-size:15px}
.event .meta{color:var(--muted); font-size:13px; margin-top:6px}

/* videos */
.videoGrid{
  display:grid; gap:14px;
  grid-template-columns: repeat(12, 1fr);
}
.video{grid-column: span 6;}
@media (max-width: 920px){ .video{grid-column: span 12;} }

.videoCaption{
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .2px;
}

.frame{
  border:1px solid var(--line);
  border-radius: 16px;
  overflow:hidden;
  background: rgba(0,0,0,.18);
  aspect-ratio: 16 / 9;
  transform: translateZ(0);
}
iframe{width:100%; height:100%; border:0}

.dropdownBtn{
  margin-top:12px;
  width:100%;
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight: 900;
  cursor:pointer;
  transition: transform 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease);
}
.dropdownBtn:hover{transform: translateY(-1px); border-color: rgba(255,255,255,.16);}

.dropdown{
  margin-top:12px;
  overflow:hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    max-height var(--dur) var(--ease),
    opacity 240ms var(--ease),
    transform 240ms var(--ease);
  will-change: max-height, opacity, transform;
}
.dropdown .dropdownInner{
  display:grid;
  gap:10px;
  padding-top: 10px;
}
.dropdown.open{
  max-height: 1200px;
  opacity: 1;
  transform: translateY(0);
}

/* recruiting */
.contactCards{display:grid; gap:10px; margin-top:12px;}
.contactCard{
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  border-radius: 14px;
  padding: 12px;
}
.contactName{font-weight:1000;}
.contactRole{color:var(--muted); font-size:13px; margin-top:3px;}
.contactMeta{color:var(--muted); font-size:13px; margin-top:8px;}

/* form */
.form{ margin-top:12px; display:grid; gap:10px; }
.form input,
.form textarea{
  padding:12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.18);
  color:var(--text);
}
.form textarea{resize:vertical;}

/* footer */
footer{
  margin: 20px 0 10px;
  padding: 18px 0 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.printNote{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

/* reveal */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reveal.inview{
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
  *{transition:none !important; scroll-behavior:auto !important;}
  .reveal{opacity:1 !important; transform:none !important;}
}

/* =========
  EDIT MODE UI
========= */
.sectionEditTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 8px;
}

.editBtn{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 1000;
  font-size: 12px;
  cursor: pointer;
  transition: transform 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease);
  white-space: nowrap;
}
.editBtn:hover{
  transform: translateY(-1px);
  color: var(--text);
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
}

/* Publish bar */
.publishBar{
  position: sticky;
  top: 62px;
  z-index: 19;
  backdrop-filter: blur(10px);
  background: rgba(11,15,25,.70);
  border-bottom: 1px solid var(--line);
}
.publishBarWrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 24px;
}
.publishLeft{
  display:flex;
  align-items:center;
  gap: 10px;
}
.publishDot{
  width:10px;height:10px;border-radius:999px;
  background: linear-gradient(135deg, rgba(94,225,161,.95), rgba(88,166,255,.85));
  box-shadow: 0 0 0 6px rgba(94,225,161,.12);
}
.publishTitle{ font-weight: 1000; font-size: 13px; }
.publishSub{ font-size: 12px; }
.publishRight{ display:flex; gap:10px; flex-wrap:wrap; }
@media (max-width: 520px){
  .publishBarWrap{ flex-direction:column; align-items:stretch; }
  .publishRight{ justify-content:stretch; }
  .publishRight .btn{ width:100%; }
}

/* =========
  MODAL BLUR + AUTH MODAL
========= */
body.modalOpen{
  overflow:hidden;
}

.authModal{
  position: fixed;
  inset: 0;
  z-index: 90;
}
.authBackdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(12px);
  animation: authFade 220ms var(--ease);
}

.authPanel{
  position: relative;
  width: min(520px, calc(100% - 28px));
  margin: 10vh auto 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  overflow:hidden;
  animation: authPop 260ms var(--ease);
}

@media (max-width: 520px){
  .authPanel{
    width: calc(100% - 18px);
    margin: 6vh auto 0;
  }
}

.authClose{
  position:absolute;
  top: 10px;
  right: 10px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.25);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  cursor:pointer;
  font-weight: 1000;
}

.authHead{
  padding: 18px 18px 0;
}

.authTitle{
  font-weight: 1100;
  font-size: 20px;
  letter-spacing: -0.3px;
}

.authSub{
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.authForm{
  padding: 14px 18px 18px;
  display:grid;
  gap: 10px;
}

.authLabel{
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .6px;
  margin-top: 6px;
}

.authInput{
  width:100%;
  padding: 12px;
  border-radius: 12px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline: none;
}

.authLinks{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  margin-top: 4px;
}

.authLinkBtn{
  border: none;
  background: transparent;
  color: var(--brand);
  font-weight: 900;
  cursor:pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px 0;
}

.authMsg{
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size: 13px;
}

@keyframes authFade{
  from{ opacity:0; }
  to{ opacity:1; }
}

@keyframes authPop{
  from{ transform: translateY(10px) scale(.98); opacity:0; }
  to{ transform: translateY(0) scale(1); opacity:1; }
}

/* =========
  EDIT MODAL (big editor)
========= */
.editModal{
  position: fixed;
  inset: 0;
  z-index: 95;
}
.editBackdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(12px);
  animation: authFade 220ms var(--ease);
}

.editPanel{
  position: relative;
  width: min(900px, calc(100% - 28px));
  margin: 8vh auto 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  overflow:hidden;
  animation: authPop 260ms var(--ease);
}

@media (max-width: 720px){
  .editPanel{
    width: calc(100% - 18px);
    margin: 4vh auto 0;
  }
}
@media (max-width: 520px){
  .editPanel{
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
  }
}

.editClose{
  position:absolute;
  top: 10px;
  right: 10px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.25);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  cursor:pointer;
  font-weight: 1000;
  z-index: 1;
}

.editHead{
  padding: 18px 18px 0;
}
.editTitle{
  font-weight: 1100;
  font-size: 20px;
  letter-spacing: -0.3px;
}
.editSub{
  margin-top: 6px;
  font-size: 13px;
}

.editForm{
  padding: 14px 18px 18px;
  display:grid;
  gap: 12px;
}

.editBody{
  max-height: 60vh;
  overflow:auto;
  padding-right: 4px;
}
@media (max-width: 520px){
  .editBody{ max-height: calc(100vh - 190px); }
}

.field{
  display:grid;
  gap:6px;
  margin-bottom: 10px;
}
.field label{
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .6px;
}
.field input,
.field textarea,
.field select{
  width:100%;
  padding: 12px;
  border-radius: 12px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline:none;
}
.field textarea{ resize: vertical; }

.fieldGrid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
}
.fieldGrid .field{ grid-column: span 6; margin-bottom: 0; }
.fieldGrid .field.col-12{ grid-column: span 12; }
@media (max-width: 720px){
  .fieldGrid .field{ grid-column: span 12; }
}

.fieldDivider{
  height: 1px;
  background: var(--line);
  margin: 12px 0;
}

.editActions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  flex-wrap:wrap;
}
@media (max-width: 520px){
  .editActions .btn{ width: 100%; }
}

.editTip{
  margin-top: 6px;
  font-size: 13px;
}

.editNote{
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size: 13px;
}

/* Toast */
.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-weight: 900;
  font-size: 13px;
  box-shadow: var(--shadow);
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
  z-index: 120;
}
.toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* print */
@media print{
  :root{
    --bg:#ffffff;
    --text:#0b0f19;
    --muted:#2b3348;
    --line: rgba(0,0,0,.12);
  }
  body{ background:#ffffff !important; color:#0b0f19 !important; }
  .topbar,
  .navMobile,
  .navToggle,
  .navDesktop,
  .pdfLink,
  .btn,
  .mini,
  #formMsg,
  .dropdownBtn,
  .dropdown,
  .publishBar,
  .editBtn,
  .sessionChip{ display:none !important; }
  .wrap{ max-width: 980px !important; padding: 0 !important; }
  .card{ box-shadow:none !important; background:#ffffff !important; }
  a{ color:#0b0f19 !important; text-decoration:none !important; }
  .link{ text-decoration:none !important; }
  table{ min-width: 0 !important; font-size: 12px !important; }
  .hero{ grid-template-columns: 1.4fr .6fr !important; }
  section{ page-break-inside: avoid; }
  .videoGrid{ display:none !important; }
}


/* Readability pass for dark directory/resume surfaces */
.dirH1,
.dirCTAHeading,
.dirHeroStatV,
.dirCardName,
.blockTitle,
.snapshotTitle,
.name,
h2,
h3,
.card p,
.card li,
.card label,
.dirModalPanel,
.dirModalPanel .dirPreviewBio,
.dirPreviewMeta,
.dirCardMeta,
.dirCardMini,
.dirResultsMini,
.dirHeroStatS,
.dirNote,
.dirCTASub,
.tagline,
.sub,
.list,
.muted{
  color: inherit;
}

.card,
.dirCard,
.dirHeroStat,
.dirNote,
.dirModalPanel,
.authPanel,
.editPanel,
.publishBar,
.topbar,
.dirHeroCard,
.dirAthleteCTA{
  color: var(--text);
}


/* Legal footer popups */
.legalLinks{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap;margin-top:10px;}
.legalLinkBtn{appearance:none;border:0;background:transparent;color:inherit;text-decoration:underline;text-underline-offset:3px;font:inherit;font-weight:700;cursor:pointer;padding:4px 6px;border-radius:8px;}
.legalLinkBtn:hover{background:rgba(255,255,255,.08);}
.legalModal[hidden]{display:none;}
.legalModal{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:18px;}
.legalModalBackdrop{position:absolute;inset:0;background:rgba(2,6,23,.72);backdrop-filter:blur(6px);}
.legalModalPanel{position:relative;width:min(760px,100%);max-height:min(82vh,760px);overflow:auto;background:#fff;color:#0f172a;border:1px solid #dce6f2;border-radius:24px;box-shadow:0 28px 80px rgba(0,0,0,.32);padding:24px;}
.legalModalClose{position:absolute;top:14px;right:14px;width:38px;height:38px;border-radius:999px;border:1px solid #cbd5e1;background:#f8fafc;color:#0f172a;font-weight:900;cursor:pointer;}
.legalModalClose:hover{background:#eef4fb;}
.legalModalPanel h2{margin:0 44px 10px 0;color:#0f172a;}
.legalModalPanel h3{margin:18px 0 8px;color:#0f172a;}
.legalModalPanel p,.legalModalPanel li{color:#334155;line-height:1.55;}
.legalModalPanel ul{padding-left:20px;}
.legalAckBox{margin-top:16px;padding:14px;border-radius:16px;background:#f8fbff;border:1px solid #dce6f2;color:#334155;}

/* Defensive fit fixes for owner/recruiter dashboard tools on the public resume page */
.card, .hero, .actions, .topbarWrap, .pillrow, .statCards{max-width:100%;}
.actions form{max-width:100%;}
.actions .btn, .actions button.btn{white-space:normal;}
img, video, iframe{max-width:100%;}

/* Mobile-only smooth hide/show for the main top navigation on home + player search pages */
@media (max-width: 920px){
  .topbar{
    transform:translateY(0);
    opacity:1;
    transition:transform .78s cubic-bezier(.16,1,.3,1), opacity .62s ease, box-shadow .45s ease, background .45s ease, backdrop-filter .45s ease;
    will-change:transform;
  }
  .topbar.navScrolled{
    background:rgba(11,15,25,.84);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
    box-shadow:0 16px 34px rgba(0,0,0,.24);
  }
  body.siteNavHidden:not(.siteMenuOpen) .topbar{
    transform:translateY(-115%);
    opacity:0;
    pointer-events:none;
  }
  .navMobile:not([hidden]){
    animation:siteMenuDrop .26s ease both;
    transform-origin:top center;
    transition:opacity .34s ease, transform .34s cubic-bezier(.16,1,.3,1), filter .34s ease;
  }
  .navMobile.isClosing{
    opacity:0;
    transform:translateY(-14px) scale(.98);
    filter:blur(2px);
    pointer-events:none;
  }
}
@keyframes siteMenuDrop{
  from{opacity:0;transform:translateY(-8px) scale(.98)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
@media (prefers-reduced-motion: reduce){
  .topbar,.navMobile{transition:none!important;animation:none!important;}
}

/* Public published resume mobile nav cleanup */
@media (max-width: 920px){
  .topbarRight{
    display:none;
  }
  .topbarWrap{
    flex-wrap:nowrap;
  }
  .navMobileLogin{
    display:block;
    width:auto;
    max-width:calc(100% - 32px);
    margin:10px 16px;
    text-align:center;
    overflow-wrap:anywhere;
  }
  .navMobile .navMobileLogin:last-child{
    margin-bottom:16px;
  }
}


/* Temporary public published resume auto-scroll helper badge */
.temp-scroll-badge {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 99999;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(8, 21, 42, 0.86);
  color: #fff;
  font: 700 12px/1.1 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 280ms ease, transform 280ms ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.temp-scroll-badge.is-visible {
  opacity: 1;
  transform: translateY(0);
}
