/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');

/* ============================================
   COLOR PALETTE
   ============================================ */
:root {
    --terracotta: rgb(191, 87, 56);          /* Primary accent - 4.53:1 contrast */
    --terracotta-dark: rgb(168, 75, 48);     /* For text/high-contrast - 5.5:1 */
    --teal-blue: rgb(0, 104, 132);           /* Links - 6.34:1 contrast */
    --charcoal: rgb(60, 60, 60);
    --warm-accent: rgb(213, 166, 76);
    --text-primary: #333;
    --text-secondary: #525252;
    --text-light: #737373;
    --off-white: rgb(248, 246, 242);         /* Warm neutral background */

    /* Legacy aliases for backwards compatibility */
    --clay-red: var(--terracotta);
}

/* ============================================
   BASE TYPOGRAPHY
   ============================================ */
html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Open Sans', Helvetica, sans-serif;
    color: var(--text-primary);
    background-color: var(--off-white);
    line-height: 1;
    margin: 0;
    padding: 0.6em;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

* {
    box-sizing: border-box;
}

/* Prevent overflow on mobile */
@media only screen and (max-width: 1024px) {
    * {
        max-width: 100%;
    }

    /* Allow specific elements to be wider */
    html, body, div, article, section, main, header, footer, nav, ul, ol {
        max-width: none;
    }
}

.serif-font {
    font-family: Georgia, Times, serif;
}

.meta-serif {
    font-family: ff-meta-serif-web-pro, Georgia, Cambria, "Times New Roman", Times, serif;
}

p {
    font-family: ff-meta-serif-web-pro, Georgia, Cambria, "Times New Roman", Times, serif;
    line-height: 1.45em;
    font-size: 1.1em;
    color: var(--text-primary);
    margin: 0.7em 0 0 0;
}

/* ============================================
   MAIN CONTENT TYPOGRAPHY
   ============================================ */
.main-content {
    max-width: 72rem;
    margin: 0 auto;
}

