/* ============================================================
   IJBCOE — components.css
   Supplementary component styles that extend main.css.
   main.css must be loaded first.
   ============================================================ */

/* ── Multi-Step Form ─────────────────────────────────── */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
}
.step-indicator::before {
  content: '';
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 2px;
  background: var(--border);
  transform: translateY(-50%);
  z-index: 0;
}
.step-item {
  position: relative; z-index: 1;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem;
  color: var(--muted);
  transition: var(--trans);
  flex-shrink: 0;
}
.step-item.active   { background: var(--accent); color: var(--primary); border-color: var(--accent); }
.step-item.completed{ background: var(--teal);   color: var(--white);   border-color: var(--teal); }

.form-step { display: none; }
.form-step.active { display: block; animation: fadeSlideIn .3s ease; }
@keyframes fadeSlideIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }

.form-nav { display: flex; gap: 1rem; justify-content: space-between; margin-top: 2rem; }

/* ── Dropzone / File Upload ──────────────────────────── */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--r-md);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--trans);
  background: var(--surface);
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent);
  background: var(--accent-pale);
}
.dropzone-icon { font-size: 2.5rem; color: var(--muted); margin-bottom: 1rem; }
.dropzone.dragover .dropzone-icon { color: var(--accent); }
.dropzone-text { color: var(--muted); font-size: .9rem; }
.dropzone-text span { color: var(--teal); font-weight: 600; cursor: pointer; }

.file-preview {
  display: flex; align-items: center; gap: 1rem;
  padding: .75rem 1rem;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  margin-top: 1rem;
}
.file-preview-icon { font-size: 1.5rem; color: var(--teal); }
.file-preview-name { font-weight: 600; font-size: .88rem; flex: 1; }
.file-preview-size { font-size: .78rem; color: var(--muted); }
.file-remove { color: #EF4444; cursor: pointer; font-size: 1rem; background: none; padding: 0; }

/* ── Tab Component ───────────────────────────────────── */
.tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--border);
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-nav::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: .75rem 1.25rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--trans);
}
.tab-btn:hover  { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--accent); }
.tab-panel      { display: none; padding-top: 1.75rem; }
.tab-panel.active { display: block; animation: fadeSlideIn .3s ease; }

/* ── Accordion / FAQ ─────────────────────────────────── */
.accordion        { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.accordion-item   { border-bottom: 1px solid var(--border); }
.accordion-item:last-child { border-bottom: none; }

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  font-size: .95rem;
  background: var(--white);
  transition: var(--trans);
  gap: 1rem;
  width: 100%;
  border: none;
  text-align: left;
}
.accordion-header:hover  { background: var(--surface); }
.accordion-icon          { transition: transform .3s var(--ease); color: var(--muted); flex-shrink: 0; }
.accordion-item.open .accordion-header  { background: var(--surface); color: var(--teal); }
.accordion-item.open .accordion-icon    { transform: rotate(180deg); color: var(--accent); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
}
.accordion-item.open .accordion-body { max-height: 600px; }
.accordion-body-inner { padding: .75rem 1.5rem 1.25rem; color: var(--muted); font-size: .9rem; line-height: 1.75; }

/* ═══════════════════════════════════════════════════════
   AUTH PAGES — Login & Register (Split Layout)
   ═══════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  background: var(--surface);
}
.auth-split-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Left Panel (Brand / Info) ─────────────────────── */
.auth-left {
  display: none;
  flex: 0 0 46%;
  position: relative;
  background: linear-gradient(160deg, #060E1A 0%, #0A1628 40%, #0F2040 100%);
  color: var(--white);
  padding: 4rem 3.5rem;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
@media (min-width: 900px) {
  .auth-left { display: flex; }
}

/* Subtle geometric overlay pattern */
.auth-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(200,150,12,.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(13,148,136,.06) 0%, transparent 50%);
  pointer-events: none;
}

.auth-left-content {
  position: relative;
  z-index: 2;
  max-width: 440px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: .75rem;
}
.auth-brand h2 {
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -.01em;
}
.brand-icon {
  color: var(--accent);
  filter: drop-shadow(0 0 12px rgba(200,150,12,.3));
}

.auth-tagline {
  color: rgba(255,255,255,.55);
  font-size: .92rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

/* Stats row (register page) */
.auth-stats {
  display: flex;
  gap: 2.5rem;
  margin: 2rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.stat-item { text-align: center; }
.stat-number {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: .25rem;
}
.stat-label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.4);
}

/* Benefits list */
.auth-benefits { margin: 2rem 0; }
.auth-benefits h3,
.benefits-heading {
  color: var(--white);
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.auth-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.auth-benefits li {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  margin-bottom: .55rem;
  line-height: 1.4;
}
.auth-benefits li i {
  color: var(--accent);
  font-size: .8rem;
  width: 16px;
  flex-shrink: 0;
}

/* Left footer */
.auth-left-footer {
  margin-top: auto;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}
.auth-left-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: var(--trans);
}
.auth-left-footer a:hover {
  color: var(--accent-light);
}
.copyright {
  color: rgba(255,255,255,.25);
  font-size: .7rem;
  margin-top: .4rem;
}

/* Floating animated icons */
.auth-animated-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.floating-icon {
  position: absolute;
  opacity: .05;
  font-size: 5rem;
  color: var(--accent);
}
.icon-1 { top: 12%; left: 8%;  animation: authFloat 8s ease-in-out infinite; }
.icon-2 { top: 22%; right: 18%; animation: authFloat 6s ease-in-out infinite 1.2s; font-size: 3.5rem; }
.icon-3 { bottom: 18%; left: 22%; animation: authFloat 7.5s ease-in-out infinite .6s; font-size: 4rem; }
.icon-4 { bottom: 10%; right: 12%; animation: authFloat 9s ease-in-out infinite .3s; }
@keyframes authFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-18px) rotate(4deg); }
}

