/*
 * hard-questions.css: the Hard Questions hub (/hard-questions,
 * /es/preguntas-dificiles). Parchment, charcoal ink, stone and antique gold,
 * serif throughout, like The Case for Christianity; mobile first. Everything
 * here also styles the no-JavaScript page. The block on Q&A pages is styled in
 * ssr-content.css (.hq-qa), which every page loads.
 */

.hq-page {
  max-width: 62rem;
  margin: 0 auto;
  padding: 6.5rem 1rem 3rem;
  color: #33302b;
}

.hq { font-size: 1.1rem; line-height: 1.65; }
.hq a { color: #6b5323; text-decoration: none; border-bottom: 1px solid rgba(122, 94, 38, 0.32); }
.hq a:hover, .hq a:focus-visible { color: #33302b; border-bottom-color: #7a5e26; }
.hq a:focus-visible, .hq button:focus-visible, .hq input:focus-visible, .hq [tabindex="-1"]:focus-visible {
  outline: 2px solid #8a6f39; outline-offset: 3px; border-radius: 4px;
}
.hq [hidden] { display: none !important; }

.hq-breadcrumb { margin-bottom: 1.25rem; }

/* --- hero --- */
.hq-hero { margin: 0 0 1.25rem; }
.hq-eyebrow {
  font-family: "Cinzel", Georgia, serif; font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: #6b5a2e; margin: 0 0 0.5rem;
}
.hq-title {
  font-family: "Cinzel", Georgia, serif; font-weight: 700;
  font-size: clamp(1.85rem, 5.5vw, 2.8rem); line-height: 1.15; color: #1f1d1a;
  margin: 0 0 1rem; text-wrap: balance;
}
.hq-lead { font-size: 1.25rem; line-height: 1.55; color: #3b3630; margin: 0 0 0.75rem; max-width: 44rem; }
.hq-intro { color: #4a4335; margin: 0 0 1.25rem; max-width: 44rem; }

/* --- search --- */
.hq-search { margin: 0 0 1.1rem; max-width: 40rem; }
.hq-search-label {
  display: block; font-family: "Cinzel", Georgia, serif; font-size: 0.82rem; letter-spacing: 0.08em;
  color: #4a3b1c; margin: 0 0 0.4rem;
}
.hq-search-row { display: flex; gap: 0.5rem; }
.hq-search input[type="search"] {
  flex: 1 1 auto; min-width: 0; min-height: 3rem; padding: 0.6rem 0.95rem;
  font: inherit; font-size: 1.08rem; color: #1f1d1a;
  background: #fffdf8; border: 1px solid #b9a676; border-radius: 12px;
}
.hq-search input[type="search"]::placeholder { color: #7a7266; opacity: 1; }
.hq-search input[type="search"]:focus { border-color: #8a6f39; outline: 2px solid rgba(138, 111, 57, 0.35); outline-offset: 1px; }
.hq-btn {
  flex: 0 0 auto; min-height: 3rem; padding: 0.55rem 1.15rem;
  font-family: "Cinzel", Georgia, serif; font-size: 0.88rem; letter-spacing: 0.06em;
  background: #33302b; color: #fbf6ea; border: 1px solid #33302b; border-radius: 12px; cursor: pointer;
}
.hq-btn:hover { background: #1f1d1a; }

/* --- themes (filter links) --- */
.hq-themes { margin: 0; }
.hq-themes-label {
  font-family: "Cinzel", Georgia, serif; font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: #6b5a2e; margin: 0 0 0.45rem;
}
.hq-themes ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.hq .hq-themes a {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.35rem 0.85rem;
  font-size: 0.98rem; line-height: 1.25; color: #3b3630;
  background: #fbf6ea; border: 1px solid #ddd0ad; border-radius: 999px;
}
.hq .hq-themes a:hover { border-color: #b08c2f; background: #fdf9ef; }
.hq .hq-themes a[aria-current="true"] { background: #33302b; color: #fbf6ea; border-color: #33302b; }

/* --- care note --- */
.hq-care {
  margin: 1.25rem 0 0; padding: 0.85rem 1.05rem; max-width: 44rem;
  background: #fbf8f1; border: 1px dashed #b9a676; border-radius: 10px; font-size: 1rem; color: #3b3630;
}
.hq-care p { margin: 0; }
.hq-care .hq-crisis { margin-top: 0.4rem; font-size: 0.95rem; color: #5a5245; }

/* --- status + headings --- */
.hq-status { min-height: 1.2em; margin: 1.25rem 0 0.25rem; font-size: 1rem; color: #4a4335; }
.hq-status:empty { margin: 0; min-height: 0; }
.hq-h2 {
  font-family: "Cinzel", Georgia, serif; font-weight: 700; font-size: 1.28rem; letter-spacing: 0.02em;
  color: #1f1d1a; margin: 2rem 0 0.85rem;
}
.hq-results .hq-h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hq-h3 {
  font-family: "Cinzel", Georgia, serif; font-weight: 700; font-size: 1.12rem; color: #1f1d1a;
  margin: 0 0 0.25rem;
}
.hq .hq-h3 a { color: inherit; border-bottom-color: transparent; }
.hq .hq-h3 a:hover { border-bottom-color: #7a5e26; }
.hq-count { margin: -0.4rem 0 1rem; font-size: 0.95rem; color: #6b6252; }
.hq-showing { margin: 0 0 1rem; font-size: 1rem; }

/* --- featured cards --- */
.hq-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.hq .hq-card-link {
  display: flex; flex-direction: column; gap: 0.25rem; height: 100%;
  padding: 1rem 1.1rem; background: #fbf6ea; border: 1px solid #ddd0ad; border-radius: 14px; color: inherit;
}
.hq .hq-card-link:hover, .hq .hq-card-link:focus-visible { border-color: #b08c2f; background: #fdf9ef; color: inherit; }
.hq-card-theme, .hq-item-theme {
  font-family: "Cinzel", Georgia, serif; font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: #6b5a2e;
}
.hq-card-q { font-family: "Cinzel", Georgia, serif; font-weight: 700; font-size: 1.1rem; color: #1f1d1a; line-height: 1.3; }
.hq-card-a { font-size: 1.02rem; color: #4a4335; line-height: 1.5; }
.hq-card-cta { margin-top: auto; padding-top: 0.35rem; font-size: 0.92rem; color: #6b5323; }
.hq-card-cta::after { content: " \2192"; }

/* --- question rows (themes and results) --- */
.hq-group { margin: 0 0 1.75rem; padding: 1.1rem 1.1rem 0.6rem; background: rgba(251, 246, 234, 0.82); border: 1px solid #e3d7bb; border-radius: 14px; }
.hq-group-blurb { margin: 0 0 0.6rem; color: #4a4335; font-size: 1rem; }
.hq-group-more { margin: 0.25rem 0 0.75rem; font-size: 1rem; }
.hq-list { list-style: none; margin: 0; padding: 0; }
.hq-item { border-top: 1px solid #e8dcc0; }
.hq-item:first-child { border-top: 0; }
.hq .hq-item-link {
  display: flex; flex-direction: column; gap: 0.15rem; padding: 0.7rem 0.15rem; color: inherit; border-bottom: 0;
}
.hq .hq-item-link:hover .hq-item-q, .hq .hq-item-link:focus-visible .hq-item-q { color: #6b5323; text-decoration: underline; text-decoration-color: rgba(122, 94, 38, 0.45); text-underline-offset: 3px; }
.hq-item-q { font-weight: 600; font-size: 1.08rem; color: #1f1d1a; line-height: 1.35; }
.hq-item-a { font-size: 0.99rem; color: #4a4335; line-height: 1.5; }
.hq-group .hq-item-theme { display: none; }
.hq-results .hq-list { background: rgba(251, 246, 234, 0.82); border: 1px solid #e3d7bb; border-radius: 14px; padding: 0.2rem 1.1rem; }

/* --- empty state --- */
.hq-empty { padding: 1rem 1.1rem; background: #fbf8f1; border: 1px solid #ddd0ad; border-radius: 12px; }
.hq-empty p { margin: 0 0 0.6rem; }
.hq-empty p:last-child { margin-bottom: 0; }
.hq-empty-title { font-weight: 600; color: #1f1d1a; }
.hq-suggest { display: flex; flex-wrap: wrap; gap: 0.35rem 0.7rem; align-items: baseline; }

/* --- how + more --- */
.hq-how-list { margin: 0; padding-left: 1.3rem; max-width: 46rem; }
.hq-how-list li { margin: 0 0 0.45rem; }
.hq-standards { margin: 0.75rem 0 0; font-size: 1rem; }
.hq-more ul { margin: 0; padding-left: 1.2rem; }
.hq-more li { margin: 0 0 0.35rem; }

@media (min-width: 720px) {
  .hq-page { padding-top: 7rem; }
  .hq-cards { grid-template-columns: 1fr 1fr; }
  .hq-group { padding: 1.25rem 1.4rem 0.75rem; }
}
@media (min-width: 1000px) {
  .hq-cards { grid-template-columns: 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html.scroll-smooth { scroll-behavior: auto; }
}
@media print {
  .hq-search, .hq-themes, .hq-care { display: none !important; }
}
