/* =========================================================================
   netex · engines/lab-index.css · bible S11 · Strategy Lab index components
   The «16 hidden frames» strip, the parts catalogue, sector chips, the drafting table (47° band +
   mechanism sketch + glyph gesture), idea cards with drawn overlays, the diagnosis, the campaign ledger.
   Enqueued before the markup (no CLS); the engine only injects it when missing.
   ========================================================================= */
@layer reset, tokens, base, components, layout, pages, utilities;

@layer pages {

/* =========================================================================
   The «16 hidden frames» strip: 16 slivers on a 47° skew, static, widen on hover/focus.
   ========================================================================= */
.mk-slivers { --h: clamp(150px, 15vw, 220px); --run: calc(var(--h) * .9325); position: relative; margin-top: var(--s-8); padding-inline: calc(var(--run) / 2); }
.mk-slivers__list { display: flex; height: var(--h); margin: 0; padding: 0; list-style: none; transform: skewX(-43deg); gap: 3px; }
.mk-sliver { position: relative; flex: 1 1 0; min-width: 0; transition: flex-grow var(--dur-ink) var(--ease-ink); }
.mk-sliver__link { position: absolute; inset: 0; display: block; overflow: hidden; background: var(--ink-2); color: var(--paper); text-decoration: none; outline-offset: 2px; }
.mk-sliver__img { position: absolute; inset: 0 calc(var(--run) / -2); max-width: none; transform: skewX(43deg); }
.mk-sliver__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) brightness(.78); transition: filter var(--dur-ui) var(--ease-mech); }
.mk-sliver__name {
	position: absolute;
	left: 50%;
	bottom: var(--s-3);
	transform: translateX(-50%) skewX(43deg);
	display: inline-flex;
	align-items: center;
	gap: var(--s-2);
	padding: 4px 8px;
	background: var(--ink);
	color: var(--paper);
	font: 500 .6875rem/1.25 var(--f-mono);
	letter-spacing: .04em;
	white-space: nowrap;
	opacity: 0;
	transition: opacity var(--dur-ui) var(--ease-mech);
	pointer-events: none;
}
.mk-sliver__glyph { display: inline-flex; width: 16px; height: 16px; color: var(--cyan); }
.mk-sliver__glyph svg { width: 16px; height: 16px; }
.mk-sliver:is(:hover, :focus-within) { flex-grow: 4; }
.mk-sliver:is(:hover, :focus-within) .mk-sliver__name { opacity: 1; }
.mk-sliver:is(:hover, :focus-within) .mk-sliver__img img { filter: none; }
.mk-slivers .nx-ailabel { left: calc(var(--run) / 2 + 8px); bottom: -30px; }
@media (max-width: 767px) {
	.mk-slivers { --h: 120px; }
	.mk-slivers__list { flex-wrap: wrap; height: auto; row-gap: 6px; }
	.mk-sliver { flex: 0 0 calc((100% - 21px) / 8); height: var(--h); }
	.mk-sliver:is(:hover, :focus-within) { flex-grow: 0; }
	/* Too narrow to show the name: it stays the link's accessible name (visually hidden, never display:none). */
	.mk-sliver__name { left: 0; bottom: 0; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); transform: none; white-space: nowrap; }
}

/* =========================================================================
   Parts catalogue (replaces the periodic table): ruled typographic rows per family.
   ========================================================================= */
