/* PHALITA — the reading page. Cards, not columns of prose. */

/* ---- head + form ---- */

.rd-head {
  padding: 2.5rem 0 2.5rem;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(242,107,29,0.09) 0 1.5px, transparent 1.5px),
    radial-gradient(circle at 68% 54%, rgba(224,162,28,0.10) 0 1.5px, transparent 1.5px);
  background-size: 54px 54px, 76px 76px;
  border-bottom: 1px solid var(--rule);
}
.rd-head h1 {
  font-family: var(--sans); font-weight: 800; letter-spacing: -0.04em;
  font-size: clamp(1.9rem, 6vw, 2.6rem); margin: 0.6rem 0 0; line-height: 1.08; color: #141414;
}
.rd-head .lede { margin: 0.9rem 0 0; font-size: 1rem; color: #6a6a6a; line-height: 1.7; }

.bform {
  margin-top: 1.5rem; padding: 1.3rem;
  background: #fff; border: 1px solid var(--rule);
  border-radius: 18px; box-shadow: 0 2px 6px rgba(60,40,20,0.05), 0 18px 40px -26px rgba(60,40,20,0.34);
}
.bform .row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.75rem; }
.bform .row:last-child { margin-bottom: 0; }
.bform label { flex: 1 1 9rem; display: flex; flex-direction: column; gap: 0.3rem; }
.bform span {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-faint);
}
.bform input {
  font-family: var(--sans); font-size: 0.95rem; padding: 0.75rem 0.8rem;
  border: 1.5px solid #ddd0bc; border-radius: 11px;
  background: #fff; color: var(--ink); width: 100%;
}
.bform input:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(242,107,29,0.12); }
.bform .actions { align-items: center; }
.bform button {
  padding: 0.85rem 1.6rem; border: 0; border-radius: 11px;
  background: var(--maroon); color: #fff; cursor: pointer;
  font-size: 0.95rem; font-weight: 800; font-family: var(--sans);
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset;
}
.bform button:hover { background: var(--maroon-deep); }
.bform .hint { flex: 2 1 15rem; font-size: 0.76rem; color: var(--ink-faint); line-height: 1.55; }

/* ---- output ---- */

.rd-out { padding-bottom: 3rem; }

.rd-mast { padding: 2.5rem 0 0; }
.rd-mast h1 {
  font-family: var(--sans); font-weight: 800; letter-spacing: -0.035em;
  font-size: clamp(1.6rem, 5vw, 2.2rem); margin: 0.5rem 0 0; line-height: 1.1; color: #141414;
}
.rd-mast .sub { margin: 0.35rem 0 0; font-family: var(--serif); font-style: italic; font-size: 0.92rem; color: #9a9a9a; }
.rd-mast .dasha {
  margin: 1.2rem 0 0; padding: 0.9rem 1rem; border-radius: 12px;
  background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--maroon);
  font-size: 0.92rem; line-height: 1.7; color: var(--ink-soft);
}

/* ---- period shifts ---- */

