/* vendorplus-core.css — Foundation utilities, status badges, message boxes, navigation, animations, logo/header, typography, WP button polyfill */

:root {
  /* Aligned with Figma design system 2026-10-07 (figma-rules.md §3/§6):
     --accent, --accent-tint, --accent-ink, --success, --success-tint,
     --bg, --bg-3, --line, --line-2, --ink, --ink-3.
     --accent-2 (own purple accent button family; Figma bg/accent #5143de
     since 2026-11-15, was indigo #4338ca) and --bs-secondary (#4fabff) kept
     by user decision. Notice tones follow Figma Chrome / Notice.
     Updated 2026-10-09 for the Figma decisions of 2026-10-08: --accent-tint is
     now navy/50 (bg/brand-subtle), --accent-ink is navy (text/brand), new
     --selected-* tokens make selection neutral with a navy control, and
     purple (--accent-results) is for special attention-grabbing items only. */

  /* Brand neutrals — warm-toned, low chroma (design-rules.md §2) */
  --bg:          #fcfcfa;
  --bg-2:        #f7f7f5;
  --bg-3:        #f1f2ee;
  --line:        #e2e3de;
  --line-2:      #d8dad4;
  --line-strong: #a9aba4; /* = --line-hover, Figma border/control-hover (4.43.0, user D11; was #c4c4bc, no Figma value) */
  --ink:         #1d1e1b;
  --ink-2:       #1d1e1b; /* = --ink, Figma text/default (4.43.0, user D11; was #3d3f3a, no Figma value) */
  --ink-3:       #6f716b;
  --ink-4:       #6f716b; /* = --ink-3, Figma text/muted (4.43.0, user D11; was #969890, no Figma value) */

  /* Brand accent */
  --accent:      #1c3f85;
  --accent-tint: #eef2fa; /* Figma navy/50, bg/brand-subtle (was #eef0ff, 2026-10-09) */
  --accent-ink:  #1c3f85; /* Figma text/brand, text on --accent-tint (was #373078, 2026-10-09) */

  /* Selection states: neutral fill + navy control (Figma decision 2026-10-08) */
  --selected-bg:      var(--bg-2);    /* Figma bg/subtle (neutral/50, #f7f7f5) */
  --selected-border:  var(--line-2);  /* Figma border/strong (neutral/300) */
  --selected-control: var(--accent);  /* checked checkbox / radio */

  /* Figma purple/600 + purple/100, results/report accent, 2026-10-07.
     Purple is only for special attention-grabbing items (2026-10-08). */
  --accent-results:      #5143de;
  --accent-results-tint: #f0effd;

  --bs-primary: #1c3f85;
  --bs-primary-rgb: 28, 63, 133; /* = --bs-primary #1c3f85, for rgba() consumers (2026-10-07) */
  /* Figma Button Primary hover / active = bg/overlay-hover (black 8%) and
     bg/overlay-pressed (black 16%) over #1c3f85, flattened (4.45.0; both were #1a3570). */
  --bs-primary-hover: #1a3a7a;
  --bs-primary-active: #183570;
  --bs-primary-disabled: var(--ink-3);
  --bs-primary-text: #fff;

  --bs-secondary: #4fabff;
  --bs-secondary-hover: #4091d9;
  --bs-secondary-active: #4091d9;
  --bs-secondary-disabled: #6d859c;
  --bs-secondary-text: #000;
  /* Figma Chrome / Button Type=Secondary (78:14441): bg/surface, border/control,
     text/default; hover / active = bg/overlay-hover (black 8%) / bg/overlay-pressed
     (black 16%) over white, flattened. .button-secondary and .btn-outline-secondary
     use these since 4.43.0 (user decision D1, 2026-11-16, reverses the 2026-10-07
     light-blue buttons). --bs-secondary itself is unchanged (text/bg utilities). */
  --btn-secondary-hover:  #ebebeb;
  --btn-secondary-active: #d6d6d6;

  /* Semantic */
  --success:      #187a43;
  --success-tint: #effcf5;
  --success-border: #c5f1d7;
  --warn:         #b45309;
  --warn-tint:    #fffbeb;
  --warn-border:  #f8e69c; /* Figma border/warning (amber/200), 2026-10-18 */
  --warn-strong:  #92400e; /* Figma text/warning-strong, Chrome / Notice */
  --danger:       #b91c1c;
  --danger-tint:  #fff2f3; /* Figma bg/danger-subtle, Chrome / Notice */
  --danger-border: #f7cfd3; /* Figma border/danger-subtle, Chrome / Notice */
  --text-inverse: #fff;     /* Figma text/inverse (neutral/0 #ffffff): text on a solid fill, e.g. Chrome / Count badge Tone=Warning (5.7.0) */

  /* Figma Foundations tokens (61:7341), added 4.31.0 (2026-11-13).
     core.css is front-end only: rules in shared.css / components.css (which
     also load in wp-admin) must read these as var(--token, <literal>). */
  --line-hover:   #a9aba4; /* Figma border/control-hover (neutral/400). --line-strong equals it since 4.43.0 */
  --control-off:  #e2e3de; /* Figma bg/control-off (neutral/200), toggle Off track */
  --focus-ring-gap: #fff;  /* Figma effect/focus-ring-gap */
  /* Figma effect/focus-ring #1C3F85A6 (65%) outside a 2px white gap, 4px total (Chrome / Button Focus 165:338) */
  --focus-ring:   0 0 0 2px var(--focus-ring-gap), 0 0 0 4px rgba(28, 63, 133, 0.65);
  --shadow-subtle:    0 1px 1px rgba(0, 0, 0, 0.04);  /* Figma effect/shadow-subtle #0000000A */
  --elevation-modal:  0 5px 30px rgba(0, 0, 0, 0.3);  /* Figma Elevation/Modal #0000004D */

  /* Figma chart/1-6 (Reports 1234:707540) */
  --chart-1: #1c3f85;
  --chart-2: #5143de;
  --chart-3: #b45309;
  --chart-4: #92400e;
  --chart-5: #b91c1c;
  --chart-6: #6f716b;

  /* Figma space scale (frame 65:12184). Name = Figma space/N with "-" for
     ".", so --space-N = N x 4px: --space-0-5 = 2px, --space-1-5 = 6px. */
  --space-0-5: 0.125rem; /* 2px */
  --space-1:   0.25rem;  /* 4px */
  --space-1-5: 0.375rem; /* 6px */
  --space-2:   0.5rem;   /* 8px */
  --space-3:   0.75rem;  /* 12px */
  --space-4:   1rem;     /* 16px */
  --space-5:   1.25rem;  /* 20px */
  --space-6:   1.5rem;   /* 24px */
  --space-7:   1.75rem;  /* 28px */
  --space-8:   2rem;     /* 32px */
  --space-9:   2.25rem;  /* 36px */
  --space-12:  3rem;     /* 48px */

  /* Figma radius scale */
  --radius-xs:   0.25rem;  /* 4px, checkbox */
  --radius-sm:   0.375rem; /* 6px, inputs and buttons */
  --radius-md:   0.5rem;   /* 8px */
  --radius-lg:   0.75rem;  /* 12px, modals and cards */
  --radius-full: 9999px;

  /* Bootstrap 5.3.3 overrides (design-rules.md §2). vp-core-theme enqueues
     Bootstrap before this file, so these win on the front end. Bootstrap
     hard-codes its form focus, checked and invalid-icon colours, so form.css
     also restyles those states directly. */
  --bs-border-color: #e2e3de;          /* = --line, Figma border/default (was Bootstrap #dee2e6) */
  --bs-secondary-bg: #f7f7f5;          /* = --bg-2, Figma bg/subtle (was #e9ecef) */
  --bs-tertiary-bg:  #f1f2ee;          /* = --bg-3, Figma bg/muted (was #f8f9fa) */
  --bs-danger:       #b91c1c;          /* = --danger (was #dc3545) */
  --bs-danger-rgb:   185, 28, 28;
  --bs-danger-hover: #aa1a1a;          /* not a Bootstrap var: Figma bg/overlay-hover (black 8%) over #b91c1c, .button-danger:hover */
  --bs-danger-active: #9b1818;         /* not a Bootstrap var: Figma Danger Active 165:487 = bg/overlay-pressed (black 16%) over #b91c1c, .button-danger:active (5.10.0) */
  --bs-form-invalid-color:        #b91c1c;
  --bs-form-invalid-border-color: #b91c1c;
  --bs-focus-ring-width: 0.25rem;
  --bs-focus-ring-color: rgba(28, 63, 133, 0.65);

  /* Legacy */
  --bs-body-font-size: 0.8125rem;
  --bs-body-font-size-sm: 0.75rem;
  --bs-body-font-size-xs: 0.625rem;
  --vp-btn-font-size: var(--bs-body-font-size);

  /* Accent 2 = the Figma purple accent family (Chrome / Button Type=Accent,
     Semantic / accent* variables). Use only for special attention-grabbing
     items, e.g. the AI tools and report highlights (user decision 2026-10-09).
     Aligned with Figma 2026-11-15: --accent-2 was indigo #4338ca and the
     hover/active #312e81; Figma hover/active are bg/overlay-hover (black 8%)
     and bg/overlay-pressed (black 16%) over bg/accent, flattened here. */
  --accent-2: #5143de;          /* Figma bg/accent, text/accent, icon/accent (purple/600) */
  --accent-2-hover: #4b3ecd;    /* bg/overlay-hover over bg/accent */
  --accent-2-active: #4438ba;   /* bg/overlay-pressed over bg/accent */
  --accent-2-disabled: var(--ink-3);
  --accent-2-text: #fff;        /* Figma text/inverse */
  --accent-2-subtle:   #f0effd; /* Figma bg/accent-subtle (purple/100) = --accent-results-tint */
  --accent-2-selected: #f3f1ff; /* Figma bg/accent-selected (purple/50) */
  --accent-2-tint:     #eef0ff; /* Figma bg/accent-tint (indigo/50) */
  --accent-2-strong:   #373078; /* Figma text/accent-strong, bg/accent-strong (indigo/800) */
  --accent-2-border:        #c9c5f8; /* Figma border/accent (purple/300) */
  --accent-2-border-subtle: #ddd6fc; /* Figma border/accent-subtle (purple/200) */
  --accent-2-border-tint:   #e4e7fe; /* Figma border/accent-tint (indigo/100) */
  /* Results banner border (AM Item List, ruling D2): Figma border/accent. */
  --accent-results-border: var(--accent-2-border);
}

