/* hybridgrading.com cert lookup on the coming-soon site: ucollect's Grade
   Lookup (grading/grade_lookup, shared/_legacy_grading_certificate) laid out
   as it is there, drawn in the coming-soon site's own look. Type and colours
   come from hybrid_grading_coming_soon.css's :root tokens; the search is the
   landing page's red-ruled box, the record is a panel like the privacy
   policy's support box. */

.lookup,
.lookup * {
  box-sizing: border-box;
}

.lookup {
  flex: 1;
  width: 100%;
  max-width: 1172px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) clamp(16px, 4.5vw, 36px);
}

.lookup-title {
  margin: 0;
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(36px, 9vw, 66px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--text);
}

/* the search: the magnifying glass is the submit button, inside the field's left edge */
.lookup form {
  margin-top: clamp(20px, 3vw, 32px);
}

.lookup-search {
  position: relative;
  max-width: 370px;
}

.lookup-input {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 44px;
  border: 3px solid var(--red);
  border-radius: 0;
  background: #000;
  color: var(--text);
  caret-color: var(--red-text);
  font: 600 16px/1 var(--lab);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  -webkit-appearance: none;
  appearance: none;
}

.lookup-input::placeholder {
  color: var(--text);
  opacity: 1;
}

.lookup-input:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.lookup-go {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  cursor: pointer;
}

/* the icon is drawn navy for ucollect's white field; it is white on the black one */
.lookup-go img {
  display: block;
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.lookup-go:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -5px;
}

.lookup-rule {
  margin: 40px 0 0;
  border: 0;
  border-top: 1px solid var(--line-2);
}

.lookup-message {
  margin: 0;
  padding: 64px 0;
  text-align: center;
  font-size: 18px;
  color: var(--text);
  overflow-wrap: anywhere;
}

/* the record */
.cert-card {
  max-width: 48rem;
  margin-top: 40px;
  /* narrower on small phones, so "Card Grade:" keeps to one line in its half */
  padding: clamp(16px, 5vw, 24px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 12px;
  background: var(--ink-2);
  color: var(--text);
  font-family: var(--sans);
  overflow-wrap: anywhere;
}

.cert-card-label {
  margin: 0 0 8px;
  font-family: var(--lab);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-text);
}

.cert-card-name {
  margin: 0 0 6px;
  font-family: var(--disp);
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.cert-card-line {
  margin: 0;
  color: var(--text-2);
}

.cert-card dt {
  font-family: var(--lab);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.cert-card dd {
  margin: 0;
  font-family: var(--disp);
  font-weight: 800;
  color: var(--text);
}

.cert-card-grades {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 8px;
}

.cert-card-grades > div {
  padding: 14px 12px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  text-align: center;
}

.cert-card-grades dd {
  margin-top: 6px;
  font-size: 56px;
  line-height: 1;
}

.cert-card-subgrades {
  margin: 0;
}

.cert-card-subgrades > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
}

.cert-card-subgrades dd {
  font-size: 28px;
  line-height: 1;
}

.cert-card-date {
  margin: 16px 0 0;
  font-family: var(--lab);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 640px) {
  .cert-card {
    padding: 32px;
  }
}
