/* ═══════════════════════════════════════════════════════════════════════════
   Cosmos V5 — Skin Styles
   Plain CSS for all website rendering. No Tailwind in the published site.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Font Scale (responsive typography) ──────────────────────────────────── */

:root { --font-scale: 1; }
.cosmos-tablet { --font-scale: 0.85; }
.cosmos-mobile { --font-scale: 0.75; }
@media (max-width: 768px) { :root { --font-scale: 0.85; } }
@media (max-width: 480px) { :root { --font-scale: 0.75; } }

/* ─── Reset / Base ────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; }

/* Same-page anchor links (e.g. a hero CTA linking to #sec_cta) glide instead
   of jumping — on the published page, the preview, and any nested scroller. */
@media (prefers-reduced-motion: no-preference) {
  html, body { scroll-behavior: smooth; }
}

/* ─── Global typography max-width ─────────────────────────────────────────── */

[data-section-id] [class^="skin-heading"],
[data-section-id] [class*=" skin-heading"],
[data-section-id] [class^="skin-body"],
[data-section-id] [class*=" skin-body"] {
  max-width: 800px;
}

/* ─── Palette defaults (bright) ───────────────────────────────────────────── */

[data-publish-root] {
  --cos-bg: #FFFFFF;
  --cos-surface: #F3F4F6;
  --cos-text: #111827;
  --cos-text-secondary: rgba(17, 24, 39, 0.65);
  --cos-text-muted: rgba(17, 24, 39, 0.45);
  --cos-accent: #2563EB;
  --cos-accent-hover: rgba(37, 99, 235, 0.8);
  --cos-border: rgba(17, 24, 39, 0.1);
  background-color: var(--cos-bg);
  color: var(--cos-text);
}

/* ─── Sections ────────────────────────────────────────────────────────────── */

[data-section-id] {
  display: flex;
  flex-direction: column;
  background-color: var(--cos-bg);
}

.cosmos-header-typo {
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 2;
  max-width: var(--website-max-width, none);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  --header-max-width: 800px;
  --header-padding-h: 40px;
  --header-padding-v: 40px;
}

.cosmos-items {
  position: relative;
  z-index: 2;
  max-width: var(--website-max-width, none);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-bottom: 5rem;
}

.cosmos-bg-image {
  overflow: hidden;
}

.skin-hero-header__inner,
.skin-cta-header__inner,
.skin-section-header {
  max-width: min(var(--header-max-width, 800px), var(--website-max-width, 100%));
  padding: var(--header-padding-v, 40px) var(--header-padding-h, 40px);
  margin: 0 auto;
  box-sizing: border-box;
  width: 100%;
}

/* When a section has items, make the header wrapper the same container as items
   so the title left edge aligns exactly with the first item. */
section:has(.cosmos-items) > .cosmos-header-typo {
  max-width: var(--website-max-width, 80rem);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}
section:has(.cosmos-items) .skin-section-header {
  max-width: 800px;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: auto;
}
[data-header-align$="-center"]:has(.cosmos-items) .skin-section-header {
  margin-left: auto;
  margin-right: auto;
}
[data-header-align$="-right"]:has(.cosmos-items) .skin-section-header {
  margin-left: auto;
  margin-right: 0;
}

/* ─── Header Alignment ───────────────────────────────────────────────────── */
/* .skin-hero-header is flex-direction:row, so:                              */
/*   align-items  = vertical   (cross axis)                                  */
/*   justify-content = horizontal (main axis)                                */

/* Vertical positioning on flex header skins */
[data-header-align^="top-"]    .skin-hero-header,
[data-header-align^="top-"]    .skin-cta-header  { align-items: flex-start; }
[data-header-align^="center-"] .skin-hero-header,
[data-header-align^="center-"] .skin-cta-header  { align-items: center; }
[data-header-align^="bottom-"] .skin-hero-header,
[data-header-align^="bottom-"] .skin-cta-header  { align-items: flex-end; }

/* Horizontal positioning on flex header skins */
[data-header-align$="-left"]   .skin-hero-header,
[data-header-align$="-left"]   .skin-cta-header  { justify-content: flex-start; }
[data-header-align$="-center"] .skin-hero-header,
[data-header-align$="-center"] .skin-cta-header  { justify-content: center; }
[data-header-align$="-right"]  .skin-hero-header,
[data-header-align$="-right"]  .skin-cta-header  { justify-content: flex-end; }

/* Split layouts put the copy beside the image, on the section background —
   the ink var resolves to a palette/neutral color that reads on it. */
.skin-header-split__text { color: var(--cos-hero-ink, var(--cos-text, inherit)); }

/* Text alignment — override hardcoded text-align on inner containers */
[data-header-align$="-left"]   .cosmos-header-typo,
[data-header-align$="-left"]   .skin-hero-header__inner,
[data-header-align$="-left"]   .skin-cta-header__inner,
[data-header-align$="-left"]   .skin-section-header,
[data-header-align$="-left"]   .skin-footer-header,
[data-header-align$="-left"]   .skin-header-split__text { text-align: left; }

[data-header-align$="-center"] .cosmos-header-typo,
[data-header-align$="-center"] .skin-hero-header__inner,
[data-header-align$="-center"] .skin-cta-header__inner,
[data-header-align$="-center"] .skin-section-header,
[data-header-align$="-center"] .skin-footer-header,
[data-header-align$="-center"] .skin-header-split__text { text-align: center; }

[data-header-align$="-right"]  .cosmos-header-typo,
[data-header-align$="-right"]  .skin-hero-header__inner,
[data-header-align$="-right"]  .skin-cta-header__inner,
[data-header-align$="-right"]  .skin-section-header,
[data-header-align$="-right"]  .skin-footer-header,
[data-header-align$="-right"]  .skin-header-split__text { text-align: right; }

/* Align buttons/elements (flex children) inside header item skins */
[data-header-align$="-left"]   .cosmos-header-typo .skin-hero-item,
[data-header-align$="-left"]   .cosmos-header-typo .skin-cta-item,
[data-header-align$="-left"]   .cosmos-header-typo .skin-header-item,
[data-header-align$="-left"]   .skin-header-split__text { align-items: flex-start; }
[data-header-align$="-center"] .cosmos-header-typo .skin-hero-item,
[data-header-align$="-center"] .cosmos-header-typo .skin-cta-item,
[data-header-align$="-center"] .cosmos-header-typo .skin-header-item,
[data-header-align$="-center"] .skin-header-split__text { align-items: center; }
[data-header-align$="-right"]  .cosmos-header-typo .skin-hero-item,
[data-header-align$="-right"]  .cosmos-header-typo .skin-cta-item,
[data-header-align$="-right"]  .cosmos-header-typo .skin-header-item,
[data-header-align$="-right"]  .skin-header-split__text { align-items: flex-end; }

/* Vertical positioning inside split __text (flex-column, justify-content) */
[data-header-align^="top-"]    .skin-header-split__text { justify-content: flex-start; }
[data-header-align^="center-"] .skin-header-split__text { justify-content: center; }
[data-header-align^="bottom-"] .skin-header-split__text { justify-content: flex-end; }

/* Inner container margin for horizontal positioning */
[data-header-align$="-left"]   .skin-hero-header__inner,
[data-header-align$="-left"]   .skin-cta-header__inner,
[data-header-align$="-left"]   .skin-section-header     { margin: 0; }
[data-header-align$="-center"] .skin-hero-header__inner,
[data-header-align$="-center"] .skin-cta-header__inner,
[data-header-align$="-center"] .skin-section-header     { margin: 0 auto; }
[data-header-align$="-right"]  .skin-hero-header__inner,
[data-header-align$="-right"]  .skin-cta-header__inner,
[data-header-align$="-right"]  .skin-section-header     { margin: 0 0 0 auto; }

/* Split header text positioning */
[data-header-align$="-left"]   .skin-header-split__text { margin: 0; }
[data-header-align$="-center"] .skin-header-split__text { margin: 0 auto; }
[data-header-align$="-right"]  .skin-header-split__text { margin: 0 0 0 auto; }

/* ─── Headers ─────────────────────────────────────────────────────────────── */

.skin-hero-header,
.skin-hero-gradient-header,
.skin-hero-cinematic-header,
.skin-hero-spotlight-header,
.skin-hero-card-header {
  --font-scale: 1.05;
  --header-padding-v: 80px;
}
.cosmos-tablet .skin-hero-header,
.cosmos-tablet .skin-hero-gradient-header,
.cosmos-tablet .skin-hero-cinematic-header,
.cosmos-tablet .skin-hero-spotlight-header,
.cosmos-tablet .skin-hero-card-header { --font-scale: 1; --header-padding-v: 60px; }
.cosmos-mobile .skin-hero-header,
.cosmos-mobile .skin-hero-gradient-header,
.cosmos-mobile .skin-hero-cinematic-header,
.cosmos-mobile .skin-hero-spotlight-header,
.cosmos-mobile .skin-hero-card-header { --font-scale: 0.85; --header-padding-v: 40px; }
@media (max-width: 768px) {
  .skin-hero-header,
  .skin-hero-gradient-header,
  .skin-hero-cinematic-header,
  .skin-hero-spotlight-header,
  .skin-hero-card-header { --font-scale: 1; --header-padding-v: 60px; }
}
@media (max-width: 480px) {
  .skin-hero-header,
  .skin-hero-gradient-header,
  .skin-hero-cinematic-header,
  .skin-hero-spotlight-header,
  .skin-hero-card-header { --font-scale: 0.85; --header-padding-v: 40px; }
}

.skin-hero-header {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  /* Ink comes from the per-section contrast analysis (textContrast.ts):
     white on photos, palette/neutral ink on solid backdrops (image hidden). */
  color: var(--cos-hero-ink, #fff);
}
.skin-hero-header__inner {
  text-align: center;
}

/* Inner-page header variant (generator: params.pageHeader). Compact copy
   over the photo needs an even scrim — the classic hero has none. */
.skin-hero-header--page .cosmos-card-visual--cover::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.48) 60%, rgba(0, 0, 0, 0.62) 100%);
}
.skin-hero-header--page {
  --font-scale: 0.9;
  --header-padding-v: 56px;
}
.skin-hero-header--page .skin-hero-header__inner {
  max-width: min(760px, 100%);
}

/* ─── Hero - Gradient overlay ────────────────────────────────────────────── */

.skin-hero-gradient-header .cosmos-card-visual--cover::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    var(--cos-accent, #2563EB) 0%,
    color-mix(in srgb, var(--cos-accent, #2563EB) 60%, var(--cos-bg, #fff)) 50%,
    var(--cos-surface, #F3F4F6) 100%
  );
  mix-blend-mode: multiply;
  opacity: 0.85;
  pointer-events: none;
}

/* ─── Hero - Diagonal ────────────────────────────────────────────────────── */

.skin-hero-diagonal-header {
  align-items: stretch;
  justify-content: flex-start;
}

.skin-hero-diagonal-header .skin-hero-header__inner {
  text-align: left;
  display: flex;
  align-items: center;
  max-width: 40%;
  width: 40%;
  min-width: 280px;
  margin: 0;
  padding-left: clamp(1.5rem, 4vw, 4rem);
  padding-right: 2rem;
}

.skin-hero-diagonal-header .skin-hero-item {
  align-items: flex-start;
}

.skin-hero-diagonal-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--cos-accent, #2563EB);
  clip-path: polygon(0 0, 60% 0, 42% 100%, 0 100%);
  pointer-events: none;
}

.skin-hero-diagonal-header .cosmos-card-body {
  position: relative;
  z-index: 4;
}

@media (max-width: 768px) {
  .skin-hero-diagonal-header::before {
    clip-path: polygon(0 0, 100% 0, 100% 65%, 0 100%);
  }
  .skin-hero-diagonal-header .skin-hero-header__inner {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-right: 1.5rem;
  }
}

/* ─── Premium hero skins (cinematic, spotlight, card, panel) ─────────────── */

.skin-hero-cinematic-header,
.skin-hero-spotlight-header,
.skin-hero-card-header {
  --font-scale: 1.15;
}

.skin-hero-spotlight-header {
  --font-scale: 1.2;
}

/* Legibility on photos — the ink vars are computed per section from the
   layers behind the copy; the fallbacks are the historic on-photo whites. */
.skin-hero-cinematic-header .cosmos-card-body .skin-heading-xl,
.skin-hero-cinematic-header .cosmos-card-body .skin-heading-xl + .skin-body-lg,
.skin-hero-spotlight-header .cosmos-card-body .skin-heading-xl,
.skin-hero-spotlight-header .cosmos-card-body .skin-heading-xl + .skin-body-lg {
  color: var(--cos-hero-ink, #fff);
  text-shadow: var(--cos-hero-shadow, 0 2px 28px rgba(0, 0, 0, 0.55));
}

.skin-hero-cinematic-header .cosmos-card-body .skin-heading-xl + .skin-body-lg + .skin-body-lg,
.skin-hero-cinematic-header .cosmos-card-body .skin-hero-body,
.skin-hero-spotlight-header .cosmos-card-body .skin-heading-xl + .skin-body-lg + .skin-body-lg,
.skin-hero-spotlight-header .cosmos-card-body .skin-hero-body {
  font-size: calc(1.125rem * var(--font-scale, 1));
  letter-spacing: normal;
  text-transform: none;
  font-weight: 400;
  color: var(--cos-hero-ink-soft, rgba(255, 255, 255, 0.88));
  text-shadow: var(--cos-hero-shadow, 0 1px 16px rgba(0, 0, 0, 0.45));
  max-width: 42rem;
  line-height: 1.65;
  margin-top: 0.25rem;
}

.skin-hero-card-header .cosmos-card-body .skin-hero-body {
  color: var(--cos-hero-ink-soft, var(--cos-text-secondary, rgba(17, 24, 39, 0.65)));
  text-shadow: none;
  max-width: none;
}

.skin-hero-panel-header .skin-header-split__text .skin-heading-xl + .skin-body-lg + .skin-body-lg,
.skin-hero-panel-header .skin-header-split__text .skin-hero-body {
  color: var(--cos-hero-ink-soft, var(--cos-text-secondary, rgba(255, 255, 255, 0.72)));
  text-shadow: none;
  max-width: 36rem;
  line-height: 1.65;
}

/* No width cap on the title itself: the header block's Max Width slider
   (--header-max-width) is the one control over how wide the copy runs. A
   fixed 14ch cap here used to wrap titles into a narrow four-line stack
   regardless of that setting. */
.skin-hero-cinematic-header .skin-heading-xl,
.skin-hero-spotlight-header .skin-heading-xl {
  font-size: calc(4.25rem * var(--font-scale, 1));
  line-height: 1.05;
}

.skin-hero-card-header .skin-heading-xl {
  font-size: calc(3.5rem * var(--font-scale, 1));
  line-height: 1.08;
  color: var(--cos-hero-ink, var(--cos-text, #111));
}

/* Cinematic — directional scrim follows copy position */
.skin-hero-cinematic-header .cosmos-card-visual--cover::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
[data-header-align$="-left"] .skin-hero-cinematic-header .cosmos-card-visual--cover::after {
  background: linear-gradient(to top right, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 42%, transparent 72%);
}
[data-header-align$="-center"] .skin-hero-cinematic-header .cosmos-card-visual--cover::after {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.12) 100%);
}
[data-header-align$="-right"] .skin-hero-cinematic-header .cosmos-card-visual--cover::after {
  background: linear-gradient(to top left, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 42%, transparent 72%);
}

/* Spotlight — vignette behind centered copy */
.skin-hero-spotlight-header .cosmos-card-visual--cover::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 75% 65% at 50% 42%, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 52%, transparent 78%);
}

