/*
 * ==========================================================================
 * Briefly site chrome — shared header + footer
 * Baseline is neutral and variable-driven; each theme gets a scoped block
 * keyed off its body class so chrome matches the page it sits on.
 * Mobile-first: nav collapses to a slide-down panel under 861px.
 * ==========================================================================
 */

/*
 * Global contrast REPAIR: the baseline header was translucent
 * white — over the light surfaces most themes use (Foreman, Keystone,
 * Foundry) it washed into grey-on-grey and the mobile dropdown floated
 * grey links over white. Solid background + AA-checked link colour fixes
 * every theme that has no chrome variant of its own, globally.
 */
.briefly-chrome-header {
	--chrome-bg: #ffffff;
	--chrome-text: #111827;
	--chrome-muted: #374151;
	--chrome-border: #d7dade;
	--chrome-accent: #1a56db;
	--chrome-accent-text: #ffffff;
	position: sticky;
	top: 0;
	z-index: 900;
	background: var(--chrome-bg);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--chrome-border);
	transition: box-shadow 0.25s ease;
}
.briefly-chrome-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07); }

.briefly-chrome-inner {
	max-width: 1220px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 0.85rem clamp(1.25rem, 5vw, 3rem);
}

.briefly-chrome-brand {
	font-size: 1.06rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--chrome-text);
	text-decoration: none;
	white-space: nowrap;
}
/* A division's own name beside the business logo. */
.briefly-chrome-brand:has(.briefly-chrome-sub) { display: inline-flex; align-items: center; gap: .65rem; }
.briefly-chrome-sub { font-size: .95rem; font-weight: 700; line-height: 1.15; white-space: normal; max-width: 11em; padding-left: .65rem; border-left: 2px solid var(--chrome-accent, currentColor); }

.briefly-chrome-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.briefly-chrome-link,
.briefly-chrome-phone {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--chrome-muted);
	text-decoration: none;
	transition: color 0.15s ease;
}
.briefly-chrome-link:hover, .briefly-chrome-phone:hover { color: var(--chrome-text); }
.briefly-chrome-phone { font-variant-numeric: tabular-nums; white-space: nowrap; }
/* A phone number broken over three lines reads as a layout fault. */
.briefly-chrome-cta { white-space: nowrap; }

.briefly-chrome-cta {
	display: inline-flex;
	align-items: center;
	padding: 0.6rem 1.35rem;
	background: var(--chrome-accent);
	color: var(--chrome-accent-text);
	border-radius: 8px;
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: transform 0.15s ease, opacity 0.15s ease;
}
.briefly-chrome-cta:hover { transform: translateY(-1px); opacity: 0.92; color: var(--chrome-accent-text); }

/* Social profile icons + marketplace buttons (Links & Profiles) */
.briefly-chrome-social { display: inline-flex; align-items: center; gap: 0.5rem; }
.briefly-chrome-social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--chrome-muted);
	transition: color 0.15s ease, transform 0.15s ease;
}
.briefly-chrome-social-icon:hover { color: var(--chrome-text); transform: translateY(-1px); }
/* Named social links (was a lone initial letter). */
.briefly-chrome-social-icon { gap: 0.3rem; font-size: 0.82rem; line-height: 1; text-decoration: none; white-space: nowrap; }
.briefly-chrome-social-name { font-weight: 600; }
.briefly-chrome-shops { display: inline-flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.5rem; }
.briefly-chrome-shop-btn {
	display: inline-flex;
	align-items: center;
	padding: 0.4rem 0.85rem;
	border: 1px solid var(--chrome-border);
	border-radius: 999px;
	color: var(--chrome-text);
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease;
}
.briefly-chrome-shop-btn:hover { border-color: var(--chrome-accent); color: var(--chrome-accent); }
.briefly-chrome-footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }

