:root {
  --ph-ink: #102a35;
  --ph-muted: #52636c;
  --ph-teal: #087f73;
  --ph-blue: #176b87;
  --ph-green: #2f855a;
  --ph-amber: #c88617;
  --ph-coral: #c85a3f;
  --ph-line: #d8e0e3;
  --ph-surface: #f5f8f8;
  --ph-deep: #0d3038;
  --content-width: 58rem;
}

.content {
  min-width: 0;
  line-height: 1.68;
}

.content h1,
.content h2,
.content h3 {
  letter-spacing: 0;
}

.content h2 {
  margin-top: 2.7rem;
}

.ph-intro {
  margin: 0 0 2.8rem;
  padding: 3.1rem 0 2.6rem;
  border-top: 4px solid var(--ph-teal);
  border-bottom: 1px solid var(--ph-line);
}

.ph-intro h1 {
  max-width: 44rem;
  margin: 0.1rem 0 0.55rem;
  color: var(--ph-ink);
  font-size: 4.5rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.ph-intro .ph-kicker {
  margin: 0;
  color: var(--ph-teal);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ph-intro .ph-lead {
  max-width: 43rem;
  margin: 0;
  color: var(--ph-muted);
  font-size: 1.16rem;
  line-height: 1.5;
}

.ph-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.ph-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 2.55rem;
  padding: 0.52rem 1rem;
  border: 1px solid var(--ph-deep);
  border-radius: 4px;
  color: var(--ph-deep);
  font-weight: 680;
  text-decoration: none;
}

.ph-actions a:first-child {
  color: #ffffff;
  background: var(--ph-deep);
  border-color: var(--ph-deep);
}

.ph-actions a:last-child {
  border-color: transparent;
  color: var(--ph-teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24rem;
}

.ph-actions a:hover {
  color: #ffffff;
  background: var(--ph-teal);
  border-color: var(--ph-teal);
  text-decoration: none;
}

.ph-section-lead {
  max-width: 760px;
  margin-top: -0.6rem;
  color: var(--ph-muted);
  font-size: 1.02rem;
}

.content figure,
.content figure a.image-reference,
.ph-log-figure {
  max-width: 100%;
}

.content figure a.image-reference {
  display: block;
}

.content figure img,
.ph-log-figure {
  height: auto;
}

.ph-log-figure {
  display: block;
  margin: 1.4rem 0 2rem;
}

.ph-log-figure img {
  width: 100%;
  border: 1px solid var(--ph-line);
  background: #ffffff;
}

.ph-log-figure figcaption {
  margin-top: 0.55rem;
  color: var(--ph-muted);
  font-size: 0.82rem;
  text-align: left;
}

.sd-card {
  border: 1px solid var(--ph-line) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

.sd-card:hover {
  border-color: #8bbeb8 !important;
  box-shadow: 0 6px 18px rgba(13, 48, 56, 0.08) !important;
}

.sd-card-title {
  color: var(--ph-ink);
  font-size: 1rem;
}

.ph-card-teal {
  border-top: 4px solid var(--ph-teal) !important;
}

.ph-card-blue {
  border-top: 4px solid var(--ph-blue) !important;
}

.ph-card-amber {
  border-top: 4px solid var(--ph-amber) !important;
}

.ph-card-coral {
  border-top: 4px solid var(--ph-coral) !important;
}

.ph-card-green {
  border-top: 4px solid var(--ph-green) !important;
}

.ph-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: stretch;
  margin: 1.2rem 0 2rem;
}

.ph-flow-node {
  position: relative;
  min-width: 0;
  padding: 1rem 0.9rem;
  border: 1px solid var(--ph-line);
  border-top: 4px solid var(--ph-teal);
  background: #ffffff;
}

.ph-flow-node:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -0.72rem;
  width: 0.65rem;
  color: var(--ph-teal);
  background: var(--color-background-primary);
  font-weight: 800;
  line-height: 1;
  transform: translateY(-50%);
}

.ph-flow-node:nth-child(2) {
  border-top-color: var(--ph-blue);
}

.ph-flow-node:nth-child(3) {
  border-top-color: var(--ph-amber);
}

.ph-flow-node:nth-child(4) {
  border-top-color: var(--ph-green);
}

.ph-flow-node:nth-child(5) {
  border-top-color: var(--ph-coral);
}

.ph-flow-step {
  display: block;
  margin-bottom: 0.35rem;
  color: #6b7b82;
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ph-flow-node strong,
.ph-flow-node small {
  display: block;
}

.ph-flow-node strong {
  margin-bottom: 0.3rem;
  color: var(--ph-ink);
  font-size: 0.96rem;
}

.ph-flow-node small {
  color: var(--ph-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.ph-trace {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  margin: 1.2rem 0 2rem;
  border: 1px solid var(--ph-line);
  background: var(--ph-surface);
}

.ph-trace > div {
  padding: 0.9rem 1rem;
  border-right: 1px solid var(--ph-line);
}

.ph-trace > div:last-child {
  border-right: 0;
}

.ph-trace strong,
.ph-trace span {
  display: block;
}

.ph-trace strong {
  color: var(--ph-ink);
  font-size: 0.9rem;
}

.ph-trace span {
  margin-top: 0.22rem;
  color: var(--ph-muted);
  font-size: 0.76rem;
}

.ph-course-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 1.25rem 0 2rem;
  border-top: 1px solid var(--ph-line);
  border-bottom: 1px solid var(--ph-line);
}

.ph-course-stage {
  min-width: 0;
  padding: 1.05rem 1.1rem 1.15rem;
  border-right: 1px solid var(--ph-line);
}

.ph-course-stage:last-child {
  border-right: 0;
}

.ph-course-stage span,
.ph-course-stage strong,
.ph-course-stage small {
  display: block;
}

.ph-course-stage span {
  margin-bottom: 0.35rem;
  color: var(--ph-teal);
  font-size: 0.72rem;
  font-weight: 760;
}

.ph-course-stage strong {
  margin-bottom: 0.22rem;
  color: var(--ph-ink);
  font-size: 0.98rem;
}

.ph-course-stage small {
  color: var(--ph-muted);
  font-size: 0.78rem;
  line-height: 1.48;
}

article .cell {
  min-width: 0;
  margin: 1.25rem 0 1.8rem;
}

article .cell_input {
  overflow: hidden;
  border: 1px solid var(--ph-line);
  border-radius: 6px;
}

article .cell_input > div,
article .cell_input .highlight {
  margin: 0;
}

article .cell_output {
  min-width: 0;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--ph-line);
}

article .cell_output img,
article .cell_output svg,
article .cell_output table {
  max-width: 100%;
}

article .cell_output pre,
article .cell_output .output,
article .text_html {
  max-width: 100%;
  overflow-x: auto;
}

/* Tables printed by executed pages (pandas DataFrames and Stylers), in cell
   outputs and in outputs glued into cards or tabs. */
article .text_html table {
  width: auto;
  margin: 0.25rem 0;
  border: none;
  border-collapse: collapse;
  font-size: 0.82rem;
  line-height: 1.35;
}

article .text_html table th,
article .text_html table td {
  padding: 0.32rem 0.7rem;
  border: none;
  border-bottom: 1px solid var(--ph-line);
  text-align: left !important;
  vertical-align: top;
  overflow-wrap: break-word;
}

article .text_html table thead th {
  border-bottom: 2px solid var(--ph-muted);
  font-weight: 650;
}

/* pandas prints the index name on its own header row; keep it quiet. */
article .text_html table thead tr + tr th {
  padding-top: 0;
  color: var(--ph-muted);
  font-weight: 500;
}

article .text_html table tbody th {
  font-weight: 600;
  white-space: nowrap;
}

/* Tables glued into narrow cards: tighter cells so they fit the card. */
article .sd-card .text_html table th,
article .sd-card .text_html table td {
  padding: 0.3rem 0.45rem;
}

article .text_html table tbody tr:hover {
  background: var(--ph-surface, rgba(0, 0, 0, 0.03));
}

.ph-status {
  display: inline-block !important;
  width: fit-content;
  margin-bottom: 0.35rem;
  padding: 0.13rem 0.42rem;
  border-radius: 4px;
  color: #ffffff !important;
  font-size: 0.66rem !important;
  font-weight: 750;
  text-transform: uppercase;
}

.ph-status-run {
  background: var(--ph-green);
}

.ph-status-skip {
  background: #7b8790;
}

.ph-status-warn {
  color: #4a3400 !important;
  background: #e9bd62;
}

.ph-institution-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  margin: 2.8rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--ph-line);
}

