# Claim symbols and footnotes in the shared store: proposal

- Store: nutramax-staging.myshopify.com, live theme "Nutramax Theme" (id 161886077059, last edited Nov 17 2026 10:15 AM ET)
- Data: read-only pull on Nov 19 2026, 1:21 to 1:24 PM ET, through the shopify.nutramax.com admin app. It covered 433 theme text files, 281 products (239 active) with their metafields, 38 pages, 28 blog articles, 39 collections and every metaobject
- Companion file: `claims-footnotes-migration-20261119.csv` in this folder. It has 715 rows (577 in the previous revision, 726 in the first version), one per content change the migration needs, with storefront and admin links. A `change_group` column sorts the rows by kind of change; the `panel-triple-star` rows are an option only (5.3)

---

## 1. Summary

1. **One registry of footnotes, and brands keep their own symbols.** Add a `claim_footnote` metaobject with one entry per symbol: its symbol(s), the approved text, its division and its brands. Vet brands that have their own symbol keep it: Cosequin `▼`, Dasuquin `◆`, Denamarin `★` and Welactin `△`. Dasuquin uses one diamond, `◆`: today's `♦` and the Dasuquin claims that use `▼` change to `◆`, because `▼` is for Cosequin only. Each gets its own entry, and all the Vet entries share one group, `vet-survey`, with the same source text. The page shows that group once, as one footnote that lists every Vet symbol on the page, e.g. `▼, ◆, ** Source: Survey conducted among veterinarians who recommend animal supplements.` Consumer Care keeps one combined `▲` entry for Cosamin and Avmacol, plus `*` for FDA. Legal wording lives in one place, and changing an entry updates every page.
2. **The theme adds footnotes for you.** The layout already renders every page body through `content_for_layout`. We capture that HTML, ignore ingredient and directions panels, scripts and styles, and check which registered symbols appear. Then we render only those footnotes, once each, at the end of the main content. The footer is checked separately, so the marquee claim gets its own footnote in the footer. Any new page, product or section that makes a claim gets its footnote with no extra step.
3. **`**` is checked before `*`, and `*` only counts on Consumer Care pages.** After migration, Vet company claims use `**` and a single `*` means FDA only. The FDA footnote renders only where the page is Consumer Care or shows a Consumer Care product. Stray asterisks such as "5* Eventer" or "YES*" therefore never add an FDA footnote.
4. **A small script handles content that loads later.** `claim-footnotes.js` links each marker to its footnote with `<sup><a aria-describedby>`. It also covers content that appears after page load: quick-add, the where-to-buy dialog, the cart drawer and theme-editor reloads. A combined-listing variant switch reloads all of `<main>`, so the server-rendered footnotes are refreshed automatically.
5. **Rollout comes in stages and is reversible.** Build on an unpublished copy of the theme with "legacy mode" on, so today's single `*` on Vet company claims and Dasuquin's `♦` keep working until they become `**` and `◆`. The other brand symbols need no legacy mode, because they stay. Then migrate content one brand at a time with before and after backups, and publish. Turn legacy mode off once the QA report is clean.

---

## 2. Current state

### 2.1 Where symbols are used

The scan separates **claim text** from **ingredient and directions panels** (`[[ingredients]]…[[/ingredients]]` and `[[directions]]…[[/directions]]` in product descriptions). A product description holds both, and the panels reuse the same symbols for unrelated notes.

| Symbol | Claim text: markers / footnote lines | Ingredient and directions panels: markers / footnote lines | Used today for |
|---|---|---|---|
| `*` | 340 / 21 | 41 / 35 | Vet company claim (209), Vet brand claim (29: Cosequin 23, Welactin 3, Denamarin 1, Crananidin 1, unknown 1), Consumer Care structure/function claims tied to FDA (90), other (12) |
| `**` | 0 / 0 | 15 / 16 | Only supplement-facts notes, e.g. "**Percent Daily Values…", "**Reported as Glucosamine Hydrochloride" |
| `▲` | 11 / 6 | 78 / 52 | Claims: Cosamin and Avmacol brand claims only. Panels: Vet notes such as "▲Contains up to 10% moisture" (130 uses on 54 Vet products) |
| `◆` | 36 / 19 | 2 / 2 | Dasuquin brand claim ("Among veterinary brands…"). **Kept, and Dasuquin's only claim symbol** |
| `▼` | 86 / 19 | 39 / 8 | Cosequin brand claim ("Among retail brands…"). **Kept, Cosequin only.** Dasuquin also uses it today on 31 claim markers and 7 typed footnotes (17 products); those change to `◆`. Panel notes (Dasuquin, Welactin, Imuquin) are not claims and are out of scope (question 14) |
| `★` | 21 / 14 | 0 | Denamarin brand claim (liver support survey). **Kept**. `★★★★★` rating stars also appear, e.g. the "368 Reviews" default text |
| `△` | 8 / 2 | 0 | Welactin brand claim. **Kept**. Also the Dasuquin ratings claim on the brand page ("Over eighty thousand 5 star ratings…△", footnote "△Ratings collected from all Dasuquin supplements on Amazon and Chewy.com") |
| `♦` | 3 / 0 | 2 / 2 | Dasuquin brand and about pages, with no footnote on those pages. A different character from `◆`; **changes to `◆`**. The 2 panel uses are Filaquin ingredient notes and stay |
| `†` `‡` `●` `▴` `◇` `✝` `§` `⌃` | about 4 | 130+ | Ingredient, analysis and dosing notes only. **These are out of scope and must not be touched** |

The theme's `snippets/text-escape.liquid` already superscripts `★ ♦ △ ▼` (and `® ™ ©`) in every text block. It does not handle `▲`, `◆` or `*`.

### 2.2 The `*` conflict

- `templates/product.json` puts three Vet company claims on **every** product page, Consumer Care included: "…proud to be the #1 veterinarian recommended supplement company.*", "#1 Veterinarian Recommended*" and "Nutramax is the #1 Veterinarian Recommended Supplement Company.*"
- The footer marquee on every page says "The #1 Veterinarian Recommended Supplement Company*". The footer legal text says "* Source: Survey conducted among veterinarians who recommend animal supplements."
- On the 18 active Cosamin and Avmacol product pages, a single `*` therefore points at two footnotes: the FDA statement in the description and the Vet survey in the footer. The same happens on the Cosamin and Avmacol brand, about and FAQ pages and `/pages/species/human`, because the marquee and footer show there too.
- The where-to-buy dialog shows the "Number 1 Veterinarian Recommended" badge image for every product with retailers, Cosamin and Avmacol included. It has no marker and no footnote.

### 2.3 Gaps and inconsistencies

- **Vet company claims without a footnote in the same content.** 60 active products, 10 archived and 4 drafts have one, plus 12 theme templates: `index.json`, `product.json`, `page.dasuquin-about.json`, `metaobject/brand.json`, `metaobject/species.json`, and the brand templates for Cobalequin, Denosyl, Filaquin, Mycequin, Naraquin, Proviable and Solliquin. Today only the site-wide footer covers them.
- **Vet brand claims without a footnote in the same content.** 34 active products, 6 theme templates and 3 brand metaobject descriptions (Cosequin, Denamarin, Welactin).
- **`▲` claims without the `▲` footnote.** 5 active Cosamin products, including `cosamin-ds` and `cosm-ds_no-crtn-hum-tab-150ct`, plus 1 unlisted Avmacol product.
- **Nine versions of the Vet survey footnote are in use.** "small animal veterinarians", "recommended" or "recommend", "omega-3 supplements", "liver support supplements", "Among veterinary brands… oral joint health", "Among retail brands…". One article repeats text by mistake: `news/cosequin®-celebrates-akc-diving-dogs-premier-cup-…` reads "…supplements.inarians who recommended animal supplements."
- **Two Cosamin footnotes add a sentence.** The Cosamin brand page and the Cosamin about page add "Human supplements are sold by Nutramax Laboratories Consumer Care, Inc." to the `▲` text.
- **Claims with no marker at all.** 251 of the 496 "#1" claims in `nutramax-number-one-claims-20261119.csv` have none, and 169 of those are in the `custom.short_description` metafield shown under the product title.
- **Division data is incomplete.** 101 products have no `custom.brand`. One Avmacol product has vendor "Veterinary Sciences", and 12 products have vendor "Nutramax Staging".

