/* Practice plans + drills. Loaded only on those pages via layout({ css: ["practice"] }). Tokens come from site.css. */

/* skill tags on drill cards */
.tag-skill { color: var(--ink); }
.tag-flag-pulling { background: var(--orange); } .tag-ball-carrying { background: var(--yellow); } .tag-passing { background: var(--sky); }
.tag-catching { background: #b7f28a; } .tag-routes { background: #ffc2d6; } .tag-defense { background: #1b2a4a; color: #fff; } .tag-conditioning { background: #c8b6ff; }

/* extra legend keys for drill diagrams */
.k-ball::before { background: repeating-linear-gradient(90deg, #e0a800 0 3px, transparent 3px 7px); height: 4px; }
.k-rush::before { background: #e03b3b; }
.k-drop::before { background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 10px); }
.k-def::before { width: 0; height: 0; border-radius: 0; background: none; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 13px solid #1b2a4a; }
.k-cone::before { width: 0; height: 0; border-radius: 0; background: none; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 12px solid var(--orange); }
.k-zone::before { width: 20px; height: 12px; border-radius: 50%; background: rgba(67, 195, 239, .35); border: 2px dashed var(--sky); }

/* chip links (skill jump, plays in a block) */
.chip-link { display: inline-block; font-weight: 800; font-size: .9rem; padding: 4px 12px; margin: 0 8px 8px 0; border-radius: 999px; border: 3px solid var(--ink); background: var(--card); color: var(--ink); text-decoration: none; box-shadow: 0 3px 0 var(--ink); }
.chip-link:hover { background: var(--band); color: var(--ink); }
.skill-jump { margin: 14px 0 4px; }

/* easier / harder and say / bring side by side */
.variations { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 30px 0 8px; }
.variations .panel { margin: 0; }
.variations h2 { font-size: 1.3rem; margin: 4px 0 6px; }
.var-easy { background: var(--band); } .var-hard { background: #ffd9c4; }
.say-box { background: #d8f1fb; } .bring-box { background: #fff1b8; }

/* plan cards on the hub */
.plan-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 24px 0; }
.plan-card { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; background: var(--card); color: var(--ink); text-decoration: none; border: 3px solid var(--ink); border-radius: 20px; box-shadow: 0 6px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.plan-card:hover { color: var(--ink); transform: translateY(-4px) rotate(-.5deg); box-shadow: 0 10px 0 var(--ink); }
.plan-card .card-name { margin: 0; }
.plan-age { align-self: flex-start; font-family: var(--display); font-size: 1.25rem; line-height: 1; padding: 8px 14px; border-radius: 999px; border: 3px solid var(--ink); background: var(--yellow); box-shadow: 0 3px 0 var(--ink); }
.plan-cards .plan-card:nth-child(6n+2) .plan-age { background: var(--sky); } .plan-cards .plan-card:nth-child(6n+3) .plan-age { background: var(--band); }
.plan-cards .plan-card:nth-child(6n+4) .plan-age { background: #ffc8a8; } .plan-cards .plan-card:nth-child(6n+5) .plan-age { background: #ffc2d6; } .plan-cards .plan-card:nth-child(6n+6) .plan-age { background: #c8b6ff; }
.plan-goal { font-size: .95rem; line-height: 1.45; font-weight: 600; flex: 1; }

/* stacked minutes bar, colored by block kind */
.plan-bar { display: flex; height: 16px; border: 3px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--card); }
.plan-bar i { display: block; border-right: 2px solid var(--ink); }
.plan-bar i:last-child { border-right: 0; }
.pb-warm-up, .tl-warm-up .tl-kind { background: var(--yellow); }
.pb-drill, .tl-drill .tl-kind { background: var(--sky); }
.pb-water, .tl-water .tl-kind { background: #d8f1fb; }
.pb-install, .tl-install .tl-kind { background: var(--orange); }
.pb-scrimmage, .tl-scrimmage .tl-kind { background: var(--pink); }
.pb-huddle, .tl-huddle .tl-kind { background: var(--band); }

/* plan page */
.plan-top { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
@media (max-width: 760px) { .plan-top { grid-template-columns: 1fr; } }
.plan-goal-box { margin: 0; }
.plan-goal-box p { font-weight: 700; font-size: 1.08rem; }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 16px 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 34px; top: 14px; bottom: 14px; width: 4px; background: var(--ink); border-radius: 2px; }
main .timeline li.tl { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; margin: 0 0 16px; position: relative; }
.tl-time { justify-self: center; align-self: start; font-family: var(--mono); font-weight: 700; font-size: .85rem; background: var(--card); border: 3px solid var(--ink); border-radius: 999px; padding: 4px 8px; position: relative; z-index: 1; margin-top: 10px; }
.tl-body { background: var(--card); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); padding: 10px 16px; }
.tl-body p { margin: 6px 0; }
.tl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tl-head strong { font-size: 1.08rem; flex: 1; min-width: 150px; }
.tl-kind { font-family: var(--mono); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; padding: 2px 9px; border-radius: 999px; border: 2px solid var(--ink); white-space: nowrap; }
.tl-min { font-weight: 900; white-space: nowrap; }
.tl-plays { margin-top: 8px !important; }
.tl-end .tl-body { box-shadow: none; border-style: dashed; background: transparent; }
@media (max-width: 520px) {
  .timeline::before { left: 26px; }
  main .timeline li.tl { grid-template-columns: 56px minmax(0, 1fr); gap: 8px; }
  .tl-time { font-size: .75rem; padding: 3px 6px; }
  .tl-body { padding: 8px 12px; }
}
@media print { .timeline::before { display: none; } .tl-body { box-shadow: none; } }