.ph-institution-row img {
  max-width: 180px;
  max-height: 44px;
  object-fit: contain;
}

.ph-institution-row .ph-inception {
  padding: 0.45rem 0.65rem;
  background: #172126;
}

.ph-institution-row p {
  flex: 1 1 260px;
  margin: 0;
  color: var(--ph-muted);
  font-size: 0.82rem;
}

table.docutils {
  font-size: 0.9rem;
}

body[data-theme="dark"] {
  --ph-ink: #e8f1f2;
  --ph-muted: #b5c2c6;
  --ph-line: #415159;
  --ph-surface: #202b30;
}

body[data-theme="dark"] .ph-flow-node,
body[data-theme="dark"] .ph-log-figure img {
  background: #ffffff;
}

body[data-theme="dark"] .ph-flow-node strong {
  color: #102a35;
}

body[data-theme="dark"] .ph-flow-node small {
  color: #52636c;
}

body[data-theme="dark"] .sd-card-title {
  color: #e8f1f2;
}

.bottom-of-page .left-details {
  display: none;
}

@media (max-width: 900px) {
  .page,
  .main,
  .content,
  .content article {
    box-sizing: border-box;
    min-width: 0;
    width: 100vw;
    max-width: 100vw;
  }

  .main {
    overflow-x: hidden;
  }

  .content {
    flex: 0 0 100vw;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .content article,
  .content .sd-container-fluid,
  .content .sd-row {
    width: 100%;
    max-width: 100%;
  }

  .content .sd-row {
    margin-right: 0;
    margin-left: 0;
  }

  .ph-flow {
    grid-template-columns: 1fr 1fr;
  }

  .ph-flow-node:not(:last-child)::after {
    display: none;
  }

  .ph-trace {
    grid-template-columns: 1fr 1fr;
  }

  .ph-course-map {
    grid-template-columns: 1fr 1fr;
  }

  .ph-course-stage:nth-child(2) {
    border-right: 0;
  }

  .ph-course-stage:nth-child(-n + 2) {
    border-bottom: 1px solid var(--ph-line);
  }

  .ph-trace > div:nth-child(2) {
    border-right: 0;
  }

  .ph-trace > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--ph-line);
  }
}

