:root {
  --th-primary: #173f63;
  --th-primary-strong: #0f3454;
  --th-accent: #1ba7e1;
  --th-text: #1d2f3d;
  --th-muted: #657887;
  --th-line: #dce6ed;
  --th-bg: #ffffff;
  --th-soft: #f6f9fb;
  --th-soft-blue: #eef7fc;
  --th-success: #18794e;
  --th-danger: #b42318;
  --th-radius: 14px;
  --th-shadow: 0 12px 30px rgba(26, 57, 80, .08);
  --th-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

html { scroll-behavior: smooth; }
html, body.kstth-react-body { margin: 0 !important; padding: 0 !important; }
body.kstth-react-body {
  background: var(--th-bg) !important;
  color: var(--th-text) !important;
  font-family: var(--th-font) !important;
  font-size: 15px !important;
  line-height: 1.62 !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.kstth-react-body #wpadminbar { display: none !important; }
html.wp-toolbar { padding-top: 0 !important; }
body.kstth-react-body *, body.kstth-react-body *::before, body.kstth-react-body *::after { box-sizing: border-box; }
body.kstth-react-body button,
body.kstth-react-body input,
body.kstth-react-body select,
body.kstth-react-body textarea {
  font-family: var(--th-font) !important;
  font-size: 14px;
}
body.kstth-react-body a { color: inherit; }
body.kstth-react-body img { max-width: 100%; height: auto; }
body.kstth-react-body h1,
body.kstth-react-body h2,
body.kstth-react-body h3,
body.kstth-react-body p { font-family: var(--th-font) !important; }

.kstth-react-skip {
  position: fixed;
  top: -50px;
  left: 12px;
  z-index: 99999;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--th-line);
  border-radius: 8px;
  color: var(--th-primary);
  text-decoration: none;
}
.kstth-react-skip:focus { top: 12px; }
.kstth-react-fallback { max-width: 1080px; margin: 0 auto; padding: 28px 20px; }
.kstth-react-fallback h1 { font-size: 30px; }

.th-app { min-height: 100vh; display: flex; flex-direction: column; background: #fff; }
#kstth-react-main { flex: 1; }
.th-container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.th-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--th-line);
  backdrop-filter: blur(10px);
}
.th-header-inner {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.th-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--th-primary); text-decoration: none; font-weight: 700; white-space: nowrap; }
.th-brand img { width: 160px; display: block; }
.th-brand span { border-left: 1px solid var(--th-line); padding-left: 10px; font-size: 14px; letter-spacing: .02em; }
.th-nav { display: flex; justify-content: center; gap: 4px; }
.th-nav a { padding: 8px 11px; border-radius: 8px; color: #40586b; text-decoration: none; font-size: 14px; font-weight: 600; }
.th-nav a:hover, .th-nav a:focus { background: var(--th-soft); color: var(--th-primary); }
.th-header-actions { display: flex; align-items: center; gap: 8px; }
.th-mobile-menu { display: none !important; }

.th-button,
body.kstth-react-body .th-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  border: 1px solid var(--th-primary);
  border-radius: 10px;
  background: var(--th-primary);
  color: #fff;
  text-decoration: none;
  font-size: 14px !important;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.th-button:hover { background: var(--th-primary-strong); border-color: var(--th-primary-strong); }
.th-button:active { transform: translateY(1px); }
.th-button:disabled { opacity: .6; cursor: wait; }
.th-button-secondary,
body.kstth-react-body .th-button-secondary { background: #fff; color: var(--th-primary); border-color: var(--th-line); }
.th-button-secondary:hover { background: var(--th-soft); border-color: #cbd9e2; }
.th-button-compact { min-height: 38px; padding: 0 13px; }
.th-icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--th-line);
  border-radius: 10px;
  background: #fff;
  color: var(--th-primary);
  cursor: pointer;
  text-decoration: none;
}
.th-icon-button:hover { background: var(--th-soft); }
.th-link-button { border: 0; background: transparent; color: var(--th-primary); font-weight: 600; cursor: pointer; padding: 8px 0; }

.th-home-hero { padding: 58px 0 44px; border-bottom: 1px solid #edf2f5; background: #fbfdfe; }
.th-home-hero-inner { max-width: 820px; text-align: center; }
.th-eyebrow, .th-section-kicker { color: var(--th-accent); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.th-home-hero h1,
.th-page-head h1,
.th-search-head h1,
.th-article-head h1,
.th-ask-page h1 {
  margin: 8px 0 10px;
  color: var(--th-primary);
  font-size: clamp(28px, 3.2vw, 36px) !important;
  line-height: 1.18 !important;
  letter-spacing: -.02em;
  font-weight: 650 !important;
}
.th-home-hero p { max-width: 720px; margin: 0 auto 24px; color: var(--th-muted); font-size: 16px; }

.th-searchbox-wrap { position: relative; width: 100%; }
.th-searchbox { width: 100%; min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 6px 7px 6px 15px; background: #fff; border: 1px solid #cfdde6; border-radius: 13px; box-shadow: 0 8px 20px rgba(28,64,89,.06); }
.th-searchbox:focus-within { border-color: #74c7ea; box-shadow: 0 0 0 3px rgba(27,167,225,.10); }
.th-searchbox svg { color: #6b8292; flex: 0 0 auto; }
.th-searchbox input { flex: 1; min-width: 0; height: 38px; border: 0 !important; outline: 0 !important; background: transparent !important; color: var(--th-text) !important; padding: 0 !important; box-shadow: none !important; font-size: 15px !important; font-weight: 400 !important; }
.th-searchbox input::placeholder { color: #8a9aa5; font-weight: 400; opacity: 1; }
.th-searchbox button { min-height: 40px; border: 0; border-radius: 9px; padding: 0 16px; background: var(--th-primary); color: #fff; font-size: 14px; font-weight: 650; cursor: pointer; }
.th-searchbox-wrap.is-large .th-searchbox { min-height: 58px; }
.th-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 7px); z-index: 60; padding: 8px; background: #fff; border: 1px solid var(--th-line); border-radius: 12px; box-shadow: var(--th-shadow); text-align: left; }
.th-suggest-label { padding: 8px 10px 4px; color: #8a9aa5; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.th-suggest a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 8px; color: var(--th-text); text-decoration: none; font-size: 14px; }
.th-suggest a:hover { background: var(--th-soft); }
.th-suggest a span { color: var(--th-muted); font-size: 12px; }
.th-suggest .th-suggest-all { color: var(--th-primary); font-weight: 650; border-top: 1px solid #edf2f5; margin-top: 4px; }
.th-popular-searches { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 15px; }
.th-popular-searches span { color: var(--th-muted); font-size: 12px; }
.th-popular-searches a, .th-chip-row button { border: 0; background: transparent; color: var(--th-primary); text-decoration: none; padding: 4px 6px; font-size: 13px; cursor: pointer; }
.th-popular-searches a:hover, .th-chip-row button:hover { text-decoration: underline; }

.th-section { padding: 58px 0; }
.th-section-tight { padding: 46px 0; }
.th-section-soft { background: var(--th-soft); }
.th-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.th-section-head h2,
.th-answers h2,
.th-references h2 {
  margin: 4px 0 0;
  color: var(--th-primary);
  font-size: 23px !important;
  line-height: 1.28 !important;
  letter-spacing: -.01em;
  font-weight: 650 !important;
}
.th-section-head > a { display: inline-flex; align-items: center; gap: 5px; color: var(--th-primary); text-decoration: none; font-size: 13px; font-weight: 650; }
.th-section-head-inline { margin-bottom: 16px; }

.th-topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.th-topic-grid-large { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.th-topic-card { min-height: 110px; display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 18px; border: 1px solid var(--th-line); border-radius: 12px; background: #fff; color: var(--th-text); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.th-topic-card:hover { border-color: #bcd5e4; transform: translateY(-1px); }
.th-topic-card h3 { margin: 0 0 5px; color: var(--th-primary); font-size: 17px !important; line-height: 1.3; font-weight: 650; }
.th-topic-card p { margin: 0; color: var(--th-muted); font-size: 13px; line-height: 1.5; }
.th-topic-card svg { margin-top: 2px; color: var(--th-accent); flex: 0 0 auto; }

.th-knowledge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.th-knowledge-card { padding: 20px 0; border-bottom: 1px solid var(--th-line); }
.th-knowledge-grid .th-knowledge-card { padding: 20px; border: 1px solid var(--th-line); border-radius: 12px; background: #fff; }
.th-knowledge-card.is-compact { padding: 16px 0; }
.th-card-meta-top { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 7px; }
.th-card-meta-top span { color: #69808f; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.th-card-meta-top span + span::before { content: "·"; margin-right: 7px; color: #a4b0b8; }
.th-knowledge-card h3 { margin: 0 0 8px; font-size: 17px !important; line-height: 1.4; font-weight: 650 !important; }
.th-knowledge-card h3 a { color: var(--th-primary); text-decoration: none; }
.th-knowledge-card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.th-knowledge-card p { margin: 0; color: var(--th-muted); font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.th-card-foot { margin-top: 12px; color: #8a9aa5; font-size: 12px; }

.th-home-latest-layout { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(280px,.65fr); gap: 42px; align-items: start; }
.th-latest-list .th-knowledge-card:first-child { padding-top: 0; }
.th-question-panel { position: sticky; top: 90px; padding: 22px; border: 1px solid var(--th-line); border-radius: 14px; background: #fff; }
.th-question-panel > svg { color: var(--th-accent); }
.th-question-panel h2 { margin: 10px 0 6px; color: var(--th-primary); font-size: 20px !important; font-weight: 650; }
.th-question-panel p { margin: 0 0 14px; color: var(--th-muted); font-size: 14px; }
.th-question-panel form { display: grid; gap: 9px; }
.th-question-panel textarea { width: 100%; min-height: 82px; resize: vertical; border: 1px solid #cfdee7; border-radius: 10px; padding: 10px 11px; color: var(--th-text); background: #fff; font-weight: 400; }
.th-question-panel textarea::placeholder { color: #8b99a4; font-weight: 400; }

.th-page-head, .th-search-head, .th-article-head { padding: 42px 0 34px; background: #fbfdfe; border-bottom: 1px solid #edf2f5; }
.th-page-head p, .th-search-head p { max-width: 720px; margin: 7px 0 0; color: var(--th-muted); font-size: 15px; }
.th-page-head-actions { display: flex; justify-content: space-between; align-items: end; gap: 24px; }

.th-search-head { padding-bottom: 30px; }
.th-search-workbar { display: flex; align-items: center; gap: 9px; max-width: 900px; margin-top: 18px; }
.th-search-workbar > svg { color: #718694; }
.th-search-input-wrap { position: relative; flex: 1; }
.th-search-input-wrap input { width: 100%; height: 44px; border: 1px solid #cfdee7; border-radius: 10px; background: #fff; padding: 0 12px; color: var(--th-text); outline: none; box-shadow: none; font-weight: 400; }
.th-search-input-wrap input:focus { border-color: #77c9ea; box-shadow: 0 0 0 3px rgba(27,167,225,.08); }
.th-search-inline-suggest { position: absolute; top: calc(100% + 5px); left: 0; right: 0; z-index: 30; padding: 6px; border: 1px solid var(--th-line); border-radius: 10px; background: #fff; box-shadow: var(--th-shadow); }
.th-search-inline-suggest a { display: block; padding: 8px 10px; color: var(--th-text); text-decoration: none; border-radius: 7px; }
.th-search-inline-suggest a:hover { background: var(--th-soft); }
.th-filter-toggle { display: none !important; }
.th-search-section { padding-top: 34px; }
.th-search-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 34px; align-items: start; }
.th-filter-panel { position: sticky; top: 88px; display: grid; gap: 15px; }
.th-filter-head { display: flex; justify-content: space-between; align-items: center; }
.th-filter-head h2 { margin: 0; font-size: 18px !important; color: var(--th-primary); font-weight: 650; }
.th-filter-head .th-icon-button { display: none; }
.th-filter-field { display: grid; gap: 6px; }
.th-filter-field > span { font-size: 12px; color: #506778; font-weight: 650; }
.th-filter-field select { width: 100%; height: 40px; border: 1px solid #cfdee7; border-radius: 9px; background: #fff; color: var(--th-text); padding: 0 9px; font-weight: 400; }
.th-filter-actions { display: grid; gap: 5px; }
.th-results-toolbar { min-height: 40px; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--th-line); color: var(--th-muted); font-size: 13px; }
.th-results-toolbar strong { color: var(--th-primary); }
.th-search-result-list .th-knowledge-card { padding-left: 0; padding-right: 0; }
.th-search-start { padding: 28px 0 14px; }
.th-search-start h2, .th-empty-state h2 { margin: 0 0 7px; color: var(--th-primary); font-size: 20px !important; font-weight: 650; }
.th-search-start p, .th-empty-state p { margin: 0; color: var(--th-muted); }
.th-chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.th-empty-state { padding: 34px 0; text-align: center; }
.th-empty-actions { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }

.th-pagination { display: flex; gap: 6px; align-items: center; margin-top: 26px; }
.th-pagination a { min-width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0 9px; border: 1px solid var(--th-line); border-radius: 8px; color: var(--th-primary); text-decoration: none; font-size: 13px; }
.th-pagination a.is-current { background: var(--th-primary); color: #fff; border-color: var(--th-primary); }

.th-official-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.th-official-links a { display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px; border: 1px solid var(--th-line); border-radius: 8px; background: #fff; color: var(--th-primary); text-decoration: none; font-size: 13px; }

.th-article-head-inner { max-width: 920px; }
.th-breadcrumb { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 13px; color: #718694; font-size: 12px; }
.th-breadcrumb span { display: inline-flex; gap: 6px; align-items: center; }
.th-breadcrumb a { color: inherit; text-decoration: none; }
.th-breadcrumb i { font-style: normal; color: #b1bcc4; }
.th-article-type-row { display: flex; gap: 8px; color: var(--th-accent); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.th-article-type-row span + span::before { content: "·"; margin-right: 8px; color: #a9b9c2; }
.th-article-lead { max-width: 780px; margin: 0; color: #566d7c; font-size: 16px; line-height: 1.65; }
.th-article-meta { display: flex; gap: 10px 18px; flex-wrap: wrap; margin-top: 15px; color: #7a8d99; font-size: 12px; }
.th-article-section { padding-top: 38px; }
.th-article-layout { display: grid; grid-template-columns: 190px minmax(0, 760px); gap: 44px; justify-content: center; align-items: start; }
.th-article-side { min-width: 0; }
.th-toc { position: sticky; top: 88px; }
.th-toc-toggle { width: 100%; padding: 0 0 8px; border: 0; background: transparent; color: var(--th-primary); font-size: 13px; font-weight: 650; text-align: left; cursor: default; }
.th-toc nav { display: grid; gap: 6px; border-left: 1px solid var(--th-line); padding-left: 12px; }
.th-toc a { color: #687e8d; text-decoration: none; font-size: 12.5px; line-height: 1.45; }
.th-toc a.is-sub { padding-left: 10px; }
.th-toc a:hover { color: var(--th-primary); }
.th-quick-summary { margin-bottom: 22px; padding: 15px 17px; border-left: 3px solid var(--th-accent); background: var(--th-soft-blue); border-radius: 0 10px 10px 0; }
.th-quick-summary strong { display: block; color: var(--th-primary); margin-bottom: 4px; }
.th-quick-summary p { margin: 0; color: #496273; }
.th-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; margin-bottom: 24px; background: var(--th-line); border: 1px solid var(--th-line); border-radius: 10px; overflow: hidden; }
.th-facts > div { background: #fff; padding: 11px 13px; }
.th-facts span { display: block; color: #82929d; font-size: 10px; text-transform: uppercase; font-weight: 700; letter-spacing: .05em; }
.th-facts strong { display: block; margin-top: 2px; color: #425969; font-size: 13px; font-weight: 600; }
.th-prose { color: #2d4454; font-size: 15.5px; line-height: 1.78; }
.th-prose h2 { margin: 34px 0 10px; color: var(--th-primary); font-size: 22px !important; line-height: 1.35; font-weight: 650 !important; scroll-margin-top: 88px; }
.th-prose h3 { margin: 26px 0 8px; color: var(--th-primary); font-size: 18px !important; line-height: 1.4; font-weight: 650 !important; scroll-margin-top: 88px; }
.th-prose p { margin: 0 0 15px; }
.th-prose ul, .th-prose ol { margin: 0 0 16px; padding-left: 22px; }
.th-prose li { margin-bottom: 5px; }
.th-prose a { color: #0879aa; text-underline-offset: 2px; }
.th-prose img { border-radius: 10px; margin: 12px 0; }
.th-prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.th-prose th, .th-prose td { padding: 9px 10px; border: 1px solid var(--th-line); text-align: left; }
.th-references { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--th-line); }
.th-references ul { list-style: none; padding: 0; margin: 10px 0 0; }
.th-references li { padding: 10px 0; border-bottom: 1px solid #edf2f5; }
.th-references a { display: inline-flex; align-items: center; gap: 5px; color: var(--th-primary); font-weight: 600; text-decoration: none; }
.th-references li span { display: block; color: var(--th-muted); font-size: 12px; margin-top: 2px; }
.th-inline-question { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; margin-top: 32px; padding: 18px; border: 1px solid var(--th-line); border-radius: 12px; background: var(--th-soft); }
.th-inline-question > svg { color: var(--th-accent); }
.th-inline-question strong { color: var(--th-primary); }
.th-inline-question p { margin: 2px 0 0; color: var(--th-muted); font-size: 13px; }

.th-question-list { display: grid; gap: 0; }
.th-question-item { padding: 18px 0; border-bottom: 1px solid var(--th-line); }
.th-question-item h2 { margin: 0 0 5px; font-size: 18px !important; font-weight: 650; }
.th-question-item h2 a { color: var(--th-primary); text-decoration: none; }
.th-question-item p { margin: 0 0 6px; color: var(--th-muted); }
.th-question-item span { color: #8b99a3; font-size: 12px; }
.th-reading-narrow { max-width: 800px; }
.th-answers { margin-top: 38px; }
.th-answer { padding: 18px 0; border-bottom: 1px solid var(--th-line); }
.th-answer.is-accepted { padding: 18px; border: 1px solid #bfe0ce; border-radius: 10px; background: #f5fbf7; }
.th-answer-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; font-size: 12px; color: var(--th-muted); }
.th-answer-meta b { color: var(--th-success); }

.th-newsletter-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.th-newsletter-form { display: flex; gap: 8px; }
.th-newsletter-form input { flex: 1; height: 42px; border: 1px solid #cfdee7; border-radius: 9px; padding: 0 11px; font-weight: 400; }
.th-ask-page { min-height: 52vh; display: grid; place-items: center; }
.th-ask-page-card { max-width: 600px; text-align: center; }
.th-ask-page-card > svg { color: var(--th-accent); }
.th-ask-page-card p { margin: 0 auto 18px; color: var(--th-muted); max-width: 520px; }

.th-footer { margin-top: auto; border-top: 1px solid var(--th-line); background: #fafcfd; }
.th-footer-inner { min-height: 130px; display: flex; justify-content: space-between; gap: 32px; align-items: center; }
.th-footer-brand img { width: 150px; }
.th-footer-inner p { margin: 6px 0 0; color: var(--th-muted); font-size: 13px; }
.th-footer-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.th-footer-links a { color: #506879; text-decoration: none; font-size: 13px; }

.th-dialog-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(15,32,45,.52); animation: thFade .14s ease-out; }
.th-dialog { position: fixed; z-index: 1001; top: 50%; left: 50%; width: min(680px, calc(100vw - 28px)); max-height: min(88vh, 760px); overflow: auto; transform: translate(-50%, -50%); padding: 24px; border-radius: 16px; background: #fff; box-shadow: 0 24px 60px rgba(15,32,45,.20); animation: thDialog .16s ease-out; outline: none; }
.th-dialog-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; padding-bottom: 16px; border-bottom: 1px solid var(--th-line); }
.th-dialog-head h2, .th-dialog-head [data-radix-dialog-title] { margin: 0; color: var(--th-primary); font-size: 23px !important; line-height: 1.3; font-weight: 650 !important; }
.th-dialog-head p, .th-dialog-head [data-radix-dialog-description] { margin: 4px 0 0; color: var(--th-muted); font-size: 14px; }
.th-lead-form { display: grid; gap: 14px; padding-top: 18px; }
.th-field { display: grid; gap: 6px; }
.th-field > span { display: flex; justify-content: space-between; gap: 12px; color: #344d5e; font-size: 13px; font-weight: 650; }
.th-field small { color: #91a0aa; font-size: 11px; font-weight: 400; }
.th-field input, .th-field textarea, .th-field select { width: 100%; border: 1px solid #cfdee7; border-radius: 10px; background: #fff; color: var(--th-text); padding: 10px 11px; outline: 0; font-size: 14px !important; font-weight: 400 !important; box-shadow: none; }
.th-field input { height: 42px; }
.th-field textarea { resize: vertical; min-height: 76px; }
.th-field input::placeholder, .th-field textarea::placeholder { color: #8d9aa4; font-weight: 400; opacity: 1; }
.th-field input:focus, .th-field textarea:focus { border-color: #78c9ea; box-shadow: 0 0 0 3px rgba(27,167,225,.08); }
.th-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.th-form-error { color: var(--th-danger); font-size: 11.5px; font-style: normal; }
.th-form-error-block { padding: 9px 10px; border-radius: 8px; background: #fff3f2; }
.th-form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.th-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; }
.th-success-state { padding: 36px 18px 20px; text-align: center; }
.th-success-state svg { color: var(--th-success); }
.th-success-state h3 { margin: 10px 0 5px; color: var(--th-primary); font-size: 21px !important; font-weight: 650; }
.th-success-state p { max-width: 500px; margin: 0 auto 18px; color: var(--th-muted); }

@keyframes thFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes thDialog { from { opacity: 0; transform: translate(-50%, -48%); } to { opacity: 1; transform: translate(-50%, -50%); } }

@media (max-width: 900px) {
  .th-header-inner { grid-template-columns: auto 1fr; gap: 12px; }
  .th-header-actions { justify-self: end; }
  .th-mobile-menu { display: inline-grid !important; }
  .th-nav { display: none; position: absolute; top: 69px; left: 16px; right: 16px; padding: 8px; border: 1px solid var(--th-line); border-radius: 12px; background: #fff; box-shadow: var(--th-shadow); flex-direction: column; align-items: stretch; }
  .th-nav.is-open { display: flex; }
  .th-nav a { padding: 10px 12px; }
  .th-home-latest-layout { grid-template-columns: 1fr; gap: 30px; }
  .th-question-panel { position: static; }
  .th-topic-grid, .th-topic-grid-large { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .th-article-layout { grid-template-columns: 1fr; gap: 18px; }
  .th-toc { position: static; }
  .th-toc-toggle { cursor: pointer; border: 1px solid var(--th-line); border-radius: 9px; padding: 9px 11px; background: #fff; }
  .th-toc nav { display: none; margin-top: 8px; }
  .th-toc.is-open nav { display: grid; }
  .th-search-layout { grid-template-columns: 1fr; }
  .th-filter-toggle { display: inline-flex !important; }
  .th-filter-panel { position: fixed; z-index: 300; inset: 0 0 0 auto; width: min(340px, 92vw); padding: 20px; background: #fff; border-left: 1px solid var(--th-line); box-shadow: -18px 0 40px rgba(20,48,66,.12); transform: translateX(102%); transition: transform .18s ease; overflow-y: auto; }
  .th-filter-panel.is-open { transform: translateX(0); }
  .th-filter-head .th-icon-button { display: inline-grid; }
  .th-search-workbar { flex-wrap: wrap; }
  .th-search-workbar > svg { display: none; }
  .th-search-input-wrap { flex-basis: calc(100% - 100px); }
}

@media (max-width: 640px) {
  .th-container { width: min(100% - 28px, 1120px); }
  .th-header-inner { min-height: 62px; }
  .th-brand img { width: 126px; }
  .th-brand span { display: none; }
  body.kstth-react-body .th-header-actions .th-header-ask {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0 !important;
    border-radius: 11px;
    font-size: 14px !important;
    gap: 0;
  }
  body.kstth-react-body .th-header-actions .th-header-ask > span { display: none !important; }
  body.kstth-react-body .th-header-actions .th-header-ask svg { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; }
  .th-nav { top: 63px; }
  .th-home-hero { padding: 42px 0 34px; }
  .th-home-hero h1, .th-page-head h1, .th-search-head h1, .th-article-head h1, .th-ask-page h1 { font-size: 28px !important; }
  .th-home-hero p { font-size: 15px; }
  .th-searchbox { min-height: 52px; padding-left: 11px; }
  .th-searchbox button { padding: 0 12px; }
  .th-section { padding: 44px 0; }
  .th-section-tight { padding: 36px 0; }
  .th-section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .th-section-head h2, .th-answers h2, .th-references h2 { font-size: 21px !important; }
  .th-topic-grid, .th-topic-grid-large, .th-knowledge-grid, .th-newsletter-wrap { grid-template-columns: 1fr; }
  .th-knowledge-grid .th-knowledge-card { padding: 17px; }
  .th-page-head, .th-search-head, .th-article-head { padding: 34px 0 28px; }
  .th-page-head-actions { align-items: flex-start; flex-direction: column; }
  .th-search-workbar { display: grid; grid-template-columns: 1fr 1fr; }
  .th-search-input-wrap { grid-column: 1 / -1; width: 100%; }
  .th-search-workbar .th-button { width: 100%; }
  .th-facts { grid-template-columns: 1fr; }
  .th-inline-question { grid-template-columns: 1fr; align-items: start; }
  .th-inline-question > svg { display: none; }
  .th-footer-inner { min-height: 150px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 16px; }
  .th-footer-links { justify-content: flex-start; }
  .th-newsletter-form { flex-direction: column; }
  .th-dialog { top: auto; bottom: 0; left: 0; right: 0; width: 100%; max-height: 92vh; transform: none; border-radius: 16px 16px 0 0; padding: 20px 16px; animation: thSheet .16s ease-out; }
  .th-dialog-head h2, .th-dialog-head [data-radix-dialog-title] { font-size: 21px !important; }
  .th-form-grid { grid-template-columns: 1fr; }
  .th-form-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .th-form-actions .th-button { width: 100%; }
}

@keyframes thSheet { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Native React lead dialog: independent from the active WordPress theme. */
body.kstth-react-body .th-native-dialog {
  width: min(680px, calc(100vw - 28px));
  max-width: none;
  max-height: min(88vh, 760px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--th-text);
  box-shadow: 0 24px 60px rgba(15,32,45,.20);
  overflow: hidden;
}
body.kstth-react-body .th-native-dialog::backdrop {
  background: rgba(15,32,45,.52);
  backdrop-filter: blur(1px);
}
body.kstth-react-body .th-dialog-inner {
  max-height: min(88vh, 760px);
  overflow-y: auto;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
}
@media (max-width: 640px) {
  body.kstth-react-body .th-native-dialog {
    width: 100%;
    max-height: 92vh;
    margin: auto 0 0 0;
    border-radius: 16px 16px 0 0;
  }
  body.kstth-react-body .th-dialog-inner {
    max-height: 92vh;
    padding: 20px 16px;
    border-radius: 16px 16px 0 0;
  }
}

/* v2.0.3 — UI density, color rhythm and icon system. Visual-only overrides. */
:root {
  --th-section-space: 42px;
  --th-section-space-tight: 34px;
  --th-card-radius: 13px;
  --th-card-shadow: 0 7px 20px rgba(23,63,99,.055);
  --th-card-shadow-hover: 0 12px 28px rgba(23,63,99,.09);
}

/* More efficient vertical rhythm across every public screen. */
.th-home-hero { padding: 46px 0 36px; }
.th-section { padding: var(--th-section-space) 0; }
.th-section-tight { padding: var(--th-section-space-tight) 0; }
.th-page-head, .th-search-head, .th-article-head { padding: 32px 0 27px; }
.th-search-head { padding-bottom: 26px; }
.th-search-section { padding-top: 28px; }
.th-article-section { padding-top: 30px; }
.th-footer-inner { min-height: 108px; }
.th-answers { margin-top: 30px; }
.th-references { margin-top: 30px; padding-top: 18px; }
.th-pagination { margin-top: 20px; }

/* Consistent title treatment: icon + concise hierarchy rather than oversized empty blocks. */
.th-section-head { align-items: center; margin-bottom: 17px; gap: 16px; }
.th-section-title-wrap { display: flex; align-items: center; gap: 11px; min-width: 0; }
.th-section-title-wrap > div { min-width: 0; }
.th-section-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  color: #0a78aa;
  background: #eaf7fd;
  border: 1px solid #cdeaf6;
}
.th-section-icon svg { width: 18px; height: 18px; }
.th-section-head h2, .th-answers h2, .th-references h2 { margin-top: 2px; }
.th-section-head > a {
  min-height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.th-section-head > a:hover { background: #eef7fb; color: #0879aa; }
.th-section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
}

/* Palette variants are deterministic classes from React; no data or behavior changes. */
.th-tone-0 { --th-card-accent:#1b9dd1; --th-card-tint:#f2faff; --th-card-icon:#e4f6fd; --th-card-border:#cfe8f3; }
.th-tone-1 { --th-card-accent:#5876c7; --th-card-tint:#f5f7ff; --th-card-icon:#eaeeff; --th-card-border:#d9dff5; }
.th-tone-2 { --th-card-accent:#16856a; --th-card-tint:#f3fbf8; --th-card-icon:#e5f7f1; --th-card-border:#d0ebe2; }
.th-tone-3 { --th-card-accent:#a46a18; --th-card-tint:#fff9ef; --th-card-icon:#fff1d8; --th-card-border:#f0dfbf; }
.th-tone-4 { --th-card-accent:#7d5ab5; --th-card-tint:#faf7ff; --th-card-icon:#f1eaff; --th-card-border:#e2d8f2; }
.th-tone-5 { --th-card-accent:#c05d66; --th-card-tint:#fff6f7; --th-card-icon:#fdebed; --th-card-border:#f1d7da; }

/* Topic / product / solution cards: denser, varied and easier to scan. */
.th-topic-grid, .th-topic-grid-large { gap: 10px; }
.th-topic-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) 26px;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-color: var(--th-card-border, var(--th-line));
  border-radius: var(--th-card-radius);
  background: linear-gradient(135deg, var(--th-card-tint, #fff), #fff 72%);
  box-shadow: var(--th-card-shadow);
  overflow: hidden;
  position: relative;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.th-topic-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  bottom: 13px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--th-card-accent, var(--th-accent));
  opacity: .78;
}
.th-topic-card:hover {
  border-color: var(--th-card-accent, #9dcfe3);
  transform: translateY(-2px);
  box-shadow: var(--th-card-shadow-hover);
}
.th-topic-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: var(--th-card-accent, var(--th-accent));
  background: var(--th-card-icon, #e9f7fd);
  border: 1px solid var(--th-card-border, #cfe8f3);
}
.th-topic-content { min-width: 0; }
.th-topic-card h3 { margin: 0 0 3px; font-size: 16px !important; line-height: 1.28; }
.th-topic-card p { font-size: 12.5px; line-height: 1.4; }
.th-topic-arrow {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: var(--th-card-accent, var(--th-accent));
  background: rgba(255,255,255,.72);
  transition: transform .16s ease, background .16s ease;
}
.th-topic-card:hover .th-topic-arrow { transform: translateX(2px); background: #fff; }
.th-topic-card > svg { display: none; }

/* Knowledge cards: subtle tint, compact metadata icon and richer hover without visual noise. */
.th-knowledge-grid { gap: 11px; }
.th-knowledge-grid .th-knowledge-card {
  padding: 17px 18px;
  border-color: var(--th-card-border, var(--th-line));
  border-radius: var(--th-card-radius);
  background: linear-gradient(145deg, var(--th-card-tint, #fff), #fff 68%);
  box-shadow: var(--th-card-shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.th-knowledge-grid .th-knowledge-card:hover {
  transform: translateY(-2px);
  border-color: var(--th-card-accent, #a7d4e6);
  box-shadow: var(--th-card-shadow-hover);
}
.th-card-topline { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.th-card-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  color: var(--th-card-accent, var(--th-accent));
  background: var(--th-card-icon, #e9f7fd);
}
.th-card-meta-top { margin: 0; gap: 6px; min-width: 0; }
.th-card-meta-top span { color: #607888; font-size: 10.5px; }
.th-knowledge-card h3 { margin-bottom: 6px; font-size: 16.5px !important; line-height: 1.36; }
.th-knowledge-card p { font-size: 13.5px; line-height: 1.5; }
.th-card-foot { display: flex; align-items: center; gap: 5px; margin-top: 10px; }
.th-card-foot-icon { display: inline-flex; color: #91a2ad; }
.th-card-foot-icon svg { width: 13px; height: 13px; }

/* Compact lists remain list-like but gain clear iconography and less wasted space. */
.th-knowledge-card.is-compact { padding: 13px 0; }
.th-knowledge-card.is-compact .th-card-topline { margin-bottom: 5px; }
.th-knowledge-card.is-compact .th-card-icon { width: 28px; height: 28px; flex-basis: 28px; }
.th-latest-list .th-knowledge-card:first-child { padding-top: 0; }
.th-search-result-list .th-knowledge-card { padding: 15px 0; }

/* Ask / support blocks: richer emphasis without consuming more space. */
.th-question-panel {
  padding: 19px;
  border-color: #cfe6f1;
  background: linear-gradient(150deg, #f2faff, #fff 70%);
  box-shadow: var(--th-card-shadow);
}
.th-question-panel > svg {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 10px;
  color: #0879aa;
  background: #e4f5fc;
}
.th-question-panel h2 { margin: 9px 0 4px; font-size: 18.5px !important; }
.th-question-panel p { margin-bottom: 11px; font-size: 13.5px; }
.th-question-panel textarea { min-height: 72px; }
.th-inline-question {
  margin-top: 26px;
  padding: 15px 16px;
  border-color: #cfe6f1;
  background: linear-gradient(135deg, #eff8fc, #f9fcfe);
  box-shadow: var(--th-card-shadow);
}
.th-inline-question > svg {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 10px;
  background: #dff3fb;
}

/* Search workspace: compact filters/results and professional containers. */
.th-search-layout { gap: 24px; }
.th-filter-panel {
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--th-line);
  border-radius: 12px;
  background: #fbfdfe;
}
.th-filter-head h2 { display: flex; align-items: center; gap: 7px; font-size: 16.5px !important; }
.th-filter-field { gap: 5px; }
.th-filter-field select { height: 38px; }
.th-results-toolbar { min-height: 36px; padding-bottom: 9px; }
.th-search-start {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid #dceaf1;
  border-radius: 12px;
  background: #f8fbfd;
}
.th-empty-state {
  margin-top: 14px;
  padding: 24px 18px;
  border: 1px dashed #cbdde7;
  border-radius: 12px;
  background: #fbfdfe;
}

/* Page headers feel intentional and separate from content without oversized whitespace. */
.th-page-head, .th-search-head, .th-article-head {
  background: linear-gradient(180deg, #fbfdfe, #f8fbfd);
}
.th-page-head .th-section-kicker,
.th-search-head .th-section-kicker {
  padding: 3px 8px;
  border-radius: 999px;
  background: #eaf7fd;
  border: 1px solid #d3edf7;
}
.th-page-head h1, .th-search-head h1, .th-article-head h1 { margin-top: 7px; }

/* Article: denser supporting boxes, colored facts and better reading rhythm. */
.th-article-layout { gap: 34px; }
.th-quick-summary {
  margin-bottom: 18px;
  padding: 13px 15px;
  border-left-width: 3px;
  box-shadow: 0 4px 14px rgba(23,63,99,.035);
}
.th-facts { margin-bottom: 20px; border-radius: 11px; }
.th-facts > div { padding: 10px 12px; background: linear-gradient(180deg, #fff, #fbfdfe); }
.th-prose h2 { margin-top: 30px; }
.th-prose h3 { margin-top: 23px; }
.th-prose p { margin-bottom: 13px; }
.th-references li { padding: 8px 0; }

/* Questions become scannable cards instead of long empty rows. */
.th-question-list { gap: 9px; }
.th-question-item {
  position: relative;
  padding: 15px 17px 15px 50px;
  border: 1px solid var(--th-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(23,63,99,.035);
}
.th-question-item::before {
  content: "?";
  position: absolute;
  left: 15px;
  top: 16px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #0879aa;
  background: #e8f6fc;
  font-size: 14px;
  font-weight: 750;
}
.th-question-item h2 { font-size: 16.5px !important; }
.th-question-item p { font-size: 13.5px; line-height: 1.5; }
.th-answer { padding: 15px 0; }
.th-answer.is-accepted { padding: 15px; border-radius: 11px; }

/* Newsletter, ask page and modal share the same compact visual language. */
.th-newsletter-wrap { gap: 28px; }
.th-newsletter-form {
  padding: 12px;
  border: 1px solid var(--th-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--th-card-shadow);
}
.th-ask-page { min-height: 44vh; }
.th-ask-page-card {
  max-width: 620px;
  padding: 28px;
  border: 1px solid #d6e7ef;
  border-radius: 16px;
  background: linear-gradient(145deg, #f3faff, #fff 70%);
  box-shadow: var(--th-card-shadow);
}
.th-ask-page-card > svg {
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 12px;
  background: #e5f6fd;
}
body.kstth-react-body .th-dialog-inner { padding: 21px; }
.th-dialog-head { padding-bottom: 13px; }
.th-lead-form { gap: 12px; padding-top: 15px; }
.th-field textarea { min-height: 70px; }

/* Footer: reduce dead area while preserving touch targets. */
.th-footer-inner { gap: 24px; }
.th-footer-links { gap: 12px; }

@media (max-width: 900px) {
  :root { --th-section-space: 38px; --th-section-space-tight: 31px; }
  .th-home-latest-layout { gap: 24px; }
  .th-topic-card { min-height: 88px; }
  .th-filter-panel { border-radius: 0; padding: 18px; }
}

@media (max-width: 640px) {
  :root { --th-section-space: 34px; --th-section-space-tight: 28px; }
  .th-home-hero { padding: 34px 0 28px; }
  .th-page-head, .th-search-head, .th-article-head { padding: 27px 0 23px; }
  .th-section-head { flex-direction: row; align-items: center; gap: 10px; margin-bottom: 14px; }
  .th-section-title-wrap { gap: 9px; }
  .th-section-icon { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; }
  .th-section-head > a { margin-left: auto; white-space: nowrap; font-size: 12px; }
  .th-topic-grid, .th-topic-grid-large { gap: 9px; }
  .th-topic-card { min-height: 82px; grid-template-columns: 34px minmax(0,1fr) 24px; gap: 10px; padding: 13px 14px; }
  .th-topic-icon { width: 34px; height: 34px; border-radius: 9px; }
  .th-topic-card h3 { font-size: 15.5px !important; }
  .th-topic-card p { font-size: 12px; }
  .th-knowledge-grid { gap: 9px; }
  .th-knowledge-grid .th-knowledge-card { padding: 15px; }
  .th-card-icon { width: 28px; height: 28px; flex-basis: 28px; }
  .th-knowledge-card h3 { font-size: 16px !important; }
  .th-home-latest-layout { gap: 22px; }
  .th-question-panel { padding: 17px; }
  .th-search-layout { gap: 18px; }
  .th-search-start { padding: 16px; }
  .th-inline-question { grid-template-columns: auto 1fr; }
  .th-inline-question > svg { display: inline-block; }
  .th-inline-question .th-button { grid-column: 1 / -1; width: 100%; }
  .th-question-item { padding: 14px 14px 14px 46px; }
  .th-question-item::before { left: 13px; top: 14px; }
  .th-ask-page-card { padding: 22px 18px; }
  body.kstth-react-body .th-dialog-inner { padding: 18px 15px; }
  .th-footer-inner { min-height: 126px; }
}
