.sacbr-contact-hours {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0 18px;
	align-items: baseline;
	margin: 6px 0 0;
	padding: 0;
}

.sacbr-contact-hours dt,
.sacbr-contact-hours dd {
	margin: 0;
	padding: 9px 0;
	border-bottom: 1px solid rgba(27, 58, 107, 0.1);
}

.sacbr-contact-hours dt:last-of-type,
.sacbr-contact-hours dd:last-of-type {
	border-bottom: none;
	padding-bottom: 0;
}

.sacbr-contact-hours-day {
	font-weight: 600;
	color: var(--navy);
	font-size: 0.94rem;
	line-height: 1.4;
}

.sacbr-contact-hours-time {
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	color: var(--navy-deep, #142c52);
	font-size: 0.94rem;
	text-align: right;
	white-space: nowrap;
}

.sacbr-contact-hours-note {
	margin: 10px 0 0;
	font-size: 0.85rem;
	color: #6b7280;
	font-style: italic;
}

/* Very narrow: stack rather than squeeze the times. */
@media (max-width: 380px) {

	.sacbr-contact-hours {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.sacbr-contact-hours dt {
		border-bottom: none;
		padding-bottom: 0;
	}

	.sacbr-contact-hours dd {
		text-align: left;
		padding-top: 2px;
	}
}

/*
 * Theme Name: SACBR
 * Theme URI:  https://sacbr.co.za
 * Description: Standalone theme for the South African Canine Breed Registry —
 *              heraldic, official-registry look (navy, gold, deep red) matching
 *              the SACBR Registrations plugin's own styling, so plugin pages
 *              and theme pages feel like one site. Fully self-contained: not a
 *              child theme, no dependency on any other theme being installed.
 * Author:      DadsFam
 * Version:     3.14.10
 */

/* Footer credit, next to the copyright line (3.14.4). */
.sacbr-footer-credit::before {
	content: "\00B7";
	margin: 0 8px;
	opacity: 0.6;
}

.sacbr-footer-credit a {
	color: var(--sacbr-gold, #d4af37);
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s ease;
}

.sacbr-footer-credit a:hover,
.sacbr-footer-credit a:focus {
	color: #f0d998;
	text-decoration: underline;
}

@media (max-width: 640px) {
	.sacbr-footer-credit {
		display: block;
		margin-top: 6px;
	}

	.sacbr-footer-credit::before {
		content: none;
	}
}

/* ==========================================================================
   DESIGN TOKENS
   Colors matched to the SACBR Registrations plugin's own palette
   (navy / gold / red / cream) so plugin-rendered pages (Membership
   Portal, Breeders Directory, registration forms) and theme pages
   look like one consistent brand, not two different sites bolted
   together.
   ========================================================================== */
:root {
	--navy: #1b3a6b;
	--navy-deep: #142c52;
	--gold: #d4af37;
	--gold-light: #e6c767;
	--red: #a8222e;
	--red-deep: #8a1c27;
	--cream: #faf8f3;
	--ink: #1a1a1a;
	--grey: #5c5c5c;
	--border: #e2dfd6;
	--white: #ffffff;

	--max-width: 1200px;
	--radius: 12px;
	--radius-lg: 16px;
	--shadow: 0 10px 30px rgba(27, 58, 107, 0.08);
	--shadow-lg: 0 20px 50px rgba(27, 58, 107, 0.16);

	--font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-display: "Playfair Display", Georgia, "Times New Roman", serif;
}

/* ==========================================================================
   BASE
   ========================================================================== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Visible keyboard focus everywhere — accessibility floor. */
a:focus-visible,
button:focus-visible {
	outline: 3px solid var(--gold);
	outline-offset: 2px;
	border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

/* ==========================================================================
   BUTTONS — shared across header, hero, banners
   Namespaced as .sacbr-theme-btn* (not .sacbr-btn*) deliberately: the
   SACBR Registrations plugin defines its OWN .sacbr-btn classes for
   its forms/portal/directory, and those pages load BOTH the theme's
   and the plugin's stylesheets together. Identical class names with
   identical CSS specificity meant whichever stylesheet happened to
   load second silently won ties on shared properties — which is how
   the plugin's "Apply Here Now" button ended up with an invisible
   transparent border despite its own CSS explicitly setting navy.
   Separate names make that entire class of bug structurally impossible.
   ========================================================================== */
.sacbr-theme-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 10px;
	font-weight: 700;
	font-size: 0.98rem;
	font-family: var(--font-body);
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	white-space: nowrap;
	/* <button> elements bring their own UA styling — neutralise it so
	   a submit button looks identical to an <a> with the same classes.
	   Without this the contact form's Send Message rendered as a grey
	   full-width browser-default button. */
	-webkit-appearance: none;
	appearance: none;
	width: auto;
	line-height: 1.2;
}
.sacbr-theme-btn:hover { transform: translateY(-2px); }

.sacbr-theme-btn-primary {
	background: linear-gradient(180deg, var(--red), var(--red-deep));
	color: var(--white);
	box-shadow: 0 10px 26px rgba(168, 34, 46, 0.28);
}
.sacbr-theme-btn-primary:hover { box-shadow: 0 14px 32px rgba(168, 34, 46, 0.34); }

.sacbr-theme-btn-gold {
	background: linear-gradient(180deg, var(--gold-light), var(--gold));
	color: var(--navy-deep);
	box-shadow: 0 10px 26px rgba(212, 175, 55, 0.28);
}
.sacbr-theme-btn-gold:hover { box-shadow: 0 14px 32px rgba(212, 175, 55, 0.36); }

.sacbr-theme-btn-navy {
	background: linear-gradient(180deg, var(--navy), var(--navy-deep));
	color: var(--white);
	box-shadow: 0 10px 26px rgba(27, 58, 107, 0.28);
}
.sacbr-theme-btn-navy:hover { box-shadow: 0 14px 32px rgba(27, 58, 107, 0.34); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.sacbr-header {
	background: var(--white);
	position: relative;
	z-index: 100;
	border-bottom: 3px solid var(--gold);
}
.sacbr-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: 18px;
	padding: 16px 20px;
}

.sacbr-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	flex-shrink: 0;
	white-space: nowrap;
}
.sacbr-logo { display: flex; align-items: center; }

/* ==========================================================================
   LOGO STACK — CSS-only self-healing (see sacbr_child_render_logo)
   ==========================================================================
   The inline SVG crest is always rendered and always visible. The <img>
   (custom logo or /assets/logo.png) is layered on top via absolute
   positioning. If the image loads, it fully covers the SVG. If ANYTHING
   goes wrong with the image, the SVG behind it is already showing.
   Purely CSS — no JavaScript, no inline event handlers (which some
   shared hosts strip via Content Security Policy). Height is set per
   location (.sacbr-logo, .sacbr-hero-crest, .sacbr-footer-brand); this
   block just handles the layering mechanics.
   ========================================================================== */
/* When a real image is present the fallback shield hides — it used to
   sit visibly behind transparent PNG logos. visibility (NOT display):
   the fallback's box is what gives the stack its width, since the
   image is absolutely positioned on top; display:none collapsed the
   stack to zero width and the logo vanished entirely (3.6.4 regression).
   The img's onerror removes the class, so a dead image self-heals. */
.sacbr-logo-stack.sacbr-logo-has-img .sacbr-logo-fallback { visibility: hidden; }

.sacbr-logo-stack {
	position: relative;
	display: inline-block;
	line-height: 0;
}
.sacbr-logo-stack .sacbr-logo-fallback {
	display: block;
	height: 100%;
	width: auto;
}
.sacbr-logo-stack .sacbr-logo-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

/* Per-location sizing — each container tells the stack how tall it should be. */
.sacbr-logo .sacbr-logo-stack { height: 54px; }
.sacbr-logo .sacbr-logo-stack .sacbr-logo-fallback { max-height: 54px; }
.sacbr-brand-name {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.7rem;
	color: var(--navy);
	letter-spacing: 0.01em;
	white-space: nowrap;
}

.sacbr-nav { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; }
.sacbr-tabs { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.sacbr-tabs .menu-item { position: relative; }
.sacbr-tabs .menu-item > a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 10px 13px;
	text-decoration: none;
	color: var(--navy);
	font-weight: 600;
	font-size: 0.95rem;
	border-radius: 8px;
	white-space: nowrap;
	transition: color 0.15s ease, background 0.15s ease;
}
.sacbr-tabs .menu-item > a:hover { color: var(--navy-deep); background: rgba(27, 58, 107, 0.06); }
.sacbr-tabs .current-menu-item > a,
.sacbr-tabs .current_page_item > a {
	color: var(--navy-deep);
	background: rgba(212, 175, 55, 0.14);
}

/* Dropdown submenus — only renders visually if the WP menu actually
   has child items; harmless (empty) otherwise. */
.sacbr-tabs .menu-item-has-children > a::after {
	content: "";
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	margin-left: 2px;
	margin-top: -3px;
}
.sacbr-tabs .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	list-style: none;
	margin: 8px 0 0;
	padding: 8px;
	min-width: 220px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
/* Invisible hover-bridge across the 8px visual gap between the nav item
   and its dropdown. Without it the cursor crosses a dead zone, :hover
   drops, and the menu snaps shut mid-reach. The bridge keeps the parent
   :hover alive the whole way down so the submenu stays open. */
.sacbr-tabs .menu-item-has-children > .sub-menu::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -10px;
	height: 12px;
}
.sacbr-tabs .menu-item-has-children:hover > .sub-menu,
.sacbr-tabs .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.sacbr-tabs .sub-menu a {
	display: block;
	padding: 10px 14px;
	border-radius: 6px;
	color: var(--navy);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.92rem;
}
.sacbr-tabs .sub-menu a:hover { background: var(--cream); }

.sacbr-header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.sacbr-cta { display: inline-flex; align-items: center; gap: 8px; }

.sacbr-cta.sacbr-btn-primary,
a.sacbr-cta {
	background: linear-gradient(180deg, var(--red), var(--red-deep));
	color: var(--white);
	padding: 12px 20px;
	border-radius: 10px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 10px 24px rgba(168, 34, 46, 0.26);
	transition: transform 0.15s ease;
}
a.sacbr-cta:hover { transform: translateY(-2px); }

.sacbr-mobile-toggle {
	display: none;
	background: transparent;
	border: 0;
	padding: 8px;
	border-radius: 8px;
	cursor: pointer;
}

.sacbr-nav-mobile {
	display: none;
	position: absolute;
	top: 100%;
	right: 16px;
	left: 16px;
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	padding: 12px;
	z-index: 99;
}
.sacbr-nav-mobile.open { display: block; }
.sacbr-nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.sacbr-nav-mobile a:not(.sacbr-cta) {
	display: block;
	padding: 12px 14px;
	color: var(--navy);
	text-decoration: none;
	font-weight: 600;
	border-radius: 8px;
}
.sacbr-nav-mobile a:not(.sacbr-cta):hover { background: var(--cream); }

/* Mobile sub-menu accordion. Parents with children get a JS-injected
   chevron button (44px tap target for older users); children stay
   hidden until the chevron is tapped, then show indented behind a
   gold rail so hierarchy is obvious. Parent link itself still
   navigates normally — only the chevron toggles. */
.sacbr-nav-mobile li.menu-item-has-children { position: relative; }
.sacbr-nav-mobile li.menu-item-has-children > a:not(.sacbr-cta) { padding-right: 56px; }
.sacbr-submenu-toggle {
	position: absolute;
	top: 4px;
	right: 8px;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
}
.sacbr-submenu-toggle::before {
	content: "";
	width: 10px;
	height: 10px;
	border-right: 3px solid var(--navy);
	border-bottom: 3px solid var(--navy);
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform 0.15s ease;
}
.sacbr-nav-mobile li.submenu-open > .sacbr-submenu-toggle::before {
	transform: rotate(225deg) translate(-2px, -2px);
}
.sacbr-nav-mobile .sub-menu { display: none; }
.sacbr-nav-mobile li.submenu-open > .sub-menu { display: block; }
.sacbr-nav-mobile .sub-menu a:not(.sacbr-cta) {
	padding-left: 30px;
	font-size: 0.94em;
	background: var(--cream);
	border-left: 3px solid var(--gold);
}
.sacbr-nav-mobile .sub-menu a:not(.sacbr-cta):hover { background: #f2eee3; }
.sacbr-nav-mobile-cta { padding: 10px 14px 4px; }
.sacbr-nav-mobile-cta .sacbr-cta { width: 100%; justify-content: center; }

/* ==========================================================================
   HERO
   Background is editable from Customize > SACBR Homepage: a color
   gradient by default (colors adjustable), or an uploaded photo/video.
   Default gradient uses a lighter, richer blue than the site's deep
   navy brand color — the hero is meant to pop, not read as almost-black.
   ========================================================================== */
.sacbr-hero {
	margin: 0;
	padding: 64px 20px 56px;
	background-color: var(--hero-color-2, #163f78);
	background-size: cover;
	background-position: center;
	text-align: center;
	color: var(--white);
	position: relative;
	overflow: hidden;
}

.sacbr-hero-bg-gradient {
	background-image:
		radial-gradient(circle at 18% 20%, rgba(212, 175, 55, 0.14), transparent 45%),
		radial-gradient(circle at 82% 75%, rgba(212, 175, 55, 0.10), transparent 50%),
		linear-gradient(165deg, var(--hero-color-1, #2f5fa8) 0%, var(--hero-color-2, #163f78) 100%);
}
.sacbr-hero-bg-gradient::before {
	/* subtle diagonal sheen for depth — gradient background only */
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(115deg, rgba(255,255,255,0.07) 0%, transparent 30%, transparent 70%, rgba(255,255,255,0.04) 100%);
	pointer-events: none;
	z-index: 0;
}

.sacbr-hero-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

/* Hero photo slideshow — stacked layers, cross-fading. Sits below the
   overlay (z-index 1) and content, above the section background. */
.sacbr-hero-slides { position: absolute; inset: 0; z-index: 0; }
.sacbr-hero-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 1.2s ease-in-out;
	will-change: opacity;
}
.sacbr-hero-slide.is-active { opacity: 1; }

.sacbr-hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.sacbr-hero-inner { max-width: 780px; margin: 0 auto; position: relative; z-index: 2; }

.sacbr-hero-crest { margin-bottom: 20px; }
.sacbr-hero-crest .sacbr-logo-stack { height: 260px; } /* enlarged per client */
.sacbr-hero-crest .sacbr-logo-stack .sacbr-logo-fallback { max-height: 260px; }

.sacbr-hero-eyebrow {
	display: inline-block;
	background: rgba(212, 175, 55, 0.16);
	color: var(--gold);
	padding: 6px 16px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 18px;
}

.sacbr-hero-heading {
	font-family: var(--font-display);
	font-size: clamp(1.9rem, 4.2vw, 2.9rem);
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 14px;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.sacbr-hero-subheading {
	font-size: 1.1rem;
	color: rgba(255, 255, 255, 0.88);
	margin: 0 0 32px;
	font-weight: 500;
	letter-spacing: 0.01em;
}

.sacbr-hero-actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	justify-content: center;
	margin-bottom: 28px;
}

.sacbr-hero-dots { display: flex; gap: 8px; justify-content: center; }
.sacbr-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.35);
	display: inline-block;
}
.sacbr-dot-active { background: var(--gold); width: 22px; border-radius: 999px; }

/* ==========================================================================
   ABOUT US — home page section between the hero and feature cards.
   Cream band, two columns: story text left, three navy stat tiles right.
   Stacks on mobile.
   ========================================================================== */
.sacbr-about {
	background: var(--cream);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	padding: 64px 24px;
}
.sacbr-about-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 48px;
	align-items: center;
}
.sacbr-about-eyebrow {
	display: inline-block;
	color: var(--gold);
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	margin-bottom: 10px;
}
.sacbr-about-heading {
	font-family: var(--font-display);
	color: var(--navy);
	font-size: 2rem;
	line-height: 1.15;
	margin: 0 0 14px;
	position: relative;
	padding-bottom: 14px;
}
.sacbr-about-heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 64px;
	height: 4px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--gold-light), var(--gold));
}
.sacbr-about-body {
	color: var(--ink);
	font-size: 1.02rem;
	line-height: 1.75;
	margin: 0;
}
.sacbr-about-stats {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}
.sacbr-about-stat {
	background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
	border-radius: var(--radius);
	padding: 20px 24px;
	text-align: center;
	box-shadow: var(--shadow);
}
.sacbr-about-stat-value {
	display: block;
	font-family: var(--font-display);
	color: var(--gold);
	font-size: 1.9rem;
	line-height: 1.1;
	margin-bottom: 4px;
}
.sacbr-about-stat-label {
	display: block;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

/* ==========================================================================
   FEATURE CARDS
   ========================================================================== */
.sacbr-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	max-width: var(--max-width);
	margin: 52px auto;
	padding: 0 20px;
}

