/**
 * TS Document Center — front-end styles.
 *
 * Design direction: "civic ledger". A public agency's records should feel
 * like a well-kept public register — orderly, legible, unmistakably
 * official without being cold. A tabular-figure date column and a
 * document rail give it the feel of an index you can trust.
 *
 * Accessibility notes:
 * - All interactive colors are AA-enforced server-side; the variables here
 *   are fallbacks.
 * - Focus is always visible with a 3px outline + offset.
 * - Mobile card layout preserves DOM/reading order via CSS only.
 * - Respects prefers-reduced-motion and forced-colors.
 */

.tsdc {
	--tsdc-brand: #0b5c7a;
	--tsdc-accent: #b23a04;
	--tsdc-text: #16242b;
	--tsdc-muted: #45535c;       /* secondary text — ~7.5:1 on white */
	--tsdc-strong: #334049;      /* small captions & column headers — ~10.7:1 on white */
	--tsdc-line: #d7dfe3;
	--tsdc-line-strong: #b7c3ca;
	--tsdc-surface: #ffffff;
	--tsdc-surface-alt: #f5f8f9;
	--tsdc-surface-sunk: #eef3f5;
	--tsdc-focus: #0a4d66;
	--tsdc-radius: 6px;
	--tsdc-shadow: 0 1px 2px rgba(22, 36, 43, 0.06), 0 4px 14px rgba(22, 36, 43, 0.05);

	color: var(--tsdc-text);
	background: var(--tsdc-surface);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.5;
	max-width: 72rem;
	margin: 0 auto;
	padding: 1px 0; /* contain child margins without collapsing */
}

/*
 * Reset form controls so a dark or opinionated theme (e.g. Avada) can't
 * push its own input background/text color into the widget.
 */
.tsdc input,
.tsdc select,
.tsdc textarea,
.tsdc button {
	color: var(--tsdc-text);
	background-color: var(--tsdc-surface);
}

.tsdc .tsdc-btn--primary {
	color: #fff;
	background-color: var(--tsdc-brand);
}

.tsdc *,
.tsdc *::before,
.tsdc *::after {
	box-sizing: border-box;
}

/* Screen-reader-only utility (matches WP core naming). */
.tsdc .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* --- Headings --- */
.tsdc__heading {
	font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 1rem;
	color: var(--tsdc-text);
}

/* --- Upcoming meetings block --- */
.tsdc-upcoming {
	background: var(--tsdc-surface-alt);
	border: 1px solid var(--tsdc-line);
	border-bottom: 4px solid var(--tsdc-brand);
	border-radius: var(--tsdc-radius);
	padding: 1rem 1.25rem;
	margin: 0 0 1.5rem;
}

.tsdc-upcoming__title {
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--tsdc-brand);
	margin: 0 0 0.75rem;
}

.tsdc-upcoming__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.tsdc-upcoming__item {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem 1rem;
	padding: 0.4rem 0;
	border-bottom: 1px dashed var(--tsdc-line);
}

.tsdc-upcoming__item:last-child {
	border-bottom: 0;
}

.tsdc-upcoming__name {
	font-weight: 600;
}

.tsdc-upcoming__date {
	color: var(--tsdc-muted);
	font-variant-numeric: tabular-nums;
}

/* --- Filter bar --- */
.tsdc-filters {
	background: var(--tsdc-surface);
	border: 1px solid var(--tsdc-line);
	border-radius: var(--tsdc-radius);
	padding: 1rem;
	margin: 0 0 1.25rem;
	box-shadow: var(--tsdc-shadow);
}

.tsdc-filters__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	gap: 0.85rem;
	align-items: end;
}

.tsdc-filters__field {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	min-width: 0;
}

.tsdc-filters__field--search {
	grid-column: 1 / -1;
}

.tsdc-filters__label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--tsdc-strong);
}

.tsdc-filters__input {
	width: 100%;
	font: inherit;
	color: var(--tsdc-text);
	background: var(--tsdc-surface);
	border: 1px solid var(--tsdc-line-strong);
	border-radius: var(--tsdc-radius);
	padding: 0.55rem 0.7rem;
	min-height: 2.75rem; /* comfortable touch target */
}

.tsdc-filters__actions {
	display: flex;
	gap: 0.5rem;
	align-items: end;
}

/* --- Buttons --- */
.tsdc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	min-height: 2.75rem;
	padding: 0.55rem 1rem;
	border-radius: var(--tsdc-radius);
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
}

.tsdc-btn--primary {
	background: var(--tsdc-brand);
	color: #fff;
}

