/* /company/roadmap ([bytekeel_roadmap], inc/roadmap.php).
 *
 * The idea: a "certainty rail". The line that joins the four stages is solid
 * through Shipped and Next, dashed through Later and dotted through
 * Exploring, so how sure a plan is reads at a glance, without relying on
 * colour alone. The same rail runs through every product track.
 */
.max-w-6xl { max-width: 72rem; }
.bk-rd {
	--rd-ink: #16111F;
	--rd-soft: #4C4361;
	--rd-subtle: #6B6480;
	--rd-line: #E9E3F6;
	--rd-wash: #FAF8FE;
	--rd-shipped: #1E7A52;
	--rd-shipped-bg: #E4F3EA;
	--rd-next: #6D28D9;
	--rd-next-bg: #F1EBFF;
	--rd-later: #9A5208;
	--rd-later-bg: #FBF0DF;
	--rd-exploring: #5F5A73;
	--rd-exploring-bg: #EFEEF4;
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
	color: var(--rd-ink);
}
.bk-rd p { margin: 0; }
.bk-rd-ico { width: 18px; height: 18px; flex: none; }

/* ---------------------------------------------------------------- Rail. */
.bk-rd-rail {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}
.bk-rd-rail__stop { position: relative; padding-right: 1.25rem; }
.bk-rd-rail__node {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 2px solid currentColor;
	background: #fff;
}
.bk-rd-rail__node .bk-rd-ico { width: 22px; height: 22px; }
/* The segment from this stop to the next one. */
.bk-rd-rail__stop::after {
	content: "";
	position: absolute;
	top: 21px;
	left: 52px;
	right: 8px;
	border-top: 3px solid currentColor;
	transform-origin: left center;
}
.bk-rd-rail__stop:last-child::after { right: 0; opacity: .35; }
.bk-rd-rail__stop--shipped { color: var(--rd-shipped); }
.bk-rd-rail__stop--next { color: var(--rd-next); }
.bk-rd-rail__stop--later { color: var(--rd-later); }
.bk-rd-rail__stop--later::after { border-top-style: dashed; }
.bk-rd-rail__stop--exploring { color: var(--rd-exploring); }
.bk-rd-rail__stop--exploring::after { border-top-style: dotted; }
.bk-rd-rail__stop--shipped .bk-rd-rail__node { background: var(--rd-shipped); color: #fff; border-color: var(--rd-shipped); }
.bk-rd-rail__name {
	margin-top: .85rem !important;
	font-family: var(--font-manrope), Helvetica Neue, Arial, sans-serif;
	font-size: 1.125rem;
	font-weight: 800;
	line-height: 1.25;
	color: currentColor;
}
.bk-rd-rail__count { margin-top: .15rem !important; font-size: 14px; font-weight: 600; color: var(--rd-ink); font-variant-numeric: tabular-nums; }
.bk-rd-rail__text { margin-top: .35rem !important; max-width: 24ch; font-size: 14px; line-height: 1.5; color: var(--rd-soft); }

@media (prefers-reduced-motion: no-preference) {
	.bk-rd-rail__stop::after { animation: bk-rd-draw .7s cubic-bezier(.2, .7, .2, 1) both; }
	.bk-rd-rail__stop--next::after { animation-delay: .15s; }
	.bk-rd-rail__stop--later::after { animation-delay: .3s; }
	.bk-rd-rail__stop--exploring::after { animation-delay: .45s; }
	@keyframes bk-rd-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ------------------------------------------------------- Product switch. */
.bk-rd-switch { position: relative; }
.bk-rd-tabs {
	display: flex;
	gap: .5rem;
	overflow-x: auto;
	padding: .35rem;
	margin: 0 -.35rem;
	scrollbar-width: none;
}
.bk-rd-tab {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: .55rem;
	min-height: 46px;
	padding: .45rem 1rem .45rem .55rem;
	border: 1px solid var(--rd-line);
	border-radius: 999px;
	background: #fff;
	color: var(--rd-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.bk-rd-tab img { width: 26px; height: 26px; border-radius: 7px; }
.bk-rd-tab__all { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; background: var(--rd-next-bg); color: var(--rd-next); }
.bk-rd-tab:hover { border-color: #C9B8F0; }
.bk-rd-tab[aria-selected="true"] { background: var(--rd-ink); border-color: var(--rd-ink); color: #fff; }
.bk-rd-tab[aria-selected="true"] .bk-rd-tab__all { background: rgba(255, 255, 255, .14); color: #fff; }
.bk-rd-tab:focus-visible { outline: 3px solid #A78BFA; outline-offset: 2px; }

/* -------------------------------------------------------- Product track. */
.bk-rd-panel { display: flex; flex-direction: column; gap: 1.5rem; outline: none; }
.bk-rd-product {
	padding: 1.75rem;
	border: 1px solid var(--rd-line);
	border-radius: 22px;
	background: #fff;
	scroll-margin-top: 140px;
}
.bk-rd-product[hidden] { display: none; }
.bk-rd-product__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .9rem 1rem;
	padding-bottom: 1.5rem;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid var(--rd-line);
}
.bk-rd-product__icon { width: 48px; height: 48px; border-radius: 13px; flex: none; }
.bk-rd-product__id { flex: 1 1 260px; min-width: 0; }
.bk-rd-product__name {
	margin: 0;
	font-family: var(--font-manrope), Helvetica Neue, Arial, sans-serif;
	font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.01em;
}
.bk-rd-product__sum { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; margin-top: .35rem !important; font-size: 14px; color: var(--rd-subtle); }
.bk-rd-product__links { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: 14px; font-weight: 600; }

.bk-rd-ver {
	display: inline-flex;
	align-items: center;
	padding: .1rem .55rem;
	border-radius: 999px;
	background: var(--rd-shipped-bg);
	color: var(--rd-shipped);
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1.5;
}

/* Lanes: four columns joined by the rail on wide screens. */
.bk-rd-lanes {
	display: grid;
	grid-template-columns: 1.1fr 1fr 1fr 1fr;
	gap: 1.25rem;
}
.bk-rd-lane { position: relative; min-width: 0; }
.bk-rd-lane__head {
	position: relative;
	display: flex;
	align-items: center;
	gap: .55rem;
	margin: 0 0 1rem;
	font-family: var(--font-manrope), Helvetica Neue, Arial, sans-serif;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.3;
}
.bk-rd-lane__node {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	flex: none;
	border-radius: 50%;
	border: 2px solid currentColor;
	background: #fff;
}
.bk-rd-lane__node .bk-rd-ico { width: 16px; height: 16px; }
.bk-rd-lane__head::after {
	content: "";
	flex: 1 1 auto;
	min-width: 12px;
	margin-right: -1.25rem;
	border-top: 2px solid currentColor;
	opacity: .55;
}
.bk-rd-lane--exploring .bk-rd-lane__head::after { margin-right: 0; }
.bk-rd-lane--shipped .bk-rd-lane__head { color: var(--rd-shipped); }
.bk-rd-lane--shipped .bk-rd-lane__node { background: var(--rd-shipped); border-color: var(--rd-shipped); color: #fff; }
.bk-rd-lane--next .bk-rd-lane__head { color: var(--rd-next); }
.bk-rd-lane--later .bk-rd-lane__head { color: var(--rd-later); }
.bk-rd-lane--later .bk-rd-lane__head::after { border-top-style: dashed; }
.bk-rd-lane--exploring .bk-rd-lane__head { color: var(--rd-exploring); }
.bk-rd-lane--exploring .bk-rd-lane__head::after { border-top-style: dotted; }
.bk-rd-pill__note { font-size: 12px; font-weight: 600; color: var(--rd-subtle); white-space: nowrap; }

/* Shipped: a small vertical release timeline. */
.bk-rd-releases { position: relative; margin: 0; padding: 0 0 0 1.25rem; list-style: none; }
.bk-rd-releases::before { content: ""; position: absolute; top: .55rem; bottom: .55rem; left: 5px; border-left: 2px solid var(--rd-shipped-bg); }
.bk-rd-release { position: relative; padding-bottom: 1rem; }
.bk-rd-release:last-child { padding-bottom: 0; }
.bk-rd-release::before {
	content: "";
	position: absolute;
	top: .4rem;
	left: calc(-1.25rem + 1px);
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid var(--rd-shipped);
	background: #fff;
}
.bk-rd-release.is-latest::before { background: var(--rd-shipped); }
.bk-rd-release__top { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .55rem; font-size: 13px; color: var(--rd-subtle); }
.bk-rd-release__text {
	margin-top: .3rem !important;
	font-size: 14px;
	line-height: 1.5;
	color: var(--rd-soft);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Planned work: short cards, details behind a disclosure. */
.bk-rd-cards { display: flex; flex-direction: column; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.bk-rd-card {
	padding: .95rem 1rem;
	border: 1px solid var(--rd-line);
	border-radius: 14px;
	background: var(--rd-wash);
}
.bk-rd-card--next { background: #fff; border-color: #DCCFF7; }
.bk-rd-card--later { border-style: dashed; border-color: #E7CFA6; background: #fff; }
.bk-rd-card--exploring { border-style: dotted; border-width: 2px; border-color: #CFCBDB; background: #fff; }
.bk-rd-card__title { font-family: var(--font-manrope), Helvetica Neue, Arial, sans-serif; font-size: 15px; font-weight: 700; line-height: 1.35; }
.bk-rd-card__text { margin-top: .35rem !important; font-size: 14px; line-height: 1.55; color: var(--rd-soft); }
.bk-rd-empty { font-size: 14px; color: var(--rd-subtle); }

.bk-rd-spec { margin-top: .6rem; }
.bk-rd-spec summary {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	min-height: 32px;
	list-style: none;
	font-size: 13px;
	font-weight: 700;
	color: var(--rd-next);
	cursor: pointer;
}
.bk-rd-spec summary::-webkit-details-marker { display: none; }
.bk-rd-spec summary:focus-visible { outline: 3px solid #A78BFA; outline-offset: 2px; border-radius: 6px; }
.bk-rd-spec__chev { width: 16px; height: 16px; transform: rotate(-90deg); }
.bk-rd-spec[open] .bk-rd-spec__chev { transform: none; }
@media (prefers-reduced-motion: no-preference) {
	.bk-rd-spec__chev { transition: transform .18s ease; }
}
.bk-rd-spec__body { padding-top: .5rem; font-size: 13px; line-height: 1.55; color: var(--rd-soft); }
.bk-rd-spec__today strong { display: block; color: var(--rd-ink); font-size: 13px; }
.bk-rd-spec dl { margin: .65rem 0 0; display: flex; flex-direction: column; gap: .6rem; }
.bk-rd-spec dt { font-weight: 700; color: var(--rd-ink); }
.bk-rd-spec dd { margin: .15rem 0 0; }
.bk-rd-spec ul { margin: 0; padding-left: 1.1rem; list-style: disc; }
.bk-rd-spec li + li { margin-top: .2rem; }

/* ---------------------------------------------- Latest releases, renewals. */
.bk-rd-bottom { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.5rem; }
.bk-rd-sub {
	margin: 0;
	font-family: var(--font-manrope), Helvetica Neue, Arial, sans-serif;
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1.25;
}
.bk-rd-latest, .bk-rd-renew { padding: 1.5rem; border: 1px solid var(--rd-line); border-radius: 22px; background: #fff; }
.bk-rd-renew { background: var(--rd-wash); }
.bk-rd-latest__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1rem; }
.bk-rd-latest__head .link { font-size: 14px; font-weight: 600; }
.bk-rd-latest__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin: 0; padding: 0; list-style: none; }
.bk-rd-latest__item {
	display: grid;
	grid-template-columns: 32px 1fr;
	grid-template-rows: auto auto;
	column-gap: .7rem;
	row-gap: .15rem;
	align-items: center;
	padding: .75rem .85rem;
	border: 1px solid var(--rd-line);
	border-radius: 14px;
	color: var(--rd-ink);
	text-decoration: none;
	transition: border-color .15s ease;
}
.bk-rd-latest__item:hover { border-color: #C9B8F0; }
.bk-rd-latest__item:focus-visible { outline: 3px solid #A78BFA; outline-offset: 2px; }
.bk-rd-latest__item img { grid-row: span 2; width: 32px; height: 32px; border-radius: 9px; }
.bk-rd-latest__name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.bk-rd-latest__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; font-size: 12px; color: var(--rd-subtle); }
.bk-rd-renew__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.1rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.bk-rd-renew__list li { display: flex; align-items: flex-start; gap: .6rem; font-size: 14px; line-height: 1.5; color: var(--rd-soft); }
.bk-rd-renew__list .bk-rd-ico { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--rd-next-bg); color: var(--rd-next); }
.bk-rd-renew__note { margin-top: 1.1rem !important; font-size: 13px; line-height: 1.55; color: var(--rd-subtle); }

/* ------------------------------------------------------------ Responsive. */
@media (max-width: 1023px) {
	.bk-rd-lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1.25rem; }
	.bk-rd-lane__head::after { margin-right: 0; }
	.bk-rd-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
	.bk-rd { gap: 2rem; }
	/* The rail turns vertical: nodes on the left, the line runs down. */
	.bk-rd-rail { grid-template-columns: 1fr; gap: 0; }
	.bk-rd-rail__stop { display: grid; grid-template-columns: 44px 1fr; column-gap: .9rem; padding: 0 0 1.1rem; }
	.bk-rd-rail__node { grid-row: span 3; }
	.bk-rd-rail__name { margin-top: .5rem !important; }
	.bk-rd-rail__text { max-width: none; }
	.bk-rd-rail__stop::after { top: 46px; bottom: 2px; left: 21px; right: auto; border-top: 0; border-left: 3px solid currentColor; transform-origin: top center; }
	.bk-rd-rail__stop--later::after { border-left-style: dashed; }
	.bk-rd-rail__stop--exploring::after { border-left-style: dotted; }
	.bk-rd-rail__stop:last-child { padding-bottom: 0; }
	.bk-rd-rail__stop:last-child::after { display: none; }
	@media (prefers-reduced-motion: no-preference) {
		@keyframes bk-rd-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
	}

	.bk-rd-product { padding: 1.15rem; border-radius: 18px; }
	.bk-rd-product__head { padding-bottom: 1.1rem; margin-bottom: 1.1rem; }
	.bk-rd-product__links { width: 100%; }
	/* Lanes stack along one vertical spine. */
	.bk-rd-lanes { grid-template-columns: 1fr; gap: 0; }
	.bk-rd-lane { padding: 0 0 1.4rem 2.6rem; }
	.bk-rd-lane:last-child { padding-bottom: 0; }
	.bk-rd-lane::before { content: ""; position: absolute; top: 30px; bottom: 0; left: 14px; border-left: 2px solid currentColor; opacity: .5; }
	.bk-rd-lane:last-child::before { display: none; }
	.bk-rd-lane--shipped { color: var(--rd-shipped); }
	.bk-rd-lane--next { color: var(--rd-next); }
	.bk-rd-lane--later { color: var(--rd-later); }
	.bk-rd-lane--later::before { border-left-style: dashed; }
	.bk-rd-lane--exploring { color: var(--rd-exploring); }
	.bk-rd-lane > :not(.bk-rd-lane__head) { color: var(--rd-ink); }
	.bk-rd-lane__head { margin-left: -2.6rem; }
	.bk-rd-lane__head::after { display: none; }
	.bk-rd-latest, .bk-rd-renew { padding: 1.15rem; border-radius: 18px; }
	.bk-rd-latest__list, .bk-rd-renew__list { grid-template-columns: 1fr; }
}
@media (min-width: 1024px) { .bk-rd-tabs { flex-wrap: wrap; overflow-x: visible; } }
