/* Help Guides archive layout. Fresh asset path used to prevent stale preview caching. */

.fb-help-index .fb-wrap {
  width: min(calc(100% - 48px), 1240px);
  max-width: 1240px;
}

.fb-help-index-header {
  max-width: 900px;
}

.fb-help-index-header p {
  max-width: 780px;
}

.fb-help-search {
  max-width: 760px;
  margin-bottom: 34px;
}

.fb-help-topics {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 40px !important;
  align-items: stretch !important;
}

.fb-help-topic {
  position: relative;
  min-width: 0;
  height: 398px;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--fb-line);
  border-radius: var(--fb-radius-lg);
  box-shadow: 0 1px 0 rgba(17, 19, 16, .02);
  transform: translateY(0);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.fb-help-topic:hover {
  transform: translateY(-3px);
  border-color: var(--fb-line-strong);
  box-shadow: 0 12px 30px rgba(22, 25, 20, .085);
}

.fb-help-topic-head {
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  align-items: start;
  gap: 0 12px;
  padding: 22px 22px 17px;
}

.fb-help-topic-number,
.fb-help-topic-meta {
  margin: 0;
  font-family: inherit;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 760;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: none;
}

.fb-help-topic-number {
  color: var(--fb-ink);
}

.fb-help-topic-meta {
  justify-self: end;
  color: var(--fb-quiet);
}

.fb-help-topic-head h2,
.fb-help-topic-head p {
  grid-column: 1 / -1;
}

.fb-help-topic-head h2 {
  margin: 14px 0 7px;
  font-size: 21px;
  line-height: 1.08;
  font-weight: 720;
  letter-spacing: -.035em;
}

.fb-help-topic-head p {
  min-height: 38px;
  margin: 0;
  color: var(--fb-muted);
  font-size: 12.5px;
  line-height: 1.48;
}

.fb-help-topic-guides {
  min-height: 0;
  margin: 0 22px;
  padding: 14px 0 10px;
  border-top: 1px solid var(--fb-line);
}

.fb-help-topic-label {
  margin-bottom: 7px;
  color: var(--fb-quiet);
  font-size: 9px;
  line-height: 1;
  font-weight: 780;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.fb-help-topic-guides ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fb-help-topic-guides li {
  margin: 0;
  border-top: 1px solid #eeeeea;
}

.fb-help-topic-guides li:first-child {
  border-top: 0;
}

.fb-help-topic-guides li a {
  display: block;
  padding: 7px 0;
  color: #343733;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 620;
}

.fb-help-topic-guides li a:hover {
  color: var(--fb-ink);
}

.fb-help-topic-empty {
  max-width: 270px;
  margin: 11px 0 0;
  color: var(--fb-quiet);
  font-size: 12px;
  line-height: 1.5;
}

.fb-help-topic-actions {
  align-self: end;
  display: grid !important;
  grid-template-columns: 1fr !important;
  border-top: 1px solid var(--fb-line);
}

.fb-help-topic-all {
  min-height: 42px;
  display: flex !important;
  align-items: center;
  padding: 0 22px;
  color: var(--fb-muted);
  font-size: 10.5px;
  font-weight: 680;
}

.fb-help-topic-all:hover {
  color: var(--fb-ink);
  background: var(--fb-panel);
}

.fb-help-topic-guided {
  min-height: 66px;
  display: flex !important;
  align-items: center;
  padding: 12px 22px;
  background: var(--fb-ink);
  color: #fff;
}

.fb-help-topic-guided:hover {
  background: #252824;
  color: #fff;
}

.fb-help-topic-guided-copy {
  min-width: 0;
  display: grid !important;
  gap: 2px;
}

.fb-help-topic-guided-copy small,
.fb-help-topic-guided-copy strong {
  display: block;
}

.fb-help-topic-guided-copy small {
  color: #b9bcb6;
  font-size: 9px;
  line-height: 1.1;
  font-weight: 620;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.fb-help-topic-guided-copy strong {
  color: #fff;
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 720;
  letter-spacing: -.012em;
}

@media (max-width: 1020px) {
  .fb-help-topics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  .fb-help-index .fb-wrap {
    width: min(calc(100% - 30px), 1240px);
  }

  .fb-help-topics {
    grid-template-columns: 1fr !important;
  }

  .fb-help-topic {
    height: auto;
    min-height: 398px;
  }
}

/* Dedicated Help Guide department pages. */
.fb-section-hub .fb-wrap {
  width: min(calc(100% - 48px), 1240px);
  max-width: 1240px;
}

.fb-section-back {
  display: inline-flex;
  margin: 0 0 28px;
  color: var(--fb-muted);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 680;
  text-decoration: none;
}

.fb-section-back:hover {
  color: var(--fb-ink);
}

.fb-section-header {
  max-width: 900px;
  margin-bottom: 28px;
}

.fb-section-accent {
  width: 72px;
  height: 5px;
  margin: 0 0 24px;
  border-radius: 999px;
  background: var(--fb-section-accent);
}

.fb-section-header p {
  max-width: 760px;
}

.fb-section-count {
  margin-top: 16px;
  color: var(--fb-quiet);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 760;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.fb-section-search {
  max-width: 760px;
  margin-bottom: 54px;
}

.fb-section-featured,
.fb-section-library {
  margin-top: 54px;
}

.fb-section-block-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.fb-section-kicker {
  margin-bottom: 7px;
  color: var(--fb-quiet);
  font-size: 9px;
  line-height: 1.2;
  font-weight: 780;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.fb-section-block-head h2,
.fb-section-guided h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.08;
  font-weight: 720;
  letter-spacing: -.035em;
}

.fb-section-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.fb-section-featured-card {
  min-width: 0;
  min-height: 248px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--fb-line);
  border-top: 5px solid var(--fb-section-accent);
  border-radius: var(--fb-radius-lg);
  box-shadow: 0 1px 0 rgba(17, 19, 16, .02);
  color: var(--fb-ink);
  text-decoration: none;
  transform: translateY(0);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.fb-section-featured-card:hover {
  transform: translateY(-3px);
  border-color: var(--fb-line-strong);
  border-top-color: var(--fb-section-accent);
  box-shadow: 0 12px 30px rgba(22, 25, 20, .085);
  color: var(--fb-ink);
}

.fb-section-featured-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--fb-quiet);
  font-size: 9px;
  line-height: 1.2;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fb-section-featured-card h3 {
  margin: 21px 0 8px;
  font-size: 20px;
  line-height: 1.12;
  font-weight: 720;
  letter-spacing: -.03em;
}

.fb-section-featured-card p {
  margin: 0;
  color: var(--fb-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.fb-section-featured-card footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--fb-line);
  color: var(--fb-ink);
  font-size: 10.5px;
  font-weight: 700;
}

.fb-section-featured-card footer small {
  color: var(--fb-quiet);
  font-size: 9px;
  font-weight: 620;
}

.fb-section-groups {
  display: grid;
  gap: 30px;
}

.fb-section-group {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--fb-line);
  border-radius: var(--fb-radius-lg);
}

.fb-section-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-top: 4px solid var(--fb-section-accent);
  border-bottom: 1px solid var(--fb-line);
}

