/* =========================================================
   OLD SLOP - NOT USED ANYMORE WTF WAS THAT - SEE APP.CSS
   ========================================================= */

/* ========== 0) Font & Theme tokens ========== */
@font-face {
    font-family: 'VT323';
    src: url('../fonts/VT323-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --blue-deep: #001f7a;
    --blue: #0057ff;
    --blue-lite: #3da0ff;
    --blue-glow: #6cc0ff;
    --border: #0c1440;
    /* layout */
    --sidebar-w: 240px;
    --content-pad: 32px 24px 150px;
    /* z-index map */
    --z-skyline: 100;
    --z-scanlines: 8000;
    --z-content: 400;
    --z-backdrop: 900;
    --z-sidebar: 1000;
    --z-modal: 9000;
}

/* ========== 1) Base ========== */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    background: #0a0d14;
    color: #00ff00;
    font-family: 'VT323',monospace;
    background-image: repeating-linear-gradient(to right, rgba(18,99,255,.18) 0 2px, transparent 2px 56px), repeating-linear-gradient(to bottom, rgba(18,99,255,.18) 0 2px, transparent 2px 56px);
}

a {
    color: #7dffb3;
}

    a:hover {
        color: #ffb86b;
    }

.hidden {
    display: none !important;
}

.frame-sharp {
    border-radius: 0;
}

.section-title {
    margin: 0 0 8px;
}

/* ========== 2) Layout (grid + content) ========== */
.layout {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    min-height: 100vh;
}

.content {
    position: relative;
    z-index: var(--z-content);
    padding: var(--content-pad);
}

    .content h1,
    .content h2 {
        color: #e8f00f;
        text-shadow: 0 0 4px rgba(123,255,179,.25);
        margin-top: 0;
    }

/* ========== 3) Sidebar (drawer / sticky) ========== */
.sidebar-toggle {
    position: fixed;
    left: 10px;
    top: 10px;
    z-index: calc(var(--z-sidebar)+1);
    padding: 6px 10px;
    border: 1px solid var(--border);
    background: linear-gradient(to bottom,var(--blue-lite) 0%,var(--blue) 40%,var(--blue-deep) 100%);
    color: #e6f0ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -2px 0 rgba(0,0,0,.25);
}

    .sidebar-toggle:active {
        transform: translateY(1px);
    }

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: var(--z-backdrop);
}

.sidebar-frame {
    background: #0b1220;
    box-shadow: 2px 0 0 rgba(0,0,0,.5);
    overflow: auto;
}

/* Mobile */
@media (max-width:960px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar-frame {
        position: fixed;
        top: 0;
        left: 0;
        height: 100dvh;
        width: var(--sidebar-w);
        max-width: 85vw;
        border-right: 1px solid #1a2236;
        transform: translateX(-100%);
        transition: transform .20s ease-out;
        z-index: var(--z-sidebar);
    }

        .sidebar-frame.is-open {
            transform: translateX(0);
        }

    body.sidebar-open {
        overflow: hidden;
    }
}

/* Desktop */
@media (min-width:961px) {
    .sidebar-backdrop, .sidebar-toggle {
        display: none !important;
    }

    .sidebar-frame {
        position: sticky;
        top: 0;
        height: 100vh;
        width: var(--sidebar-w);
        transform: none;
        box-shadow: none;
        z-index: var(--z-sidebar);
    }
}

.sidebar {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    border-right: 1px solid #1a2236;
    background: #0b0f1a;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #1a2236;
}

.logo {
    margin: 0 0 16px;
    font-size: 28px;
    color: #7dffb3;
    text-shadow: 0 0 6px #7dffb3;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-link {
    display: block;
    text-decoration: none;
    color: #e6f0ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    background: linear-gradient(to bottom,var(--blue-lite) 0%,var(--blue) 40%,var(--blue-deep) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -2px 0 rgba(0,0,0,.25), 0 0 8px rgba(108,192,255,.25);
    transition: transform .06s ease, box-shadow .12s ease, filter .12s ease;
    border-radius: 2px;
}

    .nav-link:hover, .nav-link:focus {
        filter: saturate(1.2);
        box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -2px 0 rgba(0,0,0,.35), 0 0 12px rgba(108,192,255,.45);
        transform: translateY(-1px);
        outline: none;
    }

.menu .nav-link:target {
    background: #1c6dff;
}

