/* The public school pages share the spacing and artwork of the Oldenburg website. */
.header-row { min-height: 85px; }
.brand, .brand img { width: 174px; }
.header-row .primary-navigation-links { gap: 0 clamp(9px, 1.2vw, 22px); }
.header-row nav a { font-weight: 500; font-size: 15px; }
.header-row a.header-cta { padding: 12px 22px; color: #fff; gap: 12px; margin-inline-start: 14px; }
.header-row a.header-cta:hover { color: #fff; background: var(--ink); }

.hero { padding-block: 45px 50px; grid-template-columns: minmax(0, 1.147fr) minmax(0, 1fr); gap: clamp(28px, 4.51vw, 65px); }
.hero-copy h1, .hero-copy h2 { font-size: clamp(40px, 5.65vw, 79px); line-height: 1.035; letter-spacing: -.04em; font-weight: 700; }
.hero-subtitle { margin-top: 9px; }
.hero .prose { max-width: 47ch; margin-top: 27px; font-size: 18px; line-height: 1.7; text-wrap: pretty; }
.hero-actions { gap: 10px 26px; align-items: center; }
.hero-actions:not(:empty) { margin-top: 29px; }
.hero-actions a { gap: 14px; font-weight: 600; font-size: 15px; }
.hero-actions .primary { padding-inline: 26px; }
.hero-actions .secondary { border: 0; padding-inline: 0; color: var(--ink); }
.hero-actions .secondary:hover { background: transparent; text-decoration: underline; }
.hero-note { margin-top: 22px; color: var(--muted); max-width: 49ch; font-size: 14px; line-height: 1.55; text-wrap: pretty; }
.hero-address { margin-top: 23px; font-size: 13px; }
.hero-address::before { content: '●'; color: var(--red); margin-inline-end: 7px; }
.hero-portrait { position: relative; isolation: isolate; background: #fff; border-radius: 18px; box-shadow: 0 18px 44px #51363220; }
.hero-portrait::before, .hero-portrait::after { content: ''; position: absolute; z-index: -1; }
.hero-portrait::before { top: -20px; right: -18px; width: min(220px, 50%); aspect-ratio: 1; border-radius: 50%; background: #d5cbc7; }
.hero-portrait::after { width: 72px; height: 158px; left: -18px; bottom: 60px; border-radius: 14px; background: var(--ink); }
.hero-portrait .hero-image { width: 100%; aspect-ratio: 1 / 1.1; object-fit: cover; object-position: center; border-radius: 18px; }
.hero-portrait:has(figcaption) .hero-image { border-radius: 18px 18px 0 0; }
.hero-portrait figcaption { display: flex; align-items: center; gap: 12px; justify-content: space-between; min-height: 83px; padding: 16px 20px; border-radius: 0 0 18px 18px; background: white; color: var(--muted); font-size: 15px; }
.hero-portrait figcaption strong { display: block; color: var(--ink); font-size: 18px; }
.hero-portrait figcaption a { display: grid; place-items: center; text-decoration: none; width: 44px; min-height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--ink); color: white; }

.home-hero .hero-copy { container-type: inline-size; }
.home-hero .hero-copy h1 {
    font-size: clamp(2rem, 12cqi, 4.65rem);
    line-height: 1.02;
    text-wrap: balance;
}
.home-hero .hero-copy h1:is(:lang(en), :lang(es)) { font-size: clamp(1.875rem, 10.25cqi, 4.25rem); }
.home-hero .hero-title { display: block; }
.home-hero .hero-accent { margin-block-start: .06em; }
.home-hero .hero-subtitle { font-size: .56em; line-height: 1.12; letter-spacing: -.03em; margin-block-start: .39em; }
.home-hero .hero-frame { overflow: hidden; border-radius: inherit; }
.home-hero .hero-portrait:has(figcaption) .hero-frame { border-radius: 18px 18px 0 0; }
.home-hero .hero-orbit {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    inset-block-start: -24px;
    inset-inline-end: -25px;
    width: min(188px, 42%);
    aspect-ratio: 1;
    border: 1px solid #bd905d;
    border-radius: 50%;
}

.school-promotion { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 27px 32px; border-radius: var(--radius); background: var(--red); color: white; }
.school-promotion h2 { font-size: clamp(23px, 2.4vw, 32px); }
.school-promotion p { margin-top: 4px; font-size: 16px; }
.school-promotion p + p { font-size: 14px; }
.promotion-date { display: grid; text-align: center; padding-inline-end: 26px; border-inline-end: 1px solid #ffffff68; line-height: 1.12; }
.promotion-date strong { font-size: 52px; font-weight: 500; color: var(--gold); }
.promotion-date span { font-size: 12px; text-transform: uppercase; }
.school-promotion .button { gap: 14px; }
.home-courses { margin-block: clamp(42px, 5.2vw, 76px); }
.home-course-heading { align-items: center; }
.home-course-heading p, .section-intro p { margin-top: 12px; color: var(--muted); }
.home-course-grid, .catalog-results { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.9vw, 28px); }
.home-course-grid { margin-top: 32px; }
.home-course-link, .catalog-item { border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 12px 30px #46252a10; }
.home-course-link { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; position: relative; }
.home-course-image, .home-course-date-tile, .catalog-card-heading .catalog-poster { width: 100%; height: auto; aspect-ratio: 1.47; border-radius: 0; object-fit: cover; }
.home-course-date-tile { background: var(--ink); }
.home-course-copy { display: grid; align-content: start; gap: 12px; padding: 24px; border-top: 5px solid var(--red); }
.home-course-grid li:nth-child(3n + 2) .home-course-copy { border-color: var(--ink); }
.home-course-grid li:nth-child(3n) .home-course-copy { border-color: #762d3d; }
.home-course-copy strong { font-size: 25px; }
.home-course-copy time { position: absolute; top: 16px; left: 16px; padding: 5px 12px; background: white; border-radius: 8px; font-weight: 600; color: var(--ink); }
.home-course-description { line-height: 1.55; color: var(--muted); }
.card-action, .section-action { color: var(--red); font-weight: 600; }
.section-action { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-underline-offset: 4px; }
.school-section { margin-block: clamp(36px, 5vw, 76px); }
.school-section h2 { font-size: clamp(30px, 3.1vw, 44px); }
.school-section-learning, .school-section-offers, .school-section-gift { padding: clamp(23px, 3.1vw, 40px); border-radius: var(--radius); }
.school-section-learning { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: clamp(30px, 6vw, 80px); background: var(--ink); color: white; }
.school-section-learning :is(.section-intro p, .section-action) { color: var(--cream); }
.section-items { display: grid; list-style: none; padding: 0; margin: 0; gap: 20px; }
.section-items h3 { font-size: 22px; }
.section-items p { margin-top: 8px; }
.school-section-offers { background: white; }
.school-section-offers .section-items { margin-top: 30px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.school-section-offers .section-items li + li { border-left: 1px solid var(--line); padding-left: 22px; }
.school-section-gift { display: flex; gap: 20px; justify-content: space-between; align-items: center; background: var(--cream); }
.school-section-gift h2 { font-size: 28px; }
.school-section-gift .section-items { display: flex; flex-wrap: wrap; }
.school-section-gift li a { color: var(--ink); }
.school-section-intro + .featured, .featured + .featured { background: #fff; color: var(--ink); border-top: 1px solid var(--line); }
.school-section-intro + .featured .date-stamp, .featured + .featured .date-stamp { color: var(--red); border-color: var(--line); }
.school-section-intro + .featured .light, .featured + .featured .light { background: var(--ink); color: white; }

.page-title { padding-block: clamp(36px, 4.8vw, 70px) 30px; }
.page-title h1, .info-header h1 { font-size: clamp(37px, 4.3vw, 60px); font-weight: 650; }
.catalog-intro { margin-top: 20px; max-width: 85ch; line-height: 1.7; }
.catalog-results { align-items: stretch; }
.catalog-item { display: flex; flex-direction: column; padding: 0 0 20px; }
.catalog-item > .catalog-details {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    min-height: 44px; margin-top: auto; padding: 10px 16px; border-radius: 8px;
    background: var(--red); color: white; font-weight: 650; text-decoration: none;
}
.catalog-details:hover, .catalog-details:focus-visible { text-decoration: underline; }
.catalog-item > :nth-last-child(2) { margin-bottom: 16px; }
.catalog-card-heading { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 0; }
.catalog-card-heading > div, .catalog-item > p, .catalog-item > a, .catalog-item > details, .catalog-item > .session-list { margin-inline: 24px; }
.catalog-card-heading > div { padding-top: 22px; }
.catalog-card-heading h2 { font-size: 25px; }
.catalog-card-heading h2 a { text-decoration: none; }
.catalog-card-heading h2 a:hover { text-decoration: underline; }
.catalog-card-heading .catalog-poster { flex: auto; margin: 0; border-bottom: 5px solid var(--red); }
.catalog-item:nth-child(3n + 2) .catalog-poster { border-color: var(--ink); }
.catalog-item:nth-child(3n) .catalog-poster { border-color: #762d3d; }
.catalog-card-heading .catalog-poster img { object-position: center; }
.catalog-promotion .school-promotion { width: 100%; margin-block: 25px; background: var(--ink); }
.catalog-promotion .button { background: var(--red); color: #fff; }
.info-page { max-width: 1200px; }
.info-header { padding-top: 4px; }
.info-content > :is(p, ul, ol) { max-width: 85ch; }
.footer-brand { flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-brand img { border-radius: 7px; padding: 6px; background: var(--canvas); }
.site-footer .footer-info ul { display: grid; gap: 0; }
@media (min-width: 769px) {
    .site-footer .shell { display: grid; grid-template-columns: 1fr 3fr; gap: 36px; align-items: start; }
}
@media (min-width: 769px) and (max-width: 1080px) {
    .header-row .primary-navigation-links { gap: 2px 6px; }
    .header-row nav a { font-size: 14px; }
    .header-row a.header-cta { margin: 0; padding-inline: 12px; }
    .brand, .brand img { width: 135px; }
    .home-course-grid, .catalog-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 48rem) {
    .header-row { min-height: 77px; }
    .brand, .brand img { width: 155px; }
    .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 32px 36px; }
    .hero-copy h1, .hero-copy h2 { font-size: clamp(40px, 8vw, 61px); }
    .hero .prose { font-size: 16px; margin-top: 20px; }
    .hero-actions:not(:empty) { margin-top: 23px; gap: 12px 22px; }
    .hero-actions a { font-size: 14px; }
    .hero-note { margin-top: 18px; }
    .hero-address { display: none; }
    .hero-portrait .hero-image { aspect-ratio: 1.16; }
    .hero-portrait::before { width: 33%; right: -9px; top: -12px; }
    .hero-portrait::after { left: -9px; height: 90px; bottom: 36px; }
    .hero-portrait figcaption { min-height: 66px; padding: 12px 15px; font-size: 14px; }
    .home-hero .hero-orbit { width: 29%; inset-block-start: -16px; inset-inline-end: -12px; }
    .school-promotion { grid-template-columns: auto 1fr; padding: 22px; gap: 16px; }
    .promotion-date { padding-inline-end: 16px; }
    .school-promotion .button { grid-column: 1 / -1; }
    .home-course-grid, .catalog-results, .school-section-learning, .school-section-offers .section-items { grid-template-columns: minmax(0, 1fr); }
    .school-section-offers .section-items li + li { border: 0; border-top: 1px solid var(--line); padding: 18px 0 0; }
    .school-section-gift { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 22rem) {
    .school-promotion { grid-template-columns: minmax(0, 1fr); }
    .promotion-date { justify-self: start; border: 0; }
}

/* On a course page the poster, the next date and the description keep their reading order on phones. */
.course-intro, .course-intro.has-poster {
    display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    align-items: start; gap: 32px clamp(24px, 3.5vw, 50px);
}
.course-intro-copy { grid-column: 1 / -1; }
.course-intro-copy .return-link { gap: 8px; margin-bottom: clamp(20px, 3.1vw, 42px); }
.course-intro .topic-paths { margin-top: 18px; }
.course-intro .course-poster { grid-column: 1; aspect-ratio: 1.45; width: 100%; max-width: none; }
.course-intro .next-course { grid-column: 2; grid-row: 2 / span 2; overflow-wrap: anywhere; }
.next-course h2 { font-size: clamp(24px, 2vw, 28px); }
.course-door-price { display: grid; gap: 2px; margin-top: 16px; }
.course-door-price strong { font-size: clamp(1.65rem, 2.2vw, 2rem); line-height: 1.12; font-variant-numeric: tabular-nums; }
.course-door-price span { font-size: .94rem; color: var(--muted); }
.next-course .event-facts { grid-template-columns: minmax(0, 1fr); margin-bottom: 0; }
.course-description { grid-column: 1; }
.course-description h2 { font-size: 24px; }
.course-description .prose { margin-top: 14px; }
.hero-copy h1, .hero-copy h2 { line-height: 1.095; }
.hero-actions .primary { padding-inline: 22px; }
.hero-portrait figcaption a { background: var(--red); }
.catalog-card-heading .catalog-poster img { display: block; width: 100%; height: 100%; }
@media (max-width: 48rem) {
    .course-intro, .course-intro.has-poster { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .course-intro .next-course, .course-intro-copy, .course-description { grid-column: 1; grid-row: auto; }
    .page-title h1, .info-header h1 { font-size: clamp(34px, 7vw, 54px); }
    .hero-copy h1, .hero-copy h2 { line-height: 1.06; }
    .hero-portrait .hero-image { object-position: center top; }
}

.site-header .brand img { max-height: 43px; object-fit: contain; object-position: left center; }
.school-signature img { max-height: 62px; object-fit: contain; object-position: left center; }
