:root {
  --page: #f7f8f4;
  --ink: #17201d;
  --muted: #52615c;
  --line: #d8ded6;
  --surface: #ffffff;
  --soft: #eef4ef;
  --deep: #163b33;
  --accent: #c65f3c;
  --accent-2: #2e6f8f;
  --gold: #b98528;
  --shadow: 0 16px 36px rgba(25, 38, 33, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.theme-water {
  --page: #f6faf8;
  --soft: #e8f3ef;
  --deep: #163d35;
  --accent: #c65f3c;
  --accent-2: #2e6f8f;
}

body.theme-hands {
  --page: #f8f7f0;
  --soft: #edf1e6;
  --deep: #233f31;
  --accent: #a84b38;
  --accent-2: #496f9d;
}

body.theme-field {
  --page: #f5f7fb;
  --soft: #e7eef5;
  --deep: #1b3245;
  --accent: #9b5b37;
  --accent-2: #557744;
}

body.theme-foundation {
  --page: #f5f6f4;
  --soft: #e7ebe7;
  --deep: #122d36;
  --accent: #b98528;
  --accent-2: #7b4b5d;
}

body.theme-table {
  --page: #fbf7f2;
  --soft: #f0ebe0;
  --deep: #392f2a;
  --accent: #27746f;
  --accent-2: #b85b3d;
}

html[data-theme="night"] body {
  --page: #111614;
  --ink: #f2f7f3;
  --muted: #b8c7c0;
  --line: rgba(231, 240, 235, 0.18);
  --surface: #18211e;
  --soft: #14201d;
  --deep: #9bd6c8;
  --accent: #ff9d74;
  --accent-2: #8bc4ea;
  --gold: #e6bf69;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

html[data-theme="night"] .topbar,
html[data-theme="night"] .concept-switcher {
  background: rgba(17, 22, 20, 0.94);
}

html[data-theme="night"] .review-banner {
  background: #2a2417;
  border-color: #5d4a24;
  color: #f8edd0;
}

html[data-theme="night"] .button {
  background: #d9f3ec;
  color: #0f1815;
}

html[data-theme="night"] .button.secondary,
html[data-theme="night"] .control-button,
html[data-theme="night"] .language-select {
  background: transparent;
  color: #d9f3ec;
  border-color: rgba(217, 243, 236, 0.28);
}

html[data-theme="night"] .version-pill {
  color: #d9f3ec;
}

html[data-theme="night"] .media-caption,
html[data-theme="night"] .concept-switcher a,
html[data-theme="night"] .header-controls {
  background: rgba(24, 33, 30, 0.84);
  color: var(--ink);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
}

.skip-link:focus {
  top: 12px;
}

.review-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: #fff7df;
  border-bottom: 1px solid #e5cf8e;
  color: #3d3321;
}

.review-banner strong,
.eyebrow {
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
}

.version {
  letter-spacing: 0;
  font-size: 0.9rem;
  font-weight: 800;
}

.review-banner p {
  margin: 0;
  font-size: 0.9rem;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 248, 244, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.topbar-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 850;
}

.brand-logo {
  width: 54px;
  height: 38px;
  padding: 3px;
  border: 1px solid rgba(22, 59, 51, 0.16);
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}

.brand-name {
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.93rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.control-button {
  min-width: 38px;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 850;
}

.language-select {
  min-width: 86px;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
}

.version-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.icon-button {
  font-size: 1rem;
  line-height: 1;
}

.icon-button[data-theme-toggle] {
  font-size: 1.2rem;
}

.control-button[aria-pressed="true"] {
  background: var(--deep);
  color: #fff;
}

.control-button:focus-visible,
.language-select:focus-visible,
.button:focus-visible,
.nav a:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
}

.concept-switcher {
  position: sticky;
  top: 68px;
  z-index: 9;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 244, 0.94);
  backdrop-filter: blur(12px);
}

.concept-switcher-inner {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 7px 0;
}

.concept-switcher a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.concept-switcher a[aria-current="page"] {
  border-color: var(--deep);
  background: var(--deep);
  color: #fff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: var(--deep);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(23, 32, 29, 0.16);
}

.button.secondary {
  background: transparent;
  color: var(--deep);
  border-color: var(--line);
}

.social-button {
  gap: 8px;
}

.button-icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  fill: currentColor;
}

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  align-items: stretch;
  gap: 28px;
  padding: 32px 0 24px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 0;
  font-size: 4.25rem;
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.2;
}

