:root {
    --shell-text-color: var(--text-color, #000000);
    --shell-muted-color: var(--muted-color, #6b7280);
    --shell-border-color: var(--border-color, rgba(0, 0, 0, 0.82));
}

html.dark {
    --shell-text-color: var(--text-color, #f5f5f5);
    --shell-muted-color: var(--muted-color, #a1a1aa);
    --shell-border-color: var(--border-color, rgba(255, 255, 255, 0.32));
}

.site-shell-header {
    border-bottom: 1px solid var(--shell-border-color);
    margin-bottom: 0.95rem;
}

body.site-shell-page.page-home .site-shell-header {
    margin-bottom: 0;
}

.site-shell-header .site-path {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    text-align: left;
}

.site-shell-header .site-path-line {
    display: block;
    max-width: 100%;
    color: var(--shell-text-color) !important;
    text-decoration: none;
}

.site-shell-header .site-path a:hover {
    text-decoration: underline;
}

body.site-shell-page.page-section .site-shell-header .site-path-line:first-child,
body.site-shell-page.page-detail .site-shell-header .site-path-line:not(.site-path-current) {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.15;
    color: var(--shell-muted-color) !important;
}

body.site-shell-page.page-section .site-shell-header .site-path-current,
body.site-shell-page.page-detail .site-shell-header .site-path-current {
    font-size: clamp(1.85rem, 5vw, 2.5rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
}

.site-root-tree {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-root-label {
    margin: 0;
    font-size: clamp(1.95rem, 5vw, 2.45rem);
    font-weight: 500;
    line-height: 1.05;
    font-family: ui-monospace, SFMono-Regular, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.site-root-label a {
    color: var(--shell-text-color) !important;
    text-decoration: none;
}

.site-root-label a:hover {
    text-decoration: underline;
}

.site-tree-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.22rem;
    margin-top: 0.42rem;
    font-family: ui-monospace, SFMono-Regular, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.site-tree-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--shell-muted-color) !important;
    font-size: 1.02rem;
    text-decoration: none;
}

.site-tree-link::before {
    content: "├──";
    flex: 0 0 auto;
}

.site-tree-link:last-child::before {
    content: "└──";
}

.site-tree-link:hover {
    color: var(--shell-text-color) !important;
}

.site-tree-link:hover .site-tree-label {
    text-decoration: underline;
}

body.site-shell-page.section-contact .page-intro {
    padding-top: 0.25rem !important;
}

body.site-shell-page.section-project.projects-home .page-intro {
    padding-top: 0.25rem !important;
}

body.site-shell-page.page-detail.project-detail .project-header {
    padding-top: 0.25rem;
}

body.site-shell-page.section-blog main,
body.site-shell-page.page-detail.section-blog main {
    padding-top: 0 !important;
}

body.site-shell-page.section-blog main > .mx-auto,
body.site-shell-page.page-detail.section-blog main > .mx-auto {
    padding-top: 0.25rem;
}

body.site-shell-page.page-detail.section-blog main > .mx-auto > .space-y-1.my-10 {
    margin-top: 1rem !important;
}

@media screen and (max-width: 600px) {
    body.site-shell-page.page-section .site-shell-header .site-path-current,
    body.site-shell-page.page-detail .site-shell-header .site-path-current {
        font-size: clamp(1.65rem, 8vw, 2rem);
    }

    body.site-shell-page.page-section .site-shell-header .site-path-line:first-child,
    body.site-shell-page.page-detail .site-shell-header .site-path-line:not(.site-path-current) {
        font-size: 1rem;
    }

    .site-root-label {
        font-size: clamp(1.8rem, 8vw, 2.1rem);
    }

    .site-tree-link {
        font-size: 0.98rem;
    }
}