.tsdc-btn--primary:hover {
	filter: brightness(0.92);
}

.tsdc-btn--ghost {
	background: transparent;
	color: var(--tsdc-brand);
	border-color: var(--tsdc-line-strong);
}

.tsdc-btn--ghost:hover {
	background: var(--tsdc-surface-sunk);
}

/* --- Results count --- */
.tsdc-results-count {
	font-size: 0.9rem;
	color: var(--tsdc-muted);
	margin: 0 0 0.5rem;
}

/* --- Table --- */
.tsdc-tablewrap {
	border: 1px solid var(--tsdc-line);
	border-radius: var(--tsdc-radius);
	overflow: hidden;
	box-shadow: var(--tsdc-shadow);
	background: var(--tsdc-surface);
}

.tsdc-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

.tsdc-table__caption {
	text-align: left;
	padding: 0.85rem 1rem;
	font-size: 0.85rem;
	color: var(--tsdc-strong);
	background: var(--tsdc-surface-alt);
	border-bottom: 1px solid var(--tsdc-line);
}

.tsdc-table thead th {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--tsdc-strong);
	font-weight: 700;
	background: var(--tsdc-surface-alt);
	padding: 0.7rem 1rem;
	border-bottom: 2px solid var(--tsdc-line-strong);
	white-space: nowrap;
}

.tsdc-table tbody th,
.tsdc-table tbody td {
	padding: 0.9rem 1rem;
	border-bottom: 1px solid var(--tsdc-line);
	vertical-align: top;
}

.tsdc-row:last-child th,
.tsdc-row:last-child td {
	border-bottom: 0;
}

.tsdc-row:hover {
	background: var(--tsdc-surface-alt);
}

.tsdc-cell--meeting {
	font-weight: 400;
}

.tsdc-row__title {
	display: block;
	font-weight: 600;
	color: var(--tsdc-text);
}

.tsdc-row__location,
.tsdc-row__notes {
	display: block;
	font-size: 0.85rem;
	color: var(--tsdc-muted);
	margin-top: 0.2rem;
}

.tsdc-cell--date time {
	font-variant-numeric: tabular-nums;
	color: var(--tsdc-text);
	white-space: nowrap;
}

.tsdc-muted {
	color: var(--tsdc-muted);
	font-size: 0.9rem;
	font-style: italic;
}

/* Cancelled meetings: strike the title, keep everything readable. */
.tsdc-row--cancelled .tsdc-row__title {
	text-decoration: line-through;
	text-decoration-thickness: 1px;
}

.tsdc-row--cancelled {
	background: repeating-linear-gradient(
		135deg,
		transparent,
		transparent 10px,
		rgba(178, 58, 4, 0.04) 10px,
		rgba(178, 58, 4, 0.04) 20px
	);
}

/* --- Document links --- */
.tsdc-doclist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.tsdc-doc {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	text-decoration: none;
	color: var(--tsdc-accent);
	font-weight: 600;
	font-size: 0.9rem;
	padding: 0.35rem 0.6rem;
	border: 1px solid var(--tsdc-line-strong);
	border-radius: var(--tsdc-radius);
	background: var(--tsdc-surface);
	line-height: 1.2;
}

.tsdc-doc:hover {
	background: var(--tsdc-surface-sunk);
	border-color: var(--tsdc-accent);
}

.tsdc-doc__icon {
	width: 0.85rem;
	height: 1rem;
	flex: none;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h9l5 5v13a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm8 1.5V8h4.5L14 3.5z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h9l5 5v13a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm8 1.5V8h4.5L14 3.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.tsdc-doc__type {
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--tsdc-muted);
	border: 1px solid var(--tsdc-line-strong);
	border-radius: 3px;
	padding: 0 0.25rem;
}

.tsdc-doc--live .tsdc-doc__label::before,
.tsdc-doc--video .tsdc-doc__label::before {
	content: "▸ ";
}

/* --- Status badges --- */
.tsdc-badge {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.1rem 0.45rem;
	border-radius: 999px;
	margin-left: 0.4rem;
	vertical-align: middle;
	border: 1px solid;
}

.tsdc-badge--cancelled {
	color: #8a2b00;
	background: #fdeee8;
	border-color: #f2c4b0;
}

.tsdc-badge--special {
	color: #5b3a00;
	background: #fdf3e0;
	border-color: #f0d69a;
}

.tsdc-badge--amended {
	color: #234e70;
	background: #e9f2f9;
	border-color: #b9d4ea;
}

