/* =============================================================================
   JMS component layer — token-only classes consumed by the shared partials,
   view components and tag helpers. No raw colours here; only var(--jms-*).
   ============================================================================= */

/* ---- Icons ---- */
.jms-icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; flex: none; }
.jms-icon[width="20"] { width: 1.25rem; height: 1.25rem; }
.jms-icon[width="16"] { width: 1rem; height: 1rem; }
.jms-icon[width="24"] { width: 1.5rem; height: 1.5rem; }

/* ---- Skip link ---- */
.skip-link { position: absolute; left: -100vw; top: 0.5rem; z-index: 2000; padding: 0.5rem 0.75rem; background: var(--jms-surface); color: var(--jms-heading); border: 1px solid var(--jms-border); border-radius: var(--jms-radius-md); box-shadow: var(--jms-shadow-md); }
.skip-link:focus { left: 0.5rem; }

/* ---- App shell (dashboard) ---- */
.app-shell { display: flex; flex: 1 0 auto; min-height: 100vh; background: var(--jms-bg); } /* grows with its content inside the 100%-height body, so the sticky sidebar has room to stay put */
/* Below lg the aside is a Bootstrap offcanvas drawer (fixed, translated off-screen); only at lg+ does it join the flex row. */
.app-sidebar { display: flex; flex-direction: column; }
.app-sidebar .offcanvas-body { display: flex; flex-direction: column; padding: 0; background: var(--jms-sidebar) !important; }
@media (min-width: 992px) {
  .app-sidebar { width: var(--jms-sidebar-width); flex: none; border-right: 1px solid var(--jms-border); position: sticky; top: 0; height: 100vh; overflow-y: auto; }
  .app-sidebar .offcanvas-body { flex: 1 1 auto; }
  /* Beside a page longer than the menu, the whole menu shows with no scrollbar of its own: it scrolls with the page
     and settles once its last link is in view (sticky at a negative top, set by site.js). Beside a short page the
     menu keeps the viewport height and scrolls on its own, with a thin scrollbar. */
  .app-sidebar { overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--jms-muted-fg) 45%, transparent) transparent; }
  .app-sidebar[data-mode="full"] { align-self: flex-start; top: var(--jms-sidebar-stick, 0); height: auto; overflow: visible; }
}
.app-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.app-topbar { flex: 0 0 auto; height: var(--jms-header-height); display: flex; align-items: center; gap: 0.75rem; padding: 0 1rem; background: var(--jms-header); border-bottom: 1px solid var(--jms-border); position: sticky; top: 0; z-index: 1020; }
.app-main { flex: 1 1 auto; padding: 1rem; }
.app-footer { flex: 0 0 auto; padding: 1rem; border-top: 1px solid var(--jms-divider); font-size: 0.8125rem; color: var(--jms-muted-fg); }
@media (min-width: 768px) { .app-main { padding: 1.5rem; } .app-topbar { padding: 0 1.5rem; } }

/* Sidebar nav */
.sidebar-brand { display: flex; align-items: center; gap: 0.625rem; padding: 0.875rem 1rem; font-weight: 600; color: var(--jms-heading); text-decoration: none; border-bottom: 1px solid var(--jms-divider); min-height: var(--jms-header-height); }
.sidebar-brand:hover { color: var(--jms-brand); }
.sidebar-nav { padding: 0.75rem 0.625rem; flex: 1 1 auto; }
.sidebar-group + .sidebar-group { margin-top: 1rem; }
.sidebar-group-label { padding: 0 0.625rem 0.375rem; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--jms-muted-fg); }
.sidebar-link { display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0.625rem; border-radius: var(--jms-radius-md); color: var(--jms-text); font-size: 0.875rem; font-weight: 500; text-decoration: none; transition: background-color var(--jms-motion-fast), color var(--jms-motion-fast); }
.sidebar-link:hover { background: var(--jms-hover); color: var(--jms-heading); }
.sidebar-link[aria-current="page"] { background: var(--jms-selected); color: var(--jms-heading); }
.sidebar-link .jms-icon { color: var(--jms-muted-fg); }
.sidebar-link[aria-current="page"] .jms-icon { color: var(--jms-brand); }
.sidebar-footer { padding: 0.75rem 0.625rem; border-top: 1px solid var(--jms-divider); }

/* Top bar pieces */
.topbar-title { font-weight: 600; color: var(--jms-heading); font-size: 0.9375rem; }
.topbar-spacer { flex: 1 1 auto; }
.topbar-search { max-width: 22rem; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: var(--jms-radius-md); border: 1px solid transparent; background: transparent; color: var(--jms-muted-fg); }
.icon-btn:hover { background: var(--jms-hover); color: var(--jms-heading); }
.icon-btn .jms-icon { width: 1.125rem; height: 1.125rem; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 999px; background: var(--jms-selected); color: var(--jms-heading); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; flex: 0 0 auto; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px; }
.avatar-lg { width: 4rem; height: 4rem; font-size: 1.125rem; }
.avatar-xl { width: 7rem; height: 7rem; font-size: 2rem; }

/* ---- Breadcrumb ---- */
.app-topbar > nav { min-width: 0; }
.jms-breadcrumb { display: flex; flex-wrap: nowrap; align-items: center; gap: 0.375rem; margin: 0; padding: 0; list-style: none; font-size: 0.8125rem; color: var(--jms-muted-fg); min-width: 0; }
.jms-breadcrumb li { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jms-breadcrumb li + li::before { content: ""; display: inline-block; width: 0.375rem; height: 0.375rem; margin: 0 0.625rem 0.125rem 0.125rem; border-right: 1.5px solid var(--jms-disabled-fg); border-bottom: 1.5px solid var(--jms-disabled-fg); transform: rotate(-45deg); vertical-align: middle; }
.jms-breadcrumb a { display: inline-block; padding: 0.375rem 0; color: var(--jms-muted-fg); text-decoration: none; }
.jms-breadcrumb a:hover { color: var(--jms-heading); }
.jms-breadcrumb [aria-current="page"] { color: var(--jms-heading); font-weight: 500; }

/* A link that is the whole heading (the current-issue card, section titles that link on) is a tap target, and at
   0.9375rem/1.4 the line box is ~21px — under the WCAG 2.2 24px minimum. */
.text-card-title > a,
.text-section-title > a { display: inline-block; min-height: 1.5rem; }

/* ---- Page header ---- */
.page-header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.page-header-main { min-width: 0; }
.page-header-title { display: flex; align-items: center; flex-wrap: wrap; gap: 0.625rem; }
.page-header-title h1 { margin: 0; }
.page-header-subtitle { margin: 0.25rem 0 0; }
/* flex: 0 1 auto (not `none`) so the actions box can shrink below max-content and its own wrap engages;
   `flex: none` kept it at full width and pushed the document sideways at 375px. */
.page-header-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; flex: 0 1 auto; min-width: 0; max-width: 100%; }

/* ---- Manuscript status chip (tone + leading dot; text always present) ---- */
.jms-status { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.125rem 0.625rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 500; line-height: 1.4; white-space: nowrap; color: var(--fg); background: var(--bg); border: 1px solid transparent; }
.jms-status::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; flex: none; }
.jms-status[data-tone="neutral"]    { --fg: var(--jms-tone-neutral-fg);    --bg: var(--jms-tone-neutral-bg); }
.jms-status[data-tone="journal"]    { --fg: var(--jms-tone-journal-fg);    --bg: var(--jms-tone-journal-bg); }
.jms-status[data-tone="review"]     { --fg: var(--jms-tone-review-fg);     --bg: var(--jms-tone-review-bg); }
.jms-status[data-tone="author"]     { --fg: var(--jms-tone-author-fg);     --bg: var(--jms-tone-author-bg); }
.jms-status[data-tone="production"] { --fg: var(--jms-tone-production-fg); --bg: var(--jms-tone-production-bg); }
.jms-status[data-tone="success"]    { --fg: var(--jms-tone-success-fg);    --bg: var(--jms-tone-success-bg); }
.jms-status[data-tone="danger"]     { --fg: var(--jms-tone-danger-fg);     --bg: var(--jms-tone-danger-bg); }
.jms-status[data-tone="info"]       { --fg: var(--jms-info);               --bg: var(--jms-info-bg); }
.jms-status[data-tone="warning"]    { --fg: var(--jms-warning);            --bg: var(--jms-warning-bg); }
.jms-status[data-attention="true"]  { border-color: var(--jms-age-late); }
.jms-status__detail { font-weight: 400; opacity: 0.85; }

/* ---- Age signpost ---- */
.jms-age { display: inline-flex; align-items: center; gap: 0.375rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.jms-age::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--jms-age-ok); flex: none; }
.jms-age[data-age="warn"]::before { background: var(--jms-age-warn); }
.jms-age[data-age="late"]::before { background: var(--jms-age-late); }
.jms-age[data-age="late"] { color: var(--jms-age-late); font-weight: 500; }

