/* Trial look "Night" for Your path (#/path), phones: matched to the owner's mockup (16 Nov 2026) the way the Songs tab
   was (css/look-night.css): the mockup's own top as a picture, words erased, the rest placed to its pixels at 375px.
   Only with html.look-night (#/songs?look=night). */

/* The night markup (segment bar, show-all row) is hidden in every other look. */
.lvl-more { display: none; }

@media (max-width: 759px) {
  /* Page: the mockup's own top (Bud, notes, waves; words erased) at 375px = 171.9px tall, then the night navy. */
  html.look-night body:has(.page.path) .app-main {
    background: url("../media/path-hero.jpg") 50% var(--safe-t, 0px) / 100% auto no-repeat, #09142e !important;
  }
  html.look-night body:has(.page.path) .app-main::before { display: none !important; }

  /* Hero: words only. */
  html.look-night .page.path > .page-hero {
    display: block !important; min-height: 0 !important; height: auto !important; box-sizing: border-box;
    margin: calc(-14px - var(--safe-t, 0px)) calc(-1 * var(--gutter)) 0 !important; padding: calc(13.7px + var(--safe-t, 0px)) 13.7px 0 !important;
    background: none !important; border-radius: 0 !important; box-shadow: none !important; overflow: visible !important;
  }
  html.look-night .page.path > .page-hero > .ph-deco, html.look-night .page.path > .page-hero > .ph-bud, html.look-night .page.path > .page-hero > .page-lede { display: none !important; }
  html.look-night .page.path > .page-hero .eyebrow {
    display: inline-block !important; height: 24.7px; box-sizing: border-box; margin: 0 0 0 7.5px !important; padding: 0 9.4px !important; border-radius: 999px;
    font: 700 12.6px/24.7px var(--font-head) !important; letter-spacing: 0.03em !important; text-transform: uppercase; color: #10163a !important;
    background: linear-gradient(180deg, #fff3a0 0%, #fdea7e 50%, #f9dc5a 100%) !important; box-shadow: 0 1.5px 0 rgba(150, 110, 10, 0.55), 0 3px 8px rgba(0, 0, 0, 0.25) !important; transform: none !important;
  }
  html.look-night .page.path > .page-hero .page-title {
    position: relative; margin: 3.2px 0 0 7.6px !important; padding: 0 !important; color: #fff !important;
    font: 800 26.5px/30px var(--font-head) !important; letter-spacing: 0 !important; text-shadow: none !important;
  }
  /* The brush stroke under "Levels and": bright cyan, fading out to the right. */
  html.look-night .page.path > .page-hero .page-title::after {
    content: ''; position: absolute; left: 3.7px; top: 30.6px; width: 145px; height: 10px; 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%;
  }

  /* The switch: a white 347.6 x 48 pill; the chosen side a glossy yellow pill with a warm glow under it. */
  html.look-night .page.path > .page-hero .seg-switch {
    display: grid !important; grid-template-columns: 178.4px 1fr; box-sizing: border-box; height: 48.1px; margin: 32.9px 0 0 !important; padding: 1.3px 0.8px 1.4px 0 !important;
    border: 0 !important; border-radius: 999px !important; background: linear-gradient(180deg, #ffffff 0%, #f3f5fc 100%) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35) !important;
  }
  html.look-night .page.path > .page-hero .seg-switch a {
    display: flex !important; align-items: center; justify-content: flex-start; gap: 8.4px; height: 100%; min-height: 0 !important; padding: 0 0 0 24px !important; border-radius: 999px !important;
    font: 600 14.8px/1 var(--font-head) !important; color: #081330 !important; background: none !important; box-shadow: none !important; text-decoration: none;
  }
  html.look-night .page.path > .page-hero .seg-switch a .ic { width: 23.4px; height: 23.4px; flex: none; color: currentColor; }
  /* The switch's pictures (pathSwitch in practice.js): a grid for the library, a dotted route for the path. */
  html.look-night .page.path > .page-hero .seg-switch .seg-ic-grid, html.look-night .page.path > .page-hero .seg-switch .seg-ic-route { display: block !important; }
  html.look-night .page.path > .page-hero .seg-switch .seg-ic-target { display: none !important; }
  html.look-night .page.path > .page-hero .seg-switch .seg-ic-route { width: 26px !important; height: 26px !important; }
  html.look-night .page.path > .page-hero .seg-switch a[aria-current="page"] {
    gap: 8.7px !important; padding-left: 30px !important; font-size: 15.6px !important; color: #111410 !important; background: linear-gradient(180deg, #fff6c4 0%, #ffeb8c 22%, #fddc52 60%, #fbd33c 100%) !important;
    box-shadow: 0 1.6px 0 #f2a283, 0 3px 9px rgba(236, 110, 150, 0.5) !important;
  }

  /* Level cards. */
  html.look-night .page.path .path-list { display: grid; gap: 12.8px !important; margin: 16.7px calc(12.3px - var(--gutter)) 0 !important; }
  html.look-night .page.path .lvl-card {
    border: 1.5px solid transparent !important; border-radius: 26px !important; padding: 0 !important; color: #fff !important;
    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(180deg, #8d96f5 0, rgba(141, 150, 245, 0) 10px, rgba(136, 90, 230, 0) calc(100% - 12px), #885ae6 100%) border-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 .lvl-card:not(.lvl-now) {
    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 details.lvl-card > :not(summary) { margin-left: 9.1px !important; margin-right: 9.6px !important; }
  html.look-night .page.path .lvl-sum { padding: 15.2px 13px 0 17.9px !important; }
  html.look-night .page.path details.lvl-card:not([open]) > .lvl-sum { padding: 11.3px 13px 11px 17.9px !important; }
  html.look-night .page.path details.lvl-card:not([open]) .lvl-head p { margin-top: 1px !important; }
  html.look-night .page.path details.lvl-card:not([open]) .lvl-chev { margin-top: 12.5px; }
  html.look-night .page.path .lvl-sum .lvl-head { display: grid !important; grid-template-columns: 41.5px 1fr 28px !important; gap: 0 19.8px !important; align-items: start !important; }
  html.look-night .page.path .level-badge {
    width: 41.5px !important; height: 41.5px !important; border-radius: 50% !important; display: grid !important; place-items: center;
    background: linear-gradient(180deg, #00d6ef 0%, #00b8ee 100%) !important; color: #fff !important; box-shadow: 0 0 12px rgba(0, 200, 240, 0.35) !important;
    font: 800 23px/1 var(--font-head) !important;
  }
  html.look-night .page.path .lvl-head h2 { margin: -1.8px 0 0 !important; font: 700 19px/22px var(--font-head) !important; color: #fff !important; letter-spacing: 0 !important; }
  html.look-night .page.path details.lvl-card:not([open]) .lvl-head p { display: block !important; -webkit-line-clamp: unset !important; overflow: visible !important; }
  html.look-night .page.path .lvl-head p { max-width: 185px; margin: 5.8px 0 0 !important; font: 400 14.2px/17.8px var(--font-head) !important; color: #a8bae3 !important; }
  html.look-night .page.path .lvl-chev { grid-column: 3 !important; grid-row: 1 / 3 !important; align-self: start !important; margin-top: 10px; margin-left: 2.8px; color: #e0e3f9 !important; background: none !important; }
  html.look-night .page.path .lvl-chev .ic { width: 20px !important; height: 20px !important; stroke-width: 2.4; }
  html.look-night .page.path .lvl-sum .lvl-status {
    grid-column: 2 !important; grid-row: 2 !important; justify-self: start !important; display: inline-flex !important; align-items: center; gap: 5px; height: 19.8px; margin: 3.7px 0 0 -1.3px !important; padding: 0 1.8px 0 25px !important;
    border-radius: 999px !important; font: 700 11.4px/19.8px var(--font-head) !important; letter-spacing: 0.03em !important; text-transform: uppercase; transform: none !important;
    color: #10163a !important; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.6a2.6 2.6 0 1 1 0-5.2 2.6 2.6 0 0 1 0 5.2z' fill='%2310163a'/%3E%3C/svg%3E") no-repeat 1.2px 50% / 17px 17px, linear-gradient(180deg, #fff2a0 0%, #f9e98a 55%, #f6dd6a 100%) !important;
    box-shadow: 0 0 10px rgba(250, 220, 90, 0.35) !important;
  }
  html.look-night .page.path .lvl-later .lvl-status, html.look-night .page.path .lvl-past .lvl-status { display: none !important; }
  /* The count moves out of the summary, next to a bar of six segments; it opens the rest of the lessons. */
  html.look-night .page.path .lvl-sum .lvl-meta { display: none !important; }
  html.look-night .page.path details[open] > .lvl-more {
    display: flex !important; align-items: center; gap: 16.4px; width: auto; margin: 8px 13px 0 79.2px !important; padding: 0; border: 0; background: none; cursor: pointer; color: #e9eff8;
    font: 600 14px/18px var(--font-head); text-align: left;
  }
  html.look-night .page.path .lvl-more > span:first-child { position: relative; top: -1.3px; }
  html.look-night .page.path .lvl-segs { display: flex; flex: none; gap: 2.6px; width: 124px; }
  html.look-night .page.path .lvl-segs i { flex: 1; height: 5.8px; border-radius: 3px; background: #4a5b88; }
  html.look-night .page.path .lvl-segs i.on { background: #2fe4f6; }
  html.look-night .page.path .lessons > li.is-far { display: none; }
  html.look-night .page.path .show-all .lessons > li.is-far { display: block; }

  /* Lessons. */
  html.look-night .page.path .lessons { margin: 18.1px 0 0 !important; gap: 5.3px !important; }
  html.look-night .page.path .lessons > li:has(> .is-next) { margin-bottom: 2.7px; }
  html.look-night .page.path details.lvl-card[open] > .lessons { margin-bottom: 14.5px !important; }
  html.look-night .page.path .lesson {
    display: grid !important; grid-template-columns: 43px 1fr auto !important; gap: 0 16px !important; align-items: center; box-sizing: border-box; min-height: 62.5px; padding: 3px 8px 3px 12.3px !important;
    border-radius: 18px !important; border: 1.3px solid #465d90 !important; background: #182850 !important; box-shadow: none !important; color: #fff !important; text-align: left;
  }
  html.look-night .page.path .lesson-node { width: 43px !important; height: 43px !important; background: #121f47 !important; box-shadow: inset 0 0 0 1.5px #3b4a7b !important; }
  html.look-night .page.path .lesson-node .ic { width: 22px !important; height: 22px !important; color: #d1e0ff !important; stroke: #d1e0ff !important; }
  html.look-night .page.path .lesson-node .ic .ic-fill { fill: #d1e0ff !important; }
  html.look-night .page.path .lesson-text b { margin-top: 2.3px; font: 700 15.7px/18px var(--font-head) !important; color: #f1f8fe !important; }
  html.look-night .page.path .lesson-text { max-width: 112px; }
  html.look-night .page.path .lesson.is-next .lesson-text { max-width: 152px; grid-column: 2 / 4; }
  html.look-night .page.path .lesson-text small { margin-top: -0.3px; font: 400 13.4px/16.4px var(--font-head) !important; letter-spacing: -0.5px; color: #9caae3 !important; }
  html.look-night .page.path .lesson-tag {
    align-self: center; padding: 0 11.6px !important; height: 22.6px; display: inline-flex; align-items: center; border-radius: 999px !important;
    background: #173161 !important; box-shadow: inset 0 0 0 1.3px #465a8f !important; color: #ddeeff !important;
    font: 600 10.6px/1 var(--font-head) !important; letter-spacing: -0.1px !important; text-transform: none !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; }
  /* The next lesson: a glowing cyan card, an outlined play disc, a yellow "Up next" pill and the mockup's wave. */
  html.look-night .page.path .lesson.is-next {
    min-height: 84.1px; padding-left: 13.7px !important; gap: 0 14px !important; border: 2px solid #9ffcff !important; border-radius: 20px !important;
    position: relative; overflow: hidden; 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;
  }
  /* The mockup's own wave (media/path-wave.jpg, 282 x 56 mockup px), faded in at its left and top. */
  html.look-night .page.path .lesson.is-next::after {
    content: ''; position: absolute; right: 0; bottom: 0; width: 124.3px; height: 24.7px; pointer-events: none;
    background: url("../media/path-wave.jpg") 0 0 / 100% 100% no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%), linear-gradient(180deg, transparent 0, #000 30%); -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0, #000 22%), linear-gradient(180deg, transparent 0, #000 30%); mask-composite: intersect;
  }
  html.look-night .page.path .lesson.is-next > * { position: relative; z-index: 1; }
  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, html.look-night .page.path .lesson.is-next .lesson-node .ic .ic-fill { color: #fff !important; stroke: #fff !important; fill: #fff !important; }
  html.look-night .page.path .lesson.is-next .lesson-text b { font-size: 18px !important; color: #f2feff !important; }
  html.look-night .page.path .lesson.is-next .lesson-text { margin-top: -5.8px; }
  html.look-night .page.path .lesson.is-next .lesson-text b { margin-top: 0; }
  html.look-night .page.path .lesson.is-next .lesson-text small { margin-top: 2px; }
  html.look-night .page.path .lesson.is-next .lesson-node .ic { width: 22px !important; height: 22px !important; margin-left: 2px; }
  html.look-night .page.path .lesson.is-next .lesson-text small { font-size: 14px !important; color: #c8e9fc !important; }
  html.look-night .page.path .lesson.is-next .lesson-tag {
    position: absolute !important; top: 18.2px; right: 10.3px; box-sizing: border-box; width: 78px; height: 25.6px; padding: 0 0 0 13px !important; color: #0b110e !important; font: 700 13.4px/1 var(--font-head) !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b110e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") no-repeat right 8px center / 10px 10px, 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-card .card-note { color: #9caae3 !important; }
  html.look-night .page.path .lvl-after .lvl-head { display: grid; grid-template-columns: 41.5px 1fr; gap: 0 19.8px; padding: 15.2px 13px 0 17.9px; }
  html.look-night .page.path .lvl-after-links { margin: 12px 13px 16px 79.2px !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; }
}
