/* Beacon Verify module styles. Uses only the design tokens from styles.css.
   Navy #0B2A50 / red #C6202E / pale #DCE7F2 / cream #FAF8F3 system. */

/* role picker */
.ver-rolegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-top: 0.4rem; }
.ver-rolecard {
  background: var(--white); border: 1.5px solid rgba(11, 42, 80, 0.08);
  border-radius: var(--radius); padding: 0.95rem 0.9rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem;
  text-align: left; box-shadow: var(--shadow-soft); font-family: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.ver-rolecard:hover { transform: translateY(-2px); }
.ver-rolecard[aria-pressed="true"] { border-color: var(--navy); background: var(--pale); }
.ver-rolecard .ic {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.ver-rolecard .ic svg { width: 19px; height: 19px; }
.ver-rolecard[aria-pressed="true"] .ic { background: var(--red); }
.ver-rolecard b { font-size: 0.92rem; font-weight: 700; color: var(--navy); }
.ver-rolecard p { font-size: 0.73rem; color: var(--slate); line-height: 1.4; margin: 0; }

/* approval level badges (demonstration labels) */
.ver-lv {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 100px; padding: 0.2rem 0.6rem; white-space: nowrap;
}
.ver-lv.ready { background: var(--pale); color: var(--navy); }
.ver-lv.verified { background: rgba(30, 125, 79, 0.12); color: var(--ok); }
.ver-lv.government { background: var(--navy); color: var(--white); }

/* provider chip on the scan screen */
.ver-provchip {
  display: flex; align-items: center; gap: 0.85rem;
  background: var(--white); border: 1px solid rgba(11, 42, 80, 0.05);
  border-radius: var(--radius); padding: 0.85rem 1rem;
  box-shadow: var(--shadow-soft); margin-top: 0.9rem;
}
.ver-provchip .ic {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.ver-provchip .ic svg { width: 20px; height: 20px; }
.ver-provchip b { font-size: 0.92rem; display: block; }

/* camera scanner */
.ver-cam {
  position: relative; border-radius: 14px; overflow: hidden;
  background: var(--navy-deep); margin-top: 0.8rem;
}
.ver-cam video { width: 100%; max-height: 320px; object-fit: cover; display: block; }
.ver-cam .ver-frame {
  position: absolute; inset: 14%;
  border: 2.5px solid rgba(255, 255, 255, 0.85); border-radius: 16px;
  box-shadow: 0 0 0 999px rgba(8, 30, 58, 0.35);
  pointer-events: none;
}

/* sample failure code buttons */
.ver-samples { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.8rem; }

/* result hero */
.ver-hero {
  border-radius: var(--radius); padding: 1.7rem 1.2rem 1.5rem;
  text-align: center; color: var(--white);
  margin-top: 1rem; box-shadow: var(--shadow);
}
.ver-hero.ok { background: linear-gradient(135deg, #1E7D4F 0%, #15603B 100%); }
.ver-hero.warn { background: linear-gradient(135deg, #B96A00 0%, #8F5200 100%); }
.ver-hero.bad { background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%); }
.ver-hero .ver-hicon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 0.8rem;
  background: rgba(255, 255, 255, 0.16); border: 2.5px solid rgba(255, 255, 255, 0.7);
  display: flex; align-items: center; justify-content: center; color: var(--white);
}
.ver-hero .ver-hicon svg { width: 30px; height: 30px; }
.ver-hero b { display: block; font-size: 1.32rem; font-weight: 800; letter-spacing: -0.01em; }
.ver-hero p { font-size: 0.86rem; opacity: 0.92; margin-top: 0.4rem; line-height: 1.5; }

/* minimal-data disclosure rows */
.ver-fields { margin-top: 0.5rem; }
.ver-field {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line);
}
.ver-field:last-child { border-bottom: 0; }
.ver-field .k {
  font-size: 0.7rem; font-weight: 700; color: var(--slate);
  text-transform: uppercase; letter-spacing: 0.08em; flex: 0 0 auto;
}
.ver-field .v { font-size: 0.92rem; font-weight: 700; color: var(--navy); text-align: right; }
.ver-demochip {
  display: inline-block; vertical-align: middle; margin-left: 0.4rem;
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--warn); background: rgba(185, 106, 0, 0.12);
  border-radius: 100px; padding: 0.14rem 0.45rem;
}

/* audit history */
.ver-audit-row {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--white); border: 1px solid rgba(11, 42, 80, 0.05);
  border-radius: 14px; padding: 0.75rem 0.9rem; margin-top: 0.55rem;
  box-shadow: var(--shadow-soft);
}
.ver-audit-row b { font-size: 0.84rem; display: block; }
.ver-audit-row small { color: var(--slate); font-size: 0.72rem; display: block; margin-top: 0.1rem; }
.ver-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.ver-dot.ok { background: var(--ok); }
.ver-dot.warn { background: var(--warn); }
.ver-dot.bad { background: var(--red); }

@media (max-width: 370px) {
  .ver-rolegrid, .ver-samples { grid-template-columns: 1fr; }
}
