/* Venkat Editorial: single source of truth for the approved light/dark layout. */
:root {
  color-scheme: light;
  --vm-bg: #faf9f6;
  --vm-panel: #ffffff;
  --vm-panel-2: #f4f4f1;
  --vm-text: #111d2b;
  --vm-muted: #52606f;
  --vm-line: #dfe2e6;
  --vm-link: #005ebd;
  --vm-button: #091e30;
  --vm-button-text: #ffffff;
  --vm-dark-panel: #061d2e;
  --vm-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --vm-serif: Georgia, 'Times New Roman', serif;
}
html[data-vm-theme='dark'] {
  color-scheme: dark;
  --vm-bg: #0a131d;
  --vm-panel: #101d29;
  --vm-panel-2: #152433;
  --vm-text: #edf2f7;
  --vm-muted: #b6c3d0;
  --vm-line: #2c3e4c;
  --vm-link: #59adff;
  --vm-button: #1373d1;
  --vm-button-text: #ffffff;
  --vm-dark-panel: #07111a;
}
html { scroll-behavior: smooth; }
body, body .wp-site-blocks { background: var(--vm-bg); color: var(--vm-text); }
body { margin: 0; font-family: var(--vm-serif); }
body * { box-sizing: border-box; }
body a { color: var(--vm-link); }
body a:hover { text-decoration: underline; }
body h1, body h2, body h3, body h4 { font-family: var(--vm-serif); line-height: 1.12; letter-spacing: -0.025em; }
body p { line-height: 1.55; }
body .wp-block-image img { height: auto; }
.vm-shell { max-width: 1320px; margin: 0 auto; padding-left: 36px; padding-right: 36px; }
.vm-narrow { max-width: 840px; margin: 50px auto 100px; padding: 0 26px; }
.vm-page-title { margin: 0 0 26px; font-size: clamp(2.5rem, 5vw, 4.2rem); }
.vm-eyebrow { font: 700 0.7rem/1.4 var(--vm-sans) !important; text-transform: uppercase; letter-spacing: .14em; }
.vm-label-line { display: inline-block; width: 28px; height: 2px; vertical-align: middle; margin-right: 10px; background: #dd573e; }
.vm-button, .vm-shell .wp-block-button__link { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--vm-button); border-radius: 3px; background: var(--vm-button); color: var(--vm-button-text); padding: 11px 19px; font: 600 .86rem var(--vm-sans); text-decoration: none; cursor: pointer; }
.vm-button:hover, .vm-shell .wp-block-button__link:hover { text-decoration: none; filter: brightness(1.13); }
.vm-link { font: 600 .9rem var(--vm-sans); text-decoration: none; }
.vm-divider { border-top: 1px solid var(--vm-line); }

/* Shared site header and fixed publication navigation. */
.vm-site-header { background: var(--vm-panel); border-bottom: 1px solid var(--vm-line); position: relative; z-index: 5; }
.vm-header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.vm-brand { flex: 0 0 auto; min-width: 190px; }
.vm-brand a { color: var(--vm-text); text-decoration: none; font: 700 1.65rem/1.15 var(--vm-serif); letter-spacing: -.04em; }
.vm-brand p { font: .76rem/1.2 var(--vm-serif); color: var(--vm-muted); margin: 4px 0 0; }
.vm-site-header nav { flex: 1; }
.vm-site-header .wp-block-navigation__container { display: flex; justify-content: flex-end; gap: clamp(12px,2vw,28px); }
.vm-site-header .wp-block-navigation-item a { font: 500 .82rem var(--vm-sans); color: var(--vm-text); text-decoration: none; white-space: nowrap; }
.vm-site-header .wp-block-navigation-item a:hover { color: var(--vm-link); }
.vm-header-actions { display: flex; align-items: center; gap: 10px; }
.vm-header-actions .vm-button { padding: 10px 15px; white-space: nowrap; }
#vm-theme-toggle { background: transparent; border: 1px solid var(--vm-line); border-radius: 3px; color: var(--vm-text); padding: 10px 12px; font: 600 .75rem var(--vm-sans); cursor: pointer; white-space: nowrap; }
#vm-theme-toggle:focus-visible { outline: 3px solid #f7ac2b; outline-offset: 2px; }

