@font-face {
    font-family: 'Zen Maru Gothic';
    src: url('ZenMaruGothic-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

#dpal-curriculum-main {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    clear: both;
}

.dpal-curriculum-hub {
    --ch-ink: #363534;
    --ch-pink: #d71660;
    --ch-cyan: #007b8c;
    --ch-yellow: #896000;
    --ch-color-bar: linear-gradient(to right, #dc1962 0 33.333%, #49c2ce 33.333% 66.666%, #ffdb38 66.666%);
    --ch-round: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
    margin: 0;
    padding: 0;
    max-width: none;
    color: var(--ch-ink);
    background: #fff;
    font: 400 17px/1.95 Arial, 'Noto Sans CJK JP', 'Hiragino Kaku Gothic ProN', sans-serif;
    text-align: center;
}

.dpal-curriculum-hub *, .dpal-curriculum-hub *::before, .dpal-curriculum-hub *::after { box-sizing: border-box; }
.dpal-curriculum-hub :is(h1,h2,h3,p,figure,.wp-block-group,.wp-block-buttons,.wp-block-button) {
    margin: 0;
    max-width: none;
}
.dpal-curriculum-hub :is(h1,h2,h3) {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font-family: var(--ch-round) !important;
    font-weight: 700;
    font-size: clamp(27px, 2.7vw, 38px);
    line-height: 1.5;
    letter-spacing: .03em;
}
.dpal-curriculum-hub :is(h1,h2,h3)::before,
.dpal-curriculum-hub :is(h1,h2,h3)::after { content: none; }
.dpal-curriculum-hub p { color: inherit; font-family: Arial, "Noto Sans CJK JP", "Hiragino Kaku Gothic ProN", sans-serif; font-weight: 400; }
.dpal-curriculum-hub figure { overflow: hidden; }
.dpal-curriculum-hub figure img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.dpal-curriculum-hub a:focus-visible { outline: 3px solid #215189; outline-offset: 4px; }

.dpal-curriculum-hub .dpal-ch-hero {
    display: grid;
    isolation: isolate;
    position: relative;
    border-bottom: 6px solid transparent;
    border-image: var(--ch-color-bar) 1;
    min-height: clamp(370px, 45vw, 600px);
    background: #fffefd;
    text-align: left;
}
.dpal-curriculum-hub .dpal-ch-hero > * { grid-area: 1 / 1; min-width: 0; }
.dpal-curriculum-hub .dpal-ch-hero-photo {
    width: 74%;
    justify-self: end;
    display: grid;
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
    position: relative;
    min-height: 0;
    z-index: 0;
}
.dpal-curriculum-hub .dpal-ch-hero-photo img { position: absolute; inset: 0; object-position: 62% 44%; }
.dpal-curriculum-hub .dpal-ch-hero-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, #fffefd 1%, #fffefdde 10%, #fffefd30 32%, transparent 55%);
}
.dpal-curriculum-hub .dpal-ch-hero-content {
    display: flex;
    flex-direction: column;
    width: min(1320px, 94%);
    margin-inline: auto;
    z-index: 2;
    pointer-events: none;
}
.dpal-curriculum-hub .dpal-ch-hero-content > * { pointer-events: auto; }
.dpal-curriculum-hub .dpal-ch-breadcrumb { font-size: 12px; font-weight: 400; padding-block: 1rem .5rem; }
.dpal-curriculum-hub .dpal-ch-breadcrumb a { color: var(--ch-cyan); text-underline-offset: 3px; }
.dpal-curriculum-hub .dpal-ch-hero-copy { margin-block: auto; width: fit-content; padding-block: 22px 44px; padding-left: min(1.5vw, 18px); }
.dpal-curriculum-hub .dpal-ch-kicker {
    color: var(--ch-pink);
    font: 700 15px/1.95 Arial, "Noto Sans CJK JP", "Hiragino Kaku Gothic ProN", sans-serif;
    letter-spacing: .08em;
    margin-bottom: .4em;
}
.dpal-curriculum-hub .dpal-ch-hero-heading { font-size: clamp(32px, 3.4vw, 47px); line-height: 1.55; letter-spacing: .025em; margin-bottom: .38em; }
.dpal-curriculum-hub .dpal-ch-hero-lead { font-weight: 400; font-size: 18px; line-height: 1.95; }

.dpal-curriculum-hub .dpal-ch-grades {
    padding: clamp(42px, 6vw, 80px) 0 clamp(78px, 9vw, 132px);
    background:
      radial-gradient(ellipse at 86% 26%, #fff 0, transparent 18%),
      radial-gradient(ellipse at 20% 53%, #fff 0, transparent 28%),
      #fcf8ed;
}
.dpal-curriculum-hub .dpal-ch-shell { width: min(94%, 1190px); margin-inline: auto; position: relative; }
.dpal-curriculum-hub .dpal-ch-section-title { position: relative; text-wrap: balance; }
.dpal-curriculum-hub .dpal-ch-section-lead {
    font-size: 17px;
    line-height: 1.95;
    margin: 20px auto 0;
    font-weight: 400;
}
.dpal-curriculum-hub :is(.dpal-ch-grades,.dpal-ch-gallery,.dpal-ch-cta) { position: relative; isolation: isolate; }
.dpal-curriculum-hub :is(.dpal-ch-grades,.dpal-ch-gallery,.dpal-ch-cta)::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(circle closest-side, transparent 72%, #f490b2 76% 96%, transparent 100%) 6% 7% / 46px 46px no-repeat,
      radial-gradient(circle closest-side, transparent 72%, #4bbdcb 76% 96%, transparent 100%) 92% 84% / 39px 39px no-repeat,
      radial-gradient(circle closest-side, transparent 65%, #fadd43 73% 94%, transparent 99%) 94% 10% / 20px 20px no-repeat,
      radial-gradient(circle closest-side, transparent 68%, #fadd43 76% 94%, transparent 99%) 7% 92% / 20px 20px no-repeat;
}

.dpal-curriculum-hub .dpal-ch-grid {
    display: grid;
    grid-template-columns: repeat(12,minmax(0,1fr));
    gap: clamp(13px, 1.65vw, 23px);
    max-width: 1150px;
    margin: clamp(26px, 5vw, 66px) auto 0;
}
.dpal-curriculum-hub .dpal-ch-card {
    --ch-accent: var(--ch-pink);
    --ch-tint: #f9d2e0;
    --ch-spark: #f0558d;
    grid-column: span 4;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    padding: clamp(7px, 1vw, 13px) clamp(7px, 1vw, 13px) clamp(18px, 2.2vw, 27px);
    border-radius: clamp(17px, 2.4vw, 32px);
    background: #fff;
    box-shadow: 0 8px 17px #362c2217;
}
.dpal-curriculum-hub .dpal-ch-card:nth-child(4) { grid-column: 2 / span 5; }
.dpal-curriculum-hub .dpal-ch-card:nth-child(5) { grid-column: 7 / span 5; }
.dpal-curriculum-hub .dpal-ch-cyan { --ch-accent: var(--ch-cyan); --ch-tint: #ccf0f3; --ch-spark: #00b0c2; }
.dpal-curriculum-hub .dpal-ch-yellow { --ch-accent: var(--ch-yellow); --ch-tint: #fff1b5; --ch-spark: #edbd12; }
.dpal-curriculum-hub .dpal-ch-card-photo { aspect-ratio: 1.14; border-radius: clamp(12px, 1.9vw, 25px); }
.dpal-curriculum-hub .dpal-ch-card:nth-child(n+4) .dpal-ch-card-photo { aspect-ratio: 1.14; }
.dpal-curriculum-hub .dpal-ch-card-photo img { object-position: 50% 40%; }
.dpal-curriculum-hub .dpal-ch-class {
    color: var(--ch-accent);
    margin-top: .55em;
    font: 700 15px/1.5 var(--ch-round);
}
.dpal-curriculum-hub .dpal-ch-grade-title {
    align-self: center;
    position: relative;
    font-size: 22px;
    padding-inline: .35em;
    background: linear-gradient(transparent 76%, var(--ch-tint) 76% 96%, transparent 96%);
    border-radius: 8px;
}
.dpal-curriculum-hub .dpal-ch-grade-title::after {
    content: '';
    display: block;
    position: absolute;
    width: 18px;
    height: 18px;
    right: -11px;
    top: -8px;
    background:
      linear-gradient(115deg, transparent 36%, var(--ch-spark) 40% 60%, transparent 65%) 1px 0 / 6px 10px no-repeat,
      linear-gradient(140deg, transparent 36%, var(--ch-spark) 40% 60%, transparent 65%) 7px 5px / 8px 8px no-repeat,
      linear-gradient(var(--ch-spark),var(--ch-spark)) 10px 15px / 8px 2px no-repeat;
}
.dpal-curriculum-hub .dpal-ch-catch {
    color: var(--ch-accent);
    font: 700 22px/1.5 var(--ch-round);
    margin: .55em .15em .3em;
}
.dpal-curriculum-hub .dpal-ch-description {
    width: min(95%, 14em);
    margin: 0 auto .85em;
    font-size: 17px;
    line-height: 1.95;
    text-align: left;
    font-weight: 400;
}
.dpal-curriculum-hub .dpal-ch-card-button { margin-top: auto; }

.dpal-curriculum-hub .wp-block-buttons { justify-content: center; }
.dpal-curriculum-hub .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55em;
    min-height: 44px;
    min-width: min(100%, 11em);
    padding: .32em 1.25em;
    border: 2px solid var(--ch-link-color, var(--ch-pink));
    border-radius: 999px;
    box-shadow: none;
    background: #fff;
    color: var(--ch-ink);
    text-decoration: none;
    font: 700 17px/1.6 Arial, "Noto Sans CJK JP", "Hiragino Kaku Gothic ProN", sans-serif;
}
.dpal-curriculum-hub .wp-block-button__link::after {
    content: '›';
    display: inline-grid;
    place-items: center;
    border: 1px solid currentColor;
    color: var(--ch-link-color, var(--ch-pink));
    border-radius: 50%;
    width: 1em;
    height: 1em;
    line-height: .75;
}
.dpal-curriculum-hub .wp-block-button__link:hover { background: #fff0f5; color: var(--ch-ink); }

.dpal-curriculum-hub .dpal-ch-gallery {
    background: #e3f7f8;
    padding: clamp(27px, 4.5vw, 60px) 0 clamp(52px, 7.1vw, 100px);
}
.dpal-curriculum-hub .dpal-ch-gallery::after {
    content: '';
    position: absolute;
    inset: -31px 0 auto;
    height: 32px;
    background: radial-gradient(ellipse 28% 110% at 7% 112%, #e3f7f8 98%, transparent) 0 0 / 100% 100%,
                radial-gradient(ellipse 29% 109% at 49% 132%, #e3f7f8 98%, transparent) 0 0 / 100% 100%,
                radial-gradient(ellipse 27% 116% at 98% 105%, #e3f7f8 98%, transparent) 0 0 / 100% 100%;
    border-bottom: 1px solid #e3f7f8;
    pointer-events: none;
}
.dpal-curriculum-hub .dpal-ch-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: clamp(12px, 3vw, 32px);
    width: min(94%, 1030px);
    margin: clamp(19px, 3vw, 37px) auto;
}
.dpal-curriculum-hub .dpal-ch-work-photo { aspect-ratio: 1.53; border-radius: 19px; border: 3px solid #fff; }
.dpal-curriculum-hub .dpal-ch-work-photo img { object-position: 50% 36%; }
.dpal-curriculum-hub .dpal-ch-gallery-button { --ch-link-color: var(--ch-cyan); }
.dpal-curriculum-hub .dpal-ch-gallery-button .wp-block-button__link { color: var(--ch-cyan); }
.dpal-curriculum-hub .dpal-ch-gallery-button .wp-block-button__link:hover { background: #eafbfc; }

.dpal-curriculum-hub .dpal-ch-cta {
    background: #fff;
    padding: clamp(28px, 4vw, 55px) 4% clamp(22px, 3vw, 45px);
    border-bottom: 5px solid transparent;
    border-image: var(--ch-color-bar) 1;
}
.dpal-curriculum-hub .dpal-ch-cta::after {
    content: '';
    position: absolute;
    inset: -24px 0 auto;
    height: 25px;
    background:
      radial-gradient(ellipse 30% 112% at 29% 123%, white 98%, transparent),
      radial-gradient(ellipse 32% 116% at 80% 108%, white 98%, transparent);
    border-bottom: 1px solid white;
    pointer-events: none;
}
.dpal-curriculum-hub .dpal-ch-trial-button { margin-top: .85em; }
.dpal-curriculum-hub .dpal-ch-trial-button .wp-block-button__link {
    background: var(--ch-pink);
    color: #fff;
    font-size: 17px;
    min-height: 49px;
    padding: .45em 1.6em;
}
.dpal-curriculum-hub .dpal-ch-trial-button .wp-block-button__link::after { content: '↗'; border: 0; color: inherit; }
.dpal-curriculum-hub .dpal-ch-trial-button .wp-block-button__link:hover { background: #ab0a47; color: #fff; }
.dpal-curriculum-hub .dpal-ch-course-button { --ch-link-color: var(--ch-cyan); margin-top: .22em; }
.dpal-curriculum-hub .dpal-ch-course-button .wp-block-button__link {
    color: var(--ch-cyan);
    border-color: transparent;
    background: transparent;
    text-decoration: underline;
    text-underline-offset: .15em;
}

/* Keep the editable blocks in the same layout in either editor canvas. */
.editor-styles-wrapper .dpal-curriculum-hub.wp-block {
    width: 100%;
    max-width: none;
    margin-block: 0;
}
.editor-styles-wrapper .dpal-curriculum-hub .dpal-ch-hero-photo .components-resizable-box__container { position: absolute; inset: 0; }
.editor-styles-wrapper .dpal-curriculum-hub :is(.dpal-ch-card-photo,.dpal-ch-work-photo) .components-resizable-box__container { width: 100% !important; height: 100% !important; }
.editor-styles-wrapper .dpal-curriculum-hub .dpal-ch-hero .dpal-ch-hero-content { pointer-events: none; }
.editor-styles-wrapper .dpal-curriculum-hub .dpal-ch-hero-content > .wp-block { pointer-events: auto; }

@media (max-width: 660px) {
    .dpal-curriculum-hub .dpal-ch-hero { grid-template-columns: minmax(0,1fr); min-height: 0; }
    .dpal-curriculum-hub .dpal-ch-hero > * { grid-area: auto; }
    .dpal-curriculum-hub .dpal-ch-hero-content { grid-row: 1; width: min(89%, 470px); }
    .dpal-curriculum-hub .dpal-ch-hero-copy { padding: 15px 0 19px; }
    .dpal-curriculum-hub .dpal-ch-hero-photo { width: 100%; aspect-ratio: 1.95; }
    .dpal-curriculum-hub .dpal-ch-hero-photo img { object-position: center 45%; }
    .dpal-curriculum-hub .dpal-ch-hero-photo::after { content: none; }
    .dpal-curriculum-hub .dpal-ch-grid { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 520px; }
    .dpal-curriculum-hub .dpal-ch-grid .dpal-ch-card { grid-column: auto; }
    .dpal-curriculum-hub .dpal-ch-grid .dpal-ch-card:nth-child(5) { grid-column: 1 / -1; width: calc((100% - 13px) / 2); justify-self: center; }
    .dpal-curriculum-hub .dpal-ch-card:nth-child(n+4) .dpal-ch-card-photo { aspect-ratio: 1.14; }
    .dpal-curriculum-hub .dpal-ch-description { width: 94%; }
    .dpal-curriculum-hub .dpal-ch-gallery-grid { width: 100%; }
    .dpal-curriculum-hub .dpal-ch-work-photo { border-radius: 12px; }
}

@media (max-width: 355px) {
    .dpal-curriculum-hub .dpal-ch-grid { grid-template-columns: minmax(0,1fr); max-width: 290px; }
    .dpal-curriculum-hub .dpal-ch-grid .dpal-ch-card:nth-child(5) { width: 100%; }
}

@media (min-width: 661px) {
    .dpal-curriculum-hub .dpal-ch-card:nth-child(4) { width: 91%; justify-self: end; }
    .dpal-curriculum-hub .dpal-ch-card:nth-child(5) { width: 91%; justify-self: start; }
}

/* Match the established grade pages in both the frontend and editor canvas. */
.dpal-curriculum-hub .dpal-ch-class,
.dpal-curriculum-hub .dpal-ch-catch { font-family: var(--ch-round) !important; }
@media (max-width: 600px) {
    .dpal-curriculum-hub { font-size: 16px; }
    .dpal-curriculum-hub .dpal-ch-hero-heading { font-size: 30px; }
    .dpal-curriculum-hub .dpal-ch-section-title { font-size: 27px; }
    .dpal-curriculum-hub .dpal-ch-grade-title { font-size: 21px; }
    .dpal-curriculum-hub .dpal-ch-catch { font-size: 21px; }
    .dpal-curriculum-hub .dpal-ch-hero-lead,
    .dpal-curriculum-hub .dpal-ch-section-lead,
    .dpal-curriculum-hub .dpal-ch-description { font-size: 16px; }
    .dpal-curriculum-hub .wp-block-button__link { font-size: 15px; }
}

/* v1.1.3: explicit text alignment and fonts also win against editor theme rules. */
.dpal-curriculum-hub .dpal-ch-hero-copy {
    position: relative;
    top: -48px;
}
.dpal-curriculum-hub :is(h1.dpal-ch-hero-heading,h2.dpal-ch-section-title,h3.dpal-ch-grade-title),
.editor-styles-wrapper .dpal-curriculum-hub :is(h1.dpal-ch-hero-heading,h2.dpal-ch-section-title,h3.dpal-ch-grade-title) {
    font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif !important;
    font-weight: 700 !important;
}
.dpal-curriculum-hub .dpal-ch-cta,
.dpal-curriculum-hub .dpal-ch-cta .dpal-ch-section-title,
.dpal-curriculum-hub .dpal-ch-cta .dpal-ch-section-lead,
.editor-styles-wrapper .dpal-curriculum-hub .dpal-ch-cta,
.editor-styles-wrapper .dpal-curriculum-hub .dpal-ch-cta .dpal-ch-section-title,
.editor-styles-wrapper .dpal-curriculum-hub .dpal-ch-cta .dpal-ch-section-lead {
    text-align: center !important;
}
.dpal-curriculum-hub .dpal-ch-cta .dpal-ch-section-title,
.dpal-curriculum-hub .dpal-ch-cta .dpal-ch-section-lead {
    width: 100%;
    max-width: 1120px;
    margin-inline: auto !important;
    align-self: center;
}
.editor-styles-wrapper .dpal-curriculum-hub .dpal-ch-hero-heading {
    font-size: clamp(32px, 3.4vw, 47px);
    line-height: 1.55;
    text-align: left;
}
.editor-styles-wrapper .dpal-curriculum-hub .dpal-ch-section-title {
    font-size: clamp(27px, 2.7vw, 38px);
    line-height: 1.5;
}
.editor-styles-wrapper .dpal-curriculum-hub .dpal-ch-grade-title {
    font-size: 22px;
    line-height: 1.5;
}
@media (max-width: 660px) {
    .dpal-curriculum-hub .dpal-ch-hero-copy { top: 0; }
}
@media (max-width: 600px) {
    .editor-styles-wrapper .dpal-curriculum-hub .dpal-ch-hero-heading { font-size: 30px; }
    .editor-styles-wrapper .dpal-curriculum-hub .dpal-ch-section-title { font-size: 27px; }
    .editor-styles-wrapper .dpal-curriculum-hub .dpal-ch-grade-title { font-size: 21px; }
}
.editor-styles-wrapper .dpal-curriculum-hub .dpal-ch-cta .dpal-ch-section-title,
.editor-styles-wrapper .dpal-curriculum-hub .dpal-ch-cta .dpal-ch-section-lead {
    width: 100% !important;
    max-width: 1120px !important;
    margin-inline: auto !important;
}

/* Breadcrumb is its own editable block, above the photograph. */
.dpal-curriculum-hub > .dpal-ch-breadcrumb,
.dpal-curriculum-hub > .wp-block-group__inner-container > .dpal-ch-breadcrumb {
    position: relative;
    z-index: 3;
    width: min(1120px, calc(100% - 88px));
    margin: 0 auto !important;
    padding: 17px 0;
    text-align: left;
    font-size: 12px;
    line-height: 1.95;
    background: #fff;
}
.dpal-curriculum-hub .dpal-ch-hero-content { justify-content: center; }
@media (max-width: 600px) {
    .dpal-curriculum-hub > .dpal-ch-breadcrumb,
    .dpal-curriculum-hub > .wp-block-group__inner-container > .dpal-ch-breadcrumb {
        width: calc(100% - 44px);
    }
}

/* v1.1.5: all five grade photos share 1.14:1; mobile hero text is centered. */
@media (max-width: 660px) {
    .dpal-curriculum-hub .dpal-ch-hero-copy {
        width: 100%;
        padding-inline: 0;
    }
    .dpal-curriculum-hub .dpal-ch-hero-heading,
    .dpal-curriculum-hub .dpal-ch-hero-lead,
    .editor-styles-wrapper .dpal-curriculum-hub .dpal-ch-hero-heading,
    .editor-styles-wrapper .dpal-curriculum-hub .dpal-ch-hero-lead {
        text-align: center !important;
        width: 100%;
        margin-inline: auto !important;
    }
    .dpal-curriculum-hub .dpal-ch-hero-copy .dpal-ch-kicker,
    .editor-styles-wrapper .dpal-curriculum-hub .dpal-ch-hero-copy .dpal-ch-kicker {
        text-align: left;
    }
}
