/* ============================================================
   Modern Maps Pro — Section styles
   Hand-extracted from the inline <style> block in
   /ui_kits/marketing/index-editable.html.

   Differences from the source:
   - Image URLs (hero bg, footer texture, features map preview) read
     from CSS custom properties set via wp_add_inline_style() in
     functions.php. The vars carry the theme-relative URL so the
     CSS source stays slug-independent.
   - The "asym" hero treatment is the default; other treatments
     remain available via .hero[data-treatment="..."] selectors but
     no pattern emits them by default.
   ============================================================ */

/* ---------- MAP STYLE GALLERY (20-specimen showcase pattern) ----------
   Full-width single-column layout — used as a screenshot factory, not a
   polished gallery. Each map fills the viewport so renders crop cleanly. */
.mm-style-gallery .wrap {
  max-width: none;
  margin: 0;
  padding: 0;
}
.mm-style-gallery__head {
  margin-bottom: 56px;
  padding: 0 32px;
  text-align: center;
}
.mm-style-gallery__head .eyebrow {
  font: 600 11px/1 var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 14px;
}
.mm-style-gallery__head .eyebrow::before {
  content: none;
}
.mm-style-gallery__head h2 {
  font: 700 clamp(36px, 4vw, 52px) / 1.05 var(--f-heading);
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0;
  text-wrap: balance;
}
.mm-style-gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}
.mm-style-gallery__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mm-style-gallery__item .modern-maps__container {
  border-radius: 0 !important;
}
.mm-style-gallery__caption {
  padding: 0 32px !important;
}
.mm-style-gallery__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font: 500 13px/1.3 var(--f-body);
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.01em;
  padding: 0 4px;
}
.mm-style-gallery__caption .name {
  flex: 1;
}
.mm-style-gallery__caption .swatches {
  display: inline-flex;
  gap: 4px;
  flex-shrink: 0;
}
.mm-style-gallery__caption .swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- BLOCK DEFAULTS ---------- */
/* Modern Maps block container — paint dark by default so it matches the theme
   surface in the Gutenberg editor (and during the brief JS init delay on the
   front end). Per-instance --modern-maps-base-bg inline styles still win. */
.wp-block-create-block-modern-maps,
.modern-maps__container {
  background: var(--modern-maps-base-bg, var(--dark-bg, #191c22));
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  /* No top/bottom padding per design — content is vertically centered. */
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--mmpro-img-hero, none) center / cover no-repeat;
}
/* default veil = "asym" treatment */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(
    --hero-veil,
    linear-gradient(
      95deg,
      rgba(25, 28, 34, 0.99) 0%,
      rgba(25, 28, 34, 0.96) 30%,
      rgba(25, 28, 34, 0.5) 65%,
      rgba(25, 28, 34, 0.1) 100%
    )
  );
}
/* extra column-dim layer for left-side text */
.hero-veil-2 {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--hero-veil-2, transparent);
}
/* label-quiet: a darkening multiply layer over the labels */
.hero-veil-3 {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--hero-veil-3, transparent);
  mix-blend-mode: var(--hero-veil-3-blend, normal);
}

/* presets — apply via data-treatment="..." or class on .hero */
.hero[data-treatment="asym"] {
  --hero-veil: linear-gradient(
    95deg,
    rgba(25, 28, 34, 0.99) 0%,
    rgba(25, 28, 34, 0.96) 30%,
    rgba(25, 28, 34, 0.5) 65%,
    rgba(25, 28, 34, 0.1) 100%
  );
}
.hero[data-treatment="column"] {
  --hero-veil: linear-gradient(
    105deg,
    rgba(25, 28, 34, 0.85) 0%,
    rgba(25, 28, 34, 0.65) 40%,
    rgba(25, 28, 34, 0.25) 75%,
    rgba(25, 28, 34, 0.1) 100%
  );
  --hero-veil-2: linear-gradient(
    to right,
    #191c22 0%,
    rgba(25, 28, 34, 0.85) 40%,
    rgba(25, 28, 34, 0.4) 60%,
    transparent 100%
  );
}
.hero[data-treatment="both"] {
  --hero-veil: linear-gradient(
    95deg,
    rgba(25, 28, 34, 0.99) 0%,
    rgba(25, 28, 34, 0.94) 28%,
    rgba(25, 28, 34, 0.45) 65%,
    rgba(25, 28, 34, 0.08) 100%
  );
  --hero-veil-2: linear-gradient(
    to right,
    #191c22 0%,
    rgba(25, 28, 34, 0.6) 45%,
    transparent 75%
  );
}
.hero[data-treatment="quiet"] {
  --hero-veil: linear-gradient(
    105deg,
    rgba(25, 28, 34, 0.85) 0%,
    rgba(25, 28, 34, 0.55) 40%,
    rgba(25, 28, 34, 0.2) 75%,
    rgba(25, 28, 34, 0.05) 100%
  );
  --hero-veil-3: rgba(25, 28, 34, 0.45);
  --hero-veil-3-blend: multiply;
}
.hero[data-treatment="spotlight"] {
  --hero-veil: radial-gradient(
    ellipse 55% 80% at 22% 50%,
    rgba(25, 28, 34, 0.97) 0%,
    rgba(25, 28, 34, 0.85) 35%,
    rgba(25, 28, 34, 0.35) 70%,
    rgba(25, 28, 34, 0.05) 100%
  );
}
.hero[data-treatment="none"] {
  --hero-veil: linear-gradient(
    105deg,
    rgba(25, 28, 34, 0.6) 0%,
    rgba(25, 28, 34, 0.35) 50%,
    rgba(25, 28, 34, 0.1) 100%
  );
}

