/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:  #0d1b2a;
  --gold:  #c9a84c;
  --white: #ffffff;
  --text:  #1a1a2e;
  --muted: #6b7280;
  --bg:    #f8f9fa;
  --border:#e5e7eb;
}

body { font-family: Georgia, 'Times New Roman', serif; color: var(--text); line-height: 1.6; background: var(--white); }

a { color: var(--navy); }
a:hover { color: var(--gold); }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.pub-nav { display:flex; align-items:center; justify-content:space-between; padding:16px 48px; background:var(--navy); position:sticky; top:0; z-index:50; }
.pub-nav-logo { color:var(--gold); font-weight:700; font-size:16px; text-decoration:none; font-family:-apple-system,sans-serif; letter-spacing:.02em; }
.pub-nav-links { display:flex; gap:24px; }
.pub-nav-links a { color:rgba(255,255,255,.8); text-decoration:none; font-family:-apple-system,sans-serif; font-size:14px; transition:color .15s; }
.pub-nav-links a:hover, .pub-nav-links a.active { color:var(--white); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.pub-hero { background:var(--navy); color:var(--white); padding:64px 48px; text-align:center; }
.pub-hero h1 { font-size:clamp(28px, 5vw, 48px); font-weight:700; margin-bottom:8px; }
.pub-hero .creds { font-size:0.7em; color:var(--gold); font-style:normal; font-weight:400; }
.pub-hero .headline { font-size:18px; color:rgba(255,255,255,.8); margin-bottom:8px; font-style:italic; }
.pub-hero .location { font-size:14px; color:rgba(255,255,255,.6); margin-bottom:16px; font-family:-apple-system,sans-serif; }
.pub-hero-sm { padding:40px 48px; }

.contact-line { display:flex; justify-content:center; gap:20px; flex-wrap:wrap; margin-top:8px; }
.contact-line a { color:var(--gold); font-family:-apple-system,sans-serif; font-size:14px; text-decoration:none; }
.contact-line a:hover { text-decoration:underline; }

/* ── Sections ────────────────────────────────────────────────────────────── */
.pub-section { max-width:760px; margin:0 auto; padding:48px 24px; border-bottom:1px solid var(--border); }
.pub-section h2 { font-size:22px; color:var(--navy); margin-bottom:24px; padding-bottom:8px; border-bottom:2px solid var(--gold); display:inline-block; }
.summary-text { font-size:16px; line-height:1.75; color:#2d3748; }

/* Items */
.item-block { margin-bottom:28px; }
.item-block:last-child { margin-bottom:0; }
.item-header { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px; margin-bottom:4px; }
.item-header strong { font-size:16px; }
.item-org { color:var(--muted); font-size:15px; font-family:-apple-system,sans-serif; }
.item-org::before { content:'—'; margin-right:6px; }
.item-meta { color:var(--muted); font-size:13px; font-family:-apple-system,sans-serif; margin-bottom:8px; display:flex; gap:8px; }
.item-desc { font-size:15px; line-height:1.65; }
.item-honors { font-style:italic; color:var(--muted); font-size:14px; }
.item-dates { color:var(--muted); font-size:13px; margin:0 0 8px; font-family:-apple-system,sans-serif; }
.edu-public-brand { display:flex; align-items:flex-start; gap:14px; }
.edu-public-logo {
  width:48px; height:48px; object-fit:contain; border-radius:8px;
  border:1px solid var(--border); background:#fff; padding:3px; flex-shrink:0;
}
.edu-public-gpa { margin-left:auto; text-align:right; font-family:-apple-system,sans-serif; white-space:nowrap; }
.edu-public-gpa strong { display:block; font-size:18px; color:var(--navy); line-height:1.1; }
.edu-public-gpa span { font-size:12px; color:var(--muted); }
.edu-public-badges { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.edu-public-badge {
  display:inline-block; padding:3px 9px; border-radius:9999px; font-size:11px; font-weight:600;
  background:rgba(212,175,55,.16); color:#6b4f00; border:1px solid rgba(212,175,55,.35);
  font-family:-apple-system,sans-serif;
}

/* Certifications */
.cert-list { display:flex; flex-wrap:wrap; gap:10px; }
.cert-chip { background:var(--bg); border:1px solid var(--border); border-radius:6px; padding:8px 14px; font-size:13px; font-family:-apple-system,sans-serif; }

/* Skills */
.skills-row { display:flex; flex-wrap:wrap; gap:6px; align-items:baseline; margin-bottom:10px; font-family:-apple-system,sans-serif; }
.skills-cat { font-weight:700; font-size:13px; min-width:140px; color:var(--navy); }
.skills-list { font-size:14px; color:#374151; }

/* ── Publications main ───────────────────────────────────────────────────── */
.pub-main { max-width:760px; margin:0 auto; padding:48px 24px; }

.pub-item { border-bottom:1px solid var(--border); padding-bottom:32px; margin-bottom:32px; }
.pub-item:last-child { border-bottom:none; }
.pub-item.pub-featured { border-left:3px solid var(--gold); padding-left:20px; }

.featured-tag { display:inline-block; background:var(--gold); color:var(--navy); font-size:11px; font-weight:700; padding:2px 8px; border-radius:99px; font-family:-apple-system,sans-serif; text-transform:uppercase; letter-spacing:.04em; margin-bottom:8px; }

.pub-title { font-size:20px; margin-bottom:6px; }
.pub-title a { text-decoration:none; color:var(--navy); }
.pub-title a:hover { color:var(--gold); text-decoration:underline; }

.pub-meta { display:flex; gap:14px; flex-wrap:wrap; font-family:-apple-system,sans-serif; font-size:13px; color:var(--muted); margin-bottom:10px; }
.pub-outlet { font-style:italic; }
.pub-abstract { font-size:15px; line-height:1.7; margin-bottom:8px; }
.pub-citation { font-size:13px; color:var(--muted); margin-bottom:8px; }

.pub-links { display:flex; gap:12px; flex-wrap:wrap; }
.pub-link { font-family:-apple-system,sans-serif; font-size:13px; font-weight:600; color:var(--navy); text-decoration:none; border-bottom:1px solid var(--gold); }
.pub-link:hover { color:var(--gold); }

.empty-msg { text-align:center; color:var(--muted); padding:64px 0; font-size:16px; font-family:-apple-system,sans-serif; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.pub-footer { text-align:center; padding:32px 24px; background:var(--navy); color:rgba(255,255,255,.6); font-family:-apple-system,sans-serif; font-size:13px; display:flex; justify-content:center; gap:24px; }
.pub-footer a { color:rgba(255,255,255,.6); text-decoration:none; }
.pub-footer a:hover { color:var(--gold); }

/* ── Portrait carousel (hero) ────────────────────────────────────────────── */
.hero-portrait {
  position: relative;
  width: 180px;
  height: 240px;
  margin: 0 auto 28px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
  border: 3px solid var(--gold);
}
.hero-portrait-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .9s ease;
}
.hero-portrait-slide.active { opacity: 1; }
.hero-portrait-slide img { width:100%; height:100%; object-fit:cover; display:block; }

.hero-portrait-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.portrait-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none; cursor: pointer; padding: 0;
  transition: background .2s;
}
.portrait-dot.active, .portrait-dot:hover { background: var(--gold); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width:640px) {
  .pub-nav { padding:14px 20px; }
  .pub-hero { padding:40px 20px; }
  .pub-section, .pub-main { padding:32px 20px; }
  .item-header { flex-direction:column; gap:2px; }
  .item-org::before { content:''; }
  .hero-portrait { width:140px; height:186px; }
}

/* ── Verification share pages ─────────────────────────────────────────────── */
body.verify-page {
  background:#f4f6fb;
  font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.verify-header {
  background:var(--navy);
  color:#fff;
  text-align:center;
  padding:44px 20px 34px;
}
.verify-header h1 { margin-bottom:6px; font-size:30px; }
.verify-header p { color:rgba(255,255,255,.84); }
.verify-subtitle { margin-top:8px; font-size:14px; }
.verify-main {
  max-width:980px;
  margin:0 auto;
  padding:28px 18px 48px;
}
.verify-lock-card,
.verify-meta-card {
  background:#fff;
  border:1px solid #dde3ee;
  border-radius:12px;
  padding:20px;
  margin-bottom:20px;
}
.verify-pin-form { display:flex; gap:10px; margin-top:14px; flex-wrap:wrap; }
.verify-pin-form input {
  flex:1;
  min-width:180px;
  border:1px solid #c9d2e4;
  border-radius:8px;
  padding:10px 12px;
}
.verify-btn {
  background:var(--gold);
  color:var(--navy);
  border:none;
  border-radius:8px;
  padding:10px 18px;
  font-weight:700;
  cursor:pointer;
}
.verify-error { color:#b42318; margin-top:10px; }
.verify-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:16px;
}
.verify-card {
  background:#fff;
  border:1px solid #dde3ee;
  border-radius:12px;
  padding:16px;
}
.verify-card h3 { margin-bottom:6px; color:var(--navy); }
.verify-sub { color:var(--muted); margin-bottom:8px; }
.verify-card p { margin-bottom:6px; font-size:14px; }
.verify-card-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
}
.verify-type {
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--muted);
}
.verify-status {
  border-radius:9999px;
  padding:2px 8px;
  font-size:11px;
  font-weight:700;
}
.verify-status.active { background:#dcfce7; color:#166534; }
.verify-status.expired { background:#fee2e2; color:#991b1b; }
.verify-actions {
  margin-top:12px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.verify-link {
  border:1px solid #d0d8ea;
  border-radius:7px;
  padding:7px 10px;
  text-decoration:none;
  font-size:13px;
  color:var(--navy);
  background:#f8faff;
}
.verify-link:hover { border-color:var(--gold); }

/* ── First-party promotions (BP-012) ─────────────────────────────────────── */
.promo-rail {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.promo-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 4px 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.promo-card-image {
  width: 88px;
  height: 88px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.promo-card-body { min-width: 0; flex: 1; }
.promo-card-disclosure {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.promo-card-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 6px;
  font-weight: 700;
}
.promo-card-text {
  font-size: 14px;
  line-height: 1.55;
  color: #374151;
  margin-bottom: 8px;
}
.promo-card-why {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 10px;
}
.promo-card-why-label {
  color: var(--navy);
  font-weight: 600;
}
.promo-card-link {
  display: inline-block;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 1px;
}
.promo-card-link:hover { color: var(--gold); }
@media (max-width: 640px) {
  .promo-card { flex-direction: column; }
  .promo-card-image { width: 100%; height: auto; max-height: 180px; }
}
