/* Pack Smart (templates/packing). Same cards and colours as navigation training; works from phone width up.
   Nothing is shown by colour alone: every state also has an icon or words. */
.pk-page { max-width: 1000px; margin: 0 auto; }
.pk-page.is-wide { max-width: 1280px; }
.pk-page h1 { font-size: 1.8rem; margin-bottom: .25rem; }
.pk-sub { color: #5b6470; margin-bottom: 1.25rem; }
.pk-card { background: #fff; border: 1px solid #e3e6ea; border-radius: 12px; padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.pk-quote { border-left: 4px solid #002855; padding: .2rem 0 .2rem .9rem; color: #2b3440; font-size: 1.02rem; margin: 0 0 1rem; }
.pk-status { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.pk-badge { font-weight: 600; padding: .3rem .7rem; border-radius: 999px; background: #eef2f6; color: #334; }
.pk-badge.is-done { background: #e3f4e8; color: #1e6b34; }
.pk-badge.is-needed { background: #fff3dc; color: #7a4d00; }
.pk-tip { background: #f2f7fd; border-left: 4px solid #5b8fd1; padding: .6rem .9rem; border-radius: 6px; margin: .8rem 0; }

.pk-lessons { list-style: none; padding: 0; margin: 0; }
.pk-lessons li { display: flex; align-items: center; gap: .9rem; padding: .8rem 0; border-top: 1px solid #eef0f2; }
.pk-lessons li:first-child { border-top: 0; }
.pk-num { flex: 0 0 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: #eef2f6; color: #334; }
.pk-lessons li.is-done .pk-num { background: #2ea043; color: #fff; }
.pk-lessons li.is-current .pk-num { background: #002855; color: #fff; }
.pk-lessons li.is-locked { opacity: .6; }
.pk-lesson-text { flex: 1 1 auto; min-width: 0; }
.pk-lesson-text strong { display: block; }
.pk-lesson-text small { color: #5b6470; }
.pk-state { font-size: .85rem; color: #5b6470; white-space: nowrap; }

.pk-text h2 { font-size: 1.2rem; margin-top: 1.2rem; }
.pk-text h2:first-child { margin-top: 0; }
.pk-text p, .pk-text li { line-height: 1.55; }
.pk-steps-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: #5b6470; margin-bottom: .2rem; }

/* the journey brief */
.pk-brief { background: #f7f9fb; border: 1px solid #e3e6ea; border-radius: 10px; padding: .8rem 1rem; margin-bottom: .9rem; }
.pk-brief h3 { font-size: 1.05rem; margin: 0 0 .35rem; }
.pk-brief ul { margin: 0; padding-left: 1.1rem; }
.pk-brief li { font-size: .93rem; }

/* items */
.pk-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .55rem; }
.pk-item { border: 1px solid #dfe3e8; border-radius: 10px; padding: .6rem .7rem; background: #fff; display: flex; gap: .6rem; align-items: flex-start; }
.pk-item.is-in { border-color: #2ea043; background: #f3fbf5; }
.pk-item.is-out { background: #fafbfc; }
.pk-icon { flex: 0 0 2.2rem; height: 2.2rem; border-radius: 8px; background: #eef2f6; color: #2b3e55; display: grid; place-items: center; font-size: 1rem; }
.pk-item-body { flex: 1 1 auto; min-width: 0; }
.pk-item-name { font-weight: 600; font-size: .95rem; line-height: 1.25; }
.pk-item-meta { font-size: .8rem; color: #5b6470; }
.pk-item-actions { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .4rem; align-items: center; }
.pk-item-actions .btn { min-height: 2.4rem; }
.pk-qty { display: inline-flex; align-items: center; border: 1px solid #c6ccd3; border-radius: 8px; overflow: hidden; }
.pk-qty button { width: 2.4rem; height: 2.4rem; border: 0; background: #fff; font-size: 1.1rem; }
.pk-qty span { min-width: 2rem; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.pk-filter { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .7rem; }
.pk-filter .btn { padding: .25rem .6rem; font-size: .85rem; }

/* weight bar */
.pk-weight { position: sticky; top: 0; z-index: 5; background: #fff; border: 1px solid #e3e6ea; border-radius: 10px; padding: .55rem .8rem;
  display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; margin-bottom: .8rem; box-shadow: 0 2px 6px rgba(0,0,0,.04); }
.pk-weight strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.pk-weight small { color: #5b6470; }

/* steps of the simulator */
.pk-tabs { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .8rem; }
.pk-tabs button { border: 1px solid #c6ccd3; background: #fff; border-radius: 999px; padding: .4rem .85rem; font-size: .92rem; min-height: 2.5rem; }
.pk-tabs button[aria-selected="true"] { background: #002855; color: #fff; border-color: #002855; }
.pk-tabs button .pk-tick { margin-left: .3rem; }
.pk-panel[hidden] { display: none; }
.pk-nav-row { display: flex; justify-content: space-between; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }

/* the backpack, seen from the side: your back is on the left */
.pk-pack-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1rem; align-items: start; }
.pk-tray { border: 1px dashed #c6ccd3; border-radius: 10px; padding: .6rem; min-height: 4rem; }
.pk-tray h3 { font-size: .95rem; margin: 0 0 .4rem; }
.pk-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.pk-chip { border: 1px solid #b9c2cc; background: #fff; border-radius: 8px; padding: .35rem .55rem; font-size: .85rem; min-height: 2.4rem;
  display: inline-flex; align-items: center; gap: .35rem; cursor: grab; text-align: left; }
.pk-chip[aria-pressed="true"] { outline: 3px solid #f5a524; outline-offset: 1px; background: #fff8e6; }
.pk-chip .pk-vol { color: #5b6470; font-size: .75rem; }
.pk-bag { display: grid; gap: 6px; grid-template-columns: 60px 1fr 1fr 74px; grid-template-areas:
    "back lid lid sideR"
    "back upper upper front"
    "back core_back core_front front"
    "back bottom bottom sideL"
    "hip hip ext ext"; }
.pk-back { grid-area: back; writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; font-size: .78rem; color: #5b6470;
  border-right: 6px solid #6b7785; border-radius: 4px; display: flex; align-items: center; justify-content: center; letter-spacing: .05em; }
.pk-zone { position: relative; border: 2px solid #8a96a3; border-radius: 10px; background: #f7f9fb; padding: .4rem .45rem 1.6rem; min-height: 5.2rem;
  text-align: left; font-size: .8rem; display: flex; flex-direction: column; gap: .3rem; }
.pk-zone.is-main { background: #eef3f8; }
.pk-zone.is-outside { border-style: dashed; }
.pk-zone.is-target { box-shadow: 0 0 0 3px #f5a524; cursor: pointer; }
.pk-zone.is-full { background: repeating-linear-gradient(45deg, #f7f9fb, #f7f9fb 6px, #eceff3 6px, #eceff3 12px); }
.pk-zone.is-drop { box-shadow: 0 0 0 3px #5b8fd1; }
.pk-zone-head { font-weight: 600; color: #2b3440; font-size: .8rem; line-height: 1.2; }
.pk-zone-fill { position: absolute; left: .45rem; right: .45rem; bottom: .35rem; font-size: .72rem; color: #5b6470; display: flex; align-items: center; gap: .35rem; }
.pk-zone-fill .pk-bar { flex: 1; height: 6px; background: #dfe3e8; border-radius: 3px; overflow: hidden; }
.pk-zone-fill .pk-bar i { display: block; height: 100%; background: #5b8fd1; }
.pk-zone .pk-chip { font-size: .78rem; min-height: 2rem; padding: .2rem .45rem; }
.pk-zone[data-zone="lid"] { grid-area: lid; } .pk-zone[data-zone="upper"] { grid-area: upper; }
.pk-zone[data-zone="core_back"] { grid-area: core_back; min-height: 6.5rem; } .pk-zone[data-zone="core_front"] { grid-area: core_front; min-height: 6.5rem; }
.pk-zone[data-zone="bottom"] { grid-area: bottom; } .pk-zone[data-zone="side_left"] { grid-area: sideL; }
.pk-zone[data-zone="side_right"] { grid-area: sideR; } .pk-zone[data-zone="front"] { grid-area: front; }
.pk-zone[data-zone="hip"] { grid-area: hip; min-height: 3.6rem; } .pk-zone[data-zone="external"] { grid-area: ext; min-height: 3.6rem; }
.pk-zone-legend { font-size: .8rem; color: #5b6470; margin-top: .4rem; }
.pk-msg { min-height: 1.4rem; font-size: .9rem; margin: .4rem 0; }
.pk-msg.is-warn { color: #8a4b00; }

/* protection and team */
.pk-table { width: 100%; font-size: .92rem; }
.pk-table td, .pk-table th { padding: .45rem .4rem; border-top: 1px solid #eef0f2; vertical-align: middle; }
.pk-table select { min-height: 2.4rem; max-width: 100%; }
.pk-loads { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; margin: .5rem 0 .8rem; }
.pk-load { border: 1px solid #e3e6ea; border-radius: 8px; padding: .45rem .6rem; font-size: .88rem; }
.pk-load strong { display: block; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.pk-load .pk-bar { height: 6px; background: #dfe3e8; border-radius: 3px; overflow: hidden; margin-top: .3rem; }
.pk-load .pk-bar i { display: block; height: 100%; background: #6b7785; }

/* results */
.pk-result-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; }
.pk-score-big { font-size: 2.4rem; font-weight: 700; color: #002855; font-variant-numeric: tabular-nums; }
.pk-verdict { font-weight: 700; padding: .35rem .8rem; border-radius: 8px; }
.pk-verdict.is-pass { background: #e3f4e8; color: #1e6b34; }
.pk-verdict.is-fail { background: #fdecea; color: #7a1c13; }
.pk-dims { list-style: none; padding: 0; margin: .8rem 0 0; }
.pk-dims li { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr 3rem; gap: .6rem; align-items: center; padding: .25rem 0; font-size: .92rem; }
.pk-dims .pk-bar { height: 10px; background: #e6e9ed; border-radius: 5px; overflow: hidden; }
.pk-dims .pk-bar i { display: block; height: 100%; background: #002855; }
.pk-dims b { text-align: right; font-variant-numeric: tabular-nums; }
.pk-feedback { list-style: none; padding: 0; margin: 0; }
.pk-feedback li { display: flex; gap: .55rem; padding: .45rem 0; border-top: 1px solid #eef0f2; font-size: .95rem; }
.pk-feedback li:first-child { border-top: 0; }
.pk-feedback i { margin-top: .2rem; width: 1.1rem; text-align: center; }
.pk-feedback .is-critical i { color: #b42318; } .pk-feedback .is-warn i { color: #a15c00; }
.pk-feedback .is-good i { color: #1e7b34; } .pk-feedback .is-tip i { color: #36618f; }
.pk-sev { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; margin-right: .25rem; }
.pk-event { background: #fff8e6; border: 1px solid #f1d58a; border-radius: 10px; padding: .7rem .9rem; margin-top: .8rem; }

/* lesson practice */
.pk-practice { border: 2px solid #dfe7f1; }
.pk-streak { display: flex; align-items: center; gap: .35rem; margin: .4rem 0 .8rem; color: #5b6470; font-size: .9rem; }
.pk-dot { width: 14px; height: 14px; border-radius: 50%; background: #dfe3e8; border: 1px solid #c6ccd3; }
.pk-dot.is-on { background: #2ea043; border-color: #2ea043; }
.pk-answer { padding: .7rem .9rem; border-radius: 8px; margin: .6rem 0; }
.pk-answer.is-right { background: #e3f4e8; color: #1e4d2b; }
.pk-answer.is-wrong { background: #fdecea; color: #6b1c15; }
.pk-lines { list-style: none; padding: 0; margin: .4rem 0 0; }
.pk-lines li { padding: .35rem 0; border-top: 1px solid rgba(0,0,0,.06); font-size: .92rem; }
.pk-sort { display: flex; gap: .3rem; }
.pk-sort .btn { min-width: 6.2rem; }
.pk-slot { margin-bottom: .8rem; }
.pk-slot legend { font-size: 1rem; font-weight: 600; margin-bottom: .3rem; }
.pk-slot .pk-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .35rem; }
.pk-slot label { border: 1px solid #dfe3e8; border-radius: 8px; padding: .5rem .6rem; display: flex; gap: .5rem; align-items: center; min-height: 2.6rem; cursor: pointer; }
.pk-done { background: #e3f4e8; border-radius: 8px; padding: .7rem .9rem; margin-bottom: .7rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

/* completion */
.pk-record { max-width: 640px; margin: 2rem auto; text-align: center; border: 3px double #002855; border-radius: 14px; padding: 2.2rem 1.5rem; background: #fff; }
.pk-record h1 { font-size: 2rem; color: #002855; }
.pk-record .pk-record-name { font-size: 1.5rem; font-weight: 600; margin: 1rem 0 .3rem; }
.pk-record .pk-record-note { font-size: .85rem; color: #5b6470; margin-top: 1.4rem; }

/* the panel switch on phones: items or the pack */
.pk-switch { display: none; gap: .35rem; margin-bottom: .6rem; }
.pk-switch button { flex: 1; min-height: 2.6rem; border: 1px solid #c6ccd3; background: #fff; border-radius: 8px; }
.pk-switch button[aria-pressed="true"] { background: #002855; color: #fff; }

@media (max-width: 860px) {
  .pk-pack-layout { grid-template-columns: 1fr; }
  .pk-switch { display: flex; }
  .pk-pack-layout[data-show="bag"] .pk-tray-col { display: none; }
  .pk-pack-layout[data-show="items"] .pk-bag-col { display: none; }
  .pk-pack-layout.is-picking .pk-tray-col { display: block; }
}
@media (max-width: 520px) {
  .pk-card { padding: .9rem .8rem; }
  .pk-page h1 { font-size: 1.45rem; }
  .pk-lessons li { flex-wrap: wrap; }
  .pk-lessons li .btn { width: 100%; }
  .pk-bag { grid-template-columns: 34px 1fr 1fr 62px; gap: 4px; }
  .pk-zone { padding: .3rem .3rem 1.5rem; font-size: .74rem; }
  .pk-dims li { grid-template-columns: 1fr 3rem; }
  .pk-dims .pk-bar { grid-column: 1 / -1; grid-row: 2; }
  .pk-items { grid-template-columns: 1fr; }
  .pk-table thead { display: none; }
  .pk-table tr { display: block; border-top: 1px solid #eef0f2; padding: .4rem 0; }
  .pk-table td { display: block; border: 0; padding: .15rem 0; }
}
@media print {
  .navbar, footer, .pk-noprint { display: none !important; }
  .pk-record { border-color: #000; }
}
