html{-webkit-text-size-adjust:100%}
[data-kh-dd][hidden]{display:none !important}
#kh-root{container-type:normal}
.kh-post{font-size:18px;line-height:1.7;color:var(--fg)}
.kh-post p{margin:0 0 16px}
.kh-post h2{margin:32px 0 12px;font-size:28px;font-weight:600;letter-spacing:-.6px;line-height:1.2}
.kh-post h3{margin:28px 0 10px;font-size:22px;font-weight:600;letter-spacing:-.3px;line-height:1.25}
.kh-post h4,.kh-post h5{margin:24px 0 8px;font-size:18px;font-weight:600}
.kh-post ul,.kh-post ol{margin:0 0 16px;padding-left:24px}
.kh-post li{margin:0 0 6px}
.kh-post a{color:var(--fg);text-decoration:underline;text-underline-offset:3px}
.kh-post img{max-width:100%;height:auto;border-radius:12px;display:block}
.kh-post figure{margin:24px 0}
.kh-post figcaption{font-size:14px;color:var(--fg-2);margin-top:8px}
.kh-post blockquote{margin:24px 0;padding:4px 0 4px 20px;border-left:3px solid var(--fg);font-size:20px;line-height:1.5}
.kh-post table{width:100%;border-collapse:collapse;margin:24px 0;font-size:16px}
.kh-post th,.kh-post td{border:1px solid var(--border);padding:10px 12px;text-align:left;vertical-align:top}
.kh-post iframe{width:100%;aspect-ratio:16/9;height:auto;border:0;border-radius:12px}
.kh-post pre{overflow:auto;padding:16px;border-radius:12px;background:var(--surface);border:1px solid var(--border);font-size:14px}
.kh-toc a{display:block;font-size:14px;line-height:1.4;color:var(--fg-2);padding:6px 0;text-decoration:none}
.kh-toc a:hover{color:var(--fg)}
@media (max-width:760px){.kh-toc{position:static !important;max-width:none !important}.kh-post{font-size:17px}}
.kh-toc br{display:none}
.kh-more{display:none !important}
.kh-cats{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}
.kh-catbtn{height:36px;padding:0 14px;border-radius:999px;cursor:pointer;font:inherit;font-size:14px;border:1px solid var(--border);background:var(--surface);color:var(--fg)}
.kh-catbtn[aria-pressed="true"]{border-color:var(--fg);background:var(--fg);color:#fff}
/* motion */
html{scroll-behavior:smooth}
[id]{scroll-margin-top:120px}
#kh-root a,#kh-root button{transition:background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease,opacity .18s ease}
@keyframes kh-dd{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
[data-kh-dd]:not([hidden]){animation:kh-dd .18s ease-out both}
@keyframes kh-swap{from{opacity:.35}to{opacity:1}}
.kh-swap{animation:kh-swap .28s ease-out both}
@keyframes kh-card{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.kh-newcard{animation:kh-card .35s ease-out both}
.kh-rv{opacity:.45;transform:translateY(14px)}
.kh-rv.kh-in{opacity:1;transform:none;transition:opacity .6s ease-out,transform .6s cubic-bezier(.2,.7,.2,1)}
@media (prefers-reduced-motion: reduce){html{scroll-behavior:auto}.kh-rv{opacity:1;transform:none}.kh-swap,.kh-newcard,[data-kh-dd]:not([hidden]){animation:none}#kh-root a,#kh-root button{transition:none}}
/* home headline: rotating tails overlap instead of stacking, in every browser */
h1.khmain-h1 > span{display:block !important;position:relative}
h1.khmain-h1 > span > span[aria-hidden="true"]{position:absolute !important;left:0;right:0;top:0}
h1.khmain-h1 > span > span[aria-hidden="false"]{position:relative}
/* article text: one rhythm, spacing comes from the 16px gap between blocks */
.kh-post{line-height:1.6}
.kh-post p{margin:0}
.kh-post strong,.kh-post b{font-weight:600}
.kh-post h2{margin:20px 0 0;line-height:1.2}
.kh-post h3{margin:12px 0 0;line-height:1.25}
.kh-post h4,.kh-post h5{margin:8px 0 0}
.kh-post ul,.kh-post ol{margin:0}
.kh-post li{margin:0 0 6px}
.kh-post li:last-child{margin-bottom:0}
.kh-post figure,.kh-post blockquote,.kh-post table{margin:8px 0}
.kh-post [data-rt-embed-type]{display:flex;flex-direction:column;gap:16px}
.kh-post [data-rt-embed-type] > article,.kh-post [data-rt-embed-type] > section{display:flex;flex-direction:column;gap:16px}
@media (max-width:760px){.kh-post{font-size:17px;line-height:1.55}.kh-post h2{font-size:24px}.kh-post h3{font-size:20px}}
/* call-to-action blocks inside articles: white card with a border, real button */
.kh-post [style*="#e0fcf0"]{background:var(--surface) !important;border:1px solid var(--border) !important;border-radius:16px !important;padding:28px !important;box-shadow:0 1px 2px rgba(20,20,18,.05)}
.kh-post [style*="#e0fcf0"] [style*="2.5rem"]{font-size:26px !important;line-height:1.15 !important;letter-spacing:-.5px;font-weight:600 !important;margin:0 0 8px !important}
.kh-post [style*="#e0fcf0"] [style*="1.1rem"]{font-size:16px !important;line-height:1.5 !important;color:var(--fg-2) !important;margin:0 0 18px !important}
.kh-post a.spark-button-primary-10{display:inline-flex !important;align-items:center;justify-content:center;height:44px;padding:0 18px;border-radius:10px;background:var(--fg);color:#fff !important;text-decoration:none !important;font-size:15px;font-weight:600;line-height:1;white-space:nowrap}
.kh-post a.spark-button-primary-10:hover{opacity:.88}
@media (max-width:760px){.kh-post [style*="#e0fcf0"]{padding:20px !important}.kh-post [style*="#e0fcf0"] [style*="2.5rem"]{font-size:22px !important}}
.kh-post a.spark-button-primary-10{align-self:flex-start;width:auto !important}
.kh-post [style*="#e0fcf0"]{display:flex;flex-direction:column;align-items:flex-start;gap:0}
