/* Kopano Portal theme.
 *
 * Design notes
 *  - Type: the system font stack. No font downloads, which matters on mobile data, and it renders
 *    crisply on the office Windows machines most buyers use. Character comes from weight, size and
 *    tabular figures on every price and quantity.
 *  - Colour: one brand colour (Customizer), an ink for the header and footer, cool paper greys.
 *  - The one distinctive element is the band: a thin sky / white / black / white / sky stripe at the
 *    top of the header, footer, quote documents and the login panel. Change --sky or remove the
 *    .kt-band rules to drop it.
 *  - Quotes are styled as trade documents: ruled lines, a heavy total, nothing decorative.
 */

:root {
	--ink: #10202c;
	--text: #1b2b36;
	--muted: #55656f;
	--rule: #dde4e8;
	--field: #7c8b95;
	--paper: #f5f7f8;
	--surface: #ffffff;
	--brand: #0e5a6b;
	--brand-dark: #0a4352;
	--brand-tint: #dcebef;
	--brand-wash: #f0f6f8;
	--sky: #75aadb;
	--focus: #1a5fd0;
	--ok: #1b6e45;
	--ok-bg: #e5f3eb;
	--warn: #85480a;
	--warn-bg: #fcf0dc;
	--bad: #a3231b;
	--bad-bg: #fbe9e7;
	--radius: 4px;
	--wrap: 1180px;
	--font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) { body { font-size: 1.0625rem; } }

img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -0.015em; margin: 1.6em 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); font-weight: 750; margin-top: 0; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p, ul, ol, dl, table { margin-top: 0; }

a { color: var(--brand); text-underline-offset: 0.18em; }
a:hover { color: var(--brand-dark); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.kt-header :focus-visible, .kt-footer :focus-visible, .kt-auth-aside :focus-visible, .kt-cta-band :focus-visible { outline-color: #fff; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed !important; left: 0.75rem; top: 0.75rem; width: auto; height: auto; margin: 0; clip: auto;
	background: #fff; color: var(--ink); padding: 0.6rem 1rem; z-index: 200; font-weight: 650;
}

.kt-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 700px) { .kt-wrap { padding: 0 1.5rem; } }
.kt-wrap.kt-narrow { max-width: 48rem; }
.kt-main { padding: 2rem 0 4rem; min-height: 55vh; }
body.home .kt-main, body.kt-auth-page .kt-main { padding: 0; min-height: 0; }
.kt-pagetitle { margin-bottom: 1.25rem; }
.kp-prose { max-width: 68ch; }
.kp-lede { font-size: 1.15rem; max-width: 40em; }

