/*
 * Wrestler profile.
 *
 * Retokenised in feature 048. 236 colour literals, 77 distinct values, none
 * left. Each was classified by what it MEANT on the old surface rather than by
 * its hue: this file was written for a white page, so its near-white fills
 * became panels and raised surfaces, its mid-greys became ink-muted, and its
 * dark blues became ink — not the reverse.
 *
 * Two mappings are judgements worth stating:
 *
 *   The accent blue family (#2c6fb3, #2271b1, #2c5c94, #1a4f86, #1e3d63,
 *   #245c95) all carried links, active rules or focus. They take `link`; the
 *   lighter #72aee6 takes `link-hover`.
 *
 *   The warm family (#b8860b, #dba617, #ffd97a, #7a5c14, #e8d9b4) carried
 *   championship and warning accents, so it takes the gold tokens rather than
 *   being flattened into a neutral.
 *
 * The rgba() values were one ground at several strengths, so they become
 * surface-base at alpha. Two light overlays that only ever read as a hairline
 * become border-default.
 */
/**
 * Wrestler profile — tabbed, gated layout (feature 014).
 * Scoped under .fedman-wrestler-profile to avoid leaking into the theme.
 */

/* The profile takes the page's full column (2026-09-22, user's request). It
   was capped at 1100px and centred. */
.fedman-wrestler-profile { margin: 0; }

/* Hero */
.fedman-profile-hero {
	position: relative;
	border-radius: 12px;
	/* 025: the name picker drops out of the hero, so this cannot clip. The
	   background is painted on the element itself and is rounded by the radius
	   without help; only the gradient overlay needed the old overflow rule, and
	   it now inherits the radius instead. */
	overflow: visible;
	/* Was #1e2530 — a DARK masthead fill, not text. The blanket map took the
	   text role and turned it cream. A dark ground stays a dark ground. */
	background: var(--csds-surface-raised);
	background-size: cover;
	background-position: top center;
	padding: 32px 28px;
	margin-bottom: 18px;
}
.fedman-profile-hero.has-bg::after {
	content: "";
	position: absolute; inset: 0;
	border-radius: inherit;
	background: linear-gradient(180deg, rgb(var(--csds-surface-base-rgb) / 0.35) 0%, rgb(var(--csds-surface-base-rgb) / 0.85) 100%);
}
/* `z-index: 2`, above the stat strip below it (which is 1): the name picker's
   panel opens downward, and with both at 1 the strip painted over it. No
   `align-items` — the row's items sit at their natural top (user, 2026-09-24). */
.fedman-hero-inner { position: relative; z-index: 2; display: flex; gap: 20px; }
/* Round again and 150px (user, 2026-09-24). */
.fedman-hero-avatar img { width: 150px; height: 150px; border-radius: 50%; border: 3px solid var(--csds-surface-panel); object-fit: cover; }
.fedman-hero-name { color: var(--csds-surface-panel); font-size: 2rem; margin: 0; padding: 0; line-height: 1; display: flex; align-items: center; gap: 12px; }
.fedman-inactive-badge {
	font-size: .7625rem; text-transform: uppercase; letter-spacing: .05em;
	background: var(--csds-blood); color: var(--csds-ink); padding: 3px 10px; border-radius: 999px; font-weight: 700;
}

/* Hero name picker (025) — click the name, reach any wrestler in the game.
   The panel is closed markup until then: `hidden` on <details> content, so it
   is neither visible nor focusable. */
.fedman-hero-picker { position: relative; }
.fedman-hero-picker > summary {
	display: inline-flex; align-items: center; gap: 10px;
	list-style: none; cursor: pointer; border-radius: 8px;
	/* `currentColor` on the arrow needs a colour to follow: the heading's. */
	color: var(--csds-ink);
}
.fedman-hero-picker > summary::-webkit-details-marker { display: none; }
/*
 * The ▾ is the only sign the name opens anything, so it is drawn in the
 * name's own colour and at a size that reads beside a 56px heading (user,
 * 2026-09-24). It was 12×7px in `border-default`, a dark grey that
 * disappeared into the hero.
 */
.fedman-hero-picker > summary::after {
	content: "";
	width: 0; height: 0; margin-top: .3em; flex: 0 0 auto;
	border-left: 11px solid transparent;
	border-right: 11px solid transparent;
	border-top: 13px solid currentColor;
	transition: transform .12s ease;
}
.fedman-hero-picker > summary:hover::after { border-top-color: var(--csds-link-hover); }
.fedman-hero-picker[open] > summary::after { transform: rotate(180deg); }
.fedman-hero-picker > summary:focus-visible { outline: 2px solid var(--csds-surface-panel); outline-offset: 4px; }

.fedman-picker-panel {
	position: absolute; z-index: 40;
	top: calc(100% + 10px); left: 0;
	min-width: 260px; max-width: min(340px, calc(100vw - 48px));
	padding: 8px;
	background: var(--csds-surface-panel);
	border: 1px solid var(--csds-border-default); border-radius: 10px;
	box-shadow: 0 12px 30px rgb(var(--csds-surface-base-rgb) / 0.3);
	text-shadow: none; /* The hero halo would otherwise inherit into the list. */
}
.fedman-picker-filter {
	width: 100%; box-sizing: border-box;
	padding: 7px 10px; margin-bottom: 6px;
	border: 1px solid var(--csds-border-default); border-radius: 6px;
	font-size: .9625rem; color: var(--csds-ink);
}
.fedman-picker-list { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; }
.fedman-picker-row { margin: 0; }
.fedman-picker-item {
	display: block; padding: 7px 10px; border-radius: 6px;
	font-size: 1.0125rem; line-height: 1.3; color: var(--csds-ink); text-decoration: none;
}
.fedman-picker-item:hover,
.fedman-picker-item:focus { background: var(--csds-surface-raised); color: var(--csds-link); }
.fedman-picker-item.is-current { font-weight: 700; color: var(--csds-link); }
.fedman-picker-empty { margin: 6px 4px; font-size: .9425rem; font-style: italic; color: var(--csds-ink-muted); }

