/* ============================================================================
   Virto brand styles for docs-hugo
   ============================================================================ */

@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Ubuntu:wght@400;500;600;700;800&display=swap");

:root {
  --vs-accent:        #5C65F5;
  --vs-accent-hover:  #4a52d1;
  --vs-deep:          #29285E;
  --vs-footer:        #0C093A;
  --vs-bg-page:       #F8FAFD;     /* page background — slight blue tint */
  --vs-bg-soft:       #F0F3FF;     /* cards/tile backgrounds */
  --vs-bg-grad-1:     #DDEBF7;
  --vs-bg-grad-2:     #F2F8FD;
  --vs-text:          #1F1F1F;
  --vs-text-muted:    #8C8C8C;
  --vs-text-hover:    #79788B;
  --vs-border:        #D9D9D9;
  --vs-card-bg:       #FFFFFF;

  --vs-font-heading: "Ubuntu", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --vs-font-body:    "Ubuntu", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --vs-radius-card:  24px;
  --vs-radius-btn:   8px;
  --vs-radius-pill:  999px;
  --vs-radius-soft:  7px;
  --vs-shadow-card:  0 0 34px -16px rgba(0, 0, 0, 0.21);

  --color-link: var(--vs-accent);
  --body-font-family: var(--vs-font-body);
}

body { font-family: var(--vs-font-body); color: var(--vs-text); margin: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--vs-font-heading); }

/* ============================================================================
   HEADER
   ============================================================================ */
.vs-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--vs-border);
}
.vs-header__inner {
  display: flex; align-items: center; gap: 2rem;
  max-width: 1140px; margin: 0 auto; padding: 14px 24px;
}
.vs-header__logo img { display: block; height: 40px; width: auto; }

.vs-nav { flex: 1; }
.vs-nav__list {
  display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0;
  justify-content: center;
}
.vs-nav__item { position: relative; }
.vs-nav__link {
  color: var(--vs-text); text-decoration: none; font-weight: 500;
  font-family: var(--vs-font-heading);
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 0;
  transition: color 0.2s ease;
}
.vs-nav__link:hover { color: var(--vs-accent); }
.vs-nav__caret { font-size: .8em; }

.vs-nav__submenu {
  position: absolute; top: 100%; left: 0;
  display: none; min-width: 260px; padding: 8px 0;
  background: #fff; border: 1px solid var(--vs-border);
  border-radius: var(--vs-radius-btn); box-shadow: var(--vs-shadow-card);
  list-style: none; margin: 0;
}
.vs-nav__submenu li a {
  display: block; padding: 10px 16px;
  color: var(--vs-text); text-decoration: none; font-size: .95rem;
  font-family: var(--vs-font-heading);
}
.vs-nav__submenu li a:hover { background: var(--vs-bg-soft); color: var(--vs-accent); }
.vs-nav__item.has-submenu:hover .vs-nav__submenu,
.vs-nav__item.has-submenu:focus-within .vs-nav__submenu { display: block; }

