#back {
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: transparent;
    color: #e8e8e6;
}

#blueback {
    max-width: 1200px;
    width: 92%;
    margin: 0 auto;
    padding: 50px;
    background: #131316;
    border: 1px solid #242428;
    color: #e8e8e6;
    border-radius: 10px;
}

@media (max-width: 768px) {
    #blueback {
        padding: 20px;
    }
}

/* ============================================================
   Floating "Sections" nav, docked to the middle-left
   ============================================================ */
.notes-floating-nav {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 200;
}

.notes-nav-toggle {
    writing-mode: vertical-rl;
    background: #131316;
    border: 1px solid #242428;
    border-left: none;
    color: #8a8a8a;
    font-family: monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1.1rem 0.55rem;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: color 150ms ease, background 150ms ease;
}

.notes-nav-toggle:hover,
.notes-floating-nav.is-open .notes-nav-toggle {
    color: #e8e8e6;
    background: #1a1a1d;
}

.notes-nav-panel {
    position: absolute;
    top: 50%;
    left: 0;
    margin-left: 2.6rem;
    transform: translateY(-50%) translateX(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    width: 280px;
    max-height: 70vh;
    overflow-y: auto;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #242428;
    border-radius: 8px;
    padding: 0.75rem;
    transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
    scrollbar-width: thin;
    scrollbar-color: #333338 transparent;
}

.notes-nav-panel::-webkit-scrollbar {
    width: 6px;
}

.notes-nav-panel::-webkit-scrollbar-track {
    background: transparent;
}

.notes-nav-panel::-webkit-scrollbar-thumb {
    background: #333338;
    border-radius: 999px;
}

.notes-nav-panel::-webkit-scrollbar-thumb:hover {
    background: #45454c;
}

.notes-floating-nav.is-open .notes-nav-panel {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 180ms ease, transform 180ms ease;
}

.notes-nav-title {
    font-family: monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #5c5c5c;
    margin-bottom: 0.6rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #242428;
}

.notes-nav-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.notes-nav-panel a {
    display: block;
    padding: 0.45rem 0.55rem;
    border-radius: 6px;
    color: #8a8a8a;
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1.3;
    transition: background 150ms ease, color 150ms ease;
}

.notes-nav-panel a:hover {
    background: #1a1a1d;
    color: #e8e8e6;
}

.notes-nav-panel a.is-active {
    color: #5eead4;
    background: rgba(94, 234, 212, 0.08);
}

.notes-nav-group-title {
    font-family: monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5c5c5c;
    margin: 0.85rem 0 0.3rem;
}

.notes-nav-panel ul.notes-nav-overview {
    padding-bottom: 0.6rem;
    margin-bottom: 0.6rem;
    border-bottom: 1px solid #242428;
}

@media (max-width: 700px) {
    .notes-nav-toggle {
        padding: 0.9rem 0.45rem;
        font-size: 0.68rem;
    }

    .notes-nav-panel {
        width: min(78vw, 280px);
    }
}

/* ============================================================
   Note content typography
   ============================================================ */
.note-content {
    text-align: left;
}

.note-content > h1:first-child {
    font-size: 1.8rem;
    color: #e8e8e6;
    margin-bottom: 0.75rem;
}

.note-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.note-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: #16161a;
    border: 1px solid #242428;
    border-radius: 8px;
    padding: 1rem 1.15rem;
    margin-bottom: 1.75rem;
}

.note-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: baseline;
    font-size: 0.85rem;
}

.note-meta-key {
    font-family: monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5c5c5c;
    min-width: 6.5rem;
}

.note-meta-val {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    flex: 1;
}

.note-meta-chip {
    font-family: monospace;
    font-size: 0.78rem;
    color: #c9d1d9;
    background: #1c1c1f;
    border-radius: 4px;
    padding: 0.1em 0.5em;
}

.note-meta-link.note-meta-chip {
    color: #5eead4;
    text-decoration: none;
    background: rgba(94, 234, 212, 0.08);
    border: 1px solid rgba(94, 234, 212, 0.2);
}

.note-meta-link.note-meta-chip:hover {
    background: rgba(94, 234, 212, 0.18);
}

.note-img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #242428;
    margin: 1rem auto;
}

.note-tag {
    font-family: monospace;
    font-size: 0.72rem;
    color: #5eead4;
    background: rgba(94, 234, 212, 0.08);
    border: 1px solid rgba(94, 234, 212, 0.25);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
}

