/* homepage-luma-decor.v20260809c.css
 * Decorates the CRI-ONE homepage with the store's Luma visual language.
 * Loaded AFTER styles-m.min.css so Luma tokens are already resolved.
 * Scoped to homepage-only classes so it never leaks into store/channel pages.
 * Uses px/em only (Luma's html{font-size:62.5%} would make rem 10px).
 * 20260809b: hero brandmark (SVG + CRI-ONE wordmark) overlaid on RSS hero.
 * 20260809c: brandmark wordmark switched to Arial Black.
 * -------------------------------------------------------------------------- */

/* ==== TYPOGRAPHY BASELINE (Luma Open Sans, homepage body scope) ========= */
body {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #333;
  -webkit-font-smoothing: antialiased;
}

/* Only apply heading treatment inside the homepage regions — do not touch
   store product pages served on the same origin. */
#cri-rss-cloud-section h1,
#cri-rss-cloud-section h2,
#cri-rss-cloud-section h3,
.cri-tagcloud-section h1,
.cri-tagcloud-section h2,
.cri-tagcloud-section h3 {
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  color: #16161d;
  font-weight: 300;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
#cri-rss-cloud-section h1, .cri-tagcloud-section h1 { font-size: 32px; line-height: 1.15; }
#cri-rss-cloud-section h2, .cri-tagcloud-section h2 { font-size: 22px; line-height: 1.2;  }
#cri-rss-cloud-section h3, .cri-tagcloud-section h3 { font-size: 17px; line-height: 1.3;  }

/* ==== SECTION-TITLE HELPER (injected by companion JS below) ============= */
.cri-luma-section-title {
  display: block;
  font: 300 20px/1.25 'Open Sans','Helvetica Neue',Arial,sans-serif;
  color: #333;
  margin: 0 auto 14px;
  padding: 0 4px 10px;
  max-width: 1120px;
  border-bottom: 1px solid #cccccc;
  letter-spacing: 0.01em;
}
.cri-luma-section-title .eyebrow {
  display: inline-block;
  font: 600 10.5px/1 'Open Sans',Arial,sans-serif;
  color: #1979c3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-right: 10px;
  vertical-align: 2px;
}

/* ==== RSS CALLOUT STRIPS (.cri-hero-related) — Luma "message info" card = */
.cri-hero-related {
  background: #fff !important;
  border: 1px solid #cccccc !important;
  border-radius: 3px !important;
  padding: 12px 18px !important;
  font-family: 'Open Sans',Arial,sans-serif !important;
  color: #333 !important;
  box-shadow: 0 1px 0 rgba(20,30,55,0.04);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.cri-hero-related:hover {
  border-color: #1979c3 !important;
  box-shadow: 0 4px 14px rgba(25,121,195,0.08);
}
.cri-hero-related a {
  color: #1979c3;
  text-decoration: none;
  font-weight: 600;
}
.cri-hero-related a:hover {
  color: #006bb4;
  text-decoration: underline;
}
/* Eyebrow chip inside the strip (from data-eyebrow) */
.cri-hero-related::before {
  content: attr(data-eyebrow);
  display: inline-block;
  font: 600 10px/1 'Open Sans',Arial,sans-serif;
  color: #fff;
  background: #1979c3;
  letter-spacing: 0.12em;
  padding: 5px 8px;
  border-radius: 2px;
  margin-right: 10px;
  vertical-align: 1px;
  text-transform: uppercase;
}
.cri-hero-related:not([data-eyebrow])::before,
.cri-hero-related[data-eyebrow=""]::before { display: none; }

/* ==== HERO IMAGE BANDS — Luma product-tile shadow ====================== */
.cri-pattern-band,
.cri-hero-rss,
.cri-tagcloud-companion,
.cri-bio-hero-wrap {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 3px !important;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow .25s ease, transform .25s ease;
}
.cri-pattern-band:hover,
.cri-hero-rss:hover,
.cri-tagcloud-companion:hover,
.cri-bio-hero-wrap:hover {
  box-shadow: 0 6px 22px rgba(0,0,0,0.10);
}
.cri-pattern-band img,
.cri-hero-rss img,
.cri-tagcloud-companion img,
.cri-bio-hero-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

/* ==== HERO CALLOUT CHIPS (TAG MAP / AUTHOR / LIVE FEED) — Luma badge === */
.cri-hero-callout {
  display: block !important;
  background: linear-gradient(180deg, #1979c3 0%, #006bb4 100%) !important;
  color: #fff !important;
  padding: 14px 16px !important;
  border-radius: 3px !important;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease !important;
  box-shadow: 0 2px 8px rgba(25,121,195,0.25) !important;
}
.cri-hero-callout:hover {
  background: linear-gradient(180deg, #2189d3 0%, #017bc4 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(25,121,195,0.35) !important;
  color: #fff !important;
}
.cri-callout-eyebrow {
  font: 600 10px/1 'Open Sans',Arial,sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 4px;
}
.cri-callout-big {
  font: 300 34px/1 'Open Sans',Arial,sans-serif;
  letter-spacing: -0.02em;
}
.cri-callout-sub {
  font: 400 12px/1.3 'Open Sans',Arial,sans-serif;
  opacity: 0.92;
  margin-top: 4px;
}

/* ==== HERO CAPTIONS ==================================================== */
.cri-hero-caption {
  font: italic 12.5px/1.4 'Open Sans',Arial,sans-serif !important;
  color: #575757 !important;
  padding: 10px 14px 12px !important;
  background: #fafafa;
  border-top: 1px solid #eaeaea;
  margin: 0 !important;
  text-align: center;
}
.cri-hero-caption a {
  font-family: 'Open Sans',Arial,sans-serif !important;
  font-style: normal !important;
  font-weight: 600 !important;
  color: #1979c3 !important;
  margin-left: 8px !important;
  text-decoration: none !important;
}
.cri-hero-caption a:hover { text-decoration: underline !important; color: #006bb4 !important; }

/* ==== RSS TAG CLOUD (.rss-lead / .rss-status / .rss-footer / #cri-rss-cloud) === */
#cri-rss-cloud-section {
  max-width: 1220px;
  margin: 24px auto 40px;
  padding: 0 16px;
}
.rss-lead {
  font: 400 15px/1.55 'Open Sans',Arial,sans-serif;
  color: #333;
  max-width: 780px;
  margin: 18px auto 20px;
  text-align: center;
}
#cri-rss-cloud {
  background: #fafafa;
  border: 1px solid #ebebeb;
  border-radius: 3px;
  padding: 18px 20px;
  min-height: 120px;
  line-height: 2.1;
}
.rss-status {
  font: 400 12px/1.5 'Open Sans',Arial,sans-serif;
  color: #7d7d7d;
}
.rss-status .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #1979c3;
  margin-right: 6px;
  vertical-align: 1px;
}
.rss-footer {
  font: 400 11.5px/1.5 'Open Sans',Arial,sans-serif;
  color: #a2a2a2;
  text-align: center;
  margin-top: 12px;
}
.rss-footer a { color: #1979c3; text-decoration: none; }
.rss-footer a:hover { text-decoration: underline; }
.rss-item {
  display: inline-block;
  margin: 2px 4px;
  padding: 3px 8px;
  border-radius: 2px;
  background: #fff;
  border: 1px solid #e2e2e2;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.rss-item a { color: #1979c3; text-decoration: none; }
.rss-item:hover {
  border-color: #1979c3;
  background: #f0f7fc;
  transform: translateY(-1px);
}
.rss-item .cat {
  font: 600 9.5px/1 'Open Sans',Arial,sans-serif;
  color: #757575;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-right: 4px;
}
/* Size tiers — softly amplify newer items */
.rss-t1 { font-size: 12px; }
.rss-t2 { font-size: 13.5px; }
.rss-t3 { font-size: 15px; }
.rss-t4 { font-size: 17px; font-weight: 600; }
.rss-t5 { font-size: 20px; font-weight: 600; background: #f0f7fc; border-color: #cfe4f1; }

/* ==== TAG CLOUD SECTION ================================================ */
.cri-tagcloud-section {
  max-width: 1220px !important;
  margin: 24px auto 40px !important;
  padding: 0 16px !important;
}
.cri-tagcloud-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .cri-tagcloud-grid { grid-template-columns: 1fr; }
  .cri-tagcloud-companion { max-width: 480px; margin: 0 auto; }
}
#cgb-tagcloud {
  background: #fafafa;
  border: 1px solid #ebebeb;
  border-radius: 3px;
  padding: 20px 22px;
  min-height: 200px;
  line-height: 2.3;
}
.cgb-tag {
  display: inline-block;
  margin: 3px 5px;
  padding: 3px 9px;
  border-radius: 2px;
  background: #fff;
  border: 1px solid #e5e5e5;
  transition: all .15s ease;
}
.cgb-tag a {
  color: #333;
  text-decoration: none;
  font-family: 'Open Sans',Arial,sans-serif;
}
.cgb-tag:hover {
  background: #1979c3;
  border-color: #1979c3;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(25,121,195,0.25);
}
.cgb-tag:hover a, .cgb-tag:hover .fq { color: #fff !important; }
.cgb-tag .fq {
  color: #b2b2b2;
  font-size: 0.75em;
  margin-left: 4px;
  font-weight: 400;
}
.cgb-tag.t0 { font-size: 12px; }
.cgb-tag.t1 { font-size: 13px; }
.cgb-tag.t2 { font-size: 14px; }
.cgb-tag.t3 { font-size: 15px; }
.cgb-tag.t4 { font-size: 17px; font-weight: 600; }
.cgb-tag.t5 { font-size: 19px; font-weight: 600; }
.cgb-tag.t6 { font-size: 22px; font-weight: 600; }
.cgb-tag.t7 { font-size: 26px; font-weight: 700; }
.cgb-tag.t8 { font-size: 30px; font-weight: 700; background: #f0f7fc; border-color: #cfe4f1; }
#cgb-cloud-status {
  font: 400 12px/1.5 'Open Sans',Arial,sans-serif;
  color: #7d7d7d;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #ebebeb;
}
#cgb-cloud-status .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #61b761;
  margin-right: 6px;
  vertical-align: 1px;
}
#cgb-cloud-status .dot.busy { background: #f2b134; animation: cri-pulse 1s ease-in-out infinite; }
@keyframes cri-pulse { 50% { opacity: .35; } }

/* ==== BIO SECTION (right-float figure + adjacent paragraph) ============ */
.cri-bio-hero-wrap {
  padding: 0;
  background: #fff;
}
.cri-bio-hero-wrap .cri-hero-callout { margin: 12px; }
/* The bio <p> currently contains raw Markdown — leaving copy alone but
   giving it decent Luma reading typography so it isn't naked. */
body > p {
  font: 400 15px/1.65 'Open Sans',Arial,sans-serif;
  color: #333;
  max-width: 780px;
  margin: 24px auto;
  padding: 0 20px;
}

/* ==== FOOTER NAV (#crione-bottomnav) — Luma primary button strip ====== */
#crione-bottomnav {
  background: #f4f4f4;
  border-top: 1px solid #e0e0e0;
  padding: 22px 20px;
  margin-top: 40px;
  font-family: 'Open Sans',Arial,sans-serif;
}
#crione-bottomnav .crione-nav-inner {
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
#crione-bottomnav .crione-nav-brand {
  font: 300 18px/1 'Open Sans',Arial,sans-serif;
  color: #16161d;
  text-decoration: none;
  letter-spacing: -0.01em;
}
#crione-bottomnav .crione-nav-brand:hover { color: #1979c3; }
#crione-bottomnav .crione-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: auto;
}
#crione-bottomnav .crione-nav-links a {
  display: inline-block;
  padding: 7px 14px;
  color: #333;
  text-decoration: none;
  font: 400 13px/1 'Open Sans',Arial,sans-serif;
  border-radius: 2px;
  transition: background .15s ease, color .15s ease;
}
#crione-bottomnav .crione-nav-links a:hover {
  background: #1979c3;
  color: #fff;
}
#crione-bottomnav .crione-nav-rss {
  background: #fff;
  border: 1px solid #f26522;
  color: #f26522 !important;
}
#crione-bottomnav .crione-nav-rss:hover {
  background: #f26522 !important;
  color: #fff !important;
}

