@import url("/assets/css/editorial-type.css");

/* Shared brand colors for every English and Spanish page, including Paper Studio.
   Color only: no layout, type sizing, application behavior or scientific rules. */
:root {
  /* Brand primitives: material heritage and Colombian origins. */
  --vk-brand-paper: #F6F3EC;
  --vk-brand-kraft: #987044;
  --vk-brand-yellow: #FCD116;
  /* Colombian flag red and yellow. The blue is flag blue #003893, softened at the owner's request. */
  --vk-brand-blue: #17468A;
  --vk-brand-red: #CE1126;
  /* Kraft is the material; Colombian yellow is where the expertise began. For the signature line, footer link hover, selection and focus on dark. Not for buttons, paragraph text, panels, card borders or dividers. */
  --vk-colombia-yellow: var(--vk-brand-yellow);

  /* Surfaces: ordinary sections share one field; forms have a functional neutral. */
  --vk-color-page: var(--vk-brand-paper);
  --vk-color-surface: #EDE8DE;
  --vk-color-input: #FFFFFF;
  --vk-color-footer: #252A30;

  /* Text and separators are neutral, independent of the brand palette. */
  --vk-color-heading: #252A30;
  --vk-color-text: #3A342C;
  --vk-color-muted: #6B6153;
  --vk-color-rule: #B9AE99;
  --vk-color-rule-subtle: #DCD5C7;
  --vk-color-control-border: #857560;
  --vk-color-on-dark: var(--vk-brand-paper);
  --vk-color-muted-on-dark: #DCD5C7;
  --vk-color-rule-on-dark: #6B6153;

  /* Interaction and accessible derivatives, not additional brand hues. */
  --vk-color-action: var(--vk-brand-blue);
  --vk-color-action-hover: #113769;
  --vk-color-on-action: #F7F6F2;
  --vk-color-focus: var(--vk-brand-blue);
  --vk-color-focus-on-dark: var(--vk-brand-yellow);
  --vk-color-selection: var(--vk-brand-yellow);
  --vk-color-material-rule: var(--vk-brand-kraft);
  --vk-color-material-text: #765533;

  /* Status is a separate vocabulary; red branding never marks a normal control. */
  --vk-color-error: #A52E2A;
  --vk-color-warning: #705713;
  --vk-color-success: #2F6349;
  --vk-color-info: var(--vk-brand-blue);

  /* Preserve the existing logo lockup's brown, including its light-field variant. */
  --vk-color-logo-paper: #6E4420;
  --vk-color-logo-paper-on-dark: #CFA878;

  /* Compatibility bridge for existing components on every page. */
  --vk-paper: var(--vk-color-page);
  --vk-surface-2: var(--vk-color-surface);
  --vk-ink-900: var(--vk-color-heading);
  --vk-ink-700: var(--vk-color-text);
  --vk-ink-500: var(--vk-color-muted);
  --vk-rule: var(--vk-color-rule);
  --vk-rule-light: var(--vk-color-rule-subtle);
  --vk-control-border: var(--vk-color-control-border);
  --vk-pacific-800: var(--vk-color-action);
  --vk-pacific-900: var(--vk-color-action-hover);
  --vk-teal-300: var(--vk-color-focus-on-dark);
  --vk-kraft-200: var(--vk-color-material-rule);
  --vk-kraft-300: var(--vk-color-material-rule);
  --vk-kraft-500: var(--vk-color-material-rule);
  --vk-kraft-700: var(--vk-color-material-text);
}


.site-footer { background: var(--vk-color-footer); color: var(--vk-color-on-dark); }
.site-footer p, .site-footer li, .site-footer a,
.site-footer .brand, .site-footer .brand:hover { color: var(--vk-color-on-dark); }
.site-footer h3, .footer-bottom { color: var(--vk-color-muted-on-dark); }
.brand .brand-paper { color: var(--vk-color-logo-paper); }
.site-footer .brand .brand-paper { color: var(--vk-color-logo-paper-on-dark); }
.site-footer a:hover { color: var(--vk-brand-yellow); }
.site-footer :focus-visible { outline-color: var(--vk-color-focus-on-dark); }
.footer-grid { border-bottom-color: var(--vk-color-rule-on-dark); }

/* Existing 1px material rules: no new panels, ornaments or added thickness. */
.ledger > div, .supply-process > div { border-color: var(--vk-color-material-rule); }

/* Studio retains its functional surfaces and composition under the shared palette. */
body.studio-ai { --studio-brass: var(--vk-color-material-text); --studio-brass-rule: var(--vk-color-material-rule); }
.studio-ai .studio-composer-actions .btn:not(.studio-stop) {
  background: var(--vk-color-action);
  box-shadow: none;
}
.studio-ai .studio-composer-actions .btn:not(.studio-stop):hover {
  background: var(--vk-color-action-hover);
  box-shadow: none;
}

/* Signature line, site-wide: vertical, hanging to the left of a heading, so the text stays aligned with the column beneath it.
   Yellow beside page titles and the mill story, red beside subheadings. Chat name labels are not headings to the eye. */
main h1, main .studio-preboot-title, main h2:not(.visually-hidden):not(.studio-message > h2) { position: relative; }
main h1::before, main .studio-preboot-title::before, .vk-accent::before { content: ""; position: absolute; left: -18px; top: .1em; bottom: .1em; width: 4px; background: var(--vk-colombia-yellow); }
main h2:not(.visually-hidden):not(.studio-message > h2):not(.vk-accent)::before { content: ""; position: absolute; left: -16px; top: .1em; bottom: .1em; width: 3px; background: var(--vk-brand-red); }
main .vk-accent--mill::before { left: -16px; width: 3px; }
@media (max-width: 767px) {
  main h1::before, main .studio-preboot-title::before, .vk-accent::before { left: -12px; }
  main h2:not(.visually-hidden):not(.studio-message > h2):not(.vk-accent)::before, main .vk-accent--mill::before { left: -11px; }
}
