/**
 * Obitleague design system.
 *
 * Monochrome typewriter: one mono family carries all copy, a single
 * heavier display family carries titles, and every colour is a grey. The
 * only permitted variation is weight, size and style, so hierarchy is
 * carried by contrast and space instead of hue.
 *
 * Mobile-first; scales at 720px and 1024px. Site chrome lives in chrome.css.
 */

:root {
	/* Type: two families, nothing else. */
	--ob-font-body: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--ob-font-display: 'Outfit', 'Helvetica Neue', Arial, sans-serif;

	/* Greys only. Ink is near-black, paper is a hair off white so panels
	   still separate from the sheet behind them. */
	--ob-ink: #16181b;
	--ob-ink-soft: #2f343a;
	--ob-muted: #5c6167;
	--ob-faint: #8b9098;
	--ob-paper: #f2f2f0;
	--ob-card: #ffffff;
	--ob-line: #dededa;
	--ob-line-soft: #ebebe8;
	--ob-accent: #2f343a;
	--ob-accent-deep: #16181b;
	--ob-accent-soft: #e9e9e6;
	/* Legacy accent slots, kept as names so the older rules keep working. */
	--ob-brass: #7c8087;
	--ob-brass-soft: #ededea;
	--ob-rose: #3c4147;
	--ob-rose-soft: #eeeeec;
	--ob-green: #2f343a;
	--ob-green-deep: #16181b;
	--ob-green-ink: #16181b;

	/* Square corners and hairline shadows: this is printed matter, not an app. */
	--ob-radius: 6px;
	--ob-radius-sm: 3px;
	--ob-shadow: 0 1px 2px rgba(22, 24, 27, 0.05);
	--ob-shadow-lift: 0 2px 8px rgba(22, 24, 27, 0.1);
	--ob-ease: cubic-bezier(0.22, 1, 0.1, 1);
}

/* ---------- page scaffold ---------- */
.ob-page {
	max-width: 1140px;
	margin: 0 auto;
	padding: 20px 16px 8px;
	color: var(--ob-ink);
}

/* ---------- typography ---------- */
/* Only two families exist. Weight, size and style do all the differentiating;
   colour never carries meaning. */
.ob-heading {
	font-family: var(--ob-font-display);
	font-weight: 800;
	font-size: 1.9rem;
	letter-spacing: -0.03em;
	line-height: 1.1;
	margin: 34px 0 6px;
	display: flex;
	align-items: center;
	gap: 14px;
}
/* The rule after a heading is the one flourish we allow: a typewriter typing
   line, so it is a hard hairline rather than a gradient. */
.ob-heading::after {
	content: '';
	height: 1px;
	width: 48px;
	border-radius: 0;
	background: var(--ob-ink);
	opacity: 0.35;
	flex: 0 0 auto;
}
.ob-heading:first-child { margin-top: 8px; }
.ob-sub {
	color: var(--ob-muted);
	margin: 0 0 20px;
	font-size: 0.98rem;
	max-width: 62ch;
}

/* ---------- hero ---------- */
/* Flat near-black panel. The only texture is a faint ruled grid, the way a
   sheet of continuous-feed paper reads under a ribbon. */
.ob-hero {
	position: relative;
	overflow: hidden;
	border-radius: 0;
	margin: 22px 0 6px;
	padding: 56px 34px 54px;
	background: #16181b;
	color: #ffffff;
	box-shadow: none;
}
.ob-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 28px);
	pointer-events: none;
}
.ob-hero__kicker {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--ob-font-body);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #8b9098;
	margin: 0 0 16px;
}
.ob-hero__kicker::before {
	content: '';
	flex: 0 0 auto;
	width: 32px;
	height: 1px;
	background: #8b9098;
}
/* Tracked-out mono wraps early, so on narrow screens the kicker drops the
   rule and tightens rather than orphaning it beside a short line. */
