/* ===== Theme Tokens ===== */
:root {
  --c-brand: #2563eb;
  --c-brand-dark: #1d4ed8;
  --c-muted: #64748b;
  --c-sky: #0ea5e9;
  --c-ink: #1e293b;
  --c-dim: #64748b;
  --c-faint: #94a3b8;
  --c-surface: #ffffff;
  --c-canvas: #f8fafc;
  --c-wash: #f1f5f9;
  --c-rule: #e2e8f0;
  --elev-1: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --elev-2: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --elev-3: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --elev-4: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --grad-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --grad-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --r: 12px;
  --r-lg: 16px;
  --ease: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Base ===== */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--c-ink);
  line-height: 1.6;
  font-size: 16px;
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Buttons (Bulma overrides) ===== */
.button {
  border-radius: var(--r) !important;
  font-weight: 600 !important;
  transition: var(--ease) !important;
  border: 2px solid transparent !important;
  position: relative;
  overflow: hidden;
}

.button.is-dark {
  background: var(--c-ink) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: var(--elev-2);
}

.button.is-dark:hover {
  transform: translateY(-2px);
  box-shadow: var(--elev-3);
  background: var(--c-brand) !important;
}

.button.is-dark:active {
  transform: translateY(0);
  box-shadow: var(--elev-2);
}

.link-block a { margin: 8px 4px; }

/* ===== Hero / Sections ===== */
.hero { position: relative; overflow: hidden; }

.hero.is-light {
  background: var(--c-canvas);
  border-top: 1px solid var(--c-rule);
  border-bottom: 1px solid var(--c-rule);
}

.hero-body { padding: 4rem 1.5rem; }

.teaser .hero-body { padding-top: 2rem; padding-bottom: 4rem; }
.teaser { font-family: 'Inter', sans-serif; }

/* ===== Paper Title & Authors ===== */
.pub-title {
  font-family: 'Inter', sans-serif !important;
  font-weight: 800 !important;
  color: var(--c-ink) !important;
  margin-bottom: 2rem !important;
  line-height: 1.1 !important;
}

.pub-authors {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.pub-authors a {
  color: var(--c-brand) !important;
  text-decoration: none;
  font-weight: 600;
  transition: var(--ease);
  position: relative;
}

.pub-authors a::after {
  content: '';
  position: absolute;
  width: 0; height: 2px;
  bottom: -2px; left: 0;
  background: var(--grad-accent);
  transition: var(--ease);
}

.pub-authors a:hover::after { width: 100%; }
.pub-authors a:hover { color: var(--c-brand-dark) !important; }

.author-block { display: inline-block; margin-right: 0.5rem; }

.pub-links { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }

/* ===== Carousel (Bulma Carousel) ===== */
.slide-gallery {
  overflow: hidden;
  padding: 1rem 0;
}

.slide-gallery .item {
  margin: 1rem;
  overflow: hidden;
  padding: 1.5rem;
  font-size: 0;
  background: var(--c-surface);
  border-radius: var(--r-lg);
  box-shadow: var(--elev-2);
  transition: var(--ease);
  border: 1px solid var(--c-rule);
}

.slide-gallery .item:hover {
  transform: translateY(-4px);
  box-shadow: var(--elev-3);
}

.slide-gallery .item img,
.slide-gallery video {
  margin: 0;
  border-radius: var(--r);
  width: 100%;
  height: auto;
}

.slide-gallery .subtitle {
  font-size: 1rem !important;
  color: var(--c-dim);
  margin-top: 1rem;
  font-weight: 500;
}

/* pagination dots */
.slider-pagination .slider-page {
  background: var(--c-brand);
  border-radius: 50%;
  transition: var(--ease);
}
.slider-pagination .slider-page.is-active {
  background: var(--c-brand-dark);
  transform: scale(1.2);
}

.eql-cntrb { font-size: 0.875rem; color: var(--c-faint); font-style: italic; }

/* ===== Section Titles ===== */
.title.is-3 {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  color: var(--c-ink);
  margin-bottom: 2rem !important;
  position: relative;
  padding-bottom: 1rem;
}

.title.is-3::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: var(--grad-accent);
  border-radius: 2px;
}

/* ===== Body Text ===== */
.content.has-text-justified {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--c-dim);
}
.content.has-text-justified p { margin-bottom: 1.5rem; }

