/*
  LaoChristian.org design tokens — from the ChatGPT design-brief
  ("Quiet Lao Modernism"). See chatgpt-design-chat/ (local, gitignored)
  for the source brief and reference imagery.
*/

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700&family=Noto+Sans+Lao:wght@400;500;600&family=Noto+Sans+Lao+Looped:wght@400;500;600&family=Noto+Serif:wght@400;600;700&family=Noto+Serif+Lao:wght@400;600;700&family=Phetsarath:wght@400;700&display=swap");

/*
  Self-hosted Lao fonts, copied from the lao-christian-app project
  (https://laoscript.net/download/, SIL Open Font License — see
  docs/assets/fonts/OFL.txt). Kept in sync with src/utils/laoFonts.ts
  in that repo so both projects offer the same font choices.
*/
@font-face {
  font-family: "Saysettha";
  src: url("../fonts/saysettha_v.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "SengBuhan";
  src: url("../fonts/sengbuhan_v.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Saysettha Mai";
  src: url("../fonts/saysetthamai_v.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "SengPathom";
  src: url("../fonts/sengpathom.ttf") format("truetype");
  font-display: swap;
}

:root {
  /* ---- Brief palette (light) ---- */
  --lc-paper: #f6f1e7;      /* rice-paper background */
  --lc-ink: #173b38;        /* deep Mekong green — primary ink */
  --lc-brand: #2e675e;      /* forest teal — primary brand */
  --lc-sage: #789b83;       /* muted sage — secondary foliage */
  --lc-river: #88a7b0;      /* dusty blue — river & mist */
  --lc-gold: #e5b957;       /* champa gold — accent, never dominant */
  --lc-clay: #b86f50;       /* soft clay — earth accent */

  /* ---- Dark mode ---- */
  --lc-dark-bg: #102b34;    /* deep night blue */
  --lc-dark-paper: #172f35; /* blue charcoal (card/surface tone) */

  /* ---- Type ---- */
  --lc-font-sans: "Noto Sans", "Noto Sans Lao Looped", sans-serif;
  --lc-font-serif: "Noto Serif", "Noto Serif Lao", serif;

  /* Scale from the brief, in absolute px (not rem): Material's own root
     font-size is 20px, not the browser default 16px, so rem-based clamps
     here would silently overshoot the brief's literal px targets. */
  --lc-text-hero: clamp(38px, 30px + 2.8vw, 72px);
  --lc-text-section: clamp(32px, 28px + 1.2vw, 42px);
  --lc-text-card: clamp(21px, 19px + 0.4vw, 26px);
  --lc-text-body-lo: 19px;   /* 18–20px, line-height 1.7 */
  --lc-text-body-en: 16px;
  --lc-text-ui: clamp(16px, 15px + 0.3vw, 18px);

  --lc-radius-card: 15px; /* 14–16px per brief */

  /* Homepage art — see assets-src/prompts/ for provenance and the
     original ChatGPT design-brief prompts these came from. */
  --lc-hero-img-light: url("../img/hero-light.webp");
  --lc-hero-img-dark: url("../img/hero-dark.webp");
  --lc-worship-img-light: url("../img/worship-light.webp");
  --lc-worship-img-dark: url("../img/worship-dark.webp");
}

/* ---- Wire tokens into Material's own variables (light) ---- */
:root,
[data-md-color-scheme="default"] {
  --md-default-bg-color: var(--lc-paper);
  --md-default-fg-color: var(--lc-ink);
  --md-default-fg-color--light: color-mix(in srgb, var(--lc-ink), transparent 35%);
  --md-default-fg-color--lighter: color-mix(in srgb, var(--lc-ink), transparent 65%);
  --md-primary-fg-color: var(--lc-brand);
  --md-primary-bg-color: var(--lc-paper);
  --md-accent-fg-color: var(--lc-clay);
  --md-typeset-a-color: var(--lc-brand);
  --md-footer-bg-color: var(--lc-ink);
  --md-footer-bg-color--dark: #102b26;
  --md-footer-fg-color: var(--lc-paper);
  --md-footer-fg-color--light: color-mix(in srgb, var(--lc-paper), transparent 25%);
}

/* ---- Wire tokens into Material's own variables (dark / "slate") ---- */
[data-md-color-scheme="slate"] {
  --md-default-bg-color: var(--lc-dark-bg);
  --md-default-fg-color: var(--lc-paper);
  --md-default-fg-color--light: color-mix(in srgb, var(--lc-paper), transparent 30%);
  --md-default-fg-color--lighter: color-mix(in srgb, var(--lc-paper), transparent 60%);
  --md-primary-fg-color: var(--lc-dark-paper);
  --md-primary-bg-color: var(--lc-paper);
  --md-accent-fg-color: var(--lc-gold);
  --md-typeset-a-color: var(--lc-gold);
  --md-footer-bg-color: #0b1f26;
  --md-footer-bg-color--dark: #081619;
  --md-footer-fg-color: var(--lc-paper);
  --md-footer-fg-color--light: color-mix(in srgb, var(--lc-paper), transparent 25%);
  --md-typeset-table-color: color-mix(in srgb, var(--lc-paper), transparent 80%);
}

/* ---- Base type ---- */
body,
.md-typeset {
  font-family: var(--lc-font-sans);
}

/* .lc-home variants included because the custom homepage template
   (overrides/home.html) renders outside Material's .md-typeset wrapper
   (its `container` block is intentionally emptied — see that file). */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.lc-home h1,
.lc-home h2,
.lc-home h3,
.lc-font-serif {
  font-family: var(--lc-font-serif);
  font-weight: 600; /* brief: prefer 600/700 over heavy 800 */
}

.md-typeset h1,
.lc-home h1 {
  font-size: var(--lc-text-hero);
  line-height: 1.15;
}

.md-typeset h2,
.lc-home h2 {
  font-size: var(--lc-text-section);
  line-height: 1.2;
}

.md-typeset h3,
.lc-home h3 {
  font-size: var(--lc-text-card);
}

/* Lao body text: slightly larger + taller line-height than English (brief: 18–20px, 1.65–1.8) */
:lang(lo) {
  line-height: 1.7;
}

p:lang(lo),
li:lang(lo) {
  font-size: var(--lc-text-body-lo);
}

.md-typeset {
  font-size: var(--lc-text-ui);
}

.md-typeset img {
  border-radius: 12px;
}

/* Light/dark image swap -- generalizes the header-logo toggle. Used both by
   the full-width page hero below and anywhere else a raster image needs to
   swap with the color scheme. */
img.lc-scheme-dark {
  display: none !important;
}

[data-md-color-scheme="slate"] img.lc-scheme-light {
  display: none !important;
}

[data-md-color-scheme="slate"] img.lc-scheme-dark {
  display: block !important;
}

/* Full-width page hero (overrides/main.html `tabs` block, driven by
   `hero_image` front matter). Sits before <main>, outside the sidebar grid,
   so it spans the full viewport width like the homepage hero. Every image
   is bottom-anchored: responsive cropping removes the top first while the
   lower edge always remains aligned with the bottom of its container. */
.lc-page-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1792 / 1024;
  max-height: 70vh;
  overflow: hidden;
  border-bottom: 1px solid color-mix(in srgb, var(--lc-ink), transparent 88%);
}

[data-md-color-scheme="slate"] .lc-page-hero {
  border-bottom-color: color-mix(in srgb, var(--lc-paper), transparent 88%);
}

.lc-page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  border-radius: 0;
}

/* ---- Paper grain (procedural SVG noise, not a generated image: seamless
   by construction, adapts to any color underneath via blend-mode, and
   costs ~300 bytes instead of a raster texture per surface/scheme). ---- */
body {
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-image: url("../img/paper-grain.svg");
  background-repeat: repeat;
  mix-blend-mode: overlay;
  opacity: 0.09;
  pointer-events: none;
}

.lc-grain,
.lc-card {
  position: relative;
}

.lc-grain::after,
.lc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("../img/paper-grain.svg");
  background-repeat: repeat;
  mix-blend-mode: overlay;
  opacity: 0.14;
  pointer-events: none;
}

