/* JuriScan page-specific styles — shared tokens/layout/components in sibling files */

/* ── Header brand sizing ──
   The JuriScan mark (icon + wordmark) is a chunkier aspect ratio than
   LexLingo's, so size it down here to keep the brand block (logo + tag)
   inside the 66px header with breathing room. Mirrors LexLingo's fit. */
.brand-logo { width: 134px; }
@media (min-width: 1400px) { .brand-logo { width: 156px; } }

/* ── Gate overlay ── */
.gate {
  display: grid;
  place-items: center;
  height: 100vh;
  color: var(--muted);
  font-size: 15px;
}
.gate[hidden] {
  display: none;
}

/* ── Single-column main (override layout.css grid) ── */
main {
  display: block;
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── Hero ── */
.hero {
  margin-bottom: 28px;
}
.hero h1 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: .01em;
}
.hero p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.65;
}

/* ── Upload card ── */
.upload-card {
  padding: 20px;
}
.upload-card .drop {
  margin-bottom: 16px;
}
.upload-card button[type="submit"] {
  width: 100%;
  justify-content: center;
}

/* ── Status message ── */
.status-msg {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: rgba(100,140,200,0.08);
  border: 1px solid rgba(100,140,200,0.18);
  color: #a8c8e8;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.status-msg.error {
  background: var(--bad-bg);
  border-color: var(--bad-border);
  color: var(--bad);
}

/* ── Result card ── */
.result-card {
  margin-top: 16px;
  background: var(--panel);
  border: 1px solid var(--ok-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.result-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
}
.result-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ok);
}
.result-header h2 {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 400;
}
.result-meta {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* ── Download tiles ── */
.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  padding: 16px 20px;
}
.downloads a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 16px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: border-color .15s, background .15s, color .15s;
}
.downloads a:hover {
  border-color: var(--gold-border);
  background: var(--gold-light);
  color: var(--gold);
}
.downloads a small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
}
.downloads a:hover small { color: var(--ink-2); }
