/**
 * Field Notes — shared article-body + Kodlo-block styles.
 *
 * Loaded on the front end (single.php) AND in the block editor canvas
 * (enqueue.php → enqueue_block_assets / block editor styles), so a Kodlo block
 * and the free-form body look the same while editing and once published.
 *
 * Two parts, in this order:
 *   1. Article body + Kodlo-block styles — what BOTH the front end and the
 *      editor canvas read (.kodlo-note__content, the insertable blocks).
 *   2. SINGLE-NOTE SHELL (see the marker lower down) — the article frame,
 *      header and related nav that only single.php renders. Every rule there
 *      is scoped under .kodlo-note so it cannot reach the editor canvas.
 */

/* ===========================================================================
 * Article body — the_content() rendered inside the 760px reading column.
 *
 * Core blocks (paragraph, heading, list, quote, image, table, separator) are
 * mapped onto the note's typography so an editor can paste a long article and
 * have it read like the designed long-form layout without touching CSS.
 * ======================================================================== */
.kodlo-note__content {
	font-family: var(--wp--preset--font-family--body);
}

.kodlo-note__content > * {
	margin-top: 0;
	margin-bottom: 0;
}

/* Vertical rhythm between top-level blocks. */
.kodlo-note__content > * + * {
	margin-top: 28px;
}

.kodlo-note__content p {
	font-size: 16px;
	line-height: 1.6;
	color: rgba(10, 10, 10, 0.75);
}

.kodlo-note__content h2 {
	margin-top: 56px;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	font-size: 28.8px;
	line-height: 1.05;
	letter-spacing: -0.025em;
	color: var(--wp--preset--color--primary);
}

.kodlo-note__content h3 {
	margin-top: 40px;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	font-size: 20px;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--primary);
}

.kodlo-note__content h4 {
	margin-top: 32px;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 500;
	font-size: 16px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: rgba(10, 10, 10, 0.75);
}

.kodlo-note__content a {
	color: var(--wp--preset--color--primary);
	text-underline-offset: 3px;
}

.kodlo-note__content ul,
.kodlo-note__content ol {
	margin: 0;
	padding-left: 1.2em;
	font-size: 16px;
	line-height: 1.6;
	color: rgba(10, 10, 10, 0.75);
}

.kodlo-note__content li + li {
	margin-top: 8px;
}

.kodlo-note__content strong {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
}

/* Core quote (light, inline) — distinct from the dark pull-quote band. */
.kodlo-note__content blockquote:not(.kodlo-note__pull-quote) {
	margin: 0;
	padding-left: 20px;
	border-left: 2px solid rgba(10, 10, 10, 0.2);
	font-family: var(--wp--preset--font-family--body);
	font-size: 20px;
	line-height: 1.45;
	color: rgba(10, 10, 10, 0.82);
}

.kodlo-note__content img,
.kodlo-note__content .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
}

.kodlo-note__content figcaption {
	margin-top: 12px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(10, 10, 10, 0.6);
}

.kodlo-note__content hr,
.kodlo-note__content .wp-block-separator {
	margin: 48px auto;
	border: 0;
	border-top: 0.8px solid rgba(10, 10, 10, 0.15);
}

.kodlo-note__content table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
}

.kodlo-note__content th,
.kodlo-note__content td {
	text-align: left;
	padding: 12px 8px;
	border-bottom: 0.8px solid rgba(10, 10, 10, 0.15);
	letter-spacing: 0.04em;
	color: rgba(10, 10, 10, 0.8);
}

.kodlo-note__content th {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: rgba(10, 10, 10, 0.6);
	font-weight: 400;
}

/* Feature matrix: a core table given the "kodlo-matrix" class (Advanced →
   Additional CSS class). Many narrow product columns, so tighter header
   tracking and centred marks; the first column holds the capability. */
.kodlo-note__content .kodlo-matrix th,
.kodlo-note__content .kodlo-matrix td {
	padding: 10px 6px;
	text-align: center;
	letter-spacing: 0.02em;
}
.kodlo-note__content .kodlo-matrix th { font-size: 10.5px; letter-spacing: 0.06em; }
.kodlo-note__content .kodlo-matrix td { font-size: 14px; }
.kodlo-note__content .kodlo-matrix th:first-child,
.kodlo-note__content .kodlo-matrix td:first-child {
	min-width: 11em;
	text-align: left;
	font-size: 12.5px;
}

/* ===========================================================================
 * Block — kodlo/pull-quote (dark, full-bleed band).
 *
 * Same class names the single-note template used for its built-in pull section,
 * so render.php and the editor preview share one source of truth here.
 * ======================================================================== */
.kodlo-note__pull {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--secondary);
	margin: 72px 0;
	padding: clamp(48px, 6vw, 88px) 0;
}

.kodlo-note__pull-inner {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 clamp(20px, 4vw, 40px);
	position: relative;
}

.kodlo-note__pull-top,
.kodlo-note__pull-foot {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(244, 243, 238, 0.6);
}

.kodlo-note__pull-quote {
	margin: 40px 0;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	font-size: clamp(26px, 3vw, 40px);
	line-height: 1.12;
	letter-spacing: -0.02em;
	border: 0;
	padding: 0;
}

.kodlo-note__pull-lead { display: block; }
.kodlo-note__pull-rest { display: block; color: rgba(244, 243, 238, 0.6); }

.kodlo-note__pull-tag,
.kodlo-note__pull-cite {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(244, 243, 238, 0.5);
}

.kodlo-note__pull-cite { margin-bottom: 24px; }

/* Editor canvas: the band is a block, so neutralise the editor's default
 * block max-width/centering and let it run full-bleed like the front. */