/* ---- Card component (used by resource-gateway cards, Task 3) ---- */
.lc-card {
  display: block;
  position: relative;
  border-radius: var(--lc-radius-card);
  border: 1px solid color-mix(in srgb, var(--lc-ink), transparent 88%);
  background: color-mix(in srgb, var(--lc-paper), white 0%);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--lc-ink), transparent 92%);
  padding: 1.25rem 1.5rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.lc-card:hover {
  box-shadow: 0 4px 14px color-mix(in srgb, var(--lc-ink), transparent 85%);
  transform: translateY(-2px);
}

[data-md-color-scheme="slate"] .lc-card {
  background: var(--lc-dark-paper);
  border-color: color-mix(in srgb, var(--lc-paper), transparent 85%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* ---- Accent chip (gold — highlight only, never a dominant fill) ---- */
.lc-chip-gold {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--lc-gold), transparent 78%);
  color: color-mix(in srgb, var(--lc-clay), black 15%);
}

[data-md-color-scheme="slate"] .lc-chip-gold {
  background: color-mix(in srgb, var(--lc-gold), transparent 70%);
  color: var(--lc-gold);
}

/* ---- Brand mark (original black/white LaoChristian.org logo, swapped by scheme) ---- */
.md-logo .lc-mark {
  height: 1.4rem;
  width: auto;
}

