/* Public landing page: retain the authored copy, imagery, colours and section order. */
.pagelayout-frontpage .jj-canva-video { display:block; width:100%; height:auto; aspect-ratio:1100/634; border-radius:12px; background:#f4efe9; }
.pagelayout-frontpage #marketblocks .jj-canva-offer { width:100%; height:auto; max-width:283px; }
.pagelayout-frontpage #marketblocks .jj-canva-age { display:block; margin:8px auto; max-width:250px; padding:10px 14px; border-radius:8px; color:#254a30; background:#dbefd7; font-weight:600; text-decoration:none; line-height:1.3; }
.pagelayout-frontpage #marketblocks .jj-canva-age:hover { text-decoration:underline; filter:brightness(.96); }
.pagelayout-frontpage #marketblocks .jj-canva-age:focus-visible { outline:3px solid #234e85; outline-offset:3px; }
.pagelayout-frontpage #marketblocks .jj-canva-age-holistic { background:#ffe4b3; color:#765010; }
.pagelayout-frontpage #marketblocks .jj-canva-age-academic { background:#e0eafa; color:#274f86; }
.pagelayout-frontpage #marketblocks .jj-canva-age-starter { background:#f5dcec; color:#763252; }
.pagelayout-frontpage #marketblocks tr { height:auto !important; }
.pagelayout-frontpage #marketblocks td { padding:4px 8px; }
.pagelayout-frontpage #theinfo1 .text_to_html > table:nth-of-type(3) { border:1px solid #e4e8df !important; border-radius:12px; background:#fdfefb; border-collapse:separate !important; border-spacing:0; }
.pagelayout-frontpage:not(.loggedin) #adaptable-page-header-wrapper #page-header {
    min-height: 0;
    height: auto;
    border-bottom: 1px solid #edf0eb;
}

.pagelayout-frontpage:not(.loggedin) #page-header #logo {
    width: 160px;
    height: 160px;
    object-fit: contain;
    image-rendering: auto;
}

.pagelayout-frontpage #theinfo1 {
    padding-top: 12px;
    line-height: 1.55;
}

/* Remove only the existing empty/three-break editor spacers before the introduction. */
.pagelayout-frontpage #theinfo1 .text_to_html > p:empty,
.pagelayout-frontpage #theinfo1 .text_to_html > p:nth-child(2):has(> br + br + br),
.pagelayout-frontpage #theinfo1 .text_to_html td > p:empty {
    display: none;
}

.pagelayout-frontpage #theinfo1 .text_to_html > table {
    margin-bottom: 28px;
}

/* Bootstrap row-group borders become visible when layout tables stack on mobile. */
.pagelayout-frontpage #theinfo1 table,
.pagelayout-frontpage #theinfo1 tbody,
.pagelayout-frontpage #theinfo1 tr,
.pagelayout-frontpage #theinfo1 td,
.pagelayout-frontpage #marketblocks table,
.pagelayout-frontpage #marketblocks tbody,
.pagelayout-frontpage #marketblocks tr,
.pagelayout-frontpage #marketblocks td {
    border: 0 !important;
}

.pagelayout-frontpage #theinfo1 .text_to_html > table:nth-of-type(1) > tbody > tr > td {
    vertical-align: middle;
    padding: 8px 16px !important;
}

.pagelayout-frontpage #theinfo1 .text_to_html > table:nth-of-type(1) {
    margin-bottom: 16px;
}

.pagelayout-frontpage #theinfo1 .text_to_html > table:nth-of-type(1) p {
    margin-bottom: 0;
}

.pagelayout-frontpage #theinfo1 .text_to_html > table:nth-of-type(1) h3 {
    margin-bottom: 12px;
}

.pagelayout-frontpage #theinfo1 .text_to_html > table:nth-of-type(1) col:first-child {
    width: 76% !important;
}

.pagelayout-frontpage #theinfo1 .text_to_html > table:nth-of-type(1) col:last-child {
    width: 24% !important;
}

.pagelayout-frontpage #theinfo1 h3 {
    margin-bottom: 16px;
    line-height: 1.2;
}

.pagelayout-frontpage #theinfo1 h3 span {
    font-size: clamp(28px, 3.5vw, 38px) !important;
}