/* Hero image from the approved mockup; photo-only high-resolution replacement pending. */
.vm-hero {
  background-color: #f2e6d7;
  background-image: linear-gradient(90deg, #fbf9f5 0%, rgba(251,249,245,.99) 24%, rgba(251,249,245,.85) 44%, rgba(251,249,245,.04) 71%), url('../images/hero-provisional.jpg');
  background-position: center, right center;
  background-size: 100% 100%, auto 100%;
  background-repeat: no-repeat;
  min-height: 350px;
  display: flex;
  align-items: center;
}
.vm-hero-inner { width: 100%; padding-top: 24px; padding-bottom: 24px; }
.vm-hero h1 { font-size: clamp(2.8rem,5.8vw,5.25rem); margin: 9px 0 4px; line-height: 1.02; color: #101b2c; }
.vm-hero .vm-hero-sub { font-size: clamp(1.18rem,2.1vw,1.65rem); margin: 5px 0; color: #14283c; }
.vm-hero .vm-hero-copy { max-width: 555px; margin: 12px 0 18px; line-height: 1.5; color: #465466; }
.vm-hero .vm-eyebrow { color: #192b3d; }
html[data-vm-theme='dark'] .vm-hero { background-color: #0c1a27; background-image: linear-gradient(90deg,#0a131d 0%,rgba(10,19,29,.97) 25%,rgba(10,19,29,.80) 49%,rgba(10,19,29,.07) 76%),url('../images/hero-provisional.jpg'); }
html[data-vm-theme='dark'] .vm-hero h1, html[data-vm-theme='dark'] .vm-hero .vm-hero-sub, html[data-vm-theme='dark'] .vm-hero .vm-hero-copy, html[data-vm-theme='dark'] .vm-hero .vm-eyebrow { color: #f3f7fc; }

/* Featured news follows the approved three-column block. */
.vm-featured { padding-top: 18px; padding-bottom: 20px; display: grid; grid-template-columns: 36% 39% 25%; gap: 0; border-bottom: 1px solid var(--vm-line); }
.vm-featured-photo { padding-right: 27px; }
.vm-featured-photo img { width: 100%; height: 245px; object-fit: cover; display: block; }
.vm-featured-content { padding: 4px 25px 0 0; }
.vm-featured-content h2 { font-size: clamp(1.65rem,2.7vw,2.45rem); margin: 8px 0; }
.vm-featured-content p { color: var(--vm-muted); margin: 6px 0 14px; }
.vm-featured-latest { border-left: 1px solid var(--vm-line); padding-left: 22px; }
.vm-featured-latest .vm-latest-item { padding: 7px 0 15px; border-bottom: 1px solid var(--vm-line); }
.vm-featured-latest .vm-latest-item:last-child { border-bottom: none; }
.vm-featured-latest .vm-latest-item a { display: block; margin-top: 4px; font-weight: 600; text-decoration: none; color: var(--vm-text); }
.vm-featured-latest .vm-latest-item .vm-eyebrow { font-size: .65rem !important; }

/* Three publication cards retain the exact images and positions from mockup 3. */
.vm-publications { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 15px; padding-bottom: 23px; }
.vm-pub-card { min-width: 0; border-right: 1px solid var(--vm-line); padding-right: 22px; }
.vm-pub-card:last-child { border-right: 0; padding-right: 0; }
.vm-pub-card img { width: 100%; height: clamp(118px, 11vw, 155px); object-fit: cover; display: block; }
.vm-pub-card h2 { font-size: clamp(1.5rem,2.35vw,2.1rem); margin: 6px 0; }
.vm-pub-card .vm-eyebrow { font-size: .67rem !important; margin: 11px 0 4px; }
.vm-pub-card p { color: var(--vm-muted); margin: 6px 0 8px; }
.vm-pub-card .vm-link { display: inline-block; margin-top: 5px; }
.vm-orange { color: #d74b35; }
.vm-cyan { color: #358de6; }
.vm-green { color: #248e71; }

/* Dark visualization area supports responsive SVG and accessible charts. */
.vm-visuals { background: #061e30; color: #f2f7fb; padding: 25px 0; }
.vm-visuals-inner { display: grid; grid-template-columns: 31% 41% 28%; gap: 0; }
.vm-visuals-copy, .vm-visuals-chart { padding-right: 24px; }
.vm-visuals-chart, .vm-visuals-metrics { padding-left: 24px; border-left: 1px solid #375064; }
.vm-visuals h2 { color: #f3f7fb; font-size: clamp(1.7rem,2.4vw,2.4rem); margin: 7px 0; }
.vm-visuals h3 { color: #f3f7fb; font-size: 1.14rem; margin: 0 0 3px; }
.vm-visuals p { color: #cbd7e1; margin: 6px 0 11px; }
.vm-visuals a { color: #b6dfff; }
.vm-visuals small { display: block; color: #bbcad6; font: .72rem var(--vm-sans); }
.vm-vis-bars { height: 137px; display: flex; align-items: end; gap: 9px; border-bottom: 1px solid #4a657c; margin-top: 14px; }
.vm-vis-bar { flex: 1; min-height: 14px; background: linear-gradient(180deg,#58a7f4,#1769b1); }
.vm-visuals-metrics ul { list-style: none; padding: 0; margin: 12px 0 0; }
.vm-visuals-metrics li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid #355066; font: .8rem/1.35 var(--vm-sans); }

/* About and subscription remain at the bottom of the homepage. */
.vm-bottom { display: grid; grid-template-columns: 47% 53%; gap: 0; padding-top: 23px; padding-bottom: 29px; }
.vm-about-mini { border-right: 1px solid var(--vm-line); padding-right: 30px; }
.vm-about-row { display: flex; align-items: start; gap: 22px; }
.vm-about-row img { width: 132px; height: 132px; object-fit: cover; border-radius: 50%; flex: 0 0 132px; }
.vm-about-row p { margin: 1px 0 9px; color: var(--vm-muted); }
.vm-subscribe-mini { padding-left: 35px; }
.vm-bottom h2 { font-size: 1.52rem; margin: 4px 0; }
.vm-subscribe-mini p { color: var(--vm-muted); margin: 2px 0 10px; }
.vm-subscribe-mini ul { list-style: none; padding: 0; margin: 7px 0; }
.vm-subscribe-mini li { font: .89rem/1.5 var(--vm-sans); margin: 4px 0; }
.vm-subscribe-mini .vm-pending { background: var(--vm-panel-2); border: 1px dashed var(--vm-line); border-radius: 3px; padding: 12px; font: .82rem/1.5 var(--vm-sans); color: var(--vm-muted); }

/* Footer / legal pages / individual articles. */
.vm-site-footer { border-top: 1px solid var(--vm-line); background: var(--vm-panel); padding: 24px 0 35px; }
.vm-site-footer-inner { display: flex; align-items: start; justify-content: space-between; gap: 28px; }
.vm-site-footer p { font: .75rem/1.6 var(--vm-sans); color: var(--vm-muted); margin: 4px 0; }
.vm-site-footer-links { max-width: 730px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: flex-end; }
.vm-site-footer-links a { font: .76rem/1.5 var(--vm-sans); text-decoration: none; }
.vm-article { max-width: 790px; margin: 45px auto 95px; padding: 0 24px; }
.vm-article h1 { font-size: clamp(2.5rem,5vw,4.45rem); margin: 15px 0 20px; }
.vm-article .wp-block-post-date { font: .8rem var(--vm-sans); color: var(--vm-muted); margin-bottom: 26px; }
.vm-article .wp-block-post-featured-image img { border-radius: 3px; max-height: 420px; object-fit: cover; }
.vm-article .wp-block-post-content > p { margin-bottom: 1.2rem; }
.vm-article .wp-block-post-content h2 { margin-top: 2rem; }
.vm-article figure, .vm-article table, .vm-article .wp-block-embed { max-width: 100%; overflow-x: auto; }
.vm-article .wp-block-table table { font-family: var(--vm-sans); font-size: .88rem; }
.vm-article .wp-block-table td, .vm-article .wp-block-table th { padding: 9px 12px; border: 1px solid var(--vm-line); }
.vm-archive { max-width: 1210px; margin: 40px auto 100px; padding: 0 24px; }
.vm-archive .wp-block-post-template { gap: 26px; }
.vm-archive .wp-block-post-template li { background: var(--vm-panel); border: 1px solid var(--vm-line); padding: 16px; }
.vm-archive .wp-block-post-template .wp-block-post-title { font-size: 1.5rem; }
.vm-archive .wp-block-post-template .wp-block-post-excerpt { color: var(--vm-muted); }
.vm-archive .wp-block-post-template .wp-block-post-featured-image img { aspect-ratio: 16/9; object-fit: cover; }
.vm-narrow p, .vm-narrow li { line-height: 1.7; }
.vm-narrow h2 { margin-top: 2rem; }
.vm-narrow a { overflow-wrap: anywhere; }

/* Accessibility and responsive fidelity. */
a:focus-visible, button:focus-visible { outline: 3px solid #e8a331; outline-offset: 3px; }
@media (max-width: 1080px) {
  .vm-shell { padding-left: 25px; padding-right: 25px; }
  .vm-brand { min-width: 160px; }
  .vm-brand a { font-size: 1.45rem; }
  .vm-header-inner { gap: 12px; }
  .vm-site-header .wp-block-navigation__container { gap: 12px; }
  .vm-site-header .wp-block-navigation-item a { font-size: .75rem; }
  .vm-featured { grid-template-columns: 35% 37% 28%; }
}
@media (max-width: 760px) {
  .vm-shell { padding-left: 20px; padding-right: 20px; }
  .vm-header-inner { flex-wrap: wrap; min-height: 68px; }
  .vm-brand { min-width: 0; flex: 1; }
  .vm-brand a { font-size: 1.4rem; }
  .vm-site-header nav { flex: none; order: 3; width: 100%; }
  .vm-site-header .wp-block-navigation__container { justify-content: flex-start; flex-wrap: wrap; gap: 10px 17px; }
  .vm-site-header .wp-block-navigation-item a { font-size: .8rem; }
  .vm-header-actions .vm-button { padding: 8px; font-size: .76rem; }
  #vm-theme-toggle { padding: 8px; font-size: .72rem; }
  .vm-hero { min-height: 340px; background-size: 100% 100%, auto 80%; background-position: center, right bottom; }
  .vm-hero h1 { font-size: clamp(2.75rem,9vw,4.6rem); }
  .vm-hero .vm-hero-sub, .vm-hero .vm-hero-copy { max-width: 80%; }
  .vm-featured { grid-template-columns: 1fr; gap: 15px; }
  .vm-featured-photo, .vm-featured-content { padding: 0; }
  .vm-featured-photo img { height: 220px; }
  .vm-featured-latest { border-left: none; border-top: 1px solid var(--vm-line); padding: 12px 0 0; }
  .vm-publications { grid-template-columns: 1fr; }
  .vm-pub-card { border-right: none; border-bottom: 1px solid var(--vm-line); padding: 0 0 18px; }
  .vm-pub-card img { height: 190px; }
  .vm-visuals-inner { grid-template-columns: 1fr; gap: 20px; }
  .vm-visuals-copy, .vm-visuals-chart { padding: 0; }
  .vm-visuals-chart, .vm-visuals-metrics { border-left: none; border-top: 1px solid #375064; padding: 20px 0 0; }
  .vm-bottom { grid-template-columns: 1fr; gap: 25px; }
  .vm-about-mini { border-right: none; padding: 0 0 22px; border-bottom: 1px solid var(--vm-line); }
  .vm-subscribe-mini { padding: 0; }
  .vm-site-footer-inner { flex-direction: column; }
  .vm-site-footer-links { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .vm-hero { background-size: 100% 100%, auto 65%; }
  .vm-hero .vm-hero-sub, .vm-hero .vm-hero-copy { max-width: 100%; }
  .vm-hero h1 { font-size: 2.7rem; }
  .vm-about-row img { width: 98px; height: 98px; flex-basis: 98px; }
  .vm-about-row { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Provisional hero art contains baked-in quote copy. Avoid overlapping mobile text. */
@media (max-width: 760px) {
  .vm-hero { background-image: linear-gradient(145deg,#faf9f6 0%,#f0ebe4 100%); }
  html[data-vm-theme='dark'] .vm-hero { background-image: linear-gradient(145deg,#0a131d 0%,#162c3e 100%); }
}
