/*
 * WMRN Radio History Archive — Site Refresh
 * Homepage-first visual layer inspired by the Cognitive Pulse concept.
 * Loaded after main.css so the archive's established systems remain intact.
 */

:root {
  --wmrn-refresh-navy: var(--wmrn-blue, #0d2b63);
  --wmrn-refresh-deep: var(--wmrn-blue, #0d2b63);
  --wmrn-refresh-blue: #7295b7;
  --wmrn-refresh-blue-soft: #e7eef4;
  --wmrn-refresh-gold: #d3ad55;
  --wmrn-refresh-gold-light: #f1d998;
  --wmrn-refresh-paper: #f6f2e9;
  --wmrn-refresh-cream: #fffdf8;
  --wmrn-refresh-ink: #1f2d3a;
  --wmrn-refresh-muted: #5f6d78;
  --wmrn-refresh-line: rgba(13, 43, 99, 0.18);
  --wmrn-refresh-shadow: 0 22px 60px rgba(13, 43, 99, 0.14);
}

body.home {
  background: var(--wmrn-refresh-paper);
}

body.home #content {
  overflow: hidden;
}

body.home .wmrn-home-refresh,
body.home .wmrn-home-refresh * {
  box-sizing: border-box;
}

body.home .wmrn-home-refresh {
  color: var(--wmrn-refresh-ink);
  background:
    radial-gradient(circle at 10% 30%, rgba(114, 149, 183, 0.08), transparent 28rem),
    var(--wmrn-refresh-paper);
}

body.home .wmrn-home-container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

body.home .wmrn-home-section {
  padding: clamp(4rem, 7vw, 7.25rem) 0;
}

body.home .wmrn-home-kicker,
body.home .wmrn-home-eyebrow {
  margin: 0 0 0.8rem;
  color: var(--wmrn-refresh-blue);
  font-family: "Libre Baskerville", "EB Garamond", Georgia, serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

body.home .wmrn-home-section-heading h2,
body.home .wmrn-home-mission h2,
body.home .wmrn-home-contribute h2 {
  margin: 0;
  color: var(--wmrn-refresh-navy);
  font-family: "Libre Baskerville", "EB Garamond", Georgia, serif;
  font-size: clamp(2rem, 4.2vw, 3.65rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

body.home .wmrn-home-section-heading > p:last-child {
  max-width: 690px;
  margin: 1rem auto 0;
  color: var(--wmrn-refresh-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

body.home .wmrn-home-section-heading--center {
  max-width: 820px;
  margin: 0 auto clamp(2.2rem, 5vw, 4rem);
  text-align: center;
}

body.home .wmrn-home-section-heading--split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

body.home .wmrn-home-text-link,
body.home .wmrn-home-inline-links a,
body.home .wmrn-home-card-link {
  color: var(--wmrn-refresh-navy);
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 0.25em;
}

body.home .wmrn-home-text-link:hover,
body.home .wmrn-home-inline-links a:hover,
body.home .wmrn-home-card-link:hover {
  color: #4d7398;
  text-decoration: underline;
}

/* Hero */
body.home .wmrn-home-hero {
  position: relative;
  padding: clamp(8rem, 12vw, 10.5rem) 0 clamp(4.2rem, 7vw, 6.5rem);
  overflow: hidden;
  color: #fff;
  background: var(--wmrn-chrome-bg, linear-gradient(180deg, #0d2b63, #0a1d47 62%, #061431));
  background-color: var(--wmrn-blue, #0d2b63);
}

body.home .wmrn-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 95%);
}

body.home .wmrn-home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--wmrn-refresh-gold), var(--wmrn-refresh-gold-light), var(--wmrn-refresh-gold), transparent);
}

body.home .wmrn-home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6.5rem);
  width: min(1240px, calc(100% - 2rem));
  margin-inline: auto;
}

body.home .wmrn-home-hero .wmrn-home-kicker {
  color: var(--wmrn-refresh-gold-light);
}

body.home .wmrn-home-hero h1 {
  max-width: 770px;
  margin: 0;
  color: #fff;
  font-family: "Libre Baskerville", "EB Garamond", Georgia, serif;
  font-size: clamp(3rem, 6vw, 5.7rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.99;
  text-wrap: balance;
}

body.home .wmrn-home-hero__lede {
  max-width: 690px;
  margin: 1.5rem 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.62;
}

body.home .wmrn-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

body.home .wmrn-home-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 5px;
  font-family: "Libre Baskerville", "EB Garamond", Georgia, serif;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

body.home .wmrn-home-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.home .wmrn-home-button:hover {
  transform: translateY(-2px);
}

body.home .wmrn-home-button--gold {
  color: var(--wmrn-refresh-deep);
  background: var(--wmrn-refresh-gold-light);
  border-color: var(--wmrn-refresh-gold-light);
  box-shadow: 0 12px 28px rgba(211, 173, 85, 0.22);
}

body.home .wmrn-home-button--gold:hover {
  color: var(--wmrn-refresh-deep);
  background: #ffe6a3;
  border-color: #ffe6a3;
}

body.home .wmrn-home-button--light {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.52);
}

body.home .wmrn-home-button--light:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border-color: #fff;
}

body.home .wmrn-home-button--navy {
  color: #fff;
  background: var(--wmrn-refresh-navy);
  border-color: var(--wmrn-refresh-navy);
  box-shadow: 0 10px 24px rgba(13, 43, 99, 0.22);
}

body.home .wmrn-home-button--navy:hover {
  color: #fff;
  background: var(--wmrn-blue-mid, #0a1d47);
  border-color: var(--wmrn-blue-mid, #0a1d47);
}

body.home .wmrn-home-milestones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 2.5rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

body.home .wmrn-home-milestones div {
  padding-right: 1rem;
}

body.home .wmrn-home-milestones div + div {
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

body.home .wmrn-home-milestones dt {
  color: var(--wmrn-refresh-gold-light);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
}

body.home .wmrn-home-milestones dd {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  line-height: 1.4;
}

body.home .wmrn-home-hero__media {
  position: relative;
  margin: 0;
}

body.home .wmrn-home-hero__image-wrap {
  position: relative;
  aspect-ratio: 1 / 0.94;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  transform: rotate(1.25deg);
}

body.home .wmrn-home-hero__image-wrap::before,
body.home .wmrn-home-hero__image-wrap::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 50px;
  height: 50px;
  pointer-events: none;
}

body.home .wmrn-home-hero__image-wrap::before {
  top: -7px;
  left: -7px;
  border-top: 2px solid var(--wmrn-refresh-gold-light);
  border-left: 2px solid var(--wmrn-refresh-gold-light);
}

body.home .wmrn-home-hero__image-wrap::after {
  right: -7px;
  bottom: -7px;
  border-right: 2px solid var(--wmrn-refresh-gold-light);
  border-bottom: 2px solid var(--wmrn-refresh-gold-light);
}

body.home .wmrn-home-hero__image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.82) contrast(1.04) sepia(0.06);
}

body.home .wmrn-home-hero__seal {
  position: absolute;
  right: -1.25rem;
  bottom: 1.4rem;
  width: 116px;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--wmrn-refresh-deep);
  background: var(--wmrn-refresh-gold-light);
  border: 5px double rgba(36, 58, 85, 0.72);
  border-radius: 50%;
  box-shadow: 0 12px 34px rgba(0,0,0,0.28);
  transform: rotate(-7deg);
}

body.home .wmrn-home-hero__seal span {
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

body.home .wmrn-home-hero__seal strong {
  margin-top: 0.15rem;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.25rem;
}

body.home .wmrn-home-hero figcaption {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

/* Main entry points */
body.home .wmrn-home-portals {
  position: relative;
  z-index: 4;
  margin-top: -1px;
  background: var(--wmrn-refresh-cream);
  border-bottom: 1px solid var(--wmrn-refresh-line);
  box-shadow: 0 12px 40px rgba(19, 40, 63, 0.07);
}

body.home .wmrn-home-portals__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.home .wmrn-home-portal {
  min-height: 190px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-content: center;
  align-items: start;
  gap: 0.95rem;
  padding: 2rem 1.45rem;
  color: var(--wmrn-refresh-ink);
  text-decoration: none;
  border-right: 1px solid var(--wmrn-refresh-line);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

body.home .wmrn-home-portal:first-child {
  border-left: 1px solid var(--wmrn-refresh-line);
}

body.home .wmrn-home-portal:hover {
  color: var(--wmrn-refresh-navy);
  background: var(--wmrn-refresh-blue-soft);
  transform: translateY(-3px);
}

body.home .wmrn-home-portal__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--wmrn-refresh-navy);
  background: rgba(114, 149, 183, 0.15);
  border-radius: 50%;
}

body.home .wmrn-home-portal__icon svg,
body.home .wmrn-home-portal__arrow {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.home .wmrn-home-portal__arrow {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  color: var(--wmrn-refresh-blue);
}

body.home .wmrn-home-portal strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--wmrn-refresh-navy);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1rem;
  line-height: 1.35;
}

