:root {
  color-scheme: dark;
  --night: #0d0a08;
  --night-soft: #13100d;
  --surface: #1b1612;
  --surface-2: #241d17;
  --surface-3: #2e251c;
  --ivory: #f6efe3;
  --text: #f3eadb;
  --muted: #b9ac99;
  --copper: #d8874b;
  --copper-bright: #f0b36a;
  --copper-deep: #8e4f29;
  --olive: #a5ad62;
  --olive-deep: #5f6638;
  --danger: #e07a68;
  --line: rgba(240, 179, 106, 0.18);
  --line-strong: rgba(240, 179, 106, 0.34);
  --glass: rgba(22, 17, 13, 0.82);
  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.32);
  --shadow-deep: 0 32px 90px rgba(0, 0, 0, 0.52);
  --glow: 0 0 0 1px rgba(216, 135, 75, 0.08), 0 16px 48px rgba(0, 0, 0, 0.28);
  --radius-lg: 1.75rem;
  --radius-md: 1.15rem;

  /* Override the base design tokens so every generated guide inherits dark mode. */
  --paper: var(--night);
  --paper-2: var(--surface);
  --ink: var(--text);
  --accent: var(--copper);
  --accent-2: var(--copper-bright);
  --accent-soft: #302117;
  --warning: var(--danger);
  --warning-soft: #2a1714;
  --shadow: var(--shadow-soft);
}

html {
  background: var(--night);
  color-scheme: dark;
}
body {
  background:
    radial-gradient(circle at 8% 0%, rgba(216, 135, 75, 0.13), transparent 31rem),
    radial-gradient(circle at 92% 14%, rgba(165, 173, 98, 0.08), transparent 28rem),
    linear-gradient(180deg, var(--night-soft) 0%, var(--night) 42%, #090705 100%);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  letter-spacing: -0.005em;
  accent-color: var(--copper);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}
::selection {
  background: rgba(216, 135, 75, 0.38);
  color: var(--ivory);
}
* {
  scrollbar-color: var(--copper-deep) var(--night-soft);
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-copy strong {
  font-family:
    Iowan Old Style,
    Palatino Linotype,
    Book Antiqua,
    Palatino,
    Georgia,
    serif;
  color: var(--ivory);
}
h1,
h2,
h3 {
  letter-spacing: -0.035em;
}
p,
li {
  max-width: 75ch;
}
p,
li,
dd,
figcaption {
  color: inherit;
}
a {
  color: var(--copper-bright);
}
a:hover {
  color: var(--olive);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--copper-bright);
  outline-offset: 3px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}
code,
kbd,
samp {
  background: var(--surface-3);
  color: var(--copper-bright);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
}
pre {
  overflow: auto;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: #090705;
  color: var(--text);
}
mark {
  background: rgba(165, 173, 98, 0.26);
  color: var(--ivory);
}

.skip-link {
  background: var(--copper-bright);
  color: var(--night);
  font-weight: 700;
  border-radius: 0.5rem;
}
.site-header {
  background: rgba(13, 10, 8, 0.88);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px) saturate(1.1);
}
.header-inner {
  min-height: 5.25rem;
}
.brand {
  gap: 0.8rem;
  color: var(--ivory);
}
.brand:hover {
  color: var(--copper-bright);
}
.brand-mark {
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(240, 179, 106, 0.38);
  background: linear-gradient(145deg, #2d2118, #15100c);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 28px rgba(0, 0, 0, 0.42);
  color: var(--copper-bright);
}
.brand-book {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: var(--kd-text-sm);
  letter-spacing: 0.1em;
}
.brand-copy {
  display: grid;
  line-height: 1.05;
}
.brand-copy strong {
  font-size: var(--kd-text-lg);
}
.brand-copy small {
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: var(--kd-text-xs);
  letter-spacing: 0.04em;
}
.nav {
  gap: 0.35rem;
}
.nav a {
  padding: 0.58rem 0.72rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: var(--kd-text-sm);
  transition:
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}
.nav a:hover,
.nav a[aria-current="page"] {
  background: rgba(216, 135, 75, 0.12);
  color: var(--copper-bright);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(216, 135, 75, 0.12);
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: var(--text);
}
.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--copper-bright);
  content: "";
  position: relative;
  margin: auto;
  transition: 0.2s;
}
.nav-toggle-lines::before {
  position: absolute;
  top: -0.42rem;
}
.nav-toggle-lines::after {
  position: absolute;
  top: 0.42rem;
}

