/* Blue Mountains Rugby – club block styles. Colours come from the theme (theme.json) with fallbacks. */
:root {
	--bmr-navy: var(--wp--preset--color--navy, #14213F);
	--bmr-navy-2: var(--wp--preset--color--navy-light, #22335E);
	--bmr-orange: var(--wp--preset--color--orange, #C6762C);
	--bmr-orange-dark: var(--wp--preset--color--orange-dark, #A55F1E);
	--bmr-horn: var(--wp--preset--color--horn, #A2A6AC);
	--bmr-mist: var(--wp--preset--color--mist, #F3F5F9);
	--bmr-line: var(--wp--preset--color--line, #DDE2EA);
	--bmr-ink: var(--wp--preset--color--ink, #0E1628);
	--bmr-muted: var(--wp--preset--color--muted, #5B6475);
	--bmr-white: #fff;
	--bmr-win: #1E7A46;
	--bmr-loss: #B3261E;
	--bmr-radius: 14px;
	--bmr-display: var(--wp--preset--font-family--display, "Alfa Slab One", Rockwell, Georgia, serif);
	--bmr-shadow: 0 1px 2px rgba(14, 22, 40, .06), 0 8px 24px rgba(14, 22, 40, .06);
}

.bmr-empty { display: flex; flex-direction: column; gap: 4px; padding: 28px; border: 1px dashed var(--bmr-line); border-radius: var(--bmr-radius); background: var(--bmr-mist); color: var(--bmr-muted); text-align: center; }
.bmr-empty strong { color: var(--bmr-ink); }
.bmr-more { margin: 20px 0 0; }
.bmr-link-arrow { font-weight: 700; color: var(--bmr-navy); text-decoration: none; border-bottom: 2px solid var(--bmr-orange); padding-bottom: 2px; }
.bmr-link-arrow::after { content: " →"; transition: margin .15s; }
.bmr-link-arrow:hover::after { margin-left: 4px; }

.bmr-btn { display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.5em; border: 0; border-radius: 999px; background: var(--bmr-orange); color: #fff !important; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.bmr-btn:hover { background: var(--bmr-orange-dark); transform: translateY(-1px); }
.bmr-btn:focus-visible { outline: 3px solid var(--bmr-navy); outline-offset: 3px; }
.bmr-btn--small { padding: .55em 1.1em; font-size: .9rem; }
.bmr-btn--large { padding: 1em 2em; font-size: 1.15rem; }
.bmr-cta { margin: 1.5em 0; }

.bmr-chip { display: inline-block; padding: .2em .7em; border-radius: 999px; background: var(--bmr-navy); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .02em; }
.bmr-chip--coach { background: var(--bmr-orange); }
.bmr-chip--other { background: var(--bmr-horn); color: var(--bmr-ink); }

/* Tabs */
.bmr-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 20px; border-radius: 999px; background: var(--bmr-mist); border: 1px solid var(--bmr-line); }
.bmr-tabs--wrap { flex-wrap: wrap; border-radius: 18px; }
.bmr-tabs button { border: 0; background: transparent; padding: .6em 1.2em; border-radius: 999px; font: inherit; font-weight: 700; font-size: .92rem; color: var(--bmr-muted); cursor: pointer; }
.bmr-tabs button[aria-selected="true"] { background: var(--bmr-navy); color: #fff; }
.bmr-tabs button:focus-visible { outline: 3px solid var(--bmr-orange); outline-offset: 2px; }

/* Fixture cards */
.bmr-fixture-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.bmr-fixture { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; background: #fff; border: 1px solid var(--bmr-line); border-radius: var(--bmr-radius); box-shadow: var(--bmr-shadow); }
.bmr-fixture__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .8rem; color: var(--bmr-muted); }
.bmr-fixture__round { font-weight: 600; }
.bmr-ha { margin-left: auto; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; }
.bmr-ha.is-home { color: var(--bmr-orange-dark); }
.bmr-fixture__teams { display: flex; flex-direction: column; gap: 6px; }
.bmr-fixture__side { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 1.05rem; }
.bmr-team { font-weight: 600; color: var(--bmr-ink); }
.bmr-team--club { font-weight: 800; color: var(--bmr-navy); }
.bmr-score { font-family: var(--bmr-display); font-size: 1.35rem; color: var(--bmr-navy); font-variant-numeric: tabular-nums; }
.bmr-fixture__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding-top: 12px; border-top: 1px solid var(--bmr-line); font-size: .85rem; color: var(--bmr-muted); }
.bmr-fixture__when { font-weight: 700; color: var(--bmr-ink); }
.bmr-fixture__note { flex-basis: 100%; color: var(--bmr-orange-dark); font-weight: 600; }
.bmr-outcome { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; color: #fff; font-weight: 800; font-size: .8rem; }
.bmr-outcome--w { background: var(--bmr-win); }
.bmr-outcome--l { background: var(--bmr-loss); }
.bmr-outcome--d { background: var(--bmr-horn); color: var(--bmr-ink); }

/* Next game (hero card) */
.bmr-next { padding: 22px 24px; border-radius: var(--bmr-radius); background: rgba(255, 255, 255, .97); color: var(--bmr-ink); box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.bmr-next__label { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--bmr-orange-dark); }
.bmr-next__teams { display: flex; flex-direction: column; gap: 2px; margin: 10px 0; font-size: 1.2rem; }
.bmr-next__vs { font-size: .85rem; color: var(--bmr-muted); }
.bmr-next__score { font-family: var(--bmr-display); font-size: 1.8rem; color: var(--bmr-navy); line-height: 1.1; }
.bmr-next__when { font-size: .9rem; color: var(--bmr-muted); }

/* Tables (draw, records) */
.bmr-table-wrap { overflow-x: auto; border: 1px solid var(--bmr-line); border-radius: var(--bmr-radius); background: #fff; }
.bmr-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.bmr-table th { position: sticky; top: 0; background: var(--bmr-navy); color: #fff; text-align: left; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; padding: 12px 14px; }
.bmr-table td { padding: 12px 14px; border-top: 1px solid var(--bmr-line); vertical-align: middle; }
.bmr-table tbody tr:nth-child(even) { background: var(--bmr-mist); }
.bmr-table .c { text-align: center; }
.bmr-rank { font-weight: 800; color: var(--bmr-horn); width: 3em; }
.bmr-honours tbody tr:nth-child(-n+3) .bmr-rank { color: var(--bmr-orange); }
.bmr-num { font-family: var(--bmr-display); color: var(--bmr-navy); }
.bmr-name { font-weight: 700; }

.bmr-season__title { margin: 0 0 12px; }
.bmr-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.bmr-filter button { border: 1px solid var(--bmr-line); background: #fff; padding: .5em 1em; border-radius: 999px; font: inherit; font-size: .88rem; font-weight: 700; color: var(--bmr-navy); cursor: pointer; }
.bmr-filter button.is-active, .bmr-filter button:hover { background: var(--bmr-navy); border-color: var(--bmr-navy); color: #fff; }
.bmr-records-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.bmr-wl { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 10px; background: var(--bmr-mist); border: 1px solid var(--bmr-line); min-width: 130px; }
.bmr-wl__grade { font-size: .75rem; color: var(--bmr-muted); font-weight: 700; }
.bmr-wl__rec { font-family: var(--bmr-display); color: var(--bmr-navy); font-size: 1.1rem; }
.bmr-round { margin-bottom: 28px; }
.bmr-round__title { font-size: 1.15rem; margin: 0 0 10px; }
.bmr-round__title small { font-family: var(--wp--preset--font-family--body, inherit); font-size: .85rem; color: var(--bmr-muted); font-weight: 500; margin-left: 6px; }
.bmr-source { font-size: .85rem; color: var(--bmr-muted); }

.bmr-records__bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: space-between; }
.bmr-search input { padding: .7em 1em; border: 1px solid var(--bmr-line); border-radius: 999px; font: inherit; min-width: 220px; }

@media (max-width: 700px) {
	.bmr-table thead { display: none; }
	.bmr-table, .bmr-table tbody, .bmr-table tr, .bmr-table td { display: block; width: 100%; }
	.bmr-table tr { box-sizing: border-box; padding: 10px 14px; border-top: 1px solid var(--bmr-line); }
	.bmr-table tr:first-child { border-top: 0; }
	.bmr-table td { box-sizing: border-box; }
	.bmr-table td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 0; text-align: right; }
	.bmr-table td::before { content: attr(data-label); font-weight: 700; color: var(--bmr-muted); text-align: left; }
	.bmr-table .c { text-align: right; }
	.bmr-rank { width: auto; }
}

/* News */
.bmr-news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.bmr-news-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--bmr-line); border-radius: var(--bmr-radius); box-shadow: var(--bmr-shadow); transition: transform .2s, box-shadow .2s; }
.bmr-news-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(14, 22, 40, .12); }
.bmr-news-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bmr-navy); }
.bmr-news-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bmr-news-card__ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--bmr-navy), var(--bmr-navy-2)); }
.bmr-news-card__body { padding: 18px 20px 22px; }
.bmr-news-card time { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bmr-orange-dark); }
.bmr-news-card h3 { margin: 6px 0 8px; font-size: 1.2rem; line-height: 1.25; }
.bmr-news-card h3 a { color: var(--bmr-ink); text-decoration: none; }
.bmr-news-card h3 a:hover { color: var(--bmr-navy); text-decoration: underline; }
.bmr-news-card p { margin: 0; color: var(--bmr-muted); font-size: .95rem; }
@media (min-width: 900px) {
	.bmr-news-grid:has(> :nth-child(3)) { grid-template-columns: 2fr 1fr 1fr; }
	.bmr-news-card.is-lead h3 { font-size: 1.55rem; }
}
@media (max-width: 899px) { .bmr-news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .bmr-news-grid { grid-template-columns: 1fr; } }

/* Videos */
.bmr-video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.bmr-video { margin: 0; }
.bmr-video__play, .bmr-video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--bmr-radius); overflow: hidden; background: #000; cursor: pointer; }
.bmr-video__play img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; transition: transform .3s, opacity .3s; }
.bmr-video__play:hover img { transform: scale(1.04); opacity: 1; }
.bmr-video__icon { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: var(--bmr-orange); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.bmr-video__icon::after { content: ""; position: absolute; left: 26px; top: 20px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent #fff; }
.bmr-video figcaption { margin-top: 10px; font-weight: 700; color: inherit; }
.bmr-video figcaption small { display: block; font-weight: 500; opacity: .7; }

/* Sponsor ribbon – scrolls by itself; swipe, drag or use the arrows */
.bmr-sponsor-band { padding: 18px clamp(1rem, 4vw, 2rem) 22px; border-bottom: 1px solid var(--bmr-line); background: #fff; }
.bmr-ribbon__label { margin: 0 0 12px; text-align: center; font-weight: 800; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bmr-orange); }
.bmr-ribbon-wrap { position: relative; max-width: 1240px; margin: 0 auto; padding: 0 46px; }
.bmr-ribbon__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--bmr-line); background: #fff; color: var(--bmr-navy); font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; box-shadow: 0 2px 8px rgba(14, 22, 40, .08); transition: background .15s, color .15s, border-color .15s; }
.bmr-ribbon__arrow:hover { background: var(--bmr-navy); border-color: var(--bmr-navy); color: #fff; }
.bmr-ribbon__arrow:focus-visible { outline: 3px solid var(--bmr-orange); outline-offset: 2px; }
.bmr-ribbon__arrow--prev { left: 0; }
.bmr-ribbon__arrow--next { right: 0; }
@media (max-width: 600px) { .bmr-ribbon-wrap { padding: 0 38px; } .bmr-ribbon__arrow { width: 30px; height: 30px; font-size: 1.2rem; } }
.bmr-ribbon { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.bmr-ribbon::-webkit-scrollbar { display: none; }
.bmr-ribbon.is-dragging { cursor: grabbing; }
.bmr-ribbon.is-dragging a { pointer-events: none; }
.bmr-ribbon:focus-visible { outline: 3px solid var(--bmr-orange); outline-offset: 4px; }
.bmr-ribbon__track { display: flex; align-items: center; gap: 14px; width: max-content; margin: 0; padding: 4px 0; list-style: none; }
.bmr-sponsor a, .bmr-sponsor > span { display: flex; align-items: center; justify-content: center; width: 168px; height: 84px; padding: 10px 16px; box-sizing: border-box; background: #fff; border: 1px solid var(--bmr-line); border-radius: 12px; transition: border-color .2s, box-shadow .2s; -webkit-user-drag: none; user-select: none; }
.bmr-sponsor a:hover { border-color: var(--bmr-orange); box-shadow: var(--bmr-shadow); }
.bmr-sponsor img { max-height: 60px; max-width: 132px; width: auto; height: auto; object-fit: contain; pointer-events: none; }
.bmr-sponsor__name { font-family: var(--bmr-display); font-size: .95rem; color: var(--bmr-navy); text-align: center; }
@media (max-width: 600px) { .bmr-sponsor a, .bmr-sponsor > span { width: 136px; height: 72px; } .bmr-sponsor img { max-height: 50px; max-width: 106px; } }

/* Directory */
.bmr-directory { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bmr-dir-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--bmr-radius); background: #fff; border: 1px solid var(--bmr-line); color: var(--bmr-muted); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.bmr-dir-card:hover { border-color: var(--bmr-orange); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(14, 22, 40, .1); }
.bmr-dir-card strong { font-family: var(--bmr-display); font-weight: 400; font-size: 1.25rem; color: var(--bmr-navy); }
.bmr-dir-card::after { content: "→"; position: absolute; right: 22px; top: 24px; color: var(--bmr-orange); font-weight: 700; font-size: 1.2rem; transition: transform .2s; }
.bmr-dir-card:hover::after { transform: translateX(4px); }
.bmr-dir-card__icon { width: 44px; height: 44px; margin-bottom: 8px; border-radius: 12px; background: var(--bmr-mist); position: relative; }
.bmr-dir-card__icon::before { content: ""; position: absolute; inset: 10px; background: var(--bmr-orange); -webkit-mask: var(--bmr-icon) center / contain no-repeat; mask: var(--bmr-icon) center / contain no-repeat; }
.bmr-dir-card--calendar { --bmr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2zm-2 8h14v10H5z'/%3E%3C/svg%3E"); }
.bmr-dir-card--news { --bmr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h13v4h3v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2 2v12h9V6zm11 4v8h1v-8zM7 7h7v3H7zm0 5h7v1.5H7zm0 3h7v1.5H7z'/%3E%3C/svg%3E"); }
.bmr-dir-card--trophy { --bmr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h12v2h3v3a5 5 0 0 1-4.2 4.9A6 6 0 0 1 13 15.9V18h4v4H7v-4h4v-2.1a6 6 0 0 1-3.8-4A5 5 0 0 1 3 7V4h3zm0 4H5v1a3 3 0 0 0 1.1 2.3A6 6 0 0 1 6 8zm12 0v2a6 6 0 0 1-.1 1.3A3 3 0 0 0 19 7V6z'/%3E%3C/svg%3E"); }
.bmr-dir-card--people { --bmr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm8 0a3 3 0 1 1 0-6 3 3 0 0 1 0 6zM1 20c0-3.3 3.6-6 8-6s8 2.7 8 6v1H1zm17.5 1v-1c0-1.9-.8-3.6-2.2-4.9C20 15.3 23 17.3 23 20v1z'/%3E%3C/svg%3E"); }
.bmr-dir-card--shirt { --bmr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 2h8l6 4-2.5 5L17 10v12H7V10l-2.5 1L2 6zm2 0a2 2 0 0 0 4 0z'/%3E%3C/svg%3E"); }
.bmr-dir-card--pin { --bmr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 1 7 7c0 5.25-7 13-7 13S5 14.25 5 9a7 7 0 0 1 7-7zm0 4.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5z'/%3E%3C/svg%3E"); }
.bmr-dir-card--heart { --bmr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8-5.2-8-11a4.8 4.8 0 0 1 8-3.6A4.8 4.8 0 0 1 20 10c0 5.8-8 11-8 11z'/%3E%3C/svg%3E"); }
@media (max-width: 900px) { .bmr-directory { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bmr-directory { grid-template-columns: 1fr; } }

/* Roles & form */
.bmr-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.bmr-role { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px; background: #fff; border: 1px solid var(--bmr-line); border-radius: var(--bmr-radius); box-shadow: var(--bmr-shadow); }
.bmr-role h3 { margin: 4px 0 0; font-size: 1.3rem; }
.bmr-role__time { margin: 0; font-weight: 600; color: var(--bmr-orange-dark); font-size: .92rem; }
.bmr-role__desc { color: var(--bmr-muted); font-size: .95rem; flex: 1; }
.bmr-role__desc p { margin: 0 0 .6em; }

.bmr-apply { scroll-margin-top: 100px; }
.bmr-form { padding: 28px; background: #fff; border: 1px solid var(--bmr-line); border-radius: var(--bmr-radius); box-shadow: var(--bmr-shadow); }
.bmr-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.bmr-form__grid p { margin: 0 0 14px; }
.bmr-form__grid .full { grid-column: 1 / -1; }
.bmr-form label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; color: var(--bmr-ink); }
.bmr-form input[type=text], .bmr-form input[type=email], .bmr-form input[type=tel], .bmr-form select, .bmr-form textarea { width: 100%; box-sizing: border-box; padding: .75em .9em; border: 1px solid #C5CCD8; border-radius: 10px; font: inherit; background: #fff; color: var(--bmr-ink); }
.bmr-form input:focus, .bmr-form select:focus, .bmr-form textarea:focus { outline: 3px solid rgba(198, 118, 44, .35); border-color: var(--bmr-orange); }
.bmr-form small { display: block; margin-top: 4px; color: var(--bmr-muted); }
.bmr-consent label { font-weight: 500; display: flex; gap: 10px; align-items: flex-start; }
.bmr-consent input { margin-top: 4px; }
.bmr-form .req { color: var(--bmr-loss); }
.bmr-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bmr-alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 16px; }
.bmr-alert--ok { background: #E7F5EC; border: 1px solid #9CD3B1; color: #14532D; }
.bmr-alert--error { background: #FDECEA; border: 1px solid #F3B4AE; color: #7F1D1D; }
@media (max-width: 640px) { .bmr-form__grid { grid-template-columns: 1fr; } .bmr-form { padding: 20px; } }

/* Follow us */
.bmr-socials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.bmr-social { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: var(--bmr-radius); color: #fff !important; text-decoration: none !important; box-shadow: var(--bmr-shadow); transition: transform .2s, box-shadow .2s; }
.bmr-social:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(14, 22, 40, .22); }
.bmr-social:focus-visible { outline: 3px solid var(--bmr-orange); outline-offset: 3px; }
.bmr-social--facebook { background: #1877F2; }
.bmr-social--instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.bmr-social__logo { flex-shrink: 0; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: rgba(255, 255, 255, .18); }
.bmr-social__logo svg { width: 36px; height: 36px; }
.bmr-social__text { display: flex; flex-direction: column; min-width: 0; }
.bmr-social__text strong { font-family: var(--bmr-display); font-weight: 400; font-size: 1.4rem; line-height: 1.1; }
.bmr-social__text span { opacity: .9; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bmr-social__cta { margin-left: auto; padding: .5em 1.1em; border-radius: 999px; background: #fff; color: var(--bmr-ink); font-weight: 800; font-size: .88rem; }
.bmr-social--facebook .bmr-social__cta { color: #1877F2; }
.bmr-social--instagram .bmr-social__cta { color: #d6249f; }
@media (max-width: 420px) { .bmr-social__cta { display: none; } }

/* Contact */
.bmr-contact { display: grid; grid-template-columns: minmax(280px, 5fr) 7fr; gap: 24px; align-items: stretch; }
.bmr-contact__cards { display: flex; flex-direction: column; gap: 14px; }
.bmr-contact-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px 22px 20px 78px; background: #fff; border: 1px solid var(--bmr-line); border-radius: var(--bmr-radius); color: var(--bmr-ink); text-decoration: none; box-shadow: var(--bmr-shadow); transition: border-color .2s, transform .2s; }
.bmr-contact-card:hover { border-color: var(--bmr-orange); transform: translateY(-2px); }
.bmr-contact-card::before { content: ""; position: absolute; left: 20px; top: 20px; width: 42px; height: 42px; border-radius: 12px; background: var(--bmr-navy); }
.bmr-contact-card::after { content: ""; position: absolute; left: 30px; top: 30px; width: 22px; height: 22px; background: #fff; -webkit-mask: var(--bmr-icon) center / contain no-repeat; mask: var(--bmr-icon) center / contain no-repeat; }
.bmr-contact-card--email { --bmr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm1 2.4V17h16V7.4l-8 5.3z M5 7l7 4.6L19 7z'/%3E%3C/svg%3E"); }
.bmr-contact-card--phone { --bmr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15 15 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); }
.bmr-contact-card--address { --bmr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 1 7 7c0 5.25-7 13-7 13S5 14.25 5 9a7 7 0 0 1 7-7zm0 4.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5z'/%3E%3C/svg%3E"); }
.bmr-contact-card__label { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--bmr-orange-dark); }
.bmr-contact-card strong { font-size: 1.15rem; color: var(--bmr-navy); word-break: break-word; }
.bmr-contact-card__more { font-weight: 700; font-size: .9rem; color: var(--bmr-muted); }
.bmr-map { min-height: 360px; border-radius: var(--bmr-radius); overflow: hidden; border: 1px solid var(--bmr-line); background: var(--bmr-mist); }
.bmr-map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }
@media (max-width: 800px) { .bmr-contact { grid-template-columns: 1fr; } }

/* Phones: keep the home page fixtures tabs short. */
@media (max-width: 600px) {
	.bmr-fixtures .bmr-fixture-grid > :nth-child(n+4) { display: none; }
	.bmr-tabs button { padding: .55em 1em; }
}

/* Phones: grade filter becomes a swipeable row. */
@media (max-width: 700px) {
	.bmr-filter { flex-wrap: nowrap; overflow-x: auto; margin-left: -4px; padding: 2px 4px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.bmr-filter::-webkit-scrollbar { display: none; }
	.bmr-filter button { flex: 0 0 auto; }
	.bmr-records-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
	.bmr-wl { min-width: 0; }
	.bmr-tabs--wrap { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
	.bmr-tabs--wrap::-webkit-scrollbar { display: none; }
	.bmr-tabs--wrap button { flex: 0 0 auto; }
	.bmr-search, .bmr-search input { width: 100%; min-width: 0; box-sizing: border-box; }
	.bmr-contact-card { padding-left: 74px; }
}

/* Phones: each game in the full draw becomes a compact three-line scorecard. */
@media (max-width: 700px) {
	.bmr-draw tr { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px 10px; padding: 14px; }
	.bmr-draw td { display: block; padding: 0; text-align: left; font-size: .92rem; }
	.bmr-draw td::before { content: none; }
	.bmr-draw td:nth-child(1) { grid-column: 1 / 3; grid-row: 1; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--bmr-muted); }
	.bmr-draw td:nth-child(7) { grid-column: 3; grid-row: 1; justify-self: end; }
	.bmr-draw td:nth-child(2) { grid-column: 1; grid-row: 2; }
	.bmr-draw td:nth-child(3) { grid-column: 2; grid-row: 2; text-align: center; font-family: var(--bmr-display); color: var(--bmr-navy); font-size: 1.05rem; white-space: nowrap; }
	.bmr-draw td:nth-child(4) { grid-column: 3; grid-row: 2; text-align: right; }
	.bmr-draw td:nth-child(5) { grid-column: 1 / -1; grid-row: 4; font-size: .82rem; color: var(--bmr-muted); }
	.bmr-draw td:nth-child(6) { grid-column: 1 / -1; grid-row: 3; font-size: .82rem; color: var(--bmr-ink); font-weight: 600; }
}

/* Filtering/search must win over the mobile table layouts. */
.bmr-season [hidden], .bmr-records [hidden], .bmr-fixtures [hidden] { display: none !important; }


/* What's on (events) */
.bmr-events { margin-bottom: 16px; padding: 18px 20px; border-radius: var(--bmr-radius); background: rgba(20, 33, 63, .82); color: #fff; border: 1px solid rgba(255, 255, 255, .15); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.bmr-events__label { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--bmr-orange); margin-bottom: 10px; }
.bmr-events ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.bmr-event { display: flex; gap: 14px; align-items: flex-start; }
.bmr-event + .bmr-event { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .15); }
.bmr-event__date { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; width: 54px; padding: 6px 0; border-radius: 10px; background: var(--bmr-orange); color: #fff; line-height: 1.1; }
.bmr-event__date span { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.bmr-event__date strong { font-family: var(--bmr-display); font-weight: 400; font-size: 1.5rem; }
.bmr-event__title { margin: 0 0 2px; font-family: var(--wp--preset--font-family--body, inherit); font-size: 1.02rem; font-weight: 800; line-height: 1.3; color: #fff; }
.bmr-event__title a, .bmr-event__meta a { color: inherit; }
.bmr-event__meta { margin: 0; font-size: .88rem; color: rgba(255, 255, 255, .85); }
.bmr-event__desc { margin: 4px 0 0; font-size: .85rem; color: rgba(255, 255, 255, .75); }
.bmr-event__cal { display: inline-block; margin-top: 6px; font-size: .82rem; font-weight: 700; color: var(--bmr-orange) !important; text-decoration: none; }
.bmr-event__cal::before { content: "+ "; }
.bmr-event__cal:hover { text-decoration: underline; }

.bmr-season__part { margin-top: 36px; }
.bmr-season__heading { font-size: var(--wp--preset--font-size--x-large, 1.8rem); margin: 0 0 16px; padding-bottom: 10px; border-bottom: 3px solid var(--bmr-orange); }
.bmr-season__heading small { font-family: var(--wp--preset--font-family--body, inherit); font-size: .9rem; font-weight: 500; color: var(--bmr-muted); margin-left: 8px; }

/* Phones: leaderboards stay as compact one-line-per-player tables. */
@media (max-width: 700px) {
	.bmr-honours { display: table; font-size: .88rem; }
	.bmr-honours thead { display: table-header-group; }
	.bmr-honours tbody { display: table-row-group; }
	.bmr-honours tr { display: table-row; padding: 0; }
	.bmr-honours th, .bmr-honours td { display: table-cell; padding: 9px 8px; text-align: left; }
	.bmr-honours th { font-size: .68rem; letter-spacing: .04em; }
	.bmr-honours td.c, .bmr-honours th.c { text-align: center; }
	.bmr-honours td::before { content: none; }
	.bmr-honours td { border-top: 1px solid var(--bmr-line); }
}
.bmr-sponsor--dark a, .bmr-sponsor--dark > span { background: var(--bmr-navy); border-color: var(--bmr-navy); }
