/* /faq/ in the /newhome palette. Markup: templates/website/faq.html, content: dashboards/newhome_faq.py */

.newhome .nh-faq-hero {
  padding: 84px 0 76px;
  background: linear-gradient(160deg, #06398e 0%, #0766d4 100%);
  color: #fff;
}
.newhome .nh-faq-hero h1 {
  margin: 0;
  font: 700 clamp(44px, 6vw, 76px)/1 'Space Grotesk', Arial, sans-serif;
  letter-spacing: -.06em;
}
.newhome .nh-faq-hero h1 em { color: #80efff; font-style: normal; }
.newhome .nh-faq-hero p:not(.nh-eyebrow) { max-width: 560px; margin: 22px 0 0; color: #e3f4ff; font-size: 18px; }

.newhome .nh-faq {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
  padding: 72px 0 96px;
}
.newhome .nh-faq__toc { position: sticky; top: 28px; align-self: start; }
.newhome .nh-faq__toc p { margin: 0 0 14px; color: #0674dd; font: 700 12px/1.2 'Space Grotesk', sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.newhome .nh-faq__toc ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.newhome .nh-faq__toc a { display: block; padding: 8px 12px; border-left: 2px solid var(--nh-line); color: var(--nh-ink); font-size: 15px; font-weight: 600; }
.newhome .nh-faq__toc a:hover { border-left-color: var(--nh-blue); color: #0674dd; }

.newhome .nh-faq__section { scroll-margin-top: 24px; }
.newhome .nh-faq__section + .nh-faq__section { margin-top: 56px; }
.newhome .nh-faq__section h2 {
  margin: 0 0 14px;
  color: #09254a;
  font: 700 clamp(28px, 3vw, 36px)/1.1 'Space Grotesk', Arial, sans-serif;
  letter-spacing: -.04em;
}

.newhome .nh-faq__item { border-bottom: 1px solid var(--nh-line); }
.newhome .nh-faq__item summary {
  position: relative;
  padding: 22px 48px 22px 0;
  color: #09254a;
  font-size: 18px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.newhome .nh-faq__item summary::-webkit-details-marker { display: none; }
.newhome .nh-faq__item summary::after {
  content: '+';
  position: absolute;
  top: 50%;
  right: 4px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--nh-pale);
  color: #0674dd;
  font-size: 20px;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform .2s ease, background .2s ease;
}
.newhome .nh-faq__item[open] summary::after { content: '−'; background: #dff4ff; }
.newhome .nh-faq__item summary:hover { color: #0674dd; }
.newhome .nh-faq__item summary:focus-visible { outline: 3px solid var(--nh-blue); outline-offset: 4px; border-radius: 4px; }

.newhome .nh-faq__answer { max-width: 720px; padding: 0 0 24px; color: var(--nh-muted); font-size: 17px; }
.newhome .nh-faq__answer p { margin: 0 0 12px; }
.newhome .nh-faq__answer ul { margin: 0 0 12px; padding-left: 20px; }
.newhome .nh-faq__answer li { margin: 4px 0; }
.newhome .nh-faq__answer strong { color: var(--nh-ink); }
.newhome .nh-faq__answer a { color: #0674dd; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.newhome .nh-faq__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: #0674dd;
  font: 700 16px 'DM Sans', Arial, sans-serif;
  cursor: pointer;
}
.newhome .nh-faq__action:hover { text-decoration: underline; text-underline-offset: 4px; }
.newhome .nh-faq__action:focus-visible { outline: 3px solid var(--nh-blue); outline-offset: 4px; }

.newhome .nh-faq-ask { padding: 80px 0 92px; background: linear-gradient(180deg, #eef8ff, #fff); text-align: center; }
.newhome .nh-faq-ask h2 { margin: 0; color: #09254a; font: 700 clamp(32px, 4vw, 48px)/1.05 'Space Grotesk', Arial, sans-serif; letter-spacing: -.05em; }
.newhome .nh-faq-ask > .nh-wrap > p { margin: 14px 0 0; color: var(--nh-muted); font-size: 18px; }
.newhome .nh-faq-ask__people { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 32px 0; padding: 0; list-style: none; }
.newhome .nh-faq-ask__people li { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border: 1px solid var(--nh-line); border-radius: 14px; background: #fff; text-align: left; }
.newhome .nh-faq-ask__people img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.newhome .nh-faq-ask__people div { display: grid; gap: 2px; font-size: 14px; }
.newhome .nh-faq-ask__people strong { color: #09254a; font-size: 15px; }
.newhome .nh-faq-ask__people a { color: #0674dd; font-weight: 600; overflow-wrap: anywhere; }
.newhome .nh-faq-ask__people a:hover { text-decoration: underline; }
.newhome .nh-faq-ask .nh-button { cursor: pointer; font-family: inherit; }

/* Search + topic filter (shown by newhome-faq.js; the plain TOC is the no-JS fallback). */
.newhome .nh-faq [hidden] { display: none !important; }
.newhome .nh-faq__filters,
.newhome .nh-faq__toc { grid-column: 1; grid-row: 1; }
.newhome .nh-faq__sections { grid-column: 2; grid-row: 1; min-width: 0; }
.newhome .nh-faq__filters { position: sticky; top: 28px; align-self: start; display: grid; gap: 22px; }
.newhome .nh-faq__search { display: grid; gap: 8px; }
.newhome .nh-faq__search span { color: #0674dd; font: 700 12px/1.2 'Space Grotesk', sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.newhome .nh-faq__search input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--nh-line);
  border-radius: 10px;
  background: #fff;
  color: var(--nh-ink);
  font: 15px 'DM Sans', Arial, sans-serif;
}
.newhome .nh-faq__search input:focus { outline: 2px solid var(--nh-blue); outline-offset: 2px; border-color: transparent; }
.newhome .nh-faq__categories { display: grid; gap: 2px; }
.newhome .nh-faq__categories button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border: 0;
  border-left: 2px solid var(--nh-line);
  background: none;
  color: var(--nh-ink);
  font: 600 15px/1.3 'DM Sans', Arial, sans-serif;
  text-align: left;
  cursor: pointer;
}
.newhome .nh-faq__categories button span { color: var(--nh-muted); font-size: 12px; font-weight: 700; }
.newhome .nh-faq__categories button:hover { border-left-color: var(--nh-blue); color: #0674dd; }
.newhome .nh-faq__categories button[aria-pressed="true"] { border-left-color: var(--nh-blue); background: var(--nh-pale); color: #0674dd; }
.newhome .nh-faq__categories button:focus-visible { outline: 2px solid var(--nh-blue); outline-offset: 2px; }
.newhome .nh-faq__status { margin: 0 0 18px; color: var(--nh-muted); font-size: 14px; font-weight: 600; }
.newhome .nh-faq__status:empty { display: none; }
.newhome .nh-faq__empty { padding: 32px 0; color: var(--nh-muted); font-size: 17px; }
.newhome .nh-faq__empty h2 { margin: 0 0 10px; color: #09254a; font: 700 28px/1.1 'Space Grotesk', Arial, sans-serif; letter-spacing: -.04em; }
.newhome .nh-faq__empty a { color: #0674dd; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* Workflow steps in the "by business type" answers. */
.newhome .nh-faq__answer ol.nh-faq__steps { display: grid; gap: 0; margin: 4px 0 14px; padding: 0; list-style: none; counter-reset: step; }
.newhome .nh-faq__steps li {
  position: relative;
  margin: 0;
  padding: 7px 0 7px 40px;
  color: var(--nh-ink);
  font-size: 16px;
  counter-increment: step;
}
.newhome .nh-faq__steps li::before {
  content: counter(step);
  position: absolute;
  top: 6px;
  left: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #dff4ff;
  color: #0674dd;
  font: 700 13px/1 'Space Grotesk', sans-serif;
}
.newhome .nh-faq__steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 32px;
  bottom: -6px;
  left: 12px;
  width: 2px;
  background: #dff4ff;
}

@media (max-width: 860px) {
  .newhome .nh-faq { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 72px; }
  .newhome .nh-faq__filters,
  .newhome .nh-faq__toc,
  .newhome .nh-faq__sections { grid-column: 1; grid-row: auto; }
  .newhome .nh-faq__filters { position: static; gap: 16px; }
  .newhome .nh-faq__categories { display: flex; gap: 8px; margin: 0 -17px; padding: 0 17px 4px; overflow-x: auto; scrollbar-width: none; }
  .newhome .nh-faq__categories::-webkit-scrollbar { display: none; }
  .newhome .nh-faq__categories button { flex: none; padding: 7px 13px; border: 1px solid var(--nh-line); border-radius: 999px; font-size: 14px; white-space: nowrap; }
  .newhome .nh-faq__categories button[aria-pressed="true"] { border-color: var(--nh-blue); }
  .newhome .nh-faq__toc { position: static; }
  .newhome .nh-faq__toc ul { display: flex; flex-wrap: wrap; gap: 8px; }
  .newhome .nh-faq__toc a { padding: 7px 13px; border: 1px solid var(--nh-line); border-radius: 999px; font-size: 14px; }
  .newhome .nh-faq__toc a:hover { border-color: var(--nh-blue); }
}
@media (max-width: 600px) {
  .newhome .nh-faq-hero { padding: 56px 0 52px; }
  .newhome .nh-faq-hero p:not(.nh-eyebrow) { font-size: 16px; }
  .newhome .nh-faq__item summary { padding: 18px 44px 18px 0; font-size: 16px; }
  .newhome .nh-faq__answer { font-size: 16px; }
  .newhome .nh-faq-ask__people li { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .newhome .nh-faq__item summary::after { transition: none; }
}

/* Compact FAQ on /newhome (partials/newhome-faq.html). */
.newhome .nh-home-faq { padding: 96px 0; background: #fff; border-top: 1px solid #d8f0fc; }
.newhome .nh-home-faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 72px; align-items: start; }
.newhome .nh-home-faq__intro { position: sticky; top: 32px; }
.newhome .nh-home-faq__intro h2 { margin: 0; color: #09254a; font: 700 clamp(36px, 4vw, 56px)/1.03 'Space Grotesk', Arial, sans-serif; letter-spacing: -.065em; }
.newhome .nh-home-faq__intro h2 em { color: #0879e8; font-style: normal; }
.newhome .nh-home-faq__intro > p:not(.nh-eyebrow) { margin: 18px 0 24px; color: var(--nh-muted); font-size: 18px; }
.newhome .nh-home-faq__all { display: inline-flex; gap: 8px; color: #0674dd; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.newhome .nh-home-faq__all span { transition: transform .2s ease; }
.newhome .nh-home-faq__all:hover span { transform: translateX(3px); }
.newhome .nh-home-faq__list { border-top: 1px solid var(--nh-line); }
@media (max-width: 860px) {
  .newhome .nh-home-faq { padding: 68px 0; }
  .newhome .nh-home-faq__grid { grid-template-columns: 1fr; gap: 28px; }
  .newhome .nh-home-faq__intro { position: static; }
}
@media (prefers-reduced-motion: reduce) { .newhome .nh-home-faq__all span { transition: none; } }