img.lc-mark-dark {
  display: none !important;
}

[data-md-color-scheme="slate"] img.lc-mark-light {
  display: none !important;
}

[data-md-color-scheme="slate"] img.lc-mark-dark {
  display: inline !important;
}

/* ---- Cookie consent banner ---- */
.lc-cookie-banner {
  position: fixed;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 10;
  max-width: 30rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  background: var(--lc-paper);
  border: 1px solid color-mix(in srgb, var(--lc-ink), transparent 85%);
  box-shadow: 0 12px 32px rgba(15, 30, 28, 0.22);
  font-family: var(--lc-font-sans);
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.lc-cookie-banner[hidden] {
  display: flex !important; /* keep animating out instead of vanishing */
  pointer-events: none;
  transform: translateY(1.5rem);
  opacity: 0;
}

[data-md-color-scheme="slate"] .lc-cookie-banner {
  background: var(--lc-dark-paper);
  border-color: color-mix(in srgb, var(--lc-paper), transparent 85%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.lc-cookie-banner img {
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  flex-shrink: 0;
}

.lc-cookie-banner-text {
  flex: 1;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--lc-ink);
}

[data-md-color-scheme="slate"] .lc-cookie-banner-text {
  color: var(--lc-paper);
}

.lc-cookie-banner-text a {
  color: var(--lc-brand) !important;
}

[data-md-color-scheme="slate"] .lc-cookie-banner-text a {
  color: var(--lc-gold) !important;
}

.lc-cookie-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lc-cookie-banner-actions button {
  font-family: var(--lc-font-sans);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.lc-cookie-accept {
  background: var(--lc-brand);
  color: var(--lc-paper);
  border: none;
}

[data-md-color-scheme="slate"] .lc-cookie-accept {
  background: var(--lc-gold);
  color: var(--lc-dark-bg);
}

.lc-cookie-reject {
  background: transparent;
  color: var(--lc-ink);
  border: 1px solid color-mix(in srgb, var(--lc-ink), transparent 55%);
}

[data-md-color-scheme="slate"] .lc-cookie-reject {
  color: var(--lc-paper);
  border-color: color-mix(in srgb, var(--lc-paper), transparent 55%);
}

@media (max-width: 30rem) {
  .lc-cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .lc-cookie-banner-actions {
    flex-direction: row;
    width: 100%;
  }

  .lc-cookie-banner-actions button {
    flex: 1;
  }
}

/* ---- Lao font picker (review tool for the Lao team's font bake-off) ---- */
/* Font-family values here must match the `cssFamily` values in
   docs/assets/javascripts/lao-font-picker.js (kept in sync with
   lao-christian-app's src/utils/laoFonts.ts preset list). */
html[data-lao-font="noto-sans-lao"] { --lc-font-lao-preview: "Noto Sans Lao"; }
html[data-lao-font="noto-sans-lao-looped"] { --lc-font-lao-preview: "Noto Sans Lao Looped"; }
html[data-lao-font="noto-serif-lao"] { --lc-font-lao-preview: "Noto Serif Lao"; }
html[data-lao-font="phetsarath"] { --lc-font-lao-preview: "Phetsarath"; }
html[data-lao-font="saysettha"] { --lc-font-lao-preview: "Saysettha"; }
html[data-lao-font="sengbuhan"] { --lc-font-lao-preview: "SengBuhan"; }
html[data-lao-font="saysettha-mai"] { --lc-font-lao-preview: "Saysettha Mai"; }
html[data-lao-font="sengpathom"] { --lc-font-lao-preview: "SengPathom"; }

/* Only overrides once a specific font is chosen — otherwise the brief's
   normal sans/serif split (set above) stands. */
html[data-lao-font] body,
html[data-lao-font] .md-typeset,
html[data-lao-font] .md-typeset h1,
html[data-lao-font] .md-typeset h2,
html[data-lao-font] .md-typeset h3 {
  font-family: var(--lc-font-lao-preview), var(--lc-font-sans) !important;
}

.lc-font-picker {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-inline: 0.2rem;
}

.lc-font-picker select {
  font-size: 0.7rem;
  max-width: 9.5rem;
  background: transparent;
  color: inherit;
  border: 1px solid color-mix(in srgb, currentColor, transparent 60%);
  border-radius: 4px;
  padding: 0.2rem 0.3rem;
}

.lc-font-picker select option {
  color: #111;
}

.lc-language-switch__button {
  display: grid;
  place-items: center;
}

.lc-language-switch__flag {
  display: block;
  width: 1.55rem;
  height: auto;
  border-radius: 0.12rem;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 28%), 0 1px 3px rgb(0 0 0 / 25%);
}

.lc-app-screenshot {
  display: block;
  margin-block: 1.5rem 2rem;
  border: 1px solid color-mix(in srgb, var(--lc-brand), transparent 72%);
  border-radius: 0.75rem;
  box-shadow: 0 0.75rem 2rem rgb(21 62 66 / 14%);
}

/* ---- Small inline icons (contact info, list items) ---- */
.lc-inline-icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.22em;
  margin-right: 0.35rem;
  color: var(--lc-brand);
}

[data-md-color-scheme="slate"] .lc-inline-icon {
  color: var(--lc-gold);
}

.lc-contact-row,
.lc-list-icon-row {
  margin-bottom: 1.1rem;
}

.lc-list-icon-row .lc-inline-icon {
  vertical-align: -0.3em;
}

/* ---- Official Adventist symbol slot ----
   Never redrawn/recolored/modified -- the badge (white mark on denim blue)
   is self-contained and reads correctly on any background, so it's used
   as-is everywhere rather than needing separate light/dark variants. */
.lc-adventist-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.lc-adventist-slot img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 6px;
}

