/* ============================================================
   InverPep - Help
   UI refresh aligned with site visual language
   ============================================================ */

:root{
  --help-bg: #f7f8f4;
  --help-panel: #edf4f0;
  --help-panel-strong: #e1ece7;
  --help-surface: #fcfdfa;
  --help-line: #d7e4de;
  --help-line-strong: #c5d8d0;
  --help-title: #2e9788;
  --help-title-dark: #1e6e68;
  --help-text: #46555d;
  --help-text-strong: #22333a;
  --help-muted: #6c8c86;
  --help-blue: #0d5f9e;
  --help-green: #67b9a7;
  --help-green-dark: #54a793;
  --help-green-light: #a8ddd0;
  --help-shadow: 0 14px 34px rgba(61, 116, 104, .08);
  --help-shadow-soft: 0 8px 18px rgba(61, 116, 104, .06);
}

body,
.inverpep-home{
  background: #ffffff;
}

.inverpep-wrap{
  max-width: 1240px;
}

.inverpep-bannerCard{
  margin-bottom: 18px;
}

.inverpep-subRow{
  margin: 0 4px 14px;
}

.inverpep-subPill{
  border-color: rgba(176, 206, 219, .75);
  box-shadow: 0 10px 18px rgba(72, 117, 135, .08);
}

.inverpep-actionsTop{
  gap: 12px;
}

