/* ════════════════════════════════════════════════════════════════════════
   McDONOGH TEXT ALERTS — branded skin
   Drop-in replacement for alerts/css/styles.css
   ────────────────────────────────────────────────────────────────────────
   Scope: this stylesheet only loads on /t/alerts/ pages, and every selector
   is prefixed with .system or an .alerts-* class, so nothing here leaks
   into site-wide styles.

   Tokens are hard-coded from the McDonogh School Design System:
     orange #e87324 · orange-hover #de610a · ink #202120 · taupe #514b47
     slate #767574 · line #e1e1e1 · grey #f6f6f6 · mgrey #c7c7c7
     cobalt #3066a2 (table links) · error #d90000 · gold #f7ae00

   Fonts: inherits the site's licensed Gotham webfonts (cloud.typography).
   No @font-face or @import here by design.
   ════════════════════════════════════════════════════════════════════════ */

.system {
	--alerts-orange:       #e87324;
	--alerts-orange-hover: #de610a;
	--alerts-ink:          #202120;
	--alerts-taupe:        #514b47;
	--alerts-slate:        #767574;
	--alerts-mgrey:        #c7c7c7;
	--alerts-line:         #e1e1e1;
	--alerts-grey:         #f6f6f6;
	--alerts-cobalt:       #3066a2;
	--alerts-error:        #d90000;
	--alerts-gold:         #f7ae00;
	--alerts-font-ui:      "Gotham A", "Gotham B", "Helvetica Neue", Arial, sans-serif;
	--alerts-font-body:    "Gotham Narrow SSm A", "Gotham Narrow SSm B", "Gotham Narrow", "Helvetica Neue", Arial, sans-serif;
	--alerts-dur:          200ms;
	--alerts-ease:         cubic-bezier(.4, 0, .2, 1);
}

/* ── Intro copy ──────────────────────────────────────────────────────── */

.alerts-intro { max-width: 640px; }
.alerts-intro p { margin-bottom: 0.9em; text-wrap: pretty; }

/* Subtitle under the page H2 ("for Jane Doe (410-...)") */
.system h3.SubTitle {
	font-family: var(--alerts-font-ui);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--alerts-slate);
}

/* ── Buttons ─────────────────────────────────────────────────────────────
   Primary action  = .alerts-btn.alerts-btn-primary  (solid orange)
   Secondary       = .alerts-btn.alerts-btn-ghost    (hairline, inks on hover)
   Quiet danger    = .alerts-btn.alerts-btn-danger   (ghost red, small)
   Bare <input type="submit"> inside .alerts-form is styled as primary too,
   so unconverted templates still pick up the brand.
   ─────────────────────────────────────────────────────────────────────── */

.system .alerts-btn,
.system .alerts-form input[type="submit"] {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--alerts-font-ui);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	line-height: 1;
	padding: 13px 24px;
	border: 1px solid transparent;
	border-radius: 2px;
	cursor: pointer;
	text-decoration: none;
	transition: background-color var(--alerts-dur) var(--alerts-ease),
	            border-color var(--alerts-dur) var(--alerts-ease),
	            color var(--alerts-dur) var(--alerts-ease);
	-webkit-appearance: none;
	appearance: none;
}

.system .alerts-btn-primary,
.system .alerts-form input[type="submit"] {
	background: var(--alerts-orange);
	border-color: var(--alerts-orange);
	color: #fff;
}
.system .alerts-btn-primary:hover,
.system .alerts-form input[type="submit"]:hover {
	background: var(--alerts-orange-hover);
	border-color: var(--alerts-orange-hover);
	color: #fff;
	text-decoration: none;
}

.system .alerts-btn-ghost {
	background: transparent;
	border-color: var(--alerts-mgrey);
	color: var(--alerts-taupe);
}
.system .alerts-btn-ghost:hover {
	border-color: var(--alerts-orange);
	color: var(--alerts-orange);
	text-decoration: none;
}

