/* ==========================================================================
   SHARKTOOTHHUNTING — "THE FIELD JOURNAL"
   Mobile-first, museum-journal design system. Standalone front page only.
   Scoped under body.fj so it never fights the parent theme.
   ========================================================================== */

/* ---------- Tokens ---------- */
body.fj {
  --ivory: #FAF5EA;      /* Bone Ivory — page */
  --parchment: #F1E7D2;  /* cards */
  --amber: #B4551F;      /* Fossil Amber — primary CTAs, white text */
  --gold: #D9A441;       /* Ochre Gold — kickers, progress, highlights */
  --ink: #2A1E12;        /* Sediment Ink — dark sections */
  --text: #221A12;       /* body text (~15:1 on ivory) */
  --link: #8F3F14;       /* inline links, never underlined */
  --muted: #7A6A55;      /* metadata/captions (≥4.5:1 on ivory) */
  --line: rgba(42, 30, 18, 0.14);
  --ivory-70: rgba(250, 245, 234, 0.72);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-ui: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius: 14px;
  --gutter: 20px;
  --header-h: 64px;

  margin: 0;
  background-color: var(--ivory);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.13 0 0 0 0 0.09 0 0 0 0 0.05 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.fj *,
body.fj *::before,
body.fj *::after { box-sizing: border-box; }

body.fj img, body.fj svg { max-width: 100%; height: auto; }

/* WordPress core normally ships this; parent styles are dequeued on this
   template, so we provide our own. */
body.fj .screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal;
}

/* Smooth anchor travel + clearance under the sticky header/filters. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body.fj section[id] { scroll-margin-top: calc(var(--header-h) + 84px); }

/* Mobile menu sheet: vertical museum-index nav */
#fj-menu-sheet .fj-nav ul { flex-direction: column; gap: 0; }
#fj-menu-sheet .fj-nav a {
  display: block;
  padding: 0.95rem 0.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

/* ---------- Type ---------- */
body.fj h1, body.fj h2, body.fj h3, body.fj .fj-display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  text-wrap: balance;
  margin: 0 0 0.6em;
}
body.fj h2 { font-size: clamp(1.625rem, 1.15rem + 2.4vw, 2.5rem); line-height: 1.2; }
body.fj h3 { font-size: 1.25rem; }
body.fj p { text-wrap: pretty; margin: 0 0 1em; }
body.fj a { color: var(--link); text-decoration: none; }
body.fj a:hover { color: var(--amber); }

.fj-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.9em;
}
.fj-lede { font-size: 1.125rem; line-height: 1.6; max-width: 38rem; }
.fj-caption, body.fj figcaption {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}
.fj-mono-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--link);
  background: rgba(143, 63, 20, 0.08);
  border: 1px solid rgba(143, 63, 20, 0.22);
  border-radius: 999px;
  padding: 0.35em 0.8em;
  white-space: nowrap;
}

/* ---------- Layout ---------- */
.fj-wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.fj-section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.fj-section-head { max-width: 44rem; margin-bottom: 2rem; }
.fj-section-head p:last-child { margin-bottom: 0; }

/* Sediment-strata divider — the brand's signature section break */
.fj-strata {
  height: 12px;
  background: linear-gradient(to bottom,
    var(--amber) 0 2px,
    var(--gold) 2px 4px,
    var(--ink) 4px 7px,
    var(--parchment) 7px 10px,
    transparent 10px 12px);
}
.fj-strata.on-dark {
  background: linear-gradient(to bottom,
    var(--gold) 0 2px,
    var(--amber) 2px 4px,
    var(--ivory) 4px 6px,
    transparent 6px 12px);
}

/* ---------- Buttons ---------- */
.fj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.8em 1.6em;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.fj-btn:active { transform: scale(0.97); }
.fj-btn-primary { background: var(--amber); color: #fff; }
.fj-btn-primary:hover { background: #9c4a1b; color: #fff; }
.fj-btn-ink { background: var(--ink); color: var(--ivory); }
.fj-btn-ink:hover { background: #1d1409; color: var(--ivory); }
.fj-btn-outline { background: transparent; color: var(--text); border-color: var(--ink); }
.fj-btn-outline:hover { background: rgba(42, 30, 18, 0.06); color: var(--text); }
/* Link-colored anchors beat plain .fj-btn-* rules on specificity, so re-assert
   readable button text for buttons that are links (normal + hover). */
body.fj a.fj-btn-primary, body.fj a.fj-btn-primary:hover { color: #fff; }
body.fj a.fj-btn-ink, body.fj a.fj-btn-ink:hover { color: var(--ivory); }
body.fj a.fj-btn-outline, body.fj a.fj-btn-outline:hover { color: var(--text); }
.fj-btn:focus-visible, body.fj a:focus-visible, body.fj button:focus-visible,
body.fj input:focus-visible, body.fj select:focus-visible, body.fj textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Promo bar ---------- */
.fj-promo {
  background: var(--amber);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  padding: 0.65em var(--gutter);
}
.fj-promo a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: none;
  background: rgba(0,0,0,0.22);
  padding: 0.18em 0.9em;
  border-radius: 999px;
  display: inline-block;
  margin-left: 0.25em;
}
body.fj .fj-promo a, body.fj .fj-promo a:hover { color: #fff; }
.fj-promo a:hover { background: rgba(0,0,0,0.35); }
.fj-promo strong { font-weight: 700; }
.fj-promo-short { display: none; }
@media (max-width: 560px) {
  .fj-promo { font-size: 0.78rem; padding: 0.55em var(--gutter); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fj-promo-full { display: none; }
  .fj-promo-short { display: inline; }
}

/* ---------- Sticky header ---------- */
.fj-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ivory-70);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.fj-header-inner {
  width: min(1200px, 100% - 40px);
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.5rem;
}
.fj-brand { display: flex; flex-direction: row; align-items: center; gap: 0.65rem; line-height: 1.1; margin-right: auto; }
.fj-brand-emblem { width: 2.75rem; height: 2.75rem; flex: none; display: block; }
.fj-brand-lockup { display: flex; flex-direction: column; line-height: 1.1; }
.fj-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.fj-brand-name .fj-brand-tooth { color: var(--amber); }
.fj-brand-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 0.25em;
}
.fj-nav { display: none; }
.fj-nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.fj-nav a {
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}
.fj-nav a:hover { color: var(--amber); }
.fj-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.fj-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease;
}
.fj-icon-btn:active { transform: scale(0.94); }
.fj-icon-btn:hover { background: var(--parchment); }
.fj-header-book { display: none; min-height: 44px; padding: 0.6em 1.2em; font-size: 0.9375rem; }

@media (min-width: 960px) {
  .fj-nav { display: block; }
  .fj-header-book { display: inline-flex; }
  .fj-menu-btn { display: none; }
}

/* ---------- Full-screen sheets (search / menu / wizard) ---------- */
.fj-sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  overflow-y: auto;
}
.fj-sheet.is-open { opacity: 1; visibility: visible; transform: none; }
.fj-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem var(--gutter);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--ivory);
  z-index: 2;
}
.fj-sheet-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.fj-sheet-body { padding: 1.5rem var(--gutter) 3rem; width: min(760px, 100%); margin-inline: auto; }

