:root {
  --ijms-primary: #123b5d;
  --ijms-secondary: #276678;
  --ijms-accent: #b66a28;
  --ijms-bg: #f5f7f8;
  --ijms-heading: #142633;
  --ijms-text: #3c4a54;
  --white: #fff;
  --muted: #6e7b84;
  --line: #d9e0e4;
  --paper: #fff;
  --ink: #102d40;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 16px 42px rgba(16, 45, 64, .09);
  --radius: 4px;
  --shell: min(1240px, calc(100% - 40px));
  --content: min(820px, calc(100% - 40px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ijms-bg); color: var(--ijms-text); font: 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ijms-primary); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--ijms-accent); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #f2a654; outline-offset: 3px; }
h1, h2, h3, h4, h5, h6 { color: var(--ijms-heading); font-family: var(--serif); font-weight: 600; line-height: 1.13; margin: 0 0 .65em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 5.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.28rem, 2vw, 1.65rem); }
p { margin: 0 0 1.2em; }
.site-shell { width: var(--shell); margin-inline: auto; }
.content-shell { width: var(--content); margin-inline: auto; }
.reading-width { max-width: 820px; }
.screen-reader-text { position: absolute!important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto!important; width: auto; height: auto; top: 10px; left: 10px; padding: 12px 18px; background: var(--white); color: var(--ink); z-index: 100000; }
.skip-link { font-weight: 700; }
.eyebrow { color: var(--ijms-accent); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.lead { color: #3e505c; font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.6; }
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-muted { background: #edf1f2; }
.section-ink { background: var(--ink); color: #dce7ed; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 40px; }
.section-heading > p { max-width: 540px; margin: 0; }
.section-heading-light h2 { color: var(--white); }
.content-section { padding-block: clamp(48px, 7vw, 90px); }
.page-hero { padding: clamp(70px, 10vw, 128px) 0; background: linear-gradient(135deg, var(--ink), var(--ijms-primary)); color: #dce7ed; }
.page-hero h1, .article-hero h1 { color: var(--white); }
.page-hero p { max-width: 740px; font-size: 1.15rem; }
.page-hero-compact { padding-block: clamp(40px, 5.5vw, 70px); min-height: 240px; display: grid; align-content: center; }
.page-hero-compact h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
.prose { font-size: 1.08rem; max-width: 760px; margin-inline: auto; }
.prose > * { max-width: 760px; }
.prose > .alignwide { max-width: 1100px; margin-inline: calc((760px - min(1100px, 90vw)) / 2); }
.prose > .alignfull { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); }
.prose h2, .prose h3 { margin-top: 1.7em; }
.prose blockquote { border-left: 4px solid var(--ijms-accent); margin: 2em 0; padding: .5em 0 .5em 1.5em; color: var(--ijms-heading); font: 1.35rem/1.55 var(--serif); }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 12px; text-align: left; }
/* Author/Reviewer Dashboard pages: fill the wider .site-shell they're now
   rendered in instead of the normal 760px reading column -- their tables
   and multi-column cards need the room. */
.prose.full-dashboard-content, .prose.full-dashboard-content > * { max-width: none; }
/* The "Full Width" page template (templates/full-width.php) already tags
   its article with this class, but nothing overrode .prose's 760px cap --
   so pages using it (e.g. Login, which has its own wider two-column
   .ijms-login-shell) were still squeezed. */
.prose.full-width-content, .prose.full-width-content > * { max-width: none; }

.utility-bar { background: #0a293d; color: #c5d6df; font-size: .78rem; }
.utility-inner, .branding-inner, .navigation-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.utility-inner { min-height: 36px; }
.utility-left, .utility-contact, .utility-identifiers { display: flex; gap: 20px; }
.utility-bar a { color: inherit; text-decoration: none; }
/* Account links (My Dashboard/My Account/Sign Out, or Sign In/Register)
   live in .header-actions .account-links on desktop, unchanged. Below
   900px they move here instead -- see responsive.css -- since stacked
   full-width buttons next to the logo read as broken on narrow screens. */
.utility-account { display: none; align-items: center; gap: 14px; flex: 0 0 auto; }
.utility-account .utility-link { font-weight: 700; color: var(--white); }
.utility-account .utility-link:not(.utility-link-cta):hover { text-decoration: underline; }
.utility-account .utility-link-cta { padding: 5px 14px; border-radius: 999px; background: var(--ijms-accent); color: var(--white); }
.utility-account .utility-link-cta:hover { opacity: .88; }
.branding-row { background: var(--white); border-bottom: 1px solid var(--line); }
.branding-inner { min-height: 106px; }
.site-branding { display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand-logo img { width: auto; max-height: 66px; }
.brand-copy { display: flex; min-width: 0; flex-direction: column; color: inherit; text-decoration: none; }
.site-title { color: var(--ijms-heading); font: 600 clamp(1.35rem, 2.5vw, 2.1rem)/1.12 var(--serif); }
.site-description { color: var(--muted); font-size: .84rem; max-width: 620px; }
.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.site-header.is-sticky { position: sticky; top: 0; z-index: 95; }
.primary-navigation { background: var(--white); box-shadow: 0 3px 8px rgba(16,45,64,.05); }
.primary-menu, .secondary-menu, .footer-menu, .legal-menu { list-style: none; margin: 0; padding: 0; }
.primary-menu { display: flex; flex-wrap: wrap; }
.primary-menu a { display: block; padding: 17px 16px; color: var(--ijms-heading); font-size: .88rem; font-weight: 700; text-decoration: none; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--ijms-accent); }
.primary-menu .menu-item-has-children { position: relative; }
.primary-menu .sub-menu { position: absolute; display: none; min-width: 230px; z-index: 30; list-style: none; margin: 0; padding: 8px; background: var(--white); box-shadow: var(--shadow); }
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { display: block; }
.primary-menu .sub-menu a { padding: 10px 12px; }
.secondary-menu { display: flex; gap: 18px; }
.secondary-menu a { font-size: .82rem; font-weight: 700; text-decoration: none; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; }
.menu-toggle > span:not(.screen-reader-text) { display: block; height: 2px; margin: 5px 0; background: var(--ijms-heading); }
.search-form { display: flex; gap: 10px; width: min(720px, 100%); }
.search-form input { min-width: 0; flex: 1; }

.site-footer { background: #0b2638; color: #b9cad4; }
.footer-grid { display: grid; grid-template-columns: 1.8fr repeat(4, minmax(120px, 1fr)); gap: 42px; padding-block: 70px; }
.footer-title { color: var(--white); font: 600 1.45rem var(--serif); }
.footer-logo img { width: auto; max-height: 56px; }
.footer-column h2 { color: var(--white); font: 600 1rem var(--sans); }
.footer-column ul { list-style: none; margin: 0; padding: 0; }
.footer-column a { color: #dbe8ee; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 22px; font-size: .8rem; }
.footer-bottom p { margin: 0; }
.legal-menu { display: flex; flex-wrap: wrap; gap: 18px; }
.legal-menu a { color: inherit; }

.journal-hero { position: relative; overflow: hidden; background: var(--ijms-primary); color: #e5eef3; }
.journal-hero::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: var(--hero-image, radial-gradient(circle at 80% 20%, #fff 0 2px, transparent 3px)); background-size: cover; background-position: center; }
.journal-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,35,54,.98) 0%, rgba(18,59,93,.94) 58%, rgba(18,59,93,.55) 100%); }
.hero-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .75fr); gap: clamp(40px, 8vw, 110px); align-items: end; min-height: 620px; padding-block: 105px 92px; }
.hero-copy h1 { color: var(--white); max-width: 900px; }
.hero-copy > p:not(.eyebrow) { max-width: 700px; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { border-left: 1px solid rgba(255,255,255,.28); padding-left: 34px; }
.hero-note blockquote { margin: 0 0 22px; color: var(--white); font: 1.55rem/1.45 var(--serif); }
.hero-note a { color: #fff; }
.note-label { color: #bfd0da; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.journal-highlights { background: var(--white); border-bottom: 1px solid var(--line); }
.highlights-heading { padding-top: 26px; }
.highlights-heading p { margin: 0; }
.highlights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); padding-bottom: 4px; }
.highlight { display: flex; flex-direction: row; align-items: flex-start; gap: 14px; padding: 22px; color: var(--ijms-heading); font-size: .83rem; font-weight: 700; text-align: left; }
.highlight-mark { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(182, 106, 40, .1); color: var(--ijms-accent); font-size: .95rem; }
.highlight-mark img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.highlight>span:last-child { padding-top: 3px; }
.highlight strong { display: block; font-size: .92rem; letter-spacing: .01em; }
.highlight small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 5px; color: var(--muted); font-weight: 500; line-height: 1.5; }
.highlights-empty { margin: 0; padding: 18px 0 26px; color: var(--muted); }
.about-grid { display: grid; grid-template-columns: 1.65fr .55fr; gap: clamp(50px, 10vw, 140px); align-items: center; }
.journal-cover-wrap { margin: 0; filter: drop-shadow(0 24px 24px rgba(16,45,64,.18)); }
.journal-cover-wrap img { width: 100%; }
.error-page { min-height: 64vh; padding-block: 90px; text-align: center; }
.error-code { margin: 0; color: #dce3e7; font: 700 clamp(6rem, 20vw, 14rem)/.8 var(--serif); }
.error-page .search-form { margin: 30px auto; }
.post-list { display: grid; gap: 24px; }
.post-card { display: grid; grid-template-columns: minmax(180px, .45fr) 1fr; gap: 28px; padding: 26px; background: var(--white); border: 1px solid var(--line); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.entry-meta { color: var(--muted); font-size: .8rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.nav-links { display: flex; justify-content: space-between; gap: 20px; margin-block: 36px; }
.comments-area { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--line); }
