/* Seed Tag Lookup Desk — track (CityTribe)
   Wire-hung seed-tag lookup · lot-strip delivery tags · matched-tag tray.
   Not Trellis Climb / Skee Lane / Parcel Bell / Seismo / Telemetry. */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,500&family=Righteous&display=swap");

.page-a103-seedtag {
  --stl-ink: #0E1F1A;
  --stl-mute: #3A5248;
  --stl-teal: #00A896;
  --stl-teal-deep: #007A6E;
  --stl-coral: #FF4D6A;
  --stl-coral-deep: #D01840;
  --stl-cobalt: #2B6BFF;
  --stl-cobalt-deep: #1A4FD4;
  --stl-chart: #B8E62E;
  --stl-chart-ink: #2A3600;
  --stl-lemon: #FFF59A;
  --stl-soil: #2A1C14;
  --stl-field: #E0FFF6;
  --stl-field-cool: #D4F0FF;
  --stl-surface: #FFFFFF;
  --stl-ok: #007A6E;
  --stl-err: #C44000;
  --stl-radius: 12px;
  --stl-font-display: "Righteous", Impact, sans-serif;
  --stl-font-body: "DM Sans", system-ui, sans-serif;
  font-family: var(--stl-font-body);
  color: var(--stl-ink);
  background:
    radial-gradient(ellipse 50% 36% at 12% 0%, rgba(0, 168, 150, 0.2), transparent 55%),
    radial-gradient(ellipse 42% 30% at 90% 8%, rgba(255, 77, 106, 0.14), transparent 50%),
    linear-gradient(168deg, var(--stl-field) 0%, var(--stl-field-cool) 50%, #FFFDE7 100%);
}

.stl-stage { padding-bottom: 56px; }

.stl-mast {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 20px;
  align-items: end;
  padding: 28px 0 14px;
}
.stl-kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stl-teal-deep);
}
.stl-mast h1 {
  margin: 0;
  font-family: var(--stl-font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.02em;
}
.stl-mast-copy p:last-child {
  margin: 10px 0 0;
  max-width: 48ch;
  font-weight: 600;
  color: var(--stl-mute);
}

.stl-badge {
  min-width: 140px;
  padding: 14px 16px;
  border: 3px solid var(--stl-ink);
  border-radius: var(--stl-radius);
  background: var(--stl-lemon);
  box-shadow: 4px 4px 0 rgba(14, 31, 26, 0.16);
  display: grid;
  gap: 2px;
  text-align: center;
}
.stl-badge-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stl-mute);
}
.stl-badge-state {
  font-family: var(--stl-font-display);
  font-size: 1.15rem;
  font-weight: 400;
}
.stl-badge-step {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--stl-mute);
}
.stl-badge.is-found { background: var(--stl-chart); color: var(--stl-chart-ink); }
.stl-badge.is-miss { background: #FFE0E6; }

.stl-body { padding-top: 8px; }

.stl-bay {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.15fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}

/* —— Wire-hung seed tag form —— */
.stl-tag {
  position: relative;
  padding-top: 18px;
}
.stl-tag-wire {
  position: absolute;
  top: 6px;
  left: 8%;
  right: 8%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--stl-ink) 12%, var(--stl-ink) 88%, transparent);
  border-radius: 2px;
}
.stl-tag-hole {
  position: absolute;
  top: 0;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border: 3px solid var(--stl-ink);
  border-radius: 50%;
  background: var(--stl-field);
  z-index: 2;
  box-shadow: inset 0 0 0 3px var(--stl-lemon);
}
.stl-tag-face {
  position: relative;
  padding: 28px 20px 18px;
  background: var(--stl-lemon);
  border: 3px solid var(--stl-ink);
  border-radius: 4px 4px 18px 18px;
  box-shadow: 5px 5px 0 rgba(14, 31, 26, 0.14);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 92% 100%, 8% 100%, 0 88%);
}
.stl-tag-stamp {
  margin: 0 0 14px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stl-teal-deep);
}
.stl-fields { display: grid; gap: 12px; }
.stl-field {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  background: var(--stl-surface);
  border: 2px solid var(--stl-ink);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.stl-field span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stl-mute);
  transition: color 0.2s, transform 0.2s;
}
.stl-field input {
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--stl-ink);
  width: 100%;
}
.stl-field.is-focused {
  border-color: var(--stl-cobalt);
  box-shadow: 0 0 0 3px rgba(43, 107, 255, 0.25);
  transform: translateY(-2px);
}
.stl-field.is-focused span { color: var(--stl-cobalt-deep); transform: translateY(-1px); }
.stl-field.is-filled { border-color: var(--stl-teal); }

