/* Generic Check - styles */

:root {
  --bg: #fafaf8;
  --ink: #1c1c1e;
  --muted: #5c5c63;
  --line: #d8d8d4;
  --card: #ffffff;
  --accent: #0b5fff;
  --ok: #137333;
  --none: #c5221f;
  --warn: #9a6700;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

.masthead {
  margin-bottom: 4px;
}

h1 {
  font-size: 30px;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

#tagline {
  color: var(--muted);
  font-size: 17px;
  margin: 8px 0 20px;
}

/* Search area (sticky on wide screens) */
#searchForm {
  position: sticky;
  top: 0;
  background: var(--bg);
  padding: 10px 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
}

#searchLabel {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

#q {
  width: 100%;
  font-size: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
}

#q:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.form-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

button {
  font: inherit;
  cursor: pointer;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  padding: 10px 18px;
}

button:hover {
  border-color: var(--accent);
}

#searchBtn {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 700;
  flex: 1;
}

#searchBtn:hover {
  filter: brightness(1.08);
}

#langEn,
#langEs {
  min-width: 48px;
  font-weight: 600;
  color: var(--muted);
}

#statsLine {
  color: var(--muted);
  font-size: 14px;
  min-height: 1em;
  margin: 12px 0;
}

/* Result card */
section.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 24px 28px;
  margin: 20px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

#vBrand {
  font-size: 26px;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

#vMolecule {
  color: var(--muted);
  margin: 0 0 14px;
}

#vStatus {
  font-size: 30px;
  font-weight: 800;
  margin: 8px 0 12px;
  letter-spacing: -0.01em;
}

.status.ok {
  color: var(--ok);
}

.status.none {
  color: var(--none);
}

.status.warn {
  color: var(--warn);
}

#vCount,
#vPrice {
  margin: 6px 0;
}

#vAsk {
  border-top: 1px dashed var(--line);
  margin-top: 16px;
  padding-top: 14px;
}

#askHeading {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 6px;
}

#vAskSentence {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

#vActions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* Not found */
#notFound {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px 0;
  background: var(--card);
}

#nfQuery {
  font-weight: 700;
}

#nfList {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#nfList li {
  display: inline-flex;
}

#nfList button {
  padding: 6px 14px;
  font-size: 15px;
}

#disclaimer {
  color: var(--muted);
  font-size: 14px;
  margin: 24px 0;
}

/* Methodology */
#methodSection {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

#methodHeading {
  font-size: 18px;
  margin: 0 0 8px;
}

#methodSection p {
  color: var(--muted);
  font-size: 14px;
  margin: 6px 0;
}

#footer {
  margin-top: 32px;
}

#footerLine {
  color: var(--muted);
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

/* Responsive */
@media (max-width: 600px) {
  .wrap {
    padding: 16px 14px 48px;
  }

  h1 {
    font-size: 25px;
  }

  #vBrand {
    font-size: 22px;
  }

  #vStatus {
    font-size: 28px;
  }

  section.card {
    padding: 18px 16px;
  }

  #vActions {
    flex-direction: column;
  }

  #vActions button {
    width: 100%;
  }

  #searchForm {
    position: static;
  }
}

/* Print: only the app title, the verdict card, and the disclaimer */
@media print {
  body {
    background: #ffffff;
    color: #000000;
    font-size: 12pt;
  }

  .wrap {
    max-width: 100%;
    padding: 0;
  }

  main > *:not(.masthead):not(#verdict):not(#disclaimer) {
    display: none !important;
  }

  .masthead {
    margin-bottom: 12px;
  }

  h1 {
    font-size: 16pt;
  }

  section.card {
    border: 1px solid #000000;
    box-shadow: none;
    padding: 16px;
  }

  #vActions {
    display: none !important;
  }

  #vStatus {
    font-size: 30pt;
  }

  #disclaimer {
    font-size: 9pt;
    color: #333333;
  }
}
