/* Page-only styles for FAQ.
   Global layout (parchment, menu, chapter heading, etc.) is handled by magicstyle.css */

.faq-shell{
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

/* ===== FAQ CARD ===== */
.faq-card{
  max-width: 980px;
  margin: 0 auto;
  background: rgba(255,252,240,0.96);
  border-radius: 14px;
  border: 1px solid rgba(190,150,90,0.9);
  box-shadow:
    0 8px 20px rgba(0,0,0,0.22),
    0 0 18px rgba(223,188,115,0.45);
  padding: 1.2rem 1.4rem 1.4rem;
  position: relative;
  overflow: hidden;
}

.faq-card::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(255,255,255,0.40) 0, transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(255,240,210,0.30) 0, transparent 60%);
  pointer-events: none;
  opacity: 0.9;
}

.faq-card-inner{
  position: relative;
  z-index: 1;
  font-family: 'Crimson Pro', serif;
  color: #4b2c16;
}

.faq-lead{
  text-align: center;
  margin: 0.2rem auto 1.1rem;
  color: #6d4a2f;
  font-style: italic;
  font-size: 1rem;
}

/* ===== SEARCH ===== */
.faq-search{
  max-width: 720px;
  margin: 0.2rem auto 1.2rem;
  display: grid;
  gap: 0.45rem;
}

.faq-search-label{
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7b5532;
  text-align: center;
}

.faq-search-input{
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(190,150,90,0.9);
  background: rgba(255,255,255,0.75);
  font-family: 'Crimson Pro', serif;
  font-size: 1.05rem;
  color: #4b2c16;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
}

.faq-search-input:focus{
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,0.08),
    0 0 0 3px rgba(223,188,115,0.35);
}

.faq-search-meta{
  text-align: center;
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  color: #6d4a2f;
  font-size: 0.95rem;
  min-height: 1.2em;
}

/* ===== CATEGORY ===== */
.faq-category{ margin-top: 1.2rem; }

.faq-category-title{
  font-family: 'Cinzel', serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: #4b2c16;
  margin: 1.2rem 0 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(190,150,90,0.55);
}

/* ===== ACCORDION ===== */
.faq-item{
  border-radius: 12px;
  border: 1px solid rgba(150, 120, 70, 0.35);
  background: rgba(255,255,255,0.55);
  overflow: hidden;
  margin: 10px 0;
  box-shadow: 0 6px 14px rgba(0,0,0,0.10);
}

.faq-q{
  width: 100%;
  text-align: left;
  padding: 0.9rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  background: transparent;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.06em;
  color: #4b2c16;
}

.faq-q:hover{ background: rgba(240, 220, 185, 0.35); }

.faq-q span{
  font-size: 0.98rem;
  line-height: 1.35;
}

.faq-icon{
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(190,150,90,0.8);
  background: rgba(255,252,240,0.85);
  box-shadow: 0 6px 12px rgba(0,0,0,0.10);
  font-size: 0.9rem;
  transition: transform 180ms ease;
}

.faq-item.open .faq-icon{ transform: rotate(90deg); }

.faq-a{
  max-height: 0;
  overflow: hidden;
  transition: max-height 240ms ease;
  border-top: 1px solid rgba(190,150,90,0.35);
  background: rgba(255,252,240,0.72);
}

.faq-a-inner{
  padding: 0.9rem 1rem 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #4b2c16;
}

.faq-empty{
  text-align: center;
  margin: 1.2rem auto 0.2rem;
  color: #7b6b5d;
  font-size: 1rem;
  font-style: italic;
}

.back-link{
  display: flex;
  justify-content: center;
  margin-top: 1.4rem;
}

.back-link a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(233,195,120,0.95);
  background: linear-gradient(to bottom, #fbe4b3, #d8b36b);
  color: #3c2210;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow:
    0 10px 22px rgba(0,0,0,0.30),
    0 0 14px rgba(224,188,115,0.60);
  transition: transform 120ms ease, box-shadow 120ms ease, background 160ms ease;
  white-space: nowrap;
}

.back-link a:hover{
  transform: translateY(-1px);
  background: linear-gradient(to bottom, #ffeaba, #deb873);
  box-shadow:
    0 14px 30px rgba(0,0,0,0.40),
    0 0 18px rgba(255,228,145,0.85);
}

@media (max-width: 640px){
  .faq-card{ padding: 1rem 1rem 1.1rem; }
}