.editorial-hero {
  position: relative;
  min-height: min(780px, 86vh);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--night);
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.editorial-hero-media,
.editorial-hero-shade {
  position: absolute;
  inset: 0;
}
.editorial-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  filter: sepia(0.22) saturate(0.72) contrast(1.18) brightness(0.63);
}
.editorial-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 7, 5, 0.97) 0%, rgba(15, 10, 7, 0.9) 42%, rgba(15, 10, 7, 0.28) 76%);
}
.editorial-hero-shade {
  background:
    linear-gradient(0deg, rgba(8, 6, 4, 0.92) 0%, rgba(8, 6, 4, 0.24) 48%, rgba(8, 6, 4, 0.05) 74%),
    radial-gradient(circle at 28% 48%, rgba(216, 135, 75, 0.16), transparent 34rem);
  z-index: 1;
}
.editorial-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 8rem;
  padding-bottom: 4.8rem;
}
.editorial-hero-copy {
  max-width: 58rem;
  color: var(--ivory);
}
.hero-eyebrow {
  color: var(--copper-bright);
}
.editorial-hero h1 {
  margin: 0.7rem 0 1.2rem;
  font-size: var(--kd-text-4xl);
  line-height: 0.96;
  letter-spacing: -0.058em;
  color: var(--ivory);
  text-shadow: 0 7px 34px rgba(0, 0, 0, 0.5);
}
.editorial-hero .lede {
  color: #ded2c0;
  font-size: clamp(var(--kd-text-lg), 1.9vw, var(--kd-text-xl));
  max-width: 49rem;
}
.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  max-width: 49rem;
  margin-top: 1.8rem;
  padding: 0.5rem;
  border: 1px solid rgba(240, 179, 106, 0.3);
  border-radius: 1rem;
  background: rgba(18, 13, 10, 0.93);
  box-shadow: var(--shadow-deep);
  backdrop-filter: blur(12px);
}
.hero-search input {
  border: 0;
  min-width: 0;
  padding: 0.82rem 1rem;
  background: transparent;
  color: var(--ivory);
  font-size: var(--kd-text-base);
  caret-color: var(--copper-bright);
}
.hero-search input::placeholder {
  color: #8f8373;
}
.hero-search input:focus {
  outline: 0;
}
.hero-search .button {
  border-radius: 0.72rem;
  padding-inline: 1.35rem;
}
.hero-secondary-actions {
  margin-top: 1.25rem;
  gap: 1.25rem;
}
.text-link-light {
  color: var(--ivory);
  font-weight: 700;
  text-decoration-color: rgba(240, 179, 106, 0.5);
}
.text-link-light:hover {
  color: var(--copper-bright);
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(240, 179, 106, 0.2);
  font-size: var(--kd-text-xs);
  color: #ac9f8d;
  letter-spacing: 0.02em;
}
.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.hero-proof strong {
  color: var(--copper-bright);
  font-size: var(--kd-text-base);
}

