:root {
  --bg: #061014;
  --panel: #0b1619;
  --panel-strong: #050b0d;
  --text: #d6c9b1;
  --muted: #9f927c;
  --gold: #b88a3d;
  --gold-light: #e0bc71;
  --line: rgba(184, 138, 61, .45);
  --line-soft: rgba(184, 138, 61, .2);
  --shadow: rgba(0, 0, 0, .55);
}

/* =========================================================
   1. Base Layout + Global Defaults
   ========================================================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 50% 0, #162126 0, #071115 45%, #03080a 100%);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: .02em;
}

a {
  color: var(--gold-light);
  text-decoration: none;
}

.container {
  width: min(1360px, 94vw);
  margin: auto;
}

.narrow {
  width: min(920px, 90vw);
}

.site-shell {
  min-height: 100vh;
  border-left: 1px solid rgba(184, 138, 61, .12);
  border-right: 1px solid rgba(184, 138, 61, .12);
}

/* =========================================================
   2. Header + Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 92px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 52px;
  background: rgba(3, 8, 10, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  min-width: 290px;
  color: #f4ead8;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-light);
  font-size: 31px;
  box-shadow: inset 0 0 0 5px rgba(184, 138, 61, .08);
}

.brand strong,
.footer-brand strong {
  display: block;
  letter-spacing: .13em;
  line-height: .9;
}

.brand strong {
  font-size: 34px;
}

.brand small,
.footer-brand small {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .18em;
}

.brand small {
  font-size: 12px;
}

.main-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 28px;
}

.main-nav a {
  padding: 35px 0 29px;
  border-bottom: 2px solid transparent;
  color: #c9bda8;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

.search-box,
.mini-form {
  display: flex;
  border: 1px solid var(--line);
}

.search-box {
  height: 42px;
  background: rgba(0, 0, 0, .2);
}

.search-box input,
.mini-form input {
  background: transparent;
  border: 0;
  color: var(--text);
}

.search-box input {
  width: 220px;
  padding: 0 14px;
}

.search-box button,
.mini-form button {
  background: transparent;
  border: 0;
  color: var(--gold-light);
  padding: 0 12px;
}

.header-icons {
  display: flex;
  gap: 24px;
  color: var(--gold-light);
  font-size: 22px;
}

.nav-toggle {
  display: none;
}

/* =========================================================
   3. Hero Header Image + Intro Text
   ========================================================= */
.hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border-bottom: 1px solid rgba(184, 138, 61, .25);
  background-image: url('../images/hero/eryndor-hero.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 62% 34%, rgba(224, 188, 113, .18), transparent 18%),
    linear-gradient(90deg, rgba(4, 10, 12, .92), rgba(4, 10, 12, .25), rgba(4, 10, 12, .85));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(700px, 90vw);
  padding: 135px 0 80px 8vw;
  text-align: center;
}

.eyebrow {
  color: var(--gold-light);
  font-size: 21px;
  text-transform: uppercase;
  letter-spacing: .24em;
}

.hero h1 {
  margin: 20px 0;
  color: #f5efe5;
  font-size: 92px;
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: .07em;
  text-shadow: 0 5px 20px #000;
}

.hero p:not(.eyebrow) {
  color: #d7cbb7;
  font-size: 21px;
  line-height: 1.45;
}

/* =========================================================
   4. Shared Decorative Elements
   ========================================================= */
.ornament {
  position: relative;
  width: 300px;
  height: 1px;
  margin: 28px auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.ornament::after {
  content: '✥';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0 10px;
  background: var(--bg);
  color: var(--gold-light);
}

.ornament.left {
  margin-left: 0;
}

.btn {
  display: inline-block;
  margin-top: 26px;
  padding: 18px 38px;
  border: 1px solid var(--gold);
  background: rgba(0, 0, 0, .35);
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: .16em;
  box-shadow: 0 0 0 1px rgba(224, 188, 113, .08);
}

.image-placeholder {
  display: grid;
  place-items: center;
  border: 1px solid rgba(184, 138, 61, .28);
  background: linear-gradient(135deg, rgba(255, 255, 255, .04), rgba(0, 0, 0, .35));
  color: #d9cfbd;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Hide old card placeholder divs from the starter theme. */
.card-bg,
.feature-card .image-placeholder {
  display: none;
}

/* =========================================================
   5. Home Feature Cards
   Full-card background images are controlled by --card-bg.
   ========================================================= */
.feature-cards {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: -46px;
  margin-bottom: 28px;
}

.feature-card {
  --card-bg: none;
  --card-position: center center;

  position: relative;
  min-height: 235px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 24px;
  border: 1px solid var(--line);
  color: var(--text);
  background-image:
    linear-gradient(
      180deg,
      rgba(6, 16, 20, .78) 0%,
      rgba(6, 16, 20, .56) 45%,
      rgba(3, 8, 10, .88) 100%
    ),
    var(--card-bg);
  background-size: cover, cover;
  background-position: center center, var(--card-position);
  background-repeat: no-repeat, no-repeat;
  box-shadow: 0 16px 45px var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .03);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 8px;
  z-index: 4;
  border: 1px solid rgba(184, 138, 61, .25);
  pointer-events: none;
}

.feature-card > * {
  position: relative;
  z-index: 3;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-light);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .7), 0 0 24px rgba(184, 138, 61, .18);
}

