.cards-grid {
  display: grid;
  gap: 12px;
}

.news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.publication-media-section {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.publication-media-section + .publication-media-section {
  margin-top: 36px;
}

.publication-media-section .video-stage,
.publication-media-section .audio-stage {
  margin: 0;
}

.cards-grid--one {
  grid-template-columns: minmax(0, 1fr);
}

.cards-grid--news {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards-grid--archive {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards-grid--archive .story-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.cards-grid--archive .story-card--category {
  position: static;
  min-height: 0;
  aspect-ratio: auto;
  color: var(--ink);
}

.cards-grid--archive .story-card--category > .media-thumb,
.cards-grid--archive .story-card--category > .topic-editorial-cover {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.cards-grid--archive .story-card--category > .media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cards-grid--archive .story-card--category .story-card__body {
  position: static;
  padding: 14px;
  color: var(--ink);
  background: transparent;
}

.cards-grid--archive .story-card__body {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.cards-grid--archive .story-card__footer-meta {
  align-self: end;
}

.cards-grid--archive .story-card--category .story-card__body h3,
.cards-grid--archive .story-card--category .story-card__body p,
.cards-grid--archive .story-card--category .mini-meta {
  color: inherit;
  text-shadow: none;
}

.cards-grid--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.story-card,
.news-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 251, 246, 0.92);
  overflow: hidden;
  box-shadow:
    0 10px 22px rgba(66, 36, 18, 0.05),
    0 3px 8px rgba(66, 36, 18, 0.025);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.story-card:hover,
.news-card:hover {
  transform: translateY(-2px);
  border-color: rgba(127, 79, 44, 0.28);
  box-shadow: var(--shadow);
}

.story-card__body,
.news-card {
  padding: 14px;
}

.news-card h3,
.story-card h3 {
  margin: 8px 0 6px;
  font-size: 18px;
  line-height: 1.12;
}

.news-card p,
.story-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.story-card__meta,
.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.story-card__footer-meta {
  margin-top: 10px;
  color: rgba(73, 47, 27, 0.62);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
}

.editions-shelf-section {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(127, 79, 44, 0.12);
  border-radius: 34px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.96), rgba(255, 251, 246, 0.82) 62%, rgba(247, 239, 228, 0.72));
  box-shadow: 0 22px 48px rgba(66, 36, 18, 0.08);
}

.editions-grid {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(14px, 3.2vw, 30px);
  max-width: 560px;
  min-height: 320px;
  margin: 14px auto 0;
  padding: 40px clamp(16px, 4vw, 34px) 62px;
}

.editions-grid::before {
  content: none;
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: min(100%, 560px);
  height: 210px;
  transform: translateX(-50%);
  background: url("prateleira.png") center bottom / contain no-repeat;
  pointer-events: none;
  z-index: 0;
}

.editions-grid__shelf {
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 0;
  width: min(100%, 560px);
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
}

.editions-grid__shelf--back {
  z-index: 0;
}

.editions-grid__shelf--front {
  z-index: 3;
}

.editions-grid::after {
  content: none;
  position: absolute;
  left: 50%;
  bottom: 82px;
  width: min(100%, 464px);
  height: 10px;
  transform: translateX(-50%);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(250, 223, 177, 0.96), rgba(190, 139, 79, 0.88));
  box-shadow: 0 8px 14px rgba(66, 36, 18, 0.12);
  pointer-events: none;
}

.editions-grid .story-card {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: clamp(108px, 17vw, 142px);
  margin-bottom: 60px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.editions-grid .story-card:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: none;
}

.editions-grid .story-card__body {
  display: none;
}

.edition-card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 210 / 297;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(127, 79, 44, 0.2);
  border-radius: 10px 14px 14px 10px;
  background: #fffdf9;
  box-shadow:
    12px 18px 30px rgba(66, 36, 18, 0.16),
    3px 4px 8px rgba(66, 36, 18, 0.08);
}

.edition-card-cover::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 16px;
  background:
    linear-gradient(90deg, rgba(48, 29, 15, 0.28), rgba(255, 255, 255, 0.08), transparent);
  z-index: 2;
  pointer-events: none;
}

.edition-card-cover::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 7px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(66, 36, 18, 0.12));
  z-index: 2;
  pointer-events: none;
}

.edition-card-cover canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.edition-card-cover--image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform-origin: center;
}

.edition-card-cover__fallback {
  position: absolute;
  inset: 0;
}

.edition-card-cover.is-ready .edition-card-cover__fallback {
  display: none;
}

.edition-card-cover:not(.is-ready) canvas {
  display: none;
}

.edition-card-cover--editorial .media-thumb {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  min-height: 0;
}

.edition-card-cover--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.edition-card-cover--editorial .media-thumb__fallback-logo {
  inset-block-start: 12%;
}

