/* noam-links catalogue: view tabs, tools, filters, multi-select, cards, hearts, pager, dialogs, site-page additions.
   Loaded after the theme (style.css tokens: --red, --ink, --cream, --line, --r, --shadow …) on the catalogue, site and
   home pages. Design system: revenue/links-store/design-system/MASTER.md.

   Motion here (MASTER "Motion", Emil): press = scale(.97) over 160ms ease-out on every pressable; hover = colour only,
   150ms, and only on fine pointers; the table, the card grid and the filters never animate in (no stagger, no entrance:
   it is high-frequency UI). Only the occasional surfaces open with a short entrance: the topic picker and the CSV menu
   (180ms, from their trigger) and the two tool dialogs (240ms, centred). Reduced motion keeps opacity fades only. */

:root {
	--nlc-ease: var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1));
	--nlc-shadow-lift: 0 2px 4px rgba(28, 26, 23, .06), 0 16px 40px rgba(28, 26, 23, .12);
	--nlc-line-2: #d8cdb8;     /* a stronger 1px border: hovered cards, hovered selects */
	--nlc-heart: #8f8478;      /* an empty heart: 3.6:1 on white (WCAG non-text contrast ≥ 3:1) */
	--nlc-row-hover: #fffcf6;
	--nlc-mint: #f2f8f4;       /* add-ons / promoted-domain panels */
	--nlc-mint-line: #cfe7d8;
	--nlc-green-50: #eef8f1;   /* banners, drop note, "dofollow" tag */
	--nlc-green-100: #e3f4e9;  /* status "live" (MASTER) */
	--nlc-green-line: #bfe3cb;
	--nlc-blue-50: #e6f0ff;    /* "new" */
	--nlc-blue-d: #1d4f9c;
	--nlc-gold-50: #fff8e6;
	--nlc-gold-100: #fff3d6;   /* status "work" (MASTER) */
}

/* ---------------------------------------------------------------- shared press feedback (every pressable) */
.nlc-views a, .nlc-tool, .nlc-ftoggle, .nlc-layout__b, .nlc-pager a, .nlc-cat .nlc-f--checks label, .nlc-promote__chk,
.nlc-adv summary, .nlc-csv__menu button, .nlc-cat .nlc-btn, .nlc-tooldlg .nlc-btn, .nlc-similar a, .nlc-fav {
	transition: transform 160ms var(--nlc-ease), color 150ms ease, background-color 150ms ease, border-color 150ms ease;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}