.vs-cta {
  background: var(--vs-accent); color: #fff;
  padding: 12px 24px; border-radius: var(--vs-radius-btn);
  text-decoration: none; font-weight: 500;
  font-family: var(--vs-font-heading);
  transition: background .15s ease;
}
.vs-cta:hover { background: var(--vs-accent-hover); color: #fff; }

/* ============================================================================
   LANDING
   ============================================================================ */
.vs-landing { background: var(--vs-bg-page); padding: 0; }

.vs-hero {
  background: linear-gradient(169deg, var(--vs-bg-grad-1) 34%, var(--vs-bg-grad-2) 62%);
  padding: 100px 24px 70px;
}
.vs-hero > * { max-width: 1140px; margin-left: auto; margin-right: auto; }
.vs-hero { text-align: center; }
.vs-hero h1 {
  text-align: center !important;
  font-size: 46px; font-weight: 800; line-height: 70px;
  margin: 0 auto 12px; color: #000;
  word-spacing: 5px;
}
.vs-hero p {
  color: #1F1F1F;
  max-width: 700px;
  margin: 0 auto 32px;
  font-size: 15px;
  line-height: 24px;
  font-family: "Roboto", sans-serif;
}
.vs-hero__search {
  display: flex; gap: 12px; max-width: 640px; margin: 0 auto;
}
.vs-hero__search input {
  flex: 1; padding: 14px 18px; border: 0;
  border-radius: var(--vs-radius-btn); background: #fff; font-size: 1rem;
  font-family: var(--vs-font-body);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}
.vs-hero__search input:focus { outline: 2px solid var(--vs-accent); }
.vs-hero__search button {
  padding: 0 18px; border: 0; border-radius: var(--vs-radius-btn);
  background: var(--vs-accent); color: #fff; cursor: pointer;
  font-size: 1rem; min-width: 54px;
  font-family: var(--vs-font-heading); font-weight: 500;
  transition: background .15s ease;
}
.vs-hero__search button:hover { background: var(--vs-accent-hover); }

.vs-platform {
  max-width: 1140px; margin: 0 auto; padding: 48px 24px 24px;
}
.vs-platform__title {
  font-size: 24px; font-weight: 700; line-height: 36px;
  margin: 0 0 24px; color: #000;
}
.vs-platform__seeall { text-align: center; margin: 24px 0 0; }
.vs-platform__seeall a {
  color: var(--vs-deep); text-decoration: underline;
  font-family: var(--vs-font-heading); font-weight: 500;
  font-size: 15px;
}
.vs-platform__seeall a:hover { color: var(--vs-text-hover); }

.vs-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.vs-card {
  background: var(--vs-card-bg);
  border-radius: var(--vs-radius-card);
  padding: 32px 24px;
  box-shadow: var(--vs-shadow-card);
  display: flex; flex-direction: column; gap: 12px;
}
.vs-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 80px; height: 80px;
  background: transparent;
}
.vs-card__icon img { width: 80px; height: 80px; }
.vs-card__title {
  margin: 12px 0 0; font-size: 20px; font-weight: 600; line-height: 30px;
}
.vs-card__title a { color: #1F1F1F; text-decoration: none; }
.vs-card__title a:hover { color: var(--vs-accent); }
.vs-card__sub {
  color: var(--vs-text-muted); margin: 0 0 8px;
  font-size: 16px; line-height: 24px;
  font-style: italic;
  border-bottom: 1px solid var(--vs-border); padding-bottom: 12px;
}
.vs-card__links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.vs-card__links li {
  background: var(--vs-bg-soft);
  border-radius: var(--vs-radius-soft);
  padding: 0;
}
.vs-card__links a {
  display: block; padding: 12px 16px;
  color: #1F1F1F; text-decoration: none;
  font-size: 16px; line-height: 24px;
  font-family: var(--vs-font-heading);
}
.vs-card__links a:hover { color: var(--vs-accent); }

/* Info tiles (Guides / Privacy / Support / Release Notes) */
.vs-infotiles {
  max-width: 1140px; margin: 64px auto 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px; padding: 0 24px;
}
.vs-infotile {
  background: var(--vs-bg-soft);
  border-radius: var(--vs-radius-card);
  padding: 32px 24px;
  text-decoration: none; color: var(--vs-text);
  transition: background 0.3s ease;
  display: flex; flex-direction: column; gap: 12px;
}
.vs-infotile:hover { background: #FAFAFA; }
.vs-infotile__icon {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
}
.vs-infotile__icon svg {
  width: 40px; height: 40px;
  color: var(--vs-accent);
}
.vs-infotile h3 {
  margin: 4px 0 8px; font-size: 20px; font-weight: 600; line-height: 30px;
  color: #1F1F1F;
}
.vs-infotile p {
  margin: 0; color: var(--vs-text-muted);
  font-size: 16px; line-height: 24px;
  font-family: var(--vs-font-heading);
}

/* Bottom CTA block ("Have questions?") */
.vs-cta-block {
  background: #19145C; color: #fff;
  margin: 64px 0 0;
  padding: 56px 24px;
  text-align: center;
}
.vs-cta-block h2 {
  margin: 0 0 12px; font-weight: 600; font-size: 28px;
  color: #fff;
}
.vs-cta-block p  { margin: 0 0 24px; opacity: .9; font-size: 16px; }
.vs-cta-block__btn {
  display: inline-block; background: #fff; color: var(--vs-accent);
  padding: 14px 32px; border-radius: var(--vs-radius-btn);
  text-decoration: none; font-weight: 600;
  font-family: var(--vs-font-heading);
  transition: background .15s ease;
}
.vs-cta-block__btn:hover { background: var(--vs-bg-soft); }

/* ============================================================================
   FOOTER
   ============================================================================ */
.vs-footer {
  background: #0C093F; color: #fff;
  padding: 48px 24px 24px;
}
.vs-footer__inner {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto; gap: 32px;
  align-items: center;
}
.vs-footer__logo { height: 40px; width: auto; display: block; }
.vs-footer__nav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 16px 24px;
  justify-content: center;
}
.vs-footer__nav a {
  color: #fff; text-decoration: none;
  font-family: var(--vs-font-heading); font-size: 14px;
  opacity: .85;
}
.vs-footer__nav a:hover { opacity: 1; text-decoration: underline; }
.vs-footer__social {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 16px;
}
.vs-footer__social a {
  color: #fff; opacity: .85; text-decoration: none;
  font-family: var(--vs-font-heading); font-size: 14px;
}
.vs-footer__social a:hover { opacity: 1; }
.vs-footer__copy {
  grid-column: 1 / -1; text-align: center;
  opacity: .7; font-size: 13px; padding-top: 24px; margin-top: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-family: var(--vs-font-heading);
}

/* ============================================================================
   ARTICLE TWEAKS
   ============================================================================ */
article.book-page table {
  border-collapse: collapse;
  width: 100%;
  font-family: var(--vs-font-body);
}
article.book-page table th,
article.book-page table td {
  border: 1px solid var(--vs-border);
  padding: 10px 14px;
  font-size: 15px;
}
article.book-page table thead th {
  background: var(--vs-bg-soft);
  font-weight: 600;
}
article.book-page h1,
article.book-page h2,
article.book-page h3 { font-family: var(--vs-font-heading); }
article.book-page a { color: var(--vs-accent); }
article.book-page a:hover { color: var(--vs-accent-hover); }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 1024px) {
  .vs-hero h1 { font-size: 36px; line-height: 48px; }
  .vs-cards { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .vs-header__inner { gap: 16px; }
  .vs-nav__list { gap: 1rem; }
  .vs-cta { padding: 10px 18px; font-size: .9rem; }
}
@media (max-width: 700px) {
  .vs-nav { display: none; }
  .vs-footer__inner { grid-template-columns: 1fr; text-align: center; }
  .vs-footer__nav ul, .vs-footer__social { justify-content: center; }
  .vs-hero { padding: 60px 24px 40px; }
  .vs-hero h1 { font-size: 32px; line-height: 40px; word-spacing: normal; }
}

/* ============================================================================
   ARTICLE PAGE — Phase 3b (breadcrumbs, print, feedback, branding)
   ============================================================================ */

/* Virto header/footer sit outside Book's main.container; neutralize Book's
   sticky offset so our sticky header stays on top */
body.book-kind-page .vs-header,
body.book-kind-section .vs-header { z-index: 60; }

/* Article top row: breadcrumbs left, print button right */
.vs-article-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin: 0 0 24px;
  padding-bottom: 12px; border-bottom: 1px solid var(--vs-border);
}
.vs-breadcrumbs {
  font-family: var(--vs-font-heading); font-size: 14px;
  color: var(--vs-text-muted);
}
.vs-breadcrumbs a { color: var(--vs-accent); text-decoration: none; }
.vs-breadcrumbs a:hover { text-decoration: underline; }
.vs-breadcrumbs span { color: var(--vs-text); }
.vs-print {
  background: none; border: 0; cursor: pointer;
  color: var(--vs-text-muted); padding: 6px; border-radius: 6px;
  display: inline-flex; align-items: center;
}
.vs-print:hover { color: var(--vs-accent); background: var(--vs-bg-soft); }
.vs-print svg { width: 20px; height: 20px; }

