/*
Theme Name: OCA MX
Theme URI: https://www.ocamx.club/
Author: Ogden Cycle Association
Description: Block theme for ocamx.club. Content is built from ACF blocks; WooCommerce and Memberships pages use block templates.
Requires at least: 6.6
Requires PHP: 8.2
Version: 0.1.0
License: GPL-2.0-or-later
Text Domain: oca
*/

/* Global rules theme.json can't express. Keep this file small. */

:root {
	--oca-radius: 0px;
	--oca-focus: 3px solid var(--wp--preset--color--yellow);
}

*, *::before, *::after { box-sizing: border-box; }

/* Header, main and footer sit flush (no default block gap between them). */
.wp-site-blocks > * + * { margin-block-start: 0; }

/* OCA section blocks carry their own padding, so they stack without the layout's block gap
   (avoids white slivers between full-width sections). */
.wp-block-post-content > :is(.oca-hero, .oca-status, .oca-banner, .oca-weekend, .oca-offers, .oca-ride, .oca-tiles, .oca-visit, .oca-steps, .oca-faq, .oca-split, .oca-schedule, .oca-embeds, .oca-products, .oca-logos) {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* In-page links (#compare, #this-weekend) land below the sticky header, not under it. */
[id] { scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 96px); }
html { scroll-behavior: smooth; }

/* Visible keyboard focus everywhere. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: var(--oca-focus);
	outline-offset: 2px;
}

/* Skip link target spacing. */
main:focus { outline: none; }

/* Comfortable tap targets on phones (44px minimum). */
.wp-block-navigation a,
.wp-block-button__link,
.wp-element-button {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

/* Media never overflows its column. */
img, video, iframe { max-width: 100%; height: auto; }

/* Respect reduced-motion settings. */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Header (matches the live Divi header) ---------- */
.oca-site-header { display: contents; }
.oca-announce p {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 800;
	line-height: 1.5;
	text-transform: uppercase;
}
.oca-announce a { color: inherit; text-decoration: underline; }
.oca-announce { position: relative; padding: 0.35rem 44px !important; background: var(--wp--preset--color--yellow); color: var(--wp--preset--color--black); text-align: center; }
.oca-announce.is-closed { background: var(--wp--preset--color--accent); color: #fff; }
.oca-announce.is-closed .oca-announce__close:focus-visible { outline-color: #fff; }
.oca-announce + .oca-announce { border-top: 1px solid rgba(0, 0, 0, 0.18); }
.oca-announce p { max-width: 1240px; margin-inline: auto !important; }
.oca-announce strong { font-weight: 900; text-transform: uppercase; letter-spacing: 0.02em; margin-right: 0.25em; }
.oca-announce__until { font-weight: 600; opacity: 0.85; }
.oca-announce[hidden] { display: none !important; }
.oca-announce__close {
	position: absolute;
	top: 50%;
	right: 4px;
	width: 36px;
	height: 36px;
	margin-top: -18px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}
.oca-announce__close span,
.oca-announce__close span::after {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 2px;
	margin: -1px 0 0 -7px;
	background: currentColor;
	transform: rotate(45deg);
}
.oca-announce__close span::after { content: ""; margin: 0; top: 0; left: 0; transform: rotate(90deg); }
.oca-announce__close:hover { opacity: 0.65; }
.oca-announce__close:focus-visible { outline: 2px solid #000; outline-offset: -4px; }

.oca-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
	padding: 0.75rem var(--wp--preset--spacing--20);
}
.oca-header__bar { max-width: 1400px; margin-inline: auto; gap: 1.5rem; align-items: center; }
.oca-header__logo { flex: none; margin: 0; }
.oca-header__logo img { display: block; width: 120px; height: auto; }

/* Main menu (desktop): plain text items with a chevron; dark dropdown panels with a one-line hint. */
.oca-header__menus { flex: 1 1 auto; justify-content: flex-end; gap: 0.25rem !important; font-family: var(--wp--preset--font-family--nav); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.oca-header__menus > .wp-block-navigation__container { gap: 0.25rem; }
.oca-header__menus .wp-block-navigation-item.oca-dropdown > .wp-block-navigation-item__content,
.oca-header__menus .oca-toplink > .wp-block-navigation-item__content { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.7rem; text-decoration: none; }
.oca-header__menus .wp-block-navigation__submenu-icon { width: 0.7em; height: 0.7em; margin: 0 0.7rem 0 -0.4rem; padding: 0; }
.oca-header__menus .oca-dropdown:hover > .wp-block-navigation-item__content,
.oca-header__menus .oca-toplink > .wp-block-navigation-item__content:hover,
.oca-header__menus .oca-dropdown:focus-within > .wp-block-navigation-item__content { color: var(--wp--preset--color--yellow); }
.oca-header__menus .oca-dropdown { position: relative; }
.oca-header__menus .oca-dropdown > .wp-block-navigation-item__content::after { content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 6px; height: 2px; background: var(--wp--preset--color--yellow); transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease; }
.oca-header__menus .oca-dropdown:is(:hover, :focus-within) > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.oca-header__menus .wp-block-navigation__submenu-container {
	top: calc(100% + 0.5rem) !important;
	left: 0 !important;
	width: 20rem !important;
	min-width: 0 !important;
	padding: 0.5rem !important;
	border: 0 !important;
	border-top: 3px solid var(--wp--preset--color--yellow) !important;
	background: #141414 !important;
	color: #fff !important;
	box-shadow: 0 18px 40px rgb(0 0 0 / 0.35);
	font-size: 0.95rem;
	letter-spacing: 0;
	text-transform: none;
}
.oca-header__menus .wp-block-navigation__submenu-container::before { content: ""; position: absolute; left: 0; right: 0; top: -0.85rem; height: 0.85rem; } /* hover bridge */
.oca-header__menus .wp-block-navigation__submenu-container .wp-block-navigation-item__content { display: grid !important; gap: 0.1rem; padding: 0.6rem 0.75rem !important; font-weight: 700; text-decoration: none; }
.oca-header__menus .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.oca-header__menus .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible { background: #262626; color: var(--wp--preset--color--yellow) !important; }
.oca-header__menus .wp-block-navigation-item__description { font-family: var(--wp--preset--font-family--body); font-size: 0.8rem; font-weight: 400; color: #b5b5b5; }
.oca-header__menus .is-external > a .wp-block-navigation-item__label::after,
.oca-drawer__links .is-external::after { content: "↗"; margin-left: 0.35em; font-weight: 400; opacity: 0.7; }

/* Account, cart, menu: one row of 44px targets. */
.oca-header__tools { display: flex; align-items: center; gap: 0.25rem; flex: none; }
.oca-icon-link { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; color: #fff; text-decoration: none; }
.oca-icon-link:hover, .oca-icon-link:focus-visible { color: var(--wp--preset--color--yellow); }
.oca-cart-link__count {
	position: absolute;
	top: 3px;
	right: 1px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--wp--preset--color--yellow);
	color: #000;
	font-size: 11px;
	font-weight: 800;
	line-height: 18px;
	text-align: center;
}
.oca-cart-link__count[hidden] { display: none; }

/* Hamburger button */
.oca-menu-toggle {
	display: grid;
	gap: 6px;
	width: 44px;
	height: 44px;
	margin-left: 0.25rem;
	place-content: center;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}
.oca-menu-toggle span { display: block; width: 26px; height: 2px; background: #fff; }
.oca-menu-toggle:hover span { background: var(--wp--preset--color--yellow); }
:is(.oca-icon-link, .oca-menu-toggle, .oca-header__menus a):focus-visible { outline: 2px solid var(--wp--preset--color--yellow); outline-offset: 2px; }

/* Menu drawer: white panel from the left with photo tiles (live site's mobile menu) */
.oca-drawer-part { display: contents; }
.oca-drawer {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgb(29 29 29 / 0);
	transition: background-color 0.4s ease;
}
.oca-drawer::backdrop { background: transparent; }
.oca-drawer.is-open { background: rgb(29 29 29 / 0.92); }
.oca-drawer__panel {
	position: relative;
	width: min(calc(100% - 64px), 26rem);
	height: 100%;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 1.25rem 1.5rem 2.5rem;
	background: #fff;
	box-shadow: 8px 0 30px rgb(0 0 0 / 0.25);
	transform: translateX(-100%);
	/* Quick start, gentle settle (ease-out quint), like the live menu. */
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.oca-drawer.is-open .oca-drawer__panel { transform: none; }
.oca-drawer.is-open .oca-drawer__close { opacity: 1; }
.oca-drawer:not(.is-open) .oca-drawer__panel { transition-timing-function: cubic-bezier(0.55, 0, 0.75, 0.2); transition-duration: 0.35s; }
.oca-no-scroll { overflow: hidden; }
.oca-drawer__close {
	position: fixed;
	opacity: 0;
	transition: opacity 0.3s ease 0.15s;
	top: 1rem;
	right: 1rem;
	width: 44px;
	height: 44px;
	border: 0;
	background: none;
	cursor: pointer;
}
.oca-drawer__close::before, .oca-drawer__close::after {
	content: "";
	position: absolute;
	top: 21px;
	left: 8px;
	width: 28px;
	height: 2px;
	background: #fff;
	transform: rotate(45deg);
}
.oca-drawer__close::after { transform: rotate(-45deg); }
.oca-drawer__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.oca-drawer__logo img { display: block; width: 110px; height: auto; }
.oca-drawer__account { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0 0.9rem; border: 1px solid var(--wp--preset--color--black); color: var(--wp--preset--color--black); font-family: var(--wp--preset--font-family--nav); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; text-decoration: none; }
.oca-drawer__account:hover, .oca-drawer__account:focus-visible { background: var(--wp--preset--color--black); color: #fff; }

.oca-drawer__tiles { margin: 0 0 1.5rem; padding: 0; list-style: none; border-top: 1px solid var(--wp--preset--color--line); }
.oca-drawer__tiles li { border-bottom: 1px solid var(--wp--preset--color--line); }
.oca-drawer__tile {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 1.25rem;
	align-items: center;
	padding: 0.6rem 0;
	color: var(--wp--preset--color--black);
	text-decoration: none;
}
.oca-drawer__tile img { width: 150px; height: 85px; object-fit: cover; }
.oca-drawer__tile span {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.6rem;
	line-height: 0.9;
	text-transform: uppercase;
}
.oca-drawer__tile:hover span, .oca-drawer__tile:focus-visible span { color: var(--wp--preset--color--accent); }

/* Secondary links: labelled groups instead of a nested sub-menu. */
.oca-drawer__group + .oca-drawer__group { margin-top: 1.5rem; }
.oca-drawer__heading { margin: 0 0 0.4rem; font-family: var(--wp--preset--font-family--body) !important; font-size: 0.72rem !important; font-weight: 700; letter-spacing: 0.12em; line-height: 1.4; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.oca-drawer__links { display: grid; margin: 0; padding: 0; list-style: none; }
.oca-drawer__links a { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--black); font-weight: 600; text-decoration: none; }
.oca-drawer__links a:hover, .oca-drawer__links a:focus-visible { color: var(--wp--preset--color--accent); }

@media (prefers-reduced-motion: reduce) { .oca-drawer, .oca-drawer__panel, .oca-drawer__close, .oca-header__menus * { transition: none !important; } }

/* Tablet and phone: logo, account, cart, menu. Everything else lives in the drawer. */
@media (max-width: 1099px) {
	.oca-header__menus { display: none !important; }
	.oca-header__bar { gap: 0.75rem; }
	.oca-drawer__tile { grid-template-columns: 42% minmax(0, 1fr); }
	.oca-drawer__tile img { width: 100%; height: auto; aspect-ratio: 150 / 85; }
}
@media (max-width: 599px) {
	.oca-header { padding-block: 0.5rem; }
	.oca-header__logo img { width: 88px !important; }
	.oca-header__tools { gap: 0; }
}

/* The admin bar is not fixed on small screens, so the header sticks to the very top there. */
@media (max-width: 600px) {
	.admin-bar .oca-header { top: 0; }
}

/* ---------- Footer ---------- */
.oca-footer { font-size: 0.8125rem; line-height: 1.55; }
.oca-footer p { margin: 0 0 1.75rem; }
.oca-footer a { text-decoration: none; }
.oca-footer a:hover { text-decoration: underline; }
.oca-footer__tag { margin: 0.6rem 0 0.4rem !important; font-family: var(--wp--preset--font-family--display); font-size: 1.1rem; letter-spacing: 1px; }
.oca-footer__brand { text-align: left; }
.oca-footer__brand .wp-block-image { margin: 0; }

/* ---------- Icon items (footer, contact page) ---------- */
.oca-icon { position: relative; padding-left: 2.25rem; }
.oca-icon::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.1em;
	width: 1.15rem;
	height: 1.15rem;
	background: currentColor;
	-webkit-mask: var(--oca-icon) center / contain no-repeat;
	mask: var(--oca-icon) center / contain no-repeat;
}
.oca-icon--pin { --oca-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M12 22s7-6.2 7-12a7 7 0 1 0-14 0c0 5.8 7 12 7 12z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
.oca-icon--mailbox { --oca-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm1 6v6h14v-6h-4.2a3 3 0 0 1-5.6 0zm0-4v2h5.5l.3.7a1.5 1.5 0 0 0 2.4 0l.3-.7H19V7z'/%3E%3C/svg%3E"); }
.oca-icon--mail { --oca-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='1'/%3E%3Cpath d='m3 6 9 7 9-7M3 18l6.5-6M21 18l-6.5-6'/%3E%3C/svg%3E"); }
.oca-icon--phone { --oca-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='6.5' y='2.5' width='11' height='19' rx='1.5'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }

/* Contact page: big Druk lines next to large icons */
.is-style-oca-contact .oca-icon,
.oca-contact .oca-icon {
	padding-left: 3rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.375rem;
	line-height: 1.05;
	text-transform: none;
}
.oca-contact .oca-icon::before { width: 2rem; height: 2rem; top: 0; }
.oca-contact .oca-icon a { color: #e5b52b; }

/* ---------- Contact page ---------- */
.oca-reach__intro { max-width: 40rem; margin: 0 0 var(--wp--preset--spacing--30) !important; font-size: 1.125rem; line-height: 1.55; }
.oca-reach__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.oca-reach__card { display: grid; gap: 0.35rem; align-content: start; padding: 1.4rem 1.4rem 1.5rem; border: 1px solid var(--wp--preset--color--line); border-top: 4px solid var(--wp--preset--color--black); background: var(--wp--preset--color--white); }
.oca-reach__card.is-urgent { border-top-color: var(--wp--preset--color--accent); }
.oca-reach__label { margin: 0; font-family: var(--wp--preset--font-family--display); font-size: 1.75rem; line-height: 1; text-transform: uppercase; letter-spacing: 0.01em; }
.oca-reach__for { margin: 0 0 0.6rem; color: var(--wp--preset--color--muted); font-size: 0.95rem; line-height: 1.5; }
.oca-reach__how { margin: 0; font-size: 1.15rem; font-weight: 700; overflow-wrap: anywhere; }
.oca-reach__how a { color: var(--wp--preset--color--black); text-decoration: underline; text-decoration-color: var(--wp--preset--color--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.oca-reach__how a:hover { color: var(--wp--preset--color--accent); }
.oca-reach__links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 0 !important; padding: 0; list-style: none; }
.oca-reach__links a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.5rem 1rem; border: 1px solid var(--wp--preset--color--line); color: inherit; font-weight: 700; text-decoration: none; }
.oca-reach__links a:hover, .oca-reach__links a:focus-visible { border-color: var(--wp--preset--color--black); background: var(--wp--preset--color--paper); }
.oca-reach__links a::after { content: "→"; margin-left: 0.5rem; color: var(--wp--preset--color--accent); }
.oca-section.oca-where-band { padding-block: clamp(2.5rem, 5vw, 4rem) !important; margin-block-start: 0 !important; }
.oca-where { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--wp--preset--spacing--30); align-items: start; }
.oca-where__block { display: grid; gap: 0.25rem; }
.oca-where__block p { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.oca-where__kicker { font-size: 0.75rem !important; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.oca-where__name { font-weight: 700; }
.oca-where__note { color: var(--wp--preset--color--muted); font-size: 0.95rem !important; }
.oca-where .wp-element-button { justify-self: start; margin-top: 0.75rem; }

/* ---------- Typography conventions from the live site ---------- */
.oca-accent { color: var(--wp--preset--color--accent); }
.is-style-eyebrow {
	margin-block: 0 0.15rem !important;
	font-size: var(--wp--preset--font-size--x-small) !important;
	font-weight: 500;
	letter-spacing: 4px;
	line-height: 1.6;
	text-transform: uppercase;
}
.wp-block-post-content h2 { margin-block: 0 1rem; }
.wp-block-post-content :is(h2, h3, h4) + p { margin-top: 0; }
.wp-block-post-content h4 { margin-block: 1.5rem 0.4rem; }
.wp-block-post-content ul:not([class*="oca-"]):not(.wp-block-social-links), .wp-block-post-content ol { padding-left: 1.4rem; }
.wp-block-post-content li { margin-bottom: 0.35rem; }

/* Sections on the live site are separated by generous white space. */
.oca-section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.oca-section + .oca-section { padding-top: 0; }

/* Product tables (Barn2 WooCommerce Product Table) keep the live black "Add selections" button */
.wc-product-table-wrapper .multi-cart .button,
.wc-product-table-wrapper .button { background: #000 !important; color: #fff !important; border-radius: 0 !important; font-family: var(--wp--preset--font-family--button); font-size: 0.7rem; text-transform: uppercase; }

/* YouTube facade (inc/media.php) and lazy embeds */
.oca-yt {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--wp--custom--radius);
	background: #000;
}
.oca-yt img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease, opacity 0.2s ease;
}
.oca-yt__play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
}
.oca-yt__play svg { filter: drop-shadow(0 4px 12px rgb(0 0 0 / 0.4)); transition: transform 0.2s ease; }
.oca-yt:hover img, .oca-yt:focus-visible img { transform: scale(1.03); opacity: 0.9; }
.oca-yt:hover .oca-yt__play svg, .oca-yt:focus-visible .oca-yt__play svg { transform: scale(1.1); }
.oca-yt__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.oca-embed-error { padding: 1rem; background: #fde8e8; border-radius: var(--wp--custom--radius); }


/* ---------- Page details from the live site ---------- */
.oca-alert { color: #d0021b; }
.oca-lead { font-family: var(--wp--preset--font-family--nav); font-size: 1.125rem; line-height: 1.35; }
.oca-section-flush { padding-block: 0; }
.oca-video .oca-embeds { padding-block: 0.25rem 0.5rem; }
.oca-gear { margin-top: 1.5rem; gap: 1.5rem; }
.oca-gear .wp-block-image img { width: 100%; aspect-ratio: 1.45; object-fit: cover; }
.oca-gear p { margin: 0.75rem 0 0; font-size: 0.75rem; line-height: 1.45; }
.oca-contact { margin-bottom: 2rem; }
.oca-eventon { padding-top: 2rem; }
.wp-block-post-content .oca-howto { padding-left: 1.4rem; }
.wp-block-post-content .oca-howto ol { list-style: lower-alpha; margin-top: 0.25rem; }

/* ---------- Desktop proportions measured on the live Divi site (1200, 1440 and 1920 wide) ----------
   Divi rows are 80% of the window (text, banners, footer up to 1080px), the carousel row 90%. */
@media (min-width: 981px) {
	body { --wp--style--global--content-size: 80vw; --wp--style--global--wide-size: 80vw; }
	.oca-announce { padding-block: 8px !important; }
	.oca-announce p { line-height: 18px; }
	.oca-header { padding: 16px 36px; }
	.oca-header__bar { max-width: none; }
	.wp-block-post-content > .oca-hero + * { margin-block-start: 0 !important; }
	.is-style-eyebrow { line-height: 22.4px; }
	.wp-block-post-content h2 { margin-bottom: 25px; }
	.oca-section:has(+ .oca-banner) { padding-bottom: 0; }
	.oca-section-flush:has(.oca-tiles) + .oca-section { padding-top: 38px; }

	.oca-footer { font-size: 1rem; line-height: 1.5; padding-block: 59px 44px !important; }
	.oca-footer__cols { gap: 60px !important; }
	.oca-footer__cols > .oca-footer__brand { flex: 0 0 320px !important; }
	.oca-footer__contact { gap: 59px !important; }
	.oca-footer__contact > .wp-block-column { flex: 0 0 194px !important; }
	.oca-footer > .oca-footer__cols { max-width: min(80vw, 1080px) !important; }
	.oca-footer__brand .wp-block-image img { width: 167px !important; }
	.oca-footer__tag { font-size: 1rem; letter-spacing: 2px; }
	.oca-footer .oca-icon { padding-left: 47px; }
	.oca-footer .oca-icon::before { width: 18px; height: 18px; top: 3px; }
}

/* Visually hidden, still read by screen readers. */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- EventON calendar: match the live site ----------
   EventON 5 switched its defaults to Poppins / Noto Sans with rounded corners. The live site (older
   EventON) shows Druk dates and titles, Open Sans details in grey, and square-ish images. */
.ajde_evcal_calendar,
.ajde_evcal_calendar :is(p, span, em, div, a, h3, h4, li, input, select, button):not(.fa):not([class*="fa-"]) {
	font-family: var(--wp--preset--font-family--button);
}
.ajde_evcal_calendar { color: #808080; font-size: 14px; }
/* Date block: Druk, dark grey */
.ajde_evcal_calendar .evo_start,
.ajde_evcal_calendar .evo_start em,
.ajde_evcal_calendar .evo_end em,
.ajde_evcal_calendar .evcal_event_title,
.ajde_evcal_calendar :is(.evo_month_title, #evcal_cur, .evcal_month_line p) {
	font-family: var(--wp--preset--font-family--display) !important;
	color: #282828 !important;
}
.ajde_evcal_calendar .evo_start em.day,
.ajde_evcal_calendar .evo_start em.month { font-weight: 400 !important; font-size: 26px !important; letter-spacing: 0.8px; }
.ajde_evcal_calendar .evo_start em.date { font-weight: 700 !important; font-size: 36px !important; }
.ajde_evcal_calendar .evcal_event_title { font-weight: 400 !important; font-size: 28px !important; letter-spacing: 0.8px; }
/* Subtitle and the small grey details under the title */
.ajde_evcal_calendar .evcal_event_subtitle { font-size: 16px !important; font-weight: 500 !important; color: #6b6b6b !important; }
.ajde_evcal_calendar :is(.evcal_time, .evcal_alldayevent_text, .evoet_eventtypes em, .evcal_event_types em) {
	font-size: 11px !important;
	font-weight: 400 !important;
	font-style: italic !important;
	color: #8c8c8c !important;
}
.ajde_evcal_calendar :is(.evoet_eventtypes, .evcal_event_types) i.evofsn { color: #c8c8c8 !important; font-style: italic; }
.ajde_evcal_calendar :is(.evoet_eventtypes, .evcal_event_types) i.evofsn::after { content: " :"; }
.ajde_evcal_calendar .evcal_time i.fa { color: #8c8c8c !important; font-size: 10px !important; }
/* Corners: small radius on the event photo, square cards */
.ajde_evcal_calendar :is(.ev_ftImg, .evoet_cy.ev_ftImg) { border-radius: 5px !important; }
.ajde_evcal_calendar :is(.eventon_list_event, .event_description, .evocard_box, .evocard_main_image, .evo_metarow_time, .evo_metarow_socialmedia, .evcal_evdata_row) { border-radius: 0 !important; }
.ajde_evcal_calendar .evocard_box { background: transparent !important; }
/* Event card (opened event): Open Sans, grey headings like live */
.ajde_evcal_calendar .evo_h3 { font-size: 14px !important; font-weight: 700 !important; color: #6b6b6b !important; }
.ajde_evcal_calendar .evo_eventcard_time_t { font-size: 12px !important; font-style: italic; color: #656565 !important; }
/* Status at a glance: a colour bar and a label on each event instead of a full border.
   Green = open, amber = partial closure, red = closed. Colours come from each event's EventON colour
   (2027 events use #2E7D32 / #9A5B00 / #C62828; the older black/grey/teal events map to the same states).
   The label repeats the colour in words, so the colour is never the only cue. */
.ajde_evcal_calendar .eventon_events_list { border: 0 !important; overflow: visible !important; background: transparent !important; }
.ajde_evcal_calendar .eventon_list_event { margin: 0 0 10px !important; overflow: visible !important; background: transparent !important; }
.ajde_evcal_calendar .eventon_list_event .desc_trig_outter { margin: 0 !important; }
.ajde_evcal_calendar .eventon_list_event a.evcal_list_a {
	border-width: 0 0 0 6px !important;
	border-style: solid !important;
	border-radius: 6px !important;
	background: #fff !important;
	box-shadow: 0 0 0 1px #e5e5e5, 0 1px 2px rgb(0 0 0 / 0.04) !important;
	padding: 14px 16px 14px 14px !important;
	transition: box-shadow 0.15s ease;
}
.ajde_evcal_calendar .eventon_list_event a.evcal_list_a:hover { box-shadow: 0 0 0 1px #d0d0d0, 0 4px 14px rgb(0 0 0 / 0.08) !important; }
.ajde_evcal_calendar .eventon_list_event a.evcal_list_a:focus-visible { outline: 3px solid #1a73e8 !important; outline-offset: 2px; }
.ajde_evcal_calendar .eventon_list_event .evo_above_title::before {
	display: inline-block;
	margin: 0 0 6px;
	padding: 3px 9px 2px;
	border-radius: 999px;
	font: 700 11px/1.3 var(--wp--preset--font-family--body, sans-serif);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.ajde_evcal_calendar .eventon_list_event:is([data-colr="#2E7D32" i], [data-colr="#000000"]) a.evcal_list_a { border-left-color: #2E7D32 !important; }
.ajde_evcal_calendar .eventon_list_event:is([data-colr="#9A5B00" i], [data-colr="#206177" i]) a.evcal_list_a { border-left-color: #C77700 !important; }
.ajde_evcal_calendar .eventon_list_event:is([data-colr="#C62828" i], [data-colr="#ECECEC" i]) a.evcal_list_a { border-left-color: #C62828 !important; }
.ajde_evcal_calendar .eventon_list_event:is([data-colr="#2E7D32" i], [data-colr="#000000"]) .evo_above_title::before { content: "Open"; background: #E7F4E8; color: #1E6B24; }
.ajde_evcal_calendar .eventon_list_event:is([data-colr="#9A5B00" i], [data-colr="#206177" i]) .evo_above_title::before { content: "Partial closure"; background: #FFF3DF; color: #8A5000; }
.ajde_evcal_calendar .eventon_list_event:is([data-colr="#C62828" i], [data-colr="#ECECEC" i]) .evo_above_title::before { content: "Closed"; background: #FDECEC; color: #B3261E; }
/* Members-only part of a title: its own line, in the Open green (inc/events.php wraps it). */
.ajde_evcal_calendar .evcal_event_title .oca-mo { display: block !important; float: none !important; margin: 0 !important; padding: 0 !important; color: #2E7D32 !important; font: inherit !important; letter-spacing: inherit !important; text-transform: inherit !important; }
/* "Share this month" (assets/js/oca-cal-share.js). */
.oca-cal-share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 2px 0 12px; }
.oca-cal-share__btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border: 1px solid #d6d6d6; border-radius: 999px; background: #fff; color: #282828; font: 600 13px/1.2 var(--wp--preset--font-family--body, sans-serif); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.oca-cal-share__btn:hover { border-color: #282828; background: #f7f7f7; }
.oca-cal-share__btn:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
.oca-cal-share__status { font: 600 13px/1.2 var(--wp--preset--font-family--body, sans-serif); color: #1E6B24; }
/* Key above the calendar (inc/events.php adds it). */
.oca-cal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0 0 14px; padding: 0; list-style: none; font: 500 13px/1.4 var(--wp--preset--font-family--body, sans-serif); color: #4a4a4a; }
.oca-cal-legend li { display: flex; align-items: center; gap: 7px; margin: 0; }
.oca-cal-legend__swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.oca-wx, .oca-cal-legend .oca-wx { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #FFF1CC; color: #6B4400; font: 700 11px/1.4 var(--wp--preset--font-family--body, sans-serif); letter-spacing: 0.04em; white-space: nowrap; }
@media (max-width: 600px) {
	.ajde_evcal_calendar .evcal_event_title { font-size: 21px !important; line-height: 1.15 !important; }
	.ajde_evcal_calendar .evo_start em.day,
	.ajde_evcal_calendar .evo_start em.month { font-size: 18px !important; }
	.ajde_evcal_calendar .evo_start em.date { font-size: 28px !important; }
	.ajde_evcal_calendar .evcal_event_subtitle { font-size: 14px !important; }
	.ajde_evcal_calendar .eventon_list_event a.evcal_list_a { padding: 12px 12px 12px 10px !important; }
}

/* Monday Prime Time (#2E7D5B): green-and-gold bar and badge, plus a two-part day bar in the subtitle
   (closed for grooming until 4 PM, then fresh prep to dusk) so nobody mistakes it for an all-day open. */
.ajde_evcal_calendar .eventon_list_event[data-colr="#2E7D5B" i] a.evcal_list_a {
	border-left-color: transparent !important;
	background: linear-gradient(#D4A82A, #2E7D32) left top / 6px 100% no-repeat border-box, #fff padding-box !important;
}
.ajde_evcal_calendar .eventon_list_event[data-colr="#2E7D5B" i] .evo_above_title::before {
	content: "\2726\00a0 Fresh prep 4 PM";
	background: linear-gradient(90deg, #FFF3C4, #E3F4E4);
	color: #1E5B24;
	box-shadow: inset 0 0 0 1px #E2C46A;
}
.oca-pt-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; background: linear-gradient(90deg, #FFF3C4, #E3F4E4); box-shadow: inset 0 0 0 1px #E2C46A; color: #1E5B24; font: 700 11px/1.4 var(--wp--preset--font-family--body, sans-serif); letter-spacing: 0.04em; white-space: nowrap; }
.oca-pt-line { display: flex; width: 100%; max-width: 460px; margin: 8px 0 2px; border-radius: 6px; overflow: hidden; font: 700 11px/1 var(--wp--preset--font-family--body, sans-serif); letter-spacing: 0.04em; text-transform: uppercase; }
.oca-pt-line > span { padding: 6px 8px; white-space: nowrap; }
.oca-pt-line__closed { flex: 2.2; background: #ECECEC; color: #555; }
.oca-pt-line__open { flex: 1.3; background: #2E7D32; color: #fff; }

/* Bonus groom (#B8860B): gold bar and star badge. */
.ajde_evcal_calendar .eventon_list_event[data-colr="#B8860B" i] a.evcal_list_a { border-left-color: #C99A1E !important; }
.ajde_evcal_calendar .eventon_list_event[data-colr="#B8860B" i] .evo_above_title::before { content: "\2605\00a0 Bonus groom"; background: #FFF1C2; color: #6B4E00; box-shadow: inset 0 0 0 1px #E8C75A; }
.oca-bonus-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #FFF1C2; box-shadow: inset 0 0 0 1px #E8C75A; color: #6B4E00; font: 700 11px/1.4 var(--wp--preset--font-family--body, sans-serif); letter-spacing: 0.04em; white-space: nowrap; }
/* Winter break (Jan 1 – Mar 14): a calm grey-blue note; inside Jan/Feb it replaces EventON's "no events" line. */
.oca-winter { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 16px; padding: 14px 16px; border-radius: 8px; background: #F2F5F8; border: 1px solid #DCE3EA; color: #2B3A48; }
.oca-winter__icon { font-size: 24px; line-height: 1; color: #6E8BA6; }
.oca-winter__head { display: block; margin: 0 0 2px; font-family: var(--wp--preset--font-family--display); font-size: 24px; font-weight: 400; letter-spacing: 0.5px; text-transform: uppercase; color: #2B3A48; }
.oca-winter p { margin: 0 !important; font: 500 15px/1.45 var(--wp--preset--font-family--body, sans-serif); }
.ajde_evcal_calendar.is-winter .eventon_list_event:not([data-event_id]) { display: none !important; }

/* Weather hold (blue Track alert): notice above the calendar, tagged days, key entry.
   Blue, not red: red is a planned closure; a hold is unplanned and has no set reopen day. */
.oca-hold { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 16px; padding: 14px 16px; border-radius: 8px; background: #EAF3FB; border: 1px solid #C7DDF0; color: #0F3A5F; }
.oca-hold__icon { font-size: 26px; line-height: 1; }
.oca-hold__head { display: block; margin: 0 0 2px; font-family: var(--wp--preset--font-family--display); font-size: 24px; font-weight: 400; letter-spacing: 0.5px; text-transform: uppercase; color: #0F3A5F; }
.oca-hold__note { margin: 0 !important; font: 500 15px/1.45 var(--wp--preset--font-family--body, sans-serif); }
.oca-hold__small { margin: 4px 0 0 !important; font: 500 13px/1.4 var(--wp--preset--font-family--body, sans-serif); color: #3D6488; }
.oca-hold-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #E3EFFA; color: #1D4F7A; font: 700 11px/1.4 var(--wp--preset--font-family--body, sans-serif); letter-spacing: 0.04em; white-space: nowrap; }
.ajde_evcal_calendar .eventon_list_event.is-hold a.evcal_list_a { border-left-color: #3B82C4 !important; }
.ajde_evcal_calendar .eventon_list_event.is-hold .evo_above_title::before { content: "\2744\00a0 Weather hold" !important; background: #E3EFFA !important; color: #1D4F7A !important; }
.ajde_evcal_calendar .eventon_list_event.is-hold :is(.evcal_event_title, .evcal_event_subtitle) { opacity: 0.6; }
.oca-announce.is-hold { background: #1D4F7A; color: #fff; }
.oca-announce.is-hold .oca-announce__close:focus-visible { outline-color: #fff; }

/* Jump-months and filter buttons */
.ajde_evcal_calendar .evo_j_dates .legend a { border-radius: 5px !important; }

/* Scheduled top-of-site alerts sit flush on the header (no block gap between them). */
.oca-announce ~ .oca-header, .oca-announce ~ script + .oca-header { margin-block-start: 0 !important; }
.wp-block-template-part > .oca-announce:first-child { margin-block-start: 0 !important; }
.oca-site-header > p { margin: 0 !important; line-height: 0; }