.card-icon {
  margin-bottom: 26px;
  color: var(--gold-light);
  font-size: 32px;
}

.feature-card h2 {
  margin: 0 0 14px;
  color: #f0d08a;
  font-size: 20px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.feature-card p {
  max-width: 190px;
  margin: 0 0 14px;
  color: #c8bba5;
  font-size: 14px;
  line-height: 1.4;
}

.explore {
  margin-top: 0;
  color: var(--gold-light);
  font-size: 14px;
}
.card-resources {
  background-image:
    linear-gradient(
      180deg,
      rgba(2, 10, 12, 0.35) 0%,
      rgba(2, 10, 12, 0.72) 45%,
      rgba(2, 10, 12, 0.96) 100%
    ),
    url("../images/cards/resources-card.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 1400px) {
  .feature-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

@media (max-width: 560px) {
  .feature-cards {
    grid-template-columns: 1fr;
  }
}
.card-places {
  --card-bg: url('../images/cards/places.png');
}

.card-people {
  --card-bg: url('../images/cards/people.png');
}

.card-factions {
  --card-bg: url('../images/cards/factions.png');
}

.card-lore {
  --card-bg: url('../images/cards/lore.png');
}

.card-sessions {
  --card-bg: url('../images/cards/sessions.png');
}

/* =========================================================
   6. Quote Band
   ========================================================= */
.quote-band {
  margin-top: 0;
  padding: 18px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  color: #d3aa66;
  font-size: 19px;
  font-style: italic;
  text-align: center;
}

/* =========================================================
   Home Page: Recent Additions
   Displays recent pages as image-backed cards
   ========================================================= */

.recent {
  padding: 64px 0 72px;
}

.recent h2 {
  color: var(--gold2);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: normal;
  font-size: 28px;
  margin: 0;
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.recent-card {
  --recent-card-bg: none;

  position: relative;
  min-height: 210px;
  padding: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 16px 45px var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .03);

  background-image:
    linear-gradient(
      180deg,
      rgba(6, 16, 20, .55) 0%,
      rgba(6, 16, 20, .72) 48%,
      rgba(3, 8, 10, .96) 100%
    ),
    var(--recent-card-bg);

  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;

  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.recent-card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(184, 138, 61, .24);
  pointer-events: none;
  z-index: 1;
}

.recent-card > * {
  position: relative;
  z-index: 2;
}

.recent-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold2);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .7), 0 0 24px rgba(184, 138, 61, .18);
}

.recent-type {
  align-self: flex-start;
  display: inline-block;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  background: rgba(3, 8, 10, .58);
  padding: 4px 8px;
  color: var(--gold2);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .08em;
}

.recent-card h3 {
  color: #ead8b6;
  font-size: 20px;
  line-height: 1.15;
  margin: 0 0 12px;
}

.recent-card small {
  color: var(--muted);
  margin-bottom: 14px;
}

.recent-link {
  color: var(--gold2);
  font-size: 14px;
}

/* =========================================================
   8. Content, Session, and List Pages
   ========================================================= */
.content-page,
.session-page {
  padding: 76px 0;
}

.subtitle {
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

.prose {
  font-size: 18px;
  line-height: 1.7;
}

.prose h2,
.prose h3 {
  color: var(--gold-light);
}

.prose blockquote {
  padding: 10px 24px;
  border-left: 2px solid var(--gold);
  background: rgba(184, 138, 61, .06);
  font-style: italic;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.list-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  min-height: auto;
  padding: 30px;
}

.list-thumb {
  min-height: 130px;
}

.banner {
  height: 180px;
  margin: 20px 0 34px;
}

.session-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

/* =========================================================
   9. Footer
   ========================================================= */
.site-footer {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
  gap: 42px;
  padding: 50px 52px 28px;
  border-top: 1px solid var(--line);
  background: var(--panel-strong);
}

.footer-brand strong {
  font-size: 30px;
}

.footer-brand small {
  font-size: 11px;
}

.site-footer h4 {
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: .13em;
}

.mini-form {
  height: 40px;
}

.mini-form input {
  flex: 1;
  padding: 0 12px;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid rgba(184, 138, 61, .18);
  color: #786e60;
}

/* =========================================================
   10. Responsive Layout
   ========================================================= */
@media (max-width: 1100px) {
  .site-header {
    padding: 0 22px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 92px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 20px;
    background: var(--panel-strong);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
    padding: 10px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--gold-light);
  }

  .search-box,
  .header-icons {
    display: none;
  }

  .feature-cards,
  .recent-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-cards {
    margin-top: -32px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 64px;
  }

  .hero-content {
    padding-left: 5vw;
  }
}

@media (max-width: 700px) {
  .feature-cards,
  .recent-grid,
  .list-grid {
    grid-template-columns: 1fr;
  }

  .feature-cards {
    margin-top: 24px;
  }

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

  .brand {
    min-width: auto;
  }

  .brand strong {
    font-size: 24px;
  }

  .hero {
    min-height: 540px;
  }

  .hero-content {
    text-align: left;
  }

  .ornament {
    margin-left: 0;
  }

  .hero h1 {
    font-size: 48px;
  }
}

/* =========================================================
   11. Archive Page Hero
   Controls archive-page banner images, overlays, titles, and subtitles.
   ========================================================= */
