/* Night look on laptops and tablets (21 Nov 2026). The owner: the web app "looks like a totally different app".
   The Night files were phone-only, so wide screens kept the old teal sticker heroes. Their colour rules now hold on
   every width; this file gives wide screens what the phone gets from its mockup pictures: the teal-to-blue band with
   the tab's own Bud on the right (media/wide-hero-*.webp, cut from the phone bands with the left edge faded out),
   the yellow sticker, the white title with the cyan brush stroke. Only with html.look-night. Phones are untouched. */

@media (min-width: 760px) {
  /* ---------- The tab bands (Home, Practice, Your path, Others and its pages, You) ---------- */
  html.look-night .page { --nw-art: url("../media/wide-hero-others.webp"); }
  html.look-night .page.home { --nw-art: url("../media/wide-hero-home.webp"); }
  html.look-night .page.practice { --nw-art: url("../media/wide-hero-practice.webp"); }
  html.look-night .page.path { --nw-art: url("../media/wide-hero-path.webp"); }
  html.look-night .page:is(.progress, .profile) { --nw-art: url("../media/wide-hero-you.webp"); }

  html.look-night .page > .page-hero, html.look-night .page.home .st-hero {
    position: relative; isolation: isolate; overflow: hidden; color: #fff !important;
    border: 1.5px solid transparent !important; border-radius: 28px !important;
    background:
      var(--nw-art) right bottom / auto 100% no-repeat padding-box,
      radial-gradient(70% 140% at 0% 0%, rgba(34, 238, 242, 0.16) 0%, rgba(34, 238, 242, 0) 60%) padding-box,
      linear-gradient(160deg, #035f8c 0%, #04437e 50%, #0b2156 100%) padding-box,
      linear-gradient(180deg, #5868b9 0%, #3b4aa6 50%, #3579db 100%) border-box !important;
    box-shadow: 0 24px 48px -26px rgba(0, 0, 0, 0.7), 0 12px 32px -18px rgba(53, 121, 219, 0.75) !important;
  }
  html.look-night .page > .page-hero::before, html.look-night .page > .page-hero::after,
  html.look-night .page.home .st-hero::before, html.look-night .page.home .st-hero::after { content: none !important; }
  html.look-night .page > .page-hero > :is(.ph-deco, .ph-bud), html.look-night .page.home .st-hero > .ph-deco, html.look-night .page.home .st-hero .st-bud { display: none !important; }
  /* Words keep clear of Bud. */
  html.look-night .page > .page-hero > :not(.seg-switch), html.look-night .page.home .st-hero .st-hero-text { max-width: min(560px, calc(100% - 300px)); }

  /* The sticker: yellow, as on the phone. */
  html.look-night .page > .page-hero .eyebrow {
    display: inline-block !important; width: max-content; height: 26px; box-sizing: border-box; margin: 0 0 4px !important; padding: 0 10px !important; border-radius: 999px !important;
    font: 700 13px/26px var(--font-head) !important; letter-spacing: 0.03em !important; text-transform: uppercase; color: #10163a !important; transform: none !important;
    background: linear-gradient(180deg, #fff3a0 0%, #fdea7e 50%, #f9dc5a 100%) !important; border: 0 !important;
    box-shadow: 0 1.5px 0 rgba(150, 110, 10, 0.55), 0 3px 8px rgba(0, 0, 0, 0.25) !important;
  }
  /* The title: white, with the phone's cyan brush stroke under it. */
  html.look-night .page > .page-hero .page-title { position: relative; width: max-content; max-width: 100%; padding-bottom: 10px; color: #fff !important; text-shadow: none !important; }
  html.look-night .page > .page-hero .page-title .squiggle > svg, html.look-night .page > .page-hero .page-title .squiggle-line { display: none; }
  html.look-night .page > .page-hero .page-title::after {
    content: ''; position: absolute; left: -2px; bottom: -2px; width: min(180px, 70%); height: 11px; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 9'%3E%3Cdefs%3E%3ClinearGradient id='u' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%2346e4f8'/%3E%3Cstop offset='.63' stop-color='%2368f6ff'/%3E%3Cstop offset='.76' stop-color='%2346d4f0' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='%2346d4f0' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M2.4 6.2 C30 3.2 70 1.8 100 2.0 C112 2.1 124 2.9 131 4.0 C123 4.8 112 5.5 100 5.9 C70 6.6 32 7.6 3.4 9.2 A1.5 1.5 0 0 1 2.4 6.2 Z' fill='url(%23u)'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
  }
  html.look-night .page > .page-hero :is(.page-lede, .lede, p:not(.eyebrow)) { color: #dfe5ff !important; }
  html.look-night .page > .page-hero :is(.pg-back, a.others-back), html.look-night .page > .page-hero :is(.pg-back, a.others-back) .ic { color: #fff !important; stroke: #fff; }
  html.look-night .page > .page-hero .seg-switch { max-width: 520px; margin-top: 22px; }

  /* Home's band: the greeting in light cyan (as on the phone), the title and line white, one yellow button. */
  html.look-night .page.home .st-hero .eyebrow { color: #a6f0ff !important; background: none !important; box-shadow: none !important; text-transform: none; letter-spacing: 0; font: 600 15px/20px var(--font-head) !important; padding: 0 !important; }
  html.look-night .page.home .st-hero :is(.page-title, h1, h2) { color: #fff !important; text-shadow: none !important; }
  html.look-night .page.home .st-hero :is(.st-heard, p:not(.eyebrow)) { color: #dfe5ff !important; }
  html.look-night .page.home .st-hero .btn-link { color: #8fd8ff !important; }

  /* ---------- The side menu's upgrade card: the phone Home's gold-rimmed indigo card (look-night-home.css .nt-up) ---------- */
  html.look-night body .rail-up, html.look-night .page.home .home-up {
    border: 1.5px solid transparent !important;
    background: radial-gradient(120% 140% at 0% 0%, rgba(253, 220, 82, 0.22) 0%, rgba(253, 220, 82, 0) 55%) padding-box,
                linear-gradient(115deg, #2a2160 0%, #1a2462 50%, #101a4a 100%) padding-box,
                linear-gradient(120deg, #fff1a0 0%, #f5c044 35%, #8a5a1a 65%, #f5c044 100%) border-box !important;
    box-shadow: 0 10px 28px -14px rgba(253, 200, 70, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important; color: #fff !important;
  }
  html.look-night body .rail-up b, html.look-night .page.home .home-up b { color: #fff !important; }
  html.look-night body .rail-up small, html.look-night .page.home .home-up small { color: #f3dfa0 !important; }
  html.look-night .page.home .home-up > .ic { color: #f3dfa0 !important; }
  html.look-night .page.home .home-up .home-up-ic { border-radius: 50%; color: #4a2a05 !important; background: radial-gradient(circle at 35% 30%, #fff6c4 0%, #ffd95a 45%, #e39a2b 100%) !important; box-shadow: 0 0 0 2px rgba(255, 241, 160, 0.35), 0 0 18px rgba(253, 200, 70, 0.55) !important; }
  html.look-night body .rail-up .rail-up-badge, html.look-night body .rail-up .rail-up-badge .ic { color: #fddc52 !important; }
  html.look-night body .rail-up .rail-up-btn {
    color: #2a1a02 !important; background: linear-gradient(180deg, #fff3a0 0%, #ffe46a 35%, #f5c044 100%) !important;
    box-shadow: 0 2px 0 rgba(150, 95, 10, 0.6), 0 6px 16px -6px rgba(253, 200, 70, 0.7) !important;
  }

  /* ---------- Your path: the phone's level cards, colour only (look-night-path.css) ---------- */
  html.look-night .page.path .lvl-card {
    border: 1.5px solid transparent !important; color: #fff !important;
    background: linear-gradient(180deg, #2b4d9e 0%, #15306a 30%, #0c1d42 100%) padding-box, linear-gradient(180deg, #4b74cb 0%, #233e7c 100%) border-box !important;
    box-shadow: 0 0 5px rgba(60, 100, 220, 0.2) !important;
  }
  html.look-night .page.path .lvl-card.lvl-now {
    background: linear-gradient(180deg, rgba(56, 84, 250, 0.7) 0%, rgba(56, 84, 250, 0) 14%) padding-box,
                linear-gradient(0deg, rgba(64, 40, 170, 0.3) 0%, rgba(64, 40, 170, 0) 22%) padding-box,
                linear-gradient(90deg, #08306c 0%, #0f2350 50%, #162466 100%) padding-box,
                linear-gradient(90deg, #4895e5 0%, #6d7fe6 50%, #625fd4 100%) border-box !important;
    box-shadow: 0 0 6px rgba(104, 92, 240, 0.3) !important;
  }
  html.look-night .page.path .level-badge {
    border-radius: 50% !important; background: linear-gradient(180deg, #00d6ef 0%, #00b8ee 100%) !important; color: #fff !important;
    box-shadow: 0 0 12px rgba(0, 200, 240, 0.35) !important; border: 0 !important;
  }
  html.look-night .page.path .lvl-head h2 { color: #fff !important; }
  html.look-night .page.path .lvl-head p, html.look-night .page.path .lvl-card .card-note { color: #a8bae3 !important; }
  html.look-night .page.path .lvl-chev { color: #e0e3f9 !important; background: none !important; }
  html.look-night .page.path .lesson { border: 1.3px solid #465d90 !important; background: #182850 !important; box-shadow: none !important; color: #fff !important; }
  html.look-night .page.path .lesson-node { background: #121f47 !important; box-shadow: inset 0 0 0 1.5px #3b4a7b !important; }
  html.look-night .page.path .lesson-node .ic { color: #d1e0ff !important; stroke: #d1e0ff !important; }
  html.look-night .page.path .lesson-text b { color: #f1f8fe !important; }
  html.look-night .page.path .lesson-text small { color: #9caae3 !important; }
  html.look-night .page.path .lesson-tag { background: #173161 !important; box-shadow: inset 0 0 0 1.3px #465a8f !important; color: #ddeeff !important; }
  html.look-night .page.path .lesson.is-done .lesson-node { background: #0d4f7a !important; box-shadow: inset 0 0 0 1.5px #19d7f2 !important; }
  html.look-night .page.path .lesson.is-done .lesson-node .ic { stroke: #2fe4f6 !important; color: #2fe4f6 !important; }
  html.look-night .page.path .lesson.is-next {
    border: 2px solid #9ffcff !important; background: linear-gradient(90deg, #015888 0%, #024d7a 50%, #00659c 100%) !important;
    box-shadow: 0 0 14px rgba(70, 230, 255, 0.55), inset 0 0 10px rgba(70, 230, 255, 0.25) !important;
  }
  html.look-night .page.path .lesson.is-next .lesson-node { background: rgba(0, 40, 80, 0.35) !important; box-shadow: inset 0 0 0 2px #12d8f4 !important; }
  html.look-night .page.path .lesson.is-next .lesson-node .ic { color: #fff !important; stroke: #fff !important; }
  html.look-night .page.path .lesson.is-next .lesson-tag { color: #0b110e !important; background: linear-gradient(180deg, #fff09a 0%, #fde047 100%) !important; box-shadow: 0 0 12px rgba(253, 224, 71, 0.45) !important; }
  html.look-night .page.path .lvl-after-links .btn { background: #173161 !important; color: #ddeeff !important; box-shadow: inset 0 0 0 1.3px #465a8f !important; }

  /* Action rows sit inside the cards here, not in a bar pinned to the screen's foot: no navy fade behind them. */
  html.look-night .ob-shell .ob-actions:not(.ob-q:has(.pick-chips) *):not(.needs *) { background: none !important; box-shadow: none !important; }
}

/* Songs: no floating album covers around the title (owner, 21 Nov 2026: "it makes the page busier"). The markup stays (songcoach.js). */
html.look-night .sc-fan { display: none !important; }
