/**
 * Token-driven vapor / smoke layers (Phase: vape FX).
 * Colors come from --ds-color-accent and --ds-color-bg only.
 */

.hero-fx-host,
.section-fx-host {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blk-hero {
  position: relative;
  isolation: isolate;
}

.blk-hero__inner,
.blk-hero__stats,
.blk-hero__grid {
  position: relative;
  z-index: 2;
}

.blk-section {
  position: relative;
  isolation: isolate;
}

.blk-section > .blk-container {
  position: relative;
  z-index: 2;
}

.fx-vapor-layer {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(48px);
  opacity: 0.38;
  will-change: transform, opacity;
}

.fx-vapor-layer--a {
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  left: -12%;
  bottom: -20%;
  background: radial-gradient(
    circle at 40% 60%,
    color-mix(in srgb, var(--ds-color-accent, #00e5ff) 42%, transparent) 0%,
    transparent 68%
  );
  animation: fx-vapor-drift-a 22s ease-in-out infinite;
}

.fx-vapor-layer--b {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  right: -8%;
  top: 10%;
  background: radial-gradient(
    circle at 50% 50%,
    color-mix(in srgb, var(--ds-color-accent, #00e5ff) 28%, transparent) 0%,
    color-mix(in srgb, var(--ds-color-bg, #121212) 8%, transparent) 45%,
    transparent 72%
  );
  animation: fx-vapor-drift-b 28s ease-in-out infinite;
}

.fx-vapor-layer--c {
  width: min(40vw, 320px);
  height: min(40vw, 320px);
  left: 35%;
  top: 55%;
  background: radial-gradient(
    circle at 50% 50%,
    color-mix(in srgb, var(--ds-color-text-muted, #a3a3a3) 18%, transparent) 0%,
    transparent 70%
  );
  animation: fx-vapor-drift-c 18s ease-in-out infinite;
  opacity: 0.22;
}

.section-fx-host .fx-vapor-layer {
  filter: blur(56px);
  opacity: 0.28;
}

.section-fx-host .fx-vapor-layer--c {
  display: none;
}

.fx-vapor-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}

@keyframes fx-vapor-drift-a {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(8%, -6%) scale(1.08);
  }
}

@keyframes fx-vapor-drift-b {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-6%, 8%) scale(1.05);
  }
}

@keyframes fx-vapor-drift-c {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.18;
  }
  50% {
    transform: translate(4%, -4%);
    opacity: 0.28;
  }
}

@media (max-width: 767px) {
  .fx-vapor-layer {
    filter: blur(36px);
    opacity: 0.3;
  }

  .fx-vapor-canvas {
    opacity: 0.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx-vapor-layer {
    animation: none !important;
  }

  .fx-vapor-canvas {
    display: none !important;
  }
}

/**
 * template.css — Vape minimal design system (tpl-vape-minimal)
 * Tokens · Shell · Hero · Media · Posts · A11y · Responsive
 */

/* ── 1. Design tokens ── */
:root {
  --ds-space-unit: 8px;
  --ds-space-lg: calc(var(--ds-space-unit) * 4);

  --ds-color-bg: #f3f6f2;
  --ds-color-surface: #fafbf9;
  --ds-color-surface-raised: #ffffff;
  --ds-color-section-media: #f7faf6;
  --ds-color-section-related: #dfe8db;
  --ds-color-text: #1a2e1f;
  --ds-color-text-muted: #4a6350;
  --ds-color-heading: #0f2418;
  --ds-color-accent: #2d6a4f;
  --ds-color-accent-hover: #1b4332;
  --ds-color-on-accent: #ffffff;
  --ds-color-border: #c8d9cc;

  --ds-font-display: "Literata", "Georgia", serif;
  --ds-font-body: "Inter", system-ui, -apple-system, sans-serif;
  --ds-font-utility: "Inter", system-ui, sans-serif;

  --ds-radius-sm: 6px;
  --ds-radius-md: 12px;
  --ds-radius-lg: 20px;
  --ds-radius-pill: 9999px;

  --ds-shadow-sm: 0 1px 2px rgba(15, 22, 35, 0.06), 0 4px 12px rgba(15, 22, 35, 0.04);
  --ds-shadow-md: 0 2px 4px rgba(15, 22, 35, 0.06), 0 12px 32px rgba(15, 22, 35, 0.08);
  --ds-shadow-lg: 0 4px 8px rgba(15, 22, 35, 0.06), 0 24px 48px rgba(15, 22, 35, 0.1);

  --ds-motion-duration: 200ms;
  --ds-motion-ease: cubic-bezier(0.2, 0, 0, 1);

  --container-max: 1200px;
  --measure-narrow: 42rem;
  --measure-hero: 46rem;
  --touch-min: 44px;
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--ds-color-accent) 35%, transparent);

  --z-header: 200;
  --z-drawer: 280;
  --z-toggle: 310;
}

@media (min-width: 1024px) {
  :root {
    --ds-space-lg: calc(var(--ds-space-unit) * 6);
  }
}

/* ── 2. Reset & base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: clip;
  font-family: var(--ds-font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ds-color-text);
  background-color: var(--ds-color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
}

:focus-visible {
  outline: 2px solid var(--ds-color-accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: calc(var(--ds-space-unit) * 2);
  z-index: 1000;
  padding: calc(var(--ds-space-unit) * 1.5) calc(var(--ds-space-unit) * 3);
  background: var(--ds-color-surface);
  color: var(--ds-color-accent);
  border-radius: var(--ds-radius-sm);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: calc(var(--ds-space-unit) * 2);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(calc(var(--ds-space-unit) * 3), 4vw, calc(var(--ds-space-unit) * 6));
}

/* ── 3. Typography ── */
h1,
h2,
h3,
h4 {
  font-family: var(--ds-font-display);
  color: var(--ds-color-heading);
  line-height: 1.15;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* ── 4. Header & navigation ── */
.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  width: 100%;
  border-bottom: 1px solid color-mix(in srgb, var(--ds-color-border) 70%, transparent);
  isolation: isolate;
}

.site-header-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--ds-color-surface) 92%, transparent);
  backdrop-filter: blur(12px);
  pointer-events: none;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--ds-space-unit) * 2);
  min-height: calc(var(--touch-min) + var(--ds-space-unit));
  padding-block: calc(var(--ds-space-unit) * 1.5);
}

