/* Neighbors in the Word - shared styles
   Palette: deep teal and gold on warm white, with a dark mode.
   (Variable names "rose" and "teal" are kept from the original site so the pages don't need changes:
   "rose" = the main teal, "teal" = the dark ink accent, "link" = a deeper teal for small text on white.
   "gold" is the second color, used for faith tags and Common ground.) */
:root {
  --bg: #f6f3ee;
  --card: #ffffff;
  --ink: #14201f;
  --muted: #566260;
  --line: #e2ddd4;
  --rose: #1e6b72;          /* teal: fills, meter, map */
  --rose-strong: #1e6b72;   /* teal: buttons and highlights (white text on top) */
  --rose-soft: #dfeeed;     /* pale teal: tiles, chips */
  --link: #175a60;          /* deeper teal for links and small text */
  --teal: #1b2a29;          /* dark ink accent */
  --teal-soft: #ece8e1;     /* light warm gray */
  --track: #e4e0d8;
  --on-strong: #ffffff;     /* text on teal */
  --gold: #c99a2e;
  --gold-soft: #f6ecd2;
  --gold-ink: #7c5c12;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 8px 24px rgba(0, 0, 0, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1616;
    --card: #172020;
    --ink: #e9f0ef;
    --muted: #9fb0ae;
    --line: #283535;
    --rose: #4fb3ba;
    --rose-strong: #4fb3ba;
    --rose-soft: #173233;
    --link: #77c9cf;
    --teal: #eef3f2;
    --teal-soft: #1f2a2a;
    --track: #21393a;
    --on-strong: #081414;
    --gold: #e2b648;
    --gold-soft: #352a10;
    --gold-ink: #f0cd73;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 Inter, system-ui, -apple-system, sans-serif;
}
.wrap { max-width: 680px; margin: 0 auto; padding: 12px 16px 48px; }

/* ---------- Top menu (built by common.js) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.langbar { max-width: 680px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 6px 16px 0; }
/* Logo: book icon with the name stacked beside it */
.langbar .brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); min-width: 0; }
.langbar .brand img { width: 38px; height: 38px; border-radius: 10px; flex: none; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.langbar .brand-name { font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 18px; line-height: 1; letter-spacing: -.01em; }
.langbar .brand-name span { display: block; white-space: nowrap; }
.langbar .brand-name .b2 { color: var(--link); }
.langbar { padding-top: 8px; }
@media (max-width: 340px) { .langbar .brand img { width: 32px; height: 32px; } .langbar .brand-name { font-size: 16px; } }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--card); }
.lang button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .04em; padding: 9px 14px; color: var(--muted); cursor: pointer; }
.lang button.on { background: var(--rose-strong); color: var(--on-strong); }
.menu { max-width: 680px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 8px 4px; }
.menu a, .menu .menu-open {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 600;
  padding: 6px 2px 8px; border-radius: 12px; position: relative;
}
.menu a svg, .menu .menu-open svg { width: 24px; height: 24px; }
.menu .menu-open { border: 0; background: none; font-family: inherit; line-height: inherit; cursor: pointer; }
.menu .menu-open:active { background: var(--rose-soft); }

/* Full menu (opens from the Menu button) */
html.menu-lock, html.menu-lock body { overflow: hidden; }
.site-menu { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .45); display: none; }
.site-menu.open { display: block; }
.sm-inner { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--bg); overflow-y: auto; padding: 0 16px 32px; box-shadow: -8px 0 30px rgba(0, 0, 0, .25); animation: smIn .2s ease-out; }
@keyframes smIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sm-inner { animation: none; } }
.sm-head { position: sticky; top: 0; background: var(--bg); display: flex; justify-content: space-between; align-items: center; padding: 14px 0 10px; border-bottom: 1px solid var(--line); z-index: 1; }
.sm-head b { font-family: Fraunces, Georgia, serif; font-size: 20px; }
.sm-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 18px; cursor: pointer; }
.sm-group { padding: 14px 0 6px; border-bottom: 1px solid var(--line); }
.sm-page { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: var(--ink); text-decoration: none; padding: 6px 0; }
.sm-page svg { width: 24px; height: 24px; color: var(--link); }
.sm-page.on { color: var(--link); }
.sm-items { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 6px 34px; }
.sm-items a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--link); background: var(--rose-soft); padding: 10px 14px; border-radius: 999px; }
.menu a.on { color: var(--link); }
.menu a.on::after {
  content: ""; position: absolute; bottom: -4px; left: 28%; right: 28%; height: 3px;
  border-radius: 3px 3px 0 0; background: var(--rose-strong);
}
.menu a:active { background: var(--rose-soft); }

