:root {
    /* Light mode colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --text: #1f2937;
    --text-light: #6b7280;
    --background: #ffffff;
    --card-background: #ffffff;
    --border: #e5e7eb;
    --header-bg: linear-gradient(to bottom, #f8fafc, #ffffff);
    --disclaimer-bg: #f9fafb;
    --summary-bg: #f8fafc;
    --toggle-bg: rgba(37, 99, 235, 0.05);
    --toggle-hover-bg: rgba(37, 99, 235, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --callout-bg: #f0f9ff;
    --callout-border: #bae6fd;
    --tip-bg: #f0fdf4;
    --tip-border: #bbf7d0;
    --warning-bg: #fffbeb;
    --warning-border: #fef3c7;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Dark mode colors */
        --primary: #3b82f6;
        --primary-dark: #2563eb;
        --text: #e5e7eb;
        --text-light: #9ca3af;
        --background: #111827;
        --card-background: #1f2937;
        --border: #374151;
        --header-bg: linear-gradient(to bottom, #111827, #1f2937);
        --disclaimer-bg: #1f2937;
        --summary-bg: #111827;
        --toggle-bg: rgba(59, 130, 246, 0.05);
        --toggle-hover-bg: rgba(59, 130, 246, 0.1);
        --shadow-color: rgba(0, 0, 0, 0.3);
        --callout-bg: #082f49;
        --callout-border: #0c4a6e;
        --tip-bg: #022c22;
        --tip-border: #064e3b;
        --warning-bg: #422006;
        --warning-border: #713f12;
    }
}

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

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.4;
    color: var(--text);
    background-color: var(--background);
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: min(1200px, 95vw);
    margin: 0 auto;
    padding: 0.5rem;
}

.site-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 0.25rem;
    box-shadow: 0 2px 8px var(--shadow-color);
}

header {
    text-align: center;
    padding: 0.75rem 1rem 0.5rem;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
}

.navigation-menu {
    display: flex;
    justify-content: center;
    padding: 0.5rem;
    margin: 0.5rem 0;
    flex-wrap: wrap;
    gap: 2rem;
}

.navigation-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.2s ease;
    opacity: 0.8;
}

.navigation-menu a:hover,
.navigation-menu a.active {
    color: var(--text);
    opacity: 1;
}

.article-title {
    text-align: center;
    margin: 2rem 0;
    font-size: 2rem;
    color: var(--text);
    line-height: 1.2;
}

.article-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.security-note {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-light);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    white-space: normal;
    overflow: visible;
    line-height: 1.2;
}

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

