/* guide.css - The setup guide at /start/: the step list, one step at a time,
   and the small pictures of what each step looks like. Uses the public pages'
   colours (onboarding/base_public.html). */

/* The public card is 640px, for forms; the guide wants the room for its list
   of steps beside the step. */
.card:has(.guide) { max-width: 1000px; margin: 0 auto; }
.guide-top h1 { margin-bottom: 8px; }
.guide-top .lede { max-width: 62ch; }
.guide-progress { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; font-size: 13px; color: var(--muted); }
.guide-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--wash); overflow: hidden; }
.guide-bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .3s; }
.guide-machine { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.guide-machine button {
  border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px;
  padding: 7px 14px; font: inherit; font-weight: 600; cursor: pointer;
}
.guide-machine button[aria-checked="true"] { border-color: var(--accent); background: #fff7ed; color: var(--accent-dark); }

.guide-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.guide-rail { position: sticky; top: 16px; }
.guide-rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.guide-rail .phase { margin: 12px 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.guide-rail .phase:first-child { margin-top: 0; }
.guide-rail button {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer;
  border: 0; background: none; border-radius: 8px; padding: 7px 8px; font: inherit; font-size: 14px; color: var(--ink-soft);
}
.guide-rail button:hover { background: var(--wash); }
.guide-rail button[aria-current="step"] { background: #fff7ed; color: var(--accent-dark); font-weight: 600; }
.guide-rail .tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--line); font-size: 12px; font-weight: 700; color: var(--muted); background: #fff;
}
.guide-rail .done .tick { background: #059669; border-color: #059669; color: #fff; }

.g-step { padding-bottom: 8px; }
.g-step + .g-step { border-top: 1px solid var(--line); padding-top: 22px; }
.guide.stepping .g-step + .g-step { border-top: 0; padding-top: 0; }
.g-phase { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-dark); }
.g-step h2 { margin: 0 0 8px; font-size: 22px; }
.g-step h2 small { font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
.g-why { margin: 0 0 16px; font-size: 16px; color: var(--ink-soft); }
.g-do { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 8px; font-size: 15px; line-height: 1.5; }
.g-tip { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--wash); font-size: 13px; color: var(--muted); }
[hidden] { display: none !important; }

.guide-nav { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.guide-nav .guide-where { flex: 1; text-align: center; font-size: 13px; color: var(--muted); }
.guide-finished { text-align: center; padding: 20px 0 6px; }
.guide-finished .btn { margin: 4px; }

/* ------------------------------------------------- the pictures of each step */
.g-art {
  display: grid; place-items: center; min-height: 170px; max-width: 560px; padding: 18px; border-radius: 12px;
  background: linear-gradient(135deg, #f9fafb, #f3f4f6); border: 1px solid var(--line);
}
.g-art em, .g-art b { font-style: normal; }
.g-art > div {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
  box-shadow: 0 6px 18px rgba(17, 24, 39, .08); font-size: 13px; color: var(--ink-soft);
  display: grid; gap: 6px; min-width: 220px; max-width: 100%;
}
.g-art em { justify-self: start; background: #f97316; color: #fff; font-weight: 600; border-radius: 7px; padding: 6px 12px; }
.art-form i { display: block; height: 22px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 4px; }
.art-form b { background: #f97316; color: #fff; border-radius: 7px; padding: 7px 12px; justify-self: start; margin-top: 4px; }
.art-mail { border-top: 4px solid #f97316 !important; }
.art-browser { position: relative; padding-top: 34px !important; }
.art-url { position: absolute; top: 8px; left: 10px; right: 34px; font-size: 11px; color: var(--muted); background: var(--wash); border-radius: 999px; padding: 3px 10px; }
.art-star { position: absolute; top: 6px; right: 12px; color: #f59e0b; font-size: 16px; }
.art-pill { justify-self: start; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 999px; padding: 3px 11px; }
.art-warn { border-left: 4px solid #2563eb !important; }
.art-warn span { color: #2563eb; text-decoration: underline; }
.art-pair { text-align: center; justify-items: center; background: #111827 !important; color: #f9fafb !important; }
.art-pair b { font: 600 22px/1.2 ui-monospace, Consolas, monospace; letter-spacing: .12em; background: #fff; color: #111827; border-radius: 8px; padding: 8px 14px; }
.art-pin { display: flex !important; gap: 10px; justify-content: center; }
.art-pin i { width: 16px; height: 16px; border-radius: 50%; background: #111827; }
.art-floor { grid-template-columns: repeat(4, 34px); align-items: center; justify-content: center; gap: 10px !important;
  background-color: #f9fafb !important;
  background-image: linear-gradient(to right, rgba(0,0,0,.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(0,0,0,.05) 1px, transparent 1px) !important;
  background-size: 12px 12px !important; }
.art-floor .t { display: block; height: 34px; border-radius: 6px; background: #10b981; }
.art-floor .t.c { border-radius: 50%; }
.art-floor .t.w { background: #ef4444; }
.art-floor b, .art-menu b { grid-column: 1 / -1; justify-self: start; background: #f97316; color: #fff; border-radius: 7px; padding: 6px 12px; }
.art-menu span { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; justify-self: start; font-weight: 600; }
.art-bill { font-family: ui-monospace, Consolas, monospace; text-align: center; justify-items: center; }
.art-qr { justify-items: center; text-align: center; }
.art-qr.table { border-bottom: 6px solid #111827 !important; }
.art-ticket b { font-size: 15px; color: #111827; }
.art-owner { background: #111827 !important; color: #d1d5db !important; }
.art-owner b { font-size: 22px; color: #fff; }
.art-end { justify-items: center; }
.art-end span { border: 1px solid var(--line); border-radius: 7px; padding: 6px 12px; }
.art-end b { border: 1px solid #fecaca; color: #b91c1c; border-radius: 7px; padding: 6px 12px; }

@media (max-width: 760px) {
  .guide-body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .guide-rail { position: static; }
  .guide-rail ol { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
  .guide-rail .phase { display: none; }
  .guide-rail button { width: auto; padding: 4px; }
  .guide-rail .label { display: none; }
  .guide-rail button[aria-current="step"] .label { display: inline; }
}

/* --------------------------------------------- inside the help page (/help/) */
/* The help page has its own contents beside the article, so the guide's list of
   steps is the numbered strip a phone gets, above the step. */
.guide.in-help { margin: 18px 0 40px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius, 14px); background: var(--paper, #fff); }
.guide.in-help .guide-body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.guide.in-help .guide-rail { position: static; }
.guide.in-help .guide-rail ol { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 6px; }
.guide.in-help .guide-rail .phase { display: none; }
.guide.in-help .guide-rail button { width: auto; padding: 4px; }
.guide.in-help .guide-rail .label { display: none; }
.guide.in-help .guide-rail button[aria-current="step"] .label { display: inline; }
.guide.in-help .g-step h3 { margin-top: 0; font-size: 20px; color: var(--ink); }
.guide.in-help .g-step h3 small { font-size: 13px; font-weight: 600; color: var(--muted); }
.guide.in-help .guide-finished h2 { border: 0; margin-top: 0; }
/* The help page has no buttons of its own: the guide's, as the public pages draw them. */
.guide.in-help .btn {
  display: inline-block; padding: 10px 18px; border-radius: 8px; font: inherit; font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
}
.guide.in-help .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.guide.in-help .btn.primary:hover { background: var(--accent-dark); }
.guide.in-help .btn:disabled { opacity: .5; cursor: default; }