/* ===== Footer ===== */
.footer {
  background: var(--c-canvas);
  border-top: 1px solid var(--c-rule);
  padding: 3rem 1.5rem;
}
.footer .content { color: var(--c-dim); line-height: 1.7; }
.footer a { color: var(--c-brand); text-decoration: none; transition: var(--ease); }
.footer a:hover { color: var(--c-brand-dark); text-decoration: underline; }

/* ===== Site Stats (Footer) ===== */
.site-stats {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.75rem;
  padding: 0.5rem 1.5rem;
  background: var(--c-wash);
  border: 1px solid var(--c-rule);
  border-radius: 2rem;
  font-size: 0.82rem;
  color: var(--c-faint);
  transition: var(--ease);
}
.site-stats:hover {
  border-color: rgba(37,99,235,0.2);
  box-shadow: 0 2px 8px rgba(37,99,235,0.06);
}

.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.stat-item i {
  font-size: 0.78rem;
  color: var(--c-brand);
  opacity: 0.7;
}
.stat-label {
  font-weight: 500;
  color: var(--c-faint);
  letter-spacing: 0.02em;
}
.stat-value {
  font-weight: 700;
  color: var(--c-dim);
  font-variant-numeric: tabular-nums;
  min-width: 1.5em;
  text-align: center;
}

.stat-divider {
  width: 1px;
  height: 14px;
  background: var(--c-rule);
}

/* ===== Code / BibTeX ===== */
pre {
  background: var(--c-wash) !important;
  border: 1px solid var(--c-rule) !important;
  border-radius: var(--r) !important;
  padding: 1.5rem !important;
  font-size: 0.9rem !important;
  overflow-x: auto;
  box-shadow: var(--elev-1);
}
code {
  background: var(--c-wash) !important;
  color: var(--c-ink) !important;
  font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace !important;
}

.bib-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.btn-copy-bib {
  background: var(--c-brand);
  color: #fff;
  border: none;
  border-radius: var(--r);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-copy-bib:hover { background: var(--c-brand-dark); transform: translateY(-2px); box-shadow: var(--elev-2); }
.btn-copy-bib.copied { background: #10b981; }
.btn-copy-bib.copied .copy-text::after { content: "ied!"; }

.bib-card { margin-bottom: 2rem; }
.bib-card-label { font-size: 1rem; font-weight: 600; color: var(--c-ink); margin: 0; }

/* ===== Back to Top ===== */
.btn-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 50px; height: 50px;
  background: var(--c-brand);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: var(--ease);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--elev-3);
}
.btn-top:hover { background: var(--c-brand-dark); transform: translateY(-3px); box-shadow: var(--elev-4); }
.btn-top.visible { opacity: 1; visibility: visible; }

/* ===== Top Bar ===== */
.topbar {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: var(--ease);
}
.topbar.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.35); }

.topbar-brand {
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  color: #fff !important;
  gap: 0.5rem;
}

.topbar-logo {
  height: 24px;
  width: auto;
}

.topbar .navbar-end {
  display: flex;
  align-items: center;
}

.topbar-link {
  color: rgba(255,255,255,0.7) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  transition: var(--ease) !important;
  letter-spacing: 0.02em;
}
.topbar-link:hover {
  color: #fff !important;
}

/* ===== Site Hero (Dark Banner) ===== */
.site-hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #141414 40%, #1a1a1a 70%, #0e0e0e 100%);
  padding-top: 3.25rem;
  position: relative;
  overflow: hidden;
}

.site-hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -15%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 65%);
  pointer-events: none;
}

.site-hero::after {
  content: '';
  position: absolute;
  bottom: -25%; left: -8%;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 65%);
  pointer-events: none;
}

.site-hero-inner {
  position: relative;
  z-index: 1;
  padding: 3rem 1.5rem 2.5rem;
}

.hero-row {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-logo-col {
  flex-shrink: 0;
}

.hero-logo {
  height: 110px;
  width: auto;
  filter: drop-shadow(0 2px 16px rgba(255,255,255,0.1));
}

.hero-text-col {
  flex: 1;
  text-align: left;
}

.hero-section-label {
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.95);
  margin-bottom: 0.8rem;
  text-shadow:
    0 0 10px rgba(255,255,255,0.3),
    0 0 30px rgba(255,255,255,0.15),
    0 4px 12px rgba(0,0,0,0.8);
}

.hero-tagline {
  color: rgba(230,230,230,0.92);
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0 0 1rem;
  text-shadow:
    0 0 10px rgba(255,255,255,0.3),
    0 0 25px rgba(255,255,255,0.12),
    0 3px 10px rgba(0,0,0,0.7);
}