.system .alerts-btn-danger {
	background: transparent;
	border-color: var(--alerts-mgrey);
	color: var(--alerts-error);
	font-size: 11px;
	padding: 10px 18px;
}
.system .alerts-btn-danger:hover {
	border-color: var(--alerts-error);
	background: var(--alerts-error);
	color: #fff;
	text-decoration: none;
}

.system .alerts-btn:focus-visible,
.system .alerts-form input[type="submit"]:focus-visible {
	outline: 2px solid var(--alerts-orange);
	outline-offset: 2px;
}

/* ── Forms ───────────────────────────────────────────────────────────── */

.alerts-form { max-width: 480px; }
.alerts-form .field { margin-bottom: 20px; }

.system .alerts-form label {
	display: block;
	margin-bottom: 6px;
	font-family: var(--alerts-font-ui);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--alerts-ink);
}

.system .alerts-form input[type="text"],
.system .alerts-form input[type="email"],
.system .alerts-form input[type="tel"],
.system .alerts-form select,
.system .alerts-form textarea {
	width: 100%;
	max-width: 400px;
	font-family: var(--alerts-font-body);
	font-size: 16px;
	color: var(--alerts-ink);
	padding: 10px 12px;
	background: #fff;
	border: 1px solid var(--alerts-mgrey);
	border-radius: 2px;
	box-sizing: border-box;
	transition: border-color var(--alerts-dur) var(--alerts-ease),
	            box-shadow var(--alerts-dur) var(--alerts-ease);
}
.system .alerts-form input:focus,
.system .alerts-form select:focus,
.system .alerts-form textarea:focus {
	outline: none;
	border-color: var(--alerts-orange);
	box-shadow: 0 0 0 3px rgba(232, 115, 36, 0.18);
}
.system .alerts-form input::placeholder,
.system .alerts-form textarea::placeholder { color: var(--alerts-mgrey); }

.alerts-form textarea { height: 80px; resize: vertical; }

.system .alerts-form .hint {
	font-size: 13px;
	color: var(--alerts-slate);
	margin-top: 5px;
}

/* Verification code input — oversized, centered, tabular */
.system .alerts-form .alerts-code-input {
	font-size: 32px;
	font-weight: 600;
	letter-spacing: 0.35em;
	width: 8em;
	max-width: 100%;
	text-align: center;
	padding: 12px 0 12px 0.35em; /* left pad balances letter-spacing */
	font-variant-numeric: tabular-nums;
}

/* Masked phone display */
.alerts-phone-display {
	font-family: var(--alerts-font-ui);
	font-size: 1.05em;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--alerts-ink);
	white-space: nowrap;
}

/* Resend link row */
.alerts-resend { font-size: 14px; color: var(--alerts-slate); margin-top: 16px; }

/* ── Category cards (Option D: switch + season track) ─────────────────
   Each category is a card with:
   - legend h3 eyebrow (unchanged)
   - an absolute top-right control cluster: status label + on/off switch
   - a continuous 4-segment season track (replaces chips; no "All Year" box)
   Off state (switch unchecked) collapses the track via :has().
   ─────────────────────────────────────────────────────────────────────── */

.alerts-category {
	position: relative;
	border: 1px solid var(--alerts-line);
	border-radius: 4px;
	background: #fff;
	padding: 20px 24px 22px;
	margin-bottom: 20px;
	max-width: 720px;
	transition: background-color var(--alerts-dur) var(--alerts-ease),
	            border-color var(--alerts-dur) var(--alerts-ease);
}

/* Legend rides the top border as the brand's uppercase orange eyebrow */
.alerts-category legend { padding: 0 10px; margin-left: -10px; }
.system .alerts-category legend h3 {
	margin: 0;
	font-family: var(--alerts-font-ui);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--alerts-orange);
	transition: color var(--alerts-dur) var(--alerts-ease);
}

.system .alerts-category .alerts-cat-desc {
	font-size: 14px;
	line-height: 1.55;
	color: var(--alerts-slate);
	margin: 2px 0 16px;
	max-width: 56ch;
	text-wrap: pretty;
	/* keep clear of the absolute control cluster */
	padding-right: 120px;
}

