/* ==========================================================================
   Text pages — terms, privacy, cookies, FAQ (layout A: table of contents on the left)
   Loaded only on these pages (section 'head'). Mockup: claude/mockups/front/text-pages.html
   ========================================================================== */
:root {
	--tp-green: #44b749;
	--tp-green-dark: #3a9e3f;
	--tp-green-soft: #eef8ee;
	--tp-ink: #14141c;
	--tp-text: #555;
	--tp-muted: #8a8f98;
	--tp-line: #e8e8e8;
	--tp-bg: #f6f7f6;
}

/* The theme sets html/body { overflow-x: hidden }, which breaks position: sticky.
   overflow-x: clip keeps the protection without creating a scroll container. */
@supports (overflow: clip) {
	html, body { overflow-x: clip !important; }
}

/* Theme blocks are floats (float: left; width: 100%) — the new block follows the same rule,
   otherwise grid/flex children shrink to 0 next to the floated page title. */
.tp { float: left; clear: both; width: 100%; padding: 64px 0 96px; }
.tp *, .tp *::before, .tp *::after { box-sizing: border-box; }
.tp a { color: var(--tp-green-dark); }
.tp a:hover { color: var(--tp-ink); }
.tp [hidden] { display: none !important; }
.tp svg { flex: 0 0 auto; }

/* ---------- layout ---------- */
.tp-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 72px; align-items: start; width: 100%; }
.tp-aside { position: sticky; top: calc(var(--hd-sticky, 56px) + 32px); }
.tp-body { min-width: 0; max-width: 760px; }

.tp-label { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 12px; font: 500 12px/1.2 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--tp-ink); }
.tp-label small { font: 400 12px/1 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--tp-muted); }
.tp-progress { height: 2px; margin: 0 0 14px; background: var(--tp-line); overflow: hidden; }
.tp-progress span { display: block; width: 0; height: 100%; background: var(--tp-green); transition: width .1s linear; }

