/* Approved Homepage proportions. Scoped: no shared course, LMS, review or video styles. */
body.home-layout-v2 #main-content>section {padding-block:40px;}
body.home-layout-v2 #main-content>section :is(.wrap,.dna-play__wrap) {width:calc(100% - 40px);max-width:1200px;margin-inline:auto;}
body.home-layout-v2 #main-content>section p {font-size:16px;line-height:27px;text-align:left;}
body.home-layout-v2 #main-content .home-section-label {display:inline-block;max-width:100%;box-sizing:border-box;margin:0 0 12px;padding:7px 12px;border:1px solid #B9D9DC;border-radius:10px;background:#EAF5F5;color:#17677B;font:600 12px/18px var(--font-sans);letter-spacing:1px;white-space:normal;overflow-wrap:normal;box-shadow:none;}
body.home-layout-v2 #main-content>section h2:not(dialog *) {margin:0 0 12px;font:600 28px/39px var(--font-serif);text-align:left;text-wrap:pretty;}
body.home-layout-v2 :is(.home-section-heading,.learning-path__heading,.learning-system__opening,.dna-play__heading,.ask-jane__intro) {max-width:none;text-align:left;margin:0 0 24px;}
body.home-layout-v2 :is(.home-section-heading,.learning-path__heading,.learning-system__opening,.dna-play__heading,.ask-jane__intro)>p:not(.home-section-label) {max-width:640px;margin:0;}
body.home-layout-v2 .home-goal-portrait {max-width:260px;}
body.home-layout-v2 .home-goals-layout {grid-template-columns:1fr;gap:24px;}
/* A shared set of eight rows aligns all course content, without per-card spacers. */
body.home-layout-v2 #courses .mobile-product-recommendations {grid-template-columns:1fr;gap:16px;}
body.home-layout-v2 #courses .mobile-product-card[data-home-product] {display:flex;flex-direction:column;padding:20px;gap:16px;min-height:0;height:auto;}
body.home-layout-v2 #courses .mobile-product-card__head {display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;}
body.home-layout-v2 #courses .mobile-product-card__head>img {width:144px;height:144px;object-fit:contain;}
body.home-layout-v2 #courses .mobile-product-card h3 {font:600 22px/31px var(--font-sans);margin:0;text-align:center;}
body.home-layout-v2 #courses .mobile-product-card p {margin:0;font:400 16px/27px var(--font-sans);}
body.home-layout-v2 #courses .mobile-product-card__scope {padding-top:16px;font-weight:600;border-top:1px solid var(--product-edge);}
body.home-layout-v2 #courses .mobile-product-card__duration {padding:0;}
body.home-layout-v2 #courses .mobile-product-card__plan {margin:0;padding:12px;gap:10px;}
body.home-layout-v2 #courses .mobile-product-card__plan span {font-size:16px;line-height:27px;}
body.home-layout-v2 #courses .mobile-product-card .home-product-price {font-size:30px;font-weight:700;line-height:1.4;}
body.home-layout-v2 #courses .home-product-price strong {font-size:inherit;font-weight:700;}
body.home-layout-v2 #courses .mobile-product-card__footer {margin:0;}
body.home-layout-v2 #courses .product-card-cta {min-height:48px;height:auto;padding:12px 16px;font-size:16px;line-height:27px;}
/* Books form a section, then two complete products; price/status have separate nodes. */
body.home-layout-v2 #courses .product-theme--ebook {display:block;grid-column:1/-1;padding:20px;}
.home-ebook-heading {display:flex;flex-direction:column;align-items:center;gap:12px;margin-bottom:24px;}
.home-ebook-heading img {width:144px;height:144px;object-fit:contain;}
body.home-layout-v2 #courses .mobile-product-card__books {display:grid;grid-template-columns:1fr;gap:24px;grid-row:auto;}
.home-book {display:grid;grid-template-rows:auto auto auto auto auto;min-width:0;gap:0;text-align:left;}
body.home-layout-v2 #courses .home-book__cover img {width:min(100%,220px);height:auto;aspect-ratio:auto;max-height:none;object-fit:contain;margin:0 auto 16px;}
.home-book h4 {font:600 20px/31px var(--font-sans);margin:0 0 12px;text-align:center;}
.home-book h4 a {color:var(--ink);text-decoration:none;}
body.home-layout-v2 #courses .home-book .home-product-price {text-align:center;margin:0;}
body.home-layout-v2 #courses .home-book .home-book__status {margin:12px 0 16px;font-size:15px;line-height:25px;text-align:center;}
body.home-layout-v2 #courses .home-book .product-card-cta {display:flex;align-items:center;justify-content:center;color:white;}
.home-ebooks-all {display:block;width:fit-content;min-height:44px;margin:24px auto 0;padding:8px;color:var(--teal-deep);font-weight:600;}
/* Preserve source image pixels; one image button and an independent native dialog. */
body.home-layout-v2 #method-story .dna-story__layout {display:grid;grid-template-columns:1fr;gap:24px;align-items:start;}
.home-method-heading {grid-area:auto;}
body.home-layout-v2 #method-story .dna-story__book {width:100%;max-width:none;padding:10px;box-sizing:border-box;margin:0;background:#f3ecdf;border-radius:16px;}
.home-method-open {display:block;width:100%;padding:0;border:0;background:transparent;color:var(--teal-deep);font:600 16px/27px var(--font-sans);cursor:zoom-in;text-align:center;}
body.home-layout-v2 #method-story .dna-story__book img {width:100%;max-width:none;height:auto;object-fit:contain;box-shadow:none;}
.home-method-open span {display:block;margin-top:12px;}
.home-method-open .home-method-open__desktop {display:none;}
body.home-layout-v2 #method-story .dna-story__copy p {max-width:640px;margin:0 0 16px;}
.home-method-dialog {width:min(1100px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid #B9D9DC;border-radius:18px;background:#fffdf5;color:var(--ink);}
.home-method-dialog::backdrop {background:#0f2a38cc;}
.home-method-dialog header {position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:#fffdf5;border-bottom:1px solid #B9D9DC;z-index:1;}
.home-method-dialog h2 {margin:0;font:600 18px/28px var(--font-sans);}
.home-method-dialog button {flex:none;min-height:44px;padding:8px 14px;border:1px solid #9bc7ce;border-radius:12px;background:#eaf5f5;color:#17677B;font:600 16px var(--font-sans);}
.home-method-dialog__image {overflow:auto;max-height:calc(100dvh - 120px);touch-action:pan-x pan-y pinch-zoom;}
.home-method-dialog__image img {display:block;width:1024px;max-width:none;height:auto;margin:auto;}
.home-method-modal-open {overflow:hidden;}
.home-method-open:focus-visible,.home-method-dialog :focus-visible {outline:3px solid #128fb2;outline-offset:3px;}
/* Original FAQ has image / flexible text / chevron. All questions share that structure. */
body.home-layout-v2 #faq .ask-jane__item summary {grid-template-columns:46px minmax(0,1fr) 24px;gap:12px;min-height:0;padding:15px 14px 15px 10px;}
body.home-layout-v2 #faq .ask-jane__item summary>span:not(.ask-jane__chevron) {min-width:0;white-space:normal;overflow-wrap:normal;word-break:normal;}
body.home-layout-v2 #faq .ask-jane__chevron {grid-column:3;}
body.home-layout-v2 #faq .home-faq-answer {padding:12px 18px 18px;}
body.home-layout-v2 #faq .home-faq-answer p {margin:0;}
@media(max-width:374px){body.home-layout-v2 #main-content>section :is(.wrap,.dna-play__wrap) {width:calc(100% - 32px);}}
@media(min-width:768px){
 body.home-layout-v2 #main-content>section {padding-block:52px;}
 body.home-layout-v2 #main-content>section :is(.wrap,.dna-play__wrap) {width:calc(100% - 64px);}
 body.home-layout-v2 #courses .mobile-product-recommendations {grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;}
 body.home-layout-v2 #courses .mobile-product-card.product-theme--government {grid-column:auto;}
 body.home-layout-v2 #courses .mobile-product-card__books {grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;}
 body.home-layout-v2 #courses .home-book__cover img {width:100%;height:320px;max-width:none;}
 .home-ebook-heading {flex-direction:row;justify-content:center;gap:24px;margin-bottom:32px;}
 .home-ebook-heading img {width:160px;height:160px;}
 body.home-layout-v2 #faq .ask-jane__item summary {grid-template-columns:64px minmax(0,1fr) 24px;gap:16px;padding:14px 25px 14px 18px;}
 body.home-layout-v2 .home-goal-portrait {max-width:320px;}
}
@media(min-width:1200px){
 body.home-layout-v2 #main-content>section {padding-block:64px;}
 body.home-layout-v2 #main-content>section p {font-size:18px;line-height:31px;}
 body.home-layout-v2 #main-content .home-section-label {margin-bottom:16px;font-size:12px;line-height:18px;}
 body.home-layout-v2 #main-content>section h2:not(dialog *) {font-size:36px;line-height:50px;margin-bottom:16px;}
 body.home-layout-v2 :is(.home-section-heading,.learning-path__heading,.learning-system__opening,.dna-play__heading,.ask-jane__intro) {margin-bottom:32px;}
 body.home-layout-v2 .home-goals-layout {grid-template-columns:minmax(300px,380px) minmax(0,1fr);gap:48px;align-items:center;}
 body.home-layout-v2 .home-goal-portrait {max-width:380px;}
 body.home-layout-v2 #courses .mobile-product-recommendations {grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;}
 body.home-layout-v2 #courses .mobile-product-card[data-home-product] {display:grid;grid-template-rows:subgrid;grid-row:span 8;row-gap:0;padding:24px;}
 body.home-layout-v2 #courses .mobile-product-card__head {display:contents;}
 body.home-layout-v2 #courses .mobile-product-card__head>img {width:180px;height:180px;margin:0 auto 16px;}
 body.home-layout-v2 #courses .mobile-product-card h3 {font-size:24px;line-height:34px;margin:0 0 12px;}
 body.home-layout-v2 #courses .mobile-product-card[data-home-product]>p:not(.home-product-price):not(.mobile-product-card__scope):not(.mobile-product-card__duration) {padding-bottom:20px;}
 body.home-layout-v2 #courses .mobile-product-card__scope {padding-top:20px;}
 body.home-layout-v2 #courses .mobile-product-card__duration {padding-block:20px;}
 body.home-layout-v2 #courses .mobile-product-card__plan {margin-bottom:20px;}
 body.home-layout-v2 #courses .mobile-product-card .home-product-price {font-size:32px;margin-bottom:20px;}
 body.home-layout-v2 #courses .product-card-cta {min-height:52px;}
 body.home-layout-v2 #courses .product-theme--ebook {padding:24px;grid-row:auto;}
 body.home-layout-v2 #courses .home-book .home-product-price {margin:0;}
 body.home-layout-v2 #method-story .dna-story__layout {grid-template-columns:minmax(0,44fr) minmax(0,56fr);column-gap:48px;row-gap:0;align-items:center;}
 .home-method-heading {grid-column:2;grid-row:1;align-self:end;}
 body.home-layout-v2 #method-story .dna-story__book {grid-column:1;grid-row:1/3;padding:16px;}
 body.home-layout-v2 #method-story .dna-story__copy {grid-column:2;grid-row:2;align-self:start;margin-top:8px;}
 body.home-layout-v2 #method-story .dna-story__copy p {margin-bottom:20px;}
 .home-method-open .home-method-open__mobile {display:none;}
 .home-method-open .home-method-open__desktop {display:block;}
}

body.home-layout-v2 #results .student-success-stories__header {margin-bottom:24px;text-align:left;}
body.home-layout-v2 #results .review-selector__help {max-width:640px;margin:0;}
@media(min-width:1200px){body.home-layout-v2 #results .student-success-stories__header {margin-bottom:32px;}}
body.home-layout-v2 #courses .mobile-product-recommendations {width:100%;max-width:none;margin:0;}
@media(min-width:768px){body.home-layout-v2 #courses .home-book {grid-template-rows:subgrid;grid-row:span 5;}}
/* Existing wrap padding must not add a second gutter inside the page gutter. */
body.home-layout-v2 #main-content>section :is(.wrap,.dna-play__wrap) {padding-inline:0;}
@media(max-width:767px){
 body.home-layout-v2 #faq .ask-jane__q {display:none;}
 body.home-layout-v2 #faq .ask-jane__item summary {grid-template-columns:minmax(0,1fr) 24px;gap:12px;padding:16px;}
 body.home-layout-v2 #faq .ask-jane__chevron {grid-column:2;}
}
@media(max-width:374px){
 body.home-layout-v2 #courses .mobile-product-card__plan {position:relative;display:block;}
 body.home-layout-v2 #courses .mobile-product-card__plan svg {position:absolute;top:-8px;right:10px;width:18px;height:18px;background:#fffdf6;}
}
/* Price-only admission tickets: semantic HTML amounts, decorative perforation/stub. */
body.home-layout-v2 #courses .home-product-price:has(>strong) {
 position:relative;width:100%;max-width:360px;justify-self:center;align-self:center;
 filter:drop-shadow(0 4px 0 #9db9bf) drop-shadow(0 8px 10px #193d4b12);
}
body.home-layout-v2 #courses .home-product-price>strong {
 display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:80px;
 padding:18px 76px 18px 20px;border:1px solid #b9d1d5;border-top-color:#fff;border-radius:14px;
 background:linear-gradient(160deg,#fffef8 0%,#fff8e8 72%,#f4e8cd 100%);color:#173e50;
 box-shadow:inset 0 2px 0 #fff,inset 0 -3px 0 #dbc99f55;
 font-size:32px;line-height:1.25;font-weight:700;font-variant-numeric:tabular-nums;
 -webkit-mask:radial-gradient(circle 9px at 0 50%,#0000 98%,#000) 0 0/51% 100% no-repeat,radial-gradient(circle 9px at 100% 50%,#0000 98%,#000) 100% 0/51% 100% no-repeat;
 mask:radial-gradient(circle 9px at 0 50%,#0000 98%,#000) 0 0/51% 100% no-repeat,radial-gradient(circle 9px at 100% 50%,#0000 98%,#000) 100% 0/51% 100% no-repeat;
}
body.home-layout-v2 #courses .home-product-price:has(>strong)::before {
 content:"";position:absolute;z-index:1;right:63px;top:10px;bottom:10px;border-left:1px dashed #9bbec5;
}
body.home-layout-v2 #courses .home-product-price:has(>strong)::after {
 content:"";position:absolute;z-index:1;right:20px;top:50%;transform:translateY(-50%);width:26px;height:34px;
 background:repeating-linear-gradient(90deg,#347c91 0 2px,transparent 2px 4px,#347c91 4px 5px,transparent 5px 8px);
 opacity:.7;
}
@media(max-width:767px){body.home-layout-v2 #courses .home-product-price>strong {font-size:30px;min-height:76px;}}

/* Equal cover frames; object-fit preserves the complete original artwork. */
body.home-layout-v2 #courses .home-book__cover img {width:min(100%,220px);height:auto;aspect-ratio:4/5;object-fit:contain;}

/* Contact invitation line break is phone-only; desktop remains inline. */
@media(max-width:767px){.welcome-2026 .home-contact-note .home-contact-opening {display:block;}}

.jane-mobile-copy {display:none;}
@media(max-width:767px){
 .jane-desktop-copy {display:none;}
 .jane-mobile-copy {display:inline;}
}

@media(max-width:767px){.home-goal-time-phrase {white-space:nowrap;}}
@media(max-width:767px){body.home-layout-v2 #trial-form button[type="submit"]{text-wrap:balance;}}

/* Homepage assessment label: mobile raised brand-blue treatment. */
@media(max-width:560px){
 body.home-layout-v2 #main-content #learning-assessment .home-section-label{padding:9px 16px;border:1px solid #39b4cf;border-radius:12px;background:linear-gradient(180deg,#128fb2,#0f6f8c);color:#fff;box-shadow:inset 0 1px 0 #ffffff66,0 4px 0 #0b536a,0 7px 14px #0f6f8c20;white-space:nowrap;}
}
/* Owner-approved copy parity: desktop uses the same latest wording as phones. */
body.home-layout-v2 :is(.jane-desktop-copy,.jane-desktop-teaching-label,.dna-guide__desktop-label){display:none;}
body.home-layout-v2 :is(.jane-mobile-copy,.jane-phone-teaching-label,.dna-guide__mobile-label,.trial-heading-mobile){display:inline;}
body.home-layout-v2 .trial-intro-mobile{display:block;font-size:16px;line-height:1.75;font-weight:400;}
body.home-layout-v2 .trial-heading-mobile img,
body.home-layout-v2 .trial-goal-icon{display:inline-block;width:28px;height:28px;object-fit:contain;vertical-align:middle;}
body.home-layout-v2 #main-content #learning-assessment .home-section-label{padding:9px 16px;border:1px solid #39b4cf;border-radius:12px;background:linear-gradient(180deg,#128fb2,#0f6f8c);color:#fff;box-shadow:inset 0 1px 0 #ffffff66,0 4px 0 #0b536a,0 7px 14px #0f6f8c20;white-space:nowrap;}

/* Same course-review labels and solid course colours on wider screens. */
@media(min-width:561px){
 body.home-layout-v2 #results .review-categories>button{background:var(--choice-accent);border-color:var(--choice-accent);color:#fff;}
 body.home-layout-v2 #results .review-categories>button :is(.review-choice__name,small,.review-choice__cue){color:#fff;}
 body.home-layout-v2 #results .review-categories>button[aria-selected="true"]{outline:3px solid var(--choice-border);outline-offset:3px;}
}
