/* Blog (blog500, 2026-10-04): article page, list pages, live-data shortcodes. Tokens come from the theme's :root
   (design-system/MASTER.md): red on white/cream, Heebo, soft two-layer shadows, custom easing, hover only on fine
   pointers, press = scale(.97). Prose: 18px, line-height 1.8, ~70ch. */

.nlb-wrap { max-width: 1088px; }

/* ---------------------------------------------------------------- head: breadcrumb, H1, lead, meta */
.nlb-head { background: var(--cream); border-bottom: 1px solid var(--line); padding: 22px 0 30px; }
.nlb-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0 0 14px; padding: 0; font-size: 0.875rem; color: var(--muted); }
.nlb-crumbs li { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; }
.nlb-crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line-2); }
.nlb-crumbs a { display: inline-block; padding: 6px 0; color: var(--ink-2); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .nlb-crumbs a:hover { color: var(--red); text-decoration: underline; } }
.nlb-crumbs [aria-current] { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: min(46ch, 100%); }
.nlb-title { font-size: clamp(1.75rem, 3.8vw, 2.75rem); line-height: 1.2; margin: 0 0 12px; max-width: 32ch; }
.nlb-title__p { color: var(--muted); font-weight: 700; font-size: .6em; }
.nlb-lead { margin: 0 0 14px; max-width: 62ch; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--ink-2); }
.nlb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; color: var(--muted); font-size: 0.9375rem; }
.nlb-meta a { display: inline-block; padding: 4px 0; color: var(--red); font-weight: 700; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .nlb-meta a:hover { text-decoration: underline; } }

/* ---------------------------------------------------------------- hero: the LCP image, its box sized before it loads */
.nlb-hero { margin-top: 28px; }
.nlb-hero picture { display: block; border-radius: var(--r); overflow: hidden; background: var(--art-bg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.nlb-hero img { display: block; width: 100%; height: auto; }
/* hero clip (decorative, blog.js adds it after load): the box is the picture's grid cell, the video is absolute
   inside it → it never sizes anything (CLS 0); it fades in once it plays and stays off under reduced motion */
.nlb-hero[data-nlb-clip-mp4] { display: grid; position: relative; }
.nlb-hero[data-nlb-clip-mp4] > picture { grid-area: 1 / 1 / 2 / 2; min-width: 0; }
.nlb-hero__clip { grid-area: 1 / 1 / 2 / 2; position: absolute; inset: 1px; width: calc(100% - 2px); height: calc(100% - 2px); display: block; object-fit: cover; border-radius: calc(var(--r) - 1px); opacity: 0; transition: opacity 700ms var(--ease-out); pointer-events: none; }
.nlb-hero__clip.is-on { opacity: 1; }

/* ---------------------------------------------------------------- layout: text (start side) + table of contents */
.nlb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; align-items: start; padding-top: 36px; padding-bottom: 64px; }
.nlb-layout--solo { grid-template-columns: minmax(0, 1fr); }
.nlb-main { grid-column: 1; grid-row: 1; min-width: 0; }
.nlb-toc { grid-column: 2; grid-row: 1; position: sticky; top: 92px; max-height: calc(100vh - 112px); overflow-y: auto; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--cream); font-size: 0.9375rem; }
.nlb-toc__h { margin: 0 0 8px; font-weight: 800; color: var(--ink); }
.nlb-toc__btn { display: none; }
.nlb-toc ol { margin: 0; padding-inline-start: 20px; }
.nlb-toc li { margin-bottom: 6px; line-height: 1.45; }
.nlb-toc a { display: inline-block; padding: 2px 0; color: var(--ink-2); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .nlb-toc a:hover { color: var(--red); text-decoration: underline; } }

/* ---------------------------------------------------------------- prose */
.nlb-prose { max-width: 70ch; font-size: 1.125rem; line-height: 1.8; color: var(--ink); overflow-wrap: break-word; }
.nlb-prose > * { margin-top: 0; margin-bottom: 1.1em; }
.nlb-prose h2 { margin: 1.9em 0 .6em; font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.3; scroll-margin-top: 92px; }
.nlb-prose h2:first-child { margin-top: 0; }
.nlb-prose h3 { margin: 1.5em 0 .5em; font-size: 1.25rem; line-height: 1.35; scroll-margin-top: 92px; }
.nlb-prose ul, .nlb-prose ol { padding-inline-start: 1.4em; }
.nlb-prose li { margin-bottom: .45em; }
.nlb-prose li::marker { color: var(--red); }
.nlb-prose a:not(.nlc-btn) { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .nlb-prose a:not(.nlc-btn):hover { color: var(--red-d); text-decoration-thickness: 2px; } }
.nlb-prose strong { font-weight: 700; }
.nlb-prose blockquote { margin: 1.4em 0; padding: 6px 20px; border-inline-start: 4px solid var(--red); background: var(--cream); border-start-end-radius: var(--r-sm); border-end-end-radius: var(--r-sm); color: var(--ink-2); }
.nlb-prose blockquote > :last-child { margin-bottom: 0; }
.nlb-prose figure { margin: 1.6em 0; }
.nlb-prose figcaption { margin-top: 6px; font-size: 0.875rem; color: var(--muted); }
.nlb-prose img { border-radius: var(--r-sm); }
.nlb-prose > table, .nlb-prose .nlb-tablewrap table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.5; }
.nlb-prose > table th, .nlb-prose > table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.nlb-prose > table thead th { background: var(--cream); font-weight: 700; }
.nlb-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* ---------------------------------------------------------------- byline */
.nlb-by { display: flex; gap: 18px; align-items: flex-start; max-width: 44.25rem; /* = the text column (70ch at 18px) */ margin: 40px 0 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--shadow); }
.nlb-by__logo { flex: none; width: 110px; height: auto; margin-top: 4px; }
.nlb-by__n { margin: 0 0 4px; font-weight: 800; font-size: 1.0625rem; }
.nlb-by__n a { color: var(--red); }
.nlb-by__t { margin: 0; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.65; }

