html {
  position: relative;
  min-height: 100%;
  font-size: 16px;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: #eef5f1;
}

.btn:focus-visible,
.table-responsive:focus-visible {
  outline: 3px solid #258cfb;
  outline-offset: 3px;
}

/* Keep the header in flow so wrapping and text zoom cannot cover content. */
.top-bar {
  flex-shrink: 0;
  background: #0b6b3a;
  color: #fff;
  padding: 12px 0;
}

.top-bar > .container > .d-flex {
  flex-wrap: wrap;
}

.top-bar .d-flex > div {
  min-width: 0;
}

.brand-logo-svg {
  display: block;
  flex-shrink: 0;
  width: clamp(116px, 24vw, 184px);
  max-width: 100%;
  height: auto;
}

.top-bar-title {
  font-size: 1rem !important;
  line-height: 1.3;
}

.website-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(153, 153, 153, 0.13));
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.05);
  color: #fff !important;
  font-size: 0.9375rem;
  transition: background-color 0.2s ease;
}

.website-link:hover {
  background: rgba(255, 255, 255, 0.25);
}

main {
  min-width: 0;
  padding: clamp(24px, 5vw, 60px) 0 clamp(24px, 4vw, 48px);
}

main > .container > .container {
  padding: 0 !important;
}

main > .container > .container > .row {
  margin-inline: 0;
}

.certificate-column {
  padding-inline: 0;
  max-width: 824px;
  min-width: 0;
}

.badge-valid {
  max-width: 100%;
  padding: 8px 18px;
  border: 1px solid rgba(0, 188, 125, 0.2);
  border-radius: 24px;
  background: linear-gradient(90deg, rgba(0, 188, 125, 0.1), rgba(0, 184, 219, 0.1));
  color: #0b6b3a;
  font-size: 1rem;
  font-weight: 600;
}

.badge-valid svg {
  flex-shrink: 0;
}

main .text-center > p {
  font-size: 0.875rem;
  line-height: 1.6;
}

.card-box {
  width: 100%;
  max-width: 800px;
  min-width: 0;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 24px) !important;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow-wrap: anywhere;
}

.card-box h4 {
  font-size: clamp(1rem, 2.5vw, 1.25rem) !important;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.card-box small {
  font-size: 0.8125rem;
  margin-bottom: 2px;
}

.card-box > .d-flex > div {
  min-width: 0;
}

.card-box > .d-flex > .text-sm-end {
  flex-shrink: 0;
}

.card-box > .d-flex.border-bottom {
  padding-bottom: 1.25rem !important;
  margin-bottom: 1rem !important;
}

/* Keep financial columns aligned and scroll only the table on narrow screens. */
.table-responsive {
  max-width: 100%;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.card-box .table {
  min-width: 640px;
  font-size: 0.875rem;
  overflow-wrap: normal;
}

.card-box .table th,
.card-box .table td {
  padding: 0.5rem 0.4rem;
}

.card-box .table thead th {
  white-space: nowrap;
}

.table-hint {
  font-size: 0.8125rem;
}

.footer {
  flex-shrink: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.footer-item svg {
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (min-width: 992px) {
  .table-hint {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .top-bar-title {
    display: none;
  }

  .website-link {
    padding: 8px 12px;
    font-size: 0.8125rem;
  }

  .card-box > .d-flex {
    gap: 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .website-link {
    transition: none;
  }
}