/* Card — floating palette panel */
.skin-hero-card-header .skin-hero-item {
  align-items: flex-start;
  width: 100%;
}
.skin-hero-card-header .skin-hero-item > .cosmos-card-body {
  position: relative;
  z-index: 4;
  background: color-mix(in srgb, var(--cos-surface, #faf9f7) 96%, transparent);
  color: var(--cos-text, #111827);
  padding: clamp(2rem, 4vw, 3.25rem);
  border-radius: 6px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  max-width: min(var(--header-max-width, 480px), 92%);
  /* A single long title word (e.g. "Illuminating" at 60px+) can be wider than
     the 480px card — min-content lets the card widen just enough to keep its
     own text inside (min-width beats max-width by spec), instead of the
     heading spilling over the background art. */
  min-width: min-content;
  margin: 0;
  gap: 1.25rem;
}
.skin-hero-card-header .skin-body-lg {
  color: var(--cos-hero-ink-soft, var(--cos-text-secondary, rgba(17, 24, 39, 0.65)));
  text-shadow: none;
}
.skin-hero-card-header .cosmos-card-visual--cover::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.22);
}

/* Panel — solid copy column, clean image column */
.skin-hero-panel-header {
  flex: 1;
  align-self: stretch;
}
.skin-hero-panel-header .skin-header-split__inner {
  min-height: 100%;
}
.skin-hero-panel-header .skin-header-split__text-area {
  background: var(--cos-bg, #0f2e2b);
}
.skin-hero-panel-header .skin-header-split__text .skin-heading-xl {
  color: var(--cos-hero-ink, var(--cos-text, #fff));
  font-size: calc(3.25rem * var(--font-scale, 1));
  line-height: 1.08;
  text-shadow: none;
}
.skin-hero-panel-header .skin-header-split__text .skin-heading-xl + .skin-body-lg {
  color: var(--cos-hero-ink-soft, var(--cos-text-secondary, rgba(255, 255, 255, 0.72)));
  text-shadow: none;
  letter-spacing: normal;
  text-transform: none;
  font-size: calc(1.125rem * var(--font-scale, 1));
  font-weight: 400;
}
.skin-hero-panel-header .skin-header-split__text .skin-body-lg {
  color: var(--cos-hero-ink-soft, var(--cos-text-secondary, rgba(255, 255, 255, 0.72)));
}

/* Secondary CTA as ghost on image heroes */
.skin-hero-cinematic-header .cosmos-btn-row .skin-btn-outlined,
.skin-hero-spotlight-header .cosmos-btn-row .skin-btn-outlined,
.skin-hero-card-header .cosmos-btn-row .skin-btn-outlined {
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
  background: transparent;
}
.skin-hero-card-header .cosmos-btn-row .skin-btn-outlined {
  border-color: var(--cos-text-muted, rgba(17, 24, 39, 0.35));
  color: var(--cos-text, #111);
}

/* Scroll indicators — shared positioning. --scroll-cue-offset-extra shifts
   the cue from its standard spacing (S / M / L in the hero extras panel) and
   is honoured by every placement below, strip or no strip. */
.cosmos-scroll-cue {
  position: absolute;
  bottom: calc(2.25rem + var(--scroll-cue-offset-extra, 0rem));
  z-index: 6;
  pointer-events: none;
}
.cosmos-scroll-cue--offset-s { --scroll-cue-offset-extra: -1rem; }
.cosmos-scroll-cue--offset-m { --scroll-cue-offset-extra: 0rem; }
.cosmos-scroll-cue--offset-l { --scroll-cue-offset-extra: 1.75rem; }
.cosmos-scroll-cue--pos-left {
  left: clamp(1.75rem, 4vw, 3rem);
  right: auto;
}
.cosmos-scroll-cue--pos-right {
  right: clamp(1.75rem, 4vw, 3rem);
  left: auto;
}
.cosmos-scroll-cue--pos-center {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

/* Glass Mouse */
.cosmos-scroll-cue--mouse {
  width: 28px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 12px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cosmos-scroll-cue--mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 9px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
  animation: cosmos-scroll-bounce 2.4s ease-in-out infinite;
}
.cosmos-scroll-cue--mouse::after {
  content: attr(data-label);
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  transform: translateY(-50%);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}
.cosmos-scroll-cue--mouse.cosmos-scroll-cue--pos-left::after {
  right: auto;
  left: calc(100% + 12px);
}
.cosmos-scroll-cue--mouse.cosmos-scroll-cue--pos-center::after {
  top: calc(100% + 10px);
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

/* Editorial Line */
.cosmos-scroll-cue--line {
  width: 1px;
  height: 64px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 35%,
    rgba(255, 255, 255, 0.45) 65%,
    rgba(255, 255, 255, 0) 100%
  );
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}
.cosmos-scroll-cue--line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  animation: cosmos-scroll-line-travel 2.6s ease-in-out infinite;
}
.cosmos-scroll-cue--line::after {
  content: attr(data-label);
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.48);
  white-space: nowrap;
}

/* Double Chevron */
.cosmos-scroll-cue--chevron {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: auto;
  height: auto;
}
.cosmos-scroll-cue__chevron {
  display: block;
  width: 11px;
  height: 11px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.72);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.72);
  transform: rotate(45deg);
  animation: cosmos-scroll-chevron 2.2s ease-in-out infinite;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.25));
}
.cosmos-scroll-cue__chevron--delay {
  margin-top: -5px;
  opacity: 0.45;
  animation-delay: 0.18s;
}
.cosmos-scroll-cue--chevron .cosmos-scroll-cue__label {
  margin-top: 10px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.48);
  text-transform: uppercase;
}

/* Luxury Pill */
.cosmos-scroll-cue--pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.cosmos-scroll-cue__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.55);
  animation: cosmos-scroll-dot-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
.cosmos-scroll-cue--pill .cosmos-scroll-cue__label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes cosmos-scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(11px); opacity: 0.3; }
}
@keyframes cosmos-scroll-line-travel {
  0%, 100% { top: 4px; opacity: 1; }
  50% { top: calc(100% - 9px); opacity: 0.35; }
}
@keyframes cosmos-scroll-chevron {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.85; }
  50% { transform: rotate(45deg) translateY(5px); opacity: 0.35; }
}
@keyframes cosmos-scroll-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.65); opacity: 0.45; }
}

/* Premium hero button row — wider gap, stronger primary CTA */
.skin-hero-cinematic-header .cosmos-btn-row,
.skin-hero-spotlight-header .cosmos-btn-row {
  gap: 1rem;
  margin-top: 0.35rem;
}
.skin-hero-cinematic-header .cosmos-btn-row .skin-btn-primary,
.skin-hero-spotlight-header .cosmos-btn-row .skin-btn-primary {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.28);
}
.skin-hero-cinematic-header .cosmos-btn-row .skin-btn-primary:hover,
.skin-hero-spotlight-header .cosmos-btn-row .skin-btn-primary:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.34);
  transform: translateY(-1px);
}
.skin-hero-cinematic-header .cosmos-btn-row a,
.skin-hero-spotlight-header .cosmos-btn-row a {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* Hero bottom strip — hours, news, contact, extras (all premium heroes) */
.skin-hero-cinematic-header,
.skin-hero-spotlight-header,
.skin-hero-card-header,
.skin-hero-panel-header {
  position: relative;
}

/* Reserve space + scroll-cue lift when strip is present.
   All hero layouts carry the extras now: .skin-hero-header covers every
   full-bleed hero (classic + premium); the panel hero roots on
   .skin-header-split so it's listed separately. */
.skin-hero-header:has(.cosmos-hero-strip),
.skin-hero-panel-header:has(.cosmos-hero-strip) {
  --hero-strip-reserve: 3.5rem;
  --scroll-cue-lift: 1.35rem;
}
.skin-hero-cinematic-header:has(.cosmos-hero-strip--glass-pills),
.skin-hero-spotlight-header:has(.cosmos-hero-strip--glass-pills) {
  --hero-strip-reserve: 4.75rem;
}
.skin-hero-header:has(.cosmos-hero-strip--status-bar),
.skin-hero-panel-header:has(.cosmos-hero-strip--status-bar) {
  --hero-strip-reserve: 3.75rem;
}
.skin-hero-header:has(.cosmos-hero-strip--status-bar .cosmos-hero-strip__row--secondary),
.skin-hero-panel-header:has(.cosmos-hero-strip--status-bar .cosmos-hero-strip__row--secondary) {
  --hero-strip-reserve: 7.5rem;
}
.skin-hero-header:has(.cosmos-hero-strip--classic),
.skin-hero-panel-header:has(.cosmos-hero-strip--classic) {
  --hero-strip-reserve: 3.25rem;
}

.skin-hero-header:has(.cosmos-hero-strip) .skin-hero-header__inner {
  padding-bottom: calc(var(--header-padding-v, 40px) + var(--hero-strip-reserve, 3.5rem) * 0.55);
}
.skin-hero-panel-header:has(.cosmos-hero-strip) .skin-header-split__inner {
  padding-bottom: calc(var(--hero-strip-reserve, 3.5rem) + 0.5rem);
}

.skin-hero-header:has(.cosmos-hero-strip) .cosmos-scroll-cue,
.skin-hero-panel-header:has(.cosmos-hero-strip) .cosmos-scroll-cue {
  bottom: calc(var(--hero-strip-reserve, 3.5rem) + var(--scroll-cue-lift, 1.35rem) + var(--scroll-cue-offset-extra, 0rem));
}

.cosmos-hero-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8125rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
}
.cosmos-hero-strip__track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.85rem;
  width: 100%;
  max-width: var(--website-max-width, 80rem);
  margin: 0 auto;
  padding: 0.9rem clamp(1.25rem, 4vw, 2.75rem);
  box-sizing: border-box;
  pointer-events: auto;
}
.cosmos-hero-strip__text,
.cosmos-hero-strip__link {
  display: inline;
}
.cosmos-hero-strip__link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.cosmos-hero-strip__link:hover {
  color: #fff;
  opacity: 1;
}
/* Lite editor: strip text is editable in place (#223). */
.cosmos-hero-strip__text--editable {
  cursor: text;
  outline: none;
  border-radius: 4px;
  box-shadow: 0 0 0 1px transparent;
  transition: box-shadow 0.15s ease;
}
.cosmos-hero-strip__text--editable:hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.cosmos-hero-strip__text--editable:focus {
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.85);
}
.cosmos-hero-strip__tag {
  display: inline-block;
  margin-right: 0.45em;
  font-size: 0.62em;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  vertical-align: baseline;
}

