/*
 * NTWOOD catalogue — the P4 product page, the archives, the project page and the
 * components the plugin's inner-page widgets share with them (cards, tiles, docs,
 * facets, the page hero, the profile scale).
 *
 * Ported from prototype/a-rung-suong/style.css "PRODUCT PAGE" through
 * docs/class-map.md. Depends on tokens.css + core.css + chrome.css.
 *
 * ── THE THEME OWNS THIS FILE, AND build.sh COPIES IT ──
 *
 * It is synced into newtechwood-widgets/assets/css/fallback/ like core.css, because
 * the inner-page widgets render the SAME cards and rows as the templates. One file,
 * never two hand-maintained copies.
 *
 * Rules kept here, each one recorded somewhere in this repo as a shipped bug:
 *
 *   · `minmax(0, 1fr)`, never a bare `1fr` (one long word widens the page);
 *   · no `italic` anywhere — emphasis is colour (Be Vietnam Pro has no italic axis);
 *   · no `ch` cap on display type (`.ntw-h1`'s 14ch is for the homepage hero only;
 *     "Tấm ốp lam sóng phủ ASA" at 14ch is four lines);
 *   · white text only on `--green-btn` (4.97:1), never on `--green` (3.15:1);
 *   · any cap on an `<img>` carries two classes, so a one-class reset cannot win;
 *   · a hidden / animated state only under `.ntw-anim` (core.css).
 */

/* =====================================================================
 * SHARED: breadcrumbs, spec list, section rhythm, heads
 * ================================================================== */

.ntw-crumbs {
	display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none;
	font-size: 13px; color: var(--mist-faint);
}
.ntw-crumbs li + li::before { content: '/'; margin-right: 8px; opacity: .6; }
.ntw-crumbs a:hover { color: var(--green); }

.ntw-dl { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); margin: 0; }
.ntw-dl dt, .ntw-dl dd { margin: 0; padding: 15px 0; border-bottom: 1px solid var(--line); }
.ntw-dl dt { color: var(--mist-faint); font-size: 14px; }
.ntw-dl dd { font-size: 15px; }
.ntw-dl dd.is-na { color: var(--mist-faint); }
.ntw-dl dd a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

.ntw-prod__sec { padding-block: clamp(64px, 8vw, 120px); border-top: 1px solid var(--line); }
.ntw-prod__head {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px;
	align-items: end; margin-bottom: 28px;
}
.ntw-prod__head .ntw-h2 { margin-bottom: 0; }

/* =====================================================================
 * PRODUCT PAGE — hero
 * ================================================================== */

.ntw-prod { padding-top: calc(var(--hdr-h) + 22px); }
.ntw-prod__hero {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: clamp(32px, 5vw, 80px); align-items: center; padding-bottom: clamp(60px, 8vw, 110px);
}
.ntw-prod__model {
	margin: 0; font: 500 clamp(2.6rem, 5.6vw, 4.8rem)/1.1 var(--f-display);
	letter-spacing: -.04em; overflow-wrap: anywhere;
}
.ntw-prod__name { margin: 14px 0 0; font-size: 1.12rem; color: var(--mist-dim); }
.ntw-prod__lede { margin: 14px 0 0; color: var(--mist-dim); }
.ntw-specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 32px; padding: 0; list-style: none; }
.ntw-specs li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; color: var(--mist-dim); }
.ntw-specs li b { color: var(--mist); font-weight: 500; }

.ntw-pick { margin-bottom: 26px; }
.ntw-pick__head {
	display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px;
	font-size: 13px; color: var(--mist-faint); letter-spacing: .06em; text-transform: uppercase;
}
.ntw-pick__head b { color: var(--mist); font-weight: 500; letter-spacing: 0; font-size: 15px; text-transform: none; }
.ntw-pick__dots { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ntw-pick__sep { width: 1px; height: 26px; background: var(--line-2); margin: 0 4px; }
.ntw-dot {
	width: 38px; height: 38px; border-radius: 50%; background-size: cover; background-position: center;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); transition: transform .3s var(--ease), box-shadow .3s;
}
.ntw-dot:hover { transform: scale(1.1); }
.ntw-dot[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--green); }
.ntw-pick__lens { display: flex; flex-wrap: wrap; gap: 8px; }
.ntw-len {
	padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px;
	transition: background .25s, color .25s, border-color .25s;
}
.ntw-len:hover { border-color: var(--mist); }
.ntw-len[aria-pressed="true"] { background: var(--mist); color: var(--ink); border-color: var(--mist); }
.ntw-prod__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ntw-prod__warn { margin: 16px 0 0; font-size: 12.5px; color: var(--mist-faint); }

