/* Energy Materials Research Center — public stylesheet */
:root {
  --ink: #18222d;
  --ink-2: #33414f;
  --muted: #5d6876;
  --line: #e2e7ec;
  --soft: #f4f7f6;
  --bg: #ffffff;
  --primary: #0b4a44;
  --primary-2: #0f6a61;
  --primary-soft: #e6f2f0;
  --accent: #f0a500;
  --accent-ink: #1d1600;
  --link: #0a6a85;
  --danger: #b42318;
  --ok: #067647;
  --warn: #8a5a00;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --serif: "Iowan Old Style", "Charter", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--primary); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.25; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.inline { display: inline; }
.hp { position: absolute; left: -10000px; }
.break { word-break: break-all; }
.empty { padding: 28px; background: var(--soft); border-radius: var(--radius); color: var(--muted); text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .62em 1.15em; border-radius: 8px; border: 1px solid transparent; font: 600 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-2); color: #fff; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #ffb81f; color: var(--accent-ink); }
.btn--outline { background: #fff; color: var(--primary); border-color: #b8cfcb; }
.btn--outline:hover { border-color: var(--primary); color: var(--primary); }
.btn--light { background: #fff; color: var(--primary); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { border-color: #fff; color: #fff; }
.btn--danger { background: var(--danger); color: #fff; }
.btn--sm { padding: .4em .8em; font-size: .85rem; }
.btn--block { width: 100%; }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* Top bar & masthead */
.topbar { background: #072f2b; color: #cfe3df; font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; }
.topbar__meta, .topbar__user { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.topbar a, .topbar .linklike { color: #fff; text-decoration: none; }
.topbar a:hover, .topbar .linklike:hover { text-decoration: underline; }
.badge-oa { background: var(--accent); color: var(--accent-ink); font-weight: 700; padding: 1px 8px; border-radius: 99px; font-size: .75rem; letter-spacing: .02em; }
.masthead { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.masthead__inner { display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-family: var(--serif); font-size: 1.32rem; font-weight: 700; color: var(--primary); line-height: 1.15; }
.brand__tag { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.masthead__search { display: flex; width: min(380px, 34vw); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--soft); }
.masthead__search input { flex: 1; border: 0; background: transparent; padding: 9px 12px; font: inherit; font-size: .92rem; min-width: 0; }
.masthead__search input:focus { outline: none; }
.masthead__search:focus-within { border-color: var(--primary-2); background: #fff; }
.masthead__search button { border: 0; background: transparent; padding: 0 12px; color: var(--primary); cursor: pointer; }
.nav-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 12px; font: 600 .9rem var(--sans); cursor: pointer; }
.mainnav { border-top: 1px solid var(--line); background: #fff; }
.mainnav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.mainnav__list > li { position: relative; }
.mainnav__list > li > a { display: block; padding: 11px 14px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .94rem; border-bottom: 3px solid transparent; }
.mainnav__list > li > a:hover, .mainnav__list > li > a[aria-current] { color: var(--primary); border-bottom-color: var(--accent); }
.sub { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 10px 30px rgba(16,24,40,.12); list-style: none; margin: 0; padding: 6px 0; z-index: 50; }
.sub a { display: block; padding: 8px 16px; color: var(--ink-2); text-decoration: none; font-size: .92rem; }
.sub a:hover { background: var(--primary-soft); color: var(--primary); }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }

/* Flash */
.flashes { margin-top: 16px; }
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 10px; border: 1px solid; font-size: .95rem; }
.flash--success { background: #ecfdf3; border-color: #abefc6; color: #05603a; }
.flash--error { background: #fef3f2; border-color: #fecdca; color: #912018; }
.flash--warning { background: #fffaeb; border-color: #fedf89; color: #7a4a00; }
.flash--info { background: #eff8ff; border-color: #b2ddff; color: #1849a9; }

/* Hero */
.hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(240,165,0,.28), transparent 60%), linear-gradient(135deg, #072f2b 0%, #0b4a44 55%, #0f6a61 100%); color: #e8f3f1; }
.hero__inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; padding-top: 56px; padding-bottom: 56px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .3em; }
.hero__lead { font-size: 1.08rem; max-width: 640px; color: #d4e8e4; }
.hero .kicker { color: var(--accent); }
.hero__search { display: flex; gap: 8px; max-width: 620px; margin: 22px 0 18px; }
.hero__search input { flex: 1; padding: 13px 16px; border-radius: 8px; border: 0; font: inherit; min-width: 0; }
.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; }
.hero__facts div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 18px; }
.hero__facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #a9cbc5; }
.hero__facts dd { margin: 4px 0 0; font: 700 1.6rem/1.2 var(--serif); color: #fff; }
.kicker { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; color: var(--primary-2); margin-bottom: .4em; }

/* Layout */
.site-main { min-height: 50vh; padding-bottom: 56px; }
.layout-2col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; margin-top: 32px; }
.layout-2col--filters { grid-template-columns: 270px minmax(0, 1fr); margin-top: 8px; }
.layout-article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; margin-top: 8px; }
.section { margin-bottom: 36px; }
.section__head { display: flex; justify-content: space-between; align-items: baseline; }
.section__title { font-size: 1.35rem; padding-bottom: 8px; border-bottom: 2px solid var(--primary); display: inline-block; margin-bottom: 18px; }
.page-head { padding: 18px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.page-head .lead, .lead { font-size: 1.1rem; color: var(--ink-2); }
.breadcrumbs ol { list-style: none; margin: 18px 0 6px; padding: 0; display: flex; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin: 0 8px; color: #9aa4b0; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); text-decoration: underline; }

/* Article cards */
.card-article { padding: 20px 0; border-bottom: 1px solid var(--line); }
.featured-grid .card-article { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; background: linear-gradient(180deg, #fff, #fbfdfc); box-shadow: var(--shadow); }
.card-article__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.card-article__title { font-size: 1.18rem; margin: 0 0 6px; }
.card-article__title a { color: var(--ink); text-decoration: none; }
.card-article__title a:hover { color: var(--primary); text-decoration: underline; }
.card-article__authors { font-size: .92rem; color: var(--ink-2); margin-bottom: 6px; }
.card-article__abstract { font-size: .93rem; color: var(--muted); margin-bottom: 8px; }
.card-article__foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; }
.card-article__links { display: flex; gap: 14px; font-weight: 600; }
.card-article--compact .card-article__title { font-size: 1rem; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; background: #eef2f6; color: #344054; text-decoration: none; }
.pill--oa { background: #fff4d6; color: #7a4f00; }
.pill--research-article { background: var(--primary-soft); color: var(--primary); }
.pill--review-article { background: #f0ecfe; color: #4a2fa8; }
.pill--case-study { background: #e8f4fd; color: #0b5a8a; }
.pill--short-communication { background: #fdeee9; color: #9a3412; }
.pill--subject { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.pill--special { background: var(--accent); color: var(--accent-ink); }

/* Sidebar widgets */
.sidebar .widget { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 20px; background: #fff; }
.widget__title { font-size: 1.02rem; margin-bottom: 12px; color: var(--primary); }
.subject-list, .popular-list, .related-list, .ticks { margin: 0; padding: 0; list-style: none; }
.subject-list li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.subject-list a { text-decoration: none; color: var(--ink-2); }
.subject-list a:hover { color: var(--primary); }
.count { align-self: flex-start; white-space: nowrap; background: var(--soft); border-radius: 99px; padding: 0 8px; font-size: .78rem; color: var(--muted); }
.popular-list { counter-reset: pop; }
.popular-list li, .related-list li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; display: flex; flex-direction: column; }
.popular-list li { counter-increment: pop; padding-left: 30px; position: relative; }
.popular-list li::before { content: counter(pop); position: absolute; left: 0; top: 8px; font: 700 1.1rem var(--serif); color: var(--accent); }
.popular-list a, .related-list a { color: var(--ink); text-decoration: none; line-height: 1.35; }
.popular-list a:hover, .related-list a:hover { color: var(--primary); text-decoration: underline; }
.popular-list .muted, .related-list .muted { font-size: .78rem; margin-top: 2px; }
.ticks li { padding: 4px 0 4px 26px; position: relative; font-size: .93rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.widget--cta { background: var(--primary-soft) !important; border-color: #c7e0dc !important; }
.widget--cta .btn { margin-top: 12px; }
.filters label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 12px; color: var(--ink-2); }
.filters select { display: block; width: 100%; margin-top: 4px; }

/* Issue covers */
.issue-cover { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: #fff; background: linear-gradient(160deg, #0b4a44, #072f2b); border-radius: var(--radius); padding: 22px; min-height: 170px; position: relative; overflow: hidden; }
.issue-cover::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; border: 18px solid rgba(240,165,0,.35); }
.issue-cover:hover { color: #fff; filter: brightness(1.08); }
.issue-cover__vol { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #a9cbc5; }
.issue-cover__no { font: 700 1.6rem var(--serif); }
.issue-cover__year { font-size: .9rem; }
.issue-cover__title { font-size: .9rem; margin-top: 8px; color: #fff3cf; position: relative; z-index: 1; }
.issue-cover__count { margin-top: auto; font-size: .8rem; color: #cfe3df; }
.issue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }

/* Subject cards */
.subject-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.subject-card { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.subject-card:hover { border-color: var(--primary-2); box-shadow: var(--shadow); color: var(--ink); }
.subject-card h2 { font-size: 1.1rem; color: var(--primary); }
.subject-card p { font-size: .92rem; color: var(--muted); }

/* Article page */
.article__head { padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.article__badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 14px; }
.article__title { font-size: clamp(1.6rem, 2.8vw, 2.25rem); line-height: 1.22; }
.authors { list-style: none; margin: 10px 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 1.02rem; }
.authors li { display: inline-flex; align-items: baseline; gap: 2px; }
.authors a { color: var(--ink); font-weight: 600; text-decoration: none; }
.authors a:hover { color: var(--primary); text-decoration: underline; }
.authors sup { color: var(--primary-2); font-weight: 700; font-size: .7em; }
.orcid { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: #a6ce39; color: #fff !important; font: 700 9px/1 var(--sans) !important; text-decoration: none; margin-left: 4px; vertical-align: middle; }
.affiliations { font-size: .86rem; color: var(--muted); padding-left: 20px; margin: 8px 0; }
.corresponding { font-size: .86rem; color: var(--muted); }
.article__journal { font-size: .93rem; color: var(--ink-2); margin: 12px 0; }
.dates { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 10px 0 18px; font-size: .85rem; }
.dates div { display: flex; gap: 6px; }
.dates dt { color: var(--muted); }
.dates dd { margin: 0; font-weight: 600; }
.actionbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.share-links { display: inline-flex; gap: 12px; flex-wrap: wrap; font-size: .9rem; }
.share-links[hidden] { display: none; }
.article__section { margin-bottom: 30px; }
.article__section h2 { font-size: 1.3rem; color: var(--primary); }
.article__section--small h2 { font-size: 1.05rem; }
.article__section--small p { font-size: .95rem; color: var(--ink-2); }
.abstract { background: var(--soft); border-left: 4px solid var(--primary); padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; }
.abstract div { font-size: 1.02rem; line-height: 1.7; }
.keywords { margin-bottom: 30px; }
.keywords__h { font: 700 .82rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.keywords ul, .tag-cloud { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.keywords a, .tag-cloud a { display: inline-block; padding: 4px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-size: .86rem; }
.keywords a:hover, .tag-cloud a:hover { border-color: var(--primary); color: var(--primary); }
.prose { font-size: 1.04rem; line-height: 1.75; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; color: var(--primary); scroll-margin-top: 140px; }
.prose h3 { font-size: 1.15rem; margin-top: 1.4em; }
.prose img { border-radius: 6px; }
.prose figure { margin: 1.5em 0; }
.prose figcaption, .prose caption { font-size: .88rem; color: var(--muted); text-align: left; padding: 6px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .92rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose th { background: var(--soft); }
.prose blockquote { border-left: 4px solid var(--accent); margin: 1.2em 0; padding: .4em 1.2em; color: var(--ink-2); background: #fffbf0; }
.prose pre { background: #0f1720; color: #e6edf3; padding: 14px; border-radius: 8px; overflow-x: auto; font-size: .88rem; }
.references ol { padding-left: 24px; font-size: .9rem; color: var(--ink-2); }
.references li { margin-bottom: 8px; word-break: break-word; }
.cite { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.cite__text { background: var(--soft); padding: 14px; border-radius: 8px; font-size: .92rem; }
.cite__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.license { font-size: .86rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
.article-aside { position: sticky; top: 140px; align-self: start; max-height: calc(100vh - 160px); overflow-y: auto; }
.toc ol { margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.toc li { margin-bottom: 6px; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover, .toc a.is-active { color: var(--primary); font-weight: 600; }
.metrics dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.metrics div { background: var(--soft); border-radius: 8px; padding: 10px; text-align: center; }
.metrics dt { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.metrics dd { margin: 0; font: 700 1.3rem var(--serif); color: var(--primary); }
.info-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: .88rem; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; }

/* Board */
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.board-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.board-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.board-card p { font-size: .9rem; margin: 0 0 4px; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 28px 0; }
.pagination a, .pagination span { padding: 7px 13px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-size: .9rem; color: var(--ink-2); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Forms */
.form label, .form .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 16px; color: var(--ink-2); }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=url], input[type=number], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #cdd5df; border-radius: 8px; font: 400 .97rem/1.4 var(--sans); background: #fff; color: var(--ink); margin-top: 5px;
}
.masthead__search input, .hero__search input { margin-top: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--primary-2); outline: 3px solid rgba(15,106,97,.15); }
textarea { resize: vertical; }
.form .hint { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); margin-top: 4px; }
.form .check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.form .check input { width: auto; margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; box-shadow: var(--shadow); }
.search-big { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.search-big input { flex: 1 1 240px; margin-top: 0; }

/* Auth */
.auth-box { max-width: 460px; margin: 48px auto; }
.auth-box h1 { font-size: 1.7rem; text-align: center; }
.auth-box .sub-links { display: flex; justify-content: space-between; font-size: .9rem; margin-top: 14px; flex-wrap: wrap; gap: 8px; }
.code-input { text-align: center; font: 600 1.6rem/1 ui-monospace, Menlo, Consolas, monospace !important; letter-spacing: .3em; }
.backup-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; font: 600 1rem ui-monospace, Menlo, Consolas, monospace; background: var(--soft); padding: 16px; border-radius: 8px; list-style: none; margin: 12px 0; }
.qr { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; margin: 14px 0; }
.qr__img { background: #fff; padding: 10px; border: 1px solid var(--line); border-radius: 8px; width: 220px; height: 220px; }
.qr__img img, .qr__img svg { width: 200px; height: 200px; display: block; }
.secret { font: 600 .95rem ui-monospace, Menlo, Consolas, monospace; word-break: break-all; background: var(--soft); padding: 8px 10px; border-radius: 6px; }

/* Account */
.account-nav { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 20px 0 24px; flex-wrap: wrap; }
.account-nav a { padding: 10px 14px; text-decoration: none; color: var(--ink-2); font-weight: 600; border-bottom: 3px solid transparent; }
.account-nav a[aria-current] { color: var(--primary); border-color: var(--accent); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--soft); }
.status { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; background: #eef2f6; color: #344054; white-space: nowrap; }
.status--under_review { background: #eff8ff; color: #175cd3; }
.status--revision_required { background: #fffaeb; color: #b54708; }
.status--accepted, .status--published { background: #ecfdf3; color: #067647; }
.status--rejected, .status--withdrawn { background: #fef3f2; color: #b42318; }
.section-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; }
.section-box h2 { font-size: 1.2rem; }

/* Footer */
.footer { background: #072f2b; color: #b7d2cd; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 36px; padding-top: 48px; padding-bottom: 36px; }
.footer__brand { display: flex; align-items: center; gap: 10px; font: 700 1.15rem var(--serif); color: #fff; margin-bottom: 12px; }
.footer__h { font: 700 .8rem var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 7px; }
.footer a { color: #e2efec; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .muted { color: #8fb3ad; }
.footer__base { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: .82rem; color: #8fb3ad; }

.error-page { text-align: center; padding-top: 60px; }
.error-page .search-big { justify-content: center; max-width: 520px; margin: 20px auto; }

/* Responsive */
@media (max-width: 1080px) {
  .layout-article { grid-template-columns: minmax(0, 1fr); }
  .article-aside { position: static; max-height: none; }
  .toc { display: none; }
}
@media (max-width: 960px) {
  .hero__inner, .layout-2col, .layout-2col--filters { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .masthead__search { display: none; }
  .nav-toggle { display: inline-block; }
  .mainnav { display: none; }
  .mainnav.is-open { display: block; }
  .mainnav__list { flex-direction: column; padding: 8px 0; }
  .sub { position: static; display: block; box-shadow: none; border: 0; padding-left: 14px; }
  .masthead { position: static; }
}
@media (max-width: 640px) {
  .masthead__submit, .hide-sm, .brand__tag { display: none; }
  .grid-2, .footer__grid { grid-template-columns: 1fr; }
  .hero__search { flex-direction: column; }
  .hero__facts dd { font-size: 1.3rem; }
  .backup-codes { grid-template-columns: 1fr; }
}
@media print {
  .topbar, .masthead, .footer, .sidebar, .actionbar, .cite__actions { display: none !important; }
  .layout-article { display: block; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- Scientific content: equations, figures, citations ---------- */
.prose math { font-size: 1.08em; }
.prose .equation { position: relative; display: flex; align-items: center; justify-content: center; margin: 1.4em 0; padding: 0 56px; overflow-x: auto; min-height: 2.4em; }
.prose .equation math { display: block; margin: 0; }
.prose .equation__no { position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--muted); white-space: nowrap; font-size: .95rem; }
.prose figure { text-align: center; margin: 2em 0; scroll-margin-top: 140px; }
.prose figure img { border: 1px solid var(--line); background: #fff; }
.prose figcaption { text-align: left; max-width: 760px; margin: 8px auto 0; }
.prose img.img-md { width: 60%; }
.prose img.img-sm { width: 35%; }
.prose table caption { caption-side: top; }
.prose table { scroll-margin-top: 140px; }
.prose sup.cite a { text-decoration: none; font-weight: 600; }
.prose .box { background: var(--primary-soft); border: 1px solid #c7e0dc; border-radius: var(--radius); padding: 14px 18px; margin: 1.4em 0; }
.prose .box p:last-child { margin-bottom: 0; }
.prose code { background: var(--soft); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
@media (max-width: 640px) { .prose img.img-md, .prose img.img-sm { width: 100%; } }
