:root {
  /* Background */
  --bg:           #0a1428;
  --bg-soft:      #0c1a32;
  --bg-elev:      #122044;
  --bg-elev-2:    #182b56;
  --bg-input:     #0a1832;
  --bg-overlay:   rgba(10, 20, 40, 0.92);

  /* Borders */
  --line:         #1f3460;
  --line-bright:  #355088;
  --line-strong:  #4a6da8;

  /* Brand gold */
  --gold:         #d4a73a;
  --gold-bright:  #f0c860;
  --gold-deep:    #9c7a1f;
  --gold-tint:    rgba(240, 200, 96, 0.12);

  /* Burgundy */
  --burgundy:       #a83242;
  --burgundy-deep:  #821f2e;

  /* Text */
  --text:         #f5edd6;
  --text-soft:    #d4ccae;
  --text-muted:   #8a8270;
  --text-dim:     #6c6453;

  /* Status colors */
  --success:      #6cd391;
  --success-bg:   rgba(108, 211, 145, 0.12);
  --success-fg:   #4ec976;
  --danger:       #ef6b6b;
  --danger-bg:    rgba(239, 107, 107, 0.10);
  --danger-fg:    #ef6b6b;
  --warning-bg:   rgba(240, 200, 96, 0.14);
  --warning-fg:   #f0c860;
  --info-bg:      rgba(95, 180, 212, 0.12);
  --info-fg:      #5fb4d4;

  /* Shadows */
  --shadow-sm:    0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md:    0 6px 18px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-lg:    0 22px 44px -14px rgba(0, 0, 0, 0.7), 0 8px 18px -8px rgba(0, 0, 0, 0.5);
  --shadow-3d:    0 4px 0 #050a14, 0 8px 18px rgba(0, 0, 0, 0.5);
  --shadow-3d-pressed: 0 1px 0 #050a14, 0 2px 6px rgba(0, 0, 0, 0.4);

  /* Geometry */
  --radius-sm:    4px;
  --radius:       6px;
  --radius-lg:    10px;
  --radius-xl:    14px;

  /* Easing */
  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Type */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Helvetica Neue", sans-serif;
  --mono:  "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(212, 167, 58, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 167, 58, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(212, 167, 58, 0.025) 2px, transparent 2px),
    linear-gradient(90deg, rgba(212, 167, 58, 0.025) 2px, transparent 2px),
    radial-gradient(ellipse at top, rgba(95, 180, 212, 0.06), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(212, 167, 58, 0.05), transparent 70%);
  background-size: 22px 22px, 22px 22px, 88px 88px, 88px 88px, 100% 100%, 100% 100%;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(240, 200, 96, 0.35); color: #fff; }

::-webkit-scrollbar      { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); border-left: 1px solid var(--line); }
::-webkit-scrollbar-thumb { background: var(--line-bright); border: 2px solid var(--bg); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--line-strong); }

a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(240, 200, 96, 0.35);
  transition: color 0.18s var(--ease-out), text-decoration-color 0.18s var(--ease-out);
}
a:hover { color: var(--gold); text-decoration-color: currentColor; }

p { margin: 0 0 1em; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--text);
  letter-spacing: 0.005em;
  line-height: 1.2;
  margin: 0 0 0.6em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}
