/* Filmy L2: article (single.php), plain pages (page.php), 404, and the Trinity Forms dark styles at the end. */

.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; font-size: 14px; color: var(--muted); padding: 6px 0 0; }
.crumb a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: var(--soft); }
.crumb a:hover { color: var(--accent); }

/* layout: contents rail | article | side column (1200px+) */
.art { display: grid; gap: 0; }
.a-main { min-width: 0; }
.toc-rail, .art-side { display: none; }
@media (min-width: 1200px) {
    .art { grid-template-columns: minmax(0, 680px) 300px; gap: 0 40px; justify-content: center; }
    .art.has-toc { grid-template-columns: 200px minmax(0, 680px) 300px; gap: 0 32px; }
    .art-side { display: block; padding-top: 60px; }
    .art-side-in { position: sticky; top: 80px; display: grid; gap: 20px; }
    .toc-rail { display: block; padding-top: 60px; }
    .toc-rail .toc { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow: auto; }
    .toc-rail .toc p { font: 700 12px/1.6 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
    :lang(hi) .toc-rail .toc p { font-size: 14px; text-transform: none; }
    .toc-rail .toc li a { min-height: 0; padding: 6px 0 6px 10px; font-size: 14px; border-left: 2px solid var(--line); }
    .toc-rail .toc li a::before { display: none; }
    .toc-rail .toc li a.is-active { color: var(--text); border-left-color: var(--accent); }
    .toc-in { display: none; }
}
}

/* header */
.a-head { padding: 6px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.a-head h1 { font-size: clamp(30px, 7.4vw, 52px); font-weight: 800; letter-spacing: -.01em; margin: 6px 0 12px; overflow-wrap: break-word; }
:lang(hi) .a-head h1 { font-size: clamp(28px, 6.6vw, 46px); line-height: 1.35; }
.a-head .dek { font-size: 19px; line-height: 1.55; color: var(--soft); margin-bottom: 16px; }
.a-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.a-meta .meta { margin: 0; }
.t-head { background: var(--surface); border-top: 3px solid var(--accent); border-radius: 0 0 12px 12px; padding: 18px 16px 18px; border-bottom: 0; }
.stamp { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1.3 var(--body); color: var(--text); border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 8px 14px; margin: 0 0 12px; }
.stamp i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.trackers { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 16px -16px 0; padding: 12px 16px 0; border-top: 1px solid var(--line); }
.trackers::-webkit-scrollbar { display: none; }
.trackers .chip { background: var(--bg); }
.trackers .chip[aria-current] { background: var(--accent); }
@media (min-width: 768px) { .t-head { padding: 24px 28px; } .trackers { margin: 16px 0 0; padding: 12px 0 0; } }

/* share: button in the meta line; native share sheet on phones (site.js), this small menu elsewhere */
.share-pop { position: relative; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font: 700 14px/1 var(--body); color: var(--text); cursor: pointer; list-style: none; user-select: none; }
.share-btn::-webkit-details-marker { display: none; }
.share-btn:hover, .share-pop[open] .share-btn { border-color: var(--accent); color: var(--accent); }
.share-menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 240px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 14px 40px rgba(0, 0, 0, .45); }
@media (max-width: 480px) { .share-menu { left: auto; right: 0; } }
.share-h { margin: 6px 10px 4px; font: 700 12px/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
:lang(hi) .share-h { font-size: 14px; text-transform: none; }
.share-menu a, .share-menu button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 10px; border-radius: 8px; background: none; border: 0; color: var(--text); font: 600 15px/1 var(--body); cursor: pointer; text-align: left; }
.share-menu a:hover, .share-menu button:hover { background: var(--bg); color: var(--accent); }
.share-url { display: block; width: 100%; min-height: 40px; margin: 4px 0; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 400 13px/1 var(--body); }
.share-ok { display: block; padding: 0 10px; font-size: 13px; color: var(--accent); min-height: 0; }
.share-ok:not(:empty) { padding: 4px 10px 6px; }

