/* Which Sermon Preaches This? — in the shared look (../shared/theme.css):
 * white, #111, one blue, Helvetica Neue. The chart is the page's picture and
 * takes the full height beside a narrow sidebar of pickers.
 */
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--appnav-h, 0px) + 16px); background: var(--paper); }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
code { font-family: var(--mono); font-size: 0.9em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  max-width: 1500px;
  margin: 0 auto;
}
.side {
  position: sticky;
  top: var(--appnav-h, 0px);
  height: calc(100dvh - var(--appnav-h, 0px));
  border-right: 1px solid var(--rule-soft);
  overflow-y: auto;
  scrollbar-width: thin;
}
.side-inner { padding: 1.25rem 1.1rem 1.5rem 1.25rem; }
.title { font-size: 1.9rem; line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; }
.lede { margin-top: 0.7rem; font-size: 0.86rem; color: var(--ink-2); }
.lede strong { color: var(--ink); }

.pick { border: 0; margin-top: 1.15rem; }
.pick legend { font-size: 0.8rem; font-weight: 700; margin-bottom: 0.35rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); }
.seg button {
  background: var(--paper); border: 0; padding: 0.45rem 0.4rem; font-size: 0.82rem; text-align: center;
}
.seg button + button { border-left: 1px solid var(--ink); }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.pick-note { margin-top: 0.4rem; font-size: 0.76rem; color: var(--ink-3); }

.runs { display: grid; gap: 0.15rem; }
.runs button {
  display: block; width: 100%; text-align: left; background: transparent; border: 0;
  border-left: 3px solid transparent; padding: 0.35rem 0.5rem; font-size: 0.82rem; line-height: 1.3;
}
.runs button:hover { background: var(--wash); }
.runs button[aria-checked="true"] { border-left-color: var(--blue); background: var(--wash); }
.runs .r-name { font-weight: 700; display: block; }
.runs .r-desc { color: var(--ink-2); font-size: 0.76rem; display: block; margin-top: 0.1rem; }
.side-foot { margin-top: 1.3rem; font-size: 0.78rem; color: var(--ink-3); }

/* ---------- chart ---------- */
.stage {
  min-height: calc(100dvh - var(--appnav-h, 0px));
  display: flex; flex-direction: column;
  padding: 1.25rem 1.5rem 1rem;
}
.chart-title { font-size: 1.15rem; font-weight: 700; }
.chart-sub { font-size: 0.84rem; color: var(--ink-2); max-width: 62rem; margin-top: 0.2rem; }
.chart {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) repeat(4, minmax(0, 1fr));
  grid-template-rows: auto;
  grid-auto-rows: minmax(2.6rem, 1fr);
  align-content: stretch;
  column-gap: 1.1rem;
  margin-top: 1rem;
  align-items: center;
}
.c-head { align-self: end; font-size: 0.82rem; font-weight: 700; padding-bottom: 0.35rem; border-bottom: 1px solid var(--ink); line-height: 1.2; }
.c-head .short { display: none; }
.c-head small { display: block; font-weight: 400; color: var(--ink-3); font-size: 0.72rem; }
.c-model { font-size: 0.86rem; line-height: 1.2; border-bottom: 1px solid var(--rule-soft); height: 100%; display: flex; flex-direction: column; justify-content: center; }
.c-model small { color: var(--ink-3); font-size: 0.72rem; }
.c-model.is-best { font-weight: 700; }
.c-cell { position: relative; height: 100%; border-bottom: 1px solid var(--rule-soft); display: grid; grid-template-columns: minmax(0, 1fr) 2.4rem; align-items: center; column-gap: 0.35rem; }
.bar-track { position: relative; width: 100%; height: 46%; max-height: 1.6rem; min-height: 0.9rem; background: var(--wash); }
.bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); transition: width 0.35s ease; }
.bar.is-hybrid { background: var(--ink-3); }
.bar.is-lex { background: #6b6b6b; }
.bar-ci { position: absolute; top: 50%; height: 1px; background: var(--blue); transform: translateY(-50%); }
.bar-ci::before, .bar-ci::after { content: ""; position: absolute; top: -4px; width: 1px; height: 9px; background: var(--blue); }
.bar-ci::before { left: 0; } .bar-ci::after { right: 0; }
.bar-ghost { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--blue); }
.bar-val { font-size: 0.8rem; text-align: right; white-space: nowrap; }
.bar-val.is-top { font-weight: 700; }
.chart-key { font-size: 0.78rem; color: var(--ink-3); margin-top: 0.6rem; }
.chart-key .k-ghost { display: inline-block; width: 2px; height: 0.9em; background: var(--blue); vertical-align: -0.1em; margin: 0 0.25rem; }
.chart-key .k-ci { display: inline-block; width: 1.1em; height: 1px; background: var(--blue); vertical-align: 0.25em; margin: 0 0.25rem; }

