/*--------------------------------------------------------------
# AJBIR theme
# Loaded last on every page. Overrides the Eterna template
# (style.css) with one type system, spacing scale and palette.
--------------------------------------------------------------*/
:root {
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --brand: #1f4fa3;
  --brand-dark: #0f2a5c;
  --brand-soft: #eaf0fb;
  --text: #1d2430;
  --muted: #5a6474;
  --line: #e2e7ef;
  --surface: #ffffff;
  --surface-alt: #f5f7fb;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
  --header-h: 76px;
  --section-y: 64px;
}

@media (max-width: 767px) {
  :root {
    --header-h: 64px;
    --section-y: 40px;
  }
}

/*--------------------------------------------------------------
# Base typography
--------------------------------------------------------------*/
html {
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--brand-dark);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

main h1 { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.375rem); }
main h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); margin: 0 0 1rem; }
main h3 { font-size: 1.375rem; margin: 2rem 0 .75rem; }
main h4 { font-size: 1.1875rem; margin: 1.75rem 0 .5rem; }
main h5, main h6 { font-size: 1.0625rem; margin: 1.25rem 0 .5rem; }

p {
  text-align: left;
  margin: 0 0 1rem;
}

main p, main li {
  color: var(--text);
}

main ul, main ol {
  padding-left: 1.25rem;
}

main li {
  margin: 0 0 .35rem;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color .2s;
}

a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The template made a lot of body copy thin and grey. */
main .fw-light,
main .text-muted {
  font-weight: 400 !important;
  color: var(--muted) !important;
}

main strong, main b {
  font-weight: 600;
  color: var(--text);
}

img {
  max-width: 100%;
  height: auto;
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn-brand,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.375rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.2;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}

.btn-brand {
  background: var(--brand);
  color: #fff;
}

.btn-brand:hover {
  background: var(--brand-dark);
  color: #fff;
  text-decoration: none;
}

.btn-outline {
  border-color: currentColor;
  color: var(--brand);
  background: transparent;
}

.btn-outline:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  text-decoration: none;
}

main .btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  border-radius: 999px;
  padding: .55rem 1.25rem;
  font-weight: 600;
}

main .btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

/*--------------------------------------------------------------
# Header: logo, navigation and social icons on one row
--------------------------------------------------------------*/
#header,
#header.fixed-top {
  position: sticky;
  top: 0;
  z-index: 997;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
  padding: 0 32px;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(180%) blur(8px);
  box-shadow: 0 1px 0 var(--line);
}

#header .header-top {
  display: contents;
}

#header .header-top > div {
  width: auto;
  max-width: none;
  padding: 0;
  margin: 0;
  flex: none;
}

#header .header-top > .logo {
  grid-column: 1;
  grid-row: 1;
}

#header .logo img {
  display: block;
  height: 48px;
  width: auto;
  max-height: none;
}

#header .logo-img-mobile {
  display: none !important;
}

#header .header-top > div:last-child {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  gap: 4px;
}

#header .header-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.125rem;
  color: var(--muted);
  transition: background .2s, color .2s;
}

#header .header-icon:hover {
  background: var(--brand-soft);
  color: var(--brand);
  text-decoration: none;
}

#header .navbg {
  grid-column: 2;
  grid-row: 1;
  height: auto;
  background: none;
  justify-content: center !important;
}

.scrolled-offset {
  margin-top: 0 !important;
}

.navbar {
  padding: 0;
}

.navbar > ul {
  gap: 4px;
}

.navbar a,
.navbar a:focus {
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
}

.navbar > ul > li > a:hover,
.navbar > ul > li:hover > a {
  color: var(--brand);
  background: var(--brand-soft);
  text-decoration: none;
}

.navbar .active,
.navbar .active:focus {
  color: var(--brand);
  font-weight: 600;
}