h1 { font-size: 2.2rem; font-weight: 700; }
h2 { font-size: 1.55rem; font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

.container         { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.container-narrow  { max-width: 760px;  margin: 0 auto; padding: 0 24px; }

/* -------------- ANIMATIONS -------------- */

@keyframes fade-up        { 0% { opacity: 0; transform: translateY(14px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes fade-in        { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes slide-in-down  { 0% { opacity: 0; transform: translateY(-8px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes float-y        { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes shimmer        { 0% { background-position: 200% center; } 100% { background-position: -200% center; } }
@keyframes pulse-gold     {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240, 200, 96, 0.45), 0 0 0 0 rgba(240, 200, 96, 0); }
  50%      { box-shadow: 0 0 0 4px rgba(240, 200, 96, 0.18), 0 0 24px rgba(240, 200, 96, 0.25); }
}
@keyframes scan-line {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

main          { animation: fade-up 0.45s var(--ease-out) both; }
.page-hero,
.hero         { animation: fade-up 0.55s var(--ease-out) both; }
.flash        { animation: slide-in-down 0.35s var(--ease-out) both; }

.stagger > * {
  animation: fade-up 0.55s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------------- SHARED PANEL LOOK -------------- */

.panel,
.feature,
.article-card,
.article-detail,
.form-card,
.empty-state,
.toolbar,
.value,
.featured-article,
.two-col aside.info-card,
.data-table {
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg-elev-2) 100%);
  border: 2px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 4px 14px rgba(0, 0, 0, 0.35);
}

/* -------------- TOP BAR -------------- */

.topbar {
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 12.5px;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.04em;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 34px;
}
.topbar a { color: var(--text-soft); text-decoration: none; }
.topbar a:hover { color: var(--gold-bright); }
.topbar-right { display: inline-flex; align-items: center; gap: 6px; }

/* -------------- LANGUAGE SWITCHER -------------- */

.nav-lang-switch,
.nav-lang-divider { display: none; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 1px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 24, 50, 0.6);
  margin-left: 6px;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  box-sizing: border-box;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 0;
  border-radius: 999px;
  color: var(--text-muted);
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: background 0.18s var(--ease-out), color 0.18s var(--ease-out);
}
.lang-btn:hover { color: var(--gold-bright); background: rgba(240, 200, 96, 0.06); }
.lang-btn.lang-active {
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: var(--bg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 1px 2px rgba(0,0,0,0.4);
  cursor: default;
}

/* -------------- HEADER -------------- */

.site-header {
  background: linear-gradient(180deg, rgba(10, 20, 40, 0.96) 0%, rgba(10, 20, 40, 0.86) 100%);
  border-bottom: 2px solid var(--line);
  box-shadow: 0 0 0 1px var(--gold-deep), 0 1px 0 var(--gold), 0 8px 24px rgba(0,0,0,0.5);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: nowrap;
}
.brand { min-width: 0; flex: none; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s var(--ease-out);
}
.brand:hover { transform: translateX(-1px); }
.brand-logo {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  object-fit: contain;
  transition: transform 0.25s var(--ease-out), filter 0.4s var(--ease-out);
  filter: drop-shadow(0 4px 10px rgba(212, 167, 58, 0.30));
}
.brand:hover .brand-logo {
  transform: rotate(-6deg) scale(1.06);
  filter: drop-shadow(0 0 18px rgba(240, 200, 96, 0.55));
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: linear-gradient(90deg, var(--gold-bright), #fff5d4, var(--gold-bright), var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
  text-shadow: none;
}
.brand-tag {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-top: 3px;
  font-weight: 700;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.site-header nav > * { flex: none; }
.site-header nav .inline { margin-left: 10px; }
.site-header nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.18s var(--ease-out), color 0.18s var(--ease-out);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
.site-header nav a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px;
  bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-out);
  border-radius: 2px;
}
.site-header nav a:hover { background: rgba(240, 200, 96, 0.06); color: var(--gold-bright); }
.site-header nav a:hover::after { transform: scaleX(1); }
.site-header nav a.active,
.site-header nav a[aria-current="page"] {
  color: var(--gold-bright);
}
.site-header nav a.active::after,
.site-header nav a[aria-current="page"]::after {
  transform: scaleX(1);
}
.site-header nav a.cta {
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  color: var(--bg);
  font-weight: 700;
  margin-left: 6px;
  border: 1px solid var(--gold-deep);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -1px 0 rgba(0,0,0,0.25),
    0 4px 12px rgba(212, 167, 58, 0.30);
  text-shadow: none;
}
.site-header nav a.cta:hover { transform: translateY(-1px); color: var(--bg); }
.site-header nav a.cta::after { display: none; }

.nav-divider {
  display: inline-block;
  width: 1px;
  height: 22px;
  margin: 0 6px;
  background: linear-gradient(180deg, transparent 0%, var(--line-bright) 50%, transparent 100%);
  flex: none;
}

.account-chip {
  display: inline-flex !important;
  align-items: center;
  gap: 8px !important;
  padding: 4px 12px 4px 4px !important;
  border-radius: 999px !important;
  background: rgba(240, 200, 96, 0.06);
  border: 1px solid rgba(240, 200, 96, 0.20);
  color: var(--text) !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  transition:
    background 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    transform 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.account-chip::after { display: none !important; }
.account-chip:hover {
  background: rgba(240, 200, 96, 0.12) !important;
  border-color: rgba(240, 200, 96, 0.40);
  color: var(--gold-bright) !important;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 4px 12px rgba(212, 167, 58, 0.20);
}
.account-chip .avatar {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 0 0 2px rgba(10, 20, 40, 0.85),
    0 0 0 3px rgba(240, 200, 96, 0.35);
}
.account-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-badge {
  color: var(--gold-bright);
  font-size: 12px;
  line-height: 1;
  margin-left: -2px;
  text-shadow: 0 0 8px rgba(240, 200, 96, 0.6);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line-bright);
  color: var(--text-soft);
  cursor: pointer;
  font: inherit;
  transition:
    background 0.18s var(--ease-out),
    border-color 0.18s var(--ease-out),
    color 0.18s var(--ease-out),
    transform 0.18s var(--ease-out);
}
.icon-btn:hover { transform: translateY(-1px); }
.icon-btn .icon-btn-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.icon-btn-danger:hover {
  background: rgba(239, 107, 107, 0.14);
  border-color: var(--danger);
  color: var(--danger);
  box-shadow: 0 0 0 4px rgba(239, 107, 107, 0.08);
}
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
  border: 1px solid var(--line-bright);
  color: var(--text-soft);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.18s var(--ease-out), border-color 0.18s var(--ease-out), color 0.18s var(--ease-out);
}
.link-button:hover { background: rgba(239, 107, 107, 0.12); border-color: var(--danger); color: var(--danger); }

/* -------------- MAIN -------------- */

main.container, main.container-narrow {
  padding-top: 36px;
  padding-bottom: 64px;
}

.muted    { color: var(--text-muted); }
.small    { font-size: 13px; }
.center   { text-align: center; }
.lead     { font-size: 1.06rem; color: var(--text-soft); }

.gold-shimmer {
  background: linear-gradient(90deg, var(--gold), var(--gold-bright), #fff5d4, var(--gold-bright), var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 5s linear infinite;
  text-shadow: none;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold);
}

/* -------------- HERO (HOMEPAGE) -------------- */

.hero {
  position: relative;
  margin-bottom: 40px;
  padding: 76px 48px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse at top right, rgba(212, 167, 58, 0.18), transparent 60%),
    radial-gradient(ellipse at bottom left,  rgba(95, 180, 212, 0.10), transparent 50%),
    linear-gradient(160deg, #0c1a32 0%, #050d1c 100%);
  border: 2px solid var(--line);
  color: var(--text);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 48px -16px rgba(0, 0, 0, 0.7),
    0 8px 18px -4px rgba(0, 0, 0, 0.4);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 215, 130, 0.025) 0 1px, transparent 1px 14px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  right: -80px; top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 200, 96, 0.25) 0%, transparent 65%);
  pointer-events: none;
  animation: float-y 8s ease-in-out infinite;
}
.hero > * { position: relative; }
.hero .eyebrow { margin-bottom: 18px; }
.hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  max-width: none;
  line-height: 1.05;
  white-space: nowrap;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.65);
}
.hero-subtitle {
  font-size: 0.6em;
}
.hero p,
.hero-text p {
  color: var(--text-soft);
  max-width: none;
  font-size: 1.1rem;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}
.hero-text p + p {
  margin-top: 0.85em;
}
.hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.contributors-section {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid rgba(240, 200, 96, 0.16);
}
.contributors-section > .stat-label {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  display: block;
  margin-bottom: 14px;
}
.contributors-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px 12px;
}
.contributors-list li a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(240, 200, 96, 0.08);
  border: 1px solid rgba(240, 200, 96, 0.15);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.contributors-list li a:hover {
  background: rgba(240, 200, 96, 0.16);
  border-color: rgba(240, 200, 96, 0.35);
  color: #fff;
}
.contributors-list li a .icon-sm {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #0a66c2;
}

/* -------------- FEATURES STRIP -------------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 28px 0 40px;
}
.feature {
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--gold);
  padding: 22px 24px;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 24px -8px rgba(0, 0, 0, 0.65);
  border-top-color: var(--gold-bright);
}
.feature h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--gold-bright); }
.feature p  { margin: 0; color: var(--text-soft); font-size: 14px; }

/* -------------- SECTION HEAD -------------- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin: 36px 0 24px;
}
.section-head h2, .section-head h1 { margin: 0; }
.section-head .meta { color: var(--text-muted); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }

/* -------------- TOOLBAR -------------- */

.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  margin-bottom: 24px;
}
.search { flex: 1 1 280px; position: relative; display: flex; align-items: center; }
.search svg {
  position: absolute;
  left: 12px;
  width: 16px; height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}
.search input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-input);
  font: inherit;
  color: var(--text);
  transition: background 0.18s var(--ease-out), border-color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}
