/* SponsorCraft Styles */
:root {
--primary: #2563eb;
--primary-dark: #1d4ed8;
--secondary: #7c3aed;
--accent: #f59e0b;
--text: #1f2937;
--text-light: #6b7280;
--bg: #ffffff;
--bg-alt: #f9fafb;
--border: #e5e7eb;
--success: #10b981;
--warning: #f59e0b;
--radius: 8px;
--shadow: 0 1px 3px rgba(0,0,0,0.1);
--shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
line-height: 1.6;
color: var(--text);
background-color: var(--bg);
}

header {
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: white;
padding: 1.5rem 1rem;
text-align: center;
}

header h1 {
font-size: 2rem;
font-weight: 700;
margin-bottom: 0.25rem;
}

.tagline {
font-size: 1rem;
opacity: 0.9;
}

nav {
margin-top: 1rem;
}

nav a {
color: white;
text-decoration: none;
margin: 0 0.75rem;
font-size: 0.9rem;
opacity: 0.9;
transition: opacity 0.2s;
}

nav a:hover {
opacity: 1;
text-decoration: underline;
}

main {
max-width: 1200px;
margin: 0 auto;
padding: 1rem;
}

.workspace-section {
background: var(--bg-alt);
border-radius: var(--radius);
padding: 1.5rem;
margin-bottom: 2rem;
box-shadow: var(--shadow);
}

.workspace-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
}

.input-panel h3, .preview-panel h3 {
margin-bottom: 1rem;
color: var(--primary-dark);
}

label {
display: block;
margin: 0.75rem 0 0.25rem;
font-weight: 500;
font-size: 0.9rem;
}

input, select {
width: 100%;
padding: 0.5rem 0.75rem;
border: 1px solid var(--border);
border-radius: var(--radius);
font-size: 1rem;
}

input:focus, select:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkbox-group {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.5rem;
margin: 0.5rem 0;
}

.checkbox-group label {
font-weight: normal;
font-size: 0.85rem;
}

button {
background: var(--primary);
color: white;
border: none;
padding: 0.75rem 1.5rem;
border-radius: var(--radius);
font-size: 1rem;
cursor: pointer;
margin: 0.5rem 0.25rem 0 0;
transition: background 0.2s;
}

button:hover {
background: var(--primary-dark);
}

button:active {
transform: translateY(1px);
}

#loadDraft {
background: var(--bg);
color: var(--text);
border: 1px solid var(--border);
}

#proposalOutput {
background: white;
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 1rem;
min-height: 200px;
white-space: pre-wrap;
font-family: 'Monaco', 'Menlo', monospace;
font-size: 0.9rem;
}

.content-section {
margin: 2rem 0;
}

.content-section h2 {
color: var(--primary-dark);
margin-bottom: 1rem;
}

.content-section h3 {
margin: 1.5rem 0 0.75rem;
color: var(--text);
}

.rate-table {
width: 100%;
border-collapse: collapse;
margin: 1rem 0;
}

.rate-table th, .rate-table td {
padding: 0.75rem;
text-align: left;
border-bottom: 1px solid var(--border);
}

.rate-table th {
background: var(--bg-alt);
font-weight: 600;
}

.rate-table tr:hover {
background: var(--bg-alt);
}

ul {
margin-left: 1.5rem;
}

ul li {
margin: 0.5rem 0;
}

pre {
background: var(--bg-alt);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 1rem;
overflow-x: auto;
font-size: 0.85rem;
}

footer {
text-align: center;
padding: 2rem 1rem;
color: var(--text-light);
font-size: 0.9rem;
}

footer a {
color: var(--primary);
text-decoration: none;
}

footer a:hover {
text-decoration: underline;
}

@media (max-width: 768px) {
.workspace-grid {
grid-template-columns: 1fr;
}

header h1 {
font-size: 1.5rem;
}

nav a {
margin: 0 0.5rem;
font-size: 0.8rem;
}

.checkbox-group {
grid-template-columns: 1fr;
}
}

@media (max-width: 480px) {
main {
padding: 0.5rem;
}

.workspace-section {
padding: 1rem;
}

button {
width: 100%;
margin: 0.25rem 0;
}
}


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