/* ---------- Search ---------- */
.fj-search-field { position: relative; }
.fj-search-input {
  width: 100%;
  min-height: 60px;
  font-family: var(--font-ui);
  font-size: 1.125rem;
  padding: 0.85em 1em 0.85em 3em;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
}
.fj-search-input::placeholder { color: var(--muted); }
.fj-search-input:focus { border-color: var(--amber); outline: none; box-shadow: 0 0 0 3px rgba(180, 85, 31, 0.18); }
.fj-search-icon { position: absolute; left: 1em; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.fj-search-popular { margin-top: 1.25rem; }
.fj-search-popular p { font-family: var(--font-ui); font-size: 0.8125rem; color: var(--muted); margin-bottom: 0.6em; }
.fj-search-results { margin-top: 1rem; }
.fj-search-group { margin-bottom: 1.5rem; }
.fj-search-group h3 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.fj-search-result {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 0.6rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.fj-search-result:hover { background: var(--parchment); color: var(--text); }
.fj-search-result .fj-result-glyph { flex: 0 0 40px; width: 40px; height: 40px; overflow: hidden; border-radius: 8px; background: #fff; }
.fj-search-result .fj-result-glyph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fj-search-result .fj-result-name { font-family: var(--font-ui); font-weight: 600; font-size: 1rem; }
.fj-search-result .fj-result-latin { font-family: var(--font-mono); font-style: italic; font-size: 0.78rem; color: var(--muted); display: block; }
.fj-search-empty { font-family: var(--font-ui); color: var(--muted); padding: 1rem 0; }

/* ---------- Hero ---------- */
.fj-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
}
.fj-hero .fj-strata { position: absolute; top: 0; left: 0; right: 0; }
.fj-hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) {
  .fj-hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; }
}
.fj-hero h1 {
  font-size: clamp(2.125rem, 1.35rem + 4.2vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.fj-hero h1 .fj-amber-word { color: var(--amber); }
.fj-hero-sub { font-size: 1.125rem; max-width: 36rem; }
.fj-hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.75rem; }
.fj-hero-search { margin-top: 1.5rem; max-width: 34rem; }
.fj-hero-search .fj-search-results {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 0.4rem;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 0 18px 40px rgba(42, 30, 18, 0.14);
}
.fj-hero-search .fj-search-results:empty { display: none; }
.fj-hero-search .fj-search-group { margin: 0; padding: 0.6rem 0.9rem; }
.fj-hero-search .fj-search-result { padding: 0.55rem 0.3rem; }

/* Engraved specimen plate */
.fj-plate {
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 24px 48px rgba(42, 30, 18, 0.10);
}
.fj-plate svg { display: block; width: 100%; height: auto; }
.fj-plate-art {
  border: 1.5px solid #2A1E12;
  outline: 1px solid rgba(180, 85, 31, 0.5);
  outline-offset: -9px;
  background: #FFFDF7;
  padding: 1.5rem 1.5rem 1.1rem;
  text-align: center;
}
.fj-plate-art img { display: block; width: 100%; height: auto; margin: 0 auto; }
.fj-plate-name { margin: 0.9rem 0 0; font-family: "IBM Plex Mono", monospace; font-size: 13px; letter-spacing: 2px; color: #2A1E12; }
.fj-plate-sub { margin: 0.3rem 0 0; font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 1.5px; color: #8F3F14; }
.fj-plate figcaption { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

/* One restrained kinetic headline reveal */
@media (prefers-reduced-motion: no-preference) {
  .fj-hero h1 { animation: fj-hero-in 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
  @keyframes fj-hero-in {
    from { opacity: 0; translate: 0 30px; }
    to { opacity: 1; translate: 0 0; }
  }
}

/* ---------- Trust strip ---------- */
.fj-trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(241, 231, 210, 0.5); }
.fj-trust-inner { padding-block: 2.5rem; text-align: center; }
.fj-trust-method { max-width: 40rem; margin: 0 auto 2rem; font-size: 1.05rem; }
.fj-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 46rem; margin-inline: auto; }
.fj-stat-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.75rem, 1.2rem + 3vw, 2.75rem);
  color: var(--amber);
  line-height: 1.1;
}
.fj-stat-label {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.4em;
}

/* ---------- Species browser ---------- */
.fj-filters {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: var(--ivory-70);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-block: 0.8rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.fj-chips { display: flex; gap: 0.6rem; overflow-x: auto; padding-bottom: 0.2rem; scrollbar-width: thin; }
.fj-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.55em 1.1em;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--parchment);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease, color 0.15s ease;
}
.fj-chip:active { transform: scale(0.96); }
.fj-chip .fj-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  background: rgba(42, 30, 18, 0.08);
  border-radius: 999px;
  padding: 0.15em 0.55em;
}
.fj-chip.is-active { background: var(--amber); border-color: var(--amber); color: #fff; }
.fj-chip.is-active .fj-count { background: rgba(255, 255, 255, 0.22); }
.fj-species-search { margin-bottom: 1.5rem; max-width: 26rem; }
.fj-species-search .fj-search-input { min-height: 52px; font-size: 1rem; }

.fj-species-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 720px) { .fj-species-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
@media (min-width: 1080px) { .fj-species-grid { grid-template-columns: repeat(4, 1fr); } }

.fj-sp-card {
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.fj-sp-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(42, 30, 18, 0.12); }
.fj-sp-card:active { transform: scale(0.98); }
.fj-sp-card.is-hidden { display: none; }
.fj-sp-link { display: block; padding: 1.1rem 1rem 1.25rem; color: var(--text); height: 100%; }
.fj-sp-link:hover { color: var(--text); }
.fj-sp-glyph { display: block; width: 96px; margin: 0 auto 0.8rem; }
.fj-sp-glyph img { width: 100%; height: auto; display: block; }
.fj-sp-name { display: block; font-family: var(--font-ui); font-weight: 600; font-size: 1.02rem; text-align: center; }
.fj-sp-latin {
  display: block; text-align: center;
  font-family: var(--font-mono); font-style: italic; font-size: 0.75rem;
  color: var(--muted); margin-top: 0.25em;
}
.fj-sp-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin-top: 0.7em; }
.fj-sp-blurb {
  display: block; margin-top: 0.8em;
  font-family: var(--font-ui); font-size: 0.85rem; line-height: 1.5; color: var(--muted);
}
.fj-species-empty { display: none; text-align: center; padding: 2.5rem 1rem; color: var(--muted); font-family: var(--font-ui); }
.fj-species-empty.is-visible { display: block; }
.fj-center { text-align: center; margin-top: 2.25rem; }

/* ---------- Location finder ---------- */
.fj-loc-grid { display: grid; gap: 1.1rem; }
@media (min-width: 720px) { .fj-loc-grid { grid-template-columns: repeat(2, 1fr); } }
.fj-loc-card {
  position: relative;
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.fj-loc-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(42, 30, 18, 0.12); }
.fj-loc-card:active { transform: scale(0.99); }
.fj-loc-name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; margin: 0; }
.fj-loc-name a { color: var(--text); }
.fj-loc-name a:hover { color: var(--amber); }
.fj-loc-desc { font-size: 1rem; margin: 0; flex: 1; }
.fj-loc-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.fj-loc-pill {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4em 0.9em;
}
.fj-loc-tour { font-family: var(--font-ui); font-size: 0.9rem; font-weight: 600; }

/* ---------- Snap rails ---------- */
.fj-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 80%;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem var(--gutter) 1.5rem;
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: thin;
}
@media (min-width: 720px) { .fj-rail { grid-auto-columns: 320px; } }
.fj-rail-card {
  scroll-snap-align: start;
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.fj-rail-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(42, 30, 18, 0.12); color: var(--text); }
.fj-rail-card h3 { font-size: 1.2rem; margin: 0; }
.fj-rail-card p { font-family: var(--font-ui); font-size: 0.9rem; color: var(--muted); margin: 0; flex: 1; }
.fj-rail-meta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }

