/* ---------------------------------------------------------------------------
   AIODomain - Global domain marketplace
   Author: MD OMAR FARUK | www.faruk.bd | Copyright (c) 2026
   --------------------------------------------------------------------------- */
/**
 * Help Center (site/pages/help.php): hero search with suggestions, topic cards, article lists,
 * the topic and article layouts, the table of contents, votes and "Still need help?".
 * Colours come from the Horizon theme tokens (--st-*), so light and dark mode follow the theme.
 */

/* ---------------------------------------------------------------- hero */
.ph-hero{padding:64px 0 60px;overflow:visible;z-index:5}
/* the theme's glow sits outside the band; keep it inside so the band can let the suggestions hang below it */
.ph-hero:after{inset:0;width:auto;height:auto;border-radius:0;background:radial-gradient(circle at 92% 0,color-mix(in srgb,var(--st-accent) 55%,transparent),transparent 42%)}
.ph-hero h1{font-size:clamp(30px,4.4vw,48px);display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap}
.ph-hero-compact{padding:36px 0 40px}
.ph-hero-compact h1{font-size:clamp(26px,3.4vw,38px);margin-bottom:10px}
.ph-hero-sub{color:rgba(255,255,255,.84);font-size:17px;margin:0 auto 26px;max-width:640px}
.ph-hero-sub b{color:#fff}
.ph-hero-ic{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:14px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);color:#fff;flex:none}
.ph-chips{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin-top:20px;font-size:13.5px}
.ph-chips span{color:rgba(255,255,255,.72);font-weight:600}
.ph-chips a{color:#fff;padding:6px 12px;border-radius:30px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);transition:background .15s}
.ph-chips a:hover{background:rgba(255,255,255,.2);text-decoration:none}

/* ---------------------------------------------------------------- crumbs */
.ph-crumbs{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:13px;color:var(--st-muted);margin:0 0 14px}
.ph-crumbs a{color:var(--st-muted)}
.ph-crumbs a:hover{color:var(--st-accent)}
.ph-crumbs span{color:var(--st-text-2);font-weight:500}
.ph-crumbs .aio-icon{opacity:.6}
.ph-crumbs.on-dark{justify-content:center;color:rgba(255,255,255,.7);margin-bottom:16px}
.ph-crumbs.on-dark a{color:rgba(255,255,255,.78)}
.ph-crumbs.on-dark a:hover{color:#fff}
.ph-crumbs.on-dark span{color:#fff}
[dir=rtl] .ph-crumbs .aio-icon{transform:scaleX(-1)}

/* ---------------------------------------------------------------- search + suggestions */
.ph-search{position:relative}
.ph-suggest{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:400;background:var(--st-surface);color:var(--st-text);border:1px solid var(--st-line);border-radius:var(--st-radius-md);box-shadow:var(--st-shadow-lg);padding:6px;max-height:min(440px,60vh);overflow:auto;text-align:start}
.ph-suggest[hidden]{display:none}
.ph-suggest a{display:flex;gap:12px;align-items:flex-start;padding:10px 12px;border-radius:10px;color:var(--st-text)}
.ph-suggest a:hover,.ph-suggest a.on{background:var(--st-accent-soft);text-decoration:none}
.ph-suggest a .aio-icon{color:var(--st-accent);flex:none;margin-top:2px}
.ph-suggest b{display:block;font-size:15px;line-height:1.35}
.ph-suggest small{display:block;color:var(--st-muted);font-size:12.5px;line-height:1.45;margin-top:2px}
.ph-suggest em{font-style:normal;color:var(--st-accent);font-weight:600}
.ph-suggest .ph-sg-all{justify-content:center;font-weight:600;color:var(--st-accent);border-top:1px solid var(--st-line);border-radius:0 0 10px 10px;margin-top:4px}
.ph-suggest .ph-sg-none{padding:12px;color:var(--st-muted);font-size:14px}
.ph-suggest mark,.ph-list mark{background:color-mix(in srgb,var(--st-accent-2) 30%,transparent);color:inherit;border-radius:3px;padding:0 1px}
.ph-search-sm{display:flex;align-items:center;gap:6px;background:var(--st-surface);border:1px solid var(--st-line);border-radius:var(--st-radius-md);padding:4px 4px 4px 12px;margin-bottom:18px}
.ph-search-sm:focus-within{border-color:var(--st-accent);box-shadow:0 0 0 3px var(--st-accent-soft)}
.ph-search-sm>.aio-icon{color:var(--st-muted);flex:none}
.ph-search-sm input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:14.5px;color:var(--st-text);height:38px}
.ph-search-sm input::placeholder{color:var(--st-muted)}
.ph-search-sm button{height:36px;width:40px;border:0;border-radius:9px;background:var(--st-accent);color:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex:none}
.ph-search-sm button:hover{background:var(--st-accent-d)}
.ph-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------------------------------------------------------------- sections */
.ph-wrap{padding-top:44px;padding-bottom:24px}
.ph-sec{margin-bottom:52px}
.ph-sec-h{margin-bottom:20px}
.ph-sec-h h2{margin:0 0 4px;font-size:clamp(22px,2.4vw,28px)}
.ph-sec-h p{margin:0;color:var(--st-muted)}

/* ---------------------------------------------------------------- topic cards */
.ph-topics{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:18px}
.ph-topic{display:flex;flex-direction:column;background:var(--st-surface);border:1px solid var(--st-line);border-radius:var(--st-radius);padding:20px;box-shadow:var(--st-shadow-sm);transition:border-color .15s,box-shadow .15s,transform .15s}
.ph-topic:hover{border-color:var(--st-accent-line);box-shadow:var(--st-shadow);transform:translateY(-2px)}
.ph-topic-h{display:flex;align-items:center;gap:14px;color:var(--st-text)}
.ph-topic-h:hover{text-decoration:none}
.ph-topic-h b{display:block;font-size:16.5px;line-height:1.3}
.ph-topic-h small{display:block;color:var(--st-muted);font-size:13px;margin-top:2px}
.ph-topic-h:hover b{color:var(--st-accent)}
.ph-topic-ic{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:12px;background:var(--st-accent-soft);color:var(--st-accent);flex:none}
.ph-topic p{margin:12px 0 0;color:var(--st-muted);font-size:14px;line-height:1.55}
.ph-topic ul{list-style:none;margin:14px 0 0;padding:12px 0 0;border-top:1px solid var(--st-line)}
.ph-topic li{margin:0;padding:4px 0;font-size:14.5px;line-height:1.45}
.ph-topic li a{color:var(--st-text-2)}
.ph-topic li a:hover{color:var(--st-accent)}
.ph-more{display:inline-flex;align-items:center;gap:4px;margin-top:auto;padding-top:12px;font-size:13.5px;font-weight:600;color:var(--st-accent)}

/* ---------------------------------------------------------------- article lists */
.ph-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ph-list li{margin:0}
.ph-list a{display:flex;align-items:flex-start;gap:14px;padding:16px 18px;background:var(--st-surface);border:1px solid var(--st-line);border-radius:var(--st-radius-md);color:var(--st-text);transition:border-color .15s,box-shadow .15s}
.ph-list a:hover{border-color:var(--st-accent-line);box-shadow:var(--st-shadow);text-decoration:none}
.ph-list a:hover b{color:var(--st-accent)}
.ph-list-ic{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;background:var(--st-surface-2);color:var(--st-muted);flex:none}
.ph-list-b{flex:1;min-width:0}
.ph-list-b b{display:block;font-size:16px;line-height:1.4}
.ph-list-x{display:block;color:var(--st-muted);font-size:14px;line-height:1.55;margin-top:4px}
.ph-list-m{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:6px;font-size:12.5px;color:var(--st-muted)}
.ph-list-m span:first-child:not(:last-child){color:var(--st-accent);font-weight:600}
.ph-list-go{color:var(--st-muted);flex:none;margin-top:10px}
[dir=rtl] .ph-list-go{transform:scaleX(-1)}
.ph-pop .ph-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.ph-pop .ph-list a{align-items:center}
.ph-pop .ph-list-go{margin-top:0}

/* ---------------------------------------------------------------- guides */
.ph-guides{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.ph-guide{background:var(--st-surface);border:1px solid var(--st-line);border-radius:var(--st-radius);padding:22px}
.ph-guide-h{display:flex;gap:14px;align-items:flex-start;margin-bottom:12px}
.ph-guide-h h3{margin:0 0 2px;font-size:18px}
.ph-guide-h p{margin:0;color:var(--st-muted);font-size:14px}
.ph-guide ol{margin:0;padding:0;list-style:none;counter-reset:ph}
.ph-guide li{counter-increment:ph;display:flex;gap:12px;align-items:center;padding:9px 0;border-top:1px solid var(--st-line);font-size:15px}
.ph-guide li:before{content:counter(ph);display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:var(--st-accent-soft);color:var(--st-accent);font-weight:700;font-size:13px;flex:none}
.ph-guide li a{color:var(--st-text)}
.ph-guide li a:hover{color:var(--st-accent)}

/* ---------------------------------------------------------------- still need help */
.ph-need-band{margin-top:8px;padding:34px;border-radius:24px;background:var(--st-surface-2);border:1px solid var(--st-line)}
.ph-need-h{text-align:center;margin-bottom:22px}
.ph-need-h h2{margin:0 0 4px}
.ph-need-h p{margin:0;color:var(--st-muted)}
.ph-need-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ph-need-card{display:flex;flex-direction:column;gap:6px;padding:22px;background:var(--st-surface);border:1px solid var(--st-line);border-radius:var(--st-radius-md);color:var(--st-text);transition:border-color .15s,box-shadow .15s,transform .15s}
.ph-need-card:hover{border-color:var(--st-accent-line);box-shadow:var(--st-shadow);transform:translateY(-2px);text-decoration:none}
.ph-need-card b{font-size:16.5px}
.ph-need-card span:not(.ph-need-ic){color:var(--st-muted);font-size:14px;line-height:1.55}
.ph-need-card em{font-style:normal;font-weight:600;color:var(--st-accent);font-size:14px;margin-top:auto;padding-top:6px;display:inline-flex;align-items:center;gap:4px}
.ph-need-ic{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;background:var(--st-accent-soft);color:var(--st-accent);margin-bottom:6px}

/* ---------------------------------------------------------------- side boxes */
.ph-box{background:var(--st-surface);border:1px solid var(--st-line);border-radius:var(--st-radius-md);padding:18px;margin-bottom:18px}
.ph-box h3{margin:0 0 10px;font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--st-muted)}
.ph-box ul{list-style:none;margin:0;padding:0}
.ph-topics-nav li{margin:0}
.ph-topics-nav a{display:flex;align-items:center;gap:10px;padding:7px 10px;margin:0 -10px;border-radius:9px;color:var(--st-text-2);font-size:14.5px}
.ph-topics-nav a:hover{background:var(--st-surface-2);text-decoration:none;color:var(--st-text)}
.ph-topics-nav a.on{background:var(--st-accent-soft);color:var(--st-accent);font-weight:600}
.ph-topics-nav a .aio-icon{color:var(--st-muted);flex:none}
.ph-topics-nav a.on .aio-icon{color:var(--st-accent)}
.ph-topics-nav span{flex:1;min-width:0}
.ph-topics-nav em{font-style:normal;font-size:12px;color:var(--st-muted);background:var(--st-surface-2);border-radius:20px;padding:1px 8px}
.ph-need p{margin:0 0 12px;color:var(--st-muted);font-size:14px}
.ph-related li{margin:0;border-bottom:1px solid var(--st-line)}
.ph-related li:last-child{border-bottom:0}
.ph-related a{display:flex;gap:9px;align-items:flex-start;padding:8px 0;font-size:14.5px;line-height:1.45;color:var(--st-text-2)}
.ph-related a:hover{color:var(--st-accent);text-decoration:none}
.ph-related a .aio-icon{color:var(--st-muted);flex:none;margin-top:3px}

/* ---------------------------------------------------------------- topic + search layout */
.ph-cat-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:32px;align-items:start}
.ph-cat-side{position:sticky;top:calc(var(--st-header-h,68px) + 16px)}

/* ---------------------------------------------------------------- article */
.ph-art-wrap{padding-top:28px;padding-bottom:64px}
.ph-art-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:48px;align-items:start}
.ph-art{min-width:0;max-width:780px}
.ph-art-h{margin-bottom:24px;padding-bottom:20px;border-bottom:1px solid var(--st-line)}
.ph-art-cat{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--st-accent);background:var(--st-accent-soft);padding:5px 12px;border-radius:30px;margin-bottom:12px}
.ph-art-cat:hover{text-decoration:none;background:var(--st-accent-line)}
.ph-art-h h1{margin:0 0 10px;font-size:clamp(28px,3.4vw,40px);line-height:1.15;letter-spacing:-.02em}
.ph-art-meta{display:flex;flex-wrap:wrap;gap:6px 18px;margin:0;color:var(--st-muted);font-size:13.5px}
.ph-art-meta span{display:inline-flex;align-items:center;gap:6px}
.ph-prose{max-width:none}
.ph-prose h2,.ph-prose h3{scroll-margin-top:calc(var(--st-header-h,68px) + 20px);position:relative}
.ph-prose h2{padding-top:6px}
.ph-anchor{margin-inline-start:8px;color:var(--st-muted);text-decoration:none!important;opacity:0;font-weight:400;transition:opacity .15s}
.ph-prose h2:hover .ph-anchor,.ph-prose h3:hover .ph-anchor,.ph-anchor:focus{opacity:1}
.ph-prose ol{counter-reset:phs;list-style:none;padding-inline-start:0}
.ph-prose ol>li{counter-increment:phs;position:relative;padding-inline-start:40px;margin:.65em 0}
.ph-prose ol>li:before{content:counter(phs);position:absolute;inset-inline-start:0;top:1px;width:27px;height:27px;border-radius:50%;background:var(--st-accent-soft);color:var(--st-accent);font-weight:700;font-size:13.5px;display:flex;align-items:center;justify-content:center}
.ph-prose ol>li ul{margin:.4em 0 0}
.ph-prose .tip{background:color-mix(in srgb,var(--st-accent-2) 12%,var(--st-surface));border:1px solid color-mix(in srgb,var(--st-accent-2) 35%,transparent);border-inline-start:4px solid var(--st-accent-2);border-radius:var(--st-radius-sm);padding:12px 16px;color:var(--st-text)}
.ph-prose code{font-family:var(--st-mono);font-size:.9em;background:var(--st-surface-2);border:1px solid var(--st-line);border-radius:6px;padding:1px 6px}
.ph-prose pre{background:var(--st-surface-2);border:1px solid var(--st-line);border-radius:var(--st-radius-sm);padding:14px 16px;overflow-x:auto}
.ph-prose pre code{background:none;border:0;padding:0;font-size:13.5px;white-space:pre}
.ph-toc-m{display:none;margin:0 0 22px;background:var(--st-surface);border:1px solid var(--st-line);border-radius:var(--st-radius-md);padding:12px 16px}
.ph-toc-m summary{cursor:pointer;font-weight:600;display:flex;align-items:center;gap:8px;list-style:none}
.ph-toc-m summary::-webkit-details-marker{display:none}
.ph-toc-m[open] summary{margin-bottom:8px}
.ph-toc-list{list-style:none;margin:0;padding:0;border-inline-start:2px solid var(--st-line)}
.ph-toc-list li{margin:0}
.ph-toc-list a{display:block;padding:6px 0 6px 14px;margin-inline-start:-2px;border-inline-start:2px solid transparent;color:var(--st-text-2);font-size:14px;line-height:1.4}
.ph-toc-list a:hover{color:var(--st-accent);text-decoration:none}
.ph-toc-list a.on{color:var(--st-accent);border-inline-start-color:var(--st-accent);font-weight:600}
.ph-art-side{position:sticky;top:calc(var(--st-header-h,68px) + 16px);max-height:calc(100vh - var(--st-header-h,68px) - 32px);overflow:auto;padding-bottom:4px;scrollbar-width:thin}
.ph-vote{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 20px;margin-top:36px;padding:18px 20px;background:var(--st-surface-2);border:1px solid var(--st-line);border-radius:var(--st-radius-md)}
.ph-vote>div:first-child{display:flex;flex-direction:column;gap:2px}
.ph-vote-btns{display:flex;gap:8px}
.ph-vote-no{flex-basis:100%;margin:0;color:var(--st-text-2)}
.ph-pn{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:22px}
.ph-pn a{display:flex;flex-direction:column;gap:4px;padding:14px 18px;border:1px solid var(--st-line);border-radius:var(--st-radius-md);background:var(--st-surface);color:var(--st-text)}
.ph-pn a:hover{border-color:var(--st-accent-line);text-decoration:none}
.ph-pn a:hover b{color:var(--st-accent)}
.ph-pn small{display:inline-flex;align-items:center;gap:4px;color:var(--st-muted);font-size:12.5px}
.ph-pn b{font-size:15px;line-height:1.4}
.ph-pn-next{text-align:end;align-items:flex-end;grid-column:2}

