/* The look of a league's Season tab (scripts/league-season.js; UV, 5 Nov: as
 * much about the league as there is, in the site's look), also used by the
 * tournament poster and the venue page. It was the league join page's, which
 * was folded into the Season tab (UV, 10 Nov). Loaded after league.css, whose .jumbo banner, .jumbo-facts, .team-pic and .person it
 * uses. Tokens only.
 *
 * Panels and small boxes are sunk into the card; something you press to open
 * stands up from it; numbers stay in the display face. */

.lj-page { padding-top: var(--space-4); }
.lj-page .muted { color: var(--text-muted); }

/* A surface sunk into the card. */
.lj-num,
.lj-rule-box,
.lj-notes {
	position: relative;
	border-radius: var(--nm-field-radius);
	box-shadow: var(--nm-sunken);
}

/* ── The banner: the scorecard's, the picture and names as the profile's
 * hero (the picture against the centre line, the names against it) ── */
.lj-hero { grid-template-columns: minmax(0, 1fr); }
.lj-id {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	column-gap: var(--space-4);
}
.lj-pic {
	display: block;
	width: 6.5rem;
	height: 6.5rem;
	border-radius: var(--radius-round);
	box-sizing: border-box;
}
/* A plain circle round a picture of its own; a default icon stands alone. */
.lj-pic:has(img) { box-shadow: var(--shadow-pic); }
.lj-pic-inner {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	border-radius: var(--radius-round);
	box-sizing: border-box;
	overflow: hidden;
	color: var(--color-primary);
}
.lj-pic-inner svg { width: 55%; height: 55%; }
.lj-pic-inner img { width: 100%; height: 100%; object-fit: cover; }
/* Name, season, then the status badge under them (UV, 5 Nov): the season
 * close under the name as its subtitle, the badge a clear step below. */
.lj-names { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.tdc-card .lj-names .lj-season { margin-top: var(--space-1); }
/* The venue (UV, 24 Nov): straight under the season, seen with the banner folded */
.tdc-card .lj-names .lj-venue { margin-top: 0; }
.lj-names .jumbo-status { margin-top: var(--space-3); font-family: var(--font-body); }
.tdc-card .lj-names h1 {
	max-width: 100%;
	margin: 0;
	font-family: var(--font-display);
	font-weight: 400;
	/* Every banner's main heading at the Standings line's size (UV, 17 Nov;
	   was clamp(1.5rem, 7vw, 2.5rem)): the Season tab, a venue, the poster */
	font-size: 1.15rem;
	line-height: 1.32;   /* the capitals stand 1.08 tall, so less and two lines touch */
	text-align: left;
	overflow-wrap: break-word;
	text-wrap: balance;
}
.tdc-card .lj-season { margin: 0; color: var(--text-muted); text-align: left; }

/* A tournament's and a league's banner (UV, 24 Nov; docs/ui-list.md item 10: "relax
 * the cramped text below the names"): the picture only in the name's row, as tall
 * as the name (both lines when it wraps; tdc.js measures it as --lj-name-h), and
 * the lines under the name across the whole banner, under the picture too. The
 * names' box lays out as if it were not there, so its lines join the banner's
 * grid. The venue's banner keeps the picture beside all its lines. */
.lj-hero:not(.venue-hero) .lj-id { row-gap: 0; }
.lj-hero:not(.venue-hero) .lj-names { display: contents; }
.lj-hero:not(.venue-hero) .lj-pic {
	grid-row: 1;
	grid-column: 1;
	width: var(--lj-name-h, 1.52rem);
	height: var(--lj-name-h, 1.52rem);
}
.lj-hero:not(.venue-hero) .lj-names > h1 { grid-row: 1; grid-column: 2; }
.lj-hero:not(.venue-hero) .lj-names > :not(h1) { grid-column: 1 / -1; justify-self: start; }
/* At the name's size the picture's shadow is scaled with it (UV, 24 Nov: "fix shadows
 * on pictures"). The shade moves in real pixels (design.css, .tdc-shade: the light's
 * offset times --shade-move), so the move made for a 6.5rem (104px) picture is too
 * much for a name-sized one (24px a line): a quarter of it, the blur with it. A round
 * picture takes the small pictures' inset. */
.lj-hero:not(.venue-hero) .lj-pic-inner { --pic-inset: var(--nm-pic-sunken-small); }
.lj-hero:not(.venue-hero) .lj-pic-inner .tdc-shaped {
	--shade-move: 0.125;
	--shade-blur: calc(var(--nm-blur) / 16);
}

@media (max-width: 30rem) {
	.lj-pic { width: 5rem; height: 5rem; }
	.lj-hero .jumbo-facts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr)); }
}
@media (max-width: 24rem) {
	.lj-pic { width: 3.5rem; height: 3.5rem; }
}