/* ── Right Panel (Form) ─────────────────────────────── */
.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: #FFFFFF !important;
  overflow-y: auto;
}
.auth-right-content {
  width: 100%;
  max-width: 430px;
}

/* Mobile brand icon */
.auth-header-mobile {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}
@media (min-width: 900px) {
  .auth-header-mobile { display: none; }
}
.brand-icon-mobile {
  color: var(--accent);
  font-size: 2.2rem;
  opacity: .9;
}

.auth-heading {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .2rem;
  letter-spacing: -.02em;
}
.auth-subtitle {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 1.75rem;
}

/* ── Role Selector Tabs ─────────────────────────────── */
.role-selector {
  display: flex;
  gap: .4rem;
  margin-bottom: 1.5rem;
  background: var(--surface-2);
  padding: .3rem;
  border-radius: var(--r-md);
}
.role-tab {
  flex: 1;
  padding: .6rem .5rem;
  border-radius: calc(var(--r-md) - 2px);
  border: none;
  background: transparent;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s var(--ease);
  color: var(--muted);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
}
.role-tab:hover {
  color: var(--primary);
}
.role-tab.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

/* ── Account Type Cards (register) ──────────────────── */
.account-type-selector {
  margin-bottom: 1.5rem;
}
.selector-label {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: .6rem;
}
.type-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}
.type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  padding: .9rem .4rem;
  cursor: pointer;
  transition: all .2s var(--ease);
  background: var(--white);
}
.type-card:hover {
  border-color: var(--accent);
}
.type-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-pale);
}
.type-card i {
  font-size: 1.3rem;
  color: var(--muted);
  margin-bottom: .35rem;
  transition: color .2s;
}
.type-card span {
  font-size: .73rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .2s;
}
.type-card:has(input:checked) i,
.type-card:has(input:checked) span {
  color: var(--primary);
}

/* ── Auth Form ──────────────────────────────────────── */
.auth-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
@media (max-width: 500px) {
  .auth-form { padding: 1.5rem; }
}

.form-group {
  margin-bottom: 1rem;
}
.form-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: .35rem;
  display: block;
}

/* Input with icon */
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: .85rem;
  color: var(--muted);
  font-size: .88rem;
  z-index: 2;
  pointer-events: none;
  transition: color .2s;
}
.input-with-icon:focus-within .input-icon {
  color: var(--accent);
}
.input-with-icon .form-control {
  padding-left: 2.6rem;
  padding-right: 2.5rem;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  height: 46px;
  font-size: .9rem;
  transition: all .2s var(--ease);
}
.input-with-icon .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,150,12,.12);
}

/* Password toggle */
.password-toggle {
  position: absolute;
  right: .75rem;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: .85rem;
  z-index: 2;
  padding: .25rem;
  transition: color .2s;
}
.password-toggle:hover {
  color: var(--primary);
}

/* Form row (remember me + forgot) */
.form-row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: .82rem;
}
.form-row-between .form-check {
  margin: 0;
}
.form-row-between .form-check-label {
  font-size: .82rem;
  color: var(--dark);
}
.forgot-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: .82rem;
  transition: color .2s;
}
.forgot-link:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