/* ========== 4) FX: Skyline + Scanlines ========== */
body::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 110px;
    background: linear-gradient(to top, #0a0d14 0, rgba(10,13,20,.85) 35%, rgba(10,13,20,0) 80%), url("../img/skyline.gif") repeat-x bottom center;
    image-rendering: pixelated;
    filter: saturate(.9) brightness(.9);
    border-top: 2px solid #0a2ea8;
    pointer-events: none;
    z-index: var(--z-skyline);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,.45) 0 1px, transparent 1px 3px);
    z-index: var(--z-scanlines);
}

/* ========== 5) Panels & Home layout ========== */
.status {
    margin: 8px 0 16px;
    padding: 6px 8px;
    background: #0b0f1a;
    border: 1px solid #1a2236;
    color: #7dffb3;
}

.home-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) 420px;
    gap: 16px;
    align-items: start;
}

.col-left, .col-right {
    display: grid;
    gap: 16px;
    align-content: start;
}

@media (max-width:980px) {
    .home-grid {
        grid-template-columns: 1fr;
    }

    .col-right {
        order: 2;
    }

    .col-left {
        order: 1;
    }
}

.panel {
    background: #0b0f1a;
    border: 1px solid #1a2236;
    padding: 10px 12px;
    min-height: 0;
}

    .panel.scrollable {
        max-height: var(--panel-h,320px);
        overflow: auto;
    }

    .panel.h-240 {
        --panel-h: 240px;
    }

    .panel.h-320 {
        --panel-h: 320px;
    }

    .panel.h-480 {
        --panel-h: 480px;
    }

.updates-list {
    list-style: none;
    padding: 0;
    margin: 6px 0;
}

    .updates-list li {
        padding: 4px 0;
        border-bottom: 1px solid #1a2236;
    }

        .updates-list li span {
            color: #7dffb3;
            margin-right: 8px;
        }

.term p {
    margin: 2px 0;
    color: #7dffb3;
}

/* ========== 6) Music player (global) ========== */
.audio-panel {
    max-width: 460px;
    background: #0b0f1a;
    border: 1px solid #1a2236;
    padding: 10px 12px;
    margin: 12px 0;
}

.btn-90s {
    appearance: none;
    border: 1px solid var(--border);
    padding: 6px 10px;
    cursor: pointer;
    background: linear-gradient(to bottom,var(--blue-lite) 0%,var(--blue) 40%,var(--blue-deep) 100%);
    color: #e6f0ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font: inherit;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -2px 0 rgba(0,0,0,.25);
}

    .btn-90s:hover {
        filter: saturate(1.15);
    }

    .btn-90s:active {
        transform: translateY(1px);
    }

.time-90s {
    color: #7dffb3;
    margin-left: 8px;
    min-width: 120px;
    display: inline-block;
}

.progress-90s {
    height: 6px;
    background: #0c2246;
    margin: 8px 0;
    position: relative;
    cursor: pointer;
}

    .progress-90s > span {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 0;
        background: #3da0ff;
    }

.playlist-90s {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    border: 1px solid #1a2236;
    max-height: 180px;
    overflow: auto;
}

    .playlist-90s li {
        padding: 6px 8px;
        border-top: 1px solid #1a2236;
        cursor: pointer;
    }

        .playlist-90s li.is-current, .playlist-90s li.active {
            background: #112042;
            color: #7dffb3;
        }

/* ========== 7) Guestbook ========== */
.input-90s {
    background: #0b0f1a;
    border: 1px solid #1a2236;
    color: #7dffb3;
    font: inherit;
    padding: 6px 8px;
    width: 100%;
}

.guestbook .row {
    margin: 8px 0;
}

.gb-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .gb-list li {
        border-bottom: 1px solid #1a2236;
        padding: 8px 0;
    }

    .gb-list .meta {
        color: #7dffb3;
        margin-bottom: 2px;
    }

    .gb-list .msg {
        white-space: pre-wrap;
    }