@media (max-width: 560px) {
  .ph-intro {
    margin-bottom: 2.2rem;
    padding: 2.3rem 0 2rem;
  }

  .ph-intro h1 {
    font-size: 3rem;
  }

  .ph-intro .ph-lead {
    font-size: 1.02rem;
  }

  .ph-actions a {
    justify-content: center;
  }

  .content h2 {
    font-size: 1.95rem;
    line-height: 1.18;
  }

  .ph-flow,
  .ph-trace,
  .ph-course-map {
    grid-template-columns: 1fr;
  }

  .ph-course-stage {
    border-right: 0;
    border-bottom: 1px solid var(--ph-line);
  }

  .ph-course-stage:last-child {
    border-bottom: 0;
  }

  .ph-trace > div {
    border-right: 0;
    border-bottom: 1px solid var(--ph-line);
  }

  .ph-trace > div:last-child {
    border-bottom: 0;
  }
}

/* ==========================================================================
   API reference
   Scoped to API-only markup: autosummary tables, Python object descriptions
   (dl.py) and the ph-api-* classes written by docs/api/_generate.py and the
   templates in docs/_templates/autosummary/.
   ========================================================================== */

:root {
  --ph-api-accent: var(--ph-teal);
  --ph-api-accent-soft: rgba(8, 127, 115, 0.07);
  --ph-api-accent-line: rgba(8, 127, 115, 0.45);
  --ph-api-sig-bg: #f2f7f6;
  --ph-api-amber-bg: #fdf6e7;
  --ph-api-amber-line: #d9a23a;
  --ph-api-amber-ink: #6b4a06;
}