---

## 3. Recommended architecture

### 3.1 Footnote registry (metaobject `claim_footnote`)

| Field | Type | Example (`vs-brand-cosequin`) | Notes |
|---|---|---|---|
| handle | system | `vs-brand-cosequin` | Stable key for the entry |
| `symbols` | list.single_line_text_field | `▼` | Markers that trigger the entry. Add `&#42;&#42;` to `vs-company` if anyone enters the entity (see 5.1) |
| `group` | single_line_text_field (optional) | `vet-survey` | Entries with the same group render as **one** footnote. Its label lists every member symbol found on the page, in registry order, and its text comes from the first member. Blank means the entry is its own group. The footnote id is `claim-fn-<scope>-<group>` |
| `legacy_symbols` | list.single_line_text_field | *(blank)* | Recognized only while legacy mode is on. `vs-company` uses it for `*` (counts only on Vet pages), and `vs-brand-dasuquin` for `♦` |
| `label` | single_line_text_field (optional) | *(blank)* | Blank means "list the symbols found on this page" |
| `text` | rich_text_field | Source: Survey conducted among veterinarians who recommend animal supplements. | Legal wording, translatable. Every `vet-survey` entry holds the same text today, so legal can later give one brand its own wording without a code change |
| `division` | single_line_text_field, choices `any`, `cc`, `vs` | `vs` | `cc` entries render only on Consumer Care pages or pages showing a Consumer Care product |
| `brands` | list.metaobject_reference → brand | Cosequin | The brands that use the symbol. Used for QA, legal review, and `brand_only` |
| `brand_only` | boolean | false | When true, the symbol counts only on pages of its own brands (or pages with no brand). Set for Welactin `△`, so the Dasuquin ratings `△` on the Dasuquin brand page doesn't pull in the Vet survey footnote |

Starting entries, in display order:

| handle | symbols | group | division | brands | brand_only | text |
|---|---|---|---|---|---|---|
| `cc-brand` | `▲` | | cc | Cosamin, Avmacol | | Based on U.S. studies published in peer-reviewed journals, the Cosamin® brand is the most researched glucosamine/chondroitin sulfate brand. The Avmacol® brand has been selected for use in more sulforaphane human clinical trials than any other sulforaphane-producing supplement in the marketplace. |
| `vs-brand-cosequin` | `▼` | vet-survey | vs | Cosequin | | Source: Survey conducted among veterinarians who recommend animal supplements. |
| `vs-brand-dasuquin` | `◆` (legacy `♦`) | vet-survey | vs | Dasuquin | | same |
| `vs-brand-denamarin` | `★` | vet-survey | vs | Denamarin | | same |
| `vs-brand-welactin` | `△` | vet-survey | vs | Welactin | true | same |
| `vs-company` | `**` (legacy `*`) | vet-survey | any | | | same |
| `cc-fda` | `*` | | cc | | | THESE STATEMENTS HAVE NOT BEEN EVALUATED BY THE FOOD AND DRUG ADMINISTRATION. THIS PRODUCT IS NOT INTENDED TO DIAGNOSE, TREAT, CURE, OR PREVENT ANY DISEASE. |

How the `vet-survey` footnote reads:

| Symbols on the page | Footnote |
|---|---|
| Dasuquin product (`◆` claim, company `**`) | `◆, ** Source: Survey conducted among veterinarians who recommend animal supplements.` |
| Cosequin product (`▼`, `**`) | `▼, ** Source: …` |
| Page with Cosequin and Dasuquin claims | `▼, ◆, ** Source: …` |
| Denamarin product | `★, ** Source: …` |
| Welactin product, brand claim only | `△ Source: …` |
| Page with only the company claim | `** Source: …` |

`▼` is not `brand_only`. Until the migration is done, Dasuquin pages that still use `▼` keep their footnote, and a Cosequin claim quoted on another page still counts. The QA scan flags `▼` in a non-Cosequin claim instead.

The brand entries use division `vs`, because those symbols only mean a Vet brand claim on Vet content. `vs-company` uses division `any` on purpose. `**` is used only by the Vet company claim in claim text; the `**` in supplement facts sits in the excluded panels. So a Vet company claim shown on a Consumer Care page, such as the product template sections, still gets its footnote.

Brands with no symbol of their own (Crananidin, Proviable, Solliquin and others) either use `**` for brand claims or get a new symbol and entry (question 2). A new brand symbol is one new entry in the `vet-survey` group, with no code change.

