/* The ground page: the story stage shows a report photo or the map; the cards reuse story.css. */
body[data-page="ground"] { background: var(--paper); }
/* Photos sit at their real size, like a print pinned to a dark board, so they stay sharp. --cap keeps the caption clear of the photo. */
.stage { --cap: 88px; }
#gphotos { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, #4a4138 0%, #2f2a25 70%, #26221e 100%); }
.gph { position: absolute; inset: 0 0 var(--cap) 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .6s ease; }
.gph.on { opacity: 1; }
.gph img { display: block; width: auto; height: auto; max-width: calc(100% - 56px); max-height: calc(100% - 44px); border: 6px solid #fff; border-radius: 4px; box-shadow: 0 14px 34px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.4); background: #fff; }
#smap { opacity: 0; transition: opacity .5s ease; }
.stage.show-map #smap { opacity: 1; }
.stage.show-map #gphotos { pointer-events: none; }
/* photo caption pill, bottom left of the stage */
.gcap { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 500; background: rgba(29,36,51,.86); color: #fff; font-size: .85rem; line-height: 1.4; padding: 10px 14px; border-radius: 12px; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; pointer-events: none; max-width: 560px; }
.gcap.show { opacity: 1; transform: none; pointer-events: auto; }
.gcap a { color: rgba(255,255,255,.75); white-space: nowrap; }
/* opening photo: a label and a straight arrow pointing at the fluff (the ribbon runs through the centre of the photo). Static, no motion. */
.gpoint { position: absolute; left: 50%; top: calc((100% - var(--cap)) / 2); width: 220px; height: 130px; transform: translate(-18px, -114px); z-index: 450; pointer-events: none; opacity: 0; transition: opacity .5s; }
.stage.point .gpoint { opacity: 1; }
.gpoint svg { position: absolute; left: 0; top: 0; overflow: visible; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)) drop-shadow(0 0 5px rgba(0,0,0,.35)); }
.gpoint path { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.gpoint-lbl { position: absolute; left: 190px; top: 14px; transform: translate(-50%, -100%); background: rgba(29,36,51,.88); color: #fff; font: 700 .95rem "Archivo", sans-serif; letter-spacing: .01em; padding: 7px 14px; border-radius: 999px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
@media (max-width: 860px) {
  .stage { --cap: 64px; }
  .gph img { max-width: calc(100% - 24px); max-height: calc(100% - 16px); border-width: 4px; }
  .gpoint { width: 150px; height: 90px; transform: translate(-12px, -78px); }
  .gpoint svg { width: 150px; height: 90px; }
  .gpoint path { stroke-width: 3; }
  .gpoint-lbl { left: 130px; top: 10px; font-size: .78rem; padding: 5px 11px; }
}
/* sample spots on the map */
.gspot { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #7a4a1e; display: flex; align-items: center; justify-content: center; font-size: 17px; box-shadow: 0 0 0 3px #fff, 0 2px 8px rgba(0,0,0,.3); position: relative; transition: background .4s, color .4s; }
/* "The answer": each spot turns red and shows how many of its jars were hazardous waste (the tooltip has the full count) */
.gspot .n { display: none; font: 800 13px "Archivo", sans-serif; font-stretch: 112%; line-height: 1; }
.stage.haz .gspot { background: #b23a10; color: #fff; }
.stage.haz .gspot i { display: none; }
.stage.haz .gspot .n { display: block; }
.step.intro .box { background: #7a4a1e; }
.step .kicker { color: #7a4a1e; }
.box .facts .bignum { color: #7a4a1e; }
.box .facts .bar i { background: #b0702f; }
/* intro card on the ground page keeps the home page's style (box is dark, text light) */
.step.intro .kicker, .step.intro .scroll-cue { color: rgba(239,241,232,.85); }
.step.intro .scroll-cue { color: #7a4a1e; }
/* below the story */
#visits-sec { padding-top: 56px; scroll-margin-top: 70px; }
#visits-sec h2 { margin-bottom: .3em; }
table.tbl td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.tbl td.nowrap { white-space: nowrap; }
table.tbl .muted.small { font-size: .78rem; white-space: normal; }
.gcant { max-width: 820px; }
.gcant ul { padding-left: 1.2em; }
.gcant li { margin-bottom: 8px; }
@media (max-width: 860px) {
  .gcap { left: 8px; right: 8px; bottom: 8px; font-size: .72rem; padding: 7px 10px; border-radius: 9px; line-height: 1.3; }
  .gspot { width: 24px; height: 24px; font-size: 13px; }
  .gspot .n { font-size: 11px; }
  /* phones: the Jars column goes; the last column already reads "hazardous / tested" */
  table.tbl th:nth-child(3), table.tbl td:nth-child(3) { display: none; }
  .stage .leaflet-control-attribution { font-size: 9px; }
  #visits-sec { padding-top: 28px; }
  table.tbl { font-size: .82rem; }
  table.tbl th, table.tbl td { padding: 7px 8px; }
}