.lede {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-media {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--soft);
}

.hero-media img,
.photo-band img,
.story-image img,
.option-shot:not(.option-logo-shot) img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media img {
  position: absolute;
  inset: 0;
}

.media-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  right: 14px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--ink);
  font-weight: 750;
}

.section {
  padding: 54px 0;
  border-top: 1px solid var(--line);
}

.section.alt {
  background: var(--soft);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.span-4 {
  grid-column: span 4;
}

.span-5 {
  grid-column: span 5;
}

.span-6 {
  grid-column: span 6;
}

.span-7 {
  grid-column: span 7;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: span 12;
}

.card,
.option-card,
.stat,
.note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(25, 38, 33, 0.07);
}

.card {
  padding: 20px;
}

.card p:last-child,
.note p:last-child {
  margin-bottom: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.program-cards {
  margin: 22px 0 12px;
}

.program-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(25, 38, 33, 0.07);
}

.program-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.program-card div {
  padding: 16px;
}

.program-card p:last-child {
  margin-bottom: 0;
}

html[data-theme="night"] .program-card {
  background: var(--surface);
}

.list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  padding: 16px;
}

.stat strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
}

.stat span,
.small {
  color: var(--muted);
  font-size: 0.9rem;
}

.verse-note {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.verse-note blockquote {
  margin: 8px 0;
}

.verse-note blockquote p {
  margin-bottom: 8px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  line-height: 1.45;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
}

.source-links a {
  color: var(--deep);
  font-weight: 800;
}

.photo-band {
  height: 320px;
  overflow: hidden;
}

.story-image {
  min-height: 360px;
  overflow: hidden;
  border-radius: 8px;
}

.footer {
  padding: 26px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.footer a:hover {
  color: var(--ink);
}

.privacy-hero {
  padding: 72px 0 24px;
}

.privacy-hero h1 {
  max-width: 16ch;
}

.privacy-section {
  padding-top: 24px;
}

.policy-content {
  max-width: 820px;
}

.policy-block {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.policy-block h2 {
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.policy-block p {
  margin-bottom: 10px;
}

.hub-hero {
  padding: 48px 0 28px;
}

.hub-hero h1 {
  max-width: 15ch;
}

.hub-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.hub-panel {
  position: static;
  max-width: 780px;
}

.concept-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.option-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) 1fr;
  overflow: hidden;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.option-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.option-shot {
  min-height: 190px;
  height: auto;
  background: var(--soft);
}

.option-logo-shot {
  display: grid;
  place-items: center;
  padding: 22px;
  background: #fff;
}

.option-logo-shot img {
  width: min(100%, 230px);
  height: auto;
  object-fit: contain;
}

.option-body {
  padding: 16px;
}

.option-body h2 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.option-body p {
  margin-bottom: 12px;
  color: var(--muted);
}

.option-card::before {
  display: block;
  grid-column: 1 / -1;
  padding: 10px 14px 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.selected-grid .option-card {
  border: 2px solid var(--deep);
}

.option-selected::before {
  content: "Direccion seleccionada";
  color: var(--deep);
}

html[lang="en"] .option-selected::before {
  content: "Selected direction";
}

.archive-section {
  display: grid;
  gap: 18px;
  padding-top: 20px;
}

.archive-grid .option-card {
  opacity: 0.86;
}

.archive-grid .option-card:hover {
  opacity: 1;
}

.option-water {
  border-color: rgba(198, 95, 60, 0.34);
}

.option-water::before {
  content: "Mision calida";
}

html[lang="en"] .option-water::before {
  content: "Warm mission";
}

.option-water .option-shot {
  border-bottom: 5px solid #c65f3c;
}

.option-hands {
  border-left: 8px solid #496f9d;
  background: #fbfaf3;
}

.option-hands::before {
  content: "Directorio de servicios";
}

html[lang="en"] .option-hands::before {
  content: "Service directory";
}

.option-hands .option-shot {
  min-height: 160px;
}

.option-field {
  background: #111a20;
  color: #f8fbf5;
}

.option-field::before,
.option-field .option-body p {
  color: rgba(248, 251, 245, 0.74);
}

.option-field::before {
  content: "Notas editoriales";
}

html[lang="en"] .option-field::before {
  content: "Magazine notes";
}

.option-field .tag {
  background: rgba(255, 255, 255, 0.12);
  color: #f8fbf5;
}

.option-foundation {
  border-radius: 0;
  box-shadow: none;
}

.option-foundation::before {
  content: "Resumen institucional";
}

html[lang="en"] .option-foundation::before {
  content: "Institutional brief";
}

.option-foundation .option-shot {
  filter: grayscale(1);
}

.option-foundation .option-logo-shot {
  filter: none;
}

.option-table {
  background: #fff7ed;
  border-color: #e3bb8d;
}

.option-table::before {
  content: "Acogida comunitaria";
}

html[lang="en"] .option-table::before {
  content: "Community welcome";
}

.option-table .option-shot {
  min-height: 210px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  border-radius: 6px;
  padding: 4px 7px;
  background: var(--soft);
  color: var(--deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.split-title {
  max-width: 18ch;
}

.timeline {
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.timeline-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
}

.timeline-item::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--deep);
  color: #fff;
  font-weight: 850;
}

.quote {
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--deep);
}

.compact-hero {
  min-height: 560px;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
}

.journal-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 26px;
  align-items: start;
  padding: 38px 0 26px;
}

.journal-title {
  position: sticky;
  top: 96px;
}

.journal-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.journal-thumb {
  height: 130px;
  overflow: hidden;
  border-radius: 8px;
}

.journal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.foundation-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(360px, 0.9fr);
  gap: 28px;
  align-items: center;
  padding: 48px 0 32px;
}

.foundation-logo-panel {
  display: grid;
  place-items: center;
  min-height: 300px;
  margin: 0;
  padding: 30px;
  border: 1px solid var(--line);
  background: #fff;
}

.foundation-logo-panel img {
  width: min(100%, 360px);
  height: auto;
}

.foundation-hero h1 {
  max-width: 18ch;
  font-size: 4.6rem;
}

.foundation-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.foundation-strip div {
  padding: 22px;
  border-right: 1px solid var(--line);
}

.foundation-strip div:last-child {
  border-right: 0;
}

.table-hero {
  min-height: 680px;
  grid-template-columns: 1fr;
}

.table-hero .hero-copy {
  max-width: 780px;
  padding-top: 32px;
}

.table-hero h1 {
  max-width: 14ch;
}

.table-photo-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  min-height: 360px;
}