.hero .wrap {
  position: relative;
  width: 100%;
}
.hero .col {
  /* Span the full wide-width container so the headline lines up on the
     left with the features section's "Every detail" heading. */
  max-width: 100%;
  margin: 0;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero h1 {
  font: 700 clamp(48px, 5.4vw, 68px) / 1.04 var(--f-heading);
  letter-spacing: -0.035em;
  margin: 14px 0 0;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: #6ea7ff;
}
.hero .sub {
  font: 400 19px/1.55 var(--f-body);
  color: rgba(255, 255, 255, 0.72);
  max-width: 520px;
}
.hero .ctas {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.hero .ctas .meta {
  font: 500 12px/1.4 var(--f-mono);
  color: rgba(255, 255, 255, 0.45);
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

/* floating coord chip on the map (hidden by default in editable variant) */
.pin-chip {
  position: absolute;
  right: 9%;
  top: 38%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(25, 28, 34, 0.85);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 3;
}
.pin-chip .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6ae1ff;
  box-shadow: 0 0 0 4px rgba(106, 225, 255, 0.2);
}
.pin-chip .text {
  font: 600 12px/1.2 var(--f-heading);
  letter-spacing: -0.005em;
}
.pin-chip .text small {
  display: block;
  font: 500 10px/1 var(--f-mono);
  color: rgba(255, 255, 255, 0.55);
  margin-top: 3px;
}

/* ---------- FEATURE GRID (split: pickable list + map preview) ---------- */
.features {
  background: #1c1f26;
}
.features .split {
  display: grid;
  grid-template-columns: minmax(360px, 420px) 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 56px;
  row-gap: 28px;
  align-items: stretch;
}
.features .lhs-head {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.features .lhs-head h2 {
  font: 700 clamp(36px, 3.6vw, 46px) / 1.05 var(--f-heading);
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.features .pick-list {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.features .rhs {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  width: 100%;
  height: 100%;
}
.pick {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 14px;
  background: #22262e;
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition:
    background 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pick:hover {
  background: #262a33;
}
.pick.active {
  background: rgba(0, 82, 174, 0.1);
  border-color: #0052ae;
}
.pick .ic {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  transition:
    background 200ms,
    color 200ms;
}
.pick.active .ic {
  background: #0052ae;
  color: #fff;
}
.pick .ic svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pick .text .t {
  display: block;
  font: 700 14px/1.2 var(--f-heading);
  letter-spacing: -0.01em;
  color: #fff;
}
.pick .text .s {
  display: block;
  font: 400 13px/1.45 var(--f-body);
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
}

/* RHS map preview — animated chrome driven by features-animation.js.
   Default values (when no --demo-* var is set) match the old static look. */
.features .rhs {
  position: relative;
  overflow: hidden;
  background: #22262e;
  min-height: 480px;
  border-radius: var(--demo-radius, 18px);
  border: var(--demo-border, 1px solid rgba(255, 255, 255, 0.05));
  box-shadow: var(--demo-shadow, 0 24px 80px rgba(0, 0, 0, 0.35));
  transition:
    border-radius 1.8s cubic-bezier(0.4, 0, 0.2, 1),
    border 1.8s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.features .rhs .wp-block-create-block-modern-maps {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: 100%;
}
/* Override the block's inline height:480px so the map fills .rhs flush —
   eliminates the small gap at the bottom when the LHS column is taller. */
.features .rhs .modern-maps__container {
  height: 100% !important;
}

/* Marker stagger — staggered drop when the markers/popups card is active.
   Slower than the original to give the drop more weight; per-marker stagger
   is driven by inline --i:0|1|2 set in the pattern. */
.features .rhs .maplibregl-marker svg {
  opacity: 0;
  transform: translateY(-24px) scale(0.6);
  transform-origin: 50% 100%;
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.features .rhs.show-markers .maplibregl-marker {
  transition-delay: calc(var(--i, 0) * 350ms);
}
.features .rhs.show-markers .maplibregl-marker svg {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: calc(var(--i, 0) * 350ms);
}

/* Soft fade-in for the popup once it opens */
.features .rhs .maplibregl-popup-content {
  animation: mmpro-popup-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: bottom center;
}
@keyframes mmpro-popup-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Decorative block-editor toolbar overlay */
.blk-toolbar {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: rgba(25, 28, 34, 0.85);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  z-index: 2;
  transition: opacity 0.4s ease;
}
.features .rhs[data-state="popups"] .blk-toolbar {
  opacity: 0;
  pointer-events: none;
}
.blk-swatch {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}
/* Swatch defaults match the theme palette colors that drive the color cycle.
   features-animation.js overrides these inline at runtime so the swatches
   always reflect the live palette even if theme.json changes. */
.blk-swatch.s1 {
  background: var(--wp--preset--color--dark-bg-deepest, #14171c);
}
.blk-swatch.s2 {
  background: var(--wp--preset--color--primary, #0052ae);
}
.blk-swatch.s3 {
  background: var(--wp--preset--color--dark-text, #ffffff);
}
.blk-swatch:hover {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}
.blk-swatch.active {
  box-shadow: 0 0 0 2px #fff;
}
.blk-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 4px;
}
.blk-label {
  font: 600 11px/1 var(--f-mono);
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
  padding: 0 8px 0 2px;
}

@media (prefers-reduced-motion: reduce) {
  .features .rhs,
  .features .rhs .wp-block-create-block-modern-maps,
  .features .rhs .maplibregl-marker svg,
  .blk-toolbar,
  .blk-swatch {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- HOW IT WORKS ---------- */
.how {
  background: #191c22;
}
.how .steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  background: #22262e;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 28px 24px;
  position: relative;
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font: 700 14px/1 var(--f-mono);
  color: #6ea7ff;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 18px;
}
.step h3 {
  font: 700 18px/1.2 var(--f-heading);
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.step p {
  font: 400 13px/1.55 var(--f-body);
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 18px;
}
.step .demo {
  background: #14171c;
  border-radius: 8px;
  padding: 12px 14px;
  font: 500 11px/1.5 var(--f-mono);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.step .demo b {
  color: #6ae1ff;
  font-weight: 600;
}

/* ---------- PRICING (compact teaser) ---------- */
.pricing {
  background: #14171c;
  padding: 80px 0;
}
.pricing .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 82, 174, 0.15);
  border: 1px solid rgba(0, 82, 174, 0.4);
  border-radius: 999px;
  font: 600 11px/1 var(--f-mono);
  letter-spacing: 0.12em;
  color: #6ea7ff;
  text-transform: uppercase;
}
.pricing .chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ea7ff;
  box-shadow: 0 0 10px rgba(110, 167, 255, 0.7);
}

/* The .pv-* groups switch via data-pricing-variant on .pricing.
   Default variant is "tiers" (the 2-card teaser). */
.pricing .pv {
  display: none;
}
.pricing[data-pricing-variant="line"] .pv-line {
  display: block;
}
.pricing[data-pricing-variant="tiers"] .pv-tiers {
  display: block;
}
.pricing[data-pricing-variant="band"] .pv-band {
  display: block;
}
/* If no data attr is set, show tiers by default */
.pricing:not([data-pricing-variant]) .pv-tiers {
  display: block;
}

/* Variant: line */
.pv-line-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
  background: #1c1f26;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  flex-wrap: wrap;
}
.pv-line-text {
  flex: 1;
  min-width: 280px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.pv-line-text strong {
  font: 700 22px/1 var(--f-heading);
  letter-spacing: -0.02em;
  color: #fff;
}
.pv-line-text span {
  font: 400 14px/1.5 var(--f-body);
  color: rgba(255, 255, 255, 0.55);
}

/* Variant: tiers */
.pv-tiers {
  display: none;
  flex-direction: column;
  gap: 56px;
}
.pricing[data-pricing-variant="tiers"] .pv-tiers,
.pricing:not([data-pricing-variant]) .pv-tiers {
  display: flex;
}
.pv-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.pv-head h2 {
  font: 700 clamp(36px, 3.6vw, 46px) / 1.05 var(--f-heading);
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.pv-head p {
  font: 400 16px/1.6 var(--f-body);
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  max-width: 500px;
}
.pv-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: stretch;
}
.pv-row.pv-row-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  gap: 16px;
}
.pv-btn {
  /* Block-level flex (instead of inherited inline-flex from .btn) so
     width: 100% behaves predictably inside the flex-column card. */
  display: flex;
  box-sizing: border-box;
  width: 100%;
  justify-content: center;
  margin-top: 10px;
  text-decoration: none;
}
.pv-btn:hover,
.pv-btn:focus,
.pv-btn:active {
  text-decoration: none;
}
/* Tone down the primary button's glow inside cards so the shadow
   doesn't visually extend past the card edge. */
.pv-card .btn-primary {
  box-shadow: 0 2px 14px rgba(0, 82, 174, 0.32);
}
.pv-compare {
  font: 600 13px/1 var(--f-mono);
  letter-spacing: 0.04em;
  color: #6ea7ff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 150ms;
}
.pv-compare:hover {
  color: #fff;
}
.pv-card {
  background: #1c1f26;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  /* Slightly extra horizontal padding so the full-width button at the
     bottom keeps comfortable breathing room from the card's visual border. */
  padding: 28px 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.pv-card .pv-name {
  margin-bottom: 14px;
  display: block;
}
.pv-card .pv-price {
  margin-bottom: 14px;
  display: flex;
}
.pv-card .pv-meta {
  margin-bottom: 24px;
  display: block;
}
.pv-card .pv-btn {
  margin-top: auto;
  box-sizing: border-box;
}
.pv-card.pv-featured {
  background: linear-gradient(180deg, rgba(0, 82, 174, 0.12) 0%, #1c1f26 100%);
  border-color: rgba(0, 82, 174, 0.5);
}
.pv-tag {
  position: absolute;
  top: -10px;
  right: 18px;
  background: #0052ae;
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font: 600 10px/1 var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pv-name {
  font: 600 14px/1 var(--f-body);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}
.pv-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.pv-price strong {
  font: 700 38px/1 var(--f-heading);
  letter-spacing: -0.03em;
  color: #fff;
}
.pv-price span {
  font: 500 13px/1 var(--f-mono);
  color: rgba(255, 255, 255, 0.5);
}
.pv-meta {
  font: 400 13px/1.4 var(--f-body);
  color: rgba(255, 255, 255, 0.55);
}
.pv-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.pv-fineprint {
  font: 500 12px/1 var(--f-mono);
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
}

/* Variant: band */
.pv-band-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 48px 56px;
  background: linear-gradient(135deg, rgba(0, 82, 174, 0.18) 0%, #1c1f26 70%);
  border: 1px solid rgba(0, 82, 174, 0.35);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 82, 174, 0.12);
}
.pv-band-left h2 {
  font: 700 clamp(34px, 3.2vw, 42px) / 1.1 var(--f-heading);
  letter-spacing: -0.03em;
  margin: 16px 0 12px;
  text-wrap: balance;
  color: #fff;
}
.pv-band-left p {
  font: 400 15px/1.55 var(--f-body);
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}
.pv-band-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}
.pv-band-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.pv-band-num {
  font: 700 56px/1 var(--f-heading);
  letter-spacing: -0.04em;
  color: #fff;
}
.pv-band-per {
  font: 500 14px/1 var(--f-mono);
  color: rgba(255, 255, 255, 0.5);
}
.pv-band-meta {
  font: 500 12px/1 var(--f-mono);
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
}

/* ---------- FAQ ---------- */
.faq {
  background: #1c1f26;
}
.faq .list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq details {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 22px 4px;
}
.faq details:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.faq summary {
  font: 600 18px/1.3 var(--f-heading);
  letter-spacing: -0.015em;
  color: #fff;
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .plus {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font: 400 18px/1 var(--f-mono);
  flex-shrink: 0;
  transition:
    transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 150ms;
}
.faq details[open] summary .plus {
  transform: rotate(45deg);
  background: #0052ae;
  color: #fff;
}
.faq details > p {
  font: 400 15px/1.65 var(--f-body);
  color: rgba(255, 255, 255, 0.65);
  margin: 16px 0 0;
  max-width: 620px;
}

/* Animate the <details> reveal. Uses ::details-content + interpolate-size
   so block-size can transition to/from `auto` without a height-measuring JS
   shim. Duration matches the brand --t-2 token ("card lift, row hover-expand")
   and the canonical --ease-out — snappy, never bouncy.

   The <p> gets a small translateY so the reveal has a visible direction
   instead of a pure fade (which animation-best-practices.md flags as flat).
   Browsers without ::details-content support fall back to the native instant
   toggle; the rotating + glyph still animates everywhere. */
.faq details::details-content {
  block-size: 0;
  overflow: clip;
  opacity: 0;
  transition:
    content-visibility var(--t-2) allow-discrete,
    block-size var(--t-2) var(--ease-out),
    opacity var(--t-2) var(--ease-out);
}
.faq details[open]::details-content {
  block-size: auto;
  opacity: 1;
}
.faq details > p {
  transform: translateY(-4px);
  transition: transform var(--t-2) var(--ease-out);
}
.faq details[open] > p {
  transform: translateY(0);
}

@supports (interpolate-size: allow-keywords) {
  .faq {
    interpolate-size: allow-keywords;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq details::details-content,
  .faq details > p,
  .faq summary .plus {
    transition: none;
  }
}

/* ---------- BIG CTA (centered, vertical) ---------- */
.cta-band {
  position: relative;
  background: radial-gradient(
      ellipse 70% 100% at 50% 50%,
      rgba(106, 225, 255, 0.1) 0%,
      transparent 65%
    ),
    linear-gradient(180deg, #0a4f9e 0%, #083e80 50%, #062f63 100%);
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 12% 50%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 25%
    ),
    radial-gradient(
      circle at 88% 50%,
      rgba(255, 255, 255, 0.04) 0%,
      transparent 25%
    );
  pointer-events: none;
}
.cta-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 100%
  );
}
.cta-band .wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 88px 32px 96px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.cta-band .cta-mark {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  display: block;
}
.cta-band h2 {
  font: 700 clamp(36px, 3.4vw, 44px) / 1.1 var(--f-heading);
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  color: #fff;
  text-wrap: balance;
}
.cta-band .cta-sub {
  font: 400 16px/1.55 var(--f-body);
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 32px;
  max-width: 420px;
  text-wrap: balance;
}
.cta-band .ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}
.cta-band .cta-domain {
  font: 500 13px/1 var(--f-mono);
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.02em;
}

/* ---------- FOOTER ---------- */
.ft {
  position: relative;
  padding: 88px 0 32px;
  background: #14171c;
  overflow: hidden;
}
.ft::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--mmpro-img-texture, none) center / cover no-repeat;
  opacity: 0.06;
  pointer-events: none;
}
.ft .grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.ft h4 {
  font: 600 11px/1 var(--f-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 18px;
}
.ft ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ft a,
.ft a:hover,
.ft a:focus,
.ft a:active {
  text-decoration: none;
}
.ft a {
  font: 400 14px/1.4 var(--f-body);
  color: rgba(255, 255, 255, 0.72);
}
.ft a:hover {
  color: #fff;
}
.ft .brand .lockup,
.ft .brand .wp-block-site-logo img {
  height: 22px;
  width: auto;
  margin-bottom: 18px;
}
.ft .brand p {
  font: 400 14px/1.6 var(--f-body);
  color: rgba(255, 255, 255, 0.5);
  max-width: 320px;
  margin: 0 0 18px;
}
.ft .brand .social {
  display: flex;
  gap: 8px;
}
.ft .brand .social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition:
    background 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    color 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ft .brand .social a:hover {
  background: rgba(0, 82, 174, 0.15);
  border-color: rgba(110, 167, 255, 0.35);
  color: #6ea7ff;
}
.ft .brand .social a svg {
  width: 16px;
  height: 16px;
}
.ft .bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 500 12px/1 var(--f-mono);
  color: rgba(255, 255, 255, 0.4);
}
.ft .bottom .links {
  display: flex;
  gap: 18px;
}

/* ---------- BLOG ARCHIVE — "Atlas Index" wrapper ----------
   Scope link-decoration reset to the field-notes shell. WP core's
   block stylesheet underlines all links by default; the archive design
   uses color/weight changes for hover affordance instead. */
.field-notes a,
.field-notes a:hover,
.field-notes a:focus,
.field-notes a:active {
  text-decoration: none;
}

/* ---------- BLOG ARCHIVE — "Atlas Index" ----------
   The /field-notes/ archive: a cartographic directory with a left-rail
   year/category nav, monospace date prefixes, hover-expanded excerpts,
   and a dot-map texture in the header.

   Differences from the brand source:
   - Dropped 3 unused hero treatments (topographic, plate, graticule). Only
     the chosen `quiet` variant remains, baked directly into .atlas-head::before.
   - Dropped the floating Tweaks panel and its localStorage script entirely.
   - Image URLs lifted to the same --mmpro-img-* custom properties used by
     the rest of the theme so paths stay slug-independent.
   ------------------------------------------------------- */

/* HEADER */
.atlas-head {
  position: relative;
  padding: 128px 0 80px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.atlas-head::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--mmpro-img-dot-map, none) center top/1600px auto no-repeat;
  opacity: 0.22;
  mask-image: radial-gradient(
    ellipse 95% 100% at 50% 35%,
    #000 0%,
    rgba(0, 0, 0, 0.85) 55%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 95% 100% at 50% 35%,
    #000 0%,
    rgba(0, 0, 0, 0.85) 55%,
    transparent 100%
  );
}
.atlas-head .row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
}
.atlas-head h1 {
  font: 700 clamp(44px, 4.6vw, 60px) / 1.05 var(--f-heading);
  letter-spacing: -0.03em;
  margin: 14px 0 14px;
  text-wrap: balance;
}
.atlas-head h1 em {
  font-style: normal;
  color: #6ea7ff;
}
.atlas-head .stats {
  display: flex;
  align-items: center;
  gap: 18px;
  font: 500 12px/1 var(--f-mono);
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
}
.atlas-head .stats .dot {
  color: rgba(255, 255, 255, 0.2);
}
.atlas-head .stats b {
  color: #fff;
  font-weight: 600;
}

.atlas-head .search {
  position: relative;
  width: 320px;
}
.atlas-head .search input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font: 400 14px/1 var(--f-mono);
  color: #fff;
  transition:
    border-color 150ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.atlas-head .search input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.atlas-head .search input:focus {
  outline: none;
  border-color: rgba(110, 167, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(0, 82, 174, 0.15);
}
.atlas-head .search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.4);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.atlas-head .search .kbd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font: 500 10px/1 var(--f-mono);
  color: rgba(255, 255, 255, 0.45);
  padding: 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
}

/* ATLAS LAYOUT */
.atlas {
  padding: 48px 0 96px;
}
.atlas .grid-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}

/* LEFT RAIL */
.rail {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
/* WP admin bar nudges sticky elements down by its height. */
.admin-bar .rail {
  top: 132px;
}
@media screen and (max-width: 782px) {
  .admin-bar .rail {
    top: 146px;
  }
}
.rail-section h4 {
  font: 600 10px/1 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 14px;
}
.rail-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.rail-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font: 500 13px/1 var(--f-body);
  color: rgba(255, 255, 255, 0.65);
  transition: color 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.rail-list a:hover {
  color: #fff;
}
.rail-list a.active {
  color: #fff;
  font-weight: 600;
}
.rail-list a.active::before {
  content: "◉";
  margin-right: 8px;
  color: #6ea7ff;
}
.rail-list .count {
  font: 500 11px/1 var(--f-mono);
  color: rgba(255, 255, 255, 0.35);
}
.rail-list a.active .count {
  color: rgba(255, 255, 255, 0.6);
}

/* category swatches — slug-driven; default falls back to blue */
.rail-cat a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cat-color, #6ea7ff);
  margin-right: 10px;
  display: inline-block;
}
.rail-cat a.active::before {
  /* When active, the ◉ glyph supplied by .rail-list a.active::before
     replaces the swatch dot. Hide the dot to avoid double-marker. */
  display: none;
}
.rail-cat a[data-cat="guides"] {
  --cat-color: #6ae1ff;
}
.rail-cat a[data-cat="comparisons"] {
  --cat-color: #c4b5fd;
}
.rail-cat a[data-cat="releases"] {
  --cat-color: #ffdeac;
}
.rail-cat a[data-cat="notebook"] {
  --cat-color: #6ea7ff;
}

.rail .subscribe-mini {
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}
.rail .subscribe-mini h5 {
  font: 600 15px/1.3 var(--f-heading);
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 6px;
}
.rail .subscribe-mini p {
  font: 400 12px/1.5 var(--f-body);
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 12px;
}
.rail .subscribe-mini .submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 12px/1 var(--f-heading);
  color: #6ea7ff;
}

/* MAIN */
.atlas .main {
  min-width: 0;
}

.recent-band {
  margin-bottom: 56px;
}
.recent-band h2 {
  font: 700 18px/1 var(--f-heading);
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.recent-band h2 .meta {
  font: 500 11px/1 var(--f-mono);
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
}
.recent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.recent-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 14px;
  background: #22262e;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition:
    transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
  color: inherit;
}
.recent-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
}
.recent-card .mini-thumb {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
}
.recent-card .mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recent-card .mini-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.recent-card .mini-cat {
  font: 600 9px/1 var(--f-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cat-color, #6ea7ff);
  margin-bottom: 2px;
}
.recent-card .mini-title {
  font: 600 14px/1.3 var(--f-heading);
  color: #fff;
  letter-spacing: -0.01em;
  text-wrap: balance;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recent-card .mini-meta {
  margin-top: auto;
  font: 500 10px/1 var(--f-mono);
  color: rgba(255, 255, 255, 0.4);
}

/* INDEX */
.index-group {
  margin-bottom: 40px;
}
.group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
}
.group-head .month {
  font: 700 22px/1 var(--f-heading);
  letter-spacing: -0.015em;
  color: #fff;
}
.group-head .month b {
  font-weight: 700;
}
.group-head .month .y {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 6px;
}
.group-head .count {
  font: 500 11px/1 var(--f-mono);
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
}

.row-list {
  display: flex;
  flex-direction: column;
}
.entry {
  display: grid;
  grid-template-columns: 64px 80px 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 16px 4px 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  color: inherit;
}
.entry:hover,
.entry:focus-within {
  background: rgba(255, 255, 255, 0.02);
}
.entry:hover .e-title,
.entry:focus-within .e-title {
  color: #6ea7ff;
}
.entry:hover .e-arrow,
.entry:focus-within .e-arrow {
  opacity: 1;
  transform: translateX(0);
}

.entry .e-date {
  font: 500 12px/1 var(--f-mono);
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.entry .e-date b {
  color: #fff;
  font-weight: 600;
}
.entry .e-cat {
  font: 600 10px/1 var(--f-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cat-color, #6ea7ff);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.entry .e-cat::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cat-color, #6ea7ff);
}
.entry[data-cat="guides"] {
  --cat-color: #6ae1ff;
}
.entry[data-cat="comparisons"] {
  --cat-color: #c4b5fd;
}
.entry[data-cat="releases"] {
  --cat-color: #ffdeac;
}
.entry[data-cat="notebook"] {
  --cat-color: #6ea7ff;
}

.entry .e-title {
  font: 600 16px/1.3 var(--f-heading);
  letter-spacing: -0.01em;
  color: #fff;
  transition: color 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
  text-wrap: balance;
}
.entry .e-coord {
  font: 500 11px/1 var(--f-mono);
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
}
.entry .e-time {
  font: 500 11px/1 var(--f-mono);
  color: rgba(255, 255, 255, 0.45);
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.entry .e-arrow {
  font: 500 14px/1 var(--f-mono);
  color: #6ea7ff;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Expanded preview revealed on hover/focus.
   The brand handoff originally specified an instant `display: none → block`,
   but the brand CSS tokens reserve `--t-2 (.24s)` labeled "card lift, row
   hover-expand" — the duration was always anticipated. Animating with that
   duration + the canonical `--ease-out` keeps the reveal snappy (still under
   the 0.3s microinteraction ceiling per animation-best-practices.md §1)
   while giving the row a visible direction (translateY → 0) instead of
   fade-only, which the brand guide flags as AI-slop. */
.entry .e-preview {
  grid-column: 3 / span 3;
  grid-row: 2;
  overflow: hidden;
  max-height: 0;
  margin-top: 0;
  padding: 0 14px 0 0;
  opacity: 0;
  transform: translateY(-4px);
  font: 400 14px/1.55 var(--f-body);
  color: rgba(255, 255, 255, 0.6);
  max-width: 720px;
  text-wrap: pretty;
  transition:
    max-height var(--t-2) var(--ease-out),
    margin-top var(--t-2) var(--ease-out),
    padding var(--t-2) var(--ease-out),
    opacity var(--t-2) var(--ease-out),
    transform var(--t-2) var(--ease-out);
}
.entry:hover .e-preview,
.entry:focus-within .e-preview {
  max-height: 240px;
  margin-top: 6px;
  padding: 12px 14px 14px 0;
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .entry .e-preview {
    transition: none;
  }
}

/* PAGINATION */
.archive-foot {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font: 500 12px/1 var(--f-mono);
  color: rgba(255, 255, 255, 0.5);
}
.archive-foot a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font: 600 12px/1 var(--f-heading);
  color: #fff;
  letter-spacing: 0.02em;
  transition:
    background 150ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.archive-foot a:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}
.archive-foot .pages {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.archive-foot .pages .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.55);
  font: 500 12px/1 var(--f-mono);
  letter-spacing: 0.02em;
}
.archive-foot .pages .page-numbers:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.archive-foot .pages .page-numbers.current {
  color: #fff;
  background: rgba(0, 82, 174, 0.2);
  border-color: rgba(110, 167, 255, 0.35);
}
.archive-foot .pages .page-numbers.dots {
  border-color: transparent;
}

/* Empty state */
.atlas .no-results {
  padding: 96px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font: 400 16px/1.55 var(--f-body);
}
.atlas .no-results b {
  color: #fff;
  font-weight: 600;
}

/* sr-only helper for the search label */
.atlas-head .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive — gradual collapse over three stages.
   980px: sidebar rail moves to a horizontal row above the index; the
          recent-band drops 3 → 2 columns. Entry rows keep their full
          5-column anatomy (date · cat · title · coord · time).
   760px: recent-band drops 2 → 1 column; entry rows shed the GPS coord
          (decorative) but keep the category pill.
   560px: entry rows shed the category pill — only date / title / time
          remain. Atlas head stacks separately at 640px below. */
@media (max-width: 980px) {
  .atlas .grid-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .rail {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
  }
  .rail-section {
    flex: 1;
    min-width: 200px;
  }
  .recent-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .recent-grid {
    grid-template-columns: 1fr;
  }
  /* Stack the entry into two rows: meta (date · cat · coord · time) on
     top, title full-width below. Keeps every piece of information
     visible — title finally gets the breathing room it needs at narrow
     widths. */
  .entry {
    grid-template-columns: auto auto auto 1fr auto;
    grid-template-areas:
      "date cat coord . time"
      "title title title title title";
    gap: 8px 12px;
  }
  .entry .e-date  { grid-area: date; }
  .entry .e-cat   { grid-area: cat; }
  .entry .e-coord { grid-area: coord; }
  .entry .e-title { grid-area: title; }
  .entry .e-time  { grid-area: time; }
  .entry .e-preview {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}
@media (max-width: 480px) {
  /* Coord is the most decorative — drop it on phone widths so the meta
     row fits comfortably alongside cat and time. */
  .entry .e-coord {
    display: none;
  }
}
@media (max-width: 640px) {
  .atlas-head {
    padding: 96px 0 56px;
  }
  .atlas-head .row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .atlas-head .search {
    width: 100%;
  }
}

/* ---------- MAP GALLERY — "Atlas Index" ----------
   The /gallery/ archive: a specimen library of all 10 brand presets,
   grouped by palette temperature (Cool / Warm / Neutral). Sticky filter
   bar with palette tabs + search + grid/list toggle. Each card carries
   structured meta (palette swatches + zoom range + city pin + badge).

   Differences from the brand source:
   - The version chip in the top right of the prototype's nav is dropped
     entirely — production reuses the marketing nav.
   - The hero graticule is preserved (CSS-only, no asset).
   - Per-card `--pin` and per-group `--dot` custom properties drive the
     accent colors; values are written inline via the dynamic block.
   - Link-decoration is reset on the gallery shell to match the rest of
     the dark surface (links signal via color/weight, not underline).
   ------------------------------------------------------- */

.gallery a,
.gallery a:hover,
.gallery a:focus,
.gallery a:active {
  text-decoration: none;
}

/* HEAD — graticule overlay, CSS-only. Pinned 88px lat/lng grid at 4%
   white, masked elliptically so the edges fall off naturally. */
.gallery-head {
  position: relative;
  overflow: hidden;
  padding: 88px 0 0;
}
.gallery-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(
    ellipse 95% 90% at 50% 50%,
    #000 0%,
    transparent 80%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 95% 90% at 50% 50%,
    #000 0%,
    transparent 80%
  );
  pointer-events: none;
}
.gallery-head .inner {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}
.gallery-head .row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  padding-bottom: 32px;
}
.gallery-head .eyebrow {
  font: 600 11px/1 var(--f-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6ea7ff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.gallery-head .eyebrow::before {
  content: none;
} /* override global .eyebrow dot */
.gallery-head .eyebrow .glyph {
  color: #6ae1ff;
  font-size: 13px;
}
.gallery-head h1 {
  font: 700 clamp(32px, 5.5vw, 60px) / 1.05 var(--f-heading);
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 22ch;
  text-wrap: balance;
}
.gallery-head h1 em {
  font-style: normal;
  color: #6ea7ff;
}
.gallery-head .stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  font: 500 12px/1 var(--f-mono);
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
  padding-bottom: 8px;
}
.gallery-head .stats .dot {
  color: rgba(255, 255, 255, 0.2);
}
.gallery-head .stats b {
  color: #fff;
  font-weight: 600;
}

/* FILTER BAR — sticky, glass-blurred. Tabs left, search center, layout
   toggle right. Stacks at <760px. */
.gallery .filterbar {
  position: sticky;
  top: 60px;
  z-index: 90;
  background: rgba(25, 28, 34, 0.85);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
/* WP admin bar nudges sticky elements down by its height. */
.admin-bar .gallery .filterbar {
  top: 92px;
}
@media screen and (max-width: 782px) {
  .admin-bar .gallery .filterbar {
    top: 106px;
  }
}
.gallery .filterbar .inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
.gallery .tabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 4px;
}
.gallery .tabs .tab {
  padding: 7px 14px;
  font: 500 12px/1 var(--f-body);
  color: rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  transition: all 150ms var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.gallery .tabs .tab .count {
  font: 500 10px/1 var(--f-mono);
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.06em;
}
.gallery .tabs .tab:hover {
  color: #fff;
}
.gallery .tabs .tab.active {
  background: #fff;
  color: #191c22;
  font-weight: 600;
}
.gallery .tabs .tab.active .count {
  color: rgba(25, 28, 34, 0.5);
}

.gallery .search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 360px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-md, 6px);
  transition: all 150ms var(--ease-out);
  margin: 0;
}
.gallery .search:focus-within {
  border-color: rgba(110, 167, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}
.gallery .search svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
  flex-shrink: 0;
}
.gallery .search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font: 400 13px/1.2 var(--f-body);
  min-width: 0;
}
.gallery .search input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.gallery .search kbd {
  font: 500 10px/1 var(--f-mono);
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.gallery .search .sr-only,
.gallery-head .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gallery .layout-toggle {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-md, 6px);
  padding: 3px;
}
.gallery .layout-toggle button {
  width: 32px;
  height: 28px;
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 150ms var(--ease-out);
}
.gallery .layout-toggle button:hover {
  color: #fff;
}
.gallery .layout-toggle button.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.gallery .layout-toggle svg {
  width: 14px;
  height: 14px;
}

/* INDEX */
.gallery-index {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 32px 32px;
}
.gallery-index .group-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 32px 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 28px;
}
.gallery-index .group-head:first-of-type {
  padding-top: 0;
}
.gallery-index .group-head .gname {
  font: 700 13px/1 var(--f-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.gallery-index .group-head .gname::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot, #6ae1ff);
}
.gallery-index .group-head .gtag {
  font: 400 12px/1 var(--f-body);
  color: rgba(255, 255, 255, 0.45);
}
.gallery-index .group-head .gcount {
  font: 500 11px/1 var(--f-mono);
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.06em;
}

.gallery-index .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
@media (max-width: 1100px) {
  .gallery-index .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  .gallery-index .grid {
    grid-template-columns: 1fr;
  }
}

.gallery .card {
  background: var(--dark-bg-raised);
  border-radius: var(--r-xl, 12px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition:
    transform var(--t-2) var(--ease-out),
    border-color var(--t-2) var(--ease-out),
    box-shadow var(--t-2) var(--ease-out);
  position: relative;
  color: inherit;
  display: block;
}
.gallery .card:hover,
.gallery .card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(110, 167, 255, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.gallery .card .map {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #2a2f38;
}
.gallery .card .map img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The 600ms image scale is the brand's one explicit "graceful" timing
     exception — slower than the standard --t-2 microinteraction so the
     pan reads as cinematic rather than reactive. */
  transition: transform 600ms var(--ease-out);
}
.gallery .card:hover .map img {
  transform: scale(1.02);
}

.gallery .card .badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font: 500 10px/1 var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 8px;
  background: rgba(20, 23, 28, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.8);
}
.gallery .card .pin {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 11px/1 var(--f-mono);
  color: rgba(255, 255, 255, 0.85);
  padding: 5px 9px 5px 7px;
  background: rgba(20, 23, 28, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.gallery .card .pin::before {
  content: "◉";
  color: var(--pin, #6ae1ff);
  font-size: 11px;
}

.gallery .card .body {
  padding: 18px 20px 20px;
}
.gallery .card .head-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 6px;
}
.gallery .card .name {
  font: 700 18px/1.2 var(--f-heading);
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0;
}
.gallery .card .city {
  font: 400 12px/1 var(--f-body);
  color: rgba(
    255,
    255,
    255,
    0.55
  ); /* lifted from 0.45 to clear AA on the raised card surface */
}
.gallery .card .desc {
  font: 400 13px/1.55 var(--f-body);
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 14px;
  max-width: 36ch;
  text-wrap: pretty;
}

.gallery .card .meta-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  align-items: center;
}
.gallery .card .palette {
  display: inline-flex;
  gap: 4px;
}
.gallery .card .palette i {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.gallery .card .meta-tag {
  font: 500 10px/1 var(--f-mono);
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gallery .card .meta-tag b {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* List view — toggled by JS. The toggle persists to localStorage; the
   visual swap is intentionally instant per the brand handoff. */
.gallery-index .grid.list {
  grid-template-columns: 1fr;
  gap: 8px;
}
.gallery-index .grid.list .card {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: stretch;
}
.gallery-index .grid.list .card .map {
  aspect-ratio: auto;
  height: 100%;
  min-height: 110px;
}
.gallery-index .grid.list .card .body {
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.gallery-index .grid.list .card .desc {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Empty states */
.gallery-index .empty {
  padding: 96px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font: 400 16px/1.55 var(--f-body);
}
.gallery-index .empty a {
  color: #6ea7ff;
}

/* Filterbar collapse on narrow viewports. Single column, tabs above
   search above layout toggle. */
@media (max-width: 900px) {
  .gallery .filterbar .inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 20px;
  }
  .gallery-head .row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  /* 5 tabs may not fit on one line at narrow widths — allow wrap. */
  .gallery .tabs {
    flex-wrap: wrap;
  }
  /* The pill-shaped toggle would otherwise stretch to fill the 1fr cell. */
  .gallery .layout-toggle {
    justify-self: start;
  }
}

/* ---------- PRICING PAGE — "Atlas Matrix" ----------
   The /pricing/ page: a unified 4-column comparison matrix with featured
   Professional tier (Atlas Gold accent), trust strip, post-matrix
   fineprint bar, and pricing-specific FAQ.

   Differences from the brand source:
   - The slim atlas-head with hero content reuses the existing
     .atlas-head-slim from blog-single — padding and opacity are
     overridden under .pricing-page since this page wants the slightly
     more luxurious 96/72 treatment vs the blog-single's tight 56/32.
   - The matrix section reuses the .pricing class but is scoped under
     .pricing-page so it doesn't collide with the home-page teaser's
     existing .pricing rules (.pv-tiers / .pv-line / .pv-band).
   - Atlas Gold (#ffdeac) is reserved exclusively for the featured
     Professional column — top accent line, MOST POPULAR tag, column
     tint, indicator color, and CTA override. Don't introduce gold
     anywhere else on this page.
   ------------------------------------------------------- */

.pricing-page a,
.pricing-page a:hover,
.pricing-page a:focus,
.pricing-page a:active {
  text-decoration: none;
}

/* Slim atlas-head — pricing variant (with hero content). The blog-single
   version is tighter; this one is roomier because the page has no
   left-rail to balance against. */
.pricing-page .atlas-head-slim {
  padding: 96px 0 72px;
}
.pricing-page .atlas-head-slim::before {
  opacity: 0.18;
}
.pricing-page .atlas-head-slim .breadcrumb {
  margin-bottom: 24px;
}
.pricing-page .atlas-head-slim .col {
  position: relative;
  max-width: 720px;
}
.pricing-page .atlas-head-slim .eyebrow {
  margin-bottom: 18px;
}
.pricing-page .atlas-head-slim h1 {
  font: 700 clamp(40px, 4.4vw, 56px) / 1.06 var(--f-heading);
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 20px;
  text-wrap: balance;
}
.pricing-page .atlas-head-slim h1 em {
  font-style: normal;
  color: #6ea7ff;
}
.pricing-page .atlas-head-slim .lede {
  font: 400 17px/1.55 var(--f-body);
  color: rgba(255, 255, 255, 0.65);
  max-width: 580px;
  margin: 0;
}

/* Trust strip — slim mono band of 3 reassurance items separated by · */
.trust-strip {
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.015);
}
.trust-strip .row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  font: 500 11px/1 var(--f-mono);
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
}
.trust-strip .row .item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-strip .row .glyph {
  color: #6ea7ff;
}
.trust-strip .row .dot {
  color: rgba(255, 255, 255, 0.2);
}
.trust-strip .row b {
  color: #fff;
  font-weight: 600;
}

/* Pricing matrix — the centerpiece. .pricing scope is shared with the
   home-page teaser; everything inside .matrix is unique to this page. */
.pricing-page .pricing {
  background: var(--dark-bg-deepest, #14171c);
  padding: 72px 0;
}
.pricing-page .pricing .matrix {
  background: var(--dark-bg-raised, #1c1f26);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  max-width: 1140px;
  margin: 0 auto;
}
.pricing-page .pricing .matrix .row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  align-items: stretch;
}
.pricing-page .pricing .matrix .row + .row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.pricing-page .pricing .cell {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  font: 500 14px/1.4 var(--f-body);
  color: rgba(255, 255, 255, 0.85);
}
.pricing-page .pricing .cell.center {
  justify-content: center;
  text-align: center;
}

/* Featured column — Atlas Gold accent, runs the full height of the column. */
.pricing-page .pricing .matrix .col-featured {
  background: rgba(255, 222, 172, 0.05);
  position: relative;
}
.pricing-page .pricing .matrix .row.head-row .col-featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #ffdeac;
}
.pricing-page .pricing .matrix .row.head-row .col-featured::after {
  content: "MOST POPULAR";
  position: absolute;
  top: 8px;
  right: 12px;
  font: 600 9px/1 var(--f-body);
  letter-spacing: 0.14em;
  color: rgba(255, 222, 172, 0.8);
}

/* Header row — annual/monthly toggle (label cell) + 3 plan headers. */
.pricing-page .pricing .matrix .row.head-row .cell {
  padding: 36px 24px 28px;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}
.pricing-page .plan-name {
  font: 600 10px/1 var(--f-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}
.pricing-page .plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}
.pricing-page .plan-price .num {
  font: 700 clamp(36px, 3.4vw, 44px) / 1 var(--f-heading);
  letter-spacing: -0.03em;
  color: #fff;
}
.pricing-page .plan-price .per {
  font: 500 13px/1 var(--f-mono);
  color: rgba(255, 255, 255, 0.5);
}
/* Price swap animation — brand --t-2 / --ease-out tier ("card lift, map pan").
   Old value slides up + fades; new value slides up from below + fades in.
   Maps don't bounce. */
.pricing-page .plan-price .num,
.pricing-page .plan-price .per {
  display: inline-block;
  transition:
    opacity var(--t-2) var(--ease-out),
    transform var(--t-2) var(--ease-out);
}
.pricing-page .plan-price .num.is-leaving,
.pricing-page .plan-price .per.is-leaving {
  opacity: 0;
  transform: translateY(-6px);
}
.pricing-page .plan-price .num.is-entering,
.pricing-page .plan-price .per.is-entering {
  opacity: 0;
  transform: translateY(6px);
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .pricing-page .plan-price .num,
  .pricing-page .plan-price .per {
    transition: none;
  }
}
.pricing-page .plan-billing {
  font: 600 10px/1 var(--f-mono);
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}
.pricing-page .plan-billing .glyph {
  color: #6ea7ff;
  margin-right: 4px;
}

/* Annual/monthly toggle. Visual-only at rest; pricing.js wires the swap. */
.pricing-page .toggle-cell {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 36px 28px 28px !important;
  flex-direction: row !important;
  font: 500 12px/1 var(--f-mono);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}
.pricing-page .toggle-cell .label-off {
  color: rgba(255, 255, 255, 0.4);
}
.pricing-page .toggle-cell .toggle-track {
  position: relative;
  width: 40px;
  height: 22px;
  background: #0052ae;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  transition: background 200ms var(--ease-out);
}
.pricing-page .toggle-cell .toggle-track::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 220ms var(--ease-out);
}
.pricing-page .toggle-cell .toggle-track.off {
  background: rgba(255, 255, 255, 0.15);
}
.pricing-page .toggle-cell .toggle-track.off::after {
  transform: translateX(-18px);
}
.pricing-page .toggle-cell .save {
  font: 600 9px/1 var(--f-body);
  letter-spacing: 0.12em;
  color: #6ae1ff;
  padding: 4px 7px;
  background: rgba(106, 225, 255, 0.12);
  border-radius: 4px;
  margin-left: 4px;
  transition: opacity 200ms var(--ease-out);
}
/* Hide the savings badge when the toggle is in monthly mode. Opacity (not
 * display:none) preserves the row's layout so the toggle doesn't jump. */
.pricing-page .toggle-cell .toggle-track.off ~ .save {
  opacity: 0;
  pointer-events: none;
}

/* Feature rows */
.pricing-page .pricing .matrix .row.feature-row .cell {
  padding: 14px 24px;
}
.pricing-page .pricing .matrix .row.feature-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}
.pricing-page .pricing .matrix .row.feature-row .cell.label {
  color: rgba(255, 255, 255, 0.85);
  font: 500 13.5px/1.4 var(--f-body);
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.pricing-page .pricing .matrix .row.feature-row .cell.label .hint {
  font: 400 11px/1 var(--f-mono);
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
}

/* Yes/no indicator — ◉ (included) or — (not included). The featured
   column gets gold instead of blue. */
.pricing-page .indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font: 500 14px/1 var(--f-mono);
  color: #6ea7ff;
}
.pricing-page .indicator.yes::before {
  content: "◉";
}
.pricing-page .indicator.no {
  color: rgba(255, 255, 255, 0.18);
}
.pricing-page .indicator.no::before {
  content: "—";
}
.pricing-page .col-featured .indicator.yes {
  color: #ffdeac;
}

.pricing-page .num-val {
  font: 500 13px/1 var(--f-mono);
  color: #fff;
  letter-spacing: 0.02em;
}
.pricing-page .num-val .unit {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
  margin-left: 3px;
  letter-spacing: 0.04em;
}
.pricing-page .col-featured .num-val {
  color: #ffdeac;
}

/* CTA row — featured column gets the gold-tinted button override. */
.pricing-page .pricing .matrix .row.cta-row .cell {
  padding: 28px 24px;
}
.pricing-page .pricing .cta-row .btn {
  width: 100%;
  max-width: 200px;
  justify-content: center;
  font-size: 13px;
}
.pricing-page .pricing .cta-row .col-featured .btn {
  background: #ffdeac;
  color: #4a2e00; /* --on-tertiary-fixed — AAA contrast verified */
  border-color: transparent;
  box-shadow: 0 4px 24px rgba(255, 222, 172, 0.25);
}
.pricing-page .pricing .cta-row .col-featured .btn:hover {
  filter: brightness(1.04);
}

/* Post-matrix fineprint bar — flex row of mono caps. */
.pricing-page .post-matrix {
  max-width: 1140px;
  margin: 28px auto 0;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font: 500 11px/1.4 var(--f-mono);
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
}
.pricing-page .post-matrix .left,
.pricing-page .post-matrix .right {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.pricing-page .post-matrix .glyph {
  color: #6ea7ff;
}
.pricing-page .post-matrix .dot {
  color: rgba(255, 255, 255, 0.2);
}
.pricing-page .post-matrix b {
  color: #fff;
  font-weight: 600;
}
.pricing-page .post-matrix a {
  color: #6ea7ff;
}
.pricing-page .post-matrix a:hover {
  color: #fff;
}

/* Pricing FAQ — reuses .faq from the marketing site, just adds the
   centered head row above the list. */
.pricing-page .faq .head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.pricing-page .faq .head .eyebrow {
  margin-bottom: 16px;
}
.pricing-page .faq .head h2 {
  font: 700 clamp(32px, 3.4vw, 40px) / 1.1 var(--f-heading);
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

/* Mobile — drop the feature comparison entirely and pull each tier's
   CTA directly under its price. display: contents on .row flattens
   every cell into a single grid on .matrix; auto-flow handles column
   placement so the head cells land on row 2 and the CTAs on row 3,
   each CTA snug under its corresponding tier header. */
@media (max-width: 980px) {
  .pricing-page .pricing .matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .pricing-page .pricing .matrix .row {
    display: contents;
  }
  /* Drop all feature rows + the empty label cell of the CTA row. */
  .pricing-page .pricing .matrix .row.feature-row,
  .pricing-page .pricing .matrix .row.cta-row > .cell:first-child {
    display: none;
  }
  /* Toggle takes a full-width row above the tier columns. */
  .pricing-page .pricing .matrix .row.head-row .cell.toggle-cell {
    grid-column: 1 / -1;
  }
  /* Tighten cell padding at narrow widths. */
  .pricing-page .pricing .matrix .row.head-row .cell {
    padding: 24px 16px 18px;
  }
  .pricing-page .pricing .matrix .row.cta-row .cell {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  /* MOST POPULAR badge stays pinned in the featured column corner. */
  .pricing-page .pricing .matrix .row.head-row .col-featured::after {
    top: 12px;
    right: 16px;
  }
}

/* Phone widths — even 3 columns are too cramped for the CTA buttons,
   so stack each tier's head + CTA pair vertically. nth-child(2/3/4)
   targets the three tier cells in each row (skipping the toggle/empty
   label cell in position 1, which is hidden). */
@media (max-width: 640px) {
  .pricing-page .pricing .matrix {
    grid-template-columns: 1fr;
  }
  .pricing-page .pricing .matrix .row.head-row > .cell:nth-child(2) { grid-row: 2; }
  .pricing-page .pricing .matrix .row.cta-row  > .cell:nth-child(2) { grid-row: 3; }
  .pricing-page .pricing .matrix .row.head-row > .cell:nth-child(3) { grid-row: 4; }
  .pricing-page .pricing .matrix .row.cta-row  > .cell:nth-child(3) { grid-row: 5; }
  .pricing-page .pricing .matrix .row.head-row > .cell:nth-child(4) { grid-row: 6; }
  .pricing-page .pricing .matrix .row.cta-row  > .cell:nth-child(4) { grid-row: 7; }
}

/* ---------- CONTACT PAGE — "Side-by-side hero" ----------
   The /contact/ page: a single-viewport hero. Hero copy left, glass
   form right. CTA-deep palette as the page wash, with a soft cyan
   radial glow at the top and a 48×48 white grid overlay. A 540×540
   compass watermark sits behind the headline as the page's brand
   signature.

   Differences from the brand source:
   - The page wash is applied to body via `body.contact-active` instead
     of the prototype's body class — added by inc/contact.php on
     is_page('contact') so the gradient only fires on this page.
   - The topbar's "always-solid glass-blur" override is also scoped
     under body.contact-active so the marketing nav's transparent-
     over-hero treatment stays intact on other pages.
   - The 48×48 grid overlay is rendered on a body::before pseudo
     (instead of a separate .bg-grid div in the source) so the page
     pattern markup stays clean.
   ------------------------------------------------------- */

body.contact-active {
  /* Match the rest of the theme — solid dark (same as body/footer/pricing). */
  background: #14171c;
  overflow-x: hidden;
}
/* Grid overlay removed — keeps the page consistent with the rest of the site,
   which doesn't use a grid asset. */

/* Topbar override — fall back to the standard marketing nav treatment so the
   contact page header matches the rest of the site (no blue gradient). */
body.contact-active .mm-nav,
body.contact-active .mm-nav.transparent {
  background: rgba(25, 28, 34, 0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hero stage — fills the viewport, content vertically centered. */
.contact-page .stage {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 96px 32px 48px;
}
.contact-page .hero-row {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}

/* Left — hero copy column with compass watermark behind the headline. */
.contact-page .hero-copy {
  position: relative;
  padding: 12px 0;
}
.contact-page .hero-copy::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -80px;
  transform: translateY(-50%);
  width: 720px;
  height: 540px;
  background: var(--mmpro-img-dot-map, none) center/contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: -1;
}

.contact-page .hero-copy .eyebrow {
  font: 600 11px/1 var(--f-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6ae1ff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
/* Override the global .eyebrow's blue dot::before with a cyan ◉ glyph. */
.contact-page .hero-copy .eyebrow::before {
  content: "◉";
  width: auto;
  height: auto;
  background: transparent;
  box-shadow: none;
  color: #6ae1ff;
  font-size: 13px;
  border-radius: 0;
}
.contact-page .hero-copy h1 {
  font: 700 clamp(48px, 5.4vw, 68px) / 1.02 var(--f-heading);
  letter-spacing: -0.038em;
  margin: 0 0 22px;
  color: #fff;
  text-wrap: balance;
  max-width: 13ch;
}
.contact-page .hero-copy h1 em {
  font-style: normal;
  color: #6ea7ff;
  display: block;
}
.contact-page .hero-copy .lede {
  font: 400 17px/1.65 var(--f-body);
  color: rgba(255, 255, 255, 0.72);
  max-width: 44ch;
  margin: 0 0 14px;
  text-wrap: pretty;
}
.contact-page .hero-copy .lede + .lede {
  margin-bottom: 28px;
}
.contact-page .hero-copy .lede a {
  color: #9cc4ff;
  border-bottom: 1px solid rgba(156, 196, 255, 0.3);
  transition: border-color 150ms var(--ease-out);
}
.contact-page .hero-copy .lede a:hover {
  border-bottom-color: #9cc4ff;
}

/* Status pulse chip — glass pill with breathing cyan halo. */
.contact-page .pulse {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 14px;
  background: rgba(15, 22, 35, 0.55);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(106, 225, 255, 0.22);
  border-radius: 999px;
  font: 500 12px/1 var(--f-mono);
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}
.contact-page .pulse .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6ae1ff;
  box-shadow: 0 0 0 4px rgba(106, 225, 255, 0.18);
  animation: mmpro-pulse 2.4s var(--ease-out) infinite;
}
.contact-page .pulse b {
  color: #fff;
  font-weight: 600;
}
@keyframes mmpro-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(106, 225, 255, 0.18);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(106, 225, 255, 0.04);
  }
}
@media (prefers-reduced-motion: reduce) {
  .contact-page .pulse .dot {
    animation: none;
  }
}

/* Studio meta strip — k/v rows under the lede. */
.contact-page .studio-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 24px;
  row-gap: 10px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font: 500 12px/1.4 var(--f-mono);
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.04em;
  max-width: 460px;
}
.contact-page .studio-meta .k {
  font: 600 10px/1.4 var(--f-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.contact-page .studio-meta .v {
  color: #fff;
}
.contact-page .studio-meta .v.coord {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.contact-page .studio-meta .v.coord::before {
  content: "◉";
  color: #6ae1ff;
  font-size: 11px;
}
.contact-page .studio-meta .v a {
  color: #fff;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
  transition: border-color 150ms var(--ease-out);
}
.contact-page .studio-meta .v a:hover {
  border-bottom-color: rgba(106, 225, 255, 0.7);
}

/* Right — form panel styled like the rest of the site's cards (.step,
   .pv-card, .features .rhs): solid dark bg, soft border, deep drop shadow.
   The cyan corner ticks have been retired so the contact page lines up
   visually with the marketing pages. */
.contact-page .form-wrap {
  position: relative;
}
.contact-page .panel {
  position: relative;
  background: #22262e;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 36px 40px 32px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}
/* The .corners span inside the form is now a no-op — kept in markup so
   existing pages don't need re-saving. */
.contact-page .panel .corners {
  display: none;
}

.contact-page .panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.contact-page .panel-head h2 {
  font: 700 20px/1.2 var(--f-heading);
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}
.contact-page .panel-head .reply {
  font: 500 11px/1 var(--f-mono);
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.contact-page .panel-head .reply::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ae1ff;
  box-shadow: 0 0 0 3px rgba(106, 225, 255, 0.18);
}

/* Form fields */
.contact-page .form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-page .field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.contact-page .field label {
  font: 600 10px/1 var(--f-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.contact-page .field label .opt {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.35);
  margin-left: 8px;
}
.contact-page .field input,
.contact-page .field textarea {
  font: 400 15px/1.5 var(--f-body);
  color: #fff;
  background: rgba(0, 8, 22, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md, 6px);
  padding: 12px 14px;
  transition: all 150ms var(--ease-out);
  width: 100%;
  box-sizing: border-box;
  outline: 0;
}
.contact-page .field textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--f-body);
}
.contact-page .field input::placeholder,
.contact-page .field textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.contact-page .field input:focus,
.contact-page .field textarea:focus {
  border-color: rgba(106, 225, 255, 0.55);
  background: rgba(0, 8, 22, 0.55);
  box-shadow: 0 0 0 4px rgba(106, 225, 255, 0.12);
}
.contact-page .field input:invalid:not(:placeholder-shown) {
  border-color: rgba(255, 128, 128, 0.55);
}
.contact-page .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
/* Honeypot — hidden visually, accessible to bots only. */
.contact-page .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-page .submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}
.contact-page .send {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: linear-gradient(135deg, #006adc 0%, #0052ae 100%);
  color: #fff;
  font: 600 14px/1 var(--f-body);
  border-radius: var(--r-md, 6px);
  /* Layered cyan halo + blue inner — the page's most decorative shadow. */
  box-shadow:
    0 8px 32px rgba(106, 225, 255, 0.18),
    0 4px 16px rgba(0, 82, 174, 0.45);
  cursor: pointer;
  border: 0;
  transition:
    filter 150ms var(--ease-out),
    transform 150ms var(--ease-out);
}
.contact-page .send:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.contact-page .send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.contact-page .send::after {
  content: "→";
  font-size: 16px;
  transition: transform 150ms var(--ease-out);
}
.contact-page .send:hover::after {
  transform: translateX(2px);
}

.contact-page .privacy {
  font: 400 11px/1.4 var(--f-body);
  color: rgba(255, 255, 255, 0.42);
}
.contact-page .privacy a {
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.contact-page .privacy a:hover {
  color: #fff;
}

/* Form error / success states. The form panel keeps its chrome on
   success; only the interior swaps. */
.contact-page .form-error {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--r-md, 6px);
  background: rgba(255, 128, 128, 0.08);
  border: 1px solid rgba(255, 128, 128, 0.3);
  font: 500 12px/1.5 var(--f-body);
  color: rgba(255, 200, 200, 0.95);
}
.contact-page .form-success {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 0;
}
.contact-page .form-success .sent-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 11px/1 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6ae1ff;
}
.contact-page .form-success .sent-mark::before {
  content: "◉";
  font-size: 13px;
}
.contact-page .form-success h3 {
  font: 700 22px/1.2 var(--f-heading);
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}
.contact-page .form-success p {
  font: 400 14px/1.6 var(--f-body);
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}
.contact-page .form-success .send-another {
  align-self: flex-start;
  margin-top: 6px;
  font: 500 13px/1 var(--f-body);
  color: #9cc4ff;
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
  transition: color 150ms var(--ease-out);
}
.contact-page .form-success .send-another:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 1100px) {
  .contact-page .stage {
    padding: 110px 24px 64px;
  }
  .contact-page .hero-row {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contact-page .hero-copy::before {
    width: 360px;
    height: 360px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}
@media (max-width: 600px) {
  .contact-page .row-2 {
    grid-template-columns: 1fr;
  }
  .contact-page .panel {
    padding: 28px 24px;
  }
}

/* ---------- 404 ---------- */
.mm-404 {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 32px;
  gap: 16px;
}
.mm-404 h1 {
  font: 700 clamp(48px, 6vw, 72px) / 1.05 var(--f-heading);
  letter-spacing: -0.03em;
}
.mm-404 p {
  font: 400 17px/1.55 var(--f-body);
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .features .split {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .features .lhs-head {
    grid-column: 1;
    grid-row: 1;
  }
  .features .pick-list {
    grid-column: 1;
    grid-row: 2;
  }
  .features .rhs {
    grid-column: 1;
    grid-row: 3;
    min-height: 360px;
  }
  .how .steps,
  .ft .grid,
  .pv-row {
    grid-template-columns: 1fr;
  }
  .pv-row.pv-row-2 {
    grid-template-columns: 1fr;
  }
  .pv-band-card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 32px;
  }
  .section-head {
    grid-template-columns: 1fr;
  }
  .pin-chip {
    display: none;
  }
  .hero {
    min-height: 600px;
  }
  .map-popup {
    font-size: 11px;
  }
}

/* ------------------------------------------------------------------
 * Hero — Map Background (Video) pattern
 * Full-bleed background video (AV1 + H.264 fallback) of the cinematic
 * map loop. The source recording is in assets/js/hero-map-bg-animation.js
 * (kept for re-recording); the encoded files live in assets/videos/.
 * ------------------------------------------------------------------ */
.mm-hero-map-bg-wrapper {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.mm-hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* ============================================================
 * Blog single — "Atlas Entry" / Field notes post
 *
 * Mirrors the archive's atlas + grid-wrap + rail layout. Reuses
 * .atlas .grid-wrap, .rail, .rail-section h4 from blog-archive.
 * Adds:
 *   .atlas-head-slim — quieter, breadcrumb-only header band
 *   .atlas-head .breadcrumb — chained mono breadcrumb
 *   .entry-layout — wrapper section (analog of .atlas)
 *   .entry-rail extensions — .back, .entry-meta, .toc-rail, .share-rail, .nav-rail
 *   .field-notes-single .body — article prose styles incl. § NN H2 counter
 *   .end — closing flourish
 *   .author-card — author bio panel
 *   .next-dispatch — earlier-dispatch pill
 * ============================================================ */

/* ---------- Slim atlas-head (single only) ---------- */
.atlas-head-slim {
  padding: 56px 0 32px;
  min-height: 0;
}
.atlas-head-slim::before {
  /* Quieter dot-map than the archive (0.14 vs 0.22) and a higher mask center
   * so the breadcrumb sits inside the brightest band of the texture.
   * Image URL is supplied via the --mmpro-img-dot-map root var set by
   * wp_add_inline_style in functions.php — same pattern as .atlas-head::before. */
  background: var(--mmpro-img-dot-map, none) center top / 1600px auto no-repeat;
  opacity: 0.14;
  -webkit-mask-image: radial-gradient(
    ellipse 95% 100% at 50% 30%,
    #000 0%,
    rgba(0, 0, 0, 0.6) 60%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 95% 100% at 50% 30%,
    #000 0%,
    rgba(0, 0, 0, 0.6) 60%,
    transparent 100%
  );
}
.atlas-head-slim .breadcrumb {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font: 500 11px/1 var(--f-mono);
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
}
.atlas-head-slim .breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.atlas-head-slim .breadcrumb a:hover {
  color: #fff;
}
.atlas-head-slim .breadcrumb .sep {
  color: rgba(255, 255, 255, 0.25);
}
.atlas-head-slim .breadcrumb .current {
  color: #fff;
}

/* ---------- Entry layout (mirrors .atlas) ---------- */
.entry-layout {
  padding: 56px 0 96px;
}
.entry-layout .grid-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}
.entry-layout .main {
  min-width: 0;
  max-width: 720px;
}

/* ---------- Rail extensions (single only) ---------- */
.entry-rail .back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 12px/1 var(--f-mono);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  transition: color 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.entry-rail .back:hover {
  color: #6ea7ff;
}
.entry-rail .back .arrow {
  transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.entry-rail .back:hover .arrow {
  transform: translateX(-3px);
}

/* On-this-entry meta panel — labeled k/v rows */
.entry-meta {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}
.entry-meta .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font: 400 12px/1.4 var(--f-body);
}
.entry-meta .row:last-child {
  border-bottom: 0;
}
.entry-meta .row .label {
  font: 500 11px/1 var(--f-mono);
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
}
.entry-meta .row .val {
  color: #fff;
  font: 500 12px/1.3 var(--f-mono);
  letter-spacing: 0.02em;
  text-align: right;
}
.entry-meta .row .cat-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 10px/1 var(--f-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.entry-meta .row .cat-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* TOC rail — auto-generated from H2s */
.toc-rail {
  display: flex;
  flex-direction: column;
}
.toc-rail a {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: baseline;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font: 500 12px/1.4 var(--f-body);
  color: rgba(255, 255, 255, 0.6);
  transition: color 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.toc-rail a:hover {
  color: #fff;
}
.toc-rail a.active {
  color: #fff;
  font-weight: 600;
}
.toc-rail a .num {
  font: 500 10px/1 var(--f-mono);
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.06em;
}
.toc-rail a.active .num {
  color: #6ea7ff;
}

/* Share — small icon row */
.share-rail {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.share-rail a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  transition: all 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.share-rail a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.share-rail a svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Adjacent rail — earlier/later dispatch links */
.nav-rail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-rail a,
.nav-rail .empty {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.nav-rail a:last-child,
.nav-rail .empty:last-child {
  border-bottom: 0;
}
.nav-rail a:hover .label {
  color: #6ea7ff;
}
.nav-rail .dir {
  font: 500 10px/1 var(--f-mono);
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
}
.nav-rail .label {
  font: 500 12px/1.3 var(--f-body);
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.005em;
  transition: color 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-rail .label.muted {
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Main column header (single) ---------- */
.field-notes-single .main > .eyebrow {
  font: 600 11px/1 var(--f-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  /* eyebrow color set inline from PHP via category color */
}
.field-notes-single .main > .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--eyebrow-color, currentColor);
  box-shadow: 0 0 0 4px
    color-mix(in srgb, var(--eyebrow-color, currentColor) 18%, transparent);
}
.field-notes-single .main > h1 {
  font: 700 clamp(36px, 4.2vw, 50px) / 1.06 var(--f-heading);
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 24px;
  text-wrap: balance;
}
.field-notes-single .main > .deck {
  font: 400 19px/1.55 var(--f-body);
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 32px;
  max-width: 640px;
  text-wrap: pretty;
}
.field-notes-single .main > .meta-line {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 0 32px;
  font: 500 12px/1 var(--f-mono);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
}
.field-notes-single .main > .meta-line .author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: var(--f-body);
  font-weight: 600;
  letter-spacing: 0;
}
.field-notes-single .main > .meta-line .av {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0052ae, #6ae1ff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 600 9px/1 var(--f-heading);
  color: #fff;
  letter-spacing: 0;
}
.field-notes-single .main > .meta-line .dot {
  color: rgba(255, 255, 255, 0.2);
}
.field-notes-single .main > .top-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 48px;
}

/* ---------- Article body (the_content output) ---------- */
.field-notes-single .body {
  /* Reset section counter so § NN starts fresh per post.
   * Initial value 1 means the first H2 lands on § 02 — matching the
   * implicit "01 = lead-in paragraph" convention demonstrated in the TOC. */
  counter-reset: section 1;
  max-width: 720px;
}

.field-notes-single .body p,
.field-notes-single .body ul,
.field-notes-single .body ol {
  font: 400 17px/1.7 var(--f-body);
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 24px;
  text-wrap: pretty;
  letter-spacing: -0.005em;
}
.field-notes-single .body strong {
  color: #fff;
  font-weight: 600;
}
.field-notes-single .body em {
  color: rgba(255, 255, 255, 0.95);
  font-style: italic;
}
.field-notes-single .body a {
  color: #6ea7ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(110, 167, 255, 0.4);
  transition: all 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.field-notes-single .body a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* H2 with mono section counter prefix */
.field-notes-single .body h2 {
  font: 700 26px/1.2 var(--f-heading);
  letter-spacing: -0.02em;
  color: #fff;
  margin: 56px 0 18px;
  text-wrap: balance;
  scroll-margin-top: 96px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  counter-increment: section;
}
.field-notes-single .body h2:first-child {
  margin-top: 0;
}
.field-notes-single .body h2::before {
  content: "§ " counter(section, decimal-leading-zero);
  font: 500 12px/1 var(--f-mono);
  color: rgba(110, 167, 255, 0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
  padding-top: 8px;
}
.field-notes-single .body h3 {
  font: 700 18px/1.3 var(--f-heading);
  letter-spacing: -0.01em;
  color: #fff;
  margin: 36px 0 12px;
}

.field-notes-single .body ul,
.field-notes-single .body ol {
  padding-left: 22px;
}
.field-notes-single .body li {
  margin: 0 0 8px;
}
.field-notes-single .body ul li::marker {
  color: rgba(110, 167, 255, 0.6);
}

/* Pullquote — Quote and Pullquote blocks both render this style.
 * Single style intentionally — the brand has one quote treatment. */
.field-notes-single .body blockquote,
.field-notes-single .body .wp-block-quote,
.field-notes-single .body .wp-block-pullquote {
  font: 600 22px/1.4 var(--f-heading);
  letter-spacing: -0.02em;
  color: #fff;
  margin: 40px 0;
  padding: 18px 0;
  border-top: 1px solid rgba(110, 167, 255, 0.4);
  border-bottom: 1px solid rgba(110, 167, 255, 0.4);
  max-width: 640px;
  text-wrap: balance;
  background: transparent;
  padding-left: 1rem;
}
.field-notes-single .body blockquote p,
.field-notes-single .body .wp-block-quote p,
.field-notes-single .body .wp-block-pullquote p {
  font: inherit;
  color: inherit;
  margin: 0;
}
.field-notes-single .body blockquote cite,
.field-notes-single .body .wp-block-quote cite,
.field-notes-single .body .wp-block-pullquote cite {
  display: block;
  margin-top: 14px;
  font: 500 11px/1 var(--f-mono);
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  font-style: normal;
}
.field-notes-single .body blockquote cite::before,
.field-notes-single .body .wp-block-quote cite::before,
.field-notes-single .body .wp-block-pullquote cite::before {
  content: "◉ ";
  color: rgba(110, 167, 255, 0.6);
}

/* Code blocks — Code block and preformatted */
.field-notes-single .body pre,
.field-notes-single .body .wp-block-code {
  background: #14171c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 28px 0;
  overflow-x: auto;
  font: 400 13px/1.7 var(--f-mono);
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0;
  position: relative;
}
.field-notes-single .body pre[data-lang]::before,
.field-notes-single .body .wp-block-code[data-lang]::before {
  content: attr(data-lang);
  position: absolute;
  top: 10px;
  right: 14px;
  font: 500 9px/1 var(--f-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}
.field-notes-single .body pre code {
  font: inherit;
  color: inherit;
  background: transparent;
  padding: 0;
  border-radius: 0;
}
/* Syntax token colors — map to Prism/Highlight.js if a highlighter is added */
.field-notes-single .body pre .c,
.field-notes-single .body .token.comment {
  color: rgba(255, 255, 255, 0.4);
}
.field-notes-single .body pre .k,
.field-notes-single .body .token.keyword {
  color: #c4b5fd;
}
.field-notes-single .body pre .s,
.field-notes-single .body .token.string {
  color: #6ae1ff;
}
.field-notes-single .body pre .n,
.field-notes-single .body .token.function,
.field-notes-single .body .token.variable {
  color: #6ea7ff;
}
/* Inline code (anything not inside a pre) */
.field-notes-single .body :not(pre) > code {
  font: 500 0.9em/1 var(--f-mono);
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  color: #6ae1ff;
}

/* Figures (image block) */
.field-notes-single .body figure,
.field-notes-single .body .wp-block-image {
  margin: 36px 0;
}
.field-notes-single .body figure img,
.field-notes-single .body .wp-block-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.field-notes-single .body figure figcaption,
.field-notes-single .body .wp-block-image figcaption {
  margin-top: 12px;
  font: 500 11px/1.5 var(--f-mono);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- Live map block — used as an inline figure in posts ----------
 * Authors can drop the Modern Maps block (`create-block/modern-maps`) into
 * a post body, optionally wrapped in a `<figure>` with a `<figcaption>` to
 * pick up the cartographic caption styling. */
.field-notes-single .body .wp-block-create-block-modern-maps {
  margin: 36px 0;
}
.field-notes-single .body .modern-maps__container {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.field-notes-single .body figure.map-figure,
.field-notes-single .body figure.wp-block-group.map-figure {
  margin: 36px 0;
}
.field-notes-single .body figure.map-figure .wp-block-create-block-modern-maps {
  margin: 0;
}

/* ---------- Separator (hr / core/separator) — cartographic divider ----------
 * A hairline with a centered ◉ glyph. The padded background on ::before
 * "punches" a gap in the line so the dot floats. Matches the .end mark
 * aesthetic and lets authors break sections in the body without an H2. */
.field-notes-single .body hr,
.field-notes-single .body .wp-block-separator {
  border: 0;
  height: 1px;
  width: 100%;
  max-width: none;
  background: rgba(255, 255, 255, 0.08);
  margin: 48px 0;
  position: relative;
  overflow: visible;
}
.field-notes-single .body hr::before,
.field-notes-single .body .wp-block-separator::before {
  content: "◉";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--dark-bg, #191c22);
  padding: 0 12px;
  font: 500 10px/1 var(--f-mono);
  color: rgba(110, 167, 255, 0.5);
}

/* ---------- End mark — closing flourish ---------- */
.field-notes-single .end {
  margin: 56px 0 40px;
  font: 500 12px/1 var(--f-mono);
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.field-notes-single .end::before,
.field-notes-single .end::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- Author card ---------- */
.field-notes-single .post-foot {
  margin-top: 64px;
}
.field-notes-single .author-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  margin-bottom: 56px;
}
.field-notes-single .author-card .av-lg {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0052ae, #6ae1ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 19px/1 var(--f-heading);
  color: #fff;
}
.field-notes-single .author-card h4 {
  font: 700 15px/1.2 var(--f-heading);
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 4px;
}
.field-notes-single .author-card .role {
  font: 500 10px/1 var(--f-mono);
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.field-notes-single .author-card p {
  font: 400 13.5px/1.6 var(--f-body);
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* ---------- Next dispatch pill ---------- */
.field-notes-single .next-dispatch {
  display: block;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.field-notes-single .next-dispatch:hover {
  background: rgba(0, 82, 174, 0.08);
  border-color: rgba(110, 167, 255, 0.3);
}
.field-notes-single .next-dispatch:hover h4 {
  color: #6ea7ff;
}
.field-notes-single .next-dispatch:hover .arrow {
  transform: translateX(4px);
}
.field-notes-single .next-dispatch .head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font: 500 10px/1 var(--f-mono);
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.field-notes-single .next-dispatch .arrow {
  transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.field-notes-single .next-dispatch h4 {
  font: 700 22px/1.2 var(--f-heading);
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0 0 6px;
  text-wrap: balance;
  transition: color 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.field-notes-single .next-dispatch .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font: 500 11px/1 var(--f-mono);
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
}
.field-notes-single .next-dispatch .meta .cat {
  text-transform: uppercase;
  font-weight: 600;
}
.field-notes-single .next-dispatch .meta .dot {
  color: rgba(255, 255, 255, 0.2);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .entry-layout .grid-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  /* Restructure the rail when it moves above the article: utility bits
     (Back link + Share icons) share row 1 at opposite ends; the content
     panels (On this entry, Contents) sit side-by-side on row 2. Avoids
     the prior horizontal-flex layout where the back link was wedged in
     a wide column and the share icons looked stranded. */
  .entry-rail {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
    row-gap: 28px;
    align-items: start;
  }
  .entry-rail > .back {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }
  /* Share = always the last rail-section in DOM order. Pin it next to
     the back link on row 1 instead of letting it claim a full panel slot. */
  .entry-rail > .rail-section:last-of-type {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
  }
  /* The "Share" heading is redundant beside the back link — drop it on
     mobile; the aria-labels on each icon still carry meaning for AT users. */
  .entry-rail > .rail-section:last-of-type h4 {
    display: none;
  }
}
@media (max-width: 640px) {
  /* Stack the content panels at phone widths; back/share stay on row 1. */
  .entry-rail > .rail-section:not(:last-of-type) {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .field-notes-single .main > h1 {
    font-size: 30px;
  }
  .field-notes-single .body h2 {
    font-size: 22px;
    gap: 10px;
  }
  .field-notes-single .body h2::before {
    padding-top: 4px;
  }
  .field-notes-single .body p,
  .field-notes-single .body ul,
  .field-notes-single .body ol {
    font-size: 16px;
  }
}
@media (max-width: 480px) {
  /* Hide § NN prefix on very narrow screens — too cramped to feel right. */
  .field-notes-single .body h2::before {
    display: none;
  }
  .field-notes-single .body h2 {
    gap: 0;
  }
}
