@font-face {
  font-family: "eKorpus Contrast";
  src: url("/assets/fonts/RobotoFlex-Text-300-GRADm100-d51adb49593a.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "eKorpus Contrast";
  src: url("/assets/fonts/RobotoFlex-Author-500-GRAD0-bc17f99fc793.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "eKorpus Contrast";
  src: url("/assets/fonts/RobotoFlex-Heavy-1000-GRAD150-3d811ee5edb1.ttf") format("truetype");
  font-style: normal;
  font-weight: 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #17253c;
  --muted: #607089;
  --paper: #f1f5f4;
  --surface: #ffffff;
  --line: #d6e0e0;
  --brand: #0d657d;
  --brand-dark: #083747;
  --accent: #5cb7c1;
  --masthead-start: #0d657d;
  --masthead-end: #5cb7c1;
  --verified: #176a4a;
  --shadow: 0 22px 60px rgba(34, 43, 58, .09);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}
[hidden] { display: none !important; }

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf2f7;
  --muted: #aab7c8;
  --paper: #0d1420;
  --surface: #151f2f;
  --line: #344154;
  --brand: #70c8d1;
  --brand-dark: #9cdde3;
  --accent: #d2aa68;
  --masthead-start: #071f29;
  --masthead-end: #0d657d;
  --verified: #83d4b2;
  --shadow: 0 22px 60px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.55; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 32%, transparent); outline-offset: 2px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; transform: translateY(-160%); background: var(--ink); color: white; padding: 8px 12px; border-radius: 6px; }
.skip-link:focus { transform: none; }