.logo {
  font-family: var(--ds-font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ds-color-heading);
  text-decoration: none;
  line-height: 1.2;
}

.logo:hover {
  color: var(--ds-color-accent);
}

.logo img,
.logo-img {
  display: block;
  max-height: 32px;
  width: auto;
  max-width: min(160px, 45vw);
  height: auto;
  object-fit: contain;
  outline: none;
}

.blk-shell--header-minimal .logo img,
.blk-shell--header-minimal .logo-img {
  max-height: 32px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--touch-min);
  height: var(--touch-min);
  padding: 0;
  border: none;
  border-radius: var(--ds-radius-sm);
  background: transparent;
  color: var(--ds-color-heading);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--ds-motion-duration) var(--ds-motion-ease);
}

.nav-toggle:hover {
  background: color-mix(in srgb, var(--ds-color-border) 40%, transparent);
}

.nav-toggle:active {
  transform: scale(0.96);
}

.nav-toggle__icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--ds-motion-duration) var(--ds-motion-ease),
    opacity var(--ds-motion-duration) var(--ds-motion-ease);
  transform-origin: center;
}

body.nav-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

body.nav-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-drawer {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-drawer__backdrop {
  display: none;
}

.nav-drawer__panel {
  display: contents;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(var(--ds-space-unit) * 0.5) calc(var(--ds-space-unit) * 2);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-min);
  padding: calc(var(--ds-space-unit) * 1) calc(var(--ds-space-unit) * 2);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ds-color-text-muted);
  text-decoration: none;
  border-radius: var(--ds-radius-sm);
  cursor: pointer;
  touch-action: manipulation;
  transition: color var(--ds-motion-duration) var(--ds-motion-ease),
    background-color var(--ds-motion-duration) var(--ds-motion-ease);
}

.site-nav a:hover {
  color: var(--ds-color-heading);
  background: color-mix(in srgb, var(--ds-color-border) 35%, transparent);
}

.site-nav a[aria-current="page"] {
  color: var(--ds-color-accent);
  font-weight: 600;
}

