/**
 * Wrestler profile — tabbed, gated layout (feature 014).
 * Scoped under .fedman-wrestler-profile to avoid leaking into the theme.
 */

.fedman-wrestler-profile { max-width: 1100px; margin: 0 auto; }

/* 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;
	background: #1e2530;
	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, rgba(20,24,31,.35) 0%, rgba(20,24,31,.85) 100%);
}
.fedman-hero-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 20px; }
.fedman-hero-avatar img { width: 120px; height: 120px; border-radius: 50%; border: 3px solid #fff; object-fit: cover; }
.fedman-hero-name { color: #fff; font-size: 2rem; margin: 0; display: flex; align-items: center; gap: 12px; }
.fedman-inactive-badge {
	font-size: .7rem; text-transform: uppercase; letter-spacing: .05em;
	background: #b03a3a; color: #fff; 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;
}
.fedman-hero-picker > summary::-webkit-details-marker { display: none; }
.fedman-hero-picker > summary::after {
	content: "";
	width: 0; height: 0; margin-top: .3em; flex: 0 0 auto;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 7px solid rgba(255,255,255,.8);
	transition: transform .12s ease;
}
.fedman-hero-picker > summary:hover::after { border-top-color: #fff; }
.fedman-hero-picker[open] > summary::after { transform: rotate(180deg); }
.fedman-hero-picker > summary:focus-visible { outline: 2px solid #fff; 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: #fff;
	border: 1px solid #d7dde5; border-radius: 10px;
	box-shadow: 0 12px 30px rgba(15,20,28,.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 #cfd6df; border-radius: 6px;
	font-size: .9rem; color: #1e2530;
}
.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: .95rem; line-height: 1.3; color: #1e2530; text-decoration: none;
}
.fedman-picker-item:hover,
.fedman-picker-item:focus { background: #eef3f9; color: #1a4f86; }
.fedman-picker-item.is-current { font-weight: 700; color: #2c6fb3; }
.fedman-picker-empty { margin: 6px 4px; font-size: .88rem; font-style: italic; color: #7a8794; }

/* Stat strip */
.fedman-stat-strip {
	display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
	background: #f4f6f9; border: 1px solid #e2e7ee; border-radius: 10px;
	padding: 14px 18px; margin-bottom: 18px;
}
.fedman-range-toggle { display: inline-flex; border: 1px solid #cfd6df; border-radius: 8px; overflow: hidden; }
.fedman-range-btn { background: #fff; border: 0; padding: 6px 14px; cursor: pointer; font-size: .85rem; color: #46505c; }
.fedman-range-btn.is-active { background: #2c6fb3; color: #fff; }
.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: #1e2530; line-height: 1.1; }
.fedman-statbox-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #7a8794; }
.fedman-stat-locked, .fedman-stat-empty { color: #8a94a0; font-style: italic; }

/* Tabs */
.fedman-profile-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 2px solid #e2e7ee; margin-bottom: 18px; }
.fedman-tab {
	background: transparent; border: 0; border-bottom: 3px solid transparent;
	padding: 10px 16px; cursor: pointer; font-size: .92rem;
	color: #5a6672; margin-bottom: -2px;
}
.fedman-tab:hover { color: #2c6fb3; }
.fedman-tab.is-active { color: #1e2530; border-bottom-color: #2c6fb3; font-weight: 600; }

/* Panel + states */
.fedman-profile-panel.is-loading { opacity: .5; transition: opacity .15s; }
.fedman-profile-panel.is-error, .fedman-error { color: #b03a3a; }
.fedman-statstrip-wrap.is-loading { opacity: .5; }
.fedman-empty { color: #8a94a0; font-style: italic; }
.fedman-retry { background: none; border: 0; color: #2c6fb3; text-decoration: underline; cursor: pointer; }

/* Overview cards */
.fedman-profile-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.fedman-ov-card { background: #fff; border: 1px solid #e7ebf1; border-radius: 10px; padding: 16px 18px; }
.fedman-ov-card h3 { margin: 0 0 10px; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: #7a8794; }
.fedman-level-name { display: inline-block; font-weight: 700; padding: 2px 10px; border-left: 4px solid #ccc; }
.fedman-level-bar { height: 8px; background: #eef1f5; border-radius: 99px; overflow: hidden; margin: 10px 0 6px; }
.fedman-level-bar span { display: block; height: 100%; background: #2c6fb3; }
.fedman-level-meta, .fedman-ov-sub { font-size: .8rem; color: #7a8794; }
.fedman-rank-value { font-size: 2rem; font-weight: 800; color: #1e2530; }
.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.05rem; }
.fedman-reign-since { color: #7a8794; font-size: .8rem; }

/* 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 #eef1f5; font-size: .9rem; }
.fedman-fight-table th { color: #7a8794; text-transform: uppercase; font-size: .72rem; letter-spacing: .04em; }
.fedman-result { font-weight: 700; font-size: .72rem; padding: 2px 8px; border-radius: 4px; }
.fedman-result-win { background: #e3f4e6; color: #2f8a45; }
.fedman-result-loss { background: #fbe6e6; color: #b03a3a; }

/* 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: #f4f6f9; border: 1px solid #e2e7ee; border-radius: 8px; padding: 6px 12px; font-size: .85rem; }
.fedman-badge-qty { color: #7a8794; 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: .9rem; }
.fedman-fedrecord-table td { padding: 5px 4px; border-bottom: 1px solid #eef1f5; }
.fedman-fedrecord-table tfoot td { border-top: 2px solid #e2e7ee; border-bottom: none; }
.fedman-fedrecord-wl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fedman-fedrecord-pct { text-align: right; color: #7a8794; 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: #eef3fb; border: 1px solid #d5e2f3; color: #2c5c94; border-radius: 99px; padding: 4px 12px; font-size: .82rem; font-weight: 600; }

/* Owner status block */
.fedman-status-badge { display: inline-block; font-weight: 700; font-size: .82rem; padding: 3px 10px; border-radius: 6px; }
.fedman-status-injured { background: #fbe6e6; color: #b03a3a; }
.fedman-status-healthy { background: #e3f4e6; color: #2f8a45; }
.fedman-status-detail { display: block; color: #7a8794; font-size: .8rem; margin-top: 4px; }
.fedman-status-subhead { margin: 14px 0 8px; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: #7a8794; }
.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 #f0f3f7; }
.fedman-effect-icon { font-size: 1.1rem; }
.fedman-effect-name { font-weight: 600; }
.fedman-effect-dur { margin-left: auto; color: #7a8794; font-size: .8rem; }

/* 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: #f4f6f9; border: 1px solid #e2e7ee; border-radius: 99px; padding: 5px 14px; font-size: .82rem; cursor: pointer; color: #3a4553; }
.fedman-subtab:hover { background: #eaeef4; }
.fedman-subtab.is-active { background: #2c6fb3; border-color: #2c6fb3; color: #fff; }
.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: #fff; border: 1px solid #e7ebf1; 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 rgba(20, 40, 70, .12); border-color: #cdd6e2; }
.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: .8rem; line-height: 1.2; color: #2a333f; word-break: break-word; }
.fedman-tile-qty { position: absolute; top: 6px; right: 8px; background: #2c6fb3; color: #fff; font-size: .7rem; font-weight: 700; border-radius: 99px; padding: 1px 7px; }

/* Forum activity — stats block */
.fedman-forum-stats { background: #fff; border: 1px solid #e7ebf1; 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: #1e2530; line-height: 1.1; }
.fedman-fstat-lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: #7a8794; }
.fedman-forum-boardbreak { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #eef1f5; }
.fedman-forum-breaklabel { font-size: .78rem; color: #7a8794; }
.fedman-forum-boardchip { background: #eef3fb; border: 1px solid #d5e2f3; color: #2c5c94; border-radius: 99px; padding: 3px 11px; font-size: .8rem; }
.fedman-forum-boardchip strong { color: #1e3d63; }
.fedman-forum-recent { margin-top: 14px; padding-top: 12px; border-top: 1px solid #eef1f5; display: flex; flex-direction: column; gap: 3px; }
.fedman-forum-recent-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: #7a8794; }
.fedman-forum-recent-link { font-weight: 700; color: #2c6fb3; }
.fedman-forum-recent-meta { font-size: .8rem; color: #7a8794; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* RP / OOC tags */
.fedman-rp-tag { font-size: .66rem; font-weight: 800; letter-spacing: .04em; padding: 1px 7px; border-radius: 4px; text-transform: uppercase; }
.fedman-rp-rp { background: #e7e0fb; color: #5a3fb0; }
.fedman-rp-ooc { background: #e2eef0; color: #37727d; }

/* 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 #eef1f5; }
.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: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #8a94a0; }
.fedman-forum-type-topic { color: #2c6fb3; }
.fedman-forum-item-title { font-weight: 600; color: #1e2530; }
.fedman-forum-item-cf { margin: 3px 0 0; font-size: .78rem; color: #8a94a0; }
.fedman-forum-item-cf a { color: #55606d; }
.fedman-forum-cf-author { color: #55606d; font-weight: 600; }
.fedman-forum-item-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: .76rem; color: #8a94a0; }
.fedman-forum-stat-fed { font-weight: 600; color: #55606d; }
.fedman-forum-stat-rating { color: #b8860b; }
.fedman-forum-stat-count { color: #8a94a0; font-weight: 400; }
.fedman-forum-item-date { flex: 0 0 auto; font-size: .76rem; color: #8a94a0; 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: rgba(15, 22, 34, .55); }
.fedman-modal-card { position: relative; z-index: 1; width: min(92vw, 380px); background: #fff; border-radius: 14px; padding: 26px 24px 24px; text-align: center; box-shadow: 0 20px 60px rgba(10, 20, 40, .35); }
.fedman-modal-close { position: absolute; top: 8px; right: 12px; background: none; border: none; font-size: 1.6rem; line-height: 1; color: #9aa5b1; 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: #1e2530; }
.fedman-modal-desc { margin: 0 0 14px; color: #55606d; font-size: .92rem; }
.fedman-modal-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; text-align: left; }
.fedman-modal-meta dt { color: #7a8794; font-size: .82rem; }
.fedman-modal-meta dd { margin: 0; font-weight: 600; font-size: .82rem; color: #2a333f; }

/* ---- 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 {
	margin: 4px 0 0;
	font-size: .9rem;
	font-style: italic;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 6px rgba(0,0,0,.7);
}
.fedman-hero-name {
	text-shadow: 0 1px 3px rgba(0,0,0,.85), 0 0 6px rgba(0,0,0,.55);
}
.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 { flex: 1 1 240px; min-width: 0; line-height: 1.55; }
.fedman-ov-about .fedman-bio p { margin: 0 0 .6em; }
@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: rgba(0, 0, 0, .45);
	color: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
	transition: background .12s ease, transform .12s ease;
}
.fedman-hero-edit:hover,
.fedman-hero-edit:focus {
	background: rgba(0, 0, 0, .72);
	color: #fff;
	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: .95rem;
}

/* 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: #f0f6fc;
	border-left: 4px solid #72aee6;
	border-radius: 2px;
	color: #1d2327;
}

/* --- 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: #646970;
	font-size: .85rem;
	white-space: nowrap;
}

.fedman-notif-bulk-select,
.fedman-notif-type-filter {
	padding: 5px 8px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	background: #fff;
	color: #2c3338;
	font-size: .85rem;
	line-height: 1.4;
	max-width: 100%;
}

.fedman-notif-apply {
	padding: 5px 12px;
	border: 1px solid #2271b1;
	border-radius: 4px;
	background: #f6f7f7;
	color: #2271b1;
	font-size: .85rem;
	line-height: 1.4;
	cursor: pointer;
}

.fedman-notif-apply:hover,
.fedman-notif-apply:focus {
	background: #2271b1;
	color: #fff;
}

/* 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: .85rem;
	color: #2c3338;
}

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

.fedman-notif-table {
	width: 100%;
	margin: 0;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	border-collapse: separate;
	border-spacing: 0;
	background: #fff;
	table-layout: auto;
	overflow: hidden;
}

.fedman-notif-table thead th {
	padding: 9px 10px;
	background: #f6f7f7;
	border-bottom: 1px solid #c3c4c7;
	color: #1d2327;
	font-size: .82rem;
	font-weight: 600;
	text-align: left;
	line-height: 1.4;
	white-space: nowrap;
}

.fedman-notif-table tbody td {
	padding: 10px;
	border-bottom: 1px solid #f0f0f1;
	vertical-align: top;
	color: #2c3338;
	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: #f6f7f7;
}

.fedman-notif-table tbody tr:hover {
	background: #f0f6fc;
}

.fedman-notif-table tbody tr.is-selected {
	background: #f0f6fc;
	box-shadow: inset 3px 0 0 #2271b1;
}

.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: #787c82;
	cursor: pointer;
}

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

.fedman-notif-row-action:hover,
.fedman-notif-row-action:focus {
	border-color: #dcdcde;
	background: #fff;
	color: #2271b1;
}

.fedman-notif-row-action.is-delete:hover,
.fedman-notif-row-action.is-delete:focus {
	color: #d63638;
}

/* 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 #72aee6;
}

.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: #1d2327;
}

.fedman-notif-message a {
	color: #2271b1;
	text-decoration: underline;
}

.fedman-notif-tag {
	display: inline-block;
	padding: 2px 8px;
	border: 1px solid #dcdcde;
	border-radius: 10px;
	background: #fff;
	color: #50575e;
	font-size: .75rem;
	line-height: 1.6;
	white-space: nowrap;
}

.fedman-notif-date {
	color: #50575e;
	font-size: .85rem;
	white-space: nowrap;
}

.fedman-notif-exact {
	display: block;
	color: #8c8f94;
	font-size: .78rem;
}

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

.fedman-notif-sort {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #2c3338;
	text-decoration: none;
}

.fedman-notif-sort:hover,
.fedman-notif-sort:focus,
.fedman-notif-sort.is-active {
	color: #2271b1;
}

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

.fedman-notif-note {
	margin: 10px 0 0;
	color: #646970;
	font-size: .82rem;
}

/* --- 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 #dcdcde;
	border-radius: 4px;
	background: #fff;
	color: #2271b1;
	font-size: .9rem;
	line-height: 1;
	text-decoration: none;
}

.fedman-notif-page:hover,
.fedman-notif-page:focus {
	border-color: #2271b1;
	background: #f0f6fc;
	color: #2271b1;
}

.fedman-notif-page.is-disabled {
	border-color: #f0f0f1;
	color: #c3c4c7;
}

.fedman-notif-pageof {
	padding: 0 6px;
	color: #50575e;
	font-size: .85rem;
	white-space: nowrap;
}

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

.fedman-notif-archive {
	margin: 18px 0 0;
	border-top: 1px solid #dcdcde;
	padding-top: 12px;
}

.fedman-notif-archive-toggle {
	cursor: pointer;
	color: #50575e;
	font-size: .88rem;
	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: #2271b1;
}

.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: #50575e;
}

.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 #c3c4c7;
		border-radius: 4px;
		background: #fff;
	}

	.fedman-notif-table tbody tr:nth-child(even),
	.fedman-notif-table tbody tr:hover {
		background: #fff;
	}

	.fedman-notif-table tbody tr.is-selected {
		background: #f0f6fc;
	}

	.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: #646970;
		font-size: .72rem;
		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 #72aee6;
	}

	.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 rgba(127, 127, 127, 0.2);
	font-size: 0.9rem;
	line-height: 1.45;
}

.fedman-ov-feds .fedman-contract-standing-label {
	display: block;
	font-size: 0.72rem;
	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.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #ffd97a;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 0 6px rgba(0, 0, 0, 0.55);
}
.fedman-hero-office a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 217, 122, 0.5);
}
.fedman-hero-office a:hover,
.fedman-hero-office a:focus {
	color: #fff;
	border-bottom-color: #fff;
}

/* 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: #f7f9fc;
	border: 1px solid #e2e7ee;
	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: #fffaf0;
	border-color: #e8d9b4;
}
.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: #1e2530;
	line-height: 1.25;
}
.fedman-champ-card--current .fedman-champ-name {
	font-size: 1.05rem;
}
.fedman-champ-dates {
	display: block;
	margin-top: 3px;
	font-size: 0.8rem;
	color: #7a8794;
}

/* 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: #dfeaf8;
	border-color: #b9cee8;
}
.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: #fff;
	border: 1px solid #cfd6df;
	border-radius: 8px;
	padding: 6px 14px;
	cursor: pointer;
	font-size: 0.85rem;
	color: #2c6fb3;
}
.fedman-pager-btn:hover:not([disabled]) {
	background: #eef3fb;
}
.fedman-pager-btn[disabled] {
	color: #a8b1bb;
	cursor: default;
}
.fedman-pager-status {
	font-size: 0.82rem;
	color: #7a8794;
}

/* 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: 0.95rem;
	color: #46505c;
}

/* Scouting item — activate from the locked Items tab (022 phase B). */
.fedman-scout-offer {
	margin-top: 12px;
	padding: 14px 16px;
	background: #f7f9fc;
	border: 1px solid #e2e7ee;
	border-radius: 10px;
	max-width: 460px;
}
.fedman-scout-pitch {
	margin: 0 0 10px;
	font-size: 0.9rem;
	color: #46505c;
}
.fedman-scout-activate {
	background: #2c6fb3;
	border: 0;
	border-radius: 8px;
	color: #fff;
	padding: 9px 16px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
}
.fedman-scout-activate:hover:not([disabled]) {
	background: #245c95;
}
.fedman-scout-activate[disabled] {
	background: #a8b1bb;
	cursor: default;
}
.fedman-scout-note:empty {
	display: none;
}
.fedman-scout-note {
	margin: 8px 0 0;
	font-size: 0.82rem;
	color: #b03a3a;
}

/* 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: #fff6e0;
	border: 1px solid #e8d9b4;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 600;
	color: #7a5c14;
}

/* 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: #fcf6e5;
	border-left-color: #dba617;
}

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

.fedman-account-notifs {
	margin: 0 0 26px;
	padding: 16px 18px;
	background: #f7f9fc;
	border: 1px solid #e2e7ee;
	border-radius: 10px;
}
.fedman-account-heading {
	margin: 0 0 12px;
	font-size: 1rem;
	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.75rem;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #7a8794;
}
.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: #fff;
	border: 1px solid #e6ebf2;
	border-radius: 8px;
}
.fedman-account-item.is-unread {
	border-left: 3px solid #2c6fb3;
}
.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: #1e2530;
	font-size: 0.92rem;
}
.fedman-account-message {
	color: #46505c;
	font-size: 0.88rem;
	line-height: 1.45;
}
.fedman-account-date {
	font-size: 0.75rem;
	color: #8a94a0;
}
.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.85rem;
	color: #5a6672;
}

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