.tnaan-psalmwald-shell {
  --psw-canvas: var(--paper);
  --psw-surface: var(--surface);
  --psw-paper: var(--paper-soft);
  --psw-ink: var(--ink);
  --psw-muted: var(--ink-soft);
  --psw-forest: var(--forest);
  --psw-night: #132733;
  --psw-gold: #8b5a16;
  --psw-gold-light: #e7c878;
  --psw-border: var(--line);
  --psw-focus: var(--focus);
  background: var(--psw-canvas);
  color: var(--psw-ink);
  font-family: inherit;
  line-height: 1.6;
  max-width: 1320px;
  margin-inline: auto;
}

.tnaan-psalmwald-shell *,
.tnaan-psalmwald-shell *::before,
.tnaan-psalmwald-shell *::after {
  box-sizing: border-box;
}

.tnaan-psalmwald-shell img {
  display: block;
  max-width: 100%;
  height: auto;
}

.tnaan-psalmwald-shell a,
.tnaan-psalmwald-shell button {
  font: inherit;
}

.tnaan-psalmwald-shell :focus-visible {
  outline: 3px solid var(--psw-ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #fff;
}

.tnaan-psalmwald-shell .psalmwald-local-bar {
  position: relative;
  z-index: 15;
  border-bottom: 1px solid var(--psw-border);
  background: var(--psw-paper);
}

.tnaan-psalmwald-shell .psalmwald-local-bar__inner {
  width: min(calc(100% - 64px), 1320px);
  min-height: 52px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.tnaan-psalmwald-shell .psalmwald-local-place {
  margin: 0 auto 0 0;
  overflow-wrap: anywhere;
}

.tnaan-psalmwald-shell .psalmwald-local-place strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
}

.tnaan-psalmwald-shell .psalmwald-local-navigation {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
}

.tnaan-psalmwald-shell .psalmwald-local-navigation a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--psw-ink);
  font-size: .94rem;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.tnaan-psalmwald-shell .psalmwald-local-navigation a[aria-current] {
  font-weight: 700;
  text-decoration: underline;
}

.tnaan-psalmwald-shell .psalmwald-local-toggle {
  min-width: 44px;
  min-height: 44px;
  display: none;
  border: 1px solid var(--psw-border);
  border-radius: 6px;
  background: #fff;
  color: var(--psw-ink);
}

.tnaan-psalmwald-shell main {
  display: block;
}

.tnaan-psalmwald-shell h1,
.tnaan-psalmwald-shell h2,
.tnaan-psalmwald-shell h3,
.tnaan-psalmwald-shell h4 {
  margin-top: 0;
  color: var(--psw-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.tnaan-psalmwald-shell h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.tnaan-psalmwald-shell h3 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.tnaan-psalmwald-shell .psalm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--psw-paper);
}

.tnaan-psalmwald-shell .psalm-hero-copy {
  padding: clamp(48px, 7vw, 96px) clamp(32px, 7vw, 112px);
  align-self: center;
}

.tnaan-psalmwald-shell .psalm-hero h1 {
  max-width: 11ch;
  margin-bottom: 18px;
  font-size: clamp(3.25rem, 5vw, 4.85rem);
}

.tnaan-psalmwald-shell .hero-subtitle {
  margin: 0 0 16px;
  color: var(--psw-gold);
  font-weight: 700;
}

.tnaan-psalmwald-shell .hero-intro {
  max-width: 58ch;
  margin: 0 0 28px;
  color: var(--psw-muted);
  font-size: 1.08rem;
}

.tnaan-psalmwald-shell .hero-actions,
.tnaan-psalmwald-shell .material-rail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tnaan-psalmwald-shell .button,
.tnaan-psalmwald-shell .text-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--psw-forest);
  border-radius: 6px;
  color: var(--psw-forest);
  background: transparent;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.tnaan-psalmwald-shell .button--gold {
  background: var(--psw-forest);
  color: #fff;
}

.tnaan-psalmwald-shell .psalm-hero-art {
  min-width: 0;
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--psw-night);
}

.tnaan-psalmwald-shell .psalm-hero-art > img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.tnaan-psalmwald-shell .psalm-hero-art figcaption {
  position: static;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(19, 39, 51, .92);
  color: #fdf7e8;
}

.tnaan-psalmwald-shell .psalm-hero-art figcaption img {
  width: 48px;
}

.tnaan-psalmwald-shell .psalm-hero-art figcaption span {
  display: grid;
}

