/**
 * 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.
 *
 * Styling philosophy (revised):
 * This file styles STRUCTURE, not typography. Fonts, heading sizes, heading
 * colors and normal link appearance are left to the active theme (Avada), so
 * the widget reads as part of the page rather than as an embedded app. What
 * remains here is what a theme cannot supply: the table's mobile card reflow,
 * the date chip, the document rail, status badges, year tabs, accordions, and
 * the accessibility guarantees below.
 *
 * Rules of thumb if you edit this file:
 * - Sizes are in `em`, not `rem`, so they scale with the theme's type scale.
 * - Don't set font-family anywhere.
 * - Don't set color on headings or on link text — let the theme do it.
 * - Do set color where a component defines its own surface (chip, badge,
 *   button, active tab), because contrast is guaranteed against that surface.
 *
 * Accessibility notes:
 * - All interactive colors are AA-enforced server-side; the variables here
 *   are fallbacks.
 * - Focus is always visible with a 3px outline + offset. This is kept even
 *   though the theme has its own focus styles, because theme focus rings are
 *   frequently too faint for AA.
 * - Mobile card layout preserves DOM/reading order via CSS only.
 * - Respects prefers-reduced-motion and forced-colors.
 */

/* Center single meeting content */
.tsdc-single {
    max-width: 1050px;
    margin-left: auto !important;
    margin-right: auto !important;
}


/* Keep meeting accordions full width, open or closed */
.tsdc-accordions {
    width: 100% !important;
}

.tsdc-accordions .tsdc-accordion {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box;
}

.tsdc-accordions .tsdc-accordion__summary {
    width: 100% !important;
    box-sizing: border-box;
}



.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);

	/*
	 * No font-family, no font-size, no color: inherited from the theme.
	 * Background is transparent so an Avada section/column background shows
	 * through. Components that need a guaranteed white surface (table,
	 * panels, cards) set it themselves.
	 */
	background: transparent;
	max-width: 72rem;
	margin: 0 auto;
	padding: 1px 0; /* contain child margins without collapsing */
}

/*
 * Reset form controls so a dark or opinionated theme can't push its own
 * input background/text color into the widget. Kept deliberately: this is
 * a legibility guarantee, not decoration.
 */
.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 — spacing only. The theme owns size, weight, family, color.
   ===================================================================== */
.tsdc__heading,
.tsdc-uplist__heading {
	margin: 0 0 1rem;
}

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

/* =====================================================================
   Upcoming meetings block (legacy inline list)
   ===================================================================== */
.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: 1em 1.25em;
	margin: 0 0 1.5em;
}

/* Eyebrow label — an intentional deviation from theme type. */
.tsdc-upcoming__title {
	font-size: 0.8125em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--tsdc-brand);
	margin: 0 0 0.75em;
}

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

.tsdc-upcoming__item {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5em 1em;
	padding: 0.4em 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: 1em;
	margin: 0 0 1.25em;
	box-shadow: var(--tsdc-shadow);
}

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

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

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

.tsdc-filters__label {
	font-size: 0.8125em;
	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.55em 0.7em;
	min-height: 2.75rem; /* comfortable touch target — must not scale away */
}

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

/* =====================================================================
   Buttons
   ===================================================================== */
.tsdc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	min-height: 2.75rem;
	padding: 0.55em 1em;
	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.9em;
	color: var(--tsdc-muted);
	margin: 0 0 0.5em;
}

/* =====================================================================
   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.85em 1em;
	font-size: 0.85em;
	color: var(--tsdc-strong);
	background: var(--tsdc-surface-alt);
	border-bottom: 1px solid var(--tsdc-line);
}

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

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

.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;
}

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

.tsdc-cell--date time {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.tsdc-muted {
	color: var(--tsdc-muted);
	font-size: 0.9em;
	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.4em;
}

.tsdc-doc {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	text-decoration: none;
	color: var(--tsdc-accent);
	font-weight: 600;
	font-size: 0.9em;
	padding: 0.35em 0.6em;
	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);
	color: var(--tsdc-accent);
}

.tsdc-doc__icon {
	width: 0.85em;
	height: 1em;
	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.65em;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--tsdc-muted);
	border: 1px solid var(--tsdc-line-strong);
	border-radius: 3px;
	padding: 0 0.25em;
}

.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.7em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.1em 0.45em;
	border-radius: 999px;
	margin-left: 0.4em;
	vertical-align: middle;
	border: 1px solid;
	line-height: 1.6;
}

.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.25em 0 0;
}

.tsdc-pagination__list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35em;
	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.6em;
	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);
	color: var(--tsdc-brand);
}

.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.5em 1em;
	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.5em;
}

.tsdc-empty__hint {
	margin: 0;
}

/* =====================================================================
   Focus. Link COLOR is the theme's job; focus VISIBILITY is ours.
   ===================================================================== */
