/* PDF / E-book store cards — document-first presentation */

#pt-store-grid {
    align-items: start;
}

.pt-document-card {
    border-radius: 16px;
    border-color: #e2e8f0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
}

.pt-document-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .10);
}

/* A portrait book cover should be seen, not cropped. */
.pt-document-card .pt-document-cover-stage {
    height: clamp(250px, 28vw, 330px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 16%, rgba(255,255,255,.98), rgba(248,250,252,.92) 58%, rgba(241,245,249,.96) 100%);
    border-bottom: 1px solid #eef2f7;
}

.pt-document-card .pt-document-cover-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    filter: drop-shadow(0 8px 12px rgba(15, 23, 42, .13));
    transition: transform .24s ease, filter .24s ease;
}

.pt-document-card:hover .pt-document-cover-image {
    transform: scale(1.018);
    filter: drop-shadow(0 10px 15px rgba(15, 23, 42, .16));
}

.pt-document-cover-placeholder {
    padding: 22px !important;
}

.pt-document-placeholder-sheet {
    width: min(76%, 190px);
    height: 100%;
    max-height: 270px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 20px 16px;
    box-sizing: border-box;
    border: 1px solid #dbe2ea;
    border-radius: 6px;
    background: #fff;
    color: #334155;
    text-align: center;
    box-shadow: 0 10px 20px rgba(15,23,42,.10);
}

.pt-document-placeholder-sheet strong {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.35;
}

.pt-document-placeholder-sheet small {
    color: #94a3b8;
    font-size: 10px;
}

.pt-document-placeholder-pdf {
    align-self: center;
    padding: 4px 8px;
    border-radius: 5px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
}

.pt-document-sample-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(16,185,129,.22);
    color: #047857;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .01em;
    box-shadow: 0 2px 8px rgba(15,23,42,.08);
    pointer-events: none;
}

.pt-document-sample-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}

.pt-document-card .pt-product-card-body {
    padding: 15px 16px 12px;
}

