/* ═══════════════════════════════════════════════════════════════
   DISCOVER — one place under the lamp.

   Mnemo's front door is a night gallery: a big picture in a dark room.
   GDE SI? is the survey sheet. This page is both at once: the PICTURE fills
   the room, and on it lie the two things a surveyor leaves behind — the
   TITLE BLOCK of the sheet (which sheet, what it shows) and the folded MAP
   with the place marked. It is the game's own stage, already solved.

   The one motion is the game's one motion: THE KOTA. Arriving from another
   place, a dimension line is drawn from there to here with the distance on
   it — the town is learned as distances between things you now know.

   Below the stage the page goes quiet: the story in a reading column, and
   OUR RECORD of the place — every guess ever made at it as one tick on a
   log scale of metres. No cards, no icons, nothing rounded, no gradient.
   ═══════════════════════════════════════════════════════════════ */
.ds{--rub:clamp(16px,3.2vw,48px)}

/* ── the stage ───────────────────────────────────────────────────── */
.ds-scena{position:relative;height:min(84vh,920px);min-height:520px;background:var(--ink-2);overflow:hidden;
  border-bottom:1px solid var(--hair-2)}
.ds-veliko{position:absolute;inset:0}
/* THE WHOLE PICTURE, NEVER A STRIP OF IT. `cover` on a wide stage cut the
   photographs to 2:1 and a building showed only its roof ("vidi se samo
   gornji deo građevine" — the owner). The photo is shown whole (`contain`),
   and the room around it is the same photo, blurred and dimmed: the stage
   stays full, nothing is cropped. The blur is the owner's call, like the
   translucent title block below — an exception to "no blur" made on purpose. */
.ds-veliko img.ds-fon{position:absolute;inset:-40px;width:calc(100% + 80px);height:calc(100% + 80px);
  object-fit:cover;filter:blur(28px) brightness(.42) saturate(1.1);display:block}
.ds-veliko img.ds-foto{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;
  object-position:center 40%;display:block}
.ds-veliko #karta,.ds-umetak #karta{position:absolute;inset:0;background:var(--papir)}
.ds-potpis{position:absolute;top:0;right:0;margin:0;padding:6px 12px;background:var(--ink);
  font-family:var(--mono);font-size:10px;letter-spacing:.04em;color:rgba(242,247,246,.7);z-index:4}
.ds-potpis a{color:var(--mint);text-decoration:none}
.ds-potpis a:hover{text-decoration:underline}

/* the title block: ink plate, hairline set in from the edge, like the
   finale's sastavnica — the same object, so the two screens are kin */
.ds-blok{position:absolute;left:var(--rub);bottom:var(--rub);z-index:5;
  width:min(620px,calc(100% - 2*var(--rub) - min(36vw,460px) - 24px));
  background:rgba(11,17,19,.58);-webkit-backdrop-filter:blur(16px) saturate(1.25);
  backdrop-filter:blur(16px) saturate(1.25);outline:1px solid var(--hair-2);outline-offset:-7px;
  padding:clamp(20px,2.4vw,34px) clamp(20px,2.6vw,38px) clamp(20px,2.2vw,30px)}
.ds-list{margin:0 0 14px;font-family:var(--mono);font-size:11px;letter-spacing:.14em;
  color:rgba(242,247,246,.6);padding-bottom:10px;border-bottom:1px solid var(--hair)}
.ds-list b{color:var(--yellow);font-weight:500}
.ds-blok h1{margin:0;font-size:clamp(30px,4.4vw,64px);font-weight:700;line-height:.98;letter-spacing:-.03em;
  text-wrap:balance}
.ds-mesto{margin:16px 0 0;font-size:clamp(15px,1.4vw,19px);color:var(--mint)}
.ds-mesto span{font-family:var(--mono);font-size:11px;letter-spacing:.14em;color:rgba(242,247,246,.55);
  margin-left:10px}

/* the folded sheet in the corner */
.ds-umetak{position:absolute;right:var(--rub);bottom:calc(var(--rub) + 40px);z-index:5;
  width:min(36vw,460px);height:min(46vh,380px);background:var(--papir);
  border:1px solid var(--ink);outline:1px solid var(--hair-3)}
.ds-umetak img{width:100%;height:100%;object-fit:cover;display:block}
.ds-potpis-mali{position:absolute;left:0;bottom:0;margin:0;padding:4px 8px;background:var(--ink);
  font-family:var(--mono);font-size:10px;color:rgba(242,247,246,.7)}
.ds .kota-svg{z-index:3}
.ds-karta-dugmad{position:absolute;right:var(--rub);bottom:var(--rub);z-index:6;display:flex;gap:0;
  width:min(36vw,460px)}
.ds-karta-dugmad button{flex:1;border:1px solid var(--ink);border-top:none;background:var(--papir);color:var(--ink);
  font-family:var(--mono);font-size:11px;letter-spacing:.16em;padding:10px 8px;height:40px}
