/* =====================================================================
   Journal of Smart Computing — main stylesheet
   ===================================================================== */

:root {
  /* Palette: scholarly, warm parchment with deep navy and academic gold */
  --ink:        #161412;
  --ink-soft:   #3b3733;
  --ink-mute:   #6f6962;
  --paper:      #faf7f0;
  --paper-2:    #f3eddd;
  --rule:       #d9d2bf;
  --rule-soft:  #ebe5d3;
  --navy:       #15314f;
  --navy-deep:  #0d1f33;
  --navy-soft:  #2a4a6a;
  --gold:       #a3711a;
  --gold-deep:  #7a5210;
  --crimson:    #8a2a2a;
  --green:      #2c5e3f;
  --amber:      #8a5a16;
  --violet:     #4a3270;
  --footer-bg:  #0d1f33;
  --footer-ink: rgba(250,247,240,.78);

  --shadow-soft: 0 1px 0 rgba(0,0,0,.04), 0 8px 24px -16px rgba(20,28,40,.18);
  --shadow-med:  0 2px 0 rgba(0,0,0,.04), 0 18px 38px -22px rgba(20,28,40,.32);

  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --sans:  "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
  --mono:  "Noto Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body.site {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(ellipse 1200px 380px at 50% -10%, rgba(21,49,79,.06), transparent 60%),
    var(--paper);
  background-attachment: fixed;
  min-height: 100vh;
}

/* ----------------------------------------------------------------- *
   Masthead + navigation
 * ----------------------------------------------------------------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, #fbf8f1 0%, #f6efdf 100%);
  position: relative;
}
.masthead::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .55;
}
.masthead__inner {
  max-width: 1180px; margin: 0 auto;
  padding: 22px 28px 18px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.masthead__brand {
  display: flex; align-items: center; gap: 16px;
  text-decoration: none; color: var(--navy-deep);
}
.masthead__mark {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.masthead__mark img {
  display: block;
  width: 100%; height: 100%;
  object-fit: contain;
}
.masthead__words { display: flex; flex-direction: column; line-height: 1.15; }
.masthead__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  color: var(--navy-deep);
  letter-spacing: -0.005em;
}
.masthead__sub {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}
.masthead__meta { display: flex; align-items: center; gap: 18px; }
.masthead__link {
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}
.masthead__link:hover { color: var(--navy); border-bottom-color: var(--gold); }
.masthead__link--cta {
  padding: 9px 18px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fbf8f1;
  border-radius: 1px;
  letter-spacing: .08em;
}
.masthead__link--cta:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: #fff;
}

.primary-nav {
  border-top: 1px solid var(--rule-soft);
  background: rgba(255,255,255,.4);
}
.primary-nav__inner {
  max-width: 1180px; margin: 0 auto;
  padding: 0 18px;
  display: flex; flex-wrap: wrap;
}
.primary-nav__link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 14px 16px;
  position: relative;
  border-bottom: none;
}
.primary-nav__link:hover { color: var(--navy); background: transparent; }
.primary-nav__link.is-active { color: var(--navy-deep); background: transparent; }
.primary-nav__link.is-active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 0;
  height: 2px; background: var(--gold);
}

/* ----------------------------------------------------------------- *
   Layout: main content + sidebar
 * ----------------------------------------------------------------- */

.layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px 28px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 304px;
  gap: 44px;
}
@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; gap: 32px; }
}

.content { min-width: 0; }

/* ----------------------------------------------------------------- *
   Sidebar cards
 * ----------------------------------------------------------------- */

.sidebar { display: flex; flex-direction: column; gap: 22px; }
.card {
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--navy);
  padding: 20px 22px;
  box-shadow: var(--shadow-soft);
}
.card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--navy-deep);
  letter-spacing: -0.005em;
}
.card__hint { font-size: 13px; color: var(--ink-mute); margin: 12px 0 0; }
.card__hint a { color: var(--navy); }
.card p { margin: 0 0 12px; font-size: 14.5px; color: var(--ink-soft); }
.signed-in { font-weight: 600; color: var(--ink); margin: 0 0 4px !important; }