/* ── 5. Footer ── */
.site-footer {
  margin-top: calc(var(--ds-space-unit) * 8);
  padding: calc(var(--ds-space-unit) * 6) 0 calc(var(--ds-space-unit) * 4);
  background: var(--ds-color-surface);
  color: var(--ds-color-text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--ds-space-unit) * 3);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--ds-space-unit) * 1) calc(var(--ds-space-unit) * 4);
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-min);
  font-size: 0.875rem;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: color var(--ds-motion-duration) var(--ds-motion-ease);
}

.footer-nav a:hover {
  color: var(--ds-color-accent);
}

.footer-bottom {
  margin-top: calc(var(--ds-space-unit) * 4);
  padding-top: calc(var(--ds-space-unit) * 3);
  border-top: 1px solid var(--ds-color-border);
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ds-color-text-muted);
}

/* Footer social (SSR shell-footer-social — not in site.css bundle for Template v2) */
.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: calc(var(--ds-space-unit) * 1);
  flex: 0 0 auto;
  max-width: 100%;
}

.footer-social__label {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
}

.footer-social__icons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: calc(var(--ds-space-unit) * 1);
  align-items: center;
  justify-content: flex-end;
}

.footer-social .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-min);
  height: var(--touch-min);
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 50%;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: color var(--ds-motion-duration) var(--ds-motion-ease), transform var(--ds-motion-duration) var(--ds-motion-ease);
}

.footer-social .social-link:hover {
  color: var(--ds-color-accent);
  transform: translateY(-1px);
}

.footer-social .social-link--no-url {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

.footer-social .social-link--no-url:hover {
  transform: none;
}

.social-link__icon,
.footer-social .social-link svg {
  width: 1.25rem;
  height: 1.25rem;
  max-width: 1.25rem;
  max-height: 1.25rem;
  flex-shrink: 0;
  display: block;
  fill: currentColor;
}

.footer-social .social-link svg path,
.footer-social .social-link svg circle {
  fill: currentColor;
}

/* ── 6. Sections & layout blocks ── */
.site-main {
  min-height: 60vh;
}

.blk-section {
  position: relative;
  width: 100%;
  isolation: isolate;
}

.blk-container {
  margin-inline: auto;
  width: 100%;
  max-width: var(--container-max);
  padding-inline: clamp(calc(var(--ds-space-unit) * 3), 4vw, calc(var(--ds-space-unit) * 6));
}

.blk-section--pad > .blk-container {
  padding-inline: 0;
}

.blk-section--full .blk-container {
  max-width: none;
}

.blk-section--pad {
  padding-block: calc(var(--ds-space-unit) * 8);
  padding-inline: clamp(calc(var(--ds-space-unit) * 3), 4vw, calc(var(--ds-space-unit) * 6));
}

.blk-section--pad-lg {
  padding-block: calc(var(--ds-space-unit) * 10);
}

.blk-heading {
  margin: 0 0 calc(var(--ds-space-unit) * 5);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ds-color-heading);
}


/* ── 7. Hero (vertical) ── */
.blk-hero--hero-scene-vertical { position: relative; display: flex; align-items: center; min-height: 92svh; padding: calc(var(--ds-space-unit) * 10) clamp(calc(var(--ds-space-unit) * 3), 4vw, calc(var(--ds-space-unit) * 6)); color: var(--ds-color-text); overflow: hidden; }
.blk-hero--hero-scene-vertical .blk-hero__layout { display: grid; grid-template-columns: 1fr; gap: calc(var(--ds-space-unit) * 6); width: 100%; max-width: 72rem; margin: 0 auto; align-items: start; }
.blk-hero--hero-scene-vertical .blk-hero__rail { display: flex; flex-direction: row; align-items: flex-start; gap: calc(var(--ds-space-unit) * 3); }
.blk-hero--hero-scene-vertical .blk-hero__eyebrow { margin: 0; writing-mode: vertical-rl; text-orientation: mixed; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.28em; color: var(--ds-color-accent); white-space: nowrap; }
.blk-hero--hero-scene-vertical .blk-hero__title { writing-mode: vertical-rl; text-orientation: mixed; font-size: clamp(2rem, 6vw, 3.75rem); font-weight: 700; line-height: 1.35; letter-spacing: 0.12em; margin: 0; color: var(--ds-color-heading); max-height: min(70vh, 520px); }
.blk-hero--hero-scene-vertical .blk-hero__body { max-width: 36rem; padding-top: calc(var(--ds-space-unit) * 2); }
.blk-hero--hero-scene-vertical .blk-hero-subtitle { font-size: clamp(1rem, 2.2vw, 1.1875rem); line-height: 1.85; color: var(--ds-color-text-muted); margin: 0 0 calc(var(--ds-space-unit) * 4); text-align: left; max-width: 42rem; }
.blk-hero--hero-scene-vertical .blk-btn { min-height: 48px; padding: calc(var(--ds-space-unit) * 1.5) calc(var(--ds-space-unit) * 4); border: 1px solid var(--ds-color-border); background: transparent; color: var(--ds-color-heading); }
.blk-hero--hero-scene-vertical .blk-btn:hover { background: color-mix(in srgb, var(--ds-color-accent) 12%, transparent); border-color: var(--ds-color-accent); color: var(--ds-color-accent-hover); }
.blk-hero--hero-scene-vertical .blk-hero__rule { width: 1px; height: 72px; margin-top: calc(var(--ds-space-unit) * 3); background: color-mix(in srgb, var(--ds-color-border) 70%, transparent); }

