/* Notion-like Styles */
:root {
    --bg-color: #FFFFFF;
    --text-color: #37352F;
    --gray-bg: #F7F6F3;
    --selection-color: #cce9ff;
    --code-bg: #F7F6F3;
    --link-color: #2e86de;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px 40px 20px;
    /* Top padding increased for fixed breadcrumb */
}

/* Headers */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    padding-bottom: 5px;
    border-bottom: 1px solid #E0E0E0;
}

h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Text */
p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

strong {
    font-weight: 600;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(55, 53, 47, 0.4);
    transition: background 0.1s ease;
}

a:hover {
    background: rgba(55, 53, 47, 0.08);
}

.nav-link {
    display: block;
    padding: 12px 16px;
    margin: 8px 0;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #37352F;
    border-bottom: 1px solid #E0E0E0;
    /* Reset default link style */
}

.nav-link:hover {
    background: var(--gray-bg);
    border-color: #D3D1CB;
    transform: translateX(4px);
}

.emoji-icon {
    margin-right: 12px;
}

/* Lists */
ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Code Blocks */
pre {
    background: var(--code-bg);
    padding: 30px;
    border-radius: 4px;
    overflow-x: auto;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

p code,
li code {
    background: rgba(135, 131, 120, 0.15);
    color: #EB5757;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 85%;
}

/* Syntax Highlighting (Simulated for JS) */
.token.comment {
    color: #9c9c9c;
}

.token.keyword {
    color: #d73a49;
    font-weight: bold;
}

/* pink */
.token.string {
    color: #032f62;
}

/* blue */
.token.number {
    color: #005cc5;
}

.token.boolean {
    color: #005cc5;
    font-weight: bold;
}

.token.function {
    color: #6f42c1;
}

/* purple */
.token.property {
    color: #37352F;
}

/* Callout/Info Box */
.callout {
    padding: 16px 16px 16px 12px;
    background: var(--gray-bg);
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.callout-icon {
    margin-right: 12px;
    font-size: 1.25rem;
    line-height: 1.5;
}

.callout-content {
    flex: 1;
    font-size: 1rem;
}

/* Breadcrumb */
/* Breadcrumb (Fixed Top) */
.breadcrumb {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #E0E0E0;
    z-index: 1000;
    font-size: 0.9rem;
    color: #888;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);

    /* Centering trick without extra div */
    display: flex;
    justify-content: center;
    padding: 0;
}

/* Add indentation to match container behavior if we want the link aligned with content */
.breadcrumb-inner {
    /* Not used but kept for reference or removal */
    max-width: 900px;
    margin: 0 auto;
}

.breadcrumb a {
    width: 100%;
    max-width: 900px;
    padding: 12px 20px;
    /* Match container padding */
    color: #666;
    border: none;
    display: flex;
    align-items: center;
    font-weight: 500;
    box-sizing: border-box;
    /* Ensure padding doesn't affect width if set strictly */
}

.breadcrumb a:hover {
    text-decoration: none;
    color: #2e86de;
    background: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
    background: none;
}