.wy-nav-content {
   max-width: 900px;
}

.tight-table td {
	white-space: normal !important;
}

div.leftside {
  width: 43%;
  padding: 0px 3px 0px 0px;
  float: left;
}

div.rightside {
  margin-left: 45%;
  /* float: right; */
}

/* Hanging indent for bibliography entries */
.bibliography p {
  margin-left: 2em;
  text-indent: -2em;
}

/* Hanging indent for bibliography dd elements (sphinxcontrib-bibtex) */
.bibliography dd {
  margin-left: 2em;
  text-indent: -2em;
}



/* Override for epigraphs inside bibliography */
.bibliography .epigraph p {
  margin-left: 1em;   /* or however far you want the quote indented */
  text-indent: 0;     /* reset so first line is not pulled back */
  font-style: italic; /* optional: make it look more like a quote */
  color: #555;        /* optional: softer text color */
}

/* Compact footnote blocks introduced by a rubric, e.g. "Footnotes". */
.rst-content p.rubric + dl.footnote {
  font-size: 0.85em;
  line-height: 1.25;
  margin-top: 0.25em;
  margin-bottom: 1em;
}

.rst-content p.rubric + dl.footnote dd,
.rst-content p.rubric + dl.footnote dd p {
  margin-bottom: 0.25em;
}

.rst-content p.rubric:has(+ dl.footnote) {
  font-size: 0.95em;
  margin-bottom: 0.25em;
}


/* Floating "back to top" and "home" buttons, bottom right
   (the UserWay accessibility button is at the top right).
   Markup in _templates/footer.html, behavior in _static/js/float_nav.js. */
.h2-float-nav {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.h2-float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2774AE;            /* UCLA blue */
  color: #fff !important;
  font-size: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  text-decoration: none !important;
  opacity: 0.85;
  transition: opacity 0.2s, background 0.2s;
}

.h2-float-btn:hover,
.h2-float-btn:focus {
  opacity: 1;
  background: #005587;            /* UCLA darker blue */
  color: #fff !important;
}

.h2-float-btn:focus-visible {
  outline: 3px solid #FFD100;     /* UCLA gold */
  outline-offset: 2px;
}

/* Hidden until the page is scrolled down (float_nav.js adds .h2-visible). */
.h2-to-top {
  visibility: hidden;
  opacity: 0;
}

.h2-to-top.h2-visible {
  visibility: visible;
  opacity: 0.85;
}

.h2-to-top.h2-visible:hover,
.h2-to-top.h2-visible:focus {
  opacity: 1;
}

@media print {
  .h2-float-nav { display: none; }
}

/* ------------------------------------------------------------------
   "Your purchase includes" card
   (About/Purchasing-additional-resources.rst:
    .. admonition:: ... :class: purchase-includes)
   ------------------------------------------------------------------ */
