/* ==========================================================================
   Get Insured Quick — Open Research Datasets Stylesheet (datasets.css)
   Cohesive Progressive-meets-Refero Royal-Blue Design System
   Tokens: #021736, #013173, #0073fc, #0087fd, #f3f9fc, #d1e2e5
   ========================================================================== */

/* Hero Banner */
.ds-hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(0, 135, 253, 0.22), transparent 65%),
    linear-gradient(135deg, #021736 0%, #013173 65%, #044196 100%);
  color: #ffffff;
  padding: 2.25rem 0 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

@media (min-width: 960px) {
  .ds-hero {
    padding: 3rem 0 3.75rem;
  }
}

.ds-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: #bfd9f7;
  margin-bottom: 1.25rem;
}

.ds-breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #dbeafe;
  text-decoration: none;
  font-weight: 600;
  padding: 0 2px;
}

.ds-breadcrumb a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.ds-breadcrumb .ds-sep {
  opacity: 0.5;
}

.ds-eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.34rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(143, 216, 242, 0.35);
  color: #8fd8f2;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.95rem;
  line-height: 1.35;
}

.ds-hero-title {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: clamp(1.85rem, 3.6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.028em;
  color: #ffffff;
  margin: 0 0 0.95rem;
  max-width: 26ch;
}

.ds-hero-lead {
  font-size: clamp(0.98rem, 1.3vw, 1.1rem);
  line-height: 1.65;
  color: #dbeafe;
  margin: 0 0 1.5rem;
  max-width: 72ch;
}

/* KPI Stat Strip inside Hero */
.ds-stat-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  max-width: 780px;
}

@media (min-width: 640px) {
  .ds-stat-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ds-stat-box {
  background: rgba(2, 23, 54, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
}

.ds-stat-val {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.ds-stat-lbl {
  font-size: 0.76rem;
  color: #bfd9f7;
  margin-top: 0.25rem;
  line-height: 1.3;
}

/* Action Button Rows & Buttons (>=44px tap targets) */
.ds-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.ds-action-row + .ds-action-row {
  margin-top: 0.75rem;
}

.ds-btn-primary,
.ds-btn-outline,
.ds-btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.ds-btn-primary {
  background: #0073fc;
  color: #ffffff;
  border: 1px solid #0073fc;
  box-shadow: 0 8px 20px -8px rgba(0, 115, 252, 0.55);
}

.ds-btn-primary:hover {
  background: #0087fd;
  border-color: #0087fd;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Outline button on dark hero */
.ds-btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.ds-btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Outline button on light sections / cards */
.ds-btn-outline {
  background: #ffffff;
  color: #013173;
  border: 1px solid #c4d7e6;
}

.ds-btn-outline:hover {
  background: #f3f9fc;
  border-color: #0073fc;
  color: #0073fc;
  transform: translateY(-1px);
}

.ds-btn-primary:focus-visible,
.ds-btn-outline:focus-visible,
.ds-btn-outline-light:focus-visible {
  outline: 3px solid #0087fd;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .ds-hero .ds-btn-primary,
  .ds-hero .ds-btn-outline-light,
  .ds-hero .giq-quote-btn {
    width: 100%;
  }
}

/* Sections */
.ds-section {
  padding: 2.75rem 0;
  border-bottom: 1px solid #e2ecf3;
}

.ds-section-ice {
  background: #f3f9fc;
}

@media (min-width: 960px) {
  .ds-section {
    padding: 3.5rem 0;
  }
}

.ds-section-head {
  margin-bottom: 1.5rem;
}

.ds-section-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0073fc;
  margin-bottom: 0.35rem;
}

.ds-section-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #021736;
  margin: 0 0 0.4rem;
}

.ds-section-title code {
  font-size: 0.82em;
  background: #e6f0fb;
  color: #013173;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  word-break: break-word;
}

.ds-section-sub {
  font-size: 0.95rem;
  color: #4a5b6d;
  line-height: 1.55;
  margin: 0;
  max-width: 70ch;
}

/* Dataset Catalog Grid (/datasets/) */
.ds-catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .ds-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.65rem;
  }
}

