/*
 * Knowledgebase pages (OP#4842). Breadcrumbs, browse cards, the Clients only badge and highlight,
 * the signed in line and the client sign in page. Colors come from Lattice tokens only, so the light
 * and dark themes both follow them. The hero is always dark, so badges there use the dark scale.
 */

/* Breadcrumbs in the hero. The current page is plain text. */
body.lt .page-hero .breadcrumbs [aria-current="page"] { color: var(--lt-c-brand-100); -webkit-text-fill-color: var(--lt-c-brand-100); }

/* Browse cards on the Knowledgebase home and category pages. */
body.lt .lt-kb-browse { margin: 0 0 48px; }
body.lt .lt-kb-browse__title { margin: 0 0 20px; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); color: var(--lt-ink-1); }
body.lt .lt-kb-browse__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
body.lt a.lt-kb-browse__card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 20px 22px; border: 1px solid var(--lt-line-1); border-radius: var(--lt-radius-card); background: var(--lt-surface-1); box-shadow: var(--lt-shadow-1); color: var(--lt-ink-1); text-decoration: none; transition: border-color var(--lt-motion-fast) ease; }
body.lt a.lt-kb-browse__card:hover { border-color: var(--lt-brand); }
body.lt a.lt-kb-browse__card:focus-visible { outline: 3px solid var(--lt-c-signal-400); outline-offset: 2px; }
body.lt .lt-kb-browse__name { font-size: 1.125rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; color: var(--lt-ink-1); }
body.lt .lt-kb-browse__desc { font-size: .9375rem; line-height: 1.55; color: var(--lt-ink-2); }
body.lt .lt-kb-browse__count { margin-top: auto; font: 500 13px/1.2 var(--lt-font-mono); color: var(--lt-brand-text); }

/* The Clients only badge. */
body.lt .kb-badge { display: inline-flex; align-items: center; margin-right: 8px; padding: 3px 10px; border: 1px solid var(--lt-brand); border-radius: 999px; background: var(--lt-brand-soft); color: var(--lt-brand-text); -webkit-text-fill-color: var(--lt-brand-text); font: 600 12px/1.2 var(--lt-font-mono); letter-spacing: .04em; vertical-align: middle; white-space: nowrap; }
body.lt .page-hero .kb-badge { border-color: var(--lt-c-brand-400); background: var(--lt-c-brand-950); color: var(--lt-c-brand-200); -webkit-text-fill-color: var(--lt-c-brand-200); font-size: 13px; }

/* A client-only card in a list, shown to a signed in client or staff. */
body.lt .card.kb-client-only, body.lt .kb-client-only.lt-blog-card { border-color: var(--lt-brand); box-shadow: inset 4px 0 0 var(--lt-brand), var(--lt-shadow-1); }

/* The signed in line and the For clients list, added in the browser by arphost-kb. */
body.lt .kb-client-items { padding: 24px 0 0; }
body.lt .kb-session { margin: 0; font-size: .9375rem; color: var(--lt-ink-2); }
body.lt .kb-session .kb-sign-out { margin-left: 4px; color: var(--lt-brand-text); }
body.lt .kb-client-items__title { margin: 24px 0 16px; font-size: clamp(1.3rem, 1.15rem + .6vw, 1.7rem); color: var(--lt-ink-1); }
body.lt .kb-client-items__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
body.lt .kb-client-items .kb-client-only { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding: 20px 22px; border: 1px solid var(--lt-brand); border-radius: var(--lt-radius-card); background: var(--lt-surface-1); }
body.lt .kb-client-items__name { margin: 0; font-size: 1.125rem; line-height: 1.3; overflow-wrap: anywhere; }
body.lt .kb-client-items__name a { color: var(--lt-ink-1); text-decoration: none; }
body.lt .kb-client-items__name a:hover { color: var(--lt-brand-text); }
body.lt .kb-client-items__excerpt { margin: 0; font-size: .9375rem; line-height: 1.55; color: var(--lt-ink-2); }

/* The page a guest sees on a client-only guide. */
body.lt .kb-gate .container { max-width: 720px; padding-top: 48px; padding-bottom: 48px; text-align: center; }
body.lt .kb-gate h1 { margin: 0 0 16px; color: var(--lt-ink-1); }
body.lt .kb-gate p { color: var(--lt-ink-2); }
body.lt .kb-gate .lt-btn { margin-top: 8px; }