.tnaan-psalmwald-shell .psalm-discovery,
.tnaan-psalmwald-shell .path-section,
.tnaan-psalmwald-shell .song-and-guidance,
.tnaan-psalmwald-shell .materials,
.tnaan-psalmwald-shell .source-note {
  padding: clamp(56px, 8vw, 96px) max(32px, calc((100vw - 1180px) / 2));
}

.tnaan-psalmwald-shell .psalm-discovery,
.tnaan-psalmwald-shell .materials {
  background: var(--psw-canvas);
}

.tnaan-psalmwald-shell .path-section,
.tnaan-psalmwald-shell .source-note {
  background: #fff;
}

.tnaan-psalmwald-shell .discovery-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  align-items: center;
  gap: 44px;
}

.tnaan-psalmwald-shell .discovery-image {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
}

.tnaan-psalmwald-shell .discovery-copy,
.tnaan-psalmwald-shell .section-intro,
.tnaan-psalmwald-shell .source-note {
  max-width: none;
}

.tnaan-psalmwald-shell .section-label {
  margin: 0 0 12px;
  color: var(--psw-gold);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.tnaan-psalmwald-shell .psalm-traces ol,
.tnaan-psalmwald-shell .material-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  list-style: none;
}

.tnaan-psalmwald-shell .path-tablist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
}

.tnaan-psalmwald-shell .psalm-traces li,
.tnaan-psalmwald-shell .path-panels > section,
.tnaan-psalmwald-shell .adult-guidance,
.tnaan-psalmwald-shell .song-copy,
.tnaan-psalmwald-shell .material-card,
.tnaan-psalmwald-shell .direct-link-box {
  padding: 24px;
  border: 1px solid var(--psw-border);
  border-radius: 12px;
  background: #fff;
}

.tnaan-psalmwald-shell .path-tablist button {
  min-height: 92px;
  display: grid;
  place-items: center;
  gap: 6px;
  border: 1px solid var(--psw-border);
  border-radius: 12px;
  background: var(--psw-paper);
  color: var(--psw-ink);
}

.tnaan-psalmwald-shell .path-tablist button img {
  width: 44px;
}

.tnaan-psalmwald-shell .path-panels {
  margin-top: 18px;
}

.tnaan-psalmwald-shell .song-and-guidance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
  gap: 24px;
  background: var(--psw-paper);
}

.tnaan-psalmwald-shell .song-text-plain {
  white-space: pre-wrap;
}

.tnaan-psalmwald-shell .map-teaser {
  padding: 72px 32px;
  background: var(--psw-night);
  color: #fdf7e8;
  text-align: center;
}

.tnaan-psalmwald-shell .map-teaser h2,
.tnaan-psalmwald-shell .map-teaser .button {
  color: #fdf7e8;
}

.tnaan-psalmwald-shell .map-teaser-inner {
  max-width: 900px;
  margin: 0 auto;
}

.tnaan-psalmwald-shell .active-clearing img {
  width: 88px;
  margin: 0 auto 16px;
}

.tnaan-psalmwald-shell .material-rail {
  margin-top: 24px;
}

.tnaan-psalmwald-shell .material-card {
  color: var(--psw-ink);
  text-decoration: none;
}

.tnaan-psalmwald-shell .material-card span,
.tnaan-psalmwald-shell .material-card small {
  display: block;
}

.tnaan-psalmwald-shell .direct-link-box {
  max-width: 800px;
  margin-top: 28px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: center;
}

.tnaan-psalmwald-shell .material-rail-toolbar,
.tnaan-psalmwald-shell .material-rail-actions,
.tnaan-psalmwald-shell .clearing-path {
  display: none;
}

