/*
 * site.css: the public site and family pages. Every color, font and weight comes from
 * the active theme's tokens (assets/css/themes/<theme>.css). Mobile first: the base
 * rules are for a 360 px phone; wider screens add to them.
 */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
input, button, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* ---------- base ---------- */
body {
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  text-rendering: optimizeLegibility;
}
h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: var(--f-display-weight);
  line-height: 1.15;
  color: var(--c-primary);
  color: var(--c-heading, var(--c-primary));
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p, li { max-width: 68ch; }
a { color: var(--c-link); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.14em; }
strong { font-weight: 800; }

/* A two-color focus ring: visible on light and dark backgrounds alike. */
:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 7px var(--c-focus-on-dark);
  border-radius: 4px;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Icons keep their size. With the max-width above, WebKit (Safari) lets an icon shrink to nothing when a tight
   flex row measures it, so the header's pills came out narrower than their labels on iPhones (2026-10-22). */
.icon { width: 1.2em; height: 1.2em; max-width: none; vertical-align: -0.22em; flex: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--c-surface); color: var(--c-text); padding: 0.6rem 1rem; border-radius: 0.5rem;
}
.skip:focus { top: 1rem; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: 70rem; margin-inline: auto; padding-inline: 1rem; }
.narrow { max-width: 44rem; }
.eyebrow {
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--c-muted); margin-bottom: 0.6rem;
}
.lead { font-size: 1.15rem; line-height: 1.55; }
.small { font-size: 0.92rem; color: var(--c-muted); }
.center { text-align: center; }

/* ---------- bars above the header ---------- */
.preview-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem;
  padding: 0.6rem 1rem; background: #1F2A24; color: #FFFFFF; font-size: 0.95rem;
}
.preview-bar a { color: #FFE3A3; font-weight: 700; }
.announce { background: var(--c-surface-2); color: var(--c-text); padding: 0.65rem 0; font-size: 0.98rem; }

/* ---------- header and navigation (round 1) ---------- */
/* The bear and the name on one line with the menu. Below 75rem the menu is a panel that a button
   opens; with no JavaScript it's simply always shown. Get Involved opens a list of its sections. */
.site-header { position: relative; z-index: 20; background: var(--c-header-bg); color: var(--c-header-text); border-bottom: 1px solid var(--c-border); }
.header-inner { display: flex; align-items: center; gap: 0.6rem; padding-block: 0.5rem; }
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem; min-height: 44px; margin-right: auto;
  color: inherit; text-decoration: none; font-family: var(--f-display); font-weight: var(--f-display-weight);
  font-size: 1.12rem; line-height: 1.1;
}
.brand picture { flex: none; }
.brand-bear { display: block; width: auto; height: 2.9rem; }
/* The pills never shrink or wrap: the name gives way instead (two lines), and narrow phones get the smaller
   sizes below. */
.header-tools { display: flex; flex: none; align-items: center; gap: 0.5rem; }
.lang-switch, .menu-toggle {
  display: inline-flex; flex: none; align-items: center; gap: 0.35rem; min-height: 44px; padding: 0.25rem 0.85rem;
  border: 1.5px solid currentColor; border-radius: 999px; background: transparent; color: inherit;
  text-decoration: none; font: inherit; font-weight: 700; font-size: 0.95rem; white-space: nowrap; cursor: pointer;
}
.menu-toggle .icon { width: 1.15rem; height: 1.15rem; }
/* Under 400 px: smaller pills, name and bear, so the row fits with the name on two lines. */
@media (max-width: 24.99rem) {
  .header-inner { gap: 0.5rem; }
  .brand { gap: 0.45rem; font-size: 1.02rem; }
  .brand-bear { height: 2.6rem; }
  .header-tools { gap: 0.4rem; }
  .lang-switch, .menu-toggle { gap: 0.3rem; padding-inline: 0.7rem; font-size: 0.9rem; }
  .menu-toggle .icon { width: 1.1rem; height: 1.1rem; }
}
/* Under 360 px (small phones, or zoomed in): Menu is a round icon button; screen readers still hear "Menu". */
@media (max-width: 22.49rem) {
  .menu-toggle { justify-content: center; min-width: 44px; padding-inline: 0; }
  .menu-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.site-nav { display: none; }
.site-nav.is-open, .no-js .site-nav { display: block; }
.site-nav {
  position: absolute; top: 100%; left: 0; right: 0; padding: 0.25rem 1rem 1.1rem;
  background: var(--c-header-bg); border-bottom: 1px solid var(--c-border); box-shadow: 0 16px 28px rgba(0, 0, 0, 0.12);
}
.no-js .site-nav { position: static; box-shadow: none; border: 0; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list > li { border-bottom: 1px solid var(--c-border); }
.nav-list a { display: flex; align-items: center; white-space: nowrap; min-height: 48px; color: inherit; text-decoration: none; font-weight: 700; }
.nav-list a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--c-decor-2); text-decoration-thickness: 3px; text-underline-offset: 0.35em; }
.has-sub { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.sub-toggle {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0;
  border: 0; border-radius: 0.6rem; background: transparent; color: inherit; cursor: pointer;
}
.sub-toggle .icon { width: 1.1rem; height: 1.1rem; transition: transform 0.2s ease; }
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.sub { grid-column: 1 / -1; display: none; list-style: none; margin: 0 0 0.5rem; padding: 0 0 0 1rem; }
.sub.is-open, .no-js .sub { display: block; }
.sub a { min-height: 44px; font-weight: 600; }
.nav-donate { width: 100%; margin-top: 1rem; }
.btn-cta { background: var(--c-cta-bg); color: var(--c-cta-text); }
.btn-cta:hover { filter: brightness(1.06); }
.btn-cta .icon { width: 1.1rem; height: 1.1rem; }

@media (min-width: 75rem) {
  .site-header .wrap { max-width: 90rem; }   /* 82rem until the Sign in button: the Spanish row needs the room */
  .header-inner { gap: 1.25rem; padding-block: 0.65rem; }
  .brand { margin-right: 0; }
  .menu-toggle { display: none; }
  .site-nav, .no-js .site-nav {
    display: flex; position: static; align-items: center; gap: 1.1rem; margin-left: auto;
    padding: 0; background: none; border: 0; box-shadow: none;
  }
  .nav-list { display: flex; align-items: center; gap: 0 1.05rem; }
  .nav-list > li { position: relative; border: 0; }
  .nav-list > li > a { min-height: 44px; border-bottom: 3px solid transparent; }
  .nav-list > li > a[aria-current="page"] { text-decoration: none; border-bottom-color: var(--c-decor-2); }
  .nav-list > li > a:hover { border-bottom-color: currentColor; }
  .has-sub { display: flex; gap: 0.1rem; }
  .sub-toggle { min-width: 32px; }
  .sub {
    position: absolute; top: calc(100% + 0.35rem); left: -0.75rem; z-index: 30; min-width: 15.5rem; margin: 0; padding: 0.45rem;
    background: var(--c-surface); color: var(--c-text); border: 1px solid var(--c-border); border-radius: 0.9rem;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.14);
  }
  .no-js .sub { display: none; }
  .sub a { padding: 0 0.8rem; border-radius: 0.6rem; }
  .sub a:hover, .sub a:focus-visible { background: var(--c-surface-2); }
  .nav-donate { width: auto; margin: 0; min-height: 44px; padding-block: 0.45rem; }
}
/* The full menu starts at 75rem. Its Spanish labels are longer, so between 75rem and 86rem it is a little tighter, and its links never wrap:
   the logo name gives way before the menu does, and below 75rem the Menu button takes over. */
@media (min-width: 75rem) and (max-width: 86rem) {
  .header-inner { gap: 0.9rem; }
  .site-nav { gap: 0.8rem; }
  .nav-list { gap: 0 0.8rem; }
  .nav-list > li > a { font-size: 0.95rem; }
  .nav-donate { padding-inline: 1rem; }
}
/* Sign in (Launch Updates item 2): an outline pill like the language switch, beside Donate on a computer and under
   it, full width, in the phone menu. Between 75rem and 86rem it drops its picture, so the Spanish name keeps two lines. */
