/* Nevada Assisted Living — shared design tokens & layout */
:root {
    --color-brand: #c0392b;
    --color-brand-dark: #a93226;
    --color-text: #2c3e50;
    --color-muted: #7f8c8d;
    --color-bg: #fffdf9;
    --color-surface: #fff;
    --color-border: #ddd;
    --color-alert-bg: #e1f5fe;
    --color-alert-border: #01579b;
    --color-alert-text: #01579b;
    --font-body: Georgia, serif;
    --line-height: 1.7;
    --radius: 8px;
    --tap-target: 44px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    line-height: var(--line-height);
    color: var(--color-text);
    max-width: 850px;
    margin: 0 auto;
    padding: 20px;
    background: var(--color-bg);
}

/* Header */
.site-header {
    border-bottom: 4px solid var(--color-brand);
    padding: 30px 0;
    text-align: center;
}
.site-header .site-title {
    color: var(--color-brand);
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: bold;
}
.site-header .site-tagline {
    margin: 0;
    font-size: 1rem;
    color: var(--color-text);
}

/* Page title (when not using .site-header h1) */
h1 {
    color: var(--color-brand);
    margin-bottom: 10px;
    font-size: clamp(1.5rem, 4vw, 2rem);
}
h2 { margin-top: 1.5em; }
h3 { margin-top: 1.25em; }

/* Nav */
.nav-wrap {
    text-align: center;
    margin-top: 20px;
    padding: 12px;
    background: #fdf2f2;
    border-radius: var(--radius);
}
.nav-wrap a {
    display: inline-block;
    margin: 6px 10px;
    padding: 12px 14px;
    font-weight: bold;
    text-decoration: none;
    color: var(--color-brand);
    min-height: var(--tap-target);
    line-height: 1.3;
}
.nav-wrap a:hover { color: var(--color-brand-dark); }
.nav-wrap a:focus {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
}

/* Main content blocks */
.authority-content,
.content {
    padding: clamp(20px, 5vw, 40px);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.content { padding: 28px; }

.advisory-box {
    background: var(--color-brand);
    color: var(--color-surface);
    padding: 25px;
    text-align: center;
    border-radius: 5px;
    margin-top: 30px;
    font-weight: bold;
}

.henderson-alert {
    background: var(--color-alert-bg);
    border: 1px solid var(--color-alert-border);
    color: var(--color-alert-text);
    padding: 15px;
    text-align: center;
    margin-top: 20px;
    border-radius: 5px;
    font-size: 1.1em;
}
.henderson-alert a {
    color: var(--color-alert-text);
    font-weight: bold;
    text-decoration: underline;
}

.highlight {
    background: #fff3f3;
    padding: 15px;
    border-left: 5px solid var(--color-brand);
}

/* CTA box (Henderson, resources) */
.cta-box {
    background: var(--color-surface);
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--color-brand);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin: 2em 0;
    text-align: center;
}

/* Buttons — min 44px touch target */
.btn-primary {
    display: inline-block;
    background: var(--color-brand);
    color: var(--color-surface) !important;
    padding: 14px 28px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    min-height: var(--tap-target);
    line-height: 1.3;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: var(--color-brand-dark);
}
.btn-primary:focus {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
}

/* Table */
.table-wrap { overflow-x: auto; margin: 1.5em 0; }
.table-savings {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-surface);
}
.table-savings th,
.table-savings td {
    border: 1px solid var(--color-border);
    padding: 12px 16px;
    text-align: left;
}
.table-savings thead th {
    background: #f8f9fa;
    font-weight: bold;
}

/* Disclosure note */
.disclosure-note { color: var(--color-muted); margin-top: 1em; }
.disclosure-note a { color: var(--color-brand); }

/* Form placeholder (Tally skeleton) — reserve space to avoid CLS */
.tally-placeholder {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: var(--radius);
    color: var(--color-muted);
}
.tally-placeholder.loaded { display: none; }
#tally-embed:not([src]) { display: none; }

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9em;
    color: var(--color-muted);
}
footer a { color: var(--color-brand); }

/* Partner links list */
.partner-links {
    list-style: none;
    padding: 0;
    margin: 1em 0;
}
.partner-links li { margin: 0.5em 0; }
.partner-links a { font-weight: bold; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
