/**
 * TheRealSalaries - Custom CSS
 *
 * Works with Pico CSS classless framework.
 * Overrides Pico defaults and adds custom components.
 */

/* ===== Pico CSS Variable Overrides ===== */
:root {
    /* Primary colors - Green brand */
    --pico-primary: #059669;
    --pico-primary-hover: #047857;
    --pico-primary-focus: rgba(5, 150, 105, 0.25);
    --pico-primary-inverse: #fff;

    /* Text colors */
    --pico-color: #1f2937;
    --pico-muted-color: #4b5563;
    --pico-secondary: #6b7280;

    /* Background colors */
    --pico-background-color: #f8fafc;
    --pico-card-background-color: #fff;
    --pico-card-sectioning-background-color: #f8fafc;

    /* Border colors */
    --pico-border-color: #e5e7eb;
    --pico-muted-border-color: #e5e7eb;

    /* Form colors */
    --pico-form-element-background-color: #fff;
    --pico-form-element-border-color: #d1d5db;
    --pico-form-element-focus-color: var(--pico-primary-focus);

    /* Typography */
    --pico-font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --pico-font-size: 100%;
    --pico-line-height: 1.6;

    /* Spacing */
    --pico-spacing: 1rem;
    --pico-block-spacing-vertical: 1rem;
    --pico-block-spacing-horizontal: 1rem;

    /* Border radius */
    --pico-border-radius: 0.5rem;

    /* Custom variables */
    --color-primary: #059669;
    --color-primary-dark: #047857;
    --color-secondary: #1e40af;
    --color-bg: #f8fafc;
    --color-surface: #fff;
    --color-text: #1f2937;
    --color-text-muted: #4b5563;
    --color-border: #e5e7eb;
    --color-success: #10b981;
    --color-success-bg: #dcfce7;
    --color-success-text: #047857;
    --color-warning: #f59e0b;
    --color-error: #ef4444;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);

    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
}

/* Force light mode */
[data-theme="light"],
:root:not([data-theme="dark"]) {
    color-scheme: light;
}

/* ===== Base Overrides ===== */
html {
    overflow-y: scroll; /* Prevent horizontal jump from scrollbar appearing */
}

body {
    margin: 0;
    background-color: var(--color-bg);
}

/* Links */
a {
    color: var(--pico-primary);
}

a:hover {
    color: var(--pico-primary-hover);
}

/* ===== Layout ===== */
.container {
    width: 95%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

main {
    padding: 0;
}

/* ===== Header & Navigation ===== */
.header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
}

.logo img {
    width: 200px;
    height: 95px;
}

.nav {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--color-text-muted);
    font-weight: 500;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--color-text);
    text-decoration: none;
}

/* Header actions (login/account buttons) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.account-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
}

.account-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.menu-icon {
    font-size: 1.25rem;
}

/* Mobile menu */
.mobile-menu {
    display: none;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

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

.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    color: var(--color-text-muted);
    text-decoration: none;
}

.mobile-nav-link:hover {
    color: var(--color-text);
}

.mobile-nav-link--danger {
    color: #dc2626;
}

/* Share dropdown */
.share-dropdown {
    position: relative;
}

.share-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: inherit;
    font-weight: 500;
    color: var(--color-text-muted);
}

.share-dropdown-btn:hover {
    color: var(--color-text);
}

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

.share-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 0.75rem;
    z-index: 100;
    margin-top: 0.5rem;
}

.share-dropdown-content.show {
    display: block;
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    background: #f3f4f6;
    color: var(--color-text);
}

.share-btn.copied {
    color: var(--color-primary);
}

.share-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* ===== Hero Sections ===== */
.hero {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    padding: 3rem 0;
}

.hero h1 {
    color: var(--color-text);
}

.hero-bg {
    padding: 3rem 0;
    min-height: 400px;
}