.audience-section {
  padding: 5.7rem 0 4.5rem;
  background: linear-gradient(180deg, rgba(36, 29, 23, 0.42), rgba(13, 10, 8, 0));
}
.audience-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.15fr);
  gap: 1rem 4rem;
  align-items: end;
  margin-bottom: 2.1rem;
}
.audience-heading .eyebrow {
  grid-column: 1/-1;
}
.audience-heading h2 {
  margin: 0;
  font-size: var(--kd-text-4xl);
  letter-spacing: -0.05em;
}
.audience-heading p {
  margin: 0;
  color: var(--muted);
  font-size: var(--kd-text-lg);
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}
.audience-card {
  position: relative;
  min-height: 35rem;
  overflow: hidden;
  border: 1px solid rgba(240, 179, 106, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  isolation: isolate;
  background: var(--surface);
}
.audience-card > img,
.audience-card-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.audience-card > img {
  object-fit: cover;
  filter: sepia(0.18) saturate(0.72) contrast(1.12) brightness(0.74);
  transition:
    transform 0.7s ease,
    filter 0.7s ease;
}
.audience-card:hover > img {
  transform: scale(1.035);
  filter: sepia(0.12) saturate(0.85) contrast(1.12) brightness(0.8);
}
.audience-card-shade {
  background: linear-gradient(0deg, rgba(9, 6, 4, 0.98) 0%, rgba(13, 9, 6, 0.78) 47%, rgba(13, 9, 6, 0.08) 82%);
  z-index: 1;
}
.audience-card-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 2.15rem;
  color: var(--ivory);
}
.audience-kicker {
  display: inline-flex;
  padding: 0.34rem 0.62rem;
  border: 1px solid rgba(240, 179, 106, 0.42);
  border-radius: 999px;
  background: rgba(15, 10, 7, 0.56);
  backdrop-filter: blur(9px);
  color: var(--copper-bright);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--kd-text-xs);
  font-weight: 700;
}
.audience-card h3 {
  margin: 0.75rem 0 0.6rem;
  color: var(--ivory);
  font-size: var(--kd-text-4xl);
  letter-spacing: -0.04em;
}
.audience-card p {
  color: #d2c6b5;
  max-width: 42rem;
}
.audience-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.audience-sub-link {
  color: var(--ivory);
  font-weight: 700;
}
.audience-sub-link:hover {
  color: var(--copper-bright);
}

.eyebrow {
  color: var(--copper);
  font-weight: 700;
}
.lede,
.section-head p,
.card p,
.translation-note,
.provenance,
.result-meta,
.release-meta,
.breadcrumbs {
  color: var(--muted);
}
.section {
  padding: 4.8rem 0;
}
.section.compact {
  padding: 3rem 0;
}
.section-head h2 {
  margin: 0.2rem 0;
}
.section-head > a {
  font-weight: 700;
}
.grid.categories {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.card,
.collection,
.callout,
.filters,
.proclamation-text,
.scripture-block,
.detail-panel,
.aside-card,
.day,
.guide-section,
.guide-toc,
.guide-toc a,
.guide-search,
.manual-section,
.resource-banner,
.stats-grid .stat,
.stat,
.release-meta span {
  border-color: var(--line) !important;
  color: var(--text);
}
.card,
.collection,
.filters,
.proclamation-text,
.scripture-block,
.detail-panel,
.aside-card,
.day,
.guide-section,
.manual-section,
.guide-search,
.stats-grid .stat,
.stat {
  background: linear-gradient(145deg, rgba(36, 29, 23, 0.95), rgba(24, 19, 15, 0.98)) !important;
  box-shadow: var(--glow) !important;
}
.card {
  border-radius: var(--radius-md);
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s,
    background 0.2s;
}
.card:hover {
  border-color: var(--line-strong) !important;
  background: linear-gradient(145deg, rgba(46, 37, 28, 0.98), rgba(27, 22, 18, 0.98)) !important;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(216, 135, 75, 0.11) !important;
  transform: translateY(-3px);
}
.card h3,
.collection h3,
.detail-panel h2,
.aside-card h2,
.manual-section h2,
.manual-section h3,
.manual-section h4 {
  color: var(--ivory);
}
.card a,
.collection a {
  position: relative;
  z-index: 1;
}
.category-card {
  position: relative;
  overflow: hidden;
  color: var(--text);
}
.category-card::after {
  content: "";
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 135, 75, 0.15), transparent 68%);
}
.category-icon {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(165, 173, 98, 0.26);
  border-radius: 0.82rem;
  background: rgba(165, 173, 98, 0.1);
  color: var(--olive);
}
.collection {
  border-left: 0.32rem solid var(--copper) !important;
  border-radius: var(--radius-md) !important;
}
.callout {
  background: linear-gradient(135deg, rgba(95, 102, 56, 0.17), rgba(36, 29, 23, 0.96)) !important;
}
.callout.warning {
  background: linear-gradient(135deg, rgba(224, 122, 104, 0.13), rgba(35, 20, 17, 0.97)) !important;
  border-color: rgba(224, 122, 104, 0.31) !important;
}
.badge {
  background: rgba(216, 135, 75, 0.14);
  color: var(--copper-bright);
  border: 1px solid rgba(216, 135, 75, 0.2);
}
.badge.neutral {
  background: rgba(165, 173, 98, 0.1);
  color: #cbd18f;
  border-color: rgba(165, 173, 98, 0.2);
}
.badge.urgent {
  background: rgba(224, 122, 104, 0.12);
  color: #f0a092;
  border-color: rgba(224, 122, 104, 0.26);
}