The display order is the order of the theme setting **Claim footnotes** (a `metaobject_list` setting). That lets the order change without code. Proposed order: `▲`, then the `vet-survey` entries (`▼`, `◆`, `★`, `△`, `**`), then `*` (FDA last, as in Jeremy's example). The order of the `vet-survey` entries sets the order of the symbols in its label.

The brand metaobject gets a new `division` field: `cc` for Cosamin and Avmacol, `vs` for the other 17 brands. Pages, articles and collections get an optional `custom.claims_division` metafield as an override.

Sample definition (Admin GraphQL; to run in phase 1 after approval; not run):

```graphql
mutation {
  metaobjectDefinitionCreate(definition: {
    type: "claim_footnote"
    name: "Claim footnote"
    access: { storefront: PUBLIC_READ }
    capabilities: { publishable: { enabled: true }, translatable: { enabled: true } }
    fieldDefinitions: [
      { key: "symbols", name: "Symbols", type: "list.single_line_text_field", required: true }
      { key: "group", name: "Group (same group = one footnote)", type: "single_line_text_field" }
      { key: "legacy_symbols", name: "Legacy symbols", type: "list.single_line_text_field" }
      { key: "label", name: "Label (blank = symbols found)", type: "single_line_text_field" }
      { key: "text", name: "Footnote text", type: "rich_text_field", required: true }
      { key: "division", name: "Division", type: "single_line_text_field",
        validations: [{ name: "choices", value: "[\"any\",\"cc\",\"vs\"]" }] }
      { key: "brands", name: "Brands", type: "list.metaobject_reference",
        validations: [{ name: "metaobject_definition_id", value: "<brand definition GID>" }] }
      { key: "brand_only", name: "Only on its own brands' pages", type: "boolean" }
    ]
  }) { metaobjectDefinition { id } userErrors { field message } }
}
```

### 3.2 Page division and brand (`snippets/claims-context.liquid`)

| Page | Division |
|---|---|
| Product | `product.metafields.custom.brand.value.division`, else vendor ("Consumer Care" means cc, "Veterinary Sciences" means vs) |
| `/pages/brand/<handle>` | that brand's `division` |
| `/pages/species/human` | cc. Other species are vs |
| Vet blog (`vet-learning-center`), vet layout pages | vs |
| Everything else (home, collections, search, cart, news, policies) | shared, unless `custom.claims_division` is set |

The same snippet, called with `part: 'brand'`, returns the page brand: the product's `custom.brand`, the brand of a `/pages/brand/<handle>` page, a page's optional `custom.claims_brand` metafield, or a page handle that contains a brand handle (e.g. `dasuquin-about`). It is blank on shared pages, and then no brand rule applies. The brand only matters for `brand_only` entries.

On a shared page, the FDA footnote renders only when the HTML contains `data-claims-division="cc"`. Product cards and featured-product blocks add that attribute for Consumer Care products, which is a one-line change in `snippets/product-card.liquid`.

```liquid
{%- doc -%}
  Echoes the claims division for the current page (cc, vs or shared),
  or with part: 'brand' the page's brand handle (blank when not one brand).
  Order: explicit page/article/collection metafield, brand division,
  product vendor, URL of brand/species metaobject pages, vet blog, else shared.

  @param {string} [part] - 'brand' to echo the brand handle instead of the division

  @example
  {% capture claims_division %}{% render 'claims-context' %}{% endcapture %}
  {% capture claims_brand %}{% render 'claims-context', part: 'brand' %}{% endcapture %}
{%- enddoc -%}
{%- liquid
  assign claims_division = ''
  assign claims_brand = ''
  case request.page_type
    when 'product'
      assign claims_brand = product.metafields.custom.brand.value.system.handle
      assign claims_division = product.metafields.custom.brand.value.division.value
      if claims_division == blank
        case product.vendor
          when 'Consumer Care'
            assign claims_division = 'cc'
          when 'Veterinary Sciences'
            assign claims_division = 'vs'
        endcase
      endif
    when 'page'
      assign claims_division = page.metafields.custom.claims_division.value
      assign claims_brand = page.metafields.custom.claims_brand.value.system.handle
      if claims_brand == blank
        for page_brand in metaobjects.brand.values
          if page.handle contains page_brand.system.handle
            assign claims_brand = page_brand.system.handle
            if claims_division == blank
              assign claims_division = page_brand.division.value
            endif
          endif
        endfor
      endif
    when 'article'
      assign claims_division = article.metafields.custom.claims_division.value
      if claims_division == blank and blog.handle contains 'vet'
        assign claims_division = 'vs'
      endif
    when 'blog'
      if blog.handle contains 'vet'
        assign claims_division = 'vs'
      endif
    when 'collection'
      assign claims_division = collection.metafields.custom.claims_division.value
    when 'metaobject'
      assign path_parts = request.path | split: '/'
      assign mo_handle = path_parts | last
      if request.path contains '/pages/brand/'
        assign claims_division = metaobjects.brand[mo_handle].division.value
        assign claims_brand = mo_handle
      elsif request.path contains '/pages/species/'
        if mo_handle == 'human' or mo_handle == 'humans'
          assign claims_division = 'cc'
        else
          assign claims_division = 'vs'
        endif
      endif
  endcase
  if part == 'brand'
    echo claims_brand | strip
  else
    echo claims_division | default: 'shared' | strip
  endif
-%}
```

### 3.3 Server-side detection and rendering (`snippets/claim-footnotes.liquid`)

How it works:

1. Drops anything between `<!--claim-fn-ignore-->` and `<!--/claim-fn-ignore-->`. That covers footnote lists already rendered, and any region an editor wants excluded.
2. Runs `strip_html`, which removes tags and attributes along with the content of `<script>`, `<style>` and HTML comments. Alt text and JSON never count as markers.
3. Removes the `[[ingredients]]` and `[[directions]]` ranges, which is where the 130 Vet `▲`, the supplement-facts `**` and all the `†` `‡` live.
4. Removes runs of rating stars (`★★`…`★★★★★`), so review stars never count as the Denamarin `★`.
5. Checks `**` first, then removes it before checking for a single `*`. `▲` and `△` are different characters, so the Consumer Care `▲` and Welactin `△` never match each other.
6. Applies the entry's division, and for `brand_only` entries the page brand.
7. Collects the symbols found for each group, then renders one footnote per group with the symbols in registry order.
8. Skips a footnote that a section slot already rendered (`data-claim-fn="…"`), so it doesn't repeat.
9. Supports explicit references for images and badges: `data-claim-ref="vs-company"` (an entry handle) on the element.

```liquid
{%- doc -%}
  Renders the claim footnotes needed by a piece of rendered HTML.
  Footnotes come from the claim_footnote metaobjects listed in the theme
  setting "Claim footnotes" (settings.claim_footnotes), in that order.
  Entries that share a group render as one footnote line that lists every
  symbol found, in registry order, e.g. "▼, ◆, ** Source: ...".

  @param {string} html - Rendered HTML to scan, e.g. captured content_for_layout
  @param {string} division - Page context: cc, vs or shared
  @param {string} [brand] - Page brand handle; entries marked brand_only count only on their own brands' pages
  @param {string} scope - main, footer or section; used in ids and classes
  @param {boolean} [legacy] - Also detect legacy_symbols (during content migration)

  @example
  {% render 'claim-footnotes', html: main_html, division: claims_division, scope: 'main' %}
{%- enddoc -%}
{%- liquid
  assign registry = settings.claim_footnotes

  assign kept = ''
  assign chunks = html | split: '<!--claim-fn-ignore-->'
  for chunk in chunks
    if forloop.first
      assign kept = kept | append: chunk
    else
      assign tail = chunk | split: '<!--/claim-fn-ignore-->'
      if tail.size > 1
        assign kept = kept | append: tail.last
      endif
    endif
  endfor

  assign page_has_cc = false
  if division == 'cc'
    assign page_has_cc = true
  elsif kept contains 'data-claims-division="cc"'
    assign page_has_cc = true
  endif
  assign page_has_vs = false
  if division == 'vs'
    assign page_has_vs = true
  elsif division == 'shared'
    assign page_has_vs = true
  endif

  assign text = kept | strip_html
  assign zone_keys = 'ingredients,directions' | split: ','
  for zone_key in zone_keys
    assign zone_open = '[[' | append: zone_key | append: ']]'
    assign zone_close = '[[/' | append: zone_key | append: ']]'
    if text contains zone_open
      assign zone_parts = text | split: zone_open
      assign rebuilt = ''
      for zone_part in zone_parts
        if forloop.first
          assign rebuilt = rebuilt | append: zone_part
        else
          assign zone_tail = zone_part | split: zone_close
          if zone_tail.size > 1
            assign rebuilt = rebuilt | append: zone_tail.last
          endif
        endif
      endfor
      assign text = rebuilt
    endif
  endfor
  assign text = text | remove: '★★★★★' | remove: '★★★★' | remove: '★★★' | remove: '★★'
  assign text_single = text | remove: '**'

  assign found_all = ';'
  for fn in registry
    assign fn_key = fn.system.handle
    assign fn_group = fn.group.value | default: fn_key
    assign fn_division = fn.division.value | default: 'any'
    if fn_division == 'cc' and page_has_cc == false
      continue
    endif
    if fn_division == 'vs' and page_has_vs == false
      continue
    endif

    assign rendered_marker = 'data-claim-fn="' | append: fn_group | append: '"'
    if scope != 'section' and html contains rendered_marker
      continue
    endif

    if brand != blank and fn.brand_only.value == true and fn.brands.value != blank
      assign brand_match = false
      for fn_brand in fn.brands.value
        if fn_brand.system.handle == brand
          assign brand_match = true
        endif
      endfor
      if brand_match == false
        continue
      endif
    endif

    assign found = ''
    for symbol in fn.symbols.value
      if symbol == '*'
        if text_single contains '*'
          assign found = found | append: symbol | append: '|'
        endif
      elsif text contains symbol
        assign found = found | append: symbol | append: '|'
      endif
    endfor
    if legacy and fn.legacy_symbols.value != blank
      for symbol in fn.legacy_symbols.value
        if symbol == '*'
          if division == 'vs' and text_single contains '*'
            assign found = found | append: symbol | append: '|'
          endif
        elsif text contains symbol
          assign found = found | append: symbol | append: '|'
        endif
      endfor
    endif

    assign explicit_ref = 'data-claim-ref="' | append: fn_key | append: '"'
    if found == blank and kept contains explicit_ref
      assign found = fn.symbols.value | join: '|'
    endif
    if found != blank
      assign found_all = found_all | append: fn_key | append: '=' | append: found | append: ';'
    endif
  endfor

  assign done_groups = ','
  capture items
    for fn in registry
      assign fn_key = fn.system.handle
      assign key_marker = ';' | append: fn_key | append: '='
      unless found_all contains key_marker
        continue
      endunless
      assign fn_group = fn.group.value | default: fn_key
      assign group_marker = ',' | append: fn_group | append: ','
      if done_groups contains group_marker
        continue
      endif
      assign done_groups = done_groups | append: fn_group | append: ','

      assign found = ''
      for member in registry
        assign member_group = member.group.value | default: member.system.handle
        if member_group == fn_group
          assign member_marker = ';' | append: member.system.handle | append: '='
          if found_all contains member_marker
            assign member_found = found_all | split: member_marker | last | split: ';' | first
            assign found = found | append: member_found
          endif
        endif
      endfor

      assign found_symbols = found | split: '|' | uniq
      assign fn_label = fn.label.value
      if fn_label == blank
        assign fn_label = found_symbols | join: ', '
      endif
      assign fn_id = 'claim-fn-' | append: scope | append: '-' | append: fn_group
      assign found_attr = found_symbols | join: '|' | escape
      echo '<li class="claim-footnotes__item" id="' | append: fn_id | append: '" data-claim-fn="' | append: fn_group | append: '" data-claim-symbols="' | append: found_attr | append: '">'
      echo '<span class="claim-footnotes__symbol">' | append: fn_label | append: '</span> '
      echo fn.text | metafield_tag
      echo '</li>'
    endfor
  endcapture
-%}
{%- if items != blank -%}
  <!--claim-fn-ignore-->
  <aside class="claim-footnotes claim-footnotes--{{ scope }}" aria-label="Footnotes" data-claim-footnotes="{{ scope }}">
    <ul class="claim-footnotes__list" role="list">
      {{- items -}}
    </ul>
  </aside>
  <!--/claim-fn-ignore-->
{%- endif -%}
{% stylesheet %}
  .claim-footnotes {
    font-size: 0.8125rem;
    line-height: 1.4;
    margin-block: 1.5rem;
    padding-inline: var(--page-margin, 1rem);
  }
  .claim-footnotes__list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .claim-footnotes__item {
    display: flex;
    gap: 0.25em;
  }
  .claim-footnotes__item p {
    margin: 0;
    font-style: italic;
  }
  .claim-ref a {
    color: inherit;
    text-decoration: none;
  }
  .claim-ref a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 1px;
  }
{% endstylesheet %}
```

### 3.4 Layout change (both `layout/theme.liquid` and `layout/vet.liquid`)

The current code is at `theme.liquid` lines 103 to 114 and `vet.liquid` lines 176 to 187:

```liquid
<main id="MainContent" class="content-for-layout" role="main" data-template="{{ template }}">
  {{ content_for_layout }}
</main>
<footer>
  {% sections 'footer-group' %}
</footer>
```

Proposed:

```liquid
<!doctype html>
<html lang="{{ request.locale.iso_code }}">
  <head>
    <title>{{ page_title }}</title>
    {{ content_for_header }}
  </head>
  <body>
    {%- capture claims_division -%}{% render 'claims-context' %}{%- endcapture -%}
    {%- capture claims_brand -%}{% render 'claims-context', part: 'brand' %}{%- endcapture -%}
    {%- capture main_html -%}{{ content_for_layout }}{%- endcapture -%}
    <main id="MainContent" class="content-for-layout" role="main" data-template="{{ template }}" data-claims-division="{{ claims_division }}">
      {{ main_html }}
      {% render 'claim-footnotes', html: main_html, division: claims_division, brand: claims_brand, scope: 'main', legacy: settings.claim_footnotes_legacy %}
    </main>
    <footer>
      {%- capture footer_html -%}{% sections 'footer-group' %}{%- endcapture -%}
      {{ footer_html }}
      {% render 'claim-footnotes', html: footer_html, division: 'shared', scope: 'footer', legacy: settings.claim_footnotes_legacy %}
    </footer>
    {% render 'claim-footnotes-registry', division: claims_division, brand: claims_brand %}
  </body>
</html>
```

The footer passes no brand, because the footer is the same on every page. The footnote list is rendered **inside `<main>`**. `variant-picker.js` replaces all of `<main>` with the new product's server HTML when a shopper switches to another combined-listing product. The footnotes therefore always match the product on screen, with no JavaScript needed for that case.

Two new theme settings go in the "Claims" group of `config/settings_schema.json`:

```json
{ "type": "metaobject_list", "id": "claim_footnotes", "label": "Claim footnotes", "metaobject_type": "claim_footnote", "limit": 20 },
{ "type": "checkbox", "id": "claim_footnotes_legacy", "label": "Also detect legacy claim symbols", "default": true }
```

### 3.5 Footnotes near the claim (optional section slot, `blocks/claim-footnotes.liquid`)

By default footnotes render at the end of the main content, just above the footer. Any section that should show its footnotes right below its own content can take a **Claim footnotes** block. Good candidates are the product-information section under the buy box, brand heroes and the "quality" sections that hold typed footnotes today. The script fills the slot and hides the end-of-page copy if nothing else on the page refers to it. Without JavaScript, the end-of-page list is still there.

```liquid
{%- doc -%}
  Section-level footnote slot. Add it to any section that makes claims to
  show that section's footnotes right under its content. The layout list
  skips footnotes a slot already shows.
{%- enddoc -%}
<div class="claim-footnotes-slot" data-claim-footnotes-slot {{ block.shopify_attributes }}></div>
{% schema %}
{
  "name": "Claim footnotes",
  "settings": [],
  "presets": [{ "name": "Claim footnotes" }]
}
{% endschema %}
```

### 3.6 JavaScript (`assets/claim-footnotes.js` and the registry JSON)

What it does:

- Wraps each registered marker that directly follows text in `<sup class="claim-ref"><a href="#claim-fn-…" aria-describedby="claim-fn-…">`. If the symbol is already inside the `<sup>` from `text-escape`, it reuses that `<sup>`.
- Skips scripts, styles, links, ingredient panels (`product-customer-instructions`, `[data-shortcode-pending]`) and the footnote lists themselves.
- Groups entries the same way as the server (one footnote per group, symbols merged in registry order), skips `★★★★★` rating stars, and applies `brand_only` using the nearest `data-claims-brand`.
- Applies division rules to each element using the nearest `data-claims-division`, so a Consumer Care product card on the home page gets the FDA link and a "YES*" on a policy page does not.
- Handles content added after page load, such as the quick-add modal, the where-to-buy dialog, the cart drawer and predictive search. A MutationObserver adds a small footnote list inside that dialog or section when the page's own list doesn't cover it.
- Re-runs on `ThemeEvents.variantUpdate`, the same hook `product-description.js` uses for combined listings, and on `shopify:section:load` in the theme editor.

```liquid
{%- doc -%}
  Outputs the footnote registry as JSON for assets/claim-footnotes.js,
  which links markers and covers content loaded after page render.

  @param {string} division - Page context: cc, vs or shared
  @param {string} [brand] - Page brand handle

  @example
  {% render 'claim-footnotes-registry', division: claims_division, brand: claims_brand %}
{%- enddoc -%}
<script type="application/json" id="claim-footnote-registry" data-division="{{ division | escape }}" data-brand="{{ brand | escape }}">
  [
  {%- for fn in settings.claim_footnotes -%}
    {
      "key": {{ fn.system.handle | json }},
      "group": {{ fn.group.value | default: fn.system.handle | json }},
      "division": {{ fn.division.value | default: 'any' | json }},
      "brands": {{ fn.brands.value | map: 'system' | map: 'handle' | json }},
      "brandOnly": {{ fn.brand_only.value | default: false | json }},
      "symbols": {{ fn.symbols.value | json }},
      "legacy": {% if settings.claim_footnotes_legacy %}{{ fn.legacy_symbols.value | json }}{% else %}[]{% endif %},
      "label": {{ fn.label.value | json }},
      "html": {{ fn.text | metafield_tag | json }}
    }{%- unless forloop.last -%},{%- endunless -%}
  {%- endfor -%}
  ]
</script>
<script src="{{ 'claim-footnotes.js' | asset_url }}" type="module"></script>
```

```js
import { ThemeEvents } from '@theme/events';

const registryEl = document.getElementById('claim-footnote-registry');
const registry = registryEl ? JSON.parse(registryEl.textContent || '[]') : [];
const pageDivision = registryEl?.dataset.division || 'shared';
const pageBrand = registryEl?.dataset.brand || '';
const order = new Map(registry.flatMap((fn, i) => [...(fn.symbols || []), ...(fn.legacy || [])].map((s, j) => [s, i * 100 + j])));
const SKIP = 'script, style, template, textarea, noscript, a, product-customer-instructions, [data-shortcode-pending], .claim-footnotes, [data-claim-fn-ignore]';

const applies = (fn, division, brand) =>
  (fn.division === 'any' || fn.division === division || (division === 'shared' && fn.division === 'vs')) &&
  (!brand || !fn.brandOnly || !fn.brands?.length || fn.brands.includes(brand));

function symbolMap(division, brand) {
  const map = new Map();
  for (const fn of registry) {
    if (!applies(fn, division, brand)) continue;
    for (const s of [...(fn.symbols || []), ...(fn.legacy || [])]) if (!map.has(s)) map.set(s, fn);
  }
  return map;
}

function markerRegex(map) {
  const parts = [...map.keys()]
    .sort((a, b) => b.length - a.length)
    .map((s) => s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'));
  return parts.length ? new RegExp(`(?<=[^\\s*★])(${parts.join('|')})(?!★)`, 'gu') : null;
}

function divisionFor(node) {
  const own = node.closest?.('[data-claims-division]');
  return own?.dataset.claimsDivision || pageDivision;
}

function brandFor(node) {
  const own = node.closest?.('[data-claims-brand]');
  return own ? own.dataset.claimsBrand : pageBrand;
}

export function markClaims(root = document.body) {
  const found = new Map();
  const walker = document.createTreeWalker(root, NodeFilter.SHOW_TEXT, {
    acceptNode: (n) => (n.parentElement && !n.parentElement.closest(SKIP) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT),
  });
  const nodes = [];
  for (let n = walker.nextNode(); n; n = walker.nextNode()) nodes.push(n);

  for (const node of nodes) {
    const map = symbolMap(divisionFor(node.parentElement), brandFor(node.parentElement));
    const re = markerRegex(map);
    if (!re || !re.test(node.data)) continue;
    re.lastIndex = 0;
    const frag = document.createDocumentFragment();
    let last = 0;
    for (const m of node.data.matchAll(re)) {
      const fn = map.get(m[1]);
      frag.append(node.data.slice(last, m.index));
      const scopeEl = scopeFor(node.parentElement);
      const target = `claim-fn-${scopeKey(scopeEl)}-${fn.group}`;
      const a = Object.assign(document.createElement('a'), { href: `#${target}`, textContent: m[1] });
      a.setAttribute('aria-describedby', target);
      const insideSup = node.parentElement.tagName === 'SUP';
      const sup = insideSup ? a : Object.assign(document.createElement('sup'), { className: 'claim-ref' });
      if (!insideSup) sup.append(a);
      frag.append(sup);
      last = m.index + m[1].length;
      if (!found.has(scopeEl)) found.set(scopeEl, new Map());
      const entry = found.get(scopeEl).get(fn.group) || { fn, symbols: new Set(), target };
      entry.symbols.add(m[1]);
      found.get(scopeEl).set(fn.group, entry);
    }
    frag.append(node.data.slice(last));
    if (node.parentElement.tagName === 'SUP') node.parentElement.classList.add('claim-ref');
    node.replaceWith(frag);
  }
  ensureFootnotes(found);
  hideUnreferenced();
}

