/* Templates: single post / team / job / event, archive, search, 404.
 * Loaded by functions/templates.php on those views only. Tokens from style.css.
 * No font-size on h1-h6 / p / ul / ol / li: headings take the global type classes,
 * text sizes go through --body-size / --body-line-height on a wrapper. */

/* =============================================================================
 * Shared
 * ========================================================================== */

.vb-tpl-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--vb-text-secondary);
  text-decoration: none;
  transition: color 160ms ease;
}

.vb-tpl-back:hover {
  color: var(--vb-navy);
}

.vb-tpl-back span {
  transition: transform 200ms var(--ease-out);
}

.vb-tpl-back:hover span {
  transform: translateX(-3px);
}

/* Long-form body: article, job, event, team bio. */
.vb-article-body {
  --body-size: 17px;
  --body-line-height: 1.65;
  font-size: var(--body-size);
  line-height: var(--body-line-height);
  color: var(--vb-ink);
  overflow-wrap: break-word;
}

.vb-article-body > *:first-child {
  margin-top: 0;
}

.vb-article-body p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

.vb-article-body a {
  color: var(--vb-magenta-label);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vb-article-body strong {
  color: var(--vb-navy);
  font-weight: 700;
}

.vb-article-body h2,
.vb-article-body h3,
.vb-article-body h4,
.vb-article-body h5,
.vb-article-body h6 {
  margin: 1.7em 0 0.55em;
  color: var(--vb-navy);
  scroll-margin-top: 110px;
}

.vb-article-body h2 {
  margin-top: 1.55em;
  font-weight: 600;
}

.vb-article-body h2 a,
.vb-article-body h3 a,
.vb-article-body h4 a {
  color: inherit;
}

.vb-article-body h4 a {
  color: var(--vb-magenta-label);
}

.vb-article-body ul,
.vb-article-body ol {
  margin: 0 0 1.25em;
  padding-left: 1.4em;
}

.vb-article-body li {
  margin: 0 0 0.45em;
  padding-left: 0.2em;
}

.vb-article-body li::marker {
  color: var(--vb-magenta-label);
  font-weight: 700;
}

.vb-article-body li > ul,
.vb-article-body li > ol {
  margin: 0.45em 0 0;
}

.vb-article-body blockquote,
.vb-article-body .wp-block-quote,
.vb-article-body .wp-block-pullquote {
  --body-size: 19px;
  --body-line-height: 1.6;
  margin: 1.6em 0;
  padding: 4px 0 4px 24px;
  border: 0;
  border-left: 3px solid var(--vb-magenta);
  border-image: var(--vb-gradient-warm) 1;
  text-align: left;
}

.vb-article-body blockquote p {
  color: var(--vb-navy);
  font-weight: 500;
}

.vb-article-body blockquote p:last-of-type {
  margin-bottom: 0;
}

.vb-article-body blockquote cite {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  color: var(--vb-text-secondary);
}

/* Tables: wrapped by vb_tpl_wrap_tables() so they scroll in their own box. */
.vb-table-scroll {
  max-width: 100%;
  margin: 1.6em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--vb-hair);
  border-radius: var(--radius-md);
}

.vb-article-body figure.wp-block-table {
  margin: 0;
}

.vb-article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.vb-article-body .vb-table-scroll table {
  margin: 0;
}

.vb-article-body th,
.vb-article-body td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--vb-hair);
  text-align: left;
  vertical-align: top;
}

.vb-article-body tr:last-child th,
.vb-article-body tr:last-child td {
  border-bottom: 0;
}

.vb-article-body thead th {
  background: var(--vb-surface);
  color: var(--vb-navy);
  font-weight: 700;
}

.vb-article-body table p {
  --body-size: 15px;
  --body-line-height: 1.5;
  margin: 0;
}

/* Media */
.vb-article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.vb-article-body figure,
.vb-article-body .wp-caption {
  max-width: 100%;
  margin: 1.8em 0;
}

.vb-article-body figcaption,
.vb-article-body .wp-caption-text,
.vb-article-body .wp-element-caption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--vb-text-secondary);
}

.vb-article-body p > img {
  margin: 1.4em 0;
}

.vb-article-body .aligncenter {
  margin-left: auto;
  margin-right: auto;
}

.vb-article-body .alignleft {
  float: left;
  margin: 0.4em 28px 16px 0;
}

.vb-article-body .alignright {
  float: right;
  margin: 0.4em 0 16px 28px;
}

.vb-article-body::after {
  content: "";
  display: table;
  clear: both;
}

/* Video embeds: core embed block, and the raw YouTube iframes in imported posts. */
.vb-article-body iframe {
  max-width: 100%;
  border: 0;
}