/* --- Pagination --- */
.tsdc-pagination {
	margin: 1.25rem 0 0;
}

.tsdc-pagination__list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	justify-content: center;
}

.tsdc-pagination a,
.tsdc-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0 0.6rem;
	border: 1px solid var(--tsdc-line-strong);
	border-radius: var(--tsdc-radius);
	text-decoration: none;
	color: var(--tsdc-brand);
	font-weight: 600;
	background: var(--tsdc-surface);
}

.tsdc-pagination a:hover {
	background: var(--tsdc-surface-sunk);
}

.tsdc-pagination .current {
	background: var(--tsdc-brand);
	color: #fff;
	border-color: var(--tsdc-brand);
}

.tsdc-pagination .dots {
	border-color: transparent;
	background: transparent;
	color: var(--tsdc-muted);
}

/* --- Empty state --- */
.tsdc-empty {
	text-align: center;
	padding: 2.5rem 1rem;
	border: 1px dashed var(--tsdc-line-strong);
	border-radius: var(--tsdc-radius);
	background: var(--tsdc-surface-alt);
}

.tsdc-empty__title {
	font-weight: 600;
	margin: 0 0 0.5rem;
}

.tsdc-empty__hint {
	margin: 0;
}

/* --- Links + focus (global within widget) --- */
.tsdc a {
	color: var(--tsdc-accent);
}

.tsdc a:focus-visible,
.tsdc button:focus-visible,
.tsdc input:focus-visible,
.tsdc select:focus-visible,
.tsdc [tabindex]:focus-visible {
	outline: 3px solid var(--tsdc-focus);
	outline-offset: 2px;
	border-radius: 3px;
}

/* Fallback for browsers without :focus-visible */
.tsdc a:focus,
.tsdc button:focus,
.tsdc input:focus,
.tsdc select:focus {
	outline: 3px solid var(--tsdc-focus);
	outline-offset: 2px;
}

/* =====================================================================
   Mobile: reflow each row into a card. DOM order is unchanged, so the
   reading and tab order stay correct. data-label is surfaced as a
   heading for each cell.
   ===================================================================== */
@media (max-width: 640px) {
	.tsdc-table__caption {
		border-radius: var(--tsdc-radius) var(--tsdc-radius) 0 0;
	}

	.tsdc-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}

	.tsdc-table,
	.tsdc-table tbody,
	.tsdc-table tr,
	.tsdc-table th,
	.tsdc-table td {
		display: block;
		width: 100%;
	}

	.tsdc-row {
		border-bottom: 1px solid var(--tsdc-line-strong);
		padding: 0.5rem 0;
	}

	.tsdc-row:hover {
		background: transparent;
	}

	.tsdc-table tbody th,
	.tsdc-table tbody td {
		border-bottom: 0;
		padding: 0.35rem 1rem;
	}

	.tsdc-cell--meeting {
		padding-top: 0.9rem;
	}

	.tsdc-cell--date::before,
	.tsdc-cell--docs::before,
	.tsdc-cell--video::before {
		content: attr(data-label);
		display: block;
		font-size: 0.7rem;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.06em;
		color: var(--tsdc-strong);
		margin-bottom: 0.2rem;
	}

	.tsdc-doc {
		min-height: 2.5rem;
	}
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
	.tsdc * {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}

/* --- High contrast / forced colors (Windows High Contrast Mode) --- */
@media (forced-colors: active) {
	.tsdc-doc,
	.tsdc-btn,
	.tsdc-pagination a,
	.tsdc-pagination span {
		border: 1px solid ButtonText;
	}

	.tsdc-doc__icon {
		background: ButtonText;
	}

	.tsdc a:focus,
	.tsdc button:focus,
	.tsdc a:focus-visible,
	.tsdc button:focus-visible {
		outline: 3px solid Highlight;
	}
}

/*
 * Note: this widget intentionally renders in a light theme on every device,
 * regardless of the visitor's OS-level dark-mode preference. Public agency
 * document archives are usually placed inside a light-themed page (e.g. Avada
 * tabs), and auto-switching to dark caused the archive to clash with the
 * surrounding page. If you want a dark variant, set the CSS variables under
 * a class you add to the page rather than via prefers-color-scheme.
 */

/* =====================================================================
   Single meeting page (/meetings/{slug}/)
   ===================================================================== */
.tsdc-single {
	margin: 0 0 1.5rem;
}

.tsdc-single__panel {
	border: 1px solid var(--tsdc-line);
	border-radius: var(--tsdc-radius);
	background: var(--tsdc-surface);
	box-shadow: var(--tsdc-shadow);
	padding: 1.25rem 1.5rem;
}