.search input::placeholder { color: var(--text-muted); }
.search input:focus {
  outline: none;
  background: var(--bg);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 200, 96, 0.16);
}
.toolbar .filter-group {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--bg-input);
}
.toolbar .filter-group button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 0;
  background: transparent;
  padding: 6px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.18s var(--ease-out), color 0.18s var(--ease-out);
}
.toolbar .filter-group button.active {
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: var(--bg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 1px 2px rgba(0,0,0,0.4);
}
.toolbar .filter-group button:not(.active):hover { color: var(--gold-bright); }
.toolbar .count { color: var(--text-muted); font-size: 12.5px; margin-left: auto; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }

.empty-state {
  border: 2px dashed var(--line-bright) !important;
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  margin: 16px 0;
  background: linear-gradient(180deg, rgba(18, 32, 68, 0.5) 0%, rgba(24, 43, 86, 0.5) 100%) !important;
}
.empty-state strong { display: block; color: var(--gold-bright); font-family: var(--serif); font-size: 1.15rem; margin-bottom: 6px; }

/* -------------- BUTTONS (3D MEDALLION-STYLE) -------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line-bright);
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg-soft) 100%);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 0.12s var(--ease-out), box-shadow 0.18s var(--ease-out), background 0.18s var(--ease-out), border-color 0.18s var(--ease-out), color 0.18s var(--ease-out);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 2px 0 #050a14,
    0 4px 10px rgba(0,0,0,0.4);
  text-shadow: 0 1px 0 rgba(0,0,0,0.5);
}
.btn:hover { transform: translateY(-1px); border-color: var(--gold); color: var(--gold-bright); text-decoration: none; box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 3px 0 #050a14, 0 6px 14px rgba(0,0,0,0.5); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(0,0,0,0.2), 0 1px 0 #050a14, 0 2px 6px rgba(0,0,0,0.4); }
.btn .arrow { transition: transform 0.2s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  border: 1px solid var(--gold-deep);
  color: var(--bg);
  text-shadow: 0 1px 0 rgba(255,255,255,0.3);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -1px 0 rgba(0,0,0,0.20),
    0 3px 0 var(--gold-deep),
    0 6px 16px rgba(212, 167, 58, 0.30);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #fff5d4 0%, var(--gold-bright) 50%, var(--gold) 100%);
  border-color: var(--gold);
  color: var(--bg);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -1px 0 rgba(0,0,0,0.20),
    0 4px 0 var(--gold-deep),
    0 10px 24px rgba(240, 200, 96, 0.45);
}
.btn-primary:active {
  box-shadow:
    inset 0 1px 0 rgba(0,0,0,0.10),
    0 1px 0 var(--gold-deep),
    0 2px 6px rgba(0,0,0,0.4);
}

.btn-success {
  background: linear-gradient(180deg, #7ee3a3 0%, #4ec976 50%, #2c8a4e 100%);
  border: 1px solid #1e6e3a;
  color: #062314;
  text-shadow: 0 1px 0 rgba(255,255,255,0.3);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.40),
    0 3px 0 #1e6e3a,
    0 6px 14px rgba(78, 201, 118, 0.30);
}
.btn-success:hover { transform: translateY(-1px); color: #062314; }

.btn-danger {
  background: linear-gradient(180deg, #f88c8c 0%, #ef6b6b 50%, #b53b3b 100%);
  border: 1px solid #8a2929;
  color: #2c0a0a;
  text-shadow: 0 1px 0 rgba(255,255,255,0.3);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.40),
    0 3px 0 #8a2929,
    0 6px 14px rgba(239, 107, 107, 0.25);
}
.btn-danger:hover { transform: translateY(-1px); color: #2c0a0a; }

.btn-danger-outline {
  background: transparent;
  border: 1px solid rgba(239, 107, 107, 0.4);
  color: #ef6b6b;
  box-shadow: none;
  text-shadow: none;
}
.btn-danger-outline:hover {
  background: rgba(239, 107, 107, 0.12);
  border-color: #ef6b6b;
  color: #f88c8c;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(245, 237, 214, 0.25);
  color: var(--text);
  box-shadow: none;
  text-shadow: 0 1px 0 rgba(0,0,0,0.5);
}
.btn-ghost:hover { background: rgba(240, 200, 96, 0.08); border-color: var(--gold); color: var(--gold-bright); }

.btn-gold { /* alias */ }
.btn-gold { background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 50%, var(--gold-deep) 100%); border: 1px solid var(--gold-deep); color: var(--bg); text-shadow: 0 1px 0 rgba(255,255,255,0.3); box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 3px 0 var(--gold-deep), 0 6px 16px rgba(212,167,58,0.30); }
.btn-gold:hover { color: var(--bg); }

/* -------------- FLASH -------------- */

.flash {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 22px;
  border: 1px solid;
  border-left-width: 4px;
  font-weight: 600;
}
.flash ul { margin: 0; padding-left: 20px; }
.flash-success { background: var(--success-bg); color: var(--success-fg); border-color: var(--success-fg); }
.flash-error   { background: var(--danger-bg);  color: var(--danger-fg);  border-color: var(--danger-fg); }
.flash-info    { background: var(--info-bg);    color: var(--info-fg);    border-color: var(--info-fg); }

/* -------------- FORMS -------------- */

.form-card {
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 520px;
  margin: 0 auto;
  transition: box-shadow 0.25s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.form-card:hover { box-shadow: var(--shadow-lg); }
.form-card.wide { max-width: 760px; }
.form-card h1 { margin-top: 0; }
.form-card .lead { margin-top: -4px; }

.stacked-form { display: flex; flex-direction: column; gap: 18px; }
.stacked-form[hidden] { display: none; }
.stacked-form label { display: flex; flex-direction: column; gap: 6px; }
.stacked-form label > span {
  font-weight: 700;
  color: var(--gold-bright);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.required { color: #fff; font-weight: 700; }
.stacked-form input[type="text"],
.stacked-form input[type="email"],
.stacked-form input[type="password"],
.stacked-form input[type="file"],
.stacked-form textarea {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-bright);
  background: var(--bg-input);
  font: inherit;
  width: 100%;
  color: var(--text);
  transition: border-color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), background 0.18s var(--ease-out);
}
.stacked-form input::placeholder, .stacked-form textarea::placeholder { color: var(--text-muted); }
.stacked-form textarea { resize: vertical; min-height: 130px; font-family: var(--sans); }
.stacked-form input:focus,
.stacked-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(240, 200, 96, 0.16);
  background: var(--bg);
}
.stacked-form small { color: var(--text-muted); font-size: 12.5px; }

.stacked-form label.checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  background: var(--gold-tint);
  border: 1px solid var(--line-bright);
  border-left: 4px solid var(--gold);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--text);
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.stacked-form label.checkbox:hover { background: rgba(240, 200, 96, 0.18); border-left-color: var(--gold-bright); }
.stacked-form label.checkbox input { margin-top: 4px; flex: none; accent-color: var(--gold); }
.stacked-form label.checkbox span { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text-soft); }

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 540px) {
  .form-row-2 { grid-template-columns: 1fr; }
}

.stacked-form select {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-bright);
  background: var(--bg-input);
  font: inherit;
  width: 100%;
  color: var(--text);
  transition: border-color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}
.stacked-form select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(240, 200, 96, 0.16);
  background: var(--bg);
}

/* Auth forms: center the submit button + its text. */
.form-card:not(.wide) .stacked-form > button[type="submit"] {
  align-self: center;
  justify-content: center;
  min-width: 240px;
  margin-top: 4px;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--bg-input) inset;
  caret-color: var(--text);
}

/* -------------- IMAGE UPLOAD -------------- */

.images-fieldset {
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin: 0;
}
.images-fieldset legend {
  font-weight: 700;
  color: var(--gold-bright);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 6px;
}
.images-help {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 14px;
}

#image-slots {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#image-slots:not(:empty) {
  margin-bottom: 16px;
}

.image-slot {
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.image-slot label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.image-slot label > span {
  font-weight: 700;
  color: var(--gold-bright);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.image-slot input[type="text"],
.image-slot input[type="file"] {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-bright);
  background: var(--bg-input);
  font: inherit;
  width: 100%;
  color: var(--text);
  transition: border-color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}
.image-slot input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(240, 200, 96, 0.16);
  background: var(--bg);
}

