/* ==========================================================================
   goUnSugar.com V3: content group (recipes, library, articles, legal, /health, 404).
   Uses only the tokens in v3.css. Class prefix: vc-
   ========================================================================== */

/* ---- Shared bits ---------------------------------------------------------- */
.vc-js { display: none !important; }
.js .vc-js { display: flex !important; }
.vc-type { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-ink); }
.vc-meta { display: block; font-size: var(--fs-small); color: var(--slate); }
.vc-note { margin-top: var(--s-6); font-size: var(--fs-small); color: var(--slate); max-width: 70ch; }
.vc-small-note { font-size: var(--fs-small); color: var(--slate); margin-top: var(--s-4); }
.vc-count { display: inline-grid; place-items: center; min-width: 32px; height: 28px; padding: 0 10px; margin-left: 6px; border-radius: var(--r-pill); background: var(--mist); color: var(--teal-ink); font-size: 14px; font-weight: 700; letter-spacing: 0; vertical-align: middle; }
.vc-rhero .v-actions, .vc-fhero .v-actions, .vc-hhero .v-actions, .vc-404 .v-actions { display: flex; flex-wrap: wrap; gap: var(--s-5); align-items: center; margin-top: var(--s-6); }

/* Filter chips (category / topic) */
.vc-chips { flex-wrap: wrap; gap: var(--s-2); }
.vc-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--white); color: var(--navy); font-size: 14px; font-weight: 500;
  transition: background var(--dur-fast) var(--ease-std), border-color var(--dur-fast) var(--ease-std), color var(--dur-fast) var(--ease-std); }
.vc-chip span { font-size: 12px; font-weight: 600; color: var(--slate); transition: color var(--dur-fast) var(--ease-std); }
.vc-chip:hover { border-color: var(--teal-ink); color: var(--teal-ink); }
.vc-chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.vc-chip[aria-pressed="true"] span { color: var(--teal-light); }

/* Items hidden by a filter; shown items fade up once (transform and opacity only) */
[data-filter-list] > [hidden] { display: none !important; }
.js [data-filter-list] > .vc-in { animation: vc-in var(--dur-base) var(--ease-out) both; animation-delay: calc(var(--k, 0) * 40ms); }
@keyframes vc-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.vc-empty { padding: var(--s-7) 0; color: var(--slate); }

/* ==========================================================================
   RECIPES HUB: compact formula library (signature: grid or list toggle)
   ========================================================================== */
.vc-rhero { padding: calc(var(--section-y) * .55) 0 calc(var(--section-y) * .45); background: var(--white); }
.vc-rhero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.vc-rhero .v-h1 { margin-top: var(--s-4); }
.vc-rhero .v-lead { margin-top: var(--s-5); max-width: 36ch; }
/* A contact sheet: one small photo per category */
.vc-sheet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.vc-sheet figure { margin: 0; position: relative; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 1 / 1; background: var(--mist); }
.vc-sheet figure:nth-child(2), .vc-sheet figure:nth-child(5) { transform: translateY(var(--s-6)); }
.vc-sheet img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vc-sheet figcaption { position: absolute; left: 8px; bottom: 8px; background: rgba(255, 255, 255, .92); color: var(--navy); font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill); }

.vc-rlibsec { padding-top: calc(var(--section-y) * .5); border-top: 1px solid var(--line); }
.vc-rbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4) var(--s-6); margin-bottom: var(--s-6); }
.vc-libbar-h { font-size: var(--fs-h3); font-weight: 700; color: var(--navy); display: flex; align-items: center; }
.vc-rbar-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.vc-view { gap: 0; border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 3px; background: var(--white); }
.vc-view button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--navy); font-size: 14px; font-weight: 500; transition: background var(--dur-fast) var(--ease-std), color var(--dur-fast) var(--ease-std); }
.vc-view button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.vc-view button[aria-pressed="true"] { background: var(--mist); color: var(--teal-ink); }

