.liyla-site-footer {
    border-top: 2px solid #231b22;
    background: #1a1a1a;
    color: #fff;
    padding: 3rem 0;
    margin-top: 4rem;
    font-family: Inter, system-ui, -apple-system, sans-serif;
}
.liyla-site-footer a { color: inherit; text-decoration: none; }
.liyla-site-footer a:hover { color: #b54a32; }
.liyla-site-footer__inner,
.liyla-site-footer__bar {
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
@media (min-width: 768px) {
    .liyla-site-footer__inner,
    .liyla-site-footer__bar { padding-left: 2rem; padding-right: 2rem; }
}
.liyla-site-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
@media (min-width: 768px) {
    .liyla-site-footer__inner {
        flex-direction: row;
        justify-content: space-between;
        gap: 2rem;
    }
}
.liyla-site-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    align-self: center;
}
@media (min-width: 768px) {
    .liyla-site-footer__brand { width: 33.333%; align-self: auto; }
}
.liyla-site-footer__logo {
    height: 2.5rem;
    width: auto;
    transform: scale(3.8);
    transform-origin: left center;
    margin-left: -0.25rem;
}
@media (min-width: 768px) {
    .liyla-site-footer__logo { margin-left: -0.5rem; }
}
.liyla-site-footer__tagline {
    margin: 0;
    max-width: 20rem;
    font-size: 14px;
    line-height: 1.625;
    color: #888;
}
.liyla-site-footer__links {
    display: flex;
    gap: 5rem;
    font-size: 14px;
    font-weight: 700;
    margin-top: 1rem;
    justify-content: center;
}
@media (min-width: 768px) {
    .liyla-site-footer__links {
        gap: 8rem;
        margin-top: 0;
        justify-content: flex-start;
    }
}
.liyla-site-footer__col { display: flex; flex-direction: column; gap: 1rem; }
.liyla-site-footer__label {
    margin: 0;
    color: #888;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.1em;
    font-weight: 700;
}
.liyla-site-footer__bar {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #231b22;
    font-size: 13px;
    color: #888;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
@media (min-width: 768px) {
    .liyla-site-footer__bar { flex-direction: row; }
}
.liyla-site-footer__help { font-weight: 700; }

/* Header: exact liy.la navbar logo pattern (168×44 clip + scale 3.3) */
.site-header {
    --liyla-header-pad-y: 18px;
    --liyla-logo-h: 44px;
    --liyla-logo-w: 168px;
    --liyla-logo-scale: 3.3;
}

.hm-h-de .hm-header-inner-wrapper {
    padding-top: var(--liyla-header-pad-y) !important;
    padding-bottom: var(--liyla-header-pad-y) !important;
}

.hm-h-de .hm-header-inner,
.hm-h-lg .hm-header-inner,
.site-header .hm-header-inner {
    min-height: calc(var(--liyla-logo-h) + (var(--liyla-header-pad-y) * 2)) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    align-items: center !important;
    row-gap: 10px;
}

.site-header .hm-header-inner-left,
.site-header .site-branding-container,
.site-header .site-branding-container .site-logo {
    display: flex;
    align-items: center;
    align-self: center;
}

.site-header .site-branding-container .custom-logo-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: var(--liyla-logo-w);
    height: var(--liyla-logo-h);
    overflow: hidden;
    line-height: 0;
    flex-shrink: 0;
}

.site-header .site-branding-container .custom-logo,
.site-header .site-branding-container .custom-logo-link img,
.site-header .site-logo img {
    height: var(--liyla-logo-h) !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0;
    transform: scale(var(--liyla-logo-scale));
    transform-origin: left center;
    object-fit: contain;
    display: block;
}

@media (max-width: 767px) {
    .site-header {
        --liyla-header-pad-y: 12px;
        --liyla-logo-h: 44px;
        --liyla-logo-w: 132px;
        --liyla-logo-scale: 2.4;
    }
}

.hm-mobile-sidebar .site-branding-container .custom-logo-link,
.hm-slideout-sidebar .site-branding-container .custom-logo-link {
    display: flex;
    align-items: center;
    width: 132px;
    height: 44px;
    overflow: hidden;
}

.hm-mobile-sidebar .custom-logo,
.hm-slideout-sidebar .custom-logo {
    height: 44px !important;
    width: auto;
    max-width: none;
    max-height: none !important;
    transform: scale(2.4);
    transform-origin: left center;
    object-fit: contain;
}

.site-header .site-branding .site-title,
.hm-mobile-sidebar .site-title,
.hm-slideout-sidebar .site-title,
.hm-mobile-sb-logo .site-title {
    display: none !important;
}

/* Brand accent — replaces HybridMag default green (#65bc7b) */
:root {
    --hybridmag-color-primary: #ff8c69;
    --hybridmag-color-link-hover: #ff8c69;
    --hybridmag-color-button-background: #ff8c69;
}

/* Sidebar + header search */
#secondary .widget_search .wp-block-search,
.hm-search-box .search-form {
    --liyla-search-border: #e5e0d8;
    --liyla-search-focus: #ff8c69;
    font-family: Inter, system-ui, -apple-system, sans-serif;
}

#secondary .widget_search .wp-block-search__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#secondary .widget_search .wp-block-search__inside-wrapper,
.hm-search-box .search-form {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1.5px solid var(--liyla-search-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fffdf8;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#secondary .widget_search .wp-block-search__inside-wrapper:focus-within,
.hm-search-box .search-form:focus-within {
    border-color: var(--liyla-search-focus);
    box-shadow: 0 0 0 3px rgba(255, 140, 105, 0.18);
}

#secondary .widget_search .wp-block-search__input,
.hm-search-box .search-field {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 0 14px;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #231b22;
    font-size: 14px;
    line-height: 1.4;
}

#secondary .widget_search .wp-block-search__input::placeholder,
.hm-search-box .search-field::placeholder {
    color: #9a928a;
}

#secondary .widget_search .wp-block-search__input:focus,
.hm-search-box .search-field:focus {
    outline: none !important;
    box-shadow: none !important;
    border: 0 !important;
}

#secondary .widget_search .wp-block-search__button,
.hm-search-box .search-submit {
    flex: 0 0 auto;
    height: 44px;
    margin: 0;
    padding: 0 18px;
    border: 0;
    border-left: 1.5px solid var(--liyla-search-border);
    border-radius: 0;
    background: var(--liyla-search-focus) !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 44px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#secondary .widget_search .wp-block-search__button:hover,
#secondary .widget_search .wp-block-search__button:focus,
.hm-search-box .search-submit:hover,
.hm-search-box .search-submit:focus {
    background: #e67a58 !important;
    color: #fff !important;
}

.hm-search-box {
    border-radius: 12px;
    padding: 12px;
    border: 1.5px solid var(--liyla-search-border);
    box-shadow: 0 8px 24px rgba(35, 27, 34, 0.12) !important;
}

.hm-search-box label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hm-search-box .search-form label + .search-field,
.hm-search-box .search-form .search-field {
    order: 1;
}

.hm-search-box .search-form .search-submit {
    order: 2;
}

#secondary #block-4,
#secondary .widget_block:empty {
    display: none !important;
}

.liyla-post-cta .hm-author-image img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
}

.liyla-post-cta .hm-author-name a {
    color: inherit;
    text-decoration: none;
}

.liyla-post-cta .hm-author-name a:hover {
    color: var(--hybridmag-color-primary, #ff8c69);
}

.liyla-post-cta__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.liyla-post-cta__title {
    margin: 0 0 8px;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
    color: inherit;
}

.liyla-post-cta__desc {
    margin: 0 0 16px;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #5c5c5c;
}

.liyla-post-cta__btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    background: var(--hybridmag-color-primary, #ff8c69);
    color: #fff !important;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.liyla-post-cta__btn:hover,
.liyla-post-cta__btn:focus {
    background: #e67a58;
    color: #fff !important;
    transform: translateY(-1px);
}