@media (min-width: 768px) {
  .blk-hero--hero-scene-vertical .blk-hero__layout { grid-template-columns: minmax(0, 0.55fr) minmax(0, 0.45fr); gap: calc(var(--ds-space-unit) * 8); align-items: center; }
  .blk-hero--hero-scene-vertical .blk-hero__title { max-height: min(75vh, 640px); font-size: clamp(2.5rem, 4.5vw, 4.25rem); }
  .blk-hero--hero-scene-vertical .blk-hero__body { padding-top: calc(var(--ds-space-unit) * 8); }
}

@media (max-width: 767px) {
  .blk-hero--hero-scene-vertical .blk-hero__rail { flex-direction: column; }
  .blk-hero--hero-scene-vertical .blk-hero__title { writing-mode: horizontal-tb; text-orientation: initial; max-height: none; letter-spacing: -0.02em; line-height: 1.08; font-size: clamp(2rem, 9vw, 2.75rem); }
  .blk-hero--hero-scene-vertical .blk-hero__eyebrow { writing-mode: horizontal-tb; letter-spacing: 0.18em; }
  .blk-hero--hero-scene-vertical .blk-btn { width: 100%; justify-content: center; }
}

/* ── 8. Buttons ── */
.blk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--ds-space-unit) * 1);
  min-height: var(--touch-min);
  padding: calc(var(--ds-space-unit) * 1.5) calc(var(--ds-space-unit) * 4);
  font-family: var(--ds-font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ds-color-on-accent);
  background: var(--ds-color-accent);
  border: none;
  border-radius: var(--ds-radius-md);
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: var(--ds-shadow-sm);
  transition: background-color var(--ds-motion-duration) var(--ds-motion-ease),
    transform var(--ds-motion-duration) var(--ds-motion-ease),
    box-shadow var(--ds-motion-duration) var(--ds-motion-ease);
}

.blk-btn:hover {
  background: var(--ds-color-accent-hover);
  box-shadow: var(--ds-shadow-md);
}

.blk-btn:active {
  transform: scale(0.96);
}

.blk-btn--ghost {
  color: var(--ds-color-heading);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--ds-color-border);
}

.blk-btn--ghost:hover {
  background: color-mix(in srgb, var(--ds-color-border) 30%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ds-color-accent) 40%, var(--ds-color-border));
}


/* ── 9. Media + text (vertical rhythm) ── */
.blk-media-text--media-text-vertical-rhythm { color: var(--ds-color-text); padding-block: calc(var(--ds-space-unit) * 8); }
.blk-media-text--media-text-vertical-rhythm .blk-media-text__inner { display: grid; gap: calc(var(--ds-space-unit) * 5); max-width: 42rem; margin-inline: auto; padding-inline: clamp(calc(var(--ds-space-unit) * 3), 4vw, calc(var(--ds-space-unit) * 6)); }
.blk-media-text--media-text-vertical-rhythm .blk-media-text__eyebrow { margin: 0 0 calc(var(--ds-space-unit) * 2); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ds-color-accent); text-align: left; }
.blk-media-text--media-text-vertical-rhythm .blk-media-text__title { margin: 0 0 calc(var(--ds-space-unit) * 3); font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 600; line-height: 1.25; text-align: left; }
.blk-media-text--media-text-vertical-rhythm .blk-media-text__content { margin: 0 0 calc(var(--ds-space-unit) * 4); font-size: 1.0625rem; line-height: 1.85; color: var(--ds-color-text-muted); text-align: left; max-width: 42rem; }
.blk-media-text--media-text-vertical-rhythm .blk-media-text__media { min-height: 220px; border-radius: var(--ds-radius-lg); overflow: hidden; background: var(--ds-color-section-media); }

