/* EMUNAH — ink on paper. See EMUNAH Brand/README.md */
:root {
  --ink: #000;
  --paper: #fff;
  --g100: #f2f2f2;
  --g300: #d4d4d4;
  --g500: #737373;
  --g700: #404040;
  --g900: #171717;
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --body: "Heebo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
.dark ::selection { background: var(--paper); color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.dark { background: var(--ink); color: var(--paper); }
.caption {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--g500);
}
.dark .caption { color: #a3a3a3; }
.display {
  font-family: var(--display);
  font-weight: 400;
  line-height: .9;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0;
}
.he { font-family: "Heebo", sans-serif; font-weight: 700; direction: rtl; unicode-bidi: isolate; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: .06em;
  line-height: 1;
  padding: 18px 28px 16px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn:active { transform: translateY(2px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.dark .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.dark .btn:hover { background: var(--ink); color: var(--paper); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
:focus-visible { outline: 3px solid var(--g500); outline-offset: 3px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.header.scrolled { border-bottom-color: var(--ink); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.logo b { font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: .02em; }
.logo span { font-size: 12px; margin-top: 1px; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a {
  font-family: var(--display); font-size: 21px; letter-spacing: .08em;
  text-decoration: none; position: relative;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav .btn { font-size: 19px; padding: 11px 16px 9px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .25s; }

@media (max-width: 1000px) {
  .menu-btn { display: block; }
  /* Closed: slid up AND hidden, so nothing can peek out on short screens */
  .nav {
    position: fixed; top: 68px; left: 0; right: 0; bottom: 0; background: var(--paper);
    flex-direction: column; justify-content: safe center; gap: clamp(8px, 2.2vh, 22px);
    padding: 20px 0 calc(20px + env(safe-area-inset-bottom)); overflow-y: auto;
    transform: translateY(-100%); visibility: hidden;
    transition: transform .35s var(--ease), visibility 0s linear .35s;
  }
  .nav a { font-size: clamp(30px, 5.6vh, 44px); }
  .nav .btn { font-size: clamp(22px, 3.8vh, 30px); padding: 14px 26px 12px; }
  .nav-open .nav { transform: none; visibility: visible; transition: transform .35s var(--ease), visibility 0s; }
  .nav-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px 0 60px;
  overflow: hidden;
}
.hero-board {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--g300) 1px, transparent 1px),
    linear-gradient(90deg, var(--g300) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center center;
  opacity: .7;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, transparent 30%, #000 100%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, transparent 30%, #000 100%);
}
.hero .wrap { position: relative; z-index: 1; text-align: center; }
.hero-mark {
  font-family: var(--display);
  font-size: clamp(96px, 25vw, 380px);
  line-height: .82;
  letter-spacing: .005em;
  margin: 0;
}
.hero-mark .ch { display: inline-block; animation: rise .9s var(--ease) both; }
.hero-he { font-size: clamp(34px, 8.5vw, 128px); line-height: 1; margin-top: .12em; animation: fade 1s .55s both; }
.hero-line {
  font-family: var(--display);
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 1;
  letter-spacing: .02em;
  margin: 44px 0 14px;
  animation: fade 1s .8s both;
}
.hero-line em { font-style: normal; color: var(--g500); }
.hero-sub { max-width: 34em; margin: 0 auto; color: var(--g700); animation: fade 1s .95s both; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; animation: fade 1s 1.1s both; }
.scroll-cue {
  position: absolute; z-index: 1; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 2px; height: 48px; background: var(--g300); overflow: hidden;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%;
  background: var(--ink); animation: drip 1.8s var(--ease) infinite;
}
@media (max-width: 600px) {
  .hero { padding: 96px 0 72px; }
  .hero-mark { font-size: 30.5vw; }
  .hero-line { margin-top: 32px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
}
@keyframes rise { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes drip { to { top: 100%; } }

/* ---------- Intro (first visit per session) ---------- */
.intro-screen { display: none; }
.intro .intro-screen, .intro-screen.playing {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  animation: wipe .75s 1.35s var(--ease) forwards;
  cursor: pointer;
}
.intro-word {
  grid-area: 1 / 1;
  font-family: var(--display); text-transform: uppercase; line-height: .85;
  font-size: clamp(120px, 34vw, 420px);
  opacity: 0;
  animation: slam .42s calc(var(--i) * .38s + .1s) var(--ease) both;
}
.intro-word--last { animation-name: slam-stay; }
.intro .hero-mark .ch, .intro .hero-he, .intro .hero-line, .intro .hero-sub, .intro .hero-ctas { animation-play-state: paused; }
.intro body { overflow: hidden; }
@keyframes slam {
  0% { opacity: 0; transform: scale(1.35); }
  25% { opacity: 1; transform: scale(1); }
  80% { opacity: 1; transform: scale(.98); }
  100% { opacity: 0; transform: scale(.96); }
}
@keyframes slam-stay {
  0% { opacity: 0; transform: scale(1.35); }
  30% { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes wipe { to { transform: translateY(-101%); } }
@keyframes flash-soft { 0% { opacity: 0; } 25% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fade-stay { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Ticker ---------- */
.ticker { background: var(--paper); color: var(--ink); overflow: hidden; border-block: 2px solid var(--ink); }
.ticker-track span:nth-child(even) { color: var(--g500); }
.ticker-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.ticker-track span {
  font-family: var(--display); font-size: clamp(34px, 5vw, 64px); line-height: 1;
  padding: 18px 0 14px; white-space: nowrap; display: flex; align-items: center;
}
.ticker-track span::after { content: ""; width: .28em; height: .28em; background: currentColor; margin: 0 .7em; transform: rotate(45deg) translateY(-.05em); }
.ticker-track .he { font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .display { font-size: clamp(64px, 12vw, 176px); }
.section-head p { max-width: 36em; margin: 0; color: var(--g700); font-size: 19px; }
.dark .section-head p { color: #c4c4c4; }
.section-num { font-family: var(--display); font-size: 22px; letter-spacing: .12em; color: var(--g500); }

/* ---------- Watch ---------- */
.watch-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; background: var(--ink); border: 2px solid var(--ink); }
.card {
  background: var(--paper); color: var(--ink);
  padding: clamp(24px, 3vw, 40px);
  text-decoration: none;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-height: 260px;
  transition: background .25s, color .25s;
  position: relative;
}
.card:hover { background: var(--ink); color: var(--paper); }
.card h3 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5vw, 72px); line-height: .9; margin: 0; }
.card p { margin: 10px 0 0; color: var(--g500); font-size: 16px; max-width: 26em; }
.card:hover p { color: #bdbdbd; }
.card .go { font-family: var(--display); font-size: 22px; letter-spacing: .08em; display: flex; justify-content: space-between; align-items: center; }
.card .go i { font-style: normal; font-size: 34px; transition: transform .25s var(--ease); }
.card:hover .go i { transform: translate(6px, -6px); }
.card--main { grid-column: span 7; grid-row: span 2; min-height: 540px; }
.card--main h3 { font-size: clamp(64px, 9vw, 140px); }
.card--side { grid-column: span 5; }
.card--third { grid-column: span 4; }
.live-pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 20px; letter-spacing: .14em;
  border: 2px solid currentColor; padding: 6px 12px 4px; width: max-content;
}
.live-pill::before { content: ""; width: 10px; height: 10px; background: currentColor; border-radius: 50%; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .2; } }
.board-mini { position: absolute; right: clamp(24px, 3vw, 40px); top: clamp(24px, 3vw, 40px); width: 128px; opacity: .9; }
.board-mini rect.b { fill: currentColor; }
@media (max-width: 900px) {
  .card--main, .card--side, .card--third { grid-column: span 12; min-height: 220px; }
  .card--main { min-height: 380px; }
  .board-mini { width: 88px; }
}

/* ---------- Daily word teaser ---------- */
.play { overflow: hidden; background: var(--g100); }
.play-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.tiles-demo { display: grid; gap: 10px; }
.tiles-demo .row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.tile-d {
  aspect-ratio: 1; display: grid; place-items: center;
  font-family: var(--display); font-size: clamp(36px, 5vw, 64px); line-height: 1;
  border: 2px solid var(--g300); color: var(--ink); background: var(--paper);
}
.tile-d.c { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tile-d.p { background: var(--g500); color: var(--paper); border-color: var(--g500); }
.tile-d.a { background: var(--paper); border-color: var(--g300); color: var(--g500); }
.reveal.in .tile-d { animation: flip .6s var(--ease) both; }
.reveal.in .row .tile-d:nth-child(2) { animation-delay: .08s; }
.reveal.in .row .tile-d:nth-child(3) { animation-delay: .16s; }
.reveal.in .row .tile-d:nth-child(4) { animation-delay: .24s; }
.reveal.in .row .tile-d:nth-child(5) { animation-delay: .32s; }
.reveal.in .row:nth-child(2) .tile-d { animation-delay: .5s; }
.reveal.in .row:nth-child(3) .tile-d { animation-delay: 1s; }
@keyframes flip { from { transform: rotateX(90deg); } to { transform: none; } }
.play .verse-peek { margin-top: 28px; border-left: 2px solid var(--ink); padding-left: 20px; color: var(--g700); font-size: 17px; }
.play .verse-peek cite { display: block; font-style: normal; margin-top: 6px; }
@media (max-width: 900px) { .play-inner { grid-template-columns: 1fr; } }

/* ---------- Believe ---------- */
.believe .section-head .display { font-size: clamp(64px, 13vw, 200px); }
.beats { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); counter-reset: beat; }
.beat {
  display: grid; grid-template-columns: minmax(90px, 200px) 1fr 1.2fr; gap: clamp(16px, 4vw, 56px);
  padding: clamp(28px, 4vw, 48px) 0; border-bottom: 2px solid var(--ink); align-items: start;
}
.beat-n { font-family: var(--display); font-size: clamp(64px, 9vw, 140px); line-height: .8; color: var(--g300); transition: color .4s; }
.beat.in .beat-n { color: var(--ink); }
.beat h3 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 4.6vw, 64px); line-height: .92; margin: 0 0 10px; }
.beat p { margin: 0; color: var(--g700); }
.beat blockquote { margin: 0; background: var(--g100); padding: clamp(20px, 2.5vw, 32px); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; }
.beat blockquote cite { display: block; margin-top: 12px; font-style: normal; }
@media (max-width: 900px) {
  .beat { grid-template-columns: 1fr; gap: 14px; }
  .beat-n { font-size: 72px; }
}
.believe-cta {
  margin-top: clamp(48px, 7vw, 88px);
  background: var(--g100); border: 2px solid var(--ink);
  padding: clamp(32px, 6vw, 80px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: end;
}
.believe-cta .display { font-size: clamp(48px, 7vw, 104px); }
.believe-cta p { color: var(--g700); margin: 18px 0 0; max-width: 30em; }
.believe-cta .btns { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.believe-cta .btn { justify-content: space-between; }
@media (max-width: 900px) { .believe-cta { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about-big {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(44px, 7.2vw, 112px); line-height: .92; margin: 0 0 clamp(48px, 6vw, 80px);
}
.about-big .muted { color: var(--g300); }
.bros { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--ink); border: 2px solid var(--ink); }
.bro { background: var(--paper); padding: clamp(24px, 3.5vw, 48px); display: grid; gap: 14px; align-content: start; }
.bro-photo {
  aspect-ratio: 4 / 5; background: var(--g100);
  display: grid; place-items: center; overflow: hidden; margin-bottom: 10px;
}
.bro-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.bro-photo .piece { font-size: clamp(120px, 16vw, 220px); line-height: 1; color: var(--g300); }
.bro h3 { font-family: var(--display); font-weight: 400; font-size: clamp(52px, 6vw, 88px); line-height: .9; margin: 0; }
.bro p { margin: 0; color: var(--g700); }
@media (max-width: 720px) { .bros { grid-template-columns: 1fr; } .bro-photo { aspect-ratio: 4 / 3; } }

/* ---------- Join ---------- */
.links { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.links a {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: clamp(16px, 2.2vw, 26px) 0; border-bottom: 2px solid var(--ink);
  text-decoration: none; position: relative; overflow: hidden; isolation: isolate;
  transition: color .25s;
}
.links a::before {
  content: ""; position: absolute; inset: 0; background: var(--ink); z-index: -1;
  transform: translateY(101%); transition: transform .35s var(--ease);
}
.links a:hover::before, .links a:focus-visible::before { transform: none; }
.links a:hover, .links a:focus-visible { color: var(--paper); }
.links .name { font-family: var(--display); font-size: clamp(52px, 10vw, 148px); line-height: .88; transition: transform .35s var(--ease); }
.links a:hover .name { transform: translateX(clamp(8px, 2vw, 24px)); }
.links .meta { display: flex; align-items: center; gap: 20px; font-size: 15px; color: var(--g500); text-align: right; }
.links a:hover .meta { color: #bdbdbd; }
.links .meta i { font-style: normal; font-family: var(--display); font-size: clamp(32px, 4vw, 56px); color: var(--ink); transition: transform .35s var(--ease), color .2s; }
.links a:hover .meta i { color: var(--paper); transform: rotate(-45deg); }
@media (max-width: 640px) { .links .meta span { display: none; } }

/* ---------- Footer ---------- */
.footer { background: var(--paper); color: var(--ink); padding: clamp(72px, 10vw, 140px) 0 36px; text-align: center; border-top: 2px solid var(--ink); }
.footer .display { font-size: clamp(72px, 16vw, 240px); }
.footer .he { font-size: clamp(28px, 5.4vw, 80px); line-height: 1; margin-top: .1em; }
.footer-bottom {
  margin-top: clamp(56px, 8vw, 110px); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  font-size: 13px; color: var(--g500); text-align: left;
}
.footer-bottom a { color: var(--ink); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Reduce Motion: keep the site alive but gentle — fades instead of slides, slower tickers */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity .6s ease; }
  .ticker-track, .soon .ticker-track { animation-duration: 70s; }
  .intro-word { animation-name: flash-soft; }
  .intro-word--last { animation-name: fade-stay; }
  .hero-mark .ch, .page-hero .ch { animation-name: fade; }
  .reveal.in .tile-d { animation: none; }
  .scroll-cue::after { animation: none; }
}

/* Older iOS without aspect-ratio: let photos size themselves instead of collapsing */
@supports not (aspect-ratio: 1 / 1) {
  .ph img { height: auto; }
}

/* ============================================================
   Multi-page additions
   ============================================================ */

/* Active nav link */
.nav a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }

/* Subpage header */
.page-hero { padding: clamp(130px, 18vw, 220px) 0 clamp(56px, 8vw, 96px); border-bottom: 2px solid var(--ink); position: relative; overflow: hidden; }
.page-hero .display { font-size: clamp(76px, 16vw, 240px); margin-top: 16px; }
.page-hero p { max-width: 34em; margin: 26px 0 0; color: var(--g700); font-size: clamp(18px, 1.6vw, 21px); }
.page-hero .ch { display: inline-block; animation: rise .8s var(--ease) both; }
.page-hero .fade-in { animation: fade .9s .35s both; }

/* Photos: black & white by default, colour on hover (hover-capable devices only) */
.ph { position: relative; overflow: hidden; background: var(--g100); margin: 0; }
.ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); transition: filter .6s var(--ease), transform 1.2s var(--ease); }
@media (hover: hover) { .ph:hover img { filter: grayscale(0); transform: scale(1.03); } }
.ph figcaption { position: absolute; left: 0; bottom: 0; background: var(--paper); padding: 8px 12px 6px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }

/* Split: photo + text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split .ph { aspect-ratio: 4 / 5; border: 2px solid var(--ink); }
.split .display { font-size: clamp(56px, 9vw, 136px); margin: 16px 0 22px; }
.split p { color: var(--g700); max-width: 30em; margin: 0 0 30px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .ph { aspect-ratio: 4 / 3.4; } }

/* Section "see all" row */
.more { display: flex; justify-content: flex-end; margin-top: 22px; }
.more a { font-family: var(--display); font-size: 22px; letter-spacing: .08em; text-decoration: none; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }

/* Game cards (home + play hub) */
.games { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--ink); border: 2px solid var(--ink); }
.game-card { background: var(--paper); padding: clamp(24px, 3.5vw, 48px); text-decoration: none; display: grid; gap: 22px; align-content: space-between; min-height: 420px; transition: background .25s, color .25s; }
.game-card h3 { font-family: var(--display); font-weight: 400; font-size: clamp(56px, 7vw, 104px); line-height: .88; margin: 8px 0 12px; }
.game-card p { margin: 0; color: var(--g700); max-width: 26em; }
.game-card .go { font-family: var(--display); font-size: 22px; letter-spacing: .08em; display: flex; justify-content: space-between; }
.game-card .go i { font-style: normal; transition: transform .25s var(--ease); }
@media (hover: hover) {
  .game-card:hover { background: var(--ink); color: var(--paper); }
  .game-card:hover p { color: #bdbdbd; }
  .game-card:hover .go i { transform: translateX(6px); }
  .game-card:hover .mini .t { border-color: #555; }
  .game-card:hover .mini .t.c { background: var(--paper); color: var(--ink); border-color: var(--paper); }
}
.mini { display: flex; gap: 6px; flex-wrap: wrap; }
.mini .t { width: clamp(38px, 4.4vw, 54px); aspect-ratio: 1; display: grid; place-items: center; font-family: var(--display); font-size: clamp(24px, 2.8vw, 34px); border: 2px solid var(--g300); line-height: 1; padding-top: .08em; }
.mini .t.c { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mini .t.p { background: var(--g500); color: var(--paper); border-color: var(--g500); }
.mini .t.k { display: flex; flex-direction: column; justify-content: center; align-items: center; font-size: clamp(20px, 2.4vw, 28px); }
.mini .t.k small { font-family: var(--body); font-size: 10px; color: var(--g500); font-weight: 600; margin-top: -2px; }
.mini .sp { width: 12px; }
@media (max-width: 760px) { .games { grid-template-columns: 1fr; } .game-card { min-height: 340px; } }

/* Big statement teaser (home → believe) */
.statement { text-align: center; }
.statement .display { font-size: clamp(72px, 15vw, 232px); }
.statement blockquote { max-width: 34em; margin: clamp(28px, 4vw, 44px) auto 36px; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.5; }
.statement blockquote cite { display: block; margin-top: 12px; font-style: normal; }

/* Merch: coming-soon banner */
.soon { border-block: 2px solid var(--ink); overflow: hidden; background: var(--paper); }
.soon .ticker-track { animation-duration: 22s; }
.soon .ticker-track span { font-size: clamp(56px, 10vw, 140px); padding: 22px 0 14px; }
.soon .ticker-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.merch-strip { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2px; background: var(--ink); border: 2px solid var(--ink); }
.merch-strip .ph { aspect-ratio: 3 / 4; }
.merch-strip .ph:first-child { aspect-ratio: auto; }
@media (max-width: 760px) {
  .merch-strip { grid-template-columns: 1fr 1fr; }
  .merch-strip .ph:first-child { grid-column: span 2; aspect-ratio: 4 / 3; }
}

/* Merch page */
.lookbook { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; background: var(--ink); border: 2px solid var(--ink); }
.lookbook .ph { grid-column: span 4; aspect-ratio: 3 / 4; }
.lookbook .ph.wide { grid-column: span 8; aspect-ratio: auto; }
.lookbook .ph.half { grid-column: span 6; aspect-ratio: 4 / 3; }
@media (max-width: 760px) {
  .lookbook .ph, .lookbook .ph.half { grid-column: span 6; aspect-ratio: 3 / 4; }
  .lookbook .ph.wide { grid-column: span 12; aspect-ratio: 4 / 3; }
}
.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--ink); border: 2px solid var(--ink); }
.product { background: var(--paper); display: grid; grid-template-rows: auto 1fr; }
.product .ph { aspect-ratio: 1; }
.product .info { padding: 20px 20px 24px; display: grid; gap: 8px; align-content: start; }
.product h3 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 3vw, 42px); line-height: .95; margin: 0; }
.product p { margin: 0; color: var(--g700); font-size: 16px; }
.tag { display: inline-block; width: max-content; font-family: var(--display); font-size: 17px; letter-spacing: .12em; border: 2px solid var(--ink); padding: 4px 10px 2px; }
@media (max-width: 1000px) { .products { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .products { grid-template-columns: 1fr; }
  .product { grid-template-columns: 42% 1fr; grid-template-rows: auto; }
  .product .info { padding: 16px; }
}

/* About page */
.story { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.story li { display: grid; grid-template-columns: minmax(120px, 260px) 1fr; gap: clamp(16px, 4vw, 56px); padding: clamp(24px, 4vw, 44px) 0; border-bottom: 2px solid var(--ink); }
.story .when { font-family: var(--display); font-size: clamp(36px, 4.4vw, 60px); line-height: .9; }
.story h3 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 3.6vw, 48px); line-height: .95; margin: 0 0 8px; }
.story p { margin: 0; color: var(--g700); max-width: 38em; }
@media (max-width: 700px) { .story li { grid-template-columns: 1fr; gap: 14px; } }
.meaning { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.meaning .he { font-size: clamp(96px, 18vw, 260px); line-height: 1; }
.meaning p { font-size: clamp(19px, 1.8vw, 24px); margin: 0; }
@media (max-width: 700px) { .meaning { grid-template-columns: 1fr; text-align: center; } }
.bro .ph { aspect-ratio: 4 / 5; margin-bottom: 10px; }
@media (max-width: 720px) { .bro .ph { aspect-ratio: 4 / 3.2; } }

/* Watch page: what to expect */
.expect { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--ink); border: 2px solid var(--ink); }
.expect > div { background: var(--paper); padding: clamp(24px, 3vw, 40px); }
.expect .n { font-family: var(--display); font-size: 64px; line-height: .8; color: var(--g300); }
.expect h3 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 3.6vw, 52px); line-height: .92; margin: 18px 0 10px; }
.expect p { margin: 0; color: var(--g700); }
@media (max-width: 860px) { .expect { grid-template-columns: 1fr; } }

/* Believe page: next steps + prayer */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--ink); border: 2px solid var(--ink); }
.steps > div { background: var(--paper); padding: clamp(22px, 2.6vw, 34px); }
.steps h3 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 3vw, 44px); line-height: .95; margin: 0 0 10px; }
.steps p { margin: 0; color: var(--g700); font-size: 17px; }
.steps a { font-weight: 600; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.prayer { background: var(--g100); padding: clamp(28px, 5vw, 64px); margin-top: clamp(40px, 6vw, 72px); }
.prayer p.say { font-size: clamp(21px, 2.2vw, 30px); line-height: 1.45; margin: 16px 0 18px; max-width: 34em; }
.prayer p.note { color: var(--g700); margin: 0; max-width: 36em; }

/* Footer join block */
.footer-join { background: var(--paper); padding: clamp(80px, 11vw, 150px) 0 clamp(60px, 8vw, 100px); border-top: 2px solid var(--ink); }
.footer-join .section-head { margin-bottom: clamp(32px, 5vw, 56px); }

/* ============================================================
   Bible reader + tracker
   ============================================================ */
.crumbs { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--g500); }
.crumbs a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--g300); }
.crumbs span { margin: 0 6px; }

/* Chapter reader */
.reader { padding: clamp(110px, 14vw, 150px) 0 clamp(56px, 8vw, 96px); }
.reader-wrap { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); }
.reader h1 { font-size: clamp(72px, 13vw, 150px); margin: 14px 0 6px; }
.reader-sub { margin: 0 0 clamp(28px, 4vw, 40px); }
.scripture { font-size: clamp(19px, 2.1vw, 21px); line-height: 1.8; color: var(--g900); }
.scripture .v sup { font-size: .58em; font-weight: 700; color: var(--g500); margin-right: .3em; vertical-align: .55em; line-height: 0; }
.scripture .v:target { background: var(--g100); box-shadow: 0 0 0 4px var(--g100); }
.scripture.poetry .v { display: block; padding-left: 1.4em; text-indent: -1.4em; margin-bottom: .5em; }
.context { border: 2px solid var(--ink); padding: clamp(20px, 3vw, 30px); margin: 0 0 clamp(28px, 4vw, 40px); background: var(--paper); }
.context h2 { font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: .03em; margin: 16px 0 4px; }
.context p { margin: 0; color: var(--g700); font-size: 17px; line-height: 1.6; }
.context .ask { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--g300); color: var(--ink); }
.mark-row { margin: clamp(36px, 5vw, 56px) 0 26px; }
.mark-read { width: 100%; justify-content: center; }
.mark-read.is-read { background: var(--paper); color: var(--ink); }
.chapter-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chapter-nav a { display: grid; gap: 4px; border: 2px solid var(--ink); padding: 14px 16px 12px; text-decoration: none; font-family: var(--display); font-size: 26px; line-height: 1; transition: background .2s, color .2s; }
.chapter-nav .next { text-align: right; }
.chapter-nav a .caption { font-family: var(--body); font-size: 11px; }
@media (hover: hover) { .chapter-nav a:hover { background: var(--ink); color: var(--paper); } .chapter-nav a:hover .caption { color: #bdbdbd; } }
.chapter-nav .next.pulse { background: var(--ink); color: var(--paper); }
.chapter-nav .next.pulse .caption { color: #bdbdbd; }

/* Book page */
.book-hero .display { font-size: clamp(64px, 13vw, 200px); }
.progress { height: 8px; background: var(--g100); margin-top: 22px; max-width: 520px; }
.progress .bar { display: block; height: 100%; width: 0; background: var(--ink); transition: width .8s var(--ease); }
.book-intro { max-width: 40em; margin-bottom: clamp(32px, 5vw, 56px); }
.book-intro p { color: var(--g700); margin: 10px 0 0; font-size: 19px; }
.chap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 6px; }
.chap { aspect-ratio: 1; display: grid; place-items: center; border: 2px solid var(--g300); text-decoration: none; font-family: var(--display); font-size: 24px; padding-top: .1em; transition: border-color .15s, background .15s, color .15s; }
@media (hover: hover) { .chap:hover { border-color: var(--ink); } }
.chap.read { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.book-note { margin-top: clamp(32px, 5vw, 56px); background: var(--g100); padding: clamp(20px, 3vw, 32px); max-width: 44em; }
.book-note p { margin: 10px 0 0; white-space: pre-wrap; }

/* Hub */
.hub-stats { display: flex; flex-wrap: wrap; gap: clamp(20px, 5vw, 64px); margin-top: 34px; }
.hub-stats b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(52px, 7vw, 84px); line-height: .9; }
.hub-stats span { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--g500); }
.quest { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: center; border: 2px solid var(--ink); padding: clamp(24px, 4vw, 56px); }
.quest .display { font-size: clamp(56px, 8vw, 112px); margin: 12px 0 16px; }
.quest p { color: var(--g700); margin: 0 0 24px; max-width: 26em; }
.quest-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.quest-days a { aspect-ratio: 1; display: grid; place-content: center; text-align: center; border: 2px solid var(--g300); text-decoration: none; font-family: var(--display); font-size: clamp(22px, 2.6vw, 30px); line-height: 1; }
.quest-days a .caption { font-family: var(--body); font-size: 9px; letter-spacing: .12em; display: block; margin-bottom: 2px; }
.quest-days a.read { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.quest-days a.read .caption { color: #bdbdbd; }
@media (max-width: 820px) { .quest { grid-template-columns: 1fr; } }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--ink); border: 2px solid var(--ink); }
.plans button { background: var(--paper); border: 0; padding: clamp(18px, 2.4vw, 28px); text-align: left; cursor: pointer; display: grid; gap: 8px; align-content: start; color: var(--ink); font: inherit; transition: background .2s, color .2s; }
.plans b { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 2.6vw, 36px); line-height: .95; }
.plans span { font-size: 15px; color: var(--g700); }
.plans button.on { background: var(--ink); color: var(--paper); }
.plans button.on span { color: #c4c4c4; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .plans { grid-template-columns: 1fr; } }
.custom-order { margin-top: 20px; max-width: 520px; }
.custom-order ol { list-style: none; margin: 10px 0 16px; padding: 0; border-top: 2px solid var(--ink); max-height: 440px; overflow-y: auto; }
.custom-order li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--g300); font-weight: 500; }
.custom-order .mv { display: flex; gap: 6px; }
.custom-order .mv button { width: 40px; height: 40px; border: 2px solid var(--ink); background: var(--paper); font-size: 18px; cursor: pointer; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.book-tile { --fill: 0%; position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 96px; padding: 12px 14px; border: 2px solid var(--g300); text-decoration: none; transition: border-color .15s; }
.book-tile::before { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: var(--fill); background: var(--ink); z-index: -1; transition: height .8s var(--ease); }
.book-tile .bt-name { font-family: var(--display); font-size: 24px; line-height: .95; }
.book-tile .bt-count { font-size: 13px; color: var(--g500); font-weight: 600; }
.book-tile .bt-count b { color: var(--ink); }
.book-tile.started, .book-tile.done { border-color: var(--ink); }
.book-tile.done { color: var(--paper); }
.book-tile.done .bt-count, .book-tile.done .bt-count b { color: #d4d4d4; }
@media (hover: hover) { .book-tile:hover { border-color: var(--ink); } }
@media (max-width: 480px) { .book-grid { grid-template-columns: repeat(2, 1fr); } }
.notes-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.note { background: var(--g100); padding: 22px; }
.note p { margin: 10px 0 0; white-space: pre-wrap; }

/* Modal (book finished) */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .3s both; }
.modal-card { width: min(540px, 100%); background: var(--paper); border: 2px solid var(--ink); padding: clamp(22px, 5vw, 40px); }
.modal-card .display { font-size: clamp(48px, 10vw, 76px); margin: 10px 0 20px; }
.modal-card label { font-weight: 700; display: block; margin-bottom: 8px; }
.modal-card textarea { width: 100%; font: inherit; font-size: 17px; padding: 12px; border: 2px solid var(--ink); border-radius: 0; resize: vertical; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.modal-foot { margin: 14px 0 0; }

/* ============================================================
   Verses ("What are you going through?"), verse of the day, Start Here
   ============================================================ */
.topic-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.topic-btn { font-family: var(--display); font-size: clamp(26px, 3.2vw, 40px); line-height: 1; letter-spacing: .02em; text-decoration: none; border: 2px solid var(--ink); padding: 14px 20px 10px; transition: background .2s, color .2s; }
.topic-btn.on { background: var(--ink); color: var(--paper); }
@media (hover: hover) { .topic-btn:hover { background: var(--ink); color: var(--paper); } }
.page-hero .topic-title { font-size: clamp(56px, 10vw, 150px); }
.topic-word { font-size: clamp(20px, 2vw, 24px) !important; color: var(--ink) !important; max-width: 32em !important; }
.crisis { margin-top: 26px; border-left: 4px solid var(--ink); background: var(--g100); padding: 16px 20px; font-size: 16px; max-width: 44em; }
.crisis a { font-weight: 700; }
.verse-list { display: grid; gap: clamp(14px, 2vw, 22px); max-width: 860px; }
.vcard { margin: 0; border: 2px solid var(--ink); padding: clamp(22px, 3.4vw, 40px); font-size: clamp(20px, 2.1vw, 26px); line-height: 1.5; }
.vcard cite { display: block; margin-top: 14px; font-style: normal; }
.vcard cite a { color: inherit; }

.votd { border-block: 2px solid var(--ink); }
.votd .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 4vw, 56px); align-items: center; padding-block: clamp(36px, 5vw, 56px); }
.votd .label { font-family: var(--display); font-size: clamp(34px, 4vw, 52px); line-height: .9; }
.votd blockquote { margin: 0; font-size: clamp(19px, 2vw, 24px); line-height: 1.5; }
.votd cite { display: block; margin-top: 10px; font-style: normal; }
.votd .more a { white-space: nowrap; }
@media (max-width: 860px) { .votd .wrap { grid-template-columns: 1fr; gap: 14px; } .votd .more { justify-content: flex-start; margin: 0; } }

