/* Mortgage Rates Today - Theme styles (site chrome) */

html, body {
    margin: 0;
    padding: 0;
    background: #0a0e14;
    color: #e8ecf2;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.mrt-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.mrt-site-main {
    flex: 1;
}

.mrt-site-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.mrt-site-header {
    background: #0e131a;
    border-bottom: 1px solid #1e2836;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
}

.mrt-site-header .mrt-site-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.mrt-site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #e8ecf2;
}

.mrt-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--mrt-primary, #3b82f6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.125rem;
}

.mrt-brand-name {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

/* Nav toggle (mobile hamburger) */
.mrt-nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid #1e2836;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.mrt-nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: #e8ecf2;
    transition: transform 0.2s, opacity 0.2s;
}
.mrt-nav-toggle.is-open .mrt-nav-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.mrt-nav-toggle.is-open .mrt-nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.mrt-nav-toggle.is-open .mrt-nav-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Nav */
.mrt-site-nav .mrt-nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .mrt-nav-toggle {
        display: flex;
    }
    .mrt-site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0e131a;
        border-bottom: 1px solid #1e2836;
        padding: 8px 16px 16px;
    }
    .mrt-site-nav.is-open {
        display: block;
    }
    .mrt-site-nav .mrt-nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }
    .mrt-site-nav .mrt-nav-list li {
        list-style: none;
    }
    .mrt-site-nav a {
        display: block;
        padding: 12px 14px;
    }
    .mrt-site-header {
        position: relative;
    }
}

.mrt-site-nav a {
    color: #c2cad6;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}

.mrt-site-nav a:hover,
.mrt-site-nav .current-menu-item a,
.mrt-site-nav .current_page_item a {
    background: rgba(59, 130, 246, 0.12);
    color: var(--mrt-primary, #3b82f6);
}

/* Page */
.mrt-page {
    padding: 32px 24px 64px;
}

.mrt-hero {
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #1e2836;
}

.mrt-page-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    color: #fff;
}

.mrt-page-subtitle {
    font-size: 1rem;
    color: #8494a7;
    margin: 0;
}

.mrt-section {
    margin-top: 40px;
}

.mrt-two-col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 40px;
}
@media (max-width: 900px) {
    .mrt-two-col {
        grid-template-columns: 1fr;
    }
}

/* Filter Bar */
.mrt-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    background: #141920;
    border: 1px solid #1e2836;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}
.mrt-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 160px;
}
.mrt-filter-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8494a7;
    font-weight: 600;
}
.mrt-filter-group select {
    background: #0a0e14;
    border: 1px solid #1e2836;
    color: #e8ecf2;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
}
.mrt-filter-group select:focus {
    outline: 2px solid var(--mrt-primary, #3b82f6);
    outline-offset: -1px;
    border-color: transparent;
}

/* Buttons */
.mrt-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--mrt-primary, #3b82f6);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: filter 0.15s, transform 0.05s;
    font-family: inherit;
}
.mrt-button:hover {
    filter: brightness(1.1);
    color: #fff;
    text-decoration: none;
}
.mrt-button:active {
    transform: translateY(1px);
}

/* Footer */
.mrt-site-footer {
    background: #0e131a;
    border-top: 1px solid #1e2836;
    padding: 48px 0 24px;
    margin-top: 64px;
}

.mrt-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 32px;
}
@media (max-width: 720px) {
    .mrt-footer-grid {
        grid-template-columns: 1fr;
    }
}

.mrt-footer-tagline {
    margin-top: 12px;
    color: #8494a7;
    font-size: 0.9rem;
    line-height: 1.6;
}

.mrt-footer-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8494a7;
    margin: 0 0 12px;
}

.mrt-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mrt-footer-links a {
    color: #c2cad6;
    text-decoration: none;
    font-size: 0.9rem;
}
.mrt-footer-links a:hover {
    color: var(--mrt-primary, #3b82f6);
}

.mrt-footer-text {
    color: #8494a7;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

.mrt-footer-bottom {
    border-top: 1px solid #1e2836;
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    color: #8494a7;
    font-size: 0.813rem;
}
.mrt-footer-bottom p { margin: 0; }
.mrt-footer-disclaimer { max-width: 480px; text-align: right; }
@media (max-width: 720px) {
    .mrt-footer-disclaimer { text-align: left; }
}

/* Posts */
.mrt-post-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.mrt-post-card {
    background: #141920;
    border: 1px solid #1e2836;
    border-radius: 12px;
    padding: 24px;
}
.mrt-post-title { margin: 0 0 8px; font-size: 1.25rem; }
.mrt-post-title a { color: #e8ecf2; text-decoration: none; }
.mrt-post-title a:hover { color: var(--mrt-primary, #3b82f6); }
.mrt-post-meta { color: #8494a7; font-size: 0.813rem; margin-bottom: 12px; }
.mrt-post-excerpt { color: #c2cad6; font-size: 0.95rem; line-height: 1.6; }

/* 404 */
.mrt-404 {
    text-align: center;
    padding: 96px 24px;
}
.mrt-404 .mrt-page-title { font-size: 5rem; margin-bottom: 16px; }

/* Mobile nav (basic) */
@media (max-width: 720px) {
    .mrt-site-header .mrt-site-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .mrt-site-nav .mrt-nav-list {
        flex-wrap: wrap;
    }
}

/* Lender Ticker (marquee carousel) */
.mrt-ticker {
    border: 1px solid #1e2836;
    background: rgba(20, 25, 32, 0.4);
    border-radius: 12px;
    padding: 20px 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.mrt-ticker-title {
    margin: 0;
    color: #8494a7;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
}
.mrt-ticker-track-mask {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
.mrt-ticker-track {
    display: flex;
    gap: 40px;
    white-space: nowrap;
    animation: mrt-ticker-scroll 60s linear infinite;
}
.mrt-ticker-track:hover { animation-play-state: paused; }
.mrt-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.mrt-ticker-logo {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: #fff;
    padding: 2px;
    object-fit: contain;
    flex-shrink: 0;
}
.mrt-ticker-name {
    color: #e8ecf2;
    font-size: 0.875rem;
    font-weight: 500;
}
@keyframes mrt-ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-33.3333%); }
}
