/* Verslo rykliai (TV3), 2026-11-24 — on-air lower third for the home hero + bilingual banner copy.
   Self-contained: remove this <link>, the rykliai.js <script>, the .rk-l3 block in the hero and the
   data-show spans in the campaign banner to go back to the previous page. */

/* show-day states: <html data-rk-state="before|live|after">, set by rykliai.js before first paint */
[data-rk-state="before"] [data-show]:not([data-show~="before"]),
[data-rk-state="live"] [data-show]:not([data-show~="live"]),
[data-rk-state="after"] [data-show]:not([data-show~="after"]),
html:not([data-rk-state]) [data-show]:not([data-show~="after"]) { display: none !important; }

/* ---------- lower third ---------- */
.rk-l3 {
  position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(88px, 12vh, 128px);
  display: grid; justify-items: start;
  /* leaves room for the Ask Wearly launcher (fixed, bottom-right) on tablets and small laptops */
  max-width: min(760px, calc(100% - var(--gutter) * 2 - 200px));
  text-align: left; color: var(--ink);
}
.rk-l3-tag {
  display: inline-flex; align-items: center; gap: 9px; height: 32px; padding: 0 15px 0 13px;
  border-radius: 10px 10px 0 0; background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; font-variant-numeric: tabular-nums;
}
.rk-rec { width: 8px; height: 8px; border-radius: 50%; background: #FF3B4E; flex: none; }
[data-rk-state="live"] .rk-rec { animation: rk-rec 1.4s ease-in-out infinite; }
@keyframes rk-rec { 50% { opacity: .25; } }

.rk-l3-bar {
  display: flex; align-items: center; gap: 24px; min-height: 84px; padding: 14px 14px 14px 22px;
  border-radius: 0 18px 18px 18px;
  background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 2px rgba(14, 13, 18, .05), 0 24px 50px -28px rgba(14, 13, 18, .35);
}
.rk-l3-text { display: grid; gap: 3px; min-width: 0; }
.rk-l3-text b { font-size: clamp(20px, 1.75vw, 27px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.rk-l3-text small { font-size: 14px; font-weight: 500; color: var(--ink-2); line-height: 1.35; }

.rk-l3-clock { display: grid; justify-items: end; padding-left: 20px; border-left: 1px solid var(--hair); line-height: 1; }
.rk-l3-clock b { min-width: 4.6em; text-align: right; font-size: clamp(28px, 2.7vw, 40px); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rk-l3-clock small { margin-top: 6px; font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }

.rk-l3-cta {
  display: inline-flex; align-items: center; gap: 8px; flex: none; height: 48px; padding: 0 20px;
  border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.rk-l3-cta:hover { background: #2b2933; transform: translateX(2px); }
.rk-l3-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* broadcast-style entrance: the tag wipes in, then the strap (rykliai.js adds .is-in once the hero intro has shown it) */
.js .rk-l3 .rk-l3-tag, .js .rk-l3 .rk-l3-bar { clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--expo); }
.js .rk-l3 .rk-l3-bar { transition-delay: .18s; transition-duration: 1.1s; }
.js .rk-l3.is-in .rk-l3-tag, .js .rk-l3.is-in .rk-l3-bar { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) {
  .js .rk-l3 .rk-l3-tag, .js .rk-l3 .rk-l3-bar { clip-path: none; transition: none; }
  [data-rk-state="live"] .rk-rec { animation: none; }
}

/* phones and narrow windows: centred strap above the mentor chip; hero copy moves up to make room */
@media (max-width: 760px) {
  /* sits above the Ask Wearly bubble (fixed, bottom-right) */
  .rk-l3 { left: 50%; translate: -50% 0; bottom: 136px; width: calc(100% - 28px); max-width: none; justify-items: center; }
  .rk-l3-tag { border-radius: 10px 10px 0 0; }
  .rk-l3-bar { width: 100%; gap: 14px; min-height: 0; padding: 12px 12px 12px 16px; border-radius: 18px; }
  .rk-l3-text b { font-size: 17px; }
  .rk-l3-text small { font-size: 12.5px; }
  .rk-l3-clock { padding-left: 14px; }
  .rk-l3-clock b { font-size: 22px; }
  .rk-l3-clock small { font-size: 10px; }
  .rk-l3-cta { height: 42px; padding: 0 16px; font-size: 14px; }
}
@media (max-width: 380px) {
  .rk-l3-bar { flex-wrap: wrap; }
  .rk-l3-cta { width: 100%; justify-content: center; }
}

/* reduced motion: the banner stops scrolling and shows only its first line (account.css),
   so show the first line of the current state instead */
@media (prefers-reduced-motion: reduce) {
  [data-rk-state="live"] .campaign-window .campaign-group:first-child > span:nth-child(5),
  [data-rk-state="after"] .campaign-window .campaign-group:first-child > span:nth-child(9) { display: block !important; }
}

/* ---------- no accounts on the site during the campaign: just "Get the app" ---------- */
.top [data-account-nav], .sheet [data-account-nav] { display: none !important; }

/* ---------- show card, right after the hero (same language as the closing card) ---------- */
.rk-show { padding: clamp(18px, 3vw, 44px) var(--frame) 0; }
.rk-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; justify-items: center; gap: clamp(18px, 2vw, 26px);
  padding: clamp(64px, 8vw, 120px) var(--gutter) clamp(56px, 7vw, 100px);
  border-radius: var(--radius); background: #0F0E15; color: #fff; text-align: center;
}
/* the glowing rim of the hero frame, in the dark */
.rk-card::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12), inset 0 0 60px 8px var(--rk-rim, rgba(175, 106, 223, .45)), inset 0 0 180px 20px rgba(90, 111, 252, .12);
  transition: box-shadow 1.6s var(--expo); }
.rk-card::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 60% at 50% 45%, rgba(15, 14, 21, .55), rgba(15, 14, 21, .15) 70%, transparent); }
[data-rk-state="live"] .rk-card { --rk-rim: rgba(255, 59, 78, .55); }

