:root {
  --navy: #12304a;
  --navy-2: #173c59;
  --blue: #1d6f8a;
  --aqua: #31a9a1;
  --gold: #f5b942;
  --cream: #fffaf0;
  --ink: #17212b;
  --muted: #647482;
  --line: #dce5ea;
  --white: #ffffff;
  --danger: #b23a48;
  --success: #147a55;
  --shadow: 0 16px 40px rgba(18, 48, 74, 0.12);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: #f4f8fa; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
img { max-width: 100%; }
code { padding: 2px 5px; border-radius: 5px; background: #eef3f6; }

.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px clamp(18px, 5vw, 72px); color: var(--white); background: rgba(18, 48, 74, .97); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 215px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 14px; background: linear-gradient(135deg, var(--gold), #ffd983); color: var(--navy); font-size: 23px; box-shadow: 0 8px 24px rgba(245,185,66,.25); }
.brand strong, .brand small { display: block; }
.brand small { opacity: .75; font-size: 11px; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: 5px; flex-wrap: wrap; }
.nav-links a { padding: 8px 9px; text-decoration: none; border-radius: 9px; font-size: 13px; }
.nav-links a:hover, .nav-links a:focus { background: rgba(255,255,255,.12); }
.nav-toggle { display: none; border: 1px solid rgba(255,255,255,.25); border-radius: 9px; padding: 8px 12px; color: white; background: transparent; font-weight: 750; }

.hero { position: relative; overflow: hidden; color: var(--white); background: radial-gradient(circle at 80% 20%, rgba(245,185,66,.28), transparent 28%), radial-gradient(circle at 15% 80%, rgba(49,169,161,.35), transparent 30%), linear-gradient(130deg, #12304a, #1d6f8a 58%, #218c8a); }
.hero-inner { display: grid; grid-template-columns: 1.35fr .65fr; gap: 50px; align-items: center; max-width: 1200px; margin: 0 auto; padding: clamp(64px, 10vw, 120px) 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(255,255,255,.09); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow.dark { border-color: #c8d7df; color: var(--blue); background: #edf7f7; }
.hero h1 { max-width: 820px; margin: 18px 0; font-size: clamp(42px, 7vw, 76px); line-height: .98; letter-spacing: -.045em; }
.hero p { max-width: 680px; margin: 0; font-size: clamp(18px, 2.3vw, 24px); color: rgba(255,255,255,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-card { padding: 26px; border: 1px solid rgba(255,255,255,.24); border-radius: 24px; background: rgba(255,255,255,.11); box-shadow: 0 22px 70px rgba(0,0,0,.18); backdrop-filter: blur(14px); }
.hero-card .big-number { font-size: clamp(38px, 5vw, 52px); font-weight: 850; letter-spacing: -.04em; }
.hero-card hr { border: 0; border-top: 1px solid rgba(255,255,255,.2); margin: 20px 0; }
.hero-progress { background: rgba(255,255,255,.2) !important; margin-top: 15px; }
.hero-progress span { background: var(--gold) !important; }
.progress-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 7px; font-size: 12px; color: rgba(255,255,255,.8); }

.container { max-width: 1200px; margin: 0 auto; padding: 72px 24px; }
.container.compact { padding-top: 24px; padding-bottom: 24px; }
.section-tight { padding-top: 16px; }
.section-heading { max-width: 780px; margin-bottom: 28px; }
.section-heading h2 { margin: 0 0 8px; color: var(--navy); font-size: clamp(30px, 4vw, 46px); letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 18px; }
.subheading { margin: 0 0 16px; color: var(--navy); font-size: 24px; }

.announcement-strip { border-bottom: 1px solid #eedba4; background: #fff6dd; }
.announcement-item { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 13px 0; }
.announcement-item + .announcement-item { border-top: 1px solid #eedba4; }
.announcement-item.urgent { color: #7c2632; }
.announcement-item.important { color: #725000; }
.announcement-item p { margin: 2px 0 0; }

.progress-panel { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; padding: 38px; border: 1px solid var(--line); border-radius: 26px; color: var(--ink); background: white; box-shadow: var(--shadow); }
.progress-panel h2 { margin: 16px 0 8px; color: var(--navy); font-size: clamp(30px, 5vw, 50px); letter-spacing: -.04em; }
.progress-panel p { color: var(--muted); font-size: 17px; }
.progress-panel small { color: var(--blue); font-weight: 700; }
.progress-visual { display: grid; gap: 22px; place-items: center; }
.progress-ring { display: grid; place-items: center; align-content: center; width: 190px; height: 190px; border-radius: 50%; background: conic-gradient(var(--aqua) var(--progress, 0%), #e8eff2 0); box-shadow: inset 0 0 0 18px white, 0 13px 32px rgba(18,48,74,.11); }
.progress-ring strong { color: var(--navy); font-size: 42px; line-height: 1; }
.progress-ring span { color: var(--muted); font-size: 13px; }
.progress-track { width: 100%; height: 11px; overflow: hidden; border-radius: 999px; background: #e4edf1; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--aqua), var(--blue)); transition: width .6s ease; }
.progress-track.large { height: 16px; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 8px 28px rgba(18,48,74,.06); }
.card.featured { border-color: #e6bd5d; box-shadow: 0 12px 34px rgba(245,185,66,.16); }
.card h3 { margin: 0 0 8px; color: var(--navy); }
.card p { color: var(--muted); }
.card .meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; font-size: 13px; color: var(--blue); font-weight: 700; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.card-image { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; margin-bottom: 16px; background: #e8eff2; }
.badge { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; background: #eaf5f6; color: #166b72; font-size: 12px; font-weight: 750; text-transform: capitalize; }
.badge.gold { background: #fff4d9; color: #8d6300; }
.badge.gray { background: #edf1f4; color: #546572; }
.badge.red { background: #ffe8eb; color: #98313e; }
.badge.green { background: #e8f6ef; color: #106644; }

.countdown-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.countdown-card { padding: 20px; border-radius: 18px; color: white; background: linear-gradient(145deg, var(--navy), var(--blue)); box-shadow: var(--shadow); }
.countdown-card h3 { margin: 8px 0 3px; }
.countdown-card p { margin: 0 0 14px; color: rgba(255,255,255,.75); font-size: 13px; }
.countdown-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.countdown-unit { padding: 9px 4px; border-radius: 10px; text-align: center; background: rgba(255,255,255,.1); }
.countdown-unit strong { display: block; font-size: 24px; line-height: 1; }
.countdown-unit span { font-size: 9px; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.event-countdown { margin: 14px 0; padding: 10px 12px; border-radius: 10px; color: var(--navy); background: #edf7f7; font-weight: 800; font-size: 13px; }
.event-countdown.live { color: #106644; background: #e8f6ef; }
.event-countdown.ended { color: #687783; background: #edf1f4; }

.link-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.link-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 190px; padding: 22px; border-radius: 18px; color: white; background: linear-gradient(145deg, #1d6f8a, #218c8a); text-decoration: none; box-shadow: 0 10px 28px rgba(29,111,138,.18); }
.link-card.featured { background: linear-gradient(145deg, #173c59, #1d6f8a); }
.link-card h3 { margin: 12px 0 6px; }
.link-card p { margin: 0; color: rgba(255,255,255,.8); }
.link-card .link-arrow { margin-top: 20px; font-weight: 850; }

.auction-card { display: flex; flex-direction: column; }
.auction-card .card-actions { margin-top: auto; }
.auction-price { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 13px 0; }
.auction-price div { padding: 11px; border-radius: 10px; background: #f2f7f9; }
.auction-price span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.auction-price strong { display: block; color: var(--navy); font-size: 18px; }

.sponsor-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.sponsor-card { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 210px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: white; text-align: center; box-shadow: 0 8px 24px rgba(18,48,74,.05); }
.sponsor-card img { width: 110px; height: 80px; object-fit: contain; margin-bottom: 12px; }
.sponsor-card h3 { margin: 6px 0; color: var(--navy); }
.sponsor-card p { margin: 0; color: var(--muted); font-size: 13px; }
.sponsor-card a { margin-top: 11px; color: var(--blue); font-weight: 750; text-decoration: none; }

.gallery-grid { columns: 4 230px; column-gap: 14px; }
.gallery-item { break-inside: avoid; margin: 0 0 14px; overflow: hidden; border-radius: 16px; background: white; box-shadow: 0 8px 24px rgba(18,48,74,.08); }
.gallery-item img { display: block; width: 100%; }
.gallery-caption { padding: 13px; }
.gallery-caption strong { display: block; color: var(--navy); }
.gallery-caption p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.story-card { display: grid; grid-template-columns: 180px 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; }
.story-card img { width: 100%; height: 100%; min-height: 250px; object-fit: cover; }
.story-body { padding: 24px; }
.story-body h3 { margin-top: 0; color: var(--navy); }
.story-body p { color: var(--muted); white-space: pre-line; }

.panel { display: grid; grid-template-columns: .72fr 1.28fr; gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--white); box-shadow: var(--shadow); }
.panel-aside { padding: 38px; color: var(--white); background: linear-gradient(145deg, var(--navy), var(--blue)); }
.panel-aside h2 { margin-top: 0; font-size: 34px; letter-spacing: -.03em; }
.panel-aside ul { padding-left: 20px; color: rgba(255,255,255,.84); }
.panel-body { padding: 38px; }
.involvement-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.public-tab-panel { scroll-margin-top: 110px; }
.split-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 22px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid.one-column { grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 750; color: var(--navy); font-size: 14px; }
.field small { color: var(--muted); }
input, select, textarea { width: 100%; padding: 12px 13px; border: 1px solid #c9d6dd; border-radius: 11px; background: #fbfdfe; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { border-color: var(--aqua); box-shadow: 0 0 0 4px rgba(49,169,161,.13); }
textarea { min-height: 110px; resize: vertical; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; }
.checkbox-row input { width: auto; margin-top: 4px; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-message { margin: 18px 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 17px; border: 0; border-radius: 11px; background: var(--blue); color: var(--white); font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, opacity .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(29,111,138,.22); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; box-shadow: none; }
.btn.active { background: var(--navy); }
.btn.gold { background: var(--gold); color: var(--navy); }
.btn.light { background: var(--white); color: var(--navy); }
.btn.ghost { background: #eaf1f5; color: var(--navy); }
.btn.danger { background: var(--danger); }
.btn.small { min-height: 35px; padding: 7px 10px; font-size: 13px; }

.notice { padding: 13px 15px; border-radius: 11px; background: #eaf5f6; color: #185d63; font-size: 14px; }
.notice.warning { background: #fff4d9; color: #735100; }
.notice.error { background: #ffe8eb; color: #8a2d39; }
.notice.success { background: #e8f6ef; color: #106644; }
.hidden { display: none !important; }

.question-list { display: grid; gap: 12px; }
.question-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.question-card h4 { margin: 0 0 5px; color: var(--navy); }
.question-card p { margin: 7px 0; color: var(--muted); }
.question-answer { padding: 12px; border-left: 4px solid var(--aqua); border-radius: 0 10px 10px 0; background: #edf7f7; color: var(--ink) !important; }
.faq-list { display: grid; gap: 10px; }
.faq-item { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; }
.faq-item summary { cursor: pointer; padding: 18px 20px; color: var(--navy); font-weight: 800; }
.faq-item div { padding: 0 20px 20px; color: var(--muted); white-space: pre-line; }
.download-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.download-card { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.download-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 13px; color: var(--navy); background: #fff2d0; font-size: 25px; }
.download-card h3 { margin: 0 0 6px; color: var(--navy); }
.download-card p { color: var(--muted); }

.receipt { max-width: 780px; margin: 28px auto 0; padding: 34px; border: 2px solid var(--navy); border-radius: 18px; background: var(--white); }
.receipt-header { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 18px; border-bottom: 2px solid var(--line); }
.receipt-title { font-size: 28px; font-weight: 850; color: var(--navy); }
.receipt-number { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; color: var(--blue); }
.receipt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin: 24px 0; }
.receipt-item span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.receipt-item strong { display: block; margin-top: 3px; }
.receipt-footer { padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.site-footer { padding: 38px 24px; color: rgba(255,255,255,.74); background: var(--navy); text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 12px 0; }
.footer-links a { color: white; text-decoration: none; font-size: 13px; }

/* Admin */
.admin-shell { min-height: 100vh; background: #eef4f7; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 24px; color: white; background: var(--navy); }
.admin-layout { display: grid; grid-template-columns: 245px 1fr; min-height: calc(100vh - 72px); }
.admin-sidebar { padding: 18px 12px; background: var(--navy-2); overflow-y: auto; }
.admin-sidebar button, .admin-sidebar a { width: 100%; margin-bottom: 5px; justify-content: flex-start; background: transparent; color: rgba(255,255,255,.8); }
.admin-sidebar button.active, .admin-sidebar button:hover, .admin-sidebar a:hover { background: rgba(255,255,255,.12); color: white; }
.admin-sidebar-label { display: block; margin: 15px 10px 7px; color: rgba(255,255,255,.45); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.admin-main { padding: 30px; overflow: auto; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 24px; }
.stat { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.stat span { color: var(--muted); font-size: 13px; }
.stat strong { display: block; margin-top: 3px; color: var(--navy); font-size: 28px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar-group { display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar input, .toolbar select { width: auto; min-width: 180px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 15px; background: white; }
table { width: 100%; border-collapse: collapse; min-width: 930px; }
th, td { padding: 12px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 13px; }
th { position: sticky; top: 0; z-index: 2; color: var(--navy); background: #f4f8fa; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
tr:hover td { background: #fbfdfe; }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-section h1 { margin-top: 0; color: var(--navy); }
.admin-help { margin: -8px 0 20px; color: var(--muted); }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(8,25,38,.68); }
.modal { width: min(780px, 100%); max-height: 92vh; overflow: auto; padding: 26px; border-radius: 18px; background: white; box-shadow: 0 28px 90px rgba(0,0,0,.28); }
.modal-header { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 20px; }
.modal-header h2 { margin: 0; color: var(--navy); }
.login-card { width: min(440px, calc(100% - 36px)); margin: 12vh auto; padding: 30px; border-radius: 20px; background: white; box-shadow: var(--shadow); }
.file-status { margin-top: 6px; color: var(--muted); font-size: 12px; }

@media (max-width: 1050px) {
  .countdown-grid, .link-grid, .sponsor-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .story-card { grid-template-columns: 140px 1fr; }
}
@media (max-width: 900px) {
  .hero-inner, .panel, .progress-panel, .split-grid { grid-template-columns: 1fr; }
  .card-grid, .download-grid, .story-grid { grid-template-columns: 1fr 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: flex; gap: 5px; overflow-x: auto; padding: 10px; }
  .admin-sidebar button, .admin-sidebar a { width: auto; margin: 0; white-space: nowrap; }
  .admin-sidebar-label { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; left: 0; right: 0; top: 100%; display: none; padding: 10px 18px 16px; background: var(--navy); box-shadow: 0 12px 22px rgba(0,0,0,.18); }
  .nav-links.open { display: flex; }
}
@media (max-width: 620px) {
  html { scroll-padding-top: 70px; }
  .site-header { align-items: center; }
  .brand small { display: none; }
  .hero-inner { padding-top: 52px; }
  .card-grid, .form-grid, .receipt-grid, .countdown-grid, .link-grid, .sponsor-grid, .download-grid, .story-grid { grid-template-columns: 1fr; }
  .story-card { grid-template-columns: 1fr; }
  .story-card img { min-height: 210px; }
  .receipt-header { flex-direction: column; }
  .panel-aside, .panel-body, .admin-main { padding: 24px 18px; }
  .stat-grid { grid-template-columns: 1fr; }
  .toolbar input, .toolbar select { width: 100%; }
  .announcement-item { grid-template-columns: 1fr; }
  .progress-panel { padding: 26px 20px; }
  .progress-ring { width: 165px; height: 165px; }
  .gallery-grid { columns: 1; }
}

@media print {
  body * { visibility: hidden !important; }
  .receipt:not(.print-target) { display: none !important; }
  .receipt.print-target, .receipt.print-target * { visibility: visible !important; }
  .receipt.print-target { position: absolute; left: 0; top: 0; width: 100%; max-width: none; margin: 0; border: 1px solid #000; box-shadow: none; }
  .no-print { display: none !important; }
}

/* Expanded fundraiser hub */
.countdown-state { margin: 10px 0 12px; text-align: center; font-size: 12px; font-weight: 850; color: rgba(255,255,255,.82); }
.countdown-state.live { color: #c8ffe3; }
.countdown-state.ended { color: rgba(255,255,255,.58); }
.share-event-button { width: 100%; margin-top: 4px; }
.share-modal { width: min(680px, 100%); }
.share-summary { padding: 14px; border-radius: 12px; color: var(--navy); background: #edf7f7; }
.share-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.share-choice { display: flex; flex-direction: column; align-items: flex-start; min-height: 82px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; color: var(--navy); background: white; text-decoration: none; cursor: pointer; }
.share-choice:hover { border-color: var(--aqua); background: #f5fbfb; }
.share-choice strong { font-size: 15px; }
.share-choice span { margin-top: 3px; color: var(--muted); font-size: 12px; text-align: left; }
.share-note { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.shared-highlight { animation: sharedPulse 1s ease-in-out 3; }
@keyframes sharedPulse { 50% { box-shadow: 0 0 0 6px rgba(245,185,66,.36), var(--shadow); transform: translateY(-2px); } }

.sponsor-card { color: inherit; text-decoration: none; }
.sponsor-card.featured { border-color: #e6bd5d; background: #fffaf0; }
.sponsor-monogram { display: grid; place-items: center; width: 74px; height: 74px; margin-bottom: 12px; border-radius: 22px; color: white; background: linear-gradient(135deg, var(--blue), var(--aqua)); font-size: 34px; font-weight: 900; }
.gallery-item figcaption { display: flex; flex-direction: column; gap: 2px; padding: 13px; }
.gallery-item figcaption strong { color: var(--navy); }
.gallery-item figcaption span { color: var(--muted); font-size: 13px; }
.story-card > div { padding: 24px; }
.story-card h3 { margin: 10px 0 8px; color: var(--navy); }
.story-card p { color: var(--muted); white-space: normal; }
.story-card.featured { border-color: #e6bd5d; }

.settings-card { max-width: 820px; margin-bottom: 28px; padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 8px 28px rgba(18,48,74,.06); }
.admin-overview-stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
.admin-identity { display: flex; align-items: center; gap: 12px; }
.admin-identity span { font-size: 13px; opacity: .8; }

@media (max-width: 620px) {
  .share-grid { grid-template-columns: 1fr; }
  .admin-overview-stats { grid-template-columns: 1fr; }
  .admin-identity span { display: none; }
}

/* Customizable website layout and full section menu */
.header-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
.section-menu { position: absolute; top: calc(100% + 8px); right: clamp(18px, 5vw, 72px); z-index: 80; display: none; width: min(720px, calc(100vw - 36px)); max-height: min(72vh, 680px); overflow-y: auto; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; padding: 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; color: var(--ink); background: rgba(255,255,255,.99); box-shadow: 0 24px 70px rgba(4,24,38,.3); }
.section-menu.open { display: grid; }
.section-menu a { display: flex; flex-direction: column; align-items: flex-start; padding: 12px 14px; color: var(--navy); border: 1px solid transparent; border-radius: 12px; background: #f5f9fa; }
.section-menu a:hover, .section-menu a:focus { border-color: #bcd4dd; background: #edf7f7; }
.section-menu a span { font-weight: 800; }
.section-menu a small { color: var(--muted); font-size: 11px; }

.layout-section { transition: max-width .2s ease, padding .2s ease; }
.layout-section[data-layout-size="compact"] { max-width: 900px; padding-top: 42px; padding-bottom: 42px; }
.layout-section[data-layout-size="standard"] { max-width: 1200px; }
.layout-section[data-layout-size="wide"] { max-width: 1440px; }
.layout-section[data-layout-size="full"] { max-width: none; padding-left: clamp(24px, 5vw, 86px); padding-right: clamp(24px, 5vw, 86px); }
.layout-section[data-layout-size="compact"] .card-grid,
.layout-section[data-layout-size="compact"] .download-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.layout-section[data-layout-size="wide"] .card-grid,
.layout-section[data-layout-size="full"] .card-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
#sponsors[data-layout-size="compact"] .sponsor-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
#sponsors[data-layout-size="wide"] .sponsor-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
#sponsors[data-layout-size="full"] .sponsor-grid { grid-template-columns: repeat(6, minmax(0,1fr)); }
#countdowns[data-layout-size="compact"] .countdown-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
#countdowns[data-layout-size="wide"] .countdown-grid,
#countdowns[data-layout-size="full"] .countdown-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }

/* Revolving sponsor recognition at the top */
.sponsor-carousel-section { padding: 18px clamp(18px, 5vw, 72px); border-bottom: 1px solid #dbe8ec; background: linear-gradient(90deg, #f4fbfb, #fff9e9, #f4fbfb); }
.featured-sponsor-shell { display: grid; grid-template-columns: 250px minmax(0,1fr) auto; gap: 18px; align-items: center; max-width: 1420px; margin: 0 auto; }
.featured-sponsor-label { display: flex; flex-direction: column; gap: 7px; color: var(--navy); }
.featured-sponsor-label strong { font-size: 16px; }
.sponsor-carousel-window { overflow: hidden; min-height: 112px; border: 1px solid #dbe6e9; border-radius: 20px; background: rgba(255,255,255,.9); box-shadow: 0 10px 30px rgba(18,48,74,.08); }
.sponsor-carousel-track { display: flex; width: 100%; transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.featured-sponsor-slide { display: grid; grid-template-columns: 128px minmax(0,1fr); align-items: center; flex: 0 0 100%; min-width: 100%; min-height: 112px; padding: 16px 24px; color: inherit; text-decoration: none; }
.featured-sponsor-slide img { width: 112px; height: 78px; object-fit: contain; }
.featured-sponsor-monogram { display: grid; place-items: center; width: 82px; height: 82px; border-radius: 24px; color: white; background: linear-gradient(135deg, var(--navy), var(--aqua)); font-size: 38px; font-weight: 900; }
.featured-sponsor-copy h3 { margin: 5px 0 2px; color: var(--navy); font-size: clamp(21px, 2.4vw, 31px); }
.featured-sponsor-copy p { margin: 5px 0 0; color: var(--muted); }
.featured-sponsor-amount { display: inline-block; color: var(--success); font-size: 13px; font-weight: 850; }
.sponsor-carousel-controls { display: flex; gap: 6px; }
.carousel-control { min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid #cbdde3; border-radius: 12px; color: var(--navy); background: white; cursor: pointer; font-weight: 850; }
.carousel-control.wide { min-width: 68px; font-size: 12px; }
.sponsor-amount { margin-top: 10px; color: var(--success); }

/* Cleaner impact stories */
.impact-heading { max-width: 900px; }
.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.impact-story-card { display: grid; grid-template-columns: 210px minmax(0,1fr); overflow: hidden; min-height: 300px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: 0 12px 34px rgba(18,48,74,.08); }
.impact-story-card.impact-story-featured { grid-column: 1 / -1; grid-template-columns: minmax(320px, .85fr) minmax(0,1.15fr); min-height: 430px; border-color: #e8c669; background: linear-gradient(135deg, white, #fffaf0); }
.impact-story-image { min-height: 100%; background: #dcecef; }
.impact-story-image img { width: 100%; height: 100%; object-fit: cover; }
.impact-story-placeholder { display: grid; place-items: center; background: linear-gradient(145deg, var(--navy), var(--blue)); }
.impact-story-placeholder span { color: var(--gold); font-size: 68px; }
.impact-story-content { display: flex; flex-direction: column; padding: 28px; }
.impact-story-content h3 { margin: 12px 0 10px; color: var(--navy); font-size: clamp(24px, 3vw, 36px); line-height: 1.08; }
.impact-story-card:not(.impact-story-featured) .impact-story-content h3 { font-size: 24px; }
.impact-story-excerpt { margin: 0 0 15px; color: #516370; font-size: 16px; }
.impact-story-details { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; }
.impact-story-details summary { cursor: pointer; color: var(--blue); font-weight: 850; }
.impact-story-details div { padding-top: 13px; color: var(--muted); }
.impact-attribution { margin-top: 15px; color: var(--navy); font-size: 13px; font-weight: 800; }

.auction-rule { padding: 10px 12px; border-left: 4px solid var(--aqua); border-radius: 0 10px 10px 0; color: #3c5866 !important; background: #eef8f8; font-size: 13px; }
.bid-rule-summary { margin: 12px 0 18px; padding: 12px 14px; border-radius: 12px; color: var(--navy); background: #fff5db; font-size: 13px; font-weight: 750; }
.bid-quick-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Admin website layout editor */
.layout-settings-card { max-width: 1050px; }
.layout-editor-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 28px 0 12px; }
.layout-editor-heading h2 { margin: 0; color: var(--navy); }
.layout-editor-heading p { margin: 4px 0 0; color: var(--muted); }
.layout-order-list { display: grid; gap: 8px; margin-bottom: 22px; }
.layout-order-row { display: grid; grid-template-columns: 32px minmax(220px,1fr) auto 180px auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #f9fcfd; cursor: grab; }
.layout-order-row.dragging { opacity: .45; border-color: var(--aqua); }
.layout-drag-handle { color: #78909d; font-weight: 900; letter-spacing: -4px; }
.layout-row-copy { display: flex; flex-direction: column; }
.layout-row-copy strong { color: var(--navy); }
.layout-row-copy small { color: var(--muted); }
.layout-visible-toggle { display: flex; align-items: center; gap: 6px; font-weight: 750; }
.layout-row-actions { display: flex; gap: 5px; }
.layout-order-row select { min-width: 160px; }

@media (max-width: 1050px) {
  #sponsors[data-layout-size="wide"] .sponsor-grid,
  #sponsors[data-layout-size="full"] .sponsor-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .featured-sponsor-shell { grid-template-columns: 210px minmax(0,1fr); }
  .sponsor-carousel-controls { grid-column: 2; justify-content: flex-end; }
  .layout-order-row { grid-template-columns: 28px minmax(180px,1fr) auto 160px; }
  .layout-row-actions { grid-column: 2 / -1; justify-content: flex-end; }
}
@media (max-width: 900px) {
  .section-menu { position: absolute; left: 18px; right: 18px; width: auto; grid-template-columns: 1fr 1fr; }
  .layout-section[data-layout-size="wide"] .card-grid,
  .layout-section[data-layout-size="full"] .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  #sponsors[data-layout-size="compact"] .sponsor-grid,
  #sponsors[data-layout-size="wide"] .sponsor-grid,
  #sponsors[data-layout-size="full"] .sponsor-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .impact-story-card, .impact-story-card.impact-story-featured { grid-template-columns: 1fr; min-height: auto; }
  .impact-story-image { min-height: 260px; max-height: 390px; }
  .featured-sponsor-shell { grid-template-columns: 1fr; }
  .featured-sponsor-label { text-align: center; align-items: center; }
  .sponsor-carousel-controls { grid-column: 1; justify-content: center; }
}
@media (max-width: 620px) {
  .header-donate { display: none; }
  .section-menu { grid-template-columns: 1fr; max-height: 75vh; }
  .section-menu a { padding: 10px 12px; }
  .featured-sponsor-slide { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 20px; }
  .featured-sponsor-copy h3 { font-size: 24px; }
  .story-grid { grid-template-columns: 1fr; }
  .impact-story-card { grid-template-columns: 1fr; }
  .impact-story-image { min-height: 220px; }
  .layout-order-row { grid-template-columns: 24px 1fr; }
  .layout-visible-toggle, .layout-order-row select, .layout-row-actions { grid-column: 2; }
  .layout-row-actions { justify-content: flex-start; }
  .layout-editor-heading { align-items: flex-start; flex-direction: column; }
}

/* ==============================================================
   v8 personalization, carousels, auction and gallery subpages
   ============================================================== */
.hero-background { position: absolute; inset: 0; z-index: 0; background-position: center; background-size: cover; opacity: 0; transition: opacity .35s ease; }
.hero-background.has-image { opacity: 1; }
.hero-inner { position: relative; z-index: 1; }
.hero-inner.hero-single-column { grid-template-columns: minmax(0, 900px); justify-content: center; text-align: center; }
.hero-inner.hero-single-column .hero-copy { display: grid; justify-items: center; }
.hero-panel-image, .hero-panel-feature-image { width: 100%; max-height: 250px; object-fit: cover; margin-bottom: 18px; border-radius: 17px; }
.hero-panel-feature-image { max-height: 330px; }
.hero-card h2 { margin: 12px 0 8px; font-size: clamp(25px, 3vw, 38px); line-height: 1.08; }
.hero-event-countdown { margin: 14px 0; padding: 12px; border-radius: 12px; color: var(--navy); background: var(--gold); font-weight: 900; text-align: center; }
.hero-event-countdown.live { background: #c8ffe3; }
.hero-event-countdown.ended { background: #dde5e9; }

/* Section-level personalization and extra size choices */
.layout-section { width: 100%; transition: max-width .2s ease, padding .2s ease; }
.layout-section[data-layout-size="narrow"] { max-width: 760px; }
.layout-section[data-layout-size="compact"] { max-width: 980px; }
.layout-section[data-layout-size="standard"] { max-width: 1200px; }
.layout-section[data-layout-size="large"] { max-width: 1320px; }
.layout-section[data-layout-size="wide"] { max-width: 1480px; }
.layout-section[data-layout-size="full"] { max-width: none; padding-left: clamp(24px, 5vw, 80px); padding-right: clamp(24px, 5vw, 80px); }
.layout-section[data-layout-size="showcase"] { max-width: 1480px; margin-top: 26px; margin-bottom: 26px; padding: clamp(38px, 6vw, 80px); border-radius: 32px; background: linear-gradient(145deg, #eaf5f6, #fffaf0); box-shadow: 0 18px 52px rgba(18,48,74,.1); }
.section-heading { position: relative; }
.section-heading-image { width: min(100%, 720px); max-height: 360px; object-fit: cover; display: block; margin: 0 0 22px; border-radius: 22px; box-shadow: 0 14px 40px rgba(18,48,74,.12); }
.layout-section[data-layout-size="narrow"] .section-heading-image { max-height: 280px; }
.layout-section[data-layout-size="showcase"] .section-heading { max-width: 980px; }
.verified-total-disabled .progress-panel { display: none; }

/* Shared carousel controls */
.responsive-carousel-shell { position: relative; }
.carousel-arrow { position: absolute; top: 50%; z-index: 6; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid #c7d8df; border-radius: 50%; color: var(--navy); background: rgba(255,255,255,.96); box-shadow: 0 10px 28px rgba(18,48,74,.18); cursor: pointer; font-size: 30px; line-height: 1; transform: translateY(-50%); }
.carousel-arrow:hover, .carousel-arrow:focus-visible { border-color: var(--aqua); background: #f6ffff; }
.carousel-prev { left: -22px; }
.carousel-next { right: -22px; }
.carousel-counter { margin-top: 14px; color: var(--muted); text-align: center; font-size: 13px; font-weight: 750; }
.carousel-group-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 18px; padding: 4px 2px 8px; scrollbar-width: thin; }
.carousel-group-tab { flex: 0 0 auto; padding: 9px 13px; border: 1px solid #cbdde3; border-radius: 999px; color: var(--navy); background: white; cursor: pointer; font-weight: 800; }
.carousel-group-tab span { display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin-left: 5px; padding: 0 6px; border-radius: 999px; color: var(--blue); background: #eaf5f6; font-size: 11px; }
.carousel-group-tab.active { border-color: var(--navy); color: white; background: var(--navy); }
.carousel-group-tab.active span { color: var(--navy); background: var(--gold); }

/* Desktop events show as a full grid; phone events become a carousel */
.events-carousel-shell > .carousel-arrow { display: none; }
.mobile-carousel-track .event-card { min-width: 0; }
.event-card { display: flex; flex-direction: column; }
.event-card .card-actions { margin-top: auto; }
.event-card .card-image { height: 215px; }

/* Sponsor group carousel */
.sponsor-wall-shell { padding: 2px; }
.grouped-carousel-track { display: flex; gap: 16px; overflow-x: auto; padding: 7px 5px 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.grouped-carousel-track .sponsor-card { flex: 0 0 250px; scroll-snap-align: start; }
.sponsor-card { position: relative; }
.sponsor-link-label { margin-top: 13px; color: var(--blue); font-size: 13px; font-weight: 850; }
#sponsors[data-layout-size="narrow"] .grouped-carousel-track .sponsor-card { flex-basis: min(78vw, 300px); }
#sponsors[data-layout-size="wide"] .grouped-carousel-track .sponsor-card,
#sponsors[data-layout-size="full"] .grouped-carousel-track .sponsor-card,
#sponsors[data-layout-size="showcase"] .grouped-carousel-track .sponsor-card { flex-basis: 275px; }
.sponsor-group-label-fields { margin-top: 16px; }

/* Main gallery preview */
.gallery-preview-track { display: flex; gap: 16px; overflow-x: auto; padding: 6px 4px 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.gallery-preview-card { position: relative; flex: 0 0 300px; min-height: 285px; overflow: hidden; border-radius: 20px; color: white; background: var(--navy); text-decoration: none; scroll-snap-align: start; box-shadow: 0 10px 28px rgba(18,48,74,.13); }
.gallery-preview-card img { width: 100%; height: 285px; object-fit: cover; transition: transform .3s ease; }
.gallery-preview-card:hover img { transform: scale(1.035); }
.gallery-preview-card > span { position: absolute; inset: auto 0 0; display: grid; gap: 3px; padding: 32px 17px 16px; background: linear-gradient(transparent, rgba(7,27,40,.94)); }
.gallery-preview-card strong { font-size: 17px; }
.gallery-preview-card small { opacity: .82; }
.section-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.section-actions.centered { justify-content: center; }

/* Mission stories as a deliberate carousel */
.story-carousel-track { display: flex; gap: 22px; overflow-x: auto; padding: 8px 5px 24px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.story-carousel-track .carousel-story-card { flex: 0 0 min(100%, 980px); scroll-snap-align: center; }
.impact-story-card, .impact-story-card.impact-story-featured { grid-column: auto; }
.impact-story-content .btn { align-self: flex-start; margin-top: 16px; }

/* Auction portal and dedicated auction page */
.auction-portal-card { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); min-height: 390px; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: white; box-shadow: var(--shadow); }
.auction-portal-image { display: grid; place-items: center; min-height: 390px; color: var(--gold); background: linear-gradient(145deg, var(--navy), var(--blue)); font-size: 82px; }
.auction-portal-image img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; }
.auction-portal-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(30px, 5vw, 64px); }
.auction-portal-copy h3 { margin: 14px 0 10px; color: var(--navy); font-size: clamp(30px, 4vw, 48px); line-height: 1.05; }
.auction-portal-copy p { color: var(--muted); font-size: 17px; }
.auction-portal-stats, .subpage-stat-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 24px; }
.auction-portal-stats span, .subpage-stat-row span { min-width: 118px; padding: 11px 14px; border-radius: 12px; color: var(--muted); background: #f1f6f8; font-size: 12px; }
.auction-portal-stats strong, .subpage-stat-row strong { display: block; color: var(--navy); font-size: 24px; line-height: 1.1; }
.subpage-header { position: sticky; }
.subpage-hero { padding: clamp(52px, 8vw, 90px) 0; color: white; background: linear-gradient(130deg, var(--navy), var(--blue)); }
.subpage-hero .container { padding-top: 0; padding-bottom: 0; }
.subpage-hero h1 { margin: 12px 0; font-size: clamp(44px, 7vw, 76px); line-height: .96; }
.subpage-hero p { max-width: 840px; color: rgba(255,255,255,.82); font-size: 18px; }
.container.wide { max-width: 1480px; }
.full-auction-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.full-auction-grid .auction-card { min-height: 100%; }
.full-auction-grid .card-image { height: 220px; }
.public-filter-toolbar { margin-top: 32px; }

/* Full gallery page and downloads */
.gallery-page-groups { display: grid; gap: 60px; }
.gallery-album-section .section-heading { margin-bottom: 18px; }
.gallery-page-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.gallery-page-card { overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 8px 26px rgba(18,48,74,.07); }
.gallery-photo-button { display: block; width: 100%; padding: 0; border: 0; background: #dfecef; cursor: zoom-in; }
.gallery-photo-button img { width: 100%; height: 260px; display: block; object-fit: cover; }
.gallery-page-card figcaption { padding: 18px; }
.gallery-page-card figcaption > strong { display: block; color: var(--navy); font-size: 18px; }
.gallery-page-card figcaption p { color: var(--muted); }
.gallery-page-card .meta { display: flex; gap: 8px; flex-wrap: wrap; color: var(--blue); font-size: 12px; font-weight: 750; }
.photo-modal { width: min(980px, 100%); }
.photo-modal-image { width: 100%; max-height: 66vh; object-fit: contain; border-radius: 14px; background: #eef3f5; }

/* GoFundMe / involvement */
.online-donation-panel { overflow: hidden; }
.online-donation-body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.online-donation-body h3 { margin: 18px 0 7px; color: var(--navy); font-size: 30px; }
.online-donation-image { width: 100%; min-height: 240px; display: grid; place-items: center; overflow: hidden; border-radius: 18px; color: var(--gold); background: linear-gradient(145deg, var(--navy), var(--blue)); font-size: 74px; }
.online-donation-image img { width: 100%; height: 280px; object-fit: cover; }
.involvement-tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 20px; padding-bottom: 6px; }
.involvement-tabs .btn { flex: 0 0 auto; }
.volunteer-group-fields { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #f7fbfc; }
.volunteer-opportunities-fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.volunteer-opportunities-fieldset legend { padding: 0 8px; color: var(--navy); font-weight: 850; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.checkbox-card { display: flex; align-items: flex-start; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: white; cursor: pointer; }
.checkbox-card input { width: auto; margin-top: 3px; }

/* Images for all supported public content types */
.link-card-image { width: calc(100% + 44px); height: 150px; margin: -22px -22px 16px; object-fit: cover; }
.announcement-content { display: flex; align-items: center; gap: 12px; }
.announcement-image { width: 62px; height: 62px; flex: 0 0 62px; border-radius: 12px; object-fit: cover; }
.download-cover-image { width: calc(100% + 44px); height: 170px; margin: -22px -22px 16px; object-fit: cover; }
.faq-image { width: 100%; max-height: 260px; object-fit: cover; display: block; }

/* Admin personalization controls */
.admin-config-section { margin: 24px 0; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #f8fbfc; }
.section-content-editor { display: grid; gap: 10px; }
.section-content-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; }
.section-content-card summary { display: flex; justify-content: space-between; gap: 12px; padding: 15px 17px; cursor: pointer; color: var(--navy); }
.section-content-card summary span { color: var(--muted); font-size: 12px; font-weight: 650; }
.section-content-card > .form-grid { padding: 0 17px 18px; }
.admin-checkbox-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.donation-groups-view { display: grid; gap: 22px; }
.donation-group-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; }
.donation-group-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 15px 18px; background: #eef6f8; }
.donation-group-heading h2 { margin: 0; color: var(--navy); font-size: 19px; }
.donation-group-heading span { color: var(--muted); font-size: 13px; }
.donation-type-badge, .amount-tier-badge { display: inline-flex; margin-bottom: 5px; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 850; }
.donation-type-badge.type-money { color: #0d6846; background: #ddf4e8; }
.donation-type-badge.type-gift-card { color: #7f5600; background: #fff0c5; }
.donation-type-badge.type-merchandise { color: #5542a5; background: #ebe7ff; }
.donation-type-badge.type-service { color: #135f89; background: #dff2ff; }
.donation-type-badge.type-sponsorship { color: #8b3c00; background: #ffe8d4; }
.donation-type-badge.type-volunteer { color: #7d2852; background: #fae3ef; }
.donation-type-badge.type-other { color: #52626d; background: #eaf0f3; }
.amount-tier-badge.tier-supporter { color: #52626d; background: #eaf0f3; }
.amount-tier-badge.tier-partner { color: #135f89; background: #dff2ff; }
.amount-tier-badge.tier-champion { color: #7f5600; background: #fff0c5; }
.amount-tier-badge.tier-legacy { color: #6c2852; background: #f8dfed; }
.donation-row.type-money td:first-child { box-shadow: inset 5px 0 #36a879; }
.donation-row.type-gift-card td:first-child { box-shadow: inset 5px 0 #e8b13d; }
.donation-row.type-merchandise td:first-child { box-shadow: inset 5px 0 #7765ca; }
.donation-row.type-service td:first-child { box-shadow: inset 5px 0 #3a97c7; }
.donation-row.type-sponsorship td:first-child { box-shadow: inset 5px 0 #e17f37; }
.donation-row.type-volunteer td:first-child { box-shadow: inset 5px 0 #c25a8b; }
.bids-grouped-container { display: grid; gap: 14px; }
.bid-group-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; }
.bid-group-card summary { display: grid; grid-template-columns: minmax(220px,1fr) auto auto; gap: 14px; align-items: center; padding: 17px 19px; cursor: pointer; }
.bid-group-card summary strong { color: var(--navy); }
.bid-group-highest { color: var(--success); font-weight: 900; }

@media (max-width: 1180px) {
  .full-auction-grid, .gallery-page-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .admin-checkbox-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .auction-portal-card { grid-template-columns: 1fr; }
  .auction-portal-image, .auction-portal-image img { min-height: 280px; max-height: 360px; }
  .full-auction-grid, .gallery-page-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .story-carousel-track .carousel-story-card { flex-basis: 92%; }
  .carousel-prev { left: 5px; }
  .carousel-next { right: 5px; }
}

@media (max-width: 720px) {
  .layout-section[data-layout-size="showcase"] { margin-left: 10px; margin-right: 10px; width: calc(100% - 20px); padding: 36px 18px; border-radius: 23px; }
  .section-heading-image { max-height: 260px; }
  .events-carousel-shell { margin-left: -7px; margin-right: -7px; }
  .events-carousel-shell > .carousel-arrow { display: grid; }
  .mobile-carousel-track { display: flex !important; grid-template-columns: none !important; gap: 14px; overflow-x: auto; padding: 7px 18px 20px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .mobile-carousel-track::-webkit-scrollbar { display: none; }
  .mobile-carousel-track .event-card { flex: 0 0 86%; scroll-snap-align: center; }
  .grouped-carousel-track .sponsor-card { flex-basis: 78vw; }
  .gallery-preview-card { flex-basis: 82vw; }
  .story-carousel-track .carousel-story-card { flex-basis: 88vw; }
  .full-auction-grid, .gallery-page-grid { grid-template-columns: 1fr; }
  .gallery-photo-button img { height: 300px; }
  .checkbox-grid, .admin-checkbox-grid { grid-template-columns: 1fr; }
  .bid-group-card summary { grid-template-columns: 1fr; }
  .announcement-item { grid-template-columns: 1fr; }
  .announcement-content { align-items: flex-start; }
  .subpage-header .brand small { display: block; }
  .subpage-header .header-actions .btn.gold { display: none; }
}

@media (max-width: 480px) {
  .carousel-arrow { width: 40px; height: 40px; font-size: 27px; }
  .carousel-group-tab { padding: 8px 11px; font-size: 12px; }
  .online-donation-image { min-height: 190px; }
  .online-donation-image img { height: 220px; }
  .auction-portal-copy { padding: 28px 20px; }
  .auction-portal-stats span, .subpage-stat-row span { min-width: calc(50% - 6px); }
}
.bid-item-group { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; }
.bid-item-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 19px; cursor: pointer; }
.bid-item-group > summary > div { display: flex; flex-direction: column; }
.bid-item-group > summary strong { color: var(--navy); font-size: 17px; }
.bid-item-group > summary span { color: var(--muted); font-size: 13px; }
.highest-bid-row td { background: #eefaf4; }


/* Flexible event-date and timing displays (v9) */
.event-details-notice { margin: 10px 0; padding: 10px 12px; border-left: 4px solid var(--gold, #f4c542); border-radius: 8px; background: rgba(244,197,66,.12); font-weight: 700; }
.countdown-pending-message { margin: 14px 0; padding: 16px; border: 1px dashed rgba(255,255,255,.45); border-radius: 12px; text-align: center; line-height: 1.45; }
.event-countdown.pending, .hero-event-countdown.pending, .countdown-state.pending { font-weight: 700; }
#campaignDateSeparator.hidden { display: none; }

/* Reusable-template branding hooks */
body { background: var(--page-background, #f4f8fa); }
.brand-logo-image { width: 100%; height: 100%; object-fit: contain; border-radius: 11px; }
.brand-mark:has(.brand-logo-image) { padding: 4px; background: #fff; }
