/*
Theme Name: Food26
Description: Theme for food creators: recipes, cook-along videos, restaurant reviews and a store, built with Elementor and the Inoforest Core and Food26 Core plugins.
Author: Inoforest
Version: 1.4.8
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: food26
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================================================
   Design tokens
   Kirki (via the functionality plugin) may override --primary-color and
   --secondary-color on :root; the fallbacks below keep the theme cohesive
   on its own.
   ========================================================================= */
:root {
    --primary-color: #007cba;
    --secondary-color: #666666;

    --cp-primary: var(--primary-color, #007cba);
    --cp-primary-hover: #006ba3;
    --cp-primary-dark: #005a8c;

    --cp-text: #1f2933;
    --cp-text-muted: #5a6573;
    --cp-heading: #14202b;

    --cp-bg: #ffffff;
    --cp-bg-subtle: #f6f8fa;
    --cp-bg-accent: #f0f7fc;

    --cp-border: #e6eaef;
    --cp-border-strong: #d0d7de;

    --cp-radius: 12px;
    --cp-radius-sm: 8px;
    --cp-shadow-sm: 0 2px 12px rgba(15, 23, 42, 0.05);
    --cp-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);

    --cp-container: 1200px;
    --cp-content: 760px;

    --cp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Reset and base styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

/* A modal dialog keeps the browser's own centring (margin: auto), which the reset above would remove. */
dialog {
    margin: auto;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--cp-font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--cp-text);
    background: var(--cp-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Phones: body text at most 1rem, as in the design (1.0625rem above 767 px). `html body` wins over the Design System's
   body rule, which loads after this file; a smaller body size set in the Customizer still applies. */
@media (max-width: 767px) {
    html body {
        font-size: min(var(--inoforest-font-body-size, 1rem), 1rem);
    }
}

h1, h2, h3, h4, h5, h6 {
    color: var(--cp-heading);
    line-height: 1.25;
    font-weight: 700;
}

a {
    color: var(--cp-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--cp-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* Icons without a size of their own (Elementor's saved copy of a page, shown while Elementor is off) stay the size of
   the text instead of filling the column. Only without Elementor (no .elementor-default on <body>), and with zero
   specificity, so any widget's own icon rule wins. */
:where(body:not(.elementor-default) .entry-content) svg:where(:not([width])) {
    width: 1em;
    height: 1em;
}

.container {
    max-width: var(--cp-container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Accessibility helpers */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    word-wrap: normal !important;
}

/* Clip the hidden link at the inline start so RTL pages never gain off-screen overflow. */
.skip-link {
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 1.25rem;
    background: var(--cp-primary);
    color: #fff;
    border-end-end-radius: var(--cp-radius-sm);
}

.skip-link:focus {
    inset-inline-start: 0;
    clip: auto;
    clip-path: none;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    color: #fff;
}

.food26-back-to-top {
    position: fixed;
    inset-block-end: 26px;
    inset-inline-end: 26px;
    z-index: 40;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #fff;
    background: var(--inoforest-color-primary, #b23a1e);
    border-radius: 50%;
    box-shadow: 0 5px 16px rgba(34, 21, 15, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.food26-back-to-top.is-visible,
.food26-back-to-top:focus {
    opacity: 1;
    visibility: visible;
}

.food26-back-to-top:is(:hover, :focus-visible) {
    color: #fff;
    background: var(--inoforest-custom-primary-dark, #8e2c15);
}

.food26-back-to-top:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -5px;
}

#page[tabindex="-1"]:focus {
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    .food26-back-to-top {
        transition: none;
    }
}

@media print {
    .food26-back-to-top {
        display: none;
    }
}

/* Right-to-left languages: arrows and chevrons that mean "forward" or "back" point the other way. The scale property
   leaves the icons' own transform (hover nudges) working. */
[dir="rtl"] :is(
    .e-fas-arrow-right, .e-fas-arrow-left, .e-fas-long-arrow-alt-right, .e-fas-long-arrow-alt-left,
    .e-fas-chevron-right, .e-fas-chevron-left, .e-fas-angle-right, .e-fas-angle-left,
    .e-fas-caret-right, .e-fas-caret-left, .e-fas-arrow-circle-right, .e-fas-arrow-circle-left,
    .fa-arrow-right, .fa-arrow-left, .fa-chevron-right, .fa-chevron-left, .fa-angle-right, .fa-angle-left
) {
    scale: -1 1;
}

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
    background: var(--cp-bg);
    border-bottom: 1px solid var(--cp-border);
    box-shadow: var(--cp-shadow-sm);
    position: relative;
    z-index: 100;
}

/* An Elementor header template brings its own design: neither the wrapper nor a row in the template that uses the
   class site-header (as the HTML design does) gets the theme's background, line or shadow. The template's own
   settings still apply (Elementor's selectors are more specific). */
.site-header--builder,
.site-header--builder .site-header {
    background: none;
    border-bottom: 0;
    box-shadow: none;
}

.site-header .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.site-branding {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.site-branding .custom-logo-link img {
    display: block;
    max-height: 56px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    color: var(--cp-heading);
}

.site-title a:hover {
    color: var(--cp-primary);
}

.site-description {
    color: var(--cp-text-muted);
    font-size: 0.9375rem;
    margin: 0.15rem 0 0;
}

/* =========================================================================
   Primary navigation
   ========================================================================= */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 0.55rem 0.9rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--cp-text);
    border-radius: var(--cp-radius-sm);
    transition: color 0.2s ease, background 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: var(--cp-primary);
    background: var(--cp-bg-accent);
}

/* Sub-menus */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-width: 220px;
    padding: 0.4rem;
    background: var(--cp-bg);
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius-sm);
    box-shadow: var(--cp-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 200;
}

.main-navigation li:hover > ul,
.main-navigation li.focus > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul ul a {
    padding: 0.5rem 0.75rem;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cp-text);
    background: var(--cp-bg-subtle);
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius-sm);
    cursor: pointer;
}

.menu-toggle:hover {
    border-color: var(--cp-primary);
    color: var(--cp-primary);
}

/* Header cart icon */
.header-cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--cp-text);
}

.header-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    margin-left: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: var(--cp-primary);
    border-radius: 999px;
}

