/* ─── Skip link ──────────────────────────────────────────────────────────── */
.skip-link {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
	z-index: 9999;
}
.skip-link:focus {
	position: fixed;
	top: 0;
	left: 0;
	width: auto;
	height: auto;
	padding: 12px 24px;
	background: #fff;
	color: #04454f;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	outline: 3px solid #24b793;
	outline-offset: 0;
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body.doc-page {
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	font-family: 'Poppins', sans-serif;
	color: #04454f;
	background: #fff;
}
body.doc-page #primary { overflow: hidden; }
body.doc-page * { box-sizing: border-box; }

/* ─── Shared ─────────────────────────────────────────────────────────────── */
.doc-heading {
	font-family: 'bogart_trialsemibold', Georgia, serif;
	font-size: 42px;
	line-height: 65px;
	color: #04454f;
	margin: 0 0 16px;
	font-weight: normal;
}

/* ─── Banner ─────────────────────────────────────────────────────────────── */
.doc-hero {
	position: relative;
	height: 100vh;
	max-height: 900px;
	min-height: 580px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #04454f;
}
.doc-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.doc-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba(4, 69, 79, 0.32);
}
.doc-hero__logo {
	position: absolute;
	top: 24px;
	left: 32px;
	z-index: 10;
}
.doc-hero__logo img { width: 210px; height: auto; }
.doc-hero__content {
	position: relative;
	z-index: 10;
	text-align: center;
	color: #fff;
	max-width: 1300px;
	padding: 0 2rem;
	text-wrap:balance;
}
.doc-hero__title {
	font-family: 'bogart_trialsemibold', Georgia, serif;
	font-size: 54px;
	line-height: 65px;
	margin: 0 0 8px;
	font-weight: normal;
}
.doc-hero__subtitle {
	font-size: 32px;
	line-height: 65px;
	font-weight: 400;
	margin: 0;
}

/* ─── In-page nav ────────────────────────────────────────────────────────── */
.doc-nav {
	background-color: #04454f;
	box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.doc-nav__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px;
	max-width:1500px;
	margin: 0 auto;
	flex-wrap: wrap;
}
.doc-nav__link {
	font-weight: 600;
	font-size: 15px;
	color: #24b793;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity 0.15s;
}
.doc-nav__link:hover,
.doc-nav__link:focus { opacity: 0.7; color: #24b793; text-decoration: none; }

/* ─── Dot nav (right-side section indicator) ─────────────────────────────── */
.doc-dot-nav {
	position: fixed;
	right: 28px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 200;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}
.doc-dot-nav__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: rgba(30,30,30,0.35);
	border: none;
	box-shadow: 0 0 0 1.5px rgba(255,255,255,0.6);
	cursor: pointer;
	transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
	padding: 0;
	appearance: none;
	-webkit-appearance: none;
	flex-shrink: 0;
}
.doc-dot-nav__dot:hover {
	background: rgba(30,30,30,0.6);
	transform: scale(1.2);
}
.doc-dot-nav__dot.is-active {
	background: #1a1a1a;
	box-shadow: 0 0 0 1.5px rgba(255,255,255,0.7);
	transform: scale(1.15);
}

/* ─── Z Row ──────────────────────────────────────────────────────────────── */
.doc-z-row {
	padding: 88px 10%;
}
.doc-z-row__grid {
	display: flex;
	gap: 72px;
	align-items: center;
	max-width: 1150px;
	margin: 0 auto;
}
.doc-z-row__grid--image-left  { flex-direction: row-reverse; }
.doc-z-row__grid--image-right { flex-direction: row; }
.doc-z-row__text { flex: 1; min-width: 0; }
.doc-z-row__subheading {
	font-weight: 700;
	font-size: 24px;
	line-height: 1.5;
	margin: 0 0 16px;
}
.doc-z-row__body {
	font-size: 20px;
	line-height: 1.5;
	font-weight: 400;
	margin: 0;
}
.doc-z-row__body p { margin: 0 0 1em; }
.doc-z-row__body p:last-child { margin-bottom: 0; }
.doc-z-row__body a { color: #24b793; text-decoration: underline; }
.doc-z-row__photo { flex: 0 0 430px; }
.doc-z-row__photo img {
	width: 100%;
	height: 420px;
	object-fit: cover;
	border-radius: 32px;
	display: block;
}

/* ─── Video ──────────────────────────────────────────────────────────────── */
.doc-video {
	padding: 80px 10% 100px;
	text-align: center;
	overflow: hidden;
	/* background-image set via inline style (PHP URL) */
	background-size: 170% 100%;
	background-position: center center;
	background-repeat: no-repeat;
	position: relative;
	z-index: 2;
}
.doc-video__heading {
	font-family: 'bogart_trialsemibold', Georgia, serif;
	font-size: 42px;
	line-height: 65px;
	color: #fff;
	margin: 0 0 32px;
	font-weight: normal;
}
.doc-video__embed-wrap {
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
	aspect-ratio: 16 / 9;
	background: #d9d9d9;
	border-radius: 8px;
	overflow: hidden;
	position: relative;
}
.doc-video__embed-wrap iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.doc-video__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #666;
	font-size: 18px;
}