/* Stat strip */
.fedman-stat-strip {
	display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
	background: var(--csds-surface-raised); border: 1px solid var(--csds-border-default); border-radius: 10px;
	padding: 14px 18px; margin-bottom: 18px;
}
/* 071: the hero shows this month only; the label says so where the toggle was. */
.fedman-strip-range { font-size: .7825rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--csds-ink-muted); }
.fedman-statboxes { display: flex; gap: 28px; flex-wrap: wrap; }
.fedman-statbox { display: flex; flex-direction: column; }
.fedman-statbox-value { font-size: 1.5rem; font-weight: 700; color: var(--csds-ink); line-height: 1.1; }
.fedman-statbox-label { font-size: .7825rem; text-transform: uppercase; letter-spacing: .04em; color: var(--csds-ink-muted); }
.fedman-stat-locked, .fedman-stat-empty { color: var(--csds-ink-muted); font-style: italic; }

/* Tabs */
.fedman-profile-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 2px solid var(--csds-border-default); margin-bottom: 18px; }
/* The tab row stays under the top bar while the panel scrolls (067). It
   sticks within `.fedman-wrestler-profile`, which holds every panel. Its own
   ground, so the panel does not show through; under the bar (z-index 30). */
.fedman-profile-tabs {
	position: sticky;
	top: var(--csds-topbar-height, 0px);
	z-index: 20;
	background: var(--csds-surface-base);
}

/* The wrestler picker opens from the hero DOWN over the tab row. Its list is
   z-index 40, but inside `.fedman-hero-inner` (z-index 2), so the row (20)
   painted over it. While the picker is open the hero rises above the row,
   still under the top bar (30); only then, or a raised hero would cover the
   stuck row as it scrolls under it. */
.fedman-profile-hero:has(.fedman-hero-picker[open]) {
	z-index: 25;
}
.fedman-tab {
	background: transparent; border: 0; border-bottom: 3px solid transparent;
	padding: 10px 16px; cursor: pointer; font-size: .9825rem;
	color: var(--csds-ink-muted); margin-bottom: -2px;
}
.fedman-tab:hover { color: var(--csds-link); }
.fedman-tab.is-active { color: var(--csds-ink); border-bottom-color: var(--csds-link); font-weight: 600; }

/* Panel + states */
.fedman-profile-panel.is-loading { opacity: .5; transition: opacity .15s; }
.fedman-profile-panel.is-error, .fedman-error { color: var(--csds-state-loss); }
.fedman-empty { color: var(--csds-ink-muted); font-style: italic; }
.fedman-retry { background: none; border: 0; color: var(--csds-link); text-decoration: underline; cursor: pointer; }

/* Overview cards */
.fedman-profile-overview { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
/* 071: three fact cards a row on a desktop (layout A); one on a phone. */
.fedman-ov-card { background: var(--csds-surface-panel); border: 1px solid var(--csds-border-default); border-radius: 10px; padding: 16px 18px; }
.fedman-ov-card h3 { margin: 0 0 10px; font-size: .8625rem; text-transform: uppercase; letter-spacing: .04em; color: var(--csds-ink-muted); }
.fedman-level-name { display: inline-block; font-weight: 700; padding: 2px 10px; border-left: 4px solid var(--csds-border-default); }
.fedman-level-bar { height: 8px; background: var(--csds-surface-raised); border-radius: 99px; overflow: hidden; margin: 10px 0 6px; }
.fedman-level-bar span { display: block; height: 100%; background: var(--csds-crimson); }
.fedman-level-meta, .fedman-ov-sub { font-size: .8625rem; color: var(--csds-ink-muted); }
.fedman-rank-value { font-size: 2rem; font-weight: 800; color: var(--csds-ink); }
.fedman-title-list { list-style: none; margin: 0; padding: 0; }
.fedman-title-list li { padding: 4px 0; }
.fedman-title-list--lg li { font-size: 1.1125rem; }
.fedman-reign-since { color: var(--csds-ink-muted); font-size: .8625rem; }

/* Fight record */
.fedman-fight-table { width: 100%; border-collapse: collapse; }
.fedman-fight-table th, .fedman-fight-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--csds-surface-raised); font-size: .9625rem; }
.fedman-fight-table th { color: var(--csds-ink-muted); text-transform: uppercase; font-size: .7825rem; letter-spacing: .04em; }
.fedman-result { font-weight: 700; font-size: .7825rem; padding: 2px 8px; border-radius: 4px; }
.fedman-result-win { background: var(--csds-surface-raised); color: var(--csds-state-win); }
.fedman-result-loss { background: var(--csds-blood); color: var(--csds-ink); } /* 071: crimson text on raised was 2.93:1; ink on blood is 6.61:1 */

/* Badges (achievements / items) */
.fedman-badge-grid { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; padding: 0; }
.fedman-badge { display: flex; align-items: center; gap: 6px; background: var(--csds-surface-raised); border: 1px solid var(--csds-border-default); border-radius: 8px; padding: 6px 12px; font-size: .9125rem; }
.fedman-badge-qty { color: var(--csds-ink-muted); font-weight: 700; }
.fedman-ach-section, .fedman-inv-section { margin-bottom: 8px; }

/* Full-width overview cards (graph, scout) */
.fedman-ov-wide { grid-column: 1 / -1; }

/* Record by federation */
.fedman-fedrecord-table { width: 100%; border-collapse: collapse; font-size: .9625rem; }
.fedman-fedrecord-table td { padding: 5px 4px; border-bottom: 1px solid var(--csds-surface-raised); }
.fedman-fedrecord-table tfoot td { border-top: 2px solid var(--csds-border-default); border-bottom: none; }
.fedman-fedrecord-wl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fedman-fedrecord-pct { text-align: right; color: var(--csds-ink-muted); font-variant-numeric: tabular-nums; width: 3.5em; }

/* Federation membership chips */
.fedman-fed-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.fedman-fed-chip { background: var(--csds-surface-raised); border: 1px solid var(--csds-border-default); color: var(--csds-link); border-radius: 99px; padding: 4px 12px; font-size: .8825rem; font-weight: 600; }

