/* ==========================================================================
   CAMAI 2026 - presentation layer
   Loaded after theme.css. Nothing here edits the vendor theme directly, so
   the template can still be updated underneath it.
   ========================================================================== */

:root {
	--camai-ink: #0a1626;
	--camai-navy: #0d2742;
	--camai-blue: #098dcf;
	--camai-blue-soft: #7fd3ff;
	--camai-coral: #EC645E;
	--camai-paper: #f0f6fa;
	--camai-rule: rgba(9, 141, 207, .18);
	--camai-shadow-lift: 0 18px 40px -22px rgba(10, 22, 38, .55);
}

/* ---------- Reading progress ---------- */
.reading-progress {
	position: fixed;
	inset: 0 auto auto 0;
	height: 3px;
	width: 0;
	z-index: 1100;
	background: linear-gradient(90deg, var(--camai-coral), var(--camai-blue));
	transition: width .12s linear;
}

/* ---------- Header ---------- */
.header.header-shrink {
	background: rgba(10, 22, 38, .82);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
	box-shadow: 0 1px 0 rgba(127, 211, 255, .16);
}

.navbar-nav .nav-link {
	position: relative;
}

.navbar-nav .nav-link::after {
	content: "";
	position: absolute;
	left: 1rem;
	right: 1rem;
	bottom: .55rem;
	height: 2px;
	background: var(--camai-coral);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-item.active .nav-link::after {
	transform: scaleX(1);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible {
	outline: 3px solid var(--camai-blue-soft);
	outline-offset: 2px;
	border-radius: 3px;
}

/* ---------- Hero ---------- */
.hero-block {
	height: auto;
	min-height: 660px;
	padding-top: 150px;
	padding-bottom: 4.5rem;
	background: var(--camai-ink);
}

.hero-carousel .carousel-item,
.hero-carousel .carousel-item-1,
.hero-carousel .carousel-item-2,
.hero-carousel .carousel-item-3 {
	background: url("../images/hopper-punchcard.svg") center / cover no-repeat;
	background-color: var(--camai-ink);
}

.hero-block-mask {
	background: linear-gradient(105deg, rgba(7, 16, 25, .92) 0%, rgba(10, 22, 38, .74) 48%, rgba(10, 22, 38, .42) 100%);
}

.hero-grid {
	position: relative;
	z-index: 20;
	display: flex;
	align-items: center;
	gap: 3.5rem;
}

.hero-text-block {
	max-width: 640px;
	flex: 1 1 auto;
}

.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	font-family: 'Montserrat', sans-serif;
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .04em;
	color: var(--camai-blue-soft);
	border: 1px solid rgba(127, 211, 255, .35);
	border-radius: 999px;
	padding: .35rem .95rem;
	margin-bottom: 1.1rem;
	background: rgba(9, 141, 207, .1);
}

.hero-text-block h1.hero-heading {
	letter-spacing: -.02em;
	line-height: 1.02;
	text-wrap: balance;
}

.hero-text-block .hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem 1.5rem;
	font-size: 1.32rem;
}

.hero-text-block .hero-intro {
	font-size: 1.35rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, .92);
	max-width: 34em;
}

.hero-cta {
	display: flex;
	flex-wrap: wrap;
	gap: .85rem;
}

.hero-note {
	margin-top: 1.5rem;
	font-size: .95rem;
	color: rgba(255, 255, 255, .62);
	max-width: 42ch;
	border-left: 2px solid var(--camai-coral);
	padding-left: .9rem;
}

/* Portrait frame */
.hero-portrait {
	flex: 0 0 300px;
	position: relative;
}

.hero-portrait figure {
	margin: 0;
	position: relative;
	border: 1px solid rgba(127, 211, 255, .3);
	padding: 10px;
	background: rgba(10, 22, 38, .55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .85);
}

.hero-portrait img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 42 / 52;
	object-fit: cover;
	object-position: center top;
	filter: saturate(.92) contrast(1.04);
}

.hero-portrait figcaption {
	font-size: .82rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, .68);
	padding: .7rem .2rem .1rem;
}

.hero-portrait figcaption a {
	color: var(--camai-blue-soft);
	text-decoration: underline;
	text-decoration-color: rgba(127, 211, 255, .4);
}

@media (max-width: 991.98px) {
	.hero-grid {
		flex-direction: column;
		align-items: flex-start;
		gap: 2.5rem;
	}

	.hero-portrait {
		flex: 0 0 auto;
		max-width: 230px;
	}
}

/* One orchestrated entrance, on load only */
@media (prefers-reduced-motion: no-preference) {
	.hero-stagger > * {
		opacity: 0;
		transform: translateY(14px);
		animation: heroIn .7s cubic-bezier(.22, .8, .3, 1) forwards;
	}

	.hero-stagger > *:nth-child(1) { animation-delay: .05s; }
	.hero-stagger > *:nth-child(2) { animation-delay: .14s; }
	.hero-stagger > *:nth-child(3) { animation-delay: .23s; }
	.hero-stagger > *:nth-child(4) { animation-delay: .32s; }
	.hero-stagger > *:nth-child(5) { animation-delay: .41s; }

	.hero-portrait {
		opacity: 0;
		animation: heroIn .8s cubic-bezier(.22, .8, .3, 1) .3s forwards;
	}
}