.inverpep-topBtn{
  min-height: 40px;
  padding: 10px 18px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(180deg, var(--help-green) 0%, var(--help-green-dark) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    0 10px 20px rgba(66, 151, 131, .16);
}

.inverpep-topBtn:hover{
  color: #fff;
  transform: translateY(-1px);
}

.inverpep-topBtn--primary{
  background: linear-gradient(180deg, #7bc8b7 0%, var(--help-green-dark) 100%);
}

.inverpep-card{
  background: linear-gradient(180deg, rgba(245, 248, 245, .96), rgba(236, 242, 238, .98));
  border: 1px solid rgba(189, 214, 206, .72);
  border-radius: 24px;
  box-shadow: var(--help-shadow);
}

.inverpep-cardTitle{
  color: var(--help-title);
}

/* ===== Hero ===== */
.help-hero{
  display: block;
  padding: 20px 22px;
}

.help-eyebrow{
  margin: 0 0 8px;
  color: var(--help-title-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.help-heroTitle{
  margin: 0 0 12px;
  color: var(--help-title);
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: .98;
  letter-spacing: -.05em;
}

.help-heroCopy{
  max-width: 820px;
}

/* ===== Layout ===== */
.help-layout{
  display: grid;
  grid-template-columns: 312px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.help-sidebar,
.help-main{
  min-width: 0;
}

.help-sidebarCard{
  position: sticky;
  top: 20px;
  padding: 18px 18px 20px;
}

.help-sideTitle{
  margin: 0 0 12px;
  color: var(--help-title);
  font-size: 1.28rem;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.help-steps{
  display: grid;
  gap: 10px;
}

.help-step{
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(245, 249, 247, .92));
  border: 1px solid rgba(205, 222, 214, .94);
  color: var(--help-text);
  font-size: 14px;
  line-height: 1.55;
  box-shadow: var(--help-shadow-soft);
}

.help-step span{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(180deg, var(--help-green) 0%, var(--help-green-dark) 100%);
}

.help-stepText{
  min-width: 0;
}

.help-stepText strong{
  color: var(--help-title-dark);
}

/* ===== Main card ===== */
.help-card{
  padding: 18px 18px 16px;
}

.help-tabs{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.help-tabBtn{
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(193, 216, 208, .95);
  background: rgba(255, 255, 255, .78);
  color: var(--help-blue);
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--help-shadow-soft);
  transition: transform .16s ease, box-shadow .16s ease, color .16s ease;
}

.help-tabs > li.active .help-tabBtn{
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, var(--help-green) 0%, var(--help-green-dark) 100%);
}

.help-tabPanel{
  display: none;
}

.help-tabPanel.active{
  display: block;
}

.help-toolbar{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 2px 12px;
}

.help-panelIntro{
  flex: 1 1 420px;
  min-width: 0;
}

.help-panelEyebrow{
  margin: 0 0 6px;
  color: var(--help-title-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.help-panelTitle{
  margin: 0;
  color: var(--help-blue);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.1;
  letter-spacing: -.03em;
}

.help-toolbarActions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.help-miniBtn{
  appearance: none;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(193, 216, 208, .95);
  background: rgba(255, 255, 255, .82);
  color: var(--help-title-dark);
  font-size: 13px;
  font-weight: 900;
  box-shadow: var(--help-shadow-soft);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}

.help-miniBtn:hover{
  transform: translateY(-1px);
}

.help-miniBtn--primary{
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, var(--help-green) 0%, var(--help-green-dark) 100%);
}

.help-filterBar{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 0 10px;
}

.help-resultMeta{
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(199, 217, 210, .95);
  color: var(--help-muted);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--help-title-dark);
}

.help-chipRow{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.help-chip{
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(103, 185, 167, .10);
  border: 1px solid rgba(164, 215, 202, .95);
  color: var(--help-title-dark);
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .16s ease, background-color .16s ease;
}

.help-chip:hover{
  color: var(--help-title-dark);
  text-decoration: none;
  transform: translateY(-1px);
  background: rgba(103, 185, 167, .16);
}

.help-emptyState{
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(202, 220, 213, .95);
  background: linear-gradient(180deg, #f8fbf9 0%, #eef5f1 100%);
  color: var(--help-text);
}

.help-emptyState[hidden]{
  display: none !important;
}

.help-emptyState strong{
  color: var(--help-title-dark);
}

/* ===== Accordion ===== */
.help-accordion{
  display: grid;
  gap: 12px;
}

.help-item{
  display: block;
}

.help-accItem{
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(194, 216, 208, .95);
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--help-shadow-soft);
}

.help-accItem > summary{
  list-style: none;
}

.help-accItem > summary::-webkit-details-marker{
  display: none;
}

.help-accLink{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(180deg, rgba(232, 242, 237, .95), rgba(223, 236, 230, .95));
}

.help-accLeft{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.help-accIcon{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  background: linear-gradient(180deg, var(--help-green) 0%, var(--help-green-dark) 100%);
  box-shadow: 0 10px 20px rgba(66, 151, 131, .14);
}

.help-accTitle{
  display: block;
  color: var(--help-blue);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.help-accMeta{
  display: block;
  margin-top: 3px;
  color: var(--help-muted);
  font-size: 13px;
  line-height: 1.35;
}

.help-accChevron{
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-right: 2px solid var(--help-blue);
  border-bottom: 2px solid var(--help-blue);
  transform: rotate(45deg);
  transition: transform .18s ease;
}

.help-accItem[open] .help-accChevron{
  transform: rotate(225deg);
}

.help-accBody{
  padding: 16px;
}

.help-well,
.help-citationCard{
  border: 1px solid rgba(202, 220, 213, .95);
  background: linear-gradient(180deg, rgba(253, 254, 253, .98), rgba(243, 248, 245, .98));
  border-radius: 18px;
  padding: 16px;
}

.help-metricList,
.help-glossary{
  display: grid;
  gap: 10px;
}

.help-metricItem,
.help-glossaryItem{
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(205, 222, 214, .94);
}

.help-metricItem strong,
.help-glossaryItem strong{
  display: block;
  margin-bottom: 4px;
  color: var(--help-title-dark);
  font-size: 13px;
}

.help-metricItem p,
.help-glossaryItem p{
  margin: 0;
  color: var(--help-text);
  font-size: 13px;
  line-height: 1.5;
}

.help-figureGrid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.help-figure{
  margin: 0;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(205, 222, 214, .94);
}

.help-figureImg{
  display: block;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(205, 222, 214, .94);
}

.help-figure figcaption{
  margin-top: 8px;
  color: var(--help-muted);
  font-size: 12px;
  line-height: 1.4;
}

.help-linkGrid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.help-linkCard{
  display: block;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(202, 220, 213, .95);
  background: linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(243, 248, 245, .96));
  text-decoration: none;
  color: inherit;
  box-shadow: var(--help-shadow-soft);
  transition: transform .16s ease, box-shadow .16s ease;
}

.help-linkCard:hover{
  text-decoration: none;
  color: inherit;
  transform: translateY(-2px);
}

.help-linkTop{
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
  margin-bottom: 10px;
}

.help-linkTop h4{
  margin: 0;
  color: var(--help-blue);
  font-size: 16px;
}

.help-linkCard p{
  margin: 0 0 10px;
  color: var(--help-text);
  font-size: 13px;
  line-height: 1.5;
}

.help-linkCard span:last-child{
  color: var(--help-title-dark);
  font-size: 12px;
  font-weight: 800;
}

.help-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(103, 185, 167, .12);
  color: var(--help-title-dark);
  font-size: 11.5px;
  font-weight: 900;
}

.help-citationLabel{
  margin: 0 0 10px;
  color: var(--help-title-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.help-citationText{
  margin: 0;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .76);
  border: 1px solid rgba(205, 222, 214, .94);
  color: var(--help-text-strong);
  font-size: 15px;
  line-height: 1.6;
}

/* ===== Contact ===== */
.help-contactHero{
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(230, 241, 236, .98), rgba(220, 235, 229, .98));
  border: 1px solid rgba(196, 217, 209, .95);
}

.help-contactTitle{
  margin: 0 0 10px;
  color: var(--help-title);
  font-size: clamp(1.8rem, 2.3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -.04em;
}

.help-contactGrid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.help-contactCard{
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(202, 220, 213, .95);
  background: linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(243, 248, 245, .96));
  box-shadow: var(--help-shadow-soft);
}

.help-contactLabel{
  margin: 0 0 10px;
  color: var(--help-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.help-contactCard h3{
  margin: 0 0 10px;
  color: var(--help-blue);
  font-size: 1.1rem;
}

.help-contactCard p{
  margin: 0 0 14px;
  color: var(--help-text);
  font-size: 14px;
  line-height: 1.55;
}

.help-contactCard a{
  color: var(--help-title-dark);
  font-weight: 900;
  text-decoration: none;
}

.help-contactCard a:hover{
  text-decoration: underline;
}

@media (max-width: 991px){
  .help-layout{
    grid-template-columns: 1fr;
  }

  .help-sidebarCard{
    position: static;
  }

  .help-linkGrid,
  .help-contactGrid,
  .help-figureGrid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px){
  .help-hero{
    padding: 16px;
  }

  .help-card{
    padding: 14px;
  }

  .help-toolbar{
    align-items: stretch;
  }

  .help-panelIntro{
    flex-basis: 100%;
  }

  .help-toolbarActions{
    width: 100%;
    justify-content: flex-start;
  }

  .help-miniBtn{
    flex: 1 1 100%;
  }

  .help-accTitle{
    font-size: 15px;
  }

  .help-accMeta{
    font-size: 12.5px;
  }
}