/* Owner status block */
.fedman-status-badge { display: inline-block; font-weight: 700; font-size: .8825rem; padding: 3px 10px; border-radius: 6px; }
.fedman-status-injured { background: var(--csds-blood); color: var(--csds-ink); } /* 071: was crimson on raised, below 4.5:1 */
.fedman-status-healthy { background: var(--csds-surface-raised); color: var(--csds-state-win); }
.fedman-status-detail { display: block; color: var(--csds-ink-muted); font-size: .8625rem; margin-top: 4px; }
.fedman-status-subhead { margin: 14px 0 8px; font-size: .8025rem; text-transform: uppercase; letter-spacing: .04em; color: var(--csds-ink-muted); }
.fedman-effect-list { list-style: none; margin: 0; padding: 0; }
.fedman-effect { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--csds-surface-raised); }
.fedman-effect-icon { font-size: 1.1625rem; }
.fedman-effect-name { font-weight: 600; }
.fedman-effect-dur { margin-left: auto; color: var(--csds-ink-muted); font-size: .8625rem; }

/* Month-to-month chart */
.fedman-record-chart-wrap { position: relative; height: 220px; }

/* Federation sub-tabs (fight record) */
.fedman-subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.fedman-subtab { background: var(--csds-surface-raised); border: 1px solid var(--csds-border-default); border-radius: 99px; padding: 5px 14px; font-size: .8825rem; cursor: pointer; color: var(--csds-ink); }
.fedman-subtab:hover { background: var(--csds-surface-raised); }
.fedman-subtab.is-active { background: var(--csds-surface-raised); border-color: var(--csds-crimson); color: var(--csds-ink); }
.fedman-subtab-count { margin-left: 6px; opacity: .75; font-variant-numeric: tabular-nums; }

/* Achievement / item tile grid */
.fedman-tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px; }
.fedman-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; background: var(--csds-surface-panel); border: 1px solid var(--csds-border-default); border-radius: 10px; padding: 12px 6px; cursor: pointer; text-align: center; transition: transform .08s ease, box-shadow .08s ease, border-color .08s ease; }
.fedman-tile:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgb(var(--csds-surface-base-rgb) / 0.12); border-color: var(--csds-border-default); }
.fedman-tile-icon { display: flex; align-items: center; justify-content: center; width: 70px; height: 70px; }
.fedman-tile-emoji { display: inline-block; }
.fedman-tile-img { object-fit: contain; }
.fedman-tile-name { font-size: .8625rem; line-height: 1.2; color: var(--csds-ink); word-break: break-word; }
.fedman-tile-qty { position: absolute; top: 6px; right: 8px; background: var(--csds-surface-raised); color: var(--csds-ink); border: var(--csds-border-hairline) solid var(--csds-border-default); font-size: .7625rem; font-weight: 700; border-radius: 99px; padding: 1px 7px; }

/* Forum activity — stats block */
.fedman-forum-stats { background: var(--csds-surface-panel); border: 1px solid var(--csds-border-default); border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; }
.fedman-forum-statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 12px; }
.fedman-fstat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.fedman-fstat-num { font-size: 1.5rem; font-weight: 800; color: var(--csds-ink); line-height: 1.1; }
.fedman-fstat-lbl { font-size: .7825rem; text-transform: uppercase; letter-spacing: .03em; color: var(--csds-ink-muted); }
.fedman-forum-boardbreak { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--csds-surface-raised); }
.fedman-forum-breaklabel { font-size: .8425rem; color: var(--csds-ink-muted); }
.fedman-forum-boardchip { background: var(--csds-surface-raised); border: 1px solid var(--csds-border-default); color: var(--csds-link); border-radius: 99px; padding: 3px 11px; font-size: .8625rem; }
.fedman-forum-boardchip strong { color: var(--csds-link); }
.fedman-forum-recent { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--csds-surface-raised); display: flex; flex-direction: column; gap: 3px; }
.fedman-forum-recent-label { font-size: .7825rem; text-transform: uppercase; letter-spacing: .03em; color: var(--csds-ink-muted); }
.fedman-forum-recent-link { font-weight: 700; color: var(--csds-link); }
.fedman-forum-recent-meta { font-size: .8625rem; color: var(--csds-ink-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* RP / OOC tags */
.fedman-rp-tag { font-size: .7225rem; font-weight: 800; letter-spacing: .04em; padding: 1px 7px; border-radius: 4px; text-transform: uppercase; }
.fedman-rp-rp { background: var(--csds-surface-raised); color: var(--csds-ink); box-shadow: inset 0 0 0 1px var(--csds-state-perk); } /* 071: purple text was 2.94:1; purple is the outline now */
.fedman-rp-ooc { background: var(--csds-surface-raised); color: var(--csds-ink-muted); }

/* Forum post list */
.fedman-forum-list { list-style: none; margin: 0; padding: 0; }
.fedman-forum-item { display: flex; align-items: flex-start; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--csds-surface-raised); }
.fedman-forum-item-body { flex: 1 1 auto; min-width: 0; }
.fedman-forum-item-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fedman-forum-item-type { font-size: .7425rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--csds-ink-muted); }
.fedman-forum-type-topic { color: var(--csds-link); }
.fedman-forum-item-title { font-weight: 600; color: var(--csds-ink); }
.fedman-forum-item-cf { margin: 3px 0 0; font-size: .8425rem; color: var(--csds-ink-muted); }
.fedman-forum-item-cf a { color: var(--csds-ink-muted); }
.fedman-forum-cf-author { color: var(--csds-ink-muted); font-weight: 600; }
.fedman-forum-item-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: .8225rem; color: var(--csds-ink-muted); }
.fedman-forum-stat-fed { font-weight: 600; color: var(--csds-ink-muted); }
.fedman-forum-stat-rating { color: var(--csds-gold); }
.fedman-forum-stat-count { color: var(--csds-ink-muted); font-weight: 400; }
.fedman-forum-item-date { flex: 0 0 auto; font-size: .8225rem; color: var(--csds-ink-muted); white-space: nowrap; padding-top: 1px; }