@keyframes heroIn {
	to {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Stats ---------- */
.stats-block {
	background: linear-gradient(90deg, var(--camai-navy), var(--camai-blue) 60%, #0a6fa3);
}

.stats-block .item {
	padding: .35rem 0;
	border-left: 1px solid rgba(255, 255, 255, .16);
}

.stats-block .col-6:first-child .item {
	border-left: 0;
}

.stats-block .unit {
	color: rgba(255, 255, 255, .78);
	font-size: 1.05rem;
	letter-spacing: .01em;
}

.stats-block .number {
	font-variant-numeric: tabular-nums;
	font-size: 2.1rem;
}

@media (max-width: 767.98px) {
	.stats-block .col-6:nth-child(odd) .item {
		border-left: 0;
	}
}

/* ---------- Sections ---------- */
.section-heading {
	position: relative;
	padding-bottom: .85rem;
}

.section-heading::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 62px;
	height: 3px;
	transform: translateX(-50%);
	background: var(--camai-coral);
}

.text-white.section-heading::after {
	background: rgba(255, 255, 255, .65);
}

.reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .6s ease, transform .6s cubic-bezier(.22, .8, .3, 1);
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
}

.no-js .reveal {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.hero-stagger > *,
	.hero-portrait {
		opacity: 1;
		transform: none;
		animation: none;
	}
}

/* ---------- Dedication panel ---------- */
.dedication {
	border: 1px solid var(--camai-rule);
	border-left: 4px solid var(--camai-coral);
	background: #fff;
	padding: 2rem 2.25rem;
	margin: 0 auto 2.5rem;
	max-width: 800px;
	box-shadow: var(--camai-shadow-lift);
}

.dedication h4 {
	margin-bottom: .85rem;
}

.dedication p:last-child {
	margin-bottom: 0;
}

.dedication .dedication-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1rem 1.5rem;
	margin: 1.4rem 0 0;
	padding: 1.3rem 0 0;
	list-style: none;
	border-top: 1px solid var(--camai-rule);
}

.dedication .dedication-facts strong {
	display: block;
	font-family: 'Montserrat', sans-serif;
	font-size: 1.45rem;
	color: var(--camai-ink);
	line-height: 1.1;
}

.dedication .dedication-facts span {
	font-size: .93rem;
	color: #5a7794;
}

/* ---------- Schedule ---------- */
.schedule-nav .nav-link {
	transition: background .25s ease, color .25s ease;
}

.schedule-nav .nav-link:hover {
	background: #e3eef7;
}

.schedule-filter {
	max-width: 520px;
	margin: 0 auto 1.75rem;
	position: relative;
}

.schedule-filter input {
	width: 100%;
	padding: .8rem 1rem .8rem 2.7rem;
	border: 1px solid #cddbe8;
	border-radius: .4rem;
	font-size: 1rem;
	background: #fff;
}

.schedule-filter input:focus {
	outline: none;
	border-color: var(--camai-blue);
	box-shadow: 0 0 0 .2rem rgba(9, 141, 207, .18);
}

.schedule-filter .filter-icon {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: #8fa7c2;
	pointer-events: none;
}

.schedule-count {
	text-align: center;
	font-size: .92rem;
	color: #5a7794;
	margin-bottom: 1.5rem;
	min-height: 1.3em;
}

.schedule-tab-content .item .content {
	transition: transform .25s ease;
}

.schedule-tab-content .item.is-hidden {
	display: none;
}

.schedule-tab-content .item .desc {
	max-height: 8.5em;
	overflow: hidden;
	position: relative;
	transition: max-height .35s ease;
}

.schedule-tab-content .item .desc::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3.2em;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 92%);
	pointer-events: none;
}

.schedule-tab-content .item .desc.is-open {
	max-height: 260em;
}

.schedule-tab-content .item .desc.is-open::after,
.schedule-tab-content .item .desc.no-clamp::after {
	display: none;
}

.desc-toggle {
	background: none;
	border: 0;
	padding: .3rem 0 0;
	font-family: 'Montserrat', sans-serif;
	font-size: .85rem;
	font-weight: 700;
	color: var(--camai-blue);
	cursor: pointer;
}

.desc-toggle:hover {
	text-decoration: underline;
}

@media (max-width: 767.98px) {
	.schedule-tab-content .item .desc::after {
		background: linear-gradient(180deg, rgba(240, 246, 250, 0), var(--camai-paper) 92%);
	}
}

.session-flag {
	display: inline-block;
	font-family: 'Montserrat', sans-serif;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .03em;
	color: #fff;
	background: var(--camai-coral);
	padding: .2rem .6rem;
	border-radius: 3px;
	margin-bottom: .6rem;
}

