/* Build the Camp (templates/campcraft). The same cards and colours as Pack Smart and navigation training.
   Laptop first (the map beside the stage panel), stacking on narrow screens. Nothing is shown by colour alone:
   every state also has an icon or words. */
.cc-page { max-width: 1000px; margin: 0 auto; }
.cc-page.is-wide { max-width: 1400px; }
.cc-page h1 { font-size: 1.8rem; margin-bottom: .25rem; }
.cc-sub { color: #5b6470; margin-bottom: 1.25rem; }
.cc-card { background: #fff; border: 1px solid #e3e6ea; border-radius: 12px; padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.cc-quote { border-left: 4px solid #002855; padding: .2rem 0 .2rem .9rem; color: #2b3440; font-size: 1.02rem; margin: 0 0 1rem; }
.cc-status { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.cc-badge { font-weight: 600; padding: .3rem .7rem; border-radius: 999px; background: #eef2f6; color: #334; }
.cc-badge.is-done { background: #e3f4e8; color: #1e6b34; }
.cc-badge.is-needed { background: #fff3dc; color: #7a4d00; }
.cc-tip { background: #f2f7fd; border-left: 4px solid #5b8fd1; padding: .6rem .9rem; border-radius: 6px; margin: .8rem 0; }
.cc-steps-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: #5b6470; margin-bottom: .2rem; }

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

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

/* the simulator: panel beside the map on a laptop */
.cc-sim { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 1rem; align-items: start; }
.cc-side { position: sticky; top: .5rem; }
.cc-panel { background: #fff; border: 1px solid #e3e6ea; border-radius: 12px; padding: .9rem 1rem; max-height: calc(100vh - 7rem); overflow-y: auto; }
.cc-mapbox { background: #fff; border: 1px solid #e3e6ea; border-radius: 12px; padding: .4rem; min-width: 0; }
.cc-map { width: 100%; height: auto; display: block; touch-action: none; border-radius: 8px; outline: none; user-select: none; }
.cc-map:focus-visible { box-shadow: 0 0 0 3px #5b8fd1; }
@media (max-width: 900px) {
  .cc-sim { grid-template-columns: 1fr; }
  .cc-side { position: static; order: 2; }
  .cc-panel { max-height: none; }
}

.cc-steps { list-style: none; padding: 0; margin: 0 0 .7rem; display: flex; flex-wrap: wrap; gap: .3rem; }
.cc-steps li { font-size: .78rem; display: flex; align-items: center; gap: .3rem; padding: .15rem .5rem .15rem .2rem; border-radius: 999px; background: #eef2f6; color: #5b6470; }
.cc-steps li.is-current { background: #002855; color: #fff; }
.cc-steps li.is-done { background: #e3f4e8; color: #1e6b34; }
.cc-step-num { width: 1.3rem; height: 1.3rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.6); font-weight: 700; color: inherit; }

.cc-tray-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: #5b6470; margin: .6rem 0 .3rem; }
.cc-tray { display: flex; flex-wrap: wrap; gap: .35rem; }
.cc-chip { border: 1px solid #c6ccd3; background: #fff; border-radius: 999px; padding: .35rem .75rem; font-size: .88rem; min-height: 2.4rem; text-align: left; }
.cc-chip.is-placed { border-color: #2ea043; background: #f3fbf5; }
.cc-chip.is-picked { border-color: #002855; box-shadow: 0 0 0 2px #002855 inset; }
.cc-pickhelp { margin-top: .6rem; font-size: .88rem; display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.cc-note { background: #f7f9fb; border: 1px solid #e3e6ea; border-radius: 10px; padding: .6rem .8rem; font-size: .92rem; }
.cc-note p { margin-bottom: .4rem; }
.cc-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.cc-message { margin-top: .6rem; }
.cc-event { border-left: 4px solid #4d6f91; background: #f3f7fb; border-radius: 6px; padding: .6rem .8rem; margin-bottom: .8rem; }
.cc-consequences { margin: .2rem 0 .5rem; padding-left: 1.1rem; font-size: .92rem; }
.cc-checks { display: grid; gap: .35rem; }
.cc-check { padding: .35rem .5rem .35rem 2rem; border: 1px solid #e3e6ea; border-radius: 8px; background: #fff; }
.cc-check .form-check-input { margin-top: .3rem; }
.cc-order { padding-left: 1.3rem; margin-bottom: .4rem; }
.cc-order li { padding: .15rem 0; }
.cc-order li span { font-size: .92rem; }
.cc-sequence .cc-chip { border-radius: 8px; }

/* marking */
.cc-feedback { list-style: none; padding: 0; margin: .4rem 0 0; }
.cc-feedback li { display: flex; gap: .5rem; padding: .3rem 0; font-size: .92rem; }
.cc-feedback li i { margin-top: .2rem; }
.cc-feedback .is-critical i { color: #b42318; }
.cc-feedback .is-major i { color: #b54708; }
.cc-feedback .is-minor i, .cc-feedback .is-missed i { color: #5b6470; }
.cc-feedback .is-good i { color: #1e6b34; }
.cc-sev { font-weight: 700; margin-right: .35rem; }
.cc-verdict { font-weight: 700; }
.cc-verdict.is-pass { color: #1e6b34; }
.cc-verdict.is-fail { color: #9a3412; }
.cc-result-head { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.cc-score-big { font-size: 2.2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.cc-dims { list-style: none; padding: 0; margin: .8rem 0 0; }
.cc-dims li { display: grid; grid-template-columns: 1fr 120px 2.5rem; gap: .6rem; align-items: center; padding: .2rem 0; font-size: .92rem; }
.cc-bar { height: .55rem; background: #eef2f6; border-radius: 999px; overflow: hidden; }
.cc-bar i { display: block; height: 100%; background: #002855; }
.cc-dims b { text-align: right; font-variant-numeric: tabular-nums; }
.cc-reveal { list-style: none; padding: 0; font-size: .9rem; }
.cc-reveal li { display: flex; gap: .45rem; padding: .2rem 0; }
.cc-reveal .is-good i { color: #1e6b34; }
.cc-reveal .is-poor i { color: #b54708; }
.cc-dot { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; border: 2px solid #2ea043; margin-right: .2rem; vertical-align: middle; }
.cc-dot.is-on { background: #2ea043; }
.cc-prompt { font-weight: 600; font-size: 1.02rem; }

/* the SVG map */
.cc-area { cursor: pointer; }
.cc-area-label { font-size: .85px; font-weight: 700; fill: #24425f; paint-order: stroke; stroke: #fff; stroke-width: .25px; pointer-events: none; }
.cc-area-label.is-reveal { fill: #7a2e0e; }
.cc-feature { cursor: pointer; }
.cc-feature-label { font-size: .6px; fill: #3a3a2a; paint-order: stroke; stroke: #fff; stroke-width: .18px; pointer-events: none; }
.cc-map.is-zoomed .cc-area-label { font-size: .6px; }
.cc-guy { fill: none; stroke: #6b7a8c; stroke-width: .04; stroke-dasharray: .15 .12; }
.cc-porch { fill: rgba(255,255,255,.35); stroke: #6b7a8c; stroke-width: .04; stroke-dasharray: .12 .1; }
.cc-fly { fill: #e0a43a; stroke: #8a5a10; stroke-width: .07; }
.cc-ridge { stroke: #8a5a10; stroke-width: .05; }
.cc-door { fill: #f4c56c; stroke: #8a5a10; stroke-width: .06; }
.cc-tent-label { font-size: .75px; font-weight: 800; fill: #4a3000; pointer-events: none; }
.cc-tent { cursor: grab; }
.cc-tent.is-given, .cc-thing.is-given { cursor: default; opacity: .9; }
.cc-tent.is-picked .cc-fly, .cc-thing.is-picked .cc-item-box, .cc-thing.is-picked .cc-zone-ring { stroke: #002855; stroke-width: .16; }
.cc-tent.is-bad .cc-fly { stroke: #b42318; stroke-width: .18; }
.cc-thing { cursor: grab; }
.cc-thing.is-bad .cc-item-box { stroke: #b42318; stroke-width: .14; }
.cc-zone-ring { fill: rgba(255,255,255,.55); stroke: #24425f; stroke-width: .07; stroke-dasharray: .25 .15; }
.cc-zone-text { font-size: .4px; font-weight: 700; fill: #24425f; paint-order: stroke; stroke: #fff; stroke-width: .12px; pointer-events: none; }
.cc-item-text { font-size: .38px; font-weight: 800; fill: #fff; pointer-events: none; }
.cc-hit { fill: transparent; }
.cc-litter { cursor: pointer; }
.cc-litter-hit { fill: transparent; }
.cc-litter.is-marked .cc-litter-hit { fill: rgba(214,47,47,.18); stroke: #d62f2f; stroke-width: .1; }
.cc-litter:focus-visible .cc-litter-hit { stroke: #5b8fd1; stroke-width: .12; }
.cc-puddle { fill: rgba(80,140,200,.45); stroke: rgba(40,100,170,.6); stroke-width: .06; }
.cc-puddle.is-hit { fill: rgba(60,120,200,.6); }
.cc-hit-ring { fill: none; stroke: #b42318; stroke-width: .14; stroke-dasharray: .3 .2; }

/* the completion record */
.cc-record { max-width: 640px; margin: 2rem auto; border: 2px solid #002855; border-radius: 14px; padding: 2rem; text-align: center; background: #fff; }
.cc-record h1 { font-size: 1.9rem; margin: .4rem 0 1rem; }
.cc-record-name { font-size: 1.4rem; font-weight: 700; }
.cc-record-note { font-size: .85rem; color: #5b6470; margin-top: 1rem; }
@media print { .cc-noprint, nav, header, footer { display: none !important; } }