/* Detail modal */
body.fedman-modal-open { overflow: hidden; }
.fedman-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; }
.fedman-modal[hidden] { display: none; }
.fedman-modal-backdrop { position: absolute; inset: 0; background: rgb(var(--csds-surface-base-rgb) / 0.55); }
.fedman-modal-card { position: relative; z-index: 1; width: min(92vw, 380px); background: var(--csds-surface-panel); border-radius: 14px; padding: 26px 24px 24px; text-align: center; box-shadow: 0 20px 60px rgb(var(--csds-surface-base-rgb) / 0.35); }
.fedman-modal-close { position: absolute; top: 8px; right: 12px; background: none; border: none; font-size: 1.6rem; line-height: 1; color: var(--csds-ink-muted); cursor: pointer; }
.fedman-modal-icon { display: flex; align-items: center; justify-content: center; min-height: 84px; }
.fedman-modal-icon .fedman-tile-emoji { font-size: 64px; line-height: 84px; }
.fedman-modal-icon .fedman-tile-img { width: 84px; height: 84px; object-fit: contain; }
.fedman-modal-title { margin: 8px 0 6px; font-size: 1.2rem; color: var(--csds-ink); }
.fedman-modal-desc { margin: 0 0 14px; color: var(--csds-ink-muted); font-size: .9825rem; }
.fedman-modal-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; text-align: left; }
.fedman-modal-meta dt { color: var(--csds-ink-muted); font-size: .8825rem; }
.fedman-modal-meta dd { margin: 0; font-weight: 600; font-size: .8825rem; color: var(--csds-ink); }

/* ---- Nicknames + About (create-form fields surfaced) ---- */
/* Hero text sits over an arbitrary background image; a dark halo keeps it
   legible on light or dark artwork without knowing the image. */
.fedman-hero-nicknames {
	/* No gap of its own: the name above it carries no margin either, so the
	   two read as one block (user, 2026-09-24). */
	margin: 0;
	padding: 0;
	/* The same slant as the name, from the same origin, so the pair sits on
	   one line rather than one being tilted against the other. */
	transform: rotate(-2deg) skew(-2deg);
	transform-origin: left;
	font-size: .9625rem;
	font-style: italic;
	color: var(--csds-surface-panel);
	text-shadow: 0 1px 2px rgb(var(--csds-surface-base-rgb) / 0.9), 0 0 6px rgb(var(--csds-surface-base-rgb) / 0.7);
}
.fedman-hero-name {
	text-shadow: 0 1px 3px rgb(var(--csds-surface-base-rgb) / 0.85), 0 0 6px rgb(var(--csds-surface-base-rgb) / 0.55);
}

/*
 * The name is a graphic, set on a slant (2026-09-22, user's request).
 *
 * Scoped to `.csds-content` on purpose: the template's own `.csds-content h1`
 * (0,1,1) outranks a bare `.fedman-hero-name` (0,1,0) and was setting this
 * back to 34px. Two classes (0,2,0) win it back.
 */
.csds-content .fedman-hero-name {
	transform: rotate(-2deg) skew(-2deg);
	transform-origin: left;
	font-size: 56px;
	/* Nothing around the name (user, 2026-09-24). The template's own
	   `.csds-content h1` (0,1,1) sets a 16px bottom margin and beats a bare
	   class; two classes (0,2,0) take it back, and the nickname moves up. */
	margin: 0;
	padding: 0;
}

/* The same, for the nickname: `.csds-content p` gives every paragraph 16px. */
.csds-content .fedman-hero-nicknames {
	margin: 0;
	padding: 0;
}

/* The picker wraps the name; it must not add a gap of its own either. */
.csds-content .fedman-hero-picker,
.csds-content .fedman-hero-picker > summary {
	margin: 0;
	padding: 0;
}

/* 56px is a desktop size (user, 2026-09-22): on a phone the name keeps its
   own 34px, at the same breakpoint the chrome uses for the phone bar. */