.vb-article-body iframe[src*="youtube"],
.vb-article-body iframe[src*="vimeo"],
.vb-article-body .wp-block-embed.is-type-video iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  background: var(--vb-navy);
}

.vb-article-body .wp-block-embed__wrapper {
  position: relative;
}

.vb-article-body .wp-has-aspect-ratio .wp-block-embed__wrapper::before {
  display: none;
}

.vb-article-body .wp-has-aspect-ratio iframe {
  position: static;
}

/* Podcast players (anchor.fm etc.): full width, their own height. */
.vb-article-body iframe[src*="anchor.fm"],
.vb-article-body iframe[src*="spotify"],
.vb-article-body iframe.wp-embedded-content {
  width: 100%;
  border-radius: var(--radius-md);
}

.vb-article-body hr {
  margin: 2.4em 0;
  border: 0;
  border-top: 1px solid var(--vb-hair);
}

.vb-article-body code {
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--vb-surface);
  font-size: 0.9em;
}

.vb-article-body .wp-block-button__link {
  display: inline-flex;
  padding: var(--button-padding);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: var(--vb-magenta);
  border-radius: var(--button-radius);
}

/* =============================================================================
 * Article (single.php)
 * ========================================================================== */

.vb-article-wrap {
  padding-top: 8px;
}

.vb-article {
  padding-top: 52px;
}

.vb-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 72px;
  align-items: start;
}

.vb-article-main {
  max-width: 720px;
  min-width: 0;
}

.vb-article-eyebrow {
  margin: 0;
  text-decoration: none;
}

.vb-article-eyebrow:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vb-article-title {
  margin: 16px 0 0;
  color: var(--vb-navy);
  font-weight: 600;
}

.vb-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-top: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--vb-hair);
  border-bottom: 1px solid var(--vb-hair);
  font-size: 13px;
  line-height: 1.5;
  color: var(--vb-text-secondary);
}

.vb-byline strong {
  font-weight: 700;
  color: var(--vb-navy);
}

.vb-byline a {
  color: inherit;
  text-decoration: none;
}

.vb-byline a:hover strong {
  color: var(--vb-magenta-label);
}

.vb-article-external {
  margin-top: 24px;
}

.vb-article-image {
  margin: 32px 0 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--vb-surface);
}

.vb-article-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

/* TL;DR */
.vb-tldr {
  --body-size: 17px;
  --body-line-height: 1.55;
  --body-color: var(--vb-navy);
  margin-top: 32px;
  padding: 24px 28px;
  border-left: 3px solid var(--vb-magenta);
  background: var(--vb-magenta-light);
}

.vb-tldr-label,
.vb-toc-label {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vb-magenta-label);
}

.vb-tldr p {
  margin: 10px 0 0;
  font-weight: 600;
  text-wrap: pretty;
}

.vb-tldr p + p {
  margin-top: 0.8em;
}

.vb-article-main > .vb-article-body {
  margin-top: 40px;
}

/* Key takeaways */
.vb-takeaways {
  --body-size: 16px;
  --body-line-height: 1.7;
  margin-top: 44px;
  padding: 28px 32px;
  border: 1px solid var(--vb-hair);
  border-radius: 16px;
  background: var(--vb-surface);
  scroll-margin-top: 110px;
}

.vb-takeaways-label {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vb-magenta-label);
}

.vb-takeaways-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.vb-takeaways-list li {
  position: relative;
  margin: 0;
  padding-left: 18px;
  color: var(--vb-ink);
}

.vb-takeaways-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vb-purple);
}

/* Author card */
.vb-author-card {
  --body-size: 16px;
  --body-line-height: 1.7;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 44px;
  padding: 28px 0;
  border-top: 1px solid var(--vb-hair);
  border-bottom: 1px solid var(--vb-hair);
}

.vb-author-photo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid var(--vb-hair);
  background: var(--vb-white);
}

.vb-author-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vb-author-photo img.is-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.vb-author-photo.is-initials {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  border: 0;
  background: var(--vb-gradient-cover);
}

.vb-author-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--vb-navy);
}

.vb-author-name a {
  color: inherit;
  text-decoration: none;
}

.vb-author-name a:hover {
  color: var(--vb-magenta-label);
}

.vb-author-role {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--vb-purple);
}

.vb-author-text p {
  max-width: 520px;
  margin: 5px 0 0;
}

/* Sidebar */
.vb-article-side {
  position: sticky;
  top: 100px;
}

.vb-toc-side {
  padding: 22px;
  border: 1px solid var(--vb-hair);
  border-radius: 16px;
  background: var(--vb-white);
}

