/* 05 / One in, a week out: the episode card, the rail and ten draft tiles that flip one by one.
   Every rule is scoped under #fanout. The tile looks follow the channel looks in brief §1 and §8.
   Product palettes are defined on the component root (.ce-fan-stage) and used only inside the
   simulated tiles. */

#fanout .ce-fan-stage {
  --nc-navy: #1d2b45;
  --nc-navy-2: #2b3d5c;
  --nc-cream: #f3ecdf;
  --nc-coral: #ef7d57;
  --lp-bg: #ffffff;
  --lp-ink: #1d2226;
  --lp-muted: #666666;
  --lp-line: #e6e3dd;
  --lp-link: #0a66c2;
  --xp-bg: #000000;
  --xp-ink: #e7e9ea;
  --xp-muted: #71767b;
  --xp-line: #2f3336;
  --np-bg: #fbf8f2;
  --np-ink: #23211d;
  --np-muted: #7a746a;
  --np-line: #e7e1d6;
  --sp-bg: #ffffff;
  --sp-title: #1f4fb5;
  --sp-url: #3c6e47;
  --sp-ink: #4d5156;
  --sp-line: #e8eaed;
  --fan-gap: 16px;
}

#fanout .ce-fan-in {
  padding: 28px;
}

/* [hidden] must win over the display rules of the classes below */
#fanout [hidden] {
  display: none !important;
}

#fanout .ce-fan-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Episode card ---------- */

#fanout .ce-fan-ep {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  max-width: 620px;
  margin: 8px auto 0;
  padding: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

#fanout .ce-fan-cover {
  position: relative;
  width: 72px;
  height: 72px;
  padding: 8px 9px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 6px;
  background: linear-gradient(160deg, var(--nc-navy-2) 0%, var(--nc-navy) 100%);
  overflow: hidden;
}

#fanout .ce-fan-cover::after {
  content: "";
  position: absolute;
  left: 9px;
  bottom: 8px;
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: var(--nc-coral);
}

#fanout .ce-fan-cover-k {
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: hsl(42 30% 94% / 0.7);
}

#fanout .ce-fan-cover-n {
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--nc-cream);
}

#fanout .ce-fan-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--ash);
}

#fanout .ce-fan-meta-l {
  display: block;
  white-space: nowrap;
}

#fanout .ce-fan-title {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--bone);
}

#fanout .ce-fan-act {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

#fanout .ce-fan-go {
  position: relative;
  white-space: nowrap;
}

#fanout .ce-fan-go svg {
  flex: none;
  width: 14px;
  height: 14px;
}

#fanout .ce-fan-go .ce-fan-ok {
  display: none;
}

#fanout .ce-fan-go.is-ready::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  opacity: 0;
  pointer-events: none;
  animation: ce-fan-pulse 2s var(--ease-std) infinite;
}

@keyframes ce-fan-pulse {
  0% { opacity: 0.7; transform: scale(0.96); }
  70%, 100% { opacity: 0; transform: scale(1.12); }
}

#fanout .ce-fan-go:disabled {
  transform: none;
  box-shadow: none;
  background: var(--elev-2);
  border-color: var(--line);
  color: var(--bone);
  cursor: default;
}

#fanout .ce-fan-go.is-running {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

#fanout .ce-fan-go.is-done {
  color: var(--ok);
}

#fanout .ce-fan-go.is-done .ce-fan-ok {
  display: block;
}

#fanout .ce-fan-go.is-running .ce-fan-ico,
#fanout .ce-fan-go.is-done .ce-fan-ico {
  display: none;
}

#fanout .ce-fan-static {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ok);
  border-color: hsl(152 60% 48% / 0.45);
  background: hsl(152 60% 48% / 0.1);
}

#fanout .ce-fan-again {
  font-size: 12.5px;
}

/* Progress along the bottom edge of the card */
#fanout .ce-fan-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  pointer-events: none;
}

#fanout .ce-fan-bar i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 400ms var(--ease-std);
}

/* ---------- Rail: from the card's bottom centre to the centres of the first row (desktop only) ---------- */

#fanout .ce-fan-rail {
  display: none;
}

#fanout .ce-fan-swipe {
  display: none;
  margin: 0 0 10px;
  padding: 12px 2px 0;
  color: var(--ash);
}