/* Figma Chrome / Notice tones. Exclude Toastify alerts, which own their colors. */
.alert:not(.toastify).alert-info,
.alert:not(.toastify).alert-primary {
  color: var(--accent-ink);
  background-color: var(--accent-tint);
  border-color: var(--line-2);
}
.alert:not(.toastify).alert-warning {
  color: var(--warn-strong);
  background-color: var(--warn-tint);
  border-color: var(--warn-border);
}
.alert:not(.toastify).alert-danger,
.alert:not(.toastify).alert-error {
  color: var(--danger);
  background-color: var(--danger-tint);
  border-color: var(--danger-border);
}
.alert:not(.toastify).alert-success {
  color: var(--success);
  background-color: var(--success-tint);
  border-color: var(--success-border);
}

/* Figma Chrome / Notice layout (4.30.0, templates/global/alerts.php): 12px
   tone icon in an 18px box beside an optional Semi Bold title and the
   messages, 13/20 text. Icon colour = text colour of the tone. */
.alert.vplus-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;                  /* 12px */
  font-size: 0.8125rem;          /* 13px */
  line-height: 1.25rem;          /* 20px */
}
.vplus-notice-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;               /* 18px box */
  height: 1.25rem;               /* aligned with the first 20px line */
  font-size: 0.75rem;            /* 12px glyph */
}
.vplus-notice-body {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;                 /* 2px between lines */
  min-width: 0;
}
.vplus-notice-body > p {
  margin: 0;
}
.vplus-notice-title {
  font-weight: 600;
}

