/* =============================================================
   Olivora site CSS
   Base element rules + shared primitives, lifted from the design
   system. Gateway-specific layout lives in gateway.css.
   ============================================================= */

* { box-sizing: border-box; }

/* THE hidden ATTRIBUTE HAS TO WIN.

   The browser hides [hidden] with a user-agent rule of the lowest possible
   weight, so ANY display declaration in our own CSS beats it. The effect is
   that element.hidden = true does nothing visible, which is the worst kind of
   bug: the markup, the script and the accessibility tree all agree the thing
   is hidden, and the reader can see it.

   It has bitten three times. The search suggester and the chart tooltip each
   grew their own .thing[hidden] patch; the third was the contact page, where
   .e-field { display: grid } kept the journal and manuscript boxes on screen
   for every topic — so a reader asking a general question was shown two
   fields about a manuscript they had not submitted, under a hint telling them
   to go and find a journal code.

   Fixed once, here, for every future case. !important because the whole point
   is to outrank a display set anywhere else. */
*[hidden] { display: none !important; }
/* scroll-padding-top keeps the pinned nav off whatever an anchor jumps to,
   the skip link's target included. */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ol-header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--ol-font-body);
  color: var(--ol-ink);
  background: var(--ol-ivory);
  line-height: var(--ol-leading-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }


.wrap { width: 100%; max-width: var(--ol-container); margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { width: 100%; max-width: var(--ol-container-narrow); margin-inline: auto; padding-inline: 24px; }

.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: var(--ol-tracking-caps);
  text-transform: uppercase; color: var(--j-accent-text);
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--ol-radius);
  font-size: 15px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: var(--ol-transition);
}
.btn-gold { background: var(--j-accent); color: #14233A; border-color: var(--j-accent); }
.btn-gold:hover { background: var(--ol-gold-600); border-color: var(--ol-gold-600); }
/* GHOST BUTTONS ARE FOR LIGHT SURFACES, which is where all but one of them
   are.

   This read `color:#fff` with a near-white border, written for the navy
   navigation bar it first appeared in. Every other use — 68 of 69, across the
   administration, account, author and editorial screens — sits on the ivory
   page background, where white text on a near-white border is an invisible
   button. On the jobs screen that meant the control for switching a setting
   on could not be seen at all.

   The default is now the light-surface version and the white one is scoped to
   the dark bar, rather than the other way round: the common case should not
   be the exception.

   The first correction overshot: it left the light version with a transparent
   border, so the button stopped looking like a button. A control with neither
   edge nor ground is a line of text that happens to be clickable, and standing
   beside a filled button in the same row it reads as misaligned even when it
   is not. It carries its edge at rest now and hover darkens it. */
.btn-ghost {
  background: transparent;
  color: var(--j-primary-ink);
  border-color: var(--ol-btn-edge);
}
.btn-ghost:hover {
  background: var(--ol-gold-100, rgba(212,176,106,.14));
  border-color: var(--j-primary-ink);
}

/* The one dark surface: the navigation bar, where white was always right. */
.c-nav .btn-ghost,
.c-hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
}
.c-nav .btn-ghost:hover,
.c-hero .btn-ghost:hover {
  background: rgba(255, 255, 255, .1);
  border-color: #fff;
}
.btn-outline { background: transparent; color: var(--j-primary-ink); border-color: var(--ol-btn-edge); }
.btn-outline:hover { border-color: var(--j-primary-ink); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  padding: 5px 11px; border-radius: 999px;
}
.badge-oa    { background: var(--ol-gold-100); color: #866528; }
.badge-peer  { background: var(--ol-navy-100);  color: var(--ol-navy-800); }
.badge-index { background: var(--ol-gold-100);  color: var(--ol-gold-700); }

.logo-lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-lockup svg, .logo-lockup img.logo { width: auto; height: 42px; flex: none; }
.logo-lockup .lw { font-family: var(--ol-font-display); line-height: 1.05; }
.logo-lockup .lw b { display: block; font-size: 19px; font-weight: 600; letter-spacing: .01em; }
.logo-lockup .lw span { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .72; font-family: var(--ol-font-body); }

footer.ol-foot { background: var(--ol-surface-navy-deep); color: #C3CBD6; padding: var(--ol-xl) 0 var(--ol-m); }
footer.ol-foot h2 { font-size: 11px; letter-spacing: var(--ol-tracking-caps); text-transform: uppercase; color: var(--ol-gold-500); margin: 0 0 14px; }
footer.ol-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
footer.ol-foot a { color: #C3CBD6; text-decoration: none; }
footer.ol-foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: var(--ol-l); }
.foot-base { margin-top: var(--ol-l); padding-top: var(--ol-m); border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 13px; color: #8A94A3; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* Blazor's <FocusOnNavigate Selector="h1"> moves focus to the heading after
   navigation so screen readers announce the new page. Chromium then matches
   :focus-visible on it and paints the gold focus ring around the title on
   every page load. Suppress it for programmatically-focused elements only —
   real keyboard focus on controls keeps its ring. */
[tabindex="-1"]:focus,
[tabindex="-1"]:focus-visible {
    outline: none;
}

/* ===========================================================================
   Prose pages — about, guidance and policies.
   Public and static-SSR, so they are indexable; a publisher that cannot show
   its peer-review and ethics policies is not accepted by DOAJ or Scopus, which
   makes these pages part of the product rather than decoration.
   =========================================================================== */
.p-page { padding-block: var(--ol-xl); }

/* ONE READING MEASURE, IN rem, AND THE REASON IT IS NOT ch.

   The lead, the prose and the draft banner each carried their own measure
   and all three were written in ch: 68ch, 72ch and 72ch. ch is the width of
   a "0" IN THAT ELEMENT'S OWN FONT SIZE, so three rules that look like two
   values resolved to three different widths — the lead at 18px gave 772px,
   the prose at 16px gave 727px, and the banner at 14px gave 636px. On the
   About page that is three right-hand edges within 140px of each other,
   stacked vertically, which the eye reads as text that will not line up and
   cannot see why.

   rem is relative to the root, so one number means one width wherever it is
   used. 46rem is 736px, within nine pixels of the prose measure these pages
   have always had, so the text that was right stays where it was and the two
   that disagreed come to meet it. Inside a page whose wrap is narrower than
   this the wrap wins, and all three fill it exactly. */
:root { --ol-measure: 46rem; }

.p-page .lead {
  font-size: 1.125rem; line-height: 1.65; color: var(--ol-ink-muted);
  max-width: var(--ol-measure); margin: 0 0 var(--ol-l);
}
.p-prose { max-width: var(--ol-measure); }
.p-prose h2 {
  font-family: var(--ol-font-display); font-size: 1.4rem; font-weight: 600;
  color: var(--ol-navy-800); margin: var(--ol-l) 0 12px;
}
.p-prose h3 {
  font-family: var(--ol-font-display); font-size: 1.1rem; font-weight: 600;
  color: var(--ol-navy-800); margin: var(--ol-m) 0 8px;
}
.p-prose p, .p-prose li { font-size: 15.5px; line-height: 1.75; color: var(--ol-ink); }
.p-prose p { margin: 0 0 14px; }
.p-prose ul, .p-prose ol { margin: 0 0 16px; padding-left: 22px; }
.p-prose li { margin-bottom: 7px; }
.p-prose a:not(.btn) { color: var(--ol-gold-700); }
.p-prose > :first-child { margin-top: 0; }

/* Numbered step list used by the guidance pages. */
.p-steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 var(--ol-m); }
.p-steps li {
  counter-increment: step; position: relative; padding: 0 0 18px 44px; margin: 0;
  border-left: 2px solid var(--ol-rule); margin-left: 13px;
}
.p-steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.p-steps li::before {
  content: counter(step); position: absolute; left: -14px; top: -2px;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ol-surface-navy); color: #fff; font-size: 12.5px; font-weight: 600;
  font-family: var(--ol-font-mono);
}
.p-steps li b { display: block; color: var(--ol-navy-800); margin-bottom: 3px; }

/* Draft banner: content that still needs the publisher's sign-off. */
.p-draft {
  background: var(--ol-gold-100); border-left: 3px solid var(--ol-gold-500);
  border-radius: 0 var(--ol-radius-xs) var(--ol-radius-xs) 0;
  padding: 14px 18px; margin-bottom: var(--ol-l); font-size: 14px;
  color: var(--ol-gold-700); max-width: var(--ol-measure);
}
.p-draft b { color: var(--ol-navy-800); }

/* Subject browse */
.p-subj { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.p-subj section {
  background: var(--ol-white); border: 1px solid var(--ol-rule);
  border-radius: var(--ol-radius); padding: 20px 22px;
}
.p-subj h2 {
  font-family: var(--ol-font-display); font-size: 1.15rem; font-weight: 600;
  color: var(--ol-navy-800); margin: 0 0 4px;
}
.p-subj .n { font-size: 12px; color: var(--ol-ink-faint); font-family: var(--ol-font-mono); }
.p-subj ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; }
.p-subj li a { font-size: 14px; color: var(--ol-ink); text-decoration: none; }
.p-subj li a:hover { color: var(--ol-gold-700); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .p-subj { grid-template-columns: 1fr; } }

/* Empty states on public pages */
.p-empty {
  background: var(--ol-white); border: 1px solid var(--ol-rule);
  border-radius: var(--ol-radius); padding: 44px 24px; text-align: center;
}
.p-empty h2 {
  font-family: var(--ol-font-display); font-size: 1.25rem; font-weight: 600;
  color: var(--ol-navy-800); margin: 0 0 8px;
}
.p-empty p { margin: 0 auto; max-width: 52ch; color: var(--ol-ink-muted); font-size: 14.5px; }

/* A button row inside an empty state is itself a <p>, so it picked up the
   52ch prose measure and the `margin: 0 auto` on the line above. That
   centred the block but not the buttons: .btn-row is display:flex, a flex
   container lays its items out from the start edge, and the text-align on
   .p-empty cannot move them. The pair ended up ~40px left of the card's
   centre while the heading and the sentence directly above were exactly
   centred — a near-miss, which reads worse than a frank left-align because
   the eye has the centred text right there to compare against.

   The measure is dropped with it. 52ch is a limit for reading prose; on a
   row of buttons it only decides when they wrap, and it would stack a
   third button while several hundred pixels of card sat empty either
   side. */
.p-empty .btn-row { justify-content: center; max-width: none; }

/* Simple definition grid for contact / support */
.p-defs { display: grid; gap: 0; max-width: 72ch; }
.p-defs div {
  display: grid; grid-template-columns: 190px 1fr; gap: 18px;
  padding: 13px 0; border-bottom: 1px solid var(--ol-rule);
}
.p-defs dt, .p-defs b { color: var(--ol-navy-800); font-weight: 600; font-size: 14.5px; }
.p-defs dd, .p-defs span { margin: 0; font-size: 14.5px; color: var(--ol-ink-muted); }
@media (max-width: 640px) { .p-defs div { grid-template-columns: 1fr; gap: 4px; } }

/* --- what an author owes --------------------------------------------------
   Stated plainly on the submission it belongs to, rather than on a separate
   billing page the author would have to know to look for. */
.apc-line {
  margin: 8px 0 0; padding: 7px 11px; font-size: 13px; line-height: 1.5;
  border-radius: var(--ol-radius-xs);
  background: var(--ol-surface-2, #FAF8F5); color: var(--ol-ink-muted);
}
.apc-line b { color: var(--ol-navy-800); font-weight: 600; }
.apc-line.due { background: #F6E7E6; color: #8A2F2A; }
.apc-line.due b { color: #A33A3A; }

/* --- article full text ----------------------------------------------------
   The reading column. Measured at roughly 68 characters, which is where
   running prose stops being tiring, and given the vertical rhythm a long
   piece needs. */
.p-fulltext {
  max-width: 68ch; margin: 26px 0 30px;
  font-size: 16px; line-height: 1.72; color: var(--ol-ink);
}
.p-fulltext > *:first-child { margin-top: 0; }
.p-fulltext p { margin: 0 0 1.1em; }
.p-fulltext h2 {
  font-family: var(--ol-font-display); font-size: 1.3rem; font-weight: 600;
  color: var(--ol-navy-800); margin: 1.9em 0 .55em;
}
.p-fulltext h3 {
  font-family: var(--ol-font-display); font-size: 1.08rem; font-weight: 600;
  color: var(--ol-navy-800); margin: 1.5em 0 .45em;
}
.p-fulltext ul, .p-fulltext ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.p-fulltext li { margin-bottom: .4em; }
.p-fulltext blockquote {
  margin: 0 0 1.1em; padding: 2px 0 2px 16px;
  border-left: 3px solid var(--ol-gold-500); color: var(--ol-ink-muted);
}
.p-fulltext a { color: var(--ol-gold-700); }
.p-fulltext img { max-width: 100%; height: auto; }
.p-fulltext figure { margin: 1.4em 0; }
.p-fulltext figcaption { font-size: 13.5px; color: var(--ol-ink-muted); margin-top: 7px; }
.p-fulltext pre {
  font-family: var(--ol-font-mono); font-size: 13px; line-height: 1.55;
  background: var(--ol-surface-2, #FAF8F5); padding: 14px 16px;
  border-radius: var(--ol-radius-xs); overflow-x: auto;
}
/* A wide table must scroll inside itself, never push the page sideways. */
.p-fulltext table {
  display: block; overflow-x: auto; max-width: 100%;
  border-collapse: collapse; font-size: 14.5px; margin: 1.4em 0;
}
.p-fulltext th, .p-fulltext td {
  border-top: 1px solid var(--ol-rule); border-bottom: 1px solid var(--ol-rule);
  padding: 8px 12px; text-align: left;
}
.p-fulltext th { color: var(--ol-navy-800); font-weight: 600; }
.p-fulltext caption { font-size: 13.5px; color: var(--ol-ink-muted); text-align: left; padding-bottom: 7px; }

/* --- figures stored against the article -----------------------------------
   Two placements. A figure the body references is rendered by the body, so it
   inherits .p-fulltext figure above. One the body does not reference appears
   here instead, after the text, numbered — which is also the only way figures
   can be seen at all on an article that is still PDF-only.

   The width and height come out of the file header at upload and are written
   onto the <img>, so the space is reserved before the image arrives and the
   text under it does not jump. */
.p-figures { max-width: 68ch; margin: 8px 0 30px; }
.p-figure {
  margin: 0 0 24px; padding: 0;
  border-top: 1px solid var(--ol-rule); padding-top: 16px;
}
.p-figure img {
  display: block; max-width: 100%; height: auto;
  border-radius: var(--ol-radius-xs);
  background: var(--ol-surface-2, #FAF8F5);
}
.p-figure figcaption {
  font-size: 13.5px; line-height: 1.6; color: var(--ol-ink-muted); margin-top: 9px;
}
.p-figure figcaption b { color: var(--ol-navy-800); }

/* The graphical abstract sits with the abstract, because that is what it is
   an abstract of. Capped short so it cannot push the text off the screen. */
.p-abstract-figure { max-width: 68ch; margin: 0 0 22px; }
.p-abstract-figure img {
  display: block; max-width: min(100%, 420px); height: auto;
  border-radius: var(--ol-radius-xs); border: 1px solid var(--ol-rule);
}
.p-abstract-figure figcaption {
  font-family: var(--ol-font-display); font-size: 12px; text-transform: uppercase;
  letter-spacing: .06em; color: var(--ol-ink-muted); margin-top: 8px;
}

/* --- notices on the published record --------------------------------------
   A retraction banner is the one thing on an article page that has to be read
   before the article. It is loud on purpose: somebody who skims the top and
   leaves must not come away thinking the paper still stands.

   The three levels are distinguished by more than colour — each carries its
   own words — so the difference survives a greyscale print and a reader who
   cannot tell red from amber. */
.p-notice {
  max-width: 68ch; margin: 0 0 22px; padding: 14px 16px;
  border-left: 4px solid; border-radius: var(--ol-radius-xs);
}
.p-notice b { display: block; font-family: var(--ol-font-display); font-size: 15px; }
.p-notice p { margin: 5px 0 0; font-size: 13.5px; line-height: 1.6; }
.p-notice a { color: inherit; text-decoration: underline; }

.p-notice-retracted {
  border-color: #A33A3A; background: #F6E7E6; color: #8A2F2A;
}
.p-notice-concern {
  border-color: var(--ol-gold-700, #866528); background: #F7F1E5; color: #866528;
}
.p-notice-corrected {
  border-color: var(--ol-navy-800, #0B1F3A); background: var(--ol-surface-2, #FAF8F5);
  color: var(--ol-ink);
}

.p-notice-list { max-width: 68ch; margin: 0 0 26px; }
.p-notice-list h2 {
  font-family: var(--ol-font-display); font-size: 1.05rem; font-weight: 600;
  color: var(--ol-navy-800); margin: 0 0 8px;
}
.p-notice-list p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.55; }
.p-notice-link { text-decoration: none; color: var(--ol-ink); }
.p-notice-link:hover b { text-decoration: underline; }
.p-notice-tag {
  display: inline-block; font-family: var(--ol-font-mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 2px 7px; margin-right: 7px; border-radius: 2px; vertical-align: 1px;
  border: 1px solid currentColor;
}
.p-notice-tag.retracted { color: #A33A3A; }
.p-notice-tag.concern { color: var(--ol-gold-700, #866528); }
.p-notice-tag.corrected { color: var(--ol-navy-800, #0B1F3A); }
.p-notice-when {
  display: block; font-family: var(--ol-font-mono); font-size: 11.5px;
  color: var(--ol-ink-faint); margin-top: 2px;
}

/* --- a notice on its own page --------------------------------------------
   It has its own address because it is citable, and because a Crossref
   update record has to point somewhere that is not the article it corrects. */
.n-head { max-width: 68ch; }
.n-body {
  max-width: 68ch; margin: 18px 0 26px;
  font-size: 16px; line-height: 1.72; color: var(--ol-ink);
}
.n-body p { margin: 0 0 1.1em; }
.n-body a { color: var(--ol-gold-700); }
.n-about {
  max-width: 68ch; margin: 0 0 26px; padding: 14px 16px;
  background: var(--ol-surface-2, #FAF8F5); border-radius: var(--ol-radius-xs);
  font-size: 13.5px; line-height: 1.6;
}
.n-about b { color: var(--ol-navy-800); }

/* --- calls for papers -----------------------------------------------------
   The one page on the site whose job is to produce submissions rather than
   describe what has already been published, so a call reads as an invitation
   with a date on it rather than as another list item. */
.cfp {
  padding: 20px 0 22px;
  border-top: 1px solid var(--ol-rule);
}
.cfp:last-child { border-bottom: 1px solid var(--ol-rule); }
.cfp-journal {
  font-family: var(--ol-font-mono); font-size: 11.5px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ol-ink-faint); margin: 0 0 7px;
}
.cfp-journal a { color: inherit; text-decoration: none; }
.cfp-journal a:hover { text-decoration: underline; }
.cfp h2 {
  font-family: var(--ol-font-display); font-size: 1.3rem; font-weight: 600;
  line-height: 1.25; margin: 0 0 8px; text-wrap: balance;
}
.cfp h2 a { color: var(--ol-navy-800); text-decoration: none; }
.cfp h2 a:hover { text-decoration: underline; }
.cfp-when {
  font-family: var(--ol-font-mono); font-size: 12px;
  color: var(--ol-ink-muted); margin: 0 0 10px;
}
/* A deadline inside a month is the thing a reader has to act on, so it is the
   one piece of colour on the card. */
.cfp-when.soon { color: var(--ol-gold-700, #866528); font-weight: 600; }
.cfp-desc {
  font-size: 14.5px; line-height: 1.65; color: var(--ol-ink); margin: 0 0 10px;
  max-width: 68ch;
}
.cfp-eds { font-size: 13px; color: var(--ol-ink-muted); margin: 0; max-width: 68ch; }
.cfp-eds span {
  display: block; font-family: var(--ol-font-display); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .06em; color: var(--ol-ink-faint);
  margin-bottom: 2px;
}

/* --- the reference list ----------------------------------------------------
   Set in the serif the paper itself uses, because this is part of the paper
   rather than part of the page furniture. The hanging indent is what makes a
   numbered reference list scannable: the numbers line up in their own column
   and the wrapped lines clear them.

   Each <li> carries an id of ref{n}, so a link to a reference from the body
   lands on it. scroll-margin-top keeps the pinned nav off the target. */
.p-refs {
  margin: 0; padding-left: 2.2em;
  font-family: var(--ol-font-paper-serif, Georgia, serif);
  font-size: 14px; line-height: 1.65; color: var(--ol-ink);
}
.p-refs li { margin-bottom: .75em; scroll-margin-top: calc(var(--ol-header-h) + 16px); }
.p-refs li:last-child { margin-bottom: 0; }
.p-refs li::marker { color: var(--ol-ink-faint); font-variant-numeric: tabular-nums; }
/* A DOI is long, unbreakable and the one part a reader may want to copy. */
.p-refs a {
  color: var(--ol-gold-700); word-break: break-all;
  font-family: var(--ol-font-mono); font-size: 12.5px;
}
.p-refs li:target { background: var(--ol-gold-100); border-radius: var(--ol-radius-xs); }

/* ---- Rows of buttons --------------------------------------------------- */
/*
   Two buttons side by side are sized by their labels, so "Browse the
   journals" (189px) and "Submit a manuscript" (195px) come out six pixels
   apart. On a wide screen nobody notices. On a 375px phone the pair cannot
   fit on one line at all, so they wrap — and the result is two stacked
   buttons of visibly different widths, which reads as a mistake because it
   is one.

   Below 560px a row becomes a column and every button in it takes the full
   width, so they match exactly and the tap targets are the size of the
   screen rather than the size of the words.

   The :has() selector catches the older markup, where the pattern is a
   paragraph holding two buttons and an inline margin-left. That inline style
   is why margin-left needs !important here: nothing else can outrank it.
   New markup should use class="btn-row" and no inline spacing.
*/
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

@media (max-width: 560px) {
  .btn-row,
  p:has(> .btn + .btn) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .btn-row > .btn,
  p:has(> .btn + .btn) > .btn {
    width: 100%;
    justify-content: center;
    margin-left: 0 !important;
  }
}

/* An index listing. Navy like Peer Reviewed rather than gold, because gold
   is the accent for things to act on and these are statements of fact. */
.badge-index { background: var(--ol-navy-100); color: var(--ol-navy-800); }

/* --- the subject chooser, on the registration and submission forms --------
   Twenty-five subjects on two levels. This was an auto-fit grid while the
   list was eleven flat headings, which is the wrong flow once the headings
   have children: grid items fill row by row, so a heading and its own
   subjects land in different columns and the indent says nothing.

   CSS columns instead, with each heading-and-children block kept whole. A
   block is short enough that refusing to break inside it costs no space, and
   the reader gets the shape of the taxonomy rather than 25 names in
   alphabetical disorder. */
.reg-cats {
  columns: 230px 3;
  column-gap: 28px;
  margin-top: 9px;
}
.reg-cat-group {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 11px;
}
/* The heading carries the weight; its subjects are visibly subordinate and
   indented past the tick box above them, so the relationship reads without a
   rule or a disclosure arrow. */
.reg-cat-top { font-weight: 600; }
.reg-cat-sub {
  margin-left: 17px;
  font-size: 12.8px;
  color: var(--ol-ink-muted);
}
/* A chosen subject goes back to full-strength ink: muted means "available and
   secondary", never "you picked this". */
.reg-cat-sub:has(input:checked) { color: var(--ol-ink); }
.reg-cat {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 13.5px; line-height: 1.4; color: var(--ol-ink); cursor: pointer;
  padding: 5px 7px; border-radius: var(--ol-radius-xs);
  border: 1px solid transparent;
}
.reg-cat:hover { background: var(--ol-surface-2, #FAF8F5); border-color: var(--ol-rule); }
/* The whole row reads as chosen, not just the box — at this size a tick
   alone is easy to miss when scanning back over eleven of them. */
.reg-cat:has(input:checked) {
  background: var(--ol-gold-100); border-color: var(--ol-gold-500); font-weight: 600;
}
.reg-cat input { width: auto; margin: 2px 0 0; flex: none; }
.reg-cat:focus-within { outline: 2px solid var(--ol-gold-500); outline-offset: 1px; }

/* At the cap. Greyed rather than hidden: the choice is still there to be
   seen, it just cannot be added to until something else is given up. */
.reg-cat.is-off { opacity: .45; cursor: not-allowed; }
.reg-cat.is-off:hover { background: transparent; border-color: var(--ol-rule-faint, var(--ol-rule)); }

.reg-count { margin: 8px 0 0; font-size: 12.5px; color: var(--ol-ink-muted); }
.reg-count.is-full { color: var(--ol-gold-700); font-weight: 600; }

/* --- CRediT contributions ------------------------------------------------
   Fourteen roles per author, folded away by default. Open for every author
   at once they would bury the names the panel is actually about, so the
   summary carries the count and opens only where somebody has chosen. */
.credit { margin-top: 12px; border-top: 1px solid var(--ol-rule); padding-top: 10px; }
.credit > summary {
  cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ol-navy-800);
  display: flex; align-items: baseline; gap: 9px; list-style: revert;
}
.credit > summary::-webkit-details-marker { color: var(--ol-ink-faint); }
.credit-n {
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ol-gold-700);
}
.credit-n.quiet { color: var(--ol-ink-faint); font-weight: 400; }
.credit-roles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 5px 12px; margin-top: 11px;
}
.credit-role {
  display: flex; align-items: flex-start; gap: 8px; cursor: pointer;
  font-size: 13px; line-height: 1.35; color: var(--ol-ink);
  padding: 5px 7px; border-radius: var(--ol-radius-xs); border: 1px solid transparent;
}
.credit-role:hover { background: var(--ol-surface-2, #FAF8F5); border-color: var(--ol-rule); }
.credit-role.on { background: var(--ol-gold-100); border-color: var(--ol-gold-500); font-weight: 600; }
.credit-role input { width: auto; margin: 1px 0 0; flex: none; }
.credit-role:focus-within { outline: 2px solid var(--ol-gold-500); outline-offset: 1px; }

/* ---------------------------------------------------------------------------
   The newsletter workbench (UC-120).

   Table-based layout for the letters list rather than the card grid used
   elsewhere: a mailing screen is read down a column — which letter, how many
   people, what state — and cards make that comparison impossible.
   --------------------------------------------------------------------------- */
.nl-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 18px; border-bottom: 1px solid var(--ol-rule); }
.nl-tab {
    font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
    background: none; border: 1px solid transparent; border-bottom: none;
    border-radius: var(--ol-radius-xs) var(--ol-radius-xs) 0 0;
    padding: 9px 16px; color: var(--ol-ink-muted); margin-bottom: -1px;
}
.nl-tab:hover { color: var(--ol-gold-700); }
.nl-tab.on {
    background: var(--ol-surface); border-color: var(--ol-rule);
    border-bottom: 1px solid var(--ol-surface); color: var(--ol-navy-800);
}

.nl-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.nl-quiet { margin: 0 0 12px; font-size: 13px; line-height: 1.6; color: var(--ol-ink-muted); }
.nl-hint { font-weight: 400; font-size: 12px; color: var(--ol-ink-faint); }
.nl-sub { font-size: 12.5px; color: var(--ol-ink-muted); margin-top: 3px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nl-fixed { margin: 0; font-size: 14px; font-weight: 600; color: var(--ol-navy-800); }

/* min-width:0 on the wrapper, or a wide table makes the whole page scroll
   sideways instead of the table. Third time this trap has been hit here. */
.nl-table { width: 100%; min-width: 0; border-collapse: collapse; font-size: 13.5px; display: table; }
.nl-table th {
    text-align: left; font-size: 11px; letter-spacing: .6px; text-transform: uppercase;
    color: var(--ol-ink-faint); font-weight: 600; padding: 0 10px 8px 0;
    border-bottom: 1px solid var(--ol-rule);
}
.nl-table td { padding: 11px 10px 11px 0; border-bottom: 1px solid var(--ol-rule); vertical-align: top; }
.nl-table tr:last-child td { border-bottom: none; }

.nl-check { display: flex; gap: 9px; align-items: center; font-size: 13.5px; margin: 9px 0 0; cursor: pointer; }
.nl-check input { width: auto; margin: 0; flex: none; }

.nl-count { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--ol-ink-muted); }
.nl-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }

.nl-internal-head {
    margin: 20px 0 9px; font-size: 11px; letter-spacing: 1.1px; text-transform: uppercase;
    color: var(--ol-state-attention); font-weight: 600;
}
/* An internal figure must not look like a public one. Same control, different
   edge, so a glance at the grid shows which half is which. */
.credit-role.internal { border-left: 3px solid var(--ol-state-attention); }
.credit-role.internal.on { background: #FBF1F0; border-color: var(--ol-state-attention); }

.nl-figures { display: flex; gap: 26px; flex-wrap: wrap; margin: 0 0 18px; }
.nl-figures > div { display: flex; flex-direction: column; }
.nl-figures b { font-size: 21px; color: var(--ol-navy-800); font-variant-numeric: tabular-nums; }
.nl-figures span { font-size: 11.5px; letter-spacing: .4px; text-transform: uppercase; color: var(--ol-ink-faint); }

/* The preview is a letter, not part of the page. A ruled, scrollable well so
   its own 600px layout cannot push the screen about. */
.nl-preview {
    border: 1px solid var(--ol-rule); border-radius: var(--ol-radius-xs);
    background: #FFFFFF; max-height: 620px; overflow: auto; padding: 0;
}
.nl-preview table { max-width: 100%; }

.nl-tokens { display: grid; gap: 7px; margin: 0 0 16px; }
.nl-tokens > div { display: flex; gap: 12px; align-items: baseline; font-size: 12.5px; flex-wrap: wrap; }
.nl-tokens code {
    font-family: var(--ol-font-mono); font-size: 12px; color: var(--ol-gold-700);
    background: var(--ol-surface-2, #FAF8F5); padding: 2px 6px; border-radius: 3px; white-space: nowrap;
}
.nl-tokens span { color: var(--ol-ink-muted); }

.nl-code { font-family: var(--ol-font-mono); font-size: 12px; line-height: 1.55; white-space: pre; }

/* ---- the public sign-up ---- */
.nl-signup { max-width: 560px; }
.nl-journals { display: grid; gap: 8px; margin: 14px 0 4px; }

/* ---------------------------------------------------------------------------
   The social accounts panel (UC-68).

   Three small classes rather than inline styles repeated nine times, because
   the connect panel is mostly explanatory prose and prose needs one
   consistent voice on screen as well as on the page.
   --------------------------------------------------------------------------- */
.soc-sub {
    margin: 0 0 12px; font-family: var(--ol-font-display); font-size: 15px;
    color: var(--ol-navy-800); font-weight: 600;
}
.soc-hint { margin: 5px 0 0; font-size: 12px; line-height: 1.55; color: var(--ol-ink-muted); }
.soc-hint code {
    font-family: var(--ol-font-mono); font-size: 11.5px; color: var(--ol-gold-700);
    background: var(--ol-surface-2, #FAF8F5); padding: 1px 5px; border-radius: 3px;
    /* The callback address is long and must stay copyable in a narrow column,
       so it wraps rather than pushing the panel sideways. */
    word-break: break-all;
}
.soc-hint-inline { font-weight: 400; font-size: 11.5px; color: var(--ol-ink-faint); }

/* ---------------------------------------------------------------------------
   THE SHARE CARD on an article page (Components/Shared/ShareCard.razor).

   .e-card.p-share, not .p-share, for the heading. editorial.css is the last
   stylesheet App.razor links, so its `.e-card > h2` — display serif, 1.15rem
   — outranks an equally specific `.p-share > h2` written here no matter
   where in this file it sits. The compound selector is one class heavier and
   wins on specificity rather than on load order, which is the thing that
   stays true if the <link> order is ever changed.

   The heading is a small caps label rather than a serif title because this
   card is an instrument, not a section of the paper: it sits below the
   citation and the licence, and a heading as loud as "References" would
   claim the same weight as the article's own parts.
   --------------------------------------------------------------------------- */
.e-card.p-share > h2 {
  font-family: var(--ol-font-body); font-size: 11px; font-weight: 700;
  letter-spacing: var(--ol-tracking-caps); text-transform: uppercase;
  color: var(--ol-ink-muted); margin: 0 0 10px;
}

.p-share-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }

/* The negative margin pulls the hover target out to the card's padding edge,
   so the row a reader is pointing at is as wide as the card looks. Without
   it the highlight stops short of the icon on the left and the label floats
   in the middle of a box that is wider than its own background. */
.p-share-row {
  display: flex; align-items: center; gap: 14px;
  margin: 0 -10px; padding: 8px 10px;
  border-radius: var(--ol-radius);
  text-decoration: none; color: var(--ol-navy-800);
  font-size: 14.5px; font-weight: 600; line-height: 1.3;
  transition: color var(--ol-transition), background var(--ol-transition);
}

.p-share-ic {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--ol-ch-tile); color: #fff;
  transition: color var(--ol-transition), background var(--ol-transition);
}
.p-share-ic svg { width: 17px; height: 17px; display: block; }

/* Hover and keyboard focus do the same thing, deliberately: the tile takes
   the network's own colour and the label follows it. A reader finds the row
   they want by its colour before they read the word next to it, so the
   colour has to be the thing that answers.

   The tint is mixed from the same token rather than written out, so there is
   one value per network to keep in step with the dark theme instead of two.
   The flat background on the line above is the fallback for a browser
   without color-mix; it is a plain surface, never an unreadable one. */
.p-share-row:hover .p-share-ic,
.p-share-row:focus-visible .p-share-ic {
  background: var(--ol-surface-2);
  background: color-mix(in srgb, var(--ch, var(--ol-navy-800)) 16%, transparent);
  color: var(--ch, var(--ol-navy-800));
}
.p-share-row:hover,
.p-share-row:focus-visible { color: var(--ch, var(--ol-navy-800)); }

.p-share-row[data-ch="x"]    { --ch: var(--ol-ch-x); }
.p-share-row[data-ch="li"]   { --ch: var(--ol-ch-li); }
.p-share-row[data-ch="wa"]   { --ch: var(--ol-ch-wa); }
.p-share-row[data-ch="ig"]   { --ch: var(--ol-ch-ig); }
.p-share-row[data-ch="mail"] { --ch: var(--ol-ch-mail); }
.p-share-row[data-ch="link"] { --ch: var(--ol-ch-link); }

/* What came of the click. :empty rather than a hidden attribute, so the
   paragraph costs no space on a page where nothing has been copied yet and
   needs no script to reveal it. */
.p-share-status {
  margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--ol-rule);
  font-size: 13px; line-height: 1.6; color: var(--ol-ink-muted);
}
.p-share-status:empty { display: none; }

/* Thumbs are not mouse pointers: 36px of icon with 8px of padding is a 52px
   row, which clears the 44px minimum, and the rows spread out rather than
   crowd when the card is the width of a phone. */
@media (max-width: 560px) {
  .p-share-list { gap: 4px; }
  .p-share-row { padding: 10px; font-size: 15px; }
}

/* --- the author's workflow ladder -----------------------------------------
   What has happened, where it is, and what is left. The timeline beside it
   lists events; this lists STEPS, including the ones still ahead, because an
   author three weeks in cannot tell from a list of past events whether they
   are near the beginning or near the end. */
.wf { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.wf li {
  display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start;
  padding: 11px 0; border-bottom: 1px solid var(--ol-rule);
}
.wf li:last-child { border-bottom: 0; }

.wf-mark {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; font-size: 12px; line-height: 1;
  border: 1px solid var(--ol-rule-strong); color: var(--ol-ink-faint);
}
.wf li b { display: block; font-size: 14px; color: var(--ol-navy-800); font-weight: 600; }
.wf-state {
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  margin-left: 8px; color: var(--ol-ink-faint);
}
.wf-what { display: block; font-size: 12.5px; color: var(--ol-ink-muted); margin-top: 2px; line-height: 1.5; }
.wf-detail { display: block; font-size: 12.5px; color: var(--ol-navy-800); margin-top: 3px; font-weight: 500; }
.wf-when { display: block; font-size: 11.5px; color: var(--ol-ink-faint); margin-top: 2px; }

/* Done is quiet. A ladder where every finished step shouts is a ladder whose
   current step does not stand out, which is the one thing it exists to show. */
.wf-done .wf-mark { background: var(--ol-navy-100); border-color: var(--ol-navy-100); color: var(--ol-navy-800); }
.wf-done b { color: var(--ol-ink-muted); font-weight: 500; }

.wf-current .wf-mark { background: var(--ol-gold-500); border-color: var(--ol-gold-700); color: #fff; }
.wf-current { background: var(--ol-gold-100); border-radius: var(--ol-radius-xs); padding-left: 10px; padding-right: 10px; }
.wf-current .wf-state { color: var(--ol-gold-700); }

.wf-closed .wf-mark { background: #F6E7E6; border-color: #E3C9C7; color: #A33A3A; }
.wf-closed b, .wf-closed .wf-state { color: #A33A3A; }

/* Not hidden. Seeing the route that was not taken is part of understanding
   the one that was. */
.wf-skipped { opacity: .45; }
.wf-ahead .wf-mark { border-style: dashed; }

/* --- a button that reads as a link -----------------------------------------
   For an offer sitting under a field: taking the declaration example, and
   anything else where a full button would shout louder than the thing it
   offers. It is a <button> and not an <a> because it performs an action
   rather than going anywhere, which is also what a screen reader is told. */
.btn-asline {
  background: none; border: 0; padding: 2px 0; margin: 4px 0 2px;
  font: inherit; font-size: 12.5px; color: var(--ol-gold-700);
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.btn-asline:hover { color: var(--ol-navy-800); }
.btn-asline:focus-visible { outline: 2px solid var(--ol-gold-500); outline-offset: 2px; }

/* --- an ORCID iD, wherever it appears --------------------------------------
   One appearance for one kind of data. The label is small and quiet because
   it is a category, not the content; the number is what somebody reads, and
   it is tabular so that two iDs in a list line up digit under digit. */
.orcid-id {
  font-variant-numeric: tabular-nums;
  color: inherit; text-decoration: none;
  white-space: nowrap;
}
a.orcid-id:hover { text-decoration: underline; text-underline-offset: 2px; }
a.orcid-id:focus-visible { outline: 2px solid var(--ol-gold-500); outline-offset: 2px; }
.orcid-id-label {
  font-size: .82em; font-weight: 600; letter-spacing: .04em;
  color: var(--ol-ink-faint, var(--ol-ink-muted)); margin-right: .35em;
}