/* ---------- Tiles grid ---------- */

#fanout .ce-fan-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--fan-gap);
}

#fanout .ce-tile {
  position: relative;
  perspective: 1200px;
  container-type: inline-size;
  aspect-ratio: 3 / 4;
  min-width: 0;
  border-radius: 8px;
}

#fanout .ce-tile-in {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

#fanout .ce-fan-grid.is-rewind .ce-tile-in {
  transition-duration: 400ms;
}

/* Static state: the tiles are simply shown flipped */
#fanout .ce-fan-in.is-final .ce-tile-in {
  transition: none;
}

#fanout .ce-tile.is-flipped .ce-tile-in {
  transform: rotateY(180deg);
}

#fanout .ce-tile-f,
#fanout .ce-tile-b {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
}

#fanout .ce-tile-b {
  transform: rotateY(180deg);
  border: 1px solid var(--line);
  background: var(--t-bg, var(--surface));
}

/* A gold ring flashes on the edge of a tile as it lands */
#fanout .ce-tile.is-ring {
  animation: ce-fan-ring 700ms var(--ease-std);
}

@keyframes ce-fan-ring {
  from {
    box-shadow: 0 0 0 1px var(--accent), 0 0 0 0 rgb(255 255 255 / 0);
  }
  to {
    box-shadow: 0 0 0 1px rgb(255 255 255 / 0), 0 0 24px 0 rgb(255 255 255 / 0);
  }
}

/* ---------- Front ---------- */

#fanout .ce-tile-f {
  display: flex;
  flex-direction: column;
  padding: 7cqi;
  background: var(--surface);
  border: 1px solid var(--line);
}

#fanout .ce-tile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

#fanout .ce-tile-ch {
  display: grid;
  place-items: center;
  width: 14cqi;
  height: 14cqi;
  border-radius: 2.5cqi;
  color: var(--h);
  background: color-mix(in oklab, var(--h) 16%, transparent);
  border: 1px solid color-mix(in oklab, var(--h) 38%, transparent);
}

#fanout .ce-tile-ch svg {
  width: 8cqi;
  height: 8cqi;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#fanout .ce-tile-n {
  font-size: 4.3cqi;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--accent);
}

#fanout .ce-tile-name {
  margin: 7cqi 0 0;
  font-family: var(--font-display);
  font-size: 8cqi;
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--bone);
}

#fanout .ce-tile-desc {
  margin: 3cqi 0 0;
  font-family: var(--font-sans);
  font-size: 5.2cqi;
  line-height: 1.45;
  color: var(--ash);
}

#fanout .ce-tile-pend {
  margin-top: auto;
}

#fanout .ce-tile-hatch {
  display: block;
  height: 30cqi;
  border-radius: 4px;
  background: repeating-linear-gradient(135deg, hsl(42 30% 94% / 0.06) 0 1px, transparent 1px 7px);
}

#fanout .ce-tile-pl {
  display: block;
  margin-top: 2.6cqi;
  font-size: 3.8cqi;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--ash);
}

/* ---------- Back: shared frame ---------- */

#fanout .ce-tile-body {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 14cqi;
  overflow: hidden;
  color: var(--t-ink);
}

/* Where the look is taller than the tile, the bottom fades out */
#fanout .ce-tile-body.is-clipped::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14cqi;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--t-fade));
}

#fanout .ce-tile-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14cqi;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqi;
  padding: 0 4.5cqi;
  background: var(--t-foot);
  border-top: 1px solid var(--t-line);
}

#fanout .ce-tile-from {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 3.4cqi;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: var(--t-muted);
}

#fanout .ce-ready {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  flex: none;
  padding: 0.35em 0.6em;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 3.2cqi;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: var(--ok);
  border: 1px solid hsl(152 60% 48% / 0.45);
  background: hsl(152 60% 48% / 0.1);
}

#fanout .ce-ready::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
}

/* Look palettes (set per back) */
#fanout .ce-look-lp {
  --t-bg: var(--lp-bg);
  --t-fade: var(--lp-bg);
  --t-ink: var(--lp-ink);
  --t-muted: var(--lp-muted);
  --t-line: var(--lp-line);
  --t-foot: rgba(255, 255, 255, 0.92);
}