/* Classic — luxe full-width bar */
.cosmos-hero-strip--classic {
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.48) 55%, rgba(0, 0, 0, 0.18) 100%);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.cosmos-hero-strip--classic .cosmos-hero-strip__track {
  justify-content: center;
  gap: 0.65rem 1rem;
}
.cosmos-hero-strip--classic .cosmos-hero-strip__sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  margin: 0 0.15rem;
  flex-shrink: 0;
  transform: rotate(45deg);
}
.cosmos-hero-strip--classic .cosmos-hero-strip__item {
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 450;
}
.cosmos-hero-strip--classic .cosmos-hero-strip__item--accent,
.cosmos-hero-strip--classic .cosmos-hero-strip__item[data-kind="announcement"] {
  color: color-mix(in srgb, var(--cos-accent, #5eead4) 55%, #fff);
  font-weight: 600;
}

/* Glass pills — floating dock */
.cosmos-hero-strip--glass-pills {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.08) 45%, transparent 100%);
}
/* Desktop (>1024px): one dock row, always. The pills never drop to a second
   line — the long announcement pill yields first (ellipsis), the short badge
   chips keep their size. At 1024px and below (media query, container query,
   or the .cosmos-tablet/.cosmos-mobile device classes) the row wraps again.
   Without this the strip wrapped at whatever width the pills happened to
   exceed (~1200px for five pills), so the editor canvas and the preview
   disagreed whenever their widths differed by a few hundred px. */
.cosmos-hero-strip--glass-pills .cosmos-hero-strip__track {
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.45rem;
  padding-bottom: 1.35rem;
}
.cosmos-hero-strip--glass-pills .cosmos-hero-strip__pill {
  /* Badges never shrink — even a sub-pixel squeeze would trip the ellipsis. */
  flex: 0 0 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.07) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.cosmos-hero-strip--glass-pills .cosmos-hero-strip__pill > :is(.cosmos-hero-strip__text, .cosmos-hero-strip__link) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* The announcement is the only pill that gives way; it truncates with an
   ellipsis down to a readable stub (it is a link — the full text is a click away). */