/* ========== 8) Eco — masonry + modal ========== */
.panel--eco {
    --eco-col-width: 260px;
    --eco-col-gap: 16px;
}

    .panel--eco h2 {
        margin: 0 0 10px;
    }

    .panel--eco .cards-ur {
        display: block;
        column-width: var(--eco-col-width);
        column-gap: var(--eco-col-gap);
        column-fill: balance;
        margin-top: 8px;
    }

    .panel--eco .card-ur {
        display: inline-block;
        width: 100%;
        margin: 0 0 12px;
        break-inside: avoid;
        background: #0b0f1a;
        border: 1px solid #1a2236;
        padding: 10px 12px;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
        transition: box-shadow .12s, transform .06s, border-color .12s;
    }

        .panel--eco .card-ur:hover {
            box-shadow: 0 0 12px rgba(108,192,255,.25), inset 0 1px 0 rgba(255,255,255,.08);
            transform: translateY(-1px);
            border-color: #23306a;
        }

        .panel--eco .card-ur .n {
            display: block;
            color: #7dffb3;
            letter-spacing: 1px;
            margin-bottom: 4px;
        }

        .panel--eco .card-ur b {
            color: #e8f00f;
            text-shadow: 0 0 4px rgba(123,255,179,.2);
            display: block;
            margin-bottom: 4px;
        }

        .panel--eco .card-ur p {
            margin: 0;
            line-height: 1.25;
            white-space: pre-wrap;
        }

@media (max-width:700px) {
    .panel--eco .cards-ur {
        column-width: 100%;
    }
}

.eco-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease;
}

    .eco-backdrop.is-open {
        opacity: 1;
        visibility: visible;
    }

.eco-modal {
    width: min(760px, calc(100% - 32px));
    max-height: calc(100dvh - 120px);
    margin: 0;
    padding: 14px;
    border: 1px solid #1a2236;
    background: #0b0f1a;
    color: #7dffb3;
    box-shadow: 0 20px 60px rgba(0,0,0,.6), inset 0 0 0 1px #0c1440;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-48%);
    z-index: calc(var(--z-modal)+1);
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease, transform .15s ease;
}

    .eco-modal[open] {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%,-50%);
    }

.eco-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 8px;
}

.eco-modal .modal-title {
    margin: 0;
    color: #e8f00f;
    text-shadow: 0 0 4px rgba(123,255,179,.25);
}

.eco-modal .modal-body {
    overflow: auto;
    max-height: calc(100dvh - 180px);
    white-space: pre-wrap;
}

/* ========== 9) Skyblog ========== */
.skyblog {
    margin-top: 10px;
}

.skyblog-list {
    display: grid;
    gap: 24px;
}