.navbar .dropdown ul {
  left: 0;
  min-width: 240px;
  padding: 8px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.navbar .dropdown ul a {
  padding: 8px 12px;
  font-size: .9375rem;
  font-weight: 400;
  color: var(--text);
}

.navbar .dropdown ul a:hover,
.navbar .dropdown ul li:hover > a {
  background: var(--brand-soft);
  color: var(--brand);
  text-decoration: none;
}

.navbar .dropdown ul[data-archive-menu] {
  max-height: 70vh;
  overflow-y: auto;
}

.mobile-nav-toggle {
  color: var(--text);
}

.mobile-nav-toggle.bi-x {
  color: #fff;
}

/* Switch to the hamburger menu while the full menu would not fit. */
@media (max-width: 1199px) {
  #header,
  #header.fixed-top {
    grid-template-columns: auto auto 1fr;
    gap: 12px;
    padding: 0 16px;
  }

  #header .navbg {
    grid-column: 3;
    justify-content: flex-end !important;
  }

  #header .header-top > div:last-child {
    grid-column: 2;
    justify-self: end;
  }

  #header .header-top > .logo {
    margin-right: auto;
  }

  .mobile-nav-toggle {
    display: block;
    font-size: 30px;
    padding: 4px;
  }

  .navbar ul {
    display: none;
  }

  .navbar-mobile ul {
    display: block;
    top: 64px;
    border-radius: var(--radius);
    padding: 8px;
  }

  .navbar-mobile a,
  .navbar-mobile a:focus {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .navbar-mobile .dropdown ul {
    margin: 4px 8px 8px;
    box-shadow: none;
    border: 1px solid var(--line);
  }
}

@media (max-width: 767px) {
  #header .logo img {
    height: 40px;
  }

  #header .header-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }
}

/*--------------------------------------------------------------
# Page title band (breadcrumbs)
--------------------------------------------------------------*/
.breadcrumbs {
  margin: 0;
  padding: 48px 0 40px;
  background: linear-gradient(180deg, var(--brand-soft), var(--surface-alt));
  border-bottom: 1px solid var(--line);
}

.breadcrumbs ol {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 0;
  font-size: .875rem;
}

.breadcrumbs ol li::after {
  content: none;
}

.breadcrumbs ol li.end a::after {
  content: "\203A";
  margin-left: 8px;
  color: var(--muted);
}

.breadcrumbs ol li.end a {
  color: var(--muted);
  font-weight: 500;
}

.breadcrumbs h1 {
  margin: 0;
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  font-weight: 600;
  color: var(--brand-dark);
}

@media (max-width: 1200px) {
  .breadcrumbs {
    margin-top: 0;
  }
}

@media (max-width: 767px) {
  .breadcrumbs {
    padding: 32px 0 28px;
  }
}

/*--------------------------------------------------------------
# Sections and layout
--------------------------------------------------------------*/
main .container {
  max-width: 1040px;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 767px) {
  main .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

main > section:not(.breadcrumbs) {
  padding: var(--section-y) 0;
}

main > section.breadcrumbs + section {
  padding-top: calc(var(--section-y) - 8px);
}

/* Template spacer class used above section headings. */
.big-margin-text {
  margin-bottom: .75rem;
}

.big-margin-text h2 {
  margin: 0;
}

/* Text-heavy columns: keep lines a readable length. */
.word,
.about .container > .col-md-12 {
  max-width: 100%;
}

hr,
hr.solid {
  border: 0;
  border-top: 1px solid var(--line);
  opacity: 1;
  margin: 1.5rem 0;
}

/*--------------------------------------------------------------
# Home: hero
--------------------------------------------------------------*/
#hero.hero {
  height: auto;
  margin: 0;
  padding: 0;
  background: linear-gradient(120deg, var(--brand-dark) 0%, var(--brand) 100%);
  color: #fff;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: 48px;
  max-width: 1200px;
  padding: 72px 32px;
}

.hero-eyebrow {
  margin: 0 0 1rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #b9cdf3;
}

#hero.hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.12;
  color: #fff;
}

.hero-lead {
  max-width: 38rem;
  margin: 0 0 2rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #dce6f8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero .btn-brand {
  background: #fff;
  color: var(--brand-dark);
}

.hero .btn-brand:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.hero .btn-outline {
  color: #fff;
}

.hero .btn-outline:hover {
  background: #fff;
  border-color: #fff;
  color: var(--brand-dark);
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .25);
}