.tsdc a:focus-visible,
.tsdc button:focus-visible,
.tsdc input:focus-visible,
.tsdc select:focus-visible,
.tsdc summary: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.5em 0;
	}

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

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

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

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

	.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's own surfaces (table, panels, cards) render light 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, 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.5em;
}

.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.25em 1.5em;
}

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

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

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

.tsdc-single__notes p {
	margin: 0;
}

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

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

/* =====================================================================
   [ts_upcoming_meetings] — MEC-style list view

   Layout only. The title is a heading inside the row link, so the theme's
   heading + link styling both apply to it. Nothing here sets its font,
   size, color or underline.
   ===================================================================== */
.tsdc-uplist {
	--tsdc-chip-bg: #1a2f4b;
	--tsdc-chip-day: #f0b429;
	--tsdc-chip-month: #ffffff;
	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.5em;
}

/* Meeting list */
.tsdc-uplist__items {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.85em;
}

.tsdc-uplist__item {
	margin: 0;
}

/*
 * The whole row is one link. No color or text-decoration is set here, so
 * the theme's normal link appearance carries through to the title. If you
 * want the row itself undecorated with only the title underlined, do that
 * in the theme's Custom CSS — not here.
 */
.tsdc-uplist__link {
	display: flex;
	align-items: center;
	gap: 1.25em;
	border-radius: var(--tsdc-radius);
	padding: 0.25em;
}

/* Date chip — self-contained surface, so it sets its own colors. */
.tsdc-uplist__chip {
	flex: none;
	width: 4.5em;
	height: 4.5em;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: var(--tsdc-chip-bg);
	color: var(--tsdc-chip-month);
	line-height: 1;
	box-shadow: var(--tsdc-shadow);
}

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

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

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

/*
 * Title: the theme owns typography. We only kill the heading's default
 * margin, which would otherwise break the flex column's rhythm.
 * The optional color picker in plugin settings still wins if it is set;
 * otherwise the title inherits the row link's color from the theme.
 */
.tsdc-uplist__title {
	margin: 0;
	color: var(--tsdc-uplist-title, inherit);
}

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

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

/* Date + location + status line */
.tsdc-uplist__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4em 0.85em;
	font-size: 0.95em;
	color: var(--tsdc-uplist-date, var(--tsdc-muted));
}

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

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

/*
 * Cancelled meeting: the status is already stated in the badge text, so
 * this is reinforcement, not the sole signal.
 */
.tsdc-uplist__item--cancelled .tsdc-uplist__title {
	text-decoration: line-through;
	text-decoration-thickness: 1px;
}

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

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

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

/* Small screens: keep chip + text side by side but tighten spacing. */
@media (max-width: 480px) {
	.tsdc-uplist__link {
		gap: 0.85em;
	}

	.tsdc-uplist__chip {
		width: 3.75em;
		height: 3.75em;
	}

	.tsdc-uplist__day {
		font-size: 1.55em;
	}

	.tsdc-uplist__month {
		font-size: 0.8em;
	}
}

/* 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.25em;
	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.25em;
}

.tsdc-yeartabs__item {
	margin: 0;
}

.tsdc-yeartabs__tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.5em 1.5em;
	font-weight: 700;
	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);
	color: var(--tsdc-brand);
	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;
}

@media (max-width: 480px) {
	.tsdc-yeartabs__tab {
		padding: 0.5em 1em;
	}
}

@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.6em;
}

.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.75em;
	padding: 1em 1.25em;
	cursor: pointer;
	background: var(--tsdc-surface-alt);
	font-weight: 700;
	font-size: 1.05em;
	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.8em;
	font-weight: 600;
	color: var(--tsdc-strong);
	background: var(--tsdc-surface);
	border: 1px solid var(--tsdc-line-strong);
	border-radius: 999px;
	padding: 0.15em 0.6em;
}

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

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

.tsdc-accordion__body {
	padding: 1.25em;
	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;
}