.vb-toc-side .vb-toc-label {
  letter-spacing: 0.08em;
  color: var(--vb-text-secondary);
}

.vb-toc-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.vb-toc-list li {
  margin: 0;
  padding: 0;
  line-height: 1.35;
}

.vb-toc-list a {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--vb-text-secondary);
  text-decoration: none;
  transition: color 160ms ease;
}

.vb-toc-list a:hover,
.vb-toc-list a:focus-visible {
  color: var(--vb-magenta-label);
}

/* Inline contents: tablet and mobile only. */
.vb-toc-inline {
  display: none;
}

.vb-side-cta {
  --body-size: 14px;
  --body-line-height: 1.5;
  --body-color: rgba(255, 255, 255, 0.84);
  position: relative;
  margin-top: 16px;
  padding: 24px;
  overflow: hidden;
  border-radius: 16px;
}

.vb-toc-side + .vb-side-cta {
  margin-top: 16px;
}

.vb-article-side > .vb-side-cta:first-child {
  margin-top: 0;
}

.vb-side-cta-strip {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--vb-gradient-cover);
  background-size: 300% 100%;
  animation: vbSlide 9s linear infinite;
}

.vb-side-cta-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

.vb-side-cta p {
  margin: 8px 0 16px;
}

/* Related reading */
.vb-related {
  --body-size: 16px;
  --body-line-height: 1.7;
  padding: 64px 0 88px;
  background: var(--vb-surface);
  border-bottom: 1px solid var(--vb-hair);
}

.vb-related-title {
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--vb-hair);
}

.vb-related-title span {
  display: block;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.vb-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--vb-border);
  border: 1px solid var(--vb-border);
}

.vb-related-card {
  display: block;
  padding: 24px;
  background: var(--vb-white);
  color: inherit;
  text-decoration: none;
  transition: background 200ms ease;
}

.vb-related-card-title {
  margin: 0;
  color: var(--vb-navy);
  text-wrap: pretty;
  transition: color 160ms ease;
}

.vb-related-card p {
  margin: 10px 0 0;
}

.vb-related-card:hover .vb-related-card-title {
  color: var(--vb-magenta-label);
}

@media (prefers-reduced-motion: reduce) {
  .vb-side-cta-strip {
    animation: none;
  }
}

@media (max-width: 1199px) {
  .vb-article {
    padding-top: 44px;
  }

  .vb-article-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .vb-article-main {
    max-width: 760px;
  }

  .vb-article-side {
    position: static;
    max-width: 760px;
  }

  .vb-toc-side {
    display: none;
  }

  .vb-side-cta {
    margin-top: 0;
    padding: 28px;
  }

  /* Inline, collapsible contents under the TL;DR. */
  .vb-toc-inline {
    display: block;
    margin-top: 28px;
    border: 1px solid var(--vb-hair);
    border-radius: 14px;
    background: var(--vb-white);
  }

  .vb-toc-inline summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 0 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--vb-text-secondary);
    cursor: pointer;
    list-style: none;
  }

  .vb-toc-inline summary::-webkit-details-marker {
    display: none;
  }

  .vb-toc-inline summary::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 200ms var(--ease-out);
  }

  .vb-toc-inline[open] summary::after {
    margin-top: 4px;
    transform: rotate(-135deg);
  }

  .vb-toc-inline .vb-toc-list {
    margin: 0;
    padding: 0 20px 18px;
    gap: 4px;
  }

  .vb-toc-inline .vb-toc-list a {
    display: flex;
    align-items: center;
    min-height: 40px;
    font-size: 15px;
  }

  .vb-related {
    padding: 56px 0 72px;
  }

  .vb-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vb-related-card:nth-child(3) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .vb-article {
    padding-top: 32px;
  }

  .vb-article-body {
    --body-size: 16px;
    --body-line-height: 1.7;
  }

  .vb-article-body blockquote,
  .vb-article-body .wp-block-quote {
    --body-size: 17px;
    padding-left: 18px;
  }

  .vb-article-body table {
    font-size: 14px;
  }

  .vb-article-body th,
  .vb-article-body td {
    min-width: 140px;
    padding: 10px 12px;
  }

  .vb-article-body .alignleft,
  .vb-article-body .alignright {
    float: none;
    margin: 1.4em 0;
  }

  .vb-byline {
    gap: 4px 16px;
  }

  .vb-article-external .btn {
    width: 100%;
    min-height: 48px;
  }

  .vb-article-image {
    margin-top: 24px;
    border-radius: 12px;
  }

  .vb-tldr {
    --body-size: 16px;
    margin-top: 24px;
    padding: 20px 20px 20px 22px;
  }

  .vb-takeaways {
    margin-top: 36px;
    padding: 22px 20px;
  }

  .vb-author-card {
    align-items: flex-start;
    margin-top: 36px;
    padding: 24px 0;
  }

  .vb-side-cta .btn {
    min-height: 44px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .vb-related {
    padding: 44px 0 56px;
  }

  .vb-related-grid {
    grid-template-columns: 1fr;
  }

  .vb-related-card {
    padding: 20px;
  }
}

