/* Knowledge base: search, section grid and help-article helpers. Builds on resources.css variables (--res-*). */
.kb-home .resource-hero{grid-template-columns:1.4fr 1fr;gap:70px}
.kb-home .resource-hero h1{margin-bottom:22px}
.kb-callout-links{display:flex;flex-direction:column;gap:12px;margin-top:18px}
.kb-callout-links a{margin-top:0!important;width:fit-content}
.kb-toolbar{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-top:54px;flex-wrap:wrap}
.kb-toolbar h2{font-size:32px;letter-spacing:-.03em;font-weight:500;margin:12px 0 0}
.kb-search{display:block;font-size:13px;color:var(--res-muted);min-width:340px;flex:0 1 420px}
.kb-search input{display:block;width:100%;padding:13px 16px;border:1px solid var(--res-border);border-radius:5px;background:var(--res-surface);color:var(--res-text);font:inherit;font-size:15px;margin-top:8px}
.kb-search input::placeholder{color:var(--res-muted)}
.kb-search input:focus-visible{outline:2px solid #ed1c24;outline-offset:3px}
.kb-count{font-size:13px!important;margin:18px 0 0;min-height:24px}
.kb-section{margin-top:52px;padding-top:34px;border-top:1px solid var(--res-border)}
.kb-section-head{display:flex;justify-content:space-between;gap:24px;align-items:baseline;flex-wrap:wrap;margin-bottom:24px}
.kb-section-head h2{font-size:28px;font-weight:500;letter-spacing:-.025em;margin:8px 0 0}
.kb-section-head p{margin:0;max-width:520px;font-size:15px!important}
.kb-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.kb-card h3{font-size:19px;line-height:1.35;letter-spacing:-.015em;font-weight:500;margin:16px 0 10px;color:var(--res-text)}
.kb-card p{font-size:14px!important;line-height:1.65!important;margin:0 0 22px!important}
.kb-card .resource-card-body{padding:22px}
.kb-empty{padding:40px;border:1px solid var(--res-border);border-radius:8px;margin-top:40px}
.kb-empty p{margin:0}
.kb-empty button{font:inherit;font-size:14px;padding:10px 16px;border:1px solid var(--res-border);border-radius:5px;background:transparent;color:var(--res-text);cursor:pointer;margin-top:16px}
.kb-home [hidden]{display:none!important}
.kb-bottom{margin-top:70px;padding:44px;border:1px solid var(--res-border);border-left:2px solid #ed1c24;border-radius:0 8px 8px 0;background:linear-gradient(125deg,var(--res-raised),var(--res-surface))}
.kb-bottom h2{font-size:30px;font-weight:500;letter-spacing:-.03em;margin:14px 0 12px}
.kb-bottom p{margin:0 0 8px;max-width:760px}
.kb-bottom a{color:var(--res-text);border-bottom:1px solid var(--res-muted)}

/* Article helpers */
.kb-article .article-header{padding-bottom:30px}
.kb-article .article-layout{margin-top:40px}
.kb-steps{list-style:none;counter-reset:kb-step;padding:0;margin:22px 0 28px}
.kb-steps>li{counter-increment:kb-step;position:relative;padding:0 0 18px 50px;font-size:17px;line-height:1.75;color:var(--res-muted)}
.kb-steps>li:before{content:counter(kb-step);position:absolute;left:0;top:1px;width:30px;height:30px;border:1px solid var(--res-border);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:13px;font-variant-numeric:tabular-nums;color:var(--res-accent);background:var(--res-surface)}
.kb-steps>li strong,.article-content li strong,.article-content p strong{color:var(--res-text);font-weight:600}
.article-content ul.kb-list{padding-left:21px;margin:14px 0 26px}
.article-content ul.kb-list li{padding:5px 0;font-size:17px;line-height:1.75;color:var(--res-muted)}
.article-content ul.kb-list li::marker{color:var(--res-accent)}
.kb-ui{font-weight:600;color:var(--res-text)}
.kb-callout{margin:26px 0 32px;padding:22px 26px;background:var(--res-surface);border:1px solid var(--res-border);border-left:2px solid var(--res-accent);border-radius:0 6px 6px 0}
.kb-callout>span{display:block;font-size:11px;letter-spacing:.08em;color:var(--res-accent);margin-bottom:6px}
.kb-callout p{font-size:16px!important;margin:0!important}
.kb-callout p+p{margin-top:10px!important}
.kb-callout.kb-legal{border-left-color:#ed1c24}
.kb-chip{display:inline-block;padding:1px 9px;border:1px solid var(--res-border);border-radius:999px;font-size:13px;line-height:1.7;color:var(--res-text);background:var(--res-raised);white-space:nowrap}
.kb-table{overflow-x:auto;margin:22px 0 30px}
.kb-table table{border-collapse:collapse;width:100%;min-width:480px;background:var(--res-raised);text-align:left}
.kb-table th,.kb-table td{border:1px solid var(--res-border);padding:12px 14px;font-size:14px;line-height:1.65;vertical-align:top}
.kb-table thead th{background:var(--res-surface);font-weight:500;color:var(--res-text)}
.kb-table tbody th{font-weight:500;color:var(--res-text);width:30%}
.kb-table td{color:var(--res-muted)}
.kb-table code,.article-content code{font:13px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--res-text);overflow-wrap:anywhere}
.kb-code{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--res-surface);border:1px solid var(--res-border);border-radius:6px;padding:18px 20px;font:13px/1.9 ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--res-text);margin:14px 0 26px}
.kb-related>div{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.kb-related h3{font-size:20px!important}
@media(max-width:1150px){.kb-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.kb-related>div{grid-template-columns:1fr 1fr!important}}
@media(max-width:700px){.kb-home .resource-hero{grid-template-columns:1fr;gap:28px}.kb-toolbar{display:block;margin-top:35px}.kb-toolbar h2{font-size:26px}.kb-search{min-width:0;margin-top:22px}.kb-grid{grid-template-columns:1fr}.kb-section-head h2{font-size:24px}.kb-bottom{padding:26px}.kb-bottom h2{font-size:25px}.kb-steps>li{padding-left:44px;font-size:16px}.article-content ul.kb-list li{font-size:16px}.kb-callout{padding:18px 20px}.kb-related>div{grid-template-columns:1fr!important}.kb-chip{white-space:normal}.kb-table table{min-width:0}.kb-table th,.kb-table td{padding:10px;font-size:13px;overflow-wrap:anywhere}.kb-table tbody th{width:auto}}
@media print{.kb-callout,.kb-table,.kb-code{break-inside:avoid}}
