/* ============================================================
   FOXWATCH, Site Styles
   Brand identity matched to the original Foxwatch Equine Services
   logo and banner work: deep navy script, silver/cream surfaces,
   ornate serif headers, clean modern body type.
   ============================================================ */

:root {
  /* Core brand palette extracted from logo1.png + foxwatch banner.JPG */
  --navy: #1B2D4F;          /* the deep blue of the Foxwatch script */
  --navy-dark: #0F1B30;
  --navy-light: #2E4670;
  --ink: #1A1A1A;           /* the fox-icon black */
  --ink-soft: #2C3340;
  --slate: #6B7785;         /* the muted slate of the original "WELCOME" header */
  --silver: #DEDCD7;        /* original banner background */
  --silver-light: #ECEAE5;
  --cream: #FAF8F4;         /* page background */
  --surface: #FFFFFF;
  --border: #D6D3CC;
  --border-light: #E8E5E0;
  --gold: #B89968;          /* warm metallic accent for CTAs */
  --gold-dark: #957844;
  --alert: #A23B2E;
  --link: #1B2D4F;
  --link-hover: #2E4670;

  /* Tier badges (sponsor framework) */
  --tier-board: #0F1B30;
  --tier-phd: #1B2D4F;
  --tier-industry: #6B7785;
  --tier-commercial: #B89968;

  /* Aliases the rest of the site already uses; remapped to brand */
  --primary: var(--navy);
  --primary-dark: var(--navy-dark);
  --primary-light: var(--navy-light);
  --secondary: var(--ink);
  --secondary-dark: var(--ink-soft);
  --bg: var(--cream);
  --parchment: var(--silver-light);
  --ink-muted: var(--slate);
  --highlight: var(--gold);
  --accent: var(--navy);

  --shadow-sm: 0 1px 2px rgba(15, 27, 48, 0.06);
  --shadow-md: 0 4px 6px rgba(15, 27, 48, 0.08);
  --shadow-lg: 0 10px 24px rgba(15, 27, 48, 0.10);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink-soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.font-serif { font-family: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif; }
.font-script { font-family: 'Allura', 'Great Vibes', cursive; }
.font-mono   { font-family: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace; }

/* ---------- Layout ---------- */

.container        { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 760px;  margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Header ---------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  height: 56px;
  width: auto;
  display: block;
}

.brand-tagline {
  display: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--slate);
  border-left: 1px solid var(--border);
  padding-left: 0.85rem;
}

@media (min-width: 1100px) {
  .brand-tagline { display: block; }
}

.nav {
  display: flex;
  gap: 0.15rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: background 120ms, color 120ms;
}
.nav a:hover  { background: var(--silver-light); color: var(--navy); }
.nav a.active { color: var(--navy); background: var(--silver-light); }

@media (max-width: 760px) {
  .site-header .container { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
  .nav  { width: 100%; gap: 0; overflow-x: auto; padding-bottom: 0.25rem; }
  .nav a { padding: 0.4rem 0.6rem; font-size: 0.85rem; white-space: nowrap; }
  .brand-logo { height: 44px; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 4.5rem 0 4rem;
  background: linear-gradient(180deg, var(--silver-light) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--border-light);
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.12;
  color: var(--navy-dark);
  max-width: 22ch;
  margin-bottom: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero .lede {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--slate);
  max-width: 55ch;
  margin-bottom: 2rem;
  line-height: 1.55;
}

.hero .cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-banner {
  height: 260px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border-light);
}

.hero-portrait {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-portrait img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: block;
}
@media (max-width: 880px) {
  .hero-portrait { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 150ms;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

.btn-primary  { background: var(--navy); color: white; }
.btn-primary:hover { background: var(--navy-dark); }

.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { background: var(--silver-light); border-color: var(--navy-light); color: var(--navy); }

.btn-gold { background: var(--gold); color: white; }
.btn-gold:hover { background: var(--gold-dark); }

.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: white; }

/* ---------- Sections ---------- */

section { padding: 4.5rem 0; }

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy-dark);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.75rem;
}

.section-lede {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--slate);
  font-size: 1.18rem;
  max-width: 60ch;
  margin-bottom: 2.5rem;
  line-height: 1.55;
}

