/* Static prose pages: FAQ, terms, privacy and the seller disclosure. */
.doc {
  margin-top: 8px;
}

.doc__title {
  margin: 12px 0 4px;
  font-size: var(--type-page);
  font-weight: 700;
  line-height: 1.3;
}

.doc__updated {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: var(--type-caption);
}

.doc h2 {
  margin: 32px 0 8px;
  font-size: var(--type-section);
  line-height: 1.3;
}

.doc h3 {
  margin: 20px 0 6px;
  font-size: var(--type-body);
}

.doc p,
.doc li,
.doc dd {
  color: var(--ink-soft);
  font-size: var(--type-body);
  line-height: 1.6;
}

.doc ul,
.doc ol {
  padding-left: 20px;
}

.doc li + li {
  margin-top: 6px;
}

/* One question per row, closed until asked. */
.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  color: var(--ink);
  font-size: var(--type-body);
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  flex: none;
  content: "+";
  color: var(--muted);
  font-size: 1.25rem;
  font-weight: 400;
}

.faq__item[open] summary::after {
  content: "−";
}

.faq__item p {
  margin: 0 0 12px;
}

/* The seller disclosure reads as label and value rows. */
.doc__facts {
  margin: 16px 0 0;
}

.doc__fact {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.doc__fact dt {
  color: var(--muted);
  font-size: var(--type-caption);
  font-weight: 600;
}

.doc__fact dd {
  margin: 2px 0 0;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  margin-top: 24px;
}

.legal-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink-soft);
  font-size: .75rem;
  text-decoration: none;
}

.auth__agreement {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-caption);
  line-height: 1.5;
}

/* ----- FAQ figures: pictures that back up an answer, never replace it. ----- */
.faq-figure {
  margin: 4px 0 14px;
  padding: 12px;
  border-radius: var(--radius-panel);
  background: var(--surface);
}

/* The overnight window: a 24-hour track from noon to noon. */
.night {
  display: grid;
  gap: 10px;
}

.night__label {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: var(--type-caption);
}

.night__track {
  position: relative;
  height: 12px;
  border-radius: 6px;
  background: var(--bar-track);
}

.night__window {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 6px;
  background: var(--bar);
}

.night__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: var(--type-caption);
}

.night__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.night__swatch {
  width: 14px;
  height: 8px;
  border-radius: 3px;
  background: var(--bar);
}

.night__swatch--now {
  width: 2px;
  height: 14px;
  border-radius: 0;
  background: var(--ink);
}

.night__now {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  margin-left: -1px;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--surface);
}

.night__midnight {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1px dashed color-mix(in srgb, var(--bg) 55%, transparent);
}

.night__axis {
  position: relative;
  height: 2.4rem;
  color: var(--muted);
  font-size: var(--type-caption);
  line-height: 1.2;
}

.night__tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}

.night__tick--end {
  transform: translateX(-70%);
}

.night__tick strong {
  display: block;
  color: var(--ink-soft);
  font-weight: 600;
}

/* Four models to one median, on the bar's own 0 to 50 cm scale. */
.models {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: 8px 10px;
  margin: 0;
}

.models__name {
  color: var(--ink-soft);
  font-size: var(--type-caption);
}

.models__track {
  position: relative;
  height: 4px;
  border-radius: 4px;
  background: var(--bar-track);
}

.models__fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--faint);
}

.models__value {
  color: var(--ink-soft);
  font-size: var(--type-caption);
  text-align: right;
}

.models__rule {
  grid-column: 1 / -1;
  height: 1px;
  background: var(--line);
}

.models__name--median,
.models__value--median {
  color: var(--ink);
  font-size: var(--type-body);
  font-weight: 700;
}

/* Grades as spreads of four model dots. */
.spreads {
  display: grid;
  gap: 12px;
}

.spread {
  display: grid;
  grid-template-columns: max(22px, 1.0625rem) minmax(0, 1fr);
  align-items: start;
  gap: 4px 10px;
}

.spread .grade {
  grid-row: 1 / 3;
  margin-top: 1px;
}

.spread__label {
  color: var(--ink-soft);
  font-size: var(--type-caption);
  line-height: 1.4;
}

.spread__track {
  position: relative;
  height: 14px;
  border-radius: 4px;
}

.spread__track::before {
  position: absolute;
  top: 5px;
  right: 0;
  left: 0;
  height: 4px;
  border-radius: 4px;
  background: var(--bar-track);
  content: "";
}

.spread__range {
  position: absolute;
  top: 5px;
  height: 4px;
  border-radius: 4px;
  background: currentcolor;
  opacity: .45;
}

.spread__dot {
  position: absolute;
  top: 3px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--ink-soft);
  box-shadow: 0 0 0 2px var(--surface);
}

.spread__scale {
  display: flex;
  justify-content: space-between;
  margin-left: calc(max(22px, 1.0625rem) + 10px);
  color: var(--faint);
  font-size: var(--type-caption);
}

/* Live rows: the real list partial, inert, on sample data. */
.faq-figure .rows {
  margin: -4px 0 0;
}

.faq-figure .row:last-child {
  border-bottom: 0;
}

/* The distance placeholder there reads like the snowfall dash. */
.faq-figure .row__meta {
  display: none;
}
