/*
 * KOT-397 — «مواصفات الطباعة» (print specifications) accordion on the book
 * details page.
 *
 * The cards reuse the existing `.info-card` / `.info-data` / `.info-label` /
 * `.info-value` / `.info-icon` rules from `styles.css`, so colours, borders,
 * radii, fonts and icon boxes stay BYTE-IDENTICAL to «معلومات الكتاب» (the
 * ticket's requirement #11). Only the accordion shell, wrapping and the
 * two-column behaviour live here.
 */

.print-specifications-block {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* The whole header row is the native `<summary>` toggle. */
.print-specifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
    border-radius: 8px;
}

.print-specifications-header::-webkit-details-marker {
    display: none;
}

.print-specifications-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    margin-bottom: 0;
}

/* The same 5px coral bar every other section title uses. */
.print-specifications-title::before {
    content: '';
    flex: 0 0 auto;
    width: 5px;
    height: 25px;
    background-color: var(--primary);
    border-radius: 4px;
}

.print-specifications-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #F8F3E9;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-dark);
    font-size: 14px;
    transition: transform .2s ease, background-color .2s ease;
}

.print-specifications-header:hover .print-specifications-toggle {
    background-color: #F5EEDC;
}

.print-specifications-header:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

/* The arrow flips when the section is open (default = closed). */
.print-specifications-block[open] .print-specifications-toggle {
    transform: rotate(180deg);
}

/* Two columns on the web. `.info-grid` already declares
   `repeat(2, 1fr)` and collapses to ONE column at ≤850px, so no grid
   template is re-declared here — it would override that breakpoint. */
.print-specifications-grid {
    margin-top: 16px;
}

.print-specifications-card {
    /* Long labels/values must wrap inside the card, never clip it. */
    min-width: 0;
}

.print-specifications-card .info-data {
    min-width: 0;
    flex: 1 1 auto;
}

.print-specifications-card .info-icon {
    flex: 0 0 40px;
}

.print-specifications-value {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.7;
}

@media (max-width: 850px) {
    .print-specifications-grid {
        margin-top: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .print-specifications-toggle {
        transition: none;
    }
}