/* ==========================================================================
   Home + shared marketing components (also used by the landing page and /blank):
   hero, local intro, plans/products, includes + reviews, rules, path, teacher, local, FAQ split, CTA, contact.
   Panels are ruled sheets (heavy top rule, hairlines) rather than floating cards.
   ========================================================================== */

/* ---------- Hero: copy left, gabled photo right with the "next start" tag ---------- */
.nj-hero-home {
	display: grid;
	grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
	gap: 48px 80px;
	align-items: center;
	max-width: calc(var(--nj-wide) + 2 * var(--nj-gutter));
	margin: 0 auto;
	padding: 56px var(--nj-gutter) 64px;
}
.nj-hero-home__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.nj-hero-home__copy .nj-lead { max-width: 620px; }
.nj-hero-home .nj-display { font-size: 60px !important; }
@media (max-width: 1240px) { .nj-hero-home .nj-display { font-size: 52px !important; } }
@media (max-width: 781px) { .nj-hero-home .nj-display { font-size: 37px !important; } }
.nj-hero-home__copy .nj-lead a { font-weight: 500; }
.nj-proof {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 22px;
	border-top: var(--nj-hair);
	font-size: 15px;
	line-height: 1.5;
	color: var(--nj-ink);
	max-width: 520px;
}
.nj-proof::before {
	content: "";
	width: 98px;
	height: 16px;
	background: #E8A400;
	-webkit-mask: var(--nj-star) 0 0 / 19.5px 16px repeat-x;
	mask: var(--nj-star) 0 0 / 19.5px 16px repeat-x;
}
.nj-hero-home__media { position: relative; }
.nj-hero-home__img { margin: 0; border-radius: var(--nj-r-card); overflow: hidden; aspect-ratio: 4 / 4.7; background: var(--nj-sand); }
.nj-hero-home__img img { width: 100%; height: 100%; object-fit: cover; }
/* "Your next start: Any Tuesday": a tag pinned to the wall of the house */
.nj-next {
	position: absolute;
	left: -28px;
	bottom: 32px;
	display: grid;
	gap: 6px;
	padding: 18px 22px 16px;
	background: #fff;
	border: 1.5px solid var(--nj-ink);
	border-radius: var(--nj-r-btn);
	min-width: 216px;
}
.nj-next .nj-eyebrow { font-size: 11px; }
.nj-next__day { font-family: var(--nj-display); font-size: 30px; font-weight: 500; line-height: 1.1; letter-spacing: -.015em; color: var(--nj-ink); }
.nj-next__cta { font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.nj-next__cta a { color: var(--nj-red-700); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.nj-next__cta a::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--nj-arrow) center / contain no-repeat; mask: var(--nj-arrow) center / contain no-repeat; transition: transform .28s var(--nj-ease); }
.nj-next__cta a:hover::after { transform: translateX(4px); }
@media (max-width: 1024px) {
	.nj-hero-home { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 56px; }
	.nj-hero-home__media { max-width: 560px; width: 100%; margin-inline: auto !important; }
	.nj-hero-home__media .nj-hero-home__img { aspect-ratio: 4 / 3.6; }
	.nj-next { left: 12px; bottom: 12px; padding: 14px 16px 12px; min-width: 0; }
	.nj-next__day { font-size: 24px; }
}

