/* Little Lantern site menu (every page). Markup comes from scripts/little_lantern_hubs.py nav_items(). */
.llnav { position: relative; display: flex; align-items: center; gap: 6px; font: 700 15px/1.2 "Nunito Sans", system-ui, sans-serif; }
.llnav a, .llnav summary { color: inherit; }
.llnav__toggle { display: none; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; }
.llnav__toggle:focus-visible, .llnav__group summary:focus-visible { outline: 3px solid #ffdf89; outline-offset: 2px; }
.llnav__panel { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.llnav__panel > a, .llnav__group summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; white-space: nowrap; cursor: pointer; }
.llnav__panel > a:hover, .llnav__group summary:hover { color: #f0b44c; }
.llnav__app { color: #f0b44c !important; }
.llnav__group { position: relative; }
.llnav__group summary { list-style: none; }
.llnav__group summary::-webkit-details-marker { display: none; }
.llnav__group summary::after { content: ""; width: 7px; height: 7px; margin-left: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 160ms ease; }
.llnav__group[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.llnav__sub { position: absolute; z-index: 50; top: calc(100% + 8px); left: -14px; display: grid; min-width: 210px; padding: 8px; border: 1px solid #e9bc6d55; border-radius: 16px; background: #211713fa; box-shadow: 0 16px 40px #0008; }
.llnav__sub a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; color: #f6ead7; font-weight: 600; text-decoration: none; white-space: nowrap; }
.llnav__sub a:hover, .llnav__sub a:focus-visible { background: #f0b44c1c; color: #ffdf89; outline: none; }
.llnav a[aria-current="page"] { color: #f0b44c; }

/* Home page: the menu lives inside .site-nav, which landing.css opens on phones. */
.site-nav .llnav__group summary { font-size: 16px; font-weight: 600; }

@media (max-width: 899px) {
  .llnav__toggle { display: grid; place-items: center; }
  .llnav__panel { position: absolute; z-index: 50; top: calc(100% + 10px); right: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px;
    width: min(290px, calc(100vw - 32px)); max-height: calc(100vh - 110px); overflow-y: auto; padding: 10px; border: 1px solid #e9bc6d55; border-radius: 18px; background: #211713fa; box-shadow: 0 16px 40px #0008; }
  .llnav__panel[data-open="true"] { display: flex; }
  .llnav__panel > a, .llnav__group summary, .site-nav .llnav__group summary { width: 100%; padding: 0 14px; border-radius: 12px; font-size: 16px; }
  .site-nav .llnav__group summary { padding: 0; }
  .llnav__panel > a:hover, .llnav__group summary:hover { background: #f0b44c14; }
  .llnav__group summary { justify-content: space-between; }
  .llnav__sub { position: static; min-width: 0; margin: 2px 0 6px 10px; padding: 2px 0 2px 8px; border: 0; border-left: 2px solid #f0b44c44; border-radius: 0; background: none; box-shadow: none; }
  .llnav__sub a { min-height: 42px; padding: 0 12px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .llnav__group summary::after { transition: none; } }

/* Home: keep "Get the app" the same size as the other menu items. */
.site-nav a.llnav__app { font-size: 16px !important; }

/* Menu toggle: bars ⇄ close. */
.llnav__toggle .llnav__x, .menu-toggle .llnav__x { display: none; }
.llnav__toggle[aria-expanded="true"] .llnav__bars, .menu-toggle[aria-expanded="true"] .llnav__bars { display: none; }
.llnav__toggle[aria-expanded="true"] .llnav__x, .menu-toggle[aria-expanded="true"] .llnav__x { display: inline; }

/* Phone menu: "Get the app / Notify me" as a gold button at the bottom of the panel (every page, home included). */
@media (max-width: 899px) {
  .llnav__panel > a.llnav__app, .site-nav a.llnav__app {
    justify-content: center; margin-top: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px;
    background: linear-gradient(180deg, #ffdf89, #efaa28); color: #2a170a !important; font-weight: 800; text-decoration: none !important;
    box-shadow: inset 0 1px 0 #fff4c8; }
  .llnav__panel > a.llnav__app:hover, .site-nav a.llnav__app:hover { background: linear-gradient(180deg, #ffe6a1, #f2b33d); }
}

/* Site footer (every page). Markup comes from scripts/little_lantern_hubs.py footer_html(). */
.llfoot { --f-ivory: #f6ead7; --f-soft: #b6a693; --f-gold: #f0b44c; box-sizing: border-box; padding: 56px clamp(20px, 4.5vw, 64px) 28px;
  border-top: 1px solid #d4b48724; background: #0f0d10; color: var(--f-soft); font: 400 15px/1.5 "Nunito Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.llfoot *, .llfoot *::before, .llfoot *::after { box-sizing: border-box; }
.llfoot__wrap { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2.2fr); gap: 40px clamp(32px, 5vw, 80px); width: min(100%, 1180px); margin: 0 auto; }
.llfoot__brand img { display: block; width: 136px; height: auto; }
.llfoot__brand p { max-width: 260px; margin: 14px 0 10px; color: var(--f-soft); }
.llfoot a { color: inherit; text-decoration: none; }
.llfoot a:hover { color: var(--f-ivory); text-decoration: underline; text-underline-offset: 4px; }
.llfoot a:focus-visible { outline: 3px solid #ffdf89; outline-offset: 3px; border-radius: 4px; }
.llfoot__mail { display: inline-flex; align-items: center; min-height: 44px; color: var(--f-gold) !important; font-weight: 700; }
.llfoot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.llfoot__col h2 { margin: 0 0 8px; color: var(--f-ivory); font: 700 12px/1.4 "Nunito Sans", system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.llfoot__col ul { margin: 0; padding: 0; list-style: none; }
.llfoot__col a { display: inline-flex; align-items: center; min-height: 36px; }
.llfoot__base { width: min(100%, 1180px); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid #d4b4871a; font-size: 13px; }
body:has(.dock) .llfoot { padding-bottom: 116px; }
@media (max-width: 760px) {
  .llfoot { padding-top: 44px; }
  .llfoot__wrap { grid-template-columns: 1fr; gap: 32px; }
  .llfoot__brand { text-align: center; }
  .llfoot__brand img { margin: 0 auto; width: 128px; }
  .llfoot__brand p { margin-inline: auto; }
  .llfoot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
  .llfoot__col a { min-height: 40px; }
  .llfoot__base { margin-top: 32px; text-align: center; }
}
@media (forced-colors: active) { .llfoot { border-top-color: CanvasText; } }

/* ---------- Mega menu (Nov 2026) ----------
   Markup: scripts/little_lantern_hubs.py _mega(). Desktop: a full-width lantern-lit panel under the header
   (icon cards · characters/themes or grown-up reads · featured card · footer line). Phones: icon cards + footer link. */
.llmega .llnav__icon { flex: none; width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 6px 10px #0009); transition: transform 220ms ease; }
.llnav__txt { display: grid; gap: 2px; line-height: 1.25; }
.llnav__txt strong { color: #f6ead7; font-size: 16px; font-weight: 700; }
.llnav__txt small { color: #b6a693; font-size: 13.5px; font-weight: 500; }
.llnav__sub.llmega .llmega__card { display: flex; align-items: center; gap: 14px; min-height: 66px; padding: 10px 14px; border-radius: 16px; white-space: normal; text-decoration: none; transition: background 200ms ease, box-shadow 200ms ease; }
.llnav__sub.llmega .llmega__card:hover, .llnav__sub.llmega .llmega__card:focus-visible { background: #f0b44c14; box-shadow: inset 0 0 0 1px #f0b44c33; outline: none; }
.llmega__card:hover .llnav__icon, .llmega__card:focus-visible .llnav__icon { transform: scale(1.12) rotate(-5deg); }
.llmega__card:hover .llnav__txt strong { color: #ffdf89; }
.llmega__card[aria-current="page"] .llnav__txt strong { color: #f0b44c; }
.llmega__label { margin: 0 0 12px; color: #f0b44c; font: 800 11px/1.4 "Nunito Sans", system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.llmega__label::before { content: "✦"; margin-right: 8px; letter-spacing: 0; text-shadow: 0 0 10px #f0b44c; }
.llnav__sub.llmega .llmega__side, .llnav__sub.llmega .llmega__feature { display: none; }
.llnav__sub.llmega .llmega__foot { display: flex; }

@media (min-width: 900px) {
  .llnav, .llnav__group { position: static; }
  .ll-story .top .wrap, .site-header { position: relative; }
  .llnav__sub.llmega {
    position: absolute; z-index: 60; top: calc(100% - 4px); left: 0; right: 0; min-width: 0;
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 260px; grid-template-areas: "main side feature" "foot foot foot";
    padding: 0; gap: 0; overflow: hidden; border: 1px solid #e9bc6d40; border-radius: 26px;
    background: radial-gradient(ellipse 60% 90% at 0% 0%, #f0b44c1c, transparent 60%), radial-gradient(ellipse 50% 80% at 100% 100%, #8f4a1a22, transparent 70%), #1a1312;
    box-shadow: 0 40px 90px -20px #000e, inset 0 1px 0 #ffe9b01f; animation: llmega-in 260ms cubic-bezier(.2, .7, .2, 1);
  }
  .llmega__main { grid-area: main; padding: 26px 22px 22px; }
  .llmega__cards { display: grid; gap: 4px; }
  .llnav__sub.llmega .llmega__side { grid-area: side; display: block; padding: 26px 26px 22px; border-left: 1px solid #f6ead712; }
  .llnav__sub.llmega .llmega__feature {
    grid-area: feature; position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
    min-height: 0; margin: 16px; padding: 18px; overflow: hidden; border-radius: 20px; white-space: normal; text-decoration: none; color: #f6ead7;
    box-shadow: inset 0 0 0 1px #f0c07055, 0 18px 40px -18px #000; }
  .llmega__feature img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform 700ms ease; }
  .llmega__feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, #120d0cdd 85%); }
  .llmega__feature:hover img { transform: scale(1.05); }
  .llmega__feature strong { font: 650 22px/1.15 "Fraunces", Georgia, serif; }
  .llmega__feature small { color: #ffdf89; font-size: 14px; font-weight: 700; }
  .llmega__tag { align-self: flex-start; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; background: linear-gradient(180deg, #ffdf89, #efaa28); color: #2a170a; font-size: 11px; font-weight: 800; letter-spacing: .04em; box-shadow: 0 0 14px #f0b44c88; }
  .llnav__sub.llmega .llmega__foot { grid-area: foot; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 26px; border-top: 1px solid #f6ead712; background: #0000002e; }
  .llmega__foot p { margin: 0; color: #b6a693; font-size: 14px; }
  .llnav__sub.llmega .llmega__btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid #e2c08a66; color: #f6ead7; font-size: 14px; font-weight: 700; white-space: nowrap; text-decoration: none; }
  .llnav__sub.llmega .llmega__btn:hover { border-color: #f0b44c; background: #f0b44c14; color: #ffdf89; }

  /* Side column: characters, theme chips, grown-up reads */
  .llmega__people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; margin-bottom: 4px; }
  .llnav__sub.llmega .llmega__person { display: grid; justify-items: center; gap: 6px; min-height: 0; padding: 4px 0; border-radius: 12px; color: #e9dcc7; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
  .llmega__person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #1a1312, 0 0 0 3px #e7c08a66, 0 8px 18px -6px #000; transition: box-shadow 220ms ease, transform 220ms ease; }
  .llmega__person:hover img { transform: translateY(-2px); box-shadow: 0 0 0 2px #1a1312, 0 0 0 3px #f0b44c, 0 0 22px #f0b44c88; }
  .llnav__sub.llmega .llmega__person:hover { background: none; color: #ffdf89; }
  .llnav__sub.llmega .llmega__more { display: inline-flex; min-height: 32px; margin: 2px 14px 16px 0; padding: 0; color: #f0b44c; font-size: 13.5px; font-weight: 700; text-decoration: none; }
  .llnav__sub.llmega .llmega__more:hover { background: none; text-decoration: underline; text-underline-offset: 4px; }
  .llmega__chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .llnav__sub.llmega .llmega__chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border: 1px solid #e2bf8650; border-radius: 999px; color: #f6ead7; font-size: 13.5px; font-weight: 700; text-decoration: none; }
  .llnav__sub.llmega .llmega__chip:hover { border-color: #f0b44c; background: #f0b44c14; color: #ffdf89; }
  .llmega__rows { display: grid; gap: 2px; margin-bottom: 8px; }
  .llnav__sub.llmega .llmega__row { display: flex; align-items: baseline; gap: 10px; min-height: 0; padding: 8px 10px; border-radius: 10px; color: #f6ead7; font-size: 14.5px; font-weight: 600; line-height: 1.35; white-space: normal; text-decoration: none; }
  .llmega__row span { color: #f0b44c; font-size: 10px; }
  .llnav__sub.llmega .llmega__row:hover { background: #f0b44c14; color: #ffdf89; }
}
@keyframes llmega-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 899px) {
  .llnav__panel { width: min(340px, calc(100vw - 24px)); }
  .llnav__sub.llmega { min-width: 0; margin: 2px 0 8px; padding: 2px 0 2px 6px; background: none; box-shadow: none; border: 0; }
  .llmega__label { display: none; }
  .llnav__sub.llmega .llmega__card { min-height: 54px; padding: 6px 10px; gap: 12px; }
  .llmega .llnav__icon { width: 34px; height: 34px; }
  .llnav__txt strong { font-size: 15px; }
  .llnav__txt small { font-size: 12px; }
  .llnav__sub.llmega .llmega__foot { padding: 4px 10px 6px; }
  .llmega__foot p { display: none; }
  .llnav__sub.llmega .llmega__btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0; color: #f0b44c; font-size: 14px; font-weight: 800; text-decoration: none; }
  .llnav__sub.llmega .llmega__btn::after { content: " →"; white-space: pre; }
  .site-nav { width: min(340px, calc(100vw - 24px)); padding: 10px 14px; }
}
.llnav__sub.llmega .llmega__also { display: none; }
@media (max-width: 899px) {
  .llnav__panel, .site-nav { background: #1d1513 !important; }
  .llnav__sub.llmega .llmega__also { display: flex; flex-wrap: wrap; gap: 6px 8px; padding: 6px 10px 2px; }
  .llnav__sub.llmega .llmega__also a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid #e2bf8650; border-radius: 999px; color: #f6ead7; font-size: 13.5px; font-weight: 700; text-decoration: none; }
  .llnav__sub.llmega .llmega__btn[href="/churches"] { display: none; }
}
@media (prefers-reduced-motion: reduce) { .llnav__sub.llmega, .llmega__feature img, .llmega .llnav__icon, .llmega__person img { animation: none; transition: none; } }