/* ---- Stage stepper ---- */
/* Dot above, label below; the connector runs between dots so it never crosses text. */
.jms-stepper { display: flex; list-style: none; margin: 0; padding: 0; }
.jms-stepper__step { flex: 1 1 0; position: relative; padding: 1.3rem 0.5rem 0 0; color: var(--jms-muted-fg); font-size: 0.8125rem; line-height: 1.3; min-width: 0; }
.jms-stepper__step::before { content: ""; position: absolute; left: 0; top: 0; width: 0.9rem; height: 0.9rem; border-radius: 50%; border: 2px solid var(--jms-border); background: var(--jms-surface); box-sizing: border-box; z-index: 1; }
.jms-stepper__step::after { content: ""; position: absolute; left: 0.9rem; right: 0; top: 0.4rem; height: 2px; background: var(--jms-border); }
.jms-stepper__step:last-child::after { display: none; }
.jms-stepper__label { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jms-stepper__step[data-state="done"]::before, .jms-stepper__step[data-state="done"]::after { background: var(--jms-brand); border-color: var(--jms-brand); }
.jms-stepper__step[data-state="current"] { color: var(--jms-heading); font-weight: 600; }
.jms-stepper__step[data-state="current"]::before { border-color: var(--jms-brand); box-shadow: 0 0 0 3px var(--jms-tone-journal-bg); }
.jms-stepper__closed { margin: 0.5rem 0 0; font-size: 0.8125rem; font-weight: 500; }
.jms-stepper__closed[data-tone="danger"] { color: var(--jms-tone-danger-fg); }
.jms-stepper__closed[data-tone="neutral"] { color: var(--jms-tone-neutral-fg); }
/* Phones: dots stay, only the current step keeps a visible label (others remain in the accessibility tree). */
@media (max-width: 575.98px) {
  .jms-stepper__step { padding-right: 0.25rem; }
  .jms-stepper__step:not([data-state="current"]) .jms-stepper__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .jms-stepper__step[data-state="current"] { flex: 2 1 0; }

  /* A completed wizard step collapses to a bare dot on a phone. The dot stays the same size; the anchor around it
     grows to a comfortable target, so "go back to Details" is not a 12px hit area. */
  .jms-stepper__step:not([data-state="current"]) a.jms-stepper__label {
    position: absolute;
    clip: auto;
    left: 0;
    top: -0.5rem;
    width: 2.25rem;   /* 36px — comfortably past the 24px WCAG 2.2 target minimum */
    height: 2.25rem;  /* kept inside the step's own box so it cannot cover the content below */
    overflow: hidden;
    text-indent: -999em;
  }
}

/* ---- Manuscript header ---- */
.ms-header { background: var(--jms-surface); border: 1px solid var(--jms-border); border-radius: var(--jms-radius-lg); padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.ms-header-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 0.5rem; font-size: 0.8125rem; color: var(--jms-muted-fg); }
.ms-header-meta strong { color: var(--jms-text); font-weight: 500; }
.ms-header .jms-stepper { margin-top: 1rem; }

/* ---- Stat cards ---- */
.stat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); margin-bottom: 1.5rem; }
.stat-card { display: block; background: var(--jms-surface); border: 1px solid var(--jms-border); border-radius: var(--jms-radius-lg); padding: 1rem 1.25rem; color: inherit; text-decoration: none; box-shadow: var(--jms-shadow-xs); transition: border-color var(--jms-motion-fast), box-shadow var(--jms-motion-fast); }
a.stat-card:hover { border-color: var(--jms-brand); box-shadow: var(--jms-shadow-sm); color: inherit; }
.stat-card-label { font-size: 0.8125rem; color: var(--jms-muted-fg); font-weight: 500; }
.stat-card-value { font-size: 1.75rem; font-weight: 600; line-height: 1.2; color: var(--jms-heading); font-variant-numeric: tabular-nums; margin-top: 0.25rem; }
.stat-card-note { font-size: 0.8125rem; color: var(--jms-muted-fg); margin-top: 0.375rem; }
.stat-card-icon { float: right; color: var(--jms-muted-fg); }

/* ---- Empty state ---- */
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 2.5rem 1.5rem; border: 1px dashed var(--jms-border); border-radius: var(--jms-radius-xl); background: var(--jms-surface); }
.empty-state-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: var(--jms-radius-lg); background: var(--jms-muted); color: var(--jms-muted-fg); margin-bottom: 0.75rem; }
.empty-state-icon .jms-icon { width: 1.375rem; height: 1.375rem; }
.empty-state-title { font-size: 1rem; font-weight: 600; color: var(--jms-heading); margin: 0; }
.empty-state-text { font-size: 0.875rem; color: var(--jms-muted-fg); margin: 0.375rem 0 0; max-width: 36rem; }
.empty-state-actions { margin-top: 1rem; display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }

/* ---- Table frame ---- */
.table-frame { background: var(--jms-surface); border: 1px solid var(--jms-border); border-radius: var(--jms-radius-lg); overflow: hidden; }
/* position: relative keeps absolutely-positioned descendants (e.g. .visually-hidden headers) clipped inside the scroll region.
   The two background layers are the "there is more to the right" affordance, and they need no script: the shadow is
   attached to the box (background-attachment: scroll) while the cover is attached to the content (…: local), so the
   cover slides over the shadow exactly when the last column comes into view. Without it a wide cross-tab looks
   finished while its Total column is off-screen. Cells are transparent (--bs-table-bg), so this shows through. */
.table-scroll {
  position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; min-width: 0; max-width: 100%;
  background:
    linear-gradient(to left, var(--jms-surface), transparent) right center / 1.5rem 100% no-repeat local,
    radial-gradient(farthest-side at 100% 50%, var(--jms-border), transparent) right center / 0.75rem 100% no-repeat scroll;
}
.table-scroll:focus-visible { outline-offset: -2px; }
/* Wide cross-tabs: the row label stays put while the value columns scroll under it. Only above the stack
   breakpoint — below it .table--stack turns each row into a block and there is nothing to scroll sideways. */
@media (min-width: 768px) {
  .table--sticky-first > * > tr > :first-child { position: sticky; left: 0; z-index: 1; background: var(--jms-surface); }
}
.table-frame .table { margin: 0; }
.table-frame .table > :not(caption) > :last-child > * { border-bottom: 0; }
.table-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--jms-divider); background: var(--jms-surface); }
.table-toolbar .form-control, .table-toolbar .form-select { font-size: 0.875rem; }
.table-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.625rem 1rem; border-top: 1px solid var(--jms-divider); font-size: 0.8125rem; color: var(--jms-muted-fg); }
.table caption { caption-side: top; padding: 0; }
.table .cell-primary { font-weight: 500; color: var(--jms-heading); }
.table .cell-secondary { font-size: 0.8125rem; color: var(--jms-muted-fg); }
.table .cell-actions { text-align: right; white-space: nowrap; width: 1%; }
/* Stacked rows on phones for self-contained lists */
@media (max-width: 767.98px) {
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table--stack tr { display: block; border-bottom: 1px solid var(--jms-divider); padding: 0.5rem 0; }
  .table--stack td { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.5rem; border: 0; padding: 0.25rem 1rem; }
  .table--stack td::before { content: attr(data-label); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--jms-muted-fg); }
  .table--stack td.cell-actions { text-align: left; white-space: normal; width: auto; }
  .table--stack td.cell-actions::before { content: ""; }
}

/* ---- Pagination ---- */
.pagination { --bs-pagination-color: var(--jms-text); --bs-pagination-bg: var(--jms-surface); --bs-pagination-border-color: var(--jms-border); --bs-pagination-hover-bg: var(--jms-hover); --bs-pagination-hover-color: var(--jms-heading); --bs-pagination-active-bg: var(--jms-brand); --bs-pagination-active-border-color: var(--jms-brand); --bs-pagination-active-color: var(--jms-brand-fg); --bs-pagination-disabled-color: var(--jms-disabled-fg); --bs-pagination-disabled-bg: var(--jms-surface); --bs-pagination-border-radius: var(--jms-radius-md); margin: 0; }

/* ---- Forms ---- */
.field { margin-bottom: 1.25rem; }
.field .form-label .required { color: var(--jms-danger); margin-left: 0.125rem; }
.field[data-invalid="true"] .form-label { color: var(--jms-danger); }
.form-stack { display: flex; flex-direction: column; gap: 0; }
.form-section { margin-bottom: 1.5rem; }
.form-section-title { font-size: 0.9375rem; font-weight: 600; color: var(--jms-heading); margin: 0 0 0.25rem; }
.form-section-text { font-size: 0.8125rem; color: var(--jms-muted-fg); margin: 0 0 1rem; }
.form-actions { display: flex; flex-direction: column-reverse; gap: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--jms-divider); margin-top: 0.5rem; }
@media (min-width: 576px) { .form-actions { flex-direction: row; justify-content: flex-end; align-items: center; } }
/* Inside a card footer the footer already draws the rule and the padding. */
.card-footer > .form-actions { padding-top: 0; border-top: 0; margin-top: 0; }
.error-summary { border-left: 4px solid var(--jms-danger); }
.error-summary ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.error-summary a { color: var(--jms-danger); font-weight: 500; }
.auth-card { max-width: 26rem; margin: 2rem auto; }
.auth-card .card-body { padding: 1.75rem; }

/* ---- Detail list ---- */
.detail-list { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.25rem; margin: 0; font-size: 0.875rem; }
.detail-list dt { color: var(--jms-muted-fg); font-weight: 500; }
.detail-list dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 575.98px) { .detail-list { grid-template-columns: 1fr; gap: 0.125rem 0; } .detail-list dd { margin-bottom: 0.625rem; } }

/* ---- Alerts with icon ---- */
.alert-icon { display: flex; gap: 0.75rem; align-items: flex-start; }
.alert-icon .jms-icon { flex: none; margin-top: 0.125rem; width: 1.125rem; height: 1.125rem; }

/* ---- Skeleton ---- */
.skeleton { position: relative; overflow: hidden; background: var(--jms-muted); border-radius: var(--jms-radius-sm); color: transparent !important; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--jms-surface) 60%, transparent), transparent); animation: jms-shimmer var(--jms-motion-shimmer) infinite; }
@keyframes jms-shimmer { to { transform: translateX(100%); } }
.skeleton-line { height: 0.875rem; margin: 0.375rem 0; }

/* ---- Back link ---- */
.back-link { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.375rem 0; font-size: 0.875rem; color: var(--jms-muted-fg); text-decoration: none; margin-top: 1.25rem; }
.back-link:hover { color: var(--jms-heading); }

/* ---- Public site chrome ---- */
/* Classic academic journal: white pages, a masthead (utility strip, journal identity, primary navigation) and a
   footer of link columns. The editorial dashboard keeps its own sidebar shell (.app-shell). */
.site { background: var(--jms-surface); --bs-body-bg: var(--jms-surface); }
.site-container { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 768px) { .site-container { padding-inline: 1.5rem; } }
@media (min-width: 1400px) { .site-container { padding-inline: 2rem; } }

/* Utility strip */
/* The journal's navy with a soft brand glow on the right, a faint dot texture fading in from the left and a brand
   rule beneath; links light up as pills on hover. */
.site-utility { position: relative; isolation: isolate; background: radial-gradient(40rem 9rem at 88% 50%, color-mix(in oklab, var(--jms-brand) 36%, transparent), transparent 70%), linear-gradient(100deg, var(--jms-strip) 0%, color-mix(in oklab, var(--jms-strip) 90%, var(--jms-strip-fg)) 100%); color: var(--jms-strip-fg); font-size: 0.8125rem; }
.site-utility::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(color-mix(in srgb, var(--jms-strip-fg) 12%, transparent) 1px, transparent 1.5px); background-size: 0.875rem 0.875rem; -webkit-mask-image: linear-gradient(90deg, transparent 25%, var(--jms-strip-fg)); mask-image: linear-gradient(90deg, transparent 25%, var(--jms-strip-fg)); }
.site-utility::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: linear-gradient(90deg, var(--jms-brand) 0%, color-mix(in oklab, var(--jms-brand) 45%, var(--jms-strip)) 55%, transparent 100%); }
.site-utility__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.75rem; }
.site-utility__note { display: flex; align-items: center; gap: 0.5rem; margin: 0; letter-spacing: 0.01em; min-width: 0; }
.site-utility__note-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-utility__seal { flex: none; width: 1.625rem; height: 1.625rem; padding: 0.0625rem; border-radius: 50%; background: var(--jms-strip-fg); box-shadow: 0 0 0 2px color-mix(in oklab, var(--jms-brand) 55%, transparent); object-fit: contain; }
.site-utility__actions { display: flex; align-items: center; gap: 0.5rem; flex: none; }
/* Its own stacking layer (glow, texture) sits above the sticky site menu (1020), so the account and notification
   menus open over the menu bar instead of behind it; offcanvas (1045) and modals (1055) still cover it. */