.hero-pillars {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.hero-pillar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  color: rgba(240,240,240,0.85);
  font-size: 0.82rem;
  font-weight: 500;
  transition: var(--ease);
  text-shadow:
    0 0 6px rgba(255,255,255,0.15),
    0 2px 8px rgba(0,0,0,0.6);
}

.hero-pillar:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}

.hero-pillar i {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  filter: none;
}

.hero-mission {
  color: rgba(180,180,180,0.55);
  font-size: 0.85rem;
  font-style: italic;
  margin: 0;
  text-shadow:
    0 0 6px rgba(255,255,255,0.12),
    0 2px 8px rgba(0,0,0,0.6);
}

/* ===== Hero Email Button ===== */
.hero-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.75rem 0 1rem;
  padding: 0.65rem 1.5rem;
  background: linear-gradient(135deg, rgba(37,99,235,0.85) 0%, rgba(14,165,233,0.85) 100%);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2rem;
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: var(--ease);
  box-shadow:
    0 0 20px rgba(37,99,235,0.3),
    0 4px 15px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

.hero-email-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.hero-email-btn:hover::before {
  left: 100%;
}

.hero-email-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 30px rgba(37,99,235,0.5),
    0 0 60px rgba(14,165,233,0.2),
    0 8px 25px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.35);
  color: #fff !important;
  text-decoration: none;
}

.hero-email-btn i {
  font-size: 1.05rem;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.4));
  animation: emailPulse 2s ease-in-out infinite;
}

@keyframes emailPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ===== Publications Section ===== */
.pub-section {
  background: var(--c-canvas);
  padding: 3rem 1.5rem 3.5rem;
  border-bottom: 1px solid var(--c-rule);
}

.pub-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-ink);
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  display: block;
  padding-bottom: 0.75rem;
}

.pub-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--c-brand);
  border-radius: 2px;
}

/* ===== Paper Picker (Tab Bar) ===== */
.picker-bar {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.picker-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem 1.75rem;
  background: var(--c-surface);
  border: 2px solid var(--c-rule);
  border-radius: var(--r-lg);
  box-shadow: var(--elev-2);
  cursor: pointer;
  transition: var(--ease);
  min-width: 220px;
  max-width: 320px;
  text-align: left;
  font-family: 'Inter', sans-serif;
  position: relative;
  overflow: hidden;
}
.picker-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--grad-hero);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.picker-card:hover { transform: translateY(-3px); box-shadow: var(--elev-3); border-color: var(--c-brand); }
.picker-card:hover::after { transform: scaleX(1); }

.picker-card.is-active {
  border-color: var(--c-brand);
  box-shadow: var(--elev-3);
  background: linear-gradient(135deg, rgba(37,99,235,0.04), rgba(14,165,233,0.04));
}
.picker-card.is-active::after { transform: scaleX(1); }

.picker-num { font-size: 0.75rem; font-weight: 700; color: var(--c-brand); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.4rem; }
.picker-label { font-size: 1rem; font-weight: 600; color: var(--c-ink); margin-bottom: 0.3rem; line-height: 1.3; }
.picker-venue { font-size: 0.8rem; color: var(--c-faint); font-style: italic; }

/* ===== Paper Cards (Homepage) ===== */
.paper-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1.5rem;
}

.paper-card {
  display: flex;
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-lg);
  box-shadow: var(--elev-2);
  overflow: hidden;
  transition: var(--ease);
  text-decoration: none;
  color: inherit;
  position: relative;
}

.paper-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--grad-hero);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.paper-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--elev-4);
  border-color: var(--c-brand);
}
.paper-card:hover::after { transform: scaleX(1); }

.paper-card-img {
  flex-shrink: 0;
  width: 340px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #f0f0f0;
}
.paper-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.paper-card:hover .paper-card-img img {
  transform: scale(1.03);
}

.paper-card-body {
  flex: 1;
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.paper-card-venue {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c-brand);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  background: rgba(37,99,235,0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  align-self: flex-start;
}

.paper-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.35;
  margin: 0 0 0.5rem;
}

