/* =============================================================================
   Pro Conferences – My Account (Delegates, Teams, My Courses tabs)
   Uses the design tokens defined in the theme's my-account.css :root block.
   ============================================================================= */

/* ── Tab container padding ───────────────────────────────────────────────── */

#pcd-teams-tab,
#pcd-delegates-tab,
#pcd-courses-tab,
#pcd-migration-tab,
#pcd-team-dashboard {
	padding: 1.75em 2em;
}

/* ── Shared notices area ─────────────────────────────────────────────────── */

.pcd-notices {
	min-height: 0;
}

/* ── Section header ──────────────────────────────────────────────────────── */

.pcd-tab-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.25em;
	flex-wrap: wrap;
	gap: 0.75em;
}

.pcd-tab-header h2 {
	font-size: 1.3em;
	font-weight: 700;
	color: var(--ma-text, #0f172a);
	margin: 0;
}

/* Primary action button — pill style matching the design system.
   Purple (not --ma-accent's blue) per client feedback, to match the same
   purple used for "Add Another Delegate" in the booking modal. */
.pcd-tab-header .button,
.pcd-tab-header button.button {
	display: inline-flex !important;
	align-items: center;
	gap: 0.35em;
	padding: 0.55em 1.25em !important;
	background: #320067 !important;
	color: #fff !important;
	font-size: 0.875em !important;
	font-weight: 600 !important;
	border: none !important;
	border-radius: 99px !important;
	cursor: pointer;
	text-decoration: none !important;
	box-shadow: none !important;
	transition: background 200ms ease, transform 200ms ease;
	line-height: 1.4 !important;
}

.pcd-tab-header .button:hover,
.pcd-tab-header button.button:hover {
	background: color-mix(in srgb, #320067 85%, black) !important;
	transform: translateY(-1px);
	color: #fff !important;
}

/* Intro text */
.pcd-tab-intro {
	font-size: 0.875em;
	color: var(--ma-muted, #64748b);
	margin: -0.5em 0 1.5em;
	line-height: 1.5;
}

/* ── Inline form panel ────────────────────────────────────────────────────── */

.pcd-form-panel {
	background: var(--ma-surface-2, #f7f9fc);
	border: 1px solid var(--ma-border, #e2e8f0);
	border-radius: var(--ma-radius, 14px);
	padding: 1.5em;
	margin-bottom: 1.75em;
	display: none; /* shown via JS slideDown */
}

.pcd-form-panel .pcd-form-title {
	font-size: 1em;
	font-weight: 700;
	color: var(--ma-text, #0f172a);
	margin: 0 0 1.25em;
}

.pcd-form-panel .pcd-form-row {
	margin-bottom: 1em;
}

.pcd-form-panel label {
	display: block;
	font-size: 0.875em;
	font-weight: 500;
	color: var(--ma-text, #0f172a);
	margin-bottom: 0.3em;
}

.pcd-form-panel input[type="text"],
.pcd-form-panel input[type="email"],
.pcd-form-panel input[type="search"],
.pcd-form-panel select {
	width: 100%;
	max-width: 420px;
}

.pcd-form-panel .pcd-form-actions {
	display: flex;
	gap: 0.75em;
	align-items: center;
	margin-top: 1.25em;
}

.pcd-form-panel .button-primary {
	display: inline-flex !important;
	align-items: center;
	padding: 0.55em 1.25em !important;
	background: var(--ma-accent, #1d6fa4) !important;
	color: #fff !important;
	font-size: 0.875em !important;
	font-weight: 600 !important;
	border: none !important;
	border-radius: 99px !important;
	cursor: pointer;
	transition: background 200ms ease;
}

.pcd-form-panel .button-primary:hover {
	background: color-mix(in srgb, var(--ma-accent, #1d6fa4) 85%, black) !important;
	color: #fff !important;
}

.pcd-form-panel .pcd-btn-cancel {
	background: none;
	border: none;
	color: var(--ma-muted, #64748b);
	cursor: pointer;
	font-size: 0.875em;
	padding: 0;
	text-decoration: underline;
	transition: color 200ms ease;
}

.pcd-form-panel .pcd-btn-cancel:hover {
	color: var(--ma-text, #0f172a);
}

.pcd-form-error {
	color: #dc2626;
	font-size: 0.875em;
	margin: 0 0 0.75em;
}

/* ── Delegates table ─────────────────────────────────────────────────────── */

/* On narrow screens the table's content (full names, emails, the Actions
   links) can't shrink below its min-content width. Without this, the
   page's own overflow-x:hidden was silently clipping the right-hand
   columns — Job Title, Status, and the Edit/Deactivate links — off-screen
   and completely unreachable on mobile, rather than becoming scrollable. */
.pcd-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

#pcd-delegates-table {
	width: 100%;
	border-collapse: collapse;
}

#pcd-delegates-table th,
#pcd-delegates-table td {
	padding: 0.65em 0.85em;
	text-align: left;
	border-bottom: 1px solid var(--ma-border, #e2e8f0);
	font-size: 0.875em;
}

#pcd-delegates-table th {
	font-weight: 600;
	background: var(--ma-surface-2, #f7f9fc);
	color: var(--ma-muted, #64748b);
	text-transform: uppercase;
	font-size: 0.75em;
	letter-spacing: 0.04em;
}

#pcd-delegates-table tr.pcd-inactive {
	opacity: 0.55;
}

.pcd-status-badge {
	display: inline-block;
	font-size: 0.75em;
	font-weight: 600;
	padding: 0.2em 0.65em;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.pcd-status-badge.active {
	background: #dcfce7;
	color: #15803d;
}

.pcd-status-badge.inactive {
	background: var(--ma-surface-2, #f7f9fc);
	color: var(--ma-muted, #64748b);
}

.pcd-actions a {
	font-size: 0.85em;
	margin-right: 0.75em;
	color: var(--ma-accent, #1d6fa4);
	text-decoration: none;
	transition: color 200ms ease;
}

.pcd-actions a:hover {
	text-decoration: underline;
}

.pcd-actions a.pcd-deactivate-delegate,
.pcd-actions a.pcd-delete-team {
	color: #dc2626;
}

/* ── Table empty-state row ───────────────────────────────────────────────── */

.pcd-empty-cell {
	padding: 2em 1em !important;
	text-align: center;
	color: var(--ma-muted, #64748b);
	font-size: 0.875em;
}

/* ── Empty state ─────────────────────────────────────────────────────────── */

.pcd-empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 3.5em 1em;
	background: var(--ma-surface-2, #f7f9fc);
	border: 1px dashed var(--ma-border, #e2e8f0);
	border-radius: var(--ma-radius, 14px);
	color: var(--ma-muted, #64748b);
}

.pcd-empty-state p {
	font-size: 0.9em;
	max-width: 340px;
	margin: 0 auto;
	line-height: 1.5;
}

/* ── Teams grid ───────────────────────────────────────────────────────────── */

#pcd-team-list {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 240px, 1fr ) );
	gap: 1em;
	margin-bottom: 1.5em;
}

.pcd-team-card {
	border: 1px solid var(--ma-border, #e2e8f0);
	border-radius: var(--ma-radius, 14px);
	padding: 1.25em 1.4em;
	background: var(--ma-surface, #fff);
	box-shadow: var(--ma-shadow-sm, 0 1px 3px rgba(0,0,0,.06));
	transition: box-shadow 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.pcd-team-card:hover {
	box-shadow: var(--ma-shadow, 0 4px 16px rgba(0,0,0,.08));
	border-color: var(--ma-accent-mid, #b8d8ef);
	transform: translateY(-2px);
}

.pcd-team-card__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5em;
	margin-bottom: 0.75em;
}

.pcd-team-name {
	font-size: 1em;
	font-weight: 700;
	color: var(--ma-text, #0f172a);
}

.pcd-team-count {
	font-size: 0.75em;
	font-weight: 600;
	color: var(--ma-muted, #64748b);
	background: var(--ma-surface-2, #f7f9fc);
	padding: 0.1em 0.55em;
	border-radius: 99px;
	white-space: nowrap;
}

.pcd-team-member-list {
	list-style: none;
	margin: 0 0 1em;
	padding: 0;
}

.pcd-team-member-list li {
	font-size: 0.825em;
	color: var(--ma-muted, #64748b);
	padding: 0.2em 0;
	border-bottom: 1px solid var(--ma-border, #e2e8f0);
}

.pcd-team-member-list li:last-child {
	border-bottom: none;
}

.pcd-team-card__actions {
	display: flex;
	gap: 0.75em;
	padding-top: 0.75em;
	border-top: 1px solid var(--ma-border, #e2e8f0);
}

.pcd-team-card__actions a {
	font-size: 0.825em;
	font-weight: 500;
	color: var(--ma-accent, #1d6fa4);
	text-decoration: none;
	transition: color 200ms ease;
}

.pcd-team-card__actions a:hover {
	text-decoration: underline;
}

.pcd-team-card__actions a.pcd-delete-team {
	color: var(--ma-muted, #64748b);
	margin-left: auto;
}

.pcd-team-card__actions a.pcd-delete-team:hover {
	color: #dc2626;
}

/* ── Team delegate search + checkboxes ────────────────────────────────────── */

.pcd-team-delegate-search {
	width: 100%;
	box-sizing: border-box;
	margin-bottom: 0.5em;
}

#pcd-team-delegate-checkboxes {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 220px, 1fr ) );
	gap: 0.4em 1em;
	max-height: 260px;
	overflow-y: auto;
	border: 1px solid var(--ma-border, #e2e8f0);
	border-radius: var(--ma-radius-sm, 8px);
	padding: 0.75em;
	background: var(--ma-surface, #fff);
}

/* Name + email were crammed onto one line (client feedback: "make look
   better") — the checkbox now sits beside a stacked name/email column
   instead, so long emails no longer run into the name or wrap awkwardly. */
#pcd-team-delegate-checkboxes label {
	display: flex;
	align-items: flex-start;
	gap: 0.5em;
	font-size: 0.875em;
	font-weight: 400;
	cursor: pointer;
}

#pcd-team-delegate-checkboxes input[type="checkbox"] {
	width: auto;
	margin: .2em 0 0;
	flex-shrink: 0;
	accent-color: var(--ma-accent, #1d6fa4);
}

.pcd-delegate-name-email {
	display: flex;
	flex-direction: column;
	line-height: 1.35;
	min-width: 0;
}

.pcd-delegate-name {
	color: var(--ma-text, #1e293b);
}

.pcd-delegate-email-hint {
	font-size: 0.85em;
	color: var(--ma-muted, #64748b);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#pcd-team-delegate-checkboxes label.pcd-search-hidden {
	display: none;
}

/* ── My Courses – section headings ───────────────────────────────────────── */

.pcd-courses-section {
	margin-bottom: 2.5em;
}

.pcd-courses-section__title {
	font-size: 0.75em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ma-muted, #64748b);
	margin: 0 0 0.75em;
	padding-bottom: 0.5em;
	border-bottom: 1px solid var(--ma-border, #e2e8f0);
}

.pcd-courses-subheading {
	font-size: 0.7em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ma-accent, #1d6fa4);
	margin: 1.5em 0 0.6em;
	padding: 0;
	border: none;
}

.pcd-courses-subheading--expired {
	color: var(--ma-muted, #64748b);
}

.pcd-courses-subheading:first-child {
	margin-top: 0;
}

.pcd-cpd-cards--expired .pcd-cpd-card__name {
	color: var(--ma-muted, #64748b);
}

.pcd-courses-section__intro {
	font-size: 0.875em;
	color: var(--ma-muted, #64748b);
	margin: -0.25em 0 1em;
}

/* ── Own courses table ────────────────────────────────────────────────────── */

.pcd-courses-table {
	width: 100%;
	border-collapse: collapse;
}

.pcd-courses-table th,
.pcd-courses-table td {
	padding: 0.65em 0.85em;
	border-bottom: 1px solid var(--ma-border, #e2e8f0);
	font-size: 0.875em;
	vertical-align: middle;
}

/* vertical-align: middle on this cell measurably has NO effect on the
   button's position at all (tested directly: top/middle/bottom all
   produced an identical result) — something about this table's rendering
   doesn't respect table-cell vertical-align here. display:flex on the <td>
   was tried too and made it worse (broke the cell's row-height entirely).
   Bypassing both entirely with absolute positioning below — guaranteed
   correct regardless of what's suppressing normal centring here. */
.pcd-courses-table td:last-child {
	position: relative;
	/* Taking the button out of flow (see below) means this cell no longer
	   has any in-flow content to size itself against, and collapses to
	   almost nothing without an explicit width to reserve its space. */
	min-width: 140px;
}

.pcd-courses-table th {
	background: var(--ma-surface-2, #f7f9fc);
	font-weight: 600;
	color: var(--ma-muted, #64748b);
	text-transform: uppercase;
	font-size: 0.75em;
	letter-spacing: 0.04em;
	text-align: left;
}

.pcd-courses-table tbody tr:last-child td {
	border-bottom: none;
}

/* Course title link — bigger, no underline (client feedback). */
.pcd-courses-table td a:not(.button) {
	font-size: 1.05em;
	text-decoration: none;
}
.pcd-courses-table td a:not(.button):hover {
	text-decoration: underline;
}

/* "View Course" — text link to match Delegates/Orders action style */
.pcd-courses-table .button,
.pcd-courses-table a.button {
	display: inline !important;
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	font-size: 0.875em !important;
	font-weight: 500 !important;
	color: var(--ma-accent, #1d6fa4) !important;
	text-decoration: none !important;
	border-radius: 0 !important;
	transition: color 200ms ease !important;
}

.pcd-courses-table .button:hover,
.pcd-courses-table a.button:hover {
	text-decoration: underline !important;
	color: var(--ma-accent, #1d6fa4) !important;
	background: none !important;
}

/* "View Course" — boxed button matching Download Notes, one line, more
   prominent (client feedback). Overrides the plain text-link style above. */
.pcd-courses-table a.pcd-view-course-btn {
	position: absolute !important;
	top: 50% !important;
	right: .85em !important;
	transform: translateY(-50%) !important;
	/* flex + align-items centres the text's own box, not its font baseline —
	   inline-block + line-height left the text sitting slightly high, due to
	   font ascent/descent metrics rather than a padding/margin issue. */
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	white-space: nowrap !important;
	background: #fff !important;
	color: #5D9D1B !important;
	border: 1.5px solid #5D9D1B !important;
	/* Client feedback: button was almost as tall as the row, crowding the
	   divider lines. Explicit line-height replaces an oversized inherited
	   value, shrinking the box — the position:absolute centring above keeps
	   it exactly centred regardless of height. */
	line-height: 1.2 !important;
	padding: 0.35em 1em !important;
	border-radius: 6px !important;
	font-weight: 600 !important;
	text-transform: none !important;
	box-shadow: none !important;
	text-decoration: none !important;
}
.pcd-courses-table a.pcd-view-course-btn:hover {
	background: #f0f7e8 !important;
	color: #4e8716 !important;
	border-color: #4e8716 !important;
	text-decoration: none !important;
}

.pcd-access-remaining {
	font-weight: 600;
	font-size: 1.05em;
}

.pcd-access-remaining.expiring-soon {
	color: #e07b00;
}

.pcd-access-remaining.expired {
	color: #dc2626;
	font-weight: 500;
}

.pcd-access-remaining.no-expiry {
	color: #15803d;
}

/* ── Delegate progress table inside a course card ────────────────────────── */

.pcd-cpd-card__courses .pcd-delegate-progress-table {
	border-radius: 0;
}

.pcd-cpd-card__courses .pcd-delegate-progress-table th,
.pcd-cpd-card__courses .pcd-delegate-progress-table td {
	padding: 0.6em 1.1em; /* align with card toggle padding */
}

/* ── Delegate progress block (one per course) ─────────────────────────────── */

.pcd-course-progress-block {
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 1.25em;
}

.pcd-course-progress-block__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75em 1em;
	background: #f7f7f7;
	border-bottom: 1px solid #e5e5e5;
	gap: 1em;
}

.pcd-course-progress-block__header a {
	font-size: 1.1em;
	text-decoration: none;
}
.pcd-course-progress-block__header a:hover {
	text-decoration: underline;
}

.pcd-delegate-count {
	font-size: 0.8em;
	color: #888;
	white-space: nowrap;
}

/* ── Delegate progress table ──────────────────────────────────────────────── */

.pcd-delegate-progress-table {
	width: 100%;
	border-collapse: collapse;
}

.pcd-delegate-progress-table th,
.pcd-delegate-progress-table td {
	padding: 0.65em 0.85em;
	border-bottom: 1px solid #f0f0f0;
	font-size: 0.875em;
	vertical-align: middle;
}

.pcd-delegate-progress-table th {
	background: #fafafa;
	font-weight: 600;
	color: #555;
	text-align: left;
}

.pcd-delegate-progress-table tr:last-child td {
	border-bottom: none;
}

/* Name cell */
.pcd-dp-name {
	display: flex;
	flex-direction: column;
	gap: 0.1em;
}

.pcd-dp-delegate-name {
	font-weight: 500;
}

.pcd-dp-delegate-email {
	font-size: 0.8em;
	color: #888;
}

/* ── Progress bar ──────────────────────────────────────────────────────────── */

.pcd-dp-progress {
	min-width: 160px;
}

.pcd-progress-bar {
	height: 8px;
	background: #eee;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 0.3em;
}

.pcd-progress-bar__fill {
	height: 100%;
	border-radius: 4px;
	transition: width 0.3s ease;
}

.pcd-progress-bar__fill--not_started {
	background: #ddd;
	width: 0 !important;
}

.pcd-progress-bar__fill--in_progress {
	background: #4a90d9;
}

.pcd-progress-bar__fill--completed {
	background: #2e7d32;
}

.pcd-progress-pct {
	font-size: 0.78em;
	color: #666;
}

/* ── Status pills ──────────────────────────────────────────────────────────── */

.pcd-status-pill {
	display: inline-block;
	font-size: 0.75em;
	font-weight: 600;
	padding: 0.2em 0.65em;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.pcd-status-pill--not_started {
	background: #f0f0f0;
	color: #888;
}

.pcd-status-pill--in_progress {
	background: #deeaf8;
	color: #1a5c9e;
}

.pcd-status-pill--completed {
	background: #e6f4ea;
	color: #1e7e34;
}

.pcd-status-pill--pending {
	background: #fff8e1;
	color: #a06000;
}

.pcd-muted {
	color: #aaa;
	font-size: 0.875em;
}

/* ── Team Dashboard – summary tiles ──────────────────────────────────────── */

.pcd-dashboard-tiles {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 1em;
	margin-bottom: 2.5em;
}

.pcd-tile {
	/* Button reset */
	appearance: none;
	-webkit-appearance: none;
	font-family: inherit;
	font-size: inherit;
	cursor: pointer;

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1.5em 1em;
	background: var(--ma-surface, #fff);
	border: 2px solid var(--ma-border, #e2e8f0);
	border-radius: var(--ma-radius, 14px);
	box-shadow: var(--ma-shadow-sm, 0 1px 3px rgba(0,0,0,.06));
	text-align: center;
	transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.pcd-tile:hover:not(.is-active) {
	border-color: var(--ma-accent, #1d6fa4);
	box-shadow: 0 2px 8px rgba(29,111,164,.12);
}

.pcd-tile.is-active {
	border-color: var(--ma-accent, #1d6fa4);
	background: var(--ma-accent, #1d6fa4);
	box-shadow: 0 2px 10px rgba(29,111,164,.25);
}

.pcd-tile.is-active .pcd-tile__value,
.pcd-tile.is-active .pcd-tile__label {
	color: #fff;
}

.pcd-tile__value {
	font-size: 2em;
	font-weight: 700;
	color: var(--ma-accent, #1d6fa4);
	line-height: 1.1;
}

.pcd-tile__label {
	font-size: 0.75em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--ma-muted, #64748b);
	margin-top: 0.4em;
}

/* Dashboard sections — hidden until their tile is active */
#pcd-team-dashboard .pcd-courses-section {
	display: none;
}

#pcd-team-dashboard .pcd-courses-section.is-active-section {
	display: block;
}

/* ── CPD / certificates column widths ────────────────────────────────────── */

.pcd-col-cpd {
	text-align: center;
	width: 90px;
}

/* ── Inline course list in CPD section ───────────────────────────────────── */

.pcd-course-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pcd-course-list li {
	display: flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.2em 0;
	font-size: 0.875em;
}

.pcd-cpd-badge {
	display: inline-block;
	font-size: 0.75em;
	font-weight: 600;
	background: #deeaf8;
	color: #1a5c9e;
	padding: 0.1em 0.55em;
	border-radius: 99px;
	white-space: nowrap;
}

/* ── CPD expandable delegate cards ──────────────────────────────────────── */

.pcd-cpd-cards {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
}

.pcd-cpd-card {
	border: 1px solid var(--ma-border, #e2e8f0);
	border-radius: var(--ma-radius-sm, 8px);
	overflow: hidden;
	background: var(--ma-surface, #fff);
}

.pcd-cpd-card__toggle {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 0.85em 1.1em;
	background: none;
	border: none;
	margin-bottom: 0 !important;
	cursor: pointer;
	gap: 0.75em;
	text-align: left;
	transition: background 150ms ease;
}

.pcd-cpd-card__toggle:hover {
	background: var(--ma-surface-2, #f7f9fc);
}

.pcd-cpd-card__name {
	flex: 1;
	font-size: 0.9em;
	font-weight: 600;
	color: var(--ma-text, #0f172a);
}

.pcd-cpd-card__hours {
	font-size: 0.85em;
	font-weight: 700;
	color: var(--ma-accent, #1d6fa4);
	background: #deeaf8;
	padding: 0.15em 0.65em;
	border-radius: 99px;
	white-space: nowrap;
}

.pcd-cpd-card__chevron {
	width: 1em;
	height: 1em;
	flex-shrink: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	transition: transform 250ms ease;
}

.pcd-cpd-card__toggle[aria-expanded="true"] .pcd-cpd-card__chevron {
	transform: rotate(180deg);
}

.pcd-cpd-card__courses {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--ma-border, #e2e8f0);
	display: none; /* jQuery slideDown/Up controls visibility */
}

.pcd-cpd-card__courses li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75em;
	padding: 0.6em 1.1em;
	font-size: 0.875em;
	border-bottom: 1px solid var(--ma-border, #e2e8f0);
}

.pcd-cpd-card__courses li:last-child {
	border-bottom: none;
}

.pcd-cpd-card__courses a {
	color: var(--ma-accent, #1d6fa4);
	text-decoration: none;
	flex: 1;
}

.pcd-cpd-card__courses a:hover {
	text-decoration: underline;
}

/* ── Certificate card row contents ──────────────────────────────────────── */

.pcd-cert-course {
	flex: 1;
	color: var(--ma-text, #0f172a);
}

.pcd-cert-meta {
	display: flex;
	align-items: center;
	gap: 0.5em;
	flex-shrink: 0;
}

.pcd-cert-date {
	font-size: 0.8em;
	color: var(--ma-muted, #64748b);
}

/* ── Upcoming events – event cell meta ───────────────────────────────────── */

.pcd-event-cell {
	vertical-align: top;
}

.pcd-event-title {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35em;
}

.pcd-event-meta {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.2em 0.75em;
}

.pcd-event-meta li {
	font-size: 0.8em;
	color: var(--ma-muted, #64748b);
	border: none;
	padding: 0;
}

.pcd-event-date {
	font-weight: 600;
	color: var(--ma-accent, #1d6fa4);
	white-space: nowrap;
}

.pcd-event-venue::before {
	content: '📍';
	margin-right: 0.25em;
	font-style: normal;
}

.pcd-event-location {
	font-style: italic;
}

/* ── Upcoming Events panel (always visible, below tab sections) ──────────── */

.pcd-events-panel {
	margin-top: 2.5em;
	border-radius: var(--ma-radius, 14px);
	border: 1px solid var(--ma-border, #e2e8f0);
	border-top: 4px solid var(--ma-accent, #1d6fa4);
	background: #f0f7ff;
	overflow: hidden;
	box-shadow: var(--ma-shadow-sm, 0 1px 3px rgba(0,0,0,.06));
}

.pcd-events-panel__header {
	display: flex;
	align-items: center;
	gap: 0.75em;
	padding: 1.1em 1.5em 1em;
	border-bottom: 1px solid var(--ma-border, #e2e8f0);
	background: #e6f2fb;
}

.pcd-events-panel__title {
	margin: 0;
	font-size: 1em;
	font-weight: 700;
	color: var(--ma-accent, #1d6fa4);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.pcd-events-panel__count {
	font-size: 0.8em;
	font-weight: 600;
	color: #fff;
	background: var(--ma-accent, #1d6fa4);
	border-radius: 999px;
	padding: 0.2em 0.85em;
	line-height: 1.6;
	white-space: nowrap;
}

.pcd-events-panel .pcd-events-table {
	margin: 0;
	border-radius: 0;
	border: none;
	box-shadow: none;
	background: transparent;
}

.pcd-events-panel .pcd-events-table th,
.pcd-events-panel .pcd-events-table td {
	padding-left: 1.5em;
	padding-right: 1.5em;
}

.pcd-events-panel .pcd-events-table th {
	background: rgba(29, 111, 164, 0.07);
	border-bottom: 1px solid rgba(29, 111, 164, 0.15);
	color: var(--ma-accent, #1d6fa4);
}

.pcd-events-panel .pcd-events-table tbody tr {
	transition: background 0.12s;
}

.pcd-events-panel .pcd-events-table tbody tr:hover {
	background: rgba(29, 111, 164, 0.05);
}

.pcd-events-panel .pcd-events-table tbody tr:last-child td {
	border-bottom: none;
}

/* ── Attendee list inside events table ───────────────────────────────────── */

.pcd-attendee-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pcd-attendee-list li {
	padding: 0.25em 0;
	font-size: 0.875em;
	border-bottom: 1px solid var(--ma-border, #e2e8f0);
	color: var(--ma-text, #0f172a);
}

.pcd-attendee-list li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media ( max-width: 640px ) {
	.pcd-tab-header {
		flex-direction: column;
		align-items: flex-start;
	}

	#pcd-courses-table th:nth-child(3),
	#pcd-courses-table td:nth-child(3) {
		display: none;
	}

	#pcd-team-list {
		grid-template-columns: 1fr;
	}
}
