:root {
    --primary: #2d6a4f;
    --primary-hover: #1b4332;
    --secondary: #d8f3dc;
    --text-main: #2b2b2b;
    --text-light: #555555;
    --bg-main: #ffffff;
    --bg-alt: #f7fcf8;
    --border: #e0e0e0;
    --radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-main);
}

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

.site-header {
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    background: var(--bg-main);
}

.flex-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
}

.hero-section {
    padding: 4rem 0 3rem;
    background-color: var(--bg-alt);
    text-align: center;
}

.hero-section h1 {
    font-size: 2.5rem;
    color: var(--primary-hover);
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.tool-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: left;
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
}

@media (min-width: 768px) {
    .tool-container {
        flex-direction: row;
    }
    .input-pane, .output-pane {
        flex: 1;
    }
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

textarea {
    width: 100%;
    height: 240px;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    resize: vertical;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1rem;
}

textarea:focus {
    outline: 2px solid var(--primary);
    border-color: transparent;
}

.primary-btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

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

.output-pane h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.5rem;
}

.sorted-results {
    min-height: 240px;
    padding: 1rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
}

.placeholder-text {
    color: #999;
    font-style: italic;
}

.category-group {
    margin-bottom: 1.5rem;
}

.category-group h3 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-group ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.category-group li {
    margin-bottom: 0.25rem;
}

.content-section {
    padding: 3rem 0;
}

.secondary-bg {
    background-color: var(--bg-alt);
}

.content-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-hover);
}

.prose p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    color: var(--text-light);
}

.faq h3 {
    margin-top: 1.5rem;
    color: var(--text-main);
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
}

.card h3 {
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.ad-container {
    margin: 2rem auto;
    text-align: center;
}

.site-footer {
    background: var(--text-main);
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9rem;
}

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

.copyright {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #aaa;
}


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