@media (max-width: 560px) {
	.ob-hero__kicker {
		letter-spacing: 0.16em;
		gap: 0;
	}

	.ob-hero__kicker::before {
		display: none;
	}
}
.ob-hero h1 {
	position: relative;
	font-family: var(--ob-font-display);
	font-weight: 800;
	font-size: clamp(2.3rem, 6vw, 3.6rem);
	line-height: 1;
	letter-spacing: -0.035em;
	margin: 0 0 16px;
	max-width: 16ch;
}
.ob-hero p {
	position: relative;
	margin: 0 0 24px;
	font-size: 0.95rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.72);
	max-width: 58ch;
}
/* The entry deadline, stated where a first-time visitor reads what the game
   is. Quieter than the description, and the only line that answers "when do
   I have to decide?". */
.ob-hero .ob-hero__note {
	position: relative;
	margin: 0;
	font-family: var(--ob-font-body);
	font-size: 0.82rem;
	line-height: 1.6;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.6);
	max-width: 58ch;
}
.ob-hero__cta {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}
.ob-hero__cta a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 24px;
	border-radius: 3px;
	background: #ffffff;
	color: #16181b;
	font-weight: 700;
	font-size: 0.82rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	border: 1px solid #ffffff;
	box-shadow: none;
	transition: background 0.18s var(--ob-ease), color 0.18s;
}
.ob-hero__cta a:hover {
	transform: none;
	background: transparent;
	color: #ffffff;
	box-shadow: none;
}

/* ---------- stat tiles ---------- */
.ob-stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0;
	margin: 24px 0 8px;
	border-top: 1px solid var(--ob-ink);
	border-left: 1px solid var(--ob-line);
}
.ob-stat {
	position: relative;
	background: var(--ob-card);
	border: 1px solid var(--ob-line);
	border-top: 0;
	border-left: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 22px 16px 20px;
	text-align: left;
	overflow: hidden;
	transition: background 0.2s var(--ob-ease);
}
/* Tiles share one hairline grid, like a boxed table. Hover is a wash, not a
   lift — nothing on this site floats. */
.ob-stat:hover {
	transform: none;
	box-shadow: none;
	background: var(--ob-accent-soft);
}
.ob-badge--provisional {
	background: #e9e9e9;
	color: #3c4147;
	border: 1px dashed #b0b0b0;
}
.ob-person__status--provisional {
	background: #e9e9e9;
	color: #3c4147;
}
.ob-stat__num {
	display: block;
	font-family: var(--ob-font-display);
	font-weight: 800;
	font-size: 2.6rem;
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--ob-ink);
	font-variant-numeric: tabular-nums;
}
.ob-stat__label {
	display: block;
	margin-top: 8px;
	font-size: 0.68rem;
	font-weight: 500;
	color: var(--ob-muted);
	text-transform: uppercase;
	letter-spacing: 0.18em;
}

/* ---------- cards & grids ---------- */
.ob-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
	margin: 16px 0;
}
.ob-grid > * {
	min-width: 0;
}
.ob-card {
	background: var(--ob-card);
	border: 1px solid var(--ob-line);
	border-radius: var(--ob-radius);
	box-shadow: none;
	padding: 20px 18px;
	transition: border-color 0.2s;
}
.ob-card:hover {
	box-shadow: none;
	border-color: var(--ob-ink-soft);
}
.ob-card__title {
	font-family: var(--ob-font-display);
	font-weight: 700;
	font-size: 1.15rem;
	margin: 0 0 12px;
	letter-spacing: -0.02em;
}

