/* ==========================================================================
   Viduthalai — base components (Concept A)
   Tokens come from theme.json (--wp--preset--*). Keep this file lean.
   ========================================================================== */

:root {
	--vd-ink: var(--wp--preset--color--ink, #111);
	--vd-red: var(--wp--preset--color--red, #C8102E);
	--vd-paper: var(--wp--preset--color--paper, #fff);
	--vd-cream: var(--wp--preset--color--cream, #F6F3EE);
	--vd-muted: var(--wp--preset--color--muted, #5A5A5A);
	--vd-rule: var(--wp--preset--color--rule, #E5E5E5);
	--vd-head: var(--wp--preset--font-family--headline);
	--vd-wrap: 1280px;
	--vd-gutter: clamp(16px, 3vw, 32px);
}

.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; z-index: 100; top: 8px; left: 8px; background: var(--vd-paper); padding: 10px 14px; outline: 2px solid var(--vd-red); }

.vd-wrap { max-width: var(--vd-wrap); margin-inline: auto; padding-inline: var(--vd-gutter); box-sizing: border-box; }
.wp-site-blocks { padding-inline: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.vd-hide-sm { }
@media (max-width: 900px) { .vd-hide-sm { display: none !important; } }

/* Buttons -------------------------------------------------------------- */
.vd-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap; }
.vd-btn--red { background: var(--vd-red); color: #fff; }
.vd-btn--red:hover { background: var(--vd-ink); color: #fff; }
.vd-iconbtn { width: 44px; height: 44px; border: 1px solid #D6D0C6; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--vd-ink); background: var(--vd-paper); list-style: none; }
.vd-iconbtn::-webkit-details-marker { display: none; }
.vd-kicker-muted { font-size: 12px; color: var(--vd-muted); letter-spacing: .04em; }

/* Header: utility bar --------------------------------------------------- */
.vd-utility { background: var(--vd-ink); color: #fff; font-size: 13px; }
.vd-utility__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.vd-utility__nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.vd-utility a { color: #fff; }
.vd-utility a:hover { color: #FFB3BD; }

/* Header: masthead ------------------------------------------------------ */
.vd-masthead { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 24px; padding-block: 26px 18px; }
.vd-masthead__side { display: flex; align-items: center; gap: 12px; }
.vd-masthead__side--end { justify-content: flex-end; }
.vd-masthead__brand { text-align: center; }
.vd-wordmark { font-family: var(--vd-head); font-weight: 800; font-size: clamp(52px, 7vw, 88px); line-height: .95; color: var(--vd-red); letter-spacing: -0.01em; display: inline-block; }
.vd-wordmark:hover { color: var(--vd-red); }
.vd-wordmark--s { font-size: 40px; }
.vd-wordmark--footer { color: #fff; font-size: 40px; }
.vd-wordmark.has-logo img { max-height: 96px; width: auto; }
.vd-tagline { margin: 10px 0 0; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.vd-epaper-mini { display: flex; gap: 12px; align-items: center; }
.vd-epaper-mini__thumb { width: 52px; height: 68px; border: 1px solid #D6D0C6; background: #E4DFD7 repeating-linear-gradient(135deg, rgba(0,0,0,.035) 0 10px, transparent 10px 20px); display: flex; align-items: center; justify-content: center; font-size: 10px; color: #6B6459; flex-shrink: 0; }
.vd-epaper-mini__text { display: flex; flex-direction: column; gap: 2px; }
.vd-epaper-mini__title { font-family: var(--vd-head); font-weight: 700; font-size: 15px; line-height: 1.3; }
.vd-epaper-mini__cta { font-size: 13px; font-weight: 600; color: var(--vd-red); }

/* Search (no-JS details) ------------------------------------------------ */
.vd-search { position: relative; }
.vd-search[open] .vd-search__form { display: flex; }
.vd-search__form { display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; gap: 8px; background: var(--vd-paper); padding: 10px; border: 1px solid var(--vd-ink); box-shadow: 0 10px 30px rgba(0,0,0,.15); width: min(420px, 86vw); }
.vd-search__form input { flex: 1; min-height: 44px; padding: 0 12px; border: 1px solid #D6D0C6; font: inherit; }
.vd-search__form button { min-height: 44px; padding: 0 16px; border: 0; background: var(--vd-ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }

/* Primary nav ----------------------------------------------------------- */
.vd-nav { border-top: 3px solid var(--vd-ink); border-bottom: 1px solid var(--vd-ink); }
.vd-nav__list, .vd-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; font-family: var(--vd-head); font-weight: 600; font-size: 16px; }
.vd-nav li { position: relative; }
.vd-nav li > a { display: block; padding: 12px 0; }
.vd-nav .current-menu-item > a, .vd-nav .current-menu-ancestor > a { color: var(--vd-red); }
.vd-nav .menu-item-has-children > a::after { content: " ▾"; font-size: .8em; }
.vd-nav .sub-menu { display: none; position: absolute; top: 100%; right: 0; z-index: 40; list-style: none; margin: 0; padding: 14px 18px; background: var(--vd-paper); border: 1px solid var(--vd-ink); box-shadow: 0 14px 34px rgba(0,0,0,.15); columns: 3 180px; column-gap: 24px; width: max-content; max-width: min(720px, 90vw); font-family: var(--wp--preset--font-family--body); font-weight: 400; font-size: 14px; }
.vd-nav .sub-menu a { padding: 5px 0; }
.vd-nav li:hover > .sub-menu, .vd-nav li:focus-within > .sub-menu { display: block; }

/* Mobile nav (details) -------------------------------------------------- */
.vd-mnav { display: none; }
.vd-mnav__panel { position: fixed; inset: 0 auto 0 0; width: min(340px, 88vw); background: var(--vd-paper); z-index: 60; padding: 72px 20px 24px; overflow-y: auto; box-shadow: 10px 0 40px rgba(0,0,0,.25); display: flex; flex-direction: column; gap: 16px; }
.vd-mnav[open] > summary { position: fixed; top: 12px; left: 12px; z-index: 61; }
.vd-mnav__panel ul { list-style: none; margin: 0; padding: 0; font-family: var(--vd-head); font-weight: 600; font-size: 18px; }
.vd-mnav__panel li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--vd-rule); }
.vd-mnav__panel .sub-menu { padding-left: 14px; font-weight: 400; font-size: 15px; }
@media (max-width: 900px) {
	.vd-mnav { display: block; }
	.vd-nav:not(.vd-nav--inline):not(.vd-nav--article) { display: none; }
	.vd-masthead { grid-template-columns: 44px 1fr 44px; padding-block: 12px; gap: 8px; }
	.vd-wordmark { font-size: 44px; }
	.vd-tagline { display: none; }
	.vd-utility__nav { display: none; }
	.vd-utility__row { justify-content: center; min-height: 32px; font-size: 12px; }
}

/* Compact header -------------------------------------------------------- */
.vd-header--compact { border-bottom: 1px solid var(--vd-ink); background: var(--vd-paper); position: sticky; top: 0; z-index: 50; }
.admin-bar .vd-header--compact { top: 32px; }
.vd-compact { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.vd-compact .vd-nav--inline { border: 0; flex: 1; overflow: hidden; }
.vd-compact .vd-nav--inline .vd-nav__list { justify-content: flex-start; flex-wrap: nowrap; font-size: 15px; gap: 20px; }
.vd-compact .vd-nav--inline .vd-nav__list > li:nth-child(n+9) { display: none; }
.vd-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.vd-progress { height: 3px; background: #EFEFEF; }
.vd-progress span { display: block; height: 3px; width: 0; background: var(--vd-red); }
@supports (animation-timeline: scroll()) {
	.vd-progress span { width: 100%; transform-origin: 0 50%; animation: vd-progress linear both; animation-timeline: scroll(root); }
	@keyframes vd-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
@media (max-width: 900px) { .vd-compact .vd-nav--inline { display: none; } .vd-compact { gap: 8px; min-height: 60px; } .vd-wordmark--s { font-size: 32px; } }

/* Main + cards ---------------------------------------------------------- */
.vd-main { padding-block: 32px 56px; }
.vd-note { background: var(--vd-cream); padding: 14px 18px; font-size: 14px; color: var(--vd-muted); }
.vd-archive-head { border-bottom: 3px solid var(--vd-ink); padding-bottom: 12px; margin-bottom: 28px; }
.vd-archive-head h1 { margin: 0; }
.vd-cards { gap: 32px 28px !important; }
.vd-card { gap: 8px !important; }
.vd-card__img img { border-radius: 0; }
.vd-card__title { font-size: var(--wp--preset--font-size--l); line-height: 1.4; margin: 0; }
.vd-kicker, .vd-kicker a { font-size: 12px; font-weight: 700; color: var(--vd-red); letter-spacing: .03em; }
.vd-card__date { font-size: 13px; color: var(--vd-muted); }
@media (max-width: 900px) { .vd-cards { grid-template-columns: minmax(0,1fr) !important; } }

/* Single (refined in step 2) ------------------------------------------- */
.vd-single__title { font-size: var(--wp--preset--font-size--display); line-height: 1.22; }
.vd-prose { font-size: 19px; line-height: 1.85; }
.vd-prose p { margin-block: 0 1.2em; }
.vd-tags a, .vd-tags .vd-tag { display: inline-block; color: inherit; cursor: default; font-size: 13px; padding: 6px 12px; border: 1px solid #D6D0C6; border-radius: 999px; margin: 0 6px 6px 0; }

/* Footer + reveal-from-under ------------------------------------------- */
.vd-footer { background: var(--vd-ink); color: #fff; padding-block: 48px 28px; }
.vd-footer a { color: #D0D0D0; }
.vd-footer a:hover { color: #fff; }
.vd-footer-inner { display: flex; flex-direction: column; gap: 32px; }
.vd-fcols { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 32px; }
.vd-fcol { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.vd-fcol ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.vd-fcol__h { font-weight: 700; color: #fff; margin-bottom: 4px; }
.vd-fcol__tag { font-size: 13px; color: #B5B5B5; line-height: 1.6; }
.vd-copyright { border-top: 1px solid #333; padding-top: 18px; margin: 0; font-size: 12px; color: #9A9A9A; }
@media (max-width: 900px) { .vd-fcols { grid-template-columns: repeat(2, minmax(0,1fr)); } }

.wp-site-blocks > :not(footer) { position: relative; z-index: 1; background: var(--vd-paper); }
.wp-site-blocks > main, .wp-site-blocks > .vd-main { box-shadow: 0 30px 50px rgba(0,0,0,.45); border-bottom: 4px solid var(--vd-red); }
.wp-site-blocks > footer.reveal { position: sticky; bottom: 0; z-index: 0; }
@media (max-width: 900px), (max-height: 760px) {
	.wp-site-blocks > footer.reveal { position: static; }
	.wp-site-blocks > main, .wp-site-blocks > .vd-main { box-shadow: none; }
}

.vd-header-part { display: contents; }
.vd-header { position: relative; z-index: 2; background: var(--vd-paper); }
.vd-header--compact { z-index: 50; }

/* Fixes after first staging render ------------------------------------- */
.vd-footer-inner > * { width: 100%; max-width: var(--vd-wrap); box-sizing: border-box; }
.vd-related, .vd-copyright { width: 100%; }
.vd-nav__list, .vd-nav .menu { flex-wrap: nowrap; gap: 4px 20px; font-size: 15.5px; }
.vd-nav li > a { white-space: nowrap; }
.vd-compact .vd-nav--inline .vd-nav__list > li:nth-child(n+7) { display: none; }
@media (max-width: 1180px) { .vd-nav:not(.vd-nav--inline) .vd-nav__list { gap: 4px 14px; font-size: 14.5px; } }

/* ==========================================================================
   Step 2 — Article page
   ========================================================================== */
.vd-article { padding-block: 24px 0; }
.vd-article__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; padding-bottom: 56px; }
.vd-article__body { max-width: 760px; min-width: 0; }
.vd-article__body > * + * { margin-top: 14px; }
.vd-crumbs { font-size: 13px; color: var(--vd-muted); }
.vd-crumbs a { color: var(--vd-muted); }
.vd-crumbs a:hover { color: var(--vd-red); }
.vd-article .vd-kicker { display: inline-block; margin-top: 16px; font-size: 13px; letter-spacing: .04em; }
.vd-article__title { margin: 8px 0 0; font-size: var(--wp--preset--font-size--display); line-height: 1.24; }
.vd-article__standfirst { font-size: 20px; line-height: 1.65; color: #3A3A3A; }
.vd-article__standfirst .wp-block-post-excerpt__more-text { display: none; }
.vd-ameta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-block: 1px solid var(--vd-rule); padding-block: 12px; margin-top: 18px !important; }
.vd-ameta__info { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.vd-ameta__by { font-weight: 600; }
.vd-ameta__sub { color: var(--vd-muted); }
.vd-ameta__tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; position: relative; }
.vd-tool { min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid #D6D0C6; background: var(--vd-paper); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: 15px; color: var(--vd-ink); cursor: pointer; }
.vd-tool:hover { border-color: var(--vd-ink); color: var(--vd-ink); }
.vd-tool--wa { background: #25D366; border-color: #25D366; color: #0B3D20; font-weight: 700; font-size: 14px; padding: 0 16px; }
.vd-tool--wa:hover { background: #1EBE57; color: #0B3D20; }
.vd-tool__msg { position: absolute; right: 0; top: calc(100% + 6px); font-size: 12px; color: #0B6B32; white-space: nowrap; }
.vd-article__figure { margin-top: 24px !important; }
.vd-article__figure img { width: 100%; height: auto; display: block; }

.vd-prose { font-size: calc(19px * var(--vd-font-scale, 1)); line-height: 1.85; color: #1E1E1E; margin-top: 28px !important; overflow-wrap: anywhere; }
.vd-prose > * { margin-block: 0 1.15em; }
.vd-prose h1, .vd-prose h2, .vd-prose h3, .vd-prose h4 { font-size: 1.3em; line-height: 1.4; margin: 1.6em 0 .6em; }
.vd-prose img { max-width: 100%; height: auto; }
.vd-prose figure { margin-inline: 0; }
.vd-prose a { color: var(--vd-red); text-decoration: underline; text-underline-offset: 3px; }
.vd-prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--vd-red); font-family: var(--vd-head); font-size: 1.3em; font-weight: 600; line-height: 1.45; }
.vd-prose table { width: 100%; border-collapse: collapse; font-size: .85em; display: block; overflow-x: auto; }
.vd-prose td, .vd-prose th { border: 1px solid var(--vd-rule); padding: 6px 10px; }
.vd-readalso { margin: 8px 0 26px !important; padding: 18px 20px; background: var(--vd-cream); display: flex; flex-direction: column; gap: 6px; }
.vd-readalso__k { font-size: 12px; font-weight: 700; color: var(--vd-red); letter-spacing: .04em; }
.vd-readalso a { font-family: var(--vd-head); font-size: 19px; font-weight: 600; line-height: 1.4; color: var(--vd-ink); text-decoration: none; }
.vd-readalso a:hover { color: var(--vd-red); }

.vd-tags { margin-top: 8px !important; }
.vd-aend { margin-top: 32px !important; background: var(--vd-ink); color: #fff; padding: 24px; }
.vd-aend p { margin: 0 0 10px; }
.vd-aend__h { font-family: var(--vd-head); font-size: 22px; font-weight: 700; }
.vd-aend__p { font-size: 15px; line-height: 1.6; color: #D0D0D0; }
.vd-aend__cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 0 !important; }
.vd-btn--ghost { border: 1px solid #fff; color: #fff; }
.vd-btn--ghost:hover { background: #fff; color: var(--vd-ink); }

.vd-article__side { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 96px; }
.vd-sidehead { margin: 0 0 4px; font-size: 18px; border-top: 3px solid var(--vd-ink); padding-top: 10px; }
.vd-latest ul { list-style: none; margin: 0; padding: 0; }
.vd-latest li a { display: block; font-size: 15px; line-height: 1.5; padding: 10px 0; border-bottom: 1px solid var(--vd-rule); }
.vd-latest__t { color: var(--vd-muted); font-size: 13px; margin-right: 4px; }
.vd-ecard { display: flex; gap: 14px; align-items: center; background: var(--vd-cream); padding: 18px; }
.vd-ecard__txt { display: flex; flex-direction: column; gap: 4px; }
.vd-ecard__k { font-size: 12px; font-weight: 700; color: var(--vd-red); }
.vd-ecard__t { font-family: var(--vd-head); font-weight: 700; font-size: 16px; line-height: 1.3; }
.vd-ecard__c { font-size: 14px; font-weight: 600; color: var(--vd-red); }

.vd-related-posts { background: var(--vd-cream); padding-block: 40px 48px; }
.vd-related-posts h2 { margin: 0 0 20px; font-size: 24px; }
.vd-rgrid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
.vd-rcard { display: flex; flex-direction: column; gap: 10px; }
.vd-rcard__img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.vd-rcard--noimg { border-top: 3px solid var(--vd-ink); padding-top: 12px; }
.vd-rcard__t { font-family: var(--vd-head); font-size: 18px; font-weight: 600; line-height: 1.4; }

.vd-epaper__viewer { margin-top: 20px; }
.vd-epaper__viewer iframe { width: 100% !important; }

@media (max-width: 1024px) {
	.vd-article__grid { grid-template-columns: minmax(0,1fr); gap: 40px; }
	.vd-article__side { position: static; }
	.vd-rgrid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px) {
	.vd-article__title { font-size: 28px; }
	.vd-tool--wa span { font-size: 13px; }
	.vd-rgrid { grid-template-columns: minmax(0,1fr); }
	.vd-rcard:not(.vd-rcard--noimg) { display: grid; grid-template-columns: minmax(0,1fr) 110px; grid-template-areas: "k img" "t img"; column-gap: 12px; row-gap: 4px; }
	.vd-rcard:not(.vd-rcard--noimg) .vd-rcard__img { grid-area: img; aspect-ratio: 1; }
	.vd-rcard:not(.vd-rcard--noimg) .vd-kicker { grid-area: k; }
	.vd-rcard:not(.vd-rcard--noimg) .vd-rcard__t { grid-area: t; font-size: 16px; }
}
@media print {
	.vd-header-part, .vd-article__side, .vd-ameta__tools, .vd-aend, .vd-related-posts, footer { display: none !important; }
	.vd-article__grid { display: block; }
}

/* Homepage main: blocks manage their own spacing */
.vd-main.vd-home { padding-block: 0; }
@media (max-width: 900px) { .vd-fcol--brand { grid-column: 1 / -1; } }

/* Archive / search list: photo only when the story has one */
.vd-alist { max-width: 900px; margin: 0 !important; }
.vd-alist > li { border-bottom: 1px solid var(--vd-rule); }
.vd-ali { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; padding: 20px 0; align-items: start; }
.vd-ali:not(:has(.vd-ali__img img)) { grid-template-columns: minmax(0, 1fr); }
.vd-ali__body > * { margin: 0 0 6px !important; }
.vd-ali__title { font-size: var(--wp--preset--font-size--l); line-height: 1.4; }
.vd-ali__ex { font-size: 16px; color: #333; line-height: 1.65; }
.vd-ali__ex .wp-block-post-excerpt__excerpt { margin: 0; }
.vd-ali__date { font-size: 13px; color: var(--vd-muted); }
.vd-ali__img { margin: 0 !important; }
.vd-ali__img img { border-radius: 0; }
@media (max-width: 600px) {
	.vd-ali { grid-template-columns: minmax(0, 1fr) 104px; gap: 14px; padding: 16px 0; }
	.vd-ali__title { font-size: 18px; }
	.vd-ali__ex { display: none; }
}
.vd-alist, .vd-archive-head { max-width: 900px; margin-inline: auto !important; }
.vd-ali__ex { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 600px) { .vd-ali__ex { display: none; } .vd-ali .vd-ali__title { font-size: 18px !important; } }
body.category .vd-ali .vd-kicker { display: none; }

/* Article header (replaces the old compact bar): masthead row scrolls away,
   the full section nav stays pinned with a small wordmark. ----------------- */
.vd-header--article { --vd-ahead-h: 92px; position: sticky; top: calc(-1 * var(--vd-ahead-h)); z-index: 50; background: var(--vd-paper); }
.admin-bar .vd-header--article { top: calc(32px - var(--vd-ahead-h)); }
.vd-ahead { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 16px; height: var(--vd-ahead-h); box-sizing: border-box; }
.vd-ahead__side { display: flex; align-items: center; gap: 12px; }
.vd-ahead__side--end { justify-content: flex-end; }
.vd-ahead__date { font-size: 14px; color: var(--vd-muted); }
.vd-ahead__ep { font-size: 14px; font-weight: 600; }
.vd-wordmark--m { font-size: 58px; }
.vd-wordmark--m.has-logo img { max-height: 64px; }
.vd-nav--article .vd-nav__row { display: flex; align-items: center; gap: 0; }
.vd-nav--article .vd-nav__row > ul { flex: 1; min-width: 0; }
.vd-nav__mark { font-family: var(--vd-head); font-weight: 800; font-size: 26px; line-height: 1; color: var(--vd-red); max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; transition: max-width .2s, opacity .2s, margin .2s; }
.vd-nav__mark:hover { color: var(--vd-red); }
.is-stuck .vd-nav__mark { max-width: 130px; opacity: 1; margin-right: 22px; }
.is-stuck .vd-nav--article .vd-nav__list { justify-content: flex-start; gap: 4px 14px; font-size: 14.5px; }
.vd-nav--article .vd-progress { height: 3px; background: transparent; margin-top: -1px; }
/* Pinned, or on narrower screens: every section stays reachable in a swipeable row. */
.is-stuck .vd-nav--article .vd-nav__list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 94%, transparent); mask-image: linear-gradient(90deg, #000 94%, transparent); }
.is-stuck .vd-nav--article .vd-nav__list::-webkit-scrollbar { display: none; }
.is-stuck .vd-nav--article .sub-menu { display: none !important; }
.is-stuck .vd-nav--article .vd-nav__list > li:last-child { padding-right: 32px; }
.vd-nav--article .vd-nav__row { max-width: none; padding-inline: 20px; }
@media (max-width: 1180px) {
	.vd-nav--article .vd-nav__list { flex-wrap: nowrap; justify-content: flex-start !important; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
	.vd-nav--article .vd-nav__list::-webkit-scrollbar { display: none; }
	.vd-nav--article .vd-nav__list > li:last-child { padding-right: 32px; }
	.vd-nav--article .sub-menu { display: none !important; }
	.vd-nav--article .vd-nav__list > li > a::after { display: none; }
}
@media (max-width: 900px) {
	.vd-header--article { --vd-ahead-h: 64px; }
	.vd-ahead { grid-template-columns: 44px 1fr 44px; gap: 8px; }
	.vd-ahead__brand { text-align: center; }
	.vd-wordmark--m { font-size: 40px; }
	.vd-nav--article { border-top-width: 2px; }
	.vd-nav--article .vd-nav__row { padding-inline: 16px; }
	.vd-nav--article .vd-nav__list { font-size: 15px; gap: 4px 18px; }
	.vd-nav--article .vd-nav__list > li > a { padding: 10px 0; }
	.is-stuck .vd-nav__mark { font-size: 22px; margin-right: 16px; }
}

/* In-article contents: section links shown as buttons */
html { scroll-behavior: smooth; }
.vd-prose .vd-anchor { scroll-margin-top: 80px; }
.admin-bar .vd-prose .vd-anchor { scroll-margin-top: 112px; }
.vd-toc { margin: 1.4em 0 1.8em; padding: 18px 20px; background: #F6F3EE; border: 1px solid #E2D8C6; border-radius: 6px; font-size: 16px; }
.vd-toc__h { margin: 0 0 12px !important; font-family: var(--vd-head); font-weight: 700; font-size: 17px !important; color: var(--vd-ink); }
.vd-toc ol { list-style: none; margin: 0 !important; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.vd-toc li { margin: 0 !important; }
.vd-prose .vd-toc a { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 14px; background: #fff; border: 1px solid #C9BBA3; border-radius: 999px; color: var(--vd-ink); text-decoration: none; font-size: 15px; line-height: 1.4; }
.vd-prose .vd-toc a:hover { border-color: var(--vd-red); color: var(--vd-red); }
.vd-toc__n { font-size: 12px; font-weight: 700; color: var(--vd-red); }
.vd-prose .vd-anchor:target { animation: vd-flash 1.6s ease; }
@keyframes vd-flash { from { background: #FFF3C4; } to { background: transparent; } }
@media print { .vd-toc { display: none; } }

/* Read aloud */
.vd-tool--listen { gap: 6px; font-size: 14px; font-weight: 600; padding: 0 14px; }
.vd-tool--listen[aria-pressed="true"] { background: var(--vd-ink); border-color: var(--vd-ink); color: #fff; }
.vd-prose .vd-speaking, h1.vd-speaking { background: #FFF3C4; box-shadow: 0 0 0 6px #FFF3C4; border-radius: 2px; transition: background .3s; }
@media print { .vd-tool--listen { display: none; } }
.vd-tool[hidden] { display: none !important; }

/* Google preferred source — between the article meta and the photo */
.vd-gps { display: flex; align-items: center; gap: 20px; margin: 4px 0 22px; padding: 16px 20px; background: #F6F3EE; border: 1px solid #E2D8C6; border-left: 4px solid #4285F4; border-radius: 8px; }
.vd-gps[hidden] { display: none; }
.vd-gps__txt { flex: 1; min-width: 0; }
.vd-gps__h { margin: 0 0 4px; font-family: var(--vd-head); font-weight: 700; font-size: 18px; line-height: 1.35; color: var(--vd-ink); }
.vd-gps__p { margin: 0; font-size: 14px; line-height: 1.6; color: #4A4A4A; }
.vd-gps__btn { flex: none; display: block; line-height: 0; border-radius: 10px; transition: transform .15s, box-shadow .15s; }
.vd-gps__btn img { width: 210px; height: auto; display: block; }
.vd-gps__btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
@media (max-width: 600px) {
	/* Phones: headline and button only, so the photo stays close. */
	.vd-gps { gap: 12px; padding: 12px 14px; }
	.vd-gps__p { display: none; }
	.vd-gps__h { font-size: 15.5px; margin: 0; }
	.vd-gps__btn img { width: 150px; }
}
@media print { .vd-gps { display: none; } }

/* E-paper cover thumbnail */
.vd-epaper-mini__thumb.has-img { width: 68px; height: 68px; padding: 0; background: #fff; overflow: hidden; }
.vd-epaper-mini__thumb.has-img img, .vd-ed__thumb.has-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }

/* Leftovers from Elementor-built pages: keep their icons at text size */
.e-font-icon-svg, .elementor-icon svg, .elementor-icon-list-icon svg { width: 1.2em !important; height: 1.2em !important; }
/* E-paper: the desk repeats the edition name at the top of the content; the page title already shows it */
.vd-epaper__viewer > h3:first-child, .vd-epaper__viewer > h2:first-child { display: none; }
