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

/* Missing Tailwind utilities (not in purged build) */
.hover\:bg-amber-800\/50:hover {
    background-color: rgba(146, 64, 14, 0.5);
}

.bg-green-900 {
    background-color: #14532d;
}

.bg-green-800\/50 {
    background-color: color-mix(in oklab, var(--color-green-800) 50%, transparent);
}

.bg-green-800\/40 {
    background-color: color-mix(in oklab, var(--color-green-800) 40%, transparent);
}

.border-green-700\/50 {
    border-color: color-mix(in oklab, var(--color-green-700) 50%, transparent);
}

.bg-stone-800 {
    background-color: #292524;
}

.bg-stone-700\/50 {
    background-color: rgba(68, 64, 60, 0.5);
}

.bg-stone-700\/40 {
    background-color: rgba(68, 64, 60, 0.4);
}

.bg-stone-500\/20 {
    background-color: rgba(120, 113, 108, 0.2);
}

.border-stone-500\/50 {
    border-color: rgba(120, 113, 108, 0.5);
}

.border-stone-500\/40 {
    border-color: rgba(120, 113, 108, 0.4);
}

.hover\:border-stone-400\/70:hover {
    border-color: rgba(168, 162, 158, 0.7);
}

.text-stone-100 {
    color: #f5f5f4;
}

.text-stone-200 {
    color: #e7e5e4;
}

.text-stone-200\/80 {
    color: rgba(231, 229, 228, 0.8);
}

.text-stone-300 {
    color: #d6d3d1;
}

.svgWhite {
    opacity: 1;
    color: #f8feff;
    background-color: #f52216;
    border-top-color: #ebfbff;
}

.grecaptcha-badge {
    visibility: hidden !important;
}

#homeBanner {
    /* Tailwind's py-24 is 6rem (96px). Half is 3rem (48px) */
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Optional: To also halve the large screen padding (lg:py-32) */
@media (min-width: 1024px) {
    #homeBanner {
        /* Tailwind's lg:py-32 is 8rem (128px). Half is 4rem (64px) */
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

.table-container {
    height: 400px;
    overflow-x: auto;
    overflow-y: auto;
}

.bg-green-700 {
    background-color: #15803d;

    /* Tailwind's default green-900 hex code */
}

table thead th {
    position: sticky;
    top: 0;
    background-image: initial;
    background-position-x: initial;
    background-position-y: initial;
    background-size: initial;
    background-repeat: initial;
    background-attachment: initial;
    background-origin: initial;
    background-clip: initial;
    background-color: var(--color-amber-950);
    z-index: 1;
}

table tbody td:first-child,

table thead th:first-child {
    position: sticky;
    left: 0;
    background-color: var(--color-amber-950);

    /* Must match or have a background to hide text behind it */
    z-index: 2;

    /* Higher than the header to ensure the corner stays on top */
}

/* Specific fix for the top-left corner cell */
table thead th:first-child {
    z-index: 3;

    /* The "King" of the table layers */
    top: 0;

    /* Keep it stuck to the top too */
}

table tbody td:first-child {
    border-right: 2px solid rgba(0,0,0,0.1);
}

table tbody td:first-child svg {
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.65));
}

/* ---- Gallery Grid ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 10px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background: #e7e5e4;

    /* stone-200 placeholder while image loads */
}

.gallery-item--large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item--tall {
    grid-row: span 2;
}

.gallery-item--wide {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

/* Hover overlay */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(120, 53, 15, 0.0);

    /* amber-900 transparent */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    background: rgba(120, 53, 15, 0.45);
}

.gallery-icon {
    width: 36px;
    height: 36px;
    color: white;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-icon {
    opacity: 1;
    transform: scale(1);
}

/* ---- Lightbox ---- */
.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: zoom-out;
}

.gallery-lightbox.is-open {
    display: flex;
}