.edition-card-cover--editorial .media-thumb__fallback-copy {
  left: clamp(12px, 6cqw, 22px);
  right: clamp(12px, 6cqw, 22px);
  bottom: clamp(44px, 14cqw, 72px);
  gap: clamp(5px, 2cqw, 10px);
}

.edition-card-cover--editorial .media-thumb__fallback-copy span {
  font-size: clamp(6px, 3.2cqw, 14px);
}

.edition-card-cover--editorial .media-thumb__fallback-copy strong {
  font-size: clamp(10px, 6.4cqw, 24px);
}

.edition-card-cover--editorial .media-thumb__fallback-copy small {
  font-size: clamp(6px, 3.2cqw, 13px);
}

.media-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 0;
  overflow: hidden;
  background: #f4ebdf;
  container-type: inline-size;
}

.media-thumb.is-fallback {
  background:
    linear-gradient(145deg, rgba(92, 58, 34, 0.92), rgba(47, 29, 15, 0.96)),
    #2f1d0f;
}

.media-thumb--short {
  aspect-ratio: auto;
  min-height: 94px;
}

.media-thumb--tall {
  aspect-ratio: auto;
  min-height: 420px;
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.media-thumb__fallback {
  position: absolute;
  inset: 0;
  display: none;
  padding: clamp(10px, 5cqw, 18px);
  background:
    radial-gradient(circle at top left, rgba(255, 247, 237, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(92, 58, 34, 0.92), rgba(47, 29, 15, 0.96));
  color: #fff7ed;
  text-align: left;
}

.media-thumb--force-fallback .media-thumb__fallback,
.media-thumb.is-fallback .media-thumb__fallback {
  display: grid;
}

.media-thumb__fallback-logo {
  position: absolute;
  inset: 32% auto auto 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(44px, 26cqw, 320px);
  min-height: clamp(32px, 18cqw, 220px);
  z-index: 1;
  pointer-events: none;
}

.media-thumb__fallback-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.media-thumb__fallback-copy {
  position: absolute;
  left: clamp(10px, 5cqw, 18px);
  right: clamp(10px, 5cqw, 18px);
  bottom: clamp(10px, 5cqw, 18px);
  align-self: end;
  display: grid;
  gap: clamp(2px, 1.2cqw, 5px);
  z-index: 2;
}

.media-thumb__fallback-copy span {
  color: rgba(255, 247, 237, 0.72);
  font-size: clamp(5px, 2.4cqw, 22px);
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.media-thumb__fallback-copy strong {
  color: #fff7ed;
  font-family: "Arvo Local", Georgia, serif;
  font-size: clamp(7px, 5.2cqw, 54px);
  line-height: 1.06;
}

.media-thumb__fallback-copy small {
  color: rgba(255, 247, 237, 0.74);
  font-size: clamp(5px, 2.9cqw, 30px);
  line-height: 1.45;
}

.media-thumb--compact .media-thumb__fallback-copy {
  gap: 1px;
}

.media-thumb--compact .media-thumb__fallback-logo {
  inset-block-start: 30%;
}

.media-thumb--compact .media-thumb__fallback-copy span {
  font-size: clamp(4px, 2.5cqw, 8px);
}

.media-thumb--compact .media-thumb__fallback-copy strong {
  font-size: clamp(6px, 5cqw, 13px);
}

.media-thumb--compact .media-thumb__fallback-copy small {
  font-size: clamp(4px, 2.7cqw, 8px);
}

.media-thumb__fallback--video {
  background:
    radial-gradient(circle at top left, rgba(255, 247, 237, 0.14), transparent 36%),
    linear-gradient(145deg, rgba(104, 67, 40, 0.98), rgba(54, 32, 18, 0.99));
}

.media-thumb__fallback--photo {
  background:
    radial-gradient(circle at top left, rgba(224, 241, 215, 0.18), transparent 36%),
    linear-gradient(145deg, rgba(87, 92, 56, 0.97), rgba(48, 55, 33, 0.99));
}

.media-thumb__fallback--audio {
  background:
    radial-gradient(circle at top left, rgba(255, 233, 181, 0.17), transparent 36%),
    linear-gradient(145deg, rgba(126, 92, 45, 0.98), rgba(68, 43, 19, 0.99));
}

.media-thumb__fallback--document {
  background:
    radial-gradient(circle at top left, rgba(255, 226, 196, 0.24), transparent 34%),
    linear-gradient(145deg, rgba(194, 109, 52, 0.96), rgba(121, 61, 16, 0.99));
}

.media-thumb__fallback--publication {
  background:
    radial-gradient(circle at top left, rgba(255, 245, 233, 0.12), transparent 36%),
    linear-gradient(145deg, rgba(106, 61, 32, 0.98), rgba(73, 41, 21, 0.99));
}

.media-thumb__fallback--publication .media-thumb__fallback-logo {
  inset: 14px 14px auto auto;
  transform: none;
  width: 70px;
  min-height: 0;
  justify-content: flex-end;
}

.media-thumb__fallback--publication .media-thumb__fallback-copy {
  left: 14px;
  right: 14px;
  bottom: 14px;
}

.media-thumb__fallback--publication .media-thumb__fallback-copy span {
  color: rgba(255, 244, 231, 0.8);
}

.media-thumb__fallback--publication .media-thumb__fallback-copy strong {
  font-size: clamp(7px, 5.4cqw, 19px);
  text-shadow: 0 1px 0 rgba(38, 22, 11, 0.5), 0 0 10px rgba(38, 22, 11, 0.22);
}

.media-thumb__fallback--publication .media-thumb__fallback-copy small {
  color: rgba(255, 244, 231, 0.82);
}

.media-thumb .memory-scene {
  height: 100%;
  min-height: inherit;
  border-radius: 0;
}

.compact-target {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.compact-target strong {
  font-size: 13px;
  line-height: 1.3;
}

.home-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.mini-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  min-height: 0;
  padding: 12px 14px;
  border: 1px solid rgba(92, 58, 34, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.mini-panel strong {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mini-panel span {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-compact {
  display: grid;
  gap: 10px;
  align-content: start;
}

.dashboard-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(245, 235, 222, 0.92));
  box-shadow: var(--shadow-soft);
}

.dashboard-summary__copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.dashboard-summary__copy h2,
.dashboard-summary__copy p {
  margin: 0;
}

.dashboard-summary__copy h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.02;
}

.dashboard-summary__copy p:last-child {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.dashboard-summary__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.dashboard-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.dashboard-strip--secondary .mini-panel {
  background: rgba(250, 245, 238, 0.72);
}

.dashboard-compact button {
  width: auto;
  height: auto;
  text-align: left;
  align-self: flex-start;
}

.dashboard-strip .mini-panel,
.stats-grid .stat-card {
  flex: 1 1 220px;
  max-width: calc(25% - 8px);
}

.stack-list {
  display: grid;
  gap: 10px;
}

.stack-link {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.92);
  box-shadow: 0 8px 20px rgba(66, 36, 18, 0.04);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.stack-link:hover {
  transform: translateY(-1px);
  border-color: rgba(127, 79, 44, 0.22);
  box-shadow: 0 14px 28px rgba(66, 36, 18, 0.06);
}

.stack-link strong {
  font-size: 14px;
  line-height: 1.25;
}

.stack-link span {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.stack-link small {
  color: rgba(72, 45, 24, 0.68);
  font-size: 12px;
  line-height: 1.45;
}

.stack-link--button {
  width: 100%;
  text-align: left;
}

.stack-link--button.is-selected {
  border-color: rgba(127, 79, 44, 0.26);
  background: rgba(230, 208, 180, 0.28);
}

.stack-link--topic-cover {
  gap: 10px;
  padding: 0;
  overflow: hidden;
}

.stack-link--topic-cover .topic-editorial-cover,
.stack-link--topic-cover .media-thumb {
  min-height: 128px;
  height: 128px;
  aspect-ratio: auto;
}

.stack-link--topic-cover--plain {
  background: linear-gradient(180deg, #6a3d20 0%, #4f2b16 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff7ee;
}

.stack-link--topic-cover--plain > small {
  color: rgba(255, 248, 238, 0.78);
}

.stack-link--topic-cover--plain .topic-editorial-cover__copy span {
  color: rgba(255, 248, 238, 0.72);
}

.stack-link--topic-cover--plain .topic-editorial-cover__copy strong {
  color: #fffaf4;
  text-shadow: 0 1px 0 rgba(49, 26, 12, 0.48), 0 0 10px rgba(49, 26, 12, 0.26);
}

.stack-link--topic-cover--plain .topic-editorial-cover__copy small {
  color: rgba(255, 248, 238, 0.88);
}

.stack-link--topic-cover .topic-editorial-cover {
  border: 0;
  border-radius: 8px 8px 0 0;
  box-shadow: none;
}

.stack-link--topic-cover .media-thumb__fallback {
  min-height: 128px;
}

.stack-link--topic-cover .topic-editorial-cover small {
  padding: 0;
}

.stack-link--topic-cover > small {
  display: block;
  padding: 0 12px 12px;
  color: var(--ink-faint);
}

.stack-link__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  width: 100%;
  margin-top: 2px;
  grid-column: 1 / -1;
}

.stack-link__controls--photo {
  align-self: center;
  margin-top: 0;
}

.stack-order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stack-order-button svg {
  transition: transform 160ms ease;
}

.stack-order-button[data-move-direction="up"] svg {
  transform: rotate(-90deg);
}

.stack-order-button[data-move-direction="down"] svg {
  transform: rotate(90deg);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  color: var(--ink-soft);
  font-size: 13px;
}

.check-option input {
  width: 16px;
  height: 16px;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: transparent;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
}

.native-video::-webkit-media-controls-panel {
  background: transparent;
}

.video-frame__empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 247, 241, 0.8);
  font-size: 14px;
}

.native-audio {
  width: 100%;
  margin-top: 18px;
}

.qr-brand {
  position: relative;
  display: grid;
  place-items: center;
  width: 176px;
  margin: 0 auto 12px;
}

.qr-brand__svg,
.qr-brand .qr-visual {
  width: 176px;
  height: 176px;
}

.qr-brand__svg {
  display: block;
}

.qr-brand__logo {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.96);
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 16px rgba(34, 20, 8, 0.12);
}

@media (max-width: 920px) {
  .news-grid,
  .cards-grid--two,
  .cards-grid--three,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
}

/* Plataforma editorial v2 */
.site-header__inner {
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 74px;
  gap: 28px;
}

.brand-lockup {
  max-width: none;
  margin-left: 0;
  gap: 12px;
}

.brand-logo--header {
  width: clamp(156px, 13vw, 206px);
  clip-path: none;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy small {
  color: rgba(246, 232, 212, 0.78);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.nav-link {
  min-height: 42px;
  padding: 0 14px;
}

.public-hero {
  width: 100%;
  padding: clamp(38px, 6vw, 82px) 0;
  background:
    linear-gradient(90deg, rgba(47, 29, 15, 0.9), rgba(80, 50, 28, 0.72)),
    linear-gradient(0deg, rgba(247, 239, 229, 0.16), rgba(247, 239, 229, 0.16)),
    var(--hero-backdrop-image, none) center/cover no-repeat,
    linear-gradient(90deg, rgba(47, 29, 15, 0.9), rgba(80, 50, 28, 0.72)),
    var(--paper-strong);
  color: #fff7ed;
}

.public-hero__inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
}

.public-hero__media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(260px, 34vw, 470px);
  padding: clamp(18px, 4vw, 42px);
  border: 1px solid rgba(255, 246, 234, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 250, 244, 0.92), rgba(235, 216, 190, 0.92));
  box-shadow: 0 28px 80px rgba(19, 9, 4, 0.28);
  text-decoration: none;
}

.public-hero__media img {
  width: min(100%, 440px);
  max-height: 420px;
  object-fit: contain;
}

.public-hero__poster {
  display: grid;
  align-content: end;
  gap: 16px;
  width: 100%;
  min-height: clamp(260px, 34vw, 470px);
  padding: clamp(24px, 4vw, 34px);
  background:
    linear-gradient(180deg, rgba(43, 25, 12, 0.22), rgba(43, 25, 12, 0.92)),
    linear-gradient(140deg, rgba(255, 252, 247, 0.38), rgba(197, 146, 79, 0.14));
}

.public-hero__poster-logo {
  width: min(100%, 152px);
  margin-top: -8px;
}

.public-hero__poster .brand-logo--header {
  width: 100%;
}

.public-hero__poster-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.public-hero__poster h2 {
  margin: 0;
  color: #fffaf4;
  font-family: "Arvo Local", Georgia, serif;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.06;
}

.public-hero__poster p {
  margin: 0;
  color: rgba(255, 247, 237, 0.82);
  font-size: 13px;
  line-height: 1.45;
}

.audio-feature-cover {
  display: grid;
  align-content: end;
  gap: 16px;
  min-height: clamp(260px, 34vw, 470px);
  padding: clamp(24px, 4vw, 34px);
  background:
    radial-gradient(circle at top left, rgba(255, 247, 237, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(43, 25, 12, 0.22), rgba(43, 25, 12, 0.92)),
    linear-gradient(145deg, rgba(79, 53, 37, 0.94), rgba(34, 21, 12, 0.98));
}

.audio-feature-cover__logo {
  width: min(100%, 168px);
}

.audio-feature-cover__logo .brand-logo--header {
  width: 100%;
}

.audio-feature-cover__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.audio-feature-cover h2 {
  margin: 0;
  color: #fffaf4;
  font-family: "Arvo Local", Georgia, serif;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.06;
}

.audio-feature-cover p {
  margin: 0;
  color: rgba(255, 247, 237, 0.82);
  font-size: 13px;
  line-height: 1.45;
}

.audio-player-shell {
  display: grid;
  gap: 14px;
  margin: 18px 0 8px;
  padding: 16px 18px;
  border: 1px solid rgba(127, 79, 44, 0.16);
  border-radius: 16px;
  background: rgba(255, 252, 247, 0.88);
}

.audio-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #09111b;
  isolation: isolate;
}

.video-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: transparent;
}

.video-stage__player {
  position: absolute;
  inset: 0;
}

.video-stage__player iframe,
.video-stage__player video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
  background: #d2cec8;
}

