/*
 * Tamraght Forum: event categories, collab requests, the how-it-works card,
 * and the layout and contrast fixes that went with them (2026-11-04).
 * Loads after caustic.css and only uses its tokens.
 * The "Legacy sweep" at the end (2026-11-19) re-dresses whatever the old Sable / flat
 * stylesheets still showed through: read its note before styling anything new.
 */

/* ------------------------------------------------------------------
 * Category labels (cards, event page, homepage)
 * ------------------------------------------------------------------ */
.tmf-catlabels { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.tmf-catlabels li { margin: 0; padding: 0; }
.tmf-catlabels li::before { content: none; }
body.lv .tmf-catlabels a { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 10px; border-radius: 999px; font-family: var(--font-body); font-size: .75rem; font-weight: 700; line-height: 1.2; color: var(--ink); text-decoration: none; background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95); }
body.lv.tmf-night .tmf-catlabels a { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32); }
body.lv .tmf-catlabels a:hover { background: var(--pearl); color: #1B2244; }
.tmf-mini-event .tmf-catlabels { margin-top: 4px; }

/* ------------------------------------------------------------------
 * Events page: filter chips with counts and follow bells
 * ------------------------------------------------------------------ */
.tmf-catbar { margin: 0 0 30px; scroll-margin-top: 110px; }
.tmf-catbar__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tmf-catchip { display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0; border-radius: 999px; background: rgba(255, 255, 255, .34); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tmf-catchip::before { content: none; }
body.lv.tmf-night .tmf-catchip { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34); }
body.lv .tmf-catchip__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; font-family: var(--font-body); font-size: .93rem; font-weight: 700; color: var(--ink); text-decoration: none; }
body.lv .tmf-catchip__link:hover { color: var(--ink); }
.tmf-catchip:has(.tmf-catchip__form) .tmf-catchip__link, .tmf-catchip:has(a.tmf-catchip__bell) .tmf-catchip__link { padding-right: 6px; }
.tmf-catchip__n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; font-size: .76rem; font-weight: 800; color: var(--ink); background: rgba(27, 34, 68, .1); }
body.lv.tmf-night .tmf-catchip__n { background: rgba(255, 255, 255, .14); }
.tmf-catchip:has(.tmf-catchip__link[aria-current]) { background: var(--pearl); box-shadow: var(--pearl-shadow); }
body.lv.tmf-night .tmf-catchip:has(.tmf-catchip__link[aria-current]) { background: var(--pearl); box-shadow: var(--pearl-shadow); }
body.lv .tmf-catchip:has(.tmf-catchip__link[aria-current]) :is(.tmf-catchip__link, .tmf-catchip__bell, .tmf-catchip__n) { color: #1B2244; }
.tmf-catchip:has(.tmf-catchip__link[aria-current]) .tmf-catchip__n { background: rgba(27, 34, 68, .1); }
body.lv.lv .tmf-catchip:has(.tmf-catchip__link[aria-current]) .tmf-catchip__bell[aria-pressed="true"] { background: #1B2244; color: #FFFFFF; }
.tmf-catchip__form { display: inline-flex; margin: 0; }
body.lv .tmf-catchip__bell { display: inline-grid; place-items: center; width: 38px; height: 38px; margin: 0 3px 0 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: background .25s ease, color .25s ease; }
body.lv .tmf-catchip__bell .tmf-ico { width: 18px; height: 18px; }
body.lv .tmf-catchip__bell:hover { background: rgba(255, 255, 255, .7); color: #1B2244; }
body.lv.tmf-night .tmf-catchip__bell:hover { background: rgba(255, 255, 255, .16); color: #FFFFFF; }
body.lv .tmf-catchip__bell[aria-pressed="true"] { background: #1B2244; color: #FFFFFF; }
body.lv.tmf-night .tmf-catchip__bell[aria-pressed="true"] { background: var(--pearl); color: #141B3A; }
body.lv .tmf-catchip__bell:focus-visible, body.lv .tmf-catchip__link:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.tmf-catbar__follow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; }

/* ------------------------------------------------------------------
 * Category pills in forms
 * ------------------------------------------------------------------ */
.tmf-cat-field { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.tmf-cat-field legend { margin-bottom: 8px; padding: 0; font-weight: 700; }
.tmf-cat-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.tmf-cat-pick__opt { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.tmf-cat-pick__opt input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tmf-cat-pick__opt span { display: inline-flex; align-items: center; min-height: 42px; padding: 6px 16px; border-radius: 999px; font-size: .92rem; font-weight: 700; color: var(--ink); background: rgba(255, 255, 255, .34); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95); transition: background .2s ease; }
body.lv.tmf-night .tmf-cat-pick__opt span { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34); }
.tmf-cat-pick__opt:hover span { background: rgba(255, 255, 255, .62); }
body.lv.tmf-night .tmf-cat-pick__opt:hover span { background: rgba(255, 255, 255, .16); }
body.lv .tmf-cat-pick__opt input:checked + span { background: #1B2244; color: #FFFFFF; box-shadow: none; }
body.lv.tmf-night .tmf-cat-pick__opt input:checked + span { background: var(--pearl); color: #141B3A; }
.tmf-cat-pick__opt input:disabled + span { opacity: .55; }
.tmf-cat-pick__opt input:disabled { cursor: not-allowed; }
body.lv .tmf-cat-pick__opt input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ------------------------------------------------------------------
 * Dashboard: Notifications; Moderation: Event categories
 * ------------------------------------------------------------------ */
.tmf-dash-notes { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.tmf-ec-prefs .tmf-form { margin-top: 12px; }
.tmf-ec-prefs { scroll-margin-top: 110px; }
.tmf-ec-admin__list { display: grid; gap: 10px; margin: 16px 0; padding: 0; list-style: none; }
.tmf-ec-admin__list > li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 8px 14px; margin: 0; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .28); }
.tmf-ec-admin__list > li::before { content: none; }
body.lv.tmf-night .tmf-ec-admin__list > li { background: rgba(255, 255, 255, .06); }
.tmf-ec-admin__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 84px auto; gap: 10px; align-items: end; min-width: 0; }
.tmf-ec-admin__row .tmf-field { min-width: 0; margin: 0; }
.tmf-ec-admin__row input { width: 100%; min-width: 0; box-sizing: border-box; }
.tmf-ec-admin__list .tmf-inline-form, .tmf-ec-admin__n { padding-bottom: 9px; white-space: nowrap; }

/* ------------------------------------------------------------------
 * Homepage: "How Tamraght Forum works" card, right under the three spotlights (2026-11-19).
 * A glass card with a slowly turning iridescent rim, the guide's topics as glass tiles
 * that open the right part of the guide, and a pearl button to the whole guide.
 * ------------------------------------------------------------------ */
@property --tmf-how-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.tmf-how {
	position: relative; isolation: isolate;
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "intro topics" "go topics";
	align-items: start; gap: 18px 32px; margin: clamp(22px, 3vw, 32px) 0 0; padding: clamp(22px, 3vw, 34px);
	border-radius: 34px; background: var(--glass-dense); background-color: rgba(255, 255, 255, .34);
	-webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
	box-shadow: var(--glass-rim), 0 34px 70px -34px rgba(118, 88, 206, .55), 0 2px 8px -2px rgba(45, 50, 125, .14);
	color: var(--ink);
}
.tmf-how::before {
	content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 2px; pointer-events: none;
	background: conic-gradient(from var(--tmf-how-a), #FF8FCB, #C9B8FF, #7FDFFF, #FFF7DD, #FFB8DC, #FF8FCB);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
	animation: tmfHowSpin 12s linear infinite;
}
@keyframes tmfHowSpin { to { --tmf-how-a: 360deg; } }
body.lv.tmf-night .tmf-how { background-color: rgba(20, 32, 70, .55); box-shadow: var(--glass-rim), 0 0 60px -14px rgba(214, 190, 255, .4), 0 34px 70px -30px rgba(0, 4, 20, .7); }
body.lv.tmf-night .tmf-how::before { opacity: .75; }

.tmf-how__intro { grid-area: intro; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tmf-how__kicker { font-family: var(--font-body); font-size: .76rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); }
body.lv .tmf-how h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.02; letter-spacing: -.03em; color: var(--ink); }
.tmf-how__intro p { margin: 0; font-size: 1.02rem; line-height: 1.5; color: var(--muted); max-width: 42ch; }
.tmf-how__time { display: inline-flex; align-items: center; gap: 6px; width: fit-content; min-height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95); font-size: .8rem; font-weight: 700; color: var(--ink); }
body.lv.tmf-night .tmf-how__time { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.tmf-how__time svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.tmf-how__go { grid-area: go; align-self: end; }
body.lv .tmf-how__go .tmf-btn { min-height: 54px; padding: 0 28px; font-size: 1.02rem; }
.tmf-how__go .tmf-btn span { display: inline-block; margin-left: 4px; transition: transform .25s; }
.tmf-how__go .tmf-btn:hover span { transform: translateX(3px); }

.tmf-how__topics { grid-area: topics; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tmf-how__topics > li { display: flex; min-width: 0; margin: 0; padding: 0; }
.tmf-how__topics > li::before { content: none; }
body.lv .tmf-how__topics a {
	display: flex; flex-direction: column; gap: 8px; width: 100%; min-height: 128px; padding: 14px; border-radius: 22px;
	background: rgba(255, 255, 255, .42); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .92), 0 10px 24px -18px rgba(45, 50, 125, .5);
	color: var(--ink); text-decoration: none; transition: transform .25s, background .25s;
}
body.lv .tmf-how__topics a:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .7); color: var(--ink); }
body.lv .tmf-how__topics a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
body.lv.tmf-night .tmf-how__topics a { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
body.lv.tmf-night .tmf-how__topics a:hover { background: rgba(255, 255, 255, .14); }
.tmf-how__orb {
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none;
	background: var(--orb, radial-gradient(circle at 32% 26%, #FFFFFF 0%, #F1EBFF 46%, #CFEFF6 100%));
	box-shadow: var(--orb-shadow, inset 0 0 0 1px rgba(255, 255, 255, .95), 0 8px 18px -10px rgba(45, 50, 125, .5)); color: #1B2244;
}
body.tmf-night .tmf-how__orb { color: #141B3A; }
.tmf-how__orb svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tmf-how__topics strong { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.12; letter-spacing: -.01em; }
.tmf-how__topics small { display: block; margin-top: 2px; font-size: .8rem; line-height: 1.35; color: var(--muted); }

.tmf-how__form { position: absolute; top: 12px; right: 12px; margin: 0; }
@media (min-width: 1001px) { .tmf-how:has(.tmf-how__form) .tmf-how__topics { margin-top: 30px; } }
body.lv .tmf-how__x { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }
body.lv .tmf-how__x:hover { background: rgba(255, 255, 255, .6); color: #1B2244; }
body.lv.tmf-night .tmf-how__x:hover { background: rgba(255, 255, 255, .16); color: #FFFFFF; }
body.lv .tmf-how__x:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

@media (max-width: 1000px) {
	.tmf-how { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "topics" "go"; }
	.tmf-how__intro p { max-width: none; }
}
@media (max-width: 700px) {
	.tmf-how { padding: 22px 16px 18px; border-radius: 30px; gap: 16px; }
	.tmf-how__intro { padding: 0 4px; }
	.tmf-how__topics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	body.lv .tmf-how__topics a { min-height: 118px; padding: 12px; border-radius: 20px; }
	body.lv .tmf-how__go .tmf-btn { display: flex; justify-content: center; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.tmf-how::before { animation: none; }
	body.lv .tmf-how__topics a, .tmf-how__go .tmf-btn span { transition: none; }
	body.lv .tmf-how__topics a:hover { transform: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.tmf-how { background-color: rgba(255, 255, 255, .8); }
	body.lv.tmf-night .tmf-how { background-color: rgba(20, 32, 70, .9); }
}

/* ------------------------------------------------------------------
 * Collab requests: form
 * ------------------------------------------------------------------ */
.tmf-cr-compose > summary, .tmf-cr-decline > summary { display: inline-flex; align-items: center; width: fit-content; list-style: none; cursor: pointer; }
.tmf-cr-compose > summary::-webkit-details-marker, .tmf-cr-decline > summary::-webkit-details-marker, .tmf-cr-old > summary::-webkit-details-marker { display: none; }
.tmf-cr-compose[open] > summary { margin-bottom: 14px; }
body.lv .tmf-cr-form { display: grid; gap: 14px; min-width: 0; margin: 0; padding: 0; background: none; box-shadow: none; }
.tmf-cr-form .tmf-field, .tmf-invite__details .tmf-field { margin: 0; }
.tmf-cr-form .tmf-hint { margin: 2px 0 0; }
.tmf-cr-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.tmf-cr-field legend { margin-bottom: 8px; padding: 0; font-weight: 700; }
.tmf-cr-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.tmf-cr-opt { position: relative; display: inline-flex; max-width: 100%; margin: 0; cursor: pointer; }
.tmf-cr-opt input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tmf-cr-opt span { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 14px; border-radius: 20px; font-size: .88rem; font-weight: 700; line-height: 1.25; color: var(--ink); background: rgba(255, 255, 255, .34); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95); }
body.lv.tmf-night .tmf-cr-opt span { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34); }
.tmf-cr-opt:hover span { background: rgba(255, 255, 255, .62); }
body.lv.tmf-night .tmf-cr-opt:hover span { background: rgba(255, 255, 255, .16); }
body.lv .tmf-cr-opt input:checked + span { background: #1B2244; color: #FFFFFF; box-shadow: none; }
body.lv.tmf-night .tmf-cr-opt input:checked + span { background: var(--pearl); color: #141B3A; }
body.lv .tmf-cr-opt input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.tmf-cr-amount { margin-top: 10px; }
.tmf-cr-terms:has(input[value="free"]:checked) .tmf-cr-amount, .tmf-cr-terms:not(:has(input:checked)) .tmf-cr-amount { display: none; }
.tmf-invite__details { display: grid; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.tmf-invite:not(:has(.tmf-invite__list input:checked:not(:disabled))) .tmf-invite__details { display: none; }

/* ------------------------------------------------------------------
 * Collab requests: lists
 * ------------------------------------------------------------------ */
.tmf-cr-sum { margin: 8px 0 0; min-width: 0; }
.tmf-cr-sum__facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 6px; font-size: .88rem; color: var(--ink); }
.tmf-cr-sum__facts strong { margin-right: 4px; font-weight: 800; color: var(--muted); }
.tmf-cr-sum__msg { margin: 0; font-size: .93rem; color: var(--ink); overflow-wrap: anywhere; }
body.lv .tmf-collab-list > .tmf-cr-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: start; }
body.lv .tmf-collab-list > .tmf-cr-row > .tmf-cr-row__who { display: flex; flex-direction: row; gap: 10px; align-items: center; min-width: 0; }
.tmf-cr-row__who > div { min-width: 0; }
.tmf-cr-row .tmf-cr-sum, .tmf-cr-row__old { grid-column: 1; margin: 0; }
.tmf-cr-row .tmf-row-actions { grid-column: 2; grid-row: 1 / span 2; flex-wrap: wrap; justify-content: flex-end; }
.tmf-cr-panel .tmf-cr-sum { margin-bottom: 12px; }
.tmf-cr-items { display: grid; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.tmf-cr-item { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .3); }
.tmf-cr-item::before { content: none; }
body.lv.tmf-night .tmf-cr-item { background: rgba(255, 255, 255, .06); }
body.lv .tmf-cr-item > a { display: flex; flex: 1 1 auto; gap: 12px; min-width: 0; color: var(--ink); text-decoration: none; }
body.lv .tmf-cr-item > a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
body.lv .tmf-cr-item > a > :first-child { flex: none; width: 44px; height: 44px; object-fit: cover; }
.tmf-cr-item__text { display: block; min-width: 0; }
.tmf-cr-item__text small { color: var(--muted); }
.tmf-cr-item__facts, .tmf-cr-item__msg { display: block; font-size: .9rem; overflow-wrap: anywhere; }
.tmf-cr-item__facts { font-weight: 700; }
.tmf-cr-item__msg { color: var(--muted); }
.tmf-cr-old { margin-top: 10px; }
.tmf-cr-old > summary { padding: 6px 0; font-weight: 700; cursor: pointer; list-style: none; }

/* ------------------------------------------------------------------
 * Collab requests: thread
 * ------------------------------------------------------------------ */
.tmf-cr { scroll-margin-top: 110px; }
.tmf-cr__head { display: flex; align-items: center; gap: 14px; }
.tmf-cr__head > div { min-width: 0; }
.tmf-cr__head h2 { margin: 0; }
.tmf-cr__head p { margin: 2px 0 0; }
.tmf-cr__head .tmf-badge { margin-left: auto; }
.tmf-cr__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin: 16px 0; }
.tmf-cr__facts > div { min-width: 0; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, .34); }
body.lv.tmf-night .tmf-cr__facts > div { background: rgba(255, 255, 255, .06); }
.tmf-cr__facts dt { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tmf-cr__facts dd { margin: 2px 0 0; color: var(--ink); overflow-wrap: anywhere; }
.tmf-cr__contact { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 16px; padding: 12px 16px; border-radius: 16px; color: var(--ink); background: rgba(47, 107, 74, .14); box-shadow: inset 0 0 0 1px rgba(47, 107, 74, .3); }
body.lv.tmf-night .tmf-cr__contact { background: rgba(143, 211, 168, .14); box-shadow: inset 0 0 0 1px rgba(143, 211, 168, .36); }
.tmf-cr__thread { display: grid; gap: 12px; margin: 16px 0; padding: 0; list-style: none; }
.tmf-cr-msg { display: flex; align-items: flex-start; gap: 10px; max-width: min(620px, 92%); margin: 0; padding: 0; }
.tmf-cr-msg::before, .tmf-cr-sys::before { content: none; }
.tmf-cr-msg.is-mine { flex-direction: row-reverse; margin-left: auto; }
.tmf-cr-msg__body { min-width: 0; padding: 10px 14px; border-radius: 18px; color: var(--ink); background: rgba(255, 255, 255, .5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95); overflow-wrap: anywhere; }
.tmf-cr-msg.is-mine .tmf-cr-msg__body { background: rgba(232, 221, 255, .72); }
body.lv.tmf-night .tmf-cr-msg__body { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
body.lv.tmf-night .tmf-cr-msg.is-mine .tmf-cr-msg__body { background: rgba(214, 222, 255, .16); }
.tmf-cr-msg__body p { margin: 0 0 6px; }
.tmf-cr-msg__body p:last-child { margin-bottom: 0; }
.tmf-cr-msg__who { font-size: .85rem; }
.tmf-cr-sys { margin: 0; padding: 0; font-size: .88rem; text-align: center; color: var(--muted); overflow-wrap: anywhere; }
.tmf-cr__answer { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin: 0 0 16px; }
.tmf-cr-decline[open] { flex: 1 1 100%; }
.tmf-cr-decline .tmf-form { margin-top: 10px; }
.tmf-cr__reply { margin: 0 0 8px; }

/* ------------------------------------------------------------------
 * Event page
 * ------------------------------------------------------------------ */
/* Posters show whole, on a blurred copy of themselves. */
body.lv .tmf-event__head .tmf-event__media { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; background: #1B2244; }
body.lv .tmf-event__head .tmf-event__media::before { content: ""; position: absolute; inset: -24px; z-index: -1; background: var(--poster, none) center / cover no-repeat; filter: blur(22px) saturate(1.15) brightness(.8); }
body.lv .tmf-event__head .tmf-event__media > img { width: 100%; height: 100%; max-height: 100%; object-fit: contain; }

/* Facts: a clean two-column grid, one column on phones. */
body.lv .lv-event-card .tmf-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
body.lv .lv-event-card .tmf-facts > div { min-width: 0; padding: 12px 14px; overflow-wrap: anywhere; }
body.lv .lv-event-card .tmf-facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* RSVP sits flat inside the card, with the card's own padding. */
body.lv .lv-event-card section.tmf-panel.tmf-rsvp.tmf-rsvp, body.lv.tmf-night .lv-event-card section.tmf-panel.tmf-rsvp.tmf-rsvp { padding: 16px 2px 2px; overflow: visible; border-radius: 0; background: none; background-color: transparent; box-shadow: inset 0 1px 0 var(--glass-line); -webkit-backdrop-filter: none; backdrop-filter: none; }
body.lv .lv-event-card .tmf-faces { flex-wrap: wrap; margin-top: 12px; padding: 2px 0 4px 8px; overflow: visible; }
.lv-event-card > * { min-width: 0; }

/* The lower section lines up with the poster and the card above it. */
body.lv .tmf-event__grid { grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr); gap: 20px; align-items: start; }
body.lv .tmf-event__main { display: grid; gap: 20px; min-width: 0; }
body.lv .tmf-event__main > * { max-width: none; width: 100%; margin: 0; }
body.lv .tmf-event__side { display: grid; gap: 16px; min-width: 0; width: 100%; }
body.lv .tmf-event__side > * { width: 100%; max-width: none; margin: 0; }
body.lv .tmf-event__side > .tmf-report { width: auto; justify-self: end; }

/* The header stays readable over posters and cards. */
body.lv.lv-scrolled .site-header__bar, body.lv.cg-lite.lv-scrolled .site-header__bar { background: rgba(246, 244, 255, .94) !important; box-shadow: var(--glass-rim), 0 18px 40px -22px rgba(45, 50, 125, .55); }
body.lv.tmf-night.lv-scrolled .site-header__bar, body.lv.tmf-night.cg-lite.lv-scrolled .site-header__bar { background: rgba(14, 23, 54, .95) !important; }

/* ------------------------------------------------------------------
 * Event cards
 * ------------------------------------------------------------------ */
/* Same dense glass as the other cards, whatever the event's day or night tag. */
body.lv .tmf-event-grid article.tmf-event-card.tmf-event-card { background: var(--glass-dense); color: var(--ink); }
body.lv .tmf-event-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

@media (min-width: 761px) {
	/* A lone event reads as one wide card rather than a gap. */
	body.lv .tmf-event-grid:has(> .tmf-event-card:only-child) { grid-template-columns: minmax(0, 1fr); }
	body.lv .tmf-event-grid > .tmf-event-card:only-child { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
	body.lv .tmf-event-grid > .tmf-event-card:only-child .tmf-event-card__media { height: 100%; min-height: 280px; aspect-ratio: auto; }
	body.lv .tmf-event-grid > .tmf-event-card:only-child .tmf-event-card__media img { width: 100%; height: 100%; object-fit: cover; }
	body.lv .tmf-event-grid > .tmf-event-card:only-child .tmf-event-card__body { align-self: center; padding: 26px; }
}

/* ------------------------------------------------------------------
 * Meeting point card: contrast
 * ------------------------------------------------------------------ */
body.lv:not(.tmf-night) .lv-side-card--sea :is(h2, .lv-where__place) { color: #FFFFFF; }
body.lv:not(.tmf-night) .lv-side-card--sea p { color: #EEF0F6; }
body.lv .lv-side-card--sea .lv-where__actions a { color: #FFFFFF; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
body.lv .lv-side-card--sea .lv-where__actions a:first-child, body.lv .lv-side-card--sea .lv-where__actions a:hover { color: #1B2244; background: var(--pearl); box-shadow: inset 0 0 0 1px #FFFFFF; }
body.lv.tmf-night .lv-side-card--sea .lv-where__actions a { color: #141B3A; background: rgba(255, 255, 255, .5); box-shadow: inset 0 0 0 1px rgba(20, 27, 58, .4); }
body.lv.tmf-night .lv-side-card--sea .lv-where__actions a:first-child { background: #1B2244; color: #FFFFFF; box-shadow: none; }
body.lv.tmf-night .lv-side-card--sea .lv-where__actions a:hover { background: #FFFFFF; color: #141B3A; box-shadow: inset 0 0 0 1px rgba(20, 27, 58, .4); }
body.lv .lv-side-card--sea .lv-where__actions a:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }

/* ------------------------------------------------------------------
 * Contrast (WCAG AA) across the site
 * ------------------------------------------------------------------ */
/* Night muted text, one shade lighter so it clears 4.5:1 on the brightest glass. */
body.lv.tmf-night { --muted: #B9C3DD; }
/* Buttons keep dark text on their light hover, also where the night link colour would reach them. */
body.lv.tmf-night a:is(.tmf-btn, .lv-sc__link, .lv-compose__go):is(:hover, :focus, :active) { color: var(--pearl-ink); }
body.lv.tmf-night :is(.tmf-btn--ghost, .site-nav__login):hover, body.lv.tmf-night a.tmf-btn--ghost:is(:hover, :focus-visible, :active) { color: #141B3A; background: linear-gradient(110deg, rgba(232, 221, 255, .96), rgba(255, 255, 255, .98) 35%, rgba(255, 222, 240, .96) 65%, rgba(205, 238, 255, .96)); }
body.lv.tmf-night .tmf-wx__surf:hover, body.lv.tmf-night .tmf-wx__surf:hover :is(strong, span, small, b) { color: #1B2244; }
body.lv.tmf-night :is(.tmf-artist__links, .lv-ocean__spots) a:hover, body.lv.tmf-night.cg-page-forums .tmf-subforums a:hover, body.lv.tmf-night.cg-page-info .tmf-souk__go:hover, body.lv.tmf-night.cg-page-info .tmf-souk__go:hover span { color: #1B2244; }
body.lv.tmf-night.cg-page-forums .tmf-subforums a:hover, body.lv.tmf-night.cg-page-info .tmf-souk__go:hover { background: var(--pearl); }
body.lv.tmf-night.cg-page-events .tmf-chips a[aria-current] { color: #1B2244; }
body.lv.tmf-night .tmf-now-art__count { text-shadow: 0 1px 3px rgba(10, 19, 48, .7); }
body.lv:not(.cg-page-forums) .tmf-subforums a:hover { color: var(--ink); }
body.lv .tmf-btn.is-disabled, body.lv .tmf-btn:disabled { opacity: .68; }

body.lv .lv-ocean__spots a:hover span { color: #1B2244; }
body.lv .tmf-report summary:hover { color: var(--accent-ink); }
body.lv .lv-invite__types button span { opacity: 1; }

/* Skip link. */
body.lv .skip-link, body.lv .skip-link:is(:hover, :focus, :active), body.lv.tmf-night .skip-link:is(:hover, :focus, :active) { background: #1B2244; color: #FFFFFF; }

/* Initials and the "+" tile: dark orb at night, so the light text reads. */
body.lv.tmf-night :is(.tmf-av--i, .tmf-creation__plus) { background: radial-gradient(circle at 30% 25%, #4A5C98 0%, #2C3B72 60%, #1F2C5C 100%); color: #EEF0F6; }

/* Small coral text darkens to the accent ink by day; the night coral already passes. */
body.lv:not(.tmf-night) :is(.tmf-artist__disc, .tmf-artist-card em, .tmf-modbar__label, .tmf-badge--mod, .tmf-info-next, .tmf-event-card__going) { color: var(--accent-ink); }
body.lv:not(.tmf-night) .tmf-badge--mod { border-color: var(--accent-ink); }
body.lv:not(.tmf-night) .tmf-modbar__label { color: #7A2A14; }

/* Info page: the next prayer stays readable (it kept white text after its fill was removed). */
body.cg-page-info .tmf-prayers li.is-next { margin-inline: -10px; padding-inline: 10px; border-radius: 12px; background: rgba(255, 255, 255, .42); }
body.lv.tmf-night.cg-page-info .tmf-prayers li.is-next { background: rgba(255, 255, 255, .12); }
body.cg-page-info .tmf-prayers li.is-next, body.cg-page-info .tmf-prayers li.is-next :is(span, b) { color: var(--ink); opacity: 1; font-weight: 700; }
body.cg-page-info .tmf-prayers li.is-sun { opacity: 1; }
body.cg-page-info .tmf-prayers li.is-sun :is(span, b) { color: var(--muted); }
body.lv .tmf-tides li.is-past { opacity: 1; color: var(--muted); }
body.lv .tmf-now-art__quote { opacity: 1; }

/* Map: filtered-out rows and controls. */
body.lv .tmf-map-group li.is-hidden a { opacity: 1; color: var(--muted); }
body.lv .tmf-map-group.is-off { opacity: .8; }
body.lv :is(.tmf-map, .tmf-pin-map) .leaflet-control-attribution, body.lv :is(.tmf-map, .tmf-pin-map) .leaflet-control-attribution a, body.lv :is(.tmf-map, .tmf-pin-map) .leaflet-bar a, body.lv.tmf-night :is(.tmf-map, .tmf-pin-map) .leaflet-bar a:hover, body.lv.tmf-night :is(.tmf-map, .tmf-pin-map) .leaflet-control-attribution a:hover { color: #1B2244; }

/* ------------------------------------------------------------------
 * Phones
 * ------------------------------------------------------------------ */
@media (max-width: 980px) {
	body.lv .tmf-event__grid { grid-template-columns: minmax(0, 1fr); }
	body.lv .tmf-event__head .tmf-event__media { aspect-ratio: auto; min-height: 0; }
	body.lv .tmf-event__head .tmf-event__media > img { height: auto; }
	.tmf-dash-notes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
	/* Long artist names and the moderator buttons no longer collide. */
	body.lv .tmf-artist__id { flex-wrap: wrap; }
	body.lv .tmf-artist__id > div:not(.tmf-artist__actions) { flex: 1 1 100%; min-width: 0; }
	body.lv .tmf-artist__id h1 { overflow-wrap: anywhere; }
	body.lv .tmf-artist__actions { flex: 1 1 100%; flex-wrap: wrap; }
	body.lv .lv-event-card { padding: 18px; }
	body.lv .lv-event-card .tmf-facts { grid-template-columns: minmax(0, 1fr); }
	.tmf-ec-admin__row { grid-template-columns: minmax(0, 1fr); }
	.tmf-ec-admin__list > li { grid-template-columns: auto auto; justify-content: space-between; }
	.tmf-ec-admin__list > li > form:first-child { grid-column: 1 / -1; }
	body.lv .tmf-collab-list > .tmf-cr-row { grid-template-columns: minmax(0, 1fr); }
	.tmf-cr-row .tmf-row-actions { grid-column: 1; grid-row: auto; justify-content: flex-start; }
	.tmf-cr-msg { max-width: 100%; }
	.tmf-cr-item { flex-wrap: wrap; }
	.tmf-cr-item > a { flex-basis: 100%; }
}

/* ------------------------------------------------------------------
 * Mobile fit fixes (Nov 2026)
 * ------------------------------------------------------------------ */

/* Form fields never push wider than their column (date/time/file inputs have wide built-in sizes). */
.tmf-field { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.tmf-field :is(input, select, textarea) { min-width: 0; max-width: 100%; }
.tmf-field input[type="file"] { width: 100%; }
.tmf-grid4 > * { min-width: 0; }
.tmf-grid4 :is(input[type="date"], input[type="time"], input[type="datetime-local"]) { width: 100%; }
@media (max-width: 720px) {
	.tmf-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
	.tmf-grid4 { gap: 10px; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
	.tmf-grid4 :is(input[type="date"], input[type="time"]) { padding-inline: 8px; font-size: .95rem; }
}
@media (max-width: 330px) {
	.tmf-grid4 { grid-template-columns: minmax(0, 1fr); }
}

/* Weather: on phones the three days become compact rows, so long names (Aujourd'hui, Wednesday) always fit. */
@media (max-width: 480px) {
	body.lv .tmf-wx__days { grid-template-columns: minmax(0, 1fr); gap: 6px; }
	body.lv .tmf-wx__days li {
		grid-template-columns: minmax(0, 1fr) auto minmax(64px, auto);
		grid-template-areas: "day ico range";
		align-items: center;
		justify-items: stretch;
		gap: 0 12px;
		padding: 8px 14px;
	}
	body.lv .tmf-wx__days .tmf-wx-ico { width: 26px; height: 26px; }
	body.lv .tmf-wx__range { justify-self: end; text-align: right; }
}

/* Moderation bar on topics: the move-to-forum control wraps instead of running off screen. */
.tmf-modbar { max-width: 100%; }
.tmf-modbar .tmf-inline-form { flex-wrap: wrap; max-width: 100%; }
.tmf-modbar .tmf-inline-form select { min-width: 0; flex: 1 1 150px; max-width: 100%; }

/* ------------------------------------------------------------------
 * Social action (2026-11-19): the homepage banner right under the spotlights
 * (organisations' projects and community events taking turns), the project card
 * on organisation pages and its fields in the dashboard.
 * ------------------------------------------------------------------ */
.tmf-sa { position: relative; z-index: 1; margin: clamp(22px, 3vw, 32px) 0 0; }
.tmf-sa__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 14px; }
body.lv .tmf-sa__head h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 2.6vw, 2rem); line-height: 1.05; letter-spacing: -.03em; color: var(--ink); }
.tmf-sa__sub { margin: 4px 0 0; font-size: 1rem; line-height: 1.4; color: var(--muted); }
body.lv .tmf-sa__head .tmf-link { color: var(--ink); }

.tmf-sa__stage { position: relative; isolation: isolate; padding: clamp(12px, 1.6vw, 16px); border-radius: 34px; background: var(--glass-dense); background-color: rgba(255, 255, 255, .34); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-rim), var(--glass-shadow); color: var(--ink); }
body.lv.tmf-night .tmf-sa__stage { background-color: rgba(20, 32, 70, .55); box-shadow: var(--glass-rim), var(--glass-shadow); }
body.lv.cg-lite .tmf-sa__stage { background-color: rgba(255, 255, 255, .5); }
body.lv.tmf-night.cg-lite .tmf-sa__stage { background-color: rgba(20, 32, 70, .7); }

/* All slides share one grid cell, so the banner keeps the height of the tallest and never jumps. */
.tmf-sa__track { display: grid; }
.tmf-sa__slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; align-content: center; gap: clamp(16px, 2.4vw, 30px); min-width: 0; opacity: 0; visibility: hidden; transform: translateX(16px); transition: opacity .6s ease, transform .6s ease, visibility 0s linear .6s; }
.tmf-sa__slide.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .6s ease, transform .6s ease, visibility 0s; }

body.lv .tmf-sa__media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 18px 36px -24px rgba(45, 50, 125, .55); }
body.lv.tmf-night .tmf-sa__media { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 18px 36px -22px rgba(0, 4, 20, .7); }
.tmf-sa__media > img, .tmf-sa__media > .tmf-cover-ph { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.tmf-sa__orb { position: absolute; z-index: 2; left: 50%; top: 62%; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--orb); box-shadow: var(--orb-shadow, inset 0 0 0 1px rgba(255, 255, 255, .95), 0 10px 22px -10px rgba(45, 50, 125, .5)); color: #1B2244; }
body.lv.tmf-night .tmf-sa__orb { color: #F2EEDF; }
.tmf-sa__orb .tmf-sa-ico { width: 30px; height: 30px; }

.tmf-sa__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; padding: 6px clamp(4px, 1vw, 14px) 6px 0; }
.tmf-sa-ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tmf-sa__type { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; font-family: var(--font-body); font-size: .74rem; font-weight: 800; letter-spacing: .15em; line-height: 1.3; text-transform: uppercase; color: var(--muted); }
.tmf-sa__type > span { min-width: 0; overflow-wrap: anywhere; }
.tmf-sa__type .tmf-sa-ico { width: 15px; height: 15px; color: var(--accent); }
body.lv .tmf-sa__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.08; letter-spacing: -.02em; overflow-wrap: anywhere; }
body.lv .tmf-sa__title a { color: var(--ink); text-decoration: none; }
body.lv .tmf-sa__title a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
body.lv.tmf-night .tmf-sa__title a, body.lv.tmf-night .tmf-sa__title a:hover { color: var(--ink); }
.tmf-sa__meta { margin: -2px 0 0; font-size: .94rem; font-weight: 700; line-height: 1.4; color: var(--ink); }
.tmf-sa__causes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tmf-sa__causes li { margin: 0; padding: 3px 11px; border-radius: 999px; font-family: var(--font-body); font-size: .78rem; font-weight: 700; line-height: 1.35; color: var(--ink); background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95); }
.tmf-sa__causes li::before { content: none; }
body.lv.tmf-night .tmf-sa__causes li { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32); }
.tmf-sa__text { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tmf-sa__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
body.lv .tmf-sa__actions .tmf-btn { min-height: 48px; padding: 0 22px; }
.tmf-sa__actions .tmf-btn span[aria-hidden] { display: inline-block; margin-left: 4px; transition: transform .25s; }
.tmf-sa__actions .tmf-btn:hover span[aria-hidden] { transform: translateX(3px); }

/* Arrows, dots and pause. */
.tmf-sa__nav { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 2px; }
.tmf-sa__nav[hidden] { display: none; }
body.lv .tmf-sa__ctrl { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95), 0 8px 18px -12px rgba(45, 50, 125, .5); color: #1B2244; cursor: pointer; transition: background .25s ease; }
body.lv .tmf-sa__ctrl:hover { background: var(--pearl); color: #1B2244; }
body.lv.tmf-night .tmf-sa__ctrl { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); color: var(--ink); }
body.lv.tmf-night .tmf-sa__ctrl:hover { background: var(--pearl); color: #141B3A; }
body.lv .tmf-sa__ctrl:focus-visible, body.lv .tmf-sa__dots button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.tmf-sa__ctrl .tmf-sa-ico { width: 18px; height: 18px; }
.tmf-sa__pause { margin-left: 6px; }
.tmf-sa__pause .tmf-sa-ico--play, .tmf-sa__pause.is-paused .tmf-sa-ico--pause { display: none; }
.tmf-sa__pause.is-paused .tmf-sa-ico--play { display: block; }
.tmf-sa__dots { display: flex; align-items: center; gap: 0; }
body.lv .tmf-sa__dots button { position: relative; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 999px; background: transparent; cursor: pointer; transition: width .3s ease; }
body.lv .tmf-sa__dots button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-radius: 999px; transform: translate(-50%, -50%); background: rgba(27, 34, 68, .28); transition: width .3s ease, background .3s ease; }
body.lv .tmf-sa__dots button[aria-current="true"] { width: 36px; }
body.lv .tmf-sa__dots button[aria-current="true"]::before { width: 26px; background: #1B2244; }
body.lv.tmf-night .tmf-sa__dots button::before { background: rgba(238, 240, 246, .35); }
body.lv.tmf-night .tmf-sa__dots button[aria-current="true"]::before { background: #EEF0F6; }

/* Organisation page: the project, under the description. */
body.lv .tmf-sa-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; gap: 18px; margin: 22px 0; padding: 14px; border-radius: 28px; background: var(--glass-dense); background-color: rgba(255, 255, 255, .42); box-shadow: var(--glass-rim), var(--glass-shadow); color: var(--ink); scroll-margin-top: 110px; }
body.lv.tmf-night .tmf-sa-card { background-color: rgba(20, 32, 70, .6); box-shadow: var(--glass-rim), var(--glass-shadow); color: var(--ink); }
body.lv .tmf-sa-card--text { grid-template-columns: minmax(0, 1fr); padding: 20px 22px; }
.tmf-sa-card__media { margin: 0; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
.tmf-sa-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tmf-sa-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding: 4px 6px 4px 0; }
.tmf-sa-card__kicker { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-body); font-size: .74rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.tmf-sa-card__kicker .tmf-sa-ico { width: 15px; height: 15px; color: var(--accent); }
body.lv .tmf-sa-card h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.tmf-sa-card__text p { margin: 0 0 .6em; line-height: 1.55; color: var(--ink); }
.tmf-sa-card__text p:last-child { margin-bottom: 0; }
.tmf-sa-card__go { margin: 4px 0 0; }

/* Dashboard fields. */
body.lv .tmf-sa-edit { display: grid; gap: 14px; margin: 0 0 8px; padding: 18px; border-radius: 22px; background: rgba(255, 255, 255, .3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9); }
body.lv.tmf-night .tmf-sa-edit { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.tmf-sa-edit > .tmf-hint { margin: 0; }
.tmf-sa-status { margin: 0; padding: 10px 14px; border-radius: 16px; font-size: .92rem; font-weight: 700; line-height: 1.4; }
.tmf-sa-status a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
body.lv .tmf-sa-status--ok { background: rgba(47, 107, 74, .12); color: #2F6B4A; box-shadow: inset 0 0 0 1px rgba(47, 107, 74, .3); }
body.lv.tmf-night .tmf-sa-status--ok { background: rgba(143, 211, 168, .12); color: #8FD3A8; box-shadow: inset 0 0 0 1px rgba(143, 211, 168, .3); }
body.lv .tmf-sa-status--todo { background: #FFE2AA; color: #6E4708; box-shadow: none; }
body.lv.tmf-night .tmf-sa-status--todo { background: rgba(242, 213, 138, .14); color: #F2D58A; box-shadow: inset 0 0 0 1px rgba(242, 213, 138, .3); }
body.lv .tmf-sa-status--off { background: rgba(255, 255, 255, .45); color: var(--muted); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9); }
body.lv.tmf-night .tmf-sa-status--off { background: rgba(255, 255, 255, .08); color: var(--muted); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.tmf-sa-edit__prev { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 2px 0 8px; }
.tmf-sa-edit__prev img { display: block; width: 180px; max-width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 10px 22px -16px rgba(45, 50, 125, .5); }

@media (max-width: 760px) {
	.tmf-sa__stage { padding: 10px; border-radius: 30px; }
	.tmf-sa__slide { grid-template-columns: minmax(0, 1fr); align-items: start; align-content: start; gap: 12px; }
	body.lv .tmf-sa__media { aspect-ratio: 16 / 10; border-radius: 22px; }
	.tmf-sa__body { padding: 2px 6px 4px; gap: 8px; }
	.tmf-sa__text { -webkit-line-clamp: 3; }
	.tmf-sa__actions { width: 100%; }
	body.lv .tmf-sa__actions .tmf-btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 560px) {
	body.lv .tmf-sa-card { grid-template-columns: minmax(0, 1fr); }
	.tmf-sa-card__media { aspect-ratio: 16 / 10; }
	.tmf-sa-card__body { padding: 0 4px 4px; }
}
@media (prefers-reduced-motion: reduce) {
	.tmf-sa__slide, .tmf-sa__slide.is-on { transform: none; transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
	body.lv .tmf-sa__stage, body.lv .tmf-sa-card { background-color: rgba(255, 255, 255, .88); -webkit-backdrop-filter: none; backdrop-filter: none; }
	body.lv.tmf-night .tmf-sa__stage, body.lv.tmf-night .tmf-sa-card { background-color: rgba(20, 32, 70, .94); }
}

/* ==================================================================
 * Legacy sweep (2026-11-19)
 *
 * forum.css, community.css, artists.css, map.css (plugin) and style.css,
 * living.css (theme) still load under the Caustic layer. They carry the old
 * Sable / flat look: sand, terracotta, ocean teal, flat drawn suns and waves.
 * Anything they style that this layer does not restyle shows through, like the
 * flat sunset on events without a photo did. So, for new work:
 *   - style every new element here or in caustic.css, never only in the old files;
 *   - a legacy "body.tmf-night .x" or "body.lv.tmf-night .x" out-ranks "body.lv .x",
 *     so every override needs its own night line;
 *   - run the design-guard check (Novamira skill "tamraght-design-guard").
 * ================================================================== */

/* Old palette variables from the plugin's stylesheets, mapped onto ours. */
body.lv { --ag-gig-bg: rgba(255, 255, 255, .55); --ag-gig-ink: var(--ink); --ag-guide: var(--success); --cm-gold-bg: #FFE2AA; --cm-gold-ink: #6E4708; --cm-fresh: var(--success); --cm-team-bg: rgba(255, 255, 255, .45); --cm-team-line: rgba(255, 255, 255, .95); --cm-warn-bg: #FFE2AA; --cm-warn-ink: #6E4708; }
body.lv.tmf-night { --ag-gig-bg: rgba(255, 255, 255, .1); --cm-gold-bg: rgba(242, 213, 138, .16); --cm-gold-ink: #F2D58A; --cm-team-bg: rgba(255, 255, 255, .08); --cm-team-line: rgba(255, 255, 255, .3); --cm-warn-bg: rgba(242, 213, 138, .14); --cm-warn-ink: #F2D58A; }
body.lv ::selection { background: rgba(204, 192, 255, .65); color: #1B2244; }
body.lv.tmf-night ::selection { background: rgba(184, 170, 255, .4); color: #FFFFFF; }

/* Event cover when there is no photo: the water with the sun seen through it,
   and the moon and stars at night (it follows the site's day or night). */
body.lv .tmf-cover-ph { position: relative; display: block; width: 100%; height: 100%; min-height: 120px; overflow: hidden; isolation: isolate; background: radial-gradient(120% 70% at 50% -8%, rgba(255, 255, 255, .62), rgba(255, 255, 255, 0) 62%), linear-gradient(180deg, #C9C0EE 0%, #AFCBE9 58%, #D6ECF0 100%); }
body.lv .tmf-cover-ph::before { content: ""; position: absolute; z-index: 1; left: 50%; top: 32%; width: min(48%, 230px); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle closest-side, #FFFEF5 0%, #FFF7DD 32%, rgba(255, 247, 221, .55) 48%, rgba(255, 240, 228, 0) 64%, rgba(255, 143, 203, .14) 72%, rgba(127, 223, 255, .16) 79%, rgba(127, 223, 255, 0) 88%); animation: tmf-cover-sun 9s ease-in-out infinite alternate; }
body.lv .tmf-cover-ph::after { content: ""; position: absolute; z-index: 0; inset: 0; transform-origin: 50% 32%; background: conic-gradient(from 140deg at 50% 32%, rgba(255, 255, 255, 0) 0deg, rgba(255, 255, 255, .28) 5deg, rgba(255, 255, 255, 0) 11deg 17deg, rgba(255, 255, 255, .2) 22deg, rgba(255, 255, 255, 0) 28deg 34deg, rgba(255, 255, 255, .26) 40deg, rgba(255, 255, 255, 0) 46deg 52deg, rgba(255, 255, 255, .18) 57deg, rgba(255, 255, 255, 0) 63deg 69deg, rgba(255, 255, 255, .24) 75deg, rgba(255, 255, 255, 0) 81deg 360deg); -webkit-mask-image: radial-gradient(85% 95% at 50% 32%, #000 0%, rgba(0, 0, 0, .55) 42%, transparent 80%); mask-image: radial-gradient(85% 95% at 50% 32%, #000 0%, rgba(0, 0, 0, .55) 42%, transparent 80%); animation: tmf-cover-rays 12s ease-in-out infinite alternate; }
body.lv.tmf-night .tmf-cover-ph { background: radial-gradient(1.6px 1.6px at 16% 22%, rgba(242, 238, 223, .95) 50%, transparent 100%), radial-gradient(1.2px 1.2px at 36% 64%, rgba(242, 238, 223, .7) 50%, transparent 100%), radial-gradient(1.8px 1.8px at 72% 18%, rgba(242, 238, 223, .9) 50%, transparent 100%), radial-gradient(1.3px 1.3px at 86% 48%, rgba(242, 238, 223, .75) 50%, transparent 100%), radial-gradient(1px 1px at 58% 38%, rgba(242, 238, 223, .6) 50%, transparent 100%), radial-gradient(1.4px 1.4px at 9% 72%, rgba(242, 238, 223, .6) 50%, transparent 100%), radial-gradient(1.2px 1.2px at 93% 80%, rgba(242, 238, 223, .55) 50%, transparent 100%), radial-gradient(1px 1px at 48% 84%, rgba(242, 238, 223, .45) 50%, transparent 100%), radial-gradient(120% 70% at 50% -8%, rgba(150, 175, 255, .2), rgba(150, 175, 255, 0) 62%), linear-gradient(180deg, #0A1330 0%, #15305C 62%, #0A1733 100%); }
body.lv.tmf-night .tmf-cover-ph::before { left: 28%; top: 34%; width: min(17%, 76px); background: #F2EEDF; -webkit-mask-image: radial-gradient(circle at 74% 34%, transparent 0 47%, #000 48%); mask-image: radial-gradient(circle at 74% 34%, transparent 0 47%, #000 48%); animation: none; }
body.lv.tmf-night .tmf-cover-ph::after { inset: auto; left: 28%; top: 34%; width: min(44%, 190px); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle closest-side, rgba(242, 238, 223, .3), rgba(242, 238, 223, .08) 55%, rgba(242, 238, 223, 0) 75%); -webkit-mask-image: none; mask-image: none; animation: none; }
@keyframes tmf-cover-sun { from { transform: translate(-50%, -50%) scale(1); } to { transform: translate(-50%, -52%) scale(1.04); } }
@keyframes tmf-cover-rays { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
body.lv.cg-lite .tmf-cover-ph::before, body.lv.cg-lite .tmf-cover-ph::after { animation: none; }
@media (prefers-reduced-motion: reduce) { body.lv .tmf-cover-ph::before, body.lv .tmf-cover-ph::after { animation: none; } }

/* Date tiles and the going count at night, and night-tagged events in the mini lists. */
body.lv.tmf-night .tmf-date, body.lv .tmf-mini-event--night .tmf-date { background: var(--ocean); color: var(--ocean-ink); box-shadow: none; }
body.lv.tmf-night .tmf-event-card__going { color: var(--accent-ink); }

/* Header day / night switch icons. */
body.lv .mode-toggle__sun { color: #1B2244; }
body.lv .mode-toggle__moon { color: rgba(27, 34, 68, .45); }
body.lv.tmf-night .mode-toggle__sun { color: rgba(238, 240, 246, .55); }
body.lv.tmf-night .mode-toggle__moon { color: #141B3A; }

/* Pages and cards with no photo or logo: the page colour in the water, initial in a pearl orb. */
body.lv .tmf-media-ph { background: radial-gradient(70% 90% at 70% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%), linear-gradient(160deg, color-mix(in srgb, var(--artist, #AFCBE9) 40%, #E8DDFF), color-mix(in srgb, var(--artist, #AFCBE9) 25%, #BFE6F2)); }
body.lv.tmf-night .tmf-media-ph { background: radial-gradient(70% 90% at 70% 0%, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 70%), linear-gradient(160deg, color-mix(in srgb, var(--artist-night, var(--artist, #6E86C8)) 30%, #15305C), color-mix(in srgb, var(--artist-night, var(--artist, #6E86C8)) 16%, #0A1733)); }
body.lv .tmf-media-ph span, body.lv .tmf-artist-card__media .tmf-media-ph span { display: grid; place-items: center; width: clamp(64px, 40%, 112px); aspect-ratio: 1; border-radius: 50%; background: var(--orb); box-shadow: var(--orb-shadow); color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1; }

/* Small text that kept the old colours. */
body.lv-home:not(.tmf-night) .tmf-now-card { --muted: #464C70; }
body.lv .tmf-ag-cardskills, body.lv.tmf-night .tmf-ag-cardskills { color: var(--muted); }
body.lv .lv-compose__chips a, body.lv .lv-compose__row input { color: var(--ink); }
body.lv .lv-compose__row input::placeholder { color: var(--muted); }
body.lv.tmf-night .lv-compose__chips a:hover { color: #141B3A; }
body.lv .tmf-artist-strip { scrollbar-color: rgba(27, 34, 68, .25) transparent; }
body.lv.tmf-night .tmf-artist-strip { scrollbar-color: rgba(255, 255, 255, .25) transparent; }

/* Post-type labels (Question, Sale, Lost, Ride...) and status pills: glass, with the status colours only where they mean something. */
body.lv .tmf-pt, body.lv .tmf-answer-badge { background: rgba(255, 255, 255, .55); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95); }
body.lv.tmf-night .tmf-pt, body.lv.tmf-night .tmf-answer-badge { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
body.lv :is(.tmf-pt--ok, .tmf-answer-badge) { color: #2F6B4A; }
body.lv :is(.tmf-pt--warn, .tmf-pt--alert) { background: #FFE2AA; color: #6E4708; box-shadow: none; }
body.lv .tmf-pt--lost { color: var(--accent-ink); }
body.lv .tmf-pt--offer { background: var(--pearl); color: #1B2244; }
body.lv .tmf-pt--done { background: rgba(255, 255, 255, .3); color: var(--muted); }
body.lv .tmf-pt--on { background: rgba(27, 34, 68, .9); color: #FFFFFF; box-shadow: none; }
body.lv.tmf-night :is(.tmf-pt--ok, .tmf-answer-badge) { color: #8FD3A8; }
body.lv.tmf-night :is(.tmf-pt--warn, .tmf-pt--alert) { background: rgba(242, 213, 138, .16); color: #F2D58A; box-shadow: inset 0 0 0 1px rgba(242, 213, 138, .35); }
body.lv.tmf-night .tmf-pt--offer { background: var(--pearl); color: #141B3A; }
body.lv.tmf-night .tmf-pt--on { background: rgba(255, 255, 255, .9); color: #141B3A; }
body.lv .tmf-badge--ok, body.lv .tmf-ag-state--filled { background: rgba(255, 255, 255, .55); color: #2F6B4A; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95); }
body.lv.tmf-night .tmf-badge--ok, body.lv.tmf-night .tmf-ag-state--filled { background: rgba(143, 211, 168, .14); color: #8FD3A8; box-shadow: inset 0 0 0 1px rgba(143, 211, 168, .35); }
body.lv .tmf-badge--warn, body.lv .tmf-todo { background: #FFE2AA; color: #6E4708; box-shadow: none; }
body.lv.tmf-night .tmf-badge--warn, body.lv.tmf-night .tmf-todo { background: rgba(242, 213, 138, .16); color: #F2D58A; box-shadow: inset 0 0 0 1px rgba(242, 213, 138, .35); }
body.lv .tmf-cm-chip--strike { background: rgba(166, 63, 36, .12); color: var(--accent-ink); }
body.lv.tmf-night .tmf-cm-chip--strike { background: rgba(244, 154, 116, .16); color: var(--accent-ink); }
body.lv.tmf-night .lv-stamp--ok { color: #1E5A3B; border-color: transparent; }

/* Type details on topics (price, where, when) and the type fields in the form. */
body.lv .tmf-pt-card { border: 0; border-radius: 16px; background: var(--today-tile); box-shadow: inset 3px 0 0 var(--ink), var(--glass-rim); }
body.lv :is(.tmf-pt-card--offer, .tmf-pt-card--lost) { box-shadow: inset 3px 0 0 var(--accent), var(--glass-rim); }
body.lv .tmf-pt-card--sale { box-shadow: inset 3px 0 0 #E8A33A, var(--glass-rim); }
body.lv .tmf-pt-fields { border-radius: 16px; background: rgba(255, 255, 255, .3); border-color: var(--glass-line); }
body.lv.tmf-night :is(.tmf-pt-fields, .tmf-poll-build, .tmf-pt-card, .tmf-meetup, .tmf-offer__plus) { background: rgba(255, 255, 255, .06); }
body.lv .tmf-quote { border-left: 0; border-radius: 16px; background: rgba(255, 255, 255, .3); box-shadow: inset 3px 0 0 rgba(27, 34, 68, .35); }
body.lv.tmf-night .tmf-quote { background: rgba(255, 255, 255, .06); box-shadow: inset 3px 0 0 rgba(255, 255, 255, .35); }

/* Notices, review and status boxes: glass, amber for "waiting", green for "done", coral line for "refused". */
body.lv :is(.tmf-alert-notice, .tmf-review-banner, .tmf-review-intro, .tmf-status--pending, .tmf-access--review) { background: rgba(255, 226, 170, .72); border-color: rgba(255, 255, 255, .9); color: #6E4708; box-shadow: inset 4px 0 0 #E8A33A, var(--glass-rim); }
body.lv.tmf-night :is(.tmf-alert-notice, .tmf-review-banner, .tmf-review-intro, .tmf-status--pending, .tmf-access--review) { background: rgba(242, 213, 138, .12); border-color: rgba(242, 213, 138, .3); color: #F2D58A; }
body.lv .tmf-alert-guide { background: rgba(255, 255, 255, .3); border-color: rgba(232, 163, 58, .5); }
body.lv.tmf-night .tmf-alert-guide { background: rgba(255, 255, 255, .05); border-color: rgba(242, 213, 138, .35); }
body.lv .tmf-status--ok { background: rgba(255, 255, 255, .45); border-color: rgba(255, 255, 255, .9); color: #2F6B4A; box-shadow: inset 4px 0 0 #2F6B4A, var(--glass-rim); }
body.lv.tmf-night .tmf-status--ok { background: rgba(143, 211, 168, .1); border-color: rgba(143, 211, 168, .3); color: #8FD3A8; box-shadow: inset 4px 0 0 #8FD3A8, var(--glass-rim); }
body.lv .tmf-status--rejected { background: rgba(255, 255, 255, .45); border-color: rgba(255, 255, 255, .9); color: var(--accent-ink); box-shadow: inset 4px 0 0 var(--accent), var(--glass-rim); }
body.lv.tmf-night .tmf-status--rejected { background: rgba(244, 154, 116, .1); border-color: rgba(244, 154, 116, .3); }
body.lv.tmf-night .tmf-alert-strip .tmf-ico { color: #F2D58A; }
body.lv.tmf-night .tmf-alert-strip--water .tmf-ico { color: #A6DCEA; }
body.lv.tmf-night .tmf-alert-strip--safety .tmf-ico { color: #F49A74; }
body.lv.tmf-night .tmf-alert-strip, body.lv.tmf-night .tmf-alert-strip:hover { border-color: transparent; }

/* Moderator bar on events and topics. */
body.lv .tmf-modbar { border-radius: 16px; background: rgba(255, 255, 255, .4); border: 1px dashed rgba(166, 63, 36, .4); }
body.lv.tmf-night .tmf-modbar { background: rgba(255, 255, 255, .06); border-color: rgba(244, 154, 116, .45); }
body.lv .tmf-modbar--review { background: rgba(255, 226, 170, .7); border-color: rgba(110, 71, 8, .35); }
body.lv.tmf-night .tmf-modbar--review { background: rgba(242, 213, 138, .14); border-color: rgba(242, 213, 138, .4); }
body.lv .tmf-modbar--review .tmf-modbar__label { color: #6E4708; }
body.lv.tmf-night .tmf-modbar--review .tmf-modbar__label { color: #F2D58A; }
body.lv .tmf-modbar select { border-color: var(--line); background: var(--field); color: var(--ink); }

/* Danger buttons (delete, remove): a clear glass pill with a coral line, never a coral fill. */
body.lv .tmf-btn--danger { background: rgba(255, 255, 255, .4); color: var(--accent-ink); border-color: transparent; box-shadow: inset 0 0 0 1.5px rgba(166, 63, 36, .55); }
body.lv .tmf-btn--danger::before, body.lv .tmf-btn--danger::after { display: none; }
body.lv .tmf-btn--danger:hover { background: rgba(166, 63, 36, .12); color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px rgba(166, 63, 36, .75); }
body.lv.tmf-night .tmf-btn--danger { background: rgba(244, 154, 116, .08); box-shadow: inset 0 0 0 1.5px rgba(244, 154, 116, .55); }
body.lv.tmf-night .tmf-btn--danger:hover { background: rgba(244, 154, 116, .18); color: var(--accent-ink); }

/* Photo lightbox. */
body.lv .tmf-lightbox { background: rgba(10, 19, 48, .92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body.lv .tmf-lightbox img { border-radius: 20px; }
body.lv .tmf-lightbox button { background: var(--pearl); color: #1B2244; box-shadow: var(--pearl-shadow); }
body.lv .tmf-lightbox p { color: #EEF0F6; }

/* Map: white pin rims and icons (the category colours stay). */
body.lv :is(.tmf-map-filter__dot, .tmf-pin__in) { color: #FFFFFF; }
body.lv .tmf-pin:not(.is-hidden)::before { border-color: #FFFFFF; }
body.lv .tmf-pin.is-hidden::before { background: #FFFFFF; }
body.lv .tmf-pin.is-hidden .tmf-pin__in { color: var(--c); }
body.lv .tmf-pin.is-active::before { box-shadow: 0 0 0 3px #1B2244, 0 2px 5px rgba(10, 19, 48, .35); }
body.lv.tmf-night .tmf-pin.is-active::before { box-shadow: 0 0 0 3px #F2EEDF, 0 2px 5px rgba(0, 4, 20, .5); }

/* Empty states: a pearl bubble with the sun seen through it (the old drawn waves and sun are gone from the markup). */
body.lv .tmf-empty__art { display: block; width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #FFFEF5 0 14%, #FFF7DD 22%, rgba(255, 247, 221, 0) 44%), var(--orb); box-shadow: var(--orb-shadow); }
body.lv.tmf-night .tmf-empty__art { color: var(--ink); background: radial-gradient(circle at 50% 40%, rgba(242, 238, 223, .95) 0 12%, rgba(242, 238, 223, .35) 20%, rgba(242, 238, 223, 0) 40%), var(--orb); }

/* Checked on 2026-11-19 and already dressed by broader rules above, so the guard's check 1 can skip them:
   .tmf-now-art--event .tmf-now-art--topic .tmf-now-art--night (body.lv .tmf-now-art), .tmf-badge--alert .tmf-badge--org
   .tmf-badge--guide (the glass badge rule in caustic.css), .tmf-post--held (glass posts), .tmf-pt--question .tmf-pt--recommend
   .tmf-pt--poll .tmf-pt--sale .tmf-pt--price .tmf-pt--ride .tmf-pt--meetup (body.lv .tmf-pt), .tmf-empty__art (above).
   Not output anywhere: .tmf-artist-card__ph. */

/* =========================================================================
 * Stay, Jobs and the related strip on top of rooms (2026-11-20)
 * ====================================================================== */

/* Related strip: rows of small glass cards that scroll sideways, each ending in "See more". */
body.lv .tmf-rr { display: grid; gap: 14px; margin: 0 0 22px; }
body.lv .tmf-rr__row { min-width: 0; padding: 16px 0 6px; border-radius: 28px; background: var(--glass-sheen); background-color: rgba(255, 255, 255, .5); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-rim), var(--glass-shadow); }
body.lv.tmf-night .tmf-rr__row { background-color: rgba(20, 32, 70, .6); }
body.lv .tmf-rr__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 20px 6px; }
body.lv .tmf-rr__title { margin: 0; font-family: var(--font-body); font-size: .76rem; font-weight: 800; letter-spacing: .15em; line-height: 1.3; text-transform: uppercase; color: var(--muted); }
body.lv .tmf-rr__more { font-size: .92rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
body.lv .tmf-rr__scroll { display: flex; gap: 10px; margin: 0; padding: 6px 20px 14px; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 20px; overscroll-behavior-x: contain; scrollbar-width: thin; }
body.lv .tmf-rr__card { flex: 0 0 auto; width: 236px; margin: 0; padding: 0; scroll-snap-align: start; }
body.lv .tmf-rr__card::before { content: none; }
body.lv .tmf-rr__card > a { display: flex; align-items: center; gap: 12px; height: 100%; min-height: 72px; padding: 12px 14px; border-radius: 20px; background: rgba(255, 255, 255, .42); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95), 0 10px 22px -16px rgba(45, 50, 125, .5); color: var(--ink); text-decoration: none; transition: background-color .2s ease, transform .2s ease; }
body.lv .tmf-rr__card > a:hover { background: rgba(255, 255, 255, .72); color: var(--ink); transform: translateY(-1px); }
body.lv .tmf-rr__card > a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
body.lv.tmf-night .tmf-rr__card > a { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); color: var(--ink); }
body.lv.tmf-night .tmf-rr__card > a:hover { background: rgba(255, 255, 255, .14); color: var(--ink); }
body.lv .tmf-rr__txt { display: grid; gap: 2px; min-width: 0; }
body.lv .tmf-rr__txt strong { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-family: var(--font-display); font-size: .98rem; font-weight: 600; line-height: 1.15; color: var(--ink); }
body.lv .tmf-rr__txt small { overflow: hidden; font-size: .8rem; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
body.lv .tmf-rr__card .tmf-date { flex: none; }
body.lv .tmf-rr__logo { flex: none; width: 44px; height: 44px; border-radius: 14px; object-fit: cover; }
body.lv .tmf-rr__orb { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--orb); box-shadow: var(--orb-shadow); color: #1B2244; font-weight: 800; }
body.lv.tmf-night .tmf-rr__orb { color: var(--ink); }
body.lv .tmf-rr__orb .tmf-ico { width: 18px; height: 18px; }
body.lv .tmf-rr__card--more { width: 170px; }
body.lv .tmf-rr__card--more > a { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .95); }
body.lv.tmf-night .tmf-rr__card--more > a { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
@media (max-width: 640px) {
	body.lv .tmf-rr__card { width: 212px; }
	body.lv .tmf-rr__head { padding: 0 16px 6px; }
	body.lv .tmf-rr__scroll { padding: 6px 16px 14px; scroll-padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
	body.lv .tmf-rr__card > a { transition: none; }
	body.lv .tmf-rr__card > a:hover { transform: none; }
}

/* Room header with two buttons, and the room filters. */
body.lv .tmf-page-head__actions { flex-wrap: wrap; }
body.lv .tmf-chips--room { margin: 0 0 16px; }
body.lv .tmf-job-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 16px; }
body.lv .tmf-job-bar .tmf-chips { margin: 0; }
body.lv .tmf-job-filter { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
body.lv .tmf-job-filter label { font-size: .76rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
body.lv .tmf-job-filter select { min-height: 42px; padding: 6px 36px 6px 14px; border: 1px solid var(--field-edge); border-radius: 999px; background-color: var(--field); color: var(--ink); }
body.lv.tmf-night .tmf-job-filter select { border-color: var(--field-edge); background-color: var(--field); color: var(--ink); }

/* Extra chips on room posts in lists: details line under the type. */
body.lv .tmf-pt-tags--more { margin-top: 0; }
body.lv .tmf-pt--job-tag { background: transparent; box-shadow: inset 0 0 0 1px rgba(27, 34, 68, .2); color: var(--ink); }
body.lv.tmf-night .tmf-pt--job-tag { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); color: var(--ink); }

/* "Gig for artists" tile in the post-type picker: a link, with a dashed rim. */
body.lv .tmf-pt-pick__link { color: var(--ink); text-decoration: none; }
body.lv .tmf-pt-pick__link > span { border-style: dashed; }
body.lv .tmf-pt-pick__link strong span { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--muted); }
body.lv.tmf-night .tmf-pt-pick__link strong span { background: none; color: var(--muted); }

/* Safety notes on room posts: a quiet glass line with a thin coral edge. */
body.lv .tmf-rt-safe { margin: 4px 0 14px; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, .3); box-shadow: inset 3px 0 0 var(--accent); color: var(--muted); }
body.lv.tmf-night .tmf-rt-safe { background: rgba(255, 255, 255, .06); box-shadow: inset 3px 0 0 var(--accent); color: var(--muted); }

/* Matching posts and job panels under a post. */
body.lv :is(.tmf-rt-panel, .tmf-job-panel) { margin-top: 18px; }
body.lv .tmf-rt-list { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
body.lv .tmf-rt-item { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 14px; border-radius: 18px; background: rgba(255, 255, 255, .34); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9); }
body.lv.tmf-night .tmf-rt-item { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
body.lv .tmf-rt-item::before { content: none; }
body.lv .tmf-rt-item > div { display: grid; gap: 2px; min-width: 0; }
body.lv .tmf-rt-item a { font-weight: 700; color: var(--ink); }
body.lv .tmf-rt-item .tmf-muted { font-size: .86rem; }
body.lv .tmf-job-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; margin: 12px 0 0; padding: 0; list-style: none; }
body.lv .tmf-job-people--one { grid-template-columns: minmax(0, 1fr); }
body.lv .tmf-job-people > li::before { content: none; }
body.lv .tmf-job-card { display: grid; gap: 10px; align-content: start; margin: 0; padding: 18px; border-radius: 24px; }
body.lv .tmf-job-card .tmf-post__who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body.lv .tmf-job-card :is(.tmf-quote, .tmf-pt-card, .tmf-job-tags, p) { margin: 0; }
body.lv .tmf-job-card .tmf-quote { padding: 10px 14px; }
body.lv .tmf-job-card__title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; line-height: 1.15; color: var(--ink); text-decoration: none; }
body.lv .tmf-job-card__title:hover { color: var(--ink); text-decoration: underline; }
body.lv .tmf-job-page { font-weight: 700; color: var(--ink); }
body.lv .tmf-job-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
body.lv .tmf-job-cv-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .45); box-shadow: inset 0 0 0 1px #FFFFFF; color: var(--ink); font-weight: 700; text-decoration: none; }
body.lv .tmf-job-cv-link:hover { background: rgba(255, 255, 255, .75); color: #1B2244; }
body.lv.tmf-night .tmf-job-cv-link { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); color: var(--ink); }
body.lv.tmf-night .tmf-job-cv-link:hover { background: rgba(255, 255, 255, .16); color: var(--ink); }
body.lv .tmf-job-cv-link .tmf-ico { width: 18px; height: 18px; }
body.lv .tmf-job-cv__now { margin: 0 0 6px; }
body.lv .tmf-job-tags { margin: 6px 0 0; }
body.lv .tmf-job-inv { flex: 1 1 100%; }
body.lv .tmf-job-inv > summary { display: inline-flex; list-style: none; cursor: pointer; }
body.lv .tmf-job-inv > summary::-webkit-details-marker { display: none; }
body.lv .tmf-job-inv[open] > summary { margin-bottom: 12px; }
body.lv :is(.tmf-job-inv__form, .tmf-job-answer, .tmf-job-apply) { display: grid; gap: 10px; }
body.lv :is(.tmf-job-inv__form, .tmf-job-answer, .tmf-job-apply) .tmf-field { margin: 0; }
body.lv .tmf-job-cvpick { display: grid; gap: 6px; }
body.lv .tmf-job-state { vertical-align: middle; }
body.lv .tmf-job-dash .tmf-h3 { margin: 20px 0 6px; }
body.lv .tmf-job-rows { display: grid; gap: 8px; margin: 8px 0 18px; padding: 0; list-style: none; }
body.lv .tmf-job-rows > li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, .3); }
body.lv.tmf-night .tmf-job-rows > li { background: rgba(255, 255, 255, .06); }
body.lv .tmf-job-rows > li::before { content: none; }
body.lv .tmf-job-rows a { font-weight: 700; color: var(--ink); }

/* Moderation › Categories: the "Related on top of this room" fold in each forum's form. */
body.lv .tmf-rr-form { margin: 6px 0 14px; padding: 10px 16px; border-radius: 16px; background: rgba(255, 255, 255, .28); }
body.lv.tmf-night .tmf-rr-form { background: rgba(255, 255, 255, .06); }
body.lv .tmf-rr-form > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; cursor: pointer; }
body.lv .tmf-rr-form[open] > summary { margin-bottom: 8px; }
/* Selected filter chips: dark ink by day, pearl at night (the broad glass chip rule above had been winning on every page but Events). */
body.lv:not(.cg-page-events) .tmf-chips a[aria-current][href] { background: #1B2244; color: #FFFFFF; box-shadow: none; }
body.lv.tmf-night:not(.cg-page-events) .tmf-chips a[aria-current][href] { background: var(--pearl); color: #141B3A; box-shadow: none; }

/* Room panels: no extra gap above their first heading; tags breathe before the message. */
body.lv :is(.tmf-rt-panel, .tmf-job-panel) > :first-child { margin-top: 0; }
body.lv .tmf-post .tmf-job-tags { margin: 8px 0 14px; }
/* ------------------------------------------------------------------
 * How it works card: 8 topics since Stay and Jobs were added (2026-11-20).
 * Six narrow columns, each tile spans two, so a short last row shares the width instead of leaving a gap.
 * ------------------------------------------------------------------ */
@media (min-width: 701px) {
	.tmf-how__topics { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.tmf-how__topics > li { grid-column: span 2; }
	.tmf-how__topics > li:nth-last-child(2):nth-child(3n+1),
	.tmf-how__topics > li:last-child:nth-child(3n+2) { grid-column: span 3; }
	.tmf-how__topics > li:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------
 * Header menu: eight links since Stay and Jobs were added (2026-11-20).
 * On computers the links sit a little closer and the Dashboard button shows only your photo
 * (the label stays for screen readers and as a tooltip), so the bar fits in its 1240px.
 * When it still doesn't fit (French labels, the Moderation link, a narrow laptop),
 * the small script after the header in header.php adds body.tmf-nav-tight and the bar
 * switches to the phone menu. Those lines mirror the max-width: 900px menu rules.
 * ------------------------------------------------------------------ */
@media (min-width: 901px) {
	body.lv .site-nav__main { gap: 2px; }
	body.lv .site-nav__main a, body.lv .site-nav__mod { padding: 10px 11px; }
	body.lv .site-nav__user { gap: 8px; }
	body.lv .me { padding: 3px; gap: 0; }
	body.lv .me > span:last-child:not(.tmf-av) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
	body.lv.tmf-nav-tight .me { padding: 3px 12px 3px 3px; gap: 8px; }
	body.lv.tmf-nav-tight .me > span:last-child:not(.tmf-av) { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
}
body.lv.tmf-nav-tight .nav-toggle { display: block; }
body.lv.tmf-nav-tight .site-header__bar { flex-wrap: wrap; gap: 12px; border-radius: 28px; padding: 8px 8px 8px 16px; }
body.lv.tmf-nav-tight .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 16px; }
body.lv.tmf-nav-tight .site-nav.is-open { display: flex; padding: 6px 4px 12px; }
body.lv.tmf-nav-tight .site-nav__main { flex-direction: column; gap: 4px; }
body.lv.tmf-nav-tight .site-nav__main a { padding: 12px; border-radius: 16px; }
body.lv.tmf-nav-tight .site-nav__user { flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .6); padding-top: 12px; }
body.lv.tmf-night.tmf-nav-tight .site-nav__user { border-top-color: rgba(255, 255, 255, .2); }

/* ------------------------------------------------------------------
 * 2026-11-21: share buttons, event booking / repeats / calendar, offers
 * section, invite card, quiet rooms, weekly email switch, map pins
 * elsewhere in Morocco. Markup in the plugin's includes/extras-*.php.
 * ------------------------------------------------------------------ */
.tmf-sharebar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tmf-sharebar__btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 14px; border: 0; border-radius: 999px; font: inherit; font-size: .9rem; font-weight: 700; line-height: 1; text-decoration: none; cursor: pointer; transition: background .3s ease, box-shadow .3s ease, color .3s ease; }
.tmf-sharebar__btn .tmf-ico { width: 18px; height: 18px; flex: none; }
.tmf-sharebar__btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.tmf-sharebar__btn[hidden] { display: none; }
body.lv .tmf-sharebar__btn { background: rgba(255, 255, 255, .3); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95); }
body.lv .tmf-sharebar__btn:hover { background: var(--pearl); color: #1B2244; box-shadow: var(--pearl-glow); }
body.lv .tmf-sharebar__btn--wa { background: #1B2244; color: #FFFFFF; box-shadow: none; }
body.lv.tmf-night .tmf-sharebar__btn { background: rgba(255, 255, 255, .08); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
body.lv.tmf-night .tmf-sharebar__btn:hover { background: var(--pearl); color: #141B3A; box-shadow: var(--pearl-glow); }
body.lv.tmf-night .tmf-sharebar__btn--wa { background: var(--pearl); color: #141B3A; box-shadow: none; }
.tmf-sharebar--compact { gap: 6px; }
.tmf-sharebar--compact .tmf-sharebar__btn { width: 40px; height: 40px; padding: 0; }
.tmf-sharebar__done { font-size: .85rem; font-weight: 700; color: var(--success); }
.tmf-sharebar__done:empty { display: none; }
.tmf-share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 2px; }
.tmf-share-row__label { font-size: .85rem; font-weight: 700; color: var(--muted); }

/* Events: Book, repeats, calendar, price */
.tmf-ex-book .tmf-ex-book__btn { display: flex; width: 100%; justify-content: center; align-items: center; gap: 8px; }
.tmf-ex-book__btn .tmf-ico { width: 20px; height: 20px; flex: none; }
.tmf-ex-book .tmf-hint { margin: 10px 0 0; }
.tmf-ex-cal { display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.tmf-ex-cal__label { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 700; color: var(--ink); }
.tmf-ex-cal__label .tmf-ico { width: 18px; height: 18px; flex: none; }
.tmf-ex-cal__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.tmf-ex-repeat { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0; padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; line-height: 1.3; }
.tmf-ex-repeat .tmf-ico { width: 14px; height: 14px; flex: none; }
body.lv .tmf-ex-repeat { background: rgba(255, 255, 255, .3); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95); }
body.lv.tmf-night .tmf-ex-repeat { background: rgba(255, 255, 255, .1); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.tmf-ex-price__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tmf-ex-price__row select { flex: 1 1 180px; min-width: 0; }
.tmf-ex-price__amt { display: inline-flex; align-items: center; gap: 8px; flex: 1 1 140px; min-width: 0; }
.tmf-ex-price__amt input { width: 100%; min-width: 0; }
.tmf-ex-price__amt .tmf-muted { font-weight: 700; }
.tmf-ex-price__txt { flex: 1 1 100%; }
.tmf-ex-price__amt[hidden], .tmf-ex-price__txt[hidden], .tmf-ex-repeat-pick [data-ex-until][hidden] { display: none; }
.tmf-ex-repeat-pick { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.tmf-ex-repeat-pick legend { margin: 0 0 8px; padding: 0; font-weight: 700; color: var(--ink); }
#tmf-ev-pin { margin: 0 0 18px; }

/* Map: pins far from the village */
.tmf-pop__far { display: block; margin-top: 3px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.tmf-map-far { margin: 10px 10px 0 0; padding: 9px 14px; border: 0; border-radius: 999px; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; background: #1B2244; color: #FFFFFF; box-shadow: 0 10px 22px -12px rgba(27, 34, 68, .6); }
.tmf-map-far:hover { background: var(--pearl); color: #1B2244; }
.tmf-map-far:focus-visible { outline: 3px solid #1B2244; outline-offset: 2px; }
body.lv.tmf-night .tmf-map-far { background: var(--pearl); color: #141B3A; }
body.lv.tmf-night .tmf-map-far:hover { background: #FFFFFF; color: #141B3A; }

/* Dashboard › Offers */
.tmf-of-list { display: grid; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.tmf-of-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border-radius: 18px; }
body.lv .tmf-of-row { background: rgba(255, 255, 255, .3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9); }
body.lv.tmf-night .tmf-of-row { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.tmf-of-row__main { display: grid; flex: 1 1 220px; gap: 2px; min-width: 0; }
.tmf-of-row__title { font-weight: 700; color: var(--ink); text-decoration: none; }
.tmf-of-row__title:hover { color: var(--ink); text-decoration: underline; }
.tmf-of-row .tmf-row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tmf-of-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.tmf-of-empty p { margin: 0; }
.tmf-of-tips { display: grid; gap: 8px; margin: 8px 0 0; padding-inline-start: 1.2em; }

/* Dashboard › Invite a friend */
.tmf-invite-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 0 0 18px; }
.tmf-invite-card__text { flex: 1 1 320px; min-width: 0; }
.tmf-invite-card__text h2 { margin: 0 0 4px; }
.tmf-invite-card__text p { margin: 0; }
.tmf-invite-card__text .tmf-invite-card__count { margin-top: 6px; font-weight: 700; color: var(--success); }

/* Forums: quiet rooms fold into one line, empty rooms invite the first post */
.tmf-subforums__quiet { list-style: none; }
.tmf-subforums__quiet > details > summary { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: .86rem; font-weight: 700; list-style: none; cursor: pointer; }
.tmf-subforums__quiet > details > summary::-webkit-details-marker { display: none; }
.tmf-subforums__quiet > details[open] > summary { margin-bottom: 8px; }
body.lv .tmf-subforums__quiet > details > summary { background: rgba(255, 255, 255, .14); color: var(--muted); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8); }
body.lv.tmf-night .tmf-subforums__quiet > details > summary { background: rgba(255, 255, 255, .05); color: var(--muted); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.tmf-subforums__quiet .tmf-subforums { margin: 0; }
.tmf-forum__first { font-weight: 700; color: var(--accent-ink); text-decoration: none; }
.tmf-forum__first:hover { color: var(--accent-ink); text-decoration: underline; }

/* Dashboard › Notifications › Weekly email */
.tmf-dg-pref .tmf-actions { margin-top: 10px; }


/* ==========================================================================
 * Events › just for people going, people coming, messages (2026-11-23)
 * ========================================================================== */
.tmf-ep-edit { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.tmf-ep-edit legend { margin: 0 0 6px; padding: 0; font-weight: 700; color: var(--ink); }
.tmf-ep-edit__private { margin: 4px 0 6px; }
.tmf-ep-edit [data-ep-how][hidden] { display: none; }

body.lv .lv-event-card .tmf-facts > .tmf-ep-fact, .tmf-facts > .tmf-ep-fact { grid-column: 1 / -1; }
.tmf-ep-fact dd { display: grid; gap: 8px; margin: 0; }
.tmf-ep-line { display: grid; gap: 2px; margin: 0; }
.tmf-ep-line strong { font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tmf-ep-line span { color: var(--ink); font-weight: 600; }
.tmf-ep-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; }
.tmf-ep-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: .88rem; font-weight: 700; text-decoration: none; color: var(--ink); }
.tmf-ep-chip .tmf-ico { width: 18px; height: 18px; }
body.lv .tmf-ep-chip { background: rgba(255, 255, 255, .45); color: #1B2244; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95), 0 8px 18px -12px rgba(45, 50, 125, .55); }
body.lv.tmf-night .tmf-ep-chip { background: rgba(255, 255, 255, .1); color: #EEF0F6; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
body.lv .tmf-ep-chip:hover, body.lv.tmf-night .tmf-ep-chip:hover { background: var(--pearl); color: #1B2244; }
.tmf-ep-chip:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.tmf-ep-note { padding: 10px 14px; border-radius: 16px; color: var(--ink); }
.tmf-ep-note p, .tmf-ep-msg p { margin: 0 0 .5em; overflow-wrap: anywhere; }
.tmf-ep-note p:last-child, .tmf-ep-msg p:last-child { margin-bottom: 0; }
.tmf-ep-who { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .82rem; color: var(--muted); }
.tmf-ep-who .tmf-ico { width: 15px; height: 15px; flex: none; }
.tmf-ep-fact--locked dd { display: flex; align-items: flex-start; gap: 8px; color: var(--ink); font-weight: 600; }
.tmf-ep-fact--locked dd .tmf-ico { flex: none; width: 18px; height: 18px; margin-top: 2px; }

.tmf-ep-org__count { margin: 0 0 12px; color: var(--muted); }
.tmf-ep-org__count strong { font-size: 1.3rem; color: var(--ink); }
.tmf-ep-people { display: grid; gap: 8px; max-height: 300px; margin: 0 0 12px; padding: 0; overflow-y: auto; list-style: none; }
.tmf-ep-people li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tmf-ep-people li > :last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tmf-ep-more > summary { margin: 0 0 8px; font-weight: 700; color: var(--ink); cursor: pointer; }
.tmf-ep-send { margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--glass-line); }
.tmf-ep-send label[for] { font-weight: 800; color: var(--ink); }
.tmf-ep-send .tmf-check { margin: 4px 0 8px; }
.tmf-ep-sub { margin: 18px 0 8px; font-size: 1rem; }
.tmf-ep-msgs { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tmf-ep-msgs li { padding: 10px 14px; border-radius: 16px; color: var(--ink); }
.tmf-ep-meta { display: block; margin-top: 4px; font-size: .8rem; color: var(--muted); }
body.lv :is(.tmf-ep-msgs li, .tmf-ep-note) { background: rgba(255, 255, 255, .34); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9); }
body.lv.tmf-night :is(.tmf-ep-msgs li, .tmf-ep-note) { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }

/* ==========================================================================
 * Artist pages › music player (2026-11-23): the site's glass, tinted with the page colour
 * ========================================================================== */
.tmf-sp { position: relative; isolation: isolate; margin: 22px 0; padding: 18px 18px 14px; border-radius: 30px; overflow: hidden; color: var(--ink); }
.tmf-sp [hidden] { display: none !important; }
body.lv .tmf-sp {
	background:
		radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 50%),
		linear-gradient(150deg, color-mix(in srgb, var(--artist-ui) 22%, rgba(255, 255, 255, .66)) 0%, color-mix(in srgb, var(--artist-ui) 9%, rgba(255, 255, 255, .46)) 58%, color-mix(in srgb, var(--artist-ui) 17%, rgba(255, 255, 255, .58)) 100%);
	-webkit-backdrop-filter: var(--glass-blur);
	backdrop-filter: var(--glass-blur);
	box-shadow: var(--glass-rim), 0 30px 60px -30px color-mix(in srgb, var(--artist-ui) 60%, rgba(45, 50, 125, .5));
}
body.lv.tmf-night .tmf-sp {
	background:
		radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 50%),
		linear-gradient(150deg, color-mix(in srgb, var(--artist-ui) 26%, rgba(20, 32, 70, .8)) 0%, color-mix(in srgb, var(--artist-ui) 12%, rgba(20, 32, 70, .74)) 58%, color-mix(in srgb, var(--artist-ui) 20%, rgba(20, 32, 70, .78)) 100%);
	box-shadow: var(--glass-rim), 0 34px 70px -30px rgba(0, 4, 20, .75);
}

.tmf-sp__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.tmf-sp__label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.tmf-sp__label .tmf-ico { width: 22px; height: 22px; color: var(--artist-ui); }
.tmf-sp__out { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.tmf-sp__out .tmf-ico { width: 15px; height: 15px; }
body.lv .tmf-sp__out { background: rgba(255, 255, 255, .45); color: #1B2244; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95); }
body.lv.tmf-night .tmf-sp__out { background: rgba(255, 255, 255, .1); color: #EEF0F6; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
body.lv .tmf-sp__out:hover, body.lv.tmf-night .tmf-sp__out:hover { background: var(--pearl); color: #1B2244; }

.tmf-sp__now { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 14px; }
.tmf-sp__art { position: relative; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 22px; overflow: hidden; }
body.lv .tmf-sp__art { background: color-mix(in srgb, var(--artist-ui) 30%, #FFFFFF); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95), 0 14px 26px -14px color-mix(in srgb, var(--artist-ui) 70%, transparent); }
body.lv.tmf-night .tmf-sp__art { background: color-mix(in srgb, var(--artist-ui) 30%, #141B3A); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 14px 26px -14px rgba(0, 4, 20, .8); }
.tmf-sp__art > img, .tmf-sp__art > .tmf-av { grid-area: 1 / 1; width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 0; box-shadow: none; }
.tmf-sp__art.has-art > :not([data-sp-img]):not(.tmf-sp__eq) { display: none; }
body.lv .tmf-sp__art > .tmf-av { width: 100% !important; height: 100% !important; border-radius: 0; box-shadow: none; font-size: 2.4rem !important; }
.tmf-sp__eq { position: absolute; right: 7px; bottom: 7px; display: none; align-items: flex-end; gap: 2px; height: 22px; padding: 4px 5px; border-radius: 8px; background: rgba(27, 34, 68, .62); }
.tmf-sp.is-playing .tmf-sp__eq { display: inline-flex; }
.tmf-sp__eq i { display: block; width: 3px; height: 100%; border-radius: 2px; background: #FFFFFF; transform-origin: bottom; animation: tmf-sp-eq 1s ease-in-out infinite; }
.tmf-sp__eq i:nth-child(2) { animation-delay: -.35s; }
.tmf-sp__eq i:nth-child(3) { animation-delay: -.7s; }
@keyframes tmf-sp-eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

.tmf-sp__meta { display: grid; gap: 4px; min-width: 0; }
.tmf-sp__title { display: -webkit-box; overflow: hidden; font-size: 1.04rem; font-weight: 800; line-height: 1.3; color: var(--ink); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tmf-sp__by { overflow: hidden; font-size: .9rem; font-weight: 700; color: var(--muted); text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.tmf-sp__by:hover { color: var(--ink); text-decoration: underline; }

.tmf-sp__bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 16px 0 6px; }
.tmf-sp__time { min-width: 3.2em; font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); text-align: center; }
.tmf-sp__seek { --p: 0%; width: 100%; height: 24px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.tmf-sp__seek::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--artist-ui) var(--p), rgba(27, 34, 68, .16) var(--p)); }
body.lv.tmf-night .tmf-sp__seek::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--artist-ui) var(--p), rgba(255, 255, 255, .18) var(--p)); }
.tmf-sp__seek::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -5px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 3px var(--artist-ui), 0 4px 10px -2px rgba(27, 34, 68, .5); -webkit-appearance: none; }
.tmf-sp__seek::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(27, 34, 68, .16); }
body.lv.tmf-night .tmf-sp__seek::-moz-range-track { background: rgba(255, 255, 255, .18); }
.tmf-sp__seek::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--artist-ui); }
.tmf-sp__seek::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 3px var(--artist-ui); }
.tmf-sp__seek:disabled { opacity: .55; cursor: default; }
.tmf-sp__seek:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 999px; }

.tmf-sp__ctrls { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 4px 0 2px; }
.tmf-sp__btn, .tmf-sp__play { position: relative; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 50%; font: inherit; cursor: pointer; }
.tmf-sp__btn { width: 48px; height: 48px; }
.tmf-sp__btn .tmf-ico { width: 22px; height: 22px; }
body.lv .tmf-sp__btn { background: rgba(255, 255, 255, .45); color: #1B2244; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95), 0 8px 18px -12px rgba(45, 50, 125, .6); }
body.lv.tmf-night .tmf-sp__btn { background: rgba(255, 255, 255, .1); color: #EEF0F6; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
body.lv .tmf-sp__btn:hover, body.lv.tmf-night .tmf-sp__btn:hover { background: var(--pearl); color: #1B2244; }
.tmf-sp__play { width: 66px; height: 66px; transition: transform .2s ease; }
.tmf-sp__play .tmf-ico { width: 28px; height: 28px; }
.tmf-sp__i-play .tmf-ico { transform: translateX(2px); }
body.lv .tmf-sp__play { background: linear-gradient(120deg, color-mix(in srgb, var(--artist-ui) 26%, #FFFFFF) 0%, #FFFFFF 46%, color-mix(in srgb, var(--artist-ui) 16%, #FFE1F0) 76%, color-mix(in srgb, var(--artist-ui) 24%, #FFFFFF) 100%); color: #1B2244; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--artist-ui) 50%, #FFFFFF), inset 0 2px 0 #FFFFFF, 0 16px 30px -14px color-mix(in srgb, var(--artist-ui) 75%, transparent); }
body.lv.tmf-night .tmf-sp__play { color: #141B3A; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--artist-ui) 60%, #FFFFFF), inset 0 2px 0 #FFFFFF, 0 0 36px -8px color-mix(in srgb, var(--artist-ui) 70%, transparent); }
.tmf-sp__play:hover { transform: scale(1.05); }
.tmf-sp__i-pause, .tmf-sp.is-playing .tmf-sp__i-play { display: none; }
.tmf-sp.is-playing .tmf-sp__i-pause { display: grid; }
.tmf-sp__i-play, .tmf-sp__i-pause { place-items: center; }
.tmf-sp__i-play { display: grid; }
.tmf-sp.is-loading .tmf-sp__play::after { position: absolute; inset: -6px; border: 2.5px solid transparent; border-top-color: var(--artist-ui); border-radius: 50%; content: ""; animation: tmf-sp-spin .9s linear infinite; }
@keyframes tmf-sp-spin { to { transform: rotate(360deg); } }
.tmf-sp :is(.tmf-sp__btn, .tmf-sp__play, .tmf-sp__out, .tmf-sp__by):focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.tmf-sp__list { position: relative; display: grid; gap: 4px; max-height: 270px; margin: 14px 0 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain; border-radius: 20px; list-style: none; }
body.lv .tmf-sp__list { background: rgba(255, 255, 255, .3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .85); }
body.lv.tmf-night .tmf-sp__list { background: rgba(10, 19, 48, .32); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.tmf-sp__item { display: grid; grid-template-columns: 1.8em minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 12px; border: 0; border-radius: 14px; background: transparent; color: var(--ink); font: inherit; font-size: .92rem; text-align: start; cursor: pointer; }
.tmf-sp__n { font-size: .78rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--muted); text-align: center; }
.tmf-sp__t { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.tmf-sp__d { font-size: .8rem; font-variant-numeric: tabular-nums; color: var(--muted); }
body.lv .tmf-sp__item:hover { background: rgba(255, 255, 255, .55); color: #1B2244; }
body.lv.tmf-night .tmf-sp__item:hover { background: rgba(255, 255, 255, .1); color: #EEF0F6; }
body.lv .tmf-sp__item.is-current { background: color-mix(in srgb, var(--artist-ui) 18%, rgba(255, 255, 255, .78)); color: #1B2244; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95); }
body.lv.tmf-night .tmf-sp__item.is-current { background: color-mix(in srgb, var(--artist-ui) 24%, rgba(20, 32, 70, .7)); color: #EEF0F6; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26); }
.tmf-sp__item.is-current .tmf-sp__n { color: inherit; }
.tmf-sp__item:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }

/* SoundCloud's own widget: invisible, except for the first tap on phones that need it */
.tmf-sp__frame { position: absolute; bottom: 0; left: 0; z-index: -1; width: 100%; height: 166px; overflow: hidden; opacity: 0; pointer-events: none; }
.tmf-sp__frame iframe { display: block; width: 100%; height: 166px; border: 0; }
.tmf-sp.needs-tap .tmf-sp__frame { position: static; z-index: auto; margin: 12px 0 0; border-radius: 18px; opacity: 1; pointer-events: auto; }

.tmf-sp__msg { margin: 12px 0 0; padding: 10px 14px; border-radius: 16px; font-size: .9rem; font-weight: 600; }
body.lv .tmf-sp__msg { background: #FFE2AA; color: #6E4708; }
body.lv.tmf-night .tmf-sp__msg { background: rgba(242, 213, 138, .14); color: #F2D58A; }
.tmf-sp__fine { margin: 12px 0 0; font-size: .76rem; color: var(--muted); }

@media (max-width: 480px) {
	.tmf-sp { padding: 16px 14px 12px; border-radius: 26px; }
	.tmf-sp__now { grid-template-columns: 72px minmax(0, 1fr); }
	.tmf-sp__art { width: 72px; height: 72px; border-radius: 18px; }
	.tmf-sp__play { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
	.tmf-sp__eq i { animation: none; transform: scaleY(.7); }
	.tmf-sp.is-loading .tmf-sp__play::after { animation-duration: 2.4s; }
	.tmf-sp__play:hover { transform: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	body.lv .tmf-sp { background-color: rgba(255, 255, 255, .72); }
	body.lv.tmf-night .tmf-sp { background-color: rgba(20, 32, 70, .85); }
}

/* Dashboard › My page › Music player */
.tmf-sp-pref { min-width: 0; margin: 18px 0; padding: 0; border: 0; }
.tmf-sp-pref legend { margin: 0 0 8px; padding: 0; font-weight: 700; color: var(--ink); }