.pagelayout-frontpage #theinfo1 .text_to_html > table:nth-of-type(1) p strong > br:first-child {
    display: none;
}

.pagelayout-frontpage #theinfo1 img[alt="jj-icon"] {
    display: block;
    float: none !important;
    width: 210px;
    max-width: 100%;
    height: auto;
    margin: 0 0 0 auto !important;
    filter: url("#jj-frontpage-brand-colour");
}

.pagelayout-frontpage #theinfo1 .text_to_html > table:nth-of-type(2) {
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
}

.pagelayout-frontpage #theinfo1 .text_to_html > table:nth-of-type(2) > tbody > tr > td {
    padding: 24px !important;
    vertical-align: middle;
}

.pagelayout-frontpage #theinfo1 h4 {
    line-height: 1.3;
}

.pagelayout-frontpage #theinfo1 ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.pagelayout-frontpage #theinfo1 li + li {
    margin-top: 6px;
}

.pagelayout-frontpage #theinfo1 .local-jjcurriculum-frontpage-hero {
    display: block;
    margin: auto;
    border-radius: 10px;
}

/* Keep each benefit heading aligned with its original description. */
.pagelayout-frontpage #theinfo1 .text_to_html > table:nth-of-type(3),
.pagelayout-frontpage #theinfo1 .text_to_html > table:nth-of-type(3) tr {
    height: auto !important;
}

.pagelayout-frontpage #theinfo1 .text_to_html > table:nth-of-type(3) > tbody > tr:first-child,
.pagelayout-frontpage #theinfo1 .text_to_html > table:nth-of-type(4) > tbody > tr:first-child {
    display: none;
}

.pagelayout-frontpage #theinfo1 .text_to_html > table:nth-of-type(3) strong {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    font-size: 13px;
    line-height: 1.35;
}

.pagelayout-frontpage #theinfo1 .text_to_html > table:nth-of-type(3) img {
    float: none !important;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 0 !important;
    object-fit: contain;
}

.pagelayout-frontpage #theinfo1 .text_to_html > table:nth-of-type(4) {
    margin: 12px auto 8px;
}

.pagelayout-frontpage #marketblocks .marketrow > div > .text_to_html {
    height: 100%;
    padding: 14px 10px;
    border: 1px solid #e7ebe4;
    border-radius: 10px;
    line-height: 1.5;
}

@media (max-width: 48rem) {
    .pagelayout-frontpage #theinfo1 {
        padding-top: 12px;
    }

    .pagelayout-frontpage #theinfo1 .text_to_html > table:nth-of-type(1) > tbody > tr > td {
        padding: 12px !important;
    }

    .pagelayout-frontpage #theinfo1 img[alt="jj-icon"] {
        width: 140px;
        margin: 0 auto !important;
    }

    .pagelayout-frontpage #theinfo1 .text_to_html > table:nth-of-type(2) > tbody > tr > td {
        padding: 18px !important;
    }
}

/* Canva page 4: typography, original check icons and compact coloured age links. */
@font-face { font-family:JJMontserrat; src:url('/local/jjcurriculum/pix/canva/Montserrat-Regular.woff2') format('woff2'); font-weight:400; font-display:swap; }
@font-face { font-family:JJMontserrat; src:url('/local/jjcurriculum/pix/canva/Montserrat-Bold.woff2') format('woff2'); font-weight:700; font-display:swap; }
.pagelayout-frontpage #theinfo1,.pagelayout-frontpage #marketblocks { font-family:JJMontserrat,Arial,sans-serif; }
.pagelayout-frontpage #theinfo1 ul { list-style:none; padding-left:0; }
.pagelayout-frontpage #theinfo1 li { position:relative; padding-left:32px; color:#586056; }
.pagelayout-frontpage #theinfo1 li::before { content:''; position:absolute; left:0; top:2px; width:23px; height:23px; background:url('/local/jjcurriculum/pix/canva/check.png') center/contain no-repeat; }
.pagelayout-frontpage #marketblocks .jj-canva-age { background:#58724f; color:#fff; border-radius:7px; padding:9px 12px; font-size:.9rem; }
.pagelayout-frontpage #marketblocks .jj-canva-age-holistic { background:#a4620b; color:#fff; }
.pagelayout-frontpage #marketblocks .jj-canva-age-academic { background:#376fc9; color:#fff; }
.pagelayout-frontpage #marketblocks .jj-canva-age-starter { background:#d6225b; color:#fff; }
.pagelayout-frontpage #marketblocks .marketrow > div > .text_to_html { border:0; padding:8px 10px; }