.sacbr-card { text-align: center; }

.sacbr-card-heading {
	font-family: var(--font-display);
	font-size: 1.5rem;
	color: var(--navy);
	margin: 0 0 10px;
	font-weight: 700;
}

.sacbr-card-description {
	color: var(--grey);
	font-size: 0.95rem;
	line-height: 1.6;
	margin: 0 0 20px;
}

.sacbr-card-photo {
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: 16px;
	box-shadow: var(--shadow);
	aspect-ratio: 4 / 3;
}
.sacbr-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.sacbr-card-photo a { display: block; width: 100%; height: 100%; }
.sacbr-card-photo a img { transition: transform 0.2s ease; }
.sacbr-card-photo a:hover img { transform: scale(1.04); }

.sacbr-card-photo-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(160deg, var(--cream), #f0ecdf);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: var(--gold);
	padding: 16px;
}
.sacbr-card-photo-placeholder span {
	font-size: 0.75rem;
	color: var(--grey);
	text-align: center;
	line-height: 1.4;
}

.sacbr-card-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--navy);
	margin: 0 0 4px;
}

.sacbr-card-text {
	color: var(--grey);
	font-size: 0.9rem;
	margin: 0 0 12px;
	line-height: 1.5;
}

.sacbr-card-more {
	display: inline-block;
	color: var(--navy);
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: none;
	border-bottom: 2px solid var(--gold);
	padding-bottom: 2px;
	transition: color 0.15s ease;
}
.sacbr-card-more:hover { color: var(--red); }

