/* Rec League Manager – public site + portal components */
:root {
	--rlm-primary: #0E3A66;
	--rlm-accent: #F2711C;
	--rlm-dark: #0B1726;
	--rlm-text: #1b2430;
	--rlm-muted: #5d6b7a;
	--rlm-line: #e3e8ee;
	--rlm-bg: #f4f6f9;
	--rlm-card: #ffffff;
	--rlm-radius: 12px;
	--rlm-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 2px 8px rgba(16, 24, 40, .05);
	--rlm-green: #1f8a4c;
	--rlm-yellow: #b7791f;
	--rlm-red: #c53030;
	--rlm-font-head: var(--theme-font-head, inherit);
}

.rlm, .rlm * { box-sizing: border-box; }
.rlm [hidden], [data-rlm-push][hidden] { display: none !important; }
.rlm { color: var(--rlm-text); line-height: 1.5; }
.rlm a { color: var(--rlm-primary); }
.rlm img { max-width: 100%; height: auto; }
.rlm-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.rlm-section { padding-top: 28px; padding-bottom: 56px; }
.rlm-narrow { max-width: 760px; }
.rlm-muted { color: var(--rlm-muted); }
.rlm-small { font-size: .875rem; }
.rlm-req { color: var(--rlm-red); }
.rlm-empty { color: var(--rlm-muted); padding: 24px 0; }
.rlm-lead { font-size: 1.075rem; color: var(--rlm-muted); margin: 0 0 16px; }
.rlm-h2 { font-family: var(--rlm-font-head); font-size: 1.5rem; margin: 32px 0 12px; }
.rlm-h3 { font-family: var(--rlm-font-head); font-size: 1.2rem; margin: 0 0 12px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rlm-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Icons ---------- */
.rlm-icon { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex: none; }

/* ---------- Buttons ---------- */
.rlm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	padding: 10px 18px; border-radius: 8px; border: 2px solid var(--rlm-primary);
	background: var(--rlm-primary); color: #fff !important; font-weight: 700; font-size: .95rem;
	text-decoration: none !important; cursor: pointer; line-height: 1.2; transition: transform .08s ease, filter .15s ease, background .15s ease;
	font-family: inherit;
}
.rlm-btn:hover { filter: brightness(1.08); }
.rlm-btn:active { transform: translateY(1px); }
.rlm-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--rlm-accent) 55%, transparent); outline-offset: 2px; }
.rlm-btn--accent { background: var(--rlm-accent); border-color: var(--rlm-accent); }
.rlm-btn--ghost { background: transparent; color: var(--rlm-primary) !important; border-color: var(--rlm-line); }
.rlm-btn--ghost:hover { border-color: var(--rlm-primary); filter: none; background: color-mix(in srgb, var(--rlm-primary) 5%, transparent); }
.rlm-btn--light { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); }
.rlm-btn--sm { padding: 6px 12px; font-size: .85rem; border-width: 1.5px; }
.rlm-btn--lg { padding: 14px 26px; font-size: 1.05rem; }
.rlm-btn--block { display: flex; width: 100%; }
.rlm-iconbtn { background: none; border: 0; font-size: 1.4rem; line-height: 1; color: var(--rlm-muted); cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.rlm-iconbtn:hover { background: var(--rlm-bg); color: var(--rlm-text); }

/* ---------- Badges ---------- */
.rlm-badge {
	display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700;
	letter-spacing: .03em; text-transform: uppercase; background: #e9edf2; color: #3c4a5a; white-space: nowrap; vertical-align: middle;
}
.rlm-badge--registration, .rlm-badge--approved, .rlm-badge--final { background: #dcf3e5; color: #17663a; }
.rlm-badge--active { background: color-mix(in srgb, var(--rlm-primary) 14%, #fff); color: var(--rlm-primary); }
.rlm-badge--upcoming, .rlm-badge--pending, .rlm-badge--postponed { background: #fdf0d5; color: #8a5a0b; }
.rlm-badge--waitlist { background: #ece6fb; color: #5b3fa8; }
.rlm-badge--cancelled, .rlm-badge--withdrawn, .rlm-badge--urgent { background: #fde2e2; color: #a12424; }
.rlm-badge--today { background: var(--rlm-accent); color: #fff; }
.rlm-badge--champion { background: #fbe7a1; color: #6b4f00; }
.rlm-badge--playoff { background: var(--rlm-dark); color: #fff; }
.rlm-badge--role { background: color-mix(in srgb, var(--rlm-primary) 12%, #fff); color: var(--rlm-primary); }
.rlm-badge--completed, .rlm-badge--draft, .rlm-badge--archived { background: #eceff3; color: #5d6b7a; }

/* ---------- Notices ---------- */
.rlm-notice { border-radius: 10px; padding: 12px 16px; margin: 0 0 18px; border: 1px solid; }
.rlm-notice p { margin: 0; }
.rlm-notice ul { margin: 6px 0 0 18px; padding: 0; }
.rlm-notice--success { background: #eefaf2; border-color: #b7e4c7; color: #14532d; }
.rlm-notice--error { background: #fdf0f0; border-color: #f2c4c4; color: #7f1d1d; }
.rlm-notice--warning { background: #fff8e8; border-color: #f3d79b; color: #6b4a07; }
.rlm-notice--info { background: #eef5fd; border-color: #c4dbf5; color: #1e3a5f; }

/* ---------- Page head ---------- */
.rlm-pagehead {
	--rlm-sport: var(--rlm-accent);
	background:
		radial-gradient(1200px 300px at 100% 0%, color-mix(in srgb, var(--rlm-sport) 35%, transparent), transparent 60%),
		linear-gradient(135deg, var(--rlm-primary), color-mix(in srgb, var(--rlm-primary) 70%, #000));
	color: #fff; padding: 26px 0 30px; position: relative; overflow: hidden;
}
.rlm-pagehead::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--rlm-sport);
}
.rlm-pagehead a { color: #fff; }
.rlm-crumbs { font-size: .82rem; opacity: .8; display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.rlm-crumbs a { text-decoration: none; }
.rlm-crumbs a:hover { text-decoration: underline; }
.rlm-pagehead__row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.rlm-pagehead__icon {
	width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
	background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); color: #fff;
}
.rlm-pagehead__icon .rlm-icon { width: 36px; height: 36px; }
.rlm-pagehead__text { flex: 1 1 320px; min-width: 0; }
.rlm-pagehead__kicker { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; opacity: .9; display: flex; gap: 10px; align-items: center; }
.rlm-pagehead__title { font-family: var(--rlm-font-head); font-size: clamp(1.8rem, 4.5vw, 2.8rem); line-height: 1.05; margin: 6px 0 4px; color: #fff; font-weight: 800; letter-spacing: -.01em; }
.rlm-pagehead__sub { margin: 4px 0 0; opacity: .85; font-size: 1.05rem; }
.rlm-pagehead__actions { flex: none; }

/* ---------- Tabs ---------- */
.rlm-tabbar { background: #fff; border-bottom: 1px solid var(--rlm-line); position: sticky; top: 0; z-index: 20; }
.rlm-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rlm-tabs::-webkit-scrollbar { display: none; }
.rlm-tabs a {
	padding: 14px 14px 12px; text-decoration: none; color: var(--rlm-muted); font-weight: 700; white-space: nowrap;
	border-bottom: 3px solid transparent; font-size: .95rem;
}
.rlm-tabs a:hover { color: var(--rlm-text); }
.rlm-tabs a.is-active { color: var(--rlm-primary); border-bottom-color: var(--rlm-accent); }
.rlm-tabs a.rlm-tabs__cta { color: var(--rlm-accent); }
.rlm-tabs--pill { gap: 6px; margin-bottom: 18px; }
.rlm-tabs--pill a { border: 1.5px solid var(--rlm-line); border-radius: 999px; padding: 7px 14px; font-size: .88rem; }
.rlm-tabs--pill a.is-active { background: var(--rlm-primary); border-color: var(--rlm-primary); color: #fff; }

/* ---------- Filters / toolbars ---------- */
.rlm-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.rlm-toolbar .rlm-tabs--pill, .rlm-toolbar .rlm-filter-chips { margin-bottom: 0; }
.rlm-toolbar__right { display: flex; gap: 8px; flex-wrap: wrap; }
.rlm-filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.rlm-chip-link {
	display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: #fff;
	border: 1.5px solid var(--rlm-line); text-decoration: none; color: var(--rlm-text) !important; font-weight: 600; font-size: .9rem;
}
.rlm-chip-link:hover { border-color: var(--rlm-primary); }
.rlm-chip-link.is-active { background: var(--rlm-primary); border-color: var(--rlm-primary); color: #fff !important; }
.rlm-inline-form select, .rlm-toolbar select { padding: 8px 12px; border-radius: 8px; border: 1.5px solid var(--rlm-line); background: #fff; font: inherit; }

/* ---------- Layout ---------- */
.rlm-block { margin-bottom: 40px; }
.rlm-block__head { margin-bottom: 14px; }
.rlm-block__head h2 { font-family: var(--rlm-font-head); font-size: 1.6rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.rlm-block__head p { margin: 2px 0 0; }
.rlm-block__head--row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.rlm-block__head--row h2 { margin: 0; }
.rlm-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 900px) { .rlm-layout { grid-template-columns: minmax(0, 1fr) 340px; } }
.rlm-layout__side > * + * { margin-top: 18px; }
.rlm-grid { display: grid; gap: 18px; }
.rlm-grid--cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.rlm-grid--teams { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }

/* ---------- Cards ---------- */
.rlm-card { background: var(--rlm-card); border: 1px solid var(--rlm-line); border-radius: var(--rlm-radius); padding: 20px; box-shadow: var(--rlm-shadow); }
.rlm-empty-card { text-align: center; padding: 40px 24px; }
.rlm-empty-card h2 { font-family: var(--rlm-font-head); margin-top: 0; }
.rlm-league-card { position: relative; display: flex; flex-direction: column; gap: 6px; border-top: 5px solid var(--rlm-sport, var(--rlm-primary)); transition: transform .15s ease, box-shadow .15s ease; }
.rlm-league-card:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(16, 24, 40, .1); }
.rlm-league-card__link { position: absolute; inset: 0; z-index: 1; }
.rlm-league-card__foot a, .rlm-league-card__foot button { position: relative; z-index: 2; }
.rlm-league-card__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rlm-league-card__sport { display: inline-flex; gap: 6px; align-items: center; color: var(--rlm-sport, var(--rlm-primary)); font-weight: 800; text-transform: uppercase; font-size: .78rem; letter-spacing: .06em; }
.rlm-league-card__title { font-family: var(--rlm-font-head); font-size: 1.35rem; line-height: 1.15; margin: 4px 0 0; }
.rlm-league-card__title a { color: inherit; text-decoration: none; }
.rlm-league-card__season { margin: 0; color: var(--rlm-muted); font-weight: 600; font-size: .92rem; }
.rlm-league-card__summary { margin: 4px 0 0; font-size: .95rem; }
.rlm-league-card__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rlm-league-card__count { margin-left: auto; font-size: .82rem; color: var(--rlm-muted); font-weight: 600; }
.rlm-facts { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--rlm-line); display: grid; gap: 4px; font-size: .92rem; }
.rlm-facts li { display: flex; gap: 10px; }
.rlm-facts li span { width: 76px; flex: none; color: var(--rlm-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; padding-top: 2px; }
.rlm-facts .is-soon, .rlm-facts em.is-soon { color: var(--rlm-red); font-weight: 700; }
.rlm-facts em { font-style: normal; color: var(--rlm-accent); font-weight: 700; }
.rlm-team-card h3 { font-family: var(--rlm-font-head); margin: 0 0 6px; font-size: 1.1rem; }
.rlm-roster-public { list-style: none; margin: 0 0 8px; padding: 0; font-size: .9rem; columns: 2; }
.rlm-jersey { display: inline-block; min-width: 1.6em; font-weight: 700; color: var(--rlm-muted); }
.rlm-history-card { border-top: 5px solid var(--rlm-sport, var(--rlm-primary)); display: flex; flex-direction: column; gap: 6px; }
.rlm-champion { display: flex; gap: 10px; align-items: center; background: #fff8e1; border: 1px solid #f6e1a0; border-radius: 10px; padding: 10px 12px; margin-top: 8px; color: #6b4f00; }
.rlm-champion .rlm-icon { width: 28px; height: 28px; }
.rlm-champion span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.rlm-sport-dot { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--rlm-sport) 15%, #fff); color: var(--rlm-sport); }
.rlm-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--rlm-dark); color: #fff; border-radius: var(--rlm-radius); padding: 26px 28px; }
.rlm-cta h2 { font-family: var(--rlm-font-head); margin: 0 0 4px; color: #fff; }
.rlm-cta p { margin: 0; opacity: .85; }
.rlm-reg-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-radius: var(--rlm-radius); background: color-mix(in srgb, var(--rlm-accent) 10%, #fff); border: 1.5px solid color-mix(in srgb, var(--rlm-accent) 40%, #fff); margin-bottom: 22px; }
.rlm-reg-banner span { display: block; color: var(--rlm-muted); font-size: .92rem; }
.rlm-facts-card { border-top: 5px solid var(--rlm-accent); }
.rlm-dl { display: grid; grid-template-columns: 1fr; gap: 2px; margin: 0 0 16px; }
.rlm-dl dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--rlm-muted); font-weight: 700; margin-top: 10px; }
.rlm-dl dd { margin: 0; font-weight: 600; }
.rlm-prose { font-size: 1.02rem; }
.rlm-prose > :first-child { margin-top: 0; }
.rlm-details { border: 1px solid var(--rlm-line); border-radius: var(--rlm-radius); background: #fff; margin: 24px 0; }
.rlm-details > summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.rlm-details > summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--rlm-muted); }
.rlm-details[open] > summary::after { content: "–"; }
.rlm-details > :not(summary) { padding: 0 18px 18px; }
.rlm-more { text-align: center; margin-top: 16px; }

/* ---------- Games ---------- */
.rlm-games__day { margin-bottom: 22px; }
.rlm-games__date { font-family: var(--rlm-font-head); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; color: var(--rlm-muted); margin: 0 0 8px; display: flex; gap: 10px; align-items: center; }
.rlm-games__day.is-today .rlm-games__date { color: var(--rlm-accent); }
.rlm-games__list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--rlm-line); border-radius: var(--rlm-radius); overflow: hidden; box-shadow: var(--rlm-shadow); }
.rlm-game { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 4px 14px; padding: 12px 16px; align-items: center; border-top: 1px solid var(--rlm-line); }
.rlm-game:first-child { border-top: 0; }
.rlm-game.is-mine { background: color-mix(in srgb, var(--rlm-accent) 6%, #fff); }
.rlm-game__time { font-weight: 800; font-size: .92rem; color: var(--rlm-primary); grid-row: span 2; align-self: start; padding-top: 2px; }
.rlm-game__teams { display: grid; gap: 2px; min-width: 0; }
.rlm-game__team { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; }
.rlm-game__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rlm-game__team.is-winner { font-weight: 800; }
.rlm-game__team.is-winner .rlm-game__score { color: var(--rlm-text); }
.rlm-game__team.is-highlight .rlm-game__name { color: var(--rlm-accent); }
.rlm-game__score { font-variant-numeric: tabular-nums; color: var(--rlm-muted); font-weight: 800; min-width: 2ch; text-align: right; }
.rlm-game__detail { font-size: .8rem; color: var(--rlm-muted); }
.rlm-game__meta { grid-column: 2 / 3; display: flex; gap: 4px 12px; flex-wrap: wrap; font-size: .82rem; color: var(--rlm-muted); }
.rlm-game__league { font-weight: 700; text-decoration: none; }
.rlm-game__note { color: var(--rlm-yellow); font-weight: 600; }
.rlm-game__status { grid-column: 3; grid-row: 1 / span 2; text-align: right; display: flex; gap: 6px; flex-direction: column; align-items: flex-end; }
.rlm-game--cancelled .rlm-game__teams, .rlm-game--postponed .rlm-game__teams { opacity: .6; }
.rlm-game--cancelled .rlm-game__name { text-decoration: line-through; }
@media (max-width: 560px) {
	.rlm-game { grid-template-columns: 58px minmax(0, 1fr); }
	.rlm-game__status { grid-column: 2; grid-row: auto; flex-direction: row; align-items: center; justify-content: flex-start; }
}

/* ---------- Tables ---------- */
.rlm-table-wrap { overflow-x: auto; border: 1px solid var(--rlm-line); border-radius: var(--rlm-radius); background: #fff; box-shadow: var(--rlm-shadow); margin-bottom: 12px; }
.rlm-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.rlm-table th, .rlm-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--rlm-line); vertical-align: middle; }
.rlm-table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--rlm-muted); background: #f8fafc; font-weight: 800; white-space: nowrap; }
.rlm-table tbody tr:last-child td { border-bottom: 0; }
.rlm-table .rlm-num { text-align: center; font-variant-numeric: tabular-nums; width: 1%; white-space: nowrap; }
.rlm-standings tbody tr:first-child td { font-weight: 700; }
.rlm-standings tr.is-champion { background: #fffbea; }
.rlm-team-cell { font-weight: 700; min-width: 140px; }
@media (max-width: 640px) { .rlm-hide-sm { display: none; } .rlm-table th, .rlm-table td { padding: 9px 8px; } }

/* ---------- Forms ---------- */
.rlm-form .rlm-field { margin-bottom: 16px; border: 0; padding: 0; min-width: 0; }
.rlm-form label, .rlm-form legend { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.rlm-form input[type="text"], .rlm-form input[type="email"], .rlm-form input[type="tel"], .rlm-form input[type="password"],
.rlm-form input[type="number"], .rlm-form input[type="date"], .rlm-form select, .rlm-form textarea {
	width: 100%; padding: 11px 12px; border: 1.5px solid #cfd8e3; border-radius: 8px; font: inherit; background: #fff; color: var(--rlm-text);
}
.rlm-form input:focus, .rlm-form select:focus, .rlm-form textarea:focus { outline: none; border-color: var(--rlm-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rlm-primary) 18%, transparent); }
.rlm-form input[readonly] { background: #f5f7fa; }
.rlm-form .rlm-h3 { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--rlm-line); }
.rlm-form .rlm-h3:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.rlm-row { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .rlm-row { grid-template-columns: 1fr 1fr; } }
.rlm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rlm-chip { margin: 0 !important; }
.rlm-chip input { position: absolute; opacity: 0; pointer-events: none; }
.rlm-chip span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1.5px solid #cfd8e3; border-radius: 999px; cursor: pointer; font-weight: 600; background: #fff; }
.rlm-chip input:checked + span { background: var(--rlm-primary); border-color: var(--rlm-primary); color: #fff; }
.rlm-chip input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--rlm-accent) 55%, transparent); }
.rlm-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 600 !important; }
.rlm-check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.rlm-waiver__text { max-height: 200px; overflow: auto; padding: 12px 14px; background: #f8fafc; border: 1px solid var(--rlm-line); border-radius: 8px; font-size: .9rem; margin-bottom: 10px; }
.rlm-form__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* ---------- Banners (public alerts) ---------- */
.rlm-alerts:empty { display: none; }
.rlm-banner { background: color-mix(in srgb, var(--rlm-accent) 14%, #fff); color: var(--rlm-text); border-bottom: 3px solid var(--rlm-accent); }
.rlm-banner--warning { background: #ffd666; color: #1b1300; border-bottom-color: #d69e00; }
.rlm-banner--urgent { background: #c53030; color: #fff; border-bottom-color: #8f1d1d; }
.rlm-banner__inner { display: flex; gap: 12px; align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
.rlm-banner__text { flex: 1; min-width: 0; }
.rlm-banner__body p { margin: 2px 0 0; }
.rlm-banner__link { color: inherit !important; font-weight: 700; }
.rlm-banner__close { background: none; border: 0; color: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; opacity: .8; padding: 0 4px; }

/* ---------- Bell (theme header) ---------- */
.rlm-bell { position: relative; }
.rlm-bell__btn { position: relative; background: none; border: 0; color: inherit; cursor: pointer; padding: 6px; border-radius: 8px; display: inline-flex; }
.rlm-bell__btn svg { width: 24px; height: 24px; }
.rlm-bell__btn .rlm-count { position: absolute; top: 0; right: 0; }
.rlm-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--rlm-accent); color: #fff; font-size: .72rem; font-weight: 800; }
.rlm-count[hidden] { display: none; }
.rlm-bell__menu { display: none; position: absolute; right: 0; top: calc(100% + 8px); width: min(360px, 92vw); max-height: 70vh; overflow: auto; background: #fff; color: var(--rlm-text); border: 1px solid var(--rlm-line); border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, .18); z-index: 100; }
.rlm-bell.is-open .rlm-bell__menu { display: block; }
.rlm-bell__item { display: flex; gap: 8px; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--rlm-line); border-left: 4px solid var(--rlm-primary); font-size: .9rem; }
.rlm-bell__item--warning { border-left-color: #f5b301; }
.rlm-bell__item--urgent { border-left-color: #c53030; }
.rlm-bell__item > div { flex: 1; min-width: 0; }
.rlm-bell__body p { margin: 2px 0; }
.rlm-bell__date { font-size: .74rem; color: var(--rlm-muted); }
.rlm-bell__empty { padding: 16px; margin: 0; color: var(--rlm-muted); }
.rlm-bell__all { display: block; text-align: center; padding: 10px; font-weight: 700; font-size: .88rem; }

/* ---------- Portal ---------- */
.rlm-portal { background: var(--rlm-bg); min-height: 60vh; padding-bottom: 50px; }
.rlm-portal__bar { background: var(--rlm-primary); color: #fff; }
.rlm-portal__barinner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.rlm-portal__hello { font-weight: 800; font-size: 1.1rem; margin-right: 10px; }
.rlm-portal__role { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; background: rgba(255, 255, 255, .15); padding: 3px 9px; border-radius: 999px; }
.rlm-portal__baractions { display: flex; gap: 8px; flex-wrap: wrap; }
.rlm-portal__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
@media (min-width: 900px) { .rlm-portal__grid { grid-template-columns: 220px minmax(0, 1fr); } }
.rlm-portal__nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; align-self: start; }
@media (min-width: 900px) { .rlm-portal__nav { flex-direction: column; position: sticky; top: 20px; } }
.rlm-portal__nav a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--rlm-text); font-weight: 700; white-space: nowrap; background: #fff; border: 1px solid var(--rlm-line); }
.rlm-portal__nav a.is-active { background: var(--rlm-primary); border-color: var(--rlm-primary); color: #fff; }
.rlm-portal__main { min-width: 0; }
.rlm-portal__title { font-family: var(--rlm-font-head); font-size: 1.8rem; margin: 0 0 16px; }
.rlm-portal__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.rlm-portal__head .rlm-portal__title { margin: 0; }
.rlm-portal__kicker { margin: 0; font-weight: 700; font-size: .9rem; }
.rlm-portal__headbadges { display: flex; gap: 6px; }
.rlm-portal__section { margin-bottom: 30px; }
.rlm-roster input[type="text"], .rlm-roster input[type="email"], .rlm-roster input[type="tel"] { padding: 8px 9px; min-width: 120px; }
.rlm-roster .rlm-col-sm { width: 1%; text-align: center; white-space: nowrap; }
.rlm-roster input.rlm-input-xs { width: 56px; min-width: 0; text-align: center; }
.rlm-roster td { padding: 6px 8px; }
.rlm-linklist { margin: 0; padding-left: 18px; }
.rlm-notes, .rlm-thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rlm-note { display: flex; gap: 10px; background: #fff; border: 1px solid var(--rlm-line); border-left: 5px solid var(--rlm-primary); border-radius: 10px; padding: 14px 10px 14px 16px; box-shadow: var(--rlm-shadow); }
.rlm-note--warning { border-left-color: #f5b301; }
.rlm-note--urgent { border-left-color: #c53030; }
.rlm-note.is-dismissed { opacity: .55; box-shadow: none; }
.rlm-note__body { flex: 1; min-width: 0; }
.rlm-note__meta { font-size: .78rem; color: var(--rlm-muted); }
.rlm-note__title { margin: 2px 0 4px; font-size: 1.05rem; }
.rlm-note__text p { margin: 0 0 6px; }
.rlm-reply { margin-top: 10px; background: #f3f8ff; border-radius: 8px; padding: 10px 12px; }
.rlm-push-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; border-left: 5px solid var(--rlm-accent); }
.rlm-push-card[hidden] { display: none; }
.rlm-push-card p { margin: 2px 0 0; }
.rlm-narrow-card { max-width: 720px; }
.rlm-assignments { display: grid; gap: 14px; margin-bottom: 18px; }
.rlm-assignment.is-today { border-left: 5px solid var(--rlm-accent); }
.rlm-assignment__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rlm-assignment__head h3, .rlm-assignment h3 { margin: 2px 0; font-size: 1.1rem; }
.rlm-assignment__when { font-weight: 800; color: var(--rlm-primary); font-size: .9rem; }
.rlm-assignment__badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.rlm-score-form { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--rlm-line); }
.rlm-score-form__row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 10px; }
.rlm-score-form label { display: flex; flex-direction: column; font-weight: 700; font-size: .85rem; gap: 4px; }
.rlm-score-form input[type="number"] { width: 110px; padding: 10px; font-size: 1.2rem; font-weight: 800; border: 1.5px solid #cfd8e3; border-radius: 8px; text-align: center; }
.rlm-score-form input[type="text"], .rlm-score-form select { padding: 9px 10px; border: 1.5px solid #cfd8e3; border-radius: 8px; font: inherit; }
.rlm-score-form .rlm-grow { flex: 1 1 260px; }
.rlm-score-form label[hidden] { display: none; }

/* ---------- Login ---------- */
.rlm-login { min-height: 70vh; display: grid; place-items: center; padding: 40px 16px; background: linear-gradient(160deg, color-mix(in srgb, var(--rlm-primary) 8%, #fff), var(--rlm-bg)); }
.rlm-login__card { width: 100%; max-width: 420px; padding: 32px 28px; border-top: 5px solid var(--rlm-accent); }
.rlm-login__brand { text-align: center; margin-bottom: 18px; }
.rlm-login__brand img { max-height: 70px; width: auto; margin-bottom: 8px; }
.rlm-login__mark { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--rlm-primary); color: #fff; margin-bottom: 8px; }
.rlm-login__mark .rlm-icon { width: 32px; height: 32px; }
.rlm-login__brand h1 { font-family: var(--rlm-font-head); font-size: 1.6rem; margin: 0; }
.rlm-login__brand p { margin: 2px 0 0; }
.rlm-login__links { text-align: center; margin: 14px 0 0; }
.rlm-login__note { text-align: center; margin: 14px 0 0; }

/* ---------- Print ---------- */
@media print {
	.site-header, .site-footer, .rlm-tabbar, .rlm-toolbar, .rlm-alerts, .rlm-pagehead__actions, .rlm-crumbs { display: none !important; }
	.rlm-pagehead { background: none; color: #000; padding: 0; }
	.rlm-pagehead__title, .rlm-pagehead a { color: #000; }
	.rlm-games__list, .rlm-card, .rlm-table-wrap { box-shadow: none; }
	.rlm-game { break-inside: avoid; }
}

/* Compact standings in narrow sidebars */
.rlm-layout__side .rlm-table th, .rlm-layout__side .rlm-table td { padding: 8px 6px; font-size: .88rem; }
.rlm-standings--compact .rlm-col-gp { display: none; }