/* =====================================================================
   Homepage (overrides/home.html)
   ===================================================================== */

.lc-section {
  padding: clamp(2.5rem, 4vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
}

.lc-section-inner {
  max-width: 74rem;
  margin-inline: auto;
}

.lc-eyebrow {
  font-family: var(--lc-font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lc-brand);
}

[data-md-color-scheme="slate"] .lc-eyebrow {
  color: var(--lc-gold);
}

/* ---- Hero ---- */
/* Soft directional scrim (first background layer = drawn on top) fading
   from paper-color at the left edge to fully transparent by ~55% width,
   so the text column sits on a guaranteed-legible wash while the
   mountains/river on the right stay completely uncovered. Needed because
   the photographic-style art varies in brightness (sky vs. foliage vs.
   water), so a flat text color alone isn't reliably readable everywhere
   it might land. */
.lc-hero {
  position: relative;
  background-image:
    linear-gradient(
      to right,
      color-mix(in srgb, var(--lc-paper), transparent 8%) 0%,
      color-mix(in srgb, var(--lc-paper), transparent 45%) 30%,
      transparent 56%
    ),
    var(--lc-hero-img-light);
  background-size: cover;
  background-position: right bottom;
  border-bottom: 1px solid color-mix(in srgb, var(--lc-ink), transparent 88%);
}

[data-md-color-scheme="slate"] .lc-hero {
  background-image:
    linear-gradient(
      to right,
      color-mix(in srgb, var(--lc-dark-bg), transparent 5%) 0%,
      color-mix(in srgb, var(--lc-dark-bg), transparent 40%) 30%,
      transparent 56%
    ),
    var(--lc-hero-img-dark);
  border-bottom-color: color-mix(in srgb, var(--lc-paper), transparent 88%);
}

.lc-hero-inner {
  max-width: 74rem;
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 6vw, 3rem) clamp(3rem, 8vw, 6rem) clamp(1.25rem, 6vw, 3rem);
  padding-right: clamp(1.25rem, 6vw, 3rem);
}

