/*
 * MindQuest pack 2 (Dec 2026): Combined Physics, Physics Practical Lab, O-/A-Level Physics Notes.
 * Loaded after mq-physics.css; only adds components the pack 1 pages do not have.
 * Sizes come from the Drive PDFs (1080pt = 1440px); typography follows the live site
 * (h1 46 / h2 36 / h3 26, body text never below 16px).
 */

/* ---------- Shared additions ---------- */

.mq-grid-2--top {
	align-items: start;
}

.mq-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 25px;
}

.mq-card--skill {
	background: var(--mq-soft);
	padding: 31px 28px 34px;
}

.mq-section--soft .mq-card--skill {
	background: var(--mq-soft);
}

.mq-card--skill .mq-card__kicker {
	letter-spacing: 0.1em;
	margin-bottom: 18px;
}

.mq-card--skill h3 {
	margin-bottom: 18px;
}

.mq-card--skill p {
	margin: 0;
}

.mq-note--left {
	text-align: left;
	margin-top: 22px;
}

.mq-enquire__trial {
	font-size: 16px;
}

/* Hero photo (practical lab): 16:9 rounded rectangle */
.mq-hero__img--wide {
	aspect-ratio: 395 / 223;
	object-position: center 40%;
}

/* Topics as a single-column list beside the copy */
.mq-topics--list {
	grid-template-columns: 1fr;
}

.mq-topics--list li {
	padding: 22px 0 24px;
}

.mq-topics--list li:last-child {
	border-bottom: 1px solid var(--mq-line);
}

/* Side box on a soft section */
.mq-sidebox--white {
	background: var(--mq-white);
}

/* Image + copy split */
.mq-split--media {
	align-items: center;
}

.mq-media__img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 8px;
}

/* Booking steps (practical lab) */
.mq-book {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 25px;
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
}

.mq-book__step {
	background: var(--mq-white);
	border: 1px solid var(--mq-line);
	border-radius: 4px;
	padding: 28px 24px 30px;
	font-size: 16px;
	line-height: 1.7;
}

.mq-book__n {
	display: block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--mq-blue-dark);
	margin: 0 0 16px;
}

.mq-book__step h3 {
	font-size: 22px;
	line-height: 1.25;
	margin: 0 0 14px;
}

.mq-book__step p {
	margin: 0;
}

/* ---------- Notes pages ---------- */

.mq-header--notes {
	border-bottom: 1px solid #e4edf6;
}

.mq-header--notes .mq-nav__list a {
	color: #2769b8;
	font-weight: 600;
}

.mq-nhero {
	background: var(--mq-soft);
	padding: 56px 0 72px;
}

.mq-nhero__inner {
	max-width: 850px;
	margin: 0 auto;
}

.mq-nhero .mq-eyebrow {
	margin-bottom: 20px;
}

.mq-nhero h1 {
	font-size: var(--mq-h1);
	line-height: 1.2;
	margin: 0 0 26px;
}

.mq-nhero .mq-hero__lede {
	max-width: 720px;
}

.mq-nhero .mq-actions {
	margin-bottom: 20px;
}

.mq-notes-res,
.mq-notes-ch {
	padding: 56px 0 56px;
}

.mq-notes-res + .mq-notes-ch,
.mq-dsec:has(.mq-notes-res) + .mq-dsec .mq-notes-ch {
	padding-top: 8px;
}

.mq-notes-res .mq-h2,
.mq-notes-ch .mq-h2 {
	margin-bottom: 14px;
}

.mq-notes-res .mq-intro,
.mq-notes-ch .mq-intro {
	margin-bottom: 26px;
}

/* Featured chapter / resource card */
.mq-chapter {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	background: var(--mq-soft);
	border: 1px solid #d8e7f8;
	border-radius: 8px;
	padding: 24px 26px;
}

.mq-chapter__kicker {
	display: block;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--mq-blue);
	margin: 0 0 8px;
}

.mq-chapter h3 {
	font-size: 24px;
	line-height: 1.25;
	margin: 0 0 6px;
}

.mq-chapter h3 a {
	text-decoration: none;
}

.mq-chapter h3 a:hover {
	text-decoration: underline;
}

.mq-chapter__meta {
	font-size: 16px;
	line-height: 1.5;
	color: var(--mq-muted);
	margin: 0;
}

.mq-chapter .mq-btn {
	flex: 0 0 auto;
}

.mq-chapter + .mq-chapter {
	margin-top: 12px;
}

/* Chapter directory: compact 3 columns, plain text (coming soon chapters are not links) */
.mq-dir {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
}

.mq-dir li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-height: 71px;
	padding: 14px 14px 12px;
	border-bottom: 1px solid #e2e9f1;
}

.mq-dir__n {
	flex: 0 0 22px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--mq-blue);
}

.mq-dir__t {
	font-size: 16px;
	line-height: 1.4;
	color: #4f6070;
}

.mq-dir__t small {
	display: block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #75828f;
	margin-top: 4px;
}