/* Abyssal history band — Concept 2's dark treatment, reserved for drama */
.fj-history-band { background: var(--ink); color: var(--ivory); border-radius: 0; }
.fj-history-band .fj-kicker { color: var(--gold); }
body.fj .fj-history-band h2 { color: var(--ivory); }
.fj-history-band p { color: rgba(250, 245, 234, 0.82); }
.fj-history-stats { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 2rem 0; }
@media (min-width: 720px) { .fj-history-stats { grid-template-columns: repeat(3, 1fr); } }
.fj-history-stat {
  border: 1px solid rgba(250, 245, 234, 0.18);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.fj-history-stat .fj-stat-num { color: var(--gold); }
.fj-history-stat p { font-family: var(--font-ui); font-size: 0.9rem; margin: 0.5em 0 0; color: rgba(250, 245, 234, 0.75); }
.fj-history-band .fj-btn-primary { background: var(--amber); }

/* ---------- Email capture ---------- */
.fj-capture {
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.75rem, 5vw, 3rem);
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 860px) { .fj-capture { grid-template-columns: 1fr 1fr; align-items: center; } }
.fj-capture h2 { margin-bottom: 0.5em; }
.fj-form { display: grid; gap: 0.9rem; }
.fj-field label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4em;
}
.fj-field input[type="email"],
.fj-field input[type="text"],
.fj-field input[type="file"],
.fj-field textarea,
.fj-field select {
  width: 100%;
  min-height: 52px;
  font-family: var(--font-ui);
  font-size: 1rem;
  padding: 0.8em 1em;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
}
.fj-field input:focus, .fj-field textarea:focus, .fj-field select:focus {
  border-color: var(--amber);
  outline: none;
  box-shadow: 0 0 0 3px rgba(180, 85, 31, 0.18);
}
.fj-field .fj-hint { font-family: var(--font-ui); font-size: 0.8125rem; color: var(--muted); margin-top: 0.4em; }
.fj-check { display: flex; gap: 0.7rem; align-items: flex-start; font-family: var(--font-ui); font-size: 0.875rem; line-height: 1.55; }
.fj-check input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 0.15em; accent-color: var(--amber); }
.fj-form-success { display: none; text-align: center; padding: 2rem 1rem; }
.fj-form-success.is-visible { display: block; }
.fj-form-success .fj-kicker { margin-bottom: 0.5em; }
.fj-form-success h3 { font-size: 1.5rem; }

/* ---------- Submit-for-ID ---------- */
.fj-submit-grid { display: grid; gap: 2rem; }
@media (min-width: 960px) { .fj-submit-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; } }
.fj-scale-tip {
  background: var(--parchment);
  border: 1px dashed rgba(143, 63, 20, 0.45);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin-top: 1.5rem;
}
.fj-scale-tip h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.fj-scale-tip p { font-family: var(--font-ui); font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ---------- Commerce ---------- */
.fj-commerce-grid { display: grid; gap: 1.1rem; }
@media (min-width: 860px) { .fj-commerce-grid { grid-template-columns: repeat(3, 1fr); } }
.fj-commerce-card {
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.fj-commerce-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(42, 30, 18, 0.12); }
.fj-commerce-card h3 { font-size: 1.3rem; margin: 0; }
.fj-commerce-card p { font-size: 0.98rem; margin: 0; flex: 1; }
.fj-commerce-card ul { margin: 0; padding-left: 1.2em; font-family: var(--font-ui); font-size: 0.9rem; color: var(--muted); }
.fj-commerce-card ul li { margin-bottom: 0.35em; }
.fj-commerce-flag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(180, 85, 31, 0.4);
  border-radius: 999px;
  padding: 0.35em 0.9em;
}

/* ---------- Footer ---------- */
.fj-footer { background: var(--ink); color: var(--ivory); }
.fj-footer-inner { padding: 3.5rem 0 2rem; }
.fj-footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 860px) { .fj-footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.fj-footer-brand { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--ivory); }
.fj-footer-brand .fj-brand-tooth { color: var(--gold); }
.fj-footer p { color: rgba(250, 245, 234, 0.7); font-size: 0.95rem; max-width: 26rem; }
body.fj .fj-footer h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #D9A441;
  margin-bottom: 1em;
}
.fj-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.fj-footer ul a { color: rgba(250, 245, 234, 0.85); font-family: var(--font-ui); font-size: 0.95rem; }
.fj-footer ul a:hover { color: var(--gold); }
.fj-footer .fj-social-row {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  padding: 2rem 0 0.5rem;
  list-style: none;
  margin: 2rem 0 0;
}
.fj-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(250, 245, 234, 0.45);
  color: var(--ivory);
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.fj-social-btn:hover { background: rgba(250, 245, 234, 0.1); border-color: var(--gold); color: var(--gold); }
.fj-social-btn:active { transform: scale(0.93); }
.fj-social-btn svg { width: 20px; height: 20px; }
.fj-footer-bottom {
  border-top: 1px solid rgba(250, 245, 234, 0.14);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: rgba(250, 245, 234, 0.6);
}

