/* Extra rules for the Janeway port. Everything the OJS theme defines lives in
   aiw.css (the compiled stylesheet, untouched); this file only holds the
   page-level additions and fixes that have no counterpart in the OJS theme. */

/* Issue cover slot on the archives page: keeps the card rhythm without
   inventing a cover image (the OJS theme points these at missing files). */
.aiw-archive-issue-cover-placeholder {
  display: block;
  width: 100%;
  height: 52px;
  border-radius: 0.4rem;
  background: linear-gradient(160deg, #eef2ff 0%, #e0e7ff 100%);
}

/* The issue page keeps the 220px grid slot for the cover; OJS renders a broken
   image there, so the port leaves the slot empty instead. */
.aiw-issue-cover:empty {
  min-height: 1px;
}

/* =====================================================================
   Issues page (/issues/): featured current issue + previous issues
   ===================================================================== */

.aiw-issues-eyebrow {
  margin: 2.5rem 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4f46e5;
}

.aiw-issues-feature {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  padding: 2.5rem;
  border: 1px solid #e0e7ff;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
  box-shadow: 0 18px 40px -28px rgba(49, 46, 129, 0.55);
}

.aiw-issues-feature-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6366f1;
}

.aiw-issues-feature-title {
  margin: 0 0 0.5rem;
  font-family: "Merriweather", Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.25;
  color: #312e81;
}

.aiw-issues-feature-date {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: #64748b;
}

.aiw-issues-feature-text {
  max-width: 64ch;
  margin: 0 0 1.5rem;
  color: #475569;
  line-height: 1.7;
}

.aiw-issues-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.aiw-issues-previous {
  padding-bottom: 3rem;
}

.aiw-issues-previous-title {
  margin: 3.5rem 0 1.5rem;
  font-family: "Merriweather", Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #312e81;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e0e7ff;
}

/* The container already supplies the page gutters; the archive grid carries its
   own, so neutralise them here to keep both blocks on the same vertical line. */
.aiw-issues-grid {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

/* No cover artwork exists for these issues, so the card is text-led: no empty
   image frame is drawn. */
.aiw-archive-issue--text {
  display: flex;
  flex-direction: column;
}

.aiw-archive-issue--text .aiw-archive-issue-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
}

.aiw-archive-issue-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6366f1;
}

.aiw-archive-issue--text .aiw-archive-issue-title {
  margin: 0;
}

.aiw-archive-issue--text .aiw-archive-issue-title a {
  color: #312e81;
}

.aiw-archive-issue-sub {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: #64748b;
}

.aiw-archive-issue--text .aiw-btn {
  align-self: flex-start;
  margin-top: auto;
}

.aiw-issues-empty {
  margin: 0 0 3rem;
  color: #475569;
}

/* =====================================================================
   About page (/about/): the OJS template rendered the title and body
   outside any container, flush with the viewport edge.
   ===================================================================== */

.aiw-about-body {
  padding-top: 0.5rem;
  padding-bottom: 3rem;
}

.aiw-about-body h1 {
  margin-top: 0;
}

.aiw-about-body p {
  max-width: 68ch;
  line-height: 1.75;
  color: #1e293b;
}

/* =====================================================================
   Ethics page (/ethics/): the full policy text used to sit in the narrow
   left column, leaving a large empty area to its right.
   ===================================================================== */

@media (min-width: 1025px) {
  .page_ethics .aiw-ethics-main {
    grid-column: 1;
    grid-row: 1;
  }

  .page_ethics .aiw-ethics-sidebar {
    grid-column: 2;
    grid-row: 1;
  }

  .page_ethics .aiw-ethics-detail {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 1rem;
  }
}

/* Single-column layout: keep the summary cards first, then the quick links
   sidebar, then the full policy text — the reading order of the printed page. */
@media (max-width: 1024px) {
  .page_ethics .aiw-ethics-main {
    order: 1;
  }

  .page_ethics .aiw-ethics-sidebar {
    order: 2;
    position: static;
  }

  .page_ethics .aiw-ethics-detail {
    order: 3;
  }
}

/* Full-width policy cards would run to an uncomfortable measure; cap the text
   inside them and keep the card itself on the container grid. */
.page_ethics .aiw-ethics-detail .aiw-policy-section p,
.page_ethics .aiw-ethics-detail .aiw-policy-section ul,
.page_ethics .aiw-ethics-detail .aiw-policy-section li {
  max-width: 78ch;
}

.page_ethics .aiw-ethics-detail .aiw-section-subtitle {
  max-width: 70ch;
}


/* ------------------------------------------------------------------ */
/* Issue covers (aiw-cover-render)                                     */
/* The original artwork is never resized on disk; these rules only     */
/* constrain layout. height:auto keeps the source aspect ratio.        */
/* ------------------------------------------------------------------ */
.aiw-issue-cover img,
.aiw-archive-issue-cover img,
.aiw-issues-feature-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--aiw-border, #e3e6ee);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.aiw-archive-issue-cover {
  margin-bottom: 12px;
}

.aiw-issues-feature-cover { min-width: 0; }
.aiw-issues-feature-cover img { width: 100%; }

/* Below the two-column breakpoint the cover moves above the text and is capped,
   so the artwork never dominates the card on a phone. */
@media (max-width: 899px) {
  .aiw-issues-feature { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .aiw-issues-feature-cover { max-width: 180px; }
}

.aiw-current-issue-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--aiw-border, #e3e6ee);
}
.aiw-current-issue-cover {
  max-width: 220px;
  margin-bottom: 14px;
}

/* =====================================================================
   Phase 03 — public homepage
   Reuses the journal palette (indigo 900 headings, indigo 600 accents,
   indigo 100 hairlines) so the page reads as the same publication.
   ===================================================================== */

/* ---------- Hero carousel ---------- */

/* The artwork is the brief, so the hero is one full-bleed plate rather than a
   card: statue at the left, market chart top right, server racks right. The copy
   sits in the pale centre of the painting and a soft radial wash lifts only that
   patch, so neither the sculpture nor the racks lose their detail. */

.aiw-hero2 {
  position: relative;
  border-bottom: 1px solid #e2e8f3;
  background: #f8fafc;
}

.aiw-hero2-stage {
  position: relative;
  height: 560px;
}

.aiw-hero2-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 480ms ease;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.aiw-hero2-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.aiw-hero2-slide--si {
  background-image: url('/static/aiw/assets/images/hero-vol1-no4.jpg');
  background-position: center 46%;
}

/* Slide 1 carries its copy on the left: the painting keeps the colonnade on the
   right, so the text sits over open valley instead of over the architecture. The
   wash follows it, soft enough that the mountains keep their detail. */
.aiw-hero2-slide--si::after {
  background:
    linear-gradient(90deg,
      rgba(248, 250, 252, 0.92) 0%,
      rgba(248, 250, 252, 0.80) 26%,
      rgba(248, 250, 252, 0.28) 48%,
      rgba(248, 250, 252, 0) 62%),
    radial-gradient(60% 70% at 18% 50%,
      rgba(248, 250, 252, 0.55) 0%,
      rgba(248, 250, 252, 0) 70%);
}

.aiw-hero2-slide--si .aiw-hero2-inner {
  padding-left: clamp(1.5rem, 6%, 6rem);
  padding-right: 40%;
}

.aiw-hero2-slide--cfp {
  background-image: url('/static/aiw/assets/images/hero-2027-march.jpg');
  background-position: 74% center;
}

/* A wash, not a sheet: fades out well before it reaches the sculpture's edges or
   the racks. */
.aiw-hero2-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    46% 82% at 45% 50%,
    rgba(248, 250, 252, 0.94) 0%,
    rgba(248, 250, 252, 0.86) 38%,
    rgba(248, 250, 252, 0.42) 66%,
    rgba(248, 250, 252, 0) 84%
  );
}

.aiw-hero2-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 3rem 3rem 27%;
  display: flex;
  align-items: center;
}

/* Only used on narrow screens, where the plate stacks above the copy. */
.aiw-hero2-art { display: none; }

/* Wide enough that each line of the heading stays on one line; the lead still
   takes two, so its height is pinned below. */
.aiw-hero2-content {
  width: 100%;
  max-width: 620px;
}

.aiw-hero2-badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.55);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #4338ca;
  white-space: nowrap;
}

.aiw-hero2-title {
  margin: 0 0 1rem;
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.95rem;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.014em;
  color: #312e81;
  white-space: nowrap;
}

.aiw-hero2-title-sub {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.2rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.32;
  color: #4338ca;
  white-space: nowrap;
}

/* Fixed height: the two slides must hand over without the buttons jumping. */
.aiw-hero2-lead {
  margin: 0 0 1.6rem;
  min-height: 3.2em;
  font-family: "Merriweather", Georgia, serif;
  font-size: 0.9375rem;
  font-style: italic;
  line-height: 1.6;
  color: #3f4a5c;
}

.aiw-hero2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.aiw-hero2-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #4338ca;
  cursor: pointer;
  z-index: 3;
  transition: background 160ms ease, border-color 160ms ease;
}