.tsdc-single__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	gap: 1rem 1.5rem;
	margin: 0 0 0.5rem;
}

.tsdc-single__fact dt {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--tsdc-strong);
	margin: 0 0 0.15rem;
}

.tsdc-single__fact dd {
	margin: 0;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.tsdc-single__subheading {
	font-size: 1.05rem;
	margin: 1.25rem 0 0.6rem;
	padding-top: 1rem;
	border-top: 1px solid var(--tsdc-line);
}

.tsdc-single__notes p {
	margin: 0;
}

.tsdc-doclist--single {
	gap: 0.5rem;
}

.tsdc-doclist--single .tsdc-doc {
	font-size: 0.95rem;
	padding: 0.5rem 0.8rem;
}

/* =====================================================================
   [ts_upcoming_meetings] — Webnus MEC-style list view
   ===================================================================== */
.tsdc-uplist {
	--tsdc-chip-bg: #1a2f4b;
	--tsdc-chip-day: #f0b429;
	--tsdc-chip-month: #ffffff;
	--tsdc-uplist-title: var(--tsdc-brand);
	--tsdc-uplist-date: var(--tsdc-muted);
	max-width: 46rem;
}

/* Background variants (set by the "Background" setting). */
.tsdc-uplist--transparent {
	background: transparent;
}

.tsdc-uplist--card {
	background: var(--tsdc-surface);
	border: 1px solid var(--tsdc-line);
	border-radius: var(--tsdc-radius);
	box-shadow: var(--tsdc-shadow);
	padding: 1.5rem;
}

.tsdc-uplist__heading {
	font-size: clamp(1.25rem, 1.05rem + 1vw, 1.6rem);
	line-height: 1.15;
	margin: 0 0 1rem;
	color: var(--tsdc-text);
}

.tsdc-uplist__items {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.85rem;
}

.tsdc-uplist__item {
	margin: 0;
}

.tsdc-uplist__link {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	text-decoration: none;
	color: inherit;
	border-radius: var(--tsdc-radius);
	padding: 0.25rem;
}

/* Hover/focus: subtle lift on the whole row. */
.tsdc-uplist__link:hover .tsdc-uplist__title {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 2px;
}

.tsdc-uplist__link:focus-visible {
	outline: 3px solid var(--tsdc-focus);
	outline-offset: 2px;
}

/* Date chip */
.tsdc-uplist__chip {
	flex: none;
	width: 4.5rem;
	height: 4.5rem;
	border-radius: 8px;
	background: var(--tsdc-chip-bg);
	color: var(--tsdc-chip-month);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1;
	box-shadow: var(--tsdc-shadow);
}

.tsdc-uplist__day {
	font-size: 1.9rem;
	font-weight: 800;
	color: var(--tsdc-chip-day);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

.tsdc-uplist__month {
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin-top: 0.15rem;
}

/* Text body */
.tsdc-uplist__body {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}

.tsdc-uplist__title {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--tsdc-uplist-title);
	line-height: 1.25;
}

/* Title case modifiers */
.tsdc-uplist--title-uppercase .tsdc-uplist__title {
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.tsdc-uplist--title-capitalize .tsdc-uplist__title {
	text-transform: capitalize;
}

.tsdc-uplist__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.85rem;
	font-size: 0.95rem;
	color: var(--tsdc-uplist-date);
}

/* Date case modifier */
.tsdc-uplist--date-uppercase .tsdc-uplist__date {
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.tsdc-uplist__date {
	font-variant-numeric: tabular-nums;
}

.tsdc-uplist__metabit {
	position: relative;
}

/* Cancelled meeting styling */
.tsdc-uplist__item--cancelled .tsdc-uplist__title {
	text-decoration: line-through;
	text-decoration-thickness: 1px;
	color: var(--tsdc-muted);
}

.tsdc-uplist__item--cancelled .tsdc-uplist__chip {
	opacity: 0.65;
}

/* "View all" button */
.tsdc-uplist__more {
	margin: 1.25rem 0 0;
}

.tsdc-uplist--empty {
	padding: 1rem 0;
}

/* Small screens: keep chip + text side by side but tighten spacing. */
@media (max-width: 480px) {
	.tsdc-uplist__link {
		gap: 0.85rem;
	}
	.tsdc-uplist__chip {
		width: 3.75rem;
		height: 3.75rem;
	}
	.tsdc-uplist__day {
		font-size: 1.55rem;
	}
	.tsdc-uplist__month {
		font-size: 0.8rem;
	}
	.tsdc-uplist__title {
		font-size: 1.05rem;
	}
}

/* Forced-colors: ensure the chip has a visible boundary. */
@media (forced-colors: active) {
	.tsdc-uplist__chip {
		border: 1px solid ButtonText;
	}
}

/* =====================================================================
   Year tabs (year_tabs="true")
   ===================================================================== */
.tsdc-yeartabs {
	margin: 0 0 1.25rem;
	border-bottom: 2px solid var(--tsdc-line-strong);
}

.tsdc-yeartabs__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
}

.tsdc-yeartabs__item {
	margin: 0;
}

.tsdc-yeartabs__tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.5rem 1.5rem;
	font-weight: 700;
	font-size: 1.05rem;
	text-decoration: none;
	color: var(--tsdc-brand);
	background: var(--tsdc-surface);
	border: 1px solid var(--tsdc-line-strong);
	border-bottom: none;
	border-radius: var(--tsdc-radius) var(--tsdc-radius) 0 0;
	position: relative;
	top: 2px; /* sit on the container's bottom border */
}