.ds-card {
  background: #ffffff;
  border: 1px solid #d1e2e5;
  border-top: 4px solid #0073fc;
  border-radius: 16px;
  padding: 1.65rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 12px 30px -16px rgba(2, 23, 54, 0.14);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ds-card:hover {
  transform: translateY(-2px);
  border-color: #0073fc;
  box-shadow: 0 18px 36px -16px rgba(0, 115, 252, 0.2);
}

.ds-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.ds-meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #eef5ff;
  color: #013173;
  border: 1px solid #cfe2ff;
}

.ds-meta-pill-doi {
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}

.ds-card-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: #021736;
  margin: 0 0 0.55rem;
}

.ds-card-title a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}

.ds-card-title a:hover {
  color: #0073fc;
}

.ds-card-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #334155;
  margin: 0;
}

.ds-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding-top: 1rem;
  border-top: 1px solid #e6eff5;
}

/* Responsive Data Tables */
.ds-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border: 1px solid #d1e2e5;
  border-radius: 14px;
  box-shadow: 0 8px 24px -16px rgba(2, 23, 54, 0.12);
}

.ds-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
  min-width: 560px;
}

.ds-data-table thead th {
  background: #f3f9fc;
  color: #021736;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid #d1e2e5;
  white-space: nowrap;
}

.ds-data-table tbody td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #e8f0f5;
  color: #1e293b;
  vertical-align: top;
  font-variant-numeric: tabular-nums;
}

.ds-data-table tbody tr:last-child td {
  border-bottom: none;
}

.ds-data-table tbody tr:hover td {
  background: #f8fbfe;
}

.ds-data-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  background: #eef5ff;
  color: #013173;
  padding: 0.15rem 0.42rem;
  border-radius: 5px;
  white-space: nowrap;
}

.ds-data-table a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #0073fc;
  font-weight: 700;
  text-decoration: none;
}

.ds-data-table a:hover {
  text-decoration: underline;
}

.ds-scroll-hint {
  font-size: 0.78rem;
  color: #52657a;
  margin: 0.5rem 0 0;
}

@media (min-width: 900px) {
  .ds-scroll-hint {
    display: none;
  }
}

/* Authoritative Sources & BibTeX Citation Box */
.ds-sources-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .ds-sources-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ds-sources-list li {
  background: #ffffff;
  border: 1px solid #d1e2e5;
  border-radius: 10px;
}

.ds-sources-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 46px;
  padding: 0.65rem 1rem;
  color: #013173;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.ds-sources-list a:hover {
  color: #0073fc;
  background: #f3f9fc;
  border-radius: 10px;
}

.ds-citation-box {
  background: #021736;
  color: #e2e8f0;
  border-radius: 14px;
  border: 1px solid rgba(143, 216, 242, 0.22);
  overflow: hidden;
  max-width: 100%;
}

.ds-citation-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ds-citation-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8fd8f2;
}

.ds-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.4rem 0.95rem;
  border-radius: 8px;
  background: rgba(0, 115, 252, 0.25);
  border: 1px solid rgba(143, 216, 242, 0.4);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.ds-copy-btn:hover {
  background: #0073fc;
  border-color: #0087fd;
}

.ds-bibtex {
  margin: 0;
  padding: 1.15rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #e2f1ff;
  max-width: 100%;
  box-sizing: border-box;
}

/* Standards & Syndication Strip on /datasets/ */
.ds-standards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .ds-standards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ds-standard-item {
  background: #ffffff;
  border: 1px solid #d1e2e5;
  border-radius: 12px;
  padding: 1.25rem;
}

.ds-standard-item h3 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #021736;
  margin: 0 0 0.35rem;
}

.ds-standard-item p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: #4a5b6d;
  margin: 0;
}
