/* ============================================================
   layout-extra.css — supplemental to derstyle.css
   Adds: single explanation block above a split media panel
   (used throughout Bölme/Division, where the source content had
   one paragraph of text followed by one animation/image, rather
   than two side-by-side step summaries like in Vol.1's tr-pages).
   ============================================================ */

/* 4-row split page: header / explanation / split-content / footer */
.page-container.simple-split {
    grid-template-rows: 55px auto 1fr 60px;
}

.explanation-block {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF5D6 100%);
    padding: 1rem 2.5rem;
    border-bottom: 3px solid #FEC163;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
    line-height: 1.65;
    color: #3E2723;
    overflow-y: auto;
}

.explanation-block strong { color: #C44569; }

/* Placeholder panel for a Sorbie image to be added later */
.sorbie-placeholder {
    width: 100%;
    max-height: 160px;
    min-height: 120px;
    border: 3px dashed #90A4CE;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: #5C6BC0;
    background: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 1rem;
}

.sorbie-placeholder .ph-icon { font-size: 1.8rem; }
.sorbie-placeholder .ph-text { font-size: 0.8rem; font-weight: 600; }

/* Chapter hub menu */
.hub-body {
    background: #F7E8DE;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hub-menu {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    width: 100%;
    max-width: 560px;
    margin-top: 1rem;
}

.hub-menu a {
    background: white;
    border: 2px solid #FEC163;
    border-radius: 14px;
    padding: 0.9rem 1.4rem;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #C44569;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.hub-menu a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(196, 69, 105, 0.25);
    background: #FFF5D6;
}

@media (max-width: 1400px) {
    .page-container.simple-split { height: auto; grid-template-rows: 55px auto 1fr auto; }
    .explanation-block { padding: 0.8rem 1.5rem; }
}


/* ============================================================
   Additions for menarvol2 – menarvol8 (appended to layout-extra.css)
   ============================================================ */

/* sidebar page without a left column (continuation pages) */
.main-content.no-sidebar { grid-template-columns: 1fr; }

/* static pictures inside the content area */
.content-figures {
    display: flex; flex-wrap: wrap; gap: 1rem;
    justify-content: center; align-items: flex-start;
    margin: 0 0 1.2rem;
}
.content-figures img {
    max-width: 100%; max-height: 160px; width: auto; height: auto;
    border-radius: 10px; background: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.content-text img { max-width: 60%; height: auto; }
.content-text p img { max-height: 190px; width: auto; vertical-align: middle; }

/* "--8-- --7--" number picker links (finger pages) */
.content-text a.pick {
    display: inline-block; margin: 0.15rem 0.1rem; padding: 0.15rem 0.9rem;
    background: white; border: 2px solid #FEC163; border-radius: 20px;
    color: #C44569; font-family: 'Fredoka', sans-serif; font-weight: 700;
    text-decoration: none;
}
.content-text a.pick:hover { background: #FFF5D6; }
.content-text a.inlink { color: #C44569; font-weight: 700; }

/* formula / step tables */
.content-text table.formula-table,
.explanation-block table.formula-table {
    border-collapse: collapse; margin: 0 auto 1.2rem; background: white;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08); border-radius: 10px;
}
.formula-table caption {
    caption-side: top; padding: 0.4rem; color: #C44569;
    font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 1.05rem;
}
.formula-table td, .formula-table th {
    border: 2px solid #FEC163; padding: 0.45rem 0.9rem; vertical-align: middle;
    text-align: center; color: #3E2723;
}
.formula-table td p, .formula-table th p { margin: 0 0 0.3rem; text-align: left; line-height: 1.5; }
.formula-table td p:last-child { margin-bottom: 0; }

/* sidebar: keep long text-pane copy readable */
.sidebar-content p { text-align: left; }
.explanation-block p { margin: 0 0 0.35rem; }
.explanation-block p:last-child { margin-bottom: 0; }
