#sidebar {
    --tw-translate-x: -100%;
}

#menu-close-icon {
    display: none;
}

#menu-open:checked~#sidebar {
    --tw-translate-x: 0;
}

/* Button + icon state driven by a class we toggle from JS */
#mobile-menu-button {
    /* ...existing label styles from Tailwind classes... */
}

#mobile-menu-button.is-open {
    background-color: rgba(31, 41, 55, var(--tw-bg-opacity)); /* solid dark bg */
}

#mobile-menu-button.is-open #menu-open-icon {
    display: none;
}

#mobile-menu-button.is-open #menu-close-icon {
    display: block;
}

@media (min-width: 768px) {
    #sidebar {
        --tw-translate-x: 0;
    }
}

.sidebar-link {
    margin-top: .35rem;
    justify-content: flex-end;
    border-radius: .125rem;
    padding: .25rem .45rem;        
    font-family: Roboto Condensed, sans-serif;
    font-size: 1.2rem;
    font-weight: bolder;
}

.icon-container {
    font-size: 2rem;
    margin: 10px;
}        

#sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

#menu-open:checked ~ #sidebar {
    transform: translateX(0);
}

/* Change to 1280px (Tailwind's default "xl" => 1280) */
@media (min-width: 1280px) {
    #sidebar {
        transform: translateX(0);
    }
    #menu-open:checked ~ #sidebar {
        transform: translateX(0);
    }
}

.author {
    font-family: "Roboto", sans-serif;
}

.font-heading {
    font-family: "Roboto", serif;
    font-style: normal;
}

.content-text {
    font-family: "Noto Serif", serif;
    font-optical-sizing: auto;
    font-size: 1.05rem;
    font-style: normal;
    line-height: 1.75rem;
}

.content-text a {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 5px;
    text-decoration-thickness: 0.8px;
    transition: color 0.15s, text-decoration-color 0.15s;
}
.content-text a:hover {
    text-decoration-style: solid;
}

.markdown > blockquote, .markdown > p {
    margin-bottom: 1.2rem;
    width: 100%;
    --tw-text-opacity: 1;
    color: rgb(23 23 23/var(--tw-text-opacity));
}

.markdown > div > figcaption {
    font-size: 0.9rem;
    white-space: nowrap;
    line-height: 1.4rem;
    --tw-text-opacity: 1;
    /* color: rgb(115 115 115/var(--tw-text-opacity)); */
}

.markdown > div > img {
    margin-top: 0;
    margin-bottom: 1rem;
}
img {
    max-width: 100%;
    height: auto;
}  

.content-text sup {
    /* color: #ff0000fc; */
    margin-left: 0.2rem;
}

.reference-detail {
    font-size: 0.8rem;
    line-height: 1.2rem;
}

.reference-detail p {
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.ref {
    position: inherit !important;
    color: #ff0000fc;
}

.aref:hover {
    background-color: #333;
    color: #fff;
}

.hovered-ref {
    background-color: #333;
    color: #fff;
}

pre {
    overflow: auto; /* Scrollable if content overflows */
    font-size: .875rem!important;
    line-height: 1.26rem;
}

.content-text > p > code {
    font-size: 1.05rem!important;
    line-height: 1.26rem;
    background-color: #efefef;
    padding: 0.1rem 0.3rem;
}

.drop-cap {
    float: left;
    font-size: 4rem;
    line-height: 0.75;
    font-weight: 700;
    font-family: "Noto Serif", serif;
    margin-right: 0.18em;
    margin-top: 0.08em;
    color: #262B2E;
}

@media (min-width: 1024px) {
    .markdown > blockquote, .markdown > p {
        width: 75%;
    }
}

.content-text h1,
.content-text h2,
.content-text h3,
.content-text h4,
.content-text h5,
.content-text h6 {
    font-family: "Roboto", serif;
    font-weight: bold;
    margin-top: 2.2rem;
    margin-bottom: 1.1rem;
    line-height: 1.2;
}

.content-text h1 { font-size: 2.4rem; }
.content-text h2 { font-size: 2rem; }
.content-text h3 { font-size: 1.7rem; }
.content-text h4 { font-size: 1.4rem; }
.content-text h5 { font-size: 1.2rem; }
.content-text h6 { font-size: 1rem; }

.content-text ol,
.content-text ul {
    margin-left: 2rem;
    margin-bottom: 1.2rem;
    padding-left: 1.2rem;
}

.content-text ol {
    list-style-type: decimal;
}

.content-text ul {
    list-style-type: disc;
}

.content-text li {
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.content-text blockquote {
    border-left: 4px solid #ddd;
    padding-left: 1rem;
    color: #444;
    margin: 1.5rem 0;
    font-style: italic;
}

.content-text blockquote p {
    margin-top: 1.15em;
    margin-bottom: 1.15em;    
}

.content-text pre {
    background: #282c34;
    color: #abb2bf;
    margin-bottom: 1.2rem;
    overflow-x: auto;
}

.content-text pre code {
    display: block;
    overflow-x: auto;
    padding: 1em;
    font-family: "Fira Mono", "Consolas", monospace;
    font-size: 1em;
}

.content-text img {
    display: block;
    max-width: 100%;
    height: auto;
}

.content-text table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.content-text th,
.content-text td {
    border: 1px solid #e5e5e5;
    padding: 0.6rem 1rem;
    text-align: left;
}

.content-text th {
    background: #f3f3f3;
    font-weight: bold;
}

.content-text hr {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 2rem 0;
}

iframe {
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
}

.blog-title-link {
    text-decoration: none;
}

.blog-title-link:hover .blog-title {
    text-decoration: underline;
    text-decoration-color: #e6e6e6;
    text-decoration-line: underline;
    text-decoration-skip-ink: none;
    text-decoration-thickness: .5rem;
    text-underline-offset: -.22rem;
}

