/* =========================================================
   Vatli Help Center (/vatli/help/) — loaded only on help pages
   ========================================================= */
.kb {
  --kb-accent: #0e7a40;
  --kb-accent-strong: #0a5f31;
  --kb-tint: #ecf7f0;
  --kb-line: #e3e8e5;
  --kb-ink: #15201a;
  --kb-muted: #55625b;
  --kb-bg: #f7f9f8;
  background: #fff;
  color: var(--kb-ink);
  font-family: var(--font-body);
}
.kb .material-symbols-outlined { line-height: 1; }
.kb-wrap { max-width: 1320px; margin-inline: auto; padding-inline: 24px; }
.kb a { color: var(--kb-accent); }

/* ── Search ── */
.kb-search { position: relative; display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--kb-line); border-radius: 12px; padding: 0 14px; min-height: 48px; max-width: 640px; }
.kb-search:focus-within { border-color: var(--kb-accent); box-shadow: 0 0 0 4px rgba(14,122,64,.12); }
.kb-search > .material-symbols-outlined { color: var(--kb-muted); font-size: 22px; }
.kb-search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--kb-ink); min-width: 0; padding: 12px 0; }
.kb-search--lg { min-height: 58px; border-radius: 14px; margin-inline: auto; box-shadow: 0 10px 30px rgba(10,40,25,.08); }
.kb-search--lg input { font-size: 16px; }
.kb-search-results { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid var(--kb-line); border-radius: 12px; box-shadow: 0 18px 40px rgba(10,40,25,.14); padding: 6px; text-align: left; max-height: 420px; overflow: auto; }
.kb-search-results a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--kb-ink); }
.kb-search-results a:hover, .kb-search-results a:focus { background: var(--kb-tint); outline: 0; }
.kb-search-results a span { font-size: 12.5px; color: var(--kb-muted); }
.kb-search-results p { margin: 0; padding: 12px; color: var(--kb-muted); font-size: 14px; }

/* ── Hub ── */
.kb-hero { background: linear-gradient(180deg, #eaf6ef 0%, #fff 100%); padding: 72px 0 40px; text-align: center; border-bottom: 1px solid var(--kb-line); }
.kb-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--kb-accent); background: #fff; border: 1px solid #cfe7d8; border-radius: 999px; padding: 6px 12px; }
.kb-eyebrow .material-symbols-outlined { font-size: 18px; }
.kb-hero h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; margin: 18px 0 12px; color: var(--kb-ink); }
.kb-hero p { font-size: 17px; line-height: 1.6; color: var(--kb-muted); max-width: 640px; margin: 0 auto 28px; }
.kb-collections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 40px; padding-bottom: 32px; }
.kb-col-card { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border: 1px solid var(--kb-line); border-radius: 14px; background: #fff; text-decoration: none; color: var(--kb-ink) !important; transition: border-color .18s, box-shadow .18s, transform .18s; }
.kb-col-card:hover { border-color: #a9d6bb; box-shadow: 0 10px 26px rgba(10,40,25,.08); transform: translateY(-2px); }
.kb-col-icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--kb-tint); color: var(--kb-accent); font-size: 24px !important; }
.kb-col-icon--lg { width: 60px; height: 60px; font-size: 32px !important; border-radius: 16px; }
.kb-col-text { display: flex; flex-direction: column; gap: 4px; }
.kb-col-text strong { font-family: var(--font-heading); font-size: 16.5px; }
.kb-col-text span { font-size: 14px; line-height: 1.5; color: var(--kb-muted); }
.kb-col-text em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--kb-accent); margin-top: 4px; }
.kb-home-foot { padding-bottom: 72px; }