.nav-signin {
  display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 48px; width: 100%; margin-top: 0.75rem; padding: 0.25rem 0.85rem;
  border: 1.5px solid currentColor; border-radius: 999px; color: inherit; text-decoration: none;
  font-weight: 700; font-size: 1.02rem; white-space: nowrap;
}
.nav-signin .icon { width: 1.15rem; height: 1.15rem; }
.nav-signin:hover { background: color-mix(in srgb, currentColor 10%, transparent); }   /* works on the dark header of the third theme too */
@media (min-width: 75rem) {
  .nav-signin { width: auto; margin: 0; min-height: 44px; font-size: 0.95rem; }
}
@media (min-width: 75rem) and (max-width: 86rem) {
  .nav-signin .icon { display: none; }
}
.signin-org { margin-top: 0.4rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.35rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 800; font-size: 1.02rem; line-height: 1.2; text-decoration: none; text-align: center;
}
.btn-primary { background: var(--c-primary); color: var(--c-on-primary); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn-secondary:hover { background: var(--c-surface-2); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
/* One gap above every button row, whether it is a .actions row or a paragraph that holds a button. */
.section p:has(> .btn), .section .actions { margin-top: 1.25rem; }
.btn { text-wrap: balance; }
/* On a phone, stacked buttons are one width and fill the row. */
@media (max-width: 29.99rem) {
  .actions { flex-direction: column; align-items: stretch; }
  .actions > .btn:not(.btn-small), .section p:has(> .btn:only-child) > .btn:not(.btn-small) { width: 100%; }
  .btn { padding-inline: 1rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--c-hero-bg); color: var(--c-hero-text); padding-block: 2.5rem 3rem; }
.hero h1 { color: inherit; max-width: 20ch; }
.hero .eyebrow { color: inherit; opacity: 0.92; }
.hero .hero-place { display: flex; align-items: center; gap: 0.75rem; opacity: 1; }
.hero-place > span { opacity: 0.92; }
.hero-place picture { flex: none; }
.hero-bear { display: block; height: 4.75rem; width: auto; max-width: none; filter: drop-shadow(0 2px 6px rgb(0 0 0 / 0.2)); }
.hero .lead { margin-top: 1rem; max-width: 46ch; }
.hero .btn-primary { background: var(--c-cta-bg); color: var(--c-cta-text); }
.hero .btn-secondary { color: inherit; border-color: currentColor; }
.hero .btn-secondary:hover { background: transparent; text-decoration: underline; }
.hero-inner { position: relative; z-index: 1; }
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.hero-art .art { position: absolute; display: none; }
.art-a { width: 3.2rem; height: 3.2rem; right: 6%; top: 10%; color: var(--c-decor-1); }
.art-b { width: 3.6rem; height: 3.6rem; right: 18%; bottom: 8%; color: var(--c-decor-2); opacity: 0.9; }
.art-c { width: 2.6rem; height: 2.6rem; right: 34%; top: 14%; color: var(--c-decor-3); opacity: 0.85; }
.art-d { width: 1.8rem; height: 1.8rem; right: 3%; bottom: 30%; color: var(--c-decor-1); }
.art-e { width: 4rem; height: 4rem; right: 8%; top: 8%; color: var(--c-decor-1); }
.art-f { width: 7rem; height: 3.5rem; left: -1rem; bottom: 0.4rem; color: var(--c-decor-3); opacity: 0.7; }
/* Each theme shows its own few pieces of art; the HTML is the same. */
[data-theme="evergreen"] .art-a, [data-theme="evergreen"] .art-b, [data-theme="evergreen"] .art-d, [data-theme="evergreen"] .art-f { display: block; }
[data-theme="seaglass"] .art-b, [data-theme="seaglass"] .art-c, [data-theme="seaglass"] .art-d, [data-theme="seaglass"] .art-a { display: block; }
[data-theme="silentnight"] .art-e, [data-theme="silentnight"] .art-c, [data-theme="silentnight"] .art-d { display: block; }
@media (max-width: 34.99rem) {
  .hero-art .art-b, .hero-art .art-c, .hero-art .art-d { display: none !important; }
}

/* ---------- sections and cards ---------- */
.section { padding-block: 2.5rem; }
.section + .section { padding-top: 0.5rem; }
/* A tinted band has the same air above and below its content, and the section after a band starts with full air too. */
.section-alt { background: var(--c-surface-2); }
.section + .section.section-alt, .section-alt + .section { padding-top: 2.75rem; }
.section.section-alt { padding-bottom: 2.75rem; }
/* A band that ends the page runs into the footer: no cream strip between them. */
main:has(> .section-alt:last-child) ~ .site-footer { margin-top: 0; }
.section h2 { margin-bottom: 0.8rem; }
.section .lead { margin-bottom: 1.2rem; }
.card {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 1.1rem;
  padding: 1.25rem; box-shadow: 0 10px 30px -22px rgba(0, 0, 0, 0.35);
}
.cards { display: grid; gap: 1rem; }
.card h3 { margin-bottom: 0.4rem; }
.card .icon-badge { width: 2.6rem; height: 2.6rem; border-radius: 999px; display: grid; place-items: center; background: var(--c-surface-2); color: var(--c-primary); margin-bottom: 0.75rem; }
.card .icon-badge .icon { width: 1.4rem; height: 1.4rem; }
.card-link { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; margin-top: 0.25rem; font-weight: 800; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1rem; }
.steps > li { counter-increment: step; position: relative; padding-left: 3rem; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -0.1rem; width: 2.1rem; height: 2.1rem; border-radius: 999px;
  display: grid; place-items: center; background: var(--c-primary); color: var(--c-on-primary); font-weight: 800;
}
.facts { display: grid; gap: 0.75rem; }
.fact { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.75rem; align-items: start; }
.fact dt { font-weight: 800; }
.fact .icon { color: var(--c-primary); }

/* ---------- forms ---------- */
.stack > * + * { margin-top: 1rem; }
.field label, .field .label { display: block; font-weight: 800; margin-bottom: 0.3rem; }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 48px; padding: 0.65rem 0.8rem;
  background: var(--c-surface); color: var(--c-text);
  border: 1.5px solid var(--c-field-border); border-radius: 0.7rem;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field .hint { font-size: 0.92rem; color: var(--c-muted); margin-top: 0.3rem; }
.field-error { color: var(--c-danger); font-weight: 700; font-size: 0.95rem; margin-top: 0.3rem; }
.field-error:empty { display: none; }
.is-invalid input, .is-invalid select, .is-invalid textarea { border-color: var(--c-danger); border-width: 2px; }
.opt { font-weight: 600; color: var(--c-muted); font-size: 0.9rem; }
.choice-list { display: grid; gap: 0.5rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; min-height: 44px; }
.check input { width: 1.3rem; height: 1.3rem; margin-top: 0.2rem; accent-color: var(--c-primary); flex: none; }

/* ---------- notices ---------- */
.notice { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.85rem 1rem; border-radius: 0.8rem; font-weight: 600; }
.notice-ok { background: var(--c-success-bg); color: var(--c-success); }
.notice-error { background: var(--c-danger-bg); color: var(--c-danger); }
.notice-warn { background: var(--c-warning-bg); color: var(--c-warning); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0.75rem; }
.faq-list details { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 0.9rem; }
.faq-list summary { cursor: pointer; padding: 1rem 1.1rem; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 1rem; min-height: 48px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--c-primary); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details > div { padding: 0 1.1rem 1.1rem; }
.faq-list details > div > * + * { margin-top: 0.6rem; }

/* ---------- error page ---------- */
.error-page { padding-block: 3rem 4rem; }
.error-page h1 { margin-bottom: 0.8rem; }
.error-page .lead { margin-bottom: 1.5rem; }

/* ---------- the engraved footer (round 1) ---------- */
/* The engraved-footer skill's dark variant: links over the theme's deepest color, a fine grain, and
   the cream scratchboard drawing along the bottom, fading up into the color. */
.site-footer { position: relative; overflow: hidden; margin-top: 3rem; background: var(--c-footer-bg); color: var(--c-footer-text); font-size: 0.95rem; line-height: 1.55; }
.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.35; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .9  0 0 0 0 .88  0 0 0 0 .82  0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.footer-inner { position: relative; z-index: 2; max-width: 74rem; margin: 0 auto; padding: 3.5rem 1rem 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.1rem 1.25rem; }
.footer-brand, .footer-col:last-child { grid-column: 1 / -1; }
.footer-logo { display: block; width: 4rem; height: auto; }
.footer-name { margin: 0.9rem 0 0.35rem; font-family: var(--f-display); font-weight: var(--f-display-weight); font-size: 1.4rem; line-height: 1.2; letter-spacing: -0.01em; }
.footer-tagline { margin: 0 0 0.5rem; text-wrap: balance; }
.footer-desc { max-width: 40ch; margin: 0 0 1rem; color: var(--c-footer-soft); font-size: 0.93rem; text-wrap: balance; }
.footer-org { display: flex; align-items: center; gap: 0.75rem; }
.footer-org img { width: 2.5rem; height: 2.5rem; }
.footer-label { margin: 0 0 0.85rem; color: var(--c-footer-label); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-col ul { display: grid; gap: 0.1rem; margin: 0; padding: 0; list-style: none; }
.site-footer a {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; color: inherit; text-decoration: none;
  background: linear-gradient(var(--c-footer-accent), var(--c-footer-accent)) 0 85% / 0 1px no-repeat; transition: background-size 0.25s ease;
}
.site-footer a:hover, .site-footer a:focus-visible { background-size: 100% 1px; }
.site-footer a:focus-visible { outline: 2px solid var(--c-footer-accent); outline-offset: 3px; border-radius: 2px; }
.site-footer .icon { width: 1.15rem; height: 1.15rem; }
.footer-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.6rem; margin-top: 2.75rem; padding: 1rem 0 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16); border-top-color: color-mix(in srgb, var(--c-footer-text) 16%, transparent);
  color: var(--c-footer-label); font-size: 0.82rem;
}
.footer-bar a img { width: 1.9rem; height: auto; opacity: 0.92; }
.footer-motto { font-style: italic; }
/* The Amazon Associates line: its own row under the bar's small print (a <p>, so no 68ch cap). */
.footer-amazon { flex: 1 0 100%; max-width: none; margin: 0.35rem 0 0; }
.footer-art { position: relative; z-index: 0; margin-top: -2.5rem; line-height: 0; }
.footer-art img { display: block; width: 100%; height: auto; }
@media (max-width: 700px) {
  .footer-art img { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%); mask-image: linear-gradient(to bottom, transparent 0, #000 12%); }
}
@media (min-width: 701px) {
  /* The cubs sit low in the drawing: wide screens lose sky, not cubs. The art tucks under the bar,
     with its top 10% clear so the bar never sits on the moss. */
  .footer-art { margin-top: -5rem; }
  .footer-art img {
    max-height: 760px; object-fit: cover; object-position: 50% 66%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 10%, #000 30%);
            mask-image: linear-gradient(to bottom, transparent 0, transparent 10%, #000 30%);
  }
}
@media (min-width: 900px) {
  .footer-inner { padding: 4.5rem 2.5rem 0; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 0; }
  .footer-brand, .footer-col:last-child { grid-column: auto; }
  .footer-brand { padding-right: 2.5rem; }
  .footer-col { padding: 0.25rem 0 0.25rem 2rem; border-left: 1px solid rgba(255, 255, 255, 0.16); border-left-color: color-mix(in srgb, var(--c-footer-text) 16%, transparent); }
  .footer-motto { margin-left: auto; }
}
@media (min-width: 1600px) { .footer-art img { max-height: 860px; } }

/* ---------- photos, the showcase and giving (round 1) ---------- */
picture img { display: block; max-width: 100%; height: auto; }
.photo-grid { display: grid; gap: 0.9rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.photo-grid img, .about-portrait img { width: 100%; border-radius: 1rem; }
.about-story { display: grid; gap: 1.5rem; align-items: center; }
.about-portrait { max-width: 22rem; margin: 0 auto; }
.showcase-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 1rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.showcase-item { min-width: 0; text-align: center; }
/* minmax(0, 1fr): a wide logo's own size never widens its card past the column */
.showcase-item > a { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem; justify-items: center; color: inherit; text-decoration: none; }
.showcase-item > a:hover .showcase-name { text-decoration: underline; }
/* An entry with no link has its tile and name straight in the item: give them the same gap, so every name in a row starts level. */
.showcase-item:not(:has(> a)) { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: start; gap: 0.5rem; }
.showcase-logo { display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 2; padding: 0.75rem; border-radius: 1rem; background: #fff; border: 1px solid var(--c-border); }
.showcase-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.showcase-tile { display: block; width: 100%; aspect-ratio: 3 / 2; border-radius: 1rem; overflow: hidden; border: 1px solid var(--c-border); background: #fff; }
.showcase-tile img { display: block; width: 100%; height: 100%; }
.showcase-word { font-family: var(--f-display); font-weight: var(--f-display-weight); font-size: 1.1rem; color: #2B302D; }
.showcase-name { font-weight: 700; overflow-wrap: anywhere; text-wrap: balance; line-height: 1.25; }
.give-cards { display: grid; gap: 1rem; margin-top: 1rem; }
.give-card h3 { font-size: 1.35rem; }
.give-handle-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.give-handle { font-size: 1.1rem; font-weight: 700; color: var(--c-primary); word-break: break-all; }
.give-qr { margin: 1rem 0 0; }
.give-qr .qr { display: block; width: min(12rem, 70vw); height: auto; border-radius: 0.5rem; }
.give-qr figcaption { margin-top: 0.4rem; }
.give-note { margin-top: 1rem; }
/* Five photos as a mosaic: one big then two by two on tablets; three then two on computers. */
@media (min-width: 40rem) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid li:first-child { grid-column: span 2; }
  .about-story { grid-template-columns: 1.4fr 1fr; }
}
@media (min-width: 62rem) {
  .photo-grid { grid-template-columns: repeat(6, 1fr); }
  .photo-grid li, .photo-grid li:first-child { grid-column: span 2; }
  .photo-grid li:nth-child(n+4) { grid-column: span 3; }
  .give-cards { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- wider screens ---------- */
@media (min-width: 40rem) {
  .cards-2 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-block: 3.5rem 4rem; }
}
@media (min-width: 62rem) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .hero { padding-block: 4.5rem 5rem; }
  .art-a { width: 4.5rem; height: 4.5rem; }
  .art-b { width: 5rem; height: 5rem; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .art-d { animation: twinkle 3.2s ease-in-out infinite; }
  @keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(0.85); } }
}

/* ---------- page parts (Phase 2) ---------- */
.page-head { padding-block: 2rem 0.5rem; }
.page-head h1 { margin-bottom: 0.6rem; }
.page-head .lead { margin-bottom: 1rem; }
.status-line { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.status-line .icon { color: var(--c-primary); }
.jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.jump a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.3rem 0.9rem; border-radius: 999px;
  border: 1.5px solid var(--c-field-border); color: var(--c-text); text-decoration: none; font-weight: 700; font-size: 0.95rem; background: var(--c-surface);
}
.jump a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.section h2 .icon { color: var(--c-decor-2); width: 1.1em; height: 1.1em; }
.section[id] { scroll-margin-top: 1rem; }
.ticks { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.ticks li { display: flex; gap: 0.6rem; align-items: flex-start; }
.ticks .icon { color: var(--c-success); margin-top: 0.15rem; }
.prose > * + * { margin-top: 0.8rem; }
.prose h2 { margin-top: 1.8rem; font-size: 1.35rem; }
.give-list { list-style: none; padding: 0; display: grid; gap: 0.75rem; margin: 1rem 0; }
.give-report { margin-top: 1.75rem; }
#money .notice { margin-top: 1.25rem; }
.give { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 0.75rem; align-items: center; }
.give-name { font-weight: 800; }
.give-handle { grid-column: 1; font-size: 1.1rem; font-weight: 700; color: var(--c-primary); word-break: break-all; }
.give .btn { grid-column: 2; grid-row: 1 / span 2; }
.btn-small { min-height: 44px; padding: 0.45rem 0.9rem; font-size: 0.95rem; }
.contact-ways { list-style: none; padding: 0; display: grid; gap: 0.5rem; font-weight: 700; }
.contact-ways .icon { color: var(--c-primary); }
.contact-ways li { display: flex; align-items: center; gap: 0.4rem; }
.contact-ways a, .frame p > strong:only-child > a[href^="mailto:"] { display: inline-flex; align-items: center; min-height: 44px; }
.choice-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice-group legend { padding: 0; }
form.card > h2, form.card > h3 { margin-bottom: 0.25rem; }
.toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); background: var(--c-text); color: var(--c-bg); padding: 0.6rem 1.1rem; border-radius: 999px; font-weight: 700; z-index: 20; }

/* Radios and checkboxes inside a field: beside their text, not stretched like inputs. */
.field .check { display: flex; gap: 0.65rem; align-items: center; min-height: 44px; margin: 0; font-weight: 600; }
.field .check input { display: inline-block; width: 1.35rem; height: 1.35rem; min-height: 0; margin: 0; padding: 0; flex: none; accent-color: var(--c-primary); }
.field .choice-list { gap: 0.15rem; }
.field .choice-inline { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.cards { gap: 1.5rem; }

/* ---------- family pages (Phase 3) ---------- */
.account-main { padding-block: 1.5rem 2rem; }
.account-main h1 { margin-bottom: 0.5rem; }
.account-main .lead { margin-bottom: 1.1rem; }
.account-main > .wrap > * + * { margin-top: 1rem; }
.nav-form { margin: 0; display: inline-flex; }
.nav-button { background: none; border: 0; padding: 0; min-height: 44px; color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 0.2em; }
.progress ol { list-style: none; padding: 0; display: flex; gap: 0.35rem; overflow-x: auto; scrollbar-width: none; }
.progress ol::-webkit-scrollbar { display: none; }
.progress li { flex: none; }
.progress a, .progress li > span:first-child { text-decoration: none; color: var(--c-muted); }
.progress li a, .progress li { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 40px; font-size: 0.9rem; font-weight: 700; color: var(--c-muted); }
.progress-n { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 999px; border: 1.5px solid var(--c-field-border); font-size: 0.85rem; }
.progress .is-here { color: var(--c-primary); }
.progress .is-here .progress-n { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }
.progress .is-done .progress-n { border-color: var(--c-success); color: var(--c-success); }
.progress-l { padding-right: 0.5rem; }
/* I17: the hidden "(you are here)" text is absolutely positioned; without a positioned parent it escaped the bar's
   clipping and, with step 4 past the edge, made the page scroll sideways. */
.progress li { position: relative; }
/* On a phone only the step you are on shows its words (the others stay a numbered circle, still read aloud and still links),
   so the current step is never off the screen; "Step N of M" above the bar says the rest. */
@media (max-width: 40rem) {
  .progress li:not(.is-here) .progress-l {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .progress li:not(.is-here) a, .progress li:not(.is-here) { min-width: 40px; justify-content: center; }
}
.status-chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.85rem; border-radius: 999px; font-weight: 800; background: var(--c-surface-2); color: var(--c-text); }
.status-approved { background: var(--c-success-bg); color: var(--c-success); }
.status-info, .status-waitlisted, .status-partial { background: var(--c-warning-bg); color: var(--c-warning); }
.status-declined, .status-withdrawn { background: var(--c-danger-bg); color: var(--c-danger); }
.kid-cards { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.kid-cards .card.needs { border-color: var(--c-warning); }
.kid-cards h2 { font-size: 1.3rem; }
.kid-list { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.cub-status { display: inline-flex; align-items: center; gap: 0.3rem; margin-left: 0.4rem; padding: 0.1rem 0.6rem; border-radius: 999px; font-size: 0.85rem; font-weight: 800; }
.cub-status svg { width: 1em; height: 1em; }
.cub-matched { background: var(--c-success-bg); color: var(--c-success); }
.cub-waiting { background: var(--c-surface-2); color: var(--c-muted); }
.pill-code { display: inline-block; margin-left: 0.4rem; padding: 0.1rem 0.55rem; border-radius: 0.4rem; background: var(--c-surface-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; letter-spacing: 0.04em; }
.thread { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.msg { padding: 0.75rem 0.9rem; border-radius: 0.9rem; background: var(--c-surface-2); }
.msg-family { background: var(--c-surface); border: 1px solid var(--c-border); }
.msg-who { font-size: 0.85rem; font-weight: 800; color: var(--c-muted); }
.review-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.review-head h2 { font-size: 1.2rem; }
.quote { font-style: italic; color: var(--c-muted); }
.wish-list { padding-left: 1.25rem; }
.row-actions { font-weight: 700; }
.btn-link { background: none; border: 0; padding: 0.5rem 0; min-height: 44px; font-weight: 700; text-decoration: underline; color: var(--c-link); }
.btn-link.danger { color: var(--c-danger); }
.remove-form { margin-top: 0.5rem; }
.wish-row legend { font-weight: 800; padding: 0; }
.notice ul { margin: 0.3rem 0 0; padding-left: 1.1rem; }
.notice a { color: inherit; }

/* Time slots (round 1): the 2025 sheets' colors, always named in text too. */
.slot-dot { display: inline-block; width: 0.9em; height: 0.9em; border-radius: 50%; vertical-align: -0.1em; margin-right: 0.3rem; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); }
.slot-red { background: #C62828; } .slot-green { background: #2E7D32; } .slot-gold { background: #D4A017; }
.slot-blue { background: #1565C0; } .slot-purple { background: #6A1B9A; } .slot-gray { background: #8A8A8A; }
.rsvp-actions { margin-top: 0.25rem; }

/* ---------- Get Involved and Contact (round 1) ---------- */
.involved-split { display: grid; gap: 1.5rem; align-items: center; }
.involved-photo img { width: 100%; border-radius: 1rem; }
.involved-photo { max-width: 26rem; margin: 0 auto; }
.section .eyebrow { margin-top: -0.25rem; }
.contact-sent > div > * + * { margin-top: 0.5rem; }
@media (min-width: 48rem) { .involved-split { grid-template-columns: 1.5fr 1fr; } }

/* ---------- home (round 1): the photo hero, snow, the countdown, dates, steps, the logo row ---------- */
.hero-photos { display: flex; align-items: flex-end; min-height: min(82vh, 46rem); padding-block: 4rem 2.5rem; }
.hero-photos .hero-inner { z-index: 3; }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.is-on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.3));
  background: linear-gradient(to top, color-mix(in srgb, var(--c-hero-bg) 93%, transparent), color-mix(in srgb, var(--c-hero-bg) 84%, transparent) 55%, color-mix(in srgb, var(--c-hero-bg) 60%, transparent) 82%, color-mix(in srgb, var(--c-hero-bg) 30%, transparent));
}
[data-snow] { position: relative; overflow: hidden; }
[data-snow] > canvas { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.hero-photos h1 { max-width: 18ch; }
.hero-text2 { max-width: 46ch; margin-top: 0.75rem; }
.countdown {
  display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 1.4rem; padding: 0.4rem 0.95rem; border-radius: 999px; font-weight: 800;
  background: rgba(255, 255, 255, 0.14); background: color-mix(in srgb, var(--c-hero-text) 14%, transparent);
}
.countdown .icon { color: var(--c-cta-bg); }
.hero-controls { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.hero-btn {
  min-height: 44px; padding: 0.35rem 0.95rem; border: 1.5px solid currentColor; border-radius: 999px;
  background: transparent; color: inherit; font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer;
}
.hero-btn[hidden] { display: none; }
@media (min-width: 48rem) {
  .hero-photos { align-items: center; min-height: min(80vh, 42rem); }
  .hero-shade {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.6) 45%, rgba(0, 0, 0, 0.15));
    background: linear-gradient(to right, color-mix(in srgb, var(--c-hero-bg) 90%, transparent), color-mix(in srgb, var(--c-hero-bg) 66%, transparent) 40%, transparent 72%);
  }
}
.date-cards { display: grid; gap: 1rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.date-card h3 { margin-top: 0.6rem; }
.steps-cards > li h3 { margin-bottom: 0.35rem; font-size: 1.15rem; }
.home-split { display: grid; gap: 2rem; }
@media (min-width: 40rem) { .date-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 48rem) { .home-split { grid-template-columns: 1fr 1fr; } .steps-cards { grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; } }
@media (min-width: 75rem) { .date-cards { grid-template-columns: repeat(4, 1fr); } }

/* The sponsor logo row (marquee.js): wrapped rows without motion, one endless row with it, and a pause button. */
.marquee { --marquee-gap: 1.5rem; overflow: hidden; padding: 0.75rem 0.5rem; }
.marquee-track { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--marquee-gap); margin: 0; padding: 0; list-style: none; }
.marquee-item { flex: none; }
/* Each logo is a tile the server draws (src/lib/showcase.php): the logo centered on a background that fits it. */
.marquee-item a, .marquee-logo { display: block; width: fit-content; margin-inline: auto; border-radius: 0.9rem; overflow: hidden; box-shadow: 0 1px 3px rgba(60, 61, 61, 0.18); }
.marquee-item img { display: block; width: auto; height: 84px; }
.marquee-item a:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; }
.is-animated .marquee-track { flex-wrap: nowrap; justify-content: flex-start; width: max-content; padding-inline-end: var(--marquee-gap); animation: marquee-scroll var(--marquee-duration, 40s) linear infinite; }
.is-animated .marquee-item { min-width: max(9rem, calc((100vw - 9 * var(--marquee-gap)) / 9)); }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }
.marquee-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.75rem; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (min-width: 600px) { .marquee-item img { height: 96px; } }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .is-animated .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; padding-inline-end: 0; }
  .is-animated .marquee-item { min-width: 0; }
  .is-animated .marquee-item[aria-hidden="true"] { display: none; }
  [data-marquee-toggle] { display: none; }
}

/* Steps with a heading each, one column (How it works, Register). Notices with a heading. */
.steps-cards-1 > li h3 { margin-bottom: 0.4rem; font-size: 1.1rem; }
.steps-cards-1 { margin-bottom: 1.25rem; }
.notice > div > p + p { margin-top: 0.4rem; }

/* The family and sponsor portal's own menu (round 1): always shown, a row under the header. */
.acct-nav ul { display: flex; flex-wrap: wrap; gap: 0.1rem 1.1rem; margin: 0 auto; padding-block: 0 0.35rem; list-style: none; }
.acct-nav a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; font-weight: 700; border-bottom: 3px solid transparent; }
.acct-nav a[aria-current="page"] { border-bottom-color: var(--c-decor-2); }
.acct-nav a:hover { border-bottom-color: currentColor; }

/* A sponsor's gift: bought, how it's coming, tracking. Full-width fields on a phone, one row on wider screens. */
.gift-list { list-style: none; padding-left: 0; }
.gift-list > li { padding: 0.8rem 0; border-top: 1px solid var(--c-border); }
.gift-list > li:first-child { border-top: 0; }
.wish-mark { display: inline-block; margin-left: 0.4rem; padding: 0.1rem 0.6rem; border-radius: 999px; font-size: 0.85rem; font-weight: 800; background: var(--c-surface-2); color: var(--c-muted); }
.wish-mark-yours { background: var(--c-text); color: var(--c-surface); }
/* A wish's link as a card: the store's picture and product name, or a grey card that sends the sponsor to the store. */
.link-card { display: flex; flex-direction: row; align-items: center; gap: 0.75rem; padding: 0.6rem; border: 1px solid var(--c-border); border-radius: 12px; background: var(--c-surface); color: var(--c-text); text-decoration: none; min-width: 0; }
.link-card-pic { flex: none; width: 72px; height: 72px; object-fit: contain; border-radius: 8px; background: #fff; }
.link-card-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; overflow-wrap: anywhere; }
.link-card-title { font-weight: 700; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.link-card-none { background: #ECEDEE; color: #3F4549; }
.link-card-none .link-card-pic { background: transparent; }
.link-card:hover, .link-card:focus-visible { border-color: var(--c-primary); }
.link-card:hover .link-card-title, .link-card:focus-visible .link-card-title { text-decoration: underline; }
.gift-form { display: grid; gap: 0.5rem; align-items: center; margin-top: 0.4rem; }
.gift-form select, .gift-form input[type="text"] {
  width: 100%; min-height: 44px; padding: 0.45rem 0.7rem; border: 1.5px solid var(--c-field-border); border-radius: 0.6rem;
  background: var(--c-surface); color: var(--c-text); font: inherit;
}
.gift-form .btn { justify-self: start; }
@media (min-width: 40rem) { .gift-form { grid-template-columns: auto 1fr 1.3fr auto; } }
.practice-bar { max-width: none; margin: 0; padding: 0.3rem 1rem; background: #3C3D3D; color: #F4F6F5; font-size: 0.8rem; line-height: 1.4; text-align: center; }

/* Need a different time? (account pages) */
#change-time { margin-top: 0.75rem; }
#change-time summary { cursor: pointer; font-weight: 600; }
/* Messages list: one conversation per row */
.conv-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.conv-item { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; padding: 0.6rem 0.8rem; border: 1px solid var(--c-border); border-radius: 0.8rem; background: var(--c-surface); }
.conv-item.is-unread { border-width: 2px; }
.conv-item a { font-weight: 800; }
.msg-sponsor { background: var(--c-surface); border: 1px solid var(--c-border); }
.conv-item .pill { font-size: 0.8rem; font-weight: 800; padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--c-surface-2); }

/* What's new on the family and sponsor homes (notifications, D8) */
.notice-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.notice-item { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.6rem; padding: 0.5rem 0.8rem; border: 1px solid var(--c-border); border-radius: 0.8rem; background: var(--c-surface); }
.notice-item.is-unread { border-width: 2px; }
.notice-item a { font-weight: 800; }
.notice-item .pill { font-size: 0.8rem; font-weight: 800; padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--c-surface-2); }

/* ---------- confirmation dialog and upload feedback (site.js); themed by tokens, so all three themes and the account pages ---------- */
.lc-dialog {
  width: min(26rem, calc(100vw - 2rem)); max-width: none; margin: auto; padding: 1.25rem;
  border: 2px solid var(--c-primary); border-radius: 16px; background: var(--c-surface); color: var(--c-text);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.lc-dialog::backdrop { background: rgba(0, 0, 0, 0.55); }
.lc-dialog:not([open]) { display: none; }
.lc-dialog-text { font-size: 1.05rem; font-weight: 700; line-height: 1.45; margin-bottom: 1.1rem; overflow-wrap: anywhere; }
.lc-dialog-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.lc-dialog-actions .btn { flex: 1 1 8rem; min-width: 0; }
.upload-preview { display: flex; align-items: center; gap: 0.6rem; min-width: 0; margin-top: 0.5rem; }
.upload-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--c-border); flex: none; }
.upload-name { min-width: 0; overflow-wrap: anywhere; font-size: 0.92rem; color: var(--c-muted); }
.upload-status { margin-top: 0.5rem; font-weight: 700; color: var(--c-text); }
.upload-status:empty { display: none; }
/* Access (launch review S1): with the text at 200% on a 320 px phone the pills no longer fit beside the name,
   so on phones and tablets the row may wrap: the name keeps its line and the pills drop below it. At normal text
   sizes nothing wraps (the name has room to shrink to 6rem first). */
@media (max-width: 74.99rem) {
  .header-inner { flex-wrap: wrap; }
  .brand { flex: 1 1 0; min-width: 6rem; }
  .header-tools { margin-left: auto; }
}
/* A date or time field keeps a visible ring while any of its parts (day, month, year, hour...) has the keyboard. */
input[type="date"]:focus-within, input[type="time"]:focus-within { outline: 3px solid var(--c-focus); outline-offset: 2px; box-shadow: 0 0 0 7px var(--c-focus-on-dark); }
/* A long word may break (only when it would not fit), so big text never forces a sideways scroll. */
main { overflow-wrap: anywhere; }

/* The drive's approved numbers (home and About): a calm band, two columns on a phone. Real text, never an image. */
.numbers-band { border-block: 1px solid var(--c-border); padding-block: 1.75rem; }
.numbers-band h2 { margin: 0 0 0.9rem; font-size: 1.15rem; }
.numbers-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.numbers-list li { min-width: 0; overflow-wrap: anywhere; }
.numbers-value { display: block; font-size: 1.7rem; line-height: 1.15; color: var(--c-primary); }
.numbers-label { display: block; font-size: 0.95rem; color: var(--c-muted); }
@media (min-width: 40rem) { .numbers-list { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); } }
/* Profile: the email choice and the sign-in email are cards like the rest. */
#email-choices, #sign-in-email { margin-top: 1.25rem; }
/* A sponsor's public thank-you (Milestone 8.1): their links on the Sponsors page, and the live version on their own page. */
.showcase-socials { list-style: none; margin: 0.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 0.75rem; font-size: 0.9rem; }
.showcase-socials li { min-width: 0; overflow-wrap: anywhere; }
/* A link is the site's icon and the @name, never a bare address. */
.showcase-socials a { display: inline-flex; align-items: center; gap: 0.3rem; }
.showcase-socials .icon { flex: none; width: 1.05em; height: 1.05em; }
.showcase-socials span { min-width: 0; overflow-wrap: anywhere; }
.profile-live { border-left: 4px solid var(--c-border); padding-left: 0.75rem; min-width: 0; overflow-wrap: anywhere; }
/* Family wish lists on the home page, and a sponsor's progress line (S3). */
.home-wishes { margin-top: 0.5rem; min-width: 0; overflow-wrap: anywhere; }
.home-wishes .plain-list li { min-width: 0; }
.progress-line { font-size: 1.1rem; margin: 0; overflow-wrap: anywhere; }

/* The sponsor's thank-you certificate (Milestone 8.2): Letter landscape. Sizes are in cqw (a hundredth of the certificate's
   own width), so the same page fits a 360 px phone and the printed sheet. */
.certificate-page { background: var(--c-bg); padding: 0.75rem; }
.cert-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; max-width: 10in; margin: 0 auto 0.75rem; }
.cert-bar .btn { margin-left: auto; min-height: 44px; }
.cert { container-type: inline-size; width: min(100%, 10in); aspect-ratio: 10 / 7.4; margin: 0 auto; background: #fff; color: #222;
  border: 0.6cqw solid var(--c-primary); outline: 0.2cqw solid var(--c-primary); outline-offset: -2cqw;
  display: grid; grid-template-rows: auto auto auto auto 1fr auto; justify-items: center; align-content: center; text-align: center; padding: 3cqw 8cqw; overflow: hidden; }
