/*
Theme Name: VapeBrief
Theme URI: https://vapebrief.com
Author: VapeBrief
Author URI: https://vapebrief.com
Description: Lightweight, plugin-free WordPress theme for VapeBrief - an English global vape news brief site. Brief-first layout, fast, SEO-ready, i18n ready (text domain "vapebrief").
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Tested up to: 6.8
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vapebrief
Domain Path: /languages
Tags: news, blog, custom-menu, featured-images, translation-ready, block-patterns
*/

.vb-preview-notice { background: #e8eef2; color: #344752; font-size: 12px; line-height: 1.6; padding: 8px 0; border-bottom: 1px solid #ced8df; }
.vb-preview-notice .vb-container { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 12px; }
.vb-preview-notice strong { font-weight: 700; }

/* ==========================================================================
   1. Design tokens (see development document chapter 18)
   ========================================================================== */
:root {
  --ink: #111827;
  --red: #c1272d;
  --red-dark: #9e1f24;
  --red-bright: #e0454c;
  --text: #1f2430;
  --muted: #5b6472;
  --bg: #ffffff;
  --surface: #f7f8fa;
  --border: #d9dde3;
  /* Borders that identify an interactive control need 3:1 against the
     background (WCAG 1.4.11). --border is decorative only at 1.36:1, so
     inputs and outline buttons use this stronger token (3.82:1 on white,
     3.59:1 on --surface). */
  --border-strong: #7d838c;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;

  --radius: 8px;
  --radius-tag: 4px;
  --radius-input: 6px;

  --container: 1200px;
  --article: 720px;
  --page: 760px;

  --header-h: 60px;
  --ticker-h: 38px;
}

/* ==========================================================================
   2. Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 700; line-height: 1.25; margin: 0 0 var(--s4); }
h1 { font-size: 30px; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }
h4 { font-size: 17px; }
p { margin: 0 0 var(--s4); }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--red); }
img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 var(--s4); padding-left: 1.25em; }
figure { margin: 0; }
table { border-collapse: collapse; width: 100%; }
button { font-family: inherit; font-size: inherit; }
input, textarea, select { font-family: inherit; font-size: 16px; }

/* Screen reader + skip link */
.vb-sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.vb-skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: var(--s3) var(--s4); border-radius: 0 0 var(--radius) 0;
}
.vb-skip-link:focus { left: 0; color: #fff; outline: 2px solid var(--red-bright); }

:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ==========================================================================
   3. Layout
   ========================================================================== */
.vb-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s5); }
.vb-container--narrow { max-width: var(--article); }
.vb-container--page { max-width: var(--page); }
.vb-main { padding: var(--s6) 0 var(--s7); }
.vb-main--flush { padding-top: var(--s5); }
.vb-section { margin-bottom: var(--s7); }
.vb-section__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4);
  border-bottom: 2px solid var(--ink); padding-bottom: var(--s2); margin-bottom: var(--s5);
}
.vb-section__title { font-size: 20px; margin: 0; letter-spacing: .01em; }
.vb-section__more { font-size: 14px; font-weight: 600; color: var(--red); white-space: nowrap; }
.vb-grid { display: grid; gap: var(--s5); }
.vb-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vb-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vb-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ==========================================================================
   4. Top bar + header + nav
   ========================================================================== */
.vb-topbar { background: var(--surface); border-bottom: 1px solid var(--border); font-size: 13px; }
.vb-topbar__inner {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--s5);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4); height: 34px;
}
.vb-topbar__date { color: var(--muted); }
.vb-topbar__links { display: flex; align-items: center; gap: var(--s4); }
.vb-topbar__links a { color: var(--muted); }
.vb-topbar__links a:hover { color: var(--red); }
.vb-lang { color: var(--muted); border: 1px solid var(--border); border-radius: var(--radius-tag); padding: 1px 6px; }

