/* ==========================================================================
   CD SECTIONS — Squarespace's content rhythm, plus the new pages' pieces
   ==========================================================================
   Rhythm (measured): every Squarespace block had 17px padding top and bottom,
   so consecutive blocks sit 34px apart; a page's content starts 96px below
   the header and ends 96px above the footer strip.

   .narrow          the 8-of-12 column Squarespace used on Contact, Donate and
                    Walk-A-Thon (626px)
   .media-row       image beside text (About): a .row of col-1-3 + col-2-3
   .video           a responsive 16:9 embed (the Facebook video)
   .photo-grid      the 2-up square photo grid (Home gallery): 500px squares,
                    20px gap at full width
   .donate-form     the PayPal hosted-button forms
   .qr              the donation QR code, at Squarespace's size
   .week-picto      the week as a pictograph (About)
   .icon-card       a card led by an icon (.is-dark for the campus card); ul.checks
   .data-table      tuition/fee tables and the comparison table
   .school-dates    the year's important dates (Home, included on Enrollment)
   .callout         a soft band for a closing call to action
   .pill-list       a wrapped list of short items (areas served)
   ========================================================================== */

#container { padding-top: 96px; }
.container_inside { padding-bottom: 96px; }
@media (max-width: 640px) {
    #container { padding-top: 40px; }
    .container_inside { padding-bottom: 64px; }
}

/* Block rhythm: 34px between elements in an article */
#main .mod_article > * + *,
#main .content-element-group:not(.row) > * + * { margin-top: 34px; }   /* a .row's columns sit side by side: no rhythm between them */
#main .mod_article + .mod_article:not(.banner) { margin-top: 34px; }
#main .content-text > :last-child { margin-bottom: 0; }

#main .content-image figure,
#main .content-image { margin-inline: 0; }
#main .content-image img { display: block; max-width: 100%; height: auto; }

.narrow {
    max-width: 626px;           /* Squarespace's 8-of-12 column on a 956px page */
    margin-inline: auto;
}

/* The centred logo on Home (421px wide on the old site), 85px below the
   photo and ~90px above the intro, as measured */
.cd-logo img { margin-inline: auto; width: 421px; }
#main .mod_article > .cd-logo { margin-block: 85px 90px; }
@media (max-width: 640px) { #main .mod_article > .cd-logo { margin-block: 34px; } }

/* The old site's list-of-dates and link lists are 32px light (.t-lg); the
   bullets sit 40px in */
ul.t-lg { padding-inline-start: 40px; }
ul.t-lg li { margin-bottom: 16px; }

/* Media rows */
.media-row { align-items: start; }
.media-row img { width: 100%; height: auto; }

/* Video */
.video iframe,
.video .video-frame {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
}

/* Photo grid (Contao gallery element) */
.photo-grid ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.photo-grid li { margin: 0; }
.photo-grid figure { margin: 0; }
.photo-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}
@media (max-width: 640px) { .photo-grid ul { gap: 10px; } }

/* PayPal */
.dark-links a { color: var(--accent); }
.donate-form form { margin: 12px 0 24px; }
.donate-form input[type="image"] { border: 0; }
.qr img { width: 140px; }
.qr figcaption { margin-top: 8px; font-size: 14px; line-height: 1.25; max-width: 140px; }
.qr--center figure { display: flex; flex-direction: column; align-items: center; }
.qr--center img { margin-inline: auto; }
.qr--center figcaption { text-align: center; }
/* a data table inside an FAQ answer */
.faq .data-table { margin: 12px 0 16px; }

/* WEEK PICTOGRAPH — the five school days as icons on a line: campus days a
   filled dark circle (school), home days an outlined circle (house).
   Markup: ul.week-picto > li.campus|li.home > span.day + img.icon + span.where (+ span.time)
   The icons are files/structure/images/icons/*.svg (campus-light.svg is the
   white version for the dark circle). The connecting line is the list's ::before, behind the circles. */