/* ── Status label + subscribe switch (top-right of card) ─────────────── */

.system .alerts-cat-controls {
	position: absolute;
	top: 17px;
	right: 20px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.system .alerts-cat-status {
	font-family: var(--alerts-font-ui);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--alerts-orange);
	white-space: nowrap;
}

.system .alerts-switch {
	position: relative;
	display: inline-block;
	width: 46px;
	height: 26px;
	flex: 0 0 auto;
	cursor: pointer;
}
.system .alerts-switch input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: inherit;
}
.system .alerts-switch input:disabled { cursor: not-allowed; }
.system .alerts-switch-slider {
	position: absolute;
	inset: 0;
	border-radius: 13px;
	background: var(--alerts-mgrey);
	transition: background-color var(--alerts-dur) var(--alerts-ease);
	pointer-events: none;
}
.system .alerts-switch-slider::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
	transition: left var(--alerts-dur) var(--alerts-ease);
}
.system .alerts-switch input:checked + .alerts-switch-slider { background: var(--alerts-orange); }
.system .alerts-switch input:checked + .alerts-switch-slider::after { left: 23px; }
.system .alerts-switch input:disabled + .alerts-switch-slider { cursor: not-allowed; }
/* Locked-on switch (required category): taupe like the locked season, with a
   lock glyph on the knob instead of a faded look. */
.system .alerts-switch input:checked:disabled + .alerts-switch-slider { background: var(--alerts-taupe); }
.system .alerts-switch input:checked:disabled + .alerts-switch-slider::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Crect x='2.5' y='5.5' width='7' height='5' rx='1' fill='%23514b47'/%3E%3Cpath d='M4 5.5V4a2 2 0 0 1 4 0v1.5' stroke='%23514b47' stroke-width='1.3' fill='none'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 12px 12px;
}
.system .alerts-switch input:focus-visible + .alerts-switch-slider {
	outline: 2px solid var(--alerts-orange);
	outline-offset: 2px;
}

/* ── Season track ─────────────────────────────────────────────────────────
   Base (any browser): tidy checkbox row with brand accent-color.
   Enhancement (:has — all evergreen browsers): one continuous segmented
   bar; checked segments fill orange, the locked/required season fills
   taupe with a lock glyph. Markup: <label><input><span>Fall</span></label>
   ─────────────────────────────────────────────────────────────────────── */