.archive-hero {
  --archive-hero-bg: none;

  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 30px 0 30px;
  border-bottom: 1px solid rgba(184, 138, 61, .25);
  background:
    radial-gradient(circle at 50% 0, rgba(224, 188, 113, .08), transparent 28%),
    linear-gradient(180deg, rgba(8, 18, 21, .98), rgba(4, 10, 12, .94));
  background-image:
    linear-gradient(
      90deg,
      rgba(3, 8, 10, .55),
      rgba(3, 8, 10, .45),
      rgba(3, 8, 10, .55)
    ),
    linear-gradient(
      180deg,
      rgba(3, 8, 10, .30),
      rgba(3, 8, 10, .50)
    ),
    var(--archive-hero-bg);
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
}

.archive-hero.has-bg {
  background-image:
    linear-gradient(180deg, rgba(3, 8, 10, .4), rgba(3, 8, 10, .45)),
    var(--archive-hero-bg);
  background-size: cover, cover;
  background-position: center, center;
}

.archive-hero__inner {
  position: relative;
  z-index: 2;
  padding: 0px 0;
  text-align: center;
}

.archive-kicker,
.archive-card__label {
  color: var(--gold2);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
}

.archive-kicker {
  letter-spacing: .22em;
  font-size: 14px;
}

.archive-hero h1 {
  margin: 16px 0;
  color: #f5efe5;
  font-size: 64px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: normal;
}

.archive-subtitle {
  width: min(760px, 90vw);
  max-width: 720px;
  margin: 0 auto;
  color: #d7cbb7;
  font-size: 19px;
  line-height: 1.55;
}

.archive-intro {
  padding: 34px 0 0;
  text-align: center;
}

/* =========================================================
   12. Archive Page Sections
   Groups archive cards beneath section headings such as NPCs or towns.
   ========================================================= */
.archive-section {
  padding: 18px 0 56px;
}

.archive-section + .archive-section {
  padding-top: 46px;
  border-top: 1px solid rgba(184, 138, 61, .18);
}

.archive-section__header {
  width: min(760px, 90vw);
  margin: 0 auto 28px;
  text-align: center;
}

.archive-section__header h2 {
  margin: 0 0 12px;
  color: var(--gold2);
  font-size: 28px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.archive-section__header p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

/* =========================================================
   13. Archive Card Grid
   Controls archive-card layout, image overlays, borders, and text.
   ========================================================= */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 42px 0 72px;
}

.archive-card {
  --archive-card-bg: linear-gradient(135deg, #172428, #050b0d);

  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 320px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 28px;
  color: var(--text);
  border: 1px solid var(--line);
  background-color: #050b0d;
  background-image:
    linear-gradient(180deg, rgba(3, 8, 10, .18), rgba(3, 8, 10, .58) 48%, rgba(3, 8, 10, .92)),
    var(--archive-card-bg);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .52), inset 0 0 0 1px rgba(255, 255, 255, .025);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, filter .24s ease;
}

.archive-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold2);
  box-shadow: 0 26px 64px rgba(0, 0, 0, .72), 0 0 26px rgba(184, 138, 61, .18);
}

.archive-card__frame {
  position: absolute;
  inset: 8px;
  z-index: 2;
  border: 1px solid rgba(184, 138, 61, .28);
  pointer-events: none;
}

.archive-card__glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 50% 20%, rgba(224, 188, 113, .14), transparent 34%);
  opacity: .65;
  pointer-events: none;
}

.archive-card__content {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 42px 34px 32px;
  text-align: center;
}

.archive-card__icon {
  display: block;
  margin-bottom: 12px;
  color: var(--gold2);
  font-size: 26px;
}

.archive-card__icon,
.archive-card__label,
.archive-card__link {
  color: var(--gold2);
}

.archive-card h2 {
  margin: 10px 0 12px;
  color: #f0d08a;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.archive-card__ornament {
  width: 120px;
  height: 1px;
  margin: 12px auto 14px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.archive-card p {
  max-width: 320px;
  margin: 0 0 18px;
  color: #d6c9b1;
  font-size: 16px;
  line-height: 1.45;
}

.archive-card__link {
  letter-spacing: .08em;
}

.archive-empty {
  padding: 54px 0 80px;
  color: var(--muted);
  text-align: center;
}

/* =========================================================
   14. Detail Page Hero
   Controls individual place, person, faction, lore, and session headers.
   ========================================================= */
.detail-hero {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 30px 0 30px;
  border-bottom: 1px solid rgba(184, 138, 61, .25);
  background:
    radial-gradient(circle at 50% 0, rgba(224, 188, 113, .08), transparent 28%),
    linear-gradient(180deg, rgba(8, 18, 21, .98), rgba(4, 10, 12, .94));
  background-image:
    linear-gradient(
      90deg,
      rgba(3, 8, 10, .55),
      rgba(3, 8, 10, .45),
      rgba(3, 8, 10, .55)
    ),
    linear-gradient(
      180deg,
      rgba(3, 8, 10, .30),
      rgba(3, 8, 10, .50)
    ),
    var(--detail-hero-bg);
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
}

.detail-hero.has-bg {
  background-image:
    linear-gradient(
      90deg,
      rgba(3, 8, 10, .95),
      rgba(3, 8, 10, .68),
      rgba(3, 8, 10, .95)
    ),
    var(--detail-hero-bg);

  background-size: cover, 110% auto;
  background-position: center, center 30%;
}

.detail-hero__inner {
  position: relative;
  z-index: 2;
  padding: 0px 0;
  text-align: center;
}

.back-link {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .08em;
}

.detail-hero h1 {
  margin: 16px 0;
  color: #f5efe5;
  font-size: 36px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: normal;
}

.detail-subtitle {
  max-width: 760px;
  margin: 0 auto;
  color: #d7cbb7;
  font-size: 19px;
  line-height: 1.5;
}

/* =========================================================
   15. Detail Page Body + Sidebar
   Builds the two-column detail layout, facts, tags, and related links.
   ========================================================= */
.detail-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 42px;
  padding: 58px 0 82px;
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-panel {
  padding: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 29, 32, .92), rgba(7, 14, 16, .96));
  box-shadow: 0 16px 45px var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .03);
}