/* ---------- Cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all 200ms;
}

.card:hover {
  border-color: var(--navy-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card a { text-decoration: none; color: inherit; }

.card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  color: var(--navy-dark);
  text-transform: uppercase;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin-bottom: 1rem;
  line-height: 1.55;
}

.card .arrow {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }

/* ---------- Article (topic page) ---------- */

article.topic { padding: 3rem 0 4rem; }

article.topic h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--navy-dark);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

article.topic .meta {
  font-size: 0.85rem;
  color: var(--slate);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

article.topic .meta .pill {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  background: var(--silver-light);
  border-radius: 99px;
  font-size: 0.75rem;
  margin-right: 0.4rem;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 0.04em;
}

article.topic h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  margin: 2.5rem 0 1rem;
  font-weight: 600;
  color: var(--navy-dark);
  letter-spacing: 0.02em;
}

article.topic h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  margin: 2rem 0 0.75rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
}

article.topic p {
  font-size: 1.04rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  max-width: 70ch;
  color: var(--ink-soft);
}

article.topic ul, article.topic ol {
  margin: 1rem 0 1.5rem 1.5rem;
  font-size: 1.04rem;
  line-height: 1.65;
}

article.topic li { margin-bottom: 0.4rem; max-width: 70ch; }

article.topic blockquote {
  border-left: 3px solid var(--navy);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--silver-light);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  max-width: 70ch;
}

article.topic table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

article.topic th {
  text-align: left;
  padding: 0.7rem 1rem;
  background: var(--silver-light);
  font-weight: 700;
  color: var(--navy-dark);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

article.topic td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

article.topic tr:last-child td { border-bottom: none; }

/* citation hover */
.cite {
  vertical-align: super;
  font-size: 0.7rem;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  margin-left: 1px;
  cursor: help;
  border-bottom: 1px dotted var(--navy);
}

.cite:hover { color: var(--navy-dark); }

/* Citation list items at the bottom of pssm.html, epm.html, feeding-pssm.html
   are wrapped in a.cite-source -> the full review page. Make them obviously
   clickable. */
a.cite-source {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px dotted var(--navy-light);
  transition: color 120ms, border-bottom-color 120ms;
}
a.cite-source:hover {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
}
a.cite-source .font-mono {
  color: inherit;
}

/* reading layer toggle */
.layer-tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--silver-light);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  margin: 2rem 0 1.5rem;
  width: fit-content;
}

.layer-tab {
  padding: 0.45rem 1.1rem;
  border: none;
  background: transparent;
  color: var(--slate);
  font-weight: 600;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 120ms;
  font-family: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.layer-tab.active {
  background: var(--surface);
  color: var(--navy-dark);
  box-shadow: var(--shadow-sm);
}

.layer-content { display: none; }
.layer-content.active { display: block; }

/* ---------- Tier badges ---------- */

.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: var(--surface);
}

.tier-board     { color: white; background: var(--tier-board);     border-color: var(--tier-board); }
.tier-phd       { color: white; background: var(--tier-phd);       border-color: var(--tier-phd); }
.tier-industry  { color: white; background: var(--tier-industry);  border-color: var(--tier-industry); }
.tier-commercial{ color: white; background: var(--tier-commercial);border-color: var(--tier-commercial); }

.sponsor-ribbon {
  background: var(--silver-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: var(--slate);
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.sponsor-ribbon strong { color: var(--ink); }

/* ---------- Tools ---------- */

.tool {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin: 2rem 0;
}

.tool-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.tool label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.4rem;
}

.tool input, .tool select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--surface);
  transition: border-color 120ms;
  color: var(--ink-soft);
}

.tool input:focus, .tool select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27, 45, 79, 0.12);
}

.tool .result {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--silver-light);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--navy);
}

.tool .result h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy-dark);
  margin-bottom: 0.5rem;
}

.tool .verdict-good { border-left-color: var(--navy); }
.tool .verdict-warn { border-left-color: var(--gold); }
.tool .verdict-bad  { border-left-color: var(--alert); }

.tool .result-meta {
  font-size: 0.85rem;
  color: var(--slate);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ---------- Charts ---------- */

.chart-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
}

.chart-container h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy-dark);
  margin-bottom: 0.25rem;
}

.chart-container .chart-source {
  font-size: 0.78rem;
  color: var(--slate);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}

/* ---------- Disclaimer banner ---------- */

.disclaimer {
  background: #FCEFE0;
  border-left: 4px solid var(--gold);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 70ch;
}