.image-slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.image-slot-num {
  font-weight: 700;
  font-size: 13px;
  color: var(--gold);
}
.image-slot-remove {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.image-slot-remove:hover {
  color: var(--danger, #e55);
  background: rgba(230, 80, 80, 0.1);
}

.image-slot-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 540px) {
  .image-slot-row { grid-template-columns: 1fr; }
}

.btn-outline {
  background: transparent;
  border: 1px dashed var(--line-bright);
  color: var(--gold-bright);
  cursor: pointer;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.btn-outline:hover {
  border-color: var(--gold);
  background: var(--gold-tint);
}
.btn-outline .icon {
  width: 18px;
  height: 18px;
}

/* -------------- IMAGE GALLERY -------------- */

.article-images {
  margin-top: 32px;
}
.article-images h2 {
  margin-bottom: 16px;
}
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line-bright);
  background: var(--bg-card);
  transition: box-shadow 0.2s var(--ease-out);
}
.gallery-item:hover {
  box-shadow: var(--shadow-lg);
}
.gallery-item a {
  display: block;
  line-height: 0;
}
.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.25s var(--ease-out);
}
.gallery-item:hover img {
  transform: scale(1.03);
}
.gallery-item figcaption {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.img-caption {
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
}
.img-meta {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* -------------- AVATAR -------------- */

.avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  background: var(--bg-elev-2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 0 0 2px var(--bg-elev),
    0 0 0 3px var(--line-bright),
    0 4px 8px rgba(0, 0, 0, 0.4);
  user-select: none;
  text-shadow: 0 1px 0 rgba(0,0,0,0.4);
}
.avatar-sm { width: 28px; height: 28px; font-size: 12px; }
.avatar-lg { width: 60px; height: 60px; font-size: 24px; }
.avatar-c0 { background: linear-gradient(160deg, #355088 0%, #1f3460 100%); }
.avatar-c1 { background: linear-gradient(160deg, #a83242 0%, #5a1620 100%); }
.avatar-c2 { background: linear-gradient(160deg, #f0c860 0%, #9c7a1f 100%); color: #2c1d05; }
.avatar-c3 { background: linear-gradient(160deg, #4ec976 0%, #1f6e3a 100%); }
.avatar-c4 { background: linear-gradient(160deg, #8b6cd0 0%, #432f7a 100%); }
.avatar-c5 { background: linear-gradient(160deg, #5fb4d4 0%, #2a5a72 100%); }
.avatar-c6 { background: linear-gradient(160deg, #d8853a 0%, #7a4514 100%); }
.avatar-c7 { background: linear-gradient(160deg, #5a8a4c 0%, #2e4a26 100%); }

/* -------------- ARTICLE LIST (FEATURED + GRID) -------------- */

.featured-article {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
  overflow: hidden;
}
.featured-article::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 50%, var(--burgundy) 100%);
  box-shadow: 0 0 24px rgba(240, 200, 96, 0.4);
}
.featured-article::after {
  content: "";
  position: absolute;
  right: -100px; top: -100px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 200, 96, 0.10), transparent 60%);
  pointer-events: none;
  animation: float-y 9s ease-in-out infinite;
}
.featured-article:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.featured-article > * { position: relative; }
.featured-article .featured-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 12px;
}
.featured-article .featured-eyebrow::before {
  content: "★";
  font-size: 14px;
  letter-spacing: 0;
  color: var(--gold-bright);
  text-shadow: 0 0 8px var(--gold);
  animation: float-y 3s ease-in-out infinite;
}
.featured-article h2 {
  font-size: 2.15rem;
  margin: 0 0 14px;
  line-height: 1.15;
}
.featured-article h2 a {
  color: var(--text);
  text-decoration: none;
  background-image: linear-gradient(var(--gold-bright), var(--gold-bright));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.4s var(--ease-out), color 0.18s var(--ease-out);
}
.featured-article h2 a:hover { color: var(--gold-bright); background-size: 100% 2px; }
.featured-article .article-abstract { color: var(--text-soft); font-size: 1.02rem; margin-bottom: 18px; }
.featured-article .author-row { display: flex; align-items: center; gap: 14px; }
.featured-article .author-meta { display: flex; flex-direction: column; font-size: 13.5px; }
.featured-article .author-name { font-weight: 700; color: var(--text); font-size: 15px; }
.featured-article .author-sub  { color: var(--text-muted); font-size: 12.5px; letter-spacing: 0.04em; }
.featured-article .featured-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; min-width: 120px; }

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.article-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), border-color 0.22s var(--ease-out);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
.article-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent 0%, transparent 100%);
  pointer-events: none;
  transition: background 0.3s var(--ease-out);
  z-index: -1;
}
.article-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(240, 200, 96, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.article-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 16px 36px -10px rgba(0,0,0,0.65),
    0 6px 12px -4px rgba(212,167,58,0.10);
}
.article-card:hover::before { background: linear-gradient(135deg, rgba(240, 200, 96, 0.04) 0%, rgba(95, 180, 212, 0.03) 100%); }
.article-card:hover::after  { opacity: 1; }

.article-card .article-tag-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.article-card .article-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  line-height: 1.25;
  margin-bottom: 12px;
  display: block;
  transition: color 0.18s var(--ease-out);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}
.article-card .article-title:hover { color: var(--gold-bright); }
.article-card .article-abstract {
  color: var(--text-soft);
  font-size: 14.5px;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.article-card .author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  margin-top: auto;
}
.article-card .author-meta { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.article-card .author-name { font-size: 13.5px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.article-card .author-sub  { font-size: 11.5px; color: var(--text-muted); letter-spacing: 0.04em; }
.article-card .read-arrow {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg-elev-2);
  color: var(--gold-bright);
  border: 1px solid var(--line-bright);
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.2s var(--ease-out), border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.article-card:hover .read-arrow {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--bg);
  border-color: var(--gold-deep);
  transform: translateX(2px);
  box-shadow: 0 0 16px rgba(240, 200, 96, 0.35);
}

.format-pill, .status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0,0,0,0.3);
}
.format-pill { background: var(--bg-elev-2); color: var(--gold-bright); border: 1px solid var(--line-bright); }
.format-pill.format-pdf  {
  background: linear-gradient(135deg, #355088 0%, #1f3460 100%);
  border-color: var(--line-strong);
  color: #fff;
}
.format-pill.format-docx {
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-deep) 100%);
  border-color: #5a1620;
  color: #fff;
}
.status-pending        { background: var(--warning-bg); color: var(--warning-fg); border: 1px solid rgba(240, 200, 96, 0.35); }
.status-approved       { background: var(--success-bg); color: var(--success-fg); border: 1px solid rgba(108, 211, 145, 0.35); }
.status-rejected       { background: var(--danger-bg);  color: var(--danger-fg);  border: 1px solid rgba(239, 107, 107, 0.35); }
.status-needs_revision {
  background: linear-gradient(180deg, rgba(216, 133, 58, 0.22), rgba(216, 133, 58, 0.10));
  color: #f5cd87;
  border: 1px solid rgba(216, 133, 58, 0.45);
}

.article-meta { color: var(--text-muted); font-size: 12.5px; letter-spacing: 0.04em; }
.dot-sep { display: inline-block; opacity: 0.4; margin: 0 6px; }

/* -------------- ARTICLE DETAIL -------------- */

.article-detail {
  border-radius: var(--radius-lg);
  padding: 44px;
  position: relative;
  overflow: hidden;
}
.article-detail::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.article-detail header { border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 28px; }
.article-detail h1 { font-size: 2.3rem; line-height: 1.15; }
.article-detail .author-row { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.article-detail .author-row .author-meta { display: flex; flex-direction: column; }
.article-detail .author-row .author-name { font-weight: 700; color: var(--text); font-size: 15.5px; }
.article-detail .author-row .author-sub  { color: var(--text-muted); font-size: 13px; letter-spacing: 0.04em; }
.article-detail .article-tag-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.article-detail .abstract {
  background: var(--gold-tint);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 26px;
  border-top: 1px solid rgba(240, 200, 96, 0.18);
  border-right: 1px solid rgba(240, 200, 96, 0.18);
  border-bottom: 1px solid rgba(240, 200, 96, 0.18);
}
.article-detail .abstract h2 { margin-top: 0; font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-bright); font-family: var(--sans); font-weight: 800; }
.viewer { margin-top: 18px; }
.viewer-actions { margin-bottom: 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pdf-frame {
  width: 100%;
  height: 82vh;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f5edd6;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

/* -------------- TABLES -------------- */

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.data-table th, .data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background 0.18s var(--ease-out); }
.data-table tbody tr:hover { background: rgba(240, 200, 96, 0.04); }
.data-table th {
  background: linear-gradient(180deg, var(--bg-elev-2) 0%, var(--bg-elev) 100%);
  color: var(--gold-bright);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  border-bottom: 2px solid var(--gold-deep);
  text-shadow: 0 1px 0 rgba(0,0,0,0.4);
}

/* -------------- ADMIN ACTIONS -------------- */

.actions { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline-block; margin: 0; }
form.reject-form {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
form.reject-form input[type="text"] {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-bright);
  background: var(--bg-input);
  color: var(--text);
  font: inherit;
  min-width: 220px;
  transition: border-color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}
form.reject-form input[type="text"]::placeholder { color: var(--text-muted); }
form.reject-form input[type="text"]:focus {
  outline: none;
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 107, 107, 0.16);
}
.recent-decisions { margin-top: 36px; }

/* -------------- CONTENT PAGES -------------- */

.page-hero {
  background:
    radial-gradient(ellipse at top right, rgba(212, 167, 58, 0.18), transparent 60%),
    linear-gradient(160deg, #0c1a32 0%, #050d1c 100%);
  color: var(--text);
  padding: 76px 0 60px;
  margin-bottom: 36px;
  border-bottom: 2px solid var(--gold);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255, 215, 130, 0.025) 0 1px, transparent 1px 14px);
  pointer-events: none;
}
.page-hero > .container { position: relative; }
.page-hero h1 { font-size: 2.7rem; margin: 0 0 10px; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.6); }
.page-hero p { color: var(--text-soft); margin: 0; font-size: 1.06rem; max-width: none; text-shadow: 0 1px 0 rgba(0,0,0,0.4); white-space: nowrap; }
.page-hero p.gold-shimmer { font-size: 1.2rem; font-weight: 700; font-family: var(--font-display), serif; }
.page-hero .hero-desc { font-size: 0.97rem; color: var(--text-muted); margin-top: 8px; white-space: normal; font-style: italic; }
.page-hero .eyebrow { margin-bottom: 14px; }

.prose { color: var(--text-soft); font-size: 1.02rem; }
.prose h2 { margin-top: 32px; color: var(--text); }
.prose h3 { margin-top: 24px; color: var(--gold-bright); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose blockquote {
  margin: 22px 0;
  padding: 18px 26px;
  border-left: 4px solid var(--gold);
  background: var(--gold-tint);
  font-style: italic;
  color: var(--text);
  border-radius: var(--radius-sm);
  border-top: 1px solid rgba(240, 200, 96, 0.18);
  border-right: 1px solid rgba(240, 200, 96, 0.18);
  border-bottom: 1px solid rgba(240, 200, 96, 0.18);
}

.two-col {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  align-items: start;
}
.two-col aside.info-card {
  border-radius: var(--radius-lg);
  padding: 26px;
  position: sticky;
  top: 96px;
}
.two-col aside h3 {
  margin-top: 0;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 16px;
  font-family: var(--sans);
  font-weight: 800;
}
.glance-sub {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 16px 0 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.glance-sub:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.template-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.template-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  font-size: 14.5px;
  color: var(--text);
  font-weight: 600;
}
.template-list li .btn { flex-shrink: 0; }
@media (max-width: 520px) {
  .template-list li { flex-direction: column; align-items: stretch; gap: 8px; }
}
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { margin-bottom: 16px; font-size: 14.5px; color: var(--text-soft); }
.info-list li strong { display: block; color: var(--gold-bright); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 4px; font-family: var(--sans); }

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.value {
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  border-top: 3px solid var(--gold);
}
.value:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-top-color: var(--gold-bright); }
.value h3 { margin: 0 0 6px; color: var(--gold-bright); font-size: 1.08rem; }
.value p { margin: 0; color: var(--text-soft); font-size: 14px; }
.value-num {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 6px;
  line-height: 1;
  background: linear-gradient(180deg, #fff5d4, var(--gold) 70%, var(--gold-deep));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

/* -------------- FOOTER -------------- */

.site-footer {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #050b18 100%);
  color: var(--text-soft);
  margin-top: 64px;
  padding: 56px 0 0;
  border-top: 2px solid var(--gold);
  font-size: 14.5px;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
}
.site-footer h4 {
  font-family: var(--sans);
  color: var(--gold-bright);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 16px;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(0,0,0,0.4);
}
.site-footer a { color: var(--text-soft); text-decoration: none; transition: color 0.18s var(--ease-out); }
.site-footer a:hover { color: var(--gold-bright); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; font-weight: 600; }
.footer-brand .brand-name { color: var(--gold-bright); font-family: var(--serif); font-size: 24px; }
.footer-brand p { color: var(--text-muted); max-width: 320px; margin-top: 10px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0 calc(20px + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* -------------- COOKIE BANNER -------------- */

@keyframes cookie-rise {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cookie-banner {
  position: fixed;
  inset: auto 16px calc(16px + env(safe-area-inset-bottom)) 16px;
  z-index: 60;
  display: flex;
  justify-content: center;
  pointer-events: none;
  animation: cookie-rise 0.45s var(--ease-out) both;
  animation-delay: 0.4s;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(720px, 100%);
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg-elev-2) 100%);
  border: 2px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(240, 200, 96, 0.18),
    0 18px 38px -12px rgba(0, 0, 0, 0.7);
  flex-wrap: wrap;
}
.cookie-banner-inner::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
}
.cookie-icon {
  flex: none;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--gold-bright) 0%, var(--gold) 60%, var(--gold-deep) 100%);
  color: var(--bg);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 0 0 2px var(--bg-elev),
    0 0 0 3px var(--gold-deep),
    0 0 18px rgba(240, 200, 96, 0.35);
}
.cookie-icon svg { width: 18px; height: 18px; }
.cookie-banner-text {
  flex: 1 1 260px;
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
}
.cookie-banner-text a { color: var(--gold-bright); font-weight: 700; }
.cookie-banner-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-left: auto;
}
.cookie-banner-actions .btn { padding: 8px 14px; font-size: 13px; }

@media (max-width: 600px) {
  .cookie-banner { inset: auto 8px 8px 8px; }
  .cookie-banner-inner { padding: 14px; gap: 12px; }
  .cookie-banner-actions { width: 100%; margin-left: 0; justify-content: flex-end; }
  .cookie-icon { width: 32px; height: 32px; }
  .cookie-icon svg { width: 16px; height: 16px; }
}

/* -------------- ICONS -------------- */

.icon { width: 16px; height: 16px; flex: none; }
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 20px; height: 20px; }

/* -------------- MOBILE NAVIGATION -------------- */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line-bright);
  border-radius: 12px;
  background: rgba(10, 20, 40, 0.55);
  color: var(--gold-bright);
  cursor: pointer;
  padding: 0;
  transition: background 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}