.detail-panel h2 {
  margin: 0 0 18px;
  color: #f0d08a;
  font-size: 16px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.detail-fact {
  padding: 14px 0;
  border-top: 1px solid rgba(184, 138, 61, .18);
}

.detail-fact span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.detail-fact strong {
  display: block;
  margin-top: 5px;
  color: #ead8b6;
  font-weight: normal;
}

.detail-fact-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 7px;
}

.detail-fact-list strong {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid rgba(201, 151, 53, 0.35);
  color: #d7c28e;
  font-size: 0.78rem;
  font-weight: normal;
  line-height: 1.3;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.detail-tags span,
.related-links a {
  display: inline-block;
  padding: 6px 9px;
  border: 1px solid rgba(184, 138, 61, .32);
  color: var(--gold2);
  font-size: 12px;
}

.related-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-content {
  max-width: 860px;
}

.detail-content img {
  display: block;
  width: 60%;
  max-width: 100%;
  height: auto;
  margin: 0 auto 0.5rem;
  border: 1px solid rgba(201, 151, 53, 0.3);
  object-fit: cover;
  object-position: center 20%;
}

.detail-content .image-caption {
  width: 60%;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.4;
  opacity: 0.75;
}

.detail-sidebar-image {
  overflow: hidden;
  margin: 0 0 1.5rem;
  border: 1px solid rgba(201, 151, 53, 0.45);
  background: rgba(12, 25, 29, 0.75);
}

.detail-sidebar-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.detail-sidebar-image figcaption {
  padding: 10px 14px;
  border-top: 1px solid rgba(201, 151, 53, 0.25);
  color: #b9aa88;
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.4;
}

.detail-button {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid var(--line);
  color: var(--gold2);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* =========================================================
   16. Header Logo Image
   Fits an uploaded logo image inside the circular header mark.
   ========================================================= */
.brand-mark-image {
  overflow: hidden;
}

.brand-mark-image img {
  display: block;
  width: 100%;
  height: auto%;
  object-fit: contain;
}

/* =========================================================
   17. Map Detail Pages
   Displays large, readable maps with optional captions.
   ========================================================= */
.map-display {
  margin: 0 0 32px;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(3, 8, 10, .5);
}

.map-display img {
  display: block;
  width: 100%;
  height: auto;
}

.map-display figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
  text-align: center;
}

/* =========================================================
   18. Responsive Archive + Detail Layout
   Adjusts archive grids, hero spacing, and detail columns on smaller screens.
   ========================================================= */
@media (max-width: 1100px) {
  .detail-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1000px) {
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .archive-hero,
  .detail-hero {
    padding: 54px 0 38px;
  }

  .archive-card {
    min-height: 280px;
  }

  .detail-shell {
    padding: 38px 0 60px;
  }
}

@media (max-width: 680px) {
  .archive-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .detail-content img,
  .detail-content .image-caption {
    width: 100%;
  }
}
@media (max-width: 700px) {
  .detail-content img[class*="img-"] {
    width: 100%;
  }
}
.detail-content img.image-intro {
  width: 85%;
  margin: 2rem auto;
  border: 2px solid rgba(201, 151, 53, 0.6);
  object-position: center 35%;
}

/* Individual image-width options */
.detail-content img.img-10 {
  width: 10%;
}
.detail-content img.img-20 {
  width: 20%;
}
.detail-content img.img-30 {
  width: 30%;
}

.detail-content img.img-40 {
  width: 40%;
}

.detail-content img.img-50 {
  width: 50%;
}

.detail-content img.img-60 {
  width: 60%;
}

.detail-content img.img-75 {
  width: 75%;
}

.detail-content img.img-full {
  width: 100%;
}

/* Keep all custom-width images centered and responsive */
.detail-content img[class*="img-"] {
  display: block;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================
   Pull Quotes
   ========================================= */

.pull-quote {
  position: relative;
  margin: 2rem auto;
  padding: 1.5rem 2rem 1.5rem 2.4rem;
  max-width: 780px;

  background:
    linear-gradient(
      135deg,
      rgba(201, 157, 55, 0.08),
      rgba(201, 157, 55, 0.025)
    );

  border-left: 3px solid var(--gold, #c99d37);
  border-top: 1px solid rgba(201, 157, 55, 0.2);
  border-bottom: 1px solid rgba(201, 157, 55, 0.12);

  color: var(--text-light, #e7d6a8);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.65;
  text-align: center;

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

/* Decorative quotation mark */
.pull-quote::before {
  content: "“";
  position: absolute;
  top: -0.35rem;
  left: 0.65rem;

  color: rgba(201, 157, 55, 0.45);
  font-family: Georgia, serif;
  font-size: 4.5rem;
  line-height: 1;
}

/* Optional decorative ending mark */
.pull-quote::after {
  content: "✦";
  display: block;
  margin-top: 0.8rem;

  color: var(--gold, #c99d37);
  font-size: 0.7rem;
  font-style: normal;
  letter-spacing: 0;
}

/* Remove extra spacing inside the quote */
.pull-quote p {
  margin: 0;
}

/* Optional attribution */
.pull-quote cite {
  display: block;
  margin-top: 0.75rem;

  color: rgba(231, 214, 168, 0.7);
  font-size: 0.82rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pull-quote--sign {
  max-width: 720px;
  padding: 1rem 2rem;

  background: rgba(255, 255, 255, 0.025);
  border-left: 2px solid var(--gold, #c99d37);
  border-top: none;
  border-bottom: none;

  font-size: 1.1rem;
  font-weight: 600;
}

.pull-quote--sign::before,
.pull-quote--sign::after {
  display: none;
}

/* =========================================================
   SONGS, POETRY, CHANTS & VERSE
   Eryndor / Witness Archives
   ========================================================= */

/* ---------- Theme variables ---------- */

:root {
  --verse-gold: #c9a24f;
  --verse-gold-bright: #e2c77b;
  --verse-gold-muted: rgba(201, 162, 79, 0.45);

  --verse-cream: #e8d9b6;
  --verse-text-muted: #b8aa88;

  --verse-panel: rgba(16, 20, 19, 0.96);
  --verse-panel-soft: rgba(24, 27, 24, 0.82);
  --verse-shadow: rgba(0, 0, 0, 0.42);
}


/* =========================================================
   MAIN SONG / POEM WRAPPER
   ========================================================= */

.verse-entry {
  width: min(100%, 920px);
  margin: 2.5rem auto 3rem;
}


/* Small category heading above the song title */

.verse-entry__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;

  margin: 0 0 1rem;
  color: var(--verse-gold);

  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.verse-entry__eyebrow::before,
.verse-entry__eyebrow::after {
  content: "";
  width: 4rem;
  height: 1px;
  background:
    linear-gradient(
      to right,
      transparent,
      var(--verse-gold-muted)
    );
}

.verse-entry__eyebrow::after {
  background:
    linear-gradient(
      to left,
      transparent,
      var(--verse-gold-muted)
    );
}


/* Main song title */

.verse-entry__title {
  margin: 0;
  color: var(--verse-cream);

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
}


/* Decorative divider beneath the title */

.verse-entry__divider {
  position: relative;
  width: min(220px, 45%);
  height: 1px;
  margin: 1.25rem auto 1.4rem;

  background:
    linear-gradient(
      to right,
      transparent,
      var(--verse-gold-muted) 20%,
      var(--verse-gold) 50%,
      var(--verse-gold-muted) 80%,
      transparent
    );
}

.verse-entry__divider::after {
  content: "◇";
  position: absolute;
  top: 50%;
  left: 50%;

  padding: 0 0.45rem;
  background: var(--page-bg, #061112);
  color: var(--verse-gold);

  font-size: 0.72rem;
  line-height: 1;

  transform: translate(-50%, -50%);
}


/* Introductory lore paragraph */

.verse-entry__intro {
  max-width: 820px;
  margin: 0 auto 2rem;

  color: var(--verse-text-muted);
  font-size: 1rem;
  line-height: 1.75;
  text-align: left;
}

.verse-entry__intro strong {
  color: var(--verse-cream);
}


/* =========================================================
   ORNATE POETRY PANEL
   ========================================================= */

.verse-panel {
  position: relative;
  isolation: isolate;

  width: 100%;
  margin: 2rem auto;
  padding: clamp(2.25rem, 5vw, 4.25rem)
           clamp(1.5rem, 6vw, 5rem);

  overflow: hidden;

  background:
    radial-gradient(
      circle at 50% 10%,
      rgba(201, 162, 79, 0.07),
      transparent 35%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.018),
      transparent 40%
    ),
    var(--verse-panel);

  border: 1px solid var(--verse-gold-muted);

  box-shadow:
    0 22px 55px var(--verse-shadow),
    inset 0 0 45px rgba(201, 162, 79, 0.025);
}


/* Inner border */

.verse-panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: -1;

  pointer-events: none;

  border: 1px solid rgba(201, 162, 79, 0.2);
}


/* Subtle paper texture */

.verse-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;

  opacity: 0.17;
  pointer-events: none;

  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(255, 255, 255, 0.018) 4px
    );
}


/* =========================================================
   DECORATIVE CORNERS
   ========================================================= */

.verse-corner {
  position: absolute;
  width: 42px;
  height: 42px;

  color: var(--verse-gold);
  opacity: 0.82;

  pointer-events: none;
}

.verse-corner::before,
.verse-corner::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.verse-corner::before {
  width: 100%;
  height: 1px;
}

.verse-corner::after {
  width: 1px;
  height: 100%;
}

.verse-corner--top-left {
  top: 15px;
  left: 15px;
}

.verse-corner--top-right {
  top: 15px;
  right: 15px;
  transform: rotate(90deg);
}

.verse-corner--bottom-right {
  right: 15px;
  bottom: 15px;
  transform: rotate(180deg);
}

.verse-corner--bottom-left {
  bottom: 15px;
  left: 15px;
  transform: rotate(270deg);
}


/* =========================================================
   TOP AND BOTTOM ORNAMENTS
   ========================================================= */

.verse-panel__ornament {
  position: absolute;
  left: 50%;

  display: flex;
  align-items: center;
  gap: 0.65rem;

  width: min(260px, 45%);
  color: var(--verse-gold);

  transform: translateX(-50%);
}

.verse-panel__ornament::before,
.verse-panel__ornament::after {
  content: "";
  flex: 1;
  height: 1px;

  background:
    linear-gradient(
      to right,
      transparent,
      var(--verse-gold-muted)
    );
}

.verse-panel__ornament::after {
  background:
    linear-gradient(
      to left,
      transparent,
      var(--verse-gold-muted)
    );
}

.verse-panel__ornament--top {
  top: 0;
  transform: translate(-50%, -50%);
}

.verse-panel__ornament--bottom {
  bottom: 0;
  transform: translate(-50%, 50%);
}

.verse-panel__ornament-symbol {
  display: inline-grid;
  place-items: center;

  width: 1.6rem;
  height: 1.6rem;

  background: var(--verse-panel);
  color: var(--verse-gold-bright);

  font-size: 1rem;
  line-height: 1;
}


/* =========================================================
   VERSE TEXT
   ========================================================= */

.verse-text {
  position: relative;
  z-index: 1;

  margin: 0;
  color: var(--verse-gold-bright);

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  font-style: italic;
  line-height: 1.48;
  text-align: center;

  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}


/* Each stanza */

.verse-stanza {
  margin: 0;
}

.verse-stanza + .verse-stanza {
  margin-top: 2rem;
}


/* Each line */

.verse-line {
  display: block;
}


/* Optional emphasized line */

.verse-line--emphasis {
  color: var(--verse-cream);
  font-weight: 600;
}


/* Decorative separator between stanzas */

.verse-break {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;

  width: 90px;
  margin: 1.6rem auto;

  color: var(--verse-gold);
  opacity: 0.7;
}

.verse-break::before,
.verse-break::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--verse-gold-muted);
}

.verse-break::marker {
  content: "";
}


/* =========================================================
   ATTRIBUTION / TRANSLATION NOTE
   ========================================================= */

.verse-attribution {
  margin: 1.8rem 0 0;
  color: var(--verse-text-muted);

  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
}

.verse-attribution::before {
  content: "— ";
}


/* =========================================================
   SIMPLE INLINE POETRY
   For shorter verses inside ordinary article content
   ========================================================= */

.inline-verse {
  width: min(100%, 700px);
  margin: 2rem auto;
  padding: 1.5rem 2rem;

  background:
    linear-gradient(
      90deg,
      rgba(201, 162, 79, 0.035),
      rgba(201, 162, 79, 0.08),
      rgba(201, 162, 79, 0.035)
    );

  border-top: 1px solid rgba(201, 162, 79, 0.25);
  border-bottom: 1px solid rgba(201, 162, 79, 0.25);

  color: var(--verse-cream);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.65;
  text-align: center;
}

.inline-verse p {
  margin: 0;
}

.inline-verse p + p {
  margin-top: 1.35rem;
}


/* =========================================================
   LEFT-ALIGNED BALLAD OR PROSE-POEM OPTION
   ========================================================= */

.verse-panel--left .verse-text {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  text-align: left;
}

.verse-panel--left .verse-line {
  white-space: normal;
}


/* =========================================================
   RESPONSIVE STYLING
   ========================================================= */

@media (max-width: 760px) {
  .verse-entry {
    margin-top: 1.5rem;
  }

  .verse-entry__title {
    letter-spacing: 0.035em;
  }

  .verse-entry__intro {
    line-height: 1.65;
  }

  .verse-panel {
    padding:
      2.6rem
      1.35rem;
  }

  .verse-panel::before {
    inset: 5px;
  }

  .verse-corner {
    width: 28px;
    height: 28px;
  }

  .verse-corner--top-left {
    top: 10px;
    left: 10px;
  }

  .verse-corner--top-right {
    top: 10px;
    right: 10px;
  }

  .verse-corner--bottom-right {
    right: 10px;
    bottom: 10px;
  }

  .verse-corner--bottom-left {
    bottom: 10px;
    left: 10px;
  }

  .verse-text {
    font-size: 1rem;
    line-height: 1.55;
  }

  .verse-stanza + .verse-stanza {
    margin-top: 1.6rem;
  }

  .verse-panel__ornament {
    width: 52%;
  }
}


/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
  .verse-panel,
  .verse-panel *,
  .verse-entry,
  .verse-entry * {
    scroll-behavior: auto;
    transition: none;
    animation: none;
  }
}

/* =========================================================
   SONG PAGE LAYOUT
   ========================================================= */

.song-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;

  width: 100%;
}

.song-layout__main {
  min-width: 0;
}


/* =========================================================
   SONG SIDEBAR
   ========================================================= */

.song-sidebar {
  display: grid;
  gap: 1.25rem;

  position: sticky;
  top: 2rem;
}


/* =========================================================
   SIDEBAR CARDS
   ========================================================= */

.song-card {
  position: relative;
  padding: 1.5rem 1.35rem;

  background:
    radial-gradient(
      circle at 50% 0,
      rgba(201, 162, 79, 0.055),
      transparent 45%
    ),
    rgba(8, 17, 17, 0.76);

  border: 1px solid rgba(201, 162, 79, 0.42);

  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.22),
    inset 0 0 25px rgba(201, 162, 79, 0.018);
}