body.home .wmrn-home-portal small {
  display: block;
  color: var(--wmrn-refresh-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

/* Featured item */
body.home .wmrn-home-featured {
  background: var(--wmrn-refresh-paper);
}

body.home .wmrn-home-featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  overflow: hidden;
  background: var(--wmrn-refresh-cream);
  border: 1px solid var(--wmrn-refresh-line);
  box-shadow: var(--wmrn-refresh-shadow);
}

body.home .wmrn-home-featured-card__image {
  min-height: 470px;
  display: block;
  overflow: hidden;
  background: #dfe6ec;
}

body.home .wmrn-home-featured-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 1.2rem;
  background:
    linear-gradient(45deg, rgba(36,58,85,0.035) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(36,58,85,0.035) 25%, transparent 25%),
    #eef2f4;
  background-size: 24px 24px;
  transition: transform 300ms ease;
}

body.home .wmrn-home-featured-card:hover .wmrn-home-featured-card__image img {
  transform: scale(1.018);
}

body.home .wmrn-home-featured-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(2rem, 5vw, 4.4rem);
}

body.home .wmrn-home-label {
  display: inline-flex;
  margin-bottom: 1.1rem;
  padding: 0.42rem 0.65rem;
  color: var(--wmrn-refresh-navy);
  background: rgba(211, 173, 85, 0.23);
  border: 1px solid rgba(211, 173, 85, 0.5);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

body.home .wmrn-home-featured-card h3 {
  margin: 0;
  color: var(--wmrn-refresh-navy);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.65rem);
  line-height: 1.17;
}

body.home .wmrn-home-featured-card h3 a {
  color: inherit;
  text-decoration: none;
}

body.home .wmrn-home-featured-card h3 a:hover {
  color: #4d7398;
}

body.home .wmrn-home-featured-card p {
  margin: 1.2rem 0 1.8rem;
  color: var(--wmrn-refresh-muted);
  font-size: 1rem;
  line-height: 1.78;
}

body.home .wmrn-home-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--wmrn-refresh-muted);
  background: var(--wmrn-refresh-blue-soft);
  font-family: "Libre Baskerville", Georgia, serif;
}

/* Latest */
body.home .wmrn-home-latest {
  background: var(--wmrn-refresh-cream);
  border-top: 1px solid var(--wmrn-refresh-line);
  border-bottom: 1px solid var(--wmrn-refresh-line);
}

body.home .wmrn-home-latest__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

body.home .wmrn-home-latest-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--wmrn-refresh-line);
  box-shadow: 0 12px 32px rgba(19, 40, 63, 0.075);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

body.home .wmrn-home-latest-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(19, 40, 63, 0.13);
}

body.home .wmrn-home-latest-card__image {
  aspect-ratio: 16 / 10;
  display: block;
  overflow: hidden;
  background: var(--wmrn-refresh-blue-soft);
}

body.home .wmrn-home-latest-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 300ms ease;
}

body.home .wmrn-home-latest-card:hover .wmrn-home-latest-card__image img {
  transform: scale(1.035);
}

body.home .wmrn-home-latest-card__body {
  padding: 1.45rem;
}

body.home .wmrn-home-latest-card__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.85rem;
  color: #55728d;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body.home .wmrn-home-latest-card h3 {
  margin: 0 0 1.2rem;
  color: var(--wmrn-refresh-navy);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.43;
}

body.home .wmrn-home-latest-card h3 a {
  color: inherit;
  text-decoration: none;
}

body.home .wmrn-home-latest-card h3 a:hover {
  color: #4d7398;
}

body.home .wmrn-home-section-action {
  margin-top: 2.4rem;
  text-align: center;
}

/* Mission */
body.home .wmrn-home-mission {
  background:
    radial-gradient(circle at 90% 8%, rgba(114, 149, 183, 0.13), transparent 25rem),
    var(--wmrn-refresh-paper);
}

body.home .wmrn-home-mission__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

body.home .wmrn-home-mission__copy > p:not(.wmrn-home-eyebrow) {
  margin: 1.35rem 0 0;
  color: var(--wmrn-refresh-muted);
  font-size: 1.04rem;
  line-height: 1.82;
}

body.home .wmrn-home-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
  margin-top: 1.8rem;
}

body.home .wmrn-home-mission__media {
  position: relative;
  margin: 0;
  padding: 0.8rem;
  background: var(--wmrn-refresh-cream);
  border: 1px solid var(--wmrn-refresh-line);
  box-shadow: var(--wmrn-refresh-shadow);
  transform: rotate(-1deg);
}

body.home .wmrn-home-mission__media img {
  width: 100%;
  max-height: 560px;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.78) sepia(0.08) contrast(1.04);
}

body.home .wmrn-home-mission__media figcaption {
  padding: 0.75rem 0.3rem 0.15rem;
  color: var(--wmrn-refresh-muted);
  font-size: 0.72rem;
  line-height: 1.5;
  text-align: center;
}

