/* ============================================
   Hugo Book Typography & Layout Styles
   Modern Documentation Website Aesthetic
   ============================================ */

/* === Document Typography Variables === */
:root {
    /* Base colors - clean documentation palette */
    --doc-bg: #fafbfc;
    --doc-bg-secondary: #ffffff;
    --doc-text: #1a1a2e;
    --doc-text-secondary: #5c6370;
    --doc-text-muted: #9ca3af;
    --doc-border: #e5e7eb;
    --doc-accent: #3b82f6;
    --doc-accent-hover: #2563eb;
    --doc-accent-soft: rgba(59, 130, 246, 0.08);

    /* Typography scale */
    --doc-font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    --doc-font-serif: 'Noto Serif SC', 'Source Han Serif SC', Georgia, serif;
    --doc-font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Monaco, monospace;

    /* Content width */
    --doc-content-max-width: 800px;
    --doc-line-height: 1.75;
    --doc-font-size-base: 16px;
}

.dark {
    --doc-bg: #0f1117;
    --doc-bg-secondary: #16181d;
    --doc-text: #e5e7eb;
    --doc-text-secondary: #9ca3af;
    --doc-text-muted: #6b7280;
    --doc-border: #2d2d35;
    --doc-accent: #60a5fa;
    --doc-accent-hover: #93c5fd;
    --doc-accent-soft: rgba(96, 165, 250, 0.1);
}

/* === Page Layout === */
.book-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
}

.book-post {
    background: var(--doc-bg-secondary);
    border-radius: 16px;
    padding: 48px 56px;
    margin-bottom: 32px;
    border: 1px solid var(--doc-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* === Typography Base === */
.book-post-content,
.markdown-inner {
    font-family: var(--doc-font-sans);
    font-size: var(--doc-font-size-base);
    line-height: var(--doc-line-height);
    color: var(--doc-text);
}

/* === Headings === */
.book-post-content h1,
.book-post-content h2,
.book-post-content h3,
.book-post-content h4,
.book-post-content h5,
.book-post-content h6,
.markdown-inner h1,
.markdown-inner h2,
.markdown-inner h3,
.markdown-inner h4,
.markdown-inner h5,
.markdown-inner h6 {
    font-family: var(--doc-font-serif);
    font-weight: 600;
    color: var(--doc-text);
    margin-top: 2em;
    margin-bottom: 0.75em;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.book-post-content h1 { font-size: 2.25rem; margin-top: 0; }
.book-post-content h2 { font-size: 1.75rem; padding-bottom: 0.5em; border-bottom: 1px solid var(--doc-border); }
.book-post-content h3 { font-size: 1.375rem; }
.book-post-content h4 { font-size: 1.125rem; }
.book-post-content h5 { font-size: 1rem; }
.book-post-content h6 { font-size: 0.875rem; color: var(--doc-text-secondary); }

/* Heading anchor links */
.book-post-content h1 a.anchor,
.book-post-content h2 a.anchor,
.book-post-content h3 a.anchor,
.book-post-content h4 a.anchor,
.book-post-content h5 a.anchor,
.book-post-content h6 a.anchor {
    color: inherit;
    text-decoration: none;
    opacity: 0;
    margin-left: 0.5em;
    font-size: 0.85em;
    transition: opacity 0.2s;
}

.book-post-content h1:hover a.anchor,
.book-post-content h2:hover a.anchor,
.book-post-content h3:hover a.anchor,
.book-post-content h4:hover a.anchor,
.book-post-content h5:hover a.anchor,
.book-post-content h6:hover a.anchor {
    opacity: 0.5;
}

/* === Paragraphs & Text === */
.book-post-content p,
.markdown-inner p {
    margin-bottom: 1.25em;
    color: var(--doc-text);
}

.book-post-content strong,
.markdown-inner strong {
    font-weight: 600;
    color: var(--doc-text);
}

.book-post-content em,
.markdown-inner em {
    font-style: italic;
}

/* === Links === */
.book-post-content a,
.markdown-inner a {
    color: var(--doc-accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.book-post-content a:hover,
.markdown-inner a:hover {
    color: var(--doc-accent-hover);
    border-bottom-color: var(--doc-accent-hover);
}

/* === Lists === */
.book-post-content ul,
.book-post-content ol,
.markdown-inner ul,
.markdown-inner ol {
    margin-bottom: 1.25em;
    padding-left: 1.5em;
}

.book-post-content li,
.markdown-inner li {
    margin-bottom: 0.5em;
    line-height: var(--doc-line-height);
}

.book-post-content ul ul,
.book-post-content ol ol,
.book-post-content ul ol,
.book-post-content ol ul,
.markdown-inner ul ul,
.markdown-inner ol ol,
.markdown-inner ul ol,
.markdown-inner ol ul {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.book-post-content ul li::marker,
.markdown-inner ul li::marker {
    color: var(--doc-accent);
}

.book-post-content ol li::marker,
.markdown-inner ol li::marker {
    color: var(--doc-accent);
    font-weight: 600;
}

/* === Blockquotes === */
.book-post-content blockquote,
.markdown-inner blockquote {
    margin: 1.5em 0;
    padding: 16px 24px;
    background: var(--doc-accent-soft);
    border-left: 4px solid var(--doc-accent);
    border-radius: 0 8px 8px 0;
    color: var(--doc-text-secondary);
    font-style: normal;
}

.book-post-content blockquote p:last-child,
.markdown-inner blockquote p:last-child {
    margin-bottom: 0;
}

.book-post-content blockquote cite,
.markdown-inner blockquote cite {
    display: block;
    margin-top: 0.5em;
    font-size: 0.875em;
    font-style: normal;
    color: var(--doc-text-muted);
}

/* === Tables === */
.book-post-content table,
.markdown-inner table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.9375em;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--doc-border);
}

.book-post-content thead,
.markdown-inner thead {
    background: var(--doc-bg);
}

.book-post-content th,
.markdown-inner th {
    font-weight: 600;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 2px solid var(--doc-border);
    color: var(--doc-text);
}

.book-post-content td,
.markdown-inner td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--doc-border);
    vertical-align: top;
}

.book-post-content tr:last-child td,
.markdown-inner tr:last-child td {
    border-bottom: none;
}

.book-post-content tr:hover td,
.markdown-inner tr:hover td {
    background: var(--doc-accent-soft);
}

/* === Horizontal Rules === */
.book-post-content hr,
.markdown-inner hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--doc-border), transparent);
    margin: 3em 0;
}

