:root {
  --eb-space-2: 0.5rem;
  --eb-space-3: 0.75rem;
  --eb-space-4: 1rem;
  --eb-space-6: 1.5rem;
  --eb-space-8: 2rem;
  --eb-radius-md: 0.75rem;
  --eb-radius-lg: 1rem;
  --eb-shadow-soft: 0 18px 40px -24px rgba(15, 23, 42, 0.32);
  --eb-surface-border: rgba(148, 163, 184, 0.18);
  --eb-breakpoint-tablet: 48rem;
  --eb-breakpoint-laptop: 64rem;
  --eb-breakpoint-desktop: 90rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
}

body {
  min-width: 20rem;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
}

img,
svg,
video,
canvas,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
}

img,
svg,
video,
canvas {
  height: auto;
}

iframe,
embed,
object {
  width: 100%;
}

input,
select,
textarea,
button {
  max-width: 100%;
  font: inherit;
}

textarea {
  resize: vertical;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.section {
  padding: 2.5rem 0;
}

.section,
.hero,
.resources-hero,
.news-hero,
.contact-hero {
  padding-left: 1rem;
  padding-right: 1rem;
}

.container,
.wrap,
.footer-container,
.eb-nav-inner {
  width: min(100% - 1.5rem, 90rem);
  margin-inline: auto;
}

.eb-navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.eb-nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  padding: 0.75rem 0;
}

.eb-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex: 0 0 auto;
}

.eb-logo {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  object-fit: cover;
}

.eb-brand-text {
  font-weight: 800;
  letter-spacing: 0.0125rem;
  color: #0f172a;
  font-size: 1rem;
  white-space: nowrap;
}

.eb-nav-panel {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 auto;
  min-width: 0;
}

.eb-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.125rem;
  flex: 1 1 auto;
  min-width: 0;
}

.eb-link {
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem;
  border-radius: 0.625rem;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.eb-link:hover,
.eb-link.active {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
}

.eb-link-donate {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #ffffff;
  border: 1px solid rgba(180, 83, 9, 0.35);
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.25);
  position: relative;
  overflow: hidden;
}

.eb-link-donate:hover,
.eb-link-donate.active {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(234, 88, 12, 0.28);
}

.eb-link-donate:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

.eb-link-donate::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.55);
  animation: donatePulse 2.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes donatePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.45); }
  50% { box-shadow: 0 0 0 7px rgba(249, 115, 22, 0); }
}

.eb-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex: 0 0 auto;
  min-width: max-content;
}

.eb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.375rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  border: 1px solid transparent;
  white-space: nowrap;
}

.eb-btn-ghost {
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
  background: #ffffff;
}

.eb-btn-ghost:hover,
.eb-btn-ghost.active {
  background: rgba(15, 23, 42, 0.04);
}

.eb-btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

.eb-btn-primary:hover {
  filter: brightness(1.03);
}

.eb-burger {
  display: none;
  width: 2.625rem;
  height: 2.625rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.3125rem;
  margin-left: auto;
}

.eb-burger span {
  width: 1.125rem;
  height: 0.125rem;
  background: #0f172a;
  display: block;
  border-radius: 999px;
}

.eb-page-stack {
  display: grid;
  gap: var(--eb-space-4);
}

.eb-flow > * + * {
  margin-top: var(--eb-space-4);
}

.eb-grid-2,
.eb-grid-3,
.eb-grid-4 {
  display: grid;
  gap: var(--eb-space-4);
  grid-template-columns: minmax(0, 1fr);
}

.eb-card,
.admin-card,
.dbg-card {
  min-width: 0;
  padding: var(--eb-space-4);
  border-radius: var(--eb-radius-lg);
  border: 1px solid var(--glass-border, var(--eb-surface-border));
  background: var(--bg-card, rgba(255, 255, 255, 0.98));
  box-shadow: var(--card-shadow, var(--eb-shadow-soft));
}

.eb-card > :first-child,
.admin-card > :first-child,
.dbg-card > :first-child {
  margin-top: 0;
}

.text-muted,
.eb-muted {
  color: var(--text-muted, #64748b);
}

.eb-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--eb-space-4);
  align-items: end;
}

.eb-field {
  display: flex;
  flex-direction: column;
  gap: var(--eb-space-2);
  min-width: 0;
}

.eb-field--check {
  flex-direction: row;
  align-items: center;
  gap: var(--eb-space-2);
}

.eb-field--check input {
  flex: 0 0 auto;
}

.eb-form-actions {
  display: grid;
  gap: var(--eb-space-3);
}

