/* ========================================
   EXISTING SITE STYLING
   ======================================== */

.header-site-name {
  white-space: normal !important;
  font: var(--K15t-font-headline-small) !important;
  overflow: clip;
  font-size: 1.2375rem !important;
}

.fb-layout-container > * {
  inline-size: 100%;
  margin-inline: inherit;
}

hgroup h1 {
  position: relative;
  padding: 1rem;
  display: block;
  width: 100%;
  box-sizing: border-box;
  color: white;
  z-index: 1;
}

hgroup h1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000c34;
  opacity: 0.6;
  z-index: -1;
  border-radius: 8px;
  color: #f1ede4;
}

/* ========================================
   TABLE STYLING
   ======================================== */

.theme-table {
  --table-cell-bg: #fff;
  --table-header-bg: #f0f1f2;
  --table-text-color: #000;
  --width: 100% !important;
}

html[data-color-scheme="dark"] .theme-table {
  --table-cell-bg: #2a2a2a;
  --table-header-bg: #1e1e1e;
  --table-text-color: #fff;
}

.theme-table td {
  --bg-color: var(--table-cell-bg);
  color: var(--table-text-color);
}

.theme-table th {
  --bg-color: var(--table-header-bg);
  color: var(--table-text-color);
}

html[data-color-scheme="dark"] .theme-table td {
  --bg-color: var(--table-cell-bg) !important;
}

html[data-color-scheme="dark"] .theme-table th {
  --bg-color: var(--table-header-bg) !important;
}

/* ========================================
   HIDE AI ACTIONS
   ======================================== */

ai-actions {
  display: none !important;
}

/* ========================================
   IMAGE STYLING
   ======================================== */

.image {
  width: 85vw;
  max-height: 85vh;
  object-fit: contain;
}

/* ========================================
   PARAGRAPH STYLING
   ======================================== */

p {
  text-align: justify;
}

/* ========================================
   QUICK LINKS SECTION
   ======================================== */

.cls-quick-links {
  display: block;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  box-sizing: border-box;

  margin-top: 0 !important;
  margin-right: 0;
  margin-bottom: 3rem !important;
  margin-left: 0;

  padding: 1.5rem 0 1.75rem !important;

  /* Divider spans the full section */
  border-bottom: 3px solid #d9deea;
}

.cls-quick-links__heading {
  display: block;
  width: 100%;
  margin: 0 0 1rem !important;
  padding: 0;

  color: #000c34;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
}

/* Keep all buttons on one horizontal line.
   No carousel or horizontal scrollbar. */
.cls-quick-links__list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  justify-content: flex-start;
  gap: 1rem;

  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  box-sizing: border-box;

  overflow: visible;
  white-space: nowrap;

  margin: 0;
  padding: 0;
  list-style: none;
}

/* Wider buttons with labels kept on one line */
.cls-quick-links__tab {
  display: inline-flex !important;
  flex: 1 1 auto !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;

  width: auto;
  min-width: max-content;
  max-width: none;

  padding: 0.9rem 1.5rem;

  border: 1px solid #000c34;
  border-radius: 6px;

  background: #fff;
  color: #000c34;

  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;

  white-space: nowrap !important;
  overflow: visible;
  text-overflow: clip;

  transition: background-color 0.2s ease, color 0.2s ease;
}

.cls-quick-links__tab:hover,
.cls-quick-links__tab:focus-visible {
  background: #000c34;
  color: #fff;
  text-decoration: none;
}

.cls-quick-links__tab:focus-visible {
  outline: 3px solid #528bff;
  outline-offset: 2px;
}

/* Description below the buttons */
.cls-quick-links__message {
  display: block;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;

  margin: 1rem 0 0;
  color: inherit;
  font-size: 1rem;
  line-height: 1.6;

  white-space: normal;
  overflow-wrap: normal;
}

/* ========================================
   RESPONSIVE STYLING
   ======================================== */

@media (max-width: 900px) {
  .cls-quick-links__list {
    gap: 0.6rem;
  }

  .cls-quick-links__tab {
    padding: 0.8rem 0.75rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 600px) {
  .cls-quick-links {
    margin-bottom: 2rem !important;
    padding-bottom: 1rem !important;
  }

  .cls-quick-links__heading {
    font-size: 1.15rem;
  }

  .cls-quick-links__list {
    gap: 0.4rem;
  }

  .cls-quick-links__tab {
    padding: 0.65rem 0.45rem;
    font-size: 0.75rem;
  }

  .cls-quick-links__message {
    font-size: 0.9rem;
  }
}