@media (max-width: 991px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 24px;
  }

  .hero-media img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 575px) {
  .hero-inner {
    padding: 40px 16px;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions a {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* Home: alternate section backgrounds for rhythm. */
#main.home > section:nth-of-type(even) {
  background: var(--surface-alt);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0;
}

.section-head a {
  font-weight: 600;
}

/*--------------------------------------------------------------
# Issues and articles
--------------------------------------------------------------*/
.issue-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.issue-header .issue-journal {
  margin: 0 0 .25rem;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand);
}

.issue-header h2 {
  margin: 0 0 .25rem;
}

.issue-header .issue-meta {
  margin: 0;
  color: var(--muted);
  font-size: .9375rem;
}

.article-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-card {
  margin: 0;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}

.article-card:hover {
  border-color: #c9d5ea;
  box-shadow: var(--shadow);
}

.article-type {
  display: inline-block;
  margin-bottom: .5rem;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.article-card h3 {
  margin: 0 0 .5rem;
  font-size: 1.25rem;
  line-height: 1.35;
}

.article-card h3 a {
  color: var(--brand-dark);
}

.article-card h3 a:hover {
  color: var(--brand);
}

.article-authors {
  margin: 0 0 1rem;
  color: var(--muted);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  font-size: .9375rem;
  color: var(--muted);
}

.article-meta .pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

@media (max-width: 575px) {
  .article-card {
    padding: 20px;
  }

  .article-card h3 {
    font-size: 1.125rem;
  }
}

.empty-state {
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.empty-state h2 {
  margin-bottom: .5rem;
}

/*--------------------------------------------------------------
# Editorial board
--------------------------------------------------------------*/
.editorial-board h4,
.editorial-board h5 {
  margin-top: 1.5rem;
}

/*--------------------------------------------------------------
# Cards on submission / contact pages
--------------------------------------------------------------*/
main .card,
main .icon-box {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: none !important;
  background: var(--surface);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  font-size: .9375rem;
  background: var(--brand-dark);
  color: #c8d3e6;
}

#footer .footer-top {
  padding: 48px 0 32px;
  background: none;
}

#footer .footer-top .container,
#footer .footer-bottom .container {
  max-width: 1040px;
  padding-left: 24px;
  padding-right: 24px;
}

#footer .related-link {
  text-align: center;
}

#footer .related-link strong {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

#footer .link-img {
  justify-content: center;
  margin: 0 0 24px;
}

#footer .whitebox {
  width: auto;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
}

#footer .whitebox img {
  height: 56px;
  width: auto;
}

#footer .small-font-size,
#footer p {
  margin: 0 auto;
  max-width: 44rem;
  font-size: .875rem;
  line-height: 1.6;
  color: #c8d3e6;
  text-align: center;
}

#footer a {
  color: #fff;
}

#footer a:hover {
  color: #b9cdf3;
}

#footer .footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .15);
  font-size: .875rem;
}

#footer .footer-bottom .row {
  align-items: center;
  row-gap: 8px;
}

#footer .footer-bottom p {
  margin: 0;
  text-align: inherit;
}

#footer .copyright,
#footer .copyright strong {
  color: #c8d3e6;
  font-weight: 400;
}

@media (max-width: 767px) {
  #footer .footer-bottom .col-6 {
    width: 100%;
    text-align: center !important;
  }
}

.back-to-top {
  background: var(--brand);
  border-radius: 50%;
}

.back-to-top:hover {
  background: var(--brand-dark);
}

/*--------------------------------------------------------------
# Neutralise template leftovers
--------------------------------------------------------------*/
/* style.css pads #main to clear the old fixed header; the header is sticky now. */
#main {
  padding-top: 0 !important;
}

/* style.css turns every span inside a link in #main into a black tooltip box. */
#main .issue-cover span,
#main .issue-filter span,
#main .section-head a span,
#main .article-card a span {
  display: block;
  position: static;
  padding: 0;
  background: none;
  color: inherit;
}

/* style.css narrows and centres every hero paragraph. */
#hero.hero p {
  width: auto;
  animation: none;
}

#hero.hero .hero-eyebrow {
  margin: 0 0 1rem;
}

#hero.hero .hero-lead {
  max-width: 38rem;
  margin: 0 0 2rem;
}

#hero.hero .hero-lead {
  font-size: 1.125rem;
}

@media (max-width: 575px) {
  #hero.hero .hero-lead {
    font-size: 1rem;
  }
}


/* Submission page action buttons. */
main .action-button {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  border-radius: 999px;
  color: #fff !important;
  font-weight: 600;
}