function scopeFor(el) {
  const section = el.closest('.shopify-section');
  if (section?.querySelector('[data-claim-footnotes-slot]')) return section;
  return el.closest('dialog, main, footer') || document.body;
}

const scopeIds = new WeakMap();
let scopeSeq = 0;
function scopeKey(el) {
  if (el === document.body || el.tagName === 'MAIN') return 'main';
  if (el.tagName === 'FOOTER') return 'footer';
  if (!scopeIds.has(el)) scopeIds.set(el, el.id || `s${++scopeSeq}`);
  return scopeIds.get(el);
}

function ensureFootnotes(found) {
  for (const [scopeEl, fns] of found) {
    for (const { fn, symbols, target } of fns.values()) {
      const slot = scopeEl.querySelector('[data-claim-footnotes-slot]');
      const existing = document.getElementById(target) || scopeEl.querySelector(`[data-claim-fn="${fn.group}"]`);
      if (existing && (!slot || slot.contains(existing))) {
        existing.id ||= target;
        relinkTo(scopeEl, fn.group, existing.id);
        mergeSymbols(existing, symbols, fn);
        continue;
      }
      const host = slot || appendList(scopeEl);
      const li = document.createElement('li');
      li.className = 'claim-footnotes__item';
      li.id = target;
      li.dataset.claimFn = fn.group;
      li.innerHTML = `<span class="claim-footnotes__symbol"></span> ${fn.html}`;
      mergeSymbols(li, symbols, fn);
      (host.querySelector('ul') || host).append(li);
    }
  }
}

