/* =====================================================================
   OJSPlus IV — Editorial Theme (theme.css)
   Self-contained, hand-written CSS. No Tailwind dependency.
   All classes are prefixed .njp- and target OJS menu IDs where needed.
   Loaded LAST (after css/output.css) so these rules win.

   Design: premium academic journal, Nature-inspired.
   Serif display (Source Serif 4) + sans UI/body (Inter).
   White/neutral canvas; OJSPlus navy (#10243e) + teal (#138a78) as accents.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --njp-navy:      #10243e;
  --njp-navy-600:  #1b3556;
  --njp-navy-300:  #4a5e7a;
  --njp-teal:      #138a78;
  --njp-teal-700:  #0f6f60;
  --njp-teal-050:  #e7f5f1;

  --njp-ink:       #1c2733;
  --njp-muted:     #56606e;
  --njp-faint:     #8a95a3;

  --njp-line:      #e6ebf2;
  --njp-line-2:    #d6dde7;

  --njp-paper:     #ffffff;
  --njp-canvas:    #f6f7f9;
  --njp-canvas-2:  #eef1f5;

  --njp-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --njp-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --njp-maxw: 1200px;
  --njp-gap:  44px;
  --njp-radius: 10px;

  --njp-shadow-sm: 0 1px 2px rgba(16,36,62,.06);
  --njp-shadow-md: 0 10px 30px rgba(16,36,62,.10);
}

/* ---------- Base / reset (scoped to our body) ---------- */
body.njp-body {
  margin: 0;
  background: var(--njp-paper);
  color: var(--njp-ink);
  font-family: var(--njp-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  border-top: 3px solid var(--njp-navy);
  max-width: 2560px;
  margin-left: auto;
  margin-right: auto;
}
.njp-body *,
.njp-body *::before,
.njp-body *::after { box-sizing: border-box; }

.njp-body img { max-width: 100%; height: auto; }

.njp-body a { color: var(--njp-teal); text-decoration: none; }
.njp-body a:hover { color: var(--njp-teal-700); text-decoration: underline; }

.njp-body h1, .njp-body h2, .njp-body h3,
.njp-body h4, .njp-body h5 {
  font-family: var(--njp-serif);
  color: var(--njp-navy);
  line-height: 1.18;
  margin: 0;
  font-weight: 600;
}

/* Visible focus everywhere */
.njp-body a:focus-visible,
.njp-body button:focus-visible,
.njp-body input:focus-visible,
.njp-body [tabindex]:focus-visible {
  outline: 3px solid var(--njp-teal);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Shared shell / container */
.njp-shell {
  width: 100%;
  max-width: var(--njp-maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Small uppercase label used throughout */
.njp-eyebrow {
  display: inline-block;
  font-family: var(--njp-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--njp-teal-700);
}

/* =====================================================================
   HEADER / MASTHEAD
   ===================================================================== */
.njp-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--njp-navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.njp-skip:focus { left: 0; color:#fff; text-decoration:none; }

.njp-header { width: 100%; background: var(--njp-paper); }

/* utility strip */
.njp-utility {
  border-bottom: 1px solid var(--njp-line);
  background: var(--njp-canvas);
}
.njp-utility__inner {
  max-width: var(--njp-maxw);
  margin: 0 auto;
  padding: 7px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.njp-utility__brandline {
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--njp-muted);
  text-transform: uppercase;
  font-weight: 600;
}
.njp-utility__brandline a { color: var(--njp-muted); }
.njp-utility__brandline a:hover { color: var(--njp-navy); text-decoration: none; }

/* OJS user menu in the utility strip */
#navigationUser {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
#navigationUser li { list-style: none; }
#navigationUser a {
  font-size: .82rem;
  font-weight: 600;
  color: var(--njp-navy);
}
#navigationUser a:hover { color: var(--njp-teal); text-decoration: none; }

/* masthead row: wordmark + search + badges */
.njp-masthead__inner {
  max-width: var(--njp-maxw);
  margin: 0 auto;
  padding: 26px 24px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.njp-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.njp-brand:hover { text-decoration: none; }
.njp-brand__logo { height: 44px; width: auto; flex: 0 0 auto; }
.njp-brand__text { min-width: 0; }
.njp-brand__title {
  font-family: var(--njp-serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  color: var(--njp-navy);
  letter-spacing: -.01em;
  line-height: 1.1;
}
.njp-brand__kicker {
  display: block;
  font-family: var(--njp-sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--njp-faint);
  margin-bottom: 4px;
}

.njp-masthead__aside {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}
.njp-badges { display: flex; gap: 8px; }
.njp-badge {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--njp-teal-700);
  border: 1px solid var(--njp-teal);
  border-radius: 999px;
  padding: 5px 11px;
  white-space: nowrap;
}

/* compact masthead search */
.njp-search { display: flex; align-items: stretch; }
.njp-search form { display: flex; align-items: stretch; }
.njp-search input[type="text"] {
  font-family: var(--njp-sans);
  font-size: .9rem;
  border: 1px solid var(--njp-line-2);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  padding: 9px 14px;
  width: 210px;
  color: var(--njp-ink);
  background: var(--njp-paper);
}
.njp-search input::placeholder { color: var(--njp-faint); }
.njp-search button {
  border: 1px solid var(--njp-navy);
  background: var(--njp-navy);
  color: #fff;
  border-radius: 0 8px 8px 0;
  padding: 0 14px;
  cursor: pointer;
  font-size: .95rem;
  transition: background .15s ease;
}
.njp-search button:hover { background: var(--njp-navy-600); }

/* =====================================================================
   PRIMARY NAVIGATION (sticky)
   ===================================================================== */
.njp-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--njp-paper);
  border-top: 1px solid var(--njp-line);
  border-bottom: 1px solid var(--njp-line);
  box-shadow: var(--njp-shadow-sm);
}
.njp-nav__inner {
  max-width: var(--njp-maxw);
  margin: 0 auto;
  padding: 0 24px;
}
#navigationPrimary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
#navigationPrimary > li { list-style: none; position: relative; }
#navigationPrimary > li > a {
  display: inline-block;
  color: var(--njp-navy);
  font-family: var(--njp-sans);
  font-size: .94rem;
  font-weight: 600;
  letter-spacing: .005em;
  text-decoration: none;
  padding: 15px 0 13px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
#navigationPrimary > li > a:hover,
#navigationPrimary > li:focus-within > a {
  color: var(--njp-teal);
  border-bottom-color: var(--njp-teal);
  text-decoration: none;
}
/* submenus */
#navigationPrimary ul {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 220px;
  background: var(--njp-paper);
  border: 1px solid var(--njp-line);
  border-radius: 10px;
  box-shadow: var(--njp-shadow-md);
  padding: 8px 0;
  margin: 4px 0 0;
  list-style: none;
  z-index: 120;
}
#navigationPrimary li:hover > ul,
#navigationPrimary li:focus-within > ul { display: block; }
#navigationPrimary ul li a {
  display: block;
  padding: 9px 18px;
  color: var(--njp-navy);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
}
#navigationPrimary ul li a:hover { background: var(--njp-teal-050); color: var(--njp-teal-700); }