/* Space under the stacked sidebar card before Related reading. */
@media (max-width: 1199px) {
  .vb-article {
    padding-bottom: 64px;
  }
}

@media (max-width: 767px) {
  .vb-article {
    padding-bottom: 48px;
  }
}

/* Core table block: drop its 1px currentColor grid for the site's hairlines. */
.vb-article-body .wp-block-table th,
.vb-article-body .wp-block-table td {
  border: 0;
  border-bottom: 1px solid var(--vb-hair);
}

.vb-article-body .wp-block-table th + th,
.vb-article-body .wp-block-table td + td {
  border-left: 1px solid var(--vb-hair);
}

.vb-article-body .wp-block-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 767px) {
  /* Let wide tables keep readable columns and scroll inside .vb-table-scroll. */
  .vb-article-body .vb-table-scroll table,
  .vb-article-body .wp-block-table .has-fixed-layout {
    min-width: 560px;
    table-layout: auto;
  }
}

/* =============================================================================
 * Team bio (single-team.php)
 * ========================================================================== */

.vb-person {
  padding: 48px 0 96px;
}

.vb-person-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  margin-top: 12px;
}

.vb-person-photo {
  position: sticky;
  top: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid var(--vb-hair);
  background: var(--vb-surface);
  box-shadow: var(--shadow-card);
}

.vb-person-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vb-person-initials {
  font-family: var(--font1);
  font-size: 88px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--vb-gradient-cover);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vb-person-text {
  max-width: 720px;
  padding-top: 8px;
}

.vb-person-name {
  margin: 0;
}

.vb-person-role {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--vb-purple-label);
}

.vb-person-affil {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--vb-text-secondary);
}

.vb-person-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 16px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--vb-navy);
  text-decoration: none;
  background: var(--vb-white);
  border: 1px solid var(--vb-hair);
  border-radius: 999px;
  transition: border-color 160ms ease, color 160ms ease;
}

.vb-person-linkedin svg {
  color: #0A66C2;
}

.vb-person-linkedin:hover {
  color: var(--vb-magenta-label);
  border-color: var(--vb-navy);
}

.vb-person-bio {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--vb-hair);
}

.vb-person-grid.is-short {
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: center;
}

.vb-person-grid.is-short .vb-person-photo {
  position: static;
}

.vb-person-grid.is-short .vb-person-initials {
  font-size: 64px;
}

@media (max-width: 1199px) {
  .vb-person {
    padding: 40px 0 80px;
  }

  .vb-person-grid {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 40px;
  }

  .vb-person-grid.is-short {
    grid-template-columns: 200px minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .vb-person {
    padding: 28px 0 56px;
  }

  .vb-person-grid,
  .vb-person-grid.is-short {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .vb-person-photo,
  .vb-person-grid.is-short .vb-person-photo {
    position: static;
    width: 160px;
  }

  .vb-person-initials,
  .vb-person-grid.is-short .vb-person-initials {
    font-size: 52px;
  }

  .vb-person-text {
    padding-top: 0;
  }

  .vb-person-role {
    font-size: 16px;
  }

  .vb-person-bio {
    margin-top: 24px;
    padding-top: 24px;
  }
}

/* =============================================================================
 * Job (single-job.php)
 * ========================================================================== */

.vb-job-head {
  padding: 48px 0 44px;
  border-bottom: 1px solid var(--vb-hair);
}

.vb-job-head .vb-eyebrow {
  margin-top: 8px;
}

.vb-job-title {
  max-width: 860px;
  margin: 0;
}

.vb-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.vb-job-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--vb-navy);
  background: var(--vb-white);
  border: 1px solid var(--vb-hair);
  border-radius: 999px;
}

.vb-job-meta svg {
  flex: 0 0 auto;
  color: var(--vb-purple);
}

.vb-job {
  display: grid;
  grid-template-columns: minmax(0, 760px) 320px;
  justify-content: space-between;
  column-gap: 56px;
  padding-top: 56px;
  padding-bottom: 96px;
}

.vb-job-body,
.vb-job-apply {
  grid-column: 1;
  max-width: 760px;
}