.editor-styles-wrapper .kodlo-note__pull {
	max-width: none;
}
.editor-styles-wrapper .kodlo-note__pull [data-rich-text-placeholder]::after {
	color: rgba(244, 243, 238, 0.4);
}
/* Inline RichText fields keep the band's own typography (no editor default). */
.editor-styles-wrapper .kodlo-note__pull [contenteditable] {
	white-space: pre-wrap;
}

/* ===========================================================================
 * Shared block / legacy-body type scale.
 *
 * Used by the Kodlo blocks below (constraints, measure, signal, source-table,
 * pause) AND by the legacy field-driven fallback (parts/section-note-legacy.php).
 * Mirrors the inline scale single.php still keeps for its own shell; lives here
 * so the blocks look identical inside the editor canvas.
 * ======================================================================== */
.kodlo-note__block { margin-top: 56px; }
.kodlo-note__h2 {
	margin: 0 0 24px;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	font-size: 28.8px;
	line-height: 1.05;
	letter-spacing: -0.025em;
	color: var(--wp--preset--color--primary);
}
.kodlo-note__h3 {
	margin: 0 0 12px;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	font-size: 20px;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--primary);
}
.kodlo-note__body {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: rgba(10, 10, 10, 0.75);
}

/* ---------- Figure plate (image or constellation glyph + caption) ---------- */
.kodlo-note__figure { margin: 56px 0 0; }
.kodlo-note__plate {
	border: 0.8px solid rgba(10, 10, 10, 0.15);
	aspect-ratio: 760 / 460;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
}
.kodlo-note__plate--wide { aspect-ratio: 760 / 380; }
/* Custom width/height set (like the core Image block): let the inline size
   drive the box instead of the locked aspect ratio. When only a WIDTH is set,
   the height comes from the image's own ratio (no crop).
   The plate is centred; a width WIDER than the 760px reading column is allowed
   to break out (capped at the viewport, minus a small gutter), so what you set
   in the editor matches the front. */
.kodlo-note__plate--sized {
	aspect-ratio: auto;
	height: auto;
	/* Centre the plate and let it break out of the 760px reading column up to the
	   viewport width — the inline width from the editor then applies verbatim, so
	   the front matches the editor. (A plate narrower than the column simply
	   centres in place.) */
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	max-width: calc(100vw - 40px);
}
/* A sized plate shows the WHOLE image at its natural ratio — the image flows as
   a normal block (not absolutely positioned), so the set width drives it and
   nothing is cropped. */
.kodlo-note__plate--sized .kodlo-figure__img,
.kodlo-note__plate--sized .kodlo-fn-plate__img {
	position: static;
	inset: auto;
	width: 100%;
	height: auto;
	object-fit: contain;
}
.kodlo-note__plate.has-image { padding: 0; border-color: transparent; }
.kodlo-note__plate .kodlo-fn-plate__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: grayscale(1);
	transition: filter 0.3s ease, transform 0.4s ease;
}
.kodlo-note__plate:hover .kodlo-fn-plate__img {
	filter: grayscale(0);
	transform: scale(1.03);
}
.kodlo-note__plate .kodlo-fn-glyph { width: 60%; max-width: 200px; height: auto; }

/* Plain figure image — full colour, static. No grayscale, no hover zoom (this
   is the article detail view, not a feed card). */
.kodlo-note__plate--plain .kodlo-figure__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: none;
	transition: none;
}
.kodlo-note__plate--plain:hover .kodlo-figure__img {
	filter: none;
	transform: none;
}

.kodlo-note__figure figcaption {
	margin-top: 12px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(10, 10, 10, 0.6);
}

/* ---------- Full-bleed figure (edge-to-edge image) ----------
   The figure lives inside the 760px reading column; this breaks the PLATE out
   to the full viewport width while the caption stays in the column. The classic
   100vw breakout (margin-left:50% + translateX(-50%)) avoids the horizontal
   scrollbar that a plain `width:100vw` would add. */
.kodlo-note__figure--bleed {
	margin-top: 72px;
}
.kodlo-note__figure--bleed .kodlo-note__plate {
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	width: 100vw;
	max-width: 100vw;
	/* No locked aspect-ratio: the image keeps its natural shape and the plate
	   grows to fit it, so the whole picture is shown (no cropping). */
	aspect-ratio: auto;
	border: 0;
	overflow: visible;
}
/* In full-bleed the image flows as a normal block (not absolutely positioned),
   so its intrinsic ratio drives the plate height and nothing is cropped. */
.kodlo-note__figure--bleed .kodlo-note__plate .kodlo-figure__img,
.kodlo-note__figure--bleed .kodlo-note__plate .kodlo-fn-plate__img {
	position: static;
	inset: auto;
	width: 100%;
	height: auto;
	object-fit: initial;
}
.kodlo-note__figure--bleed figcaption {
	margin-top: 16px;
}
/* Editor canvas: the block is constrained by the editor's block width, so the
   100vw breakout can't reach the true browser edge there — clamp it to the
   editor content width so it previews as a wide band without overflow. */
.editor-styles-wrapper .kodlo-note__figure--bleed .kodlo-note__plate {
	left: 0;
	transform: none;
	width: 100%;
	max-width: 100%;
}
/* Editor canvas: a sized plate sits inside the ResizableBox, which already drives
   its width and centring — drop the front-end column breakout so it doesn't
   shift off-centre while editing. */
.editor-styles-wrapper .kodlo-note__plate--sized {
	left: 0;
	transform: none;
	max-width: 100%;
}