/* =====================================================================
   LAYOUT GRID (homepage / article / issue)
   ===================================================================== */
.njp-page { padding: 8px 0 56px; }

.njp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--njp-gap);
  align-items: start;
}
.njp-grid--reverse { grid-template-columns: 320px minmax(0, 1fr); }
.njp-main { min-width: 0; }
.njp-rail { min-width: 0; }

/* =====================================================================
   HERO (banner5 restyle + generic banner wrapper)
   ===================================================================== */
.njp-hero {
  position: relative;
  width: 100%;
  margin: 22px 0 8px;
  border-radius: var(--njp-radius);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  background: var(--njp-navy);
}
.njp-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.njp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(16,36,62,.15) 0%, rgba(16,36,62,.78) 100%);
}
.njp-hero__inner {
  position: relative;
  z-index: 2;
  padding: 40px 44px 38px;
  max-width: 760px;
  color: #fff;
}
.njp-hero__sub {
  font-family: var(--njp-sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 10px;
  opacity: .92;
}
.njp-hero__title {
  font-family: var(--njp-serif);
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.12;
  margin: 0 0 12px;
}
.njp-hero__desc {
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(255,255,255,.9);
  margin: 0;
  max-width: 620px;
}

/* keep legacy banner sliders contained & tidy if an admin selects them */
.njp-banner-legacy { margin: 22px 0 8px; }

/* =====================================================================
   SECTION HEADINGS
   ===================================================================== */
.njp-sechead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--njp-navy);
  padding-bottom: 10px;
  margin: 38px 0 6px;
}
.njp-sechead__title {
  font-family: var(--njp-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--njp-navy);
}
.njp-sechead__meta {
  font-family: var(--njp-sans);
  font-size: .85rem;
  color: var(--njp-muted);
}
.njp-sechead__meta a { color: var(--njp-teal-700); font-weight: 600; }

