/* Fox's Eye — Mr Fox's exclusive-analysis band on /news/.
   Sits between the mosaic (lead + sub-features) and the below-mosaic
   widgets. Cream-and-copper editorial palette with a fox-mark
   masthead + full-bleed racing image + underlined-link CTA.

   v3 revamp:
     - Circular fox mark, sans-serif "FOX'S EYE" wordmark, kicker line
     - Full-bleed image column (no aspect ratio box)
     - "The Deep Dive" kicker above the title
     - Race meta line with pipe separators
     - Icon-led chip row (going / prize / runners)
     - Underlined-text CTA with slide-arrow (not a button)
     - Byline-aware CTA copy driven by article.read_cta_label */

.foxes-eye {
  --fe-ink:        #1a1310;
  --fe-ink-70:     #44362f;
  --fe-ink-50:     #6a5a50;
  --fe-ink-40:     rgba(26, 19, 16, 0.44);
  --fe-cream:      #fffcf3;
  --fe-cream-2:    #faf4e0;
  --fe-line:       rgba(139, 90, 43, 0.16);
  --fe-line-2:     rgba(139, 90, 43, 0.08);
  --fe-copper:     #8b5a2b;
  --fe-copper-2:   #6f4520;
  --fe-copper-3:   #4a2f16;
  --fe-copper-lt:  rgba(139, 90, 43, 0.10);
  --fe-gold:       #d4af37;
  --fe-gold-deep:  #9c7a1b;
  --fe-gold-soft:  #f2e3a3;
  --fe-shadow:     0 18px 42px -24px rgba(74, 47, 22, 0.55);

  margin: 32px 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--fe-cream);
  border: 1px solid var(--fe-line);
  box-shadow: var(--fe-shadow);
  container-type: inline-size;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.foxes-eye:has(.foxes-eye__band:hover) {
  transform: translateY(-1px);
  box-shadow: 0 26px 54px -24px rgba(74, 47, 22, 0.55);
}

/* ── Masthead ─────────────────────────────────────────────── */
.foxes-eye__masthead {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  background: var(--fe-cream);
  border-bottom: 1px solid var(--fe-line);
}
.foxes-eye__mark {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.foxes-eye__mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.foxes-eye__wordmark {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, 'Helvetica Neue', 'Inter', sans-serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--fe-ink);
  text-transform: uppercase;
}
.foxes-eye__masthead-sep {
  width: 1px;
  height: 22px;
  background: var(--fe-line);
}
.foxes-eye__masthead-kicker {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fe-copper-2);
}
.foxes-eye__pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 5px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 1px 0 rgba(74, 47, 22, 0.15) inset;
}
.foxes-eye__pill-icon {
  font-size: 12px;
  line-height: 1;
  color: var(--fe-gold-soft);
}
.foxes-eye__pill--antepost { background: var(--fe-copper);  color: var(--fe-cream); }
.foxes-eye__pill--race_day { background: #7A5B0E;            color: var(--fe-cream); }
.foxes-eye__pill--preview  { background: #4A5F43;            color: var(--fe-cream); }

/* ── Band (clickable card body) ───────────────────────────── */
.foxes-eye__band {
  display: grid;
  grid-template-columns: minmax(280px, 40%) 1fr;
  gap: 0;
  color: inherit;
  text-decoration: none;
  background: var(--fe-cream);
}

/* ── Image column — full-bleed to the section edges ───────── */
.foxes-eye__image-frame {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  background: linear-gradient(160deg,
    var(--fe-copper-2) 0%,
    var(--fe-copper)   60%,
    var(--fe-gold-deep) 100%);
}
.foxes-eye__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.foxes-eye__band:hover .foxes-eye__image { transform: scale(1.03); }
.foxes-eye__image-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    transparent 45%,
    rgba(26, 19, 16, 0.14) 100%);
}
.foxes-eye__image--placeholder {
  display: grid;
  place-items: center;
  isolation: isolate;
  height: 100%;
  background:
    radial-gradient(circle at 30% 30%,
      rgba(242, 227, 163, 0.35),
      transparent 45%),
    linear-gradient(160deg, var(--fe-copper-2), var(--fe-copper) 60%, var(--fe-gold-deep));
}
.foxes-eye__glyph {
  position: relative;
  z-index: 1;
  color: var(--fe-gold-soft);
  font-size: 68px;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(74, 47, 22, 0.35);
}
.foxes-eye__glyph-halo {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1px dashed rgba(242, 227, 163, 0.45);
  z-index: 0;
  animation: fe-halo 12s linear infinite;
}
@keyframes fe-halo {
  from { transform: rotate(0deg);   }
  to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .foxes-eye__glyph-halo { animation: none; }
  .foxes-eye__band:hover .foxes-eye__image { transform: none; }
}

/* ── Body column ─── */
.foxes-eye__body {
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.foxes-eye__kicker {
  margin: 0 0 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fe-gold-deep);
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--fe-gold);
  align-self: flex-start;
}

.foxes-eye__title {
  margin: 0 0 14px;
  font-family: 'Playfair Display', 'Iowan Old Style', Georgia, serif;
  font-weight: 900;
  font-size: 32px;
  line-height: 1.08;
  color: var(--fe-ink);
  letter-spacing: -0.02em;
  text-wrap: balance;
  transition: color 0.15s ease;
}
.foxes-eye__band:hover .foxes-eye__title { color: var(--fe-copper-2); }

