/* Final overrides for rebuilt prototype */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(232, 215, 191, 0.14);
  background: linear-gradient(180deg, rgba(77, 44, 23, 0.98), rgba(49, 27, 13, 0.98));
}

.site-header__inner {
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 86px;
  gap: 18px;
  padding: 9px 0;
}

.brand-lockup {
  gap: 18px;
  margin-left: 0;
  align-items: center;
}

.brand-copy {
  margin-left: 4px;
}

.brand-logo--header {
  width: clamp(156px, 13vw, 206px);
  height: auto;
  clip-path: none;
  object-position: left center;
  filter: brightness(0) invert(1);
  opacity: 0.94;
}

.brand-copy strong {
  color: #f7ecdd;
  font-family: "Arvo Local", Georgia, serif;
  letter-spacing: 0;
}

.brand-word--minor {
  top: -0.08em;
  font-size: 0.48em;
}

.site-nav {
  justify-self: end;
  gap: 18px;
}

.nav-link {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(247, 236, 221, 0.9);
  box-shadow: none;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff7ed;
}

.public-hero {
  padding: clamp(30px, 4.8vw, 62px) 0 clamp(84px, 10vw, 132px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(255, 247, 237, 0.08), transparent 28%),
    linear-gradient(90deg, rgba(54, 30, 14, 0.12), rgba(101, 66, 38, 0.08)),
    var(--hero-backdrop-image, none) center/cover no-repeat,
    linear-gradient(180deg, rgba(255, 252, 247, 0) 0%, rgba(255, 252, 247, 0) 64%, rgba(247, 239, 229, 0.04) 76%, rgba(228, 210, 183, 0.1) 88%, rgba(130, 93, 60, 0.16) 100%),
    linear-gradient(90deg, rgba(54, 30, 14, 0.34), rgba(101, 66, 38, 0.22)),
    var(--paper-strong);
}

.public-hero__inner {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
}

.public-hero__media {
  min-height: clamp(240px, 28vw, 380px);
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid rgba(255, 242, 228, 0.18);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 250, 244, 0.94), rgba(232, 214, 192, 0.94));
  box-shadow: 0 20px 48px rgba(14, 7, 3, 0.22);
}

.public-hero__media img {
  width: min(100%, 360px);
  max-height: 320px;
}

.public-hero__copy .eyebrow,
.public-hero__copy .lead,
.public-hero__copy p,
.public-hero__copy .mini-meta {
  color: rgba(255, 247, 237, 0.86);
  text-shadow: 0 2px 6px rgba(194, 168, 131, 0.72), 0 0 1px rgba(255, 249, 240, 0.36);
}

.public-hero__copy h1 {
  margin: 8px 0 14px;
  color: #fff7ed;
  font-family: "Arvo Local", Georgia, serif;
  font-size: clamp(31px, 3.4vw, 52px);
  line-height: 1;
  text-shadow: 0 3px 10px rgba(194, 168, 131, 0.78), 0 0 1px rgba(255, 249, 240, 0.34);
}

.story-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 244, 0.92);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.story-card__body {
  padding: 12px 14px 14px;
}

.story-card__body h3 {
  margin: 0;
  font-family: "Arvo Local", Georgia, serif;
  font-size: 17px;
  line-height: 1.12;
}

.story-card__body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.footer__inner {
  align-items: center;
  gap: 24px;
}

.footer__logos {
  width: min(100%, 680px);
  margin: 18px auto 0;
  filter: brightness(0) invert(1);
  opacity: 0.82;
}

.footer__logos img {
  display: block;
  width: 100%;
  max-height: 92px;
  object-fit: contain;
}

.link-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.link-box code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.qr-brand {
  width: 198px;
}

.qr-brand__svg {
  width: 198px;
  height: 198px;
}

.qr-brand__logo {
  width: 32px;
  height: 32px;
  padding: 4px;
}

.brand-logo--qr {
  width: 100%;
  height: 100%;
}

@media (max-width: 920px) {
  .cards-grid--news,
  .cards-grid--archive {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .archive-navigator--sticky {
    top: 108px;
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .archive-mobile-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 2px;
    scrollbar-width: none;
  }

  .archive-mobile-filters::-webkit-scrollbar {
    display: none;
  }

  .archive-mobile-filters select {
    flex: 1 0 min(42vw, 190px);
    min-width: 0;
    height: 38px;
    padding: 0 34px 0 12px;
    border: 1px solid rgba(127, 79, 44, 0.22);
    border-radius: 999px;
    background: rgba(255, 250, 244, 0.96);
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
  }

  .archive-navigator--sticky > .category-strip,
  .archive-navigator--sticky > .archive-topic-band,
  .archive-navigator--sticky > .archive-subtopic-band {
    display: none;
  }

  .lightbox-overlay {
    padding: 12px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }

  .lightbox-viewer__top {
    padding: 18px 74px 0 18px;
  }

  .lightbox-viewer__stage {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
    padding: 12px 12px 16px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .lightbox-viewer__figure {
    min-height: 48vh;
    max-height: 62vh;
  }

  .lightbox-viewer__figure img {
    max-height: 62vh;
  }

  .lightbox-viewer__caption {
    padding: 0 18px 18px;
  }

  .site-nav {
    justify-self: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 13px;
  }

  .site-header__inner {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 92px;
  }

  .brand-lockup {
    margin-left: 0;
  }

  .brand-logo--header {
    width: 132px;
  }

  .site-nav {
    justify-self: start;
    gap: 14px;
  }

  .public-hero__inner {
    grid-template-columns: 1fr;
  }
}


/* 2026-05-06 visual cleanup */
.public-hero {
  position: relative;
  overflow: hidden;
  background: var(--page-background);
  padding: clamp(30px, 4.8vw, 62px) 0 clamp(82px, 9vw, 120px);
  border-bottom: 0 !important;
}

.public-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(100px, 11vw, 154px);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(246, 240, 231, 0) 0%, rgba(246, 240, 231, 0.14) 18%, rgba(246, 240, 231, 0.38) 40%, rgba(246, 240, 231, 0.78) 74%, rgba(246, 240, 231, 1) 100%);
}

