/*
 * paeveul.css — Design token foundation + all utility classes
 * Source: paeveul-shared.jsx + page-shell.jsx (claude-design-revamp-202605231730)
 * Do NOT edit token values directly — all values trace back to TOKENS in paeveul-shared.jsx
 */

/* ─── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Outfit:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Newsreader:wght@500;600&display=swap');

/* ─── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
  --pv-bg:        #0D0F14;
  --pv-bg-alt:    #111318;
  --pv-card:      #161A22;
  --pv-card-hi:   #1B2030;
  --pv-text:      #E8EAF0;
  --pv-muted:     #8B93A8;
  --pv-border:    #252A36;
  --pv-border-hi: #2F3645;
  --pv-cyan:      #00E5FF;
  --pv-amber:     #F5A623;
}

/* ─── Reset & Base ──────────────────────────────────────────────────────────── */
html, body {
  margin: 0;
  padding: 0;
  background: var(--pv-bg);
  color: var(--pv-text);
  font-family: 'Outfit', system-ui, sans-serif;
}
body { min-height: 100vh; overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }
a { color: inherit; }
-webkit-font-smoothing: antialiased;

/* ─── Global Utility Classes (from paeveul-shared.jsx) ─────────────────────── */

.pv-root {
  font-family: 'Outfit', system-ui, sans-serif;
  color: var(--pv-text);
  background: var(--pv-bg);
  -webkit-font-smoothing: antialiased;
}
.pv-root * { box-sizing: border-box; }

.pv-grotesk {
  font-family: 'Space Grotesk', 'Outfit', sans-serif;
  letter-spacing: -0.01em;
}

/* Nav wordmark logo */
.pv-logo-wordmark {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.pv-logo-initial {
  color: var(--pv-cyan);
}
.pv-logo-rest {
  color: var(--pv-text);
}

.pv-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pv-cyan);
}

.pv-eyebrow-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--pv-muted);
}

.pv-link {
  color: var(--pv-text);
  text-decoration: none;
  transition: color .15s;
}
.pv-link:hover { color: var(--pv-cyan); }

/* Buttons */
.pv-btn-amber {
  background: var(--pv-amber);
  color: #1a1206;
  border: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: filter .15s, transform .1s;
  text-decoration: none;
  display: inline-block;
}
.pv-btn-amber:hover { filter: brightness(1.08); }
.pv-btn-amber:active { transform: translateY(1px); }

.pv-btn-ghost {
  background: transparent;
  color: var(--pv-text);
  border: 1px solid var(--pv-border);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, color .15s;
  text-decoration: none;
  display: inline-block;
}
.pv-btn-ghost:hover {
  border-color: var(--pv-cyan);
  color: var(--pv-cyan);
}

/* Cards */
.pv-card {
  background: var(--pv-card);
  border: 1px solid var(--pv-border);
  border-radius: 10px;
  transition: border-color .2s, transform .2s;
}
.pv-card:hover { border-color: var(--pv-cyan); }

/* Dividers */
.pv-divider { height: 1px; background: var(--pv-border); }
.pv-cyan-rule { width: 24px; height: 1px; background: var(--pv-cyan); }

/* Grid dot background overlay */
.pv-grid-bg {
  background-image: radial-gradient(circle at 1px 1px, rgba(139,147,168,0.10) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Form elements */
.pv-input {
  background: var(--pv-bg);
  border: 1px solid var(--pv-border);
  color: var(--pv-text);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  padding: 14px 16px;
  border-radius: 8px;
  width: 100%;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.pv-input:focus {
  border-color: var(--pv-cyan);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.12);
}
.pv-input::placeholder { color: var(--pv-muted); }

.pv-label {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  color: var(--pv-muted);
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

/* Filter / tag chips */
.pv-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--pv-border);
  border-radius: 999px;
  font-size: 12px;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--pv-muted);
  cursor: pointer;
  transition: all .15s;
}
.pv-chip:hover,
.pv-chip.is-active {
  border-color: var(--pv-cyan);
  color: var(--pv-cyan);
}

/* FAQ accordion */
.pv-faq-item {
  border-top: 1px solid var(--pv-border);
  transition: background .15s;
}
.pv-faq-item:last-child { border-bottom: 1px solid var(--pv-border); }

.pv-faq-q {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: 'Space Grotesk', sans-serif;
  padding: 22px 0;
  font-size: 17px;
  font-weight: 500;
  user-select: none;
}
.pv-faq-q:hover { color: var(--pv-cyan); }