.blk-media-text--media-text-vertical-rhythm .blk-media-text__media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  outline: none;
}

@media (min-width: 768px) {
  .blk-media-text--media-text-vertical-rhythm .blk-media-text__inner { max-width: 56rem; grid-template-columns: 1fr 1fr; align-items: start; gap: calc(var(--ds-space-unit) * 8); }
  .blk-media-text--media-text-vertical-rhythm .blk-media-text__figure { order: -1; }
  .blk-media-text--media-text-vertical-rhythm .blk-media-text__media { min-height: 320px; }
}

/* ── 10. Post list (simple) ── */
.blk-post-list--post-list-simple {
  padding-block: calc(var(--ds-space-unit) * 2);
}

.blk-post-list--post-list-simple .blk-post-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--ds-color-border);
}

.blk-post-list--post-list-simple .blk-post-card {
  border-bottom: 1px solid var(--ds-color-border);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.blk-post-list--post-list-simple .blk-post-card:hover {
  transform: none;
  box-shadow: none;
  background: color-mix(in srgb, var(--ds-color-accent) 6%, transparent);
}

.blk-post-list--post-list-simple .blk-post-card a {
  display: flex;
  flex-direction: column;
  gap: calc(var(--ds-space-unit) * 0.75);
  padding: calc(var(--ds-space-unit) * 2.5) calc(var(--ds-space-unit) * 1);
  min-height: var(--touch-min);
  color: inherit;
  text-decoration: none;
  transition: background-color var(--ds-motion-duration) var(--ds-motion-ease);
}

.blk-post-list--post-list-simple .blk-post-card__thumb {
  display: none;
}

.blk-post-list--post-list-simple .blk-post-card h3 {
  margin: 0;
  font-family: var(--ds-font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ds-color-heading);
}

.blk-post-list--post-list-simple .blk-post-meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ds-color-text-muted);
}

.blk-post-list--post-list-simple .blk-post-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ds-color-text-muted);
}

@media (min-width: 768px) {
  .blk-post-list--post-list-simple .blk-post-card a {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: calc(var(--ds-space-unit) * 4);
    padding: calc(var(--ds-space-unit) * 2) 0;
  }

  .blk-post-list--post-list-simple .blk-post-card a > :not(h3) {
    flex: 0 0 auto;
    text-align: right;
  }

  .blk-post-list--post-list-simple .blk-post-card h3 {
    flex: 1 1 auto;
    min-width: 0;
  }

  .blk-post-list--post-list-simple .blk-post-card p:not(.blk-post-meta) {
    display: none;
  }
}


/* ── 11. Post body (vertical column + footer back) ── */
.blk-post-body--post-body-vertical-column { max-width: 42rem; margin-inline: auto; padding: calc(var(--ds-space-unit) * 5) calc(var(--ds-space-unit) * 3); color: var(--ds-color-text); }
.blk-post-body--post-body-vertical-column .blk-post-header { margin-bottom: calc(var(--ds-space-unit) * 3); }
.blk-post-body--post-body-vertical-column .blk-post-title { font-size: clamp(1.75rem, 4.5vw, 2.25rem); font-weight: 700; line-height: 1.2; margin: 0 0 calc(var(--ds-space-unit) * 1.5); text-align: left; }
.blk-post-body--post-body-vertical-column .blk-post-meta { font-size: 0.875rem; color: var(--ds-color-text-muted); margin: 0 0 calc(var(--ds-space-unit) * 2); text-align: left; }
.blk-post-body--post-body-vertical-column .blk-post-excerpt { font-size: 1.0625rem; line-height: 1.75; color: var(--ds-color-text-muted); margin: 0 0 calc(var(--ds-space-unit) * 4); padding-bottom: calc(var(--ds-space-unit) * 3); border-bottom: 1px solid var(--ds-color-border); text-align: left; max-width: 42rem; }
.blk-post-body--post-body-vertical-column .blk-post-content { font-size: 1rem; line-height: 1.85; text-align: left; max-width: 42rem; }
.blk-post-body--post-body-vertical-column .blk-post-content p, .blk-post-body--post-body-vertical-column .blk-post-content li { text-align: left; }

