/* Shared type and semantic colours. Load after page-specific styles. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font-ui: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --site-text: #18181b;
  --site-muted: #64646d;
  --site-green: #15803d;
  --site-link: #4f46e5;
  --text: var(--site-text);
  --muted: var(--site-muted);
  --green: var(--site-green);
}

body {
  font-family: var(--font-ui);
  --map-text: #18181b;
  --map-muted: #64646d;
  --map-green: #15803d;
}

/* Leaflet supplies its own font, so its UI needs an explicit override. */
.leaflet-container, button, input, select, textarea {
  font-family: var(--font-ui);
}

.content h2,
.content .section h2,
.section-title {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

/* Keep component headings below the page's section-heading scale. */
.content .form-section-heading h2 {
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.content .form-section-heading p {
  font-size: 14px;
  line-height: 1.45;
}

.content .event-title {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.button, .email-button, .submit-form-button, .support-card-button,
.hero-map-link, .footer-cta a, .event-actions a {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.button.primary, .button.green, .email-button,
.submit-form-button, .support-card-button,
.hero-map-link, .footer-cta a {
  background: var(--site-green);
  color: #ffffff;
}

.button.primary:hover, .button.green:hover, .email-button:hover,
.submit-form-button:hover, .support-card-button:hover,
.hero-map-link:hover, .footer-cta a:hover {
  background: #166534;
  color: #ffffff;
}

.footer-links, .footer-links a, .site-footer, .site-footer a {
  font-size: 14px;
}

.footer-links a, .site-footer a, .breadcrumbs a, .breadcrumb a {
  color: var(--site-link);
  font-weight: 800;
}

.footer-note, .footer-copyright, .site-footer {
  color: var(--site-muted);
  font-size: 13px;
}

/* Error uses red; informational and warning notices keep their own colours. */
.report-state.report-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.report-error h2, .report-error strong, .report-error p {
  color: #991b1b;
}

/* Bring the recommendation page into the same public-page identity. */
body:has(.material-shell) {
  background:
    radial-gradient(circle at top left, rgba(250, 204, 21, 0.14), transparent 30rem),
    radial-gradient(circle at bottom right, rgba(109, 40, 217, 0.12), transparent 30rem),
    #f4f4f5;
  color: var(--site-text);
}

.material-shell {
  --accent: var(--site-green);
  --ink: var(--site-text);
  --muted: var(--site-muted);
  --line: #e4e4e7;
}

.material-hero {
  background: linear-gradient(135deg, #111111, #27272a);
}

.material-hero h1 {
  font-size: clamp(36px, 6vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.material-hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

.material-hero .eyebrow {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: normal;
  text-transform: none;
}

.material-content .button {
  border-color: var(--site-green);
  background: var(--site-green);
  color: #ffffff;
}

.material-content .button:hover {
  border-color: #166534;
  background: #166534;
}

.affiliate-notice {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: var(--site-muted);
  font-size: 14px;
}

.material-shell a:focus-visible {
  outline: 3px solid #facc15;
  outline-offset: 3px;
}

.destination-note { font-size: 13px; }

@media (max-width: 720px) {
  .compact-content-page .hero h1,
  .material-hero h1 {
    font-size: clamp(32px, 9vw, 40px);
    line-height: 1.06;
    letter-spacing: -.045em;
  }

  .compact-content-page .hero p,
  .material-hero p { font-size: 16px; line-height: 1.6; }

  .compact-content-page .hero { padding-top: 26px; }

  .compact-content-page .topbar { position: relative; }

  .compact-content-page .top-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .compact-content-page .top-actions .pill-link,
  .compact-content-page .top-actions .back-link {
    flex: 1 1 auto;
    width: auto;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
  }

  .compact-content-page .top-actions .publish-language-toggle,
  .compact-content-page .top-actions .agenda-language-link {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    min-height: 44px;
    padding: 10px 0;
  }

  .compact-content-page .brand { margin-right: 52px; }

  .resources-page .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .resources-page .hero-actions .button { min-height: 44px; padding: 10px; }
  .resources-page .hero-actions .button.primary { grid-column: 1 / -1; }
}
