/* All tags */

h2 {
  margin-top: 3rem;
}

blockquote {
  font-size: 1em;
}

p {
  max-width: 70ch;
}

/* Specific classes */

.code-like {
  font-family: var(--pst-font-family-monospace);
}

.bd-header.bd-navbar .navbar-brand.logo-title {
  padding-left: 1ch;
}

.bd-header.bd-navbar .navbar-brand.logo-title.landing:hover {
  text-decoration: none;
}

.bd-container {
  padding-bottom: 3rem;
}

.github-logo {
  background-image: url("../images/GitHub-Mark-Light-120px-plus.png");
  background-size: contain;
}

.bd-header .navbar-header-items__start {
  width: auto;
}

.bd-header .navbar-header-items__end .navbar-icon-links {
  align-items: center;
}

.bd-header .navbar-nav>.current>.nav-link {
  border-bottom: none;
}

.bd-main .bd-content .bd-article-container {
  max-width: 100%;
}

.bd-main .bd-content .bd-article-container .bd-article {
  padding-left: 0px;
}

.wide-grid {
  padding-left: -calc(var(--sd-gutter-x) * 0.5);
  padding-right: -calc(var(--sd-gutter-x) * 0.5);
}

.wide-grid>.sd-row>.sd-col>.sd-card>.sd-card-body.docutils {
  padding-left: 0px;
  padding-right: 0px;
}

.landing-content>.sd-row:first-child>.sd-col:first-child h1 {
  font-size: 6vmin;
}

.landing-content>.sd-row:first-child>.sd-col:first-child .sd-card-body p {
  display: inline;
  margin-right: 2ch;
}

section .reference.internal {
  text-decoration: none;
}

section .reference.internal code {
  border: none;
  border-bottom: 2px solid;
  border-radius: 0;
}

.hidden {
  display: none !important;
}

.card-header {
  font-size: 1.5em;
}

.preview-gallery .reference.external.image-reference.preview.extref img {
  border: 2px solid;
  border-radius: 5px !important;
}

.sd-card.docutils {
  border: none;
}

.sphinx-bs .sd-card .sd-card-header {
  border: none;
}

.sd-tab-set .sd-tab-content {
  border: none !important;
  border-radius: 0 !important;
  border-top: .125rem solid !important;
}

.features-list {
  margin-bottom: 0 !important;
}

table.named-colors-table {
  width: 50%;
  min-width: 42ch;
  border-collapse: collapse;
  border: 1px solid;
  margin-left: 0;
  margin-bottom: 0.5rem;
}

table.named-colors-table td {
  padding: 0.5em 0.5em;
  line-height: normal;
}

table.named-colors-table.by-name td:first-child {
  text-align: left;
}

table.named-colors-table td:nth-child(n + 1) {
  width: 50%;
}

table.named-colors-table td:nth-child(n + 2) {
  width: 20%;
}

table.named-colors-table td:nth-child(n + 3) {
  width: 30%;
}

table.named-colors-table thead td {
  font-weight: bold;
}

table.named-colors-table tbody td {
  border: none;
  border-left: 1px solid;
  text-align: center;
}

/*
  Dirty trick to get Sphinx to make a link to an API function look like a link to a section of the site.
*/
.features-list .show-ext .sd-card .reference.internal code {
  padding: inherit;
  border-bottom: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.features-list .sd-card img {
  float: left;
  height: 2rem;
  margin-right: 1rem;
}

.features-list .sd-card .sd-card-text img {
  float: none;
  width: 1rem;
  height: 1rem;
  margin: 0;
}

.features-list .sd-card p {
  margin-left: 3rem;
  margin-bottom: 0;
}

.features-list .sd-card p:first-of-type {
  display: table-cell;
  height: 2rem;
  vertical-align: middle;
  margin-left: 0;
  font-size: 1rem;
  font-weight: bold;
}

.explore-your-data-container .sd-card-body .container {
  text-align: center;
}

.explore-your-data-container .sd-card-body .sd-card-text {
  margin-top: 1rem;
  text-align: center;
}

.landing-buttons .sd-card-body {
  padding: 0;
}

p.admonition-title {
  max-width: none;
}

/* Specific id-s */

#preview-gallery-more {
  text-align: center;
  padding: 20px;
}

#key-features, #at-a-glance {
  margin-top: 6rem;
  margin-bottom: 2rem;
}

#quick-start .jupyter_cell {
  margin: 0;
}

#quick-start .jupyter_cell .cell_output .text_html {
  padding: 0;
}

#quick-start a.image-reference {
  display: inline-block;
  padding-top: 1rem;
  padding-right: 2ch;
}

#quick-start a.image-reference img {
  height: 3rem !important;
}

#explore-your-data-with-lets-plot .jupyter_cell {
  margin: 0;
}

#explore-your-data-with-lets-plot .jupyter_cell .cell_output .text_html {
  margin: 0;
}

#color-schemes-flavors>a>img {
  margin-bottom: 1.5rem !important;
}

#charts-page section > h2,
#maps-page section > h3 {
  position: relative;
  padding-left: calc(var(--section-icon-size, 0) * 1.25em);
}

