/* Story #20260808 | 2026-08-08 | George | Build a searchable buyer FAQ that matches the restrained DevsOff sales experience. */
/* Story #20260809 | 2026-08-09 | George | Delegate the page frame and responsive gutters to the shared public shell. */
:root {
  --faq-navy: #08143d;
  --faq-ink: #17213d;
  --faq-copy: #4d5b78;
  --faq-blue: #1458ff;
  --faq-cyan: #087487;
  --faq-mint: #11784c;
  --faq-amber: #a86100;
  --faq-line: #dbe2ef;
  --faq-soft: #f5f7fb;
  --faq-blue-soft: #edf3ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.faq-page {
  margin: 0;
  min-height: 100vh;
  color: var(--faq-ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

body.faq-page *,
body.faq-page *::before,
body.faq-page *::after {
  letter-spacing: 0;
}

.faq-page a {
  text-decoration: none;
}

.faq-page a:focus-visible,
.faq-page summary:focus-visible,
.faq-page input:focus-visible {
  outline: 3px solid rgba(20, 88, 255, 0.38);
  outline-offset: 3px;
}

.faq-page main {
  padding: 0;
}

.faq-page main section,
.faq-group,
.faq-page details {
  scroll-margin-top: 108px;
}

.faq-page main h1,
.faq-page main h2,
.faq-page main h3,
.faq-page main p {
  margin-top: 0;
}

body.faq-page main h1 {
  max-width: 900px;
  margin-bottom: 24px;
  color: var(--faq-navy);
  font-size: 58px;
  font-weight: 760;
  line-height: 1.08;
}

.faq-page main h2 {
  margin-bottom: 14px;
  color: var(--faq-navy);
  font-size: 34px;
  font-weight: 750;
  line-height: 1.16;
}

.faq-page main p {
  margin-bottom: 0;
  color: var(--faq-copy);
  font-size: 16px;
  line-height: 1.62;
}

.faq-page .eyebrow {
  margin-bottom: 16px;
  color: var(--faq-blue);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.button-primary,
.button-secondary,
.button-on-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
}

.button-primary {
  color: #fff;
  background: var(--faq-blue);
  box-shadow: 0 12px 24px rgba(20, 88, 255, 0.18);
}

.button-primary:hover {
  background: #0d48da;
}

.button-secondary {
  border-color: var(--faq-line);
  color: var(--faq-navy);
  background: #fff;
}

.button-secondary:hover {
  border-color: #aab9d5;
  background: var(--faq-soft);
}

.button-on-dark {
  border-color: #fff;
  color: var(--faq-navy);
  background: #fff;
}

/* Story #20260808 | 2026-08-08 | George | Keep the shared header focused on the primary FAQ conversion action. */
.faq-page .site-header-action--ghost,
.faq-page .site-header-action--secondary {
  display: none;
}

/* Story #20260808 | 2026-08-08 | George | Introduce the diligence page with a compact business-buyer hero. */
.faq-hero {
  padding: 78px 0 70px;
  background: var(--faq-soft);
}

.faq-hero__inner {
  text-align: left;
}

.faq-hero__lead {
  max-width: 760px;
  font-size: 19px !important;
  line-height: 1.62 !important;
}

.faq-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* Story #20260808 | 2026-08-08 | George | Summarize coverage without turning the FAQ into a dashboard of cards. */
.faq-summary {
  color: #fff;
  background: var(--faq-navy);
}

.faq-summary__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-summary__grid > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 22px 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.faq-summary__grid > div:first-child {
  border-left: 0;
}

.faq-summary strong {
  color: #8ce3ed;
  font-size: 28px;
  line-height: 1;
}

.faq-summary span {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

/* Story #20260808 | 2026-08-08 | George | Pair visible search with stable category navigation for all 50 questions. */
.faq-directory {
  padding: 72px 0 84px;
  background: #fff;
}

.faq-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  align-items: end;
  gap: 56px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--faq-line);
}

.faq-search h2 {
  margin-bottom: 0 !important;
}

.faq-search__control label {
  display: block;
  margin-bottom: 9px;
  color: var(--faq-navy);
  font-size: 14px;
  font-weight: 760;
}

.faq-search__control input {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid #b9c6dc;
  border-radius: 6px;
  color: var(--faq-ink);
  background: #fff;
  font: inherit;
  font-size: 15px;
}

.faq-search__control input::placeholder {
  color: #71809b;
}

.faq-search__control input:hover {
  border-color: #8fa2c3;
}

.faq-search__status {
  min-height: 22px;
  margin-top: 8px !important;
  color: #68758f !important;
  font-size: 13px !important;
}

.faq-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  align-items: start;
  gap: 64px;
  margin-top: 48px;
}

.faq-index {
  position: sticky;
  top: 100px;
}

.faq-index h2 {
  margin-bottom: 16px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
}

.faq-index nav {
  display: grid;
  border-top: 1px solid var(--faq-line);
}

.faq-index a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--faq-line);
  color: var(--faq-copy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.faq-index a:hover {
  color: var(--faq-blue);
}

.faq-index a span {
  color: var(--faq-cyan);
  font-weight: 850;
}

.faq-content {
  min-width: 0;
  max-width: 860px;
}

.faq-group {
  margin-bottom: 62px;
}

.faq-group:last-of-type {
  margin-bottom: 0;
}

.faq-group__header {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--faq-navy);
}

