/* ============================================================
   styles.css — American Democracy Project
   Consolidated stylesheet for all pages
   ============================================================ */

/* --- 1. RESET & BASE ---------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: #f8fafc;
}

/* Consistent heading hierarchy across all pages */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e3a8a;
}

h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1e3a8a;
}

h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e3a8a;
}

/* Reframings page uses Georgia serif */
body.page-reframings {
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    background: #f5f7fa;
}

/* --- 2. ICONS ----------------------------------------------- */
.icon {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-block;
    vertical-align: middle;
    color: currentColor;
    fill: none;
    stroke: currentColor;
}

.icon-sm {
    width: 1rem;
    height: 1rem;
}

.icon-md {
    width: 1.25rem;
    height: 1.25rem;
}

.icon-lg {
    width: 3rem;
    height: 3rem;
}

.icon-inline {
    margin-right: 0.4rem;
}

/* --- 3. LAYOUT UTILITIES ------------------------------------ */
.container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

body.page-about .container,
body.page-counter-narratives .container,
body.page-reframings .container,
body.page-toolkit .container {
    max-width: 1050px;
    padding: 2rem;
}

.strategy-container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* --- 4. HEADER & NAV ---------------------------------------- */
header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body.page-toolkit header {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.logo-mark {
    width: 1.35rem;
    height: 1.35rem;
    display: block;
}

.logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* --- 5. HERO & PAGE-HEADER ---------------------------------- */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero .subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.hero p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    opacity: 0.9;
}

.page-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

body.page-toolkit .page-header {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* --- 6. FOOTER ---------------------------------------------- */
footer {
    background: #1e293b;
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* --- 7. BUTTONS & BADGES ------------------------------------ */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    margin: 0.5rem;
}

.btn-primary {
    background: #1e3a8a;
    color: white;
}

.btn-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
}

.btn-secondary:hover {
    background: #f1f5f9;
}

.btn-clear {
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-clear:hover {
    background: #e2e8f0;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-evidence {
    background: #fef3c7;
    color: #78350f;
}

.badge-category {
    background: #e0e7ff;
    color: #1e3a8a;
}

.time-badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-s {
    background: #dcfce7;
    color: #15803d;
}

.badge-m {
    background: #fef3c7;
    color: #a16207;
}

.badge-l {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-sm {
    background: #dbeafe;
    color: #0c4a6e;
}

.badge-ml {
    background: #fce7f3;
    color: #831843;
}

/* --- 8. CARDS & SECTIONS ------------------------------------ */
.pathway-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.pathway-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.pathway-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #1e3a8a;
}

.pathway-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e3a8a;
    font-weight: 600;
}

.pathway-card p {
    color: #475569;
    line-height: 1.6;
}

.card-meta {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #64748b;
}

.stats-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat {
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3a8a;
}

.stat-label {
    color: #475569;
    margin-top: 0.5rem;
}

.cta-section {
    text-align: center;
    margin: 3rem 0;
}

.content-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