.video-stage__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease;
}

.video-stage.is-loading .video-stage__loading {
  opacity: 1;
}

.video-stage__spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
  animation: video-loader-pulse 1s ease-in-out infinite;
}

.video-stage.is-ready .video-stage__poster {
  opacity: 0;
  pointer-events: none;
}

.audio-stage__cover {
  position: absolute;
  inset: 0;
}

.audio-stage__cover .media-thumb {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
}

.audio-stage__cover .media-thumb__fallback,
.audio-stage__cover .media-thumb img {
  width: 100%;
  height: 100%;
}

.audio-stage__poster,
.video-stage__poster {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.audio-stage__poster .media-thumb,
.video-stage__poster .media-thumb {
  aspect-ratio: 16 / 9;
  height: 100%;
  min-height: 0;
}

.audio-stage.is-started .audio-stage__cover .media-thumb__fallback-logo {
  opacity: 0;
  transform: scale(0.92);
}

.audio-stage__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: clamp(18px, 3vw, 30px);
  background: transparent;
  pointer-events: none;
}

.audio-stage.is-started .audio-stage__overlay {
  background:
    radial-gradient(circle at center, rgba(255, 247, 237, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(3, 8, 16, 0), rgba(3, 8, 16, 0.1) 34%, rgba(3, 8, 16, 0.64));
  pointer-events: auto;
}

.audio-stage__play,
.video-stage__play {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: rgba(27, 16, 8, 0.42);
  color: #fff7ed;
  transform: translate(-50%, -50%);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

@keyframes video-loader-pulse {
  0%, 100% {
    transform: scale(0.72);
    opacity: 0.56;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

.video-stage__play {
  background: rgba(27, 16, 8, 0.26);
}

.audio-stage__play svg,
.video-stage__play svg {
  width: 26px;
  height: 26px;
}

.audio-visualizer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  align-self: center;
  gap: 3px;
  width: min(72%, 520px);
  min-height: 74px;
  padding: 0;
  opacity: 0;
  transform: translateY(6%) scale(0.96);
  transition: opacity 180ms ease, transform 180ms ease;
}

.audio-stage.is-started .audio-visualizer {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.audio-visualizer::before {
  display: none;
}

.audio-visualizer span {
  position: relative;
  z-index: 1;
  flex: 0 0 5px;
  max-width: 5px;
  min-width: 5px;
  height: 68px;
  border-radius: 999px;
  background: transparent;
  opacity: 1;
  overflow: hidden;
}

.audio-visualizer span::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 50%;
  top: 50%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0.88));
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.36);
  opacity: 0.86;
  transform-origin: center;
  transform: scaleY(var(--bar-scale, 0.45));
  animation: audioWave var(--bar-duration, 1.8s) cubic-bezier(0.42, 0, 0.22, 1) infinite;
  animation-delay: var(--bar-delay, 0s);
  animation-play-state: paused;
}