b,
strong {
  font-weight: bold;
}

/* BASIC */
small {
  display: inline-block;
}

/* CORE */
@media (max-width: 420px) {
  .hidden-xxs {
    display: none !important;
  }
}

.padding-top-10 {
  padding-top: 0.625rem;
}
.padding-top-20 {
  padding-top: 1.25rem;
}
.padding-bottom-10 {
  padding-bottom: 0.625rem;
}
.padding-bottom-20 {
  padding-bottom: 1.25rem;
}
.hidden {
  display: none;
}
.relative {
  position: relative;
}
.on-top,
.filter-panel.on-top {
  z-index: 999;
}
.disable-link {
  pointer-events: none;
  cursor: default;
}
.grey-text {
  color: #999;
}
.strikethrough {
  text-decoration: line-through;
}
.margin-top-20 {
  margin-top: 1.25rem;
}
.margin-bottom-20 {
  margin-bottom: 1.25rem;
}

.vplus-delete-prompt .btn-block + .btn-block {
  margin-top: 0;
}

/* ITEM META */
/* Status colours (.vplus-status-{slug}) and the .vplus-status-box look moved to
   components.css "Status pill" in vp-core 4.25.0 (single owner). */
.vplus-meta-data {
  margin: 2.5rem 0;
}
.vplus-meta-data li {
  line-height: 1.8em;
}
.bid-override {
  color: #c00;
}
/* VP LINKS */
.vplus-link,
.vplus-link:hover,
.vplus-link:focus,
.vplus-link:visited,
.vplus-link:active {
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
}