/* =====================================================================
   FEATURED / LEAD ARTICLE
   ===================================================================== */
.njp-feature {
  display: grid;
  grid-template-columns: minmax(0,1.45fr) minmax(0,1fr);
  gap: 30px;
  align-items: stretch;
  padding: 26px 0 30px;
  border-bottom: 1px solid var(--njp-line);
}
.njp-feature--nomedia { grid-template-columns: 1fr; }
.njp-feature__body { display: flex; flex-direction: column; min-width: 0; }
.njp-feature__title {
  font-family: var(--njp-serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600;
  line-height: 1.14;
  margin: 10px 0 12px;
}
.njp-feature__title a { color: var(--njp-navy); }
.njp-feature__title a:hover { color: var(--njp-teal-700); text-decoration: none; }
.njp-feature__authors {
  font-size: .98rem;
  color: var(--njp-ink);
  font-weight: 500;
  margin: 0 0 6px;
}
.njp-feature__meta {
  font-size: .85rem;
  color: var(--njp-muted);
  font-style: italic;
  margin: 0 0 14px;
}
.njp-feature__abstract {
  font-size: 1rem;
  color: var(--njp-ink);
  line-height: 1.62;
  margin: 0 0 18px;
}
.njp-feature__media {
  position: relative;
  border-radius: var(--njp-radius);
  overflow: hidden;
  min-height: 230px;
  background: var(--njp-canvas-2);
}
.njp-feature__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* =====================================================================
   ARTICLE CARD (article_summary.tpl)
   ===================================================================== */
.njp-card {
  display: grid;
  grid-template-columns: 168px minmax(0,1fr);
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--njp-line);
}
.njp-card--nomedia { grid-template-columns: 1fr; }
.njp-card__media {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  min-height: 130px;
  background: var(--njp-canvas-2);
}
.njp-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.njp-card__body { min-width: 0; }
.njp-card__title {
  font-family: var(--njp-serif);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.22;
  margin: 8px 0 7px;
}
.njp-card__title a { color: var(--njp-navy); }
.njp-card__title a:hover { color: var(--njp-teal-700); text-decoration: none; }
.njp-card__authors { font-size: .95rem; color: var(--njp-ink); font-weight: 500; margin: 0 0 5px; }
.njp-card__meta { font-size: .82rem; color: var(--njp-muted); font-style: italic; margin: 0 0 10px; }
.njp-card__abstract { font-size: .95rem; color: var(--njp-muted); line-height: 1.58; margin: 0 0 14px; }
.njp-card__abstract strong { color: var(--njp-navy); font-weight: 700; font-style: normal; }

/* placeholder media (no cover image) — subtle citation-grid motif */
.njp-placeholder {
  display: flex;
  align-items: flex-end;
  color: var(--njp-navy-300);
  background-color: var(--njp-canvas);
  background-image:
    radial-gradient(circle at center, rgba(16,36,62,.16) 1.1px, transparent 1.3px);
  background-size: 22px 22px;
  background-position: center;
}
.njp-placeholder::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, rgba(19,138,120,.10), rgba(16,36,62,.04));
}
.njp-placeholder__label {
  position: relative;
  z-index: 1;
  margin: 12px;
  font-family: var(--njp-sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--njp-teal-700);
}