.mk-cat { container-type: inline-size; }
.mk-cat__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); margin-bottom: var(--s-5); min-height: 44px; }
.mk-cat__hint { font: 500 .6875rem/1.5 var(--f-mono); letter-spacing: .03em; color: var(--fg-2); }
.mk-cat__status { font: 600 .8125rem/1.4 var(--f-mono); color: var(--fg); }
.mk-cat__status:empty { display: none; }
.mk-cat__head { display: none; }
.mk-cat__family { border-top: var(--bw-2) solid var(--fg); }
.mk-cat__family + .mk-cat__family { margin-top: var(--s-7); }
.mk-cat__fam { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-4); max-width: none; padding: var(--s-3) 0; font: 600 .75rem/1.3 var(--f-mono); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--fg); }
.mk-cat__famline { font: italic 400 1rem/1.4 var(--f-serif); letter-spacing: 0; text-transform: none; color: var(--fg-2); }
.mk-cat__rows { margin: 0; padding: 0; list-style: none; }
.mk-part {
	display: grid;
	grid-template-columns: 4.25rem minmax(0, 1fr);
	grid-template-areas: "sym name" "sym psy" "sym more" "sym sig" "sym fits" "sym use";
	gap: var(--s-1) var(--s-4);
	padding: var(--s-4) 0;
	border-top: var(--bw) solid var(--rule);
	transition: background-color var(--dur-ui) var(--ease-mech), color var(--dur-ui) var(--ease-mech);
}
.mk-part__sym {
	grid-area: sym;
	align-self: start;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	min-height: 44px;
	padding: 0 6px;
	border: var(--bw-2) solid var(--fg);
	font: 600 1.0625rem/1 var(--f-mono);
	color: var(--fg);
	clip-path: var(--clip-ui);
	cursor: pointer;
	transition: background-color var(--dur-ui) var(--ease-mech), color var(--dur-ui) var(--ease-mech);
}
.mk-part__sym[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
@media (hover: hover) { .mk-part__sym:hover { background: var(--bg-2); } .mk-part__sym[aria-pressed="true"]:hover { background: var(--fg); } }
.mk-part__name { grid-area: name; font: var(--w-h3) var(--t-h4)/1.25 var(--f-sans); }
.mk-part__psy { grid-area: psy; font-size: var(--t-small); line-height: 1.5; max-width: 60ch; }
.mk-part__proof { display: block; margin-top: var(--s-2); font: 400 .75rem/1.5 var(--f-mono); color: var(--fg-2); }
.mk-part__sig { grid-area: sig; font: 400 .8125rem/1.45 var(--f-mono); color: var(--fg); }
.mk-part__fits { grid-area: fits; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.mk-part__fits .mk-sym { min-width: 2.2em; font-size: .6875rem; color: var(--fg-2); border-color: var(--fg-3); }
.mk-part__use { grid-area: use; font-size: var(--t-small); line-height: 1.45; }
.mk-part__n { font: 600 1.25rem/1 var(--f-mono); margin-right: var(--s-2); }
.mk-part__links a { color: var(--link); }
.mk-part__none { color: var(--fg-2); font-style: italic; font-family: var(--f-serif); }
.mk-part__k { display: inline-block; margin-right: var(--s-2); font: 500 .625rem/1.3 var(--f-mono); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--fg-2); }
.mk-part__proof .mk-part__k { margin-right: var(--s-1); }
.mk-part.is-on { background: var(--bg-2); }
.mk-part.is-dim .mk-part__name, .mk-part.is-dim .mk-part__psy, .mk-part.is-dim .mk-part__sig { color: var(--fg-2); }
.mk-cat__more { margin-top: var(--s-6); }
/* Narrow catalogue: each part shows its name and psychology; «Scenarios using it: n» opens the rest. */
.mk-part__more { grid-area: more; justify-self: start; display: inline-flex; flex-direction: row-reverse; align-items: center; gap: var(--s-2); min-height: 40px; padding: 0; background: none; border: 0; color: var(--fg); font: 500 .6875rem/1.35 var(--f-mono); letter-spacing: .02em; text-align: left; cursor: pointer; }
.mk-part__more[hidden] { display: none; }
.mk-part__more .nx-faq__sign { position: relative; flex: none; width: 14px; height: 14px; }
.mk-part__more[aria-expanded="true"] .nx-faq__sign::after { display: none; }
@container (max-width: 999px) {
	.mk-cat.is-collapsible .mk-part:not(.is-open) :is(.mk-part__proof, .mk-part__sig, .mk-part__fits, .mk-part__use) { display: none; }
}
@container (min-width: 1000px) {
	.mk-part__more { display: none; }
	.mk-cat__head, .mk-part {
		grid-template-columns: 4.5rem minmax(9rem, 1fr) minmax(0, 2.3fr) minmax(0, 1.1fr) 7.5rem minmax(0, 1.4fr);
		grid-template-areas: "sym name psy sig fits use";
		column-gap: var(--s-5);
		align-items: start;
	}
	.mk-cat__head { display: grid; padding-bottom: var(--s-2); font: 500 .625rem/1.3 var(--f-mono); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--fg-2); }
	.mk-part__name { padding-top: .55em; }
	.mk-part__psy, .mk-part__sig, .mk-part__use, .mk-part__fits { padding-top: .7em; }
	.mk-part__sig > .mk-part__k, .mk-part__fits > .mk-part__k, .mk-part__use > .mk-part__k { display: none; }
	.mk-part__n { display: block; margin-bottom: var(--s-1); }
}