.vplus-link,
.vplus-link:active {
  transform: scale(1);
}
.vplus-link:hover {
  transform: scale(1.1);
}

/* MESSAGE BOX (for logs) */

/* VP BUTTON NAVIGATION */
.vplus-navigation-bar {
  text-align: center;
  margin-bottom: 2.5rem;
}
.vplus-navigation-bar a {
  width: 7.5rem;
}
/* AJAX STYLES */
.deleting {
  background: pink;
}

/* PAGINATION */
.pagination a {
  cursor: pointer;
}

/* ANIMATIONS */
@-webkit-keyframes dashicons-spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}
@keyframes dashicons-spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}

/* Styles */
.vplus-logo {
  margin: 1rem 0;
  /* Client logos arrive with width/height attributes (ratio, no layout shift): keep them scaling. */
  max-width: 100%;
  height: auto;
  /* Cap tall client logos in the logged-in header; the sign-in page overrides this (sign-in.css). */
  max-height: 4rem;
  width: auto;
}

/* Page content top padding (Figma rule 2026-11-14, figma-rules.md §3):
   content starts 24px below the top nav, 32px from 768px. This margin is the
   only source of that gap on every page (4.37.1; was 16px everywhere). */
.header {
  margin-bottom: var(--space-6, 1.5rem);
}
@media (min-width: 768px) {
  .header {
    margin-bottom: var(--space-8, 2rem);
  }
}

/* Page content bottom padding (Figma screens, user 2026-11-16, design-rules.md):
   content ends 32px above the footer, 36px from 768px (Users 487:1016,
   Settings 1385:19938, Reports 1238:35 / 1238:883). Set on the page content
   (main.site-main, every VP+ template and the theme's page templates); the
   sign-in page has its own layout. (5.3.1; before, each page got whatever
   bottom margin its last element had: 0 to 36px.) */
body:not(.vplus-page-sign-in) .site-main {
  padding-bottom: var(--space-8, 2rem);
}
@media (min-width: 768px) {
  body:not(.vplus-page-sign-in) .site-main {
    padding-bottom: var(--space-9, 2.25rem);
  }
}
/* The padding above is the only gap: drop the trailing bottom margin of the
   last visible element and of its last visible children, which would
   otherwise collapse through wrapper divs and add to it (e.g. pagination 16px,
   a .mb-4 card 24px). !important only because Bootstrap's .mb-* utilities use
   it. "Last visible" skips trailing script / style / link / template / dialog and
   hidden markup ([hidden], .d-none, Bootstrap .modal, .vplus-modal-overlay). */
body:not(.vplus-page-sign-in) .site-main > :not(script, style, link, template, dialog, [hidden], .d-none, .modal, .vplus-modal-overlay):not(:has(~ :not(script, style, link, template, dialog, [hidden], .d-none, .modal, .vplus-modal-overlay))),
body:not(.vplus-page-sign-in) .site-main > :not(script, style, link, template, dialog, [hidden], .d-none, .modal, .vplus-modal-overlay):not(:has(~ :not(script, style, link, template, dialog, [hidden], .d-none, .modal, .vplus-modal-overlay))) > :not(script, style, link, template, dialog, [hidden], .d-none, .modal, .vplus-modal-overlay):not(:has(~ :not(script, style, link, template, dialog, [hidden], .d-none, .modal, .vplus-modal-overlay))),
body:not(.vplus-page-sign-in) .site-main > :not(script, style, link, template, dialog, [hidden], .d-none, .modal, .vplus-modal-overlay):not(:has(~ :not(script, style, link, template, dialog, [hidden], .d-none, .modal, .vplus-modal-overlay))) > :not(script, style, link, template, dialog, [hidden], .d-none, .modal, .vplus-modal-overlay):not(:has(~ :not(script, style, link, template, dialog, [hidden], .d-none, .modal, .vplus-modal-overlay))) > :not(script, style, link, template, dialog, [hidden], .d-none, .modal, .vplus-modal-overlay):not(:has(~ :not(script, style, link, template, dialog, [hidden], .d-none, .modal, .vplus-modal-overlay))) {
  margin-bottom: 0 !important;
}
/* Front-end Settings page: the shared settings footer's 0.5rem bottom padding
   (shared.css, also used in wp-admin) would add to the gap above; drop it here only. */