.vb-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 100; }
.vb-header__inner {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--s5);
  display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; align-items: center; gap: 40px; min-height: 76px;
}
.vb-logo { display: flex; align-items: center; gap: var(--s2); flex: 0 0 auto; }
.vb-logo svg { display: block; }
.vb-logo:hover { opacity: .9; }
.vb-header__nav { min-width: 0; }
.vb-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  list-style: none; margin: 0; padding: 0;
}
.vb-nav li { flex: 0 0 auto; }
.vb-nav a {
  display: flex; align-items: center; justify-content: center; position: relative;
  min-height: 76px; padding: 0; color: #dce2ea; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.vb-nav a:hover, .vb-nav a:focus-visible { color: #fff; }
.vb-nav .current-menu-item > a, .vb-nav .current-menu-ancestor > a, .vb-nav .vb-is-current > a {
  color: #fff;
}
.vb-nav .current-menu-item > a::after, .vb-nav .current-menu-ancestor > a::after, .vb-nav .vb-is-current > a::after {
  content: ""; position: absolute; height: 3px; background: var(--red); bottom: 13px; left: 0; right: 0;
}
.vb-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.vb-header__actions .vb-btn { min-width: 132px; min-height: 46px; padding: 10px 16px; border-radius: 6px; font-size: 14px; }
.vb-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 0; background: transparent; color: #fff; cursor: pointer; border-radius: var(--radius);
}
.vb-iconbtn:hover { background: rgba(255,255,255,.12); color: #fff; }
.vb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  background: var(--red); color: #fff; font-size: 15px; font-weight: 600;
  padding: 10px var(--s4); border: 0; border-radius: var(--radius); cursor: pointer;
  min-height: 44px; line-height: 1.2;
}
.vb-btn:hover { background: var(--red-dark); color: #fff; }
.vb-btn--ghost { background: transparent; border: 1px solid var(--border-strong); color: var(--text); }
.vb-btn--ghost:hover { background: var(--surface); color: var(--text); }
.vb-btn--block { width: 100%; }

/* Search overlay */
.vb-search {
  display: none; background: var(--surface); border-bottom: 1px solid var(--border); padding: var(--s4) 0;
}
.vb-search.is-open { display: block; }
.vb-search__form { display: flex; gap: var(--s2); }
.vb-search__input {
  flex: 1 1 auto; min-width: 0; padding: 10px var(--s3); border: 1px solid var(--border-strong);
  border-radius: var(--radius-input); background: #fff; color: var(--text);
}

/* Mobile nav */
.vb-navtoggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; cursor: pointer;
  align-items: center; justify-content: center; border-radius: var(--radius);
}
.vb-drawer { display: none; }
@media (max-width: 1140px) {
  .vb-header__inner { display: flex; justify-content: space-between; }
  .vb-header__nav { display: none; }
  .vb-header__actions { gap: 8px; margin-left: auto; }
  .vb-navtoggle { display: inline-flex; }
  .vb-drawer {
    display: block; position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px); z-index: 300;
    background: var(--ink); color: #fff; padding: var(--s5); transform: translateX(100%);
    transition: transform .2s ease; overflow-y: auto; visibility: hidden;
  }
  .vb-drawer.is-open { transform: translateX(0); visibility: visible; }
  .vb-drawer__close { display: block; margin-left: auto; margin-bottom: var(--s4); }
  .vb-drawer ul { list-style: none; margin: 0; padding: 0; }
  .vb-drawer li { border-bottom: 1px solid rgba(255,255,255,.12); }
  .vb-drawer a { display: block; padding: var(--s3) 0; color: #fff; font-weight: 600; }
  .vb-drawer__sub { padding: var(--s4) 0; color: rgba(255,255,255,.75); font-size: 14px; }
  .vb-drawer__sub a { font-weight: 400; padding: 6px 0; }
  .vb-drawer-backdrop {
    display: none; position: fixed; inset: 0; background: rgba(17,24,39,.6); z-index: 290;
  }
  .vb-drawer-backdrop.is-open { display: block; }
}