/* Kim's spacing review: one wider content edge and shared offer rows. */
.pagelayout-frontpage #theinfo1.container,
.pagelayout-frontpage #marketblocks.container,
.pagelayout-frontpage #page-footer .container {
    box-sizing: border-box;
    width: calc(100% - 48px);
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

.pagelayout-frontpage #theinfo1 > .row {
    margin: 0;
}

.pagelayout-frontpage #page > .container:has(> #marketblocks) {
    width: 100%;
    max-width: none;
    padding: 0;
}

.pagelayout-frontpage #theinfo1 > .row > .col-12 {
    padding: 0;
}

.pagelayout-frontpage #theinfo1 .text_to_html > table:nth-of-type(3) {
    table-layout: fixed;
}

.pagelayout-frontpage #theinfo1 .text_to_html > table:nth-of-type(3) td {
    padding: 14px 18px !important;
}

/* Enlarged text must wrap inside its benefit column beside the fixed icon. */
.pagelayout-frontpage #theinfo1 .text_to_html > table:nth-of-type(3) strong {
    overflow-wrap: anywhere;
}

/* Nested subgrids share the tallest authored row without fixed text heights. */
.pagelayout-frontpage #marketblocks .marketrow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 32px;
    margin: 0;
}

.pagelayout-frontpage #marketblocks .marketrow > div,
.pagelayout-frontpage #marketblocks .marketrow > div > .text_to_html,
.pagelayout-frontpage #marketblocks table,
.pagelayout-frontpage #marketblocks tbody {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 5;
    min-width: 0;
    width: 100%;
    max-width: none;
    height: auto !important;
    margin: 0 !important;
    padding: 0;
}

.pagelayout-frontpage #marketblocks colgroup,
.pagelayout-frontpage #marketblocks .text_to_html > p:empty {
    display: none;
}

.pagelayout-frontpage #marketblocks tr {
    display: grid;
    align-items: start;
}

.pagelayout-frontpage #marketblocks td {
    display: block;
    min-width: 0;
    padding: 4px 8px;
}

.pagelayout-frontpage #marketblocks tr:nth-child(2) td {
    padding-top: 12px;
    padding-bottom: 12px;
}

.pagelayout-frontpage #marketblocks .jj-canva-age {
    margin: 0 auto;
}

/* Footer presentation is shared with signed-in pages in joyfuljourneys.css. */
@media (max-width: 1099px) {
    .pagelayout-frontpage #marketblocks .marketrow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 20px;
    }
}
@media (max-width: 48rem) {
    .pagelayout-frontpage #theinfo1.container,
    .pagelayout-frontpage #marketblocks.container {
        width: calc(100% - 32px);
    }
    .pagelayout-frontpage #theinfo1 .text_to_html > table:nth-of-type(3) td {
        padding: 10px 12px !important;
    }
}
@media (max-width: 575px) {
    .pagelayout-frontpage #theinfo1 .text_to_html > table:nth-of-type(3) strong {
        flex-direction: column;
        align-items: flex-start;
    }
    .pagelayout-frontpage #marketblocks .marketrow {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* Compact purchase choices within the original four authored programme cards. */
