.vd-article {
  --vd-dark: #0c2931;
  --vd-light: #ededed;
  --vd-mid: #4a5f6a;
  --vd-soft: #b7c5cd;
  --vd-accent: #ff810a;
  --vd-bg: #f7f6f2;
  --vd-surface: #ffffff;
  --vd-ink: #111621;
  --vd-ink-soft: #2b3342;
  --vd-muted: rgba(12, 41, 49, 0.66);
  --vd-border: rgba(12, 41, 49, 0.2);
  --vd-border-soft: rgba(12, 41, 49, 0.12);
  --vd-focus: rgba(255, 129, 10, 0.6);

  --vd-font-ui: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --vd-font-body: 'Libre Baskerville', Georgia, 'Times New Roman', serif;

  --vd-content-max: 760px;
  --vd-content-wide: 1020px;
  --vd-header-inline: 24px;
  --vd-space-1: 8px;
  --vd-space-2: 12px;
  --vd-space-3: 16px;
  --vd-space-4: 24px;
  --vd-space-5: 32px;
  --vd-space-6: 48px;
  --vd-space-7: 64px;
  --vd-radius-sm: 10px;
  --vd-radius-md: 14px;
  --vd-radius-lg: 18px;

  color: var(--vd-ink);
  background: var(--vd-bg);
  font-family: var(--vd-font-ui);
}

.vd-article,
.vd-article * {
  box-sizing: border-box;
}

.vd-article a:focus-visible,
.vd-article button:focus-visible,
.vd-article summary:focus-visible {
  outline: 2px solid var(--vd-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.vd-article__entry {
  padding: 0;
}

.vd-article__pretitle {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 14px 0;
  background: var(--vd-dark);
  color: var(--vd-light);
  border-radius: 0;
  display: grid;
  gap: 10px;
}

.vd-article__breadcrumb,
.vd-article__meta {
  width: min(
    calc(var(--vd-content-max) - (var(--vd-header-inline) * 2)),
    calc(100% - (var(--vd-header-inline) * 2))
  );
  margin-left: auto;
  margin-right: auto;
}

.vd-article__breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: inherit;
  align-items: center;
}

.vd-article__breadcrumb li::after {
  content: "/";
  margin-left: var(--vd-space-1);
  color: rgba(237, 237, 237, 0.55);
}

.vd-article__breadcrumb li:last-child::after {
  content: "";
  margin: 0;
}

.vd-article__breadcrumb a {
  color: inherit;
  font-weight: 500;
  text-decoration: none;
  background-image: linear-gradient(var(--vd-accent), var(--vd-accent));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.25s ease;
}

.vd-article__breadcrumb a:hover,
.vd-article__breadcrumb a:focus-visible {
  color: inherit;
  font-weight: 500;
  background-size: 100% 1px;
}

.vd-article__header {
  display: grid;
  gap: 20px;
  border-bottom: 1px solid var(--vd-border);
  padding-bottom: var(--vd-space-6);
  max-width: var(--vd-content-max);
  margin: 0 auto;
  padding-left: var(--vd-header-inline);
  padding-right: var(--vd-header-inline);
  text-align: left;
  justify-items: start;
}

.vd-article__hero {
  display: grid;
  gap: var(--vd-space-2);
  justify-items: start;
}

.vd-article__eyebrow {
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  color: var(--vd-muted);
  margin: 0;
}

.vd-article__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.08;
  margin: 0;
  margin-block-start: clamp(4px, 0.8vw, 8px);
  margin-block-end: clamp(6px, 1.2vw, 12px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--vd-ink);
}

.vd-article__subtitle {
  font-family: var(--vd-font-body);
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  color: var(--vd-ink-soft);
  line-height: 1.8;
  max-width: 72ch;
  margin: 0;
}

.vd-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: inherit;
  justify-content: flex-start;
  text-transform: uppercase;
}

.vd-article__meta > * + *::before {
  content: "/";
  margin-right: var(--vd-space-2);
  color: rgba(237, 237, 237, 0.55);
}

.vd-article__meta a {
  color: inherit;
  font-weight: 500;
  text-decoration: none;
  background-image: linear-gradient(var(--vd-accent), var(--vd-accent));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.25s ease, font-weight 0.2s ease;
}

.vd-article__meta a:hover,
.vd-article__meta a:focus-visible {
  color: inherit;
  font-weight: 700;
  background-size: 100% 1px;
}

.vd-article__meta-reading-time {
  text-transform: none;
  letter-spacing: 0.02em;
}

.vd-article__share {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vd-space-2);
  align-items: center;
  justify-content: center;
  --vd-footer-text: #f7f6f2;
  --vd-footer-muted: rgba(17, 22, 33, 0.64);
  --vd-share-bg: #0c2931;
  --vd-share-bg-hover: #ff810a;
}

.vd-article__share-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--vd-footer-muted);
}

.vd-article__share .vd-footer-social-link {
  background: var(--vd-share-bg);
}

.vd-article__share .vd-footer-social-link svg {
  fill: var(--vd-footer-text);
}

.vd-article__share .vd-footer-social-link:hover {
  background: var(--vd-share-bg-hover);
}

.vd-article__share .vd-footer-social-link:hover svg,
.vd-article__share .vd-footer-social-link:focus-visible svg {
  fill: var(--vd-dark);
}

.vd-article__share-button {
  border: none;
  cursor: pointer;
  padding: 0;
}

.vd-article__share-button--copied {
  background: #2f8f6b;
}

.vd-article__hero-media {
  margin: 0;
  width: 100%;
  aspect-ratio: 10 / 3;
  overflow: hidden;
  background: rgba(12, 41, 49, 0.12);
}

.vd-article__hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vd-article__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3.6vw, 36px);
  margin-top: var(--vd-space-6);
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--vd-space-4);
}

.vd-article__toc {
  border-top: 1px solid var(--vd-border);
  padding-top: var(--vd-space-3);
}

.vd-article__toc h2 {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0 0 var(--vd-space-2);
  color: var(--vd-muted);
}

.vd-article__toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--vd-space-1);
}

