/*!
 * Kyma Info Pages — shared design components
 * namespace: ki-  (Kyma Info)
 *
 * All values defer to tokens defined in ../style.css.
 * Pages extending base_info.html get these classes automatically.
 * Per-page overrides (hero gradient, --ki-accent) live in each page's
 * {% block extra_head %} style block — only those lines need to change.
 */

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.ki-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250,250,248,0.72);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle, rgba(28,25,23,0.06));
}
.ki-nav-inner {
    max-width: 860px; margin: 0 auto;
    padding: 0 32px;
    display: flex; align-items: center; justify-content: space-between;
    height: 60px; gap: 16px;
}
.ki-nav-brand {
    display: inline-flex; align-items: center;
    text-decoration: none;
    transition: opacity 160ms;
}
.ki-nav-brand:hover { opacity: 0.65; text-decoration: none; }
.ki-nav-brand img { height: 18px; width: auto; display: block; }
.ki-back {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 500;
    color: var(--text-muted, #716960);
    text-decoration: none;
    transition: color 160ms;
}
.ki-back:hover { color: var(--teal-500, #147D8E); text-decoration: none; }
.ki-back svg { width: 14px; height: 14px; stroke-width: 2; }

/* ── Hero base (gradient & --ki-accent set per-page) ─────────────────────── */
.ki-hero {
    position: relative; overflow: hidden;
    --ki-accent: #A7F3D0;
}
.ki-hero::before {
    content: "";
    position: absolute; inset: 0; pointer-events: none;
}
.ki-hero-inner {
    max-width: 860px; margin: 0 auto;
    padding: 64px 32px 72px;
    position: relative; z-index: 1;
}
.ki-hero-eyebrow {
    font-family: var(--font-brand, 'Clash Display', sans-serif);
    font-size: 11px; font-weight: 500;
    letter-spacing: 0.24em; text-transform: uppercase;
    color: var(--ki-accent);
    margin-bottom: 16px;
    display: inline-flex; align-items: center; gap: 8px;
}
.ki-hero-eyebrow::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--ki-accent);
    flex-shrink: 0;
}
.ki-hero-title {
    font-family: var(--font-display, 'Fraunces', serif);
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 300; letter-spacing: -0.025em; line-height: 1.1;
    color: #fff; margin-bottom: 20px;
}
.ki-hero-title em { font-style: italic; color: var(--ki-accent); font-weight: 300; }
.ki-hero-lead {
    font-size: 17px; line-height: 1.65; color: rgba(255,255,255,0.78);
    max-width: 600px;
}

/* ── Content body ────────────────────────────────────────────────────────── */
.ki-body { max-width: 860px; margin: 0 auto; padding: 64px 32px 96px; }
.ki-section { margin-bottom: 56px; }
.ki-section-title {
    font-family: var(--font-display, 'Fraunces', serif);
    font-size: 24px; font-weight: 300;
    letter-spacing: -0.015em; color: var(--stone-900, #1B1917);
    margin-bottom: 20px; padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle, rgba(28,25,23,0.06));
}
.ki-p {
    font-size: 15px; line-height: 1.75;
    color: var(--text-secondary, #4E4843);
    margin-bottom: 14px;
}
.ki-p:last-child { margin-bottom: 0; }
.ki-p strong { color: var(--text-primary, #1B1917); font-weight: 600; }

/* ── Callout box ─────────────────────────────────────────────────────────── */
.ki-callout {
    background: linear-gradient(135deg, rgba(11,86,101,0.06) 0%, rgba(88,181,197,0.06) 100%);
    border: 1px solid rgba(20,125,142,0.15);
    border-radius: 16px;
    padding: 24px 28px; margin: 24px 0;
}
.ki-callout-title {
    font-weight: 600; font-size: 14px;
    color: var(--teal-700, #0C5663); margin-bottom: 8px;
}
.ki-callout p { font-size: 14px; line-height: 1.65; color: var(--text-secondary, #4E4843); margin: 0; }

/* ── Sources list ────────────────────────────────────────────────────────── */
.ki-sources {
    counter-reset: ki-ref; list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.ki-sources li {
    counter-increment: ki-ref;
    display: grid; grid-template-columns: 24px 1fr;
    gap: 12px; align-items: baseline;
    font-size: 13px; line-height: 1.6;
    color: var(--text-muted, #716960);
}
.ki-sources li::before {
    content: counter(ki-ref);
    font-family: var(--font-mono, 'DM Mono', monospace);
    font-size: 11px; color: var(--teal-500, #147D8E);
    font-weight: 500; text-align: right;
}
.ki-sources a { color: var(--teal-600, #106A79); }
.ki-sources a:hover { color: var(--teal-500, #147D8E); }

/* ── Disclaimer ──────────────────────────────────────────────────────────── */
.ki-disclaimer {
    background: var(--bg-subtle, #F5F4F0);
    border-radius: 12px;
    padding: 20px 24px;
    font-size: 13px; line-height: 1.65;
    color: var(--text-muted, #716960);
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .ki-nav-inner { padding: 0 20px; }
    .ki-hero-inner { padding: 48px 20px 56px; }
    .ki-body { padding: 48px 20px 72px; }
}