body:not(.vplus-page-sign-in) .site-main .vplus-settings-form .vplus-settings-footer:last-child {
  padding-bottom: 0;
}

/* .header > .container:after {
  border-bottom: 1px solid #d9d9d9;
  content: " ";
  display: block;
} */

/* font-weight: 100 removed from blockquote, p, ul, ol and li in 4.44.1: with
   vp-core-theme 3.2.4 loading Inter 300 it started rendering Light on every page
   (before, no light face was loaded, so it showed Regular). 100 is outside the
   400/500/600/700 scale (design-rules §2); text now inherits 400 as it looked. */
blockquote {
  border-left: calc(1rem / 2) solid #d4edff;
  padding-left: 0.75rem;
}

div:empty {
  /* display: none; */
}

.row > div > blockquote:last-child {
  margin: 0;
}

/* =============================================================================
   WP Admin Button polyfill
   wp-admin.css is absent on the front-end, so .button is defined here for use
   on any VP+ front-end page. On admin pages wp-admin.css takes precedence.
   Bootstrap uses .btn (not .button) so there is no naming conflict.
   ============================================================================= */

.button,
a.button {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Plain .button = Figma Chrome / Button Secondary 78:14441 (4.45.0): bg/surface,
     border/control, text/default, 16px sides. Was WP grey #f6f7f7 / #2c3338, 10px. */
  padding: 0 var(--space-4, 1rem);
  font-size: var(--vp-btn-font-size);
  line-height: 2.15384615;
  min-height: 2.25rem; /* Figma Chrome / Button Medium (36px) */
  color: var(--ink);
  background: #fff;
  border: var(--bs-border-width) solid var(--line-2);
  border-radius: var(--bs-border-radius);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  vertical-align: middle;
  font-family: inherit;
  font-weight: 500; /* Figma Chrome / Button label Inter Medium (4.34.0; was 400) */
  -webkit-appearance: none;
  transition: background 0.1s, border-color 0.1s, color 0.1s;
  box-shadow: none;
  outline: none;
}

.button:hover,
a.button:hover {
  background: var(--btn-secondary-hover);
  border-color: var(--line-2);
  color: var(--ink);
  text-decoration: none;
}

/* Pressed plain button (variants set their own pressed colour below). */
.button:not(.button-primary, .button-outline-primary, .button-danger, .button-secondary-danger, .button-accent):active:not(:disabled, .disabled) {
  background: var(--btn-secondary-active);
}

.button:focus,
a.button:focus {
  outline: none;
}

/* Figma shared focus ring (Chrome / Button Focus 165:338), 4.31.0. Was a 1px
   navy border + 1px box-shadow on :focus. */
.button:focus-visible,
a.button:focus-visible {
  box-shadow: var(--focus-ring);
  outline: none;
}

.button.button-primary,
a.button.button-primary {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
}

.button.button-primary:hover,
a.button.button-primary:hover {
  background: var(--bs-primary-hover);
  border-color: var(--bs-primary-hover);
  color: #fff;
}

/* Figma Primary Active 165:336: bg/overlay-pressed over the fill (4.45.0). */
.button.button-primary:active:not(:disabled, .disabled),
a.button.button-primary:active:not(.disabled) {
  background: var(--bs-primary-active);
  border-color: var(--bs-primary-active);
  color: #fff;
}

.button.button-outline-primary,
a.button.button-outline-primary {
  background: transparent;
  border-color: var(--bs-primary);
  color: var(--bs-primary);
}

.button.button-outline-primary:hover,
a.button.button-outline-primary:hover {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: var(--bs-primary-text);
}

/* Figma Secondary (78:14441 / hover 165:367 / active 165:369), 4.43.0. Outline
   secondary was retired in Figma (2026-10-09), so it takes the same look. */
.button.button-secondary,
a.button.button-secondary,
.button.button-outline-secondary,
a.button.button-outline-secondary {
  background: #fff; /* bg/surface */
  border-color: var(--line-2);
  color: var(--ink);
}