body[data-theme="dark"] {
  --ph-api-accent: #5fd1c4;
  --ph-api-accent-soft: rgba(95, 209, 196, 0.09);
  --ph-api-accent-line: rgba(95, 209, 196, 0.5);
  --ph-api-sig-bg: #1b2629;
  --ph-api-amber-bg: rgba(233, 189, 98, 0.1);
  --ph-api-amber-line: #c99a3d;
  --ph-api-amber-ink: #f0d39a;
}

@media (prefers-color-scheme: dark) {
  body:not([data-theme="light"]) {
    --ph-api-accent: #5fd1c4;
    --ph-api-accent-soft: rgba(95, 209, 196, 0.09);
    --ph-api-accent-line: rgba(95, 209, 196, 0.5);
    --ph-api-sig-bg: #1b2629;
    --ph-api-amber-bg: rgba(233, 189, 98, 0.1);
    --ph-api-amber-line: #c99a3d;
    --ph-api-amber-ink: #f0d39a;
  }
}

/* -- Page text ------------------------------------------------------------ */

.ph-api-lead {
  max-width: 46rem;
  color: var(--color-foreground-secondary);
  font-size: 1.04rem;
  line-height: 1.6;
}

ul.ph-api-start {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.1rem 0 1.6rem;
  padding: 0;
  list-style: none;
}

ul.ph-api-start > li {
  flex: 1 1 15rem;
  margin: 0;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--color-background-border);
  border-left: 3px solid var(--ph-api-accent);
  border-radius: 0 4px 4px 0;
  color: var(--color-foreground-secondary);
  font-size: 0.86rem;
  line-height: 1.45;
}

ul.ph-api-start > li > p {
  margin: 0;
}

ul.ph-api-start a {
  font-weight: 650;
  text-decoration: none;
}

/* Headings: a section per subpackage, then smaller group headings. */
article section:has(> .ph-api-module) > h2,
article section:has(> .ph-api-module) > h3 {
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
}

article section:has(> .ph-api-module) > h3 {
  font-size: 1.3rem;
}

article section:has(> .table-wrapper.autosummary) > h2,
article section:has(> dl.py.data) > h2 {
  margin-top: 2.1rem;
  margin-bottom: 0.3rem;
  font-size: 1.12rem;
  letter-spacing: 0;
}

/* Area pages: one entry per section page, under optional topic headings. */
article section:has(> .ph-api-more) > h2,
article section:has(> .ph-api-more) > h3 {
  margin-top: 2.2rem;
  margin-bottom: 0.3rem;
  font-size: 1.3rem;
}

article section:has(> section > .ph-api-more) > h2 {
  margin-top: 3rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--color-background-border);
  font-size: 1.65rem;
}

/* Sidebar: function and class pages (the leaves under each section page)
   read as code names on one line; long names end in an ellipsis and the
   full path shows as a tooltip (title added by docs/api/_generate.py). */