main .action-button:hover {
  background: var(--brand-dark) !important;
  border-color: var(--brand-dark) !important;
}

/*--------------------------------------------------------------
# All Issues: featured latest issue, filter, issue covers
--------------------------------------------------------------*/
/* style.css gives every <section> 80px bottom padding. */
#issue-list .archive {
  padding: 0;
}

#issue-list .featured-issue {
  padding: 32px;
}

.issue-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 3 / 4;
  padding: 18px 18px 16px;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 6px 18px rgba(16, 24, 40, .12);
  transition: box-shadow .2s;
}

/* Thin spine on the left edge, like a printed journal. */
.issue-cover::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: rgba(255, 255, 255, .25);
}

.issue-cover--jmap {
  background: linear-gradient(160deg, #4b5d79 0%, #27344a 100%);
}

.issue-cover:hover {
  box-shadow: 0 12px 28px rgba(16, 24, 40, .22);
  color: #fff;
  text-decoration: none;
}

.issue-cover:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

#main .issue-cover .cover-journal {
  align-self: center;
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 4px;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
}

#main .issue-cover .cover-volume {
  margin-top: auto;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.1;
}

#main .issue-cover .cover-issue {
  margin-bottom: auto;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.3;
  opacity: .92;
}

#main .issue-cover .cover-date {
  margin-top: 0;
  padding-top: .5rem;
  border-top: 1px solid rgba(255, 255, 255, .3);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

#main .issue-cover .cover-count {
  font-size: .8125rem;
  opacity: .8;
}

.issue-cover--lg {
  width: 100%;
  max-width: 260px;
  padding: 24px 24px 20px;
}

#main .issue-cover--lg .cover-volume {
  font-size: 2.5rem;
}

#main .issue-cover--lg .cover-issue {
  font-size: 1.625rem;
}

.featured-issue {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-bottom: 56px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--surface-alt), var(--surface));
}

.featured-issue[hidden] {
  display: none;
}

.featured-eyebrow {
  margin: 0 0 .25rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
}

.featured-body h2 {
  margin: 0 0 .25rem;
}

.featured-body h2 a {
  color: var(--brand-dark);
}

.featured-journal {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.featured-articles {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: art;
}

.featured-articles li {
  position: relative;
  margin: 0;
  padding: .75rem 0 .75rem 2.25rem;
  border-top: 1px solid var(--line);
  counter-increment: art;
}

.featured-articles li::before {
  content: counter(art, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .8rem;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--brand);
}

.featured-articles a {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--brand-dark);
}

.featured-articles a:hover {
  color: var(--brand);
}

.featured-articles li > span {
  display: block;
  margin-top: .125rem;
  font-size: .875rem;
  color: var(--muted);
}

.archive-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: .5rem;
}

.archive-head h2 {
  margin: 0;
}

.issue-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.issue-filter button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: 500 .875rem/1.2 var(--font-sans);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}

.issue-filter button:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.issue-filter button[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

#main .issue-filter button span {
  padding: 0 7px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: .75rem;
  font-weight: 600;
}

#main .issue-filter button[aria-pressed="true"] span {
  background: rgba(255, 255, 255, .2);
  color: #fff;
}

.archive-note {
  margin: 0 0 2rem;
  font-size: .9375rem;
  color: var(--muted);
}

.issue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.issue-grid li {
  margin: 0;
}

@media (max-width: 767px) {
  #issue-list .featured-issue {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
  }

  .issue-cover--lg {
    max-width: 200px;
  }

  .issue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  #main .issue-cover .cover-volume {
    font-size: 1.5rem;
  }

  #main .issue-cover .cover-issue {
    font-size: 1.0625rem;
  }
}

/*--------------------------------------------------------------
# Read as book: buttons, edge tab, drawer and flip book
--------------------------------------------------------------*/
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.issue-book-btn {
  margin-top: 1rem;
  cursor: pointer;
}

.book-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  font: 600 .9375rem/1.4 var(--font-sans);
  color: var(--brand);
  cursor: pointer;
}

