.kc-story, .kc-demo-page { color-scheme: light; --kc-ink: #243d42; --kc-muted: #51666b; --kc-paper: #f4f1e9; --kc-line: #c8d0c8; --kc-accent: #1c615a; --kc-warm: #765128; color: var(--kc-ink); font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.kc-story, .kc-story *, .kc-demo, .kc-demo * { box-sizing: border-box; }
.kc-demo-page { margin: 0; background: var(--kc-paper); }
.kc-demo { max-width: 1500px; margin: auto; padding: 36px clamp(18px, 4vw, 64px) 72px; }
.kc-story { min-width: 0; }
.kc-story p { margin: 0 0 14px; }
.kc-story h1, .kc-story h2, .kc-story h3 { line-height: 1.2; }
.kc-story h1 { font: 500 clamp(38px, 5vw, 68px)/1.07 Georgia, serif; letter-spacing: -.035em; margin: 8px 0 18px; }
.kc-story h2 { margin: 0 0 12px; font: 500 28px/1.2 Georgia, serif; }
.kc-story h3 { font-size: 17px; margin: 0 0 7px; }
.kc-story__banner { border: 1px solid #b8c9c1; border-radius: 8px; background: #e4ece5; padding: 10px 15px; font-size: 13px; font-weight: 650; }
.kc-story__eyebrow, .kc-story__variant-kicker { font-size: 11px; font-weight: 750; letter-spacing: .1em; }
.kc-story__eyebrow { padding-top: 20px; }
.kc-story__intro { max-width: 700px; color: var(--kc-muted); }
.kc-story__status { border-left: 3px solid #9f793f; padding: 10px 16px; background: #ebe6d9; margin: 25px 0 28px; font-size: 14px; }
.kc-story__status p { margin: 4px 0 0; }
.kc-story__authority { font-weight: 650; }
.kc-story__controls { padding: 0; border: 0; margin: 0 0 25px; min-width: 0; }
.kc-story__controls legend { font-weight: 650; margin-bottom: 9px; }
.kc-story__buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.kc-story__mode { border: 1px solid #93aaa0; color: var(--kc-ink); background: transparent; border-radius: 7px; min-height: 44px; padding: 9px 20px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 650; }
.kc-story__mode[aria-pressed=true] { background: var(--kc-accent); color: #fff; border-color: var(--kc-accent); }
.kc-story__controls .kc-story__muted { margin-top: 9px; }
.kc-story__muted { color: var(--kc-muted); font-size: 13px; }
.kc-story__panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.kc-story__variant { min-width: 0; background: #fffcf6; border: 1px solid var(--kc-line); border-radius: 10px; padding: clamp(20px, 2vw, 29px); }
.kc-story__variant.is-selected { border-color: var(--kc-accent); box-shadow: inset 0 3px 0 var(--kc-accent); }
.kc-story__variant[hidden] { display: none; }
.kc-story__variant-kicker { color: var(--kc-accent); }
.kc-story__description { font-size: 14px; color: var(--kc-muted); min-height: 46px; padding-bottom: 17px; border-bottom: 1px solid #dfe2da; }
.kc-story__narrative { font: 19px/1.65 Georgia, serif; }
.kc-story__narrative p { margin: 0 0 22px; }
.kc-story__inference { background: #f0eadb; border-left: 3px solid #927341; padding: 10px 12px; font-size: 17px; }
.kc-story__inference strong { font: 700 12px/1.5 system-ui, sans-serif; color: #64451e; display: block; margin-bottom: 5px; }
.kc-story__citations { display: inline-flex; flex-wrap: wrap; gap: 4px; font: 650 11px/1.5 system-ui, sans-serif; vertical-align: middle; }
.kc-story__citations a { display: inline-block; padding: 4px 6px; border: 1px solid #b6c9bd; border-radius: 4px; background: #edf3eb; color: #24514b; text-decoration: none; }
.kc-story__citations a:hover { text-decoration: underline; }
.kc-story__context { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 30px; margin-top: 42px; align-items: start; }
.kc-story__evidence-unit { padding: 20px 0; border-top: 1px solid var(--kc-line); scroll-margin-block: 24px; overflow-wrap: anywhere; }
.kc-story__basis { color: var(--kc-muted); font-size: 13px; }
.kc-story__evidence-unit blockquote { margin: 10px 0 12px; border-left: 2px solid #96afa1; padding-left: 14px; font: 20px/1.5 Georgia, serif; }
.kc-story__evidence-unit > p:not(.kc-story__basis) { font-size: 14px; }
.kc-story__location, .kc-story__identity { color: var(--kc-muted); font-size: 12px; overflow-wrap: anywhere; }
.kc-story__source-link { color: #14574e; font-size: 14px; text-underline-offset: 3px; }
.kc-story__uncertainties { padding: 25px; border: 1px solid #d1c8b4; background: #eee8da; border-radius: 8px; }
.kc-story__uncertainties h2 { font-size: 24px; }
.kc-story__uncertainties ul { padding-left: 20px; font-size: 14px; }
.kc-story__uncertainties li { margin-bottom: 12px; }
.kc-story__identity { margin-top: 20px; border-top: 1px solid #c9c1af; padding-top: 13px; }
.kc-story__identity summary { color: var(--kc-ink); cursor: pointer; margin-bottom: 12px; font-size: 14px; }
.kc-story :focus-visible, .kc-demo-context :focus-visible { outline: 3px solid #ba682c; outline-offset: 4px; }
.kc-story__sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.kc-demo-context { margin-top: 48px; padding-top: 25px; border-top: 1px solid var(--kc-line); }
.kc-demo-context h2 { font: 500 26px Georgia, serif; }
.kc-demo-context article { margin: 24px 0; padding: 20px; border: 1px solid var(--kc-line); background: #fffdf8; border-radius: 8px; scroll-margin-top: 20px; }
.kc-demo-context h3 { margin-top: 0; font-size: 16px; }
.kc-demo-context pre { font: 14px/1.7 system-ui, sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.kc-demo-note { font-size: 13px; color: var(--kc-muted); }
@media (max-width: 899px) { .kc-story__panels { grid-template-columns: minmax(0, 1fr); } .kc-story__context { grid-template-columns: minmax(0, 1fr); } .kc-story__description { min-height: 0; } .kc-story__uncertainties { order: -1; } }
@media (max-width: 450px) { .kc-demo { padding-top: 16px; } .kc-story__mode { padding: 10px 12px; font-size: 13px; flex: 1; } .kc-story__buttons { gap: 6px; } .kc-story__banner { font-size: 11px; } .kc-story__status { font-size: 13px; margin-block: 20px; } }
@media (prefers-reduced-motion: reduce) { .kc-story, .kc-story * { scroll-behavior: auto !important; } }
@media print { .kc-story__panels { display: block; } .kc-story__variant { break-inside: avoid; margin-bottom: 15px; } .kc-story__variant[hidden] { display: block; } .kc-story__controls, .kc-demo-context { display: none; } }
