/* parables.css — the parables explorer (#/parables) and parable pages (#/parables/<id>). Every class starts with "pb-". */

/* ---------------------------------------------------------------- shared bits */
.pb-gb { display: inline-flex; gap: 3px; }
.pb-g { font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: .03em; min-width: 22px; text-align: center; padding: 1px 4px; border-radius: 5px;
  border: 1px solid var(--border); color: var(--faint); background: transparent; line-height: 1.5; }
.pb-g.is-on { color: var(--rubric); border-color: color-mix(in srgb, var(--rubric) 45%, transparent); background: color-mix(in srgb, var(--rubric) 8%, var(--surface)); }
.pb-kind { font-family: var(--sans); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--c-ca); }
.pb-note { font-family: var(--sans); font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.pb-tag-ca { font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--c-ca); border: 1px solid color-mix(in srgb, var(--c-ca) 45%, transparent); border-radius: var(--r-pill); padding: 0 7px; white-space: nowrap; }

.pb-bars { display: grid; gap: 3px; margin-top: 10px; }
.pb-bar { display: grid; grid-template-columns: 76px 1fr 34px; align-items: center; gap: 6px; font-family: var(--sans); font-size: 11px; color: var(--muted); }
.pb-bar-t { height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.pb-bar-t i { display: block; height: 100%; border-radius: 3px; }
.pb-bar-n { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.pb-bars.is-big { gap: 6px; max-width: 30rem; }
.pb-bars.is-big .pb-bar { grid-template-columns: 104px 1fr 44px; font-size: 13px; }
.pb-bars.is-big .pb-bar-t { height: 8px; }

/* chips for other modules: "This verse is part of the parable of …" */
.pb-vchip { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--serif); font-size: 15px; color: var(--ink); text-decoration: none; border: 1px solid var(--border-2);
  background: var(--surface); border-radius: var(--r-pill); padding: 2px 11px; }
.pb-vchip:hover { border-color: var(--gold-2); }
.pb-vchip-k { font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }

/* ---------------------------------------------------------------- explorer */
.pb-lede { text-align: center; font-style: italic; color: var(--ink-2); max-width: 34rem; margin: 4px auto 18px; font-size: 17px; }
.pb-lede a { font-style: normal; font-variant: small-caps; letter-spacing: .04em; color: var(--rubric); text-decoration: none; white-space: nowrap; }
.pb-ctrls { display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-3); padding: 14px; box-shadow: var(--shadow); }
.pb-searchrow { display: flex; }
.pb-filt { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.pb-filt-l { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); flex: 0 0 58px; }
.pb-chiprow { min-width: 0; flex: 1; }
.pb-segs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.pb-status { font-family: var(--sans); font-size: 13px; color: var(--muted); margin: 14px 2px 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.pb-clear { margin-left: auto; border: 0; background: none; color: var(--link); font-family: var(--sans); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; padding: 2px 0; }
.pb-metric { display: flex; align-items: baseline; gap: 10px; margin: 0 2px 12px; }

.pb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.pb-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-3); box-shadow: var(--shadow); padding: 14px 16px 14px;
  color: inherit; text-decoration: none; min-width: 0; transition: border-color .15s, transform .15s; }
.pb-card:hover { border-color: var(--gold-2); }
.pb-card:active { transform: scale(.995); }
.pb-card-top { display: flex; align-items: center; gap: 8px; }
.pb-no { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--muted); font-variant-numeric: tabular-nums; }
.pb-card-t { font-family: var(--display); font-weight: 600; font-size: 25px; line-height: 1.1; margin: 8px 0 2px; }
.pb-card-alt { font-style: italic; color: var(--ink-2); font-size: 15px; margin: 0 0 4px; line-height: 1.35; }
.pb-card-refs { font-variant: small-caps; letter-spacing: .04em; color: var(--rubric); font-size: 15px; margin: 0; }
.pb-card-g { font-family: var(--sans); font-size: 12px; color: var(--muted); margin: 3px 0 0; }
.pb-card .pb-bars { margin-top: auto; padding-top: 10px; }

