/*
 * DER-111: public landing tabs (Burnout, Residents, FAQ, Faculty) and the public
 * header. Loaded by includes/home2.blade.php on every public page; the page rules
 * only match the .pf-landing markup used by the four tabs, and the dark rules only
 * apply where theme.js has set data-theme (the four tabs load it).
 *
 * Text colours meet WCAG AA in both themes:
 *   light: text #26262B on #FFF (15.3:1), links #BC2445 (5.9:1)
 *   dark:  text #F2F2F3 on #18202F (14.7:1), links #F27A9E (6.2:1)
 */

/* ---- Public header (all home2 pages) ---- */
.header .brand-logo { width: 140px; max-width: 100%; }
.header .brand-logo img { width: 140px; max-width: 100%; height: auto; }
.header .header-top-right .dmx_login_sign { font-size: 13px; padding: 0 12px; height: 40px; }
#mySidenavR .mobile_btn .login_sign { font-size: 14px; }
/* AA contrast: white on #D03766 is 4.42:1 (black 4.75:1); white on #BC2445 is 5.9:1. */
.header .dmx_login_sign, #mySidenavR .mobile_btn .login_sign { background: #bc2445 !important; color: #fff; }
/* Copyright link on the dark footer (#212529): #D93467 was 3.4:1, #F27A9E is 6.4:1. */
.footer-section .footer-bottom a { color: #f27a9e; }

/* ---- Tokens ---- */
.pf-landing {
	--pf-l-bg: #ffffff;
	--pf-l-text: #26262b;
	--pf-l-muted: #55555f;
	--pf-l-link: #bc2445;
	--pf-l-pink: #d03766;
	--pf-l-stat: #bc2445;
	--pf-l-line: #ece6e8;
	--pf-l-tint: #fff1f5;
	--pf-l-cta-bg: #fdf0f4;
	--pf-l-btn-bg: #bc2445;
	--pf-l-btn-text: #ffffff;
	background: var(--pf-l-bg);
	color: var(--pf-l-text);
	padding: 32px 20px 8px;
}

html[data-theme="dark"] .pf-landing {
	--pf-l-bg: #18202f;
	--pf-l-text: #f2f2f3;
	--pf-l-muted: #b4bac6;
	--pf-l-link: #f27a9e;
	--pf-l-pink: #f27a9e;
	--pf-l-stat: #f27a9e;
	--pf-l-line: #343c4c;
	--pf-l-tint: #3a2a31;
	--pf-l-cta-bg: #232b3b;
	--pf-l-btn-bg: #bc2445;
	--pf-l-btn-text: #ffffff;
}

/* ---- Reading column and type ---- */
.pf-landing-article { max-width: 760px; margin: 0 auto; }

.pf-landing-title {
	font-size: 34px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--pf-l-text);
	margin: 8px 0 24px;
	text-align: left;
	text-transform: none;
	letter-spacing: -0.01em;
}

.pf-landing-body {
	font-size: 17px;
	line-height: 1.6;
	font-weight: 400;
	color: var(--pf-l-text);
	overflow-wrap: break-word;
}

.pf-landing-body :is(p, li, blockquote, span, div, td) { font-size: inherit; line-height: inherit; color: inherit; font-weight: inherit; }
.pf-landing-body :is(b, strong) { font-weight: 700; }
.pf-landing-body p { margin: 0 0 1em; }

.pf-landing-body h2 {
	font-size: 24px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--pf-l-text);
	margin: 1.8em 0 0.6em;
	text-transform: none;
}
.pf-landing-body h2:first-child { margin-top: 0; }
.pf-landing-body h3 { font-size: 20px; line-height: 1.35; font-weight: 700; color: var(--pf-l-text); margin: 1.4em 0 0.5em; }
.pf-landing-body :is(h2, h3) :is(b, strong, span) { font-size: inherit; font-weight: inherit; }

.pf-landing-body :is(ul, ol) { padding-left: 1.6em; margin: 0 0 1em; }
/* The site's base CSS removes list markers; numbered steps and references need them. */
.pf-landing-body ol, .pf-landing-body ol > li { list-style: decimal outside; }
.pf-landing-body ul, .pf-landing-body ul > li { list-style: disc outside; }
.pf-landing-body li { display: list-item; margin-bottom: 0.4em; }
.pf-landing-body li::marker { color: var(--pf-l-muted); font-weight: 600; }

.pf-landing-body blockquote {
	margin: 1.2em 0;
	padding: 12px 16px;
	border-left: 4px solid var(--pf-l-pink);
	background: var(--pf-l-tint);
	border-radius: 0 8px 8px 0;
}
.pf-landing-body blockquote blockquote { margin: 0; padding: 0; border: 0; background: none; }

/* Links: Phrasefire pink, underline on hover/focus. */
.pf-landing a:not(.pf-btn) { color: var(--pf-l-link); text-decoration: none; }
.pf-landing a:not(.pf-btn):is(:hover, :focus-visible) { color: var(--pf-l-link); text-decoration: underline; }
.pf-landing :is(a, button):focus-visible { outline: 2px solid var(--pf-l-link); outline-offset: 2px; border-radius: 4px; }
.pf-landing-body a { overflow-wrap: anywhere; }