/* the stage: profile drawing behind a floating product photo, plus the sample card */
.ntw-stage { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; isolation: isolate; }
.ntw-stage::before {
	content: ''; position: absolute; inset: 6%; z-index: -2; border-radius: 50%;
	background: radial-gradient(circle at 50% 45%, rgba(36, 168, 0, .16), rgba(36, 168, 0, 0) 62%), radial-gradient(circle, var(--ink-3), var(--ink) 70%);
}
.ntw-stage .ntw-prof {
	position: absolute; inset: auto 6% 10%; width: 88%; height: 26%; z-index: -1;
	stroke: var(--green); stroke-width: 1.2; opacity: .55;
}
.ntw-stage--bare .ntw-prof { inset: 32% 10% auto; height: 36%; opacity: .9; }
.ntw-stage .ntw-stage__img { width: 70%; height: auto; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .6)); }
.ntw-anim .ntw-stage .ntw-stage__img { animation: ntw-bob 7s ease-in-out infinite; }
@keyframes ntw-bob { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
.ntw-sample {
	position: absolute; right: 2%; top: 8%; width: 132px; border-radius: 12px; overflow: hidden;
	background: var(--ink-3); border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); transform: rotate(4deg);
}
.ntw-sample__tex { aspect-ratio: 1 / 1; background-size: cover; background-position: center; transition: opacity .35s; }
.ntw-sample p { margin: 0; padding: 9px 12px; font-size: 12.5px; line-height: 1.3; }
.ntw-sample p small { display: block; color: var(--mist-faint); }
.ntw-sample.is-swap .ntw-sample__tex { opacity: .2; }

/* the box-section scale: one px-per-mm factor for every item (--ntw-pw from PHP) */
.ntw-scale { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin: -6px 0 30px; }
.ntw-scale a { display: grid; justify-items: center; gap: 8px; font-size: 12px; color: var(--mist-dim); }
.ntw-scale .ntw-prof { width: var(--ntw-pw, 40px); height: auto; stroke: var(--mist-faint); stroke-width: 1.2; transition: stroke .25s; }
.ntw-scale a:hover .ntw-prof, .ntw-scale a[aria-current="page"] .ntw-prof { stroke: var(--green); }
.ntw-scale a[aria-current="page"] { color: var(--green); }

/* =====================================================================
 * PRODUCT PAGE — bands
 * ================================================================== */

.ntw-prod__two { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }

