/* Charlie & Bella's Creations CIC, crayon and colouring-book styling.
   Self-contained, no build step. Linked directly from the public layout.
   Fonts are loaded in the layout head. */

:root {
    /* Crayon box palette. Each section borrows a colour so the page reads like
       a sheet of fresh crayons. */
    --crayon-yellow: #ffd93b;
    --crayon-sun: #ffb703;
    --crayon-red: #ff5d5d;
    --crayon-pink: #ff85c0;
    --crayon-blue: #4cc9f0;
    --crayon-green: #57cc99;
    --crayon-purple: #9b5de5;
    --crayon-orange: #ff8c42;

    --ink: #2b2b2b;
    --paper: #fffdf5;
    --paper-soft: #fff7e6;

    --font-display: 'Baloo 2', system-ui, sans-serif;
    --font-hand: 'Patrick Hand', 'Comic Sans MS', cursive;
    --font-body: 'Nunito', system-ui, sans-serif;

    --radius: 22px;
    --shadow-crayon: 4px 5px 0 rgba(43, 43, 43, 0.18);
}

* { box-sizing: border-box; }

body.cbcc-site {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    font-size: 18px;
    line-height: 1.6;
    /* faint paper grain */
    background-image: radial-gradient(rgba(43, 43, 43, 0.035) 1px, transparent 1px);
    background-size: 22px 22px;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; font-weight: 800; }

