/* =========================================================
   roles.css: the notebook shelf (your main offer)
   Tap a notebook, its page opens below on lined paper.
   Cover patterns (.cover-dots etc.) live in projects.css.
   ========================================================= */

.roles { background: var(--section-tint); }   /* peach in light, gray in dark */

/* the shelf: as many notebooks per row as fit, each min 140px */
.shelf {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.notebook {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 16px 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--text);
    font: inherit;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.notebook:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(240, 130, 100, 0.18); }
.notebook[aria-pressed="true"] { border-color: var(--coral); box-shadow: 0 0 0 2px var(--coral); }

/* the little notebook cover */
.notebook .book {
    position: relative;
    width: 70%;
    max-width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 3px 8px 8px 3px;
    box-shadow: inset 7px 0 0 rgba(0, 0, 0, 0.05), 3px 4px 0 rgba(36, 32, 28, 0.06);
}
.notebook .label {                /* the paper label on the cover */
    position: absolute;
    top: 24%; left: 16%; right: 26%;
    height: 15%;
    background: #FFFAF2;
    border-radius: 2px;
}
.notebook .band {                 /* the elastic band */
    position: absolute;
    top: 0; bottom: 0; right: 13%;
    width: 5px;
}

.notebook .name {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
}
[dir="rtl"] .notebook .name { font-size: 13.5px; }


/* ---------- THE OPEN PAGE (lined paper) ---------- */
.notebook-page {
    position: relative;
    margin-top: 22px;
    padding-block: 24px;
    padding-inline: 40px 22px;
    background-color: var(--card);
    background-image: repeating-linear-gradient(transparent 0 31px, var(--line) 31px 32px);
    border: 1px solid var(--line);
    border-top: 6px solid var(--coral);    /* recolored per role by roles.js */
    border-radius: 20px;
    scroll-margin-top: 80px;
}

/* the red margin line */
.notebook-page::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    inset-inline-start: 22px;
    width: 2px;
    background: rgba(255, 111, 97, 0.3);
}

.notebook-page .one-liner { margin: 4px 0 20px; color: var(--muted); font-size: 17px; }

.page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.notebook-page h4 {
    margin: 0 0 8px;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}
[dir="rtl"] .notebook-page h4 { letter-spacing: 0; font-size: 14px; }

.notebook-page p { margin: 0; }
.notebook-page ol { margin: 0; padding-inline-start: 20px; display: grid; gap: 4px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 3px 11px; border-radius: 999px; background: var(--chip); color: var(--chip-text); font-size: 14px; }

.notebook-page .btn { margin-top: 22px; }


/* ---------- "IN THE WORKS" CARD ---------- */
.soon {
    display: grid;
    gap: 6px;
    max-width: 620px;
    margin-top: 28px;
    padding: 20px;
    border: 1.5px dashed #F2C4A6;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
}
[data-theme="dark"] .soon { background: var(--card); border-color: #5A3F3A; }

/* blurred preview of the quiz choices */
.ghost-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    filter: blur(1.2px);
    opacity: 0.55;
}
.ghost-chips span {
    padding: 6px 12px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    font-size: 13px;
}
.soon .pill {
    justify-self: start;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--butter);
    color: #24201C;
    font-size: 12px;
}
.soon b { font-family: var(--font-display); font-size: 19px; }
.soon p { margin: 0; color: var(--muted); }
