/**
 * Budvocate v3 — Central Design System & Base Styles.
 *
 * Strict palette tokens: obsidian charcoal, warm botanical cream paper,
 * electric Budvocate lime, and royal indica purple. Zero low-saturation
 * blue tints; zero duplicate selectors.
 */

@font-face {
	font-family: BudGotham;
	src: url('brand/gotham-ultra.otf') format('opentype');
	font-weight: 900;
	font-display: swap;
}

:root {
	/* Core project design system variables */
	--charcoal: #0b0d0b;
	--dark-grey2: #141815;
	--grey: #9ca69d;
	--purple: #8b6ef6;
	--accent-green2: #3ef06e;

	/* Semantic surface & editorial variables */
	--bud-lime: var(--accent-green2);
	--bud-lime-ink: #0a190d;
	--bud-paper: var(--charcoal);
	--bud-surface: var(--dark-grey2);
	--bud-surface-elevated: #1b211d;
	--bud-ink: #f4f2eb;
	--bud-ink-soft: var(--grey);
	--bud-rule: #262d28;
	--bud-rule-strong: #364039;

	/* Aliases. home.css was written against these names; without them every
	   hairline fell back to currentColor and every muted run rendered at full
	   ink, which is why the homepage read flatter than it was drawn. */
	--bud-line: var(--bud-rule);
	--bud-line-strong: var(--bud-rule-strong);
	--bud-muted: var(--bud-ink-soft);

	/* Collector card & warm paper contrast tokens */
	--plate-paper: #f5f2e8;
	--plate-ink: #161916;
	--plate-muted: #575e56;
	--plate-green: var(--accent-green2);
	--plate-rule: #ded9ca;

	/* Category & status accents */
	--bud-amber: #ebb446;
	--bud-warn: #e8b63d;
	--bud-bad: #ef6b6c;
	--bud-good: var(--accent-green2);

	/* Strain family accents */
	--tint-sativa: #2ca85a;
	--tint-indica: var(--purple);
	--tint-hybrid: #d99b38;

	/* Typography scale */
	--bud-serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
	--bud-sans: Archivo, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--bud-display: BudGotham, "Arial Black", sans-serif;
	--bud- plate-serif: var(--bud-serif);
	--plate-serif: var(--bud-serif);

	--bud-measure: 68ch;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-padding-top: 110px;
	color-scheme: dark;
}

body {
	margin: 0;
	background: var(--bud-paper);
	color: var(--bud-ink);
	font-family: var(--bud-sans);
	font-size: 15px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

button,
input,
select,
textarea {
	font: inherit;
}

a,
button,
input,
summary {
	touch-action: manipulation;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
	outline: 2px solid var(--bud-lime);
	outline-offset: 3px;
}

[hidden] {
	display: none !important;
}

/* The one page width. Header, footer and every page sit on it, so nothing shifts
   from page to page. Change it here and only here. */
:root {
	--bud-container: 1600px;
	--bud-gutter: clamp(1rem, 2.4vw, 2rem);
}

.container,
.container-fluid {
	width: 100%;
	max-width: calc(var(--bud-container) + var(--bud-gutter) * 2);
	padding-inline: var(--bud-gutter);
	margin-inline: auto;
}

.wrapper {
	padding-block: 3rem;
}

.row {
	display: flex;
	flex-wrap: wrap;
	gap: 4%;
	margin: 0;
}

.col-lg-8 {
	width: 66%;
	max-width: 66%;
	flex: 0 0 66%;
	padding: 0;
}

.col-lg-4 {
	width: 30%;
	max-width: 30%;
	flex: 0 0 30%;
	padding: 0;
}

.bud-skip {
	position: absolute;
	top: -100px;
	left: 16px;
	padding: 12px 18px;
	background: var(--bud-lime);
	color: var(--bud-lime-ink);
	font-weight: 700;
	border-radius: 6px;
	z-index: 100;
}

.bud-skip:focus {
	top: 12px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

/* ---------- Quantized Meter Fill Utilities (Zero Inline Styles) ---------- */

.bud-fill-5  { width: 5%; }
.bud-fill-10 { width: 10%; }
.bud-fill-15 { width: 15%; }
.bud-fill-20 { width: 20%; }
.bud-fill-25 { width: 25%; }
.bud-fill-30 { width: 30%; }
.bud-fill-35 { width: 35%; }
.bud-fill-40 { width: 40%; }
.bud-fill-45 { width: 45%; }
.bud-fill-50 { width: 50%; }
.bud-fill-55 { width: 55%; }
.bud-fill-60 { width: 60%; }
.bud-fill-65 { width: 65%; }
.bud-fill-70 { width: 70%; }
.bud-fill-75 { width: 75%; }
.bud-fill-80 { width: 80%; }
.bud-fill-85 { width: 85%; }
.bud-fill-90 { width: 90%; }
.bud-fill-95 { width: 95%; }
.bud-fill-100 { width: 100%; }

/* ---------- Shared Typography & Editorial Headers ---------- */

.bud-eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	margin: 0 0 10px;
	text-transform: uppercase;
	color: var(--bud-ink-soft);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.bud-eyebrow a {
	color: var(--bud-lime);
}

.bud-channel-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 2px 7px;
	border-radius: 4px;
	background: rgba(62, 240, 110, 0.14);
	color: var(--bud-lime);
	font-weight: 800;
	font-size: 10px;
	letter-spacing: 0.08em;
}

.bud-kicker-pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--bud-lime);
	color: var(--bud-lime-ink);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.bud-reference-header,
