/* tk-public-bundle.css -- concatenated Phase 3 critical-CSS bundle.
   Generated from tk-tokens.css + tk-components.css. Do NOT edit by hand;
   regenerate by concatenating the two source files.
   ========================================================== */

/* ===== tk-tokens.css ===== */
/* ==========================================================================
   tk-tokens.css — The Konceptuals design tokens (Phase 2.4).
   Premium medical-education feel: clean white/off-white surfaces, strong ink
   text, muted teal primary, amber accent, restrained coral/error, soft
   neutral borders. Radius 8px or less. Mobile-first 375px first-class.
   Loaded AFTER legacy CSS so modern page CSS can override safely.
   These are :root variables + reduced-motion behavior only — no element
   selectors that could collide with legacy Bootstrap/Style.
   ========================================================================== */

:root {
    /* --- Color: surfaces & ink --- */
    --tk-surface: #ffffff;
    --tk-surface-muted: #f7f8f9;
    --tk-surface-alt: #eef1f3;
    --tk-ink: #1a1f24;
    --tk-ink-soft: #4a525c;
    --tk-ink-faint: #6b7480;
    --tk-border: #e2e6ea;
    --tk-border-strong: #c9d0d6;

    /* --- Color: brand (muted teal primary, amber accent) --- */
    --tk-primary: #14808a;          /* muted teal */
    --tk-primary-hover: #0f6671;
    --tk-primary-soft: #e3f3f4;
    --tk-accent: #e0a106;           /* amber */
    --tk-accent-soft: #fbf2d8;

    /* --- Color: states --- */
    --tk-success: #1f8a4c;
    --tk-success-soft: #e4f4ea;
    --tk-warning: #b8760b;
    --tk-warning-soft: #fbf0d6;
    --tk-error: #c9433a;            /* restrained coral/red */
    --tk-error-soft: #fbe9e7;

    /* --- Focus ring (accessibility) --- */
    --tk-focus-ring: 0 0 0 3px rgba(20, 128, 138, 0.35);

    /* --- Type scale (mobile-first; 1rem = 16px) --- */
    --tk-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --tk-fs-xs: 0.75rem;    /* 12px */
    --tk-fs-sm: 0.875rem;   /* 14px */
    --tk-fs-base: 1rem;     /* 16px */
    --tk-fs-md: 1.125rem;   /* 18px */
    --tk-fs-lg: 1.375rem;   /* 22px */
    --tk-fs-xl: 1.75rem;    /* 28px */
    --tk-fs-2xl: 2.25rem;   /* 36px */
    --tk-line-tight: 1.25;
    --tk-line-normal: 1.55;

    /* --- Spacing scale --- */
    --tk-space-1: 0.25rem;
    --tk-space-2: 0.5rem;
    --tk-space-3: 0.75rem;
    --tk-space-4: 1rem;
    --tk-space-5: 1.5rem;
    --tk-space-6: 2rem;
    --tk-space-7: 3rem;
    --tk-space-8: 4rem;

    /* --- Radius (8px or less per design direction) --- */
    --tk-radius-sm: 4px;
    --tk-radius: 6px;
    --tk-radius-lg: 8px;

    /* --- Shadow / depth (soft) --- */
    --tk-shadow-sm: 0 1px 2px rgba(26, 31, 36, 0.06);
    --tk-shadow: 0 2px 8px rgba(26, 31, 36, 0.08);
    --tk-shadow-lg: 0 8px 24px rgba(26, 31, 36, 0.12);

    /* --- Layout --- */
    --tk-container-max: 1200px;
    --tk-container-narrow: 760px;
    --tk-touch-target: 44px;        /* a11y: min touch target */

    /* --- Motion --- */
    --tk-transition: 150ms ease;
}

/* --- Reduced motion: disable non-essential animation (accessibility) --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}


/* ===== tk-components.css ===== */
/* ==========================================================================
   tk-components.css — The Konceptuals component primitives (Phase 2.4).
   Namespaced under ``.tk-`` to avoid collisions with legacy Bootstrap/style.
   Loaded after tk-tokens.css. These are opt-in: legacy pages ignore them;
   modernized pages (Phase 3+) adopt them progressively.
   ========================================================================== */

/* --- Skip link (accessibility) --- */
.tk-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: var(--tk-space-3) var(--tk-space-4);
    background: var(--tk-ink);
    color: #fff;
    border-radius: 0 0 var(--tk-radius) 0;
    font-weight: 600;
}
.tk-skip-link:focus {
    left: 0;
    outline: none;
    box-shadow: var(--tk-focus-ring);
}

/* --- Layout containers --- */
.tk-container {
    width: 100%;
    max-width: var(--tk-container-max);
    margin-inline: auto;
    padding-inline: var(--tk-space-4);
}
.tk-container--narrow { max-width: var(--tk-container-narrow); }

/* --- Main landmark (a11y: every page needs exactly one <main>) --- */
.tk-main {
    min-height: 60vh;
    padding-block: var(--tk-space-6);
}
.tk-main:focus { outline: none; }