/* ---------- standings tables ---------- */
.ob-table-scroll,
.ob-admin-table-scroll {
	max-width: 100%;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	-webkit-overflow-scrolling: touch;
}
.ob-admin-table-scroll {
	margin: 12px 0 20px;
}
.ob-admin-table-scroll > table {
	min-width: 620px;
}
.ob-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92rem;
}
.ob-table--overall {
	min-width: 640px;
}
.ob-table--compact {
	min-width: 360px;
}
.ob-table th {
	text-align: left;
	font-size: 0.66rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--ob-muted);
	padding: 10px 8px;
	border-bottom: 1px solid var(--ob-ink);
}
.ob-table td {
	padding: 10px 8px;
	border-bottom: 1px solid var(--ob-line);
	font-variant-numeric: tabular-nums;
}
.ob-table tbody tr {
	transition: background 0.15s;
}
.ob-table tbody tr:hover {
	background: #f8f8f8;
}
.ob-table tr:last-child td {
	border-bottom: 0;
}
.ob-rank {
	font-weight: 800;
	color: var(--ob-muted);
	width: 2.2em;
}
.ob-rank--1, .ob-rank--2, .ob-rank--3 {
	color: var(--ob-ink);
}
/* Podium is expressed with ink density and weight, not gold/silver/bronze:
   1st is solid, 2nd is outlined, 3rd is faint. */
.ob-medal {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 3px;
	font-size: 0.78rem;
	font-weight: 500;
	color: var(--ob-muted);
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--ob-line);
}
.ob-medal--1 {
	color: #ffffff;
	background: var(--ob-ink);
	box-shadow: none;
}
.ob-medal--2 {
	color: var(--ob-ink);
	background: transparent;
	box-shadow: inset 0 0 0 1.5px var(--ob-ink-soft);
}
.ob-medal--3 {
	color: var(--ob-muted);
	background: #efefef;
	box-shadow: none;
}
.ob-pts {
	font-weight: 800;
	color: var(--ob-accent-deep);
}
.ob-lead {
	font-weight: 700;
	border-left: 2px solid var(--ob-ink);
	padding-left: 8px;
	margin-left: -10px;
}

/* ---------- death rows ---------- */
.ob-deaths {
	display: flex;
	flex-direction: column;
}
.ob-death {
	display: flex;
	gap: 12px;
	align-items: baseline;
	padding: 12px 2px;
	border-bottom: 1px solid var(--ob-line);
}
.ob-death:last-child {
	border-bottom: 0;
}
.ob-death__date {
	flex: 0 0 auto;
	font-size: 0.76rem;
	color: var(--ob-muted);
	font-variant-numeric: tabular-nums;
	min-width: 82px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: 600;
}
.ob-death__name {
	font-family: var(--ob-font-display);
	font-weight: 700;
	font-size: 1.02rem;
}
.ob-death__name a {
	color: var(--ob-ink);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.15s, color 0.15s;
}
.ob-death__name a:hover {
	color: var(--ob-accent);
	border-color: var(--ob-accent);
}
.ob-death__meta {
	color: var(--ob-muted);
	font-size: 0.82rem;
	margin-top: 2px;
}
/* Status tags. With no hue available they separate by fill, border weight
   and ink density: solid = scored/confirmed, outline = pending, dashed =
   nothing yet. */
.ob-badge {
	display: inline-block;
	background: var(--ob-accent-soft);
	color: var(--ob-accent-deep);
	border: 1px solid transparent;
	border-radius: 3px;
	padding: 3px 9px;
	font-size: 0.66rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	margin-left: 6px;
	white-space: nowrap;
}
.ob-badge--brass {
	background: #dcdcd8;
	color: #3c4147;
}
.ob-badge--warn {
	background: transparent;
	color: var(--ob-ink);
	border-color: var(--ob-ink);
}
.ob-badge--hit {
	background: var(--ob-ink);
	color: #ffffff;
}
.ob-badge--miss {
	background: transparent;
	color: var(--ob-muted);
	border: 1px dashed var(--ob-line);
}

