/* Cairn #428 Phase 6 — specimen view mode styles. */
/* All tokens are var(--v2-*) — no raw hex (v2-raw-hex-warn hook enforces). */

.spec-hero {
  background: linear-gradient(180deg,
    var(--v2-accent-botanical-bg) 0%,
    var(--v2-bg-secondary) 100%);
  padding: 18px 22px 20px;
  border-bottom: 1px solid var(--v2-border-soft);
}

.spec-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--v2-bg-card);
  border: 1px solid var(--v2-border-soft);
  border-radius: 4px;
  padding: 6px 10px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--v2-text-secondary);
  cursor: pointer;
  margin-bottom: 14px;
  min-height: 44px;
  box-sizing: border-box;
}

.spec-code {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 34px;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--v2-text-primary);
  margin: 0;
}

.spec-plant {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  color: var(--v2-text-secondary);
  margin: 4px 0 12px;
  font-weight: 500;
}
.spec-plant em {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  color: var(--v2-text-tertiary);
  font-weight: 400;
}

.spec-pillrow { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.spec-pill {
  display: inline-flex; align-items: center;
  height: 24px; padding: 0 8px;
  border-radius: 4px;
  font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .06em;
}
.spec-pill.is-alive {
  background: var(--v2-accent-botanical-bg);
  color: var(--v2-accent-botanical);
}
.spec-pill.is-zone {
  background: var(--v2-pop-slate-bg);
  color: var(--v2-pop-slate);
}
.spec-pill.is-container {
  background: var(--v2-bg-secondary);
  color: var(--v2-text-stone);
  border: 1px solid var(--v2-border-hairline);
}

.spec-lineage {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12.5px;
  color: var(--v2-text-secondary);
  line-height: 1.5;
  background: var(--v2-bg-card);
  border: 1px solid var(--v2-border-hairline);
  border-radius: 8px;
  padding: 10px 12px;
}
.spec-lineage .label {
  font-size: 10px;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--v2-text-tertiary);
  font-weight: 600;
  margin-right: 6px;
}
.spec-lineage a {
  color: var(--v2-accent-botanical);
  text-decoration: none;
  font-weight: 500;
}
.spec-lineage .row + .row { margin-top: 4px; }

.spec-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.spec-photo-thumb {
  aspect-ratio: 1;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  background: var(--v2-bg-secondary);
}
.spec-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spec-photo-thumb .day-pill {
  position: absolute; bottom: 4px; left: 4px;
  background: var(--v2-bg-overlay);
  color: var(--v2-text-on-dark);
  font-size: 9px; font-weight: 600;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: .04em;
}
.spec-photo-thumb.is-pinned .day-pill {
  background: var(--v2-accent-botanical-bg);
  color: var(--v2-accent-botanical);
}

.spec-timeline {
  border-left: 2px solid var(--v2-border-hairline);
  margin-left: 6px;
  padding-left: 14px;
}
.spec-tl-event { position: relative; padding-bottom: 12px; }
.spec-tl-event::before {
  content: '';
  position: absolute;
  left: -21px; top: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--v2-accent-botanical);
  border: 2px solid var(--v2-bg-primary);
}
.spec-tl-event.is-move::before { background: var(--v2-pop-slate); }
.spec-tl-event.is-photo::before { background: var(--v2-accent-terracotta); }
.spec-tl-event.is-observe::before { background: var(--v2-pop-ochre); }
.spec-tl-event.is-state::before { background: var(--v2-pop-coral); }
.spec-tl-when {
  font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--v2-text-tertiary);
  font-weight: 600;
  margin-bottom: 2px;
}
.spec-tl-what {
  font-size: 13px;
  color: var(--v2-text-primary);
  line-height: 1.4;
}
.spec-tl-what em {
  color: var(--v2-text-secondary);
  font-style: normal;
  font-size: 12px;
}

.spec-about-plant {
  background: var(--v2-bg-secondary);
  padding: 14px 22px;
  border-top: 1px solid var(--v2-border-soft);
}
.spec-about-plant[open] { padding-bottom: 22px; }
.spec-about-plant summary {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  list-style: none;
  min-height: 44px;
}
.spec-about-plant summary::-webkit-details-marker { display: none; }
.spec-about-plant-title {
  font-size: 11px;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--v2-text-stone);
  font-weight: 600;
}
.spec-about-plant-hint {
  font-size: 11px;
  color: var(--v2-text-tertiary);
}
.spec-about-plant-body { margin-top: 14px; }