.journal-masthead { color: white; background: linear-gradient(110deg, var(--masthead-start), var(--masthead-end)); border-bottom: 5px solid color-mix(in srgb, var(--accent) 75%, white); }
.masthead-inner { max-width: 1240px; min-height: 172px; margin: auto; padding: 28px 26px; display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; align-items: center; gap: 28px; }
.publisher-logo-frame { width: 96px; height: 96px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .42); border-radius: 50%; background: rgba(8, 55, 71, .34); box-shadow: 0 12px 28px rgba(7, 31, 41, .18); }
.publisher-logo-frame img { width: 78px; height: auto; display: block; }
.masthead-identity { min-width: 0; text-align: center; }
.masthead-kicker { margin: 0 0 5px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .82; }
.journal-title-link { color: inherit; text-decoration: none; }
.journal-title-link h1 { margin: 0; font: 700 clamp(29px, 4vw, 49px)/1.05 Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
.journal-alt-title { margin: 7px 0 0; font: 400 17px/1.3 Georgia, "Times New Roman", serif; opacity: .87; }
.masthead-links { display: grid; gap: 8px; }
.masthead-links a { min-width: 220px; padding: 10px 12px; display: flex; justify-content: space-between; gap: 16px; border: 1px solid rgba(255, 255, 255, .38); color: inherit; text-decoration: none; font-size: 12px; font-weight: 750; }
.masthead-links a:hover { background: rgba(255, 255, 255, .11); }

.site-header { background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); }
.header-inner { max-width: 1240px; margin: auto; padding: 16px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; color: inherit; text-decoration: none; }
.brand strong { display: block; font: 700 22px Georgia, serif; }
.brand small { display: block; color: var(--muted); font-size: 12px; }
.header-actions, .language-switch { display: flex; align-items: center; gap: 10px; }
.access-badge { padding: 6px 10px; border: 1px solid #b8dacd; background: #ecf8f3; color: var(--verified); border-radius: 999px; font-size: 12px; font-weight: 700; }
.language-switch { padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #f3f4f6; }
.language-switch button { border: 0; background: transparent; padding: 6px 10px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 12px; }
.language-switch button[aria-pressed="true"] { background: var(--ink); color: white; }
.theme-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 18px; }

main { max-width: 1240px; margin: auto; padding: 0 26px 70px; }
.hero { min-height: 280px; padding: 42px 0 38px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr); align-items: end; gap: 42px; border-bottom: 1px solid #d7d1c6; }
.hero h2 { max-width: 820px; margin: 8px 0 18px; font: 700 clamp(30px, 4vw, 48px)/1.08 Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
.hero-copy > p:last-child { max-width: 720px; color: var(--muted); font-size: 18px; }
.eyebrow { margin: 0; color: var(--brand); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; }
.archive-name { max-width: 760px; letter-spacing: .06em; text-transform: none; }
.product-name { text-transform: none; letter-spacing: .06em; }
.corpus-stats { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 3px solid var(--brand); background: rgba(255, 255, 255, .55); }
.corpus-stats div { padding: 18px 14px; border-right: 1px solid var(--line); }
.corpus-stats div:last-child { border-right: 0; }
.corpus-stats dt { font: 700 27px Georgia, serif; }
.corpus-stats dd { margin: 2px 0 0; color: var(--muted); font-size: 12px; }

.search-panel { margin-top: 38px; padding: 30px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); border: 1px solid rgba(220, 225, 231, .8); }
.section-heading, .results-toolbar, .form-actions, .dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
h2 { margin: 4px 0 0; font: 700 30px Georgia, serif; }
.text-button { border: 0; background: none; color: var(--brand); font-weight: 700; }
.primary-search-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 26px; }
label > span, .sort-label > span { display: block; margin-bottom: 7px; color: #42516a; font-size: 12px; font-weight: 750; }
.search-field-label { position: relative; min-height: 24px; margin-bottom: 7px; display: flex; align-items: center; gap: 7px; color: #42516a; font-size: 12px; font-weight: 750; }
.query-help { position: static; display: inline-flex; }
.query-help summary { width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--brand) 55%, var(--line)); border-radius: 50%; color: var(--brand); background: var(--surface); font-size: 12px; font-weight: 900; line-height: 1; list-style: none; cursor: pointer; }
.query-help summary::-webkit-details-marker { display: none; }
.query-help > span { position: fixed; left: 50%; top: 90px; z-index: 30; width: min(360px, calc(100vw - 32px)); padding: 11px 13px; border-radius: 8px; color: #fff; background: #0d2b33; box-shadow: 0 12px 30px rgba(6, 28, 36, .2); font-size: 12px; font-weight: 500; line-height: 1.45; transform: translateX(-50%); }
.query-help:not([open]) > span { display: none; }
input, select { width: 100%; min-height: 46px; padding: 10px 12px; color: var(--ink); background: #fbfcfd; border: 1px solid #cfd6df; border-radius: 9px; }
input { font-size: 16px; }
input::placeholder { color: #929dad; }
.title-only-option { width: fit-content; margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer; }
.title-only-option input { width: 18px; min-height: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--brand); }
.title-only-option > span { margin: 0; color: inherit; font-size: inherit; }
.filter-grid { margin-top: 20px; padding-top: 20px; display: grid; grid-template-columns: 160px 160px minmax(220px, 1fr); gap: 13px; border-top: 1px solid var(--line); }
.form-actions { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.search-note { margin: 0; color: var(--muted); font-size: 13px; }
.primary-button, .secondary-button { border-radius: 9px; font-weight: 800; transition: transform .15s ease, background .15s ease; }
.primary-button { min-width: 170px; padding: 12px 18px; border: 1px solid var(--brand); background: var(--brand); color: white; display: inline-flex; justify-content: space-between; gap: 30px; }
.primary-button:hover { background: var(--brand-dark); transform: translateY(-1px); }
.secondary-button { padding: 9px 13px; border: 1px solid #bcc5d1; background: white; color: var(--ink); }

.results-section { padding-top: 56px; scroll-margin-top: 76px; }
.toolbar-actions { display: flex; align-items: end; gap: 12px; }
.sort-controls { display: flex; align-items: end; gap: 10px; }
.export-actions { display: flex; gap: 8px; }
.sort-label { min-width: 170px; }
.sort-direction-label { min-width: 130px; }
.sort-label select { min-height: 40px; padding: 7px 10px; }
.status { min-height: 24px; margin: 22px 0 8px; color: var(--muted); font-size: 14px; }
.status.error { color: #a1202e; }
.result-list { display: grid; gap: 12px; }
.result-card { min-width: 0; display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 22px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; transition: border .15s ease, transform .15s ease, box-shadow .15s ease; }
.result-card:hover { border-color: #c2a16b; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(40, 49, 64, .07); }
.record-title-link { color:inherit; overflow-wrap:anywhere; text-decoration-thickness:1px; text-decoration-color:transparent; text-underline-offset:.16em; }
.record-title-link .search-hit { color: inherit; background: none; font-weight: 900; }
.record-title-link:hover { color:var(--accent); text-decoration-color:currentColor; }
.record-doi-link { margin:18px 0 0; padding:11px 14px; border-left:3px solid var(--accent); background:color-mix(in srgb,var(--surface) 90%,var(--accent)); }
.result-meta { color: var(--brand); font-size: 12px; font-weight: 800; }
.result-main h3 { margin: 0 0 8px; font: 700 21px/1.28 Georgia, serif; }
.authors { margin: 0 0 9px; color: #3b4a62; font: 500 16px/1.7 "eKorpus Contrast", Roboto, sans-serif; font-synthesis: none; }
.entity-links { line-height: 1.7; }
.entity-link { display: inline; padding: 0; border: 0; background: none; color: var(--brand); font: inherit; text-align: left; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand) 30%, transparent); text-underline-offset: 3px; }
.entity-link:hover { color: var(--brand-dark); text-decoration-color: currentColor; }
.entity-link .search-hit { color: inherit; background: none; font-weight: 1000; font-synthesis: none; }
.result-alt-title { margin: -1px 0 9px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.result-alt-title strong { color: var(--ink); }
.result-alt-title .search-hit { color: var(--ink); background: none; font-weight: 900; }
.match-reasons { margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; line-height: 1.3; }
.match-reasons > strong { color: var(--ink); font-weight: 700; }
.match-reason { padding: 3px 7px; border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line)); border-radius: 999px; color: var(--brand-dark); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); font-weight: 700; }
.details { margin: 0; color: var(--muted); font-size: 13px; }
.result-main, .snippet { min-width: 0; max-width: 100%; }
.snippet { margin: 13px 0 0; padding: 12px 14px; background: #f6f7f9; border-left: 3px solid var(--accent); color: #46546b; font: 300 13px/1.55 "eKorpus Contrast", Roboto, sans-serif; font-synthesis: none; overflow-wrap: anywhere; }
.snippet .search-hit { padding: 0; color: var(--ink); background: none; font-size: inherit; font-weight: 1000; font-synthesis: none; }
.snippet-link { width: fit-content; max-width: 100%; margin: 10px 0 0; padding: 7px 11px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--ink); border-radius: 7px; color: var(--surface); background: var(--ink); font-size: 14px; font-weight: 1000; line-height: 1.2; text-decoration: none; }
.snippet-link::after { content: "→"; font-size: 16px; line-height: 1; }
.snippet-link:hover { border-color: var(--brand); color: var(--surface); background: var(--brand); }
.record-button { align-self: center; padding: 9px 12px; border: 1px solid #c6cdd6; background: white; border-radius: 8px; color: var(--brand); font-weight: 800; white-space: nowrap; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; padding-top: 24px; }
.pagination button { padding: 8px 12px; border: 1px solid #c6cdd6; border-radius: 8px; background: white; color: var(--ink); }
.pagination button:disabled { opacity: .45; cursor: default; }

footer { padding: 28px max(26px, calc((100vw - 1188px)/2)); background: #111e32; color: #d6deea; display: flex; justify-content: space-between; gap: 20px; font-size: 12px; }
footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: #d6deea; text-underline-offset: 3px; }
dialog { width: min(820px, calc(100vw - 32px)); max-height: calc(100vh - 60px); padding: 28px; border: 0; border-radius: 16px; color: var(--ink); background: var(--surface); box-shadow: 0 30px 90px rgba(0, 0, 0, .28); overflow: auto; }
dialog::backdrop { background: rgba(14, 24, 39, .62); backdrop-filter: blur(4px); }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: white; font-size: 22px; }
.article-title { margin: 14px 0 10px; font: 700 30px/1.2 Georgia, serif; }
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; margin: 22px 0; padding: 18px; background: #f6f7f9; border-radius: 10px; }
.article-grid dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.article-grid dd { margin: 3px 0 0; }
.pdf-button { display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 8px; background: var(--brand); color: white; text-decoration: none; font-weight: 800; }
.article-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.download-button { display: inline-flex; align-items: center; padding: 12px 16px; border: 1px solid var(--brand); border-radius: 8px; color: var(--brand); background: var(--surface); text-decoration: none; font-weight: 800; }
.affiliations { margin: 24px 0; padding-top: 18px; border-top: 1px solid var(--line); }
.affiliations h3, .profile-works h3 { margin: 0 0 10px; font: 700 19px Georgia, serif; }
.profile-summary { margin: 20px 0; padding: 12px 14px; border-left: 3px solid var(--accent); background: #f6f7f9; color: #46546b; }
.profile-works { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.profile-work-list { display: grid; gap: 8px; }
.profile-work { padding: 13px 14px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfd; }
.profile-work p { margin: 0 0 4px; }
.profile-work-title { padding: 0; border: 0; background: transparent; color: var(--ink); font: 700 16px/1.35 Georgia, serif; text-align: left; }
.profile-work-title:hover { color: var(--brand); }

:root[data-theme="dark"] .site-header { background: rgba(13, 20, 32, .94); }
:root[data-theme="dark"] .access-badge { border-color: #356958; background: #142d27; }
:root[data-theme="dark"] .language-switch { background: #111a28; }
:root[data-theme="dark"] .language-switch button[aria-pressed="true"] { background: #edf2f7; color: #111827; }
:root[data-theme="dark"] .hero { border-bottom-color: #344154; }
:root[data-theme="dark"] .corpus-stats { background: rgba(21, 31, 47, .72); }
:root[data-theme="dark"] label > span,
:root[data-theme="dark"] .sort-label > span,
:root[data-theme="dark"] .search-field-label { color: #c2ccda; }
:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] .secondary-button,
:root[data-theme="dark"] .record-button,
:root[data-theme="dark"] .pagination button,
:root[data-theme="dark"] .icon-button { color: var(--ink); background: #111a28; border-color: var(--line); }
:root[data-theme="dark"] input::placeholder { color: #7f8ca0; }
:root[data-theme="dark"] .snippet,
:root[data-theme="dark"] .article-grid,
:root[data-theme="dark"] .profile-summary { background: #111a28; color: #c2ccda; }
:root[data-theme="dark"] .profile-work { background: #111a28; }

@media (max-width: 980px) {
  .masthead-inner { grid-template-columns: 86px minmax(0, 1fr); }
  .publisher-logo-frame { width: 80px; height: 80px; }
  .publisher-logo-frame img { width: 65px; }
  .masthead-links { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masthead-links a { min-width: 0; }
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .filter-grid { grid-template-columns: repeat(3, 1fr); }
  .result-card { grid-template-columns: 90px minmax(0, 1fr); }
  .record-button { grid-column: 2; justify-self: start; }
}

@media (max-width: 660px) {
  .masthead-inner { min-height: 0; padding: 22px 16px; grid-template-columns: 68px minmax(0, 1fr); gap: 15px; }
  .publisher-logo-frame { width: 64px; height: 64px; }
  .publisher-logo-frame img { width: 51px; }
  .journal-title-link h1 { font-size: 28px; }
  .journal-alt-title { font-size: 14px; }
  .masthead-kicker { font-size: 9px; }
  .masthead-links { grid-template-columns: 1fr; }
  .header-inner, main { padding-left: 16px; padding-right: 16px; }
  .header-inner { gap: 8px; }
  .brand { min-width: 0; }
  .brand strong { font-size: 20px; }
  .header-actions { flex: 0 0 auto; gap: 6px; }
  .language-switch { gap: 0; padding: 2px; }
  .language-switch button { padding: 5px 7px; }
  .theme-button { width: 36px; height: 36px; }
  .brand small, .access-badge { display: none; }
  .hero { min-height: auto; padding-top: 28px; padding-bottom: 28px; }
  .hero h2 { font-size: 30px; }
  .corpus-stats { grid-template-columns: 1fr; }
  .corpus-stats div { border-right: 0; border-bottom: 1px solid var(--line); }
  .search-panel { padding: 22px 16px; }
  .primary-search-grid, .filter-grid { grid-template-columns: 1fr; }
  .section-heading, .results-toolbar, .form-actions, footer { align-items: flex-start; flex-direction: column; }
  .primary-button { width: 100%; }
  .result-card { grid-template-columns: 1fr; gap: 10px; }
  .record-button { grid-column: 1; }
  .toolbar-actions { width: 100%; }
  .toolbar-actions { flex-wrap: wrap; }
  .sort-controls { width: 100%; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr); gap: 8px; }
  .sort-label, .sort-direction-label { min-width: 0; }
  .sort-label select { padding: 7px 6px; font-size: 12px; }
  .export-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .export-actions > .secondary-button { min-width: 0; padding-left: 8px; padding-right: 8px; }
  .snippet-link { width: 100%; justify-content: space-between; }
  .article-grid { grid-template-columns: 1fr; }
}