/* =========================================================================
   Sector chips, grouped in eight families (typeset, not icon tiles)
   ========================================================================= */
.mk-sectors { display: grid; gap: var(--s-6); }
.mk-sectors__top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.mk-sectors__count { font: 600 .8125rem/1.4 var(--f-mono); color: var(--fg); }
.mk-sectors__count:empty { display: none; }
/* Columns wide enough for the longest sector name on one line (a chip never breaks over two lines). */
.mk-sectors__fams { display: grid; gap: var(--s-5) var(--gutter); grid-template-columns: repeat(auto-fill, minmax(min(100%, 18.5rem), 1fr)); }
.mk-sectors__famname { margin-bottom: var(--s-2); padding-bottom: var(--s-2); border-bottom: var(--bw) solid var(--rule); font: 500 .6875rem/1.3 var(--f-mono); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--fg-2); }
.mk-sectors__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-sectors .nx-chip--filter { min-height: 36px; max-width: 100%; white-space: nowrap; text-transform: none; letter-spacing: 0; font: 500 .8125rem/1.2 var(--f-sans); }
@media (max-width: 400px) { .mk-sectors .nx-chip--filter { white-space: normal; text-align: left; } }
.mk-sectors__near { margin: 0; max-width: 60ch; font: 400 var(--t-small)/1.5 var(--f-serif); font-style: italic; color: var(--fg-2); }
.mk-draft__privacy { color: var(--sig); }

/* =========================================================================
   Drafting table: 7/5, 5/7, then a 12-column feature every fifth entry.
   ========================================================================= */
.mk-drafting { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-9) var(--gutter); margin-top: var(--s-8); }
.mk-drafting__empty { font-family: var(--f-serif); font-style: italic; font-size: var(--t-lead); max-width: 46ch; }
.mk-drafting__legend { margin-top: var(--s-8); font: 500 .6875rem/1.6 var(--f-mono); letter-spacing: .02em; color: var(--fg-2); max-width: 90ch; }
.mk-draft { position: relative; display: grid; gap: var(--s-4); align-content: start; }
.mk-draft[hidden] { display: none; }
.mk-draft__media { position: relative; overflow: hidden; clip-path: var(--clip-sheet); background: var(--bg-2); }
.mk-draft__media .nx-media { aspect-ratio: var(--ratio, 3 / 2); }
.mk-draft__media .nx-ailabel { z-index: 3; }
.mk-draft__veil {
	--run: calc(93.25% * var(--ar-inv, .667));
	position: absolute;
	inset: 0;
	z-index: 2;
	display: grid;
	place-items: center;
	background: rgb(8 9 14 / .82);
	color: var(--paper);
	--sig: var(--cyan); --leak: var(--molten);
	clip-path: polygon(0 0, 0 0, calc(-1 * var(--run)) 100%, calc(-1 * var(--run)) 100%);
	transition: clip-path var(--dur-ink) var(--ease-cut);
	pointer-events: none;
}
/* Centred on the crop, 78 % of its height (absolute: a percentage height inside the grid veil resolved
   against the sketch's own size, so landscape crops showed it oversized and cut off). */
