/* Bulltech Knowledge Base - uses the Play With Carbon theme's colours where available. */
.btk {
	--btk-ink: var(--pwc-ink, #151515);
	--btk-gold: var(--pwc-gold, #F2E0A0);
	--btk-red: var(--pwc-red-dark, #B30000);
	--btk-line: var(--pwc-line, #e3e3e1);
	--btk-bg: var(--pwc-bg, #f4f4f3);
	--btk-head: var(--pwc-head, 'Barlow Condensed', 'Arial Narrow', sans-serif);
	max-width: 1180px;
	margin: 0 auto;
	padding: 8px 0 48px;
	color: #1b1b1b;
	line-height: 1.5;
}
.btk *, .btk *::before, .btk *::after { box-sizing: border-box; }
.btk [hidden] { display: none !important; }
.btk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btk-ico { flex: 0 0 auto; }

/* Heading and search */
.btk-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 26px; }
.btk-eyebrow, a.btk-eyebrow { color: var(--btk-red); font-weight: 700; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; }
a.btk-eyebrow:hover { text-decoration: underline; }
.btk-title { margin: 0; font-family: var(--btk-head); font-weight: 700; font-size: 48px; line-height: 1; text-transform: uppercase; color: var(--btk-ink); }
.btk-intro { margin: 0; color: #444; max-width: 680px; font-size: 17px; }
.btk-search { display: flex; align-items: center; gap: 10px; max-width: 620px; margin-top: 10px; padding: 0 14px; border: 2px solid var(--btk-ink); border-radius: 10px; background: #fff; }
.btk-search input[type=search] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 13px 0; font-size: 17px; color: var(--btk-ink); box-shadow: none; }
.btk-search:focus-within { box-shadow: 0 0 0 3px var(--btk-gold); }

/* Side menu + content */
.btk-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; align-items: start; }
.btk-nav { position: sticky; top: 20px; }
.btk-nav ul { list-style: none; margin: 0; padding: 0; }
.btk-nav > ul { display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--btk-line); }
.btk-nav a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--btk-ink); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.3; }
.btk-nav ul ul a { padding: 4px 12px 4px 24px; font-weight: 500; font-size: 14px; color: #555; }
.btk-nav a:hover { color: var(--btk-red); }
.btk-nav a.is-on { border-left-color: var(--btk-ink); background: #fbf5de; }
.btk-count { font-size: 12px; font-weight: 700; color: #666; background: var(--btk-bg); border-radius: 999px; padding: 1px 8px; }
.btk-main { min-width: 0; display: flex; flex-direction: column; gap: 34px; }

/* Tabs (0.4.0, tidier): one row of equal buttons, the open one dark. No side menus. */
.btk-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 6px; margin: 0 0 22px; padding: 6px; border-radius: 12px; background: #fff; border: 1px solid var(--btk-line); }
.btk-tabs a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 8px; border-radius: 8px; color: var(--btk-ink); text-decoration: none; font-family: var(--btk-head); font-weight: 700; font-size: 21px; text-transform: uppercase; line-height: 1.1; text-align: center; }
.btk-tabs a:hover { background: var(--btk-bg); color: var(--btk-ink); }
.btk-tabs a.is-on { background: var(--btk-ink); color: #fff; }
.btk-tabs .btk-count { font-family: var(--pwc-body, sans-serif); }
.btk-tabs a.is-on .btk-count { background: #3a3a3a; color: #fff; }
.btk-panel { display: none; }
.btk-panel.is-on { display: block; }
.btk-panel-label { display: none; }
.btk-panel-intro { margin: 0 0 18px; color: #555; max-width: 760px; }
.btk.is-search .btk-tabs { opacity: 0.45; }
.btk.is-search .btk-panel { display: block; margin-bottom: 30px; }
.btk.is-search .btk-panel-label { display: block; margin: 0 0 8px; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--btk-red); }
.btk.is-search .btk-panel-intro { display: none; }
.btk-card-wrap { position: relative; display: flex; }
.btk-card-wrap > a.btk-card { flex: 1; }
a.btk-card-edit { position: absolute; top: 10px; right: 10px; padding: 2px 8px; border: 1px dashed #aaa; border-radius: 6px; background: #fff; font-size: 12px; font-weight: 600; color: #555; text-decoration: none; }
a.btk-card-edit:hover { border-color: var(--btk-ink); color: var(--btk-ink); }

/* The window over the page (calculators and guides) */
html.btk-noscroll { overflow: hidden; }
.btk-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: flex-start; justify-content: center; padding: 32px 20px; }
.btk-modal-back { position: absolute; inset: 0; background: rgba(15, 15, 15, 0.55); }
.btk-modal-box { position: relative; width: 100%; max-width: 1040px; max-height: calc(100vh - 64px); overflow-y: auto; overscroll-behavior: contain; background: #fff; border-radius: 12px; border-top: 4px solid var(--btk-gold); padding: 26px 30px 30px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); outline: none; }
.btk-modal .btk-modal-x { position: sticky; top: 0; float: right; display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 40px; height: 40px; min-width: 0; min-height: 0; margin: -10px -14px 0 16px; padding: 0 !important; border: 1px solid #cfcfcd; border-radius: 50%; background: #fff; color: var(--btk-ink); font-size: 0; line-height: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); cursor: pointer; z-index: 2; }
.btk-modal .btk-modal-x svg { display: block; flex: 0 0 auto; }
.btk-modal .btk-modal-x:hover, .btk-modal .btk-modal-x:focus-visible { border-color: var(--btk-ink); background: #fff; color: var(--btk-ink); }
.btk-modal .btk-cv-group { margin-top: 0; }
.btk-modal .btk-article { font-size: 17px; line-height: 1.6; max-width: 760px; }
.btk-modal .btk-article h2 { font-family: var(--btk-head); font-size: 24px; text-transform: uppercase; margin: 22px 0 6px; }
.btk-loading { color: #666; }
.btk-modal-done { clear: both; margin: 26px 0 0; padding-top: 16px; border-top: 1px solid var(--btk-line); text-align: right; }
.btk-modal .btk-btn-close { padding: 10px 22px !important; line-height: 1.2; border: 1px solid var(--btk-ink); border-radius: 8px; background: var(--btk-ink); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.btk-btn-close:hover, .btk-btn-close:focus-visible { background: var(--btk-ink); color: var(--btk-gold); }

/* Sections and cards */
.btk-sec { scroll-margin-top: 80px; }
.btk-sub, .btk-docs-group { scroll-margin-top: 80px; margin-top: 18px; }
.btk-sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--btk-ink); padding-bottom: 6px; margin-bottom: 12px; }
.btk-sec-head h2 { margin: 0; font-family: var(--btk-head); font-weight: 700; font-size: 30px; line-height: 1.1; text-transform: uppercase; color: var(--btk-ink); }
.btk-sub h3, .btk-docs-group h3 { margin: 0 0 10px; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--btk-red); }
.btk-sec-intro { margin: -4px 0 14px; color: #555; }
.btk-all { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; color: var(--btk-red); text-decoration: none; }
.btk-all .btk-ico { width: 18px; height: 18px; }
.btk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
a.btk-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 10px; border: 1px solid var(--btk-line); background: #fff; color: var(--btk-ink); text-decoration: none; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04); transition: border-color 0.15s, box-shadow 0.15s; }
a.btk-card:hover, a.btk-card:focus-visible { border-color: var(--btk-ink); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); color: var(--btk-ink); }
.btk-card-kind { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #666; }
.btk-card-kind .btk-ico { width: 16px; height: 16px; }
.btk-card.is-file .btk-card-kind { color: var(--btk-red); }
.btk-card-title { font-size: 18px; font-weight: 700; line-height: 1.25; }
.btk-card-text { font-size: 15px; color: #555; line-height: 1.45; }
.btk-card-icon { display: inline-flex; width: 44px; height: 44px; border-radius: 10px; background: var(--btk-ink); color: var(--btk-gold); align-items: center; justify-content: center; margin-bottom: 4px; }
.btk-nomatch { padding: 20px; border: 1px dashed #bbb; border-radius: 10px; background: #fff; }
.btk-nomatch p { margin: 0 0 12px; }
a.btk-btn-dark { display: inline-block; padding: 9px 14px; border-radius: 8px; background: var(--btk-ink); color: #fff; text-decoration: none; font-weight: 600; }
a.btk-btn-dark:hover { color: var(--btk-gold); }

/* Data sheets */
.btk-docs { list-style: none; margin: 0; padding: 0; border: 1px solid var(--btk-line); border-radius: 10px; background: #fff; overflow: hidden; }
.btk-doc-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; padding: 11px 16px; border-top: 1px solid var(--btk-line); }
.btk-doc-row:first-child { border-top: 0; }
.btk-doc-name { font-weight: 600; color: var(--btk-ink); text-decoration: none; }
.btk-doc-name:hover { color: var(--btk-red); text-decoration: underline; }
.btk-doc-links { display: flex; flex-wrap: wrap; gap: 8px; }
.btk-doc-links a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid #cfcfcd; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--btk-ink); text-decoration: none; background: #fff; }
.btk-doc-links a:hover { border-color: var(--btk-ink); }
.btk-doc-links .btk-ico { width: 16px; height: 16px; color: var(--btk-red); }

a.btk-doc-edit { border-style: dashed; color: #555; }
.btk-admin-note { margin: -6px 0 14px; padding: 8px 12px; border-left: 3px solid var(--btk-gold); background: #fffbea; font-size: 14px; color: #444; }

/* Calculators */
.btk.is-calc .btk-main > :not(.btk-calc-view) { display: none !important; }   /* one open: it takes the place of the list */
.btk-cv-read { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--btk-red); }
.btk-calc-view { background: #fff; border: 1px solid var(--btk-line); border-top: 3px solid var(--btk-gold); border-radius: 10px; padding: 24px 28px 28px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06); }
.btk-back-link { font-weight: 600; color: var(--btk-red); text-decoration: none; }
.btk-back-link:hover { text-decoration: underline; }
.btk-cv-group { margin: 14px 0 0; color: var(--btk-red); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; }
.btk-cv-title { margin: 2px 0 4px; font-family: var(--btk-head); font-weight: 700; font-size: 34px; line-height: 1.05; text-transform: uppercase; color: var(--btk-ink); }
.btk-cv-line { margin: 0 0 20px; color: #555; }
.btk-cv-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.btk-cv-in { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.btk-cv-side { position: sticky; top: 20px; background: var(--btk-bg); border-radius: 10px; padding: 18px 20px; }
.btk-cv-side h3 { margin: 0 0 10px; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--btk-ink); }
.btk-cv-note { margin: 14px 0 0; font-size: 14px; color: #555; }
.btk-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.btk-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.btk-field > label { font-weight: 700; font-size: 15px; color: var(--btk-ink); }
.btk-hint { font-size: 13px; color: #666; }
.btk-field select, .btk-num input { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #bdbdbb; border-radius: 8px; background: #fff; font-size: 16px; color: var(--btk-ink); }
.btk-num { display: flex; align-items: stretch; }
.btk-num input { border-radius: 8px 0 0 8px; }
.btk-unit { display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid #bdbdbb; border-left: 0; border-radius: 0 8px 8px 0; background: var(--btk-bg); font-size: 14px; color: #444; white-space: nowrap; }
.btk-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.btk-seg button { padding: 8px 12px; border: 1px solid #bdbdbb; border-radius: 8px; background: #fff; color: var(--btk-ink); font: inherit; font-size: 15px; font-weight: 600; line-height: 1.25; cursor: pointer; }
.btk-seg button:hover { border-color: var(--btk-ink); background: #fff; color: var(--btk-ink); }
.btk-seg button.is-on { border-color: var(--btk-ink); background: var(--btk-ink); color: #fff; }
.btk-picker { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--btk-line); border-radius: 10px; }
.btk-plink { align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--btk-red); }
.btk-own { padding-top: 4px; }
.btk-res { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 9px 0; border-top: 1px solid #dcdcda; }
.btk-res:first-of-type { border-top: 0; }
.btk-res-label { font-weight: 600; font-size: 15px; }
.btk-res-value { font-weight: 700; font-size: 17px; text-align: right; white-space: nowrap; }
.btk-res-note { grid-column: 1 / -1; font-size: 13px; color: #555; }
.btk-res.is-big .btk-res-value { font-family: var(--btk-head); font-size: 28px; line-height: 1.05; }
.btk-warn { margin: 0 0 8px; padding: 10px 12px; border-radius: 8px; background: #fde8e8; color: #8a0000; font-weight: 600; font-size: 14px; }
.btk-sketch { margin-top: 12px; }
.btk-sketch svg { display: block; width: 100%; height: auto; max-height: 180px; }
.btk-sketch span { display: block; margin-top: 4px; font-size: 13px; color: #555; }

/* On a product's Technical data tab */
a.btk-tdlink { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: var(--pwc-ink, #151515); color: #fff; text-decoration: none; font-weight: 600; }
a.btk-tdlink .btk-ico:first-child { color: var(--pwc-gold, #F2E0A0); }
a.btk-tdlink span { flex: 1; }
a.btk-tdlink:hover { color: var(--pwc-gold, #F2E0A0); }

/* An article's page */
.btk-crumbs { margin: 0 0 14px; font-size: 14px; color: #666; }
.btk-crumbs a { color: var(--pwc-red-dark, #B30000); font-weight: 600; text-decoration: none; }
.btk-files, .btk-more { margin-top: 28px; }
.btk-files h2, .btk-more h2 { font-size: 20px; margin: 0 0 10px; }
.btk-files ul, .btk-more ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.btk-files a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid #cfcfcd; border-radius: 8px; font-weight: 600; color: var(--pwc-ink, #151515); text-decoration: none; background: #fff; }
.btk-files a:hover { border-color: var(--pwc-ink, #151515); }
.btk-files .btk-ico { color: var(--pwc-red-dark, #B30000); }
.btk-back { margin-top: 24px; }

/* Phones and small tablets: the side menu becomes a row of buttons that stays at the top */
@media (max-width: 900px) {
	.btk-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.btk-nav { top: 0; z-index: 20; padding: 8px 0; background: var(--pwc-bg, #f4f4f3); overflow-x: auto; scrollbar-width: none; }
	.btk-nav::-webkit-scrollbar { display: none; }
	.btk-nav > ul { flex-direction: row; gap: 8px; border-left: 0; width: max-content; }
	.btk-nav ul ul { display: none; }
	.btk-nav a { margin: 0; padding: 7px 12px; border: 1px solid #cfcfcd; border-radius: 999px; background: #fff; white-space: nowrap; font-size: 14px; }
	.btk-nav a.is-on { border-color: var(--btk-ink); background: var(--btk-ink); color: #fff; }
	.btk-nav a.is-on .btk-count { background: #444; color: #fff; }
	.btk-cv-body { grid-template-columns: minmax(0, 1fr); }
	.btk-cv-side { position: static; }
}
@media (max-width: 600px) {
	.btk-tabs { gap: 3px; padding: 4px; }
	.btk-tabs a { padding: 9px 2px; font-size: 15px; }
	.btk-tabs .btk-count { display: none; }
	.btk-modal { padding: 0; }
	.btk-modal-box { max-height: 100vh; height: 100%; border-radius: 0; padding: 16px 16px 28px; }
	.btk-modal .btk-modal-x { margin: -4px -4px 0 8px; }
	.btk-title { font-size: 38px; }
	.btk-sec-head h2 { font-size: 26px; }
	.btk-calc-view { padding: 18px 16px 20px; }
	.btk-cv-title { font-size: 28px; }
	.btk-cards { grid-template-columns: minmax(0, 1fr); }
}