/* ==========================================================================
   BANNERS (Code of Ethics / Breeders Directory)
   ========================================================================== */
.sacbr-banner {
	max-width: var(--max-width);
	margin: 0 auto 28px;
	padding: 32px 40px;
	border-radius: var(--radius-lg);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.sacbr-banner-navy {
	background: linear-gradient(135deg, var(--navy), var(--navy-deep));
	color: var(--white);
	box-shadow: var(--shadow-lg);
}
.sacbr-banner-navy h4 { color: var(--white); }
.sacbr-banner-navy p { color: rgba(255, 255, 255, 0.88); }

.sacbr-banner-gold {
	background: linear-gradient(135deg, var(--cream), #f2ead2);
	border: 1px solid rgba(212, 175, 55, 0.35);
	color: var(--ink);
}
.sacbr-banner-gold h4 { color: var(--navy); }
.sacbr-banner-gold p { color: var(--grey); }

.sacbr-banner-text { max-width: 640px; }
.sacbr-banner-text h4 {
	font-family: var(--font-display);
	font-size: 1.35rem;
	margin: 0 0 8px;
	font-weight: 700;
}
.sacbr-banner-text p { margin: 0; font-size: 0.98rem; line-height: 1.6; }

/* Section spacing wrapper for banners (keeps them off the page edge on small viewports) */
section.sacbr-banner { margin-left: 20px; margin-right: 20px; }
@media (min-width: 1240px) {
	section.sacbr-banner { margin-left: auto; margin-right: auto; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.sacbr-footer {
	background: var(--navy-deep);
	color: rgba(255, 255, 255, 0.85);
	margin-top: 60px;
}
.sacbr-footer-inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 32px;
	padding: 48px 20px 32px;
}

.sacbr-footer-brand { display: flex; align-items: flex-start; gap: 14px; }
.sacbr-footer-brand span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--cream);
	border-radius: 10px;
	padding: 8px 10px;
	flex-shrink: 0;
}
.sacbr-footer-brand .sacbr-logo-stack { height: 38px; }
.sacbr-footer-brand .sacbr-logo-stack .sacbr-logo-fallback { max-height: 38px; }
.sacbr-footer-brand-name {
	font-family: var(--font-display);
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--white);
	margin-bottom: 4px;
}
.sacbr-footer-tagline { margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); line-height: 1.5; }

.sacbr-footer-links h5,
.sacbr-footer-contact h5 {
	color: var(--gold);
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin: 0 0 14px;
	font-weight: 700;
}
.sacbr-footer-links ul { list-style: none; margin: 0; padding: 0; }
.sacbr-footer-links li { margin-bottom: 10px; }
.sacbr-footer-links a,
.sacbr-footer-contact a {
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
	font-size: 0.92rem;
	transition: color 0.15s ease;
}
.sacbr-footer-links a:hover,
.sacbr-footer-contact a:hover { color: var(--gold); }
.sacbr-footer-contact p { margin: 0 0 10px; font-size: 0.92rem; }

/* Sub-items (e.g. "Breeders Code of Ethics" nested under "Breeders
   Directory" in Appearance > Menus) show as an always-visible,
   indented list — no hover/click needed, since a footer should be
   fully scannable at a glance. Deliberately NOT styled as a dropdown
   like the header — see the comment in footer.php for why. */
.sacbr-footer-links .sub-menu {
	list-style: none;
	margin: 6px 0 10px 18px;
	padding: 0;
}
.sacbr-footer-links .sub-menu li { margin-bottom: 8px; }
.sacbr-footer-links .sub-menu a {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.62);
}
.sacbr-footer-links .sub-menu a::before {
	content: "— ";
	color: rgba(255, 255, 255, 0.4);
}
.sacbr-footer-links .sub-menu a:hover { color: var(--gold); }

.sacbr-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 18px 20px;
	text-align: center;
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.55);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
	.sacbr-nav { display: none; }
	.sacbr-mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.sacbr-header-actions .sacbr-cta span { display: none; }
	.sacbr-header-actions .sacbr-cta { padding: 12px; }

	.sacbr-cards { grid-template-columns: repeat(2, 1fr); }
	.sacbr-about-inner { grid-template-columns: 1fr; gap: 32px; }
	.sacbr-about-stats { grid-template-columns: repeat(3, 1fr); }
	.sacbr-footer-inner { grid-template-columns: 1fr 1fr; }
	.sacbr-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
	.sacbr-header-actions .sacbr-cta { display: none; }
	.sacbr-nav-mobile-cta { display: block; }

	.sacbr-hero { padding: 48px 16px 40px; }
	.sacbr-hero-crest .sacbr-logo-stack { height: 190px; }
	.sacbr-hero-crest .sacbr-logo-stack .sacbr-logo-fallback { max-height: 190px; }
	.sacbr-hero-actions { flex-direction: column; align-items: stretch; }
	.sacbr-hero-actions .sacbr-theme-btn { width: 100%; }

	.sacbr-cards { grid-template-columns: 1fr; gap: 32px; }
	.sacbr-about { padding: 44px 16px; }
	.sacbr-about-stats { grid-template-columns: 1fr; }

	.sacbr-banner { flex-direction: column; text-align: center; padding: 28px 24px; }
	.sacbr-banner-text { max-width: 100%; }

	.sacbr-footer-inner { grid-template-columns: 1fr; }
	.sacbr-brand-name { font-size: 1.35rem; }
}

/* ==========================================================================
   STANDARD PAGES (page.php / index.php)
   Slim navy title banner + content area — keeps every non-homepage
   page visually tied to the same header/footer and brand, without
   duplicating headings the plugin shortcodes already render.
   ========================================================================== */