.vc-rlib { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.vc-rcard { position: relative; display: flex; flex-direction: column; height: 100%; color: inherit; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; transition: border-color var(--dur-fast) var(--ease-std); }
.vc-rcard:hover { border-color: var(--teal-light); }
.vc-rcard-img { position: relative; aspect-ratio: 3 / 2; background: var(--mist); overflow: hidden; }
.vc-rcard-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-base) var(--ease-out); }
.vc-rcard:hover .vc-rcard-img img { transform: scale(1.03); }
.vc-rcard-body { display: flex; flex-direction: column; gap: 6px; padding: var(--s-4); flex: 1; }
.vc-rcard h3 { font-size: 17px; line-height: 1.3; color: var(--navy); }
.vc-rcard p { font-size: 14px; line-height: 1.5; color: var(--slate); }
.vc-rchip { align-self: flex-start; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--teal-ink); background: rgba(43, 163, 154, .1); padding: 4px 10px; border-radius: var(--r-pill); }
.vc-rnums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); margin: auto 0 0; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.vc-rnums div { display: flex; flex-direction: column-reverse; justify-content: flex-end; min-width: 0; }
.vc-rnums dd { margin: 0; font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-rnums dt { font-size: 11px; line-height: 1.3; color: var(--slate); margin-top: 2px; }
.vc-rcard-body { margin-top: 0; min-width: 0; }

/* List view: a dense spec index */
.vc-rlib[data-view="list"] { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.vc-rlib[data-view="list"] .vc-rcard { flex-direction: row; align-items: center; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: var(--s-3) 0; background: transparent; }
.vc-rlib[data-view="list"] .vc-rcard:hover { background: var(--mist); }
.vc-rlib[data-view="list"] .vc-rcard-img { flex: none; width: 112px; border-radius: var(--r-sm); aspect-ratio: 4 / 3; }
.vc-rlib[data-view="list"] .vc-rcard-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.4fr); grid-template-rows: auto auto auto; column-gap: var(--s-6); align-items: center; padding: 0 var(--s-5); }
.vc-rlib[data-view="list"] .vc-type { grid-column: 1; grid-row: 1; }
.vc-rlib[data-view="list"] .vc-rcard h3 { grid-column: 1; grid-row: 2; font-size: 18px; }
.vc-rlib[data-view="list"] .vc-rcard p { grid-column: 1; grid-row: 3; }
.vc-rlib[data-view="list"] .vc-rchip { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; }
.vc-rlib[data-view="list"] .vc-rnums { grid-column: 3; grid-row: 1 / span 3; border-top: 0; padding-top: 0; margin: 0; }

/* ==========================================================================
   RECIPE DETAIL: the formula card (signature)
   ========================================================================== */
.vc-fhero { padding: calc(var(--section-y) * .4) 0 calc(var(--section-y) * .55); }
.vc-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--slate); }
.vc-back::before { content: ""; width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform var(--dur-fast) var(--ease-std); }
.vc-back:hover { color: var(--teal-ink); }
.vc-back:hover::before { transform: translateX(-3px) rotate(45deg); }
.vc-fhero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; margin-top: var(--s-4); }
.vc-fhero-img { position: relative; }
.vc-fhero-chip { position: absolute; left: var(--s-5); bottom: var(--s-5); background: var(--white); color: var(--navy); font-weight: 700; font-size: 15px; padding: 10px 18px; border-radius: var(--r-pill); }
.vc-fh1 { font-size: clamp(36px, 4.2vw, 64px); margin-top: var(--s-4); overflow-wrap: anywhere; hyphens: auto; }
.vc-fhero .v-lead { margin-top: var(--s-5); max-width: 34ch; }
.vc-fchips { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.vc-fchips li { border: 1px solid var(--line); border-radius: var(--r-pill); padding: 7px 14px; font-size: 14px; font-weight: 500; color: var(--navy); }
.vc-fchips li.is-key { background: var(--navy); border-color: var(--navy); color: var(--white); font-weight: 600; }

.vc-fcard { background: var(--white); border-radius: var(--r-card); border: 1px solid var(--line); padding: clamp(24px, 4vw, 56px); }
.vc-fcard-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: var(--s-4) var(--s-6); padding-bottom: var(--s-6); border-bottom: 2px solid var(--navy); }
.vc-fcard-head .v-h2 { margin-top: var(--s-2); }
.vc-fcard-lead { margin-top: var(--s-4); max-width: 60ch; }
.vc-yield { flex: none; border: 1.5px solid var(--teal); color: var(--teal-ink); border-radius: var(--r-pill); padding: 8px 16px; font-size: 14px; font-weight: 600; }
.vc-fstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid var(--line); }
.vc-fstats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: var(--s-5) var(--s-4) var(--s-5) 0; }
.vc-fstats div + div { border-left: 1px solid var(--line); padding-left: var(--s-5); }
.vc-fstats dd { margin: 0; font-size: clamp(28px, 3vw, 44px); font-weight: 800; color: var(--navy); line-height: 1; letter-spacing: -.02em; }
.vc-fstats dt { margin-top: var(--s-2); font-size: var(--fs-small); color: var(--slate); }
.vc-fcard-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); padding-top: var(--s-6); align-items: start; }
.vc-fcard-h3 { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.vc-fcard-h3 span { font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--slate); }
.vc-ing { width: 100%; border-collapse: collapse; }
.vc-ing thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.vc-ing th, .vc-ing td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 16px; }
.vc-ing th { color: var(--navy); font-weight: 600; padding-right: var(--s-4); }
.vc-ing th span { display: block; font-size: 13px; font-weight: 400; color: var(--slate); margin-top: 2px; }
.vc-ing td { text-align: right; white-space: nowrap; font-weight: 700; color: var(--navy); }
.vc-ing tr.is-un th, .vc-ing tr.is-un td { color: var(--teal-ink); }
.vc-ing tr.is-un th { box-shadow: inset 3px 0 0 var(--teal); padding-left: var(--s-3); }
.vc-method { list-style: none; margin: 0; padding: 0; }
.vc-method li { display: grid; grid-template-columns: 40px 1fr; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.vc-method-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--teal); color: var(--navy); font-weight: 800; font-size: 15px; }
.vc-method b { color: var(--navy); }
.vc-method p { font-size: 15px; margin-top: 2px; }
.vc-notes { margin: 0; padding: 0; list-style: none; }
.vc-notes li { position: relative; padding: var(--s-4) 0 var(--s-4) var(--s-6); border-bottom: 1px solid var(--line); font-size: 16px; }
.vc-notes li::before { content: ""; position: absolute; left: 4px; top: 26px; width: 12px; height: 6px; border-left: 2px solid var(--teal-ink); border-bottom: 2px solid var(--teal-ink); transform: rotate(-45deg); }
.vc-notes a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.vc-fcard-ba { margin-top: var(--s-7); }
.vc-fcard-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-4) var(--s-6); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.vc-fcard-foot .vc-small-note { margin: 0; max-width: 52ch; }
.vc-fquote { margin: 0; font-size: clamp(17px, 1.5vw, 20px); font-weight: 600; color: var(--navy); max-width: 46ch; }