function hideUnreferenced() {
  document.querySelectorAll('.claim-footnotes--main [data-claim-fn]').forEach((li) => {
    const used = document.querySelector(`.claim-ref a[href="#${li.id}"]`);
    li.hidden = !used && document.querySelector(`[data-claim-footnotes-slot] [data-claim-fn="${li.dataset.claimFn}"]`) !== null;
  });
}

function mergeSymbols(li, symbols, fn) {
  const all = new Set([...(li.dataset.claimSymbols || '').split('|').filter(Boolean), ...symbols]);
  li.dataset.claimSymbols = [...all].join('|');
  const span = li.querySelector('.claim-footnotes__symbol');
  if (span && !fn.label) span.textContent = [...all].sort((a, b) => (order.get(a) ?? 1e9) - (order.get(b) ?? 1e9)).join(', ');
  else if (span) span.textContent = fn.label;
}

function relinkTo(scopeEl, key, id) {
  scopeEl.querySelectorAll(`.claim-ref a[href^="#claim-fn-"][href$="-${key}"]`).forEach((a) => {
    a.href = `#${id}`;
    a.setAttribute('aria-describedby', id);
  });
}

function appendList(scopeEl) {
  const aside = document.createElement('aside');
  aside.className = 'claim-footnotes claim-footnotes--inline';
  aside.setAttribute('aria-label', 'Footnotes');
  aside.innerHTML = '<ul class="claim-footnotes__list" role="list"></ul>';
  (scopeEl.querySelector('.dialog-content, .section') || scopeEl).append(aside);
  return aside;
}

function init() {
  markClaims(document.body);
  new MutationObserver((records) => {
    for (const r of records) {
      for (const n of r.addedNodes) {
        if (n.nodeType === Node.ELEMENT_NODE && !n.closest('.claim-footnotes') && !n.querySelector?.('.claim-ref')) markClaims(n);
      }
    }
  }).observe(document.body, { childList: true, subtree: true });
}

document.addEventListener(ThemeEvents.variantUpdate, () => requestAnimationFrame(() => markClaims(document.querySelector('main') || document.body)));
document.addEventListener('shopify:section:load', (e) => markClaims(e.target));

