@font-face {
  font-family: 'Public Sans';
  src: url('/site-assets/fonts/PublicSans-Variable.woff2') format('woff2');
  font-display: swap;
  font-weight: 100 900;
}

:root {
  --primary: #137fec;
  --primary-dark: #0d5ab8;
  --primary-light: #4d9bf0;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --background: #f6f7f8;
  --surface: #fff;
  --surface-variant: #f3f4f6;
  --ink: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow: rgb(0 0 0 / 10%);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --content-width: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 400 16px/1.5 'Public Sans', system-ui, sans-serif;
  letter-spacing: .01em;
}
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 3px;
}
img { display: block; max-width: 100%; }
.skip-link {
  position: absolute;
  z-index: 20;
  left: 16px;
  top: -56px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { top: 16px; }

.site-header {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  background: var(--surface);
  box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.site-header .brand img { width: 180px; height: auto; }
.site-header .brand span { display: none; }
.site-header nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.site-header nav a {
  padding: 8px 16px;
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-lg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}
.site-header nav a:hover { background: #eef6ff; }
.site-header nav a:first-child,
.site-header nav a.login-link { border-color: transparent; }
.site-header nav a.report-link { border-color: var(--primary); background: var(--primary); color: #fff; }

main { width: 100%; }
section { width: 100%; }
.landing-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 84px 32px;
  background:
    linear-gradient(rgb(17 24 39 / 20%), rgb(17 24 39 / 20%)),
    url('/site-assets/images/hero.jpg') center bottom / cover no-repeat;
}
.landing-hero-copy {
  width: min(600px, 100%);
  padding: 32px;
  border-radius: var(--radius-md);
  background: rgb(17 24 39 / 80%);
  color: #fff;
  text-align: center;
}
.landing-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 5vw, 57px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.25px;
  text-align: left;
}
.landing-hero h1 span { display: block; }
.landing-hero-copy > p { margin: 24px 0 0; color: rgb(255 255 255 / 90%); font-size: 16px; line-height: 1.5; text-align: center; }
.landing-hero-image { display: none; }
.landing-hero-actions { display: flex; justify-content: center; gap: 32px; margin-top: 40px; }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font: 600 16px/1.5 'Public Sans', system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--primary-dark); }
.landing-hero-actions .button { width: 280px; }
.landing-hero-actions .button-outline { border: 2px solid #fff; background: rgb(17 24 39 / 60%); }
.landing-hero-actions .button-outline:hover { background: rgb(17 24 39 / 85%); }
.inline-icon { width: 20px; height: 20px; flex: 0 0 auto; }

.landing-stats, .involvement, .community-updates, .faq, .contact { width: min(var(--content-width), 100%); margin: 0 auto; padding: 0 32px; }
.landing-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 64px; }
.stat-card { min-height: 156px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; border-radius: var(--radius-xl); background: var(--surface); box-shadow: 0 2px 8px rgb(0 0 0 / 10%); text-align: center; }
.stat-card .inline-icon { width: 48px; height: 48px; padding: 8px; border-radius: 50%; color: var(--primary); background: rgb(19 127 236 / 10%); }
.stat-card:nth-child(1) .inline-icon { color: var(--success); background: rgb(16 185 129 / 10%); }
.stat-card:nth-child(2) .inline-icon { color: var(--warning); background: rgb(245 158 11 / 10%); }
.stat-card strong { font-size: 45px; font-weight: 700; line-height: 1.16; }
.stat-card span { color: var(--muted); font-size: 16px; font-weight: 600; }