/* ── Collection ── */
.kb-subhero { background: var(--kb-bg); border-bottom: 1px solid var(--kb-line); padding: 28px 0 32px; }
.kb-col-head { display: flex; gap: 18px; align-items: flex-start; margin: 18px 0 22px; }
.kb-col-head h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; margin: 0 0 6px; }
.kb-col-head p { margin: 0; color: var(--kb-muted); font-size: 16px; line-height: 1.55; max-width: 720px; }
.kb-count { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--kb-accent); }
.kb-col-body { padding-top: 32px; padding-bottom: 64px; max-width: 1080px; }
.kb-col-section { margin-bottom: 28px; }
.kb-col-section h2 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--kb-muted); margin: 0 0 10px; }
.kb-col-section ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--kb-line); border-radius: 14px; overflow: hidden; }
.kb-col-section li + li { border-top: 1px solid var(--kb-line); }
.kb-col-section li a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-decoration: none; color: var(--kb-ink); }
.kb-col-section li a:hover { background: var(--kb-bg); }
.kb-col-section li a > .material-symbols-outlined:first-child { color: var(--kb-accent); font-size: 22px; }
.kb-col-section li a > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.kb-col-section li strong { font-size: 15.5px; font-weight: 600; }
.kb-col-section li small { font-size: 13.5px; color: var(--kb-muted); line-height: 1.45; }
.kb-chev { color: #9aa79f; }

/* ── Breadcrumbs ── */
.kb-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: 13.5px; }
.kb-crumbs li { color: var(--kb-muted); }
.kb-crumbs li + li::before { content: "›"; margin-right: 6px; color: #9aa79f; }
.kb-crumbs a { text-decoration: none; }
.kb-crumbs a:hover { text-decoration: underline; }

/* ── Article layout ── */
.kb-article .kb-wrap { max-width: 1480px; }
.kb-article-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr) 220px; gap: 48px; padding-top: 28px; padding-bottom: 72px; align-items: start; }
.kb-nav, .kb-toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; }
.kb-nav-box summary { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; padding-bottom: 10px; border-bottom: 1px solid var(--kb-line); }
.kb-nav-box summary::-webkit-details-marker { display: none; }
.kb-nav-box summary .material-symbols-outlined { color: var(--kb-accent); font-size: 20px; }
.kb-nav-sec { margin: 16px 0 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--kb-muted); }
.kb-nav ul { list-style: none; margin: 0; padding: 0; }
.kb-nav li a { display: block; padding: 6px 10px; border-radius: 8px; font-size: 14px; line-height: 1.4; color: var(--kb-ink); text-decoration: none; }
.kb-nav li a:hover { background: var(--kb-bg); }
.kb-nav li a[aria-current="page"] { background: var(--kb-tint); color: var(--kb-accent-strong); font-weight: 600; }
.kb-nav-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 14px; font-weight: 600; text-decoration: none; }
.kb-nav-all .material-symbols-outlined { font-size: 18px; }
.kb-toc p { margin: 0 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--kb-muted); }
.kb-toc ul { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 2px solid var(--kb-line); }
.kb-toc li a { display: block; padding: 4px 0; font-size: 13.5px; line-height: 1.4; color: var(--kb-muted); text-decoration: none; }
.kb-toc li a:hover { color: var(--kb-accent); }

.kb-head { margin: 14px 0 28px; padding-bottom: 22px; border-bottom: 1px solid var(--kb-line); }
.kb-head h1 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.15; margin: 0 0 12px; }
.kb-lede { font-size: 17.5px; line-height: 1.6; color: var(--kb-muted); margin: 0 0 12px; }
.kb-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--kb-muted); margin: 0; }
.kb-meta .material-symbols-outlined { font-size: 16px; }