.start-steps { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); counter-reset: s; }
.start-steps > li { display: grid; grid-template-columns: minmax(90px, 180px) 1fr; gap: clamp(16px, 4vw, 56px); padding: clamp(28px, 4vw, 48px) 0; border-bottom: 2px solid var(--ink); }
.start-steps .n { font-family: var(--display); font-size: clamp(64px, 9vw, 120px); line-height: .8; }
.start-steps h2 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5vw, 72px); line-height: .92; margin: 0 0 12px; }
.start-steps p { color: var(--g700); margin: 0 0 18px; max-width: 36em; }
.start-steps blockquote { margin: 0 0 18px; background: var(--g100); padding: 18px 22px; max-width: 36em; font-size: 19px; }
.start-steps blockquote cite { display: block; margin-top: 8px; font-style: normal; }
@media (max-width: 700px) { .start-steps > li { grid-template-columns: 1fr; gap: 8px; } }

/* Legal / long-form text pages */
.legal { max-width: 720px; }
.legal h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4vw, 48px); line-height: .95; margin: 40px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--g700); }
.legal ul { padding-left: 1.2em; }

/* Header account link */
.header .wrap { justify-content: flex-start; }
.nav { margin-left: auto; }
.acct { margin-left: 22px; font-family: var(--display); font-size: 19px; letter-spacing: .08em; text-decoration: none; border: 2px solid var(--ink); padding: 9px 14px 7px; line-height: 1; white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.acct.in { background: var(--g100); border-color: var(--g100); }
.acct.in::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); margin-right: 8px; vertical-align: 2px; }
@media (hover: hover) { .acct:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); } .acct.in:hover::before { background: var(--paper); } }
@media (max-width: 1000px) { .acct { margin-left: auto; margin-right: 12px; font-size: 17px; padding: 8px 12px 6px; } }

