/* "Top" sits next to the price badge on the most popular expeditions. */
.rf-row .rf-badges{display:flex;gap:6px;flex:none;align-self:flex-start;margin-left:-4px}
.rf-row .rf-badges .rf-badge{margin:0}
.app.rf .rf-row .rf-badge.rf-badge-top{background:transparent;color:#f0dcae;border:1px solid #e7cf9a99;backdrop-filter:none}
/* Expedition colours apply only to the catalogue links. */
[data-course-tile="foundation"]{--tile-bg:#123e50;--tile-end:#1c6671;--tile-accent:#a6e6e4;--tile-copy:#d7eff0}
[data-course-tile="finance"]{--tile-bg:#102b22;--tile-end:#24513c;--tile-accent:#f4e4bb;--tile-copy:#d2e4d6}
[data-course-tile="sleep"]{--tile-bg:#0d2434;--tile-end:#1e465e;--tile-accent:#f4e5bc;--tile-copy:#d1e2ec}
[data-course-tile="energy"]{--tile-bg:#5b151b;--tile-end:#a8262e;--tile-accent:#fff1e6;--tile-copy:#ffe0dc}
[data-course-tile="focus"]{--tile-bg:#123047;--tile-end:#285b76;--tile-accent:#d4ecff;--tile-copy:#d3e5ee}
[data-course-tile="emotions"]{--tile-bg:#34394f;--tile-end:#646080;--tile-accent:#f2e6d0;--tile-copy:#e4e0f0}
[data-course-tile="boundaries"]{--tile-bg:#102f42;--tile-end:#315465;--tile-accent:#f1d39c;--tile-copy:#d6e3eb}
/* .app.rf + [href] keep these rules stronger than premium.css (.app.rf[data-room=foundation] a:is(.rf-row,.rf-feature):hover). */
.app.rf :is(.rf-row,.rf-feature)[data-course-tile][href]{position:relative;isolation:isolate;transition:transform .35s ease,color .25s ease,border-color .25s ease}
/* premium.css blur + overlapping 48px shadows make neighbouring tiles glow while the cursor moves. */
.app.rf :is(.rf-row,.rf-feature)[data-course-tile][href],
.app.rf :is(.rf-row,.rf-feature)[data-course-tile][href]:hover{backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none}
/* A gradient can't be transitioned, so it lives on a layer that fades in — no flashes while the cursor crosses tiles. */
.app.rf :is(.rf-row,.rf-feature)[data-course-tile][href]::before{content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(120deg,var(--tile-bg),var(--tile-end));opacity:0;transition:opacity .25s ease;pointer-events:none}
.app.rf :is(.rf-row,.rf-feature)[data-course-tile][href]:is(:hover,:focus-visible,:active)::before{opacity:1}
.app.rf :is(.rf-row,.rf-feature)[data-course-tile][href]:is(:hover,:focus-visible,:active){color:var(--tile-accent);border-color:var(--tile-end)}
.app.rf [data-course-tile][href]:is(:hover,:focus-visible,:active) .rf-row-title{color:var(--tile-accent)}
.app.rf [data-course-tile][href]:is(:hover,:focus-visible,:active) :is(.rf-row-sub,.rf-small){color:var(--tile-copy)}
.app.rf .rf-row[data-course-tile][href]:is(:hover,:focus-visible,:active)>.icon{color:var(--tile-accent)}
.app.rf .rf-feature[data-course-tile][href]:is(:hover,:focus-visible,:active) .rf-btn.dark{background:var(--tile-accent);color:var(--tile-bg);box-shadow:none}
.app.rf .rf-feature[data-course-tile][href]:is(:hover,:focus-visible,:active) .bar{background:#ffffff30}
.app.rf .rf-feature[data-course-tile][href]:is(:hover,:focus-visible,:active) .bar i{background:var(--tile-accent)}
.app.rf :is(.rf-row,.rf-feature)[data-course-tile][href]:focus-visible{outline:3px solid var(--tile-end);outline-offset:4px}
.app.rf :is(.rf-row,.rf-feature)[data-course-tile][href]:active{box-shadow:inset 0 0 0 2px var(--tile-accent)}
@media(prefers-reduced-motion:reduce){.app.rf :is(.rf-row,.rf-feature)[data-course-tile][href],.app.rf :is(.rf-row,.rf-feature)[data-course-tile][href]::before{transition:none}}
