/* =====================================================================
 * BAR LAB · PKNU theme (2026-11)
 * Loaded after every page's own styles. Re-maps the old dark/gold
 * tokens to a white + navy + PKNU blue palette and one sans family.
 * ================================================================== */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root, :root:root {
  /* palette */
  --navy:       #0B2C5F;
  --navy-2:     #12376F;
  --blue:       #1460C8;
  --blue-ink:   #0D4CA3;
  --sky:        #E8F0FB;
  --mist:       #F4F7FB;
  --ink:        #13223A;
  --line:       #DCE3EC;

  /* old tokens, re-mapped */
  --bg-base:    #FFFFFF;
  --bg-rise:    #F4F7FB;
  --bg-card:    #FFFFFF;
  --bg-card-2:  #EEF3F9;
  --bg-deep:    #EEF3F9;

  --silver-1:   #13223A;
  --silver-2:   #2C3E58;
  --silver-3:   #52637B;
  --silver-4:   #66758C;
  --silver-5:   #CFD8E3;
  --silver-6:   #E4EAF1;

  --gold:        #1460C8;
  --gold-soft:   #2F74D0;
  --gold-bright: #0D4CA3;
  --gold-deep:   #0B2C5F;
  --gold-glow:   rgba(20, 96, 200, 0.08);

  --sage:   #2C7A5B;
  --copper: #B4532A;
  --steel:  #3B6EA8;
  --rose:   #B4475E;
  --orcid:  #5E8C12;
  --orcid-green: #5E8C12;
  --success: #2C7A5B;
  --warning: #B4532A;

  --serif: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --sans:  "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --mono:  "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;

  --border-thin: 1px solid var(--line);
  --border-soft: 1px solid #E8EDF3;
  --shadow-card: 0 1px 2px rgba(11, 44, 95, 0.06);
  --shadow-lift: 0 6px 24px rgba(11, 44, 95, 0.10);
  --shadow-glow: none;
}

