/*
 * FAQ page only -- enqueued via the page map in inc/pagine.php. Sits inside the default
 * .myc-content wrapper (global.css), narrowed to a single reading column. Headings take the serif
 * face and sizes from global.css's .myc-content defaults. The accordion is a native <details>,
 * same +/− pattern as the landing pages' .faq (landing.css); faq.js adds search and deep links.
 */

.myc-faq-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 0 80px;
  font-family: var(--myc-font-sans);
}

.myc-faq-title {
  color: var(--myc-ink);
  margin: 0 0 6px;
}

.myc-faq-subtitle {
  color: var(--myc-grey-2);
  margin: 0 0 28px;
}

/* Search */
.myc-faq-search {
  position: relative;
  margin: 0 0 20px;
}

.myc-faq-search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  color: var(--myc-grey-2);
  pointer-events: none;
}

.myc-faq-search input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px 14px 44px;
  border: 1px solid var(--myc-line);
  border-radius: 0;
  background: var(--myc-white);
  font: 400 1rem var(--myc-font-sans);
  color: var(--myc-ink);
  -webkit-appearance: none;
  appearance: none;
}

.myc-faq-search input:focus {
  outline: none;
  border-color: var(--myc-ink);
}

/* Section index */
.myc-faq-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 0 0 44px;
  font: 500 0.8125rem var(--myc-font-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.myc-faq-nav[hidden] {
  display: none;
}

.myc-faq-nav a {
  color: var(--myc-ink);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.myc-faq-nav a:hover {
  border-bottom-color: var(--myc-ink);
}

/* Sections and questions. scroll-margin keeps anchor targets clear of the fixed header. */
.myc-faq-group {
  margin: 0 0 52px;
  scroll-margin-top: 110px;
}

.myc-faq-group-title {
  margin: 0 0 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--myc-ink);
}

.myc-faq-item {
  border-bottom: 1px solid var(--myc-line);
  scroll-margin-top: 110px;
}

.myc-faq-question {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0;
  font: 500 1.0625rem/1.35 var(--myc-font-sans);
  color: var(--myc-ink);
}

.myc-faq-question::-webkit-details-marker {
  display: none;
}

.myc-faq-question::after {
  content: '+';
  flex: 0 0 auto;
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--myc-blue);
}

.myc-faq-item[open] .myc-faq-question::after {
  content: '−';
}

.myc-faq-answer {
  padding: 0 0 22px;
  max-width: 68ch;
}

.myc-faq-answer p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--myc-ink-2);
  margin: 0 0 0.7em;
}

.myc-faq-answer p:last-child {
  margin-bottom: 0;
}

.myc-faq-answer a {
  color: var(--myc-ink);
  text-decoration: underline;
}

.myc-faq-empty {
  margin: 0 0 52px;
  padding: 24px 0;
  color: var(--myc-grey-2);
}

.myc-faq-empty[hidden] {
  display: none;
}

/* Contacts */
.myc-faq-contact {
  scroll-margin-top: 110px;
}

.myc-faq-contact-intro {
  color: var(--myc-ink-2);
  margin: 12px 0 24px;
}

.myc-faq-contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.myc-faq-contact-card {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 28px 20px;
  border: 1px solid var(--myc-line);
  border-radius: 0;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.myc-faq-contact-card:hover {
  border-color: var(--myc-ink);
}

.myc-faq-contact-icon {
  width: 2em;
  height: 2em;
  color: var(--myc-ink);
}

.myc-faq-contact-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.myc-faq-contact-label {
  font: 700 1.0625rem var(--myc-font-sans);
  color: var(--myc-ink);
}

.myc-faq-contact-hours {
  font-size: 0.875rem;
  color: var(--myc-grey-2);
  white-space: pre-line;
}

.myc-faq-contact-cta {
  font: 700 0.875rem var(--myc-font-sans);
  color: var(--myc-ink);
  text-decoration: underline;
}

@media (max-width: 767px) {
  .myc-faq-page {
    padding: 32px 0 56px;
  }

  .myc-faq-contact-card {
    flex: 1 1 100%;
  }
}