/* The band: sky, white, black, white, sky. */
.kt-band {
	height: 8px;
	background: linear-gradient(to bottom, var(--sky) 0 2px, #fff 2px 3px, #000 3px 5px, #fff 5px 6px, var(--sky) 6px 8px);
}
.kt-band-lg { height: 12px; background: linear-gradient(to bottom, var(--sky) 0 3px, #fff 3px 4.5px, #000 4.5px 7.5px, #fff 7.5px 9px, var(--sky) 9px 12px); }

/* ---------------------------------------------------------------- header */

.kt-header { background: var(--ink); color: #fff; position: relative; z-index: 30; }
.kt-bar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.kt-brand { flex: 1 1 auto; }
.kt-brand a { color: #fff; text-decoration: none; }
.kt-brand-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.kt-brand img { display: block; max-height: 42px; width: auto; }

.kt-toggle {
	appearance: none; background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.5);
	border-radius: var(--radius); padding: 0.4rem 0.9rem; font: inherit; font-weight: 650; cursor: pointer;
}
.kt-toggle[aria-expanded="true"] { background: #fff; color: var(--ink); }

.kt-nav { display: none; flex-basis: 100%; flex-direction: column; gap: 1rem; padding: 0.5rem 0 0.75rem; }
.kt-nav.is-open { display: flex; }
.kt-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.kt-menu a, .kt-link { color: #fff; text-decoration: none; font-weight: 600; padding: 0.35rem 0; display: inline-block; }
.kt-menu a:hover, .kt-link:hover { color: #fff; text-decoration: underline; }
.kt-menu .current-menu-item > a, .kt-menu .current_page_item > a { text-decoration: underline; text-underline-offset: 0.3em; }
.kt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
.kt-user { color: #c9d6dd; }

.kt-search { position: relative; display: flex; flex: 1 1 auto; max-width: 36rem; }
.kt-search input {
	flex: 1; min-width: 0; border: 0; border-radius: var(--radius) 0 0 var(--radius); padding: 0.6rem 0.85rem;
	font: inherit; color: var(--ink); background: #fff; min-height: 44px;
}
.kt-search-btn {
	appearance: none; border: 0; border-radius: 0 var(--radius) var(--radius) 0; background: var(--sky); color: var(--ink);
	font: inherit; font-weight: 700; padding: 0 1.1rem; cursor: pointer;
}
.kt-search-btn:hover { background: #8fbbe4; }

.kt-cart { color: #fff; text-decoration: none; font-weight: 650; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0; }
.kt-cart:hover { color: #fff; text-decoration: underline; }
.kp-cart-count {
	min-width: 1.6rem; padding: 0 0.45rem; border-radius: 999px; background: var(--sky); color: var(--ink);
	font-weight: 750; font-size: 0.85rem; line-height: 1.6rem; text-align: center; font-variant-numeric: tabular-nums;
}

.kt-portalnav { background: var(--surface); border-bottom: 1px solid var(--rule); }
.kt-portalnav ul { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; gap: 0.25rem; }
.kt-portalnav a { display: block; padding: 0.8rem 0.9rem; color: var(--text); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.kt-portalnav a:hover { color: var(--brand); background: var(--brand-wash); }
.kt-portalnav .is-current a { color: var(--brand); border-bottom-color: var(--brand); font-weight: 750; }
.kt-portalnav .kt-admin-link { margin-left: auto; }
.kt-portalnav .kt-admin-link a { color: var(--muted); font-weight: 500; }

@media (min-width: 900px) {
	.kt-toggle { display: none; }
	.kt-nav { display: flex; flex: 1 1 auto; flex-basis: auto; flex-direction: row; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 0; }
	.kt-brand { flex: 0 0 auto; }
	.kt-menu { flex-direction: row; gap: 1.5rem; }
	.kt-member .kt-header { position: sticky; top: 0; }
	.admin-bar.kt-member .kt-header { top: 32px; }
	.kt-member .kt-portalnav { position: relative; }
}

/* --------------------------------------------------------------- buttons */

.kp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 44px;
	padding: 0.6rem 1.15rem; border: 2px solid transparent; border-radius: var(--radius);
	font: inherit; font-weight: 650; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
	background: transparent; color: var(--brand);
}
.kp-btn:hover { text-decoration: none; }
.kp-btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.kp-btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.kp-btn-secondary { background: #fff; border-color: var(--brand); color: var(--brand); }
.kp-btn-secondary:hover { background: var(--brand-wash); color: var(--brand-dark); }
.kp-btn-quiet { color: var(--brand); }
.kp-btn-quiet:hover { background: var(--brand-wash); color: var(--brand-dark); }
.kp-btn-sm { min-height: 36px; padding: 0.3rem 0.8rem; font-size: 0.95rem; }
.kp-btn-lg { min-height: 52px; padding: 0.8rem 1.5rem; font-size: 1.05rem; }
.kp-btn-block { display: flex; width: 100%; }
.kp-btn-light { background: #fff; border-color: #fff; color: var(--brand-dark); }
.kp-btn-light:hover { background: var(--brand-tint); color: var(--brand-dark); }
.kp-btn-ghost-light { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.kp-btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.kp-btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.kp-btn.is-armed { background: var(--bad); border-color: var(--bad); color: #fff; }
.kt-header .kp-btn-primary { background: var(--sky); border-color: var(--sky); color: var(--ink); }
.kt-header .kp-btn-primary:hover { background: #8fbbe4; border-color: #8fbbe4; color: var(--ink); }

/* ----------------------------------------------------------------- forms */

.kp-form { max-width: 44rem; }
.kp-form-narrow { max-width: 30rem; }
.kp-field { margin-bottom: 1rem; }
.kp-field > label, .kp-field label.kp-label { display: block; font-weight: 650; margin-bottom: 0.3rem; }
.kp-field input[type="text"], .kp-field input[type="email"], .kp-field input[type="tel"], .kp-field input[type="password"],
.kp-field input[type="search"], .kp-field input[type="number"], .kp-field input[type="date"], .kp-field input[type="file"],
.kp-field select, .kp-field textarea, .kp-inline input, .kp-qty {
	width: 100%; min-height: 44px; padding: 0.55rem 0.75rem; border: 1px solid var(--field); border-radius: var(--radius);
	background: #fff; color: var(--ink); font: inherit;
}
.kp-field textarea { min-height: 6rem; }
.kp-field input:focus, .kp-field select:focus, .kp-field textarea:focus, .kp-inline input:focus, .kp-qty:focus { border-color: var(--brand); outline: 3px solid var(--focus); outline-offset: 0; }
.kp-field [aria-invalid="true"] { border-color: var(--bad); background: #fff8f7; }
.kp-field-error { color: var(--bad); font-weight: 650; font-size: 0.92rem; margin: 0.3rem 0 0; }
.kp-hint { color: var(--muted); font-size: 0.9rem; margin: 0.3rem 0 0; }
.kp-opt { font-weight: 400; color: var(--muted); font-size: 0.85em; margin-left: 0.25rem; }
.kp-check label { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; }
.kp-check input { width: 1.15rem; height: 1.15rem; margin-top: 0.22rem; flex: none; accent-color: var(--brand); }
.kp-fieldset { border: 0; border-top: 1px solid var(--rule); padding: 1rem 0 0; margin: 1.5rem 0 0; min-width: 0; }
.kp-fieldset legend { font-weight: 750; font-size: 1.15rem; color: var(--ink); padding: 0 0.75rem 0 0; }
.kp-grid-2 { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .kp-grid-2 { grid-template-columns: 1fr 1fr; } }
.kp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kp-inline { display: flex; gap: 0.5rem; }
.kp-inline input { flex: 1; }
.kp-form-msg { margin: 0 0 1rem; padding: 0.7rem 0.9rem; border-left: 4px solid var(--brand); background: var(--brand-wash); font-weight: 600; }
.kp-form-msg:empty { display: none; }
.kp-form-msg.is-error { border-color: var(--bad); background: var(--bad-bg); color: var(--bad); }
.kp-form-msg.is-ok { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.kp-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem 1rem; padding: 1rem; background: var(--surface); border: 1px solid var(--rule); margin-bottom: 1rem; max-width: none; }
.kp-filter .kp-field { margin: 0; }
.kp-filter .kp-field-grow { flex: 1 1 16rem; position: relative; }
.kp-filter .kp-check { align-self: center; }

/* -------------------------------------------------- notices, badges, toasts */

.kp-notice { padding: 0.8rem 1rem; border-left: 4px solid var(--brand); background: var(--brand-wash); margin: 0 0 1rem; }
.kp-notice-success { border-color: var(--ok); background: var(--ok-bg); }
.kp-notice-warn { border-color: #c77700; background: var(--warn-bg); }
.kp-notice-error { border-color: var(--bad); background: var(--bad-bg); }

.kp-badge, .kp-stock {
	display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.1rem 0.65rem; border-radius: 999px;
	font-size: 0.85rem; font-weight: 650; line-height: 1.6; background: var(--brand-tint); color: var(--brand-dark); white-space: nowrap;
}
.kp-stock::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.kp-badge-ok, .kp-stock-in { background: var(--ok-bg); color: var(--ok); }
.kp-badge-warn, .kp-stock-low { background: var(--warn-bg); color: var(--warn); }
.kp-badge-bad, .kp-stock-out { background: var(--bad-bg); color: var(--bad); }
.kp-badge-info, .kp-stock-order { background: var(--brand-tint); color: var(--brand-dark); }
.kp-lead { color: var(--muted); font-size: 0.9rem; }

.kp-toasts { position: fixed; right: 1rem; bottom: 1rem; left: 1rem; display: grid; gap: 0.5rem; justify-items: end; z-index: 100; pointer-events: none; }
.kp-toast {
	background: var(--ink); color: #fff; padding: 0.7rem 1rem; border-radius: var(--radius); border-left: 4px solid var(--sky);
	max-width: 24rem; font-weight: 600; box-shadow: 0 6px 20px rgba(16, 32, 44, 0.3); pointer-events: auto; animation: kp-in 0.18s ease-out;
	transition: opacity 0.4s;
}
.kp-toast-ok { border-left-color: #6fd0a0; }
.kp-toast-error { border-left-color: #ff8f85; }
.kp-toast.out { opacity: 0; }
@keyframes kp-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ----------------------------------------------------------------- tables */

.kp-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.kp-table th { text-align: left; font-weight: 700; color: var(--ink); padding: 0.65rem 0.75rem; border-bottom: 2px solid var(--ink); vertical-align: bottom; }
.kp-table td { padding: 0.75rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.kp-table tbody tr:hover td { background: var(--brand-wash); }
.kp-num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kp-table small { color: var(--muted); }
span.kp-p-sku { display: block; color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.kp-p-brand { display: block; color: var(--muted); font-size: 0.85rem; }
.kp-p-name a { font-weight: 650; }
.kp-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.kp-price-por { font-weight: 600; color: var(--muted); }
.kp-break { display: block; color: var(--muted); font-size: 0.82rem; font-weight: 400; }
.kp-add { display: flex; align-items: center; gap: 0.4rem; justify-content: flex-end; }
.kp-qty { width: 5.5rem; text-align: right; font-variant-numeric: tabular-nums; }
.kp-products .kp-add .kp-qty { min-height: 36px; padding: 0.3rem 0.5rem; width: 4.5rem; }
.kp-products .kp-btn { white-space: nowrap; }
.kp-per { display: block; font-size: 0.82rem; font-weight: 400; }
.kp-products .kp-hint { display: block; margin: 0.15rem 0 0; }
.kp-products td.kp-p-name { min-width: 13rem; }
.kp-products .kp-p-name a { text-decoration: none; }
.kp-products .kp-p-name a:hover { text-decoration: underline; }
.kp-more { margin-top: 0.75rem; }

/* Tables become stacked rows on phones. */
@media (max-width: 719px) {
	.kp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
	.kp-table, .kp-table tbody, .kp-table tr, .kp-table td { display: block; width: 100%; }
	.kp-table tr { border: 1px solid var(--rule); margin-bottom: 0.75rem; padding: 0.35rem 0; }
	.kp-table td { display: flex; justify-content: space-between; gap: 0 1rem; border: 0; padding: 0.35rem 0.85rem; text-align: right; }
	.kp-table td::before { content: attr(data-label); font-weight: 650; color: var(--muted); text-align: left; flex: none; }
	.kp-table td:not([data-label])::before { content: none; }
	.kp-table td { flex-wrap: wrap; }
	.kp-table td .kp-break, .kp-table td .kp-per { flex: 0 0 100%; text-align: right; }
	.kp-table td.kp-p-add, .kp-table td.kp-remove { justify-content: flex-end; }
	.kp-table td:first-child { display: block; text-align: left; padding-top: 0.6rem; }
	.kp-table td:first-child::before { content: none; }
	.kp-table tbody tr:hover td { background: transparent; }
}

/* -------------------------------------------------------------- catalogue */

.kp-catalogue { display: grid; gap: 1.5rem 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .kp-catalogue { grid-template-columns: 15rem minmax(0, 1fr); align-items: start; } }
.kp-cat-nav h2 { font-size: 1.05rem; margin: 0 0 0.5rem; }
.kp-cat-nav ul { list-style: none; margin: 0; padding: 0; }
.kp-cat-nav ul ul { margin-left: 0.75rem; border-left: 1px solid var(--rule); }
.kp-cat-nav a { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.35rem 0.6rem; color: var(--text); text-decoration: none; border-left: 3px solid transparent; }
.kp-cat-nav a:hover { background: var(--brand-wash); color: var(--brand-dark); }
.kp-cat-nav .is-current > a { border-left-color: var(--brand); color: var(--brand); font-weight: 700; background: var(--brand-wash); }
.kp-count { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
@media (max-width: 959px) {
	.kp-cat-nav > ul { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.4rem; }
	.kp-cat-nav li { flex: none; }
	.kp-cat-nav ul ul { display: flex; margin: 0; border: 0; }
	.kp-cat-nav a { border: 1px solid var(--rule); border-radius: 999px; background: #fff; white-space: nowrap; }
	.kp-cat-nav .is-current > a { border-color: var(--brand); }
}
.kp-result-count { color: var(--muted); margin-bottom: 0.75rem; }
.kp-empty { padding: 1.5rem; background: var(--surface); border: 1px dashed #9aa8b1; max-width: 40rem; }
.kp-empty p:last-child { margin-bottom: 0; }

.kp-pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0; margin: 1.25rem 0 0; }
.kp-pagination li > a, .kp-pagination li > span { display: block; padding: 0.45rem 0.8rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); text-decoration: none; min-width: 2.4rem; text-align: center; }
.kp-pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }

.kp-suggest {
	position: absolute; left: 0; right: 0; top: 100%; z-index: 60; list-style: none; margin: 0.25rem 0 0; padding: 0;
	background: #fff; color: var(--ink); border: 1px solid var(--rule); box-shadow: 0 8px 24px rgba(16, 32, 44, 0.18);
	max-height: 24rem; overflow-y: auto; text-align: left;
}
.kp-suggest li a { display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; padding: 0.6rem 0.85rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.kp-suggest li a:hover, .kp-suggest li.is-active a { background: var(--brand-wash); }
.kp-suggest .n { font-weight: 650; }
.kp-suggest .s { grid-column: 1; color: var(--muted); font-size: 0.85rem; }
.kp-suggest .p { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.kp-suggest-empty, .kp-suggest-more { padding: 0.65rem 0.85rem; color: var(--muted); }
.kp-suggest-more a { display: block !important; color: var(--brand) !important; font-weight: 650; border: 0 !important; padding: 0 !important; }

/* ---------------------------------------------------------- product page */

.kp-crumbs { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.75rem; }
.kp-product-grid { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .kp-product-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }
.kp-product-media img { display: block; width: 100%; border: 1px solid var(--rule); background: #fff; }
.kp-noimage { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--brand-wash); border: 1px solid var(--rule); color: var(--muted); font-size: 1.5rem; font-weight: 700; letter-spacing: 0.02em; }
.kp-product-info h1 { margin-bottom: 0.25rem; }
.kp-product-info .kp-p-sku { color: var(--muted); }
.kp-buybox { background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--brand); padding: 1.25rem; margin: 1rem 0 1.5rem; }
.kp-buy-price { font-size: 1.9rem; font-weight: 800; color: var(--ink); margin-bottom: 0.5rem; }
.kp-per { font-size: 1rem; font-weight: 400; color: var(--muted); }
.kp-breaks { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1rem; }
.kp-breaks caption { text-align: left; font-weight: 700; padding-bottom: 0.25rem; }
.kp-breaks td { padding: 0.35rem 0; border-bottom: 1px solid var(--rule); }
.kp-buybox .kp-add { justify-content: flex-start; margin: 0.75rem 0; }
.kp-buybox .kp-break { display: none; } /* the price table below already lists the breaks */

/* -------------------------------------------------------------- quote list */

.kp-quote-list .kp-cart-table { margin-bottom: 0.5rem; }
.kp-totals { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 0; max-width: 26rem; margin: 1rem 0 1.25rem auto; }
.kp-totals dt { color: var(--muted); }
.kp-totals dd { margin: 0; padding-left: 1.5rem; text-align: right; font-variant-numeric: tabular-nums; }
.kp-totals .kp-total-row { color: var(--ink); font-size: 1.3rem; font-weight: 800; border-top: 2px solid var(--ink); padding-top: 0.5rem; margin-top: 0.35rem; }
.kp-totals .kp-total-note { grid-column: 1 / -1; font-size: 0.9rem; }
.kp-totals .kp-total-note + dd { display: none; }
.kp-quote-form { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.kp-quote-form h2 { margin-top: 0; }

/* ------------------------------------------------------- quote document */

.kp-doc { position: relative; background: #fff; border: 1px solid var(--rule); padding: 2.25rem 1.25rem 1.5rem; }
.kp-doc::before {
	content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 8px;
	background: linear-gradient(to bottom, var(--sky) 0 2px, #fff 2px 3px, #000 3px 5px, #fff 5px 6px, var(--sky) 6px 8px);
}
@media (min-width: 700px) { .kp-doc { padding: 2.5rem 2rem 2rem; } }
.kp-doc-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.25rem; }
.kp-doc-title { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; }
.kp-status-help { margin: 0.6rem 0 0; color: var(--muted); max-width: 46ch; }
.kp-doc-from { font-size: 0.92rem; color: var(--muted); }
.kp-doc-from strong { color: var(--ink); }
@media (min-width: 700px) { .kp-doc-from { text-align: right; } }
.kp-dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.25rem; margin: 0 0 1.25rem; }
.kp-dl dt { color: var(--muted); }
.kp-dl dd { margin: 0; }
.kp-doc-meta { padding: 1rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.kp-doc .kp-table th { border-bottom: 2px solid #000; }
.kp-doc .kp-table tbody tr:hover td { background: transparent; }
.kp-note { background: var(--brand-wash); border-left: 4px solid var(--brand); padding: 0.75rem 1rem; margin: 1rem 0; }
.kp-terms { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.9rem; }
.kp-terms h3 { font-size: 1rem; margin: 0 0 0.25rem; }
.kp-doc-actions { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.kp-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.kp-disclose { border: 1px solid var(--rule); margin: 0 0 1rem; background: #fff; }
.kp-disclose > summary { padding: 0.8rem 1rem; font-weight: 650; cursor: pointer; color: var(--brand); }
.kp-disclose[open] > summary { border-bottom: 1px solid var(--rule); }
.kp-disclose > form { margin: 1rem; }
.kp-panel { background: #fff; border: 1px solid var(--rule); padding: 1.25rem; margin: 1.25rem 0; }
.kp-panel h3 { margin-top: 0; }
.kp-eft { background: var(--brand-wash); border-left: 4px solid var(--brand); }
.kp-list { padding-left: 1.1rem; }
.kp-list li { margin-bottom: 0.4rem; }

/* ------------------------------------------------- tabs, dashboard, account */

.kp-tabs ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0; margin: 0 0 1.25rem; border-bottom: 1px solid var(--rule); }
.kp-tabs a { display: block; padding: 0.6rem 1rem; text-decoration: none; color: var(--text); border-bottom: 3px solid transparent; margin-bottom: -1px; font-weight: 600; }
.kp-tabs a:hover { color: var(--brand); }
.kp-tabs .is-current a { border-bottom-color: var(--brand); color: var(--brand); font-weight: 750; }

.kp-dash-head h2 { margin: 0; }
.kp-dash-head p { margin: 0.25rem 0 0; color: var(--muted); }
.kp-acct { display: inline-block; margin-left: 0.5rem; padding: 0 0.6rem; background: var(--brand-tint); color: var(--brand-dark); border-radius: 999px; font-size: 0.85rem; font-weight: 650; }
.kp-dash-search { position: relative; margin: 1.5rem 0; max-width: 40rem; }
.kp-dash-search label { display: block; font-weight: 650; margin-bottom: 0.35rem; }
.kp-dash-search .kp-inline { position: relative; }
.kp-dash-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .kp-dash-grid { grid-template-columns: 1fr 1fr; } }
.kp-dash-grid .kp-panel { margin: 0; }
.kp-dash .kp-section { margin-top: 2rem; }
.kp-dash .kp-section h3 { margin-top: 0; }

.kp-account .kp-section { padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.kp-account .kp-section:first-child { border-top: 0; padding-top: 0; }
.kp-account .kp-section h2 { margin-top: 0; font-size: 1.35rem; }
.kp-addr-list { list-style: none; padding: 0; margin: 0 0 1.25rem; max-width: 36rem; }
.kp-addr-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
.kp-badge-bad + .kp-badge { margin-left: 0.4rem; }

.kp-contact { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; }
.kp-contact dt { color: var(--muted); }
.kp-contact dd { margin: 0; }

/* ------------------------------------------------------ login and apply */

.kt-auth { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 70vh; }
.kt-auth-aside { display: none; background: var(--ink); color: #c9d6dd; }
.kt-auth-aside-in { padding: 2.5rem 2rem; position: sticky; top: 4rem; }
.kt-aside-title { color: #fff; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 1.25rem; line-height: 1.2; }
.kt-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.kt-facts strong { display: block; color: #fff; }
.kt-auth-main { padding: 2rem 1rem 3rem; background: var(--surface); }
@media (min-width: 700px) { .kt-auth-main { padding: 3rem 2.5rem 4rem; } }
@media (min-width: 1100px) { .kt-auth-main { padding: 3.5rem clamp(2.5rem, 6vw, 6rem) 4rem; } }
.kt-auth-main > h1 { margin-bottom: 1.25rem; }
.kp-auth-card { max-width: 26rem; }
.kp-auth-links { margin-top: 1.5rem; color: var(--muted); }
.kp-apply { max-width: 44rem; }
.kp-done { max-width: 44rem; padding: 1.5rem; background: var(--ok-bg); border-left: 4px solid var(--ok); }
.kp-done h2 { margin-top: 0; }
.kp-done:focus { outline: none; }
@media (min-width: 900px) {
	.kt-auth { grid-template-columns: minmax(18rem, 26rem) minmax(0, 1fr); }
	.kt-auth-aside { display: block; }
}

/* -------------------------------------------------------------- home page */

.kt-hero { background: var(--surface); border-bottom: 1px solid var(--rule); padding: 2.5rem 0 3.5rem; }
.kt-hero-grid { display: grid; gap: 2.5rem 3.5rem; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 940px) { .kt-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.kt-hero h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem); font-weight: 800; letter-spacing: -0.028em; line-height: 1.06; max-width: 13em; margin-bottom: 1rem; }
.kt-hero-lede { font-size: 1.2rem; max-width: 34em; color: var(--text); }
.kt-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0.75rem; }

.kt-sample { margin: 0; }
.kt-sample-doc { background: #fff; border: 1px solid #c5d0d7; box-shadow: 8px 8px 0 var(--brand-tint); }
.kt-sample-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.25rem 1rem; padding: 1rem 1.25rem 0.5rem; }
.kt-sample-title { font-weight: 800; color: var(--ink); font-size: 1.1rem; }
.kt-sample-valid { color: var(--muted); font-size: 0.9rem; }
.kt-sample-table { width: calc(100% - 2.5rem); margin: 0.5rem 1.25rem 0; border-collapse: collapse; font-size: 0.95rem; }
.kt-sample-table td { padding: 0.55rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.kt-sample-table td.kp-num { padding-left: 0.75rem; }
.kt-sample-totals { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 0; margin: 0; padding: 0.75rem 1.25rem 1.25rem; }
.kt-sample-totals dt { color: var(--muted); }
.kt-sample-totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; padding-left: 1rem; }
.kt-sample-totals .kt-sample-total { color: var(--ink); font-size: 1.4rem; font-weight: 800; border-top: 2px solid #000; padding-top: 0.4rem; margin-top: 0.3rem; }
.kt-sample figcaption { margin-top: 1.5rem; color: var(--muted); font-size: 0.9rem; max-width: 34em; }

.kt-section { padding: 3.25rem 0; }
.kt-section-tint { background: var(--brand-wash); border-top: 1px solid var(--brand-tint); border-bottom: 1px solid var(--brand-tint); }
.kt-section h2 { margin-top: 0; }
.kt-steps { list-style: none; counter-reset: step; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.75rem 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .kt-steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .kt-steps { grid-template-columns: repeat(4, 1fr); } }
.kt-steps li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 0.9rem; }
.kt-steps li::before { content: counter(step); display: block; font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; margin-bottom: 0.5rem; }
.kt-steps h3 { margin: 0 0 0.35rem; }
.kt-steps p { margin: 0; color: var(--text); }
.kt-split { display: grid; gap: 1.5rem 3.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .kt-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }
.kt-cats { list-style: none; margin: 0; padding: 0; columns: 1; column-gap: 2.5rem; }
@media (min-width: 600px) { .kt-cats { columns: 2; } }
.kt-cats li { padding: 0.75rem 0; border-bottom: 1px solid var(--rule); font-weight: 650; break-inside: avoid; }
.kt-terms { display: grid; grid-template-columns: max-content 1fr; margin: 0; }
.kt-terms dt, .kt-terms dd { padding: 0.8rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
.kt-terms dt { font-weight: 700; color: var(--ink); padding-right: 2rem; }
.kt-cta-band { background: var(--brand); color: #fff; padding: 3rem 0; }
.kt-cta-band h2 { color: #fff; margin: 0 0 1rem; }
.kt-cta-band p { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }

.kt-entry { padding: 1rem 0; border-bottom: 1px solid var(--rule); }

/* ----------------------------------------------------------------- footer */

.kt-footer { background: var(--ink); color: #c9d6dd; margin-top: 0; }
.kt-footer a { color: #fff; }
.kt-footer-grid { display: grid; gap: 1.75rem 2.5rem; padding-top: 2.25rem; padding-bottom: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .kt-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.kt-footer-name { color: #fff; font-weight: 800; font-size: 1.2rem; margin: 0 0 0.4rem; }
.kt-footer-head { color: #fff; font-weight: 700; margin: 0 0 0.5rem; }
.kt-footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.kt-footer p { margin: 0; }
.kt-legal { border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 1rem; padding-bottom: 1.25rem; font-size: 0.85rem; }

/* ------------------------------------------------------------------ print */

@media print {
	@page { margin: 14mm; }
	body { background: #fff; color: #000; font-size: 11pt; }
	.kt-header, .kt-footer, .no-print, .kp-toasts, .skip-link, .kt-pagetitle, .screen-reader-text { display: none !important; }
	.kt-main { padding: 0; min-height: 0; }
	.kt-wrap { max-width: none; padding: 0; }
	.kp-doc { border: 0; padding: 1rem 0 0; }
	.kp-doc::before { left: 0; right: 0; top: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.kp-doc-from { text-align: right; color: #000; }
	.kp-status-help, .kp-terms, .kp-dl dt { color: #333; }
	.kp-table tr, .kp-totals { break-inside: avoid; }
	.kp-table td, .kp-table th { padding: 0.4rem 0.5rem; }
	a { color: #000; text-decoration: none; }
	.kp-badge { border: 1px solid #000; background: #fff; color: #000; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
