/* =========================================================
   VIN SEARCH — BASELINE CSS (LOCKED)
   British Lambretta Archive
   Version: 04-01-2026
   Status: CANONICAL — DO NOT MODIFY WITHOUT AUTHOR APPROVAL
   ========================================================= */


/* =====================================================
   OUTER VIN CARD (SINGLE CONTAINER)
   ===================================================== */

.vin-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 1.2rem 1.4rem;
  max-width: 860px;
}


/* =====================================================
   INTRO TEXT (NO BOX)
   ===================================================== */

.vin-intro {
  margin-bottom: 1.2rem;
}

.vin-intro p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #444;
}

.vin-intro strong {
  font-weight: 600;
}
/* =========================================================
   DO NOT TOUCH — LEGACY "HOW THE VIN SEARCH WORKS"
   Structural contract: visual parity with original VIN page
   ========================================================= */

.vin-how-it-works details {
  border: 1px solid #e3e3e3;
  background: #ffffff;
  margin-bottom: 0.75rem;
  padding: 0;
}

.vin-how-it-works details[open] {
  background: #ffffff;
}

.vin-how-it-works summary {
  list-style: none;
  cursor: pointer;
  padding: 0.75rem 0.9rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
  border-left: 4px solid #c7c7c7;
  background: #f9f9f9;
}

/* Remove browser arrows */
.vin-how-it-works summary::-webkit-details-marker {
  display: none;
}

/* Replace arrow with legacy bullet */
.vin-how-it-works summary::before {
  content: "▶";
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 0.8rem;
  color: #666;
  transform: translateY(-1px);
}

.vin-how-it-works details[open] summary::before {
  content: "▼";
}

/* Step body text */
.vin-how-it-works details p {
  margin: 0;
  padding: 0.75rem 0.9rem 0.85rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #444;
  border-top: 1px solid #e5e5e5;
}

/* Hover behaviour (legacy subtle) */
.vin-how-it-works summary:hover {
  background: #f0f0f0;
}


/* =====================================================
   VIN FORM — LEGACY GRID
   DO NOT TOUCH — JS DEPENDENT
   ===================================================== */

#vin-form {
  max-width: 860px;
}

.vin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  row-gap: 14px;
}

.vin-grid > div {
  display: flex;
  flex-direction: column;
}

.vin-grid label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: #444;
}

.vin-grid select,
.vin-grid input {
  width: 100%;
  padding: 6px 8px;
  font-size: 0.95rem;
  box-sizing: border-box;
}


/* =====================================================
   REMOVE NUMBER INPUT SPINNERS
   ===================================================== */

.vin-grid input[type="number"]::-webkit-inner-spin-button,
.vin-grid input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.vin-grid input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}


/* =====================================================
   FORM BUTTONS — LEGACY STYLE
   ===================================================== */

.vin-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
}

.vin-actions button {
  appearance: none;
  border: 1px solid #cfcfcf;
  background: #f2f2f2;
  color: #333;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: 3px;
  cursor: pointer;
}

.vin-actions button:hover {
  background: #e9e9e9;
  border-color: #bdbdbd;
}

.vin-actions button#vin-clear-btn {
  font-weight: 500;
  color: #555;
}

/* Variant checkboxes — spacing control */
.vin-variant {
  margin-top: 14px;
  margin-bottom: 10px;
}

/* =====================================================
   VIN SECTION TITLE — CANONICAL (LOCKED)
   DO NOT TOUCH
   ===================================================== */

.vin-section-title {
  display: block;
  margin: 0 0 1.75rem 0;
  padding: 0.6rem 0.9rem;
  padding-bottom: .75rem;

  background: #f2f2f2;
  border-left: 4px solid #c7c7c7;
  border-bottom: 1px solid #e5e5e5;

  font-size: 1.25rem;
  font-weight: 600;
}


/* =====================================================
   RESULTS CONTAINER (STRUCTURAL ONLY)
   DO NOT TOUCH — JS COUPLED
   ===================================================== */

.vin-result {
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

#vin-result .auth-block {
  margin-bottom: 1.25rem;
}


/* =====================================================
   SECTION TITLES (LEGACY INNER)
   DO NOT TOUCH
   ===================================================== */

.auth-section-title {
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
  padding-top: 0.75rem;
  padding-bottom: 0.45rem;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #dcdcdc;

  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #555;
}

.auth-section-title:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}


/* =====================================================
   INNER RESULT PANELS (LEGACY)
   DO NOT TOUCH
   ===================================================== */

.auth-panel {
  border: 1px solid #e5e5e5;
  background: #fafafa;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.1rem;
}


/* =====================================================
   ROW LAYOUT — FIXED LEGACY GRID
   DO NOT TOUCH
   ===================================================== */