/* ==========================================================================
   5. Ticker
   ========================================================================== */
.vb-ticker { background: var(--red); color: #fff; height: var(--ticker-h); overflow: hidden; }
.vb-ticker__inner {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--s5);
  display: flex; align-items: center; gap: var(--s4); height: 100%;
}
.vb-ticker__label {
  flex: 0 0 auto; background: var(--red-dark); font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; padding: 3px 8px; border-radius: var(--radius-tag);
}
.vb-ticker__viewport { position: relative; flex: 1 1 auto; height: 100%; overflow: hidden; }
.vb-ticker__item {
  position: absolute; inset: 0; display: flex; align-items: center; gap: var(--s2);
  font-size: 14px; opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.vb-ticker__item.is-active { opacity: 1; pointer-events: auto; }
.vb-ticker__item a { color: #fff; }
.vb-ticker__item a:hover { text-decoration: underline; }
.vb-ticker__time { color: rgba(255,255,255,.85); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.vb-ticker__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vb-ticker__pause {
  flex: 0 0 auto; background: transparent; border: 0; color: #fff; cursor: pointer;
  font-size: 12px; padding: 4px 6px; border-radius: var(--radius-tag); min-height: 32px;
}

/* ==========================================================================
   6. Hero + Today's Brief
   ========================================================================== */
.vb-hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--s5); }
.vb-hero__lead { position: relative; }
.vb-hero__figure { margin: 0 0 var(--s4); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.vb-hero__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Photographic covers keep the source image intact; the publication band is HTML. */
.vb-photo-cover { display: block; position: relative; overflow: hidden; background: #e9edf0; }
.vb-photo-cover > img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.vb-photo-cover--product { background: #f4f5f6; }
.vb-photo-cover.vb-photo-cover--product > img { object-fit: cover; object-position: var(--vb-photo-position, 50% 50%); padding: 0; }
.vb-photo-cover__strip { position: absolute; inset: auto 0 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 12px; border-top: 2px solid var(--red); background: #111827; color: #fff; font-size: 11px; line-height: 1.2; }
.vb-photo-cover__strip > :first-child { font-weight: 750; letter-spacing: -.02em; }
.vb-photo-cover__strip > :last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.vb-card__figure .vb-photo-cover__strip,
.vb-hero__figure .vb-photo-cover__strip { display: none; }
.vb-figure .vb-photo-cover--product > img { aspect-ratio: var(--vb-photo-ratio, auto); object-fit: contain; object-position: 50% 50%; }
.vb-figure .vb-photo-cover--product .vb-photo-cover__strip { position: static; }
.vb-photo-credit { display: block; margin-top: 6px; font-size: 12px; line-height: 1.5; }
.vb-hero__title { font-size: 32px; margin-bottom: var(--s3); }
.vb-hero__title a { color: var(--ink); }
.vb-hero__title a:hover { color: var(--red); }
.vb-hero__excerpt { color: var(--muted); font-size: 16px; margin-bottom: var(--s3); }

.vb-briefpanel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s4); }
.vb-briefpanel__title {
  font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--red);
  margin: 0 0 var(--s3); padding-bottom: var(--s2); border-bottom: 2px solid var(--red);
}
.vb-brieflist { list-style: none; margin: 0; padding: 0; }
.vb-brieflist li { padding: var(--s3) 0; border-bottom: 1px dashed var(--border); }
.vb-brieflist li:last-child { border-bottom: 0; padding-bottom: 0; }
.vb-brieflist__time { display: block; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.vb-brieflist__link { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.vb-brieflist__link:hover { color: var(--red); }

/* ==========================================================================
   7. Cards
   ========================================================================== */
.vb-card { display: flex; flex-direction: column; background: var(--bg); }
.vb-card__figure { margin: 0 0 var(--s3); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.vb-card__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.vb-card__meta { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s2); flex-wrap: wrap; }
.vb-card__title { font-size: 18px; margin: 0 0 var(--s2); line-height: 1.35; }
.vb-card__title a { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vb-card__title a:hover { color: var(--red); }
.vb-card__excerpt {
  font-size: 15px; color: var(--muted); margin: 0 0 var(--s2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vb-card__foot { font-size: 13px; color: var(--muted); display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.vb-card--row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: var(--s3); align-items: start; }
.vb-card--row .vb-card__figure { margin-bottom: 0; }
.vb-card--row .vb-card__figure img { aspect-ratio: 4 / 3; }
.vb-card__rating { font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.vb-card__number { font-size: 28px; font-weight: 700; color: var(--red); line-height: 1.1; font-variant-numeric: tabular-nums; }
.vb-card__numberlabel { font-size: 13px; color: var(--muted); }

/* ==========================================================================
   8. Timeline
   ========================================================================== */
.vb-timeline { position: relative; }
.vb-timeline__day { margin-bottom: var(--s5); }
.vb-timeline__dayhead {
  font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ink);
  border-bottom: 1px solid var(--border); padding-bottom: var(--s2); margin-bottom: var(--s3);
}
.vb-timeline__dayhead a { color: var(--ink); }
.vb-timeline__list { list-style: none; margin: 0; padding: 0 0 0 var(--s5); border-left: 2px solid var(--border); }
.vb-timeline__item { position: relative; padding: var(--s3) 0; }
.vb-timeline__item::before {
  content: ""; position: absolute; left: calc(-1 * var(--s5) - 5px); top: 22px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
}
.vb-timeline__time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.vb-timeline__title { font-size: 17px; font-weight: 700; margin: 2px 0 0; line-height: 1.4; }
.vb-timeline__title a { color: var(--ink); }
.vb-timeline__title a:hover { color: var(--red); }
.vb-timeline__excerpt { font-size: 14px; color: var(--muted); margin: 4px 0 0; }

/* ==========================================================================
   9. Tags / chips / labels
   ========================================================================== */
.vb-chip {
  display: inline-flex; align-items: center; min-height: 32px; padding: 4px 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .5px; border-radius: var(--radius-tag);
  background: var(--ink); color: #fff; text-transform: uppercase;
}
.vb-chip:hover { background: var(--red); color: #fff; }
.vb-chip--outline { background: transparent; color: var(--text); border: 1px solid var(--border-strong); text-transform: none; letter-spacing: 0; font-weight: 600; }
.vb-chip--outline:hover { background: var(--surface); color: var(--red); border-color: var(--red); }
.vb-chip--sponsored { background: #8a6d1f; color: #fff; }
.vb-taglist { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; margin: 0 0 var(--s4); padding: 0; }

/* ==========================================================================
   10. Breadcrumbs
   ========================================================================== */
.vb-crumbs { font-size: 13px; color: var(--muted); margin-bottom: var(--s4); }
.vb-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.vb-crumbs li::after { content: "/"; color: var(--border); margin-left: 6px; }
.vb-crumbs li:last-child::after { content: ""; }
.vb-crumbs a { color: var(--muted); }
.vb-crumbs a:hover { color: var(--red); }
.vb-crumbs [aria-current="page"] { color: var(--text); }

/* ==========================================================================
   11. Subscribe box
   ========================================================================== */
.vb-subscribe { background: var(--red); color: #fff; border-radius: var(--radius); padding: var(--s5); }
.vb-subscribe--soft { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.vb-subscribe__title { color: #fff; font-size: 22px; margin: 0 0 var(--s2); }
.vb-subscribe--soft .vb-subscribe__title { color: var(--ink); }
.vb-subscribe__desc { margin: 0 0 var(--s4); font-size: 15px; color: rgba(255,255,255,.92); }
.vb-subscribe--soft .vb-subscribe__desc { color: var(--muted); }
.vb-subscribe__form { display: grid; gap: var(--s3); }
.vb-subscribe__row { display: flex; gap: var(--s2); flex-wrap: wrap; }
.vb-subscribe__input {
  flex: 1 1 240px; min-width: 0; padding: 12px var(--s3); border: 1px solid var(--border-strong);
  border-radius: var(--radius-input); color: var(--text); background: #fff; min-height: 44px;
}
.vb-subscribe__interests { display: flex; flex-wrap: wrap; gap: var(--s3); font-size: 14px; }
/* The submit/contact form reuses this layout, so its bare select and textarea
   need the same control styling (and the same 3:1 border) as the inputs. */
.vb-subscribe__form select, .vb-subscribe__form textarea {
  width: 100%; min-height: 44px; padding: 12px var(--s3); border: 1px solid var(--border-strong);
  border-radius: var(--radius-input); color: var(--text); background: #fff;
}
.vb-subscribe__form textarea { min-height: 140px; }
.vb-subscribe__form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.vb-subscribe__interests label { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.vb-subscribe__note { font-size: 13px; color: rgba(255,255,255,.85); margin: 0; }
.vb-subscribe--soft .vb-subscribe__note { color: var(--muted); }
.vb-subscribe__note a { color: #fff; text-decoration: underline; }
.vb-subscribe--soft .vb-subscribe__note a { color: var(--red); }
.vb-form-msg { font-size: 14px; font-weight: 600; margin: 0; min-height: 20px; }
.vb-form-msg--error { color: #ffd9d9; }
.vb-subscribe--soft .vb-form-msg--error { color: var(--red-dark); }
.vb-form-msg--ok { color: #fff; }
.vb-subscribe--soft .vb-form-msg--ok { color: #1b7f4b; }
.vb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   12. Article page
   ========================================================================== */
.vb-article { max-width: var(--article); margin: 0 auto; }
.vb-article__kicker { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s3); }
.vb-article__title { font-size: 34px; line-height: 1.2; margin: 0 0 var(--s3); }
.vb-article__lede { font-size: 18px; color: var(--muted); margin: 0 0 var(--s4); }
.vb-byline { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: var(--s5); padding-bottom: var(--s4); border-bottom: 1px solid var(--border); }
.vb-byline a { color: var(--text); font-weight: 600; }
.vb-byline a:hover { color: var(--red); }
.vb-byline__avatar { flex: 0 0 auto; }
.vb-figure { margin: 0 0 var(--s5); }
.vb-figure img { width: 100%; border-radius: var(--radius); }
.vb-figure figcaption { font-size: 13px; color: var(--muted); margin-top: var(--s2); }
.vb-keypoints { background: var(--surface); border-left: 4px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; padding: var(--s4); margin: 0 0 var(--s5); }
.vb-keypoints__title { font-size: 15px; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 var(--s2); }
.vb-keypoints ul { margin: 0; padding-left: 1.2em; }
.vb-keypoints li { margin-bottom: 6px; }
.vb-content { font-size: 17px; }
.vb-content h2 { margin-top: var(--s6); }
.vb-content h3 { margin-top: var(--s5); }
.vb-content ul, .vb-content ol { margin-bottom: var(--s4); }
.vb-content blockquote { margin: var(--s5) 0; padding-left: var(--s4); border-left: 3px solid var(--red); color: var(--muted); }
.vb-content table { font-size: 15px; margin-bottom: var(--s4); }
.vb-content th, .vb-content td { border: 1px solid var(--border); padding: var(--s2) var(--s3); text-align: left; }
.vb-content th { background: var(--surface); }
.vb-tablewrap { overflow-x: auto; margin-bottom: var(--s4); }
.vb-sources { border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s4); margin: var(--s6) 0 0; background: var(--surface); }
.vb-sources__title { font-size: 15px; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 var(--s2); }
.vb-sources ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.vb-sources li { margin-bottom: 6px; }
.vb-sources a { text-decoration: underline; }
.vb-healthnote { font-size: 14px; color: var(--muted); border-top: 1px solid var(--border); margin-top: var(--s5); padding-top: var(--s3); }
.vb-healthnote a { color: var(--red); text-decoration: underline; }
.vb-authorbox { display: flex; gap: var(--s4); align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s4); margin: var(--s6) 0 0; }
.vb-authorbox__avatar { flex: 0 0 auto; }
.vb-authorbox__name { font-size: 17px; margin: 0 0 2px; }
.vb-authorbox__name a { color: var(--ink); }
.vb-authorbox__role { font-size: 13px; color: var(--muted); margin: 0 0 var(--s2); }
.vb-authorbox__bio { font-size: 15px; margin: 0 0 var(--s2); }
.vb-correction { background: #fff8e1; border: 1px solid #f0d488; border-radius: var(--radius); padding: var(--s3) var(--s4); margin: 0 0 var(--s4); font-size: 15px; }
.vb-correction strong { color: #8a6d1f; }
.vb-reviewbox { border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s4); margin: 0 0 var(--s5); }
.vb-reviewbox__score { font-size: 30px; font-weight: 700; color: var(--red); }
.vb-reviewbox__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s3); }
.vb-reviewbox h3 { font-size: 16px; margin-bottom: var(--s2); }
.vb-eventbox { border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s4); margin: 0 0 var(--s5); background: var(--surface); }
.vb-eventbox dl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--s2) var(--s3); margin: 0; font-size: 15px; }
.vb-eventbox dt { font-weight: 700; color: var(--ink); }
.vb-eventbox dd { margin: 0; }
.vb-status { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-tag); background: var(--muted); color: #fff; }
.vb-status--past { background: var(--muted); }
.vb-status--live { background: var(--red); }

/* ==========================================================================
   13. Related + pagination
   ========================================================================== */
.vb-related { margin-top: var(--s7); }
.vb-pagination { display: flex; align-items: center; justify-content: center; gap: var(--s2); margin: var(--s6) 0 0; flex-wrap: wrap; font-size: 15px; }
.vb-pagination a, .vb-pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
  padding: 0 var(--s2); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text);
}
.vb-pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 700; }
.vb-pagination .dots { border: 0; }

/* ==========================================================================
   14. Archive header (category / brand / topic / author / date / search)
   ========================================================================== */
.vb-archive__head { border-bottom: 2px solid var(--ink); padding-bottom: var(--s3); margin-bottom: var(--s5); }
.vb-archive__title { font-size: 28px; margin: 0 0 var(--s2); }
.vb-archive__desc { color: var(--muted); font-size: 16px; margin: 0; max-width: 720px; }
.vb-filtertabs { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s5); }
.vb-filtertabs a { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; color: var(--text); min-height: 32px; display: inline-flex; align-items: center; }
.vb-filtertabs a.is-current { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
.vb-authorhead { display: flex; gap: var(--s5); align-items: flex-start; margin-bottom: var(--s5); }
.vb-authorhead__avatar { flex: 0 0 auto; }
.vb-emptystate { background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: var(--s5); text-align: center; color: var(--muted); }

/* ==========================================================================
   15. Static pages
   ========================================================================== */
.vb-page { max-width: var(--page); margin: 0 auto; }
.vb-page__title { font-size: 30px; margin: 0 0 var(--s3); }
.vb-page__updated { font-size: 13px; color: var(--muted); margin-bottom: var(--s4); }
.vb-page h2 { font-size: 22px; margin-top: var(--s6); }
.vb-page h3 { font-size: 19px; margin-top: var(--s5); }
.vb-page ul { margin-bottom: var(--s4); }
.vb-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); margin: var(--s5) 0; }
.vb-cardlink { border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s4); background: var(--surface); }
.vb-cardlink h3 { font-size: 17px; margin: 0 0 var(--s2); }
.vb-cardlink p { font-size: 14px; color: var(--muted); margin: 0; }
.vb-faq { border-top: 1px solid var(--border); }
.vb-faq__item { border-bottom: 1px solid var(--border); padding: var(--s4) 0; }
.vb-faq__q { font-size: 17px; margin: 0 0 var(--s2); }
.vb-faq__a { margin: 0; color: var(--muted); font-size: 15px; }
.vb-sample { border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s4); background: var(--surface); }
.vb-sample__flag { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--red); }
.vb-sitemapgroup { margin-bottom: var(--s6); }
.vb-sitemapgroup h2 { font-size: 19px; margin-bottom: var(--s3); }
.vb-sitemapgroup ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: var(--s5); }
.vb-sitemapgroup li { margin-bottom: 6px; font-size: 15px; break-inside: avoid; }
.vb-404 { text-align: center; padding: var(--s7) 0; }
.vb-404__code { font-size: 72px; font-weight: 700; color: var(--red); line-height: 1; margin: 0 0 var(--s3); }
.vb-notice { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s4); margin-bottom: var(--s5); font-size: 15px; }