/* Hit/miss filter chips on the obituaries index. */
.ob-chip {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: 3px;
	border: 1px solid var(--ob-line);
	background: var(--ob-card);
	color: var(--ob-muted);
	font-size: 0.68rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	text-decoration: none;
}
.ob-chip:hover {
	border-color: var(--ob-ink);
	color: var(--ob-ink);
}
.ob-chip.is-active {
	background: var(--ob-ink);
	border-color: var(--ob-ink);
	color: #ffffff;
}
.ob-deaths-index__filters {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

/* ---------- people grid ---------- */
/* minmax(0, 1fr), never bare 1fr: a bare 1fr keeps its content's minimum
   width, so a long unbroken name or occupation can force the whole grid
   wider than the phone and scroll the page sideways. */
.ob-people {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
.ob-person {
	position: relative;
	background: var(--ob-card);
	border: 1px solid var(--ob-line);
	border-radius: var(--ob-radius);
	padding: 14px 12px 12px;
	box-shadow: none;
	min-width: 0;
	overflow: hidden;
	transition: background 0.2s var(--ob-ease), border-color 0.2s;
}
.ob-person:hover {
	transform: none;
	box-shadow: none;
	border-color: var(--ob-ink);
}
/* Monogram tiles are flat ink-grey squares; the dead/living distinction is
   carried by ink weight alone. */
.ob-person__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 3px;
	margin: 0 0 10px;
	background: #e9e9e6;
	color: #5c6167;
	font-family: var(--ob-font-display);
	font-weight: 800;
	font-size: 1rem;
}
.ob-person--dead .ob-person__avatar {
	background: var(--ob-ink);
	color: #ffffff;
}
.ob-person__name {
	font-family: var(--ob-font-display);
	font-weight: 700;
	font-size: 0.98rem;
	margin: 0 0 3px;
	line-height: 1.25;
	overflow-wrap: anywhere;
}
.ob-person__name a {
	color: var(--ob-ink);
	text-decoration: none;
}
.ob-person__name a:hover {
	color: var(--ob-accent);
}
.ob-person__role {
	color: var(--ob-muted);
	font-size: 0.78rem;
	margin: 0 0 8px;
	line-height: 1.4;
	overflow-wrap: anywhere;
}
.ob-person__dates {
	font-size: 0.74rem;
	color: var(--ob-muted);
	font-variant-numeric: tabular-nums;
	margin: 0;
	overflow-wrap: anywhere;
}
.ob-person__status {
	position: absolute;
	top: 10px;
	right: 10px;
	font-size: 0.62rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ob-accent);
	background: var(--ob-accent-soft);
	border-radius: 3px;
	padding: 3px 8px;
}
.ob-person--dead .ob-person__status {
	color: #616161;
	background: var(--ob-brass-soft);
}

/* ---------- filters ---------- */
.ob-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 16px;
	align-items: center;
}
.ob-filters input[type="text"],
.ob-filters select {
	padding: 10px 12px;
	border: 1px solid var(--ob-line);
	border-radius: var(--ob-radius-sm);
	background: var(--ob-card);
	font-size: 0.92rem;
	min-height: 46px;
	font-family: inherit;
	color: var(--ob-ink);
	box-shadow: var(--ob-shadow);
}
.ob-filters button {
	padding: 10px 20px;
	min-height: 46px;
	border: 0;
	border-radius: var(--ob-radius-sm);
	background: var(--ob-accent-deep);
	color: #ffffff;
	font-weight: 700;
	font-size: 0.9rem;
	cursor: pointer;
	transition: transform 0.15s var(--ob-ease), background 0.15s;
	font-family: inherit;
}
.ob-filters button:hover {
	transform: translateY(-1px);
	background: #3d3d3d;
}