.meta-list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13.5px; }
.meta-list dt { color: var(--ink-mute); }
.meta-list dd { margin: 0; color: var(--ink); }

.bare-list { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.bare-list li { padding: 4px 0; border-bottom: 1px dotted var(--rule-soft); color: var(--ink-soft); }
.bare-list li:last-child { border-bottom: 0; }

/* ----------------------------------------------------------------- *
   Mini login (sidebar form)
 * ----------------------------------------------------------------- */

.mini-login { display: flex; flex-direction: column; gap: 10px; }
.mini-login label {
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: .06em;
  text-transform: uppercase;
  display: flex; flex-direction: column; gap: 4px;
}
.mini-login input {
  font: inherit;
  font-size: 14px;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  background: #fffefb;
  border-radius: 1px;
  color: var(--ink);
}
.mini-login input:focus {
  outline: 2px solid rgba(21,49,79,.18);
  border-color: var(--navy);
}

/* ----------------------------------------------------------------- *
   Buttons
 * ----------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 1px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--solid    { background: var(--navy);   color: #faf7f0;  border-color: var(--navy); }
.btn--solid:hover    { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn--outline  { background: transparent;   color: var(--navy);  border-color: var(--navy); }
.btn--outline:hover  { background: var(--navy); color: #faf7f0; }
.btn--gold     { background: var(--gold);   color: #fffdf6;  border-color: var(--gold); }
.btn--gold:hover     { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn--ghost    { background: transparent;   color: var(--ink-soft); border-color: var(--rule); }
.btn--ghost:hover    { color: var(--navy); border-color: var(--navy); }
.btn--danger   { background: transparent;   color: var(--crimson); border-color: var(--crimson); }
.btn--danger:hover   { background: var(--crimson); color: #fff; }
.btn--sm       { font-size: 12px; padding: 7px 12px; }

button.btn { font-family: var(--sans); }

/* Override the "Download PDF" button on article pages with the gold treatment */
.btn--solid[href*="/pdf/"],
.btn--solid[href*="pdf.php"] {
  background: var(--gold);
  border-color: var(--gold);
  color: #fbf8f1;
}
.btn--solid[href*="/pdf/"]:hover,
.btn--solid[href*="pdf.php"]:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: #fff;
}

/* ----------------------------------------------------------------- *
   Headline + lead
 * ----------------------------------------------------------------- */

.page-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--navy-deep);
  margin: 0 0 14px;
}
.page-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  margin-bottom: 16px;
}
.page-lead {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 26px;
  max-width: 70ch;
}

.content h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--navy-deep);
  margin: 34px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}
.content h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  color: var(--navy-deep);
  margin: 22px 0 8px;
}
.content p { margin: 0 0 14px; }
.content ul { padding-left: 20px; }
.content a { color: var(--navy); text-underline-offset: 3px; }

/* ----------------------------------------------------------------- *
   Hero (home page)
 * ----------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 6px 0 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.hero__vol {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--gold-deep);
  text-transform: uppercase;
}

/* ----------------------------------------------------------------- *
   Article list (home + archives)
 * ----------------------------------------------------------------- */

.article-list { list-style: none; padding: 0; margin: 0; }
.article-card {
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 22px;
}
.article-card:last-child { border-bottom: 0; }
.article-card__num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  padding-top: 4px;
  border-right: 1px solid var(--rule);
}
.article-card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  color: var(--navy-deep);
  margin: 0 0 6px;
}
.article-card__title a { color: inherit; text-decoration: none; }
.article-card__title a:hover { color: var(--gold-deep); }
.article-card__authors { font-size: 14px; color: var(--ink-soft); margin: 0 0 8px; }
.article-card__meta {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 8px;
}
.article-card__abstract { font-size: 15px; color: var(--ink-soft); margin: 8px 0 0; max-width: 70ch; }

/* ----------------------------------------------------------------- *
   Issue cover card
 * ----------------------------------------------------------------- */