.sidebar-tree li:not(.has-children) > a.reference[title^="petrophys."] {
  display: block;
  overflow: hidden;
  font-family: var(--font-stack--monospace);
  font-size: 0.76rem;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Module path and one-line description under each section heading. */
.ph-api-module {
  margin: -0.4rem 0 0.9rem;
}

.ph-api-module p {
  margin: 0.15rem 0;
  color: var(--color-foreground-secondary);
}

.ph-api-module p:first-child code.literal {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ph-api-accent);
  font-size: 0.8rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.ph-api-note {
  margin: 0.4rem 0 0.9rem;
  padding: 0.35rem 0.75rem;
  border-left: 3px solid var(--ph-api-accent-line);
  background: var(--ph-api-accent-soft);
  font-size: 0.86rem;
}

/* Small group labels (Functions, Classes, curated groups, Methods). */
p.rubric.ph-api-group,
p.rubric.ph-api-members {
  margin: 1.5rem 0 0.15rem;
  color: var(--color-foreground-secondary);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-transform: uppercase;
}

.ph-api-also {
  margin-top: 0.9rem;
  color: var(--color-foreground-secondary);
  font-size: 0.84rem;
}

.ph-api-more {
  margin: 0.2rem 0 0.4rem;
  color: var(--color-foreground-secondary);
  font-size: 0.88rem;
}

.ph-api-more a {
  font-weight: 650;
  text-decoration: none;
}

.ph-api-more a::after {
  content: " \2192";
}

.ph-api-more a:hover {
  text-decoration: underline;
}

/* -- Autosummary tables ---------------------------------------------------- */

article .table-wrapper.autosummary {
  margin: 0.2rem 0 0.6rem;
  padding: 0;
}

table.autosummary {
  width: 100%;
  table-layout: fixed;
  border: 0;
  border-collapse: collapse;
  border-radius: 0;
  box-shadow: none;
  font-size: 0.9rem;
}

table.autosummary tr {
  border-top: 1px solid var(--color-background-border);
}

table.autosummary tr:last-child {
  border-bottom: 1px solid var(--color-background-border);
}

table.autosummary tr:hover {
  background: var(--ph-api-accent-soft);
}

table.autosummary td {
  padding: 0.42rem 0.75rem 0.42rem 0.1rem;
  border: 0;
  vertical-align: top;
}

table.autosummary td p {
  margin: 0;
}

table.autosummary td:first-child {
  width: 40%;
}

table.autosummary td:first-child code.literal {
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-api-name);
  font-size: 0.86rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

table.autosummary td:first-child a {
  text-decoration: none;
}

table.autosummary td:first-child a:hover code.literal {
  color: var(--ph-api-accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

table.autosummary td:last-child {
  color: var(--color-foreground-secondary);
  line-height: 1.5;
}

/* -- Landing cards ------------------------------------------------------- */

.ph-api-cards {
  margin-top: 0.4rem;
}

.ph-api-cards .sd-card.ph-api-card {
  border-top: 3px solid var(--ph-api-accent) !important;
  background: var(--color-background-primary);
}

.ph-api-card .sd-card-body {
  padding: 1rem 1.1rem 0.75rem;
}

.ph-api-card .sd-card-title {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.ph-api-card .sd-card-title a {
  color: var(--color-foreground-primary);
  text-decoration: none;
}

.ph-api-card .sd-card-title a:hover {
  color: var(--ph-api-accent);
}

.ph-api-card .sd-card-text {
  color: var(--color-foreground-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

.ph-api-card .ph-api-card-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.7rem 0 0;
}

.ph-api-card .ph-api-card-keys a {
  text-decoration: none;
}

.ph-api-card .ph-api-card-keys code.literal {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--color-background-border);
  border-radius: 4px;
  background: var(--color-background-secondary);
  color: var(--color-api-name);
  font-size: 0.78rem;
  font-weight: 600;
}

.ph-api-card .ph-api-card-keys a:hover code.literal {
  border-color: var(--ph-api-accent-line);
  color: var(--ph-api-accent);
}

.ph-api-card .sd-card-footer {
  padding: 0.5rem 1.1rem;
  border-top: 1px solid var(--color-background-border);
  background: transparent;
}

.ph-api-card .sd-card-footer .sd-card-text {
  margin: 0;
  color: var(--color-foreground-muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

body[data-theme="dark"] .ph-api-card .sd-card-title {
  color: inherit;
}

/* -- Object pages: import path and signatures ----------------------------- */

.ph-api-path {
  margin: -0.5rem 0 1.1rem;
}

.ph-api-path p {
  margin: 0.1rem 0;
}

.ph-api-path p:first-child code.literal {
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-foreground-secondary);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.ph-api-path .ph-api-also-as {
  color: var(--color-foreground-muted);
  font-size: 0.8rem;
}

.ph-api-path .ph-api-also-as code.literal {
  font-size: 0.78rem;
}

/* The object documented by the page. */
article > section > dl.py > dt.sig {
  margin: 0 0 0.9rem;
  padding: 0.65rem 0.9rem 0.65rem 3.4em;
  border-left: 3px solid var(--ph-api-accent);
  border-radius: 0 4px 4px 0;
  background: var(--ph-api-sig-bg);
  line-height: 1.55;
}

article > section > dl.py > dt.sig:hover {
  background: var(--ph-api-sig-bg);
}

/* Methods, attributes and constants. */
dl.py dl.py > dt.sig,
section > dl.py.data > dt.sig {
  margin-top: 1.4rem;
  padding: 0.35rem 0.7rem 0.35rem 3em;
  border-left: 2px solid var(--ph-api-accent-line);
  border-radius: 0 3px 3px 0;
  background: var(--color-background-secondary);
  font-size: calc(var(--api-font-size) * 0.95);
}

section > dl.py.data > dt.sig {
  margin-top: 0.7rem;
}

dt.sig .sig-name.descname {
  color: var(--color-api-name);
}

dt.sig .sig-paren,
dt.sig .default_value,
dt.sig .o {
  color: var(--color-foreground-secondary);
}

dt.sig .sig-param {
  font-weight: 500;
}

/* One parameter per line for long signatures. */
dt.sig > dl {
  margin: 0.1rem 0;
}

dt.sig > dl > dd {
  margin-left: 1.5rem;
}

/* -- Parameters, Returns, Raises ------------------------------------------- */

dl.py dl.field-list {
  display: block;
  margin: 1rem 0 0.9rem;
}

dl.py dl.field-list > dt {
  margin: 1rem 0 0.3rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--color-background-border);
  color: var(--color-foreground-secondary);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

dl.py dl.field-list > dt .colon {
  display: none;
}

dl.py dl.field-list > dd {
  margin-left: 0;
}

dl.py dl.field-list > dd > ul {
  margin: 0;
  margin-left: 0 !important;
  padding: 0;
  list-style: none;
}

dl.py dl.field-list > dd > ul > li {
  margin: 0;
  padding: 0.35rem 0;
}

dl.py dl.field-list > dd > ul > li + li {
  border-top: 1px dashed var(--color-background-border);
}

dl.py dl.field-list > dd > ul > li > p,
dl.py dl.field-list > dd > p {
  margin: 0;
}

dl.py dl.field-list > dd strong {
  font-family: var(--font-stack--monospace);
  font-size: 0.9em;
  font-weight: 650;
  color: var(--color-api-name);
}

dl.py dl.field-list > dd em {
  color: var(--color-foreground-secondary);
}

/* -- Class member summaries ------------------------------------------------- */

dl.py.class > dd > p.rubric.ph-api-members:first-of-type,
dl.py.exception > dd > p.rubric.ph-api-members:first-of-type {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-background-border);
}

dl.py.class > dd > .table-wrapper.autosummary td:first-child,
dl.py.exception > dd > .table-wrapper.autosummary td:first-child {
  width: 34%;
}

/* -- Narrow screens ------------------------------------------------------- */

@media (max-width: 560px) {
  table.autosummary,
  table.autosummary tbody,
  table.autosummary tr,
  table.autosummary td {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
  }

  table.autosummary td {
    padding: 0.1rem 0.2rem;
  }

  table.autosummary td:first-child {
    padding-top: 0.45rem;
  }

  table.autosummary td:last-child {
    padding-bottom: 0.45rem;
    font-size: 0.86rem;
  }

  dt.sig {
    overflow-wrap: anywhere;
  }

  dt.sig > dl > dd {
    margin-left: 0.8rem;
  }

  /* Furo indents descriptions by 2rem; on a phone that is a sixth of the width. */
  dl.py[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple)
    > dd {
    margin-left: 0.6rem;
  }

  dl.py[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple)
    dl.field-list
    > dd {
    margin-left: 0;
  }

  .ph-api-cards > .sd-row > .sd-col {
    padding-right: 0;
    padding-left: 0;
  }
}

/* The repository icon among the top-of-page buttons (_templates/components/view-this-page.html). */
.content-icon-container .repo-link a {
  color: var(--color-foreground-secondary);
}
.content-icon-container .repo-link svg {
  fill: currentColor;
  width: 1.1rem;
  height: 1.1rem;
}