/* ---------- responsive ---------- */
@media (min-width: 720px) {
	.ob-page {
		padding: 30px 22px 10px;
	}
	.ob-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.ob-card {
		min-width: 0;
	}
	.ob-stats {
		grid-template-columns: repeat(3, 1fr);
	}
	.ob-people {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.ob-heading {
		font-size: 2.1rem;
	}
	.ob-hero {
		padding: 68px 48px 62px;
		margin-top: 30px;
	}
	.ob-deaths--feature {
		display: grid;
		grid-template-columns: 1.1fr 1fr;
		gap: 0 22px;
	}
}
@media (min-width: 1024px) {
	.ob-page {
		padding: 38px 26px 12px;
	}
	.ob-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.ob-people {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
	.ob-stats {
		grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	}
	.ob-hero h1 {
		font-size: 3.6rem;
	}
}

/* ---------- person template bits ---------- */
.obitleague-person,
.obitleague-archive {
	max-width: 920px;
	margin: 0 auto;
	padding: 24px 16px;
}
.obitleague-person__facts {
	display: grid;
	grid-template-columns: 1fr;
	gap: 4px 14px;
	background: var(--ob-card);
	border: 1px solid var(--ob-line);
	border-radius: var(--ob-radius);
	padding: 18px 16px;
	box-shadow: var(--ob-shadow);
}
.obitleague-person__facts dt {
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: var(--ob-muted);
	margin-top: 10px;
	font-weight: 700;
}
.obitleague-person__facts dd {
	margin: 0;
	font-weight: 600;
}
.obitleague-archive__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.obitleague-archive__list li {
	padding: 10px 2px;
	border-bottom: 1px solid var(--ob-line);
}
@media (min-width: 720px) {
	.obitleague-person__facts {
		grid-template-columns: 150px 1fr;
	}
	.obitleague-person__facts dt {
		margin-top: 0;
	}
}

/* ---------- occupations ---------- */
/* Cards carry one occupation tag; the profile page lists them all. */
.ob-person__occ {
	margin: 0 0 6px;
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--ob-muted);
	overflow-wrap: anywhere;
}
.ob-person__occ .ob-occ-tag {
	font-size: 0.6rem;
	padding: 2px 7px;
	margin: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
}
.ob-occ-tag--plain {
	pointer-events: none;
}
.ob-person__role + .ob-person__occ {
	margin-top: -2px;
}
.ob-profile__occ {
	margin: 6px 0 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ob-muted);
	max-width: 60ch;
}

/* ---------- people browse toolbar: search, sorts, letters, pagination ---------- */
.ob-people__toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 14px;
}
.ob-people__search {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	flex: 1 1 260px;
	max-width: 420px;
}
.ob-people__search input[type="search"] {
	flex: 1 1 150px;
	padding: 10px 12px;
	border: 1px solid var(--ob-line);
	border-radius: var(--ob-radius-sm);
	background: var(--ob-card);
	font-size: 0.92rem;
	min-height: 44px;
	font-family: inherit;
	color: var(--ob-ink);
	box-shadow: var(--ob-shadow);
}
.ob-people__search button {
	padding: 10px 18px;
	min-height: 44px;
	border: 0;
	border-radius: var(--ob-radius-sm);
	background: var(--ob-accent-deep);
	color: #ffffff;
	font-weight: 700;
	font-size: 0.88rem;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.15s;
}
.ob-people__search button:hover {
	background: #3d3d3d;
}
.ob-people__sorts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.ob-people__sort {
	padding: 8px 14px;
	border: 1px solid var(--ob-line);
	border-radius: 3px;
	background: var(--ob-card);
	color: var(--ob-ink);
	font-size: 0.84rem;
	font-weight: 600;
	text-decoration: none;
	box-shadow: var(--ob-shadow);
	transition: background 0.15s, color 0.15s;
}
.ob-people__sort:hover {
	border-color: var(--ob-accent);
}
.ob-people__sort.is-active {
	background: var(--ob-accent-deep);
	border-color: var(--ob-accent-deep);
	color: #ffffff;
}
.ob-people__letters {
	display: flex;
	flex-wrap: wrap;
	gap: 3px;
	margin: 0 0 16px;
}
/* On phones a wrapped A–Z eats three rows of vertical space; let it scroll
   sideways as a single strip instead. */
