/* veriaco.com/blog — the magazine. Lives next to the site's own site.p10.css (header, footer,
   Vazirmatn, .v-container); every rule here is under .vb so it never touches the rest of the page.
   Palette = the site's: navy #0a0f38, brand indigo #444ce7, mint #00da90 (#00875a for text on white). */
.vb {
  --vb-navy: #0a0f38;
  --vb-ink: #151a3b;
  --vb-muted: #5a6085;
  --vb-rule: #e2e5f0;
  --vb-paper: #f6f7fb;
  --vb-indigo: #444ce7;
  --vb-mint: #00da90;
  --vb-mint-ink: #00875a;
  color: var(--vb-ink);
  background: #fff;
}
.vb a { color: inherit; }
.vb :focus-visible { outline: 2px solid var(--vb-indigo); outline-offset: 3px; border-radius: 4px; }

/* Reading progress: a player's scrubber under the sticky header. */
.vb-scrub { position: sticky; top: 4rem; z-index: 30; height: 3px; margin-bottom: -3px; pointer-events: none; }
@media (min-width: 1024px) { .vb-scrub { top: 4.5rem; } }
.vb-scrub span { display: block; height: 100%; width: 100%; background: var(--vb-mint); transform-origin: right; transform: scaleX(var(--vb-p, 0)); }
body:not(.vb-reading) .vb-scrub { display: none; }

