/*
 * Baritone API docs - 2026 refresh.
 * Layered on top of javadoc's own stylesheet via --add-stylesheet, so all of
 * javadoc's functional CSS (search, tabs, nav toggle) keeps working.
 * Palette and fonts deliberately match the Settings reference page.
 */

:root {
  /* keep javadoc's classic palette - it already matches the old site */
  --body-font-family: 'DejaVu Sans', Arial, Helvetica, sans-serif;
  --block-font-family: 'DejaVu Sans', Arial, Helvetica, sans-serif; /* was serif; unify with Settings page */
  --code-font-family: 'DejaVu Sans Mono', Consolas, monospace;
  --body-font-size: 15px;
  --code-font-size: 13.5px;

  --body-text-color: #353833;
  --block-text-color: #353833;
  --body-background-color: #ffffff;
  --section-background-color: #eef1f5;
  --detail-background-color: #ffffff;

  --navbar-background-color: #4D7A97;
  --navbar-text-color: #ffffff;
  --subnav-background-color: #dee3e9;

  /* drop javadoc's orange highlight for the blue scheme */
  --selected-background-color: #4D7A97;
  --selected-text-color: #ffffff;
  --selected-link-color: #ffffff;

  --even-row-color: #ffffff;
  --odd-row-color: #f7f9fb;

  --title-color: #2c4557;
  --link-color: #4A6782;
  --link-color-active: #2c4557;

  --snippet-background-color: #f4f6f9;
  --snippet-highlight-color: #cfdae6;

  --border-color: #d5dce4;
  --table-border-color: #d5dce4;

  --search-input-background-color: #ffffff;
  --search-input-text-color: #353833;
  --search-input-placeholder-color: #8894a2;
  --search-tag-highlight-color: #cfdae6;

  --invalid-tag-background-color: #f6ecec;

  /* local additions */
  --bd-muted: #5f6b78;
  --bd-band-soft: #eef1f5;
  --bd-code-bg: #f4f6f9;
  --bd-radius: 8px;
  --bd-shadow: 0 1px 2px rgba(44,69,87,.06), 0 2px 8px rgba(44,69,87,.05);
}

html { scroll-behavior: smooth; scroll-padding-top: 8px; }
body { line-height: 1.6; }

/* ---------- navigation ----------
   javadoc's navbar is float-based (.top-nav/.sub-nav are float:left; width:100%
   with overflow:hidden and a min-height). Do NOT set position/float/min-height
   or vertical padding here: collapsing the box makes .sub-nav paint over the
   links and swallow their clicks. Cosmetics only. */
.top-nav a { letter-spacing: .01em; }
.top-nav .nav-list li a {
  border-radius: 5px;
  transition: background-color .13s;
}
.top-nav .nav-list li a:hover { background: rgba(255,255,255,.16); text-decoration: none; }
.top-nav .nav-list li.nav-bar-cell1-rev {
  background: rgba(255,255,255,.18);
  border-radius: 5px;
  color: #fff;
}
.sub-nav { border-bottom: 1px solid var(--border-color); }

/* search box in the nav */
#search-input, #page-search-input {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: var(--body-font-family);
  background-color: #fff;
}
#search-input:focus, #page-search-input:focus {
  outline: none;
  border-color: #4D7A97;
  box-shadow: 0 0 0 3px rgba(77,122,151,.18);
}
.ui-autocomplete {
  border: 1px solid var(--border-color) !important;
  border-radius: 6px !important;
  box-shadow: var(--bd-shadow) !important;
  overflow: hidden;
}
.ui-autocomplete .result-item { font-size: 13.5px; }
.ui-state-active, .ui-widget-content .ui-state-active {
  background: var(--subnav-background-color) !important;
  color: var(--title-color) !important;
  border: 0 !important;
}