.paper-card-authors {
  font-size: 0.85rem;
  color: var(--c-faint);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.paper-card-desc {
  font-size: 0.92rem;
  color: var(--c-dim);
  line-height: 1.65;
  margin: 0;
}

/* ===== Paper Panel ===== */
.paper-view { animation: viewEnter 0.4s ease-out; scroll-margin-top: 4rem; }
.paper-view:not(.is-active) { display: none; }

@keyframes viewEnter {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.paper-head { padding: 4rem 1.5rem 2rem; position: relative; }
.paper-head .container { text-align: center; }

.paper-badge {
  display: inline-block;
  background: var(--grad-hero);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* ===== Animation ===== */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero, .section { animation: riseIn 0.6s ease-out; }

/* ===== Focus ===== */
.button:focus, a:focus { outline: 2px solid var(--c-brand); outline-offset: 2px; }

/* ===== Image Comparison Slider ===== */
.method-switch {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.method-btn {
  padding: 6px 18px;
  border: 2px solid var(--c-sky);
  border-radius: 20px;
  background: transparent;
  color: var(--c-ink);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.method-btn:hover { background: rgba(14,165,233,0.1); }
.method-btn.is-active { background: var(--c-sky); color: #fff; }

.cmp-box {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: col-resize;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  user-select: none;
  -webkit-user-select: none;
}
.cmp-box img { display: block; width: 100%; height: auto; pointer-events: none; }
.cmp-under { width: 100%; }
.cmp-over { position: absolute; top: 0; left: 0; height: 100%; width: 50%; overflow: hidden; }
.cmp-over img { display: block; height: 100%; width: auto; max-width: none; object-fit: cover; }

.cmp-handle {
  position: absolute;
  top: 0; left: 50%;
  width: 3px; height: 100%;
  background: #fff;
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
}
.cmp-handle::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.cmp-handle::after {
  content: '◀ ▶';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  z-index: 11;
  font-size: 10px;
  color: #333;
  white-space: nowrap;
  letter-spacing: 2px;
}

.cmp-tag {
  position: absolute;
  bottom: 10px;
  padding: 4px 12px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  z-index: 5;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
.cmp-tag-left { left: 10px; }
.cmp-tag-right { right: 10px; }

/* ===== Responsive ===== */
@media screen and (max-width: 768px) {
  .hero-body { padding: 2rem 1rem; }
  .pub-title { font-size: 2.5rem !important; line-height: 1.2 !important; margin-bottom: 1.5rem !important; }
  .pub-authors { font-size: 1rem !important; }
  .button { margin: 0.25rem !important; font-size: 0.875rem !important; padding: 0.75rem 1rem !important; }
  .slide-gallery .item { margin: 0.5rem; padding: 1rem; }
  .teaser .hero-body { padding: 1rem; }
  .content.has-text-justified { font-size: 1rem; }

  .site-hero-inner { padding: 2.5rem 1rem 2rem; }
  .hero-row { flex-direction: column; gap: 1.5rem; text-align: center; }
  .hero-text-col { text-align: center; }
  .hero-logo { height: 80px; }
  .hero-pillars { justify-content: center; gap: 0.5rem; }
  .hero-pillar { font-size: 0.8rem; padding: 0.4rem 0.8rem; }
  .pub-section { padding: 2rem 1rem 1.5rem; }

  .site-stats {
    gap: 0.75rem;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
  }
  .stat-label { display: none; }

  .picker-bar { flex-direction: column; align-items: center; }
  .picker-card { min-width: 0; width: 100%; max-width: 100%; }
  .paper-head { padding: 3rem 1rem 1.5rem; }

  .paper-card { flex-direction: column; }
  .paper-card-img { width: 100%; height: 200px; }
  .paper-card-body { padding: 1.25rem 1rem; }
  .paper-card-title { font-size: 1.05rem; }
}

@media screen and (max-width: 480px) {
  .pub-title { font-size: 2rem !important; }
  .hero-body { padding: 1.5rem 0.75rem; }
  .link-block { display: block; margin-bottom: 0.5rem; }
  .button { width: 100%; justify-content: center; }
  .site-hero-inner { padding: 2rem 0.75rem 1.5rem; }
  .hero-logo { height: 64px; }
  .hero-tagline { font-size: 0.9rem; }
  .hero-pillars { flex-direction: column; align-items: center; gap: 0.4rem; }
  .pub-section { padding: 1.5rem 0.75rem 1rem; }
  .picker-card { padding: 0.85rem 1rem; }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .hero-body { padding: 3rem 2rem; }
}

@media screen and (max-width: 1023px) {
  .topbar .navbar-end { display: none; }
}

/* ===== Print ===== */
@media print {
  .topbar, .btn-top { display: none !important; }
  .site-hero { background: #111 !important; }
  .hero, .section { animation: none; }
  .button { background: transparent !important; color: var(--c-ink) !important; box-shadow: none !important; }
  .paper-view { page-break-inside: avoid; }
}