@media (max-width: 782px) {
	.csds-content .fedman-hero-name { font-size: 34px; }
}
.fedman-ov-about .fedman-about-body { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.fedman-ov-about .fedman-portrait { flex: 0 0 auto; width: 160px; height: 200px; object-fit: cover; border-radius: 8px; }
.fedman-ov-about .fedman-bio-wrap { flex: 1 1 240px; min-width: 0; }
.fedman-ov-about .fedman-bio { line-height: 1.55; }
.fedman-ov-about .fedman-bio p { margin: 0 0 .6em; }

/*
 * 071 (D729): a long bio is cut to seven lines, faded at the foot, until
 * "Read more" is pressed. The control is a checkbox and its label — no script.
 * The box is kept in the tab order (hidden visually, not removed), so the
 * label works from a keyboard too.
 */
.fedman-bio-toggle {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.fedman-ov-about { position: relative; }
.fedman-bio-wrap.is-long .fedman-bio {
	max-height: calc(1.55em * 7);
	overflow: hidden;
	/* A mask reads only alpha: #000 is "fully shown", not a colour. */
	-webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
	mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.fedman-bio-toggle:checked ~ .fedman-bio { max-height: none; -webkit-mask-image: none; mask-image: none; }
.fedman-bio-more {
	display: inline-block; margin-top: 8px; cursor: pointer;
	font-weight: 600; color: var(--csds-link);
}
.fedman-bio-more:hover { text-decoration: underline; }
.fedman-bio-toggle:focus-visible ~ .fedman-bio-more { outline: 2px solid var(--csds-link); outline-offset: 2px; }
.fedman-bio-more-close,
.fedman-bio-toggle:checked ~ .fedman-bio-more .fedman-bio-more-open { display: none; }
.fedman-bio-toggle:checked ~ .fedman-bio-more .fedman-bio-more-close { display: inline; }
@media (max-width: 480px) {
  .fedman-ov-about .fedman-portrait { width: 120px; height: 150px; }
}

/* Owner quick-edit pencil in the profile hero (lower-right). */
.fedman-hero-edit {
	position: absolute;
	right: 14px;
	bottom: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgb(var(--csds-surface-base-rgb) / 0.45);
	color: var(--csds-surface-panel);
	box-shadow: 0 1px 3px rgb(var(--csds-surface-base-rgb) / 0.35);
	transition: background .12s ease, transform .12s ease;
}
.fedman-hero-edit:hover,
.fedman-hero-edit:focus {
	background: rgb(var(--csds-surface-base-rgb) / 0.72);
	color: var(--csds-surface-panel);
	transform: translateY(-1px);
}

/* =====================================================================
 * Notifications tab (020).
 *
 * Built to read like a WordPress admin list table, because that is the
 * list pattern this site's admins already know (see the Reward System's
 * Items screen): a toolbar of bulk actions above a bordered, striped
 * table with a grey heading row.
 *
 * Divi styles bare <table> elements, so every rule here is scoped to
 * .fedman-notif-table and states its own values rather than inheriting.
 * ===================================================================== */

.fedman-notifications {
	font-size: 1.0125rem;
}

/* Divi defines .screen-reader-text only in its custom-post-type stylesheets,
   which may or may not be on this page. Scoped here so the select labels are
   never left sitting visibly above their controls. */
.fedman-notifications .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
	white-space: nowrap;
}

.fedman-notif-notice {
	margin: 0 0 12px;
	padding: 10px 12px;
	background: var(--csds-surface-raised);
	border-left: 4px solid var(--csds-link-hover);
	border-radius: 2px;
	color: var(--csds-ink);
}

/* --- Toolbar ---------------------------------------------------------- */

.fedman-notif-tablenav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin: 0 0 10px;
}

.fedman-notif-bulk {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.fedman-notif-count {
	margin-left: auto;
	color: var(--csds-ink-muted);
	font-size: .9125rem;
	white-space: nowrap;
}

.fedman-notif-bulk-select,
.fedman-notif-type-filter {
	padding: 5px 8px;
	border: 1px solid var(--csds-border-default);
	border-radius: 4px;
	background: var(--csds-surface-panel);
	color: var(--csds-ink);
	font-size: .9125rem;
	line-height: 1.4;
	max-width: 100%;
}

.fedman-notif-apply {
	padding: 5px 12px;
	border: 1px solid var(--csds-link);
	border-radius: 4px;
	background: var(--csds-surface-raised);
	color: var(--csds-link);
	font-size: .9125rem;
	line-height: 1.4;
	cursor: pointer;
}

.fedman-notif-apply:hover,
.fedman-notif-apply:focus {
	background: var(--csds-crimson);
	color: var(--csds-ink);
}

/* The toolbar's select-all is for narrow screens only — on a wide screen
   the one in the table heading is right where the eye already is. */
.fedman-notif-selectall {
	display: none;
	align-items: center;
	gap: 6px;
	font-size: .9125rem;
	color: var(--csds-ink);
}

/* --- Table ------------------------------------------------------------ */

.fedman-notif-table {
	width: 100%;
	margin: 0;
	border: 1px solid var(--csds-border-default);
	border-radius: 4px;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--csds-surface-panel);
	table-layout: auto;
	overflow: hidden;
}

.fedman-notif-table thead th {
	padding: 9px 10px;
	background: var(--csds-surface-raised);
	border-bottom: 1px solid var(--csds-border-default);
	color: var(--csds-ink);
	font-size: .8825rem;
	font-weight: 600;
	text-align: left;
	line-height: 1.4;
	white-space: nowrap;
}

.fedman-notif-table tbody td {
	padding: 10px;
	border-bottom: 1px solid var(--csds-border-default);
	vertical-align: top;
	color: var(--csds-ink);
	line-height: 1.45;
}

.fedman-notif-table tbody tr:last-child td {
	border-bottom: 0;
}

/* Striping and hover, as in wp-admin's .striped tables. */
.fedman-notif-table tbody tr:nth-child(even) {
	background: var(--csds-surface-raised);
}

.fedman-notif-table tbody tr:hover {
	background: var(--csds-surface-raised);
}

.fedman-notif-table tbody tr.is-selected {
	background: var(--csds-surface-raised);
	box-shadow: inset 3px 0 0 var(--csds-link);
}

.fedman-notif-table thead th.fedman-notif-cb,
.fedman-notif-table tbody td.fedman-notif-cb {
	width: 2.4em;
	padding-right: 0;
}

.fedman-notif-col-type,
.fedman-notif-col-date {
	width: 10em;
}

/* --- Per-row actions -------------------------------------------------- */

.fedman-notif-col-actions {
	width: 5em;
}

.fedman-notif-actions {
	white-space: nowrap;
}

.fedman-notif-row-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 4px;
	background: none;
	color: var(--csds-ink-muted);
	cursor: pointer;
}

.fedman-notif-row-action .dashicons {
	width: 18px;
	height: 18px;
	font-size: 19px;
	line-height: 18px;
}

.fedman-notif-row-action:hover,
.fedman-notif-row-action:focus {
	border-color: var(--csds-border-default);
	background: var(--csds-surface-panel);
	color: var(--csds-link);
}

.fedman-notif-row-action.is-delete:hover,
.fedman-notif-row-action.is-delete:focus {
	color: var(--csds-state-loss);
}

/* An unread one gets the blue bar wp-admin uses for "needs attention". */
.fedman-notif-row.is-unread .fedman-notif-body {
	box-shadow: inset 3px 0 0 var(--csds-link-hover);
}

.fedman-notif-row.is-unread .fedman-notif-title,
.fedman-notif-row.is-unread .fedman-notif-message {
	font-weight: 600;
}

.fedman-notif-title {
	display: block;
	margin-bottom: 2px;
	color: var(--csds-ink);
}

.fedman-notif-message a {
	color: var(--csds-link);
	text-decoration: underline;
}

.fedman-notif-tag {
	display: inline-block;
	padding: 2px 8px;
	border: 1px solid var(--csds-border-default);
	border-radius: 10px;
	background: var(--csds-surface-panel);
	color: var(--csds-ink-muted);
	font-size: .8125rem;
	line-height: 1.6;
	white-space: nowrap;
}

