:root {
  --red: #c0392b;
  --red-soft: #e74c3c;
  --coral-bg: #fdf3f1;
  --ink: #2b2b2b;
  --ink-soft: #6b6b6b;
  --line: #f0dedb;
  --card: #ffffff;
  --shadow: 0 6px 24px rgba(192, 57, 43, 0.08);
  --radius: 18px;
  --serif: "Noto Serif KR", serif;
  --sans: "Noto Sans KR", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: linear-gradient(180deg, #fbeeeb 0%, #f7f4f2 320px, #f7f4f2 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 54px 20px 40px;
  color: #fff;
  background: linear-gradient(135deg, #c0392b 0%, #a5281c 100%);
  border-radius: 0 0 32px 32px;
  margin: 0 -16px 20px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% -10%, rgba(255,255,255,0.18), transparent 55%);
  pointer-events: none;
}
.hero__eyebrow {
  font-size: 14px;
  letter-spacing: 3px;
  opacity: 0.85;
  margin-bottom: 10px;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: -0.5px;
}
.hero__meta {
  margin-top: 12px;
  font-size: 14px;
  opacity: 0.9;
}
.hero__slogan {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 22px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  backdrop-filter: blur(4px);
}
.hero__slogan-label {
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0.85;
}
.hero__slogan strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
}
.hero__date {
  margin-top: 18px;
  font-size: 13px;
  opacity: 0.8;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 4px;
  margin: 0 -16px 22px;
  background: rgba(247, 244, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex: 0 0 auto;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 999px;
  transition: all 0.15s ease;
}
.nav a:hover { color: var(--red); background: var(--coral-bg); }

/* ---------- Card ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px;
  margin-bottom: 18px;
  scroll-margin-top: 70px;
}
.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--red);
}
.card__head h2 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: -0.3px;
}
.card__tag {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
  white-space: nowrap;
}
.subhead {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--red);
  margin: 26px 0 12px;
  padding-left: 10px;
  border-left: 3px solid var(--red-soft);
}
.subhead small { color: var(--ink-soft); font-weight: 400; }

/* ---------- Order list ---------- */
.order-list { list-style: none; }
.order-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "title who" "detail who";
  gap: 2px 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.order-list li:last-child { border-bottom: none; }
.order-list__title { grid-area: title; font-weight: 600; color: var(--red); font-size: 15px; }
.order-list__detail { grid-area: detail; font-size: 13px; color: var(--ink-soft); }
.order-list__detail:empty { display: none; }
.order-list__who {
  grid-area: who;
  align-self: center;
  font-size: 13px;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}

/* ---------- Verse ---------- */
.card--verse { background: linear-gradient(160deg, #fff 0%, #fdf3f1 100%); }
.verse {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.8;
  color: var(--ink);
  text-align: center;
  padding: 8px 4px 4px;
}
.verse__amen { color: var(--red); font-weight: 700; }
.verse__theme {
  margin-top: 18px;
  padding: 12px 16px;
  background: var(--coral-bg);
  border-radius: 12px;
  font-size: 14px;
  text-align: center;
  color: var(--ink-soft);
}
.verse__theme strong { color: var(--red); }

/* ---------- Notice ---------- */
.notice-list { list-style: none; counter-reset: n; }
.notice-list li {
  counter-increment: n;
  position: relative;
  padding: 12px 0 12px 40px;
  font-size: 14px;
  border-bottom: 1px dashed var(--line);
}
.notice-list li:last-child { border-bottom: none; }
.notice-list li::before {
  content: counter(n);
  position: absolute;
  left: 0;
  top: 12px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 50%;
}
.notice-list strong { color: var(--red); }

/* ---------- Schedule ---------- */
.schedule-list { list-style: none; }
.schedule-list li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.schedule-list li:last-child { border-bottom: none; }
.schedule-list__date {
  flex: 0 0 auto;
  min-width: 92px;
  font-weight: 700;
  color: var(--red);
  font-size: 14px;
}
.schedule-list__body { font-size: 14px; }
.schedule-list__body em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.schedule-list--compact .schedule-list__date { min-width: 78px; }

/* ---------- Groups table ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.groups {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 420px;
}
.groups th {
  background: var(--red);
  color: #fff;
  font-weight: 600;
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
}
.groups th:first-child { border-top-left-radius: 10px; }
.groups th:last-child { border-top-right-radius: 10px; }
.groups td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.groups td:first-child { font-weight: 600; color: var(--red); white-space: nowrap; }
.groups td:nth-child(2) { white-space: nowrap; color: var(--ink); }
.groups tbody tr:nth-child(even) { background: var(--coral-bg); }

/* ---------- People grid ---------- */
.people-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.people-grid--wide { grid-template-columns: repeat(2, 1fr); }
.people-grid li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background: var(--coral-bg);
  border-radius: 12px;
  border: 1px solid var(--line);
}
.people-grid__role { font-size: 12px; color: var(--red); font-weight: 600; }
.people-grid__name { font-size: 15px; font-weight: 500; }
.teacher-list {
  font-size: 14px;
  line-height: 2;
  color: var(--ink);
  padding: 4px 2px;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 34px 20px;
  margin-top: 26px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #333 0%, #222 100%);
  color: #eee;
}
.footer__name { font-size: 16px; }
.footer__name strong { color: #fff; font-weight: 700; }
.footer__en { font-size: 12px; opacity: 0.6; margin-top: 4px; }
.footer__addr, .footer__pastor { font-size: 13px; opacity: 0.8; margin-top: 8px; }
.footer__site {
  display: inline-block;
  margin-top: 16px;
  color: #ff8a7a;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  font-size: 15px;
}
.footer__site:hover { text-decoration: underline; }

/* ---------- To top ---------- */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(192, 57, 43, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 30;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (min-width: 560px) {
  .people-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 380px) {
  .hero__title { font-size: 27px; }
  .people-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   THREE EDITIONS — shared theme switcher
   ================================================================ */
.theme-switcher {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(18,18,18,.9);
  box-shadow: 0 10px 34px rgba(0,0,0,.24);
  backdrop-filter: blur(14px);
  color: #fff;
  max-width: calc(100vw - 24px);
  overflow-x: auto;
  scrollbar-width: none;
}
.theme-switcher::-webkit-scrollbar { display: none; }
.theme-switcher__label { padding: 0 8px 0 10px; font: 700 9px/1 var(--sans); letter-spacing: 1.5px; opacity: .5; }
.theme-switcher button {
  display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px;
  flex: 0 0 auto; border: 0; border-radius: 999px; background: transparent; color: #fff; cursor: pointer;
}
.theme-switcher button i { width: 8px; height: 8px; border-radius: 50%; background: #ef6a68; }
.theme-switcher button:nth-of-type(2) i { background: #b64d32; }
.theme-switcher button:nth-of-type(3) i { background: #cfff3d; }
.theme-switcher button:nth-of-type(4) i { background: #ff4d00; }
.theme-switcher button:nth-of-type(5) i { background: #28c4d8; }
.theme-switcher button:nth-of-type(6) i { background: #6657ff; }
.theme-switcher button:nth-of-type(7) i { background: #ff9ac1; }
.theme-switcher button:nth-of-type(8) i { background: #4e90ff; }
.theme-switcher button span { font-size: 11px; opacity: .55; }
.theme-switcher button b { font-size: 11px; letter-spacing: .8px; }
.theme-switcher button[aria-pressed="true"] { background: #fff; color: #111; }
.hero__edition, .hero__number, .hero__scroll { display: none; }
.to-top { bottom: 76px; }

/* 01 — YOUTH MAGAZINE */
body[data-theme="youth"] {
  --red: #ff4d00; --red-soft: #ff7a43; --coral-bg: #fff2df; --ink: #161616;
  --ink-soft: #67645f; --line: #e9dfd0; --shadow: 0 8px 0 #151515; --radius: 4px;
  background: #f2eadc;
}
body[data-theme="youth"] .page { max-width: 760px; }
body[data-theme="youth"] .hero {
  min-height: 600px; margin-bottom: 0; padding: 62px 38px 45px; border-radius: 0;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  text-align: left; color: #171717; background: #ffcf33; isolation: isolate;
}
body[data-theme="youth"] .hero::before {
  content: ""; position: absolute; width: 460px; height: 460px; right: -120px; top: 40px;
  border-radius: 50%; background: #ff4d00; z-index: -1;
}
body[data-theme="youth"] .hero::after {
  content: "ONE WAY"; inset: auto -25px 112px auto; color: rgba(255,255,255,.9); background: none;
  font: 900 66px/1 var(--sans); letter-spacing: -5px; transform: rotate(-8deg); z-index: -1;
}
body[data-theme="youth"] .hero__edition { display: block; position: absolute; top: 30px; left: 38px; font-size: 11px; font-weight: 700; letter-spacing: 2px; }
body[data-theme="youth"] .hero__number { display: block; position: absolute; right: 22px; top: -35px; font: 900 200px/1 var(--sans); color: rgba(255,255,255,.25); letter-spacing: -18px; }
body[data-theme="youth"] .hero__eyebrow { color: #ff4d00; opacity: 1; font-weight: 800; letter-spacing: 1px; }
body[data-theme="youth"] .hero__title { max-width: 490px; font: 900 58px/.98 var(--sans); letter-spacing: -4px; }
body[data-theme="youth"] .hero__meta { font-weight: 700; }
body[data-theme="youth"] .hero__slogan { align-items: flex-start; background: #171717; color: #fff; border: 0; border-radius: 0; transform: rotate(-1deg); }
body[data-theme="youth"] .hero__slogan strong { font-family: var(--sans); }
body[data-theme="youth"] .hero__date { position: absolute; right: 35px; bottom: 32px; color: #fff; opacity: 1; font-weight: 700; }
body[data-theme="youth"] .nav { margin: 0 -16px 24px; padding: 12px 16px; background: #171717; border: 0; }
body[data-theme="youth"] .nav a { color: #fff; font-size: 12px; font-weight: 700; border: 1px solid #555; border-radius: 0; }
body[data-theme="youth"] .nav a:hover { color: #171717; background: #ffcf33; }
body[data-theme="youth"] .card { border: 2px solid #171717; }
body[data-theme="youth"] .card__head { border-color: #171717; }
body[data-theme="youth"] .card__head h2 { font-family: var(--sans); font-weight: 900; text-transform: uppercase; }
body[data-theme="youth"] .notice-list li::before, body[data-theme="youth"] .groups th { color: #111; background: #ffcf33; }
body[data-theme="youth"] .footer { border-radius: 0; box-shadow: 8px 8px 0 #ff4d00; }

/* 02 — QUIET JOURNAL */
body[data-theme="journal"] {
  --red: #9b4935; --red-soft: #c47a64; --coral-bg: #f3ede3; --ink: #302d29;
  --ink-soft: #777168; --line: #dcd3c5; --card: transparent; --shadow: none; --radius: 0;
  background-color: #f7f2e8;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(92,76,56,.06) 32px);
}
body[data-theme="journal"] .page { max-width: 820px; padding-top: 26px; }
body[data-theme="journal"] .hero {
  margin: 0; min-height: 520px; padding: 78px 9% 62px; border: 1px solid #cfc3b2; border-radius: 2px;
  background: #eee5d6; color: var(--ink); text-align: left;
}
body[data-theme="journal"] .hero::before {
  content: "“"; position: absolute; right: 5%; top: -50px; color: rgba(155,73,53,.1);
  font: 400 360px/1 Georgia,serif;
}
body[data-theme="journal"] .hero::after { inset: 22px; background: none; border: 1px solid rgba(155,73,53,.3); }
body[data-theme="journal"] .hero__edition { display: block; font: 600 11px/1 var(--serif); letter-spacing: 3px; color: var(--red); }
body[data-theme="journal"] .hero__eyebrow { margin-top: 72px; color: var(--red); opacity: 1; font-family: var(--serif); }
body[data-theme="journal"] .hero__title { max-width: 530px; margin-top: 10px; font-size: 48px; line-height: 1.35; letter-spacing: -2px; }
body[data-theme="journal"] .hero__meta { padding-top: 18px; border-top: 1px solid #c7baa7; }
body[data-theme="journal"] .hero__slogan { margin-top: 42px; padding: 0; border: 0; border-radius: 0; background: transparent; }
body[data-theme="journal"] .hero__slogan-label { color: var(--red); }
body[data-theme="journal"] .hero__slogan strong { font-size: 20px; }
body[data-theme="journal"] .hero__date { position: absolute; right: 9%; top: 74px; color: var(--red); }
body[data-theme="journal"] .nav { top: 10px; margin: 16px 0 30px; justify-content: center; border: 1px solid #d5c9b9; background: rgba(247,242,232,.92); }
body[data-theme="journal"] .nav a { font-family: var(--serif); color: var(--ink); }
body[data-theme="journal"] main { padding: 0 5%; }
body[data-theme="journal"] .card { padding: 42px 8px; border-bottom: 1px solid #cfc3b2; }
body[data-theme="journal"] .card__head { border: 0; justify-content: flex-start; }
body[data-theme="journal"] .card__head h2 { min-width: 190px; font-size: 27px; }
body[data-theme="journal"] .card__tag::before { content: "— "; }
body[data-theme="journal"] .order-list li { padding: 16px 4px; }
body[data-theme="journal"] .notice-list li::before { background: transparent; color: var(--red); border: 1px solid var(--red); }
body[data-theme="journal"] .groups th { background: var(--ink); }
body[data-theme="journal"] .people-grid li { background: rgba(255,255,255,.35); border-radius: 0; }
body[data-theme="journal"] .footer { margin: 30px 5% 60px; border-radius: 0; background: var(--ink); }

/* 03 — NIGHT WORSHIP */
body[data-theme="worship"] {
  --red: #cfff3d; --red-soft: #9cc721; --coral-bg: #22251e; --ink: #f2f4ed;
  --ink-soft: #a9ada2; --line: #33372f; --card: #181a17; --shadow: 0 0 0 1px #31342d; --radius: 20px;
  background: #0b0c0b; color: var(--ink);
}
body[data-theme="worship"] .page { max-width: 1040px; padding: 18px 22px 50px; }
body[data-theme="worship"] .hero {
  min-height: 620px; margin: 0 0 18px; padding: 52px; border-radius: 24px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  text-align: left; color: #f7f7f2; background: #151712;
}
body[data-theme="worship"] .hero::before {
  content: ""; position: absolute; width: 580px; height: 580px; right: -80px; top: 20px;
  background: repeating-radial-gradient(circle at center, transparent 0 28px, rgba(207,255,61,.11) 29px 30px);
}
body[data-theme="worship"] .hero::after {
  content: "JESUS"; inset: auto -20px -38px auto; background: none; color: rgba(207,255,61,.08);
  font: 900 190px/.8 var(--sans); letter-spacing: -14px;
}
body[data-theme="worship"] .hero__edition { display: block; position: absolute; top: 42px; left: 52px; color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: 3px; }
body[data-theme="worship"] .hero__eyebrow { color: var(--red); opacity: 1; font-weight: 700; }
body[data-theme="worship"] .hero__title { z-index: 1; max-width: 650px; font: 900 70px/.98 var(--sans); letter-spacing: -5px; }
body[data-theme="worship"] .hero__meta { color: #bbb; }
body[data-theme="worship"] .hero__slogan { z-index: 1; align-items: flex-start; padding: 14px 20px; border-color: #3e4434; border-radius: 4px; background: rgba(207,255,61,.06); }
body[data-theme="worship"] .hero__slogan strong { font-family: var(--sans); color: var(--red); }
body[data-theme="worship"] .hero__date { position: absolute; right: 48px; top: 42px; }
body[data-theme="worship"] .hero__scroll { display: block; position: absolute; left: 52px; bottom: 36px; font-size: 9px; letter-spacing: 2px; color: #777; }
body[data-theme="worship"] .nav { top: 10px; margin: 0 0 28px; padding: 8px; justify-content: center; border: 1px solid #30332d; border-radius: 16px; background: rgba(17,18,16,.9); }
body[data-theme="worship"] .nav a { color: #b4b7ae; }
body[data-theme="worship"] .nav a:hover { color: #111; background: var(--red); }
body[data-theme="worship"] main { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
body[data-theme="worship"] .card { margin: 0; }
body[data-theme="worship"] #order, body[data-theme="worship"] #notice, body[data-theme="worship"] #groups, body[data-theme="worship"] #leaders { grid-column: 1 / -1; }
body[data-theme="worship"] .card__head { border-color: #35382f; }
body[data-theme="worship"] .card__head h2 { font-family: var(--sans); font-weight: 800; }
body[data-theme="worship"] .order-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 28px; }
body[data-theme="worship"] .notice-list { columns: 2; column-gap: 36px; }
body[data-theme="worship"] .notice-list li { break-inside: avoid; }
body[data-theme="worship"] .notice-list li::before { color: #111; }
body[data-theme="worship"] .groups th { color: #111; }
body[data-theme="worship"] .groups tbody tr:nth-child(even), body[data-theme="worship"] .people-grid li { background: #20231d; }
body[data-theme="worship"] .footer { margin-top: 18px; background: #151712; border: 1px solid #30332d; }

/* 04 — ORIGINAL PRINT BULLETIN (첨부 주보 재해석) */
body[data-theme="bulletin"] {
  --red: #e85f61; --red-soft: #f08d89; --coral-bg: #fff3ec; --ink: #111;
  --ink-soft: #555; --line: #efaaa7; --card: #fff; --shadow: none; --radius: 0;
  background: #e9e9e9; font-family: var(--serif);
}
body[data-theme="bulletin"] .page { max-width: 1180px; margin: 28px auto 70px; padding: 28px 38px 45px; background: #fff; box-shadow: 0 8px 40px rgba(0,0,0,.12); }
body[data-theme="bulletin"] .hero {
  min-height: 320px; margin: 0; padding: 46px 50px; border-radius: 0; text-align: left;
  color: #111; background: #fff; border-bottom: 1px solid var(--red);
}
body[data-theme="bulletin"] .hero::before { content: "ONE WAY\A JESUS"; white-space: pre; position: absolute; right: 5%; top: 52px; color: #292929; font: 900 76px/.75 var(--sans); letter-spacing: -6px; }
body[data-theme="bulletin"] .hero::after { content: "오직예수"; inset: 112px 7% auto auto; width: 180px; padding: 7px 0; background: #fff; border: 1px solid #222; border-radius: 50%; color: #111; text-align: center; font: 700 17px var(--serif); transform: rotate(-3deg); }
body[data-theme="bulletin"] .hero__edition { display: block; font-size: 11px; letter-spacing: 2px; color: var(--red); }
body[data-theme="bulletin"] .hero__eyebrow { margin-top: 42px; color: #111; opacity: 1; }
body[data-theme="bulletin"] .hero__title { max-width: 580px; font-size: 38px; }
body[data-theme="bulletin"] .hero__meta { font-size: 13px; }
body[data-theme="bulletin"] .hero__slogan { padding: 0; border: 0; border-radius: 0; background: none; color: #9f007f; }
body[data-theme="bulletin"] .hero__date { position: absolute; right: 50px; bottom: 24px; color: #111; }
body[data-theme="bulletin"] .nav { margin: 0 0 20px; padding: 9px 0; justify-content: center; background: #fff; border-bottom: 1px solid var(--red); }
body[data-theme="bulletin"] .nav a { padding: 5px 15px; border-radius: 0; color: #111; font-size: 12px; }
body[data-theme="bulletin"] main { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 40px; }
body[data-theme="bulletin"] .card { margin: 0; padding: 28px 8px; border-bottom: 1px solid var(--red); }
body[data-theme="bulletin"] .card__head { margin-bottom: 20px; border-width: 1px; }
body[data-theme="bulletin"] .card__head h2 { color: #111; font-size: 21px; }
body[data-theme="bulletin"] .order-list li { padding: 8px 0; border-color: #e8c8c6; }
body[data-theme="bulletin"] .order-list__title, body[data-theme="bulletin"] .schedule-list__date { color: var(--red); }
body[data-theme="bulletin"] .notice-list li { padding-top: 8px; padding-bottom: 8px; }
body[data-theme="bulletin"] .notice-list li::before { top: 8px; width: 22px; height: 22px; border-radius: 0; background: transparent; color: #111; }
body[data-theme="bulletin"] #groups, body[data-theme="bulletin"] #leaders { grid-column: 1 / -1; }
body[data-theme="bulletin"] .groups th { padding: 6px 10px; border-radius: 0 !important; background: #fee4d9; color: #111; text-align: center; }
body[data-theme="bulletin"] .groups td { padding: 5px 10px; border-bottom: 1px dotted var(--red); }
body[data-theme="bulletin"] .people-grid li { border: 0; border-bottom: 1px dotted var(--red); border-radius: 0; background: transparent; }
body[data-theme="bulletin"] .footer { margin-top: 35px; border-top: 1px solid var(--red); border-radius: 0; background: #fff; color: #111; }
body[data-theme="bulletin"] .footer__site { color: #111; font-size: 22px; }

/* 05 — OCEAN / ONE WAY */
body[data-theme="ocean"] {
  --red: #007d9b; --red-soft: #22bdd0; --coral-bg: #e8f9fb; --ink: #12343b;
  --ink-soft: #64848a; --line: #c4e6e9; --card: rgba(255,255,255,.94); --shadow: 0 14px 36px rgba(0,91,115,.12); --radius: 26px;
  background: linear-gradient(180deg,#9de8ef 0,#eefcfc 680px,#eaf5f5 100%);
}
body[data-theme="ocean"] .page { max-width: 820px; }
body[data-theme="ocean"] .hero { min-height: 590px; margin-bottom: 16px; padding: 55px 42px; border-radius: 0 0 80px 80px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(170deg,#006f8f 0 42%,#009db2 42% 56%,#e5c69d 56%); text-align: left; }
body[data-theme="ocean"] .hero::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(ellipse at 70% 42%, transparent 0 24px,rgba(255,255,255,.18) 25px 27px); }
body[data-theme="ocean"] .hero::after { content: "ONE WAY"; inset: 90px auto auto 35px; background: none; color: rgba(255,255,255,.9); font: 900 66px/1 var(--sans); transform: rotate(-5deg); }
body[data-theme="ocean"] .hero__edition { display: block; position: absolute; top: 36px; right: 40px; font-size: 10px; letter-spacing: 2px; }
body[data-theme="ocean"] .hero__eyebrow { position: relative; color: #006f8f; opacity: 1; font-weight: 700; }
body[data-theme="ocean"] .hero__title { position: relative; max-width: 610px; color: #083c47; font-size: 48px; }
body[data-theme="ocean"] .hero__meta, body[data-theme="ocean"] .hero__date { position: relative; color: #083c47; opacity: .85; }
body[data-theme="ocean"] .hero__slogan { position: relative; align-items: flex-start; border: 0; background: rgba(255,255,255,.7); color: #006f8f; }
body[data-theme="ocean"] .nav { border-radius: 999px; background: rgba(255,255,255,.8); }
body[data-theme="ocean"] .nav a:hover { color: #fff; background: var(--red); }
body[data-theme="ocean"] .card__head { border-color: #68d5de; }
body[data-theme="ocean"] .notice-list li::before, body[data-theme="ocean"] .groups th { background: linear-gradient(135deg,#007d9b,#22bdd0); }
body[data-theme="ocean"] .footer { background: linear-gradient(135deg,#064957,#07343e); border-radius: 40px; }

/* 06 — BENTO APP */
body[data-theme="bento"] {
  --red: #5b4cf2; --red-soft: #8579ff; --coral-bg: #f0eeff; --ink: #201d35;
  --ink-soft: #77738a; --line: #dedaf5; --card: #fff; --shadow: 0 5px 18px rgba(51,38,115,.08); --radius: 24px;
  background: #f3f1fa;
}
body[data-theme="bento"] .page { max-width: 1080px; padding: 20px 22px 60px; }
body[data-theme="bento"] .hero { min-height: 420px; margin: 0 0 18px; padding: 50px; border-radius: 32px; text-align: left; background: #6657ff; }
body[data-theme="bento"] .hero::before { content: "+"; position: absolute; right: 8%; top: -80px; color: rgba(255,255,255,.12); font: 300 460px/1 var(--sans); }
body[data-theme="bento"] .hero::after { content: "WEEK 27"; inset: auto 48px 42px auto; background: #ffdd65; color: #201d35; padding: 10px 16px; border-radius: 999px; font: 800 12px var(--sans); }
body[data-theme="bento"] .hero__edition { display: block; font-size: 10px; letter-spacing: 2px; color: #dcd8ff; }
body[data-theme="bento"] .hero__title { max-width: 640px; font-family: var(--sans); font-size: 52px; font-weight: 800; }
body[data-theme="bento"] .hero__slogan { align-items: flex-start; }
body[data-theme="bento"] .hero__date { text-align: left; }
body[data-theme="bento"] .nav { top: 8px; margin: 0 0 18px; justify-content: center; border-radius: 20px; background: rgba(255,255,255,.9); }
body[data-theme="bento"] main { display: grid; grid-template-columns: repeat(12,1fr); gap: 18px; }
body[data-theme="bento"] .card { grid-column: span 6; margin: 0; }
body[data-theme="bento"] #order, body[data-theme="bento"] #notice, body[data-theme="bento"] #groups, body[data-theme="bento"] #leaders { grid-column: span 12; }
body[data-theme="bento"] .card__head { border: 0; }
body[data-theme="bento"] .card__head h2 { color: var(--ink); font-family: var(--sans); font-weight: 800; }
body[data-theme="bento"] .card__tag { padding: 5px 10px; border-radius: 999px; background: var(--coral-bg); color: var(--red); }
body[data-theme="bento"] .notice-list { columns: 2; column-gap: 30px; }
body[data-theme="bento"] .notice-list li { break-inside: avoid; }
body[data-theme="bento"] .groups th { background: var(--ink); }
body[data-theme="bento"] .footer { border-radius: 30px; background: #201d35; }

/* 07 — SOFT PASTEL POP */
body[data-theme="pastel"] {
  --red: #e64f8c; --red-soft: #ff86b5; --coral-bg: #fff0f6; --ink: #3e2f42;
  --ink-soft: #8d788f; --line: #f1d6e2; --card: rgba(255,255,255,.9); --shadow: 0 12px 28px rgba(214,74,133,.1); --radius: 30px;
  background: linear-gradient(145deg,#fff2c7,#ffeaf4 42%,#e8e0ff 100%);
}
body[data-theme="pastel"] .page { max-width: 780px; }
body[data-theme="pastel"] .hero { min-height: 550px; margin-bottom: 18px; padding: 55px 35px; border-radius: 0 0 120px 120px; color: var(--ink); background: linear-gradient(145deg,#ffd6e7,#d9ccff); }
body[data-theme="pastel"] .hero::before { content: "✦"; position: absolute; right: 8%; top: 42px; color: #fff; font-size: 130px; transform: rotate(15deg); }
body[data-theme="pastel"] .hero::after { content: "♡"; inset: auto auto 35px 7%; background: #fff8bc; width: 90px; height: 90px; border-radius: 50%; display: grid; place-items: center; color: #e64f8c; font-size: 42px; transform: rotate(-12deg); }
body[data-theme="pastel"] .hero__edition { display: block; font-size: 10px; color: var(--red); letter-spacing: 2px; }
body[data-theme="pastel"] .hero__eyebrow { margin-top: 85px; color: var(--red); opacity: 1; font-weight: 700; }
body[data-theme="pastel"] .hero__title { font-family: var(--sans); font-size: 48px; font-weight: 800; }
body[data-theme="pastel"] .hero__slogan { color: #fff; background: #e64f8c; border: 0; border-radius: 999px; }
body[data-theme="pastel"] .hero__date { color: var(--ink); }
body[data-theme="pastel"] .nav { border-radius: 999px; background: rgba(255,255,255,.72); }
body[data-theme="pastel"] .card { border: 1px solid rgba(255,255,255,.9); }
body[data-theme="pastel"] .card__head { border: 0; }
body[data-theme="pastel"] .card__head h2 { font-family: var(--sans); font-weight: 800; }
body[data-theme="pastel"] .notice-list li::before { background: #e64f8c; }
body[data-theme="pastel"] .groups th { background: #765fc5; }
body[data-theme="pastel"] .footer { background: #4b3654; border-radius: 60px; }

/* 08 — BLUEPRINT / GRID */
body[data-theme="blueprint"] {
  --red: #8ec5ff; --red-soft: #4e90ff; --coral-bg: rgba(255,255,255,.07); --ink: #f3f8ff;
  --ink-soft: #afc7e4; --line: rgba(255,255,255,.18); --card: rgba(7,52,108,.76); --shadow: 0 0 0 1px rgba(255,255,255,.25); --radius: 2px;
  color: var(--ink); background-color: #063a78;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px);
  background-size: 24px 24px;
}
body[data-theme="blueprint"] .page { max-width: 940px; padding-top: 20px; }
body[data-theme="blueprint"] .hero { min-height: 520px; margin: 0 0 18px; padding: 54px; border: 1px solid #8ec5ff; border-radius: 2px; text-align: left; background: rgba(4,42,91,.84); }
body[data-theme="blueprint"] .hero::before { content: ""; position: absolute; right: 6%; top: 14%; width: 260px; height: 260px; border: 1px solid #8ec5ff; border-radius: 50%; box-shadow: inset 0 0 0 42px rgba(142,197,255,.04),inset 0 0 0 84px rgba(142,197,255,.04); }
body[data-theme="blueprint"] .hero::after { content: "+  JESUS  +"; inset: auto 5% 35px auto; background: none; color: #8ec5ff; font: 700 13px var(--sans); letter-spacing: 4px; }
body[data-theme="blueprint"] .hero__edition { display: block; font: 600 10px var(--sans); letter-spacing: 3px; color: var(--red); }
body[data-theme="blueprint"] .hero__eyebrow { margin-top: 80px; color: var(--red); opacity: 1; }
body[data-theme="blueprint"] .hero__title { position: relative; max-width: 590px; font-family: var(--sans); font-size: 54px; font-weight: 300; letter-spacing: -3px; }
body[data-theme="blueprint"] .hero__slogan { align-items: flex-start; border-radius: 0; background: rgba(142,197,255,.08); }
body[data-theme="blueprint"] .hero__date { text-align: left; }
body[data-theme="blueprint"] .nav { margin: 0 0 24px; border: 1px solid var(--line); background: rgba(4,42,91,.9); }
body[data-theme="blueprint"] .nav a { color: #d8e9fb; border-radius: 0; }
body[data-theme="blueprint"] .nav a:hover { color: #063a78; background: #8ec5ff; }
body[data-theme="blueprint"] .card { border: 1px solid rgba(142,197,255,.45); backdrop-filter: blur(4px); }
body[data-theme="blueprint"] .card__head { border-color: #8ec5ff; }
body[data-theme="blueprint"] .card__head h2 { font-family: var(--sans); font-weight: 400; letter-spacing: 2px; }
body[data-theme="blueprint"] .notice-list li::before, body[data-theme="blueprint"] .groups th { background: #8ec5ff; color: #063a78; }
body[data-theme="blueprint"] .people-grid li, body[data-theme="blueprint"] .groups tbody tr:nth-child(even) { background: rgba(142,197,255,.08); }
body[data-theme="blueprint"] .footer { border: 1px solid #8ec5ff; border-radius: 2px; background: #042a5b; }

@media (max-width: 680px) {
  .theme-switcher { bottom: 10px; }
  .theme-switcher__label, .theme-switcher button b { display: none; }
  .theme-switcher button { padding: 0 12px; }
  body[data-theme="youth"] .hero { min-height: 540px; padding: 50px 24px 42px; }
  body[data-theme="youth"] .hero__title { font-size: 43px; }
  body[data-theme="youth"] .hero__date { position: static; color: #111; }
  body[data-theme="journal"] .page { padding: 12px 12px 50px; }
  body[data-theme="journal"] .hero { min-height: 540px; padding: 65px 36px 50px; }
  body[data-theme="journal"] .hero__title { font-size: 36px; }
  body[data-theme="journal"] .hero__date { position: static; }
  body[data-theme="journal"] main { padding: 0; }
  body[data-theme="worship"] .page { padding: 10px 10px 50px; }
  body[data-theme="worship"] .hero { min-height: 560px; padding: 36px 26px; }
  body[data-theme="worship"] .hero__edition { left: 26px; top: 30px; }
  body[data-theme="worship"] .hero__title { font-size: 46px; letter-spacing: -3px; }
  body[data-theme="worship"] .hero__date { position: static; }
  body[data-theme="worship"] .hero__scroll { left: 26px; }
  body[data-theme="worship"] main { display: block; }
  body[data-theme="worship"] .card { margin-bottom: 14px; }
  body[data-theme="worship"] .order-list { display: block; }
  body[data-theme="worship"] .notice-list { columns: 1; }
  body[data-theme="bulletin"] .page { margin: 0; padding: 10px 16px 60px; }
  body[data-theme="bulletin"] .hero { min-height: 500px; padding: 48px 20px; }
  body[data-theme="bulletin"] .hero::before { right: -10px; top: 62px; font-size: 52px; opacity: .18; }
  body[data-theme="bulletin"] .hero::after { display: none; }
  body[data-theme="bulletin"] .hero__title { font-size: 33px; }
  body[data-theme="bulletin"] .hero__date { position: static; }
  body[data-theme="bulletin"] main { display: block; }
  body[data-theme="ocean"] .hero { min-height: 540px; padding: 45px 24px; border-radius: 0 0 55px 55px; }
  body[data-theme="ocean"] .hero::after { top: 90px; left: 20px; font-size: 44px; }
  body[data-theme="ocean"] .hero__title { font-size: 39px; }
  body[data-theme="bento"] .page { padding: 10px 10px 60px; }
  body[data-theme="bento"] .hero { min-height: 500px; padding: 36px 25px; }
  body[data-theme="bento"] .hero__title { font-size: 41px; }
  body[data-theme="bento"] main { display: block; }
  body[data-theme="bento"] .card { margin-bottom: 14px; }
  body[data-theme="bento"] .notice-list { columns: 1; }
  body[data-theme="pastel"] .hero { min-height: 530px; padding: 45px 24px; border-radius: 0 0 65px 65px; }
  body[data-theme="pastel"] .hero__title { font-size: 39px; }
  body[data-theme="blueprint"] .page { padding: 10px 10px 60px; }
  body[data-theme="blueprint"] .hero { min-height: 520px; padding: 38px 25px; }
  body[data-theme="blueprint"] .hero::before { width: 190px; height: 190px; right: -30px; }
  body[data-theme="blueprint"] .hero__title { font-size: 40px; }
}