/* ---------- Glyph divider (§ § §) ---------- */
.kodlo-note__glyph-divider {
	text-align: center;
	margin: 48px 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	letter-spacing: 0.4em;
	color: rgba(10, 10, 10, 0.4);
}
.editor-styles-wrapper .kodlo-note__glyph-divider [data-rich-text-placeholder]::after {
	color: rgba(10, 10, 10, 0.3);
}

/* ---------- Constraints (numbered, rule-separated) ---------- */
.kodlo-note__constraints { list-style: none; margin: 0; padding: 0; }
.kodlo-note__constraints li {
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: 16px;
	padding: 16px 0;
	border-top: 0.8px solid rgba(10, 10, 10, 0.15);
}
.kodlo-note__constraint-num {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	letter-spacing: 0.12em;
	color: rgba(10, 10, 10, 0.6);
}
.kodlo-note__constraint-text {
	font-size: 16px;
	line-height: 1.55;
	color: rgba(10, 10, 10, 0.75);
}

/* ---------- Measure list ---------- */
.kodlo-note__measure { list-style: none; margin: 0; padding: 0; }
/* Inside a post body the generic `.kodlo-note__content ul/ol` indent outranks
   the block's own reset; the rule lists are flush with the text column. */
.kodlo-note__content .kodlo-note__measure,
.kodlo-note__content .kodlo-note__constraints { padding-left: 0; }
.kodlo-note__measure li {
	padding: 12px 0;
	border-top: 0.8px solid rgba(10, 10, 10, 0.15);
	font-size: 16px;
	color: rgba(10, 10, 10, 0.78);
}

/* ---------- Signal cols (is / is-not) ---------- */
.kodlo-note__cols {
	margin-top: 56px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
}

/* ---------- Source-class table + CTAs ---------- */
.kodlo-note__table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
}
.kodlo-note__table th,
.kodlo-note__table td {
	text-align: left;
	padding: 12px 8px;
	border-bottom: 0.8px solid rgba(10, 10, 10, 0.15);
	letter-spacing: 0.04em;
}
.kodlo-note__table th {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: rgba(10, 10, 10, 0.6);
	font-weight: 400;
}
.kodlo-note__table td { color: rgba(10, 10, 10, 0.8); }
.kodlo-note__table-cta {
	display: flex;
	gap: 12px;
	margin-top: 24px;
	flex-wrap: wrap;
	/* Mono face on the row so any non-anchor child inherits it too; the anchors
	   below restate it explicitly. Previously carried by single.php's inline
	   mono-token group, which no longer lists body/block elements. */
	font-family: var(--wp--preset--font-family--mono);
}
.kodlo-note__table-cta a,
.kodlo-note__table-cta .kodlo-note__cta {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 12px 16px;
	border: 1px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}
.kodlo-note__table-cta a:first-child,
.kodlo-note__table-cta .kodlo-note__cta:first-child {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--secondary);
}

/* ---------- Dark pause band (full bleed) ---------- */
.kodlo-note__pause {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--secondary);
	margin: 72px 0;
	padding: clamp(64px, 8vw, 120px) 0;
}
.kodlo-note__pause-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 clamp(20px, 4vw, 40px);
}
.kodlo-note__pause-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(244, 243, 238, 0.6);
}
.kodlo-note__pause-text {
	margin: 24px 0 0;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	font-size: clamp(36px, 5vw, 72px);
	line-height: 1.02;
	letter-spacing: -0.035em;
}

/* Editor: pause band runs full bleed + readable placeholders. */
.editor-styles-wrapper .kodlo-note__pause { max-width: none; }
.editor-styles-wrapper .kodlo-note__pause [data-rich-text-placeholder]::after {
	color: rgba(244, 243, 238, 0.4);
}

/* ---------- Chart (kodlo/chart) ----------
   A table drawn as a chart: label | plotted mark | value. The plot column is
   decoration (aria-hidden); the numbers live in the value column as text.
   Scoped two classes deep so the article's generic table rules above
   (.kodlo-note__content th/td) never restyle it. */
.kodlo-chart {
	margin-left: 0;
	margin-right: 0;
	margin-bottom: 0;
}
.kodlo-chart .kodlo-chart__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	font-size: 20px;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--primary);
}
.kodlo-chart .kodlo-chart__sub {
	margin: 8px 0 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	line-height: 1.5;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(10, 10, 10, 0.6);
}
.kodlo-chart .kodlo-chart__table {
	width: 100%;
	margin-top: 24px;
	border-collapse: collapse;
	table-layout: fixed;
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
}
.kodlo-chart .kodlo-chart__table th,
.kodlo-chart .kodlo-chart__table td {
	padding: 10px 0;
	border-bottom: 0.8px solid rgba(10, 10, 10, 0.08);
	vertical-align: middle;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	font-weight: 400;
	color: rgba(10, 10, 10, 0.75);
}
.kodlo-chart .kodlo-chart__table thead th {
	padding: 0 0 10px;
	border-bottom-color: rgba(10, 10, 10, 0.25);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 10.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(10, 10, 10, 0.55);
}
.kodlo-chart .kodlo-chart__table .kodlo-chart__label {
	width: 31%;
	padding-right: 16px;
}
.kodlo-chart .kodlo-chart__table .kodlo-chart__value {
	width: 22%;
	padding-left: 16px;
	text-align: right;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12.5px;
	line-height: 1.4;
}
.kodlo-chart .kodlo-chart__table thead .kodlo-chart__value { font-size: 10.5px; }
.kodlo-chart__name {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: 16px;
	line-height: 1.25;
	color: var(--wp--preset--color--primary);
}
.kodlo-chart__note {
	display: block;
	margin-top: 3px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 10.5px;
	line-height: 1.4;
	letter-spacing: 0.04em;
	color: rgba(10, 10, 10, 0.55);
}
/* " — " between name and note: read aloud and kept in the Markdown twin,
   never shown (the note already sits on its own line). */
