/*
 * WTR Tidewater: parent and plugin variable bridge (bridge.css).
 *
 * Loads right after the parent's wtr.css (handle wtre-bridge, dep wtr) and
 * re-points the parent's Graphite variables to Tidewater roles, so markup the
 * parent and the plugins still print turns Tidewater without rewriting each
 * rule. Mapping per tidewater/analysis/01 §2.4.
 *
 * Plugins that read these variables follow automatically:
 *   WTR Community  --c-*    (var(--graphite), --emerald, --hairline, --muted, --silver, --surface, --error)
 *   WTR Coaches    --cp-*   (same set)
 *   WTR Quiz       --wtrq-* (same set plus --ink, --page, --sans, --mono)
 *   WTR Live       --wtr-line: var(--hairline); --wtr-accent: var(--emerald)
 * Plugin-owned hard values (WTR Predictor --wtrp-*, WTR Accounts --wtra-*)
 * are redefined by WP9 in its own files, not here.
 *
 * Only variables live here: no selectors for components.
 */
:root {
	--graphite: var(--wtr-text);
	--ink: var(--wtr-heading);
	--page: var(--wtr-surface);
	--surface: var(--wtr-section);
	--muted: var(--wtr-meta);
	--silver: var(--wtr-border);
	--hairline: var(--wtr-border);
	--emerald: var(--wtr-btn);
	--emerald-bright: var(--wtr-accent);
	--error: var(--wtr-loss);
	--warning: var(--wtr-amber-500);
	--champagne: var(--wtr-amber-600);
	--sans: var(--wtr-ff-sans);
	--serif: var(--wtr-ff-serif);
	--mono: var(--wtr-ff-mono);
}

/*
 * WTR Live prints :root{--wtr-line:var(--hairline);--wtr-accent:var(--emerald)}
 * on match routes, possibly after this file. The doubled :root outranks it, so
 * Kickoff Amber stays Amber (analysis/01 R1). --wtr-line is not a handoff
 * token; the parent's timeline, line-up and squad rules read it.
 */
:root:root {
	--wtr-accent: #F2A33A;
	--wtr-line: var(--wtr-border);
}

/*
 * The parent's sticky offsets read --hdr (its header height). With the Tidewater shell only the
 * 56 px mobile header, or from 1024 the 48 px nav, stays on screen (WP0-M2).
 */
:root { --hdr: 56px; }
@media (min-width: 1024px) { :root { --hdr: 48px; } }