.aiw-hero2-arrow:hover { background: #fff; border-color: #818cf8; }
.aiw-hero2-arrow:focus-visible { outline: 2px solid #4f46e5; outline-offset: 3px; }
.aiw-hero2-arrow--prev { left: 1.25rem; }
.aiw-hero2-arrow--prev svg { transform: rotate(180deg); }
.aiw-hero2-arrow--next { right: 1.25rem; }

.aiw-hero2-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 3rem 1.35rem 27%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.aiw-hero2-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.js-aiw-hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.35);
  cursor: pointer;
  transition: background 160ms ease, width 160ms ease, border-radius 160ms ease;
}

.js-aiw-hero-dot.is-active {
  width: 26px;
  border-radius: 4px;
  background: #4f46e5;
}

.js-aiw-hero-dot:focus-visible { outline: 2px solid #4f46e5; outline-offset: 3px; }

.aiw-hero2-next {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.8125rem;
  color: #475569;
}

.aiw-hero2-next-label { font-weight: 600; color: #312e81; }
.aiw-hero2-next-icon { display: inline-flex; color: #4f46e5; }

.aiw-hero2-next-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.3rem;
  font-weight: 500;
  color: #4f46e5;
  text-decoration: none;
}

.aiw-hero2-next-link:hover { text-decoration: underline; }

@media (max-width: 1024px) {
  .aiw-hero2-stage { height: 520px; }
  .aiw-hero2-inner { padding: 0 2rem 3rem 24%; }
  .aiw-hero2-strip { padding: 0 2rem 1.25rem 24%; }
  .aiw-hero2-content { max-width: 540px; }
  .aiw-hero2-title { font-size: 1.7rem; }
  .aiw-hero2-title-sub { font-size: 1.05rem; }
}

/* Below 820px the overlay stops working: the plate cannot hold copy without
   cutting the sculpture or the racks, so the picture goes on top at its own
   aspect ratio and the copy follows on a plain field. */
@media (max-width: 820px) {
  .aiw-hero2-stage { height: auto; }

  .aiw-hero2-slide {
    position: relative;
    display: none;
    background-image: none;
  }

  .aiw-hero2-slide.is-active { display: block; }
  .aiw-hero2-slide::after { display: none; }

  .aiw-hero2-art {
    display: block;
    margin: 0;
  }

  .aiw-hero2-art img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    object-position: center;
  }

  .aiw-hero2-slide--cfp .aiw-hero2-art img { object-position: center 32%; }

  .aiw-hero2-inner {
    display: block;
    padding: 1.5rem 1.125rem 1.35rem;
  }

  .aiw-hero2-content { max-width: none; }
  .aiw-hero2-title,
  .aiw-hero2-title-sub,
  .aiw-hero2-badge { white-space: normal; }
  .aiw-hero2-title { font-size: 1.5rem; }
  .aiw-hero2-title-sub { font-size: 1.05rem; }
  .aiw-hero2-lead { min-height: 0; font-size: 0.95rem; margin-bottom: 1.25rem; }
  .aiw-hero2-arrow { display: none; }
  .aiw-hero2-actions .aiw-btn { flex: 1 1 100%; justify-content: center; }

  .aiw-hero2-strip {
    position: static;
    max-width: none;
    padding: 0 1.125rem 1.15rem;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 0.65rem;
  }

  .aiw-hero2-dots { justify-content: center; }

  /* One row: the label, the title (truncated if it must be) and the link. */
  .aiw-hero2-next { justify-content: flex-start; gap: 0.4rem; }
  .aiw-hero2-next-text {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .aiw-hero2-next-link { white-space: nowrap; flex: 0 0 auto; }
}

/* ---------- Home section shell ---------- */

.aiw-home-sections {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3.5rem;
}

.aiw-home-row {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  align-items: start;
}

.aiw-home-row--issues { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
.aiw-home-row--about { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.aiw-panel {
  padding: 1.5rem 1.5rem 1.35rem;
  border: 1px solid #e5e9f5;
  border-radius: 0.9rem;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(30, 41, 59, 0.04);
}

.aiw-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid #eef2fa;
}

.aiw-panel-title {
  margin: 0;
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #312e81;
}

.aiw-panel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #4f46e5;
  text-decoration: none;
  white-space: nowrap;
}

.aiw-panel-link:hover { text-decoration: underline; }

/* ---------- Current issue ---------- */

.aiw-current-issue-head { margin-bottom: 1rem; }

.aiw-current-issue-title {
  margin: 0 0 0.2rem;
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #312e81;
}

.aiw-current-issue-date {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
}

.aiw-current-issue-body {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
}

.aiw-current-issue-cover {
  display: block;
  border-radius: 0.4rem;
  overflow: hidden;
  border: 1px solid #e5e9f5;
  line-height: 0;
}

.aiw-current-issue-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.aiw-current-issue-description {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #475569;
}

.aiw-current-issue-toc-title {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4f46e5;
}

.aiw-current-issue-toc ul {
  margin: 0;
  padding: 0 0 0 1rem;
  list-style: disc;
}

.aiw-current-issue-toc li {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #475569;
}

.aiw-current-issue-toc-more { list-style: none; margin-left: -1rem; color: #94a3b8; }

.aiw-current-issue-cta { margin-top: 1.25rem; }

/* ---------- Latest articles ---------- */

.aiw-latest-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.aiw-latest-row + .aiw-latest-row { border-top: 1px solid #eef2fa; }

.aiw-latest-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  text-decoration: none;
  color: inherit;
}

.aiw-latest-link:hover .aiw-latest-title { color: #4f46e5; }

.aiw-latest-main { min-width: 0; flex: 1 1 auto; }

.aiw-latest-type {
  display: inline-block;
  margin-bottom: 0.25rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4f46e5;
}

.aiw-latest-title {
  margin: 0 0 0.3rem;
  font-family: "Merriweather", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.38;
  color: #312e81;
  transition: color 160ms ease;
}

.aiw-latest-meta {
  margin: 0;
  font-size: 0.75rem;
  color: #64748b;
}

.aiw-latest-sep { margin: 0 0.35rem; color: #cbd5e1; }

.aiw-latest-arrow {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #e5e9f5;
  color: #94a3b8;
}

.aiw-latest-link:hover .aiw-latest-arrow {
  border-color: #c7d2fe;
  color: #4f46e5;
}

/* ---------- About / CFP panels ---------- */

.aiw-panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.85rem;
  border-radius: 0.6rem;
  background: #eef2ff;
  color: #4f46e5;
}

.aiw-panel--about .aiw-panel-title,
.aiw-panel--cfp .aiw-panel-title { margin-bottom: 0.6rem; }

.aiw-panel-text {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #475569;
}

.aiw-panel-text--strong { font-weight: 600; color: #312e81; }
.aiw-panel-text--muted { font-size: 0.8125rem; color: #64748b; }

.aiw-panel--about .aiw-btn,
.aiw-panel--cfp .aiw-btn { margin-top: 0.25rem; }

/* ---------- Research areas / tools ---------- */

.aiw-home-block { margin-bottom: 2rem; }

.aiw-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.aiw-block-title {
  margin: 0;
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #312e81;
}

.aiw-block-note {
  margin: 0;
  font-family: "Merriweather", Georgia, serif;
  font-style: italic;
  font-size: 0.8125rem;
  color: #64748b;
}

.aiw-tile-grid {
  display: grid;
  gap: 1.25rem;
}

.aiw-tile-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.aiw-tile-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.aiw-tile {
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.4rem;
  border: 1px solid #e5e9f5;
  border-radius: 0.9rem;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(30, 41, 59, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.aiw-tile:hover {
  border-color: #c7d2fe;
  box-shadow: 0 6px 18px -12px rgba(49, 46, 129, 0.45);
}

.aiw-tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.8rem;
  border-radius: 0.6rem;
  background: #eef2ff;
  color: #4f46e5;
}

.aiw-tile-title {
  margin: 0 0 0.5rem;
  font-family: "Merriweather", Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #312e81;
}

.aiw-tile-text {
  margin: 0 0 0.9rem;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #475569;
  flex: 1 1 auto;
}

.aiw-tile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #4f46e5;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .aiw-home-row--issues,
  .aiw-home-row--about { grid-template-columns: minmax(0, 1fr); }
  .aiw-tile-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .aiw-tile-grid--2 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .aiw-home-sections { padding: 1.25rem 1.125rem 2.5rem; }
  .aiw-panel { padding: 1.15rem 1.15rem 1.1rem; }
  .aiw-current-issue-body { grid-template-columns: 96px minmax(0, 1fr); }
}

/* ---------- Call for papers: current issue banner ---------- */

.aiw-cfp-next {
  padding: 2.5rem 0;
  border-bottom: 1px solid #e0e7ff;
  background: #f8fafc;
}

.aiw-cfp-next-inner {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.aiw-cfp-next-cover {
  margin: 0;
  border: 1px solid #e5e9f5;
  border-radius: 0.5rem;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 10px 24px -18px rgba(49, 46, 129, 0.5);
}

.aiw-cfp-next-cover img { width: 100%; height: auto; display: block; }

.aiw-cfp-next-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4f46e5;
}

.aiw-cfp-next-title {
  margin: 0 0 0.65rem;
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #312e81;
}

.aiw-cfp-next-text {
  margin: 0 0 0.9rem;
  max-width: 640px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #475569;
}

.aiw-cfp-next-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: #64748b;
}

.aiw-cfp-next-meta li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: #818cf8;
  vertical-align: middle;
}

.aiw-cfp-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .aiw-cfp-next-inner { grid-template-columns: 100px minmax(0, 1fr); gap: 1.25rem; }
  .aiw-cfp-next-title { font-size: 1.25rem; }
}

@media (max-width: 520px) {
  .aiw-cfp-next-inner { grid-template-columns: minmax(0, 1fr); }
  .aiw-cfp-next-cover { max-width: 140px; }
  .aiw-cfp-next-actions .aiw-btn { width: 100%; justify-content: center; }
}

/* ---------- Login / register (public shell, not the admin chrome) ---------- */

.aiw-auth {
  max-width: 1040px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 2.5rem;
  align-items: start;
}

.aiw-auth-card {
  padding: 2rem 2rem 1.75rem;
  border: 1px solid #e5e9f5;
  border-radius: 0.9rem;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(30, 41, 59, 0.05);
}

.aiw-auth-title {
  margin: 0 0 0.5rem;
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #312e81;
}

.aiw-auth-lead {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #475569;
}

.aiw-auth-notice {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e0e7ff;
  border-radius: 0.5rem;
  background: #f8fafc;
  font-size: 0.875rem;
  color: #475569;
}

.aiw-auth-errors {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
  background: #fef2f2;
  font-size: 0.875rem;
  color: #b91c1c;
}

.aiw-auth-errors p { margin: 0 0 0.35rem; }
.aiw-auth-errors p:last-child { margin-bottom: 0; }

.aiw-auth-form { display: flex; flex-direction: column; gap: 1.1rem; }

.aiw-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
}

.aiw-field input[type="text"],
.aiw-field input[type="email"],
.aiw-field input[type="password"],
.aiw-field input[type="url"],
.aiw-field input[type="number"],
.aiw-field select,
.aiw-field textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid #d7dce8;
  border-radius: 6px;
  background: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  color: #1e293b;
  box-sizing: border-box;
}

.aiw-field input:focus,
.aiw-field select:focus,
.aiw-field textarea:focus {
  outline: none;
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.18);
}

