/* ==========================================================================
   CUPA Journal: public pages (.jr-*) and admin screens (.jrx-*).
   An editorial look on the site's palette: Newsreader for titles and long
   text, Inter for interface, white "paper" sheets on the mist background.
   ========================================================================== */

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.jr-icon { flex-shrink: 0; vertical-align: -0.15em; }

/* ------------------------------------------------------------ Masthead */

.jr-mast { background: var(--paper); border-bottom: 1px solid var(--line); }
.jr-mast-inner { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.4rem 1.5rem; padding-top: 1.15rem; padding-bottom: 0.9rem; }
.jr-mast.is-big .jr-mast-inner { display: none; }
.jr-mast-name {
  font-family: var(--font-serif); font-optical-sizing: auto; font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 500;
  letter-spacing: -0.01em; line-height: 1.15; color: var(--ink);
}
.jr-mast-name:hover { color: var(--accent-dark); }
.jr-mast-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 0.6rem; margin: 0; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted); }

.jr-nav { border-top: 1px solid var(--line); background: var(--paper); }
.jr-mast.is-big .jr-nav { border-top: 0; }
.jr-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.jr-nav ul { display: flex; flex-wrap: wrap; gap: 0 1.6rem; margin: 0; padding: 0; list-style: none; }
.jr-nav ul a {
  display: inline-block; padding: 0.85rem 0 0.75rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); border-bottom: 2px solid transparent;
}
.jr-nav ul a:hover { color: var(--ink); }
.jr-nav ul a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.jr-nav-submit {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.95rem; font-size: 0.8rem; font-weight: 600;
  color: #fff; background: var(--accent); border-radius: var(--radius); white-space: nowrap;
}
.jr-nav-submit:hover, .jr-nav-submit.is-current { background: var(--accent-dark); color: #fff; }

@media (max-width: 760px) {
  .jr-nav-inner { flex-wrap: wrap; padding-top: 0.5rem; padding-bottom: 0.6rem; gap: 0.4rem; }
  .jr-nav ul { gap: 0 1rem; }
  .jr-nav ul a { padding: 0.45rem 0 0.35rem; font-size: 0.74rem; letter-spacing: 0.06em; }
  .jr-nav-inner { justify-content: flex-start; gap: 0 1rem; }
  .jr-nav-submit { padding: 0.45rem 0 0.35rem; font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-dark); background: none; }
  .jr-nav-submit:hover, .jr-nav-submit.is-current { color: var(--ink); background: none; }
  .jr-mast-inner { padding-top: 0.9rem; padding-bottom: 0.7rem; }
  .jr-mast-meta { font-size: 0.72rem; }
}

/* ------------------------------------------------------- Home hero */

.jr-hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%); color: #fff; }
.jr-hero::after {
  content: ""; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.025), 0 0 0 140px rgba(255, 255, 255, 0.02);
  pointer-events: none;
}
.jr-hero-inner { position: relative; z-index: 1; padding-top: clamp(2.6rem, 6vw, 4.5rem); padding-bottom: clamp(2.4rem, 5vw, 3.8rem); }
.jr-hero .jr-kicker { color: var(--accent-soft); }
.jr-hero-title {
  max-width: 20ch; margin: 0 0 1rem; color: #fff; font-family: var(--font-serif); font-optical-sizing: auto;
  font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance;
}
.jr-hero-lede { max-width: 56ch; margin: 0 0 1.8rem; font-size: 1.15rem; line-height: 1.55; color: var(--on-ink); }
.jr-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.jr-hero-meta { margin: 1.6rem 0 0; font-size: 0.82rem; letter-spacing: 0.05em; color: var(--on-ink-muted); }
.jr-btn-light { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.jr-btn-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* -------------------------------------------------------- Page heads */

.jr-page-head { padding: clamp(1.8rem, 4vw, 2.8rem) 0 clamp(1.6rem, 3vw, 2.2rem); background: var(--paper); border-bottom: 1px solid var(--line); }
.jr-kicker { margin: 0 0 0.6rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-dark); }
.jr-kicker a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.jr-title {
  text-wrap: balance; max-width: 28ch; margin: 0 0 0.6rem; font-family: var(--font-serif); font-optical-sizing: auto;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; color: var(--ink);
}
.jr-title-year { color: var(--muted); }
.jr-lede { max-width: 64ch; margin: 0; font-size: 1.1rem; line-height: 1.55; color: var(--muted); }

.jr-crumbs ol { display: flex; flex-wrap: wrap; gap: 0.2rem 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: 0.82rem; color: var(--muted); }
.jr-crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--line-dark); opacity: 0.5; }
.jr-crumbs a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.jr-crumbs a:hover { color: var(--ink); }
.jr-crumbs [aria-current] { display: inline-block; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* ------------------------------------------------------------ Layout */

.jr-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; padding-top: 2rem; padding-bottom: 4rem; }
.jr-main { min-width: 0; padding: clamp(1.25rem, 3vw, 2.5rem); background: var(--paper); border: 1px solid var(--line); }
.jr-aside { display: grid; gap: 1.25rem; min-width: 0; }
.jr-section { padding-top: 2rem; padding-bottom: 0.5rem; }
.jr-main > .jr-section:first-child { padding-top: 0; }
.jr-main > .jr-section + .jr-section { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.container.jr-section { padding-bottom: 4rem; }
.jr-narrow { max-width: 820px; }
.jr-section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1rem; }
.jr-h2 {
  margin: 0 0 1rem; font-family: var(--font-serif); font-optical-sizing: auto; font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  font-weight: 500; letter-spacing: -0.01em; color: var(--ink);
}
.jr-muted { color: var(--muted); }
.jr-link { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.9rem; font-weight: 600; color: var(--accent-dark); }
.jr-link:hover { color: var(--accent); }