/* ─── Logo Garden ────────────────────────────────────────────────────────── */
.doc-logo-garden {
	background: #fdf0e9;
	padding: 72px 10% 64px;
	position: relative;
	z-index: 1;
	text-align: center;
}
.doc-logo-garden .doc-heading { font-size: 32px; }
.doc-logo-garden__logos {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 40px auto 0 auto;
	flex-wrap: wrap;
	max-width: 900px;
}
.doc-logo-garden__logo-wrap { display: block; }
.doc-logo-garden__logo {
	max-height: 125px;
	max-width: 250px;
	width: auto;
	object-fit: contain;
	mix-blend-mode: multiply;
	display: block;
}

/* ─── Social ─────────────────────────────────────────────────────────────── */
.doc-social {
	padding: 60px 10% 80px;
	text-align: center;
	/* background-image set via inline style (PHP URL) */
	background-size: 120% auto;
	background-position: center top;
	background-repeat: no-repeat;
}
.doc-social__icons {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 40px;
	margin-top: 28px;
}
.doc-social__icon {
	display: block;
	width: 38px;
	height: 38px;
	transition: opacity 0.15s;
}
.doc-social__icon:hover { opacity: 0.7; }
.doc-social__icon img { width: 100%; height: 100%; object-fit: contain; }