.blk-section--post-footer { padding-block: calc(var(--ds-space-unit) * 6); }
.blk-section--post-footer .blk-post-back { max-width: 42rem; margin-inline: auto; padding-inline: calc(var(--ds-space-unit) * 3); }
.blk-section--post-footer .blk-post-back a { display: inline-flex; align-items: center; gap: calc(var(--ds-space-unit) * 1); min-height: var(--touch-min); font-size: 0.9375rem; font-weight: 500; color: var(--ds-color-text-muted); text-decoration: none; }
.blk-section--post-footer .blk-post-back a:hover { color: var(--ds-color-accent); }

.blk-section--post-footer .blk-post-back a:active {
  transform: scale(0.96);
}


/* ── 12. Shell variants ── */
.blk-shell--header-minimal .site-header__bar { min-height: calc(var(--touch-min) + var(--ds-space-unit) * 0.5); padding-block: calc(var(--ds-space-unit) * 1); }
@media (max-width: 767px) {
  .blk-shell--header-minimal .site-header__bar {
    display: grid;
    grid-template-columns: var(--touch-min) 1fr var(--touch-min);
    align-items: center;
  }

  .blk-shell--header-minimal .nav-toggle {
    grid-column: 1;
  }

  .blk-shell--header-minimal .logo {
    grid-column: 2;
    justify-self: center;
    text-align: center;
  }

  .blk-shell--header-minimal .header-spacer {
    grid-column: 3;
    width: var(--touch-min);
    height: var(--touch-min);
  }
}

.blk-shell--header-minimal .logo { font-size: 1rem; font-weight: 600; }

.blk-shell--footer-centered .blk-shell__footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: calc(var(--ds-space-unit) * 3); }
.blk-shell--footer-centered .footer-nav { justify-content: center; flex-wrap: wrap; gap: calc(var(--ds-space-unit) * 2) calc(var(--ds-space-unit) * 4); }
.blk-shell--footer-centered .footer-bottom { text-align: center; margin-top: calc(var(--ds-space-unit) * 4); padding-top: calc(var(--ds-space-unit) * 3); border-top: 1px solid var(--ds-color-border); }

.tpl-vape-minimal .blk-heading { text-align: left; max-width: 42rem; margin-inline: auto; padding-inline: clamp(calc(var(--ds-space-unit) * 3), 4vw, calc(var(--ds-space-unit) * 6)); }

/* ── Pagination, prose, tables & contact ── */
.blk-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: calc(var(--ds-space-unit) * 2) calc(var(--ds-space-unit) * 3);
  margin-top: calc(var(--ds-space-unit) * 5);
  padding-top: calc(var(--ds-space-unit) * 4);
  border-top: 1px solid var(--ds-color-border);
}

.blk-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  padding: 0 calc(var(--ds-space-unit) * 2);
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-sm);
  background: var(--ds-color-surface);
  color: var(--ds-color-accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    border-color var(--ds-motion-duration) var(--ds-motion-ease),
    background-color var(--ds-motion-duration) var(--ds-motion-ease),
    color var(--ds-motion-duration) var(--ds-motion-ease);
}

.blk-pagination__link:hover {
  border-color: var(--ds-color-accent);
  background: color-mix(in srgb, var(--ds-color-accent) 10%, var(--ds-color-surface));
  color: var(--ds-color-accent-hover);
}

.blk-pagination__link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.blk-pagination__pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: calc(var(--ds-space-unit) * 1);
}

.blk-pagination__current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  padding: 0 calc(var(--ds-space-unit) * 2);
  border-radius: var(--ds-radius-sm);
  background: var(--ds-color-accent);
  color: var(--ds-color-on-accent);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
}

.blk-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  padding: 0 calc(var(--ds-space-unit) * 1);
  color: var(--ds-color-text-muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  user-select: none;
}

