/* =============================================================================
   MASTER STYLESHEET
   Sections:
   01. CSS Variables & Root
   02. Base / Reset
   03. Layout & Container
   04. Header / Navbar (hb-*)
   05. Topbar Ribbon
   06. Breadcrumb
   07. Sidebar (Admin)
   08. TOC (Table of Contents)
   09. Article Reader
   10. Author Drawer / Popover
   11. Cards (General)
   12. Editorial Board
   13. Issue List
   14. Homepage Hero (nr-hero carousel)
   15. Homepage Feed & Tabs (nr-*)
   16. Homepage Trending / Boxes
   17. Homepage Featured Story
   18. Homepage Issue Strip
   19. Homepage Links Box
   20. Homepage CFP Banner
   21. Dashboard / Author Tabs
   22. Workflow Steps (wf-*)
   23. User / OJS List (ojs-*)
   24. Submission Cards
   25. Forms & Auth
   26. Buttons (overrides)
   27. Badges & Chips
   28. Cookie Banner
   29. Footer (vf-*)
   30. Utility / Misc
   31. Responsive Overrides
============================================================================= */


/* =============================================================================
   01. CSS VARIABLES & ROOT
============================================================================= */
:root {
  /* Brand */
  --brand:         #003b44;
  --accent:        #003b44;
  --accent2:       #22c55e;
  --muted:         #6b7280;
  --dark:          #0b1220;

  /* Layout */
  --topbar-h:      32px;
  --nav-top:       var(--topbar-h);
  --page-offset:   0px;
  --toc-top:       60px;

  /* Surface */
  --bg:            #f7f8fb;
  --card:          #fff;

  /* Homepage tokens */
  --ink:           #101317;
  --paper:         #fbfbfc;
  --line:          #e8eaee;
  --radius:        18px;
  --shadow:        0 18px 40px rgba(0,0,0,.08);
  --surface:       #f8fafc;

  /* OJS tokens */
  --ojs-bg:        #f2f4f7;
  --ojs-card:      #fff;
  --ojs-border:    #e5e7eb;
  --ojs-accent:    #003b44;
}


/* =============================================================================
   02. BASE / RESET
============================================================================= */
html, body {
  background: #fff;
  color: #222;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  width: 100%;
  overflow-x: hidden;
}