.alerts-season-track { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.system .alerts-season-track label {
	font-family: var(--alerts-font-ui);
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 0.4em;
	cursor: pointer;
	accent-color: var(--alerts-orange);
}
.system .alerts-season-track .alerts-lock { display: none; }

@supports selector(:has(*)) {
	.system .alerts-season-track {
		flex-wrap: nowrap;
		gap: 0;
		border: 1px solid var(--alerts-mgrey);
		border-radius: 4px;
		overflow: hidden;
	}
	.system .alerts-season-track label {
		position: relative;
		flex: 1;
		justify-content: center;
		gap: 5px;
		padding: 12px 4px;
		font-size: 11.5px;
		font-weight: 700;
		letter-spacing: 0.5px;
		text-transform: uppercase;
		color: var(--alerts-slate);
		background: #fff;
		border-left: 1px solid var(--alerts-line);
		line-height: 1;
		user-select: none;
		transition: background-color 150ms var(--alerts-ease),
		            color 150ms var(--alerts-ease);
	}
	.system .alerts-season-track label:first-child { border-left: none; }
	.system .alerts-season-track label input {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		margin: 0;
		opacity: 0;
		cursor: inherit;
	}
	.system .alerts-season-track label:hover { color: var(--alerts-orange); }
	.system .alerts-season-track label:has(input:checked) {
		background: var(--alerts-orange);
		border-left-color: rgba(255, 255, 255, 0.35);
		color: #fff;
	}
	.system .alerts-season-track label:has(input:checked):hover { background: var(--alerts-orange-hover); }
	.system .alerts-season-track label:has(input:focus-visible) {
		outline: 2px solid var(--alerts-orange);
		outline-offset: -2px;
	}
	/* Locked (required) season: taupe, lock glyph, not interactive */
	.system .alerts-season-track label.season-required,
	.system .alerts-season-track label:has(input:disabled) {
		background: var(--alerts-taupe);
		border-left-color: rgba(255, 255, 255, 0.35);
		color: #fff;
		cursor: not-allowed;
	}
	.system .alerts-season-track label.season-required:hover { background: var(--alerts-taupe); color: #fff; }
	.system .alerts-season-track .alerts-lock { display: inline-block; width: 11px; height: 11px; flex: 0 0 auto; }

	/* ── Off state: switch unchecked collapses the card ─────────────── */
	.alerts-category:has(.alerts-cat-toggle:not(:checked)) {
		background: #fcfcfc;
		border-color: #ededed;
	}
	.system .alerts-category:has(.alerts-cat-toggle:not(:checked)) legend h3 { color: var(--alerts-slate); }
	.system .alerts-category:has(.alerts-cat-toggle:not(:checked)) .alerts-cat-desc { margin-bottom: 2px; }
	.alerts-category:has(.alerts-cat-toggle:not(:checked)) .alerts-season-track,
	.alerts-category:has(.alerts-cat-toggle:not(:checked)) .alerts-required-note { display: none; }
	.system .alerts-category:has(.alerts-cat-toggle:not(:checked)) .alerts-cat-status { color: var(--alerts-mgrey); }
}

.system .alerts-required-note {
	font-size: 13px;
	color: var(--alerts-slate);
	margin-top: 14px;
	margin-bottom: 0;
}

/* ── Save row + unsubscribe ("danger zone") ──────────────────────────── */

.system .alerts-actions { margin-top: 24px; }

.alerts-unsubscribe-btn {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid var(--alerts-line);
	max-width: 720px;
}
/* Fallback for the old bare <button> (no class) inside the unsubscribe form */
.system .alerts-unsubscribe-btn button {
	font-family: var(--alerts-font-ui);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	background: transparent;
	border: 1px solid var(--alerts-mgrey);
	border-radius: 2px;
	color: var(--alerts-error);
	padding: 10px 18px;
	cursor: pointer;
	transition: all var(--alerts-dur) var(--alerts-ease);
}
.system .alerts-unsubscribe-btn button:hover {
	background: var(--alerts-error);
	border-color: var(--alerts-error);
	color: #fff;
}

/* ── Admin: viewing-another-user banner ──────────────────────────────── */

.system .alerts-viewing-banner {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fffaeb;
	border: 1px solid var(--alerts-gold);
	border-radius: 2px;
	padding: 12px 16px;
	margin-bottom: 20px;
	max-width: 720px;
	font-size: 14px;
}

/* ── Admin: data tables (.TableBox, scoped to the alerts content zone) ── */

.zone.content .system .TableBox {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--alerts-font-body);
	font-size: 15px;
	margin: 8px 0 16px;
}
.zone.content .system .TableBox th {
	background: var(--alerts-taupe);
	color: #fff;
	font-family: var(--alerts-font-ui);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	text-align: left;
	padding: 11px 14px;
	border: 0;
}
.zone.content .system .TableBox td {
	font-family: var(--alerts-font-body);
	font-size: 15px;
	color: var(--alerts-ink);
	padding: 12px 14px;
	border-bottom: 1px solid var(--alerts-line);
	background: none;
}
.zone.content .system .TableBox tr:hover td { background: #faf6f2; }
.zone.content .system .TableBox td a,
.zone.content .system .TableBox td a:link,
.zone.content .system .TableBox td a:visited {
	color: var(--alerts-cobalt);
	font-family: var(--alerts-font-ui);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}
.zone.content .system .TableBox td a:hover { text-decoration: underline; }
.zone.content .system .TableBox td em { color: var(--alerts-slate); }

/* ── Admin: report filter bar ────────────────────────────────────────── */

.system .alerts-report-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 20px;
	align-items: flex-end;
	max-width: none;
	padding: 16px 18px;
	background: var(--alerts-grey);
	border: 1px solid var(--alerts-line);
	border-radius: 2px;
}
.system .alerts-report-filters .field { margin-bottom: 0; flex: 0 1 auto; }
.system .alerts-report-filters select { min-width: 160px; width: auto; }
.system .alerts-report-filters input[type="submit"],
.system .alerts-report-filters .alerts-btn { margin-bottom: 1px; }

/* Subscription summary tags, e.g. [Sec: Su] → chip */
.system .alerts-sub-tag {
	display: inline-block;
	font-family: var(--alerts-font-ui);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.5px;
	color: var(--alerts-taupe);
	background: var(--alerts-grey);
	border: 1px solid var(--alerts-line);
	border-radius: 2px;
	padding: 3px 8px;
	margin: 2px 4px 2px 0;
	white-space: nowrap;
}

.system .alerts-report-comments { font-size: 13px; color: var(--alerts-slate); }

/* ── Admin report: Subscriptions column as mini season wheels ─────────
   Same wheel partial as view-user, shrunk for table rows, one wheel per
   category with a 3–4 letter label. Tweak hooks (demo only): body classes
   .alerts-subview-tags (text tags instead), .alerts-sub-labels-beside,
   .alerts-sub-hide-off, and --alerts-report-wheel for size. */

.system .alerts-sub-wheels {
	display: inline-flex;
	gap: 16px;
	vertical-align: middle;
}
.system .alerts-sub-wheel-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
}
.system .alerts-sub-wheels .alerts-season-wheel {
	width: var(--alerts-report-wheel, 30px);
	height: var(--alerts-report-wheel, 30px);
}
.system .alerts-sub-wheel-label {
	font-family: var(--alerts-font-ui);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: var(--alerts-slate);
	line-height: 1;
}
.system .alerts-sub-wheel-item.is-off .alerts-sub-wheel-label { color: var(--alerts-mgrey); }