.mk-draft__veil .mk-sketch { position: absolute; left: 50%; top: 50%; width: auto; height: 78%; max-width: 86%; aspect-ratio: 4 / 5; transform: translate(-50%, -50%); color: var(--paper); }
.mk-draft__veil .mk-sketch .mk-art__txt { fill: var(--paper); font-size: 12px; }
/* The sketch draws on once per hover / focus, as an animation on its paths. The hover selector ends in a
   class + tag (never [pathLength]): Chrome does not re-style SVG descendants for a camelCase attribute
   selector when an ancestor's :hover changes, so a selector ending in [pathLength] kept stale styles. */
.mk-draft__veil .mk-sketch path { stroke-dasharray: 1; stroke-dashoffset: 1px; }
.mk-draft:is(:hover, :focus-within) .mk-draft__veil .mk-sketch path { animation: mk-sk-draw 700ms var(--ease-ink) 180ms both; }
html.rm .mk-draft:is(:hover, :focus-within) .mk-draft__veil .mk-sketch path { animation: none; stroke-dashoffset: 0; }
@keyframes mk-sk-draw { from { stroke-dashoffset: 1px; } to { stroke-dashoffset: 0px; } }
.mk-draft__glyph {
	position: absolute;
	left: 12px;
	top: 12px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	background: var(--paper);
	color: var(--ink);
	clip-path: var(--clip-ui);
	--sig: var(--cyan-deep); --leak: var(--molten-deep);
}
.mk-glyph { width: 24px; height: 24px; overflow: visible; }
.mk-glyph .mk-sig { stroke: var(--sig); }
.mk-glyph .mk-leak { stroke: var(--leak); }
.mk-glyph g, .mk-glyph path { transform-box: fill-box; transform-origin: center; }
.mk-draft__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--s-2); font: 500 .6875rem/1.4 var(--f-mono); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--fg-2); }
.mk-draft__meta .mk-sym { font-size: .625rem; min-width: 2em; padding: 0 4px; text-transform: none; }
.mk-draft__title { max-width: 24ch; font-size: var(--t-h3); font-weight: var(--w-h3); line-height: 1.12; letter-spacing: var(--tr-h3); }
.mk-draft__link { color: var(--fg); text-decoration: none; }
.mk-draft__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.mk-draft__link:focus-visible { outline: none; }
.mk-draft:has(.mk-draft__link:focus-visible) { outline: var(--bw-focus) solid var(--focus); outline-offset: 8px; }
.mk-draft__hook { max-width: 46ch; font-family: var(--f-serif); font-style: italic; font-size: 1.0625rem; line-height: 1.5; color: var(--fg); }
.mk-draft__facts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); font: 500 .75rem/1.4 var(--f-mono); color: var(--fg-2); }
.mk-draft__fold { position: relative; z-index: 2; border-top: var(--bw) solid var(--rule); }
.mk-draft__sum { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s-2); min-height: 48px; padding: var(--s-2) 32px var(--s-2) 0; position: relative; list-style: none; cursor: pointer; font: 500 .6875rem/1.4 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--fg-2); }
.mk-draft__sum::-webkit-details-marker { display: none; }
.mk-draft__sum .nx-faq__sign { position: absolute; right: 0; top: calc(50% - 9px); color: var(--fg); }
@media (hover: hover) { .mk-draft__sum:hover { color: var(--fg); } }
.mk-draft__dl { display: grid; gap: var(--s-3); margin: 0; padding: var(--s-2) 0 var(--s-4); }
.mk-draft__dl dt { font: 500 .6875rem/1.4 var(--f-mono); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--fg-2); }
.mk-draft__dl dd { margin: 2px 0 0; max-width: 60ch; font-size: var(--t-small); line-height: 1.55; }
.mk-draft__play { padding-bottom: var(--s-4); }
.mk-symname { font-weight: 560; }
.mk-plus { color: var(--fg-2); }

/* Hover / focus: the 47° band crosses the photo and the drawing appears; the glyph plays once. */
.mk-draft:is(:hover, :focus-within) .mk-draft__veil { clip-path: polygon(0 0, calc(100% + var(--run)) 0, 100% 100%, calc(-1 * var(--run)) 100%); }
.mk-draft:has(.mk-draft__fold:focus-within) .mk-draft__veil { clip-path: polygon(0 0, 0 0, calc(-1 * var(--run)) 100%, calc(-1 * var(--run)) 100%); }