/* ── The banner's corner: Share and the way in, icons alone, as the player
 * page's. The name's first line keeps clear of them ── */
.lj-corner {
	position: absolute;
	top: var(--space-4);
	right: var(--space-4);
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}
/* Balancing lines cannot work round a float: left on, the name runs off the page. */
.tdc-card .lj-corner + .lj-id h1 { text-wrap: wrap; }
.lj-corner + .lj-id h1::before {
	content: "";
	float: right;
	width: 2.75rem;
	height: 1.2em;
}
/* Join this league (UV, 24 Nov): its own button just below the banner, no longer
 * a second icon in the corner. */
/* No top margin of its own (UV, 24 Nov: too much space above it): the banner's gap
 * (--space-5, measured from the table as drawn, banner-table.css) is the gap, the
 * same as the one under it. */
.lj-join { margin-top: 0; }
/* The same gap under it as over it (UV, 24 Nov): with the status line empty it sat
 * flush on the Teams / My Season pill. Gone with the button (.ls-actions hides). */
.lj-join { margin-bottom: var(--space-5); }
/* Yellow (UV, 24 Nov), the site's warning colour, filled as the main button is */
.tdc-card .lj-join .ls-btn-go { background: var(--color-warning); color: var(--color-on-primary); gap: var(--space-2); }
/* The plus that was its icon in the corner, before the words (UV, 24 Nov) */
.lj-join-plus {
	flex: 0 0 auto;
	width: 1.25em;
	height: 1.25em;
	fill: none;
	stroke: currentColor;
	stroke-width: 8;
	stroke-linecap: round;
}
/* Withdraw (UV, 24 Nov: the button once your name is down): the plus loses its
 * upright and reads as a minus */
#interest-btn[data-mode="withdraw"] .lj-join-v { display: none; }
/* Saying what a press did (UV, 24 Nov: the message on the button): words alone,
 * not pressable for that moment */
#interest-btn[data-mode="said"] .lj-join-plus { display: none; }
#interest-btn[data-mode="said"] { cursor: default; }
/* The details all in one row where they fit, Who runs it too (UV, 10 Nov): on
 * a wide screen one row; narrower, the details across and Who runs it under
 * them; on a phone two across. */