/* ---------- page frame ---------- */
main { padding: 6px 22px 60px; max-width: 1180px; margin: 0 auto; }
.header { padding-top: 20px; }
h1.title, .title {
  color: var(--title-color);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.sub-title { color: var(--bd-muted); font-size: 14px; }
.package-signature, .type-signature, .member-signature {
  font-family: var(--code-font-family);
}

/* ---------- panels / sections ---------- */
.summary section, .details section,
.class-uses .detail, .constants-summary {
  margin-bottom: 18px;
}
.caption {
  background: transparent;
  color: var(--title-color);
  font-size: 15px;
  font-weight: 700;
  padding: 0 0 8px;
  margin: 0;
}
.caption > span {
  background: transparent;
  color: var(--title-color);
  padding: 0;
  border-radius: 0;
  font-weight: 700;
}
h2, h3 { color: var(--title-color); }
h2 { border-bottom: 2px solid var(--subnav-background-color); padding-bottom: 6px; }

/* ---------- summary tables ---------- */
.summary-table, .details-table {
  border: 1px solid var(--border-color);
  border-radius: var(--bd-radius);
  overflow: hidden;
  box-shadow: var(--bd-shadow);
  margin-bottom: 4px;
}
.table-header {
  background: var(--bd-band-soft);
  color: var(--title-color);
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 8px 12px;
}
/* these tables are display:grid; wrap long signatures rather than let
   overflow:hidden (used for the rounded corners) clip them away */
.summary-table > div, .details-table > div { padding: 9px 12px; overflow-wrap: anywhere; min-width: 0; }
.col-first, .col-second, .col-last, .col-constructor-name, .col-summary-item-name {
  font-size: 14px;
}
.col-first a, .col-second a, .col-constructor-name a, .col-summary-item-name a {
  font-family: var(--code-font-family);
}
.even-row-color, .odd-row-color { border-top: 1px solid var(--border-color); }

/* tab buttons above method tables */
.table-tabs { padding: 0 0 10px; background: transparent; }
.table-tabs > button {
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--link-color);
  border-radius: 999px;
  padding: 4px 13px;
  margin-right: 6px;
  font-family: var(--body-font-family);
  font-size: 13px;
  cursor: pointer;
  transition: background-color .13s, color .13s, border-color .13s;
}
.table-tabs > button:hover { background: var(--subnav-background-color); }
.table-tabs > button.active-table-tab {
  background: #4D7A97;
  border-color: #4D7A97;
  color: #fff;
}

/* ---------- member details ---------- */
.member-list > li, .details-list > li, .summary-list > li { list-style: none; }
.detail, section.detail {
  border: 1px solid var(--border-color);
  border-radius: var(--bd-radius);
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #fff;
  box-shadow: var(--bd-shadow);
  scroll-margin-top: 10px;
}
.detail:target, section.detail:target {
  border-color: #4D7A97;
  box-shadow: 0 0 0 3px rgba(77,122,151,.16);
}
.detail h3, section.detail h3 {
  margin-top: 0;
  border-bottom: 0;
  font-family: var(--code-font-family);
  font-size: 15.5px;
}
.member-signature {
  background: var(--bd-code-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 11px;
  display: block;
  overflow-x: auto;
  font-size: 13px;
}
.member-signature .element-name { color: var(--title-color); font-weight: 700; }
.member-signature .return-type, .member-signature .modifiers { color: var(--bd-muted); }

.notes, dl.notes { font-size: 14px; }
dl.notes > dt {
  color: var(--title-color);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 10px;
}
dl.notes > dd { margin-left: 0; padding-left: 2px; color: var(--body-text-color); }

.inheritance { font-size: 13.5px; color: var(--bd-muted); }
.horizontal-scroll { overflow-x: auto; }

/* code and snippets */
code, tt, pre, .source-line-no { font-family: var(--code-font-family); }
.block code, .notes code, td code {
  background: var(--bd-code-bg);
  border-radius: 3px;
  padding: 1px 5px;
}
pre, .snippet-container {
  background: var(--bd-code-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px 12px;
  overflow-x: auto;
}
.deprecation-block, .deprecated-label {
  background: #f6efe7;
  border-left: 3px solid #b98a4e;
  border-radius: 4px;
  padding: 9px 12px;
  font-style: normal;
  color: #7d5a2c;
}

/* ---------- links ---------- */
a { text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
main a[href]:not(.table-tabs a) { color: var(--link-color); }

/* ---------- index / all-classes pages ---------- */
.two-column-search-results .col-first,
.two-column-search-results .col-last { padding: 8px 12px; }
.contents-list > li { padding: 3px 0; }

/* ---------- source view (linkSource) ---------- */
.source-line-no { color: #93a1af; }

/* ---------- footer ---------- */
footer, .bottom-nav {
  border-top: 1px solid var(--border-color);
  background: var(--bd-band-soft);
  color: var(--bd-muted);
}
.legal-copy { padding: 14px 22px; font-size: 12.5px; }

/* ---------- responsive ---------- */
@media screen and (max-width: 800px) {
  main { padding: 6px 14px 48px; }
  h1.title, .title { font-size: 21px; }
}