/* ==== COOKIE BANNER — quiet Luma treatment (was gray-on-gray) ========== */
.cgb-cookie-consent {
  font-family: 'Open Sans',Arial,sans-serif !important;
}
.cgb-cookie-consent .cookie-btn-accept {
  background: #1979c3 !important;
  color: #fff !important;
  border: 1px solid #1979c3 !important;
  padding: 8px 18px !important;
  font: 600 13px/1 'Open Sans',Arial,sans-serif !important;
  border-radius: 3px !important;
  cursor: pointer;
  transition: background .15s ease;
}
.cgb-cookie-consent .cookie-btn-accept:hover { background: #006bb4 !important; border-color: #006bb4 !important; }
.cgb-cookie-consent .cookie-btn-decline {
  background: #fff !important;
  color: #333 !important;
  border: 1px solid #c9c9c9 !important;
  padding: 8px 18px !important;
  font: 400 13px/1 'Open Sans',Arial,sans-serif !important;
  border-radius: 3px !important;
  cursor: pointer;
}
.cgb-cookie-consent .cookie-btn-decline:hover { background: #f4f4f4 !important; border-color: #a2a2a2 !important; }

/* ==== SERVIER CREDIT LINE — center small print, Luma text color ======== */
#servier-credit {
  font-family: 'Open Sans',Arial,sans-serif !important;
  color: #a2a2a2 !important;
}
#servier-credit a { color: #7d7d7d !important; }

/* ==== FLOATING CLOUD EFFECT ============================================
 * Both the RSS strip and the tag cloud already set per-item CSS variables:
 *   --fd  = float duration
 *   --fdy = animation delay
 *   --fv  = translateY peak in px (negative = up)
 *   --ed  = entrance stagger (used for reveal)
 * All that was missing was the keyframes + animation binding.
 * Respects prefers-reduced-motion — animations disable entirely.
 * ========================================================================= */
@keyframes cri-cloud-float {
   0%, 100% { transform: translateY(0); }
   50%      { transform: translateY(var(--fv, -4px)); }
}
@keyframes cri-cloud-reveal {
   from { opacity: 0; transform: translateY(6px); }
   to   { opacity: 1; transform: translateY(0);   }
}
.cgb-tag, .rss-item {
  /* two-part: quick reveal then perpetual gentle float */
  animation:
    cri-cloud-reveal .55s ease-out both var(--ed, 0s),
    cri-cloud-float  var(--fd, 6s) ease-in-out infinite var(--fdy, 0s);
  will-change: transform, opacity;
}
/* When you hover an item, freeze the float so it can be clicked accurately */
.cgb-tag:hover, .rss-item:hover {
  animation-play-state: paused, paused;
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .cgb-tag, .rss-item { animation: none !important; }
}

/* ==== TIGHTEN THE HOMEPAGE FRAME ======================================= */
body { margin: 0; }
body > script + div,
body > figure { margin-left: auto; margin-right: auto; }

/* ==== HERO BRANDMARK OVERLAY (logo + wordmark on the RSS hero image) ==== */
.cri-brandmark-stage {
  position: relative;
  display: block;
  line-height: 0;
}
.cri-brandmark-stage picture,
.cri-brandmark-stage img {
  display: block;
  width: 100%;
  height: auto;
}
.cri-hero-brandmark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 56px);
  padding: 0 4%;
  pointer-events: none;
  z-index: 2;
}
.cri-brandmark-logo {
  width: clamp(72px, 14vw, 180px) !important;
  height: auto !important;
  display: block;
  filter: drop-shadow(0 3px 12px rgba(0,0,0,0.32));
}
.cri-brandmark-word {
  font: 900 clamp(38px, 8vw, 108px)/1 'Arial Black','Arial Bold Black','Helvetica Neue',Arial,sans-serif;
  color: #fff !important;
  letter-spacing: 0.01em;
  text-shadow: 0 3px 12px rgba(0,0,0,0.32);
  white-space: nowrap;
}
@media (max-width: 520px) {
  .cri-hero-brandmark { gap: 14px; padding: 0 12px; }
  .cri-brandmark-logo { width: 64px !important; }
  .cri-brandmark-word { font-size: 40px; }
}