/* Before-and-after panel */
.vc-ba { margin: 0; background: var(--mist); border-radius: var(--r-card); padding: clamp(20px, 3vw, 36px); }
.vc-ba-cap { display: grid; gap: 4px; margin-bottom: var(--s-5); }
.vc-ba-cap b { font-size: var(--fs-h3); color: var(--navy); }
.vc-ba-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "k bar" ". v"; column-gap: var(--s-4); row-gap: 6px; align-items: center; padding: var(--s-3) 0; }
.vc-ba-k { grid-area: k; font-size: 14px; font-weight: 600; color: var(--navy); }
.vc-ba-track { grid-area: bar; display: flex; height: 28px; border-radius: var(--r-pill); background: var(--white); overflow: hidden; }
.vc-ba-v { grid-area: v; font-size: 15px; font-weight: 700; color: var(--navy); }
.vc-ba-seg { display: block; height: 100%; transform-origin: left center; }
.vc-ba-seg--sugar { background: var(--slate-soft); }
.vc-ba-seg--un { background: var(--teal); }
.vc-ba-seg--rest { background: var(--teal-light); }
.js .vc-ba .vc-ba-seg { transform: scaleX(0); transition: transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 300ms + var(--j, 0) * 200ms); }
.js .vc-ba.is-in .vc-ba-seg, .v3-fail .vc-ba .vc-ba-seg { transform: none; }
.vc-ba-key { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: 13px; color: var(--slate); }
.vc-ba-key li { display: inline-flex; align-items: center; gap: 8px; }
.vc-ba-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.vc-ba-note { margin-top: var(--s-4); font-size: 14px; color: var(--slate); }

.vc-fmore-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.vc-flabel { margin: var(--s-6) 0 0; }
.vc-flabel p { margin-top: var(--s-3); font-size: clamp(16px, 1.3vw, 19px); color: var(--navy); }
.vc-fidea { border-left: 2px solid var(--teal); padding-left: var(--s-6); }
.vc-fidea p { margin-top: var(--s-4); }
.vc-fidea a, .vc-notes a { color: var(--teal-ink); }
.vc-rlib--rel { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--s-7); }

/* ==========================================================================
   LIBRARY HUBS: type tabs, featured row, dated list (signature: date rail)
   ========================================================================== */