.gallery-lightbox img {
    max-width: min(90vw, 1200px);
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.6);
    cursor: default;
}

.gallery-lightbox__close {
    position: absolute;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 4px 10px;
}

.gallery-lightbox__close:hover {
    opacity: 1;
}

.gallery-lightbox__prev,

.gallery-lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 2.2rem;
    line-height: 1;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.gallery-lightbox__prev {
    left: 20px;
}

.gallery-lightbox__next {
    right: 20px;
}

.gallery-lightbox__prev:hover,

.gallery-lightbox__next:hover {
    background: rgba(255,255,255,0.25);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
    }

    /* On mobile, reset all spanning so every cell is uniform */
    .gallery-item--large,
    
        .gallery-item--tall,
    
        .gallery-item--wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    /* Give the first image a bit more prominence on mobile */
    .gallery-item:first-child {
        grid-column: span 2;
    }
}

/* ── Stats Section ─────────────────────────────────────────────── */
.stats-section {
    position: relative;
    padding: 4rem 1.5rem;
    overflow: hidden;
}

.stats-section__bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
}

.stats-section__overlay {
    position: absolute;
    inset: 0;
}

.stats-section__inner {
    position: relative;
    z-index: 10;
    max-width: 80rem;
    margin: 0 auto;
}

.stats-section__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .stats-section__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .stats-section {
        padding: 5rem 1.5rem;
    }
}

/* ── Liquid Glass Card ─────────────────────────────────────────── */
.glass-card {
    background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
    backdrop-filter: blur(2px) saturate(100%) brightness(1.05);
    -webkit-backdrop-filter: blur(24px) saturate(180%) brightness(1.05);
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom-color: rgba(255, 255, 255, 0.06);
    border-right-color: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 4px 24px rgba(0, 0, 0, 0.2);
    padding: 1.5rem 1rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Specular highlight streak */
.glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
    90deg,
    transparent 10%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 90%
  );
    border-radius: 1.25rem 1.25rem 0 0;
}

/* ── Stat Text ─────────────────────────────────────────────────── */
.glass-card__number {
    font-size: 3rem;
    font-weight: 700;
    color: #fcd34d;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
    line-height: 1;
    margin: 0 0 0.25rem;
}

.glass-card__label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 220, 160, 0.8);
    margin: 0;
}

/* Hero Section */
.hero-section {
    min-height: 420px;
}

.hero-bg-overlay {
    background: linear-gradient(135deg, rgba(80,20,0,0.45) 0%, rgba(120,40,10,0.25) 100%);
}

/* Liquid Glass Card */
.liquid-glass-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.04) 100%);
    backdrop-filter: blur(1px) saturate(115%) brightness(1.05);
    -webkit-backdrop-filter: blur(24px) saturate(180%) brightness(1.05);
    border-radius: 1.5rem;
    border: 1px solid rgba(255,255,255,0.18);
    border-bottom-color: rgba(255,255,255,0.06);
    border-right-color: rgba(255,255,255,0.06);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(0,0,0,0.12),
    0 4px 24px rgba(0,0,0,0.25),
    0 1px 2px rgba(0,0,0,0.15);
    padding: 2rem 2.25rem 2.25rem;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

/* Specular Highlight Streak */
.liquid-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, rgba(255,255,255,0.5) 40%, rgba(255,255,255,0.5) 60%, transparent 95%);
    border-radius: 1.5rem 1.5rem 0 0;
}

/* Hero Title */
.hero-title {
    text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}

/* Glow Effect */
.farm-image-glow {
    background: linear-gradient(to top right, rgba(245,158,11,0.2), rgba(249,115,22,0.2));
    border-radius: 1.5rem;
    filter: blur(32px);
    position: absolute;
    inset: -1rem;
}