/* === Architecture Diagram === */
.architecture-diagram {
    background: var(--doc-bg);
    border: 1px solid var(--doc-border);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    overflow-x: auto;
    font-family: var(--doc-font-mono);
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--doc-text);
}

.architecture-diagram pre {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.architecture-diagram code {
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
}

/* === Images === */
.book-post-content img,
.markdown-inner img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* === Post Meta (date, author, etc.) === */
.book-post-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--doc-text-muted);
    margin-bottom: 1.5em;
}

.book-post-date img {
    width: 1em;
    height: 1em;
    margin: 0;
    box-shadow: none;
}

/* === Post Title === */
.book-post h1,
.book-post-title {
    font-family: var(--doc-font-serif);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

/* === Post Meta (date) === */
.book-post-meta {
    font-size: 0.875rem;
    color: var(--doc-text-muted);
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--doc-border);
}

/* === Post Section Card === */
.book-post-section {
    background: transparent;
    padding: 0;
    margin-bottom: 32px;
}

/* Content spacing after meta */
.book-post-section .book-post-content {
    margin-top: 0;
}

/* === Book Header (page title area) === */
.book-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--doc-border);
}

.book-header h3 {
    font-family: var(--doc-font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--doc-text);
    margin: 0;
}

/* === Book Footer === */
.book-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--doc-border);
    font-size: 0.875rem;
    color: var(--doc-text-muted);
}

.book-footer a {
    color: var(--doc-accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.book-footer a:hover {
    color: var(--doc-accent-hover);
}

.book-footer img {
    width: 1em;
    height: 1em;
    margin: 0;
    box-shadow: none;
}

/* === Prev/Next Navigation === */
.book-post-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--doc-border);
}

.book-post-nav a {
    flex: 1;
    padding: 16px 20px;
    background: var(--doc-bg);
    border: 1px solid var(--doc-border);
    border-radius: 10px;
    color: var(--doc-text);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
}