.kodlo-chart__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
.kodlo-chart .kodlo-chart__table .kodlo-chart__track {
	position: relative;
	height: 44px;
	padding: 0;
}
.kodlo-chart .kodlo-chart__table thead .kodlo-chart__track { height: auto; }
.kodlo-chart__grid {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 0;
	border-left: 0.8px solid rgba(10, 10, 10, 0.1);
}
.kodlo-chart__range,
.kodlo-chart__bar,
.kodlo-chart__dot {
	position: absolute;
	top: 50%;
	box-sizing: border-box;
	background: rgba(10, 10, 10, 0.26);
}
.kodlo-chart__range {
	height: 8px;
	margin-top: -4px;
	border-radius: 4px;
}
.kodlo-chart__bar {
	height: 14px;
	margin-top: -7px;
	background: rgba(10, 10, 10, 0.18);
}
.kodlo-chart__dot {
	width: 10px;
	height: 10px;
	margin: -5px 0 0 -5px;
	border-radius: 50%;
	background: rgba(10, 10, 10, 0.4);
}
/* The row the chart is about: ink mark, ink type. */
.kodlo-chart .is-highlight .kodlo-chart__name { font-weight: 500; }
.kodlo-chart .kodlo-chart__table .is-highlight .kodlo-chart__value {
	color: var(--wp--preset--color--primary);
	font-weight: 500;
}
.kodlo-chart .is-highlight .kodlo-chart__range,
.kodlo-chart .is-highlight .kodlo-chart__bar,
.kodlo-chart .is-highlight .kodlo-chart__dot {
	background: var(--wp--preset--color--primary);
}
/* An estimate (price not published): outlined, never solid. */
.kodlo-chart .is-estimate .kodlo-chart__range,
.kodlo-chart .is-estimate .kodlo-chart__bar,
.kodlo-chart .is-estimate .kodlo-chart__dot {
	background: transparent;
	border: 1.5px dashed rgba(10, 10, 10, 0.6);
}
.kodlo-chart .is-estimate .kodlo-chart__dot {
	width: 12px;
	height: 12px;
	margin: -6px 0 0 -6px;
}
.kodlo-chart .is-highlight.is-estimate .kodlo-chart__range,
.kodlo-chart .is-highlight.is-estimate .kodlo-chart__bar,
.kodlo-chart .is-highlight.is-estimate .kodlo-chart__dot {
	border-color: var(--wp--preset--color--primary);
}
.kodlo-chart .kodlo-chart__table .kodlo-chart__axis td {
	height: 28px;
	padding: 0;
	border-bottom: 0;
}
.kodlo-chart__tick {
	position: absolute;
	top: 8px;
	transform: translateX(-50%);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 10.5px;
	line-height: 1;
	letter-spacing: 0.04em;
	white-space: nowrap;
	color: rgba(10, 10, 10, 0.55);
}
/* Sentence case, unlike image captions: a chart's source line is often two
   sentences of method, which reads badly in spaced capitals. */
.kodlo-chart .kodlo-chart__caption {
	margin-top: 16px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11.5px;
	line-height: 1.6;
	letter-spacing: 0.02em;
	text-transform: none;
	color: rgba(10, 10, 10, 0.6);
}
.kodlo-chart .kodlo-chart__caption a { color: inherit; text-underline-offset: 3px; }

/* ---------- Block tooling (editor only) ---------- */
.kodlo-block-toolbar {
	display: flex;
	gap: 8px;
	margin-top: 16px;
}
.kodlo-block-row {
	position: relative;
}
.kodlo-block-row__remove {
	position: absolute;
	top: 8px;
	right: 0;
}

@media (max-width: 768px) {
	.kodlo-note__cols { grid-template-columns: 1fr; }
	/* The 4-column source table can't shrink below its content on a phone, so
	   tighten cell padding and let it scroll horizontally inside its own box
	   instead of forcing the whole page wider than the viewport. */
	.kodlo-note__table {
		font-size: 11px;
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		white-space: nowrap;
	}
	.kodlo-note__table th,
	.kodlo-note__table td { padding: 10px 6px; }
	/* Stack the two table CTAs full-width so they never overflow. */
	.kodlo-note__table-cta a,
	.kodlo-note__table-cta .kodlo-note__cta { flex: 1 1 auto; text-align: center; }
}

/* Chart on a phone: narrower label/value columns, smaller type, and only the
   major tick labels (the minor ones would collide in a ~140px plot). */
@media (max-width: 640px) {
	.kodlo-chart .kodlo-chart__title { font-size: 18px; }
	.kodlo-chart .kodlo-chart__table .kodlo-chart__label { width: 36%; padding-right: 10px; }
	.kodlo-chart .kodlo-chart__table .kodlo-chart__value { width: 27%; padding-left: 10px; font-size: 11px; }
	.kodlo-chart__name { font-size: 14px; }
	.kodlo-chart__note { font-size: 9.5px; letter-spacing: 0.02em; }
	.kodlo-chart__tick { font-size: 9.5px; letter-spacing: 0; }
	.kodlo-chart__tick.is-minor { display: none; }
}