@media (max-width: 899px) {
  .tnaan-psalmwald-shell .psalm-hero,
  .tnaan-psalmwald-shell .discovery-heading,
  .tnaan-psalmwald-shell .song-and-guidance {
    grid-template-columns: 1fr;
  }

  .tnaan-psalmwald-shell .psalm-hero-art {
    min-height: 0;
  }

  .tnaan-psalmwald-shell .psalm-traces ol,
  .tnaan-psalmwald-shell .material-rail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 899px) {
  .tnaan-psalmwald-shell .psalmwald-local-bar__inner {
    width: min(calc(100% - 32px), 1320px);
    min-height: 52px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .tnaan-psalmwald-shell.is-enhanced .psalmwald-local-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .tnaan-psalmwald-shell .psalmwald-local-navigation {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 12px;
  }

  .tnaan-psalmwald-shell.is-enhanced .psalmwald-local-navigation:not(.is-open) {
    display: none;
  }

  .tnaan-psalmwald-shell .psalmwald-local-navigation a {
    min-height: 44px;
    border-top: 1px solid var(--psw-border);
  }

  .tnaan-psalmwald-shell .psalm-hero-copy,
  .tnaan-psalmwald-shell .psalm-discovery,
  .tnaan-psalmwald-shell .path-section,
  .tnaan-psalmwald-shell .song-and-guidance,
  .tnaan-psalmwald-shell .materials,
  .tnaan-psalmwald-shell .source-note {
    padding: 48px 24px;
  }

  .tnaan-psalmwald-shell .psalm-hero h1 {
    font-size: clamp(2.5rem, 13vw, 3.25rem);
  }

  .tnaan-psalmwald-shell .psalm-traces ol,
  .tnaan-psalmwald-shell .path-tablist,
  .tnaan-psalmwald-shell .material-rail {
    grid-template-columns: 1fr;
  }

  .tnaan-psalmwald-shell .direct-link-box {
    grid-template-columns: 1fr;
  }

  .tnaan-psalmwald-shell .direct-link-box > img {
    width: 160px;
  }
}

@media (max-width: 340px) {
  .tnaan-psalmwald-shell .psalm-hero-copy,
  .tnaan-psalmwald-shell .psalm-discovery,
  .tnaan-psalmwald-shell .path-section,
  .tnaan-psalmwald-shell .song-and-guidance,
  .tnaan-psalmwald-shell .materials,
  .tnaan-psalmwald-shell .source-note {
    padding-right: 16px;
    padding-left: 16px;
  }

  .tnaan-psalmwald-shell .psalm-hero h1 {
    font-size: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tnaan-psalmwald-shell *,
  .tnaan-psalmwald-shell *::before,
  .tnaan-psalmwald-shell *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Theme-owned transfer 002: the same component family for map and open Psalms. */
.tnaan-psalmwald-shell .map-hero {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  align-items: center;
  background: var(--psw-paper);
}
.tnaan-psalmwald-shell .map-hero-copy { padding: 48px 32px; min-width: 0; }
.tnaan-psalmwald-shell .map-hero h1 { font-size: clamp(3.25rem, 5vw, 4.875rem); margin-bottom: 24px; }
.tnaan-psalmwald-shell .map-hero-image { margin: 0; min-width: 0; }
.tnaan-psalmwald-shell .map-hero-image img { width: 100%; }
.tnaan-psalmwald-shell .map-hero-image figcaption { padding: 12px 24px; }
.tnaan-psalmwald-shell .forest-overview { padding: 48px 32px; background: var(--psw-night); color: #f6f1df; }
.tnaan-psalmwald-shell .forest-overview :is(h2, h3) { color: inherit; }
.tnaan-psalmwald-shell .forest-groves { display: grid; gap: 32px; }
.tnaan-psalmwald-shell .forest-grove h3 { margin: 0 0 16px; }
.tnaan-psalmwald-shell .psalm-nodes { grid-template-columns: repeat(10, minmax(44px, 1fr)); }
.tnaan-psalmwald-shell .psalm-node { border: 1px solid #b4beb7; border-radius: 6px; background: transparent; color: inherit; text-decoration: none; }
.tnaan-psalmwald-shell .psalm-node.is-active { color: var(--psw-ink); background: #f6f1df; font-weight: 750; text-decoration: underline; border-width: 2px; }
.tnaan-psalmwald-shell .forest-legend { display: flex; flex-wrap: wrap; gap: 24px; }
.tnaan-psalmwald-shell .legend-dot { display: inline-block; width: 12px; height: 12px; border: 1px solid currentColor; border-radius: 50%; }
.tnaan-psalmwald-shell .legend-dot--active { background: currentColor; }
.tnaan-psalmwald-shell .first-clearing { padding: 32px; display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 24px; border-bottom: 1px solid var(--psw-border); }
.tnaan-psalmwald-shell .first-clearing .clearing-mark { width: 120px; height: auto; }
.tnaan-psalmwald-shell .psalm-hero-copy { padding: 48px 32px; min-width: 0; }
.tnaan-psalmwald-shell .psalm-hero h1 { max-width: none; font-size: clamp(3.25rem, 5vw, 4.875rem); overflow-wrap: normal; hyphens: none; }
.tnaan-psalmwald-shell[data-psalmwald-location="psalm-148"] .psalm-hero h1 { hyphens: auto; overflow-wrap: anywhere; word-break: normal; }
.tnaan-psalmwald-shell[data-psalmwald-location="psalm-8"] .psalm-hero h1 { text-wrap: balance; }
.tnaan-psalmwald-shell[data-psalmwald-location="psalm-8"] .psalm-hero h1 br { display: none; }
.tnaan-psalmwald-shell :is(.psalm-discovery, .path-section, .song-and-guidance, .materials, .source-note) { padding: 48px 32px; }
.tnaan-psalmwald-shell :is(.discovery-copy, .section-intro, .source-note p, .song-copy, .adult-guidance) { max-width: 68ch; }
.tnaan-psalmwald-shell .song-and-guidance--single { grid-template-columns: minmax(0, 1fr); }
.tnaan-psalmwald-shell .song-and-guidance--single .song-copy { width: 100%; margin-inline: auto; }
.tnaan-psalmwald-shell .psalm-hero-art { align-self: center; background: var(--psw-paper); }
.tnaan-psalmwald-shell .psalm-hero-art figcaption { border-radius: 0; }
.tnaan-psalmwald-shell .generic-empty { padding: 48px 32px; }
.tnaan-psalmwald-shell .button { box-shadow: none; letter-spacing: normal; text-transform: none; white-space: normal; text-align: center; }
.tnaan-psalmwald-shell .button:hover { transform: none; text-decoration: underline; text-underline-offset: 4px; }
.tnaan-psalmwald-shell .source-note a { text-decoration: underline; text-underline-offset: 4px; }
.tnaan-psalmwald-shell .path-tablist button { font: inherit; cursor: pointer; }
.tnaan-psalmwald-shell .path-tablist button[aria-selected="true"] { border: 2px solid var(--psw-forest); text-decoration: underline; }
.tnaan-psalmwald-shell .direct-link-box code { white-space: normal; overflow-wrap: anywhere; }
.tnaan-psalmwald-shell .psalmwald-local-bar__inner { width: calc(100% - 64px); gap: 16px; }
.tnaan-psalmwald-shell .psalmwald-local-navigation { gap: 16px; flex-wrap: wrap; }
.tnaan-psalmwald-shell .psalmwald-local-navigation a { white-space: normal; }
.tnaan-psalmwald-shell .material-card img { width: 100%; }
@media (max-width: 1099px) {
  .tnaan-psalmwald-shell .psalmwald-local-bar__inner { flex-wrap: wrap; }
  .tnaan-psalmwald-shell .psalmwald-local-navigation { width: 100%; }
  .tnaan-psalmwald-shell .psalm-nodes { grid-template-columns: repeat(6, minmax(44px, 1fr)); }
}
@media (max-width: 899px) {
  .tnaan-psalmwald-shell .map-hero { grid-template-columns: 1fr; }
  .tnaan-psalmwald-shell .psalmwald-local-bar__inner { width: calc(100% - 32px); }
  .tnaan-psalmwald-shell .psalmwald-local-place { flex: 1 1 150px; }
  .tnaan-psalmwald-shell .psalmwald-local-navigation { width: 100%; }
  .tnaan-psalmwald-shell .first-clearing { grid-template-columns: 88px minmax(0, 1fr); }
  .tnaan-psalmwald-shell .first-clearing > .button { grid-column: 1 / -1; }
  .tnaan-psalmwald-shell :is(.map-hero-copy, .psalm-hero-copy, .psalm-discovery, .path-section, .song-and-guidance, .materials, .source-note, .forest-overview, .first-clearing) { padding: 40px 16px; }
  .tnaan-psalmwald-shell .psalm-hero h1 { font-size: clamp(40px, 12vw, 52px); }
  .tnaan-psalmwald-shell .map-hero h1 { font-size: clamp(42px, 12vw, 52px); }
  .tnaan-psalmwald-shell h2 { font-size: clamp(30px, 8vw, 38px); }
  .tnaan-psalmwald-shell h3 { font-size: clamp(22px, 6vw, 26px); }
}
@media (max-width: 599px) {
  .tnaan-psalmwald-shell .first-clearing { grid-template-columns: minmax(0, 1fr); }
  .tnaan-psalmwald-shell .first-clearing > div { min-width: 0; }
  .tnaan-psalmwald-shell .first-clearing h2 { overflow-wrap: anywhere; }
}
@media (max-width: 410px) {
  .tnaan-psalmwald-shell .psalm-nodes { grid-template-columns: repeat(5, minmax(44px, 1fr)); }
}
@media (max-width: 340px) {
  .tnaan-psalmwald-shell .hero-actions { flex-direction: column; }
  .tnaan-psalmwald-shell .psalm-hero h1 { font-size: 40px; }
  .tnaan-psalmwald-shell .map-hero h1 { font-size: 42px; }
  .tnaan-psalmwald-shell :is(.song-copy, .adult-guidance, .material-card, .direct-link-box, .psalm-traces li, .path-panels > section) { padding: 16px; }
  .tnaan-psalmwald-shell .map-teaser { padding: 40px 16px; }
}
