/* =========================================================
   BlogPosts3.jsx — Sprint 4 buyer-education bodies
   Loaded AFTER BlogPosts2.jsx; extends window.BLOG_BODIES.
   ========================================================= */

(function () {
  const { BlogH2, BlogH3, BlogP, BlogPull, BlogUL, BlogTable, BlogCallout } = window;

  const goLink = (route, slug) => (e) => {
    e.preventDefault();
    window.__go && window.__go(route, slug);
  };

  /* ---------- How to vet a peptide supplier ---------- */
  function VetSupplierBody() {
    return (
      <>
        <BlogP>
          The research-peptide market is unregulated, inconsistently documented, and full of operators whose catalogs are indistinguishable from the catalogs of competent manufacturers. A lab that buys on price alone, or on web-design alone, will at some point buy a vial that is not what the label says.
        </BlogP>
        <BlogP>
          This is a concrete checklist. Every item is a question you can ask, a document you can request, or a verification you can perform before placing an order. If a supplier cannot answer most of these, you have your answer about the supplier.
        </BlogP>

        <BlogH2 id="documentation">Documentation you should receive without asking</BlogH2>
        <BlogUL>
          <li><strong>A lot-specific COA.</strong> Not a generic product-level datasheet — a document that identifies the specific lot number on the vial and reports measured values, not aspirations.</li>
          <li><strong>HPLC chromatogram.</strong> The actual chromatogram, not a summary statistic. Peaks, retention times, baseline.</li>
          <li><strong>Mass-spec identity spectrum.</strong> The measured mass, with isotope pattern, matched to theoretical.</li>
          <li><strong>Signed release.</strong> Named QC chemist and QA approver, with date of release.</li>
          <li><strong>Storage and handling sheet.</strong> Recommended temperature, reconstitution guidance, stability data.</li>
        </BlogUL>
        <BlogP>
          See <a href="#" onClick={goLink('blog', 'how-to-read-a-peptide-coa')}>How to read a peptide COA</a> for a field guide to each line item.
        </BlogP>

        <BlogH2 id="questions">Ten questions to ask before the first order</BlogH2>
        <BlogTable
          headers={['Question', 'What a good answer looks like']}
          rows={[
            ['Where is the peptide synthesized?', 'A named manufacturing partner, a specific facility location, a referenceable regulatory posture (e.g., ISO 9001, cGMP-aligned).'],
            ['Who performs the release testing?', 'Either the manufacturer with independent audit, or a third-party lab by name. Not "our internal QC" with no further detail.'],
            ['What reference standard do you use for HPLC identity?', 'A named commercial or in-house reference with a traceable COA of its own.'],
            ['What is the limit of detection for impurity peaks?', 'A specific LOD, typically 0.1% or lower. "Impurities below detection" without a threshold is meaningless.'],
            ['What is your policy on lot segregation?', 'New lot = new COA. No blending of lots to fill orders.'],
            ['What is the retest policy?', 'A defined retest interval and a documented re-release procedure.'],
            ['Do you carry product liability insurance?', 'Yes, with a named carrier and a coverage limit — not a hand-wave.'],
            ['How do you handle out-of-spec results?', 'A documented OOS procedure with investigation, root-cause analysis, and disposition (release, reject, rework).'],
            ['Can I audit?', 'Yes, with advance scheduling. A supplier that refuses site visits is a supplier that has something to hide.'],
            ['What is your chain of custody after synthesis?', 'Sealed, tracked, refrigerated where indicated. A specific answer with handoff points named.'],
          ]}
        />

        <BlogH2 id="verifications">Three verifications you can perform yourself</BlogH2>

        <BlogH3>1. Cross-check the COA against a third-party lab</BlogH3>
        <BlogP>
          For any new supplier, send a sample of your first lot to an independent analytical lab (Alera, Intertek, Eurofins Covance all run peptide HPLC + MS). Compare the independent result to the supplier's COA. Minor variance is normal (±0.3% HPLC purity between labs); a discrepancy greater than 2% suggests either a documentation error or a substituted material.
        </BlogP>

        <BlogH3>2. Check the physical vial</BlogH3>
        <BlogUL>
          <li>Lot number on the vial matches the lot number on the COA.</li>
          <li>Fill weight, if stated, matches your own gravimetric check after equilibration.</li>
          <li>Powder is fluffy and free-flowing for a properly lyophilized peptide. Cake is acceptable; liquid residue is not.</li>
          <li>Closure is intact, septum is unpunctured, tamper seal is present.</li>
        </BlogUL>

        <BlogH3>3. Look up the supplier</BlogH3>
        <BlogUL>
          <li>Business registration in the jurisdiction they claim to operate from.</li>
          <li>Physical address that is not a residential address or a mail-drop.</li>
          <li>Named company officers — at minimum a CEO or technical lead — who exist on LinkedIn or in a regulatory filing.</li>
          <li>Any published work, third-party reviews in research-community forums, or citations in primary literature.</li>
        </BlogUL>

        <BlogPull>
          A supplier that will not tell you where their peptide is made, who tests it, or who signs the COA is not a supplier. It is a shipping address.
        </BlogPull>

        <BlogH2 id="red-flags">Red flags that should end the conversation</BlogH2>
        <BlogUL>
          <li>No lot-specific COA.</li>
          <li>COA with no chromatogram, or with a chromatogram that appears in every lot's COA unchanged.</li>
          <li>Identical "as measured" values across many lots — real measurements have natural variance.</li>
          <li>Claims of pharmaceutical-grade or GMP-compliant production without certification.</li>
          <li>Prices substantially below the market floor for the compound class.</li>
          <li>Refusal or inability to answer any of the ten questions above.</li>
          <li>Marketing copy that describes the peptide's effects in humans (a research-grade supplier does not market to end users).</li>
        </BlogUL>
        <BlogP>
          See <a href="#" onClick={goLink('blog', 'peptide-coa-red-flags')}>seven COA red flags</a> for document-level diagnostics.
        </BlogP>

        <BlogH2 id="what-clarion-provides">What a credible supplier should provide by default</BlogH2>
        <BlogP>
          Against the checklist above, a credible supplier should provide: lot-specific COA with full chromatogram, MS identity, AAA peptide content, Karl Fischer water, acetate content, sterility + endotoxin for injectable grade, signed release, full synthesis provenance, and a named QC chemist of record. Every lot. Without being asked.
        </BlogP>

        <BlogH2 id="related">Related reading</BlogH2>
        <BlogUL>
          <li><a href="#" onClick={goLink('blog', 'how-to-read-a-peptide-coa')}>How to read a peptide COA</a></li>
          <li><a href="#" onClick={goLink('blog', 'peptide-coa-red-flags')}>Seven COA red flags</a></li>
          <li><a href="#" onClick={goLink('blog', 'research-use-only-meaning')}>What "research use only" actually means</a></li>
        </BlogUL>

        <BlogCallout tone="warn">
          <strong>Research use only.</strong> The guidance here is for evaluating suppliers of research-grade material. Clarion peptides are not drugs and are not supplied for human or veterinary use.
        </BlogCallout>
      </>
    );
  }

  /* ---------- Research use only ---------- */
  function RUOBody() {
    return (
      <>
        <BlogP>
          Every vial of research peptide sold legally in the United States carries a phrase: <strong>For research use only. Not for human consumption.</strong> It is printed on labels, stamped on COAs, and repeated in product listings. It reads like boilerplate. It is not boilerplate. It is the regulatory boundary that makes the entire research-peptide market possible.
        </BlogP>

        <BlogH2 id="what-it-means">What the phrase actually means</BlogH2>
        <BlogP>
          "Research use only" — RUO — is a category of material recognized by the FDA for products intended to be used exclusively for research purposes, not for clinical diagnosis, treatment, or prevention of disease. RUO material is not subject to the full drug-approval process (NDA / BLA) because it is not being offered for therapeutic use.
        </BlogP>
        <BlogP>
          In practical terms: an RUO peptide is a chemical compound sold to a research audience for laboratory work — receptor-binding assays, cell-culture pharmacology, animal models, analytical method development. It is not a drug. It is not a supplement. It is not an investigational drug (which would require an IND). It is reagent-grade material for research purposes.
        </BlogP>

        <BlogH2 id="what-it-doesnt-mean">What it does not mean</BlogH2>
        <BlogUL>
          <li><strong>It does not mean "not safe."</strong> RUO material is often synthesized to identical specifications as investigational clinical material. The difference is regulatory, not always analytical.</li>
          <li><strong>It does not mean "not pure."</strong> A well-run research-peptide supplier produces material at ≥ 99% HPLC purity — comparable to, or exceeding, many clinical-trial supply specifications.</li>
          <li><strong>It does not mean "coded language for therapeutic."</strong> This is the misread that puts researchers and suppliers in legal jeopardy. RUO is a factual statement about the regulatory category of the material; it is not a nudge-nudge-wink-wink indicating that therapeutic use is implicitly permitted.</li>
        </BlogUL>

        <BlogPull>
          RUO is the boundary between a reagent and a drug. Crossing that boundary — by the supplier, by the user, by the marketer — is what converts a legal research transaction into an FDA-enforceable violation.
        </BlogPull>

        <BlogH2 id="who-its-for">Who it's for</BlogH2>
        <BlogP>Research-use-only material is intended for:</BlogP>
        <BlogUL>
          <li>Academic research labs performing basic or applied biological research.</li>
          <li>Contract research organizations (CROs) doing preclinical discovery.</li>
          <li>Pharmaceutical R&amp;D groups in pre-IND discovery phases.</li>
          <li>Analytical labs developing peptide detection methods, reference standards, or QC procedures.</li>
          <li>Cell-culture and assay-development applications where the peptide is a tool, not a therapy.</li>
        </BlogUL>
        <BlogP>It is <em>not</em> intended for, and may not be legally diverted to:</BlogP>
        <BlogUL>
          <li>Human consumption, injection, or topical application for health or cosmetic purposes.</li>
          <li>Veterinary therapeutic use.</li>
          <li>Compounding into finished drug products outside a 503A/503B pharmacy framework.</li>
          <li>Resale as a dietary supplement or over-the-counter health product.</li>
        </BlogUL>

        <BlogH2 id="why-suppliers-care">Why responsible suppliers take it seriously</BlogH2>
        <BlogP>
          A supplier that markets research-grade peptides with human-therapeutic claims — dosing guidance, human protocols, testimonials, before/after photos — has, in the FDA's view, offered an unapproved drug. The consequences escalate from warning letters to product seizure to criminal prosecution. More practically, a supplier operating in that posture is one enforcement action away from being unable to ship your next lot, which is a supply-chain risk for any lab that depends on them.
        </BlogP>
        <BlogP>
          Clarion's RUO posture is not reluctant. It is the reason we can do this work at all.
        </BlogP>

        <BlogH2 id="what-changes-for-researchers">What it means for researchers ordering material</BlogH2>
        <BlogUL>
          <li>RUO peptides are sold to researchers, not consumers. A credible supplier will ask, in some form, that you confirm you are a research user.</li>
          <li>Product pages describe the peptide's chemistry and documented research activity — not dosing protocols or human applications.</li>
          <li>Technical questions about analytical specifications, stability, solubility: appropriate. Questions about "how much to inject" or "protocols for human use": not a conversation your supplier can have.</li>
          <li>The COA is the contract. It guarantees the chemistry of what's in the vial; it does not authorize any specific use.</li>
        </BlogUL>

        <BlogH2 id="related">Related reading</BlogH2>
        <BlogUL>
          <li><a href="#" onClick={goLink('blog', 'how-to-vet-peptide-supplier')}>How to vet a peptide supplier</a></li>
          <li><a href="#" onClick={goLink('blog', 'how-to-read-a-peptide-coa')}>How to read a peptide COA</a></li>
        </BlogUL>

        <BlogCallout tone="warn">
          <strong>Research use only.</strong> All Clarion peptides are supplied for laboratory research only. Not for human or veterinary therapeutic, diagnostic, or investigational use.
        </BlogCallout>
      </>
    );
  }

  /* ---------- 7 COA red flags ---------- */
  function RedFlagsBody() {
    return (
      <>
        <BlogP>
          Most bad peptide COAs are bad in predictable ways. Once you have seen enough of them, the patterns resolve: copy-paste errors, stock images, specifications that cannot be achieved, signatures that are not signatures. This is a field guide to the seven patterns that should stop an order in under 30 seconds.
        </BlogP>

        <BlogH2 id="flag-1">1. No chromatogram</BlogH2>
        <BlogP>
          The headline purity number — "99.2% by HPLC" — is a summary of a chromatogram. If the chromatogram is not included, the number is unverifiable. A real release-grade COA includes the trace, with the retention time of the main peak and the integrated areas of any detected impurities.
        </BlogP>
        <BlogCallout tone="warn">
          A "purity" statement without a chromatogram is advertising, not analytics.
        </BlogCallout>

        <BlogH2 id="flag-2">2. The same chromatogram on every lot</BlogH2>
        <BlogP>
          Download COAs from two or three different lots of the same product. Compare the chromatograms pixel-by-pixel. If they are identical — same baseline noise, same small shoulder on the main peak, same retention time to three decimal places — the chromatograms are photocopied from a single reference, not measured fresh on each lot.
        </BlogP>
        <BlogP>
          Real analytical data varies. Baseline noise, exact retention time (±0.05 min), and minor impurity peak shapes all shift slightly between injections, let alone between lots.
        </BlogP>

        <BlogH2 id="flag-3">3. Lot number on the vial does not match the COA</BlogH2>
        <BlogP>
          The lot number on the COA should appear, unchanged, on the physical label of the vial. If they differ — or if the vial has no lot number — the COA is either borrowed from a different batch or generated without a real batch behind it. Either way, the document does not certify the vial you are holding.
        </BlogP>

        <BlogH2 id="flag-4">4. Acceptance values and measured values are identical</BlogH2>
        <BlogP>
          Real measurements produce real numbers, with decimal places that reflect the instrument precision. If your COA reports:
        </BlogP>
        <BlogTable
          headers={['Assay', 'Specification', 'Result']}
          rows={[
            ['HPLC purity', '≥ 99.0%', '99%'],
            ['Peptide content', '≥ 85%', '85%'],
            ['Water (KF)', '≤ 6.0%', '6%'],
          ]}
        />
        <BlogP>
          — the "results" column is fabricated. Real HPLC readouts are 99.2% or 99.4%, not "99%". Real KF results are 3.7% or 4.1%, not exactly "6%". The tell is that whoever wrote this document typed the specification into the result field because they had no measurement to copy.
        </BlogP>

        <BlogH2 id="flag-5">5. Missing net peptide content</BlogH2>
        <BlogP>
          HPLC purity tells you what fraction of the peptide in the vial is the target sequence. Net peptide content, measured by amino acid analysis, tells you what fraction of the vial's mass <em>is peptide at all</em>. A COA that reports only the first number and omits the second is hiding the information you need to dose correctly.
        </BlogP>
        <BlogP>
          A 99% pure peptide at 65% peptide content is being sold by the purity number alone — which makes the material look stronger by mass than it is. See <a href="#" onClick={goLink('blog', 'hplc-purity-explained')}>HPLC purity vs peptide content</a>.
        </BlogP>

        <BlogH2 id="flag-6">6. No signature, or a signature that is typed</BlogH2>
        <BlogP>
          A release-grade COA is signed — by a named QC chemist who performed or oversaw the testing, and a named QA approver who released the lot. A typed name at the bottom of a PDF, or a "signature" that is a clip-art scribble identical on every lot, is not a signature in any regulatory sense. It also means there is no accountable individual if the lot later proves out-of-spec.
        </BlogP>

        <BlogH2 id="flag-7">7. No manufacture or retest date</BlogH2>
        <BlogP>
          A COA without a manufacturing date gives you no basis for stability planning. A COA without a retest or expiry date gives you no basis for rejecting a lot that has sat too long. A COA with both dates missing is a document that was never intended to support a stability-aware supply chain.
        </BlogP>

        <BlogPull>
          Any one of these patterns is a warning. Two is disqualifying. Three is a counterfeit.
        </BlogPull>

        <BlogH2 id="quick-check">The 30-second sanity check</BlogH2>
        <BlogP>When a new lot arrives, run this pass before you open the vial:</BlogP>
        <BlogUL>
          <li>Does the vial's lot number match the COA? (Flag 3)</li>
          <li>Is there a real HPLC chromatogram? Does the retention time have realistic precision? (Flags 1, 2)</li>
          <li>Are the measured values different from the specification values, with realistic decimal places? (Flag 4)</li>
          <li>Is net peptide content reported separately from HPLC purity? (Flag 5)</li>
          <li>Is there a real signature and a named QC chemist? (Flag 6)</li>
          <li>Are manufacture and retest dates both present? (Flag 7)</li>
        </BlogUL>
        <BlogP>
          If the COA fails any of these, quarantine the lot before it enters the experimental stream. A bad COA upstream compounds into every downstream result.
        </BlogP>

        <BlogH2 id="related">Related reading</BlogH2>
        <BlogUL>
          <li><a href="#" onClick={goLink('blog', 'how-to-read-a-peptide-coa')}>How to read a peptide COA</a> — the full anatomy, line by line.</li>
          <li><a href="#" onClick={goLink('blog', 'how-to-vet-peptide-supplier')}>How to vet a peptide supplier</a> — what to check before you order a first lot.</li>
          <li><a href="#" onClick={goLink('blog', 'hplc-purity-explained')}>HPLC purity vs peptide content</a> — the most misread number on a COA.</li>
        </BlogUL>

        <BlogCallout tone="warn">
          <strong>Research use only.</strong> Clarion peptides are for laboratory research and are not intended for human or veterinary use.
        </BlogCallout>
      </>
    );
  }

  /* ---- Register bodies ---- */
  Object.assign(window.BLOG_BODIES, {
    'how-to-vet-peptide-supplier': VetSupplierBody,
    'research-use-only-meaning': RUOBody,
    'peptide-coa-red-flags': RedFlagsBody,
  });
})();