.site-utility { z-index: 1030; }
/* Strip colours stop at its dropdown menus: those are light surfaces with the normal menu colours. */
.site-utility a:not(.dropdown-menu *), .site-utility .btn-link:not(.dropdown-menu *), .site-utility .icon-btn { color: var(--jms-strip-fg); }
.site-utility .text-label { color: inherit; }
.site-utility__link { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.625rem; border-radius: 999px; transition: background-color var(--jms-motion-fast), color var(--jms-motion-fast); }
.site-utility__link:hover { background: color-mix(in srgb, var(--jms-strip-fg) 14%, transparent); color: var(--jms-strip-fg); }
.site-utility .icon-btn { width: 2rem; height: 2rem; }
.site-utility .icon-btn:hover { background: color-mix(in srgb, var(--jms-strip-fg) 14%, transparent); color: var(--jms-strip-fg); }
.site-utility .avatar { width: 1.75rem; height: 1.75rem; }
.site-utility .btn { --bs-btn-padding-y: 0.125rem; --bs-btn-padding-x: 0.625rem; --bs-btn-font-size: 0.8125rem; }
.site-utility .btn-secondary, .site-utility .btn-outline-secondary { --bs-btn-color: var(--jms-strip-fg); --bs-btn-bg: transparent; --bs-btn-border-color: color-mix(in srgb, var(--jms-strip-fg) 45%, transparent); --bs-btn-hover-bg: color-mix(in srgb, var(--jms-strip-fg) 14%, transparent); --bs-btn-hover-color: var(--jms-strip-fg); --bs-btn-hover-border-color: var(--jms-strip-fg); }

/* Masthead: journal identity, search, submit */
.site-header { background: var(--jms-surface); }
.site-masthead { display: flex; align-items: center; gap: 1rem; padding-block: 1.125rem; }
@media (min-width: 992px) { .site-masthead { padding-block: 1.5rem; gap: 1.5rem; } }
.site-brand { display: flex; align-items: center; gap: 0.875rem; min-width: 0; color: var(--jms-heading); text-decoration: none; }
.site-brand:hover { color: var(--jms-heading); }
.site-brand__mark { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 3rem; height: 3rem; padding-inline: 0.5rem; border-radius: var(--jms-radius-md); background: var(--jms-brand); color: var(--jms-brand-fg); font-family: var(--jms-font-serif); font-weight: 600; font-size: 1.0625rem; letter-spacing: 0.02em; }
.site-brand__mark:has(.brand-logo) { background: transparent; padding: 0; }
.site-brand__mark .brand-logo { height: 3.25rem; width: auto; }
/* Phones: a wordmark logo already names the journal, so the full title stays for screen readers only. */
@media (max-width: 575.98px) {
  .site-brand:has(.brand-logo) .site-brand__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .site-brand__mark .brand-logo { height: 2.75rem; }
}
@media (min-width: 992px) { .site-brand__mark { min-width: 3.5rem; height: 3.5rem; font-size: 1.25rem; } }
.site-brand__text { display: flex; flex-direction: column; min-width: 0; }
.site-brand__name { font-family: var(--jms-font-serif); font-weight: 600; font-size: 1.1875rem; line-height: 1.2; letter-spacing: -0.01em; }
@media (min-width: 992px) { .site-brand__name { font-size: 1.625rem; } }
.site-brand__meta { display: none; gap: 1rem; margin-top: 0.25rem; font-size: 0.75rem; color: var(--jms-muted-fg); letter-spacing: 0.02em; }
@media (min-width: 768px) { .site-brand__meta { display: flex; } }
.site-search { flex: 1 1 auto; max-width: 26rem; margin-left: auto; }
.site-search .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.site-search .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px; }

/* Primary navigation */
.site-nav { border-top: 1px solid var(--jms-divider); border-bottom: 1px solid var(--jms-border); background: var(--jms-surface); position: sticky; top: 0; z-index: 1020; }
.site-nav__list { display: flex; flex-wrap: wrap; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav__link { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.875rem 0.75rem; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--jms-text); font-size: 0.9375rem; font-weight: 500; text-decoration: none; }
.site-nav__link:hover, .site-nav__link[aria-expanded="true"] { color: var(--jms-brand); text-decoration: none; }
.site-nav__link[aria-current="page"], .site-nav__toggle[data-current="true"] { color: var(--jms-brand); border-bottom-color: var(--jms-brand); }
.site-nav__menu { margin-top: 0 !important; min-width: 14rem; border-top-left-radius: 0; border-top-right-radius: 0; }
.site-nav__menu .dropdown-item[aria-current="page"] { color: var(--jms-brand); font-weight: 600; background: transparent; }

/* Mobile drawer (below lg) */
.site-drawer { --bs-offcanvas-width: min(20rem, 88vw); }
.site-drawer .offcanvas-body { display: flex; flex-direction: column; padding: 0; }

/* Page */
.site-main { padding-block: 1.75rem 3rem; }
@media (min-width: 992px) { .site-main { padding-block: 2.5rem 4rem; } }
.site-content { max-width: 80rem; margin-inline: auto; }

/* Footer */
/* Footer: the masthead's navy again, lit by a brand glow at the top right and a faint dot texture fading downwards,
   so the page is framed top and bottom. Text is a softened strip colour; links brighten on hover. */
/* Shared navy band (footer, issue header): the masthead navy lit by a brand glow at the top right, a faint dot
   texture fading downwards, and text in a softened strip colour. */
.band-navy { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(52rem 26rem at 100% 0%, color-mix(in oklab, var(--jms-brand) 26%, transparent), transparent 70%), radial-gradient(44rem 22rem at 0% 100%, color-mix(in oklab, var(--jms-strip-fg) 7%, transparent), transparent 70%), var(--jms-strip); color: color-mix(in srgb, var(--jms-strip-fg) 78%, var(--jms-strip)); }
.band-navy::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(color-mix(in srgb, var(--jms-strip-fg) 9%, transparent) 1px, transparent 1.5px); background-size: 1rem 1rem; -webkit-mask-image: linear-gradient(180deg, var(--jms-strip-fg), transparent 80%); mask-image: linear-gradient(180deg, var(--jms-strip-fg), transparent 80%); }
.site-footer { flex-shrink: 0; border-top: 3px solid var(--jms-brand); font-size: 0.875rem; }
.site-footer a:not(.btn) { color: inherit; }
.site-footer a:not(.btn):hover { color: var(--jms-strip-fg); }
.site-footer__grid { display: grid; gap: 2rem; padding-block: 3rem 2.25rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .site-footer__grid { grid-template-columns: minmax(0, 1.6fr) repeat(auto-fit, minmax(10rem, 1fr)); gap: 2.5rem; } }
.site-footer__title { font-family: var(--jms-font-serif); font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--jms-strip-fg); }
.site-footer__lede { max-width: 60ch; margin-bottom: 1.25rem; }
.site-footer__publisher { display: flex; align-items: center; gap: 0.875rem; margin-bottom: 1.25rem; }
.site-footer__seal { flex: none; width: 3.5rem; height: 3.5rem; padding: 0.125rem; border-radius: 50%; background: var(--jms-strip-fg); box-shadow: 0 0 0 3px color-mix(in oklab, var(--jms-brand) 50%, transparent); object-fit: contain; }
.site-footer__publisher-label { display: block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: color-mix(in srgb, var(--jms-strip-fg) 64%, var(--jms-strip)); }
.site-footer__publisher-name { display: block; font-family: var(--jms-font-serif); font-size: 1rem; font-weight: 600; color: var(--jms-strip-fg); }
.site-footer__facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0 0 1.25rem; }
.site-footer__facts dt { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: color-mix(in srgb, var(--jms-strip-fg) 64%, var(--jms-strip)); }
.site-footer__facts dd { margin: 0; color: var(--jms-strip-fg); }
.site-footer__heading { font-family: var(--bs-font-sans-serif); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--jms-strip-fg); margin-bottom: 0.75rem; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.125rem; }
.site-footer__bottom { border-top: 1px solid color-mix(in srgb, var(--jms-strip-fg) 14%, transparent); font-size: 0.8125rem; }
.site-footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 0.875rem; }
.site-footer__row--credit { padding-block: 0.75rem; border-top: 1px solid color-mix(in srgb, var(--jms-strip-fg) 10%, transparent); font-size: 0.75rem; }
.site-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem; }
.site-footer__partner strong, .site-footer__partner a { font-weight: 600; letter-spacing: 0.04em; color: var(--jms-strip-fg); }
.site-footer__social { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-footer__social a { display: inline-flex; align-items: center; gap: 0.375rem; }
.masthead { padding: 2.5rem 0 2rem; border-bottom: 1px solid var(--jms-divider); margin-bottom: 2rem; }
.masthead-title { font-family: var(--jms-font-serif); font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); font-weight: 600; letter-spacing: -0.015em; color: var(--jms-heading); }
.masthead-desc { font-size: 1rem; color: var(--jms-muted-fg); max-width: 60ch; }
.issue-card { display: block; background: var(--jms-surface); border: 1px solid var(--jms-border); border-radius: var(--jms-radius-lg); padding: 1rem 1.25rem; color: inherit; text-decoration: none; transition: border-color var(--jms-motion-fast); }
.issue-card:hover { border-color: var(--jms-brand); color: inherit; }
.article-list { list-style: none; margin: 0; padding: 0; }
.article-list li { padding: 1rem 0; border-bottom: 1px solid var(--jms-divider); }
.article-list li:first-child { padding-top: 0; }
.article-list a { color: var(--jms-heading); text-decoration: none; }
.article-list a:hover { color: var(--jms-brand); }
.article-rail { font-size: 0.875rem; }
/* The download, citation and details stay beside the text while the reader scrolls, below the sticky site nav,
   on screens tall enough to hold them. */