.button {
  background: linear-gradient(180deg, var(--copper-bright), var(--copper));
  border-color: var(--copper-bright);
  color: var(--night);
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(142, 79, 41, 0.28);
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.button:hover {
  background: linear-gradient(180deg, #f6c27e, var(--copper-bright));
  border-color: #f6c27e;
  color: var(--night);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(142, 79, 41, 0.36);
}
.button.secondary {
  background: rgba(216, 135, 75, 0.06);
  border-color: rgba(240, 179, 106, 0.45);
  color: var(--copper-bright);
  box-shadow: none;
}
.button.secondary:hover {
  background: rgba(216, 135, 75, 0.16);
  color: var(--ivory);
  border-color: var(--copper-bright);
}
.button.ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
  box-shadow: none;
}
.button-light {
  background: var(--copper-bright);
  color: var(--night);
  border-color: var(--copper-bright);
}
.button-light:hover {
  background: #f6c27e;
  color: var(--night);
  border-color: #f6c27e;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 4.35rem 0 3rem;
  background:
    radial-gradient(circle at 83% 18%, rgba(216, 135, 75, 0.14), transparent 25rem),
    radial-gradient(circle at 12% 10%, rgba(165, 173, 98, 0.07), transparent 24rem),
    linear-gradient(135deg, #211810 0%, #100c09 68%, #090705 100%) !important;
  border-bottom: 1px solid var(--line);
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -8rem;
  top: -9rem;
  width: 22rem;
  height: 22rem;
  border: 1px solid rgba(240, 179, 106, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 3rem rgba(216, 135, 75, 0.025),
    0 0 0 6rem rgba(165, 173, 98, 0.02);
}
.page-hero .page-shell {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  max-width: 20ch;
  color: var(--ivory);
}
.breadcrumbs a {
  color: var(--muted);
}
.breadcrumbs a:hover {
  color: var(--copper-bright);
}
.scripture-block {
  border-left-color: var(--copper) !important;
  background: linear-gradient(145deg, rgba(47, 34, 24, 0.98), rgba(27, 22, 18, 0.98)) !important;
}
.scripture-block blockquote,
.manual-section blockquote,
.guide-section-body blockquote {
  background: rgba(216, 135, 75, 0.07) !important;
  color: var(--text) !important;
  border-left-color: var(--copper) !important;
}
.proclamation-text p:first-of-type::first-letter {
  color: var(--copper-bright);
}

.field label {
  color: var(--ivory);
}
.field input,
.field select,
.field textarea,
.hero-search input {
  border-color: rgba(240, 179, 106, 0.25) !important;
  background: #100c09 !important;
  color: var(--text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}
.field input::placeholder,
.field textarea::placeholder {
  color: #817566;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(240, 179, 106, 0.44) !important;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--copper-bright) !important;
  box-shadow: 0 0 0 3px rgba(216, 135, 75, 0.14);
}
select option {
  background: var(--surface);
  color: var(--text);
}
.filters {
  backdrop-filter: blur(12px);
}

.resource-banner {
  background:
    radial-gradient(circle at 90% 18%, rgba(216, 135, 75, 0.13), transparent 17rem),
    linear-gradient(130deg, #2b2118 0%, #17120e 58%, #11100a 100%) !important;
  box-shadow: var(--shadow-deep) !important;
}
.resource-banner::after {
  border-color: rgba(216, 135, 75, 0.2) !important;
  box-shadow:
    0 0 0 1.7rem rgba(216, 135, 75, 0.035),
    0 0 0 3.4rem rgba(165, 173, 98, 0.02) !important;
}
.warfare-banner,
.warfare-hero {
  background:
    radial-gradient(circle at 88% 15%, rgba(216, 135, 75, 0.15), transparent 23rem),
    radial-gradient(circle at 10% 10%, rgba(165, 173, 98, 0.07), transparent 26rem),
    linear-gradient(180deg, #211810, #0d0a08) !important;
}
.stats-grid .stat strong,
.stat strong,
.day strong,
.guide-label {
  color: var(--copper-bright) !important;
}
.guide-toc {
  background: rgba(20, 16, 13, 0.92) !important;
}
.guide-toc a {
  background: var(--surface) !important;
  color: var(--muted) !important;
}
.guide-toc a:hover {
  background: rgba(216, 135, 75, 0.12) !important;
  color: var(--copper-bright) !important;
}
.guide-section summary:hover {
  background: var(--surface-3) !important;
}
.guide-section[open] > summary {
  border-bottom: 1px solid var(--line);
}
.manual-section h3 {
  border-top-color: var(--line) !important;
}
.manual-section h4 {
  color: var(--copper);
}
.table-scroll {
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--surface);
  box-shadow: var(--glow);
}
table {
  color: var(--text);
  background: var(--surface);
}
th {
  background: #2b2119;
  color: var(--copper-bright);
}
td,
th {
  border-color: var(--line) !important;
}
tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}
tbody tr:hover {
  background: rgba(216, 135, 75, 0.055);
}

.release-meta span {
  background: var(--surface-2) !important;
}
.empty {
  border-color: var(--line);
  background: rgba(36, 29, 23, 0.7);
  color: var(--muted);
}
.site-footer {
  margin-top: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(216, 135, 75, 0.08), transparent 25rem),
    linear-gradient(145deg, #0b0806, #15100d);
  border-top: 1px solid var(--line);
  padding-top: 3.7rem;
  color: var(--text);
}
.site-footer h2 {
  color: var(--ivory);
}
.site-footer p,
.site-footer li {
  color: var(--muted);
}
.site-footer a {
  color: var(--copper-bright);
}
.site-footer a:hover {
  color: var(--olive);
}
.footer-small {
  color: #8f8373;
  border-top-color: var(--line);
}
.photo-credit-link {
  grid-column: 1/-1;
  margin: 0;
  font-size: var(--kd-text-xs);
}
.photo-credit-link a {
  color: var(--muted);
}
.prose-shell {
  max-width: 58rem;
}

.home-page .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(9, 6, 4, 0.94), rgba(9, 6, 4, 0.2), transparent);
  border: 0;
  box-shadow: none;
  color: var(--ivory);
}
.home-page .brand {
  color: var(--ivory);
}
.home-page .brand-copy small {
  color: #b7aa98;
}
.home-page .nav a {
  color: #d3c8b8;
}
.home-page .nav a:hover,
.home-page .nav a[aria-current="page"] {
  background: rgba(216, 135, 75, 0.16);
  color: var(--copper-bright);
}
.home-page .brand-mark {
  background: rgba(15, 10, 7, 0.64);
  border: 1px solid rgba(240, 179, 106, 0.38);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}
.home-page .nav-toggle-lines,
.home-page .nav-toggle-lines::before,
.home-page .nav-toggle-lines::after {
  background: var(--copper-bright);
}

@media (max-width: 900px) {
  .audience-heading {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .audience-grid {
    grid-template-columns: 1fr;
  }
  .audience-card {
    min-height: 31rem;
  }
  .grid.categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }
  .nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 4.8rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: rgba(17, 13, 10, 0.98);
    box-shadow: var(--shadow-deep);
    backdrop-filter: blur(18px);
  }
  .nav[data-open="true"] {
    display: flex;
  }
  .nav a {
    color: var(--muted) !important;
    padding: 0.82rem 0.9rem;
  }
  .nav a:hover,
  .nav a[aria-current="page"] {
    color: var(--copper-bright) !important;
    background: rgba(216, 135, 75, 0.12);
  }
  .home-page .nav {
    background: rgba(13, 10, 8, 0.98);
    border-color: var(--line);
  }
  .home-page .nav a {
    color: var(--muted) !important;
  }
  .home-page .nav a:hover {
    color: var(--copper-bright) !important;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-lines {
    background: transparent;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-lines::before {
    top: 0;
    transform: rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-lines::after {
    top: 0;
    transform: rotate(-45deg);
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 4.65rem;
    flex-direction: row;
    align-items: center;
    padding-block: 0;
  }
  .brand-copy small {
    display: none;
  }
  .editorial-hero {
    min-height: 760px;
    align-items: end;
  }
  .editorial-hero-media img {
    object-position: 62% center;
  }
  .editorial-hero-media::after {
    background: linear-gradient(0deg, rgba(8, 6, 4, 0.99) 0%, rgba(10, 7, 5, 0.88) 62%, rgba(10, 7, 5, 0.42) 100%);
  }
  .editorial-hero-shade {
    background: linear-gradient(0deg, rgba(8, 6, 4, 0.96), rgba(8, 6, 4, 0.12) 78%);
  }
  .editorial-hero-inner {
    padding-top: 8rem;
    padding-bottom: 2.8rem;
  }
  .editorial-hero h1 {
    font-size: var(--kd-text-4xl);
  }
  .hero-search {
    grid-template-columns: 1fr;
    padding: 0.45rem;
  }
  .hero-search .button {
    width: 100%;
  }
  .hero-secondary-actions {
    display: grid;
    gap: 0.55rem;
  }
  .hero-proof {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .audience-section {
    padding-top: 3.8rem;
  }
  .audience-card {
    min-height: 34rem;
  }
  .audience-card-content {
    padding: 1.45rem;
  }
  .audience-links {
    align-items: stretch;
    flex-direction: column;
  }
  .audience-links .button,
  .audience-sub-link {
    width: 100%;
    text-align: center;
  }
  .grid.categories {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 3.6rem 0;
  }
  .page-hero {
    padding: 3.25rem 0 2.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .audience-card > img {
    transition: none;
  }
  .audience-card:hover > img {
    transform: none;
  }
  .button:hover,
  .card:hover {
    transform: none;
  }
}

@media print {
  :root {
    color-scheme: light;
    --paper: #fff;
    --paper-2: #fff;
    --ink: #000;
    --muted: #333;
    --line: #bbb;
    --accent: #7a3e1f;
    --accent-2: #7a3e1f;
    --surface: #fff;
    --surface-2: #f5f5f5;
  }
  html,
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .editorial-hero-media,
  .editorial-hero-shade,
  .audience-card > img,
  .audience-card-shade,
  .nav-toggle {
    display: none !important;
  }
  .editorial-hero,
  .audience-card,
  .card,
  .collection,
  .callout,
  .filters,
  .proclamation-text,
  .scripture-block,
  .detail-panel,
  .aside-card,
  .day,
  .guide-section,
  .manual-section,
  .resource-banner,
  .stat {
    min-height: auto;
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    border-color: #bbb !important;
  }
  .editorial-hero-copy,
  .audience-card-content {
    position: static;
    color: #000;
  }
  .editorial-hero h1,
  .editorial-hero .lede,
  .audience-card h3,
  .audience-card p,
  h1,
  h2,
  h3,
  h4,
  p,
  li {
    color: #000 !important;
  }
  .hero-search {
    display: none;
  }
}

.tracking-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 1rem 0 1.25rem;
}

.tracking-controls .button-secondary {
  background: transparent;
  border: 1px solid rgba(221, 166, 113, 0.62);
  color: var(--ink, #f7efe7);
}

[data-tracking-status] {
  border-left: 3px solid var(--accent, #d39a61);
  padding: 0.75rem 1rem;
  background: rgba(211, 154, 97, 0.08);
}