.fedman-notif-date {
	color: var(--csds-ink-muted);
	font-size: .9125rem;
	white-space: nowrap;
}

.fedman-notif-exact {
	display: block;
	/* 071: was the border color (1.19–1.3:1), a line color, never text. */
	color: var(--csds-ink-muted);
	font-size: .8425rem;
}

/* --- Sortable headings ------------------------------------------------ */

.fedman-notif-sort {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--csds-ink);
	text-decoration: none;
}

.fedman-notif-sort:hover,
.fedman-notif-sort:focus,
.fedman-notif-sort.is-active {
	color: var(--csds-link);
}

.fedman-notif-arrow {
	font-size: .6em;
	line-height: 1;
}

.fedman-notif-note {
	margin: 10px 0 0;
	color: var(--csds-ink-muted);
	font-size: .8825rem;
}

/* --- Page links ------------------------------------------------------- */

.fedman-notif-pages {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.fedman-notif-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 28px;
	padding: 0 6px;
	border: 1px solid var(--csds-border-default);
	border-radius: 4px;
	background: var(--csds-surface-panel);
	color: var(--csds-link);
	font-size: .9625rem;
	line-height: 1;
	text-decoration: none;
}

.fedman-notif-page:hover,
.fedman-notif-page:focus {
	border-color: var(--csds-link);
	background: var(--csds-surface-raised);
	color: var(--csds-link);
}

.fedman-notif-page.is-disabled {
	border-color: var(--csds-border-default);
	color: var(--csds-border-default);
}

.fedman-notif-pageof {
	padding: 0 6px;
	color: var(--csds-ink-muted);
	font-size: .9125rem;
	white-space: nowrap;
}

/* --- The archive ------------------------------------------------------ */

.fedman-notif-archive {
	margin: 18px 0 0;
	border-top: 1px solid var(--csds-border-default);
	padding-top: 12px;
}

.fedman-notif-archive-toggle {
	cursor: pointer;
	color: var(--csds-ink-muted);
	font-size: .9425rem;
	font-weight: 600;
	list-style: revert; /* Divi hides the marker on summary in places. */
}

.fedman-notif-archive-toggle:hover,
.fedman-notif-archive-toggle:focus {
	color: var(--csds-link);
}

.fedman-notif-archive[open] .fedman-notif-archive-toggle {
	margin-bottom: 10px;
}

/* Archived rows read as set aside rather than current. */
.fedman-notif-archive .fedman-notif-table tbody td {
	color: var(--csds-ink-muted);
}

.fedman-notif-archive .fedman-notif-row.is-unread .fedman-notif-body {
	box-shadow: none;
}

.fedman-notif-archive .fedman-notif-row.is-unread .fedman-notif-title,
.fedman-notif-archive .fedman-notif-row.is-unread .fedman-notif-message {
	font-weight: 400;
}

/* --- Narrow screens ---------------------------------------------------
 *
 * 782px is WordPress's own admin breakpoint. Below it each row becomes a
 * card: the heading row is gone, so every cell carries its own label from
 * the data-label attribute, and the toolbar's select-all appears because
 * the heading's has just left with the heading.
 * --------------------------------------------------------------------- */

@media (max-width: 782px) {
	.fedman-notif-selectall {
		display: inline-flex;
	}

	.fedman-notif-count {
		margin-left: 0;
		width: 100%;
	}

	.fedman-notif-table,
	.fedman-notif-table tbody,
	.fedman-notif-table tr,
	.fedman-notif-table td {
		display: block;
		width: auto;
	}

	.fedman-notif-table {
		border: 0;
		background: none;
	}

	.fedman-notif-table thead {
		/* Not display:none — that would take it from screen readers too. */
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(1px, 1px, 1px, 1px);
		white-space: nowrap;
	}

	.fedman-notif-table tbody tr {
		position: relative;
		margin: 0 0 10px;
		padding: 10px 10px 10px 42px;
		border: 1px solid var(--csds-border-default);
		border-radius: 4px;
		background: var(--csds-surface-panel);
	}

	.fedman-notif-table tbody tr:nth-child(even),
	.fedman-notif-table tbody tr:hover {
		background: var(--csds-surface-panel);
	}

	.fedman-notif-table tbody tr.is-selected {
		background: var(--csds-surface-raised);
	}

	.fedman-notif-table tbody td {
		padding: 3px 0;
		border: 0;
	}

	/* The checkbox pins to the card's top-left corner. */
	.fedman-notif-table tbody td.fedman-notif-cb {
		position: absolute;
		top: 10px;
		left: 12px;
		width: auto;
		padding: 0;
	}

	.fedman-notif-table tbody td[data-label]::before {
		content: attr(data-label);
		display: block;
		color: var(--csds-ink-muted);
		font-size: .7825rem;
		font-weight: 600;
		text-transform: uppercase;
		letter-spacing: .02em;
	}

	/* The cells whose labels say nothing their contents do not. */
	.fedman-notif-table tbody td.fedman-notif-body::before,
	.fedman-notif-table tbody td.fedman-notif-actions::before {
		display: none;
	}

	/* Icons pin to the card's top-right, opposite the checkbox. */
	.fedman-notif-table tbody tr {
		padding-right: 76px;
	}

	.fedman-notif-table tbody td.fedman-notif-actions {
		position: absolute;
		top: 8px;
		right: 8px;
		padding: 0;
	}

	.fedman-notif-row.is-unread .fedman-notif-body {
		box-shadow: none;
	}

	.fedman-notif-row.is-unread {
		border-left: 3px solid var(--csds-link-hover);
	}

	.fedman-notif-date {
		white-space: normal;
	}

	.fedman-notif-exact {
		display: inline;
		margin-left: 6px;
	}
}

/* Contract standing on the Overview tab (021 FR-249). */
.fedman-ov-feds .fedman-contract-standing {
	margin: 0.85rem 0 0;
	padding-top: 0.75rem;
	border-top: 1px solid var(--csds-border-default);
	font-size: 0.9625rem;
	line-height: 1.45;
}

