/* FAQ — accordion library + practice-area teasers.
   Source: block-faq.scss (CodeKit will recompile; this file kept in sync). */

.faq-accordion,
.faq-teaser-list {
  margin: 1.5rem 0 2.5rem;
}

/* Accordion (FAQ library, native <details>/<summary>) */
.faq-item {
  border-bottom: 1px solid rgba(41, 41, 41, 0.12);
}
.faq-item summary.question {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 0;
  font-family: "DM Serif Display", serif;
  font-size: 1.25rem;
  line-height: 1.3;
  color: #292929;
}
.faq-item summary.question::-webkit-details-marker {
  display: none;
}
.faq-item summary.question::after {
  content: "";
  flex: 0 0 auto;
  width: 0.6rem;
  height: 0.6rem;
  margin-top: 0.45rem;
  border-right: 2px solid #007E77;
  border-bottom: 2px solid #007E77;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item summary.question:hover {
  color: #007E77;
}
.faq-item[open] summary.question::after {
  transform: rotate(-135deg);
}
.faq-item .answer {
  padding: 0 0 1.25rem;
  max-width: 48rem;
}
.faq-item .answer p:last-child {
  margin-bottom: 0;
}

.faq-category {
  margin-bottom: 2.5rem;
}
.faq-category > h2 {
  margin-bottom: 0.5rem;
}

/* Pillar index (questions link to individual FAQ pages) */
.faq-index {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.faq-index .faq-index-item {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(41, 41, 41, 0.12);
}
.faq-index .faq-index-item .question {
  font-family: "DM Serif Display", serif;
  font-size: 1.2rem;
  line-height: 1.3;
  color: #292929;
  text-decoration: none;
}
.faq-index .faq-index-item .question:hover {
  color: #007E77;
}
.faq-index .faq-index-item .teaser {
  margin: 0.3rem 0 0;
  color: rgba(41, 41, 41, 0.8);
}
.faq-back {
  margin-bottom: 1.5rem;
}
.faq-back a {
  color: #007E77;
  text-decoration: none;
  font-family: "DM Serif Display", serif;
}
.faq-back a:hover {
  text-decoration: underline;
}

/* FAQ overview: category card grid (3-up) */
.faq-overview .intro {
  margin: 1.5rem 0 2rem;
}

/* A little more horizontal breathing room on small screens (FAQ pages only) */
@media (max-width: 767.98px) {
  #main.faq-detail,
  #main.faq-overview {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Stacked layout (< lg): separate the FAQ library from the answer/routing card above it */
@media (max-width: 991.98px) {
  .faq-detail .faq-sidebar {
    margin-top: 2.5rem;
  }
}
.faq-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}
@media (max-width: 991.98px) {
  .faq-cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
  .faq-cat-grid { grid-template-columns: 1fr; }
}
.faq-cat-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid rgba(41, 41, 41, 0.12);
  border-radius: 10px;
  background: #faf8f2;
}
.faq-cat-card .cat-title {
  font-size: 1.3rem;
  margin: 0 0 1rem;
  color: #292929;
}
.faq-cat-card .cat-title a {
  color: #292929;
  text-decoration: none;
}
.faq-cat-card .cat-title a:hover {
  color: #007E77;
}
.faq-cat-card .faq-cat-questions {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  flex: 1 1 auto;
}
.faq-cat-card .faq-cat-questions li {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(41, 41, 41, 0.12);
}
.faq-cat-card .faq-cat-questions li:last-child {
  border-bottom: 0;
}
.faq-cat-card .faq-cat-questions li a {
  color: rgba(41, 41, 41, 0.85);
  text-decoration: none;
}
.faq-cat-card .faq-cat-questions li a:hover {
  color: #007E77;
}
.faq-cat-card .faq-cat-all {
  margin-top: auto;
  color: #007E77;
  font-weight: 500;
  font-family: "DM Serif Display", serif;
  text-decoration: none;
}
.faq-cat-card .faq-cat-all:hover {
  text-decoration: underline;
}
.faq-cat-card .faq-cat-all .faq-arrow {
  display: inline-block;
  transition: transform 0.15s ease;
}
.faq-cat-card .faq-cat-all:hover .faq-arrow {
  transform: translateX(3px);
}