.vc-libhero { background: var(--mist); padding: var(--s-5) 0 calc(var(--section-y) * .5); }
.vc-libtabs { display: flex; gap: var(--s-1); border-bottom: 1px solid var(--teal-light); margin-bottom: calc(var(--section-y) * .35); overflow-x: auto; scrollbar-width: none; }
.vc-libtabs::-webkit-scrollbar { display: none; }
.vc-libtabs a { position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--s-4); font-weight: 600; color: var(--slate); white-space: nowrap; }
.vc-libtabs a::after { content: ""; position: absolute; left: var(--s-4); right: var(--s-4); bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--teal); transform: scaleX(0); transition: transform var(--dur-base) var(--ease-out); }
.vc-libtabs a:hover { color: var(--navy); }
.vc-libtabs a[aria-current="page"] { color: var(--navy); }
.vc-libtabs a[aria-current="page"]::after, .vc-libtabs a:hover::after { transform: scaleX(1); }
.vc-libhero-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-7); align-items: end; }
.vc-libhero .v-h1 { margin-top: var(--s-4); max-width: 16ch; }
.vc-libhero .v-lead { margin-top: var(--s-5); max-width: 46ch; }
.vc-libstats { margin: 0; display: flex; gap: var(--s-6); }
.vc-libstats div { display: flex; flex-direction: column-reverse; border-left: 1px solid var(--teal-light); padding-left: var(--s-4); }
.vc-libstats dd { margin: 0; font-size: var(--fs-stat); font-weight: 800; color: var(--navy); line-height: 1; letter-spacing: -.02em; }
.vc-libstats dd.vc-libstats-date { font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: 0; max-width: 11ch; }
.vc-libstats dt { margin-top: var(--s-2); font-size: var(--fs-small); color: var(--slate); }
.vc-press { margin-top: var(--s-6); font-size: 15px; color: var(--navy); }
.vc-press a { font-weight: 600; }

.vc-featsec { padding-bottom: 0; }
.vc-feat { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-5); }
.vc-feat--solo { grid-template-columns: 1fr; }
.vc-feat-main { display: grid; grid-template-rows: auto 1fr; color: inherit; border-radius: var(--r-card); overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: border-color var(--dur-fast) var(--ease-std); }
.vc-feat-main:hover { border-color: var(--teal-light); }
.vc-feat-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--mist); position: relative; }
.vc-feat-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-base) var(--ease-out); }
.vc-feat-main:hover .vc-feat-img img { transform: scale(1.03); }
.vc-feat-body { padding: clamp(20px, 3vw, 36px); display: grid; gap: var(--s-3); align-content: start; }
.vc-feat-title { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -.01em; color: var(--navy); }
.vc-feat-body p { color: var(--slate); }
.vc-feat-side { display: grid; gap: var(--s-5); align-content: start; }
.vc-feat-mini { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s-4); align-items: center; color: inherit; padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-card); transition: border-color var(--dur-fast) var(--ease-std); }
.vc-feat-mini:hover { border-color: var(--teal-light); }
.vc-feat-thumb { aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; position: relative; background: var(--mist); }
.vc-feat-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vc-feat-mini h3 { font-size: 17px; line-height: 1.3; margin: 6px 0; color: var(--navy); }

.vc-libbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-4) var(--s-6); padding-bottom: var(--s-5); }
.vc-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.vc-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 200px; gap: var(--s-6); align-items: center; padding: var(--s-5) 0; border-bottom: 1px solid var(--line); color: inherit; transition: background var(--dur-fast) var(--ease-std); }
.vc-row:hover { background: linear-gradient(90deg, transparent, var(--mist) 12%, var(--mist) 88%, transparent); }
.vc-row-date { display: grid; align-self: start; padding-top: 2px; }
.vc-row-date b { font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -.01em; line-height: 1.1; }
.vc-row-date span { font-size: 13px; color: var(--slate); }
.vc-row-main { display: grid; gap: 6px; }
.vc-row-main h3 { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.3; color: var(--navy); transition: color var(--dur-fast) var(--ease-std); }
.vc-row:hover h3 { color: var(--teal-ink); }
.vc-row-main p { color: var(--slate); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 72ch; }
.vc-row-img { aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; position: relative; background: var(--mist); }
.vc-row-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-base) var(--ease-out); }
.vc-row:hover .vc-row-img img { transform: scale(1.03); }

.vc-more-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.vc-morelist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.vc-morelist a { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 56px; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); color: var(--navy); font-weight: 600; }
.vc-morelist a::after { content: ""; flex: none; width: 8px; height: 8px; border-top: 2px solid var(--teal-ink); border-right: 2px solid var(--teal-ink); transform: rotate(45deg); transition: transform var(--dur-fast) var(--ease-std); }
.vc-morelist a:hover { color: var(--teal-ink); }
.vc-morelist a:hover::after { transform: translateX(4px) rotate(45deg); }

.vc-nl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; background: var(--mist); border-radius: var(--r-card); padding: clamp(28px, 5vw, 64px); }
.vc-nl p { margin-top: var(--s-4); }
.vc-nl-form { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.vc-nl-input { flex: 1 1 220px; min-height: 52px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--r-btn); background: var(--white); color: var(--navy); font: 400 16px/1.4 var(--font); }
.vc-nl-input:focus { outline: none; border-color: var(--teal-ink); box-shadow: 0 0 0 3px rgba(43, 163, 154, .18); }
.vc-nl-thanks { padding: var(--s-4) var(--s-5); background: var(--white); border-radius: var(--r-sm); color: var(--teal-ink); font-weight: 600; }
.vc-nl .v-form-note { margin-top: var(--s-3); }