/* ── Nav dropdown ── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown__menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 51;
}

.nav-dropdown.is-open .nav-dropdown__menu {
    display: block;
}

.nav-dropdown.is-open .nav-dropdown__trigger svg {
    transform: rotate(180deg);
}

.nav-dropdown__trigger svg {
    transition: transform 0.2s ease;
}

nav[data-pgc-define="navBar"] {
    position: relative;
    z-index: 50;
}

@media (max-width: 768px) {
    .your-section {
        background-attachment: scroll;
    }
}

.hero-fixed-bg {
    position: relative;
}

.hero-fixed-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: calc(var(--vh, 1vh) * 100);
    background-image: url('https://larriland-media-worker.farmsteve2415.workers.dev/pondPaint.JPG');
    background-size: cover;
    background-position: center;
    z-index: -1;
    will-change: transform;
    transform: translateZ(0);
}

.bg-yellow-500 {
    background-color: #eab308;
}

.bg-rose-100 {
    background-color: #fef2f2;
}

.bg-rose-200 {
    background-color: #fecdd3;
}

.bg-rose-800 {
    background-color: #9f1239;
}

.opacity-20 {
    opacity: 0.2;
}

.opacity-30 {
    opacity: 0.3;
}

.opacity-60 {
    opacity: 0.6;
}

/* ===== RECIPES PAGE STYLES ===== */


:root {
    --amber-950: #431407;
    --amber-900: #78350f;
    --amber-800: #92400e;
    --amber-400: #fbbf24;
    --amber-100: #fef3c7;
    --stone-50: #fafaf9;
    --font-heading: 'Crimson Pro', Georgia, serif;
}

/* ===== HERO ===== */
.recipes-hero {
    background-image: url('https://larriland-media-worker.farmsteve2415.workers.dev/family/lynn (canning).jpg');
    background-size: cover;
    background-position: center 80%;
    padding: 4rem 1.5rem;
    position: relative;
}

.recipes-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20,8,2,0.72) 0%, rgba(60,20,5,0.45) 100%);
}

.recipes-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 56rem;
    margin: 0 auto;
}

.recipes-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.recipes-hero p {
    color: rgba(255,237,180,0.85);
    font-size: 1.15rem;
    max-width: 36rem;
    line-height: 1.6;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--amber-100);
    padding: 0.35rem 1rem;
    border-radius: 99px;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* ===== SEARCH BAR ===== */
.search-bar-wrap {
    background: var(--amber-950);
    padding: 1.25rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid rgba(251,191,36,0.15);
}

.search-bar-inner {
    max-width: 56rem;
    margin: 0 auto;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.search-input-wrap {
    position: relative;
    flex: 1;
}

.search-input-wrap svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(251,191,36,0.5);
    pointer-events: none;
    width: 1.1rem;
    height: 1.1rem;
}

#recipe-search {
    width: 100%;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(251,191,36,0.2);
    color: #fff;
    border-radius: 0.75rem;
    padding: 0.65rem 1rem 0.65rem 2.75rem;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

#recipe-search::placeholder {
    color: rgba(255,237,180,0.4);
}

#recipe-search:focus {
    border-color: rgba(251,191,36,0.6);
}

.search-count {
    color: rgba(251,191,36,0.6);
    font-size: 0.82rem;
    white-space: nowrap;
}

/* ===== TABS ===== */
.tabs-section {
    background: var(--stone-50);
    border-bottom: 1.5px solid #e5e7eb;
}

.tabs-inner {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 0 1rem;
}

.recipe-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    color: #6b7280;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.15s, border-color 0.15s;
}

.recipe-tab:hover {
    color: #1f2937;
}

.recipe-tab.recipe-tab-active {
    color: var(--cat-color);
    border-bottom-color: var(--cat-color);
    font-weight: 600;
}

.tab-emoji {
    font-size: 1.1rem;
}

.tab-count {
    background: #e5e7eb;
    color: #6b7280;
    font-size: 0.72rem;
    padding: 0.1rem 0.45rem;
    border-radius: 99px;
    font-weight: 600;
}