body.alerts-sub-labels-beside .alerts-sub-wheel-item { flex-direction: row; gap: 6px; }
body.alerts-sub-hide-off .alerts-sub-wheel-item.is-off { display: none; }

/* Binary channel (McDonogh Minute): an on/off dot stands in for the season wheel,
   sized to match. Brand orange = on; grey via the existing .is-off rule = off. */
.system .alerts-sub-binary-dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--alerts-report-wheel, 30px);
	height: var(--alerts-report-wheel, 30px);
	font-size: 20px;
	line-height: 1;
	color: var(--alerts-orange);
}
.system .alerts-sub-wheel-item.is-off .alerts-sub-binary-dot,
.system .alerts-sub-row.is-off .alerts-sub-binary-dot { color: var(--alerts-mgrey); }

/* Binary category cards (McDonogh Minute) have no season track below the description, so the
   off-state desc-margin tweak (16px → 2px) would visibly resize the card on toggle. Pin the
   off-state margin to the on-state value (higher specificity than the off-state rule) so the
   card height stays constant. */
.system .alerts-category.alerts-category-binary:has(.alerts-cat-toggle:not(:checked)) .alerts-cat-desc {
	margin-bottom: 16px;
}

.system .alerts-sub-summary .alerts-sub-tags { display: none; }
body.alerts-subview-tags .alerts-sub-summary .alerts-sub-tags { display: inline; }
body.alerts-subview-tags .alerts-sub-summary .alerts-sub-wheels { display: none; }

/* ── Admin: user meta line + role badges (view-user page) ────────────── */

.system .alerts-user-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	color: var(--alerts-slate);
	font-size: 15px;
	margin: -4px 0 20px;
}
.system .alerts-role-badge {
	display: inline-block;
	font-family: var(--alerts-font-ui);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--alerts-orange);
	border: 1px solid var(--alerts-orange);
	border-radius: 2px;
	padding: 4px 9px;
	white-space: nowrap;
}

