/* Shared top bar for the STADFU pages (internships.html,
   startup-guidance.html, cv-card.html), rendered by js/stadfu-header.js.
   Colours come from each page's own tokens (--paper, --text, --line,
   --gold-deep, --slate), so Eye Comfort Mode still repaints the bar. */
  /* ---------- NAV ---------- */
  nav{
    position:fixed; top:0; left:0; right:0; z-index:100;
    backdrop-filter: blur(14px);
    /* Tracks --paper (color-mix, not a hardcoded rgba) so an active Eye
       Comfort Mode's background carries through to the nav's frosted-glass
       tint too, instead of it staying stuck on the default cream. */
    background: color-mix(in srgb, var(--paper) 75%, transparent);
    border-bottom:1px solid var(--line);
  }
  nav .wrap{ display:flex; align-items:center; justify-content:space-between; height:76px; }
  .brand{
    font-family:'Google Sans','Inter','Manrope',sans-serif; font-size:17px; font-weight:700;
    display:flex; align-items:center; gap:8px; color:var(--text);
  }
  .brand .mark{ position:relative; width:10px; height:10px; flex-shrink:0; }
  .nav-links{ display:flex; align-items:center; gap:40px; }
  .nav-links a{ font-size:14px; color:var(--text); opacity:0.72; transition:opacity .25s ease; }
  .nav-links a:hover{ opacity:1; }
  .nav-links a.current{ opacity:1; color:var(--gold-deep); font-weight:700; }
  .nav-back-arrow{ display:inline-block; margin-right:6px; transition:transform .25s ease; }
  .nav-back:hover .nav-back-arrow{ transform:translateX(-3px); }
  @media (prefers-reduced-motion:reduce){
    .nav-back-arrow{ transition:none; }
  }
  @media (min-width:761px) and (max-width:980px){
    .nav-links{ gap:18px; }
    .nav-links a{ white-space:nowrap; }
  }
  @media (min-width:761px) and (max-width:860px){
    .nav-links{ gap:14px; }
    .nav-links a{ font-size:13px; }
  }
  .nav-toggle{
    display:none; width:40px; height:40px; border-radius:10px; padding:0;
    border:1px solid var(--line); background:transparent;
    align-items:center; justify-content:center; flex-direction:column; gap:5px;
    cursor:pointer; flex-shrink:0;
  }
  .nav-toggle span{ display:block; width:18px; height:2px; background:var(--text); border-radius:2px; transition:transform .25s ease, opacity .25s ease; }
  .nav-toggle.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2){ opacity:0; }
  .nav-toggle.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
  @media (max-width:760px){
    .nav-links{ display:none; width:100%; }
    .nav-toggle{ display:flex; }
    nav .wrap{ flex-wrap:wrap; height:auto; min-height:76px; }
    nav.menu-open{ background:var(--paper); }
    nav.menu-open .nav-links{ display:flex; }
    .nav-links{ flex-direction:column; align-items:flex-start; gap:2px; padding:18px 0 6px; }
    .nav-links a{ display:block; width:100%; padding:11px 2px; }
    .nav-auth-actions{ margin-top:8px; }
    .nav-login-menu{ right:auto; left:0; }
  }
  /* ---------- Eye Comfort Mode (nav) ----------
     Same port as index.html's landing-page nav — see that file's comment
     for the full rationale (rebuilt against this page's own --paper=
     background/--text=text convention rather than copied verbatim from
     students.html's opposite "ink on paper" naming). Shares the same
     localStorage key as both other pages, so a mode picked anywhere
     applies consistently everywhere. */
  @property --eyecomfort-glow-angle{
    syntax: '<angle>'; initial-value: 0deg; inherits: false;
  }
  .eyecomfort-wrap{ position:relative; }
  .eyecomfort-btn{
    font-family:inherit; font-size:14px; color:var(--text); opacity:0.72; background:none; border:none;
    cursor:pointer; padding:0; transition:opacity .25s ease;
  }
  .eyecomfort-btn:hover{ opacity:1; }
  .eyecomfort-panel{
    display:none; position:absolute; top:calc(100% + 14px); right:0; z-index:60;
    width:min(600px, calc(100vw - 40px)); max-height:min(640px, calc(100vh - 110px)); overflow-y:auto;
    background:var(--paper); border:1px solid var(--line); border-radius:18px;
    box-shadow:0 30px 70px -25px rgba(18,22,43,0.35);
  }
  .eyecomfort-panel.show{ display:block; }
  .eyecomfort-backdrop{ display:none; position:fixed; inset:0; z-index:59; background:rgba(18,22,43,0.45); }
  @media (max-width:760px){
    .eyecomfort-backdrop.show{ display:block; }
    .eyecomfort-panel{
      position:fixed; top:50%; left:50%; right:auto; transform:translate(-50%,-50%);
      width:calc(100vw - 32px); max-width:420px; max-height:calc(100vh - 96px);
    }
  }
  .eyecomfort-panel.show::before{
    content:''; position:absolute; inset:-2px; z-index:2; border-radius:inherit;
    padding:2px; pointer-events:none; opacity:0.95; filter:blur(0.5px);
    background:repeating-conic-gradient(from var(--eyecomfort-glow-angle),
      var(--eyecomfort-glow, var(--gold)) 0deg 10deg, transparent 10deg 55deg);
    -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite:xor;
    mask-composite:exclude;
    animation:eyeComfortGlowRotate 6s linear infinite;
  }
  @keyframes eyeComfortGlowRotate{ to{ --eyecomfort-glow-angle:360deg; } }
  @media (prefers-reduced-motion: reduce){
    .eyecomfort-panel.show::before{ animation:none; }
  }
  .eyecomfort-header{
    display:flex; align-items:flex-start; gap:12px; padding:20px 20px 16px;
    border-bottom:1px solid var(--line); position:sticky; top:0; background:var(--paper); z-index:1;
  }
  .eyecomfort-header-icon{ font-size:21px; margin-top:1px; }
  .eyecomfort-title{ font-family:'Google Sans','Inter','Manrope',sans-serif; font-weight:700; font-size:16px; color:var(--text); }
  .eyecomfort-subtitle{ font-size:11.5px; color:var(--slate); margin-top:4px; line-height:1.5; }
  .eyecomfort-close{
    margin-left:auto; flex-shrink:0; width:28px; height:28px; border-radius:8px;
    border:1px solid var(--line); background:none; color:var(--slate); cursor:pointer;
    display:flex; align-items:center; justify-content:center; transition:all .2s ease;
  }
  .eyecomfort-close:hover{ border-color:var(--gold-deep); color:var(--gold-deep); }
  .eyecomfort-list{ display:flex; flex-direction:column; }
  .eyecomfort-item{
    display:grid; grid-template-columns:30px 1fr 170px; gap:14px; align-items:start;
    padding:16px 20px; border:none; border-bottom:1px solid var(--line); background:none;
    text-align:left; cursor:pointer; width:100%; font-family:'Manrope',sans-serif; transition:background .15s ease;
  }
  .eyecomfort-item:last-child{ border-bottom:none; }
  .eyecomfort-item:hover{ background:var(--line); }
  .eyecomfort-swatch{
    width:26px; height:26px; border-radius:50%; margin-top:2px; flex-shrink:0;
    border:1px solid var(--line);
  }
  .eyecomfort-name{
    font-weight:700; font-size:13.5px; color:var(--text); display:flex; align-items:center; gap:7px; flex-wrap:wrap;
  }
  .eyecomfort-recommended-badge{
    font-family:'JetBrains Mono',monospace; font-size:8.5px; font-weight:700; letter-spacing:.03em;
    color:var(--ink); background:var(--gold); border-radius:999px; padding:2px 7px; white-space:nowrap;
  }
  .eyecomfort-color{ font-size:11.5px; color:var(--slate); margin-top:3px; }
  .eyecomfort-desc{ font-size:12px; color:var(--slate); margin-top:6px; line-height:1.55; }
  .eyecomfort-for{ font-size:11.5px; color:var(--slate); margin-top:4px; line-height:1.5; opacity:0.85; }
  .eyecomfort-for strong{ color:var(--text); font-weight:700; }
  .eyecomfort-source{ text-align:right; }
  .eyecomfort-cite{ font-size:10.5px; color:var(--slate); line-height:1.45; }
  .eyecomfort-link{
    display:inline-block; margin-top:6px; font-size:11px; font-weight:700; color:var(--teal); text-decoration:none;
  }
  .eyecomfort-link:hover{ color:var(--gold-deep); }
  .eyecomfort-link-inert{ cursor:default; color:var(--slate); }
  .eyecomfort-link-inert:hover{ color:var(--slate); }
  @media (max-width:620px){
    .eyecomfort-item{ grid-template-columns:1fr; }
    .eyecomfort-source{ text-align:left; margin-top:4px; }
  }
  /* Login dropdown */
  .nav-auth-actions{ display:flex; align-items:center; gap:10px; }
  .nav-login-dropdown{ position:relative; }
  .nav-login-menu{
    display:none; position:absolute; top:calc(100% + 8px); right:0; min-width:210px;
    background:#fff; border:1px solid var(--line); border-radius:12px;
    box-shadow:0 20px 44px -20px rgba(18,22,43,0.35); padding:6px; z-index:50;
  }
  .nav-login-menu.open{ display:block; }
  .nav-login-menu-item{
    display:block; width:100%; text-align:left; padding:11px 14px; border-radius:8px;
    border:none; background:none; cursor:pointer; font-family:'Manrope',sans-serif; font-size:13.5px;
    font-weight:600; color:var(--text); transition:background .15s ease;
  }
  .nav-login-menu-item:hover{ background:#F7F5F0; }

  /* account menu (signed in): the same dropdown look as Login */
  .nav-account-dropdown[hidden]{ display:none; }
  .nav-account-menu{ min-width:220px; }
  /* links in the menu look exactly like its buttons, not like bar links */
  .nav-links .nav-login-menu a.nav-login-menu-item{
    display:block; width:100%; padding:11px 14px; opacity:1; white-space:normal; text-decoration:none;
    font-family:'Manrope',sans-serif; font-size:13.5px; font-weight:600; color:var(--text);
  }
  .nav-login-menu-item:focus-visible{ outline:2px solid var(--gold-deep); outline-offset:-2px; }
  .nav-signout-item{ margin-top:4px; border-top:1px solid var(--line); border-radius:0 0 8px 8px; }