body.home   { background: #fbfbfc; }
body.admin  { background: linear-gradient(180deg, #f6f8fb, #fff); }
body.users  { background: var(--ojs-bg); }

/* Scroll offset for sticky header */
body { scroll-padding-top: var(--page-offset, 0px); }
body.hb-pad { padding-top: var(--page-offset, 0px); }


/* =============================================================================
   03. LAYOUT & CONTAINER
============================================================================= */
@media (min-width: 1200px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl { max-width: 1240px !important; }
}

.container,
.page-wrap,
.grid { overflow: visible; }

.page-wrap {
  padding-top: 20px;
  padding-bottom: 30px;
}

.container.page-wrap { position: relative; }

/* Two-column grid (TOC + Content) */
.grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 992px) {
  .grid { grid-template-columns: 1fr; }
}

/* Match height helper */
@media (min-width: 768px) {
  .match-height { display: flex; }
  .match-height > * { flex: 1 1 0; }
}

.shadow-soft { box-shadow: 0 8px 28px rgba(2,6,23,.06); }
.small-muted { color: var(--muted); font-size: .9rem; }


/* =============================================================================
   04. HEADER / NAVBAR  (hb-*)
============================================================================= */
.hb {
  position: relative;
  z-index: 1030;
}

.hb.hb--fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
}

.hb.hb--fixed .hb-bar {
  position: relative;
  top: auto;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.hb .container,
.hb .container-lg,
.hb .container-xl {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

/* Bar (white nav row) */
.hb-bar {
  background: #fff;
  border-bottom: 1px solid rgba(2,6,23,.1);
  box-shadow: 0 12px 30px rgba(2,6,23,.1);
}

.hb-bin {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
}

/* Brand */
.hb-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.hb-logo   { height: 42px; width: auto; }
.hb-btxt   { min-width: 0; }
.hb-btitle { font-weight: 1000; letter-spacing: .2px; color: #0b1020; line-height: 1.05; }
.hb-bsub   { font-size: .82rem; color: #6b7280; font-weight: 800; margin-top: 3px; }

/* Search bar */
.hb-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(2,6,23,.1);
  background: #fbfbfd;
  padding: 5px;
  border-radius: 14px;
}

.hb-sicon  { color: #6b7280; font-size: 1.05rem; }
.hb-sinput {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  width: 100%;
  font-weight: 800;
  color: #0b1020;
}
.hb-sbtn {
  border: 0;
  background: #003b44;
  color: #fff;
  font-weight: 900;
  padding: 5px 8px;
  border-radius: 12px;
}
.hb-sbtn:hover { opacity: .95; }

/* Action buttons */
.hb-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.hb-submit {
  background: #003b44;
  color: #fff;
  font-weight: 900;
  padding: 5px;
  text-decoration: none;
  border-radius: 12px;
}
.hb-submit:hover { opacity: .95; }

.hb-ubtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid rgba(2,6,23,.12);
  background: #fff;
  padding: 5px;
  border-radius: 12px;
  color: #0b1020;
  font-weight: 900;
}
.hb-ubtn:hover { background: #f6f8fb; }

.hb-uav {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,59,68,.1);
  color: #003b44;
  font-weight: 1000;
}

.hb-burger {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(2,6,23,.12);
  background: #fff;
  border-radius: 12px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.hb-burger span {
  display: block;
  height: 2px;
  width: 18px;
  background: #0b1020;
  margin: 0 auto;
  border-radius: 2px;
}

/* Dropdown */
.hb-dd {
  border-radius: 16px;
  border: 1px solid rgba(2,6,23,.12);
  box-shadow: 0 18px 55px rgba(2,6,23,.14);
  padding: 10px;
}
.hb-dd .dropdown-item { border-radius: 12px; padding: 10px 12px; font-weight: 800; }
.hb-dd .dropdown-item:hover { background: #f3f6fb; }

/* Nav menu row */
.hb-menu   { background: #fff; border-top: 1px solid rgba(2,6,23,.06); }

.hb-nav {
  list-style: none;
  margin: 0;
  padding: 5px 0 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.hb-nav .nav-item { position: relative; }

.hb-nav .nav-link {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: .5rem .5rem !important;
  font-weight: 700;
  color: #0b1220 !important;
  letter-spacing: .01em;
  position: relative;
  text-decoration: none !important;
}

/* Underline animation */
.hb-nav .nav-link::after {
  content: "";
  position: absolute;
  left: .75rem;
  right: .75rem;
  bottom: .28rem;
  height: 2px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(.6);
  transition: opacity .15s ease, transform .15s ease;
}
.hb-nav .nav-link:hover::after,
.hb-nav .nav-link:focus::after  { opacity: .55; transform: scaleX(1); }
.hb-nav .nav-link.active        { color: #003b44 !important; }
.hb-nav .nav-link.active::after { opacity: .8; transform: scaleX(1); }

/* Nav dropdowns */
.hb-nav .dropdown-menu {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.1);
  padding: .55rem;
  margin-top: .45rem;
}
.hb-nav .dropdown-item { border-radius: 10px; font-weight: 650; padding: .55rem .65rem; }
.hb-nav .dropdown-item:hover,
.hb-nav .dropdown-item:focus { background: rgba(0,59,68,.08); }

@media (min-width: 992px) {
  .hb-nav .dropdown:hover > .dropdown-menu { display: block; }
  .hb-nav .dropdown-menu { animation: hbFade .12s ease-out; }

  @keyframes hbFade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Submenu */
  .hb-nav .dropdown-submenu { position: relative; }
  .hb-nav .dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: .35rem;
    margin-top: -8px;
  }
}


/* =============================================================================
   05. TOPBAR RIBBON
============================================================================= */
.hb-ribbon {
  background: #0a1020;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding-left: 10px;
  padding-right: 10px;
  transition: transform .22s ease, opacity .22s ease;
}

.hb.hb--ribbon-hidden .hb-ribbon {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

.hb-rin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
}

.hb-r-left  { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hb-r-note  { font-weight: 800; font-size: .86rem; color: rgba(255,255,255,.78); }
.hb-r-link  {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-weight: 800;
  font-size: .86rem;
  margin-left: 14px;
}
.hb-r-link:hover { color: #fff; text-decoration: underline; }

/* Social icons in ribbon */
.hb-social { display: flex; gap: 8px; }
.hb-social a {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  border-radius: 10px;
}
.hb-social a:hover { background: rgba(255,255,255,.12); }


/* =============================================================================
   06. BREADCRUMB
============================================================================= */
.bb {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 16px;
}

.breadcrumb           { font-size: .92rem; }
.breadcrumb-item i    { font-size: .95rem; color: #003b44; }
.breadcrumb .breadcrumb-item a { font-weight: 600; }


/* =============================================================================
   07. SIDEBAR (Admin)
============================================================================= */
.sidebar {
  border-right: 1px solid rgba(0,0,0,.05);
  background: #fff;
  padding-top: 1rem;
  box-shadow: 0 6px 18px rgba(22,28,37,.06);
}

.sidebar .nav-link { color: #495057; padding: .5rem 1rem; border-radius: 6px; }
.sidebar .nav-link.active,
.sidebar .nav-link:hover {
  background: linear-gradient(90deg, rgba(11,94,215,.06), rgba(23,79,134,.03));
  color: #0b5ed7;
  font-weight: 600;
}

.sidebar .sidebar-heading {
  font-size: .75rem;
  text-transform: uppercase;
  color: #6c757d;
  letter-spacing: .06em;
}

/* Topbar (admin) */
.topbar {
  background: transparent;
  padding: .65rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.topbar .brand   { font-weight: 700; color: #174f86; font-size: 1.15rem; letter-spacing: .4px; }
.topbar .search  { min-width: 260px; max-width: 520px; width: 40vw; }
.topbar .quick-btn { margin-left: .5rem; }

.sticky-side { position: sticky; top: 84px; }
.right-actions .btn { justify-content: flex-start; }

/* Avatar (admin) */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e9eefb, #dcefff);
  color: #174f86;
  font-weight: 700;
  font-size: .9rem;
}

.alert-floating { position: sticky; top: 1rem; z-index: 50; }

/* Content card (admin) */
.content-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(22,28,37,.06);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.breadcrumbs { font-size: .9rem; color: #6c757d; }


/* =============================================================================
   08. TOC (Table of Contents)
============================================================================= */
.toc-col    { position: relative; }
#tocSpacer  { height: 0; transition: height .15s ease; }

.toc {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 8px;
  padding: 14px 12px;
  position: sticky;
  top: var(--toc-top);
  max-height: calc(100vh - (var(--toc-top) + 20px));
  overflow: auto;
  scrollbar-width: thin;
}

.toc.is-fixed {
  position: fixed !important;
  top: var(--toc-top) !important;
  left: 0;
  width: 280px;
  z-index: 1030;
}

.toc.stuck-bottom {
  position: absolute !important;
  top: auto !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 280px;
}

.toc h6 {
  font-weight: 700;
  color: #0b2e59;
  margin: 2px 0 8px;
  font-size: .95rem;
  position: sticky;
  top: 0;
  background: #fff;
  padding-top: 4px;
  padding-bottom: 6px;
}

.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 3px 0; }

.toc a {
  display: block;
  text-decoration: none;
  color: #0b2e59;
  padding: 6px 8px;
  border-radius: 6px;
  line-height: 1.3;
  transition: background .12s ease, color .12s ease, padding-left .12s ease;
  font-weight: 600;
  font-size: .95rem;
}
.toc a.small  { font-weight: 500; font-size: .9rem; }
.toc a.xsmall { font-weight: 500; font-size: .86rem; }

.toc a:hover  { background: rgba(13,110,253,.08); color: #0b2e59; padding-left: 12px; }
.toc a.active { background: rgba(13,110,253,.15); color: #0b2e59; }


/* =============================================================================
   09. ARTICLE READER
============================================================================= */
.reader-top     { margin-bottom: 18px; }
.reader-title   { color: var(--brand); font-weight: 700; font-size: 1.6rem; line-height: 1.15; }
.reader-meta small { color: #6c757d; }

.badge-open {
  color: #d63384;
  font-weight: 700;
  background: transparent;
  border: 1px solid rgba(214,51,132,.08);
  padding: .12rem .45rem;
  border-radius: 4px;
}

.badge-sec { /* article section label — add your styles here */ }

.authors-list a.mail { text-decoration: none; margin-left: .4rem; color: var(--brand); }
.toolbar .btn        { margin-right: 8px; }
.section-heading     { border-left: 4px solid #e9ecef; padding-left: 12px; margin: 18px 0 12px; font-weight: 700; }

/* Article body */
.card-article {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 8px;
  padding: 22px;
  line-height: 1.75;
}
.card-article h1,
.card-article h2,
.card-article h3,
.card-article h4 { color: #0b3d91; margin-top: .4rem; }

.card-sep  { border-bottom: 1px solid #e9ecef; padding-bottom: 18px; margin-bottom: 18px; }
.meta      { color: #6c757d; font-size: .92rem; }
.subfoot   { color: #6c757d; font-size: .93rem; }
.subfoot a { text-decoration: none; }

.reader-body img { max-width: 100%; height: auto; }

/* Right tabs */
.right-tabs .nav-link { cursor: pointer; }


/* =============================================================================
   10. AUTHOR DRAWER / POPOVER
============================================================================= */
.bs-popover-auto .popover-body,
.bs-popover-start .popover-body,
.bs-popover-end .popover-body,
.bs-popover-top .popover-body,
.bs-popover-bottom .popover-body { padding: 12px; }

.author-card           { min-width: 260px; max-width: 360px; }
.author-card h5        { margin: 0 0 8px; font-size: 1.05rem; }
.author-card .orcid    { color: #16a34a; font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: 6px; }
.author-card .aff      { margin-top: 8px; color: #495057; font-size: .9rem; }
.author-card .more     { margin-top: 10px; font-size: .85rem; }

/* Author resources side button */
.author-res-btn {
  position: fixed !important;
  top: 50% !important;
  right: 0 !important;
  transform: translateY(-50%) !important;
  z-index: 999999 !important;
  background: #003b44;
  color: #fff;
  border: 0;
  padding: 12px 6px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  box-shadow: -4px 4px 14px rgba(0,0,0,.25);
}

#authorResourcesOffcanvas { position: fixed !important; z-index: 999998 !important; }

/* Author tabs (dashboard) */
.author-tabs .nav { gap: .5rem; }

.author-tabs .nav-link {
  border-radius: 999px;
  padding: .45rem 1rem;
  font-size: .85rem;
  font-weight: 500;
  color: #555;
  background: #f4f6f9;
  border: 1px solid #e4e7ec;
  display: flex;
  align-items: center;
  gap: .35rem;
  transition: all .2s ease-in-out;
}
.author-tabs .nav-link:hover { background: #eef2ff; color: #1d4ed8; border-color: #c7d2fe; }
.author-tabs .nav-link.active {
  background: linear-gradient(135deg, #003b44, #2ce1fd);
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(37,99,235,.25);
}
.author-tabs .nav-link .badge        { background: rgba(255,255,255,.9); color: #1e3a8a; font-weight: 600; font-size: .7rem; border-radius: 999px; padding: .15rem .45rem; }
.author-tabs .nav-link.active .badge { background: rgba(255,255,255,.95); color: #1e40af; }


/* =============================================================================
   11. CARDS (General)
============================================================================= */
.card-like {
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  padding: 14px;
}

/* Article list card */
.article-title    { color: #174f86; font-weight: 700; font-size: 1.25rem; margin-bottom: .25rem; }
.open-access-badge { color: #d63384; font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; gap: .35rem; }
.meta-line        { color: #6c757d; margin-bottom: 4px; }
.authors-line     { margin-bottom: 6px; color: #2b2b2b; }
.article-actions a { margin-right: 12px; text-decoration: none; }
.article-actions .btn-link { text-decoration: none; color: var(--accent); }
.lock-icon        { font-size: .95rem; }


/* =============================================================================
   12. EDITORIAL BOARD
============================================================================= */
.eb-toolbar    { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.eb-search     { max-width: 420px; }
.eb-role-filter { max-width: 260px; }
.eb-section    { margin-bottom: 2rem; }

.eb-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 .75rem 0;
  padding: .25rem 0;
  border-bottom: 1px solid #e9ecef;
}
.eb-heading h3 { margin: 0; font-size: 1.25rem; font-weight: 800; }
.eb-count      { color: #6c757d; font-size: .9rem; }

.eb-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 576px) { .eb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .eb-grid { grid-template-columns: repeat(3, 1fr); } }

.eb-card {
  border: 1px solid #e9ecef;
  border-radius: .75rem;
  background: #fff;
  transition: box-shadow .2s ease, transform .2s ease;
}
.eb-card:hover { box-shadow: 0 .5rem 1rem rgba(0,0,0,.08); transform: translateY(-2px); }

.eb-card .eb-body   { padding: 1rem 1rem .75rem; }
.eb-card .eb-footer { padding: .75rem 1rem; background: #fcfcfd; border-top: 1px solid #f1f3f5; border-radius: 0 0 .75rem .75rem; }

.eb-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef2ff, #e3f2fd);
  color: #2b2d42;
  font-weight: 700;
  border: 1px solid #e5e7eb;
}

.eb-title    { margin: 0; font-size: 1.05rem; font-weight: 800; }
.eb-sub      { color: #6c757d; font-size: .9rem; }
.eb-bio      { color: #495057; font-size: .95rem; margin: .5rem 0 0; }

.eb-role-pill {
  display: inline-block;
  font-size: .75rem;
  line-height: 1;
  font-weight: 700;
  padding: .35rem .5rem;
  border-radius: 999px;
  border: 1px solid #e9ecef;
  background: #f8f9fa;
  color: #495057;
  margin-bottom: .35rem;
}

.eb-actions .btn { padding: .25rem .5rem; font-size: .8rem; }
.eb-empty {
  padding: 1rem;
  border: 1px dashed #e9ecef;
  border-radius: .75rem;
  color: #6c757d;
  background: #fcfcfd;
}

/* Modal scroll */
.eb-modal  { max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; }
.eb-scroll { overflow-y: auto; padding: 1rem; max-height: calc(90vh - 112px); }
.eb-sticky { position: sticky; z-index: 2; background: #fff; }
.eb-sticky:first-of-type { top: 0; }
.eb-sticky:last-of-type  { bottom: 0; }
.modal { overflow-y: auto !important; }

/* Showcase strip */
#editorial-board-showcase .member-card { flex: 0 0 100%; max-width: 100%; }
@media (min-width: 768px) {
  #editorial-board-showcase .member-card { flex: 0 0 19%; max-width: 19%; }
}
#editorial-board-showcase .card { height: 100%; }
#editorial-board-showcase .editorial-journal-badge {
  display: inline-block;
  width: 100%;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: center;
  color: #000;
}
#editorial-board-showcase .editorial-journal-badge.text-truncate { white-space: normal !important; }


/* =============================================================================
   13. ISSUE LIST
============================================================================= */
.ojs-issue-list .list-group-item {
  border: 1px solid #e5e7eb;
  margin-bottom: .5rem;
  border-radius: .5rem;
  background: #fff;
}
.ojs-issue-item .fw-semibold a { text-decoration: none; }
.ojs-issue-item .fw-semibold a:hover { text-decoration: underline; }

/* Drag handle */
.ojs-handle       { cursor: grab; user-select: none; font-size: 18px; width: 1.5rem; text-align: center; color: #6b7280; }
.ojs-issue-item.dragging { opacity: .6; }
.ojs-order-on .ojs-row-actions { opacity: .35; pointer-events: none; }
#issueOrderBar.saved::after { content: " Saved"; margin-left: .5rem; color: #198754; font-weight: 600; }


/* =============================================================================
   14. HOMEPAGE HERO  (nr-hero carousel)
============================================================================= */
.nr-hero {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
}
.nr-hero .carousel-indicators { margin-bottom: 10px; }
.nr-hero .carousel-indicators [data-bs-target] { width: 28px; height: 4px; border-radius: 999px; opacity: .45; }
.nr-hero .carousel-indicators .active { opacity: 1; }

.nr-hero-slide {
  position: relative;
  min-height: 320px;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
}

.nr-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 380px at 15% 25%, rgba(34,197,94,.18), transparent 60%),
    radial-gradient(900px 420px at 85% 10%, rgba(14,165,233,.16), transparent 60%),
    linear-gradient(90deg, rgba(2,6,23,.78) 0%, rgba(2,6,23,.6) 40%, rgba(2,6,23,.1) 100%);
}

.nr-hero-body {
  position: relative;
  padding: 18px;
  max-width: 720px;
  color: #fff;
}
@media (min-width: 992px) { .nr-hero-body { padding: 22px; } }

.nr-hero-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.nr-hero-top .nr-chip { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); color: #fff; }

.nr-hero-title { font-weight: 1000; letter-spacing: .2px; line-height: 1.15; font-size: clamp(18px, 2.1vw, 28px); margin: 6px 0 10px; }
.nr-hero-title a       { color: #fff; text-decoration: none; }
.nr-hero-title a:hover { text-decoration: underline; }

.nr-hero-meta          { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: rgba(255,255,255,.82); }
.nr-hero-meta .sep     { opacity: .6; }
.nr-hero-doi a         { color: #7dd3fc; font-weight: 900; text-decoration: none; }
.nr-hero-doi a:hover   { text-decoration: underline; }

.nr-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.nr-hero .carousel-control-prev,
.nr-hero .carousel-control-next { width: 48px; opacity: 1; }
.nr-hero .carousel-control-prev-icon,
.nr-hero .carousel-control-next-icon { filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); }

.nr-hero-progress { margin-top: 14px; height: 4px; background: rgba(255,255,255,.18); border-radius: 999px; overflow: hidden; }
.nr-hero-bar      { display: block; height: 4px; width: 0; background: rgba(255,255,255,.92); border-radius: 999px; }
.nr-hero-hint     { margin-top: 10px; }


/* =============================================================================
   15. HOMEPAGE FEED & TABS  (nr-*)
============================================================================= */
/* Top dark section */
.nr-top {
  background:
    radial-gradient(800px 380px at 20% 20%, rgba(34,197,94,.2), transparent 60%),
    radial-gradient(900px 420px at 85% 10%, rgba(14,165,233,.18), transparent 60%),
    linear-gradient(180deg, #0b1020 0%, #0a0f1a 100%);
  color: #fff;
  padding: 42px 0 26px;
  position: relative;
}

.nr-mast { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: start; }
@media (max-width: 991px) { .nr-mast { grid-template-columns: 1fr; } }

.nr-kicker  { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.nr-title   { font-size: clamp(30px, 3vw, 44px); font-weight: 900; letter-spacing: .2px; margin: 10px 0; }
.nr-sub     { color: rgba(255,255,255,.75); line-height: 1.65; max-width: 62ch; }
.nr-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }

/* Generic button pill */
.nr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.2);
  transition: transform .12s ease, opacity .12s ease;
}
.nr-btn:hover         { transform: translateY(-1px); opacity: .96; }
.nr-btn--solid        { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #06101a; border-color: transparent; }
.nr-btn--ghost        { background: rgba(255,255,255,.06); color: #fff; }
.nr-btn--pdf          { border-color: rgba(0,0,0,.12); background: #fff; color: var(--ink); }

/* Info panel (dark hero side) */
.nr-panel { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.nr-panel__row        { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,.18); }
.nr-panel__row:last-of-type { border-bottom: 0; }
.nr-panel__label      { color: rgba(255,255,255,.65); font-weight: 600; }
.nr-panel__value      { color: rgba(255,255,255,.92); font-weight: 800; text-align: right; }
.nr-panel__stats      { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.nr-stat              { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 10px; text-align: center; }
.nr-stat__n           { font-weight: 900; font-size: 14px; }
.nr-stat__t           { font-size: 12px; color: rgba(255,255,255,.65); }
.nr-panel__links      { display: grid; gap: 8px; margin-top: 12px; }
.nr-link              { color: rgba(255,255,255,.86); text-decoration: none; font-weight: 700; font-size: 13px; }
.nr-link:hover        { text-decoration: underline; }

/* Main content area */
.nr-main { background: var(--paper); padding: 26px 0 30px; }

/* Tabs */
.nr-tabs    { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.nr-navtabs { gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.nr-navtabs .nav-link { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-weight: 800; color: var(--ink); background: #fff; }
.nr-navtabs .nav-link.active { background: linear-gradient(135deg, rgba(14,165,233,.16), rgba(34,197,94,.14)); border-color: rgba(14,165,233,.35); }
.nr-tabcontent { padding-top: 14px; }

/* Article list grid */
.nr-listgrid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 992px) { .nr-listgrid { grid-template-columns: 1fr 1fr; } }

/* Mini article card */
.nr-mini { display: grid; grid-template-columns: 110px 1fr; gap: 12px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.nr-mini__thumb  { display: block; height: 100%; min-height: 92px; background-size: cover; background-position: center; }
.nr-mini__body   { padding: 10px; }
.nr-mini__title  { font-weight: 900; color: var(--ink); line-height: 1.25; font-size: 14px; }
.nr-mini__title a        { color: inherit; text-decoration: none; }
.nr-mini__title a:hover  { text-decoration: underline; }
.nr-mini__meta   { margin-top: 6px; font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.nr-mini__meta .sep { opacity: .5; }
.nr-mini__actions { margin-top: 10px; display: flex; gap: 8px; }

/* Feed section */
.nr-feed { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.nr-feed__tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin-bottom: 12px; }
.nr-feed__left,
.nr-feed__right { flex: 1; min-width: 220px; }

.nr-lbl    { font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; display: block; }
.nr-select,
.nr-input  { border-radius: 999px !important; border: 1px solid var(--line) !important; padding-left: 14px !important; padding-right: 14px !important; }

.nr-feed__grid { display: grid; grid-template-columns: 1fr; gap: 12px; }

/* Feed card */
.nr-feedcard { display: grid; grid-template-columns: 120px 1fr; gap: 12px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
@media (max-width: 420px) { .nr-feedcard { grid-template-columns: 1fr; } }

.nr-feedcard__thumb  { display: block; min-height: 110px; background-size: cover; background-position: center; }
.nr-feedcard__body   { padding: 10px; }
.nr-feedcard__top    { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.nr-feedcard__title  { font-weight: 1000; color: var(--ink); line-height: 1.25; font-size: 14px; }
.nr-feedcard__title a       { color: inherit; text-decoration: none; }
.nr-feedcard__title a:hover { text-decoration: underline; }
.nr-feedcard__meta   { margin-top: 6px; font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.nr-feedcard__meta .sep { opacity: .5; }
.nr-feedcard__actions { margin-top: 10px; display: flex; gap: 8px; }

.nr-feed__empty { margin-top: 12px; color: var(--muted); font-weight: 800; border: 1px dashed var(--line); border-radius: 14px; padding: 12px; text-align: center; }

/* Section heading label */
.nr-hlabel { font-weight: 900; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; color: var(--ink); }
.nr-hrule  { height: 1px; background: linear-gradient(90deg, var(--line), transparent); flex: 1; }

/* Chip / date pill */
.nr-chip { background: linear-gradient(135deg, rgba(14,165,233,.14), rgba(34,197,94,.12)); border: 1px solid rgba(14,165,233,.25); color: var(--ink); font-weight: 900; font-size: 12px; padding: 6px 10px; border-radius: 999px; }
.nr-date { color: var(--muted); font-size: 12px; font-weight: 700; }

/* Pill buttons */
.nr-pill       { font-size: 12px; font-weight: 900; border: 1px solid var(--line); color: var(--ink); text-decoration: none; border-radius: 999px; padding: 6px 10px; background: #fff; }
.nr-pill--pdf  { border-color: rgba(239,68,68,.28); color: #b91c1c; }


/* =============================================================================
   16. HOMEPAGE TRENDING / BOXES
============================================================================= */
.nr-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.nr-box__head  { margin-bottom: 10px; }
.nr-box__title { font-weight: 1000; color: var(--ink); font-size: 16px; }
.nr-box__sub   { color: var(--muted); font-size: 12px; }

.nr-trending { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.nr-trending__item { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 10px; border: 1px dashed var(--line); border-radius: 14px; }
.nr-trending__rank { width: 34px; height: 34px; border-radius: 12px; background: linear-gradient(135deg, rgba(14,165,233,.18), rgba(34,197,94,.16)); display: flex; align-items: center; justify-content: center; font-weight: 1000; color: var(--ink); }
.nr-trending__t       { font-weight: 900; color: var(--ink); text-decoration: none; line-height: 1.25; }
.nr-trending__t:hover { text-decoration: underline; }
.nr-trending__m       { margin-top: 4px; font-size: 12px; color: var(--muted); }

/* EIC card */
.nr-eic       { border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: linear-gradient(135deg, rgba(0,0,0,.02), rgba(14,165,233,.06)); }
.nr-eic__name { font-weight: 1000; color: var(--ink); font-size: 15px; }
.nr-eic__aff  { color: var(--muted); font-size: 12px; margin-top: 3px; }
.nr-eic__note { margin-top: 10px; font-size: 12px; color: var(--muted); }

/* Impact box */
.nr-impact          { padding: 12px 14px; }
.nr-impact__value   { display: flex; align-items: center; gap: 6px; font-size: 1.05rem; font-weight: 700; color: #003b44; }
.nr-impact__value a { color: #003b44; text-decoration: none; }
.nr-impact__value a:hover { text-decoration: underline; }
.nr-impact__value i { color: #0d6efd; font-size: 1.2rem; }
.nr-impact__note    { margin-top: 6px; font-size: .85rem; color: #6b7280; }


/* =============================================================================
   17. HOMEPAGE FEATURED STORY
============================================================================= */
.nr-featured { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.nr-featured__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

.nr-story { display: grid; grid-template-columns: .95fr 1.05fr; gap: 14px; align-items: stretch; }
@media (max-width: 991px) { .nr-story { grid-template-columns: 1fr; } }

.nr-story__media  { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.nr-story__img    { height: 100%; min-height: 260px; background-size: cover; background-position: center; filter: saturate(1.06) contrast(1.04); }
.nr-story__tag    { position: absolute; left: 12px; top: 12px; background: rgba(16,19,23,.78); color: #fff; border: 1px solid rgba(255,255,255,.16); padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.nr-story__body   { padding: 4px; }
.nr-story__title  { font-weight: 900; color: var(--ink); font-size: 22px; line-height: 1.25; margin-bottom: 10px; }
.nr-story__title a        { color: inherit; text-decoration: none; }
.nr-story__title a:hover  { text-decoration: underline; }
.nr-story__meta   { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.nr-story__doi    { font-size: 13px; color: var(--ink); }
.nr-story__doi a  { color: var(--accent); text-decoration: none; font-weight: 800; }
.nr-story__doi a:hover { text-decoration: underline; }
.nr-story__cta    { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }


/* =============================================================================
   18. HOMEPAGE ISSUE STRIP
============================================================================= */
.nr-issue-strip { background: linear-gradient(135deg, rgba(14,165,233,.1), rgba(34,197,94,.1)); padding: 18px 0; }

.nr-strip { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.nr-strip__k     { font-size: 12px; font-weight: 1000; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nr-strip__t     { font-size: 16px; font-weight: 1000; color: var(--ink); margin-top: 4px; }
.nr-strip__d     { color: var(--muted); margin-top: 4px; }
.nr-strip__right { display: flex; flex-wrap: wrap; gap: 10px; }


/* =============================================================================
   19. HOMEPAGE LINKS BOX
============================================================================= */
.nr-linksbox .nr-box__title { display: flex; align-items: center; gap: 8px; }
.nr-linklist { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }

.nr-linklist li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: var(--ink);
  font-weight: 900;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.nr-linklist li a:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.06); border-color: rgba(14,165,233,.35); }

.nr-licon { width: 34px; height: 34px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(14,165,233,.14), rgba(34,197,94,.12)); border: 1px solid rgba(14,165,233,.25); flex: 0 0 auto; }
.nr-licon i { font-size: 16px; }
.nr-ltxt    { flex: 1 1 auto; min-width: 0; }
.nr-lext    { opacity: .65; flex: 0 0 auto; }


/* =============================================================================
   20. HOMEPAGE CFP BANNER
============================================================================= */
.cfp-banner {
  border-radius: 1rem;
  background: linear-gradient(135deg, #004d40 0%, #00695c 25%, #009688 60%, #26a69a 100%);
  position: relative;
  overflow: hidden;
}
.cfp-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.25), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(0,0,0,.25), transparent 55%),
    linear-gradient(45deg, rgba(255,255,255,.05), rgba(0,0,0,.05));
  opacity: .7;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.cfp-banner .card-body { position: relative; z-index: 1; }
.cfp-icon-wrap   { width: 42px; height: 42px; background: rgba(0,0,0,.22); color: #fff; font-size: 1.5rem; box-shadow: inset 0 0 8px rgba(0,0,0,.3); }
.cfp-btn-primary { color: #004d40 !important; }
.cfp-btn-outline { border-color: rgba(255,255,255,.85); color: #fff !important; }
.cfp-btn-outline:hover { background-color: rgba(255,255,255,.18); }
.text-white-75   { color: rgba(255,255,255,.85) !important; }

/* CFP mini inline */
.nr-cfp-mini__body { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.nr-cfp-mini__text { font-weight: 900; font-size: 14px; color: var(--ink); line-height: 1.35; max-width: 100ch; }
.nr-cfp-mini__btn  {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #06101a;
  font-weight: 900;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.nr-cfp-mini__btn:hover { opacity: .95; }


/* =============================================================================
   21. DASHBOARD / AUTHOR TABS
============================================================================= */
.dashboard-tab-card .card-header { background: #f8fafc; border-bottom: 1px solid #eef2f7; }
.dashboard-tab-card { border-radius: .75rem; }

.dashboard-filter-bar { background: #f9fafb; border-bottom: 1px solid #eef2f7; }
.dashboard-filter-bar .form-control,
.dashboard-filter-bar .form-select { font-size: .85rem; }

.dashboard-table th { font-size: .72rem; letter-spacing: .05em; }
.dashboard-table tbody tr:hover { background-color: #f8fafc; }


/* =============================================================================
   22. WORKFLOW STEPS  (wf-*)
============================================================================= */
.wf-title      { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wf-title h1   { font-size: 1.25rem; margin: 0; }
.wf-topbar     { display: flex; gap: 10px; align-items: center; }
.wf-topbar .btn { padding: .4rem .75rem; }

.wf-steps { display: flex; gap: 10px; flex-wrap: wrap; }
.wf-step  {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 10px;
  padding: 10px 12px;
}
.wf-step .dot {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.wf-step.active    { border-color: rgba(13,110,253,.45); box-shadow: 0 6px 18px rgba(13,110,253,.12); }

.dot.submission  { background: #6b7280; }
.dot.review      { background: #0d6efd; }
.dot.production  { background: #f59e0b; }
.dot.publication { background: #10b981; }

.wf-tabs             { border-bottom: 1px solid #e5e7eb; margin-top: 8px; }
.wf-tabs .nav-link   { border: none; border-bottom: 3px solid transparent; color: #111827; padding: .65rem .9rem; }
.wf-tabs .nav-link.active { border-color: #0d6efd; color: #0d6efd; background: transparent; }


/* =============================================================================
   23. USER / OJS LIST  (ojs-*)
============================================================================= */
.ojs-strip           { border-bottom: 1px solid var(--ojs-border); margin-bottom: .75rem; }
.ojs-strip .nav-link { color: #111827; padding: .5rem .75rem; }
.ojs-strip .nav-link.active {
  border: 1px solid var(--ojs-border);
  border-bottom-color: #fff;
  background: #fff;
  border-top-left-radius: .4rem;
  border-top-right-radius: .4rem;
}

.ojs-head  { background: linear-gradient(180deg, #fff, #f9fafb); border: 1px solid var(--ojs-border); border-radius: .5rem; padding: .85rem 1rem; }
.ojs-title { font-weight: 700; }

.ojs-list  { display: flex; flex-direction: column; gap: .75rem; }
.ojs-item  { background: var(--ojs-card); border: 1px solid var(--ojs-border); border-radius: .6rem; padding: .75rem .9rem; box-shadow: 0 1px 0 rgba(16,24,40,.02); }
.ojs-item:hover { background: #fbfcff; }

.ojs-row        { display: flex; gap: .75rem; align-items: flex-start; }
.ojs-col-main   { flex: 1 1 auto; min-width: 0; }
.ojs-col-actions { flex: 0 0 auto; display: flex; gap: .5rem; align-items: center; }
.ojs-actions .btn { white-space: nowrap; }

.ojs-name    { font-weight: 700; }
.ojs-meta    { color: #6b7280; font-size: .875rem; }
.ojs-badges  { margin-top: .25rem; display: flex; flex-wrap: wrap; gap: .35rem; }

.role-chip {
  display: inline-block;
  padding: .22rem .5rem;
  font-size: .78rem;
  background: #eef2f7;
  border: 1px solid var(--ojs-border);
  border-radius: 999px;
  color: #111827;
}
.badge-primary-role { padding: .3rem .55rem; border-radius: 999px; font-weight: 600; }

.ojs-expand { color: #6b7280; font-size: .85rem; cursor: pointer; user-select: none; }
.ojs-extra  { display: none; padding-top: .5rem; border-top: 1px dashed var(--ojs-border); margin-top: .5rem; color: #374151; }


/* =============================================================================
   24. SUBMISSION CARDS
============================================================================= */
.main-content .card:first-child  { margin-top: 0 !important; }
.list-group-item                 { border-radius: .5rem; }
.list-group-item.submission-card { position: relative; }

.submission-title   { font-weight: 600; line-height: 1.3; }
.submission-meta small { color: #6c757d; }

.submission-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: nowrap;
  position: absolute;
  right: 1rem;
  bottom: 1rem;
}


/* =============================================================================
   25. FORMS & AUTH
============================================================================= */
.auth-hero {
  background: linear-gradient(135deg, #6c5ce7 0%, #00b4d8 100%);
  color: #fff;
  border-radius: 1rem;
  height: 100%;
}
.brand-small { color: #0b5ed7; font-weight: 700; font-size: 1.05rem; }
.form-hint   { color: var(--muted); font-size: .9rem; }

/* Password strength meter */
.pw-meter { height: 6px; background: #eef2f7; border-radius: 6px; overflow: hidden; }
.pw-bar   { height: 6px; width: 0; background: var(--accent); transition: width .25s; }

/* Social login buttons */
.social-btn { display: flex; gap: 8px; align-items: center; justify-content: center; border-radius: 8px; padding: .6rem .8rem; font-weight: 600; width: 100%; }
.social-btn.google { background: #fff; color: #111; border: 1px solid #e6e6e6; }
.social-btn.orcid  { background: #2fb6be; color: #fff; border: 0; }


/* =============================================================================
   26. BUTTONS (overrides)
============================================================================= */
.btn-primary {
  --bs-btn-color:              #fff;
  --bs-btn-bg:                 #003b44;
  --bs-btn-border-color:       #003b44;
  --bs-btn-hover-color:        #fff;
  --bs-btn-hover-bg:           #008080;
  --bs-btn-hover-border-color: #008080;
  --bs-btn-focus-shadow-rgb:   49, 132, 253;
  --bs-btn-active-color:       #fff;
  --bs-btn-active-bg:          #008080;
  --bs-btn-active-border-color:#008080;
  --bs-btn-active-shadow:      inset 0 3px 5px rgba(0,0,0,.125);
  --bs-btn-disabled-color:     #fff;
  --bs-btn-disabled-bg:        #008080;
  --bs-btn-disabled-border-color: #008080;
}


/* =============================================================================
   27. BADGES & CHIPS
============================================================================= */
.badge-status {
  font-size: .72rem;
  padding: .25rem .55rem;
  border-radius: 999px;
  font-weight: 500;
}

/* Action chips */
.action-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e1e5ea;
  background: #f8f9fb;
  cursor: pointer;
  transition: all .18s ease-in-out;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.action-chip-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  background: rgba(13,110,253,.07);
  font-size: 14px;
}
.action-chip-body  { line-height: 1.1; }
.action-chip-label { font-size: 12px; font-weight: 600; color: #111827; }
.action-chip-sub   { font-size: 10px; color: #6b7280; }
.action-chip:hover { background: #fff; border-color: #cbd5f5; box-shadow: 0 4px 10px rgba(15,23,42,.08); transform: translateY(-1px); }

/* Accent chip variant */
.action-chip-accent { border-color: rgba(13,110,253,.25); background: rgba(13,110,253,.03); }
.action-chip-accent .action-chip-icon  { background: #0d6efd; color: #fff; }
.action-chip-accent .action-chip-label { color: #0d1729; }
.action-chip-accent:hover { background: #0d6efd; border-color: #0d6efd; }
.action-chip-accent:hover .action-chip-label,
.action-chip-accent:hover .action-chip-sub { color: #fff; }

/* Journal description toggle */
.journal-desc          { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.journal-desc-expanded { max-height: 9999px; }

/* ============================================================
   WORKFLOW PAGE — REDESIGN v2
   Design: Refined Academic Editorial — slate + indigo accent
   Font: Playfair Display (headings) + DM Sans (body)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --wf-bg:         #f4f5f7;
  --wf-surface:    #ffffff;
  --wf-border:     #e2e5ec;
  --wf-accent:     #068a9e;
  --wf-accent2:    #008080;
  --wf-text:       #1e2130;
  --wf-muted:      #6b7280;
  --wf-done:       #059669;
  --wf-radius:     14px;
  --wf-shadow:     0 2px 16px rgba(79,70,229,.07), 0 1px 4px rgba(0,0,0,.05);
  --wf-shadow-md:  0 4px 24px rgba(79,70,229,.11), 0 2px 8px rgba(0,0,0,.07);
}


/* --- Hero Header --- */
.wf-hero {
  background: linear-gradient(135deg, #003b44 0%, #0d6f7e 60%, #6fcddb 100%);
  border-radius: var(--wf-radius);
  padding: 2rem 2rem 1.6rem;
  /* margin-bottom: 1.75rem; */
  position: relative;
  overflow: hidden;
  box-shadow: var(--wf-shadow-md);
}
.wf-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(124,58,237,.35) 0%, transparent 70%);
  pointer-events: none;
}
.wf-hero::after {
  content: '';
  position: absolute;
  bottom: -20px; left: 30%;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(79,70,229,.2) 0%, transparent 70%);
  pointer-events: none;
}
.wf-hero-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: .4rem;
}
.wf-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  margin-bottom: .6rem;
}
.wf-status-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .75rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
}
.wf-hero-meta {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  margin-top: .6rem;
}
.wf-hero-actions .btn {
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  font-weight: 500;
  border-radius: 10px;
  padding: .45rem 1rem;
  border: 1.5px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(6px);
  transition: all .18s;
  width: 120px;
}
.wf-hero-actions .btn:hover { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.4); }
.wf-hero-actions .btn-publish {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  border-color: transparent;
}
.wf-hero-actions .btn-publish:hover { filter: brightness(1.1); }

/* --- Stepper --- */
.wf-stepper {
  display: flex;
  gap: 0;
  background: var(--wf-surface);
  border-radius: var(--wf-radius);
  box-shadow: var(--wf-shadow);
  border: 1px solid var(--wf-border);
  overflow: hidden;
  margin-bottom: 1.5rem;
  margin-top: 10px;
}
.wf-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  font-weight: 500;
  color: var(--wf-muted);
  border-right: 1px solid var(--wf-border);
  position: relative;
  transition: background .18s;
}
.wf-step:last-child { border-right: none; }
.wf-step-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  background: #f0f1f5;
  color: var(--wf-muted);
  flex-shrink: 0;
  transition: all .18s;
}
.wf-step.is-done .wf-step-icon  { background: #d1fae5; color: var(--wf-done); }
.wf-step.is-done .wf-step-label { color: var(--wf-done); font-weight: 500; }
.wf-step.is-active { background: #f5f3ff; }
.wf-step.is-active .wf-step-icon  { background: var(--wf-accent); color: #fff; box-shadow: 0 0 0 4px rgba(79,70,229,.15); }
.wf-step.is-active .wf-step-label { color: var(--wf-accent); font-weight: 600; }
.wf-step-num { font-size: .65rem; color: var(--wf-muted); margin-top: .05rem; }
.wf-step.is-done .wf-step-check { display: inline-block; }
.wf-step-check { display: none; margin-left: auto; font-size: .9rem; color: var(--wf-done); }

/* --- Tab Nav --- */
.wf-tabnav {
  display: flex;
  gap: .35rem;
  padding: .5rem;
  background: var(--wf-surface);
  border-radius: 12px;
  border: 1px solid var(--wf-border);
  box-shadow: var(--wf-shadow);
  /* margin-bottom: 1.75rem; */
}
.wf-tabnav .nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  font-weight: 500;
  color: var(--wf-muted);
  border-radius: 9px;
  padding: .55rem 1.1rem;
  border: none;
  background: transparent;
  display: flex; align-items: center; gap: .4rem;
  transition: all .15s;
}
.wf-tabnav .nav-link i { font-size: .9rem; }
.wf-tabnav .nav-link:hover { background: #f3f4f8; color: var(--wf-text); }
.wf-tabnav .nav-link.active {
  background: var(--wf-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(79,70,229,.3);
}

/* --- Cards --- */
.wf-card {
  background: var(--wf-surface);
  border-radius: var(--wf-radius);
  border: 1px solid var(--wf-border);
  box-shadow: var(--wf-shadow);
  margin-bottom: 1.4rem;
  overflow: hidden;
  transition: box-shadow .18s;
}
.wf-card:hover { box-shadow: var(--wf-shadow-md); }
.wf-card-header {
  padding: 1rem 1.25rem .75rem;
  border-bottom: 1px solid var(--wf-border);
  display: flex; align-items: center; justify-content: space-between;
  background: #fafbfd;
}
.wf-card-header h5 {
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--wf-muted);
  margin: 0;
  display: flex; align-items: center; gap: .5rem;
}
.wf-card-header h5 i { font-size: .95rem; color: var(--wf-accent); }
.wf-card-body { padding: 1.25rem; }
.wf-card-body.small { padding: 1rem 1.25rem; font-size: .84rem; }

/* --- Author chip --- */
.wf-author-chip {
  border-bottom: 1px solid var(--wf-border);
  padding: .7rem 0;
}
.wf-author-chip:last-child { border-bottom: none; padding-bottom: 0; }
.wf-author-chip .name { font-weight: 600; font-size: .88rem; }
.wf-author-chip .detail { font-size: .78rem; color: var(--wf-muted); }
.wf-author-chip .detail i { color: var(--wf-accent); opacity: .7; }

/* --- DL meta list --- */
.wf-meta dt { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--wf-muted); padding: .45rem 0; }
.wf-meta dd { font-size: .84rem; padding: .45rem 0; border-bottom: 1px solid var(--wf-border); color: var(--wf-text); }
.wf-meta dd:last-child { border-bottom: none; }

/* --- Action buttons --- */
.wf-btn { border-radius: 9px; font-size: .82rem; font-weight: 500; padding: .5rem 1.1rem; transition: all .15s; border: 1.5px solid; }
.wf-btn-primary { background: var(--wf-accent); color: #fff; border-color: var(--wf-accent); }
.wf-btn-primary:hover { background: #15c2dd; border-color: #3730a3; color: #fff; }
.wf-btn-outline { background: transparent; color: var(--wf-accent); border-color: var(--wf-accent); }
.wf-btn-outline:hover { background: #ede9fe; }
.wf-btn-danger { background: #dc2626; color: #fff; border-color: #dc2626; }
.wf-btn-danger:hover { background: #b91c1c; }
.wf-btn-success { background: var(--wf-done); color: #fff; border-color: var(--wf-done); }
.wf-btn-sm { padding: .32rem .75rem; font-size: .78rem; border-radius: 7px; }

/* --- Reviewer row --- */
.wf-reviewer-row {
  border: 1px solid var(--wf-border);
  border-radius: 10px;
  padding: .9rem 1rem;
  margin-bottom: .65rem;
  background: #fafbfd;
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  transition: border-color .15s;
}
.wf-reviewer-row:hover { border-color: #c4b5fd; }
.wf-reviewer-badge { font-size: .7rem; padding: .2rem .6rem; border-radius: 999px; font-weight: 600; }

/* --- Alerts --- */
.wf-alert { border-radius: 10px; padding: .8rem 1rem; font-size: .84rem; border: 1px solid; margin-bottom: 1rem; display: flex; align-items: flex-start; gap: .6rem; }
.wf-alert i { font-size: 1rem; flex-shrink: 0; margin-top: .05rem; }
.wf-alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.wf-alert-danger  { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.wf-alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }

/* --- Submitter card mini --- */
.wf-submitter {
  display: flex; align-items: center; gap: .9rem;
}
.wf-submitter-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--wf-accent), var(--wf-accent2));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; flex-shrink: 0;
}
.wf-submitter-name { font-weight: 600; font-size: .9rem; }
.wf-submitter-detail { font-size: .78rem; color: var(--wf-muted); }

/* --- Flash alerts override --- */
.wf-flash-bar { border-radius: 10px; font-size: .84rem; margin-bottom: 1.1rem; }

/* --- Review timeline (decisions) --- */
.wf-timeline-item {
  display: flex; gap: .8rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--wf-border);
}
.wf-timeline-item:last-child { border-bottom: none; }
.wf-timeline-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: #f0f1f5; display: flex; align-items: center; justify-content: center;
  font-size: .8rem; flex-shrink: 0; margin-top: .15rem;
}

/* --- File item --- */
.wf-file-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .75rem;
  border: 1px solid var(--wf-border);
  border-radius: 8px;
  margin-bottom: .45rem;
  background: #fafbfd;
  font-size: .82rem;
}
.wf-file-item i.file-icon { color: var(--wf-accent); font-size: 1rem; }
.wf-file-item a { color: var(--wf-text); text-decoration: none; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-file-item a:hover { color: var(--wf-accent); }

/* --- Sticky sidebar --- */
.wf-sticky { position: sticky; top: 1rem; }

/* --- Round tabs (inside review) --- */
.wf-round-tabs { border-bottom: 2px solid var(--wf-border); margin-bottom: 1.2rem; display: flex; gap: .15rem; }
.wf-round-tabs .nav-link { font-size: .8rem; color: var(--wf-muted); border-bottom: 2.5px solid transparent; border-radius: 0; padding: .5rem .9rem; margin-bottom: -2px; }
.wf-round-tabs .nav-link.active { color: var(--wf-accent); border-bottom-color: var(--wf-accent); font-weight: 600; background: transparent; }

/* --- Progress override --- */
.wf-pipeline { display: flex; gap: 0; margin-bottom: 0; }

/* --- Offcanvas (Activity Log) button --- */
.wf-log-fab {
  position: fixed;
  top: 50%; right: 0;
  transform: translateY(-50%);
  z-index: 1050;
  writing-mode: vertical-rl;
  padding: 14px 7px;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--wf-accent), var(--wf-accent2));
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  border: none;
  box-shadow: -3px 0 16px rgba(79,70,229,.25);
}

/* --- Offcanvas header --- */
#workflowOffcanvas .offcanvas-header { background: linear-gradient(135deg, var(--wf-accent), var(--wf-accent2)); }

/* --- Tab content spacing --- */
.tab-content {/* margin-top: 1.2rem; */}
.tab-content > .tab-pane.show { padding-top: 0; }

/* --- Fix production tab gap --- */
#tabProduction { padding-top: 0 !important; }
#tabProduction > .row { margin-top: 0; }
.tab-content > .tab-pane { min-height: 0; }

@media (max-width: 576px) {
  .wf-hero { padding: 1.4rem 1.2rem 1.2rem; }
  .wf-hero h1 { font-size: 1.05rem; }
  .wf-stepper { flex-direction: column; }
  .wf-step { border-right: none; border-bottom: 1px solid var(--wf-border); }
  .wf-step:last-child { border-bottom: none; }
  .wf-tabnav { flex-wrap: wrap; }
}

.jm-widget-wrap { /* optional outer wrapper, agar aa_widget_block use karo */ }

.jm-card {
  background: #fff;
  border: 1px solid #e8eaee;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}

/* Header */
.jm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #003b44 0%, #00686e 100%);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.jm-head-left   { display: flex; align-items: center; gap: 10px; }
.jm-head-icon   {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #7dd3fc;
}
.jm-head-title  { font-weight: 900; font-size: .95rem; color: #fff; line-height: 1; }
.jm-head-sub    { font-size: .75rem; color: rgba(255,255,255,.65); margin-top: 2px; }
.jm-head-badge  {
  font-size: .7rem; font-weight: 900; letter-spacing: .06em;
  background: rgba(34,197,94,.2);
  border: 1px solid rgba(34,197,94,.45);
  color: #86efac;
  padding: 4px 10px; border-radius: 999px;
}

/* Metrics rows */
.jm-list { padding: 6px 0; }

.jm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  gap: 8px;
  border-bottom: 1px solid #f1f3f6;
  transition: background .12s ease;
}
.jm-row:last-child { border-bottom: 0; }
.jm-row:hover      { background: #f8fafc; }

.jm-row--highlight { background: #fafbfd; }
.jm-row--accent    { background: linear-gradient(90deg, rgba(0,59,68,.04), transparent); }

.jm-row-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .83rem;
  font-weight: 700;
  color: #374151;
}
.jm-row-icon  { color: #003b44; font-size: .85rem; opacity: .75; }

.jm-row-value {
  font-size: .88rem;
  font-weight: 800;
  color: #111827;
  text-align: right;
  white-space: nowrap;
}
.jm-row-value--mono { font-family: 'Courier New', monospace; font-size: .82rem; color: #003b44; }

/* Special value styles */
.jm-val-big {
  font-size: 1.05rem;
  font-weight: 900;
  color: #003b44;
}
.jm-val-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(0,59,68,.1), rgba(0,104,110,.1));
  border: 1px solid rgba(0,59,68,.2);
  color: #003b44;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: .82rem;
  font-weight: 900;
}

/* Footer */
.jm-footer {
  padding: 10px 16px;
  font-size: .75rem;
  color: #9ca3af;
  font-weight: 600;
  border-top: 1px solid #f1f3f6;
  background: #fafbfc;
}
/* =============================================================================
   28. COOKIE BANNER
============================================================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #111;
  color: #fff;
  padding: 12px;
  z-index: 999999;
  display: none;
}
.cookie-wrap {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.cookie-banner button { padding: 6px 12px; border: none; cursor: pointer; }


/* =============================================================================
   29. FOOTER  (vf-*)
============================================================================= */
.vf-footer {
  background: #07121a;
  color: rgba(255,255,255,.88);
  position: relative;
  overflow: hidden;
}
.vf-footer::before {
  content: "";
  position: absolute;
  inset: -80px -40px auto -40px;
  height: 220px;
  background:
    radial-gradient(420px 160px at 15% 40%, rgba(0,224,255,.14), transparent 70%),
    radial-gradient(420px 160px at 85% 30%, rgba(255,187,0,.12), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.06), transparent);
  pointer-events: none;
}

.vf-topline { height: 4px; width: 100%; background: linear-gradient(90deg, #ffbb00, #00e0ff, #ff3d76); }
.vf-wrap    { position: relative; z-index: 1; }

.vf-brand   { display: flex; gap: 14px; align-items: flex-start; }
.vf-mark    { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 12px 24px rgba(0,0,0,.25); flex: 0 0 auto; }
.vf-title   { font-weight: 950; font-size: 1.1rem; margin: 0 0 6px; color: #fff; line-height: 1.15; }
.vf-sub     { margin: 0; font-size: .9rem; color: rgba(255,255,255,.72); line-height: 1.55; max-width: 62ch; }

.vf-badges  { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.vf-badge   { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-weight: 800; font-size: .78rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.88); }
.vf-badge i { opacity: .9; }

.vf-h       { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.72); font-weight: 900; margin: 0 0 10px; }
.vf-list    { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.vf-link    { color: rgba(255,255,255,.8); text-decoration: none; font-weight: 650; }
.vf-link:hover { color: #fff; text-decoration: underline; }

.vf-card    { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 14px; }
.vf-meta    { font-size: .88rem; color: rgba(255,255,255,.76); line-height: 1.55; }
.vf-meta strong { color: #fff; }

.vf-social  { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.vf-social a { width: 34px; height: 34px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; transition: .15s ease; }
.vf-social a:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }

.vf-bottom  { border-top: 1px solid rgba(255,255,255,.14); margin-top: 18px; padding-top: 14px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .86rem; color: rgba(255,255,255,.7); }
.vf-bottom a       { color: rgba(255,255,255,.82); text-decoration: none; font-weight: 800; }
.vf-bottom a:hover { color: #fff; text-decoration: underline; }

.vf-cta       { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.vf-btn       { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 999px; font-weight: 900; text-decoration: none; border: 1px solid rgba(255,255,255,.18); }
.vf-btn--solid { background: #ffbb00; color: #07121a; border-color: transparent; }
.vf-btn--solid:hover { opacity: .95; }
.vf-btn--ghost { background: rgba(255,255,255,.06); color: #fff; }
.vf-btn--ghost:hover { background: rgba(255,255,255,.1); }


/* =============================================================================
   30. UTILITY / MISC
============================================================================= */
.brand-small { color: #0b5ed7; font-weight: 700; font-size: 1.05rem; }


/* =============================================================================
   31. RESPONSIVE OVERRIDES
============================================================================= */
@media (max-width: 992px) {
  /* TOC: disable sticky on mobile */
  .toc,
  .toc.is-fixed {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  #tocSpacer { height: 0 !important; }
}

@media (max-width: 991px) {
  /* Nav: vertical on mobile */
  .hb-nav { flex-direction: column; align-items: stretch; gap: 6px; }
  .hb-nav a,
  .hb-nav .nav-link { padding: 12px 0 !important; }
  .hb-nav a::after,
  .hb-nav .nav-link::after { display: none; }

  /* Grid */
  .hb-bin { grid-template-columns: 1fr auto; grid-template-rows: auto auto; }
  .hb-search { grid-column: 1 / -1; }

  /* OJS */
  .ojs-row { flex-direction: column; align-items: stretch; }
  .ojs-col-actions { justify-content: flex-end; }
}

@media (max-width: 991.98px) {
  /* Hide certain header elements on mobile */
  .hb-search,
  .hb-submit,
  .hb-user,
  .hb-bsub,
  .hb-brand-sub { display: none !important; }

  .hb-btitle { font-size: 14px; line-height: 1.2; }
  .hb-logo   { height: 36px; width: auto; }

  /* Sidebar: off-canvas on mobile */
  .sidebar {
    position: fixed;
    z-index: 1030;
    left: -280px;
    width: 260px;
    transition: left .25s ease-in-out;
    height: 100vh;
    overflow: auto;
  }
  .sidebar.show { left: 0; background: #fff; }
  main { padding-top: 0; }
}

@media (max-width: 768px) {
  /* Author tabs */
  .author-tabs .nav-link { font-size: .8rem; padding: .4rem .75rem; }
  .author-tabs .nav-link .badge { font-size: .65rem; }
}

@media (max-width: 768px) {
  .nr-hero-slide { min-height: 360px; }
}

@media (max-width: 576px) {
  .submission-actions { position: static; margin-top: .75rem; justify-content: flex-end; }
  .cfp-banner         { border-radius: .75rem; }
  .vf-mark            { width: 48px; height: 48px; border-radius: 14px; }
  .vf-title           { font-size: 1.02rem; }
}