/* TelegramBlaster site, part 5: the Help Center (/help and /help/<guide>). Same tokens as styles.css.
   The front page: a search-first hero, the six-step setup journey, every topic with all of its guides.
   A guide: topics on the left, the guide in the middle, its contents on the right. Pictures open full size. */

.hc { --col: 720px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hc kbd, .hc-overlay kbd { display: inline-grid; place-items: center; min-width: 1.7em; height: 1.7em; padding: 0 .45em; border-radius: 6px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line-2), 0 1.5px 0 var(--line-2);
  font: 600 .78em var(--mono); color: var(--ink); vertical-align: .08em; }

/* ---------- the front page ---------- */
.hc-hero { position: relative; padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 5vw, 64px); text-align: center; overflow-x: clip; }
.hc-hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, var(--lilac), rgba(255, 226, 204, .7) 45%, transparent 80%); -webkit-mask: linear-gradient(#000 40%, transparent); mask: linear-gradient(#000 40%, transparent); }
.hc-hero .eyebrow { justify-content: center; }
.hc-hero h1 { margin: 10px auto 0; max-width: 14ch; }
.hc-hero .lede { margin: 20px auto 0; max-width: 60ch; font-size: 1.15rem; color: var(--mute); }

.hc-searchbox { position: relative; display: flex; align-items: center; gap: 14px; width: min(720px, 100%); margin: 34px auto 0; padding: 0 16px 0 22px; min-height: 68px; border-radius: 22px;
  background: var(--white); box-shadow: 0 0 0 1px var(--line), var(--sh-lg); text-align: left; transition: box-shadow .3s var(--ease); }
.hc-searchbox:focus-within { box-shadow: 0 0 0 3px var(--grape), var(--sh-lg); }
.hc-searchbox > .ic { color: var(--mute); }
.hc-searchbox input { flex: 1; min-width: 0; height: 66px; border: 0; background: none; font: 500 1.12rem Figtree, system-ui, sans-serif; color: var(--ink); outline: none; }
.hc-searchbox input::placeholder { color: rgba(94, 75, 110, .75); }
.hc-searchbox input::-webkit-search-cancel-button { display: none; }
.hc-drop { position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 30; max-height: min(62vh, 560px); overflow: auto; border-radius: 20px; background: var(--white); box-shadow: 0 0 0 1px var(--line), var(--sh-lg); }

.hc-popular { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 22px auto 0; max-width: 820px; }
.hc-popular > span { font: 600 .88rem var(--display); color: var(--mute); margin-right: 4px; }
.hc-chip { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; background: rgba(255, 253, 249, .8); box-shadow: inset 0 0 0 1px var(--line-2);
  font: 500 .9rem Figtree, sans-serif; color: var(--ink); text-decoration: none; transition: background-color .2s, box-shadow .2s, transform .3s var(--ease); }
.hc-chip:hover { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-1px); }

.hc-sec { padding: clamp(28px, 4vw, 56px) 0; }
.hc-sec-head { margin-bottom: 26px; }
.hc-sec-head h2 { font-size: clamp(1.7rem, 1rem + 2.2vw, 2.6rem); max-width: 22ch; }

.hc-journey { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: j; }
.hc-journey a { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px 18px 22px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--sh-sm); color: var(--ink); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s, border-color .25s; }
.hc-journey a:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--line-2); }
.hc-journey li:not(:last-child) a::after { content: ""; position: absolute; top: 36px; right: -13px; width: 14px; height: 2px; background: var(--line-2); }
.hc-j-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--sun); font: 700 .95rem var(--display); }
.hc-journey b { font: 700 1.02rem/1.2 var(--display); letter-spacing: -0.02em; }
.hc-journey span:last-child { font-size: .9rem; line-height: 1.45; color: var(--mute); }

.hc-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hc-cat { display: flex; flex-direction: column; padding: 26px 24px 18px; border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-sm); scroll-margin-top: 110px; }
.hc-cat:target { box-shadow: 0 0 0 3px var(--sun), var(--sh-md); }
.hc-cat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.hc-cat-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--peach); color: var(--coral-d); }
.hc-cat:nth-child(3n + 2) .hc-cat-ic { background: var(--lilac); color: var(--grape-d); }
.hc-cat:nth-child(3n) .hc-cat-ic { background: var(--mint); color: var(--teal-d); }
.hc-count { font: 500 .78rem var(--mono); color: var(--mute); }
.hc-cat h2 { font-size: 1.35rem; letter-spacing: -0.03em; }
.hc-cat > p { margin: 6px 0 12px; font-size: .95rem; color: var(--mute); }
.hc-cat ul { margin: 4px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.hc-cat li + li { border-top: 1px solid var(--line); }
.hc-cat ul a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 2px; font-weight: 500; font-size: .96rem; color: var(--ink); text-decoration: none; transition: color .2s, padding .3s var(--ease); }
.hc-cat ul a .ic { flex: none; color: var(--mute); opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .3s var(--ease); }
.hc-cat ul a:hover { color: var(--coral-d); padding-left: 6px; } .hc-cat ul a:hover .ic { opacity: 1; transform: none; color: var(--coral-d); }