#fanout .ce-look-xp {
  --t-bg: var(--xp-bg);
  --t-fade: var(--xp-bg);
  --t-ink: var(--xp-ink);
  --t-muted: var(--xp-muted);
  --t-line: var(--xp-line);
  --t-foot: rgba(10, 9, 8, 0.72);
}

#fanout .ce-look-nl {
  --t-bg: var(--np-bg);
  --t-fade: var(--np-bg);
  --t-ink: var(--np-ink);
  --t-muted: var(--np-muted);
  --t-line: var(--np-line);
  --t-foot: rgba(255, 255, 255, 0.92);
}

#fanout .ce-look-sp {
  --t-bg: var(--sp-bg);
  --t-fade: var(--sp-bg);
  --t-ink: var(--sp-ink);
  --t-muted: var(--sp-ink);
  --t-line: var(--sp-line);
  --t-foot: rgba(255, 255, 255, 0.92);
}

#fanout .ce-look-cl {
  --t-bg: var(--surface);
  --t-fade: var(--surface);
  --t-ink: var(--bone);
  --t-muted: var(--ash);
  --t-line: var(--line);
  --t-foot: rgba(10, 9, 8, 0.72);
}

#fanout .ce-look-qt {
  --t-bg: radial-gradient(120% 90% at 20% 10%, var(--nc-navy-2), var(--nc-navy) 60%);
  --t-fade: var(--nc-navy);
  --t-ink: var(--nc-cream);
  --t-muted: var(--nc-cream);
  --t-line: hsl(42 30% 94% / 0.14);
  --t-foot: rgba(10, 9, 8, 0.72);
}

#fanout .ce-gap {
  display: block;
  height: 2.4cqi;
}

/* ---------- LinkedIn-style post (light) ---------- */

#fanout .ce-lp {
  position: relative;
  height: 100%;
  padding: 6cqi;
  font-family: var(--font-sans);
  color: var(--t-ink);
}

#fanout .ce-lp-head {
  display: flex;
  align-items: center;
  gap: 3cqi;
}

#fanout .ce-lp-av {
  display: grid;
  place-items: center;
  flex: none;
  width: 12cqi;
  height: 12cqi;
  border-radius: 50%;
  background: var(--nc-navy);
  color: var(--nc-cream);
  font-family: var(--font-display);
  font-size: 4.4cqi;
  font-weight: 600;
  line-height: 1;
}

#fanout .ce-lp-who {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

#fanout .ce-lp-who b {
  font-size: 5.2cqi;
  font-weight: 600;
  line-height: 1.25;
  color: var(--t-ink);
}

#fanout .ce-lp-who small {
  font-size: 4cqi;
  line-height: 1.3;
  color: var(--t-muted);
}

#fanout .ce-lp-pill {
  flex: none;
  padding: 0.3em 0.8em;
  border: 1px solid var(--t-line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 3.4cqi;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--t-muted);
}

#fanout .ce-lp-text {
  margin-top: 4.5cqi;
  font-size: 4.7cqi;
  line-height: 1.42;
  color: var(--t-ink);
}

#fanout .ce-lp-p {
  margin: 0;
}

#fanout .ce-lp-li {
  padding-left: 4cqi;
  text-indent: -4cqi;
}

#fanout .ce-lp-more {
  position: absolute;
  left: 6cqi;
  bottom: 2.5cqi;
  z-index: 1;
  font-size: 4cqi;
  line-height: 1.2;
  color: var(--lp-link);
}

/* ---------- X-style thread (dark) ---------- */

#fanout .ce-xp {
  height: 100%;
  padding: 5cqi;
  color: var(--t-ink);
}

#fanout .ce-xp-post {
  display: flex;
  gap: 3.5cqi;
}

#fanout .ce-xp-side {
  position: relative;
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  width: 9cqi;
}

#fanout .ce-xp-side::after {
  content: "";
  flex: 1;
  width: 1px;
  min-height: 3cqi;
  margin: 1.5cqi 0;
  background: var(--t-line);
}

#fanout .ce-xp-av {
  flex: none;
  width: 9cqi;
  height: 9cqi;
  border-radius: 50%;
  background: #3a3f45;
}