.table-photo-grid .story-image {
  min-height: 360px;
}

.contact-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border-radius: 8px;
  background: var(--deep);
  color: #fff;
}

.contact-band p {
  color: rgba(255, 255, 255, 0.82);
}

.contact-detail {
  margin-bottom: 0;
}

.contact-band .button {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.62);
}

.contact-band .action-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: stretch;
  width: 100%;
}

.contact-band .social-button,
.contact-band .button.secondary.social-button {
  width: 100%;
  min-height: 50px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.62);
}

.contact-band .button.secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.62);
}

body.theme-water {
  background:
    linear-gradient(90deg, rgba(198, 95, 60, 0.11) 0 12px, transparent 12px),
    var(--page);
}

body.theme-water .hero {
  grid-template-columns: minmax(0, 0.74fr) minmax(420px, 1fr);
  min-height: 690px;
}

body.theme-water h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.25rem;
  font-weight: 650;
}

body.theme-water .hero-media {
  border-radius: 8px 8px 96px 8px;
  border: 10px solid #fff;
}

body.theme-water .section:not(.alt) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent);
}

body.theme-water .stat {
  border-top: 5px solid var(--accent);
}

body.theme-hands .compact-hero {
  min-height: auto;
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1fr);
  align-items: center;
  padding: 42px 0;
}