/* ── Article body ── */
.kb-body { font-size: 16.5px; line-height: 1.75; color: #26322b; }
.kb-body > :first-child { margin-top: 0; }
.kb-body h2 { font-size: 24px; line-height: 1.3; margin: 44px 0 14px; scroll-margin-top: 100px; color: var(--kb-ink); }
.kb-body h3 { font-size: 18.5px; line-height: 1.35; margin: 30px 0 10px; color: var(--kb-ink); }
.kb-body p { margin: 0 0 16px; }
.kb-body ul, .kb-body ol { margin: 0 0 18px; padding-left: 24px; }
.kb-body li { margin-bottom: 6px; }
.kb-body ul { list-style: disc; }
.kb-body ul ul { list-style: circle; }
.kb-body ul > li::marker { color: var(--kb-accent); }
.kb-body strong { color: var(--kb-ink); }
.kb-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: #f1f4f2; border: 1px solid #e3e8e5; border-radius: 6px; padding: 1px 6px; }
.kb-body pre { position: relative; background: #0f1a14; color: #e6efe9; border-radius: 12px; padding: 18px 20px; overflow: auto; font-size: 13.5px; line-height: 1.6; margin: 0 0 20px; }
.kb-body pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.kb-copy { position: absolute; top: 10px; right: 10px; font: 600 12px/1 var(--font-body); color: #cfe7d8; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.kb-copy:hover { background: rgba(255,255,255,.16); }
.kb-body kbd { font-family: inherit; font-size: .85em; background: #fff; border: 1px solid #cfd8d3; border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; }
.kb-body table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 14.5px; display: table; }
.kb-body th, .kb-body td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--kb-line); }
.kb-body th { background: var(--kb-bg); font-weight: 700; color: var(--kb-ink); }
.kb-tablewrap { overflow-x: auto; margin: 0 0 22px; }
.kb-tablewrap table { margin: 0; }

/* Numbered steps */
.kb-body ol.kb-steps { list-style: none; counter-reset: kbstep; padding-left: 0; }
.kb-body ol.kb-steps > li { counter-increment: kbstep; position: relative; padding-left: 46px; margin-bottom: 20px; }
.kb-body ol.kb-steps > li::before { content: counter(kbstep); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--kb-accent); color: #fff; font: 700 14px/30px var(--font-heading); text-align: center; }
/* Steps continuing after a screenshot: <ol start="N"> resumes the badge count at N. */
.kb-body ol.kb-steps[start="2"] { counter-reset: kbstep 1; }
.kb-body ol.kb-steps[start="3"] { counter-reset: kbstep 2; }
.kb-body ol.kb-steps[start="4"] { counter-reset: kbstep 3; }
.kb-body ol.kb-steps[start="5"] { counter-reset: kbstep 4; }
.kb-body ol.kb-steps[start="6"] { counter-reset: kbstep 5; }
.kb-body ol.kb-steps[start="7"] { counter-reset: kbstep 6; }
.kb-body ol.kb-steps[start="8"] { counter-reset: kbstep 7; }
.kb-body ol.kb-steps[start="9"] { counter-reset: kbstep 8; }
.kb-body ol.kb-steps[start="10"] { counter-reset: kbstep 9; }
.kb-body ol.kb-steps[start="11"] { counter-reset: kbstep 10; }
.kb-body ol.kb-steps[start="12"] { counter-reset: kbstep 11; }
.kb-body ol.kb-steps[start="13"] { counter-reset: kbstep 12; }
.kb-body ol.kb-steps[start="14"] { counter-reset: kbstep 13; }
.kb-body ol.kb-steps[start="15"] { counter-reset: kbstep 14; }
.kb-body ol.kb-steps[start="16"] { counter-reset: kbstep 15; }
.kb-body ol.kb-steps[start="17"] { counter-reset: kbstep 16; }
.kb-body ol.kb-steps[start="18"] { counter-reset: kbstep 17; }
.kb-body ol.kb-steps[start="19"] { counter-reset: kbstep 18; }
.kb-body ol.kb-steps[start="20"] { counter-reset: kbstep 19; }
.kb-body ol.kb-steps[start="21"] { counter-reset: kbstep 20; }
.kb-body ol.kb-steps[start="22"] { counter-reset: kbstep 21; }
.kb-body ol.kb-steps[start="23"] { counter-reset: kbstep 22; }
.kb-body ol.kb-steps[start="24"] { counter-reset: kbstep 23; }
.kb-body ol.kb-steps[start="25"] { counter-reset: kbstep 24; }
.kb-body ol.kb-steps[start="26"] { counter-reset: kbstep 25; }
.kb-body ol.kb-steps[start="27"] { counter-reset: kbstep 26; }
.kb-body ol.kb-steps[start="28"] { counter-reset: kbstep 27; }
.kb-body ol.kb-steps[start="29"] { counter-reset: kbstep 28; }
.kb-body ol.kb-steps[start="30"] { counter-reset: kbstep 29; }

/* Callouts */
.kb-callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; margin: 0 0 20px; border: 1px solid; font-size: 15px; line-height: 1.6; }
.kb-callout > .material-symbols-outlined { font-size: 20px; margin-top: 2px; }
.kb-callout p:last-child { margin-bottom: 0; }
.kb-callout--tip { background: #ecf7f0; border-color: #cfe7d8; }
.kb-callout--tip > .material-symbols-outlined { color: var(--kb-accent); }
.kb-callout--note { background: #eef4ff; border-color: #d5e2fb; }
.kb-callout--note > .material-symbols-outlined { color: #2d5bd7; }
.kb-callout--warn { background: #fff7e8; border-color: #f6dfb0; }
.kb-callout--warn > .material-symbols-outlined { color: #b45309; }

/* Screenshots */
.kb-shot { margin: 8px 0 24px; }
.kb-shot img { display: block; width: auto; max-width: 100%; height: auto; margin-inline: auto; border: 1px solid var(--kb-line); border-radius: 12px; box-shadow: 0 8px 24px rgba(10,40,25,.08); }
.kb-shot figcaption { margin-top: 8px; font-size: 13px; color: var(--kb-muted); text-align: center; }
.kb-shot:not(:has(img)) { display: none; }

/* "Who can do this" strip */
.kb-req { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 16px; background: var(--kb-bg); border: 1px solid var(--kb-line); border-radius: 12px; margin: 0 0 24px; font-size: 14px; }
/* Each item: icon pinned left, label + value flow as one line of text so they wrap together. */
.kb-req > span { position: relative; display: block; padding-left: 26px; line-height: 1.5; }
.kb-req > span > .material-symbols-outlined { position: absolute; left: 0; top: 1px; font-size: 18px; color: var(--kb-accent); }

/* Pager + support */
.kb-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 44px 0 24px; }
.kb-pager a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--kb-line); border-radius: 12px; text-decoration: none; color: var(--kb-ink); font-weight: 600; font-size: 15px; }
.kb-pager a:hover { border-color: #a9d6bb; }
.kb-pager small { font-size: 12px; font-weight: 600; color: var(--kb-muted); text-transform: uppercase; letter-spacing: .06em; }
.kb-next { grid-column: 2; text-align: right; }
.kb-support { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 14px; background: var(--kb-tint); border: 1px solid #cfe7d8; }
.kb-support > .material-symbols-outlined { font-size: 30px; color: var(--kb-accent); }
.kb-support div { flex: 1; }
.kb-support strong { font-family: var(--font-heading); font-size: 16px; }
.kb-support p { margin: 2px 0 0; font-size: 14px; color: var(--kb-muted); }
.kb-support-btn { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 12px; background: var(--kb-accent); color: #fff !important; font: 700 14px var(--font-heading); text-decoration: none; }
.kb-support-btn:hover { background: var(--kb-accent-strong); }

/* ── Responsive ── */
@media (max-width: 1200px) {
  .kb-article-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
  .kb-toc { display: none; }
}
@media (max-width: 900px) {
  .kb-collections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* minmax(0,…) so a wide table scrolls inside its box instead of stretching the page */
  .kb-article-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .kb-nav { position: static; max-height: none; order: 2; }
  .kb-nav-box:not([open]) summary { border-bottom: 0; }
}
@media (max-width: 640px) {
  .kb-wrap { padding-inline: 16px; }
  .kb-hero { padding: 48px 0 28px; }
  .kb-collections { grid-template-columns: 1fr; padding-top: 24px; }
  .kb-col-head { flex-direction: column; gap: 12px; }
  .kb-support { flex-wrap: wrap; }
  .kb-pager { grid-template-columns: 1fr; }
  .kb-next { grid-column: 1; }
  .kb-body h2 { font-size: 21px; }
  .kb-req { flex-direction: column; gap: 8px; }
}