/* Masthead (list, category, 404) */
.vb-mast { background: var(--vb-navy); color: #fff; padding: 3rem 0 0; }
.vb-mast h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; margin: 0; }
.vb-mast__lede { margin: .9rem 0 0; max-width: 44rem; color: #c9ccf5; font-size: 1.0625rem; line-height: 1.9; }
.vb-mast__links { display: flex; gap: 1.25rem; margin: 1.5rem 0 0; padding-bottom: 3rem; }
.vb-mast__links a { color: var(--vb-mint); font-weight: 700; }
.vb-crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .875rem; margin-bottom: 1rem; }
.vb-crumbs a { color: #b3b7f7; text-decoration: none; font-weight: 600; }
.vb-crumbs a + a::before { content: '‹'; margin-inline-end: .5rem; color: #6b70b8; }
.vb-crumbs a:hover { color: #fff; }

/* Topics: a row of tabs sitting on the masthead's bottom edge, like a channel's tabs. */
.vb-cats { margin-top: 2.25rem; overflow-x: auto; scrollbar-width: none; }
.vb-cats::-webkit-scrollbar { display: none; }
.vb-cats ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.vb-cats a { display: block; padding: .8rem 1rem; color: #c9ccf5; text-decoration: none; font-weight: 600; font-size: .9375rem; border-bottom: 3px solid transparent; }
.vb-cats a span { color: #8d93f3; font-size: .8125rem; margin-inline-start: .25rem; }
.vb-cats a:hover { color: #fff; }
.vb-cats a[aria-current='page'] { color: #fff; border-bottom-color: var(--vb-mint); }
.vb-mast:not(:has(.vb-cats)) { padding-bottom: 3rem; }
.vb-mast:has(.vb-mast__links) { padding-bottom: 0; }

/* Thumbnails: always 16:9, like the videos they write about. */
.vb-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: .75rem; background: var(--vb-paper); }
.vb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vb-thumb--empty { display: grid; place-items: center; color: #c5c9e4; background: linear-gradient(135deg, #eef0fb, #f6f7fb); }

/* List */
.vb-list { padding-top: 2.5rem; padding-bottom: 4rem; }
.vb-card { position: relative; display: flex; flex-direction: column; gap: .9rem; }
.vb-card__media { position: relative; display: block; }
.vb-dur { position: absolute; inset-block-end: .5rem; inset-inline-start: .5rem; background: rgba(10, 15, 56, .86); color: #fff; font-size: .75rem; font-weight: 700; padding: .15rem .45rem; border-radius: .3rem; }
.vb-card__body { display: flex; flex-direction: column; gap: .45rem; }
.vb-cat { align-self: flex-start; color: var(--vb-mint-ink); font-size: .8125rem; font-weight: 700; text-decoration: none; }
.vb-cat:hover { text-decoration: underline; }
.vb-card__title { margin: 0; font-size: 1.0625rem; font-weight: 800; line-height: 1.7; }
.vb-card__title a { text-decoration: none; }
.vb-card__title a::after { content: ''; position: absolute; inset: 0; }
.vb-card .vb-cat { position: relative; z-index: 1; }
.vb-card:hover .vb-card__title a { color: var(--vb-indigo); }
.vb-card:hover .vb-thumb img { transform: scale(1.025); }
.vb-thumb img { transition: transform .35s ease; }
.vb-card__excerpt { margin: 0; color: var(--vb-muted); font-size: .9375rem; line-height: 1.85; }
.vb-card time { color: var(--vb-muted); font-size: .8125rem; }
.vb-card--lead { margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--vb-rule); }
@media (min-width: 900px) {
  .vb-card--lead { display: grid; grid-template-columns: 1.35fr 1fr; gap: 2.5rem; align-items: center; }
  .vb-card--lead .vb-card__title { font-size: 1.875rem; line-height: 1.5; }
  .vb-card--lead .vb-card__excerpt { font-size: 1.0625rem; }
}
.vb-grid { display: grid; gap: 2.5rem 1.75rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .vb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .vb-grid { grid-template-columns: repeat(3, 1fr); } }
.vb-empty { color: var(--vb-muted); padding: 3rem 0; }
.vb-empty a { color: var(--vb-indigo); font-weight: 700; }

.vb-pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--vb-rule); }
.vb-pager ol { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.vb-pager li a, .vb-pager li span { display: grid; place-items: center; min-width: 2.5rem; height: 2.5rem; border-radius: .5rem; text-decoration: none; font-weight: 700; }
.vb-pager li a:hover { background: var(--vb-paper); }
.vb-pager li span[aria-current] { background: var(--vb-navy); color: #fff; }
.vb-pager__gap { display: grid; place-items: center; width: 1.5rem; color: var(--vb-muted); }
.vb-pager__step { font-weight: 700; color: var(--vb-indigo); text-decoration: none; }
@media (max-width: 560px) { .vb-pager ol { display: none; } }

/* Article */
.vb-ahead { background: var(--vb-navy); color: #fff; padding: 2.75rem 0 7rem; }
.vb-ahead h1 { margin: 0; max-width: 48rem; font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 800; line-height: 1.45; }
.vb-ahead__lede { margin: 1rem 0 0; max-width: 44rem; color: #c9ccf5; font-size: 1.125rem; line-height: 1.9; }
.vb-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 1.5rem 0 0; color: #b3b7f7; font-size: .875rem; }
.vb-cover-wrap { margin-top: -5.5rem; }
.vb-cover-wrap:empty { margin-top: -4rem; }
.vb-cover { max-width: 60rem; border-radius: 1rem; box-shadow: 0 24px 48px -24px rgba(10, 15, 56, .45); }
.vb-abody { display: grid; gap: 2.5rem; padding-top: 3rem; padding-bottom: 4rem; }
@media (min-width: 1100px) {
  .vb-abody--toc { grid-template-columns: 15rem minmax(0, 44rem); justify-content: start; gap: 4rem; }
  .vb-chapters { position: sticky; top: 7rem; align-self: start; max-height: calc(100vh - 9rem); overflow: auto; }
}
.vb-abody:not(.vb-abody--toc) .vb-prose { max-width: 44rem; }

/* Chapters: the video's chapter list. */
.vb-chapters { font-size: .875rem; }
.vb-chapters__title { margin: 0 0 .75rem; font-weight: 800; color: var(--vb-navy); }
.vb-chapters ol { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid var(--vb-rule); }
.vb-chapters a { display: block; padding: .45rem .9rem; margin-inline-start: -2px; border-inline-start: 2px solid transparent; color: var(--vb-muted); text-decoration: none; line-height: 1.7; }
.vb-chapters a:hover { color: var(--vb-ink); }
.vb-chapters a[aria-current='true'] { color: var(--vb-navy); font-weight: 700; border-inline-start-color: var(--vb-mint); }
@media (max-width: 1099px) {
  .vb-chapters { background: var(--vb-paper); border-radius: .75rem; padding: 1.1rem 1.25rem; }
  .vb-chapters ol { border: 0; counter-reset: ch; }
  .vb-chapters a { padding: .3rem 0; border: 0; margin: 0; }
}

/* Body text */
.vb-prose { font-size: 1.0625rem; line-height: 2.05; min-width: 0; }
@media (min-width: 768px) { .vb-prose { font-size: 1.125rem; } }
.vb-prose > * + * { margin-top: 1.25em; }
.vb-prose p { margin: 0; }
.vb-prose h2 { margin: 2.2em 0 0; font-size: 1.5em; font-weight: 800; line-height: 1.55; color: var(--vb-navy); scroll-margin-top: 6.5rem; }
.vb-prose h3 { margin: 1.8em 0 0; font-size: 1.2em; font-weight: 800; line-height: 1.6; color: var(--vb-navy); scroll-margin-top: 6.5rem; }
.vb-prose h4 { margin: 1.5em 0 0; font-size: 1.05em; font-weight: 800; }
.vb-prose h2 + *, .vb-prose h3 + * { margin-top: .6em; }
.vb-prose a { color: var(--vb-indigo); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.vb-prose a:hover { text-decoration-thickness: 2px; }
.vb-prose strong { font-weight: 800; }
.vb-prose ul, .vb-prose ol { margin: 0; padding-inline-start: 1.4em; }
.vb-prose li + li { margin-top: .45em; }
.vb-prose li::marker { color: var(--vb-mint-ink); font-weight: 700; }
.vb-prose blockquote { margin-inline: 0; padding: .25em 1.25em; border-inline-start: 3px solid var(--vb-mint); color: #2c3260; }
.vb-prose hr { border: 0; border-top: 1px solid var(--vb-rule); margin: 2.5em 0; }
.vb-prose img, .vb-prose video { max-width: 100%; height: auto; border-radius: .6rem; }
.vb-prose figure { margin-inline: 0; }
.vb-prose figcaption { margin-top: .5rem; color: var(--vb-muted); font-size: .875rem; text-align: center; }
.vb-prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: .75rem; }
.vb-prose .vb-table { overflow-x: auto; }
.vb-prose table { width: 100%; border-collapse: collapse; font-size: .9375em; line-height: 1.8; }
.vb-prose th, .vb-prose td { border-bottom: 1px solid var(--vb-rule); padding: .65em .8em; text-align: start; vertical-align: top; }
.vb-prose th { background: var(--vb-paper); font-weight: 800; color: var(--vb-navy); }
.vb-prose code { font-size: .9em; background: var(--vb-paper); padding: .1em .35em; border-radius: .3rem; }
.vb-note { background: #fff8e6; border-radius: .6rem; padding: .9rem 1.1rem; font-size: .9375rem; }
.vb-refs { font-size: .9375rem; }
.vb-refs h2 { font-size: 1.15em; }
.vb-refs a { word-break: break-word; }
.vb-credits { color: var(--vb-muted); font-size: .875rem; line-height: 1.9; }
.vb-tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0 !important; }
.vb-tags li { margin: 0 !important; background: var(--vb-paper); border-radius: 999px; padding: .2rem .8rem; font-size: .8125rem; color: var(--vb-muted); }

/* One call to action, at the end of every article: what Veriaco actually does. */
.vb-cta { margin-top: 3rem !important; background: var(--vb-navy); color: #fff; border-radius: 1rem; padding: 1.75rem; }
.vb-cta p { margin: 0; color: #c9ccf5; font-size: 1rem; line-height: 1.9; }
.vb-cta .vb-cta__title { color: #fff; font-size: 1.25rem; font-weight: 800; margin-bottom: .4rem; }
.vb-cta a { display: inline-block; margin-top: 1.1rem; background: var(--vb-mint); color: var(--vb-navy); font-weight: 800; text-decoration: none; padding: .7rem 1.25rem; border-radius: .6rem; }
.vb-cta a:hover { background: #45e6ab; }

.vb-related { background: var(--vb-paper); padding: 3.5rem 0 4rem; }
.vb-related h2 { margin: 0 0 2rem; font-size: 1.5rem; font-weight: 800; color: var(--vb-navy); }

@media (prefers-reduced-motion: reduce) {
  .vb-thumb img { transition: none; }
  .vb-card:hover .vb-thumb img { transform: none; }
}