/* ---------- Submission ---------- */
.submission-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
	gap: 1.25rem;
	max-width: 980px;
	margin: 0 auto 2.5rem;
}

.submission-card {
	background: #fff;
	border: 1px solid var(--camai-rule);
	padding: 1.6rem 1.5rem;
	display: flex;
	flex-direction: column;
	transition: transform .25s ease, box-shadow .25s ease;
}

.submission-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--camai-shadow-lift);
}

.submission-card h5 {
	font-size: 1.08rem;
	margin-bottom: .6rem;
}

.submission-card p {
	font-size: .97rem;
	margin-bottom: 1.1rem;
}

.submission-card .card-actions {
	margin-top: auto;
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.submission-card .icon-chip {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--camai-paper);
	color: var(--camai-blue);
	font-size: 1.15rem;
	margin-bottom: 1rem;
}

.btn-easychair {
	background: var(--camai-ink);
	color: #fff;
	font-size: 1.05rem;
	padding: .85rem 1.9rem;
	border: 2px solid var(--camai-ink);
	display: inline-flex;
	align-items: center;
	gap: .7rem;
}

.btn-easychair:hover,
.btn-easychair:focus {
	background: var(--camai-blue);
	border-color: var(--camai-blue);
	color: #fff;
}

.easychair-panel {
	max-width: 800px;
	margin: 0 auto 3rem;
	text-align: center;
	background: #fff;
	border: 1px solid var(--camai-rule);
	padding: 2.25rem 2rem;
	box-shadow: var(--camai-shadow-lift);
}

.easychair-panel p {
	max-width: 56ch;
	margin: 0 auto 1.4rem;
}

.deadline-table {
	max-width: 620px;
	margin: 0 auto 2.5rem;
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid var(--camai-rule);
}

.deadline-table th,
.deadline-table td {
	padding: .85rem 1.1rem;
	text-align: left;
	border-bottom: 1px solid var(--camai-rule);
	font-size: 1rem;
}

.deadline-table tr:last-child th,
.deadline-table tr:last-child td {
	border-bottom: 0;
}

.deadline-table th {
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	color: #415b78;
}

.deadline-table td {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	color: var(--camai-ink);
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.deadline-table tr.is-next td {
	color: var(--camai-coral);
}

.copy-mail {
	background: none;
	border: 1px solid var(--camai-rule);
	border-radius: .3rem;
	padding: .2rem .55rem;
	font-size: .85rem;
	color: var(--camai-blue);
	cursor: pointer;
	margin-left: .35rem;
	vertical-align: baseline;
}

.copy-mail:hover {
	background: var(--camai-paper);
}

.copy-mail.is-copied {
	color: #198754;
	border-color: #198754;
}

/* ---------- Countdown ---------- */
.countdown-box {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: .75rem;
}

.countdown-box span.days,
.countdown-box span.hours,
.countdown-box span.minutes,
.countdown-box span.secs {
	background: #fff;
	border: 1px solid var(--camai-rule);
	border-bottom: 3px solid var(--camai-blue);
	padding: .9rem 1.2rem;
	min-width: 94px;
}

.countdown-box .number {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--camai-ink);
}

.countdown-box .unit {
	font-size: .85rem;
	color: #5a7794;
}

/* ---------- Committee ---------- */
.speakers-section .card {
	transition: transform .25s ease, box-shadow .25s ease;
}

.speakers-section .card:hover {
	transform: translateY(-5px);
	box-shadow: var(--camai-shadow-lift);
}

.speakers-section .card-img-top {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: center top;
}

/* ---------- Archive ---------- */
.archive .benefits-list li a {
	color: #415b78;
	border-bottom: 1px solid transparent;
	transition: color .2s ease, border-color .2s ease;
}

.archive .benefits-list li a:hover {
	color: var(--camai-blue);
	border-color: var(--camai-blue);
	text-decoration: none;
}

/* ---------- Venue ---------- */
.venue-section iframe {
	width: 100%;
	max-width: 100%;
	height: 380px;
	border-radius: .25rem;
}

/* ---------- Back to top ---------- */
.to-top {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 90;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 50%;
	background: var(--camai-ink);
	color: #fff;
	font-size: 1rem;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s, background .25s ease;
	box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6);
}

.to-top.is-shown {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.to-top:hover {
	background: var(--camai-blue);
}

/* ---------- Footer ---------- */
.footer {
	border-top: 4px solid var(--camai-coral);
}

.footer .social-list a:hover {
	opacity: .75;
}

/* ---------- Print ---------- */
@media print {
	.header,
	.to-top,
	.reading-progress,
	.hero-cta,
	.schedule-filter {
		display: none !important;
	}

	.schedule-tab-content .item .desc {
		max-height: none;
	}

	.schedule-tab-content .item .desc::after {
		display: none;
	}
}