.main-content p,
.main-content li {
    font-family: ff-meta-serif-web-pro, Georgia, Cambria, "Times New Roman", Times, serif;
    line-height: 1.45em;
    font-size: 1.1em;
    color: var(--text-primary);
    margin: 0.7em 0 0 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.main-content h1 {
    font-family: Georgia, Times, serif;
    font-size: 3em;
    color: var(--charcoal);
    font-weight: normal;
    margin-top: 1em;
    text-align: center;
}

.main-content h2 {
    font-family: Georgia, Times, serif;
    font-size: 1.8em;
    color: var(--text-secondary);
    font-weight: normal;
    line-height: 1em;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    border-bottom: 2px solid var(--terracotta);
    padding-bottom: 0.3em;
    display: inline-block;
}

.main-content h3 {
    font-family: 'Open Sans', Helvetica, sans-serif;
    font-size: 1.3em;
    color: var(--charcoal);
    font-weight: normal;
    margin-top: 1.5em;
}

.main-content h4 {
    font-family: 'Open Sans', Helvetica, sans-serif;
    color: var(--text-secondary);
    font-size: 1.1em;
    font-weight: bold;
    /* line-height: 2em; */
    padding-top: 1em;
    margin-left: 1em;
}

.main-content a {
    color: var(--teal-blue);
    text-decoration: none;
    border: 0;
    border-bottom-width: 1px;
    border-bottom-style: dotted;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.main-content a:visited {
    color: var(--teal-blue);
}

.main-content a:hover {
    color: var(--terracotta);
}

.main-content strong {
    font-weight: bold;
}

.main-content em {
    font-style: italic;
}

.main-content blockquote {
    font-family: ff-meta-serif-web-pro, Georgia, Cambria, "Times New Roman", Times, serif;
    line-height: 1.45em;
    margin: 0.7em 0 0 0;
    color: var(--text-primary);
    padding-left: 1em;
    margin-left: 1em;
    border-left: 3px solid var(--text-secondary);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media only screen and (max-width: 1024px) {
    .main-content blockquote {
        margin-left: 0.5em;
        padding-left: 0.75em;
    }
}

.main-content ul {
    font-family: ff-meta-serif-web-pro, Georgia, Cambria, "Times New Roman", Times, serif;
    list-style-type: disc;
    padding: 0.1em 0 0 1.1em;
    margin-top: 0.5em;
}

.main-content ol {
    font-family: ff-meta-serif-web-pro, Georgia, Cambria, "Times New Roman", Times, serif;
    list-style-type: decimal;
    padding: 0.1em 0 0 1.1em;
    margin-top: 0.5em;
}

.main-content li {
    line-height: 1.45em;
    padding: 0.2em 0 0 0;
    color: var(--text-primary);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
    background-color: #fff;
    padding-top: 2em;
    padding-bottom: 1em;
}

header h1 {
    font-family: Georgia, Times, serif;
    font-size: 2.5em;
    font-weight: normal;
    color: var(--charcoal);
    letter-spacing: 0.05em;
    text-align: center;
    margin: 0;
    border-bottom: none;
    padding-bottom: 0;
    display: block;
}

nav {
    border-bottom: 1px solid #e5e5e5;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
}

nav .nav-container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.nav-link {
    color: var(--charcoal);
    text-decoration: none;
    padding-left: 1em;
    padding-right: 1em;
    letter-spacing: 0.1em;
    font-size: 0.9em;
    border: 0;
    transition: color 0.2s;
}

.nav-link:visited {
    color: var(--text-primary);
}

.nav-link:hover {
    color: var(--terracotta);
    /* text-decoration: underline; */
    border-bottom: solid thin;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    font-family: Georgia, Times, serif;
    font-size: 1.8em;
    color: var(--text-secondary);
    font-weight: normal;
    line-height: 1em;
    margin-top: 2em;
    margin-bottom: 0.5em;
    border-bottom: 2px solid var(--terracotta);
    padding-bottom: 0.3em;
    display: inline-block;
}

/* ============================================
   TABLES (for contact info, etc.)
   ============================================ */
table {
    width: 100%;
    margin: 1.5em 0;
    border-collapse: collapse;
}

td {
    font-family: ff-meta-serif-web-pro, Georgia, Cambria, "Times New Roman", Times, serif;
    line-height: 1.45em;
    font-size: 1.1em;
    color: var(--text-primary);
    padding: 0.3em 1em 0.3em 0;
    vertical-align: top;
}

td:first-child {
    font-family: 'Open Sans', Helvetica, sans-serif;
    color: var(--text-secondary);
    font-size: 0.9em;
    letter-spacing: 0.05em;
    width: 120px;
    white-space: nowrap;
}

/* Override meta-serif default for special elements */
.sans-serif {
    font-family: 'Open Sans', Helvetica, sans-serif !important;
}

/* ============================================
   SIDENOTES (jekyll-sidenotes plugin)
   ============================================ */
.sidenote,
.marginnote,
.lsn,
.rsn {
    font-family: ff-meta-serif-web-pro, Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 0.9em;
    line-height: 1.45em;
    color: var(--text-primary);
    border-left: 2px solid var(--terracotta);
    padding-left: 1em;
}

.sidenote-number,
.sidenote-toggle, .sidenote-number {
    color: var(--terracotta);
    font-weight: bold;
    cursor: pointer;
}
.sidenote-toggle {
    display:none;
}

/* Desktop sidenotes in right margin */
@media (min-width: 1024px) {
    .sidenote,
    .marginnote,
    .lsn,
    .rsn {
        float: right;
        clear: right;
        margin-right: -45%;
        width: 40%;
        margin-top: 0;
        margin-bottom: 0.7em;
        font-size: 0.9em;
        line-height: 1.45em;
        vertical-align: baseline;
        position: relative;
    }

}

/* Mobile inline sidenotes */
@media (max-width: 1023px) {
    .sidenote,
    .marginnote,
    .lsn,
    .rsn{
        display: block;
        margin: 0.7em 0 0 1em;
        border-left: 2px solid var(--terracotta);
        padding-left: 0.5em;
        font-size: 0.85em;
    }

    label.margin-toggle:not(.sidenote-number) {
        display: none;
    }
}

/* Sidenote toggle for mobile */
input.margin-toggle {
    display: none;
}

label.margin-toggle:not(.sidenote-number) {
    display: inline;
}

/* ============================================
   MATHJAX / MATH EQUATIONS
   ============================================ */
.math-container {
    margin: 2em 0;
    padding: 1.5em;
    background-color: #fafafa;
    border-left: 4px solid var(--terracotta);
    position: relative;
    overflow: hidden;
}

.math-container-blue {
    border-left-color: var(--teal-blue);
}

.math-caption {
    text-align: center;
    margin-top: 0.75em;
    font-size: 0.9em;
    color: var(--text-secondary);
    font-style: italic;
    font-family: ff-meta-serif-web-pro, Georgia, Cambria, "Times New Roman", Times, serif;
}

/* MathJax elements */
.MathJax_Display {
    margin: 0.7em 0;
}

/* Inline math spacing */
.MathJax {
    margin: 0 0.1em;
}

/* ============================================
   IMAGES WITH CUBIST OVERLAYS
   ============================================ */
.image-container {
    margin: 2em 0;
    position: relative;
    overflow: visible;
}

.image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 2em 0 0.5em 0;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border: 0;
}

/* Cubist overlay style 1: Terracotta + teal blue */
.image-wrapper.overlay-1::before,
.cubist-overlay-1::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 80px;
    height: 80px;
    background-color: var(--terracotta);
    opacity: 0.25;
    z-index: 1;
    pointer-events: none;
}

.image-wrapper.overlay-1::after,
.cubist-overlay-1::after {
    content: '';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 60px;
    height: 60px;
    border: 3px solid var(--teal-blue);
    opacity: 0.3;
    transform: rotate(12deg);
    z-index: 1;
    pointer-events: none;
}

/* Cubist overlay style 2: Warm accent + ink blue */
.image-wrapper.overlay-2::before,
.cubist-overlay-2::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -12px;
    width: 70px;
    height: 70px;
    background-color: var(--warm-accent);
    opacity: 0.2;
    transform: rotate(-8deg);
    z-index: 1;
    pointer-events: none;
}