.cert-bear { width: 9cqw; height: auto; margin-bottom: 0.5cqw; }
.cert-drive { font-size: 2.4cqw; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-primary); font-weight: 700; max-width: none; }
.cert-title { font-size: 6.4cqw; margin: 1cqw 0 1.4cqw; text-wrap: balance; }
.cert-to { font-size: 2.4cqw; font-style: italic; max-width: none; }
.cert-name { font-family: var(--f-display); font-size: 5.6cqw; line-height: 1.15; font-weight: 700; margin: 1cqw 0 2cqw; max-width: 100%; overflow-wrap: anywhere; color: #111; border-bottom: 0.25cqw solid var(--c-border); padding: 0 3cqw 1cqw; }
.cert-text { font-size: 2.6cqw; line-height: 1.5; max-width: 62cqw; align-self: start; }
.cert-org { font-size: 2.1cqw; letter-spacing: 0.06em; color: #444; max-width: none; }
@page { size: letter landscape; margin: 0.5in; }
@media print {
  html, body { background: #fff; }
  .certificate-page { padding: 0; }
  .cert-bar { display: none !important; }
  .cert { width: 10in; height: 7.4in; aspect-ratio: auto; break-inside: avoid; page-break-inside: avoid; margin: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* The donor's private reply page (041): the organizer's question, quoted. */
.reply-question { margin: 1rem 0; min-width: 0; overflow-wrap: anywhere; }
.reply-question p { margin: 0; }
/* The certificate's version number, small at the bottom (045). */
.cert { position: relative; }
.cert-no { position: absolute; left: 0; right: 0; bottom: 2.6cqw; margin: 0; font-size: 1.4cqw; letter-spacing: 0.08em; color: #666; max-width: none; text-align: center; }

/* ---------- draft 4 (2026-10-29): the client's frames, subheadings, short step lists and small notes ----------
 * Every public page puts each main section in one large, subtle frame, like the home page.
 *   <section class="section"><div class="wrap"><div class="frame">…</div></div></section>
 *   .frame-alt = the sage version; .frame-head = a title row with an icon (<svg class="icon">) before the h2.
 * Headings use --c-heading (Evergreen in the default theme); step numbers stay red with white digits (.steps).
 * .subhead = the one subheading style under a section title. .note-soft = the small "A Note About Availability" box.
 * .steps-more = a numbered list whose items open (<details>) to the full text: no JavaScript, CSP-safe. */
.frame {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 1.5rem;
  padding: clamp(1.1rem, 0.75rem + 1.6vw, 2rem); box-shadow: 0 18px 40px -34px rgba(0, 0, 0, 0.4);
}
.frame-alt { background: var(--c-surface-2); }
.frame + .frame { margin-top: 1.25rem; }
.frame > :first-child { margin-top: 0; }
/* One rule for every heading in a frame, with or without an icon row: 12 px (0.75rem) or more before what follows, step lists too. */
.frame h2, .frame h3 { margin-bottom: 0.75rem; }
.frame .steps { margin-top: 1rem; }
.frame p + p, .frame p + ul, .frame ul + p, .frame p + ol, .frame ol + p { margin-top: 0.85em; }
.frame-head { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 0.75rem; }
.frame-head h2, .frame-head h3 { margin: 0; }
.frame-head > .icon { flex: none; width: 1.6rem; height: 1.6rem; color: var(--c-primary); }
/* The icon sits level with the heading's first line, however many lines the heading takes (h2 is 1.15 line-heights of the clamp in the base rules). */
.frame-head:has(> h2) > .icon { margin-top: calc((1.15 * clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem) - 1.6rem) / 2); }
.frame-head:has(> h3) > .icon { width: 1.4rem; height: 1.4rem; margin-top: calc((1.15 * 1.25rem - 1.4rem) / 2); }
.frame-grid { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .frame-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.subhead {
  font-family: var(--f-display); font-weight: var(--f-display-weight); font-size: 1.15rem; line-height: 1.3;
  color: var(--c-heading, var(--c-primary)); margin: 0 0 0.9rem; max-width: 60ch; text-wrap: balance;
}
.note-soft {
  font-size: 0.92rem; line-height: 1.5; padding: 0.75rem 1rem; border-radius: 0.9rem;
  background: var(--c-warning-bg); border: 1px solid color-mix(in srgb, var(--c-warning) 25%, transparent); max-width: 60ch;
}
.note-soft strong { display: block; margin-bottom: 0.2rem; }
.steps-more > li > details > summary {
  cursor: pointer; list-style: none; font-family: var(--f-display); font-weight: var(--f-display-weight);
  font-size: 1.1rem; color: var(--c-heading, var(--c-primary)); min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.steps-more > li::before { top: 0.325rem; }   /* the number badge centres on the 44 px row */
.steps-more > li > details > summary::-webkit-details-marker { display: none; }
.steps-more > li > details > summary::after {
  content: ""; width: 0.55rem; height: 0.55rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-0.15rem); transition: transform 0.2s ease; margin-left: 0.2rem; flex: none;
}
.steps-more > li > details[open] > summary::after { transform: rotate(-135deg) translateY(-0.1rem); }
.steps-more > li > details > :not(summary) { margin-top: 0.35rem; }
.photo-frame { border-radius: 1.1rem; overflow: hidden; border: 1px solid var(--c-border); }
.photo-frame img { display: block; width: 100%; height: auto; }
.tax-note { font-size: 0.88rem; font-style: italic; color: var(--c-muted); margin-top: 0.6rem; max-width: 60ch; }
@media (prefers-reduced-motion: reduce) { .steps-more > li > details > summary::after { transition: none; } }

/* ---------- draft 4: How it works and Register a Little Cub ---------- */
.frame .involved-split + h3 { margin-top: 1.75rem; }
.frame .involved-split .note-soft { margin-top: 1rem; }
.frame .steps-cards-1 + .note-soft { margin-top: 1rem; }
.frame .ticks { margin: 0.85rem 0; }
.frame h1 { margin-bottom: 0.4rem; }
/* ---------- draft 4: home (date boxes are links, the red heart) ---------- */
.date-card { padding: 0; }
.date-link { display: block; height: 100%; padding: 1.25rem; color: inherit; text-decoration: none; border-radius: inherit; }
.date-link .icon-badge { display: grid; }
.date-link p + p { margin-top: 0.35rem; }
.date-link:hover .card-link, .date-link:focus-visible .card-link { text-decoration: underline; }
.date-link:focus-visible { outline: 3px solid var(--c-primary); outline-offset: -3px; }
.section h2.heading-heart .icon { color: var(--c-primary); }
/* ---------- draft 4: About page ---------- */
.about-grid { margin-top: 0.75rem; }
.about-side { display: grid; gap: 1rem; min-width: 0; }
.about-side .photo-frame { margin: 0; }
.about-portrait { max-width: 22rem; }
.about-logo img { background: #fff; }
.about-quote { margin: 0; padding: 1rem 1.15rem; border-radius: 1rem; background: var(--c-surface); border: 1px solid var(--c-border); border-left: 4px solid var(--c-primary); font-family: var(--f-display); font-weight: var(--f-display-weight); font-size: 1.1rem; line-height: 1.4; color: var(--c-heading, var(--c-primary)); }
.frame-alt .about-quote { background: var(--c-surface); }
.about-sign { font-family: var(--f-display); font-weight: var(--f-display-weight); font-size: 1.2rem; color: var(--c-primary); }
.history-cards { display: grid; gap: 1rem; margin-top: 0.9rem; grid-template-columns: minmax(0, 1fr); }
.history-card { min-width: 0; padding: 1.1rem 1.2rem; border-radius: 1.1rem; background: var(--c-surface-2); border: 1px solid var(--c-border); }
.history-card h3 { margin: 0.5rem 0 0.4rem; }
.history-badge { display: inline-block; padding: 0.15rem 0.8rem; border-radius: 999px; background: var(--c-primary); color: #fff; font-weight: 800; letter-spacing: 0.04em; }
.history-stats { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0.8rem 0; padding: 0; list-style: none; }
.history-stats strong { font-family: var(--f-display); font-weight: var(--f-display-weight); font-size: 1.8rem; color: var(--c-heading, var(--c-primary)); }
.history-card-soon { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.5rem; border-style: dashed; background: transparent; }
.history-card-soon .history-badge { background: var(--c-accent); color: var(--c-on-accent); }
.history-soon { margin: 0; font-family: var(--f-display); font-weight: var(--f-display-weight); font-size: 1.3rem; color: var(--c-muted); }
@media (min-width: 48rem) { .history-cards { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); } }
.about-marquee { margin-top: 0.75rem; }
.about-marquee .marquee-foot { margin-top: 0.9rem; }
/* ---------- draft 4: get involved ---------- */
.involved-grid { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.75rem; grid-template-columns: minmax(0, 1fr); }
.involved-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
@media (min-width: 48rem) { .involved-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .involved-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.involved-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; height: 100%;
  padding: 0.8rem 0.95rem; border-radius: 1rem; border: 1px solid var(--c-border); background: var(--c-surface);
  color: var(--c-text); text-decoration: none;
}
.involved-card:hover { border-color: var(--c-primary); }
.involved-card .icon { width: 1.6rem; height: 1.6rem; color: var(--c-primary); }
.involved-card strong { font-family: var(--f-display); font-weight: var(--f-display-weight); color: var(--c-heading, var(--c-primary)); line-height: 1.25; }
.involved-card span { font-size: 0.92rem; color: var(--c-muted); line-height: 1.35; }
.reveal > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; margin-top: 0.85rem; }
.reveal > summary::-webkit-details-marker { display: none; }
.reveal[open] > summary { margin-bottom: 1rem; }
.reveal > form { margin-top: 0; }
.form-section { border-top: 1px solid var(--c-border); padding-top: 1.1rem; margin-top: 1.4rem; }
.form-section > * + * { margin-top: 1rem; }
.frame .stack h3 { margin-top: 0; }
/* ---------- draft 4: donate ---------- */
/* One way to give at a time: radio buttons (no script) show one card. The radios stay in the page for the keyboard and screen readers. */
.give-choose { position: relative; display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.75rem; }
.give-radio { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.give-tab {
  flex: 1 1 7rem; min-width: 0; min-height: 3.25rem; display: grid; place-items: center; text-align: center; padding: 0.5rem 1rem;
  border: 2px solid var(--c-border); border-radius: 999px; background: #fff; color: var(--c-text);
  font-weight: 800; font-size: 1.05rem; cursor: pointer;
}
.give-tab:hover { border-color: var(--c-primary); }
.give-radio:checked + .give-tab { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }
.give-radio:focus-visible + .give-tab { outline: 3px solid var(--c-focus, var(--c-primary)); outline-offset: 3px; }
.give-panels { flex: 1 1 100%; min-width: 0; }
.give-panels .give-card { display: none; margin-top: 0.4rem; }
#way-zelle:checked ~ .give-panels #zelle,
#way-cashapp:checked ~ .give-panels #cashapp,
#way-venmo:checked ~ .give-panels #venmo { display: flow-root; }
.give-tax { font-size: 1rem; color: var(--c-text); margin-top: 1rem; }
.give-thanks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
/* The name and amount choices matter only when the donor says yes to a public thank-you. Without :has() they simply stay in view. */
@supports selector(:has(a)) {
  .give-report:has(input[name="recognition"][value="private"]:checked) .give-public-only { display: none; }
}
.give-public-only { display: grid; gap: 1rem; }
/* ---------- draft 4: drive archive ---------- */
.archive-back { margin: 0.9rem 0 0; font-weight: 700; }
.archive-back a { display: inline-flex; align-items: center; min-height: 44px; }
.archive-numbers { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.9rem 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.archive-numbers li { min-width: 0; overflow-wrap: anywhere; padding: 0.9rem 1rem; border-radius: 1rem; background: var(--c-surface-2); border: 1px solid var(--c-border); }
.archive-number { display: block; font-family: var(--f-display); font-weight: var(--f-display-weight); font-size: 2.2rem; line-height: 1.1; color: var(--c-primary); }
.archive-label { display: block; font-size: 0.95rem; color: var(--c-muted); }
/* The photo strip: one row, swipe or scroll sideways, each photo snaps into place. No JavaScript needed; assets/js/strip.js adds the buttons and the slow auto-advance. */
.archive-strip { list-style: none; margin: 1rem 0 0; padding: 0 0 0.6rem; display: flex; gap: 0.9rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.archive-strip:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; }
.archive-strip li { flex: 0 0 min(82%, 28rem); scroll-snap-align: start; min-width: 0; }
/* Previous / Pause / Next under the row. Their [hidden] stays until strip.js runs. Every tap target is at least 44px. */
.archive-strip-wrap { min-width: 0; }
.strip-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem; margin-top: 0.6rem; }
.strip-btn { min-width: 44px; min-height: 44px; padding: 0.5rem 1.1rem; font-size: 1.05rem; }
.strip-toggle { padding-inline: 1.2rem; }
.archive-strip img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 1rem; border: 1px solid var(--c-border); }
/* The archive's list of years. */
.archive-card { position: relative; }
.archive-badge { display: inline-block; margin-bottom: 0.5rem; padding: 0.15rem 0.8rem; border-radius: 999px; background: var(--c-primary); color: #fff; font-weight: 700; letter-spacing: 0.04em; }
@media (prefers-reduced-motion: reduce) { .archive-strip { scroll-behavior: auto; } }

/* ---------- draft 4: space the paragraphs at the top of every page too (not only inside frames) ---------- */
.page-head p + p { margin-top: 0.75em; }

/* ---------- draft 5: every page but home opens the same way (words left, bear right) and its cards run across the page ---------- */
.page-top { padding-bottom: 1.25rem; }
.page-hero { display: flow-root; }
.page-hero-bear { float: right; width: 4.5rem; margin: 0 0 0.5rem 1rem; text-align: center; }
.page-hero-bear img { display: block; width: 100%; height: auto; }
.page-hero-tagline { margin: 0.35rem 0 0; font-family: var(--f-display); font-weight: var(--f-display-weight); font-size: 0.85rem; line-height: 1.2; color: var(--c-primary); }
.page-hero h1 { margin-bottom: 0.4rem; }
/* Under 420 px the heading is smaller, so it and its subhead sit beside the bear without crowding it or stranding words. */
@media (max-width: 26.24rem) { .page-hero h1 { font-size: 1.75rem; } }
/* On a phone only the heading and subhead wrap around the bear; the first paragraph after them starts below it. */
@media (max-width: 34.99rem) { .page-hero-text .subhead + p { clear: right; } }
.page-hero-text p + p, .page-hero-text p + ul { margin-top: 0.75em; }
.page-hero-text .jump { margin-top: 1rem; }
@media (min-width: 48rem) {
  .page-hero { display: grid; grid-template-columns: minmax(0, 1fr) 12rem; gap: 2rem; align-items: start; }
  .page-hero-bear { float: none; width: auto; margin: 0; grid-column: 2; grid-row: 1; }
  .page-hero-bear img { width: 9.5rem; margin-inline: auto; }
  .page-hero-text { grid-column: 1; grid-row: 1; }
  .page-hero-tagline { margin-top: 0.6rem; font-size: 1.25rem; line-height: 1.25; }
}
.frame p, .frame li { max-width: none; }
.frame-copy { margin-top: 0.75rem; }
.frame-copy h3 { margin-top: 1.25rem; }
.frame .reveal > form { max-width: 46rem; }
.involved-jump { padding-block: 0 1.25rem; }
@media (min-width: 56rem) {
  .frame .faq-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
.date-soon { color: var(--c-muted); }
/* Contact's form and the donation report: their fields in two columns, so both run across the page. */
.contact-wrap { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
.contact-wrap > * { min-width: 0; }
@media (min-width: 56rem) {
  .contact-wrap > form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; align-items: start; }
  .contact-wrap > form > * { grid-column: 1 / -1; margin-top: 0; }
  .contact-wrap > form > .field:has(input[name="name"], input[name="email"]) { grid-column: auto; }
  .contact-wrap > form > .btn { justify-self: start; }
  .give-report { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; align-items: start; }
  .give-report > * { grid-column: 1 / -1; margin-top: 0; }
  .give-report > .field { grid-column: auto; }
  .give-report > .field:has(input[name="recognition"]) { grid-column: 1 / -1; }
  .give-report > button { justify-self: start; }
}
.strip-btn:not(.strip-toggle) { font-size: 1.5rem; line-height: 1; }

/* Draft 5: Privacy & Legal. Three columns from 62rem up, one below; real bullets. */
.frame-grid-3 { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 62rem) { .frame-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 1.75rem; } }
.frame-grid-3 h3 { margin: 0 0 0.75rem; font-size: 1.15rem; line-height: 1.3; }
.bullets { list-style: disc; padding-left: 1.25rem; margin: 0.6rem 0 0; }
.bullets li { margin: 0.3rem 0; }
.bullets li::marker { color: var(--c-primary); }

/* ---------- draft 5, step B: page by page ---------- */
/* Home: the four date cards end in one footer row (a divider, then "Full details" or "Details coming soon"), pinned to the card's bottom. */
.date-link { display: flex; flex-direction: column; }
.date-link h3 { margin-top: 0; }
/* Spanish titles can take two lines: on the four-across row all four reserve two, so the dates start level. */
@media (min-width: 75rem) { :lang(es) .date-link h3 { min-height: 2.6em; } }
.date-link > .card-link, .date-link > .date-soon {
  display: flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; margin-top: auto !important; padding-top: 0; border-top: 1px solid var(--c-border);
}
.date-link > .date-soon { font-size: 0.92rem; font-weight: 400; }
.date-link > p:has(+ .card-link), .date-link > p:has(+ .date-soon) { margin-bottom: 0.75rem; }
/* Home: the steps' note and link run the full width under both columns. */
.steps-cards + .tax-note { max-width: none; margin-top: 1.25rem; }
/* Home: privacy and about. Columns start level, the paragraphs are spaced, and the button has air above it. */
.home-split { align-items: start; }
.home-split p + p { margin-top: 0.75rem; }
.home-split > div > .card-link { margin-top: 0.75rem; }
/* Apply: "Who Can Apply?" and "Before You Apply" are two cards in one grid: level at the top, one height. */
.frame-grid > .frame { margin-top: 0; }
@media (min-width: 48rem) { .frame-grid:has(> .frame) { align-items: stretch; } }
/* Contact, after sending: the sent note and the client's thank-you are two wide cards, one under the other. */
.contact-side.frame { margin-top: 0; }
/* Donate: the three tabs share one row at any width; the QR is a tile whose edge is the text's edge (its quiet zone is inside the tile);
   on a computer the handle and buttons stay left and the QR sits right. */
.give-tab { flex: 1 1 0; padding-inline: 0.5rem; }
.give-qr .qr { border: 1px solid var(--c-border); }
@media (min-width: 48rem) {
  #way-zelle:checked ~ .give-panels #zelle,
  #way-cashapp:checked ~ .give-panels #cashapp,
  #way-venmo:checked ~ .give-panels #venmo { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 2rem; align-items: start; }
  .give-card > * { grid-column: 1; }
  .give-card > .give-qr { grid-column: 2; grid-row: 1 / span 6; margin: 0; max-width: 14rem; }
  .give-card .give-qr .qr { width: 12rem; }
}
@media (max-width: 29.99rem) {
  .give-choose { gap: 0.4rem; }
  .give-tab { padding-inline: 0.25rem; font-size: 0.95rem; }
}
/* The report sits in a tinted card like the other pages; its form has no second card inside it. */
.frame > form.give-report { background: none; border: 0; box-shadow: none; padding: 0; margin-top: 1rem; }
.give-report .field:has(input[name="method"]) .choice-list { display: flex; flex-wrap: wrap; gap: 0.15rem 1.5rem; }

/* Get Involved: six tiles, two a row on a phone, three on a tablet, one line on a computer. Titles reserve two lines (except when three
   fit and every title is one line), so the descriptions start level. */
.involved-card strong { min-height: 2.5em; }
@media (min-width: 48rem) and (max-width: 61.99rem) { .involved-card strong { min-height: 0; } }
/* Donate a Gift: the left text and the right list and button are close in height. */
#gift .frame-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
@media (max-width: 47.99rem) { #gift .frame-grid { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 48rem) { #gift ul.ticks ~ ul.ticks { display: flex; flex-wrap: wrap; gap: 0.15rem 1.5rem; } }
/* The opened Volunteer and Partner forms run the card's full width with no card of their own; their fields sit in two columns on a computer. */
.frame .reveal > form.card { max-width: none; background: none; border: 0; border-radius: 0; box-shadow: none; padding: 1.25rem 0 0; border-top: 1px solid var(--c-border); }
@media (min-width: 48rem) {
  .frame .reveal > form.stack, .frame .reveal .form-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; align-items: start; }
  .frame .reveal > form.stack > *, .frame .reveal .form-section > * { grid-column: 1 / -1; margin-top: 0; }
  .frame .reveal .form-section { margin-top: 0.5rem; }
  .frame .reveal > form > .field:not(:has(textarea, .choice-group)), .frame .reveal .form-section > .field:has(input[type="text"], input[type="file"]) { grid-column: auto; }
  .frame .reveal > form > .btn { justify-self: start; }
  /* The volunteer areas sit beside the phone and availability fields, which they match in height. */
  #volunteer-form .field:has(.choice-group) { grid-column: 2; grid-row: span 2; }
  #partner-form .field:has(input[name="ways[]"]) .choice-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* How it works: the photo in each step card starts level with the card's first line, and stays put when a step opens. */
.involved-split { align-items: start; }
@media (min-width: 48rem) { .involved-split .involved-photo { margin: 0 auto; } }
/* About: the "Began" photo fills its column like the page's other photos (its whole frame, no crop). The coming-soon years are short cards, text at the top. */
.about-portrait { max-width: none; }
/* Legacy and Hear the Story: the words start at the top, beside a picture of about their height, so no hole opens either way. */
@media (min-width: 48rem) {
  #legacy .photo-frame img { aspect-ratio: 16 / 11; object-fit: cover; object-position: 50% 40%; }
  #podcast .about-logo { max-width: 18rem; margin-left: auto; }
}
.history-card-soon { justify-content: flex-start; }
@media (min-width: 48rem) {
  .history-cards { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .history-card-now { grid-row: span 2; }
}
/* FAQ: the paired question cards share a height while all are closed (and start level when one is open, so it opens downward alone). */
@media (min-width: 56rem) {
  .frame .faq-list { align-items: stretch; }
  .frame .faq-list:has(details[open]) { align-items: start; }
}
/* FAQ on a phone: the jump pills are one even column of full-width pills, so no row breaks unevenly. */
@media (max-width: 34.99rem) {
  .page-hero-text .jump { display: grid; grid-template-columns: minmax(0, 1fr); }
  .page-hero-text .jump a { justify-content: center; text-align: center; }
}
/* Privacy: a long list in a full-width card flows in two columns on a computer; a closing sentence has air above it. */
@media (min-width: 48rem) {
  .frame > ul.bullets { columns: 2; column-gap: 3rem; }
  .frame > ul.bullets li { break-inside: avoid; margin: 0; padding: 0.15rem 0; }
}
.frame .bullets + p, .frame .frame-grid-3 + p { margin-top: 1.25rem; }
/* The 2025 page: stat tiles are white on a tinted card (tinted on a white one), so they read as tiles. */
.frame-alt .archive-numbers li { background: var(--c-surface); }
/* Logo rows (home, About, 2025) and photo strips: their controls are one centred line, alike. */
.marquee-foot { justify-content: center; column-gap: 1.5rem; }
/* The 2025 page's two Back buttons look alike: a small outlined pill at the top, the same as at the bottom. */
.archive-back a.btn { font-weight: 800; }
/* ---------- draft 5, last checks ---------- */
/* On a phone a hero's opening sentence starts below the bear, not squeezed beside it; the heading has air under it. */
@media (max-width: 34.99rem) { .page-hero-text h1 + .lead { clear: right; } }
@media (max-width: 26.24rem) { .page-hero h1 { margin-bottom: 0.75rem; } }
/* Question groups: the same air under the heading as other cards with a grid. */
.frame > h2 + .faq-list { margin-top: 1.25rem; }
/* The 2025 page's last button sits at the usual distance from the card above. */
.archive-foot { padding-top: 0; }

/* "¿Prefiere español?" on the English home page: hidden until site.js sees a phone set to Spanish. Quiet and small; [hidden] wins. */
.es-offer { margin-block: 0.4rem 0; font-size: 0.9rem; text-align: right; }
.es-offer[hidden] { display: none !important; }
.es-offer a { display: inline-block; padding-block: 0.6rem; }

/* Families update their Little Cubs until they are paired (Launch Updates item 1) */

.up-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* One short line that explains the rule */
.up-rule { color: var(--c-text); max-width: 60ch; }

/* Each Little Cub: a quiet divider between kids, no box of its own */
.up-kids { gap: 0; }
.up-kid { padding: 1rem 0; border-top: 1px solid var(--c-border); }
.up-kid:first-child { padding-top: 0.25rem; border-top: 0; }
.up-kid .home-wishes { margin-top: 0.6rem; }
.up-kid .cub-status { margin-left: 0; margin-top: 0.4rem; display: inline-flex; }

/* Statuses: flat colored chips, no outline, never button shaped */
.up-chip-update { background: var(--c-warning-bg); color: var(--c-warning); }
.up-chip-review { background: #E2ECF6; color: #1F4468; }

/* A line under a status that says what happens next */
.up-wait-line { margin: 0.5rem 0 0; font-size: 0.95rem; color: var(--c-text); max-width: 52ch; }

/* A matched Little Cub: locked, calm, nothing to press */
.up-locked { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0.6rem 0 0; font-size: 0.95rem; color: var(--c-muted); }
.up-locked .icon { width: 1.1rem; height: 1.1rem; flex: none; margin-top: 0.15rem; }

/* Small tasks: thin grey outline, pill shape, at least 44px tall */
.up-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.up-task {
  display: inline-flex; align-items: center; justify-content: center; flex: 1 1 9rem;
  min-height: 44px; padding: 0.4rem 1rem; border: 1.5px solid #6B746E; border-radius: 999px;
  background: var(--c-surface, #fff); color: var(--c-text); font-weight: 700; font-size: 0.95rem; line-height: 1.2;
  text-align: center; text-decoration: none; text-wrap: balance;
}
.up-task:hover { background: var(--c-surface-2); }
.up-task:focus-visible, .up-add:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

/* The real choice at the end of the section: green outline */
.up-add-row { margin: 0.6rem 0 0.4rem; }
.up-add {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%;
  min-height: 48px; padding: 0.6rem 1.35rem; border: 2px solid var(--c-accent); border-radius: 999px;
  background: transparent; color: var(--c-accent); font-weight: 800; font-size: 1.02rem; text-decoration: none;
}
.up-add:hover { background: var(--c-surface-2); }
.up-plus { font-size: 1.4rem; line-height: 1; font-weight: 700; }
@media (min-width: 30rem) { .up-add { width: auto; } .up-actions .up-task { flex: 0 1 auto; } }

/* The notice at the top of a form: soft sage, an icon, no shape of a button */
.up-notice {
  display: flex; gap: 0.7rem; align-items: flex-start; margin: 0 0 1.1rem; padding: 0.85rem 1rem;
  border-radius: 0.9rem; background: var(--c-surface-2); color: var(--c-text); max-width: 60ch;
}
.up-notice .icon { width: 1.3rem; height: 1.3rem; flex: none; margin-top: 0.15rem; color: var(--c-accent); }
.up-notice p { margin: 0; font-size: 0.98rem; line-height: 1.5; }
.up-after { font-size: 0.95rem; color: var(--c-muted); margin: 0.2rem 0 0.2rem; }

/* "Approved" next to a name: plain green words with a little room, not a shape */
.up-kid .pill { margin: 0 0.25rem 0 0.35rem; color: var(--c-success); font-weight: 800; }
.up-notice .pill-code { margin: 0 0.1rem; padding: 0 0.4rem; }

/* The status chip sits on its own line under the name, so it never crowds the Child ID */
.up-kid .cub-status { display: flex; width: fit-content; margin: 0.5rem 0 0; }

/* "Open in Maps" under a pickup or drop-off address: a small task (.up-task's thin grey outline), inside a 360 px phone. */
.map-link { gap: 0.4rem; max-width: 100%; }
.map-link .icon { width: 1.1rem; height: 1.1rem; flex: none; }

/* Family information step as four cards (about you, language, how you heard, who else can pick up); fits 360 px. */
.req-note { margin-top: 0.4rem; }
.about-form > .card + .card, .about-form > .card + .btn { margin-top: 1rem; }
.form-card > h2 { font-size: 1.3rem; line-height: 1.3; margin: 0; }
.form-card > h2 .opt { font-size: 0.9rem; }
.field-row { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.choice-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.15rem 1.25rem; }
.pickup-people { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.pickup-person { background: var(--c-surface-2); border-radius: 0.9rem; padding: 1rem; }
.pickup-person > legend { float: left; width: 100%; margin-bottom: 0.25rem; font-weight: 800; color: var(--c-heading, inherit); }
.pickup-person > legend + * { clear: both; }
@media (min-width: 701px) {
  .field-row, .choice-two, .pickup-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row > .field + .field { margin-top: 0; }
}

/* Social links editor (partials/social_links.php): a site picker and a name or link box per row; stacks only at 360 px and narrower */
.social-links { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
.social-links legend { padding: 0; margin-bottom: 0.2rem; font-weight: 800; }
.social-links > .hint { margin: 0 0 0.6rem; font-size: 0.92rem; color: var(--c-muted, var(--a-muted)); }  /* --c-muted exists only in site.css, --a-muted only in admin.css */
.social-row { display: grid; grid-template-columns: minmax(6.5rem, 8.5rem) minmax(0, 1fr); gap: 0.5rem; align-items: start; }
.social-row + .social-row { margin-top: 0.6rem; }
.social-row .field { min-width: 0; }
.social-row .field-error { grid-column: 1 / -1; margin: 0; }
.social-row select { text-overflow: ellipsis; }
@media (max-width: 22.5rem) { .social-row { grid-template-columns: minmax(0, 1fr); } }

/* The Sponsors page: a message over 100 characters (public/_showcase.php decides) makes its entry a wide card: picture and name on the left, words on the right. */
.showcase-item.is-long { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 0.5rem 1.5rem; align-items: center; text-align: left; justify-items: stretch; }
.showcase-grid:has(.is-long) { grid-auto-flow: dense; }  /* later tiles fill the gap a wide card leaves at the end of the row above it */
.is-long .showcase-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem; justify-items: center; text-align: center; }
.is-long .showcase-main > a { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem; justify-items: center; color: inherit; text-decoration: none; }
.is-long .showcase-main > a:hover .showcase-name { text-decoration: underline; }
.is-long .showcase-words p { margin: 0; max-width: 60ch; }
.is-long .showcase-socials { justify-content: flex-start; margin-top: 0.5rem; }
@media (max-width: 35.99rem) {
  .showcase-item.is-long { grid-template-columns: minmax(0, 1fr); }
  .is-long .showcase-main { width: 100%; max-width: 12rem; margin-inline: auto; }
}