.audio-stage.is-playing .audio-visualizer span::before {
  opacity: 1;
  animation-play-state: running;
}

.audio-stage.is-started .audio-stage__poster {
  display: none;
}

.native-audio--feature {
  width: 100%;
  align-self: end;
  position: relative;
  z-index: 3;
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.96);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.audio-stage.is-started .native-audio--feature {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@keyframes audioWave {
  0%,
  100% {
    transform: scaleY(calc(var(--bar-scale, 0.45) * 0.62));
  }
  28% {
    transform: scaleY(calc(var(--bar-scale, 0.45) * 1.08));
  }
  52% {
    transform: scaleY(calc(var(--bar-scale, 0.45) * 1.38));
  }
  76% {
    transform: scaleY(calc(var(--bar-scale, 0.45) * 0.88));
  }
}

.public-hero__media-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(34, 20, 8, 0.78);
  color: #fffaf4;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.public-hero__copy {
  max-width: 720px;
}

.public-hero__copy .eyebrow,
.public-hero__copy .lead,
.public-hero__copy p {
  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: 12px 0 16px;
  color: #fff7ed;
  font-family: "Arvo Local", Georgia, serif;
  font-size: clamp(38px, 4.4vw, 66px);
  text-shadow: 0 3px 10px rgba(194, 168, 131, 0.78), 0 0 1px rgba(255, 249, 240, 0.34);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.42;
}