html { -webkit-font-smoothing: antialiased; }
body {
  background: #FFFFFF;
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "tnum" 0;
  letter-spacing: -0.005em;
}
::selection { background: var(--sky); color: var(--navy); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* One family, upright: headline <em> no longer switches to gold italic */
h1 em, h2 em, h3 em, h4 em,
.h-display em, .h-section em, .h-card em,
.footer-brand h3 em, .hero-title em {
  font-style: normal !important;
  color: inherit !important;
}
.h-display, .h-section, .h-card { font-weight: 700; letter-spacing: -0.025em; color: var(--navy); }
.h-section { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.2; }
.lead { font-style: normal; font-size: 18px; color: var(--silver-3); }

/* Small labels: sentence case, no tracking */
.eyebrow, .nav-tagline, .footer-col h4, .footer-bottom, .btn, .nav-link,
.nav-signin-pill, .nav-mark-caption {
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.eyebrow { font-size: 13px; font-weight: 600; color: var(--blue); }
.eyebrow .marker { display: none; }

/* ---------- University bar + nav ---------- */
.uni-bar {
  background: var(--navy);
  color: #C9D6EA;
  font-size: 12.5px;
}
.uni-bar-inner {
  max-width: var(--container, 1280px);
  margin: 0 auto;
  padding: 7px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.uni-bar a { color: #FFFFFF; }
.uni-bar a:hover { text-decoration: underline; }
@media (max-width: 640px) { .uni-bar-inner .uni-bar-right { display: none; } }

.nav {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line) !important;
}
.nav-mark {
  background: var(--navy) !important;
  color: #FFFFFF !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  font-family: var(--sans) !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  letter-spacing: 0.02em !important;
}
.nav-mark::after { background: #FFFFFF !important; opacity: 0.55 !important; }
.nav-brand:hover .nav-mark { transform: none !important; box-shadow: none !important; }
.nav-brand::after { display: none !important; }
.nav-name { font-family: var(--sans) !important; font-weight: 700 !important; font-size: 15px !important; color: var(--navy) !important; }
.nav-tagline { font-family: var(--sans) !important; font-size: 12px !important; color: var(--silver-3) !important; }
.nav-brand:hover .nav-name { color: var(--blue) !important; }
.nav-link {
  font-family: var(--sans) !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  color: var(--silver-2) !important;
}
.nav-link:hover { color: var(--blue) !important; }
.nav-link.active { color: var(--navy) !important; font-weight: 700 !important; }
.nav-link.active::after { background: var(--blue) !important; }
.nav-signin-pill {
  color: #FFFFFF !important;
  background: var(--navy) !important;
  border: 1px solid var(--navy) !important;
  font-family: var(--sans) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  padding: 7px 14px !important;
}
.nav-signin-pill:hover { background: var(--blue) !important; border-color: var(--blue) !important; }
.nav-user-chip { font-family: var(--sans) !important; border-color: var(--line) !important; color: var(--navy) !important; }
.nav-toggle { color: var(--navy) !important; }
@media (max-width: 760px) {
  .nav-links.open { background: #FFFFFF !important; box-shadow: 0 8px 20px rgba(11,44,95,.08); }
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--sans) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  padding: 12px 22px !important;
}
.btn-primary {
  background: var(--navy) !important;
  color: #FFFFFF !important;
}
.btn-primary:hover { background: var(--blue) !important; box-shadow: none !important; }
.btn-secondary {
  background: #FFFFFF !important;
  color: var(--navy) !important;
  border: 1px solid #B9C7D9 !important;
}
.btn-secondary:hover { border-color: var(--navy) !important; color: var(--navy) !important; }
.btn-arrow::after { content: none !important; }

/* ---------- Cards / sections ---------- */
.card { background: #FFFFFF; border: 1px solid var(--line); box-shadow: var(--shadow-card); }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy) !important;
  color: #C9D6EA;
  border-top: none !important;
  margin-top: 0 !important;
  padding: 64px 0 28px !important;
}
.footer h3, .footer-brand h3 { color: #FFFFFF !important; font-family: var(--sans) !important; font-weight: 800 !important; }
.footer-brand p, .footer-tagline, .footer-affiliation { color: #C9D6EA !important; font-style: normal !important; font-family: var(--sans) !important; }
.footer-col h4 { color: #FFFFFF !important; font-family: var(--sans) !important; font-size: 14px !important; font-weight: 700 !important; }
.footer-col a { color: #C9D6EA !important; }
.footer-col a:hover { color: #FFFFFF !important; border-bottom-color: #FFFFFF !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14) !important; color: #9FB2CF !important; font-family: var(--sans) !important; font-size: 13px !important; }
.footer-bottom .lab-mark { color: #9FB2CF !important; font-style: normal !important; font-family: var(--sans) !important; }
.footer-mark, .footer .nav-mark { background: #FFFFFF !important; color: var(--navy) !important; }
.footer-divider { background: rgba(255,255,255,.18) !important; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar-track { background: #F4F7FB; }
::-webkit-scrollbar-thumb { background: #C3CEDC; }

/* ---------- Page-specific leftovers from the dark theme ---------- */
.btn.primary, .login-card .btn, form .btn:not(.btn-secondary):not(.secondary) {
  background: var(--navy) !important;
  color: #FFFFFF !important;
}
.btn.primary:hover { background: var(--blue) !important; }
.brand-mark { background: var(--navy) !important; color: #FFFFFF !important; box-shadow: none !important; font-family: var(--sans) !important; font-weight: 800 !important; }
.brand-mark::after { background: #FFFFFF !important; opacity: .55 !important; }
.brand-name { color: var(--navy) !important; font-family: var(--sans) !important; font-weight: 700 !important; }

/* ---------- Nav: switch to the menu button before links wrap ---------- */
.nav-links { flex-wrap: nowrap !important; }
@media (max-width: 1100px) { .nav-links { gap: 18px !important; } }
@media (max-width: 980px) {
  .nav-links { display: none !important; }
  .nav-toggle { display: block !important; }
  .nav-links.open {
    display: flex !important;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    padding: 20px 24px; gap: 16px !important;
    background: #FFFFFF !important;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(11,44,95,.08);
  }
}
