/* Bible Translate: sample passage pages and the try-it page header. Builds on welcome.css (tokens, top bar, buttons, footer).
   Verb colours match the app's "soft" palette (translate.css). */
:root {
  --c-q-bg: #f5c6bf; --c-y-bg: #fbe69a; --c-w-bg: #bfe3b4; --c-wq-bg: #c3daf3;
  --c-imv-bg: #fbe69a; --c-imv-fg: #c0261b; --c-jus-bg: #fbe69a; --c-jus-fg: #1f5fbf; --c-coh-bg: #fbe69a; --c-coh-fg: #7b1f2b;
  --c-inf-fg: #1f5fbf; --c-ptc-fg: #6f3fa0; --c-pn-fg: #737a7c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --c-q-bg: rgba(240, 120, 105, .42); --c-y-bg: rgba(245, 205, 70, .34); --c-w-bg: rgba(100, 195, 105, .34); --c-wq-bg: rgba(100, 165, 240, .38);
    --c-imv-bg: rgba(245, 205, 70, .34); --c-imv-fg: #ff9588; --c-jus-bg: rgba(245, 205, 70, .34); --c-jus-fg: #9cbfff; --c-coh-bg: rgba(245, 205, 70, .34); --c-coh-fg: #f4a8b6;
    --c-inf-fg: #8db4ff; --c-ptc-fg: #c9a2f2; --c-pn-fg: #a9b2b4;
  }
}
.f-q { background: var(--c-q-bg); } .f-y { background: var(--c-y-bg); } .f-w { background: var(--c-w-bg); } .f-wq { background: var(--c-wq-bg); }
.f-imv { background: var(--c-imv-bg); color: var(--c-imv-fg); } .f-jus { background: var(--c-jus-bg); color: var(--c-jus-fg); } .f-coh { background: var(--c-coh-bg); color: var(--c-coh-fg); }
.f-inf { color: var(--c-inf-fg); } .f-ptc { color: var(--c-ptc-fg); } .f-pn { color: var(--c-pn-fg); }

.pp-main { max-width: 920px; margin: 0 auto; padding: 8px 24px 64px; }
.pp-main h1 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.15; letter-spacing: -.01em; margin: 8px 0 14px; color: var(--navy); }
.pp-main h2 { font-family: var(--display); font-weight: 400; font-size: 27px; line-height: 1.2; margin: 64px 0 6px; }
.pp-crumbs { font-size: 14px; color: var(--muted); margin-top: 16px; }
.pp-crumbs a { color: var(--brass-text); text-decoration: none; }
.pp-crumbs a:hover { text-decoration: underline; }
.pp-about { font-size: 18.5px; margin: 0 0 10px; max-width: 46em; }
.pp-meta, .pp-note { color: var(--muted); font-size: 15px; margin: 0 0 18px; max-width: 46em; }

/* call to action */
.pp-cta { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; justify-content: space-between; margin: 28px 0; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: 16px; }
.pp-cta > div:first-child { flex: 1 1 340px; }
.pp-cta b { font-weight: 600; }
.pp-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.pp-cta-end { margin-top: 64px; }

/* colour key */
.pp-key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.pp-key-t { font-weight: 600; color: var(--ink); }
.pp-key ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.pp-key li { display: inline-flex; align-items: center; gap: 6px; }
.pw-sw { display: inline-block; padding: 0 5px; border-radius: 4px; font-size: 15px; line-height: 1.4; }

/* the text: one block per verse, a gloss under each word */
.pp-text { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 24px; }
.pv { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.pv:first-child { border-top: 0; }
.pv-n { flex: 0 0 auto; margin: 6px 0 0; min-width: 2.2em; font: 600 13px/1 var(--sans); color: var(--brass-text); }
.pp-text.hbo .pv { flex-direction: row-reverse; }
.pp-text.hbo .pv-n { text-align: right; }
.pv-w { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: flex-start; }
.pw { display: inline-flex; flex-direction: column; align-items: center; text-align: center; max-width: 11em; }
.pw-t { font-size: 27px; line-height: 1.35; padding: 0 4px; border-radius: 5px; }
.pw-t.he { font-size: 30px; }
.pw-g { font-size: 13px; line-height: 1.3; color: var(--muted); margin-top: 2px; }

/* tables */
.pp-tw { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.pp-t { width: 100%; border-collapse: collapse; font-size: 15px; }
.pp-t th { text-align: left; font-weight: 600; font-size: 13px; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pp-t td { padding: 8px 14px; border-top: 1px solid var(--line); vertical-align: baseline; }
.pp-t tr:first-child td { border-top: 0; }
.pp-t .he { font-size: 22px; }
.pp-t .gk { font-size: 19px; }
.pp-t td.pp-w { white-space: nowrap; }
.pp-lem { display: block; font-size: 13px; color: var(--muted); }
.pp-lem .he { font-size: 17px; } .pp-lem .gk { font-size: 15px; }
.pp-t .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* lists of passages */
.pp-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 24px; }
.pp-list a { color: var(--brass-text); text-decoration: none; font-weight: 600; }
.pp-list a:hover { text-decoration: underline; }
.pp-list span { color: var(--muted); font-size: 14px; }
.pp-cards { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pp-cards a { display: block; height: 100%; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; transition: border-color .15s ease; }
.pp-cards a:hover { border-color: var(--brass); }
.pp-cards b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--navy); margin-bottom: 4px; }
.pp-cards span { color: var(--muted); font-size: 15px; }

@media (max-width: 720px) {
  .top-act .lnk:first-child { display: none; }
  .pp-main { padding: 4px 16px 48px; }
  .pp-text { padding: 4px 14px; }
  .pv { flex-direction: column !important; gap: 8px; }
  .pp-text.hbo .pv-n { text-align: right; }
  .pw-t { font-size: 24px; } .pw-t.he { font-size: 27px; }
  .pp-cards { grid-template-columns: minmax(0, 1fr); }
  /* tables become one block per row */
  .pp-t thead { display: none; }
  .pp-t, .pp-t tbody, .pp-t tr, .pp-t td { display: block; }
  .pp-t tr { position: relative; padding: 12px 14px; border-top: 1px solid var(--line); }
  .pp-t tr:first-child { border-top: 0; }
  .pp-t td, .pp-t tr:first-child td { border: 0; padding: 0; }
  .pp-t td.num { position: absolute; top: 14px; right: 14px; color: var(--muted); font-size: 13px; }
  .pp-t td.pp-pa { font-size: 14px; margin-top: 2px; }
  .pp-t td.pp-gl { color: var(--muted); font-size: 14px; }
  .pp-lem { display: inline; margin-left: 6px; }
  .pp-cta { padding: 18px; }
  .pp-cta-btns, .pp-cta-btns .btn { flex: 1 1 100%; }
}