.section--tinted {
  background: rgba(239, 226, 208, 0.56);
}

.section--compact {
  padding-top: 28px;
}

.section-header {
  align-items: end;
}

.section-header h2,
.page-title h1,
.detail-copy h1 {
  margin: 6px 0 0;
  font-family: "Arvo Local", Georgia, serif;
  letter-spacing: 0;
}

.section-header p {
  max-width: 620px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.editorial-split {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: start;
}

.editorial-split p {
  color: var(--ink-soft);
  line-height: 1.7;
}

.cards-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.news-card__body {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.story-card--plain {
  padding: 0;
}

.archive-type-card {
  display: grid;
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 244, 0.9);
  box-shadow: var(--shadow-soft);
}

.archive-type-card span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-type-card strong {
  margin-top: 18px;
  font-family: "Arvo Local", Georgia, serif;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 0.9;
}

.archive-type-card p {
  align-self: end;
  margin: 20px 0 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.page-title {
  max-width: 860px;
  margin-bottom: 28px;
}

.page-title p,
.detail-copy p {
  color: var(--ink-soft);
  line-height: 1.72;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
}

.archive-navigator {
  display: grid;
  gap: 0;
  margin-bottom: 26px;
}

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

.archive-navigator--sticky {
  position: sticky;
  top: 56px;
  z-index: 18;
  margin: -8px -22px 26px;
  padding: 8px 22px 16px;
  border-bottom: 1px solid rgba(214, 191, 160, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(247, 239, 229, 0.96)),
    var(--paper);
  backdrop-filter: blur(10px);
}

.category-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(58, 34, 18, 0.36);
  border-radius: 999px;
  background: rgba(61, 36, 18, 0.94);
  color: #fff8ee;
  font-weight: 700;
}

.category-strip--admin {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-strip--admin button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.86);
  color: var(--brand-dark);
  font-weight: 700;
}