/* =========================================================================
   Main content layout
   ========================================================================= */
.site-main {
    padding: 2.5rem 0;
    /* Full-width blocks (alignfull) span 100vw; clip the scrollbar's width instead of scrolling sideways. */
    overflow-x: clip;
}

/* A Theme Builder template in the main area (the error page) brings its own sections and spacing. */
.site-main.site-main--template {
    padding: 0;
}

.site-main > .container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--cp-border);
}

.page-title {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    margin: 0;
}

.archive-description {
    margin-top: 0.75rem;
    color: var(--cp-text-muted);
}

/* =========================================================================
   Buttons & form controls (base)
   ========================================================================= */
button,
input[type="submit"],
.wp-block-button__link {
    font-family: inherit;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    max-width: 100%;
    padding: 0.6rem 0.85rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--cp-text);
    background: var(--cp-bg-subtle);
    border: 1px solid var(--cp-border-strong);
    border-radius: var(--cp-radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--cp-primary);
    background: var(--cp-bg);
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.18);
}

/* =========================================================================
   Sidebar / widgets: the classic widget area (sidebar.php); the blog's sidebar is styled
   with Elementor's Sidebar widget below.
   ========================================================================= */
.widget-area {
    display: grid;
    gap: 1.5rem;
}

.widget-area .widget {
    padding: 1.25rem 1.35rem;
    background: var(--cp-bg);
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius);
    box-shadow: var(--cp-shadow-sm);
}

.widget-area .widget-title {
    font-size: 1.05rem;
    margin: 0 0 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid var(--cp-primary);
}

.widget-area .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget-area .widget ul li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--cp-border);
}

.widget-area .widget ul li:last-child {
    border-bottom: none;
}

.widget-area .widget a {
    color: var(--cp-text);
}

.widget-area .widget a:hover {
    color: var(--cp-primary);
}

/* =========================================================================
   Default search form (used in widgets, no-results, etc.)
   ========================================================================= */
