.markdown code {
    /* background: #f0f0f0; */
    color: navy;
    border-radius: 2px;
    padding: 4px 2px;
}

.markdown .code-block {
    position: relative;
}

/* reset inline code styles for block code */
.markdown pre code {
    /* padding: 0; */
    border-radius: 0;
    display: block;
}

.markdown .code-block pre {
    /* background: #dcdcdc; */
    margin: 8px;
    border: 1px solid #ddd;
    padding: 20px 12px;
    border-radius: 2px;
    overflow-x: auto;
}

.markdown .code-block:hover button {
    display: block;
}

.markdown .code-block button {
    display: none;
    position: absolute;
    right: 8px;
    top: -8px;
    z-index: 1;
}

.markdown blockquote {
    background: #f0f0f0;
    border-left: 6px solid grey;
    padding: 8px
}

.markdown table {
    margin: 12px;
    border-collapse: collapse;
}

.markdown th {
    border: 1px solid grey;
    background: lightgrey;
    padding: 6px;
}

.markdown td {
    border: 1px solid grey;
    padding: 6px;
}

.markdown tr:nth-child(even) {
    background: #f0f0f0;
}

.markdown ins {
    color: #890604
}

.markdown rem {
    color: #198964
}

.toc ul {
    padding: 4px;
}

.toc h3 {
    color: #0057b7;
    border-bottom: 1px dotted grey
}

.toc .H1 {
    list-style-type: none;
    font-weight: 600;
    margin: 4px;
    background: #eee
}

.toc .H2 {
    list-style-type: none;
    font-weight: 600;
    margin: 4px;
}

.toc .H3 {
    margin-left: 2em
}

.toc .H4 {
    margin-left: 4em
}

.toc .active {
    color: #0057b7
}

.toc li {
    cursor: pointer;
}

.toc li:hover {
    background: #f0f0f0
}

/* gemini-generated css below */

/* image centering and sizing when inside a paragraph */
.markdown p img {
    display: block; /* makes the image a block-level element */
    margin: 0 auto; /* centers the image horizontally */
    max-width: 80%; /* limits the image width to 80% of its container */
    max-height: auto; /* ensures the image scales proportionally */
}

/* style for the precisely-targeted image caption text */
.image-caption-text {
    text-align: center; /* center-justifies the caption text */
    font-weight: bold; /* makes the caption text bold */
    margin-top: 10px; /* adds some space above the caption */
    /* you can add other structural styles here */
}