.vd-article__toc-item--level-3 {
  margin-left: var(--vd-space-3);
  font-size: 0.95rem;
}

.vd-article__toc a {
  color: var(--vd-ink-soft);
  font-weight: 500;
  text-decoration: none;
  background-image: linear-gradient(var(--vd-accent), var(--vd-accent));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.25s ease, font-weight 0.2s ease;
}

.vd-article__toc a:hover,
.vd-article__toc a:focus-visible {
  color: var(--vd-ink-soft);
  font-weight: 700;
  background-size: 100% 1px;
}

.vd-article__content {
  display: grid;
  gap: 0;
  max-width: var(--vd-content-max);
  margin: 0 auto;
  color: var(--vd-ink-soft);
  font-family: var(--vd-font-body);
  font-size: clamp(1rem, 1.9vw, 1.08rem);
  line-height: 1.9;
}

.vd-article__content > * {
  margin: 0;
}

.vd-article__content > * + * {
  margin-top: clamp(18px, 2.8vw, 30px);
}

.vd-article__content p {
  margin: 0;
  text-wrap: pretty;
}

.vd-article__content h2,
.vd-article__content h3,
.vd-article__content h4,
.vd-article__content h5,
.vd-article__content h6 {
  margin: 0;
  font-family: var(--vd-font-ui);
  color: var(--vd-ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.22;
}

.vd-article__content h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
}

.vd-article__content h3 {
  font-size: clamp(1.28rem, 2.6vw, 1.65rem);
}

.vd-article__content h4 {
  font-size: clamp(1.08rem, 2vw, 1.25rem);
}

.vd-article__content a {
  color: var(--vd-dark);
  text-decoration: underline;
  text-decoration-color: rgba(255, 129, 10, 0.55);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.vd-article__content a:hover,
.vd-article__content a:focus-visible {
  color: #08222a;
  text-decoration-color: rgba(255, 129, 10, 0.95);
}

.vd-article__content strong {
  color: var(--vd-ink);
  font-weight: 700;
}

.vd-article__content em {
  color: #243243;
}

.vd-article__content ul,
.vd-article__content ol,
.vd-article__content .wp-block-list {
  margin: 0;
  padding-left: 1.25em;
}

.vd-article__content li + li {
  margin-top: 0.5em;
}

.vd-article__content li > ul,
.vd-article__content li > ol {
  margin-top: 0.5em;
}

.vd-article__content figcaption,
.vd-article__content .wp-element-caption {
  margin-top: var(--vd-space-2);
  font-family: var(--vd-font-ui);
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vd-muted);
}

.vd-article__content blockquote,
.vd-article__content .wp-block-quote {
  margin: 0;
  padding: clamp(18px, 3vw, 26px) clamp(18px, 3.8vw, 30px);
  border-left: 3px solid var(--vd-accent);
  border-radius: 0 var(--vd-radius-md) var(--vd-radius-md) 0;
  background: rgba(12, 41, 49, 0.06);
  color: var(--vd-ink-soft);
}

.vd-article__content blockquote p,
.vd-article__content .wp-block-quote p {
  margin: 0;
  font-style: italic;
  font-size: clamp(1.02rem, 2vw, 1.14rem);
  line-height: 1.85;
}

.vd-article__content blockquote cite,
.vd-article__content .wp-block-quote cite {
  margin-top: var(--vd-space-3);
  display: block;
  font-family: var(--vd-font-ui);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--vd-muted);
  font-style: normal;
}

.vd-article__content .wp-block-pullquote {
  margin: 0;
  padding: clamp(22px, 3.8vw, 34px) clamp(16px, 3vw, 22px);
  border-top: 1px solid var(--vd-border);
  border-bottom: 1px solid var(--vd-border);
  border-left: none;
  border-right: none;
  text-align: center;
}

.vd-article__content .wp-block-pullquote blockquote {
  border: none;
  background: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
}

.vd-article__content .wp-block-pullquote p {
  font-family: var(--vd-font-body);
  font-size: clamp(1.15rem, 2.4vw, 1.36rem);
  color: var(--vd-ink);
}

.vd-article__content .wp-block-pullquote cite {
  font-family: var(--vd-font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vd-muted);
}

.vd-article__content :is(pre, code, kbd, samp) {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

.vd-article__content code {
  font-size: 0.9em;
  background: rgba(12, 41, 49, 0.08);
  color: var(--vd-dark);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

.vd-article__content pre,
.vd-article__content .wp-block-code {
  margin: 0;
  padding: clamp(16px, 2.8vw, 22px);
  border-radius: var(--vd-radius-md);
  border: 1px solid rgba(237, 237, 237, 0.12);
  background: #111f2b;
  color: #edf2f7;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.7;
}

.vd-article__content pre code,
.vd-article__content .wp-block-code code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.vd-article__content .wp-block-image,
.vd-article__content .wp-block-gallery,
.vd-article__content .wp-block-columns,
.vd-article__content .wp-block-group,
.vd-article__content .wp-block-cover,
.vd-article__content .wp-block-media-text,
.vd-article__content .wp-block-table,
.vd-article__content .wp-block-buttons,
.vd-article__content .wp-block-separator,
.vd-article__content .wp-block-embed,
.vd-article__content .wp-block-video,
.vd-article__content .wp-block-audio,
.vd-article__content .wp-block-file,
.vd-article__content .wp-block-details {
  margin: 0;
}

.vd-article__content .wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--vd-radius-md);
}

.vd-article__content .wp-block-gallery,
.vd-article__content .wp-block-gallery.has-nested-images,
.vd-article__content .blocks-gallery-grid {
  gap: var(--vd-space-2);
}

.vd-article__content .wp-block-gallery .wp-block-image,
.vd-article__content .wp-block-gallery .blocks-gallery-item {
  margin: 0;
}

.vd-article__content .wp-block-gallery .wp-block-image img,
.vd-article__content .wp-block-gallery .blocks-gallery-item img {
  border-radius: var(--vd-radius-sm);
}

.vd-article__content .wp-block-columns {
  gap: clamp(18px, 3vw, 30px);
  align-items: start;
}