.book-post-nav a:hover {
    background: var(--doc-accent-soft);
    border-color: var(--doc-accent);
    transform: translateY(-2px);
}

.book-post-nav a span {
    display: block;
    font-size: 0.75rem;
    color: var(--doc-text-muted);
    margin-bottom: 4px;
}

/* === Selection === */
::selection {
    background: var(--doc-accent-soft);
    color: var(--doc-text);
}

/* === Focus States === */
.book-post-content a:focus-visible,
.markdown-inner a:focus-visible {
    outline: 2px solid var(--doc-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ============================================
   Hugo Book Menu & TOC Styles
   ============================================ */

/* === Shared Menu & TOC Variables === */
:root {
    --menu-toc-bg: rgba(255, 255, 255, 0.7);
    --menu-toc-border: rgba(0, 0, 0, 0.06);
    --menu-toc-hover: rgba(37, 99, 235, 0.08);
    --menu-toc-active: #2563eb;
    --menu-toc-text: #64748b;
    --menu-toc-text-hover: #1a1a2e;
    --menu-toc-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.dark {
    --menu-toc-bg: rgba(30, 30, 35, 0.8);
    --menu-toc-border: rgba(255, 255, 255, 0.08);
    --menu-toc-hover: rgba(96, 165, 250, 0.1);
    --menu-toc-active: #60a5fa;
    --menu-toc-text: #8b8b96;
    --menu-toc-text-hover: #e8e8ed;
    --menu-toc-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* === Book Menu Content === */
.book-menu-content {
    background: var(--menu-toc-bg) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;
    padding: 20px !important;
    margin: 8px 0;
}

.book-menu-content nav > ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.book-menu-content nav > ul > li > a,
.book-menu-content nav > ul > li > span {
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--menu-toc-text);
    padding: 12px 16px;
    margin-bottom: 4px;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
    display: block;
    line-height: 1.4;
}

.book-menu-content nav > ul > li > a:hover {
    background: var(--menu-toc-hover);
    color: var(--menu-toc-text-hover);
    transform: translateX(4px);
}

.book-menu-content nav > ul > li > a.active {
    background: linear-gradient(135deg, var(--menu-toc-active), #1d4ed8);
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.book-menu-content nav ul ul a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--menu-toc-text);
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.15s ease;
    border-left: 2px solid transparent;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
    display: block;
    line-height: 1.4;
}

.book-menu-content nav ul ul a:hover {
    background: var(--menu-toc-hover);
    color: var(--menu-toc-text-hover);
    border-left-color: var(--menu-toc-active);
    transform: translateX(4px);
}

.book-menu-content nav ul ul a.active {
    color: var(--menu-toc-active);
    border-left-color: var(--menu-toc-active);
    font-weight: 500;
}

/* === Book TOC Content === */
.book-toc-content {
    background: var(--menu-toc-bg) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;
    padding: 20px !important;
    margin: 8px 0;
}

.book-toc-content nav > ul > li:first-child {
    margin-top: 0;
}

.book-toc-content nav > ul > li > a {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--menu-toc-text);
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
    line-height: 1.4;
}

.book-toc-content nav > ul > li > a::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--menu-toc-text);
    opacity: 0.4;
    transition: all 0.15s ease;
}

.book-toc-content nav > ul > li > a:hover {
    background: var(--menu-toc-hover);
    color: var(--menu-toc-text-hover);
}

.book-toc-content nav > ul > li > a:hover::before {
    background: var(--menu-toc-active);
    opacity: 1;
}

.book-toc-content nav ul ul {
    padding-inline-start: 16px;
}

.book-toc-content nav ul ul a {
    font-size: 0.75rem;
    color: var(--menu-toc-text);
    opacity: 0.8;
    padding: 4px 12px;
}

.book-toc-content nav ul ul a:hover {
    opacity: 1;
    color: var(--menu-toc-active);
}

/* === Scrollbar for Menu & TOC === */
.book-menu-content::-webkit-scrollbar,
.book-toc-content::-webkit-scrollbar {
    width: 4px;
}

.book-menu-content::-webkit-scrollbar-track,
.book-toc-content::-webkit-scrollbar-track {
    background: transparent;
}

.book-menu-content::-webkit-scrollbar-thumb,
.book-toc-content::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.2);
    border-radius: 2px;
}