.nav-toggle:hover { background: rgba(240, 200, 96, 0.06); border-color: rgba(240, 200, 96, 0.30); }
.nav-toggle:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.nav-toggle-bars {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 16px;
}
.nav-toggle-bars span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s var(--ease-out), top 0.25s var(--ease-out);
}
.nav-toggle-bars span:nth-child(1) { top: 1px; }
.nav-toggle-bars span:nth-child(2) { top: 7px; }
.nav-toggle-bars span:nth-child(3) { top: 13px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

.nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 18, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 28;
  opacity: 0;
  transition: opacity 0.2s var(--ease-out);
}
.nav-scrim[data-open="true"] { display: block; opacity: 1; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }

  .site-header .container { gap: 10px; padding-right: 16px; }

  .site-header nav.primary-nav {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 35;
    background: linear-gradient(180deg, #0d1c36 0%, #07101e 100%);
    border-bottom: 2px solid var(--gold-deep);
    box-shadow: 0 16px 36px rgba(0,0,0,0.55);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    white-space: normal;
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
    max-height: 100dvh;
    overflow-y: auto;
    transform: translateY(-110%);
    visibility: hidden;
    transition: transform 0.28s var(--ease-out), visibility 0s linear 0.28s;
  }
  .site-header nav.primary-nav[data-open="true"] {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.28s var(--ease-out), visibility 0s linear 0s;
  }
  .site-header nav.primary-nav a,
  .site-header nav.primary-nav .account-chip {
    width: 100%;
    justify-content: flex-start;
    padding: 14px 14px;
    min-height: 48px;
    border-radius: 12px;
    font-size: 15px;
  }
  .site-header nav.primary-nav a::after { display: none; }
  .site-header nav.primary-nav a.active,
  .site-header nav.primary-nav a[aria-current="page"] {
    background: rgba(240, 200, 96, 0.10);
    border: 1px solid rgba(240, 200, 96, 0.32);
    padding: 13px 13px;
  }
  .site-header nav.primary-nav a.cta {
    margin-left: 0;
    margin-top: 6px;
    width: 100%;
    justify-content: center;
    padding: 14px 16px;
    min-height: 48px;
  }
  .site-header nav.primary-nav .nav-divider {
    display: block;
    width: 100%;
    height: 1px;
    margin: 6px 0;
    background: var(--line);
  }
  .site-header nav.primary-nav .account-chip { margin-top: 4px; }
  .site-header nav.primary-nav .inline { width: 100%; margin-left: 0; }
  .site-header nav.primary-nav .icon-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 16px;
    min-height: 48px;
  }
  .site-header nav.primary-nav .icon-btn-label { display: inline; }

  .site-header nav.primary-nav .nav-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
  }

  body.has-open-drawer { overflow: hidden; }
}