/* ==========================================================================
   READING LAYOUT: articles and legal pages (signature: progress line + TOC)
   ========================================================================== */
.vc-progress { position: fixed; left: 0; right: 0; top: var(--header-h); height: 3px; z-index: 90; pointer-events: none; }
.vc-progress span { display: block; height: 100%; background: var(--teal); transform-origin: left center; transform: scaleX(0); }
.vc-grid { display: grid; grid-template-columns: minmax(0, 720px) 240px; gap: var(--s-9); justify-content: center; }
.vc-grid--solo { grid-template-columns: minmax(0, 720px); }
.vc-ahead { padding: calc(var(--section-y) * .45) 0 var(--s-7); }
.vc-ah1 { margin-top: var(--s-4); font-size: clamp(34px, 4vw, 56px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; color: var(--navy); overflow-wrap: break-word; }
.vc-asum { margin-top: var(--s-5); }
.vc-byline { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: var(--s-5); font-size: var(--fs-small); color: var(--slate); }
.vc-byline span:first-child { color: var(--navy); font-weight: 600; }
.vc-cover { position: relative; max-width: 1056px; margin: 0 auto; aspect-ratio: 2 / 1; border-radius: var(--r-card); overflow: hidden; background: var(--mist); }
.vc-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vc-readsec { padding: var(--s-8) 0 var(--section-y); }
.vc-body { min-width: 0; }
.vc-toc { grid-column: 2; grid-row: 1; }
.vc-body { grid-column: 1; grid-row: 1; }
.vc-toc-h { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin-bottom: var(--s-3); }
.vc-toc ol { list-style: none; margin: 0; padding: 0; }
.vc-toc a { position: relative; line-height: 1.4; padding: 7px 0; transition: color var(--dur-fast) var(--ease-std); }
.vc-toc a::before { content: ""; position: absolute; left: calc(-1 * var(--s-5) - 1px); top: 6px; bottom: 6px; width: 2px; background: var(--teal); transform: scaleY(0); transition: transform var(--dur-base) var(--ease-out); }
.vc-toc a.is-active { color: var(--navy); font-weight: 600; }
.vc-toc a.is-active::before { transform: scaleY(1); }
.vc-toc-m { display: none; margin-bottom: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-sm); }
.vc-toc-m summary { list-style: none; cursor: pointer; min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--s-4); font-weight: 600; color: var(--navy); }
.vc-toc-m summary::-webkit-details-marker { display: none; }
.vc-toc-m summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--teal-ink); border-bottom: 2px solid var(--teal-ink); transform: rotate(45deg); transition: transform var(--dur-fast) var(--ease-std); }
.vc-toc-m[open] summary::after { transform: rotate(225deg); }
.vc-toc-m ol { margin: 0; padding: 0 var(--s-4) var(--s-4) calc(var(--s-4) + 18px); }
.vc-toc-m li { padding: 6px 0; font-size: 15px; }
.vc-toc-m a { color: var(--slate); }

