:root {
  --site-map-bg: #0d1510;
  --site-map-panel: rgba(255, 255, 255, 0.045);
  --site-map-ink: #eef1e8;
  --site-map-muted: #aab7ad;
  --site-map-accent: #d2a36d;
  --site-map-green: #85d6a3;
  --site-map-line: rgba(230, 238, 226, 0.15);
}

html[data-theme="light"] {
  --site-map-bg: #eef1e8;
  --site-map-panel: rgba(255, 255, 255, 0.55);
  --site-map-ink: #203128;
  --site-map-muted: #5f6f64;
  --site-map-accent: #966334;
  --site-map-green: #356f50;
  --site-map-line: rgba(36, 54, 43, 0.16);
}

.site-map {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(36px, 7vw, 100px);
  padding: 82px max(7vw, 24px) 88px;
  border-top: 1px solid var(--site-map-line);
  background:
    radial-gradient(circle at 12% 12%, rgba(133, 214, 163, 0.08), transparent 28%),
    var(--site-map-bg);
  color: var(--site-map-ink);
  font-family: var(--sans, "DM Sans", Arial, sans-serif);
  transition: background-color 0.45s ease, color 0.45s ease;
}

.site-map * {
  box-sizing: border-box;
}

.site-map-intro {
  max-width: 430px;
}

.site-map-eyebrow {
  margin: 0 0 18px;
  color: var(--site-map-accent);
  font: 9px var(--mono, "DM Mono", monospace);
  letter-spacing: 0.16em;
}

.site-map h2 {
  margin: 0 0 22px;
  font: 400 clamp(38px, 5vw, 65px) / 0.98 var(--serif, Georgia, serif);
  letter-spacing: -0.045em;
}

.site-map-intro > p:not(.site-map-eyebrow) {
  margin: 0;
  color: var(--site-map-muted);
  font-size: 14px;
  line-height: 1.85;
}

.site-map-index {
  display: inline-flex;
  margin-top: 24px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--site-map-accent);
  color: var(--site-map-accent);
  font: 9px var(--mono, "DM Mono", monospace);
  letter-spacing: 0.06em;
  text-decoration: none;
}

.site-map-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.site-map-groups section {
  padding: 24px;
  border: 1px solid var(--site-map-line);
  border-radius: 12px;
  background: var(--site-map-panel);
}

.site-map-groups h3 {
  margin: 0 0 17px;
  color: var(--site-map-green);
  font: 9px var(--mono, "DM Mono", monospace);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-map-groups a {
  display: block;
  padding: 7px 0;
  color: var(--site-map-ink);
  font-size: 12px;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-map-groups a:is(:hover, :focus-visible) {
  color: var(--site-map-accent);
  transform: translateX(3px);
}

.site-map-groups a:focus-visible,
.site-map-index:focus-visible {
  outline: 2px solid var(--site-map-accent);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .site-map {
    grid-template-columns: 1fr;
    padding-top: 68px;
    padding-bottom: 70px;
  }
}

@media (max-width: 650px) {
  .site-map {
    padding-inline: 20px;
  }

  .site-map-groups {
    grid-template-columns: 1fr;
  }

  .site-map-groups section {
    padding: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-map,
  .site-map-groups a {
    transition: none;
  }
}

.nyarindo-thread-footer {
  position: relative;
  inset: auto;
  width: 100%;
  margin: 0;
  clear: both;
  z-index: 2;
  display: block;
  padding: 0;
  border-top: 1px solid rgba(212, 179, 126, 0.24);
  background: #09110c;
  color: #eef1e8;
  font: 9px/1.5 "DM Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: lowercase;
}

.thread-footer-details {
  width: 100%;
}

.thread-footer-details summary {
  min-height: 64px;
  padding: 14px 7vw;
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  list-style: none;
}

.thread-footer-details summary::-webkit-details-marker {
  display: none;
}

.thread-footer-summary-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.thread-footer-kicker {
  color: #8fa493;
  font: 7px/1.4 "DM Mono", monospace;
  letter-spacing: 0.16em;
}

.thread-footer-summary-copy strong {
  color: inherit;
  font: 15px/1.25 Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: none;
}

.thread-footer-summary-action {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #aebdb2;
  font: 8px/1 var(--mono);
  letter-spacing: 0.12em;
}

.thread-footer-summary-action b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(216, 180, 119, 0.48);
  border-radius: 50%;
  color: #d8b477;
  font: 16px/1 var(--sans);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.thread-footer-details[open] .thread-footer-summary-action b {
  background: #d8b477;
  color: #17130e;
  transform: rotate(45deg);
}

.thread-footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  padding: 0 7vw 24px;
}

.thread-footer-details[open] .thread-footer-content {
  border-top: 1px solid rgba(212, 179, 126, 0.16);
  padding-top: 18px;
}

.thread-footer-content > a,
.thread-footer-content nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.thread-footer-content > a:is(:hover, :focus-visible),
.thread-footer-content nav a:is(:hover, :focus-visible) {
  color: #d8b477;
  border-bottom-color: currentColor;
}

.thread-footer-content nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px 14px;
}

.thread-footer-content nav span {
  color: #7f9a87;
}

html[data-theme="light"] .nyarindo-thread-footer {
  border-top-color: rgba(77, 103, 84, 0.2);
  background: #e8ecdf;
  color: #23352a;
}

html[data-theme="light"] .thread-footer-kicker {
  color: #6d8274;
}

html[data-theme="light"] .thread-footer-summary-action {
  color: #607468;
}

html[data-theme="light"] .thread-footer-summary-action b {
  border-color: rgba(142, 92, 47, 0.48);
  color: #8e5c2f;
}

html[data-theme="light"] .thread-footer-details[open] .thread-footer-summary-action b {
  background: #8e5c2f;
  color: #f7f3e9;
}

html[data-theme="light"] .thread-footer-details[open] .thread-footer-content {
  border-top-color: rgba(77, 103, 84, 0.16);
}

html[data-theme="light"] .thread-footer-content > a:is(:hover, :focus-visible),
html[data-theme="light"] .thread-footer-content nav a:is(:hover, :focus-visible) {
  color: #8e5c2f;
}

html[data-theme="light"] .thread-footer-content nav span {
  color: #708176;
}

@media (max-width: 650px) {
  .nyarindo-thread-footer {
    padding: 0;
  }

  .thread-footer-details summary {
    min-height: 60px;
    padding: 16px 20px;
  }

  .thread-footer-content {
    align-items: flex-start;
    flex-direction: column;
    padding: 0 20px 22px;
  }

  .thread-footer-content nav {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  [data-page="peace"] .movement-grid,
  [data-page="peace"] .movement-grid article {
    min-width: 0;
  }

  [data-page="peace"] .movement-grid article {
    width: 100%;
    padding: 22px;
  }

  [data-page="science-and-religion"] .meeting-field {
    overflow: hidden;
  }

  [data-page="science-and-religion"] .orbit {
    width: 220px;
    height: 220px;
  }

  [data-page="science-and-religion"] .orbit-one {
    translate: -34px 0;
  }

  [data-page="science-and-religion"] .orbit-two {
    translate: 34px 0;
  }

  [data-page="science-and-religion"] .meeting-label {
    width: 118px;
    height: 118px;
    font-size: 23px;
  }
}
