/* ============================================================================
   GapSync — public functional pages (portal, verify, notices, report).
   A premium hero header (Edo-photo band under an emerald scrim) with the
   functional card lifted over it, sharing the landing's .lp-nav / .lp-footer
   chrome and the app.css/premium.css tokens. Loaded after landing.css.
   ========================================================================== */

/* ---- Hero header band ---- */
.pub-hero { position: relative; overflow: hidden; isolation: isolate; background: #06231b; color: #eaf5ef; }
.pub-hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 52%; display: block; }
.pub-hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(4, 24, 17, 0.93) 0%, rgba(6, 38, 24, 0.78) 40%, rgba(8, 50, 32, 0.5) 72%, rgba(10, 58, 37, 0.36) 100%),
    linear-gradient(to top, rgba(4, 20, 14, 0.5) 0%, rgba(4, 20, 14, 0.04) 38%, transparent 58%);
}
.pub-hero__inner { max-width: var(--lp-max, 1200px); margin: 0 auto; padding: 52px 24px 96px; position: relative; }
.pub-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin: 0;
  font-family: var(--mono, 'DM Mono', ui-monospace, monospace);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #f2ca63;
}
.pub-hero__eyebrow::before { content: ''; height: 7px; width: 7px; border-radius: 50%; background: #46d38c; box-shadow: 0 0 0 4px rgba(70, 211, 140, 0.22); }
.pub-hero h1 {
  font-family: var(--display, var(--sans)); font-weight: 800; letter-spacing: -0.01em;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.08; margin: 13px 0 0; color: #fff; max-width: 20ch;
}
.pub-hero__lead { margin: 15px 0 0; max-width: 64ch; line-height: 1.62; color: rgba(224, 240, 232, 0.85); font-size: 1.03rem; }

/* ---- Content lifts up over the hero for a layered, premium frame ---- */
.pub-wrap { max-width: var(--lp-max, 1200px); margin: -62px auto 0; padding: 0 24px 76px; position: relative; z-index: 2; }
.pub-wrap > .card { box-shadow: 0 24px 60px rgba(6, 35, 27, 0.14); border: 1px solid var(--line); }

/* ---- Active nav pill in the public shell ---- */
.lp-nav__links a.is-active { background: var(--raise-hover); color: var(--ink); }

/* ============================================================================
   Public functional components. These classes are used only by the public
   templates (portal / verify / notices / report) and were never styled by the
   console stylesheets — defined here so the register table, status badges and
   result callouts render to the same premium standard as the rest of the site.
   ========================================================================== */

.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;
}

/* ---- Register / result tables ---- */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table thead th {
  text-align: left; padding: 11px 14px; white-space: nowrap;
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--emerald) 6%, transparent);
}
.data-table tbody th, .data-table tbody td {
  padding: 12px 14px; text-align: left; vertical-align: middle;
  color: var(--ink); border-bottom: 1px solid var(--line);
}
.data-table tbody th { font-weight: 700; }
.data-table tbody th a { color: var(--emerald-2); text-decoration: none; }
.data-table tbody th a:hover { text-decoration: underline; }
.data-table tbody tr:hover { background: var(--raise-hover); }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }

/* ---- Result / alert callouts (.badge is defined globally in app.css) ---- */
.callout {
  border: 1px solid var(--line); border-left-width: 4px; border-radius: 12px;
  padding: 14px 16px; line-height: 1.55; background: var(--bg-1); color: var(--ink);
}
.callout strong { font-weight: 700; }
.callout.ok   { border-left-color: var(--emerald-2); background: color-mix(in srgb, var(--emerald) 8%, var(--bg-1)); }
.callout.warn { border-left-color: var(--amber);     background: color-mix(in srgb, var(--amber) 10%, var(--bg-1)); }
.callout.crit { border-left-color: var(--red-2);     background: color-mix(in srgb, var(--red-2) 9%, var(--bg-1)); }

/* ---- Pagination (field-err / field-hint are defined globally in app.css) ---- */
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 22px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .pub-hero__inner { padding: 38px 20px 82px; }
  .pub-hero h1 { max-width: none; }
  .pub-wrap { margin-top: -56px; padding: 0 16px 56px; }
  /* Register table → stacked label/value cards (needs data-label on each cell). */
  .data-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; }
  .data-table tbody tr { border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; margin-bottom: 12px; background: var(--bg-1); }
  .data-table tbody th, .data-table tbody td { border: 0; border-bottom: 1px solid var(--line-soft, var(--line)); padding: 10px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: right; }
  .data-table tbody tr :last-child { border-bottom: 0; }
  .data-table tbody th[data-label]::before, .data-table tbody td[data-label]::before {
    content: attr(data-label); color: var(--muted); font-size: 11px; letter-spacing: 0.05em;
    text-transform: uppercase; font-weight: 700; text-align: left; flex-shrink: 0;
  }
}
