/*
Theme Name: SharkToothHunting — Field Journal
Theme URI: https://sharktoothhunting.com/
Description: "The Field Journal" child theme. Standalone front-page rebuild: search-first hero, species browser, location finder, 5-step ID wizard, submit-for-ID workflow, and editorial commerce — Bone Ivory / Fossil Amber museum-journal system, mobile-first.
Author: SharkToothHunting
Author URI: https://sharktoothhunting.com/
Template: sharktoothhunting
Version: 1.0.39
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fj
*/

/* The entire Field Journal design system lives in assets/css/field-journal.css
   so it can be versioned and cached independently. This file intentionally
   carries no rules beyond the theme header. */

/*
 * Changelog
 * 1.0.39 — 2026-11-21: Hunting map reduced to the USA only (per Lee):
 *   the 6 non-US pins (Khouribga, Java, Malta, Westland NZ, Atacama,
 *   Melbourne) removed, 45 pins remain; the guide region renamed from
 *   "Worldwide guides" to "US guides" and the map copy rewritten US-led.
 *   The non-US listings move to Fossiling.com's worldwide locations map.
 * 1.0.38 — 2026-11-21: Positioning narrowed back to the Florida/US hunting
 *   lane per the circle rule (Hermes cannibalization audit, TASK-0114):
 *   homepage H1 drops "Worldwide", hero sub and brand tag now say Florida,
 *   header logo subtitle becomes "Florida Shark Tooth Identification
 *   Guide", homepage footer line rewritten without "worldwide". Global
 *   scientific coverage belongs to Fossiling.com.
 * 1.0.37 — 2026-11-12: New species: Contorted Tiger Shark (Physogaleus
 *   contortus), added to the homepage species browser (15 to 16), the
 *   species-page data in page.php, and the guide data (45 to 46 full,
 *   30 to 31 in the preview set). Fact-checked 2026-11-12: a Peace River
 *   species (Florida Museum), formerly Galeocerdo contortus, root groove
 *   wide and shallow. No photo or sketch yet, placeholder treatment.
 * 1.0.36 — 2026-11-07: Homepage footer line drops "a Floating Sifter
 *   LLC property" (owner direction: the LLC appears only where legally
 *   necessary; the photo consent checkbox keeps its line). The edit was
 *   made locally 2026-11-05 but never deployed; this ships it.
 * 1.0.35 — 2026-10-24: The Submit-for-ID good-example photo moves to a
 *   new file name (fossil-lemon-tooth-in-hand.jpg, the owner's lemon
 *   shark tooth photo, his original file). The v1.0.31 fix kept the old
 *   file name, and the image is served with a one-year cache header, so
 *   browsers that cached the pufferfish plate under that name kept
 *   showing it. New name, no stale copies; service worker cache bumped
 *   to sth-fj-1035 for installed apps. Old file removed.
 * 1.0.34 — 2026-10-24: Great White gains the owner's field sketch
 *   (sketch-great-white.jpg, his pencil drawing supplied 2026-10-24):
 *   wired into the homepage species browser, the ID wizard results,
 *   and the species-page sketch plate, replacing the [REAL PHOTO]
 *   placeholder until a real specimen photo is uploaded.
 * 1.0.33 — 2026-10-21: The homepage's own header brand (text-only until
 *   now) gains the owner's emblem beside the wordmark, so the new logo
 *   is genuinely site-wide.
 * 1.0.32 — 2026-10-21: The header logo is now the owner's brass compass
 *   emblem (a round transparent PNG of his supplied art) on every page,
 *   replacing the drawn inline-SVG compass from v1.0.27.
 * 1.0.31 — 2026-10-21: Correctness fix. The Submit-for-ID "good example"
 *   photo (fossil-closeup-in-fingers.jpg) was a pufferfish mouth plate,
 *   not a shark tooth (owner caught it). Replaced with the owner's real
 *   fossil shark tooth photo; service worker cache bumped to sth-fj-1031
 *   so returning visitors do not keep the wrong image cached.
 * 1.0.30 — 2026-10-21: Owner-directed polish. The hero background is now
 *   Lee's brass compass emblem ghosted under the same ivory wash (replaces
 *   the hand-and-tooth field photo), and the footer section titles are
 *   pinned to literal Ochre Gold #D9A441 under body.fj after the
 *   variable-based color rendered near-black on the owner's phone.
 * 1.0.29 — 2026-10-20: The site is now an installable web app (PWA).
 *   Web app manifest (theme root) with the owner's compass-and-tooth
 *   emblem as the app icon (192/512 + maskable); the service worker is served
 *   at /sw.js via a rewrite rule in functions.php so its scope covers
 *   the whole site: page navigations are network-first with a cache
 *   fallback and a branded offline page, static assets are
 *   stale-while-revalidate, so repeat visits open app-fast and visited
 *   pages work with no signal. Head tags (manifest, theme-color, Apple
 *   web-app metas + touch icon) print from functions.php; a footer
 *   install button appears only when the browser offers installation.
 *   Requires one permalink flush after deploy so /sw.js resolves.
 * 1.0.28 — 2026-10-20: Bull shark and snaggletooth sketches restored.
 *   The owner's pair drawings (the same art as the pocket ID card) were
 *   in the theme before the 2026-10-07 purge and were lost; recovered
 *   from the owner's art files, labels cropped off, wired back in:
 *   homepage species grid, site search, and ID wizard via the
 *   front-page.php species data; the snaggletooth species page gets
 *   the sketch plate in its photo slot (page.php) and the /identify/
 *   snaggletooth card shows the sketch. Bull keeps its real photos
 *   on its species page and /identify/ card.
 * 1.0.27 — 2026-10-20: Lee's fix list from his site walkthrough.
 *   (1) Header logo: the parent theme's teal tile + white tooth replaced
 *   with a shiny brass compass rose whose north pointer is a brass shark
 *   tooth (inline SVG in child header.php; the teal .logo-icon tile is
 *   overridden off in field-journal.css).
 *   (2) ID wizard: the "Narrow or curved" option rendered a broken image
 *   (it pointed at the mako sketch, which does not exist). It now uses
 *   the owner's sand tiger sketch, and sketchImg() falls back to an SVG
 *   glyph on any empty sketch so a broken image cannot recur.
 *   (3) The homepage "Identify your tooth with the wizard" button was a
 *   plain link to /identify/ — now a real wizard trigger
 *   (data-open="fj-wizard"), same as the hero button.
 *   (4) Species visuals: tiger and sand tiger pages show the owner's
 *   sketches in the photo slot (captioned as field sketches) until real
 *   photos arrive (page.php fallback). The /identify/ index cards for
 *   megalodon, bull, lemon, hastalis (real photos) and tiger, sand tiger
 *   (sketches) are filled by a page-content edit in the same deploy.
 * 1.0.26 — 2026-10-20: The Shark Tooth Map is back. page-shark-tooth-map.php
 *   (template + 51-pin dataset survived locally; the /shark-tooth-map/ page
 *   itself never existed on live) restyled as a worn field chart: key-free
 *   OpenStreetMap tiles under a soft sepia treatment (CARTO light tiles
 *   were tried and rejected — they serve "API KEY REQUIRED" watermark
 *   tiles without an account), vignette + foxing over the chart, compass
 *   rose, brass status pins, parchment popups, matted ink frame. The
 *   template now carries its own Field Journal tokens (the palette in
 *   field-journal.css is scoped to body.fj / the homepage). Street View
 *   promoted to the lead popup action (guide-audit flags still govern
 *   which pins offer it; every pin keeps an Open in Google Maps link).
 *   Homepage locations section gains an "Explore the interactive map"
 *   button. Deploy also creates the /shark-tooth-map/ page.
 * 1.0.25 — 2026-10-20: Hero specimen plate (STH-001) now shows the
 *   owner's own megalodon drawing (sketch-megalodon.jpg) instead of the
 *   geometric placeholder outline, per Lee 2026-10-20. Plate frame,
 *   engraved labels, tags, and caption unchanged. Presentation only.
 * 1.0.24 — 2026-10-20: Owner's own tooth drawings added for megalodon,
 *   tiger, sand tiger, and lemon (supplied by Lee 2026-10-20, labels
 *   cropped off, saved as assets/images/sketches/sketch-{species}.jpg).
 *   These four species cards, search results, and the ID wizard show the
 *   drawings; the other 11 species stay sketch-free. Presentation only.
 *   Deploy also bumps the field-journal.css enqueue version in
 *   functions.php from '1.0.21' to '1.0.24' (cache-bust for the restyle).
 * 1.0.23 — 2026-10-19: Shared chrome + species pages restyled into the
 *   Field Journal system. Everything rendered through get_header()/
 *   get_footer() (species pages, blog posts, default pages) previously
 *   showed the parent theme's teal (#0d7377) + dark-navy design; it now
 *   uses Bone Ivory paper, Fossil Amber, Ochre Gold, and Sediment Ink:
 *   amber announcement bar, ivory header with sediment-strata rule,
 *   journal footer + ink footer-CTA band. Species pages (child page.php)
 *   gain a body scope class (fj-species-page), a stamped journal masthead
 *   hero, a taped-photo treatment for the species photo, and the info
 *   grid as a parchment fact card. Presentation only — no content, facts,
 *   links, or logic changed. NOTE: functions.php still enqueues
 *   field-journal.css with the hardcoded asset version '1.0.21'.
 * 1.0.13 — 2026-09-18: Wired 23 curated field photos into assets/images/
 *   (hero background, location-card thumbnails, technique rail, submit example,
 *   pocket-ID capture, 5-species sketch rail). Caspersen Beach map copy:
 *   partially open (pedestrian/bicycle only), no 2027 date; Mudslinger Tours
 *   verified-operating copy; Englewood Beach lighting-pending-FEMA fix.
 *   Sand tiger sketch still missing — glyph retained.
 * 1.0.14 — 2026-09-18: Bundled 32 guide pages (17 locations, 15 species) for
 *   STAGING REVIEW ONLY under /locations/<slug>/ and /identify/<slug>/ via the
 *   `sth_guide` query var + page-guide.php (slug allowlisted against
 *   content/guides-manifest.json; internal "Corrections" review sections
 *   stripped from every guide; featured-image heroes from assets/images/,
 *   sand tiger has no hero). Rewrite rules flush on after_switch_theme.
 *   Guide typography added to field-journal.css. Before public launch these
 *   guides must become real WordPress pages.
 * 1.0.15 — 2026-09-18: Replaced every abstract engraved SVG glyph with
 *   pen-and-ink tooth sketches: all 15 homepage species cards, the ID wizard
 *   (option icons, result cards), and the live-search result thumbnails now
 *   render sketch <img> art. Generated 10 new style-matched sketches (mako,
 *   great white, sand tiger, hammerhead, nurse, thresher, dusky, angustidens,
 *   crow, goblin); the 5 existing sketches moved to assets/images/sketches/
 *   with baked-in captions cropped out. Nothing public — staging only.
 * 1.0.16 — 2026-09-18: Fixed guide link routing — every species card,
 *   sketch-rail card, wizard result, search result, location card, and map
 *   popup now links to the canonical manifest slugs (/identify/species-*,
 *   /locations/location-*); the old prefix-less URLs 404'd. Map guide URLs
 *   fixed at the source in sth-map/locations-final.json and regenerated.
 * 1.0.21 — 2026-10-06: New child page-blog.php — the /blog/ index is now an
 *   aged paleontologist's field journal with treasure-map treatment: worn
 *   paper, foxing, coffee ring, rubber stamp, taped specimen photos, dashed
 *   treasure trail linking entries, wax seal, gold-sheen title, X-marks-the-
 *   spot closer. Asset version bumped to 1.0.21.
 *
 * 1.0.20 — 2026-10-06: New child single.php — single blog posts now render
 *   inside the Field Journal design system (dark hero with date/reading time,
 *   .fj-article typography, tags, older/newer post nav, footer CTA) instead of
 *   the parent theme's unstyled article body. Asset version bumped to 1.0.20.
 *
 * 1.0.19 — 2026-09-27: Real published WordPress pages now take precedence
 *   over the bundled virtual guides. template_include resolves sth_guide
 *   slugs against identify/, shark-tooth-map/, locations/, and top-level
 *   pages first; if a published Page exists it renders with the normal page
 *   template, so /identify/<slug>/ species pages work as real pages.
 *   Virtual guides still serve any slug with no real page (unchanged 404
 *   behavior). Asset version bumped to 1.0.19.
 */