.auth-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  column-gap: 32px;
  padding: 4px 0;
  line-height: 1.45;
}

.auth-row > strong {
  font-weight: 600;
  color: #555;
  white-space: nowrap;
}

.auth-row > .auth-value {
  color: #222;
}


/* =====================================================
   AUTHENTICATION RESULT — AUTHORITATIVE BOX
   DO NOT TOUCH
   ===================================================== */

.auth-result {
  background: #fafafa;
  border: 1px solid #e2e2e2;
  border-left: 4px solid #9a9a9a;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.auth-result-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}


/* =====================================================
   VARIANT EXPLANATORY BANNER
   ALIGNED WITH AUTH-BADGE (NO MERGE)
   ===================================================== */

.auth-variant-text {
  background: #eef5f9;               /* same background tone */
  border: 1px solid #e2e2e2;                    /* badges do not use full border */
  border-left: 4px solid #31708f;    /* same left rule weight */
  padding: 0.65rem 0.85rem;          /* same padding */
  margin: 0.75rem 0 1rem;            /* same vertical rhythm */
  font-size: 0.9rem;                 /* same font size */
  line-height: 1.45;                 /* same line height */
  color: #333;
}

.auth-variant-text::before {
  content: "ⓘ";
  display: inline-block;
  margin-right: 0.45rem;             /* same icon spacing */
  font-size: 0.95rem;                /* same icon size */
  color: #666;                       /* same icon tone */
  vertical-align: baseline;
}


/* =====================================================
   PRODUCTION CROSSOVER BADGE
   DO NOT TOUCH — CSS ONLY
   ===================================================== */

.auth-badge {
  margin: 0.75rem 0 1rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.auth-badge strong {
  font-weight: 600;
}

.auth-badge-crossover {
  background: #fcf8e3;
  border: 1px solid #e2e2e2;
  border-left: 4px solid #8a6d3b;
  color: #333;
}

.auth-badge-crossover::before {
  content: "ⓘ";
  display: inline-block;
  margin-right: 0.45rem;
  font-size: 0.95rem;
  color: #666;
  vertical-align: baseline;
}

/* =====================================================
   RATE LIMIT NOTICE
   ALIGNED WITH AUTH VARIANT / BADGE SYSTEM
   ===================================================== */

.auth-rate-limit {
  background: #f6f7f8;               /* same background tone */
  border: 1px solid #e2e2e2;         /* same border */
  border-left: 4px solid #b94a48;    /* RED left rule only */
  padding: 0.65rem 0.85rem;          /* same padding */
  margin: 0.75rem 0 1rem;            /* same vertical rhythm */
  font-size: 0.9rem;                 /* same font size */
  line-height: 1.45;                 /* same line height */
  color: #333;
}

.auth-rate-limit strong {
  font-weight: 600;
}

.auth-rate-limit::before {
  content: "ⓘ";
  display: inline-block;
  margin-right: 0.45rem;             /* same icon spacing */
  font-size: 0.95rem;                /* same icon size */
  color: #666;                       /* same icon tone */
  vertical-align: baseline;
}

/* =====================================================
   MOBILE SAFETY OVERRIDE — AUTH ROWS
   Desktop remains untouched
   ===================================================== */

@media (max-width: 640px) {

  .auth-row {
    grid-template-columns: 1fr;
    column-gap: 0;
    padding: 6px 0;
  }

  .auth-row > strong {
    white-space: normal;
    margin-bottom: 2px;
    font-size: 0.85rem;
    color: #666;
  }

  .auth-row > .auth-value {
    font-size: 0.95rem;
    word-break: break-word;
  }

}
/* =========================================
   VIN Production Overview – Scooters Pilot
   ========================================= */

.vin-scooters {
  margin-top: 2rem;
}

.vin-scooters .section-subtitle {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #666;
}

/* Table base */
.vin-scooters table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

/* Header */
.vin-scooters thead th {
  background: #f6f6f6;
  border-bottom: 2px solid #ddd;
  padding: 8px 10px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

/* Rows */
.vin-scooters tbody tr {
  border-bottom: 1px solid #e5e5e5;
}

.vin-scooters tbody tr:hover {
  background: #fafafa;
}

/* Cells */
.vin-scooters td {
  padding: 6px 10px;
  vertical-align: top;
}

/* Model emphasis */
.vin-scooters td:first-child {
  font-weight: 600;
}

/* Prefix block */
.vin-scooters td:nth-child(6) {
  font-size: 0.85rem;
  color: #444;
}

/* Notes/icons */
.vin-scooters td:last-child {
  text-align: center;
  white-space: nowrap;
  font-size: 1rem;
}
