/*
 * Public knowledge base.
 *
 * EVERY RULE IS SCOPED UNDER .kb — the whatsapp-inbox.css doctrine. Generic
 * names here (.kb-list, .kb-tile) can never repaint another page, and no
 * element/reset selectors are emitted at all.
 *
 * Tokens are the LIVE SITE's values, not the CRM design system's. The two
 * disagree (#1b74bc vs #196db6, Source Serif 4/Mulish vs Fraunces/Public Sans),
 * and a page sitting between /services and /forms must not be the one with
 * different greys. Operator ruling 2026-08-17: two palettes coexist, scoped.
 * Header names TIC_web/app/globals.css as upstream.
 */
.kb {
    --kb-ink: #1e293b;
    --kb-ink-soft: #475569;
    --kb-line: #e2e8f0;
    --kb-bg: #ffffff;
    --kb-bg-soft: #f8fafc;
    --kb-brand: #196db6;
    --kb-brand-dark: #145a97;

    margin: 0;
    background: var(--kb-bg);
    color: var(--kb-ink);
    font-family: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.kb a { color: var(--kb-brand); text-decoration: none; }
.kb a:hover { text-decoration: underline; }

.kb .kb-top { border-bottom: 1px solid var(--kb-line); padding: 18px 20px; }
.kb .kb-brand { font-weight: 700; color: var(--kb-ink); font-size: 17px; }
.kb .kb-brand span { color: var(--kb-ink-soft); font-weight: 500; }

.kb .kb-main { max-width: 760px; margin: 0 auto; padding: 28px 20px 56px; }
.kb .kb-h1 { font-family: Fraunces, ui-serif, Georgia, serif; font-size: 34px; line-height: 1.2; margin: 8px 0 14px; }
.kb .kb-h2 { font-family: Fraunces, ui-serif, Georgia, serif; font-size: 22px; margin: 34px 0 10px; }
.kb .kb-lede { color: var(--kb-ink-soft); font-size: 18px; margin: 0 0 20px; }
.kb .kb-empty { color: var(--kb-ink-soft); background: var(--kb-bg-soft); border: 1px solid var(--kb-line); border-radius: 10px; padding: 16px 18px; }

.kb .kb-crumb { font-size: 14px; color: var(--kb-ink-soft); margin-bottom: 6px; }
.kb .kb-crumb span { margin: 0 6px; color: var(--kb-line); }

.kb .kb-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.kb .kb-tile a { display: block; border: 1px solid var(--kb-line); border-radius: 12px; padding: 16px 18px; color: inherit; height: 100%; }
.kb .kb-tile a:hover { border-color: var(--kb-brand); text-decoration: none; }
.kb .kb-tile-t { display: block; font-weight: 700; color: var(--kb-ink); }
.kb .kb-tile-s { display: block; margin-top: 4px; font-size: 15px; color: var(--kb-ink-soft); }
.kb .kb-tile-n { display: block; margin-top: 10px; font-size: 13px; color: var(--kb-ink-soft); }

.kb .kb-list { list-style: none; margin: 0; padding: 0; }
.kb .kb-list li { padding: 12px 0; border-bottom: 1px solid var(--kb-line); }
.kb .kb-list-s { display: block; font-size: 15px; color: var(--kb-ink-soft); }

/* WHICH INSURER AN ARTICLE IS FOR.

   .kb-carrier is the eyebrow above an article title; .kb-tag is the inline
   version on a list row. Two rules rather than one because they sit in
   different places and only the eyebrow needs its own line — but they share a
   weight and colour deliberately, so a member reading a list and then an
   article sees the same mark twice rather than two treatments of one fact.

   The eyebrow's margin is asymmetric on purpose: it belongs to the title
   beneath it, not to the breadcrumb above, and .kb-h1 already carries an 8px
   top margin which this cancels. */
.kb .kb-carrier {
    margin: 10px 0 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--kb-brand);
}
.kb .kb-carrier + .kb-h1 { margin-top: 2px; }