.issue-feature {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--rule);
  margin: 0 0 32px;
  box-shadow: var(--shadow-soft);
}
.issue-feature__cover {
  background:
    linear-gradient(135deg, var(--navy-deep), var(--navy)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 6px);
  color: #faf7f0;
  aspect-ratio: 3 / 4;
  padding: 20px 18px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.issue-feature__cover::after {
  content: "";
  position: absolute; left: 12px; right: 12px; top: 12px; bottom: 12px;
  border: 1px solid rgba(250,247,240,.25);
  pointer-events: none;
}
.issue-feature__cover-title {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.15;
  font-weight: 500;
}
.issue-feature__cover-vol {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(250,247,240,.7);
}
.issue-feature__details h3 {
  margin-top: 0;
  font-family: var(--serif);
  font-size: 24px;
  color: var(--navy-deep);
}
@media (max-width: 640px) {
  .issue-feature { grid-template-columns: 1fr; }
  .issue-feature__cover { aspect-ratio: 16 / 10; }
}

/* ----------------------------------------------------------------- *
   Footer
 * ----------------------------------------------------------------- */

.site-footer {
  margin-top: 60px;
  background: var(--navy-deep);
  color: rgba(250,247,240,.78);
}
.site-footer__inner {
  max-width: 1180px; margin: 0 auto;
  padding: 48px 28px 26px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
}
@media (max-width: 720px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
.site-footer__brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: #faf7f0;
}
.site-footer__tagline { font-size: 14px; margin-top: 8px; max-width: 38ch; }
.site-footer__col h4 {
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}
.site-footer__col ul { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.site-footer__col li { padding: 3px 0; }
.site-footer__col a { color: rgba(250,247,240,.78); text-decoration: none; }
.site-footer__col a:hover { color: var(--gold); }
.site-footer__rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(250,247,240,.18), transparent);
}
.site-footer__base {
  max-width: 1180px; margin: 0 auto;
  padding: 20px 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: rgba(250,247,240,.55);
}

/* ----------------------------------------------------------------- *
   Flash messages
 * ----------------------------------------------------------------- */

.flash {
  padding: 12px 16px;
  border-left: 3px solid;
  font-size: 14px;
  margin: 0 0 20px;
  background: #fff;
}
.flash--ok  { border-color: var(--green);   color: var(--green);   background: #f1f6f1; }
.flash--err { border-color: var(--crimson); color: var(--crimson); background: #fbf1ef; }

/* ----------------------------------------------------------------- *
   Auth pages
 * ----------------------------------------------------------------- */

.auth-shell {
  max-width: 460px;
  margin: 60px auto;
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--navy);
  padding: 36px 38px;
  box-shadow: var(--shadow-med);
}
.auth-shell h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  color: var(--navy-deep);
  margin: 0 0 8px;
}
.auth-shell p.lead { color: var(--ink-mute); font-size: 14.5px; margin: 0 0 24px; }
.auth-shell .field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.auth-shell label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-mute);
}
.auth-shell input,
.auth-shell select,
.auth-shell textarea {
  font: inherit;
  font-size: 14.5px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  background: #fffefb;
  border-radius: 1px;
  color: var(--ink);
}
.auth-shell input:focus,
.auth-shell select:focus,
.auth-shell textarea:focus {
  outline: 2px solid rgba(21,49,79,.18);
  border-color: var(--navy);
}
.auth-shell .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-shell .auth-actions { display: flex; gap: 14px; align-items: center; margin-top: 20px; }
.auth-shell .auth-actions a { font-size: 13px; color: var(--ink-mute); }

/* ----------------------------------------------------------------- *
   Pills (status labels)
 * ----------------------------------------------------------------- */