.pagelayout-frontpage #marketblocks .jj-price-group { text-align:center; margin:6px 0 12px; }
.pagelayout-frontpage #marketblocks .jj-price-group > strong { display:block; font-size:14px; margin-bottom:6px; }
.pagelayout-frontpage #marketblocks .jj-price-buttons { display:flex; justify-content:center; gap:6px; }
.pagelayout-frontpage #marketblocks .jj-price-buttons form { flex:1; min-width:0; margin:0; }
.pagelayout-frontpage #marketblocks .jj-price-buttons button { width:100%; border:0; border-radius:7px; padding:9px 5px; font-size:12px; line-height:1.5; color:#fff; background:#667c5f; cursor:pointer; white-space:normal; }
.pagelayout-frontpage #marketblocks .jj-price-holistic button { background:#956118; }
.pagelayout-frontpage #marketblocks .jj-price-academic button { background:#396abd; }
.pagelayout-frontpage #marketblocks .jj-price-starter button { background:#c92060; }
.pagelayout-frontpage #marketblocks .jj-price-buttons button:hover { filter:brightness(.9); }
.pagelayout-frontpage #marketblocks .jj-price-buttons button:focus-visible { outline:3px solid #234e85; outline-offset:3px; }
.pagelayout-frontpage .jj-landing-sample { text-align:center; margin:0 auto 36px; }
.pagelayout-frontpage .jj-landing-sample a { color:#315d2e; text-decoration:underline; padding:12px; display:inline-block; }

/* Client's balanced introduction: keep the authored content, with explicit
   layout areas that do not depend on a table's intrinsic column widths. */
.pagelayout-frontpage #theinfo1 .text_to_html > table:is(.jj-landing-welcome,.jj-landing-hero),
.pagelayout-frontpage #theinfo1 :is(.jj-landing-welcome,.jj-landing-hero) > tbody {
    display:block; width:100%!important; height:auto!important;
}
.pagelayout-frontpage #theinfo1 :is(.jj-landing-welcome,.jj-landing-hero) > colgroup { display:none; }
.pagelayout-frontpage #theinfo1 :is(.jj-landing-welcome,.jj-landing-hero) > tbody > tr {
    display:grid; width:100%; height:auto!important; gap:28px; align-items:center;
}
.pagelayout-frontpage #theinfo1 .text_to_html > table:is(.jj-landing-welcome,.jj-landing-hero) > tbody > tr > td {
    display:block; width:auto!important; min-width:0; height:auto!important; padding:0!important;
}
.pagelayout-frontpage #theinfo1 .text_to_html > table.jj-landing-welcome { margin:12px 0 32px; }
.pagelayout-frontpage #theinfo1 .jj-landing-welcome h3 { margin:0 0 14px; line-height:1.15; }
.pagelayout-frontpage #theinfo1 .jj-landing-welcome h3 span {
    font-size:clamp(28px,3.5vw,52px)!important; font-weight:700!important; color:#58704f!important;
}
.pagelayout-frontpage #theinfo1 .jj-landing-welcome p { font-size:clamp(16px,1.3vw,20px); line-height:1.6; }
.pagelayout-frontpage #theinfo1 .text_to_html > table.jj-landing-hero {
    padding:clamp(18px,2vw,28px); border-radius:18px; background:#fdf9f6; margin-bottom:28px;
}
.pagelayout-frontpage #theinfo1 .jj-landing-hero > tbody > tr { grid-template-columns:repeat(2,minmax(0,1fr)); }
.pagelayout-frontpage #theinfo1 .jj-landing-hero p { font-size:clamp(16px,1.25vw,18px); line-height:1.65; margin:0 0 18px; }
.pagelayout-frontpage #theinfo1 .jj-landing-hero td:first-child > p:first-child { font-size:clamp(17px,1.4vw,21px); }
.pagelayout-frontpage #theinfo1 .jj-landing-hero h4 { font-size:clamp(25px,2.5vw,36px); line-height:1.3; margin:0 0 18px; }
.pagelayout-frontpage #theinfo1 .jj-landing-hero li { font-size:clamp(16px,1.25vw,18px); line-height:1.6; padding-left:34px; }
.pagelayout-frontpage #theinfo1 .jj-landing-hero li::before { top:3px; width:25px; height:25px; }
.pagelayout-frontpage #theinfo1 .jj-landing-hero .jj-canva-video { width:100%; max-width:100%; margin:0; border-radius:14px; }
@media(max-width:1023.98px) {
    .pagelayout-frontpage #theinfo1 .jj-landing-hero > tbody > tr { grid-template-columns:minmax(0,1fr); gap:24px; }
    .pagelayout-frontpage #theinfo1 .text_to_html > table.jj-landing-welcome { margin-bottom:24px; }
}
