/* Company licence lookup — homepage only.
 *
 * Loaded by index.html alone. The status badges deliberately reuse .dir-flag
 * from style.css so the homepage and the directory cannot drift apart on the
 * one thing that has to read identically in both places.
 */

.lk {
  margin-top: 18px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lk__label {
  display: block;
  font-weight: 800;
  color: var(--navy);
  font-size: 15px;
  margin-bottom: 2px;
}

.lk__hint {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

.lk__row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.lk__row input {
  flex: 1;
  min-width: 0;                 /* lets the flex item shrink below its content */
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.lk__row input:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 106, 201, .15);
}

.lk__row button {
  flex: 0 0 auto;
  font: inherit;
  font-weight: 800;
  font-size: 15px;
  padding: 12px 18px;
  color: #fff;
  background: var(--navy);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}

.lk__row button:hover { background: var(--blue); }

.lk__note {
  margin: 10px 2px 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  min-height: 1.5em;            /* reserve the line so results do not jump */
}

.lk__results {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.lk-item + .lk-item { border-top: 1px solid var(--line); }

.lk-hit {
  display: block;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  background: var(--bg);
}

.lk-hit:hover,
.lk-item.is-active .lk-hit { background: var(--card); }

.lk-hit__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.lk-hit__name {
  font-weight: 800;
  color: var(--navy);
  font-size: 15px;
}

.lk-hit__meta,
.lk-hit__dates {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.lk-hit__dates .is-bad { color: #b42318; font-weight: 700; }
.lk-hit__dates .is-warn { color: #b54708; font-weight: 700; }

.lk__foot {
  margin: 12px 2px 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}

.lk__foot a { color: var(--accent); }

@media (max-width: 520px) {
  .lk { padding: 15px; }
  .lk__row { flex-wrap: wrap; }
  .lk__row input,
  .lk__row button { flex: 1 1 100%; }
}
