/* New Beginnings – cookie banner. Brand: teal #005465, cream #efebe7, gold #eab339. */
#nbc-root {
	--nbc-teal: #005465;
	--nbc-teal-dark: #003c48;
	--nbc-cream: #efebe7;
	--nbc-gold: #eab339;
	--nbc-red: #c9402b;
	--nbc-text: #1d1d1d;
	--nbc-muted: #3c3c3c;
	--nbc-line: #e3e0dc;
	--nbc-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-family: var(--nbc-font);
}
#nbc-root *, #nbc-root *::before, #nbc-root *::after { box-sizing: border-box; }
#nbc-root [hidden] { display: none !important; }
#nbc-root p { margin: 0 0 10px; padding: 0; }
#nbc-root a { color: var(--nbc-teal); text-decoration: underline; text-underline-offset: 2px; }
#nbc-root h2, #nbc-root h3, #nbc-root h4 { font-family: var(--nbc-font); padding: 0; letter-spacing: 0; text-transform: none; }
#nbc-root svg { width: 18px; height: 18px; flex: none; }
#nbc-root :focus-visible { outline: 3px solid var(--nbc-gold); outline-offset: 2px; }
.nbc-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
#nbc-root .nbc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	font: 700 14px/1.3 var(--nbc-font); letter-spacing: 0; text-transform: none;
	padding: 11px 20px; min-height: 44px; border: 1px solid transparent; border-radius: 64px;
	cursor: pointer; text-decoration: none; box-shadow: none; margin: 0;
	transition: filter .15s ease, background-color .15s ease;
}
#nbc-root .nbc-btn:hover { filter: brightness(0.94); }
#nbc-root .nbc-btn-reject { background: var(--nbc-red); color: #fff; }
#nbc-root .nbc-btn-accept { background: var(--nbc-gold); color: var(--nbc-teal-dark); }
#nbc-root .nbc-btn-more, #nbc-root .nbc-btn-save { background: var(--nbc-teal); color: var(--nbc-cream); }
#nbc-root .nbc-btn-grey { background: #ededed; color: var(--nbc-muted); border-color: rgba(0,0,0,.06); }
#nbc-root .nbc-btn-outline { background: #fff; color: var(--nbc-teal); border-color: var(--nbc-teal); border-radius: 6px; padding: 9px 16px; min-height: 40px; }

/* ---------- first layer (floating, bottom left) ---------- */
#nbc-root .nbc-banner {
	position: fixed; left: 16px; bottom: 16px; z-index: 2147483600;
	width: 448px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px);
	display: flex; flex-direction: column;
	background: #fff; color: var(--nbc-text); border-radius: 4px;
	box-shadow: 0 8px 48px rgba(0,0,0,.15);
	font-size: 14px; line-height: 1.45;
}
#nbc-root .nbc-brand { background: var(--nbc-cream); padding: 16px; border-radius: 4px 4px 0 0; flex: none; }
#nbc-root .nbc-brand img { display: block; width: 64px; height: 32px; }
#nbc-root .nbc-content { padding: 16px; overflow-y: auto; }
#nbc-root .nbc-title { font-size: 14px; font-weight: 700; line-height: 1.4; color: #000; margin: 0 0 10px; }
#nbc-root .nbc-text p { font-size: 14px; line-height: 1.45; color: var(--nbc-text); }
#nbc-root .nbc-toggles { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 14px 0 16px; }
#nbc-root .nbc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
#nbc-root .nbc-btn-more { width: 100%; }