/* Comments captured at enrollment (renters etc.) — sits with the meta block */
.system .alerts-user-comments {
	font-size: 14px;
	color: var(--alerts-taupe);
	font-style: italic;
	margin: -14px 0 20px;
	max-width: 60ch;
}

/* Action row under the user meta (edit prefs + MUMS) */
.system .alerts-user-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 26px;
}

/* ── Admin: subscription list with season wheels (view-user page) ───────
   One row per category. The wheel is a 4-quadrant year dial — clockwise
   from top-right: Fall, Winter, Spring, Summer. Filled quadrant =
   subscribed season. Replaces the Category/Season TableBox.
   ─────────────────────────────────────────────────────────────────── */

.system .alerts-sub-list {
	list-style: none;
	margin: 8px 0 28px;
	padding: 0;
	max-width: 720px;
	border: 1px solid var(--alerts-line);
	border-radius: 4px;
	background: #fff;
}
.system .alerts-sub-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--alerts-line);
}
.system .alerts-sub-row:last-child { border-bottom: 0; }

.system .alerts-season-wheel { width: 45px; height: 45px; flex: 0 0 auto; }
.system .alerts-season-wheel path {
	fill: #eeeceb;
	stroke: #fff;
	stroke-width: 1.2;
}
.system .alerts-season-wheel path.on { fill: var(--alerts-orange); }

/* Seasonal wedges — LOCKED IN (2026-06-10). The view-user page's .system
   div carries .alerts-wheels-seasonal. Wedge colors (user-approved, not DS
   tokens): fall red #f94225, winter ice #8fb8d9, spring pink #f5afd4,
   summer green #88cc00. A fully-subscribed wheel (svg.all-on) flips to
   solid brand orange = All Year. */