.stl-release {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.stl-release-copy {
  margin: 0;
  display: grid;
  gap: 2px;
}
.stl-release-copy strong { font-family: var(--stl-font-display); font-size: 1.05rem; }
.stl-release-copy span { font-size: 0.78rem; font-weight: 600; color: var(--stl-mute); }

.stl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 3px solid var(--stl-ink);
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.stl-btn--pull {
  background: var(--stl-coral);
  color: #fff;
  box-shadow: 3px 3px 0 rgba(14, 31, 26, 0.2);
}
.stl-btn--pull:hover { transform: translateY(-2px); }
.stl-btn--pull.is-pressing { transform: translateY(2px) scale(0.98); box-shadow: 1px 1px 0 rgba(14, 31, 26, 0.2); }
.stl-btn--next {
  background: var(--stl-teal);
  color: #fff;
  box-shadow: 3px 3px 0 rgba(14, 31, 26, 0.18);
}
.stl-btn--next:hover { transform: translateY(-2px); color: #fff; }

.stl-another { margin: 12px 0 0; font-weight: 700; }
.stl-another a { color: var(--stl-teal-deep); }

/* —— Lot strip progress —— */
.stl-strip {
  padding: 18px 16px 14px;
  background: var(--stl-soil);
  color: #F5FFF8;
  border: 3px solid var(--stl-ink);
  border-radius: var(--stl-radius);
  box-shadow: 5px 5px 0 rgba(14, 31, 26, 0.16);
}
.stl-strip-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.stl-strip-head h2 {
  margin: 0;
  font-family: var(--stl-font-display);
  font-size: 1.35rem;
  font-weight: 400;
}
.stl-strip-state {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stl-chart);
}

.stl-lots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.stl-lot {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 14px 10px 12px;
  background: var(--stl-lemon);
  color: var(--stl-ink);
  border: 2px solid var(--stl-ink);
  border-radius: 4px 4px 14px 14px;
  min-height: 120px;
  opacity: 0.45;
  transform: translateY(8px);
  transition: opacity 0.35s, transform 0.35s, box-shadow 0.25s;
}
.stl-lot-pin {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  border: 2px solid var(--stl-ink);
  background: #fff;
}
.stl-lot em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  opacity: 0.7;
}
.stl-lot strong {
  font-family: var(--stl-font-display);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.15;
}
.stl-lot small {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--stl-mute);
  line-height: 1.3;
}
.stl-lot--teal { background: #C8FFF6; }
.stl-lot--coral { background: #FFE0E8; }
.stl-lot--cobalt { background: #DCE8FF; }
.stl-lot--chart { background: #EAF8B8; }

.stl-strip.is-found .stl-lot.is-done,
.stl-strip.is-found .stl-lot.is-live {
  opacity: 1;
  transform: translateY(0);
}
.stl-strip.is-found.is-pulled .stl-lot {
  animation: stl-hang 0.45s ease both;
  animation-delay: calc(var(--stl-i) * 80ms);
}
.stl-lot.is-live {
  box-shadow: 0 0 0 3px var(--stl-coral);
  outline: 2px solid transparent;
}
.stl-lot.is-live .stl-lot-pin {
  background: var(--stl-coral);
  animation: stl-pin-pulse 1.4s ease-in-out infinite;
}
.stl-lot.is-done { opacity: 0.92; }
.stl-lot.is-muted { opacity: 0.55; filter: grayscale(0.35); }
.stl-lot.is-idle { opacity: 0.4; }

@keyframes stl-hang {
  from { opacity: 0; transform: translateY(-16px) rotate(-3deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}
@keyframes stl-pin-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

/* —— Result tray —— */
.stl-tray {
  margin-bottom: 20px;
  min-height: 120px;
}
.stl-match {
  padding: 20px 22px;
  background: var(--stl-surface);
  border: 3px solid var(--stl-ink);
  border-radius: var(--stl-radius);
  box-shadow: 4px 4px 0 rgba(14, 31, 26, 0.14);
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .stl-match:not(.is-live) {
    opacity: 0;
    transform: translateY(12px);
  }
  .stl-match.is-live {
    animation: stl-tray-in 0.45s ease forwards;
  }
}
.stl-match-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stl-mute);
}
.stl-match-status {
  padding: 2px 10px;
  background: var(--stl-chart);
  color: var(--stl-chart-ink);
  border-radius: 999px;
  border: 2px solid var(--stl-ink);
}
.stl-match-id {
  margin: 0 0 14px;
  font-family: var(--stl-font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.stl-match-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}
.stl-match-meta div {
  padding: 10px 12px;
  background: var(--stl-field);
  border: 2px solid var(--stl-ink);
  border-radius: 8px;
}
.stl-match-meta dt {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stl-mute);
}
.stl-match-meta dd {
  margin: 4px 0 0;
  font-weight: 800;
  font-size: 1.05rem;
}
.stl-match-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.stl-alert {
  padding: 20px 22px;
  border: 3px solid var(--stl-ink);
  border-radius: var(--stl-radius);
  background: var(--stl-surface);
}
.stl-alert.is-miss { background: #FFE8EC; border-color: var(--stl-coral-deep); }
.stl-alert.is-idle { background: #E8FFFB; }
.stl-alert strong {
  display: block;
  font-family: var(--stl-font-display);
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.stl-alert p { margin: 0 0 10px; font-weight: 600; color: var(--stl-mute); }
.stl-text-exit {
  font-weight: 800;
  color: var(--stl-teal-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@keyframes stl-tray-in {
  to { opacity: 1; transform: translateY(0); }
}

.stl-trail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-top: 8px;
  border-top: 2px dashed rgba(14, 31, 26, 0.2);
}
.stl-trail a {
  font-weight: 800;
  color: var(--stl-ink);
  text-decoration: none;
  border-bottom: 2px solid var(--stl-coral);
}
.stl-trail a:hover { color: var(--stl-coral-deep); }

@media (max-width: 860px) {
  .stl-mast { grid-template-columns: 1fr; }
  .stl-bay { grid-template-columns: 1fr; }
  .stl-lots { grid-template-columns: 1fr 1fr; }
  .stl-match-meta { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .stl-lots { grid-template-columns: 1fr; }
  .stl-match-meta { grid-template-columns: 1fr; }
  .stl-release { flex-direction: column; align-items: stretch; }
}
