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

:root {
    --primary: #0f4c75;
    --primary-light: #3282b8;
    --primary-dark: #0b2545;
    --accent: #bbe1fa;
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #e9ecef;
    --gray-200: #dee2e6;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --text: #212529;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navbar */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
}
.logo img {
    height: 32px;
    width: auto;
    display: block;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-search {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-search input {
    padding: 0.5rem 0.75rem;
    padding-right: 2.5rem;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 0.9rem;
    width: 200px;
    transition: border-color 0.2s;
}

.nav-search input:focus {
    outline: none;
    border-color: var(--primary-light);
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--gray-600);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--gray-100);
    max-height: 400px;
    overflow-y: auto;
    z-index: 101;
}

.search-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: var(--text);
    transition: background 0.15s;
    border-bottom: 1px solid var(--gray-50);
}

.search-item:hover {
    background: var(--gray-50);
}

.search-type {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    margin-top: 0.15rem;
}

.search-type.tool { background: #d0ebff; color: #1864ab; }
.search-type.knowledge { background: #d3f9d8; color: #2b8a3e; }
.search-type.article { background: #fff3bf; color: #e67700; }

.search-item-text {
    display: flex;
    flex-direction: column;
}

.search-item-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.search-item-desc {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-top: 0.15rem;
}

.search-no-results {
    padding: 1.5rem;
    text-align: center;
    color: var(--gray-600);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--gray-800);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-800);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: var(--white);
    padding: 4.5rem 1.5rem 3.5rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

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

/* Featured Sections */
.featured {
    padding: 4rem 1.5rem;
}

.featured:nth-child(even) {
    background: var(--gray-50);
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2rem;
}

.featured-header h2 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin: 0;
}

.view-all {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.view-all:hover {
    text-decoration: underline;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
    border: 2px solid transparent;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tool-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.tool-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-light);
    font-weight: 600;
}

/* Knowledge Base Grid */
.kb-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.kb-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
    border-left: 4px solid var(--primary-light);
}

.kb-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.kb-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--accent);
    color: var(--primary);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    margin-bottom: 0.5rem;
}

.kb-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.kb-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.kb-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* Articles Grid */
.articles-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.article-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
    border: 1px solid var(--gray-100);
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.article-date {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.article-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    background: #fff3bf;
    color: #e67700;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    margin-bottom: 0.5rem;
    margin-left: 0.5rem;
}

.article-card h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.3;
}

.article-card p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Newsletter */
.newsletter {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3.5rem 1.5rem;
    text-align: center;
}

.newsletter h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.newsletter p {
    opacity: 0.85;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
}

.newsletter-form .btn-primary {
    background: var(--primary-light);
    color: var(--white);
    border: none;
    cursor: pointer;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 1.5rem 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.footer-col p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.5;
}

.footer-col a {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    padding: 0.2rem 0;
    transition: opacity 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    opacity: 0.6;
    font-size: 0.85rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn:hover {
    transform: translateY(-2px);
}

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

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

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

/* Listing Pages */
.listing-page {
    padding: 3rem 1.5rem;
}

.listing-page h1 {
    font-size: 1.75rem;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.listing-subtitle {
    color: var(--gray-600);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.listing-grid {
    display: grid;
    gap: 1rem;
}

.listing-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--gray-100);
}
#infographics-page .listing-item,
#tools-page .listing-item,
#articles-page .listing-item {
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}
#infographics-page .listing-item:hover,
#tools-page .listing-item:hover,
#articles-page .listing-item:hover {
    transform: none;
    box-shadow: none;
}

.listing-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.listing-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    min-width: 3rem;
}

.listing-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.icon-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    background: var(--accent);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    white-space: nowrap;
    line-height: 1.2;
}

.listing-item-content {
    flex: 1;
}

.listing-item h3 {
    color: var(--primary);
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}

.listing-item p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.listing-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--gray-600);
}

