
/* ==========================================================
   TISIAS PATCH V170
   TARGET ONLY: /ican-finals2026test

   URGENT TWO-PART FIX
   A) Desktop Hero: force "iCAN 2026" to remain lowercase-i.
   B) Mobile: guarantee full Finals content below Countdown.
   ========================================================== */

/* ---------- A. Desktop iCAN casing ---------- */
@media (min-width: 821px) {
  #tisias-v135-finals-hero-card h1,
  #tisias-v135-finals-hero-card h2,
  #tisias-v135-finals-hero-card h3,
  #tisias-v135-finals-hero-card [class*="title"] {
    text-transform: none !important;
  }
}

/* ---------- B. Mobile hard-recovery state ---------- */
#tisias-v170-mobile-content {
  display: none;
}

@media (max-width: 820px) {
  /*
    Prevent the footer from jumping directly under Countdown while the
    deterministic mobile content is being inserted.
  */
  html:not(.tisias-v170-mobile-ready) #footer-wrap,
  html:not(.tisias-v170-mobile-ready) .footer-wrap,
  html:not(.tisias-v170-mobile-ready) footer {
    display: none !important;
  }

  /* V170 becomes the one canonical mobile stack. */
  #tisias-v168-mobile-content {
    display: none !important;
  }

  .tisias-v170-mobile-old-dynamic {
    display: none !important;
  }

  #tisias-v170-mobile-content {
    display: block !important;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: #edf2f3;
  }

  .tisias-v170-section {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 30px 16px;
    border: 0;
    border-radius: 0;
  }

  .tisias-v170-dark {
    color: #fff;
    background:
      radial-gradient(circle at 88% 8%, rgba(138,255,74,.09), transparent 25%),
      linear-gradient(145deg, #020c08, #061a12 58%, #082317);
    border-top: 1px solid rgba(152,255,79,.20);
  }

  .tisias-v170-light {
    color: #08111b;
    background:
      radial-gradient(circle at 88% 10%, rgba(239,200,93,.10), transparent 28%),
      linear-gradient(180deg, #fffdf8, #fff7e9);
    border-top: 1px solid #ead8ae;
  }

  .tisias-v170-head {
    margin-bottom: 18px;
  }

  .tisias-v170-kicker {
    margin: 0 0 6px;
    color: #aaff55;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
  }

  .tisias-v170-light .tisias-v170-kicker {
    color: #c12828;
  }

  .tisias-v170-head h2 {
    margin: 0;
    font-size: clamp(30px, 9vw, 46px);
    line-height: 1.03;
    letter-spacing: -.025em;
  }

  .tisias-v170-head p {
    margin: 9px 0 0;
    font-size: 15px;
    line-height: 1.62;
    color: #dce8e0;
  }

  .tisias-v170-light .tisias-v170-head p {
    color: #4a5560;
  }

  /* Hero */
  .tisias-v170-hero {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .tisias-v170-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    margin-bottom: 17px;
    padding: 0 13px;
    border: 1px solid rgba(150,255,79,.34);
    border-radius: 999px;
    color: #bcff6b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .09em;
  }

  .tisias-v170-live::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #36e975;
    box-shadow: 0 0 0 5px rgba(54,233,117,.11);
  }

  .tisias-v170-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(44px, 13vw, 68px);
    line-height: .97;
    letter-spacing: -.04em;
    text-transform: none !important;
  }

  .tisias-v170-hero-copy {
    margin: 17px 0 19px;
    color: #dce9e1;
    font-size: 15px;
    line-height: 1.7;
  }

  .tisias-v170-hero img {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 20px;
    border-radius: 13px;
    box-shadow: 0 18px 42px rgba(0,0,0,.28);
  }

  .tisias-v170-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
  }

  .tisias-v170-btn {
    display: inline-flex;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid rgba(164,255,89,.35);
    border-radius: 10px;
    background: linear-gradient(135deg,#9fff54,#55e197);
    color: #06110b !important;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none !important;
  }

  .tisias-v170-btn--outline {
    background: rgba(255,255,255,.04);
    color: #fff6b3 !important;
    border-color: rgba(244,211,103,.38);
  }

  .tisias-v170-light .tisias-v170-btn--outline {
    color: #6d4a09 !important;
    background: #fff;
    border-color: #d9bc7e;
  }

  /* Quick menu */
  .tisias-v170-quick-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tisias-v170-quick-card {
    padding: 17px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 13px;
    background: rgba(255,255,255,.035);
  }

  .tisias-v170-quick-card b {
    display: block;
    color: #baff62;
    font-size: 11px;
    letter-spacing: .10em;
  }

  .tisias-v170-quick-card h3 {
    margin: 6px 0 4px;
    color: #fff;
    font-size: 21px;
    line-height: 1.2;
  }

  .tisias-v170-quick-card p {
    margin: 0;
    color: #d9e6de;
    font-size: 14px;
    line-height: 1.55;
  }

  /* Videos */
  .tisias-v170-video-card {
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 14px;
    background: #020705;
  }

  .tisias-v170-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #000;
  }

  .tisias-v170-poster > img,
  .tisias-v170-poster > iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
  }

  .tisias-v170-poster > iframe {
    display: none;
  }

  .tisias-v170-video-card.tisias-v170-playing .tisias-v170-poster > img,
  .tisias-v170-video-card.tisias-v170-playing .tisias-v170-play {
    display: none !important;
  }

  .tisias-v170-video-card.tisias-v170-playing .tisias-v170-poster > iframe {
    display: block !important;
  }

  .tisias-v170-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 64px;
    height: 64px;
    transform: translate(-50%,-50%);
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(221,24,39,.94);
    box-shadow: 0 10px 28px rgba(0,0,0,.35);
  }

  .tisias-v170-play::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    margin: auto;
    transform: translateX(3px);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 17px solid #fff;
  }

  .tisias-v170-video-meta {
    padding: 12px 13px 14px;
  }

  .tisias-v170-video-meta b {
    display: block;
    color: #aaff56;
    font-size: 11px;
    letter-spacing: .11em;
  }

  .tisias-v170-video-meta h3 {
    margin: 5px 0 4px;
    color: #fff;
    font-size: 20px;
    line-height: 1.25;
  }

  .tisias-v170-video-meta p {
    margin: 0;
    color: #d8e5dd;
    font-size: 14px;
    line-height: 1.55;
  }

  /* Awards */
  .tisias-v170-cover-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .tisias-v170-cover-grid img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 11px;
  }

  .tisias-v170-award-copy {
    margin-top: 17px;
    color: #dbe8e0;
    font-size: 15px;
    line-height: 1.65;
  }

  /* Catalogue */
  .tisias-v170-catalogue-cover {
    display: block;
    width: min(100%, 520px);
    height: auto;
    margin: 0 auto 18px;
    border-radius: 12px;
    box-shadow: 0 15px 38px rgba(97,72,25,.14);
  }

  .tisias-v170-light h3 {
    margin: 0 0 8px;
    color: #a91d24;
    font-size: 27px;
    line-height: 1.12;
  }

  .tisias-v170-light p {
    font-size: 15px;
    line-height: 1.64;
  }

  /* Downloads */
  .tisias-v170-download-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tisias-v170-download-card {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 13px;
    background: rgba(255,255,255,.025);
  }

  .tisias-v170-download-card img {
    display: block;
    width: 100%;
    height: auto;
  }

  .tisias-v170-download-meta {
    padding: 11px 12px 13px;
  }

  .tisias-v170-download-meta b {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 15px;
    line-height: 1.35;
  }

  .tisias-v170-download-meta a {
    color: #b7ff65 !important;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none !important;
  }
}
