/* (Material) changes to the customstyles.css start here */

body {
    font-size: 16px;
    font-family: 'Figtree', sans-serif !important;
    padding-top: 120px;
    overflow-x: hidden;
    max-width: 100%;
}
.banner-container {
  margin-top: -20px;
}

/* Fix Firefox/normalize.css bug https://github.com/necolas/normalize.css/issues/740 */
details > summary {
  display: list-item;
  margin-bottom: 10px;
}

/* General layout classes */
h2.page-header {
  border-bottom: 1px solid rgba(10,118,187, 0);
  font-size: 28px;
}
.row {
  margin-bottom: 0px;
}
.panel-precice {
  padding-top: 5px;
}
.panel-heading-precice {
  position: relative;
  margin-bottom: -15px;
  padding: 10px 15px;
}
.panel-heading-precice strong {
  font-size: 1.2em;
  line-height: 1.2em;
  font-weight: 500;
}

/* General utility classes */
.no-margin {
  margin: 0;
}
.less-top-margin {
  margin-top: -20px;
}
.less-bottom-margin {
  margin-bottom: -20px;
}
.citation-link {
  margin-top: 15px;
}
.vertical-align {
    display: flex;
    align-items: center;
}
@media (min-width: 992px) {
   .equal {
        display: flex;
    }
}

/* add horizontal scroll on code blocks */
pre > code {
  overflow: auto;
  word-wrap: normal;
  white-space: pre;
}
div.col-flex {
  display: flex;
  flex-flow: column;
  align-content: stretch;
}

/* ─── SEARCH RESULTS PANEL ───────────────────────────────── */
#search-demo-container {
    position: relative;
    width: 20.625rem;
}

#search-demo-container div#search-results {
    position: absolute;
    top: 100%;          /* flush below the search input */
    left: 0;
    width: 100%;
    z-index: 1050;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 480px;
    overflow-y: auto;
    list-style: none;
    box-shadow: none;
}

.result-item {
    padding: 10px 14px;
    border-top: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.15s ease;
}
.result-item:first-child { border-top: none; }
.result-item:hover { background: #f7fbff; }

a.result-link {
    font-size: 13px;
    font-weight: 600;
    color: #333333;
    text-decoration: none;
    display: block;
    margin-bottom: 3px;
}
a.result-link:hover { color: #0a76bb; }

.result-link .ais-Highlight-highlighted,
.result-link mark {
    background: #fff3cd;
    color: #7a5500;
    font-style: normal;
    border-radius: 2px;
    padding: 0 2px;
}

.result-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.result-breadcrumb {
    font-size: 11px;
    color: #666666;
    background: #F2F2F3;
    border-radius: 4px;
    padding: 1px 7px;
}

.result-snippet {
    font-size: 12px;
    color: #555555;
    line-height: 1.5;
    padding-left: 0;   /* remove old 10px indent */
}
.result-snippet img { display: none; }

.result-snippet .ais-Snippet-highlighted,
.result-snippet mark {
    color: #0a76bb;
    font-style: normal;
    font-weight: 600;
    background: none;
}

.result-empty {
    padding: 18px 14px;
    font-size: 13px;
    color: #888888;
    text-align: center;
}

#search-results #search-powered-by,
#search-results .ais-PoweredBy {
    padding: 6px 14px;
    background: #F2F2F3;
    border-top: 1px solid #dee2e6;
    font-size: 11px;
    color: #999999;
}


/* ─── DARK MODE ──────────────────────────────────────────── */
[data-bs-theme="dark"] #search-demo-container div#search-results {
    background: #1e1e1e;
    border-color: #444444;
}
[data-bs-theme="dark"] .result-item { border-top-color: #2a2a2a; }
[data-bs-theme="dark"] .result-item:hover { background: #252525; }
[data-bs-theme="dark"] a.result-link { color: #f0f0f0; }
[data-bs-theme="dark"] a.result-link:hover { color: #4fc3f7; }
[data-bs-theme="dark"] .result-crumb,
[data-bs-theme="dark"] .result-breadcrumb { background: #2e2e2e; color: #aaaaaa; }
[data-bs-theme="dark"] .result-snippet { color: #aaaaaa; }
[data-bs-theme="dark"] .result-snippet .ais-Snippet-highlighted,
[data-bs-theme="dark"] .result-snippet mark { color: #4fc3f7; }
[data-bs-theme="dark"] #search-results #search-powered-by {
    background: #1a1a1a;
    border-top-color: #333333;
}

/* Contributors section */
.devlist {
  border: 1px solid #0a76bb;
  border-radius: 5px;
  padding: 0;
}
.devlist>li.devlist-first {
  border-top: 1px solid transparent;
}
ul.devlist>li {
  display: flex;
  flex-flow: row wrap;
  border-top: 1px solid #0a76bb;
  border-radius: 5px;
  padding: 8px 16px;
  margin: 0;
}
.devlist>li .devlist-img {
  flex: 0 0 auto;
  width: 50px;
  margin-right: 1rem;
}
.devlist>li .devlist-img>img {
  border-radius: 5px;
  width: 100%;
  margin: 0;
  border: 1px solid lightgrey;
}
.devlist>li .devlist-left {
  flex: 1 1 0px;
  width: auto;
  align-items: center;
  display: flex;
}
.devlist>li .devlist-right {
  flex: 0 0 auto;
  width: auto;
  padding: 0;
  margin: 0;
  list-style: none;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: larger;
}
.devlist>li .devlist-right li+li {
  margin-left: 16px;
}
.devlist-left > p {
  margin-bottom: 0;
}

/* preCICE workshop */
.workshop-event {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 9.5px;
  margin-bottom: 10px;
}
.workshop-event p:first-of-type {
  margin-top: 10px;
}

@media screen and (max-width: 767px) {
  .table-responsive > .table > thead > tr > th,
  .table-responsive > .table > tbody > tr > th,
  .table-responsive > .table > tfoot > tr > th,
  .table-responsive > .table > thead > tr > td,
  .table-responsive > .table > tbody > tr > td,
  .table-responsive > .table > tfoot > tr > td {
    white-space: normal;
  }
}

/* print styles */
@media print {
  #tg-sb-sidebar,
  .githubEditButton {
    display: none;
  }
  body {
    padding-top: 0;
  }
}

/* Testimonials */
@media (max-width: 767px) {
  .testimonials h2 {
    padding-top: 100px;
  }
}

/* Sidebar sticky */
ul.nav.affix {
  position: static;
}
div#tg-sb-sidebar {
  position: sticky;
  top: 80px;
}
@media (max-height: 850px) {
  div#tg-sb-sidebar {
    position: static;
  }
}
@media (max-width: 991px) {
  div#tg-sb-sidebar {
    position: static;
  }
  .post-content ol li, .post-content ul li {
    margin: 0px;
  }
  div.tab-content {
    padding: 0px;
    background-color: white;
  }
  div.tab-content div.tab-pane pre {
    margin-top: 0px;
  }
}

/* Details/summary marker */
details > summary::-webkit-details-marker {
  display: none !important;
}
details > summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding-right: 1.2em;
}
details > summary::after {
  content: "▼";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9em;
}
details[open] > summary::after {
  content: "▲";
}

/* Content spacing */
#tg-sb-content {
  margin-top: 15px;
  padding-top: 20px;
}
.post-header {
  margin-top: 0;
  padding-top: 0;
}

/* ============================================================
   DEVLIST CARDS — contributors / maintainers pages
   ============================================================ */

.devlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
  margin: 1.5rem 0 2rem;
}
.devlist-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
}

