/* Atlas-inspired styling for OJS 3.5 Health Sciences.
 * Standalone stylesheet: replace the previous journal stylesheet.
 * Original theme assets, links, Bootstrap controls and data stay intact.
 */
:root {
  --eet-atlas-paper: #fbfaf7;
  --eet-atlas-soft: #f3f0e9;
  --eet-atlas-tint: #efeadd;
  --eet-atlas-card: #ffffff;
  --eet-atlas-ink: #0a0907;
  --eet-atlas-muted: #6f6959;
  --eet-atlas-line: #e8e2d2;
  --eet-atlas-line-hover: #d6cebc;
  --eet-atlas-accent: #d3001e;
  --eet-atlas-orange: #dc7f2b;
  --eet-atlas-radius: 18px;
  --eet-atlas-width: 1240px;
  --eet-atlas-gutter: max(24px, calc((100% - var(--eet-atlas-width)) / 2));
  --eet-atlas-serif: Georgia, "Times New Roman", serif;
  --eet-atlas-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --eet-atlas-shadow: 0 1px 2px rgba(10, 9, 7, .04), 0 8px 32px -16px rgba(10, 9, 7, .12);
  --eet-atlas-shadow-hover: 0 1px 2px rgba(10, 9, 7, .06), 0 24px 48px -20px rgba(10, 9, 7, .18);
  --eet-cover-scale: 1.045;
  --eet-button-scale: 1.035;
  --eet-article-scale: 1.01;
  --eet-button-blue: #5b9bd5;
  --eet-action-blue: var(--eet-button-blue);
  --eet-underline-blue: #15558d;
  --eet-announcement-bg: #eaf4fc;
  --eet-announcement-gap: 16px;
  --eet-announcement-radius: 12px;
  --eet-dropdown-radius: 12px;
}

/* Frontend only. Do not restyle OJS editorial dashboards. */
body:has(.main-header) {
  background: var(--eet-atlas-paper);
  color: var(--eet-atlas-ink);
  font-family: var(--eet-atlas-sans);
  line-height: 1.65;
}

body .page-content :is(h1, h2, h3, .h1) {
  font-family: var(--eet-atlas-serif);
  letter-spacing: -.025em;
  color: var(--eet-atlas-ink);
}

/* Keep the space above the logo; restyle the branding band, not its top padding. */
body .main-header {
  background: linear-gradient(to bottom, transparent calc(100% - 60px), var(--eet-atlas-paper)),
    radial-gradient(600px 240px at 90% 0%, rgba(220, 127, 43, .08), transparent 72%),
    radial-gradient(400px 240px at 5% 100%, rgba(15, 118, 110, .055), transparent 72%),
    var(--eet-atlas-soft);
  border-bottom: 0;
}

body .main-header > .container {
  max-width: var(--eet-atlas-width);
}

/* Optional publisher logo inserted by the Custom Header snippet. */
body .main-header.eet-has-publisher-logo {
  position: relative;
}

body .main-header .eet-publisher-logo {
  position: absolute;
  top: 12px;
  left: max(24px, calc((100% - var(--eet-atlas-width)) / 2 + 12px));
  z-index: 2;
  display: block;
  width: 168px;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: none;
  line-height: 0;
  text-decoration: none;
  transition: transform 220ms ease;
}

body .main-header .eet-publisher-logo img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 0;
}

body .main-header .eet-publisher-logo:focus-visible {
  outline: 2px solid var(--eet-underline-blue);
  outline-offset: 5px;
  border-radius: 4px;
}

@media (hover: hover) and (pointer: fine) {
  body .main-header .eet-publisher-logo:hover { transform: scale(1.015); }
}

@media (max-width: 991px) {
  body .main-header .eet-publisher-logo {
    position: static;
    width: 136px;
    margin: 12px 0 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .main-header .eet-publisher-logo {
    transition: none;
    transform: none;
  }
}

body .main-header .navbar {
  border-top: 1px solid var(--eet-atlas-line);
  padding-block: 8px;
}

body .main-header :is(.nav-link, .dropdown-item) {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .025em;
}

body .main-header .dropdown-menu {
  --bs-dropdown-bg: #fff;
  background: #fff !important;
  border: 1px solid var(--eet-atlas-line) !important;
  border-radius: var(--eet-dropdown-radius) !important;
  box-shadow: var(--eet-atlas-shadow-hover) !important;
  padding: 12px;
}

body .main-header .dropdown-menu.show {
  animation: eet-atlas-dropdown-in 180ms ease-out;
}

@media (min-width: 992px) {
  body .main-header .navbar-logo { padding-bottom: 6px; }
  body .main-header .navbar { padding-block: 4px !important; }
  body .main-header .navbar .navbar-nav {
    padding-block: 6px !important;
    margin-block: 0 !important;
  }
  body .main-header .navbar .navbar-nav .nav-link {
    padding-block: 4px !important;
    line-height: 24px !important;
  }
}

/* Static journal banner: override any animation left in the previous stylesheet. */
body .homepage-image.homepage-image-behind-issue {
  position: relative !important;
  inset: auto !important;
  height: clamp(180px, 25vw, 380px);
  overflow: hidden;
  margin: 0;
}

body .homepage-image.homepage-image-behind-issue > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: none !important;
  transform: none !important;
  translate: none !important;
  transition: none !important;
}

body .homepage-image.homepage-image-behind-issue::after {
  content: none !important;
  position: absolute;
  inset: 0;
  background: none !important;
  pointer-events: none;
}

/* Full-width color bands, with independently centered inner content. */
body .container-homepage-issue.page-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: var(--eet-atlas-paper);
}

/* The theme's image-overlay text rules use important white and margin values. */
body .container-homepage-issue > :is(
  .homepage-issue-current, .homepage-issue-identifier, .homepage-issue-published
) {
  margin: 0 !important;
  text-shadow: none !important;
  color: var(--eet-atlas-muted) !important;
}

body .container-homepage-issue > .homepage-issue-current {
  padding: 16px var(--eet-atlas-gutter) 4px;
  font-family: var(--eet-atlas-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--eet-atlas-muted);
}

body .container-homepage-issue > .homepage-issue-identifier {
  margin: 0;
  color: var(--eet-atlas-ink) !important;
  padding-inline: var(--eet-atlas-gutter);
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.15;
  font-weight: 400;
}

body .container-homepage-issue > .homepage-issue-published {
  margin: 0;
  padding: 8px var(--eet-atlas-gutter) 14px;
  color: var(--eet-atlas-muted);
  font-size: 13px;
  letter-spacing: .035em;
}

body .container-homepage-issue > .homepage-issue-header {
  margin: 0;
  padding: 0 var(--eet-atlas-gutter) 36px;
  align-items: center;
  row-gap: 20px;
  animation: eet-atlas-rise 650ms ease-out;
}

body .homepage-issue-header > .col-lg-3 {
  text-align: center;
  padding: 0 28px 0 0;
}