@media (min-width: 992px) and (min-height: 50rem) { .article-rail__sticky { position: sticky; top: 4.5rem; } }
.article-rail .rail-section { padding: 1rem 0; border-top: 1px solid var(--jms-divider); }
.article-rail .rail-section:first-child { border-top: 0; padding-top: 0; }
.article-rail .rail-label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--jms-muted-fg); margin-bottom: 0.25rem; }
.keyword-chip { display: inline-block; padding: 0.125rem 0.5rem; border-radius: 999px; background: var(--jms-muted); color: var(--jms-text); font-size: 0.75rem; margin: 0 0.25rem 0.25rem 0; }
.masthead-lede { font-size: 1.0625rem; color: var(--jms-muted-fg); max-width: 62ch; margin: 0.5rem 0 1.25rem; }
.masthead-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin: 0 0 1.5rem; font-size: 0.875rem; }
.masthead-meta dt { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--jms-muted-fg); }
.masthead-meta dd { margin: 0; color: var(--jms-heading); }
.masthead-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.article-list__title { font-family: var(--jms-font-serif); font-size: 1.125rem; font-weight: 600; line-height: 1.35; margin: 0 0 0.25rem; }
.article-list__authors { margin: 0 0 0.25rem; font-size: 0.875rem; color: var(--jms-text); }
.article-list__meta { margin: 0; font-size: 0.8125rem; color: var(--jms-muted-fg); display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; }
.article-list__summary { margin: 0 0 0.375rem; font-size: 0.9375rem; line-height: 1.55; color: var(--jms-text); max-width: 76ch; }
.announce-dialog .modal-body { font-size: 0.9375rem; line-height: 1.6; }
.announce-dialog .modal-title { font-family: var(--jms-font-serif); font-size: 1.25rem; font-weight: 600; line-height: 1.35; color: var(--jms-heading); }
.issue-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
/* Archive year groups: the year and its volume number head each group; beside the cards from lg up. */
.issue-year { display: grid; gap: 0.75rem 2rem; padding: 1.75rem 0; border-top: 1px solid var(--jms-divider); scroll-margin-top: 1rem; }
.issue-year:first-of-type { border-top: 0; padding-top: 0.5rem; }
@media (min-width: 992px) { .issue-year { grid-template-columns: 9rem minmax(0, 1fr); } }
.issue-year__head { display: flex; align-items: baseline; gap: 0.75rem; }
@media (min-width: 992px) { .issue-year__head { flex-direction: column; gap: 0.125rem; } }
.issue-year__title { margin: 0; font-family: var(--jms-font-serif); font-size: 1.5rem; font-weight: 600; line-height: 1.1; color: var(--jms-heading); }
.issue-year__volume { margin: 0; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--jms-muted-fg); }
.issue-grid--single { grid-template-columns: minmax(16rem, 24rem); }
.issue-card { display: flex; gap: 0.875rem; align-items: flex-start; }
.issue-card--current { border-color: var(--jms-brand); }
.issue-card__cover { flex: none; width: 4.5rem; height: 6.375rem; border-radius: var(--jms-radius-sm); border: 1px solid var(--jms-border); object-fit: cover; background: var(--jms-muted); }
.issue-card__cover--placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.125rem; font-family: var(--jms-font-serif); color: var(--jms-heading); text-align: center; line-height: 1.2; }
.issue-card__cover-volume { font-size: 0.8125rem; font-weight: 600; }
.issue-card__cover-number { font-size: 0.75rem; color: var(--jms-muted-fg); }
.issue-card__body { min-width: 0; }
.issue-card__name { display: block; font-family: var(--jms-font-serif); font-size: 1.0625rem; font-weight: 600; line-height: 1.3; color: var(--jms-heading); overflow-wrap: anywhere; }
.issue-card:hover .issue-card__name { color: var(--jms-brand); }
/* Phones: two cards a row; the lettered placeholder only repeats the name, so it gives way (a real cover stays). */
@media (max-width: 575.98px) {
  .issue-year .issue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .issue-year .issue-card { padding: 0.75rem; }
  .issue-year .issue-card__cover--placeholder { display: none; }
  .issue-year .issue-card__name { font-size: 0.9375rem; }
}
.issue-card__meta { display: block; font-size: 0.8125rem; color: var(--jms-muted-fg); margin-top: 0.25rem; }
.issue-card__badge { display: inline-block; margin-top: 0.5rem; padding: 0.125rem 0.5rem; border-radius: 999px; background: var(--jms-brand); color: var(--jms-brand-fg); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.issue-series { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.issue-series .keyword-chip { padding: 0.375rem 0.75rem; font-size: 0.8125rem; color: var(--jms-heading); text-decoration: none; }
.issue-series .keyword-chip:hover { background: var(--jms-hover); }
.issue-series .keyword-chip.is-active { background: var(--jms-brand); color: var(--jms-brand-fg); }
/* Issue table of contents: category sections, numbered rows (legacy IssueDetails layout) */
.issue-toc { margin-bottom: 2rem; }
.issue-toc__heading { display: flex; align-items: baseline; gap: 0.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--jms-border); margin-bottom: 0.25rem; }
.issue-toc__count { font-family: var(--jms-font-sans); font-size: 0.75rem; font-weight: 500; color: var(--jms-muted-fg); }
.issue-toc__list { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.issue-toc__row { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.5rem; padding: 1rem 0; border-bottom: 1px solid var(--jms-divider); counter-increment: toc; }
.issue-toc__row::before { content: counter(toc); font-family: var(--jms-font-serif); font-size: 0.9375rem; font-weight: 600; color: var(--jms-muted-fg); line-height: 1.5; text-align: right; padding-right: 0.25rem; }
.issue-toc__row:last-child { border-bottom: 0; }
.issue-toc__body { min-width: 0; }
.issue-toc__body .article-list__title { font-size: 1.0625rem; }
/* Titles read as headings, not as a column of red links; the brand colour marks hover and the actions. */
.article-list__title a { color: var(--jms-heading); text-decoration: none; }
.article-list__title a:hover { color: var(--jms-brand); }
.article-list__meta a { color: var(--jms-muted-fg); }
.article-list__meta a:hover { color: var(--jms-brand); }
.issue-toc__actions { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; margin: 0.375rem 0 0 -0.5rem; }
.issue-toc__actions .btn-link { padding: 0.25rem 0.5rem; font-size: 0.8125rem; text-decoration: none; }
.issue-toc__actions .btn-link:hover { color: var(--jms-link-hover); }
.issue-summary { display: flex; gap: 1rem; align-items: flex-start; }
.issue-summary__cover { flex: none; width: 5rem; height: 7.0625rem; }
.archive-years { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.archive-years .keyword-chip { padding: 0.375rem 0.75rem; font-size: 0.8125rem; color: var(--jms-heading); text-decoration: none; }
.archive-years .keyword-chip:hover { background: var(--jms-hover); }
/* Public search: rail card (stacked) and results-page filter bar (grid) share _SearchPanel */
.search-panel--compact .field { margin-bottom: 0; }
.search-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem 0.5rem; margin: 0 0 1rem; font-size: 0.8125rem; color: var(--jms-muted-fg); }
.search-filters .keyword-chip { margin: 0; }
.search-filters a { display: inline-block; padding: 0.25rem 0; }
.article-header { margin-bottom: 2rem; }
.article-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem 0.75rem; margin: 0 0 0.75rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--jms-muted-fg); }
.article-kicker__type { padding: 0.1875rem 0.5rem; border-radius: var(--jms-radius-sm); background: var(--jms-heading); color: var(--jms-surface); letter-spacing: 0.04em; }
.article-authors { font-size: 1.0625rem; font-weight: 500; color: var(--jms-heading); margin: 0.875rem 0 0.25rem; }
/* Citation facts: one ruled row under the byline (published, issue, pages, DOI). */
.article-facts { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin: 1.25rem 0 0; padding: 0.875rem 0; border-top: 1px solid var(--jms-border); border-bottom: 1px solid var(--jms-border); }
.article-facts > div { min-width: 0; }
.article-facts dt { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--jms-muted-fg); }
.article-facts dd { margin: 0.125rem 0 0; font-size: 0.9375rem; color: var(--jms-text); }
.article-facts dd a { margin: -0.25rem 0; } /* keeps the padded touch target without lowering the line */
.article-page .prose-article { max-width: none; }
.detail-list--compact { font-size: 0.8125rem; gap: 0.375rem 1rem; }
.auth-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; justify-content: center; margin-top: 1.25rem; font-size: 0.875rem; }
.auth-card .empty-state { border: 0; padding: 1rem 0; }
.text-meta-inverse { font-size: 0.8125rem; opacity: 0.8; }
.attention-list .list-group-item { padding: 0.75rem 1.25rem; }
/* Touch targets: standalone text links get vertical padding so they clear 24px on phones (WCAG 2.5.8). */
.table .cell-primary, .site-footer a:not(.btn), .auth-links a, .article-facts a, .text-eyebrow a, a.text-meta, .text-meta a, .article-list__meta a, .detail-list a { display: inline-block; padding: 0.25rem 0; }
.text-eyebrow a { padding: 0.4rem 0; }

/* ---- Utilities ---- */
.visually-hidden-focusable:focus { position: static; }
.text-break-all { overflow-wrap: anywhere; }
.min-w-0 { min-width: 0; }
.ws-normal { white-space: normal !important; }

/* ---- Public site navigation (two-tier masthead: brand row, then the database-driven menu) ---- */

/* ---- Static CMS pages (/pages/{slug}) ---- */
.static-page__header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.75rem 1.5rem; }
.static-page__body { overflow-wrap: anywhere; }
.static-page__body .prose-table, .static-page__body .prose-table a { overflow-wrap: normal; }
/* Text colours pasted from Word (pure red, blue, purple) ignore the theme and vanish on the dark background; CMS text
   takes the page's own colours, links the link colour. */
.static-page__body [style*="color"] { color: inherit !important; }
.static-page__body a[style*="color"], .static-page__body [style*="color"] a { color: var(--jms-link) !important; }
.static-page__body > :not(.prose-table) { max-width: 76ch; }
@media (min-width: 992px) {
  .static-layout:has(> .section-nav) { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 3rem; align-items: start; }
  .static-layout > .section-nav { grid-column: 1; grid-row: 1; position: sticky; top: 4.5rem; margin: 0; padding: 0; border: 0; }
  .static-layout > .static-page { grid-column: 2; }
}
.section-nav { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--jms-divider); }
.section-nav__title { margin: 0 0 0.5rem; font-family: var(--bs-font-sans-serif); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--jms-muted-fg); }
.section-nav__list { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--jms-border); }
.section-nav__link { display: block; margin-left: -1px; padding: 0.4375rem 0.875rem; border-left: 2px solid transparent; font-size: 0.9375rem; line-height: 1.35; color: var(--jms-text); text-decoration: none; }
.section-nav__link:hover { color: var(--jms-brand); border-left-color: var(--jms-border); }
.section-nav__link[aria-current="page"] { border-left-color: var(--jms-brand); color: var(--jms-heading); font-weight: 600; }
.static-page__body h2, .static-page__body h3, .static-page__body h4 { font-family: var(--jms-font-serif); color: var(--jms-heading); font-weight: 600; line-height: 1.3; margin: 1.75em 0 0.6em; }
.static-page__body h2 { font-size: 1.375rem; }
.static-page__body h3 { font-size: 1.125rem; }
.static-page__body h4 { font-size: 1.0625rem; }
.static-page__body img { max-width: 100%; height: auto; border-radius: var(--jms-radius-md); }
/* CMS tables are pasted from Word with inline widths and borders; the journal table style overrides them, and long
   text cells wrap (a wide table scrolls inside its frame rather than stretching every cell to one line). */