.nlc-views a:active, .nlc-tool:active, .nlc-ftoggle:active, .nlc-layout__b:active, .nlc-pager a:active,
.nlc-cat .nlc-f--checks label:active, .nlc-promote__chk:active, .nlc-adv summary:active, .nlc-csv__menu button:active,
.nlc-cat .nlc-btn:active, .nlc-tooldlg .nlc-btn:active, .nlc-similar a:active { transform: scale(.97); }
/* selects and the select-like topic button: pressed = a tinted fill, no scale (the native list opens from them) */
.nlc-cat .nlc-f select, .nlc-msel { transition: border-color 150ms ease, background-color 150ms ease; }
.nlc-cat .nlc-f select:active, .nlc-msel:active { background-color: var(--cream); }
/* focus: the design system's ring on every control, also where the theme replaced it with a pale shadow */
.nlc-cat .nlc-f input[type=search]:focus-visible, .nlc-cat .nlc-f input[type=number]:focus-visible, .nlc-cat .nlc-f select:focus-visible,
.nlc-msel:focus-visible, .nlc-tooldlg textarea:focus-visible, .nlc-tooldlg input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------------------------------------------------------------- view tabs (filter chips) */
.nlc-views { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 2px 10px; margin: 0 0 6px; }
.nlc-views a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.nlc-views a[aria-current] { background: var(--red); border-color: var(--red); color: #fff; }
.nlc-views__n { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--cream-2); color: var(--ink-2); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.nlc-views a[aria-current] .nlc-views__n { background: rgba(255, 255, 255, .22); color: #fff; }

/* ---------------------------------------------------------------- tools row */
.nlc-tools { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 12px; margin: 0 0 12px; }
.nlc-tool { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 600 15px/1.2 var(--font); cursor: pointer; }
.nlc-tool svg { color: var(--red); flex-shrink: 0; }
.nlc-promote { display: grid; grid-template-columns: auto minmax(0, 280px); align-items: center; gap: 4px 10px; padding: 8px 14px; border-radius: var(--r-sm); background: var(--nlc-mint); border: 1px solid var(--nlc-mint-line); margin-inline-start: auto; }
.nlc-promote > label:first-child { font-weight: 700; font-size: 14px; }
.nlc-promote select { height: 44px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; font: 15px var(--font); min-width: 0; }
.nlc-promote__chk { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; min-height: 36px; }
.nlc-promote__chk input { width: 18px; height: 18px; accent-color: var(--green); }
.nlc-promote small { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }

/* ---------------------------------------------------------------- filters */
.nlc-ftoggle { display: none; }
.nlc-cat .nlc-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nlc-cat .nlc-f--q { grid-column: span 2; }
.nlc-f__lbl { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.nlc-f input[type=number] { height: 44px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; font: 16px var(--font); color: var(--ink); min-width: 0; width: 100%; -moz-appearance: textfield; }
.nlc-f input[type=number]::-webkit-outer-spin-button, .nlc-f input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nlc-f--range { border: 0; padding: 0; margin: 0; min-width: 0; }
.nlc-f--range legend { padding: 0; margin-bottom: 4px; }
.nlc-range { display: flex; align-items: center; gap: 6px; }
.nlc-range span { color: var(--muted); }

/* the yes/no options as chips: the whole pill is the hit area, the checked state is a red tint (and the tick) */
.nlc-cat .nlc-f--checks { gap: 8px; }
.nlc-cat .nlc-f--checks label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px 6px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.3; cursor: pointer; user-select: none; }
.nlc-cat .nlc-f--checks label:has(input:checked) { border-color: var(--red); background: var(--red-50); color: var(--red-d); font-weight: 600; }
.nlc-cat .nlc-f--checks input { flex-shrink: 0; margin: 0; }
@supports selector(:has(*)) {
	/* one focus ring around the whole chip instead of a ring on the small box inside it */
	.nlc-cat .nlc-f--checks label:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
	.nlc-cat .nlc-f--checks input:focus-visible { outline: none; }
}

/* topic multi-select */
.nlc-f--topics { position: relative; }
.nlc-msel { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; font: 16px var(--font); color: var(--ink); cursor: pointer; text-align: start; min-width: 0; width: 100%; }
.nlc-msel > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nlc-msel[aria-expanded=true] { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-50); }
.nlc-msel__arr { color: var(--muted); font-size: 13px; }
.nlc-msel__panel { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 35; width: min(460px, calc(100vw - 40px)); padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: 0 18px 50px rgba(28, 26, 23, .18); transform-origin: top right; }
.nlc-msel__note { margin: 0 0 8px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--nlc-gold-50); color: var(--gold-d); font-size: 14px; font-weight: 600; }
.nlc-msel__list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; max-height: 300px; overflow: auto; padding: 4px; overscroll-behavior: contain; }
.nlc-msel__list label { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 6px; border-radius: 8px; cursor: pointer; font-size: 15px; font-weight: 400; color: var(--ink); }
.nlc-msel__list label:has(input:checked) { background: var(--red-50); }
.nlc-msel__list input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--red); }
.nlc-msel__list small { margin-inline-start: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.nlc-msel__acts { display: flex; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.nlc-msel__acts .nlc-btn { min-height: 44px; }

/* advanced */
.nlc-adv { grid-column: 1 / -1; border-top: 1px dashed var(--line); padding-top: 8px; }
.nlc-adv summary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; cursor: pointer; font-weight: 700; color: var(--red); font-size: 15px; border-radius: 8px; }
.nlc-adv__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 12px 14px; align-items: start; padding-top: 8px; }
.nlc-adv__in .nlc-f--checks { grid-column: auto; padding-top: 24px; }