.week-picto {
    --dot: clamp(56px, 8vw, 96px);
    position: relative;
    margin-top: 28px !important;   /* beats the paragraph reset below the heading */
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
}
.week-picto::before {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    top: calc(28px + var(--dot) / 2);
    border-top: 2px dashed var(--stroke);
}
.week-picto li { position: relative; margin: 0; }
.week-picto .day {
    display: block;
    height: 28px;
    font-family: var(--type-display);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.week-picto .icon {
    display: block;
    width: var(--dot);
    height: var(--dot);
    margin: 0 auto 12px;
    padding: calc(var(--dot) * 0.2);
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--white);
}
.week-picto .campus .icon { background: var(--accent); }
.week-picto .where {
    display: block;
    font-family: var(--type-display);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.week-picto .time { display: block; font-size: 13px; color: var(--text-muted); }


/* DAY CARDS / PARTNER CARDS — an icon, a heading, a few friendly lines */
.row > .icon-card { align-self: stretch; }   /* side-by-side cards share one height (no height:100%: a % height blocks the stretch) */
.icon-card {
    padding: 32px 30px;
    border: 1px solid var(--stroke);
    background: var(--white);
}
.icon-card.is-dark {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-on-dark);
}
.icon-card.is-dark h3, .icon-card.is-dark .label { color: var(--white); }
.icon-card.is-dark img { filter: brightness(0) invert(1); }   /* the icon, white */
.icon-card img { display: block; width: 52px; height: 52px; margin-bottom: 16px; }
.icon-card h3 { margin-bottom: 4px; }
.icon-card .sub {
    margin-bottom: 14px;
    font-size: 14px;
    opacity: 0.75;
}
.icon-card p:last-child { margin-bottom: 0; }

/* A list with check marks instead of bullets */
ul.checks { margin: 0; padding: 0; list-style: none; }
ul.checks li { position: relative; margin-bottom: 10px; padding-left: 30px; }
ul.checks li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.35em;
    width: 14px;
    height: 8px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}

.partner-head { margin-bottom: 8px; }

@media (max-width: 640px) {
    .week-picto .day { font-size: 12px; letter-spacing: 2px; }
    .week-picto .where { font-size: 10px; letter-spacing: 1px; }
    .week-picto .time { display: none; }
    .icon-card { padding: 26px 22px; }
}

/* DATA TABLES */
.data-table { overflow-x: auto; }
.data-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}
.data-table caption {
    margin-bottom: 12px;
    text-align: left;
    font-family: var(--type-display);
    font-size: 18px;
    letter-spacing: 4px;
    text-transform: uppercase;
}
.data-table th,
.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--stroke);
    text-align: left;
    vertical-align: top;
}
.data-table thead th {
    font-family: var(--type-display);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--text);
}
.data-table td.num,
.data-table th.num { text-align: right; white-space: nowrap; }
.data-table tbody th { font-weight: 400; }

/* SCHOOL DATES — one element (Home), included on Enrollment: a centred
   table at the narrow column's width, "No school" days tagged */
.school-dates table { max-width: 626px; margin-inline: auto; }
.school-dates tbody th { white-space: nowrap; width: 40%; }
.school-dates .no-school {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    border: 1px solid var(--stroke);
    font-family: var(--type-display);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    vertical-align: 2px;
}
.school-dates table + p { margin-top: 28px; }
@media (max-width: 640px) {
    .school-dates tbody th { white-space: normal; }
    .school-dates th, .school-dates td { padding: 10px 8px; }
}

/* CALLOUT — a soft closing band */
.callout {
    padding: 48px 40px;
    background: var(--grey-light);
    text-align: center;
}
.callout .btn, .callout a.btn { margin: 8px 6px 0; }
.icon-card.is-dark a { color: var(--white); text-decoration: underline; }

/* PILL LIST */
.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pill-list li {
    margin: 0;
    padding: 6px 14px;
    border: 1px solid var(--stroke);
    font-size: 15px;
}

/* FAQ — the accordion in the old site's type */
.faq .handorgel__header__button {
    font-family: var(--type-display);
    font-size: 22px;
    font-weight: 400;
    color: var(--text);
}

/* A text element that is only a rule: 66px either side once the rhythm's 34px is added */
#main .content-text > hr:only-child { margin: 32px 0; }

/* ENROLL STEPS — a numbered list of steps, each a heading and a line or two;
   the number sits in a dark circle (Enrollment) */
ol.enroll-steps {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}
ol.enroll-steps > li {
    position: relative;
    margin: 0 0 30px;
    padding-left: 64px;
    counter-increment: step;
}
ol.enroll-steps > li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: -4px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    font-family: var(--type-display);
    font-size: 20px;
    line-height: 44px;
    text-align: center;
}
ol.enroll-steps h3 { margin-bottom: 6px; }
ol.enroll-steps p { margin: 0; }
