/* PhoneSell Pro documentation centre. --brand is set per guide on <body>. */
@font-face { font-family: "Kalpurush"; src: url("/docs/assets/kalpurush.woff2") format("woff2"), url("/fonts/kalpurush.ttf") format("truetype"); font-display: swap; }
:root { --ink:#0f172a; --text:#1e293b; --muted:#64748b; --line:#e6eaf2; --bg:#f7f9fc; --card:#fff; --pin:#e11d48; --top:64px; }
* { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 16px) }
body { margin: 0; background: var(--bg); color: var(--text); font: 19px/1.9 "Kalpurush", "Noto Sans Bengali", system-ui, sans-serif; -webkit-font-smoothing: antialiased }
a { color: var(--brand) }
b, strong { color: var(--ink) }
kbd { font-family: system-ui; font-size: 12px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 0 6px; color: var(--muted); background: #fff }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 30; height: var(--top); display: flex; align-items: center; gap: 18px; padding: 0 22px; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line) }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); white-space: nowrap; font-size: 18px }
.logo span { color: var(--muted); font-size: 16px }
.guides { display: flex; gap: 4px }
.guides a { text-decoration: none; color: var(--muted); padding: 6px 12px; border-radius: 10px; font-size: 16.5px; white-space: nowrap }
.guides a:hover { background: #f1f5f9; color: var(--ink) }
.guides a.on { color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); font-weight: 700 }
.search { position: relative; flex: 1; max-width: 460px; margin-left: auto }
.search input, .big-search input { width: 100%; font: inherit; font-size: 16.5px; border: 1px solid var(--line); background: #f8fafc; border-radius: 12px; padding: 8px 44px 8px 40px; outline: none; transition: .15s }
.search input:focus, .big-search input:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent) }
.search .ic, .big-search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 15px }
.search kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%) }
.site { color: var(--muted); text-decoration: none; font-size: 16px; white-space: nowrap }
.nav-btn { display: none; border: 0; background: none; font-size: 22px; cursor: pointer; padding: 4px 6px; color: var(--ink) }
.results { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 50px -20px rgba(15,23,42,.35); max-height: 70vh; overflow: auto; padding: 6px; z-index: 40 }
.results.on { display: block }
.results a { display: block; text-decoration: none; color: var(--ink); padding: 9px 12px; border-radius: 10px; line-height: 1.5 }
.results a:hover, .results a.sel { background: #f1f5f9 }
.results a small { display: block; color: var(--muted); font-size: 14px }
.results .empty { padding: 12px; color: var(--muted); font-size: 16px }
mark { background: #fde68a; color: inherit; border-radius: 3px; padding: 0 2px }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: 350px minmax(0, 1fr); width: 100%; margin: 0 }
.side { position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow-y: auto; padding: 22px 16px 40px; border-right: 1px solid var(--line); background: #f8fafc }
.side-h { display: block; font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; padding: 12px 14px 2px; background: #fff; border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0 }
.side-sub { color: var(--muted); font-size: 14px; margin-bottom: 14px; padding: 0 14px 12px; background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; box-shadow: 0 6px 16px -14px #0f172a }
.toc { display: flex; flex-direction: column; gap: 3px }
.toc a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; text-decoration: none; color: var(--text); font-size: 15.5px; line-height: 1.45; border: 1px solid transparent; transition: background .15s, border-color .15s }
.toc a:hover { background: #fff; border-color: var(--line) }
.toc a.on { background: #fff; border-color: color-mix(in srgb, var(--brand) 35%, #fff); color: var(--brand); font-weight: 700; box-shadow: 0 6px 18px -12px var(--brand) }
.toc a.on .n { background: var(--brand); color: #fff }
.toc .n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #e2e8f0; color: #475569; font-size: 12.5px; font-weight: 700; font-family: system-ui }
.toc .e { flex: none; font-size: 17px }
.toc .t { flex: 1; min-width: 0 }
.main { padding: 26px clamp(18px, 4vw, 56px) 60px; min-width: 0 }
.crumbs { font-size: 15px; color: var(--muted); margin-bottom: 14px }
.crumbs a { color: var(--muted); text-decoration: none } .crumbs a:hover { color: var(--brand) }

/* ---------- guide overview ---------- */
.hero { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 88%, #000), var(--brand)); color: #fff; border-radius: 24px; padding: 34px 36px; box-shadow: 0 24px 50px -30px var(--brand) }
.hero-ic { font-size: 44px; line-height: 1 }
.hero h1 { margin: 10px 0 6px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.35; color: #fff }
.hero p { margin: 0; opacity: .92; max-width: 720px }
.hero .btn { display: inline-block; margin-top: 18px; background: #fff; color: var(--brand); font-weight: 700; text-decoration: none; padding: 9px 20px; border-radius: 12px }
.sec { font-size: 24px; margin: 34px 0 14px; color: var(--ink) }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr } }
.card { position: relative; display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; text-decoration: none; color: var(--text); transition: .15s }
.card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 14px 30px -22px var(--brand) }
.card .n { position: absolute; top: 14px; right: 16px; color: var(--muted); font-size: 14px; font-family: system-ui }
.card .e { font-size: 26px } .card b { font-size: 18.5px; line-height: 1.45 } .card .d { font-size: 15.5px; color: var(--muted); line-height: 1.6 }

/* ---------- chapter ---------- */
.chap { max-width: none }
.chap-h { display: flex; align-items: center; gap: 12px; margin-bottom: 8px }
.chap-h .cn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: var(--brand); color: #fff; font: 700 20px system-ui }
.chap-h .e { font-size: 30px }
.chap h1 { margin: 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.35; color: var(--ink) }
.chap p { margin: 0 0 12px }
.chap .lead { font-size: 20.5px; color: var(--ink) }
.where { background: #f1f5f9; border-radius: 12px; padding: 8px 14px; font-size: 17px }
.steps { margin: 20px 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 20px }
.steps-h { font-weight: 700; color: var(--ink); margin-bottom: 4px }
.steps ol { margin: 0; padding: 0; list-style: none; counter-reset: s }
.steps li { counter-increment: s; position: relative; padding: 6px 0 6px 44px; border-bottom: 1px dashed var(--line) }
.steps li:last-child { border: 0 }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 8px; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand); font: 700 15px/30px system-ui; text-align: center }
.fig { margin: 28px 0 10px }
.fig figcaption { font-weight: 700; color: var(--ink); margin-bottom: 10px; font-size: 18px }
.fig .tag { background: color-mix(in srgb, var(--brand) 10%, #fff); color: var(--brand); border-radius: 8px; padding: 2px 10px; font-size: 15px; margin-right: 8px; font-family: system-ui; font-weight: 700 }
.shot { position: relative; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 18px 40px -28px #0f172a; cursor: zoom-in }
.fig.narrow .shot { max-width: 620px }
.shot img { display: block; width: 100%; height: auto }
.pin { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; background: var(--pin); color: #fff; font: 700 15px/30px system-ui; text-align: center; box-shadow: 0 0 0 3px #fff, 0 8px 16px -6px #9f1239; pointer-events: none }
.zoom { font-size: 14.5px; color: var(--muted); margin-top: 6px }
.notes { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px }
.notes li { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px }
.notes .num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--pin); color: #fff; font: 700 15px/30px system-ui; text-align: center; margin-top: 4px }
.notes li:target, .flash { outline: 3px solid #facc15; outline-offset: 2px }
.callout { margin: 22px 0; border-radius: 16px; padding: 12px 18px; border: 1px solid }
.callout.tip { background: #fffbeb; border-color: #fcd98a }
.callout.warn { background: #fff1f2; border-color: #fecdd3 }
.callout-h { font-weight: 700; color: var(--ink) }
.callout ul { margin: 4px 0 0; padding-left: 22px }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin: 10px 0; padding: 0 16px }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 700; color: var(--ink); list-style: none }
.faq summary::before { content: "▸ "; color: var(--brand) } .faq details[open] summary::before { content: "▾ " }
.faq details > div { padding: 0 0 12px }
.faq details:target { outline: 3px solid #facc15 }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px }
.prevnext a { border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 12px 16px; text-decoration: none; color: var(--ink); font-weight: 700; line-height: 1.5 }
.prevnext a:hover { border-color: var(--brand) }
.prevnext small { display: block; color: var(--muted); font-weight: 400; font-size: 14.5px }
.prevnext .next { text-align: right }

/* ---------- docs home ---------- */
.home { width: 100%; margin: 0; padding: 44px clamp(16px, 3vw, 40px) 60px; box-sizing: border-box }
.home-hero { text-align: center }
.home-hero h1 { font-size: clamp(30px, 4vw, 44px); margin: 0; color: var(--ink) }
.home-hero p { color: var(--muted); margin: 6px 0 22px }
.big-search { position: relative; max-width: 640px; margin: 0 auto }
.big-search input { padding: 14px 18px 14px 46px; font-size: 19px; border-radius: 16px; background: #fff; box-shadow: 0 14px 34px -26px #0f172a }
.big-search .ic { left: 16px }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 14px; font: inherit; font-size: 15.5px; cursor: pointer; color: var(--text) }
.chip:hover { border-color: var(--brand); color: var(--brand) }
.gcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 40px }
.gcard { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 2px solid var(--c); border-radius: 22px; padding: 26px; text-decoration: none; color: var(--text); box-shadow: 0 22px 44px -32px var(--c); transition: .15s }
.gcard:hover { transform: translateY(-3px) }
.gcard .gi { font-size: 40px } .gcard b { font-size: 23px; color: var(--ink) } .gcard .go { margin-top: auto; color: var(--c); font-weight: 700 }

/* ---------- footer, lightbox ---------- */
.foot { text-align: center; color: var(--muted); font-size: 15px; padding: 26px 16px 40px; border-top: 1px solid var(--line) }
.foot a { color: var(--muted) } .foot .small { font-size: 13.5px; margin-top: 4px }
.totop { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; font-size: 20px; cursor: pointer; box-shadow: 0 12px 24px -10px var(--brand) }
#lb { position: fixed; inset: 0; z-index: 60; display: none; background: rgba(15,23,42,.94); overflow: auto; padding: 16px }
#lb.on { display: block }
#lb .shot { width: max(100%, 1300px); max-width: none; margin: 0 auto; cursor: zoom-out; border: 0 }
#lb .x { position: fixed; top: 12px; right: 14px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; font-size: 22px; cursor: pointer }

/* ---------- small screens ---------- */
@media (max-width: 960px) {
  body { font-size: 18px }
  .guides, .site, .search kbd { display: none }
  .nav-btn { display: block }
  .top { gap: 10px; padding: 0 12px }
  .logo span { display: none }
  .layout { grid-template-columns: 1fr }
  .side { position: fixed; top: var(--top); left: 0; bottom: 0; width: min(350px, 88vw); height: auto; background: #fff; z-index: 25; transform: translateX(-105%); transition: transform .2s; box-shadow: 20px 0 40px -30px #0f172a }
  body.nav-open .side { transform: none }
  .pin { width: 18px; height: 18px; font-size: 10.5px; line-height: 18px; box-shadow: 0 0 0 1.5px #fff }
  .prevnext { grid-template-columns: 1fr }
  .prevnext .next { text-align: left }
  .hero { padding: 26px 22px }
}

/* ---------- languages ---------- */
.langs { display: flex; gap: 2px; background: #f1f5f9; border-radius: 10px; padding: 3px; flex: none }
.langs a { font: 600 13.5px/1 system-ui, sans-serif; color: var(--muted); text-decoration: none; padding: 6px 8px; border-radius: 7px; white-space: nowrap }
.langs a.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(15,23,42,.12) }
.shots-note { font-size: 15.5px; color: var(--muted); background: #f8fafc; border: 1px dashed var(--line); border-radius: 10px; padding: 8px 14px }
html[lang=en] body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.7; font-size: 17.5px }
html[lang=ne] body { font-family: "Hind", "Noto Sans Devanagari", system-ui, sans-serif; line-height: 1.8 }
html[lang=ur] body { font-family: "Noto Naskh Arabic", "Noto Nastaliq Urdu", system-ui, sans-serif; line-height: 2 }
html[dir=rtl] .shot, html[dir=rtl] #lb .shot, html[dir=rtl] .langs, html[dir=rtl] kbd { direction: ltr }
html[dir=rtl] .search { margin-left: 0; margin-right: auto }
html[dir=rtl] .search input, html[dir=rtl] .big-search input { padding: 8px 40px 8px 44px }
html[dir=rtl] .search .ic, html[dir=rtl] .big-search .ic { left: auto; right: 13px }
html[dir=rtl] .search kbd { right: auto; left: 12px }
html[dir=rtl] .toc .n { text-align: center }
html[dir=rtl] .card .n { right: auto; left: 16px }
html[dir=rtl] .fig .tag { margin-right: 0; margin-left: 8px }
html[dir=rtl] .totop { right: auto; left: 18px }
@media (max-width: 960px) {
  .langs a { padding: 6px 5px; font-size: 12.5px }
  .search { min-width: 0 }
  .logo b { display: none }
  html[dir=rtl] .side { left: auto; right: 0; transform: translateX(105%) }
  html[dir=rtl] body.nav-open .side { transform: none }
  html[dir=rtl] .prevnext .next { text-align: right }
}

/* ---------- videos (click-to-load) ---------- */
.videos { margin: 18px 0 22px }
.videos-h { font-weight: 700; font-size: 17px; margin-bottom: 10px; color: var(--text) }
.vid-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px }
.vid { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden }
.vid-play { position: relative; display: block; width: 100%; aspect-ratio: 16/9; border: 0; padding: 0; cursor: pointer; background: #0b1a3a center/cover no-repeat }
.vid-play .pb { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 64px; height: 45px; border-radius: 12px; background: #ff0033; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px -8px rgba(0,0,0,.6) }
.vid-play .pb::before { content: ""; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; margin-left: 4px }
.vid iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0 }
.vid figcaption { padding: 10px 14px; font-size: 15px; font-weight: 600 }
@media (max-width: 700px) { .vid-grid { grid-template-columns: 1fr } }