.tp-toc { list-style: none; margin: 0; padding: 0; counter-reset: tp-toc; border-left: 2px solid var(--tp-line); }
.tp-toc li { counter-increment: tp-toc; margin: 0; padding: 0; }
.tp-toc li::before { display: none; }
.tp .tp-toc a { display: flex; gap: 12px; margin-left: -2px; padding: 7px 0 7px 16px; border-left: 2px solid transparent; font-size: 13.5px; line-height: 1.45; color: #6b6f76; text-decoration: none; transition: color .15s ease, border-color .15s ease; }
.tp .tp-toc a::before { content: counter(tp-toc, decimal-leading-zero); min-width: 18px; font: 500 12px/1.65 var(--font-head); color: #b5b9c0; }
.tp .tp-toc a:hover { color: var(--tp-ink); }
.tp .tp-toc a.is-active { color: var(--tp-ink); font-weight: 600; border-left-color: var(--tp-green); }
.tp .tp-toc a.is-active::before { color: var(--tp-green); }

.tp-aside-box { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--tp-line); }
.tp-aside > .tp-aside-box:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.tp-aside-links { list-style: none; margin: 0 0 18px; padding: 0; }
.tp-aside-links li { margin: 0; padding: 0; }
.tp-aside-links li::before { display: none; }
.tp .tp-aside-links a { display: block; padding: 5px 0; font-size: 13.5px; color: #6b6f76; text-decoration: none; }
.tp .tp-aside-links a:hover { color: var(--tp-green-dark); }

/* ---------- article head ---------- */
.tp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 0 0 30px; padding: 0 0 20px; border-bottom: 1px solid var(--tp-line); font-size: 13px; color: var(--tp-muted); }
.tp-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.tp-meta svg, .tp-linkbtn svg { width: 15px; height: 15px; }
.tp-meta .tp-linkbtn { margin-left: auto; }
.tp-linkbtn { display: inline-flex; align-items: center; gap: 7px; padding: 0; font: inherit; font-size: 13px; color: var(--tp-text); background: none; border: 0; cursor: pointer; }
.tp-linkbtn:hover { color: var(--tp-green-dark); }
.tp-lead, .tp-lead p { margin: 0 0 40px; font-size: 18px; line-height: 1.7; color: #3d3f44; }
.tp-lead p:last-child { margin-bottom: 0; }

/* ---------- editor content ---------- */
.tp-content { counter-reset: tp-sec; }
.tp-content > *:first-child { margin-top: 0; }
.tp-content h2 { position: relative; display: flex; align-items: baseline; gap: 14px; margin: 46px 0 18px; font: 400 26px/1.3 var(--font-head); color: var(--tp-ink); scroll-margin-top: calc(var(--hd-sticky, 56px) + 24px); }
.tp.has-toc .tp-content h2 { counter-increment: tp-sec; }
.tp.has-toc .tp-content h2::before { content: counter(tp-sec, decimal-leading-zero); min-width: 28px; font: 500 15px/1 var(--font-head); color: var(--tp-green); }
.tp-content h3 { margin: 28px 0 10px; font: 500 18px/1.4 var(--font-head); color: var(--tp-ink); scroll-margin-top: calc(var(--hd-sticky, 56px) + 24px); }
.tp-content h4 { margin: 22px 0 8px; font: 500 16px/1.4 var(--font-head); color: var(--tp-ink); }
.tp-content p, .tp-content li, .tp-content td, .tp-content th, .tp-content dd { font-size: 15px; line-height: 1.75; color: var(--tp-text); }
.tp-content p { margin: 0 0 14px; }
.tp-content strong, .tp-content b { color: var(--tp-ink); font-weight: 600; }
.tp-content ul, .tp-content ol { margin: 0 0 18px; padding: 0; }
.tp-content ul { list-style: none; }
.tp-content ul > li { position: relative; margin: 0 0 8px; padding-left: 22px; }
.tp-content ul > li::before { content: ''; position: absolute; left: 5px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--tp-green); }
.tp-content ol { padding-left: 22px; }
.tp-content ol > li { margin: 0 0 8px; padding-left: 4px; }
.tp-content ol > li::marker { color: var(--tp-green-dark); font-weight: 600; }
.tp-content blockquote { margin: 18px 0; padding: 16px 20px; font-size: 14.5px; line-height: 1.7; color: #3d4a3e; background: var(--tp-green-soft); border-left: 3px solid var(--tp-green); border-radius: 0 var(--r-xs) var(--r-xs) 0; }
.tp-content table { width: 100%; margin: 6px 0 18px; border-collapse: collapse; border: 1px solid var(--tp-line); }
.tp-content th { padding: 12px 16px; font: 500 13px/1.4 var(--font-head) !important; text-align: left; color: var(--tp-ink); background: var(--tp-bg); border-bottom: 1px solid var(--tp-line); }
.tp-content td { padding: 12px 16px; vertical-align: top; border-bottom: 1px solid var(--tp-line); }
.tp-content img { max-width: 100%; height: auto; }
.tp-content a { word-break: break-word; }

.tp-anchor { margin-left: 2px; font-size: 18px; line-height: 1; color: #c4c7cc !important; text-decoration: none; opacity: 0; transition: opacity .15s ease; }
.tp-content h2:hover .tp-anchor, .tp-content h3:hover .tp-anchor, .tp-anchor:focus { opacity: 1; }
.tp-anchor:hover { color: var(--tp-green) !important; }

/* ---------- buttons ---------- */
.tp-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.tp .tp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; font: 400 14px/1 var(--font-head); color: #fff; text-decoration: none; background: var(--tp-green); border: 1px solid var(--tp-green); border-radius: var(--r-xs); cursor: pointer; transition: background-color .2s ease; }
.tp .tp-btn:hover { color: #fff; background: var(--tp-green-dark); border-color: var(--tp-green-dark); }

/* ---------- end of article ---------- */
.tp-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; margin: 56px 0 0; padding: 28px 32px; background: var(--tp-bg); border-radius: var(--r-md); }
.tp-help h3 { margin: 0 0 4px; font: 400 21px/1.3 var(--font-head); color: var(--tp-ink); }
.tp-help p { margin: 0; font-size: 14.5px; color: var(--tp-text); }

.tp-related { margin: 44px 0 0; }
.tp-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tp .tp-related-grid a { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 104px; padding: 18px 20px; font: 400 16px/1.35 var(--font-head); color: var(--tp-ink); text-decoration: none; border: 1px solid var(--tp-line); border-radius: var(--r-md); transition: border-color .2s ease, transform .2s ease; }
.tp .tp-related-grid a:hover { border-color: var(--tp-green); transform: translateY(-2px); }
.tp-related-grid a span { font: 500 13px/1 var(--font-head); color: var(--tp-green-dark); }

/* ---------- back to top + toast ---------- */
.tp-top { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: var(--tp-ink); background: #fff; border: 1px solid var(--tp-line); border-radius: 50%; box-shadow: 0 6px 20px rgba(20, 20, 28, .1); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.tp-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.tp-top:hover { color: #fff; background: var(--tp-green); border-color: var(--tp-green); }
.tp-top svg { width: 18px; height: 18px; }
.tp-toast { position: fixed; left: 50%; bottom: 28px; z-index: 70; padding: 11px 18px; font-size: 13.5px; color: #fff; background: var(--tp-ink); border-radius: var(--r-pill); opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: opacity .2s ease, transform .2s ease; }
.tp-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- FAQ ---------- */
.tp-search { position: relative; margin: 0 0 26px; }
.tp-search svg { position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; color: var(--tp-muted); transform: translateY(-50%); pointer-events: none; }
.tp .tp-search input { width: 100%; height: 54px; margin: 0; padding: 0 18px 0 50px !important; font: 400 15px/1 var(--font-body); color: var(--tp-ink); background: #fff; border: 1px solid #dcdfe3; border-radius: var(--r-xs); outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.tp .tp-search input:focus { border-color: var(--tp-green); box-shadow: 0 0 0 3px rgba(68, 183, 73, .15); }
.tp-chips { display: none; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.tp-chip { height: 36px; padding: 0 16px; font: 400 13.5px/1 var(--font-head); color: var(--tp-text); background: #fff; border: 1px solid var(--tp-line); border-radius: var(--r-pill); cursor: pointer; transition: all .15s ease; }
.tp-chip:hover { color: var(--tp-ink); border-color: #cfd3d8; }
.tp-chip.is-active { color: #fff; background: var(--tp-green); border-color: var(--tp-green); }
.tp-chip small { margin-left: 4px; opacity: .7; }
.tp .tp-catlist a { justify-content: space-between; }
.tp .tp-catlist a::before { display: none; }
.tp .tp-catlist a::after { content: attr(data-count); font: 400 12px/1.65 var(--font-body); color: #b5b9c0; }

.tp-faq-count { margin: 0 0 6px; font-size: 13px; color: var(--tp-muted); }
.tp-faq-group { margin: 0 0 40px; scroll-margin-top: calc(var(--hd-sticky, 56px) + 24px); }
.tp-faq-group h2 { margin: 0 0 6px; font: 400 22px/1.3 var(--font-head); color: var(--tp-ink); }
.tp-qa { border-bottom: 1px solid var(--tp-line); }
.tp-qa summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 0; font: 400 16.5px/1.45 var(--font-head); color: var(--tp-ink); list-style: none; cursor: pointer; }
.tp-qa summary::-webkit-details-marker { display: none; }
.tp-qa summary::after { content: ''; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--tp-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314141c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .2s ease, background-color .2s ease; }
.tp-qa summary:hover, .tp-qa[open] summary { color: var(--tp-green-dark); }
.tp-qa[open] summary::after { transform: rotate(45deg); background-color: var(--tp-green-soft); }
.tp-qa .tp-ans { padding: 0 46px 20px 0; }
.tp-qa .tp-ans p, .tp-qa .tp-ans li { font-size: 15px; line-height: 1.75; color: var(--tp-text); }
.tp-qa .tp-ans p { margin: 0 0 10px; }
.tp-qa .tp-ans > *:last-child { margin-bottom: 0; }
.tp-faq-empty { padding: 40px 0; text-align: center; color: var(--tp-muted); }
mark.tp-hl { padding: 0 1px; color: inherit; background: #fff2a8; }

/* ---------- mobile TOC bar ---------- */
.tp-mbar { display: none; }

@media (max-width: 1199px) {
	.tp-grid { grid-template-columns: 230px minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 991px) {
	.tp { padding: 36px 0 72px; }
	.tp-grid { display: block; }
	.tp-aside { display: none; }
	.tp-body { max-width: none; }
	.tp-chips { display: flex; }
	.tp-mbar { position: sticky; top: var(--hd-sticky, 0px); z-index: 30; display: block; margin: 0 -20px 28px; background: #fff; border-bottom: 1px solid var(--tp-line); box-shadow: 0 4px 14px rgba(20, 20, 28, .04); }
	.tp-mbar-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 20px; font: 400 14px/1.3 var(--font-head); color: var(--tp-ink); text-align: left; background: none; border: 0; cursor: pointer; }
	.tp-mbar-btn b { font: 500 11.5px/1.3 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--tp-muted); }
	.tp-mbar-btn span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
	.tp-mbar-btn svg { width: 16px; height: 16px; transition: transform .2s ease; }
	.tp-mbar.is-open .tp-mbar-btn svg { transform: rotate(180deg); }
	.tp-mbar .tp-progress { margin: 0; }
	.tp-mbar-list { display: none; max-height: 55vh; overflow-y: auto; padding: 6px 20px 14px; }
	.tp-mbar.is-open .tp-mbar-list { display: block; }
	.tp-mbar-list .tp-toc { border-left: 0; }
	.tp .tp-mbar-list .tp-toc a { margin: 0; padding: 9px 0; border: 0; }
	.tp-lead, .tp-lead p { margin-bottom: 34px; font-size: 16.5px; }
	.tp-content h2 { gap: 10px; font-size: 22px; }
	.tp-related-grid { grid-template-columns: 1fr; }
	.tp .tp-related-grid a { min-height: 0; flex-direction: row; align-items: center; }
}
@media (max-width: 600px) {
	.tp-help { padding: 22px; }
	.tp-meta .tp-linkbtn { margin-left: 0; }
	.tp-qa summary { font-size: 15.5px; }
	.tp-qa .tp-ans { padding-right: 0; }
	.tp-content table { display: block; overflow-x: auto; }
	.tp-top { right: 16px; bottom: 16px; }
}

/* ---------- print ---------- */
@media print {
	.industify_fn_header, .industify_fn_mobilemenu_wrap, .industify_fn_footer, .industify_fn_breadcrumbs, .cookies-agreement,
	.tp-aside, .tp-mbar, .tp-top, .tp-toast, .tp-help, .tp-related, .tp-meta .tp-linkbtn, .tp-anchor, .tp-search, .tp-chips { display: none !important; }
	.tp { padding: 0; }
	.tp-grid { display: block; }
	.tp-body { max-width: none; }
	.tp-content h2 { break-after: avoid; }
	.tp-content p, .tp-content li { color: #000; font-size: 11pt; }
	.tp-qa .tp-ans { display: block !important; }
}

/* FAQ answers can be plain text (without <p>) */
.tp-qa .tp-ans { font-size: 15px; line-height: 1.75; color: var(--tp-text); }

/* Phones: the container padding is 15px, so the full-bleed bar uses -15px (was 5px wider than the screen) — T-25 */
@media (max-width: 575px) {
	.tp-mbar { margin-left: -15px; margin-right: -15px; }
	.tp-mbar-btn { padding-left: 15px; padding-right: 15px; }
	.tp-mbar-list { padding-left: 15px; padding-right: 15px; }
}
