/* RecipeNexa Classic Food: isolated theme styles */
.cf-header {
    --cf-primary: #639b0b;
    --cf-primary-dark: #477606;
    --cf-primary-light: #e7f3cd;
    --cf-accent: #f2a12a;
    --cf-text: #273322;
    color: var(--cf-text);
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
}
.cf-header *, .cf-header *::before, .cf-header *::after { box-sizing: border-box; }
.cf-container { width: min(1170px, calc(100% - 32px)); margin: 0 auto; }
.cf-masthead {
    min-height: 145px;
    background: linear-gradient(110deg, #fff 0%, #fff 35%, #f9f6e9 58%, #f0e8c4 100%);
    overflow: hidden;
}
.cf-masthead-inner { display: flex; align-items: center; position: relative; min-height: 145px; gap: 20px; }
.cf-brand { z-index: 1; display: flex; flex-direction: column; color: var(--cf-primary-dark); text-decoration: none; max-width: 45%; }
.cf-brand img { max-width: 260px; max-height: 102px; object-fit: contain; object-position: left center; }
.cf-brand-title { font-size: clamp(25px, 3.6vw, 39px); font-weight: 800; letter-spacing: -.04em; }
.cf-brand-tagline { font-size: 13px; color: #777; letter-spacing: .03em; }
.cf-masthead-art { position: absolute; inset: 0 80px 0 36%; overflow: hidden; pointer-events: none; }
.cf-art-circle { position: absolute; border-radius: 50%; box-shadow: 0 10px 28px #0002; }
.cf-art-one { width: 170px; height: 170px; right: 27%; top: -48px; background: radial-gradient(circle at 36% 37%, #f6eaa9 0 13%, #e1ad45 14% 34%, #d27633 35% 56%, #a85528 57% 100%); }
.cf-art-two { width: 132px; height: 132px; right: 5%; bottom: -52px; background: radial-gradient(circle, #b7d778 0 15%, #4f922f 16% 49%, #2d642a 50% 100%); }
.cf-art-three { width: 95px; height: 95px; right: 44%; bottom: -30px; background: radial-gradient(circle, #f7c985, #c9502f); }
.cf-account { margin-left: auto; align-self: flex-start; display: flex; gap: 8px; z-index: 1; padding-top: 15px; }
.cf-account a { font-size: 12px; padding: 8px 12px; background: var(--cf-primary); color: #fff; text-decoration: none; border-radius: 3px; }
.cf-navigation { background: linear-gradient(to bottom, var(--cf-primary), var(--cf-primary-dark)); border-bottom: 3px solid var(--cf-accent); }
.cf-nav-inner { display: flex; flex-wrap: wrap; align-items: stretch; min-height: 49px; }
.cf-nav-inner a { display: inline-flex; align-items: center; padding: 12px 16px; text-decoration: none; color: #fff; font-size: 13px; font-weight: 700; border-right: 1px solid #ffffff2c; }
.cf-nav-inner a:hover, .cf-nav-inner a:focus-visible { background: #0002; color: #fff; }
.cf-nav-home { font-size: 23px !important; line-height: 1; }
.cf-nav-spacer { flex: 1; }
.cf-search-strip { border-bottom: 1px solid #ddd; background: #fafaf7; }
.cf-search-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 65px; }
.cf-search-label { color: #555; font-size: 15px; font-weight: 600; }
.cf-search-inner form { display: flex; flex: 0 1 440px; min-width: 0; }
.cf-search-inner input { flex: 1; min-width: 0; border: 1px solid #c9c9c9; padding: 10px 12px; background: #fff; font: inherit; }
.cf-search-inner button { border: 0; padding: 10px 20px; color: white; background: var(--cf-primary); cursor: pointer; font-weight: 700; }
.cf-header a:focus-visible, .cf-header input:focus-visible, .cf-header button:focus-visible { outline: 3px solid var(--cf-accent); outline-offset: 2px; }
.cf-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Accessible mobile navigation */
.cf-mobile-menu { display: none; }
.cf-mobile-menu summary { cursor: pointer; list-style: none; }
.cf-mobile-menu summary::-webkit-details-marker { display: none; }
.cf-mobile-menu-links { display: flex; flex-direction: column; }
.cf-mobile-menu-links a { display: block; color: #fff; text-decoration: none; padding: 13px 16px; border-top: 1px solid #ffffff35; }
.cf-mobile-menu-links a:hover,
.cf-mobile-menu-links a:focus-visible { background: #0002; }
.cf-mobile-menu summary:focus-visible,
.cf-mobile-menu-links a:focus-visible { outline: 3px solid var(--cf-accent); outline-offset: -3px; }

@media (max-width: 760px) {

    .cf-masthead-art { display: none; }
    .cf-masthead-inner { gap: 12px; }
    .cf-brand { max-width: 60%; min-width: 0; overflow-wrap: anywhere; }
    .cf-brand-title { font-size: clamp(22px, 5vw, 29px); }
    .cf-brand-tagline { font-size: 11px; line-height: 1.4; }
    .cf-account { max-width: 40%; align-items: flex-end; }
    .cf-nav-inner { display: none; }
    .cf-mobile-menu { display: block; }
    .cf-mobile-menu summary {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 48px;
        padding: 11px 16px;
        color: #fff;
        font-size: 14px;
        font-weight: 700;
    }
    .cf-menu-icon { font-size: 20px; line-height: 1; }

    .cf-masthead, .cf-masthead-inner { min-height: 105px; }
    .cf-brand { max-width: 64%; }
    .cf-brand img { max-width: 170px; max-height: 75px; }
    .cf-masthead-art { opacity: .35; inset-inline-start: 40%; }
    .cf-account { flex-wrap: wrap; justify-content: flex-end; }
    .cf-nav-inner a { padding: 11px 13px; }
    .cf-nav-spacer { display: none; }
    .cf-search-inner { flex-direction: column; align-items: stretch; padding-block: 14px; gap: 9px; }
    .cf-search-inner form { flex: auto; width: 100%; }
}
@media (max-width: 380px) {
    .cf-brand-title { font-size: 24px; }
    .cf-nav-inner a { font-size: 12px; padding: 10px; }
    .cf-account a { padding: 6px 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .cf-header *, .cf-header *::before, .cf-header *::after { animation: none !important; transition: none !important; }
}


/* Premium account placement: desktop navigation and mobile menu row */
.cf-nav-account {
    display: flex;
    align-items: stretch;
    margin-left: 8px;
}
.cf-nav-account a {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    background: #0002;
}
.cf-mobile-nav-row { display: none; }
.cf-mobile-nav-account { display: none; }

@media (max-width: 760px) {
    .cf-mobile-nav-row {
        display: block;
        position: relative;
        min-height: 49px;
    }
    .cf-mobile-nav-row .cf-mobile-menu {
        display: block;
        width: 100%;
        min-width: 0;
    }
    .cf-mobile-nav-row .cf-mobile-menu summary {
        padding-right: 132px;
    }
    .cf-mobile-nav-account {
        display: block;
        position: absolute;
        top: 5px;
        right: 0;
        z-index: 2;
        max-width: 126px;
    }
    .cf-mobile-nav-account a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 9px 13px;
        color: #fff;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
        background: #0002;
        border: 1px solid #ffffff40;
        border-radius: 4px;
    }
    .cf-mobile-nav-row .cf-mobile-menu[open] .cf-mobile-menu-links {
        width: 100%;
    }
    .cf-mobile-nav-account a {
        max-width: 126px;
        overflow-wrap: anywhere;
        text-align: center;
    }
}