#fanout .ce-xp-col {
  min-width: 0;
  flex: 1;
  padding-bottom: 3cqi;
}

#fanout .ce-xp-name {
  margin: 0;
  font-size: 4.4cqi;
  line-height: 1.3;
  color: var(--t-ink);
}

#fanout .ce-xp-name b {
  font-weight: 600;
}

#fanout .ce-xp-n {
  font-size: 3.6cqi;
  letter-spacing: 0.06em;
  color: var(--t-muted);
}

#fanout .ce-xp-t {
  margin: 0.6cqi 0 0;
  font-size: 4.5cqi;
  line-height: 1.4;
  color: var(--t-ink);
}

#fanout .ce-xp-more {
  margin: 0 0 0 12.5cqi;
  font-size: 3.8cqi;
  line-height: 1.3;
  letter-spacing: 0.1em;
  color: var(--t-muted);
}

/* ---------- Newsletter draft (paper) ---------- */

#fanout .ce-nl {
  height: 100%;
  padding: 5.5cqi 6cqi;
  font-family: var(--font-sans);
  color: var(--t-ink);
}

#fanout .ce-nl-mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqi;
  padding-bottom: 2.2cqi;
  border-bottom: 1px solid var(--t-line);
}

#fanout .ce-nl-name {
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 3.6cqi;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nc-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#fanout .ce-nl-date {
  flex: none;
  font-size: 3.4cqi;
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: var(--t-muted);
  white-space: nowrap;
}

#fanout .ce-nl-sub {
  margin: 3.5cqi 0 0;
  font-family: var(--font-display);
  font-size: 6.4cqi;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--nc-navy);
}

#fanout .ce-nl-intro {
  margin: 2.8cqi 0 0;
  font-size: 4.1cqi;
  line-height: 1.4;
  color: var(--t-ink);
}

#fanout .ce-nl-lab {
  margin: 3.2cqi 0 0.5cqi;
  font-family: var(--font-mono);
  font-size: 3.6cqi;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nc-navy);
}

#fanout .ce-nl-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

#fanout .ce-nl-list li {
  display: flex;
  gap: 2.5cqi;
  margin-top: 1.4cqi;
  font-size: 4cqi;
  line-height: 1.36;
  color: var(--t-ink);
}

#fanout .ce-nl-n {
  flex: none;
  width: 3.5cqi;
  font-weight: 600;
  color: var(--nc-navy);
}

#fanout .ce-nl-cta {
  display: inline-flex;
  margin-top: 3.2cqi;
  padding: 1.5cqi 4cqi;
  border-radius: 999px;
  background: var(--nc-navy);
  color: var(--nc-cream);
  font-size: 4cqi;
  font-weight: 600;
  line-height: 1.3;
}

#fanout .ce-nl-sign {
  margin: 2.6cqi 0 0;
  font-family: var(--font-display);
  font-size: 4.2cqi;
  color: var(--t-ink);
}

/* ---------- Clip script (dark, 9:16 frame and the timings) ---------- */

#fanout .ce-cl {
  display: grid;
  grid-template-columns: 46% minmax(0, 1fr);
  grid-template-areas:
    "frame side"
    "post post";
  align-content: start;
  gap: 5cqi;
  height: 100%;
  padding: 5cqi;
  color: var(--t-ink);
}

#fanout .ce-cl-frame {
  grid-area: frame;
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 3cqi;
  background: linear-gradient(165deg, #262b35 0%, #14171d 60%, #0d0f13 100%);
}

#fanout .ce-cl-frame > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#fanout .ce-cl-time {
  position: absolute;
  top: 3cqi;
  left: 3cqi;
  padding: 1.1cqi 2.4cqi;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 3.4cqi;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: #fff;
  white-space: nowrap;
}

#fanout .ce-cl-cap {
  position: absolute;
  left: 3.5cqi;
  right: 3.5cqi;
  bottom: 8cqi;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 3.9cqi;
  font-weight: 700;
  line-height: 1.18;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

#fanout .ce-cl-cap span {
  display: block;
}

#fanout .ce-cl-hl {
  color: var(--nc-coral);
}

/* Small text on the white and cream tiles: darker shades so the chips and labels pass WCAG AA */
#fanout .ce-look-lp .ce-ready,
#fanout .ce-look-nl .ce-ready,
#fanout .ce-look-sp .ce-ready {
  color: #0a6b3d;
}