.faq-group__header > span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #adc0df;
  border-radius: 50%;
  color: var(--faq-blue);
  font-size: 13px;
  font-weight: 850;
}

.faq-group:nth-of-type(3n + 2) .faq-group__header > span {
  border-color: #8ed8e1;
  color: var(--faq-cyan);
}

.faq-group:nth-of-type(3n) .faq-group__header > span {
  border-color: #98d8b8;
  color: var(--faq-mint);
}

.faq-group__header p {
  margin-bottom: 4px !important;
  color: var(--faq-amber) !important;
  font-size: 12px !important;
  font-weight: 800;
  text-transform: uppercase;
}

.faq-group__header h2 {
  margin-bottom: 0 !important;
  font-size: 28px !important;
}

.faq-list details {
  border-bottom: 1px solid var(--faq-line);
}

.faq-list details[hidden],
.faq-group[hidden] {
  display: none;
}

.faq-list summary {
  position: relative;
  padding: 22px 52px 22px 0;
  color: var(--faq-navy);
  font-size: 17px;
  font-weight: 740;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 4px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #b8c5dc;
  border-radius: 50%;
  color: var(--faq-blue);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list details p {
  max-width: 760px;
  padding: 0 52px 24px 0;
  font-size: 15px !important;
  line-height: 1.65 !important;
}

.faq-no-results {
  padding: 30px;
  border-left: 4px solid var(--faq-amber);
  background: #fff8ed;
  color: var(--faq-navy) !important;
  font-weight: 700;
}

/* Story #20260808 | 2026-08-08 | George | Close the diligence path with one scoped conversation. */
.faq-cta {
  padding: 70px 0;
  background: var(--faq-navy);
}

.faq-cta__layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.faq-cta__layout > div {
  max-width: 780px;
}

.faq-cta .eyebrow {
  color: #8ce3ed;
}

.faq-cta h2,
.faq-cta p {
  color: #fff !important;
}

.faq-cta h2 {
  font-size: 34px !important;
}

.faq-cta p {
  max-width: 720px;
  color: #cbd7f1 !important;
}

.faq-cta .button-on-dark {
  flex: 0 0 auto;
}

.faq-page footer {
  position: relative;
  z-index: 1;
}

/* Story #20260808 | 2026-08-08 | George | Reflow search and topic navigation before labels compete for width. */
@media (max-width: 980px) {
  .faq-search {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .faq-search__control {
    max-width: 680px;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .faq-index {
    position: static;
  }

  .faq-index nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }

  .faq-content {
    max-width: none;
  }
}

@media (max-width: 820px) {
  body.faq-page main h1 {
    font-size: 48px;
  }

  .faq-summary__grid {
    grid-template-columns: 1fr;
  }

  .faq-summary__grid > div,
  .faq-summary__grid > div:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-left: 0;
  }

  .faq-summary__grid > div:first-child {
    border-top: 0;
  }

  .faq-cta__layout {
    display: grid;
    justify-items: start;
  }
}

/* Story #20260808 | 2026-08-08 | George | Keep all FAQ controls and answers readable and overflow-safe on narrow phones. */
@media (max-width: 620px) {
  .faq-page .site-auth-trigger {
    display: none !important;
  }

  .faq-page .site-header .brand-logo {
    width: 108px !important;
    height: 34px !important;
  }

  body.faq-page main h1 {
    font-size: 39px;
    line-height: 1.1;
  }

  .faq-page main h2 {
    font-size: 28px;
  }

  .faq-hero {
    padding: 52px 0 46px;
  }

  .faq-hero__lead {
    font-size: 16px !important;
    line-height: 1.56 !important;
  }

  .faq-hero__actions {
    display: grid;
    gap: 10px;
    margin-top: 26px;
  }

  .faq-hero__actions a {
    width: 100%;
  }

  .faq-summary__grid > div {
    padding: 18px 4px;
  }

  .faq-directory {
    padding: 60px 0 68px;
  }

  .faq-index nav {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .faq-group {
    margin-bottom: 50px;
  }

  .faq-group__header {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .faq-group__header > span {
    width: 38px;
    height: 38px;
  }

  .faq-group__header h2 {
    font-size: 24px !important;
  }

  .faq-list summary {
    padding-right: 42px;
    font-size: 16px;
  }

  .faq-list details p {
    padding-right: 0;
    font-size: 14px !important;
  }

  .faq-cta {
    padding: 56px 0;
  }

  .faq-cta h2 {
    font-size: 28px !important;
  }

  .faq-cta .button-on-dark {
    width: 100%;
  }
}

@media (max-width: 360px) {
  body.faq-page main h1 {
    font-size: 36px;
  }

  .faq-search__control input {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (forced-colors: active) {
  .faq-summary,
  .faq-cta,
  .button-primary,
  .button-on-dark {
    border: 1px solid CanvasText;
    color: CanvasText;
    background: Canvas;
    box-shadow: none;
  }

  .faq-summary strong,
  .faq-summary span,
  .faq-cta .eyebrow,
  .faq-cta h2,
  .faq-cta p {
    color: CanvasText !important;
  }
}