/* --- Hero (Phase 3.1 LCP) --- */
.tk-hero { padding-block: var(--tk-space-7); }
.tk-hero__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--tk-space-6);
    align-items: center;
}
@media (min-width: 768px) {
    .tk-hero__inner { grid-template-columns: 1.1fr 1fr; gap: var(--tk-space-7); }
}
.tk-hero__eyebrow {
    margin: 0 0 var(--tk-space-2);
    font-size: var(--tk-fs-sm);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tk-primary);
}
.tk-hero__title {
    font-size: var(--tk-fs-xl);
    line-height: var(--tk-line-tight);
    color: var(--tk-ink);
    margin: 0 0 var(--tk-space-3);
}
@media (min-width: 768px) { .tk-hero__title { font-size: var(--tk-fs-2xl); } }
.tk-hero__lede {
    font-size: var(--tk-fs-md);
    line-height: var(--tk-line-normal);
    color: var(--tk-ink-soft);
    margin: 0 0 var(--tk-space-5);
}
.tk-hero__actions { display: flex; flex-wrap: wrap; gap: var(--tk-space-3); }
.tk-hero__media { order: -1; }
@media (min-width: 768px) { .tk-hero__media { order: 0; } }
.tk-hero__img {
    width: 100%;
    height: auto;
    border-radius: var(--tk-radius-lg);
    box-shadow: var(--tk-shadow);
}

/* --- Headings (semantic, calm) --- */
.tk-h1, .tk-h2, .tk-h3 { color: var(--tk-ink); line-height: var(--tk-line-tight); margin: 0 0 var(--tk-space-3); }
.tk-h1 { font-size: var(--tk-fs-2xl); }
.tk-h2 { font-size: var(--tk-fs-xl); }
.tk-h3 { font-size: var(--tk-fs-lg); }

/* --- Buttons --- */
.tk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--tk-space-2);
    min-height: var(--tk-touch-target);
    padding: var(--tk-space-2) var(--tk-space-4);
    font-family: var(--tk-font-sans);
    font-size: var(--tk-fs-base);
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid transparent;
    border-radius: var(--tk-radius);
    cursor: pointer;
    text-decoration: none;
    transition: background var(--tk-transition), border-color var(--tk-transition), color var(--tk-transition);
}
.tk-btn:focus-visible { outline: none; box-shadow: var(--tk-focus-ring); }
.tk-btn--primary { background: var(--tk-primary); color: #fff; }
.tk-btn--primary:hover { background: var(--tk-primary-hover); color: #fff; }
.tk-btn--ghost { background: transparent; color: var(--tk-primary); border-color: var(--tk-border-strong); }
.tk-btn--ghost:hover { background: var(--tk-primary-soft); color: var(--tk-primary-hover); }

/* --- Cards / panels --- */
.tk-card {
    background: var(--tk-surface);
    border: 1px solid var(--tk-border);
    border-radius: var(--tk-radius-lg);
    padding: var(--tk-space-5);
    box-shadow: var(--tk-shadow-sm);
}

/* --- Badges --- */
.tk-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px var(--tk-space-2);
    font-size: var(--tk-fs-xs);
    font-weight: 600;
    border-radius: var(--tk-radius-sm);
    background: var(--tk-surface-alt);
    color: var(--tk-ink-soft);
}
.tk-badge--accent { background: var(--tk-accent-soft); color: var(--tk-warning); }
.tk-badge--success { background: var(--tk-success-soft); color: var(--tk-success); }

/* --- Forms --- */
.tk-field { display: flex; flex-direction: column; gap: var(--tk-space-2); margin-bottom: var(--tk-space-4); }
.tk-label { font-size: var(--tk-fs-sm); font-weight: 600; color: var(--tk-ink); }
.tk-input, .tk-select, .tk-textarea {
    width: 100%;
    min-height: var(--tk-touch-target);
    padding: var(--tk-space-2) var(--tk-space-3);
    font-family: var(--tk-font-sans);
    font-size: var(--tk-fs-base);
    color: var(--tk-ink);
    background: var(--tk-surface);
    border: 1px solid var(--tk-border-strong);
    border-radius: var(--tk-radius);
    transition: border-color var(--tk-transition), box-shadow var(--tk-transition);
}
.tk-input:focus, .tk-select:focus, .tk-textarea:focus {
    outline: none;
    border-color: var(--tk-primary);
    box-shadow: var(--tk-focus-ring);
}

/* --- Empty states --- */
.tk-empty {
    text-align: center;
    padding: var(--tk-space-7) var(--tk-space-4);
    color: var(--tk-ink-faint);
}
.tk-empty__title { font-size: var(--tk-fs-md); font-weight: 600; color: var(--tk-ink-soft); margin-bottom: var(--tk-space-2); }

/* --- Visually-hidden (screen-reader only) --- */
.tk-sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}