#fanout .ce-look-lp .ce-tile-from,
#fanout .ce-look-nl .ce-tile-from,
#fanout .ce-look-sp .ce-tile-from {
  color: #595959;
}

#fanout .ce-look-nl .ce-nl-date {
  color: #6a6459;
}

#fanout .ce-cl-side {
  grid-area: side;
  display: flex;
  flex-direction: column;
  align-self: start;
  min-width: 0;
  gap: 1.8cqi;
}

#fanout .ce-cl-k {
  font-size: 3.6cqi;
  line-height: 1.2;
  color: var(--accent);
}

#fanout .ce-cl-row {
  font-size: 3.4cqi;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--ash);
}

#fanout .ce-cl-lab {
  margin-top: 2.5cqi;
  font-size: 3.4cqi;
  line-height: 1.2;
  color: var(--ash);
}

#fanout .ce-cl-hook {
  margin: 0;
  font-family: var(--font-display);
  font-size: 4.4cqi;
  line-height: 1.25;
  font-weight: 500;
  color: var(--bone);
}

#fanout .ce-cl-post {
  grid-area: post;
  padding-top: 3cqi;
  border-top: 1px solid var(--line);
}

#fanout .ce-cl-post .ce-cl-lab {
  margin-top: 0;
}

#fanout .ce-cl-post p {
  margin: 1.6cqi 0 0;
  font-size: 4cqi;
  line-height: 1.45;
  color: hsl(42 30% 94% / 0.7);
}

/* ---------- SEO blog summary (search snippet, white) ---------- */

#fanout .ce-sp {
  height: 100%;
  padding: 6cqi;
  color: var(--t-ink);
}

#fanout .ce-sp-lab {
  margin: 0;
  font-size: 3.6cqi;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--sp-ink);
}

#fanout .ce-sp-snip {
  margin-top: 3cqi;
  padding: 3.4cqi 4cqi;
  border: 1px solid var(--sp-line);
  border-radius: 2cqi;
}

#fanout .ce-sp-url {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 3.2cqi;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--sp-url);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#fanout .ce-sp-title {
  margin: 1.6cqi 0 0;
  font-family: var(--font-sans);
  font-size: 5.2cqi;
  line-height: 1.25;
  color: var(--sp-title);
}

#fanout .ce-sp-desc {
  margin: 1.4cqi 0 0;
  font-size: 3.8cqi;
  line-height: 1.4;
  color: var(--sp-ink);
}

#fanout .ce-sp-h {
  margin: 3.6cqi 0 0;
  font-size: 3.4cqi;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--sp-ink);
}

#fanout .ce-sp-hs {
  display: grid;
  gap: 1.6cqi;
  margin: 2cqi 0 0;
  padding: 0;
  list-style: none;
}

#fanout .ce-sp-hs li {
  display: flex;
  align-items: center;
  gap: 2.5cqi;
  font-size: 4.2cqi;
  line-height: 1.3;
  color: var(--sp-ink);
}

#fanout .ce-sp-tag {
  flex: none;
  padding: 0.35em 0.6em;
  border: 1px solid var(--sp-line);
  border-radius: 3px;
  font-size: 3cqi;
  line-height: 1.1;
  letter-spacing: 0.06em;
  color: var(--sp-ink);
}

#fanout .ce-sp-chip {
  display: inline-flex;
  margin-top: 2cqi;
  padding: 1.2cqi 3.4cqi;
  border: 1px solid hsl(218 65% 44% / 0.4);
  border-radius: 999px;
  font-size: 4cqi;
  line-height: 1.3;
  color: var(--sp-title);
}

/* ---------- Quote card (Northcote navy) ---------- */

#fanout .ce-qt {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 8cqi;
  color: var(--nc-cream);
}

#fanout .ce-qt-mark {
  display: block;
  height: 14cqi;
  font-family: var(--font-display);
  font-size: 22cqi;
  line-height: 0.7;
  font-weight: 700;
  color: var(--nc-coral);
}

#fanout .ce-qt-q {
  margin: 1cqi 0 0;
  font-family: var(--font-display);
  font-size: 9cqi;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--nc-cream);
}