/* Clickable (past) year tabs are links: show a clear affordance. */
a.tsdc-yeartabs__tab {
	cursor: pointer;
}

a.tsdc-yeartabs__tab:hover {
	background: var(--tsdc-surface-sunk);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* The active year is a non-clickable span — the view you're already on. */
span.tsdc-yeartabs__tab {
	cursor: default;
}

.tsdc-yeartabs__tab.is-active {
	color: #fff;
	background: var(--tsdc-brand);
	border-color: var(--tsdc-brand);
	text-decoration: none;
}

.tsdc-yeartabs__tab:focus-visible {
	outline: 3px solid var(--tsdc-focus);
	outline-offset: 2px;
}

@media (max-width: 480px) {
	.tsdc-yeartabs__tab {
		padding: 0.5rem 1rem;
		font-size: 0.95rem;
	}
}

@media (forced-colors: active) {
	.tsdc-yeartabs__tab.is-active {
		border: 2px solid ButtonText;
	}
}

/* =====================================================================
   Committee accordions ([ts_document_center_accordions])
   ===================================================================== */
.tsdc-accordions {
	display: grid;
	gap: 0.6rem;
}

.tsdc-accordion {
	border: 1px solid var(--tsdc-line);
	border-radius: var(--tsdc-radius);
	overflow: hidden;
	background: var(--tsdc-surface);
	/* Give anchored jumps (from a year-tab reload) breathing room from the
	   top of the viewport, e.g. clear of a sticky site header. */
	scroll-margin-top: 1.5rem;
}

.tsdc-accordion__summary {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	cursor: pointer;
	background: var(--tsdc-surface-alt);
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--tsdc-text);
	list-style: none; /* hide default marker (Firefox) */
	user-select: none;
}

/* Hide the default disclosure triangle across browsers. */
.tsdc-accordion__summary::-webkit-details-marker {
	display: none;
}

.tsdc-accordion__summary:hover {
	background: var(--tsdc-surface-sunk);
}

.tsdc-accordion__summary:focus-visible {
	outline: 3px solid var(--tsdc-focus);
	outline-offset: -3px;
}

.tsdc-accordion__title {
	flex: 1 1 auto;
}

.tsdc-accordion__count {
	flex: none;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--tsdc-strong);
	background: var(--tsdc-surface);
	border: 1px solid var(--tsdc-line-strong);
	border-radius: 999px;
	padding: 0.15rem 0.6rem;
}

/* Custom chevron indicator. */
.tsdc-accordion__icon {
	flex: none;
	width: 0.9rem;
	height: 0.9rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.15s ease;
	margin-left: 0.25rem;
	opacity: 0.7;
}

.tsdc-accordion[open] .tsdc-accordion__icon {
	transform: rotate(-135deg);
}

.tsdc-accordion__body {
	padding: 1.25rem;
	border-top: 1px solid var(--tsdc-line);
}

/* Inside a panel the table has no shadow/extra frame — the accordion is the frame. */
.tsdc-accordion__body .tsdc {
	margin: 0;
}

.tsdc-accordion__body .tsdc-tablewrap {
	box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
	.tsdc-accordion__icon {
		transition: none;
	}
}

@media (forced-colors: active) {
	.tsdc-accordion__summary {
		border-bottom: 1px solid ButtonText;
	}
}

/* Shared year tabs sit above the whole accordion group. */
.tsdc-yeartabs--shared {
	margin-bottom: 1rem;
}