.involvement { padding-top: 64px; }
.section-kicker { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 1.5px; line-height: 1.6; text-transform: uppercase; }
.involvement h2, .community-updates h2, .faq h2, .contact h2 { margin: 0; color: var(--ink); font-size: 36px; font-weight: 700; line-height: 1.22; }
.section-subtitle { margin: 8px 0 40px; color: var(--muted); font-size: 16px; }
.involvement-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.feature-card { display: flex; flex-direction: column; align-items: flex-start; padding: 32px; border: 2px solid transparent; border-radius: var(--radius-xl); background: var(--surface); box-shadow: 0 4px 16px rgb(0 0 0 / 5%); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { border-color: var(--primary); box-shadow: 0 8px 20px rgb(0 0 0 / 10%); transform: scale(1.01); }
.feature-card:nth-child(2):hover { border-color: var(--success); }
.feature-card > .inline-icon { width: 56px; height: 56px; padding: 12px; border-radius: var(--radius-xl); color: var(--primary); background: rgb(19 127 236 / 10%); }
.feature-card:nth-child(2) > .inline-icon { color: var(--success); background: rgb(16 185 129 / 10%); }
.feature-card h3 { margin: 24px 0 12px; font-size: 24px; line-height: 1.33; }
.feature-card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.feature-card .button { margin-top: 24px; }

.community-updates { padding-top: 64px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-heading > a { color: var(--primary); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.community-updates-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.update-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); box-shadow: 0 3px 8px rgb(0 0 0 / 5%); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.update-card:hover { border-color: rgb(19 127 236 / 30%); box-shadow: 0 6px 16px rgb(0 0 0 / 12%); transform: translateY(-3px); }
.update-card > a { display: block; color: inherit; text-decoration: none; }
.update-media { aspect-ratio: 16 / 9; overflow: hidden; background: rgb(19 127 236 / 8%); }
.update-media img { width: 100%; height: 100%; object-fit: cover; }
.update-media-placeholder { height: 100%; display: grid; place-items: center; color: rgb(107 114 128 / 40%); }
.update-media-placeholder .inline-icon { width: 48px; height: 48px; }
.update-card-content { padding: 16px; }
.update-type { display: flex; align-items: center; gap: 4px; margin: 0 0 8px; color: var(--primary); font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.update-type .inline-icon { width: 14px; height: 14px; }
.update-card time, .update-card-content small { color: var(--muted); font-size: 12px; }
.update-card h3 { margin: 12px 0 8px; font-size: 16px; line-height: 1.5; }
.update-card-content > p:not(.update-type) { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.update-card-content small { display: block; margin-top: 8px; }
.empty-state { padding: 16px; border-radius: var(--radius-md); background: var(--surface); color: var(--muted); }

.faq { max-width: 900px; padding-top: 64px; }
.faq h2 { margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--border); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

.contact { max-width: 100%; margin-top: 64px; padding-top: 64px; padding-bottom: 64px; background: var(--surface); text-align: center; }
.contact-intro { width: min(800px, 100%); margin: 0 auto 40px; }
.contact-intro > .inline-icon { width: 48px; height: 48px; color: var(--primary); margin: 0 auto 20px; }
.contact-intro .section-kicker { margin-bottom: 8px; }
.contact-intro > p:last-child { margin: 8px 0 0; color: var(--muted); }
.contact-form { width: min(800px, 100%); margin: 0 auto; text-align: left; }
.contact-form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-form label { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }
.contact-form input, .contact-form textarea { width: 100%; margin-top: 8px; padding: 12px 20px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--background); color: var(--ink); font: inherit; }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); outline: 2px solid rgb(19 127 236 / 20%); }
.contact-form-fields label:nth-of-type(3), .contact-form-fields label:nth-of-type(4), .contact-form-fields label:nth-of-type(5) { grid-column: 1 / -1; }
.contact-form-fields input[type="hidden"] { display: none; }
.contact-form-help { min-height: 24px; margin: 16px 0 0; font-size: 14px; }
.contact-form-help[data-state="success"] { color: #059669; }
.contact-form-help[data-state="error"] { color: var(--danger); }
.contact-form > .button { margin-top: 20px; }
.contact-form[aria-busy="true"] .button { cursor: wait; opacity: .7; }

.site-footer { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding: 48px 32px 32px; background: var(--ink); color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer .brand img { display: none; }
.site-footer .brand span { display: inline; }
.site-footer p { margin: 20px 0 0; color: rgb(255 255 255 / 70%); font-size: 14px; }
.site-footer h2 { margin: 0 0 20px; color: #fff; font-size: 16px; line-height: 1.5; }
.site-footer > div:not(.footer-brand) { display: flex; flex-direction: column; }
.site-footer > div:not(.footer-brand) a, .site-footer > div:not(.footer-brand) span { padding: 8px 0; color: rgb(255 255 255 / 70%); font-size: 14px; text-decoration: none; }
.site-footer > div:not(.footer-brand) a:hover { color: #fff; }
.site-footer .copyright { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 32px; border-top: 1px solid rgb(255 255 255 / 12%); color: rgb(255 255 255 / 50%); }

.page-heading, .report, .blog-post { width: min(1200px, 100%); margin: 0 auto; padding: 64px 32px 0; }
.page-heading h1, .report h1, .blog-post h1 { margin: 4px 0 16px; font-size: 36px; line-height: 1.22; }
.eyebrow, dt { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; }
.post-list, .report-meta { width: min(1200px, calc(100% - 64px)); margin: 40px auto 64px; padding: 0; list-style: none; }
.post-list { border-top: 1px solid var(--border); }
.post-list li { border-bottom: 1px solid var(--border); }
.post-list a { display: block; padding: 20px 0; text-decoration: none; }
.post-list h2, .post-list p { margin: 4px 0; }
.post-list p, .byline, .report-place, .report-description, .prose { color: var(--muted); }
.report, .blog-post { max-width: 800px; }
.report-description, .prose { font-size: 16px; }
.report-description p, .prose p { margin: 0 0 16px; }
.actions { margin: 28px 0; }
.report-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border); padding: 1px; }
.report-meta div { padding: 16px; background: var(--surface); }
.report-meta dd { margin: 4px 0 0; font-weight: 700; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 32px 0; }
.photo-grid img, .cover-image { width: 100%; height: auto; border-radius: var(--radius-md); }
.prose a { overflow-wrap: anywhere; color: var(--primary-dark); }
.prose h2, .prose h3 { color: var(--ink); }
.error-page { min-height: 45vh; display: grid; align-content: center; padding: 64px 32px; }

@media (max-width: 900px) {
  .site-header nav a { padding: 8px 10px; }
  .site-header nav a.report-link { display: none; }
}
@media (min-width: 768px) {
  .landing-hero { min-height: 500px; }
}
@media (max-width: 767px) {
  .site-header { height: auto; min-height: 70px; padding: 12px 16px; }
  .site-header .brand img { width: 154px; }
  .site-header nav { flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
  .site-header nav a { padding: 6px 8px; font-size: 12px; }
  .landing-hero { padding: 84px 32px; }
  .landing-hero-copy { padding: 32px; }
  .landing-hero h1 { font-size: 45px; }
  .landing-hero-actions { flex-direction: column; gap: 16px; margin-top: 32px; }
  .landing-hero-actions .button { width: 100%; }
  .landing-stats, .involvement, .community-updates, .faq, .contact { padding-left: 16px; padding-right: 16px; }
  .landing-stats { grid-template-columns: 1fr; gap: 20px; padding-top: 40px; }
  .stat-card { min-height: 96px; flex-direction: row; justify-content: space-between; text-align: left; }
  .stat-card strong { margin-left: auto; font-size: 28px; }
  .stat-card span { font-size: 14px; }
  .involvement, .community-updates, .faq { padding-top: 40px; }
  .involvement h2, .community-updates h2, .faq h2, .contact h2 { font-size: 24px; }
  .involvement-grid, .community-updates-grid, .contact-form-fields { grid-template-columns: 1fr; }
  .feature-card { padding: 32px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .contact { margin-top: 40px; padding-top: 40px; padding-bottom: 40px; }
  .contact-form-fields label:nth-of-type(3), .contact-form-fields label:nth-of-type(4), .contact-form-fields label:nth-of-type(5) { grid-column: auto; }
  .site-footer { display: block; padding: 40px 16px 24px; }
  .site-footer > div { margin-bottom: 32px; }
  .site-footer .copyright { margin-top: 32px; }
  .page-heading, .report, .blog-post { padding: 40px 16px 0; }
  .post-list, .report-meta { width: calc(100% - 32px); }
  .report-meta { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Landing components mirror the Flutter public screen hierarchy. */
.landing-hero { gap: 40px; }
.landing-hero-actions { margin-top: 0; }
.landing-stats .stat-card { gap: 20px; }
.stat-card-heading { display: flex; align-items: center; justify-content: center; gap: 8px; }
.stat-card-heading span { color: var(--muted); font-size: 16px; font-weight: 600; }
.stat-card-heading .inline-icon { flex: 0 0 auto; }
.stat-card > strong { display: block; }
.feature-action { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; color: var(--primary); font-size: 14px; font-weight: 700; text-decoration: none; }
.feature-action:hover { text-decoration: underline; }
.feature-action-success { color: var(--success); }
.community-updates-grid { display: flex; gap: 20px; overflow-x: auto; padding: 4px 2px 16px; scroll-snap-type: x proximity; }
.community-updates-carousel { display: flex; align-items: center; gap: 20px; }
.community-updates-scroller { min-width: 0; flex: 1; overflow: hidden; }
.community-updates-scroller .community-updates-grid { overflow: visible; }
.updates-control { display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgb(0 0 0 / 15%); cursor: pointer; }
.updates-control:hover:not(:disabled) { background: var(--surface-variant); }
.updates-control:disabled { cursor: default; opacity: .35; }
.updates-control .inline-icon { width: 28px; height: 28px; }
.update-card { flex: 0 0 320px; scroll-snap-align: start; }
.update-media { position: relative; }
.update-badge { position: absolute; top: 12px; left: 12px; padding: 6px 12px; border-radius: var(--radius-sm); color: #fff; box-shadow: 0 2px 4px rgb(0 0 0 / 20%); font-size: 10px; font-weight: 700; letter-spacing: .5px; line-height: 1.45; }
.update-badge-issue { background: var(--primary); }
.update-badge-community { background: #3b82f6; }
.update-badge-official { background: var(--primary); }
.update-meta { display: flex; align-items: center; gap: 4px; min-height: 20px; color: var(--muted); font-size: 12px; }
.update-meta > .inline-icon { width: 14px; height: 14px; }
.update-location { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.update-location .inline-icon { width: 14px; height: 14px; }
.update-type { display: none; }
.contact-form-fields { row-gap: 20px; }
.contact-field { min-width: 0; }
.contact-field-full { grid-column: 1 / -1; }
.contact-control { position: relative; display: flex; align-items: flex-start; }
.contact-control > .inline-icon { position: absolute; top: 20px; left: 16px; z-index: 1; width: 20px; height: 20px; color: var(--muted); }
.contact-control textarea + .inline-icon { top: 20px; }
.contact-control input, .contact-control textarea { margin-top: 8px; padding-left: 52px; }
.contact-control textarea { padding: 12px 20px; padding-left: 20px; }
.contact-submit { display: flex; width: 200px; margin: 20px auto 0; }
.contact-noscript { margin: 16px 0 0; color: var(--danger); font-size: 14px; text-align: center; }
.site-footer { padding: 0; }
.site-footer-inner { width: min(var(--content-width), 100%); display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin: 0 auto; padding: 48px 32px 32px; }
.site-footer .footer-mark { display: inline-grid; width: 24px; height: 24px; place-items: center; border-radius: 6px; background: var(--primary); color: #fff; font-size: 17px; line-height: 1; }
.site-footer .footer-mark { display: block; border-radius: 0; background: transparent; color: var(--primary); }
.site-footer-inner .copyright { grid-column: 1 / -1; }
.site-header nav a.nav-action { display: inline-flex; align-items: center; gap: 8px; }
.site-header nav a.nav-blog, .site-header nav a.nav-home { border-color: var(--primary-light); background: var(--surface); color: var(--ink); }
.site-header nav a.nav-login { border-color: var(--primary); background: var(--primary); color: #fff; }
.site-header .nav-icon { width: 17px; height: 17px; }
.site-footer-inner > .footer-brand { display: block; }
.site-footer-inner > .footer-brand .brand span { padding: 0; color: inherit; font-size: inherit; }
.site-footer-inner > div:not(.footer-brand) { display: flex; flex-direction: column; }
.site-footer-inner > div:not(.footer-brand) a, .site-footer-inner > div:not(.footer-brand) span { padding: 8px 0; }

@media (max-width: 767px) {
  .landing-hero-actions { width: min(600px, 100%); flex-direction: column; gap: 16px; }
  .landing-hero-actions .button { width: 100%; }
  .stat-card-heading { justify-content: flex-start; }
  .stat-card .inline-icon { width: 44px; height: 44px; }
  .stat-card-heading span { font-size: 14px; }
  .community-updates-grid { display: grid; overflow: visible; padding-bottom: 0; }
  .community-updates-carousel { display: block; }
  .updates-control { display: none; }
  .update-card { width: 100%; }
  .contact-submit { width: 100%; }
  .site-footer-inner { display: block; padding: 40px 16px 24px; }
  .site-footer-inner > div { margin-bottom: 32px; }
  .site-footer-inner .copyright { margin-top: 32px; }
}

@media (max-width: 899px) {
  .site-header { gap: 12px; }
  .site-header nav { flex-wrap: nowrap; gap: 8px; }
  .site-header nav a.nav-action { width: 40px; height: 40px; justify-content: center; padding: 0; border-radius: 50%; }
  .site-header nav a.nav-action .nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; clip-path: inset(50%); }
  .site-header nav a.nav-action .nav-icon { width: 20px; height: 20px; }
}
