:root {
  --bg: #f5efe2;
  --paper: #fffbf1;
  --ink: #1d1f2a;
  --muted: #545a64;
  --accent: #1e3f73;
  --accent-soft: #e8effa;
  --line: #d4c8b2;
  --brick: #a14b3b;
  --gold: #b88a2e;
  --canal: #2d5f61;
  --body-font: "Crimson Text", Georgia, serif;
  --heading-font: "Assistant", "Helvetica Neue", Arial, sans-serif;
}

:root[data-theme="delft"] {
  --bg: #eaf0fb;
  --paper: #fdfefe;
  --ink: #11233f;
  --muted: #3d4f67;
  --accent: #0f3b79;
  --accent-soft: #d8e5fb;
  --line: #b9c8e2;
  --brick: #b0663b;
  --gold: #9a7a25;
  --canal: #16507d;
  --body-font: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --heading-font: "Assistant", "Helvetica Neue", Arial, sans-serif;
}

:root[data-theme="jerusalem"] {
  --bg: #f6e7cd;
  --paper: #fff5e6;
  --ink: #321d0c;
  --muted: #73573a;
  --accent: #8d3f05;
  --accent-soft: #f6dcb9;
  --line: #d7b489;
  --brick: #ab3f2a;
  --gold: #b88a25;
  --canal: #6d5e2d;
  --body-font: "Crimson Text", Georgia, serif;
  --heading-font: "Trebuchet MS", "Assistant", Arial, sans-serif;
}

:root[data-theme="modern"] {
  --bg: #e8f4ef;
  --paper: #ffffff;
  --ink: #113029;
  --muted: #4c6a63;
  --accent: #007a5a;
  --accent-soft: #d8f1e8;
  --line: #b8ddd2;
  --brick: #0a6a8d;
  --gold: #1c9469;
  --canal: #1e8f80;
  --body-font: "Verdana", "Geneva", sans-serif;
  --heading-font: "Arial Black", "Assistant", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, #f0e0c6 0%, transparent 34%),
    radial-gradient(circle at 84% 12%, #dce5f8 0%, transparent 36%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 47px,
      rgba(30, 63, 115, 0.05) 48px,
      transparent 49px
    ),
    var(--bg);
  line-height: 1.5;
}

:root[data-theme="delft"] body {
  background:
    radial-gradient(circle at 18% 9%, rgba(79, 132, 212, 0.2) 0%, transparent 36%),
    radial-gradient(circle at 88% 16%, rgba(196, 216, 247, 0.32) 0%, transparent 34%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 46px,
      rgba(15, 59, 121, 0.08) 47px,
      transparent 48px
    ),
    var(--bg);
}

:root[data-theme="jerusalem"] body {
  background:
    radial-gradient(circle at 14% 10%, rgba(205, 126, 60, 0.22) 0%, transparent 32%),
    radial-gradient(circle at 82% 11%, rgba(240, 196, 124, 0.2) 0%, transparent 35%),
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 52px,
      rgba(120, 63, 20, 0.06) 53px,
      transparent 54px
    ),
    var(--bg);
}

:root[data-theme="modern"] body {
  background:
    radial-gradient(circle at 10% 10%, rgba(36, 172, 124, 0.16) 0%, transparent 30%),
    radial-gradient(circle at 82% 8%, rgba(0, 122, 90, 0.14) 0%, transparent 34%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 34px,
      rgba(0, 122, 90, 0.06) 35px,
      transparent 36px
    ),
    var(--bg);
}

h1,
h2,
h3,
h4,
.brand,
.button,
.kicker,
.subtitle,
.nav-link,
label {
  font-family: var(--heading-font);
}

.hero {
  padding: 4.8rem 1.2rem 3rem;
  border-bottom: 1px solid var(--line);
}

.top-nav {
  width: min(980px, calc(100% - 2.4rem));
  margin: 0;
  position: fixed;
  top: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.9rem;
  z-index: 1000;
  background: var(--paper);
  border: 1px solid #cdbfa7;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 24px rgba(35, 38, 47, 0.08);
}

