/* sQRo manual – shared styles (used together with Tailwind CDN) */
body { font-family: 'Sarabun', sans-serif; }
h1, h2, h3 { font-family: 'Prompt', 'Sarabun', sans-serif; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

/* Screenshot with numbered tap markers */
.shot { position: relative; display: block; width: 100%; border-radius: 1rem; overflow: hidden;
  border: 1px solid #e2e8f0; background: #f8fafc; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); cursor: zoom-in; padding: 0; }
.shot img { display: block; width: 100%; height: auto; }
.tap { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 9999px;
  background: #e11d48; color: #fff; font: 700 16px/34px 'Prompt', sans-serif; text-align: center;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .95), 0 4px 12px rgba(0, 0, 0, .35); pointer-events: none; }
.tap::after { content: ''; position: absolute; inset: -10px; border-radius: 9999px; border: 3px solid #e11d48;
  animation: tap-pulse 1.6s ease-out infinite; }
@keyframes tap-pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tap::after { animation: none; opacity: .5; } }
/* Same marker used inline in a legend list next to the screenshot */
.tap.tap-legend { position: relative; flex: none; margin: 0; }
@media (max-width: 640px) { .tap { width: 26px; height: 26px; margin: -13px 0 0 -13px; font-size: 13px; line-height: 26px; } }

/* Inline label that looks like the on-screen button */
.ui { display: inline-block; padding: 0 .45em; border-radius: .4em; background: #ede9fe; color: #5b21b6;
  font-weight: 700; white-space: nowrap; }

/* Step number bubble */
.step-no { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 9999px; background: #6C63FF; color: #fff;
  display: grid; place-items: center; font: 700 1.1rem 'Prompt', sans-serif; }

/* Lightbox */
#lightbox { max-width: min(96vw, 1400px); width: 100%; padding: 0; border: 0; background: transparent; }
#lightbox::backdrop { background: rgba(15, 23, 42, .85); }
#lightbox .shot { cursor: zoom-out; border: 0; }

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .chev { transform: rotate(180deg); }

/* Video block: "coming soon" card until a YouTube link is set, then a click-to-play embed */
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 1rem; overflow: hidden; background: #1e1b4b;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.video-frame iframe, .video-frame .video-play, .video-soon, .video-soon img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-soon img { object-fit: cover; filter: blur(3px) brightness(.45); transform: scale(1.05); }
.video-soon-body { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1rem; text-align: center; color: #fff; }
.video-soon-icon { width: 3.5rem; height: 3.5rem; margin-bottom: .75rem; border-radius: 9999px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .15); border: 2px dashed rgba(255, 255, 255, .6); font-size: 1.25rem; }
.video-play { padding: 0; cursor: pointer; background: #000; }
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.video-play:hover img { opacity: 1; }
.video-play span { position: absolute; left: 50%; top: 50%; width: 4.5rem; height: 3.2rem; margin: -1.6rem 0 0 -2.25rem;
  border-radius: .9rem; background: #e11d48; color: #fff; display: grid; place-items: center; font-size: 1.4rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .4); transition: transform .2s; }
.video-play:hover span, .video-play:focus-visible span { transform: scale(1.1); }
@media (max-width: 640px) { .video-soon-icon { display: none; } }

/* The hidden attribute must win over Tailwind display utilities (search filter, tabs) */
[hidden] { display: none !important; }

/* Setup path bar under the sticky header of every guide page */
.jn-bar { border-top: 1px solid #ede9fe; background: #faf9ff; }
.jn-inner { max-width: 72rem; margin: 0 auto; padding: .4rem 1rem; display: flex; align-items: center; gap: .75rem; }
.jn-home { flex: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 2.5rem; padding: 0 .85rem;
  border-radius: .75rem; background: #fff; border: 1px solid #ddd6fe; color: #5b21b6; font-weight: 700; }
.jn-home:hover { background: #f5f3ff; }
.jn-where { flex: 1; min-width: 0; display: flex; align-items: center; gap: .5rem; min-height: 2.5rem; padding: 0 .85rem;
  border-radius: .75rem; background: #fff; border: 1px solid #e2e8f0; text-align: left; font-size: .95rem; cursor: pointer; }
.jn-where:hover { border-color: #a78bfa; }
.jn-where b { flex: none; color: #6d28d9; }
.jn-where span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #334155; }
.jn-where i { flex: none; font-style: normal; font-weight: 700; color: #6d28d9; font-size: .875rem; }
.jn-progress { height: 4px; background: #ede9fe; }
.jn-progress i { display: block; height: 100%; background: #6C63FF; transition: width .3s; }
@media (min-width: 640px) { .jn-inner { padding: .5rem 1.5rem; } }
@media (max-width: 640px) {
  .jn-where { font-size: .875rem; padding: 0 .6rem; }
  .jn-where i { font-size: 0; } .jn-where i::before { content: '☰'; font-size: 1.1rem; }
  .jn-where b { font-weight: 700; }
}
@media (max-width: 400px) { .jn-where span { display: none; } }

/* "All steps" dialog */
.jn-dialog { width: min(92vw, 28rem); max-height: 85vh; padding: 0; border: 0; border-radius: 1.25rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .35); }
.jn-dialog::backdrop { background: rgba(15, 23, 42, .5); }
.jn-dialog-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.25rem; background: #fff; border-bottom: 1px solid #e2e8f0; font-family: 'Prompt', sans-serif; font-size: 1.1rem; }
.jn-dialog-head button { width: 2.25rem; height: 2.25rem; border-radius: 9999px; background: #f1f5f9; font-size: 1rem; }
.jn-count { padding: .75rem 1.25rem 0; color: #64748b; font-size: .9rem; }
.jn-dialog-home { display: block; margin: .5rem 1.25rem 1.25rem; padding: .8rem; border-radius: .9rem; text-align: center;
  background: #f5f3ff; color: #5b21b6; font-weight: 700; }
.jn-list { padding: .5rem 1.25rem; }
.jn-list > li { padding: .3rem 0; }
.jn-row { display: flex; align-items: center; gap: .75rem; padding: .45rem .5rem; border-radius: .75rem; font-weight: 700; }
a.jn-row:hover { background: #f5f3ff; }
.jn-row small { font-weight: 500; color: #b45309; }
.jn-dot { flex: none; width: 2rem; height: 2rem; border-radius: 9999px; display: grid; place-items: center;
  background: #ede9fe; color: #5b21b6; font: 700 .95rem 'Prompt', sans-serif; }
.jn-list > li.is-done .jn-dot { background: #16a34a; color: #fff; }
.jn-list > li.is-here > .jn-row { background: #f5f3ff; outline: 2px solid #c4b5fd; }
.jn-list > li.is-soon { color: #94a3b8; }
.jn-list > li.is-soon .jn-dot { background: #f1f5f9; color: #94a3b8; }
.jn-sub { margin: .15rem 0 .25rem 1.4rem; padding-left: 1.1rem; border-left: 2px solid #ede9fe; }
.jn-sub a { display: flex; gap: .6rem; align-items: center; padding: .3rem .5rem; border-radius: .6rem; color: #475569; }
.jn-sub a:hover { background: #f5f3ff; }
.jn-sub a span { flex: none; width: 1.4rem; height: 1.4rem; border-radius: 9999px; display: grid; place-items: center;
  background: #f1f5f9; font-size: .75rem; font-weight: 700; }
.jn-sub a.is-done span { background: #16a34a; color: #fff; }
.jn-sub a.is-here { background: #f5f3ff; color: #4c1d95; font-weight: 700; outline: 2px solid #c4b5fd; }

/* End-of-page "done → next" block */
.jn-end { margin-top: 4rem; }
.jn-next { display: block; padding: 1.1rem 1.4rem; border-radius: 1.1rem; background: #6C63FF; color: #fff;
  font: 700 1.2rem/1.4 'Prompt', sans-serif; box-shadow: 0 6px 18px rgba(108, 99, 255, .35); }
.jn-next:hover { background: #5b52f0; }
.jn-next small { display: block; font: 500 .9rem 'Sarabun', sans-serif; color: #ddd6fe; margin-bottom: .15rem; }
.jn-note { margin-top: .6rem; color: #b45309; font-size: .95rem; }
.jn-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-top: 1rem; }
.jn-links a { color: #64748b; font-weight: 600; padding: .4rem 0; }
.jn-links a:hover { color: #6d28d9; }

/* Hub: setup checklist rows */
.setup-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: 1.1rem; background: #fff;
  border: 1px solid #e2e8f0; }
a.setup-row:hover { border-color: #a78bfa; box-shadow: 0 1px 6px rgba(108, 99, 255, .12); }
.setup-row .go { flex: none; font-weight: 700; color: #6d28d9; white-space: nowrap; }
.is-done > .setup-row .step-no, .setup-row.is-done .step-no { background: #16a34a; font-size: 0; }
.is-done > .setup-row .step-no::before, .setup-row.is-done .step-no::before { content: '✓'; font-size: 1.1rem; }
.done-tag { display: none; color: #15803d; font-weight: 700; font-size: .85rem; }
.is-done .done-tag, .setup-row.is-done .done-tag { display: inline; }
.role-tab { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; padding: 0 1rem; border-radius: 9999px;
  border: 1px solid #e2e8f0; background: #fff; font-weight: 700; }
.role-tab:hover { border-color: #a78bfa; }
.role-tab[aria-selected="true"] { background: #6C63FF; border-color: #6C63FF; color: #fff; }
.sub-list { margin: .35rem 0 0 1.1rem; }
.sub-list > summary { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .6rem; border-radius: .6rem;
  color: #6d28d9; font-weight: 600; font-size: .95rem; }
.sub-list > summary:hover { background: #f5f3ff; }
.sub-list ol { margin: .25rem 0 .25rem .6rem; padding-left: .9rem; border-left: 2px solid #ede9fe; }
.sub-link { display: flex; align-items: center; gap: .6rem; padding: .4rem .5rem; border-radius: .6rem; color: #334155; font-weight: 600; }
.sub-link:hover { background: #f5f3ff; color: #5b21b6; }
.sub-no { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 9999px; display: grid; place-items: center;
  background: #ede9fe; color: #5b21b6; font: 700 .8rem 'Prompt', sans-serif; }
li.is-done > .sub-link .sub-no { background: #16a34a; color: transparent; position: relative; }
li.is-done > .sub-link .sub-no::before { content: '✓'; position: absolute; color: #fff; }

/* Lightbox: tall phone / portrait tablet screenshots fit the screen height */
#lightbox { text-align: center; }
#lightbox .shot { display: inline-block; width: auto; max-width: 100%; }
#lightbox .shot img { width: auto; max-width: 100%; max-height: 92vh; }