/* The catalog drawings are black line art on white: the figure stays white. */
.ntw-draw { margin: 0; border-radius: var(--r); overflow: hidden; background: #fff; padding: 22px; }
.ntw-draw .ntw-draw__img { width: 100%; height: auto; }
.ntw-draw figcaption { margin-top: 12px; font-size: 12.5px; color: #555; }
.ntw-draw--none {
	background: var(--ink-3); border: 1px dashed var(--line-2); display: grid; place-items: center;
	min-height: 220px; color: var(--mist-faint); text-align: center; font-size: 14px;
}
.ntw-draw--none .ntw-prof { width: 70%; height: 90px; stroke: var(--mist-faint); stroke-width: 1.2; margin: 0 auto 14px; display: block; }
.ntw-draw--none p { margin: 0; }

.ntw-bens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.ntw-bens li { padding: 26px 22px; border-radius: var(--r); background: var(--ink-2); border: 1px solid var(--line); }
.ntw-bens b { display: block; margin: 16px 0 6px; font: 500 1.12rem/1.35 var(--f-display); }
.ntw-bens span { font-size: 14.5px; color: var(--mist-dim); }
.ntw-bens em { font: 400 13px/1 var(--f-body); font-style: normal; color: var(--green); letter-spacing: .1em; }

.ntw-uses { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.ntw-uses li { padding: 8px 14px; border-radius: 999px; background: var(--ink-3); font-size: 13.5px; color: var(--mist-dim); }
.ntw-prod__apps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding: 0; list-style: none; }
.ntw-prod__apps a {
	display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
	border: 1px solid var(--line-2); font-size: 13.5px; color: var(--mist); transition: border-color .25s, color .25s;
}
.ntw-prod__apps a:hover { border-color: var(--green); color: var(--green); }

.ntw-strip {
	display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
	padding: 4px var(--pad) 18px; margin-inline: calc(var(--pad) * -1);
	scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.ntw-strip figure { position: relative; flex: 0 0 min(78%, 560px); margin: 0; scroll-snap-align: start; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; }
.ntw-strip figure img { width: 100%; height: 100%; object-fit: cover; }
.ntw-strip__nav { display: flex; gap: 8px; }
.ntw-strip__nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); transition: background .25s, color .25s, border-color .25s; }
.ntw-strip__nav button:hover { background: var(--green-btn); border-color: var(--green-btn); color: #fff; }

/* a caption over a photo: dark plate, light type, whatever the photo is */
.ntw-strip figcaption, .ntw-gallery__item figcaption {
	position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 6px 12px;
	border-radius: 999px; background: rgba(13, 17, 14, .78); color: #E9EDE6; font-size: 12.5px;
}

.ntw-accs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.ntw-accs__card { border-radius: var(--r); background: var(--ink-2); border: 1px solid var(--line); overflow: hidden; }
.ntw-accs__img { aspect-ratio: 4 / 3; display: grid; place-items: center; background: radial-gradient(circle, #232c24, var(--ink-2)); }
.ntw-accs__img .ntw-accs__photo { max-width: 70%; max-height: 78%; width: auto; height: auto; object-fit: contain; }
.ntw-accs__img i { font-size: 30px; color: var(--mist-faint); }
.ntw-accs__card p { margin: 0; padding: 14px 16px; font-size: 14px; }
.ntw-accs__card p b { color: var(--mist); font-weight: 500; }

.ntw-docs { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ntw-docs__row {
	display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 16px; align-items: center;
	padding: 16px 20px; border-radius: var(--r); background: var(--ink-2); border: 1px solid var(--line);
}
.ntw-docs__row > i { color: var(--green); font-size: 20px; }
.ntw-docs__body b { display: block; font-weight: 500; }
.ntw-docs__body span { font-size: 13px; color: var(--mist-faint); }
.ntw-docs__state {
	padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); white-space: nowrap;
	font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mist-dim);
}
.ntw-docs__state--available { border-color: var(--green); color: var(--green); }
.ntw-docs__state--pending { border-style: dashed; color: var(--mist-faint); }

.ntw-prod__next a {
	display: grid; grid-template-columns: minmax(0, 1fr) 56px; column-gap: 24px; align-items: center;
}
.ntw-prod__next .ntw-eyebrow { grid-column: 1; }
.ntw-prod__next b {
	grid-column: 1; font: 500 clamp(1.9rem, 4vw, 3.2rem)/1.15 var(--f-display); letter-spacing: -.03em;
	transition: color .25s; overflow-wrap: anywhere;
}
.ntw-prod__nextname { grid-column: 1; margin-top: 6px; color: var(--mist-dim); }
.ntw-prod__next i {
	grid-column: 2; grid-row: 1 / span 3; display: grid; place-items: center; width: 56px; height: 56px;
	border-radius: 50%; border: 1px solid var(--line-2); transition: background .25s, color .25s, border-color .25s;
}
.ntw-prod__next a:hover b { color: var(--green); }
.ntw-prod__next a:hover i { background: var(--green-btn); border-color: var(--green-btn); color: #fff; }

.ntw-prod__cta { border-top: 1px solid var(--line); }
.ntw-prod__cta-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: end; }
.ntw-prod__cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* =====================================================================
 * CARDS & TILES (templates and the inner-page widgets)
 * ================================================================== */

.ntw-mcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.ntw-mcard__link {
	display: block; height: 100%; padding: 22px; border-radius: var(--r); background: var(--ink-2);
	border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease);
}
.ntw-mcard__link:hover { border-color: var(--green); transform: translateY(-4px); }
.ntw-mcard__link[aria-current="page"] { border-color: var(--green); }
.ntw-mcard__img { height: 130px; display: grid; place-items: center; margin-bottom: 14px; }
.ntw-mcard__img .ntw-mcard__photo {
	max-height: 130px; max-width: 100%; width: auto; height: auto; object-fit: contain;
	filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .5)); transition: transform .5s var(--ease);
}
.ntw-mcard__link:hover .ntw-mcard__photo { transform: translateY(-6px) rotate(-3deg); }
.ntw-mcard__img .ntw-prof { width: 80%; height: 70px; stroke: var(--mist-faint); stroke-width: 1.2; }
.ntw-mcard__model { margin: 0; font: 500 1.2rem/1.25 var(--f-display); color: var(--mist); }
.ntw-mcard__name { margin: 4px 0 0; font-size: 13.5px; color: var(--mist-dim); }
.ntw-mcard__meta { margin: 6px 0 0; font-size: 12.5px; color: var(--mist-faint); }