.hero-bg-inner {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('/images/hero-bg.webp');
    background-size: cover;
    background-position: center;
    padding: 3rem 1rem;
    border-radius: var(--radius-lg);
    min-height: 350px;
}

.hero-bg h1,
.hero-bg p {
    color: #fff;
}

.hero-bg .stat-card {
    background: rgba(255, 255, 255, 0.95);
}

.hero-bg .badge {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.hero-salary {
    text-align: right;
}

/* ===== Salary Display ===== */
.salary-big {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    line-height: 1;
}

.salary-range {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* ===== Badge / Trust Signal ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: var(--color-success-bg);
    color: var(--color-primary-dark);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
}

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

/* ===== Stats Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

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

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg);
}

.load-more-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.load-more-btn:hover {
    background: var(--color-bg);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.load-more-btn.htmx-request {
    opacity: 0.6;
    pointer-events: none;
}

/* ===== Search ===== */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1.125rem;
    border: 2px solid var(--color-border);
    border-radius: 0.75rem;
    background: var(--color-surface);
    outline: none;
}

.search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--pico-primary-focus);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-text-muted);
}

/* ===== Autocomplete ===== */
.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin-top: 0.25rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 50;
}

.autocomplete-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: #f0fdf4;
}

.autocomplete-item strong {
    color: var(--color-text);
}

/* ===== Data Tables ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.data-table th {
    background: var(--color-bg);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.data-table tbody tr:hover {
    background: #f9fafb;
}

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

/* Override Pico table styles */
table {
    --pico-border-color: var(--color-border);
}

/* ===== Blur Paywall (Critical) ===== */
.row-blurred {
    position: relative;
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
}

.row-blurred td {
    filter: blur(5px);
}

.row-blurred::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.8));
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    gap: 0.25rem;
    align-items: center;
    list-style: none;
    padding: 0;
}

.breadcrumb a {
    color: #374151;
}

.breadcrumb .sep {
    color: #9ca3af;
    margin: 0 0.25rem;
}

/* ===== FAQ Accordion ===== */
details {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
}

details summary {
    padding: 1rem;
    cursor: pointer;
    font-weight: 500;
}

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

details > div,
details > p {
    padding: 1rem;
}

.faq-arrow {
    transition: transform 0.2s;
    color: #9ca3af;
}

details[open] .faq-arrow {
    transform: rotate(180deg);
}

/* ===== Sticky CTA ===== */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 1rem;
    box-shadow: 0 -4px 6px -1px rgb(0 0 0 / 0.1);
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.sticky-cta-text {
    font-weight: 500;
}

.sticky-cta-price {
    font-weight: 700;
    color: var(--color-primary);
}

/* ===== Footer ===== */
.footer {
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.87);
    padding: 1rem 0 2rem;
    margin-top: 2rem;
}

.footer a {
    color: #fff;
}

.footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer p,
.footer li,
.footer span,
.footer div,
.footer strong {
    color: rgba(255, 255, 255, 0.87);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

.footer-heading {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer .container {
    padding-top: 1rem;
}

.footer-about {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.footer-meta {
    font-size: 0.75rem;
    opacity: 0.85;
}

.footer-trust {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    text-align: center;
}

.footer-trust p {
    margin: 0;
    font-size: 0.875rem;
}

.footer-trust span {
    opacity: 0.85;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
}

.footer-disclaimer {
    font-size: 0.75rem;
    opacity: 0.85;
    margin-top: 0.5rem;
}

.trust-banner {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-item svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-success);
}

/* ===== Section Backgrounds ===== */
.section {
    padding: 3rem 0;
    background-color: var(--color-bg);
}

.section--white {
    background-color: var(--color-surface);
}

.section--slate {
    background-color: var(--color-bg);
}

.section--gradient-green {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff;
}

.section--gradient-green h1,
.section--gradient-green h2,
.section--gradient-green h3,
.section--gradient-green p {
    color: #fff;
}

.section--gradient-blue {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #fff;
}

/* ===== Cards ===== */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

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

/* ===== Forms ===== */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

/* ===== Grids ===== */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

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

/* ===== Flex Utilities ===== */
.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

/* ===== Spacing Utilities ===== */
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

/* ===== Text Utilities ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-muted { color: var(--color-text-muted); }
.text-primary { color: var(--color-primary-dark); }
.text-success { color: var(--color-success); }
.text-white { color: #fff; }

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Display Utilities ===== */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }

/* ===== Border Utilities ===== */
.border { border: 1px solid var(--color-border); }
.border-t { border-top: 1px solid var(--color-border); }
.border-b { border-bottom: 1px solid var(--color-border); }
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }

/* ===== Background Utilities ===== */
.bg-white { background-color: var(--color-surface); }
.bg-slate { background-color: var(--color-bg); }
.bg-success { background-color: var(--color-success-bg); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-salary {
        text-align: left;
    }

    .salary-big {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav {
        display: none;
    }

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

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

    .sticky-cta {
        flex-direction: column;
        text-align: center;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 0.875rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
    }

    .hide-mobile {
        display: none !important;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

@media (min-width: 768px) {
    .md\:grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .md\:grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .hide-desktop {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .lg\:grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }

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

.flex-wrap {
    flex-wrap: wrap;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

.text-lg { font-size: 1.125rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

/* ===== Page Components ===== */

/* Error/Status Pages */
.page-status {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.status-code {
    font-size: 6rem;
    font-weight: 700;
    color: var(--color-border);
    line-height: 1;
}

.status-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Info/Success Cards */
.info-card {
    background: var(--color-bg);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.success-card {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.success-card h3 {
    color: #047857;
    margin-top: 0;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.check-list li {
    padding: 0.5rem 0;
}

/* Button Groups */
.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 1rem 2rem;
}

.btn-full {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

.btn-full:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.btn-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.btn-danger:hover {
    background: #fecaca;
}

/* ===== Forms ===== */
.form-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 2rem;
}

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

.form-group:last-of-type {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--pico-primary-focus);
}

/* ===== Alerts ===== */
.alert {
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
}

.alert-success strong {
    color: #047857;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
}

.alert-error strong {
    color: #dc2626;
}

.alert p {
    margin: 0.5rem 0 0 0;
}

/* ===== Account Cards ===== */
.account-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.account-card h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.account-label {
    font-size: 0.875rem;
    color: var(--color-muted);
}

.account-value {
    font-weight: 600;
}

.account-row {
    margin-bottom: 1rem;
}

.account-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ===== Pricing Cards ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pricing-card:hover,
.pricing-card.selected {
    border-color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.15);
}

.pricing-card.featured {
    border-color: var(--color-primary);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pricing-header h3 {
    margin: 0 0 0.5rem 0;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
}

.price-period {
    color: var(--color-muted);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.selected-company {
    background: #f0fdf4;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.selected-company label {
    display: block;
    font-size: 0.875rem;
    color: var(--color-muted);
    margin-bottom: 0.25rem;
}

.company-search-wrapper {
    margin-bottom: 1rem;
}

.company-search-wrapper label {
    font-size: 0.875rem;
    color: var(--color-muted);
}

/* ===== Trust Signals Box ===== */
.trust-box {
    padding: 2rem;
    background: var(--color-bg);
    border-radius: 1rem;
    text-align: center;
}

.trust-icons {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

/* ===== Divider ===== */
.divider {
    text-align: center;
    margin: 1.5rem 0;
    color: var(--color-muted);
}

/* Additional Spacing */
.pt-4 { padding-top: 2rem; }
.pt-6 { padding-top: 3rem; }
.pb-0 { padding-bottom: 0; }
.pb-8 { padding-bottom: 2rem; }
.pb-12 { padding-bottom: 3rem; }

.mb-neg-1 { margin-bottom: -1rem; }

/* Search Icon (absolute positioned) */
.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: #9ca3af;
}

/* Icon sizes */
.icon-sm {
    width: 1.25rem;
    height: 1.25rem;
}

/* Content layout helpers */
.content-auto {
    contain: layout;
    content-visibility: auto;
}

/* ===== Tailwind-equivalent Utilities ===== */

/* Background colors */
.bg-white { background-color: #fff; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-blue-600 { background-color: #2563eb; }

/* Text colors */
.text-white { color: #fff; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-green-600 { color: #059669; }
.text-green-800 { color: #166534; }
.text-blue-600 { color: #2563eb; }

/* Font sizes */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

/* Font weight */
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Flexbox */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

/* Grid */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Gap */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

/* Spacing - Margin */
.ml-4 { margin-left: 1rem; }
.mr-2 { margin-right: 0.5rem; }

/* Spacing - Padding */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

/* Border */
.border { border: 1px solid var(--color-border); }
.border-green-200 { border-color: #bbf7d0; }
.border-blue-300 { border-color: #93c5fd; }
.rounded-lg { border-radius: 0.5rem; }

/* Shadow */
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }

/* Text utilities */
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.min-w-0 { min-width: 0; }

/* Width/Height */
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }

/* Transitions */
.transition-all { transition: all 0.15s ease; }
.transition-colors { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }

/* Hover states */
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.hover\:border-blue-300:hover { border-color: #93c5fd; }
.hover\:bg-blue-50:hover { background-color: #eff6ff; }
.hover\:bg-blue-100:hover { background-color: #dbeafe; }
.hover\:text-blue-600:hover { color: #2563eb; }
.group:hover .group-hover\:text-blue-600 { color: #2563eb; }

/* Responsive */
@media (min-width: 768px) {
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\:grid-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
    .md\:pt-10 { padding-top: 2.5rem; }
    .md\:pb-0 { padding-bottom: 0; }
}

@media (min-width: 1024px) {
    .lg\:grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
    .xl\:grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Space between children */
.space-y-4 > * + * { margin-top: 1rem; }

/* ===== Chips/Pills ===== */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.15s ease;
}

.chip:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: var(--color-primary);
    text-decoration: none;
}

/* ===== Card Links ===== */
.card-link {
    display: block;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

.card-link:hover {
    box-shadow: var(--shadow-md);
    border-color: #93c5fd;
    text-decoration: none;
}

/* ===== Comparison Cards ===== */
.comparison-card {
    display: block;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s ease;
}

.comparison-card:hover {
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.vs-badge {
    background: #f0fdf4;
    color: #047857;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ===== Grid Auto-fill ===== */
.grid-auto-fill {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ===== Additional Margin Utilities ===== */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ===== Additional Text Utilities ===== */
.text-green-700 { color: #047857; }
.text-gray-400 { color: #9ca3af; }

/* ===== Display Utilities ===== */
.inline { display: inline; }

/* ===== Summary/Details Utilities ===== */
.cursor-pointer { cursor: pointer; }
.list-none { list-style: none; }

/* ===== Transform Utilities ===== */
.transition-transform { transition: transform 0.2s ease; }
.group-open\:rotate-90 { /* Applied via group */ }
details.group[open] .group-open\:rotate-90,
.group[open] .group-open\:rotate-90 { transform: rotate(90deg); }

/* ===== Text Box (centered content) ===== */
.text-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* ===== CTA Overlay ===== */
.cta-overlay {
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 50%);
    margin-top: -80px;
    position: relative;
    padding-top: 100px;
    text-align: center;
}

.cta-box {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== Additional Negative Margins ===== */
.mb-neg-half { margin-bottom: -0.5rem; }

/* ===== Additional Gap Utilities ===== */
.gap-6 { gap: 1.5rem; }

/* ===== Additional Hover States ===== */
.hover\:border-green-300:hover { border-color: #86efac; }

/* ===== Summary Boxes ===== */
.summary-box-green {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* ===== Info Notes ===== */
.info-note {
    background: #eff6ff;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: #1e40af;
}

.info-box-blue {
    background: #eff6ff;
    padding: 1.5rem;
    border-radius: 1rem;
}

/* ===== Compare Page ===== */
.compare-company-box {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 1rem;
}

/* ===== Additional Margins ===== */
.ml-2 { margin-left: 0.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.25rem; }

/* ===== Text Decoration ===== */
.underline { text-decoration: underline; }
.hover\:underline:hover { text-decoration: underline; }

/* ===== Font Family ===== */
.font-mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace; }

/* ===== User Select ===== */
.select-none { user-select: none; }

/* ===== Divide (border between children) ===== */
.divide-y > * + * { border-top: 1px solid var(--color-border); }
.divide-gray-200 > * + * { border-color: #e5e7eb; }

/* ===== Performance Optimization ===== */
.content-auto {
    contain: layout;
    content-visibility: auto;
    contain-intrinsic-size: auto 200px;
}

/* ===== Company Row ===== */
.company-row {
    display: block;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
}

.company-row:hover {
    border-color: #93c5fd;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

/* ===== Related Role Link ===== */
.related-role-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.15s ease;
}

.related-role-link:hover {
    border-color: #93c5fd;
    text-decoration: none;
}

/* ===== Location Card ===== */
.location-card {
    display: block;
    text-align: left;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.15s ease;
}

.location-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #93c5fd;
    text-decoration: none;
}

/* ===== FAQ Styles ===== */
.faq-container {
    max-width: 800px;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

.faq-question {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq-answer {
    margin-top: 1rem;
    color: #6b7280;
}

/* ===== CTA Overlay Variant ===== */
.cta-overlay-tall {
    margin-top: -100px;
    padding-top: 120px;
}

/* ===== Badge Success ===== */
.badge-success {
    background: #dcfce7;
    color: #047857;
}

/* ===== Additional Margins ===== */
.mt-6 { margin-top: 1.5rem; }

/* ===== Flex Utilities ===== */
.flex-col { flex-direction: column; }

/* ===== Quick Links ===== */
.quick-link {
    display: block;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--color-primary-dark);
    font-weight: 500;
    transition: all 0.15s ease;
}

.quick-link:hover {
    background: #f0fdf4;
    border-color: #86efac;
    text-decoration: none;
}

/* ===== Homepage Specific ===== */
.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-title-accent {
    color: #10b981;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto 1rem;
    opacity: 0.9;
}

.hero-subtitle-sm {
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.75;
}

.max-w-800 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.max-w-700 {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.max-w-600 {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.max-w-500 {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Feature Cards ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-icon--green {
    background: #dcfce7;
}

.feature-icon--blue {
    background: #dbeafe;
}

.feature-icon--amber {
    background: #fef3c7;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-icon--green svg {
    color: #047857;
}

.feature-icon--blue svg {
    color: #1e40af;
}

.feature-icon--amber svg {
    color: #d97706;
}

/* ===== List Cards ===== */
.list-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.list-card-grid-sm {
    gap: 1rem;
}

.list-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.list-card-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.list-card-meta {
    font-size: 0.875rem;
    color: #6b7280;
}

.list-card-meta-sm {
    font-size: 0.75rem;
    color: #6b7280;
}

.text-right {
    text-align: right;
}

/* ===== Position Card ===== */
.position-card {
    text-align: left;
}

.position-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1f2937;
}

.position-company {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.position-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.position-filings {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* ===== VS Comparison Card ===== */
.vs-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
}

.vs-card-company {
    font-weight: 600;
}

/* ===== FAQ Item (Homepage) ===== */
.faq-item-home {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1.5rem;
}

.faq-item-home h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.faq-item-home p {
    margin: 0;
}

/* ===== Section Gradient Backgrounds ===== */
.section-gradient-blue {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.section-gradient-green {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.section-gradient-blue,
.section-gradient-green {
    color: #fff;
}

.section-gradient-blue h2,
.section-gradient-green h2 {
    color: #fff;
}

.section-gradient-blue p,
.section-gradient-green p {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== Gradient CTA Button ===== */
.btn-white-blue {
    background: #fff;
    color: #1e40af;
    font-weight: 600;
    padding: 0.875rem 2rem;
}

.btn-white-green {
    background: #fff;
    color: #047857;
}

/* ===== Additional Opacity ===== */
.opacity-90 {
    opacity: 0.9;
}

.opacity-75 {
    opacity: 0.75;
}

/* ===== Methodology Page ===== */
.methodology-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.methodology-table th,
.methodology-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #1f2937;
}

.methodology-table thead th {
    padding: 1rem;
    text-align: center;
    border-bottom: 2px solid #e5e7eb;
    background: #f3f4f6;
}

.methodology-table thead th:first-child {
    text-align: left;
}

.methodology-table .highlight-col {
    background: #dcfce7;
    color: #047857;
}

.methodology-table tbody .highlight-col {
    background: #f0fdf4;
}

.methodology-table tbody td {
    text-align: center;
}

.methodology-table tbody td:first-child {
    text-align: left;
}

.callout-green {
    background: #f0fdf4;
    border-left: 4px solid #059669;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

.callout-green strong {
    color: #047857;
}

.callout-green p {
    margin: 0.5rem 0 0 0;
}

.content-list {
    margin-left: 1.5rem;
}

.img-rounded-shadow {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-intro {
    font-size: 1.25rem;
    color: #6b7280;
}

.methodology-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.methodology-main {
    flex: 1;
    min-width: 0;
}

.methodology-sidebar {
    width: 40%;
    flex-shrink: 0;
    position: sticky;
    top: 2rem;
}

.methodology-layout h2,
.methodology-layout h3,
.methodology-layout p,
.methodology-layout li,
.methodology-layout td,
.methodology-layout th {
    color: #1f2937;
}

.methodology-layout a {
    color: #047857;
}

@media (max-width: 900px) {
    .methodology-layout {
        display: block;
    }
    .methodology-sidebar {
        display: none;
    }
}

.overflow-x-auto {
    overflow-x: auto;
}

/* ===== Legal Pages (Terms, Privacy) ===== */
.legal-hero {
    padding: 2rem 0;
}

.legal-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
}

.legal-date {
    color: #6b7280;
}

.legal-content {
    padding: 3rem 0;
}

.legal-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.legal-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.legal-text {
    color: #374151;
    margin-bottom: 1.5rem;
}

.legal-text-intro {
    color: #374151;
    margin-bottom: 0.5rem;
}

.legal-list {
    color: #374151;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-list li {
    margin-bottom: 0.25rem;
}

.legal-subsection-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.legal-list-spaced {
    color: #374151;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

/* ===== Value Score Badges ===== */
.value-badge {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-weight: 600;
    margin: 0 0.25rem;
}

.value-badge-lg {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.value-badge--good {
    background: #dcfce7;
    color: #166534;
}

.value-badge--moderate {
    background: #fef9c3;
    color: #854d0e;
}

.value-badge--expensive {
    background: #fee2e2;
    color: #991b1b;
}

/* ===== Copy Tooltip ===== */
.copy-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    white-space: nowrap;
    margin-bottom: 0.25rem;
}

/* ===== Calculator Page ===== */
.calculator-cta {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* ===== Share Buttons ===== */
.share-btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    color: #6b7280;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
}

.share-btn-social:hover {
    background-color: #f3f4f6;
    color: #374151;
    text-decoration: none;
}

.share-btn-social svg {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
}

/* ===== HTMX Indicators ===== */
.htmx-indicator {
    display: none;
}
.htmx-request .htmx-indicator {
    display: inline;
}
.htmx-request .htmx-hide-on-request {
    display: none;
}
.htmx-request {
    opacity: 0.7;
    pointer-events: none;
}
