/* =========================================================
   NERD Publication — shared platform stylesheet.
   Structural rules only — every color (--ink, --copper, --maroon,
   --teal, --light-bg, etc.) is injected per-request in an inline
   <style> block in includes/header.php, computed from the current
   conference's theme_* columns. This file never hardcodes a
   conference-specific color.
   Display: Space Grotesk. Body: Inter. Data/mono: IBM Plex Mono.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --paper:      #F7F8FA;
  --surface:    #FFFFFF;
  --text:       #1A2433;
  --text-muted: #64748B;
  --text-on-ink:#F2F5F9;
  --text-on-ink-muted: #A9BAD4;
  --border:     #E2E8F0;
  --border-ink: #24406B;
  --danger:     #B3402E;
  --success:    #1B7F53;
  --radius:     10px;
  --shadow: 0 1px 2px rgba(15,23,42,0.04), 0 8px 24px rgba(15,23,42,0.06);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  overflow-x: hidden; /* prevents a horizontal scrollbar from the full-width banner's 100vw trick */
  background: var(--paper);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.02em;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--copper-dark); }

img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2.5px solid var(--copper);
  outline-offset: 2px;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-dark);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--copper);
}

/* ---------- Circuit trace divider (signature element) ---------- */
.trace-divider {
  width: 100%;
  height: 22px;
  margin: 4px 0 28px;
  background-repeat: repeat-x;
  background-size: 140px 22px;
  opacity: 0.9;
}
.trace-divider--light {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='22'><path d='M0 11 H30 L38 3 H70 L78 19 H110 L118 11 H140' fill='none' stroke='%23CF4652' stroke-width='1.6'/><circle cx='30' cy='11' r='2.2' fill='%23CF4652'/><circle cx='78' cy='19' r='2.2' fill='%23CF4652'/><circle cx='118' cy='11' r='2.2' fill='%23CF4652'/></svg>");
}
.trace-divider--dark {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='22'><path d='M0 11 H30 L38 3 H70 L78 19 H110 L118 11 H140' fill='none' stroke='%235B7A9C' stroke-width='1.6'/><circle cx='30' cy='11' r='2.2' fill='%235B7A9C'/><circle cx='78' cy='19' r='2.2' fill='%235B7A9C'/><circle cx='118' cy='11' r='2.2' fill='%235B7A9C'/></svg>");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--copper); color: #FFFFFF; }
.btn-primary:hover { background: var(--copper-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--text-on-ink-muted); color: var(--text-on-ink); }
.btn-outline:hover { border-color: var(--copper); color: var(--copper); }
.btn-outline-ink { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline-ink:hover { border-color: var(--copper); color: var(--copper-dark); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-block { width: 100%; justify-content: center; }
.btn-danger { background: var(--danger); color: #fff; }

/* ---------- Top utility bar ---------- */
.utility-bar {
  background: var(--light-bg);
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  border-bottom: 1px solid var(--border);
}
.utility-bar .container {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 6px; padding-top: 8px; padding-bottom: 8px;
}
.utility-bar span { display: inline-flex; align-items: center; gap: 6px; }
.utility-bar strong { color: var(--maroon); font-weight: 600; }

/* ---------- Row 1: icon utility bar ---------- */
.utility-bar--icons {
  background: var(--ink); color: var(--text-on-ink-muted); border-bottom: none;
}
.utility-bar--icons a { color: inherit; }
.utility-bar--icons .container { padding-top: 9px; padding-bottom: 9px; }
.utility-left, .utility-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.u-icon { font-size: 13px; }
.u-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px; padding: 3px 12px 3px 10px; font-size: 11.5px; color: var(--text-on-ink);
}

/* ---------- Row 2: logo + search/CTA ---------- */
.brand-row { background: var(--surface); border-bottom: 1px solid var(--border); }
.brand-row-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; }
.brand-block { display: flex; align-items: center; gap: 16px; color: var(--ink); text-decoration: none; }
.brand-block .brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-block .name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 24px; color: var(--ink); }
.brand-block .tag { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.brand-row-actions { flex: none; }
@media (max-width: 700px) { .brand-row-inner { flex-direction: column; align-items: flex-start; gap: 14px; } }

/* ---------- Row 3: sitewide announcement ticker ---------- */
.ticker-bar.ticker-bar--sitewide {
  background: var(--copper); border-top: none; border-bottom: none;
}
.ticker-bar--sitewide .ticker-label { color: #fff; opacity: 0.9; }
.ticker-bar--sitewide .ticker-track span { color: #fff; }
.ticker-bar--sitewide .ticker-track span::before { content: "•"; color: rgba(255,255,255,0.6); margin-right: 10px; }
.ticker-bar--sitewide .ticker-track span a { color: inherit; text-decoration: none; }
.ticker-bar--sitewide .ticker-track span a:hover { text-decoration: underline; }

/* ---------- Row 4: white nav bar with home-icon button ---------- */
.site-header--light .container.site-header-inner { display: flex; align-items: center; gap: 6px; padding-top: 6px; padding-bottom: 6px; }
.nav-home-btn {
  flex: none; width: 40px; height: 40px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
  background: var(--paper); border: 1px solid var(--border); color: var(--ink);
  margin-right: 6px; text-decoration: none;
}
.nav-home-btn:hover { background: var(--copper-tint); }
.nav-home-btn.active { background: var(--copper); border-color: var(--copper); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(16,27,45,0.06);
  position: sticky; top: 0; z-index: 40;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand--stacked { flex-direction: column; align-items: flex-start; gap: 6px; }
.brand-logo-img { height: 92px; width: auto; max-width: 260px; object-fit: contain; display: block; }
.brand--stacked .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand--stacked .name { font-size: 17px; line-height: 1.15; }
.brand--stacked .tag { margin-top: 2px; }
.brand-mark {
  width: 40px; height: 40px; flex: none;
  border-radius: 4px;
  background: linear-gradient(155deg, var(--ink-3), var(--ink));
  border: 1px solid var(--border-ink);
  position: relative;
}
.brand-mark::before, .brand-mark::after {
  content: ""; position: absolute; background: var(--copper); border-radius: 50%;
}
.brand-mark::before { width: 5px; height: 5px; top: 8px; left: 8px; }
.brand-mark::after { width: 5px; height: 5px; bottom: 8px; right: 8px; }
.brand-mark { background-image:
    linear-gradient(155deg, var(--ink-3), var(--ink)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><path d='M10 10 H22 V22 H30' fill='none' stroke='%23CF4652' stroke-width='2'/></svg>");
}
.brand-text .name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 23px; letter-spacing: 0.01em; color: var(--ink); }
.brand-text .tag { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-muted); }

.main-nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; flex-wrap: nowrap; }
.main-nav a {
  display: block; padding: 10px 12px; color: var(--ink);
  font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 14px;
  border-radius: var(--radius); white-space: nowrap;
}
.main-nav a:hover { background: rgba(145,24,37,0.08); color: var(--maroon); }
.main-nav a.active { color: var(--maroon); }
.nav-toggle { display: none; }

/* Dropdown groups (Committee, Resources) */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex; align-items: center; gap: 5px; padding: 10px 12px;
  background: none; border: none; color: var(--ink); cursor: pointer;
  font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 14px;
  border-radius: var(--radius); white-space: nowrap;
}
.nav-dropdown-toggle:hover, .nav-dropdown-toggle[aria-expanded="true"] { background: rgba(145,24,37,0.08); color: var(--maroon); }
.nav-dropdown-toggle.active { color: var(--maroon); }
.nav-dropdown-toggle .caret { font-size: 10px; transition: transform 0.15s ease; }
.nav-dropdown-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: block; list-style: none; margin: 0; padding: 6px; position: absolute; top: 100%; left: 0;
  background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius);
  min-width: 200px; box-shadow: 0 10px 30px rgba(16,27,45,0.14);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 60;
}
.nav-dropdown-menu.open,
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu li { margin: 0; }
.nav-dropdown-menu a { padding: 10px 12px; font-size: 14px; white-space: nowrap; }

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex; background: none; border: 1px solid var(--border);
    color: var(--ink); padding: 8px 10px; border-radius: var(--radius); cursor: pointer;
  }
  .main-nav {
    display: none; width: 100%; order: 3;
    border-top: 1px solid var(--border); margin-top: 12px; padding-top: 8px;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; flex-wrap: wrap; }
  .site-header .container { flex-wrap: wrap; }
  .brand-logo-img { height: 48px; }

  /* On mobile the dropdown becomes a plain expandable section within
     the vertical menu, not a floating panel (there's no room to float). */
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; }
  .nav-dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: var(--paper); margin: 2px 0 4px 14px;
    max-height: 0; overflow: hidden; padding: 0 6px; transition: max-height 0.2s ease, padding 0.2s ease;
  }
  .nav-dropdown-menu.open { max-height: 300px; padding: 6px; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--light-bg) 0%, var(--surface) 100%);
  color: var(--text);
  position: relative;
  overflow: hidden;
  padding: 76px 0 64px;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--border) 1.4px, transparent 1.4px);
  background-size: 28px 28px;
  opacity: 0.6;
  mask-image: linear-gradient(180deg, black, transparent 85%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.hero h1 {
  color: var(--ink); font-size: clamp(32px, 4vw, 48px); margin: 14px 0 16px; letter-spacing: -0.01em;
}
.hero h1 .accent { color: var(--copper); }
.hero p.lead { color: var(--text-muted); font-size: 18.5px; max-width: 60ch; text-align: justify; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta div { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--text-muted); }
.hero-meta strong { display: block; color: var(--ink); font-size: 15px; margin-top: 3px; }

.countdown-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); overflow: hidden;
}
.countdown-card .eyebrow { color: var(--copper); }
.countdown-card .eyebrow::before { background: var(--copper); }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.countdown-grid div { text-align: center; }
.countdown-grid .num {
  font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 26px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 0;
}
.countdown-grid .lbl { font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 6px; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 68ch; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); margin: 10px 0 12px; }
.section-head p { color: var(--text-muted); font-size: 16.5px; }