/* hero */
.hero { margin: 0 0 20px; }
.hero .fr { border-radius: 4px; }

/* contents (inline, below 1200px) */
.toc ol { list-style: none; margin: 0; padding: 0 0 8px; counter-reset: t; }
.toc li a { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 4px 16px; font-size: 15px; line-height: 1.35; color: var(--soft); counter-increment: t; }
.toc li a::before { content: counter(t); font: 700 15px var(--head); color: var(--accent); width: 18px; flex: none; }
.toc li a:hover { color: var(--text); }
.toc-in { border: 1px solid var(--line); border-radius: 10px; margin: 20px 0; background: var(--surface); }
.toc-in summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font: 700 16px var(--body); cursor: pointer; list-style: none; }
.toc-in summary::-webkit-details-marker { display: none; }
.toc-in summary::after { content: "+"; font: 700 22px/1 var(--body); color: var(--accent); }
.toc-in[open] summary::after { content: "–"; }

/* prose */
.prose { font-size: 18px; line-height: 1.75; color: rgba(238, 242, 236, .9); overflow-wrap: break-word; }
:lang(hi) .prose { line-height: 1.9; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.25em; }
.prose strong, .prose b { color: var(--text); font-weight: 700; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(255, 178, 63, .5); }
.prose a:hover { color: var(--text); text-decoration-color: var(--text); }
.prose h2 { font-size: clamp(25px, 5vw, 30px); margin: 36px 0 12px; padding-top: 14px; border-top: 1px solid var(--line); scroll-margin-top: 72px; color: var(--text); }
.prose h3 { font-size: clamp(19px, 3.6vw, 22px); margin: 28px 0 8px; color: var(--text); scroll-margin-top: 72px; }
.prose h2 + h3 { margin-top: 12px; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.prose li { margin: .45em 0; padding-left: .2em; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose li > p { margin: 0; }
.prose blockquote { margin: 30px 0; padding: 18px 0 14px; border-top: 2px solid var(--text); border-bottom: 1px solid var(--line); font: 600 clamp(21px, 4.4vw, 25px)/1.35 var(--head); color: var(--text); }
.prose blockquote p { margin: 0 0 8px; }
.prose img { border-radius: 6px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
/* drop cap on the opening paragraph (English; a Devanagari letter can't be split from its vowel sign) */
.lang-en.single-post .a-main:not(.is-tracker) .prose > p:first-child:not(:has(> em:only-child))::first-letter { float: left; font: 800 74px/.8 var(--head); color: var(--accent); margin: 8px 10px 0 0; }
/* "Updated ..." note that opens some posts */
.prose > p:first-child:has(> em:only-child) { font-size: 14px; line-height: 1.6; color: var(--muted); padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 8px 8px 0; }
.prose > p:first-child:has(> em:only-child) em { font-style: normal; }
.prose .nwt-table { font-size: 15px; }
.prose .ad-slot { margin: 28px auto; }

/* FAQ cards */
.nwt-faq { display: grid; gap: 10px; margin: 0 0 1.6em; }
.nwt-faq__item { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; padding: 16px 18px; }
.prose .nwt-faq__item h3 { font: 600 19px/1.35 var(--head); margin: 0 0 6px; }
.nwt-faq__item p { font-size: 16.5px; line-height: 1.65; }
.nwt-faq__item > :last-child { margin-bottom: 0; }

/* closing call to action: a paragraph holding a single link */
.prose > p:last-child > a:only-child:not(.nwt-email-link) { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; background: var(--accent); color: var(--bg); text-decoration: none; padding: 12px 22px; border-radius: 999px; font: 700 15px/1.3 var(--body); }
.prose > p:last-child > a:only-child:not(.nwt-email-link) strong { color: inherit; }

/* like / dislike */
.vote { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 32px 0 0; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; background: var(--surface); }
.vote h2 { font-size: 21px; }
.vote-b { display: flex; gap: 10px; }
.vb { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; min-width: 76px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--text); font: 700 16px/1 var(--body); cursor: pointer; font-variant-numeric: tabular-nums; }
.vb:hover:not([disabled]) { border-color: var(--accent); }
.vb[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.vb[disabled] { cursor: default; opacity: .75; }
.vote-msg { width: 100%; margin: 0; font-size: 14px; color: var(--muted); }
.vote-msg:empty { display: none; }

/* read next */
.next { margin-top: 36px; }
.next h2 { font-size: 26px; margin-bottom: 4px; }
.next-g { display: grid; gap: 0; }
.next-g a { display: grid; grid-template-columns: 1fr 112px; grid-template-areas: "k f" "t f" "m f"; gap: 0 14px; align-content: start; padding: 16px 0; border-top: 1px solid var(--line); }
.next-g .fr { grid-area: f; border-radius: 4px; }
.next-g .kick { grid-area: k; margin: 0 0 2px; }
.next-g h3 { grid-area: t; font-size: 19px; line-height: 1.3; margin-bottom: 4px; }
:lang(hi) .next-g h3 { line-height: 1.45; }
.next-g .meta { grid-area: m; }
@media (min-width: 768px) {
    .next-g { grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .next-g a { display: block; border-top: 2px solid var(--text); }
    .next-g .fr { margin-bottom: 10px; }
}

/* side column */
.mini { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--surface); }
.mini h2 { font-size: 19px; margin-bottom: 6px; }
.mini a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; border-top: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.mini a span { color: var(--muted); font-weight: 400; font-size: 13px; }
.mini a[aria-current] { color: var(--accent); }
.mini.topic a { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: start; padding: 12px 0; font: 600 15px/1.3 var(--head); }
.mini.topic .st img { display: block; width: 96px; height: 54px; object-fit: cover; border-radius: 6px; background: var(--brand, #0B2427); }
.mini.topic small { display: block; margin-top: 4px; font: 400 12px var(--body); color: var(--muted); }
.mini.topic a:hover { color: var(--accent); }

.nwt-suggest { margin: 32px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.nwt-suggest h2 { margin: 0 0 14px; font-size: 22px; }

/* plain pages + 404 */
.a-page { max-width: 760px; margin: 0 auto; }
.nwt-email-link { color: var(--accent); }
.nf { max-width: 680px; margin: 0 auto; padding: 56px 0 24px; }
.nf h1 { font-size: clamp(34px, 8vw, 52px); margin-bottom: 12px; }
.nf p { color: var(--soft); font-size: 17px; }
.nf .sbox { margin: 20px 0 16px; }
.sugg { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 767.98px) {
    .prose { font-size: 17px; }
    .nwt-faq__item { padding: 14px 16px; }
}

/* Suggestion form (Trinity Forms). The plugin paints fields white but leaves the text colour to the theme,
   which is light here, so typed text and the dropdown options were white on white. Dark fields to match the site. */
.trinity-forms-form {
    --trinity-forms-field-bg: var(--nwt-surface);
    --trinity-forms-border: var(--nwt-line);
    --trinity-forms-accent: var(--nwt-primary);
    color-scheme: dark;
}
.trinity-forms-form input:not([type=hidden]):not([type=submit]),
.trinity-forms-form textarea,
.trinity-forms-form select { color: var(--nwt-text); }
.trinity-forms-form input::placeholder,
.trinity-forms-form textarea::placeholder { color: var(--nwt-muted); }
.trinity-forms-form select option { background: var(--nwt-surface); color: var(--nwt-text); }
/* the plugin colours the empty "Choose..." state dark navy: keep it readable on the dark field */
.trinity-forms-form select:invalid { color: var(--nwt-muted) !important; }
.trinity-forms-form select:valid { color: var(--nwt-text) !important; }
.trinity-forms-form .trinity-forms-field small,
.trinity-forms-form .trinity-forms-sublabel { color: var(--nwt-muted); }

/* plain pages (page.php): the form on its own panel */

.a-page .trinity-forms-form { margin-top: 18px; background: var(--nwt-surface); border: 1px solid var(--nwt-line); border-radius: 14px; padding: 24px; }

/* marigold buttons need dark text */
.trinity-forms-form button[type=submit], .trinity-forms-form input[type=submit] { color: #071A1C !important; }
.nf .kick { color: var(--accent); }
.a-trust { margin: 28px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted, inherit); }
.a-trust a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
/* official YouTube videos: 16:9 thumbnail + play button; the iframe takes its place on click */
.prose .yt { margin: 24px 0; }
.prose .yt .yt-b, .prose .yt iframe { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; overflow: hidden; background: #000; padding: 0; cursor: pointer; }
.prose .yt .yt-b img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; border-radius: 0; transition: opacity .2s; }
.prose .yt .yt-b:hover img, .prose .yt .yt-b:focus-visible img { opacity: .85; }
.prose .yt .yt-b:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.prose .yt .yt-p { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 14px; background: var(--accent); box-shadow: 0 4px 18px rgba(0,0,0,.45); }
.prose .yt .yt-p::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #1b1300; }
.prose .yt figcaption { margin-top: 8px; font-size: .88rem; color: var(--muted); }
.prose .yt figcaption span { white-space: nowrap; }

/* byline + release countdown (2.6.0) */
.a-meta .by { color: var(--soft); font-weight: 700; }
.a-meta .by:hover { color: var(--accent); }
.rel-box { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 16px; margin: 22px 0; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; background: var(--surface); }
.rel-box p { margin: 0; }
.rel-k { grid-column: 1 / -1; font: 700 12px/1.4 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rel-t { font-size: 16px; line-height: 1.45; color: var(--soft); }
.rel-t b { display: block; font: 700 20px/1.3 var(--head); color: var(--text); }
.rel-c { font: 800 22px/1.2 var(--head); color: var(--accent); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rel-c span { display: inline-block; margin-left: 10px; }
.rel-c small { font: 600 13px/1 var(--body); color: var(--muted); margin-left: 3px; }
.rel-cal { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 6px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: var(--bg) !important; font: 700 15px/1 var(--body); text-decoration: none !important; }
.rel-cal:hover { filter: brightness(1.08); }
@media (max-width: 560px) {
    .rel-box { grid-template-columns: 1fr; }
    .rel-c { text-align: left; }
    .rel-c span:first-child { margin-left: 0; }
    .rel-cal { justify-self: stretch; justify-content: center; }
}

/* Trinity Forms Poll mode (2.25+). The results box sits next to the form, so it doesn't inherit the form's accent
   (bars fell back to WP blue): set it on the wrapper. Answer rows 44px for thumbs. Tested locally 2026-11-20. */
.trinity-forms-poll { --trinity-forms-accent: var(--accent); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 18px; margin: 24px 0; }
.trinity-forms-poll .trinity-forms-form { background: none; border: 0; padding: 0; margin: 0; }
.trinity-forms-poll label.trinity-forms-radio { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.trinity-forms-poll input[type="radio"] { accent-color: var(--accent); width: 20px; height: 20px; }
.trinity-forms-poll .tf-poll-track { background-color: rgba(238, 242, 236, .12) !important; }
.trinity-forms-poll .tf-poll-results { color: var(--text); }

/* WhatsApp channel box (2.8.0): under the article, before like / dislike */
.wa-box { display: flex; align-items: center; gap: 14px 16px; flex-wrap: wrap; margin: 28px 0 0; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid #25D366; border-radius: 8px; background: var(--surface); }
.wa-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(37, 211, 102, .14); color: #25D366; flex: none; }
.wa-t { flex: 1 1 260px; min-width: 0; }
.wa-t h2 { font-size: 20px; margin: 0 0 4px; }
.wa-t p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--soft); }
.wa-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: #25D366; color: #071A1C !important; font: 700 15px/1 var(--body); text-decoration: none !important; white-space: nowrap; }
.wa-btn:hover { filter: brightness(1.08); }
@media (max-width: 560px) { .wa-btn { flex: 1 1 100%; } }