.sacbr-page-header {
	background: linear-gradient(135deg, var(--navy), var(--navy-deep));
	padding: 40px 20px;
	text-align: center;
}
.sacbr-page-title {
	font-family: var(--font-display);
	color: var(--white);
	font-size: clamp(1.5rem, 3vw, 2.15rem);
	font-weight: 700;
	margin: 0;
}
.sacbr-page-content {
	padding: 48px 20px 60px;
}

/* Basic readable typography for plain page content (non-shortcode pages) */
.sacbr-page-content h2 { font-family: var(--font-display); color: var(--navy); font-size: 1.5rem; margin: 1.6em 0 0.5em; }
.sacbr-page-content h3 { font-family: var(--font-display); color: var(--navy); font-size: 1.2rem; margin: 1.4em 0 0.5em; }
.sacbr-page-content p { color: var(--ink); line-height: 1.7; margin: 0 0 1em; }
.sacbr-page-content a:not(.sacbr-btn) { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 2px; }
.sacbr-page-content ul, .sacbr-page-content ol { line-height: 1.7; padding-left: 1.4em; }

/* ==========================================================================
   BLOG POSTS / ARCHIVES (index.php fallback)
   ========================================================================== */
.sacbr-post-meta {
	font-size: 0.82rem;
	color: var(--grey);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 10px;
}

.sacbr-post-card {
	max-width: 760px;
	margin: 0 auto 36px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--border);
}
.sacbr-post-card:last-child { border-bottom: none; }
.sacbr-post-card-title {
	font-family: var(--font-display);
	font-size: 1.4rem;
	margin: 0 0 8px;
}
.sacbr-post-card-title a { color: var(--navy); text-decoration: none; }
.sacbr-post-card-title a:hover { color: var(--red); }
.sacbr-post-card-excerpt { color: var(--grey); line-height: 1.6; }

.sacbr-post-single {
	max-width: 760px;
	margin: 0 auto;
}
.sacbr-post-content { line-height: 1.75; color: var(--ink); }
.sacbr-post-content p { margin: 0 0 1.2em; }
.sacbr-post-content img { border-radius: var(--radius); }

.sacbr-pagination { max-width: 760px; margin: 20px auto 0; text-align: center; }
.sacbr-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	margin: 0 3px;
	border-radius: 8px;
	background: var(--cream);
	color: var(--navy);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
}
.sacbr-pagination .page-numbers.current { background: var(--navy); color: var(--white); }
.sacbr-pagination .page-numbers:hover:not(.current) { background: rgba(212, 175, 55, 0.2); }

@media (max-width: 640px) {
	.sacbr-page-header { padding: 32px 16px; }
	.sacbr-page-content { padding: 36px 16px 44px; }
}

/* ==========================================================================
   404 PAGE
   ========================================================================== */
.sacbr-404-content { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.sacbr-404-message { color: var(--grey); font-size: 1.05rem; line-height: 1.6; margin: 0 0 28px; }

.sacbr-404-search { margin: 0 0 32px; }
.sacbr-404-search .search-form {
	display: flex;
	gap: 8px;
	max-width: 460px;
	margin: 0 auto;
}
.sacbr-404-search .search-field {
	flex: 1;
	padding: 12px 16px;
	border: 1px solid var(--border);
	border-radius: 10px;
	font-size: 0.95rem;
	font-family: var(--font-body);
}
.sacbr-404-search .search-field:focus { outline: none; border-color: var(--gold); }
.sacbr-404-search .search-submit {
	padding: 12px 22px;
	border: none;
	border-radius: 10px;
	background: linear-gradient(180deg, var(--navy), var(--navy-deep));
	color: var(--white);
	font-weight: 700;
	font-size: 0.95rem;
	cursor: pointer;
	transition: transform 0.15s ease;
}
.sacbr-404-search .search-submit:hover { transform: translateY(-2px); }

.sacbr-404-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: center;
}

@media (max-width: 640px) {
	.sacbr-404-search .search-form { flex-direction: column; }
	.sacbr-404-actions { flex-direction: column; align-items: stretch; }
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.sacbr-contact-hero {
	background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%);
	padding: 56px 20px 60px;
	text-align: center;
	color: var(--white);
	position: relative;
	overflow: hidden;
}
.sacbr-contact-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 15% 25%, rgba(212, 175, 55, 0.12), transparent 45%),
		radial-gradient(circle at 85% 80%, rgba(212, 175, 55, 0.09), transparent 50%);
	pointer-events: none;
}
.sacbr-contact-hero-inner { position: relative; max-width: 640px; margin: 0 auto; }
.sacbr-contact-eyebrow {
	display: inline-block;
	background: rgba(212, 175, 55, 0.16);
	color: var(--gold);
	padding: 6px 16px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 16px;
}
.sacbr-contact-heading {
	font-family: var(--font-display);
	font-size: clamp(1.6rem, 3.4vw, 2.3rem);
	font-weight: 700;
	margin: 0 0 12px;
}
.sacbr-contact-subheading {
	color: rgba(255, 255, 255, 0.85);
	font-size: 1rem;
	line-height: 1.6;
	margin: 0;
}

.sacbr-contact-layout {
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: 32px;
	padding-top: 48px;
	padding-bottom: 60px;
	align-items: start;
}

.sacbr-contact-sidebar {
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.sacbr-contact-info {
	background: var(--cream);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 32px 28px;
}
.sacbr-contact-info h2 {
	font-family: var(--font-display);
	color: var(--navy);
	font-size: 1.25rem;
	margin: 0 0 24px;
}

.sacbr-contact-info-row {
	display: flex;
	gap: 14px;
	margin-bottom: 22px;
}
.sacbr-contact-info-icon {
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: rgba(27, 58, 107, 0.08);
	color: var(--navy);
	display: flex;
	align-items: center;
	justify-content: center;
}
.sacbr-contact-info-label {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--grey);
	margin-bottom: 3px;
}
.sacbr-contact-info-row a {
	color: var(--navy);
	font-weight: 600;
	text-decoration: none;
	word-break: break-word;
}
.sacbr-contact-info-row a:hover { color: var(--red); }
.sacbr-contact-info-text {
	margin: 0;
	color: var(--ink);
	font-size: 0.95rem;
	line-height: 1.5;
}

.sacbr-contact-crest {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
	text-align: center;
	opacity: 0.5;
}
.sacbr-contact-crest img { max-height: 60px; width: auto; margin: 0 auto; }

/* Quick Links banner — sits under the Contact Details card in the
   left column. Navy gradient panel, gold heading, big tappable rows
   (client wants large readable targets). */
.sacbr-contact-quicklinks {
	background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
	border-radius: var(--radius-lg);
	padding: 26px 24px 22px;
	color: var(--white);
	box-shadow: var(--shadow);
	position: relative;
	overflow: hidden;
}
.sacbr-contact-quicklinks::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 12% 15%, rgba(212, 175, 55, 0.14), transparent 42%),
		radial-gradient(circle at 90% 90%, rgba(212, 175, 55, 0.10), transparent 48%);
	pointer-events: none;
}
.sacbr-contact-quicklinks-heading {
	position: relative;
	font-family: var(--font-display);
	color: var(--gold);
	font-size: 1.18rem;
	margin: 0 0 4px;
}
.sacbr-contact-quicklinks-intro {
	position: relative;
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.88rem;
	margin: 0 0 16px;
	line-height: 1.5;
}
.sacbr-contact-quicklinks-list {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.sacbr-contact-quicklink {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 13px 16px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.sacbr-contact-quicklink:hover {
	background: rgba(212, 175, 55, 0.16);
	border-color: rgba(212, 175, 55, 0.5);
	transform: translateX(3px);
}
.sacbr-contact-quicklink-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sacbr-contact-quicklink-label {
	color: var(--white);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.25;
}
.sacbr-contact-quicklink-desc {
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.82rem;
	line-height: 1.3;
}
.sacbr-contact-quicklink-arrow {
	flex-shrink: 0;
	color: var(--gold);
	display: flex;
	align-items: center;
}

/* Form card header — anchors the right column so it doesn't jump
   straight into "Your Name". Gold accent rule under the title. */
.sacbr-contact-form-head {
	margin-bottom: 26px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--border);
}
.sacbr-contact-form-title {
	font-family: var(--font-display);
	color: var(--navy);
	font-size: 1.45rem;
	margin: 0 0 6px;
	position: relative;
	padding-left: 16px;
}
.sacbr-contact-form-title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	bottom: 4px;
	width: 5px;
	border-radius: 3px;
	background: linear-gradient(180deg, var(--gold-light), var(--gold));
}
.sacbr-contact-form-subtitle {
	color: var(--grey);
	font-size: 0.95rem;
	line-height: 1.55;
	margin: 0;
}