if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', init, { once: true });
else init();
```

### 3.7 Checks run on the samples

- **Shopify theme-check** (`@shopify/theme-check-node`, recommended checks): 0 problems on the snippets, block, layout and settings. A deliberately broken file was flagged, which confirms the checker was running.
- **JavaScript**: `node --check` passes.
- **Liquid logic** was tested with python-liquid, using a test registry, on hand-made cases and on the real description and short description of every active product:

| Case | Footnotes rendered |
|---|---|
| Dasuquin product: `◆` claim, company `**`, Vet `▲` and `*` inside the ingredients panel | `◆, **` Vet survey |
| Cosequin product: `▼` claim, company `**`, `▲` in the ingredients panel | `▼, **` Vet survey |
| Page with a Cosequin `▼`, a Dasuquin `◆` and a company `**` | `▼, ◆, **` Vet survey, once |
| Denamarin product: `★` claim and `**` | `★, **` Vet survey |
| Welactin product: `△` claim only | `△` Vet survey |
| Dasuquin brand page before migration (legacy mode): ratings `△`, `♦` claim and `**` | `♦, **` Vet survey. The ratings `△` doesn't count (Welactin `△` is `brand_only`) |
| Dasuquin page before migration (legacy mode): `♦`, `▼` and company `*` | `▼, ♦, *` Vet survey |
| Dasuquin product after migration (`▼` and `♦` changed to `◆`) | `◆, **` Vet survey |
| Cosequin product that also mentions a Dasuquin `◆` claim | `▼, ◆` Vet survey |
| Vet page with `★★★★★` review stars and `**` | `**` only |
| Vet ingredient panel with `▲` and `▼` notes only | none |
| Cosamin product: `▲` claim, `*` structure/function, a Vet `**` product-template section | `▲` (Cosamin + Avmacol), `**` Vet survey, `*` FDA |
| Shared page with Cosamin and Avmacol cards | `▲` once, `*` FDA |
| Legacy mode, before migration: Cosequin `▼` and company `*` | `▼, *` Vet survey |
| Legacy mode with a company `**` (no single `*`) | `**` only; the legacy `*` no longer matches inside `**` (fixed in this revision) |
| Article "International 5* Eventer" (Vet), privacy page "YES*" (shared) | none (unchanged from the first version) |

  On today's content with legacy mode on, all 221 active Vet products get the Vet survey footnote, labeled with the symbols each page uses: 29 `▼, *` (including the Dasuquin products that use `▼` today), 19 `◆, *`, 13 `★, *`, 5 `△, *`, 1 `▼, ◆, *`, and `*` alone on the rest. After migration the `*` reads `**` and the Dasuquin `▼` reads `◆`. All 18 active Consumer Care products get FDA, and the 5 with a `▲` claim also get the combined `▲` footnote.
- **Not verified yet.** python-liquid is close to Shopify Liquid but is not Shopify's engine. Three things must be checked on the unpublished copy of the theme: `strip_html` on real pages, `{% sections %}` inside `capture`, and `metaobject_list` settings. None of this has been tried on a Shopify theme yet.

---

## 4. Content and theme changes (migration)

The full row-by-row list with storefront and admin links is in `claims-footnotes-migration-20261119.csv`. Columns: division, brand, source, handle, field, status, combined listing role, kind, current symbol, proposed symbol, category, action, text, url, admin url, change group.

| Change | Rows | Products / other content | Notes |
|---|---|---|---|
| Vet company claim `*` → `**` | 209 | 129 items: 114 products, 14 theme templates, 1 article | Includes the three `product.json` claims and the footer marquee |
| Vet brand claims that keep their symbol (Cosequin `▼` 40, Dasuquin `◆` 36, Denamarin `★` 21, Welactin `△` 7) | 0 | | **No change**, so no rows |
| Dasuquin claims using `▼` → `◆` | 31 | 17 products (Dasuquin Advanced, Dasuquin for Cats) | `▼` is Cosequin only |
| Dasuquin `♦` → `◆` | 3 | `metaobject/brand.dasuquin.json` (2), `page.dasuquin-about.json` (1) | One Dasuquin diamond |
| Vet brand claims using a single `*` (Cosequin 23, Welactin 3, Denamarin 1, Crananidin 1, unknown 1) | 29 | 20 items | `*` will mean FDA only, so these need a brand symbol or `**` (question 1) |
| Remove typed Vet survey footnotes | 65 | 61 items | The automatic combined footnote replaces them, including the 7 Dasuquin ones that use `▼`. The Dasuquin ratings `△` footnote is **not** removed |
| Remove typed `▲` footnotes (Cosamin, Avmacol) | 5 | 5 theme templates | Replaced by the single combined `▲` footnote |
| Typed FDA text in theme templates | 5 | 5 | Keep, or let the automatic FDA footnote replace them (question 7) |
| Vet brand claims with no marker | 166 | 123 items | Add the brand's own symbol: Cosequin `▼` 78, Dasuquin `◆` 38, Denamarin `★` 36, Welactin `△` 7. The 7 for brands with no symbol wait for question 2 |
| Other claims with no marker (company 52, Consumer Care research 27, other 6) | 85 | | Add `**` or `▲` as listed, or confirm none is needed |
| Cosamin research claims using `*` | 2 | | Change to `▲` |
| Single `*` in Vet or shared content that isn't a company claim | 8 | e.g. "5* Eventer", "YES*", "Yeast Extract*" | Review. Some are not claims |
| Fix repeated text | 1 | article `news/cosequin®-celebrates-akc-diving-dogs-…` | |
| **Option, not decided:** supplement-facts `**` → `***` | 102 | 34 in 16 product descriptions on the store, 68 in 29 source files on WW7 | `change_group` = `panel-triple-star`. See 5.3 and question 12 |
| `**` claim marker in source Bullets only | 5 | 5 Dasuquin Advanced ESM SKUs | Needs its own symbol or removal (question 13) |
| Footer | 2 | `sections/footer-group.json` | Marquee `Company*` → `Company**`. Remove "* Source: …" from the legal text block; the footer list renders it automatically |

Changes to the CSV in this revision (577 → 715 rows): 31 rows added for Dasuquin claims that use `▼` (proposed `◆`). The 3 `♦` rows now propose `◆`, and the 7 Dasuquin `▼` typed-footnote rows are reworded. 102 `panel-triple-star` option rows and 5 Bullets review rows were added, and every row now has a `change_group`. The previous revision (726 → 577) had removed 135 brand rows that keep their symbol, 11 `▲` rows with no change and 3 ratings rows. Earlier versions are kept next to the CSV as `.pre-brandsymbols-20261119` and `.pre-dasuquin-symbols-20261119`.

Migration method: an Admin API script on WW7 run as nmxcode, reusing today's read-only token helper.

- It does a dry run first that writes a before-and-after CSV into this folder. Changes happen only after Jeremy approves that CSV.
- It changes one brand at a time.
- It saves each product's original `descriptionHtml` and metafields to `/root/backups/claims-footnotes-YYYYMMDD/` before writing.
- It changes only claim text, never the `[[ingredients]]` or `[[directions]]` ranges.
- It can be run again safely: `**` is never changed to `***`.
- It changes brand symbols only where listed (Dasuquin `▼` and `♦` → `◆`). It never touches `▼` in Cosequin claims, or `◆`, `★`, `△`, `▲`.
- Theme template edits go into the unpublished copy, never the live theme.

---

## 5. Edge cases

### 5.1 `**` in rich text and Markdown: options compared

- **Inside Shopify** (the product description editor, theme `richtext` and `inline_richtext` settings, page and article editors, rich text metafields), content is stored as HTML. `**` is plain text, not bold; the store already shows "**Percent Daily Values…" as written. The shopify.nutramax.com content pipeline (`content/Bullets`, `Ingredients` and the uploader) has no Markdown library, so files pass through unchanged.
- **The risk is upstream and in copy-paste.** Copy written in Markdown-aware tools (AI chat tools, Notion, GitHub, Slack and Teams) turns `**text**` into bold, or drops the asterisks on paste. A pair like `Company** … brand**` can bold the text in between and lose both markers.

| Option | How it's entered | Pros | Cons | Recommendation |
|---|---|---|---|---|
| A. Literal `**` and `◆` | type the symbol | What legal approves is exactly what shows. Feeds, Amazon CSV and Google get the same text | Markdown tools upstream can eat it | **Recommended** |
| B. HTML entity `&#42;&#42;` | HTML view only | Survives Markdown processors | `strip_html` doesn't decode entities, so add `&#42;&#42;` to `symbols` | Accept where needed |
| C. Token `[[vs-company]]` → `**` (resolved in `text-escape`) | type the token | Clear meaning, survives Markdown | Product descriptions go raw to other sales channels, so the token would show there. The theme's `[[…]]` parser would also have to ignore it | Theme settings only, if at all |
| D. `<sup data-claim-ref="vs-company">**</sup>` | HTML view | Clearest meaning, can mark a claim without a symbol | Too technical for routine editing | For special cases and image badges |

We also suggest extending `text-escape.liquid` to superscript `▲` and `◆` the same way it already does `★ ♦ △ ▼`. It should skip `★★★★★` runs. The script superscripts `**` and `*` when it links them.

### 5.2 Other cases

