/* The help guides (owner 2026-11-17, design/samples/help-pages.html): /help/ and /bn/help/, on top of site.css. */
:root { --wa-bg: #E3F7EA; --wa-text: #0E7A3A; }
@media (prefers-color-scheme: dark) { :root { --wa-bg: rgba(31, 175, 85, .14); --wa-text: #6FE09B; } }

/* The band of a help page: smaller than the home page's. */
.band.help { padding-bottom: 86px; }
.help-hero { padding-top: 18px; max-width: 780px; }
.help-hero .eyebrow { display: inline-block; margin-top: 18px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
:lang(bn) .help-hero .eyebrow { letter-spacing: 0; }
.help-hero h1 { font-size: clamp(32px, 4.2vw, 48px); font-weight: 800; margin-top: 8px; }
.help-hero h1 em { font-style: normal; color: var(--amber); }
.help-hero .lede { font-size: 18.5px; color: rgba(255, 255, 255, .9); margin-top: 14px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.meta span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22); font-size: 14.5px; font-weight: 500; }
.meta svg { width: 17px; height: 17px; flex: none; }

/* PC or phone: two radio buttons before the header, so it works without JavaScript. */
.dev { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
#d-ph:checked ~ main .for-pc, #d-pc:checked ~ main .for-ph,
#d-ph:checked ~ header .for-pc, #d-pc:checked ~ header .for-ph { display: none; }
.devsw { display: inline-flex; gap: 2px; padding: 4px; margin-top: 22px; border-radius: 99px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); }
.devsw label { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 99px; color: #fff; cursor: pointer; font-weight: 600; font-size: 15.5px; }
.devsw svg { width: 19px; height: 19px; flex: none; }
#d-pc:checked ~ header label[for="d-pc"], #d-ph:checked ~ header label[for="d-ph"] { background: #fff; color: #005ED4; }
.dev:focus-visible ~ header .devsw { outline: 3px solid var(--amber); outline-offset: 3px; }

/* The help list's search, on the band. */
.hsearch { position: relative; margin-top: 24px; max-width: 660px; }
.hsearch input { width: 100%; min-height: 60px; border: 0; border-radius: 16px; padding: 0 18px 0 54px; font: 500 17.5px var(--font);
  background: #fff; color: #0A1B44; box-shadow: 0 18px 40px -20px rgba(0, 20, 70, .55); }
.hsearch input::placeholder { color: #6B7A98; }
.hsearch input:focus { outline: 3px solid var(--amber); outline-offset: 2px; }
.hsearch svg { position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; color: #5A6A8C; pointer-events: none; }
.popular { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; font-size: 14.5px; color: rgba(255, 255, 255, .8); }
.popular a { color: #fff; text-decoration: none; padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .24); }
.popular a:hover { background: rgba(255, 255, 255, .24); }

/* Cards start over the band's curve. */
.help-main { margin-top: -54px; position: relative; padding-bottom: 24px; }
.help-main section { padding-block: 0; }
.help-main section + section { margin-top: 40px; }
.h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; }
.sub { color: var(--muted); margin-top: 6px; }

/* Help list: start here, then the groups. */
.help-main .start-card { padding: 22px; }
.start3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.start3 a { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line);
  text-decoration: none; color: var(--text); transition: transform .15s, border-color .15s; }
.start3 a:hover { transform: translateY(-2px); border-color: var(--primary); }
.start3 .n { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: #1B1300; font-weight: 800; font-size: 17px; }
.start3 h3 { font-size: 17.5px; font-weight: 700; line-height: 1.25; }
.start3 p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.start-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
/* The groups pack into columns with no gaps, and close up again while searching. */
.groups { columns: 3 300px; column-gap: 16px; margin-top: 16px; }
.group { padding: 20px 14px 12px; break-inside: avoid; margin-bottom: 16px; }
.group-head { display: flex; gap: 12px; align-items: center; padding: 0 8px; }
.group-head .ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--chip-blue); color: var(--chip-blue-text); }
.group:nth-child(even) .group-head .ic { background: var(--chip-or); color: var(--chip-or-text); }
.group-head .ic svg { width: 22px; height: 22px; }
.group-head h3 { font-size: 18px; font-weight: 700; line-height: 1.2; }
.group-head p { color: var(--muted); font-size: 13.5px; line-height: 1.35; margin-top: 2px; }
.group ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 2px; }
.guide a { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 10px; border-radius: 12px; color: var(--text); text-decoration: none; font-size: 15.5px; line-height: 1.35; }
.guide a:hover, .guide a:focus-visible { background: var(--surface2); }
.guide a::after { content: "›"; margin-left: auto; padding-left: 6px; color: var(--muted); font-size: 20px; line-height: 1; }
.guide .who { flex: none; font-size: 12px; font-weight: 600; color: var(--chip-or-text); background: var(--chip-or); border-radius: 99px; padding: 1px 8px; }
.found { color: rgba(255, 255, 255, .88); font-size: 15.5px; margin-top: 14px; font-weight: 500; }
.found:empty { display: none; }
.empty { text-align: center; padding: 34px 20px; }
.empty h3 { font-size: 20px; font-weight: 700; }
.empty p { color: var(--muted); margin-top: 6px; }
.empty .btn { margin-top: 16px; }
[hidden] { display: none !important; }

/* A guide: the steps on the left, the list of steps and help on WhatsApp on the side (PC). */
.hlay { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 28px; align-items: start; }
.side { position: sticky; top: 16px; display: grid; gap: 14px; }
.side .card { padding: 18px; }
.side h3 { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
:lang(bn) .side h3 { letter-spacing: 0; font-size: 14px; }
.toc { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 2px; }
.toc a { display: flex; gap: 10px; align-items: flex-start; padding: 7px 8px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 15px; line-height: 1.35; }
.toc a:hover { background: var(--surface2); }
.toc .n { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--chip-blue); color: var(--chip-blue-text); font-size: 13px; font-weight: 700; }
.stuck { background: var(--wa-bg); border: 1px solid transparent; border-radius: 18px; padding: 18px; }
.stuck h3 { font-size: 17px !important; font-weight: 700; letter-spacing: 0 !important; text-transform: none !important; color: var(--text) !important; }
.stuck p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.stuck .btn { margin-top: 12px; width: 100%; }
.stuck.row { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; padding: 22px 24px; }
.stuck.row .btn { width: auto; margin: 0; }

.before { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; }
.before svg { width: 22px; height: 22px; flex: none; color: var(--primary); margin-top: 2px; }
.before p { font-size: 15.5px; }

.steps-list { display: grid; gap: 16px; margin-top: 16px; }
.step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 26px; align-items: start; padding: 24px; scroll-margin-top: 16px; }
.step.wide { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.step-head { display: flex; gap: 14px; align-items: center; }
.step-head .num { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: #1B1300; font-weight: 800; font-size: 19px; }
.step h2 { font-size: 21px; font-weight: 800; line-height: 1.2; }
.step .txt p { margin-top: 12px; font-size: 16.5px; line-height: 1.65; }
.step .txt p.or { color: var(--muted); font-size: 15px; margin-top: 8px; }
.ui { font-weight: 700; color: var(--text); background: var(--surface2); border: 1px solid var(--line); border-radius: 8px; padding: 1px 7px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
kbd { font: 600 13.5px var(--font); padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line); border-bottom-width: 2px; background: var(--surface2); white-space: nowrap; }
.ref { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--amber); color: #1B1300; font-size: 12.5px; font-weight: 800; vertical-align: 2px; margin-left: 2px; line-height: 1; }

/* A true picture of the app, cut to the part that matters (help_shots.py), with numbered rings on what to press,
   placed by build.py in percent of the picture; help.js only keeps each ring's number inside the picture. */
.pic { margin: 0; justify-self: center; width: 100%; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface2);
  box-shadow: var(--shadow), 0 26px 50px -34px rgba(0, 20, 70, .45); }
.pic .crop { position: relative; overflow: hidden; width: 100%; }
.pic .crop img { display: block; width: 100%; height: 100%; }
.pic.phone { width: min(100%, 290px); border-radius: 36px; border: 8px solid #0B1530; }
/* A ring round what to press, so its words stay readable, with the number at its corner. */
.mark { position: absolute; z-index: 1; margin: -5px 0 0 -5px; border: 3px solid var(--amber); border-radius: 11px;
  box-shadow: 0 0 0 3px rgba(253, 195, 48, .28), 0 0 22px rgba(253, 195, 48, .45); pointer-events: none; }
.mark::after { content: ""; position: absolute; inset: -3px; border-radius: 12px; border: 2px solid var(--amber); animation: ring 2.6s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .mark::after { animation: none; opacity: 0; } }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.12); opacity: 0; } }
.mark b { position: absolute; left: calc(100% - 14px); top: -15px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--amber); color: #1B1300; font: 800 14.5px/1 var(--font); box-shadow: 0 0 0 2.5px #fff, 0 5px 14px rgba(0, 0, 0, .35); }
.cap { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 8px; }

/* Good to know, then if something goes wrong. */
.good { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.good .card { display: flex; gap: 12px; align-items: flex-start; padding: 18px; }
.good .ic { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--chip-blue); color: var(--chip-blue-text); }
.good .card:nth-child(even) .ic { background: var(--chip-or); color: var(--chip-or-text); }
.good .ic svg { width: 20px; height: 20px; }
.good h3 { font-size: 16.5px; font-weight: 700; line-height: 1.3; }
.good p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.help-main .faq { display: grid; gap: 10px; margin-top: 16px; }

.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.prevnext a { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; text-decoration: none; color: var(--text); transition: transform .15s; }
.prevnext a:hover { transform: translateY(-2px); }
.prevnext small { color: var(--muted); font-size: 13.5px; }
.prevnext b { font-size: 17px; color: var(--link); }
.prevnext .next { text-align: right; }

@media (max-width: 960px) {
  .hlay { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .step { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
/* On a PC the side card stays in sight, so the WhatsApp row at the end is for narrower screens. */
@media (min-width: 961px) { .hlay .stuck.row { display: none; } }
@media (max-width: 700px) {
  .start3 { grid-template-columns: 1fr; }
  .good, .prevnext { grid-template-columns: 1fr; }
  .help-main .start-card { padding: 16px; }
  .prevnext .next { text-align: left; }
  .band.help { padding-bottom: 72px; }
  .help-hero .lede { font-size: 17px; }
  .step { padding: 18px; }
  .step h2 { font-size: 19.5px; }
  .step .txt p { font-size: 16px; }
  .mark b { width: 26px; height: 26px; left: -13px; top: -13px; font-size: 13.5px; }
  .devsw { display: flex; width: fit-content; max-width: 100%; }
  .devsw label { padding: 0 14px; font-size: 15px; }
  .stuck.row .btn { width: 100%; }
}