.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid;
  background: #fff;
}
.pill--blue   { color: #1c466f; border-color: #b8cee6; background: #eaf2fb; }
.pill--amber  { color: var(--amber); border-color: #e9d2a6; background: #fbf2dd; }
.pill--green  { color: var(--green); border-color: #b9d6c4; background: #ecf4ef; }
.pill--red    { color: var(--crimson); border-color: #e0bcbc; background: #fbecec; }
.pill--violet { color: var(--violet); border-color: #c8bce4; background: #f0ecf7; }
.pill--grey   { color: var(--ink-mute); border-color: var(--rule); background: var(--paper-2); }

/* ===================================================================== *
   PANEL (back-office)
 * ===================================================================== */

body.panel {
  background:
    radial-gradient(ellipse 800px 240px at 16% -8%, rgba(21,49,79,.05), transparent 60%),
    #f7f4ec;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  margin: 0;
  min-height: 100vh;
}

.panel-shell {
  display: grid;
  grid-template-columns: 256px 1fr;
  min-height: 100vh;
}
@media (max-width: 880px) {
  .panel-shell { grid-template-columns: 1fr; }
}

.panel-side {
  background: var(--navy-deep);
  color: rgba(250,247,240,.85);
  padding: 28px 22px;
  display: flex; flex-direction: column;
}
.panel-side__brand {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  color: #faf7f0;
  margin-bottom: 4px;
}
.panel-side__brand-sub {
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 30px;
}
.panel-side__role {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(250,247,240,.45);
  margin: 20px 0 8px;
}
.panel-side__nav { display: flex; flex-direction: column; gap: 2px; }
.panel-side__nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  color: rgba(250,247,240,.78);
  text-decoration: none;
  font-size: 14px;
  border-radius: 2px;
  border-left: 2px solid transparent;
}
.panel-side__nav a:hover {
  background: rgba(255,255,255,.05);
  color: #faf7f0;
}
.panel-side__nav a.is-active {
  background: rgba(163,113,26,.12);
  color: #faf7f0;
  border-left-color: var(--gold);
}
.panel-side__foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(250,247,240,.12);
  font-size: 13px;
}
.panel-side__foot a { color: rgba(250,247,240,.7); text-decoration: none; }
.panel-side__foot a:hover { color: var(--gold); }

.panel-main {
  padding: 28px 36px 48px;
  min-width: 0;
}
.panel-topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 26px;
}
.panel-topbar h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  color: var(--navy-deep);
  margin: 0;
  letter-spacing: -.005em;
}
.panel-topbar .panel-user { font-size: 13.5px; color: var(--ink-mute); }
.panel-topbar .panel-user strong { color: var(--ink); }

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.stat {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 18px 20px;
  border-top: 3px solid var(--navy);
  box-shadow: var(--shadow-soft);
}
.stat__label {
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.stat__value {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 500;
  color: var(--navy-deep);
  line-height: 1;
  margin-top: 8px;
}
.stat__delta { font-size: 12.5px; color: var(--ink-mute); margin-top: 6px; }

.panel-table-wrap {
  background: #fff;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-soft);
  overflow-x: auto;
}
.panel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.panel-table thead th {
  text-align: left;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 14px 16px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  font-weight: 600;
  white-space: nowrap;
}
.panel-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}
.panel-table tbody tr:last-child td { border-bottom: 0; }
.panel-table tbody tr:hover { background: #faf7ed; }
.panel-table .cell-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--navy-deep);
}
.panel-table .cell-title a { color: inherit; text-decoration: none; }
.panel-table .cell-title a:hover { color: var(--gold-deep); }
.panel-table .cell-sub { font-size: 12.5px; color: var(--ink-mute); margin-top: 3px; }
.panel-table .cell-actions { white-space: nowrap; }
.panel-table .cell-actions a { margin-right: 8px; }

.panel-section {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 26px 28px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-soft);
}
.panel-section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--navy-deep);
  margin: 0 0 6px;
}
.panel-section .section-lead { color: var(--ink-mute); margin: 0 0 22px; font-size: 14px; }

