/* Small shell-specific refinements; shared colors and tokens live in coachfit-tokens.css. */
.cf-product .cf-topbar {
    min-height: 64px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
}

.cf-product .cf-top-actions > a,
.cf-product .cf-top-actions button {
    min-width: 44px;
    min-height: 44px;
    display: inline-grid;
    place-items: center;
    padding: 0 12px;
    border: 1px solid var(--cf-border);
    border-radius: var(--radius-md);
    background: var(--cf-surface-muted);
    color: var(--cf-text);
    text-decoration: none;
}

.cf-product .cf-top-actions button { cursor: pointer; }

.cf-product .cf-top-actions :is(a, button):hover {
    border-color: var(--cf-accent);
    color: var(--cf-accent);
}

.cf-product .cf-bottom-nav {
    min-height: var(--cf-primary-nav-height);
    padding-block: 6px max(6px, env(safe-area-inset-bottom));
    background: rgba(28, 38, 32, .96);
    border-color: var(--cf-border);
    backdrop-filter: blur(14px);
}

.cf-product .cf-bottom-nav a {
    color: var(--cf-text-secondary);
    transition: color .16s ease, background-color .16s ease;
}

.cf-product .cf-bottom-nav a.is-active,
.cf-product .cf-bottom-nav a[aria-current="page"] {
    color: var(--cf-accent);
    background: rgba(181, 246, 75, .09);
}

.cf-product .cf-bottom-nav .cf-nav-create svg {
    box-sizing: content-box;
    padding: 7px;
    border-radius: 14px;
    background: var(--cf-accent);
    color: var(--cf-on-accent);
}

.cf-product .cf-main { min-height: 55vh; }

/* Keep the five mobile destinations evenly distributed in RTL pages. */
@media (max-width: 1023px) {
    .cf-product .cf-bottom-nav {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        direction: ltr;
        justify-content: initial;
        align-items: stretch;
    }

    .cf-product .cf-bottom-nav > a {
        flex: none;
        width: 100%;
        min-width: 0;
        direction: rtl;
        text-align: center;
    }
}

@media (min-width: 1024px) {
    .cf-product .cf-bottom-nav { background: var(--cf-surface); }
    .cf-product .cf-bottom-nav a { min-height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
    .cf-product .cf-bottom-nav a { transition: none; }
}