.aiw-field--check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.aiw-field--check input { margin-top: 0.2rem; }
.aiw-field--check label { margin-bottom: 0; font-weight: 400; color: #334155; }

.aiw-help { margin: 0.3rem 0 0; font-size: 0.75rem; color: #64748b; }
.aiw-error { margin: 0.3rem 0 0; font-size: 0.75rem; color: #b91c1c; }
.aiw-req { color: #dc2626; }

.aiw-auth-submit { width: 100%; justify-content: center; margin-top: 0.35rem; }

.aiw-auth-links {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid #eef2fa;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
}

.aiw-auth-links a { color: #4f46e5; text-decoration: none; }
.aiw-auth-links a:hover { text-decoration: underline; }
.aiw-auth-sep { color: #cbd5e1; }

.aiw-auth-aside {
  padding: 1.5rem 1.6rem;
  border: 1px solid #e0e7ff;
  border-radius: 0.9rem;
  background: #f8fafc;
}

.aiw-auth-aside-title {
  margin: 0 0 0.85rem;
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #312e81;
}

.aiw-auth-aside-list {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #475569;
}

.aiw-auth-aside-note {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #475569;
}

.aiw-auth-aside-note a { color: #4f46e5; }

@media (max-width: 900px) {
  .aiw-auth { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding: 2rem 1.125rem 3rem; }
  .aiw-auth-card { padding: 1.5rem 1.25rem; }
}

/* ---------- Article page: supplementary material ---------- */

.aiw-art-supplementary { margin-top: 1.5rem; }

.aiw-art-supp-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.aiw-art-supp-item + .aiw-art-supp-item {
  border-top: 1px solid #eef2fa;
}

.aiw-art-supp-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0;
  text-decoration: none;
  color: #312e81;
  font-size: 0.9rem;
}

.aiw-art-supp-link:hover { color: #4f46e5; }
.aiw-art-supp-link svg { flex: 0 0 auto; color: #4f46e5; }
.aiw-art-supp-name { font-weight: 600; }
.aiw-art-supp-file { margin-left: auto; font-size: 0.75rem; color: #64748b; }


/* ---------- Call for papers: March 2027 cover as the banner ---------- */

/* Loaded after aiw.css, so this replaces the stock hero-cfp.jpg without
   !important. The wash is heavier than the homepage carousel because this hero
   centres its copy, so the text sits over the middle of the artwork. */
.aiw-hero--cfp {
  /* Wash fades to the right so the copy keeps a white field while the painting
     stays visible behind it, the same treatment the homepage carousel uses. */
  background-image:
    linear-gradient(90deg, rgba(248, 250, 252, 0.97) 0%, rgba(248, 250, 252, 0.93) 38%, rgba(248, 250, 252, 0.66) 66%, rgba(238, 242, 255, 0.22) 100%),
    url('/static/aiw/assets/images/hero-2027-march.jpg');
  background-size: cover, cover;
  background-position: center, 70% center;
}

@media (max-width: 900px) {
  .aiw-hero--cfp {
    background-image:
      linear-gradient(180deg, rgba(248, 250, 252, 0.97) 0%, rgba(248, 250, 252, 0.93) 62%, rgba(238, 242, 255, 0.78) 100%),
      url('/static/aiw/assets/images/hero-2027-march.jpg');
    background-size: cover, cover;
    background-position: center, center top;
  }
}

/* =====================================================================
   Phase 03.1 — alignment, equal heights, type scale
   ===================================================================== */

/* One content width for header, body and footer. aiw.css lets the header grow
   to 1440 at a wide breakpoint while every other container stops at 1280, which
   is what made the logo sit left of the article column. */
.aiw-header,
.aiw-footer,
.aiw-container,
.aiw-home-sections,
.aiw-cfp-next .aiw-container,
.aiw-auth {
  max-width: 1280px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 1440px) {
  .aiw-header { max-width: 1280px; }
}

/* --- equal-height panels with the action pinned to the bottom ------------ */

.aiw-home-row { align-items: stretch; }

.aiw-panel {
  display: flex;
  flex-direction: column;
  /* A single hairline, no drop shadow: the cards sit on a pale field and the
     shadow only added grey edges between them. */
  box-shadow: none;
  border-color: #e2e8f3;
}

.aiw-panel-head { flex: 0 0 auto; }
.aiw-current-issue { display: flex; flex-direction: column; flex: 1 1 auto; }
.aiw-current-issue-body { flex: 1 1 auto; }
.aiw-current-issue-cta { margin-top: auto; align-self: flex-start; }

.aiw-panel--about .aiw-btn,
.aiw-panel--cfp .aiw-btn {
  margin-top: auto;
  align-self: flex-start;
}

.aiw-panel--about,
.aiw-panel--cfp {
  display: flex;
  flex-direction: column;
}

/* Latest Articles list: fill the column so its last row aligns with the
   Current Issue card's button rather than ending in a gap. */
.aiw-latest-rows { display: flex; flex-direction: column; flex: 1 1 auto; }
.aiw-latest-row:last-child { border-bottom: 0; }

/* --- tiles: equal height, link on the baseline ------------------------- */

.aiw-tile {
  box-shadow: none;
  border-color: #e2e8f3;
  min-height: 100%;
}

.aiw-tile-grid--3 .aiw-tile { min-height: 232px; }
.aiw-tile-grid--2 .aiw-tile { min-height: 196px; }

/* --- type scale: nothing below 13px in running text -------------------- */

.aiw-latest-title { font-size: 1rem; }
.aiw-latest-meta { font-size: 0.8125rem; }
.aiw-panel-text { font-size: 0.9375rem; line-height: 1.68; }
.aiw-panel-text--muted { font-size: 0.875rem; }
.aiw-tile-text { font-size: 0.9rem; line-height: 1.65; }
.aiw-tile-link { font-size: 0.875rem; }
.aiw-block-note { font-size: 0.875rem; }
.aiw-panel-link { font-size: 0.875rem; }
.aiw-current-issue-description { font-size: 0.9rem; }
.aiw-current-issue-toc li { font-size: 0.85rem; }
.aiw-panel-title { font-size: 1.35rem; }
.aiw-block-title { font-size: 1.35rem; }

/* --- covers: one radius, no clipped edges ------------------------------ */

.aiw-current-issue-cover,
.aiw-cfp-next-cover,
.aiw-issue-cover,
.aiw-archive-issue-cover {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e2e8f3;
  background: #f8fafc;
}

.aiw-current-issue-cover img,
.aiw-cfp-next-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* --- article body: comfortable measure for long reading ---------------- */

.aiw-art-fulltext { font-size: 1rem; }
.aiw-art-fulltext p,
.aiw-art-fulltext li { line-height: 1.75; }
.aiw-art-fulltext h2 { font-size: 1.35rem; margin-top: 2rem; }
.aiw-fulltext-h2 { font-size: 1.15rem; }

@media (max-width: 1024px) {
  .aiw-tile-grid--3 .aiw-tile,
  .aiw-tile-grid--2 .aiw-tile { min-height: 0; }
}

@media (max-width: 640px) {
  .aiw-header,
  .aiw-footer,
  .aiw-container,
  .aiw-home-sections,
  .aiw-auth { padding-left: 1.125rem; padding-right: 1.125rem; }
  .aiw-panel-title,
  .aiw-block-title { font-size: 1.2rem; }
}

/* Keywords read as a separated run rather than a cluster of words. */
.aiw-article-keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aiw-article-keyword-list li {
  font-size: 0.9rem;
  color: #334155;
}

.aiw-article-keyword-list li + li::before {
  content: "\00b7";
  margin: 0 0.5rem;
  color: #94a3b8;
}

/* An assigned DOI that Crossref has not accepted yet has to look different from
   one that resolves, otherwise the page claims more than the ledger does. */
.aiw-doi-state {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: #64748b;
}

/* Publication strip at the head of the HTML full text. Same information the
   PDF carries on page one, so the two formats cannot disagree. */
.aiw-galley-head {
  margin: 0 0 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e2e8f3;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #64748b;
}

.aiw-galley-head p { margin: 0 0 0.25rem; }

.aiw-galley-journal {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4338ca;
}

.aiw-galley-doi a { color: #4338ca; text-decoration: none; }
.aiw-galley-doi a:hover { text-decoration: underline; }

/* =====================================================================
   Phase 03.2 — Special Issue banner shares the homepage artwork
   ===================================================================== */

.aiw-si-banner {
  height: 260px;
  justify-content: flex-start;
  align-items: flex-end;
  background-image: url('/static/aiw/assets/images/special-issue/markets-hero.jpg');
  background-position: center 38%;
}

/* No copy sits on the plate, so the wash only has to hand the picture over to
   the page background at its lower edge. */
.aiw-si-banner::before {
  background: linear-gradient(
    180deg,
    rgba(250, 251, 255, 0.10) 0%,
    rgba(250, 251, 255, 0.12) 62%,
    rgba(248, 250, 252, 0.72) 88%,
    rgba(248, 250, 252, 0.96) 100%
  );
}

@media (max-width: 820px) {
  .aiw-si-banner { height: 180px; background-position: center 34%; }
}

/* ORCID entry point on the sign-in card. */
.aiw-auth-orcid {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid #eef2fa;
  text-align: center;
}

.aiw-auth-orcid-label {
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}

.aiw-auth-orcid-btn {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 0.45rem;
}

/* Author ordering: a handle for pointer users, arrows for everyone else. */
.p-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #dbe1ec;
  border-radius: 6px;
  background: #fff;
  color: #94a3b8;
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: -0.18em;
  cursor: grab;
  touch-action: none;
}

.p-drag-handle:hover { border-color: #c7d2fe; color: #4f46e5; }
.p-drag-handle:focus-visible { outline: 2px solid #4f46e5; outline-offset: 2px; }
.p-drag-handle:active { cursor: grabbing; }

.p-author-row.is-dragging {
  opacity: 0.55;
  border-color: #c7d2fe;
  background: #eef2ff;
}

.p-author-row.is-drop-target { box-shadow: inset 0 2px 0 #4f46e5; }

/* Equations: native MathML, no script needed. The font stack leans on whatever
   math font the platform has so subscripts and braces line up. */
.aiw-math {
  font-family: "Cambria Math", "Latin Modern Math", "STIX Two Math", "DejaVu Serif", serif;
  font-size: 1.02em;
  line-height: 1;
}

.aiw-fulltext math { color: inherit; }

/* ---------------------------------------------------------------------------
   Utility pages: /contact/ and /search/

   Both used to stand outside the theme. The contact page had no container, so
   the heading ran off the left edge; /search/ had no template of its own and
   rendered the stock theme's page inside this header and footer. They now share
   the breadcrumb + page-head pattern used by /about/, and each supplies the one
   thing it needs -- contact cards, a results list.
   ------------------------------------------------------------------------- */

.aiw-page-head { margin: 1.75rem 0 2rem; }

.aiw-page-title {
  margin: 0 0 0.6rem;
  font-family: "Merriweather", Georgia, serif;
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #312e81;
}

.aiw-page-lead {
  margin: 0;
  max-width: 62ch;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #475569;
}

/* --- contact ------------------------------------------------------------- */

.aiw-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.aiw-contact-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.6rem 1.6rem;
  border: 1px solid #e2e8f3;
  border-radius: 1rem;
  background: #fff;
}

.aiw-contact-title {
  margin: 0 0 0.6rem;
  font-family: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4338ca;
}

.aiw-contact-text {
  margin: 0 0 1.1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #475569;
}

.aiw-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  font-weight: 600;
  color: #4f46e5;
  overflow-wrap: anywhere;
}

.aiw-contact-link:hover { color: #312e81; text-decoration: underline; }

.aiw-contact-address {
  margin-top: auto;
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #334155;
}

/* --- search -------------------------------------------------------------- */

.aiw-search-page { padding-bottom: 3.5rem; }

.aiw-search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.9rem;
  padding: 1.25rem;
  margin-bottom: 1.75rem;
  border: 1px solid #e2e8f3;
  border-radius: 1rem;
  background: #fff;
}

.aiw-search-field { flex: 1 1 320px; min-width: 0; }
.aiw-search-field--sort { flex: 0 1 180px; }

.aiw-search-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.aiw-search-form input[type="search"],
.aiw-search-form select {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.65rem;
  background: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  color: #1e293b;
}

.aiw-search-form input[type="search"]:focus,
.aiw-search-form select:focus {
  outline: 2px solid #4f46e5;
  outline-offset: 1px;
  border-color: #4f46e5;
}

.aiw-search-submit {
  min-height: 44px;
  padding-inline: 1.4rem;
  white-space: nowrap;
}

.aiw-search-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  color: #475569;
}

.aiw-search-summary p { margin: 0; }
.aiw-search-summary strong { color: #1e293b; font-weight: 600; }

.aiw-search-reset {
  font-size: 0.875rem;
  font-weight: 600;
  color: #4f46e5;
  white-space: nowrap;
}

.aiw-search-list { margin-top: 0.5rem; }

.aiw-search-empty {
  padding: 1.5rem 1.6rem;
  border: 1px dashed #cbd5e1;
  border-radius: 1rem;
  background: #f8fafc;
  color: #475569;
}

.aiw-search-empty p { margin: 0 0 0.35rem; }
.aiw-search-empty p:last-child { margin-bottom: 0; }

.aiw-search-empty-title {
  font-weight: 600;
  color: #312e81;
}

.aiw-search-keywords {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid #e2e8f3;
}

.aiw-search-keywords-title {
  margin: 0 0 0.9rem;
  font-family: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.aiw-keyword-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aiw-keyword-chip {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border: 1px solid #e0e7ff;
  border-radius: 999px;
  background: #eef2ff;
  font-size: 0.8125rem;
  color: #3730a3;
  line-height: 1.4;
}

.aiw-keyword-chip:hover,
.aiw-keyword-chip:focus {
  border-color: #a5b4fc;
  background: #e0e7ff;
  color: #312e81;
  text-decoration: none;
}

.aiw-keyword-chip.is-active {
  border-color: #4f46e5;
  background: #4f46e5;
  color: #fff;
}

@media (max-width: 640px) {
  .aiw-page-title { font-size: 1.85rem; }
  .aiw-search-form { padding: 1rem; }
  .aiw-search-field,
  .aiw-search-field--sort { flex: 1 1 100%; }
  .aiw-search-submit { width: 100%; justify-content: center; }
}

/* /search/ inherits OJS's login-form rules: `.pkp_page_search button` forces
   every button on the page to inline-flex, which also un-hides the header's
   mobile nav toggle at desktop widths. And its .pkp_structure_main already pads
   1.5rem, which double-pads the .aiw-container inside it. */
@media (min-width: 1281px) {
  .aiw-header .aiw-nav-toggle { display: none; }
}

.pkp_page_search .pkp_structure_main {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.pkp_page_search .page.page_search { max-width: none; }

/* Footer links are 19px tall on a phone -- too small a target for a thumb.
   Padding the anchors rather than the list keeps the rules and spacing intact
   while giving each link ~34px of hit area. */
@media (max-width: 640px) {
  .aiw-footer-links a,
  .aiw-footer-policy a,
  .aiw-breadcrumbs a {
    display: inline-block;
    padding-block: 0.3rem;
  }
  .aiw-footer-links li + li,
  .aiw-footer-policy li + li { margin-top: 0.15rem; }
}

/* The full-text TOC is a two-column multicol block capped at 15rem with its own
   scrollbar. On a phone that cap is shorter than the list, so the browser spills
   the rest into extra columns *beside* the first one -- the items ran off the
   right edge of the screen (measured: 1008px of content in a 234px box). Below
   the tablet breakpoint the list becomes one ordinary vertical column. */
@media (max-width: 768px) {
  .aiw-fulltext-toc-list {
    columns: 1;
    column-count: 1;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
  .aiw-fulltext-toc-list li { break-inside: auto; }
}

/* References: articles migrated from OJS carry a <ol class="reflist"> that the
   full-text tag lifts into its own section, while the four newest articles were
   converted from DOCX, where each reference is a plain paragraph. Both must read
   the same way, so give the paragraph form a hanging indent under its heading.
   Scoped to direct children so it cannot reach into the body above. */
.aiw-fulltext > #references ~ p {
  margin: 0 0 0.55rem;
  padding-left: 1.6rem;
  text-indent: -1.6rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #3f4a5c;
}

.aiw-fulltext > #references ~ p:empty { display: none; }

/* ---------------------------------------------------------------------------
   Homepage: Current Issue + In This Issue

   The old layout put "Current Issue" and "Latest Articles" side by side at equal
   height, which left a large empty block under the shorter column and only ever
   showed part of the issue. The current issue is now a single banner (cover plus
   its own details) followed by every article in it, two columns wide.
   ------------------------------------------------------------------------- */

.aiw-home-issue { margin-bottom: 3.25rem; }

.aiw-current {
  max-width: 920px;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  padding: 1.75rem;
  border: 1px solid #e2e8f3;
  border-radius: 1rem;
  background: #fff;
}

.aiw-current-cover {
  flex: 0 0 232px;
  display: block;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #eef2ff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.aiw-current-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.aiw-current-body {
  min-width: 0;
  padding-top: 0.35rem;
}

.aiw-current-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4338ca;
}

.aiw-current-title {
  margin: 0 0 0.6rem;
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.6rem;
  line-height: 1.25;
  color: #312e81;
}

.aiw-current-meta {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #64748b;
}

.aiw-current-desc {
  margin: 0 0 1.4rem;
  max-width: 62ch;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #475569;
}

.aiw-current-cta { margin-top: auto; }

.aiw-issue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.5rem;
}

.aiw-issue-item {
  padding: 1.15rem 0;
  border-top: 1px solid #e8edf7;
}

.aiw-issue-item:nth-child(-n + 2) { border-top: none; padding-top: 0.3rem; }

.aiw-issue-type {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6366f1;
}

.aiw-issue-title {
  margin: 0 0 0.4rem;
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
  color: #312e81;
}

.aiw-issue-title a { color: inherit; }
.aiw-issue-title a:hover { color: #4f46e5; text-decoration: none; }

.aiw-issue-authors {
  margin: 0 0 0.3rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #475569;
}

.aiw-issue-meta {
  margin: 0;
  font-size: 0.78rem;
  color: #7c8798;
}

.aiw-issue-meta a { color: #4f46e5; }

@media (max-width: 860px) {
  .aiw-current { flex-direction: column; gap: 1.5rem; padding: 1.25rem; }
  .aiw-current-cover { flex: none; width: 190px; }
  .aiw-issue-grid { grid-template-columns: 1fr; gap: 0; }
  .aiw-issue-item:nth-child(-n + 2) { border-top: 1px solid #e8edf7; padding-top: 1.15rem; }
  .aiw-issue-item:first-child { border-top: none; padding-top: 0.3rem; }
}

/* ---------------------------------------------------------------------------
   Issue detail: cover beside a wide table of contents

   The right-hand "Issue Information" card repeated two facts that now sit under
   the title, and it squeezed the contents into half the page. The contents take
   the remaining width, which is what long article titles needed.
   ------------------------------------------------------------------------- */

.aiw-issue-subline { max-width: none; }

.aiw-issue-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2.75rem;
  align-items: start;
  padding-bottom: 3.5rem;
}

.aiw-issue-cover-col { position: sticky; top: 1.5rem; }

.aiw-issue-cover-col img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f3;
  background: #eef2ff;
}

.aiw-issue-submit {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

.aiw-issue-main { min-width: 0; }

.aiw-issue-description {
  margin: 0 0 1.75rem;
  max-width: 72ch;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #475569;
}

.aiw-toc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f3;
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.25rem;
  color: #312e81;
}

.aiw-toc-count {
  font-family: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
}

.aiw-issue-list { margin: 0; padding: 0; list-style: none; }

.aiw-issue-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 1.5rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid #eef1f8;
}

.aiw-issue-entry:last-child { border-bottom: none; }

.aiw-issue-entry-type {
  margin: 0 0 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6366f1;
}

.aiw-issue-entry-title {
  margin: 0 0 0.35rem;
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.45;
  color: #312e81;
}

.aiw-issue-entry-title a { color: inherit; }
.aiw-issue-entry-title a:hover { color: #4f46e5; text-decoration: none; }

.aiw-issue-entry-authors {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #475569;
}

.aiw-issue-entry-side {
  text-align: right;
  font-size: 0.8rem;
  color: #7c8798;
}

.aiw-issue-entry-date { margin: 0 0 0.4rem; }

.aiw-issue-entry-galleys {
  margin: 0;
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.aiw-issue-galley-link {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border: 1px solid #e0e7ff;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #4338ca;
}

.aiw-issue-galley-link:hover { background: #eef2ff; text-decoration: none; }

@media (max-width: 900px) {
  .aiw-issue-body { grid-template-columns: 1fr; gap: 1.75rem; }
  .aiw-issue-cover-col { position: static; width: 190px; }
  .aiw-issue-entry { grid-template-columns: 1fr; gap: 0.5rem; }
  .aiw-issue-entry-side { text-align: left; display: flex; gap: 0.9rem; align-items: baseline; }
  .aiw-issue-entry-galleys { justify-content: flex-start; }
}

/* ---------------------------------------------------------------------------
   Article detail: centred masthead + three columns

   The masthead (type, title, authors, affiliations, dates, DOI, abstract) spans
   the page and is centred; the reading columns below are contents / text / tools.
   The left column is sticky on desktop and collapsed behind a button on phones.
   ------------------------------------------------------------------------- */

.aiw-art { display: block; }

.aiw-art-head {
  max-width: 1140px;
  margin: 0 auto 2.75rem;
  padding: 0 1.5rem;
  text-align: center;
}

.aiw-art-type {
  margin: 0 0 0.85rem;
  font-family: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4f46e5;
}

.aiw-art-title {
  margin: 0 auto 0.9rem;
  max-width: 960px;
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(1.95rem, 2.4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #312e81;
  overflow-wrap: break-word;
}

.aiw-art-subtitle {
  margin: 0 auto 1rem;
  max-width: 62ch;
  font-family: "Merriweather", Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  color: #4338ca;
}

.aiw-art-dates {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.75rem;
  margin: 1.35rem auto 0;
  padding: 0;
  font-size: 0.85rem;
  color: #64748b;
}

.aiw-art-dates > div { display: flex; gap: 0.45rem; align-items: baseline; }
.aiw-art-dates dt { margin: 0; font-weight: 600; color: #94a3b8; }
.aiw-art-dates dd { margin: 0; color: #334155; }
.aiw-art-dates dd a { color: #4f46e5; }

.aiw-art-abstract {
  margin: 0 0 1.6rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid #eef1f8;
}

.aiw-art-abstract-label {
  margin: 0 0 0.5rem;
  font-family: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.aiw-art-abstract-text {
  font-size: 1rem;
  line-height: 1.75;
  color: #3f4a5c;
}

.aiw-art-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.aiw-art-keywords li {
  padding: 0.28rem 0.7rem;
  border: 1px solid #e0e7ff;
  border-radius: 999px;
  background: #eef2ff;
  font-size: 0.78rem;
  color: #3730a3;
}

.aiw-art-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 232px;
  gap: 2.5rem;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.aiw-side-title {
  margin: 0 0 0.75rem;
  font-family: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #64748b;
}

.aiw-art-toc {
  position: sticky;
  top: 1.5rem;
  align-self: start;
}

.aiw-art-toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid #e2e8f3;
}

.aiw-art-toc-list li { margin: 0; }

.aiw-art-toc-list a {
  display: block;
  padding: 0.32rem 0 0.32rem 0.85rem;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 0.855rem;
  line-height: 1.45;
  color: #55617a;
}

.aiw-art-toc-list a:hover {
  border-left-color: #a5b4fc;
  color: #312e81;
  text-decoration: none;
}

.aiw-art-toc-list a.is-active {
  border-left-color: #4f46e5;
  color: #312e81;
  font-weight: 600;
}

.aiw-art-body {
  max-width: 740px;
  font-size: 1.0625rem;   /* 17px */
  line-height: 1.75;
}

.aiw-art-body > p:first-child { margin-top: 0; }

.aiw-art-tools { position: sticky; top: 1.5rem; }

.aiw-tool-card {
  padding: 1.1rem 1.15rem;
  border: 1px solid #e2e8f3;
  border-radius: 0.85rem;
  background: #fff;
}

.aiw-tool-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}

.aiw-tool-link:hover { color: #4f46e5; text-decoration: none; }

.aiw-tool-link--primary {
  margin-bottom: 0.35rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid #c7d2fe;
  border-radius: 0.6rem;
  background: #eef2ff;
  font-weight: 600;
  color: #312e81;
  justify-content: center;
}

.aiw-tool-link--primary:hover { background: #e0e7ff; }

.aiw-tool-cite { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid #f1f5f9; }

.aiw-tool-label {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #64748b;
}

.aiw-tool-cite .aiw-cite-text {
  margin: 0 0 0.7rem;
  overflow-wrap: anywhere;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #475569;
}

.aiw-tool-copy { width: 100%; justify-content: center; font-size: 0.8rem; }

.aiw-tool-license,
.aiw-tool-copy-note {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
}

.aiw-tool-license { margin-top: 1rem; color: #64748b; }
.aiw-tool-license a { color: #4f46e5; }

/* The publishing model, stated where the licence is: a fact about the article
   the reader is on, not a badge. Kept to one quiet line under the licence. */
.aiw-tool-oa {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #4338ca;
}

.aiw-related { margin-top: 1.75rem; }

.aiw-related-list { margin: 0; padding: 0; list-style: none; }

.aiw-related-item { padding: 0.7rem 0; border-top: 1px solid #f1f5f9; }
.aiw-related-item:first-child { border-top: none; padding-top: 0; }

.aiw-related-title {
  display: block;
  font-family: "Merriweather", Georgia, serif;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #312e81;
}

.aiw-related-title:hover { color: #4f46e5; text-decoration: none; }

.aiw-related-authors {
  margin: 0.25rem 0 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #7c8798;
}

.aiw-related-more {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #4f46e5;
}

/* Contents on small screens: a button that opens the same list. */
.aiw-toc-toggle { display: none; }

@media (max-width: 1100px) {
  .aiw-art-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 3rem;
  }
  .aiw-art-head { padding: 0 1.25rem; margin-bottom: 1.75rem; }
  .aiw-art-title { max-width: none; }

  .aiw-art-toc { position: static; order: 2; }
  .aiw-toc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid #e2e8f3;
    border-radius: 0.7rem;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    color: #312e81;
    cursor: pointer;
  }
  .aiw-toc-toggle::after {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 150ms ease;
  }
  .aiw-art-toc.is-open .aiw-toc-toggle::after { transform: rotate(-135deg); }
  .aiw-art-toc-list {
    display: none;
    margin-top: 0.6rem;
    border-left: none;
  }
  .aiw-art-toc.is-open .aiw-art-toc-list { display: block; }
  .aiw-art-toc-list a { padding: 0.45rem 0; border-left: none; }
  .aiw-art-toc-list a:hover { border-left: none; }

  .aiw-art-tools { position: static; order: 1; }
  .aiw-art-body { max-width: none; order: 3; }
  .aiw-related { margin-top: 1.5rem; }
}

/* Desktop: related articles sit under the tools column, not under the text, so the
   reading column keeps its measure. On phones they follow the body. */
.aiw-art-grid { grid-template-areas: "toc body tools" "toc body related"; }
.aiw-art-toc { grid-area: toc; }
.aiw-art-body { grid-area: body; }
.aiw-art-tools { grid-area: tools; }
.aiw-art-related { grid-area: related; align-self: start; }

@media (max-width: 1100px) {
  .aiw-art-grid {
    /* minmax(0, 1fr) rather than 1fr: a long DOI or citation token would
       otherwise set the column's min-content width and push the page sideways. */
    grid-template-areas: none;
    grid-template-columns: minmax(0, 1fr);
  }
  /* Named areas are gone below the desktop breakpoint, so the grid-area names
     must be cleared too: left in place they all resolve to the same implicit
     line and the three blocks stack on top of each other. */
  .aiw-art-toc,
  .aiw-art-body,
  .aiw-art-tools,
  .aiw-art-related { grid-area: auto; }
  .aiw-art-toc { order: 2; }
  .aiw-art-tools { order: 1; }
  .aiw-art-body { order: 3; }
  .aiw-art-related { order: 4; }
  .aiw-art-toc .aiw-side-title { display: none; }
}

@media (min-width: 1101px) {
  .aiw-toc-toggle { display: none; }
}

/* ---------------------------------------------------------------------------
   Vol 1 No 4 follow-up: compact current-issue banner, contained issue page

   The banner was a 920px flex box whose two children only filled its left half,
   so the right side was empty. It now sizes to its contents. The issue page had
   no container at all, so the cover sat against the window edge and the galley
   links ran to the far right, out of line with the header and footer.
   ------------------------------------------------------------------------- */

.aiw-current {
  width: fit-content;
  max-width: 100%;
  gap: 2rem;
  padding: 1.5rem;
  align-items: center;
}

.aiw-current-cover { flex: 0 0 176px; }

.aiw-current-title {
  margin-bottom: 0.4rem;
  font-size: 1.4rem;
  line-height: 1.3;
}

.aiw-current-meta { margin-bottom: 0.75rem; }

.aiw-current-desc {
  max-width: 48ch;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aiw-current-cta { margin-top: 0; }

/* Issue page: cover 190px, contents take the rest of the container. */
.aiw-issue-body {
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 2.5rem;
  padding-top: 0.5rem;
}

.aiw-issue-cover-col img { border: 1px solid #e2e8f3; }

/* Right-hand column of each contents entry: two small links, right aligned, with
   a consistent width so they line up down the list. */
.aiw-issue-entry { grid-template-columns: minmax(0, 1fr) 132px; }
.aiw-issue-entry-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; }
.aiw-issue-entry-side:empty { display: none; }
.aiw-issue-entry-galleys { justify-content: flex-end; gap: 0.3rem; }
.aiw-issue-galley-link { padding: 0.12rem 0.45rem; }

@media (max-width: 900px) {
  .aiw-current {
    width: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.15rem;
  }
  .aiw-current-cover { flex: none; width: 140px; }
  .aiw-current-desc { -webkit-line-clamp: 3; }

  /* Cover first, contents second. */
  .aiw-issue-body { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .aiw-issue-cover-col { width: 150px; }
  .aiw-issue-entry-side { flex-direction: row; align-items: center; justify-content: flex-start; }
  .aiw-issue-entry-galleys { justify-content: flex-start; }
}

/* ---------------------------------------------------------------------------
   Call for Papers and Special Issue: spacing and reading measure

   The topic cards carried 2rem of vertical padding, which is what put a 300-word
   card and a 480-word card 50px apart in height for no reason. Special Issue
   prose ran the full 1232px of the container, roughly 150 characters a line.
   ------------------------------------------------------------------------- */

.aiw-cfp-topic-card {
  padding: 1.35rem 1.4rem;
  gap: 0.55rem;
}

.aiw-cfp-topic-card p { margin: 0; }

.aiw-si-prose,
.aiw-si-prose-p,
.aiw-si-note { max-width: 68ch; }

.aiw-si-section { padding: 1.75rem; }

@media (max-width: 900px) {
  .aiw-cfp-topic-card { padding: 1.15rem 1.15rem; }
  .aiw-si-section { padding: 1.25rem; }
}

/* The Issues page carried the same defect as the homepage banner: a 1232px card
   whose text filled the left third. Size it to its contents so the card ends
   where the issue description does. */
.aiw-issues-feature {
  width: fit-content;
  max-width: 100%;
  grid-template-columns: 200px minmax(0, max-content);
}

/* 54ch wrapped "Vol. 1 No. 4 (December 2026)" onto two lines; the title needs
   about 62ch at this size, so cap a little above that. */
.aiw-issues-feature-body { max-width: 68ch; }

@media (max-width: 899px) {
  .aiw-issues-feature { width: auto; grid-template-columns: minmax(0, 1fr); }
  .aiw-issues-feature-body { max-width: none; }
}

/* ---------------------------------------------------------------------------
   Hero: one alignment for both slides, a turnaround note, no "Next" strip

   Slide 1 had its copy at a custom left padding while slide 2 still used the old
   right-hand layout, so switching slides moved the heading sideways and changed
   its measure. Both now share one padding, one content width and one vertical
   rhythm; the type is about 10% larger.
   ------------------------------------------------------------------------- */

.aiw-hero2-inner {
  padding: 0 42% 4.75rem clamp(1.5rem, 6%, 6rem);
}

.aiw-hero2-slide--si .aiw-hero2-inner {
  padding-left: clamp(1.5rem, 6%, 6rem);
  padding-right: 42%;
}

/* Slide 2 also carries its copy on the left now, so it needs the same left-hand
   wash slide 1 has; the painting still reads through the right half. */
.aiw-hero2-slide--cfp {
  background-position: 62% center;
}

.aiw-hero2-slide--cfp::after {
  background:
    linear-gradient(90deg,
      rgba(248, 250, 252, 0.93) 0%,
      rgba(248, 250, 252, 0.82) 27%,
      rgba(248, 250, 252, 0.30) 50%,
      rgba(248, 250, 252, 0) 64%),
    radial-gradient(58% 70% at 16% 50%,
      rgba(248, 250, 252, 0.55) 0%,
      rgba(248, 250, 252, 0) 72%);
}

.aiw-hero2-content { max-width: 640px; }

.aiw-hero2-badge { font-size: 0.77rem; padding: 0.35rem 0.85rem; }

.aiw-hero2-title { font-size: 2.15rem; }

.aiw-hero2-title-sub { font-size: 1.32rem; }

.aiw-hero2-lead {
  font-size: 1.03rem;
  min-height: 3.4em;
  margin-bottom: 1.75rem;
}

.aiw-hero2-actions { gap: 0.8rem; }

.aiw-hero2-actions .aiw-btn { font-size: 0.97rem; }

/* Dots sit where the copy starts, so they read as part of the same column. */
.aiw-hero2-strip {
  padding: 0 3rem 1.35rem clamp(1.5rem, 6%, 6rem);
  justify-content: flex-start;
}

/* Small notes, not badges: eyebrow, one line of serif, a thin indigo rule on the
   leading edge. They stack in the lower right of the plate where the painting is
   open ground, so nothing important is covered, and they read the same on both
   slides. */
.aiw-hero2-notes {
  position: absolute;
  right: clamp(1.5rem, 4.5%, 4.5rem);
  bottom: 3.15rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 172px;
}

.aiw-hero2-note {
  margin: 0;
  padding: 0.6rem 0.8rem 0.66rem;
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-left: 2px solid rgba(79, 70, 229, 0.5);
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(7px) saturate(115%);
  backdrop-filter: blur(7px) saturate(115%);
  box-shadow: 0 1px 2px rgba(49, 46, 129, 0.07);
  text-align: left;
}

.aiw-hero2-note-kicker {
  margin: 0;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #6366f1;
}

.aiw-hero2-note-text {
  margin: 0.22rem 0 0;
  font-family: "Merriweather", Georgia, serif;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.35;
  color: #312e81;
}

.aiw-hero2-note-meta {
  margin: 0.16rem 0 0;
  font-size: 0.68rem;
  line-height: 1.4;
  color: #4b5563;
}

@media (max-width: 1024px) {
  .aiw-hero2-inner { padding: 0 1.75rem 2.75rem 1.75rem; }
  .aiw-hero2-strip { padding: 0 1.75rem 1.1rem; }
  .aiw-hero2-title { font-size: 1.8rem; }
  .aiw-hero2-title-sub { font-size: 1.12rem; }
  .aiw-hero2-content { max-width: none; }
  /* Smaller, not hidden: the note keeps its lower-right corner but takes less
     room from the painting at tablet widths. */
  .aiw-hero2-notes { width: 150px; bottom: 2.9rem; }
  .aiw-hero2-note { padding: 0.5rem 0.7rem 0.55rem; }
  .aiw-hero2-note-text { font-size: 0.78rem; }
}

@media (max-width: 820px) {
  /* The overlay is gone at this width, so the note joins the flow: one quiet
     centred line under the dots instead of a floating card over the artwork. */
  .aiw-hero2-notes {
    position: static;
    width: auto;
    max-width: 22rem;
    margin: 0 auto 1.1rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
  }
  .aiw-hero2-note {
    flex: 1 1 8.5rem;
    padding: 0.45rem 0.7rem;
    text-align: center;
    border-left-width: 1px;
    border-radius: 0.45rem;
  }
  .aiw-hero2-note-text { font-size: 0.78rem; }
  .aiw-hero2-note-meta { font-size: 0.66rem; }
}

/* Below 520px two cards of 8.5rem leave the labels breaking mid-phrase, so they
   go full width and stack; the same three lines each, just readable. */
@media (max-width: 520px) {
  .aiw-hero2-notes { flex-direction: column; max-width: 19rem; }
  .aiw-hero2-note { flex: 1 1 auto; text-align: left; padding: 0.5rem 0.75rem; }
}

/* ---------------------------------------------------------------------------
   Homepage: publishing model strip

   Four facts between the carousel and the current issue. Hairlines top and
   bottom instead of a card, so it reads as a divider rather than another panel,
   and it costs one text line of height at desktop widths.
   ------------------------------------------------------------------------- */

.aiw-model-bar {
  border-top: 1px solid #e6eaf5;
  border-bottom: 1px solid #e6eaf5;
  background: #fbfbfe;
}

.aiw-model-bar-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem 1.4rem;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  list-style: none;
}

.aiw-model-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.aiw-model-bar-item svg { flex: none; color: #4f46e5; }

.aiw-model-bar-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  color: #312e81;
}

.aiw-model-bar-text {
  margin: 0.08rem 0 0;
  font-size: 0.75rem;
  line-height: 1.3;
  color: #64748b;
}

@media (max-width: 900px) {
  .aiw-model-bar-list { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0.8rem 1.25rem; }
}

@media (max-width: 520px) {
  .aiw-model-bar-list { gap: 0.6rem 0.9rem; padding: 0.75rem 1.1rem; }
  .aiw-model-bar-label { font-size: 0.78rem; }
  .aiw-model-bar-text { font-size: 0.72rem; }
}

/* Quiet pill row for policy facts inside an existing panel: Diamond Open
   Access, No APCs, rolling submissions. Not buttons -- nothing here is
   clickable -- and no fill heavy enough to compete with the panel heading. */
.aiw-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
}

.aiw-tag-row li {
  padding: 0.18rem 0.55rem;
  border: 1px solid #ded9fb;
  border-radius: 999px;
  background: #f6f5ff;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.5;
  color: #4338ca;
}

/* ---------------------------------------------------------------------------
   Homepage: the current issue

   Cover and issue facts in a narrow left column, the issue's opening articles
   down the right as wide cards carrying the authors and an abstract excerpt.
   The whole block - including the two footer links - sits in one bordered card
   so the section reads as a unit rather than a banner plus a loose list.
   ------------------------------------------------------------------------- */

.aiw-ci {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 0.4rem 2rem;
  padding: 1.6rem;
  border: 1px solid #e2e8f3;
  border-radius: 1rem;
  background: #fff;
}

.aiw-ci-side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.aiw-ci-cover {
  display: block;
  border-radius: 0.6rem;
  overflow: hidden;
  background: #eef2ff;
  box-shadow: 0 2px 12px rgba(30, 27, 75, 0.14);
}

.aiw-ci-cover img { display: block; width: 100%; height: auto; }

.aiw-ci-title {
  margin: 1.05rem 0 0;
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.34rem;
  font-weight: 700;
  line-height: 1.28;
  color: #312e81;
}

.aiw-ci-date {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.6rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.aiw-ci-date svg { flex: none; color: #7c86a2; }

.aiw-ci-desc {
  margin: 0.85rem 0 0;
  font-size: 0.84rem;
  line-height: 1.62;
  color: #4b5563;
}

.aiw-ci-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  padding: 0.62rem 1rem;
  border-radius: 0.55rem;
  background: #4f46e5;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.aiw-ci-cta:hover { background: #4338ca; color: #fff; text-decoration: none; }

.aiw-ci-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aiw-ci-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid #e6ebf5;
  border-radius: 0.75rem;
  background: #fff;
}

.aiw-ci-card-body { min-width: 0; }

.aiw-ci-card-title {
  margin: 0;
  font-family: "Merriweather", Georgia, serif;
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.38;
  color: #1e1b4b;
}

.aiw-ci-card-title a { color: inherit; }
.aiw-ci-card-title a:hover { color: #4f46e5; text-decoration: none; }

.aiw-ci-card-authors {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  margin: 0.35rem 0 0;
  font-size: 0.79rem;
  line-height: 1.45;
  color: #6b7280;
}

.aiw-ci-card-authors svg { flex: none; color: #9aa3b5; }

.aiw-ci-card-abstract {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #59616f;
}

.aiw-ci-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding-left: 1.1rem;
  border-left: 1px solid #e8ecf7;
  font-size: 0.82rem;
  font-weight: 600;
  color: #4f46e5;
  white-space: nowrap;
  text-decoration: none;
}

.aiw-ci-card-link:hover { color: #312e81; text-decoration: none; }

.aiw-ci-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  padding-top: 0.95rem;
  border-top: 1px solid #e8edf7;
}

.aiw-ci-all {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #4f46e5;
}

.aiw-ci-all:hover { color: #312e81; text-decoration: none; }

.aiw-ci-about {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #4f46e5;
}

.aiw-ci-about:hover { color: #312e81; text-decoration: none; }

@media (max-width: 900px) {
  .aiw-ci { grid-template-columns: minmax(0, 1fr); gap: 1.15rem; padding: 1.15rem; }
  .aiw-ci-cover { max-width: 186px; }
  .aiw-ci-title { font-size: 1.18rem; }
  .aiw-ci-cta { width: 100%; }
  .aiw-ci-card { grid-template-columns: minmax(0, 1fr); gap: 0.55rem; padding: 0.85rem; }
  .aiw-ci-card-link { padding-left: 0; border-left: 0; }
  .aiw-ci-card-abstract { -webkit-line-clamp: 4; }
  .aiw-ci-foot { margin-top: 0.2rem; padding-top: 0.85rem; }
}

/* ---------------------------------------------------------------------------
   Article detail: justified body, compact ORCID mark, article information

   Prose runs justified with hyphenation so the right edge is even without the
   rivers that justification creates when words cannot break. Headings, captions,
   equations, code and table cells keep their own alignment.
   ------------------------------------------------------------------------- */

.aiw-art-body p,
.aiw-art-abstract-text,
.aiw-fulltext > p {
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.aiw-fulltext h1,
.aiw-fulltext h2,
.aiw-fulltext h3,
.aiw-fulltext h4,
.aiw-fulltext li,
.aiw-fulltext figcaption,
.aiw-fulltext .table-caption,
.aiw-fulltext .table-note,
.aiw-fulltext table,
.aiw-fulltext pre,
.aiw-fulltext code,
.aiw-fulltext math {
  text-align: initial;
  -webkit-hyphens: manual;
  hyphens: manual;
}

.aiw-fulltext li { text-align: left; }

/* The ORCID mark sits with the name, at text size, and carries no link. */
.aiw-article-author-orcid {
  display: inline-block;
  width: 14px;
  height: 14px;
  vertical-align: -2px;
}

/* Hovering (or focusing) the mark shows the iD as a URL, as a tooltip rather
   than as something to click: the badge is an identifier, not a link. */
.aiw-orcid {
  position: relative;
  display: inline-block;
  margin-left: 0.28rem;
  line-height: 0;
  vertical-align: -2px;
  cursor: help;
  border-radius: 2px;
}

.aiw-orcid::after {
  content: attr(data-orcid);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  z-index: 6;
  transform: translateX(-50%) translateY(3px);
  padding: 0.28rem 0.45rem;
  border-radius: 0.3rem;
  background: #1e293b;
  color: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.aiw-orcid::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #1e293b;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease;
}

.aiw-orcid:hover::after,
.aiw-orcid:focus-visible::after,
.aiw-orcid:hover::before,
.aiw-orcid:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.aiw-orcid:focus-visible { outline: 2px solid #6366f1; outline-offset: 2px; }

/* Article Information panel in the tools column. */
.aiw-tool-info { margin-bottom: 1.05rem; padding-bottom: 0.9rem; border-bottom: 1px solid #f1f5f9; }

.aiw-tool-dates { margin: 0; }

.aiw-tool-dates > div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.18rem 0;
}

.aiw-tool-dates dt {
  margin: 0;
  font-size: 0.78rem;
  color: #94a3b8;
}

.aiw-tool-dates dd {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  text-align: right;
}

.aiw-tool-dates dd a { color: #4f46e5; font-weight: 600; overflow-wrap: anywhere; }

.aiw-side-title--files { margin-top: 0.15rem; }

/* ---------------------------------------------------------------------------
   Article masthead: the correspondence line
   The star marks the author in the list; the line under the affiliations names
   that author and prints the address once, instead of hanging a raw mailto off
   every entry.
   ------------------------------------------------------------------------- */

.aiw-article-author .aiw-article-author-corr {
  font-size: 0.78em;
  line-height: 0;
  vertical-align: super;
}

.aiw-art-corr {
  margin: 0.35rem 0 0;
  text-align: center;
}

.aiw-art-corr-line {
  margin: 0.1rem 0 0;
  font-size: 0.875rem;
  color: #475569;
}

.aiw-art-corr-label {
  font-weight: 600;
  color: #312e81;
}

.aiw-art-corr-sep {
  margin: 0 0.4rem;
  color: #94a3b8;
}

.aiw-art-corr-line a { color: #4f46e5; word-break: break-all; }

/* Footer's quiet legal pointer, where the publisher block used to sit. */
.aiw-footer-legal { margin: 0; font-size: 0.75rem; }
.aiw-footer-legal a { color: #94a3b8; }
.aiw-footer-legal a:hover,
.aiw-footer-legal a:focus { color: #4f46e5; }

/* ---------------------------------------------------------------------------
   Second-language front block
   A paper published with a translated title and its own abstract keeps both. It
   sits after the English keywords and is set a size down, so the page does not
   read as two competing abstracts.
   ------------------------------------------------------------------------- */

.aiw-art-alt {
  margin: 1.5rem 0 2rem;
  padding: 1rem 0 0.2rem;
  border-top: 1px solid #e2e8f3;
}

.aiw-art-alt-title {
  margin: 0 0 0.45rem;
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
  color: #312e81;
}

.aiw-art-alt-label {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6366f1;
}

.aiw-art-alt-text {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #475569;
}

/* A numbered caption above a code sample ("Example 1. ..."), and the sample
   itself. These manuscripts box JSON in a one-cell table; printed as a block it
   reads as what it is, instead of collapsing into an empty grid. */
.aiw-fulltext p.caption,
.aiw-fulltext .table-caption {
  margin: 1.15rem 0 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  color: #312e81;
  text-align: left;
}

.aiw-fulltext pre.code {
  margin: 0 0 1.4rem;
  padding: 0.9rem 1rem;
  border: 1px solid #e2e8f3;
  border-radius: 0.5rem;
  background: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #1e293b;
  max-width: 100%;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  tab-size: 2;
}

/* Room above the author line: the ORCID tooltip opens upward, and on a long
   title it used to land on the last line of it. */
.aiw-article-authors { margin-top: 1.9rem; }

/* Narrow screens: the chip hangs to the left of the mark instead of centring on
   it, so a badge at the right edge of the column cannot push the URL off screen. */
@media (max-width: 899px) {
  .aiw-orcid::after {
    left: auto;
    right: 0;
    transform: translateY(3px);
  }
  .aiw-orcid:hover::after,
  .aiw-orcid:focus-visible::after { transform: translateY(0); }
  .aiw-orcid::before {
    left: auto;
    right: 5px;
    transform: none;
  }
}

/* ---------------------------------------------------------------------------
   Issues page: the whole archive in one grid
   The current issue used to be a hero card with the others behind it. Four
   covers now sit side by side, so the row reads as a run of issues rather than
   one issue plus a list; the grid steps down to two columns and then one.
   ------------------------------------------------------------------------- */

.aiw-issues-all { padding-bottom: 3.5rem; }

.aiw-issues-all-title {
  margin: 3rem 0 1.5rem;
  font-family: "Merriweather", Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #312e81;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e0e7ff;
}

.aiw-issues-all-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.aiw-issues-all-grid .aiw-archive-issue {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* The archive grid capped covers at 160px when cards sat three across; at four
   across the card is wide enough to carry the whole cover. */
.aiw-issues-all-grid .aiw-archive-issue-cover { max-width: none; }

.aiw-issues-all-grid .aiw-archive-issue-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.aiw-issues-all-grid .aiw-archive-issue-title {
  margin: 0;
  font-family: "Merriweather", Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

.aiw-issues-all-grid .aiw-archive-issue-title a { color: #312e81; }
.aiw-issues-all-grid .aiw-archive-issue-title a:hover { color: #4f46e5; }

.aiw-issues-all-grid .aiw-btn {
  align-self: flex-start;
  margin-top: 0.25rem;
}

@media (max-width: 1100px) {
  .aiw-issues-all-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .aiw-issues-all-grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .aiw-issues-all-title { margin-top: 2.25rem; }
}

/* ---------------------------------------------------------------------------
   Footer imprint
   The registered company, its logo and its office. Kept out of the way in the
   bottom row: right-aligned on desktop, left-aligned once the row stacks, so the
   address reads as fine print rather than as a second brand.
   ------------------------------------------------------------------------- */

.aiw-footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.aiw-footer-publisher {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.aiw-footer-publisher a { color: inherit; }
.aiw-footer-publisher a:hover,
.aiw-footer-publisher a:focus { color: #4f46e5; }

.aiw-footer-publisher .aiw-footer-publisher-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}

.aiw-footer-publisher .aiw-footer-publisher-logo-link:hover,
.aiw-footer-publisher .aiw-footer-publisher-logo-link:focus-visible { opacity: 0.78; }

.aiw-footer-publisher .aiw-footer-publisher-logo {
  height: 2.4rem;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  display: block;
}

.aiw-footer-publisher .aiw-footer-publisher-label {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.aiw-footer-publisher .aiw-footer-publisher-address { line-height: 1.5; }

@media (max-width: 768px) {
  .aiw-footer-publisher { align-items: flex-start; text-align: left; }
}
