/* Make the main content container full-width */
.wy-nav-content {
  max-width: none !important;
  width: 100% !important;
}

/* Sidebar background overall */
.wy-nav-side {
    background-color: #01162b;  /* custom dark blue */
}

/* Upper block: logo + search */
.wy-side-nav-search {
    background-color: #021425;  /* lighter blue */
}

/* Lower block: nav links area */
.wy-menu-vertical {
    background-color: #b3b6bb;  /* darker shade */
}

/* Optional: nav link colors */
.wy-menu-vertical a {
    color: #000000;             /* text color */
}
.wy-menu-vertical a:hover {
    color: #ffffff;
    background-color: #011927;  /* hover background */
}

/* add space above the "Collaborators" section heading */
.spacer-24 { height: 1.5rem; }

.sponsors-divider { margin: 3rem 0 2rem; }

.sponsors-title {
  text-align: left;
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: normal;
}

/* Footer sponsor strip */
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: center;
  justify-items: center;
}

/* Uniform logo boxes */
.sponsors-grid a {
  width: auto;          /* set the same box for every logo */
  height: 70px;          /* tweak to taste (e.g., 160x60)   */
  display: block;
  object-fit: contain;
}

/* Scale logos to fit box without distortion */
.sponsors-grid img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;   /* preserves aspect ratio */
}


/*.sponsors-grid img {
  max-width: 40%;
  height: auto;
  display: block;
} */

.sponsors-note {
  text-align: left;
  margin: 0 0 2rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.rst-content img {
  margin-bottom: 1.5rem;  /* adds space under all images */
}

/* Increase row height in all docutils tables */
.rst-content table.docutils td,
.rst-content table.docutils th {
    padding-top: 1rem;   /* increase vertical space */
    padding-bottom: 1rem;
}

/* Make table columns respect widths and wrap long titles */
.rst-content table.docutils {
  table-layout: fixed;      /* enforce column widths */
  width: 100%;
}

.rst-content table.docutils td,
.rst-content table.docutils th {
  white-space: normal;      /* allow wrapping */
  word-break: break-word;   /* wrap long words */
}


.embed-wrap { max-width: 1200px; margin: 0 auto; }

/* --- Hero section --- */
.hero-text p { margin-bottom: 0.75rem; }
.hero-btn { margin-right: 0.5rem; margin-top: 0.5rem; }

/* Keep hero logos visually consistent */
.hero-logos .hero-logo-box {
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #e6e6e6; border-radius: 10px; padding: 8px; background: #fff;
}
.hero-logo {
  height: 80px;         /* tune: 64–96px */
  width: auto;
  object-fit: contain;
  display: block;
}

/* --- Cards styling (sphinx-design) --- */
.app-card {
  transition: transform .12s ease, box-shadow .12s ease;
  border-radius: 12px;
}
.app-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
}
.app-title { margin-bottom: .25rem; }

/* Make card images uniform without distortion */
.sd-card .sd-card-img-top {
  background: #fff;
  padding: 10px;
  height: 110px;        /* consistent logo area */
  object-fit: contain;
}

/* --- General polish --- */
.section-divider {
  border: 0; height: 1px; background: linear-gradient(90deg, #eee, #ddd, #eee);
  margin: 1.5rem 0;
}

/* Crops the image height while keeping full width */
img.banner-crop {
  width: 100%;
  height: 200px;        /* pick your height: e.g., 120–220px */
  object-fit: cover;
  object-position: center;
  display: block;
}

/* DFTpy page tweaks */
.app-logo { display:block; margin-top:.25rem; }
.section-divider { margin: 1rem 0; }

/* tighten hero buttons */
.sd-btn + .sd-btn { margin-left: .5rem; }

/* card image area already set elsewhere; ensure no bottom rule */
.sd-card .sd-card-img-top { border-bottom: 0; }

/* optional: slightly raise the “Quickstart” cards */
.app-card { transition: transform .12s ease, box-shadow .12s ease; }
.app-card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.08); }


/* Responsive video grid for the DFTpy page */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: .75rem 0 1rem;
}
.video-grid iframe {
  width: 100%;
  height: 320px;
}

/* Card polish (optional) */
.app-card { border-radius: 12px; transition: transform .12s ease, box-shadow .12s ease; }
.app-card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.08); }

/* Keep all logos the same visual size and baseline */
img.inline-logo {
  height: 20px;       /* match your :height: above if you prefer */
  width: auto;
  vertical-align: middle;
}

/* Keep the third column from getting too wide */
table.software-table td:nth-child(3),
table.software-table th:nth-child(3) {
  width: 32ch;         /* ~32 characters; tweak to taste */
  max-width: 32ch;
  white-space: normal; /* allow wrapping */
  word-break: normal;
}