/* Optional file attachments on the contact form. */
.sacbr-contact-form input[type="file"] {
	display: block;
	width: 100%;
	padding: 10px 12px;
	border: 1px dashed var(--border);
	border-radius: 8px;
	background: var(--cream);
	font-size: 0.9rem;
	box-sizing: border-box;
	cursor: pointer;
}
.sacbr-optional-tag {
	color: var(--grey);
	font-weight: 400;
	font-size: 0.82em;
}
.sacbr-contact-file-hint {
	font-size: 0.8rem;
	color: var(--grey);
	line-height: 1.5;
	margin: 6px 0 0;
}
.sacbr-contact-file-list {
	font-size: 0.82rem;
	color: var(--navy);
	font-weight: 600;
	margin: 6px 0 0;
	word-break: break-word;
}

.sacbr-contact-form-wrap {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 36px 40px;
	box-shadow: var(--shadow-lg);
}

/* Self-contained form styling for this page — matches the plugin's
   own form look (same tokens) without depending on the plugin's CSS
   actually being loaded, since this is a theme page, not a plugin
   shortcode. */
.sacbr-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sacbr-form-field { margin-bottom: 18px; }
.sacbr-form-field label {
	display: block;
	font-weight: 600;
	color: var(--navy);
	font-size: 0.9rem;
	margin-bottom: 6px;
}
.sacbr-required-star { color: var(--red); }
.sacbr-form-field input,
.sacbr-form-field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--border);
	border-radius: 10px;
	font-family: var(--font-body);
	font-size: 0.95rem;
	color: var(--ink);
}
.sacbr-form-field input:focus,
.sacbr-form-field textarea:focus {
	outline: none;
	border-color: var(--gold);
	box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.sacbr-form-field textarea { resize: vertical; }

.sacbr-form-submit { width: 100%; }

.sacbr-form-notice {
	padding: 14px 18px;
	border-radius: var(--radius);
	margin-bottom: 24px;
	font-size: 0.92rem;
	line-height: 1.5;
}
.sacbr-form-notice-success { background: #eef6e9; color: #2f5a1f; border: 1px solid #cfe3bd; }
.sacbr-form-notice-error { background: #fbeceb; color: #8a2a24; border: 1px solid #f0c4c0; }

@media (max-width: 860px) {
	.sacbr-contact-layout { grid-template-columns: 1fr; }
	.sacbr-contact-sidebar { position: static; }
	.sacbr-contact-form-wrap { padding: 28px 24px; }
}

@media (max-width: 560px) {
	.sacbr-form-row { grid-template-columns: 1fr; gap: 0; }
	.sacbr-contact-hero { padding: 44px 16px 48px; }
}

/* ==========================================================================
   Documents & Forms home-page banner (dynamic, plugin-driven)
   ========================================================================== */
.sacbr-docs-banner {
	background: linear-gradient(135deg, #142c52 0%, #1b3a6b 55%, #234a86 100%);
	position: relative;
	overflow: hidden;
	padding: 64px 24px;
}
.sacbr-docs-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 85% 20%, rgba(212, 175, 55, 0.14), transparent 45%),
		radial-gradient(circle at 10% 90%, rgba(212, 175, 55, 0.08), transparent 40%);
	pointer-events: none;
}
.sacbr-docs-banner-inner {
	max-width: 1080px;
	margin: 0 auto;
	position: relative;
}
.sacbr-docs-banner-head { text-align: center; margin-bottom: 34px; }
.sacbr-docs-banner-kicker {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #d4af37;
	border: 1px solid rgba(212, 175, 55, 0.5);
	border-radius: 100px;
	padding: 6px 16px;
	margin-bottom: 14px;
}
.sacbr-docs-banner-head h2 {
	font-family: "Playfair Display", Georgia, serif;
	color: #ffffff;
	font-size: clamp(1.7rem, 4vw, 2.4rem);
	margin: 0 0 10px;
}
.sacbr-docs-banner-head h2::after {
	content: "";
	display: block;
	width: 70px;
	height: 3px;
	background: #d4af37;
	margin: 14px auto 0;
	border-radius: 2px;
}
.sacbr-docs-banner-head p {
	color: rgba(255, 255, 255, 0.82);
	max-width: 560px;
	margin: 14px auto 0;
	font-size: 1rem;
	line-height: 1.6;
}
.sacbr-docs-banner-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 12px;
	max-width: 980px;
	margin: 0 auto;
}
.sacbr-docs-banner-card {
	display: flex;
	align-items: center;
	gap: 12px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-left: 4px solid #d4af37;
	border-radius: 10px;
	padding: 12px 16px;
	text-decoration: none;
	transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.sacbr-docs-banner-card:hover {
	background: rgba(255, 255, 255, 0.12);
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
	text-decoration: none;
}
.sacbr-docs-banner-card-icon { font-size: 1.35rem; flex: 0 0 auto; }
.sacbr-docs-banner-card-text { flex: 1; min-width: 0; }
.sacbr-docs-banner-card-title {
	display: block;
	color: #ffffff;
	font-weight: 700;
	font-size: 0.94rem;
	line-height: 1.3;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.sacbr-docs-banner-card-desc {
	display: block;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.84rem;
	margin-top: 3px;
	line-height: 1.45;
}
.sacbr-docs-banner-card-dl {
	flex: 0 0 auto;
	background: linear-gradient(180deg, #e3c563, #d4af37);
	color: #142c52;
	font-weight: 700;
	font-size: 0.78rem;
	padding: 7px 12px;
	border-radius: 100px;
	white-space: nowrap;
}
.sacbr-docs-banner-more {
	text-align: center;
	margin: 28px 0 0;
}
.sacbr-docs-banner-empty {
	text-align: center;
	color: rgba(255, 255, 255, 0.75);
	background: rgba(255, 255, 255, 0.06);
	border: 1px dashed rgba(255, 255, 255, 0.25);
	border-radius: 12px;
	padding: 26px 20px;
	max-width: 560px;
	margin: 0 auto;
	font-size: 0.98rem;
}
@media (max-width: 560px) {
	.sacbr-docs-banner { padding: 48px 16px; }
	.sacbr-docs-banner-card { flex-wrap: wrap; }
}

.sacbr-docs-banner-card-cat {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #d4af37;
	border: 1px solid rgba(212, 175, 55, 0.45);
	border-radius: 100px;
	padding: 2px 10px;
	margin: 4px 0 2px;
}

/* --- Documents & Forms banner: species groups (3.14.0) ------------------------
   The same three headings as the downloads page, each with its count. The
   tinted rule under a heading is only a cue; the words say which group it is. */
.sacbr-docs-banner-group {
	max-width: 980px;
	margin: 0 auto;
}
.sacbr-docs-banner-group + .sacbr-docs-banner-group {
	margin-top: 36px;
}
.sacbr-docs-banner-group-heading {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
	padding: 0 2px 10px;
	border-bottom: 2px solid rgba(255, 255, 255, 0.22);
	color: #ffffff;
	text-align: left;
	line-height: 1.25;
}
.sacbr-docs-banner-group-icon {
	font-size: 1.6rem;
	line-height: 1;
}
.sacbr-docs-banner-group-label {
	font-family: var(--font-display);
	font-size: clamp(1.25rem, 2.4vw, 1.5rem);
	font-weight: 700;
}
.sacbr-docs-banner-group-count {
	margin-left: auto;
	min-width: 2.4em;
	padding: 3px 12px;
	border: 1px solid rgba(212, 175, 55, 0.6);
	border-radius: 100px;
	color: #e3c563;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 700;
	text-align: center;
}
.sacbr-docs-banner-group-canine .sacbr-docs-banner-group-heading {
	border-bottom-color: rgba(185, 205, 234, 0.55);
}
.sacbr-docs-banner-group-feline .sacbr-docs-banner-group-heading {
	border-bottom-color: rgba(215, 189, 232, 0.55);
}
.sacbr-docs-banner-group-general .sacbr-docs-banner-group-heading {
	border-bottom-color: rgba(227, 199, 102, 0.6);
}
.sacbr-docs-banner-group-more {
	margin: 10px 0 0;
	text-align: right;
}
.sacbr-docs-banner-group-more a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 4px;
	color: #e3c563;
	font-size: 1rem;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.sacbr-docs-banner-group-more a:hover,
.sacbr-docs-banner-group-more a:focus-visible {
	color: #ffffff;
}
.sacbr-docs-banner-group-more a:focus-visible {
	outline: 3px solid #e3c563;
	outline-offset: 2px;
	border-radius: 4px;
}

/* Wider cards inside the groups: two to a row on a computer, one on a
   phone, and up to four lines of title, so look-alike forms (the two
   Single Canine Registration forms) can be told apart at a glance. */
.sacbr-docs-banner-group .sacbr-docs-banner-grid {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
}
.sacbr-docs-banner-group .sacbr-docs-banner-card-title {
	-webkit-line-clamp: 4;
	line-clamp: 4;
}

/* "Canines & Felines" is words, not a number, so a notch smaller than the
   year stats beside it to stay on one line. */
.sacbr-about-stat-value-words {
	font-size: clamp(1.3rem, 2.4vw, 1.6rem);
}

/* Hero ghost button — white outline on the navy hero, distinct from
   the red and gold actions beside it. */
.sacbr-theme-btn-ghost {
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	border: 2px solid rgba(255, 255, 255, 0.75);
}
.sacbr-theme-btn-ghost:hover {
	background: #ffffff;
	color: #142c52;
	border-color: #ffffff;
}

/* ==========================================================================
   ABOUT THE REGISTRY (front page) — office hours card, mission, values,
   disclaimer. Light section so it alternates with the navy docs banner
   above it. Hours are Customizer-driven.
   ========================================================================== */
.sacbr-registry-info {
	background: var(--white);
	padding: 72px 20px 64px;
}
.sacbr-registry-info-inner {
	max-width: var(--max-width);
	margin: 0 auto;
}
.sacbr-registry-info-grid {
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: 40px;
	align-items: start;
	margin-bottom: 44px;
}

/* Office hours card — navy panel, gold heading, matching site language. */
.sacbr-office-card {
	background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
	border-radius: var(--radius);
	padding: 28px 26px;
	color: var(--white);
	box-shadow: var(--shadow);
	position: sticky;
	top: 24px;
}
.sacbr-office-card h3 {
	font-family: var(--font-display);
	color: var(--gold);
	font-size: 1.3rem;
	margin: 0 0 10px;
}
.sacbr-office-hours {
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.6;
	margin: 0 0 18px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.sacbr-office-row {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 12px;
}
.sacbr-office-label {
	color: rgba(212, 175, 55, 0.9);
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.09em;
}
.sacbr-office-value {
	font-size: 0.98rem;
	line-height: 1.5;
}
.sacbr-office-value em { color: rgba(255, 255, 255, 0.7); font-style: normal; font-size: 0.86rem; }
.sacbr-office-value a { color: var(--gold-light); text-decoration: none; }
.sacbr-office-value a:hover { text-decoration: underline; }
.sacbr-office-note {
	margin: 14px 0 0;
	padding: 10px 14px;
	background: rgba(212, 175, 55, 0.12);
	border: 1px solid rgba(212, 175, 55, 0.4);
	border-radius: 8px;
	font-size: 0.85rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.9);
}

/* Mission / objective / values */
.sacbr-mission h2 {
	font-family: var(--font-display);
	color: var(--navy);
	font-size: 1.7rem;
	margin: 0 0 6px;
	position: relative;
	padding-bottom: 12px;
}
.sacbr-mission h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 56px;
	height: 3px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--gold-light), var(--gold));
}
.sacbr-mission h3 {
	font-family: var(--font-display);
	color: var(--navy);
	font-size: 1.15rem;
	margin: 26px 0 6px;
}
.sacbr-mission p {
	color: var(--ink);
	font-size: 0.98rem;
	line-height: 1.7;
	margin: 10px 0 0;
}
.sacbr-values-list {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 28px;
}
.sacbr-values-list li {
	position: relative;
	padding-left: 24px;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--ink);
}
.sacbr-values-list li::before {
	content: "🐾";
	position: absolute;
	left: 0;
	top: 1px;
	font-size: 0.82rem;
}