.foxes-eye__race-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--fe-ink-50);
  font-variant-numeric: tabular-nums;
}
.foxes-eye__race-course {
  color: var(--fe-copper-2);
  font-weight: 800;
  font-family: 'Playfair Display', 'Iowan Old Style', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  letter-spacing: -0.005em;
}
.foxes-eye__race-sep {
  color: var(--fe-ink-40);
  font-weight: 400;
  font-size: 13px;
}
.foxes-eye__race-slot { letter-spacing: 0.02em; }

/* ── Icon chips ─── */
.foxes-eye__chips {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.foxes-eye__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid var(--fe-line);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--fe-ink-70);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.foxes-eye__chip-icon {
  width: 16px;
  height: 16px;
  color: var(--fe-copper);
  flex-shrink: 0;
}

.foxes-eye__deck {
  margin: 0 0 22px;
  font-family: 'Playfair Display', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--fe-ink-70);
  max-width: 62ch;
}
/* Inline horse-name mention (via [[Horse Name]] wire-links filter) —
   promoted to gold in Fox's Eye deck so the "hook" horse of the piece
   is legible without reading the prose. Overrides the app-wide
   .wire-horse-mention style just for this component. */
.foxes-eye__deck .wire-horse-mention,
.foxes-eye__deck a.wire-horse-mention {
  color: var(--fe-copper-2);
  font-weight: 800;
  font-style: italic;
  text-decoration: none;
  border-bottom: 1.5px solid var(--fe-gold);
  padding-bottom: 1px;
  transition: color 0.15s ease;
}
.foxes-eye__band:hover .foxes-eye__deck .wire-horse-mention {
  color: var(--fe-copper-3);
}

/* ── Footer strip: underlined CTA + meta ─── */
.foxes-eye__footer {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--fe-line);
}
.foxes-eye__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 2px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--fe-ink);
  letter-spacing: -0.005em;
  border-bottom: 2px solid var(--fe-gold);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.foxes-eye__band:hover .foxes-eye__cta {
  color: var(--fe-copper-2);
  border-bottom-color: var(--fe-copper);
}
.foxes-eye__cta-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
  font-weight: 900;
  color: var(--fe-copper);
}
.foxes-eye__band:hover .foxes-eye__cta-arrow {
  transform: translateX(4px);
}

.foxes-eye__meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  color: var(--fe-ink-50);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.foxes-eye__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}
.foxes-eye__meta-item--countdown { color: var(--fe-copper-2); font-weight: 700; }
.foxes-eye__meta-icon {
  width: 15px;
  height: 15px;
  color: var(--fe-copper);
  flex-shrink: 0;
}

/* ── Container queries — respond to parent, not viewport ──── */
@container (max-width: 720px) {
  .foxes-eye__band {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .foxes-eye__image-frame {
    min-height: 220px;
    aspect-ratio: 16 / 9;
  }
  .foxes-eye__body { padding: 22px 20px; }
  .foxes-eye__title { font-size: 24px; }
  .foxes-eye__deck  { font-size: 15px; }
  .foxes-eye__masthead { padding: 12px 20px; }
  .foxes-eye__masthead-kicker { display: none; }
  .foxes-eye__masthead-sep { display: none; }
  .foxes-eye__meta { margin-left: 0; flex-basis: 100%; }
  .foxes-eye__cta { font-size: 14px; }
}
@container (max-width: 460px) {
  .foxes-eye__wordmark { font-size: 17px; }
  .foxes-eye__mark { width: 36px; height: 36px; }
  .foxes-eye__pill { font-size: 10px; padding: 6px 10px; }
  .foxes-eye__chip { font-size: 12px; padding: 6px 10px; }
}


/* ── Fox Verdict overlay (PR 2) ─────────────────────────────
   Sits over the bottom-left of the image column when the deep-dive
   article carries a top-pick conviction. Derived from body_structured
   — NOT editor-set — so no articles get a five-star rating without
   the LLM saying so. Self-hides when article.fox_verdict is None. */
.foxes-eye__verdict {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg,
    rgba(58, 38, 23, 0.92),
    rgba(26, 19, 16, 0.88));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 6px;
  box-shadow:
    0 8px 22px -10px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(212, 175, 55, 0.10) inset;
  color: var(--fe-cream);
  pointer-events: none;
}
.foxes-eye__verdict--high {
  border-color: rgba(212, 175, 55, 0.62);
  box-shadow:
    0 10px 26px -10px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(212, 175, 55, 0.20) inset;
}
.foxes-eye__verdict--moderate {
  border-color: rgba(212, 175, 55, 0.28);
}

.foxes-eye__verdict-mark {
  display: inline-flex;
  flex-shrink: 0;
}
.foxes-eye__verdict-mark svg { display: block; }

.foxes-eye__verdict-body {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  min-width: 0;
}

.foxes-eye__verdict-label {
  grid-column: 1 / -1;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--fe-gold-soft);
}

.foxes-eye__verdict-stars {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 1px;
  white-space: nowrap;
}
.foxes-eye__verdict-stars-fill {
  color: var(--fe-gold);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
.foxes-eye__verdict-stars-dim {
  color: rgba(212, 175, 55, 0.25);
}

.foxes-eye__verdict-tier {
  font-family: 'Playfair Display', 'Iowan Old Style', Georgia, serif;
  font-style: italic;
  font-weight: 900;
  font-size: 13px;
  color: var(--fe-cream);
  letter-spacing: -0.005em;
  align-self: center;
}

@container (max-width: 720px) {
  .foxes-eye__verdict {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 8px 12px;
    gap: 10px;
  }
  .foxes-eye__verdict-mark svg { width: 22px; height: 22px; }
  .foxes-eye__verdict-stars { font-size: 13px; }
  .foxes-eye__verdict-tier { font-size: 12px; }
}