/* ─── main.css conflict overrides ───────────────────────────────────────── */
body.doc-page h1 { font-size: 54px; line-height: 65px; }
body.doc-page h2 { font-size: 42px; line-height: 65px; }
body.doc-page h3, body.doc-page h4 { font-size: inherit; line-height: inherit; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.doc-footer {
	background: #04454f;
	padding: 0 40px;
	min-height: 100px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.doc-footer__logo { padding: 40px 0; }
.doc-footer__logo img { height: 56px; width: auto; display: block; }
.doc-footer__legal {
	font-size: 13px;
	color: #fff !important;
	text-align: right;
	line-height: 1.65;
	margin: 0;
}
.doc-footer__legal a { color: #f06924 !important; text-decoration: underline; }

/* ─── Shared button ──────────────────────────────────────────────────────── */
.doc-btn {
	display: inline-block;
	background: #24b793;
	color: #04454f;
	font-weight: 600;
	font-size: 15px;
	padding: 10px 24px;
	border-radius: 8px;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	transition: opacity 0.15s;
}
.doc-btn:hover,
.doc-btn:focus { opacity: 0.85; color: #04454f; text-decoration: none; }

/* ─── Screening Dates ────────────────────────────────────────────────────── */
.doc-screenings {
	padding: 88px 10%;
}
.doc-screenings__inner {
	max-width: 1150px;
	margin: 0 auto;
}
.doc-screenings .doc-heading { margin-bottom: 48px; }
.doc-screenings__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 48px;
}
.doc-screenings__date {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.5;
	color: #04454f;
	margin: 0 0 4px;
}
.doc-screenings__location {
	font-size: 24px;
	font-weight: 700;
	color: #f06924;
	line-height: 1.5;
	margin: 0 0 16px;
}
.doc-screenings__card {
	display: flex;
	flex-direction: column;
}
.doc-screenings__card .doc-btn {
	margin-top: auto;
	align-self: flex-start;
}
.doc-screenings__desc {
	font-size: 20px;
	font-weight: 400;
	color: #04454f;
	line-height: 1.5;
	margin: 0 0 24px;
}
.doc-screenings__carousel { position: relative; }
.doc-screenings__track-wrap { overflow: hidden; }
.doc-screenings__track {
	display: flex;
	gap: 48px;
	transition: transform 0.4s ease;
	will-change: transform;
}
.doc-screenings__track .doc-screenings__card {
	flex: 0 0 calc((100% - 96px) / 3);
	min-width: 0;
}
.doc-screenings__arrows {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-top: 48px;
}
.doc-screenings__arrow {
	width: 45px;
	height: 45px;
	border-radius: 50%;
	border: 2px solid #f06924;
	background: transparent;
	cursor: pointer;
	color: #f06924;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.15s;
	padding: 0;
	flex-shrink: 0;
}
.doc-screenings__arrow:hover:not(:disabled) { opacity: 0.7; }
.doc-screenings__arrow:disabled { opacity: 0.3; cursor: default; }
.doc-screenings__arrow svg { display: block; }

/* ─── Meet the Cast ──────────────────────────────────────────────────────── */
.doc-cast {
	padding: 88px 10%;
}
.doc-cast__inner {
	max-width: 1200px;
	margin: 0 auto;
}
.doc-cast .doc-heading { margin-bottom: 40px; }
.doc-cast__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.doc-cast__card {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	background: #d9d9d9;
	aspect-ratio: 1;
}
.doc-cast__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.doc-cast__photo-placeholder {
	position: absolute;
	inset: 0;
	background: #d9d9d9;
}
.doc-cast__caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: #eee;
	border-radius: 0 0 10px 10px;
	padding: 12px;
	display: flex;
	flex-direction: column;
}
.doc-cast__name {
	font-family: 'bogart_trialsemibold', Georgia, serif;
	font-size: 24px;
	line-height: 1;
	color: #04454f;
	margin: 0 0 4px;
	font-weight: normal;
}
.doc-cast__affiliation {
	font-size: 16px;
	font-weight: 700;
	color: #f06924;
	line-height: 1.2;
	margin-top: auto;
}

/* ─── FAQs ───────────────────────────────────────────────────────────────── */
.doc-faqs {
	/* background-image set via inline style (PHP URL) */
	background-size: 162% 100%;
	background-position: center center;
	background-repeat: no-repeat;
	padding: 80px 10%;
	overflow: hidden;
	position: relative;
	z-index: 2;
}
.doc-faqs__inner {
	max-width: 1163px;
	margin: 0 auto;
}
.doc-faqs__heading {
	font-family: 'bogart_trialsemibold', Georgia, serif;
	font-size: 42px;
	line-height: normal;
	color: #24b793;
	margin: 0 0 48px;
	font-weight: normal;
}
.doc-faqs__item {
	border-top: 1px solid #f06924;
}
.doc-faqs__item:last-child {
	border-bottom: 1px solid #f06924;
}
.doc-faqs__question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	background: none;
	border: none;
	padding: 24px 0;
	cursor: pointer;
	text-align: left;
	gap: 24px;
	color: #fff;
	font-family: 'Poppins', sans-serif;
}
.doc-faqs__question > span:first-child {
	font-weight: 600;
	font-size: 22px;
	line-height: 1.2;
	flex: 1;
}
.doc-faqs__toggle {
	font-size: 28px;
	color: #24b793;
	font-weight: 400;
	line-height: 1;
	flex-shrink: 0;
	width: 28px;
	text-align: center;
	font-family: 'Poppins', sans-serif;
}
.doc-faqs__answer {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.35s ease;
}
.doc-faqs__answer.is-open {
	grid-template-rows: 1fr;
}
.doc-faqs__answer__inner {
	overflow: hidden;
	min-height: 0;
	font-size: 20px;
	line-height: 1.5;
	color: #fff;
	padding-bottom: 0;
	transition: padding-bottom 0.35s ease;
}
.doc-faqs__answer.is-open .doc-faqs__answer__inner {
	padding-bottom: 32px;
}
.doc-faqs__answer__inner p { margin: 0 0 1em; }
.doc-faqs__answer__inner p:last-child { margin-bottom: 0; }
.doc-faqs__answer__inner a { color: #24b793; text-decoration: underline; }

/* ─── Cast bio link/lightbox ─────────────────────────────────────────────── */
.doc-cast__card-link {
	position: absolute;
	inset: 0;
	z-index: 5;
	background: transparent;
	border: none;
	cursor: pointer;
	display: block;
	text-decoration: none;
}
.doc-cast__card--clickable .doc-cast__photo,
.doc-cast__card--clickable .doc-cast__photo-placeholder {
	transition: filter 0.2s;
}
.doc-cast__card--clickable:hover .doc-cast__photo,
.doc-cast__card--clickable:hover .doc-cast__photo-placeholder {
	filter: brightness(0.82);
}

/* ─── Cast bio lightbox ──────────────────────────────────────────────────── */
.doc-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.doc-lightbox[hidden] { display: none; }
.doc-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	cursor: pointer;
}
.doc-lightbox__panel {
	position: relative;
	background: #fff;
	border-radius: 16px;
	max-width: 680px;
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
	padding: 48px;
}
.doc-lightbox__close {
	position: absolute;
	top: 14px;
	right: 18px;
	background: none;
	border: none;
	font-size: 32px;
	cursor: pointer;
	color: #04454f;
	line-height: 1;
	padding: 4px 8px;
	font-weight: 300;
}
.doc-lightbox__close:hover { opacity: 0.6; }
.doc-lightbox__body h2 {
	font-family: 'bogart_trialsemibold', Georgia, serif;
	font-size: 30px;
	color: #04454f;
	margin: 0 0 6px;
	font-weight: normal;
}
.doc-lightbox__affiliation {
	font-size: 14px;
	font-weight: 700;
	color: #f06924;
	margin: 0 0 24px !important;
}
.doc-lightbox__body p {
	font-size: 18px;
	line-height: 1.6;
	color: #04454f;
	margin: 0 0 1em;
}
.doc-lightbox__body p:last-child { margin-bottom: 0; }
.doc-lightbox__body a { color: #24b793; text-decoration: underline; }

/* ─── Basic Text ─────────────────────────────────────────────────────────── */
.doc-basic-text {
	padding: 88px 10%;
}
.doc-cast + .doc-basic-text {
	padding-top:0;
}
.doc-basic-text__inner {
	max-width: 1150px;
	margin: 0 auto;
}
.doc-basic-text .doc-heading { margin-bottom: 24px; }
.doc-basic-text__body {
	font-size: 20px;
	line-height: 1.5;
	font-weight: 400;
}
.doc-basic-text__body p { margin: 0 0 1em; }
.doc-basic-text__body p:last-child { margin-bottom: 0; }
.doc-basic-text__body a { color: #24b793; text-decoration: underline; }
.doc-basic-text__body h2 { font-size: 32px; line-height: 1.3; margin: 0 0 16px; }
.doc-basic-text__body h3 { font-size: 24px; line-height: 1.4; margin: 0 0 12px; }
.doc-basic-text__body ul,
.doc-basic-text__body ol { margin: 0 0 1em; padding-left: 1.5em; }
.doc-basic-text__body li { margin-bottom: 0.4em; }

/* ─── Resources ──────────────────────────────────────────────────────────── */
.doc-resources {
	padding: 88px 10%;
}
.doc-resources__inner {
	max-width: 1200px;
	margin: 0 auto;
}
.doc-resources .doc-heading { margin-bottom: 48px; }
.doc-resources__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 48px;
}
.doc-resources__img-wrap {
	border-radius: 20px;
	overflow: hidden;
	margin-bottom: 24px;
	aspect-ratio: 4 / 3;
}
.doc-resources__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.doc-resources__title {
	font-family: 'bogart_trialsemibold', Georgia, serif;
	font-size: 32px;
	line-height: 38px;
	color: #04454f;
	margin: 0 0 12px;
	font-weight: normal;
}
.doc-resources__desc {
	font-size: 20px;
	line-height: 1.5;
	color: #04454f;
	margin: 0;
}
.doc-resources__desc p { margin: 0 0 1em; }
.doc-resources__desc p:last-child { margin-bottom: 0; }
.doc-resources__desc a { color: #24b793; text-decoration: underline; }
.doc-resources__desc a:hover { opacity: 0.8; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.doc-hero { max-height: 500px; min-height: 360px; }
	body.doc-page .doc-hero__title  { font-size: 30px; line-height: 1.3; }
	.doc-hero__subtitle { font-size: 18px; line-height: 1.4; }

	.doc-z-row__grid--image-left,
	.doc-z-row__grid--image-right { flex-direction: column; gap: 40px; }
	.doc-z-row__photo { flex: none; width: 100%; }
	.doc-z-row__photo img { height: 280px; }

	.doc-nav__inner { gap: 16px; padding: 14px 16px; justify-content: center; }
	.doc-nav__link  { font-size: 13px; }

	.doc-logo-garden__logos { justify-content: center; gap: 32px; }

	.doc-screenings__grid { grid-template-columns: 1fr; gap: 40px; }
	.doc-screenings__track { gap: 16px; }
	.doc-screenings__track .doc-screenings__card { flex: 0 0 100%; }

	.doc-cast__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
	.doc-cast__name { font-size: 17px; }

	.doc-faqs__question > span:first-child { font-size: 18px; }

	.doc-resources__grid { grid-template-columns: 1fr; gap: 40px; }

	.doc-footer { flex-direction: column; align-items: center; padding: 32px 24px; }
	.doc-footer__logo { padding: 0; }
	.doc-footer__legal { text-align: center; }

	.doc-dot-nav { display: none; }
}

/* ─── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.doc-dot-nav__dot,
	.doc-nav__link,
	.doc-social__icon,
	.doc-btn,
	.doc-cast__photo,
	.doc-cast__photo-placeholder,
	.doc-faqs__answer,
	.doc-faqs__answer__inner,
	.doc-screenings__track { transition: none; }
}