.hc-band { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; margin-top: 8px; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-xl);
  background: var(--ink); color: #fff; box-shadow: var(--sh-md); }
.hc-band-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--sun); color: var(--ink); }
.hc-band h2 { font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); color: #fff; }
.hc-band p { margin-top: 6px; color: #D9CCE8; } .hc-band p a { color: var(--sun); }

/* ---------- search results (front page and the search window) ---------- */
.hc-results { padding: 8px; }
.hc-res { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; padding: 12px 14px; border-radius: 14px; color: var(--ink); text-decoration: none; }
.hc-res .ic { grid-row: span 2; margin-top: 3px; color: var(--mute); }
.hc-res b { font: 600 1rem/1.3 var(--display); letter-spacing: -0.015em; }
.hc-res small { font-size: .88rem; color: var(--mute); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hc-res em { font-style: normal; color: var(--coral-d); font-weight: 650; }
.hc-res .hc-res-cat { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 6px; background: var(--wash); font: 500 .72rem var(--mono); color: var(--mute); vertical-align: .15em; }
.hc-res:hover, .hc-res[aria-selected="true"] { background: var(--bg); }
.hc-res[aria-selected="true"] { box-shadow: inset 0 0 0 1.5px var(--grape); }
.hc-none { padding: 22px 18px; color: var(--mute); }
.hc-none a { color: var(--grape); }

.hc-overlay { position: fixed; inset: 0; z-index: 90; display: grid; justify-items: center; align-items: start; padding: min(12vh, 120px) 16px 16px; background: rgba(43, 27, 61, .42); backdrop-filter: blur(6px); }
.hc-overlay[hidden] { display: none; }
.hc-dialog { width: min(680px, 100%); max-height: 76vh; display: flex; flex-direction: column; border-radius: 22px; background: var(--white); box-shadow: var(--sh-lg); overflow: hidden; animation: hc-in .28s var(--ease); }
.hc-dialog-in { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.hc-dialog-in .ic { color: var(--mute); }
.hc-dialog input { flex: 1; min-width: 0; height: 64px; border: 0; background: none; outline: none; font: 500 1.1rem Figtree, sans-serif; color: var(--ink); }
.hc-dialog .hc-results { overflow: auto; }
@keyframes hc-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }

/* ---------- a guide ---------- */
.hc-page { padding: clamp(18px, 3vw, 36px) 0 clamp(40px, 6vw, 80px); }
.hc-layout { display: grid; grid-template-columns: 250px minmax(0, var(--col)) 200px; justify-content: space-between; gap: clamp(28px, 3.4vw, 52px); align-items: start; }

.hc-side { position: sticky; top: 96px; max-height: calc(100vh - 116px); overflow: auto; padding: 4px 4px 24px; scrollbar-width: thin; }
.hc-find { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 0 12px 0 14px; border: 0; border-radius: 14px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line-2), var(--sh-sm);
  font: 500 .95rem Figtree, sans-serif; color: var(--mute); cursor: pointer; transition: box-shadow .2s; }
.hc-find span { flex: 1; text-align: left; }
.hc-find:hover { box-shadow: inset 0 0 0 1.5px var(--ink), var(--sh-sm); color: var(--ink); }
.hc-nav { margin-top: 18px; display: grid; gap: 2px; }
.hc-group summary { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; list-style: none; cursor: pointer; font: 600 .93rem var(--display); letter-spacing: -0.01em; }
.hc-group summary::-webkit-details-marker { display: none; }
.hc-group summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 1.8px solid var(--mute); border-bottom: 1.8px solid var(--mute); transform: rotate(-45deg); transition: transform .25s var(--ease); }
.hc-group[open] summary::after { transform: rotate(45deg); }
.hc-group summary:hover { background: var(--wash); }
.hc-group summary .ic { color: var(--mute); }
.hc-group ul { margin: 2px 0 8px 19px; padding: 0 0 0 12px; list-style: none; border-left: 1.5px solid var(--line); }
.hc-group ul a { display: block; padding: 6px 10px; border-radius: 8px; font-size: .9rem; line-height: 1.35; color: var(--mute); text-decoration: none; transition: background-color .2s, color .2s; }
.hc-group ul a:hover { color: var(--ink); background: var(--wash); }
.hc-group ul a[aria-current] { color: var(--ink); font-weight: 600; background: var(--white); box-shadow: inset 0 0 0 1px var(--line-2); }