/* Scope */
body.home .wmrn-home-scope {
  color: #fff;
  background: var(--wmrn-chrome-bg, linear-gradient(180deg, #0d2b63, #0a1d47 62%, #061431));
  background-color: var(--wmrn-blue, #0d2b63);
}

body.home .wmrn-home-scope .wmrn-home-eyebrow {
  color: var(--wmrn-refresh-gold-light);
}

body.home .wmrn-home-scope .wmrn-home-section-heading h2 {
  color: #fff;
}

body.home .wmrn-home-scope .wmrn-home-section-heading > p:last-child {
  color: rgba(255, 255, 255, 0.7);
}

body.home .wmrn-home-scope__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,0.18);
  border-left: 1px solid rgba(255,255,255,0.18);
}

body.home .wmrn-home-scope__grid a {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2rem 1.6rem;
  color: #fff;
  text-decoration: none;
  border-right: 1px solid rgba(255,255,255,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  transition: background 180ms ease, transform 180ms ease;
}

body.home .wmrn-home-scope__grid a:hover {
  color: #fff;
  background: rgba(114,149,183,0.18);
  transform: translateY(-4px);
}

body.home .wmrn-home-scope__grid a > span {
  color: var(--wmrn-refresh-gold-light);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

body.home .wmrn-home-scope__grid h3 {
  margin: 3.4rem 0 0;
  color: #fff;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.28;
}

body.home .wmrn-home-scope__grid p {
  margin: 1rem 0 1.4rem;
  color: rgba(255,255,255,0.68);
  font-size: 0.9rem;
  line-height: 1.67;
}

body.home .wmrn-home-scope__grid strong {
  margin-top: auto;
  color: var(--wmrn-refresh-gold-light);
  font-size: 0.78rem;
  letter-spacing: 0.035em;
}

/* Contribution callout */
body.home .wmrn-home-contribute {
  padding: clamp(4.2rem, 7vw, 6.8rem) 0;
  color: #fff;
  background: var(--wmrn-chrome-bg, linear-gradient(180deg, #0d2b63, #0a1d47 62%, #061431));
  background-color: var(--wmrn-blue, #0d2b63);
  border-top: 4px solid var(--wmrn-refresh-gold);
}

body.home .wmrn-home-contribute__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

body.home .wmrn-home-contribute .wmrn-home-eyebrow {
  color: var(--wmrn-refresh-gold-light);
}

body.home .wmrn-home-contribute h2 {
  max-width: 760px;
  color: #fff;
}

body.home .wmrn-home-contribute p:not(.wmrn-home-eyebrow):not(.wmrn-home-independence) {
  max-width: 760px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.05rem;
  line-height: 1.7;
}

body.home .wmrn-home-contribute .wmrn-home-actions {
  min-width: 245px;
  margin-top: 0;
}

body.home .wmrn-home-contribute .wmrn-home-button {
  width: 100%;
}

body.home .wmrn-home-independence {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  color: rgba(255,255,255,0.58);
  border-top: 1px solid rgba(255,255,255,0.18);
  font-size: 0.74rem;
  line-height: 1.6;
  text-align: center;
}

body.home .wmrn-home-empty {
  padding: 2rem;
  color: var(--wmrn-refresh-muted);
  background: var(--wmrn-refresh-cream);
  border: 1px solid var(--wmrn-refresh-line);
}

/* Header and footer polish shared across the site */
#site-header .header-inner {
  width: min(1240px, calc(100% - 1.5rem));
  max-width: 1240px;
}

#site-header.scrolled {
  border-bottom: 1px solid rgba(241, 217, 152, 0.25) !important;
}

#site-footer .footer-body,
#site-footer .footer-bottom-inner {
  width: min(1180px, calc(100% - 2rem));
  max-width: 1180px;
}

#site-footer .footer-brand-desc {
  max-width: 470px;
}

/* Keyboard focus */
body.home .wmrn-home-refresh a:focus-visible {
  outline: 3px solid var(--wmrn-refresh-gold-light);
  outline-offset: 4px;
}

/* Responsive */
@media (max-width: 1080px) {
  body.home .wmrn-home-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
    gap: 3rem;
  }

  body.home .wmrn-home-portals__grid,
  body.home .wmrn-home-scope__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.home .wmrn-home-portal:nth-child(2) {
    border-right: 1px solid var(--wmrn-refresh-line);
  }

  body.home .wmrn-home-portal:nth-child(3) {
    border-left: 1px solid var(--wmrn-refresh-line);
    border-top: 1px solid var(--wmrn-refresh-line);
  }

  body.home .wmrn-home-portal:nth-child(4) {
    border-top: 1px solid var(--wmrn-refresh-line);
  }

  body.home .wmrn-home-contribute__inner {
    grid-template-columns: 1fr;
  }

  body.home .wmrn-home-contribute .wmrn-home-actions {
    max-width: 520px;
  }
}

@media (max-width: 820px) {
  body.home .wmrn-home-hero {
    padding-top: 7.5rem;
  }

  body.home .wmrn-home-hero__inner,
  body.home .wmrn-home-featured-card,
  body.home .wmrn-home-mission__grid {
    grid-template-columns: 1fr;
  }

  body.home .wmrn-home-hero__copy {
    text-align: center;
  }

  body.home .wmrn-home-hero h1,
  body.home .wmrn-home-hero__lede {
    margin-inline: auto;
  }

  body.home .wmrn-home-hero .wmrn-home-actions {
    justify-content: center;
  }

  body.home .wmrn-home-hero__media {
    width: min(560px, 92%);
    margin-inline: auto;
  }

  body.home .wmrn-home-milestones {
    max-width: 650px;
    margin-inline: auto;
  }

  body.home .wmrn-home-featured-card__image {
    min-height: 360px;
  }

  body.home .wmrn-home-latest__grid {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin-inline: auto;
  }

  body.home .wmrn-home-latest-card {
    display: grid;
    grid-template-columns: minmax(210px, 0.78fr) 1fr;
  }

  body.home .wmrn-home-latest-card__image {
    height: 100%;
    aspect-ratio: auto;
  }

  body.home .wmrn-home-section-heading--split {
    align-items: flex-start;
    flex-direction: column;
  }

  body.home .wmrn-home-mission__media {
    width: min(540px, 100%);
    margin-inline: auto;
  }
}

@media (max-width: 620px) {
  body.home .wmrn-home-container,
  body.home .wmrn-home-hero__inner {
    width: min(100% - 1.25rem, 1180px);
  }

  body.home .wmrn-home-section {
    padding: 4rem 0;
  }

  body.home .wmrn-home-hero {
    padding-top: 7rem;
    padding-bottom: 4rem;
  }

  body.home .wmrn-home-hero h1 {
    font-size: clamp(2.6rem, 12vw, 4.1rem);
  }

  body.home .wmrn-home-actions {
    flex-direction: column;
  }

  body.home .wmrn-home-button {
    width: 100%;
  }

  body.home .wmrn-home-milestones {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    text-align: left;
  }

  body.home .wmrn-home-milestones div,
  body.home .wmrn-home-milestones div + div {
    display: grid;
    grid-template-columns: 64px 1fr;
    align-items: baseline;
    gap: 0.65rem;
    padding: 0;
    border: 0;
  }

  body.home .wmrn-home-milestones dd {
    margin: 0;
  }

  body.home .wmrn-home-hero__seal {
    right: -0.45rem;
    width: 92px;
  }

  body.home .wmrn-home-portals__grid,
  body.home .wmrn-home-scope__grid {
    grid-template-columns: 1fr;
  }

  body.home .wmrn-home-portal,
  body.home .wmrn-home-portal:first-child,
  body.home .wmrn-home-portal:nth-child(2),
  body.home .wmrn-home-portal:nth-child(3),
  body.home .wmrn-home-portal:nth-child(4) {
    min-height: 0;
    padding: 1.45rem 1rem;
    border: 0;
    border-bottom: 1px solid var(--wmrn-refresh-line);
  }

  body.home .wmrn-home-featured-card__image {
    min-height: 280px;
  }

  body.home .wmrn-home-featured-card__body {
    padding: 1.6rem 1.25rem 1.8rem;
  }

  body.home .wmrn-home-latest-card {
    display: block;
  }

  body.home .wmrn-home-latest-card__image {
    aspect-ratio: 16 / 10;
  }

  body.home .wmrn-home-scope__grid a {
    min-height: 270px;
  }

  body.home .wmrn-home-contribute {
    padding: 4rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home .wmrn-home-refresh *,
  body.home .wmrn-home-refresh *::before,
  body.home .wmrn-home-refresh *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ======================================================================
   WMRN SITE-WIDE INTERIOR REFRESH — v4.7.1
   Extends the approved homepage design language to public interior pages.
   Specialized app/admin interfaces are intentionally left untouched.
   ====================================================================== */

:root {
  --wmrn-site-blue: var(--wmrn-blue, #0d2b63);
  --wmrn-site-blue-deep: #061431;
  --wmrn-site-blue-mid: #18417f;
  --wmrn-site-gold: #d8a846;
  --wmrn-site-gold-light: #f1d998;
  --wmrn-site-paper: #f6f2e9;
  --wmrn-site-cream: #fffdf8;
  --wmrn-site-ink: #1f2d3a;
  --wmrn-site-muted: #62707b;
  --wmrn-site-line: rgba(13, 43, 99, 0.17);
  --wmrn-site-line-strong: rgba(13, 43, 99, 0.28);
  --wmrn-site-shadow-sm: 0 10px 28px rgba(13, 43, 99, 0.09);
  --wmrn-site-shadow: 0 20px 52px rgba(13, 43, 99, 0.13);
  --wmrn-site-radius: 8px;
  --wmrn-site-radius-lg: 14px;
}

/* Public interior canvas */
body:not(.home):not(.page-template-page-app):not(.page-template-page-app-item):not(.page-template-page-app-collections):not(.page-template-page-archive-dashboard):not(.page-template-page-accession) {
  color: var(--wmrn-site-ink);
  background:
    radial-gradient(circle at 8% 20%, rgba(114, 149, 183, 0.08), transparent 27rem),
    var(--wmrn-site-paper);
}

body:not(.home) #content,
body:not(.home) main {
  min-width: 0;
}

body:not(.home) :where(.wmrn-container, .wmrn-container-prose) {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

body:not(.home) .wmrn-container-prose {
  max-width: 850px;
}

body:not(.home) :where(.section-py, .section-py-sm) {
  position: relative;
}

body:not(.home) .section-py {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

body:not(.home) .section-py-sm {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

/* Shared interior mastheads — streamlined, consistent, and image-subordinate */
body:not(.home) :where(.page-hero-plain, .page-hero, .search-header, .archive-detail-header, .wmrn-catalog-record-header) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--wmrn-chrome-bg, linear-gradient(180deg, #0d2b63, #0a1d47 62%, #061431));
  background-color: var(--wmrn-site-blue);
  border: 0;
  box-shadow: none;
}

body:not(.home) :where(.page-hero-plain, .page-hero, .search-header)::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.032) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 96%);
}

body:not(.home) :where(.page-hero-plain, .page-hero, .search-header)::after {
  content: "";
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--wmrn-site-gold), var(--wmrn-site-gold-light), var(--wmrn-site-gold), transparent);
}

body:not(.home) .page-hero,
body:not(.home) .page-hero-plain,
body.search .search-header {
  min-height: clamp(300px, 31vw, 420px);
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
  padding: clamp(8.25rem, 12vw, 9.75rem) 0 clamp(2.55rem, 5vw, 3.85rem);
}

body:not(.home) .page-hero-plain,
body.search .search-header {
  min-height: clamp(250px, 24vw, 320px);
}

body:not(.home) .page-hero-plain {
  padding: clamp(8.25rem, 12vw, 9.75rem) 0 clamp(2.55rem, 5vw, 3.85rem) !important;
}

body.search .search-header {
  padding-inline: max(1rem, calc((100vw - 1180px) / 2));
}

/* Utility pages use a restrained masthead rather than a cinematic hero. */
body.page-template-page-contact .page-hero,
body.page-template-page-faq .page-hero,
body.page-template-page-collection-policy .page-hero,
body.page-template-page-policy .page-hero {
  min-height: clamp(245px, 23vw, 315px);
  padding-bottom: clamp(2.25rem, 4vw, 3rem);
}

body:not(.home) .page-hero-bg {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.42;
  filter: grayscale(0.42) saturate(0.62) contrast(0.92);
  transform: none !important;
}

body.page-template-page-contact .page-hero-bg,
body.page-template-page-faq .page-hero-bg,
body.page-template-page-collection-policy .page-hero-bg,
body.page-template-page-policy .page-hero-bg {
  opacity: 0.18;
  filter: grayscale(0.72) saturate(0.42) contrast(0.9);
}

body:not(.home) .page-hero-overlay {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6,20,49,0.97) 0%, rgba(13,43,99,0.91) 56%, rgba(6,20,49,0.78) 100%),
    linear-gradient(180deg, rgba(13,43,99,0.18), rgba(6,20,49,0.45));
}