.fedman-ov-feds .fedman-contract-standing-label {
	display: block;
	font-size: 0.7825rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	opacity: 0.7;
}

/* The Contracts section sits above the notification list, so it needs a gap
   from it rather than a border — the list has a heavy tablenav of its own. */
.fedman-notifications .fedman-contracts {
	margin-bottom: 2.25rem;
}

/* =====================================================================
   022 — Wrestler profile enhancements
   ===================================================================== */

/* Commissioner line (FR-300). Sits above the name in the hero, so it carries
   the same dark halo the name and nicknames do — the background is an
   arbitrary uploaded image and cannot be assumed dark. */
.fedman-hero-office {
	margin: 0 0 2px;
	font-size: 0.8425rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--csds-gold-light);
	text-shadow: 0 1px 3px rgb(var(--csds-surface-base-rgb) / 0.85), 0 0 6px rgb(var(--csds-surface-base-rgb) / 0.55);
}
.fedman-hero-office a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid var(--csds-gold-dark);
}
.fedman-hero-office a:hover,
.fedman-hero-office a:focus {
	color: var(--csds-surface-panel);
	border-bottom-color: var(--csds-surface-panel);
}

/* Championships — two sections of artwork cards (FR-304 – FR-307). */
.fedman-champ-section + .fedman-champ-section {
	margin-top: 1.75rem;
}
.fedman-champ-section h3 {
	margin: 0 0 0.75rem;
}
.fedman-champ-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 14px;
}
.fedman-champ-card {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--csds-surface-raised);
	border: 1px solid var(--csds-border-default);
	border-radius: 10px;
	padding: 12px 14px;
}
/* Current belts read heavier than past ones — the difference between "is" and
   "was" should be visible before the heading is read. */
.fedman-champ-card--current {
	background: var(--csds-surface-raised);
	border-color: var(--csds-gold-dark);
}
.fedman-champ-art {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.fedman-champ-art img {
	max-width: 64px;
	max-height: 64px;
	width: auto;
	height: auto;
	object-fit: contain;
}
.fedman-champ-art-fallback {
	font-size: 38px;
	line-height: 1;
}
.fedman-champ-body {
	min-width: 0;
}
.fedman-champ-name {
	display: block;
	font-weight: 700;
	color: var(--csds-ink);
	line-height: 1.25;
}
.fedman-champ-card--current .fedman-champ-name {
	font-size: 1.1125rem;
}
.fedman-champ-dates {
	display: block;
	margin-top: 3px;
	font-size: 0.8625rem;
	color: var(--csds-ink-muted);
}

/* Federation chips are links now (FR-313). Same shape, so only the anchor
   inside needs neutralising. */
.fedman-fed-chip a {
	color: inherit;
	text-decoration: none;
}
.fedman-fed-chip:has(a):hover {
	background: var(--csds-surface-raised);
	border-color: var(--csds-border-default);
}
.fedman-fed-chip a:focus {
	text-decoration: underline;
}

/* Fight-record pager (FR-317). */
.fedman-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 14px;
}
.fedman-pager-btn {
	background: var(--csds-surface-panel);
	border: 1px solid var(--csds-border-default);
	border-radius: 8px;
	padding: 6px 14px;
	cursor: pointer;
	font-size: 0.9125rem;
	color: var(--csds-link);
}
.fedman-pager-btn:hover:not([disabled]) {
	background: var(--csds-surface-raised);
}
.fedman-pager-btn[disabled] {
	color: var(--csds-ink-muted);
	cursor: default;
}
.fedman-pager-status {
	font-size: 0.8825rem;
	color: var(--csds-ink-muted);
}

/* Match-type performance chart (FR-320). Same height as the month-by-month
   chart so the two read as one family. */
.fedman-matchtype-chart-wrap {
	position: relative;
	height: 240px;
	margin-bottom: 18px;
}
.fedman-matchtype-heading {
	margin: 0 0 8px;
	font-size: 1.0125rem;
	color: var(--csds-ink-muted);
}

/* Scouting item — activate from the locked Items tab (022 phase B). */
.fedman-scout-offer {
	margin-top: 12px;
	padding: 14px 16px;
	background: var(--csds-surface-raised);
	border: 1px solid var(--csds-border-default);
	border-radius: 10px;
	max-width: 460px;
}
.fedman-scout-pitch {
	margin: 0 0 10px;
	font-size: 0.9625rem;
	color: var(--csds-ink-muted);
}
.fedman-scout-activate {
	background: var(--csds-crimson);
	font: var(--csds-body-button);
	letter-spacing: var(--csds-body-button-letter-spacing);
	text-transform: uppercase;
	border: 0;
	border-radius: 8px;
	color: var(--csds-surface-panel);
	padding: 9px 16px;
	font-size: 0.9625rem;
	font-weight: 600;
	cursor: pointer;
}
.fedman-scout-activate:hover:not([disabled]) {
	background: var(--csds-scarlet);
}
.fedman-scout-activate[disabled] {
	background: var(--csds-ink-muted);
	cursor: default;
}
.fedman-scout-note:empty {
	display: none;
}
.fedman-scout-note {
	margin: 8px 0 0;
	font-size: 0.8825rem;
	color: var(--csds-state-loss);
}

/* The window is two minutes; it has to be obvious that a clock is running. */
.fedman-scout-active {
	margin: 0 0 12px;
	padding: 7px 12px;
	display: inline-block;
	background: var(--csds-surface-raised);
	border: 1px solid var(--csds-gold-dark);
	border-radius: 999px;
	font-size: 0.8825rem;
	font-weight: 600;
	color: var(--csds-gold-dark);
}

/* A bulk action that could not touch what was selected. Amber, not blue: it is
   not a confirmation, and it used to render as nothing at all. */
.fedman-notif-notice--warn {
	background: var(--csds-surface-raised);
	border-left-color: var(--csds-gold);
}

/* =====================================================================
   024 — the Account section (shared across all of a person's wrestlers)
   ===================================================================== */