/* =====================================================================
   SINGLE-NOTE SHELL
   ---------------------------------------------------------------------
   Moved verbatim from the inline <style> block in single.php. This is the
   article frame that single.php renders around the block body: the cream
   page surface, the 760px reading column, the header (crumb/title/meta/
   lede) and the related-notes nav. Everything ABOVE this marker is body /
   Kodlo-block styling that both the front end and the editor canvas read.

   EDITOR SCOPING — every rule here is scoped under `.kodlo-note`, which
   ONLY single.php emits (`<article class="kodlo-note">`). The block editor
   renders body content into `.editor-styles-wrapper` with no `.kodlo-note`
   ancestor, so none of these rules can reach the canvas. That matters
   because `.kodlo-note` sets `padding-top: 84px` (front-end top-bar
   clearance) and a full-surface background — both meaningless in the
   editor and visibly distorting if they leaked in. Descendant scoping is
   used rather than a `body:not(.wp-admin)` negation because it keys off
   markup single.php actually owns, and it matches the
   `.editor-styles-wrapper` convention already used above.

   Keep new shell rules inside this section and inside the `.kodlo-note`
   scope. A shell rule written unscoped WILL leak into the editor.
   ===================================================================== */

article.kodlo-note {
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--primary);
	font-family: var(--wp--preset--font-family--body);
	position: relative;
	width: 100%;
	padding-top: 84px; /* clear the fixed top bar */
}
/* Centered 760px reading column; dark bands break out full-bleed. */
.kodlo-note .kodlo-note__inner {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 clamp(20px, 4vw, 40px);
}

/* mono token — shell elements only. The body/block elements that also use this
   face (figcaption, glyph divider, constraint numbers, pause eyebrow, source
   table, CTA row) declare it themselves above, so they are not listed here. */
.kodlo-note .kodlo-note__crumb,
.kodlo-note .kodlo-note__meta,
.kodlo-note .kodlo-note__cover-caption,
.kodlo-note .kodlo-note__nav-dir,
.kodlo-note .kodlo-note__nav-meta,
.kodlo-note .kodlo-fn-card__tag {
	font-family: var(--wp--preset--font-family--mono);
}

/* ---------- Header ---------- */
/* `relative` makes the header the positioning context for the cover print
   below. It carries no offsets, so it does not move. */
.kodlo-note .kodlo-note__header {
	padding-top: 32px;
	position: relative;
}
.kodlo-note .kodlo-note__crumb {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(10, 10, 10, 0.6);
	margin-bottom: 24px;
	flex-wrap: wrap;
}
.kodlo-note .kodlo-note__title {
	margin: 0 0 24px;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	font-size: clamp(34px, 4vw, 56px);
	line-height: 1.04;
	letter-spacing: -0.03em;
	/* `relative` + z-index keep the headline above the cover print (z-index:2).
	   The print no longer overlaps any text, so nothing currently depends on
	   this — it is kept as a cheap guarantee that text wins the paint order if
	   the print is ever moved back over the column. */
	position: relative;
	z-index: 3;
}
.kodlo-note .kodlo-note__meta {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(10, 10, 10, 0.6);
}
/* Byline — photo + display name, sitting under the meta row. Scoped under
   .kodlo-note like the rest of the shell, so the editor canvas never sees it.
   No-photo notes get --textonly, which drops the gap; the photo element is
   simply absent (never a gravatar request). */
.kodlo-note .kodlo-note__author {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 24px;
}
.kodlo-note .kodlo-note__author--textonly {
	gap: 0;
}
/* Square, hard-edged — the house value for anything rectangular (the footer
   input/button both set border-radius:0 explicitly). 50% is reserved for
   intrinsically circular graphics (status dots, the constellation glyph),
   never for content images.
   Equal width/height + object-fit:cover means a portrait or landscape upload
   crops to the square box instead of stretching to a tall/wide rectangle;
   aspect-ratio pins the box even if one dimension is overridden downstream. */
.kodlo-note .kodlo-note__author-photo {
	width: 36px;
	height: 36px;
	aspect-ratio: 1 / 1;
	border-radius: 0;
	object-fit: cover;
	object-position: center;
	display: block;
	flex: 0 0 auto;
}
.kodlo-note .kodlo-note__author-name {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(10, 10, 10, 0.6);
}

.kodlo-note .kodlo-note__lede {
	max-width: 760px;
	margin: 40px auto 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 22px;
	line-height: 1.45;
	color: rgba(10, 10, 10, 0.82);
}

/* ---------- Cover — the "slipped print" ----------
   The note's featured image, sitting in the header's RIGHT margin like a print
   that slid out from under the headline: ~240px wide, rotated 4deg, soft
   shadow, FIG. 001 caption right-aligned beneath it. Rendered from single.php
   after the <h1>; absent entirely when the note has no featured image.

   BASE = the small-viewport / in-flow form (see the >=1160px branch below for
   the positioned one). Mobile-first: no rotation, no absolute positioning, no
   overlap — the print simply sits in the column above the meta row, which is
   where it lands in DOM order anyway.

   width:100% + height:auto per spec — the image is never cropped and never
   given a fixed height, so any aspect ratio keeps its own proportions. The
   240px cap lives on the FIGURE, not the img, so the caption tracks the
   picture's width rather than the column's. */
.kodlo-note .kodlo-note__cover {
	margin: 32px 0 0;
	width: 240px;
	max-width: 100%;
}
.kodlo-note .kodlo-note__cover-img {
	display: block;
	width: 100%;
	height: auto;
}
/* Font-family comes from the shared mono token group above — not redeclared. */
.kodlo-note .kodlo-note__cover-caption {
	margin-top: 10px;
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(10, 10, 10, 0.6);
	text-align: right;
	line-height: 1.5;
}
/* The static FIG. 001 label and the attachment caption stack: the label is
   always present, the text only when the attachment carries a caption. */
.kodlo-note .kodlo-note__cover-fig { display: block; }
.kodlo-note .kodlo-note__cover-text {
	display: block;
	color: rgba(10, 10, 10, 0.4);
}

