﻿@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@300;400;500;600;700;800&display=swap');
/* NOTE: Header/nav/footer are intentionally NOT styled here so they inherit
   the canonical rules from style.css and stay identical to every other page. */

                html {
                    scroll-behavior: smooth
                }

                html,
                body {
                    overflow-x: hidden;
                    width: 100%
                }

                * {
                    box-sizing: border-box
                }

                body {
                    font-family: 'Inter', 'Roboto', 'Arial', sans-serif;
                    font-size: 16px;
                    line-height: 1.6;
                    color: var(--text-secondary, #4A4843);
                    background-color: #FBFAF7;
                    overflow-x: hidden
                }

                .header {
                    background-color: var(--bg-primary, #FFFFFF);
                    border-bottom: 1px solid rgba(0, 0, 0, .08);
                    position: sticky;
                    top: 0;
                    z-index: 100;
                    box-shadow: 0 1px 3px rgba(0, 0, 0, .1)
                }

                .nav-container {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    height: 70px;
                    max-width: 1200px;
                    margin: 0 auto;
                    padding: 0 1rem;
                    position: relative
                }

                .nav-brand .logo {font-family: 'Fraunces', Georgia, serif;
                    font-size: 1.5rem;
                    font-weight: 700;
                    color: var(--text-primary, #1C1B19);
                    margin: 0
                }

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

                .nav-link {
                    transition: color .3s;
                    padding: .5rem 0;
                    position: relative
                }

                .nav-toggle {
                    display: none;
                    background: none;
                    border: none;
                    cursor: pointer;
                    padding: .5rem;
                    font-size: 1.5rem;
                    color: var(--text-primary, #1C1B19)
                }

                .container {
                    width: 100%;
                    max-width: 1200px;
                    margin: 0 auto;
                    padding: 0 1rem
                }

                .main {
                    min-height: calc(100vh - 70px - 250px);
                    padding: 2rem 0
                }

                .hero {
                    text-align: center;
                    margin-bottom: 3rem
                }

                .hero-badges {
                    display: flex;
                    gap: .75rem;
                    justify-content: center;
                    flex-wrap: wrap;
                    margin-bottom: 1rem
                }

                .feature-badge {
                    background-color: var(--bg-secondary, #F1EFEB);
                    padding: .5rem 1rem;
                    border-radius: 999px;
                    font-size: .875rem;
                    border: 1px solid var(--line, rgba(28,27,25,.10));
                    box-shadow: 0 1px 3px rgba(0, 0, 0, .1)
                }

                .h1 {font-family: 'Fraunces', Georgia, serif;
                    font-size: clamp(2.5rem, 5vw, 3.5rem);
                    font-weight: 700
                }

                .hero-subtitle {
                    font-size: 1.25rem;
                    color: var(--text-secondary, #4A4843);
                    margin: 1rem auto 2rem;
                    max-width: 650px
                }

                .bento-grid {
                    display: grid;
                    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
                    gap: 1.5rem;
                    width: 100%;
                    max-width: 100%
                }

                .bento-item {
                    background-color: var(--bg-primary, #FFFFFF);
                    border: 1px solid rgba(0, 0, 0, .06);
                    border-radius: 8px;
                    padding: 2rem;
                    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
                    word-wrap: break-word;
                    overflow-wrap: break-word;
                    width: 100%;
                    max-width: 100%;
                    box-sizing: border-box;
                    overflow: hidden
                }

                @media(max-width:768px) {
                    .nav-menu {
                        display: none;
                        position: absolute;
                        top: 100%;
                        right: 0;
                        width: 280px;
                        max-width: calc(100vw - 2rem);
                        background-color: var(--bg-primary, #FFFFFF);
                        border: 1px solid rgba(66, 133, 244, .1);
                        border-radius: 8px;
                        box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
                        padding: 1rem 0;
                        margin-top: .5rem;
                        opacity: 0;
                        pointer-events: none;
                        transform: translateY(-10px);
                        transition: opacity .3s ease, transform .3s ease
                    }

                    .nav-menu.active {
                        display: block;
                        opacity: 1;
                        pointer-events: auto;
                        transform: translateY(0)
                    }

                    .nav-menu .nav-link {
                        display: block;
                        padding: .75rem 1.5rem;
                        font-size: 1rem;
                        border-bottom: 1px solid rgba(0, 0, 0, .05);
                        white-space: normal
                    }

                    .nav-menu .nav-link:hover {
                        background-color: rgba(66, 133, 244, .05);
                        color: var(--primary, #2C5BD8);
                        padding-left: 2rem
                    }

                    .nav-toggle {
                        display: block
                    }

                    .container {
                        padding: 0 1rem
                    }

                    .bento-grid {
                        grid-template-columns: 1fr;
                        gap: 1rem;
                        width: 100%;
                        max-width: 100%
                    }

                    .bento-item {
                        padding: 1.2rem;
                        word-wrap: break-word;
                        overflow-wrap: break-word;
                        hyphens: auto;
                        width: 100%;
                        max-width: 100%
                    }

                    .calculator-form-container {
                        width: 100% !important;
                        max-width: 100% !important;
                        grid-column: 1 / -1 !important
                    }

                    .vrt-form {
                        width: 100%;
                        max-width: 100%
                    }

                    .main {
                        padding: 1.2rem 0
                    }

                    .section-title {
                        font-size: 1.3rem !important;
                        text-align: center !important
                    }

                    .table-responsive {
                        width: 100%;
                        overflow-x: auto
                    }

                    .vrt-rates-table {
                        font-size: .8rem;
                        min-width: 480px
                    }

                    .info-card {
                        text-align: center
                    }

                    .info-card h2, .info-card h3 {
                        font-size: 1.1rem
                    }

                    .info-card p {
                        font-size: .9rem;
                        line-height: 1.5
                    }
                }

                @media(max-width:480px) {
                    .container {
                        padding: 0 .75rem;
                        max-width: 100%
                    }

                    .main {
                        padding: .8rem 0
                    }

                    h1 {font-family: 'Fraunces', Georgia, serif;
                        font-size: 2rem
                    }

                    .bento-item {
                        padding: .8rem;
                        word-wrap: break-word;
                        overflow-wrap: break-word
                    }

                    .section-title {
                        font-size: 1.2rem !important
                    }

                    .vrt-rates-table {
                        font-size: .75rem;
                        min-width: 450px
                    }

                    .vrt-rates-table th,
                    .vrt-rates-table td {
                        padding: .5rem;
                        font-size: .75rem
                    }
                }

                /* Tooltip styles */
                .tooltip {
                    position: relative;
                    display: inline-block;
                    border-bottom: 1px dotted var(--primary, #2C5BD8);
                    cursor: help;
                }

                .tooltip .tooltiptext {
                    visibility: hidden;
                    width: max-content;
                    max-width: min(250px, 90vw);
                    background-color: #333;
                    color: #fff;
                    text-align: center;
                    border-radius: 6px;
                    padding: 10px;
                    position: absolute;
                    z-index: 1;
                    bottom: 125%;
                    left: 50%;
                    transform: translateX(-50%);
                    margin-left: 0;
                    opacity: 0;
                    transition: opacity 0.3s;
                    font-size: 0.9rem;
                    line-height: 1.4;
                }

                .tooltip .tooltiptext::after {
                    content: "";
                    position: absolute;
                    top: 100%;
                    left: 50%;
                    margin-left: -5px;
                    border-width: 5px;
                    border-style: solid;
                    border-color: #333 transparent transparent transparent;
                }

                .tooltip:hover .tooltiptext {
                    visibility: visible;
                    opacity: 1;
                }

                /* Responsive tooltip adjustments */
                @media (max-width: 768px) {
                    .tooltip .tooltiptext {
                        max-width: min(200px, 88vw);
                        margin-left: 0;
                    }
                }

.resource-grid {
                                display: grid;
                                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
                                gap: 20px;
                                margin-top: 20px;
                            }

                            .resource-card {
                                display: block;
                                padding: 20px;
                                background-color: var(--bg-secondary, #F1EFEB);
                                border: 1px solid #e0e0e0;
                                border-radius: 10px;
                                text-align: center;
                                text-decoration: none;
                                color: inherit;
                                transition: all 0.3s ease;
                            }

                            .resource-card:hover {
                                background-color: #e8f4ff;
                                transform: translateY(-5px);
                                box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
                            }

                            .resource-icon {
                                font-size: 2rem;
                                margin-bottom: 15px;
                            }

                            .resource-card h3 {
                                margin: 0 0 10px 0;
                                color: var(--text-primary, #1C1B19);
                            }

                            .resource-card p {
                                margin: 0;
                                color: var(--text-secondary, #4A4843);
                                font-size: 0.9rem;
                            }

