/* =============================================================================
   GeoEq Documentation — custom styling on top of Material theme
   ============================================================================= */

:root {
  --md-primary-fg-color:        #1e4d8f;
  --md-primary-fg-color--light: #2563a8;
  --md-primary-fg-color--dark:  #0c1a3a;
  --md-accent-fg-color:         #e8a825;
  --md-accent-fg-color--transparent: rgba(232,168,37,0.10);
  --geo-navy:  #0c1a3a;
  --geo-gold:  #e8a825;
  --geo-blue:  #1e4d8f;
}

/* Slate (dark) overrides */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color:        #1e4d8f;
  --md-primary-fg-color--light: #3b82c4;
  --md-primary-fg-color--dark:  #0c1a3a;
  --md-accent-fg-color:         #e8a825;
  --md-default-bg-color:        #0a1322;
}

/* -----------------------------------------------------------------------------
   Hero (used on index.md)
   ----------------------------------------------------------------------------- */
.geo-hero {
  text-align: center;
  padding: 48px 16px 24px;
  background:
    radial-gradient(60% 50% at 80% 0%,  rgba(30,77,143,0.10), transparent 60%),
    radial-gradient(40% 35% at 5% 100%, rgba(232,168,37,0.08), transparent 70%);
  border-radius: 18px;
  margin-bottom: 36px;
}
.geo-hero img.geo-logo {
  width: 100px; height: 100px;
  margin: 0 auto 16px;
}
.geo-hero h1 {
  font-size: clamp(2.0rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.geo-hero .grad {
  background: linear-gradient(110deg, var(--geo-blue) 0%, var(--md-primary-fg-color--light) 55%, var(--geo-gold) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.geo-hero .lede {
  font-size: 1.15rem;
  color: var(--md-default-fg-color--light);
  max-width: 720px;
  margin: 0 auto 24px;
}
.geo-hero-badges {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-bottom: 24px;
}
.geo-hero-badges img { display: inline; height: 22px; }
.geo-hero-buttons {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: 8px;
}

/* -----------------------------------------------------------------------------
   Material grid cards — light branded polish on top of Material's defaults
   ----------------------------------------------------------------------------- */
.md-typeset .grid.cards > ul > li,
.md-typeset .grid > .card {
  border-radius: 14px !important;
  border: 1px solid rgba(30,77,143,0.12);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.md-typeset .grid.cards > ul > li:hover,
.md-typeset .grid > .card:hover {
  transform: translateY(-2px);
  border-color: rgba(232,168,37,0.50);
  box-shadow: 0 12px 30px -10px rgba(12,26,58,0.20);
}
.md-typeset .grid.cards > ul > li > hr {
  margin: 10px 0 12px;
  border-color: rgba(30,77,143,0.10);
}
[data-md-color-scheme="slate"] .md-typeset .grid.cards > ul > li,
[data-md-color-scheme="slate"] .md-typeset .grid > .card {
  border-color: rgba(255,255,255,0.08);
}
[data-md-color-scheme="slate"] .md-typeset .grid.cards > ul > li:hover {
  border-color: rgba(232,168,37,0.40);
}

/* -----------------------------------------------------------------------------
   Function reference (mkdocstrings) — nicer signatures
   ----------------------------------------------------------------------------- */
.doc-signature {
  background: rgba(30,77,143,0.05);
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 3px solid var(--geo-blue);
  font-family: var(--md-code-font-family);
  font-size: 0.92rem;
  margin: 12px 0 20px;
}
.doc-heading {
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 8px;
}

/* -----------------------------------------------------------------------------
   Caption under figures
   ----------------------------------------------------------------------------- */
figure { margin: 24px 0; text-align: center; }
figure img { border-radius: 10px; box-shadow: 0 8px 20px -6px rgba(12,26,58,0.18); }
figcaption {
  font-size: 0.86rem;
  color: var(--md-default-fg-color--light);
  font-style: italic;
  margin-top: 8px;
}

/* -----------------------------------------------------------------------------
   Function-name "pill" used inside text
   ----------------------------------------------------------------------------- */
code.fn {
  background: rgba(232,168,37,0.10);
  color: var(--geo-blue);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 500;
}

/* -----------------------------------------------------------------------------
   Header background tint for module pages
   ----------------------------------------------------------------------------- */
.md-typeset h1 {
  font-weight: 700;
  letter-spacing: -0.01em;
}
.md-typeset h2 {
  margin-top: 1.6em;
  padding-top: 0.3em;
}

/* -----------------------------------------------------------------------------
   Tutorial chapter index
   ----------------------------------------------------------------------------- */
.tut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.tut-chip {
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(30,77,143,0.05);
  border: 1px solid rgba(30,77,143,0.10);
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--md-default-fg-color);
  transition: all 0.15s;
}
.tut-chip:hover {
  background: rgba(232,168,37,0.10);
  border-color: rgba(232,168,37,0.50);
  transform: translateY(-1px);
}
.tut-chip .tut-num {
  font-family: var(--md-code-font-family);
  color: var(--geo-gold);
  font-size: 0.88rem;
  min-width: 28px;
}