.jumbo-facts:has(> .lj-people) { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 0; overflow-x: clip; }
.lj-people { grid-column: 1 / -1; }
.lj-people dd { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); }
.jumbo-facts:has(> .lj-people) > .jumbo-fact:not(.lj-badges) { padding-block: var(--space-2); }
.jumbo-facts:has(> .lj-people) > .lj-badges { padding-bottom: var(--space-2); }
@media (max-width: 47.99rem) {
	/* An odd one out takes its row, so no line runs down beside nothing. */
	.jumbo-facts:has(> .lj-people) > :nth-child(even):has(+ .lj-people) { grid-column: 1 / -1; }
}
@media (min-width: 48rem) {
	.jumbo-facts:has(> .lj-people) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.jumbo-facts:has(> .lj-people):has(> :nth-child(6)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 75rem) {
	.jumbo-facts:has(> .lj-people) { grid-template-columns: repeat(3, auto) minmax(14rem, 1fr); }
	.jumbo-facts:has(> .lj-people):has(> :nth-child(6)) { grid-template-columns: repeat(4, auto) minmax(14rem, 1fr); }
	.lj-people { grid-column: auto; }
}
/* Grey lines between the details only, never above or below them (UV, 10 Nov).
 * A line down fills its row, so it meets the lines across; a line across runs
 * the whole width, full row or not. The ones on the outside edge are clipped
 * off. A line across appears only where the details have wrapped. */
.jumbo-facts:has(> .lj-people) > * { position: relative; }
.jumbo-facts:has(> .lj-people) > *::before,
.jumbo-facts:has(> .lj-people) > :nth-child(n+4)::after {
	content: "";
	position: absolute;
	pointer-events: none;
}
.jumbo-facts:has(> .lj-people) > *::before {
	top: 0;
	bottom: 0;
	left: calc(var(--space-5) / -2);
	border-left: 1px solid var(--border-color);
}
.jumbo-facts:has(> .lj-people) > :nth-child(n+4)::after {
	top: 0;
	right: -100vw;
	left: -100vw;
	border-top: 1px solid var(--border-color);
}
@media (min-width: 48rem) {
	.jumbo-facts:has(> .lj-people) > :nth-child(n+4):not(.lj-people)::after { content: none; }
}
@media (min-width: 75rem) {
	.jumbo-facts:has(> .lj-people) > .lj-people::after { content: none; }
}
.tdc-card button.lj-icon,
.lj-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 2.5rem;
	height: 2.5rem;
	min-height: 0;
	padding: 0;
	margin: 0;
	border: none;
	border-radius: var(--radius-round);
	background: transparent;
	box-shadow: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.tdc-card button.lj-icon:active { box-shadow: none; }
.tdc-card button.lj-icon[hidden],
.lj-icon[hidden] { display: none; }
.lj-icon:focus-visible { outline: 2px solid var(--nm-light-colour); outline-offset: 2px; }
.lj-icon .tdc-ring { color: var(--color-primary); transition: color 0.2s ease; }
.lj-icon .tdc-ring .mark { stroke: currentColor; }
.lj-icon:hover .tdc-ring,
.lj-icon:focus-visible .tdc-ring { color: var(--text-primary); }

.lj-icon .sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* The details' first row: the badges (UV, 9 Nov). */
.lj-badges { grid-column: 1 / -1; }
.lj-badges dd { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; }
.lj-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ── Where I stand: a sunken panel that glows from its edge inward, with a
 * raised button ── */
.lj-stage {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-2);
	margin: 0 0 var(--space-5);
	padding: var(--space-5) var(--space-4);
	border-radius: var(--nm-field-radius);
	box-shadow: var(--nm-sunken);
	text-align: center;
}
.lj-stage::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 16px var(--nm-knob-glow);
	pointer-events: none;
}
.tdc-card .lj-where {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.9rem;
	line-height: 1.32;
	text-transform: none;
	letter-spacing: normal;
	overflow-wrap: break-word;
}
.tdc-card .lj-where-detail { margin: 0; color: var(--text-muted); max-width: 32rem; }
.tdc-card .lj-where-detail:empty { display: none; }
.lj-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-2); }
.lj-actions:not(:has(> :not([hidden]))) { display: none; }

/* Raised, as a .btn is; the way forward is the main action, filled. */
.tdc-card .lj-btn,
.lj-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	max-width: 100%;
	min-height: var(--nm-field);
	margin: 0;
	padding: var(--space-2) var(--space-5);
	border: 0;
	border-radius: var(--radius-pill);
	background: transparent;
	color: var(--text-primary);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	text-align: center;
	line-height: 1.2;
	box-shadow: var(--nm-sunken);   /* pressable, so inset (UV, 4 Dec: "let all clickable elements have inner shadow rather than outer") */
	cursor: pointer;
}
.lj-btn[hidden] { display: none; }
.tdc-card .lj-btn:active,
.lj-btn:active { box-shadow: var(--nm-pressed); }   /* a press, deeper (UV, 4 Dec: "Deeper inset while pressed") */
.tdc-card .lj-btn-go,
.lj-btn-go { background: var(--nm-light-colour); color: var(--color-on-primary); }
.lj-btn:focus-visible { outline: 2px solid var(--nm-light-colour); outline-offset: 2px; }

/* ── The numbers: each sunk into the card ── */
/* Rows of equal tiles, each row centred (UV, 10 Nov), so a short last row sits
 * in the middle. Three to a row on a phone, two on the narrowest. */