.note-content h2 {
    font-size: 1.5rem;
    color: #5eead4;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #242428;
}

.note-content h3 {
    font-size: 1.15rem;
    color: #6cb4f9;
    text-decoration: none;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.note-content h4,
.note-content h5,
.note-content h6 {
    font-size: 1rem;
    color: #e8e8e6;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.note-content p,
.note-content li {
    color: #c9d1d9;
    line-height: 1.7;
    text-align: justify;
}

.note-content p {
    margin-bottom: 1rem;
}

.note-content ul,
.note-content ol {
    margin: 0 0 1rem 1.25rem;
}

.note-content ul li::marker {
    color: #5eead4;
}

.note-content ol li::marker {
    color: #5eead4;
    font-weight: 600;
}

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

.note-content pre {
    background: #0d0d0f;
    border: 1px solid #242428;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    max-width: 100%;
    margin: 1rem 0;
}

.note-content code {
    font-family: monospace;
    font-size: 0.85rem;
    color: #d63384;
}

.note-content pre code {
    color: #d4d4d4;
    background: transparent;
}

.note-content p code,
.note-content li code {
    background: #1c1c1f;
    padding: 0.1em 0.4em;
    border-radius: 4px;
}

/* Rouge syntax theme — matches the Prism "tomorrow" palette used elsewhere
   on the site, since GitHub Pages' native Jekyll build always highlights
   fenced code blocks server-side with Rouge (not Prism). */
.note-content .highlight .c,
.note-content .highlight .c1,
.note-content .highlight .cm {
    color: #999;
    font-style: italic;
}

.note-content .highlight .k,
.note-content .highlight .kd,
.note-content .highlight .kn,
.note-content .highlight .kp,
.note-content .highlight .kr,
.note-content .highlight .kt,
.note-content .highlight .kv {
    color: #cc99cd;
}

.note-content .highlight .s,
.note-content .highlight .s1,
.note-content .highlight .s2,
.note-content .highlight .sb,
.note-content .highlight .sc,
.note-content .highlight .sd,
.note-content .highlight .se,
.note-content .highlight .sh,
.note-content .highlight .si,
.note-content .highlight .sx,
.note-content .highlight .sr,
.note-content .highlight .ss {
    color: #7ec699;
}

.note-content .highlight .n,
.note-content .highlight .na,
.note-content .highlight .nv,
.note-content .highlight .vc,
.note-content .highlight .vg,
.note-content .highlight .vi {
    color: #d4d4d4;
}

.note-content .highlight .nf,
.note-content .highlight .fm {
    color: #6196cc;
}

.note-content .highlight .nc,
.note-content .highlight .nn,
.note-content .highlight .nb,
.note-content .highlight .bp {
    color: #f8c555;
}

.note-content .highlight .m,
.note-content .highlight .mi,
.note-content .highlight .mf,
.note-content .highlight .mh,
.note-content .highlight .mo,
.note-content .highlight .il {
    color: #f08d49;
}

.note-content .highlight .o,
.note-content .highlight .ow {
    color: #67cdcc;
}

.note-content .highlight .p {
    color: #d4d4d4;
}

.note-content .highlight .err {
    color: #e2777a;
    background: transparent;
}

.note-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
    display: block;
    overflow-x: auto;
}

.note-content th,
.note-content td {
    border: 1px solid #242428;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.note-content th {
    background: #1a1a1d;
    color: #e8e8e6;
}

.note-content blockquote {
    border-left: 3px solid #5eead4;
    padding-left: 1rem;
    color: #8a8a8a;
    margin: 1rem 0;
}

.note-content a {
    color: #5eead4;
    text-decoration: underline;
}

.note-content a:hover {
    color: #e8e8e6;
}

/* ============================================================
   Overview page — note-hierarchy tree
   ============================================================ */
.notes-tree {
    text-align: left;
    font-family: monospace;
    font-size: 0.88rem;
    line-height: 1.9;
    white-space: pre;
    overflow-x: auto;
    background: #0d0d0f;
    border: 1px solid #242428;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 0;
    color: #5c5c5c;
}

.notes-tree-cat {
    color: #5eead4;
    font-weight: 600;
}

.notes-tree a {
    color: #c9d1d9;
    text-decoration: none;
}

.notes-tree a:hover {
    color: #5eead4;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .notes-tree {
        font-size: 0.78rem;
        padding: 1rem;
    }
}

