/*
 * HelpAlong Frequently Asked Questions — v12.14.1
 * Scoped to the public /faqs/ page. Native details/summary elements preserve
 * keyboard access without adding a JavaScript dependency.
 */

.ha-content-page--faqs {
  --ha-faq-magenta: #7b205f;
  --ha-faq-teal: #08768b;
  --ha-faq-slate: #3f5f78;
  --ha-faq-green: #3d7167;
  --ha-faq-ink: #102b3a;
  --ha-faq-border: #d7e4e8;
  --ha-faq-soft: #f4f9fa;
}

.ha-content-page--faqs .ha-faq-hero {
  padding-block: clamp(3.5rem, 6.5vw, 6.4rem);
  background: radial-gradient(circle at 5% 92%, rgba(157, 43, 120, .08), transparent 22rem), linear-gradient(122deg, #94b4bf 0%, #fff 56%, #fdf6fa 100%);
}

.ha-content-page--faqs .ha-faq-hero::after {
  right: -8rem;
  top: -13rem;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(8, 118, 139, .09);
  background: rgba(255, 255, 255, .35);
}

.ha-faq-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(290px, .72fr);
  align-items: center;
  gap: clamp(2.4rem, 6vw, 6rem);
}

.ha-content-page--faqs .ha-faq-hero h1 {
  max-width: 780px;
  margin-bottom: 1rem;
  font-size: clamp(2.65rem, 5.7vw, 5.2rem);
  letter-spacing: -.052em;
  line-height: .98;
}

.ha-content-page--faqs .ha-faq-hero .ha-page-lead {
  max-width: 720px;
  margin-bottom: 0;
  color: #304d59;
  font-size: clamp(1.05rem, 1.8vw, 1.23rem);
  line-height: 1.7;
}

.ha-faq-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem 1.35rem;
  margin-top: 1.7rem;
}

.ha-faq-hero__actions .ha-text-link {
  min-height: 44px;
  color: var(--ha-faq-magenta);
}

.ha-faq-hero__panel {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2rem);
  overflow: hidden;
  border: 1px solid rgba(16, 43, 58, .13);
  border-radius: 18px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 24px 58px rgba(16, 43, 58, .12);
  backdrop-filter: blur(10px);
}

.ha-faq-hero__panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--ha-faq-magenta), #38a5c1);
}

.ha-faq-hero__panel .ha-card-kicker { margin-bottom: .55rem; color: var(--ha-faq-magenta); }
.ha-faq-hero__panel h2 { margin: 0; font-size: clamp(1.45rem, 2.4vw, 1.95rem); line-height: 1.15; }
.ha-faq-hero__panel ul { display: grid; gap: .75rem; margin: 1.25rem 0; padding: 0; list-style: none; }
.ha-faq-hero__panel li { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: .65rem; color: #334f5b; line-height: 1.5; }
.ha-faq-hero__panel li .ha-icon { width: 20px; height: 20px; color: var(--ha-faq-teal); stroke-width: 2.35; }

.ha-faq-hero__count {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: .4rem .7rem;
  border: 1px solid #c7dfe5;
  border-radius: 8px;
  background: #eef8fa;
  color: var(--ha-faq-ink);
  font-size: .78rem;
  font-weight: 800;
}

.ha-faq-main { background: #fff; }
.ha-faq-topic-intro { padding: clamp(3.7rem, 7vw, 6.4rem) 0 clamp(3rem, 6vw, 5rem); }

.ha-faq-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .75fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 5.5rem);
  margin-bottom: clamp(1.7rem, 4vw, 2.8rem);
}

.ha-faq-section-heading h2 { max-width: 700px; margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.035em; line-height: 1.05; }
.ha-faq-section-heading__text { padding-left: 1.4rem; border-left: 2px solid #8fd4e3; color: #3e5965; line-height: 1.7; }
.ha-faq-section-heading__text > :first-child { margin-top: 0; }
.ha-faq-section-heading__text > :last-child { margin-bottom: 0; }

.ha-faq-topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }

.ha-faq-topic-card {
  --ha-faq-topic-accent: var(--ha-faq-magenta);
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: .95rem;
  min-height: 190px;
  padding: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--ha-faq-border);
  border-radius: 14px;
  background: #fff;
  color: var(--ha-faq-ink);
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(16, 43, 58, .055);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.ha-faq-topic-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: var(--ha-faq-topic-accent);
  transform: scaleX(.26);
  transform-origin: left;
  transition: transform .22s ease;
}

