/* Shared styles for the SEO calculator pages. Plain CSS, no build step,
   loaded directly via asset() — matches the marketing site's existing
   CDN/inline-style convention (no Vite/Tailwind pipeline in use here). */

.cm-budget-bar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cm-budget-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.cm-budget-row.cm-budget-target {
    border-color: rgba(21, 128, 61, 0.35);
    background: rgba(21, 128, 61, 0.06);
}

.cm-budget-operator {
    text-align: center;
    font-weight: 700;
    color: var(--cm-orange-deep, #c2410c);
    font-size: 1.1rem;
}

.cm-timeline-track {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
}

.cm-timeline-step {
    flex: 1 1 140px;
    text-align: center;
    padding: 1rem 0.5rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.cm-timeline-step.cm-timeline-goal {
    border-color: rgba(21, 128, 61, 0.35);
    background: rgba(21, 128, 61, 0.06);
}

.cm-timeline-step .cm-timeline-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.cm-timeline-step .cm-timeline-value {
    font-weight: 700;
    font-size: 1.05rem;
    margin-top: 0.25rem;
}

.cm-meal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: #fff;
}

.cm-meal-item + .cm-meal-item {
    margin-top: 0.5rem;
}

.cm-search-results {
    position: relative;
}

.cm-search-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    background: #fff;
}

.cm-search-results-list li {
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    cursor: pointer;
}

.cm-search-results-list li:last-child {
    border-bottom: none;
}

.cm-search-results-list li:hover,
.cm-search-results-list li:focus,
.cm-search-results-list li.cm-active {
    background: rgba(249, 115, 22, 0.08);
    outline: none;
}

/* Reserve space so the sticky mobile CTA never overlaps page content. */
.cm-has-sticky-cta {
    padding-bottom: 4.5rem;
}

@media (min-width: 992px) {
    .cm-has-sticky-cta {
        padding-bottom: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cm-timeline-step,
    .cm-budget-row,
    .cm-meal-item {
        transition: none !important;
    }
}