.pb-chartwrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-3); padding: 10px 8px 12px; overflow: hidden; }
.pb-chart { display: block; max-width: 100%; height: auto; }
.pb-ch-gh { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .06em; fill: var(--muted); }
.pb-ch-hit { fill: transparent; }
.pb-ch-row:hover .pb-ch-hit, .pb-ch-row:focus .pb-ch-hit { fill: var(--surface-2); }
.pb-ch-row:focus { outline: none; }
.pb-ch-row:focus-visible .pb-ch-hit { stroke: var(--gold); stroke-width: 1.5; }
.pb-ch-t { font-family: var(--serif); font-size: 14.5px; fill: var(--ink); }
.pb-ch-n { font-family: var(--sans); font-size: 11.5px; fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.pb-ch-dot { fill: var(--faint); }
.pb-ch-dot.is-on { fill: var(--rubric); }

/* ---------------------------------------------------------------- parable page */
.pb-head { text-align: center; padding: 18px 0 4px; }
.pb-eyebrow { font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--gold); }
.pb-eyebrow a { color: inherit; text-decoration: none; }
.pb-eyebrow a:hover { text-decoration: underline; }
.pb-title { font-family: var(--display); font-weight: 600; font-size: 48px; line-height: 1.04; margin: 8px 0 4px; }
.pb-alt { font-style: italic; color: var(--ink-2); margin: 0 0 8px; font-size: 18px; }
.pb-headrow { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; margin: 6px 0 14px; }
.pb-grp { font-family: var(--sans); font-size: 13px; color: var(--muted); text-decoration: none; }
a.pb-grp:hover { color: var(--link); text-decoration: underline; }
.pb-facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; max-width: 44rem; margin: 0 auto; text-align: left; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-3); padding: 14px 18px; box-shadow: var(--shadow); }
.pb-facts dt { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); padding-top: 4px; }
.pb-facts dd { margin: 0; font-size: 17px; line-height: 1.45; min-width: 0; }
.pb-where { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin: 0 10px 4px 0; }
.pb-set { font-style: italic; color: var(--muted); font-size: 15px; }
.pb-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 4px; }

.pb-sec { margin-top: 34px; }
.pb-h2 { font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1.1; margin: 0 0 12px; }
.pb-h2row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pb-h2row .pb-h2 { margin: 0; }
.pb-h3 { font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--gold); margin: 18px 0 6px; }
.pb-src { font-family: var(--sans); font-size: 12px; color: var(--muted); font-variant: small-caps; letter-spacing: .06em; }

/* texts */
.pb-tabs { display: none; }
.pb-texts { display: grid; gap: 14px; grid-template-columns: repeat(var(--pb-n, 1), minmax(0, 1fr)); }
.pb-texts.n1 { --pb-n: 1; max-width: var(--w-text); } .pb-texts.n2 { --pb-n: 2; } .pb-texts.n3 { --pb-n: 3; } .pb-texts.n4 { --pb-n: 2; }
@media (min-width: 1200px) { .pb-texts.n4 { --pb-n: 4; } }
.pb-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-3); padding: 12px 16px 14px; min-width: 0; box-shadow: var(--shadow); }
.pb-col-h { display: flex; align-items: baseline; gap: 8px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.pb-col-g { font-family: var(--display); font-weight: 600; font-size: 21px; }
.pb-col-ref { font-variant: small-caps; letter-spacing: .04em; color: var(--rubric); text-decoration: none; font-weight: 600; }
.pb-col-ref:hover { text-decoration: underline; }
.pb-col-add { margin-left: auto; border: 1px solid var(--border-2); background: var(--surface); border-radius: var(--r-pill); width: 30px; height: 30px; cursor: pointer; color: var(--ink-2); font-size: 15px; line-height: 1; flex: none; }
.pb-col-add:hover { border-color: var(--gold-2); color: var(--ink); }
.pb-col-set { font-style: italic; color: var(--muted); font-size: 15px; margin: 6px 0 0; line-height: 1.35; }
.pb-col .ui-text { font-size: calc(var(--fs) * .92); }
.pb-main { margin: 8px 0; }
.pb-texts.n1 .pb-col .ui-text { font-size: var(--fs); }
.pb-vn { font-family: var(--sans); font-size: .56em; font-weight: 700; color: var(--rubric); text-decoration: none; vertical-align: .5em; margin-right: 2px; line-height: 0; padding: 0 1px; }
.pb-vn:hover { text-decoration: underline; }
.pb-ctx { margin: 6px 0; }
.pb-ctx-v, .pb-ex-v { opacity: .6; font-size: calc(var(--fs) * .82) !important; margin: 4px 0; }
.pb-ctx-t, .pb-ex-t { display: flex; align-items: baseline; gap: 8px; width: 100%; text-align: left; border: 0; background: none; cursor: pointer; padding: 6px 0; color: var(--muted); font-size: 15px; }
.pb-ctx-t::before, .pb-ex-t::before { content: "▸"; font-size: 12px; color: var(--gold); transition: transform .15s; display: inline-block; }
.pb-ctx-t[aria-expanded="true"]::before, .pb-ex-t[aria-expanded="true"]::before { transform: rotate(90deg); }
.pb-ctx-k { font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.pb-ctx-l { font-style: italic; min-width: 0; }
.pb-ctx-t:hover .pb-ctx-l, .pb-ex-t:hover { color: var(--ink); }
.pb-ex { border-top: 1px dashed var(--border-2); margin-top: 8px; padding-top: 2px; }
.pb-ex-t > span:first-child { font-family: var(--sans); font-size: 12px; font-weight: 700; color: var(--rubric); }
.pb-ex-v { opacity: .85; }
.pb-legend { font-family: var(--sans); font-size: 12.5px; color: var(--muted); margin: 0 0 10px; }
.pb-sh { box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--gold) 55%, transparent); }
.pb-sh.is-all { background: color-mix(in srgb, var(--gold) 20%, transparent); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 2px; }
.pb-legend .pb-sh { padding: 0 3px; }

