/*
 * base.css — typography baseline + html/body reset.
 * Token authority is tokens.css. Nothing app-specific here.
 */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body {
	font-family: var(--chn-font-sans);
	color: var(--chn-color-text);
	background: var(--chn-color-surface);
	line-height: var(--chn-line-normal);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-feature-settings: "ss01" on, "cv11" on;
}
h1, h2, h3, h4 {
	font-family: var(--chn-font-serif);
	color: var(--chn-color-text);
	line-height: var(--chn-line-tight);
	letter-spacing: -.01em;
	margin: 0 0 var(--chn-space-3);
}
h1 { font-size: clamp(32px, 4vw, 46px); font-variation-settings: "opsz" 96, "wght" 600; letter-spacing: -.02em; }
h2 { font-size: 28px; font-variation-settings: "opsz" 36, "wght" 600; }
h3 { font-size: 20px; font-variation-settings: "opsz" 36, "wght" 600; }
h4 { font-size: 16px; font-variation-settings: "opsz" 24, "wght" 600; }
p  { margin: 0 0 var(--chn-space-3); }
a  { color: var(--chn-color-primary); text-underline-offset: 3px; text-decoration-color: var(--chn-color-border); }
a:hover { color: var(--chn-color-primary-700); text-decoration-color: var(--chn-color-accent); }
.chn-mono { font-family: var(--chn-font-mono); font-feature-settings: "tnum" on, "lnum" on; }

/* Editorial eyebrow utility — uppercase tracked label that pairs above
 * a serif H2 heading. Phase B4 W2: moved out of system-templates.css
 * (which only enqueues on search/404/home/single-post/archive) so any
 * page rendering chn/* blocks (including the editorial trio) inherits
 * the uppercase + .22em tracking. Replaces per-template duplicates
 * that previously shipped in marketing.css / catalogue.css. */
.chn-eyebrow { font-family: var(--chn-font-sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--chn-color-accent); margin: 0 0 var(--chn-space-3); }

/* Canonical container — every section's inner content uses this.
 * max-width and padding are tokenised in tokens.css so a single
 * change there shifts the entire site. The container itself is
 * centered; padding-inline lives on the container, not on the
 * outer section (which may be a full-bleed band). */
.chn-container {
	max-width: var(--chn-container-max);
	margin-inline: auto;
	padding-inline: var(--chn-container-pad);
	box-sizing: border-box;
}

/* Icon defaults — paired with the chn_icon() helper. Icons inherit
 * currentColor so the surrounding text color drives the stroke. */
.chn-icon {
	display: inline-block;
	vertical-align: -0.125em; /* align with x-height of adjacent text */
	flex-shrink: 0;
	color: currentColor;
	fill: currentColor;
	stroke: currentColor;
}
.chn-icon use { pointer-events: none; }
/* Mono numerals: tnum table for areas, prices, counts. */
.chn-num { font-family: var(--chn-font-mono); font-feature-settings: "tnum" on, "lnum" on; font-variant-numeric: tabular-nums; }
.chn-num__unit { color: var(--chn-color-muted); margin-left: .25em; font-size: .85em; }
.chn-money { font-feature-settings: "tnum" on, "lnum" on; font-variant-numeric: tabular-nums; }

/* Bootstrap utility-class fallbacks for vendor templates.
 *
 * The Webkul Marketplace profile template (and a few other vendor
 * partials) emit <pre class="d-none">{... debug JSON ...}</pre>
 * blocks that rely on Bootstrap's .d-none rule to stay hidden.
 * CHN's theme doesn't load Bootstrap, so without these fallbacks
 * the debug JSON renders visibly on every seller dashboard page.
 *
 * Adds the minimal subset of Bootstrap display utilities used by
 * vendor templates on this site. Keep this list tight — we are not
 * shipping Bootstrap, only matching the specific class names
 * vendor partials assume exist. */
.d-none { display: none !important; }
.sr-only,
.visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}