body .homepage-issue-header .homepage-issue-cover {
  max-height: 340px;
  width: auto;
  max-width: 100%;
  box-shadow: 0 16px 36px -18px rgba(10, 9, 7, .4);
  transform: scale(1);
  transition: transform 450ms ease, box-shadow 450ms ease;
}

body .homepage-issue-header > .col-lg-9 {
  padding: 32px;
  background: var(--eet-atlas-card);
  border: 1px solid var(--eet-atlas-line);
  border-radius: var(--eet-atlas-radius);
  box-shadow: var(--eet-atlas-shadow);
}

body .homepage-journal-description {
  color: #4a4339;
  font-size: 16px;
  line-height: 1.85;
}

body .homepage-journal-description a { color: #9c571a; }

/* Announcements: warm-gray section and separate pale-blue cards. */
body .container-homepage-issue > .homepage-announcements {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--eet-announcement-gap);
  align-items: start;
  margin: 0;
  padding: 28px var(--eet-atlas-gutter) 32px;
  background: var(--eet-atlas-soft);
  border-block: 1px solid var(--eet-atlas-line);
}

body .homepage-announcements > h2.visually-hidden {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
  grid-column: 1 / -1;
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 400;
}

body .container-homepage-issue .homepage-announcements > .homepage-announcement {
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 18px 22px;
  background: var(--eet-announcement-bg) !important;
  border: 1px solid rgba(21, 85, 141, .08);
  border-radius: var(--eet-announcement-radius);
  display: flex;
  flex-direction: column;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

body .homepage-announcement :is(h3, .h3) {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 10px !important;
}

body .homepage-announcement p {
  color: #4a4339;
  line-height: 1.65;
  margin: 0 0 10px !important;
}
/* Remove empty spacers only; preserve paragraph text and its internal line breaks. */
body .homepage-announcement > :is(p:empty, br) { display: none; }
body .homepage-announcement footer {
  margin: 10px 0 0;
  padding-top: 8px;
  color: var(--eet-atlas-muted);
}
body .homepage-announcement a { color: var(--eet-underline-blue); }

@media (min-width: 840px) {
  body .container-homepage-issue > .homepage-announcements {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Alternating bands: the article section returns to paper; cards sit on a warm tint. */
body .container-homepage-issue > .issue-wrapper {
  margin: 0;
  padding: 64px var(--eet-atlas-gutter);
  background: var(--eet-atlas-paper);
}

body .container-homepage-issue > .issue-wrapper > .col-12.col-lg-9 {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  padding: 32px !important;
  background: var(--eet-atlas-soft);
  border: 1px solid var(--eet-atlas-line);
  border-radius: 24px;
}

body .container-homepage-issue .issue-toc-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin: 0;
}

body :is(.container-homepage-issue, .page-issue) .issue-toc-section + .issue-toc-section { margin-top: 48px; }

body :is(.page-content, .page-issue) .issue-toc .issue-toc-section-title {
  grid-column: 1 / -1;
  font-family: var(--eet-atlas-serif);
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
}

body .container-homepage-issue .article-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 28px;
  background: var(--eet-atlas-card);
  border: 1px solid var(--eet-atlas-line);
  border-top: 3px solid #edbc91;
  border-radius: var(--eet-atlas-radius);
  box-shadow: var(--eet-atlas-shadow);
  transform: none;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

body .container-homepage-issue .article-summary-title {
  order: 1;
  font-family: var(--eet-atlas-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
  margin: 0;
}

body .container-homepage-issue .article-summary-title a {
  color: var(--eet-atlas-accent) !important;
  text-decoration: none;
  transition: color 200ms ease;
}

body .container-homepage-issue .article-summary-authors {
  order: 2;
  color: var(--eet-atlas-muted);
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
}

body .container-homepage-issue .article-summary-galleys {
  order: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: auto 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--eet-atlas-line);
}

/* Keep download links consistent on home, issue, search and article pages. */
body:has(.main-header) :is(
  .article-summary-galleys, .article-details-galley, .issue-galleys
) .btn {
  display: inline-block;
  margin: 0;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body .container-homepage-issue > .text-center {
  margin: 0;
  padding: 0 var(--eet-atlas-gutter) 64px;
  background: var(--eet-atlas-paper);
}

@media (min-width: 840px) {
  body .container-homepage-issue .issue-toc-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Issue contents: a paper masthead and cover, then a warm article band. */
body .container.page-issue {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: var(--eet-atlas-paper);
}

body .page-issue > .page-issue-header {
  margin: 0;
  padding: 24px var(--eet-atlas-gutter) 20px;
  text-align: left;
  background: radial-gradient(ellipse at 90% 10%, rgba(220, 127, 43, .09), transparent 60%),
    var(--eet-atlas-paper);
  border-bottom: 1px solid var(--eet-atlas-line);
}

body .page-issue-header h1 {
  margin: 0 0 12px;
  font-family: var(--eet-atlas-serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--eet-atlas-ink);
  overflow-wrap: anywhere;
  animation: eet-atlas-rise 650ms ease-out;
}

body .page-issue .page-issue-date {
  display: inline-block;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid var(--eet-atlas-line);
  border-radius: 999px;
  background: #fff;
  color: var(--eet-atlas-muted);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .035em;
}

body .page-issue > .page-issue-details {
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  margin: 0;
  padding: 36px var(--eet-atlas-gutter) 48px;
}

body .page-issue-details > :is(.col-lg-9, .col-lg-3) {
  width: auto;
  max-width: none;
  min-width: 0;
  padding: 0;
}

body .page-issue-details > .col-lg-3 {
  order: -1;
  text-align: center;
}

body .page-issue-details > .col-lg-3 > a {
  display: inline-block;
  max-width: 100%;
}

body .page-issue .page-issue-cover {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 16px 36px -18px rgba(10, 9, 7, .4);
  transition: transform 400ms ease, box-shadow 400ms ease;
}

body .page-issue .page-issue-description-wrapper {
  margin: 0;
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--eet-atlas-line);
  border-radius: var(--eet-atlas-radius);
  background: var(--eet-atlas-card);
  box-shadow: var(--eet-atlas-shadow);
}

body .page-issue .page-issue-description {
  margin: 0;
  color: #4a4339;
  font-family: var(--eet-atlas-sans);
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

body .page-issue-description p {
  margin: 16px 0 0 !important;
  font-size: inherit;
  line-height: inherit;
}

body .page-issue-description > :first-child { margin-top: 0 !important; }
body .page-issue-description > :last-child { margin-bottom: 0 !important; }
body .page-issue-description img { max-width: 100%; height: auto; border-radius: 12px; }
body .page-issue-description table { display: block; max-width: 100%; overflow-x: auto; }
body .page-issue-description :is(ul, ol) { padding-left: 24px; margin-block: 16px; }
body .page-issue-description a:not(.btn) { color: var(--eet-underline-blue); }

body .page-issue-description > .h2 {
  margin: 0;
  font-family: var(--eet-atlas-serif);
  font-size: 30px;
  font-weight: 400;
  color: var(--eet-atlas-ink);
}

/* Some Health Sciences templates use an unlabelled row for the contents. */
body .page-issue > :is(.issue-wrapper, .row:has(> .col-12.col-lg-9 .issue-toc)) {
  margin: 0;
  padding: 48px var(--eet-atlas-gutter) 64px;
  background: var(--eet-atlas-soft);
  border-top: 1px solid var(--eet-atlas-line);
}

body .page-issue > :is(.issue-wrapper, .row:has(> .col-12.col-lg-9 .issue-toc)) > .col-12.col-lg-9 {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  padding: 0;
}

/* Rounded, numbered single-column cards remain distinct from the home grid. */
body .page-issue .issue-toc-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  counter-reset: eet-issue-article;
}

body .page-issue .issue-toc .issue-toc-section-title { margin-bottom: 24px; }

body .page-issue .article-summary {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 112px;
  gap: 8px 22px;
  align-items: start;
  min-width: 0;
  margin: 0;
  padding: 26px 24px;
  border: 1px solid var(--eet-atlas-line);
  border-radius: var(--eet-atlas-radius);
  background: var(--eet-atlas-card);
  box-shadow: var(--eet-atlas-shadow);
  counter-increment: eet-issue-article;
  transition: transform 250ms ease, background-color 250ms ease,
    box-shadow 250ms ease, border-color 250ms ease;
}

body .page-issue .article-summary:nth-of-type(even) { background: #fcfbf8; }

body .page-issue .article-summary::before {
  content: counter(eet-issue-article, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / 3;
  padding-top: 2px;
  font-family: var(--eet-atlas-serif);
  font-size: 32px;
  line-height: 1.2;
  color: #9c571a;
}

body .page-issue .article-summary-title {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  margin: 0;
  font-family: var(--eet-atlas-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

body .page-issue .article-summary-title a {
  color: var(--eet-atlas-ink) !important;
  text-decoration: none;
  transition: color 250ms ease;
}

body .page-issue .article-summary-authors {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--eet-atlas-muted);
  overflow-wrap: anywhere;
}

body .page-issue .article-summary-galleys {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 12px 0 12px 16px;
  border: 0;
  border-left: 1px solid var(--eet-atlas-line);
}

body .page-issue .article-summary-title a:focus-visible {
  outline: 2px solid var(--eet-underline-blue);
  outline-offset: 4px;
}

body .page-issue .article-summary:focus-within { background: #f8f0e4; }

@media (hover: hover) and (pointer: fine) {
  body .page-issue .article-summary:hover {
    background: #f8f0e4;
    transform: translateX(3px);
    border-color: var(--eet-atlas-line-hover);
    box-shadow: var(--eet-atlas-shadow-hover);
  }
  body .page-issue .article-summary:hover .article-summary-title a { color: #9c571a !important; }
}

@media (max-width: 767px) {
  body .page-issue .article-summary {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px 14px;
    padding: 22px 18px;
  }
  body .page-issue .article-summary::before { font-size: 26px; }
  body .page-issue .article-summary-title { font-size: 21px; }
  body .page-issue .article-summary-galleys {
    grid-column: 2;
    grid-row: 3;
    justify-content: flex-start;
    padding: 8px 0 0;
    border-left: 0;
  }
}

body .page-issue-details a:focus-visible {
  outline: 2px solid var(--eet-underline-blue);
  outline-offset: 6px;
  border-radius: 12px;
}

body .page-issue-details a:focus-visible .page-issue-cover {
  transform: scale(var(--eet-cover-scale));
}

@media (hover: hover) and (pointer: fine) {
  body .page-issue-details a:hover .page-issue-cover {
    transform: scale(var(--eet-cover-scale)) rotate(-.5deg);
    box-shadow: 0 24px 44px -20px rgba(10, 9, 7, .45);
  }
}

@media (max-width: 767px) {
  body .page-issue > .page-issue-details {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  body .page-issue .page-issue-cover { max-width: 200px; }
}

@media (max-width: 575px) {
  body .page-issue > .page-issue-header { padding-top: 20px; }
  body .page-issue .page-issue-description-wrapper { padding: 24px; }
  body .page-issue > :is(.issue-wrapper, .row:has(> .col-12.col-lg-9 .issue-toc)) {
    padding-block: 36px 48px;
  }
}

/* Archive: paper hero, warm browsing band and Atlas-style cover columns. */
body .container.page-archives {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 32px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 var(--eet-atlas-gutter) 80px;
  background: var(--eet-atlas-soft);
}

body .page-archives > .page-archives-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  grid-column: 1 / -1;
  margin: 0 calc(-1 * var(--eet-atlas-gutter)) 16px;
  padding: 56px var(--eet-atlas-gutter) 64px;
  text-align: left;
  background: var(--eet-atlas-paper);
  border-bottom: 1px solid var(--eet-atlas-line);
}

body .page-archives-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -100px -60px -100px 45%;
  background: radial-gradient(ellipse at 78% 35%, rgba(220, 127, 43, .15), transparent 65%);
  pointer-events: none;
  animation: eet-archive-glow 12s ease-in-out infinite;
}

body .page-archives-header::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 55%;
  background-image: linear-gradient(var(--eet-atlas-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--eet-atlas-line) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at 80% 45%, #000, transparent 72%);
  opacity: .4;
  pointer-events: none;
}

body .page-archives-header h1 {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding-bottom: 22px;
  font-family: var(--eet-atlas-serif);
  font-size: clamp(40px, 5.5vw, 76px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.035em;
  color: var(--eet-atlas-ink);
  overflow-wrap: anywhere;
  animation: eet-atlas-rise 700ms ease-out;
  transition: color 250ms ease;
}

body .page-archives-header h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: var(--eet-atlas-orange);
  transition: width 350ms ease;
}

/* Flatten Bootstrap's groups of four without altering issue order or links. */
body .page-archives > .row {
  display: contents;
}

body .page-archives > .row > div:has(.issue-summary) {
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}

body .page-archives > .row > div:empty {
  display: none;
}

body .page-archives > :not(.row):not(.page-archives-header) {
  grid-column: 1 / -1;
}

body .page-archives .card.issue-summary {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  animation: eet-archive-entry 650ms ease-out both;
  transition: transform 300ms ease;
}

body .page-archives .issue-summary > a {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--eet-atlas-line);
  border-radius: var(--eet-atlas-radius);
  background: var(--eet-atlas-tint);
  box-shadow: var(--eet-atlas-shadow);
  transition: box-shadow 300ms ease, border-color 300ms ease;
}

body .page-archives .issue-summary > a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, .22) 50%, transparent 75%);
  transform: translateX(-110%);
  transition: transform 750ms ease;
  pointer-events: none;
}

body .page-archives .issue-summary-cover {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border-radius: 0;
  object-fit: contain;
  transform-origin: center;
  transition: transform 450ms ease;
}

body .page-archives .issue-summary .card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 0 2px;
  background: transparent;
}

body .page-archives .issue-summary .card-text {
  display: contents;
}

body .page-archives .issue-summary-date {
  order: -1;
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--eet-atlas-muted);
}

body .page-archives .issue-summary-series {
  margin: 0;
  font-family: var(--eet-atlas-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
}

body .page-archives .issue-summary-series a {
  color: var(--eet-atlas-ink);
  text-decoration: none;
  background: linear-gradient(var(--eet-atlas-orange), var(--eet-atlas-orange)) no-repeat left bottom / 0% 1px;
  transition: color 250ms ease, background-size 350ms ease;
}

body .page-archives .issue-summary-title {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--eet-atlas-line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--eet-atlas-muted);
}

body .page-archives .issue-summary a:focus-visible {
  outline: 2px solid var(--eet-underline-blue);
  outline-offset: 5px;
}

body .page-archives .issue-summary:has(a:focus-visible) {
  transform: translateY(-4px);
}

@media (hover: hover) and (pointer: fine) {
  body .page-archives-header h1:hover { color: #9c571a; }
  body .page-archives-header h1:hover::after { width: 100%; }
  body .page-archives .issue-summary:hover { transform: translateY(-4px) scale(1.01); }
  body .page-archives .issue-summary:hover > a {
    box-shadow: var(--eet-atlas-shadow-hover);
    border-color: var(--eet-atlas-line-hover);
  }
  body .page-archives .issue-summary:hover .issue-summary-cover { transform: scale(1.035); }
  body .page-archives .issue-summary:hover > a::after { transform: translateX(110%); }
  body .page-archives .issue-summary:hover .issue-summary-series a {
    color: #9c571a;
    background-size: 100% 1px;
  }
}

@media (max-width: 920px) {
  body .container.page-archives { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  body .container.page-archives {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-bottom: 48px;
  }
  body .page-archives > .page-archives-header {
    padding-top: 36px;
    padding-bottom: 40px;
    margin-bottom: 4px;
  }
}

@keyframes eet-archive-entry {
  from { opacity: .6; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes eet-archive-glow {
  0%, 100% { transform: translateX(0); opacity: .75; }
  50% { transform: translateX(-18px); opacity: 1; }
}

/* Custom editorial page: requires editorial-board-content.html as its body. */
body .container.page-custom:has(.eet-editorial-board) {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 48px var(--eet-atlas-gutter) 80px;
  background: var(--eet-atlas-paper);
}

body .page-custom:has(.eet-editorial-board) > .row {
  margin: 0;
}

body .page-custom:has(.eet-editorial-board) > .row > .col-md-8 {
  flex: 0 0 100%;
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 0;
}

body .page-custom:has(.eet-editorial-board) .page-header {
  margin: 0 0 48px;
  padding: 0;
  border: 0;
  text-align: left;
}

body .page-custom:has(.eet-editorial-board) .page-header h1 {
  margin: 0;
  font-family: var(--eet-atlas-serif);
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--eet-atlas-ink);
  animation: eet-atlas-rise 650ms ease-out;
}

body .eet-editorial-board {
  color: #1a2332;
}

body .eet-editorial-board .eet-board-section + .eet-board-section {
  margin-top: 56px;
}

body .eet-editorial-board .eet-board-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 0 0 24px;
}

body .eet-editorial-board .eet-board-section-header::after {
  content: "";
  order: 1;
  flex: 1 1 24px;
  height: 1px;
  background: var(--eet-atlas-line);
}

body .eet-editorial-board .eet-board-section-header h2 {
  margin: 0;
  font-family: var(--eet-atlas-serif);
  font-size: clamp(26px, 2.7vw, 36px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.025em;
  color: var(--eet-atlas-ink);
}

body .eet-editorial-board .eet-board-count {
  order: 2;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--eet-atlas-muted);
}

body .eet-editorial-board .eet-board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

body .eet-editorial-board .eet-board-member {
  min-width: 0;
  margin: 0;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: var(--eet-atlas-card);
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

body .eet-editorial-board .eet-board-member h3 {
  margin: 0 0 10px;
  font-family: var(--eet-atlas-sans);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.015em;
  color: #1a2332;
  overflow-wrap: anywhere;
  transition: color 250ms ease;
}

body .eet-editorial-board .eet-board-member p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: #6b7280;
  overflow-wrap: anywhere;
}

/* Optional real portrait; text-only members keep their existing layout. */
body .eet-editorial-board .eet-board-member:has(> .eet-board-avatar) {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 18px;
  align-content: center;
}

body .eet-editorial-board .eet-board-avatar {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  display: block;
  width: 72px;
  height: 72px;
  max-width: 100%;
  margin: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
  box-shadow: 0 0 0 1px var(--eet-atlas-line), 0 6px 16px rgba(10, 9, 7, .08);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

body .eet-editorial-board .eet-board-member:has(> .eet-board-avatar) > :is(h3, p) {
  grid-column: 2;
}

body .eet-editorial-board .eet-board-member:has(> .eet-board-avatar) > h3 {
  margin-bottom: 6px;
}

@media (hover: hover) and (pointer: fine) {
  body .eet-editorial-board .eet-board-member:hover {
    transform: translateY(-3px);
    border-color: var(--eet-atlas-line-hover);
    box-shadow: var(--eet-atlas-shadow-hover);
  }
  body .eet-editorial-board .eet-board-member:hover h3 { color: #9c571a; }
  body .eet-editorial-board .eet-board-member:hover .eet-board-avatar {
    transform: scale(1.06);
    box-shadow: 0 0 0 2px #e8c3a2, 0 8px 20px rgba(10, 9, 7, .12);
  }
}

@supports (animation-timeline: view()) {
  body .eet-editorial-board .eet-board-member {
    animation: eet-archive-entry linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@media (max-width: 680px) {
  body .container.page-custom:has(.eet-editorial-board) {
    padding-top: 32px;
    padding-bottom: 48px;
  }
  body .page-custom:has(.eet-editorial-board) .page-header { margin-bottom: 32px; }
  body .eet-editorial-board .eet-board-grid { grid-template-columns: minmax(0, 1fr); }
  body .eet-editorial-board .eet-board-section-header { gap: 12px; }
  body .eet-editorial-board .eet-board-member { padding: 20px; }
  body .eet-editorial-board .eet-board-section + .eet-board-section { margin-top: 40px; }
}

@media (max-width: 400px) {
  body .eet-editorial-board .eet-board-member:has(> .eet-board-avatar) {
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 14px;
  }
  body .eet-editorial-board .eet-board-avatar { width: 64px; height: 64px; }
}

/* Submissions: editorial reading cards and a distinct numbered checklist. */
body .container.page-submissions {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 var(--eet-atlas-gutter) 80px;
  background: var(--eet-atlas-soft);
}

body .page-submissions > .row {
  margin: 0;
}

body .page-submissions > .row > .col-md-8 {
  flex: 0 0 100%;
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 0;
}

body .page-submissions > .page-header {
  margin: 0 calc(-1 * var(--eet-atlas-gutter)) 32px;
  padding: 48px var(--eet-atlas-gutter) 52px;
  background: radial-gradient(ellipse at 92% 20%, rgba(220, 127, 43, .12), transparent 55%),
    var(--eet-atlas-paper);
  border-bottom: 1px solid var(--eet-atlas-line);
  text-align: left;
}

body .page-submissions .page-header h1 {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding-bottom: 20px;
  font-family: var(--eet-atlas-serif);
  font-size: clamp(38px, 4.5vw, 60px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.035em;
  color: var(--eet-atlas-ink);
  overflow-wrap: anywhere;
  animation: eet-atlas-rise 650ms ease-out;
}

body .page-submissions .page-header h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: var(--eet-atlas-orange);
  transition: width 350ms ease;
}

body .page-submissions .page-content {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin: 0;
  counter-reset: eet-submission-section;
  color: #4a4339;
  font-size: 15px;
  line-height: 1.8;
}

body .page-submissions .page-content > .alert {
  grid-column: 1 / -1;
  position: relative;
  margin: 0;
  padding: 22px 28px;
  border: 1px solid var(--eet-atlas-line);
  border-left: 4px solid var(--eet-atlas-orange);
  border-radius: 12px;
  background: linear-gradient(110deg, #fff, #fcf6ed);
  color: #4a4339;
  font-size: 16px;
  box-shadow: var(--eet-atlas-shadow);
}

body .page-submissions .page-content > :is(
  .submissions-author-guidelines, .submissions-checklist,
  .section_policy, .submissions-privacy-statement
) {
  min-width: 0;
  margin: 0;
  padding: 30px;
  border: 1px solid var(--eet-atlas-line);
  border-radius: var(--eet-atlas-radius);
  background: var(--eet-atlas-card);
  box-shadow: var(--eet-atlas-shadow);
  counter-increment: eet-submission-section;
  transition: border-color 250ms ease, box-shadow 250ms ease;
}

body .page-submissions .page-content > .submissions-checklist {
  background: #f9f6f0;
  border-top: 3px solid #edbc91;
}

body .page-submissions .page-content > .section_policy {
  background: linear-gradient(135deg, #fcf6ed, #fff);
}

body .page-submissions .page-content > .submissions-privacy-statement {
  background: #f4f8f7;
  border-top: 3px solid #b8d4cc;
}

body .page-submissions .page-content > :is(
  .submissions-author-guidelines, .submissions-checklist,
  .section_policy, .submissions-privacy-statement
) > h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 22px;
  padding: 0;
  font-family: var(--eet-atlas-serif);
  font-size: clamp(25px, 2.2vw, 30px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.025em;
  color: var(--eet-atlas-ink);
  overflow-wrap: anywhere;
}

body .page-submissions .page-content > :is(
  .submissions-author-guidelines, .submissions-checklist,
  .section_policy, .submissions-privacy-statement
) > h2::before {
  content: counter(eet-submission-section, decimal-leading-zero);
  flex-shrink: 0;
  font-family: var(--eet-atlas-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  color: #9c571a;
}

body .page-submissions .page-content p {
  margin: 0 0 18px;
  line-height: 1.8;
}

body .page-submissions .page-content p:last-child {
  margin-bottom: 0;
}

body .page-submissions .page-content a:not(.btn) {
  color: var(--eet-underline-blue);
  text-decoration-line: underline;
  text-decoration-color: rgba(21, 85, 141, .3);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  transition: color 250ms ease, text-decoration-color 250ms ease;
}

body .page-submissions .alert a:not(.btn) {
  display: inline-block;
  font-weight: 600;
  transition: transform 250ms ease, color 250ms ease, text-decoration-color 250ms ease;
}

body .page-submissions .page-content a:focus-visible {
  outline: 2px solid var(--eet-underline-blue);
  outline-offset: 4px;
  border-radius: 2px;
}

body .page-submissions .submissions-checklist > ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: eet-checklist-item;
}

body .page-submissions .submissions-checklist > ul > li {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 16px 16px 16px 56px;
  border: 1px solid var(--eet-atlas-line);
  border-radius: 12px;
  background: var(--eet-atlas-card);
  font-size: 14px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  counter-increment: eet-checklist-item;
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

body .page-submissions .submissions-checklist > ul > li::before {
  content: counter(eet-checklist-item, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 17px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #e8c3a2;
  border-radius: 50%;
  background: #fcf3e8;
  color: #9c571a;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .03em;
}

@media (hover: hover) and (pointer: fine) {
  body .page-submissions .page-header h1:hover::after { width: 100%; }
  body .page-submissions .page-content > :is(
    .submissions-author-guidelines, .submissions-checklist,
    .section_policy, .submissions-privacy-statement
  ):hover {
    border-color: var(--eet-atlas-line-hover);
    box-shadow: var(--eet-atlas-shadow-hover);
  }
  body .page-submissions .submissions-checklist > ul > li:hover {
    transform: translateX(3px);
    border-color: #e8c3a2;
    box-shadow: 0 5px 14px -8px rgba(10, 9, 7, .15);
  }
  body .page-submissions .page-content a:not(.btn):hover {
    color: #9c571a;
    text-decoration-color: #9c571a;
  }
  body .page-submissions .alert a:not(.btn):hover { transform: scale(var(--eet-button-scale)); }
}

@supports (animation-timeline: view()) {
  body .page-submissions .page-content > :is(
    .submissions-author-guidelines, .submissions-checklist,
    .section_policy, .submissions-privacy-statement
  ) {
    animation: eet-archive-entry linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@media (max-width: 991px) {
  body .page-submissions .page-content { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 575px) {
  body .container.page-submissions { padding-bottom: 48px; }
  body .page-submissions > .page-header { padding-top: 32px; padding-bottom: 36px; }
  body .page-submissions .page-content { gap: 20px; }
  body .page-submissions .page-content > .alert { padding: 18px 20px; }
  body .page-submissions .page-content > :is(
    .submissions-author-guidelines, .submissions-checklist,
    .section_policy, .submissions-privacy-statement
  ) { padding: 22px 20px; }
}

/* Preserve plain buttons, blue typography and animated dark-blue underlines. */
body:has(.main-header) :is(
  .btn, button, input[type="submit"], input[type="button"], input[type="reset"],
  .block_make_submission_link, .homepage-journal-description-more,
  .homepage-journal-description-less, .nav-link, .dropdown-item
) {
  background-color: transparent !important;
  background-image: linear-gradient(var(--eet-underline-blue), var(--eet-underline-blue)) !important;
  background-repeat: no-repeat !important;
  background-position: center calc(100% - 2px) !important;
  background-size: 0% 2px !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--eet-button-blue) !important;
  text-decoration: none !important;
  transform-origin: center;
  transition: background-size 260ms ease, transform 260ms ease, color 260ms ease;
}

body .main-header :is(.nav-link, .dropdown-item, .navbar-toggler) {
  color: #2a261f !important;
}

body :is(.homepage-journal-description-more, .homepage-journal-description-less) {
  display: inline-block;
}

body:has(.main-header) :is(
  .btn, button, input[type="submit"], input[type="button"], input[type="reset"],
  .block_make_submission_link, .homepage-journal-description-more,
  .homepage-journal-description-less, .nav-link, .dropdown-item
):focus-visible {
  outline: 2px solid var(--eet-underline-blue) !important;
  outline-offset: 4px;
  background-size: 100% 2px !important;
}

/* A warm, light footer instead of the original dark band. */
body .site-footer {
  background: var(--eet-atlas-soft);
  color: #4a4339;
  border-top: 1px solid var(--eet-atlas-line);
  padding-block: 40px;
}

body .site-footer :is(.container, .site-footer-content) { color: #4a4339; }
body .site-footer a:not(.block_make_submission_link):not(.btn) { color: #9c571a; }
body .site-footer .footer-brand-image { filter: brightness(.25); }
body .site-footer img { max-width: 100%; height: auto; }
body .site-footer .site-footer-sidebar { padding-bottom: 24px; }

/* Issue covers on article detail pages, including the mobile layout. */
body .article-details-cover a > img {
  transform-origin: center;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

body .article-details-cover a:focus-visible > img,
body .article-details-cover a:active > img {
  transform: scale(var(--eet-cover-scale));
  box-shadow: 0 24px 44px -20px rgba(10, 9, 7, .45);
}

@media (hover: hover) and (pointer: fine) {
  body .article-details-cover a:hover > img {
    transform: scale(var(--eet-cover-scale)) rotate(-.5deg);
    box-shadow: 0 24px 44px -20px rgba(10, 9, 7, .45);
  }
  body .homepage-issue-header .homepage-issue-cover {
    animation: eet-atlas-cover-float 7s ease-in-out infinite;
  }
  body .homepage-issue-header .col-lg-3 > a:hover .homepage-issue-cover {
    transform: scale(var(--eet-cover-scale)) rotate(-.5deg);
    box-shadow: 0 24px 44px -20px rgba(10, 9, 7, .45);
  }
  body .container-homepage-issue.page-content .issue-toc .article-summary:hover,
  body .container-homepage-issue.page-content .issue-toc .article-summary:has(.article-summary-title a:focus-visible) {
    transform: translateY(-3px) scale(var(--eet-article-scale));
    box-shadow: var(--eet-atlas-shadow-hover);
    border-color: var(--eet-atlas-line-hover);
  }
  body .container-homepage-issue .article-summary:hover .article-summary-title a { color: #a50018 !important; }
  body .homepage-announcement:hover {
    transform: translateY(-3px);
    box-shadow: var(--eet-atlas-shadow-hover);
  }
  body:has(.main-header) :is(
    .btn, button, input[type="submit"], input[type="button"], input[type="reset"],
    .block_make_submission_link, .homepage-journal-description-more,
    .homepage-journal-description-less, .nav-link, .dropdown-item
  ):not(:disabled):not(.disabled):not([aria-disabled="true"]):hover {
    color: var(--eet-action-blue) !important;
    background-size: 100% 2px !important;
    transform: scale(var(--eet-button-scale));
  }
}

body .homepage-issue-header .col-lg-3 > a:focus-visible .homepage-issue-cover {
  transform: scale(var(--eet-cover-scale));
}

/* Native scroll-linked entry; unsupported browsers keep all content visible. */
@supports (animation-timeline: view()) {
  body .container-homepage-issue :is(.article-summary, .homepage-announcement) {
    animation: eet-atlas-card-entry linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
  body .page-issue .article-summary {
    animation: eet-atlas-card-entry linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@media (max-width: 991px) {
  body .homepage-issue-header > .col-lg-3 { padding: 0; }
  body .homepage-issue-header .homepage-issue-cover { max-height: 280px; }
  body .main-header .navbar-collapse {
    background: var(--eet-atlas-card);
    border-radius: 12px;
    margin-top: 16px;
    padding: 12px 16px;
    max-height: 70vh;
    overflow-y: auto;
  }
  body .main-header .dropdown-menu { box-shadow: none !important; }
}

@media (max-width: 575px) {
  :root { --eet-atlas-gutter: 20px; --eet-announcement-gap: 16px; }
  body .homepage-image.homepage-image-behind-issue { height: 180px; }
  body .container-homepage-issue > .homepage-issue-current { padding-top: 14px; }
  body .homepage-issue-header > .col-lg-9 { padding: 24px; }
  body .container-homepage-issue > .homepage-announcements { padding-block: 24px; }
  body .container-homepage-issue > .issue-wrapper { padding-block: 40px; }
  body .container-homepage-issue > .issue-wrapper > .col-12.col-lg-9 {
    padding: 20px !important;
    border-radius: 18px;
  }
  body .container-homepage-issue .article-summary { padding: 22px; }
  body .container-homepage-issue .article-summary-title { font-size: 23px; }
  body .container-homepage-issue > .text-center { padding-bottom: 40px; }
}

/* Reading pages: ordinary rich text and future custom navigation content.
   Keep forms and the bespoke editorial-board layout outside this scope. */
body :is(.page-about, .page-custom, .page-contact, .page-privacy,
  .page-information, .page-about-publishing-system, .page-announcement)
.page-content:not(:has(.eet-editorial-board, form)) {
  max-width: 980px;
  margin: 8px auto 48px;
  padding: clamp(22px, 3vw, 40px);
  border: 1px solid var(--eet-atlas-line);
  border-top: 3px solid #dcaa7c;
  border-radius: var(--eet-atlas-radius);
  background: var(--eet-atlas-card);
  box-shadow: var(--eet-atlas-shadow);
  color: #433e36;
  font-family: var(--eet-atlas-sans);
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
  animation: eet-atlas-rise 650ms ease-out;
}

body :is(.page-about, .page-custom, .page-contact, .page-privacy,
  .page-information, .page-about-publishing-system, .page-announcement)
> .row:not(.page-header) > :is(.col-md-8, .col-md-6):has(
  > .page-content:not(:has(.eet-editorial-board, form))
) {
  flex: 0 0 100%;
  width: 100%;
  max-width: 1040px;
}

body :is(.page-about, .page-custom, .page-contact, .page-privacy,
  .page-information, .page-about-publishing-system, .page-announcement)
.page-content:not(:has(.eet-editorial-board, form)) :is(p, li, span) {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

body :is(.page-about, .page-custom, .page-contact, .page-privacy,
  .page-information, .page-about-publishing-system, .page-announcement)
.page-content:not(:has(.eet-editorial-board, form)) p { margin: 0 0 20px; }

body :is(.page-about, .page-custom, .page-contact, .page-privacy,
  .page-information, .page-about-publishing-system, .page-announcement)
.page-content:not(:has(.eet-editorial-board, form)) > p:first-child {
  margin-bottom: 24px;
  padding: 16px 20px;
  border-left: 3px solid var(--eet-atlas-orange);
  border-radius: 0 12px 12px 0;
  background: #f8f4ed;
  color: #3c352b;
}

body :is(.page-about, .page-custom, .page-contact, .page-privacy,
  .page-information, .page-about-publishing-system, .page-announcement)
.page-content:not(:has(.eet-editorial-board, form)) :is(h2, h3, h4) {
  margin: 30px 0 16px;
  padding-left: 14px;
  border-left: 3px solid var(--eet-atlas-orange);
  font-family: var(--eet-atlas-serif);
  font-weight: 400;
  line-height: 1.3;
  color: var(--eet-atlas-ink);
}

body :is(.page-about, .page-custom, .page-contact, .page-privacy,
  .page-information, .page-about-publishing-system, .page-announcement)
.page-content:not(:has(.eet-editorial-board, form)) h2 { font-size: 28px; }

body :is(.page-about, .page-custom, .page-contact, .page-privacy,
  .page-information, .page-about-publishing-system, .page-announcement)
.page-content:not(:has(.eet-editorial-board, form)) :is(h3, h4) { font-size: 23px; }

body :is(.page-about, .page-custom, .page-contact, .page-privacy,
  .page-information, .page-about-publishing-system, .page-announcement)
.page-content:not(:has(.eet-editorial-board, form)) :is(ul, ol) {
  margin: 0 0 24px;
  padding-left: 24px;
}

body :is(.page-about, .page-custom, .page-contact, .page-privacy,
  .page-information, .page-about-publishing-system, .page-announcement)
.page-content:not(:has(.eet-editorial-board, form)) li { padding-left: 5px; margin-bottom: 8px; }

body :is(.page-about, .page-custom, .page-contact, .page-privacy,
  .page-information, .page-about-publishing-system, .page-announcement)
.page-content:not(:has(.eet-editorial-board, form)) li::marker { color: #9c571a; }

body :is(.page-about, .page-custom, .page-contact, .page-privacy,
  .page-information, .page-about-publishing-system, .page-announcement)
.page-content:not(:has(.eet-editorial-board, form)) blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 4px solid #77a39a;
  border-radius: 0 12px 12px 0;
  background: #eef5f1;
  color: #3d5148;
}

body :is(.page-about, .page-custom, .page-contact, .page-privacy,
  .page-information, .page-about-publishing-system, .page-announcement)
.page-content:not(:has(.eet-editorial-board, form)) a:not(.btn) {
  color: var(--eet-underline-blue);
  text-decoration-color: #b5ccde;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 200ms ease, text-decoration-color 200ms ease;
}

body :is(.page-about, .page-custom, .page-contact, .page-privacy,
  .page-information, .page-about-publishing-system, .page-announcement)
.page-content:not(:has(.eet-editorial-board, form)) a:not(.btn):hover {
  color: #9c571a;
  text-decoration: underline;
  text-decoration-color: var(--eet-atlas-orange);
}

body :is(.page-about, .page-custom, .page-contact, .page-privacy,
  .page-information, .page-about-publishing-system, .page-announcement)
.page-content:not(:has(.eet-editorial-board, form)) a:focus-visible {
  outline: 2px solid var(--eet-underline-blue);
  outline-offset: 4px;
}

body :is(.page-about, .page-custom, .page-contact, .page-privacy,
  .page-information, .page-about-publishing-system, .page-announcement)
.page-content:not(:has(.eet-editorial-board, form)) img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

body :is(.page-about, .page-custom, .page-contact, .page-privacy,
  .page-information, .page-about-publishing-system, .page-announcement)
.page-content:not(:has(.eet-editorial-board, form)) table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  border-collapse: collapse;
}

body :is(.page-about, .page-custom, .page-contact, .page-privacy,
  .page-information, .page-about-publishing-system, .page-announcement)
.page-content:not(:has(.eet-editorial-board, form)) :is(th, td) {
  padding: 10px 14px;
  border: 1px solid var(--eet-atlas-line);
  text-align: left;
}

body :is(.page-about, .page-custom, .page-contact, .page-privacy,
  .page-information, .page-about-publishing-system, .page-announcement)
.page-content:not(:has(.eet-editorial-board, form)) th { background: var(--eet-atlas-soft); }

body .page-announcement .announcement-summary + .announcement-summary {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--eet-atlas-line);
}

body .page-contact .contact-section > div + div { margin-top: 24px; }

/* Search filters and empty-state messages use the same warm paper palette. */
body .page-search .search-filters {
  padding: clamp(20px, 2.5vw, 30px);
  background: var(--eet-atlas-soft) !important;
  color: var(--eet-atlas-ink);
  border: 1px solid var(--eet-atlas-line);
  border-top: 3px solid #dcaa7c;
  border-radius: var(--eet-atlas-radius);
  box-shadow: var(--eet-atlas-shadow);
}

body .page-search .search-filters h2 {
  margin: 0 0 24px;
  color: var(--eet-atlas-ink);
  font-family: var(--eet-atlas-serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.3;
}

body .page-search .search-filters label {
  color: #544d41;
  font-size: 13px;
  font-weight: 600;
}

body .page-search .search-filters :is(input, select).form-control {
  min-width: 0;
  background-color: var(--eet-atlas-card);
  color: var(--eet-atlas-ink);
  border: 1px solid var(--eet-atlas-line);
  border-radius: 8px;
}

body .page-search .search-filters :is(input, select).form-control:focus {
  border-color: #9c571a;
  outline: 2px solid rgba(156, 87, 26, .25);
  outline-offset: 2px;
  box-shadow: none;
}

body .page-search .search-results .alert-primary {
  background: #f8f0e4 !important;
  color: #54432f !important;
  border: 1px solid #e6d6bf;
  border-radius: 12px;
}

/* Account pages: stationery details rather than the article-card treatment. */
body :is(.page-login, .page-register) > .row:not(.page-header) {
  margin-inline: 0;
}

body :is(.page-login, .page-register) > .row:not(.page-header) > .col-md-8 {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  max-width: 1080px;
  padding-inline: 0;
}

body .page-login > .row:not(.page-header) > .col-md-8 { max-width: 600px; }

body :is(.page-login, .page-register) .page-content {
  position: relative;
  isolation: isolate;
  margin: 8px 0 48px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid #ded4c4;
  border-radius: 28px 8px 28px 8px;
  background: linear-gradient(145deg, #fff 40%, #f6f1e8);
  box-shadow: 0 18px 48px -32px rgba(75, 54, 30, .25);
  color: #433e36;
  font-family: var(--eet-atlas-sans);
}

/* Purely decorative rings do not intercept form interactions. */
body :is(.page-login, .page-register) .page-content::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 14px;
  right: 14px;
  width: 104px;
  height: 104px;
  border: 1px solid rgba(156, 87, 26, .12);
  border-radius: 50%;
  background: radial-gradient(circle, transparent 40%, rgba(156, 87, 26, .07) 41%,
    transparent 43%, transparent 58%, rgba(156, 87, 26, .08) 59%, transparent 61%);
  pointer-events: none;
}

body :is(.page-login, .page-register) .page-content :is(.form-login, .form-register) {
  position: relative;
  margin: 0;
}

body :is(.page-login, .page-register) .page-content .form-group { margin-bottom: 20px; }

body :is(.page-login, .page-register) .page-content .form-group > label:not(.form-check-label) {
  display: block;
  margin-bottom: 8px;
  color: #544d41;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}

body :is(.page-login, .page-register) .page-content :is(.form-control, #interests) {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #dcd5c9;
  border-radius: 10px;
  background-color: #fff;
  color: var(--eet-atlas-ink);
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

body :is(.page-login, .page-register) .page-content :is(.form-control, #interests):focus {
  border-color: #9c571a;
  outline: 2px solid rgba(156, 87, 26, .22);
  outline-offset: 2px;
  box-shadow: 0 3px 12px -8px rgba(156, 87, 26, .4);
}

body :is(.page-login, .page-register) .page-content .form-check-input {
  accent-color: #9c571a;
}

body :is(.page-login, .page-register) .page-content .form-check-input:checked {
  background-color: #9c571a;
  border-color: #9c571a;
}

body :is(.page-login, .page-register) .page-content .form-check-input:focus-visible {
  outline: 2px solid #9c571a;
  outline-offset: 3px;
  box-shadow: none;
}

body :is(.page-login, .page-register) .page-content :is(.form-text, .form-check-label) {
  color: #635b4e;
  font-size: 13px;
  line-height: 1.7;
}

body :is(.page-login, .page-register) .page-content a:not(.btn) {
  color: #89511e;
  text-decoration: underline;
  text-decoration-color: #cfbda4;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

body :is(.page-login, .page-register) .page-content a:focus-visible {
  outline: 2px solid #9c571a;
  outline-offset: 4px;
}

body :is(.page-login, .page-register) .page-content .form-group-buttons {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed #d8c9b4;
}

body :is(.page-login, .page-register) .page-content
:is(.form-group-register, .form-group-login) {
  margin-bottom: 0;
  color: var(--eet-atlas-muted);
  font-size: 14px;
  line-height: 1.7;
}

body .page-register .form-register > .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
}

body .page-register .form-register > .row > :is(.col-lg-6, .col-lg-12) {
  width: auto;
  min-width: 0;
  padding: 0;
}

body .page-register .form-register > .row > .col-lg-12 { grid-column: 1 / -1; }

body .page-register .form-register fieldset:is(.identity, .login) {
  height: 100%;
  margin: 0;
  padding: 22px;
  border-left: 2px solid #cbaa80;
  background: rgba(243, 240, 233, .65);
  border-radius: 0 16px 16px 0;
}

body .page-register .form-register legend {
  display: flex;
  align-items: center;
  gap: 12px;
  float: none;
  width: 100%;
  margin-bottom: 24px;
  color: var(--eet-atlas-ink);
  font-family: var(--eet-atlas-serif);
  font-size: 26px;
  line-height: 1.3;
}

body .page-register .form-register :is(.identity, .login) > legend::before {
  content: "01";
  color: #9c571a;
  font-family: var(--eet-atlas-sans);
  font-size: 12px;
  letter-spacing: .1em;
}

body .page-register .form-register .login > legend::before { content: "02"; }

body .page-register .form-register :is(.consent, .reviewer) {
  margin: 0 0 16px;
  padding: 18px 20px;
  border: 1px solid #dfe5dc;
  border-radius: 12px;
  background: #f1f4ee;
}

body .page-register .form-register .consent .fields + .fields { margin-top: 12px; }
body .page-register .form-register .reviewer .form-group { margin-bottom: 0; }

/* The theme's negative margin can cover the reviewer checkbox after opt-in. */
body .page-register .form-register #reviewerInterests {
  margin: 18px 0 0 !important;
}

body .page-register .form-register .reviewer_interests label {
  color: #544d41;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 767px) {
  body .page-register .form-register > .row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  body .page-register .form-register fieldset:is(.identity, .login) { padding: 20px 16px; }
}

/* Compact all front-end title containers; the issue masthead is styled above. */
body:has(.main-header) .container :is(
  .page-header:not(.page-issue-header), .page-archives-header
) {
  height: auto;
  min-height: 0;
  margin-block: 0 20px;
  padding-block: 20px;
}

body:has(.main-header) .container :is(
  .page-header:not(.page-issue-header), .page-archives-header
) h1 {
  margin: 0;
  padding-block: 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
}

body:has(.main-header) .page-custom:has(.eet-editorial-board)
.row.page-header.justify-content-md-center { padding-block: 0; }

body:has(.main-header) .page-submissions
.row.page-header.justify-content-md-center h1 { padding-bottom: 12px; }

body:has(.main-header) .container.page-archives .page-archives-header h1 { padding-bottom: 12px; }

/* Plain and article headers already have smaller titles; keep them compact. */
body:has(.main-header) .container :is(
  .page-header:not(.row):not(.page-issue-header):not(.page-archives-header),
  .page-header:has(.article-details-fulltitle)
) {
  margin-top: 12px;
  padding-block: 0;
}

body:has(.main-header) .container :is(
  .page-header:not(.row):not(.page-issue-header):not(.page-archives-header),
  .page-header:has(.article-details-fulltitle)
) h1 {
  font-size: clamp(20px, 2vw, 22px);
  line-height: 1.2;
}

/* Use the page canvas instead of an isolated title band, including new pages. */
body:has(.main-header) .container:has(.page-header) {
  background: var(--eet-atlas-paper);
}

body:has(.main-header) .container :is(
  .page-header:not(.page-issue-header), .page-archives-header, .page-issue-header
) {
  text-align: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
}

/* Remove archive-only background layers, not its title underline. */
body:has(.main-header) .page-archives-header::before,
body:has(.main-header) .page-archives-header::after {
  content: none;
}

body:has(.main-header) .container :is(
  .page-header:not(.page-issue-header), .page-archives-header, .page-issue-header
) h1 {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding-bottom: 12px;
  text-align: center;
  overflow-wrap: anywhere;
  animation: eet-atlas-rise 650ms ease-out;
  transition: color 250ms ease;
}

/* Shared decoration also covers future OJS custom navigation pages. */
body:has(.main-header) .container :is(
  .page-header:not(.page-issue-header), .page-archives-header, .page-issue-header
) h1::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 56px;
  max-width: 100%;
  height: 3px;
  margin-inline: auto;
  border-radius: 3px;
  background: var(--eet-atlas-orange);
  transition: width 350ms ease;
}

@media (hover: hover) and (pointer: fine) {
  body:has(.main-header) .container :is(
    .page-header:not(.page-issue-header), .page-archives-header, .page-issue-header
  ) h1:hover {
    color: #9c571a;
  }
  body:has(.main-header) .container :is(
    .page-header:not(.page-issue-header), .page-archives-header, .page-issue-header
  ) h1:hover::after { width: 100%; }
}

@keyframes eet-atlas-rise {
  from { opacity: .7; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes eet-atlas-dropdown-in {
  from { opacity: .7; translate: 0 -4px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes eet-atlas-cover-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}
@keyframes eet-atlas-card-entry {
  from { opacity: .55; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  body:has(.main-header) *,
  body .page-archives-header::before,
  body .page-archives-header::after,
  body .page-archives-header h1::after,
  body .page-archives .issue-summary > a::after,
  body .page-submissions .page-header h1::after,
  body:has(.main-header) .container .page-header h1::after,
  body .page-submissions .submissions-checklist > ul > li::before,
  body .homepage-image::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    translate: none !important;
  }
}