#fanout .ce-qt-by {
  margin: auto 0 0;
  padding-bottom: 12cqi;
}

#fanout .ce-qt-by b {
  display: block;
  font-size: 4.4cqi;
  font-weight: 600;
  line-height: 1.3;
  color: var(--nc-cream);
}

#fanout .ce-qt-by small {
  display: block;
  margin-top: 0.4cqi;
  font-size: 3.8cqi;
  line-height: 1.3;
  color: hsl(42 30% 94% / 0.7);
}

#fanout .ce-qt-mk {
  position: absolute;
  right: 8cqi;
  bottom: 6cqi;
  font-family: var(--font-mono);
  font-size: 3.4cqi;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: hsl(42 30% 94% / 0.6);
}

/* ---------- Rail (desktop, one row of five drops) ---------- */

@media (min-width: 1180px) {
  #fanout .ce-fan-rail {
    position: relative;
    display: block;
    height: 42px;
  }

  #fanout .ce-fan-rail > span {
    position: absolute;
    display: block;
    background: var(--accent-40);
    transition: background-color 300ms var(--ease-std);
  }

  /* Stem: 28px from the card's bottom centre */
  #fanout .ce-fan-stem {
    top: 0;
    left: 50%;
    width: 1px;
    height: 28px;
  }

  /* Hairline: from the centre of column 1 to the centre of column 5 */
  #fanout .ce-fan-hair {
    top: 28px;
    height: 1px;
    left: calc((100% - 4 * var(--fan-gap)) / 10);
    right: calc((100% - 4 * var(--fan-gap)) / 10);
    background: var(--line);
    transition: none;
  }

  /* Drops: 14px into the top of each first-row tile */
  #fanout .ce-fan-drop {
    top: 28px;
    width: 1px;
    height: 14px;
    left: calc((100% - 4 * var(--fan-gap)) / 10 + var(--i) * ((100% - 4 * var(--fan-gap)) / 5 + var(--fan-gap)));
  }

  #fanout .ce-fan-rail > .is-on {
    background: var(--accent);
  }

  #fanout .ce-fan-in.is-final .ce-fan-rail > span {
    background: var(--accent);
  }
}

/* ---------- Layout below 1180px: one horizontal row that scrolls, snapping tile by tile ---------- */

@media (max-width: 1179px) {
  #fanout .ce-fan-in {
    padding: 18px;
  }

  #fanout .ce-fan-swipe {
    display: block;
  }

  #fanout .ce-fan-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-40) transparent;
  }

  #fanout .ce-fan-grid:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 4px;
    border-radius: 8px;
  }

  #fanout .ce-tile {
    flex: 0 0 280px;
    scroll-snap-align: start;
  }
}

@media (max-width: 759px) {
  #fanout .ce-tile {
    flex-basis: min(78vw, 300px);
  }
}

/* Phones: the episode card stacks its button under the text */
@media (max-width: 560px) {
  #fanout .ce-fan-ep {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px 14px;
    padding: 12px;
  }

  #fanout .ce-fan-cover {
    width: 56px;
    height: 56px;
    padding: 6px 7px 11px;
  }

  #fanout .ce-fan-cover-n {
    font-size: 17.5px;
  }

  #fanout .ce-fan-cover::after {
    left: 7px;
    bottom: 6px;
    width: 12px;
  }

  #fanout .ce-fan-title {
    font-size: 18px;
  }

  #fanout .ce-fan-act {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  #fanout .ce-fan-line {
    text-align: left;
  }
}

/* The caption under the stage: left aligned, then centred from desktop */
#fanout .ce-fan-line {
  max-width: 44rem;
  margin: 24px 0 0;
  text-align: left;
}

@media (min-width: 1024px) {
  #fanout .ce-fan-line {
    margin: 32px auto 0;
    text-align: center;
  }
}

/* The gold phrase of the heading moves to its own line as a whole */
#fanout .sec-title .gold-i {
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  #fanout .ce-tile-in,
  #fanout .ce-fan-bar i,
  #fanout .ce-fan-rail > span {
    transition: none !important;
  }

  #fanout .ce-fan-go.is-ready::before,
  #fanout .ce-tile.is-ring {
    animation: none;
  }
}