/* ---- Classes used by the DER-111 admin text ---- */
.pf-landing-body .pf-references { margin-top: 2.2em; padding-top: 1em; border-top: 1px solid var(--pf-l-line); }
.pf-landing-body .pf-references :is(h2, h3) { font-size: 20px; margin: 0 0 0.6em; }
.pf-landing-body .pf-references ol { font-size: 16px; }
.pf-landing-body .pf-references li { font-size: 16px; color: var(--pf-l-muted); }

.pf-landing-body .pf-stat-block { margin: 2.2em 0 1.4em; }
.pf-landing-body .pf-stat-block:first-child { margin-top: 0; }
.pf-landing-body .pf-stat-block h2 { margin-top: 0.4em; }
.pf-landing-body .pf-stat { margin: 0 0 0.5em; }
.pf-landing-body .pf-stat-number { display: block; font-size: 44px; line-height: 1.1; font-weight: 800; color: var(--pf-l-stat); }
.pf-landing-body .pf-stat-label { display: block; font-size: 17px; font-weight: 600; color: var(--pf-l-text); }

.pf-landing-body .pf-callout {
	margin: 1.2em 0;
	padding: 14px 18px;
	background: var(--pf-l-tint);
	border-left: 4px solid var(--pf-l-pink);
	border-radius: 0 10px 10px 0;
	font-weight: 600;
}
.pf-landing-body .pf-callout p:last-child { margin-bottom: 0; }

.pf-landing-body ul.pf-checklist, .pf-landing-body ul.pf-checklist > li { list-style: none; }
.pf-landing-body ul.pf-checklist { padding-left: 0; }
.pf-landing-body ul.pf-checklist li { position: relative; padding-left: 1.9em; margin-bottom: 0.7em; }
.pf-landing-body ul.pf-checklist li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0;
	font-weight: 800;
	color: var(--pf-l-pink);
}

/* ---- Images ---- */
.pf-landing-figure { margin: 0 0 28px; }
.pf-landing-img--hero {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 21 / 9;
	object-fit: cover; /* object-position is set per page on the subject */
	border-radius: 12px;
}
@media (max-width: 767px) {
	.pf-landing-img--hero { aspect-ratio: 16 / 9; }
}

/* The Faculty diagram (21:9, 2100x900 since DER-110) is shown whole at its natural
   ratio, as wide as the hero images: the 760px reading column. Never cropped. */
.pf-landing-figure--diagram { width: 100%; }
/* DER-110 part 6: phones get the original square diagram via <picture>; same rules. */
.pf-landing-picture { display: block; width: 100%; }
.pf-landing-img--diagram { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 12px; }

/* ---- "Free for physicians" band (replaces "Welcome Earliest Users… Goals") ---- */
.pf-landing-cta {
	max-width: 760px;
	margin: 48px auto 56px;
	padding: 28px 24px;
	background: var(--pf-l-cta-bg);
	border-radius: 16px;
	text-align: center;
}
.pf-landing-cta-text { font-size: 22px; line-height: 1.35; font-weight: 700; color: var(--pf-l-text); margin: 0 0 16px; }
.pf-landing-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.pf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 26px;
	border-radius: 10px;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	border: 2px solid transparent;
}
.pf-btn-primary { background: var(--pf-l-btn-bg); color: var(--pf-l-btn-text); }
.pf-btn-primary:is(:hover, :focus-visible) { color: var(--pf-l-btn-text); text-decoration: underline; filter: brightness(1.08); }
.pf-btn-secondary { background: transparent; color: var(--pf-l-link); border-color: currentColor; }
.pf-btn-secondary:is(:hover, :focus-visible) { color: var(--pf-l-link); text-decoration: underline; }

/* ---- FAQ ---- */
.pf-faq-list { border-top: 1px solid var(--pf-l-line); }
.pf-faq-item { border-bottom: 1px solid var(--pf-l-line); }
.pf-faq-q { margin: 0; font-size: 17px; line-height: 1.4; }
.pf-faq-toggle {
	display: flex;
	align-items: baseline;
	gap: 10px;
	width: 100%;
	padding: 16px 4px;
	border: 0;
	background: none;
	text-align: left;
	font: inherit;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--pf-l-text);
	cursor: pointer;
}
.pf-faq-arrow::before { content: "\25B8"; color: var(--pf-l-pink); font-size: 16px; }
.pf-faq-toggle[aria-expanded="true"] .pf-faq-arrow::before { content: "\25BE"; }
.pf-faq-num { color: var(--pf-l-muted); font-weight: 600; }
.pf-faq-a { padding: 0 4px 18px 34px; font-size: 16px; }
.pf-faq-a.pf-landing-body { font-size: 16px; }
/* FAQ images (uploaded, or a pf-faq-figure in the answer): centred below the text,
   about 720px wide on desktop, rounded with a subtle border. */
.pf-faq-images { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 1.2em 0 0.4em; }
.pf-landing-body .pf-faq-figure { margin: 1.2em auto 0.4em; text-align: center; }
.pf-faq-images img, .pf-landing-body .pf-faq-figure img {
	display: block;
	width: 100%;
	max-width: 720px;
	height: auto;
	margin: 0 auto;
	border-radius: 12px;
	border: 1px solid var(--pf-l-line);
}

@media (max-width: 575px) {
	.pf-landing { padding: 24px 16px 8px; }
	.pf-landing-title { font-size: 32px; }
	.pf-faq-a { padding-left: 4px; }
}

/* Dark page, header and footer rules: public-dark.css (DER-113, all public pages). */
