/* /check/ — VIN lookup page (extends site tokens) */

.check-hero {
  padding: 2.5rem 0 2rem;
}

.check-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
}

.check-hero .lead {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.check-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  max-width: 640px;
}

.check-form label {
  display: block;
  width: 100%;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.check-form input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.check-form input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(45, 184, 168, 0.2);
}

.check-alert {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 120, 100, 0.35);
  background: rgba(80, 30, 30, 0.35);
  color: #ffb4a8;
}

.check-alert.is-visible {
  display: block;
}

.check-loading {
  display: none;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
  color: var(--muted);
}

.check-loading.is-visible {
  display: flex;
}

.check-spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--border);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: check-spin 0.7s linear infinite;
}

@keyframes check-spin {
  to { transform: rotate(360deg); }
}

.check-result {
  display: none;
  margin-top: 2rem;
}

.check-result.is-visible {
  display: block;
}

.check-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.check-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--bg-mid), var(--bg-card));
}

.check-card-header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.check-card-header .check-lot {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Gallery — modal-like 400px height */
.check-gallery-wrap {
  position: relative;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.check-gallery {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0.25rem 2.5rem;
}

.check-gallery::-webkit-scrollbar {
  height: 8px;
}

.check-gallery::-webkit-scrollbar-thumb {
  background: rgba(45, 184, 168, 0.35);
  border-radius: 4px;
}

.check-gallery img {
  height: 400px;
  width: auto;
  max-width: none;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg-deep);
  transition: opacity 0.2s ease;
}

.check-gallery-img--failed {
  filter: grayscale(0.65);
}

.check-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.check-gallery-arrow:hover {
  background: rgba(45, 184, 168, 0.75);
}

.check-gallery-arrow--left {
  left: 1rem;
}

.check-gallery-arrow--right {
  right: 1rem;
}

/* Tabs */
.check-tabs {
  margin-top: 0;
}

.check-tabs-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.check-tab-button {
  border: 1px solid rgba(45, 184, 168, 0.35);
  background: rgba(45, 184, 168, 0.08);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.check-tab-button:hover {
  background: rgba(45, 184, 168, 0.16);
  border-color: rgba(45, 184, 168, 0.5);
}

.check-tab-button.is-active {
  background: rgba(45, 184, 168, 0.22);
  border-color: var(--teal-light);
  color: var(--teal-light);
}

.check-tab-panel {
  display: none;
}

.check-tab-panel.is-active {
  display: block;
}

.check-tab-card {
  padding: 1.25rem 1.5rem;
}

.check-details-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}

.check-details-list {
  flex: 1 1 220px;
  min-width: 200px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-details-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}

.check-details-list li > span {
  color: var(--muted);
  flex-shrink: 0;
}

.check-details-list li strong {
  text-align: right;
  font-weight: 600;
}

.check-sticker-panel {
  min-height: 120px;
}

.check-sticker-loading,
.check-sticker-empty,
.check-sticker-reason,
.check-sticker-error {
  color: var(--muted);
  text-align: center;
  padding: 1rem 0;
}

.check-sticker-error {
  color: #ffb4a8;
}

.check-sticker-reason {
  font-size: 0.88rem;
}

.check-sticker-preview-wrap {
  overflow-x: auto;
  text-align: center;
}

.check-sticker-preview-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.check-sticker-preview-loading {
  color: var(--muted);
  padding: 1.5rem 0;
  text-align: center;
}

.check-sticker-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.check-sticker-retry-btn {
  color: var(--teal-light);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.check-sticker-retry-btn:hover {
  text-decoration: underline;
}

.check-sticker-preview-error {
  color: #ffb4a8;
  text-align: center;
  padding: 0.75rem 0 0;
  font-size: 0.9rem;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}

.check-grid dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.check-grid dd {
  margin: 0;
  font-weight: 600;
}

.check-nhtsa {
  padding: 0 1.5rem 1.25rem;
}

.check-nhtsa h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--teal-light);
}

.check-nhtsa table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.check-nhtsa th,
.check-nhtsa td {
  text-align: left;
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.check-nhtsa th {
  color: var(--muted);
  font-weight: 500;
  width: 42%;
}

.check-nhtsa-toggle {
  margin-top: 0.65rem;
  background: none;
  border: none;
  color: var(--gold-soft);
  cursor: pointer;
  font-size: 0.88rem;
  padding: 0;
}

.check-nhtsa-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.check-cta {
  margin-top: 1.5rem;
  text-align: center;
}

.check-stats {
  padding: 3rem 0 4rem;
}

.check-stats .section-sub {
  margin-bottom: 1.5rem;
}

.check-charts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 920px;
}

.check-chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.check-chart-card h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--teal-light);
}

.check-chart-wrap {
  position: relative;
  height: 280px;
}

.check-chart-wrap--horizontal {
  min-height: 280px;
}

.check-stats-meta {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.nav a.is-active {
  color: var(--gold-soft);
}

@media (max-width: 768px) {
  .check-gallery img {
    height: 280px;
  }

  .check-gallery-arrow {
    width: 34px;
    height: 34px;
    font-size: 1.25rem;
  }

  .check-tabs-header {
    padding: 0.75rem 1rem 0.5rem;
  }

  .check-tab-button {
    font-size: 0.8rem;
    padding: 0.45rem 0.65rem;
  }
}
