/* Tomorrow Publication — calm, simple, professional. One typeface (Geist), one accent (brand navy). */
:root {
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --brand: #132a4c;
  --brand-dark: #0c1c35;
  --brand-soft: #eef1f6;
  --link: #0b5cbe;
  --sun: #f3892b;
  --ok: #1d7a46; --ok-soft: #eaf6ef;
  --warn: #a35a06; --warn-soft: #fdf4e7;
  --err: #b42318; --err-soft: #fdeceb;
  --info: #1d4ed8; --info-soft: #edf2fd;
  --jc: var(--brand); /* kept for templates: every journal uses the brand colour */
  --radius: 18px;
  --radius-sm: 12px;
  --sans: Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: var(--sans);
  --wrap: 1120px;
  --header-h: 64px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--sans); letter-spacing: -.011em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); font-family: var(--sans); font-weight: 600; line-height: 1.15; letter-spacing: -.028em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; letter-spacing: -.02em; }
h4 { font-size: 1rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line-soft); margin: 28px 0; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.lead { font-size: 1.2rem; line-height: 1.5; color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.skip:focus { left: 8px; }
.eyebrow { margin: 0 0 12px; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.icon { width: 1.05em; height: 1.05em; vertical-align: -.16em; flex: none; }
.nowrap { white-space: nowrap; }
.opt { font-weight: 400; color: var(--muted); }
main { min-height: 60vh; }
.page { padding-top: 44px; padding-bottom: 88px; }
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-title { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-title h2 { margin-bottom: 12px; }
.section-title p { margin: 0; color: var(--muted); font-size: 1.1rem; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.stack > * + * { margin-top: 16px; }
.mobile-only { display: none !important; }

/* ---------- buttons (pills) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border: 1px solid var(--brand); border-radius: 980px; background: var(--brand); color: #fff; font: 500 .97rem/1.2 var(--sans); letter-spacing: -.01em; white-space: nowrap; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; text-decoration: none; }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-soft); border-color: transparent; color: var(--ink); }
.btn-light { background: #fff; border-color: #fff; color: var(--brand); }
.btn-light:hover { background: #eef1f6; border-color: #eef1f6; color: var(--brand); }
.btn-glass { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-glass:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.btn-ok { background: var(--ok); border-color: var(--ok); }
.btn-ok:hover { background: #155c35; border-color: #155c35; }
.btn-danger { background: var(--err); border-color: var(--err); }
.btn-danger:hover { background: #8f1c13; border-color: #8f1c13; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-sm { min-height: 36px; padding: 6px 16px; font-size: .88rem; }
.btn-lg { min-height: 50px; padding: 12px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.link-btn { padding: 0; border: 0; background: none; color: var(--link); font: inherit; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-danger { color: var(--err); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line-soft); }
.header-bar { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; color: var(--brand); }
.brand:hover { color: var(--brand); text-decoration: none; }
.brand svg { display: block; width: 34px; height: 34px; }
.brand-text { line-height: 1; }
.brand-text b { display: block; font-size: 1.12rem; font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.brand-text small { display: block; margin-top: 3px; font-size: .58rem; font-weight: 600; letter-spacing: .28em; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav > a, .nav summary { display: flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-size: .9rem; cursor: pointer; list-style: none; }
.nav > a:hover, .nav summary:hover { color: var(--ink); text-decoration: none; }
.nav > a.on, .nav summary.on { color: var(--ink); font-weight: 500; }
.nav summary::-webkit-details-marker { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-actions > .btn-ghost { font-size: .9rem; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { color: var(--ink); }
.icon-btn .icon { width: 19px; height: 19px; }

/* menus */
.dd { position: relative; }
.dd > summary { list-style: none; }
.dd > summary::-webkit-details-marker { display: none; }
.dd-panel { position: absolute; top: calc(100% + 10px); left: 0; z-index: 60; min-width: 240px; padding: 8px; border: 1px solid var(--line-soft); border-radius: 16px; background: #fff; box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.dd-panel.right { left: auto; right: 0; }
.dd-panel a, .dd-panel button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: 400 .92rem/1.3 var(--sans); text-align: left; cursor: pointer; }
.dd-panel a:hover, .dd-panel button:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.dd-panel hr { margin: 6px 4px; }
.dd-head { margin-bottom: 6px; padding: 8px 12px 10px; border-bottom: 1px solid var(--line-soft); }
.dd-head b { display: block; font-weight: 600; }
.dd-head span { font-size: .84rem; color: var(--muted); }
.journals-panel { width: 380px; }
.journal-link { gap: 12px !important; padding: 10px 12px !important; }
.journal-link svg { flex: none; width: 32px; height: 32px; }
.journal-link b { display: block; font-weight: 600; font-size: .95rem; }
.journal-link span span { display: block; margin-top: 2px; font-size: .8rem; line-height: 1.35; color: var(--muted); }
.chev { width: 13px; height: 13px; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .8rem; font-weight: 600; letter-spacing: 0; }
.acct > summary { display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 999px; cursor: pointer; }

/* mobile menu */
.mnav { display: none; }
.mnav > summary { list-style: none; }
.mnav > summary::-webkit-details-marker { display: none; }
.mnav-panel { position: fixed; inset: var(--header-h) 0 0 0; z-index: 70; overflow-y: auto; padding: 16px 24px calc(56px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line-soft); }
.mnav-panel a { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line-soft); color: var(--ink); font-size: 1.02rem; }
.mnav-panel a:hover { text-decoration: none; }
.mnav-panel h4 { margin: 26px 4px 4px; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
/* buttons in the menu keep their full border (the plain links above only have a bottom rule) */
.mnav-panel .btn { margin-top: 18px; padding: 10px 22px; border: 1px solid var(--brand); color: #fff; justify-content: center; }
.mnav-panel .btn-outline { color: var(--brand); }
.mnav-panel form { margin: 0; }
.mnav .icon-close { display: none; }
.mnav[open] .icon-open { display: none; }
.mnav[open] .icon-close { display: block; }

/* workspace bar */
.wsbar { background: var(--bg-soft); border-top: 1px solid var(--line-soft); }
.wsbar .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.wsbar .wrap::-webkit-scrollbar { display: none; }
.wsbar a { padding: 11px 12px; border-bottom: 2px solid transparent; color: var(--ink-2); font-size: .88rem; white-space: nowrap; }
.wsbar a:hover { color: var(--ink); text-decoration: none; }
.wsbar a.on { color: var(--ink); font-weight: 500; border-bottom-color: var(--ink); }

/* ---------- journal header ---------- */
.jband { background: var(--bg-soft); border-bottom: 1px solid var(--line-soft); }
.jband .wrap { display: flex; align-items: center; gap: 20px; padding-top: 40px; padding-bottom: 36px; }
.jband svg.jm { flex: none; width: 60px; height: 60px; }
.jband h1, .jband .h1-like { margin: 0; color: var(--ink); font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 600; line-height: 1.1; letter-spacing: -.035em; }
.jband .jname { color: var(--ink); }
.jband .jname:hover { text-decoration: none; }
.jband p { margin: 6px 0 0; max-width: 640px; color: var(--muted); }
.jband .jmeta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: .82rem; color: var(--muted); }
.jband .btn { margin-left: auto; }
.jnav { background: #fff; border-bottom: 1px solid var(--line-soft); }
.jnav .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.jnav .wrap::-webkit-scrollbar { display: none; }
.jnav a { padding: 14px 10px 12px; border-bottom: 2px solid transparent; color: var(--ink-2); font-size: .92rem; white-space: nowrap; }
.jnav a:hover { color: var(--ink); text-decoration: none; }
.jnav a.on { color: var(--ink); font-weight: 500; border-bottom-color: var(--ink); }

/* ---------- home ---------- */
.hero { padding: 112px 0 104px; text-align: center; background: #fff; }
.hero .eyebrow { color: var(--muted); }
.hero h1 { max-width: 860px; margin: 0 auto 20px; font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 600; line-height: 1.04; letter-spacing: -.045em; }
.hero .lead { max-width: 620px; margin: 0 auto 32px; }
.hero .btn-group { justify-content: center; }
.hero-search { display: flex; align-items: center; gap: 6px; max-width: 520px; margin: 32px auto 0; padding: 5px 5px 5px 18px; border: 1px solid var(--line); border-radius: 980px; background: #fff; }
.hero-search:focus-within { border-color: var(--brand); }
.hero-search .icon { color: var(--muted); }
.hero-search input[type=search] { flex: 1; min-width: 0; min-height: 40px; padding: 8px 6px; border: 0; border-radius: 0; background: transparent; color: var(--ink); font: inherit; box-shadow: none; }
.hero-search input[type=search]:focus { outline: none; box-shadow: none; }

/* journal cards */
.jgrid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.jgrid > * { flex: 0 1 calc((100% - 48px) / 3); }
.jcard { display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius); background: #fff; }
.section:not(.section-soft) .jcard, .page .jcard { background: var(--bg-soft); }
.jcard-top { display: none; }
.jcard-body { display: flex; flex: 1; flex-direction: column; gap: 12px; }
.jcard-head { display: flex; align-items: center; gap: 14px; }
.jcard-head svg { flex: none; width: 44px; height: 44px; }
.jcard h3 { margin: 0; font-size: 1.35rem; letter-spacing: -.03em; }
.jcard h3 a { color: var(--ink); }
.jcard p { margin: 0; color: var(--muted); font-size: .97rem; }
.jcard-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: auto; padding-top: 4px; font-size: .84rem; color: var(--muted); }
.jcard-stats b { color: var(--ink); font-weight: 600; }
.jcard-foot { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: .95rem; }
.jcard-foot a { color: var(--link); }

/* article tiles */
.acards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.acard { display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: var(--radius); background: var(--bg-soft); }
.section-soft .acard { background: #fff; }
.acard h3 { margin: 0; font-size: 1.08rem; line-height: 1.35; letter-spacing: -.02em; }
.acard h3 a { color: var(--ink); }
.acard .authors { font-size: .9rem; color: var(--ink-2); }
.acard .meta { margin-top: auto; padding-top: 6px; font-size: .82rem; color: var(--muted); }
.jtag { font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
a.jtag:hover { color: var(--ink); text-decoration: none; }

/* features */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.feature { padding: 30px 26px; border-radius: var(--radius); background: #fff; text-align: center; }
.section:not(.section-soft) .feature, .page .feature { background: var(--bg-soft); }
.feature .ficon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.feature h3 { margin-bottom: 8px; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* call to action */
.cta { padding: 64px 40px; border-radius: 24px; background: var(--brand); color: #fff; text-align: center; }
.cta h2 { margin-bottom: 10px; color: #fff; }
.cta p { max-width: 560px; margin: 0 auto 28px; color: #c5cfdf; }
.cta .btn-group { justify-content: center; }

/* ---------- cards & layout ---------- */
.card { padding: 28px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: #fff; }
.card + .card { margin-top: 16px; }
.card h2:first-child, .card h3:first-child, .card h4:first-child { margin-top: 0; }
.card-soft { background: var(--bg-soft); border-color: transparent; }
.card-accent { background: var(--bg-soft); border-color: transparent; }
.card-warn { background: var(--warn-soft); border-color: #f3ddb8; }
.card-info { background: var(--info-soft); border-color: #cfdbf8; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.layout-wide { grid-template-columns: minmax(0, 1fr) 340px; }
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.side-block { padding: 22px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: #fff; }
.side-block h3 { margin: 0 0 12px; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.side-cta { background: var(--bg-soft); border-color: transparent; }
.side-cta p { color: var(--ink-2); font-size: .95rem; }
.side-cta .btn-light { background: var(--brand); border-color: var(--brand); color: #fff; }
.side-cta .btn-light:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.side-links { margin: 0; padding: 0; list-style: none; }
.side-links li + li { border-top: 1px solid var(--line-soft); }
.side-links a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; color: var(--ink); font-size: .95rem; }
.side-links a:hover { text-decoration: none; color: var(--link); }
.side-links .icon { color: var(--muted); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: .93rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- articles ---------- */
.alist { display: flex; flex-direction: column; }
.aitem { padding: 22px 0; border-top: 1px solid var(--line-soft); }
.aitem:first-child { border-top: 0; padding-top: 6px; }
.aitem-section { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.aitem-section:empty { display: none; }
.aitem h3 { margin: 0 0 6px; font-size: 1.15rem; line-height: 1.35; }
.aitem h3 a { color: var(--ink); }
.aitem .authors { margin-bottom: 8px; color: var(--ink-2); font-size: .95rem; }
.aitem .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: .85rem; color: var(--muted); }
.aitem .meta a { color: var(--link); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 20px; font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { opacity: .5; }
.article-head h1 { margin-bottom: 20px; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.15; }
.people { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0 0 20px; padding: 0; list-style: none; }
.people b { font-weight: 600; }
.people .aff { display: block; font-size: .85rem; color: var(--muted); }
.orcid { display: inline-flex; margin-left: 4px; vertical-align: -2px; }
.orcid svg { width: 16px; height: 16px; }
.article-facts { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-bottom: 32px; padding: 14px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); font-size: .9rem; }
.article-facts span { display: inline-flex; align-items: center; gap: 6px; }
.article-facts b { font-weight: 400; color: var(--muted); }
.article-body h2 { margin-top: 40px; font-size: 1.35rem; }
.article-body h2:first-child { margin-top: 0; }
.abstract { font-size: 1.05rem; line-height: 1.7; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; padding: 6px 14px; border-radius: 980px; background: var(--bg-soft); color: var(--ink-2); font-size: .86rem; }
a.chip:hover { color: var(--ink); text-decoration: none; background: var(--line-soft); }
.refs { padding-left: 22px; font-size: .93rem; color: var(--ink-2); }
.refs li { margin-bottom: 8px; padding-left: 4px; overflow-wrap: anywhere; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metric { padding: 14px; border-radius: 12px; background: var(--bg-soft); text-align: center; }
.metric b { display: block; font-size: 1.45rem; font-weight: 600; letter-spacing: -.03em; }
.metric span { font-size: .8rem; color: var(--muted); }
.cite-tabs { display: inline-flex; gap: 4px; margin-bottom: 12px; padding: 4px; border-radius: 980px; background: var(--bg-soft); }
.cite-tabs button { padding: 6px 14px; border: 0; border-radius: 980px; background: transparent; color: var(--muted); font: 500 .86rem/1.2 var(--sans); cursor: pointer; }
.cite-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.cite-box { padding: 18px 20px; border-radius: 14px; background: var(--bg-soft); font-size: .95rem; line-height: 1.6; overflow-wrap: anywhere; }
.cite-panel[hidden] { display: none; }
.cite-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.license { display: flex; align-items: flex-start; gap: 12px; font-size: .92rem; color: var(--ink-2); }

/* issue covers: one calm brand style for every journal */
.cover { position: relative; display: flex; flex-direction: column; aspect-ratio: 3 / 4; padding: 8%; overflow: hidden; border-radius: 14px; background: linear-gradient(170deg, #1d3a63 0%, var(--brand) 55%, #0c1a31 100%); color: #fff; container-type: inline-size; }
.cover::before { content: ""; position: absolute; left: 50%; bottom: calc(27% + 3px); width: 46%; aspect-ratio: 2 / 1; transform: translateX(-50%); border-radius: 999px 999px 0 0; background: linear-gradient(180deg, #ffcb5c, #f3892b); }
.cover::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: 27%; height: 3px; border-radius: 2px; background: rgba(255,255,255,.85); }
.cover-top { position: relative; display: flex; align-items: center; gap: 6%; font-size: max(9px, 5.2cqw); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.cover-top svg { width: 14%; height: auto; }
.cover-title { position: relative; margin-top: 14%; font-size: max(15px, 12cqw); font-weight: 600; line-height: 1.02; letter-spacing: -.03em; }
.cover-title span { display: block; font-weight: 400; opacity: .85; }
.cover-meta { position: relative; margin-top: auto; font-size: max(10px, 6.2cqw); font-weight: 600; line-height: 1.35; }
.cover-meta small { display: block; font-size: .85em; font-weight: 400; opacity: .8; }
.covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 32px; }
.cover-card { display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.cover-card:hover { text-decoration: none; }
.cover-card b { font-weight: 600; }
.cover-card span { font-size: .85rem; color: var(--muted); }
.issue-head { display: grid; grid-template-columns: 190px 1fr; gap: 32px; align-items: center; margin-bottom: 36px; }
.issue-head h1, .issue-head h2 { margin-bottom: 8px; }
.toc-section { margin-top: 36px; }
.toc-section > h2 { margin-bottom: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- long text ---------- */
.prose { max-width: 72ch; color: var(--ink-2); font-size: 1.02rem; line-height: 1.75; }
.prose h2 { margin: 1.6em 0 .5em; font-size: 1.4rem; color: var(--ink); }
.prose h3 { margin: 1.4em 0 .4em; font-size: 1.15rem; color: var(--ink); }
.prose h4 { margin: 1.2em 0 .3em; color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose strong { color: var(--ink); font-weight: 600; }
.editorial h2 { margin-top: 1.8em; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); font-size: 1.2rem; }
.editorial ul { padding: 0; list-style: none; }
.editorial li { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.checklist { margin: 0; padding: 0; list-style: none; counter-reset: c; }
.checklist li { position: relative; padding: 12px 0 12px 40px; border-top: 1px solid var(--line-soft); color: var(--ink-2); counter-increment: c; }
.checklist li:first-child { border-top: 0; }
.checklist li::before { content: counter(c); position: absolute; left: 0; top: 11px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-soft); color: var(--ink); font-size: .8rem; font-weight: 600; }
.toc-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.toc-nav a { padding: 6px 14px; border-radius: 980px; background: var(--bg-soft); color: var(--ink-2); font-size: .86rem; }
.toc-nav a:hover { color: var(--ink); text-decoration: none; }
.doc-section { margin-bottom: 40px; padding-top: 8px; }
.steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 18px 20px 18px 64px; border-radius: 14px; background: var(--bg-soft); counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 17px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .85rem; font-weight: 600; }
.steps b { display: block; margin-bottom: 2px; font-weight: 600; }
.steps span { color: var(--ink-2); font-size: .95rem; }

/* news */
.news-item { padding: 18px 0; border-top: 1px solid var(--line-soft); }
.news-item:first-child { border-top: 0; padding-top: 0; }
.news-item h3 { margin: 4px 0 6px; font-size: 1.1rem; }
.news-item h3 a { color: var(--ink); }
.news-item p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.news-card { display: block; padding: 26px; border-radius: var(--radius); background: var(--bg-soft); color: inherit; }
.news-card:hover { text-decoration: none; color: inherit; }
.news-card h3 { margin: 6px 0; font-size: 1.1rem; }
.date { font-size: .82rem; color: var(--muted); }

/* contact */
.contact-hero { padding: 80px 0 48px; text-align: center; }
.contact-hero .lead { max-width: 600px; margin: 0 auto; }
.contact-mail { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; padding: 16px 28px; border-radius: 980px; background: var(--bg-soft); color: var(--ink); font-size: clamp(1.05rem, 2.6vw, 1.4rem); font-weight: 500; letter-spacing: -.02em; max-width: 100%; overflow-wrap: anywhere; }
.contact-mail:hover { color: var(--ink); text-decoration: none; background: var(--line-soft); }
.contact-mail .icon { color: var(--brand); }

/* ---------- forms ---------- */
label, .label { display: block; margin: 18px 0 6px; color: var(--ink); font-size: .9rem; font-weight: 500; }
label:first-child, .field:first-child label { margin-top: 0; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], input[type=url], input[type=tel], select, textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: .97rem; }
textarea { min-height: 140px; line-height: 1.55; resize: vertical; }
textarea.tall { min-height: 260px; }
textarea.short { min-height: 90px; }
select { padding-right: 40px; -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236e6e73' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(19,42,76,.12); }
input[disabled] { background: var(--bg-soft); color: var(--muted); }
input[type=file] { width: 100%; padding: 16px; border: 1px dashed var(--line); border-radius: 14px; background: var(--bg-soft); font: inherit; font-size: .92rem; cursor: pointer; }
input[type=file]::file-selector-button { margin-right: 12px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 980px; background: #fff; color: var(--ink); font: 500 .88rem var(--sans); cursor: pointer; }
.hint { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0; color: var(--ink-2); font-size: .95rem; font-weight: 400; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--brand); }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.form-section { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line-soft); }
.form-section > h3 { margin-bottom: 4px; }
fieldset { margin: 0; padding: 0; border: 0; }
legend { margin: 18px 0 8px; font-size: .9rem; font-weight: 500; }
.inline-form { display: inline; }
.searchbar { display: flex; gap: 10px; }
.searchbar input { flex: 1; min-width: 0; }
.auth { max-width: 460px; margin: 0 auto; }
.auth h1 { margin-bottom: 8px; text-align: center; }
.auth .sub { margin-bottom: 28px; text-align: center; color: var(--muted); }
.auth-card { padding: 32px; }
.choice { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: #fff; color: var(--ink); }
.choice:hover { color: var(--ink); text-decoration: none; border-color: var(--line); }
.choice svg.jm { flex: none; width: 46px; height: 46px; }
.choice b { display: block; font-size: 1.08rem; font-weight: 600; letter-spacing: -.02em; }
.choice span { color: var(--muted); font-size: .92rem; }
.choice .go { margin-left: auto; color: var(--muted); }

/* ---------- messages ---------- */
.flash { display: flex; align-items: flex-start; gap: 12px; margin: 20px 0 0; padding: 14px 18px; border: 1px solid; border-radius: 14px; font-size: .95rem; }
.flash .icon { margin-top: 2px; }
.flash.ok { background: var(--ok-soft); border-color: #c4e5d1; color: #145c34; }
.flash.error { background: var(--err-soft); border-color: #f5c6c1; color: #8a1c12; }
.flash.info { background: var(--info-soft); border-color: #c8d6f8; color: #1e3a8a; }
.flash button { margin-left: auto; padding: 0 4px; border: 0; background: none; color: inherit; font-size: 1.2rem; line-height: 1; opacity: .6; cursor: pointer; }
.errors { margin-bottom: 18px; padding: 14px 18px; border: 1px solid #f5c6c1; border-radius: 14px; background: var(--err-soft); color: #8a1c12; font-size: .95rem; }
.errors ul { margin: 6px 0 0; padding-left: 20px; }
.empty { padding: 52px 24px; border-radius: var(--radius); background: var(--bg-soft); color: var(--muted); text-align: center; }
.empty .icon { width: 34px; height: 34px; margin-bottom: 8px; color: #aeaeb2; }
.empty h3 { margin-bottom: 6px; color: var(--ink); }
.empty p { max-width: 460px; margin: 0 auto 16px; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 980px; background: #efeff2; color: #48484c; font-size: .75rem; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.badge.blue { background: #eaf0fd; color: #1e40af; }
.badge.amber { background: #fdf3df; color: #8a4b05; }
.badge.orange { background: #fdeee2; color: #9a3412; }
.badge.green { background: #e6f5ec; color: #166534; }
.badge.red { background: #fde9e7; color: #991b1b; }
.badge.teal { background: #e3f4f2; color: #115e59; }
.badge.grey { background: #efeff2; color: #48484c; }

/* ---------- tables ---------- */
.table-wrap { overflow: hidden; border: 1px solid var(--line-soft); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: var(--bg-soft); color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td .sub { display: block; margin-top: 2px; font-size: .84rem; color: var(--muted); }
td a strong { color: var(--ink); font-weight: 600; }
.num { text-align: right; white-space: nowrap; }
.late { color: var(--err); font-weight: 500; }

/* ---------- workspace ---------- */
.phead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px 24px; margin-bottom: 28px; }
.phead h1 { margin: 0; }
.phead .sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; color: var(--muted); font-size: .93rem; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--muted); font-size: .9rem; }
.back:hover { color: var(--ink); text-decoration: none; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 32px; }
.stat { display: block; padding: 20px; border-radius: var(--radius); background: var(--bg-soft); color: var(--ink); }
a.stat:hover { color: var(--ink); text-decoration: none; }
.stat .n { font-size: 2rem; font-weight: 600; line-height: 1.1; letter-spacing: -.04em; }
.stat .l { margin-top: 4px; font-size: .86rem; color: var(--muted); }
.stat.alert .n { color: var(--warn); }
.stat.danger .n { color: var(--err); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.pills a { padding: 6px 14px; border-radius: 980px; background: var(--bg-soft); color: var(--ink-2); font-size: .86rem; }
.pills a:hover { color: var(--ink); text-decoration: none; }
.pills a.on { background: var(--brand); color: #fff; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.filters select { width: auto; min-width: 200px; }
.quote { margin: 8px 0 14px; padding: 12px 16px; border-left: 3px solid var(--line); border-radius: 0 12px 12px 0; background: var(--bg-soft); color: var(--ink-2); font-size: .95rem; white-space: pre-wrap; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding: 0 0 16px 22px; font-size: .9rem; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.timeline li::after { content: ""; position: absolute; left: 7.5px; top: 18px; bottom: 2px; width: 1px; background: var(--line-soft); }
.timeline li:last-child::after { display: none; }
.files { margin: 0; padding: 0; list-style: none; }
.files li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: .92rem; }
.files li:first-child { padding-top: 0; border-top: 0; }
.files .icon { margin-top: 3px; color: var(--muted); }
.files a { font-weight: 500; overflow-wrap: anywhere; }
.files span { display: block; font-size: .82rem; color: var(--muted); }
.review { padding: 16px 0; border-top: 1px solid var(--line-soft); }
.review:first-of-type { border-top: 0; }
.review-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
details.disclose { margin-top: 16px; border: 1px solid var(--line-soft); border-radius: 14px; }
details.disclose > summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; color: var(--link); font-size: .93rem; font-weight: 500; list-style: none; cursor: pointer; }
details.disclose > summary::-webkit-details-marker { display: none; }
details.disclose > div { padding: 0 16px 16px; }
.section-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.section-row:first-child { border-top: 0; }
.section-row form { display: flex; flex: 1; gap: 8px; min-width: 220px; }
.section-row form:first-child { flex: 1 1 100%; }
.section-meta { display: flex; align-items: center; gap: 14px; width: 100%; font-size: .82rem; }
.section-meta form { display: inline; flex: none; min-width: 0; }
.section-meta span { white-space: nowrap; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line-soft); color: var(--muted); font-size: .86rem; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; padding: 56px 0 40px; }
.footer-brand .brand-text b { color: var(--ink); }
.footer-brand p { max-width: 320px; margin-top: 16px; }
.site-footer h4 { margin-bottom: 12px; color: var(--ink); font-size: .86rem; font-weight: 600; letter-spacing: -.01em; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 9px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px 0 32px; border-top: 1px solid var(--line); font-size: .8rem; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .mnav { display: block; }
  .header-actions .hide-md { display: none; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .layout, .layout-wide { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sidebar { position: static; }
  .jgrid > * { flex-basis: calc((100% - 24px) / 2); }
  .acards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-only { display: flex !important; }
}
@media (max-width: 720px) {
  :root { --header-h: 58px; }
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .page { padding-top: 28px; padding-bottom: 64px; }
  .section { padding: 64px 0; }
  .section-title { margin-bottom: 32px; }
  .brand svg { width: 30px; height: 30px; }
  .brand-text b { font-size: 1.05rem; }
  .row, .row-3, .grid-2, .grid-3, .grid-4, .acards { grid-template-columns: minmax(0, 1fr); }
  .jgrid > * { flex-basis: 100%; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 16px; }
  .stat .n { font-size: 1.7rem; }
  .jcard, .acard, .feature { padding: 24px; }
  /* buttons in groups stretch to the full width */
  .hero .btn-group, .cta .btn-group, .phead .btn-group { flex-direction: column; align-items: stretch; width: 100%; }
  .hero .btn-group .btn, .cta .btn-group .btn, .phead .btn-group .btn { width: 100%; }
  .hero { padding: 64px 0 72px; }
  .hero .lead { font-size: 1.08rem; }
  .cta { padding: 44px 22px; }
  .jband .wrap { flex-wrap: wrap; align-items: flex-start; gap: 14px; padding-top: 28px; padding-bottom: 26px; }
  .jband .wrap > div { flex: 1; min-width: 0; }
  .jband .btn { width: 100%; margin-left: 0; }
  .issue-head { grid-template-columns: 120px 1fr; gap: 18px; }
  .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .card, .auth-card { padding: 22px; }
  .searchbar { flex-direction: column; }
  .searchbar .btn { width: 100%; }
  .filters { flex-direction: column; align-items: stretch; }
  .filters select, .filters .searchbar { width: 100%; min-width: 0 !important; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 44px; }
  .footer-top { text-align: center; }
  .footer-brand { text-align: center; }
  .footer-brand .brand { justify-content: center; }
  .footer-brand p { margin-left: auto; margin-right: auto; }
  /* the footer's last line is centred on phones */
  .footer-bottom { flex-direction: column; align-items: center; gap: 6px; text-align: center; }
  .contact-hero { padding-top: 48px; }
  /* tables become stacked rows */
  .table-stack thead { display: none; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack tr { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
  .table-stack tr:last-child { border-bottom: 0; }
  .table-stack td { padding: 3px 0; border: 0; }
  .table-stack td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: .82rem; }
  .table-stack td:first-child::before { content: none; }
}
@media (max-width: 420px) {
  .issue-head { grid-template-columns: 1fr; }
  .issue-head .cover { max-width: 180px; }
  .footer-top { grid-template-columns: 1fr; }
}
@media print {
  .site-header, .site-footer, .jnav, .wsbar, .sidebar, .no-print { display: none !important; }
  .layout { grid-template-columns: 1fr; }
  body { font-size: 12pt; }
}
