/*
 * A paper post (WP Post with the Question Paper block): the pieces around
 * the paper sheet. The sheet itself is single-pyq.css. Approved demo
 * screen 2 (video card A, subject-wise A), 2026-11-05.
 */

#ptApp.pt-paper-block {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-family: inherit;
}

/* Home › Exam › 2025 · GS Paper I */
.pp-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 6px;
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
}

.pp-crumbs a {
    color: #2563eb;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.pp-crumbs a:hover {
    text-decoration: underline;
}

.pp-crumbs__sep {
    color: #94a3b8;
}

/* Video card: the picture links to YouTube */
#ptApp .pp-vcard {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 440px;
    margin-top: 12px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    text-decoration: none;
}

#ptApp .pp-vcard:hover {
    border-color: #fca5a5;
}

.pp-vcard__img {
    position: relative;
    flex: none;
    width: 120px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #0f172a;
}

.pp-vcard__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pp-vcard__play {
    position: absolute;
    inset: 0;
    width: 34px;
    height: 24px;
    margin: auto;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: #dc2626;
    color: #fff;
}

.pp-vcard__play svg {
    width: 14px;
    height: 14px;
    fill: #fff;
}

.pp-vcard__t {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    font-size: 14px;
    line-height: 1.35;
}

.pp-vcard__t small {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
    font-size: 12px;
}

.pp-vcard__t small svg {
    width: 14px;
    height: 14px;
    color: #dc2626;
}

/* Subject-wise questions: one closed line, a tap opens the table */
#ptApp .pp-sw {
    max-width: 520px;
    margin-top: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
}

#ptApp .pp-sw summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    padding: 8px 12px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: #0f172a;
}

#ptApp .pp-sw summary::-webkit-details-marker {
    display: none;
}

#ptApp .pp-sw summary > svg:first-child {
    width: 15px;
    height: 15px;
    color: #2563eb;
}

#ptApp .pp-sw summary small {
    font-weight: 400;
    font-size: 12.5px;
    color: #64748b;
}

#ptApp .pp-sw__chev {
    width: 16px;
    height: 16px;
    margin-left: auto;
    color: #94a3b8;
    transition: transform 0.2s;
}

#ptApp .pp-sw[open] .pp-sw__chev {
    transform: rotate(180deg);
}

#ptApp .pp-sw[open] summary small {
    display: none;
}

#ptApp .pp-sw__t {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 13.5px;
}

#ptApp .pp-sw__t td {
    padding: 5px 12px;
    border: 0;
    border-top: 1px solid #f1f5f9;
}

#ptApp .pp-sw__bar {
    width: 55%;
}

#ptApp .pp-sw__bar span {
    display: block;
    height: 8px;
    border-radius: 4px;
    background: #93c5fd;
}

#ptApp .pp-sw__n {
    width: 40px;
    text-align: right;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Asked before: under the question's buttons */
#ptApp .pq-keyq .pt-asked {
    margin: 10px 0 0;
}

/* The same exam's other papers */
#ptApp .pp-others {
    margin: 28px 0 8px;
}

#ptApp .pp-others__h {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
    margin-bottom: 8px;
}

#ptApp .pp-others__h h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
}

#ptApp .pp-others__h a {
    font-size: 14px;
    color: #2563eb;
    text-decoration: none;
}

#ptApp .pp-others ul {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

#ptApp .pp-others li + li {
    border-top: 1px solid #f1f5f9;
}

#ptApp .pp-others li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

#ptApp .pp-others li a:hover {
    background: #eff6ff;
}

#ptApp .pp-others li svg {
    flex: none;
    width: 18px;
    height: 18px;
    color: #2563eb;
}

#ptApp .pp-others li span {
    flex: 1;
    min-width: 0;
}

#ptApp .pp-others li small {
    color: #64748b;
    font-weight: 400;
    font-size: 13px;
    white-space: nowrap;
}

#ptApp .pp-others .pp-others__go {
    width: 16px;
    height: 16px;
    color: #94a3b8;
}

@media (max-width: 600px) {
    #ptApp .pp-vcard {
        max-width: none;
    }

    .pp-vcard__img {
        width: 104px;
    }
}
