@font-face {
    font-family: 'gfb';
    src: url('/assets/fonts/aramisi.ttf') format('truetype'); 
    font-display: swap;
}

.logo-link{
    font-family: 'gfb';
    font-size: clamp(1rem, 3.5vw, 1.6rem);
    text-decoration: unset;
    min-width: 0;
    overflow: hidden;
}
.logo-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    color: #7a5b00;
}

.logo-link div{
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: x-large;
    color: #7a5b00;
}

/* global layout start*/
html{
    overflow-x: hidden;
}

/* Constrain readable content width on large screens */
.page-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

body{
    margin: 0px;
    overflow-x: hidden;
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size-adjust: 0.5;
}

/* Lightweight modal (replaces PrimeNG Dialog) */
.gf-modal-backdrop{
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
}

.gf-modal{
    width: 80vw;
    height: 80vh;
    max-height: 80vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gf-modal-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    background: #fff7ed;
}

.gf-modal-title{
    font-weight: 600;
}

.gf-modal-body{
    padding: 1rem;
    overflow: auto;
}

.gf-modal-footer{
    padding: 0.75rem 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.gf-modal-close{
    border: none;
    background: transparent;
    font-size: 1.25rem;
    cursor: pointer;
}

.gf-input{
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
}

.gf-select{
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.5rem;
    min-height: 8rem;
}

.gf-modal-grid{
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px){
    .gf-modal-grid{
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Lightweight tables (replaces PrimeNG Table) */
.gf-ingredient-table-wrapper {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.gf-table{
    width: 100%;
    border-collapse: collapse;
}

/* Flour comparer table — horizontally scrollable with sticky first column */
.flour-table-wrapper{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
    mask-image: linear-gradient(to right, black 80%, transparent 100%);
    scrollbar-width: thin;
    scrollbar-color: #c8a84b transparent;
}

.flour-table-wrapper::-webkit-scrollbar{
    height: 4px;
}
.flour-table-wrapper::-webkit-scrollbar-track{
    background: transparent;
}
.flour-table-wrapper::-webkit-scrollbar-thumb{
    background-color: #c8a84b;
    border-radius: 4px;
}

/* Remove double border now wrapper has a border */
.flour-table-wrapper .gf-table{
    border: none;
}

.flour-sticky-col{
    position: sticky;
    left: 0;
    z-index: 1;
    background: #fff;
    min-width: 110px;
    max-width: 140px;
    white-space: normal;
    word-break: break-word;
}

.gf-table thead th.flour-sticky-col{
    background: #fff7ed;
    z-index: 2;
}

.gf-table.striped tbody tr:nth-child(odd) td.flour-sticky-col{
    background: #f9fafb;
}

@media (max-width: 768px){
    .flour-table-wrapper .gf-table th,
    .flour-table-wrapper .gf-table td{
        padding: 0.35rem 0.5rem;
        font-size: 0.82rem;
    }

    .flour-table-wrapper .gf-table td.text-xl{
        font-size: 0.9rem !important;
    }
}

.gf-table th,
.gf-table td{
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0.75rem;
    vertical-align: top;
}

.gf-table thead th{
    background: #fff7ed;
    font-weight: 600;
}

.gf-table.striped tbody tr.odd-row{
    background: #f9fafb;
}

.gf-table.striped tbody tr.tip-row.odd-row td,
.gf-table.striped tbody tr.tip-row td{
    background: inherit;
    border-top: none;
    padding-top: 0;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Ingredient tip icon and modal */
.ingredient-info-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #0369a1;
    font-size: 1.25rem;
    padding: 0.35rem;
    margin-left: 0.25rem;
    min-width: 2.25rem;
    min-height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
    vertical-align: middle;
}

.ingredient-info-btn:hover {
    color: #0c4a6e;
}

.ingredient-info-btn:focus {
    outline: 2px solid #0369a1;
    outline-offset: 2px;
    border-radius: 50%;
}

.ingredient-tips-data {
    display: none;
}

.ingredient-tip-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.15s ease;
}

.ingredient-tip-modal.show {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ingredient-tip-dialog {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: min(100%, 500px);
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.2s ease;
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.ingredient-tip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    gap: 0.5rem;
}

.ingredient-tip-header h3 {
    margin: 0;
    font-size: 1.125rem;
    color: #111827;
}

.ingredient-tip-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    font-size: 1.25rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.ingredient-tip-close:hover {
    color: #111827;
}

.ingredient-tip-body {
    padding: 1rem;
    color: #374151;
    line-height: 1.6;
}

.ingredient-tip-body p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.ingredient-tip-body p:first-child {
    margin-top: 0;
}

.ingredient-tip-body p:last-child {
    margin-bottom: 0;
}

/* Recipes group filter pills */
.recipes-group-filters {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.recipes-group-filters-label {
    margin: 0 0 0.5rem;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 600;
}

.recipes-group-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.recipes-group-pill {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1f2937;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.9rem;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.recipes-group-pill:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.recipes-group-pill.active {
    border-color: #b45309;
    background: #fff7ed;
    color: #7c2d12;
}

.recipes-group-pill:focus-visible {
    outline: 2px solid #0369a1;
    outline-offset: 2px;
}

/* Lightweight fieldset + avatar replacements */
.gf-fieldset{
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.gf-fieldset-header{
    padding: 0.75rem 1rem;
    background: #fff7ed;
    border-bottom: 1px solid #e5e7eb;
}

.gf-fieldset-body{
    padding: 0.75rem 1rem;
}

.gf-avatar{
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.gf-avatar-lg{
    width: 96px;
    height: 96px;
}

/* Lightweight breadcrumb */
.gf-breadcrumb{
    width: 100%;
    font-size: 0.95rem;
}

.gf-breadcrumb ol{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.gf-breadcrumb-item{
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #6b7280;
}

.gf-breadcrumb-item + .gf-breadcrumb-item::before{
    content: '/';
    margin-right: 0.35rem;
    color: #9ca3af;
}

.gf-breadcrumb a{
    color: #111827;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.gf-breadcrumb a:hover{
    text-decoration: underline;
}

.recipe-topbar{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.recipe-topbar-breadcrumbs{
    flex: 1 1 22rem;
    min-width: 0;
}

.recipe-topbar-actions{
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    align-items: center;
    min-height: 2.25rem;
}

.recipe-topbar-actions a.ui-button.icon-only,
.recipe-topbar-actions a.ui-button.icon-only:hover,
.recipe-topbar-actions a.ui-button.icon-only:focus{
    text-decoration: none;
}

.recipe-header-meta{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.recipe-video-link{
    margin: 0;
    flex: 1 1 16rem;
}

.recipe-tags-row{
    text-align: center;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .recipe-topbar{
        align-items: stretch;
    }

    .recipe-topbar-actions{
        width: 100%;
        justify-content: flex-end;
    }

    .recipe-header-meta{
        align-items: stretch;
    }
}

/* Lightweight progress bar (replaces PrimeNG ProgressBar) */
.gf-progress-bar{
    width: 100%;
    height: 6px;
    background: #f3f4f6;
    overflow: hidden;
    border-radius: 999px;
}

.gf-progress-bar__bar{
    display: block;
    height: 100%;
    width: 35%;
    background: #f59e0b;
    animation: gf-progress 1.2s ease-in-out infinite;
}

@keyframes gf-progress{
    0%{transform: translateX(-100%);}
    50%{transform: translateX(20%);}
    100%{transform: translateX(200%);}
}

/* Simple carousel substitute */
.gf-carousel{
    overflow-x: auto;
    padding-bottom: 0.5rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    /* fade hint at the right edge to indicate more content */
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    /* smooth momentum scrolling on iOS */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #c8a84b transparent;
}

.gf-carousel::-webkit-scrollbar {
    height: 4px;
}

.gf-carousel::-webkit-scrollbar-track {
    background: transparent;
}

.gf-carousel::-webkit-scrollbar-thumb {
    background-color: #c8a84b;
    border-radius: 4px;
}

.gf-carousel-list{
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0.25rem 0.5rem 0.25rem;
    scroll-snap-type: x mandatory;
}

.gf-carousel-item{
    flex: 0 0 240px;
    scroll-snap-align: start;
}

/* Simple lightbox */
.gf-lightbox{
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.gf-lightbox-content{
    width: min(1000px, 95vw);
    max-height: 90vh;
    background: #111827;
    color: #fff;
    border-radius: 12px;
    overflow: auto;
    padding: 1rem;
}

.gf-lightbox-content img{
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.gf-lightbox-close{
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Header menu panel */
.header-menu-backdrop{
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.05);
    z-index: 1100;
}

.menu-button-wrapper{
    position: relative;
    display: inline-flex;
    align-items: center;
}

.header-menu-panel{
    position: absolute;
    right: 0;
    left: auto;
    top: calc(100% + 0.5rem);
    width: min(520px, 92vw);
    max-height: min(80vh, 42rem);
    overflow-y: auto;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    padding: 0.75rem 1rem;
    z-index: 1101;
}

.header-menu-panel .menu-close{
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
}

@media (max-width: 768px){
    .header-menu-panel{
        right: 0;
        left: auto;
        width: min(92vw, 520px);
        top: calc(100% + 0.5rem);
    }
}

@media (max-width: 576px){
    .header-menu-panel{
        position: fixed;
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        width: 90vw;
        max-width: 340px;
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* Reserve space for ads to reduce CLS */
.adsbygoogle{
    min-height: 250px;
}
/* global layout end*/

/* CLS: reserve space for common images */
.img-link{
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.step-image-container{
    width: 400px;
    flex: 0 0 400px;
}

.step-image-wrapper{
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.step-image-placeholder{
    width: 100%;
    aspect-ratio: 1 / 1;
}

@media (max-width: 768px){
    .step-image-container{
        width: 200px;
        flex-basis: 200px;
    }

    .step-image-wrapper{
        max-width: 200px;
    }
}

/* Hero images should never stretch vertically */
.hero-image{
    display: block;
    width: 100%;
    height: auto;
    /* Most recipe hero images are authored at 1200x800. Reserving this ratio
       avoids CLS when the <img> is inserted and while it loads. */
    aspect-ratio: 3 / 2;
    object-fit: contain;
}

/* The hero title image uses PrimeFlex surface utility classes for borders/hover.
   Ensure the image itself doesn't get a background-color on hover. */
#titleImage:hover{
    background-color: transparent !important;
}

/* Center the video icon overlay inside the hero image */
.video-icon-center{
    position: absolute;
    top: 12%;
    left: 50%;
    transform: translate(-50%, 0);
    width: 3.5rem;
    height: 3.5rem;
.video-icon-center .p-button-icon,
.video-icon-center i{
    font-size: 1.25rem;
    color: #ec4899;
}
    justify-content: center;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    z-index: 2;
    text-decoration: none;
}

.video-icon-center .p-button-icon{
    font-size: 1.5rem;
    line-height: 1;
    width: 1.5rem;
    height: 1.5rem;
    display: inline-block;
    color: #e11d48;
}

@media (max-width: 768px){
    .video-icon-center{
        top: 10%;
        width: 3rem;
        height: 3rem;
    }

    .video-icon-center .p-button-icon{
        font-size: 1.25rem;
        width: 1.25rem;
        height: 1.25rem;
    }
}

.hero-media-placeholder{
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
}

.logo-link img{
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-social-icon{
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.app-link img{
    display: block;
    width: 7rem;
    height: auto;
    aspect-ratio: 3 / 1;
    object-fit: contain;
}

/* colors start*/
.bg-footer{
    background-color: #ffffff;
    color: #495057;
    box-shadow: 0 3px 5px rgba(0,0,0,.02), 0 0 2px rgba(0,0,0,.05), 0 1px 4px rgba(0,0,0,.08);
    border-top: 2px solid #a47d06;
    /* Footer UI data is fetched async; reserve space to avoid height jumps. */
    min-height: 14rem;
}

/* Force dark text inside footer to match header card style */
.bg-footer strong,
.bg-footer b,
.bg-footer span,
.bg-footer p,
.bg-footer div,
.bg-footer a,
.bg-footer label{
    color: #495057 !important;
}

/* Footer: reserve row heights so async data doesn't expand layout */
.bg-footer .footer-social-row{
    min-height: 24px;
}

.bg-footer .footer-apps-header,
.bg-footer .footer-copyright{
    min-height: 1.25rem;
}

.bg-footer .footer-apps-row{
    min-height: 37px;
}

.bg-footer .footer-links-row{
    min-height: 1rem;
}
/* colors end*/

.recipe-section-divider{
    border: none;
    border-top: 2px solid #a47d06;
    margin: 1rem 0;
    opacity: 0.4;
}

/* recipe description styling */
.recipe-description {
    color: #111827;
    min-height: 4rem;
    line-height: 1.5;
}

.recipe-description a {
    color: #111827 !important;
    text-decoration: underline;
}

.recipe-description a:hover {
    color: #374151 !important;
}

.recipe-step-description {
    color: #111827;
}

.recipe-step-description a {
    color: #111827 !important;
    text-decoration: underline;
}

.recipe-step-description a:hover {
    color: #374151 !important;
}
/* ads start */
.sidebar-ads{
    margin-left: 10px;
    /* width: 80%; */
    /* height: 30px; */    
    /* background-color: rgb(236, 236, 241);  */
}

.sidebar-block{
    margin-left: 10px;
    /* width: 80%; */
    /* background-color: rgb(236, 236, 241); */
}
/* ads end */

.ui-button{
    color: #1a1a1a!important;
    background-color: var(--yellow-600, #eab308);
    border: none;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

/* Icon-only buttons (header actions) */
.icon-only,
.icon-only button{
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.2rem !important;
    border-radius: 0 !important;
}

.icon-only i{
    color: #a47d06 !important;
    font-size: 1.25rem;
}

/* Details summary icon (tags) */
.tags-details > summary{
    list-style: none;
}

.tags-details > summary::-webkit-details-marker{
    display: none;
}

.tags-details{
    position: relative;
}

.tags-details > summary.ui-button,
.tags-details > summary button{
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.2rem !important;
    border-radius: 0 !important;
}

.tags-modal{
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.tags-modal[hidden]{
    display: none !important;
}

.tags-modal-dialog{
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: min(100%, 520px);
    max-height: 80vh;
    overflow-y: auto;
}

.tags-modal-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    gap: 0.75rem;
}

.tags-modal-header h3{
    margin: 0;
    font-size: 1.125rem;
    color: #111827;
}

.tags-modal-body{
    padding: 1rem;
    color: #374151;
    line-height: 1.6;
}

.tags-popup-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #6b7280;
    padding: 0.2rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tags-popup-close:hover {
    color: #111;
}

/* about component */
.about-text{
    font-family: 'gfb';
    font-size: large;
    font-weight: 500;
}

/* main component */
.main-content{
    /* Keep footer offscreen on initial render to avoid CLS attributed to footer
       when above-the-fold content loads in asynchronously. */
    min-height: 100vh;
}

.yellow{
    color: #fdc236;
}

.green{
    color: #689f38;
}

.red{
    color: #a31545;
}


.video-icon{
    font-size: 1.5rem;
    left: 2px; 
    top: 2px; 
}



.recommended-link{
    text-decoration: unset!important;
    color: black;
}

.search-result-card{
    display: block;
}

.search-result-card > div > div{
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.search-result-card:hover > div > div,
.search-result-card:focus-visible > div > div{
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
    border-color: #d6b36a !important;
}

.search-result-list{
    margin: 0;
    padding-left: 1.25rem;
}

.search-result-list li{
    margin: 0 0 0.5rem;
}

.search-result-list-link{
    display: inline;
    color: #7c5b12;
    text-decoration: none;
}

.search-result-list-link:hover,
.search-result-list-link:focus-visible{
    text-decoration: underline;
}

.card-link{
    text-decoration: unset!important;
    color: black;
}

.recipe-collection-card{
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    padding: 0.75rem;
}

.recipe-collection-inner{
    border-radius: 10px;
}

.recipe-collection-card .p-card-desc{
    color: #111827;
}

.p-card-desc{
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
            line-clamp: 5; 
    -webkit-box-orient: vertical;
    height: 6.5rem;
}

.one-line-text{
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
            line-clamp: 1; 
    -webkit-box-orient: vertical;
}

figure{
    padding: unset!important;
    margin: unset!important;
}

.recipe-detail-mark {
    padding: 0px;
    background: unset;
    color: #735804;
    font-weight: bold;
    margin-right: 10px;
    align-self: center;
}

/* Reserve space for the action icon row to avoid shifts */
.recipe-detail-actions{
    min-height: 1.5rem;
}

.recipe-detail-actions > .flex{
    min-height: 1.5rem;
}

.text-fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    margin-right: 3px;
    cursor: pointer;
    border-style: solid;
    border-width: 2px;
    background-color: white;
    font-size: 0.85rem;
    font-weight: normal;
    flex-shrink: 0;
}

.text-fab-orange {
    border-color: var(--yellow-800, #a47d06);
    color: var(--yellow-800, #a47d06);
}

.text-fab-green {
    border-color: green;
    color: green;
}

.text-fab-blue {
    border-color: var(--blue-800, #305965);
    color: var(--blue-800, #305965);
}


.text-fab-purple {
    border-color: #7e55be;
    color: #7e55be;
}

.text-fab-gray {
    border-color: var(--gray-800, #4a4747);
    color: var(--gray-800, #4a4747);
}

.text-fab-brown1 {
    border-color: brown;
    color: brown;
}

.text-fab-lightseagreen {
    border-color: var(--teal-800, #00695c);
    color: var(--teal-800, #00695c);
}

.text-fab-fuchsia {
    border-color: rgb(174, 71, 174);
    color: rgb(174, 71, 174);
}

.text-fab-darkbrown {
    border-color: rgba(80, 51, 51, 0.808);
    color: rgba(80, 51, 51, 0.808);
}

.text-fab-blue {
    border-color: var(--blue-800, #305965);
    color: var(--blue-800, #305965);
}


.grid{
    margin: 0px!important;
}

.p-scrolltop.p-link{
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    /* Match the SpeedDial menu button look (uses the same yellow token in this theme). */
    background-color: var(--yellow-600) !important;
    border: 1px solid var(--yellow-700) !important;
    color: var(--surface-0, #fff) !important;
}

.p-scrolltop.p-link:hover{
    background-color: var(--yellow-700) !important;
}

.p-scrolltop.p-link:focus-visible{
    outline: 2px solid var(--yellow-800);
    outline-offset: 2px;
}

.p-scrolltop.p-link .pi{
    color: inherit;
}

.up-icon {
    color: red;
    text-shadow: black 1px 0 1px;
}

.down-icon {
    color: green;
    text-shadow: black 1px 0 1px;
}

.no-icon {
    display: none;
    visibility: hidden;
}

.same-value {
    font-weight: bold;
    color: green;
}

.active-link .capitalize{
    text-decoration: underline;
}

.img-link:hover{
    opacity: 0.7;
}

.table, .th, .td {
    border: 1px solid;
}

.td{
    padding: 10px;
}

.table {
    border-collapse: collapse;
}

.nowrap{
    white-space: nowrap;
}

a {
    color: #7a5b00;
}

.header-menu-tree {
    padding: 0.25rem 0.5rem;
}

.header-menu-tree ul {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0 0.25rem 0.75rem;
}

.header-menu-tree li {
    margin: 0.3rem 0;
}

.header-menu-tree .menu-section {
    margin-top: 0.5rem;
    padding-top: 0.4rem;
    border-top: 1px solid #f3f4f6;
}

.header-menu-tree .menu-section-details {
    display: block;
}

.header-menu-tree .menu-section-title {
    font-size: 0.95rem;
    color: #111827;
    font-weight: 500;
    padding: 0.25rem 0;
}

.header-menu-tree .menu-section-details > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.header-menu-tree .menu-section-details > summary::-webkit-details-marker {
    display: none;
}

.header-menu-tree .menu-section-details > summary::before {
    content: '▸';
    font-size: 0.8rem;
    color: #6b7280;
    transition: transform 0.15s ease;
}

.header-menu-tree .menu-section-details[open] > summary::before {
    transform: rotate(90deg);
}

.header-menu-tree .menu-section-list {
    padding-left: 1rem;
    padding-top: 0.35rem;
}

.header-menu-tree a,
.header-menu-tree .menu-label {
    color: #111827;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.header-menu-tree a:hover {
    text-decoration: underline;
    color: #a47d06;
}

.header-menu-tree .menu-node-row {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.header-menu-tree .menu-toggle {
    border: none;
    background: transparent;
    padding: 0.1rem 0.2rem;
    cursor: pointer;
    color: #6b7280;
}

.header-menu-tree .menu-label {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font-weight: 500;
    color: #111827;
}

/* Reserve space for hero + description to reduce CLS */
.recipe-hero-wrapper{
    min-height: clamp(200px, 60vw, 720px);
}

.recipe-hero-wrapper figure{
    min-height: clamp(180px, 58vw, 700px);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Reserve space for steps list (grid-nogutter culprit) */
.recipe-steps-section .grid-nogutter{
    min-height: clamp(720px, 90vw, 1400px);
}

.recipe-steps-section{
    min-height: clamp(720px, 90vw, 1400px);
}

/* Stabilize action icon row to avoid font/icon shift */
.recipe-detail-page header .ui-button.icon-only{
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.recipe-detail-page header .flex.gap-1.align-items-center{
    min-height: 2.25rem;
}

.recipe-detail-page header .pi{
    line-height: 1;
}

/* Performance: skip rendering below-the-fold sections until needed */
.recipe-detail-page section{
    content-visibility: auto;
    contain-intrinsic-size: 900px 1000px;
}

.recipe-detail-page header,
.recipe-detail-page .recipe-topbar,
.recipe-detail-page .recipe-tags-row,
.recipe-detail-page .recipe-hero-wrapper,
.recipe-detail-page .recipe-steps-section{
    content-visibility: visible;
    contain-intrinsic-size: auto;
}