.lc-hero-text {
  max-width: 34rem;
}

.lc-hero-text .lc-lao {
  font-family: var(--lc-font-serif);
  font-size: var(--lc-text-hero);
  line-height: 1.1;
  margin: 0 0 0.6rem;
  color: var(--lc-ink);
}

[data-md-color-scheme="slate"] .lc-hero-text .lc-lao {
  color: var(--lc-paper);
}

.lc-hero-text p {
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 30rem;
  margin: 0 0 1.75rem;
  color: var(--lc-ink);
}

[data-md-color-scheme="slate"] .lc-hero-text p {
  color: var(--lc-paper);
}

.lc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.lc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--lc-font-sans);
  font-weight: 600;
  font-size: 17px;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lc-btn:hover {
  transform: translateY(-1px);
}

.lc-btn-primary {
  background: var(--lc-brand);
  color: var(--lc-paper) !important;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--lc-brand), transparent 65%);
}

[data-md-color-scheme="slate"] .lc-btn-primary {
  background: var(--lc-gold);
  color: var(--lc-dark-bg) !important;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--lc-gold), transparent 70%);
}

.lc-btn-secondary {
  background: transparent;
  color: var(--lc-ink) !important;
  border: 1px solid color-mix(in srgb, var(--lc-ink), transparent 55%);
}

[data-md-color-scheme="slate"] .lc-btn-secondary {
  color: var(--lc-paper) !important;
  border-color: color-mix(in srgb, var(--lc-paper), transparent 55%);
}

/* Reserved "Sabbath column" — right-edge accent strip, desktop only */
.lc-sabbath-col {
  display: none;
}

@media (min-width: 76rem) {
  .lc-sabbath-col {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 4.5rem;
    padding: 1.5rem 0.75rem;
    background: var(--lc-ink);
  }

  .lc-sabbath-col .lc-adventist-slot {
    padding: 0;
  }
}

/* ---- Resource gateway cards ---- */
.lc-resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.lc-resource-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.lc-resource-card .lc-icon {
  width: 2.75rem;
  height: 2.75rem;
  color: var(--lc-brand);
}

[data-md-color-scheme="slate"] .lc-resource-card .lc-icon {
  color: var(--lc-gold);
}

.lc-resource-card h3 {
  margin: 0;
}