/* ---------- Page layout: content + sidebar ---------- */
.page-layout {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 44px;
  align-items: start;
}
.page-layout > div:first-child { min-width: 0; }
.page-layout > div:first-child p { text-align: justify; }
@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; }
}
.page-header {
  background: var(--light-bg); color: var(--text);
  padding: 44px 0 38px; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-header::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--border) 1.4px, transparent 1.4px);
  background-size: 28px 28px; opacity: 0.6;
  mask-image: linear-gradient(180deg, black, transparent 90%);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { color: var(--ink); font-size: clamp(26px, 3.4vw, 36px); margin: 10px 0 6px; letter-spacing: -0.01em; }
.page-header p { color: var(--text-muted); max-width: 62ch; margin: 0; }
.breadcrumb { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--copper); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card-grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.topic-card { border-left: 3px solid var(--copper); }
.topic-card h4 { font-size: 16px; margin: 0 0 8px; }
.topic-card ul { margin: 0; padding-left: 18px; color: var(--text-muted); font-size: 15px; }
.topic-card li { margin-bottom: 4px; }

/* ---------- Committee ---------- */
.committee-group { margin-bottom: 44px; }
.committee-group h3 {
  font-size: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--ink);
  margin-bottom: 20px; display: inline-block;
}
.person-card { text-align: left; display: flex; gap: 14px; align-items: flex-start; }
.person-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: linear-gradient(155deg, var(--ink-3), var(--ink));
  color: var(--copper); font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.person-avatar--photo { object-fit: cover; border: 1px solid var(--border); }