.category-strip a.is-active {
  background: rgba(122, 84, 58, 0.96);
  border-color: rgba(61, 36, 18, 0.4);
}

.category-strip a svg,
.category-strip--admin button svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: block;
  align-self: center;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.category-strip--admin button.is-active {
  background: rgba(92, 58, 34, 0.12);
  border-color: rgba(127, 79, 44, 0.3);
}

.archive-topic-band,
.topic-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.archive-subtopic-band,
.subtopic-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.archive-topic-band {
  margin-bottom: 26px;
}

.archive-subtopic-band {
  margin: -8px 0 22px;
}

.archive-topic-band--categories {
  margin-top: -10px;
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(127, 79, 44, 0.22);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.9);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topic-chip.is-active {
  background: rgba(92, 58, 34, 0.12);
  border-color: rgba(127, 79, 44, 0.32);
}

.topic-chip svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: block;
  align-self: center;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.subtopic-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(127, 79, 44, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: rgba(92, 58, 34, 0.78);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.subtopic-chip.is-active {
  border-color: rgba(127, 79, 44, 0.24);
  background: rgba(236, 225, 211, 0.72);
  color: var(--brand-dark);
}

.archive-subtopic-band--edition-context {
  margin: -8px 0 16px;
}

.subtopic-chip--context {
  background: rgba(236, 225, 211, 0.72);
  border-color: rgba(127, 79, 44, 0.24);
  color: var(--brand-dark);
}

.subtopic-chip svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.archive-group {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.archive-group__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.archive-group__header h2 {
  margin: 0;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.archive-group__header span {
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-subgroup {
  display: grid;
  gap: 16px;
  padding-top: 6px;
}

.detail-hero-image,
.edition-cover {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: clamp(18px, 4vw, 36px);
  background: linear-gradient(145deg, #fffaf4, #ead9c2);
}

.detail-hero-image img,
.edition-cover img {
  max-height: 430px;
  object-fit: contain;
}

.detail-copy {
  padding: clamp(24px, 4vw, 44px);
}

.pdf-placeholder,
.edition-pdf-reader,
.document-link {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  padding: 18px;
  border: 1px dashed rgba(127, 79, 44, 0.38);
  border-radius: 8px;
  background: rgba(246, 240, 231, 0.72);
  color: var(--brand-dark);
}

.edition-pdf-reader {
  gap: 14px;
  border-style: solid;
  border-radius: 18px;
  background: rgba(255, 251, 246, 0.86);
}

.edition-pdf-reader__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.edition-pdf-reader__header strong {
  color: var(--brand-dark);
  font-family: "Arvo Local", Georgia, serif;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.08;
}

.edition-pdf-reader__header div {
  display: grid;
  gap: 4px;
}

.edition-pdf-reader__header span {
  color: var(--ink-soft);
  max-width: 760px;
  font-size: 15px;
  line-height: 1.65;
}

.edition-pdf-reader__viewport {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 720px);
  aspect-ratio: 210 / 297;
  max-height: calc(100vh - 210px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(127, 79, 44, 0.18);
  border-radius: 14px;
  background: #fff;
}

.edition-pdf-reader__side {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(127, 79, 44, 0.18);
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.92);
  color: var(--brand-dark);
  box-shadow: 0 12px 26px rgba(66, 36, 18, 0.12);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    transform 160ms ease,
    opacity 160ms ease,
    box-shadow 160ms ease;
}

.edition-pdf-reader__side:hover {
  transform: translateY(-50%) scale(1.04);
  box-shadow: 0 16px 30px rgba(66, 36, 18, 0.16);
}

.edition-pdf-reader__side:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.edition-pdf-reader__side svg {
  width: 18px;
  height: 18px;
}

.edition-pdf-reader__side--prev {
  left: -23px;
}

.edition-pdf-reader__side--prev svg {
  transform: rotate(180deg);
}

.edition-pdf-reader__side--next {
  right: -23px;
}

.edition-pdf-reader canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  background: #fff;
}

.edition-pdf-reader__fallback {
  display: none;
  place-items: center;
  gap: 10px;
  min-height: 220px;
  padding: 24px;
  color: var(--ink-soft);
  text-align: center;
}

.edition-pdf-reader.is-loading .edition-pdf-reader__viewport {
  opacity: 0.72;
}

.edition-pdf-reader.is-pdf-error canvas {
  display: none;
}

.edition-pdf-reader.is-pdf-error .edition-pdf-reader__fallback {
  display: grid;
}

.edition-pdf-reader__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 760px) {
  .edition-pdf-reader__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .edition-pdf-reader__side {
    width: 40px;
    height: 40px;
  }

  .edition-pdf-reader__side--prev {
    left: 8px;
  }

  .edition-pdf-reader__side--next {
    right: 8px;
  }
}

.edition-pdf-reader__controls label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.edition-pdf-reader__controls input {
  width: 74px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 800;
  text-align: center;
}

.hero-actions--after-edition-reader {
  justify-content: center;
  margin-top: 22px;
}

.document-link {
  display: inline-grid;
  font-weight: 800;
}

.soft-note {
  margin: 10px 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fffaf4;
  color: var(--ink);
  text-align: left;
  aspect-ratio: 4 / 3;
}

.gallery-item > .media-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.gallery-item__media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f4ebdf;
}

.gallery-item__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.gallery-item__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.gallery-item .media-thumb {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.gallery-item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 14px 12px;
  color: #fffaf4;
  font-size: 13px;
  line-height: 1.45;
  background: linear-gradient(180deg, rgba(15, 8, 4, 0) 0%, rgba(15, 8, 4, 0.24) 22%, rgba(15, 8, 4, 0.82) 100%);
  text-shadow: 0 1px 2px rgba(15, 8, 4, 0.38);
  z-index: 1;
}

.gallery-item__media .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
}