/* WIDE VIEWPORT — the designed form: the print leaves the flow and hangs in
   the right margin, ENTIRELY CLEAR OF THE TEXT.

   ZERO OVERLAP IS THE RULE. An earlier revision tucked the print 90px into the
   text measure so it read as sliding under the headline. That tuck also put it
   over the __meta row, whose right-hand span (date + read time) sits flush
   right and got clipped. The print now stops exactly at the text measure's
   right edge: it may sit over the column's own 40px padding, never over text.

   GEOMETRY BUDGET (read before widening the image or the offset).
   The reading column is 760px border-box, centered, with 40px of its own
   padding, so the text measure is 680px.

   WHAT `right` IS MEASURED FROM. The print is positioned against
   .kodlo-note__header, and an absolutely positioned box resolves its offsets
   against its containing block's PADDING box. The header is a CHILD of
   .kodlo-note__inner, so it is already inset by that 40px — the header box IS
   the 680px text measure, not the 760px column. `right: 0` would therefore put
   the print's right edge exactly on the text's right edge. Do not subtract the
   column padding again; that was an earlier bug that pulled the print 40px
   back over the meta row.

   THE OFFSET IS DERIVED, NOT CHOSEN:
       240px  print width          -> right:-240 puts its LEFT edge on the
                                      measure's right edge (zero layout overlap)
      + 18px  worst-case rotation bleed (2:1, see below) so the PAINTED edge
                                      clears the text too, not just the layout box
      ------
       258px  ->  right: -258px
   That leaves a ~4px visual gap between the text and the rotated print at a
   3:2 upload, and exactly 0 at the 2:1 extreme.

   ROTATION BLEED. The 4deg rotation grows the bounding box by
   `width*cos(4) + height*sin(4)`, and half that growth extends each side.
   The rotating element is the whole FIGURE — image PLUS caption (~40px), not
   the image alone — so use the figure height, or you will undercount:
       ratio            img    figure   bleed/side
       16:9 landscape   135      175       5.8px
       1:1  square      240      280       9.5px
       3:2  portrait    360      400      13.7px   <- design against this
       2:1  extreme     480      520      17.8px
   The budget below uses the 3:2 figure (13.7px) as the practical worst case.

   Clearance from the print's rotated right edge to the viewport edge (3:2):
       1920px viewport -> 348.3px   (the width the clipping was reported at)
       1440px viewport -> 108.3px
       1300px viewport ->  38.3px   <- breakpoint, worst case still 34.2px @2:1
       1280px viewport ->  28.3px
       1231.7px         ->    0px   HARD FLOOR for 2:1 — clips below this
   The breakpoint is 1300px, not the 1231.7px floor: it clears even a 2:1
   upload by 34.2px, so no aspect ratio an editor uploads can clip the print.
   Anyone widening the image or the offset spends the 38.3px at 1300px first.

   The left margin is geometrically identical (symmetrical centering) but is
   spoken for by the contents nav, which faces (1300-760)/2 = 270px there. */
@media (min-width: 1300px) {
	.kodlo-note .kodlo-note__cover {
		position: absolute;
		/* = print width (240) + worst-case rotation bleed (18). Measured from
		   the header's padding box, which IS the 680px text measure — see the
		   budget above before changing this. */
		right: -258px;
		/* Anchored below the crumb row (11px mono + 24px margin-bottom) plus the
		   header's own 32px padding-top, so the rotated top edge never swings up
		   into the crumb trail sitting flush right above it. */
		top: 96px;
		margin: 0;
		width: 240px;
		transform: rotate(4deg);
		transform-origin: 50% 50%;
		/* Above .kodlo-corners (z-index:1); below .kodlo-note__title (z-index:3),
		   so the headline reads over the print. The fixed top bar is z-index:1000
		   and still passes over everything on scroll. */
		z-index: 2;
	}
	.kodlo-note .kodlo-note__cover-img {
		box-shadow: 0 18px 40px rgba(10, 10, 10, 0.18), 0 2px 6px rgba(10, 10, 10, 0.1);
	}
	/* NO HALO on the title, and no lede constraint, are both deliberate:
	   with zero overlap there is no text for the print to sit behind, so the
	   cream text-shadow that used to keep overlapped glyphs legible would be
	   painting against the page's own background colour — decorative at best.
	   The lede likewise runs the full column, because the print's left edge
	   stops exactly where the text measure ends. If the tuck is ever
	   reintroduced, both come back together. */
}

/* ---------- Tags ---------- */
.kodlo-note .kodlo-note__tags { display: flex; gap: 8px; margin-top: 24px; }

/* ---------- Related navigation — full-bleed two-tone split ----------
   Two half-viewport buttons, cream by default, flipping to ink on hover (the
   dark panel). Built 1:1 from figma-sections/08-blog-detail-h7703.json
   (node 194:4409): 56px padding, 32px gap dir→group, 8px gap meta→title,
   48px Space Grotesk title, 12px mono labels at 0.12em. */
.kodlo-note .kodlo-note__nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin-top: 96px;
	border-top: 0.8px solid rgba(10, 10, 10, 0.2);
}
.kodlo-note .kodlo-note__nav .kodlo-note__nav-half {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 32px;
	min-height: 223px;
	padding: clamp(28px, 4vw, 56px);
	text-decoration: none;
	color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--secondary);
	transition: background 0.3s ease, color 0.3s ease;
}
.kodlo-note .kodlo-note__nav .kodlo-note__nav-prev { border-right: 0.8px solid rgba(10, 10, 10, 0.2); }
.kodlo-note .kodlo-note__nav .kodlo-note__nav-next { text-align: right; align-items: flex-end; }
.kodlo-note .kodlo-note__nav .kodlo-note__nav-empty { pointer-events: none; }