/* ---------------------------------------------------------------- call-to-action boxes ([nlc_cta] + end of article) */
.nlb-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; margin: 1.6em 0; padding: 22px 24px; border: 1px solid var(--line); border-inline-start: 4px solid var(--red); border-radius: var(--r); background: var(--cream); }
.nlb-cta__txt { flex: 1 1 300px; min-width: 0; }
.nlb-cta p { margin: 0; }
.nlb-cta__t { font-weight: 800; font-size: 1.1875rem; line-height: 1.35; color: var(--ink); }
.nlb-cta__d { margin-top: 4px !important; font-size: 1rem; line-height: 1.6; color: var(--ink-2); }
.nlb-cta__go { flex: none; }
.nlb-prose .nlb-cta .nlc-btn, .nlb-cta .nlc-btn { color: #fff; text-decoration: none; }
.nlb-cta--end { max-width: 44.25rem; margin: 28px 0 0; background: var(--ink); border-color: var(--ink); }
.nlb-cta--end .nlb-cta__t { color: #fff; }
.nlb-cta--end .nlb-cta__d { color: #e3dccf; }
.nlb-cta--end .nlc-btn--light, .nlb-cta .nlc-btn--light { background: #fff; border-color: #fff; color: var(--red); }
@media (hover: hover) and (pointer: fine) { .nlb-cta .nlc-btn--light:hover { background: var(--red-50); border-color: var(--red-50); color: var(--red-d); } }

/* ---------------------------------------------------------------- [nlc_sites] table */
.nlb-sites { margin: 1.6em 0; }
.nlb-sites__scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: 0 1px 2px rgba(28, 26, 23, .05); }
.nlb-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.45; }
.nlb-table caption { padding: 12px 16px; text-align: start; font-weight: 800; font-size: 1rem; background: var(--cream); border-bottom: 1px solid var(--line); }
.nlb-table__sort { font-weight: 400; color: var(--muted); font-size: 0.875rem; }
.nlb-table th, .nlb-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.nlb-table thead th { font-size: 0.8125rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.nlb-table tbody tr:last-child > * { border-bottom: 0; }
.nlb-table tbody th { font-weight: 400; }
.nlb-prose .nlb-table tbody th a, .nlb-table tbody th a { display: inline-block; padding: 2px 0; font-weight: 800; color: var(--ink); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .nlb-prose .nlb-table tbody th a:hover, .nlb-table tbody th a:hover { color: var(--red); text-decoration: underline; } }
.nlb-table small { display: block; color: var(--muted); font-size: 0.8125rem; }
.nlb-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.nlb-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.nlb-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--cream-2); color: var(--ink-2); font-size: 0.75rem; font-weight: 600; line-height: 1.6; }
.nlb-tag--warn { background: #fff3d6; color: var(--gold-d); }
.nlb-sites__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin: 10px 0 0 !important; font-size: 0.875rem; line-height: 1.6; color: var(--muted); }
.nlb-sites__foot a { font-weight: 700; }

/* ---------------------------------------------------------------- [nlc_site show="card"] */
.nlb-site { margin: 1.6em 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--shadow); font-size: 1rem; line-height: 1.55; }
.nlb-site p { margin: 0; }
.nlb-site__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.nlb-prose a.nlb-site__host, .nlb-site__host { font-weight: 800; font-size: 1.1875rem; color: var(--ink); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .nlb-prose a.nlb-site__host:hover, .nlb-site__host:hover { color: var(--red); text-decoration: underline; } }
.nlb-site__l { color: var(--muted); font-size: 0.9375rem; }
.nlb-site__kv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.nlb-site__kv div { padding: 6px 8px; border-radius: 8px; background: var(--cream); text-align: center; }
.nlb-site__kv dt { font-size: 0.8125rem; color: var(--muted); }
.nlb-site__kv dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.nlb-site__m { color: var(--ink-2); font-size: 0.9375rem; }
.nlb-site__go { margin-top: 12px !important; }
.nlb-src { margin-top: 10px !important; font-size: 0.8125rem; color: var(--muted); }
.nlb-terms { display: block; padding: 10px 14px; border-radius: var(--r-sm); background: var(--cream); font-size: 0.9375rem; color: var(--ink-2); }

