/* ─── Canela Light Italic (per-file only) ────────────────── */
@font-face {
  font-family: 'Canela Text Trial';
  src: url('assets/fonts/CanelaText-LightItalic-Trial.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --tag-1:   #EDEDF0;
  --tag-2:   #F5F5F5;

}

/* ─── Hero ───────────────────────────────────────────────── */
.cs-hero {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cs-hero-heading {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cs-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ui);
  font-size: 14px;
  line-height: 21px;
  font-weight: 400;
  color: var(--muted);
}

.cs-eyebrow-rule {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--muted);
  flex-shrink: 0;
}

.cs-title {
  font-family: var(--serif-deck);
  font-size: clamp(36px, 4.57vw, 64px);
  line-height: 1.25;
  font-weight: 700;
  color: var(--black);
}

/* ─── Meta ───────────────────────────────────────────────── */
.cs-meta {
  font-family: var(--ui);
  font-size: 14px;
  line-height: 21px;
  font-weight: 400;
  color: var(--body);
  max-width: 562px;
}

/* ─── Section shell ──────────────────────────────────────── */
.cs-section {
  max-width: var(--max);
  margin-top: 64px;
}

/* ─── Slideshow ───────────────────────────────────────────── */
.cs-slideshow-track {
  position: relative;
  width: 100%;
}

/* Figure wrapper — each slide */
.cs-slide {
  display: none;
  position: relative;
  width: 100%;
  aspect-ratio: 1400 / 740;
  border-radius: 30px;
  border: 2px dashed #F2F2F2;
  overflow: hidden;
  margin: 0;
}

.cs-slide.active { display: block; }

.cs-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* White cover: original Tesco heading area (top-left) */
.cs-slide::before {
  content: '';
  position: absolute;
  left: 5.14%; top: 3.24%;
  width: 36%; height: 18%;
  background: #fff;
  z-index: 1;
}

.cs-slide--wide-cover::before {
  width: 60%;
}

.cs-slide--full-cover::before {
  width: 92%;
}

.cs-slide--max-cover::before {
  width: 100%;
}

.cs-slide--taller-cover::before {
  height: 24%;
}

.cs-slide--wide-text .cs-slide-text {
  max-width: 90%;
}

.cs-slide--wide-text .cs-slide-sub {
  white-space: nowrap;
  overflow: hidden;
}

/* White cover: Tesco logo (bottom-right) */
.cs-slide::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 12%;
  background: #fff;
  z-index: 1;
}

/* Dark full-bleed slides — no white covers */
.cs-slide.cs-dark::before { display: none; }

/* Slides where the heading is centred, not at top — no top cover */
.cs-slide.cs-no-header::before { display: none; }

/* Real text overlay */
.cs-slide-text {
  position: absolute;
  left: 5.21%; top: 8.11%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 33%;
  z-index: 2;
  pointer-events: none;
}

.cs-slide-title {
  font-family: var(--serif-text);
  font-size: clamp(16px, 2.67vw, 40px);
  font-weight: 700;
  line-height: 1.35;
  color: #00539E;
}

.cs-slide-sub {
  font-family: var(--ui);
  font-size: clamp(10px, 1.2vw, 18px);
  font-weight: 400;
  line-height: 1.667;
  color: #00539E;
}

/* Body text overlay — Objective slide */
.cs-slide-body-cover {
  position: absolute;
  left: 0; top: 22%;
  width: 100%; height: 60%;
  background: #fff;
  z-index: 1;
}

.cs-slide-body {
  position: absolute;
  left: 5.14%; top: 45%;
  width: 82%;
  z-index: 2;
  font-family: var(--ui);
  font-size: clamp(10px, 1.25vw, 18px);
  font-weight: 400;
  line-height: 1.667;
  color: #7D7D7D;
  pointer-events: none;
}

/* Italic paragraph overlay — Shadowing slides */
.cs-slide-italic-cover {
  position: absolute;
  left: 0; top: 24%;
  width: 46%; height: 26%;
  background: #fff;
  z-index: 1;
}

.cs-slide-italic {
  position: absolute;
  left: 5.14%; top: 42%;
  width: 40%;
  z-index: 2;
  font-family: var(--ui);
  font-size: clamp(10px, 1.25vw, 18px);
  font-weight: 400;
  line-height: 1.667;
  color: #7D7D7D;
  pointer-events: none;
}

.cs-slideshow-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.cs-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--rule);
  border-radius: 50%;
  background: none;
  color: var(--black);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.cs-nav-btn:hover {
  border-color: var(--black);
}

.cs-slide-counter {
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  min-width: 48px;
  text-align: center;
}

/* ─── Footer ─────────────────────────────────────────────── */
.cs-footer {
  max-width: var(--max);
  padding: 0 0 48px;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cs-footer-line a {
  transition: color 0.15s ease;
}

.cs-footer-line a:hover,
.cs-footer-line a:focus-visible {
  color: #444444;
}



/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 720px) {
  .cs-title { font-size: 34px; line-height: 48px; }
  .cs-section { margin-top: 48px; }
  .cs-slide { border-radius: 16px; }
  .cs-slide-text { max-width: 50%; }
}

/* ─── Sticky scroll bar ──────────────────────────────────── */
.sticky-bar-inner {
  max-width: calc(1400px + clamp(20px, 3.33vw, 48px) * 2);
  margin: 0 auto;
  padding: 0 clamp(20px, 3.33vw, 48px);
  height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sticky-bar-name {
  font-family: 'Public Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  color: #8D8D8D;
  text-decoration: none;
}
.sticky-bar-link {
  font-family: 'Public Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  color: #000;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

/* ─── Let's Talk popup ───────────────────────────────────── */
.popup-label {
  font-family: 'Public Sans', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
  color: #1A1A1A;
}
