/* FAQ layout, scoped so the Asepso header and footer stay untouched. */
html:has(.afq) { scroll-snap-type: none; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html:has(.afq) { scroll-behavior: auto; }
}

.afq {
  --maroon: #8e0100;
  --maroon-deep: #7f1417;
  --red: #e33a00;
  --ink: #1c2430;
  --muted: #5c6b7d;
  --line: #eadfd8;
  --cream: #f7f1ec;
  --paper: #fbf8f6;
  --white: #fff;
  --shadow: 0 8px 24px rgba(142, 1, 0, 0.08);
  background: var(--paper);
  color: var(--ink);
  font-family: Raleway, "Segoe UI", sans-serif;
  line-height: 1.6;
}
.afq *,
.afq *::before,
.afq *::after { box-sizing: border-box; }
.afq section {
  overflow: visible;
  scroll-snap-align: none;
  position: relative;
}
.afq a { color: var(--maroon); }
.afq img { max-width: 100%; }

.afq-skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--maroon);
  color: #fff;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
}
.afq-skip:focus { transform: none; }

.afq-wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.afq-hero {
  background:
    radial-gradient(420px 420px at 100% 120%, rgba(227, 58, 0, 0.08), transparent 60%),
    linear-gradient(165deg, #fff 0%, #f7f1ec 58%, #fbf8f6 100%);
  border-bottom: 1px solid var(--line);
  padding: 2.4rem 0 2.2rem;
}
.afq-hero--detail { padding: 2.6rem 0 2.2rem; }
.afq-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--maroon);
}
.afq-crumbs a { color: var(--maroon); text-decoration: none; }
.afq-crumbs a:hover { text-decoration: underline; }
.afq-crumbs li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: #b08980;
  font-weight: 500;
}
.afq-eyebrow {
  display: block;
  margin: 0 0 0.55rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.afq h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.18;
  font-weight: 800;
  color: var(--maroon-deep);
}
.afq-hero--detail h1 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); }
.afq-lead {
  max-width: 640px;
  margin: 0 0 1.4rem;
  color: #4d5d70;
  font-size: 1.02rem;
}
.afq-search { position: relative; max-width: 640px; }
.afq-search svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 1.05rem;
  height: 1.05rem;
  transform: translateY(-50%);
  color: #b08980;
  pointer-events: none;
}
.afq-search input {
  width: 100%;
  border: 2px solid rgba(142, 1, 0, 0.16);
  border-radius: 16px;
  background: #fff;
  padding: 0.95rem 1.1rem 0.95rem 2.9rem;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  outline: none;
  box-shadow: 0 4px 18px rgba(142, 1, 0, 0.05);
}
.afq-search input:focus {
  border-color: var(--maroon);
  box-shadow: 0 6px 22px rgba(142, 1, 0, 0.1);
}
.afq-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  margin-top: 0.3rem;
  color: var(--maroon);
  font-size: 0.88rem;
  font-weight: 700;
}
.afq-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.5rem 2.2rem;
  align-items: end;
}
.afq-article__label {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.afq-article-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(142, 1, 0, 0.05);
}
.afq-article-card:hover {
  border-color: rgba(142, 1, 0, 0.35);
  color: inherit;
  box-shadow: var(--shadow);
}
.afq-article-card img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.afq-article-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.afq-article-card__cat {
  color: var(--red);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.afq-article-card__title {
  color: var(--maroon-deep);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
}
.afq-article-card__date {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #8d756c;
  font-size: 0.75rem;
  font-weight: 600;
}
.afq-article-card__date svg {
  width: 0.85rem;
  height: 0.85rem;
  flex: 0 0 auto;
}
.afq-pill {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.8rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(142, 1, 0, 0.08);
  color: var(--maroon);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.afq-layout { background: #fff; padding: 2.4rem 0 3.2rem; }
.afq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2.5rem;
  align-items: start;
}
.afq-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}
.afq-list-head h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--maroon-deep);
}
.afq-count {
  color: #8d756c;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.afq-list { display: flex; flex-direction: column; gap: 0.7rem; }
.afq-item[hidden],
.afq-empty[hidden],
.afq-pager[hidden] { display: none !important; }
.afq-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.afq-item:hover {
  border-color: rgba(142, 1, 0, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  color: inherit;
}
.afq-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.afq-item__cat {
  flex: 0 0 auto;
  max-width: 34%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(142, 1, 0, 0.08);
  color: var(--maroon);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.afq-item__q {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  color: #1a1a1a;
}
.afq-item:hover .afq-item__q { color: var(--maroon-deep); }
.afq-item__arrow {
  flex: 0 0 auto;
  color: var(--red);
  display: inline-flex;
}
.afq-item__arrow svg { width: 1rem; height: 1rem; display: block; }
.afq-empty {
  text-align: center;
  padding: 2.4rem 1rem;
  color: #6d7c8d;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: var(--cream);
}

.afq-pager { margin-top: 1.6rem; }
.afq-pager-mobile { display: none; gap: 0.5rem; }
.afq-pager-desktop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.afq-pager-summary { margin: 0; color: #8d756c; font-size: 0.86rem; }
.afq-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.afq-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: 0.42rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--maroon);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  background: #fff;
  line-height: 1.2;
}
a.afq-page:hover { border-color: var(--maroon); color: var(--maroon); }
.afq-page-item.active .afq-page,
.afq-page.is-current {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
}
.afq-page-item.disabled .afq-page,
.afq-page.is-disabled {
  color: #b0bac6;
  background: #f4f6f8;
  pointer-events: none;
}

.afq-side { position: sticky; top: 8.5rem; display: flex; flex-direction: column; gap: 1rem; }
.afq-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.2rem 1.05rem;
  margin: 0;
}
.afq-side-title {
  margin: 0 0 0.8rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.afq-cats { display: flex; flex-direction: column; gap: 0.35rem; }
.afq-cat-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.62rem 0.7rem;
  border-radius: 12px;
  text-decoration: none;
  color: #3e4d60;
  font-size: 0.88rem;
  font-weight: 700;
}
.afq-cat-link svg { width: 1rem; height: 1rem; color: var(--maroon); flex: 0 0 auto; }
.afq-cat-link span:nth-child(2) { flex: 1; }
.afq-cat-count {
  margin-left: auto;
  min-width: 1.6rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #8d756c;
  font-size: 0.72rem;
  text-align: center;
}
.afq-cat-link:hover { background: rgba(255, 255, 255, 0.85); color: var(--maroon); }
.afq-cat-link.active { background: var(--maroon); color: #fff; }
.afq-cat-link.active svg,
.afq-cat-link.active .afq-cat-count { color: #fff; }
.afq-cat-link.active .afq-cat-count { background: rgba(255, 255, 255, 0.2); }

.afq-help {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #9a1210 0%, #7a0908 55%, #8e0100 100%);
  color: #fff;
  border-radius: 22px;
  padding: 1.25rem 1.1rem 1.15rem;
  box-shadow: 0 16px 32px rgba(142, 1, 0, 0.16);
}
.afq-help::before,
.afq-help::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.afq-help::before {
  width: 150px;
  height: 150px;
  right: -48px;
  top: -58px;
  background: rgba(227, 58, 0, 0.55);
}
.afq-help::after {
  width: 86px;
  height: 86px;
  right: 18px;
  top: 8px;
  background: rgba(255, 122, 46, 0.35);
}
.afq-help__icon,
.afq-help h2,
.afq-help p,
.afq-help-actions { position: relative; z-index: 1; }
.afq-help__icon { display: block; width: 46px; height: 38px; margin-bottom: 0.7rem; }
.afq-help__icon svg { width: 46px; height: 38px; display: block; }
.afq-help h2,
.afq-help h3 { margin: 0 0 0.4rem; font-size: 1.45rem; font-weight: 800; color: #fff; line-height: 1.2; }
.afq-help p { margin: 0 0 1rem; color: rgba(255, 255, 255, 0.88); font-size: 0.92rem; line-height: 1.45; }
.afq-help-actions { display: flex; flex-direction: column; gap: 0.55rem; }
.afq-help-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.afq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  border-radius: 14px;
  padding: 0.72rem 0.7rem;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1.2;
  cursor: pointer;
  font-family: inherit;
}
.afq-btn svg { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; }
.afq a.afq-btn--ask,
.afq a.afq-btn--ask:hover {
  justify-content: flex-start;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.35rem 0.9rem 0.35rem 0.45rem;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #ff9a2e 0%, #f26a00 100%);
  color: #fff;
  box-shadow: 0 8px 16px rgba(180, 48, 0, 0.28);
}
.afq a.afq-btn--ask:hover { background: linear-gradient(180deg, #ff8a14 0%, #e05e00 100%); }
.afq-btn__lead {
  display: inline-flex;
  align-items: center;
  padding-right: 0.7rem;
  border-right: 1px solid rgba(255, 255, 255, 0.55);
}
.afq-btn__label { flex: 1; text-align: center; }
.afq a.afq-btn--ghost,
.afq a.afq-btn--ghost:hover {
  gap: 0.35rem;
  padding: 0.68rem 0.4rem;
  background: rgba(92, 8, 6, 0.45);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  font-size: 0.78rem;
}
.afq a.afq-btn--ghost:hover { background: rgba(92, 8, 6, 0.62); }
.afq a.afq-back,
.afq a.afq-back:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: #f8ebe3;
  color: var(--maroon);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(142, 1, 0, 0.08);
}
.afq a.afq-back:hover { background: #f3e0d4; }
.afq a.afq-back svg { width: 1.05rem; height: 1.05rem; }
.afq-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.afq-links a { font-weight: 700; font-size: 0.88rem; text-decoration: none; }
.afq-links a:hover { text-decoration: underline; }

.afq-answer {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.45rem 1.35rem 1.2rem;
}
.afq-answer h2 {
  margin: 0 0 0.9rem;
  color: var(--maroon-deep);
  font-size: 1.25rem;
}
.afq-answer p { margin: 0 0 0.9rem; color: #3e4c5e; font-size: 0.98rem; line-height: 1.75; }
.afq-answer a { font-weight: 700; }
.afq-answer a:hover { color: var(--red); }
.afq-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.afq-share-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a97a6;
}
.afq-share a,
.afq-share button {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--maroon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}
.afq-share a:hover,
.afq-share button:hover { background: var(--cream); color: var(--maroon); }
.afq-share svg { width: 1rem; height: 1rem; }
.afq-copy-note { font-size: 0.78rem; font-weight: 700; color: var(--maroon); }

.afq-related { background: var(--cream); padding: 2.4rem 0 3.2rem; }
.afq-related-head { margin-bottom: 1.2rem; }
.afq-related-head p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.afq-related-head h2 { margin: 0.3rem 0 0; color: var(--maroon-deep); font-size: 1.55rem; }
.afq-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}
.afq-related-card {
  display: block;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.05rem 1.1rem;
  text-decoration: none;
  color: inherit;
}
.afq-related-card:hover { border-color: rgba(142, 1, 0, 0.35); box-shadow: var(--shadow); color: inherit; }
.afq-related-card span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--maroon);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.afq-related-card h3 { margin: 0 0 0.4rem; font-size: 0.95rem; color: var(--maroon-deep); line-height: 1.4; }
.afq-related-card p { margin: 0; color: #667587; font-size: 0.82rem; line-height: 1.5; }

.afq-error {
  display: block;
  margin-top: 0.35rem;
  color: #8e0100;
  font-size: 0.82rem;
  font-weight: 700;
}
.expert .form-control[aria-invalid="true"] {
  border-color: #8e0100;
}

@media (max-width: 1023px) {
  .afq-grid,
  .afq-related-grid,
  .afq-hero-grid { grid-template-columns: 1fr; }
  .afq-article { max-width: 420px; }
  .afq-side { position: static; }
  .afq-item { align-items: flex-start; }
  .afq-item__body { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .afq-item__cat { max-width: 100%; }
  .afq-pager-desktop { display: none; }
  .afq-pager-mobile { display: flex; }
}