/* Sticky role summary beside the description, so the long copy has a way to the form. */
.vb-job-aside {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.vb-job-aside-card {
  position: sticky;
  top: 110px;
  padding: 28px;
  border: 1px solid var(--vb-hair);
  border-top: 4px solid var(--vb-magenta);
  border-radius: 18px;
  background: var(--vb-white);
  box-shadow: var(--shadow-card);
}

.vb-job-facts {
  margin: 14px 0 22px;
}

.vb-job-facts div {
  padding: 12px 0;
  border-bottom: 1px solid var(--vb-hair);
}

.vb-job-facts dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vb-text-muted);
}

.vb-job-facts dd {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--vb-navy);
}

.vb-job-aside-btn {
  width: 100%;
  justify-content: center;
}

.vb-job-aside-mail {
  --body-size: 14px;
  --body-line-height: 1.5;
  margin: 14px 0 0;
  text-align: center;
}

.vb-job-aside-mail a {
  font-weight: 700;
  color: var(--vb-magenta-label);
}

@media (max-width: 1199px) {
  /* The header already shows team, location and type; the form follows the copy. */
  .vb-job {
    display: block;
  }

  .vb-job-aside {
    display: none;
  }
}

.vb-job-body h2 {
  font-weight: 600;
}

.vb-job-apply {
  --body-size: 17px;
  --body-line-height: 1.65;
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--vb-hair);
  scroll-margin-top: 110px;
}

.vb-job-apply-title {
  margin: 0;
}

.vb-job-apply-text {
  margin: 14px 0 0;
}

.vb-job-apply-text a {
  font-weight: 700;
  color: var(--vb-magenta-label);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Form card: the Contact Router's card and field look. */
.vb-job-formcard {
  position: relative;
  margin-top: 28px;
  padding: 34px 32px 32px;
  overflow: hidden;
  background: var(--vb-white);
  border: 1px solid var(--vb-hair);
  border-radius: var(--radius-card);
  box-shadow: 0 24px 60px -30px rgba(26, 26, 46, 0.32);
}

.vb-job-formcard-strip {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--vb-gradient-cover);
  background-size: 300% 100%;
  animation: vbSlide 9s linear infinite;
}

.vb-job-formcard .gform_wrapper .gform_fields {
  row-gap: 18px;
  column-gap: 18px;
}

.vb-job-formcard .gform_wrapper .gfield_label,
.vb-job-formcard .gform_wrapper.gravity-theme .gfield_label,
.vb-job-formcard .gform_wrapper .gform-field-label--type-sub,
.vb-job-formcard .gform_wrapper legend.gfield_label {
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vb-text-secondary);
}

.vb-job-formcard .gform_wrapper .gform-field-label--type-sub,
.vb-job-formcard .gform_wrapper .ginput_complex label {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--vb-text-muted);
}

.vb-job-formcard .gform_wrapper input[type="text"],
.vb-job-formcard .gform_wrapper input[type="email"],
.vb-job-formcard .gform_wrapper input[type="url"],
.vb-job-formcard .gform_wrapper input[type="tel"],
.vb-job-formcard .gform_wrapper select,
.vb-job-formcard .gform_wrapper textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  font-family: var(--font2);
  font-size: 15px;
  color: var(--vb-navy);
  background: var(--vb-white);
  border: 1px solid var(--vb-hair);
  border-radius: 8px;
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.vb-job-formcard .gform_wrapper textarea {
  height: 104px;
  min-height: 104px;
  padding: 12px 13px;
  line-height: 1.5;
  resize: vertical;
}

.vb-job-formcard .gform_wrapper input:focus,
.vb-job-formcard .gform_wrapper select:focus,
.vb-job-formcard .gform_wrapper textarea:focus {
  outline: none;
  border-color: var(--vb-magenta);
  box-shadow: 0 0 0 3px rgba(255, 40, 156, 0.15);
}

.vb-job-formcard .gform_wrapper ::placeholder {
  color: #6B6B78;
  opacity: 1;
}

/* File upload: a dashed drop area. */
.vb-job-formcard .gform_wrapper input[type="file"] {
  width: 100%;
  height: auto;
  min-height: 56px;
  line-height: 1.4;
  padding: 14px;
  font-family: var(--font2);
  font-size: 14px;
  color: var(--vb-text-secondary);
  background: var(--vb-surface-2);
  border: 1px dashed #CFCFDB;
  border-radius: 10px;
  cursor: pointer;
}

.vb-job-formcard .gform_wrapper input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  font-family: var(--font1);
  font-size: 14px;
  font-weight: 700;
  color: var(--vb-midnight);
  background: var(--vb-white);
  border: 1px solid var(--vb-midnight);
  border-radius: var(--button-radius);
  cursor: pointer;
}

.vb-job-formcard .gform_wrapper .gform_fileupload_rules,
.vb-job-formcard .gform_wrapper .gfield_description {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--vb-text-secondary);
}

