/* Help center (/pomosht/, inc/help.php). Colors and fonts from site.css / theme.json. */

.tbs-hc { background: var(--tbs-paper); padding-bottom: 72px; }
.tbs-hc__layout { width: min(1240px, 100% - 40px); margin-inline: auto; display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 48px; padding-top: 40px; }
.tbs-hc__cats-toggle { display: none; }

/* Icons: SVG file as a mask, painted with the current color. */
.tbs-hc__ico { display: inline-block; flex: none; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--tbs-hc-ico) center / contain no-repeat; mask: var(--tbs-hc-ico) center / contain no-repeat; }

/* Left column */
.tbs-hc__side { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow: auto; padding-right: 6px; }
.tbs-hc__home { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 8px; font-weight: 700; color: var(--tbs-green-deep); text-decoration: none; border-radius: 12px; }
.tbs-hc__home:hover { background: var(--tbs-green-soft); }
.tbs-hc__cat > button { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; font-weight: 600; color: var(--tbs-ink); }
.tbs-hc__cat > button:hover { background: var(--tbs-card); }
.tbs-hc__cat > button:focus-visible { outline: 2px solid var(--tbs-green); outline-offset: 1px; }
.tbs-hc__cat > button .tbs-hc__ico { color: var(--tbs-green); }
.tbs-hc__cat > button span:not(.tbs-hc__ico) { flex: 1; line-height: 1.3; }
.tbs-hc__cat > button b { width: 8px; height: 8px; border-right: 2px solid var(--tbs-muted); border-bottom: 2px solid var(--tbs-muted); transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .2s; }
.tbs-hc__cat.is-open > button b { transform: rotate(-135deg); margin-top: 4px; }
.tbs-hc__cat ul { display: none; list-style: none; margin: 2px 0 8px; padding: 0 0 0 46px; }
.tbs-hc__cat.is-open ul { display: block; }
.tbs-hc__cat li a { display: block; padding: 6px 10px; border-radius: 8px; font-size: 15px; line-height: 1.35; color: var(--tbs-muted); text-decoration: none; }
.tbs-hc__cat li a:hover { color: var(--tbs-green-deep); background: var(--tbs-card); }
.tbs-hc__cat li.is-current a { color: var(--tbs-green-deep); background: var(--tbs-green-soft); font-weight: 600; }

/* Middle */
.tbs-hc__main { max-width: 820px; outline: none; }
.tbs-hc__main h1 { font: 700 clamp(30px, 3.4vw, 40px)/1.15 var(--tbs-head); margin: 0 0 22px; color: var(--tbs-ink); }
.tbs-hc__main h2 { font: 700 22px/1.3 var(--tbs-head); margin: 44px 0 16px; color: var(--tbs-ink); }
.tbs-hc__crumbs { margin: 0 0 10px; font-size: 14px; color: var(--tbs-muted); }
.tbs-hc__crumbs a { color: var(--tbs-green-deep); }

.tbs-hc__search input { box-sizing: border-box; width: 100%; padding: 17px 20px 17px 54px; font-size: 17px; border: 1px solid var(--tbs-line); border-radius: 16px; background: var(--tbs-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 20px center no-repeat; color: var(--tbs-ink); }
.tbs-hc__search input:focus { outline: none; border-color: var(--tbs-green); box-shadow: 0 0 0 3px var(--tbs-green-soft); }

.tbs-hc__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 28px; }
.tbs-hc__list a { display: block; padding: 8px 0; font-size: 16px; color: var(--tbs-green-deep); text-decoration: none; }
.tbs-hc__list a:hover { text-decoration: underline; }

.tbs-hc__topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tbs-hc__topic, .tbs-hc__way { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 16px; background: var(--tbs-card); border: 1px solid var(--tbs-line); color: var(--tbs-muted); text-decoration: none; font-size: 14px; line-height: 1.45; transition: border-color .15s, transform .15s; }
a.tbs-hc__topic:hover, a.tbs-hc__way:hover { border-color: var(--tbs-green); transform: translateY(-1px); }
.tbs-hc__topic .tbs-hc__ico, .tbs-hc__way .tbs-hc__ico { width: 40px; height: 40px; padding: 9px; box-sizing: border-box; border-radius: 12px; background: var(--tbs-green-soft); -webkit-mask: none; mask: none; position: relative; }
.tbs-hc__topic .tbs-hc__ico::after, .tbs-hc__way .tbs-hc__ico::after { content: ""; position: absolute; inset: 9px; background: var(--tbs-green-deep); -webkit-mask: var(--tbs-hc-ico) center / contain no-repeat; mask: var(--tbs-hc-ico) center / contain no-repeat; }
.tbs-hc__topic b, .tbs-hc__way b { display: block; margin-bottom: 2px; font-size: 16px; color: var(--tbs-ink); }