/* Hover → ink band with cream text. */
.kodlo-note .kodlo-note__nav .kodlo-note__nav-half:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--secondary);
}

.kodlo-note .kodlo-note__nav .kodlo-note__nav-dir {
	display: block;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	line-height: 1;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(10, 10, 10, 0.6);
	transition: color 0.3s ease;
}
.kodlo-note .kodlo-note__nav .kodlo-note__nav-half:hover .kodlo-note__nav-dir { color: rgba(244, 243, 238, 0.6); }
.kodlo-note .kodlo-note__nav .kodlo-note__nav-arrow { display: inline-block; }

.kodlo-note .kodlo-note__nav .kodlo-note__nav-textgroup { display: block; }
.kodlo-note .kodlo-note__nav .kodlo-note__nav-meta {
	display: block;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	line-height: 1;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(10, 10, 10, 0.6);
	margin-bottom: 8px;
	transition: color 0.3s ease;
}
.kodlo-note .kodlo-note__nav .kodlo-note__nav-half:hover .kodlo-note__nav-meta { color: rgba(244, 243, 238, 0.6); }
.kodlo-note .kodlo-note__nav .kodlo-note__nav-title {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	font-size: clamp(28px, 3.4vw, 48px);
	line-height: 1.1;
	letter-spacing: -0.03em;
}

@media (max-width: 768px) {
	/* .kodlo-note__cols stacks via the matching rule above. */
	.kodlo-note .kodlo-note__nav { grid-template-columns: 1fr; }
	.kodlo-note .kodlo-note__nav .kodlo-note__nav-prev {
		border-right: 0;
		border-bottom: 0.8px solid rgba(10, 10, 10, 0.2);
	}
	.kodlo-note .kodlo-note__nav .kodlo-note__nav-next { text-align: left; align-items: flex-start; }
	.kodlo-note .kodlo-note__nav .kodlo-note__nav-empty { display: none; }
	/* Long unbroken titles/slugs must wrap rather than widen the page. */
	.kodlo-note .kodlo-note__nav .kodlo-note__nav-title,
	.kodlo-note .kodlo-note__nav .kodlo-note__nav-meta { overflow-wrap: anywhere; word-break: break-word; }
}

/* ---------- Contents: in-flow list + desktop rail ----------
   TWO SURFACES, ONE OUTLINE.
   (a) The in-flow Table of Contents is Rank Math's block, left in the article
       body where the editor placed it. It is the mobile and crawlable list, so
       it is styled — not replaced — here.
   (b) The desktop rail (.kodlo-note__contents) is a fixed left-edge copy of the
       same outline, shown once the header scrolls past. Additive: it ships
       `hidden` and only JS reveals it.

   No !important anywhere below. The plugin's own block CSS is low-specificity
   (single class selectors), so scoping through .kodlo-note__content out-weighs
   it on specificity alone and the cascade resolves cleanly. */

/* ---- (a) In-flow Rank Math TOC ---- */
.kodlo-note__content .wp-block-rank-math-toc-block {
	margin: 48px 0;
	padding: 28px 0 0;
	border-top: 2px solid rgba(10, 10, 10, 0.15);
}
.kodlo-note__content .wp-block-rank-math-toc-block h2 {
	margin: 0 0 20px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(10, 10, 10, 0.6);
}
.kodlo-note__content .wp-block-rank-math-toc-block nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
}
/* Nested sub-lists indent one step and keep the same rhythm. */
.kodlo-note__content .wp-block-rank-math-toc-block nav ul ul {
	margin-top: 10px;
	padding-left: 20px;
}
.kodlo-note__content .wp-block-rank-math-toc-block nav li {
	margin: 0;
	padding: 0;
}
.kodlo-note__content .wp-block-rank-math-toc-block nav li::marker {
	content: none;
}
.kodlo-note__content .wp-block-rank-math-toc-block nav a {
	font-family: var(--wp--preset--font-family--body);
	font-size: 15px;
	line-height: 1.45;
	color: rgba(10, 10, 10, 0.8);
	text-decoration: none;
	border-bottom: 0.8px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}
.kodlo-note__content .wp-block-rank-math-toc-block nav a:hover,
.kodlo-note__content .wp-block-rank-math-toc-block nav a:focus-visible {
	color: var(--wp--preset--color--primary);
	border-bottom-color: rgba(10, 10, 10, 0.4);
}

/* ---- (b) Desktop contents rail ----
   Bare text against the page: no card, no shadow, no backdrop — only the 2px
   spine on the left. Vertically centred at the viewport's left edge.

   GEOMETRY BUDGET (read before widening).
   The reading column is 760px, centred, so the left margin is
   (100vw - 760) / 2. The corner marks sit at left: 12px and are ~10px wide, so
   usable space starts at ~28px.
       viewport   left margin   usable (-28px)   rail needs 212 + 28 = 240
       1280px        260px          232px        NO  — 8px short
       1300px        270px          242px        yes — 30px clear of the column
       1440px        340px          312px        yes — 72px slack
   Hence the 1300px floor, which is also the cover print's breakpoint
   (see the geometry note above it) — one desktop-furniture threshold per note,
   not two. Anyone widening the rail spends that 30px first. */
.kodlo-note .kodlo-note__contents {
	display: none;
}
.kodlo-note .kodlo-note__contents-sentinel {
	height: 1px;
	margin: 0;
	pointer-events: none;
}

