/* User Guide page (guide.html) — embedded chapter guide.
   Loaded alongside styles.css, so it inherits the shared :root tokens. */

.guide-section { padding: 30px 0 84px; background: linear-gradient(180deg, #faf7f4 0, #fff 100%); }
.guide-layout { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 46px; align-items: start; max-width: none; margin: 0; }

.guide-nav { position: sticky; top: 92px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.guide-nav-head { padding: 18px 18px 4px; }
.guide-nav-head .eyebrow { margin: 0 0 5px; }
.guide-nav-head p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.guide-search { position: relative; padding: 12px 14px 8px; }
.guide-search input { width: 100%; padding: 10px 12px 10px 36px; border: 1px solid var(--line); border-radius: 11px; background: #faf8f6; font-family: inherit; font-size: 13px; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; }
.guide-search input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-soft); background: #fff; }
.guide-search svg { position: absolute; left: 26px; top: 21px; width: 15px; height: 15px; fill: none; stroke: #9aa3b2; stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.guide-nav-list { position: relative; list-style: none; margin: 0; padding: 4px 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.guide-nav-marker { position: absolute; top: 0; left: 0; width: 0; height: 0; border-radius: 11px; background: var(--coral-soft); opacity: 0; pointer-events: none; z-index: 0; transition: top .34s cubic-bezier(.4, 0, .2, 1), left .34s cubic-bezier(.4, 0, .2, 1), width .34s cubic-bezier(.4, 0, .2, 1), height .34s cubic-bezier(.4, 0, .2, 1), opacity .2s ease; }
.guide-nav-link { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border: 0; border-radius: 11px; background: transparent; text-align: left; cursor: pointer; color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 650; line-height: 1.3; transition: color .18s ease; }
.guide-nav-link:hover { color: var(--navy); }
.guide-nav-num { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: #eef1f6; color: var(--muted); font-size: 12px; font-weight: 800; transition: background .18s ease, color .18s ease; }
.guide-nav-link:hover .guide-nav-num { background: #e2e6ee; }
.guide-nav-link.is-active { background: transparent; color: var(--coral-dark); }
.guide-nav-link.is-active .guide-nav-num { background: var(--coral); color: #fff; }
.guide-nav-empty { display: none; padding: 4px 16px 16px; font-size: 12.5px; color: var(--muted); }
.guide-nav.is-empty .guide-nav-empty { display: block; }
.guide-nav-toggle { display: none; }

.guide-content { min-width: 0; }
.guide-chapter { display: none; }
.guide-chapter.is-active { display: block; animation: guideFade .32s var(--ease); }
@keyframes guideFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.guide-chapter-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); }
.guide-chapter h2 { margin: 14px 0 16px; color: var(--navy); font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; letter-spacing: -.03em; line-height: 1.08; }
.guide-lead { margin: 0 0 26px; max-width: 700px; color: var(--muted); font-size: 17px; line-height: 1.62; }
.guide-chapter h3 { margin: 30px 0 12px; color: var(--navy); font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.guide-chapter p { margin: 0 0 14px; max-width: 700px; color: var(--ink); font-size: 15.5px; line-height: 1.66; }
.guide-chapter code { padding: 1px 7px; border-radius: 6px; background: #eef1f6; color: var(--navy); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .86em; font-weight: 700; white-space: nowrap; }

.guide-steps { list-style: none; counter-reset: gstep; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 12px; max-width: 730px; }
.guide-steps > li { counter-increment: gstep; position: relative; padding: 15px 18px 15px 60px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(15, 27, 51, .04); }
.guide-steps > li::before { content: counter(gstep); position: absolute; left: 16px; top: 14px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 800; }
.guide-steps > li strong { display: block; margin-bottom: 3px; color: var(--navy); font-size: 15px; font-weight: 800; }
.guide-steps > li span { display: block; color: #56607a; font-size: 14.5px; line-height: 1.6; }

.guide-callout { display: flex; gap: 12px; margin: 0 0 20px; padding: 15px 17px; border-radius: 14px; border: 1px solid rgba(255, 101, 77, .28); background: linear-gradient(180deg, #fff7f4, #fff); max-width: 730px; }
.guide-callout .ic { flex: none; font-size: 16px; line-height: 1.5; }
.guide-callout p { margin: 0; max-width: none; color: #7a3325; font-size: 14px; line-height: 1.6; }
.guide-callout strong { color: var(--coral-dark); }
.guide-note { margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: #f7f9fb; color: #56607a; font-size: 13.5px; line-height: 1.6; max-width: 730px; }
.guide-note strong { color: var(--navy); }

.guide-fields { margin: 0 0 22px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; max-width: 730px; }
.guide-fields > div { display: grid; grid-template-columns: 210px 1fr; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); }
.guide-fields > div:first-child { border-top: 0; }
.guide-fields dt { color: var(--navy); font-weight: 750; font-size: 13.5px; }
.guide-fields dd { margin: 0; color: #56607a; font-size: 13.5px; line-height: 1.55; }

.guide-table-wrap { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 14px; max-width: 730px; }
.guide-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.guide-table th, .guide-table td { padding: 12px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line); }
.guide-table thead th { background: #f7f5f2; color: var(--navy); font-weight: 800; font-size: 12.5px; }
.guide-table tbody tr:last-child td { border-bottom: 0; }
.guide-table td:first-child { color: var(--navy); font-weight: 750; }
.guide-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--coral-soft); color: var(--coral-dark); font-size: 12px; font-weight: 750; white-space: nowrap; }
.guide-pill.green { background: #e4f5ec; color: #17794c; }

.guide-check { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 9px; max-width: 730px; }
.guide-check li { position: relative; padding: 11px 14px 11px 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-size: 14.5px; line-height: 1.5; }
.guide-check li::before { content: "\2713"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--green); color: #fff; font-size: 12px; font-weight: 900; }

.guide-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.guide-pager button { display: inline-flex; flex-direction: column; gap: 3px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; cursor: pointer; font: inherit; text-align: left; transition: border-color .18s, box-shadow .18s, transform .18s; max-width: 49%; }
.guide-pager button:hover:not(:disabled) { border-color: var(--coral); box-shadow: 0 8px 22px rgba(15, 27, 51, .06); transform: translateY(-1px); }
.guide-pager button:disabled { opacity: .36; cursor: default; }
.guide-pager .gp-dir { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.guide-pager .gp-title { font-size: 14px; font-weight: 750; color: var(--navy); line-height: 1.3; }
.guide-pager .gp-next { text-align: right; align-items: flex-end; margin-left: auto; }

@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; gap: 16px; }
  .guide-nav { position: static; top: auto; }
  .guide-nav-head { display: none; }
  .guide-nav-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 15px 16px; border: 0; background: #fff; cursor: pointer; font: inherit; }
  .guide-nav-toggle .gnt-label { display: flex; align-items: baseline; gap: 6px; font-weight: 750; color: var(--navy); font-size: 13.5px; }
  .guide-nav-toggle .gnt-label b { color: var(--coral-dark); font-weight: 800; }
  .guide-nav-toggle .gnt-chevron { flex: none; color: var(--muted); transition: transform .24s ease; }
  .guide-nav.is-open .guide-nav-toggle .gnt-chevron { transform: rotate(180deg); }
  .guide-nav-collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
  .guide-nav.is-open .guide-nav-collapse { grid-template-rows: 1fr; }
  .guide-nav-collapse > div { overflow: hidden; }
  .guide-nav-list { padding-top: 0; }
  .guide-fields > div { grid-template-columns: 1fr; gap: 3px; }
  .guide-fields dt { font-size: 14px; }
}
@media (max-width: 520px) {
  .guide-pager { flex-direction: column; gap: 10px; }
  .guide-pager button { max-width: 100%; width: 100%; }
  .guide-pager .gp-next { text-align: left; align-items: flex-start; margin-left: 0; }
}

/* ---- screenshots + lightbox ---- */
.guide-shot { margin: 20px 0 26px; }
.guide-shot-frame { position: relative; display: block; width: 100%; max-width: 600px; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; cursor: zoom-in; box-shadow: 0 10px 30px rgba(15, 27, 51, .08); transition: box-shadow .2s ease, transform .2s ease; }
.guide-shot-frame:hover { box-shadow: 0 16px 42px rgba(15, 27, 51, .15); transform: translateY(-2px); }
.guide-shot-frame:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.guide-shot-frame img { display: block; width: 100%; height: auto; }
.guide-shot-zoom { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 9px; background: rgba(15, 27, 51, .74); color: #fff; font-size: 17px; line-height: 1; pointer-events: none; }
.guide-shot figcaption { margin-top: 9px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.guide-lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(10, 15, 28, .9); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); cursor: zoom-out; animation: guideLbIn .18s ease; }
.guide-lightbox[hidden] { display: none; }
.guide-lightbox img { max-width: 94vw; max-height: 92vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 90px rgba(0, 0, 0, .55); }
.guide-lightbox-close { position: fixed; top: 22px; right: 26px; z-index: 2; width: 56px; height: 56px; padding: 0; border: 2px solid rgba(255, 255, 255, .55); border-radius: 50%; background: rgba(18, 26, 44, .5); cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .22s ease; }
.guide-lightbox-close::before, .guide-lightbox-close::after { content: ''; position: absolute; top: 50%; left: 50%; width: 26px; height: 3px; border-radius: 3px; background: #fff; }
.guide-lightbox-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.guide-lightbox-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.guide-lightbox-close:hover { background: var(--coral); border-color: var(--coral); transform: rotate(90deg); }
.guide-lightbox-close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 520px) { .guide-lightbox-close { top: 14px; right: 14px; width: 48px; height: 48px; } .guide-lightbox-close::before, .guide-lightbox-close::after { width: 22px; } }
@keyframes guideLbIn { from { opacity: 0 } to { opacity: 1 } }
@media (max-width: 760px) { .guide-shot-frame { max-width: 100%; } }