/* ---------- ID Wizard ---------- */
.fj-wizard { z-index: 95; }
.fj-wizard-progress { height: 6px; background: rgba(42, 30, 18, 0.1); border-radius: 999px; overflow: hidden; margin: 1.25rem 0 0.5rem; }
.fj-wizard-progress span { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 999px; transition: width 0.35s ease; }
.fj-wizard-step-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.fj-wizard-q { font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 2vw, 1.9rem); font-weight: 600; margin: 0.4em 0 1em; text-wrap: balance; }
.fj-wizard-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
.fj-wizard-opt {
  background: var(--parchment);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  text-align: center;
  transition: transform 0.12s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.fj-wizard-opt:hover { border-color: var(--amber); }
.fj-wizard-opt:active { transform: scale(0.96); }
.fj-wizard-opt svg { width: 72px; height: 72px; color: var(--ink); }
.fj-wizard-opt .fj-opt-sub { font-weight: 400; font-size: 0.82rem; color: var(--muted); }
.fj-wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.75rem; }
.fj-wizard-back {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem; color: var(--muted);
  min-height: 44px; padding: 0.5em 1em;
}
.fj-wizard-back:hover { color: var(--text); }
.fj-wizard-result-card {
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 1.1rem;
  align-items: center;
  color: var(--text);
}
.fj-wizard-result-card:hover { color: var(--text); border-color: var(--amber); }
.fj-wizard-result-card .fj-sp-glyph { width: 84px; height: auto; margin: 0; }
.fj-wizard-opt .fj-result-glyph { display: block; }
.fj-wizard-opt .fj-result-glyph img { width: 72px; height: 72px; object-fit: contain; display: block; margin: 0 auto; }
.fj-wizard-result-card h3 { font-size: 1.25rem; margin: 0 0 0.15em; }
.fj-wizard-result-card .fj-sp-latin { text-align: left; }
.fj-wizard-result-card p { font-family: var(--font-ui); font-size: 0.88rem; color: var(--muted); margin: 0.5em 0 0; }
.fj-confidence {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.35em 0.85em;
  margin-top: 0.6em;
}
.fj-confidence.strong { background: rgba(180, 85, 31, 0.14); color: var(--link); border: 1px solid rgba(180, 85, 31, 0.4); }
.fj-confidence.likely { background: rgba(217, 164, 65, 0.18); color: #7c5a1e; border: 1px solid rgba(217, 164, 65, 0.55); }
.fj-confidence.close { background: rgba(42, 30, 18, 0.07); color: var(--muted); border: 1px solid var(--line); }
.fj-wizard-email { margin-top: 2rem; }

/* ---------- Scroll reveals (native first, JS fallback) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .fj-reveal {
      animation: fj-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 28%;
    }
    @keyframes fj-rise {
      from { opacity: 0; translate: 0 22px; }
      to { opacity: 1; translate: 0 0; }
    }
  }
}
/* JS fallback path (also the no-support path). Hidden only when JS is running;
   no-JS visitors see all content. */
html.js .fj-reveal { opacity: 0; translate: 0 22px; }
html.js .fj-reveal.is-in { opacity: 1; translate: 0 0; transition: opacity 0.7s ease, translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }

/* ---------- View transitions ---------- */
@view-transition { navigation: auto; }

/* ---------- Reduced motion: first-class, not a kill-switch ---------- */
@media (prefers-reduced-motion: reduce) {
  body.fj *, body.fj *::before, body.fj *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fj-reveal { opacity: 1; translate: 0 0; }
  .fj-hero h1 { animation: none; }
}

/* ---------- Admin bar offset for sticky bits ---------- */
body.fj.admin-bar .fj-header { top: 32px; }
@media (max-width: 782px) { body.fj.admin-bar .fj-header { top: 46px; } }

/* ---------- Species detail photo slot (child page.php) ---------- */
/* Renders the page's featured image once Lee uploads his photos. */
.species-photo { margin: 0 0 1.5rem; }
.species-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ---------- Real photography (v1.0.13) ---------- */
/* Hero: the owner's brass compass emblem ghosted behind the bone-ivory
   wash (v1.0.30, replaced the hand-and-tooth field photo at his word). */
.fj-hero {
  background:
    linear-gradient(rgba(250, 245, 234, 0.93), rgba(250, 245, 234, 0.86)),
    url('../images/hero-compass-emblem.jpg') center 42% / min(92vw, 600px) no-repeat;
}

/* Location card thumbnails — edge-to-edge, 4:3 crop, no layout shift. */
.fj-loc-photo {
  display: block;
  margin: -1.5rem -1.5rem 0.75rem;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.fj-loc-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Technique rail thumbnails. */
.fj-rail-photo {
  display: block;
  margin: -1.4rem -1.4rem 0.5rem;
  overflow: hidden;
}
.fj-rail-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px) calc(var(--radius) - 6px) 0 0;
}

/* Submit-section example photo. */
.fj-submit-photo { margin: 1.5rem 0 0; }
.fj-submit-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.fj-submit-photo figcaption {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* Field-sketchbook rail (species section). */
.fj-sketch-rail-wrap { margin-top: 2.75rem; }
.fj-sketch-rail-wrap .fj-kicker { margin-bottom: 1rem; }
.fj-sketch-card {
  scroll-snap-align: start;
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--text);
  text-align: center;
  min-width: 0;
}
.fj-sketch-card:hover { color: var(--text); }
.fj-sketch-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #fff;
}
.fj-sketch-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.fj-sketch-latin { font-family: var(--font-mono); font-style: italic; font-size: 0.76rem; color: var(--muted); }
.fj-sketch-rail-wrap .fj-caption { margin-top: 1rem; text-align: center; }

/* Pocket-ID capture photo. */
.fj-capture-photo { margin: 0; border-radius: 12px; overflow: hidden; }
.fj-capture-photo img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}
@media (min-width: 860px) {
  .fj-capture-photo { grid-row: span 2; height: 100%; min-height: 340px; }
  .fj-capture-photo img { height: 100%; }
}

/* ==========================================================================
   Guide pages (1.0.14) — bundled /locations/ + /identify/ virtual URLs.
   STAGING REVIEW ONLY.
   ========================================================================== */
body.fj .fj-guide { padding: 28px 0 64px; }
body.fj .fj-guide-inner { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }

body.fj .fj-guide-crumbs {
  font-family: var(--font-ui); font-size: 13px; font-weight: 500;
  color: var(--muted); margin: 4px 0 20px; letter-spacing: 0.01em;
}
body.fj .fj-guide-crumbs a { color: var(--link); text-decoration: none; }
body.fj .fj-guide-crumb-sep { margin: 0 8px; color: var(--line); }
body.fj .fj-guide-crumb-current { color: var(--text); }

body.fj .fj-guide-hero { margin: 0 0 24px; }
body.fj .fj-guide-hero img {
  display: block; width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--line);
}

body.fj .fj-guide-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 6.5vw, 44px); line-height: 1.12;
  letter-spacing: -0.01em; margin: 0 0 24px; color: var(--text);
}

body.fj .fj-guide-body { font-family: var(--font-body); font-size: 18px; line-height: 1.7; color: var(--text); }
body.fj .fj-guide-body h2 {
  font-family: var(--font-ui); font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber);
  margin: 40px 0 12px; padding-top: 24px; border-top: 1px solid var(--line);
}
body.fj .fj-guide-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
body.fj .fj-guide-body h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  margin: 28px 0 10px; color: var(--text);
}
body.fj .fj-guide-body p { margin: 0 0 16px; }
body.fj .fj-guide-body ul, body.fj .fj-guide-body ol { margin: 0 0 18px; padding-left: 24px; }
body.fj .fj-guide-body li { margin-bottom: 8px; }
body.fj .fj-guide-body li::marker { color: var(--amber); }
body.fj .fj-guide-body a { color: var(--link); text-decoration: none; font-weight: 500; }
body.fj .fj-guide-body strong { font-weight: 600; }
body.fj .fj-guide-body hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
body.fj .fj-guide-body img { border-radius: 10px; }

/* ==========================================================================
   Single post article (1.0.20) — child single.php.
   Standalone scope (no body.fj): single posts render with parent templates,
   so these classes carry their own tokens instead of the body.fj variables.
   ========================================================================== */
