/* The walkthrough page (/how-to-do-secret-santa-online): site.css does the
   paper, the tags on twine, the header and footer; this adds the steps table,
   the step labels, the screenshots and the sending table. Colours come from
   site.css's tokens, so the dark theme follows. */

/* Where on the draw page a step happens: a small label over its heading. */
.tut-where {
  margin: 0 0 0.35rem; color: var(--cran);
  font: 600 0.95rem/1.3 var(--sans); letter-spacing: 0.08em; font-variant-caps: all-small-caps;
}
.panel ul, .panel ol { padding-left: 1.25rem; margin: 0 0 0.9rem; }
.panel li { margin: 0 0 0.45rem; }
.panel li::marker { color: var(--cran); }

/* The short version: the steps table, the page's answer. Step names link
   to their sections; the last column is what people get at that point. */
.tut-steps-table th[scope="row"] { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.tut-steps-table th[scope="row"] a { color: var(--link); }
.tut-steps-table td:last-child { color: var(--muted); }
@media (max-width: 480px) {
  .tut-steps-table th, .tut-steps-table td { padding: 8px 7px; font-size: 0.92rem; }
  .tut-steps-table th[scope="row"] { white-space: normal; }
}

/* Each H2 with its intro on the paper, then its steps as tags on twine. */
.tut-group > p { color: var(--ground-ink); }
.tut-group + .tut-group { margin-top: 2.25rem; }
.tut-group > h2 { text-wrap: balance; }
.panel > h3 { margin-top: 0; font-size: 1.3rem; text-wrap: balance; }

/* Screenshots: a phone shot on narrow screens, a computer shot on wide ones,
   running out into the tag's padding so the text in them stays readable. */
.shot { margin: 1.1rem -8px 1.25rem; }
@media (min-width: 560px) { .shot { margin-left: -14px; margin-right: -14px; } }
.shot picture { display: block; }
.shot img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--paper);
}
.shot figcaption { margin: 0.5rem 8px 0; color: var(--muted); font-size: 0.92rem; }
@media (min-width: 560px) { .shot figcaption { margin-left: 14px; margin-right: 14px; } }
/* The tall phone shots need not fill a wide column. */
@media (min-width: 600px) { .shot-narrow img { max-width: 30rem; margin: 0 auto; } }

/* How to send, per app. */
.tut-table-wrap { margin: 0.25rem 0 1rem; }
.tut-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.tut-table th, .tut-table td { text-align: left; vertical-align: top; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--rule); }
.tut-table thead th { font-size: 0.9rem; color: var(--muted); letter-spacing: 0.06em; font-variant-caps: all-small-caps; border-bottom-color: var(--line-strong); }
.tut-table tbody th { font-weight: 600; width: 30%; }
@media (max-width: 379px) {
  /* At 320 px the two columns get too narrow: stack each row. */
  .tut-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tut-table tr, .tut-table th, .tut-table td { display: block; width: auto; }
  .tut-table tbody th { width: auto; padding-bottom: 0; border-bottom: 0; }
  .tut-table td { padding-top: 2px; }
}

.tut-next { text-align: center; margin: 2rem 0 0; font-size: 1.1rem; color: var(--ground-ink); }
.tut-next a { color: var(--ground-ink); font-weight: 600; }

/* Names of buttons and fields on the draw page. */
b.ui { font-weight: 600; }
.nowrap { white-space: nowrap; }