/* card / feature action row */
.njp-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: auto;
}
.njp-readlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--njp-sans);
  font-weight: 700;
  font-size: .9rem;
  color: var(--njp-teal-700);
}
.njp-readlink::after { content: "\2192"; transition: transform .15s ease; }
.njp-readlink:hover { text-decoration: none; color: var(--njp-teal); }
.njp-readlink:hover::after { transform: translateX(3px); }
.njp-galley {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--njp-muted);
}
.njp-galley a { color: var(--njp-muted); }
.njp-galley a:hover { color: var(--njp-navy); }
.njp-galley .fa { color: #c0392b; }

/* =====================================================================
   PROSE (About / welcome text, additional home content)
   ===================================================================== */
.njp-prose { color: var(--njp-ink); }
.njp-prose h2,
.njp-prose h3 {
  font-family: var(--njp-serif);
  color: var(--njp-navy);
  font-weight: 700;
  margin: 30px 0 10px;
  line-height: 1.2;
}
.njp-prose h2 { font-size: 1.5rem; }
.njp-prose h3 { font-size: 1.2rem; }
.njp-prose h4 {
  font-family: var(--njp-sans);
  color: var(--njp-navy);
  font-weight: 700;
  font-size: 1.02rem;
  margin: 20px 0 6px;
}
.njp-prose p { margin: 0 0 14px; line-height: 1.7; }
.njp-prose ul {
  margin: 10px 0 18px;
  padding-left: 22px;
  list-style: disc;
}
.njp-prose li { margin: 6px 0; line-height: 1.6; }
.njp-prose a { color: var(--njp-teal-700); font-weight: 600; }
.njp-prose strong { color: var(--njp-navy); }
.njp-prose hr { border: 0; border-top: 1px solid var(--njp-line); margin: 26px 0; }

.njp-lead {
  font-family: var(--njp-serif);
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--njp-navy);
  font-weight: 400;
  border-left: 3px solid var(--njp-teal);
  padding-left: 18px;
  margin: 0 0 8px;
}

/* =====================================================================
   ASIDE RAIL
   ===================================================================== */
.njp-rail__block { margin: 0 0 26px; }
.njp-rail__heading {
  font-family: var(--njp-sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--njp-navy);
  padding-bottom: 9px;
  margin: 0 0 12px;
  border-bottom: 2px solid var(--njp-navy);
}

/* search in rail/sidebar */
.njp-railsearch form {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--njp-line-2);
  border-radius: 8px;
  overflow: hidden;
  background: var(--njp-paper);
}
.njp-railsearch input[type="text"] {
  border: 0;
  flex: 1 1 auto;
  padding: 10px 14px;
  font-family: var(--njp-sans);
  font-size: .92rem;
  color: var(--njp-ink);
  background: transparent;
}
.njp-railsearch input::placeholder { color: var(--njp-faint); }
.njp-railsearch button {
  border: 0;
  background: var(--njp-canvas-2);
  color: var(--njp-navy);
  padding: 0 14px;
  cursor: pointer;
}
.njp-railsearch button:hover { background: var(--njp-teal-050); color: var(--njp-teal-700); }

/* link list in rail */
.njp-linklist { list-style: none; margin: 0; padding: 0; }
.njp-linklist li { border-bottom: 1px solid var(--njp-line); }
.njp-linklist li:last-child { border-bottom: 0; }
.njp-linklist a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 2px;
  font-size: .94rem;
  font-weight: 600;
  color: var(--njp-navy);
}
.njp-linklist a:hover { color: var(--njp-teal-700); text-decoration: none; }
.njp-linklist a::after { content: "\2192"; color: var(--njp-faint); }
.njp-linklist a:hover::after { color: var(--njp-teal); }

/* journal info box */
.njp-infobox {
  background: var(--njp-canvas);
  border: 1px solid var(--njp-line);
  border-radius: 10px;
  padding: 16px 18px;
}
.njp-info-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  font-size: .9rem;
  border-bottom: 1px solid var(--njp-line);
}
.njp-info-row:last-child { border-bottom: 0; }
.njp-info-row .k { color: var(--njp-muted); font-weight: 600; }
.njp-info-row .v { color: var(--njp-navy); font-weight: 600; text-align: right; }
.njp-info-row .v a { color: var(--njp-navy); }

.njp-publisher { margin-top: 18px; }
.njp-publisher img {
  width: 100%;
  border-radius: 8px;
  transition: filter .25s ease;
}
.njp-publisher img:hover { filter: brightness(1.06); }
.njp-publisher__cap { font-size: .85rem; color: var(--njp-muted); margin-top: 8px; }
.njp-publisher__cap a { color: var(--njp-teal-700); font-weight: 600; }

/* generic hook output container */
.njp-hookbox {
  background: var(--njp-canvas);
  border: 1px solid var(--njp-line);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: .9rem;
}

/* =====================================================================
   BREADCRUMB (address.tpl)
   ===================================================================== */
.njp-crumbs {
  border-bottom: 1px solid var(--njp-line);
  margin: 0 0 24px;
}
.njp-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 12px 0;
  font-size: .85rem;
  color: var(--njp-muted);
}
.njp-crumbs li { display: flex; gap: 8px; }
.njp-crumbs li + li::before { content: "/"; color: var(--njp-faint); }
.njp-crumbs a { color: var(--njp-teal-700); font-weight: 600; }