.static-page__body .prose-table table { width: 100% !important; min-width: 36rem; }
.static-page__body .prose-table :is(td, th) { width: auto !important; height: auto !important; border: 0 !important; border-bottom: 1px solid var(--jms-divider) !important; background: transparent !important; }
.static-page__body .prose-table th, .static-page__body .prose-table table:not(:has(th, thead)) tr:first-child > td { border-bottom-color: var(--jms-heading) !important; }
.static-page__body .prose-table tr:last-child > :is(td, th) { border-bottom: 0 !important; }
.static-page__body ul, .static-page__body ol { padding-left: 1.5rem; margin-bottom: 1.1em; }
.static-page__body blockquote { border-left: 2px solid var(--jms-border); padding-left: 1rem; color: var(--jms-muted-fg); }
.static-page__body a { overflow-wrap: anywhere; }

/* ---- Admin menu tree + narrow form cards ---- */
.menu-tree__title { display: inline-flex; align-items: center; gap: 0.375rem; }
.menu-tree__child .menu-tree__title { padding-left: 1.25rem; color: var(--jms-muted-fg); }
.menu-tree__child .menu-tree__title .jms-icon { flex: none; }
.menu-tree__group .cell-primary { font-weight: 600; }
@media (max-width: 767.98px) { .menu-tree__child .menu-tree__title { padding-left: 0.5rem; } }
.form-card { max-width: 56rem; }

/* ---- Brand mark (logo or text) in the public masthead and the dashboard sidebar ---- */
.brand-logo { display: block; height: 2.25rem; width: auto; max-width: 100%; object-fit: contain; }
.sidebar-brand .brand-logo { height: 2rem; }
/* Themeable logo SVGs, inlined by <brand-mark> / <themed-logo>: painted by the logo tokens (tokens.css). */
.jms-logo-frame { stroke: var(--jms-logo-frame); }
.jms-logo-text { fill: var(--jms-logo-text); }
.jms-logo-tile { fill: var(--jms-logo-tile); }