.pv-faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.pv-faq-body p {
  margin: 0;
  padding-bottom: 22px;
  color: var(--pv-muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 640px;
}
.pv-faq-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  position: relative;
}
.pv-faq-icon-h {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--pv-muted);
}
.pv-faq-icon-v {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--pv-muted);
  transition: transform .2s;
}

/* Typewriter rotating word */
.pv-rot {
  display: inline-block;
  vertical-align: baseline;
  white-space: pre;
}
.pv-rot-caret {
  display: inline-block;
  width: 0.55ch;
  height: 0.95em;
  background: currentColor;
  vertical-align: -0.08em;
  margin-left: 2px;
  animation: pv-blink 1s steps(2) infinite;
}

/* Inline blinking cursor */
.pv-caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  background: var(--pv-cyan);
  vertical-align: text-bottom;
  margin-left: 4px;
  animation: pv-blink 1s steps(2) infinite;
}

/* Pulse dot */
.pv-pulse-dot { animation: pv-pulse 1.8s ease-in-out infinite; }

/* Scanline overlay */
.pv-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, rgba(0,229,255,0.06), transparent);
  pointer-events: none;
  animation: pv-scan 5s linear infinite;
}

/* ─── Keyframe Animations ───────────────────────────────────────────────────── */
@keyframes pv-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

@keyframes pv-scan {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

@keyframes pv-blink {
  0%,  49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ─── Page Shell (from page-shell.jsx) ─────────────────────────────────────── */

/* Layout */
.pg-wrap {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 80px;
}

.pg-section { padding: 96px 0; }
.pg-section + .pg-section { border-top: 1px solid var(--pv-border); }

.pg-grid-bg {
  background-image: radial-gradient(circle at 1px 1px, rgba(139,147,168,0.10) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Header */
.pg-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(13,15,20,0.78);
  border-bottom: 1px solid var(--pv-border);
}
.pg-header-inner {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 22px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
}

/* Nav */
.pg-nav { display: flex; gap: 30px; }
.pg-nav a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--pv-text);
  transition: color .15s;
  position: relative;
  padding: 6px 0;
}
.pg-nav a:hover { color: var(--pv-cyan); }
.pg-nav a.is-active { color: var(--pv-cyan); }
.pg-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -19px;
  height: 2px;
  background: var(--pv-cyan);
}

/* Status badge (header) */
.pg-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--pv-muted);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.06em;
}

/* Hamburger */
.pg-hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--pv-border);
  background: var(--pv-card);
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}
.pg-hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--pv-text);
  transition: transform .2s, opacity .2s;
}

/* Mobile menu */
.pg-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--pv-bg-alt);
  border-bottom: 1px solid var(--pv-border);
  padding: 16px 20px 24px;
}
.pg-mobile-menu.open { display: block; }
.pg-mobile-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--pv-border);
  color: var(--pv-text);
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 500;
}
.pg-mobile-menu a:last-of-type { border-bottom: none; }

/* Page hero */
.pg-hero { padding: 88px 0 72px; position: relative; }
.pg-hero-grid { position: absolute; inset: 0; opacity: 0.45; }
.pg-hero-glow {
  position: fixed;
  top: -200px;
  right: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,229,255,0.094), transparent 60%);
  pointer-events: none;
}
.pg-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.pg-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 72px;
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0;
}
.pg-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--pv-muted);
  max-width: 620px;
  margin: 22px 0 0;
}

/* Footer */
.pg-footer {
  border-top: 1px solid var(--pv-border);
  padding: 56px 0 32px;
  background: var(--pv-bg);
}
.pg-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.pg-footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pv-muted);
  margin: 0 0 16px;
}
.pg-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pg-footer-col a {
  font-size: 14px;
  text-decoration: none;
  color: var(--pv-text);
  transition: color .15s;
}
.pg-footer-col a:hover { color: var(--pv-cyan); }
.pg-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--pv-border);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  color: var(--pv-muted);
  letter-spacing: 0.04em;
}

