/* Arquivo de Pistas — fixed western dossier composition.
 * 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 Nunito,sans-serif; 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 Nunito,sans-serif;
}
.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:#fbf0dc; --clue-sheet:#fffdf5;
  position:relative; isolation:isolate; width:100%; min-width:0; overflow:hidden;
  padding:clamp(14px,3.1vw,30px);
  border:1px solid #e4d4b8; border-radius:22px;
  color:var(--clue-ink); font-family:Nunito,ui-sans-serif,system-ui,sans-serif;
  background:
    radial-gradient(ellipse at 12% 5%,#fff9e9 0,transparent 49%),
    radial-gradient(ellipse at 100% 80%,#d9ae7d52 0,transparent 50%),
    repeating-linear-gradient(0deg,transparent 0 49px,#bb875a14 50px 51px),
    var(--clue-paper);
  box-shadow:0 17px 45px #55391c2a,inset 0 0 50px #9c602c27;
}
.clue-theme--diary {
  --clue-ink:#073e43; --clue-accent:#168b78; --clue-paper:#eef7e9; --clue-sheet:#fffef4;
  border-color:#a4d4b3;
  background:radial-gradient(circle at 15% 12%,#fff 0,transparent 50%),
    repeating-linear-gradient(0deg,transparent 0 44px,#67bc9919 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:2px solid #9b724f; border-radius:10px;
  background: url('/clue-western-header.svg') center / cover no-repeat, #f5dab5;
}
 .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 Nunito,sans-serif; 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:#fff5df; background:#78502f;
  border:4px ridge #b9884f; border-radius:7px; transform:rotate(-1deg);
  font:900 clamp(14px,2.6vw,20px) Nunito,sans-serif; letter-spacing:.06em;
}
.clue-headline {
  max-width:100%!important; margin:12px auto 6px!important;
  color:#492611!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 #fff8e8; outline:2px solid #98663f; border-radius:6px;
  transform:rotate(-2deg); background:#fff4d8; box-shadow:3px 9px 20px #42281826;
}
.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 #bc956e;
  background: #fff7e8;
  color: #352118;
  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:4px; background:#fff5df; color:var(--clue-accent); letter-spacing:.04em;
  font:900 11px/1.15 Nunito,sans-serif; 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 #b4895e88; border-radius:15px;
  background:var(--clue-sheet); box-shadow:0 5px 14px #4c2e1520;
  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 Nunito,sans-serif;
}
.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 #b28a594e; border-radius:12px; background:#ffffffb9;
}
.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:2px solid #b39a74; border-radius:12px; }
.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:#fffdf6ab; 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:#ffffffa8; border:1px solid #af87515c; 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:#ffdbb7a3; border-left:3px solid #aa5b37; border-radius:7px; }
.clue-disclaimer { font-size:11px!important; opacity:.8; border-top:1px dashed #a8784b; 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); }
}