.content-section h2 {
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.content-section h3 {
    color: #1e3a8a;
    margin: 1.5rem 0 0.75rem 0;
}

.content-section p {
    color: #475569;
    line-height: 1.8;
    margin: 0.75rem 0;
}

.content-section ul {
    margin: 0.75rem 0;
    padding-left: 2rem;
    color: #475569;
}

.content-section li {
    margin: 0.5rem 0;
}

/* --- 9. FILTER / SEARCH UI --------------------------------- */
body.page-reframings .filters,
body.page-counter-narratives .filters {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

body.page-reframings .filter-label,
body.page-counter-narratives .filter-label {
    font-weight: 600;
    color: #1e3a8a;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.page-reframings select,
body.page-counter-narratives select,
body.page-reframings input,
body.page-counter-narratives input {
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    background: white;
}

body.page-reframings input {
    flex: 1;
    min-width: 220px;
}

.filter-search {
    flex: 1;
    min-width: 220px;
}

body.page-reframings .results-count,
body.page-counter-narratives .results-count {
    font-size: 0.9rem;
    color: #64748b;
}

/* --- 10. CHIPS & TAGS --------------------------------------- */
.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.related-chip {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.related-chip:hover {
    background: #bae6fd;
}

body.page-toolkit .chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

body.page-toolkit .chip {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #ecfdf5;
    color: #059669;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
}

.state-chip {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.chip-evidence-strong {
    background: #dcfce7;
    color: #15803d;
}

.chip-evidence-moderate {
    background: #fef3c7;
    color: #a16207;
}

.chip-evidence-mixed {
    background: #e9d5ff;
    color: #6d28d9;
}

.chip-pathway {
    background: #dbeafe;
    color: #0c4a6e;
}

/* --- 11. ABOUT PAGE COMPONENTS ------------------------------ */
body.page-about .highlight-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

body.page-about .highlight-box p {
    color: #78350f;
}

body.page-about .contact-box {
    background: #f1f5f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

body.page-about .evidence-standards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

body.page-about .evidence-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
}

body.page-about .evidence-level {
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

/* --- 12. REFRAMINGS PAGE COMPONENTS ------------------------- */
body.page-reframings .intro-brief {
    background: white;
    border: 1px solid #d1d9e6;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

body.page-reframings .brief-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

body.page-reframings .brief-note {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.7;
}

body.page-reframings .brief-note a {
    color: #1e3a8a;
    font-weight: 600;
    text-decoration: none;
}

body.page-reframings .brief-note a:hover {
    text-decoration: underline;
}

body.page-reframings .reframing-card {
    background: white;
    border: 1px solid #d1d9e6;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

body.page-reframings .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

body.page-reframings .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e3a8a;
}

body.page-reframings .badge-category {
    background: #e0e7ff;
    color: #1e3a8a;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

body.page-reframings .comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

body.page-reframings .comparison-box {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
}

body.page-reframings .traditional {
    background: #f3f4f6;
}

body.page-reframings .authoritarian {
    background: #fff7ed;
    border-color: #fed7aa;
}

body.page-reframings .comparison-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

body.page-reframings .rf-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

body.page-reframings .section {
    margin: 1.5rem 0;
}

body.page-reframings .section-content {
    color: #475569;
    line-height: 1.8;
}

body.page-reframings .citation-links {
    margin: 1rem 0;
    font-size: 0.9rem;
}

body.page-reframings .citation-links a {
    color: #1e3a8a;
    text-decoration: none;
}

body.page-reframings .citation-links a:hover {
    text-decoration: underline;
}

body.page-reframings .references-section {
    background: white;
    border: 1px solid #d1d9e6;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

body.page-reframings .references-section h2 {
    color: #1e3a8a;
    margin-bottom: 1.5rem;
}

body.page-reframings .references-section ol {
    margin-left: 1.5rem;
}

body.page-reframings .references-section li {
    margin-bottom: 0.75rem;
    color: #475569;
}

/* --- 13. COUNTER-NARRATIVES PAGE COMPONENTS ----------------- */
body.page-counter-narratives .counter-narrative-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

body.page-counter-narratives .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

body.page-counter-narratives .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a8a;
}

body.page-counter-narratives .badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

body.page-counter-narratives .section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 1.5rem 0 1rem 0;
}

body.page-counter-narratives .section-content {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1rem;
}

body.page-counter-narratives .principles-list::before {
    content: '● ';
    color: #3b82f6;
}

body.page-counter-narratives .principles-list {
    margin-left: 1rem;
    color: #475569;
}

body.page-counter-narratives .policies-list {
    margin-left: 1rem;
    color: #475569;
    list-style: square;
}

body.page-counter-narratives .federal-callout {
    background: #fed7aa;
    border-left: 4px solid #f97316;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

body.page-counter-narratives .federal-callout-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #92400e;
}

body.page-counter-narratives .federal-callout p {
    color: #92400e;
}

body.page-counter-narratives .related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

body.page-counter-narratives .toolkit-gateway {
    background: white;
    border-top: 3px solid #0f766e;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

body.page-counter-narratives .toolkit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

body.page-counter-narratives .toolkit-card {
    background: #ecfdf5;
    border: 2px solid #d1fae5;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s;
}

body.page-counter-narratives .toolkit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

body.page-counter-narratives .toolkit-card h4 {
    color: #0f766e;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

body.page-counter-narratives .toolkit-card p {
    color: #059669;
    font-size: 0.9rem;
}

body.page-counter-narratives .action-section {
    background: #f1f5f9;
    border-left: 4px solid #16a34a;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

body.page-counter-narratives .action-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #15803d;
    margin-bottom: 1rem;
}

body.page-counter-narratives .action-subsection {
    margin: 1rem 0;
}

body.page-counter-narratives .action-subsection h4 {
    color: #15803d;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

body.page-counter-narratives .share-box {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #475569;
}

body.page-counter-narratives .action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.75rem 0;
}

body.page-counter-narratives .btn-share {
    background: #3b82f6;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

body.page-counter-narratives .btn-share:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

body.page-counter-narratives .btn-contact {
    background: #dc2626;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

body.page-counter-narratives .btn-contact:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

body.page-counter-narratives .btn-org {
    background: #16a34a;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

body.page-counter-narratives .btn-org:hover {
    background: #15803d;
    transform: translateY(-2px);
}

body.page-counter-narratives .btn-research {
    background: #7c3aed;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

body.page-counter-narratives .btn-research:hover {
    background: #6d28d9;
    transform: translateY(-2px);
}

body.page-counter-narratives .org-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

body.page-counter-narratives .org-name {
    font-weight: 700;
    color: #1e3a8a;
}

body.page-counter-narratives .org-desc {
    font-size: 0.9rem;
    color: #475569;
    margin-top: 0.25rem;
}

body.page-counter-narratives .research-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

body.page-counter-narratives .research-title {
    font-weight: 700;
    color: #1e3a8a;
}

body.page-counter-narratives .template-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 1rem;
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.9rem;
    color: #475569;
}

body.page-counter-narratives .citation-links {
    margin: 1rem 0;
}

body.page-counter-narratives .citation-links a {
    color: #1e3a8a;
    text-decoration: none;
    font-size: 0.9rem;
}

body.page-counter-narratives .citation-links a:hover {
    text-decoration: underline;
}

body.page-counter-narratives .state-actions-layout {
    margin-top: 2rem;
}

body.page-counter-narratives .top-feasible-actions {
    margin-bottom: 2rem;
}

body.page-counter-narratives .state-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

body.page-counter-narratives .state-action-accordion {
    margin-bottom: 0.5rem;
}

body.page-counter-narratives .state-action-item {
    border-left: 3px solid #3b82f6;
    background: white;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    scroll-margin-top: 80px;
}

body.page-counter-narratives .state-action-item[open] {
    background: #f0f9ff;
}

body.page-counter-narratives .state-action-summary {
    cursor: pointer;
    padding: 1rem;
    font-weight: 600;
    color: #1e3a8a;
    user-select: none;
}

body.page-counter-narratives .state-action-summary:hover {
    background: #f1f5f9;
}

body.page-counter-narratives .state-action-title {
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.25rem;
}

body.page-counter-narratives .state-action-meta {
    font-size: 0.85rem;
    color: #64748b;
}

body.page-counter-narratives .state-action-body {
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
}

body.page-counter-narratives .state-action-body p {
    color: #475569;
    margin: 0.75rem 0;
}

body.page-counter-narratives .state-action-body strong {
    color: #1e3a8a;
}

body.page-counter-narratives .state-action-links {
    margin-top: 1rem;
}

body.page-counter-narratives .state-action-links a {
    color: #1e3a8a;
    text-decoration: none;
    font-size: 0.9rem;
}

body.page-counter-narratives .state-action-links a:hover {
    text-decoration: underline;
}

body.page-counter-narratives .source-list {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

body.page-counter-narratives .source-list h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.75rem;
}

body.page-counter-narratives .source-list ul {
    margin-left: 1.5rem;
}

body.page-counter-narratives .source-list li {
    color: #475569;
    margin-bottom: 0.5rem;
}

body.page-counter-narratives .references-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

body.page-counter-narratives .references-section h2 {
    color: #1e3a8a;
    margin-bottom: 1.5rem;
}

body.page-counter-narratives .references-section ol {
    margin-left: 1.5rem;
}

body.page-counter-narratives .references-section li {
    margin-bottom: 0.75rem;
    color: #475569;
}

/* --- 14. DEFEND-PREVENT PAGE COMPONENTS --------------------- */
body.page-defend .lane-choice {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

body.page-defend .lane-choice h2 {
    color: #1e3a8a;
    margin-bottom: 1rem;
}

body.page-defend .lane-choice p {
    color: #475569;
    margin-bottom: 1.5rem;
}

body.page-defend .lane-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

body.page-defend .lane-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 230px;
    padding: 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

body.page-defend .lane-btn-citizen {
    background: #1e3a8a;
    color: white;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

body.page-defend .lane-btn-citizen:hover {
    background: #1e40af;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

body.page-defend .lane-btn-policy {
    background: white;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
}

body.page-defend .lane-btn-policy:hover {
    background: #f1f5f9;
    transform: translateY(-4px);
}

body.page-defend .lane-btn small {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

body.page-defend .tactics-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

body.page-defend .tactics-section h3 {
    color: #1e3a8a;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

body.page-defend .tactics-section h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: #1e3a8a;
    margin-right: 1rem;
}

body.page-defend .table-intro {
    color: #475569;
    margin-bottom: 1rem;
}

body.page-defend .tactics-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

body.page-defend .tactics-table th {
    background: #1e3a8a;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 700;
}

body.page-defend .tactics-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
}

body.page-defend .tactics-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

body.page-defend .tactics-table tbody tr:first-child td {
    font-weight: 600;
    color: #1e3a8a;
}

body.page-defend .audience-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

body.page-defend .audience-section h2 {
    color: #1e3a8a;
    margin-bottom: 1.5rem;
}

body.page-defend .audience-label {
    text-transform: uppercase;
    font-weight: 600;
    color: #64748b;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

body.page-defend .thirty-day-box {
    background: #dbeafe;
    border-left: 4px solid #3b82f6;
    padding: 1.5rem;
    border-radius: 4px;
    margin: 1.5rem 0;
}

body.page-defend .box-title {
    font-weight: 700;
    color: #0c4a6e;
    margin-bottom: 1rem;
}

body.page-defend .thirty-day-box ol {
    margin-left: 1.5rem;
}

body.page-defend .thirty-day-box li {
    color: #0c4a6e;
    margin-bottom: 0.5rem;
}

body.page-defend .action-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

body.page-defend .action-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: #1e3a8a;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

body.page-defend .action-content strong {
    color: #1e3a8a;
    display: block;
    margin-bottom: 0.5rem;
}

body.page-defend .action-content p {
    color: #475569;
    margin: 0;
}

body.page-defend .trackers-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

body.page-defend .trackers-section h3 {
    color: #1e3a8a;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

body.page-defend .trackers-section h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: #1e3a8a;
    margin-right: 1rem;
}

body.page-defend .tracker-intro {
    color: #475569;
    margin-bottom: 1.5rem;
}

body.page-defend .tracker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

body.page-defend .tracker-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s;
}

body.page-defend .tracker-card:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
}

body.page-defend .tracker-name {
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

body.page-defend .tracker-card a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.9rem;
}

body.page-defend .tracker-card a:hover {
    text-decoration: underline;
}

body.page-defend .review-note {
    color: white;
    font-size: 0.85rem;
    margin-top: 1.5rem;
}

/* --- 15. UNDERSTAND-THREAT PAGE COMPONENTS ------------------ */
body.page-understand .quick-nav {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

body.page-understand .quick-nav span {
    text-transform: uppercase;
    font-weight: 600;
    color: #1e3a8a;
    font-size: 0.8rem;
}

body.page-understand .quick-nav a {
    color: #1e3a8a;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    padding-bottom: 0.25rem;
    transition: border 0.3s;
}

body.page-understand .quick-nav a:hover {
    border-bottom-color: #1e3a8a;
}

body.page-understand .read-time {
    display: inline-block;
    background: #e0e7ff;
    color: #1e3a8a;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

body.page-understand .characteristics-list {
    margin: 1rem 0;
}

body.page-understand .characteristics-list::before {
    content: '▸ ';
    color: #3b82f6;
}

body.page-understand .characteristics-list {
    margin-left: 1rem;
    color: #475569;
}

body.page-understand .examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

body.page-understand .example-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
}

body.page-understand .example-card.warning {
    border-color: #fbbf24;
    background: #fffbeb;
}

body.page-understand .country {
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.25rem;
}

body.page-understand .period {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

body.page-understand .example-card p {
    font-size: 0.95rem;
    color: #475569;
}

body.page-understand .warning-box {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

body.page-understand .warning-box .box-title {
    font-weight: 700;
    color: #92400e;
    margin-bottom: 0.75rem;
}

body.page-understand .warning-box p,
body.page-understand .warning-box li {
    color: #92400e;
}

body.page-understand .warning-box ul {
    margin-left: 1.5rem;
    margin-top: 0.75rem;
}

body.page-understand .info-box {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

body.page-understand .info-box .box-title {
    font-weight: 700;
    color: #0c4a6e;
    margin-bottom: 0.75rem;
}

body.page-understand .info-box p {
    color: #0c4a6e;
}

body.page-understand .weapon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

body.page-understand .weapon-card {
    background: white;
    border-top: 3px solid #1e3a8a;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

body.page-understand .weapon-name {
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.75rem;
}

body.page-understand .weapon-card ul {
    margin-left: 1rem;
}

body.page-understand .weapon-card li {
    color: #475569;
    margin-bottom: 0.5rem;
}

body.page-understand .weapon-card li::before {
    content: '– ';
    margin-right: 0.25rem;
}

body.page-understand .next-steps {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

body.page-understand .next-steps h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
}

body.page-understand .next-steps p {
    color: #475569;
    margin-bottom: 1.5rem;
}

body.page-understand .next-steps-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

body.page-understand .next-steps-links a {
    display: inline-block;
    background: #1e3a8a;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

body.page-understand .next-steps-links a:hover {
    background: #1e40af;
    transform: translateY(-2px);
}

/* --- 16. COUNTER-TACTICS PAGE COMPONENTS -------------------- */
body.page-tactics .ct-intro {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

body.page-tactics .ct-intro h2 {
    color: #1e3a8a;
    margin-bottom: 1rem;
}

body.page-tactics .ct-intro p {
    color: #475569;
}

body.page-tactics .module-index {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

body.page-tactics .module-index h3 {
    color: #1e3a8a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

body.page-tactics .index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

body.page-tactics .index-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s;
}

body.page-tactics .index-link:hover {
    background: #f0f9ff;
}

body.page-tactics .index-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: #1e3a8a;
    color: white;
    border-radius: 4px;
    font-weight: 700;
    flex-shrink: 0;
}

body.page-tactics .tactic-module {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    scroll-margin-top: 80px;
}

body.page-tactics .module-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

body.page-tactics .module-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: #1e3a8a;
    color: white;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

body.page-tactics .module-title-block h3 {
    color: #1e3a8a;
    margin: 0;
}

body.page-tactics .module-subtitle {
    color: #64748b;
    font-style: italic;
    margin-top: 0.25rem;
}

body.page-tactics .field-label {
    text-transform: uppercase;
    font-weight: 600;
    color: #64748b;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    display: block;
}

body.page-tactics .tactic-what,
body.page-tactics .tactic-why {
    margin-bottom: 1.5rem;
}

body.page-tactics .tactic-what p,
body.page-tactics .tactic-why p {
    color: #475569;
}

body.page-tactics .tactic-why {
    background: #fed7aa;
    border-left: 4px solid #f97316;
    padding: 1rem;
    border-radius: 4px;
    margin-left: 0;
}

body.page-tactics .counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

body.page-tactics .counter-col {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
}

body.page-tactics .counter-col ul {
    margin-left: 1rem;
}

body.page-tactics .counter-col li {
    margin-bottom: 0.5rem;
    color: #475569;
}

body.page-tactics .counter-col li::before {
    content: '› ';
    margin-right: 0.25rem;
}

body.page-tactics .ct-narrative {
    border-top: 3px solid #3b82f6;
}

body.page-tactics .counter-type.ct-narrative {
    color: #3b82f6;
}

body.page-tactics .ct-policy {
    border-top: 3px solid #16a34a;
}

body.page-tactics .counter-type.ct-policy {
    color: #16a34a;
}

body.page-tactics .ct-organize {
    border-top: 3px solid #f97316;
}

body.page-tactics .counter-type.ct-organize {
    color: #f97316;
}

body.page-tactics .module-footer {
    border-top: 2px solid #e2e8f0;
    padding-top: 1rem;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #64748b;
}

body.page-tactics .module-footer a {
    color: #1e3a8a;
    text-decoration: none;
}

body.page-tactics .module-footer a:hover {
    text-decoration: underline;
}

/* --- 17. STATE-ACTION-TOOLKIT PAGE COMPONENTS --------------- */
body.page-toolkit .quick-nav {
    background: #ecfdf5;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

body.page-toolkit .quick-nav a {
    color: #0f766e;
    text-decoration: none;
    font-weight: 600;
}

body.page-toolkit .quick-nav a:hover {
    text-decoration: underline;
}

body.page-toolkit .section {
    margin: 2rem 0;
}

body.page-toolkit .section h2 {
    color: #0f766e;
    margin-bottom: 1rem;
}

body.page-toolkit .section p {
    color: #475569;
}

body.page-toolkit .crosswalk {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    overflow-x: auto;
}

body.page-toolkit table {
    width: 100%;
    border-collapse: collapse;
}

body.page-toolkit th {
    background: #0f766e;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 700;
}

body.page-toolkit td {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
}

body.page-toolkit tbody tr:nth-child(even) {
    background: #f8fafc;
}

body.page-toolkit .module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

body.page-toolkit .module-card {
    background: white;
    border-left: 4px solid #14b8a6;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

body.page-toolkit .module-card h3 {
    color: #0f766e;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

body.page-toolkit .block-title {
    font-weight: 600;
    color: #1e3a8a;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

body.page-toolkit .module-card ul {
    margin-left: 1.5rem;
}

body.page-toolkit .module-card li {
    color: #475569;
    margin-bottom: 0.5rem;
}

body.page-toolkit .source-links {
    margin-top: 1rem;
}

body.page-toolkit .source-links a {
    color: #1e3a8a;
    text-decoration: underline;
    font-size: 0.9rem;
}

/* --- 18. STRATEGY PAGE COMPONENTS ----------------------------- */
.pathways-section {
    margin: 3rem 0;
}

.section-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e3a8a;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.pathways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.strategy-intro {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

.strategy-intro h2 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.strategy-intro p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.strategy-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

.strategy-section h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.strategy-section h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: #1e3a8a;
    margin-right: 1rem;
}

.strategy-item {
    margin-bottom: 1.5rem;
    color: #475569;
}

.strategy-item strong {
    color: #1e3a8a;
    display: block;
    margin-bottom: 0.5rem;
}

.strategy-item ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.strategy-item li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.resources-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

.resources-section h3 {
    color: #1e3a8a;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.resources-section h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: #1e3a8a;
    margin-right: 1rem;
}

.resource-item {
    margin-bottom: 1.5rem;
    border-left: 3px solid #3b82f6;
    padding-left: 1rem;
}

.resource-item strong {
    color: #1e3a8a;
    display: block;
    margin-bottom: 0.25rem;
}

.resource-item p {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.resource-item a {
    color: #1e3a8a;
    text-decoration: none;
    word-break: break-all;
}

.resource-item a:hover {
    text-decoration: underline;
}

/* --- 19. MEDIA QUERIES --------------------------------------- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .pathways-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    body.page-about .evidence-standards {
        grid-template-columns: 1fr;
    }

    body.page-reframings .comparison {
        grid-template-columns: 1fr;
    }

    body.page-reframings .filters {
        flex-direction: column;
    }

    body.page-reframings select,
    body.page-reframings input,
    body.page-counter-narratives select,
    body.page-counter-narratives input {
        width: 100%;
    }

    body.page-counter-narratives .card-header {
        flex-direction: column;
    }

    body.page-counter-narratives .action-btn {
        width: 100%;
    }

    body.page-counter-narratives .badges {
        flex-wrap: wrap;
    }

    body.page-defend .lane-buttons {
        flex-direction: column;
    }

    body.page-defend .lane-btn {
        min-width: 100%;
    }

    body.page-toolkit .module-grid {
        grid-template-columns: 1fr;
    }

    body.page-toolkit table {
        font-size: 0.9rem;
    }

    body.page-toolkit th,
    body.page-toolkit td {
        padding: 0.5rem;
    }
}

/* ============================================================
   DASHBOARD HOMEPAGE (page-home) — Dashboard Gateway MVP
   These rules only apply when body.page-home is present.
   All rules scoped to prevent collision with other pages.
   ============================================================ */

/* --- FONTS (page-home only) --------------------------------- */
body.page-home {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.page-home h1,
body.page-home h2,
body.page-home .resource-section__label,
body.page-home .sidebar-title,
body.page-home .concept-card__badge {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* --- HERO (dashboard variant) ------------------------------- */
body.page-home .hero {
    background: linear-gradient(160deg, #0f2247 0%, #1e3a8a 55%, #1d4ed8 100%);
    padding: 3rem 2rem 2rem;
}

body.page-home .hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

body.page-home .hero .subtitle {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 1.25rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.5;
}

body.page-home .hero > p:last-of-type {
    font-size: 0.95rem;
    color: #cbd5e1;
    max-width: 65ch;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

body.page-home .hero__wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
}

body.page-home .last-updated-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    padding: 0.35rem 0.8rem;
    border-radius: 100px;
    white-space: nowrap;
}

body.page-home .last-updated-badge svg {
    width: 0.9rem;
    height: 0.9rem;
    stroke: #93c5fd;
    fill: none;
    flex-shrink: 0;
}

/* --- DASHBOARD LAYOUT (two-column: main + sidebar) ---------- */
body.page-home .container {
    max-width: none;
    padding: 2.5rem 2rem 4rem;
    background: #f8fafc;
}

body.page-home .dashboard-layout {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 320px;
    grid-template-areas: "main sidebar";
    gap: 2.5rem;
    align-items: start;
}

body.page-home .dashboard-main {
    grid-area: main;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

body.page-home .dashboard-sidebar {
    grid-area: sidebar;
    position: sticky;
    top: calc(4rem + 1.5rem);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* --- RESOURCE SECTION (one quadrant) ------------------------ */
body.page-home .resource-section {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.page-home .resource-section__header {
    background: var(--section-accent, #1e3a8a);
    padding: 1rem 1.25rem 0.9rem;
}

body.page-home .resource-section__title {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin: 0;
}

body.page-home .resource-section__label {
    font-size: 1.35rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

body.page-home .resource-section__sublabel {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

/* --- RESOURCE CARD (one organization row) ------------------- */
body.page-home .resource-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

body.page-home .resource-card {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

body.page-home .resource-card:last-child {
    border-bottom: none;
}

body.page-home .resource-card__name {
    font-size: 0.975rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.3;
}

body.page-home .resource-card__url {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--section-accent, #1e3a8a);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 0.75rem;
    word-break: break-all;
}

body.page-home .resource-card__url:hover {
    text-decoration: underline;
}

body.page-home .resource-card__ext-icon {
    width: 0.75rem;
    height: 0.75rem;
    flex-shrink: 0;
    vertical-align: middle;
}

body.page-home .resource-card__insight-wrapper {
    background: #f1f5f9;
    border-left: 3px solid var(--section-accent, #1e3a8a);
    padding: 0.75rem 0.85rem;
    border-radius: 6px;
}

body.page-home .resource-card__insight-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
    font-family: 'Inter', sans-serif;
}

body.page-home .resource-card__insight {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.65;
    font-style: italic;
    margin: 0;
    /* Deliberately no truncation — spec requires "never truncated" */
}

/* --- SIDEBAR COMPONENTS ------------------------------------- */
body.page-home .sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

body.page-home .concept-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

body.page-home .concept-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1e3a8a;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 900;
    border-radius: 8px;
    padding: 0.3rem 0.75rem;
    width: fit-content;
    letter-spacing: -0.03em;
    line-height: 1.1;
    min-height: 2rem;
}

body.page-home .concept-card__badge--text {
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    background: #374151;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.7rem;
}

body.page-home .concept-card__badge--verify {
    background: #0f766e;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
}

body.page-home .concept-card__badge--verify svg {
    width: 1rem;
    height: 1rem;
    stroke: white;
    fill: none;
}

body.page-home .concept-card--verify {
    border-color: #ccfbf1;
    background: #f0fdfa;
}

body.page-home .concept-card__text {
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.6;
    margin: 0;
}

body.page-home .concept-card__text strong {
    color: #0f172a;
    font-weight: 600;
}

body.page-home .concept-card__source {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

/* --- DEEP DIVES SECTION ------------------------------------- */
body.page-home .deep-dives-section {
    grid-column: 1 / -1;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.07);
    overflow: hidden;
    padding: 2rem 1.5rem;
}

body.page-home .deep-dives-section__header {
    margin-bottom: 1.5rem;
}

body.page-home .deep-dives-section__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
}

body.page-home .deep-dives-section__subtitle {
    font-size: 0.875rem;
    color: #64748b;
    font-family: 'Inter', sans-serif;
    margin: 0.3rem 0 0 0;
}

body.page-home .deep-dives-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

body.page-home .deep-dives-nav a {
    display: inline-block;
    font-size: 0.875rem;
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    border-radius: 6px;
    transition: all 0.15s;
}

body.page-home .deep-dives-nav a:hover {
    background: #e0e7ff;
    text-decoration: underline;
}

/* --- RESPONSIVE: TABLET (1024px) ------------------------------------ */
@media (max-width: 1024px) {
    body.page-home .dashboard-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "sidebar";
        gap: 2rem;
    }

    body.page-home .dashboard-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1rem;
    }

    body.page-home .sidebar-title {
        grid-column: 1 / -1;
    }
}

/* --- RESPONSIVE: TABLET (768px) ------------------------------------ */
@media (max-width: 768px) {
    body.page-home .dashboard-main {
        grid-template-columns: 1fr;
    }

    body.page-home .dashboard-sidebar {
        grid-template-columns: 1fr;
    }
}

/* --- RESPONSIVE: MOBILE (640px) ----------------------------------- */
@media (max-width: 640px) {
    body.page-home .hero {
        padding: 1.75rem 1.25rem;
    }

    body.page-home .hero h1 {
        font-size: 1.75rem;
    }

    body.page-home .hero .subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    body.page-home .last-updated-badge {
        margin-top: 1rem;
        display: flex;
    }

    body.page-home .container {
        padding: 1.5rem 1rem 3rem;
    }

    body.page-home .dashboard-layout {
        gap: 1.5rem;
    }

    body.page-home .resource-section {
        border-radius: 8px;
    }

    body.page-home .resource-card {
        padding: 0.85rem 1rem;
    }

    body.page-home .resource-card__name {
        font-size: 0.9rem;
    }

    body.page-home .deep-dives-section {
        padding: 1.5rem 1.25rem;
    }

    body.page-home .deep-dives-nav {
        gap: 0.75rem;
    }

    body.page-home .deep-dives-nav a {
        padding: 0.4rem 0.85rem;
        font-size: 0.8rem;
    }
}