/* ─── Responsive Breakpoints ────────────────────────────────────────────────── */
@media (max-width: 1147px) {
  .pg-wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
  .pg-header-inner {
    padding: 14px 20px;
  }
  .pg-section { padding: 64px 0; }
  .pg-nav { display: none; }
  .pg-hamburger { display: inline-flex; }
  .pg-header .pv-btn-amber { display: none; }
  .pg-status { display: none; }
  .pg-mobile-menu.open { display: block; }
  .pg-title { font-size: 44px; }
  .pg-lede { font-size: 16px; }
  .pg-hero { padding: 56px 0 40px; }
  .pg-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .pg-footer-bottom {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .pg-footer-grid { grid-template-columns: 1fr; }
}

/* ─── Browser Mock Placeholder (shared: portfolio + blog) ───────────────── */
.pv-bmock {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--pv-border);
  background: var(--pv-bg);
  width: 100%;
}
.pv-bmock-bar {
  background: var(--pv-bg-alt);
  border-bottom: 1px solid var(--pv-border);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pv-bmock-dots {
  display: flex;
  gap: 5px;
  flex: 0 0 auto;
}
.pv-bmock-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--pv-border-hi);
}
.pv-bmock-url {
  font-size: 10px;
  color: var(--pv-muted);
  letter-spacing: 0.04em;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--pv-border);
  border-radius: 4px;
  padding: 3px 10px;
  flex: 1;
  font-family: 'Space Grotesk', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pv-bmock-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.pv-bmock-hero {
  height: 52px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--pv-card-hi), var(--pv-card));
  border: 1px solid var(--pv-border);
  margin-bottom: 4px;
}
.pv-bmock-line {
  height: 7px;
  border-radius: 2px;
  background: var(--pv-border);
}
.pv-bmock-block {
  height: 34px;
  border-radius: 4px;
  background: var(--pv-card);
  border: 1px solid var(--pv-border);
  margin-top: 4px;
}
.pv-bmock-row {
  display: flex;
  gap: 7px;
}
.pv-bmock-row .pv-bmock-block {
  flex: 1;
  height: 28px;
  margin-top: 0;
}
.pv-bmock-code-line {
  height: 6px;
  border-radius: 2px;
  background: rgba(0,229,255,0.12);
}

@media (max-width: 380px) {
  .pg-wrap {
    padding-left: 14px;
    padding-right: 14px;
  }
  .pg-header-inner {
    padding: 12px 14px;
    gap: 12px;
  }
  .pg-title { font-size: clamp(22px, 7vw, 27px); line-height: 1.12; }
  .pg-lede { font-size: 14px; }
  .pg-section { padding: 48px 0; }
  .pg-footer-grid { gap: 24px; }
  .pg-footer-bottom { font-size: 11px; letter-spacing: 0.02em; }
  .pv-faq-q { font-size: 15px; padding: 18px 0; gap: 10px; }
  .pv-faq-body p { font-size: 14px; }
  .pg-legal-nav a,
  .pg-legal-sep { font-size: 11px; letter-spacing: 0.02em; }
}

/* ─── Blog Cards (shared: blog listing + article related sections) ──────── */

.bl-cat-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--pv-cyan);
  color: var(--pv-cyan);
  font-size: 11px;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.1em;
}

/* Post grid */
.bl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bl-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.bl-card-img {
  padding: 0;
  background: var(--pv-card);
  border-bottom: 1px solid var(--pv-border);
  display: block;
  overflow: hidden;
}

.bl-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 4px 4px 0 0;
  background: var(--pv-card);
}

.bl-featured-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 8px;
  background: var(--pv-card);
  max-height: 260px;
}
.bl-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.bl-card-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--pv-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (min-width: 769px) and (max-width: 1147px) {
  .bl-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1147px) {
  .bl-grid { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .bl-card-body { padding: 16px 18px 18px; }
}

/* ─── Article Detail Pages ─────────────────────────────────────────────────── */

/* Article hero section */
.ar-hero {
  padding: 56px 0 48px;
  position: relative;
  border-bottom: 1px solid var(--pv-border);
}

/* Breadcrumb */
.ar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.ar-breadcrumb-link {
  color: var(--pv-muted);
  text-decoration: none;
  transition: color .15s;
}
.ar-breadcrumb-link:hover { color: var(--pv-cyan); }
.ar-breadcrumb-sep { color: var(--pv-border-hi); }
.ar-breadcrumb-current {
  color: var(--pv-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 340px;
}

/* Article H1 */
.ar-h1 {
  font-size: 48px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 16px 0 0;
  max-width: 820px;
}
@media (max-width: 1147px) {
  .ar-h1 { font-size: clamp(28px, 7vw, 38px); }
}
@media (max-width: 380px) {
  .ar-h1 { font-size: clamp(24px, 7.5vw, 30px); }
}

/* Meta line (read time + date) */
.ar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--pv-muted);
}
.ar-meta-dot { color: var(--pv-border-hi); }