.vd-article__content .wp-block-column > :first-child {
  margin-top: 0;
}

.vd-article__content .wp-block-column > :last-child {
  margin-bottom: 0;
}

.vd-article__content .wp-block-group {
  border-radius: var(--vd-radius-md);
}

.vd-article__content .wp-block-group:not(.has-background) {
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--vd-border-soft);
  background: rgba(255, 255, 255, 0.76);
}

.vd-article__content .wp-block-group.has-background {
  padding: clamp(16px, 3vw, 28px);
}

.vd-article__content .wp-block-cover {
  border-radius: var(--vd-radius-lg);
  overflow: hidden;
  min-height: 320px;
}

.vd-article__content .wp-block-cover .wp-block-cover__inner-container {
  padding: clamp(18px, 4vw, 34px);
}

.vd-article__content .wp-block-cover p,
.vd-article__content .wp-block-cover li,
.vd-article__content .wp-block-cover h2,
.vd-article__content .wp-block-cover h3,
.vd-article__content .wp-block-cover h4 {
  color: var(--vd-light);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.vd-article__content .wp-block-cover p,
.vd-article__content .wp-block-cover li {
  font-family: var(--vd-font-ui);
  line-height: 1.7;
}

.vd-article__content .wp-block-media-text {
  gap: clamp(18px, 3vw, 30px);
  align-items: center;
}

.vd-article__content .wp-block-media-text .wp-block-media-text__media {
  border-radius: var(--vd-radius-md);
  overflow: hidden;
}

.vd-article__content .wp-block-media-text .wp-block-media-text__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vd-article__content .wp-block-media-text .wp-block-media-text__content {
  padding: 0;
}

.vd-article__content .wp-block-table {
  overflow-x: auto;
  margin: clamp(24px, 4vw, 40px) 0;
  border: 1px solid rgba(12, 41, 49, 0.16);
  border-radius: clamp(12px, 1.8vw, 16px);
  background: linear-gradient(180deg, #ffffff 0%, #fbfbf8 100%);
  box-shadow: 0 14px 34px rgba(12, 41, 49, 0.08);
}

.vd-article__content .wp-block-table table {
  width: 100%;
  min-width: 620px;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
}

.vd-article__content .wp-block-table th,
.vd-article__content .wp-block-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(12, 41, 49, 0.12);
  text-align: left;
  vertical-align: top;
}

.vd-article__content .wp-block-table th {
  font-family: var(--vd-font-ui);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f7f6f2;
  background: #12333c;
  border-bottom-color: rgba(247, 246, 242, 0.14);
}

.vd-article__content .wp-block-table th:first-child {
  border-top-left-radius: clamp(10px, 1.4vw, 14px);
}

.vd-article__content .wp-block-table th:last-child {
  border-top-right-radius: clamp(10px, 1.4vw, 14px);
}

.vd-article__content .wp-block-table td {
  color: #263446;
  font-size: 0.88rem;
  line-height: 1.5;
}

.vd-article__content .wp-block-table td:first-child {
  font-family: var(--vd-font-ui);
  font-weight: 600;
  color: #162a39;
}

.vd-article__content .wp-block-table tbody tr:nth-child(even) td {
  background: rgba(12, 41, 49, 0.03);
}

.vd-article__content .wp-block-table tbody tr:hover td {
  background: rgba(255, 129, 10, 0.08);
}

.vd-article__content .wp-block-table tr:last-child td {
  border-bottom: none;
}

.vd-article__content .wp-block-table figcaption {
  margin-top: 10px;
  color: rgba(12, 41, 49, 0.56);
}

.vd-article__content .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vd-space-2);
  align-items: center;
}

.vd-article__content .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 9999px;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--vd-dark);
  font-family: var(--vd-font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.vd-article__content .wp-block-button__link:hover,
.vd-article__content .wp-block-button__link:focus-visible {
  color: var(--vd-dark);
  background: var(--vd-accent);
  border-color: var(--vd-accent);
  text-decoration: none;
}

.vd-article__content .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
}

.vd-article__content .wp-block-separator {
  border: none;
  width: min(100%, 640px);
  height: 2px;
  margin: clamp(34px, 5vw, 56px) auto;
  background-image: linear-gradient(var(--vd-accent), var(--vd-accent));
  background-repeat: no-repeat;
  background-position: 0 50%;
  background-size: 100% 2px;
  border-radius: 999px;
  opacity: 1;
}

.vd-article__content .wp-block-separator.is-style-dots {
  background: none;
  height: auto;
  text-align: center;
  line-height: 1;
}

.vd-article__content .wp-block-separator.is-style-dots::before {
  content: "...";
  color: var(--vd-accent);
  letter-spacing: 0.55em;
  font-size: 1.05rem;
}

@media (prefers-reduced-motion: no-preference) {
  .vd-article__content .wp-block-separator:not(.is-style-dots),
  .vd-article__content > h2:not(:first-child)::before {
    background-size: 0% 2px;
    animation: vd-article-separator-draw 680ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
}

@keyframes vd-article-separator-draw {
  to {
    background-size: 100% 2px;
  }
}

.vd-article__content .wp-block-embed__wrapper {
  border-radius: var(--vd-radius-md);
  overflow: hidden;
  background: #111f2b;
}

.vd-article__content .wp-block-embed iframe {
  display: block;
  width: 100%;
  min-height: 220px;
  aspect-ratio: 16 / 9;
  border: 0;
}

.vd-article__content .wp-block-video video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--vd-radius-md);
  background: #000;
}

.vd-article__content .wp-block-audio {
  padding: 14px 16px;
  border: 1px solid var(--vd-border-soft);
  border-radius: var(--vd-radius-md);
  background: rgba(255, 255, 255, 0.76);
}

.vd-article__content .wp-block-audio audio {
  width: 100%;
}

.vd-article__content .wp-block-file {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--vd-border-soft);
  border-radius: var(--vd-radius-md);
  background: rgba(255, 255, 255, 0.76);
  font-family: var(--vd-font-ui);
}

