/* Coffeeagent – Kompendium: chapters, glossary, search, calculators, figures, videos, sources. */

.kompendium { --k-ink: #2e2019; --k-muted: #7a6555; --k-accent: #b87333; --k-coffee: #8a5634; --k-crema: #d9a45b;
    --k-green: #6f8a4a; --k-water: #3f7fa8; --k-cherry: #a4262c; --k-paper: #fffaf2; --k-cream: #f5ede1; --k-line: #e3d3bd; }
.k-head-kicker { display: block; font-family: var(--bs-body-font-family); font-size: .78rem; font-weight: 600; letter-spacing: .08em;
    text-transform: uppercase; color: var(--accent, #b87333); margin-bottom: .15rem; }
.k-lead { max-width: 52rem; color: var(--bs-secondary-color); }

/* ------------------------------------------------------------ overview */
.k-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 1.5rem; align-items: center;
    padding: 1.6rem 1.8rem; border-radius: 1.1rem; margin-bottom: 1.5rem;
    background: radial-gradient(ellipse at 90% 0%, rgba(217, 164, 91, .28), transparent 60%), linear-gradient(135deg, #fffaf2, #f1e2cf);
    border: 1px solid var(--k-line); box-shadow: 0 6px 18px -8px rgba(59, 36, 24, .25); }
.k-kicker { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--k-accent); }
.k-hero-title { font-family: var(--heading-font, Georgia, serif); font-size: clamp(1.6rem, 3.6vw, 2.5rem); font-weight: 600; color: #3b2418; margin: .2rem 0 .6rem; }
.k-hero .lead { font-size: 1.05rem; color: var(--k-ink); }
.k-hero-art svg { width: 100%; height: auto; }
.k-hero-stats { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .9rem; font-size: .9rem; }
.k-hero-stats a { color: var(--k-muted); text-decoration: none; }
.k-hero-stats strong { color: var(--k-coffee); font-size: 1.05rem; }
@media (max-width: 767.98px) { .k-hero { grid-template-columns: 1fr; padding: 1.1rem; } .k-hero-art { max-width: 210px; margin: 0 auto; order: -1; } }

.k-shortcuts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: .8rem; margin-bottom: 1.8rem; }
.k-shortcut { display: flex; gap: .8rem; align-items: center; padding: .85rem 1rem; border-radius: .9rem; text-decoration: none; color: inherit;
    background: var(--coffee-paper, #fffaf2); border: 1px solid var(--bs-border-color); box-shadow: 0 1px 2px rgba(59, 36, 24, .06); transition: transform .15s, box-shadow .15s; }
.k-shortcut:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(59, 36, 24, .35); color: inherit; }
.k-shortcut > i { font-size: 1.6rem; color: var(--k-accent); }
.k-shortcut strong { display: block; font-family: var(--heading-font, Georgia, serif); color: #3b2418; }
.k-shortcut span span { font-size: .85rem; color: var(--k-muted); }

.k-part { margin-bottom: 1.8rem; }
.k-part-title { font-family: var(--heading-font, Georgia, serif); font-size: 1.3rem; font-weight: 600; color: #3b2418; margin: 0 0 .8rem;
    display: flex; gap: .6rem; align-items: baseline; border-bottom: 1px solid var(--k-line); padding-bottom: .35rem; }
.k-part-title span { font-family: var(--bs-body-font-family); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--k-accent); }
.k-chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.k-card { position: relative; display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1.1rem 1rem; color: inherit; text-decoration: none;
    overflow: hidden; border-radius: .9rem; background: var(--coffee-paper, #fffaf2); border: 1px solid var(--bs-border-color);
    box-shadow: 0 1px 2px rgba(59, 36, 24, .06), 0 6px 18px -8px rgba(59, 36, 24, .18); transition: transform .15s, box-shadow .15s; }
.k-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(59, 36, 24, .35); color: inherit; }
.k-card-no { position: absolute; right: .8rem; top: -.4rem; font-family: var(--heading-font, Georgia, serif); font-size: 4rem; font-weight: 700;
    color: var(--k-crema); opacity: .35; line-height: 1; }
.k-card-icon { width: 2.4rem; height: 2.4rem; border-radius: .8rem; display: grid; place-items: center; background: #f1e2cf; color: var(--k-coffee); font-size: 1.2rem; }
.k-card-title { font-family: var(--heading-font, Georgia, serif); font-weight: 600; font-size: 1.12rem; color: #3b2418; position: relative; }
.k-card-summary { font-size: .9rem; color: var(--k-muted); }
.k-card-meta { margin-top: auto; padding-top: .3rem; font-size: .72rem; color: var(--k-muted); text-transform: uppercase; letter-spacing: .06em; }

/* ------------------------------------------------------------ search */
.k-search { position: relative; max-width: 40rem; }
.k-search-lg .form-control, .k-search-lg .input-group-text { font-size: 1.05rem; padding-top: .55rem; padding-bottom: .55rem; }
.k-search .input-group-text { background: var(--coffee-paper, #fffaf2); color: var(--k-accent); }
.k-suggest { position: absolute; z-index: 1060; left: 0; right: 0; top: calc(100% + .3rem); background: var(--coffee-paper, #fffaf2);
    border: 1px solid var(--bs-border-color); border-radius: .8rem; box-shadow: 0 16px 40px -14px rgba(59, 36, 24, .45); overflow: hidden; max-height: 70vh; overflow-y: auto; }
.k-suggest-item { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem .8rem; color: inherit; text-decoration: none; border-bottom: 1px dotted var(--bs-border-color); }
.k-suggest-item > i { color: var(--k-accent); margin-top: .2rem; }
.k-suggest-item:hover, .k-suggest-item.is-active { background: rgba(184, 115, 51, .1); color: inherit; }
.k-suggest-kind { display: block; font-size: .72rem; color: var(--k-muted); text-transform: uppercase; letter-spacing: .05em; }
.k-suggest-title { display: block; font-weight: 600; }
.k-suggest-hint { display: block; font-size: .82rem; color: var(--k-muted); }
.k-suggest-all { display: block; width: 100%; border: 0; background: transparent; text-align: left; padding: .55rem .8rem; color: var(--k-coffee); font-weight: 600; }
.k-result-group { margin-top: 1.4rem; }
.k-result-head { font-family: var(--heading-font, Georgia, serif); font-size: 1.1rem; color: #3b2418; display: flex; gap: .5rem; align-items: center; }
.k-result-head .badge { background: #f1e2cf; color: var(--k-coffee); font-weight: 600; }
.k-results { display: grid; gap: .5rem; }
.k-result { display: flex; gap: .8rem; padding: .75rem 1rem; border-radius: .8rem; background: var(--coffee-paper, #fffaf2); border: 1px solid var(--bs-border-color);
    color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.k-result:hover { border-color: var(--k-accent); box-shadow: 0 8px 20px -12px rgba(59, 36, 24, .4); color: inherit; }
.k-result-icon { font-size: 1.2rem; color: var(--k-accent); padding-top: .1rem; }
.k-result-begriff .k-result-icon, .k-result-thema .k-result-icon { color: var(--k-coffee); }
.k-result-context { display: block; font-size: .75rem; color: var(--k-muted); text-transform: uppercase; letter-spacing: .04em; }
.k-result-title { display: block; font-weight: 600; font-size: 1.02rem; }
.k-result-snippet { display: block; font-size: .9rem; color: var(--bs-body-color); }
.k-result-snippet mark, .k-suggest mark { background: rgba(217, 164, 91, .45); padding: 0 .1em; border-radius: .2em; }

/* ------------------------------------------------------------ chapter */
.k-sticky { position: sticky; top: 1rem; max-height: calc(100dvh - 2rem); overflow-y: auto; padding-right: .3rem; }
.k-nav { font-size: .9rem; }
.k-nav-home { font-family: var(--heading-font, Georgia, serif); font-weight: 600; color: var(--k-coffee); text-decoration: none; font-size: 1.05rem; }
.k-nav-tools { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem .6rem; margin: .4rem 0 .8rem; font-size: .84rem; }
.k-nav-tools a { color: var(--k-muted); text-decoration: none; }
.k-nav-tools a:hover { color: var(--k-coffee); }
.k-nav-list { list-style: none; padding: 0; margin: 0; }
.k-nav-list > li > a { display: flex; gap: .5rem; padding: .28rem .45rem; border-radius: .5rem; color: inherit; text-decoration: none; }
.k-nav-list > li > a > span { min-width: 1.4rem; color: var(--k-muted); font-variant-numeric: tabular-nums; }
.k-nav-list > li > a:hover { background: rgba(184, 115, 51, .08); }
.k-nav-list > li.current > a { background: #f1e2cf; font-weight: 600; }
.k-toc ul { list-style: none; padding-left: 1.9rem; margin: .2rem 0 .5rem; font-size: .82rem; }
.k-toc ul ul { padding-left: .8rem; }
.k-toc a, .k-toc-mobile a { color: var(--k-muted); text-decoration: none; display: block; padding: .1rem 0; }
.k-toc a:hover { color: var(--k-coffee); }
.k-toc-mobile { background: var(--coffee-paper, #fffaf2); border: 1px solid var(--bs-border-color); border-radius: .8rem; padding: .6rem .9rem; }
.k-toc-mobile summary { cursor: pointer; font-weight: 600; }
.k-toc-mobile ul { padding-left: 1rem; margin: .4rem 0 0; }

.k-content { font-size: 1.04rem; line-height: 1.68; }
.k-content > p, .k-content > ul, .k-content > ol, .k-content > dl, .k-content > .admonition, .k-content > blockquote { max-width: 48rem; }
.k-content > p:first-child::first-letter { float: left; font-family: var(--heading-font, Georgia, serif); font-size: 3.3rem; line-height: .9;
    padding: .25rem .5rem 0 0; color: var(--k-coffee); font-weight: 700; }
.k-content h2 { font-family: var(--heading-font, Georgia, serif); font-size: 1.6rem; margin-top: 2.4rem; padding-top: 1rem; border-top: 1px solid var(--k-line); color: #3b2418; }
.k-content h3 { font-family: var(--heading-font, Georgia, serif); font-size: 1.22rem; margin-top: 1.7rem; color: var(--k-coffee); }
.k-content h4 { font-size: 1.02rem; font-weight: 700; margin-top: 1.3rem; color: #3b2418; }
.k-content h2, .k-content h3 { scroll-margin-top: 1rem; }
.k-content h2 .anchor-link, .k-content h3 .anchor-link { opacity: 0; margin-left: .3rem; text-decoration: none; color: var(--k-muted); font-size: .8em; }
.k-content h2:hover .anchor-link, .k-content h3:hover .anchor-link { opacity: 1; }
.k-content h2:target, .k-content h3:target { animation: k-flash 2s ease-out; }
@keyframes k-flash { 0% { background: rgba(217, 164, 91, .45); } 100% { background: transparent; } }
.k-content blockquote { border-left: 4px solid var(--k-crema); padding: .4rem 1rem; color: var(--k-muted); font-style: italic; }
.k-content dt { font-weight: 700; color: #3b2418; }
.k-content dd { margin-left: 1rem; margin-bottom: .6rem; }
.k-table { font-size: .92rem; margin: 1rem 0 1.4rem; }
.k-table thead th { background: #f1e2cf; color: #3b2418; font-weight: 600; border-bottom: 2px solid var(--k-crema); text-wrap: balance; }
.k-table td { vertical-align: top; }
.k-app::before { content: "\F4A4  "; font-family: "bootstrap-icons"; font-size: .85em; }
.admonition { border-radius: .8rem; padding: .8rem 1rem .5rem; margin: 1.2rem 0; border-left: 4px solid var(--k-accent); background: #f6ecdf; font-size: .97rem; }
.admonition-title { font-weight: 700; margin-bottom: .3rem; font-family: var(--heading-font, Georgia, serif); }
.admonition p:last-child { margin-bottom: .3rem; }
.admonition.tip { border-left-color: var(--k-green); background: #eef2e4; }
.admonition.warning { border-left-color: var(--k-cherry); background: #f7e3df; }
.admonition.info, .admonition.note { border-left-color: var(--k-water); background: #e7eff4; }
.admonition.quote { border-left-color: var(--k-crema); font-style: italic; }
.admonition.tip .admonition-title::before { content: "\F46B  "; font-family: "bootstrap-icons"; font-weight: normal; }
.admonition.note .admonition-title::before, .admonition.info .admonition-title::before { content: "\F431  "; font-family: "bootstrap-icons"; font-weight: normal; }
.admonition.warning .admonition-title::before { content: "\F33B  "; font-family: "bootstrap-icons"; font-weight: normal; }
.admonition.quote .admonition-title::before { content: "\F6B0  "; font-family: "bootstrap-icons"; font-weight: normal; }
.k-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.k-pager a { padding: .8rem 1rem; text-decoration: none; color: inherit; }
.k-pager small { display: block; color: var(--k-muted); }
.k-pager span { font-family: var(--heading-font, Georgia, serif); font-weight: 600; color: #3b2418; }

/* citations and sources */
.k-cite { font-size: .72em; margin-left: .05em; }
.k-cite a { text-decoration: none; color: var(--k-accent); font-weight: 600; }
.k-sources { padding-left: 1.6rem; margin: 0; }
.k-sources li { margin-bottom: .7rem; }
.k-sources li:target { background: rgba(217, 164, 91, .25); border-radius: .4rem; }
.k-source-kind { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--k-muted); margin-right: .4rem; }
.k-source-author { font-weight: 600; }
.k-source-title { font-style: italic; }
.k-source-note { font-size: .88rem; color: var(--k-muted); }

/* link cards for web pages, blog articles and studies */
.link-card { display: flex; gap: .9rem; align-items: flex-start; max-width: 46rem; margin: 1rem 0 1.3rem; padding: .85rem 1rem; border-radius: .9rem;
    background: var(--coffee-paper, #fffaf2); border: 1px solid var(--bs-border-color); border-left: 4px solid var(--k-accent); color: inherit; text-decoration: none;
    transition: box-shadow .15s, transform .15s; }
.link-card:hover { box-shadow: 0 10px 24px -12px rgba(59, 36, 24, .45); transform: translateY(-1px); color: inherit; }
.link-card-icon { width: 2.3rem; height: 2.3rem; flex: none; border-radius: .7rem; display: grid; place-items: center; background: #f1e2cf; color: var(--k-coffee); font-size: 1.1rem; }
.link-card-body { flex: 1; min-width: 0; line-height: 1.4; }
.link-card-kind { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--k-muted); }
.link-card-title { display: block; font-weight: 600; }
.link-card-meta { display: block; font-size: .85rem; color: var(--k-muted); }
.link-card-note { display: block; font-size: .9rem; margin-top: .2rem; }
.link-card-go { color: var(--k-muted); }

/* figures */
.k-fig { margin: 1.6rem 0 2rem; padding: 1rem 1rem .8rem; border-radius: 1rem; background: #fffdf8; border: 1px solid var(--k-line); }
.k-fig .k-svg svg { display: block; width: 100%; height: auto; max-height: 560px; }
.k-fig figcaption { font-size: .88rem; color: var(--k-muted); margin-top: .6rem; text-align: center; }
.k-fig-no { font-weight: 700; color: var(--k-coffee); margin-right: .25rem; }
/* drawing classes of the SVG figures (static/assets/img/kompendium) */
.k-svg { --f-ink: #2e2019; --f-muted: #7a6555; }
.k-line { fill: none; stroke: var(--f-ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.k-thin { stroke-width: 1.4; } .k-bold { stroke-width: 3.5; } .k-dash { stroke-dasharray: 6 6; }
.k-s-accent { stroke: #b87333; } .k-s-coffee { stroke: #8a5634; } .k-s-green { stroke: #6f8a4a; } .k-s-water { stroke: #3f7fa8; }
.k-s-cherry { stroke: #a4262c; } .k-s-crema { stroke: #d9a45b; } .k-s-muted { stroke: #b3a08d; }
.k-f-paper { fill: #fffaf2; } .k-f-cream { fill: #f1e2cf; } .k-f-crema { fill: #d9a45b; } .k-f-caramel { fill: #b87333; }
.k-f-coffee { fill: #8a5634; } .k-f-espresso { fill: #3b2418; } .k-f-green { fill: #6f8a4a; } .k-f-leaf { fill: #8fa868; }
.k-f-water { fill: #9cc3dc; } .k-f-cherry { fill: #a4262c; } .k-f-red { fill: #c8473f; } .k-f-yellow { fill: #e8c25a; }
.k-f-steel { fill: #c9c4bd; } .k-f-milk { fill: #fbf6ec; } .k-f-ink { fill: var(--f-ink); } .k-f-none { fill: none; } .k-f-muted { fill: #b3a08d; }
.k-text, .k-small, .k-label, .k-num { font-family: "Source Sans 3", system-ui, sans-serif; fill: var(--f-ink); stroke: none; }
.k-text { font-size: 15px; } .k-small { font-size: 12.5px; fill: var(--f-muted); } .k-num { font-size: 14px; font-weight: 700; fill: #b87333; }
.k-label { font-family: "Fraunces Variable", Georgia, serif; font-size: 17px; font-weight: 600; }
.k-mid { text-anchor: middle; } .k-end { text-anchor: end; } .k-on-dark { fill: #fff4e4; }

/* ------------------------------------------------------------ glossary */
.k-glossary-tools { position: sticky; top: .5rem; z-index: 5; }
.k-letters { display: flex; flex-wrap: wrap; gap: .15rem; margin-top: .5rem; }
.k-letters a { min-width: 1.8rem; text-align: center; padding: .1rem .35rem; border-radius: .4rem; text-decoration: none; color: var(--k-coffee); font-weight: 600; }
.k-letters a:hover { background: #f1e2cf; }
.k-glossary h2.k-letter { font-size: 1.7rem; color: var(--k-accent); border-top: 0; margin-top: 1.6rem; padding-top: 0; }
.k-glossary h3 { font-size: 1.12rem; margin-top: 1.2rem; margin-bottom: .2rem; }
.k-glossary h3:target + p { background: rgba(217, 164, 91, .2); border-radius: .4rem; }
.k-glossary p { max-width: 50rem; }
.k-glossary em:first-child { color: var(--k-muted); }
.k-gl, .gl-term { color: inherit; text-decoration: underline dotted; text-decoration-color: var(--k-accent, #b87333); text-underline-offset: .2em; cursor: help; }
.k-gl:hover, .gl-term:hover { text-decoration-style: solid; color: inherit; }
.k-glossary .k-gl { cursor: pointer; }
.gl-popover { --bs-popover-max-width: min(25rem, 92vw); --bs-popover-header-bg: #f1e2cf; --bs-popover-bg: #fffaf2; max-width: min(25rem, 92vw); font-size: .92rem; }
.gl-popover .popover-header { font-family: var(--heading-font, Georgia, serif); color: #3b2418; }
.gl-popover .gl-also { margin-top: .4rem; font-size: .82rem; color: #7a6555; font-style: italic; }
.gl-popover .gl-more { display: inline-block; margin-top: .4rem; font-weight: 600; }

/* ------------------------------------------------------------ calculators index, videos and sources pages */
.k-jump-groups .card-body, .k-calc-index .card-body { display: flex; flex-wrap: wrap; gap: .4rem .9rem; }
.k-jump-groups a, .k-calc-index a { text-decoration: none; color: var(--k-coffee); font-weight: 600; font-size: .92rem; }
.k-jump-groups .badge { background: #f1e2cf; color: var(--k-coffee); }
.k-channel-list { columns: 2 14rem; list-style: none; padding: 0; margin: 0; }
.k-channel-list a { text-decoration: none; }
.k-channel-list i { color: #c4302b; }

/* ------------------------------------------------------------ videos */
.video-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: .9rem; margin: 1rem 0 1.4rem; }
.video-cards.compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: .5rem; margin: .5rem 0; }
.video-card { display: flex; flex-direction: column; border-radius: .8rem; overflow: hidden; background: var(--coffee-paper, #fffaf2);
    border: 1px solid var(--bs-border-color); color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.video-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(59, 36, 24, .45); color: inherit; }
.video-cards.compact .video-card { flex-direction: row; align-items: center; }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #3b2418; }
.video-cards.compact .video-thumb { flex: 0 0 7.5rem; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play { position: absolute; inset: 0; margin: auto; width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center;
    background: rgba(164, 38, 44, .9); color: #fff; font-size: 1.6rem; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); transition: transform .15s; }
.video-cards.compact .video-play { width: 2rem; height: 2rem; font-size: 1.1rem; }
.video-card:hover .video-play { transform: scale(1.1); }
.video-body { display: flex; flex-direction: column; gap: .15rem; padding: .6rem .75rem .7rem; min-width: 0; }
.video-title { font-weight: 600; font-size: .93rem; line-height: 1.3; }
.video-cards.compact .video-title { font-size: .84rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-channel { font-size: .78rem; color: var(--k-muted, #7a6555); }
.video-channel i { color: #c4302b; }
.video-summary { font-size: .85rem; line-height: 1.4; color: var(--bs-body-color); margin-top: .2rem; }
.video-cards.compact .video-card { align-items: flex-start; }
.video-cards.compact .video-thumb { margin: .55rem 0 .55rem .55rem; border-radius: .45rem; overflow: hidden; }
.video-cards.compact .video-summary { font-size: .8rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
#video-modal .video-modal-summary { padding: .75rem 1rem 0; font-size: .92rem; color: #e8d6bd; }
#video-modal .video-modal-summary:empty { display: none; }
.k-more-videos h2 { font-size: 1.3rem; }
#video-modal .modal-content { background: #1b1310; color: #f3e3cc; }
#video-modal .modal-header, #video-modal .modal-footer { border-color: rgba(255, 255, 255, .12); }
#video-modal .btn-close { filter: invert(1); }
#video-modal iframe { border: 0; }

/* ------------------------------------------------------------ calculators */
.k-calc { margin: 1.6rem 0 2rem; border-radius: 1rem; background: #fffdf8; border: 1px solid var(--k-line, #e3d3bd);
    box-shadow: 0 1px 2px rgba(59, 36, 24, .06), 0 8px 22px -12px rgba(59, 36, 24, .25); scroll-margin-top: 1rem; }
.k-calc-head { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border-bottom: 1px dashed var(--bs-border-color);
    background: linear-gradient(90deg, rgba(217, 164, 91, .18), transparent 70%); border-radius: 1rem 1rem 0 0; }
.k-calc-icon { width: 2.4rem; height: 2.4rem; border-radius: .8rem; display: grid; place-items: center; background: #b87333; color: #fff8ee; font-size: 1.2rem; flex: none; }
.k-calc-kicker { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #b87333; font-weight: 600; }
.k-calc-title { display: block; font-family: var(--heading-font, Georgia, serif); font-weight: 600; font-size: 1.12rem; color: #3b2418; }
.k-calc-body { padding: 1rem 1.1rem 1.1rem; }
.k-calc-videos { padding: 0 1.1rem .8rem; }
.k-sentence { font-size: 1.04rem; line-height: 2.25; max-width: 50rem; }
.k-sentence p { margin-bottom: .2rem; }
.k-in { display: inline-flex; align-items: baseline; gap: .15rem; white-space: nowrap; }
.k-in input, .k-in select, .k-sentence select { font: inherit; font-weight: 600; color: #8a5634; border: 0; border-bottom: 2px dotted #b87333;
    background: rgba(217, 164, 91, .12); border-radius: .35rem .35rem 0 0; padding: 0 .25rem; text-align: center; line-height: 1.5; }
.k-in input { width: 4.6em; }
.k-in input.w-s { width: 3.4em; } .k-in input.w-l { width: 6em; }
.k-in input:focus, .k-sentence select:focus { outline: 2px solid rgba(184, 115, 51, .5); outline-offset: 1px; background: rgba(217, 164, 91, .22); }
.k-in input::-webkit-inner-spin-button { opacity: .35; }
.k-unit { color: var(--k-muted, #7a6555); font-size: .92em; }
.k-opt { display: inline-flex; gap: .35rem; align-items: center; font-size: .95rem; color: var(--k-muted, #7a6555); margin-right: .9rem; }
.k-presets { display: flex; flex-wrap: wrap; gap: .35rem; margin: .2rem 0 .6rem; }
.k-presets button { border: 1px solid var(--bs-border-color); background: var(--coffee-paper, #fffaf2); border-radius: 999px; padding: .1rem .7rem; font-size: .85rem; color: #6b4027; }
.k-presets button:hover { border-color: #b87333; background: rgba(217, 164, 91, .15); }
.k-calc-out { display: block; margin-top: .8rem; }
.k-result-line { font-size: 1.08rem; margin: .4rem 0; max-width: 50rem; }
.k-out { color: #a4262c; font-size: 1.12em; white-space: nowrap; }
.k-big { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr)); gap: .6rem; margin: .7rem 0; }
.k-big > div { border-radius: .8rem; padding: .55rem .8rem; background: #f6ecdf; border: 1px solid var(--k-line, #e3d3bd); }
.k-big span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--k-muted, #7a6555); }
.k-big strong { font-size: 1.35rem; color: #3b2418; font-variant-numeric: tabular-nums; }
.k-big small { display: block; font-size: .8rem; color: var(--k-muted, #7a6555); }
.k-verdict { display: flex; gap: .6rem; align-items: flex-start; border-radius: .7rem; padding: .5rem .8rem; margin: .45rem 0; font-size: .95rem; max-width: 50rem; }
.k-verdict i { font-size: 1.15rem; margin-top: .05rem; }
.k-verdict span span { display: block; font-size: .88rem; }
.k-verdict-great { background: #e8efdc; color: #3d5222; } .k-verdict-good { background: #eef2e4; color: #4f6a33; }
.k-verdict-fair { background: #fbf0d9; color: #7a5310; } .k-verdict-poor { background: #f7e3df; color: #7a1d22; } .k-verdict-info { background: #e7eff4; color: #24506c; }
.k-chart { width: 100%; min-height: 260px; margin-top: .6rem; }
.k-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: .8rem; }
.k-why { margin-top: .8rem; font-size: .93rem; max-width: 50rem; }
.k-why summary { cursor: pointer; color: #6b4027; font-weight: 600; }
.k-why > :not(summary) { margin-top: .5rem; }
.k-note { font-size: .86rem; color: var(--k-muted, #7a6555); margin-top: .6rem; max-width: 50rem; }

@media print {
    .k-nav, .k-toc-mobile, .k-search, .k-calc-reset, .video-play, #video-modal { display: none !important; }
    .k-content a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; word-break: break-all; }
    .k-fig, .k-calc, table, tr { break-inside: avoid; }
}

/* calculator tabs */
.k-tabs { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .6rem; border-bottom: 2px solid rgba(184, 115, 51, .3); }
.k-tabs button { border: 0; background: transparent; padding: .45rem .8rem; font-weight: 600; color: #6b4027; border-radius: .5rem .5rem 0 0; margin-bottom: -2px; border-bottom: 2px solid transparent; }
.k-tabs button:hover { background: rgba(217, 164, 91, .15); }
.k-tabs button.active { color: #a4262c; border-bottom-color: #a4262c; background: rgba(217, 164, 91, .18); }
.k-small-sentence { font-size: .92rem; line-height: 1.9; color: #6b4027; }
[data-pane][hidden], [data-amode][hidden], [data-cmode][hidden] { display: none !important; }
.k-sentence select { max-width: 100%; text-overflow: ellipsis; }