/* Two-column row */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 .9rem;
}
@media (min-width: 500px) {
  .form-row-2 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Gold submit button ─────────────────────────────── */
.btn.btn-gold,
.auth-form .btn-gold {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: .75rem 1.5rem !important;
  background: linear-gradient(135deg, var(--accent), var(--accent-light)) !important;
  color: var(--primary) !important;
  border: none !important;
  font-weight: 700;
  font-size: .95rem !important;
  border-radius: var(--r-md) !important;
  cursor: pointer;
  transition: all .25s var(--ease);
  letter-spacing: .01em;
}
.btn.btn-gold:hover,
.auth-form .btn-gold:hover {
  background: linear-gradient(135deg, var(--accent-light), #F0C830) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200,150,12,.35);
  color: var(--primary) !important;
}
.btn.btn-gold:active {
  transform: translateY(0);
}

/* ── Divider ────────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-divider span {
  font-size: .78rem;
  color: var(--muted);
  white-space: nowrap;
  font-weight: 500;
}

/* ── Social buttons ─────────────────────────────────── */
.social-login {
  display: flex;
  gap: .6rem;
}
.btn-social {
  flex: 1;
  padding: .6rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ease);
  background: var(--white);
  color: var(--dark);
}
.btn-social:hover {
  border-color: var(--primary);
  background: var(--surface);
}

/* ── Bottom text ────────────────────────────────────── */
.auth-bottom-text {
  text-align: center;
  margin-top: 1.25rem;
  font-size: .85rem;
  color: var(--muted);
}
.auth-bottom-text a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.auth-bottom-text a:hover {
  text-decoration: underline;
}

/* ── Password strength ──────────────────────────────── */
.password-strength-container {
  margin-top: .3rem;
}
.strength-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  transition: all .3s;
  width: 0%;
}
.strength-text {
  font-size: .7rem;
  color: var(--muted);
  margin-top: .2rem;
  display: block;
}

/* Checkbox grid (register subjects) */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .4rem;
}
@media (max-width: 400px) {
  .checkbox-grid { grid-template-columns: 1fr; }
}
.check-box-label {
  font-size: .82rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: .35rem;
  cursor: pointer;
}
.terms-check { margin: 1rem 0; }

/* ── Auth Bootstrap Override Guarantees ───────────────── */
.auth-form .form-control {
  border-radius: var(--r-md) !important;
  border-color: var(--border) !important;
  height: 46px !important;
}
.auth-form .form-control:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(200,150,12,.12) !important;
}
.auth-form .form-check-input:checked {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Testimonial grid ────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 600px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Citation code block ─────────────────────────────── */
.citation-block {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 1rem 1.25rem;
  font-family: monospace;
  font-size: .83rem;
  line-height: 1.7;
  color: var(--dark);
  position: relative;
  margin-top: .75rem;
}
.citation-copy-btn {
  position: absolute;
  top: .5rem; right: .5rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--r-sm);
  padding: .3rem .7rem;
  font-size: .72rem;
  cursor: pointer;
  transition: var(--trans);
}
.citation-copy-btn:hover { background: var(--accent); color: var(--primary); }
.citation-copy-btn.copied { background: var(--teal); }

/* ── Board page specific ─────────────────────────────── */
.chief-editor-card {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  border: 1px solid var(--border);
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.chief-avatar { flex-shrink: 0; }
.chief-bio    { flex: 1; min-width: 220px; }
.chief-bio h2 { font-size: 1.5rem; margin-bottom: .25rem; }
.chief-bio .editor-role { font-size: .9rem; margin-bottom: 1rem; }
.expertise-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.expertise-tag {
  background: var(--teal); color: var(--white);
  padding: .2rem .75rem; border-radius: var(--r-xl);
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}

/* ── Journals sidebar layout ─────────────────────────── */
.journals-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.journals-sidebar {
  flex: 0 0 260px;
  position: sticky;
  top: 90px;
}
.journals-main { flex: 1; min-width: 0; }
@media (max-width: 900px) {
  .journals-layout { flex-direction: column; }
  .journals-sidebar { flex: none; width: 100%; position: static; }
}
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.sidebar-heading {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
  margin-bottom: .85rem;
}

/* ── Volume section header ───────────────────────────── */
.volume-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--primary);
  border-radius: var(--r-sm);
  border-left: 4px solid var(--accent);
  margin-bottom: 1.5rem;
  color: var(--white);
}
.volume-header h3 { color: var(--white); margin: 0; font-size: 1rem; }
.volume-header span { color: rgba(255,255,255,.6); font-size: .82rem; }

/* ── Sort bar ────────────────────────────────────────── */
.sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: .75rem;
}
.sort-bar p { color: var(--muted); font-size: .88rem; margin: 0; }
.sort-select { border: 1px solid var(--border); border-radius: var(--r-sm); padding: .45rem .9rem; font-size: .85rem; color: var(--dark); }

/* ── Article detail layout ───────────────────────────── */
.article-detail-layout {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}
.article-main    { flex: 1; min-width: 0; }
.article-sidebar { flex: 0 0 280px; position: sticky; top: 90px; }
@media (max-width: 900px) {
  .article-detail-layout { flex-direction: column; }
  .article-sidebar { flex: none; width: 100%; position: static; }
}

