/* Brand fonts & colors, sourced from healthpolicycommons.com */
.hpc-conference-menu,
.hpc-conference-content {
	--hpc-font-heading: 'Libre Baskerville', Georgia, serif;
	--hpc-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	--hpc-color-ink: #263a33;
	--hpc-color-accent: #005a99;
	--hpc-color-accent-hover: #00436e;
	--hpc-color-active: #c62828;
	--hpc-color-light-bg: #f6f6f6;
	--hpc-color-table-header: #d9edf7;
	--hpc-color-table-stripe: #f9f9f9;

	font-family: var(--hpc-font-body);
	color: var(--hpc-color-ink);
}

/* Tab title (rendered before any widget in each panel) */
.hpc-conference-content .hpc-tab-title {
	/* font-family: var(--hpc-font-heading); */
	/* color: var(--hpc-color-ink); */
	/* font-size: 28px; */
	/* font-weight: 700; */
	/* margin: 0 0 20px; */
}

/* Tab nav buttons */
.hpc-conference-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hpc-conference-menu .hpc-tab-btn {
	background-color: var(--hpc-color-accent);
	color: #ffffff;
	border: none;
	padding: 10px 20px;
	font-family: var(--hpc-font-body);
	font-size: 15px;
	cursor: pointer;
	border-radius: 4px;
	transition: background-color 0.2s ease;
	flex-grow:1;
}

.hpc-conference-menu .hpc-tab-btn:hover {
	background-color: var(--hpc-color-accent-hover);
}

.hpc-conference-menu .hpc-tab-btn.active {
	background-color: var(--hpc-color-active);
	color: #ffffff;
}

.hpc-conference-content .hpc-tab-panel {
	display: none;
}

.hpc-conference-content .hpc-tab-panel.active {
	display: block;
}

/* Detailed agenda: Time/Title header row, fixed-width time column, per-item
   colored title bar, plain body text below */
.hpc-conference-content .hpc-agenda-header {
	display: flex;
	background-color: var(--hpc-color-table-header);
	color: var(--hpc-color-ink);
	font-weight: 700;
	border-bottom: 2px solid var(--hpc-color-accent);
}

.hpc-conference-content .hpc-agenda-header-time {
	flex: 0 0 100px;
	padding: 10px 8px;
}

.hpc-conference-content .hpc-agenda-header-title {
	flex: 1;
	padding: 10px 8px;
}

.hpc-conference-content .hpc-agenda-list {
	display: flex;
	flex-direction: column;
}

.hpc-conference-content .hpc-agenda-item {
	display: flex;
	align-items: stretch;
	border-bottom: 1px solid #e0e0e0;
}

.hpc-conference-content .hpc-agenda-time {
	flex: 0 0 100px;
	padding: 8px;
	font-weight: 600;
	color: var(--hpc-color-ink);
	background-color: #fbfbfb;
}

.hpc-conference-content .hpc-agenda-body {
	flex: 1;
	min-width: 0;
}

.hpc-conference-content .hpc-agenda-title {
	font-family: var(--hpc-font-body);
	font-size: 22px;
	font-weight: 500;
	color: var(--hpc-color-ink);
	padding: 8px;
	margin: 0;
}

.hpc-conference-content .hpc-agenda-text {
	padding: 0 8px;
}

.hpc-conference-content .hpc-agenda-text p {
	margin: 0 0 10px;
	line-height: 1.5;
}

.hpc-conference-content .hpc-agenda-text p:last-child {
	margin-bottom: 12px;
}

/* Topical agenda: full-width, colored time column + side-by-side session
   cards per row */
.hpc-conference-content .hpc-widget-topical-agenda {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #e0e0e0;
}

.hpc-conference-content .hpc-topical-timeslot {
	display: flex;
	width: 100%;
	border-bottom: 1px solid #ffffff;
}

.hpc-conference-content .hpc-topical-timeslot:last-child {
	border-bottom: none;
}

