:root {
  --purple: #505dcb;
  --purple-dark: #33295d;
  --purple-light: #6dcbf0;
  --purple-tint: #f5f5f7;
  --gold: #5ebce1;
  --ink: #181818;
  --muted: #424242;
  --line: #e0e0e0;
  --font-body: 'Inter', Arial, Helvetica, sans-serif;
  --font-display: 'Roboto', Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font: 17px/1.65 var(--font-body); }
a { color: var(--purple-dark); text-underline-offset: 3px; }
a:hover { color: var(--purple); }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
img, video, iframe { max-width: 100%; }
p { margin: 0 0 20px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 20px; }
h2 { color: var(--purple-dark); font-size: clamp(26px, 3.5vw, 38px); }
h3 { font-size: 24px; }
.wrapper { width: min(1100px, 100% - 48px); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 100; padding: 12px 20px; background: var(--gold); }
.skip-link:focus { top: 12px; }
.site-header { position: relative; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 112px; padding-block: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font: bold 18px/1.3 var(--font-display); }
.brand-logo { display: block; width: 250px; height: auto; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; font-size: 14px; font-weight: 700; }
.site-nav a { text-decoration: none; color: var(--purple); }
.site-nav a.button { color: #fff; }
/* Event heading follows the RAISE event page's white, open layout. */
.hero { margin: 0; background: #fff; color: var(--purple-dark); border-bottom: 1px solid var(--line); }
.hero-inner { padding-block: 53px 50px; }
.eyebrow { display: block; font: 700 12px/1.5 var(--font-body); text-transform: uppercase; letter-spacing: 1px; color: var(--purple); margin-bottom: 14px; }
.hero-badge { font-size: 14px; letter-spacing: 0; text-transform: none; }
.hero h1 { font-size: clamp(36px, 5vw, 48px); line-height: 1.1; letter-spacing: -.67px; max-width: 900px; margin: 8px 0 22px; }
.hero p { max-width: 720px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.hero-caption { color: var(--muted); font-size: 13px; }
.page-content { min-height: 300px; padding-block: clamp(36px, 6vw, 64px); }
.page-content > .wrapper > p { max-width: 850px; }
.button, button, input[type='submit'] { display: inline-block; border: 0; border-radius: 999px; background: var(--purple); color: #fff; font: 700 13px/1.4 var(--font-body); padding: 12px 25px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; text-decoration: none; }
.button:hover, button:hover, input[type='submit']:hover { background: #3c397d; color: #fff; }
.button-small { padding: 11px 20px; font-size: 14px; }
.button-secondary { border: 1.5px solid var(--purple); background: transparent; color: var(--purple-dark); }
.button-secondary:hover { background: var(--purple-tint); }
button:disabled, input:disabled { opacity: .55; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.card { border-radius: 7px; background: var(--purple-tint); padding: clamp(24px, 4vw, 36px); }
.card p:last-child { margin-bottom: 0; }
.card-dark { background: var(--purple-dark); color: #fff; }
.card-dark .eyebrow { color: var(--gold); }
.card-dark h2, .card-dark h3 { color: #fff; }
.card-dark p { color: #f6f6f6; }
.card-dark a:not(.button) { color: #fff; }
section { margin-block: 32px; }
.hero { margin: 0; }
form section { border: 1px solid var(--line); border-radius: 7px; padding: clamp(20px, 4vw, 36px); background: #f5f5f7; }
.question { margin-block: 24px; }
.question[aria-hidden='true'] { display: none; }
.question ul { list-style: none; padding: 0; }
.question li { margin: 8px 0; }
label { font-size: 15px; font-weight: 600; }
input, textarea, select { font: inherit; accent-color: var(--purple); }
input:not([type='checkbox']):not([type='radio']):not([type='submit']):not([type='hidden']), textarea, select { border: 1px solid #878787; border-radius: 4px; background: #fff; color: var(--ink); padding: 12px 14px; max-width: 100%; }
.question input:not([type='checkbox']):not([type='radio']):not([type='submit']), .question textarea, .question select { display: block; width: 100%; margin-top: 8px; }
textarea { width: 100%; min-height: 140px; resize: vertical; }
input[type='number'] { width: 6em; }
input[type='checkbox'], input[type='radio'] { width: 18px; height: 18px; vertical-align: middle; margin-right: 6px; }
input[type='file']::file-selector-button { border: 0; border-radius: 6px; background: var(--purple-tint); color: var(--purple-dark); padding: 8px 12px; margin-right: 12px; cursor: pointer; }
.question button { background: transparent; color: var(--purple-dark); padding: 0; border-radius: 0; text-decoration: underline; text-align: left; }
.required.question > label > span, .required.question > p > span:not(.description) { color: #9f2544; }
.description, .attestation { color: var(--muted); font-size: 14px; }
.attestation { font-style: italic; }
table { width: 100%; border-collapse: separate; border-spacing: 0; margin-bottom: 30px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 14px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
thead th { background: var(--purple-tint); color: var(--purple-dark); }
tr:last-child td, tr:last-child th { border-bottom: 0; }
tbody tr:nth-child(even) { background: #f5f5f7; }
.center { text-align: center; }
.alert { padding: 16px 20px; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--purple-tint); }
.alert-error, .alert-danger { background: #fff0f2; border-color: #e5b3bd; color: #84253c; }
.alert-success { background: #edf7f0; border-color: #bedcc8; color: #235a38; }
.alert-warning { background: #fff8dd; color: #725411; }
a.delete { color: #9f2544; }
.app-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.app-list a { display: block; height: 100%; padding: 24px; border-radius: 7px; background: var(--purple-tint); color: var(--ink); text-decoration: none; }
.app-list a:hover { background: #e7e9fa; }
.app-list .app span { font-weight: 700; }
.paginate { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; list-style: none; }
.paginate li { padding: 4px 12px; border-radius: 6px; background: var(--purple-tint); }
.paginate .selected { color: #fff; background: var(--purple); }
.auth-panel { max-width: 520px; margin-inline: auto; background: var(--purple-tint); border-radius: 7px; padding: clamp(24px, 4vw, 40px); }
.auth-panel label { display: block; margin-bottom: 6px; }
.auth-panel input:not([type='submit']):not([type='hidden']) { width: 100%; }
.site-footer { padding-block: 76px; background: #424242; color: #fff; font-size: 14px; line-height: 1.57; }
.footer-inner { width: 100%; max-width: 1640px; margin-inline: auto; padding-inline: 40px; display: flex; flex-direction: column; gap: 132px; }
.footer-top { display: flex; justify-content: space-between; gap: 50px; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 23px; }
.footer-brand { display: block; width: 293px; max-width: 100%; }
.footer-brand img { display: block; width: 100%; height: auto; }
.footer-contact address { font-style: normal; }
.footer-social { display: flex; gap: 16px; margin-top: 7px; }
.footer-social a { display: block; border-radius: 50%; line-height: 0; }
.footer-social svg { width: 40px; height: 40px; }
.footer-social svg * { fill: #fff; }
.footer-social a:hover { opacity: .6; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-sitemap ul { display: flex; flex-direction: column; gap: 15px; list-style: none; padding: 0; margin: 0; text-align: right; }
.footer-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 40px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 5px; }
.footer-bottom p { margin: 0; font-size: 14px; }
@media (max-width: 767px) {
  .footer-inner { padding-inline: 25px; }
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-sitemap ul { text-align: left; }
  .footer-bottom { flex-direction: column; gap: 22px; }
}
@media (max-width: 700px) {
  .wrapper { width: calc(100% - 40px); }
  .header-inner { align-items: flex-start; flex-direction: column; gap: 14px; }
  .site-nav { gap: 16px; font-size: 13px; }
  .site-nav .button { padding: 9px 14px; font-size: 13px; }
  .card-grid, .app-list { grid-template-columns: 1fr; }
  th, td { padding: 10px 7px; font-size: 12px; }
  .brand-logo { width: 220px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Community project gallery */
.gallery-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.gallery-heading h2 { margin-bottom: 0; }
.gallery-count { white-space: nowrap; padding: 8px 16px; background: var(--purple-tint); border-radius: 999px; color: var(--purple-dark); font-size: 14px; font-weight: 700; }
.gallery-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; padding: 24px; margin-bottom: 32px; border: 1px solid var(--line); border-radius: 7px; background: #f5f5f7; }
.gallery-filters > div { flex: 1; min-width: 180px; }
.gallery-filters label { display: block; margin-bottom: 6px; }
.gallery-filters select { width: 100%; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0 0 36px; }
.project-grid > li { min-width: 0; }
.project-card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; text-decoration: none; color: var(--ink); background: #fff; transition: box-shadow .2s, transform .2s; }
.project-card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 12px 30px #33295d14; }
.project-cover { aspect-ratio: 16/9; background: var(--purple-tint); overflow: hidden; }
.project-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(135deg, #33295d, #505dcb); color: #fff; }
.project-placeholder span { font: 700 64px/1 var(--font-display); }
.project-placeholder small { color: #f6f6f6; margin-top: 12px; font-size: 12px; }
.project-card-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.project-category { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--purple); margin-bottom: 12px; }
.project-card h3 { font-size: 25px; margin-bottom: 12px; overflow-wrap: anywhere; }
.project-card p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.project-card-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 18px; margin-top: auto; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--purple-dark); }
.vote-count { border-radius: 999px; padding: 6px 10px; background: var(--purple-tint); }
.vote-count > span { color: var(--purple); margin-right: 4px; }
.gallery-empty { grid-column: 1 / -1; text-align: center; background: var(--purple-tint); padding: 48px 24px; border-radius: 7px; }
.project-detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 40px; align-items: start; }
.detail-preview { width: 100%; height: auto; max-height: 480px; object-fit: contain; border-radius: 7px; background: var(--purple-tint); margin-bottom: 28px; }
.support-card { background: var(--purple-tint); padding: 28px; border-radius: 7px; }
.support-card h2 { font-size: 28px; }
.support-count { font: 700 42px/1.2 var(--font-display); color: var(--purple-dark); }
.support-count span { font: 14px var(--font-body); }
@media (max-width: 1000px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .project-grid, .project-detail { grid-template-columns: 1fr; } .gallery-heading { flex-wrap: wrap; } .gallery-filters { padding: 18px; } }
@media (prefers-reduced-motion: reduce) { .project-card { transition: none; } .project-card:hover { transform: none; } }
.participant-actions { margin-bottom: 18px; }
.hero .participant-note { font-size: 14px; margin-bottom: 24px; }
.registration-form { max-width: 760px; }
