/* Ticket stub check: signature component */
.stub {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 560px) {
  .stub { grid-template-columns: 1fr 8.5rem; }
}
.stub__main { padding: 1.25rem 1.25rem 1rem; }
.stub__kicker {
  margin: 0 0 .35rem;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
}
.stub h2 { margin: 0 0 .75rem; font-size: 1.25rem; line-height: 1.25; color: var(--ink); }
.stub__list { display: grid; gap: .55rem; margin: 0; }
.stub__list .check {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .95rem;
  line-height: 1.35;
  color: var(--ink);
  cursor: pointer;
}
.stub__list input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: .15rem;
  accent-color: var(--brand);
}
.stub__tear {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  border-top: 2px dashed var(--border);
}
@media (min-width: 560px) {
  .stub__tear { border-top: 0; border-left: 2px dashed var(--border); }
}
.stub__score {
  margin: 0;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.stub__verdict { margin: .5rem 0 0; font-size: .85rem; color: var(--muted); line-height: 1.35; }
.stub[data-state="pass"] .stub__verdict { color: var(--ink); font-weight: 600; }
.stub__src {
  grid-column: 1 / -1;
  margin: 0;
  padding: .7rem 1.25rem;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--muted);
}
.stub__src a { color: var(--brand); }

/* The ranked hero is dark and redefines the color variables to light values;
   the stub has a light surface, so give it its own dark-on-light palette */
.hero .stub {
  --surface: #ffffff;
  --ink: #1e293b;
  --muted: #475569;
  --brand: #8a6100;
  --border: #cbd5e1;
  background: #ffffff;
}
.hero .stub,
.hero .stub h2,
.hero .stub #stub-title,
.hero .stub .check,
.hero .stub .stub__list label {
  color: #1e293b !important;
}
.hero .stub .stub__kicker,
.hero .stub .stub__score {
  color: #8a6100 !important;
}
.hero .stub .stub__verdict,
.hero .stub .stub__src {
  color: #475569 !important;
}
.hero .stub[data-state="pass"] .stub__verdict {
  color: #1e293b !important;
}
.hero .stub .stub__src a {
  color: #8a6100 !important;
}

/* Hero search: keep the placeholder readable on small screens */
lg-search input {
  min-width: 0;
  text-overflow: ellipsis;
}
@media (max-width: 480px) {
  lg-search form {
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
  }
  lg-search input,
  lg-search button {
    width: 100%;
    box-sizing: border-box;
  }
}