/* Rangeland Derby Team Analyzer Styles */
* { box-sizing: border-box; }
body {
 margin: 0;
 font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
 line-height: 1.6;
 color: #333;
 background-color: #fdf8f2;
}
.container {
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 1rem;
}
header {
 background: linear-gradient(135deg, #8B4513 0%, #a0522d 100%);
 color: white;
 padding: 1.5rem 0;
}
header h1 {
 margin: 0 0 0.25rem;
 font-size: 1.8rem;
}
header .tagline {
 margin: 0;
 opacity: 0.9;
}
nav {
 margin-top: 0.5rem;
}
nav a {
 color: rgba(255,255,255,0.9);
 text-decoration: none;
 margin-right: 1.5rem;
 font-size: 0.9rem;
}
nav a:hover {
 text-decoration: underline;
}
main {
 padding: 2rem 0;
}
section {
 margin-bottom: 2.5rem;
}
section h2 {
 color: #5d4037;
 margin-bottom: 1rem;
 font-size: 1.4rem;
 border-bottom: 2px solid #d7ccc8;
 padding-bottom: 0.25rem;
}
.controls {
 background: white;
 border-radius: 12px;
 padding: 1.5rem;
 box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.comparison-controls {
 display: grid;
 gap: 1rem;
 grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.selector-group label {
 display: block;
 font-weight: 600;
 margin-bottom: 0.25rem;
 font-size: 0.85rem;
}
.selector-group select {
 width: 100%;
 padding: 0.5rem;
 border: 2px solid #d7ccc8;
 border-radius: 6px;
 font-size: 1rem;
}
#compare-btn {
 background: #8B4513;
 color: white;
 border: none;
 padding: 0.75rem 1.5rem;
 border-radius: 6px;
 font-size: 1rem;
 font-weight: 600;
 cursor: pointer;
 margin-top: 0.5rem;
}
#compare-btn:hover {
 background: #5d4037;
}
.preset-comparisons {
 margin-top: 1rem;
 display: flex;
 gap: 0.5rem;
 flex-wrap: wrap;
}
.preset-btn {
 background: #e0e0e0;
 border: 1px solid #bdbdbd;
 padding: 0.5rem 1rem;
 border-radius: 20px;
 cursor: pointer;
 font-size: 0.85rem;
}
.preset-btn:hover {
 background: #bdbdbd;
}
#comparison-chart {
 display: flex;
 justify-content: center;
 margin-bottom: 1.5rem;
}
#performance-chart {
 max-width: 100%;
 height: auto;
}
team-profiles {
 display: grid;
 gap: 1rem;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.team-card {
 background: white;
 border-radius: 12px;
 padding: 1rem;
 box-shadow: 0 2px 8px rgba(0,0,0,0.08);
 border-left: 4px solid #8B4513;
}
.team-card h3 {
 margin: 0 0 0.5rem;
 color: #3e2723;
}
.team-card .metric {
 display: flex;
 justify-content: space-between;
 padding: 0.25rem 0;
 font-size: 0.9rem;
}
.team-card .metric span:first-child {
 color: #666;
}
.team-card .metric span:last-child {
 font-weight: 600;
}
#insights-content {
 background: #fff8e1;
 border-radius: 8px;
 padding: 1rem;
 border-left: 4px solid #FFB300;
}
.supporting-content {
 background: white;
 border-radius: 12px;
 padding: 1.5rem;
 box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.saved-panel {
 margin-top: 1.5rem;
 padding-top: 1rem;
 border-top: 1px solid #e0e0e0;
}
.saved-panel h3 {
 margin: 0 0 0.5rem;
 color: #5d4037;
}
#favorites-list {
 list-style: none;
 padding: 0;
 margin: 0;
}
#favorites-list li {
 padding: 0.5rem 0;
 border-bottom: 1px solid #f5f5f5;
}
#favorites-list li:last-child {
 border-bottom: none;
}
.favorite-btn {
 background: none;
 border: none;
 color: #8B4513;
 cursor: pointer;
 font-size: 1.2rem;
}
footer {
 background: #4e342e;
 color: #ccc;
 padding: 1.5rem 0;
 text-align: center;
}
footer a {
 color: #ffb74d;
 text-decoration: none;
}
@media (max-width: 768px) {
 header h1 {
 font-size: 1.5rem;
 }
 .comparison-controls {
 grid-template-columns: 1fr;
 }
 .team-profiles {
 grid-template-columns: 1fr;
 }
 .insights-content {
 padding: 0.75rem;
 }
 .supporting-content {
 padding: 1rem;
 }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