/* Jump links to sections on the current page */
.jump { max-width: 680px; margin: 0 auto; display: flex; gap: 6px; overflow-x: auto; padding: 8px 16px; scrollbar-width: none; border-top: 1px solid var(--line); }
.jump::-webkit-scrollbar { display: none; }
.jump a {
  flex: none; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink);
  padding: 9px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); white-space: nowrap;
}
.jump a.on { background: var(--rose-soft); border-color: transparent; color: var(--link); }
/* Fade and arrows at the ends of the jump row when it has more to scroll */
.jump-wrap { position: relative; max-width: 680px; margin: 0 auto; }
.jump-more { position: absolute; top: 1px; bottom: 0; width: 52px; border: 0; padding: 0; cursor: pointer;
  font-size: 30px; font-weight: 700; line-height: 1; color: var(--link); display: flex; align-items: center; }
.jump-more[hidden] { display: none; }
.jump-more.right { right: 0; justify-content: flex-end; padding-right: 8px; background: linear-gradient(to right, transparent, var(--bg) 55%); }
.jump-more.left { left: 0; justify-content: flex-start; padding-left: 8px; background: linear-gradient(to left, transparent, var(--bg) 55%); }
section[id], details[id], [data-section] { scroll-margin-top: 160px; }

/* "Go to" links inside cards that point to other pages or sections */
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.go {
  display: inline-flex; align-items: center; gap: 4px; text-decoration: none;
  font-size: 15px; font-weight: 600; color: var(--link);
  padding: 10px 14px; border-radius: 999px; background: var(--rose-soft);
}
.go::after { content: "\203A"; font-size: 18px; line-height: 1; margin-left: 2px; }
.go.teal { color: var(--teal); background: var(--teal-soft); }
.next-page { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.next-page a { flex: 1; text-decoration: none; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; font-size: 15px; }
.next-page a small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.next-page a.fwd { text-align: right; }

header { text-align: center; padding: 14px 0 6px; }
header.page { padding: 18px 0 2px; }
header.page h1 { font-size: clamp(26px, 6.5vw, 34px); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 600; color: var(--link); }
h1 { font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: clamp(28px, 7vw, 40px); line-height: 1.1; margin: 6px 0 8px; }
h2 { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 22px; margin: 0 0 4px; }
.sub { color: var(--muted); margin: 0; }
.chip {
  display: inline-block; margin-top: 14px; padding: 8px 14px; border-radius: 999px;
  background: var(--teal-soft); color: var(--teal); font-weight: 600; font-size: 14px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px; margin-top: 16px; box-shadow: var(--shadow);
}
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.hint { color: var(--muted); font-size: 15px; }

/* Meter */
.big { font-family: Fraunces, Georgia, serif; font-size: 44px; font-weight: 700; line-height: 1; margin: 14px 0 2px; }
.big small { font-family: Inter, sans-serif; font-size: 16px; font-weight: 500; color: var(--muted); }
.bar { height: 18px; background: var(--track); border-radius: 999px; overflow: hidden; margin: 12px 0 8px; }
.bar > span { display: block; height: 100%; width: 0; background: var(--rose); border-radius: 999px; transition: width 1.2s cubic-bezier(.2,.7,.2,1); }
.meter-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.meter-row b { color: var(--ink); }

/* Forms */
label { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
textarea { resize: vertical; min-height: 96px; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--rose); outline-offset: 1px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row > *, .row-3 > *, .row-verse > * { min-width: 0; }
input[type="date"] { min-width: 0; display: block; -webkit-appearance: none; appearance: none; min-height: 48px; }
.row-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.row-verse { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 10px; }
.btn {
  width: 100%; margin-top: 18px; padding: 14px; border: 0; border-radius: 12px;
  background: var(--rose-strong); color: var(--on-strong); font: inherit; font-weight: 600; font-size: 17px; cursor: pointer;
}
.btn:disabled { opacity: .6; cursor: wait; }
.btn.ghost { background: transparent; color: var(--link); border: 1px solid var(--line); }
.msg { margin-top: 12px; font-size: 15px; }
.msg.ok { padding: 12px 14px; border-radius: 12px; background: var(--teal-soft); color: var(--ink); font-weight: 600; scroll-margin-top: 160px; }
.msg.err { color: var(--link); font-weight: 500; }
.empty { color: var(--muted); font-size: 14px; font-style: italic; }
footer { text-align: center; color: var(--muted); font-size: 13px; margin-top: 28px; }

/* ---------- Today's reading ---------- */
.today { margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.today .tt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--link); }
.today .tr { font-family: Fraunces, Georgia, serif; font-size: 22px; font-weight: 700; line-height: 1.25; margin-top: 2px; }
.today .tn { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ---------- Streak dots ---------- */
.streak { margin-top: 14px; }
.streak-label { font-weight: 600; font-size: 15px; }
.dots { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; margin-top: 8px; max-width: 360px; }
.dot { aspect-ratio: 1; border-radius: 50%; background: var(--card); border: 1.5px solid var(--line); }
.dot.on { background: var(--rose); border-color: var(--rose); }
.dots-note { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- Badges ---------- */
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.badge { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 12px; background: var(--card); border: 1px dashed var(--line); text-align: center; }
.badge .bi { font-size: 24px; line-height: 1.1; filter: grayscale(1); opacity: .35; }
.badge .bn { font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.2; }
.badge.on { border-style: solid; border-color: transparent; background: var(--rose-soft); }
.badge.on .bi { filter: none; opacity: 1; }
.badge.on .bn { color: var(--ink); }
.badges.compact { grid-template-columns: repeat(9, 1fr); gap: 4px; }
.badges.compact .badge { padding: 6px 0; border: 0; background: none; }
.badges.compact .bn { display: none; }
.badges.compact .bi { font-size: 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Celebration banner ---------- */
.celebrate {
  margin-top: 16px; padding: 14px 16px; border-radius: 14px; text-align: center; font-weight: 600;
  background: var(--rose-strong); color: var(--on-strong); animation: pop .5s cubic-bezier(.2,1.4,.4,1);
}
.celebrate small { display: block; font-weight: 400; opacity: .9; margin-top: 2px; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .celebrate { animation: none; } }

/* ---------- Amen button ---------- */
.amen {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card);
  color: var(--muted); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.amen .ai { font-size: 16px; line-height: 1; }
.amen.on { background: var(--teal-soft); color: var(--teal); border-color: transparent; }
.amen:disabled { opacity: .6; cursor: default; }
.amen.bump { animation: pop .35s ease; }

/* ---------- Site footer ---------- */
.site-foot { border-top: 1px solid var(--line); margin-top: 28px; padding: 18px 16px 28px; font-size: 13px; color: var(--muted); }
.sf-row { max-width: 680px; margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; }
.sf-left { text-align: left; }
.sf-right { text-align: right; }
.site-foot a { color: var(--link); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; display: inline-block; padding: 6px 0; }
.site-foot a:hover { text-decoration: underline; }
.sf-note { max-width: 680px; margin: 14px auto 0; text-align: center; font-size: 12px; }
.wrap { padding-bottom: 8px; }

/* ---------- Policy pages ---------- */
.policy h2 { margin-top: 22px; font-size: 20px; }
.policy h2:first-child { margin-top: 0; }
.policy p, .policy li { font-size: 15px; line-height: 1.6; }
.policy ul { padding-left: 20px; }
.policy a { color: var(--link); font-weight: 600; }

/* ---------- Helper notes and Help link ---------- */
.tip {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 10px 12px;
  border-radius: 12px; background: var(--rose-soft); color: var(--ink); font-size: 15px; line-height: 1.5; text-align: left;
}
.tip .ti {
  flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px;
  background: var(--rose-strong); color: var(--on-strong); font: italic 700 13px/1 Georgia, serif;
}
.tip b { color: var(--link); }
.langbar-r { display: flex; align-items: center; gap: 8px; }
.help-pill {
  display: inline-flex; align-items: center; gap: 5px; text-decoration: none; font-size: 12px; font-weight: 700;
  color: var(--link); border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 12px 8px 8px; font-size: 13px;
}
.help-pill span { width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; background: var(--rose-strong); color: var(--on-strong); font-size: 11px; }
.help-pill[aria-current] { background: var(--rose-soft); border-color: transparent; }
.tip[hidden] { display: none; }

/* ---------- Back to top button ---------- */
.to-top {
  position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 20;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--rose-strong); color: var(--on-strong);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (min-width: 900px) { .to-top { right: calc(50% - 340px - 66px); } }
@media print { .to-top { display: none !important; } }

/* ---------- Practice week note ---------- */
.practice-note { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--teal); color: var(--card); font-size: 15px; line-height: 1.5; }
.practice-note b { color: var(--rose); }

/* ---------- Pop-up message ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .55); display: grid; place-items: center; padding: 16px; }
.modal { background: var(--card); color: var(--ink); border-radius: 18px; padding: 22px 20px 18px; max-width: 420px; width: 100%; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.modal h2 { margin: 0 0 8px; }
.modal p { margin: 0 0 10px; font-size: 16px; line-height: 1.5; }
.modal a:not(.btn) { color: var(--link); font-weight: 700; overflow-wrap: anywhere; }
.modal-acts { display: grid; gap: 10px; margin-top: 14px; }
.modal-acts .btn { margin-top: 0; text-align: center; text-decoration: none; display: block; }

/* ---------- Easier tapping on phones ---------- */
input[type="checkbox"], input[type="radio"] { width: 24px; height: 24px; flex: none; accent-color: var(--rose-strong); }

/* Book badges */
.shelf { margin-top: 14px; }
.shelf-h { font-weight: 600; margin-bottom: 8px; }
.bks { display: flex; flex-wrap: wrap; gap: 6px; }
.bk { position: relative; overflow: hidden; font-size: 13px; padding: 5px 9px; border-radius: 8px; border: 1.5px solid var(--line); color: var(--muted); background: var(--card); }
.bk.done { background: var(--rose); border-color: var(--rose); color: var(--on-strong); font-weight: 600; }
.bk.now { border-color: var(--rose); color: var(--ink); font-weight: 600; }
.bk i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--rose); }

/* Book badges on family and friend cards */
.kid-books { margin: 10px 0 4px; }
.kid-books summary { cursor: pointer; font-weight: 600; padding: 8px 0; list-style: none; }
.kid-books summary::-webkit-details-marker { display: none; }
.kid-books summary::after { content: "\203A"; margin-left: 8px; color: var(--link); display: inline-block; transition: transform .2s; }
.kid-books[open] summary::after { transform: rotate(90deg); }
.kid-books .bks { margin-top: 4px; }

/* Family card (only the parent sees it) */
.fam-card { border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin: 4px 0 16px; background: var(--rose-soft); }
.fam-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.fam-top b { font-size: 18px; }
.fam-top .hint { font-size: 12px; }
.fam-big { font-family: Fraunces, Georgia, serif; font-size: 28px; font-weight: 700; margin-top: 6px; }
.fam-big small { font-family: Inter, sans-serif; font-size: 14px; font-weight: 500; color: var(--muted); }
.fam-card .bar { margin: 6px 0 10px; background: var(--card); }
.fam-streak { font-weight: 600; }
.fam-status { font-size: 14px; margin-top: 4px; color: var(--ink); }
.fam-grid { margin-top: 12px; display: grid; gap: 10px; }
.fg-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; justify-items: center; }
.fg-head span { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); }
.fg-head span.fg-today { color: var(--link); }
.fg-line { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.fg-name { font-size: 15px; font-weight: 600; }
.fg-dot { width: 26px; height: 26px; display: grid; place-items: center; font-style: normal; font-size: 15px; font-weight: 800; line-height: 1; border-radius: 6px; pointer-events: none; user-select: none; }
.fg-dot.on { color: var(--link); font-size: 20px; }
.fg-dot.miss { color: var(--muted); font-weight: 600; }
.fg-dot.future { visibility: hidden; }
.fg-legend { display: flex; gap: 16px; justify-content: center; margin-top: 2px; font-size: 13px; color: var(--muted); }
.fg-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fg-legend .fg-dot { width: 16px; height: 16px; font-size: 15px; }
.fg-pct { font-size: 13px; font-weight: 600; text-align: right; color: var(--muted); }
.fam-pace { margin: 12px 0 0; padding-left: 20px; font-size: 14px; }
.fam-pace li { margin: 2px 0; }
.fam-card .kid-books { margin-top: 10px; }

/* Home: the family card sits in its own section */
.fam-section .fam-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.fam-section .fam-head h2 { margin: 0; }
.fam-section .fam-head .hint { font-size: 12px; }
.fam-section .fam-card { border: 0; padding: 0; margin: 4px 0 0; background: none; }
.fam-section .fam-card .fam-top { display: none; }
.fam-section .fam-card .bar { background: var(--track); }
.fam-friends { margin-top: 10px; font-weight: 600; font-size: 15px; }

/* Anything marked hidden stays hidden, even if a class gives it a display style */
[hidden] { display: none !important; }

/* Helper notes switch (Menu) */
html.no-notes .tip, html.no-notes [data-tip], html.no-notes details.how { display: none !important; }
.sm-notes { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sm-notes b { display: block; font-size: 17px; }
.sm-notes small { display: block; color: var(--muted); font-size: 13px; }
.sm-switch { flex: none; display: flex; border: 1px solid var(--line); border-radius: 999px; background: var(--card); padding: 3px; cursor: pointer; font: inherit; }
.sm-switch span { min-width: 44px; padding: 7px 10px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); }
.sm-switch[aria-checked="true"] .sw-on, .sm-switch[aria-checked="false"] .sw-off { background: var(--rose-strong); color: var(--on-strong); }

/* Big orange "Together we read" box (Today, Progress, Recap) */
.hero { text-align: center; background: var(--rose-strong); color: var(--on-strong); border-color: transparent; }
.hero h2.label { font-family: Inter, sans-serif; margin: 0; color: inherit; }
.hero .label { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 600; opacity: .85; }
.hero .num { font-family: Fraunces, Georgia, serif; font-size: clamp(48px, 15vw, 72px); font-weight: 700; line-height: 1; margin: 6px 0 2px; }
.hero .unit { font-size: 16px; opacity: .9; }
.hero .bar { background: rgba(255,255,255,.3); margin: 16px 0 6px; }
.hero .bar > span { background: var(--on-strong); }
.hero .goal { font-size: 15px; opacity: .95; }
.hero .hero-meta { font-size: 14px; opacity: .85; margin-top: 4px; }
.hero .tip { text-align: left; background: var(--gold-soft); color: var(--ink); }
.hero .tip b { color: var(--gold-ink); }
.hero-go { display: inline-block; margin-top: 10px; color: var(--on-strong); font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.hero.hero-sm .num { font-size: clamp(40px, 12vw, 56px); }
a.hero-link { display: block; text-decoration: none; color: inherit; }

/* Highlights tiles (Progress and Look Back) */
.hl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.hl-grid .tile { text-align: left; border-radius: 14px; padding: 14px; background: var(--card); border: 1px solid var(--line); }
.hl-grid .tile .n { font-family: Fraunces, Georgia, serif; font-size: 28px; font-weight: 700; line-height: 1.1; }
.hl-grid .tile .l { font-size: 13px; color: var(--muted); margin-top: 2px; }
.hl-grid .tile.wide { grid-column: span 2; }
.hl-grid .tile .e { font-size: 22px; }
/* Look Back is ready card */
.lb-card { text-align: center; border: 2px solid var(--rose-strong); }
.lb-card .lb-e { font-size: 34px; }
.lb-card h2 { margin: 4px 0 6px; }
.lb-card .btn { display: block; text-decoration: none; margin-top: 12px; }
.lb-card .tip { text-align: left; }

/* Welcome card on Today, right after signing up */
html.no-notes .welcome-card { display: none !important; }
.welcome-card { border: 2px solid var(--rose-strong); }
.welcome-card h2 { margin: 0 0 4px; }
.wl-list { display: grid; gap: 8px; margin: 12px 0 14px; }
.wl-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); text-decoration: none; color: var(--ink); }
.wl-item b { display: block; font-size: 16px; }
.wl-item small { display: block; color: var(--muted); font-size: 13px; }
.wl-item .go2 { color: var(--link); font-size: 22px; font-weight: 700; }
.welcome-card .btn { width: 100%; }