/* ---------- reading ---------- */
.reading { max-width: 1100px; margin: 0 auto; padding: 2.4rem 1.5rem 0.5rem; border-top: 1px solid var(--rule-soft); }
.reading h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
.reading h3 { font-size: 1rem; font-weight: 700; margin-top: 1.4rem; }
.reading .sub { color: var(--ink-2); font-size: 0.88rem; margin-top: 0.3rem; max-width: 52rem; }
.prose p, .prose li { max-width: 46rem; margin-top: 0.7rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-top: 0.35rem; }
.sources li { font-size: 0.88rem; }
.sources { padding-bottom: 3rem; }

.table-wrap { overflow-x: auto; margin-top: 1rem; }
table.heat { border-collapse: collapse; font-size: 0.82rem; min-width: 100%; }
.heat th, .heat td { padding: 0.32rem 0.5rem; text-align: right; border-bottom: 1px solid var(--rule-soft); white-space: nowrap; }
.heat th:first-child, .heat td:first-child { text-align: left; position: sticky; left: 0; background: var(--paper); }
.heat thead th { font-weight: 700; border-bottom: 1px solid var(--ink); vertical-align: bottom; white-space: normal; min-width: 4.4rem; }
.heat td.n { color: var(--ink-3); }

.g2 { color: var(--blue); } .g1 { color: var(--blue); opacity: 0.65; } .g0 { color: var(--ink-3); }
.ex-pick { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 1rem; }
.ex-pick button { background: var(--paper); border: 1px solid var(--rule-soft); padding: 0.3rem 0.6rem; font-size: 0.82rem; }
.ex-pick button[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.ex-q { margin-top: 1rem; border-left: 3px solid var(--ink); padding: 0.2rem 0 0.2rem 0.9rem; max-width: 48rem; }
.ex-q .ref { font-weight: 700; }
.ex-q .txt { color: var(--ink-2); font-size: 0.9rem; }
.ex-rel { font-size: 0.82rem; color: var(--ink-2); margin-top: 0.6rem; max-width: 52rem; }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem 1.2rem; margin-top: 1rem; }
.ex-col h3 { font-size: 0.86rem; margin: 0 0 0.3rem; border-bottom: 1px solid var(--ink); padding-bottom: 0.2rem; }
.ex-col ol { list-style: none; }
.ex-col li { font-size: 0.8rem; line-height: 1.3; padding: 0.25rem 0 0.25rem 1.2rem; position: relative; border-bottom: 1px solid var(--rule-soft); }
.ex-col li .mk { position: absolute; left: 0; top: 0.25rem; }
.ex-col li .lab { color: var(--ink-3); font-size: 0.72rem; display: block; }

.dl { margin-top: 0.8rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1rem; }
.dl div { border-top: 1px solid var(--ink); padding-top: 0.5rem; font-size: 0.86rem; }
.dl ul { list-style: none; padding: 0; }
.dl li { margin-top: 0.2rem; max-width: none; }
table.plain { border-collapse: collapse; font-size: 0.85rem; margin-top: 0.8rem; }
.plain th, .plain td { text-align: left; padding: 0.3rem 0.8rem 0.3rem 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.plain th { border-bottom: 1px solid var(--ink); }

/* ---------- phone ---------- */
@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--rule-soft); }
  .side-inner { padding: 1rem 16px 1rem; }
  .stage { min-height: 0; padding: 1rem 16px; }
  .chart { grid-template-columns: 6.6rem repeat(4, minmax(0, 1fr)); column-gap: 0.5rem; grid-auto-rows: 3rem; }
  .c-head { font-size: 0.72rem; }
  .c-head .short { display: inline; }
  .c-head small, .c-head .long { display: none; }
  .c-model { font-size: 0.76rem; }
  .c-model small { display: none; }
  .bar-val { font-size: 0.68rem; }
  .c-cell { grid-template-columns: minmax(0, 1fr); }
  .c-cell .bar-val { position: absolute; right: 0; top: 0.1rem; }
  .reading { padding: 2rem 16px 0.5rem; }
}