#charts-page section > h2::before,
#maps-page section > h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.075em; /* h2/h3 line-height is 1.15 */
    width: 1em;
    height: 1em;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
}

#api-reference table.autosummary tr td:first-child {
  width:  40%;
  -moz-hyphens:auto;
  -ms-hyphens:auto;
  -webkit-hyphens:auto;
  hyphens:auto;
  word-wrap:break-word;
}

#api-reference code.literal {
  border: none;
}

#named-colors-reference .jupyter_cell {
  margin: 0;
}

#named-colors-reference .jupyter_cell .cell_output .text_html {
  padding: 0;
}

#plot-layout-diagrams a img {
  margin-bottom: 1rem;
}

#plotspec .jupyter_cell .cell_output img {
  width: 600px;
}

#ggsave .jupyter_cell .cell_output img {
  width: 600px;
}

/* Fix image-links - remove extra underscore */

#get-started .reference.external.image-reference {
  display: inline-block;
}

#recent-updates-in-the-gallery .reference.external.image-reference {
  display: inline-block;
}

/* theme-specific */

html[data-theme=dark] .bd-content img {
  background: inherit !important;
  border-radius: inherit !important;
}

html[data-theme=dark] .explore-your-data-container div.cell_output .text_html {
  padding: initial !important;
}

html[data-theme=dark] #aesthetics div.cell_output .text_html {
  padding: initial !important;
}

/*
  Enable icon spacing only for sections that actually have an icon.
  Sections without an icon keep the default --section-icon-size: 0 and get no padding.
*/

#charts-page section#data,
#charts-page section#aesthetics,
#charts-page section#basic-building-blocks,
#charts-page section#discrete,
#charts-page section#contours,
#charts-page section#visualization-of-distribution,
#charts-page section#stats,
#charts-page section#function,
#charts-page section#visualization-of-errors,
#charts-page section#smoothing,
#charts-page section#bivariate-distribution,
#charts-page section#marginal-plots,
#charts-page section#time-series,
#charts-page section#images,
#charts-page section#facets,
#charts-page section#coordinate-systems,
#charts-page section#positional-scales,
#charts-page section#legends-and-guides,
#charts-page section#bistro-plots,
#charts-page section#presentation-options,
#charts-page section#geopandas-shapes,
#charts-page section#grouping-plots,
#maps-page section#quick-start,
#maps-page section#primitives,
#maps-page section#contours,
#maps-page section#bivariate-distribution {
    --section-icon-size: 1;
}

/*
  Charts page icons
*/

html[data-theme=light] #charts-page section#data > h2::before {
    background-image: url("../images/icons/charts/data-light.svg");
}

html[data-theme=dark] #charts-page section#data > h2::before {
    background-image: url("../images/icons/charts/data-dark.svg");
}

html[data-theme=light] #charts-page section#aesthetics > h2::before {
    background-image: url("../images/icons/charts/aesthetics-light.svg");
}

html[data-theme=dark] #charts-page section#aesthetics > h2::before {
    background-image: url("../images/icons/charts/aesthetics-dark.svg");
}

html[data-theme=light] #charts-page section#basic-building-blocks > h2::before {
    background-image: url("../images/icons/charts/basic-building-blocks-light.svg");
}

html[data-theme=dark] #charts-page section#basic-building-blocks > h2::before {
    background-image: url("../images/icons/charts/basic-building-blocks-dark.svg");
}

html[data-theme=light] #charts-page section#discrete > h2::before {
    background-image: url("../images/icons/charts/discrete-light.svg");
}

html[data-theme=dark] #charts-page section#discrete > h2::before {
    background-image: url("../images/icons/charts/discrete-dark.svg");
}

html[data-theme=light] #charts-page section#contours > h2::before {
    background-image: url("../images/icons/charts/contours-light.svg");
}

html[data-theme=dark] #charts-page section#contours > h2::before {
    background-image: url("../images/icons/charts/contours-dark.svg");
}

html[data-theme=light] #charts-page section#visualization-of-distribution > h2::before {
    background-image: url("../images/icons/charts/visualization-of-distribution-light.svg");
}

html[data-theme=dark] #charts-page section#visualization-of-distribution > h2::before {
    background-image: url("../images/icons/charts/visualization-of-distribution-dark.svg");
}

html[data-theme=light] #charts-page section#stats > h2::before {
    background-image: url("../images/icons/charts/stats-light.svg");
}

html[data-theme=dark] #charts-page section#stats > h2::before {
    background-image: url("../images/icons/charts/stats-dark.svg");
}

html[data-theme=light] #charts-page section#function > h2::before {
    background-image: url("../images/icons/charts/function-light.svg");
}

html[data-theme=dark] #charts-page section#function > h2::before {
    background-image: url("../images/icons/charts/function-dark.svg");
}

html[data-theme=light] #charts-page section#visualization-of-errors > h2::before {
    background-image: url("../images/icons/charts/visualization-of-errors-light.svg");
}

html[data-theme=dark] #charts-page section#visualization-of-errors > h2::before {
    background-image: url("../images/icons/charts/visualization-of-errors-dark.svg");
}