.lj-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-3);
	margin-bottom: var(--space-5);
}
.lj-numbers > .lj-num { flex: 0 0 calc((100% - 2 * var(--space-3)) / 3); min-width: 0; }
@media (max-width: 22rem) {
	.lj-numbers > .lj-num { flex-basis: calc((100% - var(--space-3)) / 2); }
}
@media (min-width: 48rem) {
	.lj-numbers > .lj-num { flex-basis: 7.5rem; }
}
.lj-num {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--space-1);
	/* Uneven on purpose: the display face's line box has its capitals low in it.
	 * Measured: the same 12px of clear space above the number and below the label. */
	padding: 1.0625rem var(--space-2) 0.5625rem;
	text-align: center;
	box-shadow: var(--nm-raised);
}
.lj-num-value {
	font-family: var(--font-display);
	font-size: 1.85rem;
	line-height: 1.32;
	font-variant-numeric: tabular-nums;
	color: var(--color-primary);
}
.lj-num-long { font-size: 1.55rem; line-height: 1.85rem; }
.lj-num-label { font-size: 0.8rem; color: var(--text-muted); }

/* The numbers are the last thing on the Season tab (UV, 10 Nov). */
.lj-cal ~ .lj-numbers { margin-top: var(--space-5); }

/* ── From whoever runs it ── */
.lj-notes-box:not([hidden]) ~ .lj-views-row { margin-top: var(--space-5); }
.tdc-card .lj-notes {
	margin: 0;
	padding: var(--space-4) var(--nm-pad);
	white-space: pre-line;
	overflow-wrap: break-word;
}

/* ── The rules: a box per group, label and value rows ── */
/* Each box only as wide as its rows need, the boxes in a row, wrapping and
 * centred (UV, 5 Nov); a row of boxes shares its height. */
.lj-rules {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-5);
}
.lj-rule-box { flex: 0 1 auto; max-width: 100%; box-sizing: border-box; padding: var(--space-4) var(--nm-pad) var(--space-3); }
/* A phone has room for one a line: then each takes the whole width, rather
 * than five ragged widths one under another. */
@media (max-width: 40rem) {
	.lj-rule-box { flex-basis: 100%; }
}
.tdc-card .lj-rule-title {
	margin: 0 0 var(--space-2);
	font-size: 1rem;
	font-weight: 600;
	color: var(--color-primary);
}
.lj-rule-list { margin: 0; }
.lj-rule {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0 var(--space-5);
	padding: var(--space-2) 0;
	border-top: 1px solid var(--border-color);
}
.lj-rule:first-child { border-top: none; }
.lj-rule dt { color: var(--text-muted); min-width: 0; }
.lj-rule dd { margin: 0; margin-left: auto; text-align: right; font-weight: 600; min-width: 0; overflow-wrap: break-word; }

/* ── The nights: the fixtures planner's calendar (league.css), a night in its
 * state's colour, the next glowing as a chosen day does there. The one tapped
 * has a line round it, which can fade: the day's shadow moves with the light.
 * The Fixtures planner takes the same states since 16 Nov (league-fixtures.js) ── */
.is-later,
.is-next { --night: var(--nm-light-colour); }
.is-live { --night: var(--color-warning); }
.is-done { --night: var(--text-muted); }
.tdc-card .cal button.cal-day[class*="is-"] {
	color: var(--night);
	outline: 2px solid transparent;
	outline-offset: 2px;
	transition: outline-color 0.2s ease;
}
.tdc-card .cal button.cal-day.is-next::after { opacity: 1; }
.tdc-card .cal button.cal-day.is-picked { outline-color: var(--night); }
#l-nights > .empty { flex: 1; }
.tdc-card #night-note { margin: var(--space-2) 0 0; text-align: center; }

.tdc-card .lj-key {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-1) var(--space-4);
	margin: 0;
	font-size: 0.85rem;
	color: var(--text-muted);
}
.lj-key[hidden] { display: none; }
.lj-key-item { display: inline-flex; align-items: center; gap: var(--space-1); }
.lj-key-item::before {
	content: "";
	width: 0.6rem;
	height: 0.6rem;
	border-radius: var(--radius-round);
	background: var(--night);
}
.lj-key-item.is-next::before { box-shadow: 0 0 8px 2px var(--nm-knob-glow); }

.lj-picked {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: var(--space-3);
	padding: var(--space-3) var(--nm-pad);
	border-radius: var(--nm-field-radius);
	box-shadow: var(--nm-sunken);
	text-align: center;
}
.lj-picked[hidden] { display: none; }
.lj-picked-day { font-weight: 600; }
.lj-picked-sub { font-size: 0.85rem; color: var(--text-muted); }

/* ── The teams: a card each, raised, opening the team on the season page ── */
/* A grey line through a section's heading (UV, 10 Nov), and either side of the
 * Teams and My Season pill, which stands where a heading would. */
