/* More than answers: layers on site.css and uses only its tokens. */

.more-hero h1 {
  font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.25rem);
}

/* The purple phrase starts its own line, so it never breaks after "They". */
.more-hero h1 em {
  display: block;
}

/* The example needs the full width, so the copy sits above it. */
.more-hero .hero__grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}

.more-hero .hero__grid > div:first-child {
  max-width: 46rem;
}

/* ---------- Hero: the answer and the sermon it opens ---------- */

.opens {
  display: grid;
  gap: 20px;
  align-items: start;
}

@media (min-width: 720px) {
  .opens {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .opens .example-note {
    grid-column: 1 / -1;
  }
}

.opens__hint {
  margin-top: 16px;
  color: var(--quiet);
  font-size: var(--step--2);
  font-weight: 600;
}

.opens__cites {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.opens__cite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 8px 10px 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: 600 var(--step--1) / 1.3 var(--sans);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background-color 0.15s;
}

.opens__cite:hover {
  border-color: var(--control-edge);
  background: var(--surface-soft);
}

.opens__cite[aria-pressed="true"] {
  border-color: var(--purple);
  background: var(--tint);
}

.opens__title {
  min-width: 0;
}

.sheet__head {
  padding: 16px 18px 14px;
  background: var(--purple);
}

.sheet__kicker {
  color: var(--tint);
  font-size: var(--step--2);
}

.sheet__title {
  margin-top: 6px;
  color: var(--on-purple);
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.sheet__body {
  padding: 16px 18px 20px;
}

.sheet__summary {
  font-size: var(--step-ui);
  line-height: 1.55;
}

.sheet__label {
  margin: 16px 0 6px;
  color: var(--quiet);
  font-family: var(--sans);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0;
}

.sheet__points {
  display: grid;
  gap: 4px;
  padding-left: 1.2em;
  font-size: var(--step-ui);
}

.sheet__cols {
  display: grid;
  gap: 0 12px;
}

@media (min-width: 420px) {
  .sheet__cols {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.sheet__list {
  display: grid;
  gap: 6px;
  padding: 0;
  list-style: none;
}

.sheet__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  font-size: var(--step--1);
  line-height: 1.35;
}

.sheet__list .t {
  color: var(--purple);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* The row the answer cited: gold marks what is ready to play. */
.sheet__list li.is-lit {
  background: var(--gold-soft);
  box-shadow: inset 0 0 0 1px var(--gold-edge);
}

.sheet__list li.is-lit .t {
  color: var(--gold-ink);
}

@media (prefers-reduced-motion: no-preference) {
  .sheet.is-changing .sheet__body {
    animation: sheet-in 0.45s var(--ease-out) both;
  }
}

@keyframes sheet-in {
  from {
    opacity: 0.35;
    transform: translateY(6px);
  }
}

/* ---------- Story index ---------- */

.index__search {
  position: relative;
  display: block;
  margin: 16px 18px 4px;
}

.index__search[hidden] {
  display: none;
}

.index__search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--quiet);
  pointer-events: none;
}

.index__search input {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 42px;
  border: 1px solid var(--control-edge);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: 1rem var(--sans);
}

.index__search input::placeholder {
  color: var(--quiet);
  opacity: 1;
}

.index__search input:focus {
  outline: 2px solid transparent;
  border-color: var(--purple);
  box-shadow:
    0 0 0 1px var(--purple),
    var(--ring);
}

.index__list {
  display: grid;
  padding: 8px 18px 14px;
  list-style: none;
}

.index__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.index__list li:first-child {
  border-top: 0;
}

.index__list li[hidden] {
  display: none;
}

.index__main b {
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
}

.index__main small {
  color: var(--muted);
  font-size: var(--step--1);
}

.index__src {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--quiet);
  font-size: var(--step--2);
}

/* The story index times are labels: in the example nothing plays. */
.index__src .chip {
  padding-inline: 0;
  border-color: transparent;
  background: none;
  color: var(--purple);
}

.index__empty {
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: var(--step--1);
}

/* ---------- Reading trail ---------- */

.trail {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.trail__lead {
  color: var(--muted);
}

.trail__steps {
  position: relative;
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding: 0 0 0 26px;
  list-style: none;
}

.trail__steps::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--tint-strong);
}

.trail__steps li {
  position: relative;
}

.trail__steps li::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 6px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--purple);
  border-radius: 50%;
  background: var(--surface);
}

.trail__steps small {
  display: block;
  color: var(--quiet);
  font-size: var(--step--2);
  font-weight: 600;
}

.trail__steps b {
  font-family: var(--serif);
  font-weight: 700;
}

/* ---------- Verse index ---------- */

.concord table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step-ui);
}

.concord th,
.concord td {
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
}

.concord thead th {
  border-top: 0;
  color: var(--quiet);
  font-size: var(--step--2);
  font-weight: 600;
  white-space: nowrap;
}

.concord tbody th {
  font-family: var(--serif);
  font-weight: 700;
  white-space: nowrap;
}

.concord td:last-child,
.concord thead th:last-child {
  color: var(--purple);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.concord thead th:last-child {
  color: var(--quiet);
}

.concord__note {
  margin: 0;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--line);
}

/* A narrow phone scrolls the table rather than cutting it off. */
.concord {
  overflow-x: auto;
}

@media (max-width: 480px) {
  .concord th,
  .concord td {
    padding: 12px 10px;
  }

  .concord tbody th {
    white-space: normal;
  }
}

/* ---------- Study guide ---------- */

.paper__file {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.paper__page {
  padding: 22px 24px 26px;
}

.paper__page h3 {
  font-size: 1.375rem;
}

.paper__sub {
  margin-top: 4px;
  color: var(--quiet);
  font-size: var(--step--1);
}

.paper__page h4 {
  margin: 18px 0 4px;
  color: var(--purple);
  font-size: var(--step--1);
  font-weight: 600;
}

.paper__page p,
.paper__page li {
  color: var(--muted);
  font-size: var(--step-ui);
}

.paper__page ol {
  display: grid;
  gap: 4px;
  padding-left: 1.2em;
}
