/* ==========================================================================
   Journal theme (v6)
   A restrained, editorial look: serif headings, hairline rules, square-ish
   corners, one accent colour. No gradients, shadows or hover "lifts".
   Single stylesheet for the public site (layout, home, issues, article, pages).
   ========================================================================== */

:root {
    --ink: #1b2430;
    --ink-soft: #5a6573;
    --line: #d8dde3;
    --line-soft: #e8ebef;
    --paper: #ffffff;
    --paper-alt: #f5f6f8;
    --accent: #17427a;
    --accent-dark: #0f2f58;
    --accent-soft: #e8eef6;
    --serif: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;   /* headings: Poppins, as before */
    --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --radius: 3px;
}

/* ---------- base ---------- */
html { font-size: 15px; scroll-behavior: smooth; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; font-family: var(--sans); font-size: .933rem; line-height: 1.7; color: var(--ink);
    background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.3; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; }
p { margin-top: 0; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--ink-soft); }
.card-soft { border: 1px solid var(--line); background: #fff; padding: 20px; border-radius: var(--radius); }
@media (min-width: 1200px) { .container { max-width: 1160px; } }

/* ---------- buttons ---------- */
.btn { border-radius: var(--radius); font-family: var(--sans); font-weight: 600; font-size: .95rem; padding: .5rem 1.1rem; }
.btn-sm { font-size: .88rem; padding: .35rem .85rem; }
.btn-primary {
    --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--accent-dark); --bs-btn-hover-border-color: var(--accent-dark); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--accent-dark); --bs-btn-active-border-color: var(--accent-dark);
    --bs-btn-focus-shadow-rgb: 23, 66, 122; --bs-btn-disabled-bg: var(--accent); --bs-btn-disabled-border-color: var(--accent);
}
.btn-outline-secondary {
    --bs-btn-color: var(--ink); --bs-btn-border-color: #9aa5b1;
    --bs-btn-hover-bg: var(--paper-alt); --bs-btn-hover-color: var(--accent); --bs-btn-hover-border-color: var(--accent);
    --bs-btn-active-bg: var(--accent-soft); --bs-btn-active-color: var(--accent); --bs-btn-active-border-color: var(--accent);
    --bs-btn-focus-shadow-rgb: 23, 66, 122;
}
.btn-outline-primary {
    --bs-btn-color: var(--accent); --bs-btn-border-color: var(--accent);
    --bs-btn-hover-bg: var(--accent); --bs-btn-hover-border-color: var(--accent); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--accent-dark); --bs-btn-active-border-color: var(--accent-dark); --bs-btn-active-color: #fff;
}
.text-link { font-weight: 600; font-size: .92rem; }