/* meaning */
.pb-meaning { max-width: var(--w-text); }
.pb-lead { font-size: 19px; line-height: 1.6; margin: 0; }
.pb-lead .oi { float: left; --oi: 3.1em; margin: .25em .5em 0 0; }
.pb-summary { overflow: hidden; }
.pb-interp p { font-size: 18px; line-height: 1.6; margin: 0; }

/* church & fathers */
.pb-cnt { margin-bottom: 8px; }
.pb-hls { display: grid; gap: 14px; margin: 18px 0 6px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pb-hl { margin: 0; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--gold-2); border-radius: var(--r-2); padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.pb-hl blockquote { margin: 0 0 10px; font-style: italic; font-size: 17px; line-height: 1.5; color: var(--ink); }
.pb-hl figcaption { margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 14px; }
.pb-hl-a { font-weight: 700; color: var(--ink); text-decoration: none; }
.pb-hl-a:hover { text-decoration: underline; }
.pb-hl-w { color: var(--muted); font-style: italic; }
.pb-hl-r { margin-left: auto; font-variant: small-caps; letter-spacing: .04em; color: var(--rubric); text-decoration: none; }

.pb-cm-g, .pb-fa-a { font-family: var(--display); font-weight: 600; font-size: 20px; margin: 16px 0 6px; }
.pb-fa-a a { color: inherit; text-decoration: none; }
.pb-fa-a a:hover { text-decoration: underline; }
.pb-cm-e { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-2); padding: 10px 14px; margin-bottom: 8px; }
.pb-cm-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 14.5px; margin-bottom: 4px; }
.pb-cm-a { font-weight: 700; color: var(--ink); text-decoration: none; }
.pb-cm-w { color: var(--muted); font-style: italic; min-width: 0; }
.pb-cm-r { margin-left: auto; font-variant: small-caps; letter-spacing: .04em; color: var(--rubric); text-decoration: none; }
.pb-cm-q .ui-prose { font-size: 16.5px; }
.pb-cm-q .ui-prose.is-clamp { max-height: 9.5em; }
.pb-more { margin-top: 4px; }

