/* CCS book customizations. Keep minimal until the visual design settles. */

.bd-content .cell_output {
  overflow-x: auto;
}

.highlight, pre {
  font-size: 0.94rem;
}

/* PyData can render the book root (the cover, index.ipynb) as a separate home-link
   above the first part; the logo already links to the cover. */
.bd-sidebar-primary nav.bd-links .bd-sidenav__home-link {
    display: none !important;
}

/* Previous/Next links sit at the bottom of the window on short pages such as the cover
   and front matter (Press docs/UI.md, Previous/Next links). */
.bd-article-container > .prev-next-footer {
    margin-top: auto;
}

/* Title page catalog card (Press docs/UI.md, Title Page Catalog Card). */
.tp-catalog-card {
    --card-line: 1.75rem;
    background-color: #fbf6e6;
    background-image:
        linear-gradient(to bottom, transparent calc(2.6rem - 1px), #d9534f calc(2.6rem - 1px), #d9534f 2.6rem, transparent 2.6rem),
        repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--card-line) - 1px), #c9d8ea calc(var(--card-line) - 1px), #c9d8ea var(--card-line));
    background-position: 0 0, 0 2.6rem;
    border: 1px solid #e4dcc2;
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(40, 32, 12, 0.14), 0 1px 2px rgba(40, 32, 12, 0.12);
    color: #2b2a26;
    display: grid;
    font-family: "Courier New", Courier, "Liberation Mono", monospace;
    font-size: 0.85rem; /* body text size (Press docs/UI.md) */
    gap: 0 1.25rem;
    grid-template-columns: 5.5rem 1fr;
    line-height: var(--card-line);
    margin: 2rem auto 2.5rem;
    max-width: 38rem;
    padding: 2.65rem 1.5rem 3rem 1.25rem;
    position: relative;
}

.tp-catalog-card p {
    margin: 0;
}

.tp-catalog-card a {
    color: #1d4f9a;
}

.tp-catalog-card__call {
    line-height: var(--card-line);
    white-space: nowrap;
}

.tp-catalog-card__author {
    font-weight: 700;
}

.tp-catalog-card__line {
    text-indent: 0;
}

.tp-catalog-card__tracings {
    margin-top: var(--card-line) !important;
}

.tp-catalog-card__hole {
    background: var(--pst-color-background, #ffffff);
    border: 1px solid #d8cfb3;
    border-radius: 50%;
    bottom: 0.9rem;
    box-shadow: inset 0 1px 2px rgba(40, 32, 12, 0.25);
    height: 1.1rem;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 1.1rem;
}

@media (max-width: 560px) {
    .tp-catalog-card {
        grid-template-columns: 1fr;
        padding: 2.65rem 1rem 3rem;
    }

    .tp-catalog-card__call br {
        display: none;
    }

    .tp-catalog-card__call {
        white-space: normal;
        word-spacing: 0.4rem;
    }
}