/* Feedback block */
.vs-feedback {
  margin: 48px 0 16px; padding: 24px 28px;
  border: 1px solid var(--vs-border); border-radius: var(--vs-radius-card);
  display: flex; align-items: center; gap: 16px;
  font-family: var(--vs-font-heading); font-size: 16px;
}
.vs-feedback__btn {
  background: var(--vs-bg-soft); border: 0; cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 16px; display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.vs-feedback__btn:hover { background: #e5e9fb; }

/* Updated-on line */
.vs-updated {
  color: var(--vs-text-muted); font-size: 14px;
  font-family: var(--vs-font-heading); margin: 8px 0 0;
}

/* Article body branding */
article.book-article,
article.book-page { font-family: var(--vs-font-body); color: var(--vs-text); }
article.book-article h1, article.book-article h2,
article.book-article h3, article.book-article h4 { font-family: var(--vs-font-heading); }
article.book-article a { color: var(--vs-accent); }
article.book-article a:hover { color: var(--vs-accent-hover); }
article.book-article table { border-collapse: collapse; width: 100%; }
article.book-article table th, article.book-article table td {
  border: 1px solid var(--vs-border); padding: 10px 14px; font-size: 15px;
}
article.book-article table thead th { background: var(--vs-bg-soft); font-weight: 600; }

/* PRINT: hide chrome, show only the article */
@media print {
  .vs-header, .vs-footer, .book-menu, .book-toc,
  .vs-article-top, .vs-feedback, .vs-print,
  .book-header, .book-footer .book-posts-nav, .book-comments { display: none !important; }
  .book-page { width: 100% !important; margin: 0 !important; padding: 0 !important; }
  body { background: #fff !important; }
}

/* ============================================================================
   ARTICLE LAYOUT WIDTH + TITLE + SCOPED MENU (Phase 3b finish)
   ============================================================================ */

/* Content width ~1200px. Book uses .container as the flex wrapper of
   menu+page+toc; widen it and let the page column take remaining space. */
body.book-kind-page .container,
body.book-kind-section .container { max-width: 1200px; }
body.book-kind-page .book-page,
body.book-kind-section .book-page { max-width: 1200px; }

/* Article H1 we inject in single.html / list.html */
.vs-article-title {
  font-family: var(--vs-font-heading);
  font-size: 36px; line-height: 44px; font-weight: 800;
  color: #000; margin: 0 0 24px;
}

/* Scoped left menu — product title on top, like prod */
.book-menu .book-menu-content > nav > ul:first-of-type { margin-top: 0; }
.book-menu a { font-family: var(--vs-font-heading); color: var(--vs-text); }
.book-menu a:hover { color: var(--vs-accent); }
.book-menu a.active { color: var(--vs-accent); font-weight: 600; }
.book-menu .book-section-flat > a:first-child,
.book-menu nav > ul > li > a:first-child {
  font-weight: 700; text-transform: none;
}

/* Hide theme search box on article pages (we have header search instead) — optional, keep if matches prod */
/* .book-menu .book-search { display: none; } */

/* ============================================================================
   Isolate Virto header/footer from Book theme cascade on article pages
   ============================================================================ */
body[class*="book-"] .vs-header,
body[class*="book-"] .vs-footer { all: revert; }

body[class*="book-"] .vs-header *,
body[class*="book-"] .vs-footer * {
  /* reset only the properties Book leaks; keep our layout intact via re-declare below */
  box-sizing: border-box;
}

/* Re-assert header layout (these mirror the non-article header rules) */
body[class*="book-"] .vs-header {
  position: sticky !important; top: 0 !important; z-index: 60 !important;
  background: #fff !important; border-bottom: 1px solid var(--vs-border) !important;
  display: block !important; width: 100% !important; margin: 0 !important; padding: 0 !important;
}
body[class*="book-"] .vs-header__inner {
  display: flex !important; align-items: center !important; gap: 2rem !important;
  max-width: 1200px !important; margin: 0 auto !important; padding: 14px 24px !important;
}
body[class*="book-"] .vs-header__logo { flex: 0 0 auto !important; }
body[class*="book-"] .vs-header__logo img { height: 40px !important; width: auto !important; display: block !important; }
body[class*="book-"] .vs-nav { flex: 1 1 auto !important; }
body[class*="book-"] .vs-nav__list {
  display: flex !important; gap: 2rem !important; list-style: none !important;
  margin: 0 !important; padding: 0 !important; justify-content: center !important; flex-wrap: nowrap !important;
}
body[class*="book-"] .vs-nav__item { margin: 0 !important; }
body[class*="book-"] .vs-nav__link {
  color: var(--vs-text) !important; text-decoration: none !important; font-weight: 500 !important;
  font-family: var(--vs-font-heading) !important; white-space: nowrap !important;
  display: inline-flex !important; align-items: center !important; gap: 4px !important; padding: 8px 0 !important;
}
body[class*="book-"] .vs-nav__link:hover { color: var(--vs-accent) !important; }
body[class*="book-"] .vs-nav__submenu {
  list-style: none !important; margin: 0 !important; padding: 8px 0 !important;
}
body[class*="book-"] .vs-cta {
  flex: 0 0 auto !important; width: auto !important; align-self: center !important;
  background: var(--vs-accent) !important; color: #fff !important;
  padding: 12px 24px !important; border-radius: var(--vs-radius-btn) !important;
  text-decoration: none !important; font-weight: 500 !important;
  font-family: var(--vs-font-heading) !important; white-space: nowrap !important;
  border: 0 !important; line-height: 1 !important; display: inline-flex !important; align-items: center !important;
}
body[class*="book-"] .vs-cta:hover { background: var(--vs-accent-hover) !important; }

/* Footer re-assert */
body[class*="book-"] .vs-footer ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
body[class*="book-"] .vs-footer a { text-decoration: none !important; }

/* Sticky offset: header ~70px tall, push Book sidebar/toc below it */
body[class*="book-"] .book-menu,
body[class*="book-"] .book-toc { top: 70px !important; }
html { scroll-padding-top: 80px; }

/* ============================================================================
   FIX: left sidebar search overlapped by menu/header on articles
   ============================================================================ */
body[class*="book-"] .book-menu .book-menu-content {
  padding-top: 0 !important;
}
body[class*="book-"] .book-search {
  position: relative !important;
  z-index: 1 !important;
  margin: .5rem 0 16px 0 !important;
  background: #fff !important;
}
/* Ensure the menu nav starts below the search, not on top of it */
body[class*="book-"] .book-menu nav {
  position: relative !important;
}

/* ============================================================================
   Scoped product menu — expanded tree like prod
   ============================================================================ */
body[class*="book-"] .vs-menu-product { margin: 0 0 12px; }
body[class*="book-"] .vs-menu-product__title {
  display: flex !important; align-items: center !important; gap: 8px !important;
  font-family: var(--vs-font-heading) !important;
  font-size: 14px !important; font-weight: 700 !important;
  text-transform: uppercase !important; letter-spacing: .03em !important;
  color: var(--vs-accent) !important; text-decoration: none !important;
  padding: 8px 0 12px !important; border-bottom: 1px solid var(--vs-border) !important;
  line-height: 1.3 !important;
}
body[class*="book-"] .vs-menu-product__icon { flex: 0 0 auto !important; }
body[class*="book-"] .vs-menu-tree {
  list-style: none !important; margin: 0 !important; padding: 0 !important;
}
body[class*="book-"] .vs-menu-tree .vs-menu-tree {
  margin: 2px 0 2px 14px !important;
  padding-left: 10px !important;
  border-left: 1px dashed var(--vs-border) !important;
}
body[class*="book-"] .vs-menu-tree__item { margin: 0 !important; }
body[class*="book-"] .vs-menu-tree__link {
  display: block !important;
  font-family: var(--vs-font-body) !important;
  font-size: 14px !important; line-height: 1.4 !important;
  color: var(--vs-text) !important; text-decoration: none !important;
  padding: 6px 8px !important; border-radius: 6px !important;
}
body[class*="book-"] .vs-menu-tree__link:hover {
  color: var(--vs-accent) !important; background: var(--vs-bg-soft) !important;
}
body[class*="book-"] .vs-menu-tree__link.active {
  color: var(--vs-accent) !important; font-weight: 600 !important;
  background: var(--vs-bg-soft) !important;
}

/* ============================================================================
   FIX: sidebar content must start below the sticky Virto header
   ============================================================================ */
body[class*="book-"] .book-menu {
  top: 70px !important;
}
body[class*="book-"] .book-menu .book-menu-content {
  padding-top: 0 !important;
}
body[class*="book-"] .book-search {
  margin: 0 0 16px 0 !important;
  position: relative !important;
  z-index: 1 !important;
  padding-top: 5em !important;
}

/* ============================================================================
   TRUST & SECURITY CENTER landing
   ============================================================================ */
.vs-section { max-width: 1140px; margin: 0 auto; padding: 48px 24px 24px; }
.vs-section__title {
  font-family: var(--vs-font-heading);
  font-size: 24px; font-weight: 700; line-height: 36px;
  margin: 0 0 24px; color: #000;
}

/* Certifications */
.vs-cert-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.vs-cert {
  background: var(--vs-bg-soft); border-radius: var(--vs-radius-card);
  padding: 28px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.vs-cert__icon { color: var(--vs-accent); display: inline-flex; }
.vs-cert__icon svg { width: 48px; height: 48px; }
.vs-cert__title {
  font-family: var(--vs-font-heading); font-size: 18px; font-weight: 600;
  line-height: 26px; margin: 4px 0 0; color: var(--vs-text);
}
.vs-cert__text { color: var(--vs-text-muted); font-size: 14px; line-height: 22px; margin: 0; }

/* Data Security */
.vs-ds-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.vs-ds-tile {
  background: var(--vs-bg-soft); border-radius: var(--vs-radius-card);
  padding: 24px 16px; text-align: center; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  transition: background .15s ease;
}
.vs-ds-tile:hover { background: #e5e9fb; }
.vs-ds-tile__icon { color: var(--vs-accent); display: inline-flex; }
.vs-ds-tile__icon svg { width: 36px; height: 36px; }
.vs-ds-tile__title {
  font-family: var(--vs-font-heading); font-size: 15px; font-weight: 600;
  line-height: 22px; color: var(--vs-text);
}

/* Documentation cards */
.vs-doc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.vs-doc-card {
  background: var(--vs-card-bg); border: 1px solid var(--vs-border);
  border-radius: var(--vs-radius-card); padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.vs-doc-badge {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-family: var(--vs-font-heading); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .03em;
  padding: 4px 10px; border-radius: var(--vs-radius-pill);
}
.vs-doc-badge--public { color: #1A7F37; background: #E6F4EA; }
.vs-doc-badge--nda    { color: #C2410C; background: #FCE5D8; }
.vs-doc-card__title {
  font-family: var(--vs-font-heading); font-size: 18px; font-weight: 600;
  line-height: 26px; margin: 0;
}
.vs-doc-card__title a { color: var(--vs-text); text-decoration: none; }
.vs-doc-card__title a:hover { color: var(--vs-accent); }
.vs-doc-updated { color: var(--vs-text-muted); font-size: 13px; margin: 0; }
.vs-doc-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.vs-doc-links li { margin: 0; }
.vs-doc-links a {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; line-height: 20px; color: var(--vs-accent); text-decoration: none;
}
.vs-doc-links a:hover { text-decoration: underline; }
.vs-doc-links__icon { flex: 0 0 auto; color: var(--vs-text-muted); }
.vs-doc-cta {
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto;
  font-family: var(--vs-font-heading); font-weight: 600; font-size: 15px;
  color: var(--vs-accent); text-decoration: none;
}
.vs-doc-cta:hover { color: var(--vs-accent-hover); }

@media (max-width: 980px) {
  .vs-cert-row { grid-template-columns: repeat(2, 1fr); }
  .vs-ds-row   { grid-template-columns: repeat(3, 1fr); }
  .vs-doc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .vs-cert-row, .vs-ds-row, .vs-doc-grid { grid-template-columns: 1fr; }
}

/* Trust page only — bottom spacing */
.vs-trust { padding-bottom: 2em !important; }

/* ============================================================================
   SUPPORT / HELP CENTER landing
   ============================================================================ */
.vs-support { padding-bottom: 2em !important; }
.vs-support__subheading {
  font-family: var(--vs-font-heading);
  font-size: 22px; line-height: 32px; font-weight: 600;
  color: var(--vs-text); text-align: center;
  max-width: 760px; margin: 0 auto 36px;
}

/* Support channel cards */
.vs-channel-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.vs-channel {
  background: var(--vs-card-bg); border-radius: var(--vs-radius-card);
  box-shadow: var(--vs-shadow-card); padding: 32px 28px;
  display: flex; flex-direction: column; gap: 12px;
  text-decoration: none; color: var(--vs-text);
  transition: transform .15s ease, box-shadow .15s ease;
}
.vs-channel:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 34px -16px rgba(0, 0, 0, 0.32);
}
.vs-channel__icon {
  width: 64px; height: 64px; border-radius: 12px;
  background: var(--vs-deep); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.vs-channel__icon svg { width: 32px; height: 32px; }
.vs-channel__title {
  font-family: var(--vs-font-heading); font-size: 20px; font-weight: 600;
  line-height: 28px; color: var(--vs-text); margin-top: 4px;
}
.vs-channel:hover .vs-channel__title { color: var(--vs-accent); }
.vs-channel__text { color: var(--vs-text-muted); font-size: 15px; line-height: 23px; }

/* Support plans callout */
.vs-plans {
  background: var(--vs-bg-soft); border-radius: var(--vs-radius-card);
  padding: 28px 32px; display: flex; align-items: flex-start; gap: 20px;
}
.vs-plans__icon {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%;
  background: var(--vs-accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.vs-plans__icon svg { width: 26px; height: 26px; }
.vs-plans__title {
  font-family: var(--vs-font-heading); font-size: 20px; font-weight: 600;
  line-height: 28px; margin: 0 0 8px; color: var(--vs-text);
}
.vs-plans__text { color: var(--vs-text); font-size: 15px; line-height: 24px; }
.vs-plans__text a { color: var(--vs-accent); text-decoration: none; }
.vs-plans__text a:hover { text-decoration: underline; }

/* Dark contact block */
.vs-contact {
  background: var(--vs-footer); color: #fff;
  border-radius: var(--vs-radius-card);
  padding: 48px 32px; text-align: center;
}
.vs-contact__title {
  font-family: var(--vs-font-heading); font-size: 28px; font-weight: 600;
  line-height: 38px; margin: 0 0 12px; color: #fff;
}
.vs-contact__text { font-size: 16px; line-height: 26px; margin: 0 auto 8px; max-width: 640px; }
.vs-contact__text a { color: #fff; text-decoration: underline; }
.vs-contact__note { color: rgba(255, 255, 255, .8); font-size: 15px; margin: 0 0 24px; }
.vs-contact__btn {
  display: inline-block; background: #fff; color: var(--vs-accent);
  padding: 14px 32px; border-radius: var(--vs-radius-btn);
  text-decoration: none; font-weight: 600; font-family: var(--vs-font-heading);
  transition: background .15s ease;
}
.vs-contact__btn:hover { background: var(--vs-bg-soft); }

@media (max-width: 900px) {
  .vs-channel-row { grid-template-columns: 1fr; }
  .vs-plans { flex-direction: column; align-items: flex-start; }
}

/* Support page — lighter background for channels section */
.vs-support-channels { background: #FAFBFF !important; }

/* Hero search results dropdown */
.vs-hero-search { position: relative; }
.vs-hero-search #book-search-results {
  list-style: none; margin: 4px 0 0; padding: 0;
  position: absolute; left: 0; right: 0; z-index: 50;
  background: #fff; border: 1px solid var(--vs-border);
  border-radius: 8px; box-shadow: var(--vs-shadow, 0 0 34px -16px rgba(0,0,0,.21));
  max-height: 360px; overflow-y: auto;
}
.vs-hero-search #book-search-results:empty { display: none; }
.vs-hero-search #book-search-results li { padding: 0; }
.vs-hero-search #book-search-results li a {
  display: block; padding: 10px 14px; text-decoration: none;
  color: var(--vs-text); font-family: var(--vs-font-body);
}
.vs-hero-search #book-search-results li a:hover { background: var(--vs-bg-soft); }
.vs-hero-search #book-search-results small { display: block; color: var(--vs-text-muted); font-size: 12px; }

/* ============================================================================
   SEARCH RESULTS PAGE (/search/) — Google CSE-style
   ============================================================================ */
.vs-header__search {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--vs-text); padding: 6px; border-radius: 6px;
  text-decoration: none;
}
.vs-header__search:hover { color: var(--vs-accent); background: var(--vs-bg-soft); }

.vs-search-page {
  max-width: 740px; margin: 0 auto; padding: 32px 16px 64px;
}
.vs-search-form {
  display: flex; gap: 8px; align-items: center;
  border: 1px solid var(--vs-border); border-radius: 8px;
  padding: 6px 8px 6px 14px; background: #fff;
}
.vs-search-form:focus-within { border-color: var(--vs-accent); box-shadow: 0 0 0 3px rgba(92, 101, 245, .12); }
.vs-search-form input {
  flex: 1; border: 0; outline: none;
  font-family: var(--vs-font-body); font-size: 16px; line-height: 24px;
  padding: 8px 4px; background: transparent; color: var(--vs-text);
}
.vs-search-form button {
  flex: 0 0 auto; background: var(--vs-accent); color: #fff;
  border: 0; cursor: pointer; padding: 8px 12px;
  border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
}
.vs-search-form button:hover { background: var(--vs-accent-hover); }

#vs-search-meta {
  color: var(--vs-text-muted); font-size: 13px;
  margin: 18px 0 16px; font-family: var(--vs-font-heading);
}
.vs-result { margin: 0 0 22px; }
.vs-result__title {
  display: inline-block; color: var(--vs-accent); font-size: 18px; line-height: 26px;
  font-family: var(--vs-font-heading); font-weight: 500; text-decoration: none;
}
.vs-result__title:hover { text-decoration: underline; }
.vs-result__url {
  color: #0a7d33; font-size: 13px; line-height: 18px;
  margin: 2px 0 4px; font-family: var(--vs-font-body);
}
.vs-result__snippet {
  color: var(--vs-text); font-size: 14px; line-height: 1.5; margin: 0;
}
.vs-result__snippet mark { background: #fff3a3; color: inherit; padding: 0 1px; border-radius: 2px; }
.vs-search-empty { color: var(--vs-text-muted); font-size: 15px; margin: 16px 0; }

#vs-search-pagination { margin-top: 28px; text-align: center; }
.vs-page-num {
  display: inline-block; padding: 6px 10px; margin: 0 2px;
  color: var(--vs-accent); text-decoration: none; border-radius: 4px;
  font-family: var(--vs-font-heading); font-size: 14px;
}
.vs-page-num:hover { background: var(--vs-bg-soft); }
.vs-page-num.active { color: var(--vs-text); font-weight: 700; cursor: default; }
.vs-page-num.active:hover { background: transparent; }

@media (max-width: 640px) {
  .vs-search-page { padding: 20px 12px 48px; }
  .vs-result__title { font-size: 16px; line-height: 24px; }
}

/* ============================================================================
   SEARCH MODAL — triggered by header magnifier button
   ============================================================================ */
/* Header лупа is now a <button>, so reset native button chrome */
.vs-header__search { background: none; border: 0; cursor: pointer; font: inherit; }

.vs-search-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start; justify-content: center; }
.vs-search-modal[hidden] { display: none; }
.vs-search-modal__overlay { position: absolute; inset: 0; background: rgba(12,9,58,.55); backdrop-filter: blur(2px); }
.vs-search-modal__box { position: relative; z-index: 1; width: 100%; max-width: 720px; margin-top: 18vh; padding: 0 16px; }
.vs-search-modal__form { display: flex; align-items: center; background: #fff; border-radius: 12px; box-shadow: 0 20px 60px -15px rgba(0,0,0,.4); overflow: hidden; }
.vs-search-modal__input { flex: 1; border: 0; outline: 0; padding: 20px 22px; font-size: 20px; font-family: var(--vs-font-body); color: var(--vs-text); }
.vs-search-modal__submit { border: 0; background: var(--vs-accent); color: #fff; padding: 0 24px; align-self: stretch; cursor: pointer; display: flex; align-items: center; }
.vs-search-modal__submit:hover { background: var(--vs-accent-hover); }
.vs-search-modal__close { position: absolute; top: -44px; right: 16px; background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; opacity: .85; }
.vs-search-modal__close:hover { opacity: 1; }
@media (max-width: 640px){ .vs-search-modal__box { margin-top: 10vh; } .vs-search-modal__input { font-size: 16px; padding: 16px; } }
