/* Tampa Bay Banners — front-end styles.
   Colours arrive as CSS variables from the pack; fonts are inherited from the theme. */

#tbb-root { display: none; }
.tbb-lock { overflow: hidden !important; }

/* ---------- overlay + shared ---------- */
.tbb-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(8, 32, 42, .6);
	opacity: 0;
	transition: opacity .25s ease;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.tbb-overlay.is-open { opacity: 1; }

.tbb, .tbb *, .tbb *::before, .tbb *::after { box-sizing: border-box; }
.tbb {
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	color: var(--tbb-text, #363636);
	text-align: left;
	-webkit-font-smoothing: antialiased;
}
.tbb:focus { outline: none; }
.tbb p, .tbb h2 { margin: 0; padding: 0; }

.tbb-modal {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow: auto;
	margin: auto;
	background: #fff;
	border-radius: var(--tbb-radius, 0);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
	transform: translateY(20px);
	transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.tbb-overlay.is-open .tbb-modal { transform: none; }
.tbb--split-dark, .tbb--split-photo { max-width: 820px; display: flex; }

/* close button */
.tbb .tbb-close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 3;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	border: 0;
	font: inherit;
	cursor: pointer;
	background: #fff;
	color: var(--tbb-primary);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
	transition: transform .15s ease;
}
.tbb-close-round .tbb-close { border-radius: 50%; }
.tbb-close-square .tbb-close { border-radius: 0; }
.tbb .tbb-close:hover { transform: scale(1.06); background: #fff; }
.tbb .tbb-close:focus-visible { outline: 3px solid var(--tbb-accent); outline-offset: 2px; }

/* decorative circles */
.tbb-decor { position: absolute; border-radius: 50%; pointer-events: none; }

/* ---------- typography ---------- */
.tbb .tbb-eyebrow {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--tbb-secondary);
	margin: 0 0 12px;
}
.tbb .tbb-eyebrow--dot { display: flex; align-items: center; gap: 10px; }
.tbb .tbb-eyebrow--dot::before {
	content: "";
	flex: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--tbb-accent);
}
.tbb .tbb-headline {
	font-family: inherit;
	font-size: clamp(26px, 4.2vw, 32px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.01em;
	text-transform: none;
	color: var(--tbb-primary);
	margin: 0 0 14px;
}
.tbb .tbb-text {
	font-size: 16px;
	line-height: 1.6;
	color: var(--tbb-text);
	margin: 0 0 24px;
}

/* ---------- buttons + links ---------- */
.tbb .tbb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 12px 28px;
	border: 2px solid transparent;
	border-radius: var(--tbb-btn-radius, 0);
	font: inherit;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.tbb .tbb-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, .14); text-decoration: none; }
