/* Notebook-specific styling layered on top of the site's base styles.css */

.notebook-container {
    max-width: 900px;
}

.notebook-container h1 {
    font-size: 2em;
    margin-top: 0;
}

.notebook-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin: 4px 0 20px;
}

.notebook-links img {
    height: 28px;
    display: block;
}

.notebook-links a {
    font-size: 0.9em;
}

.landmark-paper {
    color: #d4a017;
    margin-left: 2px;
}

.references-list {
    padding-left: 0;
    list-style: none;
}

.references-list li {
    margin-bottom: 12px;
    padding-left: 1.5em;
    text-indent: -1.5em;
}

.lesson-nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
}

.lesson-nav-prev,
.lesson-nav-next {
    flex: 1 1 45%;
    min-width: 0;
}

.lesson-nav-prev {
    text-align: left;
}

.lesson-nav-next {
    text-align: right;
}

.lesson-nav a {
    font-weight: 500;
}

.notebook-container .jp-Cell,
.notebook-container .cell {
    margin-bottom: 1.2em;
}

/* Hide the "In [1]:" / "Out[1]:" execution-count prompts */
.notebook-container .prompt,
.notebook-container .jp-InputPrompt,
.notebook-container .jp-OutputPrompt {
    display: none;
}

/* Hide heading permalink markers (¶); reveal on hover */
.notebook-container .anchor-link {
    visibility: hidden;
    text-decoration: none;
    margin-left: 6px;
}

.notebook-container h1:hover .anchor-link,
.notebook-container h2:hover .anchor-link,
.notebook-container h3:hover .anchor-link,
.notebook-container h4:hover .anchor-link {
    visibility: visible;
}

.notebook-container .jp-InputArea-editor,
.notebook-container div.input_area {
    background-color: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 10px 14px;
    overflow-x: auto;
}

.notebook-container pre {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9em;
    line-height: 1.5;
}

/* Inline `code` spans in prose -- excludes code already inside a <pre> block */
.notebook-container :not(pre) > code {
    background-color: #f6f8fa;
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}

.notebook-container .jp-OutputArea-output img,
.notebook-container .output_area img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
}

.notebook-container .jp-RenderedText pre,
.notebook-container .output_text pre {
    background-color: #ffffff;
    border-left: 3px solid #3498db;
    padding: 8px 12px;
}

.notebook-container table {
    border-collapse: collapse;
    margin: 16px 0;
    width: 100%;
}

.notebook-container th,
.notebook-container td {
    padding: 10px 18px;
    border: 1px solid #e1e4e8;
    text-align: left;
    line-height: 1.8;
}

.notebook-container th {
    background-color: #f6f8fa;
}

.image-attribution {
    font-size: 0.8em;
    color: #888;
    text-align: right;
}
