/* content.css — shared styles for the static info pages (about, guide,
   classifications, method, faq, contact, privacy). The app itself is styled by
   styles.css; this file only adds site navigation and long-form article type. */

/* ---------- Header nav (used on every page) ---------- */
.topbar .brand { text-decoration: none; color: inherit; }

.topbar-right {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  justify-content: flex-end;
}
.topbar-right a {
  color: var(--text-dim); font-size: 13px; text-decoration: none;
  white-space: nowrap;
}
.topbar-right a:hover { color: var(--text); }
.topbar-right a.current { color: var(--green); }
.account-status { display: flex; align-items: center; gap: 8px; }
.account-signed-in { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-dim); }
.account-error { font-size: 12px; color: #ff8f7a; max-width: 320px; }

/* A class that sets `display` beats the browser's own [hidden] rule, which is
   how the signed-out header ended up showing "Sign out". Keep the attribute
   authoritative wherever it's used to toggle something. */
[hidden] { display: none !important; }

/* ---------- Footer nav (used on every page) ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; }
.footer-nav {
  display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center;
  margin-bottom: 12px;
}
.footer-nav a { color: var(--text-dim); text-decoration: none; font-size: 13px; }
.footer-nav a:hover { color: var(--text); }
.footer-tag { max-width: 560px; margin: 0 auto; line-height: 1.5; }

/* ---------- Long-form article body ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 34px 22px 32px; }
.doc .back { display: inline-block; margin-bottom: 20px; color: var(--text-dim); text-decoration: none; font-size: 13px; }
.doc .back:hover { color: var(--text); }
.doc h1 { font-size: 27px; line-height: 1.2; margin-bottom: 6px; }
.doc .lede { color: var(--text-dim); font-size: 15.5px; line-height: 1.6; margin: 10px 0 6px; }
.doc .updated { color: var(--text-faint); font-size: 12.5px; margin-bottom: 26px; }
.doc h2 { font-size: 18px; margin: 34px 0 10px; padding-top: 6px; }
.doc h3 { font-size: 15px; margin: 22px 0 6px; color: var(--text); }
.doc p, .doc li { color: var(--text-dim); font-size: 14.5px; line-height: 1.68; }
.doc p { margin: 10px 0; }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0; }
.doc li { margin: 6px 0; }
.doc a { color: var(--green-hi); }
.doc strong { color: var(--text); }
.doc code {
  background: var(--panel-3); padding: 1px 5px; border-radius: 4px;
  font-size: 13px; color: var(--text);
}
.doc hr { border: 0; border-top: 1px solid var(--border); margin: 30px 0; }
.doc .note {
  border-left: 3px solid var(--green-hi); background: rgba(255,255,255,.035);
  padding: 12px 16px; border-radius: 0 7px 7px 0; margin: 18px 0;
}
.doc .note p:first-child { margin-top: 0; }
.doc .note p:last-child { margin-bottom: 0; }

/* Definition-style rows for the classification page */
.class-row {
  display: grid; grid-template-columns: 116px 1fr; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.class-row:last-child { border-bottom: 0; }
.class-badge { font-weight: 700; font-size: 14.5px; display: flex; align-items: baseline; gap: 6px; }
.class-badge .sym { font-size: 13px; color: var(--text-faint); font-weight: 400; }
.class-row .class-body { margin: 0; }
.class-row .class-body p { margin: 0 0 6px; }

/* FAQ */
.faq-q { font-weight: 700; color: var(--text); font-size: 15px; margin: 24px 0 4px; }
.faq-a { margin: 0; }

@media (max-width: 560px) {
  .topbar { flex-wrap: wrap; gap: 8px; }
  .topbar-right { justify-content: flex-start; gap: 12px; font-size: 12px; }
  .topbar-right a { font-size: 12px; }
  .class-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Profile pictures ---------- */
.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 28px; height: 28px; border-radius: 50%; overflow: hidden;
  background: var(--panel-2); border: 1px solid var(--border);
  color: var(--text-dim); font-weight: 700; line-height: 1; text-transform: uppercase;
  vertical-align: middle; margin-right: 8px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-img { background: none; }
.home-notify-text { display: flex; align-items: center; }
.user-status-row { display: flex; align-items: center; }
.results-head .avatar { margin-right: 12px; }

/* Merge dialog: what happens to the two reports that went in. */
.merge-cleanup {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 10px;
  font-size: 12.5px; color: var(--text-dim); cursor: pointer;
}
.merge-cleanup input { margin-top: 2px; }

/* ---------- Selecting reports to merge or delete ---------- */
.home-selection-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  /* Sits directly under the unreviewed-games list, so it needs its own top
     gap — the section title that used to provide one is below it now. */
  padding: 10px 14px; margin: 20px 0 14px;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius);
}
.home-selection-count { font-weight: 700; font-size: 13px; }
.home-selection-merge { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.home-merge-cleanup {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-dim); cursor: pointer; max-width: 460px;
}
.home-select { width: 16px; height: 16px; flex: none; margin-left: 10px; cursor: pointer; accent-color: var(--green); }
.home-report-row:has(.home-select:checked) { border-color: var(--green); }

/* Choice dialog when the account already has a report. */
.existing-report-choices { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.existing-report-choices .btn { display: block; width: 100%; text-align: left; padding: 10px 14px; }
.existing-report-choices .btn b { display: block; font-size: 13.5px; }
.existing-report-choices .btn small { display: block; margin-top: 2px; font-weight: 400; opacity: .75; white-space: normal; }
.home-storage-note { margin-top: 4px; opacity: .8; }