- **Ingredient panels.** Vet `▲`, the facts `**`, and all of `† ‡ ● ▴ ◇ ✝ § ⌃` are excluded by the panel ranges. A product whose facts aren't wrapped in `[[ingredients]]` would be checked, but today no claim text on the store contains `**`. The only `**` claim marker is in 5 source Bullets files on WW7 (question 13). The QA report (section 7) will flag any that show up.
- **Same symbol, different meanings.**
  - `▲` is a Consumer Care claim symbol and also a Vet ingredient note. The registry marks `▲` as `cc` and the panels are excluded, so a Vet product never gets the Cosamin and Avmacol footnote. The 130 Vet panel uses stay excluded.
  - `▲` (U+25B2, Consumer Care) and `△` (U+25B3, Welactin) look alike but are different characters, and detection keeps them apart. Editors should copy them from the registry rather than type them.
  - `△` is also the Dasuquin ratings symbol on the Dasuquin brand page. Welactin's entry is `brand_only`, so on Dasuquin pages that `△` doesn't trigger the Vet survey footnote, and its own typed ratings footnote stays (question 3).
  - `▼` is Cosequin only. Dasuquin's 31 `▼` claims change to `◆`. Until then they still get the footnote, and the QA scan flags `▼` in any non-Cosequin claim. `▼` inside ingredient panels (Dasuquin, Welactin, Imuquin notes such as "▼Not recognized as an essential nutrient by the AAFCO…") is excluded and unchanged (question 14).
  - `★★★★★` review stars are removed before checking, so only a single `★` after a claim counts as Denamarin's.
  - `◆` (U+25C6) and `♦` (U+2666) are different characters. Dasuquin uses `◆` only. `♦` is a legacy symbol of the Dasuquin entry until its 3 uses are changed. Filaquin's `♦` ingredient note ("♦Contains beta-1,3/1,6-glucan.") is inside the panel and unaffected.
- **Duplicates during the transition.** Until typed footnotes are removed, a page can show the typed one and the automatic one. The automatic footnote is skipped only when the identical text is already present, which is rare because the wording changes. This is why the content migration comes before turning legacy mode off.
- **Combined listings.** All of `<main>` is replaced on a product switch, so server footnotes are fresh and the script adds the links again on `variantUpdate`.
- **Theme editor.** Section reloads don't re-render the layout. The script adds any missing footnotes on `shopify:section:load`, and a full reload is exact.
- **Images, SVG badges and logos** (the where-to-buy "Number 1 Veterinarian Recommended" badge, accolade logos) can't carry a symbol. Use `data-claim-ref` or a caption, or hide them on Consumer Care pages (question 6).
- **Sales channels and feeds** (Google, Shop app, Amazon CSV) get raw `descriptionHtml` without theme footnotes. Removing typed footnotes from descriptions would also remove them from feeds (question 10). If feeds must keep them, leave them in the description inside `<p class="claim-fn-source">`, hide that class on the storefront, and let the automatic footnote show.
- **Translations and markets.** Footnote text is a translatable metaobject field (Translate & Adapt).
- **Email, checkout and the Shop app** aren't covered by the theme and are out of scope.

### 5.3 Option (not decided): supplement-facts `**` → `***`

Jeremy's idea: change the `**` in ingredient and supplement-facts panels to `***`, so `**` only ever means the Vet company claim.

**Where `**` is today** (fresh scan on Nov 19 2026 of every store field and of the shopify.nutramax.com `content/` folder on WW7):

| Where | `**` | Brands (products or files) | Context |
|---|---|---|---|
| Store: product descriptions, `[[ingredients]]` panel | 34 (18 markers, 16 footnote lines) | Cosamin 18 (8 products), Avmacol 6 (3), Cosequin horse 8 (4), Imuquin 2 (1). Consumer Care 24, Vet 10. All active | Cosamin and Avmacol: `Total Carbohydrates 2 g <1%**` with `**Percent Daily Values are based on a 2,000 calorie diet.` (their `†` is "Daily Value Not Established"). Cosequin horse: `Glucosamine**†` with `**Reported as Glucosamine Hydrochloride`. Imuquin: `Yeast Extract and Marine Lipids**:` with `**NMX580®, a proprietary blend…` |
| Store: `[[directions]]` panels, all metafields (incl. `custom.short_description`), pages, articles, collections, metaobjects, theme templates, sections, snippets, locales | 0 | | |
| WW7 `content/Ingredients` | 36 in 17 files | same products by SKU (Cosamin, Avmacol, Cosequin EQN280/700/1400 and 3000252, Imuquin 3000070) | same text as the store |
| WW7 `content/Supplement_Facts` | 26 in 12 files | Cosamin, Avmacol | same |
| WW7 `content/vetsi.csv` (LONG_DESCRIPTION) | 6 in 3 rows | Cosequin EQN280/700/1400 | `**Reported as Glucosamine…` |
| WW7 `content/Directions`, `content/Instructions` | 0 | | |
| WW7 `content/Bullets` | 5 in 5 files | Dasuquin Advanced ESM | A **claim** marker, not a panel note: "…quick response in joint comfort and function in dogs.**". The store copy has no marker. Not part of this option (question 13) |

**Does `***` collide with anything?** No content uses `***` today: none on the store, and none in `content/`. The only `***` in the theme is a CSS comment (`/*** Media border-radius feature ****/` in `snippets/product-media.liquid`), which sits inside `<style>` and is removed by `strip_html`. JavaScript files have `/**` comments, but those are never scanned.

**Effect.**
- **Detection.** Remove `***` runs before checking (the same way as `★★★★★`), then `**` anywhere means the Vet company claim. That protects pages whose facts aren't wrapped in `[[ingredients]]`, and the QA scan becomes simpler. Panel exclusion is **still needed** for the other symbols: the 130 Vet `▲` notes, the Dasuquin, Welactin and Imuquin `▼` notes, `◆` and `♦` notes, `†`, `‡`, and the single `*` notes such as "*Each scoop contains…". So the gain is real but small for the theme.
- **Outside the theme.** The bigger gain is in feeds and marketplace copy (Google, Shop app, Amazon, Chewy, `vetsi.csv`), where no panel exclusion exists. There a reader can't tell `**` for the company claim from `**` for Percent Daily Values today.
- **Cost.** 34 store edits on 16 products, plus 68 edits in 29 source files so the next upload doesn't bring `**` back. All rows are in the CSV with `change_group` = `panel-triple-star` and say "OPTION, not decided".
- **Markdown risk.** `***` is worse than `**` in Markdown tools: `***text***` becomes bold italic, and a line with only `***` becomes a horizontal rule (see 5.1).
- **Regulatory, for legal (not asserted here).** Supplement Facts panels conventionally use `*` or `†` for "Daily Value not established", and a symbol for the Percent Daily Values footnote. The website copy usually mirrors the printed label. Legal or regulatory should confirm `***` is acceptable, and whether the printed labels would have to match, before any change. The alternative is leaving panels as they are, which the current design already handles.

---

## 6. Accessibility, SEO, performance

- **Accessibility.**
  - Each marker is a link with `aria-describedby`, so screen readers read the footnote text after the claim, and keyboard users can tab to it. It has a visible focus ring and inherits its color, so it isn't styled as a regular link.
  - Footnotes sit in `<aside aria-label="Footnotes">` as a list. Text is 13px italic in the same color scheme; check contrast is at least 4.5:1.
  - Screen readers read symbols as "black diamond", "star star" and so on. Optionally add visually hidden text such as "see footnote".
- **SEO.**
  - Footnotes are rendered on the server, so search engines see them, and the repeated text is normal boilerplate with no penalty.
  - Product JSON-LD keeps the raw symbols, which is harmless.
  - Keep symbols out of SEO titles and meta descriptions; today no claims are there.
- **Performance.**
  - The server side is a handful of `split` and `contains` calls on HTML already in memory, about 100 to 500 KB per page, checked against at most a few registry entries. That is negligible next to section rendering; confirm with Shopify Theme Inspector on the copy.
  - The script makes one TreeWalker pass over the page on load and on product switches. The observer only looks at newly added nodes. There are no network calls: the registry is inline JSON of about 1 KB.

---

## 7. Workflow for new content

1. Write the claim and type its symbol right after it, with no space:

   | Claim | Symbol |
   |---|---|
   | Vet company claim | `**` |
   | Vet brand claim | the brand's own symbol: Cosequin `▼` (Cosequin only), Dasuquin `◆` (not `♦`), Denamarin `★`, Welactin `△` (brands without one: question 2) |
   | Cosamin or Avmacol brand claim | `▲` |
   | Consumer Care structure/function claim | `*` |

