/* SyncTV Help Guide knowledge base v3.
 * Customer-facing navigation only. Keeps the existing help answers and turns
 * the landing page into task-first tiles with one focused topic at a time.
 */

.kb-start-head,.kb-browse-head{margin:34px 0 16px}
.kb-start-head h2,.kb-browse-head h2{font-size:28px;font-weight:600}
.kb-start-head p,.kb-browse-head p{max-width:760px;margin:5px 0 0;color:var(--muted);font-size:14px}

.kb-featured-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.kb-featured-card,.kb-topic-card{border:1px solid var(--line);background:var(--card);color:var(--text);box-shadow:var(--shadow)}
.kb-featured-card{position:relative;overflow:hidden;border-radius:20px;padding:24px;min-height:230px;display:flex;flex-direction:column}
.kb-featured-card::before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:linear-gradient(180deg,var(--accent),#35bde8)}
.kb-featured-top{display:flex;align-items:center;justify-content:space-between;gap:14px}
.kb-featured-icon,.kb-topic-icon{display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);font-family:Fredoka,sans-serif;font-weight:700}
.kb-featured-icon{width:52px;height:52px;border-radius:15px;font-size:15px;letter-spacing:.02em}
.kb-topic-icon{width:44px;height:44px;border-radius:13px;font-size:15px}
.kb-badge{display:inline-flex;align-items:center;min-height:28px;padding:5px 9px;border-radius:999px;background:var(--accent-soft);color:var(--accent);font-size:11px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
.kb-featured-card h3{margin-top:18px;font-size:24px;font-weight:600}
.kb-featured-card p{margin:8px 0 0;color:var(--muted);font-size:14px;line-height:1.5}
.kb-featured-action{margin-top:auto;padding-top:20px}

.kb-primary-action,.kb-card-main,.kb-task-link,.kb-back,.kb-search-result{font:inherit;cursor:pointer}
.kb-primary-action{min-height:42px;padding:10px 14px;border:0;border-radius:10px;background:var(--accent);color:#fff;font-size:13px;font-weight:900}
.kb-primary-action:hover{filter:brightness(1.05)}
.kb-primary-action:focus-visible,.kb-card-main:focus-visible,.kb-task-link:focus-visible,.kb-back:focus-visible,.kb-search-result:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 28%,transparent);outline-offset:2px}

.kb-topic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.kb-topic-card{border-radius:18px;overflow:hidden;min-width:0}
.kb-card-main{display:block;width:100%;padding:20px;border:0;background:transparent;color:inherit;text-align:left}
.kb-card-title-row{display:flex;align-items:flex-start;gap:13px}
.kb-card-title-copy{min-width:0;flex:1}
.kb-card-main h3{font-size:19px;font-weight:600}
.kb-card-main p{margin:6px 0 0;color:var(--muted);font-size:13px;line-height:1.45}
.kb-card-arrow{margin-left:auto;color:var(--accent);font-size:22px;line-height:1.1}
.kb-task-list{padding:0 20px 18px}
.kb-task-link{display:flex;width:100%;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border:0;border-top:1px solid var(--line);background:transparent;color:var(--text);text-align:left;font-size:12px;font-weight:800}
.kb-task-link::after{content:"›";color:var(--accent);font-size:17px;line-height:1}
.kb-task-link:hover{color:var(--accent)}

/* The knowledge-base tiles replace the old permanent shortcut/sidebar model. */
.kb-enabled .side-card{display:none!important}
.kb-enabled .guide-layout{display:block!important}
.kb-enabled .guide-stack{width:100%!important}
.kb-enabled .guide-group[hidden],.kb-enabled .support-card[hidden],.kb-enabled [data-kb-hidden="true"]{display:none!important}

.kb-active-wrap{margin-top:30px}
.kb-active-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 14px;padding:18px 20px;border:1px solid var(--line);border-radius:16px;background:var(--soft)}
.kb-active-copy{min-width:0}.kb-active-copy span{display:block;color:var(--accent);font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.kb-active-copy h2{margin-top:3px;font-size:25px;font-weight:600}.kb-active-copy p{margin:4px 0 0;color:var(--muted);font-size:13px}
.kb-back{flex:0 0 auto;min-height:38px;padding:9px 12px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--text);font-size:12px;font-weight:900}
.kb-back:hover{border-color:var(--accent);color:var(--accent)}
.kb-enabled #guideTitle{display:none!important}
.kb-enabled section[aria-labelledby="guideTitle"]>.section-head{display:none!important}

.kb-search-shell{margin:30px 0 0}
.kb-search-shell[hidden]{display:none!important}
.kb-search-head{margin-bottom:14px}.kb-search-head h2{font-size:27px;font-weight:600}.kb-search-head p{margin:4px 0 0;color:var(--muted);font-size:13px}
.kb-search-list{display:grid;gap:10px}
.kb-search-result{width:100%;padding:17px 18px;border:1px solid var(--line);border-radius:14px;background:var(--card);color:var(--text);text-align:left;box-shadow:var(--shadow)}
.kb-search-result:hover{border-color:var(--accent)}
.kb-search-result strong{display:block;font-size:14px}.kb-search-result span{display:block;margin-top:3px;color:var(--muted);font-size:12px}
.kb-search-empty{padding:18px;border:1px dashed var(--line);border-radius:14px;color:var(--muted);background:var(--card)}

html[data-synctv-theme="dark"] .kb-featured-card,
html[data-synctv-theme="dark"] .kb-topic-card,
html[data-synctv-theme="dark"] .kb-search-result{box-shadow:none!important}
html[data-synctv-theme="dark"] .kb-active-head{background:#172238!important;border-color:var(--line)!important}
html[data-synctv-theme="light"] .kb-active-head{background:#f3f6fb!important}

@media(max-width:900px){
  .kb-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .kb-featured-grid,.kb-topic-grid{grid-template-columns:1fr}
  .kb-featured-card{min-height:0}
  .kb-active-head{align-items:flex-start;flex-direction:column}
  .kb-back{width:100%}
}