.fedman-account-notifs {
	margin: 0 0 26px;
	padding: 16px 18px;
	background: var(--csds-surface-raised);
	border: 1px solid var(--csds-border-default);
	border-radius: 10px;
}
.fedman-account-heading {
	margin: 0 0 12px;
	font-size: 1.0625rem;
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
}
/* Says out loud that this list is not this wrestler's — the same rows are on
   every profile, and a member who did not know that would delete twice. */
.fedman-account-note {
	font-size: 0.8125rem;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--csds-ink-muted);
}
.fedman-account-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.fedman-account-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 12px;
	background: var(--csds-surface-panel);
	border: 1px solid var(--csds-border-default);
	border-radius: 8px;
}
.fedman-account-item.is-unread {
	border-left: 3px solid var(--csds-link);
}
.fedman-account-pick {
	flex: 0 0 auto;
	padding-top: 2px;
}
.fedman-account-body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.fedman-account-title {
	font-weight: 700;
	color: var(--csds-ink);
	font-size: 0.9825rem;
}
.fedman-account-message {
	color: var(--csds-ink-muted);
	font-size: 0.9425rem;
	line-height: 1.45;
}
.fedman-account-date {
	font-size: 0.8125rem;
	color: var(--csds-ink-muted);
}
.fedman-account-actions {
	flex: 0 0 auto;
	display: flex;
	gap: 2px;
}
.fedman-account-bulk {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
}
.fedman-account-archive {
	margin-top: 14px;
}
.fedman-account-archive summary {
	cursor: pointer;
	font-size: 0.9125rem;
	color: var(--csds-ink-muted);
}

@media (max-width: 600px) {
	.fedman-account-item {
		flex-wrap: wrap;
	}
	.fedman-account-actions {
		width: 100%;
		justify-content: flex-end;
	}
}

/* The profile's hero meets the top bar (user, 2026-09-22). Sides and bottom
   keep the template's padding; (0,2,0) over `.csds-main`. */
.csds-main:has(.fedman-wrestler-profile) { padding-top: 0; }

/* ---- The stat strip, inside the hero (2026-09-24) ---- */
/*
 * It used to be a band of its own below the hero. Inside, it sits under the
 * name block with the hero's own inner spacing, above the hero's z-index so
 * the background image's scrim does not grey it out.
 */
.fedman-profile-hero .fedman-statstrip-wrap {
	position: relative;
	z-index: 1;
	margin: 16px 0 0;
}

/* ---- The wrestler picker's rows (2026-09-24) ---- */
/*
 * `.csds-content ul` (0,1,1) gives every list bullets and an indent, and
 * `.csds-content a` underlines every link — both beat a single class, which
 * is why the picker showed bulleted, underlined names. Two classes take it
 * back. The bullet's job is done by the wrestler's own picture.
 */
.csds-content .fedman-picker-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.csds-content .fedman-picker-row { margin: 0; }

.csds-content .fedman-picker-item {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

.csds-content .fedman-picker-item:hover .fedman-picker-name,
.csds-content .fedman-picker-item:focus-visible .fedman-picker-name {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Round, like the hero's avatar, and small enough that the name leads. */
.fedman-picker-avatar {
	width: 24px;
	height: 24px;
	flex: 0 0 auto;
	border-radius: 50%;
	object-fit: cover;
	background: var(--csds-surface-raised);
}

/* ---- Perks tab (071) ---- */
.fedman-perks { display: grid; gap: 22px; }
.fedman-perk-heading { margin: 0 0 10px; font-size: .8625rem; text-transform: uppercase; letter-spacing: .04em; color: var(--csds-ink-muted); }
.csds-content .fedman-perk-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.fedman-perk {
	display: flex; flex-direction: column; gap: 4px;
	background: var(--csds-surface-panel); border: 1px solid var(--csds-border-default);
	border-left: 3px solid var(--csds-border-default); border-radius: 10px; padding: 12px 14px;
}
.fedman-perk.is-active { border-left-color: var(--csds-state-win); }
.fedman-perk-name { font-weight: 700; color: var(--csds-ink); }
.fedman-perk-desc { font-size: .9125rem; color: var(--csds-ink-muted); }
.fedman-perk-note { font-size: .8625rem; color: var(--csds-ink-muted); font-style: italic; }
.fedman-perk.is-replaced .fedman-perk-name,
.fedman-perk.is-locked .fedman-perk-name { color: var(--csds-ink-muted); }

/* 071: `.csds-content ul` (0,1,1) gives every list bullets; two classes take
   them back from the federation chips and the title list. */
.csds-content .fedman-fed-chips,
.csds-content .fedman-title-list { list-style: none; margin: 0; padding: 0; }
.fedman-goto-tab { color: var(--csds-link); }

/* 071 (D737): Record by Federation — Lifetime / This month for a plan with
   lifetime stats. Two radio buttons and their labels; no script. The radios
   stay in the tab order (hidden visually), so arrow keys switch them. */
.fedman-fedrec-radio {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.fedman-ov-fedrecord { position: relative; }
.fedman-seg { display: inline-flex; border: 1px solid var(--csds-border-default); border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
.fedman-seg-btn { padding: 5px 12px; cursor: pointer; font-size: .8625rem; background: var(--csds-surface-panel); color: var(--csds-ink-muted); }
.fedman-fedrec-radio--life:checked ~ .fedman-seg .fedman-seg-btn--life,
.fedman-fedrec-radio--month:checked ~ .fedman-seg .fedman-seg-btn--month { background: var(--csds-surface-raised); color: var(--csds-ink); font-weight: 600; }
.fedman-fedrec-radio--life:focus-visible ~ .fedman-seg .fedman-seg-btn--life,
.fedman-fedrec-radio--month:focus-visible ~ .fedman-seg .fedman-seg-btn--month { outline: 2px solid var(--csds-link); outline-offset: -2px; }
.fedman-fedrec-radio--life:checked ~ .fedman-fedrec-view--month,
.fedman-fedrec-radio--month:checked ~ .fedman-fedrec-view--life { display: none; }
.fedman-fedrec-range { margin: 0 0 8px; font-size: .7825rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--csds-ink-muted); }
