/* pakistanrecipes.com UI revamp (2026-10-25). Loaded after style.css; overrides only. */
:root {
    --pr-green: #0b6e3e;
    --pr-green-dark: #01411c;
    --pr-green-soft: #e9f4ee;
    --pr-saffron: #e8a23a;
    --pr-ink: #1f2a26;
    --pr-muted: #5f6b66;
    --pr-line: #e6ebe8;
    --pr-bg: #fafaf7;
    --pr-radius: 14px;
    --pr-shadow: 0 6px 24px rgba(20, 40, 30, .08);
}

body { color: var(--pr-ink); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { transition: color .15s ease; }

/* ---------- Header ---------- */
#header { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--pr-line); padding: 10px 0; backdrop-filter: saturate(160%) blur(6px); }
#logo { margin-top: 2px; }
#logo a img, #logo img { height: 70px; max-height: none; width: auto; display: block; }
#navigation ul li a { font-weight: 600; letter-spacing: .1px; }
.menu-categories li a .cat-name { display: inline !important; }

/* ---------- Buttons & chips ---------- */
.pr-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--pr-green); color: #fff !important; font-weight: 700; font-size: 14px; line-height: 1; border: 0; text-decoration: none !important; cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease; }
.pr-btn:hover { background: var(--pr-green-dark); transform: translateY(-1px); box-shadow: var(--pr-shadow); }
.pr-btn-ghost { background: #fff; color: var(--pr-green-dark) !important; border: 1.5px solid var(--pr-green); }
.pr-btn-ghost:hover { background: var(--pr-green-soft); }
.pr-btn-ghost.is-on { background: var(--pr-saffron); border-color: var(--pr-saffron); color: #fff !important; }
.pr-btn-wa { background: #1f9e55; }
.pr-btn-fb { background: #1877f2; }
.pr-btn-pin { background: #c8232c; }
.pr-btn-wa:hover, .pr-btn-fb:hover, .pr-btn-pin:hover { filter: brightness(.92); }
.pr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pr-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--pr-line); color: var(--pr-ink) !important; font-weight: 600; font-size: 14px; }
.pr-chip span { background: var(--pr-green-soft); color: var(--pr-green-dark); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.pr-chip:hover { border-color: var(--pr-green); color: var(--pr-green-dark) !important; text-decoration: none; }

/* ---------- Home ---------- */
.search-home { background: var(--pr-bg); }
.pr-home-title { font-family: "Playfair Display", Georgia, serif; font-size: 34px; line-height: 1.2; margin: 0 0 6px; color: var(--pr-ink); }
.pr-home-sub { color: var(--pr-muted); font-size: 16px; margin: 0; }
.titleWithline { font-family: "Playfair Display", Georgia, serif; }

/* ---------- Recipe cards (home, category, related, search) ---------- */
.recipe-block { border-radius: var(--pr-radius); overflow: hidden; background: #fff; box-shadow: 0 1px 0 var(--pr-line), 0 2px 10px rgba(0, 0, 0, .04); margin-bottom: 28px; display: flex; flex-direction: column; height: calc(100% - 28px); transition: transform .15s ease, box-shadow .15s ease; }
.recipe-block:hover { transform: translateY(-3px); box-shadow: var(--pr-shadow); }
.recipe-block-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; height: auto !important; }
.recipe-block-img img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
.recipe-block-content { padding: 14px 16px 16px !important; flex: 1; display: flex; flex-direction: column; background: #fff; }
.recipe-block-content h3 { font-size: 17px !important; line-height: 1.35 !important; margin: 0 0 10px !important; height: auto !important; min-height: 46px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recipe-block-content h3 a { color: var(--pr-ink) !important; }
.recipe-block-content .author-recipe { display: none; }
.recipe-category, .recipe-type { margin-top: auto; font-size: 13px; }
.row:has(> [class*="col-"] > .recipe-block) { display: flex; flex-wrap: wrap; }
.row:has(> [class*="col-"] > .recipe-block)::before, .row:has(> [class*="col-"] > .recipe-block)::after { display: none; }
.row > [class*="col-"]:has(> .recipe-block) { display: flex; flex-direction: column; }
.featured-recipe img { width: 96px !important; height: 64px !important; object-fit: cover; border-radius: 8px; }

/* ---------- Recipe page ---------- */
.pr-titlebar-title { font-family: "Playfair Display", Georgia, serif; font-size: 22px; margin: 0; color: var(--pr-ink); }
.pr-recipe-title { font-family: "Playfair Display", Georgia, serif; font-size: 32px; line-height: 1.25; margin: 0 0 10px; color: var(--pr-ink); }
.recipe-details { border-radius: var(--pr-radius); }
.pr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.pr-intro p { font-size: 17px; line-height: 1.75; color: #33403a; margin: 0 0 14px; }
.pr-h2 { font-family: "Playfair Display", Georgia, serif; font-size: 24px; margin: 34px 0 14px; scroll-margin-top: 90px; }
.pr-h2 small { font-family: "Inter", system-ui, sans-serif; font-size: 13px; color: var(--pr-muted); font-weight: 400; margin-left: 8px; }
.pr-ingredients li { cursor: pointer; border-radius: 10px; transition: background .15s ease; }
.pr-ingredients li:hover { background: var(--pr-green-soft); }
.pr-ingredients li.is-done label { text-decoration: line-through; color: #9aa59f; }
.pr-steps { counter-reset: prstep; list-style: none; padding-left: 0 !important; }
.pr-steps li { position: relative; padding: 14px 16px 14px 62px !important; margin-bottom: 10px; border: 1px solid var(--pr-line); border-radius: var(--pr-radius); background: #fff; font-size: 16.5px; line-height: 1.7; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.pr-steps li::before { counter-increment: prstep; content: counter(prstep); position: absolute; left: 14px; top: 13px; width: 34px; height: 34px; border-radius: 50%; background: var(--pr-green); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.pr-steps li:hover { border-color: var(--pr-green); }
.pr-steps li.is-done { background: var(--pr-green-soft); color: #7c8a83; }
.pr-steps li.is-done::before { content: "\2713"; background: var(--pr-saffron); }
.pr-faq details { border: 1px solid var(--pr-line); border-radius: var(--pr-radius); padding: 0 16px; margin-bottom: 10px; background: #fff; }
.pr-faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
.pr-faq summary::-webkit-details-marker { display: none; }
.pr-faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 22px; color: var(--pr-green); }
.pr-faq details[open] summary::after { content: "\2212"; }
.pr-faq details p { margin: 0 0 14px; line-height: 1.7; }
.pr-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--pr-ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; z-index: 3000; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.pr-toast.is-show { opacity: 1; }

/* ---------- Sidebar ---------- */
.pr-follow { background: linear-gradient(135deg, var(--pr-green-dark), var(--pr-green)); color: #fff; border-radius: var(--pr-radius); padding: 22px 20px; }
.pr-follow-title { font-family: "Playfair Display", Georgia, serif; font-size: 20px; margin: 0 0 6px; color: #fff; }
.pr-follow-text { margin: 0 0 14px; opacity: .9; font-size: 14px; line-height: 1.6; }
.pr-follow .pr-btn-fb { background: #fff; color: #1877f2 !important; }
.categories li a { white-space: normal !important; }
.pr-noimg { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; background: var(--pr-green-soft); color: var(--pr-green); font-size: 40px; border-radius: var(--pr-radius); }
.post-thumb img { border-radius: var(--pr-radius); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

/* ---------- Footer ---------- */
.subscribe-section .cf-turnstile { margin: 8px 0; }

/* ---------- Mobile ---------- */
@media (max-width: 990px) {
    #header { padding: 8px 0 !important; }
    #header .container { position: relative; }
    #header #logo { width: auto !important; }
    #logo { margin-top: 0; }
    #logo a img, #logo img { height: 50px; }
    a.nav-toggle { position: absolute !important; right: 15px; top: 8px; width: 46px !important; height: 46px; margin: 0 !important; padding: 0 !important; border-radius: 12px; background: var(--pr-green-soft) !important; font-size: 0 !important; color: transparent !important; overflow: hidden; }
    a.nav-toggle::before { right: 13px !important; top: 11px !important; color: var(--pr-green-dark) !important; font-size: 22px !important; }
    a.nav-toggle.active { background: var(--pr-green) !important; }
    a.nav-toggle.active::before { color: #fff !important; }
    #header .navigation { width: 100% !important; }
    .nav-collapse ul li a { padding: 13px 16px !important; font-size: 16px; }
    .menu-categories li { width: 50% !important; }
    .menu-categories li a { height: auto !important; overflow: visible !important; padding: 12px 10px !important; display: flex !important; align-items: center; gap: 8px; font-size: 14px !important; text-align: left; white-space: normal; }
    .menu-categories li a i { display: inline-block !important; margin: 0 !important; font-size: 20px; }
    .menu-categories li a span.cat-name { display: inline !important; }
    #homeSliderAlt, .homeSliderAlt { max-height: 62vh; }
    .rsSlideTitle.title, .rsSlideTitle.title a { font-size: 24px !important; line-height: 1.25 !important; }
    .pr-home-title { font-size: 26px; }
    .pr-recipe-title { font-size: 25px; }
    .pr-titlebar-title { display: none; }
    #titlebar { padding: 14px 0 !important; }
    .pr-actions { position: sticky; top: 76px; z-index: 50; background: #fff; padding: 8px 0; margin: 10px -15px; padding-left: 15px; padding-right: 15px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; box-shadow: 0 6px 10px -10px rgba(0, 0, 0, .25); }
    .pr-actions::-webkit-scrollbar { display: none; }
    .pr-actions .pr-btn { flex: 0 0 auto; padding: 9px 13px; font-size: 13px; }
    .pr-steps li { padding-left: 56px !important; font-size: 16px; }
    .recipe-block-content h3 { font-size: 16px !important; min-height: 0; }
    .col-md-3 .widget { margin-top: 10px; }
}
@media (max-width: 480px) {
    .row > [class*="col-xs-12"]:has(> .recipe-block) { width: 100%; }
}
@media print {
    #header, .pr-actions, .subscribe-section, #footer, .col-md-3 { display: none !important; }
}

/* ---------- Page titles (H1 in the title bar) ---------- */
#titlebar h1.pr-page-title { font-family: "Playfair Display", Georgia, serif; font-size: 28px; font-weight: 400; float: left; width: 100%; margin: 29px 0 0 0; color: var(--pr-ink); line-height: 1.3; }
@media (max-width: 990px) { #titlebar h1.pr-page-title { font-size: 24px; margin-top: 8px; } }

/* ---------- Brand: Pakistan flag greens + clear type (2026-10-25) ---------- */
body, input, select, textarea, button { font-family: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
body { font-size: 16px; line-height: 1.65; }
h1, h2, h3, h4, .titleWithline, .rsSlideTitle.title, .recipe-block-content h3, .featured-recipe-content h4 { font-family: "Playfair Display", Georgia, serif; letter-spacing: .1px; }
.recipe-block-content h3 { font-weight: 700; }
.pr-flagbar { height: 4px; background: linear-gradient(90deg, #fff 0 25%, #01411c 25% 100%); }
#footer, .subscribe-section { background-color: #01411c !important; }
.subscribe-section { background-color: #0b6e3e !important; }
.home-cats a, .home-cats.categories a { background-color: #01411c !important; border-color: rgba(255,255,255,.12) !important; }
.home-cats a:hover { background-color: #0b6e3e !important; }
.ingredients li label, .directions li, .pr-intro p { color: #26302b; }

/* ---------- Mobile fixes after first preview ---------- */
.pr-flagbar { background: #01411c; height: 4px; }
@media (max-width: 990px) {
    #header .navigation, #header .navigation.col-md-9 { position: static !important; }
    #header .container > .row { position: static; }
    a.nav-toggle { top: 50% !important; transform: translateY(-50%); }
    #header .navigation .nav-collapse { margin-top: 10px; }
    .recipe-cat span:nth-of-type(2), .recipe-cat span:nth-of-type(3) { display: none; }
    .recipe-details ul li { width: 50% !important; }
}
@media (max-width: 990px) {
    .menu-categories { display: flex !important; flex-wrap: wrap; }
    .menu-categories li { float: none !important; display: flex; }
    .menu-categories li a { width: 100%; }
    .nav-collapse ul li a, .menu-categories li a { text-shadow: none !important; color: var(--pr-ink) !important; }
    .nav-collapse ul li a:hover { background: var(--pr-green-soft) !important; }
}

/* ---------- Steps: replace the theme's grey counters with the new badges ---------- */
ol.directions.pr-steps { margin: 15px 0 0 0 !important; counter-reset: prstep; }
ol.directions.pr-steps > li { padding: 14px 16px 14px 62px !important; line-height: 1.7 !important; margin-bottom: 10px !important; }
ol.directions.pr-steps > li:before { counter-increment: prstep !important; content: counter(prstep) !important; left: 14px !important; top: 13px !important; width: 34px !important; height: 34px !important; line-height: 34px !important; border-radius: 50% !important; background-color: var(--pr-green) !important; color: #fff !important; font-size: 15px !important; text-align: center; display: block !important; }
ol.directions.pr-steps > li.is-done:before { content: "\2713" !important; background-color: var(--pr-saffron) !important; }

/* ---------- Card meta chips: time, calories, servings ---------- */
.pr-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.pr-meta-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--pr-green-soft); color: var(--pr-green-dark); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.pr-meta-chip i { font-size: 13px; }

/* ---------- Mobile menu: button pinned top-right, menu as a scrollable panel under the header ---------- */
@media (max-width: 990px) {
    #header { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: #fff !important; } /* a filter makes #header the containing block of the fixed panel */
    a.nav-toggle { top: 10px !important; transform: none !important; z-index: 1002; display: flex !important; align-items: center; justify-content: center; }
    a.nav-toggle::before { position: static !important; top: auto !important; right: auto !important; line-height: 1 !important; display: block; margin: 0 !important; }
    #header .navigation .nav-collapse.opened { margin-top: 0 !important; }
    .nav-collapse.opened { position: fixed !important; top: var(--pr-header-h, 64px) !important; left: 0; right: 0; max-height: calc(100vh - var(--pr-header-h, 64px)) !important; overflow-y: auto !important; background: #fff; box-shadow: 0 16px 30px rgba(0, 0, 0, .18); z-index: 1001; padding: 0 12px 16px; -webkit-overflow-scrolling: touch; }
    html.js-nav-active body { overflow: hidden; }
}

/* ---------- Mobile menu: the theme clips .nav-collapse (clip: rect 0); undo it once open ---------- */
.js .nav-collapse.opened { clip: auto !important; }

/* ---------- Desktop categories dropdown: clean white panel, full names, counts ---------- */
@media (min-width: 991px) {
    #navigation ul.menu-categories { background: #fff !important; border-radius: 14px; box-shadow: 0 18px 40px rgba(1, 65, 28, .18); border-top: 3px solid var(--pr-green-dark); padding: 12px !important; width: 560px !important; grid-template-columns: 1fr 1fr; gap: 4px; }
    #navigation li:hover > ul.menu-categories, #navigation li.sfHover > ul.menu-categories { display: grid !important; }
    #navigation ul.menu-categories li { width: auto !important; float: none !important; background: transparent !important; border: 0 !important; }
    #navigation ul.menu-categories li a { display: flex !important; align-items: center; gap: 10px; padding: 10px 12px !important; border-radius: 10px; color: var(--pr-ink) !important; background: transparent !important; white-space: nowrap; font-size: 15px; font-weight: 600; text-shadow: none !important; border: 0 !important; overflow: visible !important; text-overflow: clip !important; }
    #navigation ul.menu-categories li a:hover { background: var(--pr-green-soft) !important; color: var(--pr-green-dark) !important; }
    #navigation ul.menu-categories li a i { font-size: 22px; color: var(--pr-green); width: 26px; text-align: center; }
    #navigation ul.menu-categories .cat-count { margin-left: auto; background: var(--pr-green-soft); color: var(--pr-green-dark); border-radius: 999px; padding: 1px 9px; font-size: 12px; }
}
.menu-categories .cat-count { font-size: 12px; color: var(--pr-muted); }

/* ---------- Footer ---------- */
.pr-footer { background: #01411c !important; color: rgba(255, 255, 255, .82); padding: 56px 0 36px !important; }
.pr-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 40px; }
.pr-footer-brand img { width: 160px; height: auto; margin-bottom: 14px; background: #fff; border-radius: 12px; padding: 8px 12px; }
.pr-footer-brand p { font-size: 14.5px; line-height: 1.7; margin: 0 0 16px; color: rgba(255, 255, 255, .82); }
.pr-footer-h { font-family: "Playfair Display", Georgia, serif; color: #fff; font-size: 18px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.pr-footer-list { list-style: none; margin: 0; padding: 0; }
.pr-footer-list li { margin: 0 0 9px; padding: 0; }
.pr-footer-list li::before { display: none !important; }
.pr-footer-list a { color: rgba(255, 255, 255, .85) !important; font-size: 14.5px; line-height: 1.45; }
.pr-footer-list a:hover { color: #fff !important; text-decoration: underline; }
#footer-bottom { background: #012d14 !important; color: rgba(255, 255, 255, .7); padding: 16px 0 !important; }
#footer-bottom a { color: #fff !important; }
@media (max-width: 990px) {
    .pr-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .pr-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .pr-footer-grid { grid-template-columns: 1fr; }
    #footer-bottom .col-md-4, #footer-bottom .col-md-8 { text-align: center; }
}

/* ---------- Category widgets: list (sidebar) and chips (top strip) instead of cut-off green tiles ---------- */
.home-cats.categories { display: flex; flex-direction: column; gap: 4px; background: transparent !important; }
.home-cats.categories a { display: flex !important; align-items: center; gap: 12px; width: 100% !important; height: auto !important; float: none !important; padding: 11px 14px !important; background: #fff !important; color: var(--pr-ink) !important; border: 1px solid var(--pr-line) !important; border-radius: 12px; text-align: left !important; text-transform: none !important; font-size: 15px !important; font-weight: 600; line-height: 1.3; white-space: normal; overflow: visible !important; text-overflow: clip !important; }
.home-cats.categories a:hover { border-color: var(--pr-green) !important; background: var(--pr-green-soft) !important; color: var(--pr-green-dark) !important; }
.home-cats.categories a i { display: inline-block !important; margin: 0 !important; font-size: 24px !important; color: var(--pr-green) !important; width: 28px; text-align: center; }
.home-cats .cat-count { margin-left: auto; background: var(--pr-green-soft); color: var(--pr-green-dark); border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 700; }
.home-cats.recipes-categories { display: flex; flex-wrap: wrap; gap: 8px; background: transparent !important; margin-bottom: 20px; }
.home-cats.recipes-categories a { display: inline-flex !important; align-items: center; gap: 8px; width: auto !important; height: auto !important; float: none !important; padding: 8px 14px !important; background: #fff !important; color: var(--pr-ink) !important; border: 1px solid var(--pr-line) !important; border-radius: 999px; text-transform: none !important; font-size: 14px !important; font-weight: 600; white-space: nowrap; }
.home-cats.recipes-categories a i { display: inline-block !important; margin: 0 !important; font-size: 18px !important; color: var(--pr-green) !important; }
.home-cats.recipes-categories a:hover { border-color: var(--pr-green) !important; color: var(--pr-green-dark) !important; }
@media (max-width: 990px) { .home-cats.recipes-categories a { width: auto !important; font-size: 13px !important; } }

/* ---------- Contact: single email card ---------- */
.contact .pr-contact-email { width: 100% !important; float: none !important; max-width: 420px; }
.contact .pr-contact-email a { color: var(--pr-green-dark); font-weight: 600; }

/* ---------- Static pages (About, Privacy, Terms): readable prose ---------- */
.pr-prose { max-width: 760px; margin: 8px auto 0; font-size: 17px; line-height: 1.75; color: #26302b; }
.pr-prose h2 { font-family: "Playfair Display", Georgia, serif; font-size: 26px; color: var(--pr-green-dark); margin: 36px 0 12px; }
.pr-prose h2:first-child { margin-top: 0; }
.pr-prose p { margin: 0 0 16px; }
.pr-prose ul { list-style: disc; padding-left: 22px; margin: 0 0 18px; }
.pr-prose ul li { margin: 0 0 10px; padding-left: 4px; list-style: disc; }
.pr-prose ul li::before { display: none !important; }
.pr-prose a { color: var(--pr-green) !important; text-decoration: underline; }
.pr-prose em { color: var(--pr-muted); }
@media (max-width: 520px) { .pr-prose { font-size: 16px; } .pr-prose h2 { font-size: 22px; } }

/* ---------- Card footer: chips on one line; category left, difficulty right ---------- */
.recipe-block-content { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr; column-gap: 10px; }
.recipe-block-content > h3, .recipe-block-content > .pr-card-meta { grid-column: 1 / -1; }
.recipe-block-content > .recipe-category { grid-column: 1; align-self: end; margin: 0 !important; padding-top: 10px; border-top: 1px solid var(--pr-line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recipe-block-content > .recipe-type { grid-column: 2; align-self: end; margin: 0 !important; padding-top: 10px; border-top: 1px solid var(--pr-line); float: none !important; position: static !important; text-align: right; white-space: nowrap; font-weight: 600; }
.recipe-block-content .pr-card-meta { flex-wrap: nowrap; gap: 5px; overflow: hidden; }
.recipe-block-content .pr-meta-chip { padding: 4px 8px; font-size: 12px; white-space: nowrap; flex: 0 0 auto; }
.recipe-block-content > .recipe-category { max-width: none !important; float: none !important; display: block !important; }
.recipe-block-content > .recipe-type { margin-left: 0 !important; font-size: 11.5px; }
.recipe-block-content .pr-card-meta { justify-content: space-between; gap: 4px; }
.recipe-block-content .pr-meta-chip { padding: 4px 7px; font-size: 11.5px; gap: 4px; }
.recipe-block-content .pr-meta-chip i { font-size: 12px; }
.recipe-block-content .pr-card-meta { flex-wrap: wrap; justify-content: flex-start; row-gap: 6px; }

/* ---------- Sidebar Tips & Tricks: calm hover (theme shifted padding and re-wrapped titles) ---------- */
ul.categories:not(.home-cats) li a { display: flex !important; align-items: flex-start; gap: 10px; padding: 11px 10px !important; border-radius: 10px; color: var(--pr-ink) !important; font-weight: 500; line-height: 1.45; transition: background-color .15s ease, color .15s ease !important; box-shadow: none !important; }
ul.categories:not(.home-cats) li a::before { content: "\2022"; color: var(--pr-saffron); font-weight: 700; flex: 0 0 auto; }
ul.categories:not(.home-cats) li a:hover { background-color: var(--pr-green-soft) !important; color: var(--pr-green-dark) !important; padding-left: 10px !important; box-shadow: none !important; }

/* ---------- Sidebar Popular Recipes: steady rows with a soft hover ---------- */
.widget .featured-recipe { display: flex !important; align-items: center; gap: 12px; float: none !important; padding: 8px; margin: 0 0 4px !important; border-radius: 12px; transition: background-color .15s ease; }
.widget .featured-recipe:hover { background-color: var(--pr-green-soft); }
.widget .featured-recipe img { float: none !important; flex: 0 0 76px; width: 76px !important; height: 56px !important; margin: 0 !important; border-radius: 8px; object-fit: cover; transform: none !important; transition: none !important; }
.widget .featured-recipe-content { flex: 1; min-width: 0; float: none !important; width: auto !important; }
.widget .featured-recipe-content h4 { width: auto !important; margin: 0 0 4px !important; }
.widget .featured-recipe-content h4 a { color: var(--pr-ink) !important; font-size: 14px !important; line-height: 1.35 !important; transition: color .15s ease !important; }
.widget .featured-recipe:hover .featured-recipe-content h4 a { color: var(--pr-green-dark) !important; }
.widget .featured-recipe-content > a { font-size: 12.5px; font-weight: 600; color: var(--pr-green) !important; }

/* ---------- Desktop Categories dropdown: centred under its own menu item (theme right-aligned it) ---------- */
@media (min-width: 991px) {
    #navigation li:hover > ul.menu-categories, #navigation li.sfHover > ul.menu-categories { left: 50% !important; right: auto !important; transform: translateX(-50%); margin-top: 0 !important; }
}

/* ---------- Ingredient rows: whole row is the tap target, no text selection on fast taps ---------- */
.pr-ingredients li { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.pr-ingredients li label { display: block; margin-right: 0; padding-top: 2px; padding-bottom: 2px; }