@media (max-width: 960px) {
  .jr-layout { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding-top: 1.25rem; }
}
@media (max-width: 640px) {
  .jr-main { margin-left: calc(-1 * var(--s-2)); margin-right: calc(-1 * var(--s-2)); border-left: 0; border-right: 0; }
}

/* ------------------------------------------------------------- Prose */

.jr-prose { overflow-wrap: break-word; }
.jr-prose > :first-child { margin-top: 0; }
.jr-prose > :last-child { margin-bottom: 0; }
.jr-prose a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.jr-prose h2 { margin: 2rem 0 0.75rem; font-family: var(--font-serif); font-size: 1.45rem; font-weight: 500; letter-spacing: -0.005em; }
.jr-prose h3 { margin: 1.5rem 0 0.5rem; font-size: 1.08rem; }
.jr-prose ul, .jr-prose ol { margin: 0 0 1rem; padding-left: 1.35em; }
.jr-prose li { margin-bottom: 0.4em; }
.jr-prose li::marker { color: var(--accent); }
.jr-prose strong { font-weight: 650; color: var(--ink); }
.jr-prose blockquote { margin: 1.25rem 0; padding-left: 1rem; border-left: 3px solid var(--accent-soft); color: var(--muted); }
.jr-prose-serif { font-family: var(--font-serif); font-optical-sizing: auto; font-size: 1.2rem; line-height: 1.65; color: #1F1D1A; }
.jr-prose-serif h2, .jr-prose-serif h3 { font-family: var(--font-serif); }
.jr-prose-serif h3 { font-size: 1.25rem; font-weight: 600; }

/* ------------------------------------------------------------- Cards */

.jr-card { padding: 1.35rem 1.4rem; background: var(--paper); border: 1px solid var(--line); }
.jr-card p { font-size: 0.94rem; }
.jr-card-title { margin: 0 0 0.85rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.jr-btn-block { width: 100%; justify-content: center; }
.jr-mini-links { margin: 1rem 0 0; padding: 0; list-style: none; font-size: 0.92rem; }
.jr-mini-links li { border-top: 1px solid var(--line); }
.jr-mini-links a { display: block; padding: 0.5rem 0; color: var(--ink); }
.jr-mini-links a:hover { color: var(--accent-dark); }
.jr-submit-card { border-top: 3px solid var(--accent); }
.jr-submit-card.is-open .jr-card-title::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 0.5rem; border-radius: 50%; background: #2F8A57; vertical-align: 1px; }

.jr-facts dl { margin: 0; }
.jr-facts dl > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.75rem; padding: 0.55rem 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.jr-facts dl > div:first-child { border-top: 0; padding-top: 0; }
.jr-facts dt { color: var(--muted); }
.jr-facts dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.jr-facts a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }

/* -------------------------------------------------------------- Empty */

.jr-empty { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem; padding: 1.5rem; background: var(--mist); border: 1px dashed #CFC6DC; }
.jr-empty-mark { display: grid; place-items: center; width: 44px; height: 44px; color: var(--accent-dark); background: var(--paper); border: 1px solid var(--line); border-radius: 50%; }
.jr-empty-mark .jr-icon { width: 20px; height: 20px; }
.jr-empty h2, .jr-empty h3 { margin: 0 0 0.35rem; font-family: var(--font-serif); font-size: 1.35rem; font-weight: 500; letter-spacing: -0.005em; }
.jr-empty p { margin: 0 0 0.6rem; color: var(--muted); }
.jr-empty-actions { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin: 0.5rem 0 0 !important; }

/* ------------------------------------------------- Tables of contents */

.jr-toc { margin: 0; padding: 0; list-style: none; }
.jr-toc-item { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.jr-toc-item:first-child { border-top: 0; padding-top: 0.25rem; }
.jr-toc-type { margin: 0 0 0.3rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-dark); }
.jr-toc-issue { margin-left: 0.5rem; color: var(--muted); font-weight: 500; letter-spacing: 0.04em; }
.jr-toc-title { margin: 0 0 0.3rem; font-family: var(--font-serif); font-optical-sizing: auto; font-size: 1.32rem; font-weight: 500; line-height: 1.22; letter-spacing: -0.005em; }
.jr-toc-title a { color: var(--ink); }
.jr-toc-title a:hover { color: var(--accent-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.jr-toc-authors { margin: 0 0 0.35rem; font-size: 0.95rem; color: #3B3848; }
.jr-toc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; margin: 0; font-size: 0.84rem; color: var(--muted); }
.jr-toc-meta a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; overflow-wrap: anywhere; }
.jr-toc-meta a:hover { color: var(--accent-dark); }
.jr-toc-pdf { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.1rem 0.5rem; font-weight: 600; color: var(--accent-dark) !important; text-decoration: none !important; border: 1px solid var(--accent-soft); border-radius: 99px; }
.jr-toc-group + .jr-toc-group { margin-top: 1.75rem; }
.jr-toc-group-title { margin: 0 0 0.5rem; padding-bottom: 0.4rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); }

/* ------------------------------------------------------------- Covers */

.jr-cover { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--mist); box-shadow: 0 1px 2px rgba(42, 27, 69, 0.12), 0 8px 24px -12px rgba(42, 27, 69, 0.35); }
.jr-cover-sm { width: 92px; }
.jr-cover-md { width: 150px; }
.jr-cover-lg { width: 190px; }
.jr-cover-blank {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 12% 11%;
  background: linear-gradient(170deg, var(--ink) 0%, var(--ink-2) 70%, var(--accent-dark) 100%); color: #fff; overflow: hidden;
}
.jr-cover-blank::before { content: ""; position: absolute; left: 11%; right: 11%; top: 48%; height: 1px; background: rgba(255, 255, 255, 0.25); }
.jr-cover-name { font-family: var(--font-serif); font-size: 0.86em; line-height: 1.15; }
.jr-cover-vol { font-family: var(--font-serif); font-size: 1.05em; line-height: 1.15; font-style: italic; }
.jr-cover-year { font-size: 0.62em; letter-spacing: 0.14em; color: var(--on-ink); }
.jr-cover-sm.jr-cover-blank { font-size: 0.62rem; }
.jr-cover-md.jr-cover-blank { font-size: 0.95rem; }
.jr-cover-lg.jr-cover-blank { font-size: 1.15rem; }

.jr-issue-feature { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.4rem; align-items: start; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.jr-issue-label { margin: 0 0 0.25rem; font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.2; }
.jr-issue-label a { color: var(--ink); }
.jr-issue-title { margin: 0 0 0.25rem; font-weight: 600; color: var(--ink); }
.jr-issue-date { margin: 0 0 0.5rem; font-size: 0.9rem; color: var(--muted); }
.jr-issue-note { margin: 0; font-size: 0.95rem; color: #3B3848; }
@media (max-width: 520px) {
  .jr-issue-feature { grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; }
  .jr-issue-feature .jr-cover-md { width: 96px; font-size: 0.62rem; }
}

/* ------------------------------------------------------- Call for papers */

.jr-cfp { position: relative; }
.jr-main > .jr-cfp { margin-left: calc(-1 * clamp(1.25rem, 3vw, 2.5rem)); margin-right: calc(-1 * clamp(1.25rem, 3vw, 2.5rem)); padding-left: clamp(1.25rem, 3vw, 2.5rem); padding-right: clamp(1.25rem, 3vw, 2.5rem); padding-bottom: 2rem; background: linear-gradient(180deg, #F7F4FB 0%, var(--paper) 100%); border-top: 3px solid var(--accent) !important; }
.jr-cfp-head { margin-bottom: 0.25rem; }
.jr-cfp .jr-h2 { margin-bottom: 0.5rem; }
.jr-cfp-deadline { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 0 1rem; padding: 0.35rem 0.75rem; font-size: 0.9rem; color: var(--ink); background: var(--paper); border: 1px solid var(--accent-soft); border-radius: 99px; }
.jr-cfp-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0 0; }

/* -------------------------------------------------------- Announcements */

.jr-news { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.jr-news-item { padding: 1rem 0; border-top: 1px solid var(--line); }
.jr-news-item:first-child { border-top: 0; padding-top: 0; }
.jr-news-date { display: block; margin-bottom: 0.2rem; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.jr-news-title { margin: 0 0 0.35rem; font-family: var(--font-serif); font-size: 1.25rem; font-weight: 500; letter-spacing: -0.005em; }
.jr-news-title a { color: var(--ink); }
.jr-news-title a:hover { color: var(--accent-dark); }
.jr-news-text { margin: 0; font-size: 0.95rem; color: #3B3848; }
.jr-news-full { padding: clamp(1.25rem, 3vw, 2.5rem); background: var(--paper); border: 1px solid var(--line); }
.jr-news-full .jr-news-item { padding: 1.5rem 0; }
.jr-news-full .jr-news-item:first-child { padding-top: 0; }

/* ------------------------------------------------------------- Board */

.jr-board-group + .jr-board-group { margin-top: 1.5rem; }
.jr-board-role { margin: 0 0 0.75rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.jr-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 0.9rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.jr-person { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0.85rem; align-items: center; }
.jr-person-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--mist); }
.jr-person-initials { display: grid; place-items: center; font-size: 0.95rem; font-weight: 600; color: var(--accent-dark); border: 1px solid var(--line); }
.jr-person-text { display: grid; gap: 0.1rem; min-width: 0; }
.jr-person-name { font-family: var(--font-serif); font-size: 1.12rem; font-weight: 500; line-height: 1.2; color: var(--ink); }
.jr-person-name a { color: inherit; }
.jr-person-name a:hover { color: var(--accent-dark); }
.jr-person-aff { font-size: 0.86rem; line-height: 1.35; color: var(--muted); }
.jr-person.is-compact { grid-template-columns: 44px minmax(0, 1fr); }
.jr-person.is-compact .jr-person-photo { width: 44px; height: 44px; }
.jr-board-page { padding-top: 2rem; }
.jr-board-page > .jr-board-group { padding: clamp(1.25rem, 3vw, 2rem); background: var(--paper); border: 1px solid var(--line); }
.jr-board-page > .jr-board-group + .jr-board-group { margin-top: 1rem; }

.jr-indexing { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.jr-indexing li { padding: 0.45rem 0.85rem; font-size: 0.92rem; background: var(--mist); border: 1px solid var(--line); }
.jr-indexing a { color: var(--ink); }

/* ----------------------------------------------------------- Policies */

.jr-policy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.jr-policy-card { display: grid; gap: 0.3rem; height: 100%; padding: 1.25rem 1.35rem; background: var(--paper); border: 1px solid var(--line); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.jr-policy-card:hover { border-color: var(--accent-soft); box-shadow: 0 10px 24px -18px rgba(42, 27, 69, 0.5); }
.jr-policy-num { font-family: var(--font-serif); font-style: italic; font-size: 0.95rem; color: var(--accent); }
.jr-policy-name { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 500; line-height: 1.2; color: var(--ink); }
.jr-policy-sum { font-size: 0.92rem; line-height: 1.5; color: var(--muted); }

.jr-policy-layout {
  display: grid; grid-template-columns: 260px minmax(0, 1fr); grid-template-areas: "nav body"; gap: 2rem; align-items: start;
  padding-top: 2rem; padding-bottom: 4rem;
}
.jr-policy-body { grid-area: body; min-width: 0; padding: clamp(1.25rem, 3.5vw, 3rem); background: var(--paper); border: 1px solid var(--line); }
.jr-policy-body .jr-prose-serif { max-width: 68ch; }
.jr-side-nav { grid-area: nav; position: sticky; top: calc(var(--header-h) + 1rem); display: grid; gap: 1rem; }
.jr-side-title { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.jr-side-title a { color: var(--muted); }
.jr-side-nav ul { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.jr-side-nav li a { display: block; margin-left: -1px; padding: 0.4rem 0 0.4rem 1rem; font-size: 0.92rem; line-height: 1.35; color: #3B3848; border-left: 2px solid transparent; }
.jr-side-nav li a:hover { color: var(--ink); border-left-color: var(--line-dark); }
.jr-side-nav li a[aria-current="page"] { color: var(--ink); font-weight: 600; border-left-color: var(--accent); }
@media (max-width: 900px) {
  .jr-policy-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "body" "nav"; gap: 1.25rem; padding-top: 1.25rem; }
  .jr-side-nav { position: static; padding: 1.25rem; background: var(--paper); border: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .jr-policy-body { margin-left: calc(-1 * var(--s-2)); margin-right: calc(-1 * var(--s-2)); border-left: 0; border-right: 0; }
}

.jr-template { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; margin-bottom: 2rem; padding: 1rem 1.25rem; background: var(--mist); border: 1px solid var(--line); }
.jr-template-icon { display: grid; place-items: center; width: 40px; height: 40px; color: var(--accent-dark); background: var(--paper); border-radius: 50%; }
.jr-template strong { display: block; color: var(--ink); }
.jr-template span { font-size: 0.86rem; color: var(--muted); }
@media (max-width: 520px) { .jr-template { grid-template-columns: auto minmax(0, 1fr); } .jr-template .btn { grid-column: 1 / -1; justify-content: center; } }

.jr-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.jr-pager a { display: grid; gap: 0.15rem; font-family: var(--font-serif); font-size: 1.1rem; line-height: 1.25; color: var(--ink); }
.jr-pager a span { font-family: var(--font); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.jr-pager a:hover { color: var(--accent-dark); }
.jr-pager-next { text-align: right; }

/* ------------------------------------------------------------ Archive */

.jr-search { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 0.8fr) minmax(0, 1.2fr) auto; gap: 0.9rem; align-items: end; margin: 2rem 0 2rem; padding: 1.25rem; background: var(--paper); border: 1px solid var(--line); }
.jr-search-field label { display: block; margin-bottom: 0.35rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.jr-search input, .jr-search select { width: 100%; padding: 0.68em 0.8em; font: 0.98rem var(--font); color: var(--text); background: var(--paper); border: 1px solid #D6D0DF; border-radius: var(--radius); }
.jr-search input:focus, .jr-search select:focus { border-color: var(--accent); outline: 2px solid rgba(110, 66, 166, 0.2); outline-offset: 0; }
.jr-search-actions { display: flex; align-items: center; gap: 1rem; }
.jr-search-actions .btn { padding: 0.72em 1.2em; }
@media (max-width: 860px) {
  .jr-search { grid-template-columns: 1fr 1fr; }
  .jr-search-q, .jr-search-actions { grid-column: 1 / -1; }
}
@media (max-width: 460px) { .jr-search { grid-template-columns: minmax(0, 1fr); } }

.jr-results { margin-bottom: 2.5rem; padding: clamp(1.25rem, 3vw, 2rem); background: var(--paper); border: 1px solid var(--line); }
.jr-volume { margin-bottom: 2rem; }
.jr-volume-year { color: var(--muted); font-weight: 400; }
.jr-issue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.jr-issue-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 1.1rem; align-items: center; height: 100%; padding: 1rem; background: var(--paper); border: 1px solid var(--line); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.jr-issue-card:hover { border-color: var(--accent-soft); box-shadow: 0 10px 24px -18px rgba(42, 27, 69, 0.5); }
.jr-issue-card-text { display: grid; gap: 0.2rem; }
.jr-issue-card-label { font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.15; color: var(--ink); }
.jr-issue-card-title { font-weight: 600; font-size: 0.95rem; line-height: 1.3; color: var(--ink); }
.jr-issue-card-meta { font-size: 0.86rem; color: var(--muted); }

/* -------------------------------------------------------------- Issue */

.jr-issue-head-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2rem; align-items: end; }
.jr-issue-head .jr-issue-date { margin-top: 0.75rem; }
@media (max-width: 640px) {
  .jr-issue-head-inner { grid-template-columns: 100px minmax(0, 1fr); gap: 1rem; align-items: start; }
  .jr-issue-head .jr-cover-lg { width: 100px; font-size: 0.66rem; }
  .jr-issue-head .jr-title { font-size: 1.7rem; }
}

/* ------------------------------------------------------------ Article */

.jr-article-head { padding: clamp(1.8rem, 4vw, 3rem) 0 clamp(1.6rem, 3vw, 2.4rem); background: var(--paper); border-bottom: 1px solid var(--line); }
.jr-article-title {
  max-width: 32ch; margin: 0 0 1.1rem; font-family: var(--font-serif); font-optical-sizing: auto;
  font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.015em; color: var(--ink);
}
.jr-authors { display: flex; flex-wrap: wrap; gap: 0.2rem 0; margin: 0 0 0.6rem; padding: 0; list-style: none; font-size: 1.08rem; color: var(--ink); }
.jr-authors li:not(:last-child)::after { content: ","; margin-right: 0.45rem; }
.jr-authors li:nth-last-child(2)::after { content: " and"; margin-right: 0.35rem; }
.jr-author-name { font-weight: 600; }
.jr-authors sup { margin-left: 1px; font-size: 0.68em; color: var(--accent-dark); }
.jr-orcid { display: inline-flex; vertical-align: -2px; }
.jr-affs { margin: 0 0 0.4rem; padding: 0; list-style: none; counter-reset: aff; font-size: 0.9rem; color: var(--muted); }
.jr-affs li { counter-increment: aff; }
.jr-affs li::before { content: counter(aff); display: inline-block; min-width: 1rem; font-size: 0.75em; vertical-align: super; color: var(--accent-dark); }
.jr-affs.is-single li::before { content: none; }
.jr-corr-note { margin: 0 0 0.2rem; font-size: 0.86rem; color: var(--muted); }
.jr-corr-note a { color: var(--accent-dark); }
.jr-article-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 1.4rem; }
.jr-btn-note { font-weight: 400; opacity: 0.8; }
.jr-doi { font-size: 0.9rem; color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }

.jr-abstract .jr-prose-serif { font-size: 1.22rem; }
.jr-label { margin: 0 0 0.5rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.jr-keywords { padding-top: 1.25rem; }
.jr-keywords ul { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.jr-keywords a { display: inline-block; padding: 0.3rem 0.75rem; font-size: 0.88rem; color: var(--ink); background: var(--mist); border: 1px solid var(--line); border-radius: 99px; }
.jr-keywords a:hover { border-color: var(--accent-soft); color: var(--accent-dark); }
.jr-refs ol { margin: 0; padding-left: 1.6em; font-size: 0.94rem; line-height: 1.55; color: #3B3848; }
.jr-refs li { margin-bottom: 0.55rem; padding-left: 0.25rem; overflow-wrap: anywhere; }
.jr-refs li::marker { color: var(--muted); font-size: 0.9em; }
.jr-refs a { color: var(--accent-dark); }
.jr-licence { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.jr-licence p { display: flex; gap: 0.6rem; margin: 0; font-size: 0.88rem; color: var(--muted); }
.jr-licence a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.jr-article-info dl { margin: 0; }
.jr-article-info dl > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.75rem; padding: 0.5rem 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.jr-article-info dl > div:first-child { border-top: 0; padding-top: 0; }
.jr-article-info dt { color: var(--muted); }
.jr-article-info dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.jr-article-info a { color: var(--accent-dark); }

/* Cite box */
.jr-cite { margin-top: 2rem; padding: 1.4rem; background: var(--mist); border: 1px solid var(--line); }
.jr-cite-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1rem; }
.jr-cite-head .jr-h2 { margin-bottom: 0.75rem; }
.jr-cite-files { margin: 0; font-size: 0.86rem; color: var(--muted); }
.jr-cite-files a { margin-left: 0.5rem; color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.jr-tablist { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-bottom: 0.75rem; border-bottom: 1px solid var(--line); }
.jr-tablist button { padding: 0.5rem 0.8rem; font: 600 0.84rem var(--font); color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; }
.jr-tablist button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.jr-cite-panel { position: relative; padding: 1rem 1rem 3rem; background: var(--paper); border: 1px solid var(--line); }
.jr-cite-panel + .jr-cite-panel { margin-top: 0.75rem; }
.jr-js .jr-cite-panel + .jr-cite-panel { margin-top: 0; }
.jr-cite-label { margin: 0 0 0.5rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.jr-js .jr-cite-label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.jr-cite-text { margin: 0; font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.55; overflow-wrap: anywhere; }
.jr-cite-code { margin: 0; overflow-x: auto; font-size: 0.8rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.jr-copy { position: absolute; right: 0.75rem; bottom: 0.75rem; padding: 0.35rem 0.8rem; font: 600 0.8rem var(--font); color: var(--accent-dark); background: var(--paper); border: 1px solid var(--accent-soft); border-radius: var(--radius); cursor: pointer; }
.jr-copy:hover { background: var(--mist); }

.jr-share { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.jr-share a, .jr-share button {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.7rem; font: 500 0.84rem var(--font); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 99px; cursor: pointer;
}
.jr-share a:hover, .jr-share button:hover { border-color: var(--accent-soft); color: var(--accent-dark); }

/* ------------------------------------------------------------- Submit */

.jr-optional { margin-left: 0.4rem; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em; text-transform: lowercase; color: var(--muted); }
.jr-form { display: grid; gap: 1.5rem; }
.jr-step { margin: 0; padding: 0 0 1.75rem; border: 0; border-bottom: 1px solid var(--line); min-width: 0; }
.jr-step:last-child { border-bottom: 0; padding-bottom: 0; }
.jr-step legend { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.1rem; padding: 0; font-family: var(--font-serif); font-size: 1.45rem; font-weight: 500; color: var(--ink); }
.jr-step-num { display: grid; place-items: center; width: 2rem; height: 2rem; font-family: var(--font); font-size: 0.9rem; font-weight: 700; color: #fff; background: var(--ink); border-radius: 50%; }
.jr-field { margin-bottom: 1.1rem; }
.jr-field label { display: block; margin-bottom: 0.35rem; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.jr-field input[type=text], .jr-field input[type=email], .jr-field select, .jr-field textarea {
  width: 100%; padding: 0.68em 0.8em; font: 1rem var(--font); color: var(--text); background: var(--paper);
  border: 1px solid #D6D0DF; border-radius: var(--radius);
}
.jr-field textarea { resize: vertical; line-height: 1.55; }
.jr-field input:focus, .jr-field select:focus, .jr-field textarea:focus { border-color: var(--accent); outline: 2px solid rgba(110, 66, 166, 0.2); outline-offset: 0; }
.jr-form [aria-invalid="true"] { border-color: var(--danger) !important; }
.jr-field input[type=file] { width: 100%; padding: 0.9rem; font: 0.92rem var(--font); background: var(--mist); border: 1px dashed #C9BFD8; border-radius: var(--radius); }
.jr-hint { margin: 0.35rem 0 0; font-size: 0.85rem; line-height: 1.45; color: var(--muted); }
.jr-hint a { color: var(--accent-dark); text-decoration: underline; }
.jr-step > .jr-hint { margin: -0.4rem 0 1rem; }
.jr-count { margin: 0.25rem 0 0; font-size: 0.82rem; color: var(--muted); }
.jr-count.is-bad { color: var(--danger); }
.jr-count.is-good { color: #2F6B47; }
.jr-author-rows { display: grid; gap: 1rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.jr-author-row { padding: 1rem 1.1rem 0.4rem; background: var(--mist); border: 1px solid var(--line); }
.jr-author-row-title { margin: 0 0 0.6rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.jr-author-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.jr-author-grid .jr-field { margin-bottom: 0.75rem; }
@media (max-width: 600px) { .jr-author-grid { grid-template-columns: minmax(0, 1fr); } }
.jr-check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.65rem; align-items: start; margin-bottom: 0.75rem; }
.jr-check input { width: 1.1rem; height: 1.1rem; margin: 0.2rem 0 0; accent-color: var(--accent); }
.jr-check label { font-size: 0.95rem; line-height: 1.5; }
.jr-checks { margin-bottom: 1rem; }
.jr-corr-choice label { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.jr-send { margin-top: 0.5rem; padding: 1rem 1.7rem; font-size: 1rem; }
.jr-add-author { padding: 0.6rem 1rem; }
.jr-checklist { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; font-size: 0.92rem; }
.jr-checklist li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.55rem; }
.jr-checklist .jr-icon { margin-top: 0.25rem; color: #2F6B47; }
.jr-checklist a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.jr-error-summary { margin-bottom: 1.5rem; padding: 1rem 1.25rem; background: #F7E9E9; border: 1px solid var(--danger); border-left-width: 4px; }
.jr-error-summary h2 { margin: 0 0 0.5rem; font-size: 1.05rem; color: var(--danger); }
.jr-error-summary ul { margin: 0; padding-left: 1.2rem; font-size: 0.92rem; }
.jr-error-summary a { color: var(--danger); text-decoration: underline; }
.jr-confirm { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; margin-bottom: 2rem; padding: 1.25rem 1.4rem; background: #EEF6F1; border: 1px solid #BFDCCB; border-left: 4px solid #2F6B47; }
.jr-confirm:focus { outline: 2px solid #2F6B47; outline-offset: 2px; }
.jr-confirm-icon { display: grid; place-items: center; width: 40px; height: 40px; color: #fff; background: #2F6B47; border-radius: 50%; }
.jr-confirm h2 { margin: 0 0 0.35rem; font-family: var(--font-serif); font-size: 1.4rem; font-weight: 500; }
.jr-confirm p { margin: 0 0 0.6rem; }
.jr-confirm p:last-child { margin-bottom: 0; }
.jr-closed { padding: 0.25rem 0; }

/* ------------------------------------------------------------- Status */

.jr-status-card { margin-top: 2rem; padding: clamp(1.25rem, 3vw, 2rem); background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.jr-status-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin: 0 0 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.jr-status-meta dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.jr-status-meta dd { margin: 0.15rem 0 0; color: var(--ink); overflow-wrap: anywhere; }
.jr-pill { display: inline-block; padding: 0.15rem 0.7rem; font-family: var(--font); font-size: 0.85rem; font-weight: 600; vertical-align: 0.2em; color: var(--accent-dark); background: #EFE9F7; border-radius: 99px; }
.jr-pill.is-accepted, .jr-pill.is-published, .jr-pill.is-production { color: #2F6B47; background: #EAF4EE; }
.jr-pill.is-revisions { color: #8A5A00; background: #FFF4DE; }
.jr-pill.is-rejected { color: var(--danger); background: #F8ECEC; }
.jr-pill.is-withdrawn { color: var(--muted); background: #F1EFF4; }
.jr-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 0.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; counter-reset: st; }
.jr-steps li { position: relative; display: grid; gap: 0.4rem; padding-top: 0.2rem; font-size: 0.82rem; line-height: 1.3; color: var(--muted); }
.jr-step-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #CFC6DC; background: var(--paper); }
.jr-steps li.is-done { color: var(--ink); }
.jr-steps li.is-done .jr-step-dot { border-color: var(--accent); background: var(--accent); }
.jr-steps li.is-now { color: var(--ink); font-weight: 700; }
.jr-steps li.is-now .jr-step-dot { border-color: var(--accent); box-shadow: 0 0 0 4px #EFE9F7; }
.jr-letters { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.jr-letter { padding: 1.25rem 1.4rem; background: var(--paper); border: 1px solid var(--line); }
.jr-letter-meta { margin: 0 0 0.25rem; font-size: 0.8rem; color: var(--muted); }
.jr-letter-subject { margin: 0 0 0.75rem; font-size: 1.05rem; }
.jr-status-foot { margin-top: 2rem; font-size: 0.9rem; }
.jr-status-foot a { color: var(--accent-dark); }

/* ==========================================================================
   Admin (.jrx-*), on top of admin.css
   ========================================================================== */

.jrx-subnav { margin: 0 0 18px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.jrx-subnav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.jrx-subnav a { display: block; padding: 10px 12px; font-size: 0.88rem; font-weight: 500; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.jrx-subnav a:hover { color: var(--ink); }
.jrx-subnav a[aria-current="page"] { color: var(--ink); font-weight: 650; border-bottom-color: var(--accent); }
.jrx-tabs ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.jrx-tabs a { display: block; padding: 7px 14px; font-size: 0.86rem; color: var(--text); text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; }
.jrx-tabs a[aria-current="page"] { color: #fff; background: var(--ink); border-color: var(--ink); }
.jrx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.jrx-stats a { display: grid; gap: 2px; padding: 14px 16px; text-decoration: none; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.jrx-stats strong { font-size: 1.5rem; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.jrx-stats span { font-size: 0.82rem; }
@media (max-width: 760px) { .jrx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.jrx-form .field textarea { min-height: 0; }
.jrx-flag { display: inline-block; margin-left: 6px; padding: 1px 8px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.03em; vertical-align: 1px; color: var(--accent-dark); background: var(--accent-soft); border-radius: 99px; }
.jrx-flag.is-warn { color: #8A5A00; background: #FFF4DE; }
.jrx-flag.is-error { color: var(--danger); background: var(--danger-soft); }
.jrx-error { margin: 6px 0 0; font-size: 0.85rem; color: var(--danger); }
.jrx-file-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.9rem; }
.jrx-file-kind { display: inline-grid; place-items: center; min-width: 42px; height: 24px; padding: 0 6px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; color: #fff; background: var(--ink); border-radius: 4px; }
.jrx-standard summary { cursor: pointer; font-weight: 600; }
.jrx-standard pre { margin: 12px 0 0; max-height: 420px; overflow: auto; font-size: 0.82rem; white-space: pre-wrap; }
.jrx-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jrx-list { margin: 0; padding-left: 20px; }
.jrx-list li { margin-bottom: 6px; }
.jrx-filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; margin-bottom: 18px; }
.jrx-filters .field { flex: 1 1 200px; margin: 0; }
.jrx-filter-actions { display: flex; align-items: center; gap: 12px; }
.jrx-narrow-input { width: 90px; }

.jrx-pipeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 0 20px; padding: 0; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.jrx-pipeline li { border-left: 1px solid var(--line); border-top: 1px solid var(--line); margin: -1px 0 0 -1px; }
.jrx-stage { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 10px 14px; text-decoration: none; color: var(--text); border-top: 3px solid transparent; }
.jrx-stage:hover { background: var(--mist); color: var(--text); }
.jrx-stage.is-current { background: var(--accent-soft); border-top-color: var(--accent); }
.jrx-stage-num { font-size: 1.35rem; font-weight: 700; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.jrx-stage-label { font-size: 0.78rem; color: var(--muted); }
.jrx-stage.is-accepted .jrx-stage-num, .jrx-stage.is-published .jrx-stage-num { color: var(--success); }
.jrx-stage.is-rejected .jrx-stage-num { color: var(--danger); }
@media (max-width: 900px) { .jrx-pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.jrx-pill { display: inline-block; padding: 2px 9px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em; white-space: nowrap; color: var(--accent-dark); background: var(--accent-soft); border: 1px solid #DCD0EC; border-radius: 99px; }
.jrx-pill.is-desk_review, .jrx-pill.is-under_review { color: #1F5A8A; background: #E7F1FA; border-color: #C6DDF0; }
.jrx-pill.is-revisions, .jrx-pill.is-revised { color: #8A5A00; background: #FFF4DE; border-color: #F1DDB0; }
.jrx-pill.is-accepted, .jrx-pill.is-production, .jrx-pill.is-published { color: var(--success); background: var(--success-soft); border-color: #CDE3D5; }
.jrx-pill.is-rejected { color: var(--danger); background: var(--danger-soft); border-color: #EBCFCF; }
.jrx-pill.is-withdrawn { color: var(--muted); background: #F1EFF4; border-color: var(--line); }

.jrx-app { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.jrx-app-main .card, .jrx-app-side .card { margin-bottom: 20px; }
.jrx-app-main .meta-list { grid-template-columns: max-content minmax(0, 1fr); }
@media (max-width: 1100px) { .jrx-app { grid-template-columns: minmax(0, 1fr); } }
.jrx-h3 { margin: 18px 0 8px; font-size: 0.95rem; }
.jrx-words { font-size: 0.78rem; font-weight: 400; }
.jrx-files { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.jrx-files li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.jrx-file { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 12px; text-decoration: none; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); flex: 1; }
.jrx-file:hover { border-color: var(--accent); }
.jrx-file > span:last-child { display: grid; min-width: 0; }
.jrx-file .muted { font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jrx-upload { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; padding-top: 14px; border-top: 1px solid var(--line); }
.jrx-upload .field { margin: 0; }
.jrx-upload .field:nth-of-type(3) { grid-column: 1 / -1; }
.jrx-upload .btn { justify-self: start; }
@media (max-width: 640px) { .jrx-upload { grid-template-columns: minmax(0, 1fr); } }
.form-section-title label { margin: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.jrx-reviewers { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.jrx-reviewer { border: 1px solid var(--line); border-radius: var(--radius); }
.jrx-reviewer summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; cursor: pointer; }
.jrx-reviewer-form { padding: 4px 14px 14px; border-top: 1px solid var(--line); }
.jrx-rev-status { padding: 1px 8px; font-size: 0.72rem; font-weight: 600; color: var(--accent-dark); background: var(--accent-soft); border-radius: 99px; }
.jrx-rev-status.is-report { color: var(--success); background: var(--success-soft); }
.jrx-rev-status.is-declined { color: var(--muted); background: #F1EFF4; }
.jrx-rev-rec { font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.jrx-row-actions { display: flex; align-items: center; gap: 14px; }
.jrx-reviewer-add { padding-top: 6px; border-top: 1px solid var(--line); }
.jrx-letters { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.jrx-letters details { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.jrx-letters summary { cursor: pointer; }
.jrx-letter-body { margin: 10px 0; font-size: 0.9rem; }
.jrx-notify { display: none; }
.jrx-notify.is-open, .jrx-status-card:not([data-js]) .jrx-notify { display: block; }
.jrx-link-box { margin: 0; padding: 8px 10px; font-size: 0.8rem; word-break: break-all; background: var(--mist); border-radius: 6px; }
.jrx-log { margin: 0; padding: 0; list-style: none; }
.jrx-log li { position: relative; margin-left: 4px; padding: 0 0 12px 18px; font-size: 0.86rem; border-left: 2px solid var(--line); }
.jrx-log li::before { content: ""; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); }
.jrx-log li:last-child { padding-bottom: 0; }
.jrx-log time { display: block; font-size: 0.76rem; color: var(--muted); }