/* Disclaimer — quiet, bordered, smaller. The red emphasis is the
   client's own and stays. */
.sacbr-disclaimer {
	background: var(--cream);
	border: 1px solid var(--border);
	border-left: 4px solid var(--gold);
	border-radius: var(--radius);
	padding: 26px 30px;
}
.sacbr-disclaimer h3 {
	font-family: var(--font-display);
	color: var(--navy);
	font-size: 1.1rem;
	margin: 0 0 10px;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-color: var(--gold);
	text-decoration-thickness: 2px;
}
.sacbr-disclaimer p {
	color: var(--grey);
	font-size: 0.88rem;
	line-height: 1.7;
	margin: 0 0 12px;
}
.sacbr-disclaimer-em { color: var(--red); }
.sacbr-disclaimer-small {
	margin: 16px 0 0 !important;
	padding-top: 14px;
	border-top: 1px dashed var(--border);
	font-size: 0.8rem !important;
	color: #8a8a8a !important;
}

@media (max-width: 860px) {
	.sacbr-registry-info-grid { grid-template-columns: 1fr; }
	.sacbr-office-card { position: static; }
	.sacbr-values-list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PAGE-TITLE BAND WITH OPTIONAL MEDIA (Breeders Directory banner) —
   image or looping video behind the title, navy overlay for legibility.
   Without media the band renders exactly as before.
   ========================================================================== */
.sacbr-page-header-media {
	position: relative;
	overflow: hidden;
	padding: 88px 20px;
	background-size: cover;
	background-position: center;
}
.sacbr-page-header-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.sacbr-page-header-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20, 44, 82, 0.5) 0%, rgba(20, 44, 82, 0.75) 100%);
	pointer-events: none;
}
.sacbr-page-header-media .wrap {
	position: relative;
}
.sacbr-page-header-media .sacbr-page-title {
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}
@media (max-width: 640px) {
	.sacbr-page-header-media { padding: 56px 16px; }
}

/* ==========================================================================
   PROTECTED CONTACT (v3.7.0) — click-to-reveal buttons for e-mail & phone
   Gold pill with navy text: readable on the navy office card and footer
   AND on the light contact page.
   ========================================================================== */
.sacbr-reveal-btn {
	display: inline-block;
	background: linear-gradient(180deg, var(--gold-light), var(--gold));
	color: var(--navy-deep);
	border: none;
	border-radius: 999px;
	padding: 7px 16px;
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	font-family: inherit;
}