.rst-content .admonition.purchase-includes {
  --pi-blue: #2774ae;        /* UCLA Blue */
  --pi-darkblue: #005587;    /* UCLA Darker Blue */
  --pi-gold: #ffd100;        /* UCLA Gold */
  background: linear-gradient(180deg, #f3f8fc 0%, #ffffff 100%);
  border: 1px solid #d3e3f1;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 85, 135, 0.12);
  padding: 0 18px 4px;
  margin: 8px 0 28px;
  overflow: hidden;
}

.rst-content .admonition.purchase-includes .admonition-title {
  background: linear-gradient(90deg, var(--pi-darkblue) 0%, var(--pi-blue) 100%);
  border-bottom: 4px solid var(--pi-gold);
  color: #fff;
  font-size: 1.15em;
  letter-spacing: 0.02em;
  margin: 0 -18px 18px;
  padding: 10px 18px;
}

.rst-content .admonition.purchase-includes .admonition-title::before {
  content: "\f058";          /* FontAwesome check-circle */
  color: var(--pi-gold);
  margin-right: 8px;
}

/* the two columns become side-by-side cards */
.rst-content .admonition.purchase-includes .wy-table-responsive {
  margin-bottom: 14px;
  overflow: visible;
}

.rst-content .admonition.purchase-includes table.purchase-includes-table {
  border: 0;
  border-collapse: separate;
  border-spacing: 14px 0;
  margin: 0 -14px;
  width: calc(100% + 28px);
  background: transparent;
}

.rst-content .admonition.purchase-includes table.purchase-includes-table th,
.rst-content .admonition.purchase-includes table.purchase-includes-table td {
  background: #fff !important;
  border: 1px solid #d3e3f1;
  vertical-align: top;
  white-space: normal;
}

.rst-content .admonition.purchase-includes table.purchase-includes-table th {
  background: #e8f1f9 !important;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  color: var(--pi-darkblue);
  font-size: 1.05em;
  padding: 10px 16px;
  text-align: left;
}

.rst-content .admonition.purchase-includes table.purchase-includes-table th::before {
  font-family: FontAwesome;
  color: var(--pi-blue);
  display: inline-block;
  margin-right: 8px;
  width: 1.1em;
}
.rst-content .admonition.purchase-includes table.purchase-includes-table th:first-child::before {
  content: "\f1c0";          /* database */
}
.rst-content .admonition.purchase-includes table.purchase-includes-table th:last-child::before {
  content: "\f233";          /* server */
}

.rst-content .admonition.purchase-includes table.purchase-includes-table td {
  border-top: 0;
  border-radius: 0 0 8px 8px;
  padding: 6px 16px 10px;
}

.rst-content .admonition.purchase-includes table.purchase-includes-table th p {
  display: inline;
  margin: 0;
}

/* checkmark bullets */
.rst-content .admonition.purchase-includes table.purchase-includes-table td ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rst-content .admonition.purchase-includes table.purchase-includes-table td li {
  list-style: none;
  margin: 0;
  padding: 7px 0 7px 28px;
  position: relative;
  border-bottom: 1px dashed #e3ecf4;
}
.rst-content .admonition.purchase-includes table.purchase-includes-table td li:last-child {
  border-bottom: 0;
}
.rst-content .admonition.purchase-includes table.purchase-includes-table td li::before {
  content: "\f00c";          /* check */
  font-family: FontAwesome;
  position: absolute;
  left: 0;
  top: 8px;
  width: 19px;
  height: 19px;
  line-height: 19px;
  text-align: center;
  font-size: 11px;
  color: #fff;
  background: var(--pi-blue);
  border-radius: 50%;
}
.rst-content .admonition.purchase-includes table.purchase-includes-table td li p {
  margin: 0;
  line-height: 1.45;
}

/* phones: stack the two cards */
@media screen and (max-width: 768px) {
  .rst-content .admonition.purchase-includes table.purchase-includes-table,
  .rst-content .admonition.purchase-includes table.purchase-includes-table thead,
  .rst-content .admonition.purchase-includes table.purchase-includes-table tbody,
  .rst-content .admonition.purchase-includes table.purchase-includes-table tr {
    display: block;
    width: 100%;
    margin: 0;
  }
  .rst-content .admonition.purchase-includes table.purchase-includes-table colgroup {
    display: none;
  }
  .rst-content .admonition.purchase-includes table.purchase-includes-table thead {
    display: none;
  }
  .rst-content .admonition.purchase-includes table.purchase-includes-table td {
    display: block;
    border-top: 1px solid #d3e3f1;
    border-radius: 8px;
    margin-bottom: 12px;
  }
  .rst-content .admonition.purchase-includes table.purchase-includes-table td::before {
    font-family: FontAwesome, Lato, "proxima-nova", "Helvetica Neue", Arial, sans-serif;
    display: block;
    font-weight: bold;
    color: var(--pi-darkblue);
    padding: 6px 0 8px;
    border-bottom: 1px solid #e3ecf4;
  }
  .rst-content .admonition.purchase-includes table.purchase-includes-table td:first-child::before {
    content: "\f1c0\a0\a0 Storage";
  }
  .rst-content .admonition.purchase-includes table.purchase-includes-table td:last-child::before {
    content: "\f233\a0\a0 Compute node";
  }
}

/* ------------------------------------------------------------------
   "Why sharing works for everyone" box
   (About/Purchasing-additional-resources.rst: :class: shared-model)
   Deliberately quieter than the purchase-includes card.
   ------------------------------------------------------------------ */
.rst-content .admonition.shared-model {
  background: #fbfaf4;
  border: 1px solid #ece6c8;
  border-left: 4px solid #ffd100;   /* UCLA Gold */
  border-radius: 6px;
  padding: 4px 18px 6px;
  margin: 4px 0 24px;
}
.rst-content .admonition.shared-model .admonition-title {
  background: transparent;
  color: #005587;                   /* UCLA Darker Blue */
  font-size: 1.02em;
  margin: 0 -18px 4px;
  padding: 8px 18px 2px;
}
.rst-content .admonition.shared-model .admonition-title::before {
  content: "\f0c0";                 /* FontAwesome users */
  color: #2774ae;
  margin-right: 8px;
}
.rst-content .admonition.shared-model ul {
  margin-bottom: 8px;
}
.rst-content .admonition.shared-model li {
  margin-bottom: 6px;
  list-style: none;
  position: relative;
  padding-left: 4px;
}
.rst-content .admonition.shared-model li::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2774ae;
}
.rst-content .admonition.shared-model li strong {
  color: #005587;
}
.rst-content .admonition.shared-model > p:last-child {
  font-size: 0.92em;
  color: #555;
}