/* Account page */
.acct-wrap { max-width: 640px; }
.notice { border: 2px solid var(--ink); background: var(--g100); padding: 14px 18px; margin-bottom: 24px; font-weight: 600; }
.perks { list-style: none; margin: 0 0 28px; padding: 0; border-top: 2px solid var(--ink); }
.perks li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--g300); }
.perks b { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1; }
.perks span { color: var(--g700); }
.age-check { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 19px; margin-bottom: 18px; cursor: pointer; }
.age-check input { width: 24px; height: 24px; accent-color: var(--ink); }
.providers { display: grid; gap: 10px; }
.providers .btn { justify-content: center; }
.providers[aria-disabled="true"] .provider { opacity: .35; }
.fine { margin-top: 18px; line-height: 1.6; }
.fine a { color: inherit; }
.saved { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--ink); border: 2px solid var(--ink); margin-bottom: 18px; }
.saved div { background: var(--paper); padding: 18px; }
.saved b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 7vw, 60px); line-height: .9; }
.saved span { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--g500); }
.sync-line { color: var(--g700); margin: 0 0 22px; }
.acct-actions { display: flex; gap: 24px; margin-top: 30px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; color: var(--ink); }
.linkish.danger { color: var(--g500); }

/* Three game cards */
@media (min-width: 1001px) { .games { grid-template-columns: repeat(3, 1fr); } .game-card h3 { font-size: clamp(48px, 5vw, 80px); } }
@media (min-width: 761px) and (max-width: 1000px) { .games { grid-template-columns: 1fr 1fr; } .games .game-card:last-child { grid-column: span 2; min-height: 300px; } }
.mini .t:not(.k) { font-size: clamp(18px, 2.2vw, 30px); }

/* LIVE banner (fixed under the header while streaming) */
.live-banner { position: fixed; top: 68px; left: 0; right: 0; z-index: 49; display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter); background: var(--ink); color: var(--paper); text-decoration: none; font-size: 15px; line-height: 1.2; animation: fade .4s both; }
.live-banner .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--paper); flex: none; animation: pulse 1.4s ease-in-out infinite; }
.live-banner b { font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: .1em; text-transform: uppercase; flex: none; }
.live-banner .lt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d4d4d4; }
.live-banner .go { font-family: var(--display); font-size: 20px; letter-spacing: .08em; flex: none; }
body.is-live main, body.is-live .game, body.is-live .who { margin-top: 42px; }
@media (max-width: 520px) { .live-banner .lt { display: none; } .live-banner { justify-content: space-between; } }

/* Admin */
.admin-card { border: 2px solid var(--ink); padding: clamp(20px, 4vw, 36px); max-width: 640px; }
.admin-card h2 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 64px); line-height: .9; margin: 0 0 10px; }
.live-state { font-weight: 700; font-size: 19px; margin: 0 0 20px; }
.live-state.on::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); margin-right: 8px; animation: pulse 1.4s ease-in-out infinite; }
.seg { display: flex; gap: 0; border: 2px solid var(--ink); margin-bottom: 14px; }
.seg button { flex: 1; padding: 14px 6px 12px; border: 0; background: var(--paper); font-family: var(--display); font-size: 22px; letter-spacing: .06em; cursor: pointer; color: var(--ink); }
.seg button + button { border-left: 2px solid var(--ink); }
.seg button.on { background: var(--ink); color: var(--paper); }
.admin-card input[type=text] { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 0; margin-bottom: 16px; }
.admin-card .btn { width: 100%; justify-content: center; }

/* Ask us anything */
.ask-wrap { max-width: 680px; }
.ask-form label { display: block; font-weight: 700; margin: 18px 0 8px; }
.ask-form .opt { font-weight: 400; color: var(--g500); }
.ask-form textarea, .ask-form input[type=text], .ask-form input[type=email] { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); }
.ask-form textarea { resize: vertical; min-height: 150px; }
.ask-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin: 20px 0; cursor: pointer; }
.ask-form .check input { width: 22px; height: 22px; accent-color: var(--ink); flex: none; margin-top: 1px; }
.ask-form .btn { width: 100%; justify-content: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 1.4em; margin: 12px 0 0; font-weight: 600; }
.ask-done .display { font-size: clamp(64px, 12vw, 120px); margin: 0 0 12px; }
.ask-done p { font-size: 20px; color: var(--g700); margin: 0 0 24px; }

/* Admin inbox */
.inbox { display: grid; gap: 12px; }
.msg { border: 2px solid var(--g300); padding: 16px 18px; }
.msg-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.msg-top .tag { font-size: 15px; padding: 3px 8px 1px; }
.msg-body { margin: 0 0 10px; white-space: pre-wrap; font-size: 17px; }
.msg-meta { margin: 0 0 6px; font-size: 14px; color: var(--g700); }
.msg-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.msg-actions .btn { width: auto; font-size: 18px; padding: 10px 14px 8px; }
#inbox-card .seg span { font-family: var(--body); font-size: 13px; }

/* "How everyone did today" line in game results */
.crowd { margin: 0 0 16px; font-weight: 600; font-size: 15px; text-align: center; min-height: 1.3em; }
.crowd:empty { display: none; }
.live-tag { background: var(--ink); color: var(--paper); }
.pub { margin: 12px 0 4px; display: grid; gap: 8px; }
.pub textarea { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 0; }
.pub .btn { width: auto; justify-self: start; font-size: 18px; padding: 10px 14px 8px; }

/* Prayer wall + Stories */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.wall.stories { grid-template-columns: 1fr; max-width: 820px; }
.wcard { border: 2px solid var(--ink); padding: 20px 22px 16px; display: flex; flex-direction: column; gap: 14px; }
.wcard p { margin: 0; font-size: 18px; line-height: 1.55; white-space: pre-wrap; }
.wcard.story p { font-size: clamp(19px, 2vw, 22px); }
.wfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; }
.who-name { font-family: var(--display); font-size: 22px; letter-spacing: .04em; }
.pray-btn { font-family: var(--display); font-size: 19px; letter-spacing: .06em; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); padding: 8px 12px 6px; cursor: pointer; }
.pray-btn b { font-weight: 400; margin-left: 6px; }
.pray-btn.done { background: var(--ink); color: var(--paper); cursor: default; }
.wall-empty { font-size: 19px; color: var(--g700); grid-column: 1 / -1; }

/* Talk to God: ending that sends people off the screen */
.offscreen { text-align: center; }
.offscreen .display { font-size: clamp(72px, 14vw, 200px); margin: 16px 0 24px; }
.offscreen p { max-width: 30em; margin: 0 auto; font-size: clamp(19px, 2vw, 24px); color: var(--g700); }

/* 8 nav items: tighten on mid-size desktops */
@media (min-width: 1001px) and (max-width: 1240px) { .nav { gap: 16px; } .nav a { font-size: 19px; } .acct { margin-left: 14px; } }

/* ============ Admin dashboard ============ */
.admin-hero { padding: 110px 0 18px; }
.admin-hero .display { font-size: clamp(56px, 9vw, 110px); margin: 8px 0 6px; }
.admin-hero p { margin: 0; color: var(--g700); }
.admin-tabs { position: sticky; top: 68px; z-index: 40; background: var(--paper); border-block: 2px solid var(--ink); }
.admin-tabs .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.admin-tabs a { font-family: var(--display); font-size: 22px; letter-spacing: .06em; text-decoration: none; padding: 12px 14px 9px; white-space: nowrap; border-bottom: 4px solid transparent; }
.admin-tabs a[aria-selected="true"] { border-bottom-color: var(--ink); }
.badge { display: inline-block; min-width: 20px; padding: 2px 6px 0; background: var(--ink); color: var(--paper); font-family: var(--body); font-size: 12px; font-weight: 700; text-align: center; border-radius: 10px; vertical-align: 3px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.panel-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 64px); line-height: .9; margin: 0; }
.panel-head .btn { width: auto; }
.seg.small { max-width: 420px; margin-bottom: 18px; }
.seg.small button { font-size: 18px; padding: 10px 6px 8px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 18px; }
.tile { border: 2px solid var(--ink); padding: 14px 16px; display: grid; gap: 4px; }
.tile b { font-family: var(--display); font-weight: 400; font-size: 44px; line-height: .9; }
.tile-sub { font-size: 13px; color: var(--g500); }
.chart-box { border: 2px solid var(--ink); padding: 14px 16px 10px; margin-bottom: 18px; }
.bars { display: flex; align-items: flex-end; gap: 2px; margin-top: 12px; flex-wrap: wrap; }
.bar { flex: 1; height: 140px; display: flex; align-items: flex-end; min-width: 3px; }
.bar i { display: block; width: 100%; background: var(--ink); min-height: 1px; }
.bars-axis { flex-basis: 100%; display: flex; justify-content: space-between; font-size: 12px; color: var(--g500); margin-top: 6px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
table.data { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 15px; }
table.data td { padding: 8px 4px; border-bottom: 1px solid var(--g300); word-break: break-all; }
table.data td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
table.data td.empty { color: var(--g500); text-align: left; font-weight: 400; }
.note { margin-top: 18px; }
.post-rows { display: grid; gap: 8px; }
.post-row { text-align: left; background: var(--paper); border: 2px solid var(--g300); padding: 14px 16px; cursor: pointer; display: grid; gap: 4px; font: inherit; color: var(--ink); }
@media (hover: hover) { .post-row:hover { border-color: var(--ink); } }
.post-row b { font-size: 18px; }
.editor { max-width: 860px; }
.editor label { display: block; font-weight: 700; margin: 16px 0 6px; }
.editor .opt { font-weight: 400; color: var(--g500); font-size: 14px; }
.editor input[type=text], .editor select, .editor textarea { width: 100%; font: inherit; font-size: 16px; padding: 11px 13px; border: 2px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); }
.editor textarea.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 15px; line-height: 1.55; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .row2 { grid-template-columns: 1fr; } }
.slug-row { display: flex; align-items: center; border: 2px solid var(--ink); }
.slug-row span { padding: 0 4px 0 12px; color: var(--g500); }
.slug-row input { border: 0 !important; padding-left: 2px !important; }
.count { font-weight: 400; color: var(--g500); font-size: 13px; }
.tips { background: var(--g100); padding: 14px 16px; font-size: 15px; line-height: 1.55; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }
.editor-actions .btn { width: auto; font-size: 20px; padding: 12px 16px 10px; }
.status-pill { font-family: var(--display); font-size: 18px; letter-spacing: .08em; border: 2px solid var(--ink); padding: 6px 10px 4px; }
.status-pill[data-s="published"] { background: var(--ink); color: var(--paper); }
.team-list { display: grid; gap: 8px; }
.member { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; border: 2px solid var(--g300); padding: 10px 14px; }
.member b { word-break: break-all; }
.team-form { margin-top: 22px; display: grid; gap: 10px; }
.team-form label { font-weight: 700; }
.team-form input, .team-form select { width: 100%; font: inherit; font-size: 16px; padding: 11px 13px; border: 2px solid var(--ink); border-radius: 0; }
.team-form .btn { justify-self: start; width: auto; }

/* ============ Blog ============ */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.post-card { border: 2px solid var(--ink); padding: 20px 22px; text-decoration: none; display: grid; gap: 10px; align-content: start; transition: background .2s, color .2s; }
.post-card h2 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3vw, 40px); line-height: .95; margin: 0; }
.post-card p { margin: 0; color: var(--g700); font-size: 16px; }
.post-card .go { font-family: var(--display); font-size: 20px; letter-spacing: .08em; margin-top: 4px; }
@media (hover: hover) { .post-card:hover { background: var(--ink); color: var(--paper); } .post-card:hover p { color: #c4c4c4; } }
.post { padding: clamp(110px, 14vw, 150px) 0 clamp(40px, 6vw, 64px); }
.post-wrap { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.post-title { font-size: clamp(48px, 8vw, 96px); margin: 14px 0 12px; }
.post-lead { font-size: clamp(20px, 2.2vw, 24px); line-height: 1.5; margin: 18px 0 30px; padding-left: 18px; border-left: 4px solid var(--ink); }
.post-body { font-size: 19px; line-height: 1.75; color: var(--g900); }
.post-body h2 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4vw, 48px); line-height: .95; margin: 44px 0 12px; }
.post-body h3 { font-size: 22px; margin: 30px 0 8px; }
.post-body blockquote { margin: 24px 0; background: var(--g100); padding: 18px 22px; }
.post-body blockquote cite { display: block; margin-top: 8px; font-style: normal; }
.post-body hr { border: 0; border-top: 2px solid var(--ink); margin: 36px 0; }
.post-body a { font-weight: 600; }
.sources { margin-top: 40px; border-top: 2px solid var(--ink); padding-top: 16px; font-size: 15px; }
.sources ol { padding-left: 1.3em; margin: 10px 0 0; }
.sources li { margin-bottom: 6px; word-break: break-word; }
.preview-bar { position: sticky; top: 68px; z-index: 30; background: var(--ink); color: var(--paper); text-align: center; padding: 10px 16px; margin-top: 68px; }
.preview-bar a { color: var(--paper); }

/* Verse of the day reflection */
.votd-note { grid-column: 2; margin: -4px 0 0; color: var(--g700); font-size: 17px; line-height: 1.55; max-width: 44em; }
@media (max-width: 860px) { .votd-note { grid-column: auto; margin: 0; } }

/* Leaderboards */
.lb { margin: 0 0 18px; }
.lb:empty { display: none; }
.lb-signin { display: block; text-align: center; font-weight: 700; padding: 10px; border: 2px dashed var(--g300); }
.lb-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.lb-list { list-style: none; margin: 0; padding: 0; }
.lb-list li { display: grid; grid-template-columns: 26px 1fr auto auto; gap: 10px; align-items: center; padding: 7px 4px; border-bottom: 1px solid var(--g300); font-size: 15px; }
.lb-list li span { font-family: var(--display); font-size: 20px; color: var(--g500); }
.lb-list li em { font-style: normal; color: var(--g700); font-size: 14px; }
.lb-list li.me { background: var(--g100); }
.lb-list li.empty { display: block; color: var(--g500); }
.lb-list.big li { font-size: 18px; padding: 12px 6px; }
.lb-list.big li span { font-size: 26px; }
.lb-you { margin: 8px 0 0; font-size: 15px; }
.lb-tabs { max-width: 560px; margin-bottom: 24px; }
.lb-boards .caption { display: block; margin-bottom: 6px; }

/* Events */
.next-up { border: 2px solid var(--ink); padding: 16px 20px; margin-bottom: 18px; display: grid; gap: 6px; }
.countdown { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.countdown b { font-family: var(--display); font-weight: 400; font-size: clamp(48px, 9vw, 96px); line-height: .9; }
.countdown span { font-family: var(--display); font-size: 22px; color: var(--g500); margin-right: 12px; }
.event-list { display: grid; gap: 12px; }
.event-card { border: 2px solid var(--ink); padding: clamp(18px, 3vw, 28px); display: grid; gap: 10px; }
.event-card.past, .event-card.cancelled { border-color: var(--g300); }
.event-card.cancelled h2 { text-decoration: line-through; color: var(--g500); }
.event-meta { display: flex; gap: 12px; align-items: center; }
.event-card h2 { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 5vw, 60px); line-height: .92; margin: 0; }
.event-when { margin: 0; font-weight: 700; }
.event-desc { margin: 0; color: var(--g700); white-space: pre-wrap; }
.event-results { background: var(--g100); padding: 12px 16px; }
.event-results p { margin: 6px 0 0; white-space: pre-wrap; }
.event-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 6px; }
.event-actions .btn { width: auto; }
.signups { margin-top: 26px; border-top: 2px solid var(--ink); padding-top: 14px; }
.signups ol { padding-left: 1.3em; }
.editor input[type=datetime-local], .editor input[type=number] { width: 100%; font: inherit; font-size: 16px; padding: 11px 13px; border: 2px solid var(--ink); border-radius: 0; }

.admin-link { width: 100%; justify-content: center; margin-bottom: 18px; }

/* ============ Home: Latest ============ */
.latest-stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 12px; }
.latest-stories:empty { display: none; }
.latest-stories .wcard { text-decoration: none; color: inherit; }
.latest .more { display: flex; gap: 28px; justify-content: flex-end; flex-wrap: wrap; }