/* The stored body: headings, lists, tables, quotes, images, code, and the CMS blocks */
.vc-prose { font-size: clamp(17px, 1.25vw, 18px); line-height: 1.75; color: var(--slate); overflow-wrap: break-word; }
.vc-prose > * + * { margin-top: 1.15em; }
.vc-prose h2 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.2; letter-spacing: -.01em; margin-top: 2.2em; scroll-margin-top: calc(var(--header-h) + 24px); }
.vc-prose h3 { font-size: clamp(20px, 1.6vw, 23px); line-height: 1.3; margin-top: 1.8em; scroll-margin-top: calc(var(--header-h) + 24px); }
.vc-prose h4 { font-size: 18px; margin-top: 1.6em; }
.vc-prose h2 + *, .vc-prose h3 + *, .vc-prose h4 + * { margin-top: .6em; }
.vc-prose > :first-child { margin-top: 0; }
.vc-prose strong, .vc-prose b { color: var(--navy); font-weight: 600; }
.vc-prose a { color: var(--teal-ink); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color var(--dur-fast) var(--ease-std); }
.vc-prose a:hover { text-decoration-color: transparent; }
.vc-prose ul, .vc-prose ol { padding-left: 1.4em; }
.vc-prose li + li { margin-top: .45em; }
.vc-prose li::marker { color: var(--teal-ink); font-weight: 600; }
.vc-prose blockquote { margin-left: 0; margin-right: 0; padding: var(--s-5) var(--s-6); background: var(--mist); border-left: 3px solid var(--teal); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--navy); }
.vc-prose blockquote > * + * { margin-top: .7em; }
.vc-prose blockquote ul, .vc-prose blockquote ol { padding-left: 1.2em; }
.vc-prose img { width: 100%; height: auto; border-radius: var(--r-card); background: var(--mist); }
.vc-prose figure { margin-left: 0; margin-right: 0; }
.vc-prose figcaption { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--slate); }
.vc-prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.vc-prose code { font-size: .9em; background: var(--mist); color: var(--navy); padding: 2px 6px; border-radius: 6px; }
.vc-prose pre { background: var(--navy); color: var(--teal-light); padding: var(--s-5); border-radius: var(--r-sm); overflow-x: auto; font-size: 14px; line-height: 1.6; }
.vc-prose pre code { background: none; color: inherit; padding: 0; }
.vc-prose .tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-sm); }
.vc-prose table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.vc-prose th, .vc-prose td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.vc-prose thead th { background: var(--mist); color: var(--navy); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.vc-prose tbody tr:last-child td, .vc-prose tbody tr:last-child th { border-bottom: 0; }
.vc-prose td:first-child { color: var(--navy); font-weight: 600; }
.vc-prose .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Stat strip authored in some bodies */
.vc-prose .art-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; border-top: 2px solid var(--navy); border-bottom: 1px solid var(--line); }
.vc-prose .art-stats > div { padding: var(--s-4) var(--s-3) var(--s-4) 0; }
.vc-prose .art-stats b { display: block; font-size: clamp(22px, 2vw, 28px); font-weight: 800; line-height: 1.1; color: var(--navy); letter-spacing: -.01em; }
.vc-prose .art-stats span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--slate); }
/* In-body calls to action authored in some bodies */
.vc-prose .blog-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); }
.vc-prose .blog-banner p { flex: 1 1 320px; margin: 0; font-size: 15px; line-height: 1.6; }
.vc-prose .blog-cta { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--s-2) var(--s-5); align-items: center; padding: clamp(20px, 3vw, 32px); background: var(--mist); border-radius: var(--r-card); }
.vc-prose .blog-cta .badge-img { grid-row: span 3; width: 120px; height: 120px; border-radius: 50%; background: var(--white); object-fit: contain; }
.vc-prose .blog-cta h3 { margin: 0; }
.vc-prose .blog-cta p { margin: 0; font-size: 15px; line-height: 1.6; }
.vc-prose .blog-btns { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-2) 0 0; }
.vc-prose .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: var(--r-btn); border: 1.5px solid var(--teal-ink); background: var(--teal-ink); color: var(--white); font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none;
  transition: background var(--dur-fast) var(--ease-std), border-color var(--dur-fast) var(--ease-std), color var(--dur-fast) var(--ease-std); }
.vc-prose .btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.vc-prose .btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.vc-prose .btn-ghost:hover { background: var(--navy); color: var(--white); }
.vc-tags { list-style: none; margin: var(--s-7) 0 0; padding: var(--s-5) 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--s-2); }
.vc-tags li { font-size: 13px; color: var(--navy); background: var(--mist); border-radius: var(--r-pill); padding: 6px 14px; }

.vc-relgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-7); }
.vc-rel { display: grid; gap: var(--s-3); align-content: start; color: inherit; }
.vc-rel-img { aspect-ratio: 16 / 10; border-radius: var(--r-card); overflow: hidden; position: relative; background: var(--white); }
.vc-rel-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-base) var(--ease-out); }
.vc-rel:hover .vc-rel-img img { transform: scale(1.03); }
.vc-rel .vc-type { margin-top: var(--s-2); }
.vc-rel h3 { font-size: var(--fs-h3); line-height: 1.25; color: var(--navy); }

/* Legal */
.vc-legalhero { padding: var(--s-6) 0 var(--s-6); }
.vc-legalnav { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: calc(var(--section-y) * .35); }
.vc-legalnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: var(--r-pill); border: 1.5px solid var(--line); color: var(--navy); font-size: 14px; font-weight: 500; transition: border-color var(--dur-fast) var(--ease-std), color var(--dur-fast) var(--ease-std); }
.vc-legalnav a:hover { border-color: var(--teal-ink); color: var(--teal-ink); }
.vc-legalnav a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.vc-legal-h1 { margin-top: var(--s-4); font-size: clamp(40px, 4.6vw, 68px); }
.vc-updated { margin-top: var(--s-4); font-size: var(--fs-small); color: var(--slate); }
.vc-readsec--legal { padding-top: var(--s-6); border-top: 1px solid var(--line); }
.vc-prose--legal { font-size: 17px; }