2. **Don't type the footnote text.** The theme adds it once per page, plus once in the footer if the footer makes the claim.
3. Image or badge claims: add `data-claim-ref="<handle>"` (developer task) or a caption with the symbol.
4. A brand that gets its own symbol: add a `claim_footnote` entry with group `vet-survey`, the brand and the symbol, and put it in the theme setting in the right order.
5. A new kind of claim or source: create a `claim_footnote` entry (legal-approved text), then add it to the theme setting "Claim footnotes" in the right order.
6. A weekly read-only QA scan, the same scan used today run on WW7, writes a CSV to this folder. It flags:
   - claims with no marker
   - symbols not in the registry
   - a brand claim using another brand's symbol, e.g. `▼` outside Cosequin, or `♦`
   - a single `*` in Vet content
   - typed footnote text still in content
   - `**` outside the panels on Consumer Care products
   - products with no brand or division

   It can be set up as a recurring job if wanted.

---

## 8. Phased rollout (each phase needs Jeremy's OK; theme and content writes use the admin app's write_themes and product scopes)

| Phase | Work | Visible to shoppers? | Backup / rollback |
|---|---|---|---|
| 0. Decisions | Answers to section 9 | No | |
| 1. Build | Duplicate Nutramax Theme into an unpublished "Nutramax Theme - footnotes". Create the `claim_footnote` definition and 7 entries, add the brand `division` field and values, and add the snippets, block, JS, settings and both layout changes. Legacy mode on | No (the copy is unpublished; metaobjects are unused until the theme is published) | Today's full theme pull is in `/home/nmxcode/footnotes-20261119/dump/`, and a fresh one is taken right before. The copy itself is the rollback |
| 2. QA on preview | Test plan below, desktop and mobile, with and without JavaScript | No | |
| 3. Migrate content | Template edits in the copy (footer, product.json, brand, page and species templates). Then products one brand at a time: Vet company `**`, Dasuquin `▼`/`♦` → `◆` (other brand symbols stay), remove typed footnotes, add missing markers, fix the article text | Product and metafield edits are live as soon as they're saved, while the published theme is still the old one. So this runs right before or right after publishing, brand by brand | Before and after JSON per product in `/root/backups/claims-footnotes-YYYYMMDD/` plus a CSV here; a revert script puts the originals back |
| 4. Publish | Publish the copy. Remove the footer's typed footnote. Keep legacy mode on 1 to 2 weeks, then turn it off when the QA scan is clean | Yes | Republish the previous theme in one click; revert content from the backups |

### Test plan

| Page | Expected |
|---|---|
| `/products/cosamin-ds` (parent), then switch to each child | `▲` combined footnote and `*` FDA near the end of main. No Vet footnote in main unless the product-template Vet sections stay; if so `**` Vet survey too. Footnote matches after each switch |
| `/products/cosm-asu-hum-cap-90ct`, an Avmacol parent such as `avmacol®-extra-strength` | as above |
| A Dasuquin product, e.g. `nutramax-dasuquin-for-small-to-medium-dogs-joint-h…` | `◆, **` Vet survey once. The ingredients tab `▲` notes aren't linked |
| A Dasuquin product that uses `▼` today, e.g. Dasuquin Advanced | `▼, *` in legacy mode, then `◆, **` after migration |
| A Cosequin dog product and horse product (`▼` and `*` brand claims) | `▼, *` in legacy mode, then `▼, **` after migration |
| A Denamarin (`★`) and a Welactin (`△`) product | `★, **` and `△, **` Vet survey. Review stars don't add `★` |
| A page with Cosequin and Dasuquin products, e.g. `/collections/all` or search "quin" | `▼, ◆, **` once |
| `/pages/brand/cosamin`, `/pages/brand/avmacol`, `/pages/cosamin-about`, `/pages/avmacol-about`, `/pages/avmacol-faq`, `/pages/species/human` | `▲` combined and `*` FDA. Footer shows the `**` footnote only if the marquee is kept on those pages |
| `/pages/brand/dasuquin`, `/pages/dasuquin-about` | Vet survey with `♦, **` in legacy mode, then `◆, **` after migration. The ratings `△` keeps its own typed footnote and doesn't add the Welactin symbol |
| `/pages/brand/cosequin`, `/pages/cosequin-dogs`, `/pages/cosequin-horses`, `/pages/denamarin-about` | Vet survey footnote only, with that brand's symbol |
| `/` home, `/collections/all`, search "cosamin", cart with one Consumer Care and one Vet item | `**` Vet survey, plus FDA only where a Consumer Care card is shown |
| `/blogs/news/cosequin-partners-with-will-coleman…` ("5* Eventer"), `/pages/california-job-applicant-privacy-policy` ("YES*") | no FDA footnote |
| Where-to-buy dialog, quick-add modal | footnote added inside the dialog when the claim is there |
| Keyboard and screen reader (VoiceOver, NVDA) | marker reads, then its footnote; focus ring visible |
| JavaScript off | server footnotes present; markers not linked |

---

## 9. Open questions

Answered: one Vet brand symbol (brands keep their own), and Dasuquin's diamonds (one `◆`; `▼` is Cosequin only). The questions are renumbered.

1. **Vet brand claims that use a single `*`.** 29 claims (Cosequin 23, mostly horse products and brand pages; Welactin 3; Denamarin 1; Crananidin 1; 1 unknown). After migration `*` means FDA only. Should they use the brand's own symbol (`▼`, `△`, `★`) or `**`?
2. **Brands with no symbol of their own.** Crananidin, Proviable, Solliquin, Denosyl and the others. Do their brand claims use `**` with the company claim, or does legal want a new symbol per brand? A new symbol is one registry entry.
3. **Dasuquin ratings `△`.** The Dasuquin ratings claim uses `△`, the same character as Welactin. The proposal keeps them apart by page brand, and the ratings footnote stays typed. Should ratings get their own symbol, or become a registry footnote too?
4. **Does one source cover narrower surveys?** Can "Survey conducted among veterinarians who recommend animal supplements." cover brand claims that now cite narrower surveys? Today's wording includes "Among veterinary brands… oral joint health supplements" (Dasuquin), "Among retail brands…" (Cosequin, including "#1 … Retail Joint Health Supplement Brand"), "liver support supplements" (Denamarin), "omega-3 supplements" (Welactin) and "small animal veterinarians".
5. **Cosamin's extra sentence.** Cosamin's typed footnote adds "Human supplements are sold by Nutramax Laboratories Consumer Care, Inc." Keep it in the combined `▲` footnote, or drop it since the footer already says it?
6. **Vet claims on Consumer Care pages.** Should Vet company claims appear there at all? This covers the two Vet sections in `product.json`, the footer marquee and the where-to-buy "#1 Veterinarian Recommended" badge. If yes, they get `**` and the Vet footnote; if no, hide them by division.
7. **FDA placement.** Is the FDA "box" the FDA paragraph inside each Consumer Care product description? Should the automatic FDA footnote be added as well, or replace the typed copies? The typed copies are inside descriptions and in 5 templates, and the wording and case differ.
8. **Footnote position.** Is "end of main content" close enough to the claim, or must some sections, such as under the product title or buy box, have their own footnote block?
9. **The 251 claims with no marker.** Should markers be added, including the 169 short descriptions under product titles?
10. **Feeds.** Google, the Shop app and the Amazon and Chewy CSVs use the raw description. Must the footnotes stay in those, which means keeping them hidden in descriptions?
11. **Data cleanup.** OK to set a brand on the 101 products without one, fix the one Avmacol product with vendor "Veterinary Sciences", and decide the division for the 12 "Nutramax Staging" products?
12. **Supplement-facts `**` → `***` (option in 5.3).** Do we change the 34 store and 68 source-file uses? Legal or regulatory needs to confirm the symbol change and whether printed labels must match.
13. **The `**` in the Dasuquin Advanced ESM source Bullets.** Five `content/Bullets` files end the ESM study claim with `**`, and the store copy has no marker or footnote. What does it point to, and which symbol should it use, since `**` will mean the Vet company claim?
14. **`▼` in ingredient panels.** Dasuquin (35 notes and 7 footnote lines), Welactin ("▼Not recognized as an essential nutrient by the AAFCO…") and Imuquin ("from algal meal▼") use `▼` for ingredient notes, not claims. Does "only Cosequin uses `▼`" cover these too? The proposal leaves them unchanged.