/* =====================================================================
   ISSUE PAGE
   ===================================================================== */
.njp-issue-title {
  font-family: var(--njp-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--njp-navy);
  border-bottom: 2px solid var(--njp-navy);
  padding-bottom: 12px;
  margin: 6px 0 8px;
}
.njp-issue-title small { display: block; font-size: 1.05rem; font-weight: 400; color: var(--njp-muted); margin-top: 6px; }
.njp-toc h3 {
  font-family: var(--njp-serif);
  font-size: 1.25rem;
  color: var(--njp-navy);
  margin: 32px 0 4px;
}
.njp-toc hr { border: 0; border-top: 1px solid var(--njp-line); margin: 0 0 4px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.njp-footer {
  background: var(--njp-navy);
  color: rgba(255,255,255,.82);
  margin-top: 40px;
}
.njp-footer a { color: rgba(255,255,255,.82); }
.njp-footer a:hover { color: #fff; text-decoration: underline; }
.njp-footer__inner {
  max-width: var(--njp-maxw);
  margin: 0 auto;
  padding: 48px 24px 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
}
.njp-footer__col h4 {
  font-family: var(--njp-sans);
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.njp-footer__col ul { list-style: none; margin: 0; padding: 0; }
.njp-footer__col li { margin: 0 0 9px; line-height: 1.45; }
.njp-footer__col small { display: block; color: rgba(255,255,255,.5); font-size: .76rem; }

.njp-footer__news li { margin-bottom: 13px; }

.njp-footer__cc { display: flex; gap: 12px; align-items: flex-start; }
.njp-footer__cc img { flex: 0 0 auto; }

.njp-newsletter form { display: flex; margin-top: 10px; }
.njp-newsletter .field {
  display: flex;
  width: 100%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.njp-newsletter .fa-envelope {
  padding: 11px 12px;
  background: #eef1f5;
  color: #56606e;
}
.njp-newsletter input[type="email"] {
  border: 0;
  flex: 1 1 auto;
  padding: 0 12px;
  color: var(--njp-ink);
  font-size: .9rem;
}
.njp-newsletter input:focus { outline: none; }
.njp-newsletter button {
  border: 0;
  background: var(--njp-teal);
  color: #fff;
  padding: 0 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease;
}
.njp-newsletter button:hover { background: var(--njp-teal-700); }

.njp-social { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.njp-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 8px;
  color: rgba(255,255,255,.82);
  font-size: 1rem;
}
.njp-social a:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }

.njp-footer__bar {
  border-top: 1px solid rgba(255,255,255,.14);
}
.njp-footer__bar-inner {
  max-width: var(--njp-maxw);
  margin: 0 auto;
  padding: 16px 24px;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
}
.njp-footer__bar-inner a { color: rgba(255,255,255,.85); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1080px) {
  .njp-grid,
  .njp-grid--reverse { grid-template-columns: 1fr; }
  .njp-rail { order: 2; }
  .njp-footer__inner { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media (max-width: 760px) {
  .njp-masthead__inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .njp-masthead__aside { flex-direction: column; align-items: flex-start; width: 100%; }
  .njp-search input[type="text"] { width: 100%; flex: 1 1 auto; }
  .njp-search, .njp-search form { width: 100%; }
  .njp-feature { grid-template-columns: 1fr; }
  .njp-feature__media { min-height: 200px; order: -1; }
  .njp-card { grid-template-columns: 1fr; }
  .njp-card__media { min-height: 170px; order: -1; }
  #navigationPrimary { gap: 0; }
  #navigationPrimary > li { width: 100%; border-bottom: 1px solid var(--njp-line); }
  #navigationPrimary > li > a { display: block; padding: 12px 0; }
  #navigationPrimary ul { position: static; box-shadow: none; border: 0; padding: 0 0 6px 14px; min-width: 0; }
  .njp-utility__inner { flex-wrap: wrap; }
  .njp-footer__inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .njp-body * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Masthead fix for longer demo journal names */
.njp-masthead__inner { flex-wrap: wrap; }
.njp-brand { flex: 1 1 340px; min-width: 0; }
.njp-brand__text { flex: 1 1 auto; min-width: 0; }
.njp-brand__logo { height: 46px !important; width: auto !important; max-width: 130px; flex: 0 0 auto; }
.njp-brand__title { font-size: clamp(1.3rem, 1.7vw, 1.8rem) !important; line-height: 1.15; }