.top-nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-family: var(--heading-font);
  font-size: 0.82rem;
  font-weight: 700;
}

.theme-select {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 0.15rem 0.55rem;
  font-size: 0.8rem;
  font-family: var(--heading-font);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-decoration: none;
}

.brand-logo {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #cbb67d;
  box-shadow: 0 2px 6px rgba(30, 28, 20, 0.18);
}

.brand-text {
  line-height: 1;
}

.nav-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.hero-content {
  max-width: 980px;
  margin: 2rem auto 0;
}

.kicker {
  margin: 0;
  color: var(--brick);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

h1 {
  margin: 0.4rem 0 0.8rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.hero-content p {
  max-width: 62ch;
  font-size: 1.2rem;
}

.hero-logo {
  display: block;
  width: min(760px, 100%);
  height: auto;
  margin: 0.35rem 0 0.85rem;
  border-radius: 12px;
  border: 1px solid #c9b789;
  box-shadow: 0 12px 30px rgba(22, 25, 33, 0.18);
}

.hero-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.button {
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  text-decoration: none;
  font-weight: 700;
}

.button.solid {
  background: linear-gradient(120deg, var(--accent) 0%, #2e588f 100%);
  color: #fff;
  border: 1px solid #15325a;
}

.button.ghost {
  border: 1px solid #3f5e8b;
  color: #214573;
  background: rgba(248, 250, 255, 0.68);
}

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 1rem 1.2rem 3rem;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  margin-top: 1rem;
  box-shadow: 0 6px 16px rgba(39, 43, 52, 0.06);
}

.pill-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pill {
  background: linear-gradient(120deg, var(--accent-soft) 0%, #f1f6ff 100%);
  border: 1px solid #ccd7ec;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-family: "Assistant", sans-serif;
  font-size: 0.85rem;
}

.section-header p {
  margin-top: 0.2rem;
}

.toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.9rem;
  margin: 0.4rem 0 0.2rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid #dbc9ae;
  border-radius: 10px;
  background: #fff8ec;
}

.toggles label {
  font-weight: 600;
  font-size: 0.9rem;
}

.explorer-layout {
  display: grid;
  grid-template-columns: minmax(240px, 290px) 1fr;
  gap: 1rem;
}

.explorer-panel {
  position: sticky;
  top: 5.3rem;
  align-self: start;
  display: grid;
  gap: 0.8rem;
}

.explorer-panel h3 {
  margin: 0;
}

.explorer-content {
  min-width: 0;
}

.my-siddur-cta {
  border: 1px solid #d5c4a8;
  border-radius: 12px;
  background: #fffdf8;
  padding: 0.7rem 0.75rem;
}

.my-siddur-cta h4 {
  margin: 0;
}

.my-siddur-cta p {
  margin: 0.35rem 0 0.6rem;
}

.search-bar {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.5rem;
  background: #fffefb;
}

.search-bar label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.search-bar input {
  width: 100%;
  border: 1px solid #c5beb2;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  font-size: 1rem;
  font-family: "Assistant", "Helvetica Neue", Arial, sans-serif;
  margin-bottom: 0.45rem;
}

.search-bar select {
  width: 100%;
  border: 1px solid #c5beb2;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  font-size: 1rem;
  font-family: "Assistant", "Helvetica Neue", Arial, sans-serif;
}

.search-summary {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-family: "Assistant", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
}

.my-siddur {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.9rem;
  background: #fffdfa;
}

.my-siddur h3 {
  margin: 0;
}

.my-siddur-note {
  margin: 0.25rem 0 0.55rem;
  color: var(--muted);
  font-family: "Assistant", "Helvetica Neue", Arial, sans-serif;
}

.my-siddur-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.my-siddur-controls input,
.my-siddur-controls select,
.my-siddur-controls button {
  border: 1px solid #c5beb2;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  font-size: 0.95rem;
  font-family: "Assistant", "Helvetica Neue", Arial, sans-serif;
}

.my-siddur-controls textarea {
  border: 1px solid #c5beb2;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  font-size: 0.95rem;
  font-family: "Assistant", "Helvetica Neue", Arial, sans-serif;
  resize: vertical;
}

.my-siddur-controls button {
  background: linear-gradient(120deg, #f2f5fd 0%, #eef8f9 100%);
  color: #214573;
  font-weight: 700;
  cursor: pointer;
}

.sequence-picks {
  margin-top: 0.65rem;
  border-top: 1px dashed #d5c7af;
  padding-top: 0.6rem;
}

.sequence-title {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-family: "Assistant", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.sequence-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sequence-button {
  border: 1px solid #c5beb2;
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  font-size: 0.9rem;
  font-family: "Assistant", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(120deg, #f2f5fd 0%, #eef8f9 100%);
  color: #214573;
  font-weight: 700;
  cursor: pointer;
}

.seder-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.seder-step {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  background: #fffef8;
}

.seder-step h3 {
  margin: 0;
  font-size: 1rem;
}

.seder-step p {
  margin: 0.3rem 0 0;
  font-family: "Assistant", "Helvetica Neue", Arial, sans-serif;
  color: var(--muted);
  line-height: 1.4;
}

.leader-script {
  margin: 0.7rem 0 0;
  padding: 0.55rem 0.65rem;
  border: 1px dashed #d6c7ad;
  border-radius: 10px;
  background: #fffdf4;
  font-family: "Assistant", "Helvetica Neue", Arial, sans-serif;
  color: #5a4c35;
}

.response-list {
  margin-top: 0.8rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffefa;
}

.response-list h4 {
  margin: 0;
}

.response-list p {
  margin: 0.35rem 0 0;
  font-family: "Assistant", "Helvetica Neue", Arial, sans-serif;
  color: var(--muted);
}

.prayer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.nav-pill {
  text-decoration: none;
  color: #264b7a;
  border: 1px solid #c9d7ef;
  background: linear-gradient(120deg, #eef3fe 0%, #f8f1df 100%);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.26rem 0.62rem;
}

.group-title {
  margin: 1.25rem 0 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
  color: #2a4d7d;
  font-size: 1.18rem;
}

.service-intro {
  margin-top: 1rem;
  padding: 0.8rem;
  border: 1px solid #d5c4a8;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 247, 231, 0.94) 0%, rgba(240, 246, 255, 0.94) 100%);
}

.service-title {
  margin: 0;
}

.service-subtitle {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-family: "Assistant", "Helvetica Neue", Arial, sans-serif;
}

.spinoza-quote {
  margin: 0.55rem 0 0;
  padding-left: 0.7rem;
  border-left: 4px solid var(--gold);
  font-style: italic;
}

.spinoza-quote span {
  display: block;
  margin-top: 0.2rem;
  font-style: normal;
  color: var(--muted);
  font-family: "Assistant", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.88rem;
}

.prayer-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0;
  background: #fffef9;
}

.prayer-card h3 {
  margin: 0;
}

.prayer-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.share-link-button {
  border: 1px solid #becee8;
  background: linear-gradient(120deg, #eff4ff 0%, #f5fbf8 100%);
  color: #264b7a;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-family: "Assistant", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.select-prayer-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #d2c6b1;
  background: #fff8eb;
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  color: #5f4a2f;
  font-family: "Assistant", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.select-prayer-checkbox {
  width: 0.95rem;
  height: 0.95rem;
  accent-color: var(--accent);
}

.passage-selector-wrap {
  width: 100%;
  margin-top: 0.35rem;
  border: 1px dashed #d6c7ad;
  border-radius: 10px;
  padding: 0.35rem 0.5rem;
  background: #fffdf4;
}

.passage-selector-title {
  margin: 0 0 0.2rem;
  font-family: "Assistant", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.passage-selector-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.passage-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid #d9cfbe;
  background: #fff;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  font-family: "Assistant", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  color: #5c5448;
  font-weight: 700;
}

.passage-pill input {
  width: 0.85rem;
  height: 0.85rem;
  accent-color: var(--accent);
}

.service-tags {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.service-tag {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-family: "Assistant", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
}

.subtitle {
  margin: 0.1rem 0 0;
  color: var(--muted);
}

.text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.hebrew {
  font-size: 1.28rem;
  line-height: 1.75;
}

.layer {
  border-top: 1px solid var(--line);
  margin-top: 0.75rem;
  padding-top: 0.6rem;
}

.layer h4 {
  margin: 0;
}

.layer p {
  margin: 0.2rem 0 0;
}

.source-note {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-family: "Assistant", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.45;
}

.source-transparency {
  margin-top: 0.85rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdfa;
}

.source-transparency h4 {
  margin: 0;
}

.source-transparency p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-family: "Assistant", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.45;
}

.spinoza-figure {
  margin: 0 0 0.9rem;
}

.spinoza-figure img {
  width: min(360px, 100%);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: block;
}

.spinoza-figure figcaption {
  margin-top: 0.35rem;
  color: var(--muted);
  font-family: "Assistant", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.contact-form label {
  font-weight: 700;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  border: 1px solid #c5beb2;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  font-size: 1rem;
  font-family: "Assistant", "Helvetica Neue", Arial, sans-serif;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  border: 1px solid #becee8;
  background: linear-gradient(120deg, #eff4ff 0%, #f5fbf8 100%);
  color: #264b7a;
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  font-family: "Assistant", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.bot-field {
  display: none;
}

.compare-controls {
  margin: 0.6rem 0 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.compare-controls select {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 0.3rem 0.7rem;
  font-size: 0.95rem;
  font-family: "Assistant", "Helvetica Neue", Arial, sans-serif;
}

.compare-issue-button {
  cursor: pointer;
}

.compare-issue-button.active {
  border-color: #2d4f7f;
  background: linear-gradient(120deg, #dce8fb 0%, #eef6ff 100%);
  color: #1f406c;
  font-weight: 700;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.compare-grid h4 {
  margin-bottom: 0.3rem;
}

.compare-result .subtitle {
  margin-top: 0.2rem;
}

.compare-why {
  margin-top: 0.8rem;
}

.quiz-stack {
  display: grid;
  gap: 0.9rem;
}

.quiz-card h3 {
  font-size: 1.06rem;
}

.quiz-choices {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.quiz-choice {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 0.45rem 0.55rem;
  border: 1px solid #d6c7ae;
  border-radius: 10px;
  background: #fffcf4;
}

.quiz-choice input {
  margin-top: 0.15rem;
}

.quiz-actions {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.quiz-feedback {
  display: none;
  margin-top: 0.55rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid #d5c4a8;
  border-radius: 10px;
  background: #fdf6e7;
}

.quiz-feedback-show {
  display: block;
}

.history-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.75rem;
}

.archive-card {
  border: 1px solid #d6c7ae;
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
  background: #fffdf7;
}

.archive-card h4 {
  margin: 0;
}

.archive-card p {
  margin: 0.35rem 0 0;
}

.chat-panel {
  padding-bottom: 1.2rem;
}

.chat-log {
  max-height: 56vh;
  overflow-y: auto;
  border: 1px solid #d6c7ae;
  border-radius: 12px;
  padding: 0.8rem;
  background: #fffdf7;
  display: grid;
  gap: 0.7rem;
}

.chat-bubble {
  border: 1px solid #d6c7ae;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
}

.chat-user {
  background: #eef5ff;
  border-color: #bfd0eb;
}

.chat-assistant {
  background: #fff8ea;
}

.chat-role {
  margin: 0;
  font-family: "Assistant", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #3d4d60;
}

.chat-text {
  margin: 0.25rem 0 0;
  white-space: pre-wrap;
}

.chat-form {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.5rem;
}

.chat-form textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem;
  background: #fff;
  color: var(--ink);
  font-family: "Crimson Text", Georgia, serif;
}

.chat-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.change-log {
  margin-top: 0.85rem;
  padding: 0.7rem;
  border: 1px dashed #c7b189;
  border-radius: 10px;
  background: #fff8e8;
}

.change-log h4 {
  margin: 0;
}

.change-log p {
  margin: 0.2rem 0 0;
}

.hidden-layer {
  display: none;
}

body.reader-mode .layer,
body.reader-mode .source-transparency,
body.reader-mode .change-log,
body.reader-mode .service-tags,
body.reader-mode .share-link-button,
body.reader-mode .passage-selector-wrap,
body.reader-mode .select-prayer-wrap {
  display: none !important;
}

.hidden-card {
  display: none;
}

.hidden-passage {
  display: none;
}

.target-prayer {
  border-color: #2d5f61;
  box-shadow: 0 0 0 2px rgba(45, 95, 97, 0.18);
}

.collection-toolbar {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem;
  margin-bottom: 0.9rem;
  background: #fffefa;
}

.collection-toolbar h2 {
  margin: 0;
}

.collection-toolbar p {
  margin: 0.3rem 0 0.5rem;
  color: var(--muted);
  font-family: "Assistant", "Helvetica Neue", Arial, sans-serif;
}

.collection-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.collection-toolbar-actions button {
  border: 1px solid #c5beb2;
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  background: linear-gradient(120deg, #f2f5fd 0%, #eef8f9 100%);
  color: #214573;
  font-weight: 700;
  cursor: pointer;
  font-family: "Assistant", "Helvetica Neue", Arial, sans-serif;
}

body.collection-mode .hero,
body.collection-mode #about,
body.collection-mode .toggles,
body.collection-mode .search-bar,
body.collection-mode .my-siddur,
body.collection-mode .prayer-nav,
body.collection-mode .service-intro,
body.collection-mode .group-title,
body.collection-mode .passage-selector-wrap,
body.collection-mode .select-prayer-wrap,
body.collection-mode .share-link-button,
body.collection-mode footer {
  display: none;
}

body.collection-mode main {
  max-width: 860px;
  padding-top: 1.2rem;
}

body.collection-mode .prayer-card {
  break-inside: avoid;
  page-break-inside: avoid;
}

footer {
  text-align: center;
  padding: 1.5rem 1rem 2.5rem;
  color: #44505d;
  background: linear-gradient(180deg, transparent 0%, rgba(238, 229, 209, 0.36) 100%);
}

@media print {
  body {
    background: #fff;
  }

  .collection-toolbar-actions,
  .theme-switcher {
    display: none !important;
  }

  .panel {
    border: none;
    box-shadow: none;
    padding: 0;
  }

  body.kid-print-mode .hero,
  body.kid-print-mode .panel:not(#kid-track),
  body.kid-print-mode .top-nav,
  body.kid-print-mode footer {
    display: none !important;
  }

  body.kid-print-mode #kid-track {
    display: block !important;
    margin: 0;
    padding: 0;
  }
}

footer a {
  color: #1f4372;
}

@media (max-width: 760px) {
  .top-nav {
    width: calc(100% - 1rem);
    top: 0.4rem;
    padding: 0.45rem 0.65rem;
  }

  .top-nav-links {
    gap: 0.45rem;
  }

  .theme-switcher {
    font-size: 0.75rem;
  }

  .brand-text {
    display: none;
  }

  .theme-select {
    font-size: 0.75rem;
    padding: 0.12rem 0.45rem;
  }

  .text-grid {
    grid-template-columns: 1fr;
  }

  .explorer-layout {
    grid-template-columns: 1fr;
  }

  .explorer-panel {
    position: static;
  }

  .hero-content p {
    font-size: 1.05rem;
  }

  .group-title {
    font-size: 1.06rem;
  }
}
