/* Pigeonbook Help Centre — one responsive layout.
   Desktop: design-export/help-centre/Help Centre.dc.html
   Mobile (max-width:767px): design-export/help-centre/Help Centre Mobile.dc.html */
:root{
  --purple:#8352EA; --purple-dark:#572FC9; --purple-light:#E7DCFF; --purple-tint:#F4EEFF; --purple-row:#FAF7FF;
  --bg:#F2F4F7; --line:#D9D9D9; --ink:#222222; --text:#423E3B; --muted:#636363;
  --done:#9EE493; --done-ink:#1F4D17; --wa:#25D366; --wa-ink:#0B3B1E;
  --shadow:0 10px 48px rgba(164,164,164,.15);
  --num:'Instrument Sans',Montserrat,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:90px}
body{margin:0;background:var(--bg);color:var(--text);font-family:Montserrat,'Noto Sans SC',sans-serif;-webkit-font-smoothing:antialiased}
a{color:var(--purple)}a:hover{color:var(--purple-dark)}
button{font-family:inherit}
img{max-width:100%}
.skip{position:absolute;left:12px;top:-60px;background:var(--ink);color:#fff;padding:10px 16px;border-radius:10px;z-index:100;text-decoration:none}
.skip:focus{top:12px;color:#fff}
:focus-visible{outline:3px solid rgba(131,82,234,.55);outline-offset:2px}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ── Header ── */
.hc-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.hc-header-in{max-width:1280px;margin:0 auto;padding:14px 28px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px}
.hc-brand{display:flex;align-items:center;gap:12px;text-decoration:none;min-height:44px}
.hc-brand .logo-full{height:28px;width:auto;display:block}
.hc-brand .logo-mark{display:none;width:34px;height:34px;border-radius:10px}
.hc-brand .div{width:1px;height:24px;background:var(--line)}
.hc-brand .name{font-size:16px;font-weight:600;color:var(--muted)}
.hc-tools{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.hc-search{position:relative}
.hc-search input{width:280px;height:44px;border:1px solid var(--line);border-radius:100px;background:var(--bg);padding:0 16px 0 42px;font:500 15px/1 inherit;font-family:inherit;color:var(--ink)}
.hc-search input::placeholder{color:#8a8a8a}
.hc-search input:focus{outline:none;border-color:var(--purple);background:#fff;box-shadow:0 0 0 4px rgba(131,82,234,.15)}
.hc-search .ico{position:absolute;left:15px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none;display:flex}
.hc-results{position:absolute;right:0;top:52px;width:min(460px,92vw);max-height:65vh;overflow:auto;background:#fff;border:1px solid #ECECEC;border-radius:14px;box-shadow:0 18px 50px rgba(28,27,34,.16);padding:6px;display:none}
.hc-results.open{display:block}
.hc-results a{display:block;padding:10px 12px;border-radius:10px;text-decoration:none;color:var(--text)}
.hc-results a:hover,.hc-results a.active{background:var(--purple-tint)}
.hc-results .r-t{display:block;font-size:15px;font-weight:700;color:var(--ink);line-height:1.35}
.hc-results .r-s{display:block;font-size:13px;color:var(--muted);margin-top:2px;line-height:1.45}
.hc-results mark{background:var(--purple-light);color:inherit;border-radius:3px;padding:0 1px}
.hc-results .r-none{padding:14px 12px;font-size:14px;color:var(--muted)}
.hc-search-toggle{display:none;width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:#fff;color:var(--ink);align-items:center;justify-content:center;cursor:pointer;flex:none}
.hc-lang{display:flex;align-items:center;gap:4px;padding:4px;background:var(--bg);border-radius:100px}
.hc-lang a{min-width:68px;height:44px;padding:0 18px;border-radius:100px;display:inline-flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;color:var(--ink);text-decoration:none}
.hc-lang a:hover{background:#E9EAF0;color:var(--ink)}
.hc-lang a[aria-current="true"]{background:var(--purple);color:#fff}

/* ── Layout ── */
.hc-wrap{max-width:1280px;margin:0 auto;padding:32px 28px 64px;display:flex;gap:28px;align-items:flex-start}
.hc-side{flex:0 0 240px;display:flex;flex-direction:column;gap:4px;position:sticky;top:96px;max-height:calc(100vh - 112px);overflow:auto;padding-bottom:16px}
.hc-side .lbl{font-size:13px;font-weight:600;color:var(--muted);padding:0 14px 8px}
.hc-side .sec{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#8a8a8a;padding:16px 14px 6px}
.hc-side a.top{display:block;padding:12px 14px;border-radius:8px;font-size:15px;line-height:1.35;color:var(--text);font-weight:500;text-decoration:none}
.hc-side a.top:hover{background:#E9EAF0}
.hc-side a.top.is-active{background:var(--purple-light);color:var(--purple-dark);font-weight:700}
.hc-side .subs{display:flex;flex-direction:column;gap:2px;padding:4px 0 8px 14px}
.hc-side a.sub{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:8px;font-size:14px;line-height:1.35;color:var(--muted);font-weight:500;text-decoration:none}
.hc-side a.sub::before{content:"";flex:0 0 8px;width:8px;height:8px;border-radius:50%;background:var(--line)}
.hc-side a.sub:hover{background:#E9EAF0}
.hc-side a.sub.is-active{color:var(--ink);font-weight:700}
.hc-side a.sub.is-active::before{background:var(--purple)}
.hc-main{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:24px}

/* ── Page head ── */
.crumbs{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted);flex-wrap:wrap}
.crumbs a{color:var(--muted);text-decoration:none}.crumbs a:hover{color:var(--purple)}
.mback{display:none}
.page-head{display:flex;flex-direction:column;gap:14px}
.page-head h1{margin:0;font-size:40px;line-height:1.25;font-weight:700;color:var(--ink)}
.page-head .intro{margin:0;font-size:18px;line-height:1.65;color:var(--text)}
.draft-note{background:var(--purple-tint);border:1px solid var(--purple-light);border-radius:12px;padding:12px 16px;font-size:14px;line-height:1.55;color:var(--text);margin:0}

/* ── Cards ── */
.card{background:#fff;border-radius:16px;box-shadow:var(--shadow);padding:28px}
.video-card{background:#fff;border-radius:16px;box-shadow:var(--shadow);padding:16px;display:flex;flex-wrap:wrap;align-items:center;gap:20px}
.video-btn{flex:0 0 200px;height:112px;border:none;border-radius:12px;background:var(--purple-dark);display:flex;align-items:center;justify-content:center;gap:12px;cursor:pointer;color:#fff}
.video-btn .play{width:52px;height:52px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;flex:none}
.video-btn .video-label{display:none}
.video-text{flex:1 1 240px;display:flex;flex-direction:column;gap:6px}
.video-text .t{font-size:18px;font-weight:700;color:var(--ink)}
.video-text .s{font-size:15px;line-height:1.55;color:var(--muted)}
.video-frame{width:100%;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#000}
.video-frame iframe{width:100%;height:100%;border:0;display:block}

/* ── Guide: mode toggle + progress stepper ── */
.guide{display:flex;flex-direction:column;gap:24px}
html.js .guide.mode-step .mode-row,html.js .guide.mode-all .mode-row{margin-bottom:-12px}
.mode-row{display:none;justify-content:flex-end}
.mode-toggle{min-height:44px;padding:0 4px;border:none;background:transparent;color:var(--purple);font-size:15px;font-weight:600;cursor:pointer;text-decoration:underline;text-underline-offset:4px}
.progress{display:none;background:#fff;border-radius:16px;box-shadow:var(--shadow);padding:20px 24px 16px;flex-direction:column;gap:16px}
.progress .ph{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.progress .step-of{font-size:16px;font-weight:700;color:var(--purple)}
.progress .count{font-family:var(--num);font-size:16px;font-weight:700;color:var(--muted)}
.stepper{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:8px}
.stepper.many{grid-template-columns:repeat(var(--n),minmax(78px,1fr));overflow-x:auto;padding-bottom:6px;scrollbar-width:thin}
.stepper li{position:relative}
.stepper .line{position:absolute;top:25px;left:calc(50% + 24px);width:calc(100% - 40px);height:3px;border-radius:2px;background:var(--purple-light)}
.stepper li.is-done .line{background:var(--purple)}
.stepper li:last-child .line{display:none}
.stepper button{position:relative;width:100%;min-height:48px;padding:8px 4px;border:none;border-radius:10px;background:transparent;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;cursor:pointer;color:inherit}
.stepper button:hover .dot{box-shadow:0 0 0 5px rgba(131,82,234,.12)}
.stepper .dot{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:var(--num);font-size:15px;font-weight:700;background:var(--bg);color:var(--muted)}
.stepper .dot svg{display:none}
.stepper li.is-done .dot{background:var(--done);color:var(--done-ink)}
.stepper li.is-done .dot svg{display:block}
.stepper li.is-done .dot b{display:none}
.stepper li.is-current .dot{background:var(--purple);color:#fff;box-shadow:0 0 0 5px rgba(131,82,234,.22)}
.stepper .st{font-size:13px;line-height:1.35;color:var(--text);font-weight:500;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.stepper.many .st{-webkit-line-clamp:2}
.stepper li.is-current .st{color:var(--ink);font-weight:700}

/* ── Steps ──
   Without JavaScript every step is shown open (also what search engines read).
   With JavaScript: .mode-step shows one step at a time; .mode-all is the accordion. */
.steps{display:flex;flex-direction:column;gap:16px}
.step{background:#fff;border-radius:16px;box-shadow:var(--shadow);padding:28px;scroll-margin-top:96px}
.step-h{margin:0}
.step-toggle{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:16px;width:100%;font-size:28px;line-height:1.3;font-weight:700;color:var(--ink)}
.step-toggle .chev{display:none;flex:0 0 20px;transition:transform .15s ease;color:var(--muted)}
.step-toggle .num{flex:0 0 48px;width:48px;height:48px;border-radius:50%;background:var(--purple);color:#fff;display:flex;align-items:center;justify-content:center;font-family:var(--num);font-size:22px;font-weight:700}
.step-body{margin-top:22px}
.mprog{display:none}
.step-nav{display:none}
.btn-prev,.btn-next,.btn-ghost,.btn-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:100px;cursor:pointer;text-decoration:none;font-family:inherit}
.btn-prev{height:52px;padding:0 28px;border:1px solid var(--line);background:#fff;color:var(--ink);font-size:16px;font-weight:600}
.btn-prev:disabled{opacity:.45;cursor:default}
.btn-next,.btn-primary{height:56px;padding:0 36px;border:none;background:var(--purple);color:#fff;font-size:17px;font-weight:700}
.btn-next:hover,.btn-primary:hover{background:var(--purple-dark);color:#fff}
.btn-ghost{height:56px;padding:0 28px;border:1px solid var(--line);background:#fff;color:var(--ink);font-size:16px;font-weight:600}
.done{display:none;background:#fff;border-radius:16px;box-shadow:var(--shadow);padding:48px 28px;flex-direction:column;align-items:center;gap:18px;text-align:center}
.done .ok{width:80px;height:80px;border-radius:50%;background:var(--done);display:flex;align-items:center;justify-content:center}
.done h2{margin:0;font-size:30px;line-height:1.3;font-weight:700;color:var(--ink)}
.done p{margin:0;max-width:520px;font-size:18px;line-height:1.65;color:var(--text)}
.done .acts{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;padding-top:8px}

html.js .mode-row{display:flex}
html.js .guide.mode-step .progress{display:flex}
html.js .guide.mode-step .step{display:none}
html.js .guide.mode-step .step.is-current{display:block}
html.js .guide.mode-step .step-toggle{cursor:default}
html.js .guide.mode-step .step-nav{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;padding-top:26px}
html.js .guide.mode-step.is-done .step.is-current{display:none}
html.js .guide.mode-step.is-done .done{display:flex}
html.js .guide.mode-all .steps{gap:0;background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}
html.js .guide.mode-all .step{box-shadow:none;border-radius:0;padding:0;border-top:1px solid var(--line)}
html.js .guide.mode-all .step:first-child{border-top:none}
html.js .guide.mode-all .step-toggle{min-height:68px;padding:16px 24px;font-size:18px;line-height:1.4;font-weight:600;cursor:pointer;background:#fff}
html.js .guide.mode-all .step-toggle:hover{background:var(--purple-row)}
html.js .guide.mode-all .step.is-open .step-toggle{background:var(--purple-row)}
html.js .guide.mode-all .step-toggle .chev{display:block}
html.js .guide.mode-all .step.is-open .chev{transform:rotate(90deg)}
html.js .guide.mode-all .step-toggle .num{flex-basis:34px;width:34px;height:34px;font-size:16px}
html.js .guide.mode-all .step-body{margin:0;padding:4px 24px 28px 94px;display:none}
html.js .guide.mode-all .step.is-open .step-body{display:block}

/* ── Prose (guide text) ── */
.prose{font-size:17px;line-height:1.7;color:var(--text)}
.prose p{margin:0 0 14px}
.prose ul,.prose ol{margin:0 0 14px;padding-left:24px}
.prose li{margin:0 0 6px}
.prose li::marker{color:var(--purple);font-weight:600}
.prose strong{color:var(--ink);font-weight:700}
.prose h2{font-size:24px;line-height:1.3;color:var(--ink);margin:28px 0 12px}
.prose h3{font-size:19px;line-height:1.35;color:var(--ink);margin:24px 0 10px}
.prose > :first-child{margin-top:0}
.prose > :last-child{margin-bottom:0}
.prose a{font-weight:600;word-break:break-word}
.shot{margin:18px 0}
.shot a{display:block;cursor:zoom-in;border-radius:12px}
.shot img{display:block;max-width:100%;height:auto;border:1px solid var(--line);border-radius:12px;background:var(--bg)}
.callout{background:var(--purple-tint);border-left:4px solid var(--purple);border-radius:12px;padding:14px 18px;margin:16px 0}
.callout > :last-child{margin-bottom:0}
.table-wrap{overflow-x:auto;margin:0 0 14px;border:1px solid #ECECEC;border-radius:12px}
.table-wrap table{border-collapse:collapse;width:100%;font-size:15px;line-height:1.55}
.table-wrap th{background:var(--purple-tint);color:var(--ink);text-align:left;font-weight:700;padding:12px 14px;position:sticky;top:0}
.table-wrap td{padding:12px 14px;border-top:1px solid #ECECEC;vertical-align:top}
.table-wrap td:first-child{min-width:180px}

/* ── Welcome: guide cards + all guides ── */
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px;margin-top:6px}
.gcard{display:flex;flex-direction:column;gap:6px;padding:20px;border-radius:14px;border:1px solid #E6E6E6;background:#fff;text-decoration:none;color:var(--text);transition:border-color .15s,box-shadow .15s}
.gcard:hover{border-color:var(--purple);box-shadow:0 8px 24px rgba(131,82,234,.12);color:var(--text)}
.gcard .t{font-size:17px;font-weight:700;color:var(--ink);line-height:1.35}
.gcard .d{font-size:14px;line-height:1.55;color:var(--muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.all-guides h2{margin:0 0 6px;font-size:24px;color:var(--ink)}
.all-guides .cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px 32px}
.all-guides h3{font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#8a8a8a;margin:18px 0 6px}
.all-guides ul{list-style:none;margin:0;padding:0}
.all-guides li a{display:block;padding:9px 0;font-size:16px;font-weight:600;text-decoration:none;border-bottom:1px solid #F0F0F0}
.all-guides li.child a{padding-left:16px;font-weight:500;font-size:15px}

/* ── Help bar + footer ── */
.help{background:#fff;border-radius:16px;box-shadow:var(--shadow);padding:28px;display:flex;flex-wrap:wrap;align-items:center;gap:20px}
.help .ico{flex:0 0 60px;width:60px;height:60px;border-radius:50%;background:var(--purple-light);display:flex;align-items:center;justify-content:center}
.help h2{flex:1 1 280px;margin:0;font-size:20px;line-height:1.35;font-weight:700;color:var(--ink)}
.help .wa{height:56px;padding:0 30px;border-radius:100px;background:var(--wa);color:var(--wa-ink);font-size:17px;font-weight:700;text-decoration:none;display:flex;align-items:center;gap:10px}
.help .wa:hover{background:#1FC15C;color:var(--wa-ink)}
.hc-foot{max-width:1280px;margin:0 auto;padding:0 28px 40px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:13px;color:var(--muted)}
.hc-foot a{color:var(--muted)}
.mbar{display:none}

/* ── Tablet ── */
@media (max-width:1023px){
  .hc-side{flex-basis:210px}
  .hc-search input{width:220px}
  .page-head h1{font-size:34px}
}

/* ── Mobile (390px design) ── */
@media (max-width:767px){
  html{scroll-padding-top:76px}
  .hc-header-in{padding:10px 16px;gap:8px;flex-wrap:nowrap}
  .hc-brand{gap:8px;flex:1 1 auto;min-width:0}
  .hc-brand .logo-full,.hc-brand .div{display:none}
  .hc-brand .logo-mark{display:block;flex:none}
  .hc-brand .name{font-size:15px;font-weight:700;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .hc-tools{gap:8px;flex-wrap:nowrap;flex:none}
  .hc-search{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--line);padding:10px 16px}
  .hc-header.search-open .hc-search{display:block}
  .hc-search input{width:100%}
  .hc-search .ico{left:31px}
  .hc-results{left:16px;right:16px;width:auto;top:62px}
  .hc-search-toggle{display:inline-flex}
  .hc-lang{gap:2px;padding:3px}
  .hc-lang a{min-width:42px;height:44px;padding:0 7px;font-size:14px}
  .hc-search-toggle{width:42px;height:42px}
  .hc-brand .name{font-size:14px}
  .hc-wrap{display:block;padding:8px 16px 20px}
  .hc-side{display:none}
  .hc-main{gap:16px}
  .crumbs{display:none}
  .mback{display:flex;align-items:center;gap:4px;min-height:44px;font-size:14px;font-weight:600;text-decoration:none;margin-bottom:-8px}
  .page-head{gap:10px}
  .page-head h1{font-size:24px;line-height:1.3}
  .page-head .intro{font-size:15px;line-height:1.6}
  .card{padding:18px}
  .video-card{background:transparent;box-shadow:none;padding:0}
  .video-btn{flex:1 1 100%;width:100%;height:auto;min-height:64px;padding:10px 14px;border-radius:14px;justify-content:flex-start;text-align:left}
  .video-btn .play{width:40px;height:40px}
  .video-btn .play svg{width:18px;height:18px}
  .video-btn .video-label{display:inline;font-size:15px;font-weight:700}
  .video-text{display:none}
  .progress{display:none !important}
  .step{padding:18px}
  .step-toggle{gap:12px;font-size:20px;line-height:1.35}
  .step-toggle .num{flex-basis:38px;width:38px;height:38px;font-size:18px}
  .step-body{margin-top:16px}
  .prose{font-size:16px;line-height:1.65}
  .shot{margin:14px 0}
  html.js .guide.mode-step .mprog{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
  .mprog .t{font-size:14px;font-weight:700;color:var(--purple)}
  .mprog .bar{height:8px;border-radius:100px;background:var(--purple-light);overflow:hidden}
  .mprog .bar i{display:block;height:100%;border-radius:100px;background:var(--purple);transition:width .25s ease}
  html.js .guide.mode-step .step-nav{display:none}
  html.js .guide.mode-all .step-toggle{padding:14px 16px;font-size:16px;gap:12px}
  html.js .guide.mode-all .step-body{padding:4px 16px 20px}
  .done{padding:32px 20px;gap:14px}
  .done .ok{width:68px;height:68px}
  .done h2{font-size:22px;line-height:1.35}
  .done p{font-size:15px;line-height:1.6}
  .done .acts{flex-direction:column;width:100%}
  .done .acts > *{width:100%;height:52px;font-size:15px}
  .mbar{position:fixed;left:0;right:0;bottom:0;z-index:40;background:#fff;border-top:1px solid var(--line);padding:12px 16px calc(20px + env(safe-area-inset-bottom));gap:10px}
  body.has-mbar .mbar{display:flex}
  body.has-mbar{padding-bottom:96px}
  .mbar .m-prev{flex:0 0 56px;height:56px;border-radius:100px;border:1px solid var(--line);background:#fff;color:var(--ink);display:flex;align-items:center;justify-content:center;cursor:pointer}
  .mbar .m-prev:disabled{opacity:.45;cursor:default}
  .mbar .m-next{flex:1 1 auto;height:56px;border-radius:100px;border:none;background:var(--purple);color:#fff;font-size:16px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer}
  .help{padding:18px;flex-direction:column;align-items:stretch;gap:10px}
  .help .top{display:flex;align-items:center;gap:12px}
  .help .ico{flex-basis:44px;width:44px;height:44px}
  .help .ico svg{width:22px;height:22px}
  .help h2{font-size:17px;flex:1 1 auto}
  .help .wa{min-height:52px;height:auto;font-size:16px;justify-content:center;gap:8px}
  .cards{grid-template-columns:1fr}
  .table-wrap{border:none;overflow:visible}
  .table-wrap thead{display:none}
  .table-wrap tr{display:block;border:1px solid #ECECEC;border-radius:12px;margin-bottom:10px;padding:6px 0;background:#fff}
  .table-wrap td{display:block;border:none;padding:6px 14px}
  .table-wrap td::before{content:attr(data-label);display:block;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#8a8a8a}
  .table-wrap td:first-child{min-width:0}
  .hc-foot{padding:0 16px 28px;flex-direction:column}
}
@media (min-width:768px){ .help .top{display:contents} }
@media (prefers-reduced-motion:reduce){ *{transition:none !important;scroll-behavior:auto !important} }