/* ---------- masthead ---------- */
.masthead { background: var(--accent-dark); color: #fff; }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.masthead-brand { display: flex; align-items: center; gap: 16px; color: #fff; min-width: 0; }
.masthead-brand:hover { color: #fff; text-decoration: none; }
.masthead-cover { height: 56px; width: auto; max-width: 64px; object-fit: cover; background: #fff; border: 1px solid rgba(255, 255, 255, .35); flex-shrink: 0; }
.masthead-text { display: flex; flex-direction: column; min-width: 0; }
.masthead-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; line-height: 1.2; }
.masthead-sub { font-size: .86rem; color: rgba(255, 255, 255, .75); margin-top: 3px; }
.masthead-search { display: flex; width: 100%; max-width: 330px; flex-shrink: 1; }
.masthead-search input {
    flex: 1; min-width: 0; border: 1px solid rgba(255, 255, 255, .4); border-right: 0; background: rgba(255, 255, 255, .08);
    color: #fff; padding: 9px 12px; border-radius: var(--radius) 0 0 var(--radius); font-size: .95rem; font-family: var(--sans); outline: none;
}
.masthead-search input::placeholder { color: rgba(255, 255, 255, .72); }
.masthead-search input:focus { background: #fff; color: var(--ink); border-color: #fff; }
.masthead-search input:focus::placeholder { color: var(--ink-soft); }
.masthead-search input::-webkit-search-cancel-button { display: none; }
.masthead-search button {
    border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .14); color: #fff; padding: 0 15px;
    border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer;
}
.masthead-search button:hover { background: #fff; color: var(--accent-dark); }

/* ---------- main navigation ---------- */
.main-navbar { background: #fff; border-bottom: 1px solid var(--line); padding: 0; position: sticky; top: 0; z-index: 1050; }
.main-navbar.is-stuck { box-shadow: 0 6px 12px -10px rgba(15, 35, 60, .5); }
.navbar .nav-link {
    color: var(--ink) !important; font-weight: 500; font-size: .97rem; padding: 15px 16px; border-radius: 0;
    background: none !important; margin: 0;
}
.navbar .nav-link:hover { color: var(--accent) !important; }
.navbar .nav-link.active { color: var(--accent) !important; box-shadow: inset 0 -3px 0 var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-contact { color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav-contact:hover { color: var(--accent); }

.dropdown-menu { border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 8px 18px rgba(15, 35, 60, .12); padding: 6px 0; margin-top: 0; }
.dropdown-item { padding: 9px 18px; font-size: .95rem; color: var(--ink); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--paper-alt); color: var(--accent); }
.dropdown-item.active, .dropdown-item:active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* sub-menus: a parent that is also a page (label + caret) */
.navbar-nav .dropdown-menu { min-width: 230px; max-width: 330px; max-height: calc(100vh - 170px); overflow-y: auto; }
.navbar-nav .dropdown-item { white-space: normal; }
.navbar-nav > li.has-split { display: flex; align-items: center; flex-wrap: wrap; position: relative; }
.navbar-nav > li.has-split > .dropdown-menu { top: 100%; left: 0; }
.navbar-nav > li.has-split > .nav-link:first-child { padding-right: 4px; }
.navbar .dropdown-toggle-split { background: none; border: 0; padding: 15px 10px 15px 2px !important; margin: 0; }
.navbar .dropdown-toggle-split::after { margin: 0; }

/* mobile menu button */
.navbar-toggler { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px; margin: 8px 0; color: var(--ink); font-weight: 500; background: #fff; }
.navbar-toggler:focus { box-shadow: none; outline: 2px solid var(--accent); outline-offset: 2px; }
.navbar-toggler .toggler-label { font-size: .92rem; }
.navbar-collapse.show, .navbar-collapse.collapsing { padding-bottom: 12px; }
@media (max-width: 991px) {
    .navbar .nav-link { padding: 12px 4px; border-bottom: 1px solid var(--line-soft); }
    .navbar .nav-link.active { box-shadow: none; font-weight: 700; }
    .navbar-nav > li.has-split > .nav-link:first-child { flex: 1 1 auto; }
    .navbar .dropdown-toggle-split { padding: 12px 10px !important; border-bottom: 1px solid var(--line-soft); }
    .navbar-nav .dropdown-menu { max-width: none; box-shadow: none; border: 0; background: var(--paper-alt); width: 100%; border-radius: 0; }
    .nav-actions { padding-top: 14px; }
}

/* ---------- inner pages (CMS pages, archive, search, editorial) ---------- */
.content-wrapper { min-height: 58vh; }
.page-header .container.middleBody { padding: 40px var(--bs-gutter-x, .75rem) 70px !important; }
.page-title { font-size: clamp(1.55rem, 2.8vw, 2rem); font-weight: 700; margin: 0 0 8px; letter-spacing: -.01em; }
.issue-subtitle { color: var(--ink-soft); margin: 0 0 6px; }
.breadcrumb { background: transparent; padding: 0; margin: 0 0 28px; font-size: .86rem; }
.breadcrumb-item a { color: var(--ink-soft); }
.breadcrumb-item a:hover { color: var(--accent); }
.breadcrumb-item.active { color: var(--ink); }

.page-header :is(.col-lg-12, .page-content) { font-size: 1rem; }
.page-header :is(.col-lg-12, .page-content) > :is(p, ul, ol, h2, h3, h4, blockquote):not(.board-role) { max-width: 860px; }
.page-header :is(.col-lg-12, .page-content) > p, .page-header :is(.col-lg-12, .page-content) > ul, .page-header :is(.col-lg-12, .page-content) > ol { color: #26303d; }
.page-header :is(.col-lg-12, .page-content) > h2:not(.page-title) {
    margin: 2rem 0 .8rem; font-size: 1.28rem; padding-bottom: 6px; border-bottom: 1px solid var(--line-soft);
}
.page-header :is(.col-lg-12, .page-content) > h3 { margin: 1.6rem 0 .6rem; font-size: 1.1rem; }
.page-header :is(.col-lg-12, .page-content) > h4 { margin: 1.4rem 0 .5rem; font-size: 1.05rem; }
.page-header :is(.col-lg-12, .page-content) li { margin-bottom: 6px; }
.page-header :is(.col-lg-12, .page-content) > :is(p, ul, ol, blockquote) a:not(.btn) { text-decoration: underline; text-decoration-color: rgba(23, 66, 122, .35); text-underline-offset: 3px; }
.page-header :is(.col-lg-12, .page-content) > :is(p, ul, ol, blockquote) a:not(.btn):hover { text-decoration-color: var(--accent); }
.page-header table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.page-header table th, .page-header table td { border: 1px solid var(--line); padding: 9px 12px; vertical-align: top; }
.page-header table th { background: var(--paper-alt); text-align: left; }
.page-content [id], .page-header h2[id], .page-header h3[id], .page-header h4[id] { scroll-margin-top: 90px; }

/* ---------- home ---------- */
.home-intro { background: var(--paper-alt); border-bottom: 1px solid var(--line); padding: 56px 0 52px; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.intro-title { font-size: clamp(1.75rem, 3.6vw, 2.4rem); font-weight: 700; margin: 0 0 16px; letter-spacing: -.012em; }
.intro-lead { font-family: var(--sans); font-size: 1.02rem; line-height: 1.8; color: #2b3543; max-width: 64ch; margin-bottom: 0; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 34px; }
.facts { display: flex; flex-wrap: wrap; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); row-gap: 14px; }
.facts > div { padding-right: 22px; margin-right: 22px; border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.facts dt { font-family: var(--sans); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); }
.facts dd { margin: 2px 0 0; font-weight: 600; }

.current-issue { background: #fff; border: 1px solid var(--line); padding: 20px 22px; }
.current-issue-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-soft); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.current-issue-body { display: flex; gap: 18px; align-items: flex-start; }
.current-issue-cover { width: 92px; flex-shrink: 0; border: 1px solid var(--line); }
.current-issue-name { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; margin: 0 0 2px; line-height: 1.3; }
.current-issue-year { color: var(--ink-soft); margin: 0 0 10px; }

.home-body { padding: 48px 0 70px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.section-head h2 { font-size: 1.3rem; margin: 0; }

/* article rows (home + issue pages) */
.art-row { padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.art-row:last-of-type { border-bottom: 0; }
.art-row-kicker { font-size: .8rem; color: var(--ink-soft); margin: 0 0 6px; }
.art-row-type { font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); margin-right: 12px; }
.art-row-title { font-size: 1.12rem; line-height: 1.35; margin: 0 0 6px; }
.art-row-title a { color: var(--ink); }
.art-row-title a:hover { color: var(--accent); }
.art-row-authors { color: #3a4553; margin: 0 0 6px; font-size: .97rem; }
.art-row-abstract { color: #3a4553; font-size: .95rem; margin: 0 0 8px; }
.art-row-meta { font-size: .85rem; color: var(--ink-soft); margin: 0 0 8px; word-break: break-word; }
.art-row-meta a { margin-right: 14px; }
.art-row-links { margin: 0; }
.art-row-links a { font-size: .88rem; font-weight: 600; margin-right: 20px; }
.issue-row { display: flex; gap: 26px; align-items: flex-start; max-width: 940px; }
.issue-row-main { flex: 1; min-width: 0; }
.issue-row-img { flex: 0 0 120px; }
.issue-row-img img { display: block; border: 1px solid var(--line); }

/* side column */
.side-block { margin-bottom: 34px; }
.side-title { font-family: var(--sans); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--ink); padding-bottom: 8px; border-bottom: 2px solid var(--ink); margin: 0 0 14px; }
.side-facts { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 7px; font-size: .92rem; margin: 0 0 16px; }
.side-facts dt { color: var(--ink-soft); font-weight: 500; }
.side-facts dd { margin: 0; word-break: break-word; }
.announce-item { padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.announce-item:first-of-type { padding-top: 0; }
.announce-item:last-child { border-bottom: 0; }
.announce-title { font-weight: 600; color: var(--ink); display: block; line-height: 1.35; }
.announce-title:hover { color: var(--accent); }
.announce-title .pin { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); margin-right: 4px; }
.announce-body { font-size: .88rem; color: #3a4553; margin: 3px 0 2px; }
.announce-date { font-size: .8rem; color: var(--ink-soft); }
.most-read { padding-left: 18px; margin: 0; font-size: .93rem; }
.most-read li { margin-bottom: 11px; padding-left: 2px; }
.most-read span { display: block; font-size: .8rem; color: var(--ink-soft); }
.licence-img { max-width: 110px; }

/* ---------- archive ---------- */
.archive-volume { margin-bottom: 30px; }
.archive-volume h4 { font-size: 1.15rem; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.archiveData { list-style: none; padding: 0; margin: 0; }
.archive-volume .issue-pill {
    display: inline-block; padding: 8px 20px; margin: 0 8px 8px 0; border: 1px solid var(--line); border-radius: var(--radius);
    font-weight: 600; color: var(--ink); background: #fff;
}
.archive-volume .issue-pill:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; }

/* ---------- editorial board ---------- */
.board-role { margin: 2.4rem 0 1rem; font-size: 1.15rem; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.board-card { display: flex; gap: 18px; height: 100%; background: #fff; border: 1px solid var(--line); padding: 18px; border-radius: var(--radius); }
.board-photo { width: 88px; height: 88px; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; border: 1px solid var(--line); }
.board-photo.placeholder { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-family: var(--serif); font-weight: 600; font-size: 1.5rem; }
.board-card h6 { font-size: .98rem; font-family: var(--serif); }
.board-contact { font-size: .86rem; line-height: 1.6; word-break: break-word; }
.board-contact .lbl { color: var(--ink-soft); font-weight: 600; }
.board-contact .sep { color: var(--ink-soft); margin: 0 2px; }
.board-links a { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--accent); margin-right: 6px; }
.board-links a:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; }

/* ---------- article page ---------- */
.article-page { padding: 32px 0 76px; }
.article-page .breadcrumb { margin-bottom: 26px; }
.art-kicker { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 12px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.art-type { color: var(--accent); }
.art-title { font-size: clamp(1.45rem, 2.9vw, 2rem); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; margin: 0 0 18px; }
.art-authors { font-size: 1rem; line-height: 1.65; margin: 0 0 8px; }
.art-author sup { font-size: .7em; color: var(--accent); margin-left: 1px; font-weight: 700; }
.art-orcid { color: #a6ce39; margin-left: 3px; font-size: .95em; }
.art-orcid:hover { color: #7da019; }
.art-affils { padding-left: 1.2em; margin: 0 0 8px; font-size: .88rem; color: var(--ink-soft); }
.art-affils li { margin-bottom: 2px; }
.art-corr { font-size: .9rem; color: var(--ink-soft); margin: 0 0 8px; }
.art-citeline { font-size: .94rem; color: var(--ink-soft); padding: 12px 0; margin: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); word-break: break-word; }
.art-actions { display: flex; gap: 10px; margin: 0 0 22px; }
.art-jump { display: flex; gap: 28px; margin: 0 0 30px; border-bottom: 1px solid var(--line); }
.art-jump a { padding: 8px 0 10px; font-weight: 600; font-size: .95rem; color: var(--ink); margin-bottom: -1px; border-bottom: 3px solid transparent; }
.art-jump a:hover { color: var(--accent); border-bottom-color: var(--accent); text-decoration: none; }
.art-section { margin: 0 0 38px; scroll-margin-top: 80px; }
.art-section h2 { font-size: 1.2rem; margin: 0 0 14px; }
.art-abstract { font-family: var(--sans); font-size: .98rem; line-height: 1.85; color: #232c38; max-width: 75ch; }
.art-abstract p { margin-bottom: 1em; }
.art-keywords { margin: 0; }
.art-keywords a { display: inline-block; border: 1px solid var(--line); padding: 3px 12px; margin: 0 8px 8px 0; font-size: .9rem; color: var(--ink); border-radius: var(--radius); background: #fff; }
.art-keywords a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.art-notes p { font-size: .92rem; margin-bottom: 6px; }
.references { font-size: .95rem; }
.references ol, .references ul { padding-left: 1.5em; }
.references li { margin-bottom: 10px; line-height: 1.55; }
.art-pager { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 10px; }
.art-pager a { flex: 1; max-width: 48%; color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: .95rem; line-height: 1.4; }
.art-pager a:hover { color: var(--accent); text-decoration: none; }
.art-pager a span { display: block; font-family: var(--sans); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); margin-bottom: 4px; }
.art-pager-next { text-align: right; margin-left: auto; }

.art-side { position: sticky; top: 76px; }
.art-side-actions { display: grid; gap: 10px; margin-bottom: 32px; }
.art-metrics { display: flex; gap: 32px; margin: 0; }
.art-metrics b { display: block; font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; }
.art-metrics span { font-size: .85rem; color: var(--ink-soft); }
.art-share { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.art-share a, .art-share button { border: 1px solid var(--line); background: #fff; padding: 5px 13px; font-size: .88rem; font-weight: 500; color: var(--ink); border-radius: var(--radius); font-family: var(--sans); cursor: pointer; }
.art-share a:hover, .art-share button:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* cite dialog */
.modal-content { border-radius: var(--radius); border: 1px solid var(--line); }
.modal-header { background: #fff; border-bottom: 1px solid var(--line); }
.modal-title { font-size: 1.2rem; color: var(--ink); margin: 0; }
.modal-dialog .nav-tabs { border-bottom: 1px solid var(--line); }
.modal-dialog .nav-tabs .nav-link { color: var(--ink-soft); border-radius: 0; font-weight: 600; font-size: .92rem; }
.modal-dialog .nav-tabs .nav-link.active { color: var(--accent); border-color: var(--line) var(--line) #fff; }
.citation-text { font-family: var(--sans); font-size: .93rem; line-height: 1.75; background: var(--paper-alt); border: 1px solid var(--line); padding: 14px 16px; border-radius: var(--radius); }
.cite-export { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; font-size: .9rem; color: var(--ink-soft); }
.cite-export a { margin-left: 14px; font-weight: 600; }

/* ---------- side panel: section pages + contents ---------- */
.page-aside .aside-sticky { position: sticky; top: 76px; }
.aside-box { background: #fff; border: 1px solid var(--line); padding: 16px 18px; margin-bottom: 18px; border-radius: var(--radius); }
.aside-title { font-family: var(--sans); font-size: .76rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink); margin: 0 0 10px; font-weight: 700; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.aside-list, .toc-list ul { list-style: none; margin: 0; padding: 0; }
.aside-list li a, .toc-list a { display: block; padding: 5px 0; color: var(--ink); font-size: .92rem; line-height: 1.4; }
.aside-list li a:hover, .toc-list a:hover { color: var(--accent); text-decoration: none; }
.aside-list li a.is-current, .toc-list a.is-active { color: var(--accent); font-weight: 700; }
.toc-list .toc-l3 a { padding-left: 14px; font-size: .88rem; }
.toc-list .toc-l4 a { padding-left: 28px; font-size: .86rem; color: var(--ink-soft); }
.toc-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; background: none; border: 0; padding: 0; font-weight: 600; color: var(--ink); }
@media (max-width: 991px) { .page-aside .aside-sticky { position: static; } .toc-box .collapse { margin-top: 10px; } }

/* contents drawer (click to open, left or right) */
.toc-fab { position: fixed; top: 46%; z-index: 1040; display: flex; align-items: center; gap: 8px; border: 0; color: #fff; padding: 12px 14px; font-weight: 600; font-size: .85rem; background: var(--accent); cursor: pointer; }
.toc-fab-right { right: 0; border-radius: var(--radius) 0 0 var(--radius); }
.toc-fab-left { left: 0; border-radius: 0 var(--radius) var(--radius) 0; }
@media (max-width: 575px) { .toc-fab span { display: none; } }
.toc-overlay { position: fixed; inset: 0; background: rgba(9, 22, 40, .5); z-index: 1060; }
.toc-drawer { position: fixed; top: 0; bottom: 0; width: min(340px, 88vw); background: #fff; z-index: 1070; padding: 18px 18px; overflow-y: auto; transition: transform .22s ease; visibility: hidden; }
.toc-drawer-right { right: 0; transform: translateX(105%); border-left: 1px solid var(--line); }
.toc-drawer-left { left: 0; transform: translateX(-105%); border-right: 1px solid var(--line); }
.toc-drawer.is-open { transform: none; visibility: visible; }
.toc-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
body.toc-locked { overflow: hidden; }

/* ---------- search results ---------- */
.search-tabs { border-bottom: 1px solid var(--line); }
.search-tabs .nav-link { border-radius: 0; color: var(--ink-soft); font-weight: 600; }
.search-tabs .nav-link.active { color: var(--accent); border-color: var(--line) var(--line) #fff; }

/* ---------- footer ---------- */
footer.site-footer { background: #0f2236; color: #c4cfdc; padding: 56px 0 22px; font-size: .95rem; }
footer.site-footer h6 { font-family: var(--sans); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin: 0 0 14px; }
footer.site-footer .foot-about h6 { font-family: var(--serif); font-size: 1.1rem; text-transform: none; letter-spacing: 0; font-weight: 600; margin-bottom: 6px; }
footer.site-footer a { color: #dbe5f1; }
footer.site-footer a:hover { color: #fff; }
footer.site-footer p { margin-bottom: .6rem; }
footer.site-footer .foot-issn { color: #9fb0c4; font-size: .88rem; }
footer.site-footer .foot-facts { color: #9fb0c4; font-size: .88rem; }
footer.site-footer .foot-note { font-size: .88rem; color: #9fb0c4; }
footer.site-footer .foot-list { list-style: none; padding: 0; margin: 0; }
footer.site-footer .foot-list li { margin-bottom: 8px; }
footer.site-footer .muted { color: #9fb0c4; }
footer.site-footer .foot-social a { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--radius); margin-right: 8px; }
footer.site-footer .foot-social a:hover { background: #fff; color: #0f2236; text-decoration: none; }
footer.site-footer .lic-badge { background: #fff; padding: 5px 7px; display: inline-block; border-radius: 2px; }
footer.site-footer .lic-badge img { display: block; max-width: 100px; }
footer.site-footer .foot-indexed { margin: 26px 0 0; font-size: .88rem; color: #9fb0c4; }
footer.site-footer .foot-indexed strong { color: #fff; margin-right: 8px; }
footer.site-footer .foot-bottom {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 24px;
    border-top: 1px solid rgba(255, 255, 255, .16); margin-top: 38px; padding-top: 18px; font-size: .88rem; color: #aab8c8;
}
footer.site-footer .foot-bottom a { color: #fff; }

.back-to-top {
    display: none; position: fixed; right: 20px; bottom: 20px; width: 40px; height: 40px; align-items: center; justify-content: center;
    background: var(--accent); color: #fff; border-radius: var(--radius); z-index: 1030;
}
.back-to-top:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }

/* ---------- accessibility ---------- */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 10000; background: #fff; color: var(--accent); padding: 10px 16px; border: 1px solid var(--accent); font-weight: 600; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ======================================================================
   Responsive safety for content pasted from editors (tables, images, embeds)
   ====================================================================== */
main img, main video, main canvas { max-width: 100%; height: auto; }
main iframe, main embed, main object { max-width: 100%; }
main iframe[src*="youtube"], main iframe[src*="youtu.be"], main iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
main pre { max-width: 100%; overflow-x: auto; }
main [style*="width"]:not(.progress-bar):not(img) { max-width: 100% !important; }
main .page-content, main .card-body, main .references, main .art, main .side-block, main .board-card, main .aside-box, main .art-row {
    overflow-wrap: anywhere;
}
.table-scroll { overflow-x: auto; max-width: 100%; margin: 1rem 0; -webkit-overflow-scrolling: touch; }
.table-scroll > table { margin: 0; max-width: none; }
main .table-scroll > table[style*="width"] { max-width: none !important; }
main table, main table th, main table td { overflow-wrap: normal; word-break: normal; }
.page-header [style*="border-left"], .page-header blockquote { border-left: 0 !important; }

/* ---------- tablets and phones ---------- */
@media (max-width: 991px) {
    .art-side { position: static; }
    .home-intro { padding: 40px 0 36px; }
}
@media (max-width: 767px) {
    .masthead-inner { flex-wrap: wrap; gap: 14px; padding-top: 14px; padding-bottom: 14px; }
    .masthead-search { max-width: none; }
    .masthead-title { font-size: 1.1rem; }
    .masthead-cover { height: 44px; }
    .home-intro { padding: 32px 0 30px; }
    .facts > div { padding-right: 16px; margin-right: 16px; }
    .home-body { padding: 32px 0 50px; }
    .art-row-title { font-size: 1.05rem; }
    .issue-row { flex-direction: column-reverse; gap: 12px; }
    .issue-row-img { flex-basis: auto; max-width: 140px; }
    .board-card { flex-direction: column; align-items: flex-start; }
    .page-header .container.middleBody { padding-top: 28px !important; padding-bottom: 44px !important; }
    .article-page { padding: 22px 0 50px; }
    .art-jump { gap: 20px; overflow-x: auto; }
    .art-pager { flex-direction: column; gap: 16px; }
    .art-pager a { max-width: none; }
    .art-pager-next { text-align: left; margin-left: 0; }
    main table:not(.is-wrapped) { display: block; overflow-x: auto; max-width: 100%; }
    .page-header table th, .page-header table td { padding: 8px 10px; font-size: .9rem; }
    footer.site-footer { padding-top: 40px; }
    footer.site-footer .foot-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 400px) {
    html { font-size: 14px; }
    body { font-size: 1rem; }
    .container { padding-left: 14px; padding-right: 14px; }
    .masthead-title { font-size: 1rem; }
    .masthead-sub { font-size: .78rem; }
    .intro-title { font-size: 1.55rem; }
    .page-title { font-size: 1.4rem; }
    .modal-dialog { margin: 10px; }
    .toc-fab { padding: 10px 11px; }
}
@media (pointer: coarse) {
    .navbar .nav-link, .dropdown-item, .aside-list li a, .toc-list a { min-height: 44px; display: flex; align-items: center; }
    .navbar-toggler, .masthead-search button { min-height: 44px; }
    .breadcrumb-item a { padding: 6px 0; display: inline-block; }
    .board-links a { width: 38px; height: 38px; }
}

/* ======================================================================
   PatternIQ Mining additions
   ====================================================================== */

/* key facts table (About page, policy pages) */
.fact-table { width: 100%; max-width: 860px; border-collapse: collapse; margin: 1rem 0 1.6rem; font-size: .97rem; }
.fact-table th, .fact-table td { border: 1px solid var(--line); padding: 9px 14px; vertical-align: top; text-align: left; }
.fact-table th { width: 34%; background: var(--paper-alt); font-weight: 600; color: var(--ink); }

/* highlighted statement at the top of a policy page */
.policy-note { max-width: 860px; background: var(--accent-soft); border: 1px solid #cfdcec; border-radius: var(--radius); padding: 14px 18px; margin: 0 0 1.4rem; color: var(--ink); }
.policy-note p:last-child { margin-bottom: 0; }

/* policy overview: one card per policy */
.policy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.policy-grid li { margin: 0 !important; }
.policy-grid a { display: block; height: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--ink); font-weight: 600; background: #fff; text-decoration: none !important; }
.policy-grid a:hover { border-color: var(--accent); color: var(--accent); }
.policy-grid a span { display: block; font-weight: 400; font-size: .86rem; color: var(--ink-soft); margin-top: 4px; line-height: 1.5; }

/* editorial board: lead card for the Editor-in-Chief */
.board-lead { display: flex; gap: 24px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.board-photo { object-position: center 20%; }
.board-lead .board-photo { width: 132px; height: 132px; }
.board-lead .board-photo.placeholder { font-size: 2.1rem; }
.board-lead h5 { font-size: 1.15rem; margin: 0 0 4px; }
.board-lead .board-bio { font-size: .94rem; color: #26303d; margin: 12px 0 0; max-width: 78ch; }
.board-card .small, .board-lead .small { line-height: 1.55; }
.board-note { font-size: .9rem; color: var(--ink-soft); margin-top: 26px; }
@media (max-width: 767px) { .board-lead { flex-direction: column; } }

/* issue pages */
.issue-badge { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); background: var(--accent-soft); padding: 3px 9px; border-radius: var(--radius); margin-left: 8px; vertical-align: middle; }
.art-row-kicker .sep { margin: 0 8px; color: var(--line); }
.archiveData li { display: inline; }
.archive-volume .issue-pill small { display: block; font-weight: 400; font-size: .78rem; color: var(--ink-soft); }
.archive-volume .issue-pill:hover small { color: rgba(255, 255, 255, .85); }

/* article page: licence statement */
.art-licence { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-size: .9rem; color: #26303d; background: var(--paper-alt); }
.art-licence img { max-width: 88px; flex-shrink: 0; }
.art-licence p { margin: 0; }

/* search results */
.search-result { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.search-result:last-child { border-bottom: 0; }
.search-result .sr-title { font-size: 1.05rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.search-result .sr-title:hover { color: var(--accent); }
.search-result .sr-meta { font-size: .82rem; color: var(--ink-soft); margin: 2px 0 6px; }
.search-result .sr-snippet { font-size: .92rem; color: #26303d; margin: 0; }

/* footer contact block */
footer.site-footer address { font-style: normal; color: #c4cfdc; margin: 0 0 12px; line-height: 1.65; }