.hc-article { min-width: 0; }
.hc-article .crumbs ol { margin-bottom: 18px; }
.hc-eyebrow a { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border-radius: 999px; background: var(--peach); color: var(--coral-d); font: 600 .84rem var(--display); text-decoration: none; }
.hc-article h1 { margin-top: 16px; font-size: clamp(2rem, 1.2rem + 2.6vw, 3rem); line-height: 1.04; }
.hc-lede { margin-top: 16px; font-size: 1.18rem; color: var(--mute); }
.hc-meta { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--line); font: 500 .85rem var(--mono); color: var(--mute); }

.hc-body { padding-top: 6px; }
.hc-body > p, .hc-body > .hc-list { margin-top: 18px; }
.hc-body p { line-height: 1.7; }
.hc-body a:not(.btn) { color: var(--grape-d); text-decoration: underline; text-decoration-color: rgba(98, 56, 201, .35); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.hc-body a:not(.btn):hover { text-decoration-color: currentColor; }
.hc-body a .out { display: inline; margin-left: 2px; vertical-align: -.1em; transform: rotate(-45deg); }
.hc-body h2 { margin-top: 44px; font-size: clamp(1.45rem, 1.1rem + 1vw, 1.8rem); letter-spacing: -0.035em; scroll-margin-top: 100px; }
.hc-body strong { font-weight: 650; }
.hc-list { padding-left: 4px; list-style: none; display: grid; gap: 10px; }
.hc-list li { position: relative; padding-left: 26px; line-height: 1.6; }
.hc-list li::before { content: ""; position: absolute; left: 6px; top: .62em; width: 8px; height: 8px; border-radius: 3px; background: var(--coral); transform: rotate(45deg); }

.hc-steps { margin: 26px 0 0; padding: 0; list-style: none; }
.hc-step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 18px; padding-bottom: 28px; }
.hc-step:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 44px; bottom: 6px; width: 2px; border-radius: 2px; background: linear-gradient(var(--line-2), var(--line)); }
.hc-step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--ink); color: #fff; font: 700 1rem var(--display); box-shadow: 0 6px 14px -8px rgba(43, 27, 61, .8); }
.hc-step:first-child .hc-step-n { background: var(--coral); }
.hc-step-b { min-width: 0; padding-top: 7px; }
.hc-step-b h3 { font-size: 1.14rem; line-height: 1.3; }
.hc-step-b p { margin-top: 6px; color: var(--ink-2); }

.hc-fig { margin: 18px 0 0; }
.hc-zoom { position: relative; display: block; max-width: 100%; padding: 0; border: 0; border-radius: 16px; background: var(--white); cursor: zoom-in; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px -26px rgba(74, 40, 20, .55); transition: box-shadow .3s, transform .35s var(--ease); }
.hc-zoom img { display: block; max-width: 100%; height: auto; }
.hc-zoom:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line-2), 0 26px 50px -26px rgba(74, 40, 20, .6); }
.hc-zoom:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.hc-zoom-ic { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(43, 27, 61, .78); color: #fff; opacity: 0; transform: scale(.9); transition: opacity .2s, transform .25s var(--ease); }
.hc-zoom:hover .hc-zoom-ic, .hc-zoom:focus-visible .hc-zoom-ic { opacity: 1; transform: none; }
.hc-fig figcaption { margin-top: 10px; font-size: .88rem; color: var(--mute); }

.hc-callout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; margin-top: 22px; padding: 16px 18px; border-radius: 16px; background: var(--mint); color: var(--ink); }
.hc-callout .ic { margin-top: 3px; color: var(--teal-d); }
.hc-callout p { line-height: 1.6; }
.hc-warn { background: var(--rose); } .hc-warn .ic { color: var(--bot); }
.hc-note { background: var(--lilac); } .hc-note .ic { color: var(--grape-d); }

.hc-table { margin-top: 20px; overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--white); }
.hc-table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hc-table th, .hc-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.hc-table tr:last-child > * { border-bottom: 0; }
.hc-table thead th { background: var(--wash); font: 600 .85rem var(--display); }
.hc-table tbody th { font-weight: 600; white-space: nowrap; }

.hc-faq { margin-top: 8px; }
.hc-qa { border-bottom: 1px solid var(--line); }
.hc-qa:first-of-type { margin-top: 12px; border-top: 1px solid var(--line); }
.hc-qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 2px; list-style: none; cursor: pointer; font: 600 1.02rem/1.35 var(--display); letter-spacing: -0.015em; }
.hc-qa summary::-webkit-details-marker { display: none; }
.hc-qa summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--wash); font: 500 1.1rem var(--mono); transition: transform .25s var(--ease), background-color .2s; }
.hc-qa[open] summary::after { transform: rotate(45deg); background: var(--sun); }
.hc-qa p { padding: 0 2px 16px; color: var(--ink-2); }