/* ---------------------------------------------------------------- responsive */
@media(max-width:1000px){
  .ph-art-grid,.ph-cat-grid{grid-template-columns:minmax(0,1fr);gap:28px}
  .ph-art-side,.ph-cat-side{position:static;max-height:none;overflow:visible}
  .ph-art{max-width:none}
  .ph-art-side .ph-toc{display:none}
  .ph-toc-m{display:block}
}
@media(max-width:768px){
  .ph-hero{padding:44px 0 40px}
  .ph-hero-compact{padding:28px 0 30px}
  .ph-hero h1{font-size:30px}
  .ph-hero-compact h1{font-size:26px}
  .ph-hero-ic{width:42px;height:42px;border-radius:12px}
  .ph-hero-sub{font-size:15.5px;margin-bottom:20px}
  .ph-wrap{padding-top:28px;padding-bottom:44px}
  .ph-sec{margin-bottom:38px}
  .ph-pop .ph-list,.ph-guides,.ph-need-grid{grid-template-columns:minmax(0,1fr)}
  .ph-need-band{padding:22px 16px;border-radius:18px}
  .ph-topics{grid-template-columns:minmax(0,1fr);gap:12px}
  .ph-topic{padding:16px}
  .ph-list a{padding:14px}
  .ph-list-ic{display:none}
  .ph-art-wrap{padding-top:18px}
  .ph-art-h h1{font-size:27px}
  .ph-prose{font-size:16px}
  .ph-pn{grid-template-columns:minmax(0,1fr)}
  .ph-pn-next{grid-column:1}
  .ph-vote{padding:16px}
}
@media print{
  .ph-art-side,.ph-vote,.ph-pn,.ph-toc-m,.ph-anchor{display:none!important}
  .ph-art-grid{display:block}
}
@media(max-width:480px){
  .ph-chips{gap:6px;font-size:12.5px}
  .ph-chips a{padding:5px 10px}
  .ph-chips a:nth-of-type(n+3){display:none}
}