/* ---- Brand colour preview (Settings/Journal): values arrive as --preview-* custom properties from C#/JSON ---- */
.brand-field { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.brand-field .form-control-color { width: 3rem; height: 2.375rem; padding: 0.25rem; flex: 0 0 auto; }
.brand-field .form-control:not(.form-control-color) { flex: 1 1 8rem; max-width: 10rem; }
.brand-preview { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.brand-preview__theme { background: var(--jms-surface); color: var(--jms-text); border: 1px solid var(--jms-border); border-radius: var(--jms-radius-lg); padding: 0.875rem 1rem; display: flex; flex-direction: column; gap: 0.625rem; }
.brand-preview__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.brand-preview__button { display: inline-block; padding: 0.375rem 0.875rem; border-radius: var(--jms-radius-md); font-size: 0.875rem; font-weight: 500; background: var(--preview-brand); color: var(--preview-brand-fg); border: 1px solid var(--preview-brand); }
.brand-preview__button--hover { background: var(--preview-brand-hover); border-color: var(--preview-brand-hover); }
.brand-preview__link { color: var(--preview-brand); font-weight: 500; text-decoration: underline; }
.brand-preview__chip { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.125rem 0.625rem; border-radius: 999px; font-size: 0.75rem; font-weight: 500; background: var(--preview-tint); color: var(--preview-brand); border: 1px solid var(--preview-tint-border); }
.brand-preview__chip::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 999px; background: currentColor; }
.brand-preview__charts { display: flex; gap: 0.25rem; }
.brand-preview__charts span { flex: 1 1 0; height: 0.75rem; border-radius: var(--jms-radius-sm); }
.brand-preview__charts span:nth-child(1) { background: var(--preview-chart-1); }
.brand-preview__charts span:nth-child(2) { background: var(--preview-chart-2); }
.brand-preview__charts span:nth-child(3) { background: var(--preview-chart-3); }
.brand-preview__charts span:nth-child(4) { background: var(--preview-chart-4); }
.brand-preview__charts span:nth-child(5) { background: var(--preview-chart-5); }
.brand-preview[data-state="invalid"] .brand-preview__theme { opacity: 0.5; }
.logo-current { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1rem; border: 1px dashed var(--jms-border); border-radius: var(--jms-radius-lg); background: var(--jms-muted); }
.logo-current__image { display: block; height: 3.5rem; width: auto; max-width: 12rem; object-fit: contain; }

/* ---- Public home: introduction, editorial timeline, Chief Editor, rail facts (legacy Default.aspx + JournalSidebar) ---- */
.journal-intro__body { display: flex; flex-wrap: wrap; gap: 1.25rem 1.5rem; }
.journal-intro__cover { flex: 0 0 9rem; margin: 0; }
/* aspect-ratio reserves the box before the image loads (no layout shift for LCP). */
.journal-intro__cover img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--jms-border); border-radius: var(--jms-radius-md); background: var(--jms-muted); }
.journal-intro__text { flex: 1 1 18rem; min-width: 0; }
.journal-intro__prose, .chief-editor__bio { font-size: 1rem; line-height: 1.65; max-width: 70ch; }
.journal-intro__prose > :last-child, .chief-editor__bio > :last-child { margin-bottom: 0; }
.timeline-strip__list { list-style: none; margin: 0.75rem 0; padding: 0; display: grid; gap: 0.75rem 1rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.timeline-strip { --bs-card-bg: var(--jms-info-bg); --bs-card-border-color: var(--jms-info-border); border-top: 3px solid var(--jms-heading); }
.timeline-strip .text-eyebrow { color: var(--jms-info); }
.timeline-strip__stage { padding: 0.625rem 0.75rem; border-left: 3px solid var(--jms-brand); border-radius: var(--jms-radius-sm); background: var(--jms-surface); }
.timeline-strip__value { display: block; font-size: 1.5rem; font-weight: 600; line-height: 1.2; color: var(--jms-heading); font-variant-numeric: tabular-nums; }
.timeline-strip__label { display: block; font-size: 0.8125rem; color: var(--jms-muted-fg); margin-top: 0.125rem; }
.chief-editor__body { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
.chief-editor__photo { flex: 0 0 auto; width: 9rem; height: 12rem; object-fit: cover; border: 1px solid var(--jms-border); border-radius: var(--jms-radius-md); background: var(--jms-muted); }
.chief-editor__text { flex: 1 1 18rem; min-width: 0; }
.glance-list { margin: 0; display: grid; gap: 0.75rem; }
.glance-list__item { padding-top: 0.75rem; border-top: 1px solid var(--jms-divider); }
.glance-list__item:first-child { padding-top: 0; border-top: 0; }
.glance-list dt { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; font-weight: 600; color: var(--jms-heading); }
.glance-list dd { margin: 0.125rem 0 0; color: var(--jms-text); }
.downloads-list { margin: 0; display: grid; gap: 0.5rem; }
.downloads-list div { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; }
.downloads-list dt { display: flex; align-items: center; gap: 0.375rem; font-weight: 500; color: var(--jms-text); }
.downloads-list dd { margin: 0; font-size: 1.25rem; font-weight: 600; color: var(--jms-heading); font-variant-numeric: tabular-nums; }

/* ---- Public article: breadcrumb, author block, full text ---- */
.article-page .jms-breadcrumb { margin-bottom: 1rem; }
.article-page .jms-breadcrumb li:first-child { flex: none; }
.article-page .jms-breadcrumb li:not(:first-child):not(:last-child) { flex: 0 1 auto; max-width: 40%; }
.article-page .jms-breadcrumb li:last-child { flex: 1 1 auto; }
/* Phones: Home and the parent (issue or Online First) only; the article type already labels the title. */
@media (max-width: 575.98px) { .article-page .jms-breadcrumb li:not(:first-child):not(:nth-last-child(2)) { display: none; } .article-page .jms-breadcrumb li:not(:first-child):nth-last-child(2) { flex: 1 1 auto; max-width: none; } }
.article-authors sup, .article-affiliations sup { font-size: 0.6875em; line-height: 0; }
.article-affiliations { list-style: none; margin: 0.5rem 0 0; padding: 0; font-size: 0.875rem; color: var(--jms-muted-fg); }
.article-affiliations li { padding-left: 1.25rem; text-indent: -1.25rem; }
.article-affiliations li sup { display: inline-block; width: 1.25rem; text-indent: 0; }
.article-corresponding { font-size: 0.875rem; margin: 0.5rem 0 0; }
.article-corresponding .article-email { overflow-wrap: anywhere; }
.article-corresponding .btn { margin-left: 0.375rem; }
.article-meta-row { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; margin: 0.75rem 0 0; }
.article-fulltext { margin-top: 2rem; }
.article-fulltext__body > h2:first-child { margin-top: 0; }
/* Highlights: lifted from the head of the full text into a tinted box before the abstract */
.article-highlights { margin: 0 0 2rem; padding: 1.25rem 1.5rem 1.25rem 1.375rem; border: 1px solid var(--jms-info-border); border-left: 4px solid var(--jms-brand); border-radius: var(--jms-radius-lg); background: var(--jms-info-bg); }
.article-highlights__title { margin: 0 0 0.625rem; font-family: var(--jms-font-serif); font-size: 1.375rem; font-weight: 600; line-height: 1.3; color: var(--jms-heading); scroll-margin-top: 4.5rem; }
.article-highlights__body { font-family: var(--jms-font-serif); font-size: 1rem; line-height: 1.65; color: var(--jms-text); }
.article-highlights__body ul, .article-highlights__body ol { margin: 0; padding-left: 1.25rem; }
.article-highlights__body li + li { margin-top: 0.5rem; }
.article-highlights__body li::marker { color: var(--jms-brand); }
.article-highlights__body p { margin: 0 0 0.5rem; }
.article-highlights__body > :last-child { margin-bottom: 0; }
.article-fulltext__body { max-width: 76ch; overflow-wrap: anywhere; }
.article-fulltext__body > :first-child { margin-top: 0; }
.article-fulltext__body h2, .article-fulltext__body h3, .article-fulltext__body h4 { font-family: var(--jms-font-serif); color: var(--jms-heading); font-weight: 600; line-height: 1.3; margin: 1.75em 0 0.6em; }
.article-fulltext__body h2 { font-size: 1.375rem; }
.article-fulltext__body h3 { font-size: 1.125rem; }
.article-fulltext__body h4 { font-size: 1.0625rem; }
.article-fulltext__body p { margin: 0 0 1.1em; }
.article-fulltext__body img { display: block; max-width: 100%; height: auto; margin: 1rem auto; border-radius: var(--jms-radius-md); }
.article-fulltext__body figure { margin: 1.5rem 0; }
.article-fulltext__body figcaption, .article-fulltext__body caption { font-family: var(--bs-body-font-family); font-size: 0.8125rem; color: var(--jms-muted-fg); caption-side: bottom; text-align: left; padding: 0.5rem 0 0; }
:is(.article-fulltext__table, .prose-table) { position: relative; overflow-x: auto; max-width: 100%; margin: 0 0 1.5rem; border-top: 2px solid var(--jms-heading); border-bottom: 2px solid var(--jms-heading); }
:is(.article-fulltext__table, .prose-table) table { width: 100%; min-width: max-content; border-collapse: collapse; margin: 0; font-family: var(--bs-body-font-family); font-size: 0.875rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
:is(.article-fulltext__table, .prose-table) th, :is(.article-fulltext__table, .prose-table) td { border: 0; border-bottom: 1px solid var(--jms-divider); padding: 0.4375rem 0.75rem; vertical-align: top; min-width: 0; }
:is(.article-fulltext__table, .prose-table) tr:last-child > :where(th, td) { border-bottom: 0; }
:is(.article-fulltext__table, .prose-table) th, :is(.article-fulltext__table, .prose-table) table:not(:has(th, thead)) tr:first-child > td { color: var(--jms-heading); font-weight: 600; border-bottom: 1px solid var(--jms-heading); vertical-align: bottom; }
:is(.article-fulltext__table, .prose-table):focus-visible { outline-offset: 0.25rem; }
.article-fulltext__table-hint { display: flex; align-items: center; gap: 0.25rem; margin: -1rem 0 1.5rem; font-family: var(--bs-body-font-family); font-size: 0.75rem; color: var(--jms-muted-fg); }
:is(.article-fulltext__table, .prose-table) p { margin: 0; }
:is(.article-fulltext__table, .prose-table) a { display: inline-block; padding-block: 0.1875rem; }
.article-fulltext__body ul, .article-fulltext__body ol { padding-left: 1.5rem; margin: 0 0 1.1em; }
.article-fulltext__body blockquote { border-left: 2px solid var(--jms-border); padding-left: 1rem; color: var(--jms-muted-fg); }
.article-fulltext__body a { overflow-wrap: anywhere; }
.article-fulltext__body sup, .article-fulltext__body sub { line-height: 0; }
.article-rail .dropdown-menu { min-width: 100%; }
.article-rail .dropdown-header { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---- Profile (/Profile) ---- */
/* Section cards are jump targets from the completeness checklist: keep them clear of the sticky top bar. */
.profile-section { scroll-margin-top: calc(var(--jms-header-height) + 1rem); }
.profile-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.profile-checklist li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; }
.profile-checklist li[data-met="true"] { color: var(--jms-muted-fg); }
.profile-checklist li[data-met="true"] .jms-icon { color: var(--jms-success); }
.profile-checklist li[data-met="false"] .jms-icon { color: var(--jms-warning); }
.profile-checklist .jms-icon { flex: 0 0 auto; margin-top: 0.125rem; }
/* The unmet items are links to the section that fixes them; a bare line of 0.875rem text is well under the
   WCAG 2.2 24px target minimum, so the anchor carries its own height. */
.profile-checklist a { display: inline-block; min-height: 1.5rem; padding-block: 0.125rem; }

/* Dismissible nudge shown above the dashboard until the profile is complete. */
.notice-banner { display: flex; align-items: flex-start; gap: 0.75rem; }
.notice-banner__body { flex: 1 1 auto; min-width: 0; }

/* ---- Roles on /Admin/Users/Details ---- */
/* One row per role: held state on the left, the single grant/remove action (or the refusal) on the right. */
.role-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.role-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0.5rem 0.75rem; border: 1px solid var(--jms-border); border-radius: var(--jms-radius-md); background: var(--jms-surface); }
.role-list li[data-held="true"] { background: var(--jms-selected); border-color: var(--jms-input); }
.role-list__name { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; min-width: 0; }
.role-list li[data-held="true"] .role-list__name .jms-icon { color: var(--jms-success); }
.role-list li[data-held="false"] .role-list__name { color: var(--jms-muted-fg); font-weight: 400; }
.role-list li[data-held="false"] .role-list__name .jms-icon { color: var(--jms-disabled-fg); }
.role-list__action { display: inline-flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.role-list__action .text-meta { max-width: 26rem; text-align: right; }

/* ---- Notification bell (dashboard header) ---- */
.notif-bell-button { position: relative; }
/* The count sits on the bell rather than beside it, so the header height never changes when it appears. */
.notif-badge { position: absolute; top: 0.125rem; right: 0.125rem; min-width: 1.05rem; height: 1.05rem; padding: 0 0.25rem; border-radius: 999px; background: var(--jms-danger); color: var(--jms-on-danger); font-size: 0.6875rem; font-weight: 600; line-height: 1.05rem; text-align: center; font-variant-numeric: tabular-nums; }
.notif-menu { width: min(22rem, calc(100vw - 2rem)); padding: 0; overflow: hidden; }
.notif-menu-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; padding: 0.625rem 0.875rem; border-bottom: 1px solid var(--jms-divider); }
.notif-menu-empty { margin: 0; padding: 1rem 0.875rem; }
.notif-menu-list { list-style: none; margin: 0; padding: 0; max-height: 22rem; overflow-y: auto; }
.notif-menu-item + .notif-menu-item { border-top: 1px solid var(--jms-divider); }
.notif-menu-item[data-unread="true"] { background: var(--jms-selected); }
.notif-menu-link { display: block; padding: 0.625rem 0.875rem; color: var(--jms-text); text-decoration: none; }
a.notif-menu-link:hover, a.notif-menu-link:focus-visible { background: var(--jms-hover); }
.notif-menu-title { display: block; font-size: 0.875rem; font-weight: 500; color: var(--jms-heading); }
.notif-menu-preview { display: block; font-size: 0.8125rem; color: var(--jms-muted-fg); margin: 0.125rem 0; }
.notif-menu-all { display: flex; align-items: center; justify-content: center; gap: 0.25rem; padding: 0.625rem 0.875rem; border-top: 1px solid var(--jms-divider); font-size: 0.875rem; font-weight: 500; text-decoration: none; }

/* ---- Notification centre (/Notifications) ---- */
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif-row { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; padding: 0.875rem 1rem; }
.notif-row + .notif-row { border-top: 1px solid var(--jms-divider); }
/* Unread is a tint plus a dot plus a heavier title — never colour alone. */
.notif-row[data-unread="true"] { background: var(--jms-selected); }
.notif-row-main { flex: 1 1 20rem; min-width: 0; }
.notif-row-head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.notif-row-title { font-weight: 500; color: var(--jms-heading); }
.notif-row[data-unread="true"] .notif-row-title { font-weight: 600; }
.notif-dot { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--jms-brand); flex: 0 0 auto; }
.notif-message { white-space: pre-line; margin: 0.25rem 0 0.375rem; font-size: 0.875rem; }
.notif-row-meta { margin: 0; display: flex; gap: 0.375rem; flex-wrap: wrap; }
.notif-row-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; flex: 0 0 auto; }
@media (max-width: 575.98px) { .notif-row-actions { margin-left: 0; width: 100%; } }

/* ---- Editorial decisions (Submissions/Details: what the editor decided, and what they said about it) ---- */
.decision-list { list-style: none; margin: 0; padding: 0; }
.decision-list > li + li { border-top: 1px solid var(--jms-divider); margin-top: 0.875rem; padding-top: 0.875rem; }
.decision-head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
/* The feedback is typed prose: its own line breaks are the editor's paragraphs. */
.decision-comment { white-space: pre-line; margin: 0.375rem 0 0; }

/* ---- File list (_FileList: the one list of downloadable manuscript files) ---- */
.file-list { list-style: none; margin: 0; padding: 0; }
.file-list__item { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.625rem 0; }
.file-list__item + .file-list__item { border-top: 1px solid var(--jms-divider); }
.file-list__item > .jms-icon { color: var(--jms-muted-fg); margin-top: 0.125rem; flex: none; }
.file-list__body { flex: 1 1 auto; min-width: 0; }
.file-list__name { display: block; font-weight: 500; color: var(--jms-heading); text-decoration: none; }
.file-list__name:hover { color: var(--jms-brand); }
.file-list__meta { display: flex; flex-wrap: wrap; gap: 0.125rem 0.75rem; font-size: 0.8125rem; color: var(--jms-muted-fg); }

