/* Rugby Ban Impact Simulator Styles */
* {box-sizing: border-box;margin:0;padding:0;}
html {font-size: 16px;scroll-behavior: smooth;}
body {
font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
line-height: 1.6;color:#1a1a1a;background:#f8f9fa;
}
.container {max-width: 1200px;margin:0 auto;padding:0 1rem;}
header {
background:linear-gradient(135deg,#1e3a8a,#2c5282);
color:#fff;padding:1.5rem 0;box-shadow:0 2px 8px rgba(0,0,0,0.1);
}
header h1 {font-size:2rem;font-weight:700;margin-bottom:0.25rem;}
header .tagline {opacity:0.9;font-size:1rem;}
nav a {
color:#fff;text-decoration:none;margin-left:1.5rem;
padding:0.25rem 0.5rem;border-radius:4px;
transparent:hover{background:rgba(255,255,255,0.1);}
}
main {padding:2rem 0;}
h2 {font-size:1.5rem;font-weight:600;margin-bottom:1rem;color:#2d3748;}
h3 {font-size:1.25rem;font-weight:600;margin-bottom:0.5rem;color:#4a5568;}
.controls,.scenarios,.dashboard,.planning-guide {background:#fff;margin-bottom:2rem;padding:1.5rem;border-radius:8px;box-shadow:0 1px 4px rgba(0,0,0,0.08);}
.presets {display:flex;gap:0.5rem;margin-bottom:1.5rem;flex-wrap:wrap;}
.preset-btn {
background:#e2e8f0;border:none;padding:0.75rem 1.25rem;border-radius:6px;
cursor:pointer;font-size:0.875rem;transition:all 0.2s;
}
.preset-btn:hover {background:#cbd5e1;}
.preset-btn.active {background:#1e3a8a;color:#fff;}
.inputs-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;}
.input-group {display:flex;flex-direction:column;}
.input-group label {font-weight:500;margin-bottom:0.25rem;color:#2d3748;}
.input-group input {padding:0.75rem;border:1px solid #e2e8f0;border-radius:6px;font-size:1rem;}
.input-group input:focus {outline:none;border-color:#1e3a8a;box-shadow:0 0 0 3px rgba(30,58,138,0.2);}
.small {font-size:0.75rem;color:#718096;margin-top:0.25rem;}
.scenario-options {display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;}
.scenario-card {
border:2px solid #e2e8f0;border-radius:8px;padding:1rem;cursor:pointer;
transparent:hover{box-shadow:0 2px 8px rgba(0,0,0,0.1);}
}
.scenario-card.selected {border-color:#1e3a8a;background:#f0f4ff;}
.scenario-card input {position:absolute;opacity:0;pointer-events:none;}
.scenario-card label {display:block;}
.metric {display:flex;align-items:flex-end;gap:0.5rem;margin-bottom:0.5rem;}
.value {font-size:2rem;font-weight:700;}
.value.negative {color:#c53030;}
.unit {font-size:0.875rem;color:#718096;}
.impact-bar {height:8px;background:#e2e8f0;border-radius:4px;overflow:hidden;margin-bottom:1rem;}
.impact-fill {height:100%;background:#f59e0b;transition:width 0.3s;}
.impact-fill.negative {background:#e53e3e;}
.impact-fill.mixed {background:#38a169;}
.result-card {padding:1rem;border-left:4px solid #1e3a8a;}
.result-card h3 {font-size:1rem;margin-bottom:0.5rem;}
.detail {font-size:0.875rem;color:#4a5568;
}
.comparison-panel {background:#f7fafc;padding:1.25rem;border-radius:8px;margin-top:1rem;}
.comparison-panel table {width:100%;border-collapse:collapse;margin-bottom:1rem;}
.comparison-panel th,.comparison-panel td {padding:0.75rem;border-bottom:1px solid #e2e8f0;text-align:left;}
.comparison-panel th {background:#e2e8f0;font-weight:600;color:#2d3748;}
.comparison-panel tr:hover {background:#edf2f7;}
.export-controls {display:flex;gap:0.75rem;margin-top:1rem;}
.primary-btn,.secondary-btn {
padding:0.75rem 1.5rem;border:none;border-radius:6px;
cursor:pointer;font-size:0.875rem;transition:background 0.2s;
}
.primary-btn {background:#1e3a8a;color:#fff;}
.primary-btn:hover {background:#1a2b6b;}
.secondary-btn {background:#e2e8f0;color:#2d3748;}
.secondary-btn:hover {background:#cbd5e1;}
.guide-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem;}
.guide-card {background:#f7fafc;padding:1rem;border-radius:8px;}
.guide-card h3 {font-size:1rem;margin-bottom:0.5rem;color:#1e3a8a;}
.guide-card ul {list-style:discrete inside;font-size:0.875rem;line-height:1.5;}
.editorial-note {margin-top:1.5rem;padding:1rem;background:#edf2f7;border-radius:6px;font-size:0.875rem;}
.editorial-note p {margin-bottom:0.5rem;}
footer {background:#2d3748;color:#fff;padding:1rem 0;text-align:center;}
footer a {color:#90cdf4;text-decoration:none;}
@media (max-width:768px) {
header h1 {font-size:1.5rem;}
nav a {margin:0 0.75rem;}
.inputs-grid {grid-template-columns:1fr;}
.scenario-options {grid-template-columns:1fr;}
.guide-grid {grid-template-columns:1fr;}
.export-controls {flex-direction:column;}
}



/* 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;
}