@media (max-width: 640px) {
	.ob-people__letters {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 4px;
		scrollbar-width: thin;
	}
	.ob-people__letters::-webkit-scrollbar {
		height: 4px;
	}
	.ob-people__letter {
		flex: 0 0 auto;
	}
}
.ob-people__letter {
	min-width: 26px;
	padding: 4px 5px;
	text-align: center;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--ob-accent-deep);
	text-decoration: none;
	border-radius: 3px;
}
.ob-people__letter:hover {
	background: var(--ob-accent-soft);
}
.ob-people__letter.is-active {
	background: var(--ob-accent-deep);
	color: #ffffff;
}
.ob-people__letter.is-empty {
	color: var(--ob-line);
	cursor: default;
}
.ob-people__pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
	margin: 22px 0 6px;
}
.ob-people__count {
	font-size: 0.85rem;
	color: var(--ob-muted);
}
.ob-people__links {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	align-items: center;
}
.ob-page-link {
	padding: 7px 12px;
	border: 1px solid var(--ob-line);
	border-radius: var(--ob-radius-sm);
	background: var(--ob-card);
	color: var(--ob-ink);
	font-size: 0.86rem;
	font-weight: 600;
	text-decoration: none;
	box-shadow: var(--ob-shadow);
}
.ob-page-link:hover {
	border-color: var(--ob-accent);
}
.ob-page-link.is-current {
	background: var(--ob-accent-deep);
	border-color: var(--ob-accent-deep);
	color: #ffffff;
}
.ob-page-gap {
	color: var(--ob-muted);
	padding: 0 2px;
}
@media (max-width: 720px) {
	.ob-people__toolbar {
		flex-direction: column;
		align-items: stretch;
	}
	.ob-people__search {
		max-width: none;
	}
	/* Sort chips scroll as one strip rather than stacking into a block. */
	.ob-people__sorts {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 4px;
		scrollbar-width: thin;
	}
	.ob-people__sort {
		flex: 0 0 auto;
		white-space: nowrap;
	}
}

/* --- Humans vs AI: agent cards, profiles, VS tiles --- */

.ob-ai-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: var(--ob-space-sm, 1rem);
}

.ob-ai-card {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1rem 1.1rem;
	border: 1px solid var(--ob-line);
	border-radius: var(--ob-radius-sm, 8px);
	background: var(--ob-card);
	color: var(--ob-ink);
	text-decoration: none;
	box-shadow: var(--ob-shadow);
	transition: transform 120ms ease;
}

.ob-ai-card:hover { transform: translateY(-2px); }

.ob-ai-card__category {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ob-muted, #676767);
}