/* ── Card ───────────────────────────────────────────────────── */
.devcard {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  transition: border-color 180ms, box-shadow 180ms;
}
.devcard:hover {
  border-color: #0a76bb;
  box-shadow: 0 2px 12px rgba(10, 118, 187, 0.08);
}
.devcard--featured {
  padding: 16px 18px;
}

/* ── Avatar ─────────────────────────────────────────────────── */
.devcard__avatar {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
}
.devcard__avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.devcard__avatar--initials {
  background: #e0f0fb;
  color: #0a76bb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Figtree', sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ── Info ───────────────────────────────────────────────────── */
.devcard__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.devcard__name {
  font-family: 'Figtree', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.devcard__institution {
  font-family: 'Figtree', sans-serif;
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.4;
}

/* ── Links ──────────────────────────────────────────────────── */
.devcard__links {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.devcard__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  font-size: 1rem;
  text-decoration: none !important;
  transition: background 150ms, color 150ms;
  border: 1px solid transparent;
}
.devcard__link--orcid {
  color: #a6ce39;
  border-color: #e8f5d0;
  background: #f5fbec;
}
.devcard__link--orcid:hover {
  background: #a6ce39;
  color: #fff;
  border-color: #a6ce39;
}
.devcard__link--github {
  color: #374151;
  border-color: #e5e7eb;
  background: #f9fafb;
}
.devcard__link--github:hover {
  background: #24292e;
  color: #fff;
  border-color: #24292e;
}

/* ── Dark mode ──────────────────────────────────────────────── */
[data-bs-theme="dark"] .devcard {
  background: #1f2937;
  border-color: #374151;
}
[data-bs-theme="dark"] .devcard:hover {
  border-color: #4da6ff;
  box-shadow: 0 2px 12px rgba(77, 166, 255, 0.1);
}
[data-bs-theme="dark"] .devcard__avatar--initials {
  background: #1e3a5f;
  color: #4da6ff;
}
[data-bs-theme="dark"] .devcard__name {
  color: #f3f4f6;
}
[data-bs-theme="dark"] .devcard__institution {
  color: #9ca3af;
}
[data-bs-theme="dark"] .devcard__link--github {
  color: #d1d5db;
  border-color: #374151;
  background: #111827;
}
[data-bs-theme="dark"] .devcard__link--github:hover {
  background: #f0f6ff;
  color: #24292e;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .devlist-grid,
  .devlist-grid--compact {
    grid-template-columns: 1fr;
  }
}