.mq-notes-x {
	font-size: 16px;
	margin: 28px 0 0;
}

.mq-notes-x a {
	color: #2769b8;
}

/* FAQ, line style (notes pages) */
.mq-notes-faq {
	background: #f7f9fc;
	padding: 48px 0 40px;
}

.mq-faq--lines {
	max-width: 928px;
}

.mq-faq--lines .mq-h2 {
	margin: 0 0 24px;
}

.mq-faq--lines .mq-faq__item {
	background: none;
	border: 0;
	border-bottom: 1px solid #dde6ef;
	border-radius: 0;
	box-shadow: none;
	margin: 0;
}

.mq-faq--lines .mq-faq__btn {
	font-family: var(--mq-font-body);
	font-size: 18px;
	color: var(--mq-heading);
	padding: 22px 0 16px;
}

.mq-faq--lines .mq-faq__icon {
	background: none;
}

.mq-faq--lines .mq-faq__icon::before,
.mq-faq--lines .mq-faq__icon::after {
	background: var(--mq-blue);
	width: 12px;
	left: 2px;
}

.mq-faq--lines .mq-faq__a {
	padding: 0 48px 22px 0;
}

/* CTA band */
.mq-notes-cta {
	padding: 40px 0 52px;
}

.mq-cta-band {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	background: var(--mq-soft);
	border-radius: 10px;
	padding: 26px 30px;
}

.mq-cta-band h2 {
	font-size: 26px;
	line-height: 1.25;
	margin: 0 0 8px;
}

.mq-cta-band p {
	font-size: 16px;
	margin: 0;
}

.mq-cta-band .mq-btn {
	flex: 0 0 auto;
}

/* Footer (notes) */
.mq-footer--notes {
	padding: 36px 0 34px;
}

.mq-footer__brand {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 10px !important;
}

.mq-footer__brand a {
	text-decoration: none;
}

.mq-footer--notes .mq-footer__right a:first-child {
	margin: 0;
}

/* ==========================================================================
   v2 balance pass (02/12): even column weights, one left edge, no orphan lines
   ========================================================================== */

.mq-page :is(h1, h2, h3) {
	text-wrap: balance;
}

.mq-page p {
	text-wrap: pretty;
}

/* Hero: wider copy column so each H1 line holds one phrase; media centred against the copy */
.mq-hero__grid {
	grid-template-columns: minmax(0, 1fr) 460px;
	gap: 56px;
	align-items: center;
}

.mq-hero h1 {
	margin-bottom: 28px;
}

.mq-hero__lede {
	max-width: 560px;
}

/* Section head: heading left, intro right */
.mq-shead {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 56px;
	align-items: end;
	margin: 0 0 44px;
}

.mq-shead .mq-h2 {
	margin-bottom: 0;
}

.mq-shead .mq-intro {
	max-width: 500px;
	margin: 0 0 4px;
}

/* Two-column sections whose copy is shorter than the list: copy stays in view */
.mq-split--sticky .mq-split__lead {
	position: sticky;
	top: calc(var(--mq-header-h) + 32px);
}

/* Try the reasoning: heading column + answer card */
.mq-reason {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 56px;
	align-items: start;
}

.mq-reason__head .mq-h2 {
	margin-bottom: 0;
}

.mq-example--card {
	background: var(--mq-white);
	border-radius: 0 8px 8px 0;
	box-shadow: 0 12px 32px rgba(43, 61, 79, 0.08);
	padding: 36px 36px 34px;
}

.mq-example--card h3 {
	font-size: 23px;
	max-width: none;
	text-wrap: wrap;
}

/* FAQ split with the card style (landing pages) */
.mq-faq-split--cards .mq-faq {
	max-width: none;
	margin: 0;
	border-top: 0;
}

.mq-faq-split--cards .mq-h2 {
	margin-top: 8px;
	position: sticky;
	top: calc(var(--mq-header-h) + 32px);
}

.mq-faq-split--cards .mq-faq__item:last-child {
	margin-bottom: 0;
}

/* Fee cards keep their natural height (Sec 4 has one class) */
.mq-fees {
	align-items: start;
}

/* Image + copy: image as tall as the copy */
.mq-split--media .mq-media__img {
	aspect-ratio: 4 / 3;
	height: 100%;
	max-height: 440px;
}

/* Skill cards: white on the soft section for clearer separation */
.mq-section--soft .mq-card--skill {
	background: var(--mq-white);
}

/* ---------- Notes pages v2 ---------- */

.mq-nhero {
	padding: 64px 0 80px;
	overflow: hidden;
}

.mq-nhero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	gap: 64px;
	align-items: center;
}

.mq-nhero__inner {
	max-width: 640px;
	margin: 0;
}

/* Decorative notes preview (aria-hidden) */
.mq-docs {
	position: relative;
	height: 330px;
}