body.theme-hands .hero-copy {
  padding: 26px;
  border-left: 8px solid var(--accent-2);
  background: var(--surface);
  box-shadow: var(--shadow);
}

body.theme-hands h1 {
  max-width: 11ch;
  font-size: 3.65rem;
}

body.theme-hands .hero-media {
  min-height: 430px;
  border-radius: 0;
  box-shadow: none;
}

body.theme-hands .card {
  position: relative;
  padding-left: 24px;
  box-shadow: none;
}

body.theme-hands .card::before {
  content: "";
  position: absolute;
  inset: 16px auto 16px 12px;
  width: 4px;
  border-radius: 4px;
  background: var(--accent-2);
}

body.theme-hands .timeline-item {
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}

body.theme-field {
  --surface: #fbfcf8;
  background: #101820;
  color: #f8fbf5;
}

body.theme-field .topbar,
body.theme-field .concept-switcher {
  background: rgba(16, 24, 32, 0.94);
}

body.theme-field .nav a,
body.theme-field .journal-title .lede,
body.theme-field .journal-title .small,
body.theme-field #stories .journal-card p,
body.theme-field #stories .small {
  color: rgba(248, 251, 245, 0.78);
}

body.theme-field .nav a:hover {
  color: #fff;
}

body.theme-field .button.secondary {
  color: #f8fbf5;
  border-color: rgba(248, 251, 245, 0.34);
}

body.theme-field .journal-layout {
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  min-height: 640px;
  padding-top: 52px;
}

body.theme-field h1,
body.theme-field h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
}

body.theme-field h1 {
  font-size: 3.7rem;
}

body.theme-field .hero-media {
  min-height: 620px;
  border-radius: 0;
  box-shadow: none;
}

body.theme-field .section {
  border-color: rgba(255, 255, 255, 0.18);
}

body.theme-field .journal-card {
  grid-template-columns: 240px 1fr;
  padding: 22px 0;
  border-color: rgba(255, 255, 255, 0.22);
}

body.theme-field .journal-card h3::before {
  content: "Note";
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

body.theme-field .journal-thumb {
  height: 170px;
  border-radius: 0;
}

body.theme-field .section.alt,
body.theme-field .card,
body.theme-field .contact-band {
  background: #f8fbf5;
  color: #101820;
}

body.theme-foundation {
  --page: #f7f7f5;
  --surface: #fff;
  --line: #cfd2cf;
  --deep: #142933;
}

body.theme-foundation .button,
body.theme-foundation .concept-switcher a[aria-current="page"] {
  background: #142933;
  color: #fff;
}

body.theme-foundation .button.secondary {
  background: transparent;
  color: #142933;
}

body.theme-foundation .foundation-hero {
  padding: 34px 0 40px;
  border-bottom: 1px solid var(--line);
}

body.theme-foundation h1 {
  max-width: 13ch;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 4.6rem;
  font-weight: 500;
}

body.theme-foundation .hero-media {
  min-height: 480px;
  border-radius: 0 0 92px 0;
  border: 10px solid #fff;
}

body.theme-foundation .photo-band {
  height: 220px;
}

body.theme-foundation .logo-band {
  display: grid;
  place-items: center;
  padding: 28px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  filter: none;
}

body.theme-foundation .logo-band img {
  width: min(100%, 420px);
  height: auto;
  object-fit: contain;
}

body.theme-foundation .card,
body.theme-foundation .stat,
body.theme-foundation .note,
body.theme-foundation .foundation-strip {
  border-radius: 0;
  box-shadow: none;
}

body.theme-foundation .foundation-strip {
  background: #fff;
}

body.theme-foundation .contact-band {
  border-radius: 0;
  background: #142933;
}

body.theme-foundation .contact-band .button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.62);
}

