/* GrammarScope Styles */
:root {
--primary: #2563eb;
--primary-dark: #1d4ed8;
--secondary: #64748b;
--success: #10b981;
--warning: #f59e0b;
--danger: #ef4444;
--bg: #f8fafc;
--card-bg: #ffffff;
--text: #1e293b;
--text-light: #64748b;
--border: #e2e8f0;
--radius: 8px;
--shadow: 0 1px 3px rgba(0,0,0,0.1);
--transition: all 0.2s ease;
}

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

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

.container {
max-width: 900px;
margin: 0 auto;
padding: 0 20px;
}

header {
background: var(--card-bg);
border-bottom: 1px solid var(--border);
padding: 20px 0;
margin-bottom: 30px;
}

header h1 {
font-size: 2rem;
color: var(--primary);
margin-bottom: 4px;
}

.tagline {
color: var(--text-light);
font-size: 1.1rem;
}

nav {
margin-top: 12px;
}

.hub-link {
color: var(--primary);
text-decoration: none;
font-weight: 500;
}

.hub-link:hover {
text-decoration: underline;
}

main {
background: var(--card-bg);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 30px;
margin-bottom: 30px;
}

section {
margin-bottom: 32px;
}

h2 {
font-size: 1.5rem;
margin-bottom: 16px;
color: var(--text);
border-bottom: 2px solid var(--primary);
padding-bottom: 8px;
}

h3 {
font-size: 1.2rem;
margin: 20px 0 12px 0;
color: var(--secondary);
}

.controls-section {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 16px;
margin-bottom: 24px;
}

.document-presets select {
padding: 10px 14px;
border: 1px solid var(--border);
border-radius: var(--radius);
font-size: 1rem;
background: white;
cursor: pointer;
}

.document-presets label {
font-weight: 500;
margin-right: 8px;
}

.checklist-controls {
display: flex;
gap: 10px;
}

.btn {
padding: 10px 20px;
border: none;
border-radius: var(--radius);
font-size: 1rem;
cursor: pointer;
transition: var(--transition);
font-weight: 500;
}

.primary-btn {
background: var(--primary);
color: white;
}

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

.secondary-btn {
background: var(--secondary);
color: white;
}

.secondary-btn:hover {
opacity: 0.9;
}

.progress-section {
margin-bottom: 24px;
}

.progress-info {
display: flex;
align-items: center;
gap: 16px;
}

.progress-bar {
flex: 1;
height: 12px;
background: var(--border);
border-radius: 6px;
overflow: hidden;
}

.progress-fill {
height: 100%;
background: var(--success);
transition: width 0.3s ease;
width: 0%;
}

.checklist-items {
list-style: none;
}

.checklist-item {
padding: 14px;
margin-bottom: 8px;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--bg);
transition: var(--transition);
}

.checklist-item:hover {
background: white;
}

.checklist-item input[type="checkbox"] {
margin-right: 12px;
width: 18px;
height: 18px;
cursor: pointer;
}

.checklist-item label {
cursor: pointer;
font-weight: 500;
}

.checklist-item.checked label {
text-decoration: line-through;
color: var(--text-light);
}

.example {
margin-top: 10px;
padding: 10px;
background: white;
border-left: 3px solid var(--primary);
font-size: 0.95rem;
color: var(--text-light);
}

.example strong {
color: var(--text);
}

del {
color: var(--danger);
}

ins {
color: var(--success);
text-decoration: none;
font-weight: 500;
}

.supporting-content {
border-top: 1px solid var(--border);
padding-top: 24px;
}

supporting-content h2 {
margin-top: 0;
}

supporting-content h3 {
color: var(--text);
margin-top: 20px;
}

supporting-content p {
margin-bottom: 16px;
}

footer {
text-align: center;
padding: 20px 0;
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: 600px) {
.container {
padding: 0 15px;
}

main {
padding: 20px 15px;
}

header h1 {
font-size: 1.6rem;
}

.controls-section {
flex-direction: column;
align-items: stretch;
}

.checklist-controls {
width: 100%;
justify-content: space-between;
}

.btn {
flex: 1;
text-align: center;
}

.progress-info {
flex-direction: column;
align-items: stretch;
gap: 8px;
}
}

@media print {
body {
background: white;
}

main {
box-shadow: none;
padding: 0;
}

.btn, .controls-section, footer {
display: none;
}

.checklist-item {
border: 1px solid #ccc;
page-break-inside: avoid;
}
}


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