.fj-article {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  color: #221A12;
}
.fj-article > *:first-child { margin-top: 0; }
.fj-article h2 {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: #B4551F;
  margin: 40px 0 12px; padding-top: 24px;
  border-top: 1px solid rgba(42, 30, 18, 0.14);
}
.fj-article h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.fj-article h3 {
  font-family: Fraunces, Georgia, serif;
  font-size: 22px; font-weight: 600;
  margin: 28px 0 10px; color: #221A12; line-height: 1.25;
}
.fj-article h4 {
  font-family: Fraunces, Georgia, serif;
  font-size: 19px; font-weight: 600;
  margin: 24px 0 8px; color: #221A12;
}
.fj-article p { margin: 0 0 16px; }
.fj-article ul, .fj-article ol { margin: 0 0 18px; padding-left: 24px; }
.fj-article li { margin-bottom: 8px; }
.fj-article li::marker { color: #B4551F; }
.fj-article a { color: #8F3F14; text-decoration: none; font-weight: 500; }
.fj-article a:hover { color: #B4551F; }
.fj-article strong { font-weight: 600; }
.fj-article em { color: #4a3d2e; }
.fj-article blockquote {
  border-left: 3px solid #D9A441;
  margin: 24px 0; padding: 4px 0 4px 20px;
  font-style: italic; color: #4a3d2e;
}
.fj-article blockquote p:last-child { margin-bottom: 0; }
.fj-article img { border-radius: 10px; height: auto; }
.fj-article figure { margin: 24px 0; }
.fj-article figcaption {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.8125rem; line-height: 1.5; color: #7A6A55; margin-top: 8px;
}
.fj-article hr { border: 0; border-top: 1px solid rgba(42, 30, 18, 0.14); margin: 28px 0; }
.fj-article pre {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.85rem; background: #F1E7D2;
  border: 1px solid rgba(42, 30, 18, 0.14); border-radius: 10px;
  padding: 1rem 1.25rem; overflow-x: auto; margin: 0 0 18px;
}

/* Post hero meta + tags + post navigation (child single.php). */
.fj-post-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: center;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.875rem; font-weight: 500;
  color: rgba(245, 240, 232, 0.78);
}
.fj-post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.fj-tag {
  display: inline-block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #8F3F14; background: rgba(143, 63, 20, 0.08);
  border: 1px solid rgba(143, 63, 20, 0.22);
  border-radius: 999px; padding: 0.35em 0.8em; white-space: nowrap;
}
.fj-tag:hover { color: #B4551F; border-color: #B4551F; }
.fj-post-nav {
  display: grid; gap: 1rem;
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid rgba(42, 30, 18, 0.14);
}
@media (min-width: 720px) { .fj-post-nav { grid-template-columns: 1fr 1fr; } }
.fj-post-nav a {
  display: block; background: #F1E7D2;
  border: 1px solid rgba(42, 30, 18, 0.14);
  border-radius: 14px; padding: 1.1rem 1.25rem; color: #221A12;
}
.fj-post-nav a:hover { border-color: #B4551F; color: #221A12; }
.fj-nav-label {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #7A6A55; margin-bottom: 0.4em;
}
.fj-nav-title {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-weight: 600; font-size: 1.05rem; line-height: 1.3;
}

/* ==========================================================================
   Aged field-journal paper: blog index (1.0.21) — page-blog.php.
   Standalone scope (no body.fj): the blog Page renders with parent templates,
   so these classes carry their own tokens. Paleontologist's field journal
   with a treasure-map treatment: worn paper, foxing, coffee ring, rubber
   stamp, taped specimen photos, dashed treasure trail, wax seal, gold-sheen
   title, X-marks-the-spot closer.
   ========================================================================== */

/* ---- Worn paper sheet ---- */
.fj-paper {
  background-color: #e9dcbd;
  background-image:
    radial-gradient(1200px 500px at 15% -5%, rgba(120, 72, 20, 0.10), transparent 60%),
    radial-gradient(900px 600px at 110% 30%, rgba(101, 67, 33, 0.12), transparent 55%),
    radial-gradient(700px 500px at 50% 115%, rgba(120, 72, 20, 0.10), transparent 60%),
    radial-gradient(220px 220px at 82% 12%, rgba(101, 67, 33, 0.10), transparent 70%),
    radial-gradient(160px 160px at 8% 78%, rgba(101, 67, 33, 0.08), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.36 0 0 0 0 0.25 0 0 0 0 0.13 0 0 0 0.055 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  box-shadow: inset 0 0 140px rgba(101, 67, 33, 0.22);
  color: #2e2417;
  padding: clamp(2rem, 6vw, 3.5rem) 0 clamp(3rem, 8vw, 5rem);
  position: relative;
  overflow: hidden;
}
/* Coffee ring, faint and off to the side. */
.fj-paper::after {
  content: "";
  position: absolute;
  top: 130px;
  right: 5%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 7px solid rgba(101, 67, 33, 0.07);
  filter: blur(1px);
  pointer-events: none;
}
.fj-wrap-narrow { width: min(760px, 100% - 40px); margin-inline: auto; position: relative; z-index: 1; }

/* Breadcrumb ink that reads on paper. */
.fj-paper-crumbs { font-family: Inter, system-ui, sans-serif; font-size: 0.85rem; margin-bottom: 1.75rem; }
.fj-paper-crumbs a { color: #8F3F14; text-decoration: none; font-weight: 500; }
.fj-paper-crumbs .sep { margin: 0 0.5em; color: rgba(101, 67, 33, 0.55); }
.fj-paper-crumbs .current { color: #2e2417; font-weight: 600; }

/* ---- Journal masthead ---- */
.fj-journal-masthead { position: relative; text-align: center; margin-bottom: 1rem; padding: 1.5rem 0 2.5rem; }
/* Faint compass-rose watermark. */
.fj-journal-masthead::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -10px;
  width: 200px;
  height: 200px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%238F3F14' stroke-width='2' opacity='0.16'%3E%3Ccircle cx='100' cy='100' r='88'/%3E%3Ccircle cx='100' cy='100' r='66'/%3E%3Cpath d='M100 12 L112 100 L100 188 L88 100 Z'/%3E%3Cpath d='M12 100 L100 88 L188 100 L100 112 Z'/%3E%3C/g%3E%3Ctext x='100' y='40' text-anchor='middle' font-family='Georgia,serif' font-size='22' fill='%238F3F14' opacity='0.22'%3EN%3C/text%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}
.fj-stamp {
  display: inline-block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: #8F3F14;
  border: 2px solid rgba(143, 63, 20, 0.75);
  border-radius: 3px;
  padding: 0.5em 1.1em 0.45em 1.34em;
  transform: rotate(-2deg);
  opacity: 0.85;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  margin-bottom: 1.25rem;
  position: relative; z-index: 1;
}
.fj-journal-title {
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.75rem, 4vw + 2rem, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  /* Gold-foil sheen sweep — treasure glint. */
  background: linear-gradient(100deg, #3a2c17 25%, #8a6a2a 42%, #f0d47e 50%, #8a6a2a 58%, #3a2c17 75%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fj-gold-sheen 8s linear infinite;
  position: relative; z-index: 1;
}
@keyframes fj-gold-sheen { to { background-position: 220% center; } }
.fj-journal-lede {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.125rem; line-height: 1.6;
  color: #4a3a24;
  max-width: 36rem;
  margin: 0 auto;
  position: relative; z-index: 1;
}
/* Wax seal with embossed initials. */
.fj-seal {
  position: absolute;
  top: 0.5rem;
  right: 0;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #b04734, #7e2a1c 60%, #5e1f14);
  box-shadow:
    0 4px 10px rgba(60, 20, 10, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.25),
    inset 0 -3px 6px rgba(0, 0, 0, 0.35);
  display: flex; align-items: center; justify-content: center;
  transform: rotate(-8deg);
  z-index: 1;
}
.fj-seal-letters {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: #f3e3c8;
  text-shadow: 0 -1px 2px rgba(0, 0, 0, 0.55), 0 1px 1px rgba(255, 255, 255, 0.18);
}
@media (max-width: 560px) { .fj-seal { width: 60px; height: 60px; } .fj-seal-letters { font-size: 1.05rem; } }

/* ---- Entries ---- */
.fj-entry { margin: 0 0 3rem; }
.fj-entry + .fj-entry {
  border-top: 2px dashed rgba(101, 67, 33, 0.28);
  padding-top: 3rem;
}
.fj-entry-date {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #8F3F14;
  margin-bottom: 0.5em;
}
.fj-entry-title {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 1.2rem + 2.5vw, 2.1rem);
  line-height: 1.2;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
.fj-entry-title a { color: #2e2417; text-decoration: none; }
.fj-entry-title a:hover { color: #B4551F; }
.fj-excerpt {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.05rem; line-height: 1.65;
  color: #3d3222;
}
.fj-excerpt p { margin: 0 0 1em; }
.fj-readmore {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.95rem; font-weight: 600;
  color: #8F3F14; text-decoration: none;
}
.fj-readmore:hover { color: #B4551F; }
.fj-entry-empty {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.1rem; font-style: italic;
  color: #4a3a24; text-align: center; padding: 3rem 0;
}

/* Taped specimen photo. */
.fj-taped { position: relative; margin: 0 0 1.5rem; }
.fj-taped img {
  display: block;
  width: 100%; height: auto;
  border: 8px solid #fdfbf4;
  border-radius: 2px;
  box-shadow: 0 10px 24px rgba(60, 40, 15, 0.28);
}
.fj-taped::before, .fj-taped::after {
  content: "";
  position: absolute;
  top: -13px;
  width: 92px; height: 26px;
  background: rgba(216, 196, 150, 0.78);
  box-shadow: 0 2px 4px rgba(60, 40, 15, 0.22);
  z-index: 1;
}
.fj-taped::before { left: 7%; transform: rotate(-6deg); }
.fj-taped::after { right: 7%; transform: rotate(5deg); }

/* ---- Treasure trail (desktop): dashed route linking entries ---- */
@media (min-width: 720px) {
  .fj-trail { position: relative; padding-left: 54px; margin-top: 3.5rem; }
  .fj-trail::before {
    content: "";
    position: absolute;
    left: 15px; top: 10px; bottom: 10px;
    border-left: 3px dashed rgba(143, 63, 20, 0.45);
  }
  .fj-entry { position: relative; }
  .fj-entry::before {
    content: "";
    position: absolute;
    left: -47px; top: 4px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #D9A441;
    border: 3px solid #8F3F14;
    box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.25);
  }
}

/* ---- X marks the spot ---- */
.fj-x-spot { text-align: center; margin: 1rem 0 3rem; }
.fj-x { position: relative; display: inline-block; width: 54px; height: 54px; }
.fj-x::before, .fj-x::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 54px; height: 9px;
  background: #8F3F14;
  border-radius: 3px;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.35);
}
.fj-x::before { transform: translate(-50%, -50%) rotate(45deg); }
.fj-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.fj-x-cap {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: #8F3F14;
  margin: 0.9rem 0 1.4rem;
}
.fj-btn-treasure {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px;
  padding: 0.85em 2em;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem; font-weight: 700;
  color: #fff !important;
  background: linear-gradient(180deg, #c05f27, #9c4a1b);
  border-radius: 10px;
  border: 1px solid rgba(60, 30, 8, 0.35);
  box-shadow: 0 6px 16px rgba(120, 60, 15, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-decoration: none;
  transition: transform 0.12s ease;
}
.fj-btn-treasure:hover { color: #fff !important; transform: translateY(-2px); }
.fj-btn-treasure:active { transform: scale(0.97); }

/* ---- Pagination on paper ---- */
.fj-pagination { margin: 0 0 1rem; text-align: center; }
.fj-pagination ul { list-style: none; margin: 0; padding: 0; display: inline-flex; flex-wrap: wrap; gap: 0.5rem; }
.fj-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
  padding: 0.4em 0.9em;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.85rem; font-weight: 500;
  color: #2e2417; text-decoration: none;
  border: 1.5px solid rgba(101, 67, 33, 0.4);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.25);
}
.fj-pagination a.page-numbers:hover { border-color: #8F3F14; color: #8F3F14; }
.fj-pagination .page-numbers.current {
  background: #8F3F14; border-color: #8F3F14; color: #f7efdc; font-weight: 700;
}
.fj-pagination .page-numbers.dots { border: 0; background: none; min-width: 0; }

/* ---- Reduced motion: calm the treasure ---- */
@media (prefers-reduced-motion: reduce) {
  .fj-journal-title { animation: none; }
  .fj-btn-treasure { transition: none; }
}

/* ==========================================================================
   Shared chrome + species pages (1.0.23) — child header.php / footer.php /
   page.php species layout.
   Everything rendered through get_header()/get_footer() used to inherit the
   parent theme's teal + dark-navy design. This section restyles that chrome
   and the species detail layout in the Field Journal language.

   Scoping rules (do not loosen):
   - Tokens live on the chrome elements themselves (and on body:not(.fj) as
     the inheritance base), so no rule here can reach the standalone
     front-page.php design — front-page markup uses fj-* classes only and
     contains none of the selectors below.
   - Parent style.css loads AFTER this file, so chrome selectors carry
     element+class (or id) weight to win the cascade.
   - Display/visibility mechanics of .mobile-menu and .mobile-toggle belong
     to the parent theme's JS — only paint (colors, fonts, borders) is set
     here, never display/position for those elements.
   ========================================================================== */

/* ---------- Journal chrome tokens ---------- */
body:not(.fj),
.announcement-bar, .site-header#site-header, .mobile-menu#mobile-menu,
.footer-cta, .site-footer {
  --jc-ivory: #FAF5EA;
  --jc-parchment: #F1E7D2;
  --jc-amber: #B4551F;
  --jc-amber-dark: #9C4A1B;
  --jc-gold: #D9A441;
  --jc-ink: #2A1E12;
  --jc-text: #221A12;
  --jc-link: #8F3F14;
  --jc-muted: #7A6A55;
  --jc-line: rgba(42, 30, 18, 0.14);
  --jc-ivory-85: rgba(250, 245, 234, 0.85);
  --jc-ivory-70: rgba(250, 245, 234, 0.7);
  --jc-ivory-60: rgba(250, 245, 234, 0.6);
  --jc-font-display: "Fraunces", Georgia, serif;
  --jc-font-body: "Source Serif 4", Georgia, serif;
  --jc-font-ui: "Inter", system-ui, -apple-system, sans-serif;
  --jc-font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

/* ---------- Page ground for chrome-rendered pages ---------- */
/* Worn-paper ground (same turbulence recipe as body.fj, lighter touch) so
   species pages, posts, and default pages sit on journal paper, not navy. */
body:not(.fj) {
  background-color: var(--jc-ivory);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.13 0 0 0 0 0.09 0 0 0 0.05 0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--jc-text);
}
body:not(.fj) a { text-decoration: none; }

/* ---------- Announcement bar (was teal #0d7377) ---------- */
/* Now the Fossil Amber promo bar, matching .fj-promo on the front page. */
div.announcement-bar {
  background: var(--jc-amber);
  color: #fff;
  font-family: var(--jc-font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  padding: 0.65em 1.25rem;
  border-bottom: 2px solid rgba(42, 30, 18, 0.25);
}
div.announcement-bar a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.22);
  padding: 0.18em 0.9em;
  border-radius: 999px;
  display: inline-block;
  margin-left: 0.25em;
}
div.announcement-bar a:hover { color: #fff; background: rgba(0, 0, 0, 0.35); }

/* ---------- Site header (was teal/navy) ---------- */
/* Bone-ivory bar with a sediment-strata rule under it (the .fj-strata
   bands, laid into the background so no layout property changes). */
header.site-header#site-header {
  background-color: rgba(250, 245, 234, 0.94);
  background-image: linear-gradient(to bottom,
    var(--jc-amber) 0 2px,
    var(--jc-gold) 2px 4px,
    var(--jc-ink) 4px 7px,
    var(--jc-parchment) 7px 10px,
    transparent 10px 12px);
  background-repeat: no-repeat;
  background-position: bottom left;
  background-size: 100% 12px;
  border-bottom: 1px solid var(--jc-line);
  box-shadow: 0 6px 24px rgba(42, 30, 18, 0.06);
  padding-bottom: 12px; /* room for the strata rule */
}
.site-header#site-header .site-logo { text-decoration: none; }
.site-header#site-header .logo-icon { background: transparent; box-shadow: none; border-radius: 0; width: 2.8rem; height: 2.8rem; flex: none; }
.site-header#site-header .logo-icon svg, .site-header#site-header .logo-icon img { width: 100%; height: 100%; display: block; }
.site-header#site-header .logo-title {
  font-family: var(--jc-font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--jc-text);
}
.site-header#site-header .logo-subtitle {
  font-family: var(--jc-font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--jc-muted);
}

/* Primary nav — journal index links (Inter, ink, amber hover, no underline).
   The walker may emit a list or bare anchors; both are covered. */
.site-header#site-header .main-nav ul { list-style: none; margin: 0; padding: 0; }
.site-header#site-header .main-nav li { margin: 0; }
.site-header#site-header .main-nav a {
  font-family: var(--jc-font-ui);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--jc-text);
  text-decoration: none;
  padding: 0.4em 0.2em;
}
.site-header#site-header .main-nav a:hover { color: var(--jc-amber); }
.site-header#site-header .main-nav .current-menu-item > a,
.site-header#site-header .main-nav .current_page_item > a { color: var(--jc-link); font-weight: 600; }

/* Book Tour buttons — Fossil Amber journal buttons (header + mobile menu). */
.site-header#site-header a.btn-book-tour,
.mobile-menu#mobile-menu a.btn-book-tour {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.6em 1.25em;
  font-family: var(--jc-font-ui);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  background: var(--jc-amber);
  border: 2px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.12s ease;
}
.site-header#site-header a.btn-book-tour:hover,
.mobile-menu#mobile-menu a.btn-book-tour:hover { background: var(--jc-amber-dark); color: #fff; }
.site-header#site-header a.btn-book-tour:active,
.mobile-menu#mobile-menu a.btn-book-tour:active { transform: scale(0.97); }

/* Mobile toggle — ink glyph on paper (mechanics stay with the parent JS). */
.site-header#site-header button.mobile-toggle#mobile-toggle {
  color: var(--jc-text);
  background: transparent;
  border: 1px solid var(--jc-line);
  border-radius: 10px;
}
.site-header#site-header button.mobile-toggle#mobile-toggle:hover { background: var(--jc-parchment); }

/* ---------- Mobile menu (paint only — never display/position) ---------- */
div.mobile-menu#mobile-menu {
  background-color: var(--jc-parchment);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.13 0 0 0 0 0.09 0 0 0 0.05 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  border-top: 1px solid var(--jc-line);
  border-bottom: 1px solid var(--jc-line);
  padding: 0.5rem 1.25rem 1.25rem;
}
.mobile-menu#mobile-menu a {
  display: block;
  font-family: var(--jc-font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--jc-text);
  text-decoration: none;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--jc-line);
}
.mobile-menu#mobile-menu a:hover { color: var(--jc-amber); }
.mobile-menu#mobile-menu .mobile-cta { padding-top: 1rem; }
.mobile-menu#mobile-menu .mobile-cta a { border-bottom: 0; padding: 0.6em 1.25em; color: #fff; }
.mobile-menu#mobile-menu .mobile-cta a:hover { color: #fff; }

/* ---------- Footer CTA banner (was teal/navy) ---------- */
/* Sediment-ink drama band, like .fj-history-band: gold kicker-style
   heading, ivory copy, Fossil Amber button, strata rule across the top. */
div.footer-cta {
  background-color: var(--jc-ink);
  background-image:
    linear-gradient(to bottom,
      var(--jc-gold) 0 2px,
      var(--jc-amber) 2px 4px,
      var(--jc-ivory) 4px 6px,
      transparent 6px 12px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.98 0 0 0 0 0.94 0 0 0 0 0.85 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: no-repeat, repeat;
  background-position: top left, top left;
  background-size: 100% 12px, 180px 180px;
  color: var(--jc-ivory);
  padding: 3.5rem 0 3rem;
  text-align: center;
}
.footer-cta h3 {
  font-family: var(--jc-font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 1.2rem + 2.2vw, 2.4rem);
  line-height: 1.2;
  color: var(--jc-ivory);
  margin: 0 0 0.5em;
}
.footer-cta p {
  font-family: var(--jc-font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--jc-ivory-70);
  max-width: 38rem;
  margin: 0 auto 1.5rem;
}
.footer-cta .cta-buttons { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.footer-cta a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 52px;
  padding: 0.8em 1.7em;
  font-family: var(--jc-font-ui);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 10px;
  border: 2px solid transparent;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.12s ease;
}
.footer-cta a.btn:active { transform: scale(0.97); }
.footer-cta a.btn-primary {
  background: var(--jc-amber);
  color: #fff;
}
.footer-cta a.btn-primary:hover { background: var(--jc-amber-dark); color: #fff; }

/* ---------- Site footer (was dark navy) ---------- */
/* Deep Sediment Ink, matching .fj-footer: Fraunces brand, gold mono
   column headings, ivory index links. */
footer.site-footer {
  background-color: var(--jc-ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.98 0 0 0 0 0.94 0 0 0 0 0.85 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--jc-ivory);
  border-top: 1px solid rgba(250, 245, 234, 0.14);
  padding: 3.5rem 0 2rem;
  font-family: var(--jc-font-body);
}
body.fj .site-footer h4 {
  font-family: var(--jc-font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #D9A441;
  margin: 0 0 1em;
}
/* The About column heading carries an inline font-size in footer.php;
   family + color still land from here. */
.site-footer .footer-grid > div:first-child h4 {
  font-family: var(--jc-font-display);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--jc-ivory);
}
.site-footer p { color: var(--jc-ivory-60); }
.site-footer .footer-links { display: grid; gap: 0.6rem; }
.site-footer .footer-links a {
  font-family: var(--jc-font-ui);
  font-size: 0.95rem;
  color: var(--jc-ivory-85);
  text-decoration: none;
}
.site-footer .footer-links a:hover { color: var(--jc-gold); }
.site-footer .footer-links span { color: var(--jc-ivory-60); }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(250, 245, 234, 0.14);
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-family: var(--jc-font-ui);
  font-size: 0.8125rem;
  color: var(--jc-ivory-60);
}
.site-footer .footer-bottom p { margin: 0 0 0.4em; }
.site-footer .footer-bottom a { color: var(--jc-ivory-85); text-decoration: none; }
.site-footer .footer-bottom a:hover { color: var(--jc-gold); }

/* Focus visibility on chrome pages, in journal gold. */
body:not(.fj) a:focus-visible, body:not(.fj) button:focus-visible,
body:not(.fj) input:focus-visible, body:not(.fj) select:focus-visible,
body:not(.fj) textarea:focus-visible {
  outline: 3px solid var(--jc-gold);
  outline-offset: 2px;
}

/* ==========================================================================
   Species detail pages (1.0.23) — child page.php, body.fj-species-page.
   The species layout keeps its exact content, facts, and links; only the
   paint changes to the Field Journal system.
   ========================================================================== */

/* Breadcrumbs — ink on paper (mirrors .fj-paper-crumbs). */
body.fj-species-page nav.breadcrumbs {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.85rem;
  padding: 1.25rem 0 0;
}
body.fj-species-page nav.breadcrumbs a {
  color: #8F3F14;
  text-decoration: none;
  font-weight: 500;
}
body.fj-species-page nav.breadcrumbs a:hover { color: #B4551F; }
body.fj-species-page nav.breadcrumbs .sep { margin: 0 0.5em; color: rgba(101, 67, 33, 0.55); }
body.fj-species-page nav.breadcrumbs .current { color: #2E2417; font-weight: 600; }

/* Species hero — journal masthead: rubber stamp, Fraunces title, italic latin. */
body.fj-species-page section.page-hero.fj-species-hero {
  background: rgba(241, 231, 210, 0.55);
  border-bottom: 1px solid rgba(42, 30, 18, 0.14);
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem);
  text-align: center;
}
body.fj-species-page .fj-species-hero .hero-content { max-width: 44rem; margin-inline: auto; }
body.fj-species-page .fj-species-stamp {
  display: inline-block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8F3F14;
  border: 2px solid rgba(143, 63, 20, 0.75);
  border-radius: 3px;
  padding: 0.5em 1.1em 0.45em 1.34em;
  transform: rotate(-2deg);
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 1.25rem;
}
body.fj-species-page .fj-species-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 1.6rem + 4.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: #2A1E12;
  margin: 0 0 0.4em;
  text-wrap: balance;
}
body.fj-species-page .fj-species-latin {
  font-family: "Source Serif 4", Georgia, serif;
  font-style: italic;
  font-size: 1.2rem;
  color: #7A6A55;
  margin: 0 0 1.1rem;
}
body.fj-species-page .fj-species-status {
  display: inline-block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8F3F14;
  background: rgba(143, 63, 20, 0.08);
  border: 1px solid rgba(143, 63, 20, 0.28);
  border-radius: 999px;
  padding: 0.4em 1em;
}

/* Species article ground — journal serif on paper. */
body.fj-species-page article.section {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.06rem;
  line-height: 1.7;
  color: #221A12;
  padding: 2.5rem 0 3.5rem;
}
body.fj-species-page .species-detail h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: #2A1E12;
  margin: 2.25rem 0 1rem;
  line-height: 1.25;
}
body.fj-species-page .species-detail a { color: #8F3F14; text-decoration: none; }
body.fj-species-page .species-detail a:hover { color: #B4551F; }

/* Species photo — taped specimen print (the .fj-taped treatment). */
body.fj-species-page .species-photo { position: relative; margin: 0 auto 2rem; max-width: 44rem; }
body.fj-species-page .species-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 8px solid #FDFBF4;
  border-radius: 2px;
  box-shadow: 0 10px 24px rgba(60, 40, 15, 0.28);
}
body.fj-species-page .species-photo::before,
body.fj-species-page .species-photo::after {
  content: "";
  position: absolute;
  top: -13px;
  width: 92px;
  height: 26px;
  background: rgba(216, 196, 150, 0.78);
  box-shadow: 0 2px 4px rgba(60, 40, 15, 0.22);
  z-index: 1;
}
body.fj-species-page .species-photo::before { left: 7%; transform: rotate(-6deg); }
body.fj-species-page .species-photo::after { right: 7%; transform: rotate(5deg); }

/* Sketch plate — species with an owner's field sketch but no photo yet. */
body.fj-species-page .species-photo-sketch { max-width: 26rem; }
body.fj-species-page .species-photo-sketch img { background: #fff; }
body.fj-species-page .species-photo-caption { margin: .9rem auto 0; text-align: center; font-family: var(--jc-font-mono); font-size: .78rem; letter-spacing: .04em; color: var(--jc-muted); }

/* Photo placeholder — dashed journal card while the owner uploads photos. */
body.fj-species-page .image-placeholder-lg {
  border: 2px dashed rgba(143, 63, 20, 0.45);
  border-radius: 14px;
  background: rgba(241, 231, 210, 0.6);
  color: #7A6A55;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 3rem 1.5rem;
  margin: 0 auto 2rem;
  max-width: 44rem;
}

/* Info grid — journal fact card: parchment sheet, amber mono labels. */
body.fj-species-page .info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: #F1E7D2;
  border: 1px solid rgba(42, 30, 18, 0.14);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(42, 30, 18, 0.1);
  padding: 0.5rem 1.5rem;
  margin: 0 0 1rem;
}
@media (min-width: 640px) { body.fj-species-page .info-grid { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
body.fj-species-page .info-item {
  display: grid;
  gap: 0.3rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid rgba(42, 30, 18, 0.14);
}
body.fj-species-page .info-item:last-child { border-bottom: 0; }
body.fj-species-page .info-label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #B4551F;
}
body.fj-species-page .info-value {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #221A12;
}

/* Region tags — journal stamps (inline font-size/padding come from markup). */
body.fj-species-page .species-tag {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8F3F14;
  background: rgba(143, 63, 20, 0.08);
  border: 1px solid rgba(143, 63, 20, 0.28);
  border-radius: 999px;
  white-space: nowrap;
}

/* Florida CTA — dashed amber journal card (renders exactly once, as before). */
body.fj-species-page .florida-cta {
  background: #F1E7D2;
  border: 1px dashed rgba(143, 63, 20, 0.5);
  border-radius: 14px;
  padding: 1.6rem 1.5rem;
  margin-top: 2.5rem;
  text-align: center;
}
body.fj-species-page .florida-cta h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: #2A1E12;
  margin: 0 0 0.4em;
}
body.fj-species-page .florida-cta p {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.95rem;
  color: #7A6A55;
  margin: 0 0 1.1rem;
}
body.fj-species-page .florida-cta a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.8em 1.6em;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid transparent;
  background: #B4551F;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.12s ease;
}
body.fj-species-page .florida-cta a.btn:hover { background: #9C4A1B; color: #fff; }
body.fj-species-page .florida-cta a.btn:active { transform: scale(0.97); }

/* Back-to-guide buttons — outline journal style; the old teal becomes amber. */
body.fj-species-page a.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7em 1.4em;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid #2A1E12;
  color: #221A12;
  background: transparent;
  text-decoration: none;
}
body.fj-species-page a.btn-outline:hover { background: rgba(42, 30, 18, 0.06); color: #221A12; }
body.fj-species-page a.btn-teal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7em 1.4em;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid transparent;
  background: #B4551F;
  color: #fff;
  text-decoration: none;
}
body.fj-species-page a.btn-teal:hover { background: #9C4A1B; color: #fff; }

/* The species-page footer-cta instance (page.php echoes it before
   get_footer()) gets the same chrome treatment as the footer one. */
body.fj-species-page div.footer-cta { text-align: center; }

/* Calm the strata + hero on reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
  body.fj-species-page .fj-species-stamp { transform: none; }
}

/* PWA install affordance (v1.0.29): a single floating pill, shown only
   when the browser offers installation (beforeinstallprompt). Literal
   colors: this renders on every template, not just body.fj pages. */
.fj-install { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 9990; }
.fj-install[hidden] { display: none; }
.fj-install-btn { background: #2A1E12; color: #F1E7D2; border: 1px solid #B4551F; border-radius: 999px; padding: 12px 22px; font: 600 15px/1.2 Inter, system-ui, sans-serif; box-shadow: 0 8px 24px rgba(42, 30, 18, .35); cursor: pointer; white-space: nowrap; }
.fj-install-btn:active { transform: translateY(1px); }