/* ==========================================================================
   16. Footer
   ========================================================================== */
.vb-footer { background: var(--ink); color: rgba(255,255,255,.82); margin-top: var(--s7); padding: var(--s7) 0 var(--s5); font-size: 15px; }
.vb-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s5); }
.vb-footer h2 { color: #fff; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: var(--s3); }
.vb-footer ul { list-style: none; margin: 0; padding: 0; }
.vb-footer li { margin-bottom: 8px; }
.vb-footer a { color: rgba(255,255,255,.82); }
.vb-footer a:hover { color: #fff; text-decoration: underline; }
.vb-footer__brand { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s3); }
.vb-footer__about { font-size: 14px; color: rgba(255,255,255,.7); }
.vb-footer__bottom {
  max-width: var(--container); margin: var(--s5) auto 0; padding-top: var(--s4);
  border-top: 1px solid rgba(255,255,255,.15); font-size: 13px; color: rgba(255,255,255,.65);
  display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between;
}
.vb-age { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #fff; }
.vb-age span { border: 1px solid rgba(255,255,255,.5); border-radius: var(--radius-tag); padding: 0 6px; }

/* Age gate */
.vb-agegate { display: none; }
.vb-agegate.is-open { display: block; position: fixed; inset: 0; z-index: 400; background: rgba(17,24,39,.92); }
.vb-agegate__box {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: #fff; color: var(--text); border-radius: var(--radius); padding: var(--s6);
  width: min(92vw, 420px); text-align: center;
}
.vb-agegate__box h2 { font-size: 22px; }
.vb-agegate__actions { display: flex; gap: var(--s3); justify-content: center; flex-wrap: wrap; margin-top: var(--s4); }

/* ==========================================================================
   17. Admin-visible states (editor helpers)
   ========================================================================== */
.vb-metabox label { display: block; font-weight: 600; margin: 8px 0 4px; }
.vb-metabox .description { color: #646970; font-style: normal; font-size: 12px; }
.vb-metabox input[type="text"], .vb-metabox input[type="url"], .vb-metabox input[type="date"], .vb-metabox input[type="number"], .vb-metabox textarea, .vb-metabox select { width: 100%; }
.vb-metabox textarea { min-height: 80px; }
.vb-metabox__row { margin-bottom: 12px; }
.vb-metabox__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vb-col--sm { width: 90px; }

.vb-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  flex: 0 0 auto;
  user-select: none;
}

/* ==========================================================================
   18. Editor content
   Blocks are only an authoring format here; core block CSS is dequeued in
   inc/perf.php, so these rules cover the markup the editor can produce for a
   news brief. Keep in step with inc/perf.php.
   ========================================================================== */
.vb-content > * + * { margin-top: 1rem; }
.vb-content h2, .vb-content h3, .vb-content h4 { margin-top: 1.6rem; }
.vb-content ul, .vb-content ol { margin: 0 0 0 1.2rem; padding-left: 1.2rem; }
.vb-content li + li { margin-top: .35rem; }
.vb-content img { display: block; height: auto; max-width: 100%; }
.vb-content figure { margin: 0; }
.vb-content figcaption,
.vb-content .wp-element-caption { margin-top: .4rem; color: var(--muted); font-size: 13px; }
.vb-content blockquote {
  margin: 1.4rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--red);
  color: var(--muted);
  font-style: italic;
}
.vb-content pre {
  padding: .8rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow-x: auto;
}
.vb-content code { font-size: .92em; }
.vb-content hr { border: 0; border-top: 1px solid var(--border); margin: 1.6rem 0; }
.vb-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.vb-content th, .vb-content td { padding: .5rem .6rem; border: 1px solid var(--border); text-align: left; }
.vb-content th { background: var(--surface); }
.vb-content iframe, .vb-content video { max-width: 100%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: .3rem 1rem .6rem 0; }
.alignright { float: right; margin: .3rem 0 .6rem 1rem; }
.has-text-align-left { text-align: left; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }
.wp-element-button,
.vb-content .wp-block-button__link {
  display: inline-block;
  padding: .55rem 1rem;
  background: var(--red);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
}
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ==========================================================================
   19. Responsive
   ========================================================================== */
@media (max-width: 1023px) {
  .vb-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vb-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vb-hero { grid-template-columns: minmax(0, 1fr); }
  .vb-main { padding: var(--s5) 0 var(--s6); }
  h1 { font-size: 28px; }
}
@media (max-width: 639px) {
  body { font-size: 16px; }
  .vb-container { padding: 0 var(--s4); }
  .vb-topbar__inner { padding: 0 var(--s4); }
  .vb-topbar__links a.vb-hide-sm { display: none; }
  .vb-header__inner { padding: 0 var(--s4); gap: var(--s3); }
  .vb-header .vb-header__actions { gap: 4px; margin-left: auto; min-width: 0; }
  .vb-header__actions .vb-btn { display: none; }
  .vb-header__actions .vb-iconbtn, .vb-header__actions .vb-navtoggle { flex-shrink: 0; }
  .vb-grid--2, .vb-grid--3, .vb-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .vb-footer { padding: 32px 0 20px; margin-top: 32px; }
  .vb-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .vb-footer__brand { margin-bottom: 8px; }
  .vb-footer__about { margin: 0; max-width: 40ch; font-size: 13px; line-height: 1.45; }
  .vb-footer h2 { margin: 0 0 7px; font-size: 12px; letter-spacing: 1.1px; }
  .vb-footer ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .vb-footer li { margin: 0; min-width: 0; }
  .vb-footer li a { display: flex; align-items: center; min-height: 42px; font-size: 14px; line-height: 1.25; }
  .vb-footer__bottom { margin: 24px 16px 0; padding-top: 16px; gap: 6px; }
  .vb-footer__bottom p { margin: 0; }
  .vb-hero__title { font-size: 26px; }
  .vb-article__title { font-size: 28px; }
  .vb-card--row { grid-template-columns: minmax(0, 1fr); }
  .vb-archive__title { font-size: 24px; }
  .vb-authorhead { flex-direction: column; }
  .vb-sitemapgroup ul { columns: 1; }
  .vb-reviewbox__grid { grid-template-columns: minmax(0, 1fr); }
  .vb-cards { grid-template-columns: minmax(0, 1fr); }
  .vb-timeline__list { padding-left: var(--s4); }
  .vb-timeline__item::before { left: calc(-1 * var(--s4) - 5px); }
  .vb-subscribe { padding: var(--s4); }
  .vb-btn, .vb-subscribe .vb-btn { width: 100%; }
  .vb-topbar__date { display: none; }
}
@media print {
  .vb-header, .vb-footer, .vb-ticker, .vb-subscribe, .vb-topbar { display: none !important; }
  a { color: #000; }
}
