/* Podcast, newsletter and book pages (page-templates/podcasts.php, newsletter.php, book.php).
   Loaded after content.css by inc/pages-media.php. Tokens come from nsp.css. */

.nsp-pm-sec { padding-block: 88px 72px; }
.nsp-pm-intro { margin: -4px 0 28px; max-width: 56ch; color: var(--muted); }

/* video thumbnails with a play mark */
.nsp-pm-thumb { position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--ink-2); aspect-ratio: 16 / 9; }
.nsp-pm-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.nsp-pm-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(11, 10, 8, .78); box-shadow: 0 0 0 1px rgba(247, 243, 232, .35); transition: background-color .15s; }
.nsp-pm-play::after { content: ""; position: absolute; left: 26px; top: 20px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent var(--white); }
a:hover .nsp-pm-play, a:focus-visible .nsp-pm-play { background: var(--vermilion); }
a:hover .nsp-pm-thumb img { transform: scale(1.03); }

/* podcast: latest episode in the dark head */
.nsp-pm-feature { display: grid; gap: 6px; max-width: 480px; width: 100%; justify-self: end; color: var(--white); text-decoration: none; }
.nsp-pm-feature .nsp-pm-thumb { margin-bottom: 10px; box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .9); }
.nsp-pm-feature-k { font: 600 13px/1.3 var(--sans); letter-spacing: .03em; color: var(--spark); }
.nsp-pm-feature-t { font: 400 clamp(22px, 2.2vw, 26px)/1.3 var(--serif); }
.nsp-pm-feature-g { font-size: 15px; color: rgba(247, 243, 232, .65); }
.nsp-pm-feature:hover { color: var(--spark); }

/* podcast: episode grid */
.nsp-pm-eps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 22px; }
.nsp-pm-ep a { display: grid; gap: 4px; color: var(--fg); text-decoration: none; }
.nsp-pm-ep .nsp-pm-thumb { margin-bottom: 10px; }
.nsp-pm-ep .nsp-pm-play { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
.nsp-pm-ep .nsp-pm-play::after { left: 19px; top: 15px; border-width: 9px 0 9px 14px; }
.nsp-pm-ep-k { font: 600 13px/1.3 var(--sans); color: var(--vermilion); }
.nsp-pm-ep-t { font: 400 21px/1.3 var(--serif); }
.nsp-pm-ep-g { font-size: 15px; color: var(--muted); }
.nsp-pm-ep a:hover .nsp-pm-ep-t { color: var(--vermilion); }

/* podcast: guest invitation */
.nsp-pm-guest { padding-bottom: 88px; }
.nsp-pm-guest-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 56px; align-items: end; padding: 36px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.nsp-pm-guest-in p { margin: 0 0 10px; max-width: 62ch; }
.nsp-pm-guest-in .nsp-row { margin: 0; }
.nsp-pm-guest q { font-family: var(--latin); font-weight: 600; overflow-wrap: anywhere; }

/* newsletter: WPForms 88075 inside the free-resources form card */
.nsp-pm-form .wpforms-container .wpforms-form input[type="text"] { display: block; width: 100%; max-width: none; height: auto; min-height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--fg); font: 400 17px/1.2 var(--sans); box-shadow: none; }
.nsp-pm-form .wpforms-container .wpforms-form input[type="text"]:focus { outline: 3px solid var(--vermilion); outline-offset: 2px; border-color: var(--fg); }
.nsp-pm-form .wpforms-container .wpforms-form .wpforms-field-row { max-width: none; }
.nsp-pm-form .wpforms-container .wpforms-form .wpforms-field-sublabel { font-size: 13px; color: var(--muted); }

/* newsletter: topic list */
.nsp-pm-topics { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.nsp-pm-topics li { padding: 14px 0 14px 30px; border-top: 1px solid var(--line); position: relative; font-size: 17px; }
.nsp-pm-topics li::before { content: "✓"; position: absolute; left: 4px; top: 14px; color: var(--vermilion); font-family: var(--latin); font-weight: 600; }

/* book */
.nsp-pm-sub { margin: -4px 0 14px; font: 400 clamp(20px, 2vw, 24px)/1.4 var(--serif); color: var(--spark); }
.nsp-pm-cover { margin: 0; justify-self: end; max-width: 560px; width: 100%; }
.nsp-pm-cover img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .9); }
.nsp-stats .nsp-pm-dd-bn { font-family: var(--serif); font-weight: 400; }
.nsp-pm-head-btns { margin-top: 30px; }
.nsp-dark-head .nsp-pm-head-btns .nsp-btn-line { color: var(--white); border-color: rgba(247, 243, 232, .45); }
.nsp-dark-head .nsp-btn-line:hover { color: var(--spark); border-color: var(--spark); }
.nsp-pm-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
.nsp-pm-split-rev { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.nsp-pm-photo { margin: 0; }
.nsp-pm-photo img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(30, 20, 0, .5); }
.nsp-pm-copy > p:not(.nsp-eyebrow) { max-width: 60ch; }
.nsp-pm-quote { margin: 0 0 22px; padding: 18px 22px; border-left: 3px solid var(--vermilion); border-radius: 0 12px 12px 0; background: var(--paper); }
.nsp-pm-quote p { margin: 0; font: 400 20px/1.6 var(--serif); }
.nsp-pm-quote cite { display: block; margin-top: 10px; font: 600 14px/1.3 var(--sans); font-style: normal; color: var(--muted); }
.nsp-pm-learn-sec { background: var(--bone-2); padding-block: 88px; }
.nsp-pm-learn { list-style: none; counter-reset: pl; margin: 8px 0 0; padding: 0; }
.nsp-pm-learn li { counter-increment: pl; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.7; }
.nsp-pm-learn li::before { content: counter(pl, bengali); font: 400 24px/1.3 var(--serif); color: var(--vermilion); }
.nsp-pm-chapters { list-style: none; counter-reset: ch; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 36px; }
.nsp-pm-chapters li { counter-increment: ch; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); font: 400 19px/1.4 var(--serif); }
.nsp-pm-chapters li::before { content: counter(ch, bengali); font: 400 30px/1 var(--serif); color: var(--vermilion); }
.nsp-pm-author { background: transparent; padding-block: 72px; }
.nsp-pm-author .nsp-founder-card img { aspect-ratio: 1091 / 1169; }

/* responsive */
@media (max-width: 1060px) {
	.nsp-pm-eps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nsp-pm-chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.nsp-pm-feature, .nsp-pm-cover { justify-self: start; }
	.nsp-pm-split, .nsp-pm-split-rev { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.nsp-pm-split .nsp-pm-photo { max-width: 420px; }
	.nsp-pm-split-rev .nsp-pm-photo { order: -1; }
	.nsp-pm-guest-in { grid-template-columns: minmax(0, 1fr); align-items: start; }
	.nsp-pm-topics { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
	.nsp-pm-sec { padding-block: 64px 48px; }
	.nsp-pm-eps, .nsp-pm-chapters { grid-template-columns: minmax(0, 1fr); }
	.nsp-pm-guest-in { padding: 24px 20px; }
	.nsp-pm-learn-sec { padding-block: 64px; }
	.nsp-pm-chapters li { font-size: 18px; }
}