/* ---- Printable finance documents (Views/Shared/Documents) ---- */
.doc-toolbar { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.doc-sheet { background: var(--jms-surface); border: 1px solid var(--jms-border); border-radius: var(--jms-radius-lg); padding: 2rem; max-width: 56rem; margin: 0 auto 1.5rem; color: var(--jms-text); }
.doc-head { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; padding-bottom: 1.25rem; border-bottom: 1px solid var(--jms-divider); margin-bottom: 1.25rem; }
.doc-letterhead { flex: 1 1 20rem; min-width: 0; }
.doc-logo { display: block; height: 4rem; width: auto; max-width: 100%; object-fit: contain; object-position: left; margin-bottom: 0.75rem; }
.doc-journal-name { font-family: var(--jms-font-serif); font-size: 1.125rem; font-weight: 600; color: var(--jms-heading); margin: 0 0 0.25rem; }
.doc-journal-issn { font-family: var(--jms-font-sans); font-size: 0.8125rem; font-weight: 400; color: var(--jms-muted-fg); }
.doc-address { display: flex; flex-direction: column; font-style: normal; font-size: 0.875rem; color: var(--jms-muted-fg); margin: 0; }
.doc-head__meta { flex: 0 1 18rem; min-width: 0; }
.doc-title { font-family: var(--jms-font-serif); font-size: 1.5rem; font-weight: 600; color: var(--jms-heading); margin: 0 0 0.5rem; }
.doc-meta { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 0.75rem; margin: 0; font-size: 0.875rem; }
.doc-meta dt { color: var(--jms-muted-fg); font-weight: 500; }
.doc-meta dd { margin: 0; min-width: 0; color: var(--jms-heading); overflow-wrap: anywhere; }
.doc-section-title { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--jms-muted-fg); margin: 1.5rem 0 0.5rem; }
.doc-section-title--centred { text-align: center; letter-spacing: 0.08em; font-size: 0.8125rem; color: var(--jms-heading); margin-top: 2rem; }
.doc-manuscript-title { font-family: var(--jms-font-serif); font-size: 1.0625rem; line-height: 1.45; color: var(--jms-heading); margin: 0 0 0.5rem; }
.doc-table th, .doc-table td { font-size: 0.875rem; }
.doc-table__num { width: 2.5rem; }
.doc-bank { font-size: 0.875rem; }
.doc-paragraph { font-size: 0.9375rem; line-height: 1.65; margin: 0 0 0.75rem; max-width: 70ch; white-space: pre-line; }
.doc-footnote { font-size: 0.8125rem; color: var(--jms-muted-fg); margin: 1rem 0 0; }
.doc-signature { margin-top: 2.5rem; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.doc-signature__image { max-height: 3.5rem; max-width: 100%; margin-bottom: 0.25rem; }
.doc-signature__name { font-weight: 600; color: var(--jms-heading); }
.doc-signature__title { font-size: 0.875rem; color: var(--jms-muted-fg); }

@media print {
    .app-sidebar, .app-topbar, .app-footer, .site-footer, .doc-toolbar, .skip-link { display: none !important; }
    .app-main { padding: 0; }
    .doc-sheet { border: 0; border-radius: 0; padding: 0; max-width: none; }
    .table-scroll { overflow-x: visible; }
}

/* ---- Numbered and bulleted lists (.list-numbered / .list-bulleted) ----
   The rule for every list whose items may wrap: the number or bullet sits in its own column and is top-aligned with
   the item's first line. A native marker sits on the baseline of the item's last line when the item holds a block or
   inline-block element, so a wrapped entry would drag its number down; these classes never do. Items marked
   data-level="3" (a sub-entry) take a hollow bullet and no number. */
.list-numbered, .list-bulleted { margin: 0; padding: 0; list-style: none; counter-reset: list-item-number; }
.list-numbered > li, .list-bulleted > li { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); align-items: start; margin: 0.125rem 0; }
.list-numbered > li { counter-increment: list-item-number; }
.list-numbered > li::before { content: counter(list-item-number) "."; padding: 0.25rem 0.5rem 0 0; text-align: right; color: var(--jms-muted-fg); font-variant-numeric: tabular-nums; }
.list-bulleted > li::before, .list-numbered > li[data-level="3"]::before { content: "\2022"; padding: 0.25rem 0.5rem 0 0; text-align: right; color: var(--jms-muted-fg); }
.list-numbered > li[data-level="3"] { counter-increment: none; }
.list-numbered > li[data-level="3"]::before { content: "\25E6"; }
.list-numbered > li > :where(a, span, div, p), .list-bulleted > li > :where(a, span, div, p) { display: block; padding-block: 0.25rem; margin: 0; }
.list-numbered > li { break-inside: avoid; }

/* ---- Design system gallery (/DesignSystem) ---- */
.ds-layout { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1200px) { .ds-layout { grid-template-columns: 12rem minmax(0, 1fr); } }
.ds-toc { display: none; }
@media (min-width: 1200px) { .ds-toc { display: block; position: sticky; top: calc(var(--jms-header-height) + 1.5rem); align-self: start; font-size: 0.875rem; } .ds-toc li { margin-bottom: 0.375rem; } }
.ds-section { padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--jms-divider); scroll-margin-top: calc(var(--jms-header-height) + 1rem); }
.ds-lede { color: var(--jms-muted-fg); max-width: 70ch; }
.ds-subtitle { font-family: var(--bs-font-sans-serif); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--jms-muted-fg); margin: 1.75rem 0 0.75rem; }
.ds-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.ds-swatches { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); list-style: none; padding: 0; margin: 0; }
.ds-swatch { display: grid; gap: 0.25rem; padding: 0.625rem; border: 1px solid var(--jms-border); border-radius: var(--jms-radius-md); background: var(--jms-surface); }
.ds-swatch__chip { display: block; height: 2.75rem; border-radius: var(--jms-radius-sm); border: 1px solid var(--jms-divider); }
.ds-swatch__name { font-size: 0.75rem; overflow-wrap: anywhere; }
.ds-radius { display: grid; place-items: center; width: 5rem; height: 3.5rem; border: 1px solid var(--jms-border); background: var(--jms-muted); font-size: 0.8125rem; color: var(--jms-muted-fg); }
.ds-radius[data-radius="sm"] { border-radius: var(--jms-radius-sm); }
.ds-radius[data-radius="md"] { border-radius: var(--jms-radius-md); }
.ds-radius[data-radius="lg"] { border-radius: var(--jms-radius-lg); }
.ds-radius[data-radius="xl"] { border-radius: var(--jms-radius-xl); }
.ds-type > * { display: block; }
.ds-icons { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); list-style: none; padding: 0; margin: 0; }
.ds-icons li { display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0.625rem; border: 1px solid var(--jms-divider); border-radius: var(--jms-radius-md); color: var(--jms-heading); }
.ds-icons .text-code { font-size: 0.75rem; color: var(--jms-muted-fg); }

/* ---- Public home: hero with the journal's description, key figures and the current issue ---- */
.home-hero { display: grid; gap: 1.5rem; padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--jms-divider); }
@media (min-width: 992px) { .home-hero { grid-template-columns: minmax(0, 1fr) 20rem; gap: 3rem; align-items: center; } } /* the intro centres against the taller issue panel, so no gap piles up under it */
.home-hero__lede { font-family: var(--jms-font-serif); font-size: clamp(1.125rem, 1rem + 0.6vw, 1.4375rem); line-height: 1.45; color: var(--jms-heading); max-width: 64ch; margin-bottom: 1.75rem; text-wrap: pretty; }
.home-hero__facts { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 0 0 1.75rem; }
.home-hero__facts dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--jms-muted-fg); }
.home-hero__facts dd { margin: 0.125rem 0 0; font-family: var(--jms-font-serif); font-size: 1.75rem; font-weight: 600; line-height: 1.2; color: var(--jms-heading); }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.home-hero__search { margin: 0; }

.home-issue { display: flex; flex-direction: column; gap: 0.375rem; padding: 1.5rem; border: 1px solid var(--jms-border); border-top: 4px solid var(--jms-brand); border-radius: var(--jms-radius-md); background: var(--jms-muted); color: var(--jms-heading); text-decoration: none; transition: border-color var(--jms-motion-fast); }
.home-issue:hover { border-color: var(--jms-brand); color: var(--jms-heading); }
/* Covers are A4 (1 : 1.414), the printed journal's shape. */
.home-issue__cover { width: 8.5rem; height: auto; aspect-ratio: 595 / 842; object-fit: cover; border: 1px solid var(--jms-border); margin-bottom: 0.5rem; }
.home-issue__eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--jms-brand); }
.home-issue__name { font-family: var(--jms-font-serif); font-size: 1.3125rem; font-weight: 600; line-height: 1.25; }
.home-issue__date { font-size: 0.875rem; color: var(--jms-muted-fg); }
.home-issue__cta { display: inline-flex; align-items: center; gap: 0.25rem; margin-top: 0.75rem; font-weight: 600; font-size: 0.9375rem; color: var(--jms-brand); }
.home-issue:hover .home-issue__cta { color: var(--jms-brand-hover); }

.home-more { display: inline-flex; align-items: center; gap: 0.125rem; padding-block: 0.375rem; min-height: 1.5rem; font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.home-more:hover { color: var(--jms-link-hover); }

/* Side-rail cards on public pages: an accent rule for the call to action, a plain link list. */
.rail-card--accent { border-top: 3px solid var(--jms-brand); }
.rail-links { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.125rem; }
.rail-links a { display: block; padding: 0.375rem 0; border-bottom: 1px solid var(--jms-divider); text-decoration: none; color: var(--jms-text); }
.rail-links a:hover { color: var(--jms-brand); }

/* ---- Links in running text: a faint underline at rest so a link never relies on colour alone (WCAG 1.4.1); hover
   changes the colour only. ---- */
.prose-article a, .prose-article a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }

/* ---- Issue page header: cover, name and citation facts on the navy band ---- */
.issue-hero { display: grid; gap: 1.25rem; padding: 1.5rem; margin: 0.5rem 0 2rem; border-top: 3px solid var(--jms-brand); border-radius: var(--jms-radius-lg); }
@media (min-width: 576px) { .issue-hero { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2rem; padding: 2rem 2.25rem; } }
.issue-hero__cover { display: block; width: 6rem; height: auto; aspect-ratio: 595 / 842; object-fit: cover; border-radius: var(--jms-radius-sm); box-shadow: 0 0 0 3px color-mix(in srgb, var(--jms-strip-fg) 16%, transparent); }
@media (min-width: 576px) { .issue-hero__cover { width: 8rem; } }
.issue-hero__body { min-width: 0; }
.issue-hero__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 0.375rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in srgb, var(--jms-strip-fg) 70%, var(--jms-strip)); }
.issue-hero__badge { padding: 0.125rem 0.5rem; border-radius: 999px; background: var(--jms-brand); color: var(--jms-brand-fg); font-size: 0.6875rem; letter-spacing: 0.04em; }
.issue-hero__title { margin: 0 0 1.25rem; font-family: var(--jms-font-serif); font-size: clamp(1.375rem, 1.15rem + 1vw, 1.875rem); color: var(--jms-strip-fg); }
.issue-hero__facts { display: flex; flex-wrap: wrap; gap: 0.75rem 2.25rem; margin: 0 0 1rem; }
.issue-hero__facts dt { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: color-mix(in srgb, var(--jms-strip-fg) 64%, var(--jms-strip)); }
.issue-hero__facts dd { margin: 0.125rem 0 0; font-family: var(--jms-font-serif); font-size: 1.25rem; font-weight: 600; line-height: 1.2; color: var(--jms-strip-fg); font-variant-numeric: tabular-nums; }
.issue-hero__meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; font-size: 0.8125rem; }

/* ---- Reading-page headings: one scale — title > section (Abstract, Full text, Introduction…) > subsection ---- */
.article-page .text-section-title, .article-fulltext__body h2 { font-size: 1.375rem; line-height: 1.3; }
.article-fulltext__body h3 { font-size: 1.125rem; }
.article-page :is(h2, h3)[id] { scroll-margin-top: 4.5rem; } /* clear of the sticky site menu */