@media (max-width: 480px) {
  .brand-text { display: none; }
  .brand-logo { width: 38px; height: 38px; }
}

/* -------------- RESPONSIVE -------------- */

@media (max-width: 900px) {
  .featured-article { grid-template-columns: 1fr; }
  .featured-article .featured-side { flex-direction: row; align-items: center; min-width: 0; }
}
@media (max-width: 800px) {
  h1 { font-size: 1.7rem; }
  .hero { padding: 48px 28px; border-radius: var(--radius-lg); }
  .hero h1 { font-size: 2.1rem; white-space: normal; }
  .contributors-list { flex-wrap: wrap; gap: 8px 10px; }
  .page-hero { padding: 48px 0 36px; }
  .page-hero h1 { font-size: 2rem; }
  .page-hero p { white-space: normal; }
  .article-detail { padding: 28px; }
  .form-card { padding: 26px; }
  .pdf-frame { height: 60vh; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .two-col { grid-template-columns: 1fr; }
  .two-col aside.info-card { position: static; }
}
@media (max-width: 520px) {
  .topbar .container { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-header .container { padding-top: 12px; padding-bottom: 12px; }
  .brand-tag { display: none; }
  .featured-article { padding: 26px; }
  .featured-article h2 { font-size: 1.7rem; }
  .article-detail { padding: 22px; }
}

/* -------------- MODERATION: QUEUE TABS + SEARCH -------------- */

.queue-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 18px;
  flex-wrap: wrap;
}
.queue-tabs {
  display: inline-flex;
  align-items: stretch;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.queue-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.18s var(--ease-out), color 0.18s var(--ease-out);
  white-space: nowrap;
}
.queue-tab:hover { color: var(--gold-bright); background: rgba(240, 200, 96, 0.06); }
.queue-tab.active {
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: var(--bg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 1px 2px rgba(0,0,0,0.4);
  cursor: default;
}
.queue-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding: 0 6px;
  height: 18px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255,255,255,0.05);
  color: inherit;
}
.queue-tab.active .queue-tab-count {
  background: rgba(10, 20, 40, 0.30);
  color: var(--bg);
}

.queue-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.queue-search input[type="search"] {
  width: 280px;
  max-width: 60vw;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-bright);
  background: var(--bg-elev);
  color: var(--text);
  font: inherit;
}
.queue-search input[type="search"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 200, 96, 0.15);
}
.queue-counter { margin: -4px 0 12px; }

.queue-card .actions { margin-top: 14px; }
.comment-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(240, 200, 96, 0.08);
  border: 1px solid rgba(240, 200, 96, 0.18);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-bright);
}

/* -------------- MODERATION: REVIEW PAGE -------------- */

.review-shell { padding-top: 24px; }
.review-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.review-title {
  font-family: var(--serif);
  font-size: 2rem;
  margin: 4px 0 4px;
  color: var(--text);
}
.review-sub { margin: 0 0 18px; }

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}
.review-pdf {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-elev);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 6px 20px rgba(0,0,0,0.35);
}
.review-pdf-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.review-pdf-frame {
  width: 100%;
  height: calc(100vh - 220px);
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #1a2540;
}
.review-images {
  margin-top: 28px;
}
.review-images h2 {
  margin-bottom: 14px;
}

.review-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-side .panel { padding: 18px 20px; }
.review-side .panel h2 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0 0 12px;
  color: var(--gold-bright);
}
.meta-sub {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 14px 0 6px;
}
.meta-text { margin: 0 0 6px; color: var(--text); }
.author-row-tight { padding: 6px 0 4px; border: 0; }

.stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 14px;
}
.stat-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--text-soft);
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.stat-list li strong {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--text);
}

/* Action panel (approve / request changes / reject) */
.action-panel { padding: 16px 18px; }
.action-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  padding: 0;
  margin-top: 10px;
  overflow: hidden;
  transition: border-color 0.2s var(--ease-out);
}
.action-card[open] { border-color: var(--line-bright); }
.action-card summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  list-style: none;
}
.action-card summary::-webkit-details-marker { display: none; }
.action-card summary::after {
  content: "+";
  margin-left: auto;
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1;
}
.action-card[open] summary::after { content: "−"; }
.action-card .icon { flex: none; }
.action-card.action-approve summary { color: #6cd391; }
.action-card.action-request summary { color: var(--gold-bright); }
.action-card.action-reject  summary { color: var(--danger); }

.stacked-form-tight {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 14px 14px;
}
.stacked-form-tight label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stacked-form-tight textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 13.5px;
  color: var(--text);
  background: var(--bg-elev);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-sm);
  resize: vertical;
  text-transform: none;
  letter-spacing: 0;
}
.stacked-form-tight textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 200, 96, 0.15);
}
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 6px 10px; font-size: 12px; }

.decided-panel { padding: 16px 18px; }

@media (max-width: 1100px) {
  .review-layout { grid-template-columns: 1fr; }
  .review-pdf { position: static; }
  .review-pdf-frame { height: 70vh; }
}

/* -------------- COMMENTS THREAD -------------- */