.person-card h4 { margin: 0 0 3px; font-size: 15.5px; }
.person-card .role { color: var(--copper-dark); font-size: 12.5px; font-weight: 600; font-family: 'Space Grotesk', sans-serif; }
.person-card .affil { color: var(--text-muted); font-size: 13.5px; margin-top: 3px; }

/* ---------- Timeline (Important Dates page) ---------- */
.timeline { position: relative; padding-left: 30px; border-left: 2px solid var(--border); }
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item::before {
  content: ""; position: absolute; left: -37px; top: 2px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--copper);
  border: 3px solid var(--paper);
}
.timeline-item .date { font-family: 'IBM Plex Mono', monospace; font-weight: 600; color: var(--ink); font-size: 15px; }
.timeline-item .label { color: var(--text-muted); margin-top: 2px; }

/* ---------- Sidebar ---------- */
/* One continuous flowing column, sections separated by a line —
   not individually boxed cards. */
.sidebar {
  background: none; border: 0; border-left: 1px solid var(--border); padding: 0 0 0 26px;
}
.sidebar-widget {
  padding: 18px 4px; border-bottom: 1px solid var(--border);
}
.sidebar-widget:last-child { border-bottom: none; }
.sidebar-widget h3 {
  font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em;
  margin: 0 0 12px; display: flex; align-items: center; gap: 8px;
}
.sidebar-widget h3::before { content: ""; width: 8px; height: 8px; background: var(--copper); border-radius: 1px; }
.date-row { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.date-row:last-child { border-bottom: none; }
.date-row .d { font-family: 'IBM Plex Mono', monospace; font-weight: 600; color: var(--copper-dark); font-size: 13.5px; white-space: nowrap; }
.date-row .l { color: var(--text); font-size: 14px; }
.quick-links { list-style: none; margin: 0; padding: 0; }
.quick-links li { border-bottom: 1px solid var(--border); }
.quick-links li:last-child { border-bottom: none; }
.quick-links a { display: flex; justify-content: space-between; padding: 10px 2px; font-family: 'Space Grotesk', sans-serif; font-size: 14.5px; color: var(--text); }
.quick-links a:hover { color: var(--copper-dark); }
.announcement { font-size: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.announcement:last-child { border-bottom: none; }
.announcement .when { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.sidebar-cta { border-left: 3px solid var(--copper); padding-left: 16px; }
.sidebar-cta h3 { color: var(--text); }
.sidebar-cta p { color: var(--text-muted); font-size: 14px; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: 'Inter', sans-serif; font-size: 15.5px; background: #fff; color: var(--text);
}
.form-control:focus { border-color: var(--copper); outline: none; }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-hint { font-size: 12.5px; color: var(--text-muted); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.alert { padding: 13px 16px; border-radius: var(--radius); font-size: 14.5px; margin-bottom: 20px; border: 1px solid transparent; }
.alert-success { background: #E9F5EF; color: var(--success); border-color: #BFE3D0; }
.alert-error { background: #FBEAE7; color: var(--danger); border-color: #F3C7BE; }

/* ---------- Fee table ---------- */
table.fees { width: 100%; border-collapse: collapse; }
table.fees th, table.fees td { padding: 12px 14px; border: 1px solid var(--border); text-align: left; font-size: 14.5px; }
table.fees th { background: var(--ink); color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
table.fees tr:nth-child(even) td { background: #FAFBFC; }
.papers-table td { vertical-align: top; }
.papers-table td:nth-child(2), .papers-table td:nth-child(3) { max-width: 280px; }
.paper-title-link {
  color: var(--teal); font-weight: 500; text-decoration: none;
  display: inline-flex; align-items: baseline; gap: 5px;
}
.paper-title-link::after { content: "→"; color: var(--copper); font-size: 12px; flex: none; }
.paper-title-link:hover { color: var(--copper-dark); text-decoration: underline; }

/* ---------- Individual paper detail page ---------- */
.paper-detail-meta .meta-row { font-size: 15px; }

/* ---------- Steps (submission guidelines) ---------- */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: 4px 0 26px 46px; border-left: 2px solid var(--border); margin-left: 15px; }
.steps li:last-child { border-color: transparent; padding-bottom: 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: -17px; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: var(--copper); font-family: 'IBM Plex Mono', monospace; font-weight: 600;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.steps h4 { margin: 0 0 6px; font-size: 16.5px; }
.steps p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: #FFFFFF; color: var(--text-muted); padding: 48px 0 0; margin-top: 60px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 36px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--ink); font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; font-size: 14px; }
.footer-grid a { color: var(--text-muted); }
.footer-grid a:hover { color: var(--maroon); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 18px 0; font-size: 12.5px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ---------- Homepage banner carousel ---------- */
.banner-carousel {
  position: relative; overflow: hidden; border-radius: var(--radius);
  margin: 14px 0 22px; box-shadow: var(--shadow); background: var(--ink);
}
.banner-carousel--full-width {
  width: 100vw; position: relative; left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
  border-radius: 0; box-shadow: none;
}
.banner-carousel--full-width .banner-slide img { height: 380px; }
@media (max-width: 780px) { .banner-carousel--full-width .banner-slide img { height: 220px; } }
.banner-slide { display: none; position: relative; }
.banner-slide.active { display: block; }
.banner-slide a { display: block; }
.banner-slide img { width: 100%; height: 300px; object-fit: cover; display: block; }
.banner-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(16,27,45,0.88), rgba(16,27,45,0));
  padding: 30px 26px 20px; pointer-events: none;
}
.banner-overlay h3 { color: #fff; margin: 0 0 4px; font-size: 20px; }
.banner-overlay p { color: var(--text-on-ink-muted); margin: 0; font-size: 14px; }
.banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(16,27,45,0.62); color: #fff; border: 1px solid rgba(255,255,255,0.25);
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  font-size: 17px; display: flex; align-items: center; justify-content: center; z-index: 2;
}
.banner-arrow:hover { background: var(--copper); border-color: var(--copper); }
.banner-arrow--prev { left: 14px; }
.banner-arrow--next { right: 14px; }
.banner-dots { position: absolute; bottom: 14px; right: 20px; display: flex; gap: 7px; z-index: 2; }
.banner-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.45);
  cursor: pointer; border: none; padding: 0;
}
.banner-dot.active { background: var(--copper); }

/* ---------- Scrolling announcements ticker ---------- */
.ticker-bar {
  background: var(--light-bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.ticker-bar .container { display: flex; align-items: center; gap: 18px; padding: 11px 24px; }
.ticker-label {
  flex: none; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 12px;
  color: var(--copper); text-transform: uppercase; letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 7px;
}
.ticker-track-wrap { flex: 1; overflow: hidden; height: 20px; position: relative; }
.ticker-track {
  display: flex; gap: 64px; white-space: nowrap; position: absolute;
  animation: ticker-scroll 28s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-track span { color: var(--text); font-size: 13.5px; }
.ticker-track span::before { content: "•"; color: var(--copper); margin-right: 10px; }
.ticker-track span a { color: inherit; text-decoration: none; }
.ticker-track span a:hover { color: var(--copper); text-decoration: underline; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Proceedings cards ---------- */
.proceeding-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.proceeding-card--link { text-decoration: none; color: inherit; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.proceeding-card--link:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(16,27,45,0.14); color: inherit; }
.proceeding-card--link:hover h3 { color: var(--copper-dark); }

/* ---------- Blog ---------- */
.blog-card {
  padding: 0; overflow: hidden; display: flex; flex-direction: column;
  text-decoration: none; color: inherit; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.blog-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(16,27,45,0.14); color: inherit; }
.blog-card:hover h3 { color: var(--copper-dark); }
.blog-card-banner { width: 100%; height: 170px; object-fit: cover; display: block; }
.blog-card-banner--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, var(--ink-3), var(--ink)); color: var(--copper); font-size: 13px;
}
.blog-card-body { padding: 18px; }
.blog-card-date { font-size: 12px; color: var(--text-muted); }
.blog-card-body h3 { font-size: 16.5px; margin: 8px 0 6px; }
.blog-card-body p { font-size: 14px; color: var(--text-muted); margin: 0; }
.blog-card-readmore { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--copper-dark); font-family: 'Space Grotesk', sans-serif; }

.blog-content { font-size: 16.5px; line-height: 1.75; color: var(--text); }
.blog-content h2 { font-size: 23px; margin: 34px 0 14px; font-family: 'Space Grotesk', sans-serif; }
.blog-content h3 { font-size: 19px; margin: 28px 0 12px; font-family: 'Space Grotesk', sans-serif; }
.blog-content p { margin: 0 0 18px; text-align: justify; }
.blog-content ul, .blog-content ol { margin: 0 0 18px; padding-left: 26px; }
.blog-content li { margin-bottom: 6px; }
.blog-content a { color: var(--teal); text-decoration: underline; }
.blog-content blockquote {
  margin: 22px 0; padding: 4px 20px; border-left: 3px solid var(--copper);
  color: var(--text-muted); font-style: italic;
}
.blog-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 10px 0; }
.proceeding-cover { width: 100%; height: 190px; object-fit: cover; display: block; }
.proceeding-cover--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--text-on-ink-muted); font-size: 12.5px;
}
.proceeding-body { padding: 20px; }
.indexing-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.indexing-badge { background: var(--copper-tint); color: var(--copper-dark); }
a.indexing-badge:hover { background: var(--copper); color: #fff; }

/* ---------- Speaker cards ---------- */
.speaker-card {
  text-align: center; padding: 28px 24px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.speaker-card:hover { border-color: var(--copper); box-shadow: 0 10px 26px rgba(16,42,64,0.12); transform: translateY(-3px); }
.speaker-photo-ring {
  width: 118px; height: 118px; border-radius: 50%; margin: 0 auto 16px; padding: 3px;
  background: linear-gradient(135deg, var(--copper), var(--copper-dark));
}
.speaker-photo {
  width: 112px; height: 112px; border-radius: 50%; object-fit: cover;
  display: block; border: 3px solid #fff;
}
.speaker-photo--placeholder {
  width: 112px; height: 112px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, var(--ink-3), var(--ink));
  color: var(--copper); font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 28px;
  border: 3px solid #fff;
}
.speaker-card h3 { font-size: 18px; margin: 0 0 4px; }
.speaker-card .role { color: var(--copper-dark); font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 13.5px; }
.speaker-card .org { color: var(--text-muted); font-size: 13.5px; margin-top: 2px; }
.speaker-topic-box {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; margin-top: 16px; text-align: left; font-size: 14px;
}
.speaker-topic-box strong {
  display: block; font-family: 'Space Grotesk', sans-serif; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--copper-dark); margin-bottom: 4px;
}
.speaker-bio { color: var(--text-muted); font-size: 14px; text-align: left; margin-top: 14px; }
.speaker-card .btn { margin-top: 18px; }

/* ---------- Individual proceeding detail page ---------- */
.proceeding-detail-cover {
  width: 100%; max-width: 320px; border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: var(--shadow); float: right; margin: 0 0 20px 26px;
}
.proceeding-detail-meta { }
.meta-row {
  display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 14.5px;
}
.meta-row:last-child { border-bottom: none; }
.meta-label {
  flex: none; width: 110px; font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted);
}
@media (max-width: 560px) {
  .proceeding-detail-cover { float: none; margin: 0 0 20px; max-width: 100%; }
}

@media (max-width: 640px) {
  .banner-slide img { height: 210px; }
  .banner-overlay h3 { font-size: 17px; }
}
.badge {
  display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  padding: 3px 9px; border-radius: 20px; background: var(--copper-tint); color: var(--copper-dark);
  font-weight: 600;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--copper); color: #fff;
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Cite This Article ---------- */
.cite-box { margin-top: 30px; }
.cite-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.cite-tab {
  padding: 7px 14px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface);
  font-size: 13px; font-weight: 600; cursor: pointer; font-family: 'Space Grotesk', sans-serif;
}
.cite-tab.active { background: var(--copper); color: #fff; border-color: var(--copper); }
.cite-panel { display: none; }
.cite-panel.active { display: block; }
.cite-text {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word;
  font-family: 'IBM Plex Mono', monospace;
}
.cite-copy-btn { margin-top: 10px; }

/* ---------- Portal homepage: full-width banner carousel ---------- */
.hero-banner-carousel {
  position: relative; width: 100%; overflow: hidden;
  height: 420px; background: var(--ink);
}
.hero-banner-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease;
  background-size: cover; background-position: center;
}
.hero-banner-slide.active { opacity: 1; }
.hero-banner-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(15,23,42,.72) 0%, rgba(15,23,42,.15) 55%, rgba(15,23,42,.35) 100%);
}
.hero-banner-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 32px 6vw 40px; color: #fff;
}
.hero-banner-caption h2 { color: #fff; font-size: 30px; margin: 0 0 8px; max-width: 26ch; }
.hero-banner-caption p { color: rgba(255,255,255,.88); font-size: 15.5px; max-width: 50ch; margin: 0; }
.hero-banner-dots { position: absolute; right: 24px; bottom: 20px; z-index: 3; display: flex; gap: 8px; }
.hero-banner-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.4); border: none; cursor: pointer; padding: 0; }
.hero-banner-dot.active { background: #fff; }
@media (max-width: 700px) {
  .hero-banner-carousel { height: 260px; }
  .hero-banner-caption h2 { font-size: 22px; }
  .hero-banner-caption p { font-size: 13.5px; }
}

/* ---------- Portal homepage: continuous auto-scrolling strips ---------- */
/* Used for the keynote speakers and upcoming events sections — an
   infinite horizontal marquee, pauses on hover. The track is
   duplicated in markup (see index.php) so the loop is seamless. */
.scroll-strip { overflow: hidden; position: relative; min-width: 0; }
.scroll-strip::before, .scroll-strip::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none;
}
.scroll-strip::before { left: 0; background: linear-gradient(90deg, var(--paper) 0%, transparent 100%); }
.scroll-strip::after { right: 0; background: linear-gradient(270deg, var(--paper) 0%, transparent 100%); }
.scroll-strip-track { display: flex; gap: 18px; width: max-content; animation: scrollStripAnim 40s linear infinite; }
.scroll-strip:hover .scroll-strip-track { animation-play-state: paused; }
@keyframes scrollStripAnim { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.speaker-strip-card {
  flex: none; width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; text-align: center; box-shadow: var(--shadow);
}
.speaker-strip-card .avatar {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; object-fit: cover; display: block;
  background: var(--ink); color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.speaker-strip-card h4 { font-size: 14.5px; margin: 0 0 3px; }
.speaker-strip-card .role { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.speaker-strip-card .venue { font-size: 11px; color: var(--copper-dark); font-family: 'Space Grotesk', sans-serif; font-weight: 700; margin-top: 8px; text-transform: uppercase; letter-spacing: .03em; }

.event-strip-card {
  flex: none; width: 260px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; border-left: 3px solid var(--copper); box-shadow: var(--shadow);
}
.event-strip-card h4 { font-size: 15px; margin: 0 0 6px; }
.event-strip-card .meta { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
.event-strip-card a { display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--copper-dark); text-decoration: none; }

/* ---------- Portal homepage: recent publications grid ---------- */
.pub-card { display: block; text-decoration: none; color: inherit; padding: 16px 18px; }
.pub-card .kind { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--copper-dark); font-family: 'Space Grotesk', sans-serif; font-weight: 700; }
.pub-card h4 { font-size: 14.5px; margin: 6px 0 4px; line-height: 1.35; }
.pub-card .venue { font-size: 12.5px; color: var(--text-muted); }

/* ---------- Portal homepage: welcome section ---------- */
.welcome-section { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: flex-start; }
.welcome-mark { width: 68px; height: 68px; border-radius: 50%; flex: none; object-fit: cover; }
@media (max-width: 700px) {
  .welcome-section { grid-template-columns: 1fr; text-align: left; }
}

/* Sidebar scrolling notice board — vertical auto-scroll, pauses on hover */
.notice-board { position: relative; height: 220px; overflow: hidden; }
.notice-board::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 24px; background: linear-gradient(to bottom, rgba(255,255,255,0), var(--surface)); pointer-events: none; }
.notice-board-track { animation: notice-board-scroll 20s linear infinite; }
.notice-board:hover .notice-board-track { animation-play-state: paused; }
@keyframes notice-board-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .notice-board-track { animation: none; } }
.notice-board-item { display: flex; gap: 9px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
.notice-board-item:first-child { border-top: 0; padding-top: 0; }
.notice-board-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--copper); margin-top: 6px; flex: none; }

/* "NERDP Main Home" link in the journal header — small blinking indicator */
.nerdp-home-link { font-size: 12.5px; color: var(--text-muted); text-decoration: none; display: inline-flex; align-items: center; }
.nerdp-home-link:hover { color: var(--copper-dark); }
.nerdp-home-blink-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--copper);
  margin-left: 6px; animation: nerdp-home-blink 1.4s ease-in-out infinite;
}
@keyframes nerdp-home-blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .nerdp-home-blink-dot { animation: none; } }