.blk-paragraph {
  color: var(--ds-color-text);
  font-size: 1rem;
  line-height: 1.75;
  max-width: var(--measure-narrow);
  margin-inline: auto;
  margin-bottom: calc(var(--ds-space-unit) * 3);
}

.blk-paragraph p {
  margin: 0 0 calc(var(--ds-space-unit) * 2);
  color: var(--ds-color-text);
}

.blk-paragraph p:last-child {
  margin-bottom: 0;
}

.blk-paragraph strong {
  color: var(--ds-color-heading);
  font-weight: 600;
}

.blk-paragraph a,
.blk-paragraph a[href^="mailto:"],
.blk-contact-info__item a,
.blk-contact-info__item a[href^="mailto:"] {
  color: var(--ds-color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blk-paragraph a:hover,
.blk-contact-info__item a:hover {
  color: var(--ds-color-accent-hover);
}

.blk-post-content {
  color: var(--ds-color-text);
}

.blk-post-content a {
  color: var(--ds-color-accent);
  text-underline-offset: 2px;
}

.blk-post-content a:hover {
  color: var(--ds-color-accent-hover);
}

.blk-post-content h2,
.blk-post-content h3 {
  color: var(--ds-color-heading);
}

.blk-post-content table,
.blk-paragraph table {
  width: 100%;
  border-collapse: collapse;
  margin: calc(var(--ds-space-unit) * 3) 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ds-color-text);
}

.blk-post-content th,
.blk-post-content td,
.blk-paragraph th,
.blk-paragraph td {
  padding: calc(var(--ds-space-unit) * 1.5) calc(var(--ds-space-unit) * 2);
  border: 1px solid var(--ds-color-border);
  text-align: left;
  vertical-align: top;
}

.blk-post-content th,
.blk-paragraph th {
  background: color-mix(in srgb, var(--ds-color-border) 35%, var(--ds-color-surface));
  color: var(--ds-color-heading);
  font-weight: 600;
}

.blk-post-content tbody tr:nth-child(even),
.blk-paragraph tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--ds-color-surface-raised) 55%, transparent);
}

.blk-post-content table a,
.blk-paragraph table a {
  color: var(--ds-color-accent);
}

.blk-contact-info {
  max-width: var(--measure-narrow);
  margin: calc(var(--ds-space-unit) * 4) auto;
  color: var(--ds-color-text);
}

.blk-contact-info__item {
  margin: 0 0 calc(var(--ds-space-unit) * 2);
  color: var(--ds-color-text-muted);
  line-height: 1.6;
}

.blk-contact-info__item strong {
  color: var(--ds-color-heading);
  font-weight: 600;
}

.blk-contact-form {
  max-width: var(--measure-narrow);
  margin: calc(var(--ds-space-unit) * 6) auto 0;
  padding-top: calc(var(--ds-space-unit) * 5);
  border-top: 1px solid var(--ds-color-border);
  color: var(--ds-color-text);
}

.blk-contact-form__title {
  margin: 0 0 calc(var(--ds-space-unit) * 2);
  font-family: var(--ds-font-display);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ds-color-heading);
}

.blk-contact-form__desc {
  margin: 0 0 calc(var(--ds-space-unit) * 4);
  color: var(--ds-color-text-muted);
  line-height: 1.7;
  font-size: 0.975rem;
}

.blk-contact-form__desc p {
  margin: 0;
  color: var(--ds-color-text-muted);
}

.blk-contact-form__form {
  display: flex;
  flex-direction: column;
  gap: calc(var(--ds-space-unit) * 3);
  max-width: 32.5rem;
}

.blk-contact-form__field {
  display: flex;
  flex-direction: column;
  gap: calc(var(--ds-space-unit) * 1);
  margin: 0;
  width: 100%;
}

.blk-contact-form__field span {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ds-color-heading);
}

.blk-contact-form__field input,
.blk-contact-form__field textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: var(--touch-min);
  padding: calc(var(--ds-space-unit) * 1.5) calc(var(--ds-space-unit) * 2);
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-md);
  font: inherit;
  line-height: 1.5;
  background: var(--ds-color-surface-raised);
  color: var(--ds-color-text);
  transition:
    border-color var(--ds-motion-duration) var(--ds-motion-ease),
    box-shadow var(--ds-motion-duration) var(--ds-motion-ease);
}

