/* Approved glass material, 14 Oct 2026. Existing layout, CI and controls stay
   with their components; this layer only changes card surfaces and text lift. */
:root {
  --glass-fill: rgb(16 29 49 / 67%);
  --glass-dialog-fill: rgb(16 29 49 / 87%);
  --glass-line: #c9d4e536;
  --glass-top-line: #dbe5f34d;
  --glass-light: linear-gradient(120deg, #ffffff07, transparent 55%);
}

/* One material for main cards, independent pages and cards inside overlays.
   Explicit selectors avoid touching scene labels or positioned controls. */
html body.design-preview .section > .content-lane,
html body.design-preview #product-dialog .product-card,
html body.design-preview .product-card,
html body.design-preview .product-card:last-child,
html body.design-preview .panel-dialog,
html body #product-dialog.workflow-dialog,
html body #section-dialog,
html body .card,
html body .status-card,
html body .story-card,
html body.design-preview .post-card,
html body .post-card,
html body .journal-preview-topic,
html body .social-studio-variant,
html body.design-preview .panel-dialog .cart-totals,
html body.design-preview .panel-dialog .article-end,
html body .cart-totals,
html body .pending-card {
  background-color: var(--glass-fill);
  background-image: var(--glass-light);
  border-color: var(--glass-line);
  border-top-color: var(--glass-top-line);
  box-shadow: inset 0 1px 0 #ffffff08, 0 14px 45px #00000020;
}

/* Only outer surfaces blur the scene. Nested cards use the already blurred
   background instead of multiplying expensive backdrop-filter layers. */
html body.design-preview .section > .content-lane,
html body .panel-dialog,
html body .card,
html body .status-card,
html body .story-card,
html body .post-card {
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
html body.design-preview .panel-dialog,
html body #product-dialog.workflow-dialog,
html body #section-dialog {
  background-color: var(--glass-dialog-fill);
}
html body .panel-dialog :is(.card, .story-card, .post-card, .status-card),
html body .card .card {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* Teaser buttons and selected-package notices retain their established tints. */
html body.design-preview .journal-door {
  background: linear-gradient(120deg, #ffffff07, transparent 55%), #15243ab8;
  border-color: var(--glass-line);
  box-shadow: inset 0 1px 0 #ffffff08;
}
html body .intake-selection {
  background: linear-gradient(120deg, #ffffff07, transparent 55%), #d6ff4605;
  box-shadow: inset 0 1px 0 #ffffff08;
}
html body .journal-preview-header {
  background: #101d31e8;
}

/* CSS hover covers dynamic popup cards too. Pointer-following highlights on
   section and legacy journal cards keep using their existing light position. */
@media (hover: hover) and (pointer: fine) {
  :is(
    html body.design-preview .section > .content-lane,
    html body.design-preview #product-dialog .product-card,
    html body.design-preview .product-card,
    html body .card,
    html body .story-card,
    html body .post-card,
    html body .journal-preview-topic,
    html body .social-studio-variant
  ):hover {
    background-color: var(--glass-fill);
    border-color: #d7e3f55c;
    background-image: radial-gradient(420px circle at var(--tile-shine-x, var(--card-shine, 50%)) var(--tile-shine-y, 30%), #ffffff12, transparent 70%), var(--glass-light);
  }

  :is(.content-lane, .card, .product-card, .story-card, .post-card, .journal-preview-topic, .social-studio-variant)
    :is(h1, h2, h3, .section-lead, .body-copy, .story-excerpt, .post-excerpt, .journal-preview-excerpt, .intro-copy) {
    transition: translate 240ms ease, text-shadow 240ms ease;
  }
  :is(.content-lane, .card, .product-card, .story-card, .post-card, .journal-preview-topic, .social-studio-variant):hover
    :is(h1, h2, h3, .section-lead, .body-copy, .story-excerpt, .post-excerpt, .journal-preview-excerpt, .intro-copy) {
    translate: 0 -2px;
    text-shadow: 0 3px 5px #0007;
  }
}

/* No card follows or tilts with the pointer. The dialog opening transition
   and independent button animations intentionally retain their transforms. */
html body.design-preview .product-card:hover,
html body .journal-preview-topic:hover {
  transform: none;
}
html body.design-preview .section > .content-lane,
html body .post-card,
html body .post-copy,
html body .post-visual {
  transform-style: flat;
}

html body.motion-off :is(.content-lane, .card, .product-card, .story-card, .post-card, .journal-preview-topic, .social-studio-variant)
  :is(h1, h2, h3, .section-lead, .body-copy, .story-excerpt, .post-excerpt, .journal-preview-excerpt, .intro-copy) {
  translate: none;
  text-shadow: none;
  transition: none;
}
@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) {
  :is(.content-lane, .card, .product-card, .story-card, .post-card, .journal-preview-topic, .social-studio-variant)
    :is(h1, h2, h3, .section-lead, .body-copy, .story-excerpt, .post-excerpt, .journal-preview-excerpt, .intro-copy) {
    translate: none;
    text-shadow: none;
    transition: none;
  }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root {
    --glass-fill: #101d31f5;
    --glass-dialog-fill: #101d31fa;
  }
}