.pb-row, .pb-det summary { display: flex; align-items: baseline; gap: 8px; padding: 7px 4px; border-bottom: 1px solid var(--border); color: var(--ink); text-decoration: none; font-size: 16px; min-width: 0; }
.pb-row:hover, .pb-det summary:hover { background: var(--surface-2); }
.pb-row-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pb-row-r { font-variant: small-caps; letter-spacing: .03em; color: var(--muted); font-size: 14.5px; white-space: nowrap; flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }
.pb-det summary { cursor: pointer; list-style: none; }
.pb-det summary::-webkit-details-marker { display: none; }
.pb-det summary::before { content: "▸"; color: var(--gold); font-size: 12px; transition: transform .15s; }
.pb-det[open] summary::before { transform: rotate(90deg); }
.pb-det-b { padding: 6px 4px 10px 20px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.pb-det-b p { margin: 0 0 4px; }
.pb-det-open { font-family: var(--sans); font-size: 13px; font-weight: 600; }
.pb-tops { display: flex; flex-wrap: wrap; gap: 6px; }
.pb-top { display: inline-flex; align-items: baseline; gap: 6px; border: 1px solid var(--border-2); border-radius: var(--r-pill); padding: 3px 11px; color: var(--ink); text-decoration: none; background: var(--surface); font-size: 15px; }
.pb-top:hover { border-color: var(--gold-2); }
.pb-top-n { font-family: var(--sans); font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* art */
.pb-art { margin-top: 34px; }
.pb-art-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.pb-art-f { flex: 0 0 170px; scroll-snap-align: start; color: inherit; text-decoration: none; }
.pb-art-f img { display: block; width: 170px; height: 210px; object-fit: cover; border-radius: var(--r-2); border: 1px solid var(--border); background: var(--surface-2); }
.pb-art-c { display: block; font-size: 14px; line-height: 1.3; margin-top: 6px; }
.pb-art-c span { display: block; color: var(--muted); font-size: 13px; }

/* related & themes */
.pb-rel { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.pb-relc { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-2); padding: 10px 14px; color: inherit; text-decoration: none; }
.pb-relc:hover { border-color: var(--gold-2); }
.pb-relc-t { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.15; }
.pb-relc-s { font-variant: small-caps; letter-spacing: .03em; color: var(--rubric); font-size: 14px; }
.pb-th { --pb-tc: var(--pb-tl); position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 5px; border-color: color-mix(in srgb, var(--pb-tc) 55%, transparent); }
:root[data-theme="dark"] .pb-th { --pb-tc: var(--pb-td); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .pb-th { --pb-tc: var(--pb-td); } }
.pb-th-g { color: var(--pb-tc); }
.pb-th-w { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--pb-tc); }
.pb-th.is-on { background: color-mix(in srgb, var(--pb-tc) 14%, var(--surface)); color: var(--ink); border-color: var(--pb-tc); }
.pb-kth-d { font-size: 16px; line-height: 1.5; margin: 10px 0 0; color: var(--ink-2); }

/* prev / next */
.pb-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; }
.pb-pn-a { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--border); border-radius: var(--r-2); padding: 10px 14px; color: var(--ink); text-decoration: none; background: var(--surface);
  font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.15; min-width: 0; }
.pb-pn-a small { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.pb-pn-a.is-next { text-align: right; }
.pb-pn-a:hover { border-color: var(--gold-2); }

/* ---------------------------------------------------------------- phone */
@media (max-width: 759px) {
  .pb-texts { display: block; }
  .pb-col { display: none; }
  .pb-col.is-on { display: block; }
  .pb-texts.n1 .pb-col { display: block; }
  .pb-tabs { display: flex; gap: 4px; overflow-x: auto; margin: 0 0 10px; scrollbar-width: none; }
  .pb-tabs::-webkit-scrollbar { display: none; }
  .pb-tab { flex: 1 0 auto; border: 1px solid var(--border-2); background: var(--surface); border-radius: var(--r-pill); padding: 7px 14px; font-family: var(--display); font-weight: 600; font-size: 17px; cursor: pointer; color: var(--ink-2); }
  .pb-tab.is-on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
  .pb-col .ui-text, .pb-texts.n1 .pb-col .ui-text { font-size: var(--fs); }
  .pb-col { padding: 10px 14px 12px; }
  /* filter chips scroll sideways instead of wrapping into a wall */
  .pb-filt { flex-direction: column; gap: 4px; }
  .pb-filt-l { flex: none; }
  .pb-chiprow { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .pb-chiprow::-webkit-scrollbar { display: none; }
  .pb-chiprow .ui-chip { flex: none; }
  .pb-metric { flex-direction: column; gap: 4px; }
}
@media (max-width: 520px) {
  .pb-title { font-size: 38px; }
  .pb-facts { grid-template-columns: 1fr; gap: 2px; padding: 12px 14px; }
  .pb-facts dd { margin-bottom: 8px; }
  .pb-grid { grid-template-columns: 1fr; gap: 10px; }
  .pb-card-t { font-size: 23px; }
  .pb-ctrls { padding: 12px; }
  .pb-segs .ui-seg { flex: 1; justify-content: stretch; } .pb-segs .ui-seg button { flex: 1; }
  .pb-h2 { font-size: 27px; }
  .pb-hls { grid-template-columns: 1fr; }
  .pb-acts .ui-btn { flex: 1 1 auto; justify-content: center; }
  .pb-pn-a { font-size: 17px; }
}

/* theme chips: the long tail folds away on wide screens (phones scroll the row instead) */
.pb-morechip { display: none; border-style: dashed; color: var(--muted); }
@media (min-width: 760px) {
  .pb-themes .pb-morechip { display: inline-block; }
  .pb-themes.is-lim .ui-chip:nth-child(n+14):not(.pb-morechip) { display: none; }
}
