/* ==========================================================================
   Classic (CGI) collection page: shop house-style redesign - 20 October 2026
   Tom: "deze pagina ook flink mooier design geven prachtig prachtig".
   Loaded only by collection-classic.html, after its inline styles and
   collection-classic-navigation.css; every rule is scoped to body.ccd.
   Same language as today's homepage: photo hero with a deep-blue overlay,
   white headings with a yellow highlight, navy 900 headings with the
   tricolour bar, white cards with a soft navy shadow, pill buttons and
   product cards with tinted photo wells. The shopping part continues the
   homepage's cream-and-gold 80th anniversary section, whose "Bekijk de
   klassieke collectie" button links here. Styling only: products, filters,
   links, texts and credits are unchanged. Removing this file restores the
   previous look.
   ========================================================================== */

body.ccd {
  --ccd-ink: #0d1f3c;
  --ccd-muted: #56657d;
  --ccd-blue: #0a5bd3;
  --ccd-blue-deep: #0748a8;
  --ccd-red: #ee0024;
  --ccd-red-deep: #c4001d;
  --ccd-yellow: #ffd400;
  --ccd-gold: #c8930a;
  --ccd-gold-deep: #9a6c00;
  --ccd-max: 1220px;
  --ccd-tricolour: linear-gradient(90deg, #0a5bd3 0 36%, #ffcd00 36% 64%, #ee0024 64% 100%);
  --ccd-card-shadow: 0 22px 44px -26px rgba(11, 31, 63, 0.42), 0 6px 16px -8px rgba(11, 31, 63, 0.14);
  --ccd-card-shadow-hover: 0 30px 60px -26px rgba(11, 31, 63, 0.5), 0 10px 22px -10px rgba(11, 31, 63, 0.18);
  --ccd-gold-shadow: 0 22px 40px -26px rgba(92, 64, 0, 0.55), 0 6px 14px -8px rgba(13, 31, 60, 0.14);
  --ccd-navy-bg:
    radial-gradient(42% 58% at 0% 0%, rgba(10, 91, 211, 0.5), transparent 72%),
    radial-gradient(36% 52% at 100% 100%, rgba(238, 0, 36, 0.26), transparent 72%),
    radial-gradient(30% 40% at 62% 0%, rgba(255, 205, 0, 0.1), transparent 70%),
    linear-gradient(160deg, #0a1a36 0%, #0d2753 52%, #0a1a38 100%);
  --ccd-light-bg:
    radial-gradient(640px 460px at 0% 0%, rgba(10, 91, 211, 0.09), transparent 70%),
    radial-gradient(600px 440px at 100% 0%, rgba(255, 205, 0, 0.16), transparent 70%),
    radial-gradient(640px 460px at 100% 100%, rgba(238, 0, 36, 0.06), transparent 70%),
    radial-gradient(600px 440px at 0% 100%, rgba(25, 164, 90, 0.08), transparent 70%),
    linear-gradient(180deg, #fcfdff 0%, #f4f8fe 100%);
}

/* One content width for every section (aligned with the hero and filters). */
body.ccd .cgi-section-inner,
body.ccd .cgi-range-inner,
body.ccd .cgi-hero .container.cgi-hero-grid {
  max-width: var(--ccd-max);
  margin-right: auto;
  margin-left: auto;
  padding-right: 24px;
  padding-left: 24px;
}

/* Shared headings: navy 900 sans with the blue / yellow / red bar. */
body.ccd .cgi-section h2,
body.ccd .cgi-range-heading h2,
body.ccd .cgi-production h2,
body.ccd .cgi-timeline h2,
body.ccd .cgi-sodor-next-head h2,
body.ccd .cgi-transition h2 {
  margin: 0;
  color: var(--ccd-ink);
  font-family: inherit;
  font-size: clamp(2rem, 3.3vw, 3.1rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-shadow: none;
  text-wrap: balance;
}
body.ccd .cgi-section h2::after,
body.ccd .cgi-range-heading h2::after,
body.ccd .cgi-production h2::after,
body.ccd .cgi-timeline h2::after,
body.ccd .cgi-sodor-next-head h2::after,
body.ccd .cgi-transition h2::after {
  content: '';
  display: block;
  width: 92px;
  height: 6px;
  margin-top: 16px;
  border-radius: 999px;
  background: var(--ccd-tricolour);
}
body.ccd .cgi-section-subtitle {
  max-width: 660px;
  color: var(--ccd-muted);
  font-size: 1.02rem;
  line-height: 1.62;
}

/* Kicker pills: gold on the warm shopping band, blue on light sections. */
body.ccd .cgi-range-kicker,
body.ccd .cgi-products-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 30px;
  margin: 0 0 14px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #d9a114 0%, #9a6c00 100%);
  box-shadow: 0 10px 20px -12px rgba(154, 108, 0, 0.9);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}
body.ccd .cgi-range-kicker::before { display: none; }
body.ccd .cgi-sodor-next .cgi-products-kicker {
  color: var(--ccd-blue-deep);
  background: #e6f0ff;
  box-shadow: inset 0 0 0 1px rgba(10, 91, 211, 0.18);
}

/* Pill buttons everywhere on the page. */
body.ccd .cgi-series20-hero__button,
body.ccd .cgi-btn,
body.ccd .cgi-transition .btn {
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0;
}
body.ccd .cgi-series20-hero__button svg,
body.ccd .cgi-btn svg,
body.ccd .cgi-transition .btn svg { width: 18px; height: 18px; }
body.ccd .cgi-series20-hero__button--primary,
body.ccd .cgi-btn--primary,
body.ccd .cgi-transition .btn {
  border: 0;
  color: var(--ccd-ink);
  background: linear-gradient(135deg, #ffdc3a 0%, #ffc400 100%);
  box-shadow: 0 16px 30px -14px rgba(255, 196, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
body.ccd .cgi-series20-hero__button--primary:hover,
body.ccd .cgi-series20-hero__button--primary:focus-visible,
body.ccd .cgi-btn--primary:hover,
body.ccd .cgi-btn--primary:focus-visible,
body.ccd .cgi-transition .btn:hover,
body.ccd .cgi-transition .btn:focus-visible {
  color: var(--ccd-ink);
  background: linear-gradient(135deg, #ffe45c 0%, #ffcd00 100%);
  box-shadow: 0 20px 36px -14px rgba(255, 196, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}
body.ccd .cgi-series20-hero__button:not(.cgi-series20-hero__button--primary),
body.ccd .cgi-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
body.ccd .cgi-series20-hero__button:not(.cgi-series20-hero__button--primary):hover,
body.ccd .cgi-series20-hero__button:not(.cgi-series20-hero__button--primary):focus-visible,
body.ccd .cgi-btn--ghost:hover,
body.ccd .cgi-btn--ghost:focus-visible {
  border-color: rgba(255, 212, 0, 0.8);
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

/* --------------------------------------------------------------------------
   1. Hero: the classic CGI line-up behind a deep-blue overlay, white heading
      with the yellow line, the official golden 80 medallion on the right.
   -------------------------------------------------------------------------- */
body.ccd .cgi-series20-hero {
  min-height: clamp(460px, 34vw, 580px);
  background:
    radial-gradient(40% 70% at 0% 0%, rgba(10, 91, 211, 0.45), transparent 72%),
    radial-gradient(30% 50% at 38% 100%, rgba(238, 0, 36, 0.16), transparent 72%),
    linear-gradient(160deg, #0a1a36 0%, #0d2753 60%, #0a1d40 100%);
}
body.ccd .cgi-series20-hero::before {
  content: '';
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -1;
  width: 70%;
  background:
    linear-gradient(90deg, rgba(10, 29, 64, 0.62) 0%, rgba(10, 29, 64, 0.12) 46%, rgba(10, 29, 64, 0) 70%),
    linear-gradient(0deg, rgba(8, 24, 54, 0.66) 0%, rgba(8, 24, 54, 0) 42%),
    url('assets/images/thomas/series21-promo.webp') 50% 36% / cover no-repeat;
  background-size: auto, auto, cover;
  opacity: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 16%, #000 34%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 16%, #000 34%);
  pointer-events: none;
}
/* Model-railway track along the bottom edge (replaces the yellow sleepers). */
body.ccd .cgi-series20-hero::after {
  right: 0;
  bottom: 18px;
  left: 0;
  height: 18px;
  border: 0;
  background:
    linear-gradient(180deg, transparent 3px, rgba(255, 255, 255, 0.34) 3px 6px, transparent 6px 12px, rgba(255, 255, 255, 0.34) 12px 15px, transparent 15px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 6px, transparent 6px 26px);
  pointer-events: none;
}
body.ccd .cgi-series20-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  max-width: var(--ccd-max);
  padding: clamp(44px, 4.6vw, 70px) 24px clamp(70px, 6vw, 92px);
}
body.ccd .cgi-series20-hero__copy { width: min(620px, 100%); }
body.ccd .cgi-series20-hero__label {
  min-height: 30px;
  margin-bottom: 18px;
  padding: 0 14px;
  border: 1px solid rgba(255, 205, 0, 0.5);
  color: var(--ccd-yellow);
  background: rgba(255, 205, 0, 0.12);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}
body.ccd .cgi-series20-hero h1 {
  font-family: inherit;
  font-size: clamp(2.6rem, 4.6vw, 4.3rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
}
body.ccd .cgi-series20-hero h1 span:first-child { font-family: inherit; }
/* Yellow words with a soft glow, exactly like the homepage heading (no yellow block). */
body.ccd .cgi-series20-hero h1 span:last-child {
  max-width: 620px;
  margin-top: 10px;
  color: var(--ccd-yellow);
  font-family: inherit;
  font-size: 0.6em;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-shadow: 0 0 40px rgba(255, 205, 0, 0.4), 0 2px 20px rgba(0, 0, 0, 0.2);
}
body.ccd .cgi-series20-hero h1::after {
  content: '';
  display: block;
  width: 92px;
  height: 6px;
  margin-top: 20px;
  border-radius: 999px;
  background: var(--ccd-tricolour);
}
body.ccd .cgi-series20-hero__copy > p {
  max-width: 540px;
  margin-top: 18px;
  color: rgba(234, 242, 255, 0.9);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.62;
}
body.ccd .cgi-series20-hero__actions { gap: 12px; margin-top: 26px; }

/* The official golden 80 medallion. */
body.ccd .ccd-hero-seal {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 248px;
  padding: 22px 20px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  text-align: center;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
body.ccd .ccd-hero-seal__badge {
  position: relative;
  display: block;
  width: 168px;
  height: 168px;
}
body.ccd .ccd-hero-seal__badge::before {
  content: '';
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(255, 214, 90, 0.34) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
}
body.ccd .ccd-hero-seal__badge img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.45));
}
body.ccd .ccd-hero-seal__copy { display: grid; gap: 4px; }
body.ccd .ccd-hero-seal__copy strong {
  color: #fff;
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
body.ccd .ccd-hero-seal__copy small {
  color: var(--ccd-yellow);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.25;
}
body.ccd .ccd-hero-credit {
  position: absolute;
  right: 14px;
  bottom: 46px;
  z-index: 3;
}

/* --------------------------------------------------------------------------
   2. Choose a range + all products: one warm cream-and-gold band, the same
      as the homepage's 80th anniversary section.
   -------------------------------------------------------------------------- */
body.ccd #cgi-ranges.cgi-range-hub {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(46px, 4.6vw, 70px) 0 clamp(26px, 2.6vw, 36px);
  background:
    radial-gradient(38% 60% at 10% 18%, rgba(255, 210, 74, 0.4), transparent 70%),
    radial-gradient(34% 55% at 96% 8%, rgba(238, 0, 36, 0.1), transparent 70%),
    linear-gradient(180deg, #fff9ea 0%, #fff4da 100%) !important;
}
body.ccd #cgi-ranges.cgi-range-hub::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 1;
  background: radial-gradient(rgba(200, 147, 10, 0.2) 1.2px, transparent 1.6px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 80%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 80%);
  pointer-events: none;
}
/* Soft sun rays behind the heading, as on the homepage 80th section. */
body.ccd #cgi-ranges.cgi-range-hub::after {
  content: '';
  position: absolute;
  top: -170px;
  left: calc(50% - 610px - 150px);
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 200, 40, 0.2) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
  pointer-events: none;
}
body.ccd .cgi-range-heading {
  align-items: end;
  gap: 18px 28px;
  margin-bottom: 26px;
}
body.ccd .cgi-range-heading p {
  max-width: 640px;
  margin: 16px 0 0;
  color: var(--ccd-muted);
  font-size: 1.02rem;
  line-height: 1.6;
}
body.ccd .cgi-range-view-all,
body.ccd .cgi-product-filter-clear {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(154, 108, 0, 0.3);
  color: var(--ccd-ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 20px -16px rgba(92, 64, 0, 0.6);
  font-size: 0.9rem;
  font-weight: 900;
}
body.ccd .cgi-range-view-all:hover,
body.ccd .cgi-range-view-all:focus-visible,
body.ccd .cgi-product-filter-clear:hover,
body.ccd .cgi-product-filter-clear:focus-visible {
  border-color: var(--ccd-gold);
  color: var(--ccd-ink);
  background: #fff;
  transform: translateY(-2px);
}
body.ccd .cgi-range-view-all[aria-pressed="true"] {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #0d2a57 0%, #0a1c3d 100%);
  box-shadow: 0 12px 22px -12px rgba(13, 31, 60, 0.8);
}

/* Range cards: white shop cards with a tinted photo well and a coloured bar. */
body.ccd .cgi-range-tabs { gap: 18px; }
body.ccd .cgi-range-card {
  --ccd-tint-a: #fff3f4;
  --ccd-tint-b: #ffd3d9;
  --ccd-tint-dot: rgba(238, 0, 36, 0.14);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(154, 108, 0, 0.14);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--ccd-gold-shadow);
}
body.ccd .cgi-range-card--motorized { --cgi-range-accent: #e10022; }
body.ccd .cgi-range-card--metal { --cgi-range-accent: #0a5bd3; --ccd-tint-a: #eaf4ff; --ccd-tint-b: #cfe6ff; --ccd-tint-dot: rgba(10, 91, 211, 0.16); }
body.ccd .cgi-range-card--moments { --cgi-range-accent: #b07a00; --ccd-tint-a: #fff8df; --ccd-tint-b: #ffe9a8; --ccd-tint-dot: rgba(200, 147, 10, 0.22); }
body.ccd .cgi-range-card--talking { --cgi-range-accent: #6d4cd6; --ccd-tint-a: #f3efff; --ccd-tint-b: #ddd3ff; --ccd-tint-dot: rgba(109, 76, 214, 0.16); }
body.ccd .cgi-range-card::before {
  content: '';
  position: absolute;
  inset: auto 18px 0;
  z-index: 2;
  height: 5px;
  border-radius: 999px 999px 0 0;
  background: var(--cgi-range-accent);
  pointer-events: none;
}
body.ccd .cgi-range-card:hover,
body.ccd .cgi-range-card:focus-visible {
  border-color: rgba(154, 108, 0, 0.3);
  box-shadow: 0 30px 52px -26px rgba(92, 64, 0, 0.6), 0 10px 20px -10px rgba(13, 31, 60, 0.18);
  transform: translateY(-4px);
}
body.ccd .cgi-range-card[aria-pressed="true"] {
  border-color: transparent;
  box-shadow: 0 0 0 3px var(--ccd-ink), 0 30px 52px -26px rgba(13, 31, 60, 0.6);
  transform: translateY(-4px);
}
body.ccd .cgi-range-card[aria-pressed="true"]::after { display: none; }
body.ccd .cgi-range-card__visual {
  height: clamp(150px, 12.5vw, 176px);
  margin: 8px 8px 0;
  padding: 8px;
  border-radius: 16px;
  background:
    radial-gradient(var(--ccd-tint-dot) 1.2px, transparent 1.6px) 0 0 / 14px 14px,
    linear-gradient(160deg, var(--ccd-tint-a) 0%, var(--ccd-tint-b) 100%);
}
body.ccd .cgi-range-card__visual img {
  box-sizing: border-box;
  padding: 4px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 20px -14px rgba(13, 31, 60, 0.55);
  filter: none;
}
/* The round arrow, top right on the photo well. */
body.ccd .cgi-range-card__visual::before {
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  background: #fff;
  box-shadow: 0 8px 16px -10px rgba(13, 31, 60, 0.6);
}
body.ccd .cgi-range-card__visual::after {
  top: 20px;
  right: 25px;
  z-index: 3;
}
body.ccd .cgi-range-card[aria-pressed="true"] .cgi-range-card__visual::before { background: var(--ccd-ink); }
body.ccd .cgi-range-card[aria-pressed="true"] .cgi-range-card__visual::after { color: var(--ccd-yellow); }
body.ccd .cgi-range-card__copy {
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px 16px 20px;
  border-top: 0;
}
body.ccd .cgi-range-card__copy::before { display: none; }
body.ccd .cgi-range-card__meta {
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}
body.ccd .cgi-range-count {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--ccd-ink);
  background: #f1f4f9;
  font-size: 0.7rem;
  font-weight: 900;
  white-space: nowrap;
}
body.ccd .cgi-range-count:empty { display: none; }
body.ccd .cgi-range-card__title {
  margin-bottom: 6px;
  color: var(--ccd-ink);
  font-size: clamp(1.06rem, 1.3vw, 1.2rem);
  font-weight: 900;
  line-height: 1.18;
}
body.ccd .cgi-range-card__description {
  color: var(--ccd-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

/* All products */
body.ccd #cgi-products.cgi-products {
  position: relative;
  isolation: isolate;
  padding: clamp(30px, 3vw, 44px) 0 clamp(64px, 6vw, 92px);
  background:
    radial-gradient(40% 50% at 100% 30%, rgba(255, 205, 0, 0.14), transparent 72%),
    radial-gradient(40% 40% at 0% 100%, rgba(10, 91, 211, 0.08), transparent 72%),
    linear-gradient(180deg, #fff4da 0%, #fffaf0 22%, #fbfcff 100%) !important;
}
body.ccd .cgi-products .cgi-section-inner { max-width: var(--ccd-max); }
body.ccd .cgi-products-head {
  align-items: end;
  gap: 18px 28px;
  margin-bottom: 22px;
}
body.ccd .cgi-products-head h2 {
  font-family: inherit;
  font-size: clamp(2rem, 3.3vw, 3.1rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
body.ccd .cgi-products-head .cgi-section-subtitle { margin: 16px 0 0; }

/* Sort and stock bar: a white pill bar */
body.ccd .cgi-products .collection-toolbar {
  margin-bottom: 22px;
  padding: 10px 12px 10px 20px;
  border: 1px solid rgba(154, 108, 0, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 30px -24px rgba(92, 64, 0, 0.55);
}
body.ccd .cgi-products .collection-toolbar-count {
  color: var(--ccd-ink);
  font-weight: 900;
}
body.ccd .cgi-products .collection-stock-control {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(13, 31, 60, 0.12);
  border-radius: 999px;
  background: #fff;
}
body.ccd .cgi-products .collection-stock-control input { accent-color: var(--ccd-blue); }
body.ccd .cgi-products .collection-sort-control select {
  min-height: 40px;
  border-radius: 999px;
  border-color: rgba(13, 31, 60, 0.14);
}

/* Product cards: the shop card with a golden photo well, a small official
   80 medallion (all seventeen products are 80th anniversary releases) and
   a gold bar along the bottom, as on the homepage 80th section. */
body.ccd #cgi-product-grid.cgi-prod-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
body.ccd #cgi-product-grid .product-card {
  border: 1px solid rgba(154, 108, 0, 0.16) !important;
  box-shadow: var(--ccd-gold-shadow) !important;
}
body.ccd #cgi-product-grid .product-card::after {
  content: '';
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, #f1c24a 0%, #c8930a 50%, #f1c24a 100%);
  pointer-events: none;
}
body.ccd #cgi-product-grid .product-card:hover,
body.ccd #cgi-product-grid .product-card:focus-within {
  border-color: rgba(154, 108, 0, 0.3) !important;
  box-shadow: 0 30px 52px -26px rgba(92, 64, 0, 0.6), 0 10px 20px -10px rgba(13, 31, 60, 0.18) !important;
}
body.ccd #cgi-product-grid .product-card .product-image {
  background:
    radial-gradient(rgba(200, 147, 10, 0.22) 1.2px, transparent 1.6px) 0 0 / 14px 14px,
    linear-gradient(160deg, #fff8df 0%, #ffe9a8 100%) !important;
}
body.ccd #cgi-product-grid .product-card .product-image::before {
  content: '';
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: url('assets/images/cgi-era/wiki/thomas-80th-anniversary-logo.webp') center / contain no-repeat;
  filter: drop-shadow(0 6px 8px rgba(92, 64, 0, 0.45));
  pointer-events: none;
}
body.ccd #cgi-product-grid .product-card .product-name { color: var(--ccd-ink); }

/* The 80th anniversary story under the products: navy card, golden medallion,
   the two 2025 Motorized models as white photo cards on a golden well. */
body.ccd .cgi-anniversary-story.cgi-anniversary-story--compact {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  min-height: 340px;
  margin: clamp(48px, 5vw, 72px) 0 0;
  border: 0;
  border-radius: 28px;
  background: var(--ccd-navy-bg);
  box-shadow: 0 34px 70px -34px rgba(11, 31, 63, 0.7), 0 10px 24px -14px rgba(11, 31, 63, 0.3);
}
body.ccd .cgi-anniversary-story::after {
  inset: -190px auto auto -170px;
  width: 360px;
  height: 360px;
  border-color: rgba(255, 205, 0, 0.16);
}
body.ccd .cgi-anniversary-story--compact .cgi-anniversary-copy { padding: clamp(30px, 3.6vw, 52px); }
body.ccd .cgi-anniversary-eyebrow {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  border: 1px solid rgba(255, 205, 0, 0.45);
  border-radius: 999px;
  color: var(--ccd-yellow);
  background: rgba(255, 205, 0, 0.1);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}
body.ccd .cgi-anniversary-story--compact .cgi-anniversary-brand {
  gap: 18px;
  min-height: 0;
  margin: 18px 0 6px;
}
body.ccd .cgi-anniversary-story--compact .cgi-anniversary-thomas-logo { width: 132px; }
body.ccd .cgi-anniversary-story--compact .cgi-anniversary-80-logo {
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 0 22px rgba(255, 205, 0, 0.45)) drop-shadow(0 12px 20px rgba(0, 0, 0, 0.35));
}
body.ccd .cgi-anniversary-story--compact .cgi-anniversary-copy h2 {
  margin: 12px 0 0;
  color: #fff;
  font-family: inherit;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.06;
}
body.ccd .cgi-anniversary-story--compact .cgi-anniversary-copy h2::after {
  margin-top: 16px;
}
body.ccd .cgi-anniversary-story--compact .cgi-anniversary-copy h2 span {
  margin-top: 8px;
  color: var(--ccd-yellow);
  font-size: 0.5em;
  letter-spacing: 0.02em;
  text-shadow: 0 0 30px rgba(255, 205, 0, 0.35);
}
body.ccd .cgi-anniversary-copy p {
  margin-top: 18px;
  color: rgba(234, 242, 255, 0.86);
  font-size: 1rem;
  line-height: 1.66;
}
body.ccd .cgi-anniversary-story--compact .cgi-anniversary-gallery {
  min-height: 340px;
  margin: 10px;
  border-radius: 22px;
  background:
    radial-gradient(rgba(200, 147, 10, 0.22) 1.2px, transparent 1.6px) 0 0 / 16px 16px,
    radial-gradient(60% 60% at 70% 30%, rgba(255, 255, 255, 0.7), transparent 70%),
    linear-gradient(160deg, #fff8df 0%, #ffe39a 100%);
}
body.ccd .cgi-anniversary-gallery::before { display: none; }
body.ccd .cgi-anniversary-train {
  box-sizing: border-box;
  padding: 10px 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 40px -22px rgba(92, 64, 0, 0.7), 0 4px 10px -6px rgba(13, 31, 60, 0.2);
  filter: none;
}
body.ccd .cgi-anniversary-story--compact .cgi-anniversary-train--gordon {
  top: 26px;
  right: auto;
  left: 22px;
  width: calc(100% - 64px);
  transform: rotate(-2deg);
}
body.ccd .cgi-anniversary-story--compact .cgi-anniversary-train--james {
  right: 20px;
  bottom: 22px;
  width: 58%;
  transform: rotate(2.5deg);
}

/* --------------------------------------------------------------------------
   3. From models to full CGI: white photo card, facts as shop cards.
   -------------------------------------------------------------------------- */
body.ccd #cgi-era.cgi-era {
  padding: clamp(64px, 6.4vw, 96px) 0;
  background: var(--ccd-light-bg) !important;
}
body.ccd .cgi-era-layout {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: clamp(30px, 4.4vw, 60px);
}
body.ccd .cgi-era-photo {
  padding: 8px;
  border: 1px solid rgba(11, 31, 63, 0.07);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--ccd-card-shadow);
}
body.ccd .cgi-era-photo::before { display: none; }
body.ccd .cgi-era-photo img {
  border-radius: 20px;
  aspect-ratio: 16 / 11;
}
body.ccd .cgi-era-photo figcaption {
  left: 22px;
  bottom: 22px;
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(13, 31, 60, 0.82);
  font-size: 0.74rem;
}
body.ccd .cgi-era-photo .series-media-credit { right: 18px; bottom: 16px; }
body.ccd .cgi-era-text {
  margin: 20px 0 22px;
  color: var(--ccd-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}
body.ccd .cgi-era-text strong { color: var(--ccd-ink); }
body.ccd .cgi-era-quote {
  position: relative;
  padding: 22px 24px 22px 66px;
  border: 1px solid rgba(11, 31, 63, 0.07);
  border-left: 0;
  border-radius: 22px;
  color: var(--ccd-ink);
  background: #fff;
  box-shadow: var(--ccd-card-shadow);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
}
body.ccd .cgi-era-quote::before {
  content: '\201C';
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--ccd-ink);
  background: linear-gradient(135deg, #ffdc3a 0%, #ffc400 100%);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.7rem;
  line-height: 1;
  padding-top: 10px;
  box-sizing: border-box;
}
body.ccd .cgi-source-links { gap: 8px; margin-top: 18px; }
body.ccd .cgi-source-links a {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(10, 91, 211, 0.2);
  border-radius: 999px;
  color: var(--ccd-blue-deep);
  background: #fff;
  font-size: 0.8rem;
  font-weight: 900;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
body.ccd .cgi-source-links a:hover,
body.ccd .cgi-source-links a:focus-visible {
  border-color: var(--ccd-blue);
  color: #fff;
  background: var(--ccd-blue);
}
body.ccd .cgi-era-facts { gap: 18px; margin-top: 44px; }
body.ccd .cgi-fact {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 26px 22px 22px;
  border: 1px solid rgba(11, 31, 63, 0.07);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--ccd-card-shadow);
}
body.ccd .cgi-fact::before {
  content: '';
  position: absolute;
  top: 0;
  right: 22px;
  left: 22px;
  height: 5px;
  border-radius: 0 0 999px 999px;
  background: var(--ccd-tricolour);
}
body.ccd .cgi-fact-value {
  color: var(--ccd-blue);
  font-size: clamp(1.8rem, 2.4vw, 2.3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}
body.ccd .cgi-fact-label {
  color: var(--ccd-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   4. Sodor comes alive digitally: navy like the homepage Bachmann section.
   -------------------------------------------------------------------------- */
body.ccd .cgi-production {
  isolation: isolate;
  padding: clamp(64px, 6.6vw, 100px) 0;
  background: var(--ccd-navy-bg);
}
body.ccd .cgi-production::before {
  z-index: -1;
  background: radial-gradient(rgba(255, 255, 255, 0.09) 1.1px, transparent 1.5px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 78%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 78%);
}
body.ccd .cgi-production h2 { color: #fff; }
body.ccd .cgi-production-head { gap: 20px 40px; margin-bottom: 34px; }
body.ccd .cgi-production .cgi-section-subtitle {
  margin-top: 16px;
  color: rgba(234, 242, 255, 0.8);
}
body.ccd .cgi-production-head > .cgi-section-subtitle { margin-top: 0; }
body.ccd .cgi-production-board { gap: 18px; }
body.ccd .cgi-production-main {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  box-shadow: 0 34px 70px -30px rgba(0, 0, 0, 0.6);
}
body.ccd .cgi-production-main figcaption {
  right: 22px;
  bottom: 22px;
  left: 22px;
  font-size: 0.92rem;
}
body.ccd .cgi-production-notes { gap: 16px; }
body.ccd .cgi-production-note {
  min-height: 0;
  padding: 22px 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
body.ccd .cgi-production-note:hover { border-color: rgba(255, 212, 0, 0.45); transform: translateY(-3px); }
body.ccd .cgi-production-note span {
  min-width: 40px;
  height: 30px;
  margin-bottom: 16px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: var(--ccd-ink);
  background: linear-gradient(135deg, #ffdc3a 0%, #ffc400 100%);
  font-size: 0.78rem;
  font-weight: 900;
}
body.ccd .cgi-production-note h3 {
  font-size: 1.08rem;
  font-weight: 900;
}
body.ccd .cgi-production-note p { color: rgba(234, 242, 255, 0.78); font-size: 0.88rem; }

/* The four story links: white shop cards with a photo well. */
body.ccd .cgi-bts-gallery { gap: 18px; margin-top: 22px; }
body.ccd .cgi-bts-card {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  color: var(--ccd-ink);
  background: #fff;
  box-shadow: 0 26px 46px -28px rgba(0, 0, 0, 0.7);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
body.ccd .cgi-bts-card::after {
  content: '';
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: var(--ccd-tricolour);
}
body.ccd .cgi-bts-card:hover,
body.ccd .cgi-bts-card:focus-visible {
  color: var(--ccd-ink);
  transform: translateY(-4px);
  box-shadow: 0 34px 56px -28px rgba(0, 0, 0, 0.8);
}
body.ccd .cgi-bts-card img {
  width: calc(100% - 16px);
  margin: 8px 8px 0;
  border-radius: 15px;
}
body.ccd .cgi-bts-card-meta {
  padding: 14px 16px 0;
  color: var(--ccd-red);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}
body.ccd .cgi-bts-card strong {
  padding: 6px 16px 4px;
  color: var(--ccd-ink);
  font-size: 1.02rem;
  font-weight: 900;
}
body.ccd .cgi-bts-card small {
  padding: 0 16px 12px;
  color: var(--ccd-muted);
  font-size: 0.8rem;
}
body.ccd .cgi-bts-card-link {
  padding: 0 16px 20px;
  color: var(--ccd-blue);
  font-size: 0.8rem;
}
body.ccd .cgi-image-credit {
  margin-top: 20px;
  color: rgba(234, 242, 255, 0.62);
  font-size: 0.74rem;
}

/* --------------------------------------------------------------------------
   5. Timeline: the tricolour rail with navy stops and white cards.
   -------------------------------------------------------------------------- */
body.ccd #classic-timeline.cgi-timeline {
  padding: clamp(64px, 6.4vw, 96px) 0;
  background: var(--ccd-light-bg) !important;
}
body.ccd .cgi-timeline::before { display: none; }
body.ccd .cgi-timeline .cgi-section-inner { position: relative; }
body.ccd .cgi-timeline-head {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 18px 44px;
  margin-bottom: 40px;
}
body.ccd .cgi-timeline-head p {
  color: var(--ccd-muted);
  font-size: 1.02rem;
  line-height: 1.62;
}
body.ccd .cgi-rail { gap: 16px; }
body.ccd .cgi-rail::before {
  top: 34px;
  left: 6%;
  right: 6%;
  height: 6px;
  background: var(--ccd-tricolour);
  box-shadow: none;
}
body.ccd .cgi-rail-stop {
  padding: 82px 16px 22px;
  border-radius: 22px;
}
body.ccd .cgi-rail-stop::before {
  content: '';
  position: absolute;
  top: 70px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  border: 1px solid rgba(11, 31, 63, 0.07);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--ccd-card-shadow);
}
body.ccd .cgi-rail-stop { position: relative; isolation: isolate; }
body.ccd .cgi-rail-dot {
  top: 10px;
  width: 50px;
  height: 50px;
  border: 4px solid #fff;
  color: var(--ccd-yellow);
  background: linear-gradient(135deg, #0d2a57 0%, #0a1c3d 100%);
  box-shadow: 0 10px 20px -10px rgba(13, 31, 60, 0.8);
  font-weight: 900;
}
body.ccd .cgi-rail-stop strong {
  margin-top: 6px;
  color: var(--ccd-blue);
  font-size: 1.15rem;
  font-weight: 900;
}
body.ccd .cgi-rail-stop span {
  margin-top: 4px;
  color: var(--ccd-ink);
  font-size: 1rem;
  font-weight: 900;
}
body.ccd .cgi-rail-stop p {
  max-width: 200px;
  margin-top: 8px;
  color: var(--ccd-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   6. Iconic moments: navy band with white photo cards.
   -------------------------------------------------------------------------- */
body.ccd .cgi-moments {
  position: relative;
  isolation: isolate;
  padding: clamp(64px, 6.4vw, 96px) 0;
  background: var(--ccd-navy-bg);
}
body.ccd .cgi-moments::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(rgba(255, 255, 255, 0.09) 1.1px, transparent 1.5px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 78%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 78%);
  pointer-events: none;
}
body.ccd .cgi-moments h2 { color: #fff; }
body.ccd .cgi-moments .cgi-section-subtitle { color: rgba(234, 242, 255, 0.8); }
body.ccd .cgi-moments-layout {
  grid-template-columns: 1fr;
  gap: 34px;
}
body.ccd .moments-grid { gap: 20px; }
body.ccd .moment-card {
  position: relative;
  border: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 26px 46px -28px rgba(0, 0, 0, 0.7);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
body.ccd .moment-card::after {
  content: '';
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: var(--ccd-tricolour);
}
body.ccd .moment-card:hover { transform: translateY(-4px); box-shadow: 0 34px 56px -28px rgba(0, 0, 0, 0.8); }
body.ccd .moment-card-top {
  height: 210px;
  margin: 8px 8px 0;
  overflow: hidden;
  border-radius: 15px;
}
body.ccd .moment-card-season {
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  color: var(--ccd-ink);
  background: linear-gradient(135deg, #ffdc3a 0%, #ffc400 100%);
  box-shadow: 0 8px 16px -10px rgba(0, 0, 0, 0.6);
  font-size: 0.72rem;
  font-weight: 900;
}
body.ccd .moment-card-body { padding: 18px 20px 24px; }
body.ccd .moment-card-body h3 {
  color: var(--ccd-ink);
  font-size: 1.08rem;
  font-weight: 900;
}
body.ccd .moment-card-body p { color: var(--ccd-muted); font-size: 0.88rem; }

/* --------------------------------------------------------------------------
   7. Beloved friends: twelve character cards in full rows.
   -------------------------------------------------------------------------- */
body.ccd #classic-characters.cgi-chars {
  padding: clamp(64px, 6.4vw, 96px) 0;
  background: var(--ccd-light-bg) !important;
}
body.ccd .cgi-char-stage {
  grid-template-columns: 1fr;
  gap: 32px;
}
/* Six per row only where every photo stays at least 150px wide: the site adds
   its series credit to character photos from that size. */
body.ccd .cgi-char-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1239px) {
  body.ccd .cgi-char-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  body.ccd .cgi-char-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
body.ccd .cgi-char-card {
  --ccd-tint-a: #eaf4ff;
  --ccd-tint-b: #cfe6ff;
  position: relative;
  grid-template-rows: auto auto;
  align-content: start;
  min-height: 0;
  padding: 8px 8px 18px;
  border: 1px solid rgba(11, 31, 63, 0.07);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--ccd-card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
body.ccd .cgi-char-card:nth-child(5n + 2) { --ccd-tint-a: #fff8dc; --ccd-tint-b: #ffe79a; }
body.ccd .cgi-char-card:nth-child(5n + 3) { --ccd-tint-a: #fff0f1; --ccd-tint-b: #ffd3d9; }
body.ccd .cgi-char-card:nth-child(5n + 4) { --ccd-tint-a: #eafaf0; --ccd-tint-b: #c9efd8; }
body.ccd .cgi-char-card:nth-child(5n + 5) { --ccd-tint-a: #f3efff; --ccd-tint-b: #ddd3ff; }
body.ccd .cgi-char-card:hover,
body.ccd .cgi-char-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--ccd-card-shadow-hover);
}
body.ccd .cgi-char-avatar {
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 0 14px;
  padding: 5px;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--ccd-tint-a) 0%, var(--ccd-tint-b) 100%) !important;
  box-shadow: none;
}
body.ccd .cgi-char-avatar img {
  border-radius: 12px;
  box-shadow: 0 10px 20px -14px rgba(13, 31, 60, 0.6);
}
body.ccd .cgi-char-card h3 {
  margin: 0;
  color: var(--ccd-ink);
  font-size: 1.04rem;
  font-weight: 900;
}
body.ccd .cgi-char-type {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  min-height: 22px;
  margin: 8px auto 0;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--ccd-blue-deep);
  background: #e6f0ff;
  font-size: 0.68rem;
  font-weight: 900;
}
body.ccd .cgi-char-desc {
  margin-top: 8px;
  padding: 0 6px;
  color: var(--ccd-muted);
  font-size: 0.8rem;
  line-height: 1.42;
}

/* --------------------------------------------------------------------------
   8. From CGI to 2026
   -------------------------------------------------------------------------- */
body.ccd .cgi-transition {
  padding: clamp(64px, 6.4vw, 96px) 0;
  background:
    linear-gradient(90deg, rgba(10, 26, 54, 0.95) 0%, rgba(13, 39, 83, 0.86) 50%, rgba(10, 26, 54, 0.95) 100%),
    url('assets/images/characters/cgi-promo/new/ThomasSpringpromo.webp') center / cover no-repeat;
}
body.ccd .cgi-transition::before {
  height: 6px;
  background: var(--ccd-tricolour);
  opacity: 1;
}
body.ccd .cgi-transition h2 { color: #fff; }
body.ccd .cgi-transition h2::after { margin-right: auto; margin-left: auto; }
body.ccd .cgi-transition p {
  max-width: 680px;
  margin: 20px auto 0;
  color: rgba(234, 242, 255, 0.86);
  font-size: 1.02rem;
  line-height: 1.66;
}
body.ccd .cgi-transition-arrows { gap: 14px; margin: 32px 0; }
body.ccd .cgi-transition-era {
  min-width: 170px;
  padding: 16px 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
body.ccd .cgi-transition-era:last-child {
  border-color: rgba(255, 212, 0, 0.6);
  background: rgba(255, 212, 0, 0.14);
}
body.ccd .cgi-transition-era strong { color: #fff; font-weight: 900; }
body.ccd .cgi-transition-era small { color: var(--ccd-yellow); font-weight: 800; }
body.ccd .cgi-transition-arrow { color: var(--ccd-yellow); }
body.ccd .cgi-transition .btn { display: inline-flex; align-items: center; gap: 10px; }

/* --------------------------------------------------------------------------
   9. The CGI Series introduction (near the bottom)
   -------------------------------------------------------------------------- */
body.ccd .cgi-hero {
  min-height: 0;
  padding: clamp(64px, 6.4vw, 96px) 0 clamp(70px, 7vw, 104px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--ccd-navy-bg);
}
body.ccd .cgi-hero::before {
  background: radial-gradient(rgba(255, 255, 255, 0.09) 1.1px, transparent 1.5px) 0 0 / 22px 22px;
  opacity: 1;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 78%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 78%);
}
body.ccd .cgi-hero::after {
  bottom: 22px;
  height: 18px;
  border: 0;
  background:
    linear-gradient(180deg, transparent 3px, rgba(255, 255, 255, 0.3) 3px 6px, transparent 6px 12px, rgba(255, 255, 255, 0.3) 12px 15px, transparent 15px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 6px, transparent 6px 26px);
}
body.ccd .cgi-hero .container.cgi-hero-grid {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  gap: clamp(30px, 4vw, 56px);
}
body.ccd .cgi-hero-years {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  border: 1px solid rgba(255, 205, 0, 0.5);
  border-radius: 999px;
  color: var(--ccd-yellow);
  background: rgba(255, 205, 0, 0.12);
  box-shadow: none;
  font-size: 0.76rem;
  font-weight: 900;
}
body.ccd .cgi-hero-title {
  margin: 18px 0 0;
  font-family: inherit;
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-shadow: none;
}
body.ccd .cgi-hero-title span:first-child {
  display: block;
  margin: 0;
  color: #fff;
  font-family: inherit;
  font-size: 1em;
  line-height: inherit;
}
body.ccd .cgi-hero-title span:last-child {
  display: block;
  margin-top: 12px;
  color: var(--ccd-yellow);
  font-family: inherit;
  font-size: 0.46em;
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -0.01em;
  text-shadow: 0 0 30px rgba(255, 205, 0, 0.35);
}
body.ccd .cgi-hero-title::after {
  content: '';
  display: block;
  width: 92px;
  height: 6px;
  margin-top: 18px;
  border-radius: 999px;
  background: var(--ccd-tricolour);
}
body.ccd .cgi-hero p {
  margin-top: 18px;
  color: rgba(234, 242, 255, 0.86);
  font-size: 1.02rem;
  line-height: 1.66;
  text-shadow: none;
}
body.ccd .cgi-hero-actions { gap: 12px; margin-top: 26px; }
body.ccd .cgi-hero-proof { gap: 12px; margin-top: 26px; }
body.ccd .cgi-hero-proof-item {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
}
body.ccd .cgi-hero-proof-icon {
  border: 0;
  border-radius: 50%;
  color: var(--ccd-ink);
  background: linear-gradient(135deg, #ffdc3a 0%, #ffc400 100%);
}
body.ccd .cgi-hero-proof-copy span { color: rgba(234, 242, 255, 0.72); }
body.ccd .cgi-hero-showcase::before {
  inset: 34px -14px -18px 46px;
  border: 0;
  border-radius: 28px;
  background:
    radial-gradient(rgba(255, 205, 0, 0.28) 1.2px, transparent 1.6px) 0 0 / 16px 16px,
    rgba(255, 205, 0, 0.08);
  transform: rotate(-1.5deg);
}
body.ccd .cgi-hero-image {
  border: 4px solid #fff;
  border-radius: 22px;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.75);
}
body.ccd .cgi-hero-image::after { background: none; }
/* The image captions were Dutch in every language; the photos speak for themselves. */
body.ccd .cgi-hero-image-caption { display: none; }

/* --------------------------------------------------------------------------
   10. Discover where it all began: white cards with a photo well.
   -------------------------------------------------------------------------- */
body.ccd .cgi-sodor-next {
  padding: clamp(64px, 6.4vw, 96px) 0;
  background: var(--ccd-light-bg) !important;
}
body.ccd .cgi-sodor-next-head { gap: 18px 44px; margin-bottom: 34px; }
body.ccd .cgi-sodor-next-head h2 { margin-top: 0; }
body.ccd .cgi-sodor-next-head p { color: var(--ccd-muted); font-size: 1.02rem; line-height: 1.62; }
body.ccd .cgi-sodor-next-grid { gap: 20px; }
body.ccd .cgi-sodor-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid rgba(11, 31, 63, 0.07);
  border-radius: 24px;
  color: var(--ccd-ink);
  background: #fff;
  box-shadow: var(--ccd-card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
body.ccd .cgi-sodor-card::after {
  inset: auto 18px 0;
  height: 5px;
  border-radius: 999px 999px 0 0;
  background: var(--ccd-tricolour);
}
body.ccd .cgi-sodor-card:hover,
body.ccd .cgi-sodor-card:focus-visible {
  color: var(--ccd-ink);
  transform: translateY(-4px);
  box-shadow: var(--ccd-card-shadow-hover);
}
body.ccd .cgi-sodor-card img {
  width: calc(100% - 16px);
  height: 230px;
  min-height: 0;
  margin: 8px 8px 0;
  border-radius: 16px;
  background: #eef4fb;
}
body.ccd .cgi-sodor-card .series-media-credit { bottom: auto; top: 200px; right: 18px; }
body.ccd .cgi-sodor-card-copy {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  padding: 18px 22px 26px;
}
body.ccd .cgi-sodor-card-copy span { display: block; color: var(--ccd-red); font-size: 0.7rem; letter-spacing: 0.06em; line-height: 1.35; }
body.ccd .cgi-sodor-card-copy h3 {
  margin: 8px 0 6px;
  color: var(--ccd-ink);
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
body.ccd .cgi-sodor-card-copy p { color: var(--ccd-muted); font-size: 0.9rem; }
body.ccd .cgi-sodor-card-copy h3::after {
  content: '\2192';
  display: inline-block;
  margin-left: 10px;
  color: var(--ccd-blue);
  font-size: 0.8em;
  transition: transform 0.2s ease;
}
body.ccd .cgi-sodor-card:hover .cgi-sodor-card-copy h3::after { transform: translateX(4px); }

/* Focus rings */
body.ccd .cgi-range-card:focus-visible,
body.ccd .cgi-bts-card:focus-visible,
body.ccd .cgi-char-card:focus-visible,
body.ccd .cgi-sodor-card:focus-visible,
body.ccd .cgi-source-links a:focus-visible,
body.ccd .cgi-btn:focus-visible,
body.ccd .cgi-transition .btn:focus-visible {
  outline: 3px solid var(--ccd-blue);
  outline-offset: 3px;
}
body.ccd .cgi-series20-hero__button:focus-visible { outline: 3px solid var(--ccd-yellow); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   Laptops and tablets
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  body.ccd .ccd-hero-seal { width: 210px; padding: 18px 16px; }
  body.ccd .ccd-hero-seal__badge { width: 136px; height: 136px; }
  body.ccd #cgi-product-grid.cgi-prod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.ccd .cgi-era-layout,
  body.ccd .cgi-hero .container.cgi-hero-grid { grid-template-columns: 1fr; }
  body.ccd .cgi-era-photo { max-width: 720px; }
  body.ccd .cgi-anniversary-story.cgi-anniversary-story--compact { grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr); }
}

@media (max-width: 1000px) {
  /* Range cards stay a swipeable row (the navigation sheet's own rule). */
  body.ccd .cgi-range-card { flex: 0 0 min(40vw, 290px); }
  body.ccd .cgi-range-tabs { padding: 6px 4px 22px; }
  body.ccd .cgi-production-board { grid-template-columns: 1fr; }
  body.ccd .cgi-bts-gallery,
  body.ccd .cgi-era-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   Phones
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  body.ccd .cgi-section-inner,
  body.ccd .cgi-hero .container.cgi-hero-grid { padding-right: 18px; padding-left: 18px; }
  body.ccd .cgi-range-inner { padding: 0 0 0 18px; }

  body.ccd .cgi-series20-hero {
    min-height: 0;
    align-items: flex-end;
  }
  body.ccd .cgi-series20-hero::before {
    display: block;
    inset: 0 0 auto 0;
    width: 100%;
    height: 300px;
    background:
      linear-gradient(0deg, rgba(10, 29, 64, 1) 0%, rgba(10, 29, 64, 0.5) 30%, rgba(10, 29, 64, 0) 60%),
      url('assets/images/thomas/series21-promo.webp') 50% 30% / cover no-repeat;
    background-size: auto, cover;
    -webkit-mask-image: none;
    mask-image: none;
  }
  body.ccd .cgi-series20-hero__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 14px 12px;
    padding: 200px 18px 66px;
  }
  body.ccd .cgi-series20-hero__copy { display: contents; }
  body.ccd .cgi-series20-hero__label {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    margin-bottom: 0;
    font-size: 0.66rem;
  }
  body.ccd .cgi-series20-hero h1 { grid-column: 1 / -1; font-size: clamp(2.2rem, 10vw, 3rem); }
  body.ccd .cgi-series20-hero h1 span:last-child { font-size: 0.58em; }
  body.ccd .cgi-series20-hero h1::after { margin-top: 16px; }
  body.ccd .ccd-hero-seal {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  body.ccd .ccd-hero-seal__badge { width: 84px; height: 84px; }
  body.ccd .ccd-hero-seal__badge::before { inset: -12px; }
  body.ccd .ccd-hero-seal__copy { display: none; }
  body.ccd .cgi-series20-hero__copy > p,
  body.ccd .cgi-series20-hero__actions { grid-column: 1 / -1; }
  body.ccd .cgi-series20-hero__copy > p { margin-top: 2px; font-size: 0.98rem; }
  body.ccd .cgi-series20-hero__actions { margin-top: 6px; }
  body.ccd .ccd-hero-credit { top: 10px; right: 10px; bottom: auto; }

  body.ccd #cgi-ranges.cgi-range-hub { padding-top: 40px; }
  body.ccd #cgi-ranges.cgi-range-hub::after { left: -190px; top: -160px; width: 420px; height: 420px; }
  body.ccd .cgi-range-heading { padding-right: 18px; margin-bottom: 18px; }
  body.ccd .cgi-range-view-all { margin-top: 4px; }
  body.ccd .cgi-range-tabs { gap: 12px; padding-right: 18px; }
  body.ccd .cgi-range-card { flex-basis: min(70vw, 272px); }
  body.ccd .cgi-range-card:hover,
  body.ccd .cgi-range-card[aria-pressed="true"] { transform: none; }
  body.ccd .cgi-range-card__visual { height: 138px; }

  body.ccd #cgi-product-grid.cgi-prod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  body.ccd #cgi-product-grid .product-card .product-image::before {
    top: 54px;
    right: 13px;
    bottom: auto;
    width: 30px;
    height: 30px;
  }
  body.ccd #cgi-product-grid .product-cart-btn {
    height: auto !important;
    min-height: 46px !important;
    padding: 6px 10px !important;
    gap: 6px;
    white-space: normal;
  }
  body.ccd #cgi-product-grid .product-cart-btn .product-cart-label {
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    line-height: 1.15;
    text-align: center;
  }
  body.ccd .cgi-products .collection-toolbar { padding: 12px 14px; border-radius: 18px; }

  body.ccd .cgi-anniversary-story.cgi-anniversary-story--compact { grid-template-columns: 1fr; border-radius: 24px; }
  body.ccd .cgi-anniversary-story--compact .cgi-anniversary-copy { padding: 28px 22px 10px; }
  body.ccd .cgi-anniversary-story--compact .cgi-anniversary-gallery { min-height: 250px; }
  body.ccd .cgi-anniversary-story--compact .cgi-anniversary-80-logo { width: 78px; height: 78px; }
  body.ccd .cgi-anniversary-story--compact .cgi-anniversary-thomas-logo { width: 112px; }

  body.ccd .cgi-era-facts { gap: 12px; margin-top: 30px; }
  body.ccd .cgi-fact { padding: 22px 16px 18px; border-radius: 18px; }
  body.ccd .cgi-era-quote { padding: 18px 18px 18px 60px; }

  /* Story, moment and character cards: swipeable rows instead of long columns. */
  body.ccd .cgi-bts-gallery,
  body.ccd .moments-grid,
  body.ccd .cgi-char-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    gap: 12px;
    margin-right: -18px;
    padding: 4px 18px 18px 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  body.ccd .cgi-bts-gallery::-webkit-scrollbar,
  body.ccd .moments-grid::-webkit-scrollbar,
  body.ccd .cgi-char-grid::-webkit-scrollbar { display: none; }
  body.ccd .cgi-bts-gallery,
  body.ccd .moments-grid { grid-auto-columns: minmax(240px, 80%); }
  body.ccd .cgi-char-grid { grid-auto-columns: minmax(186px, 52%); }
  body.ccd .cgi-bts-card,
  body.ccd .moment-card,
  body.ccd .cgi-char-card { scroll-snap-align: start; }
  body.ccd .cgi-bts-card:hover,
  body.ccd .moment-card:hover,
  body.ccd .cgi-char-card:hover { transform: none; }
  body.ccd .moment-card-top { height: 180px; }
  body.ccd .cgi-char-card { grid-template-rows: auto auto; min-height: 0; }
  body.ccd .cgi-char-avatar { height: auto; }

  body.ccd .cgi-rail-stop { padding: 0 0 18px 78px; border-radius: 0; }
  body.ccd .cgi-rail-stop::before { top: 0; right: 0; bottom: 18px; left: 64px; border-radius: 18px; }
  body.ccd .cgi-rail-stop strong { margin-top: 0; padding-top: 16px; }
  body.ccd .cgi-rail-stop p { max-width: none; margin-bottom: 0; padding-right: 16px; padding-bottom: 16px; }
  body.ccd .cgi-rail::before { top: 0; bottom: 18px; left: 22px; right: auto; width: 6px; height: auto; background: linear-gradient(180deg, #0a5bd3 0 36%, #ffcd00 36% 64%, #ee0024 64% 100%); }
  body.ccd .cgi-rail-dot { top: 8px; left: 25px; }

  body.ccd .cgi-transition-arrows { margin: 24px 0; }
  body.ccd .cgi-transition-era { width: min(100%, 280px); }

  body.ccd .cgi-timeline-head { grid-template-columns: 1fr; margin-bottom: 28px; }
  body.ccd .cgi-hero-media { min-height: 0; }
  body.ccd .cgi-hero-proof { grid-template-columns: 1fr; }
  body.ccd .cgi-hero-proof-item { grid-template-columns: 36px minmax(0, 1fr); justify-items: start; min-height: 58px; text-align: left; }
  body.ccd .cgi-hero-proof-copy span { display: block; }
  body.ccd .cgi-hero-showcase::before { inset: 26px -6px -10px 26px; }
  body.ccd .cgi-hero-image { border-width: 3px; border-radius: 18px; }

  body.ccd .cgi-sodor-next-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 80%);
    gap: 12px;
    margin-right: -18px;
    padding: 4px 18px 18px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  body.ccd .cgi-sodor-next-grid::-webkit-scrollbar { display: none; }
  body.ccd .cgi-sodor-card { scroll-snap-align: start; }
  body.ccd .cgi-sodor-card img { height: 190px; }
  body.ccd .cgi-sodor-card .series-media-credit { top: 162px; }
}

@media (max-width: 480px) {
  body.ccd .cgi-series20-hero::before { height: 260px; }
  body.ccd .cgi-series20-hero__inner { padding-top: 188px; }
  body.ccd .cgi-series20-hero__button { flex: 1 1 0; min-height: 48px; padding: 0 12px; font-size: 0.84rem; }
  body.ccd .ccd-hero-seal__badge { width: 72px; height: 72px; }
  body.ccd .cgi-era-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.ccd .cgi-fact-value { font-size: 1.6rem; }
  body.ccd .cgi-fact-label { font-size: 0.78rem; }
}

/* Small phones, two cards per row: the cart label gets the full button width (no icon, one line in
   Dutch) and the 80 seal stays off the product photo. */
@media (max-width: 480px) {
  body.ccd #cgi-product-grid .product-cart-btn {
    padding: 6px 8px !important;
    font-size: 0.82rem !important;
  }
  body.ccd #cgi-product-grid .product-cart-btn svg { display: none; }
  body.ccd #cgi-product-grid .product-card .product-image::before { display: none; }
}

@media (max-width: 340px) {
  body.ccd #cgi-product-grid.cgi-prod-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  body.ccd .cgi-range-card,
  body.ccd .cgi-bts-card,
  body.ccd .moment-card,
  body.ccd .cgi-char-card,
  body.ccd .cgi-sodor-card,
  body.ccd .cgi-production-note,
  body.ccd .cgi-source-links a,
  body.ccd .cgi-sodor-card-copy h3::after { transition: none; }
  body.ccd .cgi-range-card:hover,
  body.ccd .cgi-range-card[aria-pressed="true"],
  body.ccd .cgi-bts-card:hover,
  body.ccd .moment-card:hover,
  body.ccd .cgi-char-card:hover,
  body.ccd .cgi-sodor-card:hover,
  body.ccd .cgi-production-note:hover,
  body.ccd .cgi-series20-hero__button:hover,
  body.ccd .cgi-btn:hover,
  body.ccd .cgi-transition .btn:hover { transform: none; }
}
