/* ===== Pharma API Products — matches the apis.html green/orange theme ===== */
.papi-directory-wrap,
.papi-product-page {
  --forest: #1c7a3e;
  --forest-deep: #0e3d20;
  --ink: #0b2415;
  --orange: #f47920;
  --paper: #f7f6f1;
  --sage: #e4ede3;
  --line: #d8dfd6;
  --text: #33403a;
  --muted: #6b7a71;
  font-family: "Open Sans", Sans-serif;
  color: var(--text);
}
.papi-directory-wrap h1,
.papi-directory-wrap h2,
.papi-directory-wrap h3,
.papi-product-page h1,
.papi-product-page h2,
.papi-product-page h3 {
  font-family: "Open Sans", Sans-serif !important;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.12;
}

/* subtabs */
.papi-subtabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.papi-subtabs .subtab {
  border: 1.5px solid var(--line);
  background: #fff;
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: 0.2s;
}
.papi-subtabs .subtab.active,
.papi-subtabs .subtab:hover {
  border-color: var(--forest);
  color: var(--forest-deep);
  background: var(--sage);
}

/* toolbar / search */
.papi-directory-wrap .az-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.papi-directory-wrap .f-search {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 420px;
}
.papi-directory-wrap .f-search input {
  width: 100%;
  padding: 13px 18px 13px 42px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  font-family: "Open Sans", Sans-serif;
  font-size: 14.5px;
  background: #fff;
  color: var(--ink);
  transition: 0.2s;
}
.papi-directory-wrap .f-search input:focus {
  outline: none;
  border-color: var(--forest);
}
.papi-directory-wrap .f-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--muted);
}
.papi-directory-wrap .f-count {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.papi-directory-wrap .f-count b {
  color: var(--forest-deep);
}

/* A-Z jump bar */
.papi-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 34px;
}
.papi-jump a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--line);
  transition: 0.2s;
  background: #fff;
}
.papi-jump a.has {
  color: var(--forest-deep);
  border-color: var(--line);
}
.papi-jump a.has:hover {
  border-color: var(--forest);
  background: var(--sage);
}

/* letter groups + molecule pills */
.papi-letter-block {
  margin-bottom: 36px;
  scroll-margin-top: 100px;
}
.papi-letter-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--sage);
}
.papi-letter-head .ltr {
  font-family: "Open Sans", Sans-serif;
  font-size: 30px;
  color: var(--forest);
  line-height: 1;
}
.papi-letter-head .ltr-count {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.papi-mol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}
.papi-mol-pill {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: 0.2s;
  line-height: 1.35;
  text-decoration: none;
}
.papi-mol-pill:hover {
  border-color: var(--forest);
  background: var(--sage);
  transform: translateY(-2px);
}
.papi-mol-empty {
  padding: 50px;
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 980px) {
  .papi-mol-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  .papi-jump a {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
}

/* ===== Single product page (Image 2 layout) ===== */
.papi-product-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.ctd-product-hero {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 50px;
  flex-wrap: wrap;
}
.ctd-product-hero-text {
  flex: 1;
  min-width: 280px;
}
.ctd-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.ctd-product-hero-text h1 {
  font-size: clamp(28px, 3.4vw, 42px);
  margin-bottom: 16px;
}
.ctd-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.ctd-badge {
  border: 1px solid var(--line);
  background: #fff;
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--forest-deep);
}
.ctd-badge-accent {
  border-color: var(--orange);
  color: var(--orange);
}
.ctd-tagline {
  color: var(--muted);
  font-size: 16px;
  max-width: 60ch;
  margin-bottom: 24px;
}
.ctd-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.ctd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 14.5px;
  transition: 0.2s;
  text-decoration: none;
}
.ctd-btn-primary {
  background: var(--orange);
  color: #fff;
}
.ctd-btn-primary:hover {
  background: #d9660f;
}
.ctd-btn-outline {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: #fff;
}
.ctd-btn-outline:hover {
  border-color: var(--forest);
}
.ctd-btn-outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}
.ctd-formula-box {
  width: 320px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  text-align: center;
}
.ctd-formula-box img {
  max-width: 100%;
  margin: 0 auto 14px;
}
.ctd-mol-formula {
  font-family: "Open Sans", Sans-serif;
  font-size: 18px;
  color: var(--forest-deep);
}
.ctd-mol-caption {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.ctd-section {
  margin-bottom: 46px;
}
.ctd-section h2 {
  font-size: 24px;
  margin-bottom: 18px;
}
.ctd-section p {
  line-height: 1.7;
}

.ctd-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.ctd-highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
}
.ctd-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--forest);
  font-size: 12px;
  flex-shrink: 0;
}

.ctd-info-table,
.ctd-spec-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.ctd-info-table th {
  text-align: left;
  background: var(--sage);
  color: var(--forest-deep);
  padding: 14px 18px;
  font-size: 13.5px;
  font-weight: 700;
  width: 240px;
  vertical-align: top;
}
.ctd-info-table td {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}
.ctd-spec-table thead th {
  background: var(--forest-deep);
  color: #fff;
  text-align: left;
  padding: 13px 18px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ctd-spec-table tbody td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.ctd-spec-table tbody tr:last-child td {
  border-bottom: none;
}

.ctd-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.ctd-doc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  text-align: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 600;
  background: #fff;
}
.ctd-check-circle {
  color: var(--forest);
}

.ctd-cta-banner {
  background: linear-gradient(
    120deg,
    var(--forest) 0%,
    var(--forest-deep) 100%
  );
  border-radius: 8px;
  padding: 44px;
  display: grid;
  grid-template-columns: 0.7fr 0.2fr;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  color: #fff;
  flex-wrap: wrap;
  margin-bottom: 46px;
}
.ctd-cta-banner h2 {
  color: #fff;
  font-size: 26px;
  margin-bottom: 10px;
}
.ctd-cta-banner p {
  color: #cbe0d0;
  max-width: 44ch;
}
.ctd-cta-banner-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ctd-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.ctd-related-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}
.ctd-related-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}
.ctd-related-item h3 {
  font-size: 17px;
  margin: 8px 0;
}
.ctd-related-item a {
  color: var(--forest);
  font-weight: 700;
  font-size: 13.5px;
}

.ctd-reading-list {
  list-style: none;
}
.ctd-reading-list li {
  border-bottom: 1px solid var(--line);
  padding: 14px 4px;
}
.ctd-reading-list a {
  color: var(--ink);
  font-weight: 600;
}
.ctd-reading-list a:hover {
  color: var(--forest);
}

.ctd-disclaimer {
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
}

.ctd-product-hero .ctd-product-hero-text .ctd-eyebrow{
	display: none !important;
}
@media only screen and (max-width: 920px) {
  .papi-product-page {
    padding: 40px 20px !important;
  }
}