/* An insurer heading on a topic listing. Reuses .kb-h2 for type so a topic
   page reads like the rest of the site, and only adjusts rhythm: .kb-h2's 34px
   top margin is right between prose sections and too much between a lede and
   the first group it introduces. The rule beneath is what makes two groups read
   as two lists rather than one long one. */
.kb .kb-group {
    margin: 30px 0 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--kb-line);
    font-size: 19px;
}
.kb .kb-lede + .kb-group,
.kb .kb-h1 + .kb-group { margin-top: 18px; }

.kb .kb-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    border: 1px solid var(--kb-line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--kb-ink-soft);
    vertical-align: 2px;
    white-space: nowrap;
}

.kb .kb-body h2 { font-family: Fraunces, ui-serif, Georgia, serif; font-size: 22px; margin: 30px 0 8px; }
.kb .kb-body h3 { font-size: 18px; margin: 24px 0 6px; }
.kb .kb-body p, .kb .kb-body li { color: var(--kb-ink); }
.kb .kb-body ul, .kb .kb-body ol { padding-left: 22px; }
.kb .kb-body table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.kb .kb-body th, .kb .kb-body td { border: 1px solid var(--kb-line); padding: 8px 10px; text-align: left; font-size: 15px; }
/* Wide content scrolls inside its own box — the page body never scrolls sideways. */
.kb .kb-body pre { overflow-x: auto; background: var(--kb-bg-soft); border: 1px solid var(--kb-line); border-radius: 8px; padding: 12px 14px; }

/* .kb-reviewed and .kb-foot were REMOVED with their elements (operator ruling
   2026-08-18) rather than left as dead rules — an unused rule for a bordered
   footer is a standing invitation to "restore" a footer the design dropped on
   purpose. Same reasoning as the deleted phone filter-bar rules. */

@media (max-width: 560px) {
    .kb { font-size: 16px; }
    .kb .kb-h1 { font-size: 27px; }
    .kb .kb-main { padding: 20px 16px 40px; }
}

/* Attached documents. A card rather than a bare list: this is the block a
   member scrolls to looking for the claim form, so it has to be findable at a
   glance from halfway down a long article. */
.kb .kb-docs {
    margin: 32px 0 0;
    padding: 18px 20px;
    background: var(--kb-bg-soft);
    border: 1px solid var(--kb-line);
    border-radius: 10px;
}
.kb .kb-docs-h { font-size: 15px; margin: 0 0 10px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--kb-ink-soft); }
.kb .kb-docs-list { list-style: none; margin: 0; padding: 0; }
.kb .kb-docs-item { padding: 8px 0; border-top: 1px solid var(--kb-line); }
.kb .kb-docs-item:first-child { border-top: 0; padding-top: 0; }
.kb .kb-docs-link { font-weight: 600; }
/* Type and size sit on their own line rather than inline, so a long document
   title never pushes them off a phone screen — the two facts a reader uses to
   decide whether to tap on mobile data. */
.kb .kb-docs-meta { display: block; font-size: 13px; color: var(--kb-ink-soft); }
.kb .kb-docs-desc { display: block; font-size: 14px; color: var(--kb-ink-soft); margin-top: 2px; }

/* Standard disclaimer, rendered by the template on every article (never in the
   body). Quiet but legible: it is a legal notice, not a warning, and it sits
   after the answer rather than in front of it. */
/* Standard disclaimer, rendered by the template directly under the title
   (operator ruling 2026-08-19). A TINTED PANEL, not plain muted text: it now
   occupies the position a reader expects the lede in, so quiet prose there
   would be read as the article's own opening sentence. The border-top it
   carried at the foot is gone — that was a footer separator, and above the
   lede it would draw a rule straight across the title. */
.kb .kb-disclaimer {
    margin: 0 0 1.25rem;
    padding: 10px 14px;
    background: var(--kb-bg-soft);
    border: 1px solid var(--kb-line);
    border-radius: 8px;
    color: var(--kb-ink-soft);
    font-size: 0.8125rem;
    line-height: 1.6;
}