.vb-job-formcard .gform_wrapper .gform_footer {
  margin-top: 22px;
  padding: 0;
}

.vb-job-formcard .gform_wrapper .gform_button {
  padding: 12px 24px;
  font-size: 16px;
}

.vb-job-formcard .gform_confirmation_message {
  font-size: 17px;
  line-height: 1.6;
  color: var(--vb-navy);
}

@media (prefers-reduced-motion: reduce) {
  .vb-job-formcard-strip {
    animation: none;
  }
}

@media (max-width: 1199px) {
  .vb-job-head {
    padding: 40px 0 36px;
  }

  .vb-job {
    padding-top: 48px;
    padding-bottom: 80px;
  }
}

@media (max-width: 767px) {
  .vb-job-head {
    padding: 28px 0 28px;
  }

  .vb-job-meta {
    gap: 8px;
    margin-top: 20px;
  }

  .vb-job-meta li {
    font-size: 13px;
  }

  .vb-job {
    padding-top: 36px;
    padding-bottom: 56px;
  }

  .vb-job-apply {
    --body-size: 16px;
    margin-top: 40px;
    padding-top: 36px;
  }

  .vb-job-formcard {
    margin-left: calc(var(--gutter) * -0.5);
    margin-right: calc(var(--gutter) * -0.5);
    padding: 28px 20px 24px;
  }

  .vb-job-formcard .gform_wrapper .gform_button {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }
}

/* Gravity Forms Orbital theme: it prints per-form colour variables on an ID
 * selector, so the brand values need !important to win. */
.vb-job-formcard .gform_wrapper.gform-theme {
  --gf-color-primary: #FF289C !important;
  --gf-color-primary-rgb: 255, 40, 156 !important;
  --gf-color-primary-contrast: #fff !important;
  --gf-color-primary-darker: #E01F88 !important;
  --gf-color-primary-lighter: #FF7FC4 !important;
  --gf-color-in-ctrl-primary: #FF289C !important;
  --gf-color-in-ctrl-primary-rgb: 255, 40, 156 !important;
  --gf-color-in-ctrl-primary-darker: #E01F88 !important;
  --gf-color-in-ctrl-primary-lighter: #FF7FC4 !important;
  --gf-ctrl-btn-radius: 6px !important;
  --gf-ctrl-btn-font-size: 16px !important;
  --gf-ctrl-btn-font-weight: 700 !important;
  --gf-ctrl-btn-padding-x: 24px !important;
  --gf-ctrl-btn-size: 46px !important;
  --gf-font-family-base: var(--font2) !important;
}

.vb-job-formcard .gform_wrapper.gform-theme .gform_footer input.gform_button {
  font-family: var(--font1);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  padding: 12px 24px;
  color: #fff;
  background: var(--vb-magenta);
  border: 1px solid var(--vb-magenta);
  border-radius: var(--button-radius);
  transition: filter 160ms ease, transform 160ms var(--ease-out);
}

.vb-job-formcard .gform_wrapper.gform-theme .gform_footer input.gform_button:hover {
  filter: brightness(0.94);
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .vb-job-formcard .gform_wrapper.gform-theme .gform_footer input.gform_button {
    width: 100%;
    min-height: 48px;
  }
}

/* =============================================================================
 * Event (single-event.php)
 * ========================================================================== */

.vb-event-head {
  padding: 48px 0 44px;
  border-bottom: 1px solid var(--vb-hair);
}

.vb-event-head .vb-eyebrow {
  margin-top: 8px;
}

.vb-event-title {
  max-width: 900px;
  margin: 0;
}

.vb-event-sub {
  max-width: 760px;
  margin-top: 16px;
}

.vb-event-sub p {
  margin: 0;
}

.vb-event-ended {
  --body-size: 14px;
  --body-color: var(--vb-text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  font-weight: 600;
}

.vb-event-ended::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vb-text-muted);
}

.vb-event {
  padding-top: 56px;
  padding-bottom: 96px;
}

.vb-event-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 64px;
  align-items: start;
}

.vb-event-grid.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.vb-event-main {
  max-width: 720px;
  min-width: 0;
}

/* Speakers */
.vb-speakers {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--vb-hair);
}

.vb-speakers-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vb-magenta-label);
}

.vb-speakers-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.vb-speaker {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0;
  padding: 16px 18px;
  background: var(--vb-white);
  border: 1px solid var(--vb-hair);
  border-radius: 14px;
}

.vb-speaker-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.vb-speaker-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--vb-navy);
}

.vb-speaker-title {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--vb-text-secondary);
}

/* Gate card */
.vb-event-side {
  position: sticky;
  top: 100px;
}

