/* Shared styles for legal Q&A, the attorney directory, and the Avvo alternative page. */
:root {
  --ink: #0a0f1a;
  --card: #141c2b;
  --edge: #243044;
  --muted: #6b7a90;
  --body: #94a3b8;
  --light: #e2e8f0;
  --white: #f8fafc;
  --gold: #d4a853;
  --gold-dim: rgba(212, 168, 83, 0.12);
  --red: #fca5a5;
  --green: #86efac;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  background: var(--ink);
  color: var(--body);
  line-height: 1.6;
}
h1, h2, h3, h4 {
  font-family: "Space Grotesk", sans-serif;
  color: var(--white);
  line-height: 1.2;
  margin: 0 0 12px;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 14px; }
.qa-wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.qa-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 15, 26, 0.94);
  border-bottom: 1px solid var(--edge);
  backdrop-filter: blur(12px);
}
.qa-nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.qa-logo { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--white); text-decoration: none; }
.qa-logo span { color: var(--gold); }
.qa-links { display: flex; align-items: center; gap: 18px; }
.qa-links a { color: var(--muted); font-size: 0.92rem; text-decoration: none; }
.qa-links a:hover { color: var(--white); }
.qa-btn, button.qa-btn, .qa-btn-ghost {
  display: inline-block;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}
.qa-btn { background: var(--gold); color: var(--ink) !important; }
.qa-btn:hover { text-decoration: none; filter: brightness(1.05); }
.qa-btn-ghost { background: transparent; color: var(--white) !important; border: 1px solid var(--edge); }
.qa-menu { display: none; background: none; border: 0; width: 42px; height: 42px; padding: 10px; }
.qa-menu span { display: block; height: 2px; background: var(--white); margin: 5px 0; }
.qa-main { padding: 36px 0 72px; }
.qa-kicker { color: var(--gold); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; margin-bottom: 8px; }
.qa-flag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 168, 83, 0.45);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.qa-byline-note { color: var(--light); font-size: 0.92rem; }
.qa-lead { font-size: 1.05rem; max-width: 680px; }
.qa-note, .qa-disclaimer {
  background: var(--gold-dim);
  border: 1px solid rgba(212, 168, 83, 0.35);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--light);
  margin: 18px 0 22px;
}
.qa-disclaimer strong { color: var(--white); }
.qa-card, .qa-q, .qa-person {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 18px 18px 16px;
}
.qa-list, .qa-grid { display: grid; gap: 14px; }
.qa-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.qa-q h2, .qa-person h2 { font-size: 1.15rem; }
.qa-q h2 a, .qa-person h2 a { color: var(--white); text-decoration: none; }
.qa-q h2 a:hover, .qa-person h2 a:hover { color: var(--gold); }
.qa-meta { color: var(--muted); font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.qa-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.qa-filters a, .qa-chip {
  border: 1px solid var(--edge);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--body);
  font-size: 0.85rem;
  text-decoration: none;
}
.qa-filters a.on, .qa-chip.on { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
.qa-form { display: grid; gap: 14px; max-width: 720px; }
label { display: block; color: var(--light); font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  background: #0d1422;
  color: var(--white);
  border: 1px solid var(--edge);
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
}
textarea { min-height: 160px; resize: vertical; }
.qa-row { display: grid; grid-template-columns: 1fr 140px 1fr; gap: 12px; }
.qa-check { display: flex; gap: 10px; align-items: flex-start; color: var(--light); font-weight: 500; }
.qa-check input { width: auto; margin-top: 4px; }
.qa-error { background: rgba(239, 68, 68, 0.12); color: var(--red); border-radius: 8px; padding: 10px 12px; }
.qa-ok { background: rgba(34, 197, 94, 0.1); color: var(--green); border-radius: 8px; padding: 10px 12px; }
.qa-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.qa-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.qa-answer { border-top: 1px solid var(--edge); padding-top: 16px; margin-top: 16px; }
.qa-answer h3 { font-size: 1rem; margin-bottom: 4px; }
.qa-cta {
  margin-top: 28px;
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, #1a2436, #121a28);
  border: 1px solid var(--edge);
}
.qa-crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }
.qa-crumbs a { color: var(--muted); }
.qa-person-top { display: flex; gap: 14px; align-items: center; }
.qa-avatar, .qa-avatar img {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #1e293b; flex: none;
}
.qa-avatar {
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.3rem;
}
.qa-search { display: flex; gap: 8px; margin: 8px 0 18px; }
.qa-search input { max-width: 420px; }
.qa-pager { display: flex; gap: 12px; margin-top: 18px; }
.qa-footer { border-top: 1px solid var(--edge); padding: 28px 0 40px; color: var(--muted); font-size: 0.85rem; }
.qa-footer-inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.qa-footer a { color: var(--muted); margin-right: 14px; }
.qa-table { width: 100%; border-collapse: collapse; margin: 18px 0 28px; }
.qa-table th, .qa-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--edge); vertical-align: top; }
.qa-table th { color: var(--white); font-size: 0.85rem; }
.qa-prose { max-width: 760px; }
.qa-prose h2 { margin-top: 28px; font-size: 1.35rem; }
@media (max-width: 800px) {
  .qa-menu { display: block; }
  .qa-links {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 68px;
    background: var(--ink);
    border-bottom: 1px solid var(--edge);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 24px 18px;
  }
  body.qa-nav-open .qa-links { display: flex; }
  .qa-row { grid-template-columns: 1fr; }
}