.recipe-tab.recipe-tab-active .tab-count {
    background: var(--cat-color);
    color: #fff;
}

/* ===== MAIN LAYOUT ===== */
.recipes-main {
    max-width: 72rem;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

/* ===== PANEL HEADER ===== */
.recipe-panel {
    animation: fadeIn 0.2s ease;
}

.recipe-panel.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.panel-header {
    border-radius: 1.25rem;
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 160px;
    background: var(--cat-color);
}

.panel-header-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
}

.panel-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.75rem 2rem;
    color: #fff;
}

.panel-emoji {
    font-size: 3.5rem;
    line-height: 1;
}

.panel-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: #fff;
    line-height: 1.1;
}

.panel-subtitle {
    color: rgba(255,255,255,0.75);
    font-size: 0.92rem;
    margin-top: 0.25rem;
}

/* ===== RECIPE GRID ===== */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.6rem;
}

.recipe-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.875rem;
    padding: 0.9rem 1.1rem;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
    font-size: 0.92rem;
    color: #1f2937;
    line-height: 1.35;
}

.recipe-card:hover {
    border-color: var(--panel-color, #c0321a);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.recipe-card-arrow {
    flex-shrink: 0;
    width: 1.2rem;
    height: 1.2rem;
    color: #9ca3af;
    transition: color 0.15s, transform 0.15s;
}

.recipe-card:hover .recipe-card-arrow {
    transform: translateX(2px);
    color: #374151;
}

/* ===== MODAL ===== */
.recipe-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(10,4,1,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.recipe-modal-backdrop.open {
    display: flex;
}

.recipe-modal {
    background: #fff;
    border-radius: 1.5rem;
    max-width: 42rem;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 32px 80px rgba(0,0,0,0.28);
}

.modal-header {
    padding: 1.75rem 2rem 1.25rem;
    border-bottom: 1.5px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #1a0a04;
    line-height: 1.15;
}

.modal-close {
    background: #f3f4f6;
    border: none;
    border-radius: 99px;
    width: 2.25rem;
    height: 2.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.modal-close:hover {
    background: #e5e7eb;
    color: #111;
}

.modal-body {
    overflow-y: auto;
    padding: 1.75rem 2rem 2rem;
    flex: 1;
    line-height: 1.7;
    color: #374151;
    font-size: 0.97rem;
}

/* Style the WP recipe HTML */
.modal-body h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #78350f;
    margin: 1.5rem 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1.5px solid #fde68a;
    padding-bottom: 0.35rem;
}

.modal-body h2:first-child {
    margin-top: 0;
}

.modal-body ul,
.modal-body ol {
    padding-left: 1.4rem;
    margin: 0.5rem 0 1rem;
}

.modal-body li {
    margin-bottom: 0.3rem;
}

.modal-body strong {
    color: #1f2937;
}

.modal-body em {
    color: #92400e;
}

.modal-body p {
    margin-bottom: 0.75rem;
}

/* ===== SEARCH RESULTS ===== */
.search-results-panel {
    display: none;
}

.search-results-panel.active {
    display: block;
    animation: fadeIn 0.15s ease;
}

.search-result-group {
    margin-bottom: 2rem;
}

.search-result-group-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #78350f;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #9ca3af;
}

.no-results-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.no-results p {
    font-size: 1.1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .recipes-hero {
        padding: 2.5rem 1rem;
    }

    .recipes-main {
        padding: 1.5rem 1rem 3rem;
    }

    .modal-header {
        padding: 1.25rem 1.25rem 1rem;
    }

    .modal-body {
        padding: 1.25rem 1.25rem 1.5rem;
    }

    .panel-header-content {
        padding: 1.25rem;
    }

    .panel-emoji {
        font-size: 2.5rem;
    }

    .panel-title {
        font-size: 1.7rem;
    }

    .recipe-grid {
        grid-template-columns: 1fr;
    }
}