.search-form {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.search-form label {
    flex: 1 1 auto;
    min-width: 0;
}

.search-form .search-submit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 0.6rem 0.95rem;
    color: #fff;
    background: var(--cp-primary);
    border: none;
    border-radius: var(--cp-radius-sm);
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-form .search-submit:hover {
    background: var(--cp-primary-hover);
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
    margin-top: 3rem;
    padding: 2.5rem 0;
    background: #14202b;
    color: #c7d0d9;
}

/* An Elementor footer template brings its own design: the wrapper adds nothing. On the theme's own templates
   (archives, search, posts, plain pages) it leaves 120px above the footer, so a band that overlaps upwards
   (e.g. the Newsletter widget, -95px) never covers content. Elementor Full Width pages, posts shown through an
   Inoforest Core single template, the default page template and an Error Page template end with their own section
   padding, as in the design (whose footer never overlaps). */
.site-footer--builder {
    margin-top: 0;
    padding: 120px 0 0;
    color: inherit;
    background: none;
}

.page-template-elementor_header_footer .site-footer--builder,
body:has(#inoforest-custom-single) .site-footer--builder,
body:has(.site-main.food26-page) .site-footer--builder,
body:has(.site-main--template) .site-footer--builder {
    padding-top: 0;
}

.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-footer a {
    color: #fff;
}

.site-footer a:hover {
    color: var(--cp-primary);
    text-decoration: underline;
}

.site-footer .widget {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    color: inherit;
}

.site-footer .widget-title {
    color: #fff;
}

.site-info {
    font-size: 0.9rem;
    color: #9aa7b2;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header .container {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: inline-flex;
    }

    /* The button sits beside the logo; the open menu drops below the header, across its width. */
    .site-header .container {
        position: relative;
    }

    /* wp_nav_menu() and the page-list fallback both wrap the list in a <div>. */
    .main-navigation > div > ul,
    .main-navigation > ul {
        position: absolute;
        top: 100%;
        right: 16px;
        left: 16px;
        z-index: 300;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 70vh;
        overflow-y: auto;
        padding: 0.4rem;
        background: var(--cp-bg);
        border: 1px solid var(--cp-border);
        border-radius: var(--cp-radius-sm);
        box-shadow: var(--cp-shadow);
    }

    .main-navigation.toggled > div > ul,
    .main-navigation.toggled > ul {
        display: flex;
    }

    .main-navigation ul ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 0.75rem;
        min-width: 0;
    }

    .container {
        padding: 0 16px; /* the design's 16px phone gutter */
    }
}

/* =========================================================================
   Sidebars: WordPress widgets shown by Elementor's Sidebar widget
   (the Recipe Single template's Recipe Sidebar, the blog templates' Sidebar;
   html/recipe.html and html/blog.html, design section 39).
   Scoped to .elementor-widget-sidebar and the theme's own post and list templates' sidebar (.layout-sidebar__aside,
   the same Blog Sidebar) so other widget areas keep the styles above. Covers the widgets an owner adds in Appearance → Widgets: a Card
   group (photo, heading, text, button), search, categories or a recipe
   course list, latest posts, the tag cloud, and their classic equivalents.
   Food26 Popular Recipes brings its own stylesheet (food26-core).
   ========================================================================= */