.comments-panel {
  margin-top: 24px;
  padding: 22px 24px;
}
.comments-panel h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0 0 16px;
  color: var(--gold-bright);
}
.comment-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.comment {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.comment.comment-internal {
  background: rgba(140, 110, 200, 0.06);
  border-color: rgba(140, 110, 200, 0.30);
}
.comment.comment-system {
  background: rgba(255, 255, 255, 0.02);
  border-style: dashed;
  border-color: var(--line);
  color: var(--text-muted);
  font-style: italic;
}
.comment-system-icon {
  flex: none;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text-muted);
}
.comment-body { flex: 1; min-width: 0; }
.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.comment-author { color: var(--text); font-weight: 700; }
.comment-time {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.comment-text {
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.comment-system .comment-text { color: var(--text-muted); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.badge-internal {
  background: rgba(140, 110, 200, 0.16);
  color: #c7b3ec;
  border-color: rgba(140, 110, 200, 0.45);
}
.badge-author {
  background: rgba(240, 200, 96, 0.12);
  color: var(--gold-bright);
  border-color: rgba(240, 200, 96, 0.40);
}
.badge-system {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border-color: var(--line);
}
.badge-admin {
  background: rgba(108, 211, 145, 0.12);
  color: #6cd391;
  border-color: rgba(108, 211, 145, 0.40);
}
.badge-you {
  background: rgba(240, 200, 96, 0.06);
  color: var(--gold-bright);
  border-color: rgba(240, 200, 96, 0.30);
}

.comment-compose {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.comment-compose textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--bg-elev);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-sm);
  resize: vertical;
  min-height: 80px;
}
.comment-compose textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 200, 96, 0.15);
}
.compose-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.visibility-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
}
.visibility-toggle .radio-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
  border-radius: 999px;
  transition: background 0.18s var(--ease-out), color 0.18s var(--ease-out);
}
.visibility-toggle .radio-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.visibility-toggle .radio-pill:hover { color: var(--text); }
.visibility-toggle .radio-pill input:checked + span {
  color: var(--bg);
}
.visibility-toggle .radio-pill:has(input:checked) {
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 1px 2px rgba(0,0,0,0.4);
}

.message-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(240, 200, 96, 0.10);
  color: var(--gold-bright);
  border: 1px solid rgba(240, 200, 96, 0.35);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
a.message-pill:hover {
  background: rgba(240, 200, 96, 0.22);
  border-color: rgba(240, 200, 96, 0.55);
  color: var(--gold-bright);
}
.revision-note {
  background: rgba(216, 133, 58, 0.10);
  color: #f5cd87;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid rgba(216, 133, 58, 0.65);
  margin-top: 8px;
}
.resubmit-panel {
  margin-top: 22px;
  padding: 22px 24px;
  border-left: 3px solid rgba(216, 133, 58, 0.65);
}
.resubmit-panel h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: #f5cd87;
  margin: 0 0 6px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -------------- ARTICLES LIBRARY -------------- */

.library-search {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.library-search .search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(10, 20, 40, 0.55);
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  min-width: 320px;
  max-width: 100%;
  color: var(--text-muted);
  transition: border-color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}
.library-search .search svg {
  position: static;
  flex-shrink: 0;
}
.library-search .search:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 200, 96, 0.18);
}
.library-search .search input {
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
  flex: 1;
  min-width: 200px;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-appearance: none;
}
.library-search .search input:focus {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.library-search .search input::-webkit-search-cancel-button { display: none; }
.search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s;
}
.search-clear:hover { color: var(--text); }

.library-shell { padding-top: 32px; padding-bottom: 60px; }

.library-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.library-aside { position: sticky; top: 92px; }
.filter-card {
  background: var(--bg-elev);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 6px 18px rgba(0,0,0,0.30);
}
.filter-card h3 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 6px;
}
.filter-card .filter-block + .filter-block { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.filter-card h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.filter-list li { margin: 0; }
.filter-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.18s var(--ease-out), color 0.18s var(--ease-out);
}
.filter-list a:hover { background: rgba(240, 200, 96, 0.06); color: var(--gold-bright); }
.filter-list a.active {
  background: linear-gradient(180deg, rgba(240, 200, 96, 0.18), rgba(240, 200, 96, 0.08));
  color: var(--gold-bright);
  border: 1px solid rgba(240, 200, 96, 0.32);
  padding: 5px 9px;
  font-weight: 700;
}
.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 0 6px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.filter-list a.active .filter-count {
  background: rgba(240, 200, 96, 0.20);
  color: var(--gold-bright);
}

.filter-card .btn-block { margin-top: 18px; }

.filter-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-elev);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) calc(50% - 2px),
    calc(100% - 9px) calc(50% - 2px);
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding: 7px 32px 7px 12px;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.filter-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 200, 96, 0.18);
}

.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.library-count strong { color: var(--text); font-size: 16px; font-family: var(--serif); }
.library-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
}
.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 12px;
  border-radius: 999px;
  background: rgba(240, 200, 96, 0.10);
  border: 1px solid rgba(240, 200, 96, 0.30);
  color: var(--gold-bright);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}
.active-chip:hover {
  background: rgba(240, 200, 96, 0.18);
  border-color: rgba(240, 200, 96, 0.55);
}
.active-chip svg { opacity: 0.85; }

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.library-card { display: flex; flex-direction: column; }
.library-card .article-abstract { flex: 1; }
.library-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  flex-wrap: wrap;
}
.library-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.author-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 12px 3px 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.18s var(--ease-out), background 0.18s var(--ease-out), color 0.18s var(--ease-out);
}
.author-chip:hover {
  background: rgba(240, 200, 96, 0.06);
  border-color: rgba(240, 200, 96, 0.30);
  color: var(--gold-bright);
}

.pagination {
  margin: 28px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.pagination-pages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.pagination-page,
.pagination-prev,
.pagination-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  transition: background 0.18s var(--ease-out), color 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}
.pagination-page:hover,
.pagination-prev:hover,
.pagination-next:hover {
  color: var(--gold-bright);
  border-color: rgba(240, 200, 96, 0.35);
  background: rgba(240, 200, 96, 0.06);
}
.pagination-page.active {
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: var(--bg);
  border-color: var(--gold-deep);
  cursor: default;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 1px 2px rgba(0,0,0,0.4);
}
.pagination-page.active:hover {
  color: var(--bg);
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
}
.pagination-prev.disabled,
.pagination-next.disabled {
  opacity: 0.35;
  pointer-events: none;
}
.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  color: var(--text-muted);
  font-weight: 800;
}