.bud-archive-header {
	border-bottom: 2px solid var(--bud-rule-strong);
	margin-bottom: 2.25rem;
	padding-bottom: 1.5rem;
	position: relative;
}

.bud-reference-header::after,
.bud-archive-header::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 88px;
	height: 2px;
	background: var(--bud-lime);
}

.bud-title,
.bud-archive-header h1 {
	font-family: var(--bud-display);
	font-size: clamp(2.25rem, 4.5vw, 3.6rem);
	font-weight: 900;
	letter-spacing: -0.03em;
	line-height: 1.04;
	margin: 0.35rem 0 0.75rem;
	color: var(--bud-ink);
}

.bud-standfirst,
.bud-definition {
	color: #d2d8d1;
	font-family: var(--bud-serif);
	font-size: 1.25rem;
	line-height: 1.55;
	max-width: var(--bud-measure);
}

.bud-standfirst p:last-child,
.bud-definition p:last-child {
	margin-bottom: 0;
}

.bud-body {
	font-size: 1.04rem;
	line-height: 1.8;
	max-width: var(--bud-measure);
	color: #dde2dc;
	overflow-wrap: anywhere;
}

.bud-body h2 {
	font-family: var(--bud-sans);
	font-size: 1.55rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin-top: 2.5rem;
	padding-bottom: 0.65rem;
	border-bottom: 1px solid var(--bud-rule);
	color: var(--bud-ink);
}

.bud-body h3 {
	font-size: 1.2rem;
	font-weight: 700;
	margin-top: 2rem;
	color: var(--bud-ink);
}

.bud-body a,
.bud-sources a {
	color: var(--bud-lime);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bud-term-link {
	text-decoration-style: dotted !important;
}

.bud-body table,
.bud-spec-table {
	border-collapse: collapse;
	margin: 1.75rem 0;
	width: 100%;
	background: var(--bud-surface);
	border: 1px solid var(--bud-rule);
	border-radius: 10px;
	overflow: hidden;
}

.bud-spec-table caption {
	caption-side: top;
	text-align: left;
	font-weight: 800;
	font-size: 0.85rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--bud-lime);
	padding: 0 0 0.75rem;
}

.bud-body th,
.bud-body td,
.bud-spec-table th,
.bud-spec-table td {
	border-bottom: 1px solid var(--bud-rule);
	padding: 0.85rem 1.1rem;
	text-align: left;
	vertical-align: top;
}

.bud-spec-table th {
	width: 34%;
	color: var(--bud-ink-soft);
	font-weight: 600;
}

/* ---------- Buttons & Links ---------- */

.bud-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--bud-sans);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.02em;
	background: var(--bud-lime);
	color: var(--bud-lime-ink);
	border: 1px solid var(--bud-lime);
	border-radius: 6px;
	padding: 12px 22px;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.15s ease, background-color 0.15s ease;
}

.bud-cta:hover {
	background: #6bff91;
	color: var(--bud-lime-ink);
	transform: translateY(-1px);
}

.bud-cta-full {
	width: 100%;
}

.bud-btn-outline {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	color: var(--bud-ink);
	background: var(--bud-surface);
	border: 1px solid var(--bud-rule-strong);
	border-radius: 6px;
	padding: 11px 18px;
	text-decoration: none;
}

.bud-btn-outline:hover {
	border-color: var(--bud-lime);
	color: var(--bud-lime);
}

.bud-text-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--bud-lime);
	margin-top: 8px;
}

.bud-text-link:hover {
	text-decoration: underline;
}

/* ---------- Reference Index, Diagnosis & Verification ---------- */

.bud-sources {
	margin: 0.5rem 0 0;
	padding-left: 1.2rem;
}

