/* =====================================================================================
 * Batch 8, discover-content: technical landing header (inc/landing.php), store mode notices
 * (inc/store-mode.php), compact category introductions and related links (inc/linking.php).
 * Tokens from sgh.css; no shadows or gradients; reduced motion respected (no motion added).
 * ===================================================================================== */

/* ---------- 1. Technical landing: compact header, products directly below ---------- */
.lp-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); grid-template-areas: "copy facts" "rel rel"; gap: 14px 32px; align-items: start; margin-top: 6px; margin-bottom: 18px; padding-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.lp-copy { grid-area: copy; min-width: 0; }
.lp-head h1 { margin: 0 0 8px; font: 700 var(--fs-h1)/1.15 var(--display, var(--sans)); letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
.lp-intro { max-width: 72ch; margin: 0; font-size: var(--fs-body); line-height: 1.6; color: var(--charcoal); }
.lp-more { margin-top: 6px; padding: 6px 0; border: 0; background: none; font: 600 var(--fs-small)/1.2 var(--sans); color: var(--orange-press); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lp-more:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.lp-facts { grid-area: facts; margin: 0; padding: 14px 16px; background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius); font-size: var(--fs-small); color: var(--charcoal); }
.lp-count { margin: 0 0 8px; font-size: var(--fs-small); }
.lp-count b { font: 700 22px/1 var(--display, var(--sans)); color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 2px; }
.lp-k { display: block; margin: 0 0 6px; font: 700 var(--fs-micro)/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.lp-criteria { margin: 0; padding: 0; list-style: none; }
.lp-criteria li { position: relative; padding-left: 14px; line-height: 1.45; }
.lp-criteria li + li { margin-top: 3px; }
.lp-criteria li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--orange-press); }
.lp-rel { grid-area: rel; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.lp-rel .lp-k { margin: 0; }
.lp-rel ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lp-rel a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: var(--fs-small); color: var(--ink); text-decoration: none; }
.lp-rel a:hover { border-color: var(--ink); }
.lp-rel a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.lp-rel a.is-guide { color: var(--orange-deep); }
.lp-rel .icon { width: 15px; height: 15px; }
/* Alternative B (rendered for comparison, not used): inline criteria chips, no side panel. */
.lp-head.lp-b { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "facts" "rel"; }
.lp-head.lp-b .lp-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 0; background: none; border: 0; }
.lp-head.lp-b .lp-count { margin: 0; padding: 4px 11px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.lp-head.lp-b .lp-count b { font-size: var(--fs-small); color: var(--paper); }
.lp-head.lp-b .lp-k { display: none; }
.lp-head.lp-b .lp-criteria { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-head.lp-b .lp-criteria li { margin: 0; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--ground); }
.lp-head.lp-b .lp-criteria li::before { display: none; }
@media (max-width: 1023px) {
	.lp-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "facts" "rel"; gap: 12px; }
	.lp-facts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 10px 14px; }
	.lp-count { margin: 0; }
	.lp-facts .lp-k { display: none; }
	.lp-criteria { display: flex; flex-wrap: wrap; gap: 2px 14px; }
	.lp-criteria li + li { margin-top: 0; }
}
@media (max-width: 760px) {
	.lp-head { padding-top: 10px; padding-bottom: 14px; margin-bottom: 12px; gap: 10px; }
	.lp-head h1 { font-size: var(--fs-h1); }
	.lp-intro { font-size: var(--fs-small); line-height: 1.55; }
	.lp-facts { font-size: var(--fs-micro); padding: 8px 12px; }
	.lp-count b { font-size: var(--fs-h3); }
	/* Related selections scroll sideways in one row instead of stacking. */
	.lp-rel { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
	.lp-rel::-webkit-scrollbar { display: none; }
	.lp-rel ul { flex-wrap: nowrap; }
	.lp-rel a { white-space: nowrap; }
}

/* ---------- 2. Store mode, pre-launch (inc/store-mode.php; the cart message styles are inline there) ---------- */
.sgh-closed-proceed { margin-top: 12px; }
.sgh-closed-proceed .btn { display: flex; width: 100%; min-height: var(--btn-lg); white-space: normal; }
body.sgh-prelaunch-quote.single-product .sgh-add-quote { display: none; }
body.sgh-prelaunch-quote .x-q-actions button[name="dest"][value="cart"] { display: none; }

/* ---------- 3. Category introductions on phones and related links (inc/linking.php, flag content_b8) ---------- */
.rel8.wrap { width: min(1220px, calc(100% - 40px)); max-width: none; margin: 28px auto; padding: 20px 0 0; border-top: 1px solid var(--line); }
/* Alternative B (rendered for comparison, not used): rows as text-link columns. */
.rel8.rel8-b dl { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px 28px; }
.rel8.rel8-b .rel8-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.rel8.rel8-b dt { padding-top: 0; }
.rel8.rel8-b ul { display: block; }
.rel8.rel8-b li + li { margin-top: 4px; }
.rel8.rel8-b a { display: inline; min-height: 0; padding: 0; border: 0; background: none; font-size: var(--fs-small); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.rel8 h2 { margin: 0 0 12px; font: 700 var(--fs-h3)/1.3 var(--display, var(--sans)); color: var(--ink); }
.rel8 dl { display: grid; gap: 10px; margin: 0; }
.rel8-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.rel8 dt { font: 700 var(--fs-micro)/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); padding-top: 9px; }
.rel8 dd { margin: 0; min-width: 0; }
.rel8 ul { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0; padding: 0; list-style: none; }
.rel8 a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: var(--fs-small); line-height: 1.25; color: var(--ink); text-decoration: none; }
.rel8 a:hover { border-color: var(--ink); }
.rel8 a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.rel8 a span { color: var(--slate); font-variant-numeric: tabular-nums; }
.rel8 .icon { width: 15px; height: 15px; color: var(--orange-deep); }
@media (max-width: 760px) {
	.rel8.wrap { width: calc(100% - 32px); margin-top: 20px; }
	.rel8-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.rel8 dt { padding-top: 0; }
	/* One scrolling line per row instead of a wall of chips. */
	.rel8 ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; padding-bottom: 2px; }
	.rel8 ul::-webkit-scrollbar { display: none; }
	.rel8 a { white-space: nowrap; }
}