.field-grid { display: grid; gap: 16px; }
.field-grid--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .field-grid--2 { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 4px; }
.field label, .field > .label {
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field input[type=text],
.field input[type=email],
.field input[type=password],
.field input[type=date],
.field input[type=number],
.field input[type=url],
.field select,
.field textarea {
  font: inherit;
  font-size: 14.5px;
  padding: 9px 12px;
  border: 1px solid var(--rule);
  background: #fffefb;
  border-radius: 1px;
  color: var(--ink);
  width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid rgba(21,49,79,.18);
  border-color: var(--navy);
}
.field input[type=file] { font: inherit; font-size: 13.5px; padding: 6px 0; }
.field .hint { font-size: 12.5px; color: var(--ink-mute); }

.form-actions {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--rule);
}

.detail-meta {
  display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px;
  font-size: 14px; margin: 0;
}
.detail-meta dt { color: var(--ink-mute); text-transform: uppercase; font-size: 11.5px; letter-spacing: .1em; padding-top: 3px; }
.detail-meta dd { margin: 0; color: var(--ink); }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  position: relative;
  padding: 10px 0 10px 26px;
  border-left: 1px solid var(--rule);
  margin-left: 10px;
}
.timeline li::before {
  content: ""; position: absolute; left: -5px; top: 16px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--rule);
}
.timeline .t-when { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.timeline .t-what { font-size: 14.5px; color: var(--ink); }

.dl-tabs {
  display: flex; gap: 2px; margin-bottom: 18px; border-bottom: 1px solid var(--rule);
}
.dl-tabs a {
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-mute);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.dl-tabs a:hover { color: var(--navy); }
.dl-tabs a.is-active { color: var(--navy-deep); border-bottom-color: var(--gold); }

.empty-state {
  padding: 60px 24px;
  text-align: center;
  color: var(--ink-mute);
  font-style: italic;
  font-family: var(--serif);
}

/* ============================================================== */
/* Additional panel components added with the extended workflow   */
/* ============================================================== */

.muted { color: #8a8a8a; font-size: 13px; }
.required { color: #b8341c; }

.link-btn {
  background: transparent; border: none; color: inherit; cursor: pointer;
  font: inherit; padding: 0 0 0 4px; opacity: .8;
}
.link-btn:hover { opacity: 1; }

/* Panel section variants */
.panel-section__head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin-bottom: 12px; flex-wrap: wrap;
}
.panel-section__head h2,
.panel-section__head h3 { margin: 0; }
.panel-section__sub { color: #5b6573; font-size: 14px; margin: 4px 0 14px; }
.panel-section--call {
  background: #fff7e6; border: 1px solid #e8c87a;
  border-left: 4px solid var(--gold, #a3711a);
}

/* Stat cards */
.stat-card {
  background: #fff; padding: 22px 20px; border: 1px solid var(--rule-soft, #e6e2d7);
  border-radius: 4px; min-width: 0;
}
.stat-card__num {
  font-family: var(--serif, 'Fraunces', serif);
  font-size: 38px; line-height: 1; color: var(--navy, #15314f);
  font-weight: 500;
}
.stat-card__label {
  font-size: 12.5px; color: #5b6573; text-transform: uppercase;
  letter-spacing: .08em; margin-top: 8px;
}
.stat-card--alert { border-left: 4px solid #b8341c; }
.stat-card--alert .stat-card__num { color: #b8341c; }

.panel-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .panel-grid--2 { grid-template-columns: 1fr; } }

/* Filter bar above tables */
.filter-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0 0 16px;
}
.filter-bar input[type="search"],
.filter-bar select {
  padding: 6px 10px; border: 1px solid var(--rule-soft, #e6e2d7);
  background: #fff; border-radius: 3px; font-size: 14px;
}
.filter-bar label { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }

/* Detail header for view pages */
.detail-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; flex-wrap: wrap;
}

/* Decision / editorial cards */
.decision-card {
  background: #fff; padding: 14px 16px; border: 1px solid var(--rule-soft, #e6e2d7);
  border-left: 3px solid var(--gold, #a3711a); border-radius: 3px;
  margin-bottom: 10px;
}
.decision-card__head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; margin-bottom: 6px; flex-wrap: wrap;
}
.decision-card__head strong { font-family: var(--serif, 'Fraunces', serif); font-size: 17px; color: var(--navy, #15314f); }
.decision-card p { margin: 6px 0 0; color: #2a323e; }

/* Author list on detail views */
.author-list {
  margin: 0; padding: 0 0 0 22px; display: grid; gap: 10px;
}
.author-list li { line-height: 1.45; }

/* Production card */
.prod-card {
  background: #fff; border: 1px solid var(--rule-soft, #e6e2d7);
  border-radius: 4px; padding: 16px 18px; margin-bottom: 12px;
}
.prod-card__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 12px; flex-wrap: wrap;
}
.prod-card__head h3 { font-family: var(--serif, 'Fraunces', serif); font-size: 20px; color: var(--navy, #15314f); }
.prod-card__body { padding-top: 10px; border-top: 1px dashed var(--rule-soft, #e6e2d7); }

/* Announcement card in publisher panel */
.ann-card {
  background: #fff; border: 1px solid var(--rule-soft, #e6e2d7);
  border-left: 3px solid var(--navy, #15314f); border-radius: 3px;
  padding: 16px 18px; margin-bottom: 12px;
}
.ann-card header {
  display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap;
  margin-bottom: 8px;
}
.ann-card h3 { margin: 0; font-family: var(--serif, 'Fraunces', serif); color: var(--navy, #15314f); font-size: 19px; }
.ann-card p { margin: 8px 0 12px; color: #2a323e; }

/* ============================================================== */
/* Editorial board grid                                           */
/* ============================================================== */

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 14px 0 32px;
}
.board-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  padding: 16px 18px;
  border-radius: 3px;
}
.board-card__name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy-deep);
}
.board-card__affil {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 4px;
}
.board-card__country {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-mute);
  margin-top: 6px;
}
.board-card__email {
  font-size: 12.5px;
  margin-top: 6px;
}
.board-card__email a { color: var(--navy); text-decoration: none; }
.board-card__email a:hover { text-decoration: underline; }
.board-card__orcid {
  font-size: 11.5px;
  color: var(--ink-mute);
  margin-top: 4px;
  font-family: var(--mono);
}
.board-card__bio {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Editable HTML content from the publisher panel */
.prose { font-size: 15.5px; line-height: 1.6; }
.prose h2 { font-family: var(--serif); font-weight: 600; font-size: 22px;
            color: var(--navy-deep); margin: 32px 0 12px; padding-bottom: 6px;
            border-bottom: 1px solid var(--rule); }
.prose h3 { font-family: var(--serif); font-weight: 600; font-size: 17px;
            color: var(--navy-deep); margin: 22px 0 8px; }
.prose p  { margin: 0 0 14px; color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a  { color: var(--navy); text-underline-offset: 3px; }
.prose strong { color: var(--navy-deep); }

/* Captcha field styling */
.captcha-field {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--navy);
  padding: 14px 16px;
  border-radius: 3px;
  margin-top: 14px;
}
.captcha-field label { font-size: 14px !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--ink) !important; margin-bottom: 8px; display: block; }
.captcha-field input[type="text"] { max-width: 140px; font-family: var(--mono); font-size: 16px; text-align: center; }
.captcha-field .hint { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-mute); }

/* Home page: real cover image variant (replaces the gradient placeholder when uploaded) */
.issue-feature__cover-image {
  display: block;
  aspect-ratio: 3 / 4;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.issue-feature__cover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}
.issue-feature__cover-image:hover img {
  transform: scale(1.03);
}

/* ============================================================== */
/* Justify body paragraphs across all content areas               */
/* (matches scholarly typesetting conventions)                    */
/* ============================================================== */

.content p,
.prose p,
.article-abstract,
.article-card__abstract {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Keep narrow / single-line items left-aligned (don't justify them) */
.page-lead,
.article-card__authors,
.article-card__meta,
.muted,
.hint,
.flash,
.empty-state,
.panel-section__sub,
.site-footer__base,
.site-footer__tagline,
.board-card__bio,
.detail-meta,
.decision-card .muted {
  text-align: left;
  hyphens: manual;
}