/* Quiz results by week (Progress and Organizer) */
.qw-head { font-weight: 600; margin: 8px 0 4px; min-height: 1.4em; }
.qw-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px -4px 0; padding: 0 4px 6px; }
.qw-chart { display: flex; align-items: flex-end; gap: 4px; min-height: 230px; padding-top: 34px; }
.qw-col { flex: 0 0 84px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.qw-pct { font-weight: 700; font-size: 15px; margin-bottom: 4px; white-space: nowrap; }
.qw-track { width: 40px; height: 150px; display: flex; align-items: flex-end; background: var(--track); border-radius: 10px; overflow: hidden; }
.qw-bar { width: 100%; background: var(--rose); border-radius: 10px 10px 0 0; transition: height .8s ease; height: 0; }
.qw-col.now .qw-bar { background: repeating-linear-gradient(135deg, var(--rose) 0 8px, color-mix(in srgb, var(--rose) 60%, transparent) 8px 16px); }
.qw-col.best .qw-pct::before { content: "\1F3C6"; display: block; font-size: 18px; line-height: 1.2; }
.qw-wk { font-size: 12px; font-weight: 600; margin-top: 6px; white-space: nowrap; }
.qw-ppl { font-size: 12px; color: var(--muted); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .qw-bar { transition: none; } }

/* ---------- Faith tags, ground rules, reports, and Common ground ---------- */
.faith-tag { display: inline-block; font-size: 11.5px; font-weight: 700; line-height: 1.5; padding: 1px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); margin-left: 6px; vertical-align: 1px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.rules { margin: 8px 0 0; padding-left: 22px; }
.rules li { margin: 0 0 6px; }
.rules-box { margin-top: 18px; padding: 14px 14px 10px; border-radius: 12px; background: var(--rose-soft); }
.rules-box h3 { margin: 0; font-size: 16px; }
.rules-box p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.report-link { border: 0; background: none; font: inherit; font-size: 13px; color: var(--muted); padding: 8px 4px; margin-left: auto; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; min-height: 36px; }
.report-box { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--teal-soft); font-size: 14px; }
.report-box b { display: block; margin-bottom: 6px; }
.report-box label { display: flex; gap: 10px; align-items: center; font-weight: 400; margin: 0; padding: 7px 0; font-size: 15px; }
.report-box label input { width: 20px; height: 20px; margin: 0; flex: none; }
.report-box .rb-row { display: flex; gap: 10px; margin-top: 8px; }
.report-box .rb-row .btn { margin: 0; flex: 1; padding: 10px; font-size: 15px; }
.report-box .rb-done { color: var(--ink); }
.cg-card { border-left: 5px solid var(--gold); }
.cg-list { list-style: none; margin: 8px 0 0; padding: 0; }
.cg-list li { padding: 10px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.cg-list li:first-child { border-top: 0; }
.cg-ref { font-weight: 700; color: var(--link); font-size: 17px; }
.cg-meta { font-size: 14px; }
.cg-dots { display: flex; gap: 4px; margin: 3px 0; }
.cg-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.cg-names { font-size: 12.5px; color: var(--muted); }
.cg-sum { font-size: 15px; margin: 4px 0 0; }
.cg-sum b { color: var(--gold-ink); }
.my-faith { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 15px; }
.my-faith .faith-tag { margin-left: 0; font-size: 13px; }
.faith-edit { margin-top: 10px; }
.faith-edit select, .faith-edit input { width: 100%; }
.faith-edit input { margin-top: 8px; }
/* Bible version label after a verse reference (tap to see the full name) */
.bible-tag { display: inline-block; border: 1px solid var(--line); background: var(--card); color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; line-height: 1.4; padding: 3px 9px; border-radius: 999px; margin: 12px 0 0 6px; vertical-align: middle; cursor: pointer; max-width: 100%; white-space: normal; text-align: left; }
span.bible-tag { cursor: default; }
.bible-pick { margin-top: 10px; }
.bible-pick select, .bible-pick input { width: 100%; }
.bible-pick input { margin-top: 8px; }

/* ---------- Scriptures of unity ---------- */
.uq { margin: 10px 0 0; }
.uq blockquote { margin: 0; font-family: Fraunces, Georgia, serif; font-size: 18px; line-height: 1.45; font-style: italic; color: var(--ink); }
.uq figcaption { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--link); }
.uq figcaption span { font-weight: 600; font-size: 11px; color: var(--muted); letter-spacing: .04em; margin-left: 4px; }
.uq.sm blockquote { font-size: 16px; }
.uq.sm figcaption { font-size: 13px; }
.uq.xs { margin-top: 4px; padding-left: 10px; border-left: 3px solid var(--gold); }
.uq.xs blockquote { font-size: 14px; color: var(--muted); }
.uq.xs figcaption { font-size: 12px; margin-top: 2px; }
.rules li { margin-bottom: 12px; }
.vod { border-top: 4px solid var(--gold); }
.vod .lbl { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--gold-ink); }
.vod .uq blockquote { font-size: 21px; }
.sf-verse { max-width: 680px; margin: 12px auto 0; }
.sf-verse .uq { margin: 0; }
.report-box .uq { margin: 0 0 10px; }
.ok-verse .uq { margin-top: 8px; }

/* ---------- Invite someone ---------- */
.invite-card { border-left: 5px solid var(--rose); }
.invite-card h2 { margin: 0 0 4px; }
.invite-card p { margin: 0; color: var(--muted); }
.invite-btn { display: flex; align-items: center; justify-content: center; gap: 8px; }
.iv-link { margin: 4px 0 2px; padding: 10px 12px; border-radius: 10px; background: var(--rose-soft); color: var(--link); font-weight: 700; font-size: 15px; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.iv-qr { text-align: center; }
.iv-qr svg { width: min(240px, 70vw); height: auto; background: #fff; padding: 8px; border-radius: 12px; }
.iv-qr p { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.iv-done { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--link); text-align: center; min-height: 1.2em; }
.invite-box { max-height: calc(100vh - 32px); overflow-y: auto; }
.iv-close { justify-self: center; background: none; border: 0; color: var(--link); font: inherit; font-size: 16px; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 10px 16px; min-height: 44px; }
.invite-box .iv-done { margin: 6px 0 0; min-height: 0; }
.invite-box .iv-done:empty { display: none; }