.ntw-projcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.ntw-projcard__link {
	display: block; height: 100%; border-radius: var(--r); overflow: hidden; background: var(--ink-2);
	border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease);
}
.ntw-projcard__link:hover { border-color: var(--green); transform: translateY(-4px); }
.ntw-projcard__img { aspect-ratio: 4 / 3; overflow: hidden; }
.ntw-projcard__img .ntw-projcard__photo { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ntw-projcard__link:hover .ntw-projcard__photo { transform: scale(1.04); }
.ntw-projcard__title { margin: 18px 20px 4px; font: 500 1.2rem/1.3 var(--f-display); color: var(--mist); }
.ntw-projcard__meta { margin: 0 20px 20px; font-size: 13.5px; color: var(--mist-dim); }
.ntw-projcard--text .ntw-projcard__title { margin-top: 22px; }
.ntw-projcard--text .ntw-projcard__title:last-child { margin-bottom: 22px; }

.ntw-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.ntw-tile {
	display: block; height: 100%; border-radius: var(--r); overflow: hidden; background: var(--ink-2);
	border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease);
}
a.ntw-tile:hover { border-color: var(--green); transform: translateY(-4px); }
.ntw-tile__img { display: block; aspect-ratio: 1 / 1; background-size: cover; background-position: center; }
.ntw-tile__name { display: block; padding: 12px 14px 0; font-weight: 500; color: var(--mist); }
.ntw-tile__group { display: block; padding: 2px 14px 12px; font-size: 12.5px; color: var(--mist-faint); }

/* =====================================================================
 * PAGE HERO, FACETS, ARCHIVES
 * ================================================================== */

