/* ==========================================================================
   BestKukriKnife v2 — skin for the interactive tools and the kukri database.
   tools.css (v1) supplies layout; this file maps it onto the v2 palette:
   - .bkk-tool sections become forest-green "tool panels" (dark-on-light v1 styles fit there).
   - Kukri database pages are re-skinned light to match the magazine.
   ========================================================================== */

/* ---------- Dark tool panels ---------- */
.bkk-tool {
	--bkk-surface: #1E372C;
	--bkk-surface-2: #263D32;
	--bkk-accent: #E08A55;
	--bkk-accent-2: #E5C991;
	--bkk-crimson: #C66B36;
	--bkk-bronze: #C9A86A;
	--bkk-forest: #3B5B4B;
	--bkk-olive: #3B5B4B;
	--bkk-teal: #6E9C8A;
	--bkk-steel: #A9ADA6;
	--bkk-text: #F5F2EA;
	background: var(--c-forest);
	color: rgba(245,242,234,.9);
	font-family: var(--font-body);
}
section.bkk-tool { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.bkk-tool h2, .bkk-tool h3, .bkk-tool h4, .bkk-tool .bkk-section-head__title { color: #fff; }
.bkk-tool .bkk-section-head__eyebrow { color: var(--c-sand); }
.bkk-tool .bkk-section-head__sub { color: rgba(245,242,234,.78); }
.bkk-tool .bkk-field > span { color: var(--c-sand); }
.bkk-tool .bkk-btn--ghost { --btn-fg: #F5F2EA; --btn-bd: rgba(245,242,234,.4); }
.bkk-tool .bkk-btn--ghost:hover { --btn-bg: var(--c-sand); --btn-bd: var(--c-sand); color: var(--c-forest); }
.bkk-tool .bkk-btn--primary { --btn-bg: var(--c-copper); --btn-bd: var(--c-copper); }
.bkk-tool input, .bkk-tool select { background: #fff; color: var(--c-charcoal); }
.bkk-tool [class*="__num"], .bkk-tool [class*="__counter"], .bkk-tool dd, .bkk-tool output { font-family: var(--font-body) !important; }

/* Quiz */
.bkk-quiz__shell { border-color: rgba(229,201,145,.22) !important; box-shadow: var(--shadow-lg) !important; border-radius: var(--r-lg) !important; }
.bkk-quiz__progress-bar { background: linear-gradient(90deg, var(--c-sand), var(--c-copper-light)) !important; box-shadow: none !important; }
.bkk-quiz__q { font-family: var(--font-display); }
.bkk-quiz__choice { min-height: 52px; cursor: pointer; font-size: 1rem; }
.bkk-quiz__choice:focus-visible { outline: 3px solid var(--c-sand); outline-offset: 2px; }
.bkk-quiz__badge { background: var(--c-copper) !important; }
.bkk-quiz__counter { color: rgba(245,242,234,.7) !important; }
.bkk-quiz__match-summary { color: rgba(245,242,234,.85) !important; }

/* Maintenance log (inside the homepage tools grid) */
.mg-tool--maint .mg-tool__sub { color: rgba(245,242,234,.78); }
.mg-tool--maint .mg-tool__title { color: #fff; }
.mg-tool--maint .bkk-maint__add { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; background: rgba(0,0,0,.18) !important; }
.mg-tool--maint .bkk-maint__add .bkk-btn { min-height: 46px; }
.mg-tool--maint .bkk-maint__list { margin-top: 1rem; min-height: 120px; background: rgba(0,0,0,.18) !important; }
.bkk-maint__empty { color: rgba(245,242,234,.65) !important; }
.bkk-maint__entry { background: rgba(0,0,0,.22) !important; }
.bkk-maint__entry button { background: none; border: 0; color: rgba(245,242,234,.75); font-size: 1.25rem; cursor: pointer; min-width: 36px; min-height: 36px; border-radius: 50%; }
.bkk-maint__entry button:hover { background: rgba(255,255,255,.1); color: #fff; }
@media (max-width: 560px) {
	.bkk-maint__entry { grid-template-columns: 1fr auto !important; }
}

/* Score bars on dark */
.bkk-tool .bkk-score__lbl { color: rgba(245,242,234,.8); }
.bkk-tool .bkk-score__bar i, .bkk-tool .bkk-bar::after { background: linear-gradient(90deg, var(--c-sand), var(--c-copper-light)) !important; box-shadow: none !important; }

/* ---------- Kukri database (light) ---------- */
.bkk-db__head h1 { font-size: var(--fs-h1); }
.bkk-db__head .bkk-section-head__eyebrow { color: var(--c-copper); }
.bkk-db__filters { background: #fff !important; border: 1px solid var(--border) !important; border-radius: var(--r-lg) !important; box-shadow: var(--shadow-sm); top: calc(var(--header-h) + 24px) !important; }
.bkk-db__filter label { color: var(--c-forest) !important; font-weight: 700; }
.bkk-db__filter input, .bkk-db__filter select { background: #fff !important; color: var(--c-charcoal) !important; border: 1.5px solid var(--border-strong) !important; min-height: 44px; }
.bkk-db__check { color: var(--c-charcoal) !important; font-weight: 500 !important; }
.bkk-db__check input { width: 20px; height: 20px; min-height: 0; accent-color: var(--c-forest); }
.bkk-db__card { background: #fff !important; border: 1px solid var(--border) !important; border-radius: var(--r-lg) !important; box-shadow: var(--shadow-sm); }
.bkk-db__card:hover { border-color: var(--c-copper-bright) !important; box-shadow: var(--shadow-md); }
.bkk-db__media { background: var(--c-deep) !important; aspect-ratio: var(--ratio-card) !important; }
.bkk-db__title { font-family: var(--font-display); }
.bkk-db__title a { color: var(--c-forest) !important; text-decoration: none; }
.bkk-db__title a:hover { text-decoration: underline; }
.bkk-db__specs > div { background: var(--c-ivory) !important; }
.bkk-db__specs dt { color: var(--c-meta) !important; }
.bkk-db__specs dd { color: var(--c-forest) !important; font-family: var(--font-body) !important; }
.bkk-db__scores > div { color: var(--c-meta) !important; }
.bkk-bar { background: var(--border) !important; }
.bkk-bar::after, .bkk-score__bar i { background: linear-gradient(90deg, var(--c-forest), var(--c-copper-bright)) !important; box-shadow: none !important; }
.bkk-db__actions .bkk-btn { flex: 1 1 auto; }
.bkk-db__empty { background: #fff !important; border: 1px solid var(--border); }
@media (max-width: 900px) {
	.bkk-db__layout { grid-template-columns: 1fr !important; }
	.bkk-db__filters { position: static !important; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .bkk-db__filters { grid-template-columns: 1fr; } }

/* Kukri single entry */
.bkk-kukri-single .bkk-article__header { padding-block: 1rem; }
.bkk-kukri-single .bkk-article__title { font-size: var(--fs-h1); }
.bkk-article__cat { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--c-copper); }
.bkk-article__verdict { font-size: var(--fs-lg); color: #4A4D47; max-width: 65ch; }
.bkk-kukri-single__art { background: var(--c-deep) !important; border-radius: var(--r-lg) !important; padding: 0 !important; overflow: hidden; }
.bkk-kukri-single__art { background: #1E2129 !important; }
.bkk-kukri-single__art img { width: 100%; height: 100%; object-fit: contain; filter: none !important; }
.bkk-kukri-single__specs { background: #fff !important; border: 1px solid var(--border) !important; border-radius: var(--r-lg) !important; }
.bkk-kukri-single__specs dt { color: var(--c-meta) !important; }
.bkk-kukri-single__specs dd { color: var(--c-forest); font-family: var(--font-body) !important; }
.bkk-score__lbl { color: var(--c-charcoal) !important; }
.bkk-score__bar { background: var(--border) !important; }
.bkk-kukri-single .bkk-article__content { max-width: var(--wrap-narrow); font-size: 1.0625rem; line-height: 1.75; }
@media (max-width: 900px) { .bkk-kukri-single__hero { grid-template-columns: 1fr !important; } }

/* ---------- Compare drawer & modal (database pages) ---------- */
.bkk-compare-drawer { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; background: #fff; border: 1px solid var(--border-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: .5rem; min-width: 220px; transform: translateY(140%); transition: transform .3s ease; }
.bkk-compare-drawer.is-active { transform: none; }
.bkk-compare-drawer__toggle { display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 44px; background: var(--c-forest); color: #fff; border: 0; border-radius: var(--r-md); padding: .5rem .9rem; font-weight: 700; cursor: pointer; }
.bkk-compare-drawer__count { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; border-radius: 50%; background: var(--c-copper-light); color: var(--c-forest); font-size: .85rem; }
.bkk-compare-drawer__body { display: none; padding: .75rem .25rem .25rem; }
.bkk-compare-drawer.is-open .bkk-compare-drawer__body { display: block; }
.bkk-compare-drawer__item { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .35rem .25rem; border-bottom: 1px solid var(--border); font-size: .9rem; }
.bkk-compare-drawer__item button { background: none; border: 0; font-size: 1.2rem; cursor: pointer; min-width: 32px; min-height: 32px; color: var(--c-meta); }
.bkk-compare-drawer__cta { display: flex; gap: .5rem; margin-top: .75rem; }
.bkk-compare-drawer__cta .bkk-btn { flex: 1; }
.bkk-compare-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 1rem; background: rgba(23,44,36,.7); }
.bkk-compare-modal.is-open { display: flex; }
.bkk-compare-modal__inner { position: relative; width: min(960px, 100%); max-height: 90vh; overflow: auto; background: #fff; border-radius: var(--r-lg); padding: 2rem 1.5rem 1.5rem; }
.bkk-compare-modal__close { position: absolute; top: .75rem; right: .75rem; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: #fff; font-size: 1.4rem; cursor: pointer; }
.bkk-compare-modal__table { overflow-x: auto; }
.bkk-compare-modal__table table { width: 100%; border-collapse: collapse; min-width: 480px; }
.bkk-compare-modal__table th, .bkk-compare-modal__table td { padding: .75rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.bkk-compare-modal__table th { background: var(--c-ivory); color: var(--c-forest); width: 120px; }

/* ---------- Homepage FAQ (light) ---------- */
/* Legacy homepage FAQ & newsletter (v1 sections reused) */
.bkk-faq { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); background: var(--bg-alt); }
.bkk-section-head { max-width: 760px; margin: 0 auto 2.25rem; text-align: center; }
.bkk-section-head__eyebrow { display: inline-block; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--c-copper); margin-bottom: .6rem; }
.bkk-section-head__title { margin: 0 0 .4em; }
.bkk-section-head__sub { color: var(--c-meta); font-size: 1.05rem; margin: 0; }
.bkk-faq__list { max-width: 860px; margin: 0 auto; display: grid; gap: .75rem; }
.bkk-faq__item { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); }
.bkk-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; padding: .9rem 1.25rem; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--c-forest); }
.bkk-faq__item summary::-webkit-details-marker { display: none; }
.bkk-faq__plus { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c-ivory); color: var(--c-copper); font-family: var(--font-body); font-weight: 700; transition: transform .2s ease; }
.bkk-faq__item[open] .bkk-faq__plus { transform: rotate(45deg); background: var(--c-forest); color: #fff; }
.bkk-faq__a { padding: 0 1.25rem 1.1rem; color: #4A4D47; }
.bkk-faq__a p:last-child { margin: 0; }

.bkk-faq__item:hover { border-color: var(--border-strong); }
.bkk-faq__item[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.bkk-faq .bkk-section-head__title { color: var(--c-forest); }

.bkk-tool select { min-height: 46px; }

.bkk-db__filter label.bkk-db__check { flex-direction: row !important; align-items: center; gap: .6rem; text-transform: none !important; letter-spacing: 0 !important; font-size: .92rem !important; min-height: 40px; cursor: pointer; }
@media (max-width: 900px) { .bkk-db__filter:has(.bkk-db__check) { grid-column: 1 / -1; } }