html[data-theme=light] #charts-page section#smoothing > h2::before {
    background-image: url("../images/icons/charts/smoothing-light.svg");
}

html[data-theme=dark] #charts-page section#smoothing > h2::before {
    background-image: url("../images/icons/charts/smoothing-dark.svg");
}

html[data-theme=light] #charts-page section#bivariate-distribution > h2::before {
    background-image: url("../images/icons/charts/bivariate-distribution-light.svg");
}

html[data-theme=dark] #charts-page section#bivariate-distribution > h2::before {
    background-image: url("../images/icons/charts/bivariate-distribution-dark.svg");
}

html[data-theme=light] #charts-page section#marginal-plots > h2::before {
    background-image: url("../images/icons/charts/marginal-light.svg");
}

html[data-theme=dark] #charts-page section#marginal-plots > h2::before {
    background-image: url("../images/icons/charts/marginal-dark.svg");
}

html[data-theme=light] #charts-page section#time-series > h2::before {
    background-image: url("../images/icons/charts/time-series-light.svg");
}

html[data-theme=dark] #charts-page section#time-series > h2::before {
    background-image: url("../images/icons/charts/time-series-dark.svg");
}

html[data-theme=light] #charts-page section#images > h2::before {
    background-image: url("../images/icons/charts/images-light.svg");
}

html[data-theme=dark] #charts-page section#images > h2::before {
    background-image: url("../images/icons/charts/images-dark.svg");
}

html[data-theme=light] #charts-page section#facets > h2::before {
    background-image: url("../images/icons/charts/facets-light.svg");
}

html[data-theme=dark] #charts-page section#facets > h2::before {
    background-image: url("../images/icons/charts/facets-dark.svg");
}

html[data-theme=light] #charts-page section#coordinate-systems > h2::before {
    background-image: url("../images/icons/charts/coordinate-systems-light.svg");
}

html[data-theme=dark] #charts-page section#coordinate-systems > h2::before {
    background-image: url("../images/icons/charts/coordinate-systems-dark.svg");
}

html[data-theme=light] #charts-page section#positional-scales > h2::before {
    background-image: url("../images/icons/charts/positional-scales-light.svg");
}

html[data-theme=dark] #charts-page section#positional-scales > h2::before {
    background-image: url("../images/icons/charts/positional-scales-dark.svg");
}

html[data-theme=light] #charts-page section#legends-and-guides > h2::before {
    background-image: url("../images/icons/charts/legend-light.svg");
}

html[data-theme=dark] #charts-page section#legends-and-guides > h2::before {
    background-image: url("../images/icons/charts/legend-dark.svg");
}

html[data-theme=light] #charts-page section#bistro-plots > h2::before {
    background-image: url("../images/icons/charts/bistro-light.svg");
}

html[data-theme=dark] #charts-page section#bistro-plots > h2::before {
    background-image: url("../images/icons/charts/bistro-dark.svg");
}

html[data-theme=light] #charts-page section#geopandas-shapes > h2::before {
    background-image: url("../images/icons/charts/geopandas-light.svg");
}

html[data-theme=dark] #charts-page section#geopandas-shapes > h2::before {
    background-image: url("../images/icons/charts/geopandas-dark.svg");
}

html[data-theme=light] #charts-page section#grouping-plots > h2::before {
    background-image: url("../images/icons/charts/grouping-plots-light.svg");
}

html[data-theme=dark] #charts-page section#grouping-plots > h2::before {
    background-image: url("../images/icons/charts/grouping-plots-dark.svg");
}

html[data-theme=light] #charts-page section#presentation-options > h2::before {
    background-image: url("../images/icons/charts/presentation-options-light.svg");
}

html[data-theme=dark] #charts-page section#presentation-options > h2::before {
    background-image: url("../images/icons/charts/presentation-options-dark.svg");
}

/*
  Maps page icons
*/

html[data-theme=light] #maps-page section#quick-start > h3::before {
    background-image: url("../images/icons/maps/quickstart-light.svg");
}

html[data-theme=dark] #maps-page section#quick-start > h3::before {
    background-image: url("../images/icons/maps/quickstart-dark.svg");
}

html[data-theme=light] #maps-page section#primitives > h3::before {
    background-image: url("../images/icons/maps/layers_primitives-light.svg");
}

html[data-theme=dark] #maps-page section#primitives > h3::before {
    background-image: url("../images/icons/maps/layers_primitives-dark.svg");
}

html[data-theme=light] #maps-page section#contours > h3::before {
    background-image: url("../images/icons/maps/layers_contours-light.svg");
}

html[data-theme=dark] #maps-page section#contours > h3::before {
    background-image: url("../images/icons/maps/layers_contours-dark.svg");
}

html[data-theme=light] #maps-page section#bivariate-distribution > h3::before {
    background-image: url("../images/icons/maps/layers_bivariate-light.svg");
}

html[data-theme=dark] #maps-page section#bivariate-distribution > h3::before {
    background-image: url("../images/icons/maps/layers_bivariate-dark.svg");
}