/* FAQ detail: grouped library accordion (sidebar) */
.faq-library-title {
  font-size: 1.3rem;
  color: #007E77;
  margin-bottom: 0.75rem;
}
.faq-library-intro {
  font-size: 0.92rem;
  color: rgba(41, 41, 41, 0.8);
  margin-bottom: 1.25rem;
}
.faq-library-intro p:last-child {
  margin-bottom: 0;
}
.faq-acc-group {
  border-bottom: 1px solid rgba(41, 41, 41, 0.12);
}
.faq-acc-group:first-child {
  border-top: 1px solid rgba(41, 41, 41, 0.12);
}
.faq-acc-head {
  margin: 0;
}
.faq-acc-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: "DM Serif Display", serif;
  font-size: 1.02rem;
  color: #292929;
}
.faq-acc-btn:hover {
  color: #007E77;
}
.faq-acc-btn .faq-acc-icon {
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid #007E77;
  border-bottom: 2px solid #007E77;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-acc-group.is-open .faq-acc-btn .faq-acc-icon {
  transform: rotate(-135deg);
}
.faq-acc-panel {
  padding-bottom: 0.75rem;
}
.faq-acc-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.faq-acc-panel li {
  padding: 0.3rem 0;
}
.faq-acc-panel li a {
  color: rgba(41, 41, 41, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
}
.faq-acc-panel li a:hover {
  color: #007E77;
}
.faq-acc-panel li.current a {
  color: #007E77;
  font-weight: 700;
}
.faq-library-all {
  display: inline-block;
  margin-top: 1.25rem;
  color: #007E77;
  font-family: "DM Serif Display", serif;
  text-decoration: none;
}
.faq-library-all:hover {
  text-decoration: underline;
}

/* FAQ detail: service routing card */
.faq-routing {
  margin: 2.5rem 0 0;
  padding: 1.5rem;
  background: #faf8f2;
  border: 1px solid rgba(41, 41, 41, 0.12);
  border-radius: 10px;
}
.faq-routing .faq-routing-title {
  font-size: 1.25rem;
  color: #007E77;
  margin: 0 0 0.75rem;
}
.faq-routing .faq-routing-copy {
  color: rgba(41, 41, 41, 0.85);
  margin-bottom: 1.25rem;
}
.faq-routing .faq-routing-copy p:last-child {
  margin-bottom: 0;
}
.faq-routing .faq-routing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.faq-btn {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 6px;
  background: #007E77;
  color: #fff;
  text-decoration: none;
  font-family: "DM Serif Display", serif;
  font-size: 0.95rem;
  border: 1px solid #007E77;
}
.faq-btn:hover {
  background: #006a64;
  color: #fff;
}
.faq-btn.faq-btn-outline {
  background: transparent;
  color: #007E77;
}
.faq-btn.faq-btn-outline:hover {
  background: rgba(0, 126, 119, 0.08);
  color: #007E77;
}

/* Teasers (practice-area pages) */
.faq-teasers {
  margin: 3rem 0;
}
.faq-teasers .faq-teaser {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(41, 41, 41, 0.12);
}
.faq-teasers .faq-teaser .question {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}
.faq-teasers .faq-teaser .question a {
  color: #292929;
  text-decoration: none;
}
.faq-teasers .faq-teaser .question a:hover {
  color: #007E77;
}
.faq-teasers .faq-teaser .answer {
  color: rgba(41, 41, 41, 0.85);
}
.faq-teasers .faq-teaser .answer p:last-child {
  margin-bottom: 0;
}

/* FAQ detail page (long-form + sidebar) */
.faq-detail .faq-breadcrumbs {
  font-size: 0.85rem;
  margin: 0 0 1.5rem;
  color: rgba(41, 41, 41, 0.55);
}
.faq-detail .faq-breadcrumbs a {
  color: #007E77;
  text-decoration: none;
}
.faq-detail .faq-breadcrumbs a:hover {
  text-decoration: underline;
}
.faq-detail .faq-breadcrumbs .sep {
  margin: 0 0.4rem;
  color: rgba(41, 41, 41, 0.3);
}
.faq-detail .faq-article .featured-img {
  margin: 1rem 0 1.5rem;
}
.faq-detail .faq-article .faq-answer {
  max-width: 44rem;
}
.faq-detail .faq-prevnext {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(41, 41, 41, 0.12);
}
.faq-detail .faq-prevnext a {
  color: #007E77;
  text-decoration: none;
  font-family: "DM Serif Display", serif;
}
.faq-detail .faq-prevnext a:hover {
  text-decoration: underline;
}
.faq-detail .faq-prevnext .next {
  margin-left: auto;
  text-align: right;
}

.faq-sidebar .overview {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-family: "DM Serif Display", serif;
  color: #292929;
  text-decoration: none;
}
.faq-sidebar .overview:hover {
  color: #007E77;
}
.faq-sidebar .faq-sidebar-group {
  margin-bottom: 1.75rem;
}
.faq-sidebar .faq-sidebar-group h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.faq-sidebar .faq-sidebar-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.faq-sidebar .faq-sidebar-group li {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(41, 41, 41, 0.12);
}
.faq-sidebar .faq-sidebar-group li a {
  color: rgba(41, 41, 41, 0.85);
  text-decoration: none;
}
.faq-sidebar .faq-sidebar-group li a:hover {
  color: #007E77;
}
.faq-sidebar .faq-sidebar-group li.current a {
  color: #007E77;
  font-weight: 700;
}

/* Teaser "read more" link */
.faq-readmore {
  margin: 0.5rem 0 0;
}
.faq-readmore a {
  color: #007E77;
  font-weight: 600;
  text-decoration: none;
}
.faq-readmore a:hover {
  text-decoration: underline;
}
.faq-readmore .faq-arrow {
  display: inline-block;
  transition: transform 0.15s ease;
}
.faq-readmore a:hover .faq-arrow {
  transform: translateX(3px);
}

/* FAQ hero (topic banner) — self-contained in Layout/FaqPage.ss */
#hero.faq-hero {
  background-color: #007E77;
}
.hero-content .hero-eyebrow {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
  opacity: 0.92;
}
.hero-content .hero-faq-topic {
  font-family: "DM Serif Display", serif;
  font-size: 2.6rem;
  line-height: 1.1;
}