/* ==========================================================================
   /health: centered hero, context list, trade-off trio + answer card
   ========================================================================== */
.vc-hhero { padding: calc(var(--section-y) * .55) 0 calc(var(--section-y) * .5); text-align: center; }
.vc-hhero-copy { max-width: 820px; margin: 0 auto; }
.vc-hhero .v-h1 { margin-top: var(--s-4); }
.vc-hhero .v-lead { margin: var(--s-5) auto 0; max-width: 40ch; }
.vc-hhero .v-actions { justify-content: center; }
.vc-hhero-img { margin-top: var(--s-8); }
.vc-ctx { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--teal-light); }
.vc-ctx li { display: grid; grid-template-columns: 72px 1fr; gap: var(--s-5); padding: var(--s-6) 0; border-bottom: 1px solid var(--teal-light); }
.vc-ctx-n { font-size: 15px; font-weight: 700; color: var(--teal-ink); letter-spacing: .06em; padding-top: 4px; }
.vc-ctx p { margin-top: 6px; }
.vc-trade-lead { text-align: center; max-width: 40ch; margin: var(--s-5) auto 0; }
.vc-trade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-8); }
.vc-trade-card { border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-6); background: var(--white); }
.vc-trade-chip { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); background: var(--mist); padding: 6px 12px; border-radius: var(--r-pill); }
.vc-trade-card .v-h3 { margin-top: var(--s-5); }
.vc-trade-card p { margin-top: var(--s-2); }
.vc-trade-join { display: flex; justify-content: center; padding: var(--s-6) 0; }
.vc-trade-join .v-smile { width: min(560px, 70%); margin: 0; }
.vc-trade-join .v-smile path { stroke-width: 2px; }
.vc-fit { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; background: var(--navy); color: var(--teal-light); border-radius: var(--r-card); padding: clamp(20px, 3vw, 32px); }
.vc-fit-img .v-media { border-radius: var(--r-sm); }
.vc-fit .v-eyebrow { color: var(--teal-light); }
.vc-fit .v-h2 { color: var(--white); margin-top: var(--s-3); }
.vc-fit p { margin-top: var(--s-4); color: var(--teal-light); max-width: 46ch; }
.vc-fit .v-link { color: var(--white); }
.vc-fit-copy { padding-right: var(--s-6); }
.vc-note--center { text-align: center; margin-left: auto; margin-right: auto; }
.vc-hhero ~ .v-section .vc-note { margin: var(--s-7) auto 0; text-align: center; }

/* ==========================================================================
   404: calm photo, big link list
   ========================================================================== */
