/* Overrides and component polish for the redesigned Carmelo layout */

body a,
body button,
body input {
    transition: all .22s ease;
}

.cec-menu-toggle:hover,
.cec-search-button:hover,
.cec-action-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(8, 17, 34, 0.22);
}

.cec-book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 44px rgba(0,0,0,0.16);
}

.cec-book-card,
.cec-menu-item,
.cec-search-button,
.cec-action-button,
.cec-menu-toggle {
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}

.cec-menu-item:hover {
    background: #f3f6fa;
    transform: translateX(2px);
}

.cec-search-input:focus {
    color: #102943;
}

.cec-search-box:focus-within {
    box-shadow: inset 0 0 0 2px rgba(20, 59, 101, 0.18), 0 0 0 4px rgba(212, 168, 90, 0.14);
}

.cec-advanced-link:hover,
.cec-recent-toggle:hover,
.cec-link-pill:hover {
    opacity: 0.9;
}

.cec-main-card h2,
.cec-side-card h2,
.cec-main-card h3,
.cec-side-card h3,
.cec-info-card h2,
.cec-info-card h3 {
    color: #fff;
}

.cec-info-card {
    min-height: 100%;
}

.cec-info-card p:last-child,
.cec-side-card p:last-child {
    margin-bottom: 0;
}

.cec-detail-table tr:last-child th,
.cec-detail-table tr:last-child td,
.cec-data-table tr:last-child td {
    border-bottom: 0;
}

.cec-rich-text ul,
.cec-rich-text ol {
    margin-top: 10px;
    margin-bottom: 10px;
    padding-left: 22px;
}

.cec-rich-text a {
    color: #fff8d6;
}
