/* The Explorers Club (/ks3/explorers): scoped under .pg-explorers. */
.pg-explorers {
  .hero { padding-block: 10px 80px; }
  .hero .wrap { display: grid; grid-template-columns: 1fr .9fr; gap: 30px; align-items: center; }
  .hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); margin: 14px 0 12px; }
  .hero p { max-width: 46ch; margin: 0 0 12px; }
  .hero .dog { width: 100%; max-width: 480px; margin-left: auto; }
  @media (max-width: 760px) { .hero .wrap { grid-template-columns: 1fr; } .hero .dog { max-width: 320px; margin-inline: auto; } }
}

/* the treasure hunts */
.pg-explorers {
  .hunts { padding-block: 60px 80px; }
  .hunts .lede { margin: 8px 0 26px; max-width: 60ch; }
  .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
  .card { position: relative; background: #fffdf6; padding: 22px 22px 24px; box-shadow: 0 8px 20px rgba(40,25,5,.16); border-top: 8px solid var(--coral); }
  .card[data-status="done"] { border-top-color: var(--s-science); }
  .card[data-status="locked"] { border-top-color: #b9a68a; background: #f1e8d8; color: #7a6a55; box-shadow: none; }
  .card .num { position: absolute; right: 16px; top: -22px; width: 44px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; padding-top: .15em;
               background: var(--navy); color: var(--label); font: 400 1.3rem/1 var(--f-label); box-shadow: 0 3px 0 rgba(0,0,0,.2); }
  .card[data-status="locked"] .num { background: #b9a68a; }
  .card .kicker { font: 400 .8rem/1 var(--f-label); letter-spacing: .08em; color: #8a6f4c; margin: 0 0 6px; }
  .card h3 { font: 400 1.35rem/1.1 var(--f-slab); margin: 0 0 12px; }
  .card p { margin: 0 0 12px; font-size: .95rem; }
  .card .pic { display: block; width: 120px; margin: 4px auto 14px; filter: drop-shadow(0 4px 4px rgba(0,0,0,.25)); }
  .card .hintbtn { cursor: pointer; border: 0; background: none; padding: 0; font: 700 1.15rem/1.1 var(--f-hand); color: var(--coral); text-decoration: underline; text-underline-offset: 3px; }
  .card .hint { font: 700 1.15rem/1.25 var(--f-hand); color: #5b3a1a; background: #f6ecd4; padding: 8px 12px; transform: rotate(-.8deg); }
  .card .stamp { font-size: .95rem; --torn-bg: var(--s-science); color: #fff; transform: rotate(-4deg); margin-bottom: 10px; }
  .card .got { display: flex; justify-content: center; margin: 4px 0 12px; }
  .card .got img { width: 110px; filter: drop-shadow(0 4px 4px rgba(0,0,0,.25)); }
  .alldone { margin: 28px 0 0; font: 700 1.4rem/1.2 var(--f-hand); color: #5b3a1a; }
  .restart { display: block; margin-top: 22px; cursor: pointer; border: 0; background: none; padding: 0; font: inherit; font-size: .88rem; color: #8a6f4c; text-decoration: underline; }
  @media (max-width: 860px) { .cards { grid-template-columns: 1fr; gap: 34px; } }
}

/* clue lists, finds and the certificate form */
.pg-explorers {
  .cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); row-gap: 40px; }
  .card h4 { font: 400 .78rem/1 var(--f-label); letter-spacing: .08em; color: #8a6f4c; margin: 14px 0 4px; }
  .card .pics { display: flex; justify-content: center; gap: 10px; margin: 4px 0 14px; }
  .card .pics img { width: 120px; filter: drop-shadow(0 4px 4px rgba(0,0,0,.25)); }
  .clues { list-style: none; margin: 4px 0 12px; padding: 0; display: grid; gap: 8px; }
  .clues li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; font-size: .95rem; }
  .clues .box { width: 22px; height: 22px; margin-left: 6px; border: 2px solid #b9a68a; background: #fff; }
  .clues .tick { width: 34px; height: 34px; object-fit: contain; }
  .clues li.found span { color: #5d7a3e; text-decoration: line-through; text-decoration-color: rgba(93,122,62,.5); }
  .clues li.hidden span { color: #a8977f; font-style: italic; }
  .clues li.hidden .box { border-style: dashed; }
  .sofar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
  .sofar img { width: 54px; height: 54px; object-fit: contain; }
  .card .count { font: 700 1.2rem/1 var(--f-hand); color: var(--coral); }
  .card .summary { font-weight: 600; }
  .card .unit { font-size: .85rem; color: #6b5230; }
  .finds { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 12px; }
  .finds li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: start; }
  .finds img { width: 56px; height: 56px; object-fit: contain; }
  .finds .where { font: 400 .7rem/1 var(--f-label); letter-spacing: .06em; color: #8a6f4c; }
  .finds p { margin: 4px 0 0; font-size: .88rem; }
  .merits { margin-top: 16px; padding-top: 14px; border-top: 2px dashed #e2d3b6; }
  .merits form { display: grid; gap: 10px; }
  .merits form p { margin: 0; font-size: .85rem; color: #6b5230; }
  .merits label { display: grid; gap: 4px; font: 400 .8rem/1 var(--f-label); letter-spacing: .05em; color: var(--ink); }
  .merits input { font: 400 1rem/1.2 var(--f-body); padding: 8px 10px; border: 2px solid #d8c7a6; background: #fff; color: var(--ink); }
  .merits input:focus { outline: 3px solid var(--sky); border-color: var(--navy); }
  .merits .btn { justify-self: start; }
  .merits .note { margin: 8px 0 0; font-size: .88rem; }
  .merits .note.warn { color: #b0402a; font-weight: 600; }
}

/* the link to the Knowledge Organiser Practice website */
.pg-explorers {
  .practice { padding-block: 70px 80px; }
  .practice .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
  .practice h2 { color: var(--label); margin: 14px 0 12px; }
  .practice p { color: #dfe4f4; max-width: 58ch; margin: 0 0 14px; }
  .practice .btn { margin-top: 6px; }
  .kosheet { position: relative; display: block; margin: 8px 0 26px; max-width: 560px; background: #fffdf6; padding: 10px 10px 12px; transform: rotate(-1deg);
             box-shadow: 0 12px 26px rgba(0,0,0,.4); text-decoration: none; color: var(--ink); transition: transform .2s; }
  .kosheet:hover, .kosheet:focus-visible { transform: rotate(0) scale(1.02); outline: none; }
  .kosheet img { display: block; width: 100%; height: auto; }
  .kosheet .cap { display: block; margin-top: 8px; font-size: .85rem; line-height: 1.35; }
  .kosheet .tape { position: absolute; z-index: 2; top: -12px; left: 18%; width: 90px; height: 24px; background: rgba(216,165,54,.75); transform: rotate(4deg); }
  .practice .more { margin-top: 18px; font-size: .9rem; color: #b9c3e3; }
  .practice .more b { color: var(--mustard); font-weight: 600; }
  /* three snapshots of the games, taped on at angles and overlapping */
  .snaps { position: relative; min-height: 640px; }
  .snap { position: absolute; display: block; width: 52%; background: #fffdf6; padding: 10px 10px 12px; box-shadow: 0 12px 26px rgba(0,0,0,.4);
          text-decoration: none; color: var(--ink); transition: transform .2s; }
  .snap img { display: block; width: 100%; height: auto; }
  .snap .cap { display: grid; gap: 2px; margin-top: 8px; font-size: .82rem; line-height: 1.3; }
  .snap .cap b { font: 400 .95rem/1.1 var(--f-label); letter-spacing: .03em; color: var(--navy); }
  .snap .tape { position: absolute; z-index: 2; top: -12px; left: 50%; width: 90px; height: 24px; margin-left: -45px; background: rgba(216,165,54,.75); transform: rotate(-3deg); }
  .snap.s0 { left: 0; top: 0; transform: rotate(-4deg); z-index: 1; }
  .snap.s1 { right: 0; top: 56px; transform: rotate(3deg); z-index: 2; }
  .snap.s2 { left: 22%; top: 296px; transform: rotate(-1.5deg); z-index: 3; }
  .snap:hover, .snap:focus-visible { transform: rotate(0) scale(1.04); z-index: 5; outline: none; }
  @media (max-width: 860px) {
    .practice .wrap { grid-template-columns: 1fr; }
    .snaps { min-height: 0; display: grid; gap: 22px; }
    .snap, .snap.s0, .snap.s1, .snap.s2 { position: relative; left: auto; right: auto; top: auto; width: auto; }
  }
}