:is(.elementor-widget-sidebar, .layout-sidebar__aside) {
    --food26s-primary: var(--inoforest-color-primary, #b23a1e);
    --food26s-primary-dark: var(--inoforest-custom-primary-dark, #8e2c15);
    --food26s-heading: var(--inoforest-color-heading, #2b1a12);
    --food26s-text: var(--inoforest-color-text, #56463d);
    --food26s-muted: var(--inoforest-custom-muted, #6e5f55);
    --food26s-border: var(--inoforest-color-border, #ece2d6);
    --food26s-soft: var(--inoforest-color-surface, #faf4ec);
}

:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget {
    margin: 0;
    padding: 28px;
    background: var(--food26s-soft);
    border: 0;
    border-radius: 26px;
    box-shadow: none;
}

:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget + .widget {
    margin-top: 30px;
}

:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget .wp-block-group,
:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget .wp-block-group__inner-container > :first-child {
    margin-top: 0;
}

/* Classic themes wrap a group's blocks in .wp-block-group__inner-container; the next rules allow for both. */
:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget .wp-block-group__inner-container > * + *,
:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget .wp-block-group > * + * {
    margin-block-start: 0;
}

:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget-title,
:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget > .wp-block-heading:first-child,
:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget > .wp-block-group > .wp-block-heading:first-child,
:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget > .wp-block-group > .wp-block-group__inner-container > .wp-block-heading:first-child {
    margin: 0 0 18px;
    padding: 0;
    font-family: var(--inoforest-font-heading-family, inherit);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--food26s-heading);
    border: 0;
}

:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget ul li {
    padding: 0;
    border: 0;
}

/* Card group: the author's photo in a ring, the name, a line, a button (centred) */
:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget .wp-block-group.is-style-card {
    margin: 0;
    padding: 0;
    text-align: center;
    background: none;
    border-radius: 0;
}

/* Elementor sets every figure's margin to 0 with four classes; the design's photo keeps the browser's 1em. */
:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget .wp-block-group.is-style-card figure.wp-block-image {
    margin: 1em 0;
}

:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget .is-style-card .wp-block-image img {
    display: block;
    width: 130px;
    height: 130px;
    margin: 0 auto 16px;
    object-fit: cover;
    border: 6px solid #fff;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(43, 26, 18, 0.08);
}

:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget .is-style-card .wp-block-heading {
    margin: 0 0 6px;
    font-size: 1.4rem;
}

:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget .is-style-card p {
    margin: 0 0 1.2em;
}

:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget .wp-block-buttons {
    display: flex;
    justify-content: center;
    margin-top: 6px;
}

:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget .wp-block-button__link {
    display: inline-flex;
    padding: 11px 24px;
    font-size: 0.925rem;
    font-weight: 700;
    line-height: 1.7;
    color: #fff;
    background: var(--food26s-primary);
    border: 0;
    border-radius: 999px;
    transition: background-color 0.3s;
}

:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget .wp-block-button__link:hover,
:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget .wp-block-button__link:focus-visible {
    color: #fff;
    background: var(--food26s-primary-dark);
}

/* Search (block and classic): a white pill with the round button inside */
:is(.elementor-widget-sidebar, .layout-sidebar__aside) .wp-block-search__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

:is(.elementor-widget-sidebar, .layout-sidebar__aside) .wp-block-search__inside-wrapper,
:is(.elementor-widget-sidebar, .layout-sidebar__aside) .search-form {
    position: relative;
    display: block;
    padding: 0;
    border: 0;
}

:is(.elementor-widget-sidebar, .layout-sidebar__aside) .wp-block-search__input,
:is(.elementor-widget-sidebar, .layout-sidebar__aside) .search-form .search-field {
    width: 100%;
    height: 56px;
    margin: 0;
    padding: 0 60px 0 20px;
    padding-inline: 20px 60px;
    font: inherit;
    color: var(--food26s-heading);
    background: #fff;
    border: 1px solid transparent;
    border-radius: 999px;
    outline: 0;
    transition: border-color 0.3s;
}

:is(.elementor-widget-sidebar, .layout-sidebar__aside) .wp-block-search__input:focus,
:is(.elementor-widget-sidebar, .layout-sidebar__aside) .search-form .search-field:focus {
    border-color: var(--food26s-primary);
}

:is(.elementor-widget-sidebar, .layout-sidebar__aside) .wp-block-search__button,
:is(.elementor-widget-sidebar, .layout-sidebar__aside) .search-form .search-submit {
    position: absolute;
    top: 6px;
    inset-inline-end: 6px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-size: 18px;
    color: #fff;
    background: var(--food26s-primary);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

:is(.elementor-widget-sidebar, .layout-sidebar__aside) .wp-block-search__button:hover,
:is(.elementor-widget-sidebar, .layout-sidebar__aside) .wp-block-search__button:focus-visible,
:is(.elementor-widget-sidebar, .layout-sidebar__aside) .search-form .search-submit:hover {
    background: var(--food26s-primary-dark);
}

:is(.elementor-widget-sidebar, .layout-sidebar__aside) .wp-block-search__button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Categories and course lists: name left, count right, dashed lines between */
:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget .wp-block-categories-list li,
:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget.widget_categories li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-block: 9px;
    border-bottom: 1px dashed var(--food26s-border);
}

:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget .wp-block-categories-list li:last-child,
:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget.widget_categories li:last-child {
    border-bottom: 0;
}

:is(.elementor-widget-sidebar, .layout-sidebar__aside) .wp-block-categories-list a,
:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget_categories a {
    font-weight: 600;
    color: var(--food26s-heading);
    transition: color 0.3s;
}

:is(.elementor-widget-sidebar, .layout-sidebar__aside) .wp-block-categories-list a:hover,
:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget_categories a:hover {
    color: var(--food26s-primary);
}

:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget .count {
    font-size: 0.85rem;
    color: var(--food26s-muted);
}

/* Latest posts (block and classic): the title in the heading font, the date below */
:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget .wp-block-latest-posts__list li,
:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget.widget_recent_entries li {
    padding-block: 10px;
    border-bottom: 1px dashed var(--food26s-border);
}

:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget .wp-block-latest-posts__list li:last-child,
:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget.widget_recent_entries li:last-child {
    border-bottom: 0;
}

:is(.elementor-widget-sidebar, .layout-sidebar__aside) .wp-block-latest-posts__featured-image {
    float: none;
    margin: 0 0 10px;
}

:is(.elementor-widget-sidebar, .layout-sidebar__aside) .wp-block-latest-posts__featured-image img {
    display: block;
    border-radius: 10px;
}

:is(.elementor-widget-sidebar, .layout-sidebar__aside) .wp-block-latest-posts__post-title,
:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget_recent_entries a {
    display: block;
    font-family: var(--inoforest-font-heading-family, inherit);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--food26s-heading);
}

:is(.elementor-widget-sidebar, .layout-sidebar__aside) .wp-block-latest-posts__post-title:hover,
:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget_recent_entries a:hover {
    color: var(--food26s-primary);
}

:is(.elementor-widget-sidebar, .layout-sidebar__aside) .wp-block-latest-posts__post-date,
:is(.elementor-widget-sidebar, .layout-sidebar__aside) .widget_recent_entries .post-date {
    font-size: 0.8rem;
    color: var(--food26s-muted);
}

/* The design's date sits on the line under the title at the text's own line height (the block makes it a short block). */
:is(.elementor-widget-sidebar, .layout-sidebar__aside) .wp-block-latest-posts__post-date {
    display: inline;
}

/* Tag cloud: pills */
:is(.elementor-widget-sidebar, .layout-sidebar__aside) .wp-block-tag-cloud,
:is(.elementor-widget-sidebar, .layout-sidebar__aside) .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

:is(.elementor-widget-sidebar, .layout-sidebar__aside) .wp-block-tag-cloud a,
:is(.elementor-widget-sidebar, .layout-sidebar__aside) .tagcloud a {
    display: inline-flex;
    margin: 0;
    padding: 6px 14px;
    font-size: 0.85rem !important; /* The block prints an inline font size per tag. */
    font-weight: 600;
    line-height: 1.7;
    color: var(--food26s-heading);
    background: #fff;
    border: 1px solid var(--food26s-border);
    border-radius: 999px;
    transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}

:is(.elementor-widget-sidebar, .layout-sidebar__aside) .wp-block-tag-cloud a:hover,
:is(.elementor-widget-sidebar, .layout-sidebar__aside) .tagcloud a:hover {
    color: #fff;
    background: var(--food26s-primary);
    border-color: var(--food26s-primary);
}

/* =========================================================================
   Pages (page.php): banner, reading column, last-updated date
   Pages not built with Elementor (the disclosure, privacy and terms pages, WooCommerce pages), as the Food26 design's
   page.html: a photo banner (the featured image under the dark overlay, 420 px, 320 on phones) with a curved white
   edge, the title, the excerpt and the breadcrumb pill; then "Last updated" and the block content in an 860 px column.
   ========================================================================= */
.food26-page {
    --food26p-primary: var(--inoforest-color-primary, #b23a1e);
    --food26p-on-dark: var(--inoforest-custom-primary-on-dark, #f2a58c);
    --food26p-light: var(--inoforest-custom-primary-light, #fbeae4);
    --food26p-dark: var(--inoforest-custom-dark, #22150f);
    --food26p-muted: var(--inoforest-custom-muted, #6e5f55);
    --food26p-gutter: 24px;
    --food26p-section: 110px;
    padding: 0;
}

.food26-page .container {
    max-width: calc(1240px + var(--food26p-gutter) * 2);
    padding-inline: var(--food26p-gutter);
}

.food26-page-banner {
    position: relative;
    display: grid;
    align-items: center;
    min-height: 420px;
    padding: 90px 0;
    overflow: hidden;
    color: #fff;
    text-align: center;
    background: var(--food26p-dark);
}

.food26-page-banner__bg {
    position: absolute;
    inset: 0;
}

.food26-page-banner__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.food26-page-banner__bg::after {
    position: absolute;
    inset: 0;
    content: "";
    background: color-mix(in srgb, var(--food26p-dark) 70%, transparent);
}

/* The curved bottom edge: a white ellipse a little wider than the banner. */
/* The small banner (the design's data-f26-height="sm"): every store page. */
.food26-page-banner--sm {
    min-height: 320px;
}

.food26-page-banner::after {
    position: absolute;
    right: -5%;
    bottom: -1px;
    left: -5%;
    z-index: 2;
    height: 60px;
    content: "";
    background: #fff;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.food26-page-banner__inner {
    position: relative;
    z-index: 2;
}

.food26-page .food26-page-banner__title {
    margin: 0 0 14px;
    font-family: var(--inoforest-font-heading-family, inherit);
    font-size: clamp(2.5rem, 5.2vw, 4.3rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: #fff;
}

.food26-page-banner__text {
    max-width: 620px;
    margin: 0 auto 1.2em;
}

.food26-breadcrumb__list {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 10px 22px;
    font-weight: 600;
    list-style: none;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.food26-breadcrumb__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

/* The design's chevron (Remix arrow-right-s-line) as a mask, so it needs no icon font. */
.food26-breadcrumb__item + .food26-breadcrumb__item::before {
    width: 1em;
    height: 1em;
    content: "";
    background: var(--food26p-on-dark);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.172 12l-4.95-4.95 1.414-1.414L16 12l-6.364 6.364-1.414-1.414z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.172 12l-4.95-4.95 1.414-1.414L16 12l-6.364 6.364-1.414-1.414z'/%3E%3C/svg%3E") center / contain no-repeat;
}

[dir="rtl"] .food26-breadcrumb__item + .food26-breadcrumb__item::before {
    scale: -1 1;
}

.food26-breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.food26-breadcrumb a:hover,
.food26-breadcrumb a:focus-visible,
.food26-breadcrumb [aria-current] {
    color: var(--food26p-light);
}

.food26-page__section {
    padding: var(--food26p-section) 0;
}

.food26-page .food26-page-article {
    max-width: 860px;
    margin: 0 auto;
    padding: 0;
    border: 0;
}

/* The design's 1.6rem under the last block, before the section's own padding. */
.food26-page .food26-page-article .entry-content {
    margin-bottom: 1.6rem;
}

.food26-page-article__updated {
    margin: 0 0 30px;
    font-size: 0.9rem;
    color: var(--food26p-muted);
}

.food26-page-article .entry-footer {
    margin-top: 2rem;
    font-size: 0.875rem;
}

@media (max-width: 1199px) {
    .food26-page {
        --food26p-section: 90px;
    }
}

@media (max-width: 767px) {
    .food26-page {
        --food26p-gutter: 16px;
        --food26p-section: 70px;
    }

    .food26-page-banner {
        min-height: 320px;
        padding: 70px 0;
    }
}