.ntw-intro { padding-top: calc(var(--hdr-h) + clamp(32px, 5vw, 72px)); padding-bottom: clamp(48px, 7vw, 96px); }
.ntw-intro--compact { padding-bottom: clamp(28px, 4vw, 52px); }
.ntw-intro__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: end; }
.ntw-intro--media .ntw-intro__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.ntw-intro__title {
	margin: 0 0 18px; font: 500 clamp(2.3rem, 5vw, 4.4rem)/1.12 var(--f-display);
	letter-spacing: -.035em; text-wrap: balance; overflow-wrap: anywhere;
}
.ntw-intro--compact .ntw-intro__title { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
.ntw-intro__lede { max-width: 60ch; margin: 0; color: var(--mist-dim); font-size: 1.08rem; }
.ntw-intro__media { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; }
.ntw-intro__media img { width: 100%; height: 100%; object-fit: cover; }
.ntw-intro .ntw-projfacts { margin-top: 24px; }
.ntw-intro .ntw-projlogo { margin: 24px 0 0; }
.ntw-intro .ntw-projlogo img { max-height: 56px; width: auto; }

.ntw-facets { display: grid; gap: 16px; margin: 0 0 clamp(32px, 4vw, 48px); padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.ntw-facets__group { display: grid; grid-template-columns: minmax(0, 120px) minmax(0, 1fr); gap: 12px; align-items: baseline; }
.ntw-facets__label { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mist-faint); }
.ntw-facets__group ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ntw-facets__link {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
	border: 1px solid var(--line-2); font-size: 14px; color: var(--mist-dim);
	transition: background .25s, color .25s, border-color .25s;
}
.ntw-facets__link:hover { border-color: var(--mist); color: var(--mist); }
.ntw-facets__link[aria-current="true"] { background: var(--green-btn); border-color: var(--green-btn); color: #fff; }
.ntw-facets__clear {
	justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-size: 14px;
	color: var(--green); text-decoration: underline; text-underline-offset: 3px;
}
.ntw-catalogue__empty { margin: 0; padding: 24px 0; color: var(--mist-dim); }
.ntw-catalogue > .ntw-wrap > .ntw-eyebrow { margin-bottom: 22px; }

.ntw-ltable__scroll { overflow-x: auto; }
.ntw-ltable { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.ntw-ltable th, .ntw-ltable td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.ntw-ltable thead th { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--mist-faint); }
.ntw-ltable tbody th a { font: 500 1.08rem/1.3 var(--f-display); transition: color .25s; }
.ntw-ltable tbody th a:hover { color: var(--green); }
.ntw-ltable .is-na { color: var(--mist-faint); }
.ntw-ltable__prof .ntw-prof { width: 96px; height: 32px; stroke: var(--mist-faint); stroke-width: 1.2; }

.ntw-woodhero {
	position: relative; isolation: isolate; overflow: hidden;
	padding: calc(var(--hdr-h) + clamp(32px, 5vw, 72px)) 0 clamp(56px, 8vw, 110px);
}
.ntw-woodhero__tex { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.ntw-woodhero::after {
	content: ''; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(90deg, rgba(13, 17, 14, .94) 0%, rgba(13, 17, 14, .82) 50%, rgba(13, 17, 14, .4) 100%);
}
.ntw-woodhero__body { max-width: 600px; }
.ntw-woodhero__group { margin: 0 0 12px; color: var(--mist-dim); }

/* =====================================================================
 * PROJECT PAGE
 * ================================================================== */

.ntw-projpage__body:empty, .ntw-projpage__body .ntw-prose:empty { display: none; }
.ntw-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ntw-gallery__item { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; }
.ntw-gallery__item.is-portrait { aspect-ratio: 3 / 4; }
/* after .is-portrait on purpose: a full-row portrait at 3/4 would be a wall. */
.ntw-gallery__item.is-wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.ntw-gallery .ntw-gallery__item img { width: 100%; height: 100%; object-fit: cover; }

/* =====================================================================
 * RESPONSIVE
 * ================================================================== */

@media (max-width: 1180px) {
	.ntw-bens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
	.ntw-prod__hero, .ntw-prod__two, .ntw-prod__cta-grid, .ntw-intro--media .ntw-intro__grid { grid-template-columns: minmax(0, 1fr); }
	.ntw-stage { max-width: 560px; margin-inline: auto; width: 100%; }
	.ntw-prod__cta-actions { justify-content: flex-start; }
}
@media (max-width: 720px) {
	.ntw-bens { grid-template-columns: minmax(0, 1fr); }
	.ntw-dl { grid-template-columns: minmax(0, 120px) minmax(0, 1fr); }
	.ntw-sample { width: 104px; }
	.ntw-facets__group { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.ntw-gallery { grid-template-columns: minmax(0, 1fr); }
	.ntw-docs__row { grid-template-columns: 24px minmax(0, 1fr); }
	.ntw-docs__state, .ntw-docs__row > .ntw-btn { grid-column: 2; justify-self: start; }
	.ntw-prod__head { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================================
 * P6 — search results (search.php). Reuses the card grids above; lives here so
 * build.sh syncs it into the plugin fallback with the rest of the catalogue.
 * ====================================================================== */
.ntw-results__head { margin-bottom: 8px; }
.ntw-results__head .ntw-hsearch--page { max-width: 640px; }
.ntw-results__group { margin-top: 40px; }
.ntw-results__group + .ntw-results__group { padding-top: 40px; border-top: 1px solid var(--line); }
.ntw-results__group > .ntw-h2 { margin: 0 0 20px; }
.ntw-results__n { font-weight: 400; color: var(--mist-dim); }
.ntw-results__empty,
.ntw-results__invite { margin: 0; padding: 8px 0; color: var(--mist-dim); }
.ntw-results__invite { padding-top: 24px; max-width: 62ch; }
.ntw-results__all { display: inline-block; margin-top: 20px; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.ntw-results__all:hover { color: var(--mist); }
.ntw-results__posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