/* Hamburger — hidden on desktop */
.briefly-chrome-burger {
	display: none;
	width: 42px;
	height: 42px;
	padding: 10px;
	background: transparent;
	border: 0;
	cursor: pointer;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
}
.briefly-chrome-burger span {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--chrome-text);
	border-radius: 2px;
	transition: transform 0.22s ease, opacity 0.22s ease;
}
.briefly-chrome-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.briefly-chrome-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.briefly-chrome-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Tap to call, phones only */
.briefly-chrome-call { display: none; }
@media (max-width: 860px) {
	.briefly-chrome-call {
		display: inline-flex; align-items: center; gap: 0.4rem;
		margin-left: auto; margin-right: 0.35rem; padding: 0.55rem 0.9rem;
		border-radius: 999px; background: var(--chrome-accent, #1f4d3d); color: var(--chrome-accent-text, #fff);
		font-size: 0.9rem; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap;
	}
	.briefly-chrome-call:focus-visible { outline: 2px solid var(--chrome-text); outline-offset: 2px; }
	.briefly-chrome-burger { display: flex; }
	.briefly-chrome-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: var(--chrome-bg);
		backdrop-filter: blur(14px);
		-webkit-backdrop-filter: blur(14px);
		border-bottom: 1px solid var(--chrome-border);
		padding: 0.5rem 1.25rem 1.1rem;
	}
	.briefly-chrome-nav.is-open { display: flex; }
	.briefly-chrome-link, .briefly-chrome-phone {
		padding: 0.85rem 0.25rem;
		font-size: 1rem;
		border-bottom: 1px solid var(--chrome-border);
	}
	.briefly-chrome-phone { border-bottom: 0; }
	.briefly-chrome-cta { justify-content: center; margin-top: 0.6rem; padding: 0.85rem 1.35rem; }
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.briefly-chrome-footer {
	--chrome-bg: #0f1117;
	--chrome-text: #f8fafc;
	--chrome-muted: rgba(248, 250, 252, 0.62);
	--chrome-border: rgba(255, 255, 255, 0.10);
	background: var(--chrome-bg);
	color: var(--chrome-text);
	margin-top: 0;
}
.briefly-chrome-footer .briefly-chrome-brand { color: var(--chrome-text); }
.briefly-chrome-footer-grid {
	display: grid;
	/*
	 * The business column, then one column per menu group, sized
	 * by what each holds. A long group (Services) takes two tracks.
	 */
	grid-template-columns: minmax(220px, 1.35fr) repeat(auto-fit, minmax(150px, 1fr));
	align-items: start;
	gap: 2rem;
	padding-top: clamp(2.25rem, 5vw, 3.5rem);
	padding-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.briefly-chrome-footer-brand p { margin: 0.6rem 0 0; color: var(--chrome-muted); font-size: 0.92rem; line-height: 1.6; max-width: 34ch; }
.briefly-chrome-footer-nav { display: flex; flex-direction: column; gap: 0.55rem; }
.briefly-chrome-footer-nav a,
.briefly-chrome-footer-contact a {
	color: var(--chrome-muted);
	text-decoration: none;
	font-size: 0.92rem;
	transition: color 0.15s ease;
}
.briefly-chrome-footer-nav a:hover, .briefly-chrome-footer-contact a:hover { color: var(--chrome-text); }
.briefly-chrome-copyright {
	border-top: 1px solid var(--chrome-border);
	padding-top: 1.1rem;
	padding-bottom: 1.4rem;
	color: var(--chrome-muted);
	font-size: 0.82rem;
}
/* Copyright line with the way back up at its end. */
.briefly-chrome-footer .briefly-chrome-copyright { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; }
.briefly-chrome-footer .briefly-chrome-totop { color: var(--chrome-muted); text-decoration: none; white-space: nowrap; transition: color 0.15s ease; }
.briefly-chrome-footer .briefly-chrome-totop:hover { color: var(--chrome-text); }
.briefly-chrome-footer .briefly-chrome-totop:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
/* With hours and areas beside the menu, the business column keeps room for its name on one line. */
@media (min-width: 1081px) {
	.briefly-chrome-footer-grid:has(> .briefly-chrome-footer-hours, > .briefly-chrome-footer-areas) { grid-template-columns: minmax(17rem, 2fr) repeat(auto-fit, minmax(8.5rem, 1fr)); }
}
/* In the footer the business name may take two lines: it never runs into the column beside it. */
.briefly-chrome-footer .briefly-chrome-footer-brand .briefly-chrome-brand { display: block; max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-wrap: balance; }
.briefly-chrome-footer .briefly-chrome-footer-brand { min-width: 0; padding-right: clamp(0rem, 2vw, 1.5rem); }
/* The brief's details: the town under the name, the hours as a day-and-time list, the places served. */
.briefly-chrome-footer .briefly-chrome-footer-brand p.briefly-chrome-footer-place { margin-top: 0.35rem; }
.briefly-chrome-footer-hours ul { gap: 0.45rem; }
.briefly-chrome-footer-hours li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.15rem 1rem; max-width: 17rem; color: var(--chrome-muted); font-size: 0.92rem; line-height: 1.45; }
.briefly-chrome-footer-hours .briefly-chrome-footer-day { color: var(--chrome-text); }
.briefly-chrome-footer-hours .briefly-chrome-footer-time { font-variant-numeric: tabular-nums; }
.briefly-chrome-footer-areas li > span,
.briefly-chrome-footer-areas .briefly-chrome-footer-more { color: var(--chrome-muted); font-size: 0.92rem; }
.briefly-chrome-footer-areas .briefly-chrome-footer-more { font-style: italic; opacity: 0.85; }
/* Place names are short: a long list runs in two columns at every width, never one long list on a phone. */
.briefly-chrome-footer-areas.is-long ul { display: block; columns: 2; column-gap: 1.5rem; }
.briefly-chrome-footer-areas.is-long li { break-inside: avoid; margin-bottom: 0.55rem; }
/* Balanced footer: business on the left, titled link groups. */
.briefly-chrome-footer-brand .briefly-chrome-footer-contact { margin-top: 1.1rem; }
.briefly-chrome-footer-contact a { overflow-wrap: anywhere; }
.briefly-chrome-footer-phone { font-size: 1.15rem !important; font-weight: 600; color: var(--chrome-text) !important; letter-spacing: 0.01em; }
.briefly-chrome-footer-cta {
	display: inline-block;
	margin-top: 0.35rem;
	padding: 0.6rem 1.05rem;
	border: 1px solid var(--chrome-border);
	border-radius: 999px;
	color: var(--chrome-text) !important;
	font-weight: 600;
}
.briefly-chrome-footer-cta:hover { background: rgba(255, 255, 255, 0.06); }
.briefly-chrome-footer-title {
	margin: 0 0 0.85rem;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--chrome-text);
}
.briefly-chrome-footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.briefly-chrome-footer-col a {
	color: var(--chrome-muted);
	text-decoration: none;
	font-size: 0.92rem;
	line-height: 1.35;
	transition: color 0.15s ease;
}
.briefly-chrome-footer-col a:hover { color: var(--chrome-text); }
.briefly-chrome-footer-col a:focus-visible,
.briefly-chrome-footer-contact a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
/* A long group (more than eight links) runs in two columns of its own rather
   than one tall list that leaves every other column half empty. */
@media (min-width: 861px) {
	.briefly-chrome-footer-col.is-long { grid-column: span 2; }
	.briefly-chrome-footer-col.is-long ul { display: block; columns: 2; column-gap: 1.75rem; }
	.briefly-chrome-footer-col.is-long li { break-inside: avoid; margin-bottom: 0.55rem; }
}
@media (max-width: 860px) {
	.briefly-chrome-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1.5rem; }
	.briefly-chrome-footer-brand { grid-column: 1 / -1; }
	.briefly-chrome-footer-col.is-long { grid-column: 1 / -1; }
	.briefly-chrome-footer-col.is-long ul { display: block; columns: 2; column-gap: 1.25rem; }
	.briefly-chrome-footer-col.is-long li { break-inside: avoid; margin-bottom: 0.55rem; }
}
@media (max-width: 480px) {
	.briefly-chrome-footer-grid { grid-template-columns: 1fr; }
	.briefly-chrome-footer-col.is-long ul { columns: 1; }
}

/*
 * ==========================================================================
 * Theme variants — Briefly Pro (10)
 * Each block only overrides the chrome custom properties + font family so
 * the theme's own personality carries through. Palettes mirror each
 * theme's *-core.css.
 * ==========================================================================
 */

/* Ledger — deep navy, cyan accent */
body.briefly-ledger .briefly-chrome-header {
	--chrome-bg: rgba(11, 18, 32, 0.82); --chrome-text: #f8fafc;
	--chrome-muted: rgba(248, 250, 252, 0.62); --chrome-border: rgba(255, 255, 255, 0.09);
	--chrome-accent: #22d3ee; --chrome-accent-text: #06202a;
	font-family: 'DM Sans', system-ui, sans-serif;
}
body.briefly-ledger .briefly-chrome-footer {
	--chrome-bg: #0b1220; --chrome-border: rgba(255, 255, 255, 0.09);
	font-family: 'DM Sans', system-ui, sans-serif;
}