.image-wrapper.overlay-2::after,
.cubist-overlay-2::after {
    content: '';
    position: absolute;
    bottom: 15px;
    right: -10px;
    width: 50px;
    height: 50px;
    background-color: var(--teal-blue);
    opacity: 0.2;
    transform: rotate(25deg);
    z-index: 1;
    pointer-events: none;
}

.image-caption {
    display: block;
    text-align: center;
    margin-top: 0.75em;
    margin-bottom: 0;
    font-size: 0.9em;
    color: var(--text-secondary);
    font-style: italic;
    font-family: ff-meta-serif-web-pro, Georgia, Cambria, "Times New Roman", Times, serif;
}

/* For markdown images with classes */
p > img.overlay-1,
p > img.overlay-2 {
    position: relative;
    z-index: 0;
    margin: 2em 0 0.5em 0;
    display: block;
}

/* ============================================
   KOLAM PATTERN SVG
   ============================================ */
.kolam-divider {
    width: 100%;
    padding: 1.5em 0;
    display: flex;
    justify-content: center;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    font-family: 'Open Sans', Helvetica, sans-serif;
    font-size: 0.8em;
    letter-spacing: 0.2em;
    text-transform: lowercase;
    color: var(--text-primary);
    padding: 3em 1.5em;
    margin-top: 4em;
    border-top: 1px solid #e5e5e5;
    background-color: #fff;
}

