/* Vetted Benchmark — paper journal */
:root {
  --paper: #fffcf7;
  --ink: #1a1a1a;
  --academic: #234e70;
  --rust: #8b4513;
  --rule: #c8c2b6;
  --muted: #5c5c5c;
  --focus: #234e70;
  --max: 680px;
  --serif: "EB Garamond", "Times New Roman", Times, serif;
  --sans: "Karla", "Helvetica Neue", Helvetica, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--rust);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--academic);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 1000;
  background: var(--academic);
  color: var(--paper);
  padding: 0.5rem 0.85rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1.75rem 1.25rem 1.25rem;
}

.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.masthead {
  text-align: center;
  margin-bottom: 1.25rem;
}

.masthead .journal-mark {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--academic);
  margin: 0 0 0.35rem;
}

.masthead .site-title {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.01em;
  color: var(--academic);
}

.masthead .site-title a {
  color: inherit;
  text-decoration: none;
}

.masthead .issue-line {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.45rem 0 0;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.primary-nav a {
  color: var(--academic);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  border-bottom-color: var(--academic);
}

.page-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}

.section-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-variant: small-caps;
  color: var(--academic);
  margin: 0 0 0.65rem;
}

hr.hairline {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  color: var(--academic);
  font-weight: 600;
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.65rem, 3.5vw, 2.05rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
}

h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--ink);
}

.footnote-disclosure {
  font-size: 0.95rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0.85rem 0;
  margin: 1.5rem 0 2rem;
}

.footnote-disclosure .fn-mark {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--academic);
  display: block;
  margin-bottom: 0.35rem;
}

.abstract {
  margin: 1.5rem 0 2rem;
}

.abstract .meta {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.footnotes {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--muted);
}

.footnotes ol {
  padding-left: 1.25rem;
  margin: 0.5rem 0 0;
}

.footnotes li {
  margin-bottom: 0.45rem;
}

.cite-block {
  background: transparent;
  border-left: 2px solid var(--academic);
  padding: 0.35rem 0 0.35rem 1rem;
  margin: 1.25rem 0;
  font-size: 0.98rem;
}

.cite-block code {
  font-family: var(--sans);
  font-size: 0.88rem;
  word-break: break-word;
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
  margin: 0 0 1rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

table.simple {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  margin: 1rem 0 1.5rem;
}

table.simple th,
table.simple td {
  border-bottom: 1px solid var(--rule);
  text-align: left;
  padding: 0.55rem 0.4rem;
  vertical-align: top;
}

table.simple th {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--academic);
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.75rem 1.25rem 2.5rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.site-footer .domain {
  color: var(--academic);
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.site-footer .admin-mail {
  margin: 0 0 1rem;
}

.site-footer .admin-mail a {
  color: var(--rust);
}

.footer-nav ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.footer-nav a {
  color: var(--academic);
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.updated {
  margin: 0;
  font-size: 0.8rem;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: var(--paper);
  border-top: 1px solid var(--academic);
  box-shadow: 0 -4px 18px rgba(35, 78, 112, 0.08);
  padding: 1rem 1.25rem;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-row {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.cookie-row p {
  margin: 0;
  flex: 1 1 16rem;
  line-height: 1.45;
  color: var(--ink);
}

.cookie-btns {
  display: flex;
  gap: 0.5rem;
}

.cookie-btns button,
.manage-link {
  font-family: var(--sans);
  font-size: 0.85rem;
  cursor: pointer;
}

.cookie-btns button {
  border: 1px solid var(--academic);
  background: var(--academic);
  color: var(--paper);
  padding: 0.45rem 0.9rem;
}

.cookie-btns button[data-cookie-reject] {
  background: transparent;
  color: var(--academic);
}

.manage-link {
  border: 0;
  background: none;
  color: var(--rust);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  padding: 0;
}

@media (max-width: 520px) {
  body {
    font-size: 1.05rem;
  }

  .primary-nav ul {
    gap: 0.5rem 0.9rem;
  }

  .cookie-btns {
    width: 100%;
  }

  .cookie-btns button {
    flex: 1;
  }
}

/* Display ad slots — primary publisher */
.ad-slot {
  margin: 2.5rem auto;
  padding: 0;
  border: 1px solid rgba(128, 128, 128, 0.35);
  background: transparent;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
}
.ad-slot.ad-slot--filled::before {
  content: "Advertisement";
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
  padding: 0.4rem 0.65rem 0;
  text-align: left;
  font-family: inherit;
}
.ad-slot__inner {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  font-size: 0.75rem;
  padding: 0.5rem;
}
.ad-slot--leaderboard { max-width: 970px; }
.ad-slot--leaderboard .ad-slot__inner { min-height: 90px; }
.ad-slot--rectangle { max-width: 336px; }
.ad-slot--rectangle .ad-slot__inner { min-height: 250px; }
.ad-slot--inline { max-width: min(100%, 728px); }
.ad-slot--inline .ad-slot__inner { min-height: 90px; }
@media (max-width: 640px) {
  .ad-slot { margin: 2rem auto; }
  .ad-slot--leaderboard .ad-slot__inner,
  .ad-slot--inline .ad-slot__inner { min-height: 60px; }
  .ad-slot--rectangle .ad-slot__inner { min-height: 180px; }
}

/* Publisher spacing pass */
.article-body,
.prose,
.prose-column,
.main-pad .chapter,
.below-split {
  line-height: 1.7;
}
.article-body p,
.prose p,
.prose-column p {
  margin: 0 0 1.15rem;
}
.article-body h2,
.prose h2,
.prose-column h2,
.below-split h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
  line-height: 1.25;
}
.article-body section,
.prose section,
.feature-block,
.feature-entry {
  margin-bottom: 2.5rem;
}
.page-shell,
.below-split,
.page-wrap {
  padding-top: 1.75rem;
  padding-bottom: 3.5rem;
}

/* Hide empty display slots — no flash of Advertisement boxes */
.ad-slot:not(.ad-slot--filled) {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}
.ad-slot:not(.ad-slot--filled)::before {
  content: none !important;
  display: none !important;
}
.ad-slot.ad-slot--filled {
  display: block;
}
.ad-slot.ad-slot--filled::before {
  content: "Advertisement";
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 0.45rem;
  text-align: center;
}

/* ad-slot-nofill-guard */
.ad-slot:not(.ad-slot--filled),
aside.ad-slot:not(.ad-slot--filled) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  position: absolute !important;
  left: -9999px !important;
}