.book-link:hover {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Tab fixed to the right edge of issue pages. */
.book-tab {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 990;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 10px 18px 12px;
  border: 0;
  border-radius: 12px 0 0 12px;
  background: var(--brand);
  color: #fff;
  font: 600 .8125rem/1 var(--font-sans);
  letter-spacing: .04em;
  box-shadow: -4px 6px 20px rgba(15, 42, 92, .28);
  cursor: pointer;
  transform: translate(100%, -50%);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), padding .25s, background .2s;
}

.book-tab.is-ready {
  transform: translate(0, -50%);
}

.book-tab:hover,
.book-tab:focus-visible {
  padding-right: 16px;
  background: var(--brand-dark);
}

.book-tab span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.book-tab .bi {
  font-size: 1.125rem;
  line-height: 1;
}

.book-tab__arrow {
  animation: book-nudge 2.4s ease-in-out infinite;
}

@keyframes book-nudge {
  0%, 70%, 100% { transform: translateX(0); }
  80% { transform: translateX(-4px); }
  90% { transform: translateX(0); }
}

html.book-open .book-tab {
  transform: translate(100%, -50%);
}

@media (max-width: 767px) {
  .book-tab {
    top: auto;
    bottom: 88px;
    flex-direction: row;
    padding: 12px 14px;
    border-radius: 999px 0 0 999px;
    transform: translateX(100%);
  }

  .book-tab.is-ready {
    transform: translateX(0);
  }

  html.book-open .book-tab {
    transform: translateX(100%);
  }

  .book-tab span {
    writing-mode: horizontal-tb;
    transform: none;
  }
}

/* Drawer */
html.book-open,
html.book-open body {
  overflow: hidden;
}

.book-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.book-drawer[hidden] {
  display: none;
}

.book-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 40, .55);
  opacity: 0;
  transition: opacity .45s ease;
}

.book-drawer__panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: radial-gradient(ellipse at 50% 40%, #2a3f66 0%, #142443 55%, #0b1630 100%);
  color: #fff;
  transform: translateX(100%);
  transition: transform .55s cubic-bezier(.22, .9, .25, 1);
  box-shadow: -24px 0 60px rgba(0, 0, 0, .35);
}

.book-drawer.is-open .book-drawer__backdrop {
  opacity: 1;
}

.book-drawer.is-open .book-drawer__panel {
  transform: translateX(0);
}

.book-bar {
  display: flex;
  align-items: center;
  gap: 12px 16px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.book-bar__title {
  flex: 1;
  min-width: 0;
}

.book-bar__journal {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9fb6e3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-bar h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #fff;
}

.book-bar__toc {
  margin: 0;
}

.book-bar__toc select {
  max-width: 320px;
  padding: 8px 32px 8px 12px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M1.6 4.6 8 11l6.4-6.4-.9-.9L8 9.2 2.5 3.7z'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: #fff;
  font: 500 .875rem/1.2 var(--font-sans);
  text-overflow: ellipsis;
  appearance: none;
  cursor: pointer;
}

.book-bar__toc option {
  color: var(--text);
}

.book-bar__pdf,
.book-bar__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font: 600 .875rem/1 var(--font-sans);
  cursor: pointer;
  transition: background .2s;
}

.book-bar__close {
  width: 38px;
  padding: 0;
}

.book-bar__pdf:hover,
.book-bar__close:hover {
  background: rgba(255, 255, 255, .18);
  color: #fff;
  text-decoration: none;
}

.book-bar__pdf[hidden] {
  display: none;
}

.book-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 20px 32px;
}

.book {
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(.94) translateX(40px);
  animation: book-arrive .7s .15s cubic-bezier(.2, .8, .2, 1) forwards;
}

@keyframes book-arrive {
  to { opacity: 1; transform: none; }
}

.book-flip,
.book-flip .stf__wrapper {
  width: 100%;
  height: 100%;
}

.book-page {
  background: #fff;
  color: var(--text);
  overflow: hidden;
}

.book-pdf__body {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #fbfaf7;
}

.book-pdf__body img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}

.book-pdf__error {
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.book-page__num {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .6875rem;
  color: #9aa3b2;
}

.book-blank {
  background: #fbfaf7;
}

/* Covers */
.book-cover {
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
}

.book-cover::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4%;
  background: linear-gradient(90deg, rgba(0, 0, 0, .25), rgba(255, 255, 255, .12));
}

.book-cover__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4%;
  padding: 10% 12%;
  text-align: center;
}