.ob-ai-card__category--official { color: var(--ob-accent, #717171); }

.ob-ai-card__name { font-weight: 700; font-size: 1.05rem; }

.ob-ai-card__desc {
	font-size: 0.86rem;
	color: var(--ob-muted, #676767);
	line-height: 1.45;
}

.ob-ai-card__model { font-size: 0.78rem; color: var(--ob-muted, #676767); }

.ob-ai-meta {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.4rem 1.2rem;
	margin: 0;
}

.ob-ai-meta dt { font-weight: 700; color: var(--ob-muted, #676767); }
.ob-ai-meta dd { margin: 0; }

.ob-ai-badge {
	display: inline-block;
	padding: 0.05rem 0.5rem;
	border: 1px solid var(--ob-line);
	border-radius: 3px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ob-ai-badge--verified {
	border-color: var(--ob-accent, #717171);
	color: var(--ob-accent, #717171);
}

.ob-ai-pick {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.45rem 0;
	border-bottom: 1px solid var(--ob-line);
}

.ob-ai-pick img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

.ob-ai-pick__points { margin-left: auto; font-weight: 700; color: var(--ob-accent, #717171); }

.ob-vs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: var(--ob-space-sm, 1rem);
}

.ob-vs-caveat {
	font-size: 0.84rem;
	color: var(--ob-muted, #676767);
	border-left: 3px solid var(--ob-line);
	padding-left: 0.8rem;
}

@media (max-width: 600px) {
	.ob-ai-grid, .ob-vs-grid { grid-template-columns: 1fr 1fr; }
	.ob-ai-meta { grid-template-columns: 1fr; }
	.ob-ai-meta dt { margin-top: 0.4rem; }
}

/* Status words render as badges, not giant display numerals (#5 in UX report). */
.ob-my-league__state.ob-my-league__state {
	font-family: var(--ob-font-body, var(--ob-font-body));
	font-size: 0.9rem;
	font-weight: 700;
	text-transform: lowercase;
	letter-spacing: 0.01em;
	background: var(--ob-accent-soft);
	color: var(--ob-accent-deep);
	border-radius: 3px;
	padding: 4px 12px;
}

/* ---------- team directory ---------- */
.ob-teams {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
	margin: 18px 0;
}
.ob-team {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px;
	background: var(--ob-card);
	border: 1px solid var(--ob-line);
	border-radius: var(--ob-radius);
	box-shadow: var(--ob-shadow);
	color: var(--ob-ink);
	text-decoration: none;
	transition: transform 0.15s var(--ob-ease), border-color 0.15s;
}
.ob-team:hover {
	transform: translateY(-2px);
	border-color: var(--ob-accent);
}
.ob-team__badge {
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--ob-accent-soft);
	color: var(--ob-accent-deep);
	font-family: var(--ob-font-display);
	font-weight: 700;
	font-size: 1.1rem;
}
.ob-team__name {
	font-family: var(--ob-font-display);
	font-weight: 600;
	font-size: 1.02rem;
	line-height: 1.25;
}
.ob-team__owner {
	font-size: 0.8rem;
	color: var(--ob-muted);
}
.ob-team__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 4px;
	font-size: 0.78rem;
	color: var(--ob-muted);
}
.ob-team__rank,
.ob-team__pts {
	background: var(--ob-brass-soft);
	border-radius: 3px;
	padding: 2px 10px;
	color: var(--ob-accent-deep);
	font-weight: 600;
}

/* ---------- obituaries index / source chips ---------- */
.ob-source-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--ob-accent-deep);
	background: var(--ob-accent-soft);
	border-radius: 3px;
	padding: 3px 10px;
	text-decoration: none;
}
.ob-source-chip__icon {
	width: 14px;
	height: 14px;
	flex: 0 0 auto;
	display: block;
	border-radius: 2px;
}
.ob-source-chip__label {
	line-height: 1;
}
.ob-source-chip--more {
	background: transparent;
	border: 1px dashed var(--ob-line);
	color: var(--ob-muted);
}
.ob-person__sources {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}
.ob-deaths-index .ob-person__name {
	margin-bottom: 2px;
}

/* ---------- obit-page news sources ---------- */
.ob-sources__subhead {
	margin: 0 0 8px;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ob-muted);
}
.ob-sources__news {
	margin: 0 0 14px;
}
.ob-sources__news li {
	display: flex;
	gap: 10px;
	align-items: baseline;
	justify-content: space-between;
	padding: 6px 0;
	border-bottom: 1px solid var(--ob-line);
}
.ob-sources__news li:last-child {
	border-bottom: 0;
}
.ob-sources__news span {
	font-size: 0.76rem;
	color: var(--ob-muted);
	white-space: nowrap;
}

/* ---------- obituaries: list/grid switch ---------- */
/* The filter chips share the toolbar class, which space-betweens its
   children; a row of three chips should sit together at the left. */
.ob-deaths-index__filters {
	justify-content: flex-start;
}
/* The generic content-link rule darkens anchors inside .ob-page; the active
   chip is a dark pill, so it must keep its white ink there. */
.ob-main .ob-page a.ob-chip.is-active,
.ob-main .ob-page a.ob-chip.is-active:hover {
	color: #ffffff !important;
}
.ob-deaths-index__view {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 14px;
}
.ob-deaths-index__viewlabel {
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--ob-muted);
	margin-right: 2px;
}
.ob-view-btn {
	padding: 7px 15px;
	min-height: 38px;
	border: 1px solid var(--ob-line);
	border-radius: var(--ob-radius-sm);
	background: var(--ob-card);
	color: var(--ob-ink);
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
}
.ob-view-btn:hover {
	border-color: var(--ob-accent);
}
.ob-view-btn[aria-pressed="true"] {
	background: var(--ob-accent-deep);
	border-color: var(--ob-accent-deep);
	color: #ffffff;
}

/* The points a death scores under the current rules. */
.ob-badge--points {
	background: var(--ob-ink);
	color: #ffffff;
	font-variant-numeric: tabular-nums;
}

/* List view is the default: one plain, scannable row per death. Rows share
   a hairline instead of a box, carry no portrait or monogram, and push the
   hit/miss status to the right edge so nothing overlaps a floating corner
   label. Source links collapse to their favicon. */
.ob-deaths-index--list {
	grid-template-columns: 1fr;
	gap: 0;
	border-top: 1px solid var(--ob-line);
}
.ob-deaths-index--list .ob-person {
	display: block;
	padding: 9px 4px;
	border: 0;
	border-bottom: 1px solid var(--ob-line);
	border-radius: 0;
	background: transparent;
}
.ob-deaths-index--list .ob-person:hover {
	border-color: var(--ob-line);
	background: var(--ob-accent-soft);
}
/* The corner label and the portrait belong to the grid, not a plain row. */
.ob-deaths-index--list .ob-person__avatar,
.ob-deaths-index--list .ob-person__avatar--img,
.ob-deaths-index--list .ob-person__status {
	display: none;
}
.ob-deaths-index--list .ob-person__body {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 14px;
	row-gap: 1px;
	min-width: 0;
}
.ob-deaths-index--list .ob-person__body > * {
	margin: 0;
}
.ob-deaths-index--list .ob-person__name {
	order: 1;
	flex: 0 1 auto;
	font-size: 0.94rem;
}
.ob-deaths-index--list .ob-person__dates { order: 2; }
.ob-deaths-index--list .ob-person__role { order: 3; }
.ob-deaths-index--list .ob-person__occ { order: 4; }
/* The first status badge absorbs the free space, so hit/miss and points sit
   in a right-hand column however few or many of them are present. */
.ob-deaths-index--list .ob-person__body > .ob-badge:first-of-type {
	margin-left: auto;
}
.ob-deaths-index--list .ob-badge { order: 5; }
.ob-deaths-index--list .ob-person__sources {
	order: 6;
	flex: 0 0 auto;
	margin-top: 0;
	gap: 4px;
}
.ob-deaths-index--list .ob-source-chip {
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	background: transparent;
}
.ob-deaths-index--list .ob-source-chip:hover {
	background: var(--ob-card);
}
.ob-deaths-index--list .ob-source-chip__label {
	display: none;
}
.ob-deaths-index--list .ob-source-chip--more {
	width: auto;
	padding: 0 5px;
	font-size: 0.68rem;
}
.ob-deaths-index--list .ob-source-chip__icon {
	width: 16px;
	height: 16px;
}

/* Larger, easier pagination targets. */
.ob-page-link {
	display: inline-flex;
	align-items: center;
	padding: 9px 14px;
	min-height: 40px;
	font-size: 0.9rem;
}

@media (max-width: 720px) {
	/* The search form's flex-basis was written for the row toolbar; in the
	   stacked toolbar it becomes a fixed height and leaves a big empty block
	   above the results. Reset it to its content. */
	.ob-people__search {
		flex: 0 0 auto;
		max-width: none;
	}
	/* Keep the All/Hits/Misses chips on one line instead of three full-width
	   bars; that stacking was most of the space above the obituaries. */
	.ob-deaths-index__filters {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: flex-start;
		gap: 6px;
	}
	.ob-people__toolbar {
		gap: 10px;
		margin-bottom: 10px;
	}
}