.sb-card {
    position: relative;
    border: 1px solid #2d3769;
    border-radius: 14px;
    background: linear-gradient(180deg,#11162a,#0e1330);
    padding: 14px;
    box-shadow: 0 10px 28px rgba(0,0,0,.35);
}

    .sb-card.is-alt {
        background: linear-gradient(180deg,#0f1530,#0b112a);
    }

    .sb-card.is-focus {
        outline: 2px solid #ff71d4;
        box-shadow: 0 0 0 3px rgba(255,113,212,.25), 0 14px 40px rgba(0,0,0,.55);
    }

.sb-head {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

.sb-avatar {
    border-radius: 10px;
    image-rendering: pixelated;
    box-shadow: 0 0 0 2px #1a2244, 0 0 0 4px #0b0f1a;
}

.sb-title {
    margin: 0;
    font-size: 22px;
    color: #7cf2ff;
    text-shadow: 0 0 6px rgba(124,242,255,.35);
}

.sb-meta {
    color: #a6b2d1;
    font-size: 14px;
    letter-spacing: .3px;
}

.sb-slug {
    color: #da9cff;
    text-decoration: none;
}

.sb-body {
    color: #9dffb0;
    line-height: 1.6;
    max-width: 70ch;
}

    .sb-body p {
        margin: 8px 0;
    }

    .sb-body code {
        padding: 0 4px;
        border-radius: 6px;
        background: rgba(124,242,255,.08);
        border: 1px solid rgba(124,242,255,.2);
    }

.sb-teeth {
    height: 8px;
    margin: 10px -14px 8px;
    background: linear-gradient(135deg, transparent 6px, #1a2244 0) left, linear-gradient(-135deg, transparent 6px, #1a2244 0) right;
    background-size: 16px 8px;
    background-repeat: repeat-x;
    filter: drop-shadow(0 1px 0 rgba(0,0,0,.35));
}

.sb-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sb-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.sb-tag {
    font-size: 12px;
    color: #a6b2d1;
    border: 1px dashed #2d3769;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(13,19,45,.6);
}

.sb-actions .btn-90s {
    padding: 4px 12px;
    font-weight: 600;
}

.sb-actions .sb-like[aria-pressed="true"] {
    outline: 2px solid #ff71d4;
    box-shadow: 0 0 10px rgba(255,113,212,.35);
}

/* TOC (skyblog) */
.sb-toc {
    position: sticky;
    top: 12px;
    z-index: 10;
    margin-bottom: 16px;
    background: linear-gradient(180deg,#11162a,#0e1330);
    border: 1px solid #2d3769;
    border-radius: 14px;
    padding: 12px;
}

@media (max-width:820px) {
    .sb-toc {
        position: static;
    }
}

.sb-toc-title {
    margin: 0 0 8px;
    font-size: 22px;
    color: #7cf2ff;
    text-shadow: 0 0 6px rgba(124,242,255,.35);
}

.sb-toc-list {
    display: grid;
    gap: 8px;
    border-top: 1px dashed #2d3769;
    padding-top: 6px;
}

.sb-toc-link {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: baseline;
    padding: 8px 10px;
    border-radius: 12px;
    text-decoration: none;
    color: #e6f0ff;
    background: linear-gradient(180deg, rgba(124,242,255,.05), rgba(255,113,212,.05));
    border: 1px dashed #2d3769;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,.04);
}

    .sb-toc-link em {
        color: #a6b2d1;
        font-style: normal;
        font-size: 14px;
    }

    .sb-toc-link:hover {
        background: rgba(255,113,212,.10);
        border-color: #4b2a5b;
    }

    .sb-toc-link.is-active {
        outline: 2px solid #7cf2ff;
        box-shadow: 0 0 0 3px rgba(124,242,255,.25), inset 0 -1px 0 rgba(255,255,255,.06);
    }

/* ========== 10) Avatar & Manifesto ========== */
.avatar {
    display: block;
    width: 120px;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    margin: 0 auto;
    image-rendering: pixelated;
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 0 8px rgba(108,192,255,.15);
}

.avatar-caption {
    color: #7dffb3;
    margin-top: 6px;
    letter-spacing: 1px;
    text-align: center;
}

.manifesto .small-note {
    font-size: 16px;
    color: #7dffb3;
    margin-top: 6px;
}

/* UDHR scroll panel (index) */
.panel.manifesto,
.manifesto.panel,
#udhr,
.udhr-panel {
    --panel-h: 480px;
    max-height: var(--panel-h);
    overflow: auto;
    scroll-behavior: smooth;
}

    .panel.manifesto .section-title,
    #udhr .section-title {
        position: sticky;
        top: 0;
        background: #0b0f1a;
        z-index: 1;
        margin-bottom: 6px;
        padding-top: 2px;
    }

/* ========== 11) Scrollbars (global) ========== */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--blue) #0b0f1a;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #0b0f1a;
    border-left: 1px solid var(--border);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--blue), var(--blue-deep));
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: inset 0 0 6px rgba(108,192,255,.35);
}

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(var(--blue-lite), var(--blue));
    }

::-webkit-scrollbar-corner {
    background: #0b0f1a;
}

/* ========== 12) Utilities ========== */
.mb-3 {
    margin-bottom: 16px;
}

.stack-1 {
    display: grid;
    gap: 8px;
}

.stack-2 {
    display: grid;
    gap: 20px;
}

.muted {
    opacity: .6;
    font-size: .95em;
    margin-left: 6px;
}

/* =========================================================
   THOUGHTS — Scoped styles (Show-More, no duplicate text)
   ========================================================= */
body[data-page="thoughts"] {
    --page-max: 1100px; /* largeur centrale TOC + Player + Articles */
    --player-col: 420px; /* colonne droite (player) */
    --thumb: 128px; /* miniatures */
}

@media (max-width:1200px) {
    body[data-page="thoughts"] {
        --thumb: 112px;
    }
}

@media (max-width:980px) {
    body[data-page="thoughts"] {
        --thumb: 100px;
    }
}

@media (max-width:720px) {
    body[data-page="thoughts"] {
        --thumb: 96px;
    }
}

/* Colonne centrale */
body[data-page="thoughts"] .page-col {
    max-width: var(--page-max);
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

/* Bandeau haut: TOC | Player */
body[data-page="thoughts"] .top-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) var(--player-col);
    gap: 16px;
    align-items: start;
}

@media (max-width:980px) {
    body[data-page="thoughts"] .top-grid {
        grid-template-columns: 1fr;
    }
}

/* Player à largeur de colonne */
body[data-page="thoughts"] #player-host .audio-panel {
    max-width: none;
    width: 100%;
    margin: 0;
}