.blk-contact-form__field textarea {
  min-height: 140px;
  resize: vertical;
}

.blk-contact-form__field input:focus,
.blk-contact-form__field textarea:focus {
  outline: none;
  border-color: var(--ds-color-accent);
  box-shadow: var(--focus-ring);
}

.blk-contact-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: var(--touch-min);
  margin-top: calc(var(--ds-space-unit) * 1);
  padding: calc(var(--ds-space-unit) * 1.5) calc(var(--ds-space-unit) * 4);
  border: none;
  border-radius: var(--ds-radius-sm);
  background: var(--ds-color-accent);
  color: var(--ds-color-on-accent);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background-color var(--ds-motion-duration) var(--ds-motion-ease),
    box-shadow var(--ds-motion-duration) var(--ds-motion-ease);
}

.blk-contact-form__submit:hover {
  background: var(--ds-color-accent-hover);
}

.blk-contact-form__submit:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.blk-contact-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.blk-contact-form__status--ok {
  color: #15803d;
}

.blk-contact-form__status--err {
  color: #b91c1c;
}

@media (max-width: 767px) {
  .blk-contact-form__submit {
    width: 100%;
  }
}

/* ── 13. Mobile nav drawer ── */
.nav-drawer__close {
  display: none;
}

@media (max-width: 767px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-header__bar {
    display: grid;
    grid-template-columns: var(--touch-min) 1fr;
    align-items: center;
  }

  .nav-toggle {
    grid-column: 1;
    z-index: var(--z-toggle);
  }

  .logo {
    grid-column: 2;
    justify-self: center;
    text-align: center;
  }

  .nav-drawer {
    position: fixed;
    inset: 0;
    z-index: var(--z-drawer);
    pointer-events: none;
    overflow: hidden;
    margin-left: 0;
  }

  .nav-drawer__backdrop {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(15, 22, 35, 0.52);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--ds-motion-duration) var(--ds-motion-ease),
      visibility var(--ds-motion-duration) var(--ds-motion-ease);
  }

  body.nav-open .nav-drawer__backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-drawer__panel {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 88vw);
    padding:
      calc(env(safe-area-inset-top, 0px) + var(--touch-min) + var(--ds-space-unit))
      calc(var(--ds-space-unit) * 3)
      calc(env(safe-area-inset-bottom, 0px) + var(--ds-space-unit) * 4);
    background: var(--ds-color-surface-raised);
    box-shadow: var(--ds-shadow-lg);
    transform: translateX(100%);
    visibility: hidden;
    transition:
      transform var(--ds-motion-duration) var(--ds-motion-ease),
      visibility var(--ds-motion-duration) var(--ds-motion-ease);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body.nav-open .nav-drawer__panel {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    width: var(--touch-min);
    height: var(--touch-min);
    margin-bottom: calc(var(--ds-space-unit) * 2);
    padding: 0;
    border: none;
    border-radius: var(--ds-radius-sm);
    background: transparent;
    color: var(--ds-color-heading);
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color var(--ds-motion-duration) var(--ds-motion-ease);
  }

  .nav-drawer__close:hover {
    background: color-mix(in srgb, var(--ds-color-border) 40%, transparent);
  }

  .nav-drawer__close:active {
    transform: scale(0.96);
  }

  .nav-drawer__close svg {
    width: 20px;
    height: 20px;
  }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: calc(var(--ds-space-unit) * 0.5);
  }

  .site-nav a {
    width: 100%;
    justify-content: flex-start;
    padding: calc(var(--ds-space-unit) * 1.5) calc(var(--ds-space-unit) * 2);
  }

  .blk-hero .blk-btn {
    width: 100%;
  }

  .blk-media-text .blk-btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }

  .footer-social {
    align-items: center;
    width: 100%;
  }

  .footer-social__icons {
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-header-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: calc(var(--ds-space-unit) * 2);
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: clamp(calc(var(--ds-space-unit) * 3), 4vw, calc(var(--ds-space-unit) * 6));
  }

  .site-header {
    flex: 0 0 auto;
  }

  .site-header__bar.container {
    max-width: none;
    padding-inline: 0;
  }

  .nav-drawer {
    flex: 1 1 auto;
    justify-content: flex-end;
    margin-left: auto;
  }
}

/* ── 14. Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .blk-post-card:hover {
    transform: none;
  }
}