.disclaimer strong { color: var(--ink); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-dark);
  color: #C2CADB;
  padding: 3.5rem 0 2rem;
  margin-top: 5rem;
  font-size: 0.92rem;
}

.site-footer a { color: #C2CADB; text-decoration: none; transition: color 120ms; }
.site-footer a:hover { color: white; }

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.site-footer h5 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  color: white;
}

.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.4rem; }

.site-footer .footer-meta {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  font-size: 0.78rem;
  color: #8A91A2;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-footer .footer-brand-logo {
  height: 56px;
  width: auto;
  margin-bottom: 1rem;
  background: white;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

@media (max-width: 760px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---------- Quote / pull block ---------- */

.quote-block {
  background: var(--silver-light);
  padding: 3.25rem 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  margin: 4rem 0;
  border-top: 3px solid var(--navy);
  border-bottom: 3px solid var(--navy);
}

.quote-block blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  line-height: 1.4;
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 32ch;
  margin: 0 auto 1.25rem;
}

.quote-block cite {
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}

/* ---------- Stat strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.stat {
  text-align: center;
  padding: 1.75rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 200ms;
}

.stat:hover {
  border-color: var(--navy-light);
  box-shadow: var(--shadow-sm);
}

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--navy-dark);
  line-height: 1;
  letter-spacing: 0.02em;
}

.stat-label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 0.5rem;
}

/* ---------- Misc ---------- */

.text-muted    { color: var(--slate); }
.text-center   { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1.5rem; }

a.arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 120ms;
}
a.arrow:hover { color: var(--navy-dark); }

/* ---------- Service cards (umbrella homepage) ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 200ms;
  text-decoration: none;
  color: inherit;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy-light);
}

.service-card .service-thumb {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--silver);
  border-bottom: 1px solid var(--border);
}

.service-card .service-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.service-card .service-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}

.service-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
  color: var(--navy-dark);
  text-transform: uppercase;
}

.service-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.55;
}

.service-card .service-cta {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}

/* ---------- Decorative section divider ---------- */

.divider-fox {
  display: block;
  width: 60px;
  height: 60px;
  margin: 2rem auto;
  opacity: 0.4;
}

/* ---------- Photo gallery (About / Services) ---------- */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1rem 0 0;
}
.photo-gallery figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 200ms, box-shadow 200ms;
}
.photo-gallery figure:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.photo-gallery img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  background: var(--silver);
}
.photo-gallery figcaption {
  padding: 0.75rem 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
  background: var(--surface);
  border-top: 1px solid var(--border-light);
}

/* ============================================================
   Tools index page: featured cards + enumerated table
   ============================================================ */
.tools-featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 3.5rem;
}
.tools-feature-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  align-items: center;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 220ms, box-shadow 220ms, border-color 220ms;
  position: relative;
  overflow: hidden;
}
.tools-feature-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--gold) 100%);
}
.tools-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.tools-feature-icon {
  width: 96px;
  height: 96px;
  background: var(--silver-light);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tools-feature-icon svg { width: 100%; height: 100%; }
.tools-feature-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.4rem;
}
.tools-feature-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.65rem;
  color: var(--navy-dark);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}
.tools-feature-body p {
  font-size: 0.96rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 0.75rem;
}
.tools-feature-cta {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy-dark);
  text-transform: uppercase;
}
.tools-feature-card:hover .tools-feature-cta { color: var(--gold-dark); }

/* The full enumerated tools table */
.tools-table-wrap {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  margin: 2rem 0 1rem;
}
.tools-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 880px;
}
.tools-table thead th {
  background: var(--navy-dark);
  color: white;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 1rem;
  text-align: left;
  vertical-align: middle;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}