.gallery-item--hero {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.gallery-item--hero .media-thumb {
  border-radius: 0;
}

.events-list {
  display: grid;
  gap: 14px;
}

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

.event-card a,
.event-wide a {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.event-card span,
.event-wide span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.event-card h3,
.event-wide h2 {
  margin: 0;
  font-family: "Arvo Local", Georgia, serif;
  letter-spacing: 0;
}

.event-card p,
.event-wide p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.event-wide a {
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
}

.event-wide.has-cover a {
  grid-template-columns: 148px 82px minmax(0, 1fr);
}

.event-cover .media-thumb {
  min-height: 112px;
  border-radius: 10px;
}

.event-date {
  display: grid;
  place-items: center;
  width: 70px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--brand-dark);
  color: #fff7ed;
}

.event-date strong {
  font-size: 26px;
  line-height: 1;
}

.event-date span {
  color: #fff7ed;
}

.footer-logo {
  width: 150px;
  filter: sepia(0.2) saturate(0.8);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.footer-socials a {
  padding: 8px 12px;
  border: 1px solid rgba(92, 58, 34, 0.22);
  border-radius: 999px;
  color: var(--brand-dark);
  font-weight: 800;
}

.footer__logos img {
  max-height: 92px;
  object-fit: contain;
  filter: sepia(0.95) saturate(0.65) brightness(0.7);
  opacity: 0.86;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(22, 12, 6, 0.88);
  backdrop-filter: blur(4px);
}

.lightbox-dialog {
  position: relative;
  width: min(1120px, 100%);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 247, 237, 0.34);
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.16);
  color: #fff7ed;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  fill: none;
}

.lightbox-viewer {
  overflow: hidden;
  border: 1px solid rgba(255, 247, 237, 0.1);
  border-radius: 8px;
  background: rgba(32, 19, 11, 0.96);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.lightbox-viewer__top {
  display: grid;
  gap: 10px;
  padding: 22px 96px 0 24px;
}

.lightbox-viewer__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 247, 237, 0.76);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lightbox-viewer__meta strong {
  position: relative;
  z-index: 1;
  padding: 3px 10px;
  border: 1px solid rgba(255, 247, 237, 0.18);
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.08);
  white-space: nowrap;
}