.tbb .tbb-btn:focus-visible { outline: 3px solid var(--tbb-accent); outline-offset: 3px; }
.tbb-cta-primary .tbb-btn--cta { background: var(--tbb-primary); color: #fff; }
.tbb-cta-primary .tbb-btn--cta:hover { background: var(--tbb-primary-dark); color: #fff; }
.tbb-cta-accent .tbb-btn--cta { background: var(--tbb-accent); color: var(--tbb-accent-text); }
.tbb-cta-accent .tbb-btn--cta:hover { color: var(--tbb-accent-text); }
.tbb .tbb-btn--spread { width: 100%; justify-content: space-between; }
.tbb .tbb-arrow { flex: none; }

.tbb .tbb-link {
	display: inline-block;
	font-size: 17px;
	font-weight: 600;
	color: var(--tbb-secondary);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.tbb .tbb-link:hover { color: var(--tbb-secondary); text-decoration-thickness: 2px; }

.tbb-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tbb-actions--stack { flex-direction: column; align-items: stretch; }

/* ---------- layout: photo-top ---------- */
.tbb--photo-top .tbb-media {
	position: relative;
	height: 230px;
	overflow: hidden;
	background: var(--tbb-light-bg);
}
.tbb-media img, .tbb-panel--photo img, .tbb-photo-circle img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	object-fit: cover;
	object-position: 50% 50%;
}
.tbb--photo-top .tbb-body { padding: 32px 36px 30px; text-align: center; }
.tbb--photo-top .tbb-btn--cta { width: 100%; }
.tbb--photo-top .tbb-link { margin-top: 18px; }
.tbb--photo-top .tbb-decor--dot { right: 88px; bottom: 26px; width: 48px; height: 48px; background: var(--tbb-accent); }
.tbb--photo-top .tbb-decor--blob { right: -60px; bottom: -120px; width: 220px; height: 220px; background: var(--tbb-light); opacity: .9; }
.tbb-photo-badge {
	position: absolute;
	left: 24px;
	bottom: 24px;
	padding: 10px 20px;
	border-radius: 999px;
	background: var(--tbb-accent);
	color: var(--tbb-accent-text);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

/* ---------- layout: split-dark (dark copy left, circle photo right) ---------- */
.tbb--split-dark .tbb-panel { flex: 1 1 50%; min-width: 0; position: relative; }
.tbb--split-dark .tbb-panel--text {
	padding: 44px;
	background: var(--tbb-primary);
	color: #fff;
	overflow: hidden;
}
.tbb--split-dark .tbb-panel--text::after {
	content: "";
	position: absolute;
	left: -90px;
	bottom: -110px;
	width: 240px;
	height: 240px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .07);
	pointer-events: none;
}
.tbb--split-dark .tbb-eyebrow { color: #fff; }
.tbb--split-dark .tbb-headline { color: #fff; font-size: clamp(28px, 4.5vw, 38px); }
.tbb--split-dark .tbb-text { color: rgba(255, 255, 255, .88); font-size: 17px; }
.tbb--split-dark .tbb-link { color: #fff; display: inline-block; margin-top: 32px; }
.tbb--split-dark .tbb-link:hover { color: #fff; }
.tbb--split-dark .tbb-panel--art {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 460px;
	overflow: hidden;
	background: var(--tbb-light-bg);
}
.tbb--split-dark .tbb-panel--art .tbb-decor--blob { right: -70px; top: 70px; width: 380px; height: 380px; background: var(--tbb-light); }
.tbb--split-dark .tbb-panel--art .tbb-decor--dot { left: 46px; top: 60px; width: 70px; height: 70px; background: var(--tbb-accent); }
.tbb-photo-circle {
	position: relative;
	flex: none;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	overflow: hidden;
	border: 8px solid #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}
.tbb--split-dark .tbb-photo-circle { margin-left: 40px; }

/* ---------- layout: split-photo (photo left, light copy right) ---------- */
.tbb--split-photo .tbb-panel { flex: 1 1 50%; min-width: 0; position: relative; }
.tbb--split-photo .tbb-panel--photo { min-height: 480px; background: var(--tbb-light-bg); }
.tbb--split-photo .tbb-panel--photo img { position: absolute; inset: 0; }
.tbb--split-photo .tbb-panel--text { padding: 44px; background: var(--tbb-light-bg); }
.tbb--split-photo .tbb-headline { font-size: clamp(28px, 4.5vw, 38px); }
.tbb--split-photo .tbb-actions { flex-direction: column; align-items: flex-start; }
.tbb--split-photo .tbb-btn--secondary { background: var(--tbb-primary); color: #fff; border-color: var(--tbb-accent); }
.tbb--split-photo .tbb-btn--secondary:hover { background: var(--tbb-primary-dark); color: #fff; }
.tbb .tbb-note { margin: 22px 0 0; font-size: 15px; color: var(--tbb-text); }
.tbb .tbb-note a { color: var(--tbb-primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- corner cards (shared) ---------- */
.tbb-corner {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99998;
	width: calc(100% - 40px);
	max-width: 400px;
	padding: 32px;
	background: #fff;
	border-radius: var(--tbb-radius, 0);
	box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
	overflow: hidden;
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .3s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.tbb-corner.is-open { opacity: 1; transform: none; }
.tbb-corner > * { position: relative; }
.tbb-corner > .tbb-decor { position: absolute; }

/* corner-light */
.tbb--corner-light { border-top: 4px solid var(--tbb-primary); }
.tbb--corner-light .tbb-decor--blob { right: -70px; top: -90px; width: 230px; height: 230px; background: var(--tbb-light); opacity: .8; }
.tbb--corner-light .tbb-close { background: transparent; box-shadow: none; }
.tbb .tbb-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	margin: 0 0 22px;
	background: var(--tbb-accent);
	color: var(--tbb-accent-text);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	line-height: 1.2;
	border-radius: var(--tbb-btn-radius, 0);
}
.tbb--corner-light .tbb-headline { font-size: clamp(24px, 3.5vw, 28px); }
.tbb--corner-light .tbb-btn--secondary { background: #fff; color: var(--tbb-primary); border-color: var(--tbb-primary); }
.tbb--corner-light .tbb-btn--secondary:hover { background: var(--tbb-light-bg); color: var(--tbb-primary); }

/* corner-dark */
.tbb--corner-dark { background: var(--tbb-primary); color: #fff; text-align: center; padding: 40px 32px 32px; }
.tbb--corner-dark .tbb-decor--blob { right: -100px; top: -120px; width: 300px; height: 300px; background: rgba(255, 255, 255, .08); }
.tbb--corner-dark .tbb-close { background: transparent; color: #fff; box-shadow: none; }
.tbb--corner-dark .tbb-close:hover { background: rgba(255, 255, 255, .1); }
.tbb--corner-dark .tbb-photo-circle { width: 160px; height: 160px; margin: 0 auto 24px; border: 6px solid var(--tbb-accent); box-shadow: none; }
.tbb--corner-dark .tbb-eyebrow { color: var(--tbb-accent); }
.tbb--corner-dark .tbb-headline { color: #fff; font-size: clamp(24px, 3.5vw, 28px); }
.tbb--corner-dark .tbb-text { color: rgba(255, 255, 255, .88); }
.tbb--corner-dark .tbb-btn--cta { width: 100%; }
.tbb--corner-dark .tbb-link { color: #fff; margin-top: 16px; }
.tbb--corner-dark .tbb-link:hover { color: #fff; }

/* ---------- admin test toolbar ---------- */
.tbb-toolbar {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 100001;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 10px;
	border-radius: 8px;
	background: #1d2327;
	color: #fff;
	font: 600 13px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}
.tbb-toolbar__mode {
	padding: 4px 8px;
	border-radius: 4px;
	background: #d63638;
	font-size: 11px;
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
}
.tbb-toolbar--live .tbb-toolbar__mode { background: #00a32a; }
.tbb-toolbar__label { padding: 0 4px; white-space: nowrap; }
.tbb-toolbar button {
	font: inherit;
	background: #2c3338;
	color: #fff;
	border: 1px solid #3c434a;
	border-radius: 4px;
	padding: 5px 9px;
	margin: 0;
	line-height: 1;
	cursor: pointer;
}
.tbb-toolbar button:hover { background: #3c434a; }

/* ---------- mobile ---------- */
@media (max-width: 720px) {
	.tbb-overlay { padding: 12px; }
	.tbb-modal { max-width: 100%; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
	.tbb .tbb-headline { font-size: 24px; }
	.tbb .tbb-text { font-size: 15px; margin-bottom: 20px; }
	.tbb .tbb-btn { width: 100%; font-size: 16px; min-height: 50px; padding: 12px 20px; }
	.tbb .tbb-close { top: 10px; right: 10px; width: 40px; height: 40px; }

	.tbb--photo-top .tbb-media { height: 190px; }
	.tbb--photo-top .tbb-body { padding: 24px 20px; }
	.tbb--photo-top .tbb-decor--dot { right: 70px; bottom: 18px; width: 36px; height: 36px; }
	.tbb--photo-top .tbb-decor--blob { width: 160px; height: 160px; right: -50px; bottom: -90px; }

	.tbb--split-dark, .tbb--split-photo { flex-direction: column; }
	.tbb--split-dark .tbb-panel--art { order: -1; min-height: 0; height: 210px; }
	.tbb--split-dark .tbb-photo-circle { width: 160px; height: 160px; margin: 0; border-width: 6px; }
	.tbb--split-dark .tbb-panel--art .tbb-decor--blob { width: 260px; height: 260px; right: -90px; top: 10px; }
	.tbb--split-dark .tbb-panel--art .tbb-decor--dot { width: 44px; height: 44px; left: 20px; top: 20px; }
	.tbb--split-dark .tbb-panel--text, .tbb--split-photo .tbb-panel--text { padding: 24px 20px 28px; }
	.tbb--split-dark .tbb-link { margin-top: 20px; }
	.tbb--split-photo .tbb-panel--photo { min-height: 0; height: 200px; }
	.tbb--split-photo .tbb-actions { align-items: stretch; }

	.tbb-corner {
		left: 0;
		right: 0;
		bottom: 0;
		width: auto;
		max-width: none;
		max-height: 88vh;
		overflow: auto;
		padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
		border-radius: 16px 16px 0 0;
	}
	.tbb--corner-dark { padding-top: 32px; }
	.tbb--corner-dark .tbb-photo-circle { width: 120px; height: 120px; margin-bottom: 16px; }

	.tbb-toolbar { left: 8px; right: 8px; bottom: auto; top: 56px; flex-wrap: wrap; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.tbb-overlay, .tbb-modal, .tbb-corner, .tbb .tbb-btn, .tbb .tbb-close { transition: none; }
}

@media print {
	.tbb-overlay, .tbb-corner, .tbb-toolbar { display: none !important; }
}
