/*
 * Vedekon public site: shared look of the static pages (/blog, /cases, /learn).
 *
 * The same design as the React pages (src/index.css, src/components/landing/site.tsx):
 * navy ink, one steel-blue accent, hairlines, 4px radius, IBM Plex on white. The
 * header, sub-nav and footer are drawn by /site/site.js from the same links as
 * src/lib/siteNav.ts. New static pages link this file and that script; they never
 * carry their own nav, footer or colours (CLAUDE.md, "Marketing site design").
 * The logo is the fixed file in /brand/ and takes nothing from here.
 */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/site/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/site/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/site/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 500; font-display: swap; src: url("/site/fonts/ibm-plex-serif-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-style: italic; font-weight: 500; font-display: swap; src: url("/site/fonts/ibm-plex-serif-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 600; font-display: swap; src: url("/site/fonts/ibm-plex-serif-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/site/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/site/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --vk-ink: #0F1B2D;        /* 216 50% 12%: text, buttons */
  --vk-body: #333B48;       /* article text */
  --vk-muted: #67707F;      /* 220 10% 45% */
  --vk-faint: #8A919C;
  --vk-brand: #D13A1F;      /* signal vermilion (9 74% 47%): links, eyebrows, active */
  --vk-brand-dark: #A92E18;
  --vk-line: #E4E2DC;       /* 45 13% 88%: hairlines */
  --vk-plane: #F7F6F3;      /* 48 20% 96%: alternate sections */
  --vk-red: #B42318;
  --vk-green: #2F7A4F;
  --vk-radius: 4px;
  --vk-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --vk-serif: "IBM Plex Serif", Georgia, serif;
  --vk-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Base ---------- */
body.vk-site { margin: 0; background: #fff; color: var(--vk-ink); font-family: var(--vk-sans); -webkit-font-smoothing: antialiased; }
.vk-site h1, .vk-site h2 { font-family: var(--vk-serif); font-weight: 500; letter-spacing: -0.01em; }
.vk-site a { color: inherit; }
.vk-site img { max-width: 100%; }

/* The reset Tailwind's CDN used to apply on the pages that loaded it (kept so their spacing stays). */
.vk-reset *, .vk-reset *::before, .vk-reset *::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: var(--vk-line); }
.vk-reset h1, .vk-reset h2, .vk-reset h3, .vk-reset h4, .vk-reset p, .vk-reset figure, .vk-reset blockquote, .vk-reset ul, .vk-reset ol { margin: 0; }
.vk-reset ul, .vk-reset ol { list-style: none; padding: 0; }
.vk-reset img { display: block; height: auto; }
.vk-reset button, .vk-reset input { font: inherit; }

.vk-wrap { max-width: 1400px; margin: 0 auto; padding: 0 32px; box-sizing: border-box; }
@media (max-width: 1023px) { .vk-wrap { padding: 0 16px; } }

/* ---------- Header (drawn by site.js) ---------- */
.vk-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--vk-line); }
.vk-header__bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.vk-logo { display: flex; align-items: center; }
.vk-logo img { height: 24px; width: auto; display: block; }
.vk-nav { display: flex; align-items: center; gap: 4px; }
.vk-nav a, .vk-nav__menu > span { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; font-size: 14px; line-height: 20px; color: var(--vk-muted); text-decoration: none; border-bottom: 2px solid transparent; cursor: pointer; }
.vk-nav a:hover, .vk-nav__menu:hover > span { color: var(--vk-ink); }
.vk-nav .is-active, .vk-nav__menu.is-active > span { color: var(--vk-ink); border-bottom-color: var(--vk-brand); }
.vk-nav__menu { position: relative; }
.vk-nav__menu svg { width: 14px; height: 14px; opacity: 0.6; }
.vk-nav__drop { display: none; position: absolute; top: 100%; left: 0; width: 288px; padding: 4px; background: #fff; border: 1px solid var(--vk-line); border-radius: var(--vk-radius); box-shadow: 0 12px 32px -12px rgba(15,27,45,0.25); }
.vk-nav__menu:hover .vk-nav__drop, .vk-nav__menu:focus-within .vk-nav__drop { display: block; }
.vk-nav__drop a { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px; border: 0; border-radius: 2px; color: var(--vk-ink); }
.vk-nav__drop a:hover { background: var(--vk-plane); }
.vk-nav__drop b { font-size: 14px; font-weight: 500; }
.vk-nav__drop small { font-size: 12px; color: var(--vk-muted); }
.vk-actions { display: flex; align-items: center; gap: 12px; }
.vk-actions .vk-signin { font-size: 14px; font-weight: 500; color: var(--vk-ink); text-decoration: none; padding: 8px 12px; }
.vk-actions .vk-signin:hover { background: var(--vk-plane); border-radius: var(--vk-radius); }
.vk-burger { display: none; width: 36px; height: 36px; align-items: center; justify-content: center; background: none; border: 0; color: var(--vk-ink); cursor: pointer; }
.vk-burger svg { width: 18px; height: 18px; }
.vk-mobile { display: none; border-top: 1px solid var(--vk-line); padding: 8px 0 16px; }
.vk-mobile a { display: block; padding: 10px 0; font-size: 15px; color: var(--vk-ink); text-decoration: none; }
.vk-mobile .vk-mobile__sub a { padding-left: 16px; color: var(--vk-muted); font-size: 14px; }
.vk-header.is-open .vk-mobile { display: block; }
@media (max-width: 767px) {
  .vk-nav { display: none; }
  .vk-burger { display: inline-flex; }
  .vk-actions .vk-signin { display: none; }
}

/* Sub-nav: the three static sections. */
.vk-subnav { border-bottom: 1px solid var(--vk-line); background: #fff; }
.vk-subnav .vk-wrap { display: flex; gap: 24px; overflow-x: auto; }
.vk-subnav a { display: inline-block; padding: 12px 0 10px; font-size: 13px; font-weight: 500; color: var(--vk-muted); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.vk-subnav a:hover { color: var(--vk-ink); }
.vk-subnav a.is-active { color: var(--vk-ink); border-bottom-color: var(--vk-brand); }

/* ---------- Buttons ---------- */
.vk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: var(--vk-radius); background: var(--vk-ink); color: #fff !important; font: 500 14px/1 var(--vk-sans); text-decoration: none; border: 1px solid var(--vk-ink); cursor: pointer; transition: background .15s; }
.vk-btn:hover { background: #1B2A40; }
.vk-btn--sm { height: 36px; padding: 0 12px; }
.vk-btn--outline { background: #fff; color: var(--vk-ink) !important; border-color: var(--vk-line); }
.vk-btn--outline:hover { background: var(--vk-plane); }

/* ---------- Hero ---------- */
.vk-hero { background: #fff; padding: 56px 0 48px; }
.vk-hero--hub { border-bottom: 1px solid var(--vk-line); }
.vk-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 20px; font: 600 11px/1.4 var(--vk-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--vk-brand); }
.vk-crumbs a { color: var(--vk-brand); text-decoration: none; }
.vk-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.vk-crumbs span[aria-hidden] { color: var(--vk-faint); }
.vk-hero h1 { font-family: var(--vk-serif); font-weight: 500; font-size: 52px; line-height: 1.08; letter-spacing: -0.01em; color: var(--vk-ink); margin: 0 0 20px; max-width: 880px; text-wrap: balance; }
.vk-hero .vk-lead { font-size: 19px; line-height: 1.6; color: var(--vk-muted); margin: 0 0 16px; max-width: 720px; }
.vk-byline { font-size: 13px; color: var(--vk-faint); margin: 0; }
.vk-stats { display: flex; flex-wrap: wrap; margin-top: 36px; border-top: 1px solid var(--vk-line); border-bottom: 1px solid var(--vk-line); max-width: 880px; }
.vk-stats > div { padding: 16px 32px 16px 0; margin-right: 32px; border-right: 1px solid var(--vk-line); }
.vk-stats > div:last-child { border-right: 0; margin-right: 0; }
.vk-stats b { display: block; font: 400 26px/1.2 var(--vk-mono); color: var(--vk-brand); }
.vk-stats b.is-red { color: var(--vk-red); }
.vk-stats small { display: block; margin-top: 4px; font-size: 12px; color: var(--vk-muted); }
@media (max-width: 767px) {
  .vk-hero { padding: 36px 0 32px; }
  .vk-hero h1 { font-size: 34px; }
  .vk-hero .vk-lead { font-size: 17px; }
  .vk-stats > div { padding-right: 20px; margin-right: 20px; }
  .vk-stats b { font-size: 22px; }
}

/* An article's photo: framed, credited, never full-screen (CLAUDE.md content standards). */
.vk-hero .vk-figure { margin: 32px 0 0; }
.vk-figure img { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 560; object-fit: cover; border-radius: var(--vk-radius); border: 1px solid var(--vk-line); }
.vk-figure figcaption { margin-top: 10px; font-size: 12px; color: var(--vk-faint); }

/* ---------- Layout: sidebar + content ---------- */
.vk-main { background: #fff; }
.vk-layout { max-width: 1400px; margin: 0 auto; padding: 48px 32px 88px; display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 56px; align-items: start; box-sizing: border-box; }
.vk-layout > aside, .vk-layout > div:first-child { min-width: 0; }
@media (max-width: 1023px) {
  .vk-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 32px 16px 64px; }
  .vk-layout > :first-child { order: 2; }
  #vedekon-nav { position: static !important; max-height: none !important; }
}

/* The section sidebar (public/vedekon-nav.js). */
#vedekon-nav { position: sticky; top: 132px; max-height: calc(100vh - 148px); overflow-y: auto; background: #fff !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 0 !important; }
.vk-sidenav__home { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; font: 500 12px/1 var(--vk-sans); color: var(--vk-muted); text-decoration: none; }
.vk-sidenav__home:hover { color: var(--vk-ink); }
.vk-sidenav__group { margin-bottom: 22px; }
.vk-sidenav__label { display: block; margin-bottom: 6px; padding: 4px 0; font: 600 11px/1.4 var(--vk-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--vk-faint); text-decoration: none; }
.vk-sidenav__label:hover, .vk-sidenav__label.is-active { color: var(--vk-brand); }
.vk-sidenav__item { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 6px 10px; margin-bottom: 1px; font-size: 13px; line-height: 1.4; color: var(--vk-muted); text-decoration: none; border-left: 2px solid var(--vk-line); }
.vk-sidenav__item:hover { color: var(--vk-ink); background: var(--vk-plane); }
.vk-sidenav__item.is-active { color: var(--vk-ink); font-weight: 600; border-left-color: var(--vk-brand); }
.vk-sidenav__item small { font: 400 11px/1.4 var(--vk-mono); color: var(--vk-faint); white-space: nowrap; }
.vk-sidenav__sub { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--vk-line); }
.vk-sidenav__sub p { margin: 0 0 10px; font-size: 12px; line-height: 1.5; color: var(--vk-muted); }
.vk-sidenav__sub p:first-child { font: 600 11px/1.4 var(--vk-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--vk-faint); }
.vk-sidenav__sub form { display: flex; flex-direction: column; gap: 6px; }
.vk-sidenav__sub input { width: 100%; box-sizing: border-box; height: 34px; padding: 0 10px; border: 1px solid var(--vk-line); border-radius: var(--vk-radius); font: 13px var(--vk-sans); outline: none; }
.vk-sidenav__sub input:focus { border-color: var(--vk-brand); }
.vk-sidenav__sub button { height: 34px; border: 0; border-radius: var(--vk-radius); background: var(--vk-ink); color: #fff; font: 500 13px var(--vk-sans); cursor: pointer; }

/* ---------- Article body ---------- */
.article-body { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; max-width: 760px; }
.article-body h2 { font-family: var(--vk-serif); font-size: 28px; font-weight: 500; line-height: 1.25; color: var(--vk-ink); margin: 48px 0 16px; }
.article-body section:first-child h2:first-child, .article-body > h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 18px; font-weight: 600; color: var(--vk-ink); margin: 32px 0 12px; }
.article-body p { font-size: 17px; line-height: 1.8; color: var(--vk-body); margin: 0 0 18px; }
.article-body ul { margin: 0 0 18px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.article-body li { font-size: 16px; line-height: 1.75; color: var(--vk-body); }
.article-body strong { color: var(--vk-ink); }
.article-body a { color: var(--vk-brand); }
.article-body a:hover { text-decoration: underline; }

/* ---------- Cards ---------- */
.card-link { text-decoration: none; }
.card-link, .format-card, .red-flag-card { transition: border-color .15s; }
.card-link:hover, .format-card:hover { border-color: #C9C6BC !important; }
.read-arrow { display: inline-block; transition: transform .2s; }
.card-link:hover .read-arrow, .article-row:hover .read-arrow { transform: translateX(4px); }
.card-img-overlay { position: relative; }

/* ---------- Closing call to action ---------- */
.vk-cta { background: var(--vk-ink); padding: 80px 16px; text-align: center; }
.vk-cta h2 { font-family: var(--vk-serif); font-weight: 500; font-size: 34px; line-height: 1.2; color: #fff; margin: 0 auto 14px; max-width: 640px; text-wrap: balance; }
.vk-cta p { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.7); margin: 0 auto 32px; max-width: 560px; }
.vk-cta .vk-cta__eyebrow { margin: 0 auto 14px; font: 600 11px/1.4 var(--vk-sans); letter-spacing: 0.14em; text-transform: uppercase; color: #8FB0D6; }
.vk-cta .vk-btn { background: #fff; color: var(--vk-ink) !important; border-color: #fff; }
.vk-cta .vk-btn:hover { background: rgba(255,255,255,0.9); }
.vk-cta .vk-btn--outline { background: transparent; color: #fff !important; border-color: rgba(255,255,255,0.3); }
.vk-cta .vk-btn--outline:hover { background: rgba(255,255,255,0.1); }
.vk-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.vk-cta__form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto 16px; }
.vk-cta__form input { flex: 1; min-width: 0; height: 40px; padding: 0 14px; border: 1px solid var(--vk-line); border-radius: var(--vk-radius); font: 14px var(--vk-sans); background: #fff; color: var(--vk-ink); outline: none; }
.vk-cta__form input:focus { border-color: var(--vk-brand); }
.vk-cta .vk-cta__note { font-size: 12px; color: rgba(255,255,255,0.5); margin: 0 auto; }
@media (max-width: 480px) { .vk-cta__form { flex-direction: column; } .vk-cta h2 { font-size: 28px; } }

/* ---------- Footer (drawn by site.js) ---------- */
.vk-footer { border-top: 1px solid var(--vk-line); background: #fff; }
.vk-footer__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px; padding: 56px 0 0; }
.vk-footer__brand { grid-column: span 2; }
.vk-footer__brand img { height: 20px; width: auto; display: block; }
.vk-footer__brand p { margin: 16px 0 20px; max-width: 320px; font-size: 14px; line-height: 1.6; color: var(--vk-muted); }
.vk-footer h4 { margin: 0 0 12px; font: 600 12px/1.4 var(--vk-sans); letter-spacing: 0.05em; text-transform: uppercase; color: var(--vk-muted); }
.vk-footer ul { list-style: none; margin: 0; padding: 0; }
.vk-footer li { margin-bottom: 8px; }
.vk-footer li a { font-size: 14px; color: rgba(15,27,45,0.8); text-decoration: none; }
.vk-footer li a:hover { color: var(--vk-brand); }
.vk-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 48px; padding: 24px 0 56px; border-top: 1px solid var(--vk-line); font-size: 12px; color: var(--vk-muted); }
.vk-footer__legal p { margin: 0; }
@media (max-width: 767px) {
  .vk-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Line icons (lucide) in a hairline square: no emoji, no coloured tiles. */
.vk-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; border: 1px solid var(--vk-line); border-radius: var(--vk-radius); background: var(--vk-plane); color: var(--vk-ink); }
.vk-icon svg { width: 18px; height: 18px; }
.vk-icon--lg { width: 48px; height: 48px; }
.vk-icon--lg svg { width: 22px; height: 22px; }

/* ---------- Small screens: the pages' own two-column blocks ---------- */
@media (max-width: 767px) {
  .vk-stack-sm { display: block !important; }
  .vk-stack-sm > * { width: auto !important; }
  .vk-grid-2 { grid-template-columns: minmax(0, 1fr) !important; }
}