.book-menu-content::-webkit-scrollbar-thumb:hover,
.book-toc-content::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.4);
}

/* === Brand/Logo Area === */
.book-brand {
    padding: 8px 16px 16px !important;
    margin-bottom: 16px !important;
    border-bottom: 1px solid var(--menu-toc-border);
}

.book-brand a {
    font-family: 'Noto Serif SC', Georgia, serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--menu-toc-text-hover) !important;
    letter-spacing: -0.01em;
    transition: all 0.2s ease;
}

.book-brand a:hover {
    color: var(--menu-toc-active) !important;
    transform: scale(1.02);
}

/* === Search Box === */
.book-search {
    margin: 12px 0 !important;
}

.book-search input {
    background: var(--menu-toc-bg) !important;
    border: 1px solid var(--menu-toc-border) !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 0.875rem;
    color: var(--menu-toc-text-hover);
    transition: all 0.2s ease;
}

.book-search input:focus {
    border-color: var(--menu-toc-active) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.book-search input::placeholder {
    color: var(--menu-toc-text);
    opacity: 0.6;
}

/* === Section Headers === */
.book-section-flat {
    margin: 16px 0 !important;
}

.book-section-flat > a,
.book-section-flat > span {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--menu-toc-text) !important;
    padding: 8px 16px !important;
    opacity: 0.7;
}