.book-cover__badge {
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 4px;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.book-cover__name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(.875rem, 1.6vh, 1.25rem);
  line-height: 1.35;
  color: #dce6f8;
}

.book-cover__title {
  display: flex;
  flex-direction: column;
  margin: 6% 0;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.1;
}

.book-cover__title span:first-child {
  font-size: clamp(2rem, 6vh, 4rem);
}

.book-cover__title span:last-child {
  font-size: clamp(1.25rem, 3.6vh, 2.5rem);
  opacity: .92;
}

.book-cover__date {
  margin: 0;
  padding-top: 4%;
  border-top: 1px solid rgba(255, 255, 255, .35);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.book-cover__count {
  margin: 0;
  font-size: .875rem;
  opacity: .8;
}

.book-cover--back {
  background: linear-gradient(200deg, var(--brand) 0%, var(--brand-dark) 100%);
}

.book-cover--back::before {
  inset: 0 0 0 auto;
  background: linear-gradient(270deg, rgba(0, 0, 0, .25), rgba(255, 255, 255, .12));
}

/* Contents page */
.book-contents {
  background: #fbfaf7;
}

.book-contents__inner {
  position: absolute;
  inset: 0;
  padding: 9% 9% 6%;
  overflow-y: auto;
}

.book-contents__eyebrow {
  margin: 0;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
}

.book-contents h3 {
  margin: .25rem 0 1rem;
  font-size: clamp(1.25rem, 3vh, 2rem);
}

.book-contents ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.book-contents li {
  margin: 0;
  border-top: 1px solid var(--line);
}

.book-contents button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  width: 100%;
  padding: .8em 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.book-contents .toc-title {
  font-family: var(--font-serif);
  font-size: clamp(.8125rem, 1.6vh, 1.0625rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--brand-dark);
}

.book-contents button:hover .toc-title {
  color: var(--brand);
  text-decoration: underline;
}

.book-contents .toc-authors {
  grid-column: 1;
  font-size: clamp(.6875rem, 1.3vh, .875rem);
  color: var(--muted);
}

.book-contents .toc-page {
  grid-column: 2;
  grid-row: 1;
  font-size: .75rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Controls */
.book-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 12px 24px 18px;
}

.book-nav {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 1.125rem;
  cursor: pointer;
  transition: background .2s, opacity .2s;
}

.book-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, .2);
}

.book-nav:disabled {
  opacity: .35;
  cursor: default;
}

.book-status {
  min-width: 220px;
  margin: 0;
  text-align: center;
  font-size: .875rem;
  color: #c8d3e6;
}

.book-loading {
  display: grid;
  justify-items: center;
  gap: 12px;
  color: #c8d3e6;
  text-align: center;
}

.book-loading p {
  margin: 0;
  color: inherit;
}

.book-loading a {
  color: #fff;
  text-decoration: underline;
}

.book-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(127, 140, 160, .3);
  border-top-color: #7fa3e6;
  border-radius: 50%;
  animation: book-spin .9s linear infinite;
}

@keyframes book-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
  .book-bar {
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .book-bar__title {
    flex: 1 1 calc(100% - 110px);
    order: 1;
  }

  .book-bar__pdf { order: 2; }
  .book-bar__close { order: 3; }

  .book-bar__toc {
    order: 4;
    flex: 1 1 100%;
  }

  .book-bar__toc select {
    width: 100%;
    max-width: none;
  }

  .book-stage {
    padding: 12px;
  }

  .book-status {
    min-width: 0;
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .book-drawer__panel,
  .book-drawer__backdrop {
    transition-duration: .2s;
  }

  .book,
  .book-tab__arrow {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.book-cover__name,
.book-cover__date,
.book-cover__count {
  text-align: center;
}

/* Long paper titles in the dropdown must not widen the drawer (that would force a two-page spread on phones). */
.book-drawer__panel {
  grid-template-columns: minmax(0, 1fr);
}

.book-bar__toc,
.book-bar__toc select {
  min-width: 0;
}

@media (max-width: 767px) {
  .book-tab {
    gap: 8px;
    padding: 10px 14px 10px 12px;
    font-size: .75rem;
  }

  .book-tab .bi {
    font-size: 1rem;
  }

  .book-tab__arrow {
    display: none;
  }
}