.mq-docs__sheet {
	position: absolute;
	inset: 0 40px 0 40px;
	background: var(--mq-white);
	border: 1px solid var(--mq-line);
	border-radius: 10px;
}

.mq-docs__sheet--back2 {
	transform: rotate(-7deg) translate(-14px, 10px);
	background: #e3eefb;
}

.mq-docs__sheet--back1 {
	transform: rotate(4deg) translate(12px, 4px);
	background: #f7fbff;
}

.mq-docs__sheet--front {
	display: flex;
	flex-direction: column;
	padding: 30px 30px 26px;
	box-shadow: 0 18px 40px rgba(43, 61, 79, 0.14);
}

.mq-docs__badge {
	position: absolute;
	top: 22px;
	right: 22px;
	background: var(--mq-yellow);
	color: var(--mq-heading);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	border-radius: 4px;
	padding: 5px 9px;
}

.mq-docs__kicker {
	padding-right: 52px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--mq-blue);
	margin: 0 0 10px;
}

.mq-docs__title {
	font-family: var(--mq-font-head);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--mq-heading);
	margin: 0 0 6px;
}

.mq-docs__meta {
	font-size: 13px;
	color: var(--mq-muted);
}

.mq-docs__rule {
	height: 3px;
	width: 48px;
	background: var(--mq-yellow);
	border-radius: 2px;
	margin: 18px 0 20px;
}

.mq-docs__line {
	height: 8px;
	border-radius: 4px;
	background: #e8eff7;
	margin: 0 0 11px;
}

.mq-docs__line--short {
	width: 55%;
}

.mq-docs__line--mid {
	width: 78%;
}

.mq-docs__formula {
	align-self: flex-start;
	font-family: Georgia, 'Times New Roman', serif;
	font-style: italic;
	font-size: 17px;
	color: var(--mq-blue-dark);
	background: var(--mq-soft);
	border-radius: 6px;
	padding: 6px 14px;
	margin: 6px 0 16px;
}

/* Chapter + resources sections share the container edge with the hero */
.mq-notes-res {
	padding-top: 64px;
}

.mq-chapter {
	padding: 26px 30px;
}

.mq-dir li {
	padding-left: 4px;
}

/* FAQ: heading column + list, same edge as everything else */
.mq-notes-faq {
	padding: 64px 0 64px;
}

.mq-faq-split {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: 56px;
	align-items: start;
}

.mq-faq-split .mq-h2 {
	margin: 14px 0 0;
}

.mq-faq-split .mq-faq--lines {
	max-width: none;
	margin: 0;
	border-top: 1px solid #dde6ef;
}

.mq-notes-cta {
	padding: 56px 0 64px;
}

.mq-cta-band {
	padding: 30px 36px;
	border: 1px solid #d8e7f8;
}

@media (max-width: 1080px) {
	.mq-hero__grid {
		grid-template-columns: minmax(0, 1fr) 400px;
		gap: 40px;
	}

	.mq-nhero__grid {
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 40px;
	}
}

@media (max-width: 900px) {
	.mq-hero__grid,
	.mq-shead,
	.mq-reason,
	.mq-faq-split,
	.mq-nhero__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.mq-hero__grid {
		gap: 40px;
	}

	.mq-shead {
		margin-bottom: 32px;
	}

	.mq-split--sticky .mq-split__lead,
	.mq-faq-split--cards .mq-h2 {
		position: static;
	}

	.mq-docs {
		display: none;
	}

	.mq-split--media .mq-media__img {
		height: auto;
	}
}

/* Two white sections in a row: one gap, not two */
#fees + #faq,
.mq-dsec:has(#fees) + .mq-dsec #faq {
	padding-top: 12px;
}

@media (max-width: 680px) {
	/* Same as live mq-mobile.css: schedule time stays on one line */
	.mq-fee td,
	.mq-fee th {
		padding-left: 10px;
		padding-right: 10px;
	}

	.mq-fee td:nth-child(2) {
		white-space: nowrap;
	}

	.mq-example--card {
		padding: 26px 20px;
	}

	.mq-example--card h3 {
		font-size: 21px;
	}
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.mq-grid-3,
	.mq-book {
		grid-template-columns: repeat(2, 1fr);
	}

	.mq-dir {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 900px) {
	.mq-split--media .mq-media__img {
		max-width: 560px;
	}
}

@media (max-width: 680px) {
	.mq-grid-3,
	.mq-book,
	.mq-dir {
		grid-template-columns: 1fr;
	}

	.mq-card--skill,
	.mq-book__step {
		padding: 24px 20px;
	}

	.mq-nhero {
		padding: 40px 0 52px;
	}

	.mq-chapter,
	.mq-cta-band {
		flex-direction: column;
		align-items: flex-start;
		padding: 22px 20px;
	}

	.mq-dir li {
		min-height: 0;
		padding: 12px 4px;
	}

	.mq-faq--lines .mq-faq__btn {
		font-size: 17px;
	}

	.mq-faq--lines .mq-faq__a {
		padding-right: 0;
	}
}