/* ---------------------------------------------------------------- banner, bar, layout switch, CSV */
.nlc-banner { display: grid; gap: 8px; margin: 14px 0 0; }
.nlc-banner__item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 10px 16px; border-radius: var(--r-sm); background: var(--nlc-green-50); border: 1px solid var(--nlc-green-line); }
.nlc-banner__item p { margin: 0; }
.nlc-banner__item details { flex-basis: 100%; font-size: 14px; }
.nlc-banner__item summary { cursor: pointer; color: var(--ink-2); font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.nlc-banner__miss { columns: 3 180px; margin: 6px 0 0; padding-inline-start: 18px; font-size: 14px; }
.nlc-banner .nlc-linkbtn { min-height: 32px; font-size: 15px; }
.nlc-cat .nlc-bar__actions { flex-wrap: wrap; align-items: center; }
.nlc-layout { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.nlc-layout__b { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border: 0; background: #fff; color: var(--ink-2); font: 600 14px var(--font); cursor: pointer; }
.nlc-layout__b + .nlc-layout__b { border-inline-start: 1.5px solid var(--line); }
.nlc-layout__b[aria-pressed=true] { background: var(--ink); color: #fff; }
.nlc-layout__b:focus-visible { outline-offset: -4px; border-radius: 999px; } /* the pill clips what is outside it */
.nlc-csv { position: relative; }
.nlc-csv__menu { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 30; display: grid; min-width: 200px; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; box-shadow: var(--shadow); transform-origin: top left; }
.nlc-csv__menu button { min-height: 44px; padding: 8px 12px; border: 0; border-radius: 8px; background: none; text-align: start; font: 600 15px var(--font); color: var(--ink); cursor: pointer; }
.nlc-csv__menu button:focus-visible { background: var(--cream); color: var(--red); outline-offset: -3px; }
.nlc-addsite { margin: -2px 0 12px; font-size: 15px; }
.nlc-addsite a { font-weight: 600; }
.nlc-count:focus { outline: none; }

/* ---------------------------------------------------------------- results: table + rows (no motion — high-frequency) */
.nlc-cat .nlc-table { box-shadow: var(--shadow); }
.nlc-site__top { display: flex; align-items: center; gap: 2px; min-width: 0; }
.nlc-site__top .nlc-host { flex: 1 1 auto; min-width: 0; }
.nlc-fav { flex: 0 0 auto; display: inline-grid; place-items: center; width: 40px; height: 40px; margin-inline-start: -8px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--nlc-heart); cursor: pointer; }
.nlc-fav svg { fill: none; stroke: currentColor; stroke-width: 2; transition: transform 160ms var(--nlc-ease); }
.nlc-fav[aria-pressed=true] { color: var(--red); }
.nlc-fav[aria-pressed=true] svg { fill: currentColor; }
.nlc-fav:active svg { transform: scale(.85); }
@media (pointer: coarse) { .nlc-fav { width: 44px; height: 44px; } }
.nlc-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.nlc-tags .nlc-tag { margin: 0; }
.nlc-tag--mark { background: var(--nlc-gold-100); color: var(--gold-d); }
.nlc-tag--new { background: var(--nlc-blue-50); color: var(--nlc-blue-d); }
.nlc-tag--add { background: var(--cream); color: var(--ink-2); border: 1px solid var(--line); font-weight: 600; }
.nlc-tag--ord { background: var(--nlc-green-100); color: var(--green); }
.nlc-tag--df { background: var(--nlc-green-50); color: var(--green); }
.nlc-tr.is-ord, .nlc-sc.is-ord { box-shadow: inset 4px 0 0 var(--green); }
.nlc-drop { display: block; font-size: 12px; font-weight: 700; color: var(--green); white-space: nowrap; }
.nlc-cat .nlc-tr { grid-template-columns: minmax(220px, 2.4fr) minmax(150px, 1.8fr) 56px 76px 110px 96px; }

/* ---------------------------------------------------------------- cards (Soft UI: white on a cream band) */
.nlc-cat.is-grid .nlc-grid { padding: 16px; border-radius: var(--r); background: var(--cream); }
.nlc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.nlc-sc { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 14px 16px 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--shadow); transition: border-color 150ms ease; }
/* the stronger hover shadow lives on a layer that only fades (opacity) — nothing moves, nothing re-lays out */
.nlc-sc::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; box-shadow: var(--nlc-shadow-lift); opacity: 0; transition: opacity 150ms ease; pointer-events: none; }
.nlc-sc.is-ord { box-shadow: inset 4px 0 0 var(--green), var(--shadow); }
.nlc-sc__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -4px 0 -4px; }
.nlc-sc__cat { padding: 2px 10px; border-radius: 999px; background: var(--red-50); color: var(--red-d); font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nlc-sc__head .nlc-fav { margin: 0 -8px 0 0; }
.nlc-sc__host { margin: 0; font-size: 17px; line-height: 1.3; }
.nlc-sc__host a { display: block; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; border-radius: 4px; }
.nlc-sc__label { margin: -6px 0 0; color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nlc-sc__topics { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nlc-sc__topics li { padding: 1px 9px; border-radius: 999px; background: var(--cream-2); font-size: 12px; color: var(--ink-2); }
.nlc-sc__m { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; }
.nlc-sc__m div { padding: 6px 8px; border-radius: 9px; background: var(--cream); text-align: center; min-width: 0; }
.nlc-sc__m dt { font-size: 12px; line-height: 1.25; color: var(--muted); }
.nlc-sc__m dd { margin: 0; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.nlc-sc__foot { margin-top: auto; display: grid; gap: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.nlc-sc__price { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.nlc-sc__price .nlc-drop { display: inline-block; margin-inline-start: 8px; font-size: 13px; }
.nlc-sc__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nlc-sc__acts .nlc-btn { min-height: 44px; padding: 6px 10px; font-size: 15px; }
.nlc-sc__terms { font-size: 14px; }
.nlc-sc__terms summary { min-height: 36px; display: flex; align-items: center; cursor: pointer; color: var(--red); font-weight: 600; border-radius: 6px; }
.nlc-sc__tbody { max-height: 180px; overflow: auto; padding: 8px 10px; border-radius: 8px; background: var(--cream); color: var(--ink-2); }
.nlc-sc__tbody p { margin: 0 0 6px; }

/* ---------------------------------------------------------------- empty state + pager */
.nlc-empty { display: grid; justify-items: center; gap: 2px; padding: 28px 24px 26px; border: 1px solid var(--line); border-radius: var(--r); background: var(--cream); text-align: center; }
.nlc-empty__art { width: 168px; aspect-ratio: 1; margin-bottom: 10px; overflow: hidden; border-radius: var(--r); box-shadow: var(--shadow); } /* the image's own cream reads as a deliberate tile */
.nlc-empty__art picture, .nlc-empty__art img { display: block; width: 100%; height: auto; }
.nlc-empty__txt { max-width: 56ch; }
.nlc-empty p { margin: 0 0 8px; color: var(--ink-2); }
.nlc-empty .nlc-empty__t { margin-bottom: 6px; font-size: 20px; font-weight: 800; line-height: 1.3; color: var(--ink); text-wrap: balance; }
.nlc-empty .nlc-empty__acts { margin: 14px 0 0; }
.nlc-pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 18px 0; padding: 0; }
.nlc-pager--top ul { margin: 0 0 12px; justify-content: flex-start; }
.nlc-pager a { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.nlc-pager a[aria-current=page] { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------------------------------------------------------------- tool dialogs */
.nlc-tooldlg textarea { width: 100%; min-height: 160px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font: 15px/1.5 ui-monospace, Menlo, Consolas, monospace; text-align: left; }
.nlc-tooldlg input[type=text] { width: 100%; height: 46px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font: 16px var(--font); }
.nlc-tooldlg textarea:focus, .nlc-tooldlg input:focus { border-color: var(--red); }
.nlc-tooldlg form { display: grid; gap: 14px; }
.nlc-dlg__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.nlc-fit__res { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.nlc-fit__list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; border: 0; padding: 0; margin: 0 0 10px; }
.nlc-fit__list label { display: flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; }
.nlc-fit__list input { width: 18px; height: 18px; accent-color: var(--red); flex-shrink: 0; }
.nlc-fit__more { margin-bottom: 12px; }
.nlc-fit__more summary { cursor: pointer; color: var(--red); font-weight: 600; min-height: 36px; display: inline-flex; align-items: center; }

/* ---------------------------------------------------------------- entrances: occasional surfaces only */
.nlc-msel__panel, .nlc-csv__menu { transition: opacity 180ms var(--nlc-ease), transform 180ms var(--nlc-ease); }
.nlc-tooldlg[open] { transition: opacity 240ms var(--nlc-ease), transform 240ms var(--nlc-ease); }
.nlc-tooldlg[open]::backdrop { transition: opacity 240ms var(--nlc-ease); }
@starting-style {
	.nlc-msel__panel, .nlc-csv__menu { opacity: 0; transform: translateY(-4px) scale(.98); }
	.nlc-tooldlg[open] { opacity: 0; transform: scale(.96); }
	.nlc-tooldlg[open]::backdrop { opacity: 0; }
}

/* ---------------------------------------------------------------- site page additions */
.nlc-site-head { display: flex; align-items: flex-start; gap: 12px; }
.nlc-site-head h1 { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
/* the category illustration: small, decorative, a fixed box (the img carries width/height too — no layout shift) */
.nlc-site-art { flex: 0 0 auto; width: 88px; aspect-ratio: 1; margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--cream); box-shadow: var(--shadow); }
.nlc-site-art picture, .nlc-site-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nlc-fav--lg { width: 48px; height: 48px; margin: 22px 0 0; border: 1.5px solid var(--line); background: #fff; }
.nlc-fav--lg svg { width: 24px; height: 24px; }
/* site page facts: wider tiles, and the links tile spans two with its note on its own line — no lone 7th tile in a
   narrow column breaking into four lines (1440: 6 + 1 before) */
.nlc-site-page .nlc-kv { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.nlc-kv__links { grid-column: span 2; }
.nlc-kv__soft { display: block; font-weight: 500; font-size: 0.8125rem; color: var(--muted); }
.nlc-chips .nlc-chip--new { background: var(--nlc-blue-50); color: var(--nlc-blue-d); font-weight: 700; }
.nlc-addons { border: 1px solid var(--nlc-mint-line); background: var(--nlc-mint); border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: 12px; }
.nlc-addons h2, .nlc-addons h3 { font-size: 16px; margin: 0 0 6px; }
.nlc-addons ul { margin: 0; padding-inline-start: 18px; font-size: 15px; color: var(--ink-2); }
.nlc-ordercard__drop { margin: 0 0 10px; padding: 6px 10px; border-radius: 8px; background: var(--nlc-green-50); color: var(--green); font-size: 14px; font-weight: 700; }
.nlc-similar { margin-top: 30px; }
.nlc-similar h2 { font-size: 22px; margin-bottom: 2px; }
.nlc-similar__sub { color: var(--muted); font-size: 15px; }
.nlc-similar ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.nlc-similar a { position: relative; display: grid; gap: 2px; height: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform 180ms var(--nlc-ease), border-color 150ms ease; }
.nlc-similar a::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; box-shadow: var(--nlc-shadow-lift); opacity: 0; transition: opacity 180ms var(--nlc-ease); pointer-events: none; }
.nlc-similar a b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.nlc-similar__l, .nlc-similar__m { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nlc-similar__p { font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- hover: fine pointers only (150ms, colour) */
@media (hover: hover) and (pointer: fine) {
	.nlc-views a:not([aria-current]):hover, .nlc-tool:hover { border-color: var(--red); color: var(--red); }
	.nlc-pager a:not([aria-current]):hover { border-color: var(--red); color: var(--red); }
	.nlc-layout__b:not([aria-pressed=true]):hover { background: var(--cream); color: var(--ink); }
	.nlc-cat .nlc-f select:hover, .nlc-msel:not([aria-expanded=true]):hover, .nlc-f input[type=number]:hover { border-color: var(--nlc-line-2); }
	.nlc-cat .nlc-f--checks label:not(:has(input:checked)):hover { border-color: var(--nlc-line-2); background: var(--cream); }
	.nlc-msel__list label:hover { background: var(--cream); }
	.nlc-msel__list label:has(input:checked):hover { background: var(--red-50); }
	.nlc-csv__menu button:hover { background: var(--cream); color: var(--red); }
	.nlc-fav:hover { color: var(--red); background: var(--red-50); }
	.nlc-sc:hover { border-color: var(--nlc-line-2); }
	.nlc-sc:hover::after { opacity: 1; }
	.nlc-sc__host a:hover { color: var(--red); text-decoration: underline; }
	.nlc-similar a:hover { border-color: var(--red); transform: translateY(-2px); }
	.nlc-similar a:hover:active { transform: scale(.97); }
	.nlc-similar a:hover::after { opacity: 1; }
}
/* touch: the theme's row tint would stick after a tap */
@media (hover: none) {
	.nlc-cat .nlc-tr:not(.nlc-tr--head):hover { background: transparent; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
	.nlc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
	.nlc-cat .nlc-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.nlc-cat .nlc-f--q { grid-column: 1 / -1; }
	.nlc-promote { margin-inline-start: 0; }
}
@media (max-width: 900px) {
	.nlc-cat .nlc-tr { grid-template-columns: auto auto 1fr auto; }
	.nlc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nlc-ftoggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; margin-bottom: 10px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font: 700 15px var(--font); cursor: pointer; }
	.nlc-ftoggle[aria-expanded=true] { background: var(--ink); color: #fff; }
	.nlc-cat .nlc-filters:not(.is-open) { display: none; }
	.nlc-similar ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nlc-adv__in { grid-template-columns: 1fr; }
	.nlc-adv__in .nlc-f--checks { padding-top: 0; }
}
@media (max-width: 600px) {
	/* sideways-scrolling tabs: room around them so a focus ring is not clipped by the scroller */
	.nlc-views { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; padding: 6px 6px 10px; margin: -4px -6px 2px; overscroll-behavior-x: contain; }
	.nlc-cat .nlc-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nlc-cat .nlc-f--topics { grid-column: 1 / -1; }
	.nlc-msel__panel { width: 100%; }
	.nlc-msel__list { grid-template-columns: 1fr; max-height: 50vh; }
	.nlc-tools { display: grid; grid-template-columns: 1fr; }
	.nlc-tool { justify-content: center; }
	.nlc-promote { grid-template-columns: 1fr; }
	.nlc-cat .nlc-bar { align-items: flex-start; }
	.nlc-cat .nlc-bar__actions { width: 100%; }
	.nlc-layout__b span { display: none; }
	.nlc-grid { grid-template-columns: 1fr; }
	.nlc-cat.is-grid .nlc-grid { padding: 10px; }
	.nlc-similar ul { grid-template-columns: 1fr; }
	.nlc-fit__list { grid-template-columns: 1fr; }
	.nlc-pager--top { display: none; }
	.nlc-csv__menu { inset-inline-end: auto; inset-inline-start: 0; transform-origin: top right; }
	.nlc-banner__miss { columns: 1; }
	.nlc-empty { padding: 24px 16px 22px; }
	.nlc-empty__art { width: 132px; }
	.nlc-empty .nlc-empty__t { font-size: 18px; }
	.nlc-site-art { width: 56px; margin-top: 16px; border-radius: var(--r-sm); }
}
/* touch: every pressable at least 44px tall (MASTER "Accessibility and touch") */
@media (pointer: coarse) {
	.nlc-cat .nlc-f--checks label, .nlc-promote__chk, .nlc-adv summary, .nlc-layout__b, .nlc-banner .nlc-linkbtn,
	.nlc-banner__item summary, .nlc-msel__list label, .nlc-fit__list label, .nlc-sc__terms summary, .nlc-fit__more summary,
	:is(.nlc-cat, .nlc-table--mini) .nlc-btn, .nlc-cat .nlc-bar__actions .nlc-btn, .nlc-tooldlg .nlc-btn, .nlc-similar a, .nlc-tooldlg .nlc-dlg__x { min-height: 44px; }
}

/* ---------------------------------------------------------------- reduced motion: no movement, short fades stay */
@media (prefers-reduced-motion: reduce) {
	.nlc-views a, .nlc-tool, .nlc-ftoggle, .nlc-layout__b, .nlc-pager a, .nlc-cat .nlc-f--checks label, .nlc-promote__chk,
	.nlc-adv summary, .nlc-csv__menu button, .nlc-cat .nlc-btn, .nlc-tooldlg .nlc-btn, .nlc-similar a, .nlc-fav, .nlc-fav svg { transform: none !important; }
	.nlc-msel__panel, .nlc-csv__menu, .nlc-tooldlg[open] { transform: none; transition: opacity 150ms ease; }
	@starting-style {
		.nlc-msel__panel, .nlc-csv__menu, .nlc-tooldlg[open] { opacity: 0; transform: none; }
	}
}