@media (min-width: 1024px) {
	.mk-drafting { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.mk-draft--w7 { grid-column: span 7; }
	.mk-draft--w5 { grid-column: span 5; }
	.mk-draft--w5:nth-child(odd) { margin-top: var(--s-9); }
	.mk-draft--feature { grid-column: 1 / -1; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
	.mk-draft--feature .mk-draft__media { grid-column: 1 / span 7; }
	.mk-draft--feature .mk-draft__text { grid-column: 9 / -1; display: grid; gap: var(--s-4); }
	.mk-draft--feature .mk-draft__title { font-size: var(--t-h2); line-height: var(--lh-h2); letter-spacing: var(--tr-h2); --flar: 60; --volm: 40; }
	.mk-draft--reel .mk-draft__media { grid-column: 1 / span 5; }
	.mk-draft--reel .mk-draft__text { grid-column: 7 / -1; }
	.mk-draft--feature:nth-of-type(even) .mk-draft__media { grid-column: 6 / -1; grid-row: 1; }
	.mk-draft--feature:nth-of-type(even) .mk-draft__text { grid-column: 1 / span 4; grid-row: 1; }
}
.mk-draft__text { display: grid; gap: var(--s-3); }
/* Phones and tablets: one landscape crop per entry (the 4:5 portraits made the table three screens taller);
   the band's run follows the crop. */
@media (max-width: 1023px) {
	/* !important: netex_picture() prints the desktop ratio as an inline style on .nx-media. */
	.mk-draft__media .nx-media { aspect-ratio: 3 / 2 !important; }
	.mk-draft__veil { --run: calc(93.25% * .6667); }
	.mk-draft--reel .mk-draft__media .nx-media { aspect-ratio: 1 / 1 !important; }
	.mk-draft--reel .mk-draft__veil { --run: 93.25%; }
}

/* Glyph gestures (each scenario's own): played once on hover / focus. */
@keyframes g-freeze { 0% { transform: scaleY(0); } 60% { transform: scaleY(1.15); } 100% { transform: scaleY(1); } }
@keyframes g-rise { from { stroke-dashoffset: 1px; } to { stroke-dashoffset: 0px; } }
@keyframes g-loupe { 0% { transform: translate(0, 0); } 40% { transform: translate(3px, -2px); } 70% { transform: translate(-2px, 2px); } 100% { transform: none; } }
@keyframes g-stamp { 0% { transform: scale(1.5); opacity: 0; } 50% { transform: scale(.9); opacity: 1; } 100% { transform: none; } }
@keyframes g-pulse { 0%, 100% { transform: none; } 50% { transform: scale(1.25); } }
@keyframes g-arc { 0% { transform: translate(-7px, 7px); } 50% { transform: translate(0, -1px); } 100% { transform: translate(7px, 7px); } }
@keyframes g-wave { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes g-spin { from { transform: rotate(-90deg) scale(.6); } to { transform: none; } }
@keyframes g-dots { 0%, 100% { transform: none; } 50% { transform: translateY(-2px); } }
@keyframes g-squat { 0%, 100% { transform: none; } 50% { transform: translateY(3px) scaleY(.82); } }
@keyframes g-fan-a { from { transform: rotate(14deg); } to { transform: none; } }
@keyframes g-fan-b { from { transform: rotate(-14deg); } to { transform: none; } }
@keyframes g-needle { 0% { transform: rotate(-80deg); } 60% { transform: rotate(12deg); } 100% { transform: none; } }
@keyframes g-sweep { from { transform: rotate(-45deg); } to { transform: none; } }
.mk-glyph .g-a, .mk-glyph .g-b, .mk-glyph .g-c { animation: none; }
.mk-glyph--needle .g-a { transform-origin: 0% 100%; }
.mk-glyph--radar .g-a { transform-origin: 0% 100%; }
.mk-glyph--swatch .g-a, .mk-glyph--swatch .g-b { transform-origin: 50% 100%; }
:is(.mk-draft:is(:hover, :focus-within), .mk-sliver:is(:hover, :focus-within)) .mk-glyph {
	--d: var(--dur-ink);
}
:is(.mk-draft:is(:hover, :focus-within), .mk-sliver:is(:hover, :focus-within)) .mk-glyph--freeze .g-a { animation: g-freeze var(--d) var(--ease-ink) both; }
:is(.mk-draft:is(:hover, :focus-within), .mk-sliver:is(:hover, :focus-within)) .mk-glyph--thermo .g-a { stroke-dasharray: 1; animation: g-rise var(--d) steps(5, jump-end) both; }
:is(.mk-draft:is(:hover, :focus-within), .mk-sliver:is(:hover, :focus-within)) .mk-glyph--loupe .g-a { animation: g-loupe var(--d) var(--ease-ink) both; }
:is(.mk-draft:is(:hover, :focus-within), .mk-sliver:is(:hover, :focus-within)) .mk-glyph--postmark .g-a { animation: g-stamp var(--dur-stamp) var(--ease-stamp) both; }
:is(.mk-draft:is(:hover, :focus-within), .mk-sliver:is(:hover, :focus-within)) .mk-glyph--headphones .g-a { animation: g-pulse 360ms var(--ease-ink) both; }
:is(.mk-draft:is(:hover, :focus-within), .mk-sliver:is(:hover, :focus-within)) .mk-glyph--headphones .g-b { animation: g-pulse 360ms var(--ease-ink) 300ms both; }
:is(.mk-draft:is(:hover, :focus-within), .mk-sliver:is(:hover, :focus-within)) .mk-glyph--sunarc .g-a { animation: g-arc var(--d) var(--ease-ink) both; }
:is(.mk-draft:is(:hover, :focus-within), .mk-sliver:is(:hover, :focus-within)) .mk-glyph--cup .g-a { animation: g-wave var(--d) steps(3, jump-end) both; }
:is(.mk-draft:is(:hover, :focus-within), .mk-sliver:is(:hover, :focus-within)) .mk-glyph--ear .g-a { animation: g-wave 240ms steps(2) both; }
:is(.mk-draft:is(:hover, :focus-within), .mk-sliver:is(:hover, :focus-within)) .mk-glyph--ear .g-b { animation: g-wave 240ms steps(2) 260ms both; }
:is(.mk-draft:is(:hover, :focus-within), .mk-sliver:is(:hover, :focus-within)) .mk-glyph--crosshair .g-a { animation: g-spin var(--d) var(--ease-mech) both; }
:is(.mk-draft:is(:hover, :focus-within), .mk-sliver:is(:hover, :focus-within)) .mk-glyph--crosshair .g-b { animation: g-stamp var(--dur-stamp) var(--ease-stamp) 400ms both; }
:is(.mk-draft:is(:hover, :focus-within), .mk-sliver:is(:hover, :focus-within)) .mk-glyph--bubble .g-a { animation: g-dots 300ms var(--ease-ink) 2 both; }
:is(.mk-draft:is(:hover, :focus-within), .mk-sliver:is(:hover, :focus-within)) .mk-glyph--squat .g-a { animation: g-squat var(--d) var(--ease-ink) both; transform-origin: 50% 100%; }
:is(.mk-draft:is(:hover, :focus-within), .mk-sliver:is(:hover, :focus-within)) .mk-glyph--circle .g-a { stroke-dasharray: 1; animation: g-rise var(--d) var(--ease-ink) both; }
:is(.mk-draft:is(:hover, :focus-within), .mk-sliver:is(:hover, :focus-within)) .mk-glyph--swatch .g-a { animation: g-fan-a var(--d) var(--ease-ink) both; }
:is(.mk-draft:is(:hover, :focus-within), .mk-sliver:is(:hover, :focus-within)) .mk-glyph--swatch .g-b { animation: g-fan-b var(--d) var(--ease-ink) both; }
:is(.mk-draft:is(:hover, :focus-within), .mk-sliver:is(:hover, :focus-within)) .mk-glyph--needle .g-a { animation: g-needle var(--d) var(--ease-ink) both; }
:is(.mk-draft:is(:hover, :focus-within), .mk-sliver:is(:hover, :focus-within)) .mk-glyph--radar .g-a { animation: g-sweep var(--d) linear both; }
:is(.mk-draft:is(:hover, :focus-within), .mk-sliver:is(:hover, :focus-within)) .mk-glyph--checklist .g-a { stroke-dasharray: 1; animation: g-rise 240ms var(--ease-stamp) both; }
:is(.mk-draft:is(:hover, :focus-within), .mk-sliver:is(:hover, :focus-within)) .mk-glyph--checklist .g-b { stroke-dasharray: 1; animation: g-rise 240ms var(--ease-stamp) 260ms both; }
html.rm .mk-glyph * { animation: none !important; }

/* =========================================================================
   Idea cards: overlay strokes on the photos; compact rows on the hub
   ========================================================================= */
.mk-ideas .mk-fold__title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
/* Phones: the short badge on each row (the section says «not playable yet» once); the full one from tablet up. */
.mk-flag--long { display: none; }
@media (min-width: 768px) { .mk-flag--long { display: inline-flex; } .mk-flag--short { display: none; } }
.mk-idea__hook { max-width: 52ch; padding: var(--s-1) 0 var(--s-3); font-family: var(--f-serif); font-style: italic; font-size: 1.0625rem; line-height: 1.5; }
.mk-idea__inline { position: relative; margin: 0 0 var(--s-4); max-width: 420px; overflow: hidden; clip-path: var(--clip-sheet); }
/* The card's 47° machine band (§8.1): the same photo, as the machine sees it, under the drawn overlay.
   A 4:5 card: the band rises 116.56 % of the width over its height (cot 47° × 5/4). */
.mk-band { position: absolute; inset: 0; z-index: 1; pointer-events: none; --run: 116.56%; clip-path: polygon(calc(var(--bx) + var(--run)) 0, calc(var(--bx) + var(--run) + var(--bw)) 0, calc(var(--bx) + var(--bw)) 100%, var(--bx) 100%); }
.mk-band img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--focal, 50% 50%); filter: grayscale(1) brightness(.55) contrast(1.2); }
.mk-overlay .mk-band-edge { stroke: var(--cyan); stroke-opacity: .8; }
.mk-overlay { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; color: var(--paper); pointer-events: none; filter: drop-shadow(0 0 1.5px rgb(8 9 14 / .85)); }
.mk-overlay .mk-paper, .mk-overlay .mk-ink { stroke: var(--paper); }
.mk-overlay .mk-sig { stroke: var(--cyan); }
.mk-overlay .mk-leak { stroke: var(--molten); }
.mk-overlay .mk-plate { fill: rgb(8 9 14 / .86); stroke: var(--paper); stroke-width: 1; }
.mk-overlay .mk-dot-on { fill: var(--paper); stroke: var(--paper); }
.mk-overlay .mk-art__txt { fill: var(--paper); font-size: 22px; font-weight: 600; letter-spacing: .04em; }
.mk-overlay .mk-txt-leak { fill: var(--molten); }
.mk-ideas .mk-iv__frame .nx-media { position: absolute; inset: 0; aspect-ratio: auto; }
@media (min-width: 1024px) { .mk-idea__inline { display: none; } }
.mk-idearows .nx-index__value { white-space: nowrap; }
.mk-idearows li[hidden] { display: none; }

/* =========================================================================
   Three-question diagnosis
   ========================================================================= */
/* The section around it (hub s6 and Lab s6 share this layout): heading left, the form right. */
.pb-diag { row-gap: var(--s-7); align-items: start; }
@media (min-width: 1024px) {
	.pb-diag__head { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + var(--s-6)); }
	.pb-diag__tool { grid-column: 7 / -1; }
}
.mk-diag { display: grid; gap: var(--s-7); }
.mk-diag__form { display: grid; gap: var(--s-6); }
.mk-diag__q { display: grid; gap: var(--s-3); min-inline-size: 0; margin: 0; padding: var(--s-4) 0 0; border: 0; border-top: var(--bw) solid var(--rule); }
/* A floated legend is an ordinary child: the rule runs above the question instead of through it. */
.mk-diag__q > legend { float: left; width: 100%; }
.mk-diag__label { display: flex; align-items: baseline; gap: var(--s-3); padding: 0; font: var(--w-h3) var(--t-h4)/1.25 var(--f-sans); color: var(--fg); }
.mk-diag__n { font: 600 .75rem/1 var(--f-mono); color: var(--fg-2); }
.mk-diag .nx-control--select { max-width: 28rem; }
.mk-diag .nx-chips .nx-chip { min-height: 44px; }
.mk-diag__go { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.mk-diag__hint { font: 500 .75rem/1.4 var(--f-mono); color: var(--fg-2); }
.mk-diag__hint[hidden] { display: none; }
.mk-diag__out:empty { display: none; }
.mk-diag__res { max-width: 46rem; }
.mk-diag__res.is-in { animation: nx-wipe-in var(--dur-cut) var(--ease-cut) backwards; }
.mk-diag__title { margin: var(--s-2) 0 var(--s-3); font-size: var(--t-h3); line-height: 1.12; max-width: 28ch; outline: none; }
.mk-diag__match { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); font: 500 .75rem/1.4 var(--f-mono); color: var(--fg-2); }
.mk-diag__dl { display: grid; gap: 0; margin: var(--s-5) 0 0; }
.mk-diag__dl > div { display: grid; gap: var(--s-1) var(--s-5); padding: var(--s-3) 0; border-top: var(--bw) solid var(--rule); }
.mk-diag__dl dt { font: 500 .6875rem/1.4 var(--f-mono); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--fg-2); }
.mk-diag__dl dd { margin: 0; font-size: var(--t-small); line-height: 1.55; }
.mk-diag__psy { display: block; margin-top: var(--s-1); color: var(--fg-2); }
.mk-diag__actions { margin-top: var(--s-5); }
.mk-diag__none { font-family: var(--f-serif); font-style: italic; font-size: var(--t-lead); }
.mk-diag__combo { font: 500 .75rem/1.4 var(--f-mono); color: var(--fg-2); }
@container (min-width: 560px) { .mk-diag__dl > div { grid-template-columns: 12rem minmax(0, 1fr); } }
.mk-diag__res { container-type: inline-size; }

