/* Lightweight visual polish for the documentation site.
   Keep this file dependency-free and easy to roll back. */

:root {
  --gg-polish-blue: #2563eb;
  --gg-polish-blue-soft: rgba(37, 99, 235, 0.08);
  --gg-polish-cyan-soft: rgba(6, 182, 212, 0.08);
  --gg-polish-border: rgba(148, 163, 184, 0.22);
  --gg-polish-text: #0f172a;
  --gg-polish-muted: #52627a;
}

body {
  letter-spacing: -0.006em;
}

.col-md-9[role='main'] {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 54px rgba(15, 23, 42, 0.08);
}

.col-md-9[role='main'] > h1:first-child {
  margin-top: 0.35rem;
  margin-bottom: 1.05rem;
  font-size: clamp(2.05rem, 4vw, 3.35rem);
  letter-spacing: -0.045em;
}

.col-md-9[role='main'] h2 {
  margin-top: 2.05rem;
  padding-top: 0.2rem;
  letter-spacing: -0.035em;
}

.col-md-9[role='main'] h3 {
  margin-top: 1.65rem;
  letter-spacing: -0.025em;
}

.col-md-9[role='main'] p,
.col-md-9[role='main'] li {
  line-height: 1.72;
}

.bs-sidebar .well {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.06);
}

.bs-sidebar .nav > li > a {
  margin: 0.1rem 0;
  border-radius: 11px;
  color: #40516b;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.bs-sidebar .nav > li > a:hover,
.bs-sidebar .nav > li > a:focus {
  background: var(--gg-polish-blue-soft);
  color: var(--gg-polish-blue);
  transform: translateX(1px);
}

.bs-sidebar .nav > .active > a,
.bs-sidebar .nav > .active > a:hover,
.bs-sidebar .nav > .active > a:focus {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.13), rgba(6, 182, 212, 0.05));
  color: #1d4ed8;
  font-weight: 800;
  box-shadow: inset 3px 0 0 var(--gg-polish-blue);
}

.navbar {
  box-shadow: 0 10px 30px rgba(2, 8, 23, 0.28);
}

.navbar-brand {
  font-size: 1.12rem;
}

.navbar-right > li > a {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.admonition {
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
  overflow: hidden;
}

.admonition-title {
  font-weight: 800;
}

.admonition.warning {
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.92));
  border-color: rgba(245, 158, 11, 0.24);
}

.admonition.note,
.admonition.tip,
.admonition.info {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(240, 249, 255, 0.90));
  border-color: rgba(37, 99, 235, 0.20);
}

pre,
.highlight pre {
  padding: 1.05rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 24px rgba(15, 23, 42, 0.06);
}

code {
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.gg-link-stack {
  display: grid;
  gap: 0.72rem;
  margin: 0.9rem 0 1rem;
}

.gg-doc-link-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.88rem;
  padding: 0.88rem 1rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.94));
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
  text-decoration: none !important;
  color: var(--gg-polish-text) !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.gg-doc-link-card:hover,
.gg-doc-link-card:focus {
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.10);
  transform: translateY(-1px);
}

.gg-doc-link-icon {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.10));
  color: var(--gg-polish-blue);
  font-size: 1.22rem;
  font-weight: 900;
}

.gg-doc-link-title {
  display: block;
  color: #1d4ed8;
  font-weight: 800;
  line-height: 1.35;
}

.gg-doc-link-url {
  display: block;
  margin-top: 0.16rem;
  color: var(--gg-polish-muted);
  font-size: 0.9rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.gg-doc-link-arrow {
  color: var(--gg-polish-blue);
  font-size: 1.35rem;
  font-weight: 800;
}

.gg-page-intro {
  display: grid;
  gap: 0.4rem;
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.07), rgba(6, 182, 212, 0.06));
}

.gg-page-intro strong {
  color: #1e3a8a;
  font-size: 1.02rem;
}

.gg-page-intro p {
  margin: 0;
  color: #40516b;
}

@media (max-width: 640px) {
  .gg-doc-link-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .gg-doc-link-arrow {
    display: none;
  }
}