footer p {
    font-family: 'Open Sans', Helvetica, sans-serif;
    font-size: 0.8em;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    padding: 0;
    margin: 0;
    text-align: center;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

footer a:hover {
    color: var(--terracotta);
}

footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5em;
    margin-top: 1em;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.border-primary-1 {
    border-color: var(--terracotta);
}

.border-primary-2 {
    border-color: var(--teal-blue);
}

.bg-primary-1 {
    background-color: var(--terracotta);
}

.bg-primary-2 {
    background-color: var(--teal-blue);
}

.bg-accent {
    background-color: var(--warm-accent);
}

.text-primary-1 {
    color: var(--terracotta);
}

.text-primary-2 {
    color: var(--teal-blue);
}

.text-charcoal {
    color: var(--charcoal);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media only screen and (max-width: 1024px) {
    body {
        padding: 0.5em;
    }

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

    article, .main-content, .tufte-grid, .tufte-grid > * {
        max-width: 100vw;
        overflow-x: hidden;
    }

    header .max-w-5xl,
    .max-w-5xl {
        max-width: 100vw !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    nav .nav-container {
        padding: 1rem 0.5rem;
        max-width: 100vw;
    }

    header h1 {
        font-size: 2em;
    }

    .main-content h1 {
        font-size: 2.5em;
    }

    .main-content h2 {
        font-size: 1.5em;
    }

    .main-content h3 {
        font-size: 1.2em;
    }

    .main-content p,
    .main-content li {
        font-size: 1em;
        line-height: 1.5em;
    }

    .nav-link {
        font-size: 0.9em;
        padding-left: 0.5em;
        padding-right: 0.5em;
    }

    .px-6 {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}

@media only screen and (max-width: 480px) {
    body {
        padding: 0.3em;
    }

    header .max-w-5xl,
    .max-w-5xl {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    nav .nav-container {
        padding: 0.75rem 0.25rem;
    }

    header h1 {
        font-size: 1.5em;
    }

    .main-content h1 {
        font-size: 2em;
    }

    .main-content h2 {
        font-size: 1.3em;
    }

    .main-content h3 {
        font-size: 1.1em;
    }

    .main-content p {
        font-size: 1em;
    }

    .main-content ul,
    .main-content ol {
        list-style-position: inside;
        font-size: 100%;
        padding: 0.5em;
        margin: 0;
    }

    .main-content li {
        margin: 0;
    }

    .nav-link {
        font-size: 0.85em;
        padding-left: 0.4em;
        padding-right: 0.4em;
    }

    .px-6 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .py-8 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .image-wrapper.overlay-1::before,
    .image-wrapper.overlay-2::before,
    .cubist-overlay-1::before,
    .cubist-overlay-2::before {
        width: 50px;
        height: 50px;
    }

    .image-wrapper.overlay-1::after,
    .image-wrapper.overlay-2::after,
    .cubist-overlay-1::after,
    .cubist-overlay-2::after {
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    body {
        font-family: Helvetica, sans-serif;
        font-size: 14px;
        background: #fff;
        color: #000;
    }

    a {
        text-decoration: none;
    }

    nav, footer {
        display: none;
    }

    .sidenote,
    .marginnote {
        display: block;
        float: none;
        margin: 0.7em 0;
        width: 100%;
        border-left: 2px solid var(--terracotta);
        padding-left: 1em;
    }
}


/* ============================================
   TUFTE THREE-COLUMN GRID LAYOUT
   ============================================ */

/* Container for the three-column layout */
.tufte-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Desktop: left margin, content (45em), right margin for sidenotes */
@media (min-width: 1024px) {
    .tufte-grid {
        grid-template-columns: 1fr 45em 1fr;
    }

    .tufte-grid > *:nth-child(1) {
        /* Left margin - empty */
    }

    .tufte-grid > *:nth-child(2) {
        /* Main content */
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .tufte-grid > *:nth-child(3) {
        /* Right margin - sidenotes */
        font-size: 0.9em;
        padding-top: 0.5rem;
    }
}

/* Mobile: single column, hide empty margins */
@media (max-width: 1023px) {
    .tufte-grid {
        gap: 1rem;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .tufte-grid > *:nth-child(1),
    .tufte-grid > *:nth-child(3) {
        display: none;
    }

    .tufte-grid > *:nth-child(2) {
        max-width: 100%;
        overflow-x: hidden;
        padding: 0;
    }
}

/* Utility classes */
.hidden-lg {
    display: block;
}

@media (min-width: 1024px) {
    .hidden-lg {
        display: none;
    }
}

.lg-block {
    display: none;
}

@media (min-width: 1024px) {
    .lg-block {
        display: block;
    }
}

/* Max width utilities */
.max-w-5xl {
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
}

@media only screen and (max-width: 1024px) {
    .max-w-5xl {
        max-width: 100%;
    }
}

/* Spacing utilities */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-8 {
    margin-top: 2rem;
}

.gap-8 {
    gap: 2rem;
}

.text-center {
    text-align: center;
}

.text-sm {
    font-size: 0.875rem;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.transform {
    transform: translateZ(0);
}

.rotate-12 {
    transform: rotate(12deg);
}

.-rotate-6 {
    transform: rotate(-6deg);
}

.rotate-45 {
    transform: rotate(45deg);
}

.opacity-15 {
    opacity: 0.15;
}

.opacity-12 {
    opacity: 0.12;
}

.opacity-20 {
    opacity: 0.20;
}

.-z-10 {
    z-index: -10;
}

.w-32 {
    width: 8rem;
}

.h-32 {
    height: 8rem;
}

.w-24 {
    width: 6rem;
}

.h-24 {
    height: 6rem;
}

.w-20 {
    width: 5rem;
}

.h-20 {
    height: 5rem;
}

.top-4 {
    top: 1rem;
}

.top-16 {
    top: 4rem;
}

.top-32 {
    top: 8rem;
}

.right-10 {
    right: 2.5rem;
}

.right-32 {
    right: 8rem;
}

.right-20 {
    right: 5rem;
}

/* ============================================
   INSET IMAGES (Right-aligned floats)
   ============================================ */

.inset-image {
    float: right;
    width: 300px;
    margin: 0 0 1em 1.5em;
    clear: right;
}

.inset-image img {
    width: 100%;
    height: auto;
    border: 1px solid #e5e5e5;
}

.inset-image-small {
    float: right;
    width: 200px;
    margin: 0 0 1em 1.5em;
    clear: right;
}

.inset-image-small img {
    width: 100%;
    height: auto;
    border: 1px solid #e5e5e5;
}

.inset-image-large {
    float: right;
    width: 400px;
    margin: 0 0 1em 1.5em;
    clear: right;
}

.inset-image-large img {
    width: 100%;
    height: auto;
    border: 1px solid #e5e5e5;
}

/* Full-width image that spans all columns (Tufte-style) */
.inset-image-full {
    width: 100%;
    margin: 2em 0;
    clear: both;
}

@media (min-width: 1024px) {
    .inset-image-full {
        /* Break out of the grid column and span all 3 columns */
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

.inset-image-full img {
    width: 100%;
    height: auto;
    border: 1px solid #e5e5e5;
    display: block;
}

/* Optional: Add subtle cubist accent to inset images */
.inset-image.with-accent,
.inset-image-small.with-accent,
.inset-image-large.with-accent,
.inset-image-full.with-accent {
    position: relative;
}

.inset-image.with-accent::after,
.inset-image-small.with-accent::after,
.inset-image-large.with-accent::after,
.inset-image-full.with-accent::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 40px;
    height: 40px;
    background-color: var(--terracotta);
    opacity: 0.15;
    transform: rotate(12deg);
    z-index: -1;
}

/* Clear floats after paragraphs with inset images */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Mobile: make inset images full width */
@media (max-width: 768px) {
    .inset-image,
    .inset-image-small,
    .inset-image-large {
        float: none;
        width: 100%;
        margin: 1em 0;
    }

    .inset-image-full {
        margin: 1.5em 0;
    }
}

/* ============================================
   PAPER PAGES
   ============================================ */

.papers {
    list-style: none;
    padding: 0;
    margin: 0;
}

.papers li {
    list-style-type: disc;
    margin-left: 1.5em;
    margin-bottom: 1em;
    line-height: 1.45em;
}

#paperAuthors {
    color: #333;
    padding-left: 1em;
    font-style: italic;
}


#paperDetails {
    /* @extend .plain-text;     */
    padding-left: 1em;
    /* text-align: center; */
}

#paperAbstract {
    text-align: justify;
    text-justify: newspaper
}

#bib {
    border: 1px solid #333;
    padding-left: 1em;
    width: auto;
    overflow-x: scroll;
}

.extra {
    color: #933;
    font-style: italic;
}

/* ============================================
   FOLDABLE NOTE COMPONENT
   ============================================ */
.foldable-note {
    margin: 1.5rem 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.foldable-note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.25rem;
    background: var(--off-white);
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
    border-bottom: 1px solid transparent;
}

.foldable-note-header:hover {
    background: #f0ede8;
}

.foldable-note.open .foldable-note-header {
    border-bottom-color: #ddd;
}

.foldable-note-title {
    font-family: 'Open Sans', Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.foldable-note-toggle {
    font-size: 0.875rem;
    color: var(--text-light);
    transition: transform 0.2s;
    line-height: 1;
}

.foldable-note.open .foldable-note-toggle {
    transform: rotate(180deg);
}

.foldable-note-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.foldable-note.open .foldable-note-content {
    max-height: 5000px;
    transition: max-height 0.5s ease-in;
}

.foldable-note-inner {
    padding: 1.25rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.foldable-note-inner p:first-child {
    margin-top: 0;
}

.foldable-note-inner p {
    margin: 0.75rem 0;
}

.foldable-note-inner ul,
.foldable-note-inner ol {
    padding-left: 1.5rem;
    margin: 0.75rem 0;
}

.foldable-note-inner li {
    margin: 0.35rem 0;
}

.foldable-note-inner code {
    font-size: 0.9em;
    background: #f5f5f5;
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

.foldable-note-inner pre {
    margin: 1rem 0;
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
}

.foldable-note-inner pre code {
    background: none;
    padding: 0;
}
