/* Identify (Photo ID) — the web twin of the app's Identify screen.
   Builds on ../styles.css (palette, type, buttons, header, footer).
   Audience rule: big tap targets (52px+), readable type, one action
   at a time, a visible way back on every screen. */

.identify-main { padding-top: 2rem; padding-bottom: 3rem; }

.btn-big { min-height: 60px; padding: 0.9rem 1.6rem; font-size: 1.1rem; }
.btn-block { display: block; width: 100%; text-align: center; margin-top: 0.8rem; }

.notice {
  background: #f6e3da; color: #6e2418;
  border: 2px solid var(--brick); border-radius: 12px;
  padding: 0.9rem 1.1rem; font-size: 1.05rem;
}

.caption { color: var(--ink-soft); font-size: 0.98rem; }
.body { font-size: 1.05rem; }

.photo-preview {
  max-width: 26rem; width: 100%; border-radius: var(--radius);
  border: 2px solid var(--line); margin-bottom: 0.6rem;
}

/* Tips — numbered rows in one grouped card (the app's TipRow rhythm) */
.tips-title { margin-top: 2.2rem; }
.tips-card {
  background: var(--card-bg); border: 2px solid var(--line);
  border-radius: var(--radius); padding: 0.4rem 1.1rem;
  max-width: 44rem;
}
.tip-row {
  display: flex; gap: 0.9rem; align-items: flex-start;
  padding: 0.75rem 0; border-bottom: 1px solid var(--line);
}
.tip-row:last-child { border-bottom: none; }
.tip-num {
  flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--pine); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.tip-text { font-size: 1.05rem; padding-top: 0.25rem; }

.small-print {
  margin-top: 2rem; max-width: 44rem;
  font-size: 0.9rem; color: var(--ink-soft);
}

/* Results */
.results-header {
  display: flex; gap: 1rem; align-items: flex-start;
  margin-bottom: 1rem;
}
.results-header .thumb {
  width: 88px; height: 88px; object-fit: cover;
  border-radius: 12px; border: 2px solid var(--line); flex: 0 0 auto;
}
.results-head-text { flex: 1 1 auto; }
.results-title { margin: 0 0 0.3rem; }
.link-button {
  background: none; border: none; cursor: pointer;
  color: var(--brick); font: inherit; font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
  min-height: 48px; padding: 0.4rem 0.2rem; flex: 0 0 auto;
}
.status-line { font-size: 1.1rem; font-weight: 600; color: var(--pine-dark); }

.piece-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  margin: 1rem 0;
}
.piece-card {
  display: block; position: relative;
  background: var(--card-bg); border: 2px solid var(--line);
  border-radius: var(--radius); padding: 0.7rem;
  color: var(--ink); text-decoration: none;
}
.piece-card:hover { border-color: var(--pine); }
.piece-photo {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 10px; margin-bottom: 0.6rem; background: #eee5cd;
}
.piece-photo-none {
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); font-size: 0.95rem;
}
.piece-name { display: block; font-weight: 700; font-size: 1.02rem; line-height: 1.35; }
.piece-meta { display: block; color: var(--ink-soft); font-size: 0.92rem; margin-top: 0.2rem; }

.badge-honor {
  display: inline-block; background: var(--gold); color: #23190a;
  font-weight: 700; font-size: 0.85rem;
  border-radius: 999px; padding: 0.25rem 0.7rem; margin-bottom: 0.5rem;
}
.piece-card .badge-honor { position: absolute; top: 1rem; left: 1rem; margin: 0; }

/* The one confident answer */
.confident-card {
  background: var(--card-bg); border: 2px solid var(--pine);
  border-radius: var(--radius); padding: 1.1rem;
  max-width: 30rem; margin: 1rem 0;
}
.confident-photo {
  width: 100%; max-height: 320px; object-fit: cover;
  border-radius: 10px; margin-bottom: 0.7rem;
}
.confident-name { font-size: 1.35rem; font-weight: 700; color: var(--pine-dark); margin: 0 0 0.3rem; }
.confident-why { font-weight: 700; margin: 0 0 0.4rem; }
.evidence-box {
  background: #eef4ea; border-radius: 10px;
  padding: 0.8rem 1rem; margin-top: 0.8rem;
}
.evidence-box p { margin: 0 0 0.4rem; }
.evidence-box p:last-child { margin-bottom: 0; }

.empty-state {
  background: var(--card-bg); border: 2px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem; max-width: 34rem;
}

/* The monthly meter: a quiet readout on the photo step, and the
   limited state when a free member's 10 for the month are used. */
.usage-line { color: var(--ink-soft); font-size: 0.98rem; margin: 0.2rem 0 0; }
.limited-panel {
  background: var(--card-bg); border: 2px solid var(--gold);
  border-radius: var(--radius); padding: 1.2rem; max-width: 34rem;
}
.limited-panel .btn { margin-top: 0.8rem; }
.empty-title { font-size: 1.2rem; font-weight: 700; color: var(--pine-dark); margin: 0 0 0.4rem; }

/* Quick answers */
.answers-toggle {
  display: block; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  color: var(--pine-dark); font: inherit; font-weight: 700; font-size: 1.1rem;
  min-height: 52px; padding: 0.6rem 0.2rem; margin-top: 1.4rem;
  border-top: 2px solid var(--line);
}
#answers-editor { max-width: 44rem; }
.question { font-weight: 700; font-size: 1.08rem; margin: 1rem 0 0.5rem; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  min-height: 48px; padding: 0.5rem 1rem;
  border: 2px solid var(--line); border-radius: 999px;
  background: var(--card-bg); color: var(--ink);
  font: inherit; font-size: 1rem; cursor: pointer;
}
.chip:hover { border-color: var(--pine); }
.chip-active { background: var(--pine); border-color: var(--pine); color: #fff; font-weight: 700; }

/* Box-text search */
.box-search {
  margin-top: 2rem; padding-top: 1.2rem;
  border-top: 2px solid var(--line); max-width: 60rem;
}
.box-title { margin-top: 0; }
.box-input {
  width: 100%; max-width: 30rem; min-height: 56px;
  font: inherit; font-size: 1.05rem;
  padding: 0.6rem 0.9rem; margin-bottom: 0.8rem;
  border: 2px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink);
}
.box-input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