/* === Animations === */
.book-menu-content nav > ul > li > a,
.book-menu-content nav ul ul a {
    animation: fadeInSlide 0.3s ease forwards;
    opacity: 0;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.book-menu-content nav > ul > li:nth-child(1) a { animation-delay: 0.05s; }
.book-menu-content nav > ul > li:nth-child(2) a { animation-delay: 0.1s; }
.book-menu-content nav > ul > li:nth-child(3) a { animation-delay: 0.15s; }
.book-menu-content nav > ul > li:nth-child(4) a { animation-delay: 0.2s; }
.book-menu-content nav > ul > li:nth-child(5) a { animation-delay: 0.25s; }
.book-menu-content nav > ul > li:nth-child(6) a { animation-delay: 0.3s; }

/* ============================================
   Hugo Book Code Block Styles
   (Preserved from original)
   ============================================ */

/* === Code Block Container === */
.book-post-content pre,
.book-post-content .highlight,
.markdown-inner pre,
.markdown-inner .highlight,
.chroma {
    background: #1e1e2e !important;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 0;
    margin: 28px 0;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-post-content pre:hover,
.book-post-content .highlight:hover,
.markdown-inner pre:hover,
.markdown-inner .highlight:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
}

/* === Code Text === */
.book-post-content pre code,
.book-post-content .highlight code,
.markdown-inner pre code,
.markdown-inner .highlight code,
.chroma code {
    display: block;
    padding: 20px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 13.5px;
    line-height: 1.7;
    color: #cdd6f4;
    background: transparent !important;
    overflow-x: auto;
}

/* === Inline Code === */
.book-post-content code:not(pre code),
.markdown-inner code:not(pre code) {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875em;
    padding: 3px 8px;
    background: rgba(137, 180, 250, 0.12);
    border: 1px solid rgba(137, 180, 250, 0.2);
    border-radius: 4px;
    color: #89b4fa;
}

/* === Scrollbar Styling === */
.book-post-content pre code::-webkit-scrollbar,
.book-post-content .highlight code::-webkit-scrollbar,
.chroma code::-webkit-scrollbar {
    height: 6px;
}

.book-post-content pre code::-webkit-scrollbar-track,
.book-post-content .highlight code::-webkit-scrollbar-track,
.chroma code::-webkit-scrollbar-track {
    background: transparent;
}

.book-post-content pre code::-webkit-scrollbar-thumb,
.book-post-content .highlight code::-webkit-scrollbar-thumb,
.chroma code::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.book-post-content pre code::-webkit-scrollbar-thumb:hover,
.book-post-content .highlight code::-webkit-scrollbar-thumb:hover,
.chroma code::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* === Selection on Code === */
.book-post-content pre ::selection,
.book-post-content .highlight ::selection,
.book-post-content pre code::selection,
.book-post-content .highlight code::selection,
.chroma ::selection {
    background: rgba(137, 180, 250, 0.3) !important;
    color: #cdd6f4 !important;
}

/* === Chroma Syntax Highlighting (Catppuccin Mocha inspired) === */
.chroma .hl { background: rgba(203, 166, 247, 0.15); display: block; }
.chroma .k { color: #cba6f7; }
.chroma .kn { color: #cba6f7; }
.chroma .o { color: #89dceb; }
.chroma .c { color: #6c7086; font-style: italic; }
.chroma .ch { color: #6c7086; font-style: italic; }
.chroma .cm { color: #6c7086; font-style: italic; }
.chroma .cp { color: #f38ba8; }
.chroma .cpf { color: #f38ba8; }
.chroma .c1 { color: #6c7086; font-style: italic; }
.chroma .cs { color: #6c7086; font-style: italic; }
.chroma .gd { color: #f38ba8; }
.chroma .ge { font-style: italic; }
.chroma .ges { font-style: italic; }
.chroma .gh { color: #89b4fa; font-weight: normal; }
.chroma .gi { color: #a6e3a1; }
.chroma .go { color: #bac2de; }
.chroma .gp { color: #89b4fa; font-weight: normal; }
.chroma .gr { color: #f38ba8; }
.chroma .gs { font-weight: bold; }
.chroma .gt { color: #f38ba8; }
.chroma .h { color: #89b4fa; }
.chroma .nd { color: #f9e2af; }
.chroma .nf { color: #89b4fa; }
.chroma .fm { color: #89b4fa; }
.chroma .py { color: #89b4fa; }
.chroma .nb { color: #89b4fa; }
.chroma .bp { color: #89b4fa; }
.chroma .nc { color: #f9e2af; font-weight: bold; }
.chroma .nn { color: #f9e2af; }
.chroma .no { color: #f38ba8; }
.chroma .nv { color: #fab387; }
.chroma .vc { color: #fab387; }
.chroma .vg { color: #fab387; }
.chroma .vi { color: #fab387; }
.chroma .vm { color: #fab387; }
.chroma .l { color: #fab387; }
.chroma .ld { color: #a6e3a1; }
.chroma .m { color: #fab387; }
.chroma .mb { color: #fab387; }
.chroma .mf { color: #fab387; }
.chroma .mh { color: #fab387; }
.chroma .mi { color: #fab387; }
.chroma .il { color: #fab387; }
.chroma .mo { color: #fab387; }
.chroma .sa { color: #a6e3a1; }
.chroma .sb { color: #a6e3a1; }
.chroma .sc { color: #a6e3a1; }
.chroma .dl { color: #a6e3a1; }
.chroma .sd { color: #a6e3a1; font-style: italic; }
.chroma .s2 { color: #a6e3a1; }
.chroma .se { color: #f9e2af; font-weight: bold; }
.chroma .sh { color: #a6e3a1; }
.chroma .si { color: #f9e2af; }
.chroma .sx { color: #a6e3a1; }
.chroma .sr { color: #a6e3a1; }
.chroma .s1 { color: #a6e3a1; }
.chroma .ss { color: #a6e3a1; }
.chroma .ta { color: #f9e2af; }
.chroma .bs { color: #a6e3a1; }
.chroma .p { color: #cdd6f4; }
.chroma .w { color: #6c7086; }
.chroma .nt { color: #cba6f7; }
.chroma .nx { color: #89b4fa; }
.chroma .ni { color: #f38ba8; }
.chroma .na { color: #89b4fa; }
.chroma .ne { color: #f9e2af; }
.chroma .nl { color: #cdd6f4; }
.chroma .py { color: #cdd6f4; }

/* === Responsive === */
@media (max-width: 1024px) {
    .book-post {
        padding: 32px 40px;
    }
}

@media (max-width: 768px) {
    .book-page {
        padding: 16px;
    }

    .book-post {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .book-post h1 {
        font-size: 1.875rem;
    }

    .book-post-content h1 { font-size: 1.75rem; }
    .book-post-content h2 { font-size: 1.5rem; }
    .book-post-content h3 { font-size: 1.25rem; }

    .book-post-content pre code,
    .book-post-content .highlight code,
    .markdown-inner pre code,
    .markdown-inner .highlight code,
    .chroma code {
        padding: 16px;
        font-size: 12.5px;
    }
}