.vb-event-card {
  position: relative;
  padding: 32px 30px 30px;
  overflow: hidden;
  background: var(--vb-white);
  border: 1px solid var(--vb-hair);
  border-radius: var(--radius-card);
  box-shadow: 0 24px 60px -30px rgba(26, 26, 46, 0.32);
}

.vb-event-card-title {
  margin: 0 0 20px;
}

.vb-event-hs {
  min-height: 120px;
}

.vb-event-card-btn {
  width: 100%;
}

/* HubSpot embed, generic. Portals with "custom style" inject very specific
 * rules, so these carry !important (same approach as the Contact Router). */
.vb-event-hs .hs-form fieldset {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.vb-event-hs .hs-form fieldset.form-columns-2 {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
  margin-bottom: 16px !important;
}

.vb-event-hs .hs-form fieldset.form-columns-2 .hs-form-field,
.vb-event-hs .hs-form fieldset.form-columns-1 .hs-form-field {
  width: auto !important;
  float: none !important;
  padding: 0 !important;
}

.vb-event-hs .hs-form .hs-form-field {
  margin-bottom: 16px !important;
}

.vb-event-hs .hs-form fieldset.form-columns-2 .hs-form-field {
  margin-bottom: 0 !important;
}

.vb-event-hs .hs-form .input {
  margin: 0 !important;
}

.vb-event-hs .hs-form label:not(.hs-error-msg) {
  display: block !important;
  margin-bottom: 7px !important;
  font-family: var(--font1) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--vb-text-secondary) !important;
}

.vb-event-hs .hs-form .hs-form-required {
  margin-left: 2px !important;
  color: var(--vb-magenta-label) !important;
}

.vb-event-hs .hs-form .hs-input:not([type="checkbox"]):not([type="radio"]) {
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 13px !important;
  font-family: var(--font2) !important;
  font-size: 15px !important;
  color: var(--vb-navy) !important;
  background: var(--vb-white) !important;
  border: 1px solid var(--vb-hair) !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
}

.vb-event-hs .hs-form textarea.hs-input {
  height: 104px !important;
  padding: 12px 13px !important;
}

.vb-event-hs .hs-form select.hs-input {
  appearance: auto !important;
}

.vb-event-hs .hs-form .hs-input:focus {
  outline: none !important;
  border-color: var(--vb-magenta) !important;
  box-shadow: 0 0 0 3px rgba(255, 40, 156, 0.15) !important;
}

.vb-event-hs .hs-form .inputs-list {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.vb-event-hs .hs-form .inputs-list label {
  display: flex !important;
  gap: 8px !important;
  align-items: flex-start !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--vb-ink) !important;
}

.vb-event-hs .hs-form .hs-error-msgs {
  margin: 6px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.vb-event-hs .hs-form .hs-error-msg,
.vb-event-hs .hs-form .hs-main-font-element {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--vb-red-text) !important;
}

.vb-event-hs .hs-form .legal-consent-container,
.vb-event-hs .hs-form .hs-richtext {
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: var(--vb-text-secondary) !important;
}

.vb-event-hs .hs-form .legal-consent-container p {
  --body-size: 13px;
  --body-line-height: 1.5;
  color: var(--vb-text-secondary) !important;
}

.vb-event-hs .hs-form .hs_submit {
  margin-top: 18px !important;
}

.vb-event-hs .hs-form .hs-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 46px !important;
  padding: 12px 24px !important;
  font-family: var(--font1) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: #fff !important;
  cursor: pointer !important;
  background: var(--vb-magenta) !important;
  border: 1px solid var(--vb-magenta) !important;
  border-radius: var(--button-radius) !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
}

.vb-event-hs .hs-form .hs-button:hover {
  filter: brightness(0.94) !important;
}

.vb-event-hs .submitted-message {
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: var(--vb-navy) !important;
}

@media (max-width: 1199px) {
  .vb-event-head {
    padding: 40px 0 36px;
  }

  .vb-event {
    padding-top: 48px;
    padding-bottom: 80px;
  }

  .vb-event-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
  }
}

@media (max-width: 767px) {
  .vb-event-head {
    padding: 28px 0;
  }

  .vb-event {
    padding-top: 36px;
    padding-bottom: 56px;
  }

  .vb-event-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .vb-event-side {
    position: static;
  }

  .vb-event-card {
    padding: 28px 20px 24px;
  }

  .vb-speakers-list {
    grid-template-columns: 1fr;
  }

  .vb-event-hs .hs-form fieldset.form-columns-2 {
    grid-template-columns: 1fr !important;
  }
}

