/* Project notebook — loose-leaf paper + binder */

.notebook-shell {
    display: grid;
    grid-template-columns: 1fr 14px minmax(220px, 280px);
    min-height: 70vh;
    background: #f4f1e6;
    border: 1px solid #d8d0bc;
    border-radius: 0.35rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 1.5rem rgba(17, 17, 17, 0.08);
}

.notebook-lined {
    background-color: #fffef9;
    background-image:
        linear-gradient(to bottom, transparent 1.55rem, rgba(120, 150, 190, 0.22) 1.56rem);
    background-size: 100% 1.75rem;
    background-origin: content-box;
}

.notebook-main {
    padding: 2rem 2.25rem 2.5rem;
    color: #1a1a1a;
}

.notebook-binder {
    background: linear-gradient(90deg, #0a0a0a 0%, #1f1f1f 45%, #050505 100%);
    box-shadow: inset -2px 0 6px rgba(0, 0, 0, 0.45), inset 2px 0 4px rgba(255, 255, 255, 0.06);
    position: relative;
}

.notebook-binder::before,
.notebook-binder::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #444;
    box-shadow: 0 0 0 1px #222;
}

.notebook-binder::before { top: 12%; }
.notebook-binder::after { bottom: 12%; }

.notebook-sidebar {
    background: #f8f5ec;
    padding: 1.5rem 1.25rem;
    border-left: 1px solid #e5dece;
    color: #1a1a1a;
}

.notebook-sidebar-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b91c1c;
    margin-bottom: 1rem;
}

.notebook-sidebar-comment {
    background: #fffdf8;
    border: 1px solid #e8e0d0;
    border-radius: 0.25rem;
    padding: 0.85rem;
    margin-bottom: 0.75rem;
}

.notebook-sidebar-comment .note-ref {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
}

.notebook-article {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px dashed rgba(120, 150, 190, 0.35);
}

.notebook-article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.notebook-article-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.65rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: #111111;
}

.notebook-article-body {
    white-space: pre-wrap;
    line-height: 1.75rem;
    font-size: 1.02rem;
    color: #1a1a1a;
}

.notebook-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.notebook-attachment-image {
    max-width: 220px;
    border: 1px solid #ddd6c8;
    border-radius: 0.25rem;
    padding: 0.25rem;
    background: #fff;
}

.notebook-attachment-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.15rem;
}

.notebook-comment {
    margin-top: 1rem;
    padding: 0.85rem 0 0;
    border-top: 1px solid rgba(120, 150, 190, 0.2);
    color: #1a1a1a;
}

.notebook-shell .text-muted {
    color: #5c5c5c !important;
}

.notebook-shell h2,
.notebook-shell h3,
.notebook-shell h4 {
    color: #111111;
}

.notebook-comment-form,
.notebook-note-form {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #ddd6c8;
    border-radius: 0.35rem;
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.project-list-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.project-list-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.45rem 1.1rem rgba(17, 17, 17, 0.08);
}

@media (max-width: 991.98px) {
    .notebook-shell {
        grid-template-columns: 1fr;
        grid-template-rows: auto 8px auto;
    }

    .notebook-binder {
        min-height: 8px;
        background: linear-gradient(180deg, #0a0a0a 0%, #1f1f1f 50%, #050505 100%);
    }

    .notebook-binder::before,
    .notebook-binder::after {
        top: 50%;
        bottom: auto;
        transform: translate(-50%, -50%);
    }

    .notebook-binder::after {
        left: 30%;
    }

    .notebook-binder::before {
        left: 70%;
    }
}