.ha-faq-topic-card--home-living { --ha-faq-topic-accent: var(--ha-faq-teal); }
.ha-faq-topic-card--agreements { --ha-faq-topic-accent: var(--ha-faq-slate); }
.ha-faq-topic-card--rights-help { --ha-faq-topic-accent: var(--ha-faq-green); }

.ha-faq-topic-card:hover,
.ha-faq-topic-card:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--ha-faq-topic-accent) 38%, #d7e4e8);
  box-shadow: 0 20px 42px rgba(16, 43, 58, .11);
}

.ha-faq-topic-card:hover::after,
.ha-faq-topic-card:focus-visible::after { transform: scaleX(1); }

.ha-faq-topic-card__icon,
.ha-faq-group__icon,
.ha-faq-help-card__icon,
.ha-faq-contact__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #38a5c1;
  color: #102b3a;
}

.ha-faq-topic-card__icon .ha-icon,
.ha-faq-group__icon .ha-icon,
.ha-faq-help-card__icon .ha-icon,
.ha-faq-contact__icon .ha-icon { width: 25px; height: 25px; stroke-width: 1.9; }

.ha-faq-topic-card__body { display: flex; min-width: 0; flex-direction: column; }
.ha-faq-topic-card__body strong { margin: .1rem 0 .55rem; font-size: 1.02rem; line-height: 1.3; }
.ha-faq-topic-card__body > span { color: #516a75; font-size: .86rem; line-height: 1.55; }
.ha-faq-topic-card__count { position: absolute; right: 1rem; bottom: .85rem; color: var(--ha-faq-topic-accent); font-size: .8rem; font-weight: 850; }

.ha-faq-directory {
  padding: clamp(3.6rem, 7vw, 6.5rem) 0;
  border-top: 1px solid #e4ecef;
  background: linear-gradient(180deg, #f6fafb 0%, #fff 100%);
}

.ha-faq-directory__grid {
  display: grid;
  grid-template-columns: minmax(235px, 285px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
}

.ha-faq-directory__aside-inner { position: sticky; top: 130px; }
.ha-faq-directory__aside h2 { margin: 0 0 1.1rem; font-size: clamp(1.65rem, 2.4vw, 2rem); }
.ha-faq-directory__aside nav ul { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.ha-faq-directory__aside nav a { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem .75rem; border-radius: 8px; color: #2f4b57; font-size: .9rem; font-weight: 750; text-decoration: none; }
.ha-faq-directory__aside nav a:hover,
.ha-faq-directory__aside nav a:focus-visible { background: #eaf5f7; color: var(--ha-faq-ink); }
.ha-faq-directory__aside nav small { display: grid; place-items: center; min-width: 27px; min-height: 27px; border-radius: 7px; background: #fff; color: var(--ha-faq-magenta); font-size: .72rem; }

.ha-faq-help-card { margin-top: 1.4rem; padding: 1.2rem; border: 1px solid #cfe0e5; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(16, 43, 58, .055); }
.ha-faq-help-card__icon { width: 42px; height: 42px; margin-bottom: .85rem; border-radius: 10px; }
.ha-faq-help-card__icon .ha-icon { width: 22px; height: 22px; }
.ha-faq-help-card h3 { margin: 0 0 .45rem; font-size: 1.05rem; }
.ha-faq-help-card p { margin: 0 0 .8rem; color: #516a75; font-size: .84rem; line-height: 1.6; }
.ha-faq-help-card .ha-text-link { color: var(--ha-faq-magenta); font-size: .84rem; }

.ha-faq-groups { display: grid; gap: clamp(2.6rem, 6vw, 4.5rem); min-width: 0; }
.ha-faq-group { --ha-faq-topic-accent: var(--ha-faq-magenta); scroll-margin-top: 130px; }
.ha-faq-group--home-living { --ha-faq-topic-accent: var(--ha-faq-teal); }
.ha-faq-group--agreements { --ha-faq-topic-accent: var(--ha-faq-slate); }
.ha-faq-group--rights-help { --ha-faq-topic-accent: var(--ha-faq-green); }

.ha-faq-group__heading { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: start; gap: 1rem; margin-bottom: 1.15rem; padding-bottom: 1rem; border-bottom: 1px solid #dce7ea; }
.ha-faq-group__icon { width: 52px; height: 52px; border-radius: 13px; }
.ha-faq-group__heading .ha-card-kicker { margin: 0 0 .18rem; color: var(--ha-faq-topic-accent); }
.ha-faq-group__heading h2 { margin: 0 0 .35rem; font-size: clamp(1.55rem, 3vw, 2.15rem); letter-spacing: -.025em; line-height: 1.15; }
.ha-faq-group__heading p:last-child { max-width: 760px; margin: 0; color: #526a75; font-size: .92rem; line-height: 1.6; }

.ha-faq-group .ha-faq-list { display: grid; gap: .65rem; }
.ha-faq-group .ha-faq-item { overflow: hidden; border: 1px solid #d4e1e5; border-radius: 11px; background: #fff; box-shadow: 0 7px 20px rgba(16, 43, 58, .04); transition: border-color .2s ease, box-shadow .2s ease; }
.ha-faq-group .ha-faq-item:hover { border-color: #abcbd3; }
.ha-faq-group .ha-faq-item[open] { border-color: color-mix(in srgb, var(--ha-faq-topic-accent) 45%, #d4e1e5); box-shadow: 0 13px 28px rgba(16, 43, 58, .075); }

.ha-faq-group .ha-faq-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
  padding: .95rem 1.05rem .95rem 1.15rem;
  color: var(--ha-faq-ink);
  font-size: .98rem;
  font-weight: 780;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

.ha-faq-group .ha-faq-item summary::-webkit-details-marker { display: none; }
.ha-faq-group .ha-faq-item summary:hover { background: #f8fbfc; }
.ha-faq-group .ha-faq-item summary:focus-visible { outline: 3px solid #08768b; outline-offset: -3px; }

/* The shared base stylesheet styles every summary span as its legacy circular
 * plus control. Keep the readable question label and the dedicated toggle as
 * separate elements so neither can inherit that obsolete fixed size/rotation. */
.ha-faq-group .ha-faq-item summary .ha-faq-question {
  display: block;
  width: auto;
  height: auto;
  min-width: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  transform: none;
}

.ha-faq-group .ha-faq-item summary .ha-faq-toggle { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #c9dde2; border-radius: 9px; background: #eef7f9; color: var(--ha-faq-topic-accent); transform: none; }
.ha-faq-toggle::before,
.ha-faq-toggle::after { content: ""; position: absolute; width: 13px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease; }
.ha-faq-toggle::after { transform: rotate(90deg); }
.ha-faq-item[open] .ha-faq-toggle::after { transform: rotate(0); }
.ha-faq-item[open] summary { color: var(--ha-faq-topic-accent); }
.ha-faq-group .ha-faq-item[open] summary .ha-faq-question,
.ha-faq-group .ha-faq-item[open] summary .ha-faq-toggle { transform: none; }

.ha-faq-answer { padding: 0 4.4rem 1.2rem 1.15rem; color: #3e5965; font-size: .95rem; line-height: 1.75; }
.ha-faq-answer > :first-child { margin-top: 0; }
.ha-faq-answer > :last-child { margin-bottom: 0; }
.ha-faq-answer a { color: #6f1c56; text-decoration-thickness: .08em; text-underline-offset: .16em; }

.ha-faq-contact { padding: clamp(3rem, 6vw, 5rem) 0; border-block: 1px solid #dbe7ea; background: #edf6f8; }
.ha-faq-contact__inner { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; align-items: center; gap: 1.35rem; }
.ha-faq-contact__icon { width: 62px; height: 62px; border-radius: 15px; }
.ha-faq-contact__icon .ha-icon { width: 31px; height: 31px; }
.ha-faq-contact .ha-eyebrow { margin-bottom: .3rem; }
.ha-faq-contact h2 { margin: 0 0 .35rem; font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
.ha-faq-contact p:last-child { max-width: 760px; margin: 0; color: #48626e; line-height: 1.65; }
.ha-faq-contact__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .7rem; }
.ha-faq-contact__actions .ha-button { white-space: nowrap; }
.ha-faq-contact__actions .ha-button--outline { gap: .45rem; border-color: #8ab7c2; background: #fff; color: var(--ha-faq-ink); }
.ha-faq-contact__actions .ha-icon { width: 18px; height: 18px; }

@media (max-width: 1100px) {
  .ha-faq-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ha-faq-topic-card { min-height: 155px; }
  .ha-faq-contact__inner { grid-template-columns: 56px minmax(0, 1fr); }
  .ha-faq-contact__actions { grid-column: 2; justify-content: flex-start; }
}

@media (max-width: 900px) {
  .ha-faq-hero__grid,
  .ha-faq-section-heading,
  .ha-faq-directory__grid { grid-template-columns: 1fr; }
  .ha-faq-hero__grid { gap: 2rem; }
  .ha-faq-hero__panel { max-width: 660px; }
  .ha-faq-section-heading { align-items: start; gap: 1.25rem; }
  .ha-faq-section-heading__text { max-width: 720px; }
  .ha-faq-directory__aside-inner { position: static; }
  .ha-faq-directory__aside nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ha-faq-help-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 0 .9rem; }
  .ha-faq-help-card__icon { grid-row: 1 / 4; margin: 0; }
  .ha-faq-help-card h3 { align-self: end; }
  .ha-faq-help-card p,
  .ha-faq-help-card .ha-text-link { grid-column: 2; }
}

@media (max-width: 640px) {
  .ha-content-page--faqs .ha-faq-hero { padding-block: 2.8rem 3.4rem; }
  .ha-content-page--faqs .ha-faq-hero h1 { font-size: clamp(2.45rem, 13vw, 3.45rem); }
  .ha-faq-hero__actions { align-items: stretch; flex-direction: column; }
  .ha-faq-hero__actions .ha-button { width: 100%; }
  .ha-faq-topic-grid,
  .ha-faq-directory__aside nav ul { grid-template-columns: 1fr; }
  .ha-faq-topic-card { min-height: 0; padding-bottom: 2.6rem; }
  .ha-faq-group__heading { grid-template-columns: 44px minmax(0, 1fr); gap: .8rem; }
  .ha-faq-group__icon { width: 44px; height: 44px; border-radius: 11px; }
  .ha-faq-group__icon .ha-icon { width: 22px; height: 22px; }
  .ha-faq-group .ha-faq-item summary { grid-template-columns: minmax(0, 1fr) 32px; min-height: 60px; padding: .85rem .85rem .85rem 1rem; font-size: .94rem; }
  .ha-faq-group .ha-faq-item summary .ha-faq-toggle { width: 32px; height: 32px; }
  .ha-faq-answer { padding: 0 1rem 1rem; font-size: .92rem; }
  .ha-faq-contact__inner { grid-template-columns: 48px minmax(0, 1fr); gap: 1rem; }
  .ha-faq-contact__icon { width: 48px; height: 48px; border-radius: 12px; }
  .ha-faq-contact__icon .ha-icon { width: 24px; height: 24px; }
  .ha-faq-contact__actions { grid-column: 1 / -1; width: 100%; }
  .ha-faq-contact__actions .ha-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ha-faq-topic-card,
  .ha-faq-topic-card::after,
  .ha-faq-toggle::before,
  .ha-faq-toggle::after { transition: none; }
  .ha-faq-topic-card:hover,
  .ha-faq-topic-card:focus-visible { transform: none; }
}

@media (forced-colors: active) {
  .ha-faq-topic-card,
  .ha-faq-hero__panel,
  .ha-faq-help-card,
  .ha-faq-group .ha-faq-item { border: 1px solid CanvasText; }
  .ha-faq-topic-card__icon,
  .ha-faq-group__icon,
  .ha-faq-help-card__icon,
  .ha-faq-contact__icon,
  .ha-faq-toggle { background: Canvas; color: CanvasText; }
}

@media print {
  .ha-faq-hero__actions,
  .ha-faq-topic-grid,
  .ha-faq-directory__aside,
  .ha-faq-contact { display: none !important; }
  .ha-content-page--faqs .ha-faq-hero,
  .ha-faq-directory { padding: 1rem 0; background: #fff; }
  .ha-faq-directory__grid { display: block; }
  .ha-faq-group { break-inside: avoid; }
  .ha-faq-group .ha-faq-item { break-inside: avoid; box-shadow: none; }
  .ha-faq-answer { display: block !important; }
  .ha-faq-toggle { display: none; }
}