/* Inner border */

.song-card::before {
  content: "";
  position: absolute;
  inset: 6px;

  border: 1px solid rgba(201, 162, 79, 0.12);
  pointer-events: none;
}


/* Small corner marks */

.song-card::after {
  content: "◇";
  position: absolute;
  right: 0.45rem;
  bottom: 0.2rem;

  color: rgba(201, 162, 79, 0.45);
  font-size: 0.7rem;
}


/* Card icon */

.song-card__icon {
  position: relative;
  z-index: 1;

  margin-bottom: 0.65rem;
  color: var(--verse-gold);

  font-size: 1.25rem;
  line-height: 1;
  text-align: center;
}


/* Card heading */

.song-card__title {
  position: relative;
  z-index: 1;

  margin: 0;
  padding-bottom: 0.9rem;

  color: var(--verse-cream);

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;

  border-bottom: 1px solid rgba(201, 162, 79, 0.2);
}


/* =========================================================
   ABOUT THIS SONG METADATA
   ========================================================= */

.song-meta {
  position: relative;
  z-index: 1;

  display: grid;
  gap: 0;

  margin: 0;
}

.song-meta__item {
  padding: 0.9rem 0;

  border-bottom: 1px solid rgba(201, 162, 79, 0.1);
}

.song-meta__item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.song-meta dt {
  margin: 0 0 0.25rem;

  color: var(--verse-gold);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.song-meta dd {
  margin: 0;

  color: var(--verse-text-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  line-height: 1.45;
}


/* =========================================================
   SCHOLAR'S NOTE
   ========================================================= */

.song-card--note {
  background:
    linear-gradient(
      145deg,
      rgba(201, 162, 79, 0.045),
      transparent 50%
    ),
    rgba(8, 17, 17, 0.78);
}

.song-card__content {
  position: relative;
  z-index: 1;

  padding-top: 1rem;

  color: var(--verse-text-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
  line-height: 1.6;
}

.song-card__content p {
  margin: 0;
}

.song-card__content p + p {
  margin-top: 0.85rem;
}


/* =========================================================
   RESPONSIVE LAYOUT
   ========================================================= */

@media (max-width: 1050px) {
  .song-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 1.75rem;
  }
}

@media (max-width: 850px) {
  .song-layout {
    display: block;
  }

  .song-sidebar {
    position: static;

    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;

    margin-top: 2rem;
  }
}

@media (max-width: 580px) {
  .song-sidebar {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   19. Mockup-Style Song Page Overrides
   Refines the poetry layout to more closely match the
   Songs & Verse mockup.
   ========================================================= */

.song-layout {
  grid-template-columns: minmax(0, 820px) 275px;
  justify-content: center;
  gap: 2.5rem;
}

.verse-entry {
  width: 100%;
  max-width: 820px;
  margin: 2rem auto 3rem;
}

.verse-entry__title {
  max-width: 760px;
  margin-inline: auto;
  color: #ead7ad;
  font-size: clamp(2.1rem, 3.4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.045em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.verse-entry__eyebrow {
  margin-bottom: 1rem;
  color: #c49b48;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-align: center;
  text-transform: uppercase;
}

.verse-entry__intro {
  max-width: 780px;
  margin: 0 auto 1.75rem;
  color: #c9ba98;
  font-size: 1rem;
  line-height: 1.65;
}

.verse-entry__divider {
  width: 190px;
  margin: 1.1rem auto 1.5rem;
}

.verse-panel {
  width: 100%;
  max-width: 780px;
  margin: 1.75rem auto 2.25rem;
  padding: 3rem 3rem 3.25rem;
  background:
    radial-gradient(
      circle at 50% 5%,
      rgba(205, 166, 89, 0.08),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.025),
      transparent 42%
    ),
    #131816;
  border: 1px solid rgba(201, 162, 79, 0.62);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.38),
    inset 0 0 50px rgba(190, 149, 65, 0.035);
}

.verse-panel::before {
  inset: 7px;
  border-color: rgba(201, 162, 79, 0.27);
}

.verse-text {
  max-width: 600px;
  margin-inline: auto;
  color: #dfc078;
  font-size: clamp(1.08rem, 1.55vw, 1.22rem);
  line-height: 1.42;
  text-align: center;
  text-shadow:
    0 1px 8px rgba(0, 0, 0, 0.5),
    0 0 18px rgba(196, 153, 72, 0.035);
}

.verse-stanza {
  margin: 0;
}

.verse-stanza + .verse-stanza {
  margin-top: 0;
}

.verse-line {
  display: block;
  min-height: 0;
}

.verse-break {
  width: 70px;
  margin: 1.35rem auto;
  color: #c79e4b;
  font-size: 0.72rem;
}

.verse-break::before,
.verse-break::after {
  width: 22px;
}

.verse-panel__ornament {
  width: 210px;
}

.verse-panel__ornament-symbol {
  width: 1.45rem;
  height: 1.45rem;
  background: #131816;
  color: #d2aa55;
}

.verse-corner {
  width: 34px;
  height: 34px;
  opacity: 0.72;
}

.song-sidebar {
  width: 275px;
  gap: 1.15rem;
}

.song-card {
  padding: 1.4rem 1.25rem;
}

.song-card__title {
  font-size: 0.9rem;
}

.song-meta dd,
.song-card__content {
  font-size: 0.86rem;
}

@media (max-width: 1100px) {
  .song-layout {
    grid-template-columns: minmax(0, 1fr) 245px;
    gap: 1.75rem;
  }

  .song-sidebar {
    width: 245px;
  }

  .verse-panel {
    padding-inline: 2.25rem;
  }
}

@media (max-width: 850px) {
  .song-layout {
    display: block;
  }

  .song-sidebar {
    width: 100%;
    margin-top: 2rem;
  }
}

@media (max-width: 600px) {
  .verse-entry__title {
    font-size: 2rem;
  }

  .verse-panel {
    padding: 2.7rem 1.25rem 2.8rem;
  }

  .verse-text {
    font-size: 1rem;
    line-height: 1.5;
  }

  .verse-break {
    margin-block: 1.15rem;
  }
}
/* =========================================================
   Full-Width Song Heading + Centered Poem
   ========================================================= */

/*
 * The regular detail template already provides the page columns.
 * Do not create another two-column layout inside the main content.
 */
.song-layout {
  display: block;
  width: 100%;
}

.song-layout__main {
  width: 100%;
  min-width: 0;
}

/*
 * Allow the song content wrapper to use the entire available
 * width of the central page column.
 */
.verse-entry {
  width: 100%;
  max-width: none;
  margin: 2rem auto 3rem;
}

/*
 * Allow the heading area to span the full central column.
 */
.verse-entry__eyebrow,
.verse-entry__title,
.verse-entry__intro {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

/* Center the category heading. */
.verse-entry__eyebrow {
  justify-content: center;
  text-align: center;
}

/* Center the main title across the available width. */
.verse-entry__title {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.08;
  text-align: center;
  text-wrap: balance;
}

/* Keep the title ornament centered. */
.verse-entry__divider {
  margin-left: auto;
  margin-right: auto;
}

/* Let the introduction use the full width and center its text. */
.verse-entry__intro {
  margin-bottom: 2rem;
  padding-inline: clamp(0rem, 2vw, 1.5rem);
  text-align: center;
}

.verse-entry__intro p {
  max-width: none;
  margin: 0 auto;
}

/*
 * Keep the actual poem narrower and centered, even though
 * the heading and introduction are full width.
 */
.verse-panel {
  width: fit-content;
  max-width: calc(100% - 2rem);
  margin: 2rem auto 2.25rem;
  padding: 2.75rem 2rem 3rem;
}

.verse-text {
  width: fit-content;
  max-width: none;
  margin-inline: auto;
}

/*
 * Your detail template limits ordinary article content to 860px.
 * Remove that restriction only when the content contains a song.
 */
.detail-content:has(.song-layout) {
  width: 100%;
  max-width: none;
}


/* =========================================================
   Optional Song Information Cards
   Places About This Song and Scholar's Note beneath the poem
   instead of creating another right-hand sidebar.
   ========================================================= */

.song-sidebar {
  position: static;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;

  width: min(100%, 780px);
  margin: 1.5rem auto 0;
}


/* =========================================================
   Responsive Song Layout
   ========================================================= */

@media (max-width: 700px) {
  .verse-entry__title {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .verse-entry__intro {
    padding-inline: 0;
    text-align: left;
  }

  .verse-panel {
    width: 100%;
  }

  .song-sidebar {
    grid-template-columns: 1fr;
    width: 100%;
  }
}
.card-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  overflow: hidden;
}

.card-icon img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* ==========================================================
   Home feature-card layout repair
   ========================================================== */

.feature-cards {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 10px;
  align-items: stretch;
  padding-top: 0;
  padding-bottom: 28px;
}

.feature-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 245px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(183, 136, 57, 0.65);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.feature-card h2,
.feature-card p,
.feature-card .explore,
.feature-card .card-icon {
  position: relative;
  z-index: 2;
}

/* Keep replacement icons small without affecting the card */

.card-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0 0 12px;
  padding: 0;
  flex: 0 0 32px;
  overflow: visible;
}

.card-icon img {
  display: block !important;
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain;
}

/* Responsive card grid */

@media (max-width: 1400px) {
  .feature-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 850px) {
  .feature-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .feature-cards {
    grid-template-columns: 1fr !important;
  }
}

.session-split {
  display: grid;
  grid-template-columns:
    minmax(320px, 0.9fr)
    minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
  width: 100%;
  margin: 2rem 0 3rem;
}

.session-split > * {
  min-width: 0;
}

/* Prevent the decorative song box from remaining narrow and centered */
.session-split__song .poem-frame {
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}

.session-split__content {
  padding-top: 0.25rem;
}

.session-split__content > :first-child,
.session-split__song > :first-child {
  margin-top: 0;
}

.song-direction {
  margin: 0 0 1.5rem;
  text-align: center;
  font-style: italic;
  opacity: 0.8;
}


  .session-split__song .poem-frame {
    max-width: 680px;
    margin-inline: auto;
  }
}

.session-split__image {
  margin: 0;
}

.session-split__image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(202, 158, 60, 0.45);
  box-shadow:
    0 0 0 7px rgba(7, 20, 20, 0.75),
    0 0 0 8px rgba(202, 158, 60, 0.2);
}

.session-split__image figcaption {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.75;
}