.alerts-wheels-seasonal .alerts-season-wheel path.q-fall.on   { fill: #f94225; }
.alerts-wheels-seasonal .alerts-season-wheel path.q-winter.on { fill: #8fb8d9; }
.alerts-wheels-seasonal .alerts-season-wheel path.q-spring.on { fill: #f5afd4; }
.alerts-wheels-seasonal .alerts-season-wheel path.q-summer.on { fill: #88cc00; }
.alerts-wheels-seasonal .alerts-season-wheel.all-on path.on   { fill: var(--alerts-orange); }

.system .alerts-sub-info { flex: 1; min-width: 0; }
.system .alerts-sub-cat {
	display: block;
	font-family: var(--alerts-font-ui);
	font-size: 14px;
	font-weight: 700;
	color: var(--alerts-ink);
}
.system .alerts-sub-seasons {
	display: block;
	font-size: 13px;
	color: var(--alerts-slate);
	margin-top: 2px;
}
.system .alerts-sub-updated {
	font-family: var(--alerts-font-ui);
	font-size: 12px;
	color: var(--alerts-slate);
	white-space: nowrap;
}

/* Unsubscribed category: muted row */
.system .alerts-sub-row.is-off .alerts-sub-cat { color: var(--alerts-slate); font-weight: 600; }
.system .alerts-sub-row.is-off .alerts-sub-seasons { color: var(--alerts-mgrey); }

/* Per-user "last updated" line under the subscription list */
.system .alerts-subs-updated {
	font-family: var(--alerts-font-ui);
	font-size: 12px;
	color: var(--alerts-slate);
	margin: -16px 0 26px;
}

/* ── Admin: reminder page SMS preview bubble ─────────────────────────── */

.system .alerts-sms-preview {
	max-width: 420px;
	margin: 16px 0 20px;
	padding: 14px 18px;
	background: var(--alerts-grey);
	border: 1px solid var(--alerts-line);
	border-radius: 16px;
	border-bottom-left-radius: 4px;
	font-family: var(--alerts-font-body);
	font-size: 15px;
	line-height: 1.5;
	color: var(--alerts-ink);
}
.system .alerts-sms-preview .alerts-sms-caption {
	display: block;
	font-family: var(--alerts-font-ui);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--alerts-slate);
	margin-bottom: 6px;
}

/* Footnote-style fine print (reminder scheduling note, etc.) */
.system .alerts-finenote {
	font-size: 13px;
	color: var(--alerts-slate);
	margin-top: 24px;
	max-width: 640px;
}
.system .alerts-finenote code {
	font-size: 12px;
	background: var(--alerts-grey);
	border: 1px solid var(--alerts-line);
	border-radius: 2px;
	padding: 1px 5px;
}

/* ── Batch tool (admin) ──────────────────────────────────────────────
   Reuses the prefs-page components: .alerts-category cards and the
   .alerts-season-track segmented bar (checkboxes AND radios both work
   with the :has() styling). */

.system .alerts-batch-count {
	font-family: var(--alerts-font-ui);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--alerts-taupe);
	margin: 0 0 20px;
}
.system .alerts-batch-count strong { color: var(--alerts-orange); }

.system .alerts-help-link {
	font-family: var(--alerts-font-ui);
	font-size: 12px;
	font-weight: 600;
	color: var(--alerts-cobalt);
	text-decoration: none;
	white-space: nowrap;
}
.system .alerts-help-link:hover { text-decoration: underline; }

/* Tri-state season grid — one row per season inside each category card.
   Three radios per cell (Subscribe / leave unchanged / Unsubscribe); default
   is "leave". Radios work without JS; :has() adds the colour. */
.system .alerts-batch-grid { display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }
.system .alerts-batch-row { display: flex; align-items: center; gap: 14px; }
.system .alerts-batch-season {
	flex: 0 0 64px;
	font-family: var(--alerts-font-ui);
	font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
	color: var(--alerts-slate);
}
.system .alerts-tristate {
	display: inline-flex;
	border: 1px solid var(--alerts-mgrey);
	border-radius: 4px;
	overflow: hidden;
}
.system .alerts-tristate label {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 92px; padding: 7px 10px;
	font-family: var(--alerts-font-ui); font-size: 11.5px; font-weight: 700;
	letter-spacing: 0.5px; line-height: 1;
	color: var(--alerts-slate); background: #fff; cursor: pointer; user-select: none;
	border-left: 1px solid var(--alerts-line);
	transition: background-color 150ms var(--alerts-ease), color 150ms var(--alerts-ease);
}
.system .alerts-tristate label:first-child { border-left: none; }
.system .alerts-tristate input {
	position: absolute; inset: 0; width: 100%; height: 100%;
	margin: 0; opacity: 0; cursor: pointer;
}
.system .alerts-tristate label:hover { color: var(--alerts-ink); }

@supports selector(:has(*)) {
	.system .alerts-tristate label.seg-on:has(input:checked)   { background: #1f8a4c; color: #fff; }
	.system .alerts-tristate label.seg-off:has(input:checked)  { background: var(--alerts-error); color: #fff; }
	.system .alerts-tristate label.seg-noop:has(input:checked) { background: var(--alerts-grey); color: var(--alerts-taupe); }
	.system .alerts-tristate label:has(input:focus-visible) { outline: 2px solid var(--alerts-orange); outline-offset: -2px; }
}

/* Compact key above the cards */
.system .alerts-batch-key {
	font-family: var(--alerts-font-body);
	font-size: 13px; color: var(--alerts-slate);
	margin: 0 0 18px;
}
.system .alerts-batch-key b { font-weight: 700; }
.system .alerts-batch-key .k-on  { color: #1f8a4c; }
.system .alerts-batch-key .k-off { color: var(--alerts-error); }

/* ── Help modal (native <dialog>) ───────────────────────────────────── */
dialog.alerts-modal {
	border: 1px solid var(--alerts-line, #e1e1e1);
	border-radius: 4px;
	padding: 26px 30px;
	max-width: 540px;
	font-family: var(--alerts-font-body, "Helvetica Neue", Arial, sans-serif);
	font-size: 15px;
	line-height: 1.55;
	color: var(--alerts-ink, #202120);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
dialog.alerts-modal::backdrop { background: rgba(32, 33, 32, 0.45); }
dialog.alerts-modal h4 {
	margin: 0 0 14px;
	font-family: var(--alerts-font-ui, "Helvetica Neue", Arial, sans-serif);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--alerts-orange, #e87324);
}
dialog.alerts-modal ul { margin: 0 0 18px; padding-left: 20px; }
dialog.alerts-modal li { margin-bottom: 8px; }
dialog.alerts-modal li:last-child { margin-bottom: 0; }

/* Brand prefix note above each McDonogh Minute message box — tells the author about
   the characters the send task spends before their text. See mod_mm_prefixnote.cfm. */
.system .alerts-mm-prefixnote {
	margin: 0 0 4px;
	font-family: var(--alerts-font-body, "Helvetica Neue", Arial, sans-serif);
	font-size: 12px;
	line-height: 1.45;
	color: var(--alerts-slate, #767574);
}
.system .alerts-mm-prefixnote code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12px;
	font-weight: 700;
	padding: 1px 5px;
	border: 1px solid var(--alerts-line, #e1e1e1);
	border-radius: 3px;
	background: #f7f7f7;
	color: var(--alerts-ink, #202120);
	white-space: pre;   /* the trailing space in "McDonogh: " is part of the value */
}
.system .alerts-mm-prefixnote-why { color: var(--alerts-taupe, #8a8683); }
.system .alerts-mm-prefixnote-why a { color: var(--alerts-taupe, #8a8683); text-decoration: underline; }
.system .alerts-mm-prefixnote-why a:hover { color: var(--alerts-orange, #e87324); }

/* Prominent optionality callout on the opt-in page (10DLC 30923) — the
   not-a-condition statement, made unmissable. See dsp_intro.cfm. */
.system .alerts-optional-note {
	margin: 14px 0;
	padding: 12px 16px;
	border: 1px solid var(--alerts-line, #e1e1e1);
	border-left: 4px solid var(--alerts-orange, #e87324);
	border-radius: 4px;
	background: #fdf8f4;
}
.system .alerts-optional-note p {
	margin: 0;
	font-family: var(--alerts-font-body, "Helvetica Neue", Arial, sans-serif);
	font-size: 14px;
	line-height: 1.55;
	color: var(--alerts-ink, #202120);
}

/* Explicit SMS consent checkbox on the opt-in forms (10DLC 30923) — unchecked by
   default, enforced server-side. See dsp_intro.cfm / dsp_register.cfm. */
.system .alerts-consent-field label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-family: var(--alerts-font-body, "Helvetica Neue", Arial, sans-serif);
	font-size: 14px;
	line-height: 1.45;
	color: var(--alerts-ink, #202120);
	cursor: pointer;
}
.system .alerts-consent-field input[type="checkbox"] {
	margin-top: 3px;
	flex: 0 0 auto;
	accent-color: var(--alerts-orange, #e87324);
}

/* SMS opt-in disclosure (10DLC / TCR) — carrier-mandated fine print shown at the
   opt-in point and on the subscription management page. See mod_sms_disclosure.cfm. */
.system .alerts-sms-disclosure {
	margin: 14px 0 0;
	padding-top: 12px;
	border-top: 1px solid var(--alerts-line, #e1e1e1);
	font-family: var(--alerts-font-body, "Helvetica Neue", Arial, sans-serif);
	font-size: 12px;
	line-height: 1.5;
	color: var(--alerts-slate, #5a5f66);
}
.system .alerts-sms-disclosure strong { font-weight: 700; color: var(--alerts-ink, #202120); }
.system .alerts-sms-disclosure a { color: var(--alerts-slate, #5a5f66); text-decoration: underline; }
.system .alerts-sms-disclosure a:hover { color: var(--alerts-orange, #e87324); }
