/* School crest theme: navy, maroon and gold from the St. Mary's crest, with a traditional serif for headings.
   Loaded after website.css and website-playful.css, so it re-colours every public page; the cr- classes
   lay out the new home and admissions pages. */
:root {
  --blue: #14285c;          /* links, eyebrows, accents (was teal) */
  --navy: #0e1d45;          /* footer, top bar, dark bands */
  --sky: #eef1f8;           /* soft tinted sections */
  --gold: #c99a2e;          /* crest gold: rules and highlights */
  --gold-light: #e2b85a;    /* gold on navy */
  --pink: #8a1c2b;          /* buttons: crest maroon (the old theme calls it "pink") */
  --maroon-dark: #6b1420;
  --ink: #1b2233;
  --muted: #5d6475;
  --line: #e3e0d8;
  --cream: #faf7f0;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', 'Segoe UI', Arial, sans-serif;
}

body.public-site { background: var(--cream); color: var(--ink); }
:where(body.public-site) :is(h1, h2, h3) { font-family: var(--serif); font-weight: 650; letter-spacing: -0.01em; color: var(--blue); }
body.public-site h1, body.public-site h2, body.public-site h3 { font-weight: 650; letter-spacing: -0.01em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Buttons */
.button { background: var(--pink); border-color: var(--pink); color: #fff; border-radius: 4px; }
.button:hover { background: var(--maroon-dark); border-color: var(--maroon-dark); color: #fff; }
.button-light { background: #fff; color: var(--pink); border-color: #fff; }
.button-light:hover { background: var(--cream); color: var(--maroon-dark); }
.cr-button-outline { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border: 2px solid var(--blue); border-radius: 4px; color: var(--blue); font-weight: 700; text-decoration: none; }
.cr-button-outline:hover { background: var(--blue); color: #fff; }
.cr-button-gold { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border: 2px solid var(--gold-light); border-radius: 4px; color: #fff; font-weight: 700; text-decoration: none; }
.cr-button-gold:hover { background: var(--gold-light); color: var(--navy); }

/* Top bar and header */
.school-topbar { background: var(--navy); color: #e8ecf6; font-size: 14px; }
.school-topbar a { color: var(--gold-light); font-weight: 500; text-decoration: none; }
.school-topbar a:hover { text-decoration: underline; }
.cr-topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-block: 8px; }
.cr-topbar-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-header { background: #fff; border-bottom: 3px solid var(--gold); }
.school-brand strong { font-family: var(--serif); font-weight: 650; color: var(--blue); }
.school-brand small { color: var(--pink); font-weight: 700; }
.nav-parent.active, .public-nav .nav-parent[aria-current="page"] { color: var(--blue); border-bottom-color: var(--gold); }
.nav-disclosure .nav-dropdown { background: #fff; border: 1px solid var(--line); border-radius: 0 0 6px 6px; }

/* Shared page pieces re-coloured from the playful theme */
.page-hero { background: var(--blue); border-radius: 0; }
.page-hero h1, .page-hero h2 { color: #fff; }
.page-hero p, .page-hero .cms-copy { color: #d6dcec; }
.page-hero .eyebrow { color: var(--gold-light); }
.eyebrow { color: var(--pink); letter-spacing: 0.14em; }
.exact-hero { background-image: none; }
.exact-hero .hero-media, .page-photo img, .cause-photo { border-radius: 6px; }
.exact-values article, .exact-values article:nth-child(2), .exact-values article:nth-child(3) { background: #fff; border: 1px solid var(--line); }
.programme-split article > div, .programme-split article:nth-child(2) > div { background: #fff; }
.causes-section, .teacher-strip, .gallery-home, .dual-cta { background: var(--cream); }
.testimonial, .gallery-page figure { background: var(--sky); }
.dual-cta article + article { background: var(--pink); }
.campaign-panel { border-color: var(--line); }
.image-caption { color: var(--muted); }
.facilities-rail-section { border-radius: 0; }
.facilities-rail span { background: rgba(14, 29, 69, 0.9); }
.filter-chip { border-radius: 4px; }
.cta-band { background: var(--navy); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6dcec; }

/* Footer */
.site-footer { background: var(--navy); border-radius: 0; border-top: 4px solid var(--gold); }
.site-footer h2 { color: #fff; font-family: var(--sans); font-size: 16px; font-weight: 700; letter-spacing: 0; }
.site-footer div > span, .site-footer p, .footer-grid > div > a:not(.button) { color: #d6dcec; }
.site-footer .footer-brand strong { font-family: var(--serif); color: #fff; }
.site-footer .footer-brand em { color: var(--gold-light); font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; font-size: 13px; }
.footer-brand img { background: #fff; border-radius: 6px; padding: 4px; }

/* ============ New home page ============ */
.cr-section { padding-block: 72px; }
.cr-section.white { background: #fff; border-block: 1px solid var(--line); }
.cr-section.tint { background: var(--sky); }
.cr-head { display: flex; flex-direction: column; gap: 10px; max-width: 680px; margin-bottom: 32px; }
.cr-head h2 { margin: 0; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; }
.cr-head p { margin: 0; color: var(--muted); }
.cr-head-row { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: end; margin-bottom: 28px; }
.cr-head-row .cr-head { margin-bottom: 0; }

.cr-hero { background: var(--blue); color: #fff; }
.cr-hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px; align-items: center; padding-block: 56px; }
.cr-hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.cr-hero .eyebrow { color: var(--gold-light); }
.cr-hero h1 { margin: 0; color: #fff; font-size: clamp(36px, 5vw, 58px); line-height: 1.08; text-wrap: balance; }
.cr-hero p { margin: 0; color: #d6dcec; font-size: 18px; max-width: 34em; }
.cr-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cr-hero-note { color: var(--gold-light); font-size: 14px; }
.cr-hero-photo { margin: 0; min-width: 0; }
.cr-hero-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; border: 4px solid var(--gold); }

.cr-facts { background: #fff; border-bottom: 1px solid var(--line); }
.cr-facts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; padding-block: 28px; }
.cr-fact { display: flex; flex-direction: column; gap: 2px; border-left: 3px solid var(--gold); padding-left: 14px; }
.cr-fact strong { font-family: var(--serif); font-size: 30px; font-weight: 650; color: var(--blue); line-height: 1.2; }
.cr-fact span { font-size: 14px; color: var(--muted); }

.cr-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.cr-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.cr-card h3 { margin: 0; font-size: 20px; }
.cr-card p { margin: 0; color: var(--muted); font-size: 15px; }
.cr-icon { width: 32px; height: 32px; color: var(--pink); }

.cr-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 32px; }
.cr-programme { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cr-programme img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; display: block; }
.cr-programme h3 { margin: 0; font-size: 28px; }
.cr-programme p { margin: 0; color: var(--muted); }
.cr-link { color: var(--pink); font-weight: 700; text-decoration: none; }
.cr-link:hover { text-decoration: underline; }

.cr-welcome { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px; align-items: center; }
.cr-welcome img { width: 100%; max-height: 460px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; display: block; }
.cr-welcome blockquote { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.cr-welcome blockquote p { margin: 0; font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; color: var(--blue); }
.cr-welcome cite { font-style: normal; display: flex; flex-direction: column; }
.cr-welcome cite b { color: var(--ink); }
.cr-welcome cite span { color: var(--muted); font-size: 15px; }

.cr-news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.cr-news { background: #fff; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 1px solid var(--line); }
.cr-news img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.cr-news div { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.cr-news small { color: var(--pink); font-weight: 700; font-size: 13px; }
.cr-news h3 { margin: 0; font-size: 19px; }
.cr-news p { margin: 0; color: var(--muted); font-size: 15px; }
.cr-news:hover h3 { text-decoration: underline; }
.cr-empty { background: #fff; border: 1px dashed var(--line); border-radius: 6px; padding: 24px; color: var(--muted); }

.cr-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; margin-top: 20px; }
.cr-quotes blockquote { margin: 0; background: #fff; border-radius: 6px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.cr-quotes blockquote p { margin: 0; font-family: var(--serif); font-size: 20px; color: var(--blue); }
.cr-quotes cite { color: var(--muted); font-size: 14px; font-style: normal; }

.cr-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: step; }
.cr-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; counter-increment: step; }
.cr-steps li::before { content: counter(step); width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.cr-steps b { color: var(--blue); }
.cr-steps span { display: block; color: var(--muted); font-size: 15px; }

.cr-pay { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cr-pay h3 { margin: 0; font-size: 24px; }
.cr-pay p { margin: 0; color: var(--muted); font-size: 15px; }
.cr-pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.cr-pay-grid div { background: var(--cream); border-radius: 4px; padding: 14px; }
.cr-pay-grid b { color: var(--blue); display: block; }
.cr-pay-grid span { font-size: 14px; color: var(--muted); }
.cr-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.cr-support { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px; align-items: center; }
.cr-support img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; display: block; }
.cr-support div { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cr-support h2 { margin: 0; font-size: clamp(26px, 3vw, 32px); }
.cr-support p { margin: 0; color: var(--muted); }

/* ============ Admissions page ============ */
.cr-admissions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px; align-items: start; }
.cr-admissions > * { min-width: 0; }
.cr-requirements { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--ink); }
.cr-requirements li::marker { color: var(--gold); }
.cr-form-wrap { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .cr-form-wrap { grid-template-columns: 1fr; } }
.cr-form-wrap .public-form { min-width: 0; }
.cr-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
@media (max-width: 900px) { .cr-side { position: static; } }
.cr-side .cr-pay { padding: 22px; }
.cr-faq { display: grid; gap: 10px; max-width: 820px; }
.cr-faq details { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 14px 18px; }
.cr-faq summary { font-weight: 700; color: var(--blue); cursor: pointer; }
.cr-faq p { margin: 10px 0 0; color: var(--muted); }
.public-form .button[disabled] { opacity: 0.55; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.page-photo img { object-position: 50% 22%; }

/* Header brand: crest plus name and subtitle on single lines */
.site-header .school-brand { flex: 0 0 auto; min-width: 0; gap: 14px; }
.site-header .school-brand img { width: 66px; height: 66px; object-fit: contain; }
.site-header .school-brand strong { max-width: none; white-space: nowrap; font-size: 22px; line-height: 1.15; }
.site-header .school-brand small { white-space: nowrap; font-size: 11.5px; letter-spacing: .1em; margin-top: 3px; }
@media (max-width: 1280px) { .site-header .school-brand strong { font-size: 19px; } .site-header .school-brand img { width: 56px; height: 56px; } }
@media (max-width: 520px) { .site-header .school-brand strong { font-size: 17px; } .site-header .school-brand img { width: 46px; height: 46px; } .site-header .school-brand small { font-size: 10px; letter-spacing: .06em; } }
.nav-disclosure > summary { width: 26px; color: var(--muted); }
.nav-disclosure > summary svg { display: block; transition: transform .15s; }
.nav-disclosure[open] > summary svg { transform: rotate(180deg); }
.skip-link:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; padding: 0; }

/* ---------- Inner pages: split hero, feature rows, card grids, statements ---------- */
.cr-page-hero .cr-hero-grid { padding-block: 48px; }
.cr-page-hero h1 { font-size: clamp(32px, 4.2vw, 50px); }
.cr-page-hero.no-photo .cr-hero-grid { grid-template-columns: 1fr; }
.cr-page-hero.no-photo .cr-hero-copy { max-width: 760px; }
.cr-hero-photo figcaption { font-size: 12px; color: #c9d1e6; margin-top: 6px; }

.cr-features { display: grid; gap: 64px; }
.cr-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.cr-feature:nth-child(even) > figure { order: 2; }
.cr-feature figure { margin: 0; }
.cr-feature img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; box-shadow: 0 12px 30px rgba(14, 29, 69, .12); }
.cr-feature h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 6px 0 12px; }
.cr-feature p { color: var(--muted); margin: 0 0 14px; font-size: 17px; }
@media (max-width: 820px) {
    .cr-features { gap: 40px; }
    .cr-feature { grid-template-columns: 1fr; gap: 18px; }
    .cr-feature:nth-child(even) > figure { order: 0; }
}

.cr-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.cr-photo-card { flex: 0 1 calc((100% - 48px) / 3); background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 6px 18px rgba(14, 29, 69, .05); }
.cr-photo-card figure { margin: 0; }
.cr-photo-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cr-photo-card > div { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cr-photo-card h3 { font-size: 21px; margin: 0; }
.cr-photo-card p { color: var(--muted); margin: 0; font-size: 15px; }
.cr-photo-card .cr-link { margin-top: auto; padding-top: 8px; }
@media (max-width: 980px) { .cr-photo-card { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 620px) { .cr-photo-card { flex-basis: 100%; } }
.cr-feature figcaption, .cr-photo-card figcaption { font-size: 12px; color: var(--muted); padding: 6px 10px; background: var(--cream); }

.cr-statements { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.cr-statements article { flex: 1 1 260px; max-width: 380px; background: #fff; border-top: 4px solid var(--gold); border-radius: 6px; padding: 24px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 6px 18px rgba(14, 29, 69, .05); }
.cr-statements h3 { font-size: 21px; margin: 0; }
.cr-statements p { color: var(--muted); margin: 0; font-size: 15px; }
.cr-statements .cr-link { margin-top: auto; padding-top: 6px; }

/* ---------- Photo gallery with category filters and a full-screen viewer ---------- */
.cr-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.cr-filters button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; font-size: 14px; color: var(--ink); cursor: pointer; }
.cr-filters button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.cr-filters small { opacity: .7; margin-left: 4px; }
.cr-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.cr-gallery button { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in; background: var(--sky); aspect-ratio: 4 / 3; }
.cr-gallery button[hidden] { display: none; }
.cr-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cr-gallery button:hover img, .cr-gallery button:focus-visible img { transform: scale(1.05); }
.cr-gallery button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.cr-gallery button > span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(9, 18, 45, .86)); color: #fff; font-weight: 600; font-size: 14px; text-align: left; line-height: 1.3; }
.cr-gallery-count { color: var(--muted); font-size: 14px; margin: -12px 0 18px; }
@media (max-width: 560px) { .cr-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .cr-gallery button > span { font-size: 12px; padding: 22px 8px 8px; } }

.cr-lightbox { width: min(1200px, 96vw); max-width: none; max-height: 96vh; padding: 0; border: 0; border-radius: 10px; background: #0b1430; color: #fff; overflow: hidden; }
.cr-lightbox::backdrop { background: rgba(5, 10, 25, .9); }
.cr-lightbox figure { margin: 0; position: relative; background: #000; }
.cr-lightbox img { display: block; width: 100%; max-height: 80vh; object-fit: contain; }
.cr-lightbox figcaption { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; font-weight: 600; background: #0b1430; }
.cr-lightbox figcaption small { color: #c9d1e6; font-weight: 500; white-space: nowrap; }
.cr-lightbox-nav, .cr-lightbox-close { position: absolute; border: 0; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--navy); font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cr-lightbox-nav { top: calc(50% - 23px); }
.cr-lightbox-nav.prev { left: 12px; } .cr-lightbox-nav.next { right: 12px; }
.cr-lightbox-close { top: 12px; right: 12px; z-index: 2; }
.cr-lightbox-nav:focus-visible, .cr-lightbox-close:focus-visible { outline: 3px solid var(--gold); }
/* Images carry width/height attributes for layout stability; let CSS aspect ratios decide the height. */
.cr-hero-photo img, .cr-feature img, .cr-photo-card img, .cr-gallery img, .cr-lightbox img, .cr-programme img, .cr-news img, .cr-support img, .cr-welcome img { height: auto; }
.cr-gallery img { height: 100%; }
.cr-page-hero .cr-hero-photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.cta-band .button, .cta-band a { white-space: nowrap; }
body.public-site dialog.cr-lightbox { width: min(1200px, 96vw); max-width: 96vw; padding: 0; border-radius: 10px; }
body.public-site dialog.cr-lightbox img { max-height: 80vh; width: 100%; }

/* ---------- Donor projects ---------- */
.cr-gift-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.cr-gift { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: #fff; border-radius: 8px; border-top: 4px solid var(--gold); text-decoration: none; color: var(--ink); box-shadow: 0 6px 18px rgba(14, 29, 69, .06); transition: transform .2s; }
.cr-gift:hover { transform: translateY(-3px); }
.cr-gift strong { font-family: var(--serif); font-size: 34px; color: var(--pink); line-height: 1; }
.cr-gift span { font-weight: 600; font-size: 15px; }
.cr-gift small { color: var(--muted); font-size: 13px; margin-top: auto; }

.cr-project-card figure { position: relative; }
.cr-project-card[hidden] { display: none; }
.cr-tag { position: absolute; top: 12px; left: 12px; background: rgba(14, 29, 69, .88); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.cr-project-card h3 a { color: inherit; text-decoration: none; }
.cr-project-card h3 a:hover { text-decoration: underline; }
.cr-progress { height: 10px; background: var(--sky); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.cr-progress i { display: block; height: 100%; min-width: 4px; background: linear-gradient(90deg, var(--gold), #16805a); border-radius: 999px; }
.cr-progress-text { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--muted); }
.cr-progress-text b { color: var(--ink); }
.cr-progress-text span { margin-left: auto; font-weight: 700; color: #16805a; }
.cr-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; padding-top: 10px; }

.cr-accountable { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.cr-accountable h2 { margin: 8px 0 12px; font-size: clamp(26px, 3vw, 34px); }
.cr-accountable p { color: var(--muted); margin: 0; }
.cr-accountable-figures { display: grid; gap: 12px; }
.cr-accountable-figures div { background: #fff; border-radius: 8px; padding: 16px 20px; border-left: 4px solid var(--blue); }
.cr-accountable-figures small { display: block; color: var(--muted); font-weight: 600; }
.cr-accountable-figures strong { font-size: 24px; color: var(--ink); }
@media (max-width: 820px) { .cr-accountable { grid-template-columns: 1fr; gap: 20px; } }
.cr-safe-note { color: var(--muted); font-size: 14px; margin: 18px 0 0; text-align: center; }

.cr-project-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 48px; align-items: start; }
.cr-project-story h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 36px 0 14px; }
.cr-project-story h2:first-of-type { margin-top: 8px; }
.cr-project-story > p { color: var(--muted); font-size: 17px; }
.cr-give-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.cr-give { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--cream); }
.cr-give strong { font-family: var(--serif); font-size: 32px; color: var(--pink); line-height: 1; }
.cr-give span { font-weight: 600; }
.cr-give small { color: var(--muted); }
.cr-give .button { margin-top: auto; align-self: flex-start; }
.cr-spend-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; }
.cr-spend-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.cr-spend-list li:last-child { border-bottom: 0; }
.cr-spend-list small { display: block; color: var(--muted); font-size: 13px; }
.cr-spend-list li > span:last-child { font-weight: 700; white-space: nowrap; }
.cr-funds-panel { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 10px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); box-shadow: 0 12px 30px rgba(14, 29, 69, .08); }
.cr-funds-big { font-family: var(--serif); font-size: 30px; color: var(--blue); margin: 0; line-height: 1.1; }
.cr-funds-sub { color: var(--muted); margin: 0; }
.cr-funds-facts { list-style: none; margin: 6px 0; padding: 0; }
.cr-funds-facts li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.cr-funds-panel .button, .cr-funds-panel .cr-button-outline { justify-content: center; }
.cr-share { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; align-self: flex-start; }
.cr-funds-note { color: var(--muted); font-size: 12px; }
@media (max-width: 900px) { .cr-project-layout { grid-template-columns: 1fr; } .cr-funds-panel { position: static; } }