.fb-section-group > header h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 720;
  letter-spacing: -.02em;
}

.fb-section-group > header span {
  color: var(--fb-quiet);
  font-size: 10px;
  font-weight: 760;
}

.fb-section-guide-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 15px 20px;
  border-top: 1px solid #eeeeea;
  color: var(--fb-ink);
  text-decoration: none;
}

.fb-section-guide-row:first-child {
  border-top: 0;
}

.fb-section-guide-row:hover {
  background: var(--fb-panel);
  color: var(--fb-ink);
}

.fb-section-guide-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.fb-section-guide-copy strong {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 680;
}

.fb-section-guide-copy small {
  color: var(--fb-muted);
  font-size: 11.5px;
  line-height: 1.45;
  font-weight: 450;
}

.fb-section-guide-meta {
  color: var(--fb-quiet);
  font-size: 9px;
  line-height: 1.2;
  font-weight: 700;
  white-space: nowrap;
}

.fb-section-guided {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  margin-top: 54px;
  padding: 28px 30px;
  background: #fff;
  border: 1px solid var(--fb-line);
  border-top: 5px solid var(--fb-section-accent);
  border-radius: var(--fb-radius-lg);
}

.fb-section-guided p {
  max-width: 700px;
  margin: 8px 0 0;
  color: var(--fb-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.fb-section-pathways {
  margin-top: 54px;
}

.fb-section-pathway-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.fb-section-pathway-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 7px 18px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--fb-line);
  border-left: 5px solid var(--fb-section-accent);
  border-radius: var(--fb-radius-lg);
  color: var(--fb-ink);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.fb-section-pathway-card:hover {
  transform: translateY(-2px);
  border-color: var(--fb-line-strong);
  border-left-color: var(--fb-section-accent);
  box-shadow: 0 10px 26px rgba(22, 25, 20, .07);
  color: var(--fb-ink);
}

.fb-section-pathway-card strong {
  font-size: 15px;
  line-height: 1.25;
  font-weight: 720;
  letter-spacing: -.02em;
}

.fb-section-pathway-card span {
  grid-column: 1 / 2;
  color: var(--fb-muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.fb-section-pathway-card small {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  color: var(--fb-ink);
  font-size: 10.5px;
  line-height: 1.3;
  font-weight: 700;
  white-space: nowrap;
}

.fb-section-library .fb-empty {
  width: 100%;
  padding: 28px 30px;
  border-top: 5px solid var(--fb-section-accent);
}

@media (max-width: 900px) {
  .fb-section-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fb-section-featured-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .fb-section-hub .fb-wrap {
    width: min(calc(100% - 30px), 1240px);
  }

  .fb-section-featured-grid,
  .fb-section-pathway-grid {
    grid-template-columns: 1fr;
  }

  .fb-section-featured-card:last-child {
    grid-column: auto;
  }

  .fb-section-guide-row,
  .fb-section-guided {
    grid-template-columns: 1fr;
  }

  .fb-section-guide-meta {
    white-space: normal;
  }

  .fb-section-guided .fb-button {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fb-section-featured-card,
  .fb-section-featured-card:hover {
    transform: none;
  }
}
