:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #172033;
  background: #f4f8fb;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }

.hidden { display: none !important; }
.center { text-align: center; }
.muted { color: #64748b; }
.top-gap { margin-top: 1rem; }

.site-shell {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 12%, rgba(13, 96, 169, .11), transparent 28rem),
    radial-gradient(circle at 90% 84%, rgba(213, 34, 43, .08), transparent 24rem),
    #f5f9fc;
}

.site-shell::before,
.site-shell::after {
  position: absolute;
  z-index: -1;
  content: "";
  border-radius: 999px;
  transform: rotate(-12deg);
}

.site-shell::before {
  top: 7rem;
  right: -14rem;
  width: 34rem;
  height: 8rem;
  border: 1.2rem solid rgba(11, 94, 168, .08);
}

.site-shell::after {
  bottom: 5rem;
  left: -17rem;
  width: 38rem;
  height: 8rem;
  border: .8rem solid rgba(213, 34, 43, .06);
}

.brand-ribbon {
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg, #d5222b 0 33%, #fff 33% 35%, #0b5ea8 35% 100%);
}

.site-header {
  display: flex;
  width: min(100%, 64rem);
  align-items: center;
  gap: .8rem;
  margin: 0 auto;
  padding: 1.25rem;
}

.brand-logo { width: 3.75rem; height: 3.75rem; object-fit: contain; }
.site-label { margin: 0; color: #64748b; font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.organization-name { margin: .3rem 0 0; color: #082f60; font-size: .95rem; font-weight: 800; line-height: 1.25; }
.organization-short { margin: .15rem 0 0; color: #64748b; font-size: .75rem; }

.content-shell {
  display: flex;
  width: min(100%, 64rem);
  flex: 1;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0 1rem 2.5rem;
}

.card {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 24px 70px rgba(8, 47, 96, .12), 0 3px 12px rgba(8, 47, 96, .05);
  backdrop-filter: blur(16px);
}

.narrow-card { max-width: 34rem; padding: 1.5rem; }
.member-card { max-width: 42rem; }

.spinner {
  width: 2rem;
  height: 2rem;
  margin: 0 auto;
  border: 4px solid #e2e8f0;
  border-top-color: #0b5ea8;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.shield-mark {
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  color: #0b5ea8;
  background: #eaf4fb;
  font-size: 1.7rem;
  font-weight: 900;
}

.eyebrow { margin: 0; color: #0b5ea8; font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.search-title { margin: .55rem 0 0; color: #082f60; font-size: clamp(1.55rem, 5vw, 2rem); line-height: 1.15; text-align: center; }
.intro-copy { max-width: 28rem; margin: .8rem auto 0; font-size: .9rem; line-height: 1.6; }
.verification-form { margin-top: 1.6rem; }
.verification-form label { display: block; margin-bottom: .5rem; color: #334155; font-size: .88rem; font-weight: 700; }
.form-row { display: flex; gap: .75rem; }
.form-row input { min-width: 0; flex: 1; height: 3rem; border: 1px solid #cbd5e1; border-radius: .8rem; padding: 0 1rem; color: #0f172a; text-transform: uppercase; outline: none; }
.form-row input:focus { border-color: #0b5ea8; box-shadow: 0 0 0 3px rgba(11, 94, 168, .16); }
.form-row button { height: 3rem; border: 0; border-radius: .8rem; padding: 0 1.2rem; color: #fff; background: #0b5ea8; font-weight: 700; cursor: pointer; }
.form-row button:hover { background: #084b86; }
.error-message { margin: .8rem 0 0; border-radius: .8rem; padding: .8rem 1rem; color: #b42318; background: #fff1f1; font-size: .84rem; line-height: 1.5; }

.verified-banner { display: flex; align-items: center; gap: .85rem; padding: 1.25rem 1.5rem; color: #fff; background: linear-gradient(120deg, #087844, #07975a); }
.verified-icon { display: grid; width: 2rem; height: 2rem; flex: 0 0 auto; place-items: center; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; font-weight: 900; }
.verified-banner p { margin: 0; color: #c9f5dd; font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.verified-banner h1 { margin: .2rem 0 0; font-size: clamp(1.15rem, 4vw, 1.5rem); }
.member-content { padding: 1.25rem; }
.member-heading { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; text-align: center; }
.member-photo-wrap { width: 8.5rem; height: 10.5rem; overflow: hidden; flex: 0 0 auto; border: 5px solid #fff; border-radius: 1.25rem; background: #e5e7eb; box-shadow: 0 0 0 1px #cbd5e1, 0 12px 24px rgba(8, 47, 96, .12); }
.member-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.member-identity { min-width: 0; }
.status-pill { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid #a7e3c3; border-radius: 999px; padding: .4rem .7rem; color: #067647; background: #ecfdf3; font-size: .7rem; font-weight: 800; }
.status-pill span { width: .45rem; height: .45rem; border-radius: 50%; background: #12b76a; }
.member-identity h2 { margin: 1rem 0 0; color: #082f60; font-size: clamp(1.5rem, 6vw, 2rem); line-height: 1.15; letter-spacing: -.02em; }
.member-identity p { margin: .5rem 0 0; color: #64748b; font-size: .9rem; font-weight: 600; }
.member-details { display: grid; gap: .75rem; margin: 1.75rem 0 0; }
.detail-card { min-height: 5rem; border: 1px solid #e2e8f0; border-radius: 1rem; padding: 1rem; background: #fff; }
.detail-card dt { color: #64748b; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.detail-card dd { margin: .4rem 0 0; color: #1e293b; font-size: .9rem; font-weight: 650; }
.detail-card .member-number { font-weight: 800; letter-spacing: .04em; }
.official-note { display: flex; gap: .75rem; margin-top: 1.5rem; border: 1px solid #cfe1ef; border-radius: 1rem; padding: 1rem; background: #f3f8fc; }
.note-icon { display: grid; width: 1.35rem; height: 1.35rem; flex: 0 0 auto; place-items: center; border: 2px solid #0b5ea8; border-radius: 50%; color: #0b5ea8; font-size: .7rem; font-weight: 900; }
.official-note p { margin: 0; color: #526173; font-size: .78rem; line-height: 1.6; }
.record-footer { margin-top: 1.4rem; border-top: 1px solid #e2e8f0; padding-top: 1.1rem; color: #64748b; font-size: .72rem; line-height: 1.55; text-align: center; }
.record-footer p { margin: .15rem 0; }
footer { padding: 0 1.25rem 1.5rem; color: #64748b; font-size: .7rem; line-height: 1.5; text-align: center; }

@media (max-width: 520px) {
  .form-row { flex-direction: column; }
  .form-row button { width: 100%; }
}

@media (min-width: 640px) {
  .site-header { padding: 1.25rem 2rem; }
  .content-shell { padding: 0 2rem 3.5rem; }
  .narrow-card { padding: 2rem; }
  .verified-banner { padding: 1.4rem 2rem; }
  .member-content { padding: 2rem; }
  .member-heading { flex-direction: row; align-items: flex-start; text-align: left; }
  .member-identity { padding-top: .3rem; }
  .member-details { grid-template-columns: 1fr 1fr; }
  .detail-wide { grid-column: span 2; }
  .record-footer { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