body:not(.home) .page-hero .corner-flourish {
  display: none !important;
}

body:not(.home) :where(.page-hero-content, .page-hero-plain .wmrn-container, .search-header > *, .archive-detail-header > *, .wmrn-catalog-record-header > *) {
  position: relative;
  z-index: 3;
}

body:not(.home) .page-hero-content,
body:not(.home) .page-hero-plain .wmrn-container {
  width: min(1180px, calc(100% - 2rem));
  max-width: none;
  margin: 0 auto;
  padding: 0;
  text-align: left;
}

body:not(.home) :where(.page-hero-title, .search-title, .archive-title, .wmrn-catalog-record-header h1) {
  max-width: 930px;
  margin: 0;
  color: #fff !important;
  font-family: "Libre Baskerville", "EB Garamond", Georgia, serif;
  font-size: clamp(2.45rem, 5.25vw, 4.7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.04;
  text-wrap: balance;
}

body.page-template-page-contact .page-hero-title,
body.page-template-page-faq .page-hero-title,
body.page-template-page-collection-policy .page-hero-title,
body.page-template-page-policy .page-hero-title {
  font-size: clamp(2.25rem, 4.35vw, 3.8rem);
}

body:not(.home) :where(.wmrn-kicker, .wmrn-section-kicker, .recording-kicker, .wmrn-archive-kicker) {
  color: #8a6418;
  font-family: "Libre Baskerville", "EB Garamond", Georgia, serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

body:not(.home) :where(.page-hero-eyebrow, .hero-eyebrow),
body:not(.home) :where(.page-hero, .page-hero-plain, .search-header, .dark-band, .wmrn-home-scope, .wmrn-home-contribute) :where(.wmrn-kicker, .wmrn-section-kicker, .recording-kicker, .wmrn-archive-kicker) {
  display: block;
  margin: 0 0 0.7rem;
  color: var(--wmrn-site-gold-light);
  font-family: "Libre Baskerville", "EB Garamond", Georgia, serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

body:not(.home) :where(.page-hero-subtitle, .page-hero-content > p, .search-header p) {
  max-width: 760px;
  margin: 0.9rem 0 0;
  color: rgba(255,255,255,0.86) !important;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.05rem, 1.75vw, 1.28rem);
  line-height: 1.58;
  text-wrap: pretty;
}

/* Interior typography */
body:not(.home) :where(.entry-content, .wmrn-single-content, .exhibit-entry, .recording-overview, .collection-intro) {
  color: var(--wmrn-site-ink);
  font-size: 1.04rem;
  line-height: 1.78;
}

body:not(.home) :where(.entry-content, .wmrn-single-content, .exhibit-entry, .recording-overview, .collection-intro) :where(h2, h3, h4),
body:not(.home) :where(.section-heading, .wmrn-section-heading-row h2, .recording-results-heading, .wmrn-related-accessions h2) {
  color: var(--wmrn-site-blue);
  font-family: "Libre Baskerville", "EB Garamond", Georgia, serif;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

body:not(.home) :where(.entry-content, .wmrn-single-content, .exhibit-entry) h2 {
  margin-top: 2.25em;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--wmrn-site-line);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
}

body:not(.home) :where(.entry-content, .wmrn-single-content, .exhibit-entry) h3 {
  margin-top: 1.8em;
  font-size: clamp(1.35rem, 2vw, 1.72rem);
}

body:not(.home) :where(.entry-content, .wmrn-single-content, .exhibit-entry) a:not(.button):not([class*="btn"]):not([class*="card"]) {
  color: var(--wmrn-site-blue);
  text-decoration-color: rgba(216, 168, 70, 0.8);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

body:not(.home) :where(.entry-content, .wmrn-single-content, .exhibit-entry) a:hover {
  color: var(--wmrn-site-blue-mid);
}

body:not(.home) :where(.entry-content, .wmrn-single-content, .exhibit-entry) blockquote {
  margin: 2rem 0;
  padding: 1.35rem 1.55rem;
  color: var(--wmrn-site-blue);
  background: rgba(255,253,248,0.84);
  border: 1px solid var(--wmrn-site-line);
  border-left: 5px solid var(--wmrn-site-gold);
  border-radius: 0 var(--wmrn-site-radius) var(--wmrn-site-radius) 0;
  box-shadow: var(--wmrn-site-shadow-sm);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.22rem;
}

body:not(.home) :where(.entry-content, .wmrn-single-content, .exhibit-entry) :where(table) {
  width: 100%;
  overflow: hidden;
  background: var(--wmrn-site-cream);
  border: 1px solid var(--wmrn-site-line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--wmrn-site-radius);
  box-shadow: var(--wmrn-site-shadow-sm);
}

body:not(.home) :where(.entry-content, .wmrn-single-content, .exhibit-entry) th {
  color: #fff;
  background: var(--wmrn-site-blue);
  font-family: "Libre Baskerville", Georgia, serif;
}

body:not(.home) :where(.entry-content, .wmrn-single-content, .exhibit-entry) :where(th, td) {
  padding: 0.85rem 1rem;
  border-right: 1px solid var(--wmrn-site-line);
  border-bottom: 1px solid var(--wmrn-site-line);
  text-align: left;
}

/* Buttons and action links */
body:not(.home) :where(
  .button,
  .wp-element-button,
  .archive-card-link,
  .filter-btn,
  .recording-btn,
  .wmrn-archive-button,
  .wmrn-archival-button,
  .wmrn-copy-button,
  .wmrn-direct-draft-button,
  .wmrn-doc-open,
  .wmrn-lb-btn
) {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.15rem;
  color: #fff;
  background: var(--wmrn-chrome-bg, linear-gradient(180deg, #0d2b63, #0a1d47 62%, #061431));
  border: 1px solid rgba(13,43,99,0.55);
  border-radius: 5px;
  box-shadow: 0 7px 18px rgba(13,43,99,0.13);
  font-family: "Libre Baskerville", "EB Garamond", Georgia, serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.25;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

body:not(.home) :where(
  .button,
  .wp-element-button,
  .archive-card-link,
  .filter-btn,
  .recording-btn,
  .wmrn-archive-button,
  .wmrn-archival-button,
  .wmrn-copy-button,
  .wmrn-direct-draft-button,
  .wmrn-doc-open,
  .wmrn-lb-btn
):hover {
  color: var(--wmrn-site-blue);
  background: var(--wmrn-site-gold-light);
  border-color: var(--wmrn-site-gold);
  box-shadow: 0 10px 24px rgba(13,43,99,0.17);
  transform: translateY(-2px);
}

body:not(.home) :where(.recording-btn-secondary, .wmrn-archive-button:not(.wmrn-archive-button--primary), .filter-btn:not(.active)) {
  color: var(--wmrn-site-blue);
  background: var(--wmrn-site-cream);
  border-color: var(--wmrn-site-line-strong);
  box-shadow: none;
}

body:not(.home) :where(.recording-btn-primary, .wmrn-archive-button--primary, .filter-btn.active) {
  color: #fff;
  background: var(--wmrn-chrome-bg, linear-gradient(180deg, #0d2b63, #0a1d47 62%, #061431));
}

/* Universal museum cards and panels */
body:not(.home) :where(
  .card,
  .archive-card,
  .archive-item,
  .search-card,
  .collection-card,
  .collection-tile,
  .wmrn-archive-card,
  .wmrn-exhibit-card,
  .wmrn-directory-card,
  .recording-card,
  .recording-featured,
  .accession-details-card,
  .archive-title-card,
  .wmrn-panel,
  .wmrn-output-card,
  .wmrn-archival-sidebar-card,
  .wmrn-provenance-panel,
  .wmrn-request-panel,
  .recording-details-panel,
  .recording-snapshot,
  .wmrn-citation-box,
  .wmrn-related-accession-card,
  .recording-archive-note,
  .archive-empty,
  .wmrn-empty-state,
  .recording-empty,
  .search-empty
) {
  color: var(--wmrn-site-ink);
  background: rgba(255,253,248,0.96);
  border: 1px solid var(--wmrn-site-line);
  border-radius: var(--wmrn-site-radius-lg);
  box-shadow: var(--wmrn-site-shadow-sm);
}

body:not(.home) :where(
  .archive-card,
  .search-card,
  .collection-card,
  .collection-tile,
  .wmrn-archive-card,
  .wmrn-exhibit-card,
  .wmrn-directory-card,
  .recording-card,
  .wmrn-related-accession-card
) {
  overflow: hidden;
  transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease;
}

body:not(.home) :where(
  .archive-card,
  .search-card,
  .collection-card,
  .collection-tile,
  .wmrn-archive-card,
  .wmrn-exhibit-card,
  .wmrn-directory-card,
  .recording-card,
  .wmrn-related-accession-card
):hover {
  border-color: rgba(216,168,70,0.72);
  box-shadow: var(--wmrn-site-shadow);
  transform: translateY(-5px);
}

body:not(.home) :where(
  .archive-card-title,
  .archive-title,
  .wmrn-archive-card__body h2,
  .wmrn-archive-card__body h3,
  .wmrn-exhibit-card h2,
  .wmrn-exhibit-card h3,
  .wmrn-directory-card h2,
  .wmrn-directory-card h3,
  .recording-card h3,
  .search-card h2,
  .search-card h3,
  .collection-card h2,
  .collection-card h3,
  .collection-tile h2,
  .collection-tile h3
) {
  color: var(--wmrn-site-blue);
  font-family: "Libre Baskerville", "EB Garamond", Georgia, serif;
  line-height: 1.25;
}

body:not(.home) :where(
  .archive-card-meta,
  .archive-meta,
  .wmrn-archive-card__meta,
  .wmrn-directory-card .meta,
  .recording-card-meta,
  .recording-card-quickmeta,
  .search-count,
  .archive-id,
  .accession-tag,
  .recording-card-badges span
) {
  color: var(--wmrn-site-muted);
  font-size: 0.82rem;
  letter-spacing: 0.035em;
}

body:not(.home) :where(.archive-id, .accession-tag, .recording-card-badges span) {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.28rem 0.55rem;
  color: var(--wmrn-site-blue);
  background: rgba(216,168,70,0.13);
  border: 1px solid rgba(216,168,70,0.38);
  border-radius: 999px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

/* Card media consistency */
body:not(.home) :where(.archive-card-image, .archive-thumb, .search-card-image, .wmrn-archive-card__media, .wmrn-exhibit-card__media, .wmrn-related-card-image) {
  overflow: hidden;
  background: linear-gradient(145deg, #dce7ef, #b8c9d8);
  border-bottom: 1px solid var(--wmrn-site-line);
}

body:not(.home) :where(.archive-card-image img, .archive-thumb img, .search-card-image img, .wmrn-archive-card__media img, .wmrn-exhibit-card img, .wmrn-related-card-image img) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

body:not(.home) :where(.archive-card, .search-card, .wmrn-archive-card, .wmrn-exhibit-card, .wmrn-related-accession-card):hover img {
  transform: scale(1.035);
}

/* Search, filters and controls */
body:not(.home) :where(
  .archive-controls,
  .archive-filters,
  .filter-bar,
  .filters,
  .wmrn-archive-search-panel,
  .wmrn-archive-filter-sidebar,
  .wmrn-directory-toolbar,
  .recording-toolbox,
  .recording-search-shell,
  .wmrn-filter-primary,
  .wmrn-filter-advanced
) {
  color: var(--wmrn-site-ink);
  background: rgba(255,253,248,0.97);
  border: 1px solid var(--wmrn-site-line);
  border-radius: var(--wmrn-site-radius-lg);
  box-shadow: var(--wmrn-site-shadow-sm);
}

body:not(.home) :where(
  input[type="text"],
  input[type="search"],
  input[type="email"],
  input[type="url"],
  input[type="tel"],
  input[type="number"],
  input[type="date"],
  select,
  textarea,
  .recording-search-input,
  .search-dialog-input
) {
  min-height: 48px;
  color: var(--wmrn-site-ink);
  background: #fff;
  border: 1px solid rgba(13,43,99,0.28);
  border-radius: 6px;
  box-shadow: inset 0 1px 2px rgba(13,43,99,0.04);
}

body:not(.home) textarea {
  min-height: 150px;
}

body:not(.home) :where(
  input[type="text"], input[type="search"], input[type="email"], input[type="url"],
  input[type="tel"], input[type="number"], input[type="date"], select, textarea,
  .recording-search-input, .search-dialog-input
):focus {
  outline: 3px solid rgba(216,168,70,0.25);
  outline-offset: 1px;
  border-color: var(--wmrn-site-gold);
  box-shadow: 0 0 0 1px rgba(216,168,70,0.25);
}

body:not(.home) :where(label, .wmrn-filter-field label, .wmrn-archive-filter-field label) {
  color: var(--wmrn-site-blue);
  font-family: "Libre Baskerville", "EB Garamond", Georgia, serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.045em;
}

body:not(.home) :where(.wmrn-archive-results-header, .recording-results-heading, .wmrn-section-heading-row) {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--wmrn-site-line);
}

/* Catalog and individual accession records */
body:not(.home) :where(.archive-detail-grid, .wmrn-catalog-record-grid) {
  gap: clamp(2rem, 5vw, 4.5rem);
}

body:not(.home) :where(.archive-info, .wmrn-catalog-column, .wmrn-document-details) {
  min-width: 0;
}

body:not(.home) :where(.accession-details-header, .wmrn-sidebar-card-header, .wmrn-output-head) {
  color: #fff;
  background: var(--wmrn-chrome-bg, linear-gradient(180deg, #0d2b63, #0a1d47 62%, #061431));
  border-radius: calc(var(--wmrn-site-radius-lg) - 1px) calc(var(--wmrn-site-radius-lg) - 1px) 0 0;
}

body:not(.home) :where(.accession-detail-row, .wmrn-sidebar-meta-list li, .wmrn-catalog-list > *) {
  border-color: var(--wmrn-site-line);
}

body:not(.home) :where(.accession-detail-row dt, .wmrn-sidebar-meta-list strong, .wmrn-catalog-list dt) {
  color: var(--wmrn-site-blue);
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
}

body:not(.home) :where(.wmrn-provenance-note, .wmrn-catalog-note-block, .recording-archive-note) {
  padding: 1.2rem 1.35rem;
  color: var(--wmrn-site-ink);
  background: rgba(216,168,70,0.11);
  border: 1px solid rgba(216,168,70,0.38);
  border-left: 5px solid var(--wmrn-site-gold);
  border-radius: var(--wmrn-site-radius);
}

/* Archive browser */
body:not(.home) :where(.archive-grid, .wmrn-archive-grid, .search-results-grid, .collections-grid, .collection-grid, .wmrn-exhibit-grid, .wmrn-directory-grid, .wmrn-related-accession-grid) {
  gap: clamp(1.2rem, 2.6vw, 2rem);
}

body:not(.home) .wmrn-archive-results-shell {
  align-items: start;
}

body:not(.home) :where(.wmrn-archive-stats, .wmrn-archive-active-filters) {
  color: var(--wmrn-site-muted);
}

body:not(.home) :where(.archive-pagination, .wmrn-archive-pagination) a,
body:not(.home) :where(.archive-pagination, .wmrn-archive-pagination) span {
  min-width: 42px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  color: var(--wmrn-site-blue);
  background: var(--wmrn-site-cream);
  border: 1px solid var(--wmrn-site-line);
  border-radius: 5px;
  text-decoration: none;
}

body:not(.home) :where(.archive-pagination, .wmrn-archive-pagination) :where(.current, a:hover) {
  color: #fff;
  background: var(--wmrn-site-blue);
  border-color: var(--wmrn-site-blue);
}

/* Broadcast archive and audio */
body:not(.home) :where(.recording-room, .recording-archive, .recording-overview) {
  color: var(--wmrn-site-ink);
}

body:not(.home) .recording-featured {
  overflow: hidden;
  border-top: 5px solid var(--wmrn-site-gold);
}

body:not(.home) :where(.recording-featured-copy h2, .recording-featured-copy h3, .recording-title-context) {
  color: var(--wmrn-site-blue);
  font-family: "Libre Baskerville", Georgia, serif;
}

body:not(.home) :where(.recording-native-player, .recording-featured-player, .recording-player-wrap) {
  color: #fff;
  background: var(--wmrn-chrome-bg, linear-gradient(180deg, #0d2b63, #0a1d47 62%, #061431));
  border: 1px solid rgba(216,168,70,0.36);
  border-radius: var(--wmrn-site-radius);
  box-shadow: 0 14px 32px rgba(13,43,99,0.16);
}

body:not(.home) :where(.recording-player-toggle, .recording-player-mute) {
  color: var(--wmrn-site-gold-light);
}

body:not(.home) :where(.recording-player-track, .recording-player-range) {
  accent-color: var(--wmrn-site-gold);
}

body:not(.home) .recording-category-list a {
  color: var(--wmrn-site-blue);
  background: var(--wmrn-site-cream);
  border: 1px solid var(--wmrn-site-line);
  border-radius: 999px;
}

body:not(.home) .recording-category-list a:hover {
  color: #fff;
  background: var(--wmrn-site-blue);
  border-color: var(--wmrn-site-blue);
}

/* Photo albums and lightbox */
body:not(.home) :where(.photo-album-card, .album-card) {
  overflow: hidden;
  background: var(--wmrn-site-cream);
  border: 1px solid var(--wmrn-site-line);
  border-radius: var(--wmrn-site-radius-lg);
  box-shadow: var(--wmrn-site-shadow-sm);
  transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease;
}

body:not(.home) :where(.photo-album-card, .album-card):hover {
  border-color: rgba(216,168,70,0.72);
  box-shadow: var(--wmrn-site-shadow);
  transform: translateY(-5px);
}

body:not(.home) :where(.photo-album-card h2, .photo-album-card h3, .album-card h2, .album-card h3) {
  color: var(--wmrn-site-blue);
  font-family: "Libre Baskerville", Georgia, serif;
}

body:not(.home) :where(.wmrn-lightbox-shell, .wmrn-doc-viewer) {
  border: 1px solid rgba(216,168,70,0.35);
  box-shadow: 0 28px 80px rgba(0,0,0,0.35);
}

body:not(.home) :where(.wmrn-lightbox-topbar, .wmrn-doc-toolbar) {
  color: #fff;
  background: var(--wmrn-site-blue);
  border-bottom: 1px solid rgba(216,168,70,0.4);
}

/* People directory */
body:not(.home) .wmrn-directory-alpha a {
  min-width: 38px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  color: var(--wmrn-site-blue);
  background: var(--wmrn-site-cream);
  border: 1px solid var(--wmrn-site-line);
  border-radius: 5px;
  text-decoration: none;
}

body:not(.home) .wmrn-directory-alpha :where(a:hover, a.active) {
  color: #fff;
  background: var(--wmrn-site-blue);
  border-color: var(--wmrn-site-blue);
}

/* Timeline */
body:not(.home) :where(.timeline-sidebar-line, .timeline-dot) {
  background: var(--wmrn-site-gold);
}

body:not(.home) :where(.timeline-year, .timeline-era-label, .timeline-mobile-era) {
  color: var(--wmrn-site-gold);
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
}

body:not(.home) :where(.timeline-section-item, .timeline-mobile-item) {
  background: rgba(255,253,248,0.96);
  border: 1px solid var(--wmrn-site-line);
  border-radius: var(--wmrn-site-radius-lg);
  box-shadow: var(--wmrn-site-shadow-sm);
}

body:not(.home) :where(.timeline-section-title, .timeline-mobile-title) {
  color: var(--wmrn-site-blue);
  font-family: "Libre Baskerville", Georgia, serif;
}

body:not(.home) .timeline-nav-item.active,
body:not(.home) .timeline-nav-item:hover {
  color: var(--wmrn-site-gold-light);
  background: var(--wmrn-site-blue);
}

/* Exhibits and editorial pages */
body:not(.home) .exhibit-entry :where(figure, .wp-block-image) {
  overflow: hidden;
  margin-block: 2.2rem;
  background: var(--wmrn-site-cream);
  border: 1px solid var(--wmrn-site-line);
  border-radius: var(--wmrn-site-radius-lg);
  box-shadow: var(--wmrn-site-shadow-sm);
}

body:not(.home) .exhibit-entry figcaption {
  padding: 0.85rem 1rem;
  color: var(--wmrn-site-muted);
  background: var(--wmrn-site-cream);
  border-top: 1px solid var(--wmrn-site-line);
  font-size: 0.88rem;
  line-height: 1.55;
}

body:not(.home) .wmrn-exhibit-accessions {
  padding-top: 2rem;
  border-top: 1px solid var(--wmrn-site-line);
}

/* Search results and 404 */
body.search .search-results-wrap,
body.error404 main {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}


body.error404 :where(.error-404, .not-found) {
  width: min(820px, calc(100% - 2rem));
  margin: clamp(8rem, 16vw, 12rem) auto 5rem;
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
  background: var(--wmrn-site-cream);
  border: 1px solid var(--wmrn-site-line);
  border-top: 5px solid var(--wmrn-site-gold);
  border-radius: var(--wmrn-site-radius-lg);
  box-shadow: var(--wmrn-site-shadow);
}

body.error404 :where(.error-404, .not-found) h1 {
  color: var(--wmrn-site-blue);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}

/* Footer continuity */
body:not(.home) #site-footer,
body:not(.home) .site-footer {
  position: relative;
  margin-top: 0;
  border-top: 4px solid var(--wmrn-site-gold);
}

/* Focus and accessibility */
body:not(.home) :where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--wmrn-site-gold-light);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  body:not(.home) .page-hero-plain {
    min-height: 300px;
    padding-top: 8.5rem;
  }

  body:not(.home) :where(.archive-detail-grid, .wmrn-catalog-record-grid, .wmrn-archive-results-shell) {
    grid-template-columns: 1fr;
  }

  body:not(.home) .wmrn-archive-filter-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  body:not(.home) :where(.wmrn-container, .wmrn-container-prose) {
    width: min(100% - 1.25rem, 1180px);
  }

  body:not(.home) .page-hero-plain {
    min-height: 270px;
    padding: 8rem 0 3.25rem;
  }

  body:not(.home) :where(.page-hero-title, .search-title, .archive-title, .wmrn-catalog-record-header h1) {
    font-size: clamp(2.25rem, 12vw, 3.45rem);
  }

  body:not(.home) :where(.section-py, .section-py-sm) {
    padding-block: 3rem;
  }

  body:not(.home) :where(.archive-controls, .archive-filters, .filter-bar, .filters, .wmrn-archive-search-panel, .wmrn-archive-filter-sidebar, .wmrn-directory-toolbar, .recording-toolbox) {
    padding: 1rem;
    border-radius: 9px;
  }

  body:not(.home) :where(.button, .wp-element-button, .archive-card-link, .filter-btn, .recording-btn, .wmrn-archive-button, .wmrn-archival-button) {
    width: 100%;
  }

  body:not(.home) :where(.archive-pagination, .wmrn-archive-pagination) {
    gap: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.home) :where(.archive-card, .search-card, .collection-card, .collection-tile, .wmrn-archive-card, .wmrn-exhibit-card, .wmrn-directory-card, .recording-card, .wmrn-related-accession-card, .photo-album-card, .album-card) {
    transition: none;
  }
}


/* ======================================================================
   PROFESSIONAL POLISH PASS — v4.7.1
   ====================================================================== */

/* Restraint: cards should feel archival, not float like app tiles. */
body:not(.home) :where(
  .archive-card,
  .search-card,
  .collection-card,
  .collection-tile,
  .wmrn-archive-card,
  .wmrn-exhibit-card,
  .wmrn-directory-card,
  .recording-card,
  .wmrn-related-accession-card,
  .photo-album-card,
  .album-card
):hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(13,43,99,0.12);
}

/* People directory controls share one geometry and baseline. */
body:not(.home) .wmrn-directory-search {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: stretch;
  gap: 0.65rem;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body:not(.home) .wmrn-directory-search :where(input, button, .wmrn-directory-clear) {
  min-height: 48px;
  border-radius: 6px;
}

body:not(.home) .wmrn-directory-search button,
body:not(.home) .wmrn-directory-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

body:not(.home) .wmrn-directory-search button {
  color: #fff;
  background: var(--wmrn-site-blue);
  border: 1px solid var(--wmrn-site-blue);
}

body:not(.home) .wmrn-directory-clear {
  color: var(--wmrn-site-blue);
  background: var(--wmrn-site-cream);
  border: 1px solid var(--wmrn-site-line-strong);
}

body:not(.home) .wmrn-directory-note,
body:not(.home) .wmrnrha-filter-note {
  color: var(--wmrn-site-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* Timeline: a clean historical record, with real images only when supplied. */
body:not(.home) .wmrn-timeline-heading,
body:not(.home) .wmrn-archival-note-title {
  margin: 0;
  color: var(--wmrn-site-blue);
  font-family: "Libre Baskerville", "EB Garamond", Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
}

body:not(.home) .wmrn-timeline-heading {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

body:not(.home) .wmrn-archival-note-title {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

body:not(.home) .wmrn-archival-note-text {
  margin: 0;
  color: var(--wmrn-site-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

body:not(.home) .timeline-content-sections {
  gap: clamp(3rem, 6vw, 5rem);
}

body:not(.home) :where(.timeline-section-item, .timeline-mobile-item) {
  padding: clamp(1.35rem, 3vw, 2.25rem);
}

body:not(.home) .timeline-mobile-item {
  margin-bottom: 1.25rem;
  border-left: 4px solid var(--wmrn-site-gold);
}

body:not(.home) .timeline-section-text,
body:not(.home) .timeline-img-wrap {
  max-width: 48rem;
}

body:not(.home) .timeline-section-text p,
body:not(.home) .timeline-mobile-text {
  color: var(--wmrn-site-ink);
  font-size: 1rem;
  line-height: 1.72;
}

body:not(.home) .timeline-img-wrap,
body:not(.home) .timeline-mobile-img {
  border: 1px solid var(--wmrn-site-line);
  border-radius: 8px;
}

/* Keep exhibit summaries compact and prevent utility text from dominating cards. */
body:not(.home) .wmrn-exhibit-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

/* Responsive mastheads and directory controls. */
@media (max-width: 900px) {
  body:not(.home) .page-hero,
  body:not(.home) .page-hero-plain,
  body.search .search-header {
    min-height: 285px;
    padding: 7.75rem 0 2.75rem;
  }

  body:not(.home) .page-hero-plain {
    padding: 7.75rem 0 2.75rem !important;
  }

  body:not(.home) .page-hero-content,
  body:not(.home) .page-hero-plain .wmrn-container {
    width: min(100% - 1.5rem, 1180px);
  }
}

@media (max-width: 640px) {
  body:not(.home) .page-hero,
  body:not(.home) .page-hero-plain,
  body.search .search-header,
  body.page-template-page-contact .page-hero,
  body.page-template-page-faq .page-hero,
  body.page-template-page-collection-policy .page-hero,
  body.page-template-page-policy .page-hero {
    min-height: 245px;
    padding: 6.85rem 0 2.15rem;
  }

  body:not(.home) :where(.page-hero-title, .search-title, .archive-title, .wmrn-catalog-record-header h1) {
    font-size: clamp(2.05rem, 10.5vw, 3rem);
    line-height: 1.06;
  }

  body:not(.home) :where(.page-hero-subtitle, .page-hero-content > p, .search-header p) {
    margin-top: 0.65rem;
    font-size: 1rem;
    line-height: 1.48;
  }

  body:not(.home) .page-hero-plain {
    padding: 6.85rem 0 2.15rem !important;
  }

  body:not(.home) .wmrn-directory-search {
    grid-template-columns: 1fr;
  }

  body:not(.home) .wmrn-directory-search :where(button, .wmrn-directory-clear) {
    width: 100%;
  }
}


/* ========================================================================
   v4.7.2 — Header archive-search correction
   The site-wide form system must never restyle the search field inside the
   global navigation. These rules intentionally mirror the approved homepage
   header search on every interior page.
======================================================================== */
body:not(.home) #site-header .header-search-input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 10px 16px 10px 42px;
  color: #ffffff;
  background: rgba(7, 22, 51, 0.38);
  border: 1px solid rgba(248, 217, 143, 0.34);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-family: "EB Garamond", Garamond, Georgia, serif;
  font-size: 0.9rem;
  letter-spacing: 0.035em;
  line-height: 1.2;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

body:not(.home) #site-header .header-search-input::placeholder {
  color: rgba(245, 235, 215, 0.76);
  opacity: 1;
}

body:not(.home) #site-header .header-search-input:focus {
  color: #ffffff;
  background: rgba(7, 22, 51, 0.62);
  border-color: var(--wmrn-gold, #d8a846);
  outline: none;
  box-shadow: 0 0 0 3px rgba(216, 168, 70, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body:not(.home) #site-header.scrolled .header-search-input {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(248, 217, 143, 0.28);
}

body:not(.home) #site-header.scrolled .header-search-input:focus {
  background: rgba(255, 255, 255, 0.11);
  border-color: var(--wmrn-gold, #d8a846);
}

/* Keep the compact header proportions used at normal laptop widths. */
@media (min-width: 1024px) and (max-width: 1500px) {
  body:not(.home) #site-header .header-search-input {
    min-height: 36px;
    padding: 8px 12px 8px 38px;
    font-size: 0.76rem;
    letter-spacing: 0.02em;
  }
}


/* ======================================================================
   FINAL SITE-WIDE REFINEMENT — v4.7.5
   ====================================================================== */

/* Decorative separators from the legacy theme no longer interrupt the new
   masthead-to-content rhythm. */
body:not(.home) .page-hero + :where(.ornament-divider, .double-rule) {
  display: none !important;
}

body:not(.home) .page-hero-eyebrow,
body:not(.home) .hero-eyebrow {
  width: fit-content;
  padding-bottom: 0.28rem;
  border-bottom: 1px solid rgba(241,217,152,0.55);
}

body.search .page-hero-search,
body.error404 .page-hero-404 {
  min-height: clamp(245px, 23vw, 315px);
  padding-bottom: clamp(2.25rem, 4vw, 3rem);
}

/* Exhibit index: an editorial grid rather than stacked legacy sections. */
body:not(.home) .wmrn-exhibits-index {
  background: transparent;
}

body:not(.home) .wmrn-index-intro {
  max-width: 780px;
  margin: 0 0 clamp(2rem, 4vw, 3.25rem);
}

body:not(.home) .wmrn-index-intro h2,
body.search .search-results-summary h2 {
  margin: 0;
  color: var(--wmrn-site-blue);
  font-family: "Libre Baskerville", "EB Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

body:not(.home) .wmrn-index-intro > p:last-child {
  max-width: 700px;
  margin: 0.9rem 0 0;
  color: var(--wmrn-site-muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

body:not(.home) .wmrn-exhibit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

body:not(.home) .wmrn-exhibit-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  color: var(--wmrn-site-ink);
  text-decoration: none;
  background: var(--wmrn-site-cream);
  border: 1px solid var(--wmrn-site-line);
  border-radius: 12px;
  box-shadow: 0 9px 24px rgba(13,43,99,0.06);
}

body:not(.home) .wmrn-exhibit-card .archive-card-image,
body:not(.home) .wmrn-exhibit-card__placeholder {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--wmrn-site-line);
}

body:not(.home) .wmrn-exhibit-card .archive-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body:not(.home) .wmrn-exhibit-card__placeholder {
  display: grid;
  place-content: center;
  gap: 0.2rem;
  text-align: center;
  color: #fff;
  background: var(--wmrn-chrome-bg, linear-gradient(180deg, #0d2b63, #0a1d47 62%, #061431));
}

body:not(.home) .wmrn-exhibit-card__placeholder span {
  color: var(--wmrn-site-gold-light);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
}

body:not(.home) .wmrn-exhibit-card__placeholder small {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body:not(.home) .wmrn-exhibit-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.2rem;
}

body:not(.home) .wmrn-exhibit-card h3 {
  margin: 0.2rem 0 0;
  color: var(--wmrn-site-blue);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.18;
}

body:not(.home) .wmrn-exhibit-card p:not(.wmrn-section-kicker) {
  margin: 0.75rem 0 1rem;
  color: var(--wmrn-site-muted);
  line-height: 1.6;
}

body:not(.home) .wmrn-exhibit-card__link {
  margin-top: auto;
  color: var(--wmrn-site-blue);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--wmrn-site-gold);
  text-underline-offset: 0.22em;
}

body:not(.home) .wmrn-exhibit-index-note {
  max-width: 760px;
  margin: 1.5rem 0 0;
  padding-left: 1rem;
  color: var(--wmrn-site-muted);
  border-left: 3px solid var(--wmrn-site-gold);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* Search pages now use the same masthead, card, and empty-state language. */
body.search .search-results-wrap {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

body.search .search-results-summary {
  margin-bottom: 1.5rem;
}

body.search .search-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

body.search .search-card {
  overflow: hidden;
  background: var(--wmrn-site-cream);
  border: 1px solid var(--wmrn-site-line);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(13,43,99,0.055);
}

body.search .search-card .archive-card-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--wmrn-site-line);
}

body.search .search-card .archive-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.search .search-card-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-content: center;
  gap: 0.2rem;
  text-align: center;
  color: #fff;
  background: var(--wmrn-chrome-bg, linear-gradient(180deg, #0d2b63, #0a1d47 62%, #061431));
}

body.search .search-card-placeholder strong {
  color: var(--wmrn-site-gold-light);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.5rem;
}

body.search .search-card-placeholder small {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.search .archive-card-content {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 1rem;
}

body.search .archive-card-meta {
  margin: 0 0 0.55rem;
  color: #8a6418;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.search .archive-card-title {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.22;
}

body.search .archive-card-title a {
  color: var(--wmrn-site-blue);
  text-decoration: none;
}

body.search .archive-card-excerpt {
  margin: 0.7rem 0 1rem;
  color: var(--wmrn-site-muted);
  line-height: 1.58;
}

body.search .archive-card-link {
  margin-top: auto;
  color: var(--wmrn-site-blue);
  font-weight: 700;
  text-decoration-color: var(--wmrn-site-gold);
  text-underline-offset: 0.22em;
}

body.search .search-empty {
  max-width: 760px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--wmrn-site-cream);
  border: 1px solid var(--wmrn-site-line);
  border-top: 4px solid var(--wmrn-site-gold);
  border-radius: 12px;
  box-shadow: var(--wmrn-site-shadow-sm);
}

body.search .search-empty h2 {
  margin: 0;
  color: var(--wmrn-site-blue);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

body.search .search-empty form,
body.error404 .not-found-search form {
  display: flex;
  gap: 0.55rem;
  margin-top: 1rem;
}

/* 404 recovery page. */
body.error404 .not-found-wrap {
  padding: clamp(3rem, 6vw, 5.5rem) 1rem;
}

body.error404 .not-found-inner {
  width: min(780px, 100%);
  margin: 0 auto;
  padding: clamp(1.6rem, 4vw, 3rem);
  text-align: center;
  background: var(--wmrn-site-cream);
  border: 1px solid var(--wmrn-site-line);
  border-top: 4px solid var(--wmrn-site-gold);
  border-radius: 12px;
  box-shadow: var(--wmrn-site-shadow-sm);
}

body.error404 .not-found-code {
  margin: 0;
  color: rgba(13,43,99,0.12);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(4rem, 13vw, 8rem);
  font-weight: 700;
  line-height: 0.9;
}

body.error404 .not-found-inner h2 {
  margin: 0.5rem 0 0;
  color: var(--wmrn-site-blue);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
}

body.error404 .not-found-inner > p:not(.not-found-code) {
  color: var(--wmrn-site-muted);
  line-height: 1.65;
}

body.error404 .not-found-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

/* The broadcast archive lead now reads like a curated homepage feature. */
@media (min-width: 1100px) {
  body:not(.home) .recording-archive .recording-overview {
    grid-template-columns: minmax(0, 1.65fr) minmax(290px, 0.72fr) !important;
    align-items: stretch;
    gap: 0.95rem !important;
  }

  body:not(.home) .recording-archive .recording-featured,
  body:not(.home) .recording-archive .recording-snapshot {
    height: 100%;
  }

  body:not(.home) .recording-archive .recording-snapshot {
    grid-template-columns: 1fr !important;
  }

  body:not(.home) .recording-archive .recording-snapshot > .recording-kicker {
    min-height: auto !important;
    border-bottom: 1px solid rgba(13,43,99,0.1);
  }

  body:not(.home) .recording-archive .recording-snapshot .recording-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

body:not(.home) .recording-archive .recording-card:hover {
  transform: translateY(-1px) !important;
}

@media (max-width: 960px) {
  body:not(.home) .wmrn-exhibit-grid,
  body.search .search-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body:not(.home) .wmrn-exhibit-grid,
  body.search .search-results-grid {
    grid-template-columns: 1fr;
  }

  body.search .search-empty form,
  body.error404 .not-found-search form,
  body.error404 .not-found-actions {
    flex-direction: column;
  }
}

/* =========================================================
   Homepage historical ticker — restored in v4.7.6
   ========================================================= */
.home .wmrn-home-ticker {
  position: relative;
  z-index: 4;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(210, 168, 67, 0.52);
  border-bottom: 1px solid rgba(210, 168, 67, 0.52);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), transparent 58%),
    var(--wmrn-site-blue, #0d2b63);
  color: #f7efd9;
  box-shadow: 0 6px 16px rgba(6, 20, 49, 0.12);
}

.home .wmrn-home-ticker__viewport {
  width: 100%;
  overflow: hidden;
}

.home .wmrn-home-ticker__track {
  display: flex;
  align-items: center;
  width: max-content;
  min-height: 42px;
  white-space: nowrap;
  animation: wmrnHomeTickerScroll 75s linear infinite;
  will-change: transform;
}

.home .wmrn-home-ticker__content {
  display: inline-block;
  flex: 0 0 auto;
  padding-right: 6rem;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.25;
}

.home .wmrn-home-ticker::before,
.home .wmrn-home-ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: clamp(22px, 4vw, 64px);
  pointer-events: none;
}

.home .wmrn-home-ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--wmrn-site-blue, #0d2b63), transparent);
}

.home .wmrn-home-ticker::after {
  right: 0;
  background: linear-gradient(270deg, var(--wmrn-site-blue, #0d2b63), transparent);
}

.home .wmrn-home-ticker:hover .wmrn-home-ticker__track,
.home .wmrn-home-ticker:focus .wmrn-home-ticker__track,
.home .wmrn-home-ticker:focus-within .wmrn-home-ticker__track {
  animation-play-state: paused;
}

@keyframes wmrnHomeTickerScroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 768px) {
  .home .wmrn-home-ticker__track {
    min-height: 38px;
    animation-duration: 95s;
  }

  .home .wmrn-home-ticker__content {
    padding-right: 4.5rem;
    font-size: 0.78rem;
    letter-spacing: 0.025em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home .wmrn-home-ticker__viewport {
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .home .wmrn-home-ticker__track {
    animation: none;
  }

  .home .wmrn-home-ticker__content[aria-hidden="true"] {
    display: none;
  }
}