/* =========================================================================
   Campaign ledger
   ========================================================================= */
.mk-camps__filter { display: grid; gap: var(--s-2); max-width: 24rem; margin-bottom: var(--s-5); }
.mk-camps__table th[scope="row"] { font: var(--w-h3) .9375rem/1.35 var(--f-sans); text-transform: none; letter-spacing: 0; color: var(--fg); }
.mk-camps__table td { font-size: var(--t-small); line-height: 1.5; }
.mk-camps__year { white-space: nowrap; font-family: var(--f-mono); }
.mk-camps__table tr[hidden] { display: none; }
@media (min-width: 768px) {
	.mk-camps__table th[scope="row"] { width: 18%; }
	.mk-camps__table td:nth-child(4) { width: 26%; }
	.mk-camps__table td:nth-child(5) { width: 24%; }
}
/* Phones: one compact ledger entry per campaign: name, year + part, what happened, the result, who says so. */
@media (max-width: 767px) {
	.mk-camps__table tr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-2) var(--s-3); align-items: baseline; padding: var(--s-4) 0; }
	.mk-camps__table :is(th, td) { display: block; width: auto; padding: 0; }
	.mk-camps__table :is(th, td)[data-label]::before { content: none; }
	.mk-camps__table th[scope="row"] { grid-column: 1 / -1; font-size: 1rem; }
	.mk-camps__table td.mk-camps__year { grid-column: 1; font-size: .8125rem; color: var(--fg-2); }
	.mk-camps__table td:nth-child(3) { grid-column: 2; }
	.mk-camps__table td:nth-child(n+4) { grid-column: 1 / -1; }
	.mk-camps__table td:nth-child(5)[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 500 .625rem/1.4 var(--f-mono); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--fg-2); }
	.mk-camps__table td:nth-child(6) { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); }
}

} /* end @layer pages */