.lc-resource-card p {
  margin: 0;
  color: color-mix(in srgb, var(--lc-ink), transparent 25%);
  font-size: 0.95rem;
  line-height: 1.55;
  flex: 1;
}

[data-md-color-scheme="slate"] .lc-resource-card p {
  color: color-mix(in srgb, var(--lc-paper), transparent 20%);
}

.lc-resource-card .lc-card-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--lc-brand) !important;
  text-decoration: none !important;
}

[data-md-color-scheme="slate"] .lc-resource-card .lc-card-link {
  color: var(--lc-gold) !important;
}

/* ---- Sieng Khaen Lao section ---- */
.lc-worship {
  background-image: linear-gradient(
      to bottom,
      color-mix(in srgb, var(--lc-ink), transparent 8%),
      color-mix(in srgb, var(--lc-ink), transparent 8%)
    ),
    var(--lc-worship-img-light);
  background-size: cover;
  background-position: center;
  color: var(--lc-paper);
}

[data-md-color-scheme="slate"] .lc-worship {
  background-image: linear-gradient(
      to bottom,
      color-mix(in srgb, var(--lc-dark-bg), transparent 15%),
      color-mix(in srgb, var(--lc-dark-bg), transparent 15%)
    ),
    var(--lc-worship-img-dark);
}

.lc-worship .lc-eyebrow {
  color: var(--lc-gold);
}

.lc-worship h2 {
  color: var(--lc-paper);
  margin-top: 0.3rem;
}

.lc-worship p {
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: color-mix(in srgb, var(--lc-paper), transparent 8%);
}

.lc-worship .lc-hero-actions {
  margin-top: 1.5rem;
}

.lc-worship .lc-btn-secondary {
  color: var(--lc-paper) !important;
  border-color: color-mix(in srgb, var(--lc-paper), transparent 45%);
}

/* ---- Mission section ---- */
.lc-mission {
  background: color-mix(in srgb, var(--lc-sage), var(--lc-paper) 78%);
  text-align: center;
}

[data-md-color-scheme="slate"] .lc-mission {
  background: color-mix(in srgb, var(--lc-dark-paper), var(--lc-dark-bg) 40%);
}

.lc-mission .lc-section-inner {
  max-width: 42rem;
}

.lc-mission .lc-eyebrow {
  display: block;
}

.lc-mission p {
  font-size: 1.1rem;
  line-height: 1.65;
}

/* ---- Site-wide footer (overrides/partials/footer.html) ---- */
/* Full-footer Lao textile artwork. A dark ink wash preserves dependable text
   contrast while allowing the edge ornament and Mekong linework to remain
   visible; .lc-grain adds the same subtle paper texture used elsewhere. */
.lc-footer {
  padding: 2.75rem 1.5rem 1.5rem;
  background-image:
    linear-gradient(rgba(16, 43, 52, 0.68), rgba(16, 43, 52, 0.78)),
    url("../img/footer-textile-v2.webp");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}

.lc-footer-inner {
  max-width: 74rem;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.lc-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--lc-font-serif);
  font-size: 1.15rem;
  color: var(--md-footer-fg-color);
}

.lc-footer-brand img {
  height: 2rem;
  width: auto;
}

.lc-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lc-footer-links a {
  color: var(--md-footer-fg-color--light) !important;
  text-decoration: none !important;
  font-size: 0.9rem;
}

.lc-footer-links a:hover {
  color: var(--md-footer-fg-color) !important;
}

.lc-footer-social {
  display: flex;
  gap: 0.85rem;
}

.lc-footer-social a {
  color: var(--md-footer-fg-color--light) !important;
}

.lc-footer-social a:hover {
  color: var(--lc-gold) !important;
}

.lc-footer-social svg {
  width: 1.15rem;
  height: 1.15rem;
}

.lc-footer .lc-adventist-slot {
  max-width: 20rem;
  margin-top: 1.5rem;
}