.bud-triage {
	background: var(--bud-surface);
	border: 1px solid var(--bud-rule-strong);
	border-left: 4px solid var(--bud-lime);
	border-radius: 10px;
	padding: 1.5rem 1.75rem;
	margin-bottom: 2.25rem;
}

.bud-triage h2 {
	font-size: 1.15rem;
	margin: 0 0 1rem;
}

.bud-triage-steps {
	margin: 0;
	padding-left: 1.25rem;
	display: grid;
	gap: 0.85rem;
}

.bud-triage-steps a {
	color: var(--bud-lime);
	font-weight: 700;
	margin-left: 6px;
}

.bud-differential-form {
	background: var(--bud-surface);
	border: 1px solid var(--bud-rule);
	border-radius: 12px;
	padding: 1.75rem;
	margin-bottom: 2.25rem;
}

.bud-differential-form h2 {
	font-size: 1.25rem;
	margin: 0 0 1.25rem;
}

.bud-axis {
	border: 0;
	border-top: 1px solid var(--bud-rule);
	padding: 1.15rem 0 0.5rem;
	margin: 0 0 0.75rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.bud-axis legend {
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--bud-ink);
	padding: 0 0 0.65rem;
	width: 100%;
}

.bud-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	border: 1px solid var(--bud-rule-strong);
	background: var(--charcoal);
	border-radius: 999px;
	padding: 0.4rem 0.9rem;
	font-size: 0.86rem;
	cursor: pointer;
	user-select: none;
}

.bud-chip:has(input:checked) {
	background: var(--bud-lime);
	border-color: var(--bud-lime);
	color: var(--bud-lime-ink);
	font-weight: 700;
}

.bud-form-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 1rem 0 0;
}

.bud-reset {
	background: transparent;
	border: 1px solid var(--bud-rule-strong);
	color: var(--bud-ink);
	padding: 0.45rem 1rem;
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.85rem;
}

.bud-reset:hover {
	border-color: var(--bud-lime);
	color: var(--bud-lime);
}

.bud-index {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.75rem;
}

.bud-index-item {
	background: var(--bud-surface);
	border: 1px solid var(--bud-rule);
	border-radius: 10px;
	transition: border-color 0.16s ease, transform 0.16s ease;
}

.bud-index-item:hover {
	border-color: var(--bud-lime);
	transform: translateX(3px);
}

.bud-index-link {
	display: block;
	padding: 1.15rem 1.35rem;
	text-decoration: none;
}

.bud-index-title {
	display: block;
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--bud-ink);
	margin-bottom: 0.25rem;
}

.bud-index-excerpt {
	display: block;
	font-size: 0.92rem;
	color: var(--bud-ink-soft);
}

/* ---------- 21+ Age Gate Modal ---------- */

html.bud-gated {
	overflow: hidden;
}

.bud-agegate {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: grid;
	place-items: center;
	padding: 1.25rem;
	background: rgba(8, 10, 8, 0.94);
	backdrop-filter: blur(10px);
}

.bud-agegate-panel {
	width: 100%;
	max-width: 24rem;
	padding: clamp(1.5rem, 5vw, 2.25rem);
	border-radius: 16px;
	background: var(--bud-surface);
	text-align: center;
	box-shadow: 0 28px 60px rgba(0, 0, 0, 0.75);
}

.bud-agegate-panel h2 {
	margin: 0 0 0.5rem;
	padding: 0;
	border: 0;
	font-family: var(--bud-face, var(--bud-sans));
	font-size: clamp(2rem, 8vw, 2.5rem);
	font-weight: 400;
	line-height: 1.05;
	text-transform: uppercase;
	color: #fff;
}

.bud-agegate-panel p {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.45;
	color: #dfe4df;
}

.bud-agegate-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.625rem;
	margin-top: 1.25rem;
}

.bud-agegate-actions button {
	min-height: 52px;
	padding: 0.6rem 0.75rem;
	border: 2px solid var(--bud-lime);
	border-radius: 10px;
	background: none;
	font-family: var(--bud-sans);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	cursor: pointer;
}

.bud-agegate-actions button[data-bud-age="yes"] {
	background: var(--bud-lime);
	color: #0b0d0b;
}

.bud-agegate-actions button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.bud-agegate-panel .bud-agegate-small {
	margin-top: 0.85rem;
	font-size: 0.82rem;
	color: #aeb7af;
}

@media (max-width: 900px) {
	.col-lg-8,
	.col-lg-4 {
		width: 100%;
		max-width: 100%;
		flex: 0 0 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		transition: none !important;
	}
}