.sacbr-reveal-btn:hover {
	background: linear-gradient(180deg, #efd57e, var(--gold-light));
}

.sacbr-revealed {
	font-weight: 700;
	word-break: break-all;
}

/* On the navy surfaces the revealed link must stay light. */
.sacbr-office-card .sacbr-revealed,
.sacbr-footer-contact .sacbr-revealed {
	color: var(--gold-light);
}

/* ==========================================================================
   HEADER FIT — 3.10.3
   --------------------------------------------------------------------------
   THE ACTUAL CAUSE, finally measured rather than guessed at.

   The header markup is <div class="wrap sacbr-header-inner">, and `.wrap`
   carries `max-width: var(--max-width)` — 1200px. So the header row was
   never limited by the SCREEN, it was limited by a 1200px box sitting in
   the middle of it.

   Once the labels grew ("Kennel / Cattery Affix Application", "Register
   Dog / Cat") the row needed roughly 1215px. The nav has white-space:
   nowrap so it cannot shrink, and the brand and the button are both
   flex-shrink: 0 — so the surplus had to go somewhere, and it went
   OUTSIDE the box, over the logo on the left and under the red button on
   the right. That is why it still looked broken on a 1660px monitor with
   obvious empty space either side: the empty space was outside the box.

   Two earlier attempts treated the symptom. `overflow: hidden` clipped the
   labels and killed the dropdowns. Lowering the breakpoint did nothing,
   because the viewport was never the constraint.

   The fix is to give the header its own, wider box — it is a full-width
   bar and has no reason to be pinned to the 1200px content measure — and
   to hand over to the mobile menu below the width where the row genuinely
   stops fitting.
   ========================================================================== */

/* The header bar gets its own measure. Everything else on the site keeps
   the 1200px content width. */
.sacbr-header .wrap.sacbr-header-inner,
.sacbr-header-inner {
	max-width: 1560px;
	flex-wrap: nowrap;
}

/* Must stay visible: the dropdown submenus are children of the nav and
   open downward, outside its box. Anything else here hides them — that
   was the 3.10.0 mistake. */
.sacbr-nav {
	overflow: visible;
	min-width: 0;
}

.sacbr-tabs {
	flex-wrap: nowrap;
}

/* Submenus sit above the hero image. */
.sacbr-tabs .sub-menu,
.sacbr-tabs .sacbr-submenu {
	z-index: 200;
}

/* --- Tighten spacing as the row gets closer to its limit ---------------- */
@media (max-width: 1600px) {

	.sacbr-header-inner {
		gap: 10px;
		padding-left: 16px;
		padding-right: 16px;
	}

	.sacbr-tabs .menu-item > a {
		padding: 10px 8px;
		font-size: 0.88rem;
	}

	a.sacbr-cta {
		padding: 11px 15px;
		font-size: 0.9rem;
	}
}

/* --- Below this the full row genuinely cannot fit: use the burger ------- */
@media (max-width: 1380px) {

	.sacbr-nav {
		display: none;
	}

	.sacbr-mobile-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.sacbr-header-inner {
		gap: 14px;
		justify-content: space-between;
	}

	/* Restore comfortable sizing now that there is room again. */
	a.sacbr-cta {
		padding: 12px 18px;
		font-size: 0.95rem;
	}
}

/* --- Small screens ------------------------------------------------------ */
@media (max-width: 560px) {

	a.sacbr-cta {
		padding: 10px 12px;
		font-size: 0.85rem;
	}

	.sacbr-brand span,
	.sacbr-brand .sacbr-brand-name {
		font-size: 1.25rem;
	}
}

/* --------------------------------------------------------------------------
   CONTACT — office hours
   --------------------------------------------------------------------------
   Was a single run-on paragraph that wrapped mid-time in the narrow
   sidebar column. Now one row per period, with the day and the time held
   apart so the eye can scan down the times rather than reading a
   sentence. Falls back to the plain paragraph for a single-part value.
   ------------------------------------------------------------------------ */
.sacbr-contact-hours {
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
}

.sacbr-contact-hours li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 14px;
	padding: 7px 0;
	border-bottom: 1px solid rgba(27, 58, 107, 0.1);
}

.sacbr-contact-hours li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.sacbr-contact-hours-day {
	font-weight: 600;
	color: var(--navy);
	font-size: 0.94rem;
}

.sacbr-contact-hours-time {
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	color: var(--navy-deep, #142c52);
	font-size: 0.94rem;
	white-space: nowrap;
}

/* The contact detail rows themselves had the icon and the text crowding
   each other; give them room and stop the block feeling cramped. */
.sacbr-contact-info-row {
	gap: 14px;
	padding: 14px 0;
}

.sacbr-contact-info-label {
	letter-spacing: 0.06em;
	margin-bottom: 4px;
}

@media (max-width: 420px) {

	.sacbr-contact-hours li {
		justify-content: flex-start;
	}
}

/* ==========================================================================
   CONTACT PAGE: phone, e-mail and calls note like the home page (3.14.3)
   The home page's note is styled for the navy panel (white text); this is
   the light version for the Contact card.
   ========================================================================== */
.sacbr-contact-info .sacbr-contact-info-text .sacbr-reveal-btn {
	margin-top: 2px;
}
.sacbr-contact-info-aside {
	color: #6b7280;
	font-style: normal;
	font-size: 0.86rem;
}
.sacbr-contact-calls-note {
	margin: 14px 0 0;
	padding: 10px 14px;
	background: rgba(212, 175, 55, 0.12);
	border: 1px solid rgba(212, 175, 55, 0.45);
	border-left: 4px solid var(--gold);
	border-radius: 8px;
	color: var(--navy-deep);
	font-size: 0.88rem;
	line-height: 1.55;
}

/* ==========================================================================
   FOOTER PHOTOS (3.14.6) — the Canine & Feline photos fading one into the
   next behind the footer, under a deep navy filter so every heading, link
   and line of small print stays easy to read. Photos, filter strength and
   timing: Appearance → Customize → Footer Photos.
   ========================================================================== */
.sacbr-footer-has-photos {
	position: relative;
	overflow: hidden;
	isolation: isolate; /* the photos stay behind the text, inside the footer */
}

/* A thin gold line along the top, like the one under the header. */
.sacbr-footer-has-photos::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, transparent 0%, var(--gold) 18%, var(--gold-light) 50%, var(--gold) 82%, transparent 100%);
	z-index: 1;
	pointer-events: none;
}

.sacbr-footer-photos {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
	background: var(--navy-deep);
}

.sacbr-footer-photo {
	position: absolute;
	inset: -24px; /* room for the soft edges of the blur */
	background-color: var(--navy-deep);
	background-size: cover;
	background-position: center 40%;
	opacity: 0;
	transform: scale(1.04);
	filter: blur(2px) saturate(0.85);
	transition: opacity 2.2s ease-in-out;
	will-change: opacity, transform;
}

.sacbr-footer-photo.is-active {
	opacity: 1;
	animation: sacbr-footer-drift var(--sacbr-footer-drift, 11s) ease-out both;
}

/* A slow drift, so the footer feels alive without pulling the eye. */
@keyframes sacbr-footer-drift {
	from { transform: scale(1.04) translate3d(0, 0, 0); }
	to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

.sacbr-footer-veil {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 70% 60% at 50% 0%, rgba(212, 175, 55, 0.1), transparent 70%),
		linear-gradient(180deg,
			rgba(14, 31, 58, var(--sacbr-footer-veil-top, 0.92)) 0%,
			rgba(20, 44, 82, var(--sacbr-footer-veil, 0.84)) 32%,
			rgba(20, 44, 82, var(--sacbr-footer-veil, 0.84)) 68%,
			rgba(10, 22, 42, var(--sacbr-footer-veil-bottom, 0.94)) 100%);
}

/* Text over photos: a touch brighter, with a soft shadow, so it reads as
   clearly as on the plain navy footer. */
.sacbr-footer-has-photos .sacbr-footer-inner,
.sacbr-footer-has-photos .sacbr-footer-bottom {
	position: relative;
	z-index: 1;
	text-shadow: 0 1px 3px rgba(5, 12, 26, 0.65);
}

.sacbr-footer-has-photos .sacbr-footer-brand span {
	text-shadow: none;
	box-shadow: 0 6px 18px rgba(5, 12, 26, 0.35);
}