.shifts { margin-top: 2.5rem; }
.shifts h2 {
  font-family: var(--sans); font-weight: 800; letter-spacing: -0.035em;
  font-size: clamp(1.5rem, 4.4vw, 1.95rem); margin: 0; line-height: 1.15; color: #141414;
}
.cardsub { margin: 0.45rem 0 0; font-size: 0.92rem; color: #8a8a8a; }

.tl {
  list-style: none; margin: 1.4rem 0 0; padding: 1.4rem 1.2rem;
  background: #fff; border: 1px solid var(--rule); border-radius: 20px;
  box-shadow: 0 2px 6px rgba(60,40,20,0.05), 0 20px 44px -30px rgba(60,40,20,0.3);
}
.tl-item { position: relative; display: flex; gap: 0.9rem; padding: 0 0 1.3rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item:not(:last-child)::before {
  content: ''; position: absolute; left: 0.36rem; top: 1.1rem; bottom: 0.1rem;
  width: 1px; background: var(--rule);
}
.ring {
  flex-shrink: 0; width: 0.78rem; height: 0.78rem; margin-top: 0.28rem;
  border-radius: 999px; border: 3px solid var(--ink-faint); background: transparent;
}
.ring.orange { border-color: var(--maroon); }
.ring.blue { border-color: #2f6fb0; }
.ring.grey { border-color: #c4c4c4; }

.tl-body { min-width: 0; }
.tl-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.22rem 0.6rem; border-radius: 7px;
  font-size: 0.72rem; font-weight: 800; color: #fff;
}
.pill.orange { background: var(--maroon); }
.pill.blue { background: #2f6fb0; }
.pill.grey { background: #d8d8d8; color: #6a6a6a; }
.tl-date { font-size: 0.8rem; color: #9a9a9a; }
.tl-body b {
  display: block; margin-top: 0.5rem;
  font-size: 1rem; font-weight: 800; letter-spacing: -0.02em; color: #141414;
}
.tl-body p { margin: 0.3rem 0 0; font-size: 0.9rem; line-height: 1.65; color: #7a7a7a; }

.tl-cta {
  display: block; margin-top: 0.9rem; padding: 0.9rem 1rem; text-align: center;
  border: 1.5px solid var(--maroon); border-radius: 12px;
  color: var(--maroon-deep); font-size: 0.9rem; font-weight: 800;
  background: transparent;
}
.tl-cta:hover { background: rgba(242,107,29,0.06); text-decoration: none; }

/* ---- chapters as collapsible cards ---- */

.chapters { margin-top: 2.6rem; display: flex; flex-direction: column; gap: 0.85rem; }

.ch {
  background: #fff; border: 1px solid transparent; border-radius: 18px;
  box-shadow: 0 1px 2px rgba(60,40,20,0.04), 0 10px 24px -18px rgba(60,40,20,0.35);
  overflow: hidden;
}
.ch-head {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 1rem 1.15rem; cursor: pointer; list-style: none;
}
.ch-head::-webkit-details-marker { display: none; }
.ch-head::after {
  content: '+'; flex-shrink: 0; margin-left: 0.15rem;
  color: var(--maroon); font-weight: 800; font-size: 1.1rem; line-height: 1;
}
.ch[open] .ch-head::after { content: '\2013'; }
.ch[open] .ch-head { border-bottom: 1px solid var(--rule); }
.ch-body { padding: 0 1.15rem 1.15rem; }

.ch-head .disc {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 2.7rem; height: 2.7rem; border-radius: 999px; background: #f8edda;
}
.ch-head .disc .emoji { font-size: 1.25rem; line-height: 1; }
.ch-title { flex: 1; min-width: 0; }
.ch-title h2 {
  font-family: var(--sans); font-size: 1.02rem; font-weight: 800;
  letter-spacing: -0.02em; margin: 0; line-height: 1.25; color: #141414;
}
.ch-title .strap {
  margin: 0.15rem 0 0; font-family: var(--serif); font-style: italic;
  font-size: 0.76rem; color: #9a9a9a;
}
.tag {
  flex-shrink: 0; padding: 0.2rem 0.55rem; border-radius: 999px;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.tag.strong { background: #e8f3ec; color: #2f6b4f; }
.tag.mixed { background: #fdf3e2; color: #8a6316; }
.tag.strained { background: #fdeeea; color: #9a3b2c; }

.ch-lead { margin: 0.95rem 0 0; font-size: 0.95rem; line-height: 1.7; color: #4a4a4a; }

.grp { margin-top: 0.9rem; }
.glabel {
  display: block; font-size: 0.6rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.4rem;
}
.grp.good .glabel { color: #2f6b4f; }
.grp.bad .glabel { color: #9a3b2c; }
.grp ul { list-style: none; margin: 0; padding: 0; }
.grp li {
  position: relative; padding-left: 1.15rem; margin-bottom: 0.4rem;
  font-size: 0.9rem; line-height: 1.6; color: #4a4a4a;
}
.grp li:last-child { margin-bottom: 0; }
.grp.good li::before {
  content: ''; position: absolute; left: 0; top: 0.45rem;
  width: 0.45rem; height: 0.45rem; border-radius: 999px; background: #6fae86;
}
.grp.bad li::before {
  content: ''; position: absolute; left: 0; top: 0.45rem;
  width: 0.45rem; height: 0.45rem; border-radius: 999px; background: #d08a7c;
}

.when {
  display: flex; align-items: center; gap: 0.65rem; margin-top: 0.95rem;
  padding: 0.6rem 0.75rem; background: #fdfaf5;
  border: 1px solid #f2e8da; border-radius: 11px;
}
.when .ric { flex-shrink: 0; font-size: 0.95rem; }
.when .rlabel {
  display: block; font-size: 0.56rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: #9a9a9a;
}
.when b { font-size: 0.88rem; font-weight: 800; letter-spacing: -0.01em; }

.ch-advice {
  margin: 0.9rem 0 0; padding-top: 0.85rem; border-top: 1px solid var(--rule);
  font-family: var(--serif); font-size: 0.93rem; font-style: italic; line-height: 1.65; color: #6a6a6a;
}

/* ---- verses ---- */

.verses-wrap { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.verses { margin-top: 2rem; }
.verses h2 { font-family: var(--sans); font-size: 1.05rem; font-weight: 800; margin: 0 0 0.6rem; letter-spacing: -0.02em; }
.statement { padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
.statement:last-child { border-bottom: 0; }
.statement p { margin: 0; font-size: 0.91rem; line-height: 1.7; color: var(--ink-soft); }

.verse { margin-top: 0.35rem; }
.verse summary {
  cursor: pointer; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint);
}
.verse summary:hover { color: var(--maroon-deep); }
.verse .mula { margin: 0.6rem 0 0; font-size: 0.92rem; line-height: 2; color: var(--ink-soft); }
.verse .ref { margin: 0.25rem 0 0; font-size: 0.62rem; color: var(--ink-faint); }

/* ---- the link out to the catalogue ---- */

.more { margin-top: 3rem; }
.more-note { margin: 0.6rem 0 0; text-align: center; font-size: 0.76rem; color: var(--ink-faint); }

/* ---- catalogue (questions.html) ---- */

.qfilter {
  width: 100%; margin: 1.5rem 0 0; padding: 0.75rem 0.9rem;
  font-size: 0.9rem; border: 1.5px solid var(--rule); border-radius: 11px;
  background: #fff; color: var(--ink);
}
.qfilter:focus { outline: none; border-color: var(--maroon); }
.qgroup { margin-top: 1.9rem; }
.qdomain {
  margin: 0 0 0.3rem; font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint);
}
details.q { border-bottom: 1px solid var(--rule); }
details.q summary { cursor: pointer; padding: 0.55rem 0; font-size: 0.91rem; color: var(--ink-soft); }
details.q summary:hover { color: var(--ink); }
details.q p { margin: 0 0 0.6rem; font-size: 0.9rem; line-height: 1.7; color: var(--ink-soft); }
.qf { list-style: none; margin: 0 0 0.9rem; padding: 0; }
.qf li {
  position: relative; padding-left: 1.1rem; margin-bottom: 0.35rem;
  font-size: 0.82rem; line-height: 1.55; color: #8a8a8a;
}
.qf li::before {
  content: ''; position: absolute; left: 0; top: 0.42rem;
  width: 0.4rem; height: 0.4rem; border-radius: 999px;
}
.qf li.pos::before { background: #6fae86; }
.qf li.neg::before { background: #d08a7c; }

.quiet { color: var(--ink-soft); font-style: italic; }

@media (max-width: 620px) {
  .bform { padding: 1rem; }
  .bform label { flex: 1 1 100%; }
  .tl { padding: 1.1rem 0.9rem; }
  .ch-head { padding: 0.9rem 1rem; }
  .ch-body { padding: 0 1rem 1rem; }
}