/* Article body prose wrapper */
.ar-body {
  max-width: 740px;
  padding: 64px 0 80px;
}
@media (max-width: 1147px) {
  .ar-body { padding: 48px 0 64px; }
}
@media (max-width: 380px) {
  .ar-body { padding: 36px 0 48px; }
}

/* Prose typography — all scoped inside .ar-body */
.ar-body p {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: var(--pv-text);
  margin: 0 0 22px;
}

.ar-body h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--pv-text);
  margin: 48px 0 18px;
  padding-top: 20px;
  border-top: 1px solid var(--pv-border);
}

.ar-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--pv-text);
  margin: 36px 0 12px;
}

.ar-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ar-body ul li {
  padding-left: 20px;
  position: relative;
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--pv-text);
}
.ar-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--pv-cyan);
}

.ar-body ol {
  padding-left: 0;
  margin: 0 0 22px;
  counter-reset: ar-ol;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ar-body ol li {
  counter-increment: ar-ol;
  padding-left: 28px;
  position: relative;
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--pv-text);
  list-style: none;
}
.ar-body ol li::before {
  content: counter(ar-ol) '.';
  position: absolute;
  left: 0;
  top: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--pv-cyan);
  line-height: 1.75;
}

.ar-body strong {
  font-weight: 600;
  color: var(--pv-text);
}

.ar-body a {
  color: var(--pv-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,229,255,0.35);
  transition: border-color .15s;
}
.ar-body a:hover {
  border-bottom-color: var(--pv-cyan);
}

.ar-body hr {
  border: none;
  border-top: 1px solid var(--pv-border);
  margin: 40px 0;
}

@media (max-width: 1147px) {
  .ar-body p,
  .ar-body ul li,
  .ar-body ol li { font-size: 15px; }
  .ar-body h2 { font-size: 22px; margin-top: 40px; }
  .ar-body h3 { font-size: 17px; }
}
@media (max-width: 380px) {
  .ar-body p,
  .ar-body ul li,
  .ar-body ol li { font-size: 14px; line-height: 1.7; }
  .ar-body h2 { font-size: 20px; }
  .ar-body h3 { font-size: 16px; }
}

/* Callout / highlight box */
.ar-callout {
  background: rgba(0,229,255,0.06);
  border: 1px solid rgba(0,229,255,0.2);
  border-left: 3px solid var(--pv-cyan);
  border-radius: 6px;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--pv-text);
}
.ar-callout strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pv-cyan);
  display: block;
  margin-bottom: 8px;
}

/* Data table */
.ar-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: 8px;
  border: 1px solid var(--pv-border);
}
.ar-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.ar-table-wrap th {
  background: var(--pv-card);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pv-muted);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--pv-border);
}
.ar-table-wrap td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--pv-border);
  color: var(--pv-text);
  vertical-align: top;
  line-height: 1.5;
}
.ar-table-wrap tr:last-child td { border-bottom: none; }
.ar-table-wrap tr:hover td { background: rgba(255,255,255,0.02); }

/* Image wrapper */
.ar-img-wrap {
  margin: 28px 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--pv-border);
  width: 100%;
  transform: translateZ(0);
}
.ar-img-wrap img {
  width: 100%;
  height: 240px;
  max-width: 560px;
  display: block;
  margin: 0 auto;
  object-fit: cover;
  object-position: top;
}
@media (min-width: 640px) {
  .ar-img-wrap img {
    height: 320px;
  }
}
.ar-img-caption {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--pv-muted);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.04em;
  background: var(--pv-card);
  border-top: 1px solid var(--pv-border);
}

/* Post-article CTA band */
.ar-cta-band {
  border-top: 1px solid var(--pv-border);
  background: var(--pv-bg-alt);
  position: relative;
}
.ar-cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 80px 0;
}
.ar-cta-h2 {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.1;
  margin: 12px 0 0;
  letter-spacing: -0.02em;
}
.ar-cta-lede {
  margin-top: 14px;
  font-size: 15px;
  color: var(--pv-muted);
  line-height: 1.6;
  max-width: 460px;
}
.ar-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  flex: 0 0 auto;
}
@media (max-width: 1147px) {
  .ar-cta-inner { padding: 56px 0; flex-direction: column; align-items: stretch; gap: 24px; }
  .ar-cta-h2 { font-size: 26px; }
  .ar-cta-actions { align-items: stretch; }
  .ar-cta-actions a { text-align: center; display: block; }
}
@media (max-width: 700px) {
  .ar-cta-inner { padding: 48px 0; }
}