/* ── Flash Messages ──────────────────────────────────── */
.flash-message {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: .85rem 2.5rem .85rem 1.25rem;
  border-radius: var(--r-md);
  font-size: .9rem;
  font-weight: 500;
  box-shadow: var(--sh-lg);
  animation: flashSlideDown .4s var(--ease);
  display: flex;
  align-items: center;
  gap: .5rem;
  max-width: 600px;
  width: calc(100% - 2rem);
}
@keyframes flashSlideDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.flash-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.flash-error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.flash-close {
  position: absolute;
  top: .4rem;
  right: .75rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: inherit;
  opacity: .6;
  line-height: 1;
}
.flash-close:hover { opacity: 1; }

/* ── User Dropdown ───────────────────────────────────── */
.user-dropdown {
  position: relative;
}
.user-menu-btn {
  display: flex !important;
  align-items: center;
  gap: .4rem;
}
.user-chevron {
  font-size: .65rem;
  transition: transform .2s var(--ease);
}
.user-dropdown.open .user-chevron {
  transform: rotate(180deg);
}
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xl);
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all .2s var(--ease);
  z-index: 1000;
  overflow: hidden;
}
.user-dropdown.open .user-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-header {
  display: block;
  padding: .85rem 1.25rem .2rem;
  font-weight: 700;
  font-size: .88rem;
  color: var(--primary);
}
.dropdown-role {
  display: block;
  padding: 0 1.25rem .6rem;
  font-size: .75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem 1.25rem;
  font-size: .85rem;
  color: var(--dark);
  transition: background .15s;
}
.dropdown-item:hover {
  background: var(--surface);
  color: var(--primary);
}
.dropdown-item i {
  width: 18px;
  text-align: center;
  color: var(--muted);
}
.dropdown-danger { color: #DC2626 !important; }
.dropdown-danger:hover { background: #FEF2F2 !important; }
.dropdown-danger i { color: #DC2626 !important; }

/* ── DOI display box ─────────────────────────────────── */
.doi-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: .75rem 1rem;
  font-family: monospace;
  font-size: .88rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

/* ── Share buttons ───────────────────────────────────── */
.share-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.share-btn {
  padding: .45rem 1rem; border-radius: var(--r-xl);
  font-size: .78rem; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--white);
  display: flex; align-items: center; gap: .4rem; transition: var(--trans);
}
.share-btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ── Contact page ────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1.4fr; } }

.contact-info-card, .contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 2rem;
  box-shadow: var(--sh-sm);
}

.contact-topic-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: .9rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin-bottom: .75rem;
  transition: var(--trans);
}
.contact-topic-card:hover { border-color: var(--teal); background: var(--surface); }
.contact-topic-card i { color: var(--teal); width: 20px; flex-shrink: 0; margin-top: .2rem; }

.map-placeholder {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  gap: .5rem;
  margin-top: 1.25rem;
}
.map-placeholder i { font-size: 2.5rem; opacity: .4; }

/* ── Guidelines tab nav ──────────────────────────────── */
.guidelines-layout { display: flex; gap: 2.5rem; align-items: flex-start; }
.guidelines-sidebar { flex: 0 0 220px; position: sticky; top: 90px; }
.guidelines-content { flex: 1; }
@media (max-width: 768px) {
  .guidelines-layout { flex-direction: column; }
  .guidelines-sidebar { flex: none; width: 100%; position: static; }
}

.guidelines-tab-btn {
  display: block; width: 100%;
  text-align: left;
  padding: .7rem 1rem;
  border-radius: var(--r-sm);
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--trans);
  margin-bottom: .25rem;
}
.guidelines-tab-btn:hover  { background: var(--surface-2); color: var(--primary); }
.guidelines-tab-btn.active { background: var(--accent-pale); color: var(--primary); font-weight: 700; border-left: 3px solid var(--accent); }

/* ── Keyword chips ───────────────────────────────────── */
.keyword-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.keyword-chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--dark);
  padding: .2rem .75rem;
  border-radius: var(--r-xl);
  font-size: .78rem;
  font-weight: 500;
}

/* ── Notice / info box ───────────────────────────────── */
.info-box {
  background: #EFF6FF;
  border: 1px solid #BAE6FD;
  border-left: 4px solid #0284C7;
  border-radius: var(--r-sm);
  padding: 1rem 1.25rem;
  font-size: .88rem;
  color: #0369A1;
  margin-bottom: 1.5rem;
}
.info-box ul { padding-left: 1.25rem; list-style: disc; margin-top: .5rem; }
.info-box li { margin-bottom: .35rem; }