/* moving gradient: four soft colour fields drifting under the card (transform-only, so it stays on the GPU) */
.rk-aurora { position: absolute; inset: 0; z-index: -2; overflow: hidden; border-radius: inherit; pointer-events: none; }
.rk-aurora i { position: absolute; width: 75%; aspect-ratio: 1; border-radius: 50%; opacity: .7; will-change: transform;
  background: radial-gradient(closest-side, var(--c), transparent); }
.rk-aurora i:nth-child(1) { --c: #5A6FFC; left: -22%; top: -40%; animation: rk-drift-a 19s ease-in-out infinite alternate; }
.rk-aurora i:nth-child(2) { --c: #AF6ADF; right: -25%; top: -10%; animation: rk-drift-b 23s ease-in-out infinite alternate; }
.rk-aurora i:nth-child(3) { --c: #FF66C4; left: 15%; bottom: -55%; animation: rk-drift-c 27s ease-in-out infinite alternate; opacity: .6; }
.rk-aurora i:nth-child(4) { --c: #6E6BF7; right: 5%; bottom: -60%; width: 55%; animation: rk-drift-d 31s ease-in-out infinite alternate; opacity: .5; }
[data-rk-state="live"] .rk-aurora i:nth-child(1) { --c: #FF3B4E; }
[data-rk-state="live"] .rk-aurora i:nth-child(2) { --c: #C2307A; }
[data-rk-state="live"] .rk-aurora i:nth-child(3) { --c: #FF6B4A; }
[data-rk-state="live"] .rk-aurora i:nth-child(4) { --c: #8B2BE2; }
@keyframes rk-drift-a { to { transform: translate3d(38%, 30%, 0) scale(1.15); } }
@keyframes rk-drift-b { to { transform: translate3d(-34%, 26%, 0) scale(.9); } }
@keyframes rk-drift-c { to { transform: translate3d(30%, -34%, 0) scale(1.2); } }
@keyframes rk-drift-d { to { transform: translate3d(-45%, -20%, 0) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .rk-aurora i { animation: none; } }

.rk-chip { display: inline-flex; align-items: center; gap: 9px; height: 30px; padding: 0 13px; border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: rgba(255, 255, 255, .86); }
.rk-title { font-weight: 500; font-size: clamp(40px, 6.4vw, 96px); line-height: 1.02; letter-spacing: -.04em; max-width: 14ch; text-wrap: balance; }
.rk-en { font-size: clamp(16px, 1.4vw, 20px); font-weight: 500; color: rgba(255, 255, 255, .62); max-width: 44ch; }

.rk-count { display: flex; align-items: flex-start; justify-content: center; gap: clamp(6px, 1.4vw, 20px); margin-top: clamp(6px, 1.5vw, 20px); font-variant-numeric: tabular-nums; }
.rk-count span { display: grid; justify-items: center; gap: 4px; }
.rk-count b { font-weight: 600; font-size: clamp(64px, 12.5vw, 196px); line-height: .9; letter-spacing: -.045em; }
.rk-count small { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.rk-count i { font-style: normal; font-weight: 500; font-size: clamp(48px, 9vw, 140px); line-height: .9; color: rgba(255, 255, 255, .22); }

/* studio "on air" light */
.rk-onair { display: inline-flex; align-items: center; gap: .4em; margin-block: clamp(10px, 2vw, 26px); padding: .28em .62em .3em;
  border-radius: .22em; border: 2px solid #FF3B4E; color: #fff; background: rgba(255, 59, 78, .14);
  font-size: clamp(44px, 8vw, 120px); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; line-height: 1;
  box-shadow: 0 0 40px -6px rgba(255, 59, 78, .8), inset 0 0 30px -8px rgba(255, 59, 78, .8); text-shadow: 0 0 24px rgba(255, 59, 78, .9); }
.rk-onair i { width: .32em; height: .32em; border-radius: 50%; background: #FF3B4E; box-shadow: 0 0 18px #FF3B4E; animation: rk-rec 1.4s ease-in-out infinite; }

.rk-perk { display: grid; gap: 4px; max-width: 46ch; font-size: clamp(16px, 1.3vw, 19px); font-weight: 500; color: rgba(255, 255, 255, .86); }
.rk-perk b { color: #fff; font-weight: 600; }
.rk-perk > span, .rk-perk small span { text-wrap: balance; }
.rk-perk small { font-size: 14px; color: rgba(255, 255, 255, .5); }

.rk-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.rk-card .btn { height: 54px; padding: 0 26px; font-size: 16px; }
.rk-card .btn--ink { background: #fff; color: var(--ink); }
.rk-card .btn--ink:hover { background: var(--grad); color: #fff; box-shadow: 0 14px 40px -12px rgba(175, 106, 223, .8); }
.rk-card .rk-store .icon-fill { width: 20px; height: 20px; }
.rk-card .btn--chip .icon { width: 19px; height: 19px; }
.rk-card .btn--chip { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.rk-card .btn--chip:hover { background: #fff; color: var(--ink); }
.rk-card :focus-visible { outline-color: #fff; }

@media (prefers-reduced-motion: reduce) { .rk-onair i { animation: none; } }
@media (max-width: 560px) {
  .rk-card { padding: 56px 18px 44px; }
  .rk-count small { font-size: 10px; }
  .rk-actions { width: 100%; }
  .rk-actions .rk-store { flex: 1 1 calc(50% - 5px); padding: 0 14px; }
  .rk-actions .btn--chip { flex: 1 1 100%; }
}

/* ---------- top banner: the whole strip is the link; no CTA block, a quiet pause control ---------- */
.campaign-cta { display: none !important; }
.campaign-window { -webkit-mask: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
.campaign-pause { width: 40px; background: transparent; color: rgba(255, 255, 255, .38); transition: color .3s var(--ease); }
.campaign-pause:hover, .campaign-pause:focus-visible { background: transparent; color: #fff; }
.campaign-pause svg { width: 14px; height: 14px; }
.campaign-banner-link:hover strong { text-decoration: underline; text-underline-offset: 3px; }

/* viewer code, shown after the episode */
.rk-perk .rk-code { display: inline-block; padding: .05em .5em; border: 1.5px dashed currentColor; border-radius: .4em; letter-spacing: .08em; font-weight: 800; user-select: all; -webkit-user-select: all; }

/* never leave the show strap or card invisible if an intro animation does not run (seen on some phones) */
.rk-l3.is-in { opacity: 1 !important; }
.rk-card { opacity: 1 !important; }