.cosmos-hero-strip--glass-pills .cosmos-hero-strip__pill[data-kind="announcement"] {
  flex-shrink: 1;
  min-width: 8rem;
}
@media (max-width: 1024px) {
  .cosmos-hero-strip--glass-pills .cosmos-hero-strip__track { flex-wrap: wrap; }
  .cosmos-hero-strip--glass-pills .cosmos-hero-strip__pill { flex-shrink: 0; min-width: 0; }
}
@supports (container-type: inline-size) {
  @container cosmos-preview (max-width: 1024px) {
    .cosmos-hero-strip--glass-pills .cosmos-hero-strip__track { flex-wrap: wrap; }
    .cosmos-hero-strip--glass-pills .cosmos-hero-strip__pill { flex-shrink: 0; min-width: 0; }
    /* Container-query copy of the "hero extras flow below the copy" block
       (see the @media (max-width: 1024px) version further down). */
    .skin-hero-header:has(.cosmos-hero-strip) {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      grid-template-rows: minmax(0, 1fr) auto auto;
    }
    .skin-hero-header:has(.cosmos-hero-strip) > .skin-hero-header__inner {
      grid-row: 1;
      padding-bottom: var(--header-padding-v, 40px);
    }
    .skin-hero-header:has(.cosmos-hero-strip) > .cosmos-hero-strip {
      grid-row: 3;
      position: static;
    }
    .skin-hero-card-header:has(.cosmos-hero-strip) > :is(.cosmos-hero-strip--classic, .cosmos-hero-strip--editorial, .cosmos-hero-strip--status-bar) {
      margin: 0 0.75rem 0.75rem;
    }
    .skin-hero-header:has(.cosmos-hero-strip) > .cosmos-scroll-cue {
      grid-row: 2;
      position: relative;
      inset: auto;
      transform: none;
      margin: 0 clamp(1.25rem, 4vw, 3rem) max(0.35rem, calc(0.85rem + var(--scroll-cue-offset-extra, 0rem)));
    }
    .skin-hero-header:has(.cosmos-hero-strip) > .cosmos-scroll-cue--pos-left { justify-self: start; }
    .skin-hero-header:has(.cosmos-hero-strip) > .cosmos-scroll-cue--pos-right { justify-self: end; }
    .skin-hero-header:has(.cosmos-hero-strip) > .cosmos-scroll-cue--pos-center { justify-self: center; }
    .cosmos-hero-strip--glass-pills .cosmos-hero-strip__pill[data-kind="announcement"] {
      flex: 0 1 auto;
      max-width: 100%;
      white-space: normal;
      text-align: center;
      line-height: 1.35;
    }
    .cosmos-hero-strip--glass-pills .cosmos-hero-strip__pill[data-kind="announcement"] > :is(.cosmos-hero-strip__text, .cosmos-hero-strip__link) {
      overflow: visible;
      text-overflow: clip;
    }
  }
}
.cosmos-hero-strip--glass-pills .cosmos-hero-strip__pill:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.32);
}
.cosmos-hero-strip--glass-pills .cosmos-hero-strip__pill--accent {
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--cos-accent, #2563eb) 42%, rgba(255, 255, 255, 0.14)) 0%,
    color-mix(in srgb, var(--cos-accent, #2563eb) 22%, rgba(255, 255, 255, 0.06)) 100%
  );
  border-color: color-mix(in srgb, var(--cos-accent, #2563eb) 55%, rgba(255, 255, 255, 0.28));
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 32px color-mix(in srgb, var(--cos-accent, #2563eb) 25%, rgba(0, 0, 0, 0.25));
}

/* Editorial — refined micro-type row */
.cosmos-hero-strip--editorial {
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.cosmos-hero-strip--editorial .cosmos-hero-strip__track {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  gap: 0.75rem 1rem;
}
.cosmos-hero-strip--editorial .cosmos-hero-strip__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  flex-shrink: 0;
}
.cosmos-hero-strip--editorial .cosmos-hero-strip__item {
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.58);
}
.cosmos-hero-strip--editorial .cosmos-hero-strip__item--accent,
.cosmos-hero-strip--editorial .cosmos-hero-strip__item[data-kind="announcement"] {
  color: rgba(255, 255, 255, 0.96);
  font-weight: 600;
}
.cosmos-hero-strip--editorial .cosmos-hero-strip__tag {
  color: color-mix(in srgb, var(--cos-accent, #5eead4) 70%, rgba(255, 255, 255, 0.5));
}

/* Status bar — headline news, then a quieter line of facts */
.cosmos-hero-strip--status-bar {
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.55) 100%);
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.cosmos-hero-strip--status-bar .cosmos-hero-strip__track {
  justify-content: center;
  gap: 0.5rem 1rem;
}
.cosmos-hero-strip--status-bar .cosmos-hero-strip__item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 450;
}
/* Two deliberate lines: the headline, then hours / contact / extras.
   The renderer puts the second tier in its own full-width row, laid out as
   inline text rather than flex items: it wraps like a sentence (hours only
   break between day groups — the renderer makes the spaces inside a group
   non-breaking), the separator dot is the previous item's ::after so it can
   never lead a line, and text-wrap: balance spreads a two-line wrap evenly
   instead of leaving one short extra orphaned on the last line. Narrow
   layouts stack the row's items centred instead (see the ≤768px blocks). */
.cosmos-hero-strip--status-bar .cosmos-hero-strip__row--secondary {
  display: block;
  flex-basis: 100%;
  width: 100%;
  min-width: 0;
  margin-top: -0.1rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
  text-wrap: balance;
}
.cosmos-hero-strip--status-bar .cosmos-hero-strip__row--secondary .cosmos-hero-strip__item {
  display: inline;
  color: inherit;
}
/* Only the hours string is long enough to need a break inside it (between day
   groups); an address or extra split across lines reads as two items. */
.cosmos-hero-strip--status-bar .cosmos-hero-strip__row--secondary .cosmos-hero-strip__item[data-kind="hours"] { white-space: normal; }
.cosmos-hero-strip--status-bar .cosmos-hero-strip__row--secondary .cosmos-hero-strip__item:not(:last-child)::after {
  content: '\00a0·';
  padding: 0 0.6rem 0 0.45rem;
  color: rgba(255, 255, 255, 0.35);
}
.cosmos-hero-strip--status-bar .cosmos-hero-strip__item--accent,
.cosmos-hero-strip--status-bar .cosmos-hero-strip__item[data-kind="announcement"] {
  color: color-mix(in srgb, var(--cos-accent, #5eead4) 60%, #fff);
  font-weight: 600;
  /* Takes the whole first line and wraps inside it — a long headline never
     runs past the hero's edge. */
  flex: 1 1 12rem;
  min-width: 0;
  white-space: normal;
  justify-content: center;
  text-align: center;
}
.cosmos-hero-strip--status-bar .cosmos-hero-strip__tag {
  color: rgba(255, 255, 255, 0.38);
}

/* The strip is always centred: it is the hero's footer, not part of the copy
   block, so the header's alignment (data-header-align) does not steer it. */

/* Card hero — inset floating strip over image */
.skin-hero-card-header .cosmos-hero-strip--classic,
.skin-hero-card-header .cosmos-hero-strip--editorial,
.skin-hero-card-header .cosmos-hero-strip--status-bar {
  left: clamp(1rem, 3vw, 1.75rem);
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  width: auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}
.skin-hero-card-header:has(.cosmos-hero-strip--classic),
.skin-hero-card-header:has(.cosmos-hero-strip--editorial),
.skin-hero-card-header:has(.cosmos-hero-strip--status-bar) {
  --hero-strip-reserve: 4.5rem;
}

/* Panel hero — full-bleed strip, dark on image edge */
.skin-hero-panel-header .cosmos-hero-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.skin-hero-card-header .cosmos-hero-strip {
  border-radius: 0 0 8px 8px;
}

@media (max-width: 768px) {
  .skin-hero-header:has(.cosmos-hero-strip),
  .skin-hero-panel-header:has(.cosmos-hero-strip) {
    --hero-strip-reserve: 4.75rem;
    --scroll-cue-lift: 1rem;
  }
  .skin-hero-cinematic-header:has(.cosmos-hero-strip--glass-pills),
  .skin-hero-spotlight-header:has(.cosmos-hero-strip--glass-pills) {
    --hero-strip-reserve: 5.75rem;
  }
  .skin-hero-cinematic-header:has(.cosmos-hero-strip--status-bar),
  .skin-hero-spotlight-header:has(.cosmos-hero-strip--status-bar) {
    --hero-strip-reserve: 5.25rem;
  }

  .skin-hero-cinematic-header .skin-heading-xl,
  .skin-hero-spotlight-header .skin-heading-xl {
    font-size: calc(2.75rem * var(--font-scale, 1));
    max-width: none;
  }
  .cosmos-scroll-cue--mouse::after { display: none; }
  .cosmos-scroll-cue--mouse.cosmos-scroll-cue--pos-center::after { display: block; }
  .cosmos-scroll-cue--line::after { font-size: 8px; letter-spacing: 0.18em; }
  .cosmos-scroll-cue--chevron .cosmos-scroll-cue__label,
  .cosmos-scroll-cue--pill .cosmos-scroll-cue__label { display: none; }

  .cosmos-hero-strip__track {
    padding: 0.75rem 1rem;
    font-size: 0.6875rem;
    gap: 0.4rem 0.55rem;
  }
  .cosmos-hero-strip--classic .cosmos-hero-strip__track {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  .cosmos-hero-strip--classic .cosmos-hero-strip__item {
    white-space: normal;
    max-width: 100%;
  }
  .cosmos-hero-strip--glass-pills .cosmos-hero-strip__track {
    justify-content: center;
    padding-bottom: 1rem;
  }
  .cosmos-hero-strip--glass-pills .cosmos-hero-strip__pill {
    font-size: 0.6875rem;
    padding: 0.38rem 0.75rem;
  }
  .cosmos-hero-strip--editorial .cosmos-hero-strip__track {
    justify-content: center;
    letter-spacing: 0.14em;
  }
  .cosmos-hero-strip--editorial .cosmos-hero-strip__item {
    white-space: normal;
    text-align: center;
  }
  .cosmos-hero-strip--status-bar .cosmos-hero-strip__track {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .cosmos-hero-strip--status-bar .cosmos-hero-strip__item--accent,
  .cosmos-hero-strip--status-bar .cosmos-hero-strip__item[data-kind="announcement"] {
    flex: none;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }
  .cosmos-hero-strip--status-bar .cosmos-hero-strip__item {
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
  .cosmos-hero-strip--status-bar .cosmos-hero-strip__row--secondary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0;
    text-align: center;
    text-wrap: wrap;
  }
  .cosmos-hero-strip--status-bar .cosmos-hero-strip__row--secondary .cosmos-hero-strip__item { display: inline-flex; }
  .cosmos-hero-strip--status-bar .cosmos-hero-strip__row--secondary .cosmos-hero-strip__item::after { display: none; }

  .skin-hero-card-header .cosmos-hero-strip--classic,
  .skin-hero-card-header .cosmos-hero-strip--editorial,
  .skin-hero-card-header .cosmos-hero-strip--status-bar {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  /* Panel hero: the strip flows below the copy instead of overlaying it — its
     height is content-driven (hours + news + extras wrap), so a fixed overlay
     reserve can't track it. In flow it can never cover the CTA, and over the
     solid panel it reads the same. */
  .skin-hero-panel-header { flex-direction: column; }
  .skin-hero-panel-header .cosmos-hero-strip { position: static; }
  .skin-hero-panel-header:has(.cosmos-hero-strip) .skin-header-split__inner {
    padding-bottom: 0.75rem;
  }
}

/* ─── Narrow widths: hero extras flow below the copy ───────────────────────
   On desktop the strip and the scroll cue overlay the hero's bottom edge and
   the copy reserves a fixed --hero-strip-reserve above them. On phones the
   strip's height is content-driven (the pills wrap onto two or three rows) and
   no fixed reserve can track it — it covered the CTA row and the scroll cue.
   So at ≤768px the full-bleed hero becomes a 3-row grid: copy (takes all the
   free height, still aligned by data-header-align — flex-start/center/flex-end
   behave as start/center/end in grid), then the cue, then the strip, all in
   flow. The hero simply grows when the extras need more room. The panel hero
   already flows its strip; its cue joins the column the same way.
   The full-bleed rules kick in at 1024px — the width below which the glass
   pills start wrapping (see the flex-wrap rules above) — so the overlay never
   outgrows its reserve; the panel hero joins at 768px where it becomes a
   column. The block is repeated for the three "narrow" contexts (viewport
   media query, editor container query, .cosmos-tablet/.cosmos-mobile classes). */
@media (max-width: 1024px) {
  .skin-hero-header:has(.cosmos-hero-strip) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto auto;
  }
  .skin-hero-header:has(.cosmos-hero-strip) > .skin-hero-header__inner {
    grid-row: 1;
    padding-bottom: var(--header-padding-v, 40px);
  }
  .skin-hero-header:has(.cosmos-hero-strip) > .cosmos-hero-strip {
    grid-row: 3;
    position: static;
  }
  .skin-hero-card-header:has(.cosmos-hero-strip) > :is(.cosmos-hero-strip--classic, .cosmos-hero-strip--editorial, .cosmos-hero-strip--status-bar) {
    margin: 0 0.75rem 0.75rem;
  }
  .skin-hero-header:has(.cosmos-hero-strip) > .cosmos-scroll-cue {
    grid-row: 2;
    position: relative;
    inset: auto;
    transform: none;
    margin: 0 clamp(1.25rem, 4vw, 3rem) max(0.35rem, calc(0.85rem + var(--scroll-cue-offset-extra, 0rem)));
  }
  .skin-hero-header:has(.cosmos-hero-strip) > .cosmos-scroll-cue--pos-left { justify-self: start; }
  .skin-hero-header:has(.cosmos-hero-strip) > .cosmos-scroll-cue--pos-right { justify-self: end; }
  .skin-hero-header:has(.cosmos-hero-strip) > .cosmos-scroll-cue--pos-center { justify-self: center; }
  /* The announcement is the one long pill: wrap its text inside the row
     instead of running past the hero's edge. */
  .cosmos-hero-strip--glass-pills .cosmos-hero-strip__pill[data-kind="announcement"] {
    flex: 0 1 auto;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }
  .cosmos-hero-strip--glass-pills .cosmos-hero-strip__pill[data-kind="announcement"] > :is(.cosmos-hero-strip__text, .cosmos-hero-strip__link) {
    overflow: visible;
    text-overflow: clip;
  }
}
@media (max-width: 768px) {
  .skin-hero-panel-header:has(.cosmos-hero-strip) > .cosmos-hero-strip { order: 2; }
  .skin-hero-panel-header:has(.cosmos-hero-strip) > .cosmos-scroll-cue {
    order: 1;
    position: relative;
    inset: auto;
    transform: none;
    margin: 0 clamp(1.25rem, 4vw, 3rem) max(0.35rem, calc(0.85rem + var(--scroll-cue-offset-extra, 0rem)));
  }
  .skin-hero-panel-header:has(.cosmos-hero-strip) > .cosmos-scroll-cue--pos-left { align-self: flex-start; }
  .skin-hero-panel-header:has(.cosmos-hero-strip) > .cosmos-scroll-cue--pos-right { align-self: flex-end; }
  .skin-hero-panel-header:has(.cosmos-hero-strip) > .cosmos-scroll-cue--pos-center { align-self: center; }
}

/*
 * Editor device preview uses .cosmos-mobile / .cosmos-tablet on a narrow
 * container while the browser viewport may stay wide — @media alone won't fire.
 * @container rules respond to the preview frame width (see containerType on preview wrapper).
 */
.cosmos-tablet .skin-hero-cinematic-header,
.cosmos-tablet .skin-hero-spotlight-header,
.cosmos-tablet .skin-hero-card-header {
  --font-scale: 1;
}
.cosmos-mobile .skin-hero-cinematic-header,
.cosmos-mobile .skin-hero-spotlight-header,
.cosmos-mobile .skin-hero-card-header {
  --font-scale: 0.85;
}

.cosmos-tablet .cosmos-header-typo {
  --header-padding-h: 1.75rem !important;
  --header-padding-v: 3rem !important;
}
.cosmos-mobile .cosmos-header-typo {
  --header-padding-h: 1.25rem !important;
  --header-padding-v: 2.5rem !important;
}

/* Hero strip parity — mirrors the @media (max-width: 768px) strip rules so the
   strip compacts and reserves enough room in the tablet/mobile preview too. */
:is(.cosmos-tablet, .cosmos-mobile) :is(.skin-hero-header, .skin-hero-panel-header):has(.cosmos-hero-strip) {
  --hero-strip-reserve: 4.75rem;
  --scroll-cue-lift: 1rem;
}
:is(.cosmos-tablet, .cosmos-mobile) :is(.skin-hero-cinematic-header, .skin-hero-spotlight-header):has(.cosmos-hero-strip--glass-pills) {
  --hero-strip-reserve: 5.75rem;
}
:is(.cosmos-tablet, .cosmos-mobile) :is(.skin-hero-cinematic-header, .skin-hero-spotlight-header):has(.cosmos-hero-strip--status-bar) {
  --hero-strip-reserve: 5.25rem;
}
:is(.cosmos-tablet, .cosmos-mobile) .cosmos-hero-strip__track {
  padding: 0.75rem 1rem;
  font-size: 0.6875rem;
  gap: 0.4rem 0.55rem;
}
:is(.cosmos-tablet, .cosmos-mobile) .cosmos-hero-strip--classic .cosmos-hero-strip__track {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
:is(.cosmos-tablet, .cosmos-mobile) .cosmos-hero-strip--classic .cosmos-hero-strip__item {
  white-space: normal;
  max-width: 100%;
}
:is(.cosmos-tablet, .cosmos-mobile) .cosmos-hero-strip--glass-pills .cosmos-hero-strip__track {
  flex-wrap: wrap;
  justify-content: center;
  padding-bottom: 1rem;
}
:is(.cosmos-tablet, .cosmos-mobile) .cosmos-hero-strip--glass-pills .cosmos-hero-strip__pill {
  flex-shrink: 0;
  min-width: 0;
  font-size: 0.6875rem;
  padding: 0.38rem 0.75rem;
}
:is(.cosmos-tablet, .cosmos-mobile) .cosmos-hero-strip--editorial .cosmos-hero-strip__track {
  justify-content: center;
  letter-spacing: 0.14em;
}
:is(.cosmos-tablet, .cosmos-mobile) .cosmos-hero-strip--editorial .cosmos-hero-strip__item {
  white-space: normal;
  text-align: center;
}
:is(.cosmos-tablet, .cosmos-mobile) .cosmos-hero-strip--status-bar .cosmos-hero-strip__track {
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}
:is(.cosmos-tablet, .cosmos-mobile) .cosmos-hero-strip--status-bar :is(.cosmos-hero-strip__item--accent, .cosmos-hero-strip__item[data-kind="announcement"]) {
  flex: none;
  justify-content: center;
  text-align: center;
  white-space: normal;
}
:is(.cosmos-tablet, .cosmos-mobile) .cosmos-hero-strip--status-bar .cosmos-hero-strip__item {
  justify-content: center;
  white-space: normal;
  text-align: center;
}
:is(.cosmos-tablet, .cosmos-mobile) .cosmos-hero-strip--status-bar .cosmos-hero-strip__row--secondary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0;
  text-align: center;
  text-wrap: wrap;
}
:is(.cosmos-tablet, .cosmos-mobile) .cosmos-hero-strip--status-bar .cosmos-hero-strip__row--secondary .cosmos-hero-strip__item { display: inline-flex; }
:is(.cosmos-tablet, .cosmos-mobile) .cosmos-hero-strip--status-bar .cosmos-hero-strip__row--secondary .cosmos-hero-strip__item::after { display: none; }
:is(.cosmos-tablet, .cosmos-mobile) .skin-hero-card-header :is(.cosmos-hero-strip--classic, .cosmos-hero-strip--editorial, .cosmos-hero-strip--status-bar) {
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
}
:is(.cosmos-tablet, .cosmos-mobile) .skin-hero-panel-header { flex-direction: column; }
:is(.cosmos-tablet, .cosmos-mobile) .skin-hero-panel-header .cosmos-hero-strip { position: static; }
:is(.cosmos-tablet, .cosmos-mobile) .skin-hero-panel-header:has(.cosmos-hero-strip) .skin-header-split__inner {
  padding-bottom: 0.75rem;
}
/* Device-class copy of the "hero extras flow below the copy" block (see the
   @media (max-width: 768px) version above for the rationale). */
:is(.cosmos-tablet, .cosmos-mobile) .skin-hero-header:has(.cosmos-hero-strip) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto auto;
}
:is(.cosmos-tablet, .cosmos-mobile) .skin-hero-header:has(.cosmos-hero-strip) > .skin-hero-header__inner {
  grid-row: 1;
  padding-bottom: var(--header-padding-v, 40px);
}
:is(.cosmos-tablet, .cosmos-mobile) .skin-hero-header:has(.cosmos-hero-strip) > .cosmos-hero-strip {
  grid-row: 3;
  position: static;
}
:is(.cosmos-tablet, .cosmos-mobile) .skin-hero-card-header:has(.cosmos-hero-strip) > :is(.cosmos-hero-strip--classic, .cosmos-hero-strip--editorial, .cosmos-hero-strip--status-bar) {
  margin: 0 0.75rem 0.75rem;
}
:is(.cosmos-tablet, .cosmos-mobile) .skin-hero-header:has(.cosmos-hero-strip) > .cosmos-scroll-cue { grid-row: 2; }
:is(.cosmos-tablet, .cosmos-mobile) .skin-hero-panel-header:has(.cosmos-hero-strip) > .cosmos-hero-strip { order: 2; }
:is(.cosmos-tablet, .cosmos-mobile) .skin-hero-panel-header:has(.cosmos-hero-strip) > .cosmos-scroll-cue { order: 1; }
:is(.cosmos-tablet, .cosmos-mobile) :is(.skin-hero-header, .skin-hero-panel-header):has(.cosmos-hero-strip) > .cosmos-scroll-cue {
  position: relative;
  inset: auto;
  transform: none;
  margin: 0 clamp(1.25rem, 4vw, 3rem) max(0.35rem, calc(0.85rem + var(--scroll-cue-offset-extra, 0rem)));
}
:is(.cosmos-tablet, .cosmos-mobile) :is(.skin-hero-header, .skin-hero-panel-header):has(.cosmos-hero-strip) > .cosmos-scroll-cue--pos-left { justify-self: start; align-self: flex-start; }
:is(.cosmos-tablet, .cosmos-mobile) :is(.skin-hero-header, .skin-hero-panel-header):has(.cosmos-hero-strip) > .cosmos-scroll-cue--pos-right { justify-self: end; align-self: flex-end; }
:is(.cosmos-tablet, .cosmos-mobile) :is(.skin-hero-header, .skin-hero-panel-header):has(.cosmos-hero-strip) > .cosmos-scroll-cue--pos-center { justify-self: center; align-self: center; }
:is(.cosmos-tablet, .cosmos-mobile) .cosmos-hero-strip--glass-pills .cosmos-hero-strip__pill[data-kind="announcement"] {
  flex: 0 1 auto;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}
:is(.cosmos-tablet, .cosmos-mobile) .cosmos-hero-strip--glass-pills .cosmos-hero-strip__pill[data-kind="announcement"] > :is(.cosmos-hero-strip__text, .cosmos-hero-strip__link) {
  overflow: visible;
  text-overflow: clip;
}

.cosmos-tablet .skin-hero-cinematic-header .skin-heading-xl,
.cosmos-tablet .skin-hero-spotlight-header .skin-heading-xl {
  font-size: calc(3.25rem * var(--font-scale, 1));
  max-width: none;
  line-height: 1.08;
}
.cosmos-mobile .skin-hero-cinematic-header .skin-heading-xl,
.cosmos-mobile .skin-hero-spotlight-header .skin-heading-xl {
  font-size: calc(2.75rem * var(--font-scale, 1));
  max-width: none;
  line-height: 1.08;
}
.cosmos-tablet .skin-hero-card-header .skin-heading-xl,
.cosmos-mobile .skin-hero-card-header .skin-heading-xl {
  font-size: calc(2.5rem * var(--font-scale, 1));
  max-width: none;
}

.cosmos-tablet .skin-hero-cinematic-header .cosmos-card-body .skin-hero-body,
.cosmos-tablet .skin-hero-spotlight-header .cosmos-card-body .skin-hero-body,
.cosmos-mobile .skin-hero-cinematic-header .cosmos-card-body .skin-hero-body,
.cosmos-mobile .skin-hero-spotlight-header .cosmos-card-body .skin-hero-body {
  max-width: 100%;
}

.cosmos-tablet .skin-hero-cinematic-header .cosmos-btn-row,
.cosmos-tablet .skin-hero-spotlight-header .cosmos-btn-row,
.cosmos-mobile .skin-hero-cinematic-header .cosmos-btn-row,
.cosmos-mobile .skin-hero-spotlight-header .cosmos-btn-row {
  gap: 0.65rem;
}

.cosmos-mobile .cosmos-scroll-cue--mouse::after { display: none; }
.cosmos-mobile .cosmos-scroll-cue--mouse.cosmos-scroll-cue--pos-center::after { display: block; }
.cosmos-mobile .cosmos-scroll-cue--chevron .cosmos-scroll-cue__label,
.cosmos-mobile .cosmos-scroll-cue--pill .cosmos-scroll-cue__label { display: none; }

.cosmos-mobile .skin-hero-header:has(.cosmos-hero-strip),
.cosmos-mobile .skin-hero-panel-header:has(.cosmos-hero-strip) {
  --hero-strip-reserve: 4.75rem;
  --scroll-cue-lift: 1rem;
}
.cosmos-mobile .skin-hero-cinematic-header:has(.cosmos-hero-strip--glass-pills),
.cosmos-mobile .skin-hero-spotlight-header:has(.cosmos-hero-strip--glass-pills) {
  --hero-strip-reserve: 5.75rem;
}
.cosmos-mobile .skin-hero-cinematic-header:has(.cosmos-hero-strip--status-bar),
.cosmos-mobile .skin-hero-spotlight-header:has(.cosmos-hero-strip--status-bar) {
  --hero-strip-reserve: 5.25rem;
}

.cosmos-mobile .cosmos-hero-strip__track {
  padding: 0.75rem 1rem;
  font-size: 0.6875rem;
  gap: 0.4rem 0.55rem;
}
.cosmos-mobile .cosmos-hero-strip--classic .cosmos-hero-strip__track {
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.cosmos-mobile .cosmos-hero-strip--classic .cosmos-hero-strip__item { white-space: normal; }
.cosmos-mobile .cosmos-hero-strip--glass-pills .cosmos-hero-strip__track { justify-content: center; }
.cosmos-mobile .cosmos-hero-strip--glass-pills .cosmos-hero-strip__pill {
  font-size: 0.6875rem;
  padding: 0.38rem 0.75rem;
}
.cosmos-mobile .cosmos-hero-strip--editorial .cosmos-hero-strip__track { justify-content: center; }
.cosmos-mobile .cosmos-hero-strip--editorial .cosmos-hero-strip__item { white-space: normal; text-align: center; }
.cosmos-mobile .cosmos-hero-strip--status-bar .cosmos-hero-strip__track {
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}
.cosmos-mobile .cosmos-hero-strip--status-bar .cosmos-hero-strip__item--accent,
.cosmos-mobile .cosmos-hero-strip--status-bar .cosmos-hero-strip__item[data-kind="announcement"] {
  flex: none;
  justify-content: center;
  white-space: normal;
  text-align: center;
}
.cosmos-mobile .cosmos-hero-strip--status-bar .cosmos-hero-strip__row--secondary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0;
  text-align: center;
  text-wrap: wrap;
}
.cosmos-mobile .cosmos-hero-strip--status-bar .cosmos-hero-strip__row--secondary .cosmos-hero-strip__item { display: inline-flex; }
.cosmos-mobile .cosmos-hero-strip--status-bar .cosmos-hero-strip__row--secondary .cosmos-hero-strip__item::after { display: none; }
.cosmos-mobile .skin-hero-card-header .cosmos-hero-strip--classic,
.cosmos-mobile .skin-hero-card-header .cosmos-hero-strip--editorial,
.cosmos-mobile .skin-hero-card-header .cosmos-hero-strip--status-bar {
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
}

@supports (container-type: inline-size) {
  @container cosmos-preview (max-width: 768px) {
    .skin-hero-cinematic-header,
    .skin-hero-spotlight-header,
    .skin-hero-card-header { --font-scale: 1; --header-padding-v: 60px; }
    .cosmos-header-typo {
      --header-padding-h: 1.75rem !important;
      --header-padding-v: 3rem !important;
    }
    .skin-hero-cinematic-header .skin-heading-xl,
    .skin-hero-spotlight-header .skin-heading-xl {
      font-size: calc(3.25rem * var(--font-scale, 1));
      max-width: none;
      line-height: 1.08;
    }
    .skin-hero-card-header .skin-heading-xl {
      font-size: calc(2.75rem * var(--font-scale, 1));
      max-width: none;
    }
    .skin-hero-cinematic-header .cosmos-card-body .skin-hero-body,
    .skin-hero-spotlight-header .cosmos-card-body .skin-hero-body {
      max-width: 100%;
    }
    .skin-hero-header:has(.cosmos-hero-strip),
    .skin-hero-panel-header:has(.cosmos-hero-strip) {
      --hero-strip-reserve: 4.75rem;
      --scroll-cue-lift: 1rem;
    }
    .cosmos-hero-strip__track {
      padding: 0.75rem 1rem;
      font-size: 0.6875rem;
    }
    .cosmos-hero-strip--glass-pills .cosmos-hero-strip__track { justify-content: center; }
    .cosmos-hero-strip--status-bar .cosmos-hero-strip__track {
      flex-direction: column;
      align-items: stretch;
    }
    /* Panel hero in flow (mirrors the 768px media block) + its cue in the column. */
    .skin-hero-panel-header { flex-direction: column; }
    .skin-hero-panel-header .cosmos-hero-strip { position: static; }
    .skin-hero-panel-header:has(.cosmos-hero-strip) .skin-header-split__inner { padding-bottom: 0.75rem; }
    .skin-hero-panel-header:has(.cosmos-hero-strip) > .cosmos-hero-strip { order: 2; }
    .skin-hero-panel-header:has(.cosmos-hero-strip) > .cosmos-scroll-cue {
      order: 1;
      position: relative;
      inset: auto;
      transform: none;
      margin: 0 clamp(1.25rem, 4vw, 3rem) max(0.35rem, calc(0.85rem + var(--scroll-cue-offset-extra, 0rem)));
    }
    .skin-hero-panel-header:has(.cosmos-hero-strip) > .cosmos-scroll-cue--pos-left { align-self: flex-start; }
    .skin-hero-panel-header:has(.cosmos-hero-strip) > .cosmos-scroll-cue--pos-right { align-self: flex-end; }
    .skin-hero-panel-header:has(.cosmos-hero-strip) > .cosmos-scroll-cue--pos-center { align-self: center; }
  }
  @container cosmos-preview (max-width: 480px) {
    .skin-hero-cinematic-header,
    .skin-hero-spotlight-header,
    .skin-hero-card-header { --font-scale: 0.85; --header-padding-v: 40px; }
    .cosmos-header-typo {
      --header-padding-h: 1.25rem !important;
      --header-padding-v: 2.5rem !important;
    }
    .skin-hero-cinematic-header .skin-heading-xl,
    .skin-hero-spotlight-header .skin-heading-xl {
      font-size: calc(2.75rem * var(--font-scale, 1));
      max-width: none;
    }
    .skin-hero-card-header .skin-heading-xl {
      font-size: calc(2.5rem * var(--font-scale, 1));
      max-width: none;
    }
    .cosmos-scroll-cue--mouse::after { display: none; }
    .cosmos-scroll-cue--chevron .cosmos-scroll-cue__label,
    .cosmos-scroll-cue--pill .cosmos-scroll-cue__label { display: none; }
    .skin-hero-cinematic-header:has(.cosmos-hero-strip--glass-pills),
    .skin-hero-spotlight-header:has(.cosmos-hero-strip--glass-pills) {
      --hero-strip-reserve: 5.75rem;
    }
    .cosmos-hero-strip--classic .cosmos-hero-strip__item,
    .cosmos-hero-strip--editorial .cosmos-hero-strip__item,
    .cosmos-hero-strip--status-bar .cosmos-hero-strip__item {
      white-space: normal;
      text-align: center;
      justify-content: center;
    }
    .cosmos-hero-strip--status-bar .cosmos-hero-strip__row--secondary {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
      margin-top: 0;
      text-align: center;
      text-wrap: wrap;
    }
    .cosmos-hero-strip--status-bar .cosmos-hero-strip__row--secondary .cosmos-hero-strip__item { display: inline-flex; }
    .cosmos-hero-strip--status-bar .cosmos-hero-strip__row--secondary .cosmos-hero-strip__item::after { display: none; }
  }
}

.skin-section-header {
  padding-top: 3rem;
  margin-bottom: 2rem;
  text-align: center;
}

.skin-cta-header {
  padding: 5rem 0;
  text-align: center;
  background-color: var(--cos-bg, #FFFFFF);
  color: var(--cos-text, #111827);
}
.skin-cta-header__inner {
  max-width: 36rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

[data-has-bg-img] .skin-footer-header,
[data-has-bg-img] .skin-cta-header {
  background: transparent;
}

.skin-footer-header {
  background: var(--cos-bg, #FFFFFF);
  padding: 3rem 0 1.5rem;
  text-align: center;
  color: var(--cos-text-muted, rgba(17, 24, 39, 0.45));
}
.skin-footer-header__inner {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Social icons row (issue #191) — shown when identity.social has entries. */
.skin-footer-header__social {
  display: flex;
  justify-content: center;
  gap: 0.875rem;
  margin-top: 1.25rem;
}

.skin-footer-header__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  color: var(--palette-text, currentColor);
  opacity: 0.65;
  border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
  transition: opacity 0.15s ease, transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.skin-footer-header__social-link:hover,
.skin-footer-header__social-link:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
  border-color: color-mix(in srgb, currentColor 60%, transparent);
  background: color-mix(in srgb, currentColor 12%, transparent);
}

/* Social icon families (identity.socialIconStyle) — "outline" is the base above.
   Selectors carry the footer class too: `[data-section-id] a:not([class*="skin-btn"])`
   forces `color: inherit` on every section link and would otherwise win. */

/* Filled: solid discs in the footer text colour, the glyph cut out in the footer background. */
.skin-footer-header .skin-footer-header__social--filled .skin-footer-header__social-link {
  border-color: transparent;
  background: var(--cos-text, currentColor);
  color: var(--cos-bg, #fff);
  opacity: 0.9;
}
.skin-footer-header .skin-footer-header__social--filled .skin-footer-header__social-link svg {
  stroke-width: 1.9;
}
.skin-footer-header .skin-footer-header__social--filled .skin-footer-header__social-link:hover,
.skin-footer-header .skin-footer-header__social--filled .skin-footer-header__social-link:focus-visible {
  opacity: 1;
  background: var(--cos-text, currentColor);
  border-color: transparent;
}

/* Brand: flat brand colour discs, white glyph — except the text-coloured discs
   (X, TikTok), whose glyph is cut out in the footer background so it stays
   visible on a dark palette (#275). The renderer sets --social-brand-ink. */
.skin-footer-header .skin-footer-header__social--brand .skin-footer-header__social-link {
  border-color: transparent;
  background: var(--social-brand, var(--cos-text, currentColor));
  color: var(--social-brand-ink, #fff);
  opacity: 1;
}
.skin-footer-header .skin-footer-header__social--brand .skin-footer-header__social-link:hover,
.skin-footer-header .skin-footer-header__social--brand .skin-footer-header__social-link:focus-visible {
  background: var(--social-brand, var(--cos-text, currentColor));
  border-color: transparent;
  filter: brightness(1.1);
}

/* Logos: brand-coloured glyphs, no frame. */
.skin-footer-header .skin-footer-header__social--logos,
.skin-footer-header .skin-footer-header__social--minimal {
  gap: 1.25rem;
}
.skin-footer-header .skin-footer-header__social--logos .skin-footer-header__social-link,
.skin-footer-header .skin-footer-header__social--minimal .skin-footer-header__social-link {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.skin-footer-header .skin-footer-header__social--logos .skin-footer-header__social-link svg,
.skin-footer-header .skin-footer-header__social--minimal .skin-footer-header__social-link svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.9;
}
.skin-footer-header .skin-footer-header__social--logos .skin-footer-header__social-link {
  color: var(--social-brand, var(--cos-text, currentColor));
  opacity: 1;
}
.skin-footer-header .skin-footer-header__social--logos .skin-footer-header__social-link:hover,
.skin-footer-header .skin-footer-header__social--logos .skin-footer-header__social-link:focus-visible {
  background: transparent;
  filter: brightness(1.15);
  transform: translateY(-2px);
}

/* Minimal: plain glyphs in the footer text colour, no frame. */
.skin-footer-header .skin-footer-header__social--minimal .skin-footer-header__social-link {
  color: var(--cos-text, currentColor);
  opacity: 0.8;
}
.skin-footer-header .skin-footer-header__social--minimal .skin-footer-header__social-link:hover,
.skin-footer-header .skin-footer-header__social--minimal .skin-footer-header__social-link:focus-visible {
  opacity: 1;
  background: transparent;
  transform: translateY(-2px);
}

/* ─── Split Headers (Image + Text) ───────────────────────────────────────── */

.skin-header-split {
  display: flex;
  flex: 1;
}

.skin-header-split__inner {
  width: 100%;
  display: flex;
  gap: 3rem;
  align-items: center;
  box-sizing: border-box;
}

.skin-header-split--img-left  .skin-header-split__inner { flex-direction: row; }
.skin-header-split--img-right .skin-header-split__inner { flex-direction: row-reverse; }
.skin-header-split--img-top   .skin-header-split__inner { flex-direction: column; }
.skin-header-split--img-bottom .skin-header-split__inner { flex-direction: column-reverse; }

.skin-header-split__image {
  flex: 1;
  min-width: 0;
}
.skin-header-split__image figure {
  width: 100%;
  height: 100%;
}
/* Editor click-target wrapper around the split image — must stay transparent
   to the flex/height chain so the layout is identical with or without it. */
.skin-header-split__image .cosmos-split-visual {
  display: flex;
  flex: 1;
  width: 100%;
  min-width: 0;
}
.skin-header-split__image .cosmos-split-visual figure {
  flex: 1;
  min-width: 0;
}
.skin-header-split__image .skin-image-rounded {
  width: 100%;
  height: 100%;
  aspect-ratio: var(--split-image-ratio, auto);
  object-fit: cover;
  border-radius: 0;
  object-fit: cover;
}

.cosmos-header-typo:has(.skin-header-split) {
  max-width: none;
}

.skin-header-split__text {
  flex: none;
  width: fit-content;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: min(var(--header-max-width, 800px), var(--website-max-width, 100%));
  padding: var(--header-padding-v, 40px) var(--header-padding-h, 40px);
  box-sizing: border-box;
}

/* ── Side-by-side ── */
.skin-header-split--img-left,
.skin-header-split--img-right {
  overflow: hidden;
}
.skin-header-split--img-left  .skin-header-split__inner,
.skin-header-split--img-right .skin-header-split__inner {
  gap: 0;
  align-items: stretch;
}
.skin-header-split--img-left  .skin-header-split__image,
.skin-header-split--img-right .skin-header-split__image {
  flex: 1 1 50%;
  max-width: 50%;
  display: flex;
}
.skin-header-split--img-left  .skin-header-split__image figure,
.skin-header-split--img-right .skin-header-split__image figure {
  flex: 1;
  display: flex;
}

.skin-header-split__text-area {
  flex: 1;
  display: flex;
  min-width: 0;
  max-width: calc(var(--website-max-width, 100%) / 2);
}
.skin-header-split--img-left  .skin-header-split__text-area { justify-content: flex-start; }
.skin-header-split--img-right .skin-header-split__text-area { justify-content: flex-end; }

.skin-header-split__text-area .skin-header-split__text {
  align-self: stretch;
  margin: 0;
}

/* ── Stacked ── */
.skin-header-split--img-top  .skin-header-split__image,
.skin-header-split--img-bottom .skin-header-split__image {
  flex: none;
  width: 100%;
}
.skin-header-split--img-top  .skin-header-split__image .skin-image-rounded,
.skin-header-split--img-bottom .skin-header-split__image .skin-image-rounded {
  aspect-ratio: var(--split-image-ratio, 16/7);
  height: auto;
  border-radius: 0;
}
.skin-header-split--img-top  .skin-header-split__inner,
.skin-header-split--img-bottom .skin-header-split__inner {
  gap: 0;
  /* Stretch, not center: the text block places itself horizontally with the
     data-header-align margins (0 / 0 auto / 0 0 0 auto), which a centred
     cross axis would ignore. */
  align-items: stretch;
}
/* The text takes whatever height the image leaves, so the vertical part of
   data-header-align (justify-content on __text) has room to move it: in a
   100vh image-bottom hero "top" lifts the copy to the top, "bottom" keeps it
   right above the photo. */
.skin-header-split--img-top  .skin-header-split__text,
.skin-header-split--img-bottom .skin-header-split__text {
  flex: 1 1 auto;
}
/* Centred defaults for the stacked variants, at :where() specificity so the
   [data-header-align] rules above (Header Position & Width) always win. */
:where(.skin-header-split--img-top, .skin-header-split--img-bottom) .skin-header-split__text {
  align-items: center;
  text-align: center;
  margin: 0 auto;
}
:where(.skin-header-split--img-top, .skin-header-split--img-bottom) .cosmos-btn-row {
  justify-content: center;
}

/* ── Mobile: side-by-side stacks ── */
@media (max-width: 1023px) {
  .skin-header-split--img-left  .skin-header-split__inner,
  .skin-header-split--img-right .skin-header-split__inner {
    flex-direction: column;
  }
  .skin-header-split--img-left  .skin-header-split__image,
  .skin-header-split--img-right .skin-header-split__image {
    flex: none;
    width: 100%;
    max-width: 100%;
  }
  .skin-header-split--img-left  .skin-header-split__image .skin-image-rounded,
  .skin-header-split--img-right .skin-header-split__image .skin-image-rounded {
    height: auto;
    aspect-ratio: var(--split-image-ratio, 16/9);
  }
  .skin-header-split__text-area {
    max-width: 100%;
    width: 100%;
  }
  .skin-header-split--img-left  .skin-header-split__text,
  .skin-header-split--img-right .skin-header-split__text {
    align-items: center;
    text-align: center;
    max-width: var(--website-max-width, 100%);
  }
}

/* Editor device preview: same side-by-side stacking. .cosmos-mobile /
   .cosmos-tablet sit on a narrow canvas while the browser viewport stays
   wide, so the @media block above never fires there. */
.cosmos-tablet .skin-header-split--img-left  .skin-header-split__inner,
.cosmos-tablet .skin-header-split--img-right .skin-header-split__inner,
.cosmos-mobile .skin-header-split--img-left  .skin-header-split__inner,
.cosmos-mobile .skin-header-split--img-right .skin-header-split__inner {
  flex-direction: column;
}
.cosmos-tablet .skin-header-split--img-left  .skin-header-split__image,
.cosmos-tablet .skin-header-split--img-right .skin-header-split__image,
.cosmos-mobile .skin-header-split--img-left  .skin-header-split__image,
.cosmos-mobile .skin-header-split--img-right .skin-header-split__image {
  flex: none;
  width: 100%;
  max-width: 100%;
}
.cosmos-tablet .skin-header-split--img-left  .skin-header-split__image .skin-image-rounded,
.cosmos-tablet .skin-header-split--img-right .skin-header-split__image .skin-image-rounded,
.cosmos-mobile .skin-header-split--img-left  .skin-header-split__image .skin-image-rounded,
.cosmos-mobile .skin-header-split--img-right .skin-header-split__image .skin-image-rounded {
  height: auto;
  aspect-ratio: var(--split-image-ratio, 16/9);
}
.cosmos-tablet .skin-header-split__text-area,
.cosmos-mobile .skin-header-split__text-area {
  max-width: 100%;
  width: 100%;
}
.cosmos-tablet .skin-header-split--img-left  .skin-header-split__text,
.cosmos-tablet .skin-header-split--img-right .skin-header-split__text,
.cosmos-mobile .skin-header-split--img-left  .skin-header-split__text,
.cosmos-mobile .skin-header-split--img-right .skin-header-split__text {
  align-items: center;
  text-align: center;
  max-width: var(--website-max-width, 100%);
}

/* ─── Items ───────────────────────────────────────────────────────────────── */

.skin-hero-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.skin-hero-item > .cosmos-card-body {
  display: flex;
  flex-direction: column;
  align-items: inherit;
  gap: 1.5rem;
}

.cosmos-card-visual--cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}
.cosmos-card-visual--cover img,
.cosmos-card-visual--cover video,
.cosmos-card-visual--cover iframe,
.cosmos-card-visual--cover figure {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cosmos-card-visual--cover figure {
  position: absolute;
  inset: 0;
}

.skin-header-item {
  display: flex;
  flex-direction: column;
}
.skin-header-item > .cosmos-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skin-card-vertical {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background: var(--card-bg, var(--cos-bg, transparent));
}

/* ── Linked items ──
   .cosmos-item-link is a stretched anchor inside the card: the whole card is
   clickable, without changing the card's participation in section layouts. */
.cosmos-item-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Interactive elements inside a linked card stay above the stretched link. */
.skin-card-vertical[data-linked] a:not(.cosmos-item-link),
.skin-card-vertical[data-linked] button {
  position: relative;
  z-index: 3;
}

.skin-card-vertical[data-linked] {
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.skin-card-vertical[data-linked]:hover {
  transform: translateY(-3px);
}
/* Card text spacing — padding driven by data-items-align on the section.
   Default (left): right padding only.
   Center: both sides. Right: left only.
   When card has visible bg: both sides always (text needs inset). */
.skin-card-vertical .cosmos-card-body {
  padding-left: 0;
  padding-right: 1.5rem;
}
[data-items-align="center"] .skin-card-vertical .cosmos-card-body {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
[data-items-align="right"] .skin-card-vertical .cosmos-card-body {
  padding-left: 1.5rem;
  padding-right: 0;
}
[data-card-has-bg] .skin-card-vertical .cosmos-card-body {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
/* Card text column measure — long copy in wide cards (list, magazine,
   single-column grids) is capped so lines stay readable. The section sets
   --card-text-max-width from section.cardTextMaxWidth (Card Layout panel);
   the column follows the items alignment. */
.skin-card-vertical .cosmos-card-body {
  box-sizing: border-box;
  max-width: var(--card-text-max-width, 500px);
}
[data-items-align="center"] .skin-card-vertical .cosmos-card-body {
  margin-left: auto;
  margin-right: auto;
}
[data-items-align="right"] .skin-card-vertical .cosmos-card-body {
  margin-left: auto;
}
/* Explicit card text inset — section.cardTextPadding (Card Layout panel /
   set_section_spacing). The section sets --card-text-padding and the flag
   attribute; the extra class in the selector outranks the alignment, bg and
   card-layout rules above and below, so the customer's choice always wins. */
.cosmos-items[data-card-text-padding] .skin-card-vertical .cosmos-card-body {
  padding-left: var(--card-text-padding);
  padding-right: var(--card-text-padding);
}

/* Items text alignment */
[data-items-align="left"] .cosmos-items   { text-align: left; }
[data-items-align="center"] .cosmos-items { text-align: center; }
[data-items-align="right"] .cosmos-items  { text-align: right; }
.skin-card-vertical .cosmos-card-body [class*="skin-heading"] {
  padding-top: 1.25rem;
  padding-bottom: 1rem;
}
/* With an eyebrow, the kicker is the first text element — it takes the
   image→text gap instead of the heading, which keeps only a small gap to
   its kicker. Without this the eyebrow sits flush against the card image. */
.skin-card-vertical .cosmos-card-body .skin-eyebrow {
  padding-top: 1.25rem;
}
.skin-card-vertical .cosmos-card-body .skin-eyebrow + [class*="skin-heading"] {
  padding-top: 0.4rem;
}
.skin-card-vertical .cosmos-card-body [class*="skin-body-sm-muted"] {
  padding-bottom: 1rem;
}
.skin-card-vertical .cosmos-card-body [class*="skin-body-sm"]:not([class*="muted"]) {
  padding-bottom: 1.5rem;
}

.skin-testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 0.75rem;
  background: var(--cos-surface);
  padding: 2rem;
  text-align: center;
}
.skin-testimonial-card > .cosmos-card-body {
  display: flex;
  flex-direction: column;
  align-items: inherit;
  gap: 1rem;
}

.skin-cta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.skin-cta-item > .cosmos-card-body {
  display: flex;
  flex-direction: column;
  align-items: inherit;
  gap: 1.5rem;
}

.skin-footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.skin-footer-item > .cosmos-card-body {
  display: flex;
  flex-direction: column;
  align-items: inherit;
  gap: 0.4rem;
}

/* ─── Button row (shared across all header skins) ────────────────────────── */

.cosmos-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

[data-header-align$="-center"] .cosmos-btn-row { justify-content: center; }
[data-header-align$="-right"]  .cosmos-btn-row { justify-content: flex-end; }

/* Eyebrow — small uppercase kicker above titles */
/* Stamp — decorative graphic above the eyebrow. Inline-block so the text
   block's text-align positions it; the element sets width/mask inline. */
.skin-stamp {
  margin-bottom: 0.9rem;
  vertical-align: bottom;
}

.skin-eyebrow {
  display: block;
  font-size: calc(0.72rem * var(--font-scale, 1));
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--cos-accent, #2563EB);
}

/* Image heroes — accent-tinted eyebrow on photos, contrast-checked ink
   otherwise (accent falls back to the main ink when unreadable). */
.skin-hero-header .cosmos-card-body .skin-eyebrow {
  color: var(--cos-hero-eyebrow, color-mix(in srgb, var(--cos-accent, #5eead4) 75%, #fff));
  text-shadow: none;
}

/* Solid panels / cards */
.skin-hero-panel-header .skin-header-split__text .skin-eyebrow,
.skin-hero-card-header .cosmos-card-body .skin-eyebrow {
  color: var(--cos-hero-eyebrow, var(--cos-accent, #2563EB));
  text-shadow: none;
}
.skin-section-header .skin-eyebrow,
.cosmos-items .skin-eyebrow {
  color: var(--cos-accent, #2563EB);
  text-shadow: none;
}

.skin-hero-item > .cosmos-card-body .skin-eyebrow + .skin-heading-xl {
  margin-top: 0.25rem;
}

/* ─── Elements: Headings ──────────────────────────────────────────────────── */

.skin-heading-xl {
  font-size: calc(3.75rem * var(--font-scale, 1));
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.skin-heading-lg {
  font-size: calc(2.25rem * var(--font-scale, 1));
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--cos-text);
}

.skin-heading-lg-white {
  font-size: calc(2.25rem * var(--font-scale, 1));
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #fff;
}

.skin-heading-sm {
  font-size: calc(1.125rem * var(--font-scale, 1));
  font-weight: 400;
  color: var(--cos-text);
  line-height: 1.3;
}

/* ─── Inline rich text ────────────────────────────────────────────────────── */

/* Rich-text links inherit the section's text color. Button skins are excluded:
   they carry their own colors, and outside the editor buttons render as real
   <a> tags — inheriting here would beat .skin-btn-* colors on specificity and
   make preview/published buttons differ from the editor (spans there). */
[data-section-id] a:not([class*="skin-btn"]) { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
[data-section-id] a[class^="skin-btn-"],
[data-section-id] a[class*=" skin-btn-"] { text-decoration: none; }
[data-section-id] a:not([class*="skin-btn"]):hover { opacity: 0.8; }

/* ─── Elements: Body text ─────────────────────────────────────────────────── */

.skin-body-lg {
  font-size: calc(1.125rem * var(--font-scale, 1));
  line-height: 1.7;
  /* Hero subtitle — follows the section's contrast analysis; the white
     fallback matches the historic on-photo default. */
  color: var(--cos-hero-ink-soft, rgba(255,255,255,0.85));
}

.skin-body-md {
  font-size: calc(1rem * var(--font-scale, 1));
  line-height: 1.7;
  color: var(--cos-text-secondary);
}

.skin-body-md-white {
  font-size: calc(1rem * var(--font-scale, 1));
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
}

.skin-body-md-italic {
  font-size: calc(1rem * var(--font-scale, 1));
  font-style: italic;
  line-height: 1.7;
  color: var(--cos-text-secondary);
}

.skin-body-sm {
  font-size: calc(0.875rem * var(--font-scale, 1));
  line-height: 1.7;
  color: var(--cos-text-secondary);
}

.skin-body-sm-muted {
  font-size: calc(0.875rem * var(--font-scale, 1));
  line-height: 1.5;
  color: var(--cos-text-muted);
}

/* ─── Elements: Media ─────────────────────────────────────────────────────── */

.skin-image-rounded {
  aspect-ratio: 3 / 2;
  width: 100%;
  object-fit: cover;
  display: block;
}
video.skin-image-rounded {
  background: #000;
}
/* YouTube / Vimeo / Google Maps embeds in an image slot (#138, #127). */
iframe.skin-image-rounded {
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.skin-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  object-fit: cover;
}

/* ─── Elements: Badge ─────────────────────────────────────────────────────── */

.skin-badge {
  display: inline-block;
  margin: 0 1.5rem 1rem;
  padding: 0.25rem 0.75rem;
  font-size: calc(0.75rem * var(--font-scale, 1));
  font-weight: 500;
  border-radius: 9999px;
  background: var(--cos-border);
  color: var(--cos-accent);
}

/* ─── Elements: Buttons ───────────────────────────────────────────────────── */
/* Readability: filled buttons take their label from --cos-on-accent and
   accent-as-text buttons from --cos-accent-ink. Both are emitted inline with
   every palette (site root + section overrides; see buttonInkVars in
   @cosmos/shared) and fall back to the historic white / accent, so a light
   accent (white, beige, yellow) no longer yields white-on-white. */

.skin-btn-primary {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: calc(0.875rem * var(--font-scale, 1));
  font-weight: 600;
  color: var(--cos-on-accent, #fff);
  background: var(--cos-accent);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: background 0.2s;
}
.skin-btn-primary:hover { background: var(--cos-accent-hover); }

.skin-btn-white {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: calc(0.875rem * var(--font-scale, 1));
  font-weight: 600;
  color: #2563eb;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: background 0.2s;
}
.skin-btn-white:hover { background: #f9fafb; }

.skin-btn-outlined {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: calc(0.875rem * var(--font-scale, 1));
  font-weight: 600;
  color: var(--cos-accent-ink, var(--cos-accent));
  background: transparent;
  border: 2px solid var(--cos-accent-ink, var(--cos-accent));
  border-radius: 0.5rem;
  transition: background 0.2s;
}
.skin-btn-outlined:hover { background: var(--cos-border); }

.skin-btn-text {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: calc(0.875rem * var(--font-scale, 1));
  font-weight: 600;
  color: var(--cos-accent-ink, var(--cos-accent));
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  transition: background 0.2s;
}
.skin-btn-text:hover { background: var(--cos-border); }

.skin-btn-elevated {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: calc(0.875rem * var(--font-scale, 1));
  font-weight: 600;
  color: var(--cos-accent-ink, var(--cos-accent));
  background: var(--cos-surface);
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: box-shadow 0.2s, background 0.2s;
}
.skin-btn-elevated:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.2); }

.skin-btn-tonal {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: calc(0.875rem * var(--font-scale, 1));
  font-weight: 600;
  color: var(--cos-accent-ink, var(--cos-accent));
  background: var(--cos-border);
  border-radius: 0.5rem;
  transition: background 0.2s;
}
.skin-btn-tonal:hover { opacity: 0.9; }

.skin-btn-pill {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: calc(0.875rem * var(--font-scale, 1));
  font-weight: 600;
  color: var(--cos-on-accent, #fff);
  background: var(--cos-accent);
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: background 0.2s;
}
.skin-btn-pill:hover { background: var(--cos-accent-hover); }

.skin-btn-pill-outlined {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: calc(0.875rem * var(--font-scale, 1));
  font-weight: 600;
  color: var(--cos-accent-ink, var(--cos-accent));
  background: transparent;
  border: 2px solid var(--cos-accent-ink, var(--cos-accent));
  border-radius: 9999px;
  transition: background 0.2s;
}
.skin-btn-pill-outlined:hover { background: var(--cos-border); }

.skin-btn-ghost {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: calc(0.875rem * var(--font-scale, 1));
  font-weight: 600;
  color: var(--cos-text-secondary);
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  transition: background 0.2s, color 0.2s;
}
.skin-btn-ghost:hover { background: var(--cos-border); color: var(--cos-text); }

/* ─── Elements: Footer specifics ──────────────────────────────────────────── */

.skin-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.skin-footer-brand__logo {
  height: 2rem;
}
.skin-footer-brand__name {
  font-size: calc(0.875rem * var(--font-scale, 1));
  font-weight: 500;
  color: var(--cos-text-secondary, rgba(17, 24, 39, 0.65));
}

.skin-footer-logo {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}
.skin-footer-item > .cosmos-card-visual {
  min-height: auto !important;
}
.skin-footer-logo__img {
  height: 2rem;
  width: auto;
  margin-bottom: 0;
}
.cosmos-footer-icon { cursor: pointer; }
.cosmos-footer-icon:hover { opacity: 0.8; }

.skin-footer-title {
  display: block;
  font-size: 16px !important;
  font-weight: 500;
  color: var(--cos-text, #111827);
}

.skin-footer-subtitle {
  display: block;
  font-size: 12px !important;
  color: var(--cos-text-secondary, rgba(17, 24, 39, 0.65));
}

.skin-footer-body {
  display: block;
  font-size: 10px !important;
  line-height: 1.4;
  color: var(--cos-text-muted, rgba(17, 24, 39, 0.45));
}

.skin-footer-copyright {
  font-size: 8px;
  color: var(--cos-text-muted, rgba(17, 24, 39, 0.45));
}

/* Footer links row (#58) — pages / external URLs under the brand. */
.skin-footer-links {
  margin: 0.25rem 0;
}
.skin-footer-links__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
[data-header-align$="-center"] .skin-footer-links__list { justify-content: center; }
[data-header-align$="-left"]   .skin-footer-links__list { justify-content: flex-start; }
[data-header-align$="-right"]  .skin-footer-links__list { justify-content: flex-end; }
.skin-footer-links__link {
  font-size: calc(0.8125rem * var(--font-scale, 1));
  font-weight: 500;
  color: var(--cos-text-secondary, rgba(17, 24, 39, 0.65));
  text-decoration: none;
  transition: color 0.15s;
}
.skin-footer-links__link:hover {
  color: var(--cos-text, #111827);
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Card Layouts — Controlled by data-card-layout on the <section>.
   "default" needs no overrides (standard card rendering).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Overlay: image becomes full-bleed background, text on top with gradient ── */

[data-card-layout="overlay"] .skin-card-vertical {
  position: relative !important;
  min-height: 20rem;
  overflow: hidden;
  color: #fff;
  border-color: transparent;
}

[data-card-layout="overlay"] .skin-card-vertical .cosmos-card-visual {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

[data-card-layout="overlay"] .skin-card-vertical .cosmos-card-visual figure {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  display: block;
}

[data-card-layout="overlay"] .skin-card-vertical .cosmos-card-visual img,
[data-card-layout="overlay"] .skin-card-vertical .cosmos-card-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

[data-card-layout="overlay"] .skin-card-vertical::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 50%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

[data-card-layout="overlay"] .skin-card-vertical .cosmos-card-body {
  position: relative !important;
  z-index: 2 !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 20rem;
  padding: 1.5rem;
}

[data-card-layout="overlay"] .cosmos-items [class^="skin-heading"],
[data-card-layout="overlay"] .cosmos-items [class*=" skin-heading"] {
  color: #fff;
}

[data-card-layout="overlay"] .cosmos-items [class^="skin-body"],
[data-card-layout="overlay"] .cosmos-items [class*=" skin-body"] {
  color: rgba(255,255,255,0.7);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Padding inside a line-clamped box is fatal: the box is sized to the clamped
   lines plus the padding, overflow: hidden clips at the padding edge, so the
   "hidden" lines show through the padding, cut mid-line and with no ellipsis.
   The vertical-card skins above give body copy bottom padding; on overlay
   cards hand that spacing to the margin instead so the clamp ends the text
   with an ellipsis. */
[data-card-layout="overlay"] .skin-card-vertical .cosmos-card-body [class^="skin-body"],
[data-card-layout="overlay"] .skin-card-vertical .cosmos-card-body [class*=" skin-body"] {
  padding-bottom: 0;
  margin-bottom: 1.5rem;
}
[data-card-layout="overlay"] .skin-card-vertical .cosmos-card-body [class*="skin-body-sm-muted"] {
  margin-bottom: 1rem;
}
[data-card-layout="overlay"][data-overlay-expanded] .cosmos-items [class^="skin-body"],
[data-card-layout="overlay"][data-overlay-expanded] .cosmos-items [class*=" skin-body"] {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}

/* Section "Read more" (section.visibleItems): a real skin-btn-* button under
   the items, so it follows the site's button preset; cosmos-layouts.js toggles
   data-items-expanded on the section and swaps the label. */
.cosmos-readmore {
  position: relative;
  z-index: 2; /* above the section's background / click layer, like .cosmos-items */
  display: flex;
  justify-content: center; /* always centred, whatever the items align to */
  width: 100%;
  max-width: var(--website-max-width, none);
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 1.5rem 2.5rem; /* same breathing room above and below the button */
}
.cosmos-readmore__btn {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  line-height: inherit;
}

.cosmos-overlay-readmore {
  display: flex;
  justify-content: center;
  padding: 1rem 0 0;
}
.cosmos-overlay-readmore button {
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
  padding: 0.4rem 1.2rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.cosmos-overlay-readmore button:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

[data-card-layout="overlay"] .cosmos-items .skin-badge {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

[data-card-layout="overlay"] .cosmos-items .skin-btn-primary {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
}
[data-card-layout="overlay"] .cosmos-items .skin-btn-primary:hover {
  background: rgba(255,255,255,0.25);
}

/* ─── Testimonial card layout: circle avatar → title → body → subtitle ─── */

[data-card-layout="testimonial"] .skin-card-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: var(--card-radius, 0.75rem);
  box-sizing: border-box;
  width: 100%;
  /* Card chrome knobs (Card Layout panel / set_section_spacing): the section
     sets --card-max-width / --card-padding / --card-margin / --card-radius on
     .cosmos-items. Layout stylesheets must not restyle this box's padding or
     radius with a stronger selector — cosmos-layouts.css's slideshow/slides
     rules exclude testimonial cards for that reason. */
  max-width: var(--card-max-width, none);
  margin-left: auto;
  margin-right: auto;
  margin-top: var(--card-margin, 0px);
  margin-bottom: var(--card-margin, 0px);
  /* Honour --card-bg (Card Style colour + opacity) when set; otherwise the
     surface token so quote cards still read as cards on a matching page bg. */
  background: var(--card-bg, var(--cos-surface, #F3F4F6));
  padding: var(--card-padding, 2rem 1.5rem);
}

/* Avatar circle: --card-visual-size (Card Layout panel / set_section_spacing
   cardVisualSize) on .cosmos-items; 5rem when unset. */
[data-card-layout="testimonial"] .skin-card-vertical .cosmos-card-visual {
  width: var(--card-visual-size, 5rem);
  height: var(--card-visual-size, 5rem);
  min-height: var(--card-visual-size, 5rem) !important;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  margin-bottom: 1rem;
  order: 0;
  border-radius: 9999px;
  overflow: hidden;
}

[data-card-layout="testimonial"] .skin-card-vertical .cosmos-card-visual figure {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

[data-card-layout="testimonial"] .skin-card-vertical .cosmos-card-visual img,
[data-card-layout="testimonial"] .skin-card-vertical .cosmos-card-visual video {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 9999px;
}

[data-card-layout="testimonial"] .skin-card-vertical .cosmos-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  order: 1;
}

[data-card-layout="testimonial"] .skin-card-vertical .cosmos-card-body [class*="skin-heading"] {
  order: 1;
  padding-top: 0;
  padding-bottom: 0.25rem;
}

/* Overlay/testimonial bodies space their children with their own padding/gap —
   the vertical-card eyebrow gap above would double it. */
[data-card-layout="overlay"] .skin-card-vertical .cosmos-card-body .skin-eyebrow,
[data-card-layout="testimonial"] .skin-card-vertical .cosmos-card-body .skin-eyebrow {
  padding-top: 0;
}

[data-card-layout="testimonial"] .skin-card-vertical .cosmos-card-body [class*="skin-body"] {
  order: 2;
  font-style: italic;
  color: var(--cos-text-secondary, rgba(17,24,39,0.65));
  padding-bottom: 0.25rem;
}

[data-card-layout="testimonial"] .skin-card-vertical .cosmos-card-body [class*="skin-body"]::before {
  content: '\201C';
  margin-right: 0.15em;
}

[data-card-layout="testimonial"] .skin-card-vertical .cosmos-card-body [class*="skin-body"]::after {
  content: '\201D';
  margin-left: 0.1em;
}

[data-card-layout="testimonial"] .skin-card-vertical .cosmos-card-body .skin-badge,
[data-card-layout="testimonial"] .skin-card-vertical .cosmos-card-body [class*="skin-body-sm-muted"] {
  order: 3;
  font-style: normal;
  background: transparent;
  color: var(--cos-text-muted, rgba(17,24,39,0.45));
  font-size: 0.75rem;
}

/* ─── Button base ──────────────────────────────────────────────────────── */

[class^="skin-btn-"],
[class*=" skin-btn-"] {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s, background 0.2s;
  line-height: 1;
}
[class^="skin-btn-"]:hover,
[class*=" skin-btn-"]:hover {
  opacity: 0.85;
}
[class^="skin-btn-"]:active,
[class*=" skin-btn-"]:active {
  transform: scale(0.97);
}
.cosmos-btn-arrow {
  display: inline-block;
  transition: transform 0.2s;
}
[class^="skin-btn-"]:hover .cosmos-btn-arrow,
[class*=" skin-btn-"]:hover .cosmos-btn-arrow {
  transform: translateX(3px);
}

/* ─── Link-style buttons (presets "underline" / "underline-hover") ────────
   ButtonSkin strips the fill inline and stamps data-btn-underline; the bar
   is painted under the label only (not the arrow) as a background gradient
   so it can slide in from the left on hover, like the menu's link indicator.
   Colour follows the label (currentColor), so it works over any backdrop. */
[class*="skin-btn-"][data-btn-underline] > span:first-child {
  padding-bottom: 0.15em;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1.5px;
  transition: background-size 0.25s ease, opacity 0.2s ease;
}
[class*="skin-btn-"][data-btn-underline="hover"] > span:first-child {
  background-size: 0% 1.5px;
}
[class*="skin-btn-"][data-btn-underline="hover"]:hover > span:first-child,
[class*="skin-btn-"][data-btn-underline="hover"]:focus-visible > span:first-child {
  background-size: 100% 1.5px;
}
[class*="skin-btn-"][data-btn-underline]:hover { opacity: 1; }
[class*="skin-btn-"][data-btn-underline="always"]:hover > span:first-child { opacity: 0.75; }

/* ─── App: Contact Form (Material-inspired) ──────────────────────────── */

.cosmos-app-row {
  width: 100%;
  margin-top: 2rem;
}

/* Custom code app: an empty placeholder in the editor; on the published site
   the publish route fills it with a sandboxed iframe (shared/apps.ts). */
.skin-app-custom-code {
  width: 100%;
  margin: 0 auto;
}
.skin-app-custom-code .cosmos-custom-code-frame {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
}

.skin-app-contact-form {
  --_cf-input-border: color-mix(in srgb, currentColor 15%, transparent);
  --_cf-input-bg: color-mix(in srgb, currentColor 6%, transparent);
  --_cf-input-bg-hover: color-mix(in srgb, currentColor 9%, transparent);
  --_cf-input-bg-focus: color-mix(in srgb, currentColor 10%, transparent);
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.contact-form-fields {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Floating-label field ─────────────────────────────────────────────── */

.contact-form-field {
  position: relative;
  text-align: left;
}

.contact-form-field label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: calc(0.95rem * var(--font-scale, 1));
  font-weight: 400;
  color: inherit;
  opacity: 0.5;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left top;
  text-align: left;
}

/* Textarea label anchors to top */
.contact-form-field:has(textarea) label {
  top: 1rem;
  transform: none;
}

/* Floated state: input has value or is focused */
.contact-form-field input:focus ~ label,
.contact-form-field input:not(:placeholder-shown) ~ label,
.contact-form-field textarea:focus ~ label,
.contact-form-field textarea:not(:placeholder-shown) ~ label {
  top: 0.45rem;
  transform: scale(0.75);
  opacity: 0.7;
  font-weight: 500;
}

.contact-form-field input,
.contact-form-field textarea {
  width: 100%;
  padding: 1.25rem 1rem 0.5rem;
  border: none;
  border-bottom: 2px solid var(--_cf-input-border);
  border-radius: 0;
  background: var(--_cf-input-bg);
  color: inherit;
  font: inherit;
  font-size: calc(0.95rem * var(--font-scale, 1));
  line-height: 1.5;
  box-sizing: border-box;
  transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form-field input::placeholder,
.contact-form-field textarea::placeholder {
  color: transparent;
}

.contact-form-field input:hover,
.contact-form-field textarea:hover {
  background: var(--_cf-input-bg-hover);
}

.contact-form-field input:focus,
.contact-form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--cos-accent, currentColor);
  background: var(--_cf-input-bg-focus);
}

.contact-form-field textarea {
  resize: vertical;
  min-height: 120px;
}

/* ── reCAPTCHA ────────────────────────────────────────────────────────── */

.contact-form-recaptcha {
  display: flex;
  justify-content: center;
  margin: 0.25rem 0;
}

/* ── Submit button ────────────────────────────────────────────────────── */

/* The submit is one of the site's buttons: `skin-btn-primary` (accent fill,
   on-accent ink) plus the site-wide preset — or the form's own preset and
   colours — as inline style, resolved by AppContactForm.resolveContactFormButton
   and mirrored to data-btn-* on the form root for the published script. This
   class only adds the <button> reset and the form-specific layout. */
.contact-form-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
  border: none;
  transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.1s;
}
.contact-form-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* ── Error message ────────────────────────────────────────────────────── */

.contact-form-error {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(239,68,68,0.1);
  border-left: 3px solid rgba(239,68,68,0.6);
  color: #fca5a5;
  font-size: calc(0.85rem * var(--font-scale, 1));
  text-align: left;
}

/* ── Success state ────────────────────────────────────────────────────── */

.contact-form-success {
  text-align: center;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.contact-form-success svg {
  opacity: 0.7;
}
.contact-form-success h3 {
  margin: 0;
  font-size: calc(1.4rem * var(--font-scale, 1));
  font-weight: 600;
}
.contact-form-success p {
  margin: 0;
  opacity: 0.7;
  font-size: calc(0.95rem * var(--font-scale, 1));
  line-height: 1.5;
}

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  [data-layout="cards-3col"] .cosmos-items,
  [data-layout="cards-4col"] .cosmos-items,
  [data-layout="grid-2x2"] .cosmos-items { grid-template-columns: repeat(2, 1fr) !important; }
  [data-layout="masonry"] .cosmos-items { column-count: 2 !important; }
}

@media (max-width: 480px) {
  [data-layout="cards-3col"] .cosmos-items,
  [data-layout="cards-2col"] .cosmos-items,
  [data-layout="cards-4col"] .cosmos-items,
  [data-layout="grid-2x2"] .cosmos-items { grid-template-columns: 1fr !important; }
  [data-layout="masonry"] .cosmos-items { column-count: 1 !important; }
  [data-layout="alternating"] .cosmos-items > * { flex-direction: column !important; }
  [data-layout="split"] { display: flex !important; flex-direction: column !important; }
  [data-layout="feature-rows"] .cosmos-items > * { flex-direction: column !important; }
}

@media (max-width: 640px) {
  .skin-app-contact-form {
    max-width: 100%;
  }
}

/* ─── Promotional Footer ──────────────────────────────────────────────── */

.cosmos-promo-footer {
  width: 100%;
  padding: 0.6rem 1rem;
  background: #2563eb;
  color: #fff;
  text-align: center;
  font-size: calc(0.8rem * var(--font-scale, 1));
  font-weight: 500;
  letter-spacing: 0.02em;
  box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Image filters — section-wide photo treatment
   SectionRenderer sets data-image-filter="<id>" on the <section> from
   section.imageFilter (ids in @cosmos/shared IMAGE_FILTERS). Applies to every
   photo the section shows — header visual / hero cover, card images, avatars —
   but not to the section background, which has its own Effect control.
   Pure CSS: nothing is re-encoded, and the published scrape carries it.
   ═══════════════════════════════════════════════════════════════════════════ */

[data-image-filter="darken-20"] .cosmos-card-visual img.skin-image-rounded,
[data-image-filter="darken-20"] .cosmos-card-visual video.skin-image-rounded,
[data-image-filter="darken-20"] img.skin-avatar {
  filter: brightness(0.8);
}
[data-image-filter="darken-40"] .cosmos-card-visual img.skin-image-rounded,
[data-image-filter="darken-40"] .cosmos-card-visual video.skin-image-rounded,
[data-image-filter="darken-40"] img.skin-avatar {
  filter: brightness(0.6);
}
[data-image-filter="bw"] .cosmos-card-visual img.skin-image-rounded,
[data-image-filter="bw"] .cosmos-card-visual video.skin-image-rounded,
[data-image-filter="bw"] img.skin-avatar {
  filter: grayscale(1);
}
[data-image-filter="brighten-10"] .cosmos-card-visual img.skin-image-rounded,
[data-image-filter="brighten-10"] .cosmos-card-visual video.skin-image-rounded,
[data-image-filter="brighten-10"] img.skin-avatar {
  filter: brightness(1.1);
}
/* Blur bleeds transparent at the edges — clip it in the figure and grow the
   photo a touch so the frame stays filled (same trick as the bg effect). */
[data-image-filter="blur"] .cosmos-card-visual figure {
  overflow: hidden;
}
[data-image-filter="blur"] .cosmos-card-visual img.skin-image-rounded,
[data-image-filter="blur"] .cosmos-card-visual video.skin-image-rounded {
  filter: blur(6px);
  transform: scale(1.06);
}
[data-image-filter="blur"] img.skin-avatar {
  filter: blur(2px);
}

/* Tints: a palette colour laid over the photo with the `color` blend, so the
   photo keeps its own light and shade and takes the colour's hue. Neutral
   roles (a near-white background, a near-black text colour) therefore read
   as a soft monochrome. The overlay sits on the <figure> — the element that
   matches the photo exactly — as ::before, because hero skins already use
   ::after on the cover wrapper for their scrims. Embeds (maps, video iframes)
   are left alone. */
[data-image-filter="tint-accent"]  { --cos-image-tint: var(--cos-accent); }
[data-image-filter="tint-bg"]      { --cos-image-tint: var(--cos-bg); }
[data-image-filter="tint-surface"] { --cos-image-tint: var(--cos-surface); }
[data-image-filter="tint-text"]    { --cos-image-tint: var(--cos-text); }

[data-image-filter^="tint-"] .cosmos-card-visual:not(.cosmos-card-visual--cover) figure:not(.skin-image-rounded--empty):not(:has(> iframe)) {
  position: relative;
}
[data-image-filter^="tint-"] .cosmos-card-visual figure:not(.skin-image-rounded--empty):not(:has(> iframe)) {
  isolation: isolate;
}
[data-image-filter^="tint-"] .cosmos-card-visual figure:not(.skin-image-rounded--empty):not(:has(> iframe))::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--cos-image-tint);
  mix-blend-mode: color;
  pointer-events: none;
}
/* Avatars are small circles whose <figure> is wider than the photo, so an
   overlay can't be clipped to them — desaturate instead, which sits well
   next to tinted cards. */
[data-image-filter^="tint-"] img.skin-avatar {
  filter: grayscale(0.85);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Video effect — per video (ContentItem.video.effect, ids in @cosmos/shared
   VIDEO_EFFECTS). ImageRounded sets data-video-effect="<id>" on the <figure>
   around a <video> or a YouTube / Vimeo <iframe>. Placed after the section
   filters at matching specificity so the per-video choice wins.
   ═══════════════════════════════════════════════════════════════════════════ */

.cosmos-card-visual figure[data-video-effect="darken-20"] > .skin-image-rounded { filter: brightness(0.8); }
.cosmos-card-visual figure[data-video-effect="darken-40"] > .skin-image-rounded { filter: brightness(0.6); }
.cosmos-card-visual figure[data-video-effect="bw"] > .skin-image-rounded { filter: grayscale(1); }
.cosmos-card-visual figure[data-video-effect="brighten-10"] > .skin-image-rounded { filter: brightness(1.1); }
.cosmos-card-visual figure[data-video-effect="blur"] { overflow: hidden; }
.cosmos-card-visual figure[data-video-effect="blur"] > .skin-image-rounded { filter: blur(6px); transform: scale(1.06); }

/* ─── Editable state (editor only, stripped on publish) ───────────────────── */

blockquote {
  max-width: 800px;
}

/* The editing frame itself is drawn by the editor stylesheet (globals.css,
   [data-cosmos-editing] .cosmos-editable:focus) — one square outline. No
   box-shadow ring or radius here, or a focused text shows two frames. */
.cosmos-editable {
  cursor: text;
  outline: none;
}