.button.button-secondary:hover,
a.button.button-secondary:hover,
.button.button-outline-secondary:hover,
a.button.button-outline-secondary:hover {
  background: var(--btn-secondary-hover);
  border-color: var(--line-2);
  color: var(--ink);
}

.button.button-secondary:active:not(:disabled, .disabled),
a.button.button-secondary:active:not(.disabled),
.button.button-outline-secondary:active:not(:disabled, .disabled),
a.button.button-outline-secondary:active:not(.disabled) {
  background: var(--btn-secondary-active);
  border-color: var(--line-2);
  color: var(--ink);
}

.button.button-danger,
a.button.button-danger {
  background: var(--bs-danger);
  border-color: var(--bs-danger);
  color: #fff;
}

.button.button-danger:hover,
a.button.button-danger:hover {
  background: var(--bs-danger-hover);
  border-color: var(--bs-danger-hover);
  color: #fff;
}

/* Figma Chrome / Button Type=Danger, State=Active (165:487, all sizes):
   bg/overlay-pressed (black 16%) over bg/danger, text/inverse label (5.10.0;
   flattened the same way as Primary Active). */
.button.button-danger:active:not(:disabled, .disabled),
a.button.button-danger:active:not(.disabled) {
  background: var(--bs-danger-active);
  border-color: var(--bs-danger-active);
  color: #fff;
}

/* Figma Chrome / Button Type=Secondary danger (78:14468, Normal 1520:1122376,
   Hover 1520:1122380, Active 1520:1122384), 5.10.0: the Secondary box
   (bg/surface, border/control, hover / active overlays) with the label and
   icon on text/danger in every state but Disabled, which is the shared
   filled disabled state below. The .button twin of the Bootstrap
   .btn.vplus-btn-secondary-danger (shared.css). For a destructive action
   that is not the main action of the view (autosave Discard, row Delete);
   a confirm-delete button stays solid .button-danger. */
.button.button-secondary-danger,
a.button.button-secondary-danger {
  background: #fff; /* bg/surface */
  border-color: var(--line-2);
  color: var(--danger);
}

.button.button-secondary-danger:hover,
a.button.button-secondary-danger:hover {
  background: var(--btn-secondary-hover);
  border-color: var(--line-2);
  color: var(--danger);
}

.button.button-secondary-danger:active:not(:disabled, .disabled),
a.button.button-secondary-danger:active:not(.disabled) {
  background: var(--btn-secondary-active);
  border-color: var(--line-2);
  color: var(--danger);
}

/* Figma Chrome / Button Type=Accent (78:14464 and its states): bg/accent
   fill, text/inverse label, hover/active = overlay over the fill. Purple is
   for special attention-grabbing items only, never the main action. The
   Bootstrap twin is .btn-accent-2 (shared.css). Focus ring, disabled fill
   and sizes come from the shared .button rules. */
.button.button-accent,
a.button.button-accent {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: var(--accent-2-text);
}

.button.button-accent:hover,
a.button.button-accent:hover {
  background: var(--accent-2-hover);
  border-color: var(--accent-2-hover);
  color: var(--accent-2-text);
}

.button.button-accent:active:not(:disabled, .disabled),
a.button.button-accent:active:not(.disabled) {
  background: var(--accent-2-active);
  border-color: var(--accent-2-active);
  color: var(--accent-2-text);
}

.button-small,
.button.button-small,
a.button-small {
  min-height: 1.875rem; /* Figma Chrome / Button Small 30px (4.43.0, user D6; was 1.5rem) */
  line-height: 1rem;
  padding: 0 var(--space-3, 0.75rem);
  gap: var(--space-2, 0.5rem);
  font-size: var(--vp-btn-font-size);
}

.button-large,
.button.button-large,
a.button-large {
  min-height: 2.75rem; /* Figma Chrome / Button Large (44px); was 2.5rem */
  line-height: 2.5;
  padding: 0 1rem;
  font-size: var(--bs-body-font-size);
}

/* Figma disabled (every button type): filled bg/muted, border/default,
   text/muted, no opacity (4.31.0; was opacity 0.75). The :hover forms keep
   the variant hover colours from repainting a disabled button. */
.button:disabled,
.button:disabled:hover,
.button.disabled,
.button.disabled:hover,
a.button:disabled,
a.button.disabled,
a.button.disabled:hover {
  background: var(--bg-3);
  border-color: var(--line);
  color: var(--ink-3);
  opacity: 1;
  cursor: not-allowed;
}