/* ============ Brackets ============ */
.bracket { display: flex; gap: 18px; overflow-x: auto; padding: 4px 0 10px; -webkit-overflow-scrolling: touch; }
.bk-round { display: flex; flex-direction: column; gap: 8px; min-width: 150px; }
.bk-col { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 12px; }
.bk-match { border: 2px solid var(--ink); display: grid; }
.bk-p { display: block; text-align: left; font: 600 15px/1.2 var(--body, inherit); padding: 8px 10px; background: var(--paper); color: var(--ink); border: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-p + .bk-p { border-top: 1px solid var(--g300, #ccc); }
button.bk-p { cursor: pointer; width: 100%; }
.bk-p.won { background: var(--ink); color: var(--paper); }
.bk-p.lost { color: var(--g500, #888); text-decoration: line-through; }
.bk-p.tbd { color: var(--g500, #888); font-weight: 400; font-style: italic; }
.bk-champ { font-family: var(--display); font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; }
.event-bracket { margin-top: 4px; min-width: 0; }
.event-card > * { min-width: 0; }

/* ============ Live mini player ============ */
.pip { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; width: min(360px, calc(100vw - 32px)); background: var(--ink); color: var(--paper); border: 2px solid var(--ink); box-shadow: 0 12px 40px rgba(0,0,0,.28); animation: fade .4s both; }
.pip-bar { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; }
.pip-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: #ff3b30; flex: none; animation: pulse 1.4s ease-in-out infinite; }
.pip-bar b { font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: .1em; text-transform: uppercase; }
.pip-bar a { margin-left: auto; color: var(--paper); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.pip-bar button { width: 36px; height: 36px; border: 0; background: transparent; color: var(--paper); font-size: 26px; line-height: 1; cursor: pointer; }
.pip-video { aspect-ratio: 16 / 9; }
.pip-video iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 520px) { .pip { width: 62vw; right: 12px; } }
.also-row { display: flex; gap: 22px; margin-bottom: 6px; }

/* ============ My notes (chapter pages) ============ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.my-notes { margin: 0 0 30px; border: 2px solid var(--ink); }
.my-notes summary { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; cursor: pointer; list-style: none; }
.my-notes summary::-webkit-details-marker { display: none; }
.my-notes summary::after { content: "+"; position: absolute; right: 18px; font-family: var(--display); font-size: 28px; line-height: 1; }
.my-notes details { position: relative; }
.my-notes details[open] summary::after { content: "–"; }
.my-notes .mn-title { font-family: var(--display); font-size: 26px; letter-spacing: .02em; padding-right: 30px; }
.my-notes textarea { display: block; width: calc(100% - 36px); margin: 0 18px; box-sizing: border-box; font: 17px/1.55 var(--body); padding: 12px 14px; border: 2px solid var(--g300); background: var(--paper); color: var(--ink); resize: vertical; min-height: 140px; }
.my-notes textarea:focus { outline: none; border-color: var(--ink); }
.my-notes .mn-status { margin: 10px 18px 16px; min-height: 1.2em; }
.my-notes .mn-status a { color: inherit; }
.scripture sup { cursor: pointer; }
.chap.has-note { position: relative; }
.chap.has-note::after { content: ""; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
a.note { display: block; text-decoration: none; color: inherit; transition: background .15s; }
@media (hover: hover) { a.note:hover { background: var(--g300); } }

/* ============ Bible markup: highlights, underlines, notes ============ */
.mk { border-radius: 2px; cursor: pointer; }
.mk.hl-yellow, .mk-swatch.hl-yellow { background: #fff1a6; }
.mk.hl-green, .mk-swatch.hl-green { background: #cdf0c4; }
.mk.hl-blue, .mk-swatch.hl-blue { background: #cfe5ff; }
.mk.hl-pink, .mk-swatch.hl-pink { background: #ffd2e2; }
.mk.ul { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.mk.noted:not(.ul) { text-decoration: underline dotted var(--g500); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.mk-note { display: inline-grid; place-items: center; width: 1.45em; height: 1.45em; margin: 0 .2em; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: .62em; line-height: 1; vertical-align: .35em; cursor: pointer; text-indent: 0; }
.mk-bubble, .vnote { display: block; margin: .35em 0 .7em; padding: .55em .8em .6em; background: var(--g100); border-left: 3px solid var(--ink); font-size: .84em; line-height: 1.5; text-indent: 0; color: var(--ink); }
.mk-bubble-text { white-space: pre-wrap; display: block; }
.mk-bubble .linkish, .vnote .linkish { font-size: 13px; margin-top: 4px; }
.vnote .caption { display: block; margin-bottom: 2px; }
.scripture.poetry .mk-bubble { margin-left: 0; }
.mk-tools { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.mk-tools .caption { text-transform: none; letter-spacing: 0; font-size: 14px; }
.mk-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; background: var(--ink); color: var(--paper); padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform .2s var(--ease); box-shadow: 0 -8px 30px rgba(0,0,0,.25); }
.mk-bar.on { transform: none; }
.mk-bar-ref { display: block; font-size: 14px; color: #c4c4c4; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-bar-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mk-swatch { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--paper); cursor: pointer; }
.mk-btn { height: 36px; padding: 0 12px; border: 2px solid var(--paper); background: transparent; color: var(--paper); font: 600 15px/1 var(--body); cursor: pointer; }
.mk-btn.mk-close { margin-left: auto; font-size: 22px; border: 0; padding: 0 6px; }
body.mk-open .pip { display: none; }
.mk-sheet { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.4); display: grid; align-items: end; }
.mk-sheet[hidden] { display: none; }
.mk-sheet-card { background: var(--paper); padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); max-width: 640px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.mk-sheet-quote { margin: 6px 0 10px; color: var(--g700); font-size: 15px; }
.mk-sheet textarea { width: 100%; box-sizing: border-box; font: 17px/1.5 var(--body); padding: 10px 12px; border: 2px solid var(--g300); min-height: 120px; resize: vertical; }
.mk-sheet textarea:focus { outline: none; border-color: var(--ink); }
.mk-sheet-actions { display: flex; gap: 16px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.mk-sheet-actions .btn { width: auto; }

/* ============ Mission page ============ */
.statement.mission .display { font-size: clamp(46px, 9vw, 120px); }
.mission-lead { max-width: 36em; margin: 18px auto 0; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.6; color: var(--g700); }
.statement.mission .btn { margin-top: 28px; }
.beat h3 .tag { font-family: var(--body); font-size: 13px; vertical-align: middle; margin-left: 8px; }
.beat p + p { margin-top: 12px; }

/* Rows hidden by script must stay hidden even though .check sets display */
.ask-form [hidden] { display: none !important; }

/* ============ Event updates sign-up ============ */
.notify { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; border: 2px solid var(--ink); padding: clamp(20px, 4vw, 44px); margin: clamp(40px, 6vw, 72px) 0 24px; }
.notify .display { font-size: clamp(44px, 6vw, 84px); margin: 10px 0 14px; }
.notify p { color: var(--g700); }
.notify-form { margin: 0; }
.notify-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nf-unsub { margin-top: 18px; }
.nf-unsub summary { cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 14px; }
.nf-unsub-row { display: flex; gap: 8px; margin-top: 10px; }
.nf-unsub-row input { flex: 1; min-width: 0; }
.nf-unsub-row .btn { width: auto; flex: none; }
@media (max-width: 760px) { .notify, .notify-form .row2 { grid-template-columns: 1fr; } }
.ev-list-rows { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.ev-zip-row { margin: 4px 0 18px 34px; }
.ev-zip-row > div { display: flex; gap: 8px; margin-top: 6px; }
.ev-zip-row input { width: 9em; font: inherit; font-size: 17px; padding: 10px 12px; border: 2px solid var(--ink); }
.ev-zip-row .btn { width: auto; }

/* ============ Admin: event updates people list ============ */
.people-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.people-filters input, .people-filters select { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 9px 10px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 0; }
.people-count { margin: 12px 0 10px; font-weight: 600; }
.people-table-wrap { overflow-x: auto; max-height: 460px; overflow-y: auto; border: 1px solid var(--g300); }
.people-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.people-table th { text-align: left; position: sticky; top: 0; background: var(--paper); padding: 8px 6px; border-bottom: 2px solid var(--ink); font-size: 13px; }
.people-table td { padding: 8px 6px; border-bottom: 1px solid var(--g300); word-break: normal; vertical-align: top; }
.people-table td:last-child { text-align: left; font-weight: 400; white-space: nowrap; }
.composer { margin-top: 26px; padding-top: 20px; border-top: 2px solid var(--ink); }
.composer label { display: block; font-weight: 600; margin: 12px 0 6px; }
.composer input, .composer textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 0; }
.composer .row2 { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
@media (max-width: 640px) { .composer .row2 { grid-template-columns: 1fr; } }

/* ============ Footer (organized) ============ */
.footer { text-align: left; padding: clamp(48px, 7vw, 88px) 0 28px; border-top: 2px solid var(--ink); background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 80px); }
.footer-brand .logo { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.footer-brand .logo b { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6vw, 72px); line-height: .9; letter-spacing: .02em; }
.footer-brand .logo .he { font-size: 22px; line-height: 1.2; margin: 0; }
.footer-mission { font-size: 18px; line-height: 1.5; color: var(--g700); margin: 14px 0 18px; max-width: 26em; }
.footer-social { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.footer-social a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 2px solid var(--ink); text-decoration: none; color: var(--ink); transition: background .15s, color .15s; }
.footer-social a b { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .04em; line-height: 1; }
.footer-social a span { font-size: 13px; color: var(--g500); }
@media (hover: hover) { .footer-social a:hover { background: var(--ink); color: var(--paper); } .footer-social a:hover span { color: #c4c4c4; } }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-cols h2 { margin: 0 0 12px; }
.footer-cols a { display: block; padding: 6px 0; color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 500; }
.footer-cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer .footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: clamp(36px, 5vw, 56px); padding-top: 18px; border-top: 1px solid var(--g300); font-size: 14px; color: var(--g500); text-align: left; }
.footer .footer-bottom a { color: var(--ink); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
.notify-form .row2 { align-items: end; }

/* ============ Mission: short version + "Read more" ============ */
.short-version { border: 2px solid var(--ink); padding: clamp(18px, 3vw, 32px); max-width: 760px; }
.short-version ol { list-style: none; margin: 12px 0 0; padding: 0; counter-reset: sv; display: grid; gap: 4px; }
.short-version li { counter-increment: sv; }
.short-version a { display: grid; grid-template-columns: 2.2em 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid var(--g300); text-decoration: none; color: var(--g700); font-size: 18px; line-height: 1.45; }
.short-version li:first-child a { border-top: 0; }
.short-version a::before { content: counter(sv, decimal-leading-zero); font-family: var(--display); font-size: 26px; color: var(--ink); line-height: 1; }
.short-version b { color: var(--ink); }
@media (hover: hover) { .short-version a:hover b { text-decoration: underline; text-underline-offset: 4px; } }
.mission-more { max-width: 36em; margin: 18px auto 0; }
.mission-more summary { display: inline-block; cursor: pointer; list-style: none; font-family: var(--display); font-size: 22px; letter-spacing: .06em; border-bottom: 2px solid var(--ink); padding: 2px 0; }
.mission-more summary::-webkit-details-marker { display: none; }
.mission-more summary::after { content: " +"; }
.mission-more[open] summary::after { content: " –"; }
.mission-more[open] summary { margin-bottom: 4px; }
.fit-links .name { font-size: clamp(30px, 5vw, 64px); }
.acct-tabs { max-width: 460px; margin-bottom: 18px; }
.acct-panel-lead { color: var(--g700); margin: 0 0 14px; }

/* Buttons hidden by script stay hidden (.btn sets display) */
.providers [hidden] { display: none !important; }
.caption.fine { text-transform: none; letter-spacing: 0; font-size: 14px; line-height: 1.5; }

/* ============ Admin dashboard (sidebar layout) ============ */
.admin-app { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0; min-height: calc(100vh - 70px); padding-top: 70px; border-bottom: 2px solid var(--ink); }
.admin-side { border-right: 2px solid var(--ink); background: var(--g100); }
.admin-side nav { position: sticky; top: 70px; display: flex; flex-direction: column; padding: 18px 12px 24px; gap: 2px; }
.admin-side .side-group { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--g500); margin: 14px 10px 4px; }
.admin-side .side-group:first-child { margin-top: 0; }
.admin-side a { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 16px; border-radius: 4px; }
.admin-side a:hover { background: var(--paper); }
.admin-side a[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.admin-main { padding: clamp(20px, 3vw, 36px) clamp(16px, 3vw, 40px) 60px; min-width: 0; }
.admin-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-top .display { font-size: clamp(36px, 4vw, 52px); margin: 0; line-height: .9; }
.admin-top p { margin: 0; color: var(--g700); }
.action-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 18px; }
.action-card { display: grid; gap: 4px; padding: 14px 16px; border: 2px solid var(--ink); text-decoration: none; color: var(--ink); transition: background .15s, color .15s; }
.action-card b { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; letter-spacing: .02em; }
.action-card span { font-size: 14px; color: var(--g700); }
@media (hover: hover) { .action-card:hover { background: var(--ink); color: var(--paper); } .action-card:hover span { color: #c4c4c4; } }
.recipients { margin: 10px 0 4px; padding: 10px 12px; background: var(--g100); font-size: 15px; line-height: 1.5; word-break: break-word; }
.recipients a { color: inherit; font-weight: 600; }
.st-list { display: grid; gap: 10px; max-width: 820px; }
.st-item { border: 2px solid var(--ink); padding: 14px 16px; }
.st-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.st-head > .caption:last-child { margin-left: auto; }
.st-item p { margin: 8px 0; color: var(--g700); white-space: pre-wrap; }
.st-actions { display: flex; gap: 16px; }
.people-table td:first-child, .people-table th:first-child { width: 28px; }
@media (max-width: 860px) {
  .admin-app { grid-template-columns: 1fr; }
  .admin-side { border-right: 0; border-bottom: 2px solid var(--ink); position: sticky; top: 68px; z-index: 30; }
  .admin-side nav { position: static; flex-direction: row; overflow-x: auto; padding: 8px; gap: 4px; scrollbar-width: none; }
  .admin-side .side-group { display: none; }
  .admin-side a { white-space: nowrap; flex: none; }
}

/* Stories: featured (team / family) stories, and folding long ones */
.feature-stories { display: grid; gap: clamp(28px, 4vw, 44px); max-width: 820px; margin-bottom: clamp(36px, 5vw, 60px); padding-bottom: clamp(32px, 5vw, 52px); border-bottom: 2px solid var(--ink); }
.fstory header { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.fstory h2 { font-size: clamp(40px, 6vw, 64px); margin: 0; line-height: .9; }
.fstory .story-body { font-size: clamp(19px, 2vw, 22px); line-height: 1.6; white-space: pre-wrap; }
.story-body { white-space: pre-wrap; font-size: inherit; line-height: 1.55; }
.wcard.story .story-body { font-size: clamp(19px, 2vw, 22px); }
.story-body.folded { max-height: 11.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); }
.story-more { margin-top: 8px; font-weight: 600; }
.who-name .caption { font-family: var(--body, inherit); letter-spacing: normal; margin-left: 6px; }
.hint { font-size: 15px; line-height: 1.5; color: var(--g700); text-transform: none; letter-spacing: normal; margin: 6px 0 12px; }
.admin-top { align-items: center; margin-bottom: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--g300, #d6d6d6); }
.admin-top p { font-size: 15px; }
.admin-main .admin-card.people { max-width: none; }
.admin-main .admin-card.composer, .admin-main .admin-card { min-width: 0; }
.people-table-wrap { overflow-x: auto; max-width: 100%; }
.people-table .hint { margin: 0; font-size: 14px; word-break: break-all; }
@media (max-width: 860px) { .admin-app { padding-top: 68px; } .admin-main .admin-card { max-width: 100%; } .people-filters, .admin-main .row2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .admin-app { grid-template-columns: minmax(0, 1fr); } .admin-side, .admin-side nav { min-width: 0; } #people-view, #range { max-width: 100%; } }
.badge[hidden] { display: none; }
.story-form .row2 { grid-template-columns: 1fr 1fr; } .story-form .row2 input { margin-bottom: 0; } .story-form .btn { width: auto; }
.composer label.age-check { display: flex; align-items: center; gap: 10px; font-weight: 600; } .composer input[type=checkbox] { width: 22px; height: 22px; padding: 0; flex: none; }

/* ============ Footer v2: dark band, fewer lines ============ */
.footer { background: var(--ink); color: var(--paper); border-top: 0; padding: clamp(48px, 6vw, 72px) 0 24px; text-align: left; }
.footer .caption { color: #9a9a9a; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.footer-brand .logo { color: var(--paper); }
.footer-brand .logo b { font-size: clamp(40px, 5vw, 60px); }
.footer-brand .logo .he { font-size: 18px; color: #bdbdbd; }
.footer-mission { color: #c9c9c9; font-size: 17px; margin: 14px 0 0; max-width: 24em; }
.footer-cols { gap: 20px; }
.footer-cols h2 { margin: 4px 0 10px; }
.footer-cols a { color: var(--paper); padding: 4px 0; font-size: 16px; font-weight: 400; opacity: .9; }
.footer-cols a:hover { opacity: 1; }
.footer-follow { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; margin-top: clamp(32px, 4vw, 48px); padding-top: 24px; border-top: 1px solid #333; }
.footer-follow .caption { margin-right: 4px; }
.footer .footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.footer .footer-social a { display: inline-block; padding: 8px 14px; border: 1px solid #555; border-radius: 999px; color: var(--paper); font-size: 15px; font-weight: 600; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
@media (hover: hover) { .footer .footer-social a:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); } }
.footer .footer-bottom { margin-top: 24px; padding-top: 18px; border-top: 1px solid #333; color: #8a8a8a; font-size: 13px; }
.footer .footer-bottom a { color: #d6d6d6; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .footer-cols { grid-template-columns: 1fr 1fr; } .footer-cols > div:last-child { grid-column: 1 / -1; } }

/* Home: "Hang out between streams" */
.believe-cta.hangout { align-items: center; }
.cta-also { margin-top: 10px; }
.cta-also > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cta-also a { padding: 7px 13px; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; background: var(--paper); }
@media (hover: hover) { .cta-also a:hover { background: var(--ink); color: var(--paper); } }

/* Mission: give the short version room under the hero line */
.mission-short { padding-top: clamp(40px, 6vw, 72px) !important; }

/* ============ Polish pass: fix the bits that looked broken ============ */
/* "New on the site": posts and stories share one row, cards fill the width */
.latest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.latest-grid > div { display: contents; }
.latest-grid .wcard, .latest-grid .post-list > * { margin: 0; }
/* Puzzle previews: tiles stay on one line */
.mini { flex-wrap: nowrap; }
.mini .t { width: clamp(30px, 3.2vw, 48px); flex: 0 1 auto; min-width: 0; }
.mini .sp { width: 8px; flex: none; }
/* Less dead space between home sections */
main > .section:not(.page-hero) { padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 104px); }
/* Footer lines line up with the content */
.footer-follow, .footer .footer-bottom { border-top: 0 !important; position: relative; }
.footer-follow::before, .footer .footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid #333; }

/* ============ Gaming page ============ */
.gaming-status { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 10px 16px; border: 2px solid var(--ink); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.gaming-status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--g300, #bbb); flex: none; }
.gaming-status.on { background: var(--ink); color: var(--paper); }
.gaming-status.on .dot { background: #e5484d; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.clips-strip { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 12px; padding: clamp(18px, 3vw, 28px) clamp(20px, 3vw, 36px); border: 2px solid var(--ink); text-decoration: none; color: var(--ink); transition: background .15s, color .15s; }
.clips-strip h3 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4vw, 48px); line-height: .95; margin: 4px 0 6px; }
.clips-strip p { margin: 0; color: var(--g700); }
.clips-strip .go { display: flex; gap: 12px; align-items: center; font-family: var(--display); font-size: 20px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
@media (hover: hover) { .clips-strip:hover { background: var(--ink); color: var(--paper); } .clips-strip:hover p, .clips-strip:hover .caption { color: #c4c4c4; } }
.discord-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.discord-block p { color: var(--g700); max-width: 30em; margin: 16px 0 24px; }
.discord-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.discord-list li { display: grid; gap: 2px; padding: 16px 20px; background: var(--paper); border: 2px solid var(--ink); }
.discord-list b { font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: .02em; line-height: 1; }
.discord-list span { color: var(--g700); font-size: 16px; }
.gn-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.gn { display: grid; gap: 6px; padding: 20px; border: 2px solid var(--ink); text-decoration: none; color: var(--ink); }
.gn b { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; }
.gn > span:last-child { color: var(--g700); font-size: 15px; }
.gn-empty { grid-column: 1 / -1; padding: clamp(20px, 3vw, 32px); background: var(--g100); border: 2px solid var(--ink); }
.gn-empty p { margin: 0 0 16px; font-size: 18px; max-width: 36em; }
.gn-empty .btns { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 860px) { .discord-block { grid-template-columns: 1fr; } .clips-strip { flex-direction: column; align-items: flex-start; } }

/* ============ "Join us" panel ============ */
.join-panel { position: fixed; top: 74px; right: max(16px, calc((100vw - var(--max)) / 2 + var(--gutter))); z-index: 200; width: min(460px, calc(100vw - 32px)); background: var(--paper); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); padding: 18px; }
.join-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.join-head b { font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: .02em; line-height: 1; }
.join-x { background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: var(--ink); padding: 0 4px; }
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.join-grid a { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--ink); text-decoration: none; color: var(--ink); transition: background .15s, color .15s; }
.join-grid a b { font-size: 16px; }
.join-grid a span { font-size: 13px; color: var(--g500); }
@media (hover: hover) { .join-grid a:hover { background: var(--ink); color: var(--paper); } .join-grid a:hover span { color: #c4c4c4; } }
.join-more { display: block; margin-top: 12px; font-weight: 600; color: var(--ink); }
@media (max-width: 860px) { .join-panel { top: 76px; left: 16px; right: 16px; width: auto; } }
.discord-block .display { font-size: clamp(52px, 8vw, 120px); line-height: .9; margin-top: 14px; }

/* ============ Home walkthrough round 1 ============ */
/* "More" links are real buttons now, not underlined text */
.more { gap: 10px; flex-wrap: wrap; }
.more a { display: inline-flex; align-items: center; gap: .55em; font-size: 20px; letter-spacing: .06em; line-height: 1; padding: 14px 22px 12px; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); text-decoration: none; transition: background .15s, color .15s; }
.more a .arrow { transition: transform .25s var(--ease); }
@media (hover: hover) { .more a:hover { background: var(--paper); color: var(--ink); } .more a:hover .arrow { transform: translateX(4px); } }
.latest .more { gap: 10px; }

/* Today's verse: a black band so it stands out between the ticker and the rest */
.votd { background: var(--ink); color: var(--paper); border-block: 0; }
.votd .label { color: var(--paper); }
.votd blockquote { font-size: clamp(21px, 2.3vw, 28px); line-height: 1.45; }
.votd .caption, .votd cite { color: #a8a8a8; }
.votd-note { color: #cfcfcf; }
.votd .more a { background: var(--paper); color: var(--ink); border-color: var(--paper); }
@media (hover: hover) { .votd .more a:hover { background: var(--ink); color: var(--paper); } }
.votd .votd-note a, .votd blockquote a { color: var(--paper); }

/* Home: the Discord sits inside the Gaming section */
.discord-strip { margin-top: 12px; }

/* Home: supporting sections speak quieter than the three big messages */
.section-head.quiet { gap: 12px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head.quiet .display { font-size: clamp(48px, 6.5vw, 92px); }
.section-head.quiet p { font-size: 18px; }

/* Home: merch as one slim strip */
.merch-slim { padding-top: clamp(24px, 4vw, 48px) !important; }
.merch-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: stretch; border: 2px solid var(--ink); text-decoration: none; color: var(--ink); overflow: hidden; }
.merch-bar-text { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: clamp(22px, 3vw, 40px); }
.merch-bar-text .display { font-size: clamp(48px, 6vw, 84px); margin: 0; line-height: .9; }
.merch-go { font-family: var(--display); font-size: 20px; letter-spacing: .06em; display: inline-flex; gap: .5em; align-items: center; }
.merch-bar-pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--ink); border-left: 2px solid var(--ink); }
.merch-bar-pics img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.08); display: block; transition: filter .4s; }
@media (hover: hover) { .merch-bar:hover .merch-bar-pics img { filter: none; } .merch-bar:hover .merch-go .arrow { transform: translateX(4px); } }
.merch-go .arrow { transition: transform .25s var(--ease); }
@media (max-width: 760px) { .merch-bar { grid-template-columns: 1fr; } .merch-bar-pics { border-left: 0; border-top: 2px solid var(--ink); } }

/* Believe: one line under the hero is enough; steps get light dividers */
.page-hero + .believe { padding-top: clamp(24px, 4vw, 48px) !important; }
.page-hero + .believe .beats { border-top: 0; }
.page-hero + .believe .beat { border-bottom: 1px solid var(--g300, #d6d6d6); }
.page-hero + .believe .beat:last-child { border-bottom: 0; }

/* Believe: compact (same content, less scrolling) */
.page-hero + .believe .beat { grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.15fr); padding: clamp(18px, 2.4vw, 28px) 0; gap: clamp(14px, 3vw, 40px); align-items: center; }
.page-hero + .believe .beat-n { font-size: clamp(40px, 4.5vw, 64px); }
.page-hero + .believe .beat h3 { font-size: clamp(30px, 3.2vw, 44px); margin-bottom: 6px; }
.page-hero + .believe .beat p { font-size: 17px; }
.page-hero + .believe .beat blockquote { padding: clamp(14px, 1.8vw, 22px); font-size: clamp(16px, 1.3vw, 19px); }
.page-hero + .believe .prayer { padding: clamp(22px, 3vw, 36px); margin-top: clamp(24px, 3vw, 40px); }
.page-hero + .believe .prayer p.say { font-size: clamp(19px, 1.8vw, 24px); margin: 10px 0 12px; }
.steps.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .steps.three { grid-template-columns: 1fr; } .page-hero + .believe .beat { grid-template-columns: 1fr; gap: 8px; } }
.believe-cta.compact { margin-top: clamp(24px, 3vw, 40px); padding: clamp(22px, 3vw, 36px); align-items: center; }
.believe-cta.compact .display { font-size: clamp(34px, 3.6vw, 52px); line-height: .95; }
.believe-cta.compact p { margin-top: 10px; }
.believe-cta.compact .btns { gap: 8px; }
.believe-cta.compact .btn { font-size: 19px; padding: 13px 20px 11px; }

/* ============ Home: compact pass ============ */
.home > .section:not(.page-hero) { padding-top: clamp(44px, 5.5vw, 76px); padding-bottom: clamp(44px, 5.5vw, 76px); }
/* Mission: shorter photo, smaller (still big) headline */
.home .split .ph { aspect-ratio: 5 / 4; }
.home .split .display { font-size: clamp(46px, 6vw, 88px); margin: 12px 0 16px; }
.home .split p { margin-bottom: 20px; }
/* Gaming cards */
.home .card { min-height: 0; gap: 22px; padding: clamp(18px, 2.2vw, 28px); }
.home .card--main { min-height: 0; }
.home .card--main h3 { font-size: clamp(48px, 5.5vw, 84px); }
.home .card h3 { font-size: clamp(34px, 3.4vw, 52px); }
.home .card .go { font-size: 19px; }
.home .card .go i { font-size: 26px; }
.home .discord-strip { padding: clamp(14px, 2vw, 22px) clamp(18px, 2.2vw, 28px); }
.home .discord-strip h3 { font-size: clamp(28px, 3vw, 40px); }
/* Puzzles */
.home .game-card { min-height: 0; gap: 16px; padding: clamp(20px, 2.4vw, 32px); }
/* "You don't have to earn it" stays the biggest thing below the hero, just not a full screen */
.home .statement .display { font-size: clamp(60px, 9vw, 140px); }
.home .statement blockquote { margin: clamp(18px, 2.5vw, 28px) auto 24px; }
.home .more { margin-top: 14px; }

/* ============ Home: one repeating section pattern ============ */
.section-head.quiet.row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 32px; }
.section-head.quiet.row > div:first-child { display: grid; gap: 12px; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.head-actions .btn { font-size: 20px; padding: 14px 22px 12px; }
@media (max-width: 760px) { .section-head.quiet.row { grid-template-columns: 1fr; row-gap: 18px; } .head-actions { justify-content: flex-start; } }
/* Gaming uses the same cards as the puzzles */
.games.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .games.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .games.four { grid-template-columns: 1fr; } }
.home .game-card h3 { font-size: clamp(38px, 3.6vw, 58px); }
.home .game-card .live-pill { margin-bottom: 14px; display: flex; width: fit-content; }
/* Mission photo gets the same frame weight as the cards */
.home .split .ph { border-width: 2px; }
.merch-bar { background: var(--paper); }

/* ============ Home: scroll motion (only when home-motion.js turns it on) ============ */
/* Rows of cards: the row stays put, each card rises in after the one before it */
.home.motion .games.reveal, .home.motion .latest-grid.reveal { opacity: 1; transform: none; }
.home.motion .games > *, .home.motion .latest-grid > div > * { opacity: 0; transform: translateY(46px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.home.motion .games.in > *, .home.motion .latest-grid.in > div > * { opacity: 1; transform: none; }
/* Section headlines slide up out of a mask */
.home.motion .section-head.reveal .display { clip-path: inset(0 0 100% 0); transform: translateY(40%); transition: clip-path .9s var(--ease) .1s, transform .9s var(--ease) .1s; }
.home.motion .section-head.reveal.in .display { clip-path: inset(-10% 0 -10% 0); transform: none; }
/* "You don't have to earn it": words fill in as you scroll */
.home.motion .statement .display .w { color: var(--g300, #cfcfcf); transition: color .35s ease; }
.home.motion .statement .display .w.lit { color: var(--ink); }
/* Mission photo settles from a slight zoom */
.home.motion .split .ph img { transform: scale(var(--z, 1)); transition: transform .1s linear; }
.home.motion .latest-grid > div > :nth-child(2) { --d: .11s; }
.home.motion .latest-grid > .latest-stories > :nth-child(1) { --d: .15s; }
.home.motion .latest-grid > .latest-stories > :nth-child(2) { --d: .26s; }

/* ============ Home: tiles (home-showcase.js) ============ */
/* As each section under the verse scrolls in, black and gray tiles clear away diagonally */
.flow-tiles > section.section { position: relative; }
.tile-wipe { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(7, 1fr); pointer-events: none; z-index: 5; }
.tile-wipe i { background: var(--ink); opacity: clamp(0, calc((var(--k) * .75 + .2 - var(--enter, 1)) * 9), 1); transform: scale(clamp(0, calc((var(--k) * .75 + .2 - var(--enter, 1)) * 9 + .15), 1.02)); }
.tile-wipe i.g { background: var(--g500); }
/* Cards animating in: no black frame showing through behind them */
.home.motion .games { background: none; border: 0; gap: 0; }
.home.motion .games > * { outline: 2px solid var(--ink); outline-offset: -1px; }
.home.flow { overflow-x: clip; }

/* ================= Bible app ================= */
.bible-app main { padding-top: 68px; }
.bible-app .reader { padding-top: clamp(28px, 4vw, 48px); }
.bible-app .reader h1 { font-size: clamp(56px, 9vw, 110px); }
.bible-app .page-hero.book-hero { padding-top: clamp(36px, 5vw, 64px); }
.bible-app .crumbs { display: none; }

/* App bar */
.bbar { position: sticky; top: 68px; z-index: 40; background: var(--ink); color: var(--paper); }
.bbar-in { display: flex; align-items: center; gap: 12px; height: 54px; }
.bbar a, .bbar button { color: var(--paper); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; }
.bbar-home { font-family: var(--display); font-size: 24px; letter-spacing: .04em; padding: 4px 12px 2px 0; border-right: 1px solid #444; }
.bbar-home.on { text-decoration: underline !important; text-underline-offset: 6px; }
.bbar-ref { display: flex; align-items: center; gap: 2px; }
.bbar .bbar-pick { font-family: var(--display); font-size: 22px; letter-spacing: .04em; padding: 8px 12px 6px; border: 1px solid #555; border-radius: 4px; white-space: nowrap; }
.bbar .bbar-pick:hover { background: #222; }
.bbar-step { font-size: 26px; line-height: 1; padding: 4px 10px; border-radius: 4px; }
.bbar-step:hover { background: #222; }
.bbar-go { position: relative; flex: 1; max-width: 380px; margin-left: auto; }
.bbar-go input { width: 100%; box-sizing: border-box; background: #1c1c1c; border: 1px solid #444; color: var(--paper); font: inherit; font-size: 15px; padding: 9px 12px; border-radius: 4px; }
.bbar-go input::placeholder { color: #8c8c8c; }
.bbar-go input:focus { outline: 2px solid var(--paper); outline-offset: 1px; }
.go-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--paper); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); z-index: 60; }
.bbar .go-list a { display: block; padding: 10px 14px; color: var(--ink); font-weight: 600; }
.bbar .go-list a.on, .bbar .go-list a:hover { background: var(--ink); color: var(--paper); }
.bbar-links { display: flex; gap: 4px; }
.bbar-links a { padding: 8px 12px; font-weight: 600; font-size: 15px; border-radius: 4px; }
.bbar-links a:hover, .bbar-links a.on { background: #222; }
.bbar .bbar-study { background: var(--paper); color: var(--ink); }
.bbar .bbar-study:hover { background: #ddd; }
@media (max-width: 760px) {
  .bbar-in { gap: 6px; height: auto; padding-block: 8px; flex-wrap: wrap; }
  .bbar-go { order: 5; flex-basis: 100%; max-width: none; }
  .bbar-links { margin-left: auto; }
  .bbar-links a { padding: 8px; font-size: 14px; }
}

/* Picker */
.picker { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.45); display: grid; place-items: start center; padding: 90px 16px 16px; }
.picker[hidden] { display: none; }
html.picker-open { overflow: hidden; }
.pk-card { width: min(860px, 100%); max-height: calc(100dvh - 110px); display: flex; flex-direction: column; background: var(--paper); border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.pk-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 2px solid var(--ink); }
.pk-head b { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1; white-space: nowrap; }
.pk-filter { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 9px 12px; border: 2px solid var(--ink); }
.pk-x { margin-left: auto; background: none; border: 0; font-size: 32px; line-height: 1; cursor: pointer; padding: 0 6px; color: var(--ink); }
.pk-back { background: none; border: 0; font: inherit; font-weight: 700; cursor: pointer; padding: 6px 0; color: var(--ink); }
.pk-body { overflow: auto; padding: 16px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.pk-body:has(.pk-chs) { display: block; }
.pk-col .caption { display: block; margin-bottom: 8px; }
.pk-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 4px; }
.pk-books button { text-align: left; padding: 8px 10px; border: 1px solid var(--g300, #d0d0d0); background: var(--paper); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; color: var(--ink); }
.pk-books button:hover { border-color: var(--ink); background: var(--g100); }
.pk-books button.started { border-left: 4px solid var(--ink); }
.pk-books button.done { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pk-chs { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
.pk-chs a { position: relative; aspect-ratio: 1; display: grid; place-items: center; border: 2px solid var(--g300, #d0d0d0); text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 24px; }
.pk-chs a:hover { border-color: var(--ink); }
.pk-chs a.read { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pk-chs a.here { outline: 3px solid var(--ink); outline-offset: 2px; }
.pk-chs a.has-note::after { content: ""; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: #e5b400; }
.pk-key { margin-top: 14px; display: flex; gap: 8px; align-items: center; }
.pk-key .k { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--ink); }
.pk-key .k.read { background: var(--ink); }
.pk-key .k.note { border: 0; border-radius: 50%; background: #e5b400; margin-left: 10px; }
@media (max-width: 640px) { .pk-body { grid-template-columns: 1fr; } .picker { padding-top: 76px; } }

/* Dashboard */
.dash { padding: clamp(24px, 4vw, 44px) 0 clamp(48px, 6vw, 80px); }
.dash-top { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.dash-hello { font-family: var(--display); font-weight: 400; font-size: clamp(48px, 6vw, 84px); line-height: .9; margin: 6px 0 0; }
.dash-account { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--g700); }
.sync-dot { width: 10px; height: 10px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 4px rgba(22,163,74,.15); }
.dash-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.dcard { border: 2px solid var(--ink); padding: clamp(18px, 2.2vw, 26px); background: var(--paper); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dcard-continue { grid-column: span 4; background: var(--ink); color: var(--paper); }
.dcard-continue .caption { color: #a8a8a8; }
.dcard-title { font-family: var(--display); font-weight: 400; font-size: clamp(56px, 7vw, 104px); line-height: .88; margin: 0; }
.dcard-sub { margin: 0; color: #c9c9c9; }
.dcard-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.dcard-continue .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.dcard-continue .btn--ghost { background: transparent; color: var(--paper); border-color: #777; }
.dcard-progress { grid-column: span 2; align-items: center; text-align: center; }
.dcard-progress > .caption { align-self: flex-start; }
.ring { --p: 0; width: 150px; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; background: conic-gradient(var(--ink) calc(var(--p) * 1%), var(--g100) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--paper); }
.ring b, .ring span { position: relative; }
.ring b { font-family: var(--display); font-weight: 400; font-size: 44px; line-height: .9; }
.ring span { font-size: 12px; color: var(--g700); }
.prog-nums { display: flex; gap: 18px; justify-content: center; }
.prog-nums b { display: block; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; }
.prog-nums span { font-size: 12px; color: var(--g700); }
.dcard-notes, .dcard-study, .dcard-quest, .dcard-plan { grid-column: span 3; }
.dcard-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dcard-link { background: none; border: 0; font: inherit; font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; text-decoration: none; padding: 0; }
.dcard-link:hover { text-decoration: underline; }
.dcard-empty { margin: 0; color: var(--g700); font-size: 15px; }
.dcard-notes .notes-list { display: grid; grid-template-columns: 1fr; gap: 8px; }
.dcard-notes .notes-list .note { margin: 0; padding: 12px 14px; display: block; text-decoration: none; color: var(--ink); background: var(--g100); }
.dcard-notes .notes-list .note p { margin: 4px 0 0; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.dcard-notes .notes-list .note:nth-child(n+4) { display: none; }
.dcard-notes .notes-list:not(:empty) + .dcard-empty { display: none; }
.boards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.boards:empty { display: none; }
.board { display: grid; gap: 2px; padding: 14px; border: 2px solid var(--ink); text-decoration: none; color: var(--ink); background-image: radial-gradient(#cfcfcf 1px, transparent 1px); background-size: 12px 12px; }
.board b { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1; }
.board span { font-size: 13px; color: var(--g700); }
.board:hover { background-color: var(--g100); }
.dcard-quest .quest-days { grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dcard-quest .quest-days a { font-size: 18px; border-width: 1px; }
.dcard-quest .btn { align-self: flex-start; font-size: 18px; padding: 12px 18px 10px; }
.dcard-plan .plans { grid-template-columns: 1fr 1fr; }
.dcard-plan .plans button { padding: 12px 14px; gap: 4px; }
.dcard-plan .plans b { font-size: 22px; }
.dcard-plan .plans span { font-size: 13px; }
.dash-books { margin-top: 28px; }
.dash-books .dcard-head { margin-bottom: 12px; flex-wrap: wrap; }
.dash-books .seg.small { margin: 0; max-width: 460px; flex: 1; }
.dash-books .book-tile { min-height: 74px; gap: 10px; }
.dash-books .book-tile .bt-name { font-size: 20px; }
.dash-foot { margin-top: 28px; font-size: 14px; color: var(--g700); }
@media (max-width: 980px) {
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .dcard-continue { grid-column: 1 / -1; }
  .dcard-progress { grid-column: 1 / -1; flex-direction: row; justify-content: space-around; flex-wrap: wrap; }
  .dcard-notes, .dcard-study, .dcard-quest, .dcard-plan { grid-column: 1 / -1; }
}

/* Login, front and center */
.login-gate { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: clamp(22px, 3vw, 36px); margin-bottom: 16px; border: 2px solid var(--ink); background: var(--g100); }
.login-gate .display { font-size: clamp(40px, 5vw, 68px); line-height: .92; margin: 8px 0 10px; }
.login-gate p { margin: 0; color: var(--g700); max-width: 34em; }
.login-gate-acts { display: grid; gap: 10px; }
.login-gate-acts .btn { justify-content: space-between; }
@media (max-width: 760px) { .login-gate { grid-template-columns: 1fr; } }
.login-warn { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; background: #fff3a3; border-bottom: 2px solid var(--ink); font-size: 15px; }
.dash .login-warn { border: 2px solid var(--ink); margin-bottom: 16px; }
.login-warn a { font-weight: 700; color: var(--ink); }
.login-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 400; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; background: var(--ink); color: var(--paper); font-size: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: opacity .5s; max-width: calc(100vw - 32px); flex-wrap: wrap; }
.login-toast a { color: var(--paper); font-weight: 700; }
.login-toast button { background: none; border: 0; color: var(--paper); font-size: 22px; cursor: pointer; }
.login-toast.out { opacity: 0; }

/* My notes */
.notes-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.notes-tools input { flex: 1; min-width: 220px; font: inherit; font-size: 16px; padding: 11px 14px; border: 2px solid var(--ink); }
.notes-tools .seg.small { margin: 0; width: 300px; }
.notes-tools select { font: inherit; padding: 11px 12px; border: 2px solid var(--ink); background: var(--paper); }
.notes-all { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin-top: 8px; }
.nitem { display: block; padding: 16px 18px; border: 2px solid var(--ink); text-decoration: none; color: var(--ink); }
.nitem:hover { background: var(--g100); }
.nitem-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.nitem-head b { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; }
.nitem-q { margin: 10px 0 0; font-size: 16px; line-height: 1.5; padding: 2px 4px; }
.nitem-q.mk-yellow { background: #ffe58a; } .nitem-q.mk-green { background: #bdf0b4; } .nitem-q.mk-blue { background: #bfe0ff; } .nitem-q.mk-pink { background: #ffc6dc; }
.nitem-q.u { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.nitem-t { margin: 10px 0 0; color: var(--g700); white-space: pre-wrap; }
.dcard-empty.show { grid-column: 1 / -1; padding: 22px; border: 2px dashed var(--g300, #ccc); }

/* ================= Study board ================= */
.study-app main { padding-top: 68px; }
.study { height: calc(100dvh - 68px); display: flex; flex-direction: column; background: var(--paper); }
.st-pick { margin: auto; text-align: center; padding: 40px 16px; }
.st-pick .display { font-size: clamp(56px, 8vw, 110px); margin: 0 0 10px; }
.st-top { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 2px solid var(--ink); background: var(--paper); flex-wrap: wrap; }
.st-back { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 14px; white-space: nowrap; }
.st-title { font-family: var(--display); font-size: 26px; letter-spacing: .03em; background: none; border: 1px solid var(--g300, #ccc); padding: 4px 12px 2px; cursor: pointer; border-radius: 4px; color: var(--ink); }
.st-status { font-size: 13px; color: var(--g500); }
.st-acts { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.st-acts button { min-width: 36px; height: 36px; border: 1px solid transparent; background: none; border-radius: 4px; font: inherit; font-size: 20px; cursor: pointer; color: var(--ink); padding: 0 8px; }
.st-acts button:hover:not(:disabled) { background: var(--g100); border-color: var(--g300, #ccc); }
.st-acts button:disabled { opacity: .3; cursor: default; }
.st-acts .st-txt { font-size: 14px; font-weight: 700; }
.st-acts .danger { color: #c62828; }
#st-zoom { font-size: 13px; font-weight: 700; min-width: 56px; }
.st-sep { width: 1px; height: 22px; background: var(--g300, #ccc); margin: 0 4px; }
.st-body { flex: 1; display: grid; grid-template-columns: 58px minmax(0, 1fr) 320px; min-height: 0; }
.st-tools { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-right: 2px solid var(--ink); background: var(--paper); overflow-y: auto; }
.st-tools [data-tool] { width: 42px; height: 42px; display: grid; place-items: center; border: 0; background: none; border-radius: 8px; cursor: pointer; color: var(--ink); flex: none; }
.st-tools [data-tool] svg { width: 22px; height: 22px; }
.st-tools [data-tool]:hover { background: var(--g100); }
.st-tools [data-tool].on { background: var(--ink); color: var(--paper); }
.st-tools .st-sep { width: 28px; height: 1px; margin: 6px 0; flex: none; }
.st-colors, .st-sizes { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.st-colors button { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--paper); background: var(--c); box-shadow: 0 0 0 1px #999; cursor: pointer; flex: none; }
.st-colors button.on { box-shadow: 0 0 0 2px var(--ink); }
.st-sizes button { width: 32px; height: 28px; display: grid; place-items: center; border: 0; background: none; border-radius: 6px; cursor: pointer; flex: none; }
.st-sizes button i { width: 16px; height: var(--w); background: var(--ink); border-radius: 4px; }
.st-sizes button.on { background: var(--g100); }
.st-canvas { position: relative; overflow: hidden; background-color: #fbfbfb; background-image: radial-gradient(#d6d6d6 1.1px, transparent 1.2px); touch-action: none; cursor: default; outline: none; }
.st-canvas[data-tool="hand"], .st-canvas.panning { cursor: grab; }
.st-canvas[data-tool="pen"], .st-canvas[data-tool="hl"], .st-canvas[data-tool="arrow"], .st-canvas[data-tool="box"] { cursor: crosshair; }
.st-canvas[data-tool="note"], .st-canvas[data-tool="text"] { cursor: copy; }
.st-canvas[data-tool="eraser"] { cursor: cell; }
.st-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.st-ink { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.st-ink .hl { mix-blend-mode: multiply; opacity: .55; }
.st-selbox { fill: none; stroke: #2563eb; stroke-width: 1.5; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }
.st-items { position: absolute; left: 0; top: 0; }
.st-canvas:not([data-tool="select"]) .st-items { pointer-events: none; }
.st-item { position: absolute; box-sizing: border-box; }
.st-item.sel { outline: 2px solid #2563eb; outline-offset: 4px; }
.st-item textarea { width: 100%; border: 0; background: transparent; resize: none; font: inherit; color: inherit; outline: none; overflow: hidden; display: block; padding: 0; line-height: 1.35; cursor: inherit; }
.st-item textarea[readonly] { cursor: move; user-select: none; -webkit-user-select: none; }
.st-item.editing textarea { cursor: text; }
.st-note { padding: 16px 16px 18px; box-shadow: 0 6px 16px rgba(0,0,0,.12); font-size: 17px; font-weight: 500; min-height: 120px; cursor: move; }
.st-note textarea { min-height: 86px; }
.st-text { font-weight: 600; line-height: 1.15; cursor: move; }
.st-verse { background: var(--paper); border: 2px solid var(--ink); padding: 14px 16px 16px; cursor: move; user-select: none; }
.st-verse .st-vref { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--g500); margin-bottom: 6px; }
.st-verse p { margin: 0; font-size: 17px; line-height: 1.5; }
.st-resize { position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; background: var(--paper); border: 2px solid #2563eb; display: none; cursor: ew-resize; }
.st-item.sel .st-resize { display: block; }
.st-hint { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); text-align: center; display: grid; gap: 6px; max-width: 420px; padding: 20px; color: var(--g700); pointer-events: none; }
.st-hint b { font-family: var(--display); font-weight: 400; font-size: 40px; color: var(--ink); line-height: 1; }
.st-verses { border-left: 2px solid var(--ink); display: flex; flex-direction: column; min-height: 0; background: var(--paper); }
.st-vhead { padding: 12px 14px; border-bottom: 1px solid var(--g300, #ccc); display: grid; gap: 2px; }
.st-vhead b { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; }
.st-vlist { overflow-y: auto; padding: 8px; display: grid; gap: 4px; align-content: start; }
.st-v { display: grid; grid-template-columns: 22px 1fr 28px; gap: 6px; align-items: start; padding: 8px; border: 1px solid transparent; border-radius: 4px; font-size: 15px; line-height: 1.45; cursor: grab; }
.st-v:hover { background: var(--g100); border-color: var(--g300, #ccc); }
.st-v sup { font-weight: 700; color: var(--g500); font-size: 12px; padding-top: 3px; }
.st-v button { width: 26px; height: 26px; border: 1px solid var(--ink); background: var(--paper); border-radius: 50%; font-size: 17px; line-height: 1; cursor: pointer; color: var(--ink); }
.st-v button:hover { background: var(--ink); color: var(--paper); }
#st-verses-btn { display: none; }
@media (max-width: 900px) {
  .st-body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .st-tools { order: 2; flex-direction: row; border-right: 0; border-top: 2px solid var(--ink); overflow-x: auto; padding: 6px; }
  .st-tools .st-sep { width: 1px; height: 28px; margin: 0 6px; }
  .st-colors, .st-sizes { flex-direction: row; }
  .st-verses { position: fixed; left: 0; right: 0; bottom: 0; height: 60dvh; z-index: 60; border-left: 0; border-top: 2px solid var(--ink); transform: translateY(100%); transition: transform .25s; box-shadow: 0 -12px 30px rgba(0,0,0,.15); }
  .study.verses-open .st-verses { transform: none; }
  #st-verses-btn { display: inline-block; }
  .st-back { display: none; }
  .st-acts { margin-left: 0; width: 100%; justify-content: space-between; }
}
.st-ink { width: 1px; height: 1px; max-width: none; max-height: none; }
.st-hint[hidden] { display: none; }

/* ================= Study page (the chapter as a page you write on) ================= */
.st-body--page { grid-template-columns: 58px minmax(0, 1fr); }
.st-desk { background-color: #e9e9e9; background-image: none; }
.sp-page { position: absolute; left: 0; top: 0; box-sizing: border-box; background: var(--paper); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 10px 30px rgba(0,0,0,.12); padding: 34px 30px 60px; color: var(--ink); --lh: 1.75; }
.sp-head { margin-bottom: 18px; }
.sp-kicker { display: block; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--g500); }
.sp-head h1 { font-family: var(--display); font-weight: 400; font-size: 54px; line-height: .9; margin: 6px 0 0; }
.sp-verses { font-size: 17px; }
.sp-v { margin: 0 0 .35em; line-height: var(--lh); position: relative; padding-left: 0; }
.sp-v sup { font-size: 11px; font-weight: 700; color: var(--g500); margin-right: 4px; vertical-align: .55em; line-height: 0; }
.sp-gap { background-image: repeating-linear-gradient(to bottom, transparent 0 31px, #ececec 31px 32px); }
.sp-loading { color: var(--g700); }
.sp-spacebar { position: absolute; left: 0; top: 0; display: none; }
.space-mode .sp-spacebar { display: block; }
.sp-sp { position: absolute; transform: translateY(-50%); display: flex; gap: 4px; z-index: 3; }
.sp-sp button { font: inherit; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.sp-sp button:hover { background: var(--ink); color: var(--paper); }
.space-mode .sp-v { outline: 1px dashed #c9c9c9; outline-offset: 2px; }
.st-note { font-size: 16px; min-height: 0; padding: 12px 14px 14px; }
.st-note textarea { min-height: 44px; }
.st-text { font-size: 18px; font-weight: 600; }
.st-ink .hl { mix-blend-mode: multiply; opacity: .6; }
.st-spacing { display: flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; }
.st-spacing span { color: var(--g500); margin-right: 4px; text-transform: uppercase; letter-spacing: .1em; font-size: 10px; }
.st-acts .st-spacing button { font-size: 13px; font-weight: 700; height: 30px; min-width: 0; padding: 0 9px; border: 1px solid var(--g300, #ccc); }
.st-acts .st-spacing button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.st-more { display: none; margin-left: auto; width: 40px; height: 36px; border: 1px solid var(--g300, #ccc); background: var(--paper); border-radius: 6px; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
.st-tip { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 20; display: grid; gap: 6px; padding: 14px 16px; background: var(--ink); color: var(--paper); font-size: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.st-tip button { justify-self: start; font: inherit; font-weight: 700; padding: 8px 14px; background: var(--paper); color: var(--ink); border: 0; cursor: pointer; }
@media (max-width: 900px) {
  .st-body--page { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .study .st-top { padding: 6px 10px; gap: 8px; flex-wrap: nowrap; }
  .study .st-title { font-size: 22px; padding: 3px 10px 1px; }
  .study .st-status { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .st-more { display: block; flex: none; }
  .study .st-acts { display: none; position: absolute; right: 10px; top: 100%; z-index: 70; width: min(320px, calc(100vw - 20px)); margin: 0; padding: 10px; background: var(--paper); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); flex-direction: column; align-items: stretch; gap: 8px; }
  .study.menu-open .st-acts { display: flex; }
  .study .st-top { position: relative; }
  .study .st-acts .st-sep { display: none; }
  .study .st-acts > button { height: 42px; justify-content: center; border: 1px solid var(--g300, #ccc); }
  .study .st-spacing { justify-content: space-between; }
  .study .st-spacing button { flex: 1; height: 38px !important; }
  .st-tools { gap: 2px; padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); }
  .st-tools [data-tool] { width: 44px; height: 44px; }
  .st-colors button { width: 28px; height: 28px; }
}
/* Book filter on the Bible home: [hidden] has to win over the tiles' display */
.book-tile[hidden] { display: none; }
.st-ur { display: flex; gap: 2px; margin-left: auto; }
.st-ur button { min-width: 38px; height: 36px; border: 1px solid transparent; background: none; border-radius: 6px; font-size: 20px; cursor: pointer; color: var(--ink); }
.st-ur button:hover:not(:disabled) { background: var(--g100); border-color: var(--g300, #ccc); }
.st-ur button:disabled { opacity: .3; cursor: default; }
.st-body--page ~ * { }
.study .st-acts { margin-left: 8px; }
.st-zoomrow { display: flex; align-items: center; gap: 2px; }
@media (max-width: 900px) {
  .st-ur { margin-left: auto; }
  .st-more { margin-left: 0; }
  .study .st-zoomrow { justify-content: space-between; }
  .study .st-zoomrow button { flex: 1; height: 42px; border: 1px solid var(--g300, #ccc); }
  .study .login-warn { padding: 7px 12px; font-size: 13px; gap: 4px 10px; flex-wrap: nowrap; }
  .study .login-warn span b { display: none; }
  .study .login-warn a { white-space: nowrap; }
}
@media (max-width: 600px) {
  .dash-books .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .dash-books .book-tile { min-height: 56px; padding: 8px; gap: 6px; }
  .dash-books .book-tile .bt-name { font-size: 16px; }
  .dash-books .book-tile .bt-count { font-size: 11px; }
  .dash-books .seg.small button { font-size: 15px; }
  .dcard-progress .ring { width: 120px; }
  .dcard-plan .plans b { font-size: 19px; }
}

/* ============ Site-wide compact pass (every page except home) ============ */
main:not(.home) > .page-hero { padding: clamp(104px, 12vw, 160px) 0 clamp(32px, 4.5vw, 56px); }
main:not(.home) > .page-hero .display { font-size: clamp(60px, 10vw, 150px); }
main:not(.home) > .page-hero p { margin-top: 18px; }
main:not(.home) > .section:not(.page-hero) { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); }
main:not(.home) .section-head { margin-bottom: clamp(24px, 3.5vw, 44px); gap: 12px; }
main:not(.home) .section-head .display { font-size: clamp(48px, 7vw, 104px); }
main:not(.home) .statement .display { font-size: clamp(56px, 9vw, 140px); }
main:not(.home) .split .display { font-size: clamp(46px, 6.5vw, 96px); margin: 12px 0 16px; }
main:not(.home) .split .ph { aspect-ratio: 5 / 4; }
main:not(.home) .believe-cta { margin-top: clamp(28px, 4vw, 48px); padding: clamp(22px, 3.5vw, 44px); }
main:not(.home) .believe-cta .display { font-size: clamp(40px, 5vw, 72px); }
/* Subpages: stream cards and the Discord block, compact like the home page */
main:not(.home) .card { min-height: 0; gap: 22px; padding: clamp(18px, 2.4vw, 30px); }
main:not(.home) .card--main { min-height: 0; }
main:not(.home) .card--main h3 { font-size: clamp(48px, 5.5vw, 84px); }
main:not(.home) .card h3 { font-size: clamp(34px, 3.4vw, 52px); }
main:not(.home) .card .go { font-size: 19px; }
.discord-block .display { font-size: clamp(44px, 5.5vw, 80px); }
.discord-list li { padding: 12px 16px; }
.discord-list b { font-size: 22px; }
main:not(.home) .expect > div { padding: clamp(18px, 2.4vw, 28px); }
/* Study: drawing never selects the page text (iPad pencil, long-press, mouse drag) */
.study .st-canvas, .study .sp-page, .study .sp-page * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.study .st-item.editing textarea { -webkit-user-select: text; user-select: text; }

/* ================= Chapter page editor (Word-style) ================= */
.reader { --bbar-h: 54px; }
.ribbon { position: sticky; top: calc(68px + var(--bbar-h)); z-index: 35; background: var(--paper); border-bottom: 2px solid var(--ink); box-shadow: 0 6px 14px -10px rgba(0,0,0,.25); }
.ribbon-in { max-width: 1180px; margin: 0 auto; padding: 6px var(--gutter); display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.ribbon-in::-webkit-scrollbar { display: none; }
.rb-group { display: flex; align-items: center; gap: 3px; padding-right: 8px; margin-right: 2px; border-right: 1px solid var(--g300, #d6d6d6); flex: none; }
.rb-group:last-child, .rb-end { border-right: 0; }
.rb-end { margin-left: auto; gap: 10px; }
.rb-label { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--g500); margin-right: 4px; }
.rb-btn { height: 36px; min-width: 36px; padding: 0 9px; border: 1px solid transparent; background: none; border-radius: 6px; font: inherit; font-size: 17px; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.rb-btn:hover:not(:disabled) { background: var(--g100); border-color: var(--g300, #d6d6d6); }
.rb-btn:disabled { opacity: .3; cursor: default; }
.rb-wide { font-size: 14px; font-weight: 700; }
#rb-pdf { border-color: var(--ink); }
.rb-sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--paper); box-shadow: 0 0 0 1px #9a9a9a; cursor: pointer; flex: none; padding: 0; }
.rb-sw:hover { box-shadow: 0 0 0 2px var(--ink); }
.rb-sw.hl-yellow { background: #fff1a6; } .rb-sw.hl-green { background: #cdf0c4; } .rb-sw.hl-blue { background: #cfe5ff; } .rb-sw.hl-pink { background: #ffd2e2; }
.rb-sw.fc-black { background: #111; } .rb-sw.fc-red { background: #d92d20; } .rb-sw.fc-blue { background: #1d4ed8; } .rb-sw.fc-green { background: #15803d; } .rb-sw.fc-purple { background: #7c3aed; }
.rb-a { font-weight: 800; border-bottom: 3px solid #d92d20; line-height: 1; padding: 0 2px; }
.rb-color { position: relative; }
.rb-pop { position: absolute; top: calc(100% + 6px); left: 0; display: flex; gap: 6px; padding: 8px; background: var(--paper); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); z-index: 5; }
.rb-pop[hidden] { display: none; }
.rb-status { font-size: 12px; color: var(--g500); white-space: nowrap; }
.ribbon.has-sel #rb-comment, .ribbon.has-sel .rb-hl { background: #fff8d6; border-radius: 6px; }
.rb-tip { margin: 0 0 10px; font-size: 14px; color: var(--g500); }
@media (max-width: 760px) {
  .ribbon { top: calc(68px + var(--bbar-h)); }
  .ribbon-in { padding: 5px 10px; gap: 4px; }
  .rb-label { display: none; }
  .rb-btn { height: 40px; min-width: 40px; }
  .rb-wide span { display: none; }
  .rb-sw { width: 30px; height: 30px; }
  .rb-status { display: none; }
}

/* Marks */
.mk.bo { font-weight: 700; }
.mk.fc-red { color: #d92d20; } .mk.fc-blue { color: #1d4ed8; } .mk.fc-green { color: #15803d; } .mk.fc-purple { color: #7c3aed; }
.mk.cmt { border-bottom: 2px solid #f0b400; }
.cmt-dot { border: 0; background: none; padding: 0 2px; margin-left: 2px; font-size: .8em; cursor: pointer; vertical-align: .1em; }
.scripture .v > sup { cursor: pointer; border-radius: 3px; padding: 0 2px; }
.scripture .v > sup:hover { background: var(--g100); color: var(--ink); }

/* Your notes typed under a verse */
.dnote { position: relative; display: block; margin: .3em 0 .8em; padding: 8px 34px 8px 14px; border-left: 3px solid #1d4ed8; background: #f3f7ff; }
.dnote-ref { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #1d4ed8; margin-bottom: 2px; }
.dnote textarea, .cmt-card textarea { width: 100%; border: 0; background: transparent; resize: none; font: inherit; color: inherit; outline: none; padding: 0; overflow: hidden; display: block; line-height: 1.5; }
.dnote textarea { font-size: .92em; color: #1e3a8a; }
.dnote-x, .cmt-x { position: absolute; top: 4px; right: 6px; width: 26px; height: 26px; border: 0; background: none; font-size: 20px; line-height: 1; color: var(--g500); cursor: pointer; border-radius: 50%; }
.dnote-x:hover, .cmt-x:hover { background: rgba(0,0,0,.06); color: var(--ink); }

/* Comments: in the margin on wide screens, under the verse otherwise */
.reader-wrap { position: relative; }
.cmt-card { position: relative; background: #fffbe8; border: 1px solid #f0d97a; border-left: 3px solid #f0b400; padding: 8px 32px 10px 12px; font-size: 15px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.cmt-card.inline { display: block; margin: .3em 0 .8em; font-size: .85em; }
.cmt-q { font-size: 12px; color: var(--g500); margin-bottom: 4px; font-style: italic; }
.cmt-margin { position: absolute; top: 0; left: calc(100% + 28px); width: 260px; display: none; }
.cmt-margin .cmt-card { position: absolute; left: 0; right: 0; }
@media (min-width: 1240px) {
  .cmt-margin { display: block; }
  .scripture .cmt-card.inline { display: none; }
}

/* Save as PDF / print: just the chapter, your marks, comments under their verses */
@media print {
  @page { size: letter; margin: 0.7in 0.75in; }
  .header, .footer, .bbar, .ribbon, .rb-tip, .mark-row, .chapter-nav, .my-notes, .login-toast, .login-warn, .cmt-margin, .cmt-dot, .dnote-x, .cmt-x, .context, .mk-bar, .intro-screen, .join-panel { display: none !important; }
  .bible-app main { padding-top: 0 !important; }
  .reader { padding: 0 !important; }
  .reader-wrap { max-width: none; padding: 0; }
  .reader h1 { font-size: 40pt; margin: 0 0 4pt; }
  .reader-sub { margin-bottom: 14pt; }
  .scripture { font-size: 12pt; line-height: 1.75; color: #000; }
  .scripture .cmt-card.inline { display: block !important; break-inside: avoid; box-shadow: none; }
  .dnote { break-inside: avoid; }
  .mk { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .dnote, .cmt-card { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* Phones: the editor toolbar sits at the bottom (thumb reach), every button visible on two rows */
@media (max-width: 760px) {
  .ribbon { position: fixed; top: auto; bottom: 0; left: 0; right: 0; border-bottom: 0; border-top: 2px solid var(--ink); box-shadow: 0 -8px 20px -12px rgba(0,0,0,.3); padding-bottom: env(safe-area-inset-bottom); }
  .ribbon-in { flex-wrap: wrap; justify-content: space-between; row-gap: 4px; overflow: visible; }
  .rb-group { border-right: 0; padding-right: 0; margin-right: 0; }
  .rb-hl { order: 1; } .rb-group:nth-child(3) { order: 2; }
  .rb-group:nth-child(1) { order: 3; } .rb-group:nth-child(4) { order: 4; } .rb-end { order: 5; margin-left: 0; }
  .rb-wide span { display: inline; }
  .rb-wide { font-size: 13px; padding: 0 8px; }
  .rb-pop { top: auto; bottom: calc(100% + 6px); }
  .bible-app .reader { padding-bottom: 150px; }
  .bible-app .login-toast { bottom: 118px; }
}

/* Anything marked hidden is hidden, whatever display a component sets (this bit us 3 times) */
[hidden] { display: none !important; }

/* Mission: compact */
main:not(.home) .statement.mission .display { font-size: clamp(40px, 5.2vw, 76px); max-width: 15em; margin-left: auto; margin-right: auto; }
main:not(.home) .statement.mission .mission-lead { margin-top: 14px; }
#ways .beats { border-top: 1px solid var(--g300, #d6d6d6); }
#ways .beat { grid-template-columns: 72px minmax(0, 1fr); padding: clamp(16px, 2.2vw, 24px) 0; gap: clamp(14px, 3vw, 36px); border-bottom: 1px solid var(--g300, #d6d6d6); align-items: start; }
#ways .beat-n { font-size: clamp(40px, 4.5vw, 64px); }
#ways .beat h3 { font-size: clamp(28px, 3vw, 42px); margin-bottom: 6px; }
#ways .beat p { font-size: 17px; max-width: 46em; }
.fit-links .name { font-size: clamp(24px, 3vw, 40px); }
.fit-links a { padding: clamp(12px, 1.6vw, 18px) 0; }
.fit-links .meta i { font-size: clamp(24px, 2.6vw, 36px); }

/* ===== Editor tools v2: a rail on the left (computers/tablets), a bar at the bottom (phones) ===== */
.rb-tool.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rb-sw.on { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.rb-pop-label { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--g500); align-self: center; margin-right: 4px; white-space: nowrap; }
.rb-btn svg { flex: none; }
.reader.tool-pen .scripture, .reader.tool-eraser .scripture { cursor: crosshair; touch-action: pan-y; -webkit-touch-callout: none; }
.reader.tool-eraser .scripture .mk { cursor: pointer; }
.reader.tool-eraser .scripture .mk:hover { outline: 2px dashed #d92d20; outline-offset: 1px; }
@media (min-width: 761px) {
  .ribbon { position: fixed; top: calc(68px + var(--bbar-h) + 18px); left: max(12px, calc(50vw - 360px - 96px)); width: 64px; z-index: 35; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper); box-shadow: 4px 4px 0 var(--ink); }
  .ribbon-in { flex-direction: column; align-items: center; padding: 8px 6px; gap: 6px; overflow: visible; max-width: none; margin: 0; }
  .rb-group { flex-direction: column; align-items: center; gap: 4px; border-right: 0; padding: 0 0 6px; margin: 0; border-bottom: 1px solid var(--g300, #d6d6d6); width: 100%; }
  .rb-group:last-child { border-bottom: 0; padding-bottom: 0; }
  .rb-end { margin-left: 0; }
  .rb-btn { width: 44px; height: 40px; min-width: 0; padding: 0; }
  .rb-btn span:not(.rb-a), .rb-label { display: none; }
  .rb-sw { width: 24px; height: 24px; }
  .rb-pop { top: -8px; left: calc(100% + 14px); flex-direction: row; }
  .rb-status { display: none; }
  .rb-tip { margin-top: 0; }
  .ribbon.has-sel #rb-comment, .ribbon.has-sel .rb-hl { background: #fff8d6; }
}
/* tablets and small laptops: make room for the rail beside the text */
@media (min-width: 761px) and (max-width: 1000px) { .bible-app .reader-wrap { padding-left: calc(var(--gutter) + 82px); } }
@media (max-width: 760px) {
  .rb-group { order: 0 !important; }
  .ribbon-in { justify-content: space-between; }
  .rb-btn span:not(.rb-a) { display: none; }
  .rb-wide { padding: 0 9px; }
  .rb-tools { gap: 2px; }
}
/* Tool rail: docked to the left edge, full height (not a floating card) */
@media (min-width: 761px) {
  .ribbon { left: 0; top: calc(68px + var(--bbar-h)); bottom: 0; width: 64px; border: 0; border-right: 2px solid var(--ink); border-radius: 0; box-shadow: none; overflow-y: auto; overflow-x: visible; }
  .ribbon-in { padding: 10px 6px 16px; }
  .bible-app .reader { padding-left: 64px; }
  .bible-app .reader-wrap { padding-left: var(--gutter); }
}
@media (min-width: 761px) {
  .ribbon { overflow: visible; }
}
@media (min-width: 761px) and (max-height: 760px) {
  .ribbon-in { gap: 3px; padding-top: 6px; }
  .rb-btn { height: 34px; }
  .rb-sw { width: 20px; height: 20px; }
  .rb-group { gap: 2px; padding-bottom: 3px; }
}

/* Each note has its own color: underline on its words, edge of its card, its icon */
.mk.cmt { border-bottom: 3px solid var(--cc, #e0a800); }
.cmt-card { border-left: 4px solid var(--cc, #e0a800); }
.cmt-card .cmt-q { color: var(--cc, #8a6d00); font-weight: 600; font-style: normal; }
.cmt-dot { color: var(--cc, #e0a800); vertical-align: -.1em; }
@media print { .mk.cmt, .cmt-card { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
@media print {
  .my-notes { display: block !important; break-inside: avoid; margin-top: 18pt; }
  .my-notes:has(textarea:placeholder-shown) { display: none !important; }
  .my-notes summary { list-style: none; }
  .my-notes summary::-webkit-details-marker { display: none; }
  .my-notes textarea { border: 0; padding: 0; resize: none; font-size: 11pt; field-sizing: content; height: auto; overflow: visible; }
  .my-notes .mn-status { display: none; }
  .cmt-card .cmt-q { color: var(--cc) !important; }
}
/* With words selected, everything that can act on them lights up yellow */
.ribbon.has-sel .rb-hl, .ribbon.has-sel [data-fmt], .ribbon.has-sel #rb-fc, .ribbon.has-sel #rb-comment { background: #fff3b0; border-color: #f0d97a; }
.ribbon.has-sel .rb-hl { border-radius: 8px; }

/* Mini toolbar next to selected words */
.mini-bar { position: absolute; z-index: 300; background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.18); padding: 6px; display: grid; gap: 6px; }
.mini-bar[hidden] { display: none !important; }
.mini-row { display: flex; align-items: center; gap: 4px; }
.mini-colors { justify-content: center; padding-top: 6px; border-top: 1px solid var(--g300, #d6d6d6); }
.mini-sep { width: 1px; height: 24px; background: var(--g300, #d6d6d6); margin: 0 2px; }
.mini-btn { height: 34px; min-width: 34px; padding: 0 7px; border: 1px solid transparent; background: none; border-radius: 8px; font: inherit; font-size: 16px; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.mini-btn:hover { background: var(--g100); border-color: var(--g300, #d6d6d6); }
.mini-wide { font-size: 13px; font-weight: 700; }
.mini-bar .rb-sw { width: 26px; height: 26px; }
@media (pointer: coarse) { .mini-btn { height: 40px; min-width: 40px; } .mini-bar .rb-sw { width: 30px; height: 30px; } }
@media print { .mini-bar { display: none !important; } }

/* ================= Dashboard v2: reading path + Bible study ================= */
.dcard-quest, .dcard-study { grid-column: span 3; }
.dcard-notes { grid-column: 1 / -1; }
.dcard-notes .notes-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.dcard-notes .notes-list .note:nth-child(n+4) { display: none; }
.path-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border: 2px solid var(--ink); }
.path-tabs button { background: var(--paper); border: 0; border-left: 2px solid var(--ink); padding: 9px 6px 7px; font-family: var(--display); font-size: 16px; letter-spacing: .03em; line-height: 1; cursor: pointer; color: var(--ink); }
.path-tabs button:first-child { border-left: 0; }
.path-tabs button.on { background: var(--ink); color: var(--paper); }
.path-tabs button:hover:not(.on) { background: var(--g100); }
.quest-now { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.quest-now b { font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1; }
.quest-now span:last-child { font-size: 14px; color: var(--g700); }
.quest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 4px; }
.quest-grid a { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--g300, #d0d0d0); text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 600; }
.quest-grid a:hover { border-color: var(--ink); }
.quest-grid a.read { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.quest-grid a.next { outline: 3px solid #f0b400; outline-offset: 1px; border-color: var(--ink); }
.quest-after { margin: 0; font-size: 14px; color: var(--g700); }
.quest-after a { color: var(--ink); font-weight: 700; }
.dcard-quest .custom-order { margin-top: 6px; }
.dcard-quest .custom-order ol { max-height: 260px; overflow: auto; }
.my-studies { display: grid; gap: 8px; }
.my-studies:empty { display: none; }
.study-row { position: relative; display: grid; gap: 2px; padding: 12px 14px 14px; border: 2px solid var(--ink); text-decoration: none; color: var(--ink); overflow: hidden; }
.study-row b { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1; }
.study-row span { font-size: 14px; color: var(--g700); }
.study-row .study-meta { font-size: 12px; color: var(--g500); }
.study-row i { position: absolute; left: 0; bottom: 0; height: 4px; width: var(--p); background: #f0b400; }
.study-row:hover { background: var(--g100); }
.study-pitch p { margin: 0 0 10px; color: var(--g700); font-size: 15px; }
.guide-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.guide-chip { display: inline-flex; gap: 6px; align-items: baseline; padding: 7px 11px; border: 1px solid var(--ink); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 14px; }
.guide-chip b { font-weight: 700; }
.guide-chip span { color: var(--g500); font-size: 12px; }
.guide-chip:hover { background: var(--ink); color: var(--paper); }
.guide-chip:hover span { color: #ccc; }
.dcard-study .dcard-actions { margin-top: auto; }
@media (max-width: 980px) { .dcard-quest, .dcard-study { grid-column: 1 / -1; } }
@media (max-width: 520px) { .path-tabs { grid-template-columns: 1fr 1fr; } .path-tabs button:nth-child(3) { border-left: 0; } .path-tabs button:nth-child(n+3) { border-top: 2px solid var(--ink); } }

/* ================= Bible study pages ================= */
.back-link { text-decoration: none; color: var(--g500); }
.back-link:hover { color: var(--ink); }
.st-sub { margin: 8px 0 0; color: var(--g700); max-width: 44em; }
.st-sec { margin-top: 28px; }
.st-sec > .caption { display: block; margin-bottom: 10px; }
.my-studies.big { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.guide-card { display: grid; gap: 6px; align-content: start; padding: 16px 18px; border: 2px solid var(--ink); text-decoration: none; color: var(--ink); transition: background .15s, color .15s; }
.guide-card b { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: .95; }
.guide-card > span:last-child { font-size: 15px; color: var(--g700); }
@media (hover: hover) { .guide-card:hover { background: var(--ink); color: var(--paper); } .guide-card:hover span { color: #ccc; } }
.custom-plan, .start-box { max-width: 720px; display: grid; gap: 12px; }
.custom-plan label, .start-box label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.custom-plan input, .custom-plan select, .start-box input { font: inherit; font-size: 16px; padding: 10px 12px; border: 2px solid var(--ink); background: var(--paper); }
.cp-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cp-row label { flex: 1; min-width: 180px; }
.cp-ranges { display: grid; gap: 8px; }
.cp-range { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cp-range select { flex: 1; min-width: 160px; }
.cp-range input { width: 76px; }
.cp-range span { font-size: 14px; color: var(--g700); }
.days { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--g300, #d6d6d6); }
.days li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--g300, #d6d6d6); }
.days .day-n { font-family: var(--display); font-size: 22px; line-height: 1; display: grid; gap: 4px; align-content: start; }
.days .day-n small { font-family: var(--body); font-size: 12px; color: var(--g500); }
.days a { font-weight: 700; color: var(--ink); }
.days p { margin: 4px 0 0; color: var(--g700); }
.days li.done .day-n { color: var(--g500); }
.days li.done .day-refs a { text-decoration: line-through; text-decoration-thickness: 2px; }
.days li.now { background: #fffbe8; box-shadow: -10px 0 0 #fffbe8, 10px 0 0 #fffbe8; }
.day-people { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.chip { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--g300, #ccc); color: var(--g500); }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.day-notes { font-size: 13px; color: var(--g700); margin-left: 4px; }
.day-notes a { font-weight: 600; }
.study-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; }
.today { background: var(--ink); color: var(--paper); }
.today .caption { color: #aaa; }
.today p { color: #d6d6d6; margin: 0; }
.today .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.dcard-title.small { font-size: clamp(36px, 4.5vw, 60px); }
.people-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.people-list li { display: grid; grid-template-columns: 32px auto minmax(60px, 1fr) auto; gap: 10px; align-items: center; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-weight: 700; text-transform: uppercase; }
.people-list .bar { height: 8px; background: var(--g100); border-radius: 4px; overflow: hidden; }
.people-list .bar i { display: block; height: 100%; width: var(--p); background: #f0b400; }
.invite { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--g300, #d6d6d6); display: grid; gap: 6px; }
.invite.flash { animation: flash 1.6s ease 2; }
@keyframes flash { 50% { background: #fff3b0; } }
.invite-row { display: flex; gap: 6px; }
.invite-row input { flex: 1; min-width: 0; font: inherit; font-size: 14px; padding: 9px 10px; border: 2px solid var(--ink); background: var(--g100); }
.invite-row .btn { font-size: 16px; padding: 10px 14px 8px; }
.invite-card { max-width: 640px; }
.study-foot { margin-top: 24px; }
@media (max-width: 860px) { .study-top { grid-template-columns: 1fr; } .days li { grid-template-columns: 70px minmax(0, 1fr); gap: 10px; } }

/* A study member's notes on a chapter */
.member-notes { border: 2px solid var(--ink); background: #fffbe8; padding: 14px 16px; margin: 0 0 18px; font-size: 16px; }
.member-notes .mn-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.member-notes .mn-head b { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; }
.member-notes .mn-head a { font-size: 14px; font-weight: 700; color: var(--ink); }
.member-notes .mn-head button { margin-left: auto; background: none; border: 0; font-size: 22px; cursor: pointer; }
.member-notes ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.member-notes li .caption { display: block; text-decoration: none; }
.member-notes q { quotes: "“" "”"; padding: 1px 3px; }
.member-notes p { margin: 4px 0 0; color: var(--g700); white-space: pre-wrap; }
.mn-overall { margin-top: 10px; padding-top: 10px; border-top: 1px solid #f0d97a; }
@media print { .member-notes { display: none !important; } }
/* Dashboard order: continue + progress, then quest + Bible study, then notes */
.dash-grid > .dcard-notes { order: 5; }
.dcard-quest .quest-now b { font-size: 44px; }

/* ===== Compact pass: About, Start, Prayer, Merch ===== */
/* About: shorter photos */
.bro .ph, .bro-photo { aspect-ratio: 4 / 3; }
.bro { padding: clamp(18px, 2.6vw, 32px); }
.bro h3 { font-size: clamp(40px, 4.5vw, 64px); }
/* Start here: compact steps with light dividers (like Believe) */
.start-steps { border-top: 0; }
.start-steps > li { grid-template-columns: 72px minmax(0, 1fr); padding: clamp(18px, 2.4vw, 28px) 0; gap: clamp(14px, 3vw, 36px); border-bottom: 1px solid var(--g300, #d6d6d6); }
.start-steps > li:last-child { border-bottom: 0; }
.start-steps .n { font-size: clamp(40px, 4.5vw, 64px); }
.start-steps h2 { font-size: clamp(30px, 3.2vw, 44px); margin-bottom: 8px; }
.start-steps p { margin-bottom: 12px; }
.start-steps blockquote { padding: 12px 16px; font-size: 17px; margin-bottom: 12px; }
.start-steps .btn { font-size: 18px; padding: 12px 18px 10px; }
/* Prayer: the two verses side by side, smaller */
.verse-list { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: none; }
.vcard { font-size: clamp(18px, 1.7vw, 21px); padding: clamp(18px, 2.4vw, 28px); }
/* Merch: square photos, four across */
.lookbook .ph { grid-column: span 3; aspect-ratio: 1; }
.lookbook .ph.wide { grid-column: span 6; aspect-ratio: auto; }
.lookbook .ph.half { grid-column: span 6; aspect-ratio: 2 / 1; }
@media (max-width: 760px) { .lookbook .ph, .lookbook .ph.half { grid-column: span 6; aspect-ratio: 1; } .lookbook .ph.wide { grid-column: span 12; aspect-ratio: 4 / 3; } }
/* Merch collage: every row the same height and holes filled */
.lookbook { grid-auto-flow: dense; }
.lookbook .ph.wide, .lookbook .ph.half { grid-column: span 6; aspect-ratio: 2 / 1; }
@media (max-width: 760px) { .lookbook .ph.wide, .lookbook .ph.half { grid-column: span 12; aspect-ratio: 2 / 1; } }
/* Merch collage: 9 photos, a clean 3 x 3 grid */
.lookbook { grid-template-columns: repeat(3, 1fr); grid-auto-flow: row; }
.lookbook .ph, .lookbook .ph.wide, .lookbook .ph.half { grid-column: span 1; aspect-ratio: 1; }

/* ============ Mission: one repeating shape, alternating backgrounds ============ */
.m-sec .m-kicker { display: block; margin-bottom: 12px; }
.m-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 2px solid var(--ink); background: var(--paper); }
.m-cards li + li { border-left: 2px solid var(--ink); }
.m-cards a { display: grid; gap: 8px; align-content: start; height: 100%; box-sizing: border-box; padding: clamp(16px, 2vw, 24px); text-decoration: none; color: var(--ink); transition: background .15s, color .15s; }
.m-cards b { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); line-height: .95; }
.m-cards a > span:last-child { font-size: 15px; color: var(--g700); }
.m-n { font-family: var(--display); font-size: 22px; color: var(--g500); }
@media (hover: hover) { .m-cards a:hover { background: var(--ink); color: var(--paper); } .m-cards a:hover span { color: #c4c4c4; } }
.m-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.m-main .display { font-size: clamp(40px, 5.2vw, 76px); margin: 12px 0 14px; max-width: 13em; }
.m-main .mission-lead { margin: 0 0 6px; max-width: 36em; text-align: left; }
.m-main .mission-more { text-align: left; margin: 12px 0 0; max-width: 40em; }
.m-main .m-btn { margin-top: 18px; }
.m-quote { margin: 0; padding: clamp(20px, 2.8vw, 32px); background: var(--paper); border: 2px solid var(--ink); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; }
.play .m-quote { background: var(--paper); }
.m-quote cite { display: block; margin-top: 12px; font-style: normal; }
.m-ways { display: grid; grid-template-columns: repeat(4, 1fr); border: 2px solid var(--ink); background: var(--paper); }
.m-way { padding: clamp(18px, 2.2vw, 26px); display: flex; flex-direction: column; gap: 8px; }
.m-way + .m-way { border-left: 2px solid var(--ink); }
.m-way h3 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 2.6vw, 38px); line-height: .95; margin: 0; }
.m-way p { margin: 0; font-size: 15px; color: var(--g700); }
.m-way .m-links { margin-top: auto; padding-top: 6px; display: flex; gap: 14px; flex-wrap: wrap; }
.m-fit { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.m-fit a { display: grid; gap: 6px; padding: 16px 18px; border: 2px solid var(--ink); background: var(--paper); text-decoration: none; color: var(--ink); height: 100%; box-sizing: border-box; transition: background .15s, color .15s; }
.m-fit b { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.2vw, 30px); line-height: 1; }
.m-fit span { font-size: 14px; font-weight: 700; color: var(--g700); }
@media (hover: hover) { .m-fit a:hover { background: var(--ink); color: var(--paper); } .m-fit a:hover span { color: #ddd; } }
@media (max-width: 980px) {
  .m-cards, .m-ways { grid-template-columns: 1fr 1fr; }
  .m-cards li:nth-child(3), .m-way:nth-child(3) { border-left: 0; }
  .m-cards li:nth-child(n+3), .m-way:nth-child(n+3) { border-top: 2px solid var(--ink); }
  .m-row { grid-template-columns: 1fr; }
  .m-fit { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .m-cards, .m-ways, .m-fit { grid-template-columns: 1fr; }
  .m-cards li + li, .m-way + .m-way { border-left: 0; border-top: 2px solid var(--ink); }
}

/* ===== Study days: notes, questions you both answer, together, pray ===== */
.days li { align-items: start; }
.day-box > summary { list-style: none; cursor: pointer; display: grid; gap: 4px; padding-right: 28px; position: relative; }
.day-box > summary::-webkit-details-marker { display: none; }
.day-box > summary::after { content: "+"; position: absolute; right: 2px; top: 0; font-size: 22px; font-weight: 700; color: var(--g500); }
.day-box[open] > summary::after { content: "−"; }
.day-title { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; }
.day-sum { font-size: 13px; color: var(--g500); }
.day-box[open] > summary { margin-bottom: 12px; }
.day-notes-text { border-left: 3px solid var(--ink); padding: 2px 0 2px 14px; margin-bottom: 14px; }
.day-notes-text p { margin: 6px 0 0; color: var(--g900, #222); font-size: 16px; line-height: 1.6; max-width: 46em; }
.day-qs { display: grid; gap: 14px; margin-bottom: 14px; }
.qa { background: var(--g100); padding: 12px 14px; }
.qa-q { margin: 0 0 8px; font-weight: 700; color: var(--ink); display: flex; gap: 10px; font-size: 16px; }
.qa-q span { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 13px; }
.qa textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 10px 12px; border: 2px solid var(--ink); background: var(--paper); resize: none; overflow: hidden; line-height: 1.5; }
.qa-status { font-size: 12px; color: var(--g500); }
.qa-others { display: grid; gap: 6px; margin-top: 8px; }
.qa-other { background: var(--paper); border-left: 3px solid #f0b400; padding: 8px 12px; }
.qa-other b { font-size: 13px; }
.qa-other p { margin: 2px 0 0; white-space: pre-wrap; color: var(--g900, #222); font-size: 15px; }
.qa-other span { font-size: 13px; color: var(--g500); margin-left: 6px; }
.qa-other.hidden-ans { border-left-color: var(--g300, #ccc); background: repeating-linear-gradient(45deg, var(--paper) 0 8px, #f6f6f6 8px 16px); }
.qa-other.none { border-left-color: var(--g300, #ccc); }
.day-extra { margin-bottom: 10px; }
.day-extra p { margin: 4px 0 0; color: var(--g900, #222); }
.day-extra.pray { border-top: 1px dashed var(--g300, #ccc); padding-top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 600px) {
  .days li { grid-template-columns: 1fr; gap: 6px; }
  .days .day-n { display: flex; gap: 8px; align-items: baseline; }
  .days li.now { box-shadow: -16px 0 0 #fffbe8, 16px 0 0 #fffbe8; }
  .qa { padding: 10px; }
}
