/* ==========================================================================
   Theme layer "Library" — a publisher-platform look in the manner of Wiley Online Library:
   white ground, navy chrome, blue links, sans-serif interface, quiet cards with 1 px borders,
   headings in a sturdy sans. Loaded last, so it overrides the offprint tokens without touching them.
   ========================================================================== */
:root, :root[data-bg="white"] {
  --paper: #ffffff;
  --paper-deep: #f3f5f8;
  --sheet: #ffffff;
  --panel: #f5f7fa;
  --ink: #1f2933;
  --ink-soft: #3e4c59;
  --muted: #667380;
  --rule: #dfe4ea;
  --rule-strong: #b9c2cc;
  --ballpoint: #1b5aab;        /* link and accent blue */
  --ballpoint-soft: rgba(27, 90, 171, .10);
  --navy: #0f2f5f;             /* chrome */
  --navy-deep: #0a2247;
  --scrub: #1b5aab;            /* primary actions now blue */
  --scrub-deep: #144a8f;
  --scrub-pale: #e6eef8;
  --stamp: #b42318;
  --ok: #1e7f4f;
  --amber: #b7791f;
  --display: 'Open Sans', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --text: 'Open Sans', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --serif: 'Literata', 'Iowan Old Style', Georgia, serif;
  --mono: 'IBM Plex Mono', Consolas, monospace;
  --shadow-sheet: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
}
body { font: 400 15.5px/1.6 var(--text); background: #fff; }
body::before { display: none; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; font-variation-settings: normal; }
h1 { font-size: clamp(30px, 3.6vw, 44px); }
h2 { font-size: clamp(22px, 2.4vw, 30px); }
h3 { font-size: 20px; }
h1 i, h2 i, h3 i { font-style: normal; font-variation-settings: normal; color: var(--ballpoint); }
h1 i::after, .underline::after { display: none !important; }
a { color: var(--ballpoint); text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
.label, .eyebrow, .art-figure__label, .footer__label, .nav-group { font-family: var(--text); letter-spacing: .08em; }
.field-note { font-family: var(--text); font-size: 12.5px; }

/* Chrome: navy notice band, white masthead with a navy rule. */
.notice { background: var(--navy); color: rgba(255, 255, 255, .85); border-bottom: 0; font-family: var(--text); letter-spacing: .06em; font-size: 11.5px; line-height: 2.8; text-transform: none; }
.notice i { background: #7fd1a0; }
.masthead { background: rgba(255, 255, 255, .97); }
.masthead::after { height: 3px; border: 0; background: var(--navy); }
.masthead__inner { height: 70px; }
.wordmark { font-family: 'Fraunces', Georgia, serif; }
.nav a { font: 600 13.5px/1 var(--text); font-variant-caps: normal; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-soft); }
.nav a::after { background: var(--ballpoint); }
.nav__submit { background: var(--ballpoint); color: #fff !important; border-radius: 3px; }
.nav__submit:hover { background: var(--scrub-deep); }
.nav__account { color: var(--navy) !important; }

/* Actions and controls. */
.button, .text-action { font: 600 14px/1 var(--text); }
.button { padding: 12px 20px; border-radius: 3px; box-shadow: none; background: var(--ballpoint); color: #fff; }
.button:hover { background: var(--scrub-deep); transform: none; }
.button--ghost, .button--pale { background: #fff; color: var(--ballpoint); border: 1px solid var(--ballpoint); }
.button--ghost:hover, .button--pale:hover { background: var(--scrub-pale); color: var(--navy); }
.text-action { color: var(--ballpoint); }
.form input, .form select, .form textarea, .subscribe-form input, .search-box input, input[type="search"] { border: 1px solid var(--rule-strong); border-radius: 3px; padding: 9px 12px; background: #fff; font-family: var(--text); font-size: 15px; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--ballpoint); box-shadow: 0 0 0 3px var(--ballpoint-soft); outline: 0; }
.form label, .form legend { font-family: var(--text); }
.form label > span:first-child, .form label { letter-spacing: 0; text-transform: none; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.status-chip, .stamp { font-family: var(--text); font-weight: 600; letter-spacing: .04em; border-radius: 3px; }
.tabs a, .art-tabs a { font-family: var(--text); font-weight: 600; }

/* Surfaces. */
.sheet, .metric-grid article, .desk-list, .activity-panel, .timeline-panel, .empty-panel, .operations-aside, .preflight, .editorial-kanban article, .review-form, .decision-form, .board-card, .glance, .issue-card, .fig-card, .ai-card { background: #fff; border: 1px solid var(--rule); border-radius: 4px; box-shadow: var(--shadow-sheet); }
.metric-grid article strong, .stat-row article strong { font-family: var(--display); font-weight: 600; }
.table-list, .table-row { border-color: var(--rule); }
.table-row:hover { background: var(--panel); }
.kv div { font-family: var(--text); }
.kv dt { font-family: var(--text); letter-spacing: .04em; font-size: 11.5px; }
.footer { background: var(--navy); color: rgba(255, 255, 255, .85); }
.footer a { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .15); font-family: var(--text); text-transform: none; letter-spacing: 0; }
.section--rule { border-top: 1px solid var(--rule); }
.section-heading { border-bottom: 2px solid var(--navy); padding-bottom: 10px; }
.section-heading .eyebrow { color: var(--ballpoint); }
.workspace-nav { border-bottom: 1px solid var(--rule); background: var(--panel); padding: 4px 10px; border-radius: 4px; }
.workspace-nav a { font-weight: 500; color: var(--ink-soft); }
.workspace-nav a.is-active { color: var(--navy); font-weight: 600; border-bottom-color: var(--ballpoint); }
.workspace-nav .nav-group { color: var(--muted); }
.workspace__header { border-bottom: 1px solid var(--rule); }
.marginalia, .hero__note { display: none; }
.letter__sign .marginalia { display: inline; font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--navy); }
.letter__sign .marginalia svg { display: none; }

/* Reading surfaces keep a serif for the text of articles, as Wiley does. */
.art .article-body, .art .article-body p, .art-abstract p, .prose p, .prose li, .letter__sheet p, .dropcap { font-family: var(--serif); }
.art .article-header h1 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.2; }
.art .art-authors { font-family: var(--text); font-size: 15px; }
.art .art-authors a, .art .art-authors span[data-aff] { color: var(--ballpoint); }
.art .article-body h2 { font-family: var(--display); font-weight: 600; font-size: 22px; border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
.art .article-body h3 { font-family: var(--display); font-weight: 600; font-size: 17px; }
.art-figure { border: 1px solid var(--rule); border-radius: 4px; background: #fff; }
.art-figure__plate { background: #fff; }
.art-toc a.is-active { color: var(--ballpoint); border-left-color: var(--ballpoint); }
.cite-box { background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; }

/* The journal banner on the home page. */
.jbanner { background: linear-gradient(120deg, var(--navy-deep), var(--navy) 55%, #17417f); color: #fff; padding: 36px 0 34px; }
.jbanner__grid { display: grid; grid-template-columns: 168px minmax(0, 1fr) 300px; gap: 36px; align-items: center; }
.jbanner .cover { box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6); aspect-ratio: 3 / 4; }
.jbanner__copy .label { color: rgba(255, 255, 255, .7); }
.jbanner__copy h1 { color: #fff; margin: 8px 0 12px; font-size: clamp(34px, 4vw, 52px); }
.jbanner__copy h1 i { color: #9ec5ff; }
.jbanner__copy p.lead { max-width: 60ch; color: rgba(255, 255, 255, .88); font-size: 17px; margin: 0 0 18px; }
.jbanner__copy .button { background: #fff; color: var(--navy); }
.jbanner__copy .button:hover { background: #e6eef8; }
.jbanner__copy .text-action { color: #fff; }
.jbanner__facts { display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .25); }
.jbanner__facts div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .15); font-size: 13.5px; }
.jbanner__facts dt { color: rgba(255, 255, 255, .65); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
.jbanner__facts dd { margin: 0; color: #fff; }
.jbanner__facts a { color: #cfe1ff; }
.jbanner__editors { display: flex; align-items: center; gap: 10px; }
.jbanner__editors img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .7); }
.jbanner__editors img + img { margin-left: -12px; }
.hero { padding: 0; }
.contents-band { background: var(--panel); border-bottom: 1px solid var(--rule); }
.contents-band ol { column-count: 2; column-gap: 40px; }
.contents-band li { break-inside: avoid; }

/* Metrics band and simple bar charts. */
.metrics-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 28px 0 0; }
.metrics-band div { padding: 16px 18px; border: 1px solid var(--rule); border-radius: 4px; background: #fff; }
.metrics-band b { display: block; font: 600 30px/1 var(--display); color: var(--navy); }
.metrics-band span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.bars { display: grid; gap: 8px; margin-top: 12px; }
.bars div { display: grid; grid-template-columns: 170px minmax(0, 1fr) 40px; align-items: center; gap: 12px; font-size: 14px; }
.bars i { display: block; height: 14px; background: var(--ballpoint); border-radius: 2px; min-width: 2px; }
.bars b { text-align: right; font-weight: 600; color: var(--navy); }

/* Sidebars never outrun the page: sticky within the viewport, scrolling inside if taller than it. */
.split > aside, .wizard__aside, .article-aside, .art-toc, .policy-nav, .filters, .prose-grid > div:first-child { position: sticky; top: 90px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.split, .wizard--2, .prose-grid, .policy-grid, .library, .article-layout { align-items: start; }
@media (max-width: 1000px) { .split > aside, .wizard__aside, .article-aside, .art-toc, .policy-nav, .filters, .prose-grid > div:first-child { position: static; max-height: none; overflow: visible; } .jbanner__grid { grid-template-columns: 140px minmax(0, 1fr); } .jbanner__facts { grid-column: 1 / -1; } }
@media (max-width: 600px) { .jbanner__grid { grid-template-columns: 1fr; } .jbanner .cover { max-width: 160px; } .contents-band ol { column-count: 1; } }
@media print { .jbanner { background: none; color: #000; } }

/* Fixes after review: contents strip breathes, italics stay legible on dark bands. */
.contents-band ol { column-count: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px 40px; }
.contents-band li div, .contents-band li a { max-width: none; }
.issue-callout h2 i, .jbanner h1 i, .page-hero--band h1 i, .cover__title i, .ai-card--rules h3 i { color: #9ec5ff; }
.issue-callout, .subscribe { background: var(--navy); }
.issue-callout .button { background: #fff; color: var(--navy); }
.datasheet { margin-top: 18px; padding: 20px 24px; }
.datasheet__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 0 32px; border-top: 1px solid var(--ink); }
.datasheet__grid div { grid-template-columns: 150px minmax(0, 1fr); }


/* Dark bands: everything on them is legible. */
.subscribe { color: #fff; border-top: 0; }
.subscribe h2, .subscribe h2 i, .subscribe-form label { color: #fff; }
.subscribe h2 i { color: #9ec5ff; }
.subscribe .eyebrow { color: rgba(255,255,255,.7); } .subscribe .eyebrow span { background: rgba(255,255,255,.45); }
.subscribe-form input { background: #fff; color: var(--ink); border: 0; }
.subscribe .button { background: #fff; color: var(--navy); } .subscribe .button:hover { background: #e6eef8; }
.subscribe .pill-row label { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; margin: 0 8px 8px 0; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font-size: 14px; }
.subscribe .pill-row label:has(input:checked) { background: #fff; color: var(--navy); }
.subscribe-form small { color: rgba(255,255,255,.65); font-family: var(--text); }
.issue-callout { padding: 48px 0; }
.issue-callout__grid { grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 72px); align-items: center; }
.issue-callout .cover { aspect-ratio: 3 / 4; max-width: 320px; box-shadow: 0 24px 40px -18px rgba(0,0,0,.6); }
.issue-callout__facts { display: grid; gap: 0; margin: 18px 0 22px; border-top: 1px solid rgba(255,255,255,.25); max-width: 520px; }
.issue-callout__facts div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.15); font-size: 14px; }
.issue-callout__facts dt { color: rgba(255,255,255,.65); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
.issue-callout__facts dd { margin: 0; color: #fff; }
.issue-callout .text-action { color: #fff; }
.issue-callout p { color: rgba(255,255,255,.88); max-width: 56ch; }
.cover--image { padding: 0; } .cover--image::after { display: none; } .cover--image img { position: static; opacity: 1; filter: none; } .cover--image > :not(img) { display: none; }
.issue-callout .cover:has(img[alt^="Cover"]) { padding: 0; } .issue-callout .cover:has(img[alt^="Cover"])::after { display: none; } .issue-callout .cover img[alt^="Cover"] { position: static; opacity: 1; filter: none; }
.text-button--danger { color: var(--stamp); } .table-row--draft > b { display: flex; align-items: center; }
@media (max-width: 850px) { .issue-callout__grid { grid-template-columns: 1fr; } .issue-callout .cover { max-width: 240px; } }
.issue-callout .cover:has(img[alt^="Cover"]), .cover--image { aspect-ratio: auto; background: transparent; }
.issue-callout .cover img[alt^="Cover"], .cover--image img { width: 100%; height: auto; object-fit: contain; display: block; }

/* The journal cover: always the real artwork, shown whole, lifted off the band. */
.cover--image { padding: 0; aspect-ratio: auto; background: transparent; box-shadow: none; overflow: visible; }
.cover--image img { position: static; width: 100%; height: auto; object-fit: contain; opacity: 1; filter: none; border-radius: 3px; box-shadow: 0 0 0 5px rgba(255,255,255,.14), 0 32px 48px -22px rgba(0,0,0,.75); }
.cover--image::after { display: none; }
.cover--image > :not(img) { display: none; }
.jbanner__grid { grid-template-columns: 220px minmax(0, 1fr) 300px; }
.jbanner .cover--image { transform: rotate(-2deg); transition: transform .4s var(--ease); }
.jbanner .cover--image:hover { transform: rotate(0) scale(1.03); }
.issue-callout__grid { grid-template-columns: minmax(0, 1fr) 340px; }
.issue-callout .cover--image { max-width: 340px; }
.issue-header .cover--image { max-width: 320px; }
@media (max-width: 1000px) { .jbanner__grid { grid-template-columns: 160px minmax(0, 1fr); } }

/* Home banner without the facts column; letter matches the photo column; subscribe band ruled. */
.jbanner__grid { grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); }
.jbanner__meta { margin: 18px 0 0; color: rgba(255,255,255,.75); font-size: 13.5px; }
.letter { align-items: stretch; }
.letter__sheet { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; }
.letter__sign { margin-top: auto; padding-top: 22px; }
.subscribe { border-top: 1px solid rgba(255,255,255,.35); border-bottom: 1px solid rgba(255,255,255,.35); box-shadow: inset 0 6px 0 rgba(255,255,255,.06); }
.subscribe .eyebrow, .subscribe h2, .subscribe p, .subscribe-form label, .subscribe-form small { color: #fff; }
.subscribe h2 i { color: #9ec5ff; }
.subscribe-form small { opacity: .75; }
@media (max-width: 700px) { .jbanner__grid { grid-template-columns: 1fr; } .jbanner .cover--image { max-width: 200px; } }
.letter__sheet p, .letter__sheet .dropcap, .letter__sheet h2 { max-width: none; }
.letter__sheet p { font-size: 16.5px; line-height: 1.65; }


/* Prose pages: a narrow label column and a wide reading column instead of two half-empty halves. */
.prose-grid { grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
.prose-grid > div:first-child { position: static; max-height: none; overflow: visible; }
.prose-grid h2 { position: static; font-size: 20px; color: var(--navy); padding-top: 6px; border-top: 2px solid var(--navy); }
.prose { max-width: 78ch; }
.prose .lead { font-size: 19px; }
@media (max-width: 850px) { .prose-grid { grid-template-columns: 1fr; } }

/* About page. */
.content--tint { background: var(--panel); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.about-lead { max-width: 88ch; font-size: 19px; line-height: 1.6; margin: 18px 0 26px; font-family: var(--serif); }
.about-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.fact { padding: 14px 16px; border: 1px solid var(--rule); border-radius: 4px; background: #fff; }
.fact span { display: block; color: var(--muted); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.fact b { display: block; font-weight: 600; color: var(--navy); font-size: 15px; line-height: 1.4; }
.promise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; margin-top: 26px; }
.promise-grid b { display: block; color: var(--ballpoint); font: 600 12px/1 var(--mono); letter-spacing: .14em; margin-bottom: 10px; }
.promise-grid h3 { margin: 0 0 8px; font-size: 20px; } .promise-grid p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.timeline { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.timeline li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--rule); border-radius: 4px; }
.timeline__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font: 600 16px/1 var(--display); }
.timeline h3 { margin: 4px 0 6px; font-size: 18px; } .timeline p { margin: 0 0 8px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; } .timeline small { color: var(--ballpoint); font-weight: 600; font-size: 12.5px; }
.publisher-block { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.publisher-block p { max-width: 78ch; }
@media (max-width: 850px) { .publisher-block { grid-template-columns: 1fr; } }