.pt-document-card .pt-document-eyebrow {
    margin-bottom: 6px;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.pt-document-card .pt-product-card-title {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.38;
    color: #0f172a;
    -webkit-line-clamp: 2;
}

.pt-document-author {
    margin: -2px 0 9px;
    color: #64748b;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pt-document-card .pt-document-meta,
.pt-mock-store-card .pt-product-card-meta {
    gap: 6px;
}

.pt-doc-meta-pill {
    display: inline-flex !important;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
}

.pt-doc-meta-pill--pdf {
    border-color: #fecaca;
    background: #fff1f2;
    color: #b91c1c;
    font-weight: 700;
}

.pt-doc-meta-pill--language {
    border-color: #dbeafe;
    background: #eff6ff;
    color: #1d4ed8;
}

.pt-doc-meta-pill--sample {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #047857;
}

.pt-doc-meta-pill--edition {
    border-color: #e9d5ff;
    background: #faf5ff;
    color: #7e22ce;
}

.pt-doc-meta-pill--mock {
    border-color: #ddd6fe;
    background: #f5f3ff;
    color: #6d28d9;
    font-weight: 700;
}

.pt-document-card .pt-document-card-footer {
    padding: 13px 16px 16px;
    gap: 12px;
    border-top: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #fff 0%, #fcfdff 100%);
}

.pt-document-card .pt-product-price-current {
    font-size: 19px;
}

.pt-document-card .pt-product-price-mrp {
    font-size: 12px;
}

.pt-document-card .pt-product-card-actions {
    margin-left: auto;
}

.pt-document-card .pt-document-card-cta {
    min-height: 36px;
    padding-inline: 15px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.pt-document-card--no-cover .pt-product-card-body {
    padding-top: 15px;
}

/* Online tests use a test-first hierarchy: identity, core exam metrics, then policy signals. */
.pt-mock-store-card {
    border-radius: 16px;
    border-color: #e2e8f0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15,23,42,.05);
}

.pt-mock-store-card:hover {
    transform: translateY(-4px);
    border-color: #c4b5fd;
    box-shadow: 0 14px 30px rgba(76,29,149,.10);
}

.pt-mock-summary-stage {
    position: relative;
    min-height: 176px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 18px 18px;
    box-sizing: border-box;
    border-bottom: 1px solid #ede9fe;
    background:
        radial-gradient(circle at 84% 16%, rgba(255,255,255,.80), transparent 34%),
        linear-gradient(145deg, #faf7ff 0%, #f3f0ff 52%, #eef2ff 100%);
}

.pt-mock-stage-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-right: 64px;
}

.pt-mock-kind {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #6d28d9;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.pt-mock-official {
    display: inline-flex;
    align-items: center;
    min-height: 21px;
    padding: 3px 8px;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: rgba(240,253,244,.92);
    color: #047857;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.pt-mock-exam {
    color: #4c1d95;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pt-mock-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.pt-mock-metric {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
    padding: 10px 8px;
    border: 1px solid rgba(139,92,246,.16);
    border-radius: 10px;
    background: rgba(255,255,255,.80);
    text-align: center;
    box-shadow: 0 2px 6px rgba(76,29,149,.04);
}

.pt-mock-metric strong {
    color: #312e81;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.pt-mock-metric small {
    color: #64748b;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.pt-mock-store-card .pt-product-card-body {
    padding: 15px 16px 12px;
}

.pt-mock-store-card .pt-mock-eyebrow {
    margin-bottom: 6px;
    color: #6d28d9;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.pt-mock-store-card .pt-product-card-title {
    margin-bottom: 10px;
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    -webkit-line-clamp: 3;
}

.pt-mock-signals {
    margin-top: 4px;
}

.pt-mock-signal--difficulty {
    border-color: #ddd6fe;
    background: #f5f3ff;
    color: #6d28d9;
}

.pt-mock-signal--negative {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

.pt-mock-card-footer {
    padding: 13px 16px 16px;
    gap: 12px;
    border-top: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #fff 0%, #fcfbff 100%);
}

.pt-mock-store-card .pt-product-card-actions {
    margin-left: auto;
}

.pt-mock-store-card .pt-mock-cta {
    min-height: 36px;
    padding-inline: 15px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .pt-document-card .pt-document-cover-stage {
        height: 260px;
        padding: 14px;
    }

    .pt-mock-summary-stage {
        min-height: 166px;
        padding: 17px 15px 15px;
    }
}

@media (max-width: 600px) {
    .pt-document-card .pt-document-cover-stage {
        height: 250px;
        padding: 12px;
    }

    .pt-document-card .pt-product-card-body,
    .pt-mock-store-card .pt-product-card-body {
        padding: 13px 14px 10px;
    }

    .pt-document-card .pt-product-card-title,
    .pt-mock-store-card .pt-product-card-title {
        font-size: 15px;
    }

    .pt-document-card .pt-document-card-footer,
    .pt-mock-store-card .pt-mock-card-footer {
        padding: 12px 14px 14px;
        align-items: stretch;
    }

    .pt-document-card .pt-product-card-actions,
    .pt-mock-store-card .pt-product-card-actions {
        width: 100%;
        margin-left: 0;
    }

    .pt-document-card .pt-document-card-cta,
    .pt-document-card .pt-product-card-actions .pt-btn,
    .pt-mock-store-card .pt-mock-cta,
    .pt-mock-store-card .pt-product-card-actions .pt-btn {
        width: 100%;
    }

    .pt-mock-summary-stage {
        min-height: 158px;
        padding: 15px 13px 13px;
    }

    .pt-mock-metric {
        padding: 9px 5px;
    }

    .pt-mock-metric strong {
        font-size: 14px;
    }
}

@media (max-width: 420px) {
    .pt-document-card .pt-document-cover-stage {
        height: 230px;
    }

    .pt-document-card .pt-product-card-title {
        -webkit-line-clamp: 3;
    }

    .pt-mock-summary-stage {
        min-height: 150px;
    }

    .pt-mock-stage-head {
        padding-right: 54px;
    }
}