.ds-karta-dugmad button + button{border-left:none}
.ds-karta-dugmad button:hover,.ds-karta-dugmad button[aria-pressed="true"]{background:var(--ink);color:var(--white)}
.ds-karta-dugmad button:focus-visible{outline:2px solid var(--mint);outline-offset:-4px}
/* the place itself: the game's truth cross on a mint plate, readable on a 61 km sheet */
.ds .istina{width:22px;height:22px;background:var(--mint);outline:2px solid var(--ink)}
.ds .istina::before{left:10px;height:22px}
.ds .istina::after{top:10px;width:22px}
.ds .odakle{width:10px;height:10px;background:var(--ink)}

/* no Commons picture: the map is the stage, our own picture the inset */
.bez-slike .ds-umetak{height:min(40vh,300px)}
.bez-slike .ds-karta-dugmad{right:auto;left:var(--rub);bottom:auto;top:var(--rub);width:auto}
.bez-slike .ds-karta-dugmad button{border-top:1px solid var(--ink);padding:10px 18px}
.bez-slike .ds-umetak{bottom:var(--rub)}

/* ── below the stage ─────────────────────────────────────────────── */
.ds-telo{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,400px);gap:clamp(28px,5vw,90px);
  padding:clamp(34px,6vh,80px) var(--rub) 0;max-width:1320px}
.ds-prica > p{margin:0 0 1em;font-size:clamp(18px,1.55vw,22px);line-height:1.62;max-width:34em;
  color:rgba(242,247,246,.92)}
.ds-prica > p:first-of-type{font-size:clamp(20px,1.9vw,27px);line-height:1.45;color:var(--white)}
.ds-prica > p.ds-hod{font-family:var(--mono);font-size:12px;letter-spacing:.06em;line-height:1.5;
  color:rgba(242,247,246,.6);margin-bottom:22px}
.ds-prica > p.ds-hod:first-of-type{font-size:12px}
.ds-hod b{color:var(--mint);font-weight:500;font-size:15px;margin-right:4px}
.ds-hod a{color:var(--white);text-decoration-color:var(--hair-3);text-underline-offset:3px}
.ds-prica > p.ds-danas{border-left:3px solid var(--mint);padding:4px 0 4px 16px;font-size:16px}
.ds-danas b{font-weight:500;color:var(--mint)}
.ds-prica > p.ds-izvor{font-size:13px;line-height:1.6;color:rgba(242,247,246,.5);margin-top:34px;
  padding-top:14px;border-top:1px solid var(--hair);max-width:46em}
.ds-izvor a{color:rgba(242,247,246,.8)}
.ds-greska{margin-top:6px;font-size:13px;color:rgba(242,247,246,.6)}
.ds-greska summary{cursor:pointer;color:rgba(242,247,246,.5);text-decoration:underline;
  text-decoration-color:var(--hair-2);text-underline-offset:3px;list-style:none}
.ds-greska summary::-webkit-details-marker{display:none}
.ds-greska summary:hover{color:var(--white)}
.ds-greska p{margin:12px 0 8px}
.ds-greska textarea{display:block;width:min(100%,520px);background:var(--ink-2);color:var(--white);
  border:1px solid var(--hair-2);font:inherit;font-size:15px;padding:10px 12px;margin-bottom:10px}
.ds-greska textarea:focus{outline:1px solid var(--mint)}

/* our record of the place */
.ds-mera{align-self:start;border-top:1px solid var(--hair-2);padding-top:18px}
.ds-broj{margin:0 0 18px;font-size:14px;color:rgba(242,247,246,.65)}
.ds-broj b{font-size:clamp(40px,4vw,58px);font-weight:700;letter-spacing:-.03em;color:var(--white);
  margin-right:8px;font-variant-numeric:tabular-nums}
.ds-crtice{position:relative;height:54px;border-bottom:1px solid var(--hair-3)}
.ds-crtice i{position:absolute;bottom:0;width:1px;height:26px;background:rgba(242,247,246,.75)}
.ds-crtice i.prvi{height:54px;width:2px;background:var(--mint)}
.ds-crtice em{position:absolute;top:0;font-style:normal;font-family:var(--mono);font-size:11px;color:var(--mint);
  white-space:nowrap;padding:0 6px}
.ds-crtice em.levo{transform:translateX(-100%)}
.ds-skala{display:flex;justify-content:space-between;font-family:var(--mono);font-size:9px;
  color:rgba(242,247,246,.4);padding-top:5px}
.ds-crtice-kaze{font-size:13px;line-height:1.5;color:rgba(242,247,246,.5);margin:12px 0 20px}
.ds-brojke{margin:0}
.ds-brojke div{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:9px 0;
  border-top:1px solid var(--hair);font-size:14px}
