.hero {
  position: relative;
  padding: 5rem 0 6rem;
  background-color: var(--white);
  background-image:
    linear-gradient(90deg, rgba(12, 18, 28, 0.82) 0%, rgba(12, 18, 28, 0.62) 42%, rgba(12, 18, 28, 0.38) 100%),
    var(--hero-background-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-bottom: 1px solid var(--border-color);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1rem;
  color: var(--white);
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.description {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 2.5rem;
  font-size: 0.9375rem;
}

.hero .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.nav-dropdown-toggle::after {
  content: "▼";
  font-size: 0.56rem;
  line-height: 1;
}

.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle {
  color: var(--brand-dark);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.7rem);
  left: 0;
  min-width: 14.5rem;
  display: grid !important;
  gap: 0 !important;
  padding: 0.45rem !important;
  border: 1px solid rgba(26, 43, 60, 0.12);
  border-radius: 0.5rem;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: 0.18s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.62rem 0.7rem;
  border-radius: 0.4rem;
}

.nav-dropdown-menu a:hover {
  background: var(--bg-alt);
}

.annual-heading {
  display: grid;
  gap: 0.45rem;
}

.history-badge {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.36rem 0.72rem;
  border: 1px solid rgba(26, 43, 60, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.indicator-groups {
  display: grid;
  gap: 1rem;
}

.indicator-group {
  border: 1px solid rgba(26, 43, 60, 0.1);
  border-radius: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.74);
}

.indicator-group h3 {
  margin: 0 0 0.75rem;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.indicator-group-safety {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 247, 237, 0.72) 100%);
  border-color: rgba(217, 119, 6, 0.24);
}

.indicators-grid {
  display: flex;
  gap: 0.625rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.8rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(44, 62, 80, 0.35) transparent;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-title-row .section-title {
  margin-bottom: 0;
}

.section-title-row-with-filters {
  align-items: flex-end;
}

.year-select-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.year-select-label select {
  min-width: 5.75rem;
  height: 2.45rem;
  padding: 0 0.75rem;
  border: 1px solid rgba(26, 43, 60, 0.16);
  border-radius: 0.5rem;
  background: #ffffff;
  color: var(--brand-dark);
  font-weight: 800;
}

.dashboard-filters {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.dashboard-filters label {
  display: grid;
  gap: 0.3rem;
  min-width: 8.5rem;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-filters input,
.dashboard-filters select {
  width: 100%;
  height: 2.45rem;
  padding: 0 0.75rem;
  border: 1px solid rgba(26, 43, 60, 0.16);
  border-radius: 0.5rem;
  background: #ffffff;
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.dashboard-filters label:last-child {
  min-width: 12rem;
}

.stat-card {
  flex: 1 0 150px;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.8rem;
  border: 1px solid rgba(26, 43, 60, 0.1);
  border-radius: 0.8rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  scroll-snap-align: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.stat-card::before {
  content: "";
  width: 1.75rem;
  height: 0.2rem;
  border-radius: 999px;
  background: var(--brand-blue);
  margin-bottom: 0.75rem;
}

.indicators-grid::-webkit-scrollbar {
  height: 0.55rem;
}

.indicators-grid::-webkit-scrollbar-thumb {
  background: rgba(44, 62, 80, 0.35);
  border-radius: 999px;
}

.indicators-grid::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, 0.12);
  border-radius: 999px;
}

.stat-card label {
  display: block;
  font-size: 0.56rem;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  letter-spacing: 0.06em;
}

.stat-card .value {
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--brand-dark);
}

.safety-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.safety-metric-card {
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(26, 43, 60, 0.1);
  border-left: 4px solid var(--accent-orange);
  border-radius: 0.5rem;
  background: #ffffff;
  color: var(--brand-dark);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.3;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.stat-card.warning::before {
  background: var(--accent-orange);
}

.stat-card.danger::before,
.stat-card.fatal::before {
  background: var(--accent-red);
}

.stat-card.warning {
  background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
}

.stat-card.danger {
  background: linear-gradient(180deg, #ffffff 0%, #fef2f2 100%);
}

.stat-card.warning .value {
  color: var(--accent-orange);
}

.stat-card.danger .value {
  color: var(--accent-red);
}

.stat-card.fatal {
  background: linear-gradient(180deg, #ffffff 0%, #fee2e2 100%);
}

.stat-card.fatal .value {
  color: var(--accent-red);
}

.charts-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.statistics-panels-section {
  padding-top: 3rem;
}

.chart-tabs {
  display: grid;
  gap: 0.85rem;
}

.chart-menu-anchors {
  position: relative;
  height: 0;
}

.chart-menu-anchors span {
  position: absolute;
  top: -5.5rem;
}

.chart-tabs-nav {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.1rem 0 0.35rem;
  scrollbar-width: thin;
}

.chart-tab {
  flex: 0 0 auto;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(26, 43, 60, 0.12);
  border-radius: 0.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.2s ease;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.chart-tab:hover {
  transform: translateY(-2px);
  color: var(--brand-dark);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
}

.chart-tab.is-active {
  border-color: rgba(26, 43, 60, 0.28);
  background: linear-gradient(135deg, #1a2b3c 0%, #30485f 100%);
  color: var(--white);
  box-shadow: 0 18px 38px rgba(26, 43, 60, 0.2);
}

.chart-tab-panel {
  animation: chartPanelFade 0.24s ease;
}

.chart-tabs-panels .card {
  border-radius: 0.5rem;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
}

.chart-container h3 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  margin-bottom: 0;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  font-weight: 700;
}

.chart-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border-color);
}

.chart-card-heading span {
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.chart-wrapper {
  position: relative;
  width: 100%;
  height: 390px;
}

.chart-empty {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

@keyframes chartPanelFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.full-width {
  grid-column: 1 / -1;
}

.chart-wrapper-small {
  max-width: 420px;
  margin: 0 auto;
}

.contribute-section {
  background: linear-gradient(135deg, #f8fafc 0%, #eef4fb 100%);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.contribute-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  min-height: 230px;
  padding: 3rem;
  border: 1px solid rgba(26, 43, 60, 0.16);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.09);
}

.contribute-panel .section-title {
  margin-bottom: 0.75rem;
}

.contribute-panel p {
  max-width: 680px;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.contribute-warning {
  margin-top: 0.75rem !important;
  color: var(--brand-dark) !important;
  font-weight: 700;
}

.contribute-panel .btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3.4rem;
  padding: 1rem 1.65rem;
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(26, 43, 60, 0.26);
}

.reports-table-shell {
  max-height: 450px;
  overflow-y: auto;
  padding: 0;
}

.reports-cards {
  display: none;
}

.reports-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.reports-table th,
.reports-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  vertical-align: middle;
}

.reports-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.reports-table td {
  font-size: 0.86rem;
}

.reports-table tr:last-child td {
  border-bottom: none;
}

.report-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.report-actions a {
  text-decoration: none;
}

.reports-empty {
  margin: 0;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.occurrence-modal .modal-header {
  align-items: flex-start;
  flex: 0 0 auto;
}

.occurrence-modal-subtitle {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.occurrence-modal .modal-body {
  display: grid;
  gap: 1rem;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #f8fafc;
}

.modal-dialog-scrollable .occurrence-modal {
  max-height: calc(100dvh - 1rem);
  overflow: hidden;
}

.occurrence-modal .occurrence-form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.occurrence-modal .modal-footer {
  flex: 0 0 auto;
}

.occurrence-feedback {
  margin: 0;
}

.occurrence-form {
  margin: 0;
}

.occurrence-progressive.show {
  display: grid;
  gap: 1rem;
}

.occurrence-progressive.collapsing {
  display: grid;
  gap: 1rem;
}

.occurrence-card {
  margin: 0;
  padding: 1.25rem;
  border: 1px solid rgba(26, 43, 60, 0.12);
  border-radius: 0.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.occurrence-card-primary {
  background: #ffffff;
}

.occurrence-card legend {
  float: none;
  width: auto;
  margin: 0 0 1rem;
  padding: 0;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.occurrence-card .form-label,
.occurrence-card .form-check-label {
  color: var(--brand-dark);
  font-size: 0.84rem;
  font-weight: 700;
}

.occurrence-card .form-control,
.occurrence-card .form-select {
  min-height: 2.75rem;
  border-color: rgba(26, 43, 60, 0.16);
  border-radius: 0.5rem;
  color: var(--brand-dark);
  font-size: 0.875rem;
}

.occurrence-card textarea.form-control {
  min-height: 8rem;
}

.occurrence-choice {
  height: 100%;
  min-height: 4.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.85rem 0.9rem 0.85rem 2.35rem;
  border: 1px solid rgba(26, 43, 60, 0.12);
  border-radius: 0.5rem;
  background: #ffffff;
}

.occurrence-choice .form-check-input {
  margin-left: -1.45rem;
}

.occurrence-inline-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.occurrence-declaration {
  padding: 1rem 1rem 1rem 2.65rem;
  border: 1px solid rgba(26, 43, 60, 0.12);
  border-radius: 0.5rem;
  background: #ffffff;
}

.occurrence-declaration .form-check-input {
  margin-left: -1.6rem;
}

.occurrence-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.occurrence-actions .btn {
  min-height: 3rem;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--white);
  font-weight: 900;
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-grid p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.institutional-box {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--brand-dark);
  color: #cbd5e1;
  padding: 2rem;
}

.institutional-box h4 {
  margin-bottom: 1rem;
  color: #94a3b8;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.institutional-box p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #cbd5e1;
}

@media (max-width: 768px) {
  .hero {
    min-height: 56vh;
    display: flex;
    align-items: center;
    padding: 2.75rem 0 3rem;
  }

  .hero .container {
    width: 100%;
  }

  .hero .badge {
    margin-bottom: 1rem;
    font-size: 0.62rem;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.08;
    margin-bottom: 0.75rem;
  }

  .hero .subtitle {
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
  }

  .hero .description {
    margin-bottom: 1.45rem;
    font-size: 0.84rem;
  }

  .cta-group {
    display: grid;
    gap: 0.8rem;
  }

  .cta-group .btn,
  .cta-group .btn-secondary {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    text-align: center;
  }

  .charts-layout,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .safety-metrics-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .chart-tabs {
    gap: 1rem;
  }

  .chart-tabs-nav {
    gap: 0.55rem;
    padding-bottom: 0.35rem;
  }

  .chart-tab {
    min-height: 44px;
    padding: 0.7rem 0.9rem;
    border-radius: 0.85rem;
    font-size: 0.75rem;
  }

  .full-width {
    grid-column: span 1;
  }

  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .history-badge {
    width: auto;
  }

  .year-select-label {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .year-select-label select {
    width: 100%;
    min-height: 44px;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .nav-dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 0.45rem !important;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none !important;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    display: grid !important;
  }

  .section-title-row-with-filters {
    align-items: stretch;
  }

  .dashboard-filters {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    justify-content: stretch;
  }

  .dashboard-filters label {
    width: 100%;
    min-width: 0;
    flex: none;
  }

  .dashboard-filters label:last-child {
    min-width: 0;
  }

  .dashboard-filters input,
  .dashboard-filters select {
    min-height: 44px;
  }

  .chart-card-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .chart-wrapper {
    width: 100%;
    height: 360px;
  }

  .contribute-panel {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .contribute-panel .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .section-padding {
    padding: 3.75rem 0;
  }

  .indicator-groups {
    gap: 1.25rem;
  }

  .indicator-group {
    padding: 1rem 0.85rem 1.05rem;
    overflow: hidden;
  }

  .indicators-grid {
    gap: 0.8rem;
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    padding: 0.15rem 0 0.9rem;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-padding-left: 0;
    -webkit-overflow-scrolling: touch;
  }

  .stat-card {
    flex: 0 0 150px;
  }

  .reports-table-shell {
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .reports-table {
    display: none;
  }

  .reports-cards {
    display: grid;
    gap: 1rem;
  }

  .report-card {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid rgba(26, 43, 60, 0.1);
    border-radius: 0.5rem;
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  }

  .report-card h3 {
    margin: 0;
    color: var(--brand-dark);
    font-size: 0.95rem;
    line-height: 1.35;
    font-weight: 800;
  }

  .report-card time {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
  }

  .report-card .report-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .report-card .btn-text,
  .report-card .btn-outline {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    text-align: center;
  }

  .report-card .btn-text {
    border: 1px solid var(--brand-dark);
    background: var(--brand-dark);
    color: var(--white);
    padding: 0.55rem 0.75rem;
  }

  .btn,
  .btn-outline,
  .btn-text,
  .nav-login-btn,
  .mobile-toggle,
  input,
  select,
  textarea {
    min-height: 44px;
  }

  .occurrence-card {
    padding: 1rem;
  }

  .occurrence-inline-options,
  .occurrence-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .occurrence-actions .btn {
    width: 100%;
  }

}
