/* Arquivo de Pistas — illustrated dossier composition on clean paper.
 * The artwork lives in CSS/brand illustration; all data slots remain dynamic.
 */
.clue-toolbar {
  display:flex; align-items:end; flex-wrap:wrap; gap:12px; justify-content:space-between;
  margin:15px 0; padding:12px 0;
}
.clue-control { display:grid; gap:5px; font:800 12px/1.3 var(--font-ui); color:#31564c; }
.clue-control select {
  min-height:44px; padding:9px 13px; border:1px solid #bdcbbf; border-radius:13px;
  background:#fffdf8; color:#073e43; font:700 14px var(--font-ui);
}
.clue-toolbar .clue-print { padding:10px 17px; min-height:44px; }
.clue-toolbar .clue-print:disabled { opacity:.5; cursor:not-allowed; }
.clue-report {
  --clue-ink:#073e43; --clue-accent:#168b78; --clue-paper:#fff; --clue-sheet:#f8fcf9;
  position:relative; isolation:isolate; width:100%; min-width:0; overflow:hidden;
  padding:clamp(14px,3.1vw,30px);
  border:1px solid #d4e8dc; border-radius:22px;
  color:var(--clue-ink); font-family: var(--font-ui);
  background:
    radial-gradient(ellipse at 12% 5%,#e9f8ef 0,transparent 42%),
    radial-gradient(ellipse at 100% 80%,#ffeae340 0,transparent 46%),
    var(--clue-paper);
  box-shadow:0 12px 34px #073e4318;
}
.clue-theme--diary {
  --clue-ink:#073e43; --clue-accent:#168b78; --clue-paper:#fff; --clue-sheet:#f8fcf9;
  border-color:#a4d4b3;
  background:radial-gradient(circle at 15% 12%,#fff 0,transparent 50%),
    repeating-linear-gradient(0deg,transparent 0 44px,#67bc990c 45px 46px),var(--clue-paper);
}
.clue-report::after {
  content:""; position:absolute; pointer-events:none; z-index:-1; inset:auto -40px -60px;
  height:180px; background:linear-gradient(0deg,#a1dbaa33,transparent),
    url('/locali-companions.webp') right bottom/auto 190px no-repeat;
  opacity:.36;
}
.clue-masthead {
  position:relative; margin:-10px -10px 20px; padding:23px 18px; text-align:center;
  border:1px solid #b9d9c8; border-radius:13px;
  background: linear-gradient(#ffffff70,#ffffff70), url('/clue-western-header.svg') center / cover no-repeat, #f5faf7;
}
 .clue-brand-strip { position:relative; min-height:100px; display:flex; flex-direction:column; justify-content:center; padding:10px 42% 15px 0; margin-bottom:14px; background:url('/locali-companions.webp') right center / auto 105px no-repeat; }
.clue-brand-strip strong { font:900 clamp(24px,4vw,34px)/1.1 var(--font-ui); letter-spacing:-1px; }
.clue-brand-strip strong span { color:#e9655c; }
.clue-brand-strip small { margin-top:6px; font-size:12px; line-height:1.4; }
.clue-masthead::before,.clue-masthead::after { content:none; }
.clue-kicker {
  display:inline-block; padding:5px 14px; color:#fff; background:#073e43;
  border:1px solid #168b78; border-radius:7px; transform:rotate(-1deg);
  font:900 clamp(14px,2.6vw,20px) var(--font-ui); letter-spacing:.06em;
}
.clue-headline {
  max-width:100%!important; margin:12px auto 6px!important;
  color:#073e43!important; font:900 clamp(29px,5.7vw,58px)/.98 Georgia,serif!important;
  text-wrap:balance; letter-spacing:-.035em;
}
.clue-subhead { font-size:14px; font-weight:800; margin:7px 0 0; }
.clue-top-grid { display:grid; grid-template-columns:1.07fr .93fr; gap:15px; align-items:stretch; }
.clue-top-story { display:grid; grid-template-columns:minmax(105px,45%) 1fr; gap:13px; align-items:center; }
.clue-portrait {
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
  min-width:0; width:100%; aspect-ratio:4/5; overflow:hidden;
  padding:7px; border:7px solid #fff; outline:1px solid #b9d9c8; border-radius:9px;
  transform:rotate(-2deg); background:#f5faf7; box-shadow:3px 9px 20px #073e4318;
}
.clue-portrait img { display:block; width:100%; height:100%; object-fit:cover; }
.clue-portrait-empty { font-size:clamp(30px,8vw,70px); }
.clue-portrait small { font-size:11px; text-align:center; font-weight:800; }
.clue-portrait { position:relative; overflow:visible; }
.clue-portrait img { border-radius:3px; min-height:0; }
/* Real reusable alphabet instead of raster snippets from the reference image.
   Permanent Marker composes every registered name (including accented letters).
   Rye provides the western block-letter style for headings. */
.clue-report {
  --clue-font-western: 'Rye', Rockwell, Georgia, serif;
  --clue-font-handwritten: 'Permanent Marker', 'Comic Sans MS', cursive;
}
.clue-headline {
  font-family: var(--clue-font-western)!important;
  font-size: clamp(24px,5vw,51px)!important;
  letter-spacing: -.055em;
}
.clue-wanted-name {
  position: absolute;
  z-index: 2;
  bottom: -12px;
  left: -5px;
  align-self: stretch;
  display: block;
  width: calc(100% + 10px);
  margin: 0;
  padding: 6px 4px 3px;
  transform: rotate(-2deg);
  border: 1px solid #b9d9c8;
  background: #fff;
  color: #073e43;
  font: 400 clamp(15px,2.6vw,33px)/1.05 var(--clue-font-handwritten);
  text-transform: uppercase;
  text-align: center;
  overflow-wrap: anywhere;
  letter-spacing: .015em;
}
.clue-pet-name {
  font-family: var(--clue-font-handwritten)!important;
  font-weight: 400!important;
  text-transform: uppercase;
  letter-spacing: .015em;
  overflow-wrap: anywhere;
}
.clue-profile-name-text {
  font-family: var(--clue-font-handwritten);
  font-weight: 400;
  text-transform: uppercase;
}
.clue-top-story h2 { margin:10px 0; font:900 clamp(24px,4vw,43px)/1.07 Georgia,serif; overflow-wrap:anywhere; }
.clue-stamp,.clue-number {
  display:inline-flex; align-items:center; padding:5px 9px; border:2px solid var(--clue-accent);
  border-radius:7px; background:#fff; color:var(--clue-accent); letter-spacing:.04em;
  font:900 11px/1.15 var(--font-ui); transform:rotate(-2deg);
}
.clue-hero-description { margin:8px 0; font-size:13px; line-height:1.5; }
.clue-paper {
  padding:clamp(11px,2.5vw,19px); border:1px solid #d4e8dc; border-radius:15px;
  background:var(--clue-sheet); box-shadow:0 4px 12px #073e430c;
  min-width:0; break-inside:avoid;
}
.clue-paper h2 {
  display:flex; align-items:center; gap:7px; margin:0 0 12px;
  color:var(--clue-ink); font:900 clamp(18px,2.7vw,24px)/1.25 var(--font-ui);
}
.clue-profile h3 { margin:0 0 11px; font-size:22px; }
.clue-profile-photo { width:54px; height:54px; overflow:hidden; border-radius:50%; background:#cdefe0; }
.clue-profile-photo img { height:100%; width:100%; object-fit:cover; }
.clue-profile-name { display:flex; align-items:center; gap:12px; }
.clue-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.clue-metric {
  display:grid; align-content:start; gap:5px; padding:12px 10px; min-width:0;
  border:1px solid #d4e8dc; border-radius:12px; background:#fff;
}
.clue-metric small { font-size:11px; opacity:.9; font-weight:750; }
.clue-metric strong { font-size:clamp(13px,2vw,20px); font-weight:900; overflow-wrap:anywhere; }
.clue-dossier-grid { display:grid; grid-template-columns:1.03fr .97fr; align-items:start; gap:15px; margin:17px 0; }
.clue-map { display:grid; place-items:center; width:100%; min-height:370px; height:clamp(380px,48vw,570px); padding:10px; overflow:hidden; text-align:center; background:#e6ede5; border:1px solid #b9d9c8; border-radius:12px; }
.clue-map .leaflet-container { width:100%; height:100%; border-radius:8px; font:inherit; }
.clue-map img { width:100%; height:100%; object-fit:contain; border-radius:8px; background:#eef3ec; }
.clue-map-caption { font-size:11px; line-height:1.4; margin:10px 0 0; }
.clue-print-map { display:none; width:100%; height:auto; max-height:490px; object-fit:contain; background:#edf1e8; border-radius:12px; }
.clue-timeline { max-height:none; }
.clue-evidence {
  position:relative; padding:11px 10px 12px 23px; margin:0 0 10px 7px;
  border-left:3px dashed var(--clue-accent); background:#fff; border-radius:0 11px 11px 0;
  break-inside:avoid; animation:clue-reveal .52s both;
}
.clue-evidence::before {
  content:"🐾"; position:absolute; left:-16px; top:14px; display:grid; place-items:center;
  width:27px; height:27px; border-radius:50%; background:var(--clue-sheet); font-size:14px;
}
.clue-evidence h3 { margin:7px 0 2px; font-size:15px; color:var(--clue-ink); font-weight:900; }
.clue-evidence time { font-size:12px; font-weight:800; }
.clue-evidence p { margin:7px 0; font-size:12px; line-height:1.45; }
.clue-evidence small { display:block; margin-top:7px; font-size:10px; overflow-wrap:anywhere; }
.clue-evidence:nth-child(2) { animation-delay:.08s; }
.clue-evidence:nth-child(3) { animation-delay:.16s; }
.clue-evidence:nth-child(4) { animation-delay:.24s; }
.clue-bottom-grid { display:grid; grid-template-columns:1.03fr .97fr; gap:15px; margin-top:15px; }
.clue-favorites-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
.clue-favorite { display:grid; justify-items:center; gap:6px; padding:9px 5px; min-width:0; text-align:center; background:#fff; border:1px solid #d4e8dc; border-radius:10px; }
.clue-favorite i { font-size:32px; font-style:normal; }
.clue-favorite strong { overflow-wrap:anywhere; font-size:12px; }
.clue-favorite small { font-size:10px; line-height:1.4; }
.clue-summary p { font-size:13px; line-height:1.55; }
.clue-caveat { padding:10px; background:#fff2ee; border-left:3px solid #e9655c; border-radius:7px; }
.clue-disclaimer { font-size:11px!important; opacity:.8; border-top:1px dashed #b9d9c8; padding-top:12px; }
.clue-print-status { margin:13px 0; color:#526c69; font-size:12px; }
@keyframes clue-reveal { from {opacity:0;transform:translateY(10px) rotate(-.4deg)} to {opacity:1;transform:none} }
@media (max-width:690px) {
  .clue-report { padding:13px; border-width:3px; }
  .clue-top-grid,.clue-dossier-grid,.clue-bottom-grid { grid-template-columns:1fr; }
  .clue-masthead { margin:0 0 17px; padding:18px 10px; }
  .clue-masthead::after { width:42%; top:0; height:83px; }
  .clue-top-story { grid-template-columns:minmax(100px,40%) 1fr; }
  .clue-portrait { padding:4px; border-width:4px; }
  .clue-map { height:390px; min-height:300px; }
  .clue-timeline { max-height:none; }
  .clue-headline { font-size:clamp(27px,8vw,40px)!important; }
}
@media (max-width:360px) {
  .clue-top-story { grid-template-columns:100px 1fr; }
  .clue-metrics { gap:5px; }
  .clue-metric { padding:8px; }
  .clue-favorites-grid { grid-template-columns:1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .clue-evidence { animation:none; }
}
@media print {
  @page { size:A4 portrait; margin:10mm; }
  html,body { margin:0!important; background:#fff!important; print-color-adjust:exact; -webkit-print-color-adjust:exact; }
  body * { visibility:hidden!important; }
  .clue-report,.clue-report * { visibility:visible!important; }
  .clue-report { position:absolute; top:0; left:0; width:100%; overflow:visible; padding:10px; border-width:2px; border-radius:0; box-shadow:none; }
  .clue-toolbar,.clue-print-status,.nav,.top { display:none!important; }
  .clue-map { display:none!important; }
  .clue-print-map { display:block!important; }
  .clue-masthead { padding:16px 10px; }
  .clue-brand-strip { min-height:75px; background-size:auto 80px; }
  .clue-masthead::after { height:65px; }
  .clue-timeline { max-height:none; overflow:visible; }
  .clue-evidence { animation:none; }
  .clue-report,.clue-paper,.clue-evidence,.clue-top-grid,.clue-dossier-grid,.clue-bottom-grid { break-inside:avoid; }
  .clue-report .clue-metrics { grid-template-columns:repeat(2,1fr); }
}

/* Small illustrations belong to the story, never to the geographic evidence. */
.clue-evidence { position:relative; padding-right:98px; min-height:98px; }
.clue-evidence::after { content:''; position:absolute; width:80px; height:70px; right:7px; bottom:10px; background:url('/pet-running.webp') center/contain no-repeat; pointer-events:none; }
.clue-summary { padding-bottom:105px; background:var(--clue-sheet) url('/pet-running.webp') right bottom/135px auto no-repeat; }
.clue-brand-strip { border-bottom:1px solid #b9d2ba; padding-bottom:16px; }
.clue-map-caption { line-height:1.5; }
@media (max-width:440px) {
 .clue-evidence { padding-right:76px; }
 .clue-evidence::after { width:60px; height:62px; right:3px; }
 .clue-top-story { gap:14px; }
}
@media print {
 .clue-evidence,.clue-favorite { break-inside:avoid; }
 .clue-evidence::after { print-color-adjust:exact; -webkit-print-color-adjust:exact; }
}
.clue-map-status{margin:10px 2px 0;font-size:12px;line-height:1.45;color:#5d6f6c}
.clue-map-status:empty{display:none}


/*
 * LocaliPet desktop report: respect the space beside the fixed navigation.
 * identity.css limits ordinary app screens to 920px, which squeezed the
 * premium report (photo, metrics, map and timeline) into a narrow strip.
 * Scope this override ONLY to the route containing the actual dossier.
 * Keep mobile layouts, type, decorations and approved color palette intact.
 */
@media (min-width: 900px) {
  .shell[data-locali-route="painel"]:has(> .clue-report) {
    max-width: 1420px;
  }
  .shell[data-locali-route="painel"]:has(> .clue-report) .clue-report {
    container-type: inline-size;
  }
}
/* Two columns only when there is usable room for the map and readable text,
   not merely because the device is classified as desktop. */
@container (max-width: 980px) {
  .clue-top-grid,
  .clue-dossier-grid,
  .clue-bottom-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .clue-top-story {
    grid-template-columns: minmax(135px, 32%) minmax(0, 1fr);
  }
  .clue-map {
    height: clamp(380px, 49vw, 540px);
  }
}
