/* Bocce Scoring Calculator Styles */
* {box-sizing:border-box;margin:0;padding:0;}
body {font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;line-height:1.6;color:#333;background:#f8f9fa;}
.container {max-width:900px;margin:0 auto;padding:1rem;}
header {background:linear-gradient(135deg,#2e8b57,#1e5631);color:#fff;padding:1.5rem 0;box-shadow:0 2px 8px rgba(0,0,0,0.1);}
header h1 {font-size:1.8rem;margin-bottom:0.3rem;}
header .tagline {font-size:1rem;opacity:0.9;}
nav {display:flex;gap:1.5rem;margin-top:0.5rem;}
nav a {color:#fff;text-decoration:none;opacity:0.9;transition:opacity 0.2s;}
nav a:hover {opacity:1;}
main {padding:2rem 0;}
section {margin-bottom:2.5rem;background:#fff;padding:1.5rem;border-radius:8px;box-shadow:0 1px 4px rgba(0,0,0,0.08);}
.hero h2 {font-size:1.6rem;margin-bottom:0.5rem;color:#2e8b57;}
.hero p {color:#666;}
.calculator .input-group {margin-bottom:1rem;}
.calculator label {display:block;font-weight:600;margin-bottom:0.25rem;color:#444;}
.calculator select, .calculator input {width:100%;padding:0.5rem;margin-bottom:0.5rem;border:1px solid #ddd;border-radius:4px;font-size:1rem;}
.inputs-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;}
.player-input label {font-weight:500;margin-bottom:0.25rem;}
.player-input input {width:100%;padding:0.4rem;border:1px solid #ccc;border-radius:4px;font-size:0.95rem;}
.player-input input::placeholder {color:#999;}
.cta-button {background:#2e8b57;color:#fff;border:none;padding:0.8rem 1.5rem;font-size:1rem;font-weight:600;border-radius:4px;cursor:pointer;transition:background 0.2s;width:100%;margin-top:1rem;}
.cta-button:hover {background:#1e5631;}
.results {background:#e8f5e9;padding:1rem;border-radius:6px;margin-top:1rem;}
.ratio-display {display:inline-block;text-align:center;margin:0 1rem;}
.ratio-value {font-size:1.8rem;font-weight:700;color:#2e8b57;}
.ratio-label {font-size:0.8rem;color:#666;}
.recommendation {margin-top:1rem;padding-top:1rem;border-top:1px solid #c8e6c9;}
.recommendation h3 {font-size:1rem;color:#2e8b57;margin-bottom:0.3rem;}
.scenario-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem;}
.scenario-card {background:#f1f8e9;padding:1rem;border-radius:6px;border-left:4px solid #2e8b57;}
.scenario-card h3 {font-size:1rem;color:#1e5631;margin-bottom:0.3rem;}
.scenario-card p {font-size:0.9rem;color:#555;}
.reference table {width:100%;border-collapse:collapse;margin-bottom:1rem;}
.reference th, .reference td {padding:0.75rem;border:1px solid #e0e0e0;text-align:left;background:#fafafa;}
.reference th {background:#e8f5e9;color:#2e8b57;}
.reference tr:nth-child(even) {background:#fff;}
.ad-placeholder {background:#f0f0f0;border:1px dashed #ccc;border-radius:4px;padding:2rem;text-align:center;color:#999;font-size:0.9rem;margin:1rem 0;}
.hidden {display:none;}
footer {background:#333;color:#fff;padding:1rem 0;text-align:center;font-size:0.9rem;}
footer a {color:#90caf9;text-decoration:none;}
footer a:hover {text-decoration:underline;}
@media (max-width:600px) {header h1 {font-size:1.4rem;}}
@media (max-width:600px) {.inputs-grid {grid-template-columns:1fr;}}
@media (max-width:600px) {nav {gap:0.8rem;flex-wrap:wrap;}}
@media (max-width:600px) {.scenario-grid {grid-template-columns:1fr;}}



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