.meta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-bright);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.18s var(--ease-out);
}
.meta-link:hover { color: #fff5d4; }

.latest-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.latest-cta { text-align: center; margin: 28px 0 0; }

@media (max-width: 1100px) {
  .library-layout { grid-template-columns: 1fr; }
  .library-aside { position: static; top: auto; }
  .filter-card { padding: 16px 18px; }
}
@media (max-width: 600px) {
  .library-search .search { min-width: 0; width: 100%; }
  .library-toolbar { gap: 8px; }
}

/* -------------- MOBILE POLISH -------------- */

.scroll-x {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 720px) {
  /* Prevent iOS form-control zoom: every interactive control hits 16px. */
  input, select, textarea, button {
    font-size: max(16px, 1rem);
  }
  .stacked-form input[type="text"],
  .stacked-form input[type="email"],
  .stacked-form input[type="password"],
  .stacked-form input[type="file"],
  .stacked-form textarea,
  .filter-select,
  .queue-search input[type="search"],
  form.reject-form input[type="text"] {
    font-size: 16px;
  }

  /* Stretch primary-action buttons full-width on phones for easier tapping. */
  .form-card .actions .btn,
  .stacked-form button[type="submit"] {
    width: 100%;
    justify-content: center;
  }

  /* Library/article cards: smaller side padding to fit better. */
  .article-detail { padding: 22px 18px; }
  .form-card { padding: 22px 18px; }
  .panel { padding: 18px; }

  /* PDF iframes shrink a bit so they're not the entire viewport on phones. */
  .pdf-frame { height: 56vh; min-height: 360px; }
  .review-pdf-frame { height: 56vh; min-height: 360px; }

  /* Admin queue/messages tables become horizontally scrollable. */
  .queue-tabs { overflow-x: auto; flex-wrap: nowrap; }
  table.admin-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* Ensure tap targets meet 44px on touch devices. */
@media (hover: none) and (pointer: coarse) {
  .btn, .btn-sm, .icon-btn, .pagination-page, .pagination-prev, .pagination-next,
  .nav-toggle, .lang-btn, .filter-list a, .active-chip {
    min-height: 44px;
  }
  .lang-btn, .pagination-page, .filter-list a {
    padding-block: 10px;
  }
}

/* -------------- BACK BUTTON + REVIEW PAGER -------------- */

.back-btn {
  margin: 0 0 16px;
}
.back-btn svg { transition: transform 0.18s var(--ease-out); }
.back-btn:hover svg { transform: translateX(-3px); }

.review-pager {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.review-pager-pos {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 0 6px;
  font-variant-numeric: tabular-nums;
}
.btn.disabled, .btn-sm.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}

/* -------------- ADMIN DASHBOARD: STATS + DECISIONS -------------- */

.dashboard-h {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 22px 0 12px;
}

.dashboard-stats {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.dashboard-card {
  background: var(--bg-elev);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 6px 18px rgba(0,0,0,0.30);
  transition: transform 0.18s var(--ease-out), border-color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}
.dashboard-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--gold);
  opacity: 0.5;
}
.dashboard-card:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 200, 96, 0.40);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 12px 28px rgba(0,0,0,0.45);
}
.dashboard-card-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px 18px 24px;
  text-decoration: none;
  color: var(--text);
}
.dashboard-card-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.dashboard-card-num {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.dashboard-card-p {
  font-size: 12.5px;
  color: var(--text-soft);
}
.dashboard-card.stat-pending::before          { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); }
.dashboard-card.stat-needs-revision::before   { background: linear-gradient(180deg, #f0b85e, #c47a1a); }
.dashboard-card.stat-approved::before         { background: linear-gradient(180deg, #66d49a, #2d8458); }
.dashboard-card.stat-rejected::before         { background: linear-gradient(180deg, #ed7a6c, #9a2f24); }

.recent-decisions-panel { margin-top: 6px; }
.recent-decisions {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  overflow: hidden;
}
.recent-decision {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px dashed var(--line);
}
.recent-decision:last-child { border-bottom: 0; }
.recent-decision-dot {
  flex: none;
  margin-top: 8px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 200, 96, 0.18);
}
.recent-decision-approved        .recent-decision-dot { background: #66d49a; box-shadow: 0 0 0 3px rgba(102, 212, 154, 0.20); }
.recent-decision-rejected        .recent-decision-dot { background: #ed7a6c; box-shadow: 0 0 0 3px rgba(237, 122, 108, 0.20); }
.recent-decision-needs_revision  .recent-decision-dot { background: #f0b85e; box-shadow: 0 0 0 3px rgba(240, 184, 94, 0.20); }
.recent-decision-body { flex: 1; min-width: 0; }
.recent-decision-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  font-size: 14px;
}
.recent-decision-line strong { color: var(--gold-bright); }
.recent-decision-title {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}
.recent-decision-title:hover {
  color: var(--gold-bright);
  border-color: rgba(240, 200, 96, 0.35);
}
.recent-decision-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.recent-decision-meta .avatar { width: 22px; height: 22px; font-size: 10px; }

/* -------------- REVIEW: AUTHOR SUBMISSIONS PANEL -------------- */

.author-submissions-panel { padding: 18px 20px; }
.author-submissions-panel h2 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 10px;
}
.author-submission-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.author-submission { margin: 0; }
.author-submission-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  border: 1px solid transparent;
  transition: background 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}
.author-submission-link:hover {
  background: rgba(240, 200, 96, 0.06);
  border-color: rgba(240, 200, 96, 0.25);
}
.author-submission.is-current .author-submission-link {
  background: rgba(240, 200, 96, 0.08);
  border-color: rgba(240, 200, 96, 0.45);
  pointer-events: none;
}
.author-submission-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.author-submission-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11.5px;
}
.author-submission-meta .status {
  font-size: 10px;
  padding: 2px 8px;
}
.author-submission-date {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Login + password reset
   ========================================================================== */
.login-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}
.login-forgot {
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
}
.login-forgot:hover { color: var(--gold-bright); }

.reset-code-input {
  text-align: center;
  letter-spacing: 0.5em;
  font-family: 'SF Mono', 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  font-size: 1.6rem;
  font-weight: 700;
  text-indent: 0.5em;
}

.reset-done {
  text-align: center;
  padding: 14px 0 6px;
}
.reset-done svg { margin-bottom: 8px; }
.reset-done h2 {
  margin: 6px 0 6px;
  font-size: 1.5rem;
}
.reset-done .btn { margin-top: 18px; }

.btn-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn .btn-text { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 520px) {
  .login-meta { flex-direction: column; align-items: stretch; gap: 8px; }
}

/* ==========================================================================
   Moderation dashboard layout
   ========================================================================== */
.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

/* ==========================================================================
   Project highlight (Home page)
   ========================================================================== */
.project-highlight { padding-bottom: 24px; }

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
}

.project-card-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.project-card-title {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 8px;
  line-height: 1.35;
}

.project-card-editor {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 16px;
  font-style: italic;
}

.project-card-desc {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
}

.project-card-themes-h {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 10px;
}

.project-card-themes {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 8px;
}
.project-card-themes li {
  position: relative;
  padding-left: 20px;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.5;
}
.project-card-themes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* ==========================================================================
   Project section (About page)
   ========================================================================== */
.project-section {
  padding-bottom: 24px;
}
.project-heading {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 16px;
}
.project-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 16px;
}
.project-section p {
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 16px;
}
.project-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading);
  margin: 28px 0 16px;
}
.project-parts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}
.project-part {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}
.project-part-num {
  font-weight: 800;
  color: var(--gold);
  font-size: 1rem;
  min-width: 24px;
  text-align: center;
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .project-card { padding: 20px; }
  .project-part { padding: 12px 14px; }
}

/* ==========================================================================
   Partners section
   ========================================================================== */
.partners-section { padding-bottom: 40px; }
.partners-heading {
  font-size: 1.6rem;
  color: var(--gold-bright);
  margin-bottom: 8px;
}
.partners-lead {
  color: var(--text-soft);
  max-width: 600px;
  margin-bottom: 28px;
}
.partner-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.partner-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.partner-card:hover {
  border-color: var(--gold-deep);
  box-shadow: 0 2px 18px rgba(212, 167, 58, 0.08);
}
.partner-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}
.partner-logo-box {
  width: 140px;
  height: 70px;
  border-radius: var(--radius-sm);
  background: transparent;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.partner-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.partner-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.partner-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.partner-url {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.partner-description {
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.65;
  margin: 0;
}
.partner-card .btn {
  align-self: center;
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .partner-card { flex-direction: column; align-items: flex-start; padding: 24px; }
  .partner-card .btn { align-self: flex-start; }
}
