/* Instruction manual (help.html). Uses the OVG tokens from ovg.css — no new
 * brand colours, per the design system's "extend the tokens, don't invent"
 * rule. Layout only. */

.help-page {
  max-width: 1000px;
}

.help-h1 {
  font-size: 30px;
  margin: 4px 0 0;
}

.help-lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 62ch;
  margin: 16px 0 0;
}

.help-h2 {
  font-size: 21px;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Numbered step badge — navy circle, white numeral (12.6:1). */
.help-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  flex: 0 0 auto;
}

.help-tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-dark);
  border: 1px solid rgba(184, 132, 32, 0.45);
  border-radius: 999px;
  padding: 3px 10px;
}

.help-section {
  margin-top: 44px;
}

.help-tldr {
  margin-top: 28px;
  border-left: 4px solid var(--gold);
}

.help-steps {
  margin: 14px 0 0;
  padding-left: 22px;
  font-size: 17px;
  line-height: 1.75;
}

.help-list {
  margin: 12px 0 0;
  padding-left: 22px;
  line-height: 1.7;
}

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

.help-note {
  margin: 14px 0 0;
  color: var(--text-secondary);
  font-size: 15px;
}

/* Text beside a screenshot. Two columns on desktop, stacked on phones — the
 * screenshots are phone-shaped and tall, so side-by-side is what keeps this
 * readable rather than an endless vertical scroll. */
.help-split {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
  margin-top: 16px;
}

.help-split + .help-split {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid rgba(28, 53, 94, 0.08);
}

/* When the figure is written first in the markup it still reads left, which is
 * how the alternating rhythm is achieved without reordering the DOM (screen
 * readers get the same order they see). */
.help-split > .help-shot:first-child {
  order: -1;
}

.help-text p {
  line-height: 1.7;
}

.help-text-full {
  line-height: 1.7;
  margin-top: 14px;
  max-width: 70ch;
}

.help-shot {
  margin: 0;
}

.help-shot img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(28, 53, 94, 0.14);
  border-radius: var(--radius-card);
  box-shadow:
    0 1px 2px rgba(28, 53, 94, 0.06),
    0 10px 28px rgba(28, 53, 94, 0.08);
}

.help-shot figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.help-shot-wide {
  margin-top: 28px;
  max-width: 420px;
}

/* Callouts — tinted boxes, meaning always carried by the words as well as the
 * colour (design system §6: never colour alone). */
.help-callout {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-button);
  line-height: 1.65;
  font-size: 15px;
}

.help-warn {
  background: var(--warning-bg);
  color: var(--warning-text);
  border: 1px solid rgba(146, 64, 14, 0.22);
}

.help-note-box {
  background: #eef3fb;
  color: var(--navy);
  border: 1px solid rgba(28, 53, 94, 0.16);
}

.help-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
}

.help-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.help-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 10px 14px;
  border-bottom: 2px solid rgba(28, 53, 94, 0.12);
  white-space: nowrap;
}

.help-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(28, 53, 94, 0.08);
  vertical-align: top;
  line-height: 1.6;
}

.help-table tr:last-child td {
  border-bottom: none;
}

.help-table td:first-child {
  white-space: nowrap;
  color: var(--navy);
}

.help-colour-key {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.help-foot {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(28, 53, 94, 0.1);
  color: var(--text-secondary);
  font-size: 15px;
}

@media (max-width: 767px) {
  .help-split {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* Stacked, the picture belongs AFTER the words that explain it. */
  .help-split > .help-shot:first-child {
    order: 0;
  }

  .help-shot {
    max-width: 360px;
  }

  .help-h1 {
    font-size: 25px;
  }

  .help-lede {
    font-size: 16px;
  }

  .help-table td:first-child {
    white-space: normal;
  }
}

/* Printable — chefs may well want this on paper by the pass. */
@media print {
  .topbar,
  .help-foot {
    display: none;
  }

  .help-section {
    break-inside: avoid;
    margin-top: 26px;
  }

  .help-shot img {
    box-shadow: none;
  }

  .help-callout,
  .help-table th,
  .badge {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