.lightbox-viewer__title h2 {
  margin: 0;
  color: #fff7ed;
  font-family: "Arvo Local", Georgia, serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.02;
}

.lightbox-viewer__title p,
.lightbox-viewer__caption p {
  margin: 8px 0 0;
  color: rgba(255, 247, 237, 0.8);
  line-height: 1.6;
}

.lightbox-viewer__stage {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 14px;
  padding: 18px 20px 20px;
  touch-action: pan-y;
}

.lightbox-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 247, 237, 0.34);
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.16);
  color: #fff7ed;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.lightbox-nav svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.lightbox-viewer__figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62vh;
  max-height: 72vh;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 252, 247, 0.04);
}

.lightbox-viewer__figure img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
}

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

.admin-shell {
  min-height: 100vh;
  background: #f4eadc;
}

.admin-sidebar__header {
  display: grid;
  gap: 4px;
  color: #fff4e4;
}

.admin-sidebar__header img {
  width: 92px;
  margin-bottom: 8px;
  filter: brightness(0) saturate(100%) invert(93%) sepia(18%) saturate(309%) hue-rotate(334deg) brightness(103%) contrast(92%);
}

.admin-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(255, 244, 228, 0.78);
  font-weight: 800;
}

.admin-nav a.is-active,
.admin-nav a:hover {
  border-color: rgba(255, 244, 228, 0.2);
  background: rgba(255, 244, 228, 0.12);
  color: #fff4e4;
}

.admin-grid--wide {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
}

.admin-card {
  padding: clamp(18px, 2vw, 24px);
  overflow: hidden;
}

.editor-form {
  display: grid;
  gap: 14px;
}

.field span {
  display: block;
  margin-bottom: 6px;
}

.check-option--wide {
  justify-content: flex-start;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-list-title {
  margin: 20px 0 6px;
  color: var(--brand-dark);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf4;
}

.admin-list-row div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-list-row strong,
.admin-list-row span,
.qr-admin-card code {
  overflow-wrap: anywhere;
}

.danger-button {
  border-color: rgba(139, 43, 28, 0.24);
  color: #8b2b1c;
}

.qr-groups {
  display: grid;
  gap: 20px;
}

.qr-group {
  display: grid;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.qr-group h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  color: var(--brand-dark);
  font-size: 15px;
}

.qr-group h3 span {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(127, 79, 44, 0.12);
  color: var(--brand-dark);
}

.qr-admin-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.qr-admin-card__body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.qr-admin-card__body p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.qr-admin-card__body code,
.link-box code {
  display: block;
  max-width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: rgba(47, 29, 15, 0.06);
  color: var(--brand-dark);
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
}

.qr-assign-form {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.form-actions--tight {
  justify-content: start;
}

.qr-brand {
  width: 174px;
  min-width: 0;
}

.qr-brand canvas {
  width: 174px !important;
  height: 174px !important;
  border-radius: 8px;
}

.qr-brand__logo {
  width: 38px;
  height: 38px;
  padding: 5px;
}

.qr-brand__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.link-box {
  margin-top: 18px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 60px;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: rgba(22, 12, 6, 0.86);
}

.lightbox figure {
  display: grid;
  gap: 12px;
  margin: 0;
  justify-items: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.lightbox figcaption {
  color: #fff7ed;
  text-align: center;
}

.lightbox button {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.9);
  color: var(--brand-dark);
  font-size: 34px;
  line-height: 1;
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
}

.lightbox__nav {
  width: 52px;
  height: 52px;
}

@media (max-width: 1180px) {
  .brand-copy small {
    display: none;
  }

  .cards-grid--four,
  .cards-grid--five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .site-header__inner {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 0 12px;
  }

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

  .brand-copy {
    --brand-copy-size: 18px;
  }

  .site-nav {
    justify-self: start;
    overflow-x: auto;
    width: 100%;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .nav-link {
    flex: 0 0 auto;
  }

  .public-hero__inner,
  .editorial-split,
  .admin-grid--wide,
  .qr-admin-card {
    grid-template-columns: 1fr;
  }

  .public-hero__copy h1 {
    font-size: clamp(34px, 10vw, 52px);
  }

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

  .event-wide a {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(var(--max), calc(100% - 24px));
  }

  .brand-lockup {
    gap: 12px;
  }

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

  .brand-copy strong {
    white-space: normal;
  }

  .public-hero {
    padding: 28px 0 40px;
  }

  .public-hero__media {
    min-height: 220px;
  }

  .cards-grid--four,
  .cards-grid--five,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .detail-copy {
    padding: 20px;
  }

  .admin-list-row {
    grid-template-columns: 1fr;
  }

  .table-actions,
  .form-actions {
    justify-content: start;
  }

  .lightbox {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    padding: 14px;
  }

  .lightbox__nav {
    width: 40px;
    height: 40px;
  }
}