/* TOC (carré) */
body[data-page="thoughts"] #toc {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
    gap: 10px;
    margin: 0 0 12px;
}

    body[data-page="thoughts"] #toc .toc-link {
        display: flex;
        align-items: center;
        gap: 8px;
        height: 36px;
        padding: 0 10px;
        background: #0b0f1a;
        border: 1px solid #1a2236;
        color: #7dffb3;
        text-decoration: none;
        letter-spacing: .5px;
    }

        body[data-page="thoughts"] #toc .toc-link::before {
            content: "■";
            font-size: 10px;
            color: #2d3769;
        }

        body[data-page="thoughts"] #toc .toc-link:hover {
            background: #0d1226;
            outline: 1px solid #2d3769;
        }

        body[data-page="thoughts"] #toc .toc-link.is-active {
            outline: 2px solid #7cf2ff;
            box-shadow: 0 0 0 3px rgba(124,242,255,.25);
        }

/* Liste articles */
body[data-page="thoughts"] .posts-stack {
    display: grid;
    gap: 18px;
}

/* En-tête */
body[data-page="thoughts"] .post-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid #1a2236;
}

body[data-page="thoughts"] .post-title {
    margin: 0;
    line-height: 1.2;
}

    body[data-page="thoughts"] .post-title a {
        color: #e8f00f;
        text-decoration: none;
    }

        body[data-page="thoughts"] .post-title a:hover {
            text-decoration: underline;
        }

body[data-page="thoughts"] .post-head time {
    margin-left: auto;
    padding-left: 12px;
    color: #a6b2d1;
    font-size: 12px;
    letter-spacing: .5px;
    white-space: nowrap;
}

/* Corps: thumb | contenu */
body[data-page="thoughts"] .post-body {
    display: grid;
    grid-template-columns: var(--thumb) minmax(0,1fr);
    gap: 12px;
    align-items: start;
    padding: 12px 12px 0;
}

    body[data-page="thoughts"] .post-body .thumb-img {
        width: var(--thumb) !important;
        height: var(--thumb) !important;
        aspect-ratio: 1/1;
        object-fit: cover;
        object-position: center;
        border: 1px solid #1a2236;
        border-radius: 0;
        box-shadow: none;
    }

        body[data-page="thoughts"] .post-body .thumb-img:hover {
            outline: 1px solid #2d3769;
            filter: saturate(1.05);
        }

    body[data-page="thoughts"] .post-body .tags-line {
        grid-column: 2;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 6px;
    }

        body[data-page="thoughts"] .post-body .tags-line span {
            font-size: 12px;
            color: #a6b2d1;
            border: 1px dashed #2d3769;
            padding: 2px 8px;
            border-radius: 999px;
            background: rgba(13,19,45,.6);
        }

@media (max-width:720px) {
    body[data-page="thoughts"] .post-body {
        grid-template-columns: 1fr;
    }

        body[data-page="thoughts"] .post-body .tags-line {
            grid-column: 1;
        }
}

/* Boutons pied */
body[data-page="thoughts"] .post-foot {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
    padding: 10px 12px 12px;
    border-top: 1px solid #1a2236;
}

body[data-page="thoughts"] .post-row {
    margin-bottom: 18px;
}

body[data-page="thoughts"] .btn-rect {
    border: 1px solid var(--border);
    background: linear-gradient(to bottom,var(--blue-lite) 0%,var(--blue) 40%,var(--blue-deep) 100%);
    color: #e6f0ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 10px;
    font: inherit;
    border-radius: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -2px 0 rgba(0,0,0,.25);
    line-height: 1;
    height: 28px;
    display: inline-flex;
    align-items: center;
}

    body[data-page="thoughts"] .btn-rect:hover {
        filter: saturate(1.15);
    }

    body[data-page="thoughts"] .btn-rect:active {
        transform: translateY(1px);
    }

body[data-page="thoughts"] .input-rect {
    background: #0b0f1a;
    border: 1px solid #1a2236;
    color: #7dffb3;
    font: inherit;
    padding: 6px 8px;
    width: 100%;
    border-radius: 0;
}

body[data-page="thoughts"] .muted {
    color: #a6b2d1;
    opacity: 1;
}

/* --- Show-More: le contenu complet est là mais clippé --- */
body[data-page="thoughts"] .post-content {
    --collapse-h: 260px; /* hauteur fermée — ajuste à ton goût */
    position: relative;
    max-height: var(--collapse-h);
    overflow: hidden;
}

    body[data-page="thoughts"] .post-content::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 48px;
        background: linear-gradient(to bottom, rgba(11,15,26,0), #0b0f1a 70%);
        pointer-events: none;
    }