.form-control,
.newsletter-input {
  width: 100%;
  min-height: 2.75rem;
}

textarea.form-control {
  min-height: 7rem;
}

.btn {
  max-width: 100%;
}

.btn-outline-light {
  color: var(--text-primary, #f8fafc);
  background: rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(148, 163, 184, 0.32);
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  color: var(--text-primary, #ffffff);
  background: rgba(148, 163, 184, 0.14);
}

.eb-table-wrap,
.table-responsive,
.table-scroll,
.dbg-table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--eb-radius-md);
}

.eb-table-wrap > table,
.table-responsive > table,
.table-scroll > table,
.dbg-table-wrap > table {
  width: 100%;
  min-width: 40rem;
}

.eb-table-wrap th,
.eb-table-wrap td,
.table-responsive th,
.table-responsive td,
.table-scroll th,
.table-scroll td,
.dbg-table-wrap th,
.dbg-table-wrap td {
  overflow-wrap: anywhere;
}

.eb-table-wrap::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.table-scroll::-webkit-scrollbar,
.dbg-table-wrap::-webkit-scrollbar {
  height: 0.625rem;
}

.eb-table-wrap::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb,
.table-scroll::-webkit-scrollbar-thumb,
.dbg-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
}

.eb-embed {
  width: 100%;
  overflow: hidden;
  border-radius: var(--eb-radius-lg);
}

.eb-embed iframe,
.eb-embed embed,
.eb-embed object {
  width: 100%;
}

.eb-inline-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--eb-space-3);
  align-items: center;
}

.grid-3,
.card-grid,
.additional-grid {
  display: grid;
  gap: var(--eb-space-4);
  grid-template-columns: minmax(0, 1fr);
}

.hero-title,
.hero h1 {
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  line-height: 1.1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.eb-nav-inner {
  align-items: center;
}

.eb-brand {
  min-width: 0;
}

.eb-brand-text {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reference-number,
.application-ref {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 61.25rem) {
  .eb-burger {
    display: inline-flex;
  }

  .eb-nav-panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 1rem;
    padding: 0.625rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.625rem;
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.12);
  }

  .eb-nav-panel.is-open {
    display: flex;
  }

  .eb-nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.375rem;
  }

  .eb-link {
    padding: 0.75rem;
  }

  .eb-link-donate {
    text-align: center;
  }

  .eb-nav-actions {
    width: 100%;
    justify-content: stretch;
  }

  .eb-nav-actions .eb-btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 47.99rem) {
  .eb-form-actions .btn,
  .eb-form-actions a.btn,
  .eb-form-grid .btn,
  .eb-form-grid a.btn,
  .newsletter-form .newsletter-btn {
    width: 100%;
  }

  .eb-inline-cluster,
  .button-group,
  .btn-group,
  .actions,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .eb-inline-cluster > *,
  .button-group > *,
  .btn-group > *,
  .actions > *,
  .hero-actions > * {
    width: 100%;
  }

  .eb-nav-inner {
    width: min(100% - 1rem, 90rem);
    padding-inline: 0;
  }

  .eb-nav-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .eb-nav-actions .eb-btn {
    width: 100%;
  }

  .eb-brand {
    max-width: calc(100% - 3.5rem);
  }

  .hero-actions .btn,
  .hero-actions a {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 23.5rem) {
  .eb-brand-text {
    display: none;
  }
}

@media (min-width: 48rem) {
  .container,
  .wrap,
  .footer-container,
  .eb-nav-inner {
    width: min(100% - 2rem, 90rem);
  }

  .section {
    padding: 4rem 0;
  }

  .eb-card,
  .admin-card,
  .dbg-card {
    padding: var(--eb-space-6);
  }

  .eb-grid-2,
  .eb-grid-3,
  .eb-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eb-form-grid--2,
  .eb-form-grid--3,
  .eb-form-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eb-field--span-2,
  .eb-form-actions--span-2 {
    grid-column: span 2;
  }

  .grid-3,
  .card-grid,
  .additional-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .container,
  .wrap,
  .footer-container,
  .eb-nav-inner {
    width: min(100% - 3rem, 90rem);
  }

  .eb-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .eb-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .eb-form-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .eb-form-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .eb-form-actions--inline {
    grid-auto-flow: column;
    justify-content: start;
  }

  .eb-table-wrap > table,
  .table-responsive > table,
  .table-scroll > table,
  .dbg-table-wrap > table {
    min-width: 0;
  }
}

@media (min-width: 90rem) {
  .eb-page-stack {
    gap: var(--eb-space-6);
  }
}
