/* Free tools (v2): builds on home.css (.kh tokens and components). Print-friendly fee sheet. */

.kt-page { background: #fff; }

/* ---------------------------------------------------------------- breadcrumb */
.kt-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; color: #5f6b7a; font-size: 13.5px; }
.kh .kt-crumbs a { color: #3d4a48 !important; text-decoration: none; }
.kh .kt-crumbs a:hover { color: var(--kh-ink) !important; text-decoration: underline; }
.kt-crumbs--light { justify-content: center; color: rgba(255, 255, 255, .6); }
.kh .kt-crumbs--light a { color: rgba(255, 255, 255, .8) !important; }
.kh .kt-crumbs--light a:hover { color: #fff !important; }

/* ---------------------------------------------------------------- tool hero: light, quick answer card */
.kt-hero { padding: calc(108px + clamp(24px, 3.5vw, 48px)) 0 clamp(36px, 4.5vw, 56px); background: radial-gradient(60% 90% at 100% 0%, color-mix(in srgb, var(--kh-accent) 26%, transparent), transparent 60%), var(--kh-soft); }
.public-site .kisoma-public-navbar + .kh > .kt-hero:first-child,
.public-site .kisoma-public-navbar + .kh > .kt-index-hero:first-child { margin-top: -84px; }
.kt-hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: clamp(28px, 5vw, 64px); }
:root .public-site .kh .kt-hero h1 { margin: 12px 0 0; color: var(--kh-ink) !important; font-size: clamp(30px, 3.6vw, 46px) !important; line-height: 1.1 !important; letter-spacing: -0.025em !important; text-wrap: balance; }
.kt-hero__lead { max-width: 620px; margin: 16px 0 0; color: #3d4a48; font-size: 16.5px; line-height: 1.6; }
.kt-hero__facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.kt-hero__facts li { padding: 5px 12px; border: 1px solid var(--kh-line); border-radius: 999px; background: #fff; color: #3d4a48; font-size: 13px; font-weight: 500; }
.kt-hero__facts li:first-child { border-color: transparent; background: var(--kh-accent); color: var(--kh-accent-ink); font-weight: 600; }

.kt-quick { padding: 24px; border-radius: var(--kh-radius-lg); background: var(--kh-night-2); color: rgba(255, 255, 255, .82); box-shadow: 0 30px 60px -36px rgba(4, 10, 7, .6); }
.kt-quick__label { margin: 0; color: var(--kh-accent); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.kt-quick__answer { margin: 10px 0 0; font-size: 16px; line-height: 1.6; }
.kt-quick__answer strong { color: #fff; font-weight: 600; }
.kh .kt-quick__go { display: inline-block; margin-top: 16px; color: #fff !important; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- tools index hero (dark, cards inside) */
.kh .kt-index-hero { padding-bottom: clamp(48px, 6vw, 80px); }
.kt-index-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(36px, 4.5vw, 56px); text-align: left; }
.kt-index-card { padding-bottom: 24px !important; }
.kt-index-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px; background: var(--kh-night-2); color: var(--kh-accent); font-size: 18px; }
:root .public-site .kh .kt-index-card .kh-product__title { font-size: 20px !important; }

/* ---------------------------------------------------------------- the tool */
.kt-toolwrap { padding: clamp(32px, 4vw, 56px) 0; }
.kt-tool { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: start; }
.kt-panel { padding: 24px; border: 1px solid var(--kh-line); border-radius: var(--kh-radius); background: #fff; }
.kt-panel--input { position: sticky; top: 110px; }
:root .public-site .kh .kt-panel h2 { margin: 0 0 14px; color: var(--kh-ink) !important; font-size: 18px !important; line-height: 1.3 !important; }
.kt-field { margin-bottom: 16px; }
.kt-field label { display: block; margin-bottom: 6px; color: var(--kh-ink); font-size: 14px; font-weight: 600; }
.kt-field small { display: block; margin-top: 6px; color: #5f6b7a; font-size: 12.5px; }
.kt-input, .kt-page .kt-input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #cfd8d4; border-radius: var(--kh-btn-radius); background: #fff; color: var(--kh-ink); font-size: 17px; font-weight: 500; }
.kt-input:focus { outline: none; border-color: var(--kh-night-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--kh-accent) 45%, transparent); }
.kt-input--sm, .kt-page .kt-input--sm { min-height: 38px; padding: 6px 10px; font-size: 14px; }
.kt-big { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; padding: 18px 20px; border-radius: 12px; background: var(--kh-night-2); }
.kt-big span { color: var(--kh-accent); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.kt-big strong { color: #fff; font-size: clamp(28px, 3.2vw, 36px); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.kt-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.kt-table th { padding: 8px 6px; border-bottom: 1px solid var(--kh-line); color: #5f6b7a; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.kt-table td { padding: 9px 6px; border-bottom: 1px solid #eef2f0; color: var(--kh-ink); font-size: 14.5px; }
.kt-table .num { text-align: right; white-space: nowrap; }
.kt-table tr.kt-total td { border-top: 1px solid #cfd8d4; border-bottom: 0; font-weight: 600; }
.kt-table tr.kt-sub td { color: #5f6b7a; font-size: 13px; }
.kt-muted { color: #5f6b7a; font-size: 13px; line-height: 1.55; }
.kt-level { display: inline-flex; min-width: 46px; justify-content: center; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.kt-level--EE { background: var(--kh-accent); color: var(--kh-accent-ink); }
.kt-level--ME { background: #c9f2e3; color: #04412b; }
.kt-level--AE { background: #fdecc8; color: #7a4a05; }
.kt-level--BE { background: #fde0dd; color: #8a1c13; }
.kt-row-remove { border: 0; background: none; color: #9aa5a2; font-size: 18px; line-height: 1; cursor: pointer; }
.kt-row-remove:hover { color: #c0392b; }
.kt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.kt-tablewrap { overflow-x: auto; border: 1px solid var(--kh-line); border-radius: 12px; }
.kt-tablewrap--plain { border: 0; border-radius: 0; }

/* Fee structure sheet */
.kt-sheet { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--kh-line); border-radius: var(--kh-radius); background: #fff; }
.kt-sheet__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 3px solid var(--kh-night-2); }
:root .public-site .kh .kt-sheet__head h2 { margin: 0; color: var(--kh-ink) !important; font-size: 22px !important; }
.kt-sheet__head p { margin: 2px 0 0; color: #3d4a48; }
.kt-sheet input { border: 1px dashed transparent; background: transparent; font: inherit; color: inherit; }
.kt-sheet input:hover, .kt-sheet input:focus { border-color: #cfd8d4; outline: none; background: var(--kh-soft); }
.kt-pay { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--kh-soft); color: #3d4a48; font-size: 14px; }

/* ---------------------------------------------------------------- guide (detailed content) */
.kt-guide { border-top: 1px solid var(--kh-line); }
.kt-guide__inner { max-width: 880px; }
.kt-guide__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.kt-guide__grid ~ .kt-guide__reviewed, .kt-guide__inner:has(.kt-guide__grid) { max-width: none; }
:root .public-site .kh .kt-guide h2 { margin: 12px 0 0; color: var(--kh-ink) !important; font-size: clamp(24px, 2.6vw, 34px) !important; line-height: 1.2 !important; text-wrap: balance; }
:root .public-site .kh .kt-article h3 { margin: 36px 0 12px; color: var(--kh-ink) !important; font-size: 20px !important; }
.kt-guide p { color: #3d4a48; font-size: 16px; line-height: 1.75; }
.kt-guide__grid p { margin: 14px 0 0; }
.kt-article__lead { margin: 14px 0 0; font-size: 17.5px !important; color: var(--kh-ink) !important; }
.kt-article__checks { margin-top: 0; }
.kt-article__checks li { font-size: 15.5px; }

.kt-rates { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.kt-rates th, .kt-rates td { padding: 12px 16px; border-bottom: 1px solid var(--kh-line); text-align: left; vertical-align: top; color: var(--kh-ink); }
.kt-rates thead th { background: var(--kh-soft); color: #5f6b7a; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.kt-rates tbody th { font-weight: 600; }
.kt-rates tbody tr:last-child > * { border-bottom: 0; }
.kt-rates--num td, .kt-rates--num thead th:not(:first-child) { text-align: right; white-space: nowrap; }

.kt-callout { display: flex; gap: 14px; margin-top: 32px; padding: 18px 20px; border-radius: 12px; background: color-mix(in srgb, var(--kh-accent) 22%, #fff); }
.kt-callout i { margin-top: 4px; color: var(--kh-night-2); font-size: 18px; }
.kt-callout p { margin: 0; color: var(--kh-ink); font-size: 15px; line-height: 1.6; }
.kh .kt-callout a { color: var(--kh-night-2) !important; font-weight: 600; }
.kt-guide__reviewed { margin-top: 28px !important; color: #5f6b7a !important; font-size: 13.5px !important; }

/* ---------------------------------------------------------------- questions */
.kt-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; cursor: pointer; }
.kt-faq__item summary::-webkit-details-marker { display: none; }
.kt-faq__item summary::after { content: "+"; flex: 0 0 auto; color: var(--kh-ink); font-size: 20px; line-height: 1; transition: transform .18s ease; }
.kt-faq__item[open] summary::after { transform: rotate(45deg); }
.kt-faq__item .kh-faq__a { padding: 0 20px 18px !important; }

.kt-more__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 991.98px) {
    .kt-hero__grid, .kt-tool, .kt-guide__grid { grid-template-columns: minmax(0, 1fr); }
    .kt-panel--input { position: static; }
    .kt-index-cards, .kt-more__grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
}

@media (max-width: 575.98px) {
    .public-site .kisoma-public-navbar + .kh > .kt-hero:first-child,
    .public-site .kisoma-public-navbar + .kh > .kt-index-hero:first-child { margin-top: -72px; }
    .kt-hero { padding-top: calc(96px + 16px); }
    .kt-rates th, .kt-rates td { padding: 10px 12px; font-size: 14px; }
}

/* ---------------------------------------------------------------- print: only the fee sheet */
@media print {
    body * { visibility: hidden; }
    .kt-sheet, .kt-sheet * { visibility: visible; }
    .kt-sheet { position: absolute; inset: 0 auto auto 0; width: 100%; border: 0; padding: 0; }
    .kt-noprint, .kt-row-remove { display: none !important; }
    .kt-sheet input { border: 0 !important; background: none !important; }
}