.hpc-conference-content .hpc-topical-time {
	flex: 0 0 110px;
	background-color: var(--hpc-color-accent);
	color: #ffffff;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 12px 8px;
}

.hpc-conference-content .hpc-topical-items {
	display: flex;
	flex: 1;
	min-width: 0;
}

.hpc-conference-content .hpc-topical-item {
	flex: 1;
	min-width: 0;
	padding: 16px;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	border-left: 1px solid rgba(255, 255, 255, 0.6);
}

.hpc-conference-content .hpc-topical-item:first-child {
	border-left: none;
}

.hpc-conference-content .hpc-topical-item p:first-child {
	margin-top: 0;
}

.hpc-conference-content .hpc-topical-item p:last-child {
	margin-bottom: 0;
}

/* Convening panel: full-width, zebra-striped table, horizontally scrollable
   on narrow screens */
.hpc-conference-content .hpc-panel-table-wrap {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.hpc-conference-content .hpc-panel-table {
	width: 100%;
	min-width: 480px;
	border-collapse: collapse;
	font-family: var(--hpc-font-body);
	font-size:14px;
}

.hpc-conference-content .hpc-panel-table th {
	text-align: left;
	background-color: var(--hpc-color-table-header);
	color: var(--hpc-color-ink);
	padding: 8px 10px;
	font-weight: 700;
	white-space: nowrap;
}

.hpc-conference-content .hpc-panel-table td {
	padding: 8px 10px;
	vertical-align: top;
}

.hpc-conference-content .hpc-panel-table tbody tr:nth-child(even) td {
	background-color: var(--hpc-color-table-stripe);
}

.hpc-conference-content .hpc-panel-name {
	font-weight: 600;
	width: 30%;
}

.hpc-conference-content .hpc-panel-title {
	width: 35%;
}

.hpc-conference-content .hpc-panel-org {
	color: #555;
	width: 35%;
}

/* =====================================================================
   Registration Block (registration_block layout)
   ===================================================================== */

.hpc-conference-content .hpc-reg-sep {
	border: none;
	border-top: 2px solid var(--hpc-color-accent);
	margin: 0 0 18px;
}

.hpc-conference-content .hpc-event-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

.hpc-conference-content .hpc-event-name {
	font-family: var(--hpc-font-heading);
	font-weight: 700;
	font-size: 20px;
	color: var(--hpc-color-ink);
	line-height: 1.2;
}

.hpc-conference-content .hpc-event-date {
	font-size: 14px;
	font-weight: 600;
	color: #6e7370;
	white-space: nowrap;
	/* margin-left: auto; */
	flex-basis: 100%;
}

.hpc-conference-content .hpc-event-loc {
	font-size: 14px;
	color: #3c423f;
	margin-top: 8px;
}

.hpc-conference-content .hpc-event-addr {
	font-size: 13px;
	color: #6e7370;
	margin: 2px 0 24px;
}

.hpc-conference-content .hpc-tickets {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hpc-conference-content .hpc-ticket-row {
	display: grid;
	grid-template-columns: 1fr auto 96px;
	align-items: center;
	gap: 18px;
	border: 1.5px solid #e5e2d9;
	border-radius: 9px;
	padding: 16px 18px;
	transition: border-color 0.15s, background 0.15s;
}

.hpc-conference-content .hpc-ticket-row:hover {
	border-color: var(--hpc-color-accent);
	background: #eaf1f8;
}

.hpc-conference-content .hpc-ticket-name {
	font-family: var(--hpc-font-heading);
	font-weight: 700;
	font-size: 18px;
	color: var(--hpc-color-ink);
	line-height: 1.2;
}

.hpc-conference-content .hpc-ticket-desc {
	font-size: 12.5px;
	color: #9b9f9c;
	margin-top: 4px;
}

.hpc-conference-content .hpc-ticket-price {
	font-family: var(--hpc-font-heading);
	font-weight: 700;
	font-size: 20px;
	color: var(--hpc-color-ink);
	text-align: right;
	white-space: nowrap;
	grid-column: 2 / 3;
}

.hpc-conference-content .hpc-ticket-status {
	grid-column: 2 / 4;
	text-align: right;
	font-size: 14px;
	font-weight: 600;
	color: #9e2b2b;
	white-space: nowrap;
}

.hpc-conference-content .hpc-ticket-qty-wrap {
	position: relative;
}

.hpc-conference-content .hpc-ticket-qty-wrap::after {
	content: "";
	position: absolute;
	right: 13px;
	top: 50%;
	width: 7px;
	height: 7px;
	border-right: 1.5px solid #6e7370;
	border-bottom: 1.5px solid #6e7370;
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}

.hpc-conference-content select.hpc-ticket-qty {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	padding: 10px 30px 10px 13px;
	border: 1px solid #e5e2d9;
	border-radius: 6px;
	background: #ffffff;
	font-family: var(--hpc-font-body);
	font-size: 14px;
	font-weight: 600;
	color: var(--hpc-color-ink);
	cursor: pointer;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.hpc-conference-content select.hpc-ticket-qty:hover {
	border-color: #9b9f9c;
}

.hpc-conference-content select.hpc-ticket-qty:focus {
	outline: none;
	border: 2px solid var(--hpc-color-accent);
	padding: 9px 29px 9px 12px;
	box-shadow: 0 0 0 3px rgba(0, 90, 153, 0.1);
}

.hpc-conference-content .hpc-reg-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-top: 24px;
	padding-top: 22px;
	border-top: 1px solid #e5e2d9;
	flex-wrap: wrap;
}

.hpc-conference-content .hpc-reg-summary {
	font-size: 14px;
	color: #6e7370;
}

.hpc-conference-content .hpc-reg-count {
	font-weight: 600;
	color: var(--hpc-color-ink);
}

.hpc-conference-content .hpc-reg-total {
	font-family: var(--hpc-font-heading);
	font-weight: 700;
	font-size: 22px;
	color: var(--hpc-color-ink);
	margin-left: 8px;
}

.hpc-conference-content .hpc-btn-register {
	font-family: var(--hpc-font-body);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #ffffff;
	background: #9e2b2b;
	border: none;
	border-radius: 6px;
	padding: 14px 40px;
	cursor: pointer;
	transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}

.hpc-conference-content .hpc-btn-register:hover {
	background: #7d1b1b;
	box-shadow: 0 6px 16px rgba(125, 27, 27, 0.28);
	transform: translateY(-1px);
}

.hpc-conference-content .hpc-btn-register:active {
	transform: translateY(0);
	box-shadow: 0 2px 6px rgba(125, 27, 27, 0.3);
}

.hpc-conference-content .hpc-reg-fineprint {
	font-size: 11.5px;
	color: #9b9f9c;
	margin: 16px 0 0;
	font-style: italic;
}

.hpc-conference-content .hpc-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.hpc-widget-text a {
	color:#005a99;
	font-weight:700;
}

@media (max-width: 560px) {
	.hpc-conference-content .hpc-ticket-row {
		grid-template-columns: 1fr auto;
		grid-template-areas: "name name" "price price" "desc desc" "qty qty";
		row-gap: 10px;
	}
	.hpc-conference-content .hpc-ticket-main {grid-area: name;}
	.hpc-conference-content .hpc-ticket-price { grid-area: price; grid-column: auto; }
	.hpc-conference-content .hpc-ticket-status { grid-area: price; grid-column: auto; text-align: right; }
	.hpc-conference-content .hpc-ticket-desc { grid-area: desc; }
	.hpc-conference-content .hpc-ticket-qty-wrap { grid-area: qty; }
	.hpc-conference-content .hpc-reg-foot { flex-direction: column; align-items: stretch; }
	.hpc-conference-content .hpc-btn-register { width: 100%; }
}