.ds-brojke dt{color:rgba(242,247,246,.6)}
.ds-brojke dd{margin:0;font-family:var(--mono);font-size:13px;text-align:right}
.ds-brojke dd b{font-family:var(--sans);font-size:15px;font-weight:700;margin-right:6px}
.ds-u-igri{margin:26px 0 0}
.ds-u-igri img{display:block;width:100%;border:1px solid var(--hair-2)}
.ds-u-igri figcaption{font-size:12px;color:rgba(242,247,246,.5);padding-top:6px}

/* ── onward ──────────────────────────────────────────────────────── */
.ds-dalje{display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  margin:clamp(40px,7vh,90px) var(--rub) 0;padding:18px 0 clamp(30px,6vh,70px);border-top:1px solid var(--hair-2)}
.ds-dalje a{text-decoration:none}
.ds-napredak{margin-right:auto;font-family:var(--mono);font-size:12px;letter-spacing:.06em;color:rgba(242,247,246,.6)}
.ds-napredak b{color:var(--mint);font-weight:500}
.ds-sledece{padding:18px 34px 18px 38px;font-size:14px}
.ds .gumb:focus-visible{outline:2px solid var(--white);outline-offset:3px}

@media(max-width:820px){
  .ds-scena{height:auto;min-height:0;overflow:visible;display:flex;flex-direction:column;border-bottom:none}
  /* on a phone the picture is simply as tall as its own proportions */
  .ds-veliko{position:relative;inset:auto;height:auto;min-height:0}
  .ds-veliko img.ds-fon{display:none}
  .ds-veliko img.ds-foto{position:relative;height:auto;max-height:78vh;object-fit:contain;background:var(--ink-2)}
  .bez-slike .ds-veliko{height:52vh;min-height:320px}
  .ds-potpis{top:auto;bottom:auto;position:absolute;top:0}
  .ds-blok{position:relative;left:auto;bottom:auto;width:auto;margin:-64px 12px 0;padding:18px 18px 18px}
  .ds-blok h1{font-size:clamp(28px,8.4vw,40px)}
  .ds-umetak{position:relative;right:auto;bottom:auto;width:auto;height:46vh;min-height:280px;margin:16px 12px 0}
  .ds-karta-dugmad{position:relative;right:auto;bottom:auto;width:auto;margin:0 12px}
  .bez-slike .ds-karta-dugmad{left:auto;top:auto;order:2;margin:0 12px}
  .bez-slike .ds-karta-dugmad button{border-top:none}
  .bez-slike .ds-veliko{order:1;height:52vh}
  .bez-slike .ds-blok{order:3;margin-top:16px}
  .bez-slike .ds-umetak{order:4;height:auto;min-height:0}
  .bez-slike .ds-umetak img{height:auto}
  .ds-telo{grid-template-columns:1fr;padding-top:30px}
  /* the way on stays under the thumb */
  .ds-dalje{position:sticky;bottom:0;background:var(--ink);margin:30px 0 0;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));
    z-index:20;flex-wrap:nowrap}
  .ds-dalje .gumb.tih{display:none}
  .ds-sledece{flex:0 0 auto;padding:14px 20px 14px 24px}
  .ds-telo{padding-bottom:10px}
}

/* ── the owner's review page (discover_review.html) ─────────────────
   Restored: the redesign of this file for the Discover page dropped these
   rules and the review page fell apart (17 Sep, owner: "raspala se"). The
   page is a work surface, like mnemo's depot: one framed block per story,
   the three languages side by side on a desk, stacked on a phone. */
.dr-strana{max-width:1320px}
.dr-prica{border:1px solid var(--hair-2);padding:18px 20px;margin:18px 0;display:flex;
  flex-direction:column;gap:14px}
.dr-glava{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
.dr-glava b{font-size:17px}
.dr-status i{font-style:normal;color:var(--mint)}
.dr-jezici{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px}
.dr-jezik{border-left:1px solid var(--hair-2);padding-left:12px;min-width:0}
.dr-naslov-j{font-weight:600;margin:4px 0}
.dr-tekst-j{font-size:13px;line-height:1.5;opacity:.8}
.dr-jezik input,.dr-jezik textarea{width:100%}
.dr-jezik textarea{min-height:190px;line-height:1.5;font-size:13px}
.dr-cinjenice{margin:0;padding-left:18px;font-size:13px;line-height:1.55;opacity:.75}
.dr-izvori{display:flex;gap:10px;flex-wrap:wrap;font-size:12px}
.dr-izvori a{color:var(--mint)}
.dr-slika{display:flex;align-items:center;gap:12px;font-size:12px;opacity:.85}
.dr-slika img{width:180px;height:auto;border:1px solid var(--hair-2)}
.dr-dugmad{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.dr-beleske{border-left:3px solid var(--yellow);padding:6px 0 6px 12px;font-size:13px}