.public-hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  filter: sepia(0.2) saturate(1.08) brightness(0.82);
  opacity: 0.78;
  transform: scale(1.01);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 86%, rgba(0, 0, 0, 0.99) 90%, rgba(0, 0, 0, 0.94) 92.5%, rgba(0, 0, 0, 0.74) 95%, rgba(0, 0, 0, 0.38) 97.2%, rgba(0, 0, 0, 0.08) 99%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 86%, rgba(0, 0, 0, 0.99) 90%, rgba(0, 0, 0, 0.94) 92.5%, rgba(0, 0, 0, 0.74) 95%, rgba(0, 0, 0, 0.38) 97.2%, rgba(0, 0, 0, 0.08) 99%, rgba(0, 0, 0, 0) 100%);
}

.public-hero__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center;
  transition: transform 180ms ease;
}

.public-hero::before {
  content: none;
}

.public-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(92px, 10vw, 140px);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(246, 240, 231, 0) 0%, rgba(246, 240, 231, 0.08) 10%, rgba(246, 240, 231, 0.28) 28%, rgba(246, 240, 231, 0.62) 58%, rgba(246, 240, 231, 1) 100%);
}

.public-hero > .container {
  position: relative;
  z-index: 2;
}

.public-hero__media {
  background: linear-gradient(145deg, rgba(255, 252, 247, 0.54), rgba(243, 232, 217, 0.46));
  border-color: rgba(92, 58, 34, 0.12);
  box-shadow: 0 14px 28px rgba(34, 20, 8, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.public-hero__copy .eyebrow,
.public-hero__copy .mini-meta {
  color: rgba(255, 247, 237, 0.92);
  font-weight: 600;
  text-shadow: 0 2px 5px rgba(56, 32, 16, 0.72), 0 1px 1px rgba(56, 32, 16, 0.54);
}

.public-hero__copy .lead {
  color: rgba(255, 247, 237, 0.94);
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(56, 32, 16, 0.74), 0 1px 1px rgba(56, 32, 16, 0.52);
}

.public-hero__copy p:not(.lead):not(.eyebrow) {
  color: rgba(255, 247, 237, 0.9);
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(56, 32, 16, 0.72), 0 1px 1px rgba(56, 32, 16, 0.5);
}

.public-hero__copy h1 {
  color: #fff7ed;
  font-weight: 800;
  text-shadow: 0 3px 10px rgba(56, 32, 16, 0.76), 0 1px 1px rgba(56, 32, 16, 0.58);
}

.brand-logo--header {
  clip-path: none;
}

.story-card__body h3 {
  font-size: 19px;
  line-height: 1.08;
}

.story-card--category .topic-editorial-cover,
.story-card--category .media-thumb {
  min-height: 128px;
  height: 128px;
}

.story-card--category .media-thumb img {
  aspect-ratio: auto;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.cards-grid--archive .story-card--category > .media-thumb,
.cards-grid--archive .story-card--category > .topic-editorial-cover {
  height: auto;
  min-height: 0;
}

.archive-type-card strong {
  font-size: clamp(30px, 4vw, 42px);
}

.gallery-cover-editor {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.gallery-cover-editor__preview {
  min-width: 0;
}

.gallery-cover-preview-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 251, 246, 0.92);
  aspect-ratio: 16 / 10;
}

.media-position-editor--gallery-current .gallery-cover-preview-frame {
  aspect-ratio: 4 / 3;
  min-height: 420px;
}

.gallery-cover-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-position-editor--gallery-current .media-thumb {
  min-height: 420px;
  height: 420px;
}

.media-position-editor--gallery-current .media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-position-editor__frame {
  touch-action: none;
  cursor: grab;
}

.media-position-editor.is-dragging .media-position-editor__frame {
  cursor: grabbing;
}

.media-position-editor__frame [data-cover-position-image] {
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.gallery-cover-editor__controls {
  display: grid;
  gap: 10px;
}

.inline-create-panel {
  margin: 10px 0 4px;
  border: 1px dashed rgba(127, 79, 44, 0.28);
  border-radius: 14px;
  background: rgba(255, 251, 246, 0.64);
  overflow: hidden;
}

.inline-create-panel summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 700;
  color: var(--brand-dark);
}

.inline-create-panel__body {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}