.vd-article__content .wp-block-file a:not(.wp-block-file__button) {
  color: var(--vd-dark);
  text-decoration: none;
  font-weight: 600;
}

.vd-article__content .wp-block-file a:not(.wp-block-file__button):hover,
.vd-article__content .wp-block-file a:not(.wp-block-file__button):focus-visible {
  color: #08222a;
}

.vd-article__content .wp-block-file .wp-block-file__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 16px;
  border-radius: 9999px;
  border: 1px solid var(--vd-accent);
  background: transparent;
  color: var(--vd-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease;
}

.vd-article__content .wp-block-file .wp-block-file__button:hover,
.vd-article__content .wp-block-file .wp-block-file__button:focus-visible {
  background: var(--vd-accent);
  color: var(--vd-dark);
}

.vd-article__content .wp-block-details {
  padding: 14px 16px;
  border: 1px solid var(--vd-border-soft);
  border-radius: var(--vd-radius-md);
  background: rgba(255, 255, 255, 0.76);
}

.vd-article__content .wp-block-details summary {
  cursor: pointer;
  margin: 0;
  font-family: var(--vd-font-ui);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--vd-ink);
}

.vd-article__content .wp-block-details[open] {
  border-color: var(--vd-border);
}

.vd-article__content .wp-block-details > :not(summary) {
  margin-top: var(--vd-space-2);
}

.vd-article__content .alignwide {
  width: min(calc(100vw - 48px), var(--vd-content-wide));
  max-width: var(--vd-content-wide);
  margin-left: 50%;
  transform: translateX(-50%);
}

.vd-article__content .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.vd-article__content .alignfull img,
.vd-article__content .alignfull video,
.vd-article__content .alignfull iframe {
  border-radius: 0;
}

.vd-article__content .alignfull figcaption,
.vd-article__content .alignfull .wp-element-caption {
  padding-inline: var(--vd-space-4);
}

.vd-article__related {
  --vd-article-related-pad: clamp(20px, 4vw, 40px);
  margin-top: 0;
  display: grid;
  gap: var(--vd-article-related-pad);
  background: var(--vd-dark);
  color: var(--vd-light);
  font-family: var(--vd-font-ui);
  padding: var(--vd-article-related-pad) 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
}

.vd-article__related-title {
  text-align: center;
  padding: 0 var(--vd-space-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(2.1rem, 6.2vw, 4.5rem);
  margin: 0;
  color: inherit;
  white-space: normal;
  perspective: 800px;
  max-width: min(92vw, 720px);
  margin-inline: auto;
  line-height: 1.1;
  overflow-wrap: normal;
  word-break: keep-all;
  text-wrap: balance;
}

.vd-article__related-title .slot-word {
  display: inline-flex;
  white-space: nowrap;
}

.vd-article__related-title .slot-space {
  display: inline-block;
  width: 0.35em;
}

.vd-article__related-title .slot-letter-wrap {
  display: inline-block;
  overflow: hidden;
}

.vd-article__related-title .slot-letter {
  display: inline-block;
  transform-style: preserve-3d;
}

.vd-article__related-rail {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 0;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  scroll-snap-type: x mandatory;
  scroll-padding: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
}

.vd-article__related-rail::-webkit-scrollbar {
  display: none;
}

.vd-article__related-card {
  flex: 0 0 100vw;
  max-width: 100vw;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: auto;
  display: flex;
  flex-direction: column;
  background: transparent;
}

.vd-article__related-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.vd-article__related-media {
  display: block;
  width: 100%;
  margin: 0;
  aspect-ratio: 16 / 9;
  max-height: 360px;
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.vd-article__related-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vd-article__related-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(237, 237, 237, 0.12);
}

.vd-article__related-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 20px 24px;
  background: linear-gradient(180deg, rgba(12, 41, 49, 0) 0%, rgba(12, 41, 49, 0.75) 100%);
  color: var(--vd-light);
  font-family: var(--vd-font-ui);
}

.vd-article__related-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.72rem;
  color: rgba(237, 237, 237, 0.76);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.vd-article__related-meta span {
  color: inherit;
}

.vd-article__related-card-title {
  margin: 0;
  color: var(--vd-light);
  font-size: clamp(1.05rem, 4.6vw, 1.35rem);
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vd-article__related-excerpt {
  margin: 0;
  font-size: clamp(0.95rem, 3.8vw, 1.05rem);
  line-height: 1.4;
  color: rgba(237, 237, 237, 0.9);
}

.vd-article__related-excerpt p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vd-article__related-excerpt p + p {
  display: none;
}

.vd-article__related-cta {
  margin-top: 2px;
  width: fit-content;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vd-light);
  background-image: linear-gradient(var(--vd-accent), var(--vd-accent));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size 0.25s ease;
}

.vd-article__related-link:hover .vd-article__related-cta,
.vd-article__related-link:focus-visible .vd-article__related-cta {
  background-size: 100% 1px;
}

.vd-article__related-pager {
  padding: 12px 0 18px;
}

.vd-article__footer {
  margin-top: 0;
  background: var(--vd-dark);
}

.vd-article__footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  margin-bottom: 24px;
  color: var(--vd-light);
  font-family: var(--vd-font-ui);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.vd-article__footer-meta a {
  color: var(--vd-light);
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 2px;
  background-image: linear-gradient(var(--vd-accent), var(--vd-accent));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.35s ease, font-weight 0.2s ease;
}

.vd-article__footer-meta a:hover,
.vd-article__footer-meta a:focus-visible {
  color: var(--vd-light);
  font-weight: 700;
  background-size: 100% 2px;
}

.vd-article__nav-surface {
  margin: 0 calc(50% - 50vw) 0;
  padding: var(--vd-article-related-pad, clamp(32px, 6vw, 64px)) 16px;
  background: var(--vd-dark);
  color: var(--vd-light);
}

.vd-article__nav-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.vd-article__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