/* ---- Article contents: a bookmark on the left edge (a pill at the bottom left below lg) opening the section list
   in an offcanvas panel; the article keeps its two-column layout ---- */
.contents-tab { position: fixed; z-index: 1030; left: 1.25rem; bottom: 1.25rem; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1rem; border: 1px solid var(--jms-border); border-radius: 999px; background: var(--jms-surface); color: var(--jms-heading); font-size: 0.875rem; font-weight: 600; box-shadow: var(--jms-shadow-md); transition: background-color var(--jms-motion-fast), color var(--jms-motion-fast); }
.contents-tab:hover { background: var(--jms-hover); }
.contents-tab__count { font-size: 0.75rem; font-weight: 400; color: var(--jms-muted-fg); }
.contents-tab svg { flex: none; }
.contents-tab svg:last-child { color: var(--jms-muted-fg); }
@media (max-width: 575.98px) { .contents-tab__count { display: none; } }
@media (min-width: 992px) {
  .contents-tab { top: 30vh; bottom: auto; left: 0; min-height: 0; padding: 1rem 0.5rem; writing-mode: vertical-rl; border-left: 0; border-right: 3px solid var(--jms-brand); border-radius: 0 var(--jms-radius-lg) var(--jms-radius-lg) 0; gap: 0.625rem; }
  .contents-tab__label { letter-spacing: 0.02em; }
}
/* The outline panel: article title and reading progress, the sections then the back matter, PDF and top actions */
.contents-panel { --bs-offcanvas-width: min(24rem, 90vw); --bs-offcanvas-bg: var(--jms-surface); }
.contents-panel__header { display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem 1.25rem 1rem 1.5rem; }
.contents-panel__eyebrow { margin: 0 0 0.375rem; font-family: var(--bs-font-sans-serif); font-size: 0.6875rem; font-weight: 600; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; color: var(--jms-muted-fg); }
.contents-panel__count { font-weight: 400; }
.contents-panel__title { display: -webkit-box; margin: 0; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; font-family: var(--jms-font-serif); font-size: 1rem; font-weight: 600; line-height: 1.35; color: var(--jms-heading); }
.contents-panel__header .btn-close { flex: none; margin: -0.25rem -0.25rem 0 auto; }
.contents-panel__progress { flex: none; height: 2px; background: var(--jms-divider); }
.contents-panel__progress span { display: block; height: 100%; background: var(--jms-brand); transform-origin: left center; transform: scaleX(0); transition: transform var(--jms-motion-fast); }
.contents-panel__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 0.25rem 0.75rem 1rem; }
.contents-outline__group { margin: 1rem 0.75rem 0.375rem; font-family: var(--bs-font-sans-serif); font-size: 0.6875rem; font-weight: 600; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; color: var(--jms-muted-fg); }
.contents-outline, .contents-outline__sub { list-style: none; margin: 0; padding: 0; }
.contents-outline > li + li { margin-top: 0.125rem; }
.contents-outline__link { display: block; padding: 0.4375rem 0.75rem; border-radius: var(--jms-radius-md); font-size: 0.9375rem; font-weight: 500; line-height: 1.35; color: var(--jms-text); transition: background-color var(--jms-motion-fast), color var(--jms-motion-fast); }
.contents-outline__link:hover { background: var(--jms-hover); color: var(--jms-heading); }
.contents-outline__link[aria-current] { background: var(--jms-selected); color: var(--jms-heading); font-weight: 600; box-shadow: inset 3px 0 0 var(--jms-brand); }
.contents-outline__sub { margin: 0.125rem 0 0.375rem 1.25rem; padding-left: 0.5rem; border-left: 1px solid var(--jms-divider); }
.contents-outline__link--sub { padding-block: 0.3125rem; font-size: 0.875rem; font-weight: 400; color: var(--jms-muted-fg); }
.contents-panel__footer { display: flex; gap: 0.5rem; padding: 0.875rem 1.5rem; border-top: 1px solid var(--jms-divider); }
.contents-panel__footer .btn { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; }
.contents-panel__up { transform: rotate(180deg); }

/* ---- Back to top: appears after the first screen and a half, returns focus to the page start ---- */
.back-to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1030; display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--jms-border); border-radius: 50%; background: var(--jms-surface); color: var(--jms-heading); box-shadow: var(--jms-shadow-md); transition: background-color var(--jms-motion-fast), color var(--jms-motion-fast); }
.back-to-top[hidden] { display: none; }
.back-to-top svg { transform: rotate(180deg); }
.back-to-top:hover { background: var(--jms-brand); border-color: var(--jms-brand); color: var(--jms-brand-fg); } /* the brand red stays visible over the navy footer */
@media print { .back-to-top, .contents-tab, .contents-panel, .article-actions, .article-pager { display: none; } }
@media (max-width: 575.98px) { .site-footer__bottom { padding-bottom: 3.5rem; } } /* room for the back-to-top button, so it never covers a footer link */

/* ---- Article toolbar: PDF, Cite, Share, Email, Set alert, Get rights; Previous / Next in the issue at the end ---- */
.article-header:has(+ .article-actions) { margin-bottom: 0; }
.article-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; margin: 0 0 2rem; padding: 0.875rem 0; border-bottom: 1px solid var(--jms-border); }
.article-actions__tools { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.article-actions__tools .btn { display: inline-flex; align-items: center; gap: 0.375rem; }
.article-actions__menu .dropdown-item { display: flex; align-items: center; gap: 0.5rem; }

/* ---- Previous / Next article cards at the end of the article ---- */
.article-pager { display: grid; gap: 1rem; margin: 3rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--jms-divider); }
@media (min-width: 768px) { .article-pager { grid-template-columns: 1fr 1fr; } .article-pager__link--next { grid-column: 2; } }
.article-pager__link { display: flex; flex-direction: column; gap: 0.375rem; padding: 1rem 1.25rem; border: 1px solid var(--jms-border); border-radius: var(--jms-radius-lg); background: var(--jms-surface); color: var(--jms-text); transition: border-color var(--jms-motion-fast); }
.article-pager__link:hover { border-color: var(--jms-heading); }
.article-pager__link--next { align-items: flex-end; text-align: right; }
.article-pager__label { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--jms-muted-fg); }
.article-pager__title { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; font-family: var(--jms-font-serif); font-weight: 600; line-height: 1.35; color: var(--jms-heading); }
.article-pager__link:hover .article-pager__title { color: var(--jms-brand); }

/* ---- Cite dialog: style tabs, the citation to copy, reference-manager downloads ---- */
.cite-dialog__styles { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-bottom: 1rem; border-bottom: 1px solid var(--jms-divider); }
.cite-dialog__style { min-height: 2.25rem; margin-bottom: -1px; padding: 0.375rem 0.75rem; border: 0; border-bottom: 2px solid transparent; background: none; font-size: 0.875rem; font-weight: 600; color: var(--jms-muted-fg); transition: color var(--jms-motion-fast); }
.cite-dialog__style:hover { color: var(--jms-heading); }
.cite-dialog__style[aria-selected="true"] { border-bottom-color: var(--jms-brand); color: var(--jms-heading); }
.cite-dialog__text { margin: 0 0 0.75rem; padding: 1rem 1.25rem; border: 1px solid var(--jms-border); border-radius: var(--jms-radius-md); background: var(--jms-muted); font-family: var(--jms-font-serif); font-size: 1rem; line-height: 1.6; color: var(--jms-text); overflow-wrap: anywhere; }
.cite-dialog__panel .btn, .cite-dialog__downloads .btn { display: inline-flex; align-items: center; gap: 0.375rem; }
.cite-dialog__subhead { margin: 1.5rem 0 0.5rem; font-family: var(--bs-font-sans-serif); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--jms-muted-fg); }
.cite-dialog__downloads { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }

/* ---- Article top line: breadcrumb at the left, Previous / Next in the issue at the right ---- */
.article-topline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1.5rem; margin-bottom: 1rem; }
.article-topline > nav:first-child { flex: 1 1 18rem; min-width: 0; }
.article-page .article-topline .jms-breadcrumb { margin-bottom: 0; }
.article-topline__pager { display: flex; flex: none; align-items: center; gap: 0.75rem; font-size: 0.8125rem; }
.article-topline__pager a { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.375rem 0; font-weight: 500; color: var(--jms-muted-fg); }
.article-topline__pager a:hover { color: var(--jms-brand); }
.article-topline__sep { width: 1px; height: 1rem; background: var(--jms-border); }

/* ---- Article rail: metrics grid and related articles ---- */
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin: 0; }
.metric-grid > div { padding: 0.625rem 0.75rem; border-radius: var(--jms-radius-md); background: var(--jms-muted); }
.metric-grid dt { font-size: 0.6875rem; font-weight: 600; line-height: 1.3; letter-spacing: 0.04em; text-transform: uppercase; color: var(--jms-muted-fg); }
.metric-grid dd { margin: 0.25rem 0 0; font-family: var(--jms-font-serif); font-size: 1.375rem; font-weight: 600; line-height: 1.1; color: var(--jms-heading); font-variant-numeric: tabular-nums; }
.metric-sources { margin: 0.75rem 0 0; padding: 0.5rem 0 0; list-style: none; border-top: 1px solid var(--jms-divider); font-size: 0.8125rem; color: var(--jms-muted-fg); }
.metric-sources li { display: flex; justify-content: space-between; padding: 0.125rem 0; }
.related-list { margin: 0; padding: 0; list-style: none; }
.related-list li { display: flex; flex-direction: column; gap: 0.125rem; padding: 0.625rem 0; border-top: 1px solid var(--jms-divider); }
.related-list li:first-child { padding-top: 0; border-top: 0; }
.related-list a { font-size: 0.9375rem; font-weight: 500; line-height: 1.35; color: var(--jms-heading); }
.related-list a:hover { color: var(--jms-brand); }

/* ---- SJA decision chain: the handling editor's recommendation, beside each reviewer's, for the Chief Editor ---- */
.recommendation-card { border-left: 3px solid var(--jms-brand); }
.recommendation-card__verdict { margin: 0 0 0.75rem; font-size: 1rem; color: var(--jms-heading); }
.recommendation-card__reviews { margin: 0; padding: 0; list-style: none; font-size: 0.875rem; }
.recommendation-card__reviews li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; padding: 0.5rem 0; border-top: 1px solid var(--jms-divider); }
.recommendation-card__reviews li:first-child { border-top: 0; padding-top: 0; }