.tools-table thead th:last-child { border-right: none; }
.tools-table thead th.ttl-col-name   { width: 19%; }
.tools-table thead th.ttl-col-what   { width: 30%; }
.tools-table thead th.ttl-col-input  { width: 18%; }
.tools-table thead th.ttl-col-source { width: 12%; }
.tools-table thead th.ttl-col-status { width: 10%; }
.tools-table thead th.ttl-col-action { width: 11%; }
.tools-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background 140ms;
}
.tools-table tbody tr:last-child { border-bottom: none; }
.tools-table tbody tr:hover { background: var(--silver-light); }
.tools-table tbody td {
  padding: 1rem 1rem;
  vertical-align: top;
  line-height: 1.5;
  color: var(--ink-soft);
}
.tools-table tbody td.ttl-name {
  background: rgba(27, 45, 79, 0.04);
  border-right: 1px solid var(--border-light);
  font-size: 0.95rem;
}
.tools-table tbody td.ttl-name strong {
  color: var(--navy-dark);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  display: block;
  letter-spacing: 0.005em;
}
.tools-table .ttl-detail {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--gold-dark);
  font-style: italic;
  margin-top: 0.2rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.tools-table .ttl-source {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.ttl-status {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ttl-status-live {
  background: #5E8662;
  color: white;
}
.ttl-status-soon {
  background: var(--gold);
  color: var(--navy-dark);
}
.ttl-status-research {
  background: var(--silver);
  color: var(--ink-soft);
  border: 1px solid var(--border);
}
.ttl-btn {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  background: var(--navy-dark);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
  transition: background 140ms, transform 140ms;
  white-space: nowrap;
}
.ttl-btn:hover {
  background: var(--gold-dark);
  transform: translateX(2px);
  color: white;
}
.ttl-btn-disabled {
  background: var(--silver-light);
  color: var(--ink-muted);
  cursor: default;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.78rem;
  border: 1px dashed var(--border);
}
.ttl-btn-disabled:hover {
  background: var(--silver-light);
  color: var(--ink-muted);
  transform: none;
}

.tools-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 1rem 0 1.5rem;
  padding-top: 1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.tools-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.tools-disclaimer {
  background: var(--silver-light);
  border-left: 4px solid var(--navy-dark);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1rem 1.25rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-style: italic;
  line-height: 1.6;
  margin: 1.5rem 0 0;
}

@media (max-width: 720px) {
  .tools-feature-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .tools-feature-icon {
    width: 72px;
    height: 72px;
  }
}

/* ---------- Print stylesheet (used by Playwright for clean PDF generation) ---------- */
/* PDFs read as proper lit review documents: title, then the actual review prose
   with inline figures, then references. All web-page navigation chrome is stripped. */
@media print {
  /* Strip nav chrome and footer entirely */
  .site-header, .site-footer { display: none !important; }
  .nav, .brand, footer { display: none !important; }

  /* Strip web-page navigation layer */
  .section-eyebrow,
  article.topic .meta,
  .contribution-card,
  .prompt-block,
  .captured-charts-block,
  .page-gallery,
  .downloads,
  .related-reviews,
  h2.print-hide-me,
  h3.print-hide-me,
  h3 + p.print-hide-me { display: none !important; }

  /* Hide the H2 section headers above stripped content */
  article.topic > .container-narrow > h2 { display: none !important; }
  /* Re-show the References H2 (it IS part of the document) */
  .references-ieee h2 { display: block !important; }

  /* Layout tightening for print */
  body { background: white; color: var(--ink); font-size: 11pt; line-height: 1.5; }
  article.topic { padding: 0; }
  .container, .container-narrow { max-width: 6.8in; padding: 0; margin: 0; }

  /* Print-friendly headings */
  article.topic h1 { font-size: 22pt; margin: 0 0 0.5em; page-break-after: avoid; }
  article.topic h2 { font-size: 14pt; margin: 1.2em 0 0.5em; page-break-after: avoid; }
  article.topic h3 { font-size: 12pt; margin: 1em 0 0.4em; page-break-after: avoid; }

  /* Don't break inside small blocks */
  .contribution-card, .prompt-block, figure, .captured-chart, .ieee-ref { break-inside: avoid; page-break-inside: avoid; }

  /* Captured charts: simpler grid in print */
  .captured-charts-block { background: transparent; border: 1px solid #ccc; padding: 1em; }
  .captured-charts-grid { grid-template-columns: 1fr 1fr; gap: 0.5em; }
  .captured-chart img { max-height: 4in; object-fit: contain; }

  /* Inline figures */
  figure.md-figure-captured img { max-height: 5in; object-fit: contain; }

  /* References list a touch tighter */
  .references-ieee { margin-top: 1.5em; padding-top: 1em; }
  .ieee-ref { padding: 0.4em 0 0.4em 2.4em; font-size: 9.5pt; }

  /* Cite-link in body keeps the link, no underline */
  .cite-link { color: var(--navy); text-decoration: none; }

  /* Force page break before References so the section starts on its own page */
  section.references-ieee { break-before: page; page-break-before: always; }
}