.hc-go { margin-top: 26px; }

.hc-related { margin-top: 48px; }
.hc-related h2 { font-size: 1.3rem; letter-spacing: -0.03em; }
.hc-related ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.hc-related a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px 18px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .3s var(--ease), box-shadow .3s; }
.hc-related a:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--sh-sm); }
.hc-related b { font: 600 1rem/1.3 var(--display); letter-spacing: -0.015em; }
.hc-related span { font-size: .88rem; color: var(--mute); }

.hc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 30px 0 26px; }
.hc-pager a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); text-decoration: none; transition: box-shadow .2s, background-color .2s; }
.hc-pager a:hover { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--ink); }
.hc-pager small { display: flex; align-items: center; gap: 6px; font: 500 .78rem var(--mono); color: var(--mute); }
.hc-pager b { font: 600 .98rem/1.3 var(--display); letter-spacing: -0.015em; }
.hc-next { text-align: right; align-items: flex-end; }

.hc-toc { position: sticky; top: 100px; font-size: .88rem; }
.hc-toc p { font: 600 .78rem var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.hc-toc ol { margin: 0; padding: 0; list-style: none; border-left: 1.5px solid var(--line); }
.hc-toc a { display: block; margin-left: -1.5px; padding: 6px 0 6px 14px; border-left: 1.5px solid transparent; color: var(--mute); text-decoration: none; line-height: 1.35; transition: color .2s, border-color .2s; }
.hc-toc a:hover { color: var(--ink); }
.hc-toc a.is-on { color: var(--ink); font-weight: 600; border-left-color: var(--coral); }

/* ---------- full-size picture ---------- */
.hc-light { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 3vh 3vw; background: rgba(28, 17, 40, .86); cursor: zoom-out; animation: hc-fade .2s ease; }
.hc-light[hidden] { display: none; }
.hc-light img { max-width: 100%; max-height: 94vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7); background: #fff; animation: hc-in .3s var(--ease); }
.hc-light-x { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.hc-light-x:hover { background: rgba(255, 255, 255, .24); }
@keyframes hc-fade { from { opacity: 0; } }

/* ---------- smaller screens ---------- */
@media (max-width: 1240px) {
  .hc-layout { grid-template-columns: 230px minmax(0, 1fr); }
  .hc-toc { display: none; }
  .hc-journey { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hc-journey li:nth-child(3) a::after { display: none; }
}
@media (max-width: 960px) {
  .hc-layout { grid-template-columns: minmax(0, 1fr); }
  .hc-side { position: static; max-height: none; overflow: visible; padding: 0; }
  .hc-nav { display: none; }
  .hc-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hc-band { grid-template-columns: minmax(0, 1fr); }
  .hc-band-ic { display: none; }
}
@media (max-width: 640px) {
  .hc-cats, .hc-journey, .hc-pager { grid-template-columns: minmax(0, 1fr); }
  .hc-journey a::after { display: none; }
  .hc-searchbox kbd { display: none; }
  .hc-step { grid-template-columns: 32px minmax(0, 1fr); gap: 14px; }
  .hc-step-n { width: 32px; height: 32px; border-radius: 10px; font-size: .9rem; }
  .hc-step:not(:last-child)::before { left: 15px; top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .hc-dialog, .hc-light, .hc-light img { animation: none; }
  .hc-zoom, .hc-journey a, .hc-chip, .hc-related a, .hc-cat ul a, .hc-cat ul a .ic { transition: none; }
}

/* styles.css styles every <details> as a home-page question (numbered, dark when open). The Help Center's own
   questions and topic lists start from a clean slate instead. */
.hc :is(.hc-group, .hc-qa), .hc :is(.hc-group, .hc-qa):is([open], :hover) { counter-increment: none; border: 0; border-radius: 0; background: none; box-shadow: none; color: inherit; transform: none; }
.hc :is(.hc-group, .hc-qa) summary { display: flex; grid-template-columns: none; min-height: 0; border-radius: 10px; }
.hc :is(.hc-group, .hc-qa) summary::before { content: none; }
.hc .hc-group summary::after { width: 7px; height: 7px; border-radius: 0; box-shadow: none; background: none; }
.hc .hc-group:not([open]):hover summary::after { background: none; }
.hc .hc-qa summary::after { box-shadow: none; }
.hc .hc-qa summary { border-radius: 0; }
.hc .hc-qa:not([open]):hover summary::after { background: var(--peach); }
.hc .hc-qa[open] summary::after { color: var(--ink); }
.hc .hc-qa { border-bottom: 1px solid var(--line); }
.hc .hc-qa:first-of-type { border-top: 1px solid var(--line); }
.hc .hc-qa[open] summary::after { content: "\2212"; transform: none; }
