:root {
  --bg: #eef3f2;
  --panel: #fffefb;
  --panel-strong: #e2ecee;
  --ink: #13232d;
  --muted: #586873;
  --primary: #17647a;
  --primary-dark: #0d4053;
  --secondary: #d8b878;
  --surface: #fffefb;
  --line: rgba(26, 27, 31, 0.1);
  --shadow: 0 18px 40px rgba(26, 27, 31, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: linear-gradient(180deg, #eef5f5 0%, #fffefb 34%, #f2f0e9 100%);
  color: var(--ink);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(255, 253, 249, 0.9);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  width: min(1360px, calc(100% - 2rem));
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1rem;
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
}

.main-nav {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

/* Food project: an editorial study with a practical, accessible final guide. */
.food-page {
  --food-ink: #17231c;
  --food-muted: #5e695f;
  --food-cream: #f5f0e4;
  --food-green: #1f6a49;
  --food-green-soft: #e6f3ea;
  --food-red: #9c3c35;
  --food-red-soft: #f8e9e5;
  color: var(--food-ink);
  background: #fbfaf6;
}

.food-page :is(#principle, #misunderstood, #study, #comparison, #food-guide) {
  scroll-margin-top: 7rem;
}

.food-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7.5rem) 0 clamp(3rem, 6vw, 5.5rem);
  background: radial-gradient(circle at 12% 18%, rgb(203 225 197 / 62%), transparent 28rem), linear-gradient(135deg, #f8f3e8, #e9eee0);
}

.food-hero::after {
  position: absolute;
  right: -5rem;
  bottom: -9rem;
  width: 24rem;
  height: 24rem;
  border: 1px solid rgb(31 106 73 / 16%);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgb(31 106 73 / 5%), 0 0 0 7rem rgb(31 106 73 / 3%);
  content: '';
}

.food-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(19rem, 0.95fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.food-hero-copy h1 {
  margin: 0.2em 0 0.3em;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(4.4rem, 11vw, 8.5rem);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.06em;
}

.food-hero-copy .lead {
  max-width: 39rem;
  margin: 0;
  color: #3d493f;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.55;
}

.food-principle-quote {
  display: grid;
  gap: 0.5rem;
  max-width: 39rem;
  margin: 2rem 0 0;
  padding: 1.25rem 1.4rem;
  border: 0;
  border-left: 5px solid var(--food-green);
  border-radius: 0 1rem 1rem 0;
  background: rgb(255 255 255 / 72%);
  box-shadow: 0 1rem 2.8rem rgb(38 61 43 / 8%);
}

.food-principle-quote span,
.food-context-reference,
.food-path-label,
.food-guide-cell > strong {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.food-principle-quote p { margin: 0; font: 1.28rem/1.45 Georgia, 'Times New Roman', serif; }
.food-principle-quote cite { color: var(--food-muted); font-style: normal; }
.food-hero-visual { position: relative; margin: 0; }

.food-hero-visual::before {
  position: absolute;
  inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  border: 1px solid rgb(31 106 73 / 28%);
  border-radius: 1.7rem;
  content: '';
}

.food-hero-visual img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 1.7rem;
  object-fit: cover;
  box-shadow: 0 1.8rem 4rem rgb(34 52 38 / 20%);
}

.food-jump-nav { display: flex; gap: 0.65rem; align-items: center; overflow-x: auto; padding-block: 1.1rem; scrollbar-width: thin; }
.food-jump-nav span { flex: 0 0 auto; margin-right: 0.35rem; color: var(--food-muted); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.food-jump-nav a { flex: 0 0 auto; padding: 0.55rem 0.8rem; border: 1px solid #d9ded6; border-radius: 999px; color: var(--food-ink); background: #fff; font-size: 0.88rem; text-decoration: none; }
.food-jump-nav a:hover, .food-jump-nav a:focus-visible { border-color: var(--food-green); color: var(--food-green); }
.food-reading-width { max-width: 54rem; }

.food-principle h2,
.food-section-heading h2 {
  margin: 0.2em 0 0.45em;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.food-section-lead,
.food-section-heading > p { max-width: 48rem; margin: 0; color: var(--food-muted); font-size: 1.08rem; line-height: 1.75; }
.food-note { margin-top: 1.8rem; padding: 1.35rem 1.5rem; border: 1px solid #d6ddcf; border-radius: 1rem; background: #fff; line-height: 1.7; }
.food-context { background: var(--food-cream); }
.food-section-heading { max-width: 55rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.food-context-grid, .food-comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

.food-context-card {
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid #ded9ce;
  border-radius: 1.2rem;
  background: #fffdf8;
  box-shadow: 0 0.7rem 2rem rgb(54 46 31 / 5%);
}

.food-context-reference { display: inline-block; color: var(--food-green); }
.food-context-card h3 { margin: 0.65rem 0 0.55rem; font-size: 1.2rem; line-height: 1.25; }
.food-context-card p { margin: 0; color: var(--food-muted); line-height: 1.65; }

.food-study-detail { overflow: hidden; border: 1px solid #d8ded4; border-radius: 1.3rem; background: #fff; box-shadow: 0 1rem 3rem rgb(35 55 40 / 8%); }
.food-study-detail > summary { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: 1.2rem 1.4rem; color: #fff; background: var(--food-green); cursor: pointer; font-size: 1rem; font-weight: 800; list-style: none; }
.food-study-detail > summary::-webkit-details-marker { display: none; }
.food-study-icon { position: relative; width: 1.15rem; height: 1.15rem; }
.food-study-icon::before, .food-study-icon::after { position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background: currentcolor; content: ''; }
.food-study-icon::after { transform: rotate(90deg); transition: transform 180ms ease; }
.food-study-detail[open] .food-study-icon::after { transform: rotate(0deg); }
.food-study-copy { max-width: 62rem; margin: 0 auto; padding: clamp(1.25rem, 4vw, 3.5rem); }
.food-study-copy > h3:first-child { margin-top: 0; }

.food-comparison { background: #f2efe8; }
.food-comparison-grid { gap: 1.2rem; }
.food-path-card { position: relative; overflow: hidden; min-height: 21rem; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid; border-radius: 1.4rem; }
.food-path-card::after { position: absolute; right: -2.5rem; bottom: -3.5rem; width: 11rem; height: 11rem; border: 1.8rem solid currentcolor; border-radius: 50%; opacity: 0.06; content: ''; }
.food-path-good { border-color: #9ac5a8; color: #184e36; background: var(--food-green-soft); }
.food-path-bad { border-color: #d6aaa3; color: #7f2f2a; background: var(--food-red-soft); }
.food-path-label { display: inline-flex; gap: 0.45rem; align-items: center; }
.food-path-label span { display: grid; width: 1.45rem; height: 1.45rem; border-radius: 50%; color: #fff; background: currentcolor; place-items: center; }
.food-path-card h3 { max-width: 16ch; margin: 1.8rem 0 1rem; color: currentcolor; font: 600 clamp(1.8rem, 4vw, 2.8rem)/1.08 Georgia, 'Times New Roman', serif; }
.food-path-card p { position: relative; z-index: 1; max-width: 38rem; margin: 0 0 1.5rem; color: #34443a; line-height: 1.72; }
.food-path-bad p { color: #5d3d39; }
.food-path-card cite { font-style: normal; font-weight: 800; }

.food-guide {
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(5rem, 10vw, 9rem);
  background:
    radial-gradient(circle at 8% 10%, rgb(184 222 193 / 55%), transparent 28rem),
    radial-gradient(circle at 94% 82%, rgb(239 198 179 / 50%), transparent 30rem),
    #f6f2e8;
}
.food-guide::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgb(31 84 62 / 11%) 1px, transparent 1px);
  background-size: 1.4rem 1.4rem;
  mask-image: linear-gradient(to bottom, rgb(0 0 0 / 42%), transparent 48%);
  content: '';
}
.food-guide > .container { position: relative; z-index: 1; }
.food-guide-heading, .food-guide-heading > p { color: #17372c; }
.food-guide-heading .eyebrow { color: #a9d4b7; }
.food-guide-list { overflow: hidden; border: 1px solid rgb(255 255 255 / 17%); border-radius: 1.35rem; background: rgb(255 255 255 / 5%); }
.food-guide-row { display: grid; grid-template-columns: minmax(9rem, 0.55fr) repeat(2, minmax(0, 1.5fr)); }
.food-guide-row + .food-guide-row { border-top: 1px solid rgb(255 255 255 / 13%); }
.food-guide-row > h3, .food-guide-cell { margin: 0; padding: clamp(1rem, 2.5vw, 1.5rem); }
.food-guide-row > h3 { display: flex; align-items: center; color: #fff; font-size: 1.02rem; }
.food-guide-cell { position: relative; padding-left: clamp(3.5rem, 5vw, 4.3rem); }
.food-guide-cell + .food-guide-cell { border-left: 1px solid rgb(255 255 255 / 13%); }
.food-guide-fit { background: rgb(47 126 83 / 17%); }
.food-guide-not-fit { background: rgb(160 62 53 / 16%); }
.food-guide-status { position: absolute; top: 1.25rem; left: 1.25rem; display: grid; width: 1.75rem; height: 1.75rem; border-radius: 50%; color: #fff; place-items: center; font-weight: 900; }
.food-guide-fit .food-guide-status { background: #2f8a59; }
.food-guide-not-fit .food-guide-status { background: #b44b42; }
.food-guide-cell > strong { display: block; margin-bottom: 0.45rem; color: #fff; }
.food-guide-cell p { margin: 0; color: #d8e1da; line-height: 1.62; }
.food-guide-sources { margin: 1.2rem 0 0; color: #aebdb3; font-size: 0.9rem; }
.food-back-top { display: inline-flex; gap: 0.45rem; margin-top: 2rem; padding: 0.7rem 1rem; border: 1px solid #b9cdbf; border-radius: 999px; color: #174332; background: rgb(255 255 255 / 72%); font-weight: 800; text-decoration: none; }
.food-back-top:hover { border-color: #6d9a7f; background: #fff; }

@media (max-width: 820px) {
  .food-hero-grid, .food-context-grid, .food-comparison-grid { grid-template-columns: 1fr; }
  .food-hero-visual { max-width: 36rem; }
  .food-guide-row { grid-template-columns: 1fr; }
  .food-guide-row > h3 { padding-bottom: 0.75rem; background: rgb(255 255 255 / 7%); }
  .food-guide-cell + .food-guide-cell { border-top: 1px solid rgb(255 255 255 / 13%); border-left: 0; }
}

@media (max-width: 520px) {
  .food-hero-copy h1 { font-size: clamp(3.8rem, 23vw, 5.4rem); }
  .food-hero-visual::before { display: none; }
  .food-jump-nav { margin-inline: 0; padding-inline: 1rem; }
  .food-study-copy { padding-inline: 1rem; }
}

/* The Food page preserves the original project while improving reading flow. */
.food-original-hero {
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    linear-gradient(90deg, rgb(31 106 73 / 8%) 1px, transparent 1px) 0 0 / 5rem 5rem,
    linear-gradient(0deg, rgb(31 106 73 / 8%) 1px, transparent 1px) 0 0 / 5rem 5rem,
    linear-gradient(135deg, #f8f3e8, #edf1e6);
}

.food-original-hero-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 3vw, 3.25rem);
  align-items: center;
}
.food-original-hero-copy {
  min-width: 0;
  padding-block: clamp(0.5rem, 2vw, 1.5rem);
}
.food-original-hero h1 {
  max-width: 17ch;
  margin: 0.3em 0 0;
  font: 500 clamp(2.55rem, 4vw, 3.9rem)/1.07 Georgia, 'Times New Roman', serif;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.food-original-hero p { margin: 0; color: var(--food-muted); font-size: 1rem; }
.food-original-hero-image {
  display: grid;
  min-height: 0;
  margin: 0;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  border: 1px solid rgb(31 106 73 / 18%);
  border-radius: 1.5rem;
  background: rgb(255 255 255 / 58%);
  box-shadow: 0 1.5rem 3.5rem rgb(34 52 38 / 13%);
  place-items: center;
}
.food-original-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 40rem;
  object-fit: contain;
}

.food-original-article { padding-bottom: clamp(2.5rem, 5vw, 4rem); background: #fbfaf6; }
.food-original-copy { max-width: 58rem; }
.food-original-copy > h2,
.food-original-copy > h3 {
  margin: 3.5rem 0 1.2rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}
.food-original-copy > h3:first-child { margin-top: 0; }
.food-original-copy p,
.food-original-copy li { color: #344039; font-size: 1.06rem; line-height: 1.78; }
.food-original-copy p { margin: 0 0 1.25rem; }
.food-original-copy ul { display: grid; gap: 0.75rem; margin: 1.7rem 0 2rem; padding-left: 1.3rem; }
.food-original-copy li::marker { color: var(--food-green); }
.food-original-copy .food-source-quote,
.food-original-copy blockquote {
  margin: 1.6rem 0;
  padding: 1.2rem 1.35rem;
  border: 0;
  border-left: 4px solid var(--food-green);
  border-radius: 0 0.9rem 0.9rem 0;
  background: #f0f5ed;
  color: #24372b;
}
.food-original-copy .food-source-quote em { font-style: normal; }
.food-original-article .food-original-copy > blockquote:not(.food-major-quote) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 1.8rem 0;
  padding: clamp(1.6rem, 4vw, 2.35rem) clamp(1.5rem, 4vw, 2.6rem);
  border: 1px solid #d7e4d9;
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 94% 12%, rgb(47 126 83 / 9%), transparent 9rem),
    linear-gradient(135deg, #f1f7f0, #fbfcf8);
  box-shadow: 0 1rem 2.6rem rgb(24 66 47 / 9%);
}
.food-original-article .food-original-copy > blockquote:not(.food-major-quote)::before {
  position: absolute;
  z-index: -1;
  top: -1.15rem;
  left: 1rem;
  color: rgb(47 126 83 / 12%);
  content: '“';
  font: 700 7.5rem/1 Georgia, 'Times New Roman', serif;
}
.food-original-article .food-original-copy > blockquote:not(.food-major-quote) > .food-source-quote {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #24372b;
}
.food-major-quote {
  position: relative;
  overflow: hidden;
  margin: 1.35rem 0;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.3rem, 4vw, 2.5rem);
  border: 1px solid #dbe8dc;
  border-radius: 1.25rem;
  background: linear-gradient(115deg, #edf5ec, #f8faf5);
  box-shadow: 0 0.8rem 2rem rgb(24 66 47 / 8%);
}
.food-original-copy .food-major-quote .food-source-quote {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.food-major-quote::after {
  content: '“';
  position: absolute;
  top: -1.7rem;
  right: 1rem;
  color: rgb(47 126 83 / 10%);
  font: 700 9rem/1 Georgia, serif;
}
.food-original-copy .food-major-quote p { position: relative; z-index: 1; margin: 0; color: #17382d; font: 1.08rem/1.75 Georgia, 'Times New Roman', serif; }
.food-original-copy .food-major-quote p + p { margin-top: 0.75rem; }
.food-original-copy .food-major-quote .food-major-quote-reference { margin-top: 1rem; color: #587066; font: 800 0.78rem/1.4 var(--font-sans); letter-spacing: 0.07em; text-transform: uppercase; }

.food-principles-heading { margin: clamp(2.5rem, 6vw, 4.5rem) 0 1.35rem; }
.food-principles-heading span { display: block; margin-bottom: 0.55rem; color: var(--food-green); font-size: 0.76rem; font-weight: 850; letter-spacing: 0.11em; }
.food-original-copy .food-principles-heading h3 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.food-original-copy ul.food-principles-list {
  display: block;
  columns: 2;
  column-gap: 1.15rem;
  margin: 0 0 2.5rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid #dbe6dc;
  border-radius: 2rem;
  background:
    radial-gradient(circle at 8% 5%, rgb(194 221 201 / 50%), transparent 16rem),
    radial-gradient(circle at 92% 92%, rgb(232 213 177 / 38%), transparent 18rem),
    #f1f5ef;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 75%), 0 1.2rem 3rem rgb(24 54 43 / 8%);
}
.food-original-copy .food-principles-list > li {
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: 100%;
  min-height: 0;
  margin: 0 0 1rem;
  padding: 1.4rem 1.55rem;
  border: 1px solid rgb(191 207 195 / 80%);
  border-radius: 1.2rem;
  color: #253c32;
  background: rgb(255 255 252 / 88%);
  box-shadow: 0 0.55rem 1.4rem rgb(34 67 52 / 7%);
  list-style: none;
  break-inside: avoid;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.food-original-copy .food-principles-list > li::before {
  display: none;
}
.food-original-copy .food-principles-list > li::after {
  display: none;
}
.food-original-copy .food-principles-list > li:hover {
  border-color: #9ebbaa;
  background: #fff;
  box-shadow: 0 1rem 2.2rem rgb(24 54 43 / 13%);
  transform: translateY(-3px);
}
.food-original-copy .food-principles-list > li span { position: relative; z-index: 1; color: inherit; }
.food-original-copy img {
  float: right;
  width: min(13rem, 38vw);
  height: auto;
  max-height: 13rem;
  margin: 0.25rem 0 1.4rem 1.5rem;
  object-fit: contain;
}

.food-continue-cue {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 5.5rem;
  margin: clamp(2.5rem, 6vw, 4.5rem) auto -1rem;
  place-items: center;
  text-decoration: none;
}
.food-continue-cue::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #a7c3af 20%, #6e9b7c 50%, #a7c3af 80%, transparent);
  content: '';
}
.food-continue-cue i {
  position: relative;
  z-index: 1;
  display: grid;
  width: 3.5rem;
  aspect-ratio: 1;
  place-items: center;
  border: 5px solid #fbfaf6;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #2c7452, #123d30);
  box-shadow: 0 0.8rem 1.8rem rgb(20 62 48 / 24%);
  font-style: normal;
  font-size: 1.25rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
  animation: food-continue-bounce 2.2s ease-in-out infinite;
}
.food-continue-cue:hover i { box-shadow: 0 1rem 2.2rem rgb(20 62 48 / 32%); transform: translateY(3px) scale(1.06); }
.food-continue-cue:focus-visible { outline: 3px solid rgb(47 126 83 / 35%); outline-offset: 4px; }

@keyframes food-continue-bounce {
  0%, 100% { transform: translateY(-3px); }
  50% { transform: translateY(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .food-continue-cue i { animation: none; }
}

.food-scripture-analysis {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 5%, rgb(207 226 196 / 18%), transparent 28rem),
    #12362e;
}
.food-scripture-analysis::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px);
  background-size: 5rem 5rem;
}
.food-analysis-heading,
.food-analysis-copy { position: relative; z-index: 1; }
.food-analysis-heading { max-width: 58rem; margin: 0 auto 2rem; }
.food-analysis-heading > span {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.48rem 0.8rem;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 999px;
  color: #cce6d7;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.food-analysis-heading h2 {
  max-width: 50rem;
  margin: 0 0 0.85rem;
  color: #fff;
  font: 600 clamp(2rem, 5vw, 3.8rem)/1.05 Georgia, 'Times New Roman', serif;
}
.food-analysis-heading p { max-width: 46rem; margin: 0; color: #d8e7df; font-size: 1.08rem; line-height: 1.7; }
.food-analysis-copy {
  max-width: 64rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.food-analysis-copy > :first-child { margin-top: 0; }
.food-analysis-copy > :last-child { margin-bottom: 0; }
.food-analysis-introduction {
  margin-bottom: 1.25rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 1.25rem;
  background: rgb(255 255 255 / 9%);
}
.food-analysis-introduction p { color: #edf5f0; }
.food-analysis-introduction > :last-child { margin-bottom: 0; }
.food-scripture-cases { display: grid; gap: 1.25rem; }
.food-scripture-case {
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 1.35rem;
  background: #fffdf8;
  box-shadow: 0 1.25rem 3rem rgb(0 0 0 / 16%);
}
.food-scripture-case-heading {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 3vw, 2rem);
  border-bottom: 1px solid #dbe7dc;
  background: linear-gradient(100deg, #eaf3e9, #f7faf4);
}
.food-scripture-case-heading span { color: #557266; font-size: 0.7rem; font-weight: 850; letter-spacing: 0.1em; }
.food-scripture-case-heading h3 { margin: 0; color: #17382d; font: 700 clamp(1.3rem, 3vw, 1.85rem)/1.15 Georgia, 'Times New Roman', serif; }
.food-scripture-case-quote,
.food-scripture-case-explanation { padding: clamp(1.25rem, 3vw, 2rem); }
.food-scripture-case-quote { border-bottom: 1px solid #ece9df; }
.food-scripture-case-quote blockquote,
.food-scripture-case-quote blockquote .food-source-quote {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #243b32;
}
.food-scripture-case-quote blockquote p {
  margin: 0;
  color: #243b32;
  font: italic 1.05rem/1.75 Georgia, 'Times New Roman', serif;
}
.food-scripture-case-quote blockquote p + p { margin-top: 1rem; }
.food-scripture-case-quote blockquote p em,
.food-scripture-case-quote blockquote .food-source-quote em { font-style: inherit; }
.food-scripture-case-quote blockquote u {
  text-decoration-color: #6f917f;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}
.food-scripture-case-explanation { background: #fff; }
.food-scripture-case-explanation > :first-child { margin-top: 0; }
.food-scripture-case-explanation > :last-child { margin-bottom: 0; }
.food-scripture-case-explanation .food-source-quote { margin: 0 0 1.25rem; padding: 0; border: 0; background: transparent; }

.food-original-page .food-comparison { scroll-margin-top: 7rem; }
.food-original-page .food-comparison > .container { max-width: 66rem; }
.food-original-page .food-comparison .food-section-heading { margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.food-original-page .food-comparison .food-section-heading h2 { font-size: clamp(2.35rem, 4vw, 3.35rem); }
.food-original-page .food-comparison-grid { gap: 1rem; }
.food-original-page .food-path-card {
  min-height: 0;
  padding: clamp(1.25rem, 2.4vw, 1.9rem);
  border-radius: 1.15rem;
}
.food-original-page .food-path-card h3 {
  margin-block: 0 0.8rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}
.food-original-page .food-path-card p { font-size: 0.96rem; }
.food-path-source p { position: relative; z-index: 1; margin: 0 0 0.8rem; line-height: 1.6; }
.food-path-source p:last-child { margin-bottom: 0; font-weight: 800; }
.food-path-source .food-source-citation {
  margin-top: 1.15rem;
  color: currentColor;
  font-weight: 800;
}
.food-comparison-conclusion {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: center;
  overflow: hidden;
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  border: 1px solid #36775c;
  border-radius: 1.4rem;
  color: #fff;
  background: linear-gradient(135deg, #153e2e, #226347);
  box-shadow: 0 1.4rem 3.6rem rgb(20 55 40 / 18%);
  animation: food-callout-breathe 4.8s ease-in-out infinite;
}
.food-comparison-conclusion::before {
  position: absolute;
  z-index: 0;
  top: -55%;
  left: -28%;
  width: 24%;
  height: 210%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 16%), transparent);
  content: '';
  pointer-events: none;
  animation: food-callout-shine 5.5s ease-in-out infinite;
}
.food-comparison-conclusion::after {
  position: absolute;
  right: -4rem;
  bottom: -6rem;
  width: 18rem;
  height: 18rem;
  border: 2.4rem solid rgb(255 255 255 / 6%);
  border-radius: 50%;
  content: '';
  animation: food-callout-orbit 6s ease-in-out infinite;
}
.food-callout-mark {
  position: relative;
  z-index: 1;
  display: grid;
  width: clamp(3.6rem, 7vw, 5.5rem);
  height: clamp(3.6rem, 7vw, 5.5rem);
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 50%;
  color: #153e2e;
  background: #d9efdf;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 900;
  place-items: center;
  box-shadow: 0 0 0 0 rgb(217 239 223 / 50%);
  animation: food-callout-check 2.2s ease-in-out infinite;
}
.food-callout-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #d8f2df;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  animation: food-callout-kicker 1.9s ease-in-out infinite;
}
.food-callout-kicker::before {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #e5bd69;
  box-shadow: 0 0 0.8rem #f0d18e;
  content: '';
  animation: food-callout-spark 1.15s ease-in-out infinite;
}
.food-comparison-conclusion h3 { position: relative; z-index: 1; margin: 0.35rem 0 0.8rem; color: #fff; font: 600 clamp(1.8rem, 4vw, 3rem)/1.05 Georgia, 'Times New Roman', serif; }
.food-comparison-conclusion p { position: relative; z-index: 1; max-width: 58rem; margin: 0; color: #edf6f0; font-size: 1.05rem; line-height: 1.75; }

@keyframes food-callout-breathe {
  0%, 100% { border-color: #36775c; box-shadow: 0 1.4rem 3.6rem rgb(20 55 40 / 18%); }
  50% { border-color: #6fb68d; box-shadow: 0 1.6rem 4rem rgb(20 82 55 / 28%), 0 0 0 0.22rem rgb(111 182 141 / 9%); }
}
@keyframes food-callout-shine {
  0%, 18% { left: -28%; opacity: 0; }
  28% { opacity: 1; }
  48%, 100% { left: 112%; opacity: 0; }
}
@keyframes food-callout-orbit {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes food-callout-check {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgb(217 239 223 / 45%); }
  45% { transform: scale(1.06); box-shadow: 0 0 0 0.7rem rgb(217 239 223 / 0%); }
}
@keyframes food-callout-kicker {
  0%, 100% { color: #d8f2df; }
  50% { color: #fff3be; }
}
@keyframes food-callout-spark {
  0%, 100% { opacity: 0.45; transform: scale(0.72); }
  50% { opacity: 1; transform: scale(1.25); }
}

@media (prefers-reduced-motion: reduce) {
  .food-comparison-conclusion,
  .food-comparison-conclusion::before,
  .food-comparison-conclusion::after,
  .food-callout-mark,
  .food-callout-kicker,
  .food-callout-kicker::before { animation: none; }
}

.food-original-guide { display: grid; gap: 1.25rem; }
.food-original-table {
  width: 100%;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #cbd8ce;
  border-radius: 1.2rem;
  color: #213b31;
  background: #fffdf9;
  box-shadow: 0 1.2rem 3rem rgb(31 71 54 / 12%);
}
.food-original-table td { padding: clamp(0.9rem, 2.2vw, 1.35rem); border: 0; border-bottom: 1px solid #dfe6df; line-height: 1.55; }
.food-original-table td + td { border-left: 1px solid #d9e2da; }
.food-original-table tr:last-child td { border-bottom: 0; }
.food-original-table tr:first-child td { color: #17372c; background: #e8eee8; font-size: 0.78rem; letter-spacing: 0.045em; }
.food-original-table tr:first-child td:nth-child(2) { color: #1e6543; background: #dcefe1; }
.food-original-table tr:first-child td:nth-child(3) { color: #8b3e34; background: #f5dfda; }
.food-original-table tr:not(:first-child) td:first-child { color: #17372c; background: #f3f5ef; }
.food-original-table tr:not(:first-child) td:nth-child(2) { background: #edf7ef; }
.food-original-table tr:not(:first-child) td:nth-child(3) { background: #fff0ec; }
.food-original-table tr:not(:first-child):hover td { filter: saturate(1.08) brightness(0.99); }
.food-guide-note { margin: 0; padding: 1.1rem 1.25rem; border: 1px solid #ead4ae; border-radius: 0.9rem; color: #5a4730; background: #fff7e5; line-height: 1.65; }

.food-list-section { overflow: hidden; border: 1px solid #cbd8ce; border-radius: 1.2rem; background: #fffdf9; box-shadow: 0 1rem 2.6rem rgb(31 71 54 / 10%); }
.food-list-section > h3 { margin: 0; padding: 1.05rem 1.3rem; color: #17372c; background: #e8eee8; font-size: 1rem; letter-spacing: 0.035em; }
.food-list-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.food-list-column,
.food-list-single { padding: clamp(1.1rem, 2.5vw, 1.6rem); }
.food-list-column + .food-list-column { border-left: 1px solid #d9e2da; }
.food-list-fit { background: #edf7ef; }
.food-list-not-fit { background: #fff0ec; }
.food-list-status { display: inline-block; margin-bottom: 0.8rem; color: #17372c; font-size: 0.78rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; }
.food-list-not-fit .food-list-status { color: #8b3e34; }
.food-list-column p,
.food-list-single p { margin: 0 0 0.85rem; color: #30483e; line-height: 1.6; }
.food-list-column p:last-child,
.food-list-single p:last-child { margin-bottom: 0; }

@media (max-width: 720px) {
  .food-original-hero-inner { grid-template-columns: 1fr; }
  .food-original-hero-image { max-width: 34rem; }
  .food-original-copy img { float: none; display: block; width: min(12rem, 60vw); max-height: none; margin: 1.2rem auto; }
  .food-original-table,
  .food-original-table tbody,
  .food-original-table tr,
  .food-original-table td { display: block; width: 100%; }
  .food-original-table tr { border-bottom: 1px solid #d9e2da; }
  .food-original-table tr:last-child { border-bottom: 0; }
  .food-original-table td { border-bottom: 0; }
  .food-original-table td + td { border-top: 1px solid #d9e2da; border-left: 0; }
  .food-original-copy ul.food-principles-list { columns: 1; }
  .food-scripture-case-heading { display: block; }
  .food-scripture-case-heading span { display: block; margin-bottom: 0.45rem; }
  .food-original-table tr:first-child td:first-child { display: none; }
  .food-list-columns { grid-template-columns: 1fr; }
  .food-comparison-conclusion { grid-template-columns: 1fr; }
  .food-list-column + .food-list-column { border-top: 1px solid #d9e2da; border-left: 0; }
}

/* Member bookmarks */
[data-bookmark-target] {
  scroll-margin-top: 6rem;
}

.bookmark-target {
  position: relative;
}

.bookmark-button {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 6;
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(13, 64, 83, 0.2);
  border-radius: 50%;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 16px rgba(5, 35, 47, 0.1);
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.bookmark-button:hover {
  border-color: rgba(13, 64, 83, 0.42);
  box-shadow: 0 7px 20px rgba(5, 35, 47, 0.16);
  transform: translateY(-1px);
}

.bookmark-button:focus-visible {
  outline: 3px solid rgba(216, 184, 120, 0.58);
  outline-offset: 3px;
}

.bookmark-button:disabled {
  cursor: wait;
}

.bookmark-button.is-selected {
  border-color: var(--primary-dark);
  color: var(--secondary);
  background: var(--primary-dark);
  box-shadow: 0 7px 20px rgba(5, 35, 47, 0.22);
}

.bookmark-glyph {
  position: relative;
  display: block;
  width: 0.82rem;
  height: 1.08rem;
  border-radius: 1px 1px 0 0;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 74%, 0 100%);
}

.bookmark-glyph::after {
  position: absolute;
  inset: 2px 2px 2.5px;
  content: '';
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 70%, 0 100%);
}

.bookmark-button.is-selected .bookmark-glyph::after {
  display: none;
}

.bookmark-button-details {
  top: 0.9rem;
  right: 3.7rem;
}

.faith-item > summary {
  padding-right: 7rem;
}

.project-reader-chapter > summary {
  padding-right: 5.8rem;
}

.bookmark-target:not(details) > h2:first-of-type,
.bookmark-target:not(details) > h3:first-of-type {
  padding-right: 3rem;
}

.bookmark-heading-host {
  position: relative;
  padding-right: 3.4rem;
}

.bookmark-heading-host > .bookmark-button-section {
  top: 0;
  right: 0;
}

.food-scripture-case > .food-scripture-case-heading.bookmark-heading-host { padding-right: 4.8rem; }
.food-scripture-case > .food-scripture-case-heading.bookmark-heading-host > .bookmark-button-section {
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
}
.food-scripture-case > .food-scripture-case-heading.bookmark-heading-host > .bookmark-button-section:hover {
  transform: translateY(calc(-50% - 1px));
}
.food-guide .food-guide-heading.bookmark-heading-host { padding-right: 4rem; }
.food-guide .food-guide-heading.bookmark-heading-host > .bookmark-button-section {
  top: 0.15rem;
  right: 0;
}

.bookmark-toast {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 1000;
  max-width: min(25rem, calc(100vw - 2rem));
  padding: 0.82rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: #fff;
  background: rgba(13, 64, 83, 0.96);
  box-shadow: 0 18px 48px rgba(5, 26, 34, 0.26);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.7rem);
  transition: opacity 160ms ease, transform 160ms ease;
}

.bookmark-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.member-collection-tabs {
  display: flex;
  gap: 0.55rem;
  margin-top: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 0;
}

.member-collection-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.85rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(13, 64, 83, 0.16);
  border-radius: 999px;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.86);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.member-collection-tabs button[aria-pressed="true"] {
  border-color: var(--primary-dark);
  color: #fff;
  background: var(--primary-dark);
}

.member-collection-tabs strong {
  display: grid;
  min-width: 1.5rem;
  height: 1.5rem;
  padding-inline: 0.3rem;
  place-items: center;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--secondary);
  font-size: 0.72rem;
}

.member-bookmark-library {
  min-height: 56vh;
}

.member-bookmark-library[hidden] {
  display: none;
}

.member-bookmark-heading h2 {
  margin: 0.55rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.member-bookmark-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.member-bookmark-card {
  display: flex;
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 1.8rem);
  flex-direction: column;
  border: 1px solid rgba(13, 64, 83, 0.14);
  border-top: 4px solid var(--secondary);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 38px rgba(13, 64, 83, 0.07);
}

.member-bookmark-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.member-bookmark-meta span {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  color: var(--primary-dark);
  background: rgba(216, 184, 120, 0.22);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.member-bookmark-card h3 {
  margin: 1rem 0 0.7rem;
  color: var(--primary-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.16;
}

.member-bookmark-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.member-bookmark-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 1.25rem;
}

.bookmark-remove-button {
  padding: 0.45rem 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}

.bookmark-remove-button:hover,
.bookmark-remove-button:focus-visible {
  color: #8a302d;
  text-decoration: underline;
}

.member-bookmark-empty {
  margin-top: 2rem;
  padding: 1.4rem;
  border: 1px dashed rgba(13, 64, 83, 0.2);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
}

@media (max-width: 760px) {
  .bookmark-button {
    width: 2.35rem;
    height: 2.35rem;
  }

  .bookmark-button-details {
    top: 0.85rem;
    right: 3.25rem;
  }

  .faith-item > summary {
    padding-right: 6.35rem;
  }

  .project-reader-chapter > summary {
    padding-right: 5.25rem;
  }

  .member-collection-tabs {
    overflow-x: auto;
    padding-bottom: 0.35rem;
  }

  .member-collection-tabs button {
    flex: 0 0 auto;
  }

  .member-bookmark-list {
    grid-template-columns: 1fr;
  }

  .member-bookmark-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.nav-list,
.nav-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-list a,
.nav-submenu-toggle {
  position: relative;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 0.62rem 0.72rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a.is-active,
.nav-list a[aria-current="page"],
.nav-submenu-toggle:hover,
.nav-submenu-toggle:focus-visible,
.nav-group.is-current > .nav-submenu-toggle {
  color: var(--ink);
}

.nav-list > li > a::after,
.nav-list > .nav-group > .nav-submenu-toggle::after {
  content: "";
  position: absolute;
  left: 0.72rem;
  right: 0.72rem;
  bottom: 0.22rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.nav-list > li > a:hover::after,
.nav-list > li > a:focus-visible::after,
.nav-list > li > a[aria-current="page"]::after,
.nav-list > .nav-group > .nav-submenu-toggle:hover::after,
.nav-list > .nav-group > .nav-submenu-toggle:focus-visible::after,
.nav-list > .nav-group.is-current > .nav-submenu-toggle::after {
  transform: scaleX(1);
}

.nav-group {
  position: relative;
}

.nav-submenu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-submenu-toggle span {
  font-size: 0.82rem;
  transition: transform 0.18s ease;
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 50%;
  z-index: 30;
  display: grid;
  min-width: 220px;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-top: 2px solid var(--primary);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -0.35rem);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.nav-submenu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 11px;
  padding: 0.72rem 0.82rem;
}

.nav-submenu a::after {
  content: "→";
  color: var(--primary);
  opacity: 0;
  transform: translateX(-0.25rem);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-submenu a:hover,
.nav-submenu a:focus-visible,
.nav-submenu a[aria-current="page"] {
  background: rgba(141, 110, 79, 0.09);
}

.nav-submenu a:hover::after,
.nav-submenu a:focus-visible::after,
.nav-submenu a[aria-current="page"]::after {
  opacity: 1;
  transform: translateX(0);
}

.nav-submenu-projects {
  grid-template-columns: repeat(2, minmax(250px, 1fr));
  width: min(660px, calc(100vw - 2rem));
  padding: 0.75rem;
}

.nav-submenu-projects.is-single-group {
  grid-template-columns: minmax(260px, 1fr);
  width: min(360px, calc(100vw - 2rem));
}

.nav-submenu-section,
.nav-submenu-section ul {
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-submenu-section {
  padding: 0.2rem;
}

.nav-submenu-section + .nav-submenu-section {
  border-left: 1px solid var(--line);
  padding-left: 0.75rem;
}

.nav-submenu-section-title {
  display: block;
  padding: 0.5rem 0.82rem 0.35rem;
  color: var(--primary-dark);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.nav-group:hover > .nav-submenu,
.nav-group:focus-within > .nav-submenu,
.nav-group.is-open > .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-group.is-open > .nav-submenu-toggle span {
  transform: rotate(180deg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.button,
.button-secondary,
.button-ghost {
  border: 0;
  border-radius: 999px;
  padding: 0.82rem 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.button {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 16px 30px rgba(93, 72, 53, 0.18);
}

.button-secondary {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
}

.button-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}

.button:hover,
.button-secondary:hover,
.button-ghost:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  width: 42px;
  height: 42px;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

main {
  padding-bottom: 4rem;
}

.hero {
  padding: 5.5rem 0 4rem;
}

.hero-shell {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(141, 110, 79, 0.08);
  color: var(--primary-dark);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(141, 110, 79, 0.18);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-top: 1rem;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-panel {
  position: relative;
  min-height: 520px;
  background: linear-gradient(160deg, #f2e7d8 0%, rgba(217, 185, 140, 0.38) 100%);
  border: 1px solid rgba(93, 72, 53, 0.08);
  border-radius: calc(var(--radius) + 12px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card {
  position: absolute;
  inset: 2.2rem 2rem auto 2rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(26, 27, 31, 0.06);
  border-radius: var(--radius);
  padding: 1.25rem;
  backdrop-filter: blur(10px);
}

.hero-card.small {
  inset: auto 2rem 2rem auto;
  width: 72%;
}

.card-tag {
  display: inline-block;
  color: var(--primary-dark);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.hero-card h3 {
  margin: 0.8rem 0 0.5rem;
  font-size: 1.7rem;
}

.metric-grid,
.feature-grid,
.content-grid,
.resource-grid,
.blog-grid,
.calendar-grid,
.book-grid,
.donation-box,
.page-grid {
  display: grid;
  gap: 1.4rem;
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.5rem;
}

.metric {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem;
}

.metric strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

.section {
  padding: 3rem 0;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head p {
  max-width: 60ch;
  color: var(--muted);
}

.feature-grid,
.resource-grid,
.book-grid,
.blog-grid,
.calendar-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.35rem;
  box-shadow: 0 10px 20px rgba(26, 27, 31, 0.02);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: rgba(141, 110, 79, 0.1);
  border-radius: 14px;
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
}

.card h3 {
  margin-top: 0.3rem;
  font-size: 1.2rem;
}

.card p,
.card li,
.page-copy p,
.page-copy li {
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  background: rgba(141, 110, 79, 0.08);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.book-cover {
  min-height: 200px;
  border-radius: 18px;
  margin-bottom: 1rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #d9b98c 0%, #7a5a42 100%);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}

.quote {
  background: linear-gradient(135deg, rgba(141, 110, 79, 0.06), rgba(217, 185, 140, 0.12));
  border: 1px solid rgba(141, 110, 79, 0.12);
  border-radius: var(--radius);
  padding: 2rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  padding: 1.5rem 0 2.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.page-hero {
  padding: 4rem 0 1rem;
}

.page-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.page-copy {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem;
}

.page-aside {
  display: grid;
  gap: 1rem;
}

.side-panel {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.25rem;
}

.book-stack {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  margin-top: 1.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.book-page {
  position: absolute;
  inset: 0;
  background: #fffdf9;
  border: 1px solid rgba(26, 27, 31, 0.08);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: none;
  opacity: 0;
  transform: translateX(30px) rotate(2deg);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.book-page.is-active {
  opacity: 1;
  transform: translateX(0) rotate(0deg);
}

.book-page.is-hidden {
  opacity: 0;
  transform: translateX(-30px) rotate(-2deg);
}

.book-page h4 {
  margin-top: 0;
  font-size: 1.2rem;
}

.book-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.calendar-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event {
  display: flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
}

.event-date {
  min-width: 70px;
  background: rgba(141, 110, 79, 0.1);
  border-radius: 16px;
  text-align: center;
  padding: 0.8rem 0.5rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.donation-box {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.paypal-box {
  background: linear-gradient(145deg, #f6efe7, #fffdf9);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem;
}

.form-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(26, 27, 31, 0.12);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.9);
}

textarea {
  min-height: 130px;
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-grid;
    place-content: center;
  }

  .nav-panel {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - 94px);
    overflow-y: auto;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 18px 18px;
    background: rgba(255, 253, 249, 0.99);
    box-shadow: var(--shadow);
  }

  .nav-panel.is-open {
    display: block;
  }

  .nav-list {
    display: grid;
    align-items: stretch;
    gap: 0.2rem;
  }

  .nav-list > li > a,
  .nav-submenu-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px;
    padding: 0.82rem 0.9rem;
    font-size: 0.96rem;
  }

  .nav-list > li:last-child {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .nav-list > li > a:hover,
  .nav-list > li > a:focus-visible,
  .nav-list > li > a[aria-current="page"],
  .nav-group.is-current > .nav-submenu-toggle {
    background: rgba(141, 110, 79, 0.09);
  }

  .nav-submenu {
    position: static;
    display: none;
    min-width: 0;
    margin: 0.1rem 0 0.35rem 0.7rem;
    padding: 0 0 0 0.65rem;
    border: 0;
    border-left: 1px solid rgba(141, 110, 79, 0.25);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .nav-group:hover > .nav-submenu,
  .nav-group:focus-within > .nav-submenu {
    display: none;
    transform: none;
  }

  .nav-group.is-open > .nav-submenu,
  .nav-group.is-current > .nav-submenu {
    display: grid;
  }

  .nav-submenu-projects,
  .nav-submenu-projects.is-single-group {
    grid-template-columns: 1fr;
    width: auto;
    padding: 0.2rem 0;
  }

  .nav-submenu-section + .nav-submenu-section {
    margin-top: 0.5rem;
    padding-top: 0.55rem;
    padding-left: 0.2rem;
    border-top: 1px solid rgba(141, 110, 79, 0.2);
    border-left: 0;
  }

}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.footer-links > a {
  padding-left: 0.9rem;
  border-left: 1px solid var(--line);
  color: var(--primary-dark);
  font-weight: 800;
}

.footer-links > a:hover,
.footer-links > a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

/* Private member and administration surfaces. */
.private-header {
  position: relative;
}

.private-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.private-nav a,
.private-nav button {
  border-radius: 999px;
  border: 0;
  padding: 0.55rem 0.85rem;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.private-nav a:hover,
.private-nav a:focus-visible,
.private-nav button:hover,
.private-nav button:focus-visible {
  background: rgba(23, 100, 122, 0.08);
  color: var(--ink);
}

.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 12%, rgba(216, 184, 120, 0.24), transparent 24rem),
    linear-gradient(145deg, #edf6f5, #fffdf8 65%);
}

.login-main {
  display: grid;
  min-height: calc(100vh - 84px);
  place-items: center;
  padding: clamp(2rem, 7vw, 6rem) 1rem;
}

.login-card {
  width: min(100%, 560px);
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid rgba(13, 64, 83, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 24px 80px rgba(13, 64, 83, 0.12);
}

.login-card h1 {
  margin: 0.8rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.login-lead,
.login-sent {
  color: var(--muted);
  line-height: 1.7;
}

.login-google {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.google-mark {
  display: inline-grid;
  width: 1.45rem;
  height: 1.45rem;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #4285f4;
  font-family: Arial, sans-serif;
  font-weight: 800;
}

.login-privacy {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.login-email-auth[hidden],
.login-form[hidden] {
  display: none;
}

.login-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.8rem;
  align-items: center;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.login-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.login-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
}

.login-form input {
  width: 100%;
  border: 1px solid rgba(13, 64, 83, 0.22);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.login-form input[name="code"] {
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3em;
  text-align: center;
}

.login-change-email {
  justify-self: center;
  border: 0;
  padding: 0.25rem;
  background: transparent;
  color: var(--primary-dark);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
  cursor: pointer;
}

.login-fallback {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.login-fallback a {
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.member-hero,
.admin-intro {
  background:
    radial-gradient(circle at 82% 15%, rgba(216, 184, 120, 0.22), transparent 22rem),
    linear-gradient(140deg, #eff6f5, #fffdf8 68%);
}

.member-hero-grid,
.admin-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}

.member-hero h1,
.admin-intro h1 {
  max-width: 13ch;
  margin: 1rem 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.member-hero .lead,
.admin-intro p {
  max-width: 62ch;
}

.member-identity,
.admin-account {
  display: grid;
  gap: 0.35rem;
  padding: 1.4rem;
  border: 1px solid rgba(13, 64, 83, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.member-identity span,
.admin-account span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.member-identity strong,
.admin-account strong {
  overflow-wrap: anywhere;
}

.member-library {
  min-height: 56vh;
}

.member-loading,
.member-access-message {
  margin-top: 2rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(13, 64, 83, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--muted);
}

.admin-intro {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.admin-intro h1 {
  max-width: 14ch;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
}

.admin-workspace {
  padding-top: 2.5rem;
}

.admin-workspace > .container {
  width: min(1480px, calc(100% - 4rem));
}

.admin-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.admin-tabs {
  position: sticky;
  top: 1.5rem;
  display: grid;
  gap: 0.45rem;
}

.admin-tabs button {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.65rem;
  align-items: center;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 0.85rem;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.admin-tabs button[aria-pressed="true"] {
  border-color: rgba(13, 64, 83, 0.14);
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.admin-tabs button span {
  color: var(--primary);
  font-size: 0.7rem;
}

.admin-content {
  min-width: 0;
}

.admin-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.admin-panel-head h2 {
  margin: 0.7rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 500;
  line-height: 1;
}

.admin-panel-head p {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
}

.admin-notice {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #e3f2ec;
  color: #174f3d;
  font-weight: 700;
}

.admin-notice[data-kind="error"] {
  background: #fbe8e4;
  color: #7b2d22;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.admin-metrics article {
  display: grid;
  gap: 0.2rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.admin-metrics strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

.admin-metrics span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-inline-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.35fr) auto;
  gap: 0.8rem;
  align-items: end;
  margin: 1.5rem 0;
  padding: 1.2rem;
  border-radius: 18px;
  background: var(--primary-dark);
}

.admin-inline-form label,
.reflection-editor label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.admin-inline-form label {
  color: rgba(255, 255, 255, 0.72);
}

.admin-inline-form .button {
  min-height: 3rem;
  white-space: nowrap;
}

.admin-inline-form input,
.admin-inline-form select,
.reflection-editor select,
.admin-table select {
  min-height: 3rem;
  border: 1px solid rgba(26, 27, 31, 0.14);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
}

.admin-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  white-space: normal;
}

.admin-table th:nth-child(1),
.admin-table td:nth-child(1) { width: 24%; }
.admin-table th:nth-child(2),
.admin-table td:nth-child(2) { width: 16%; }
.admin-table th:nth-child(3),
.admin-table td:nth-child(3) { width: 26%; }
.admin-table th:nth-child(4),
.admin-table td:nth-child(4) { width: 14%; }
.admin-table th:nth-child(5),
.admin-table td:nth-child(5) { width: 20%; }

.admin-table td:first-child {
  overflow-wrap: anywhere;
}

.admin-table select {
  width: 100%;
  min-width: 0;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-application-cell {
  min-width: 0;
  max-width: 430px;
}

.admin-application summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary-dark);
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
  cursor: pointer;
}

.admin-application dl {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 0;
}

.admin-application dl div {
  display: grid;
  gap: 0.15rem;
}

.admin-application dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-application dd {
  margin: 0;
  line-height: 1.45;
}

.status-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.25;
  white-space: nowrap;
  text-transform: capitalize;
}

.status-approved { background: #dcefe7; color: #155641; }
.status-pending { background: #f5ead1; color: #6b4b0d; }
.status-blocked { background: #f5dfdb; color: #7b2d22; }

.reflection-admin-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.38fr) minmax(0, 1fr);
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.admin-record-list {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  max-height: 680px;
  overflow-y: auto;
}

.admin-record {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-record:hover,
.admin-record:focus-visible {
  border-color: var(--primary);
}

.admin-record span {
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-record p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.reflection-editor {
  display: grid;
  gap: 1rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.reflection-editor textarea {
  min-height: 280px;
  resize: vertical;
}

.editor-row {
  display: grid;
  grid-template-columns: 1fr 0.75fr 0.45fr 0.7fr;
  gap: 0.8rem;
}

.editor-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .private-header .header-inner,
  .member-hero-grid,
  .admin-intro-grid,
  .admin-layout,
  .reflection-admin-grid {
    grid-template-columns: 1fr;
  }

  .private-header .header-inner {
    display: grid;
    padding: 0.7rem 0;
  }

  .private-nav {
    width: 100%;
    overflow-x: auto;
  }

  .admin-tabs {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-inline-form,
  .editor-row {
    grid-template-columns: 1fr;
  }

  .admin-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .admin-workspace > .container {
    width: min(100% - 2rem, 1480px);
  }
}

@media (max-width: 1280px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-tabs {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .admin-table,
  .admin-table tbody {
    display: block;
  }

  .admin-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .admin-table tbody {
    display: grid;
    gap: 0.8rem;
  }

  .admin-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.2rem 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
  }

  .admin-table td,
  .admin-table td:nth-child(n) {
    display: grid;
    gap: 0.25rem;
    width: auto;
    max-width: none;
    padding: 0.55rem 0;
    border: 0;
  }

  .admin-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .admin-table td[colspan]::before {
    display: none;
  }

  .admin-application-cell {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links > a {
    padding-left: 0;
    border-left: 0;
  }

  .admin-metrics {
    grid-template-columns: 1fr;
  }

  .admin-table tr {
    grid-template-columns: 1fr;
  }

  .admin-application-cell {
    grid-column: auto;
  }
}

@media (max-width: 860px) {
  .hero-shell,
  .page-grid,
  .donation-box,
  .feature-grid,
  .resource-grid,
  .content-grid,
  .book-grid,
  .blog-grid,
  .calendar-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .nav-actions {
    display: none;
  }
}
/* Shared language navigation generated for every localized page. */
.language-switcher {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.08rem;
  padding: 0.16rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(141, 110, 79, 0.04);
}

.language-switcher a {
  display: grid;
  min-width: 2rem;
  min-height: 1.85rem;
  place-items: center;
  padding: 0.16rem 0.38rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.language-switcher a:hover,
.language-switcher a:focus-visible {
  color: var(--primary-dark);
  background: rgba(23, 100, 122, 0.09);
}

.language-switcher a.is-current,
.language-switcher a[aria-current="page"] {
  color: #fff;
  background: var(--primary);
}

.language-switcher a:focus-visible {
  outline: 2px solid rgba(23, 100, 122, 0.35);
  outline-offset: 2px;
}

.language-entry {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1.5rem;
  padding: 2rem;
  text-align: center;
}

.language-entry nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.language-entry a {
  padding: 0.8rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  text-decoration: none;
}

@media (max-width: 1080px) {
  .language-switcher {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .header-inner {
    width: min(1360px, calc(100% - 1rem));
    gap: 0.45rem;
  }

  .language-switcher {
    gap: 0;
    padding: 0.12rem;
  }

  .language-switcher a {
    min-width: 1.72rem;
    min-height: 1.78rem;
    padding-inline: 0.22rem;
    font-size: 0.62rem;
  }
}

/* Ukrainian project pages keep long source texts readable inside the new site. */
.uk-project-page {
  min-height: 70vh;
}

.uk-project-hero {
  padding-bottom: 1.5rem;
}

.uk-project-hero-inner {
  max-width: 880px;
}

.uk-project-hero h1 {
  max-width: 18ch;
  margin: 0.7rem 0 1.1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 6vw, 5rem);
  line-height: 0.98;
}

.uk-project-body {
  padding-top: 1rem;
}

.uk-project-layout {
  display: grid;
  gap: 1.5rem;
  max-width: 920px;
}

.uk-project-copy,
.uk-project-chapters {
  padding: clamp(1.2rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.uk-project-copy > :first-child,
.uk-project-chapters > :first-child {
  margin-top: 0;
}

.uk-project-copy > :last-child,
.uk-project-chapters > :last-child {
  margin-bottom: 0;
}

.uk-project-copy h1,
.uk-project-copy h2,
.uk-project-copy h3,
.uk-project-copy h4 {
  margin-top: 2rem;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.uk-project-copy a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.uk-project-visual,
.uk-project-gallery {
  margin: 0;
}

.uk-project-visual {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.uk-project-visual img {
  width: 100%;
  height: auto;
}

.uk-project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.uk-project-chapters h2 {
  margin-bottom: 1rem;
}

.uk-project-chapter {
  border-top: 1px solid var(--line);
}

.uk-project-chapter summary {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 1rem 0;
  font-weight: 800;
  cursor: pointer;
}

.uk-project-chapter summary span {
  color: var(--primary);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.uk-project-chapter .uk-project-copy {
  margin: 0 0 1.25rem;
  padding: 1.25rem;
  border-radius: 16px;
  background: var(--bg);
  box-shadow: none;
}

@media (max-width: 680px) {
  .uk-project-gallery {
    grid-template-columns: 1fr;
  }
}

/* Long-form project reader */
.project-reader-page {
  min-height: 70vh;
}

.project-reader-hero {
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  background:
    radial-gradient(circle at 86% 20%, rgba(184, 140, 69, 0.16), transparent 28rem),
    linear-gradient(180deg, rgba(248, 244, 235, 0.74), rgba(255, 255, 255, 0));
}

.project-reader-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.55fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: end;
}

.project-reader-hero h1 {
  max-width: 12ch;
  margin: 0.7rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.project-reader-hero .lead {
  max-width: 680px;
  margin: 0;
}

.project-reader-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(160px, 1.55fr);
  gap: 0.75rem;
  margin: 0;
}

.project-reader-stats div {
  min-width: 0;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.project-reader-stats dt {
  color: var(--primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.project-reader-stats dd {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.project-reader-introduction {
  padding-top: 0;
}

.project-reader-introduction-copy {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.way-truth-life-project .project-reader-introduction-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 290px);
  column-gap: 1.0625rem;
  max-width: 1180px;
  padding-right: 1.5rem;
}

.way-truth-life-project .project-reader-introduction-copy > h2,
.way-truth-life-project .project-reader-introduction-copy > blockquote {
  grid-column: 1;
}

.way-truth-life-project .project-reader-introduction-copy > :not(h2):not(blockquote):not(figure) {
  grid-column: 1 / -1;
}

.project-reader-book-cover {
  position: relative;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  width: calc(100% - 5px);
  margin: 0.75rem 0 2rem;
  filter: drop-shadow(9px 17px 14px rgba(25, 48, 60, 0.18));
}

.project-reader-book-cover::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  width: 12px;
  background: linear-gradient(90deg, rgba(20, 42, 54, 0.36), rgba(20, 42, 54, 0.1) 45%, transparent);
  border-right: 1px solid rgba(255, 255, 255, 0.38);
  pointer-events: none;
}

.project-reader-book-cover img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 2px 1px 0 #f9f5ec, 5px 3px 0 #d8d2c6,
    14px 21px 29px rgba(16, 42, 55, 0.24);
}

@media (max-width: 740px) {
  .way-truth-life-project .project-reader-introduction-copy {
    grid-template-columns: minmax(0, 1fr);
    padding-right: clamp(1.5rem, 5vw, 3.5rem);
  }

  .project-reader-book-cover {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    width: min(58vw, 220px);
    margin: 0 0 1.5rem;
  }

  .way-truth-life-project .project-reader-introduction-copy > blockquote {
    grid-row: 3;
  }
}

.project-reader-introduction-copy > :first-child {
  margin-top: 0;
}

.project-reader-introduction-copy > :last-child {
  margin-bottom: 0;
}

.project-reader-introduction-copy h2 {
  margin: 0 0 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.project-reader-introduction-copy blockquote {
  position: relative;
  margin: 0 0 2rem;
  padding: 2rem 2rem 1.5rem 4.5rem;
  border: 1px solid #d9e6ea;
  border-left: 4px solid var(--primary);
  border-radius: 0 18px 18px 0;
  background: #f8fbfc;
}

.project-reader-introduction-copy blockquote::before {
  content: "“";
  position: absolute;
  top: 0.25rem;
  left: 1.1rem;
  color: #4b8190;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.5rem;
  line-height: 1;
}

.project-reader-introduction-copy blockquote p {
  margin: 0 0 0.7rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2.5vw, 1.28rem);
  font-style: italic;
  line-height: 1.65;
}

.project-reader-introduction-copy blockquote cite {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 700;
  text-align: right;
}

@media (max-width: 600px) {
  .project-reader-introduction-copy blockquote {
    padding: 1.6rem 1.1rem 1.2rem 2.8rem;
  }

  .project-reader-introduction-copy blockquote::before {
    left: 0.55rem;
    font-size: 4rem;
  }
}

.project-definitions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 2rem 0 0;
}

.project-definitions div {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}

.project-definitions dt {
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.project-definitions dd {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.way-truth-life-project .project-reader-hero {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.way-truth-life-project .project-reader-hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
}

.project-reader-introduction-copy > p {
  line-height: 1.75;
}

.project-reader-intro-notes {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.project-reader-intro-notes p {
  margin: 0 0 0.45rem;
}

.project-reader-intro-next {
  margin-top: 1.5rem;
  font-weight: 700;
}

.project-reader-key {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.project-reader-key h3 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
}

.project-reader-key p {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
  line-height: 1.35;
}

.project-reader-key img {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

.project-reader-body {
  padding-top: 1rem;
}

.project-reader-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.project-reader-toolbar p {
  margin: 0;
  color: var(--muted);
}

.project-reader-toolbar > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.project-reader-toolbar .button-secondary {
  min-height: 42px;
  padding: 0.65rem 0.95rem;
}

.project-reader-toolbar .button-secondary:disabled {
  cursor: default;
  opacity: 0.42;
}

.project-reader-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.34fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
}

.project-reader-toc {
  scroll-margin-top: 6rem;
}

.project-reader-toc-inner {
  position: sticky;
  top: 6.5rem;
  max-height: calc(100vh - 8rem);
  padding: 1.25rem;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-reader-toc section + section {
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.project-reader-toc h3 {
  margin: 0.7rem 0 0.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.project-reader-toc ol {
  display: grid;
  gap: 0.22rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-reader-toc a {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.45rem;
  padding: 0.48rem 0.5rem;
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.35;
  text-decoration: none;
}

.project-reader-toc a:hover,
.project-reader-toc a:focus-visible {
  background: rgba(59, 128, 189, 0.08);
  color: var(--primary-dark);
}

.project-reader-toc a span {
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.way-truth-life-project .project-reader-toc a[aria-current="location"] {
  background: #e1eff2;
  color: var(--primary-dark);
  box-shadow: inset 3px 0 0 var(--primary);
  font-weight: 700;
}

.way-truth-life-project .project-reader-toc a[aria-current="location"] span {
  color: var(--primary-dark);
}

/* Introduction links have no chapter-number column. */
.way-truth-life-project .project-reader-toc p > a {
  display: block;
}

@media (min-width: 1081px) {
  .way-truth-life-reader .nav-submenu-projects {
    left: auto;
    right: 0;
    transform: translateY(-0.35rem);
  }

  .way-truth-life-reader .nav-group:hover > .nav-submenu-projects,
  .way-truth-life-reader .nav-group:focus-within > .nav-submenu-projects,
  .way-truth-life-reader .nav-group.is-open > .nav-submenu-projects {
    transform: translateY(0);
  }
}

.project-reader-content {
  min-width: 0;
}

.project-reader-part {
  scroll-margin-top: 6rem;
}

.project-reader-part + .project-reader-part {
  margin-top: clamp(3rem, 8vw, 7rem);
}

.project-reader-part-head {
  margin-bottom: 1rem;
  padding: clamp(1.3rem, 4vw, 2.2rem);
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(140deg, var(--primary-dark), var(--primary));
  box-shadow: var(--shadow);
}

.project-reader-part-head > span {
  display: block;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-reader-part-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
}

.project-reader-part-intro {
  max-width: 760px;
  margin-top: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
}

.project-reader-part-intro p {
  margin: 0.65rem 0 0;
}

.project-reader-part-intro.bookmark-target > p:first-of-type {
  padding-right: 3rem;
}

.project-reader-part-head-with-cover {
  padding: 0;
  border-radius: 0;
  color: #223543;
  background: none;
  box-shadow: none;
}

.project-reader-part-head-with-cover > span {
  margin: 0 0 0.8rem;
  color: #185775;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.project-reader-part-cover {
  max-width: 48rem;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0.55rem;
  background: #3a3a3c;
  box-shadow: 0 16px 40px rgba(23, 45, 58, 0.16);
}

.project-reader-part-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.project-reader-part-head-with-cover .project-reader-part-intro {
  max-width: 48rem;
  margin: 1.4rem auto 1.8rem;
  padding: 1.15rem 1.35rem;
  border-left: 3px solid #236573;
  color: #31444e;
  background: #f3f8f8;
}

:is(#part-1, #part-2) .project-reader-part-cover {
  max-width: 34rem;
}

:is(#part-1, #part-2) .project-reader-part-head-with-cover .project-reader-part-intro {
  max-width: 70rem;
  margin-top: 1rem;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  font-size: 1.08rem;
  line-height: 1.75;
}

:is(#part-1, #part-2) .project-reader-part-intro p {
  margin: 0 0 1rem;
}

:is(#part-1, #part-2) .project-reader-part-intro p.project-reader-part-intro-verse {
  margin: 1.15rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid #c9dfe7;
  border-left: 4px solid #46859a;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 6px 16px rgba(24, 73, 89, 0.06);
  line-height: 1.7;
}

:is(#part-1, #part-2) .project-reader-part-intro-notes {
  margin-top: 1.4rem;
  padding-top: 0.75rem;
  border-top: 1px solid #cbdde2;
  font-size: 0.9rem;
}

:is(#part-1, #part-2) .project-reader-part-intro-notes p:last-child {
  margin-bottom: 0;
}

.project-reader-chapters {
  display: grid;
  gap: 0.8rem;
}

.project-reader-chapter {
  scroll-margin-top: 6rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(28, 37, 44, 0.05);
}

.project-reader-chapter[open] {
  border-color: rgba(59, 128, 189, 0.35);
}

.project-reader-chapter summary {
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr) 1.5rem;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 1.1rem;
  cursor: pointer;
  list-style: none;
}

.project-reader-chapter summary::-webkit-details-marker {
  display: none;
}

.project-reader-chapter summary:hover,
.project-reader-chapter summary:focus-visible {
  background: rgba(59, 128, 189, 0.055);
}

.project-reader-chapter-number {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.project-reader-chapter-title {
  font-weight: 780;
  line-height: 1.25;
}

.project-reader-chapter-icon {
  position: relative;
  width: 1.1rem;
  height: 1.1rem;
}

.project-reader-chapter-icon::before,
.project-reader-chapter-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.8rem;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  content: "";
  transform: translate(-50%, -50%);
}

.project-reader-chapter-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 160ms ease;
}

.project-reader-chapter[open] .project-reader-chapter-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.project-reader-chapter-copy {
  padding: clamp(1.1rem, 4vw, 2.2rem);
  border-top: 1px solid var(--line);
  font-size: clamp(0.98rem, 1.4vw, 1.06rem);
  line-height: 1.72;
}

.project-reader-chapter-copy > :first-child {
  margin-top: 0;
}

.project-reader-chapter-copy > :last-child {
  margin-bottom: 0;
}

.project-reader-chapter-copy h3 {
  margin: 2.5rem 0 1rem;
  padding-top: 0.25rem;
  color: var(--primary-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.2;
}

.project-reader-chapter-copy p {
  overflow-wrap: anywhere;
}

.project-command {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  gap: 0.45rem;
  margin: 1.1rem 0;
}

.project-command-number {
  color: var(--primary);
  font-weight: 850;
}

.project-reader-icon-preview .project-command-unit {
  position: relative;
  margin: 1.4rem 0;
  padding: 1.2rem 0.2rem 0.85rem;
  border-top: 1px solid #c9d8df;
}

.project-reader-icon-preview .project-reader-chapter-copy {
  color: #223543;
}

.project-reader-icon-preview .project-command-unit::after {
  position: absolute;
  top: 1.15rem;
  right: 4.55rem;
  bottom: 0.6rem;
  width: 1px;
  background: #d4dde0;
  content: '';
  pointer-events: none;
}

.project-reader-icon-preview .project-command {
  position: relative;
  grid-template-columns: 3.1rem minmax(0, 1fr);
  align-items: start;
  margin: 0;
  padding: 0;
}

.project-reader-icon-preview .project-command-number {
  display: inline-flex;
  width: 3.05rem;
  height: 2.25rem;
  align-items: center;
  gap: 0.12rem;
  color: #064a7c;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.project-reader-icon-preview .project-command-number::before {
  display: block;
  flex: 0 0 1.65rem;
  width: 1.65rem;
  height: 2.25rem;
  background: url('../images/source-torah-scroll.svg?v=scroll-4') center / contain no-repeat;
  content: '';
  filter: drop-shadow(0 2px 3px rgba(15, 58, 88, 0.18));
}

.project-reader-icon-preview .project-command > span:last-child {
  padding-right: 4.8rem;
  color: #152d3b;
  font-size: 1.1em;
  font-weight: 400;
  line-height: 1.68;
}

.project-reader-icon-preview .project-command-compound .project-command-passages {
  min-width: 0;
  padding-right: 4.8rem;
  color: #152d3b;
  font-size: 1.1em;
  font-weight: 400;
  line-height: 1.68;
}

.project-reader-icon-preview .project-command-compound .project-command-passage::before {
  position: absolute;
  top: 0.4rem;
  bottom: 0.35rem;
  left: -2.43rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(18, 94, 142, 0.76), rgba(18, 94, 142, 0.48) 85%, transparent);
  content: '';
  pointer-events: none;
}

.project-reader-icon-preview .project-command-compound .project-command-passage:first-child::before {
  top: 2.65rem;
}

.project-reader-icon-preview .project-command-compound .project-command-passage {
  position: relative;
  margin: 0 0 1rem;
  padding: 0;
}

.project-reader-icon-preview .project-command-compound .project-command-passage:last-child {
  margin-bottom: 0;
}

.project-reader-icon-preview .project-command-compound .project-passage-copy {
  display: block;
}

.project-reader-icon-preview .project-command-compound .project-passage-reference {
  position: absolute;
  top: 0.28rem;
  right: -4.8rem;
  width: 4.2rem;
  color: #74828a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.66rem;
  font-weight: 400;
  line-height: 1.25;
  text-align: right;
}

.project-reader-icon-preview .project-passage-reference-secondary {
  display: block;
  margin-top: 0.2rem;
  font-style: italic;
}

.project-reader-icon-preview .project-source-ancient.project-source-start::before,
.project-reader-icon-preview .project-source-apostolic.project-source-start::before,
.project-reader-icon-preview .project-comment-group::before {
  display: inline-block;
  width: 2.25rem;
  height: 2.25rem;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: '';
  filter: drop-shadow(0 2px 3px rgba(42, 53, 54, 0.16));
}

.project-reader-icon-preview .project-source-ancient.project-source-start::before {
  background-image: url('../images/source-menorah.svg?v=balanced-5');
}

.project-reader-icon-preview .project-source-apostolic.project-source-start::before {
  background-image: url('../images/source-red-book.svg?v=book-4');
}

.project-reader-icon-preview p.project-source-ancient + p.project-source-ancient::before,
.project-reader-icon-preview p.project-source-apostolic + p.project-source-apostolic::before {
  display: none;
  content: none;
}

.project-reader-icon-preview .project-comment-group::before {
  background-image: url('../images/source-comment.svg?v=note-4');
}

.project-reader-icon-preview p.project-source-ancient,
.project-reader-icon-preview p.project-source-apostolic {
  position: relative;
  margin: 0;
  padding: 0.38rem 4.8rem 0.38rem 3.1rem;
  color: #596770;
  font-size: 0.95em;
  font-weight: 400;
  line-height: 1.68;
}

.project-reader-icon-preview p.project-source-ancient::after,
.project-reader-icon-preview p.project-source-apostolic::after {
  position: absolute;
  top: 0.55rem;
  bottom: 0.55rem;
  left: 1.58rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(20, 103, 124, 0.62) 22%, rgba(20, 103, 124, 0.62) 78%, transparent);
  content: '';
  pointer-events: none;
}

.project-reader-icon-preview p.project-source-ancient.project-source-start::after,
.project-reader-icon-preview p.project-source-apostolic.project-source-start::after {
  top: 3.1rem;
}

.project-reader-icon-preview p.project-source-ancient::after {
  background: linear-gradient(180deg, transparent, rgba(170, 118, 22, 0.66) 22%, rgba(170, 118, 22, 0.66) 78%, transparent);
}

.project-reader-icon-preview p.project-source-apostolic::after {
  background: linear-gradient(180deg, transparent, rgba(164, 59, 66, 0.66) 22%, rgba(164, 59, 66, 0.66) 78%, transparent);
}

.project-reader-icon-preview .project-comment-group {
  position: relative;
  margin: 0.85rem 4.8rem 0.85rem 0;
  padding: 0.65rem 0.75rem 0.65rem 3.1rem;
  border: 1px solid #cbdcbc;
  border-radius: 0.35rem;
  background: #e9f2e3;
}

.project-reader-icon-preview .project-comment-group p {
  margin: 0 0 0.6rem;
  font-size: 0.98em;
  line-height: 1.68;
  overflow-wrap: break-word;
}

.project-reader-icon-preview .project-comment-group p:last-child {
  margin-bottom: 0;
}

/* Quotations belong to the author comment; the green group keeps its one icon. */
.project-reader-icon-preview .project-comment-group .project-comment-quote {
  display: block;
  margin: 0.8rem 0;
  padding: 0.85rem 1.1rem;
  border: 1px solid #d4dfce;
  border-left: 3px solid #8a9f7d;
  border-radius: 0 10px 10px 0;
  background: #f8faf5;
  color: #4d6158;
  font-size: 0.98em;
  font-weight: 400;
  line-height: 1.7;
  box-shadow: 0 2px 5px rgba(48, 73, 42, 0.035);
}

.project-reader-icon-preview .project-comment-group p > .project-comment-quote:only-child {
  margin: 0.7rem 0;
}

.project-reader-icon-preview .project-holiday-comparison {
  display: grid;
  grid-template-columns: minmax(11rem, 32%) minmax(0, 1fr);
  align-items: start;
  gap: 1.1rem;
  margin: 1rem 0;
}

.project-reader-icon-preview .project-holiday-comparison figure {
  margin: 0;
}

.project-reader-icon-preview .project-holiday-comparison a,
.project-reader-icon-preview .project-holiday-comparison img {
  display: block;
  width: 100%;
}

.project-reader-icon-preview .project-holiday-comparison img {
  height: auto;
  border: 1px solid #cbd5ce;
  border-radius: 0.35rem;
}

.project-reader-cross-reference {
  color: #125779;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.project-reader-cross-reference:hover,
.project-reader-cross-reference:focus-visible {
  color: #083e5c;
  text-decoration-thickness: 2px;
}

.project-reader-icon-preview .project-command.project-has-margin-reference > span:last-child > strong:first-child,
.project-reader-icon-preview .project-command.project-has-margin-reference > span:last-child > .project-editorial-change > strong:first-child,
.project-reader-icon-preview p.project-has-margin-reference > .project-editorial-change > strong:first-child,
.project-reader-icon-preview p.project-has-margin-reference > strong:first-child {
  position: absolute;
  top: 0.32rem;
  right: 0.15rem;
  width: 4.2rem;
  color: #74828a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.66rem;
  font-weight: 400;
  line-height: 1.25;
  text-align: right;
}

.way-truth-life-project .project-reader-chapter-copy p strong {
  font-weight: 400;
}

/* Keep review marks visible in the newly imported chapters, including margin
   references and numbers; the approved Part I remains in its reading colors. */
.way-truth-life-project .project-reader-chapter.project-reader-icon-preview.project-editorial-review .project-editorial-change,
.way-truth-life-project .project-reader-chapter.project-reader-icon-preview.project-editorial-review .project-editorial-change * {
  color: #c32424;
}

.project-reader-icon-preview.project-editorial-review .project-reader-chapter-copy > h3.project-editorial-heading {
  background: linear-gradient(90deg, #e7f1f4 0%, #eff5f6 65%, transparent 100%);
}

.project-reader-icon-preview p.project-source-start {
  margin-top: 0.55rem;
}

.project-reader-icon-preview p.project-source-ancient.project-source-start::before,
.project-reader-icon-preview p.project-source-apostolic.project-source-start::before,
.project-reader-icon-preview .project-comment-group::before {
  position: absolute;
  top: 0.38rem;
  left: 0.46rem;
}

.project-reader-icon-preview .project-comment-group::before {
  top: 0.65rem;
}

.project-reader-icon-preview .project-source-help {
  position: absolute;
  z-index: 1;
  top: 0.38rem;
  left: 0.46rem;
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  cursor: help;
}

.project-reader-icon-preview .project-command-number {
  position: relative;
}

.project-reader-icon-preview .project-command-number > .project-source-help {
  top: 0;
  left: 0;
  width: 1.65rem;
}

.project-reader-icon-preview .project-comment-group > .project-source-help {
  top: 0.65rem;
}

.project-reader-key img[title] {
  cursor: help;
}

html[lang="en"] .way-truth-life-project .project-reader-icon-preview .project-reader-chapter-number::before {
  content: 'CHAPTER';
}

.project-reader-icon-preview .project-reader-chapter-copy p {
  overflow-wrap: break-word;
}

.project-reader-icon-preview .project-reader-chapter-copy > h3 {
  padding: 0.75rem 1.15rem;
  border-left: 0;
  color: #f8fbfa;
  background: linear-gradient(90deg, #174758 0%, #236573 58%, rgba(35, 101, 115, 0.56) 80%, transparent 100%);
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.project-reader-icon-preview .project-reader-chapter-copy > h3.project-festival-heading {
  padding-block: 0.85rem 0.95rem;
}

.project-festival-heading-detail {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.86em;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

.project-festival-heading-detail strong,
.project-festival-heading-detail em {
  font-style: normal;
  font-weight: inherit;
}

.way-truth-life-project .project-reader-chapter.project-reader-icon-preview.project-editorial-review h3.project-festival-heading .project-editorial-change,
.way-truth-life-project .project-reader-chapter.project-reader-icon-preview.project-editorial-review h3.project-festival-heading .project-editorial-change * {
  color: #ffd2cb;
}

.project-festival-conclusion {
  margin: 1.65rem 0 2.4rem;
  padding: 1.2rem 1.45rem;
  border-left: 3px solid #5e8791;
  border-radius: 0 0.35rem 0.35rem 0;
  color: #263c44;
  background: linear-gradient(100deg, #f1f7f8, #f8fbfb 66%, #fff);
}

.project-festival-conclusion p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.65;
}

.project-reader-icon-preview .project-reader-table-wrap {
  margin: 1.1rem 4.8rem 1.5rem 3.1rem;
  overflow-x: auto;
  border: 1px solid #d6e0e4;
  border-radius: 0.4rem;
}

.project-reader-icon-preview .project-reader-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84em;
  line-height: 1.45;
}

.project-reader-icon-preview .project-reader-table th,
.project-reader-icon-preview .project-reader-table td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid #d6e0e4;
  text-align: left;
  white-space: nowrap;
}

.project-reader-icon-preview .project-reader-table th {
  color: #174758;
  background: #edf4f5;
  font-weight: 700;
}

.project-reader-icon-preview .project-reader-table tr:last-child td {
  border-bottom: 0;
}

.project-note {
  margin-left: clamp(0.5rem, 4vw, 3rem);
  padding: 0.85rem 1rem;
  border-left: 3px solid rgba(59, 128, 189, 0.35);
  color: var(--muted);
  background: rgba(59, 128, 189, 0.05);
}

.project-underline {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.project-reader-figure {
  margin: 0 0 2rem;
}

#part-1-chapter-4 .project-reader-figure {
  width: min(100%, 42rem);
  margin: 2.5rem auto 1.5rem;
}

#part-1-chapter-7 .project-reader-figure {
  margin-right: 4.8rem;
}

#part-2-chapter-9 .project-reader-figure {
  width: min(76%, 40rem);
  margin: 1.75rem auto 2rem;
}

.project-reader-inline-figure {
  width: auto;
  margin: 2.25rem 4.8rem 2.25rem 3.1rem;
}

.project-reader-ending-figure {
  width: min(100%, 42rem);
  margin: 2.5rem auto 1.5rem;
}

.project-reader-ending-figure a {
  display: block;
}

.project-reader-ending-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.project-reader-chapter-illustration {
  position: relative;
  container-type: inline-size;
  --art-frame-padding: 0.4rem;
  width: min(100%, 64rem);
  margin: 0 auto 1.8rem;
  padding: var(--art-frame-padding);
  border: 1px solid rgba(29, 46, 52, 0.15);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(25, 52, 65, 0.08);
}

.way-truth-life-project .project-reader-icon-preview > summary {
  grid-template-columns: 5.25rem minmax(0, 1fr) 1.5rem;
  background: linear-gradient(90deg, #eaf5f7 0%, #fff 80%);
  box-shadow: inset 4px 0 0 #236573;
}

.way-truth-life-project .project-reader-icon-preview .project-reader-chapter-number {
  display: flex;
  align-items: baseline;
  gap: 0.28rem;
  font-size: 0.9rem;
}

.way-truth-life-project .project-reader-icon-preview .project-reader-chapter-number::before {
  content: "ГЛАВА";
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.way-truth-life-project .project-reader-icon-preview .project-reader-chapter-title {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.way-truth-life-project .project-reader-icon-preview .project-reader-chapter-illustration {
  width: min(100%, 34rem);
  margin-bottom: 1.4rem;
}

.way-truth-life-project .project-reader-icon-preview .project-reader-chapter-art-title {
  font-size: 4.7cqw;
}

.way-truth-life-project .project-reader-icon-preview .project-reader-chapter-art-title-long {
  font-size: 3.9cqw;
}

.project-reader-chapter-illustration img {
  display: block;
  width: 100%;
  height: auto;
}

.project-reader-chapter-art-title {
  position: absolute;
  z-index: 1;
  top: var(--art-frame-padding);
  left: var(--art-frame-padding);
  display: block;
  box-sizing: border-box;
  width: var(--art-title-width);
  height: var(--art-title-height);
  padding: 2.4% 2.5% 0 4.1%;
  color: #3a3a3c;
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 4.7cqw;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  overflow-wrap: normal;
  text-transform: uppercase;
}

.project-reader-chapter-art-title::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--chapter-art-bg);
  content: "";
}

.project-reader-chapter-art-title-long {
  font-size: 3.9cqw;
  line-height: 1.08;
}

.project-reader-chapter-illustration[data-art-number="6"] .project-reader-chapter-art-title::before {
  clip-path: polygon(0 0, 100% 0, 80% 50%, 55% 100%, 0 100%);
}

.project-reader-chapter-illustration[data-art-number="4"] .project-reader-chapter-art-title::before,
.project-reader-chapter-illustration[data-art-number="23"] .project-reader-chapter-art-title::before,
.project-reader-chapter-illustration[data-art-number="24"] .project-reader-chapter-art-title::before {
  clip-path: polygon(0 0, 100% 0, 100% 28%, 70% 100%, 0 100%);
}

.project-reader-chapter-illustration[data-art-number="4"] .project-reader-chapter-art-title::before {
  clip-path: polygon(0 0, 100% 0, 100% 55%, 80% 100%, 0 100%);
}

.project-reader-figure a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.project-reader-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.project-reader-figure figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.project-table-wrap {
  margin: 1.5rem 0;
  overflow-x: auto;
}

.project-table-wrap table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.project-table-wrap td {
  padding: 0.7rem;
  border: 1px solid var(--line);
  vertical-align: top;
}

.project-table-wrap tr:first-child td {
  color: #fff;
  background: var(--primary-dark);
}

.project-table-note {
  margin-top: 0.7rem;
  color: var(--muted);
}

.project-reader-back-link {
  display: inline-flex;
  gap: 0.35rem;
  margin-top: 2rem;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

@media (max-width: 960px) {
  .project-reader-hero-grid,
  .project-reader-layout {
    grid-template-columns: 1fr;
  }

  .project-reader-toc-inner {
    position: static;
    max-height: none;
  }

  .project-reader-toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .project-reader-chapter-illustration {
    --art-frame-padding: 0.25rem;
  }

  .way-truth-life-project .project-reader-icon-preview > summary {
    grid-template-columns: minmax(0, 1fr) 1.2rem;
    gap: 0.2rem 0.5rem;
  }

  .way-truth-life-project .project-reader-icon-preview .project-reader-chapter-number {
    grid-column: 1;
    grid-row: 1;
  }

  .way-truth-life-project .project-reader-icon-preview .project-reader-chapter-title {
    grid-column: 1;
    grid-row: 2;
  }

  .way-truth-life-project .project-reader-icon-preview .project-reader-chapter-icon {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .project-reader-hero h1 {
    font-size: clamp(2.8rem, 16vw, 4.6rem);
  }

  .project-reader-stats {
    grid-template-columns: 1fr;
  }

  .project-reader-stats div {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    align-items: center;
    gap: 0.7rem;
  }

  .project-reader-stats dd {
    margin: 0;
  }

  .project-definitions,
  .project-reader-toc ol {
    grid-template-columns: 1fr;
  }

  .project-reader-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-reader-toolbar > div,
  .project-reader-toolbar .button-secondary {
    width: 100%;
  }

  .project-reader-chapter summary {
    grid-template-columns: 2rem minmax(0, 1fr) 1.2rem;
    gap: 0.5rem;
  }

  .project-command {
    grid-template-columns: 1.7rem minmax(0, 1fr);
  }

  .project-reader-icon-preview .project-command {
    grid-template-columns: 3.1rem minmax(0, 1fr);
  }

  .project-reader-icon-preview .project-command-number {
    width: 3.05rem;
    height: 2.25rem;
  }

  .project-reader-icon-preview .project-reader-chapter-copy > h3 {
    background: linear-gradient(90deg, #174758 0%, #236573 80%, rgba(35, 101, 115, 0.9) 96%, transparent 100%);
  }

  .project-reader-icon-preview .project-command-unit::after {
    display: none;
  }

  .project-reader-icon-preview .project-command > span:last-child {
    padding-right: 0;
  }

  .project-reader-icon-preview .project-command-compound .project-command-passages {
    padding-right: 0;
  }

  .project-reader-icon-preview .project-command-compound .project-command-passage::before {
    left: -2.43rem;
  }

  .project-reader-icon-preview .project-command-compound .project-passage-reference {
    position: static;
    display: block;
    width: auto;
    margin-bottom: 0.2rem;
    color: #879193;
    font-size: 0.72rem;
    text-align: left;
  }

  .project-reader-icon-preview p.project-source-ancient,
  .project-reader-icon-preview p.project-source-apostolic {
    padding-right: 0;
    padding-left: 2.8rem;
  }

  .project-reader-icon-preview .project-comment-group {
    margin-right: 0;
    padding-left: 2.8rem;
  }

  .project-reader-icon-preview .project-holiday-comparison {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  #part-1-chapter-7 .project-reader-figure {
    margin-right: 0;
  }

  #part-2-chapter-9 .project-reader-figure {
    width: min(92%, 32rem);
  }

  .project-reader-inline-figure {
    width: 94%;
    margin-right: auto;
    margin-left: auto;
  }

  .project-reader-icon-preview .project-reader-table-wrap {
    margin-right: 0;
    margin-left: 0;
  }

  .project-reader-icon-preview .project-command.project-has-margin-reference > span:last-child,
  .project-reader-icon-preview p.project-has-margin-reference {
    padding-right: 0;
  }

  .project-reader-icon-preview .project-command.project-has-margin-reference > span:last-child > strong:first-child,
  .project-reader-icon-preview .project-command.project-has-margin-reference > span:last-child > .project-editorial-change > strong:first-child,
  .project-reader-icon-preview p.project-has-margin-reference > .project-editorial-change > strong:first-child,
  .project-reader-icon-preview p.project-has-margin-reference > strong:first-child {
    position: static;
    width: auto;
    border: 0;
    color: #879193;
    font-family: inherit;
    font-size: 0.78rem;
    line-height: inherit;
    text-align: inherit;
  }
}

/* The book reader uses the viewport while keeping its chapter list close at hand. */
.way-truth-life-project .project-reader-body > .container {
  width: min(1580px, calc(100% - 2.5rem));
}

.way-truth-life-project .project-reader-layout {
  grid-template-columns: clamp(320px, 24vw, 360px) minmax(0, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

.way-truth-life-project .project-reader-toc a {
  grid-template-columns: 2.15rem minmax(0, 1fr);
  gap: 0.55rem;
  padding: 0.55rem 0.6rem;
  font-size: 0.82rem;
  line-height: 1.4;
}

.way-truth-life-project .project-reader-toc {
  position: sticky;
  top: 5.5rem;
  align-self: start;
  z-index: 9;
}

.way-truth-life-project .project-reader-toc-inner {
  position: static;
  max-height: calc(100dvh - 6.5rem);
}

.way-truth-life-project .project-reader-toc-toggle {
  display: none;
}

@media (max-width: 960px) {
  .way-truth-life-project .project-reader-body > .container {
    width: min(860px, calc(100% - 1.5rem));
  }

  .way-truth-life-project .project-reader-layout {
    display: block;
  }

  .way-truth-life-project .project-reader-toc {
    top: 4.7rem;
    margin-bottom: 0.9rem;
  }

  .way-truth-life-project .project-reader-toc-toggle {
    display: flex;
    width: 100%;
    min-height: 3rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    background: var(--surface);
    box-shadow: 0 6px 18px rgba(28, 37, 44, 0.08);
    color: var(--primary-dark);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
  }

  .way-truth-life-project .project-reader-toc-toggle-icon {
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 160ms ease;
  }

  .way-truth-life-project .project-reader-toc.is-open .project-reader-toc-toggle-icon {
    transform: rotate(180deg);
  }

  .way-truth-life-project .project-reader-toc-inner {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    left: 0;
    display: none;
    max-height: min(65dvh, 35rem);
    padding: 1rem;
    overflow: auto;
    box-shadow: 0 16px 36px rgba(28, 37, 44, 0.16);
  }

  .way-truth-life-project .project-reader-toc.is-open .project-reader-toc-inner {
    display: block;
  }

  .way-truth-life-project .project-reader-chapter,
  .way-truth-life-project .project-reader-part {
    scroll-margin-top: 8.25rem;
  }
}

/* Movement of Truth identity and imported content */
.brand-logo {
  width: 54px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-name {
  display: none;
  font-size: 0.84rem;
  line-height: 1.2;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.home-hero {
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(circle at 82% 18%, rgba(93, 174, 200, 0.18), transparent 31rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent);
}

.home-hero-shell {
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(2rem, 5vw, 5.5rem);
}

.home-hero .hero-copy h1 {
  max-width: 11ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 6vw, 5.7rem);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.home-hero .lead {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.identity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 2rem;
}

.identity-list span {
  padding: 0.42rem 0.72rem;
  border-left: 2px solid var(--secondary);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wisdom-motto {
  position: relative;
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 15% 50%, rgba(216, 184, 120, 0.18), transparent 24rem),
    var(--primary-dark);
  color: #fff;
}

.wisdom-motto-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.2rem);
  align-items: center;
  padding-block: clamp(2.4rem, 5vw, 4.3rem);
}

.wisdom-motto-inner > span {
  color: var(--secondary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.5rem, 9vw, 8rem);
  line-height: 0.55;
}

.wisdom-motto blockquote {
  max-width: 32ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3.2vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.church-preview {
  position: relative;
  display: block;
  padding: 1rem;
  border: 1px solid rgba(23, 100, 122, 0.15);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 28px 70px rgba(13, 64, 83, 0.15);
  transform: rotate(1.2deg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.church-preview:hover,
.church-preview:focus-visible {
  transform: rotate(0) translateY(-4px);
  box-shadow: 0 34px 82px rgba(13, 64, 83, 0.2);
}

.church-preview img {
  width: 100%;
  aspect-ratio: 1 / 1.02;
  border-radius: 23px;
  object-fit: cover;
}

.church-preview-label,
.church-preview-action {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(13, 64, 83, 0.18);
}

.church-preview-label {
  top: -0.8rem;
  left: 1.8rem;
  padding: 0.55rem 0.85rem;
  background: var(--primary-dark);
  color: #fff;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.church-preview-action {
  right: 1.8rem;
  bottom: -0.8rem;
  padding: 0.62rem 0.92rem;
  background: var(--panel);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.identity-statement {
  border-block: 1px solid rgba(23, 100, 122, 0.12);
  background: var(--primary-dark);
  color: #fff;
  padding: 3.5rem 0;
}

.identity-statement-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.identity-statement .section-number {
  color: rgba(255, 255, 255, 0.35);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.2rem;
  line-height: 1;
}

.identity-statement .eyebrow {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #dff6ff;
}

.identity-statement h2 {
  margin-top: 1rem;
  max-width: 18ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.5vw, 3.3rem);
  font-weight: 500;
}

.identity-statement p {
  margin: 3rem 0 0;
  color: rgba(255, 255, 255, 0.75);
}

.church-structure-section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.church-structure-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(440px, 1.22fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.church-structure-copy h2,
.section-head-split h2,
.start-section h2,
.archive-callout h2,
.invitation-card h2,
.archive-hero h1 {
  margin-top: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.structure-principles {
  display: grid;
  gap: 0;
  margin-top: 2.25rem;
  border-top: 1px solid var(--line);
}

.structure-principles article {
  display: grid;
  grid-template-columns: 2.3rem 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.structure-principles article > span {
  color: var(--primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

.structure-principles h3,
.structure-principles p {
  margin: 0;
}

.structure-principles p {
  color: var(--muted);
  font-size: 0.93rem;
}

.church-structure-figure {
  position: sticky;
  top: 7rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(23, 100, 122, 0.14);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 26px 64px rgba(13, 64, 83, 0.13);
}

.church-structure-figure img {
  width: 100%;
  border-radius: 19px;
}

.church-structure-figure figcaption {
  padding: 0.85rem 0.25rem 0.15rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.studies-section {
  background: rgba(226, 236, 238, 0.62);
  border-block: 1px solid rgba(23, 100, 122, 0.1);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section-head-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.65fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.4rem;
}

.section-head-split h2 {
  max-width: 17ch;
}

.section-head-split p {
  margin: 0 0 0.7rem;
}

.study-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(23, 100, 122, 0.12);
  border-radius: 26px;
  background: rgba(23, 100, 122, 0.13);
}

.study-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  min-height: 250px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: rgba(255, 254, 251, 0.96);
}

.study-card-featured {
  background: var(--primary-dark);
  color: #fff;
}

.study-card .study-index {
  color: var(--primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.study-card-featured .study-index,
.study-card-featured .card-tag {
  color: #9ee7fa;
}

.study-card h3 {
  margin-top: 0.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  font-weight: 500;
}

.study-card p {
  color: var(--muted);
}

.study-card-featured p {
  color: rgba(255, 255, 255, 0.72);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
  color: var(--primary-dark);
  font-weight: 800;
}

.study-card-featured .text-link {
  color: #fff;
}

.start-section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.start-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: clamp(2.5rem, 6vw, 6rem);
}

.start-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.start-steps li {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 1.2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.start-steps li > span {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border-radius: 50%;
  background: var(--panel-strong);
  color: var(--primary-dark);
  font-weight: 850;
}

.start-steps strong {
  font-size: 1.1rem;
}

.start-steps p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.archive-callout-section {
  padding-top: 0;
}

.archive-callout,
.invitation-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-radius: 30px;
  padding: clamp(2rem, 5vw, 4rem);
}

.archive-callout {
  border: 1px solid rgba(23, 100, 122, 0.12);
  background: linear-gradient(135deg, rgba(226, 236, 238, 0.9), rgba(255, 254, 251, 0.9));
}

.archive-callout h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
}

.archive-callout p {
  max-width: 62ch;
  color: var(--muted);
}

.invitation-section {
  padding-bottom: 2rem;
}

.invitation-card {
  display: block;
  background: var(--primary-dark);
  color: #fff;
  text-align: center;
}

.invitation-card .eyebrow {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #dff6ff;
}

.invitation-card h2 {
  max-width: 20ch;
  margin-inline: auto;
}

.invitation-card p {
  max-width: 62ch;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.72);
}

.invitation-card .hero-actions {
  justify-content: center;
}

/* Statement of Faith */
.faith-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) 0;
  background:
    linear-gradient(90deg, rgba(255, 254, 251, 0.94), rgba(255, 254, 251, 0.68)),
    radial-gradient(circle at 78% 38%, rgba(216, 184, 120, 0.34), transparent 28rem),
    #edf4f3;
}

.faith-hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: max(5vw, calc((100vw - 1180px) / 2));
  width: min(27vw, 370px);
  aspect-ratio: 1;
  border: 1px solid rgba(23, 100, 122, 0.18);
  border-radius: 50%;
  box-shadow: inset 0 0 0 42px rgba(255, 255, 255, 0.22), inset 0 0 0 43px rgba(23, 100, 122, 0.1);
  transform: translateY(-50%);
}

.faith-hero-inner {
  position: relative;
  z-index: 1;
}

.faith-hero h1 {
  max-width: 13ch;
  margin: 1rem 0 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6.5vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.faith-hero .lead {
  max-width: 68ch;
}

.faith-section {
  padding-block: clamp(3.5rem, 7vw, 7rem);
}

.faith-shell {
  max-width: 980px;
}

.faith-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.faith-intro span {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.faith-intro p {
  margin: 0;
  color: var(--muted);
}

.faith-accordion {
  display: grid;
  gap: 0.8rem;
}

.faith-item {
  overflow: clip;
  border: 1px solid rgba(23, 100, 122, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 32px rgba(13, 64, 83, 0.04);
}

.faith-item[open] {
  border-color: rgba(23, 100, 122, 0.28);
  background: #fff;
  box-shadow: 0 18px 46px rgba(13, 64, 83, 0.08);
}

.faith-item summary {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1.2rem 3.5rem 1.2rem 1.25rem;
  color: var(--primary-dark);
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faith-item summary::-webkit-details-marker {
  display: none;
}

.faith-item summary::after {
  content: "+";
  position: absolute;
  right: 1.35rem;
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 400;
}

.faith-item[open] summary::after {
  content: "−";
}

.faith-number {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-dark);
  color: var(--secondary);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.faith-answer {
  padding: 0 2rem 2rem 5.25rem;
  color: #354951;
  line-height: 1.78;
}

.faith-answer p:first-child,
.faith-answer ul:first-child,
.faith-answer ol:first-child {
  margin-top: 0;
}

.faith-answer li + li {
  margin-top: 0.55rem;
}

.faith-legacy-content {
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid rgba(23, 100, 122, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  color: #354951;
  line-height: 1.72;
}

.faith-legacy-content > ul,
.faith-legacy-content > ol {
  margin: 0;
  padding-left: 1.35rem;
}

.faith-legacy-content li + li {
  margin-top: 0.9rem;
}

.faith-legacy-content ol {
  padding: 1rem 1rem 1rem 2.5rem;
  border-left: 3px solid var(--secondary);
  background: var(--panel-strong);
}

/* Public reflections subscription */
.reflections-gateway-hero {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  background:
    radial-gradient(circle at 84% 18%, rgba(216, 184, 120, 0.32), transparent 25rem),
    linear-gradient(145deg, #eef6f5, #faf4e9);
}

.reflections-gateway-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.68fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}

.reflections-gateway-grid > * {
  min-width: 0;
}

.reflections-gateway-hero h1 {
  max-width: 11ch;
  margin: 1rem 0 1.35rem;
  font-family: Georgia, "Times New Roman", serif;
  overflow-wrap: anywhere;
  font-size: clamp(2.65rem, 6vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.reflections-gateway-hero .lead {
  max-width: 58ch;
}

.subscription-card {
  padding: clamp(1.7rem, 4vw, 2.8rem);
  border: 1px solid rgba(23, 100, 122, 0.16);
  border-radius: 2rem 0.5rem 2rem 0.5rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 30px 70px rgba(13, 64, 83, 0.14);
}

.subscription-card h2 {
  margin: 1rem 0 0.75rem;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.subscription-action {
  width: 100%;
  margin-top: 0.9rem;
}

.subscription-member-login {
  width: 100%;
  margin-top: 0.65rem;
  text-align: center;
}

.subscription-member-login[hidden] {
  display: none;
}

.subscription-action[aria-disabled="true"] {
  opacity: 0.65;
  pointer-events: none;
}

.subscription-status {
  min-height: 2.8em;
  margin: 1rem 0 0.5rem;
  color: #53666d;
  font-size: 0.88rem;
}

.subscription-logout {
  display: block;
  margin: 0 0 0.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(23, 100, 122, 0.32);
  text-underline-offset: 0.22rem;
  cursor: pointer;
}

.subscription-logout[hidden] {
  display: none;
}

.subscription-logout:hover,
.subscription-logout:focus-visible {
  text-decoration-color: currentColor;
}

.subscription-logout:disabled {
  opacity: 0.55;
  cursor: wait;
}

.subscription-support-link {
  color: var(--primary-dark);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(23, 100, 122, 0.32);
  text-underline-offset: 0.22rem;
}

.application-section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background: rgba(255, 255, 255, 0.42);
}

.application-shell {
  max-width: 900px;
}

.application-shell .section-heading {
  max-width: 680px;
}

.application-shell .section-heading p {
  color: var(--muted);
}

.application-form {
  margin-top: 2rem;
  padding: clamp(1.25rem, 4vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.application-email {
  margin: 0 0 1.5rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: var(--panel-strong);
  color: var(--muted);
}

.application-email strong {
  color: var(--ink);
}

.application-questions {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: application-question;
}

.application-questions li {
  position: relative;
  padding: 1.35rem 0 1.35rem 3.4rem;
  border-top: 1px solid var(--line);
  counter-increment: application-question;
}

.application-questions li::before {
  content: counter(application-question, decimal-leading-zero);
  position: absolute;
  top: 1.5rem;
  left: 0;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.application-questions label {
  display: grid;
  gap: 0.55rem;
}

.application-questions label > span {
  font-weight: 800;
  line-height: 1.35;
}

.application-questions input,
.application-questions select,
.application-questions textarea {
  width: 100%;
  border: 1px solid rgba(26, 27, 31, 0.16);
  border-radius: 12px;
  padding: 0.78rem 0.9rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.application-questions textarea {
  min-height: 8rem;
  resize: vertical;
}

.application-questions input:focus-visible,
.application-questions select:focus-visible,
.application-questions textarea:focus-visible {
  border-color: var(--primary);
  outline: 3px solid rgba(23, 100, 122, 0.16);
}

.application-submit {
  min-width: min(100%, 230px);
  margin-top: 0.8rem;
}

.application-submit:disabled {
  opacity: 0.62;
  cursor: wait;
}

.application-privacy {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.subscription-explainer {
  padding-block: clamp(4rem, 8vw, 7rem);
}

@media (max-width: 620px) {
  .application-questions li {
    padding-left: 2.3rem;
  }
}

.subscription-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 2.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
}

.subscription-steps li {
  display: grid;
  min-height: 230px;
  align-content: space-between;
  padding: clamp(1.4rem, 3vw, 2.3rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.subscription-steps li > span {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.subscription-steps h3 {
  margin-bottom: 0.55rem;
}

.subscription-steps p {
  margin: 0;
  color: #53666d;
}

/* Reflections and Revelations */
.reflections-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) 0;
  background:
    radial-gradient(circle at 82% 22%, rgba(216, 184, 120, 0.28), transparent 24rem),
    linear-gradient(145deg, #eff6f5, #f8f3e9);
}

.reflections-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}

.reflections-hero h1 {
  max-width: 12ch;
  margin: 1rem 0 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.reflections-hero .lead {
  max-width: 66ch;
}

.reflection-orbit {
  position: relative;
  display: grid;
  min-height: 390px;
  place-items: center;
  border: 1px solid rgba(23, 100, 122, 0.18);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.95) 0 24%, rgba(226,236,238,.68) 25% 49%, transparent 50%);
  box-shadow: 0 30px 75px rgba(13, 64, 83, 0.13), inset 0 0 0 34px rgba(255,255,255,.32);
}

.reflection-orbit::before,
.reflection-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(216, 184, 120, 0.7);
  border-radius: 50%;
}

.reflection-orbit::before { inset: 15%; }
.reflection-orbit::after { inset: 31%; background: var(--primary-dark); box-shadow: 0 0 0 12px rgba(216,184,120,.12); }

.reflection-orbit span {
  position: absolute;
  z-index: 1;
  padding: 0.52rem 0.75rem;
  border-radius: 999px;
  background: var(--panel);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(13,64,83,.12);
}

.reflection-orbit span:nth-child(1) { top: 10%; left: 13%; }
.reflection-orbit span:nth-child(2) { top: 22%; right: 6%; }
.reflection-orbit span:nth-child(3) { right: 27%; bottom: 8%; }

.reflection-purpose {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.reflection-purpose-heading h2 {
  max-width: 15ch;
}

.reflection-source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.reflection-source-grid article {
  min-height: 280px;
  padding: clamp(1.5rem, 3vw, 2.3rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
}

.reflection-source-grid article > span {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  margin-bottom: 3rem;
  border-radius: 50%;
  background: var(--primary-dark);
  color: var(--secondary);
  font-size: 0.72rem;
  font-weight: 850;
}

.reflection-source-grid h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 500;
}

.reflection-source-grid p {
  color: var(--muted);
}

.reflection-library {
  padding-top: 0;
  background: linear-gradient(180deg, rgba(255, 254, 251, 0) 0, #f5f1e8 10rem);
}

.reflection-library-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  padding-bottom: clamp(1.8rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(13, 64, 83, 0.16);
}

.reflection-library-head h2 {
  max-width: 15ch;
  margin: 0.9rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 4.5vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.reflection-view-switch {
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  gap: 0.3rem;
  padding: 0.35rem;
  border: 1px solid rgba(13, 64, 83, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
}

.reflection-view-switch button,
.reflection-topic-list button,
.reflection-year-list button,
.reflection-month-list button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.reflection-view-switch button {
  min-height: 2.65rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.reflection-view-switch button[aria-pressed="true"] {
  background: var(--primary-dark);
  color: #fff;
}

.reflection-topic-tools,
.reflection-time-tools {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
  border-bottom: 1px solid rgba(13, 64, 83, 0.16);
}

.reflection-topic-tools[hidden],
.reflection-time-tools[hidden],
.reflection-entry[hidden],
.reflection-no-results[hidden] {
  display: none;
}

.reflection-search {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr);
  gap: 1rem;
  align-items: center;
  max-width: 620px;
  margin-bottom: 1.25rem;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reflection-search input {
  min-height: 3rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(13, 64, 83, 0.18);
  border-radius: 999px;
  outline: 0;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.reflection-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23, 100, 122, 0.11);
}

.reflection-topic-list,
.reflection-year-list,
.reflection-month-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.reflection-topic-list button,
.reflection-year-list button,
.reflection-month-list button {
  min-height: 2.35rem;
  padding: 0.4rem 0.82rem;
  border: 1px solid rgba(13, 64, 83, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.reflection-topic-list button[aria-pressed="true"],
.reflection-year-list button[aria-pressed="true"],
.reflection-month-list button[aria-pressed="true"] {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  color: #fff;
}

.reflection-month-list button:disabled {
  cursor: default;
  opacity: 0.3;
}

.reflection-time-tools {
  display: grid;
  gap: 1.25rem;
}

.reflection-time-row {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.reflection-time-row > span {
  padding-top: 0.45rem;
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reflection-month-list button {
  min-width: 3.6rem;
  text-transform: capitalize;
}

.reflection-time-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.reflection-entry-list {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  padding-top: clamp(2rem, 5vw, 4rem);
}

.reflection-entry {
  position: relative;
  grid-column: 1 / -1;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 6vw, 5rem);
  border-radius: 0 6rem 0 6rem;
  background:
    radial-gradient(circle at 88% 18%, rgba(216, 184, 120, 0.24), transparent 14rem),
    var(--primary-dark);
  color: #fff;
}

.reflection-entry::after {
  content: "“";
  position: absolute;
  top: 0.6rem;
  right: 2rem;
  color: var(--secondary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(7rem, 13vw, 12rem);
  line-height: 1;
}

.reflection-entry-meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reflection-entry time {
  display: none;
}

.reflection-entry-title {
  display: none;
}

.reflection-entry-body {
  position: relative;
  z-index: 1;
  max-width: 18ch;
  margin: 4rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-transform: uppercase;
  text-wrap: balance;
}

.reflection-entry[data-form="dialogue"] .reflection-entry-body,
.reflection-entry[data-form="story"] .reflection-entry-body {
  max-width: 32ch;
  font-size: clamp(1.55rem, 3vw, 2.6rem);
  text-transform: none;
}

.reflection-entry[data-form="essay"] {
  min-height: 0;
  border: 1px solid rgba(13, 64, 83, 0.14);
  border-radius: 0 3rem 0 3rem;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.reflection-entry[data-form="essay"]::after {
  display: none;
}

.reflection-entry[data-form="essay"] .reflection-entry-meta {
  color: var(--muted);
}

.reflection-entry[data-form="essay"] .reflection-entry-title {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 24ch;
  margin: clamp(2rem, 5vw, 4rem) 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}

.reflection-entry[data-form="essay"] .reflection-entry-body {
  max-width: none;
  margin-top: clamp(2rem, 4vw, 3rem);
  font-family: inherit;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 450;
  letter-spacing: 0;
  line-height: 1.75;
  text-transform: none;
  text-wrap: pretty;
  white-space: pre-line;
}

.reflection-essay-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: normal;
}

.reflection-essay-points li {
  position: relative;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  min-height: 100%;
  padding: clamp(1.2rem, 2.5vw, 1.75rem);
  border: 1px solid rgba(13, 64, 83, 0.11);
  border-radius: 0.35rem 1.5rem 0.35rem 1.5rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(13, 64, 83, 0.06);
}

.reflection-point-number {
  display: grid;
  width: 3.25rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-dark);
  color: var(--secondary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.reflection-essay-points p,
.reflection-essay-conclusion p {
  margin: 0;
}

.reflection-essay-conclusion {
  position: relative;
  overflow: hidden;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 0.35rem 2rem 0.35rem 2rem;
  background: var(--primary-dark);
  color: #fff;
  white-space: normal;
}

.reflection-essay-conclusion::after {
  content: "";
  position: absolute;
  width: 10rem;
  height: 10rem;
  top: -5rem;
  right: -3rem;
  border: 1px solid rgba(216, 184, 120, 0.42);
  border-radius: 50%;
  box-shadow: 0 0 0 2.5rem rgba(216, 184, 120, 0.06);
}

.reflection-essay-conclusion strong {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .reflection-essay-points {
    grid-template-columns: 1fr;
  }

  .reflection-essay-points li {
    grid-template-columns: 2.7rem minmax(0, 1fr);
  }

  .reflection-point-number {
    width: 2.7rem;
  }
}

.reflection-entry[data-form="scheme"] {
  min-height: 280px;
  border-radius: 0;
  background: #e3ecec;
  color: var(--ink);
}

.reflection-entry[data-form="project"] {
  min-height: 0;
  display: block;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(13, 64, 83, 0.14);
  border-radius: 0.5rem 3rem 0.5rem 3rem;
  background: #f4f0e7;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.reflection-entry[data-form="project"]::after {
  display: none;
}

.reflection-entry[data-form="project"] .reflection-entry-meta {
  color: var(--muted);
}

.reflection-entry[data-form="project"] .reflection-entry-title {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 20ch;
  margin: clamp(1.5rem, 4vw, 3rem) 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

.reflection-entry[data-form="project"] .reflection-entry-body {
  max-width: none;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 450;
  letter-spacing: 0;
  line-height: 1.65;
  text-transform: none;
}

.family-order-introduction {
  max-width: 72ch;
  margin: 0;
  color: #40545b;
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  text-wrap: pretty;
}

.family-order-interactive {
  display: grid;
  gap: clamp(3rem, 7vw, 5.5rem);
  width: min(100%, 80rem);
  margin: clamp(2rem, 5vw, 4rem) 0 0;
}

.family-order-interactive--single {
  gap: 1rem;
}

.family-order-basis {
  margin: 0 0 0.35rem;
  padding: clamp(1rem, 2.4vw, 1.4rem) clamp(1rem, 3vw, 1.6rem);
  border-left: 4px solid var(--secondary-dark);
  background: rgba(255, 248, 232, 0.86);
  color: #374b52;
}

.family-order-basis strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.family-order-basis p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.55;
}

.family-order-basis cite {
  color: var(--ink);
  font-style: normal;
  font-weight: 800;
}

.family-order-scenarios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.family-order-scenarios button {
  min-height: 2.55rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(13, 64, 83, 0.22);
  border-radius: 0.25rem 0.85rem 0.25rem 0.85rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-dark);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.family-order-scenarios button:hover,
.family-order-scenarios button:focus-visible {
  border-color: var(--secondary-dark);
  outline: 3px solid rgba(216, 184, 120, 0.35);
  outline-offset: 2px;
}

.family-order-scenarios button[aria-pressed="true"] {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  color: #fff;
}

.family-order-stage--scenarios .family-order-stick {
  transition: opacity 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.family-order-stage.family-order-stage--scenarios {
  height: clamp(44rem, 64vw, 52rem);
}

.family-order-result--scenarios {
  margin-top: 0;
}

.family-order-result--scenarios h3 {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 500;
  line-height: 1.15;
}

.family-order-result--scenarios .family-order-consequence {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(183, 111, 41, 0.25);
  color: #7b3f22;
  font-weight: 750;
}

.family-order-variant + .family-order-variant {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid rgba(13, 64, 83, 0.18);
}

.family-order-variant-title {
  margin: 0 0 1rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.12;
}

.family-order-hint {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem 1rem;
  align-items: start;
  margin-bottom: 1rem;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--primary);
  background: rgba(255, 255, 255, 0.68);
}

.family-order-hint strong {
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.family-order-hint p {
  margin: 0;
  color: #40545b;
  font-size: 0.95rem;
  line-height: 1.55;
}

.family-order-stage {
  position: relative;
  width: 100%;
  height: clamp(36rem, 55vw, 46rem);
  overflow: hidden;
  border: 1px solid rgba(13, 64, 83, 0.18);
  border-radius: 0.4rem 2rem 0.4rem 2rem;
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 255, 255, 0.38) 0 15%, transparent 15.2%),
    radial-gradient(circle at 10% 88%, rgba(216, 184, 120, 0.12) 0 18%, transparent 18.2%),
    #eee7d9;
  box-shadow: 0 24px 60px rgba(6, 36, 48, 0.18);
  user-select: none;
}

.family-order-beam {
  position: absolute;
  top: 5%;
  left: 50%;
  z-index: 3;
  width: 48%;
  height: 1.1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #533c2b, #8b674d 50%, #533c2b);
  box-shadow: 0 6px 12px rgba(48, 31, 20, 0.2);
  transform: translate(-50%, -50%);
}

.family-order-drop-target {
  position: absolute;
  top: 17%;
  left: 50%;
  z-index: 4;
  display: grid;
  width: min(28%, 13rem);
  min-height: 4.5rem;
  place-items: center;
  border: 2px dashed var(--secondary-dark);
  border-radius: 999px;
  background: rgba(255, 250, 232, 0.82);
  color: var(--primary-dark);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.96);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.family-order-stage[data-drag-ready="true"] .family-order-drop-target,
.family-order-stage[data-dragging="true"] .family-order-drop-target {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.family-order-stage[data-target-active="true"] .family-order-drop-target {
  background: #fff2c8;
  box-shadow: 0 0 0 8px rgba(216, 184, 120, 0.2);
}

.family-order-string {
  position: absolute;
  z-index: 1;
  display: block;
  height: 2px;
  background: #42372c;
  opacity: 0.86;
  pointer-events: none;
  transform-origin: 0 50%;
  transition: opacity 120ms ease;
}

.family-order-string[hidden] {
  display: none;
}

.family-order-stick {
  position: absolute;
  z-index: 2;
  display: grid;
  min-height: 4.15rem;
  place-items: center;
  padding: 0.55rem 1rem;
  border: 2px solid #8b6b24;
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, transparent 0 13%, rgba(95, 69, 17, 0.25) 13.5% 14.2%, rgba(255, 241, 158, 0.35) 14.6% 15.2%, transparent 15.6% 28%),
    linear-gradient(180deg, #f1da76 0%, #c6a33d 54%, #e2c45f 100%);
  color: #253b34;
  box-shadow: 0 7px 12px rgba(63, 48, 20, 0.2), inset 0 2px 0 rgba(255, 247, 185, 0.65);
  font: inherit;
  font-size: clamp(0.82rem, 2vw, 1.35rem);
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  transition: box-shadow 160ms ease;
}

.family-order-stage[data-state="initial"] [data-stick="yhwh"] { left: 50%; top: 17%; width: 66%; }
.family-order-stage[data-state="initial"] [data-stick="word"] { left: 50%; top: 33%; width: 56%; }
.family-order-stage[data-state="initial"] [data-stick="man"] { left: 50%; top: 49%; width: 46%; }
.family-order-stage[data-state="initial"] [data-stick="woman"] { left: 50%; top: 65%; width: 40%; }
.family-order-stage[data-state="initial"] [data-stick="children"] { left: 50%; top: 81%; width: 32%; }

.family-order-stage[data-variant="woman"][data-state="final"] [data-stick="woman"] { left: 50%; top: 17%; width: 40%; }
.family-order-stage[data-variant="woman"][data-state="final"] [data-stick="children"] { left: 23%; top: 49%; width: 32%; transform: translate(-50%, -50%) rotate(-2deg); }
.family-order-stage[data-variant="woman"][data-state="final"] [data-stick="man"] { left: 73%; top: 43%; width: 46%; transform: translate(-50%, -50%) rotate(1.5deg); }
.family-order-stage[data-variant="woman"][data-state="final"] [data-stick="word"] { left: 73%; top: 64%; width: 56%; transform: translate(-50%, -50%) rotate(-1deg); }
.family-order-stage[data-variant="woman"][data-state="final"] [data-stick="yhwh"] { left: 73%; top: 84%; width: 66%; transform: translate(-50%, -50%) rotate(1deg); }

.family-order-stage[data-variant="man"][data-state="final"] [data-stick="man"] { left: 50%; top: 17%; width: 46%; }
.family-order-stage[data-variant="man"][data-state="final"] [data-stick="woman"] { left: 27%; top: 45%; width: 40%; transform: translate(-50%, -50%) rotate(-1.5deg); }
.family-order-stage[data-variant="man"][data-state="final"] [data-stick="children"] { left: 27%; top: 69%; width: 32%; transform: translate(-50%, -50%) rotate(1.5deg); }
.family-order-stage[data-variant="man"][data-state="final"] [data-stick="word"] { left: 73%; top: 45%; width: 56%; transform: translate(-50%, -50%) rotate(1deg); }
.family-order-stage[data-variant="man"][data-state="final"] [data-stick="yhwh"] { left: 73%; top: 69%; width: 66%; transform: translate(-50%, -50%) rotate(-1deg); }

button.family-order-stick[data-draggable="true"] {
  cursor: grab;
  touch-action: none;
}

button.family-order-stick[data-draggable="true"]::after {
  content: "↑  " attr(data-drag-label);
  position: absolute;
  bottom: calc(100% + 0.65rem);
  left: 50%;
  z-index: 8;
  width: max-content;
  max-width: min(16rem, 82vw);
  padding: 0.5rem 0.72rem;
  border: 1px solid rgba(13, 64, 83, 0.28);
  border-radius: 999px;
  background: rgba(255, 252, 239, 0.98);
  color: var(--primary-dark);
  box-shadow: 0 8px 20px rgba(6, 36, 48, 0.2);
  font-size: clamp(0.72rem, 1.7vw, 0.86rem);
  font-weight: 850;
  letter-spacing: 0.02em;
  line-height: 1.15;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.4rem);
  transition: opacity 160ms ease, transform 160ms ease;
}

button.family-order-stick[data-draggable="true"]:hover,
button.family-order-stick[data-draggable="true"]:focus-visible,
button.family-order-stick[data-active-drag="true"] {
  z-index: 5;
  filter: brightness(1.06) saturate(1.05);
  box-shadow: 0 0 0 5px rgba(23, 100, 122, 0.16), 0 14px 24px rgba(63, 48, 20, 0.28), inset 0 2px 0 rgba(255, 247, 185, 0.72);
  translate: 0 -0.3rem;
}

button.family-order-stick[data-draggable="true"]:hover::after,
button.family-order-stick[data-draggable="true"]:focus-visible::after,
button.family-order-stick[data-active-drag="true"]::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.family-order-stage[data-state="initial"] button.family-order-stick[data-draggable="true"] {
  box-shadow: 0 0 0 5px rgba(23, 100, 122, 0.14), 0 10px 18px rgba(63, 48, 20, 0.24), inset 0 2px 0 rgba(255, 247, 185, 0.65);
}

button.family-order-stick[data-draggable="true"]:focus-visible {
  outline: 4px solid var(--primary);
  outline-offset: 5px;
}

.family-order-stage[data-dragging="true"] button.family-order-stick[data-active-drag="true"] {
  z-index: 6;
  cursor: grabbing;
  translate: 0;
  transform: translate(-50%, -50%) rotate(-4deg) scale(1.03);
  transition: none;
}

.family-order-stage[data-dragging="true"] .family-order-string {
  opacity: 0.28;
}

button.family-order-stick[data-draggable="true"]:disabled {
  cursor: default;
  opacity: 1;
}

.family-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.family-order-actions button {
  min-height: 2.65rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--primary-dark);
  border-radius: 0.25rem 0.8rem 0.25rem 0.8rem;
  background: var(--primary-dark);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.family-order-actions .family-order-reset {
  background: transparent;
  color: var(--primary-dark);
}

.family-order-actions button:hover,
.family-order-actions button:focus-visible {
  outline: 3px solid rgba(216, 184, 120, 0.5);
  outline-offset: 2px;
}

.family-order-result {
  max-width: 78ch;
  margin-top: 1.5rem;
  padding: 1.15rem 1.25rem;
  border-left: 4px solid var(--secondary-dark);
  background: #fff8e8;
  transition: border-color 220ms ease, background 220ms ease;
}

.family-order-result[data-family-order-result="waiting"] {
  border-left-color: var(--primary);
  background: #eaf2ef;
}

.family-order-result strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.family-order-result p {
  margin: 0;
  color: #374b52;
  font-size: 0.95rem;
  line-height: 1.55;
}


.reflection-library[data-view="time"] .reflection-entry-list {
  display: block;
}

.reflection-library[data-view="time"] .reflection-entry {
  min-height: 0;
  padding: 1.8rem 0;
  border-bottom: 1px solid rgba(13, 64, 83, 0.16);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}

.reflection-library[data-view="time"] .reflection-entry::after {
  display: none;
}

.reflection-library[data-view="time"] .reflection-entry-meta {
  color: var(--muted);
}

.reflection-library[data-view="time"] .reflection-entry time {
  display: inline;
}

.reflection-library[data-view="time"] .reflection-entry-title {
  display: block;
  margin: 1.1rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.25;
}

.reflection-library[data-view="time"] .reflection-entry-body {
  max-width: 48ch;
  margin-top: 1.1rem;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.25;
}

.reflection-library[data-view="time"] .reflection-entry[data-form="essay"] .reflection-entry-body {
  max-width: 78ch;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.65;
}

.reflection-library[data-view="time"] .reflection-entry[data-form="project"] {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(13, 64, 83, 0.14);
  border-radius: 0.5rem 3rem 0.5rem 3rem;
  background: #f4f0e7;
}

.reflection-library[data-view="time"] .reflection-entry[data-form="project"] .reflection-entry-title {
  max-width: 20ch;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 0.98;
}

.reflection-library[data-view="time"] .reflection-entry[data-form="project"] .reflection-entry-body {
  max-width: none;
  font-size: 1rem;
  line-height: 1.65;
}


@media (max-width: 560px) {
  .reflection-entry[data-form="project"] {
    padding: 1.15rem;
    border-radius: 0.35rem 1.8rem 0.35rem 1.8rem;
  }

  .family-order-hint {
    grid-template-columns: 1fr;
  }

  .family-order-stage {
    height: 34rem;
    border-radius: 0.25rem 1.2rem 0.25rem 1.2rem;
  }

  .family-order-stage.family-order-stage--scenarios {
    height: 40rem;
  }

  .family-order-stick {
    min-height: 3.6rem;
    padding-inline: 0.55rem;
    font-size: clamp(0.68rem, 3.4vw, 0.92rem);
  }

  .family-order-stage[data-state="initial"] [data-stick="yhwh"] { width: 82%; }
  .family-order-stage[data-state="initial"] [data-stick="word"] { width: 74%; }
  .family-order-stage[data-state="initial"] [data-stick="man"] { width: 64%; }
  .family-order-stage[data-state="initial"] [data-stick="woman"] { width: 58%; }
  .family-order-stage[data-state="initial"] [data-stick="children"] { width: 46%; }
  .family-order-stage[data-variant="woman"][data-state="final"] [data-stick="woman"] { width: 58%; }
  .family-order-stage[data-variant="woman"][data-state="final"] [data-stick="children"] { left: 25%; width: 42%; }
  .family-order-stage[data-variant="woman"][data-state="final"] [data-stick="man"] { left: 70%; width: 58%; }
  .family-order-stage[data-variant="woman"][data-state="final"] [data-stick="word"] { left: 70%; width: 70%; }
  .family-order-stage[data-variant="woman"][data-state="final"] [data-stick="yhwh"] { left: 70%; width: 78%; }
  .family-order-stage[data-variant="man"][data-state="final"] [data-stick="man"] { width: 64%; }
  .family-order-stage[data-variant="man"][data-state="final"] [data-stick="woman"] { left: 26%; width: 52%; }
  .family-order-stage[data-variant="man"][data-state="final"] [data-stick="children"] { left: 26%; width: 42%; }
  .family-order-stage[data-variant="man"][data-state="final"] [data-stick="word"] { left: 72%; width: 66%; }
  .family-order-stage[data-variant="man"][data-state="final"] [data-stick="yhwh"] { left: 72%; width: 76%; }
}

@media (prefers-reduced-motion: reduce) {
  .family-order-stick,
  .family-order-string,
  .family-order-drop-target,
  .family-order-result {
    transition: none;
  }
}


.reflection-no-results {
  margin: 2rem 0 0;
  padding: 2rem;
  border: 1px dashed rgba(13, 64, 83, 0.22);
  color: var(--muted);
  text-align: center;
}

/* Blog archive */
.archive-hero {
  padding: clamp(3.5rem, 7vw, 6rem) 0 2.5rem;
}

.archive-hero-grid {
  max-width: 820px;
}

.archive-hero h1 {
  margin-bottom: 1rem;
}

.archive-related-link {
  display: inline-flex;
  margin-top: 0.35rem;
}

.archive-section {
  padding-top: 1.5rem;
}

.archive-toolbar {
  display: grid;
  max-width: 720px;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
}

.archive-search {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.archive-search > span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.archive-search input {
  padding-block: 0.7rem;
}

.archive-results {
  margin: 1.3rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.archive-grid {
  align-items: stretch;
}

.archive-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.3rem, 2vw, 1.65rem);
  border-top: 4px solid var(--secondary);
}

.archive-card h2 {
  min-height: 4.5em;
  margin: 0 0 0.9rem;
  padding-bottom: 0.85rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(23, 100, 122, 0.16);
  color: var(--primary-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.48rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-wrap: balance;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.archive-card p {
  flex: 1 1 auto;
  margin: 0;
  overflow: hidden;
  font-size: 0.92rem;
  line-height: 1.6;
  text-align: left;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.archive-read-button {
  align-self: flex-start;
  margin-top: 0.7rem;
}

.archive-load-more {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.archive-error {
  color: #9b312f;
}

.article-dialog {
  width: min(860px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(5, 26, 34, 0.38);
}

.article-dialog::backdrop {
  background: rgba(7, 28, 37, 0.72);
  backdrop-filter: blur(6px);
}

.article-dialog-shell {
  position: relative;
  padding: clamp(1.5rem, 5vw, 4rem);
}

.dialog-close {
  position: sticky;
  top: 0;
  float: right;
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  margin: -0.5rem -0.5rem 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--ink);
  font-size: 1.6rem;
  cursor: pointer;
}

.article-dialog h2 {
  margin-top: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 500;
}

.article-dialog-body {
  max-width: 72ch;
}

.article-dialog-body p {
  color: #364b56;
  white-space: pre-wrap;
}

.church-structure-copy > .button {
  margin-top: 2rem;
}

.congregation-page {
  overflow: clip;
}

.congregation-hero {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 7rem);
}

.congregation-hero::before {
  position: absolute;
  inset: 0 0 auto;
  height: 72%;
  background:
    radial-gradient(circle at 14% 20%, rgba(216, 184, 120, 0.28), transparent 30%),
    linear-gradient(135deg, rgba(226, 236, 238, 0.94), rgba(255, 254, 251, 0.3));
  content: "";
  z-index: -1;
}

.congregation-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(440px, 1.18fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.congregation-hero-copy h1,
.congregation-intro h2,
.congregation-closing-card h2 {
  margin: 1rem 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.congregation-hero-copy h1 {
  font-size: clamp(3.4rem, 5vw, 4.25rem);
  line-height: 0.94;
}

.congregation-key {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.congregation-key span {
  padding: 0.78rem 0.9rem;
  background: rgba(255, 254, 251, 0.92);
  color: var(--primary-dark);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.congregation-map {
  margin: 0;
  padding: clamp(0.65rem, 1.4vw, 1.1rem);
  border: 1px solid rgba(23, 100, 122, 0.15);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(13, 64, 83, 0.16);
}

.congregation-map a {
  display: block;
  overflow: hidden;
  border-radius: 23px;
}

.congregation-map img {
  width: 100%;
  transition: transform 0.35s ease;
}

.congregation-map a:hover img,
.congregation-map a:focus-visible img {
  transform: scale(1.012);
}

.congregation-map figcaption {
  padding: 0.85rem 0.25rem 0.1rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.congregation-explanation {
  border-block: 1px solid rgba(23, 100, 122, 0.1);
  background: rgba(226, 236, 238, 0.58);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.congregation-explanation-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.congregation-intro {
  position: sticky;
  top: 7rem;
}

.congregation-intro h2,
.congregation-closing-card h2 {
  font-size: clamp(2.4rem, 4.8vw, 4.4rem);
  line-height: 1.03;
}

.congregation-intro p {
  color: var(--muted);
}

.congregation-accordion {
  display: grid;
  gap: 0.85rem;
}

.congregation-accordion details {
  overflow: hidden;
  border: 1px solid rgba(23, 100, 122, 0.14);
  border-radius: 20px;
  background: rgba(255, 254, 251, 0.94);
  box-shadow: 0 14px 36px rgba(13, 64, 83, 0.06);
}

.congregation-accordion summary {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 1.2rem;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
  color: var(--ink);
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  list-style: none;
}

.congregation-accordion summary::-webkit-details-marker {
  display: none;
}

.congregation-accordion summary:hover {
  color: var(--primary);
}

.accordion-number {
  color: var(--primary);
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.accordion-marker {
  position: relative;
  width: 1rem;
  height: 1rem;
}

.accordion-marker::before,
.accordion-marker::after {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  content: "";
  transition: transform 0.2s ease;
}

.accordion-marker::after {
  transform: rotate(90deg);
}

details[open] .accordion-marker::after {
  transform: rotate(0deg);
}

.accordion-body {
  padding: 0 1.35rem 1.4rem 4.85rem;
  border-top: 1px solid var(--line);
}

.accordion-body p {
  color: #364b56;
}

.scripture-references {
  margin-bottom: 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.scripture-references strong {
  color: var(--primary-dark);
}

.ministry-definitions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 1.2rem 0;
}

.ministry-definitions div {
  padding: 0.75rem 0.85rem;
  border-left: 2px solid var(--secondary);
  background: rgba(226, 236, 238, 0.48);
}

.ministry-definitions dt {
  color: var(--primary-dark);
  font-weight: 800;
}

.ministry-definitions dd {
  margin: 0.12rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.congregation-closing {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.congregation-closing-card {
  max-width: 920px;
  padding: clamp(2rem, 6vw, 5rem);
  border-radius: 32px;
  background: var(--primary-dark);
  color: #fff;
  text-align: center;
}

.congregation-closing-card .eyebrow {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #dff6ff;
}

.congregation-closing-card p {
  max-width: 66ch;
  margin: 0 auto 1.7rem;
  color: rgba(255, 255, 255, 0.76);
}

.congregation-closing-card .button-secondary {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.easter-page {
  overflow: clip;
}

.easter-hero {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  text-align: center;
}

.easter-hero::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 28%, rgba(216, 184, 120, 0.26), transparent 31%),
    radial-gradient(circle at 78% 18%, rgba(23, 100, 122, 0.13), transparent 28%),
    linear-gradient(180deg, rgba(226, 236, 238, 0.72), rgba(255, 254, 251, 0.18));
  content: "";
  z-index: -1;
}

.easter-hero-copy {
  max-width: 900px;
}

.easter-hero h1 {
  max-width: 800px;
  margin: 1rem auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.easter-hero .lead {
  max-width: 62ch;
  margin-inline: auto;
}

.easter-study {
  padding-block: 0 clamp(4rem, 8vw, 7rem);
}

.easter-study-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(15rem, 0.72fr);
  align-items: start;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  transition: grid-template-columns 0.45s ease;
}

.easter-study-grid[data-active-part="two"] {
  grid-template-columns: minmax(15rem, 0.72fr) minmax(0, 1.9fr);
}

.easter-study-card {
  margin: 0;
  padding: clamp(0.7rem, 1.4vw, 1.1rem);
  border: 1px solid rgba(23, 100, 122, 0.15);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(13, 64, 83, 0.12);
  opacity: 0.78;
  transform: scale(0.975);
  transform-origin: top center;
  transition: opacity 0.35s ease, transform 0.45s ease, box-shadow 0.35s ease;
}

.easter-study-card.is-active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 28px 72px rgba(13, 64, 83, 0.16);
}

.easter-study-heading {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.25rem 0.25rem 0.85rem;
}

.easter-study-heading span {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.easter-study-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 500;
}

.easter-study-toggle {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: #f4f1ea;
  color: inherit;
  cursor: zoom-in;
}

.easter-study-card img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.easter-study-toggle:hover img,
.easter-study-toggle:focus-visible img {
  transform: scale(1.012);
}

.easter-study-toggle:focus-visible {
  outline: 3px solid rgba(23, 100, 122, 0.45);
  outline-offset: 4px;
}

.easter-study-card figcaption {
  padding: 0.85rem 0.25rem 0.1rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.project-context-bar {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid rgba(22, 34, 43, 0.12);
  background: rgba(252, 250, 245, 0.9);
  backdrop-filter: blur(14px);
}

.project-context-nav {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 60px;
  align-items: center;
  gap: 0.45rem;
  margin-inline: auto;
  overflow-x: auto;
  scrollbar-width: thin;
}

.project-context-label {
  flex: 0 0 auto;
  margin-right: auto;
  color: #5f696f;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-context-nav a {
  flex: 0 0 auto;
  padding: 0.62rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #34464f;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.project-context-nav a:hover {
  border-color: rgba(22, 34, 43, 0.14);
  background: rgba(255, 255, 255, 0.7);
  color: var(--primary-dark);
}

.project-context-nav a[aria-current="page"] {
  background: var(--primary-dark);
  color: #fff;
}

.enoch-page > .project-context-bar {
  margin-top: -2rem;
  margin-bottom: 2rem;
}

@media (max-width: 1000px) {
  .home-hero-shell,
  .church-structure-grid,
  .start-grid,
  .reflections-hero-grid,
  .reflections-gateway-grid,
  .congregation-hero-grid,
  .congregation-explanation-grid,
  .easter-study-grid {
    grid-template-columns: 1fr;
  }

  .easter-study-grid[data-active-part="two"] {
    grid-template-columns: 1fr;
  }

  .easter-study-card {
    width: min(82%, 42rem);
    justify-self: center;
  }

  .easter-study-card.is-active {
    width: 100%;
  }

  .home-hero .hero-copy h1 {
    max-width: 13ch;
  }

  .church-preview {
    width: min(690px, 100%);
    margin-inline: auto;
  }

  .church-structure-figure {
    position: static;
    width: min(720px, 100%);
    margin-inline: auto;
  }

  .congregation-map {
    width: min(760px, 100%);
    margin-inline: auto;
  }

  .congregation-intro {
    position: static;
    max-width: 680px;
  }

  .reflection-orbit {
    width: min(500px, 100%);
    min-height: 360px;
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  .brand-name {
    display: none;
  }

  .header-inner {
    min-height: 70px;
  }

  .brand-logo {
    width: 48px;
    height: 43px;
  }

  .home-hero {
    padding-top: 3rem;
  }

  .home-hero .hero-copy h1 {
    font-size: clamp(2.8rem, 14vw, 4.3rem);
  }

  .identity-statement-inner,
  .section-head-split,
  .study-grid {
    grid-template-columns: 1fr;
  }

  .faith-hero::after {
    display: none;
  }

  .faith-intro {
    display: block;
  }

  .faith-intro p {
    margin-top: 0.65rem;
  }

  .faith-item summary {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 1rem 2.8rem 1rem 0.85rem;
  }

  .faith-number {
    width: 2.25rem;
    height: 2.25rem;
  }

  .faith-answer {
    padding: 0 1rem 1.4rem;
  }

  .identity-statement .section-number {
    display: none;
  }

  .identity-statement p {
    margin-top: 0;
  }

  .wisdom-motto-inner {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .wisdom-motto-inner > span {
    font-size: 4.5rem;
  }

  .study-card {
    min-height: 0;
  }

  .archive-callout {
    display: grid;
  }

  .archive-card h2 {
    min-height: 0;
    font-size: 1.55rem;
  }

  .accordion-body {
    padding-left: 1.35rem;
  }

  .ministry-definitions {
    grid-template-columns: 1fr;
  }

  .reflection-source-grid {
    grid-template-columns: 1fr;
  }

  .subscription-steps {
    grid-template-columns: 1fr;
  }

  .subscription-steps li {
    min-height: 0;
    gap: 2rem;
  }

  .reflection-source-grid article {
    min-height: 0;
  }

  .reflection-source-grid article > span {
    margin-bottom: 1.5rem;
  }

  .reflection-orbit {
    min-height: 300px;
  }

  .reflection-library-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .reflection-view-switch {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reflection-view-switch button {
    padding-inline: 0.45rem;
  }

  .reflection-search,
  .reflection-time-row {
    grid-template-columns: 1fr;
  }

  .reflection-search {
    gap: 0.5rem;
  }

  .reflection-month-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .reflection-month-list button {
    min-width: 0;
  }

  .reflection-entry {
    min-height: 360px;
    padding: 1.5rem;
    border-radius: 0 3.5rem 0 3.5rem;
  }

  .reflection-entry::after {
    right: 1rem;
  }

  .reflection-entry-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .reflection-entry-body {
    font-size: clamp(2rem, 10vw, 3.1rem);
  }

  .project-context-nav {
    width: min(100% - 24px, 1180px);
    min-height: 56px;
  }

  .project-context-label {
    display: none;
  }
}

@media (max-width: 480px) {
  .uk-project-hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.25rem);
    overflow-wrap: anywhere;
  }
}

/* Russian prophetic feasts book */
.feast-project-page {
  --feast-gold: #d9ac58;
  --feast-deep: #17282e;
  background: #fbfaf6;
}

.feast-project-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 5vw, 4rem);
  color: #fff;
  background:
    radial-gradient(circle at 12% 12%, rgba(217, 172, 88, 0.24), transparent 28rem),
    radial-gradient(circle at 86% 74%, rgba(67, 131, 145, 0.22), transparent 32rem),
    linear-gradient(145deg, #0f1e24, var(--feast-deep));
}

.feast-project-hero::after {
  position: absolute;
  inset: auto -8vw -11rem auto;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.feast-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}

.feast-hero-copy {
  min-width: 0;
}

.feast-project-hero .eyebrow {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #f4dfb1;
}

.feast-project-hero h1 {
  max-width: 100%;
  color: #fff;
  font-size: clamp(3.4rem, 5vw, 6.25rem);
  overflow-wrap: break-word;
}

.feast-project-hero .lead {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 1.8vw, 1.24rem);
}

.feast-edition {
  margin: 1.5rem 0 0;
  color: #f4dfb1;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feast-hero-art {
  position: relative;
  min-height: clamp(320px, 46vw, 540px);
}

.feast-hero-art img {
  position: absolute;
  width: min(74%, 470px);
  aspect-ratio: 1.28;
  border: 6px solid rgba(255, 255, 255, 0.94);
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
}

.feast-hero-art-1 {
  top: 4%;
  right: 4%;
  z-index: 3;
  transform: rotate(3deg);
}

.feast-hero-art-2 {
  bottom: 3%;
  left: 2%;
  z-index: 2;
  transform: rotate(-5deg);
}

.feast-hero-art-3 {
  right: 0;
  bottom: 1%;
  z-index: 1;
  transform: scale(0.86) rotate(7deg);
  opacity: 0.66;
}

.feast-project-stats {
  position: relative;
  z-index: 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(480px, 100%);
  margin-top: clamp(2rem, 5vw, 4rem);
}

.feast-project-stats div {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.feast-project-stats dt {
  color: var(--feast-gold);
}

.feast-project-stats dd {
  color: rgba(255, 255, 255, 0.68);
}

.feast-introduction {
  padding-top: clamp(2rem, 5vw, 4.5rem);
}

.feast-introduction--compact {
  padding: 1.35rem 0 0.5rem;
}

.feast-introduction-details {
  width: min(920px, 100%);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid #d8c6a4;
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 12px 34px rgba(45, 34, 20, 0.08);
}

.feast-introduction-details > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 86px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
}

.feast-introduction-details > summary::-webkit-details-marker {
  display: none;
}

.feast-introduction-label {
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: #113d53;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.feast-introduction-summary-copy {
  display: grid;
  gap: 0.18rem;
}

.feast-introduction-summary-copy strong {
  color: #113d53;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
}

.feast-introduction-summary-copy small {
  color: var(--muted);
  font-size: 0.88rem;
}

.feast-introduction-toggle {
  width: 13px;
  height: 13px;
  border-right: 2px solid #113d53;
  border-bottom: 2px solid #113d53;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 180ms ease;
}

.feast-introduction-details[open] .feast-introduction-toggle {
  transform: rotate(225deg) translate(-2px, -2px);
}

.feast-introduction-panel {
  padding: 0 1.25rem 1.5rem;
  border-top: 1px solid #eadfc9;
}

.feast-chapters-heading {
  max-width: 920px;
  margin: 0 auto 1.35rem;
  padding: 1.5rem 0 1.1rem;
  border-bottom: 3px solid #113d53;
}

.feast-chapters-heading h2 {
  margin: 0.25rem 0 0.4rem;
  color: #113d53;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.04;
}

.feast-chapters-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.feast-introduction-copy {
  max-width: 920px;
}

.feast-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1.4rem 0 2rem;
  padding: 0;
  list-style: none;
}

.feast-list li {
  padding: 0.8rem 0.9rem;
  border-left: 3px solid var(--feast-gold);
  border-radius: 0 12px 12px 0;
  background: rgba(217, 172, 88, 0.08);
}

.feast-source-notes {
  margin-top: 2.5rem;
  padding: 1.2rem 1.4rem;
  border-radius: 18px;
  background: #f2f0ea;
}

.feast-source-notes p {
  margin: 0.55rem 0;
  color: #586267;
  font-size: 0.84rem;
}

.feast-project-body {
  padding-bottom: clamp(4rem, 9vw, 8rem);
}

.feast-project-toc {
  margin-bottom: clamp(2rem, 6vw, 4rem);
  padding: clamp(1.2rem, 4vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.feast-project-toc-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.feast-project-toc-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 500;
}

.feast-toc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-reader-toc .feast-toc-card {
  position: relative;
  display: block;
  min-height: 250px;
  padding: 0;
  overflow: hidden;
  border-radius: 17px;
  color: #fff;
  font-size: inherit;
  line-height: normal;
  background: var(--feast-deep);
  text-decoration: none;
}

.project-reader-toc .feast-toc-card::after {
  position: absolute;
  inset: 25% 0 0;
  background: linear-gradient(180deg, transparent, rgba(8, 18, 22, 0.93));
  content: "";
}

.project-reader-toc .feast-toc-card img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.project-reader-toc .feast-toc-card:hover,
.project-reader-toc .feast-toc-card:focus-visible {
  color: #fff;
  background: var(--feast-deep);
}

.project-reader-toc .feast-toc-card:hover img,
.project-reader-toc .feast-toc-card:focus-visible img {
  transform: scale(1.035);
}

.feast-toc-card-copy {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1;
  display: grid;
  gap: 0.12rem;
}

.project-reader-toc .feast-toc-card-copy small {
  color: #f2d69c;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.project-reader-toc .feast-toc-card-copy strong {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.32rem;
  line-height: 1.08;
}

.project-reader-toc .feast-toc-card-copy em {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-style: normal;
}

.feast-toc-supplements {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.feast-toc-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.feast-toc-text-link span {
  color: var(--feast-gold);
}

.feast-project-body > .container {
  width: min(1400px, calc(100% - 2rem));
}

.feast-project-content {
  width: 100%;
  margin-inline: auto;
}

.feast-reader-chapters {
  gap: 1rem;
}

.feast-reader-chapter {
  border-radius: 22px;
}

.feast-reader-chapter summary {
  min-height: 78px;
  padding: 1.1rem 1.3rem;
}

.feast-summary-copy {
  display: grid;
  gap: 0.18rem;
}

.feast-summary-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2.7vw, 1.55rem);
  font-weight: 500;
}

.feast-summary-copy span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.feast-chapter-copy {
  padding: clamp(1rem, 4vw, 2.5rem);
}

.feast-chapter-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
}

.feast-chapter-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.45rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid #c9dadd;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(35, 72, 80, 0.07);
  color: #294f58;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.feast-chapter-meta li::before {
  display: grid;
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  font-size: 0.93rem;
  line-height: 1;
}

.feast-chapter-meta .feast-meta-season {
  border-color: #b9d9bc;
  background: linear-gradient(135deg, #fff 0%, #f2faf1 100%);
}

.feast-chapter-meta .feast-meta-season::before {
  background: #e4f3e3;
  content: "🌱";
}

.feast-chapter-meta .feast-meta-date {
  border-color: #b9d8df;
  background: linear-gradient(135deg, #fff 0%, #f0f9fb 100%);
}

.feast-chapter-meta .feast-meta-date::before {
  box-sizing: border-box;
  padding-top: 0.27rem;
  border: 1px solid #67aebb;
  border-radius: 0.42rem;
  background: linear-gradient(to bottom, #3b9cac 0 0.34rem, #fff 0.34rem 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  color: #123f49;
  content: attr(data-month);
  font-family: Inter, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
}

.feast-chapter-meta .feast-meta-moon {
  border-color: #e5ca82;
  background: linear-gradient(135deg, #fff 0%, #fff7dd 100%);
}

.feast-chapter-meta .feast-meta-moon::before {
  box-sizing: border-box;
  border: 1px solid #d6a63a;
  content: "";
}

.feast-chapter-meta .feast-meta-moon--full::before {
  background: radial-gradient(circle at 36% 32%, #fffbe0 0 16%, #ffe47c 42%, #e8ad2f 100%);
  box-shadow: inset -0.16rem -0.1rem 0 rgba(173, 109, 9, 0.2), 0 0 0 0.18rem rgba(245, 196, 78, 0.12);
}

.feast-chapter-meta .feast-meta-moon--new {
  border-color: #b8c9cc;
  background: linear-gradient(135deg, #fff 0%, #f2f7f7 100%);
}

.feast-chapter-meta .feast-meta-moon--new::before {
  border-color: #d5aa46;
  background: radial-gradient(circle at 36% 32%, #354d55 0 10%, #132d36 38%, #06151c 78%, #02090d 100%);
  box-shadow: inset -0.16rem -0.12rem 0 rgba(0, 0, 0, 0.55), 0 0 0 0.18rem rgba(213, 170, 70, 0.13);
}

.feast-chapter-figure a {
  border-radius: 20px;
  background: #f4f1ea;
}

.feast-chapter-figure img {
  aspect-ratio: 1.28;
  object-fit: cover;
}

.feast-chapter-text {
  max-width: 78ch;
  margin-inline: auto;
}

.feast-chapter-text.feast-reading-layout {
  max-width: 1100px;
}

.feast-reading-layout .feast-parenthetical {
  font-style: italic;
}

.feast-supplement .feast-chapter-text {
  max-width: none;
}

.feast-event-band {
  --feast-event-accent: #5aa5ff;
  margin: 2.35rem 0 1.15rem;
  padding: 0.78rem 1rem 0.72rem;
  border: 1px solid color-mix(in srgb, var(--feast-event-accent) 42%, transparent);
  border-left: 5px solid var(--feast-event-accent);
  border-radius: 0 14px 14px 0;
  background: color-mix(in srgb, var(--feast-event-accent) 13%, white);
  color: color-mix(in srgb, var(--feast-event-accent) 63%, #17282e);
  font-family: inherit;
  font-size: clamp(0.82rem, 1.7vw, 0.98rem);
  font-weight: 850;
  letter-spacing: 0.055em;
  line-height: 1.45;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--feast-event-accent) 66%, transparent);
  text-underline-offset: 0.2em;
  text-transform: uppercase;
}

.feast-event-band--past {
  --feast-event-accent: #ff8282;
}

.feast-event-band--fulfilled,
.feast-event-band--future {
  --feast-event-accent: #5aa5ff;
}

.feast-event-band--events {
  --feast-event-accent: #4fd264;
}

.feast-scripture {
  --feast-scripture-accent: var(--feast-gold);
  margin: 1.15rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid color-mix(in srgb, var(--feast-scripture-accent) 28%, transparent);
  border-left: 3px solid var(--feast-scripture-accent);
  border-radius: 0 15px 15px 0;
  background: color-mix(in srgb, var(--feast-scripture-accent) 8%, white);
}

.feast-scripture--past {
  --feast-scripture-accent: #ff8282;
}

.feast-scripture--fulfilled,
.feast-scripture--future {
  --feast-scripture-accent: #5aa5ff;
}

.feast-scripture--events {
  --feast-scripture-accent: #4fd264;
}

.feast-scripture p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

.feast-scripture cite {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.feast-reading-layout .feast-claim-heading {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.32rem, 2.35vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.feast-reading-layout .feast-claim-heading::after {
  display: block;
  width: 2.75rem;
  height: 2px;
  margin-top: 0.65rem;
  border-radius: 999px;
  background: var(--feast-event-accent, var(--feast-gold));
  content: "";
}

.feast-reading-layout .feast-scripture,
.feast-reading-layout .feast-apostolic-reference {
  margin: 0.85rem 0 1.45rem;
  padding: 1rem 1.15rem;
}

.feast-reading-layout .feast-apostolic-reference {
  border: 1px solid #d9e2e4;
  border-left: 3px solid #78949d;
  border-radius: 0 15px 15px 0;
  background: #f5f7f6;
}

.feast-reading-layout .feast-apostolic-reference p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

.feast-reference-heading {
  margin: 0 0 0.65rem;
  color: #445b64;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feast-reference-citation {
  margin-top: 0.65rem !important;
  color: var(--muted);
  font-family: inherit !important;
  font-size: 0.82rem;
}

.feast-source-note {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: #f2f0ea;
  color: #5c666b;
  font-size: 0.88rem;
}

.feast-author-comment {
  margin: 1.35rem 0 1.55rem;
  padding: 1rem 1.15rem;
  border: 1px solid #cfe3d5;
  border-left: 4px solid #5a9871;
  border-radius: 0 15px 15px 0;
  background: #f2f8f3;
  color: #385346;
}

.feast-author-comment h3 {
  margin: 0 0 0.7rem;
  color: #356049;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feast-author-comment p {
  margin: 0.72rem 0 0;
}

.feast-reading-layout .feast-event-band {
  margin: 3.6rem 0 1.65rem;
  padding: 1.1rem 1.35rem 1.15rem;
  border-width: 0 0 0 6px;
  border-radius: 0 16px 16px 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--feast-event-accent) 20%, white), color-mix(in srgb, var(--feast-event-accent) 6%, white));
  text-decoration: none;
  box-shadow: none;
}

.feast-reading-layout .feast-subchapter-header {
  margin: 4.6rem 0 2.1rem;
  padding: 0;
  text-align: center;
}

.feast-reading-layout .feast-subchapter-header h2 {
  max-width: 34ch;
  margin: 0 auto;
  color: #183743;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0.02em;
}

.feast-reading-layout .feast-subchapter-header p {
  max-width: 68ch;
  margin: 0.8rem auto 0;
  color: #5b6e70;
  font-size: clamp(0.95rem, 1.35vw, 1.04rem);
  line-height: 1.6;
}

.feast-reading-layout .feast-subchapter-header + .feast-event-band {
  margin-top: 2rem;
}

.feast-reading-layout .feast-section-title {
  display: block;
  max-width: 30ch;
  color: #183743;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.12rem, 2.2vw, 1.42rem);
  letter-spacing: 0.025em;
  line-height: 1.28;
}

.feast-reading-layout .feast-event-card {
  --feast-event-accent: #ff8282;
  margin: 0 0 2.35rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid #dce5e6;
}

.feast-reading-layout .feast-event-card--fulfilled,
.feast-reading-layout .feast-event-card--future {
  --feast-event-accent: #5a9fe9;
}

.feast-reading-layout .feast-event-card--events {
  --feast-event-accent: #51ad67;
}

.feast-reading-layout .feast-event-header {
  max-width: 900px;
  margin-bottom: 0.55rem;
  padding: 0.2rem 0 0.55rem 1rem;
  border-left: 3px solid var(--feast-event-accent);
}

.feast-reading-layout .feast-event-evidence {
  padding: 0 0 0 0.65rem;
}

.feast-reading-layout .feast-event-evidence > .feast-scripture {
  position: relative;
  margin: 0;
  padding: 0.5rem 1rem 0.6rem 1.35rem;
  border: 0;
  border-top: 1px solid #e8eeee;
  border-left: 2px solid #dce5e6;
  border-radius: 0;
  background: transparent;
  color: #30454d;
  font-size: clamp(1rem, 1.25vw, 1.08rem);
}

.feast-reading-layout .feast-event-evidence > .feast-scripture:first-child {
  border-top: 0;
}

.feast-reading-layout .feast-event-evidence > .feast-scripture::before {
  position: absolute;
  top: 0.4rem;
  left: 0.35rem;
  color: color-mix(in srgb, var(--feast-event-accent) 36%, #d4dddd);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1;
  content: "“";
}

.feast-reading-layout .feast-event-evidence > .feast-scripture p {
  line-height: 1.58;
}

.feast-reading-layout .feast-event-evidence > .feast-scripture p + p {
  margin-top: 0.38rem;
}

.feast-reading-layout .feast-event-evidence > .feast-gospel-card {
  margin: 0.85rem 0 1.05rem;
  padding: 1rem 1.1rem 1.05rem 1.55rem;
  border: 1px solid #d8e4ec;
  border-left: 3px solid var(--feast-event-accent);
  border-radius: 14px;
  background: linear-gradient(135deg, #fbfdff 0%, #f3f8fc 100%);
  box-shadow: 0 7px 18px rgba(37, 78, 98, 0.07);
}

.feast-reading-layout .feast-event-evidence > .feast-gospel-card:first-child {
  border-top: 1px solid #d8e4ec;
}

.feast-reading-layout .feast-event-evidence > .feast-gospel-card::before {
  top: 0.85rem;
  left: 0.55rem;
  color: color-mix(in srgb, var(--feast-event-accent) 56%, #cbd9df);
}

.feast-reading-layout .feast-event-sources {
  padding: 0.45rem 0 0 2.6rem;
  color: #7a888c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  font-style: italic;
}

.feast-reading-layout .feast-event-sources ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feast-reading-layout .feast-event-sources li {
  white-space: nowrap;
}

.feast-reading-layout .feast-event-sources li:not(:last-child)::after {
  margin: 0 0.48rem;
  color: #aab5b8;
  content: "·";
}

.feast-reading-layout .feast-event-card .feast-author-comment {
  margin: 1rem 0;
}

.feast-layer-guide {
  margin: 1.4rem 0 2.25rem;
  padding: 1.15rem;
  border: 1px solid #dfe8e8;
  border-radius: 18px;
  background: #f8faf9;
}

.feast-layer-guide > p {
  display: grid;
  gap: 0.18rem;
  margin: 0 0 0.9rem;
}

.feast-layer-guide > p span {
  color: #64757a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.feast-layer-guide > p strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
}

.feast-layer-guide ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feast-layer-guide a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.65rem;
  height: 100%;
  padding: 0.85rem;
  border: 1px solid #dce5e5;
  border-radius: 13px;
  background: white;
  color: inherit;
  text-decoration: none;
}

.feast-layer-guide a > span {
  grid-row: 1 / span 2;
  color: #63777d;
  font-size: 0.76rem;
  font-weight: 850;
}

.feast-layer-guide a strong {
  color: #263d44;
  font-size: 0.92rem;
}

.feast-layer-guide a em {
  color: #66757a;
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.45;
}

.feast-layer-guide li:nth-child(1) a {
  border-top: 4px solid #ff8282;
}

.feast-layer-guide li:nth-child(2) a {
  border-top: 4px solid #5aa5ff;
}

.feast-layer-guide li:nth-child(3) a {
  border-top: 4px solid #4fd264;
}

.feast-layer-guide a:hover,
.feast-layer-guide a:focus-visible {
  border-color: #9bb1b4;
  box-shadow: 0 8px 22px rgba(26, 57, 65, 0.08);
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .feast-layer-guide ol {
    grid-template-columns: 1fr;
  }

  .feast-reading-layout .feast-event-band {
    margin-top: 2.35rem;
  }

  .feast-reading-layout .feast-event-header {
    padding-left: 0.75rem;
  }

  .feast-reading-layout .feast-event-evidence {
    padding-left: 0;
  }

  .feast-reading-layout .feast-event-evidence > .feast-scripture {
    padding-right: 0.2rem;
    padding-left: 1rem;
  }

  .feast-reading-layout .feast-event-sources {
    padding-left: 1.15rem;
  }
}

.feast-bibliography {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.5rem;
}

.feast-bibliography li {
  padding-left: 0.35rem;
}

.feast-supplement {
  margin-top: 0.5rem;
  border-style: dashed;
}

.feast-appendix {
  --feast-gold: #d9ac58;
  --feast-deep: #17282e;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1rem, 3.5vw, 2.2rem);
  border: 1px solid rgba(23, 40, 46, 0.14);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0, rgba(217, 172, 88, 0.2), transparent 22rem),
    linear-gradient(145deg, #fffdf8, #f6f1e7);
  box-shadow: 0 24px 60px rgba(23, 40, 46, 0.1);
}

.feast-appendix::before {
  position: absolute;
  z-index: -1;
  top: -7rem;
  right: -6rem;
  width: 16rem;
  height: 16rem;
  border: 1px solid rgba(217, 172, 88, 0.26);
  border-radius: 50%;
  box-shadow:
    0 0 0 2.2rem rgba(217, 172, 88, 0.06),
    0 0 0 4.4rem rgba(217, 172, 88, 0.035);
  content: "";
}

.feast-appendix-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.35rem 1rem;
  margin-bottom: clamp(1.15rem, 3vw, 2rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(23, 40, 46, 0.14);
}

.feast-appendix-header > span:first-child {
  color: #8b6527;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.feast-appendix-header > span:nth-child(2) {
  grid-row: span 2;
  color: var(--feast-gold);
  font-size: 1.5rem;
}

.feast-appendix-header h3 {
  margin: 0;
  color: var(--feast-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.feast-appendix-opening {
  display: grid;
  grid-template-columns: minmax(20rem, 1fr) minmax(0, 1.25fr);
  gap: clamp(1rem, 3vw, 1.7rem);
  align-items: start;
}

.feast-appendix .feast-scripture {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border: 0;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent),
    var(--feast-deep);
  color: #fffaf0;
  box-shadow: 0 14px 32px rgba(23, 40, 46, 0.16);
}

.feast-appendix .feast-scripture::before {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--feast-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.2rem;
  line-height: 0.6;
  content: "“";
}

.feast-appendix .feast-scripture p {
  color: inherit;
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  line-height: 1.55;
}

.feast-appendix .feast-scripture cite {
  color: #e3c98f;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.feast-appendix-intro {
  padding: clamp(0.4rem, 2vw, 1rem) clamp(0.2rem, 2vw, 0.8rem);
  color: #34464c;
  font-size: clamp(1rem, 2vw, 1.08rem);
  line-height: 1.75;
}

.feast-appendix-intro p {
  margin: 0 0 1rem;
}

.feast-appendix-intro p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  color: #9d722d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.5em;
  line-height: 0.78;
}

.feast-appendix-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: clamp(1.3rem, 4vw, 2.2rem) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: appendix-card;
}

.feast-appendix-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(15rem, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: stretch;
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid rgba(23, 40, 46, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 24px rgba(23, 40, 46, 0.055);
  counter-increment: appendix-card;
}

.feast-appendix-card::before {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--feast-deep);
  color: #f2d79f;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  content: counter(appendix-card, decimal-leading-zero);
}

.feast-appendix-card-image {
  min-width: 0;
  margin: 0;
}

.feast-appendix-card-image a,
.feast-appendix-card-image img {
  display: block;
  width: 100%;
  height: 100%;
}

.feast-appendix-card-image a {
  overflow: hidden;
  min-height: 15rem;
  border-radius: 13px;
  background: #ebe6da;
}

.feast-appendix-card-image img {
  object-fit: cover;
}

.feast-appendix-card-copy {
  align-self: center;
  min-width: 0;
  padding: 0.65rem 0.55rem 0.65rem 0;
}

.feast-appendix-card:nth-child(3n) {
  border-color: rgba(217, 172, 88, 0.34);
  background: rgba(255, 250, 238, 0.92);
}

.feast-appendix-card p {
  margin: 0;
}

.feast-appendix-card p + p {
  margin-top: 0.75rem;
}

.feast-appendix-more {
  margin-top: 0.85rem;
  padding: 1rem 1.15rem;
  border: 1px dashed rgba(157, 114, 45, 0.42);
  border-radius: 16px;
  background: rgba(217, 172, 88, 0.09);
  color: #4b5559;
}

.feast-appendix-more p {
  margin: 0;
}

.feast-appendix-legacy-list .feast-appendix-cards + .feast-appendix-cards {
  margin-top: 0.85rem;
}

.uk-project-copy > .feast-appendix {
  max-width: 980px;
  margin: 2rem auto 0;
}

@media (max-width: 960px) {
  .feast-hero-grid {
    grid-template-columns: 1fr;
  }

  .feast-hero-copy {
    position: relative;
    z-index: 4;
  }

  .feast-hero-art {
    min-height: 420px;
  }

  .feast-toc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .feast-appendix-opening {
    grid-template-columns: 1fr;
  }

  .feast-appendix-card {
    grid-template-columns: 1fr;
  }

  .feast-appendix-card-copy {
    padding: 0.4rem 0.45rem 0.65rem;
  }
}

@media (max-width: 680px) {
  .feast-project-stats {
    grid-template-columns: 1fr;
  }

  .feast-project-hero h1 {
    font-size: clamp(3.1rem, 18vw, 5.2rem);
  }

  .feast-hero-art {
    min-height: 300px;
  }

  .feast-hero-art img {
    width: 78%;
    border-width: 4px;
    border-radius: 15px;
  }

  .feast-list,
  .feast-toc-grid {
    grid-template-columns: 1fr;
  }

  .feast-introduction-details > summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .feast-introduction-label {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .feast-project-toc-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .feast-toc-card {
    min-height: 230px;
  }

  .feast-reader-chapter summary {
    min-height: 70px;
    padding-inline: 1rem;
  }

  .feast-appendix {
    padding: 1rem;
    border-radius: 20px;
  }

  .feast-appendix-cards {
    grid-template-columns: 1fr;
  }

  .feast-appendix-card {
    padding-right: 1rem;
  }
}

/* Russian source projects: My Law and Shabbat */
.source-project-page {
  --source-accent: #287aa5;
  --source-accent-dark: #163f58;
  background: linear-gradient(180deg, #fbfaf6 0, #fff 46rem);
}

.shabbat-project-page {
  --source-accent: #a06d22;
  --source-accent-dark: #4c3517;
}

.source-project-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--source-accent) 18%, transparent), transparent 27rem),
    linear-gradient(180deg, #f6f2e9, rgba(255, 255, 255, 0));
}

.source-project-hero-grid {
  align-items: start;
}

.source-project-hero-copy {
  position: relative;
  z-index: 2;
  padding-top: clamp(0.5rem, 3vw, 2.25rem);
}

.source-project-hero h1 {
  color: #13232d;
}

.source-project-subtitle {
  margin: -0.25rem 0 1rem;
  color: var(--source-accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 3vw, 2rem);
}

.source-project-edition {
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.source-project-assets {
  display: grid;
  gap: 0.75rem;
  max-width: 680px;
  margin-top: 1.4rem;
}

.source-project-download {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: fit-content;
  min-height: 48px;
  text-decoration: none;
}

.source-project-download span,
.source-project-audio span {
  color: var(--muted);
  font-size: 0.72rem;
}

.source-project-audio {
  display: grid;
  grid-template-columns: minmax(150px, 0.4fr) minmax(240px, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 30px rgba(28, 37, 44, 0.06);
}

.source-project-audio div {
  display: grid;
  gap: 0.2rem;
}

.source-project-audio audio {
  width: 100%;
  min-width: 0;
}

.source-project-hero-figure {
  position: relative;
  width: min(100%, 380px);
  margin: 0 auto;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 34px 80px rgba(16, 55, 76, 0.2);
  transform: rotate(2.5deg);
}

.source-project-hero-figure::before {
  position: absolute;
  inset: 9% -12% -8% 14%;
  z-index: -1;
  border-radius: 32px;
  background: #1b9dce;
  content: "";
  opacity: 0.18;
  transform: rotate(-7deg);
}

.source-project-hero-figure img {
  display: block;
  width: 100%;
  height: clamp(360px, 42vw, 560px);
  border-radius: 20px;
  object-fit: cover;
  object-position: center;
}

.source-project-hero-figure figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.shabbat-hero-symbol {
  position: relative;
  isolation: isolate;
  width: min(100%, 430px);
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(205, 157, 73, 0.34);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(3, 7, 10, 0.22), rgba(8, 6, 3, 0.12)),
    url("../images/shabbat-sunset-background.png") center / cover no-repeat;
  box-shadow:
    inset 0 0 75px rgba(0, 0, 0, 0.72),
    0 35px 80px rgba(51, 38, 22, 0.24);
}

.shabbat-hero-symbol::before {
  position: absolute;
  inset: 10%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 142, 41, 0.14), transparent 68%);
  filter: blur(14px);
  content: "";
}

.shabbat-hero-symbol::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.48);
  content: "";
  pointer-events: none;
}

.shabbat-menorah-canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.uk-shabbat-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
  max-width: 1180px;
}

.source-project-stats dt,
.source-project-toc a span,
.source-project-chapter .project-reader-chapter-number {
  color: var(--source-accent);
}

.source-project-chapter .project-reader-chapter-icon::before,
.source-project-chapter .project-reader-chapter-icon::after {
  background: var(--source-accent);
}

.source-project-toc h2 {
  margin: 0.55rem 0 1rem;
  color: var(--source-accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.05;
}

.source-project-toc a:hover,
.source-project-toc a:focus-visible {
  color: var(--source-accent-dark);
  background: color-mix(in srgb, var(--source-accent) 9%, transparent);
}

.source-project-chapter[open] {
  border-color: color-mix(in srgb, var(--source-accent) 38%, transparent);
}

.source-project-copy {
  max-width: none;
}

.source-project-copy > p,
.source-project-copy > blockquote,
.source-project-copy > aside {
  max-width: 78ch;
  margin-right: auto;
  margin-left: auto;
}

.shabbat-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  max-width: 1080px;
  margin: 0 auto;
}

.shabbat-comparison-card {
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
  border: 1px solid transparent;
  border-radius: 22px;
}

.shabbat-comparison-card-burden {
  border-color: rgba(75, 139, 75, 0.24);
  background: #e6f6d9;
}

.shabbat-comparison-card-replacement {
  border-color: rgba(177, 71, 65, 0.24);
  background: #f8dcda;
}

.shabbat-comparison-card h3 {
  margin: 0 0 1rem;
  color: var(--source-accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.42rem);
  line-height: 1.15;
}

.shabbat-comparison-card > :last-child {
  margin-bottom: 0;
}

.shabbat-comparison-card .source-project-scripture {
  border-left-color: rgba(48, 88, 65, 0.48);
  background: rgba(255, 255, 255, 0.52);
}

.source-project-scripture {
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--source-accent);
  border-radius: 0 16px 16px 0;
  background: color-mix(in srgb, var(--source-accent) 7%, white);
}

.source-project-scripture p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02em;
}

.source-project-note {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  color: #586267;
  background: #f1efe9;
  font-size: 0.88rem;
}

.source-project-note p {
  margin: 0;
}

.source-project-introduction-copy h2 {
  color: var(--source-accent-dark);
}

.book-request-section {
  padding-block: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid rgba(21, 71, 91, 0.12);
  background:
    radial-gradient(circle at 12% 12%, rgba(27, 157, 206, 0.12), transparent 22rem),
    #f6f2e9;
}

.book-request-shell {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(360px, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  max-width: 1080px;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(21, 71, 91, 0.14);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 28px 70px rgba(24, 48, 60, 0.1);
}

.book-request-copy h2 {
  margin: 0.9rem 0 1rem;
  color: #163f58;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 4vw, 3.7rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.book-request-copy p,
.book-request-privacy,
.book-request-donation p {
  color: var(--muted);
}

.book-request-form {
  display: grid;
  gap: 1rem;
}

.book-request-form[hidden],
.book-request-success[hidden],
.book-request-donation[hidden] {
  display: none;
}

.book-request-form label {
  display: grid;
  gap: 0.42rem;
  color: #253a45;
  font-size: 0.82rem;
  font-weight: 760;
}

.book-request-form input,
.book-request-form select,
.book-request-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.78rem 0.9rem;
  border: 1px solid rgba(21, 71, 91, 0.24);
  border-radius: 12px;
  color: #142a35;
  background: #fff;
  font: inherit;
  font-weight: 500;
}

.book-request-form textarea {
  min-height: 112px;
  resize: vertical;
}

.book-request-support {
  min-width: 0;
  margin: 0.25rem 0 0;
  padding: 1rem;
  border: 1px solid rgba(21, 71, 91, 0.16);
  border-radius: 16px;
  background: rgba(246, 242, 233, 0.68);
}

.book-request-support legend {
  padding-inline: 0.35rem;
  color: #163f58;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.book-request-support > p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.book-request-support-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.book-request-form .book-request-support-options label {
  position: relative;
  display: block;
  cursor: pointer;
}

.book-request-support-options input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  opacity: 0;
}

.book-request-support-options span {
  display: block;
  padding: 0.65rem 0.82rem;
  border: 1px solid rgba(21, 71, 91, 0.2);
  border-radius: 999px;
  color: #29414e;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.book-request-support-options input:checked + span {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary-dark);
  box-shadow: 0 7px 18px rgba(22, 63, 88, 0.18);
}

.book-request-support-options input:focus-visible + span {
  outline: 3px solid rgba(27, 157, 206, 0.22);
  outline-offset: 2px;
}

.book-request-form input:focus,
.book-request-form select:focus,
.book-request-form textarea:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(27, 157, 206, 0.16);
}

.book-request-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.book-request-form .button-primary {
  width: fit-content;
  margin-top: 0.25rem;
}

.book-request-form .button-primary:disabled {
  cursor: wait;
  opacity: 0.65;
}

.book-request-privacy,
.book-request-status {
  min-height: 1.2em;
  margin: 0;
  font-size: 0.78rem;
}

.book-request-status {
  color: #8a351f;
  font-weight: 700;
}

.book-request-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.book-request-success {
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid rgba(21, 122, 83, 0.25);
  border-radius: 20px;
  background: rgba(233, 247, 240, 0.76);
}

.book-request-success h3 {
  margin: 0 0 0.65rem;
  color: #17553c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.book-request-donation {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(21, 122, 83, 0.18);
}

.book-request-donation .button-secondary {
  margin-top: 0.35rem;
}

@media (max-width: 960px) {
  .shabbat-comparison {
    grid-template-columns: 1fr;
  }

  .source-project-hero-figure {
    width: min(82vw, 390px);
  }

  .shabbat-hero-symbol {
    width: min(80vw, 430px);
  }

  .uk-shabbat-hero-inner {
    grid-template-columns: 1fr;
  }

  .book-request-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .source-project-hero-figure img {
    height: min(118vw, 520px);
  }

  .source-project-audio {
    grid-template-columns: 1fr;
  }

  .source-project-download {
    width: 100%;
  }

  .source-project-toc ol {
    grid-template-columns: 1fr;
  }

  .book-request-fields {
    grid-template-columns: 1fr;
  }

  .book-request-form .button-primary {
    width: 100%;
  }
}

/* Detailed visual maps */
.visual-map-page {
  min-height: 70vh;
  background:
    radial-gradient(circle at 88% 8%, rgba(184, 140, 69, 0.18), transparent 28rem),
    linear-gradient(180deg, rgba(248, 244, 235, 0.72), rgba(255, 255, 255, 0) 36rem);
}

.visual-map-hero {
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.visual-map-hero-inner {
  max-width: 980px;
}

.visual-map-hero h1 {
  max-width: 14ch;
  margin: 0.7rem 0 1.1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 8vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.visual-map-hero .lead {
  max-width: 720px;
  margin: 0;
}

.visual-map-body {
  padding-top: 0;
}

.visual-map-shell {
  max-width: 1320px;
}

.visual-map-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.visual-map-heading h2 {
  margin: 0.45rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
}

.visual-map-zoom-button,
.visual-map-preview-action {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.magnifier-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.magnifier-icon::after {
  position: absolute;
  right: -0.42rem;
  bottom: -0.28rem;
  width: 0.5rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.visual-map-figure {
  margin: 0;
  padding: clamp(0.45rem, 1.5vw, 0.9rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.visual-map-preview {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  background: #e4d6ba;
  cursor: zoom-in;
}

.visual-map-preview img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 220ms ease, filter 220ms ease;
}

.visual-map-preview::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 66%, rgba(19, 27, 32, 0.55));
  content: "";
  pointer-events: none;
}

.visual-map-preview:hover img,
.visual-map-preview:focus-visible img {
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.008);
}

.visual-map-preview-action {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(14, 31, 38, 0.82);
  backdrop-filter: blur(10px);
}

.visual-map-figure figcaption {
  margin: 0.75rem 0.35rem 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

body.image-zoom-open {
  overflow: hidden;
}

.image-zoom-dialog {
  width: min(96vw, 1600px);
  max-width: none;
  height: min(94vh, 1050px);
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  color: #eef4f5;
  background: #101a1f;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

.image-zoom-dialog:not([open]) {
  display: none;
}

.image-zoom-dialog::backdrop {
  background: rgba(5, 10, 13, 0.82);
  backdrop-filter: blur(7px);
}

.image-zoom-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
}

.image-zoom-toolbar {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.9rem 0.8rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 27, 33, 0.96);
}

.image-zoom-title {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  min-width: 0;
}

.image-zoom-title strong {
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-zoom-title span {
  color: #d9bd83;
  font-size: 0.78rem;
  font-weight: 850;
}

.image-zoom-controls {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.image-zoom-controls button {
  display: inline-grid;
  min-width: 2.7rem;
  min-height: 2.7rem;
  padding: 0.45rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #fff;
  font: inherit;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.image-zoom-controls button:hover,
.image-zoom-controls button:focus-visible {
  border-color: rgba(217, 189, 131, 0.7);
  background: rgba(217, 189, 131, 0.16);
}

.image-zoom-controls button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.image-zoom-controls .image-zoom-close {
  margin-left: 0.25rem;
  font-size: 1.45rem;
  font-weight: 400;
}

.image-zoom-viewport {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.025) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.025) 75%),
    #071015;
  background-position: 0 0, 12px 12px;
  background-size: 24px 24px;
  cursor: default;
  scrollbar-color: #b89557 #17242b;
  touch-action: pan-x pan-y;
}

.image-zoom-viewport.is-zoomed {
  cursor: grab;
}

.image-zoom-viewport.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.image-zoom-viewport img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0 auto;
  pointer-events: none;
  user-select: none;
}

.image-zoom-viewport.is-zoomed img {
  margin: 0;
}

.image-zoom-help {
  margin: 0;
  padding: 0.68rem 1rem 0.78rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(238, 244, 245, 0.7);
  font-size: 0.75rem;
  line-height: 1.45;
  background: #0f1b21;
}

@media (max-width: 680px) {
  .visual-map-hero h1 {
    font-size: clamp(2.6rem, 15vw, 4.4rem);
  }

  .visual-map-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .visual-map-zoom-button {
    justify-content: center;
    width: 100%;
  }

  .visual-map-preview-action {
    right: 0.65rem;
    bottom: 0.65rem;
    padding: 0.55rem 0.75rem;
  }

  .image-zoom-dialog {
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .image-zoom-toolbar {
    align-items: flex-start;
    padding: 0.65rem;
  }

  .image-zoom-title {
    display: grid;
    gap: 0.15rem;
    padding: 0.35rem 0 0 0.2rem;
  }

  .image-zoom-controls {
    gap: 0.25rem;
  }

  .image-zoom-controls button {
    min-width: 2.45rem;
    min-height: 2.45rem;
    border-radius: 10px;
  }

  .image-zoom-help {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .visual-map-preview img {
    transition: none;
  }
}

/* Way, Truth and Life study hub */
.project-reader-self-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  margin: 2.4rem 0 1.2rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(20, 93, 91, 0.2);
  border-radius: 18px;
  background: linear-gradient(135deg, #eef8f6, #f8fbfa);
}

.project-reader-self-check h3,
.project-reader-self-check p {
  margin: 0.25rem 0 0;
}

.project-reader-self-check .button-primary {
  flex: 0 0 auto;
}

.project-reader-self-check .button-primary,
.study-hub-page .button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.78rem 1.2rem;
  border: 1px solid rgba(8, 67, 74, 0.28);
  border-radius: 999px;
  background: linear-gradient(135deg, #147c79 0%, #0d5968 58%, #133e58 100%);
  box-shadow: 0 10px 24px rgba(13, 89, 104, 0.2);
  color: #fff;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.project-reader-self-check .button-primary:hover,
.study-hub-page .button-primary:hover {
  box-shadow: 0 14px 30px rgba(13, 89, 104, 0.28);
  filter: saturate(1.08);
  transform: translateY(-2px);
}

.project-reader-self-check .button-primary:focus-visible,
.study-hub-page .button-primary:focus-visible {
  outline: 3px solid rgba(25, 139, 138, 0.28);
  outline-offset: 3px;
}

.project-reader-self-check .button-primary::before,
.study-hub-actions [data-start-quiz]::before {
  display: inline-grid;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  content: "?";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 800;
}

.study-hub-page {
  background: #f8faf9;
  overflow-x: clip;
}

.study-hub-page .project-reader-hero-grid > *,
.study-hub-notice > *,
.study-quiz-header > *,
.study-quiz-question,
.study-quiz-feedback {
  min-width: 0;
}

.study-hub-page .lead,
.study-hub-notice p,
.study-quiz-question h3,
.study-quiz-option,
.study-quiz-feedback p {
  overflow-wrap: anywhere;
}

.study-hub-intro,
.study-hub-content {
  padding-top: 1.75rem;
}

.study-hub-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 1.65rem;
  border: 1px solid rgba(20, 93, 91, 0.2);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(18, 50, 55, 0.07);
}

.study-hub-notice h2,
.study-hub-notice p {
  margin: 0;
}

.study-hub-notice p {
  max-width: 48rem;
}

.study-hub-part {
  margin-bottom: 3rem;
}

.study-hub-part > header {
  margin-bottom: 1rem;
}

.study-hub-part h2 {
  margin: 0.25rem 0 0;
}

.study-hub-chapters {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.study-hub-chapters > li {
  scroll-margin-top: 7rem;
  padding: 1.2rem 1.35rem;
  border: 1px solid rgba(24, 58, 66, 0.12);
  border-left: 4px solid #238d87;
  border-radius: 14px;
  background: #fff;
}

.study-hub-chapters > li.is-quiz-active {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border: 2px solid #238d87;
  border-left-width: 7px;
  background: linear-gradient(145deg, #f3fbf9 0%, #ffffff 62%);
  box-shadow: 0 22px 54px rgba(18, 80, 79, 0.15);
}

.study-hub-chapters > li.is-quiz-hidden,
.study-hub-part.is-quiz-hidden {
  display: none;
}

.study-hub-chapter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.study-hub-number,
.study-hub-status {
  color: #46706f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.study-hub-chapters h3,
.study-hub-chapters p {
  margin: 0.22rem 0 0;
}

.study-hub-actions {
  display: grid;
  flex: 0 0 auto;
  gap: 0.55rem;
  justify-items: end;
}

.study-quiz-inline[hidden] {
  display: none;
}

.study-quiz-inline {
  margin-top: 1.35rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(35, 141, 135, 0.35);
}

.study-quiz-focus-note {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #dff4ef;
  color: #173f43;
  line-height: 1.45;
}

.study-quiz-card {
  max-width: 100%;
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 2px solid rgba(35, 141, 135, 0.28);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(18, 71, 72, 0.12);
}

.study-quiz-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(24, 58, 66, 0.12);
}

.study-quiz-header h2,
.study-quiz-header p {
  margin: 0.25rem 0 0;
}

.study-quiz-topic-filter {
  display: grid;
  flex: 0 1 18rem;
  gap: 0.4rem;
  min-width: min(18rem, 100%);
  color: #315f63;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.study-quiz-topic-filter[hidden] {
  display: none;
}

.study-quiz-topic-filter select {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 2.5rem 0.65rem 0.9rem;
  border: 2px solid rgba(20, 124, 121, 0.38);
  border-radius: 13px;
  background: #f5fbfa;
  color: #143d45;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
}

.study-quiz-topic-filter select:focus-visible {
  outline: 3px solid rgba(25, 139, 138, 0.22);
  outline-offset: 2px;
}

.study-quiz-question-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  color: #46706f;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.study-quiz-question h3 {
  margin: 0.75rem 0 1.25rem;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  line-height: 1.35;
}

.study-quiz-question h3:focus {
  outline: none;
}

.study-quiz-options {
  display: grid;
  gap: 0.75rem;
}

.study-quiz-option {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(24, 58, 66, 0.18);
  border-radius: 12px;
  background: #f8faf9;
  color: #17333c;
  font: inherit;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.study-quiz-option:hover:not(:disabled),
.study-quiz-option:focus-visible {
  border-color: #238d87;
  background: #eff8f6;
  transform: translateY(-1px);
}

.study-quiz-option.is-correct {
  border-color: #238d67;
  background: #eaf7ef;
}

.study-quiz-option.is-incorrect {
  border-color: #ad5a4d;
  background: #fff0ed;
}

.study-quiz-option.is-first-answer {
  box-shadow: inset 0 0 0 2px rgba(23, 108, 112, 0.2);
}

.study-quiz-question-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1rem;
}

.study-quiz-question-actions .button-secondary {
  min-height: 2.6rem;
  padding: 0.62rem 1rem;
}

.study-quiz-question-actions [hidden] {
  display: none;
}

.study-quiz-option.is-reviewing {
  outline: 3px solid rgba(197, 149, 53, 0.38);
  outline-offset: 2px;
}

.study-quiz-option:disabled {
  color: #33484e;
  cursor: default;
}

.study-quiz-options.is-first-visit-hint .study-quiz-option {
  animation: study-quiz-option-hint 520ms ease-in-out calc(var(--quiz-option-index) * 150ms) 1 both;
}

@keyframes study-quiz-option-hint {
  0%, 100% {
    border-color: rgba(24, 58, 66, 0.18);
    box-shadow: none;
    transform: translateX(0);
  }
  45% {
    border-color: #238d87;
    box-shadow: 0 7px 18px rgba(35, 141, 135, 0.16);
    transform: translateX(8px);
  }
}

.study-quiz-feedback {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(24, 58, 66, 0.12);
}

.study-quiz-feedback h4,
.study-quiz-feedback p {
  margin: 0 0 0.75rem;
}

.study-quiz-answer-note {
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  background: #eef8f6;
  color: #28545a;
}

.study-quiz-feedback [data-quiz-next] {
  min-width: 13.5rem;
  margin-top: 0.35rem;
  justify-content: space-between;
}

.study-quiz-feedback [data-quiz-next]::after {
  display: inline-grid;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  content: "›";
  font-size: 1.35rem;
  line-height: 1;
}

.study-quiz-source {
  color: #51666d;
  font-size: 0.92rem;
}

.study-quiz-question-reference {
  color: #176c70;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(23, 108, 112, 0.38);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.study-quiz-question-reference:hover,
.study-quiz-question-reference:focus-visible {
  color: #0c4f55;
  text-decoration-color: currentColor;
}

.study-quiz-source-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.study-quiz-source-links > strong {
  color: #1f4f57;
}

.study-quiz-source-links a {
  display: inline-flex;
  min-height: 2.15rem;
  align-items: center;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(20, 113, 116, 0.34);
  border-radius: 999px;
  color: #0f6268;
  background: #eff9f7;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
}

.study-quiz-source-links a:hover,
.study-quiz-source-links a:focus-visible {
  border-color: #147174;
  color: #093f45;
  background: #dff3ef;
  box-shadow: 0 5px 14px rgba(20, 113, 116, 0.14);
}

.study-quiz-score {
  margin: 0.4rem 0;
  color: #145d5b;
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
}

.study-quiz-result {
  padding: clamp(0.75rem, 2vw, 1.25rem);
  border-radius: 16px;
}

.study-quiz-result:focus {
  outline: none;
}

.study-quiz-result h3,
.study-quiz-result p {
  margin: 0.5rem 0 0;
}

.study-quiz-review {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(24, 58, 66, 0.12);
}

.study-quiz-review h4,
.study-quiz-review ul {
  margin: 0;
}

.study-quiz-review ul {
  display: grid;
  gap: 0.4rem;
  padding: 0.7rem 0 0 1.2rem;
}

.study-quiz-review a {
  color: #145d5b;
  font-weight: 700;
}

.study-quiz-review-complete {
  color: #2f6558;
  font-weight: 700;
}

.study-quiz-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.study-quiz-interest {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
  border: 1px solid rgba(35, 141, 135, 0.3);
  border-radius: 18px;
  background: #eff8f6;
}

.study-quiz-interest h4,
.study-quiz-interest p {
  margin: 0.5rem 0 0;
}

.study-quiz-interest-form {
  display: grid;
  gap: 0.7rem;
}

.study-quiz-interest-form label:not(.study-quiz-honeypot) {
  display: grid;
  gap: 0.35rem;
  color: #173f43;
  font-size: 0.9rem;
  font-weight: 800;
}

.study-quiz-interest-form input[type="email"] {
  width: 100%;
  min-height: 3rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(24, 58, 66, 0.24);
  border-radius: 11px;
  background: #fff;
  color: #17333c;
  font: inherit;
}

.study-quiz-interest-form input[type="email"]:focus {
  border-color: #238d87;
  outline: 3px solid rgba(35, 141, 135, 0.16);
}

.study-quiz-interest-form .button-primary {
  justify-content: center;
}

.study-quiz-honeypot {
  position: absolute;
  left: -10000px;
}

.study-quiz-interest-privacy,
.study-quiz-interest-status {
  color: #51666d;
  font-size: 0.82rem;
  line-height: 1.45;
}

.study-quiz-interest-status:empty {
  display: none;
}

.study-quiz-interest-success {
  align-self: center;
  padding: 1rem;
  border-radius: 12px;
  background: #dff4e7;
  color: #245f4c;
}

.study-quiz-interest-success:focus {
  outline: 3px solid rgba(35, 141, 103, 0.18);
}

.study-quiz-footer {
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.75rem -0.55rem -0.55rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(20, 93, 91, 0.24);
  border-radius: 15px;
  background: rgba(239, 248, 246, 0.97);
  box-shadow: 0 10px 28px rgba(18, 71, 72, 0.2);
  backdrop-filter: blur(8px);
}

.study-quiz-focus-mode {
  padding-bottom: 0;
}

.study-quiz-focus-mode .study-quiz-footer {
  position: static;
  width: auto;
  margin: 1.75rem -0.55rem -0.55rem;
  border-width: 2px;
}

.study-quiz-footer p {
  margin: 0;
  color: #36585c;
  font-size: 0.92rem;
}

.study-quiz-footer [data-quiz-stop] {
  flex: 0 0 auto;
  min-height: 3rem;
  padding-inline: 1.35rem;
  border-color: #a96a12;
  background: linear-gradient(135deg, #f2c45a 0%, #dda12a 55%, #c77b16 100%);
  box-shadow: 0 10px 24px rgba(166, 99, 13, 0.3);
  color: #172f36;
}

.study-quiz-footer [data-quiz-stop]:hover {
  box-shadow: 0 14px 30px rgba(166, 99, 13, 0.38);
  filter: saturate(1.08);
}

.study-quiz-footer [data-quiz-stop]:disabled {
  box-shadow: none;
}

.study-quiz-chapter-drawer {
  margin-top: 1rem;
  border: 1px solid rgba(24, 58, 66, 0.15);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(18, 71, 72, 0.08);
}

.study-quiz-chapter-drawer summary {
  padding: 1rem 1.2rem;
  color: #145d5b;
  font-weight: 800;
  cursor: pointer;
}

.study-quiz-chapter-drawer p {
  margin: 0;
  padding: 0 1.2rem 1rem;
  color: #51666d;
}

.study-quiz-return-hint {
  color: #36585c;
  font-size: 0.92rem;
}

.study-quiz-return-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(720px, calc(100% - 2rem));
  margin: 0;
  padding: 1rem 1.25rem;
  border: 2px solid #238d87;
  border-radius: 16px;
  background: #e6f6f2;
  box-shadow: 0 12px 32px rgba(18, 71, 72, 0.2);
}

.study-quiz-return-mode {
  padding-bottom: 7rem;
}

.study-quiz-return-banner div {
  display: grid;
  gap: 0.3rem;
}

.study-quiz-return-banner .button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid #0f6b70;
  border-radius: 999px;
  background: #0f6b70;
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 107, 112, 0.24);
  font-weight: 800;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .study-quiz-options.is-first-visit-hint .study-quiz-option {
    animation: none;
  }
}

.study-quiz-loading,
.study-quiz-error {
  margin: 0;
}

@media (max-width: 760px) {
  .project-reader-self-check,
  .study-hub-notice,
  .study-hub-chapter-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .project-reader-self-check .button-primary,
  .study-hub-notice .button-secondary,
  .study-hub-actions .button-secondary {
    width: 100%;
    text-align: center;
  }

  .study-hub-actions {
    justify-items: stretch;
  }

  .study-quiz-header,
  .study-quiz-result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .study-quiz-topic-filter {
    min-width: 0;
    width: 100%;
  }

  .study-quiz-question-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .study-quiz-question-actions .button-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .study-quiz-header .button-secondary,
  .study-quiz-result-actions .button-primary,
  .study-quiz-result-actions .button-secondary {
    width: 100%;
    text-align: center;
  }

  .study-quiz-footer,
  .study-quiz-return-banner,
  .study-quiz-interest {
    align-items: stretch;
    flex-direction: column;
  }

  .study-quiz-interest {
    display: grid;
    grid-template-columns: 1fr;
  }

  .study-quiz-footer [data-quiz-stop],
  .study-quiz-return-banner .button-primary {
    width: 100%;
    text-align: center;
  }

  .study-quiz-focus-mode {
    padding-bottom: 0;
  }

  .study-quiz-return-mode {
    padding-bottom: 11rem;
  }

  .study-hub-page .project-reader-stats,
  .study-hub-page .study-hub-notice,
  .study-hub-page .study-quiz-card {
    width: 100%;
    max-width: 100%;
  }
}