/* Crayon-textured headings: a soft wobble via the shared SVG filter. */
.crayon-text { filter: url(#crayon-rough); }

.wrap { width: min(1120px, 92vw); margin-inline: auto; }

/* Buttons shaped like rounded crayon pills with a hand-drawn offset shadow. */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
    padding: 14px 26px; border-radius: 999px; border: 3px solid var(--ink);
    background: #fff; color: var(--ink); cursor: pointer;
    text-decoration: none; box-shadow: var(--shadow-crayon);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(-1px, -2px); box-shadow: 6px 8px 0 rgba(43, 43, 43, 0.2); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(43, 43, 43, 0.2); }
.btn--primary { background: var(--crayon-red); color: #fff; }
.btn--secondary { background: var(--crayon-blue); }
.btn--bid { background: var(--crayon-green); color: #fff; }
.btn--ghost { background: transparent; box-shadow: none; }

/* ---- Navigation ---- */
.nav {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0; background: rgba(255, 253, 245, 0.92);
    backdrop-filter: blur(6px); border-bottom: 3px dashed var(--crayon-sun);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: min(1120px, 92vw); }
.nav__brand { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; text-decoration: none; color: var(--ink); }
.nav__links { display: flex; gap: 14px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
@media (min-width: 861px) and (max-width: 1080px) { .nav__links { gap: 10px; } .nav__links a { font-size: 0.88rem; } }
.nav__links a:hover { color: var(--crayon-red); }

.hamburger {
    display: none; flex-direction: column; gap: 5px; background: none;
    border: none; cursor: pointer; padding: 8px; z-index: 60;
}
.hamburger span { width: 28px; height: 4px; background: var(--ink); border-radius: 4px; transition: transform 0.2s ease, opacity 0.2s ease; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 860px) {
    .hamburger { display: flex; }
    .nav .wrap { position: relative; flex-wrap: wrap; }
    .nav__links {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; margin: 0; padding: 0;
        max-height: 0; overflow: hidden;
        border: 0;
        transition: max-height 0.28s ease, border-width 0.2s ease;
        z-index: 50; box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        list-style: none;
    }
    .nav__links.is-open {
        max-height: 80vh;
        border-top: 3px solid var(--ink);
        border-bottom: 3px solid var(--ink);
    }
    .nav__links li { list-style: none; width: 100%; }
    .nav__links a {
        display: block; padding: 14px 22px; font-size: 1.05rem;
        border-bottom: 1px dashed rgba(28,28,28,0.08);
        position: relative;
    }
    .nav__links li:last-child a { border-bottom: none; }
    .nav__links a.is-active { background: var(--crayon-yellow); }
    .nav__links a.is-active::before { display: none; }
}
/* ---- Mobile footer polish ---- */
@media (max-width: 640px) {
    .site-footer { padding: 28px 16px; }
    .site-footer .wrap { width: 100%; max-width: 100%; padding: 0; }
    .site-footer p { font-size: 0.92rem; line-height: 1.45; margin: 2px 0; }
    .footer-links { gap: 6px 12px; flex-wrap: wrap; justify-content: center; padding: 0 8px; }
    .footer-links a { font-size: 0.92rem; padding: 6px 10px; white-space: nowrap; }
    .footer-disclaimer { font-size: 0.76rem; padding: 0 12px; line-height: 1.45; }
    .powered-pill { font-size: 0.72rem; padding: 6px 10px; }
    /* Make sure floating donate pill does not cover footer content */
}

/* ---- Hero ---- */
.hero { background: var(--crayon-yellow); padding: 70px 0 90px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; gap: 30px; justify-items: center; text-align: center; }
.hero__eyebrow { font-family: var(--font-hand); font-size: 1.4rem; color: var(--ink); margin: 0; }
.hero__heading { font-size: clamp(2.4rem, 6vw, 4.2rem); margin: 0; }
.hero__text { max-width: 640px; font-size: 1.2rem; margin: 0; }
.hero__buttons { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* The brand logo sits in a white card with a crayon-blended, hand-torn edge so
   it reads as coloured in rather than dropped into a box. */
.hero__logo {
    background: #fff; padding: 22px; max-width: 560px; width: 100%;
    border: 4px solid var(--ink); box-shadow: var(--shadow-crayon);
    filter: url(#crayon-rough);
    border-radius: 30px 24px 32px 22px / 24px 30px 22px 32px;
}
.hero__logo img { display: block; width: 100%; height: auto; }

/* ---- Paint-flow dividers between sections ---- */
.flow {
    display: block; width: 100%; height: 70px; margin-top: -1px;
    line-height: 0;
}
.flow svg { display: block; width: 100%; height: 100%; }

/* ---- Section shells, each tinted ---- */
.section { padding: 64px 0; }
.section--stats { background: var(--paper-soft); }
.section--what { background: var(--crayon-blue); }
.section--team { background: var(--paper); }
.section--charity { background: var(--crayon-green); color: #fff; }
.section--auction { background: var(--crayon-pink); }
.section--gallery { background: var(--paper-soft); }
.section--wellbeing { background: var(--crayon-purple); color: #fff; }
.section--blog { background: var(--paper); }
.section--donate { background: var(--crayon-orange); }
.section__heading { font-size: clamp(2rem, 4.5vw, 3rem); text-align: center; margin: 0 0 12px; }
.section__intro { text-align: center; max-width: 680px; margin: 0 auto 36px; }

/* Belief quote band */
.belief { text-align: center; padding: 46px 0; background: var(--crayon-sun); }
.belief p { font-family: var(--font-hand); font-size: clamp(1.4rem, 3.4vw, 2.2rem); max-width: 760px; margin: 0 auto; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { text-align: center; padding: 24px; background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-crayon); }
.stat__value { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: var(--crayon-red); }
.stat__label { font-weight: 700; }

/* Cards (people, gallery) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.crew-card, .gallery-tile, .lot-card {
    background: #fff; border: 3px solid var(--ink); border-radius: var(--radius);
    box-shadow: var(--shadow-crayon); overflow: hidden;
}
.crew-card { text-align: center; }
.crew-card img, .gallery-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.crew-card__body { padding: 16px; }
.crew-card__name { font-family: var(--font-display); font-weight: 800; margin: 0 0 4px; }
.crew-card__role { font-family: var(--font-hand); margin: 0 0 8px; color: var(--crayon-purple); }
.crew-card__placeholder, .lot-card__placeholder {
    display: grid; place-items: center; aspect-ratio: 1;
    font-family: var(--font-display, sans-serif); font-weight: 800; font-size: 2.4rem;
    letter-spacing: 1px; text-transform: uppercase; color: var(--ink);
    background: repeating-linear-gradient(45deg, var(--paper-soft), var(--paper-soft) 14px, #fff 14px, #fff 28px);
}

/* Auction lots */
.lot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.lot-card__image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.lot-card__body { padding: 18px; }
.lot-card__title { margin: 0 0 4px; }
.lot-card__artist { font-family: var(--font-hand); margin: 0 0 8px; color: var(--crayon-purple); }
.lot-card__desc { font-size: 0.95rem; margin: 0 0 12px; }
.lot-card__bid { display: flex; flex-direction: column; margin: 0 0 14px; }
.lot-card__bid-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.lot-card__bid-amount { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--crayon-green); }
.lot-card__confirm { background: var(--crayon-green); color: #fff; padding: 8px 12px; border-radius: 12px; font-weight: 700; }

.bid-form { display: grid; gap: 10px; margin-top: 8px; }
.bid-form label { display: grid; gap: 4px; font-weight: 700; font-size: 0.9rem; }
.bid-form input { padding: 10px 12px; border: 2px solid var(--ink); border-radius: 12px; font: inherit; }
.bid-form__error { color: var(--crayon-red); font-weight: 700; font-size: 0.85rem; }
.bid-form__actions { display: flex; gap: 10px; }
.bid-form__note { font-size: 0.8rem; color: #6b6b6b; margin: 4px 0 0; }

/* Charity split */
.split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 760px; margin: 0 auto; }
.split__item { text-align: center; background: rgba(255, 255, 255, 0.18); border: 3px solid #fff; border-radius: var(--radius); padding: 22px; }
.split__pct { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; }

/* Donate */
.donate__amounts { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 22px 0; }
.donate form { display: inline; }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); padding: 40px 0; text-align: center; }
.site-footer a { color: var(--crayon-yellow); }
.powered-pill {
    display: inline-block; margin-top: 18px; padding: 8px 18px; border-radius: 999px;
    background: var(--crayon-pink); color: var(--ink); font-family: var(--font-display);
    font-weight: 700; text-decoration: none; border: 3px solid var(--paper);
}

/* Empty states */
.empty-note { text-align: center; font-family: var(--font-hand); font-size: 1.3rem; opacity: 0.8; }

@media (max-width: 700px) {
    .stats, .split { grid-template-columns: 1fr; }
}

/* ---- Nav: logo left (secret admin entry), links right ---- */
.nav .wrap { justify-content: space-between; }
.nav__logo { display: inline-flex; align-items: center; text-decoration: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.nav__logo img { height: 44px; width: auto; display: block; }
.nav__logo-fallback { display: none; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.nav__logo--text .nav__logo-fallback { display: inline; }

/* ---- Footer links and disclaimer ---- */
.footer-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 14px 0; }
.footer-links a { color: var(--crayon-yellow); font-weight: 700; text-decoration: none; }
.footer-disclaimer { font-size: 0.82rem; opacity: 0.8; max-width: 640px; margin: 8px auto 0; }

/* ---- Crayon pen-test scribbles around the hero logo ---- */
.hero__logo-wrap { position: relative; display: inline-block; }
.scribble { position: absolute; height: auto; pointer-events: none; overflow: visible; z-index: 1; }
.scribble path { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: url(#crayon-rough); }
.scribble--tl { width: 120px; top: -36px; left: -28px; }
.scribble--tr { width: 120px; top: -42px; right: -26px; }
.scribble--bl { width: 120px; bottom: -42px; left: -26px; }
.scribble--br { width: 130px; bottom: -36px; right: -28px; }
.scribble--l { width: 58px; top: 50%; left: -54px; transform: translateY(-50%); }
.scribble--r { width: 58px; top: 50%; right: -54px; transform: translateY(-50%); }
@media (max-width: 560px) {
    .scribble--l, .scribble--r { display: none; }
    .scribble--tl, .scribble--tr, .scribble--bl, .scribble--br { width: 88px; }
}

/* ---- Featured auction lots ---- */
.section__subheading { font-family: var(--font-display); font-size: 1.5rem; text-align: center; margin: 30px 0 16px; }
.lot-grid--featured .lot-card { border-color: var(--crayon-sun); box-shadow: 5px 6px 0 var(--crayon-sun); position: relative; }
.lot-grid--featured .lot-card::before {
    content: "Featured"; position: absolute; top: 10px; left: 10px; z-index: 2;
    background: var(--crayon-sun); color: var(--ink); font-family: var(--font-display);
    font-weight: 800; font-size: 0.75rem; padding: 4px 10px; border-radius: 999px; border: 2px solid var(--ink);
}

/* ---- Auction countdown ---- */
.lot-card__countdown { display: flex; flex-direction: column; margin: 0 0 12px; }
.countdown__label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.countdown__value { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--crayon-purple); }
.countdown.is-ended .countdown__value { color: var(--crayon-red); }
.lot-card__ended { font-family: var(--font-hand); font-size: 1.1rem; color: var(--crayon-red); margin: 6px 0 0; }

/* ---- Policy pages ---- */
.policy { max-width: 760px; }
.policy h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.policy h2 { font-family: var(--font-display); font-size: 1.4rem; margin: 28px 0 8px; }
.policy p { margin: 0 0 14px; }
.policy__meta { font-family: var(--font-hand); color: var(--crayon-purple); }
.policy a { color: var(--crayon-red); font-weight: 700; }

/* Floating Studio pill, bottom-right, fixed on scroll (restored preference) */
.powered-pill {
    position: fixed; right: 18px; bottom: 18px; z-index: 80;
    margin-top: 0; padding: 8px 16px; font-size: 0.85rem;
    border: 3px solid var(--ink); box-shadow: var(--shadow-crayon);
}
.powered-pill:hover { transform: translateY(-2px); }
@media (max-width: 560px) { .powered-pill { right: 10px; bottom: 10px; padding: 6px 12px; font-size: 0.78rem; } }

/* Placeholder ghost tiles */
.ph-grid{display:grid;gap:16px;grid-template-columns:repeat(3,1fr);margin:18px 0;}
.ph-card{border:3px dashed var(--crayon-purple);border-radius:14px;padding:26px 14px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px;opacity:.75;background:#fff;}
.ph-card__ico{font-size:2rem;}
.ph-card__txt{font-family:var(--font-display);font-weight:800;}
.ph-card__sub{font-family:var(--font-hand);font-size:.95rem;color:var(--crayon-purple);}
.ph-tile{aspect-ratio:1/1;border:3px dashed var(--crayon-sun);border-radius:12px;background:repeating-linear-gradient(45deg,#fff,#fff 10px,#fdf3df 10px,#fdf3df 20px);opacity:.7;}
@media(max-width:560px){.ph-grid{grid-template-columns:repeat(2,1fr);}}

/* ---- Featured page: teaser cards ---- */
.section--features { padding: 56px 0; }
.feature-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-width: 1080px;
    margin: 0 auto;
}
.feature-card {
    display: block;
    background: #fff;
    border: 3px solid var(--ink);
    border-radius: 22px;
    padding: 26px 22px;
    text-decoration: none;
    color: var(--ink);
    transition: transform .18s ease, box-shadow .18s ease;
    box-shadow: 5px 6px 0 var(--ink);
    position: relative;
    overflow: hidden;
}
.feature-card:hover, .feature-card:focus-visible {
    transform: translate(-2px, -3px);
    box-shadow: 7px 9px 0 var(--ink);
    outline: none;
}
.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.5) 100%);
    opacity: 0;
    transition: opacity .18s ease;
}
.feature-card:hover::before { opacity: 1; }
.feature-card__ico {
    font-size: 2.4rem;
    display: block;
    margin-bottom: 12px;
    line-height: 1;
}
.feature-card__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin: 0 0 10px;
    color: var(--ink);
}
.feature-card__text {
    font-size: 0.95rem;
    line-height: 1.45;
    opacity: 0.82;
    margin: 0 0 16px;
}
.feature-card__cta {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--crayon-red);
    font-size: 1rem;
}
/* Color variants: left edge tint by card */
.feature-card--c1 { border-color: var(--crayon-red); }
.feature-card--c1 .feature-card__cta { color: var(--crayon-red); }
.feature-card--c2 { border-color: var(--crayon-blue); }
.feature-card--c2 .feature-card__cta { color: var(--crayon-blue); }
.feature-card--c3 { border-color: var(--crayon-green); }
.feature-card--c3 .feature-card__cta { color: var(--crayon-green); }
.feature-card--c4 { border-color: var(--crayon-purple); }
.feature-card--c4 .feature-card__cta { color: var(--crayon-purple); }
.feature-card--accent {
    background: var(--crayon-sun, #fff5c2);
    border-color: var(--ink);
}
.feature-card--accent .feature-card__cta { color: var(--ink); }

/* Featured lot strip */
.section--featured-lot {
    padding: 56px 0;
    background: repeating-linear-gradient(45deg, #fff, #fff 22px, #fff8e7 22px, #fff8e7 44px);
}
.section--featured-lot .section__heading { margin-bottom: 8px; }

/* Closing CTA */
.section--closing { padding: 50px 0 70px; }

@media (max-width: 540px) {
    .feature-grid { grid-template-columns: 1fr; gap: 16px; }
    .feature-card { padding: 22px 18px; }
}

/* ---- Custom file input (no more Win95) ---- */
input[type="file"] {
    width: 100%;
    font-family: inherit;
    font-size: 0.95rem;
    border: 2px dashed var(--ink);
    border-radius: 14px;
    padding: 12px;
    background: #fff;
    cursor: pointer;
    transition: background .15s ease;
}
input[type="file"]:hover { background: #fff8e7; }
input[type="file"]::file-selector-button {
    background: var(--crayon-blue, #2e6df5);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    margin-right: 14px;
    transition: transform .12s ease, box-shadow .12s ease;
    box-shadow: 2px 3px 0 var(--ink);
}
input[type="file"]::file-selector-button:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 4px 0 var(--ink);
}
.nav__links a:hover { color: var(--crayon-red); transition: color .15s ease; }
.scribble-divider {
    display: block;
    width: 100%;
    max-width: 320px;
    height: 28px;
    margin: 0 auto 18px;
    opacity: 0.7;
}
@media (max-width: 720px) {
    .nav__links { gap: 12px; flex-wrap: wrap; justify-content: center; }
    .nav__links a { font-size: 0.92rem; padding: 4px 8px; }
}

/* ---- Money bag art for "Where the money goes" ---- */
.money-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    max-width: 900px;
    margin: 32px auto 0;
}
.money-card {
    background: #fff;
    border: 3px solid var(--ink);
    border-radius: 22px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 5px 6px 0 var(--ink);
    position: relative;
}
.money-card__bag { width: 78px; height: 78px; margin: 0 auto 14px; display: block; }
.money-card__percent { font-family: var(--font-display); font-size: 2.6rem; font-weight: 900; line-height: 1; color: var(--ink); margin: 0 0 6px; }
.money-card__label { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; margin: 0 0 8px; }
.money-card__desc { font-size: 0.92rem; opacity: 0.82; margin: 0; }
.money-card--creator { background: linear-gradient(135deg, #fff, #ffe7e1); }
.money-card--charity { background: linear-gradient(135deg, #fff, #e1f0ff); }
.money-card--admin { background: linear-gradient(135deg, #fff, #f3f3f3); }

/* ---- Auction info / how-it-works strip ---- */
.auction-info {
    background: linear-gradient(135deg, #fff8e7 0%, #fff 100%);
    border: 3px solid var(--ink);
    border-radius: 22px;
    padding: 28px 26px;
    margin: 32px auto;
    max-width: 880px;
    box-shadow: 5px 6px 0 var(--ink);
}
.auction-info h3 { font-family: var(--font-display); margin: 0 0 12px; font-size: 1.35rem; }
.auction-info__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-top: 18px;
}
.auction-info__step {
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: 14px;
    padding: 18px;
    text-align: center;
}
.auction-info__step-num {
    display: inline-block;
    width: 34px; height: 34px;
    line-height: 34px;
    border-radius: 50%;
    background: var(--crayon-red);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    margin-bottom: 10px;
}
.auction-info__step--2 .auction-info__step-num { background: var(--crayon-blue); }
.auction-info__step--3 .auction-info__step-num { background: var(--crayon-green); }
.auction-info__step--4 .auction-info__step-num { background: var(--crayon-purple); }
.auction-info__step h4 { font-family: var(--font-display); font-size: 1rem; margin: 0 0 6px; }
.auction-info__step p { font-size: 0.88rem; opacity: 0.82; margin: 0; }

/* Lot grid for /auction page */
.lot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    max-width: 1080px;
    margin: 32px auto;
}

/* Auction empty state */
.auction-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 3px dashed var(--ink);
    border-radius: 22px;
    max-width: 600px;
    margin: 32px auto;
}
.auction-empty__ico { font-size: 3rem; display: block; margin-bottom: 12px; }

/* ---- Lot card: tighter eBay-style sizing ---- */
.lot-card__image {
    height: 220px;
    overflow: hidden;
    background: #fafafa;
    position: relative;
}
.lot-card__image img {
    width: 100%;
    height: 220px !important;
    aspect-ratio: auto !important;
    object-fit: cover;
    display: block;
}
.lot-card__placeholder {
    height: 220px !important;
    width: 100%;
    aspect-ratio: auto !important;
    font-size: 3.5rem !important;
    display: grid;
    place-items: center;
}

/* ---- Stats: visual upgrade per stat with colour accents ---- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 880px; margin: 0 auto; }
.stat {
    text-align: center;
    padding: 30px 18px;
    background: #fff;
    border: 3px solid var(--ink);
    border-radius: 22px;
    box-shadow: 5px 6px 0 var(--ink);
    position: relative;
    transition: transform .18s ease;
}
.stat:hover { transform: translate(-2px, -3px); box-shadow: 7px 9px 0 var(--ink); }
.stat:nth-child(1) { background: linear-gradient(160deg, #fff 0%, #ffe7e1 100%); }
.stat:nth-child(2) { background: linear-gradient(160deg, #fff 0%, #e1f0ff 100%); }
.stat:nth-child(3) { background: linear-gradient(160deg, #fff 0%, #e6f5e1 100%); }
.stat:nth-child(1) .stat__value { color: var(--crayon-red); }
.stat:nth-child(2) .stat__value { color: var(--crayon-blue); }
.stat:nth-child(3) .stat__value { color: var(--crayon-green); }
.stat__value { font-size: 3.2rem !important; line-height: 1; margin-bottom: 8px; }
.stat__label { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.stat__doodle {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 26px;
    height: 26px;
    opacity: 0.5;
}

/* ---- Team: centred grid that stays centred as items added ---- */
.card-grid--centred {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}
.card-grid--centred > .crew-card {
    flex: 0 1 260px;
    max-width: 280px;
}

/* ---- Brand text in nav (replace logo image) ---- */
.nav__brand-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
    line-height: 1.1;
    cursor: pointer;
    user-select: none;
    transition: transform .15s ease;
    display: inline-block;
    padding: 4px 0;
}
.nav__brand-text:hover { transform: rotate(-1deg); }
.nav__brand-text .amp { color: var(--crayon-red); font-style: italic; }
.nav__brand-text .cic { font-size: 0.75em; opacity: 0.6; font-weight: 600; display: block; margin-top: -2px; letter-spacing: 0.04em; }

@media (max-width: 720px) {
    .stats { grid-template-columns: 1fr; }
    .nav__brand-text { font-size: 1.1rem; }
    .nav__brand-text .cic { font-size: 0.68em; }
}

/* ---- 5 feature cards in one row on wide screens ---- */
@media (min-width: 1000px) {
    .feature-grid {
        grid-template-columns: repeat(5, 1fr);
        max-width: 1180px;
    }
}
@media (min-width: 720px) and (max-width: 999px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- Closing CTA: scribbly background + richer feel ---- */
.section--closing {
    background:
        radial-gradient(circle at 12% 22%, rgba(255, 196, 0, 0.18) 0%, transparent 14%),
        radial-gradient(circle at 88% 24%, rgba(255, 102, 102, 0.16) 0%, transparent 14%),
        radial-gradient(circle at 18% 78%, rgba(102, 178, 255, 0.16) 0%, transparent 14%),
        radial-gradient(circle at 82% 80%, rgba(106, 196, 124, 0.16) 0%, transparent 14%),
        #fffdf6;
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}
.section--closing .crayon-text { font-size: 1.6rem !important; line-height: 1.3; }
.section--closing__scribbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
}
.section--closing__scribbles svg {
    position: absolute;
    fill: none;
    stroke-width: 3.5px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---- Section scribble divider between belief and what-we-do ---- */
.divider-scribble {
    display: block;
    margin: 8px auto;
    max-width: 240px;
}

/* ---- Money bags section padding for home ---- */
.section--money-home {
    background: linear-gradient(180deg, #fffdf6 0%, #fff8e0 100%);
    padding: 56px 0;
}

/* ---- Persistent donate strip in footer area ---- */
.donate-strip {
    background: linear-gradient(135deg, var(--crayon-sun, #ffe87a) 0%, #ffe2b8 100%);
    border-top: 3px solid var(--ink);
    border-bottom: 3px solid var(--ink);
    padding: 28px 0;
    text-align: center;
}
.donate-strip__inner {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 18px;
}
.donate-strip__text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ink);
    margin: 0;
}
.donate-strip__heart {
    color: var(--crayon-red);
    display: inline-block;
    animation: heartbeat 1.6s ease-in-out infinite;
}
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.16); }
    28% { transform: scale(1); }
    42% { transform: scale(1.16); }
    70% { transform: scale(1); }
}

/* Lot card: rectangular portrait, full artwork visible */
.lot-card__image {
    aspect-ratio: 4 / 5 !important;
    height: auto !important;
    width: 100%;
    overflow: hidden;
    background: repeating-linear-gradient(45deg, #fafafa, #fafafa 16px, #f0f0f0 16px, #f0f0f0 32px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lot-card__image img {
    width: 100%;
    height: 100%;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    background: #fff;
    display: block;
}
.lot-card__placeholder {
    height: 100% !important;
    width: 100%;
    aspect-ratio: auto !important;
    font-size: 4rem !important;
    background: transparent;
}
@media (min-width: 1100px) { .lot-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; } }
@media (min-width: 720px) and (max-width: 1099px) { .lot-grid { grid-template-columns: repeat(2, 1fr); } }

/* Crayon-themed divider */
.crayon-divider {
    display: block;
    margin: 28px auto 18px;
    max-width: 320px;
    height: 56px;
    position: relative;
}
.crayon-divider svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.crayon-divider path { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.crayon-divider .c1 { stroke: var(--crayon-red); }
.crayon-divider .c2 { stroke: var(--crayon-blue); transform: translateY(6px) translateX(8px); opacity: 0.85; }
.crayon-divider .c3 { stroke: var(--crayon-green); transform: translateY(-3px) translateX(-6px); opacity: 0.7; }
.crayon-divider .dot { fill: var(--crayon-sun); stroke: var(--ink); stroke-width: 2; }

/* Active nav paint splat (pure CSS blob) */
.nav__links a {
    position: relative;
    z-index: 1;
    transition: color .15s ease;
    padding: 8px 14px;
    display: inline-block;
}
.nav__links a.is-active {
    color: var(--ink);
    font-weight: 800;
}
.nav__links a.is-active::before {
    content: '';
    position: absolute;
    inset: -4px -8px;
    z-index: -1;
    background: var(--crayon-sun, #ffd86b);
    border-radius: 62% 38% 54% 46% / 52% 60% 40% 48%;
    transform: rotate(-3deg);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.18);
}
.nav__links a.is-active::after {
    content: '';
    position: absolute;
    top: -8px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: var(--crayon-red);
    border-radius: 50%;
    z-index: -1;
}
.nav__links a:not(.is-active):hover::before {
    content: '';
    position: absolute;
    inset: -3px -6px;
    z-index: -1;
    background: rgba(255, 216, 107, 0.45);
    border-radius: 50% 40% 60% 50%;
}

/* ---- Section background tints for variety ---- */
.section--what {
    background: linear-gradient(180deg, transparent 0%, #fff8e8 100%);
    position: relative;
}
.section--features {
    background:
        radial-gradient(circle at 8% 12%, rgba(255, 138, 138, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 92% 88%, rgba(134, 200, 255, 0.08) 0%, transparent 25%),
        #fffdf6;
}
.section--featured-lot {
    background: linear-gradient(180deg, #fffdf6 0%, #fff4e6 100%);
    position: relative;
    padding-top: 50px;
    padding-bottom: 50px;
}

/* ---- Floating crayon accents on hero ---- */
.hero {
    position: relative;
    overflow: hidden;
}
.hero__floating {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.hero__floating > * {
    position: absolute;
    opacity: 0.4;
    animation: floatGentle 6s ease-in-out infinite;
}
.hero__floating > *:nth-child(1) { top: 10%; left: 6%; animation-delay: 0s; }
.hero__floating > *:nth-child(2) { top: 18%; right: 8%; animation-delay: 1s; }
.hero__floating > *:nth-child(3) { bottom: 18%; left: 12%; animation-delay: 2s; }
.hero__floating > *:nth-child(4) { bottom: 22%; right: 10%; animation-delay: 3s; }
.hero__floating > *:nth-child(5) { top: 38%; left: 3%; animation-delay: 1.5s; }
.hero__floating > *:nth-child(6) { top: 44%; right: 4%; animation-delay: 2.5s; }
@keyframes floatGentle {
    0%, 100% { transform: translate(0, 0) rotate(var(--rot, 0deg)); }
    50% { transform: translate(0, -10px) rotate(calc(var(--rot, 0deg) + 4deg)); }
}
.hero .wrap { position: relative; z-index: 1; }

/* ---- Stat doodle SVGs (top-right corner of each stat card) ---- */
.stat { position: relative; }
.stat__doodle {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 32px;
    height: 32px;
    opacity: 0.45;
}

/* ---- Wrapped section heading with marker stripe ---- */
.section__heading {
    position: relative;
    display: inline-block;
    padding: 0 8px;
}
.section--what .section__heading::after,
.section--features .section__heading::after,
.section--money-home .section__heading::after,
.section--featured-lot .section__heading::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 8px;
    background: var(--crayon-sun, #ffd86b);
    z-index: -1;
    border-radius: 4px;
    transform: rotate(-1deg);
    opacity: 0.6;
}

/* ---- Feature card extra polish: subtle background pattern ---- */
.feature-card {
    background-image:
        radial-gradient(circle at 88% 12%, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 16px 16px;
}

/* ---- Decorative crayon strokes inside money-card on hover ---- */
.money-card { transition: transform .2s ease; }
.money-card:hover { transform: translateY(-4px) rotate(-1deg); }

/* ---- Belief quote: with quote marks ---- */
.belief {
    background: linear-gradient(135deg, #fff4d6 0%, #ffe2b8 100%);
    border-top: 3px solid var(--ink);
    border-bottom: 3px solid var(--ink);
    padding: 50px 0;
    position: relative;
}
.belief::before, .belief::after {
    content: '"';
    font-family: var(--font-display);
    font-size: 5rem;
    color: var(--crayon-red);
    opacity: 0.4;
    position: absolute;
    line-height: 1;
}
.belief::before { top: 4px; left: 6%; }
.belief::after { bottom: -22px; right: 6%; transform: rotate(180deg); }
.belief p { font-size: 1.5rem; max-width: 720px; margin: 0 auto; }

/* ---- Auction page lot grid: cap nicely ---- */
.auction-empty { text-align: center; padding: 40px 20px; }


/* ---- Footer nav: paint splat (smaller, lighter) ---- */
.footer-links a {
    position: relative;
    z-index: 1;
    padding: 6px 12px;
    display: inline-block;
    color: var(--crayon-yellow);
}
.footer-links a.is-active { color: var(--ink); }
.footer-links a.is-active {
    font-weight: 800;
}
.footer-links a.is-active::before {
    content: '';
    position: absolute;
    inset: -3px -7px;
    z-index: -1;
    background: var(--crayon-sun, #ffd86b);
    border-radius: 58% 42% 50% 50% / 48% 56% 44% 52%;
    transform: rotate(-2deg);
    box-shadow: 1px 1px 0 rgba(0,0,0,0.16);
    opacity: 0.85;
}
.footer-links a:not(.is-active):hover::before {
    content: '';
    position: absolute;
    inset: -3px -6px;
    z-index: -1;
    background: rgba(255, 216, 107, 0.4);
    border-radius: 50% 40% 60% 50%;
}

/* ---- Donate page big love heart ---- */
.thank-you-block {
    text-align: center;
    padding: 56px 20px 40px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 30%, rgba(255, 138, 138, 0.16) 0%, transparent 22%),
        radial-gradient(circle at 82% 70%, rgba(255, 196, 0, 0.18) 0%, transparent 22%),
        linear-gradient(180deg, #fffaf2 0%, #ffe9d6 100%);
    border-top: 3px dashed var(--ink);
}
.thank-you-block__heart {
    display: block;
    width: 180px;
    height: 180px;
    margin: 0 auto 18px;
    animation: heartPulse 1.8s ease-in-out infinite;
}
@keyframes heartPulse {
    0%, 100% { transform: scale(1) rotate(-2deg); }
    50% { transform: scale(1.06) rotate(2deg); }
}
.thank-you-block__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.2rem;
    color: var(--crayon-red);
    margin: 0 0 12px;
    line-height: 1.15;
}
.thank-you-block__body {
    font-size: 1.1rem;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.55;
}
.thank-you-block__sign {
    margin-top: 22px;
    font-family: var(--font-hand, var(--font-display));
    color: var(--crayon-purple);
    font-size: 1.35rem;
    font-style: italic;
}

/* ---- Hide the auto donate-strip on the donate page (server adds .no-donate-strip class via body or section) ---- */
.is-donate-page .donate-strip {
    display: none;
}

/* ---- Hero: kraft tape behind brand heading ---- */
.hero__heading {
    position: relative;
    display: inline-block;
    padding: 6px 14px;
}
.hero__heading::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    width: 60px;
    height: 22px;
    background: linear-gradient(135deg, rgba(255, 196, 0, 0.55), rgba(255, 196, 0, 0.3));
    transform: rotate(-12deg);
    border-radius: 2px;
    z-index: -1;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.06);
}
.hero__heading::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: -10px;
    width: 70px;
    height: 22px;
    background: linear-gradient(135deg, rgba(134, 200, 255, 0.55), rgba(134, 200, 255, 0.3));
    transform: rotate(8deg);
    border-radius: 2px;
    z-index: -1;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.06);
}

/* ---- Featured Lot section: sticker badge + colourful frame ---- */
.section--featured-lot {
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 196, 0, 0.16) 0%, transparent 22%),
        radial-gradient(circle at 90% 80%, rgba(255, 138, 138, 0.14) 0%, transparent 22%),
        linear-gradient(180deg, #fffdf6 0%, #fff4e6 100%);
    position: relative;
    padding-top: 50px;
    padding-bottom: 60px;
}
.section--featured-lot::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 6%;
    width: 80px;
    height: 80px;
    background: var(--crayon-sun);
    border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
    transform: rotate(-8deg);
    opacity: 0.4;
    z-index: 0;
}
.section--featured-lot::after {
    content: '';
    position: absolute;
    bottom: 30px;
    right: 8%;
    width: 60px;
    height: 60px;
    background: var(--crayon-red);
    border-radius: 50%;
    opacity: 0.18;
    z-index: 0;
}
.section--featured-lot .wrap { position: relative; z-index: 1; }

/* ---- Hero: bigger headline + wavy underline ---- */
.hero {
    background:
        radial-gradient(circle at 5% 12%, rgba(255, 196, 0, 0.12) 0%, transparent 18%),
        radial-gradient(circle at 95% 12%, rgba(134, 200, 255, 0.12) 0%, transparent 18%),
        radial-gradient(circle at 50% 100%, rgba(255, 138, 138, 0.08) 0%, transparent 25%),
        linear-gradient(180deg, #fffdf6 0%, #fff4e0 100%);
    padding: 80px 0 60px;
    position: relative;
}
.hero__eyebrow {
    display: inline-block;
    background: var(--crayon-red);
    color: #fff;
    padding: 6px 16px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 2px 3px 0 var(--ink);
    transform: rotate(-2deg);
}

/* ---- Hero buttons: more pop ---- */
.hero__buttons {
    margin-top: 28px;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero__buttons .btn {
    font-size: 1.05rem;
    padding: 14px 26px;
}

/* ---- 'COMING SOON' empty states get a playful frame ---- */
.empty-note {
    background: linear-gradient(180deg, #fffbf2 0%, #fff4d6 100%);
    border: 3px dashed var(--ink);
    border-radius: 14px;
    padding: 30px 20px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--crayon-purple);
    max-width: 580px;
    margin: 20px auto;
}

/* ---- Section transition wavy strip (replacing dashed borders) ---- */
.wave-strip {
    display: block;
    width: 100%;
    height: 24px;
    background: var(--crayon-sun);
    -webkit-mask-image: radial-gradient(circle at 10px 24px, transparent 12px, #000 13px);
    mask-image: radial-gradient(circle at 10px 24px, transparent 12px, #000 13px);
    -webkit-mask-size: 20px 24px;
    mask-size: 20px 24px;
    -webkit-mask-repeat: repeat-x;
    mask-repeat: repeat-x;
}


/* ---- Featured lot: side-by-side layout on desktop (image left, details right) ---- */
@media (min-width: 760px) {
    .lot-grid--featured {
        max-width: 920px !important;
        margin: 0 auto !important;
    }
    .lot-grid--featured .lot-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        align-items: stretch;
    }
    .lot-grid--featured .lot-card__image {
        aspect-ratio: 1 / 1 !important;
        border-right: 3px solid var(--ink);
    }
    .lot-grid--featured .lot-card__body {
        padding: 26px 24px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: left;
    }
    .lot-grid--featured .lot-card__title {
        font-size: 1.4rem;
        margin-bottom: 6px;
    }
    .lot-grid--featured .lot-card__bid {
        margin-top: 12px;
        font-size: 1.2rem;
    }
}

/* ---- Submit page: decorate the form card ---- */
.submit-form-wrap {
    position: relative;
    padding: 20px 0;
}
.submit-form-wrap::before,
.submit-form-wrap::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 4px solid var(--ink);
    pointer-events: none;
}
.submit-form-wrap::before {
    top: -10px;
    left: -10px;
    border-right: 0;
    border-bottom: 0;
    border-color: var(--crayon-red);
    transform: rotate(-4deg);
}
.submit-form-wrap::after {
    bottom: -10px;
    right: -10px;
    border-left: 0;
    border-top: 0;
    border-color: var(--crayon-blue);
    transform: rotate(-4deg);
}

/* ---- Gallery empty state: playful placeholder tiles ---- */
.gallery-placeholders {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    max-width: 900px;
    margin: 24px auto 0;
}
.gallery-placeholders__tile {
    aspect-ratio: 4 / 5;
    border: 3px solid var(--ink);
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 2.5rem;
    background: var(--bg);
    box-shadow: 4px 5px 0 var(--ink);
    transition: transform .2s ease;
}
.gallery-placeholders__tile:nth-child(odd) { transform: rotate(-1deg); }
.gallery-placeholders__tile:nth-child(even) { transform: rotate(1deg); }
.gallery-placeholders__tile:hover { transform: rotate(0) scale(1.03); }
.gallery-placeholders__tile:nth-child(1) { background: #ffe7e1; }
.gallery-placeholders__tile:nth-child(2) { background: #e1f0ff; }
.gallery-placeholders__tile:nth-child(3) { background: #e6f5e1; }
.gallery-placeholders__tile:nth-child(4) { background: #fff4d6; }
.gallery-placeholders__tile:nth-child(5) { background: #f0e1ff; }
.gallery-placeholders__tile:nth-child(6) { background: #ffe4f0; }


/* ---- Hero headline: keep on one line on desktop, smaller responsive font ---- */
.hero__heading {
    font-size: clamp(2rem, 4.4vw, 3.4rem) !important;
    line-height: 1.05;
}
@media (min-width: 900px) {
    .hero__heading {
        white-space: nowrap;
    }
}

/* ---- Featured lot: even wider, more dominant ---- */
@media (min-width: 760px) {
    .lot-grid--featured {
        max-width: 1060px !important;
    }
    .lot-grid--featured .lot-card {
        grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
    }
    .lot-grid--featured .lot-card__image {
        aspect-ratio: 1 / 1 !important;
        min-height: 360px;
    }
}

/* ---- Lot grid: equal height + aligned cards (auction page) ---- */
.lot-grid {
    align-items: stretch;
}
.lot-grid .lot-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: left;
}
.lot-grid .lot-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px;
    gap: 8px;
}
.lot-grid .lot-card__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0;
}
.lot-grid .lot-card__artist {
    font-family: var(--font-hand);
    color: var(--crayon-purple);
    margin: 0;
    font-size: 1rem;
}
.lot-grid .lot-card__desc {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.85;
    flex: 1;
}
.lot-grid .lot-card__bid {
    margin: 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 10px;
    border-top: 2px dashed var(--ink);
}
.lot-grid .lot-card__bid-amount {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--crayon-red);
}
.lot-grid .lot-card__countdown {
    font-size: 0.85rem;
    font-family: var(--font-hand);
    color: var(--crayon-purple);
}
.lot-grid .lot-card__form,
.lot-grid .lot-card form {
    margin-top: auto;
}

/* ---- Gallery tile body: title + by-name ---- */
.gallery-tile {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.gallery-tile img {
    aspect-ratio: 4 / 5 !important;
    object-fit: cover;
    width: 100%;
}
.gallery-tile__body {
    padding: 14px 16px;
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.gallery-tile__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    margin: 0 0 4px;
    line-height: 1.25;
}
.gallery-tile__artist {
    font-family: var(--font-hand);
    color: var(--crayon-purple);
    margin: 0;
    font-size: 0.95rem;
}
.gallery-tile__age-badge {
    display: inline-block;
    background: var(--crayon-sun, #ffd86b);
    color: var(--ink);
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-family: var(--font-display);
    font-weight: 700;
    margin-top: 6px;
    border: 2px solid var(--ink);
}

/* ---- Admin: back-to-home link ---- */
.admin-back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 16px 0 0;
    padding: 8px 14px;
    border: 2px solid var(--ink);
    background: #fff;
    border-radius: 999px;
    text-decoration: none;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform .15s ease, box-shadow .15s ease;
    box-shadow: 2px 2px 0 var(--ink);
}
.admin-back-home:hover {
    transform: translate(-1px, -2px);
    box-shadow: 3px 4px 0 var(--ink);
}


/* events-v1: page section that matches the crayon aesthetic. */
.section--events {
    padding: 56px 20px;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 216, 107, .25) 0%, transparent 22%),
        radial-gradient(circle at 85% 80%, rgba(134, 200, 255, .25) 0%, transparent 22%),
        var(--paper);
}
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
    margin-top: 28px;
}
.event-card {
    background: #ffffff;
    border: 3px solid var(--ink);
    border-radius: 16px;
    box-shadow: 5px 6px 0 var(--ink);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
}
.event-card:hover {
    transform: translate(-2px, -3px);
    box-shadow: 7px 9px 0 var(--ink);
}
.event-card__type {
    position: absolute; top: 14px; right: 14px;
    padding: 4px 12px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--crayon-sun);
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    z-index: 2;
}
.event-card--school { border-color: #1c1c1c; }
.event-card--school .event-card__type { background: #b9e0ff; }
.event-card--nursery .event-card__type { background: #ffc9be; }
.event-card--community .event-card__type { background: #bfe8c5; }
.event-card--charity .event-card__type { background: #eec9ff; }
.event-card--cancelled {
    opacity: .6;
}
.event-card__image {
    height: 160px;
    background-size: cover;
    background-position: center;
    border-bottom: 3px solid var(--ink);
}
.event-card__body {
    padding: 22px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.event-card__body h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--ink);
    padding-right: 70px;
}
.event-card__when, .event-card__venue {
    font-size: .95rem;
    color: #353535;
}
.event-card__badge {
    align-self: flex-start;
    background: var(--crayon-red);
    color: #fff;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
}
.event-card__contact {
    font-size: .85rem;
    color: #5a5a5a;
}
.past-events {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}
.past-events li {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(28,28,28,0.25);
}
.section--past-events, .section--cta {
    padding: 48px 20px;
}
.container--narrow {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

/* events-hero: center all text content */
.events-hero .hero__inner {
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}
.events-hero .hero__eyebrow,
.events-hero .hero__heading,
.events-hero .hero__text {
    margin-left: auto;
    margin-right: auto;
}
/* Nav brand text: shift it away from the left edge */
.nav__brand-text {
    margin-left: 12px;
}
@media (min-width: 721px) {
    .nav__brand-text { margin-left: 20px; }
}

/* events-mobile-polish-v1 */
@media (max-width: 540px) {
    .section--events, .section--past-events, .section--cta {
        padding-left: 16px;
        padding-right: 16px;
    }
    .event-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .event-card__type {
        position: static;
        display: inline-block;
        margin: 14px 14px 0 14px;
    }
    .event-card__body h3 {
        padding-right: 0;
        font-size: 1.1rem;
    }
    .event-card__image {
        height: 140px;
    }
    .events-hero .hero__heading {
        font-size: 2rem;
    }
    .container--narrow {
        padding: 0 10px;
    }
    .section--cta .btn {
        width: 100%;
        max-width: 420px;
    }
}
/* event-card images need a handle for no-image cards centre alignment */
.event-card__body h3 {
    word-wrap: break-word;
    hyphens: auto;
}
.event-card__venue, .event-card__when {
    word-wrap: break-word;
}

/* nav-fix-v1: active paint-splat needs relative parent, and tighten the gap */
.nav__links a {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}
.nav__links {
    gap: 18px;
}
@media (max-width: 1050px) and (min-width: 861px) {
    .nav__links { gap: 14px; font-size: 0.96rem; }
}

/* nav-brand-gap-v1: give the nav links a guaranteed gap from the brand text */
.nav .wrap {
    gap: 32px;
}
@media (min-width: 861px) {
    .nav__links {
        padding-left: 12px;
    }
}

/* mobile-final-v1: tighten nav, force footer visibility, ensure clean dropdown */
@media (max-width: 860px) {
    .nav .wrap { gap: 8px !important; padding: 0 12px; }
    .nav__brand-text { font-size: 1.05rem; flex: 1; min-width: 0; }
    .nav__brand-text .cic { font-size: 0.65em; }
    .hamburger { flex-shrink: 0; }
    .site-footer { display: block !important; }
    .site-footer .footer-links { display: flex !important; }
    .donate-strip { padding: 18px 12px; }
    .donate-strip__inner { gap: 12px; }
    body.cbcc-site { overflow-x: hidden; }
}


/* footer-tight-v2: tight mobile spacing without disturbing the floating pill */
@media (max-width: 860px) {
    .site-footer { padding-bottom: 22px; }
    .site-footer p:nth-child(1),
    .site-footer p:nth-child(2) { margin: 0 !important; line-height: 1.5; }
    .site-footer .footer-links { margin: 6px 0 !important; }
    .site-footer .footer-links--quick { margin: 8px 0 2px !important; }
    .site-footer .footer-links a { padding: 4px 8px; }
    .site-footer .footer-disclaimer { margin-top: 10px; }
    /* Floating pill stays floating but a bit higher on mobile to never overlap admin dot */
    .powered-pill { right: 10px; bottom: 10px; padding: 6px 11px; font-size: 0.72rem; }
    .footer-admin-row { margin: 10px 0 6px !important; }
    body.cbcc-site { padding-bottom: 0; }
    html, body { overflow-x: hidden; }
}


/* lightbox-v1: tap-to-enlarge for images with data-lightbox-src */
.lightbox-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center; justify-content: center;
    padding: 20px;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.lightbox-overlay.is-open { display: flex; opacity: 1; }
.lightbox-overlay img {
    max-width: min(94vw, 1400px);
    max-height: 90vh;
    object-fit: contain;
    border: 4px solid #fff;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    cursor: default;
}
.lightbox-overlay__close {
    position: absolute;
    top: 16px; right: 18px;
    width: 44px; height: 44px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #1c1c1c;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex; align-items: center; justify-content: center;
}
.lightbox-overlay__close:hover { background: var(--crayon-yellow, #ffd86b); }
[data-lightbox-src] { cursor: zoom-in; }
[data-lightbox-src]:hover { opacity: 0.92; }

/* gallery-smaller-v1: tighter previews on the public gallery page */
.section--gallery .card-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}
.section--gallery .card-grid .gallery-tile {
    flex: 0 1 200px;
    max-width: 240px;
}
.section--gallery .gallery-tile {
    margin: 0;
}
.section--gallery .gallery-tile img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}
.section--gallery .gallery-tile__body {
    padding: 8px 10px;
}
.section--gallery .gallery-tile__title {
    font-size: 0.88rem;
    margin: 0;
}
.section--gallery .gallery-tile__artist {
    font-size: 0.75rem;
    opacity: 0.7;
    margin: 2px 0 0;
}
@media (max-width: 480px) {
    .section--gallery .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
    }
    .section--gallery .gallery-tile__title { font-size: 0.8rem; }
    .section--gallery .gallery-tile__artist { font-size: 0.7rem; }
}


/* hero-rainbow-v1: prominent multi-coloured slogan heading */
.hero__heading--rainbow {
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    line-height: 1.05;
    text-align: center;
    margin: 30px auto 18px;
    max-width: 920px;
    letter-spacing: -0.01em;
}
.hero__heading--rainbow span {
    display: inline-block;
    transform-origin: center;
    transition: transform 0.2s ease;
}
.hero__heading--rainbow span:nth-child(odd) {
    transform: rotate(-1.5deg);
}
.hero__heading--rainbow span:nth-child(even) {
    transform: rotate(1.5deg);
}
.hero__heading--rainbow span:hover {
    transform: rotate(0) scale(1.08);
}
@media (max-width: 600px) {
    .hero__heading--rainbow {
        font-size: clamp(2rem, 9vw, 3rem);
        margin: 20px auto 14px;
    }
}
.hero {
    padding-top: 60px;
    padding-bottom: 60px;
}


/* gallery-filters-v1: filter chip row for the public gallery */
.gallery-filters {
    display: flex; flex-wrap: wrap; gap: 8px;
    justify-content: center;
    margin: 0 0 24px;
    padding: 0 8px;
}
.gallery-filter {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid var(--ink, #1c1c1c);
    border-radius: 999px;
    background: #fff;
    color: var(--ink, #1c1c1c);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1;
    transition: transform 0.15s ease, background 0.15s ease;
}
.gallery-filter:hover { transform: translateY(-2px); }
.gallery-filter.is-active {
    background: var(--brand-primary, #ffd86b);
    color: var(--ink, #1c1c1c);
    transform: rotate(-1deg) scale(1.02);
}
@media (max-width: 480px) {
    .gallery-filter { padding: 6px 12px; font-size: 0.85rem; }
}


/* blog-cards-v1: public blog index + post cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 30px 0;
}
.blog-card {
    background: #fff;
    border: 3px solid var(--ink, #1c1c1c);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px) rotate(-0.5deg); }
.blog-card__img_wrap { display: block; aspect-ratio: 16/10; overflow: hidden; }
.blog-card__img_wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card__body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card__cat {
    display: inline-block;
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--crayon-red); font-weight: 700;
    margin-bottom: 6px;
}
.blog-card__title { font-size: 1.2rem; line-height: 1.25; margin: 0 0 8px; }
.blog-card__title a { color: var(--ink); text-decoration: none; }
.blog-card__title a:hover { color: var(--brand-accent, var(--crayon-red)); }
.blog-card__excerpt { font-size: 0.94rem; line-height: 1.5; margin: 4px 0 12px; }
.blog-card__meta { font-size: 0.82rem; opacity: 0.6; margin: auto 0 0; }
@media (max-width: 480px) {
    .blog-grid { grid-template-columns: 1fr; gap: 18px; }
}



/* Soft paint-blob accents in section corners for playfulness (non-text-affecting) */
.section--what::after,
.section--features::after {
    content: "";
    position: absolute;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--brand-accent, #ff5252);
    opacity: 0.10;
    bottom: -25px;
    right: 8%;
    filter: blur(4px);
    pointer-events: none;
    z-index: 0;
}
.section--featured-lot::after,
.section--money-home::after {
    content: "";
    position: absolute;
    width: 100px; height: 100px;
    border-radius: 50%;
    background: var(--brand-primary, #ffd86b);
    opacity: 0.14;
    top: -40px;
    left: 6%;
    filter: blur(5px);
    pointer-events: none;
    z-index: 0;
}

/* Make sure content sits ABOVE the blobs */
.section > .wrap, .belief > .wrap, .hero > .wrap {
    position: relative;
    z-index: 1;
}

/* Wet-paint edge at section boundaries - very subtle inset shadow */
.section, .belief {
    box-shadow: inset 0 -6px 12px -10px rgba(28,28,28,0.08);
}


/* mobile-readability-v1: comprehensive mobile-first audit fixes */

/* DESKTOP + MOBILE: enforce minimum text colour contrast.
   Any section that does NOT have an explicit white-text rule should default to ink. */
.section--stats, .section--features, .section--featured-lot,
.section--money-home, .section--closing, .section--gallery,
.section--team, .section--blog, .section--what {
    color: var(--ink, #2b2b2b);
}
.section--stats p, .section--features p, .section--featured-lot p,
.section--money-home p, .section--closing p, .section--gallery p,
.section--team p, .section--blog p, .section--what p {
    color: var(--ink, #2b2b2b);
}
/* Sections that DO have coloured backgrounds and use white text - ensure all child text inherits properly */
.section--charity, .section--charity *,
.section--auction, .section--auction h2, .section--auction h3,
.section--donate, .section--donate h2 {
    color: inherit;
}
.section--auction { color: var(--ink); }
.section--donate { color: var(--ink); }

/* MOBILE: minimum font sizes for readability */
@media (max-width: 640px) {
    html { font-size: 16px; }
    body { font-size: 1rem; line-height: 1.55; }
    p, li, label, td, .muted, .section__intro, .hero__text { font-size: 1rem; }
    .section__heading { font-size: clamp(1.7rem, 6vw, 2.4rem); }
    .hero__heading { font-size: clamp(2rem, 7vw, 2.8rem); }
    .section__intro { max-width: 100%; padding: 0 12px; }
    
    /* Make sure footer text is readable */
    .site-footer p { font-size: 0.95rem; }
    
    /* Buttons need to be tap-friendly */
    .btn { min-height: 44px; padding: 12px 22px; font-size: 1rem; }
    
    /* No tiny text anywhere */
    small, .small { font-size: 0.85rem; }
    .muted { font-size: 0.95rem; }
    
    /* Stat cards on home */
    .stat-card__value { font-size: clamp(1.8rem, 8vw, 2.4rem); }
    .stat-card__label { font-size: 0.92rem; }
    
    /* Feature cards on home */
    .feature-card { padding: 22px 18px; }
    .feature-card__title { font-size: 1.15rem; }
    .feature-card__text { font-size: 0.95rem; line-height: 1.5; }
    
    /* Lot cards / gallery / auction */
    .lot-card__title, .gallery-tile__title { font-size: 1rem; }
    .lot-card__price, .lot-card__bid { font-size: 1rem; }
    
    /* Blog cards already responsive but double check */
    .blog-card__title { font-size: 1.1rem; }
    .blog-card__excerpt { font-size: 0.95rem; }
}

/* EXTRA: any element with inline color:#fff on a light background should not break readability */
.section[style*="linear-gradient"]:not([style*="color"]) {
    color: var(--ink);
}

/* Donate page buttons readable */
.donate__amounts .btn { font-size: 1.05rem; padding: 14px 26px; }
@media (max-width: 480px) {
    .donate__amounts .btn { font-size: 1rem; padding: 12px 20px; }
    .donate__amounts { gap: 10px; }
}

/* Charity of the month page - ensure dark text on cream bg */
.section--charity-current { color: var(--ink); }
.section--charity-current p, .section--charity-current div { color: var(--ink); }

/* Admin: set-password inline box */
.set-pw-box { flex-basis: 100%; margin-top: 10px; padding: 14px; border: 2px solid var(--ink, #1c1c1c); border-radius: 10px; background: #fffdf5; }
.set-pw-box label { display: block; margin-bottom: 8px; }
.set-pw-box input[type=text] { display: block; width: 100%; max-width: 360px; margin-top: 4px; padding: 8px; border: 2px solid var(--ink, #1c1c1c); border-radius: 6px; }
.set-pw-tip { margin: 6px 0 10px; font-size: 0.85rem; }

/* Waitlist / Join creative community */
.wrap--narrow { max-width: 640px; margin: 0 auto; padding: 0 20px; }
.section--waitlist-home { background: var(--crayon-green); }
.section--join { padding: 20px 0 70px; }
.join-card { background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--ink); padding: 30px; }
.waitlist__heading { margin: 0 0 8px; font-size: 1.6rem; }
.waitlist__intro { font-weight: 700; margin: 0 0 10px; }
.waitlist__perks { margin: 0 0 20px; padding-left: 22px; }
.waitlist__perks li { margin: 4px 0; }
.waitlist__fields { gap: 12px; flex-wrap: wrap; display: flex; }
.waitlist__input { flex: 1 1 220px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 10px; font-size: 1rem; font-family: inherit; }
.waitlist__btn { margin-top: 14px; }
.waitlist__success { text-align: center; padding: 10px 0; }
.waitlist__success .waitlist__heading { color: var(--crayon-green); }

/* Soft wave dividers between colour bands */
.wave-divider { line-height: 0; margin: 0; padding: 0; position: relative; z-index: 2; margin-top: -1px; margin-bottom: -1px; }
.wave-divider svg { width: 100%; height: 48px; }
.wave-divider--flip svg { transform: rotate(180deg); }
@media (max-width: 600px) { .wave-divider svg { height: 30px; } }

/* Optional editable section images */
.section-image { margin: 26px auto 0; text-align: center; }
.section-image img { display: inline-block; }

/* crayon-blend-v1: extra soft paint-blob accents + gentle colour blending between bands */
.section--stats { position: relative; }
.section--charity-home { position: relative; }
.section--waitlist-home { position: relative; }

/* More scattered paint blobs in varied crayon colours (decorative, behind content) */
.section--stats::after {
    content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%;
    background: var(--crayon-purple, #9b5de5); opacity: 0.10; top: -30px; right: 10%;
    filter: blur(5px); pointer-events: none; z-index: 0;
}
.section--charity-home::after {
    content: ""; position: absolute; width: 110px; height: 110px; border-radius: 50%;
    background: var(--crayon-green, #57cc99); opacity: 0.10; bottom: -40px; left: 7%;
    filter: blur(6px); pointer-events: none; z-index: 0;
}
.section--waitlist-home::before {
    content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%;
    background: var(--crayon-sun, #ffb703); opacity: 0.16; top: -30px; right: 6%;
    filter: blur(6px); pointer-events: none; z-index: 0;
}

/* Soft second blob, different corner, for richer scatter */
.section--features::before {
    content: ""; position: absolute; width: 70px; height: 70px; border-radius: 50%;
    background: var(--crayon-blue, #4cc9f0); opacity: 0.12; top: -20px; left: 9%;
    filter: blur(4px); pointer-events: none; z-index: 0;
}
.section--features { position: relative; }

/* Gentle vertical colour bleed at the top of coloured bands so wave dividers melt in */
.belief::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40px;
    background: linear-gradient(180deg, rgba(255,183,3,0.18) 0%, transparent 100%);
    pointer-events: none; z-index: 0;
}
.section--waitlist-home { overflow: hidden; }

/* mobile-sweep-20260610: comfort tweaks for todays additions */
@media (max-width: 600px) {
    .join-card { padding: 22px 18px; box-shadow: 4px 4px 0 var(--ink); }
    .waitlist__heading { font-size: 1.4rem; }
    .section-image img { max-width: 100% !important; }
}

/* easyfundraising-v1: shop-and-raise call to action */
.section--easyfund { background: var(--crayon-purple, #9b5de5); padding: 50px 0; position: relative; }
.easyfund-card { background: #fff; border: 3px solid var(--ink); border-radius: 20px; box-shadow: 7px 7px 0 var(--ink); padding: 34px 30px; position: relative; }
.easyfund-badge { display: inline-block; background: var(--crayon-green, #57cc99); color: var(--ink); font-weight: 800; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; border: 2px solid var(--ink); border-radius: 999px; padding: 5px 14px; }
.easyfund-steps { list-style: none; margin: 22px auto; padding: 0; max-width: 540px; text-align: left; display: grid; gap: 10px; }
.easyfund-steps li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.02rem; }
.easyfund-step__n { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--crayon-sun, #ffb703); border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: var(--font-display); }
.easyfund-btn { margin-top: 6px; }
.easyfund-foot { margin: 14px 0 0; color: #5a5a5a; font-size: .86rem; }
@media (max-width: 600px) {
    .easyfund-card { padding: 26px 18px; box-shadow: 4px 4px 0 var(--ink); }
    .easyfund-steps li { font-size: .96rem; }
}

/* bright-sections-v1: bright, colourful section backgrounds with wavy separators (Chloe request) */
.section--stats { background: #e8f8ff; }
.section--what { background: #fff4cc; }
.section--features { background: #ffe9f5; }
.section--featured-lot { background: #e6fbef; }
.section--money-home {
    background: #e8f8ff;
    border-top: none;
    border-bottom: none;
}
.section--easyfund { background: #f1e9ff; }
.section--charity-home { background: #fff4cc; }
.section--waitlist-home { background: #e6fbef; }
.section--closing { background: #ffe9f5; }

/* about-bright-v1: bright section backgrounds on About page (Chloe request) */
.section--story { background: #fff4cc; }
.section--team { background: #ffe9f5; }

/* page-images-public-v1: Chloe-managed images on public pages */
.page-images { display: flex; flex-direction: column; gap: 20px; margin: 26px auto; max-width: 1000px; padding: 0 20px; }
.page-image { margin: 0; }
.page-image img { height: auto; border-radius: 14px; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); display: block; }
.page-image--left { align-items: flex-start; text-align: left; }
.page-image--center { align-items: center; text-align: center; margin-left: auto; margin-right: auto; }
.page-image--center img { margin-left: auto; margin-right: auto; }
.page-image--right { align-items: flex-end; text-align: right; }
.page-image--right img { margin-left: auto; }
.page-image figcaption { margin-top: 8px; font-size: .92rem; color: #555; font-style: italic; }
@media (max-width: 600px) { .page-image img { max-width: 100% !important; } }

/* hero-side-images-v1: Chloe-placed images flanking the hero text, angled, with optional paint splash */
.hero--cbcc .wrap { position: relative; }
.hero-sides { position: absolute; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 18px; z-index: 2; pointer-events: none; }
.hero-sides--left { left: -20px; align-items: flex-start; }
.hero-sides--right { right: -20px; align-items: flex-end; }
.hero-side-img { margin: 0; line-height: 0; transition: transform .2s ease; }
.hero-side-img img { width: 100%; height: auto; display: block; border-radius: 14px; border: 4px solid #fff; box-shadow: 4px 6px 0 rgba(0,0,0,0.18); }
.hero-side-img.has-splash { position: relative; padding: 14px; }
.hero-side-img.has-splash::before {
    content: "";
    position: absolute; inset: -8px;
    z-index: -1;
    background:
        radial-gradient(circle at 22% 28%, var(--crayon-pink) 0 12%, transparent 14%),
        radial-gradient(circle at 80% 18%, var(--crayon-sun) 0 13%, transparent 15%),
        radial-gradient(circle at 84% 76%, var(--crayon-blue) 0 12%, transparent 14%),
        radial-gradient(circle at 16% 82%, var(--crayon-green) 0 13%, transparent 15%),
        radial-gradient(circle at 50% 50%, var(--crayon-purple) 0 30%, transparent 62%);
    filter: blur(2px);
    border-radius: 50% 42% 56% 44% / 48% 54% 46% 52%;
    transform: scale(1.18) rotate(-6deg);
    opacity: .9;
}
@media (max-width: 1100px) {
    .hero-sides--left { left: -40px; }
    .hero-sides--right { right: -40px; }
    .hero-side-img { max-width: 150px; }
    .hero-side-img img { border-width: 3px; }
}
@media (max-width: 820px) {
    .hero-sides { position: static; transform: none; flex-direction: row; justify-content: center; flex-wrap: wrap; margin: 10px 0; }
    .hero-sides--left, .hero-sides--right { left: auto; right: auto; align-items: center; }
    .hero-side-img { max-width: 120px; }
}

/* hero-free-images-v1: Chloe-placed, freely positioned hero images */
.hero-free-layer { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.hero-free-img { position: absolute; margin: 0; line-height: 0; }
.hero-free-img img { width: 100%; height: auto; display: block; border-radius: 14px; border: 4px solid #fff; box-shadow: 4px 6px 0 rgba(0,0,0,0.18); }
.hero-free-img.has-splash { padding: 14px; }
.hero-free-img.has-splash::before {
    content: ""; position: absolute; inset: -8px; z-index: -1;
    background:
        radial-gradient(circle at 22% 28%, var(--crayon-pink) 0 12%, transparent 14%),
        radial-gradient(circle at 80% 18%, var(--crayon-sun) 0 13%, transparent 15%),
        radial-gradient(circle at 84% 76%, var(--crayon-blue) 0 12%, transparent 14%),
        radial-gradient(circle at 16% 82%, var(--crayon-green) 0 13%, transparent 15%),
        radial-gradient(circle at 50% 50%, var(--crayon-purple) 0 30%, transparent 62%);
    filter: blur(2px); border-radius: 50% 42% 56% 44% / 48% 54% 46% 52%;
    transform: scale(1.18) rotate(-6deg); opacity: .9;
}
@media (max-width: 820px) {
    .hero-free-img { max-width: 26vw; }
}

/* hero-free-frame-v1: colourful rainbow frame option */

/* colourful-frame-v2: gradient ring via padding box, var-free for reliability */
.hero-drag.has-frame, .hero-free-img.has-frame {
    padding: 6px;
    background: linear-gradient(135deg, #ff85c0, #ffb703, #57cc99, #4cc9f0, #9b5de5);
    border-radius: 14px;
    box-shadow: 4px 6px 0 rgba(0,0,0,0.16);
}
.hero-drag.has-frame img, .hero-free-img.has-frame img {
    border: 3px solid #fff !important;
    border-radius: 10px;
    box-shadow: none !important;
}

/* hero-inline-imgs-v1: centred inline hero image(s) between strapline and buttons */
.hero-inline-imgs { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; align-items: center; margin: 22px auto 26px; }
.hero-inline-img { position: relative; margin: 0; line-height: 0; display: inline-block; }
.hero-inline-img img { width: 100%; height: auto; display: block; border-radius: 14px; border: 4px solid #fff; box-shadow: 4px 6px 0 rgba(0,0,0,0.18); }
.hero-inline-img.has-splash { padding: 30px; }
.hero-inline-img.has-splash::before {
    content: ""; position: absolute; inset: -34px; z-index: -1;
    background:
        radial-gradient(ellipse 30% 22% at 8% 14%, var(--crayon-pink) 0 64%, transparent 70%),
        radial-gradient(ellipse 9% 16% at 2% 30%, var(--crayon-pink) 0 60%, transparent 72%),
        radial-gradient(circle at 16% 2%, var(--crayon-pink) 0 3%, transparent 5%),
        radial-gradient(circle at 24% 38%, var(--crayon-pink) 0 2%, transparent 4%),
        radial-gradient(ellipse 26% 30% at 92% 18%, var(--crayon-sun) 0 62%, transparent 70%),
        radial-gradient(ellipse 14% 7% at 99% 8%, var(--crayon-sun) 0 60%, transparent 74%),
        radial-gradient(circle at 82% 2%, var(--crayon-sun) 0 2.5%, transparent 4%),
        radial-gradient(ellipse 32% 24% at 90% 86%, var(--crayon-blue) 0 62%, transparent 70%),
        radial-gradient(ellipse 8% 18% at 99% 74%, var(--crayon-blue) 0 60%, transparent 72%),
        radial-gradient(circle at 84% 99%, var(--crayon-blue) 0 3%, transparent 5%),
        radial-gradient(ellipse 28% 34% at 8% 88%, var(--crayon-green) 0 62%, transparent 70%),
        radial-gradient(ellipse 7% 15% at 1% 76%, var(--crayon-green) 0 60%, transparent 73%),
        radial-gradient(circle at 16% 99%, var(--crayon-green) 0 2.5%, transparent 4%),
        radial-gradient(ellipse 22% 18% at 46% 2%, var(--crayon-orange) 0 60%, transparent 70%),
        radial-gradient(ellipse 20% 22% at 54% 99%, var(--crayon-purple) 0 60%, transparent 70%),
        radial-gradient(circle at 28% 52%, var(--crayon-red) 0 15%, transparent 19%),
        radial-gradient(ellipse 12% 7% at 40% 64%, var(--crayon-red) 0 60%, transparent 74%),
        radial-gradient(circle at 72% 44%, var(--crayon-yellow) 0 14%, transparent 18%),
        radial-gradient(ellipse 6% 13% at 64% 60%, var(--crayon-yellow) 0 60%, transparent 74%);
    filter: blur(1px) contrast(1.08);
    border-radius: 49% 38% 56% 44% / 42% 55% 45% 58%;
    transform: rotate(-9deg) scale(1.04);
    opacity: .95;
}
.hero-inline-img.has-frame { padding: 6px; background: linear-gradient(135deg, #ff85c0, #ffb703, #57cc99, #4cc9f0, #9b5de5); border-radius: 14px; box-shadow: 4px 6px 0 rgba(0,0,0,0.16); }
.hero-inline-img.has-frame img { border: 3px solid #fff !important; border-radius: 10px; box-shadow: none !important; }
.hero-inline-img.has-splash.has-frame { padding: 30px; }
@media (max-width: 700px) { .hero-inline-img { max-width: 60vw; } }

/* page-image-paint-splash-v1: messy child paint splatter behind gallery artwork */
.page-image.has-splash { position: relative; padding: 26px; display: inline-block; }
.page-image.has-splash::before {
    content: ""; position: absolute; inset: -28px; z-index: -1;
    background:
        radial-gradient(ellipse 28% 20% at 9% 15%, var(--crayon-pink) 0 64%, transparent 70%),
        radial-gradient(ellipse 8% 15% at 2% 32%, var(--crayon-pink) 0 60%, transparent 73%),
        radial-gradient(circle at 18% 3%, var(--crayon-pink) 0 2.5%, transparent 4%),
        radial-gradient(ellipse 24% 28% at 91% 20%, var(--crayon-sun) 0 62%, transparent 70%),
        radial-gradient(ellipse 13% 6% at 99% 9%, var(--crayon-sun) 0 60%, transparent 74%),
        radial-gradient(circle at 80% 2%, var(--crayon-sun) 0 2.5%, transparent 4%),
        radial-gradient(ellipse 30% 22% at 90% 84%, var(--crayon-blue) 0 62%, transparent 70%),
        radial-gradient(ellipse 7% 16% at 99% 72%, var(--crayon-blue) 0 60%, transparent 73%),
        radial-gradient(circle at 83% 98%, var(--crayon-blue) 0 2.5%, transparent 4%),
        radial-gradient(ellipse 26% 30% at 8% 86%, var(--crayon-green) 0 62%, transparent 70%),
        radial-gradient(ellipse 6% 14% at 1% 74%, var(--crayon-green) 0 60%, transparent 73%),
        radial-gradient(circle at 17% 98%, var(--crayon-green) 0 2.5%, transparent 4%),
        radial-gradient(ellipse 20% 16% at 47% 3%, var(--crayon-orange) 0 60%, transparent 70%),
        radial-gradient(ellipse 18% 20% at 53% 98%, var(--crayon-purple) 0 60%, transparent 70%),
        radial-gradient(circle at 30% 50%, var(--crayon-red) 0 14%, transparent 18%),
        radial-gradient(ellipse 11% 6% at 42% 62%, var(--crayon-red) 0 60%, transparent 74%),
        radial-gradient(circle at 70% 46%, var(--crayon-yellow) 0 13%, transparent 17%),
        radial-gradient(ellipse 6% 12% at 62% 58%, var(--crayon-yellow) 0 60%, transparent 74%);
    filter: blur(1px) contrast(1.08);
    border-radius: 52% 40% 55% 43% / 45% 53% 47% 56%;
    transform: rotate(-6deg);
    opacity: .95;
}
.page-image.has-splash img { position: relative; border-radius: 10px; }

/* submit-hero-v1: big colourful submit page hero */
.hero--submit { background: linear-gradient(135deg, #fff4cc 0%, #ffe9f5 50%, #e8f8ff 100%); position: relative; overflow: hidden; }
.hero__heading--big { font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.08; }
.hero--submit .hero__text { font-size: clamp(1rem, 2.2vw, 1.25rem); max-width: 620px; margin-left: auto; margin-right: auto; }


/* page-hero-consistent-v1: unified colourful hero + themed floating decorations */
.hero--consistent { position: relative; overflow: hidden; padding: 64px 0 56px; background: linear-gradient(135deg, #fff4cc 0%, #ffe9f5 50%, #e8f8ff 100%); }
.hero--consistent .hero__inner { position: relative; text-align: center; max-width: 880px; margin: 0 auto; z-index: 2; }
.hero--consistent .hero__heading--big { font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.08; margin: 0 0 16px; }
.hero--consistent .hero__text { font-size: clamp(1rem, 2.2vw, 1.2rem); max-width: 620px; margin: 0 auto; }
.hero--consistent .hero__eyebrow { margin-bottom: 10px; }
.hero__deco { position: absolute; width: 60px; height: 60px; background-repeat: no-repeat; background-size: contain; opacity: .9; z-index: 1; pointer-events: none; }
.hero__deco--1 { top: 16%; left: 6%; transform: rotate(-12deg); }
.hero__deco--2 { top: 22%; right: 7%; transform: rotate(14deg); width: 54px; height: 54px; }
.hero__deco--3 { bottom: 18%; left: 11%; transform: rotate(8deg); width: 50px; height: 50px; }
.hero__deco--4 { bottom: 14%; right: 9%; transform: rotate(-7deg); width: 56px; height: 56px; }
@media (max-width: 640px) { .hero__deco--1, .hero__deco--3 { display: none; } .hero__deco { width: 42px; height: 42px; } }
.hero--theme-default .hero__deco--1 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Ccircle cx='30' cy='30' r='22' fill='none' stroke='%23ff5d5d' stroke-width='4' stroke-dasharray='8 4'/%3E%3C/svg%3E"); }
.hero--theme-default .hero__deco--2 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 40'%3E%3Cpath d='M5,20 L15,5 L25,20 L35,5 L45,20 L55,5 L65,20' fill='none' stroke='%234cc9f0' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.hero--theme-default .hero__deco--3 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Cpath d='M25,5 L30,20 L46,22 L33,32 L37,46 L25,38 L13,46 L17,32 L4,22 L20,20 Z' fill='%23ffb703' stroke='%232b2b2b' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.hero--theme-default .hero__deco--4 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 30'%3E%3Cpath d='M4,15 C18,4 30,28 44,15 C58,2 70,28 78,15' fill='none' stroke='%2357cc99' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.hero--theme-auction .hero__deco--1, .hero--theme-auction .hero__deco--2, .hero--theme-auction .hero__deco--4 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg stroke='%239b5de5' stroke-width='4' stroke-linecap='round' fill='none'%3E%3Crect x='30' y='6' width='22' height='12' rx='3' transform='rotate(40 41 12)'/%3E%3Cline x1='34' y1='16' x2='20' y2='40'/%3E%3Cline x1='10' y1='54' x2='30' y2='54'/%3E%3C/g%3E%3C/svg%3E"); }
.hero--theme-auction .hero__deco--2 { filter: hue-rotate(120deg); }
.hero--theme-auction .hero__deco--4 { filter: hue-rotate(220deg); }
.hero--theme-auction .hero__deco--3 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Cpath d='M25,5 L30,20 L46,22 L33,32 L37,46 L25,38 L13,46 L17,32 L4,22 L20,20 Z' fill='%23ffb703' stroke='%232b2b2b' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.hero--theme-gallery .hero__deco--1 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Crect x='8' y='10' width='44' height='36' rx='3' fill='none' stroke='%234cc9f0' stroke-width='4'/%3E%3Ccircle cx='20' cy='22' r='4' fill='%23ffb703'/%3E%3Cpath d='M14,40 L26,28 L34,36 L44,24 L48,40 Z' fill='%2357cc99'/%3E%3C/svg%3E"); }
.hero--theme-gallery .hero__deco--2 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Cpath d='M25,5 L30,20 L46,22 L33,32 L37,46 L25,38 L13,46 L17,32 L4,22 L20,20 Z' fill='%23ff85c0' stroke='%232b2b2b' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.hero--theme-gallery .hero__deco--3 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 40'%3E%3Cpath d='M5,20 L15,5 L25,20 L35,5 L45,20 L55,5 L65,20' fill='none' stroke='%2357cc99' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.hero--theme-gallery .hero__deco--4 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='18' fill='none' stroke='%23ff8c42' stroke-width='4' stroke-dasharray='7 5'/%3E%3C/svg%3E"); }
/* about-headers-v1: centre section headers + consistent size + spacing below */
.section--story .section__heading,
.section--team .section__heading,
.section--money-home .section__heading,
.section--money .section__heading {
    display: block;
    text-align: center;
    font-size: clamp(2rem, 4.5vw, 2.8rem) !important;
    margin: 0 auto 24px !important;
}
.section--story .section__intro,
.section--team .section__intro { text-align: center; }

/* nav-brand-logo-v1: branded logo image in top-left (replaces CIC text) */
.nav__brand-logo { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; -webkit-user-select: none; user-select: none; }
.nav__brand-logo img { height: 160px; width: auto; display: block; -webkit-user-drag: none; user-drag: none; }
@media (max-width: 600px) { .nav__brand-logo img { height: 88px; } }

/* chloe-am3: centre all section headings site-wide + spacing fixes */
.section__heading { display: block !important; text-align: center !important; margin-left: auto !important; margin-right: auto !important; }
/* line space after Visit website button in charity cards */
.crew-card .btn { margin-bottom: 10px; }
.crew-card { padding-bottom: 8px; }
/* line space between gallery hero and the paintwork image */
.page-images { margin-top: 40px; }

/* chloe-am4: more breathing room between headings and their info text */
.section__heading { margin-bottom: 22px !important; }
.section__intro { margin-top: 14px; line-height: 1.6; }
.section--features .section__heading, .section--what .section__heading { margin-bottom: 26px !important; }

/* chloe-am5: compact mobile header */
@media (max-width: 600px) {
    .nav { padding: 8px 0; }
    .nav--scrolled .nav__brand-logo img, .nav .nav__brand-logo img { transition: height 0.2s ease; }
}

/* join-nudge-v1: subtle homepage prompt linking to the /join waitlist page */
.section--join-nudge { padding: 28px 0; }
.join-nudge { text-align: center; font-size: 1.05rem; color: var(--ink); margin: 0; line-height: 1.6; }
.join-nudge__link { display: inline-block; font-weight: 800; color: var(--crayon-purple); text-decoration: none; border-bottom: 3px solid var(--crayon-sun); padding-bottom: 1px; margin-left: 6px; white-space: nowrap; transition: color 0.15s ease, border-color 0.15s ease; }
.join-nudge__link:hover { color: var(--crayon-pink); border-color: var(--crayon-pink); }
@media (max-width: 600px) { .join-nudge__link { margin-left: 0; display: block; margin-top: 6px; } }

/* nav-balance-v1: widen nav wrap so logo sits left and menu has equal margin both sides */
.nav .wrap { width: min(1400px, 96vw); }
@media (max-width: 1080px) { .nav .wrap { width: min(1400px, 96vw); } }



/* nav-centre-v3: menu centred in space between logo and an equal-width right reserve */
@media (min-width: 861px) {
    .nav .wrap { justify-content: flex-start; gap: 0; }
    .nav .wrap .nav__links { flex: 1; justify-content: center; padding-right: 180px; }
}
@media (min-width: 861px) and (max-width: 1240px) {
    .nav .wrap .nav__links { padding-right: 0; }
}