.lj-heading,
.lj-views-row { display: flex; align-items: center; gap: var(--space-3); }
.lj-heading[hidden] { display: none; }
.tdc-card .lj-heading .badge { font-family: var(--font-body); text-transform: none; letter-spacing: normal; }
.lj-views-row:has(> .ls-views[hidden]) { display: none; }
.lj-heading::before,
.lj-heading::after,
.lj-views-row::before,
.lj-views-row::after {
	content: "";
	flex: 1 1 1rem;
	min-width: 1rem;
	height: 1px;
	background: var(--border-color);
}
.lj-views-row .ls-views { margin: 0; flex: none; }
.lj-views-row { margin-bottom: var(--space-5); }

/* Rules, folded: a heading with its line, the arrow right after the word. */

/* A month is an inset card (UV, 10 Nov), with a line between Friday and Saturday. */
.lj-cal .cal-month {
	padding: var(--space-3);
	border-radius: var(--nm-field-radius);
	box-shadow: var(--nm-sunken);
}
/* A night is its number in its colour, no pill (UV, 10 Nov). The next night keeps
 * its soft glow, the only thing that tells it from the others coming up. */
.tdc-card .lj-cal .cal button.cal-day,
.tdc-card .lj-cal .cal button.cal-day:hover,
.tdc-card .lj-cal .cal button.cal-day:active { background: none; box-shadow: none; }
.lj-cal .cal th:nth-child(6),
.lj-cal .cal td:nth-child(6) { border-left: 1px solid var(--border-color); }
/* A played (or past) night sits in a grey pill (UV, 16 Nov), on the Season tab
 * and the Fixtures planner alike; after the no-pill rule above so it wins. */
.tdc-card .cal button.cal-day.is-done,
.tdc-card .cal button.cal-day.is-done:hover,
.tdc-card .cal button.cal-day.is-done:active {
	background: color-mix(in srgb, var(--text-muted) 22%, transparent);
}
/* The planner's chosen night has the line round it as the Season tab's tapped
 * one, since the next night now glows there too (16 Nov). */
.tdc-card .cal button.cal-day.on[class*="is-"] { outline-color: var(--night); }

/* The cards' columns fill the card's width, as the rest of its content does
 * (UV, 25 Nov: the cards were small, centred with empty room either side);
 * each column at least a card's old width, as many as fit. */
