/* _static/turtini.css
   Turtini docs theme overrides (Sphinx RTD theme)
*/

/* --- Brand knobs --- */
:root{
  --turtini-brand: #2a53cd;       /* primary */
  --turtini-brand-dark: #2a53cd;  /* hover/darker */
  --turtini-accent: #1dd29f;      /* accent */
  --turtini-hover: #99d8e9;       /* hover/link accent */
  --turtini-border: #dbe3f5;      /* soft border */
  --turtini-text-muted: #4b5563;  /* footer text */
  --turtini-text-muted-2: #6b7280;
  --turtini-header-height: 48px;
}

/* =========================
   Global Font Override (Arial-like)
   ========================= */
html,
body,
.wy-body-for-nav,
.wy-nav-side,
.wy-breadcrumbs {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
  font-weight: 600;
}

.wy-body-for-nav p {
  line-height: 1.6;
  margin-bottom: 0.9em;
}

/* =========================
   Fixed Global Top Header
   ========================= */
.turtini-global-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--turtini-header-height);
  z-index: 2000;
  background: var(--turtini-brand);
  color: #fff;
  width: 100%;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}

.turtini-header-inner {
  max-width: 1200px;
  height: var(--turtini-header-height);
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.turtini-header-left {
  display: none;
}

.turtini-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.turtini-global-header a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.turtini-global-header a:hover {
  color: var(--turtini-hover);
  text-decoration: underline;
}

/* Push the RTD layout down so the fixed header does not overlap content */
.wy-nav-side {
  padding-top: var(--turtini-header-height);
}

.wy-nav-content-wrap {
  padding-top: var(--turtini-header-height);
}

.wy-nav-top {
  top: var(--turtini-header-height);
  background: var(--turtini-brand-dark) !important;
}

/* =========================
   Left Sidebar + Search Header
   ========================= */

/* Left sidebar background */
.wy-side-scroll,
.wy-nav-side {
  background: var(--turtini-brand);
}

/* Logo + search header area */
.wy-side-nav-search {
  background: var(--turtini-brand) !important;
  background-image: none !important;
}

/* Sidebar links */
.wy-menu-vertical a {
  color: #ffffff;
}

.wy-menu-vertical a:hover {
  background-color: rgba(255,255,255,0.12);
  color: var(--turtini-hover);
  font-weight: 500;
}

.wy-menu-vertical a:hover,
.wy-menu-vertical li.current > a,
.wy-menu-vertical li.on a {
  background: rgba(255,255,255,0.08);
}

/* =========================
   Links
   ========================= */
a {
  color: var(--turtini-brand);
  transition: color 0.15s ease-in-out;
}

a:hover {
  color: var(--turtini-hover);
}

/* =========================
   Content width
   ========================= */
.wy-nav-content {
  max-width: 980px;
  padding: 48px 56px;
}

/* =========================
   Headings
   ========================= */
h1 {
  color: var(--turtini-brand);
  font-weight: 700;
}

h2 {
  color: var(--turtini-brand);
  font-weight: 600;
  border-bottom: 2px solid var(--turtini-hover);
  padding-bottom: 4px;
}

h3, h4, h5, h6 {
  color: #1f3ea8;
}

/* =========================
   Breadcrumbs
   ========================= */
.wy-breadcrumbs {
  font-size: 13px;
  border-bottom: 1px solid rgba(42,83,205,0.15);
  padding-bottom: 6px;
  margin-bottom: 18px;
}

.wy-breadcrumbs a {
  color: var(--turtini-brand);
}

.wy-breadcrumbs a:hover {
  color: var(--turtini-hover);
}

.wy-breadcrumbs li {
  color: #555;
}

/* =========================
   Banner / Notice
   ========================= */
.turtini-banner {
  margin: 14px 0 20px 0;
  padding: 14px 16px;
  border: 1px solid var(--turtini-border);
  border-left: 6px solid var(--turtini-hover);
  background: #f7fbff;
  color: #1f2937;
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.turtini-banner--sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--turtini-brand);
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.2;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.turtini-banner--sticky a {
  color: #fff;
  text-decoration: underline;
}

.turtini-banner--sticky a:hover {
  color: rgba(255,255,255,0.9);
}

/* =========================
   Content typography polish
   ========================= */
.rst-content {
  font-size: 16px;
  line-height: 1.75;
  color: #111827;
}

.rst-content h1 {
  font-size: 34px;
  letter-spacing: -0.02em;
}

.rst-content h2 {
  font-size: 22px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 10px;
}

.rst-content a {
  color: #2563eb;
  text-decoration: none;
}

.rst-content a:hover {
  text-decoration: underline;
}

/* =========================
   Footer handling
   ========================= */

/* Hide the default RTD footer lines */
.rst-content footer p,
.rst-content footer .last-updated,
.rst-content footer .commit,
.rst-content footer .copyright,
.rst-content footer small,
.rst-content footer .rst-footer-buttons {
  display: none !important;
}

/* Fix RTD floating footer caused by floated prev/next buttons */
.rst-footer-buttons {
  clear: both;
  float: none !important;
}

.rst-content footer,
.wy-nav-content footer {
  float: none !important;
  clear: both !important;
  width: 100% !important;
  display: block !important;
}

/* Turtini footer */
.turtini-footer {
  background: linear-gradient(180deg,#7bb6c7,#9fd1df);
  color: #ffffff;
  font-size: 14px;
  padding: 24px 40px;
  margin-top: 60px;
  box-sizing: border-box;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  float: none !important;
  clear: both !important;
  display: block !important;
}

.turtini-footer-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.turtini-footer-left {
  max-width: 640px;
}

.turtini-footer-left div {
  margin-bottom: 6px;
}

.turtini-footer-right {
  text-align: right;
}

.turtini-footer-right a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

.turtini-footer-right a:hover {
  text-decoration: underline;
}

/* =========================
   Hide Read the Docs / EthicalAds
   ========================= */
.ethical-rtd,
.ethical-sidebar,
.ethical-footer,
div[data-ea-publisher],
div[data-ea-type],
#ethical-ad-placement,
.ethicalads,
.sidebar-ethical-ads {
  display: none !important;
}

/* =========================
   Custom sidebar quick links
   ========================= */
.turtini-sidebar-links {
  margin: 12px 0 18px 0;
}

.turtini-sidebar-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.turtini-sidebar-links li {
  margin: 0;
  padding: 0;
}

.turtini-sidebar-links a {
  display: block;
  padding: 8px 14px;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
}

.turtini-sidebar-links a:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* =========================
   Mobile friendliness
   ========================= */
@media (max-width: 768px) {
  .turtini-header-inner {
    padding: 0 12px;
    gap: 14px;
  }

  .turtini-header-right {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .turtini-footer-inner {
    flex-direction: column;
    text-align: left;
  }

  .turtini-footer-right {
    text-align: left;
    margin-top: 10px;
  }

  .wy-nav-content {
    padding: 32px 24px;
  }
}

/* Hide default Sphinx / RTD footer text everywhere */
footer,
.rst-content footer,
.wy-nav-content footer,
div[role="contentinfo"] {
  display: none !important;
}

/* Hide Read the Docs version badge */
.rtd-versions {
  display: none !important;
}

/* Fix extra whitespace below mobile header */
@media screen and (max-width: 768px) {
  .wy-nav-content-wrap {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}