/* ---------- Local intro: H2 + photo + red statement panel ---------- */
.nj-intro__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 20px 64px; align-items: end; padding-top: 28px; border-top: var(--nj-rule); }
.nj-intro__head > * { margin: 0 !important; }
.nj-intro__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 0; }
.nj-intro__media { border-radius: var(--nj-r-card) 0 0 var(--nj-r-card); overflow: hidden; min-height: 420px; background: var(--nj-sand); }
.nj-intro__media .wp-block-image, .nj-intro__media img { width: 100%; height: 100%; object-fit: cover; }
.nj-intro__card { display: flex; flex-direction: column; gap: 16px; padding: 40px; border-radius: 0 var(--nj-r-card) var(--nj-r-card) 0; background: var(--nj-red-600); color: #fff; justify-content: flex-end; }
.nj-intro__card h3 { color: #fff; font-size: 30px; font-weight: 500; line-height: 1.14; letter-spacing: -.015em; }
.nj-intro__card .nj-eyebrow { color: #fff; order: -1; margin-bottom: auto !important; }
.nj-intro__card .nj-eyebrow::before { color: #fff; }
.nj-statement { font-size: 17px; line-height: 1.6; color: #fff; }
@media (max-width: 900px) {
	.nj-intro__head, .nj-intro__grid { grid-template-columns: 1fr; }
	.nj-intro__head { padding-top: 20px; }
	.nj-intro__media { min-height: 260px; border-radius: var(--nj-r-card) var(--nj-r-card) 0 0; }
	.nj-intro__card { padding: 32px 24px; border-radius: 0 0 var(--nj-r-card) var(--nj-r-card); }
}

/* ---------- Plans (tuition): fee-schedule sheets ---------- */
.nj-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.nj-plan--featured { grid-column: 2; grid-row: 1 / span 2; }
.nj-plan:not(.nj-plan--featured) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; row-gap: 12px; align-content: start; }
.nj-plan:not(.nj-plan--featured) > * { grid-column: 1 / -1; }
.nj-plan:not(.nj-plan--featured) > .nj-price, .nj-plan:not(.nj-plan--featured) > .nj-included { grid-column: 1; }
.nj-plan:not(.nj-plan--featured) > .wp-block-buttons { grid-column: 2; grid-row: 4 / span 2; align-self: end; margin: 0 !important; }
.nj-plan:not(.nj-plan--featured) .wp-block-button, .nj-plan:not(.nj-plan--featured) .wp-block-button__link { width: auto; }
/* the price sits in column 1 beside the button: a border on it would stop at 2/3 of the card, so the full-width
   divider goes under the description instead */
.nj-plan:not(.nj-plan--featured) > .nj-price { border-block: 0; padding-block: 8px 0; }
.nj-plan:not(.nj-plan--featured) > h3 + p { padding-bottom: 20px; border-bottom: var(--nj-hair); }
/* plans without buttons (landing page): three equal columns instead of the featured card spanning two rows
   (a tall card with a short list is hollow in the middle) */
@media (min-width: 1025px) {
	.nj-plans:not(:has(.wp-block-buttons)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.nj-plans:not(:has(.wp-block-buttons)) > .nj-plan--featured { grid-column: auto; grid-row: auto; }
	.nj-plans:not(:has(.wp-block-buttons)) > .nj-plan > .nj-price__amt--inline { margin-top: auto !important; }
}
.nj-plan { display: flex; flex-direction: column; gap: 16px; padding: 30px 32px 32px; border-radius: var(--nj-r-card); background: #fff; border: var(--nj-hair); border-top: 3px solid var(--nj-ink); position: relative; }
.nj-plan > .nj-eyebrow { margin-bottom: 4px !important; }
.nj-plan h3 { font-size: 28px; font-weight: 500; letter-spacing: -.015em; }
.nj-plan .wp-block-buttons { margin-top: auto !important; padding-top: 8px; }
.nj-plan .wp-block-button, .nj-plan .wp-block-button__link { width: 100%; }
.nj-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 16px 0; border-block: var(--nj-hair); }
.nj-price__amt { font-family: var(--nj-display); font-size: 56px; font-weight: 500; line-height: 1; letter-spacing: -.02em; color: var(--nj-ink); font-feature-settings: "lnum"; }
.nj-price__amt--inline { font-size: 17px; letter-spacing: 0; line-height: 1.4; font-family: var(--nj-body); font-weight: 500; }
.nj-price__amt--inline strong { display: inline-block; margin-right: 10px; font-family: var(--nj-display); font-size: 44px; font-weight: 500; letter-spacing: -.02em; line-height: 1; vertical-align: -4px; }
.nj-price__note { font-size: 14px; color: var(--nj-stone); }
.nj-included { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--nj-ink); }
.nj-included::before { content: ""; width: 18px; height: 18px; flex: none; background: var(--nj-red-600); -webkit-mask: var(--nj-check) center / 16px no-repeat; mask: var(--nj-check) center / 16px no-repeat; }
.nj-included::after { content: none; }
.nj-plan--featured { background: var(--nj-ink); border-color: var(--nj-ink); border-top-color: var(--nj-red); color: rgb(255 255 255 / .78); }
.nj-plan--featured :is(h3, .nj-price__amt, strong, .nj-eyebrow) { color: #fff; }
.nj-plan--featured .nj-price { border-color: rgb(255 255 255 / .18); }
.nj-plan--featured .nj-price__note, .nj-plan--featured .nj-included { color: rgb(255 255 255 / .78); }
.nj-plan--featured .is-style-nj-check li::before { background: var(--nj-red-300); }
@media (max-width: 1024px) {
	.nj-plans { grid-template-columns: 1fr; }
	.nj-plan--featured { grid-column: auto; grid-row: auto; }
}
@media (max-width: 600px) {
	.nj-plan { padding: 24px 20px; }
	.nj-plan:not(.nj-plan--featured) { grid-template-columns: 1fr; }
	.nj-plan:not(.nj-plan--featured) > .wp-block-buttons { grid-column: 1; grid-row: auto; }
	.nj-plan:not(.nj-plan--featured) .wp-block-button, .nj-plan:not(.nj-plan--featured) .wp-block-button__link { width: 100%; }
	.nj-price__amt { font-size: 46px; }
}

/* ---------- Products (exam prep, textbook) ---------- */
.nj-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px !important; }
.nj-product { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 16px; border-radius: var(--nj-r-card); background: #fff; border: var(--nj-hair); align-items: stretch; }
.nj-product--wide { grid-template-columns: 320px minmax(0, 1fr); }
.nj-product__media { border-radius: var(--nj-r-media); overflow: hidden; background: var(--nj-sand); }
.nj-product__media .wp-block-image, .nj-product__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.nj-product__body { display: flex; flex-direction: column; gap: 12px; padding: 12px 16px 12px 0; align-items: flex-start; }
.nj-product__body h3 { font-weight: 500; }
.nj-product__body .nj-price { border: 0; padding: 0; }
.nj-product__body .nj-price__amt { font-size: 36px; }
.nj-product__body .nj-price__amt--inline { font-size: 17px; }
.nj-product__body .nj-price__amt--inline strong { font-size: 36px; }
.nj-product__body .wp-block-buttons { margin-top: auto !important; }
@media (max-width: 1024px) { .nj-products { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
	.nj-product, .nj-product--wide { grid-template-columns: 1fr; }
	.nj-product__media { aspect-ratio: 4 / 3; }
	.nj-product__body { padding: 0 8px 8px; }
}

/* ---------- Course includes (ink sheet, the logo roofs as a watermark) + reviews ---------- */
.nj-includes__card {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	gap: 32px 72px;
	padding: 64px;
	border-radius: var(--nj-r-card);
	background: var(--nj-ink);
	color: rgb(255 255 255 / .78);
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
.nj-includes__card::before {
	content: "";
	position: absolute;
	left: 40px;
	bottom: -8px;
	width: min(46%, 460px);
	aspect-ratio: 1260 / 312;
	background: rgb(255 255 255 / .07);
	-webkit-mask: url(../../img/roofs.svg) left bottom / 100% auto no-repeat;
	mask: url(../../img/roofs.svg) left bottom / 100% auto no-repeat;
	z-index: -1;
}
.nj-includes__head { display: flex; flex-direction: column; gap: 16px; }
.nj-includes__head h2 { color: #fff; }
.nj-includes__head .nj-lead { color: rgb(255 255 255 / .78); }
.nj-includes__list { display: grid; gap: 0; align-content: start; border-top: 1px solid rgb(255 255 255 / .3); }
.nj-includes__list li { padding: 18px 0 18px 36px; border-bottom: 1px solid rgb(255 255 255 / .16); color: #fff; font-size: 17px; }
.nj-includes__list li + li { margin: 0; }
.nj-includes__list li::before { top: 22px; background: var(--nj-red-300); }
.nj-reviews { margin-top: 16px !important; padding: 28px; border-radius: var(--nj-r-card); background: #fff; border: var(--nj-hair); min-height: 120px; }
@media (max-width: 900px) {
	.nj-includes__card { grid-template-columns: 1fr; padding: 40px 24px 96px; }
	.nj-includes__card::before { left: 24px; width: 70%; }
	.nj-reviews { padding: 14px; }
}

/* ---------- Licensing rules: three ruled columns on one sheet ---------- */
.nj-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; background: #fff; border: var(--nj-hair); border-radius: var(--nj-r-card); }
.nj-rule { display: block; padding: 32px; font-size: 16px; border-left: var(--nj-hair); }
.nj-rule:first-child { border-left: 0; }
.nj-rule .nj-lead-in { display: block; margin-bottom: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--nj-red); font-size: 21px; font-weight: 500; }
.nj-rule .nj-lead-in + br { display: none; }
@media (max-width: 1024px) {
	.nj-rules { grid-template-columns: 1fr; }
	.nj-rule { border-left: 0; border-top: var(--nj-hair); padding: 24px 20px; }
	.nj-rule:first-child { border-top: 0; }
}

/* ---------- Path to license: ink sheet, numbered steps on rules ---------- */
.nj-path__card { padding: 64px; border-radius: var(--nj-r-card); background: var(--nj-ink); color: rgb(255 255 255 / .78); display: flex; flex-direction: column; gap: 48px; }
.nj-head--dark h2 { color: #fff; }
.nj-head--dark .nj-lead { color: rgb(255 255 255 / .78); }
.nj-head--dark a { color: #fff; }
.nj-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; counter-reset: step; position: relative; }
.nj-step { list-style: none; margin: 0; padding: 0; counter-increment: step; }
.nj-step li {
	position: relative;
	height: 100%;
	padding: 18px 0 0;
	border-top: 1px solid rgb(255 255 255 / .34);
	color: rgb(255 255 255 / .78);
	font-size: 16px;
}
.nj-step li::before {
	content: counter(step) / "";
	display: block;
	margin-bottom: 14px;
	font-family: var(--nj-display);
	font-size: 44px;
	font-weight: 500;
	line-height: 1;
	color: var(--nj-red-300);
	font-feature-settings: "lnum";
}
.nj-step .nj-lead-in { color: #fff; font-size: 19px; font-weight: 500; }
.nj-steps__img { margin: 0; border-radius: var(--nj-r-media); overflow: hidden; min-height: 220px; }
.nj-steps__img img { width: 100%; height: 100%; object-fit: cover; }
.nj-path__card a, .nj-includes__card a, .nj-cta__card a:not(.wp-block-button__link), .nj-plan--featured a:not(.wp-block-button__link), .nj-card--dark a:not(.wp-block-button__link) { color: #fff; text-decoration-color: var(--nj-red-300); }
.nj-intro__card a { color: #fff; text-decoration-color: #fff; }
@media (max-width: 1100px) { .nj-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
	.nj-path__card { padding: 40px 20px; gap: 32px; }
	.nj-steps { grid-template-columns: 1fr; gap: 28px; }
	.nj-step li::before { font-size: 36px; margin-bottom: 10px; }
}

/* ---------- Teacher (Michele) ---------- */
.nj-teacher { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 48px 80px; align-items: center; }
.nj-section.nj-teacher { max-width: calc(var(--nj-wide) + 2 * var(--nj-gutter)); margin-inline: auto; }
.nj-section.nj-teacher > * { max-width: none; margin: 0; }
.nj-teacher__media { position: relative; }
.nj-teacher__img { border-radius: var(--nj-r-card); overflow: hidden; background: #fff; aspect-ratio: 1 / 1.08; }
.nj-teacher__media .wp-block-image, .nj-teacher__media img { width: 100%; height: 100%; object-fit: cover; }
.nj-teacher__tag { line-height: 1.4; position: absolute; left: -16px; bottom: 24px; padding: 12px 16px; border-radius: var(--nj-r-btn); background: #fff; border: 1.5px solid var(--nj-ink); font-size: 14px; color: var(--nj-ink); font-weight: 600; }
.nj-teacher__body { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.nj-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; width: 100%; margin: 8px 0 !important; }
.nj-features--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nj-feature { display: flex; flex-direction: column; gap: 8px; padding: 18px 0 0; border-top: var(--nj-rule); }
.nj-feature h3 { font-size: 20px; font-weight: 500; }
@media (max-width: 900px) {
	.nj-teacher { grid-template-columns: 1fr; }
	.nj-teacher__media { max-width: 460px; width: 100%; margin-inline: auto !important; }
	.nj-teacher__tag { left: 8px; }
	.nj-features, .nj-features--4 { grid-template-columns: 1fr; }
}

/* ---------- Local (Cranford / Union County) ---------- */
.nj-local { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 80px; align-items: center; }
.nj-section.nj-local { max-width: calc(var(--nj-wide) + 2 * var(--nj-gutter)); margin-inline: auto; }
.nj-section.nj-local > * { max-width: none; margin: 0; }
.nj-local__body { display: flex; flex-direction: column; gap: 20px; }
.nj-local__media { border-radius: var(--nj-r-card); overflow: hidden; aspect-ratio: 4 / 3.2; background: var(--nj-sand); }
.nj-local__media .wp-block-image, .nj-local__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .nj-local { grid-template-columns: 1fr; } }

/* ---------- FAQ split: sticky heading left, accordion right ---------- */
.nj-faq-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px 80px; align-items: start; }
.nj-section.nj-faq-split { max-width: calc(var(--nj-wide) + 2 * var(--nj-gutter)); margin-inline: auto; }
.nj-section.nj-faq-split > * { max-width: none; margin: 0; }
.nj-faq-split__head { position: sticky; top: 112px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
@media (max-width: 900px) { .nj-faq-split { grid-template-columns: 1fr; } .nj-faq-split__head { position: static; } }

/* ---------- Closing CTA: ink sheet with photo ---------- */
.nj-cta__card {
	display: grid;
	grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
	border-radius: var(--nj-r-card);
	overflow: hidden;
	background: var(--nj-ink);
	color: rgb(255 255 255 / .78);
	min-height: 440px;
}
.nj-cta__card--solo { grid-template-columns: 1fr; min-height: 0; text-align: center; }
.nj-cta__card--solo .nj-cta__body { align-items: center; padding: 72px 32px; }
.nj-cta__card--solo :is(.wp-block-buttons, .nj-lp-actions) { justify-content: center; }
.nj-cta__media .wp-block-image, .nj-cta__media img { width: 100%; height: 100%; object-fit: cover; }
.nj-cta__body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px; padding: 64px; border-top: 4px solid var(--nj-red); }
.nj-cta__body h2 { color: #fff; }
.nj-cta__body .nj-lead { color: rgb(255 255 255 / .78); }
.nj-cta__body .nj-eyebrow { color: #fff; }
@media (max-width: 900px) {
	.nj-cta__card { grid-template-columns: 1fr; }
	.nj-cta__media { aspect-ratio: 16 / 10; }
	.nj-cta__body { padding: 40px 24px; }
}

/* ---------- Contact: map sheet + subscribe sheet ---------- */
.nj-contact { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }
.nj-section.nj-contact { max-width: calc(var(--nj-wide) + 2 * var(--nj-gutter)); margin-inline: auto; }
.nj-section.nj-contact > * { max-width: none; margin: 0; }
.nj-contact__map { display: flex; flex-direction: column; gap: 16px; padding: 16px; border-radius: var(--nj-r-card); background: #fff; border: var(--nj-hair); }
.nj-contact__map .nj-map { flex: 1; min-height: 320px; border-radius: var(--nj-r-media); }
.nj-contact__label { font-size: 18px !important; padding: 8px 8px 0; }
.nj-contact__form, .nj-contact__info { display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 40px; border-radius: var(--nj-r-card); background: #fff; border: var(--nj-hair); border-top: 3px solid var(--nj-red); }
.nj-contact__info { border-top: 3px solid var(--nj-ink); }
.nj-contact__title { font-family: var(--nj-display); font-size: 30px; font-weight: 500; letter-spacing: -.015em; line-height: 1.12; color: var(--nj-ink); }
.nj-contact--page { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.nj-contact__lines { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; align-items: center; color: var(--nj-ink); }
.nj-contact__lines .nj-eyebrow { font-size: 11px; }
.nj-contact__info .nj-map { min-height: 240px; border-radius: var(--nj-r-media); }
@media (max-width: 900px) {
	.nj-contact, .nj-contact--page { grid-template-columns: 1fr; }
	.nj-contact__form, .nj-contact__info { padding: 28px 20px; }
}
