@import url('https://fonts.googleapis.com/css2?family=Saira+Condensed:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* ============================================================
   HORSEPAGE.CSS — Master stylesheet for horse profile page
   
   Sections:
     1. Variables & Reset
     2. Master Layout
     3. Section A: Horse Info (public)
     4. Section B: Owner Defaults (owner-only)
     5. Section C: Past Performances (public)
     6. Section D: Race Finder / RAFI (logged-in only)
     7. Responsive Breakpoints
   
   Naming: All classes prefixed horsepage_ to avoid conflicts
   with existing site CSS (style.css, styleNEW.css, mike.css, 
   responsive.css).
   
   NOTE: This page loads inside a "loadanywhere" window which 
   may have a side menu stealing ~220px. Breakpoints account 
   for this.
   ============================================================ */

/* -------------------------------------------------------
   1. VARIABLES & RESET
   ------------------------------------------------------- */
:root {
  /* Core palette - matches existing site feel */
  --hp-bg:          #f5f5f5;
  --hp-card-bg:     #ffffff;
  --hp-border:      #ddd;
  --hp-border-dark: #bbb;
  --hp-text:        #333;
  --hp-text-muted:  #666;
  --hp-text-light:  #999;
  
  /* Accent colors */
  --hp-green:       #2e8b57;
  --hp-green-dark:  #246d45;
  --hp-blue:        #4a90e2;
  --hp-blue-dark:   #3a72b5;
  --hp-purple:      #6f42c1;
  --hp-red:         #dc3545;
  --hp-red-dark:    #c82333;
  --hp-yellow:      #ffc107;
  
  /* Surface colors (from original) */
  --hp-dirt:        #a1887f;
  --hp-dirt-rgb:    161,136,127;
  --hp-turf:        #81c784;
  --hp-turf-rgb:    129,199,132;
  --hp-poly:        #7e57c2;
  --hp-poly-rgb:    126,87,194;
  --hp-dirt-light:        #eeeebb;
  --hp-dirt-light-rgb:    238, 238, 187;
  --hp-turf-light:        #C8E6C9;
  --hp-turf-light-rgb:    200, 230, 201;
  --hp-poly-light:        #ce93d8;
  --hp-poly-light-rgb:    206, 147, 216; 
  --hp-sprint:      #e3f2fd;
  --hp-route:       #fce4ec;
  --hp-off:         #f3e5f5;
  --hp-dirt-off-light: #ffe082;
  --hp-turf-off-light: #a5d6a7;
  --hp-turf-yld-light: #f2d6c1;
  --hp-poly-off-light: #90caf9;
  
  /* PP row colors */
  --hp-pp-yellow:   #ffeb3b;
  --hp-pp-purple:   #e1bee7;
  
  /* Badge colors */
  --hp-badge-blue:  #90caf9;
  --hp-badge-green: #81c784;
  --hp-badge-olive: #9e9d24;
  --hp-badge-teal:  #26a69a;
  --hp-badge-brown: #8d6e63;
  --hp-badge-red:   #f44336;
  
  /* Spacing */
  --hp-gap:         1em;
  --hp-gap-sm:      .75em;
  --hp-gap-xs:      .5em;
  --hp-pad:         1em;
  --hp-pad-sm:      .75em;
  --hp-radius:      10px;
  --hp-radius-sm:   5px;
  --hp-radius-lg:   20px;

  --font-inter:        "Inter", sans-serif;
  
  /* Typography */
  /* --hp-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; */
  --hp-font: var(--font-inter), ui-sans-serif, system-ui, sans-serif;
  --hp-font-sans: "Saira Condensed", system-ui, sans-serif;;
  /* --hp-font: "Inter", sans-serif; */
  --hp-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* -------------------------------------------------------
   2. MASTER LAYOUT
   
   Page stacks vertically:
     [Horse Info + Stats + Dam/Owner Controls]  ← top grid
     [Past Performances]                        ← full width
     [Race Finder]                              ← full width
   ------------------------------------------------------- */
.horsepage_wrapper {
  background: var(--ehr-page-bg);
  /* 🍞 BREADCRUMB: Force block layout so horsepage_top / owner / pps / rafi
     sections stack vertically. Without this, a parent flex container causes
     all 4 children to line up side-by-side. */
  display: block !important;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

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

