/* The guides under /navody/ (tools/navody.py). Built on /pre/pre.css; only what the guides add lives here. */
.guide-hero { padding-bottom: 28px; }
.guide-hero .sub { max-width: 640px; }
.narrow { max-width: 780px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The assistant's number, filled from ?cislo */
.numbox { margin-top: 22px; display: flex; gap: 14px; align-items: flex-start; max-width: 640px; padding: 16px 18px; background: #fff; border: 2px solid var(--ink); border-radius: 20px; box-shadow: 0 5px 0 var(--ink); }
.numbox .fi { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--sky-2); }
.numbox b { display: block; font: 700 17px/1.3 var(--display); }
.numbox .num { display: block; margin-top: 2px; font: 700 20px/1.3 ui-monospace, Menlo, monospace; color: var(--blue); }
.numbox.has .num { color: var(--ink); }
.numbox small { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
.numbox.has small { display: none; }
.numbox code { font-size: 13px; background: var(--sky-1); padding: 1px 5px; border-radius: 6px; }

/* A code that copies itself */
.code { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 9px 10px 9px 14px; border: 2px solid var(--ink); border-radius: 14px; background: var(--sun-1); color: var(--ink); cursor: pointer; font: inherit; text-align: left; box-shadow: 0 3px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.code:hover { background: var(--sun); }
.code:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.code:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.code-tx { font: 700 16px/1.3 ui-monospace, Menlo, monospace; overflow-wrap: anywhere; }
.code-cp { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.code-cp svg { width: 16px; height: 16px; }
.code.done .code-cp { color: var(--green); }

/* A: steps under each other */
.vsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.vsteps > li { display: flex; gap: 16px; padding: 20px 22px; background: #fff; border: 2px solid var(--ink); border-radius: 24px; box-shadow: 0 5px 0 var(--ink); }
.vsteps .n { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); border: 2px solid var(--ink); font: 700 20px/1 var(--display); }
.vsteps h3 { font-size: 20px; line-height: 1.25; margin-top: 6px; }
.vsteps p { margin-top: 6px; color: var(--ink-2); }
.vsteps > li > div { min-width: 0; flex: 1; }
.crows { margin-top: 14px; display: grid; gap: 10px; }
.crow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 2px solid var(--line); border-radius: 16px; background: var(--sky-1); }
.crow .cl { font-weight: 700; min-width: 0; flex: 1 1 220px; }
.crow .cl small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.crow.wide { margin-top: 18px; background: #fff; border-color: var(--ink); border-radius: 20px; padding: 16px 18px; }
.crow .codes { display: flex; flex-wrap: wrap; gap: 8px; }
.note-op { margin-top: 12px; display: flex; gap: 8px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.note-op svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--blue); }
.note-op.warn { max-width: 640px; margin-top: 16px; padding: 12px 14px; background: var(--coral-1); border-radius: 14px; }
.note-op.warn svg { color: var(--coral); }

/* B: a drawn phone beside the steps */
.guide-b { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: center; }
.phone { width: 280px; margin: 0 auto; padding: 14px; border: 3px solid var(--ink); border-radius: 40px; background: var(--ink); box-shadow: 0 8px 0 rgba(29, 42, 68, .25); }
.ph-scr { background: #fff; border-radius: 28px; padding: 22px 16px 18px; display: grid; justify-items: center; gap: 14px; }
.ph-op { font-size: 13px; font-weight: 700; color: var(--muted); }
.ph-code { width: 100%; display: grid; }
.ph-code .code { justify-content: space-between; }
.ph-keys { display: grid; grid-template-columns: repeat(3, 52px); gap: 10px; }
.ph-keys span { height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-1); font: 600 22px/1 var(--display); color: var(--ink); }
.ph-call { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #22b45a; color: #fff; }
.ph-call svg { width: 26px; height: 26px; }
.guide-b-tx h2 { font-size: 30px; }
.guide-b .chips { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.guide-b .chip { padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font: 700 15px/1.2 var(--body); color: var(--ink); cursor: pointer; }
.guide-b .chip[aria-pressed="true"] { background: var(--sun); box-shadow: 0 3px 0 var(--ink); }
.mini-steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.mini-steps li { display: flex; gap: 12px; align-items: flex-start; }
.mini-steps b { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); border: 2px solid var(--ink); font: 700 15px/1 var(--display); }
.mini-steps span { padding-top: 3px; color: var(--ink-2); }

/* C: one card per situation */
.situs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.situs.one { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
.situ { display: grid; gap: 12px; align-content: start; padding: 20px; background: #fff; border: 2px solid var(--ink); border-radius: 24px; box-shadow: 0 5px 0 var(--ink); }
.situ .fi { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; }
.situ .t0 { background: var(--sky-2); } .situ .t1 { background: var(--coral-1); } .situ .t2 { background: var(--lav-1); } .situ .t3 { background: var(--sun-1); }
.situ h3 { font-size: 19px; line-height: 1.3; }
.situ .code { justify-content: space-between; }
.situ.wide { margin-top: 18px; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.situ.wide p { margin-top: 2px; color: var(--ink-2); font-size: 15px; }

/* Cancelling, other operators, the index */
.offs { display: flex; flex-wrap: wrap; gap: 10px; }
.src { margin-top: 18px; font-size: 15px; color: var(--muted); }
.src a, .vsteps a, .faq a { color: var(--blue); }
.op-links { display: flex; flex-wrap: wrap; gap: 10px; }
.op-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 700; color: var(--ink); text-decoration: none; }
.op-link:hover { background: var(--sun-1); }
.op-link svg { width: 18px; height: 18px; }
.mail-btn { margin-top: 14px; }
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.g-card { display: grid; gap: 6px; padding: 18px; background: #fff; border: 2px solid var(--ink); border-radius: 22px; box-shadow: 0 5px 0 var(--ink); color: var(--ink); text-decoration: none; }
.g-card:hover { background: var(--sun-1); }
.g-card .fi { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--sky-2); margin-bottom: 4px; }
.g-card b { font: 700 19px/1.25 var(--display); }
.g-card small { color: var(--muted); font-size: 14px; }

@media (max-width: 860px) {
  .guide-b { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .guide-b-tx { order: -1; }
  .situs { grid-template-columns: minmax(0, 1fr); }
  .situ.wide { grid-template-columns: auto minmax(0, 1fr); }
  .situ.wide .code { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .vsteps > li { padding: 16px; gap: 12px; }
  .vsteps .n { width: 34px; height: 34px; font-size: 17px; }
  .crow .code, .situ .code { width: 100%; justify-content: space-between; }
  .phone { width: 250px; }
  .ph-keys { grid-template-columns: repeat(3, 46px); }
  .ph-keys span { height: 46px; }
}

/* centred like the hero and the section headings of pre.css */
.guide-hero .numbox, .guide-hero .note-op.warn { margin-left: auto; margin-right: auto; text-align: left; }
.offs, .op-links { justify-content: center; }
.src { text-align: center; }
.ph-code[hidden] { display: none; }
/* in narrow boxes the copy label goes under the code, so the code keeps one line */
.ph-code .code, .situ:not(.wide) .code { flex-direction: column; align-items: flex-start; gap: 4px; }
.ph-code .code-tx { font-size: 14px; overflow-wrap: normal; white-space: nowrap; }
.situ:not(.wide) .code-tx { white-space: nowrap; }

/* the guide video (video/navody.py), the landing page's player: no browser bar, a round sound button */
.vid { position: relative; max-width: 480px; aspect-ratio: 1; margin: 0 auto 28px; border-radius: 28px; overflow: hidden; background: var(--sky-1); border: 2px solid var(--ink); box-shadow: 0 6px 0 var(--ink); cursor: pointer; }
.vid video { display: block; width: 100%; height: 100%; }
.vid-play { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px 0 8px; border-radius: 999px; border: 3px solid var(--ink); background: var(--sun); box-shadow: 0 4px 0 var(--ink); font: 800 16px var(--body); color: var(--ink); cursor: pointer; white-space: nowrap; }
.vid-play span { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.vid-play .lucide { width: 16px; height: 16px; fill: currentColor; }
.vid-play[hidden], .vid-sound[hidden] { display: none; }
.vid-sound { position: absolute; right: 14px; bottom: 14px; width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 3px solid var(--ink); background: var(--sun); box-shadow: 0 3px 0 var(--ink); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.vid-sound .lucide { width: 20px; height: 20px; }
.vid-sound[aria-pressed="true"] .off, .vid-sound[aria-pressed="false"] .on { display: none; }
.vid-again { right: auto; left: 14px; }
@media (max-width: 380px) { .vid-play { gap: 6px; padding-right: 14px; font-size: 15px; } }

/* getting-started guides: the next step under the steps */
.guide-cta { margin-top: 28px; }
.guide-cta .btn .lucide { width: 18px; height: 18px; margin-left: 6px; }