.sacbr-footer-has-photos .sacbr-footer-links h5,
.sacbr-footer-has-photos .sacbr-footer-contact h5 { color: var(--gold-light); }
.sacbr-footer-has-photos .sacbr-footer-tagline { color: rgba(255, 255, 255, 0.9); }
.sacbr-footer-has-photos .sacbr-footer-links a,
.sacbr-footer-has-photos .sacbr-footer-contact a { color: rgba(255, 255, 255, 0.96); }
.sacbr-footer-has-photos .sacbr-footer-links .sub-menu a { color: rgba(255, 255, 255, 0.92); }
.sacbr-footer-has-photos .sacbr-footer-links .sub-menu a::before { color: rgba(255, 255, 255, 0.6); }
.sacbr-footer-has-photos .sacbr-footer-links a:hover,
.sacbr-footer-has-photos .sacbr-footer-contact a:hover,
.sacbr-footer-has-photos .sacbr-footer-links .sub-menu a:hover { color: var(--gold-light); }

.sacbr-footer-has-photos .sacbr-footer-bottom {
	color: rgba(255, 255, 255, 0.78);
	border-top-color: rgba(255, 255, 255, 0.14);
	background: rgba(5, 12, 26, 0.35);
}

@media (prefers-reduced-motion: reduce) {
	.sacbr-footer-photo,
	.sacbr-footer-photo.is-active {
		transition: none;
		animation: none;
		transform: scale(1.04);
	}
}

/* ==========================================================================
   ADVERTS AT THE BOTTOM OF THE HOMEPAGE (3.14.10)
   IsItPaid and DadsFam & SA Domainz: two small cards side by side, the last
   thing above the footer, after all of SACBR's own sections. On a phone
   they stack. A card that is switched off leaves the other the full width.
   Calm and still: soft gradients, no moving light, no pulsing glow.
   ========================================================================== */
.sacbr-adverts {
	max-width: var(--max-width);
	margin: 0 20px 48px; /* The section above already ends with 64px of space. */
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
	gap: 20px;
}
@media (min-width: 1240px) {
	.sacbr-adverts {
		margin-left: auto;
		margin-right: auto;
	}
}

.sacbr-advert {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
	padding: 22px 24px;
	border-radius: var(--radius-lg);
	color: #ffffff;
}
.sacbr-advert::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

/* IsItPaid in its own navy and green. */
.sacbr-advert-isitpaid {
	background: linear-gradient(135deg, #07112a 0%, #122552 100%);
	border: 1px solid rgba(52, 211, 153, 0.24);
	box-shadow: 0 12px 30px rgba(7, 17, 42, 0.2);
}
.sacbr-advert-isitpaid::before {
	background: radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.22), transparent 45%);
}

/* DadsFam & SA Domainz in warm dark, orange and blue. */
.sacbr-advert-webteam {
	background: linear-gradient(135deg, #1b140f 0%, #2b2019 60%, #35200f 100%);
	border: 1px solid rgba(242, 96, 12, 0.28);
	box-shadow: 0 12px 30px rgba(27, 20, 15, 0.2);
}
.sacbr-advert-webteam::before {
	background:
		radial-gradient(circle at 100% 0%, rgba(242, 96, 12, 0.2), transparent 45%),
		radial-gradient(circle at 0% 100%, rgba(59, 130, 246, 0.12), transparent 40%);
}

/* The names, as live text, with an optional small label beside them. */
.sacbr-advert .sacbr-advert-brand {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	min-height: 24px; /* The same with or without a label, so the headings line up. */
	margin: 0 0 10px;
}
.sacbr-isitpaid-wordmark {
	font-family: var(--font-body);
	font-size: 1.15rem;
	line-height: 1;
	letter-spacing: -0.01em;
	white-space: nowrap;
}
.sacbr-isitpaid-wordmark-isit { color: #ffffff; font-weight: 400; }
.sacbr-isitpaid-wordmark-paid { color: #34d399; font-weight: 800; }
.sacbr-webteam-wordmark {
	font-family: var(--font-body);
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.01em;
	white-space: nowrap;
}
.sacbr-webteam-wordmark-dadsfam { color: #7cb7ff; }
.sacbr-webteam-wordmark-amp { color: rgba(255, 255, 255, 0.55); font-weight: 600; }
.sacbr-webteam-wordmark-sad { color: #ff8a3d; }

.sacbr-advert-pill {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
}
.sacbr-advert-isitpaid .sacbr-advert-pill {
	background: rgba(16, 185, 129, 0.14);
	border: 1px solid rgba(52, 211, 153, 0.4);
	color: #a7f3d0;
}
.sacbr-advert-webteam .sacbr-advert-pill {
	background: rgba(242, 96, 12, 0.12);
	border: 1px solid rgba(255, 138, 61, 0.4);
	color: #ffe1cc;
}

.sacbr-advert .sacbr-advert-heading {
	font-family: var(--font-display);
	font-size: 1.12rem;
	font-weight: 700;
	line-height: 1.3;
	color: #ffffff;
	margin: 0 0 6px;
}
.sacbr-advert .sacbr-advert-text {
	margin: 0;
	font-size: 0.93rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.88);
}
.sacbr-advert .sacbr-advert-small {
	margin: 6px 0 0;
	font-size: 0.85rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.78);
}

/* The small link sits under the words. */
.sacbr-advert .sacbr-advert-more {
	margin: 6px 0 0;
}

/* The buttons sit at the foot of each card, level with each other. */
.sacbr-advert-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin-top: auto;
	padding-top: 14px;
}
.sacbr-theme-btn.sacbr-advert-btn {
	min-height: 46px;
	padding: 11px 20px;
	font-size: 0.95rem;
	transition: transform 0.15s ease, background 0.15s ease;
}
.sacbr-advert-isitpaid .sacbr-theme-btn.sacbr-advert-btn {
	background: #10b981;
	color: #03251a;
	border-color: rgba(167, 243, 208, 0.45);
	box-shadow: 0 8px 20px rgba(16, 185, 129, 0.28);
}
.sacbr-advert-isitpaid .sacbr-theme-btn.sacbr-advert-btn:hover,
.sacbr-advert-isitpaid .sacbr-theme-btn.sacbr-advert-btn:focus-visible {
	background: #34d399;
	color: #03251a;
}
.sacbr-advert-webteam .sacbr-theme-btn.sacbr-advert-btn {
	background: linear-gradient(135deg, #ff8a3d 0%, #f2600c 100%);
	color: #1b140f;
	border-color: rgba(255, 200, 160, 0.5);
	box-shadow: 0 8px 20px rgba(242, 96, 12, 0.28);
}
.sacbr-advert-webteam .sacbr-theme-btn.sacbr-advert-btn:hover,
.sacbr-advert-webteam .sacbr-theme-btn.sacbr-advert-btn:focus-visible {
	background: linear-gradient(135deg, #ffa060 0%, #ff7424 100%);
	color: #1b140f;
}
.sacbr-advert .sacbr-advert-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-height: 32px;
	padding: 2px 4px;
	color: #a9cfff;
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: rgba(169, 207, 255, 0.5);
	text-underline-offset: 3px;
}
.sacbr-advert .sacbr-advert-link:hover,
.sacbr-advert .sacbr-advert-link:focus-visible {
	color: #ffffff;
	text-decoration-color: #ffffff;
}
.sacbr-theme-btn.sacbr-advert-btn:focus-visible,
.sacbr-advert .sacbr-advert-link:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 3px;
}
.sacbr-advert-btn-icon {
	flex: 0 0 auto;
	display: block;
}

/* Read out by screen readers, hidden on screen. */
.sacbr-advert-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.sacbr-theme-btn.sacbr-advert-btn {
		transition: none;
	}
}

/* Phones: one card above the other, the button the full width. */
@media (max-width: 640px) {
	.sacbr-adverts {
		gap: 16px;
		margin-bottom: 36px;
	}
	.sacbr-advert {
		padding: 18px;
	}
	.sacbr-advert-actions {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}
	.sacbr-theme-btn.sacbr-advert-btn {
		width: 100%;
		padding: 12px 18px;
		white-space: normal;
		text-align: center;
	}
	.sacbr-advert-pill {
		font-size: 0.75rem;
		letter-spacing: 0;
		text-transform: none;
	}
}

/* Small phones: the button's arrow makes way so its words stay on one line. */
@media (max-width: 400px) {
	.sacbr-advert-btn .sacbr-advert-btn-icon {
		display: none;
	}
}