/* Zephyr — white, near-black, Apple blue */
body.briefly-zephyr .briefly-chrome-header {
	--chrome-bg: rgba(255, 255, 255, 0.85); --chrome-text: #1d1d1f;
	--chrome-muted: #6e6e73; --chrome-border: rgba(0, 0, 0, 0.08);
	--chrome-accent: #0071e3; --chrome-accent-text: #ffffff;
}
body.briefly-zephyr .briefly-chrome-footer { --chrome-bg: #1d1d1f; }
body.briefly-zephyr .briefly-chrome-cta { border-radius: 100px; }

/* Nomad — warm earth, handwritten spirit */
body.briefly-nomad .briefly-chrome-header {
	--chrome-bg: rgba(250, 244, 236, 0.88); --chrome-text: #2c1810;
	--chrome-muted: #6d5140; --chrome-border: rgba(44, 24, 16, 0.12);
	--chrome-accent: #e8956b; --chrome-accent-text: #2c1810;
}
body.briefly-nomad .briefly-chrome-footer { --chrome-bg: #2c1810; --chrome-border: rgba(232, 149, 107, 0.22); }

/* Signal — near-black, violet/blue dev-tool glow */
body.briefly-signal .briefly-chrome-header {
	--chrome-bg: rgba(9, 9, 11, 0.82); --chrome-text: #fafafa;
	--chrome-muted: rgba(250, 250, 250, 0.6); --chrome-border: rgba(255, 255, 255, 0.09);
	--chrome-accent: #a855f7; --chrome-accent-text: #ffffff;
}
body.briefly-signal .briefly-chrome-footer { --chrome-bg: #09090b; }
body.briefly-signal .briefly-chrome-cta { border-radius: 6px; }

/* Canvas — gallery bone white, ink, signal red */
body.briefly-canvas .briefly-chrome-header {
	--chrome-bg: rgba(239, 235, 228, 0.9); --chrome-text: #141414;
	--chrome-muted: #55524c; --chrome-border: rgba(20, 20, 20, 0.14);
	--chrome-accent: #f23000; --chrome-accent-text: #ffffff;
}
body.briefly-canvas .briefly-chrome-footer { --chrome-bg: #141414; }
body.briefly-canvas .briefly-chrome-cta { border-radius: 0; }

/* Hearth — letterpress warmth */
body.briefly-hearth .briefly-chrome-header {
	--chrome-bg: rgba(249, 245, 239, 0.9); --chrome-text: #2a2115;
	--chrome-muted: #6f5f49; --chrome-border: rgba(42, 33, 21, 0.12);
	--chrome-accent: #8a6f4f; --chrome-accent-text: #f9f5ef;
}
body.briefly-hearth .briefly-chrome-footer { --chrome-bg: #2a2115; --chrome-border: rgba(249, 245, 239, 0.14); }

/* Summit — midnight alpine, blaze orange */
body.briefly-summit .briefly-chrome-header {
	--chrome-bg: rgba(8, 20, 38, 0.84); --chrome-text: #e2f0fc;
	--chrome-muted: rgba(226, 240, 252, 0.62); --chrome-border: rgba(226, 240, 252, 0.1);
	--chrome-accent: #ff6b2c; --chrome-accent-text: #081426;
}
body.briefly-summit .briefly-chrome-footer { --chrome-bg: #081426; }

/* Chronicle — editorial paper, masthead red */
body.briefly-chronicle .briefly-chrome-header {
	--chrome-bg: rgba(251, 249, 245, 0.92); --chrome-text: #141414;
	--chrome-muted: #52504b; --chrome-border: rgba(20, 20, 20, 0.16);
	--chrome-accent: #d42a45; --chrome-accent-text: #ffffff;
}
body.briefly-chronicle .briefly-chrome-header .briefly-chrome-brand { font-family: Georgia, 'Times New Roman', serif; letter-spacing: 0; }
body.briefly-chronicle .briefly-chrome-footer { --chrome-bg: #141414; }

/* Harbor — enterprise navy, antique gold */
body.briefly-harbor .briefly-chrome-header {
	--chrome-bg: rgba(10, 24, 48, 0.86); --chrome-text: #f8f5ee;
	--chrome-muted: rgba(248, 245, 238, 0.62); --chrome-border: rgba(203, 169, 107, 0.24);
	--chrome-accent: #cba96b; --chrome-accent-text: #0a1830;
}
body.briefly-harbor .briefly-chrome-footer { --chrome-bg: #0a1830; --chrome-border: rgba(203, 169, 107, 0.24); }

/* Bloom — apothecary cream, terracotta */
body.briefly-bloom .briefly-chrome-header {
	--chrome-bg: rgba(255, 243, 232, 0.9); --chrome-text: #3a281c;
	--chrome-muted: #7c5f49; --chrome-border: rgba(58, 40, 28, 0.12);
	--chrome-accent: #c77e4a; --chrome-accent-text: #fff3e8;
}
body.briefly-bloom .briefly-chrome-footer { --chrome-bg: #3a281c; --chrome-border: rgba(255, 243, 232, 0.14); }
body.briefly-bloom .briefly-chrome-cta { border-radius: 100px; }

/*
 * ==========================================================================
 * Flagship suite themes — Foreman & Keystone
 * These had no chrome variant and fell to the neutral baseline; on their
 * own surfaces the header washed grey-on-grey. Now each wears its theme's
 * own palette, brand accent, and display font — and stays AA-legible.
 * Brand vars resolve through the same host-sync chain as the sections, so
 * Global Theme Sync recolours the chrome live too.
 * ==========================================================================
 */
body.briefly-foreman .briefly-chrome-header {
	--chrome-bg: #14181D; --chrome-text: #F4F6F8;
	--chrome-muted: rgba(244,246,248,0.66); --chrome-border: rgba(255,255,255,0.10);
	--chrome-accent: var(--fm-brand, #F59E0B); --chrome-accent-text: #14181D;
}
body.briefly-foreman .briefly-chrome-header .briefly-chrome-brand { font-family: 'Archivo', system-ui, sans-serif; text-transform: uppercase; letter-spacing: 0.02em; }
body.briefly-foreman .briefly-chrome-footer { --chrome-bg: #14181D; --chrome-border: rgba(255,255,255,0.10); }
body.briefly-foreman .briefly-chrome-cta { border-radius: 6px; font-weight: 700; }

body.briefly-keystone .briefly-chrome-header {
	--chrome-bg: #FFFFFF; --chrome-text: #26221C;
	--chrome-muted: #6E675B; --chrome-border: #E7E2D6;
	--chrome-accent: var(--ks-brand, #2F6E4E); --chrome-accent-text: #FFFFFF;
}
body.briefly-keystone .briefly-chrome-header .briefly-chrome-brand { font-family: 'Marcellus', Georgia, serif; letter-spacing: 0; font-weight: 400; }
body.briefly-keystone .briefly-chrome-footer { --chrome-bg: #26221C; --chrome-border: rgba(255,255,255,0.12); }
body.briefly-keystone .briefly-chrome-cta { border-radius: 999px; }

/*
 * ==========================================================================
 * Theme variants — Classic Hub themes (7)
 * ==========================================================================
 */

body.briefly-foundry .briefly-chrome-header {
	--chrome-bg: rgba(255, 255, 255, 0.92); --chrome-text: #16264a;
	--chrome-muted: #44506b; --chrome-border: rgba(22, 38, 74, 0.12);
	--chrome-accent: #d63b2c; --chrome-accent-text: #ffffff;
}
body.briefly-foundry .briefly-chrome-footer { --chrome-bg: #16264a; }

body.briefly-prestige .briefly-chrome-header {
	--chrome-bg: rgba(26, 25, 23, 0.88); --chrome-text: #f2f0eb;
	--chrome-muted: rgba(242, 240, 235, 0.6); --chrome-border: rgba(184, 145, 42, 0.28);
	--chrome-accent: #b8912a; --chrome-accent-text: #1a1917;
}
body.briefly-prestige .briefly-chrome-header .briefly-chrome-brand { font-family: Georgia, 'Times New Roman', serif; letter-spacing: 0.02em; }
body.briefly-prestige .briefly-chrome-footer { --chrome-bg: #1a1917; --chrome-border: rgba(184, 145, 42, 0.28); }

body.briefly-clinic .briefly-chrome-header {
	--chrome-bg: rgba(242, 247, 247, 0.92); --chrome-text: #0f2020;
	--chrome-muted: #3f5b5b; --chrome-border: rgba(13, 114, 114, 0.16);
	--chrome-accent: #0d7272; --chrome-accent-text: #ffffff;
}
body.briefly-clinic .briefly-chrome-footer { --chrome-bg: #0f2020; }

body.briefly-medici .briefly-chrome-header {
	--chrome-bg: rgba(242, 239, 230, 0.92); --chrome-text: #0f1c2e;
	--chrome-muted: #46536b; --chrome-border: rgba(15, 28, 46, 0.14);
	--chrome-accent: #a08540; --chrome-accent-text: #ffffff;
}
body.briefly-medici .briefly-chrome-footer { --chrome-bg: #0f1c2e; }

body.briefly-vertex .briefly-chrome-header {
	--chrome-bg: rgba(255, 255, 255, 0.9); --chrome-text: #14171c;
	--chrome-muted: #4a5262; --chrome-border: rgba(20, 23, 28, 0.1);
	--chrome-accent: #2451d9; --chrome-accent-text: #ffffff;
}
body.briefly-vertex .briefly-chrome-footer { --chrome-bg: #14171c; }
body.briefly-vertex .briefly-chrome-cta { border-radius: 6px; }

body.briefly-drift .briefly-chrome-header {
	--chrome-bg: rgba(12, 10, 8, 0.85); --chrome-text: #f5efe6;
	--chrome-muted: rgba(245, 239, 230, 0.6); --chrome-border: rgba(196, 123, 24, 0.24);
	--chrome-accent: #c47b18; --chrome-accent-text: #0c0a08;
}
body.briefly-drift .briefly-chrome-footer { --chrome-bg: #0c0a08; --chrome-border: rgba(196, 123, 24, 0.24); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.briefly-chrome-header, .briefly-chrome-cta, .briefly-chrome-burger span, .briefly-chrome-link { transition: none; }
}

/*
 * ── Dropdown navigation ─────────────────────────────────────────────
 * Parent items with children render a dropdown: hover / keyboard focus on
 * desktop, tap-to-expand accordion inside the burger menu on mobile.
 */
.briefly-chrome-item { position: relative; display: inline-flex; align-items: center; }
.briefly-chrome-parent { background: none; border: 0; font: inherit; color: inherit;
	cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 0; }
.briefly-chrome-caret { width: 8px; height: 8px; border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px);
	transition: transform .18s ease; opacity: .65; }
/*
 * Contrast guard, all themes, no per-theme list. The dropdown
 * Always reuses its theme's own header bg/text pair (--chrome-bg /
 * --chrome-text), which every theme block below already defines as a
 * readable, checked pair for its own header text. Reusing that pair
 * guarantees the dropdown can never go text-on-matching-background for
 * Any theme — including future ones — with zero per-theme maintenance.
 */
.briefly-chrome-dropdown { position: absolute; top: calc(100% + 10px); left: 50%;
	transform: translateX(-50%) translateY(6px); min-width: 210px;
	background: var(--chrome-bg, #ffffff); color: var(--chrome-text, #111827);
	border: 1px solid var(--chrome-border, rgba(0,0,0,.08));
	border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.14); padding: 8px;
	display: flex; flex-direction: column; gap: 2px; opacity: 0; visibility: hidden;
	transition: opacity .16s ease, transform .16s ease, visibility .16s; z-index: 60; }
.briefly-chrome-item:hover > .briefly-chrome-dropdown,
.briefly-chrome-item:focus-within > .briefly-chrome-dropdown,
.briefly-chrome-item.is-open > .briefly-chrome-dropdown {
	opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.briefly-chrome-item:hover > .briefly-chrome-parent .briefly-chrome-caret,
.briefly-chrome-item.is-open > .briefly-chrome-parent .briefly-chrome-caret {
	transform: rotate(225deg) translateY(-2px); }
.briefly-chrome-sublink { display: block; padding: 9px 12px; border-radius: 7px;
	font-size: .9em; text-decoration: none; color: inherit; white-space: nowrap; }

.briefly-chrome-sublink:hover, .briefly-chrome-sublink:focus {
	background: color-mix(in srgb, var(--chrome-text, #111827) 8%, transparent); }

/* Mobile burger panel: dropdowns become accordions. */
@media (max-width: 860px) {
	.briefly-chrome-item { display: block; width: 100%; }
	.briefly-chrome-parent { width: 100%; justify-content: space-between; padding: 10px 0; }
	.briefly-chrome-dropdown { position: static; transform: none; min-width: 0;
		box-shadow: none; border: 0; border-left: 2px solid rgba(0,0,0,.12);
		border-radius: 0; padding: 0 0 0 14px; margin: 0 0 6px;
		max-height: 0; overflow: hidden; opacity: 1; visibility: visible;
		transition: max-height .22s ease; }
	.briefly-chrome-item.is-open > .briefly-chrome-dropdown { max-height: 480px; }
	.briefly-chrome-item:hover > .briefly-chrome-dropdown { max-height: 0; } /* hover means nothing on touch */
	.briefly-chrome-item.is-open:hover > .briefly-chrome-dropdown { max-height: 480px; }
	.briefly-chrome-sublink { white-space: normal; }
}

/* View all, the grouped Services panel, the More tab, and footer columns that end in a link to the rest. */
@media (min-width: 861px) {
	.briefly-chrome-dropdown { max-height: min(74vh, 620px); overflow-y: auto; }
}
.briefly-chrome-link.briefly-chrome-parent { font-size: 0.9rem; font-weight: 600; }
.briefly-chrome-dropdown { font-size: 1rem; font-weight: 400; }
.briefly-chrome-viewall { font-weight: 600; margin-top: 4px; padding-top: 11px; border-top: 1px solid var(--chrome-border, rgba(0,0,0,.08)); border-radius: 0 0 7px 7px; }
.briefly-chrome-item.is-mega { position: static; }
.briefly-chrome-mega { width: min(1080px, calc(100vw - 2rem)); padding: 16px 18px 10px; gap: 6px; top: calc(100% + 2px); }
.briefly-chrome-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; }
.briefly-chrome-megagrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 20px; }
.briefly-chrome-col { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.briefly-chrome-coltitle { display: block; padding: 6px 12px 8px; font-size: .72em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: inherit; opacity: .68; }
a.briefly-chrome-coltitle:hover, a.briefly-chrome-coltitle:focus { opacity: 1; }
.briefly-chrome-mega .briefly-chrome-sublink { white-space: normal; }
.briefly-chrome-colall { font-weight: 600; }
.briefly-chrome-footer-all a { color: var(--chrome-text); font-weight: 600; }
@media (min-width: 861px) {
	.briefly-chrome-footer-col.is-long .briefly-chrome-footer-all { column-span: all; margin-top: .3rem; }
}
@media (max-width: 860px) {
	.briefly-chrome-nav.is-open { max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto; }
	.briefly-chrome-mega { width: auto; padding: 0 0 0 14px; }
	.briefly-chrome-mega::before { display: none; }
	.briefly-chrome-megagrid { grid-template-columns: 1fr; gap: 4px; }
	.briefly-chrome-coltitle { padding-left: 0; }
	.briefly-chrome-item.is-open > .briefly-chrome-dropdown,
	.briefly-chrome-item.is-open:hover > .briefly-chrome-dropdown { max-height: 2400px; }
	.briefly-chrome-viewall { border-radius: 0; }
}
/*
 * The open list on a phone. The rule that centres a dropdown under its tab on a wide
 * screen (translateX(-50%)) still applied once a list was open on a phone, so the whole list
 * sat half its own width off the left edge. A tab that opens a list is also the same size, in
 * the same place and has the same rule under it as a plain link, "More" is laid out as plain
 * links, and the menu stops above a sticky bar at the bottom of the screen.
 */
@media (max-width: 860px) {
	.briefly-chrome-item:hover > .briefly-chrome-dropdown,
	.briefly-chrome-item:focus-within > .briefly-chrome-dropdown,
	.briefly-chrome-item.is-open > .briefly-chrome-dropdown { transform: none; }
	.briefly-chrome-dropdown, .briefly-chrome-mega { left: auto; top: auto; width: auto; margin: 0 0 8px 0.25rem; }
	.briefly-chrome-link.briefly-chrome-parent { font-size: 1rem; padding: 0.85rem 0.25rem; border-bottom: 1px solid var(--chrome-border); box-sizing: border-box; text-align: left; }
	.briefly-chrome-item.is-open > .briefly-chrome-parent { border-bottom-color: transparent; }
	.briefly-chrome-sublink { padding: 0.75rem 0.25rem; font-size: 0.95rem; }
	.briefly-chrome-item.is-more > .briefly-chrome-parent { display: none; }
	.briefly-chrome-item.is-more > .briefly-chrome-dropdown,
	.briefly-chrome-item.is-more:hover > .briefly-chrome-dropdown { max-height: none; overflow: visible; border: 0; padding: 0; margin: 0; }
	.briefly-chrome-item.is-more .briefly-chrome-sublink { padding: 0.85rem 0.25rem; font-size: 1rem; font-weight: 600; color: var(--chrome-muted); border-bottom: 1px solid var(--chrome-border); border-radius: 0; }
	.briefly-chrome-nav.is-open { max-height: calc(100vh - var(--bfy-head-h, 72px) - var(--bfy-bar-h, 0px)); max-height: calc(100dvh - var(--bfy-head-h, 72px) - var(--bfy-bar-h, 0px)); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
}

/*
 * ==========================================================================
 * The header and footer keep their own colours, in every design.
 *
 * Two causes, both fixed here.
 *
 * 1. A design's own rules reached into the header and footer. Every design
 * styles its page with rules such as ".briefly-gather a { color: inherit }"
 * and ".briefly-canvas p { color: ... }". Those are written for the page,
 * but the header and footer sit inside the same body, and each of those
 * rules outranks a single class such as ".briefly-chrome-link". So menu
 * links took the page's text colour (light, on a dark design, over a white
 * header), the button's label took it too, and the footer's column titles
 * took the page's dark text over a dark footer. The rules below say the
 * same colours as the top of this file, from inside the header or footer,
 * which outranks any rule a design writes for a bare a, p or heading.
 *
 * 2. Sixteen designs had no header of their own and fell back to white with a
 * blue button. Each now wears its own colours, read from the design's own
 * variables, so a colour changed in the design changes here as well.
 * ==========================================================================
 */
.briefly-chrome-header { color: var(--chrome-text); }
.briefly-chrome-header .briefly-chrome-brand { color: var(--chrome-text); }
.briefly-chrome-header .briefly-chrome-link,
.briefly-chrome-header .briefly-chrome-phone,
.briefly-chrome-header .briefly-chrome-social-icon { color: var(--chrome-muted); }
.briefly-chrome-header .briefly-chrome-link:hover,
.briefly-chrome-header .briefly-chrome-link:focus-visible,
.briefly-chrome-header .briefly-chrome-phone:hover,
.briefly-chrome-header .briefly-chrome-social-icon:hover,
.briefly-chrome-header .briefly-chrome-item.is-open > .briefly-chrome-parent { color: var(--chrome-text); }
.briefly-chrome-header .briefly-chrome-cta,
.briefly-chrome-header .briefly-chrome-cta:hover { color: var(--chrome-accent-text); }
.briefly-chrome-header .briefly-chrome-dropdown { color: var(--chrome-text); }
.briefly-chrome-header .briefly-chrome-dropdown .briefly-chrome-sublink,
.briefly-chrome-header .briefly-chrome-dropdown .briefly-chrome-coltitle { color: var(--chrome-text); }

.briefly-chrome-footer .briefly-chrome-brand,
.briefly-chrome-footer .briefly-chrome-footer-title,
.briefly-chrome-footer .briefly-chrome-footer-all a,
.briefly-chrome-footer .briefly-chrome-shop-btn { color: var(--chrome-text); }
.briefly-chrome-footer .briefly-chrome-footer-brand p,
.briefly-chrome-footer .briefly-chrome-copyright,
.briefly-chrome-footer .briefly-chrome-footer-nav a,
.briefly-chrome-footer .briefly-chrome-footer-contact a,
.briefly-chrome-footer .briefly-chrome-footer-col a,
.briefly-chrome-footer .briefly-chrome-social-icon { color: var(--chrome-muted); }
.briefly-chrome-footer .briefly-chrome-footer-nav a:hover,
.briefly-chrome-footer .briefly-chrome-footer-contact a:hover,
.briefly-chrome-footer .briefly-chrome-footer-col a:hover,
.briefly-chrome-footer .briefly-chrome-social-icon:hover { color: var(--chrome-text); }
.briefly-chrome-footer .briefly-chrome-footer-all a { color: var(--chrome-text); }

/* Designs on a light page: the page's own background and ink, the design's own button. The footer is the ink. */
body.briefly-emporium .briefly-chrome-header {
	--chrome-bg: var(--em-bg); --chrome-text: var(--em-ink);
	--chrome-muted: color-mix(in srgb, var(--em-ink) 80%, var(--em-bg)); --chrome-border: var(--em-border);
	--chrome-accent: var(--em-brand); --chrome-accent-text: var(--em-on-brand);
}
body.briefly-emporium .briefly-chrome-footer { --chrome-bg: var(--em-ink); }
body.briefly-showcase .briefly-chrome-header {
	--chrome-bg: var(--sc-bg); --chrome-text: var(--sc-ink);
	--chrome-muted: color-mix(in srgb, var(--sc-ink) 80%, var(--sc-bg)); --chrome-border: var(--sc-border);
	--chrome-accent: var(--sc-brand); --chrome-accent-text: var(--sc-on-brand);
}
body.briefly-showcase .briefly-chrome-footer { --chrome-bg: var(--sc-ink); }
body.briefly-odyssey .briefly-chrome-header {
	--chrome-bg: var(--od-bg); --chrome-text: var(--od-ink);
	--chrome-muted: color-mix(in srgb, var(--od-ink) 80%, var(--od-bg)); --chrome-border: var(--od-border);
	--chrome-accent: var(--od-brand); --chrome-accent-text: var(--od-on-brand);
}
body.briefly-odyssey .briefly-chrome-footer { --chrome-bg: var(--od-ink); }
body.briefly-craft .briefly-chrome-header {
	--chrome-bg: var(--cr-bg); --chrome-text: var(--cr-ink);
	--chrome-muted: color-mix(in srgb, var(--cr-ink) 80%, var(--cr-bg)); --chrome-border: var(--cr-border);
	--chrome-accent: var(--cr-brand); --chrome-accent-text: var(--cr-on-brand);
}
body.briefly-craft .briefly-chrome-footer { --chrome-bg: var(--cr-ink); }
body.briefly-meridian .briefly-chrome-header {
	--chrome-bg: var(--md-bg); --chrome-text: var(--md-ink);
	--chrome-muted: color-mix(in srgb, var(--md-ink) 80%, var(--md-bg)); --chrome-border: var(--md-border);
	--chrome-accent: var(--md-brand); --chrome-accent-text: var(--md-on-brand);
}
body.briefly-meridian .briefly-chrome-footer { --chrome-bg: var(--md-ink); }
body.briefly-vanity .briefly-chrome-header {
	--chrome-bg: var(--vn-bg); --chrome-text: var(--vn-ink);
	--chrome-muted: color-mix(in srgb, var(--vn-ink) 80%, var(--vn-bg)); --chrome-border: var(--vn-border);
	--chrome-accent: var(--vn-brand); --chrome-accent-text: var(--vn-on-brand);
}
body.briefly-vanity .briefly-chrome-footer { --chrome-bg: var(--vn-ink); }
body.briefly-ascend .briefly-chrome-header {
	--chrome-bg: var(--as-bg); --chrome-text: var(--as-ink);
	--chrome-muted: color-mix(in srgb, var(--as-ink) 80%, var(--as-bg)); --chrome-border: var(--as-border);
	--chrome-accent: var(--as-brand); --chrome-accent-text: var(--as-on-brand);
}
body.briefly-ascend .briefly-chrome-footer { --chrome-bg: var(--as-ink); }
body.briefly-paws .briefly-chrome-header {
	--chrome-bg: var(--pw-bg); --chrome-text: var(--pw-ink);
	--chrome-muted: color-mix(in srgb, var(--pw-ink) 80%, var(--pw-bg)); --chrome-border: var(--pw-border);
	--chrome-accent: var(--pw-brand); --chrome-accent-text: var(--pw-on-brand);
}
body.briefly-paws .briefly-chrome-footer { --chrome-bg: var(--pw-ink); }
body.briefly-impact .briefly-chrome-header {
	--chrome-bg: var(--im-bg); --chrome-text: var(--im-ink);
	--chrome-muted: color-mix(in srgb, var(--im-ink) 80%, var(--im-bg)); --chrome-border: var(--im-border);
	--chrome-accent: var(--im-brand); --chrome-accent-text: var(--im-on-brand);
}
body.briefly-impact .briefly-chrome-footer { --chrome-bg: var(--im-ink); }
body.briefly-atlas .briefly-chrome-header {
	--chrome-bg: var(--at-bg); --chrome-text: var(--at-ink);
	--chrome-muted: color-mix(in srgb, var(--at-ink) 80%, var(--at-bg)); --chrome-border: var(--at-border);
	--chrome-accent: var(--at-brand); --chrome-accent-text: var(--at-on-brand);
}
body.briefly-atlas .briefly-chrome-footer { --chrome-bg: var(--at-ink); }

/* Designs on a dark page: a dark header and footer to match, light text, the design's own button. */
body.briefly-aperture .briefly-chrome-header {
	--chrome-bg: var(--ap-bg); --chrome-text: var(--ap-ink);
	--chrome-muted: color-mix(in srgb, var(--ap-ink) 78%, var(--ap-bg)); --chrome-border: var(--ap-border);
	--chrome-accent: var(--ap-brand); --chrome-accent-text: var(--ap-on-brand);
}
body.briefly-aperture .briefly-chrome-footer { --chrome-bg: var(--ap-bg); --chrome-text: var(--ap-ink); --chrome-muted: color-mix(in srgb, var(--ap-ink) 70%, var(--ap-bg)); --chrome-border: var(--ap-border); }
body.briefly-torque .briefly-chrome-header {
	--chrome-bg: var(--tq-bg); --chrome-text: var(--tq-ink);
	--chrome-muted: color-mix(in srgb, var(--tq-ink) 78%, var(--tq-bg)); --chrome-border: var(--tq-border);
	--chrome-accent: var(--tq-brand); --chrome-accent-text: var(--tq-on-brand);
}
body.briefly-torque .briefly-chrome-footer { --chrome-bg: var(--tq-bg); --chrome-text: var(--tq-ink); --chrome-muted: color-mix(in srgb, var(--tq-ink) 70%, var(--tq-bg)); --chrome-border: var(--tq-border); }
body.briefly-savor .briefly-chrome-header {
	--chrome-bg: var(--sv-bg); --chrome-text: var(--sv-ink);
	--chrome-muted: color-mix(in srgb, var(--sv-ink) 78%, var(--sv-bg)); --chrome-border: var(--sv-border);
	--chrome-accent: var(--sv-brand); --chrome-accent-text: var(--sv-on-brand);
}
body.briefly-savor .briefly-chrome-footer { --chrome-bg: var(--sv-bg); --chrome-text: var(--sv-ink); --chrome-muted: color-mix(in srgb, var(--sv-ink) 70%, var(--sv-bg)); --chrome-border: var(--sv-border); }
body.briefly-forge .briefly-chrome-header {
	--chrome-bg: var(--fg-bg); --chrome-text: var(--fg-ink);
	--chrome-muted: color-mix(in srgb, var(--fg-ink) 78%, var(--fg-bg)); --chrome-border: var(--fg-border);
	--chrome-accent: var(--fg-brand); --chrome-accent-text: var(--fg-on-brand);
}
body.briefly-forge .briefly-chrome-footer { --chrome-bg: var(--fg-bg); --chrome-text: var(--fg-ink); --chrome-muted: color-mix(in srgb, var(--fg-ink) 70%, var(--fg-bg)); --chrome-border: var(--fg-border); }
body.briefly-gather .briefly-chrome-header {
	--chrome-bg: var(--gt-bg); --chrome-text: var(--gt-ink);
	--chrome-muted: color-mix(in srgb, var(--gt-ink) 78%, var(--gt-bg)); --chrome-border: var(--gt-border);
	--chrome-accent: var(--gt-brand); --chrome-accent-text: var(--gt-on-brand);
}
body.briefly-gather .briefly-chrome-footer { --chrome-bg: var(--gt-bg); --chrome-text: var(--gt-ink); --chrome-muted: color-mix(in srgb, var(--gt-ink) 70%, var(--gt-bg)); --chrome-border: var(--gt-border); }
body.briefly-wayfarer .briefly-chrome-header {
	--chrome-bg: var(--wf-bg); --chrome-text: var(--wf-ink);
	--chrome-muted: color-mix(in srgb, var(--wf-ink) 78%, var(--wf-bg)); --chrome-border: var(--wf-border);
	--chrome-accent: var(--wf-brand); --chrome-accent-text: var(--wf-on-brand);
}
body.briefly-wayfarer .briefly-chrome-footer { --chrome-bg: var(--wf-bg); --chrome-text: var(--wf-ink); --chrome-muted: color-mix(in srgb, var(--wf-ink) 70%, var(--wf-bg)); --chrome-border: var(--wf-border); }

/* Six header buttons had a label under 4.5:1 against the button. In the header only, the button is a shade
   darker; the design's own colour everywhere else on the page is not changed. */
body.briefly-signal .briefly-chrome-header { --chrome-accent: #974cde; }
body.briefly-canvas .briefly-chrome-header { --chrome-accent: #df2c00; }
body.briefly-hearth .briefly-chrome-header { --chrome-accent: #846b4c; }
body.briefly-bloom .briefly-chrome-header { --chrome-accent: #976038; }
body.briefly-emporium .briefly-chrome-header { --chrome-accent: color-mix(in srgb, var(--em-brand) 92%, #000); }
body.briefly-paws .briefly-chrome-header { --chrome-accent: color-mix(in srgb, var(--pw-brand) 86%, #000); }

/*
 * ==========================================================================
 * Search in the header (switched on under Business Brief → Your site header).
 * A computer: a magnifier beside the menu that opens a box under it.
 * A phone: the box sits open at the top of the menu.
 * ==========================================================================
 */
.briefly-chrome-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.briefly-chrome-search { position: relative; display: inline-flex; align-items: center; }
.briefly-chrome-header .briefly-chrome-search-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; margin: 0 -0.35rem; padding: 0; border: 0; border-radius: 999px;
	background: transparent; color: var(--chrome-muted); cursor: pointer;
	transition: color .15s ease, background-color .15s ease;
}
.briefly-chrome-header .briefly-chrome-search-btn:hover,
.briefly-chrome-header .briefly-chrome-search.is-open .briefly-chrome-search-btn { color: var(--chrome-text); background: color-mix(in srgb, var(--chrome-text) 8%, transparent); }
.briefly-chrome-search-btn:focus-visible { outline: 2px solid var(--chrome-text); outline-offset: 2px; }
.briefly-chrome-search-panel {
	position: absolute; top: calc(100% + 14px); right: -0.5rem; z-index: 61;
	width: min(380px, calc(100vw - 2rem)); padding: 10px;
	background: var(--chrome-bg, #fff); color: var(--chrome-text, #111827);
	border: 1px solid var(--chrome-border, rgba(0,0,0,.08)); border-radius: 12px;
	box-shadow: 0 14px 36px rgba(0, 0, 0, .16);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.briefly-chrome-search-panel[hidden] { display: none; }
.briefly-chrome-search-form { position: relative; display: flex; align-items: center; gap: 8px; margin: 0; }
.briefly-chrome-search-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); display: inline-flex; color: var(--chrome-muted); pointer-events: none; }
.briefly-chrome-header .briefly-chrome-search-form input[type="search"] {
	flex: 1 1 auto; min-width: 0; height: 44px; margin: 0; padding: 0 12px 0 38px;
	border: 1px solid var(--chrome-border, #d7dade); border-radius: 9px;
	background: color-mix(in srgb, var(--chrome-text) 4%, var(--chrome-bg, #fff)); color: var(--chrome-text);
	font: inherit; font-size: 16px; line-height: 1; box-shadow: none; -webkit-appearance: none; appearance: none;
}
.briefly-chrome-header .briefly-chrome-search-form input[type="search"]::placeholder { color: var(--chrome-muted); opacity: .85; }
.briefly-chrome-header .briefly-chrome-search-form input[type="search"]:focus { outline: 2px solid var(--chrome-accent); outline-offset: 1px; border-color: transparent; }
.briefly-chrome-header .briefly-chrome-search-go {
	flex: none; height: 44px; margin: 0; padding: 0 16px; border: 0; border-radius: 9px;
	background: var(--chrome-accent); color: var(--chrome-accent-text); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer;
}
.briefly-chrome-search-go:focus-visible { outline: 2px solid var(--chrome-text); outline-offset: 2px; }
.briefly-chrome-search-extra { margin-top: 10px; }
@media (max-width: 860px) {
	.briefly-chrome-nav .briefly-chrome-search { order: -1; display: block; margin: 0.35rem 0 0.4rem; }
	.briefly-chrome-header .briefly-chrome-search-btn { display: none; }
	.briefly-chrome-search-panel,
	.briefly-chrome-search-panel[hidden] { display: block; position: static; width: auto; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) { .briefly-chrome-search-btn { transition: none; } }
@media print { .briefly-chrome-search { display: none !important; } }

/*
 * Panels that open from the header are solid. Sixteen designs give the header bar a
 * see-through colour so the page shows softly behind it as it scrolls. The bar blurs what is
 * behind it, but a panel that opens below the bar cannot (the blur stops at the bar's edge), so
 * the page's own words showed through the open phone menu, the dropdowns and the search box.
 * Panels take the same colour with the see-through part taken out. Browsers that cannot work
 * that out keep the colour as it was.
 */
@supports (color: rgb(from red r g b)) {
	.briefly-chrome-header .briefly-chrome-dropdown,
	.briefly-chrome-header .briefly-chrome-search-panel { background-color: rgb(from var(--chrome-bg, #ffffff) r g b / 1); }
	@media (max-width: 860px) {
		.briefly-chrome-header .briefly-chrome-nav { background-color: rgb(from var(--chrome-bg, #ffffff) r g b / 1); }
		.briefly-chrome-header .briefly-chrome-dropdown,
		.briefly-chrome-header .briefly-chrome-search-panel { background-color: transparent; }
	}
}

/*
 * ==========================================================================
 * Cart and account (a shop with WooCommerce; Business Brief → Your site header).
 * A computer: at the right end of the bar. A phone: beside the menu button.
 * ==========================================================================
 */
.briefly-chrome-inner.has-shop .briefly-chrome-nav { margin-left: auto; }
.briefly-chrome-shop { display: flex; align-items: center; gap: 2px; flex: none; margin-left: -0.6rem; }
.briefly-chrome-header .briefly-chrome-cart,
.briefly-chrome-header .briefly-chrome-account {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; border-radius: 999px; color: var(--chrome-text); text-decoration: none;
	transition: background-color .15s ease;
}
.briefly-chrome-header .briefly-chrome-cart:hover,
.briefly-chrome-header .briefly-chrome-account:hover { background: color-mix(in srgb, var(--chrome-text) 8%, transparent); }
.briefly-chrome-cart:focus-visible, .briefly-chrome-account:focus-visible { outline: 2px solid var(--chrome-text); outline-offset: 1px; }
.briefly-chrome-cart-count {
	position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
	background: var(--chrome-accent, #1a56db); color: var(--chrome-accent-text, #fff);
	font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums;
	box-shadow: 0 0 0 2px rgb(from var(--chrome-bg, #ffffff) r g b / 1);
}
.briefly-chrome-cart-count[hidden] { display: none; }
@keyframes briefly-cart-bump { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
.briefly-chrome-cart.is-bumped .briefly-chrome-cart-count { animation: briefly-cart-bump .45s ease; }
@media (max-width: 860px) {
	.briefly-chrome-inner.has-shop { gap: 0.4rem; }
	.briefly-chrome-inner.has-shop .briefly-chrome-call { order: 1; }
	.briefly-chrome-inner.has-shop .briefly-chrome-shop { order: 2; margin-left: auto; }
	.briefly-chrome-inner.has-shop .briefly-chrome-call ~ .briefly-chrome-shop { margin-left: 0; }
	.briefly-chrome-inner.has-shop .briefly-chrome-burger { order: 3; }
	.briefly-chrome-inner.has-shop .briefly-chrome-call { margin-right: 0; }
}
/* A narrow phone with a call button: the account link gives way; the cart stays. */
@media (max-width: 420px) {
	.briefly-chrome-inner.has-shop .briefly-chrome-call ~ .briefly-chrome-shop .briefly-chrome-account { display: none; }
	.briefly-chrome-inner.has-shop .briefly-chrome-call span { display: none; }
	.briefly-chrome-inner.has-shop .briefly-chrome-call { padding: 0.55rem 0.7rem; }
}
@media (prefers-reduced-motion: reduce) { .briefly-chrome-cart.is-bumped .briefly-chrome-cart-count { animation: none; } }
@media print { .briefly-chrome-shop { display: none !important; } }

/*
 * A phone keeps its menu button on screen whatever the business is called.
 * The name used to stay on one line, so a longer name (or a design that sets
 * it larger) pushed the call and menu buttons past the right edge, where
 * they could not be tapped. The name now wraps to a second line and gives
 * way; the two buttons never do.
 */
@media (max-width: 860px) {
	.briefly-chrome-header .briefly-chrome-inner { gap: 0.75rem; }
	.briefly-chrome-header .briefly-chrome-brand { flex: 1 1 auto; min-width: 0; white-space: normal; line-height: 1.15; overflow-wrap: anywhere; }
	.briefly-chrome-header .briefly-chrome-call,
	.briefly-chrome-header .briefly-chrome-burger { flex: 0 0 auto; }
	.briefly-chrome-header .briefly-chrome-call { margin-left: 0; }
}

/* ── Over a photo opening ────────────────────────────────────────────────
   On a page that opens on a full-width photograph (a Loom cover or turning
   opening, or a design's own opening marked lm-overlay), the header lies on the photograph — clear, white words over a
   soft shade — and becomes the design's own solid bar the moment the page
   moves (chrome.js marks it .is-scrolled). An open phone menu is always solid. */
body:has(.lm-sec.lm-hero--cover, .lm-sec.lm-overlay .lm-hero__media > img:first-child:not([src=""])) .briefly-chrome-header {
	position: fixed;
	/* --briefly-chrome-top: room kept above the header for a banner that sits over it (set by script, 0 when none). */
	top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--briefly-chrome-top, 0px));
	left: 0;
	right: 0;
	transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
body:has(.lm-sec.lm-hero--cover, .lm-sec.lm-overlay .lm-hero__media > img:first-child:not([src=""])) .briefly-chrome-header:not(.is-scrolled):not(:has(.is-open)) {
	--chrome-bg: transparent;
	--chrome-text: #FFFFFF;
	--chrome-muted: rgba(255, 255, 255, 0.86);
	--chrome-border: transparent;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0));
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	box-shadow: none;
}
body:has(.lm-sec.lm-hero--cover, .lm-sec.lm-overlay .lm-hero__media > img:first-child:not([src=""])) .briefly-chrome-header:not(.is-scrolled):not(:has(.is-open)) :is(.briefly-chrome-brand, .briefly-chrome-link, .briefly-chrome-phone) { color: #FFFFFF; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
body:has(.lm-sec.lm-hero--cover, .lm-sec.lm-overlay .lm-hero__media > img:first-child:not([src=""])) .briefly-chrome-header:not(.is-scrolled):not(:has(.is-open)) .briefly-chrome-burger span { background: #FFFFFF; }
/* The bar settles a little slimmer once the page is moving, on every page. */
.briefly-chrome-header .briefly-chrome-inner { transition: padding 0.3s ease; }
.briefly-chrome-header.is-scrolled .briefly-chrome-inner { padding-top: 0.55rem; padding-bottom: 0.55rem; }
@media (prefers-reduced-motion: reduce) {
	body:has(.lm-sec.lm-hero--cover, .lm-sec.lm-overlay .lm-hero__media > img:first-child:not([src=""])) .briefly-chrome-header,
	.briefly-chrome-header .briefly-chrome-inner { transition: none; }
}