/* =============================================================================
 * Archive + search (archive.php, search.php): the Resource Library card,
 * namespaced. Keep in step with blocks/resourcelibrary/style.css.
 * ========================================================================== */

.vb-archive {
  padding: 56px 0 96px;
  background: var(--vb-white);
  border-bottom: 1px solid var(--vb-hair);
}

.vb-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.vb-archive-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: none;
}

.vb-archive-card:focus-visible {
  outline: 2px solid var(--vb-magenta);
  outline-offset: 3px;
}

.vb-archive-strip {
  display: block;
  flex: 0 0 auto;
  height: 92px;
  background-color: var(--vb-navy);
  background-size: 400%;
}

.vb-archive-strip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vb-archive-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 22px 26px 26px;
}

.vb-archive-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tone);
}

.vb-archive-card.tone-magenta .vb-archive-label,
.vb-archive-card.tone-orange .vb-archive-label {
  color: var(--tone-label);
}

.vb-archive-title {
  margin: 12px 0 0;
  color: var(--vb-navy);
  text-wrap: pretty;
}

.vb-archive-title span {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0;
}

.vb-archive-excerpt {
  display: -webkit-box;
  margin: 12px 0 18px;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.7;
  color: var(--vb-ink);
  text-wrap: pretty;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
}

.vb-archive-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--vb-hair);
  font-size: 14px;
  color: var(--vb-text-secondary);
}

.vb-archive-empty {
  --body-color: var(--vb-text-secondary);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

/* Pagination */
.vb-pagination {
  margin-top: 48px;
}

.vb-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.vb-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--vb-text-secondary);
  text-decoration: none;
  background: var(--vb-white);
  border: 1px solid var(--vb-border);
  border-radius: 999px;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.vb-pagination a.page-numbers:hover {
  color: var(--vb-navy);
  border-color: var(--vb-navy);
}

.vb-pagination .page-numbers.current {
  color: #fff;
  background: var(--vb-navy);
  border-color: var(--vb-navy);
}

.vb-pagination .page-numbers.dots {
  border-color: transparent;
}

/* Search box */
.vb-archive-search {
  padding-top: 8px;
}

.vb-searchform {
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin-top: -40px;
  position: relative;
  z-index: 1;
}

.vb-searchform-field {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  font-family: var(--font2);
  font-size: 16px;
  color: var(--vb-navy);
  background: var(--vb-white);
  border: 1px solid #D6D6E0;
  border-radius: 8px;
  /* The bar straddles the hero's bottom edge; the lift makes that read as deliberate. */
  box-shadow: 0 14px 30px -18px rgba(26, 26, 46, 0.35);
}

.vb-searchform-field:focus {
  outline: none;
  border-color: var(--vb-magenta);
  box-shadow: 0 0 0 3px rgba(255, 40, 156, 0.15);
}

.vb-searchform .btn {
  min-height: 48px;
}

.vb-archive-search + .vb-archive {
  padding-top: 40px;
}

/* =============================================================================
 * 404
 * ========================================================================== */

.vb-404-links {
  padding: 48px 0 96px;
}

.vb-404-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vb-404-grid li {
  margin: 0;
  padding: 0;
}

.vb-404-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  padding: 24px;
  box-shadow: none;
}

.vb-404-card-title {
  color: var(--vb-navy);
  font-size: 16px;
}

@media (max-width: 1199px) {
  .vb-archive {
    padding: 48px 0 80px;
  }

  .vb-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vb-404-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vb-404-links {
    padding-bottom: 80px;
  }
}

@media (max-width: 767px) {
  .vb-archive {
    padding: 32px 0 56px;
  }

  .vb-archive-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .vb-archive-body {
    padding: 20px 22px 22px;
  }

  .vb-archive-excerpt {
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }

  .vb-pagination .page-numbers.prev,
  .vb-pagination .page-numbers.next {
    flex: 1 1 100%;
  }

  .vb-searchform {
    margin-top: -24px;
  }

  .vb-searchform .btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .vb-searchform .btn {
    min-width: 48px;
    padding: 0 14px;
  }

  .vb-404-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .vb-404-card {
    flex-direction: row;
    align-items: center;
    padding: 18px 20px;
  }

  .vb-404-links {
    padding-bottom: 56px;
  }
}

/* Imported posts carry the odd <pre> used as a note box: wrap it, don't scroll the page. */
.vb-article-body pre {
  max-width: 100%;
  margin: 1.6em 0;
  padding: 16px 18px;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  font-family: var(--font2);
  font-size: 15px;
  line-height: 1.6;
  color: var(--vb-text-secondary);
  background: var(--vb-surface-2);
  border: 1px solid var(--vb-hair);
  border-radius: var(--radius-md);
}