/* ---------- switches ---------- */
#nbc-root .nbc-switch { position: relative; display: inline-flex; }
#nbc-root .nbc-switch input { position: absolute; opacity: 0; width: 44px; height: 24px; margin: 0; cursor: pointer; }
#nbc-root .nbc-switch label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: var(--nbc-text); margin: 0; padding: 0; }
#nbc-root .nbc-track { position: relative; width: 44px; height: 24px; border-radius: 24px; background: #8f8f8f; transition: background-color .15s ease; flex: none; }
#nbc-root .nbc-knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
#nbc-root .nbc-switch input:checked + label .nbc-track { background: var(--nbc-teal); }
#nbc-root .nbc-switch input:checked + label .nbc-knob { transform: translateX(20px); }
#nbc-root .nbc-switch input:focus-visible + label .nbc-track { outline: 3px solid var(--nbc-gold); outline-offset: 2px; }
#nbc-root .nbc-m-section .nbc-switch-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- preferences panel (second layer) ---------- */
#nbc-root .nbc-overlay {
	position: fixed; inset: 0; z-index: 2147483601; background: rgba(0,0,0,.45);
	display: flex; align-items: center; justify-content: center; padding: 16px;
}
#nbc-root .nbc-modal {
	width: 800px; max-width: 100%; max-height: min(650px, calc(100vh - 32px));
	display: flex; flex-direction: column; background: #fff; color: var(--nbc-text);
	border-radius: 4px; box-shadow: 0 8px 48px rgba(0,0,0,.25); font-size: 15px; line-height: 1.5;
}
#nbc-root .nbc-m-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--nbc-cream); padding: 16px 20px; border-bottom: 1px solid var(--nbc-line); border-radius: 4px 4px 0 0; }
#nbc-root .nbc-m-head img { width: 112px; height: 56px; display: block; }
#nbc-root .nbc-m-scroll { overflow-y: auto; flex: 1 1 auto; }
#nbc-root .nbc-m-intro { background: var(--nbc-cream); padding: 24px 20px 20px; }
#nbc-root .nbc-m-intro h2 { font-size: 48px; line-height: 1.1; font-weight: 700; color: var(--nbc-teal); margin: 0 0 16px; }
#nbc-root .nbc-m-intro h2:focus { outline: none; }
#nbc-root .nbc-m-intro p { color: var(--nbc-teal); font-size: 15px; margin-bottom: 4px; }
#nbc-root .nbc-m-bulk { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; background: #fff; border-bottom: 1px solid var(--nbc-line); }
#nbc-root .nbc-m-bulk .nbc-btn { min-height: 40px; padding: 8px 18px; }
#nbc-root .nbc-m-section { padding: 20px; }
#nbc-root .nbc-m-section h3 { font-size: 22px; font-weight: 700; color: #000; margin: 0 0 10px; line-height: 1.3; }
#nbc-root .nbc-purposes { list-style: none; margin: 8px 0 0; padding: 0; }
#nbc-root .nbc-purpose { border-top: 1px solid var(--nbc-line); padding: 16px 0; margin: 0; list-style: none; }
#nbc-root .nbc-purpose-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
#nbc-root .nbc-purpose h4 { font-size: 16px; font-weight: 700; color: #000; margin: 0; }
#nbc-root .nbc-purpose p { font-size: 14px; color: var(--nbc-muted); margin: 0 0 6px; }
#nbc-root .nbc-always { font-size: 13px; font-weight: 700; color: var(--nbc-teal); }
#nbc-root .nbc-services summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--nbc-teal); padding: 4px 0; }
#nbc-root .nbc-services ul { margin: 6px 0 0; padding-left: 18px; }
#nbc-root .nbc-services li { font-size: 13.5px; color: var(--nbc-muted); margin: 0 0 6px; }
#nbc-root .nbc-m-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--nbc-line); }
#nbc-root .nbc-m-foot .nbc-btn-save { padding: 11px 26px; }
html.nbc-modal-open { overflow: hidden; }

/* ---------- reopen button (bottom left) ---------- */
#nbc-root .nbc-fab {
	position: fixed; left: 16px; bottom: 16px; z-index: 2147483500;
	width: 44px; height: 44px; padding: 0; border-radius: 10px; border: 1px solid var(--nbc-line);
	background: #fff; color: var(--nbc-teal); box-shadow: 0 4px 16px rgba(0,0,0,.15);
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
#nbc-root .nbc-fab svg { width: 22px; height: 22px; }

/* ---------- "allow YouTube?" prompt ---------- */
#nbc-root .nbc-prompt {
	position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2147483602;
	width: 420px; max-width: calc(100vw - 32px); background: #fff; color: var(--nbc-text);
	border-radius: 8px; border-top: 6px solid var(--nbc-gold); box-shadow: 0 8px 48px rgba(0,0,0,.25); padding: 18px 20px 16px;
}
#nbc-root .nbc-prompt h2 { font-size: 17px; font-weight: 700; color: var(--nbc-teal); margin: 0 0 8px; }
#nbc-root .nbc-prompt p { font-size: 14px; line-height: 1.45; }
#nbc-root .nbc-prompt .nbc-actions { margin: 12px 0 0; }

/* ---------- placeholder for blocked embeds ---------- */
.nbc-embed { display: flex; align-items: center; justify-content: center; width: 100%; background: var(--nbc-cream, #efebe7); border: 1px solid #ddd8d2; border-radius: 8px; padding: 20px; text-align: center; font-family: Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.nbc-embed p { color: #1d1d1d; font-size: 15px; line-height: 1.5; margin: 0 0 12px; padding: 0; max-width: 460px; }
.nbc-embed .nbc-btn { display: inline-flex; align-items: center; gap: 6px; font: 700 14px/1.3 Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; padding: 11px 20px; min-height: 44px; border: 0; border-radius: 64px; background: #005465; color: #efebe7; cursor: pointer; }
.nbc-embed .nbc-btn svg { width: 16px; height: 16px; }

/* ---------- small screens ---------- */
@media (max-width: 600px) {
	#nbc-root .nbc-banner { left: 8px; right: 8px; bottom: 8px; width: auto; max-width: none; max-height: calc(100vh - 16px); }
	#nbc-root .nbc-overlay { padding: 8px; align-items: flex-end; }
	#nbc-root .nbc-modal { max-height: calc(100vh - 16px); }
	#nbc-root .nbc-m-intro h2 { font-size: 32px; }
	#nbc-root .nbc-m-head img { width: 84px; height: 42px; }
	#nbc-root .nbc-m-bulk { justify-content: stretch; }
	#nbc-root .nbc-m-bulk .nbc-btn { flex: 1; }
	#nbc-root .nbc-fab { left: 8px; bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
	#nbc-root * { transition: none !important; }
}
@media print { #nbc-root { display: none !important; } }