.vc-404 { padding: calc(var(--section-y) * .5) 0 calc(var(--section-y) * .4); }
.vc-404-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.vc-404 .v-h1 { margin-top: var(--s-4); }
.vc-404 .v-lead { margin-top: var(--s-5); max-width: 34ch; }
.vc-404-art { max-width: 460px; justify-self: end; width: 100%; }
.vc-golist { list-style: none; margin: var(--s-7) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-7); border-top: 1px solid var(--line); }
.vc-golist a { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "h arrow" "p arrow"; column-gap: var(--s-4); align-items: center; padding: var(--s-5) 0; border-bottom: 1px solid var(--line); color: inherit; min-height: 64px; }
.vc-golist a::after { content: ""; grid-area: arrow; width: 10px; height: 10px; border-top: 2px solid var(--teal-ink); border-right: 2px solid var(--teal-ink); transform: rotate(45deg); transition: transform var(--dur-fast) var(--ease-std); }
.vc-golist a:hover::after { transform: translateX(4px) rotate(45deg); }
.vc-go-h { grid-area: h; font-size: var(--fs-h3); font-weight: 700; color: var(--navy); transition: color var(--dur-fast) var(--ease-std); }
.vc-golist a:hover .vc-go-h { color: var(--teal-ink); }
.vc-go-p { grid-area: p; font-size: 15px; color: var(--slate); margin-top: 2px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .vc-rlib { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .vc-grid { grid-template-columns: minmax(0, 720px); }
  .vc-toc { display: none; }
  .vc-toc-m { display: block; }
  .vc-rlib[data-view="list"] .vc-rcard-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .vc-rlib[data-view="list"] .vc-rchip { grid-column: 1; grid-row: 4; justify-self: start; margin-top: 6px; }
  .vc-rlib[data-view="list"] .vc-rnums { grid-column: 2; }
}
@media (max-width: 960px) {
  .vc-rhero-grid, .vc-fhero-grid, .vc-fmore-grid, .vc-more-in, .vc-404-grid { grid-template-columns: 1fr; }
  .vc-rlib { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vc-rlib--rel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vc-feat { grid-template-columns: 1fr; }
  .vc-feat-side { grid-template-columns: 1fr 1fr; }
  .vc-libhero-in { grid-template-columns: 1fr; gap: var(--s-6); }
  .vc-fcard-grid { grid-template-columns: 1fr; }
  .vc-trade { grid-template-columns: 1fr; }
  .vc-fit { grid-template-columns: 1fr; }
  .vc-fit-copy { padding: 0 var(--s-3) var(--s-4); }
  .vc-relgrid { grid-template-columns: 1fr 1fr; }
  .vc-404-art { justify-self: start; max-width: 360px; }
  .vc-fidea { border-left: 0; padding-left: 0; border-top: 2px solid var(--teal); padding-top: var(--s-5); }
}
@media (max-width: 760px) {
  .vc-row { grid-template-columns: minmax(0, 1fr) 96px; gap: var(--s-4); align-items: start; }
  .vc-row-date { grid-column: 1 / -1; grid-row: 1; display: flex; gap: 6px; align-items: baseline; padding: 0; }
  .vc-row-date b { font-size: 15px; }
  .vc-row-main { grid-column: 1; grid-row: 2; }
  .vc-row-img { grid-column: 2; grid-row: 2; }
  .vc-row-main p { -webkit-line-clamp: 3; }
  .vc-libstats { gap: var(--s-4); flex-wrap: wrap; }
  .vc-feat-side { grid-template-columns: 1fr; }
  .vc-fstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vc-fstats div:nth-child(3) { border-left: 0; padding-left: 0; }
  .vc-fstats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .vc-golist { grid-template-columns: 1fr; }
  .vc-cover { aspect-ratio: 4 / 3; }
  .vc-prose .blog-cta { grid-template-columns: 1fr; }
  .vc-prose .blog-cta .badge-img { grid-row: auto; width: 88px; height: 88px; }
  .vc-relgrid { grid-template-columns: 1fr; }
  .vc-sheet { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
  .vc-sheet figure:nth-child(2), .vc-sheet figure:nth-child(5) { transform: translateY(var(--s-4)); }
  .vc-sheet figcaption { font-size: 10px; padding: 3px 8px; left: 4px; bottom: 4px; }
}
/* Phones: both library views become dense horizontal rows */
@media (max-width: 640px) {
  .js .vc-view.vc-js, .vc-view { display: none !important; }
  .vc-rlib, .vc-rlib--rel, .vc-rlib[data-view="list"] { grid-template-columns: 1fr; gap: var(--s-3); border-top: 0; }
  .vc-rlib .vc-rcard, .vc-rlib[data-view="list"] .vc-rcard { flex-direction: row; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0; background: var(--white); }
  .vc-rlib .vc-rcard-img, .vc-rlib[data-view="list"] .vc-rcard-img { flex: none; width: 104px; aspect-ratio: auto; border-radius: 0; }
  .vc-rlib .vc-rcard-body, .vc-rlib[data-view="list"] .vc-rcard-body { display: flex; flex-direction: column; padding: var(--s-3) var(--s-4); gap: 4px; }
  .vc-rlib .vc-rcard h3 { font-size: 16px; }
  .vc-rlib .vc-rcard p { font-size: 13px; }
  .vc-rlib[data-view="list"] .vc-rchip { margin-top: 4px; }
  .vc-rlib .vc-rnums, .vc-rlib[data-view="list"] .vc-rnums { border-top: 1px solid var(--line); padding-top: var(--s-2); margin-top: var(--s-2); }
  .vc-rnums dd { font-size: 14px; }
  .vc-rnums dt { font-size: 10.5px; }
  .vc-nl { grid-template-columns: 1fr; }
  .vc-nl-form .v-btn { width: 100%; }
  .vc-fcard { padding: var(--s-5) var(--s-4); border-radius: var(--r-sm); }
  .vc-ba { padding: var(--s-4); }
  .vc-libbar, .vc-rbar { align-items: flex-start; }
  .vc-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; min-width: 0; padding: 2px 0; }
  .vc-chips::-webkit-scrollbar { display: none; }
  .vc-chip { flex: none; }
  .vc-rbar-tools { width: 100%; }
  .vc-fhero-chip { left: var(--s-3); bottom: var(--s-3); font-size: 13px; padding: 8px 14px; }
}

/* Reduced motion: final state at once */
@media (prefers-reduced-motion: reduce) {
  .js [data-filter-list] > .vc-in { animation: none; }
  .js .vc-ba .vc-ba-seg { transform: none !important; transition: none !important; }
  .vc-progress { display: none; }
}