/* ---------------------------------------------------------------- list pages: chips, cards, pager */
.nlb-list { padding-top: 28px; padding-bottom: 72px; }
.nlb-chips ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 26px; padding: 0; }
.nlb-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font-weight: 600; font-size: 0.9375rem; text-decoration: none; transition: transform var(--t-press) var(--ease-out), border-color var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out); }
.nlb-chips a[aria-current] { background: var(--red); border-color: var(--red); color: #fff; }
@media (hover: hover) and (pointer: fine) { .nlb-chips a:not([aria-current]):hover { border-color: var(--red); color: var(--red); } }
.nlb-chips a:active { transform: scale(.97); }
.nlb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.nlb-card { min-width: 0; }
.nlb-card__a { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), border-color var(--t-hover) var(--ease-out); -webkit-tap-highlight-color: transparent; }
@media (hover: hover) and (pointer: fine) {
	.nlb-card__a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--line-2); }
	.nlb-card__a:hover .nlb-card__t { color: var(--red); }
}
.nlb-card__a:active { transform: scale(.985); }
.nlb-card__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--art-bg); border-bottom: 1px solid var(--line); }
.nlb-card__img picture, .nlb-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nlb-card__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.nlb-card__cat { font-size: 0.8125rem; font-weight: 700; color: var(--gold-d); }
.nlb-card__t { margin: 0; font-size: 1.1875rem; line-height: 1.35; font-weight: 800; transition: color var(--t-hover) var(--ease-out); }
.nlb-card__ex { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.6; }
.nlb-card__meta { margin-top: auto; padding-top: 6px; font-size: 0.8125rem; color: var(--muted); }
.nlb-pager { margin-top: 36px; }
.nlb-pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nlb-pager a, .nlb-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.nlb-pager .current { background: var(--red); border-color: var(--red); color: #fff; }
.nlb-pager .dots { border: 0; background: none; }
@media (hover: hover) and (pointer: fine) { .nlb-pager a:hover { border-color: var(--red); color: var(--red); } }
.nlb-empty { padding: 28px; border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--cream); }
.nlb-empty__t { font-weight: 800; font-size: 1.1875rem; margin: 0 0 6px; }
.nlb-empty p:last-child { margin: 0; }
.nlb-related { padding: 48px 0 64px; background: var(--cream); border-top: 1px solid var(--line); }
.nlb-related h2 { margin: 0 0 20px; font-size: 1.5rem; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1023px) {
	.nlb-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
	.nlb-toc { grid-column: 1; grid-row: 1; position: static; max-height: none; overflow: visible; padding: 4px 16px; }
	.nlb-main { grid-row: 2; }
	.nlb-layout--solo .nlb-main { grid-row: 1; }
	/* phones/tablets: a closed box with a toggle (blog.js). The class on <html> is set in <head>, so the box is
	   closed from the first paint — no layout shift. Without JS the list simply shows. */
	.nlt-js .nlb-toc__btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 48px; padding: 0; border: 0; background: none; color: var(--ink); font: 800 1rem/1.3 var(--font); cursor: pointer; text-align: start; }
	.nlt-js .nlb-toc__btn svg { flex: none; transition: transform 200ms var(--ease-out); }
	.nlt-js .nlb-toc.is-open .nlb-toc__btn svg { transform: rotate(180deg); }
	.nlt-js .nlb-toc__h { display: none; }
	html:not(.nlt-js) .nlb-toc { padding: 14px 16px; }
	.nlt-js .nlb-toc:not(.is-open) ol { display: none; }
	.nlt-js .nlb-toc.is-open ol { padding-bottom: 12px; }
	.nlb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 600px) {
	.nlb-head { padding: 14px 0 24px; }
	.nlb-crumbs li:last-child { display: none; } /* the H1 right below says it; saves a wrapped line */
	.nlb-crumbs ol { margin-bottom: 8px; }
	.nlb-hero { margin-top: 20px; }
	.nlb-prose { font-size: 1.0625rem; line-height: 1.8; }
	.nlb-grid { grid-template-columns: minmax(0, 1fr); }
	.nlb-by { flex-direction: column; gap: 10px; padding: 18px; }
	.nlb-cta { padding: 18px; }
	.nlb-cta__go, .nlb-cta__go .nlc-btn { width: 100%; }
	.nlb-site__kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nlb-table th, .nlb-table td { padding: 9px 10px; }
	.nlb-table { font-size: 0.875rem; }
	.nlb-related { padding: 36px 0 48px; }
}
@media (prefers-reduced-motion: reduce) {
	.nlb-hero__clip { display: none; }
	.nlb-card__a, .nlb-chips a, .nlb-toc__btn svg { transition: none !important; }
	.nlb-card__a:hover, .nlb-card__a:active, .nlb-chips a:active { transform: none !important; }
}