.price-card {
    background-color: var(--card-background);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 4px var(--shadow-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.frequency {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.button {
    display: inline-block;
    text-decoration: none;
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

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

h1 {
    font-size: clamp(1.6rem, 2.8vw, 2rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.tagline {
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    color: var(--text-light);
    max-width: 90%;
    margin: 0 auto 0.5rem;
    white-space: normal;
    overflow: visible;
    line-height: 1.2;
}

main {
    flex: 1;
}

.section {
    margin: 0.8rem 0;
    padding: 0.8rem;
    background: var(--card-background);
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px var(--shadow-color);
}

.section-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

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

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin: 0.375rem 0;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.trust-badge svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

h3 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

footer {
    text-align: center;
    padding: 0.625rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

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

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
}

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

@media screen and (min-height: 1080px) {
    body {
        justify-content: space-between;
    }
    
    main {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

@media screen and (max-height: 800px) {
    .section {
        margin: 0.625rem 0;
        padding: 0.75rem;
    }
    
    .price-card {
        padding: 0.625rem;
    }
    
    .trust-badges {
        gap: 1rem;
        margin: 0.25rem 0;
    }
    
    .site-logo {
        width: 48px;
        height: 48px;
    }
    
    h1 {
        font-size: clamp(1.5rem, 2.6vw, 1.8rem);
    }
}

details {
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    background-color: var(--card-background);
    border: 1px solid var(--border);
    overflow: hidden;
}

summary {
    padding: 1rem 1.5rem;
    background-color: var(--summary-bg);
    cursor: pointer;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::after {
    content: "⌄";
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

details[open] summary::after {
    transform: rotate(180deg);
}

.details-content {
    padding: 1.5rem;
}

.toggle-link {
    display: block;
    text-align: center;
    margin: 0.875rem auto 0.375rem;
    color: var(--primary);
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    padding: 0.4rem 0.875rem;
    border: 1px solid var(--primary);
    border-radius: 0.5rem;
    background-color: var(--toggle-bg);
    width: fit-content;
    transition: all 0.2s ease;
}

.toggle-link:hover {
    background-color: var(--toggle-hover-bg);
    text-decoration: none;
}

.toggle-link svg {
    width: 12px;
    height: 12px;
    margin-left: 5px;
    transition: transform 0.2s ease;
    vertical-align: middle;
}

.toggle-link.active svg {
    transform: rotate(180deg);
}

.hidden-content {
    display: none;
    margin-top: 1rem;
}

.hidden-content h3 {
    margin-top: 1.5rem;
    padding-top: 0.875rem;
}

.hidden-content h3:first-child {
    margin-top: 0.5rem;
    padding-top: 0;
}

.hidden-content .section-title {
    margin-top: 1.5rem;
    padding-top: 0.875rem;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.related-article {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--card-background);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px var(--shadow-color);
}

.related-article-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.related-article-title a {
    color: var(--primary);
    text-decoration: none;
}

.related-article-excerpt {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.disclaimer-box {
    border: 1px solid var(--border); 
    background-color: var(--disclaimer-bg); 
    padding: 0.75rem; 
    border-radius: 0.5rem;
}

h1 {
    font-size: clamp(1.6rem, 2.8vw, 2rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.tagline {
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    color: var(--text-light);
    max-width: 90%;
    margin: 0 auto 0.5rem;
    white-space: normal;
    overflow: visible;
    line-height: 1.2;
}

main {
    flex: 1;
}

.section {
    margin: 0.8rem 0;
    padding: 1.5rem;
    background: var(--card-background);
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px var(--shadow-color);
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.category-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.faq-item {
    margin-bottom: 1.5rem;
}

/* New styles for collapsible FAQ details */
.faq-details {
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    overflow: hidden;
}

.faq-summary {
    padding: 0.75rem 1rem;
    background-color: var(--summary-bg);
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.faq-summary::after {
    content: "+";
    font-size: 1.2rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

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

.faq-details[open] .faq-summary {
    border-bottom: 1px solid var(--border);
}

.faq-answer {
    padding: 1rem;
    color: var(--text);
}

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

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

/* Fixed styles for lists to prevent numbers sticking out */
.faq-answer ul, .faq-answer ol {
    margin: 0.5rem 0 0.75rem 0;
    padding-left: 2rem;
}

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

/* This is the new style that adds the vertical blue line */
.faq-answer-content {
    padding-left: 0.75rem;
    border-left: 2px solid var(--primary);
}

h1 {
    margin: 0;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.back-to-top:hover {
    opacity: 1;
}

.toc {
    background-color: var(--disclaimer-bg);
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.toc-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.toc-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.5rem 1rem;
}

.toc-category {
    margin-bottom: 1rem;
}

.toc-category-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-size: 0.95rem;
}

.toc-category-links a {
    display: block;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    padding-left: 0.5rem;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

.toc-category-links a:hover {
    color: var(--primary);
    border-left-color: var(--primary);
}

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

footer {
    text-align: center;
    padding: 0.625rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

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

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
}

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

@media screen and (max-width: 768px) {
    .toc-list {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 1rem;
    }
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

h1 {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    font-weight: 700;
    color: var(--text);
    margin: 2rem 0 1rem;
    line-height: 1.3;
}

h3 {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: 600;
    color: var(--text);
    margin: 1.5rem 0 0.75rem;
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
}

ul,
ol {
    margin: 0 0 1rem 1.5rem;
    padding-left: 0.5rem;
}

li {
    margin-bottom: 0.5rem;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-align: center;
}

main {
    flex: 1;
    padding: 1rem 0;
}

.section {
    margin: 0.8rem 0;
    padding: 2rem;
    background: var(--card-background);
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px var(--shadow-color);
}

.callout {
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--callout-border);
    background-color: var(--callout-bg);
    border-radius: 0.5rem;
}

.callout-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.callout svg {
    width: 20px;
    height: 20px;
}

.tip {
    border-left-color: var(--tip-border);
    background-color: var(--tip-bg);
}

.warning {
    border-left-color: var(--warning-border);
    background-color: var(--warning-bg);
}

.cta-box {
    background-color: var(--callout-bg);
    border: 1px solid var(--callout-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.cta-box h3 {
    margin-top: 0;
}

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

.article-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.related-articles {
    margin-top: 2rem;
}

.related-articles-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.related-article {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--card-background);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px var(--shadow-color);
}

.related-article-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.related-article-title a {
    color: var(--primary);
    text-decoration: none;
}

.related-article-excerpt {
    color: var(--text-light);
    font-size: 0.9rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

th,
td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
}

th {
    background-color: var(--summary-bg);
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: var(--summary-bg);
}

.table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.toc {
    background-color: var(--disclaimer-bg);
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin: 1.5rem 0;
    border: 1px solid var(--border);
}

.toc-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.toc-list {
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
}

.toc-item {
    margin-bottom: 0.5rem;
}

.toc-link {
    color: var(--primary);
    text-decoration: none;
    display: inline-block;
    padding: 0.25rem 0;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
    padding-left: 0.5rem;
}

.toc-link:hover {
    border-left-color: var(--primary);
    padding-left: 0.75rem;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.back-to-top:hover {
    opacity: 1;
}

a {
    color: var(--primary);
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

footer {
    text-align: center;
    padding: 1.5rem 1rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

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

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
}

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

.image-container {
    margin: 1.5rem 0;
    text-align: center;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.image-caption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
}

blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--primary);
    background-color: var(--disclaimer-bg);
    font-style: italic;
    border-radius: 0.25rem;
}

.score-impact {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.impact-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 50%;
    background-color: #ef4444;
    /* Default red */
}

.impact-high {
    background-color: #ef4444;
    /* Red */
}

.impact-medium {
    background-color: #f59e0b;
    /* Amber */
}

.impact-low {
    background-color: #10b981;
    /* Green */
}

.impact-positive {
    background-color: #3b82f6;
    /* Blue */
}

.impact-text {
    font-weight: 500;
}

@media screen and (max-width: 768px) {
    .section {
        padding: 1.5rem;
    }

    .related-articles-grid {
        grid-template-columns: 1fr;
    }
}