body.theme-table {
  background:
    linear-gradient(180deg, #fff7ed 0, #fff7ed 560px, var(--page) 560px);
}

body.theme-table .table-hero {
  min-height: auto;
  gap: 24px;
  padding-top: 44px;
}

body.theme-table .table-hero .hero-copy {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(280px, 0.84fr) minmax(260px, 0.7fr);
  align-items: end;
}

body.theme-table h1 {
  max-width: 10ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.4rem;
  font-weight: 650;
}

body.theme-table .hero-actions,
body.theme-table .version {
  grid-column: 2;
}

body.theme-table .table-photo-grid {
  grid-template-columns: 1.35fr 0.65fr;
  min-height: 430px;
}

body.theme-table .story-image {
  border: 8px solid #fff;
  box-shadow: var(--shadow);
}

body.theme-table .section.alt {
  background: #f7e6d0;
}

html[data-theme="night"] .option-hands,
html[data-theme="night"] .option-table {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

html[data-theme="night"] .verse-note {
  background: rgba(24, 33, 30, 0.84);
}

html[data-theme="night"] body.theme-foundation {
  --page: #111614;
  --surface: #18211e;
  --line: rgba(231, 240, 235, 0.18);
  --deep: #9bd6c8;
  background: var(--page);
  color: var(--ink);
}

html[data-theme="night"] body.theme-foundation .button.secondary {
  color: #d9f3ec;
  border-color: rgba(217, 243, 236, 0.28);
}

html[data-theme="night"] body.theme-foundation .foundation-strip {
  background: var(--surface);
}

html[data-theme="night"] body.theme-foundation .contact-band {
  background: #d9f3ec;
  color: #0f1815;
}

html[data-theme="night"] body.theme-foundation .contact-band p {
  color: rgba(15, 24, 21, 0.76);
}

html[data-theme="night"] body.theme-foundation .contact-band .social-button,
html[data-theme="night"] body.theme-foundation .contact-band .button.secondary.social-button {
  background: #142933;
  color: #fff;
  border-color: #142933;
}

html[data-theme="night"] body.theme-table {
  background:
    linear-gradient(180deg, #17130f 0, #17130f 560px, var(--page) 560px);
}

html[data-theme="night"] body.theme-table .section.alt {
  background: #211b16;
}

@media (max-width: 1100px) {
  body.theme-table .table-hero .hero-copy {
    grid-template-columns: 1fr;
  }

  body.theme-table h1 {
    max-width: 13ch;
    font-size: 3.8rem;
  }

  body.theme-table .hero-actions,
  body.theme-table .version {
    grid-column: auto;
  }
}

@media (max-width: 940px) {
  .hero,
  .compact-hero,
  .hub-layout,
  .journal-layout,
  .table-photo-grid {
    grid-template-columns: 1fr;
  }

  .hub-panel,
  .journal-title {
    position: static;
  }

  h1,
  .foundation-hero h1 {
    font-size: 3.1rem;
  }

  .hero-media {
    min-height: 360px;
  }

  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8 {
    grid-column: span 12;
  }

  .foundation-hero {
    grid-template-columns: 1fr;
  }

  .cards,
  .stats,
  .foundation-strip {
    grid-template-columns: 1fr;
  }

  .foundation-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .foundation-strip div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 700px) {
  .shell {
    width: min(100% - 20px, 1180px);
  }

  .topbar-inner {
    min-height: auto;
    padding: 12px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }

  .nav {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 4px;
  }

  .concept-switcher {
    top: 124px;
  }

  .review-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .hero,
  .compact-hero,
  .table-hero {
    min-height: auto;
    padding-top: 24px;
  }

  h1,
  .foundation-hero h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .concept-grid {
    grid-template-columns: 1fr;
  }

  .option-card {
    grid-template-columns: 1fr;
  }

  .option-shot,
  .option-hands .option-shot,
  .option-table .option-shot {
    min-height: 168px;
    height: 168px;
  }

  .journal-card {
    grid-template-columns: 1fr;
  }

  .contact-band {
    grid-template-columns: 1fr;
  }

  body.theme-water h1,
  body.theme-field h1,
  body.theme-foundation h1,
  body.theme-table h1 {
    font-size: 2.8rem;
  }

  body.theme-water .hero,
  body.theme-hands .compact-hero,
  body.theme-field .journal-layout {
    grid-template-columns: 1fr;
  }

  body.theme-water .hero-media,
  body.theme-field .hero-media {
    min-height: 360px;
  }
}
