/* Redesigned weekly news issue (src/includes/news-issue-cards-view.php) */
:root { --pv-navy: #19334d; --pv-red: #b70700; --pv-gold: #b5852c; --pv-parchment: #f4ecd8; --pv-line: #e3e0d8; --pv-muted: #5d6873; --pv-ui: 'Montserrat', system-ui, sans-serif; }

.pv-hero { background: linear-gradient(120deg, #fff 0%, var(--pv-parchment) 100%); padding: 48px 0 40px; }
.pv-kicker { font-family: var(--pv-ui); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--pv-gold); margin-left: 10px; }
.pv-hero h1 { font-family: 'Playfair Display', Georgia, serif; font-weight: 900; color: var(--pv-navy); font-size: clamp(30px, 4vw, 46px); line-height: 1.12; margin: 14px 0 16px; }
.pv-summary { font-family: 'Merriweather', Georgia, serif; font-size: 17px; line-height: 1.75; color: #2e3338; margin: 0 0 16px; }
.pv-summary::first-letter { font-family: 'Playfair Display', Georgia, serif; font-weight: 900; float: left; font-size: 54px; line-height: .9; padding: 6px 8px 0 0; color: var(--pv-red); }
.pv-issue-meta { font-family: var(--pv-ui); font-size: 13px; color: var(--pv-muted); }
.pv-hero-img { width: 100%; border-radius: 12px; box-shadow: 0 18px 40px -22px rgba(25,51,77,.6); }

.pv-toc { background: #fff; border-bottom: 1px solid var(--pv-line); }
.pv-toc-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 0; font-family: var(--pv-ui); }
.pv-toc-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pv-muted); margin-right: 4px; }
.pv-chip { font-size: 13px; font-weight: 600; color: var(--pv-navy); border: 1px solid var(--pv-line); border-radius: 999px; padding: 5px 13px; text-decoration: none; background: #fff; white-space: nowrap; }
.pv-chip small { color: var(--pv-muted); font-weight: 500; margin-left: 2px; }
.pv-chip:hover { border-color: var(--pv-navy); color: var(--pv-navy); }
.pv-chip.topic { border-style: dashed; color: #7a5a17; }

.pv-section { padding: 46px 0 10px; scroll-margin-top: 100px; }
.pv-section h2 { font-family: 'Playfair Display', Georgia, serif; font-weight: 900; color: var(--pv-navy); font-size: clamp(24px, 3vw, 32px); border-bottom: 2px solid var(--pv-navy); padding-bottom: 10px; margin-bottom: 22px; }
.pv-section h2 small { font-family: var(--pv-ui); font-size: 13px; font-weight: 500; color: var(--pv-muted); margin-left: 10px; }
.pv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.pv-grid.is-packed { grid-auto-rows: 1px; row-gap: 0; align-items: start; }
.pv-grid > [hidden] { display: none !important; }
.pv-more { display: block; margin: 26px auto 0; font-family: var(--pv-ui); font-weight: 600; font-size: 14px; color: var(--pv-navy); background: #fff; border: 1.5px solid var(--pv-navy); border-radius: 999px; padding: 10px 26px; }
.pv-more:hover { background: var(--pv-navy); color: #fff; }

.pv-card { background: #fff; border: 1px solid var(--pv-line); border-radius: 12px; overflow: hidden; overflow-wrap: anywhere; display: flex; flex-direction: column; transition: box-shadow .18s, transform .18s; }
.pv-card:hover { box-shadow: 0 12px 30px -16px rgba(25,51,77,.5); transform: translateY(-2px); }
.pv-card-img { position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--pv-navy), #2357a2); overflow: hidden; }
.pv-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-card-img .pv-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 18px; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 24px; color: rgba(255,255,255,.92); }
.pv-card-img img + .pv-fallback { display: none; }
.pv-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(183,7,0,.92); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.pv-card-body { padding: 15px 17px 6px; flex: 1; }
.pv-src { font-family: var(--pv-ui); font-size: 11.5px; color: var(--pv-muted); margin-bottom: 6px; }
.pv-src b { color: var(--pv-navy); text-transform: uppercase; letter-spacing: .05em; }
.pv-card h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 19px; line-height: 1.3; margin: 0 0 8px; }
.pv-card h3 a { color: #23272b; text-decoration: none; }
.pv-card h3 a:hover { color: var(--pv-red); }
.pv-desc { font-family: 'Merriweather', Georgia, serif; font-size: 13.5px; line-height: 1.65; color: #474e55; margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pv-card-link { font-family: var(--pv-ui); font-weight: 600; font-size: 12.5px; color: var(--pv-red); text-decoration: none; padding: 12px 17px 16px; }
.pv-card-link:hover { color: var(--pv-navy); }

.pv-post { background: #fbfaf7; position: relative; }
.pv-post-head { display: flex; align-items: center; gap: 10px; padding: 16px 17px 0; font-family: var(--pv-ui); font-weight: 700; font-size: 14px; color: #111; }
.pv-post-head i { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #111; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.pv-post-head small { display: block; font-weight: 500; font-size: 12px; color: var(--pv-muted); }
.pv-post-text { font-family: Georgia, serif; font-size: 15.5px; line-height: 1.6; color: #222; padding: 12px 17px; margin: auto 0; display: -webkit-box; -webkit-line-clamp: 10; -webkit-box-orient: vertical; overflow: hidden; }
.pv-post-text.short { font-family: 'Playfair Display', Georgia, serif; font-size: 23px; line-height: 1.35; color: var(--pv-navy); }
/* X's embed builds out of sight, then replaces the text card once it's ready */
.pv-post-embed { position: absolute; top: 0; left: 0; width: 100%; visibility: hidden; }
.pv-post-embed .twitter-tweet { margin: 0 auto !important; }
.pv-post.is-embedded { background: none; border: 0; border-radius: 0; overflow: visible; box-shadow: none; transform: none; }
.pv-post.is-embedded .pv-post-embed { position: static; visibility: visible; }
.pv-post.is-embedded > .pv-post-head, .pv-post.is-embedded > .pv-post-text, .pv-post.is-embedded > .pv-card-link { display: none; }

.pv-topics { background: var(--pv-parchment); border-radius: 14px; padding: 22px 24px; margin: 46px 0 10px; font-family: var(--pv-ui); }
.pv-topics h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; color: var(--pv-navy); font-size: 22px; margin: 0 0 6px; }
.pv-topics p { color: #5a4a26; font-size: 14px; margin: 0 0 12px; }

@media (min-width: 992px) {
    /* The lead story takes its own row, so nothing beside it gets stretched to match */
    .pv-section.lead .pv-card:first-child:not(.pv-post) { grid-column: 1 / -1; display: grid; grid-template-columns: 58% 1fr; grid-template-rows: 1fr auto; }
    .pv-section.lead .pv-card:first-child:not(.pv-post) .pv-card-img { grid-row: 1 / -1; aspect-ratio: auto; min-height: 340px; }
    .pv-section.lead .pv-card:first-child:not(.pv-post) .pv-card-img img { position: absolute; inset: 0; }
    .pv-section.lead .pv-card:first-child:not(.pv-post) .pv-card-body { padding: 28px 30px 8px; }
    .pv-section.lead .pv-card:first-child:not(.pv-post) .pv-card-link { padding: 12px 30px 26px; }
    .pv-section.lead .pv-card:first-child:not(.pv-post) h3 { font-size: 28px; }
}

/* Will's own words and media inside an issue */
.pv-card-note { font-family: var(--pv-ui); font-size: 13px; font-weight: 600; color: #6b5420; margin: 0 0 8px; }
.pv-text-block { grid-column: 1 / -1; overflow-wrap: anywhere; font-family: 'Merriweather', Georgia, serif; font-size: 15.5px; line-height: 1.75; color: #2e3338; background: var(--pv-parchment); border-left: 4px solid var(--pv-gold); border-radius: 0 12px 12px 0; padding: 18px 22px; }
.pv-text-block p:last-child, .pv-text-block ul:last-child { margin-bottom: 0; }
.pv-embed { grid-column: 1 / -1; width: 100%; max-width: 780px; margin: 0 auto; }
.pv-embed .my-4 { margin: 0 !important; }
.pv-embed img { border-radius: 12px; }
.pv-section h2, .pv-card, .pv-text-block { text-align: left; }
