/* ============================================================
   site.css — bestfreeaisonggenerator.com extensions on top of template 10
   (aurum-list). style.css stays verbatim; this file only adds
   markdown content styling, the register facts block, the FAQ
   block, a mobile nav row, and one contrast fix for the footer.
   Tokens come from style.css (--black, --grey, --gold, ...).
   ============================================================ */

/* Footer disclosure: template value #555 fails 4.5:1 on black; lift to grey-dim (~5.7:1). */
.related-note { color: var(--grey-dim); }

/* Mobile nav: template hides .topnav under 720px; show it as a wrapped row instead. */
@media (max-width: 720px) {
  .topbar-inner { flex-wrap: wrap; gap: 12px; padding: 16px 0; }
  .topnav { display: flex; flex-wrap: wrap; gap: 8px 13px; font-size: 0.6rem; letter-spacing: 0.13em; }
}
@media (max-width: 380px) {
  .brand { letter-spacing: 0.3em; }
  .topnav { gap: 7px 10px; letter-spacing: 0.1em; }
}

/* Template turns on automatic hyphenation for prose; it breaks words like "formu-la". Keep words whole. */
.prose { hyphens: manual; }

/* "No. 1" must stay on one line in the narrow mobile rank column */
@media (max-width: 860px) {
  .reg-entry { grid-template-columns: 92px 1fr; }
  .r-pos { white-space: nowrap; font-size: 1.7rem; }
}

/* Register facts block under each entry */
.r-facts { margin-top: 16px; display: grid; gap: 6px 22px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.r-facts > div { display: grid; grid-template-columns: 112px 1fr; gap: 10px; align-items: baseline; }
.r-facts dt { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--grey-dim); }
.r-facts dd { color: var(--grey); font-size: 0.88rem; font-weight: 300; }
@media (max-width: 480px) { .r-facts > div { grid-template-columns: 1fr; gap: 2px; } }

/* Table cells that link */
.compare-table td a, .prose td a { color: var(--white); border-bottom: 1px solid var(--gold-dim); }
.compare-table td a:hover, .prose td a:hover { color: var(--gold); }
.compare-table td, .prose td { color: #d4d4d4; font-weight: 300; vertical-align: top; }

/* Markdown tables inside posts take the same look as .compare-table */
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 24px 0;
  font-variant-numeric: tabular-nums;
}
.prose th,
.prose td {
  border-bottom: 1px solid var(--hairline);
  padding: 13px 14px;
  text-align: left;
}
.prose th {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.prose td:first-child { color: var(--grey); }
@media (max-width: 640px) {
  .prose table,
  .compare-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .prose table thead,
  .prose table tbody,
  .compare-table thead,
  .compare-table tbody { display: table; width: 100%; min-width: 520px; }
}

/* Verdict blockquote in posts: same box as .edict */
.prose blockquote {
  border: 1px solid var(--hairline);
  padding: 26px 30px;
  margin: 30px 0;
  position: relative;
  color: var(--white);
}
.prose blockquote::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 30px;
  right: 30px;
  height: 1px;
  background: var(--gold-dim);
}
.prose blockquote p { margin-bottom: 8px; color: #e5e5e5; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote strong { color: var(--gold); font-weight: 500; }

/* Lists and emphasis in posts */
.prose ul,
.prose ol { margin: 0 0 18px 22px; color: #d4d4d4; font-weight: 300; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--gold-dim); }
.prose strong { color: var(--white); font-weight: 500; }
.prose h3 { font-size: 1.3rem; margin: 30px 0 10px; }
.prose code { font-family: ui-monospace, Menlo, monospace; font-size: 0.86em; color: var(--gold); }

/* FAQ block (home and posts) */
.faq-block { margin-top: 40px; }
.faq-item { margin-bottom: 22px; }
.faq-item h3 { font-size: 1.2rem; margin-bottom: 6px; color: var(--white); }
.faq-item p { color: #d4d4d4; font-weight: 300; margin-bottom: 0; }

/* Declaration boxes hold several paragraphs */
.edict p { color: #d4d4d4; font-weight: 300; margin-bottom: 12px; }
.edict p:last-child { margin-bottom: 0; }
.edict strong { color: var(--white); font-weight: 500; }

/* Disambiguation box sits right under the hero rule */
.disambig { padding-top: 40px; padding-bottom: 0; }

/* Hero meta line wraps politely on small screens */
.hero-meta { line-height: 1.8; }
@media (max-width: 480px) { .hero-meta { letter-spacing: 0.18em; font-size: 0.64rem; } }

/* Register: keep long type labels from crowding the score column */
.r-body h3 .dist { display: inline-block; margin-top: 6px; margin-left: 0; }
@media (min-width: 861px) { .r-body h3 .dist { margin-left: 14px; margin-top: 0; } }