.tbs-hc__ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tbs-hc__way.is-later { background: transparent; border-style: dashed; }

.tbs-hc__articles { margin-top: 18px; border-top: 1px solid var(--tbs-line); }
.tbs-hc__article-row { display: block; padding: 18px 4px; border-bottom: 1px solid var(--tbs-line); text-decoration: none; color: var(--tbs-muted); font-size: 15px; }
.tbs-hc__article-row small { display: block; font-size: 13px; color: var(--tbs-green); margin-bottom: 2px; }
.tbs-hc__article-row b { display: block; font-size: 17px; color: var(--tbs-ink); margin-bottom: 4px; }
.tbs-hc__article-row:hover b { color: var(--tbs-green-deep); }
.tbs-hc__empty { margin-top: 18px; padding: 20px; border-radius: 16px; background: var(--tbs-card); border: 1px solid var(--tbs-line); }
.tbs-hc__empty b { display: block; margin-bottom: 4px; }

/* Article */
.tbs-hc__lead { font-size: 19px; line-height: 1.55; margin: 0 0 18px; color: var(--tbs-ink); }
.tbs-hc__where { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--tbs-green-soft); color: var(--tbs-green-ink); font-size: 15px; }
.tbs-hc__where-label { font-weight: 700; margin-right: 4px; }
.tbs-hc__where span:not(.tbs-hc__where-label) { padding: 2px 10px; border-radius: 8px; background: var(--tbs-card); font-weight: 600; }
.tbs-hc__where i { font-style: normal; opacity: .6; }
.tbs-hc__steps { margin: 0; padding-left: 0; list-style: none; counter-reset: s; }
.tbs-hc__steps li { counter-increment: s; position: relative; padding: 8px 0 8px 46px; font-size: 16px; line-height: 1.55; }
.tbs-hc__steps li::before { content: counter(s); position: absolute; left: 0; top: 6px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--tbs-green); color: #fff; font-weight: 700; font-size: 14px; }
.tbs-hc__shot { margin: 24px 0 0; }
.tbs-hc__shot a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--tbs-line); background: var(--tbs-card); box-shadow: 0 10px 30px -18px rgba(16, 24, 40, .35); }
.tbs-hc__shot img { display: block; width: 100%; height: auto; }
.tbs-hc__shot figcaption { margin-top: 8px; font-size: 13px; color: var(--tbs-muted); }
.tbs-hc__note { margin-top: 24px; padding: 16px 18px; border-left: 4px solid var(--tbs-gold); border-radius: 0 12px 12px 0; background: var(--tbs-gold-soft); font-size: 15px; }
.tbs-hc__note b { display: block; margin-bottom: 2px; }
.tbs-hc__vote { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--tbs-line); font-weight: 600; }
.tbs-hc__vote button { padding: 7px 20px; border-radius: 999px; border: 1px solid var(--tbs-line); background: var(--tbs-card); font: inherit; cursor: pointer; color: var(--tbs-ink); }
.tbs-hc__vote button:hover { border-color: var(--tbs-green); color: var(--tbs-green-deep); }
.tbs-hc__meta { margin-top: 10px; font-size: 13px; color: var(--tbs-muted); }

@media (max-width: 1000px) {
	.tbs-hc__layout { grid-template-columns: 1fr; gap: 0; padding-top: 20px; }
	.tbs-hc__cats-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 16px; padding: 12px 16px; border: 1px solid var(--tbs-line); border-radius: 12px; background: var(--tbs-card); font-family: inherit; font-size: 16px; font-weight: 600; color: var(--tbs-ink); cursor: pointer; }
	.tbs-hc__cats-toggle::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--tbs-muted); border-bottom: 2px solid var(--tbs-muted); transform: rotate(45deg); }
	.tbs-hc__side { display: none; position: static; max-height: none; margin-bottom: 20px; }
	.tbs-hc__side.is-open { display: block; }
	.tbs-hc__topics, .tbs-hc__ways { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.tbs-hc__layout { width: calc(100% - 32px); }
	.tbs-hc__topics, .tbs-hc__ways, .tbs-hc__list { grid-template-columns: 1fr; }
	.tbs-hc__search input { font-size: 16px; }
}
.tbs-hc__steps.is-parts li::before { content: ""; width: 10px; height: 10px; top: 15px; left: 10px; }
.tbs-hc__article { margin-top: 28px; }
.tbs-hc__note code, .tbs-hc__steps code { font-size: .92em; padding: 1px 6px; border-radius: 6px; background: var(--tbs-card); border: 1px solid var(--tbs-line); word-break: break-word; }
.tbs-hc__article[hidden] { display: none; }
.tbs-hc__news { margin: 0 0 8px; padding-left: 22px; list-style: disc; }
.tbs-hc__news li { margin: 0 0 6px; line-height: 1.6; }