/* Illustration placeholders — replaced with real <img> when art is delivered */
.ar-img-wrap.ar-img-placeholder {
  aspect-ratio: 16 / 9;
  overflow: visible;
  background: linear-gradient(135deg, var(--pv-card-hi), var(--pv-card));
  border: 1px solid var(--pv-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 28px 0;
}
.ar-img-wrap.ar-img-placeholder::after {
  content: attr(data-label);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pv-muted);
  pointer-events: none;
  user-select: none;
}

/* Related articles section — marker class, no rules needed */
.ar-related {}

/* Article page: remove top padding on the prose section immediately after the hero.
   .ar-hero + .pg-section is structurally unique to article pages — safe to zero here
   without touching the base pg-section rule used by all other pages. */
.ar-hero + .pg-section { padding-top: 0; }

/* Article image lightbox */
.ar-img-wrap img { cursor: zoom-in; }

.ar-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.ar-lightbox.is-open { opacity: 1; }

.ar-lightbox img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  cursor: default;
}

.ar-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  padding: 4px 8px;
}
.ar-lightbox-close:hover { opacity: 1; }

/* ─── Footer Legal Nav ──────────────────────────────────────────────────────── */

.pg-legal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pg-legal-nav a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--pv-muted);
  text-decoration: none;
  transition: color .15s;
}

.pg-legal-nav a:hover {
  color: var(--pv-cyan);
}

.pg-legal-nav a:focus-visible {
  outline: 2px solid var(--pv-cyan);
  outline-offset: 2px;
  border-radius: 2px;
}

.pg-legal-sep {
  color: var(--pv-border-hi);
  font-size: 12px;
  font-family: 'Space Grotesk', sans-serif;
  user-select: none;
}

/* ─── Legal Pages (privacy / terms / cookies) ──────────────────────────────── */

.lg-hero {
  padding: 56px 0 40px;
  position: relative;
  border-bottom: 1px solid var(--pv-border);
}

.lg-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--pv-text);
  margin: 16px 0 0;
}

.lg-updated {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--pv-muted);
  margin: 10px 0 0;
}

/* Prose body — scoped to legal pages */
.lg-body {
  max-width: 720px;
  padding: 48px 0 80px;
}

.lg-body p {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: var(--pv-text);
  margin: 0 0 22px;
}

.lg-body h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--pv-text);
  margin: 48px 0 18px;
  padding-top: 20px;
  border-top: 1px solid var(--pv-border);
}

.lg-body h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.lg-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--pv-text);
  margin: 36px 0 12px;
}

.lg-body ul,
.lg-body ol {
  margin: 0 0 22px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lg-body ul li {
  padding-left: 20px;
  position: relative;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--pv-text);
  list-style: none;
}

.lg-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--pv-cyan);
}

.lg-body ol {
  counter-reset: lg-ol;
}

.lg-body ol li {
  counter-increment: lg-ol;
  padding-left: 28px;
  position: relative;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--pv-text);
  list-style: none;
}

.lg-body ol li::before {
  content: counter(lg-ol) '.';
  position: absolute;
  left: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--pv-cyan);
  line-height: 1.75;
}

.lg-body strong {
  font-weight: 600;
  color: var(--pv-text);
}

.lg-body a {
  color: var(--pv-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,229,255,0.35);
  transition: border-color .15s;
}

.lg-body a:hover {
  border-bottom-color: var(--pv-cyan);
}

.lg-body hr {
  border: none;
  border-top: 1px solid var(--pv-border);
  margin: 40px 0;
}

/* Responsive — legal pages */
@media (max-width: 1147px) {
  .lg-hero { padding: 40px 0 32px; }
  .lg-title { font-size: clamp(28px, 7vw, 38px); }
  .lg-body { padding: 36px 0 56px; }
  .lg-body p,
  .lg-body ul li,
  .lg-body ol li { font-size: 15px; }
  .lg-body h2 { font-size: 22px; margin-top: 40px; }
  .lg-body h3 { font-size: 17px; }
}

@media (max-width: 380px) {
  .lg-title { font-size: clamp(24px, 7.5vw, 28px); }
  .lg-body { padding: 28px 0 48px; }
  .lg-body p,
  .lg-body ul li,
  .lg-body ol li { font-size: 14px; line-height: 1.7; }
  .lg-body h2 { font-size: 20px; }
  .lg-body h3 { font-size: 16px; }
}
