/* Learning trail — YouTube & Media page */
.trail-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: end; }
.trail-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; margin-top: 28px; }
.trail-stats div { padding: 18px 20px; border-right: 1px solid var(--line); }
.trail-stats div:last-child { border: 0; }
.trail-stats b { display: block; font-family: var(--display); font-stretch: 112%; font-size: 26px; font-weight: 900; color: var(--black); line-height: 1.1; white-space: nowrap; }
.trail-stats span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); }

.how3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 44px 0 40px; }
.how3 div { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.how3 i { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; color: #fff; background: #3C2A98; }
.how3 b { display: block; font-size: 15.5px; color: var(--black); }
.how3 span { font-size: 14px; color: var(--muted); }

.trail-ctrl { position: sticky; top: calc(var(--nav-h) + 44px); z-index: 20; background: rgba(244,246,253,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 14px 0; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.trail-paths { display: flex; gap: 8px; flex-wrap: wrap; }
.tp { min-height: 44px; padding: 8px 16px; border-radius: 99px; border: 1.5px solid var(--line-2); background: #fff; font: 800 14px var(--sans); color: var(--black); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .2s, color .2s, border-color .2s; }
.tp span { font-weight: 700; font-size: 12px; color: var(--muted); }
.tp:hover { border-color: #3C2A98; }
.tp[aria-pressed="true"] { background: #0B0A2E; border-color: #0B0A2E; color: #fff; }
.tp[aria-pressed="true"] span { color: #9EE3F7; }
.trail-prog { display: flex; align-items: center; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.trail-track { flex: 1 1 200px; height: 8px; border-radius: 99px; background: #E0E3F2; overflow: hidden; }
.trail-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3C2A98, #00A4D4); border-radius: 99px; transition: width .5s; }
.trail-count { font-size: 13px; font-weight: 700; color: var(--muted); }
.trail-next { display: flex; gap: 10px; align-items: center; font-size: 14px; flex-wrap: wrap; }
.trail-next span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; color: #0089BA; }
.trail-next a { font-weight: 800; color: #3C2A98; }
.trail-reset { background: none; border: 0; color: var(--muted); font: 700 12.5px var(--sans); text-decoration: underline; cursor: pointer; min-height: 32px; }

.trail { position: relative; display: grid; gap: 14px; padding-left: 34px; }
.trail::before { content: ''; position: absolute; left: 21px; top: 26px; bottom: 26px; width: 2px; background: linear-gradient(#3C2A98, #00A4D4); opacity: .35; }
.stage { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s; }
.stage.open { border-color: rgba(60,42,152,.35); box-shadow: 0 18px 44px rgba(11,10,46,.1); }
.stage.dim { opacity: .72; }
.stage-h { width: 100%; display: grid; grid-template-columns: 52px minmax(0, 1fr) 140px 52px 24px; gap: 16px; align-items: center; padding: 18px 20px 18px 0; background: none; border: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.stage-n { margin-left: -34px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid #3C2A98; color: #3C2A98; font-family: var(--display); font-weight: 900; font-size: 18px; position: relative; z-index: 1; transition: background .2s, color .2s; }
.stage.open .stage-n, .stage.complete .stage-n { background: #3C2A98; color: #fff; }
.stage.complete .stage-n { background: #0f8b6d; border-color: #0f8b6d; }
.stage-t small { display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; color: #0089BA; }
.stage-t b { display: block; font-family: var(--display); font-stretch: 108%; font-size: 20px; font-weight: 800; color: var(--black); line-height: 1.25; margin: 2px 0; }
.stage-t em { display: block; font-style: normal; font-size: 14px; color: var(--muted); }
.stage-p { height: 6px; border-radius: 99px; background: #E9EDFA; overflow: hidden; }
.stage-p i { display: block; height: 100%; background: linear-gradient(90deg, #3C2A98, #00A4D4); transition: width .4s; }
.stage-pc { font-size: 13px; font-weight: 800; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.stage-c { color: var(--muted); transition: transform .25s; }
.stage.open .stage-c { transform: rotate(180deg); }
.stage-b { padding: 0 20px 20px 18px; }
.vids { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.vid { display: grid; grid-template-columns: 28px 128px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.vchk { position: relative; width: 26px; height: 26px; cursor: pointer; }
.vchk input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.vchk span { position: absolute; inset: 0; border-radius: 8px; border: 2px solid var(--line-2); background: #fff; transition: all .2s; }
.vchk input:checked + span { background: #0f8b6d; border-color: #0f8b6d; }
.vchk input:checked + span::after { content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.vchk input:focus-visible + span { outline: 2px solid #00A4D4; outline-offset: 2px; }
.vthumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #3C2A98, #0B0A2E); }
.vthumb::before { content: ''; position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: -8px 0 0 -5px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; opacity: .9; }
.vthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.vthumb:hover img { transform: scale(1.06); }
.vthumb span { position: absolute; right: 5px; bottom: 5px; background: rgba(0,0,0,.8); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.vtitle { font-weight: 700; font-size: 15px; color: var(--black); line-height: 1.4; }
.vtitle small { display: inline-block; min-width: 38px; font-weight: 800; font-size: 12.5px; color: #0089BA; }
.vtitle:hover { color: #3C2A98; text-decoration: none; }
.vid.seen .vtitle { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(15,139,109,.5); }
.vgo { font-size: 13px; font-weight: 800; color: #3C2A98; white-space: nowrap; padding: 8px 12px; border-radius: 8px; background: #ECE9FA; }
.vgo:hover { background: #3C2A98; color: #fff; text-decoration: none; }
.stage-f { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.sn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; background: #F4F6FD; border: 1px dashed var(--line-2); font-size: 13.5px; font-weight: 700; color: var(--muted); }
a.sn { color: #3C2A98; border-style: solid; }
a.sn:hover { background: #ECE9FA; text-decoration: none; }
.sn.ready { background: #0B0A2E; color: #fff; border-color: #0B0A2E; }
.trail-more { margin: 26px 0 4px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted); }

@media (max-width: 960px) {
  .trail-head { grid-template-columns: 1fr; }
  .how3 { grid-template-columns: 1fr; }
  .stage-h { grid-template-columns: 52px minmax(0, 1fr) 24px; }
  .stage-p, .stage-pc { display: none; }
}
@media (max-width: 600px) {
  .trail-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trail-stats div:nth-child(2) { border-right: 0; }
  .trail-stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .trail { padding-left: 26px; }
  .trail::before { left: 15px; }
  .stage-n { margin-left: -26px; width: 34px; height: 34px; font-size: 15px; }
  .stage-h { grid-template-columns: 34px minmax(0, 1fr) 20px; gap: 10px; }
  .stage-t b { font-size: 17px; }
  .stage-t em { display: none; }
  .stage-b { padding: 0 14px 16px; }
  .vid { grid-template-columns: 26px minmax(0, 1fr); gap: 10px 12px; }
  .vthumb, .vgo { display: none; }
  .trail-ctrl { position: static; }
}
