/* Help guides: real app screenshots with numbered pins, field tables, worked examples. */

/* Guide header line: updated · app version · reading time */
.guide-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: .9rem; font-size: .85rem; color: var(--ink-3); }
.guide-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.guide-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--marigold); }

/* Screenshot: click to zoom (help.js). Pins are positioned in % of the image. */
.shot { margin: 1.2rem 0 1.4rem; }
.shot-frame { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--ground); box-shadow: 0 10px 28px -18px rgba(29, 30, 34, .45); cursor: zoom-in; }
.shot-frame img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: .55rem; font-size: .86rem; color: var(--ink-3); line-height: 1.45; }
.shot figcaption b { color: var(--ink-2); }
.shot.tall .shot-frame { max-height: 560px; overflow: hidden; }
.shot.tall .shot-frame::after { content: ""; position: absolute; inset: auto 0 0 0; height: 70px; background: linear-gradient(to bottom, rgba(244, 245, 247, 0), var(--ground)); pointer-events: none; }
.shot-zoom { position: absolute; right: 10px; bottom: 10px; z-index: 2; font: 600 .75rem/1 var(--body); background: rgba(29, 30, 34, .82); color: #fff; border-radius: 999px; padding: .4rem .7rem; pointer-events: none; }
.pin { position: absolute; z-index: 1; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; background: var(--plus); color: #fff; font: 800 .8rem/26px var(--mono); text-align: center; text-decoration: none; box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(0, 0, 0, .3); }
.pin:hover, .pin:focus-visible { background: var(--ink); }
@media (max-width: 600px) { .pin { width: 20px; height: 20px; font-size: .68rem; line-height: 20px; box-shadow: 0 0 0 2px #fff, 0 3px 8px rgba(0, 0, 0, .3); } }
.n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--plus); color: #fff; font: 800 .74rem/1 var(--mono); vertical-align: 1px; margin-right: .25rem; }

/* Field-by-field table */
.fields { width: 100%; border-collapse: collapse; margin: .8rem 0 1.2rem; font-size: .92rem; }
.fields th { text-align: left; font: 700 .72rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: .5rem .6rem; border-bottom: 2px solid var(--line); }
html[lang="hi"] .fields th { letter-spacing: 0; font-size: .8rem; }
.fields td { padding: .6rem; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.fields td:first-child { font-weight: 700; color: var(--ink); width: 28%; }
.fields td:last-child { font-family: var(--mono); font-size: .84rem; color: var(--ink); width: 26%; }
.fields-wrap { overflow-x: auto; }
@media (max-width: 640px) {
  .fields, .fields tbody, .fields tr, .fields td { display: block; width: auto !important; }
  .fields thead { display: none; }
  .fields tr { padding: .6rem 0; border-bottom: 1px solid var(--line); }
  .fields td { border: 0; padding: .15rem 0; }
  .fields td:last-child::before { content: "e.g. "; color: var(--ink-3); font-family: var(--body); }
  html[lang="hi"] .fields td:last-child::before { content: "उदाहरण: "; }
}

/* Worked example (receipt paper) and callouts */
.example { background: var(--paper); border: 1px dashed #D9C88A; border-radius: 12px; padding: 1rem 1.1rem; margin: 1rem 0 1.3rem; }
.example > b:first-child { display: block; font: 700 .74rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: #8A6D00; margin-bottom: .5rem; }
html[lang="hi"] .example > b:first-child { letter-spacing: 0; font-size: .85rem; }
.example p, .example li { color: var(--ink-2); }
.example .mono { font-size: .9rem; }
.callout { border-radius: 12px; padding: .8rem 1rem; margin: 1rem 0; font-size: .93rem; border: 1px solid; }
.callout b:first-child { margin-right: .3rem; }
.callout.tip { background: var(--paid-soft); border-color: #B8E2CD; color: #0D5C3B; }
.callout.warn { background: #FFF4E5; border-color: #F5CE8B; color: #7A4B00; }
.callout.key { background: var(--marigold-soft); border-color: #F1D57A; color: var(--ink); }

/* Step list with big numbers */
.prose ol.steps-list { list-style: none; padding: 0; counter-reset: st; gap: .8rem; }
.prose ol.steps-list > li { counter-increment: st; position: relative; padding-left: 2.6rem; }
.prose ol.steps-list > li::before { content: counter(st); position: absolute; left: 0; top: -.1rem; width: 1.9rem; height: 1.9rem; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font: 800 .9rem/1 var(--mono); }

/* Prev / next guide */
.guide-nav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .8rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.guide-nav a { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; background: var(--surface); }
.guide-nav a:hover { border-color: var(--ink-3); }
.guide-nav small { display: block; color: var(--ink-3); font-size: .78rem; }
.guide-nav b { color: var(--ink); }
.guide-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 520px) { .guide-nav { grid-template-columns: minmax(0, 1fr); } .guide-nav .next { grid-column: auto; } }

/* Help index: search + grouped guides */
.help-search { max-width: var(--wrap); margin: 1.6rem auto 0; position: relative; }
.help-search input { width: 100%; font: 500 1.05rem/1.2 var(--body); padding: 1rem 1rem 1rem 3rem; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); }
.help-search input:focus { outline: none; border-color: var(--ink); }
.help-search svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-3); }
.help-empty { text-align: center; color: var(--ink-3); padding: 2rem 0; }
.help-group { max-width: var(--wrap); margin: 2.2rem auto 0; }
.help-group > h2 { font-size: 1.25rem; margin-bottom: .9rem; display: flex; align-items: center; gap: .5rem; }
.help-group > h2 span { font: 600 .8rem/1 var(--mono); color: var(--ink-3); }
.guide-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1rem; align-items: center; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .7rem; transition: border-color .15s, transform .15s; }
.guide-card:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.guide-card img { width: 120px; height: 72px; object-fit: cover; object-position: top left; border-radius: 8px; border: 1px solid var(--line); background: var(--ground); }
.guide-card h3 { font-size: 1.02rem; margin-bottom: .2rem; }
.guide-card p { font-size: .86rem; color: var(--ink-3); line-height: 1.4; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
@media (max-width: 760px) { .guide-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .guide-card { grid-template-columns: 84px minmax(0, 1fr); } .guide-card img { width: 84px; height: 56px; } }

/* Zoom view */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(15, 16, 20, .88); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox-scroll { max-width: 100vw; max-height: 100vh; overflow: auto; padding: 56px 16px 16px; }
.lightbox img { display: block; max-width: min(1366px, 100%); height: auto; margin: 0 auto; border-radius: 10px; }
.lightbox-close { position: fixed; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 12px; border: 0; background: #fff; color: var(--ink); font: 700 1.3rem/1 var(--body); cursor: pointer; }
.lightbox-cap { position: fixed; top: 18px; left: 16px; right: 70px; color: #fff; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