.knowledge-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.knowledge-filter-btn {
    background: var(--gray-100);
    color: var(--text);
    border: 1px solid var(--gray-200);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.knowledge-filter-btn:hover {
    background: var(--accent);
    border-color: var(--primary-light);
}

.knowledge-filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.article-date {
    font-size: 0.75rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.listing-tag {
    background: var(--accent);
    color: var(--primary);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.7rem;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s, color 0.2s;
}

a.listing-tag:hover {
    background: var(--primary);
    color: var(--white);
}

/* Article / KB Pages */
.article-page {
    padding: 3rem 1.5rem;
}

.article-page h1 {
    color: var(--primary-dark);
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.article-meta {
    color: var(--gray-600);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.article-content {
    max-width: 700px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.article-content p {
    margin-bottom: 1rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
}

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

/* Tool Pages */
.tool-page {
    padding: 3rem 1.5rem;
}

.tool-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tool-header h1 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.tool-header p {
    color: var(--gray-600);
}

.model-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.tab-btn {
    padding: 0.65rem 1.25rem;
    border: 2px solid var(--primary-light);
    background: var(--white);
    color: var(--primary);
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

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

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

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.calculator {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.calculator h3 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(50, 130, 184, 0.1);
}

.result-box {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 6px;
    margin-top: 1.5rem;
    text-align: left;
    display: none;
}

.result-box.visible {
    display: block;
}

.result-box h4 {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 1.25rem;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.result-table th {
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem;
    font-size: 0.85rem;
    text-align: left;
}

.result-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
}

.result-table tr:last-child td {
    border-bottom: none;
}

.result-table td.num {
    text-align: right;
    font-weight: 600;
    font-family: 'SF Mono', 'Consolas', monospace;
}

.comp-breakdown {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

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

.metric {
    background: var(--white);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--gray-100);
    text-align: center;
}

.metric.highlight {
    border-color: var(--primary-light);
    background: var(--accent);
}

.metric-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.metric-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.metric-note {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-search input {
        width: 140px;
    }

    .hero h1 {
        font-size: 1.65rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .featured-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .model-tabs {
        flex-direction: column;
    }

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

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

    .newsletter-form {
        flex-direction: column;
    }

    .listing-item {
        flex-direction: column;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--gray-600);
}

.breadcrumbs a {
    color: var(--primary-light);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .separator {
    color: var(--gray-200);
}

/* Contact Page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.contact-info p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 1.25rem;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(50, 130, 184, 0.1);
}

/* 404 Page */
.page-404 {
    text-align: center;
    padding: 6rem 1.5rem;
}

.page-404 h1 {
    font-size: 6rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.page-404 h2 {
    color: var(--gray-600);
    font-weight: 400;
    margin-bottom: 2rem;
}

.page-404-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-404-links a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
}

.page-404-links a:hover {
    text-decoration: underline;
}

/* Privacy/Disclaimer */
.legal-content {
    max-width: 700px;
    margin: 0 auto;
}

.legal-content h2 {
    text-align: left;
    color: var(--primary-dark);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.legal-content p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-content ul {
    color: var(--gray-600);
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}

/* Footer Legal Links */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-legal {
    display: flex;
    gap: 1rem;
}

.footer-legal a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.6;
    font-size: 0.85rem;
    transition: opacity 0.2s;
}

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

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* FAQ Page */
.faq-section {
    padding: 3rem 0 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 2.5rem;
}

.faq-category h2 {
    color: var(--primary-dark);
    font-size: 1.35rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-100);
}

.faq-item {
    border: 1px solid var(--gray-100);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: var(--primary-light);
}

.faq-item summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-light);
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-answer {
    padding: 0 1.25rem 1.25rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.faq-answer p {
    margin-bottom: 0.75rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
    margin: 0.5rem 0 0.75rem 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.35rem;
}

.faq-answer a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
}

.faq-answer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .faq-section {
        padding: 2rem 1rem 3rem;
    }
}

/* Affiliate Disclosure Banner */
.aff-disc {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 4px;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    color: #6d5b00;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.aff-disc a {
    color: #6d5b00;
    text-decoration: underline;
}

/* Sponsored Partners Section */
.sponsored-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-100);
}

.sponsored-section h2 {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.sponsor-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 6px;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
    transition: border-color 0.2s;
}

.sponsor-card:hover {
    border-color: var(--primary-light);
}

.sponsor-badge {
    background: var(--primary);
    color: var(--white);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.sponsor-card-content h3 {
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.sponsor-card-content p {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0;
}

/* Recommended Reading (Amazon Affiliates) */
.reading-section {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--gray-100);
}

.reading-section h2 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.reading-section > p {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.reading-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.reading-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 6px;
    padding: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.reading-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.reading-card h3 {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.reading-card .author {
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-bottom: 0.4rem;
}

.reading-card p {
    font-size: 0.8rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.reading-card .aff-link {
    font-size: 0.8rem;
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
}

.reading-card .aff-link:hover {
    text-decoration: underline;
}

.aff-tag {
    font-size: 0.65rem;
    color: var(--gray-400);
    display: block;
    margin-top: 0.3rem;
}

/* Newsletter sponsorship note */
.newsletter-sponsor {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
    text-align: center;
}

.newsletter-sponsor a {
    color: var(--primary-light);
    text-decoration: none;
}

.newsletter-sponsor a:hover {
    text-decoration: underline;
}

.newsletter-msg {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    text-align: center;
}

.newsletter-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.field-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

/* Tool Disclaimer */
.tool-disclaimer {
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: 6px;
    font-size: 0.78rem;
    color: #5d4037;
    line-height: 1.5;
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    color: var(--white);
    padding: 1rem 1.5rem;
    z-index: 9999;
    display: none;
    font-size: 0.85rem;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}
.cookie-consent.show { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.cookie-consent p { margin: 0; opacity: 0.9; }
.cookie-consent a { color: var(--accent); }
.cookie-btn {
    background: var(--primary-light);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Premium / Gated Feature */


/* Typography hierarchy improvements */
.article-content h2 {
    font-size: 1.35rem;
    color: var(--primary-dark);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--gray-100);
}
.article-content h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.article-content ul, .article-content ol {
    margin: 0.5rem 0 1rem 1.5rem;
}
.article-content li {
    margin-bottom: 0.35rem;
    line-height: 1.6;
}
.article-content table.result-table {
    margin: 1rem 0 1.5rem;
}
.article-content blockquote {
    border-left: 4px solid var(--primary-light);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    background: var(--gray-50);
    color: var(--gray-600);
    font-style: italic;
}

/* Status badges in tool results */
.status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.status-badge.excellent { background: #c8e6c9; color: #1b5e20; }
.status-badge.good { background: #fff9c4; color: #f57f17; }
.status-badge.fair { background: #ffe0b2; color: #e65100; }
.status-badge.poor { background: #ffcdd2; color: #c62828; }

/* Metric status colors for tool output */
.metric.positive .metric-value { color: #2d6a4f; }
.metric.negative .metric-value { color: #e63946; }
.metric.warning .metric-value { color: #f57f17; }

/* Tool output cards refinement */
.result-box .metric-grid, .results-inner .metric-grid {
    margin-bottom: 1rem;
}
.result-box .metric, .results-inner .metric {
    background: var(--white);
    border: 1px solid var(--gray-100);
    transition: box-shadow 0.2s;
}
.result-box .metric:hover, .results-inner .metric:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.result-box .metric.highlight, .results-inner .metric.highlight {
    border-color: var(--primary-light);
    background: #f0f8ff;
}

/* Results container padding */
.results-inner {
    padding: 0.5rem 0;
}

/* Tool header description */
.tool-header .field-desc {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* Button hover states */
.btn-primary:hover, .btn-secondary:hover {
    opacity: 0.9;
}

/* PDF Download Modal */
.pdf-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
.pdf-modal.visible { display: flex; }
.pdf-modal-inner {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
    position: relative;
}
.pdf-modal-inner h2 { color: var(--primary-dark); margin-bottom: 0.5rem; font-size: 1.3rem; }
.pdf-modal-inner p { color: var(--gray-600); font-size: 0.9rem; margin-bottom: 1.5rem; }
.pdf-modal-inner .cta-form { display: flex; flex-direction: column; gap: 0.75rem; }
.pdf-modal-inner .cta-form input {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
}
.pdf-modal-inner .cta-form input:focus { border-color: var(--primary-light); outline: none; }
.pdf-modal-inner .cta-form button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}
.pdf-modal-inner .cta-form button:hover { background: var(--primary-dark); }
.pdf-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-600);
    background: none;
    border: none;
}
.pdf-modal-note {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 0.75rem;
}
.pdf-brand-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Branded Print Header/Footer */
.print-brand {
    display: none;
}

@media print {
    .navbar, .footer, .aff-disc, .newsletter, .breadcrumbs, .back-link, .reading-section,
    .btn, .btn-primary, .btn-secondary, .btn-outline, .sponsored-section, .newsletter-sponsor,
    .cookie-consent, .pdf-modal, .premium-gate { display: none !important; }
    .tool-page, .results, .results-inner, .calculator { box-shadow: none !important; border: none !important; }
    .results { display: block !important; }
    .metric-grid { break-inside: avoid; }
    .metric { break-inside: avoid; border: 1px solid #ccc !important; }
    body { font-size: 11pt; color: #000; }
    h1 { font-size: 18pt; }
    h2 { font-size: 14pt; }
    .container { max-width: 100%; padding: 0; }

    .print-brand {
        display: block;
        text-align: center;
        padding: 1rem 0;
        border-bottom: 2px solid #0f4c75;
        margin-bottom: 1.5rem;
    }
    .print-brand .brand-name {
        font-size: 16pt;
        font-weight: 700;
        color: #0f4c75;
    }
    .print-brand .brand-url {
        font-size: 9pt;
        color: #6c757d;
    }
    .print-brand .brand-tag {
        font-size: 8pt;
        color: #6c757d;
        margin-top: 0.25rem;
    }
    .print-footer {
        display: block;
        text-align: center;
        font-size: 8pt;
        color: #6c757d;
        border-top: 1px solid #dee2e6;
        padding-top: 0.75rem;
        margin-top: 1.5rem;
    }
}
