:root {
  --ins-ink: #0f1c2e;
  --ins-muted: #5b6b7c;
  --ins-surface: #ffffff;
  --ins-bg: #f4f7fb;
  --ins-accent: #1d4ed8;
  --ins-accent-2: #0f766e;
  --ins-line: rgba(15, 28, 46, 0.1);
  --ins-warn: #9a6700;
  --ins-heading: #0f1c2e;
  --sidebar-width: 280px;
  --sidebar-bg: #0f1c2e;
  --sidebar-color: #ecf2ff;
}

.cursor-pointer {
  cursor: pointer;
}

.h-fit {
  height: fit-content;
}

.ins-body {
  margin: 0;
  background-color: var(--ins-bg);
  color: var(--ins-ink);
  font-family: "Inter", "Segoe UI", "Source Sans 3", sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.ins-surface {
  background: var(--ins-surface);
  border: 1px solid var(--ins-line);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(15, 28, 46, 0.05);
}

.ins-card {
  border-radius: 1rem;
  border: 1px solid var(--ins-line);
  box-shadow: 0 4px 12px rgba(15, 28, 46, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ins-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 28, 46, 0.1);
}

.status-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 2rem;
  letter-spacing: 0.02em;
}

.ins-nav-tab {
  /* Legacy support for existing components if any */
}

.ins-disclosure {
  background: #fff8e6;
  border: 1px solid rgba(154, 103, 0, 0.15);
  border-radius: 0.75rem;
  padding: 1rem;
  color: #5c4810;
  font-size: 0.875rem;
}

.ins-hidden { display: none !important; }

@media (max-width: 991.98px) {
  .ins-surface {
    padding: 1rem;
  }
}

.ins-fs-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ins-fs-chip {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
}

.ins-verified-badge {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  background: #ecfdf5;
  color: #047857;
}

.ins-cta-band {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.ins-broker-card {
  min-height: 10rem;
}

.ins-stack {
  display: grid;
  gap: 0.75rem;
}

.ins-sticky-cta {
  display: none;
}

@media (max-width: 720px) {
  .ins-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ins-cta-band { flex-direction: column; }
  .ins-cta-band .btn { min-height: 44px; width: 100%; }
  .ins-sticky-cta {
    display: flex;
    position: sticky;
    bottom: 0.75rem;
    justify-content: center;
    z-index: 4;
  }
  .ins-sticky-cta .btn { min-height: 44px; width: min(100%, 22rem); }

  .ins-topbar .page-content {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }

  .ins-topbar .small.opacity-75 {
    display: none;
  }

  .ins-brand {
    font-size: 1.15rem;
  }

  .ins-fs-group {
    width: 100%;
    justify-content: flex-start;
  }

  .ins-nav {
    margin-left: -0.15rem;
    margin-right: -0.15rem;
    padding-left: 0.15rem;
    padding-right: 0.15rem;
  }

  #ins-main.page-content {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
    max-width: 100%;
    overflow-x: clip;
  }

  #ins-sort {
    max-width: 100% !important;
    width: 100%;
  }

  #panel-compare,
  #panel-compare .ins-surface {
    max-width: 100%;
    overflow-x: clip;
  }

  #ins-country,
  #ins-search {
    max-width: 100% !important;
    width: 100%;
  }

  .ins-surface {
    padding: 1rem;
  }

  .ins-card-grid { grid-template-columns: 1fr; }
  .ins-nav-tab { padding: 0.4rem 0.7rem; font-size: 0.82rem; }

  /* Keep compare table inside scroll wrapper (mobile-responsive sets display:block on table-wrap tables). */
  .ins-table-wrap > .ins-compare-table {
    display: table !important;
    width: max-content;
    min-width: 100%;
    overflow: visible !important;
    white-space: normal;
  }

  .ins-table-wrap > .ins-compare-table thead,
  .ins-table-wrap > .ins-compare-table tbody {
    display: table-row-group !important;
    min-width: 0 !important;
  }

  .ins-table-wrap > .ins-compare-table thead {
    display: table-header-group !important;
  }

  .ins-table-wrap > .ins-compare-table th,
  .ins-table-wrap > .ins-compare-table td {
    display: table-cell !important;
  }
}

html.is-iframed .ins-topbar {
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 5;
}

html.is-iframed .ins-body {
  min-height: 0;
}