.lj-teams {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
	gap: var(--space-5);
}
.lj-team-head { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
/* Held inside the arrow's height (UV, 10 Nov); the nudge centres the display
 * face, whose capitals sit high at this size. */
.lj-team-places { position: relative; top: 0.125rem; display: flex; align-items: baseline; gap: 0.25em; line-height: 1.25rem; }
.lj-team-places-n {
	font-family: var(--font-display);
	line-height: 1.32;
	font-size: 1.05rem;
	color: var(--color-primary);
}
.lj-team-places-of { font-size: 0.85rem; color: var(--text-muted); }

/* A team's card, inset and folding (UV, 10 Nov): closed, its picture and name;
 * open, the places and the ring join the arrow on its line. */
/* Every closed card the same size (UV, 10 Nov), as many to a row as fit,
 * filling it (UV, 25 Nov); an opened one takes the row and pushes the others on. */
.team-boxes.lj-teams { align-items: start; }
.lj-teams .team-box { min-width: 0; }
.lj-teams .team-box[open] { grid-column: 1 / -1; }
/* A team's star under its players (UV, 25 Nov), at the size of a league
 * star elsewhere (.lc-star, .pp-team-star), centred. */
.lj-teams .lj-team-star { margin-top: var(--space-4); margin-bottom: var(--space-4); }
.lj-teams .lj-team-star .star-svg { max-width: 19rem; }
.lj-teams .team-box.is-asked { box-shadow: inset 0 0 16px var(--nm-knob-glow), var(--nm-sunken); }
.lj-teams .team-box > summary { flex-wrap: wrap; padding: var(--space-3) var(--nm-pad); }
.lj-teams .team-box > summary::after { content: none; }
.lj-teams .team-box > summary .team-pic { width: 3rem; height: 3rem; }
.lj-teams .lj-team-head { flex: 1 1 8rem; }
.lj-team-line { display: flex; align-items: center; gap: var(--space-3); margin-left: auto; }
.lj-teams .team-box:not([open]) .lj-team-places,
.lj-teams .team-box:not([open]) .team-ask { display: none; }
.lj-team-arrow {
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	background: var(--nm-arrow) center / contain no-repeat;
	transition: transform 0.35s ease;
}
.lj-teams .team-box[open] .lj-team-arrow { transform: rotate(180deg); }
/* Team names smaller than the banners' headings (UV, 17 Nov: smaller; 1rem is
 * Claude's choice; was 1.15rem, before that 1.35rem) */
.lj-teams .team-box-name { min-width: 0; font-family: var(--font-display); font-size: 1rem; font-weight: 400; line-height: 1.32; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* A name too long for its card runs sideways and back (UV, 10 Nov; fitName in
 * league-season.js sets how far). With less motion it stops at "…". */
.lj-run { display: inline-block; }
.lj-teams .team-box-name.is-long { text-align: left; }
/* A name that runs sideways fades at both edges rather than being cut (UV, 25
 * Nov: on a phone it showed "REAK AND BL", chopped hard mid-run), as on the
 * players' fixtures and TDC.runName. */
.lj-teams .team-box-name.is-long {
	text-overflow: clip;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 0.75rem, #000 calc(100% - 0.75rem), transparent);
	mask-image: linear-gradient(to right, transparent, #000 0.75rem, #000 calc(100% - 0.75rem), transparent);
}
.lj-teams .is-long > .lj-run { animation: lj-run var(--run-time) ease-in-out infinite alternate; }
@keyframes lj-run {
	0%, 15% { transform: translateX(0); }
	85%, 100% { transform: translateX(var(--run)); }
}
/* Cream, your own team blue (UV, 10 Nov). Written with .tdc-card to outrank
 * design.css's rule that makes every team name blue. */
.tdc-card .lj-teams .team-box-name { color: var(--text-primary); }
.tdc-card .lj-teams .team-box.is-mine .team-box-name { color: var(--color-team); }
.lj-teams .team-box .list-row-main { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
@media (min-width: 40.0625rem) {
	.lj-teams .team-box > :not(summary) { margin-left: calc(var(--nm-pad) + 3rem + var(--space-3)); }
}
/* On a phone (UV, 10 Nov): small cards, the name under the picture and the arrow
 * centred under that, as many to a row as fit. An opened one takes the row and
 * pushes the others on. */
@media (max-width: 40rem) {
	.lj-teams { grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); }
	.lj-teams .team-box > summary { flex-direction: column; flex-wrap: nowrap; gap: var(--space-2); padding: var(--space-3); }
	.lj-teams .lj-team-head { flex: none; flex-direction: column; gap: var(--space-2); max-width: 100%; text-align: center; }
	.lj-teams .team-box-name { font-size: 0.95rem; }   /* smaller (UV, 17 Nov; was 1.1rem) */
	.lj-team-line { margin-left: 0; }
	.lj-teams .team-box > :not(summary) { margin-right: var(--space-4); margin-left: var(--space-4); }
}

/* ── A league's own document, on its Rules tab (UV, 10 Nov) ── */
.lr-document { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--border-color); text-align: center; }
.lr-document-link { color: var(--color-primary); font-weight: 600; }
.tdc-card .lr-document-note { margin: var(--space-1) 0 0; font-size: 0.85rem; color: var(--text-muted); }

/* ── Who runs it ── */
.lj-officials { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); justify-content: center; }

/* ── Anything that fades ── */
[data-motion="reduce"] .lj-teams .lj-run { display: inline; animation: none; }
[data-motion="reduce"] .lj-teams .team-box-name.is-long { text-overflow: ellipsis; -webkit-mask-image: none; mask-image: none; }
@media (prefers-reduced-motion: reduce) {
	:root:not([data-motion="full"]) .lj-teams .lj-run { display: inline; animation: none; }
	:root:not([data-motion="full"]) .lj-teams .team-box-name.is-long { text-overflow: ellipsis; -webkit-mask-image: none; mask-image: none; }
}
[data-motion="reduce"] .lj-team-arrow,
[data-motion="reduce"] .tdc-card .cal button.cal-day[class*="is-"] { transition: none; }
@media (prefers-reduced-motion: reduce) {
	:root:not([data-motion="full"]) .lj-team-arrow,
	:root:not([data-motion="full"]) .tdc-card .cal button.cal-day[class*="is-"] { transition: none; }
}
