:root {
  --bg: #ffffff;
  --ink: #163d7a;      /* deep blue */
  --ink2: #244e97;
  --border: rgba(22, 61, 122, 0.85);
  --shadow: 0 10px 30px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

/* FULL viewport centering (homepage default) */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;      /* keep homepage behavior */
  justify-content: center;  /* keep homepage behavior */
  padding: 24px;
}

/* Registry-only: top-aligned but still centered horizontally */
.registry-layout {
  align-items: flex-start; /* top-align vertically */
  padding-top: 40px;
}

.hero-inner {
  width: 100%;
  max-width: 980px;
  display: flex;
  flex-direction: column;  /* stack logo ABOVE content */
  align-items: center;     /* center children horizontally */
  gap: 18px;
}

/* Logo */
.logo-wrap {
  display: grid;
  place-items: center;
}

.logo {
  width: min(520px, 92vw);
  height: auto;
  display: block;
}

/* Form (homepage) */
.bn-form {
  width: 100%;
  display: flex;
  flex-direction: column;  /* input ABOVE buttons */
  align-items: center;
  gap: 14px;
}

.bn-input {
  width: min(860px, 95vw); /* big like Google */
  height: 64px;
  padding: 0 26px;
  font-size: 20px;
  color: var(--ink);

  border: 2px solid var(--border);
  border-radius: 999px;    /* full pill */
  background: #fff;
  outline: none;
}

.bn-input:focus {
  border-color: var(--ink2);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Buttons row */
.bn-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Image buttons */
.img-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.img-btn img {
  height: 34px;       /* desktop size */
  width: auto;
  display: block;
}

/* Screen-reader-only label */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =========================
   Registry page styling
   ========================= */

.registry-card {
  width: min(860px, 95vw);
  border: 5px solid var(--border);
  border-radius: 28px;
  padding: 18px 22px;
}

.registry-list {
  margin: 0;
  padding: 0;
  list-style: none; /* we will show our own numbers */
}

.registry-item {
  display: grid;
  grid-template-columns: 72px 1fr; /* number column + name column */
  gap: 14px;
  align-items: baseline;
  padding: 6px 0;
  color: var(--ink);
}

.registry-num {
  text-align: right;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.2px;
}

.registry-name {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.2px;
  word-break: break-word;
}

.registry-empty {
  color: var(--ink);
  font-weight: 700;
  padding: 10px 0;
}

/* =========================
   Mobile tweaks
   ========================= */

@media (max-width: 480px) {
  .hero { padding: 18px 14px; }

  .registry-layout { padding-top: 22px; }

  .bn-input {
    height: 52px;
    font-size: 18px;
  }

  .img-btn img {
    height: 32px;
  }

  .bn-actions {
    gap: 14px;
  }

  .registry-card {
    border-width: 4px;
    border-radius: 22px;
    padding: 14px 16px;
  }

  .registry-item {
    grid-template-columns: 56px 1fr;
    gap: 12px;
  }

  .registry-num,
  .registry-name {
    font-size: 18px;
  }
}