@media (min-width: 1300px) {
	.kodlo-note .kodlo-note__contents {
		display: block;
		position: fixed;
		left: 28px;
		top: 50%;
		width: 212px;
		padding-left: 28px;
		border-left: 2px solid rgba(10, 10, 10, 0.15);
		/* Below the fixed top bar (z-index: 1000), above the corner marks. */
		z-index: 5;
		/* Entry state — JS adds .is-visible to run it forward. */
		opacity: 0.4;
		transform: translate(-40px, -50%);
		transition: opacity 0.25s ease-out, transform 0.25s ease-out;
	}
	.kodlo-note .kodlo-note__contents.is-visible {
		opacity: 1;
		transform: translate(0, -50%);
	}

	/* The rail is shown/hidden via the `hidden` ATTRIBUTE, but the
	   `display: block` above out-weighs the UA sheet's `[hidden] {display:none}`
	   (equal specificity, later origin wins). Without this the rail stays
	   painted at its 0.4 entry opacity once hidden — visibly overlapping the
	   footer. Must stay AFTER the base rule to win on order. */
	.kodlo-note .kodlo-note__contents[hidden] {
		display: none;
	}

	/* A very long outline must never run off the top and bottom of the screen;
	   it scrolls within itself instead.

	   NO SCROLLBAR CHROME IN THE RAIL. The rail is bare text against the page —
	   a track, and especially Chromium's stepper arrows, are exactly the kind of
	   furniture the design excludes. Firefox already renders nothing here, so
	   this is about making Chromium match it.

	   Why the theme's global `::-webkit-scrollbar` rules (style.css) don't do
	   it: those suppress the arrows via `::-webkit-scrollbar-button`, but the
	   same global block also sets the STANDARD `scrollbar-width: thin` on `*`.
	   In Chromium the standard property takes precedence and switches the
	   element to the native thin scrollbar, which ignores every
	   `::-webkit-scrollbar*` rule — arrows included. Firefox has no `-webkit-`
	   path at all, so it just honours `scrollbar-width` and draws its own quiet
	   thin bar. Hence the divergence in the screenshot.

	   `scrollbar-width: none` hides the bar in both engines (Firefox and
	   Chromium 121+) and, being the standard property, wins in Chromium the
	   same way `thin` did. The `::-webkit-scrollbar { display: none }` is the
	   fallback for older WebKit/Blink that predates `scrollbar-width` support —
	   harmless where the standard property already applies. Scrolling itself is
	   unaffected: wheel, drag, keyboard and the reveal-on-active scroll all
	   still work; only the painted chrome goes. */
	.kodlo-note .kodlo-note__contents-list {
		max-height: 60vh;
		overflow-y: auto;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}
	.kodlo-note .kodlo-note__contents-list::-webkit-scrollbar {
		width: 0;
		height: 0;
		display: none;
	}

	.kodlo-note .kodlo-note__contents-label {
		display: block;
		margin-bottom: 18px;
		font-family: var(--wp--preset--font-family--mono);
		font-size: 11px;
		letter-spacing: 0.18em;
		text-transform: uppercase;
		color: rgba(10, 10, 10, 0.6);
	}

	.kodlo-note .kodlo-note__contents-list {
		margin: 0;
		padding: 0;
		list-style: none;
		display: grid;
		gap: 12px;
	}
	.kodlo-note .kodlo-note__contents-item {
		margin: 0;
		padding: 0;
	}
	.kodlo-note .kodlo-note__contents-item--sub {
		padding-left: 18px;
	}

	.kodlo-note .kodlo-note__contents-link {
		display: grid;
		grid-template-columns: auto 1fr;
		gap: 10px;
		align-items: baseline;
		text-decoration: none;
		color: rgba(10, 10, 10, 0.6);
		transition: color 0.2s ease;
	}
	.kodlo-note .kodlo-note__contents-num {
		font-family: var(--wp--preset--font-family--mono);
		font-size: 10px;
		letter-spacing: 0.12em;
		color: rgba(10, 10, 10, 0.4);
		transition: color 0.2s ease;
	}
	.kodlo-note .kodlo-note__contents-text {
		font-family: var(--wp--preset--font-family--body);
		font-size: 12.5px;
		line-height: 1.4;
		/* Long titles WRAP — never truncate. A clipped contents entry is worse
		   than a two-line one. */
		overflow-wrap: anywhere;
	}

	.kodlo-note .kodlo-note__contents-link:hover,
	.kodlo-note .kodlo-note__contents-link:focus-visible {
		color: rgba(10, 10, 10, 0.9);
	}

	/* Active row: full-strength ink, weight 600. */
	.kodlo-note .kodlo-note__contents-item.is-active .kodlo-note__contents-link {
		color: var(--wp--preset--color--primary);
	}
	.kodlo-note .kodlo-note__contents-item.is-active .kodlo-note__contents-text {
		font-weight: 600;
	}
	.kodlo-note .kodlo-note__contents-item.is-active .kodlo-note__contents-num {
		color: var(--wp--preset--color--primary);
	}

	.kodlo-note .kodlo-note__contents-foot {
		margin: 20px 0 0;
		padding-top: 14px;
		border-top: 0.8px solid rgba(10, 10, 10, 0.15);
		font-family: var(--wp--preset--font-family--mono);
		font-size: 10px;
		letter-spacing: 0.12em;
		text-transform: uppercase;
		color: rgba(10, 10, 10, 0.6);
	}
	.kodlo-note .kodlo-note__contents-sep {
		margin: 0 4px;
	}
}

/* Reduced motion: the rail still appears, it just does not slide or fade.
   The entry offset is removed so nothing animates in from off-canvas. */
@media (prefers-reduced-motion: reduce) {
	.kodlo-note .kodlo-note__contents {
		transition: none;
		opacity: 1;
		transform: translate(0, -50%);
	}
}
