/* Public Test Series card + detail — approved Option A. */
:root {
    --pt-series-cta: #2563eb;
    --pt-series-cta-hover: #1d4ed8;
    --pt-series-cta-soft: #eff6ff;
    --pt-series-cta-border: #bfdbfe;
    --pt-series-live: #be185d;
    --pt-series-live-soft: #fdf2f8;
}

.pt-ts-store-section,
.pt-ts-detail-wrap {
    max-width: 1180px;
    margin-inline: auto;
    font-family: var(--pt-store-font, "Noto Sans Devanagari", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif);
    color: var(--pt-store-text, #334155);
}

.pt-ts-store-section { margin: 0 0 28px; }
.pt-ts-store-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; margin:0 0 14px; }
.pt-ts-store-heading h2 { margin:0; color:var(--pt-store-ink,#0f172a); font-size:28px; line-height:1.15; font-weight:800; }
.pt-ts-store-heading p { margin:5px 0 0; color:var(--pt-store-muted,#64748b); font-size:13px; }
.pt-ts-store-heading > span { color:var(--pt-store-muted,#64748b); font-size:12px; white-space:nowrap; }
.pt-ts-store-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }

.pt-ts-card { overflow:hidden; background:#fff; border:1px solid #e2e8f0; border-radius:14px; box-shadow:0 3px 12px rgba(15,23,42,.045); }
.pt-ts-card__head { display:flex; gap:13px; align-items:flex-start; padding:15px 16px; background:linear-gradient(135deg,#f8f7ff 0%,#eef2ff 100%); }
.pt-ts-card__logo,
.pt-ts-hero__logo { display:grid; place-items:center; flex:0 0 auto; background:#fff; color:var(--pt-series-cta); border:1px solid #d8ddff; border-radius:50%; font-weight:900; }
.pt-ts-card__logo { width:46px; height:46px; font-size:13px; }
.pt-ts-card__main { min-width:0; flex:1; }
.pt-ts-card__badges,
.pt-ts-hero__badges { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.pt-ts-pill { display:inline-flex; align-items:center; min-height:22px; padding:4px 8px; border-radius:999px; font-size:10px; font-weight:800; line-height:1; }
.pt-ts-pill--series { color:var(--pt-series-cta); background:var(--pt-series-cta-soft); }
.pt-ts-pill--users { color:var(--pt-series-cta); background:#fff; border:1px solid var(--pt-series-cta-border); }
.pt-ts-pill--free,
.pt-ts-pill--owned { color:#15803d; background:#f0fdf4; }
.pt-ts-pill--pending { color:#b45309; background:#fff7ed; }
.pt-ts-pill--live { color:var(--pt-series-live); background:var(--pt-series-live-soft); }
.pt-ts-card h3 { margin:7px 0 6px; font-size:16px; line-height:1.38; font-weight:800; }
.pt-ts-card h3 a { color:var(--pt-store-ink,#0f172a); text-decoration:none; }
.pt-ts-card h3 a:hover { color:var(--pt-series-cta); }
.pt-ts-card__meta { display:flex; flex-wrap:wrap; gap:6px 12px; color:#475569; font-size:11.5px; }
.pt-ts-card__meta strong { color:#0f172a; }
.pt-ts-card__free,
.pt-ts-card__free strong { color:#15803d; }
.pt-ts-card__body { padding:13px 16px 15px; }
.pt-ts-card__language { margin:0 0 9px; color:#475569; font-size:12px; }
.pt-ts-card__language strong { color:#1d4ed8; }
.pt-ts-card__breakdown { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 12px; margin:0; padding:0; list-style:none; }
.pt-ts-card__breakdown li { position:relative; padding-left:12px; color:#475569; font-size:11.5px; }
.pt-ts-card__breakdown li::before { content:""; position:absolute; left:0; top:.58em; width:5px; height:5px; border-radius:50%; background:#94a3b8; }
.pt-ts-card__footer { display:flex; justify-content:space-between; align-items:flex-end; gap:12px; margin-top:13px; padding-top:12px; border-top:1px solid #eef2f7; }
.pt-ts-card__price { display:flex; flex-wrap:wrap; align-items:baseline; gap:5px; min-width:0; }
.pt-ts-card__price > strong { color:#0f172a; font-size:18px; font-weight:850; }
.pt-ts-card__price > del { color:#94a3b8; font-size:11px; }
.pt-ts-card__price > small { color:#15803d; font-size:10px; font-weight:800; }
.pt-ts-card__price .pt-ts-card__price-free { color:#15803d; font-size:14px; }

.pt-ts-cta,
.pt-ts-row-action { display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; text-decoration:none!important; font-weight:800; }
.pt-ts-cta { min-height:39px; padding:0 14px; border:1px solid var(--pt-series-cta); border-radius:9px; background:var(--pt-series-cta); color:#fff!important; font-size:12px; box-shadow:0 2px 7px rgba(67,56,202,.18); }
.pt-ts-cta:hover,
.pt-ts-cta:focus-visible { background:var(--pt-series-cta-hover); border-color:var(--pt-series-cta-hover); color:#fff!important; }
.pt-ts-cta:focus-visible,
.pt-ts-row-action:focus-visible { outline:3px solid rgba(67,56,202,.24); outline-offset:2px; }
.pt-ts-cta--full { width:100%; min-height:46px; font-size:14px; }
.pt-ts-cta.is-disabled { cursor:not-allowed; background:#e2e8f0; border-color:#e2e8f0; color:#64748b!important; box-shadow:none; }

.pt-ts-detail-wrap { padding:24px 20px 58px; }
.pt-ts-breadcrumb { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin:0 0 14px; color:#94a3b8; font-size:12px; }
.pt-ts-breadcrumb a { color:#64748b; text-decoration:none; }
.pt-ts-breadcrumb strong { color:#475569; font-weight:650; }
.pt-ts-hero { display:flex; gap:16px; align-items:flex-start; padding:22px; border:1px solid #e2e8f0; border-radius:16px; background:linear-gradient(135deg,#fafaff,#f5f7ff); }
.pt-ts-hero__logo { width:60px; height:60px; font-size:15px; }
.pt-ts-hero__copy { min-width:0; flex:1; }
.pt-ts-hero h1 { margin:8px 0 9px; color:#0f172a; font-size:26px; line-height:1.28; font-weight:820; }
.pt-ts-hero__stats { display:flex; flex-wrap:wrap; gap:7px 16px; color:#475569; font-size:12.5px; }
.pt-ts-hero__stats strong { color:#0f172a; }
.pt-ts-detail-grid { display:grid; grid-template-columns:minmax(0,1fr) 305px; gap:20px; align-items:start; margin-top:20px; }
.pt-ts-detail-main { min-width:0; }
.pt-ts-panel { padding:18px; background:#fff; border:1px solid #e2e8f0; border-radius:14px; }
.pt-ts-panel + .pt-ts-panel { margin-top:14px; }
.pt-ts-panel h2 { margin:0 0 13px; color:#0f172a; font-size:17px; font-weight:800; }
.pt-ts-summary-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.pt-ts-summary { padding:12px; background:#fbfcfe; border:1px solid #eef2f7; border-radius:10px; }
.pt-ts-summary strong { display:block; margin-bottom:2px; color:#0f172a; font-size:18px; }
.pt-ts-summary strong.is-free { color:#15803d; }
.pt-ts-summary span { color:#64748b; font-size:11px; }
.pt-ts-breakdown-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 16px; margin-top:11px; }
.pt-ts-breakdown-grid > div { display:flex; justify-content:space-between; gap:12px; padding:8px 0; border-bottom:1px dashed #e2e8f0; font-size:12px; }
.pt-ts-breakdown-grid span { color:#64748b; }
.pt-ts-breakdown-grid strong { color:#334155; }
.pt-ts-breakdown-grid strong.is-live { color:var(--pt-series-live); }

.pt-ts-test-list { display:flex; flex-direction:column; gap:8px; }
.pt-ts-test-row { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:11px; align-items:center; padding:11px 12px; border:1px solid #eef2f7; border-radius:10px; background:#fff; }
.pt-ts-test-row__main { min-width:0; }
.pt-ts-test-row__main h3 { margin:0 0 4px; color:#0f172a; font-size:13px; line-height:1.35; font-weight:750; }
.pt-ts-test-row__main p { margin:0; color:#64748b; font-size:10.8px; line-height:1.4; }
.pt-ts-test-row__main small { display:block; margin-top:4px; color:#64748b; font-size:10px; }
.pt-ts-test-row__state { color:#64748b; font-size:9.5px; font-weight:850; white-space:nowrap; }
.pt-ts-test-row__state.is-free { color:#15803d; }
.pt-ts-test-row__state.is-live { color:var(--pt-series-live); }
.pt-ts-test-row__state.is-upcoming { color:#a16207; }
.pt-ts-test-row__state.is-ended { color:#64748b; }
.pt-ts-row-action { min-width:72px; min-height:32px; padding:0 10px; border:1px solid var(--pt-series-cta-border); border-radius:8px; background:#fff; color:var(--pt-series-cta)!important; font-size:10.5px; }
.pt-ts-row-action:hover { background:var(--pt-series-cta-soft); }
.pt-ts-row-action:disabled { color:#94a3b8!important; border-color:#e2e8f0; background:#f8fafc; cursor:not-allowed; }
.pt-ts-more-tests { margin-top:10px; }
.pt-ts-more-tests > summary { display:flex; align-items:center; justify-content:center; min-height:39px; padding:0 12px; border:1px solid var(--pt-series-cta-border); border-radius:9px; color:var(--pt-series-cta); background:#fff; font-size:11.5px; font-weight:800; cursor:pointer; list-style:none; }
.pt-ts-more-tests > summary::-webkit-details-marker { display:none; }
.pt-ts-more-tests[open] > summary { margin-bottom:10px; background:var(--pt-series-cta-soft); }
.pt-ts-about > div { color:#475569; font-size:13px; line-height:1.7; }
.pt-ts-about p:first-child { margin-top:0; }
.pt-ts-about p:last-child { margin-bottom:0; }

.pt-ts-buy-card { position:sticky; top:80px; padding:18px; background:#fff; border:1px solid #e2e8f0; border-radius:14px; box-shadow:0 12px 30px rgba(15,23,42,.07); }
.pt-ts-buy-price { display:flex; flex-wrap:wrap; align-items:baseline; gap:7px; }
.pt-ts-buy-price strong { color:#0f172a; font-size:27px; font-weight:850; }
.pt-ts-buy-price strong.is-free,
.pt-ts-buy-price strong.is-owned { color:#15803d; }
.pt-ts-buy-price strong.is-owned { font-size:18px; }
.pt-ts-buy-price del { color:#94a3b8; font-size:12px; }
.pt-ts-buy-price small { color:#15803d; font-size:10.5px; font-weight:800; }
.pt-ts-buy-card > p { margin:10px 0 14px; color:#64748b; font-size:12px; line-height:1.55; }
.pt-ts-buy-points { margin:13px 0 0; padding:0; list-style:none; }
.pt-ts-buy-points li { padding:5px 0; color:#475569; font-size:11.5px; }
.pt-ts-buy-points li::before { content:"✓"; margin-right:7px; color:#15803d; font-weight:900; }
.pt-ts-not-found { max-width:620px; margin:60px auto; padding:28px; text-align:center; background:#fff; border:1px solid #e2e8f0; border-radius:14px; }
.pt-ts-not-found h1 { margin:0 0 8px; color:#0f172a; font-size:22px; }
.pt-ts-not-found p { margin:0 0 18px; color:#64748b; }

@media (max-width: 900px) {
    .pt-ts-store-list { grid-template-columns:1fr; }
    .pt-ts-detail-grid { grid-template-columns:1fr; }
    .pt-ts-buy-card { position:static; }
}

@media (max-width: 640px) {
    .pt-ts-store-heading h2 { font-size:24px; }
    .pt-ts-store-heading > span { display:none; }
    .pt-ts-card__head { padding:14px; gap:10px; }
    .pt-ts-card__logo { width:42px; height:42px; }
    .pt-ts-card h3 { font-size:15px; }
    .pt-ts-card__body { padding:12px 14px 14px; }
    .pt-ts-card__breakdown { grid-template-columns:1fr; }
    .pt-ts-card__footer { align-items:flex-end; }
    .pt-ts-detail-wrap { padding:16px 14px 44px; }
    .pt-ts-hero { padding:16px; gap:11px; }
    .pt-ts-hero__logo { width:48px; height:48px; font-size:12px; }
    .pt-ts-hero h1 { font-size:20px; }
    .pt-ts-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .pt-ts-breakdown-grid { grid-template-columns:1fr; }
    .pt-ts-test-row { grid-template-columns:minmax(0,1fr) auto; align-items:start; }
    .pt-ts-test-row__state { grid-column:2; grid-row:1; }
    .pt-ts-row-action { grid-column:1 / -1; width:100%; }
}
