/*
Theme Name: QUADRA Child
Template: quadra_biz001
Version: 1.0.3
*/

/* --- Single post content column: reduce bottom padding (theme: 150px) --- */
@media screen and (min-width: 1202px) {
  #main_contents.right #main_col {
    padding-bottom: 80px;
  }
}

/* Desktop: theme uses 100px top; make bottom match (theme default: 150px) */
@media screen and (min-width: 751px) {
  #post_archive {
    padding-bottom: 100px;
  }
  #post_archive .content {
    margin-bottom: 0;
  }
}

/* Mobile: theme uses 40px top; make bottom match */
@media screen and (max-width: 750px) {
  #post_archive {
    padding-bottom: 40px;
  }
  #post_archive .content {
    margin-bottom: 0;
  }
}

/* Hide category header banner on single FAQ posts (keep on category archives) */
body.single .archive_header_title_wrap {
  display: none;
}

/* --- Center the share buttons on single posts --- */
.single_share .sns ul.type1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- FAQ archive: link-tree sitemap layout --- */
.faq_sitemap_inner {
  max-width: 1130px;
  margin: 0 auto;
  padding: 0 20px 100px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px 60px;
}

.faq_sitemap_title a {
  color: inherit;
  text-decoration: none;
}
.faq_sitemap_title a:hover {
  color: rgba(var(--tcd-hover-color, 237, 109, 0), 1);
}

@media (max-width: 767px) {
  .faq_sitemap_inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
.faq_sitemap_title {
  font-size: 18px;
  font-weight: 600;
  color: rgba(var(--tcd-key1-color), 1);
  padding-bottom: 12px;
  margin: 0 0 12px;
  border-bottom: 2px solid rgba(var(--tcd-key1-color, 73, 53, 45), 1);
}
.faq_sitemap_list {
  list-style: none;
  margin: 0;
  padding-left: 1em;
}
.faq_sitemap_list li {
  border-bottom: none;
  padding-left: 1.1em;
  position: relative;
  margin-bottom: 6px;
}
.faq_sitemap_list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.4em;
}
.faq_sitemap_list li a {
  display: inline;
  padding: 4px 0;
  font-size: 14px;
  line-height: 1.9;
}
.faq_sitemap_list li a:hover {
  color: rgba(var(--tcd-hover-color, 237, 109, 0), 1);
}

/* --- FAQ accordion widget --- */
.faq_accordion_widget .faq_acc {
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
}
.faq_accordion_widget .faq_acc summary {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
  position: relative;
}
.faq_accordion_widget .faq_acc summary::-webkit-details-marker {
  display: none;
}
.faq_accordion_widget .faq_acc summary:after {
  content: "+";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}
.faq_accordion_widget .faq_acc[open] summary:after {
  content: "\2212";
}
.faq_accordion_widget .faq_acc_list {
  padding: 0 24px 16px 24px;
  counter-reset: faq_q;
}
.faq_accordion_widget .faq_acc_list li {
  padding: 6px 8px;
  margin: 0 -8px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.5;
  display: flex;
  align-items: baseline;
}
.faq_accordion_widget .faq_acc_list li:before {
  counter-increment: faq_q;
  content: counter(faq_q) ".";
  flex: 0 0 1.6em;
  color: #333;
}
.faq_accordion_widget .faq_acc_list li.current {
  background: rgba(var(--tcd-key1-color, 0, 147, 203), 0.05);
  border-radius: 4px;
  margin: 0 -8px;
  padding: 6px 8px;
}
.faq_accordion_widget .faq_acc_list li.current > a {
  color: rgba(var(--tcd-key1-color, 0, 147, 203), 1);
  font-weight: 600;
}

.faq_accordion_widget .faq_acc_list li.current,
.faq_accordion_widget .faq_acc_list li:hover {
  background: rgba(var(--tcd-key1-color, 0, 147, 203), 0.05);
}

/* --- Related FAQs on single posts --- */
.related_faq {
  margin-top: 50px;
}
.related_faq_headline {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px;
}
.related_faq_list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.related_faq_list li {
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}
.related_faq_list li:first-child {
  border-top: 1px solid #eee;
}
.rel_meta {
  display: block;
  font-size: 11px;
  margin-bottom: 6px;
}
.rel_cat {
  color: rgba(var(--tcd-key1-color, 0, 147, 203), 1);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-right: 10px;
}
.rel_date {
  color: #999;
}
.rel_title {
  font-size: 16px;
  line-height: 1.6;
  display: block;
}