/* Ouvert = on enlève le clipping + fade */
body[data-page="thoughts"] .post-row.is-open .post-content {
    max-height: none;
}

    body[data-page="thoughts"] .post-row.is-open .post-content::after {
        display: none;
    }

/* Lisibilité dans post-content */
body[data-page="thoughts"] .post-content p {
    max-width: 90ch;
    line-height: 1.55;
    margin: 8px 0;
}

body[data-page="thoughts"] .post-content h3,
body[data-page="thoughts"] .post-content h4 {
    margin: 10px 0 6px;
    color: #e8f00f;
}

body[data-page="thoughts"] .post-content ul {
    margin: 8px 0 8px 22px;
}

body[data-page="thoughts"] .post-content li {
    margin: 2px 0;
}

body[data-page="thoughts"] .post-content code {
    padding: 0 4px;
    border: 1px solid rgba(124,242,255,.2);
    background: rgba(124,242,255,.08);
}

body[data-page="thoughts"] .post-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid #1a2236;
}

/* Commentaires */
body[data-page="thoughts"] .comment-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body[data-page="thoughts"] .comment {
    padding: 8px 10px;
}

body[data-page="thoughts"] .comment-meta {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin-bottom: 4px;
}

body[data-page="thoughts"] .cmt-form {
    display: grid;
    grid-template-columns: 180px minmax(0,1fr) auto;
    gap: 8px 10px;
    align-items: start;
    margin-top: 8px;
    max-width: var(--page-max);
}

    body[data-page="thoughts"] .cmt-form .c-name {
        grid-column: 1;
    }

    body[data-page="thoughts"] .cmt-form .c-msg {
        grid-column: 2;
        min-height: 100px;
        resize: vertical;
    }

    body[data-page="thoughts"] .cmt-form .form-row {
        grid-column: 1 / -1;
        display: flex;
        gap: 10px;
        align-items: center;
    }

body[data-page="thoughts"] .c-status {
    min-width: 12ch;
    color: #a6b2d1;
}

/* ========== Index hotfix: 88x31 strip ========== */
.badges, .badges-88, #badges, #buttons88, .web-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

    .badges a, .badges-88 a, #badges a, #buttons88 a, .web-buttons a {
        display: inline-flex;
    }

    .badges img, .badges-88 img, #badges img, #buttons88 img, .web-buttons img {
        max-height: 31px;
        height: 31px;
        width: auto;
        image-rendering: pixelated;
        border: 1px solid var(--border);
        background: #000;
    }

/* Index: “What’s new” longs items */
.home-grid .status pre,
.home-grid .status code {
    white-space: pre-wrap;
    word-break: break-word;
}

/* ===== Thoughts: taille de texte + style du Like ===== */
body[data-page="thoughts"] {
    --text-size: 20px;
}
    /* ajuste 18–22px selon ton goût */
    body[data-page="thoughts"] .post-content {
        font-size: var(--text-size);
    }

.btn-rect.is-liked {
    outline: 2px solid #ff71d4;
    box-shadow: 0 0 10px rgba(255,113,212,.35);
}

/* --- MOBILE: sidebar off-canvas --- */
@media (max-width:960px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar-frame {
        position: fixed;
        top: 0;
        left: 0;
        height: 100dvh;
        width: var(--sidebar-w);
        max-width: 85vw;
        border-right: 1px solid #1a2236;
        background: #0b1220;
        box-shadow: 2px 0 0 rgba(0,0,0,.5);
        overflow: auto;
        /* état FERMÉ par défaut */
        transform: translateX(-100%);
        transition: transform .20s ease-out;
        z-index: var(--z-sidebar);
    }

        /* ✅ état OUVERT piloté par ton JS (`sidebar.classList.add('is-open')`) */
        .sidebar-frame.is-open {
            transform: translateX(0);
        }

    /* backdrop contrôlé par l'attribut [hidden] que ton JS toggle */
    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.45);
        z-index: var(--z-backdrop);
    }

        .sidebar-backdrop[hidden] {
            display: none !important;
        }
}

/* --- DESKTOP: sidebar visible, pas de toggle ni backdrop --- */
@media (min-width:961px) {
    .sidebar-backdrop,
    .sidebar-toggle {
        display: none !important;
    }

    .sidebar-frame {
        position: sticky;
        top: 0;
        height: 100vh;
        width: var(--sidebar-w);
        transform: none; /* visible en permanence */
        box-shadow: none;
        z-index: var(--z-sidebar);
    }
}

