/* ========================================
   BLOCK 2: Page-Specific CSS (pvi-review-scoring)
   (this page only — extracted to pvi-review-scoring.css at deploy)
   ======================================== */

/* ----- Section wrapper --------------------------------------------- */
/* Scoring pages break out of the content-area to a fixed 50vw column,
   per the PVI section-wrapper convention. */
.scoring-section {
    position: relative; left: 50%; transform: translateX(-50%);
    width: 50vw; max-width: 50vw;
    margin: 1.5rem 0 3rem;
    padding: 20px;
    background: var(--white);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

/* ----- Portrait header --------------------------------------------- */
.portrait-header {
    background: var(--dark-grey);
    color: var(--white);
    font-size: 1.15rem; font-weight: 600;
    text-align: center;
    padding: .7rem 1rem;
    border-radius: 6px;
    margin-bottom: .75rem;
}

/* ----- Category headers (collapsible) ------------------------------ */
.category-header {
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; user-select: none;
    color: var(--white); font-weight: 600;
    padding: .6rem 1rem;
    border-radius: 6px;
    margin: .6rem 0 .4rem;
}
.category-header-blue  { background: var(--dull-blue); }
.category-header-green { background: var(--green); }
.category-content { margin-bottom: .4rem; }

/* Arrow drawn via CSS content escapes — never a Unicode char in HTML.
   JS toggles the .open class (it does not touch textContent). */
.category-arrow::before { content: '\25B6'; font-size: .7rem; }
.category-arrow.open::before { content: '\25BC'; }

/* ----- Rows (CSS grid) --------------------------------------------- */
/* Conditional rows carry an inline display:none and are switched to
   display:grid by the shared toggle handlers; their column templates
   live here so the grid resolves when shown. */
.data-row {
    display: grid; gap: .3rem;
    margin-bottom: .3rem;
}
.data-row-2col        { grid-template-columns: 50% 1fr; }
.data-row-3col        { grid-template-columns: 1fr 1fr 1fr; }
.data-row-radio-33    { grid-template-columns: 33% 1fr; }
.data-row-radio-1-2   { grid-template-columns: 1fr 2fr; }
.data-row-ear-blue,
.data-row-look-blue,
.data-row-mouth-blue  { grid-template-columns: 1fr; }
.data-row-ear-extra,
.data-row-look-extra,
.data-row-mouth-extra { grid-template-columns: 33% 1fr; }
.data-row-unified     { border-radius: 6px; overflow: hidden; gap: 0; }

/* ----- Cells ------------------------------------------------------- */
.data-col {
    display: flex; align-items: center;
    padding: .5rem .75rem;
    border-radius: 6px;
    font-size: .9rem;
}
.data-col-grey,
.data-col-grey-input  { background: var(--light-grey); color: var(--dark-grey); }
.data-col-grey-center {
    background: var(--light-grey); color: var(--dark-grey);
    justify-content: center;
}
.data-col-blue-center {
    background: var(--dull-blue); color: var(--white);
    justify-content: center; font-weight: 600;
}
.data-col-no-radius { border-radius: 0; }
.data-col-white     { background: var(--white); }

.data-col-grey-input select {
    width: 100%;
    font-size: .88rem;
    padding: .15rem .3rem;
}
.data-col-grey-center input[type="radio"] { margin: 0; }

/* ----- Value styling ----------------------------------------------- */
.value-pill {
    background: var(--white); color: var(--dark-grey);
    border-radius: 999px;
    padding: .1rem .6rem;
    font-size: .85rem;
}
.field-value { font-size: .85rem; color: var(--dark-grey); }

/* ----- Spacer between stacked engagement blocks -------------------- */
.row-spacer { height: 8px; }

/* ----- Save / submit ----------------------------------------------- */
/* .save-section / .save-btn now live in pvi-master-frame.css §7 — the
   rules here were identical and have been removed. */

/* ----- Responsive -------------------------------------------------- */
@media (max-width: 991.98px) {
    .scoring-section { width: 92vw; max-width: 92vw; }
}