.vd-article__nav-link {
  flex: 1 1 240px;
  padding: 20px;
  border-radius: var(--vd-radius-md);
  border: none;
  background: transparent;
  text-decoration: none;
  color: var(--vd-light);
  display: grid;
  gap: var(--vd-space-1);
  box-shadow: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.vd-article__nav-link:hover,
.vd-article__nav-link:focus-visible {
  background: transparent;
  color: var(--vd-light);
  text-decoration: none;
  box-shadow: none;
}

.vd-article__nav-link--next {
  text-align: right;
  justify-items: end;
  align-items: end;
}

.vd-article__nav-label {
  font-family: var(--vd-font-ui);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.vd-article__nav-title {
  display: block;
}

.vd-article__nav-title strong {
  display: inline-block;
  color: var(--vd-light);
  background-image: linear-gradient(var(--vd-accent), var(--vd-accent));
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: 0 100%;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-size 0.35s ease, color 0.35s ease;
}

.vd-article__nav-link:hover .vd-article__nav-title strong,
.vd-article__nav-link:focus-visible .vd-article__nav-title strong {
  background-size: 100% 100%;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 1100px) {
  .vd-article__body {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    align-items: start;
  }

  .vd-article__toc {
    position: sticky;
    top: 110px;
  }

  .vd-article__content {
    margin: 0;
  }

  .vd-article__related-rail {
    padding: 0 0 24px;
  }

  .vd-article__related-media {
    aspect-ratio: 16 / 7;
    max-height: 420px;
  }
}

@media (max-width: 1080px) {
  .vd-article__cta-cluster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .vd-article {
    --vd-header-inline: 16px;
  }

  .vd-article__header {
    gap: var(--vd-space-3);
    padding-top: clamp(28px, 8vw, 40px);
    padding-bottom: var(--vd-space-5);
  }

  .vd-article__title {
    font-size: clamp(1.9rem, 10vw, 2.9rem);
  }

  .vd-article__body {
    gap: var(--vd-space-4);
    padding: 0 var(--vd-space-3);
  }

  .vd-article__content {
    font-size: 1rem;
    line-height: 1.84;
  }

  .vd-article__cta-cluster {
    grid-template-columns: 1fr;
    padding: 0 var(--vd-space-3);
  }

  .vd-article__content .alignwide {
    width: min(calc(100vw - 32px), var(--vd-content-wide));
  }
}

@media (max-width: 768px) {
  .vd-article__hero-media {
    aspect-ratio: 4 / 3;
    width: 100vw;
    border-radius: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .vd-article__meta {
    gap: 6px;
  }

  .vd-article__meta-pill,
  .vd-article__meta-reading-time {
    min-height: 26px;
    padding-inline: 10px;
    font-size: 0.7rem;
  }

  .vd-article__share .vd-footer-social {
    display: flex;
    flex-wrap: wrap;
  }

  .vd-article__nav {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: var(--vd-space-2);
  }

  .vd-article__nav-link {
    flex: 1 1 0;
    padding: var(--vd-space-3);
    text-align: left;
    justify-items: start;
    align-items: start;
  }

  .vd-article__nav-link--next {
    text-align: left;
    justify-items: start;
    align-items: start;
  }

  .vd-article__nav-title {
    overflow-wrap: anywhere;
  }

  .vd-article__content .wp-block-columns,
  .vd-article__content .wp-block-media-text {
    grid-template-columns: 1fr !important;
    display: grid;
  }

  .vd-article__content .wp-block-table table {
    min-width: 540px;
  }

  .vd-article__content .alignwide {
    width: 100%;
    margin-left: 0;
    transform: none;
  }

  .vd-article__content .alignfull figcaption,
  .vd-article__content .alignfull .wp-element-caption {
    padding-inline: var(--vd-space-3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vd-article *,
  .vd-article *::before,
  .vd-article *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Kohde-like editorial article layout overrides (content area only). */
.vd-article {
  --vd-page-bg: #f6f6f2;
  --vd-card-bg: #ffffff;
  --vd-card-border: rgba(12, 41, 49, 0.14);
  --vd-rule: rgba(12, 41, 49, 0.18);

  background: var(--vd-page-bg);
  padding-bottom: clamp(44px, 8vw, 88px);
}

.vd-article__entry {
  position: relative;
}

.vd-article__hero-media {
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  aspect-ratio: 16 / 9;
  max-height: min(84vh, 780px);
}

.vd-article__hero-media--empty {
  background:
    radial-gradient(circle at 16% 24%, rgba(255, 129, 10, 0.26) 0%, rgba(255, 129, 10, 0) 48%),
    radial-gradient(circle at 82% 22%, rgba(12, 41, 49, 0.4) 0%, rgba(12, 41, 49, 0) 52%),
    linear-gradient(140deg, #1f3640 0%, #0c2931 45%, #132f39 100%);
}

.vd-article__header {
  position: relative;
  z-index: 2;
  max-width: min(1000px, calc(100% - 36px));
  margin: clamp(-100px, -8vw, -54px) auto 0;
  border: 1px solid var(--vd-card-border);
  border-radius: clamp(18px, 2.8vw, 26px);
  background: var(--vd-card-bg);
  box-shadow: 0 20px 64px rgba(12, 41, 49, 0.14);
  padding: clamp(20px, 4vw, 42px) clamp(18px, 4vw, 48px) clamp(22px, 4.2vw, 46px);
  gap: 0;
  text-align: left;
  justify-items: stretch;
}

.vd-article__hero {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

.vd-article__pretitle {
  width: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  border-radius: 0;
  gap: 10px;
}

.vd-article__breadcrumb,
.vd-article__meta {
  width: auto;
  margin: 0;
}

.vd-article__breadcrumb ol {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(12, 41, 49, 0.58);
}

.vd-article__breadcrumb li::after {
  color: rgba(12, 41, 49, 0.3);
}

.vd-article__breadcrumb a {
  color: var(--vd-dark);
  font-weight: 600;
  transition: background-size 0.25s ease;
}

.vd-article__breadcrumb a:hover,
.vd-article__breadcrumb a:focus-visible {
  color: var(--vd-dark);
  font-weight: 600;
  background-size: 100% 1px;
}

.vd-article__meta {
  align-items: center;
  gap: 8px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(12, 41, 49, 0.66);
}

.vd-article__meta > * + *::before {
  color: rgba(12, 41, 49, 0.34);
}

.vd-article__meta-format {
  color: var(--vd-dark);
  font-weight: 700;
}

.vd-article__title {
  font-size: clamp(2rem, 5vw, 3.9rem);
  line-height: 1.06;
  text-transform: none;
  letter-spacing: -0.02em;
  margin-block: 0;
}

.vd-article__subtitle {
  max-width: 62ch;
  font-size: clamp(1.08rem, 2.1vw, 1.26rem);
  line-height: 1.76;
  color: #2b3848;
}

.vd-article__share {
  margin-top: 10px;
  justify-content: flex-start;
  --vd-footer-muted: rgba(12, 41, 49, 0.66);
  --vd-share-bg: #12333c;
  --vd-share-bg-hover: #ff810a;
}

.vd-article__share-label {
  margin-right: 6px;
}

.vd-article__share .vd-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vd-article__body {
  display: block;
  max-width: 860px;
  margin: clamp(40px, 7vw, 86px) auto 0;
  padding: 0 clamp(16px, 3vw, 28px);
}

.vd-article__content {
  display: grid;
  gap: 0;
  max-width: 760px;
  margin: 0 auto;
  color: #2a3747;
  font-family: var(--vd-font-body);
  font-size: clamp(0.95rem, 1.18vw, 1.01rem);
  line-height: 1.8;
  --vd-flow-space: clamp(18px, 2.2vw, 30px);
  --vd-paragraph-after-space: clamp(16px, 2.1vw, 24px);
  --vd-list-after-space: clamp(20px, 2.8vw, 30px);
  --vd-heading-after-space: clamp(14px, 2vw, 22px);
  --vd-quote-before-space: clamp(24px, 3.4vw, 38px);
  --vd-table-after-space: clamp(28px, 4.2vw, 40px);
}

.vd-article__content > * + * {
  margin-top: var(--vd-flow-space);
}

.vd-article__content > :is(h2, h3, h4) + * {
  margin-top: var(--vd-heading-after-space);
}

.vd-article__content > h4 + * {
  margin-top: clamp(10px, 1.6vw, 16px);
}

.vd-article__content > p + * {
  margin-top: var(--vd-paragraph-after-space);
}

.vd-article__content > :is(ul, ol, .wp-block-list) + * {
  margin-top: var(--vd-list-after-space);
}

.vd-article__content > :is(blockquote, .wp-block-quote, .wp-block-pullquote):not(:first-child) {
  margin-top: var(--vd-quote-before-space);
}

.vd-article__content > :is(.wp-block-table, table) + * {
  margin-top: var(--vd-table-after-space);
}

.vd-article__content > h2:not(:first-child) {
  margin-top: clamp(52px, 7.2vw, 86px);
}

.vd-article__content > h2:not(:first-child)::before {
  content: "";
  display: block;
  width: min(100%, 640px);
  height: 2px;
  margin: 0 auto clamp(22px, 3vw, 32px);
  background-image: linear-gradient(var(--vd-accent), var(--vd-accent));
  background-repeat: no-repeat;
  background-position: 0 50%;
  background-size: 100% 2px;
  border-radius: 999px;
}

.vd-article__content > h4:not(:first-child) {
  margin-top: clamp(34px, 5.2vw, 54px);
  padding-top: clamp(14px, 2.2vw, 22px);
  border-top: 0.5px solid var(--vd-accent);
}

.vd-article__content h2,
.vd-article__content h3,
.vd-article__content h4,
.vd-article__content h5,
.vd-article__content h6 {
  text-transform: none;
  letter-spacing: -0.01em;
}

.vd-article__content h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.95rem);
  font-weight: 500 !important;
}

.vd-article__content h3 {
  font-size: clamp(1.2rem, 2.1vw, 1.45rem);
  font-weight: 400 !important;
}

.vd-article__content h4 {
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
}

.vd-article__content .wp-block-image img,
.vd-article__content img {
  border-radius: clamp(12px, 2vw, 18px);
}

.vd-article__content blockquote,
.vd-article__content .wp-block-quote {
  border-left-width: 4px;
  background: rgba(12, 41, 49, 0.05);
}

.vd-article__related {
  margin-top: clamp(68px, 10vw, 126px);
}

@media (max-width: 1024px) {
  .vd-article__header {
    max-width: min(920px, calc(100% - 28px));
    margin-top: clamp(-66px, -7vw, -34px);
    padding-inline: clamp(16px, 3.2vw, 28px);
  }

  .vd-article__title {
    font-size: clamp(1.82rem, 7.6vw, 3rem);
  }
}

@media (max-width: 767px) {
  .vd-article__hero-media {
    aspect-ratio: 4 / 5;
    max-height: none;
  }

  .vd-article__header {
    margin-top: clamp(-36px, -5vw, -18px);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(12, 41, 49, 0.16);
  }

  .vd-article__breadcrumb {
    display: none;
  }

  .vd-article__meta {
    gap: 5px 8px;
    font-size: 0.68rem;
  }

  .vd-article__share-label {
    display: none;
  }

  .vd-article__content {
    font-size: 0.95rem;
    line-height: 1.74;
  }

  .vd-article__content > h2:not(:first-child) {
    margin-top: clamp(38px, 9vw, 56px);
  }

  .vd-article__content > h2:not(:first-child)::before {
    margin-bottom: clamp(16px, 4vw, 24px);
  }

  .vd-article__content > h4:not(:first-child) {
    margin-top: clamp(24px, 7vw, 36px);
    padding-top: clamp(10px, 3vw, 14px);
  }

  .vd-article__content > h4 + * {
    margin-top: clamp(8px, 2.4vw, 12px);
  }

  .vd-article__content .wp-block-table {
    margin: clamp(20px, 6vw, 30px) 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .vd-article__content .wp-block-table table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }

  .vd-article__content .wp-block-table thead {
    display: none;
  }

  .vd-article__content .wp-block-table tbody {
    display: grid;
    gap: 12px;
  }

  .vd-article__content .wp-block-table tr {
    display: block;
    border: 1px solid rgba(12, 41, 49, 0.16);
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fbfbf8 100%);
    box-shadow: 0 10px 24px rgba(12, 41, 49, 0.08);
  }

  .vd-article__content .wp-block-table tbody tr:nth-child(even) td {
    background: transparent;
  }

  .vd-article__content .wp-block-table tbody tr:hover td {
    background: transparent;
  }

  .vd-article__content .wp-block-table :is(td, th) {
    display: grid;
    grid-template-columns: minmax(92px, 38%) 1fr;
    align-items: start;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(12, 41, 49, 0.1);
    font-size: 0.84rem;
    line-height: 1.45;
    background: transparent;
  }

  .vd-article__content .wp-block-table :is(td, th):last-child {
    border-bottom: none;
  }

  .vd-article__content .wp-block-table :is(td, th)::before {
    content: attr(data-label);
    font-family: var(--vd-font-ui);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(12, 41, 49, 0.62);
  }

  .vd-article__content .wp-block-table :is(td, th):not([data-label])::before {
    content: "Dato";
  }

  .vd-article__content .wp-block-table td:first-child {
    font-family: var(--vd-font-body);
    font-weight: 400;
    color: #263446;
  }
}

/* ========================================
   Article TOC rail (H2 only, discreet/mobile-first)
   ======================================== */

.vd-article__body--has-toc {
  display: block;
  position: relative;
  overflow: visible;
}

.vd-article__toc--rail {
  border: 0;
  padding: 0;
  margin: 0 0 clamp(14px, 2.8vw, 20px);
}

.vd-article__toc--rail .vd-article__toc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  font-family: var(--vd-font-ui);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(12, 41, 49, 0.58);
}

.vd-article__toc--rail .vd-article__toc-kicker::before {
  content: "";
  width: 14px;
  height: 1px;
  border-radius: 999px;
  background: rgba(12, 41, 49, 0.22);
}

.vd-article__toc--rail .vd-article__toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vd-article__toc--rail .vd-article__toc-item {
  margin: 0;
}

.vd-article__toc--rail .vd-article__toc-link {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px 9px;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(12, 41, 49, 0.72);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.vd-article__toc--rail .vd-article__toc-link:hover,
.vd-article__toc--rail .vd-article__toc-link:focus-visible {
  color: rgba(12, 41, 49, 0.9);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(12, 41, 49, 0.08);
}

.vd-article__toc--rail .vd-article__toc-link.is-active,
.vd-article__toc--rail .vd-article__toc-link[aria-current] {
  color: var(--vd-ink);
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(12, 41, 49, 0.1);
}

.vd-article__toc--rail .vd-article__toc-tick {
  width: 2px;
  height: 14px;
  border-radius: 999px;
  background: rgba(12, 41, 49, 0.24);
  justify-self: center;
  transition: background-color 0.18s ease, height 0.18s ease, transform 0.18s ease;
}

.vd-article__toc--rail .vd-article__toc-link.is-active .vd-article__toc-tick,
.vd-article__toc--rail .vd-article__toc-link[aria-current] .vd-article__toc-tick {
  height: 20px;
  background: var(--vd-accent);
  transform: translateX(0.5px);
}

.vd-article__toc--rail .vd-article__toc-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--vd-font-ui);
  font-size: 0.74rem;
  line-height: 1.2;
  font-weight: 500;
}

.vd-article__content :is(h2, h3)[id] {
  scroll-margin-top: clamp(98px, 16vh, 136px);
}

@media (min-width: 1180px) {
  .vd-article__body--has-toc {
    display: grid;
    grid-template-columns: minmax(0, 0) minmax(0, 1fr);
    align-items: start;
    gap: 0;
    max-width: 860px;
    overflow: visible;
  }

  .vd-article__body--has-toc .vd-article__content {
    grid-column: 2;
    margin: 0 auto;
    width: 100%;
  }

  .vd-article__body--has-toc .vd-article__toc--rail {
    grid-column: 1;
    position: sticky;
    top: clamp(84px, 10vh, 116px);
    width: clamp(126px, 11.5vw, 162px);
    margin: 0;
    transform: translateX(calc(-100% - clamp(14px, 1.6vw, 22px)));
    margin-bottom: 0;
    background: transparent;
    z-index: 2;
  }

  .vd-article__toc--rail .vd-article__toc-kicker {
    margin-bottom: 12px;
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    color: rgba(12, 41, 49, 0.46);
  }

  .vd-article__toc--rail .vd-article__toc-list {
    display: grid;
    gap: 2px;
  }

  .vd-article__toc--rail .vd-article__toc-link {
    grid-template-columns: 10px minmax(0, 1fr);
    padding: 6px 6px 6px 0;
    border-radius: 8px;
    background: transparent;
    border-color: transparent;
  }

  .vd-article__toc--rail .vd-article__toc-link:hover,
  .vd-article__toc--rail .vd-article__toc-link:focus-visible {
    background: rgba(255, 255, 255, 0.6);
    border-color: transparent;
  }

  .vd-article__toc--rail .vd-article__toc-link.is-active,
  .vd-article__toc--rail .vd-article__toc-link[aria-current] {
    background: rgba(255, 255, 255, 0.74);
    border-color: transparent;
  }

  .vd-article__toc--rail .vd-article__toc-tick {
    height: 16px;
  }

  .vd-article__toc--rail .vd-article__toc-link.is-active .vd-article__toc-tick,
  .vd-article__toc--rail .vd-article__toc-link[aria-current] .vd-article__toc-tick {
    height: 24px;
  }

  .vd-article__toc--rail .vd-article__toc-text {
    white-space: normal;
    line-height: 1.32;
    font-size: 0.68rem;
    color: inherit;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    opacity: 0.7;
  }

  .vd-article__toc--rail .vd-article__toc-link.is-active .vd-article__toc-text,
  .vd-article__toc--rail .vd-article__toc-link[aria-current] .vd-article__toc-text,
  .vd-article__toc--rail .vd-article__toc-link:hover .vd-article__toc-text,
  .vd-article__toc--rail .vd-article__toc-link:focus-visible .vd-article__toc-text {
    opacity: 1;
  }
}

@media (max-width: 1099px) {
  .vd-article__body--has-toc .vd-article__toc--rail {
    position: sticky;
    top: max(8px, env(safe-area-inset-top));
    z-index: 8;
    padding: 8px;
    border: 1px solid rgba(12, 41, 49, 0.08);
    border-radius: 14px;
    background: rgba(247, 246, 242, 0.86);
    box-shadow: 0 8px 18px rgba(12, 41, 49, 0.06);
    backdrop-filter: saturate(1.1) blur(10px);
  }

  .vd-article__toc--rail .vd-article__toc-kicker {
    display: none;
  }

  .vd-article__toc--rail .vd-article__toc-list {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .vd-article__toc--rail .vd-article__toc-list::-webkit-scrollbar {
    display: none;
  }

  .vd-article__toc--rail .vd-article__toc-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}

@media (max-width: 767px) {
  .vd-article__body--has-toc .vd-article__toc--rail {
    position: fixed;
    top: 50%;
    right: max(4px, env(safe-area-inset-right));
    left: auto;
    transform: translateY(-50%) translateX(8px);
    z-index: 16;
    width: 24px;
    margin: 0;
    padding: 4px 2px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    overflow: visible;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      width 0.18s ease,
      padding 0.18s ease,
      border-radius 0.18s ease,
      background-color 0.18s ease,
      box-shadow 0.18s ease,
      opacity 0.18s ease,
      transform 0.18s ease;
  }

  .vd-article__body--has-toc .vd-article__toc--rail.is-mobile-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
  }

  .vd-article__body--has-toc .vd-article__toc--rail.is-mobile-open {
    width: min(84vw, 360px);
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(12, 41, 49, 0.08);
    background: rgba(247, 246, 242, 0.94);
    box-shadow: 0 16px 34px rgba(12, 41, 49, 0.12);
    backdrop-filter: saturate(1.1) blur(8px);
    overflow: hidden;
    cursor: default;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
  }

  .vd-article__toc--rail .vd-article__toc-kicker {
    display: none;
  }

  .vd-article__toc--rail.is-mobile-open .vd-article__toc-kicker {
    display: inline-flex;
    margin: 0 0 8px;
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    color: rgba(12, 41, 49, 0.5);
  }

  .vd-article__toc--rail .vd-article__toc-list {
    display: grid;
    gap: 3px;
    align-content: start;
    width: auto;
    max-height: min(72svh, calc(100svh - 28px));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    scroll-snap-type: none;
    scrollbar-width: none;
  }

  .vd-article__toc--rail .vd-article__toc-list::-webkit-scrollbar {
    display: none;
  }

  .vd-article__toc--rail .vd-article__toc-item {
    flex: initial;
    scroll-snap-align: none;
  }

  .vd-article__toc--rail:not(.is-mobile-open) .vd-article__toc-link {
    pointer-events: none;
  }

  .vd-article__toc--rail .vd-article__toc-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    min-height: 18px;
    padding: 2px 0;
    gap: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    justify-self: center;
  }

  .vd-article__toc--rail:not(.is-mobile-open) .vd-article__toc-link:hover,
  .vd-article__toc--rail:not(.is-mobile-open) .vd-article__toc-link:focus-visible,
  .vd-article__toc--rail:not(.is-mobile-open) .vd-article__toc-link.is-active,
  .vd-article__toc--rail:not(.is-mobile-open) .vd-article__toc-link[aria-current] {
    background: transparent;
    border-color: transparent;
  }

  .vd-article__toc--rail .vd-article__toc-link:hover,
  .vd-article__toc--rail .vd-article__toc-link:focus-visible {
    background: rgba(255, 255, 255, 0.66);
    border-color: transparent;
  }

  .vd-article__toc--rail .vd-article__toc-link.is-active,
  .vd-article__toc--rail .vd-article__toc-link[aria-current] {
    background: rgba(255, 255, 255, 0.78);
    border-color: transparent;
  }

  .vd-article__toc--rail.is-mobile-open .vd-article__toc-link {
    pointer-events: auto;
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    align-items: center;
    justify-content: stretch;
    width: 100%;
    min-height: 30px;
    padding: 7px 9px;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.6);
    justify-self: stretch;
  }

  .vd-article__toc--rail.is-mobile-open .vd-article__toc-link:hover,
  .vd-article__toc--rail.is-mobile-open .vd-article__toc-link:focus-visible {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(12, 41, 49, 0.08);
  }

  .vd-article__toc--rail.is-mobile-open .vd-article__toc-link.is-active,
  .vd-article__toc--rail.is-mobile-open .vd-article__toc-link[aria-current] {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(12, 41, 49, 0.1);
  }

  .vd-article__toc--rail .vd-article__toc-tick {
    width: 2px;
    height: 8px;
    background: rgba(12, 41, 49, 0.16);
  }

  .vd-article__toc--rail .vd-article__toc-link.is-past .vd-article__toc-tick {
    background: rgba(12, 41, 49, 0.34);
  }

  .vd-article__toc--rail .vd-article__toc-link.is-active .vd-article__toc-tick,
  .vd-article__toc--rail .vd-article__toc-link[aria-current] .vd-article__toc-tick {
    height: 18px;
    background: var(--vd-accent);
  }

  .vd-article__toc--rail .vd-article__toc-text {
    display: none;
  }

  .vd-article__toc--rail.is-mobile-open .vd-article__toc-text {
    display: block;
    position: static;
    transform: none;
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    word-break: normal;
    font-size: 0.74rem;
    line-height: 1.28;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .vd-article__content :is(h2, h3)[id] {
    scroll-margin-top: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vd-article__toc--rail .vd-article__toc-link,
  .vd-article__toc--rail .vd-article__toc-tick,
  .vd-article__toc--rail .vd-article__toc-text,
  .vd-article__body--has-toc .vd-article__toc--rail {
    transition: none;
  }
}
