/*
 * PaGluten static utility layer.
 * This file is committed and served directly; production does not require a CSS build step.
 */

:root {
    color-scheme: light;
    --pg-color-brand-50: #f0fdf4;
    --pg-color-brand-100: #dcfce7;
    --pg-color-brand-600: #16a34a;
    --pg-color-brand-700: #15803d;
    --pg-color-brand-800: #166534;
    --pg-color-surface: #ffffff;
    --pg-color-background: #f8fafc;
    --pg-color-text: #172033;
    --pg-color-muted: #64748b;
    --pg-color-border: #e2e8f0;
    --pg-radius-md: 0.5rem;
    --pg-radius-lg: 0.75rem;
    --pg-shadow-sm: 0 1px 2px rgb(15 23 42 / 0.06);
    --pg-shadow-md: 0 10px 25px rgb(15 23 42 / 0.08);
    --pg-content-width: 72rem;
}

.pg-page {
    background: var(--pg-color-background);
    color: var(--pg-color-text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
}

.pg-main {
    width: 100%;
}

.pg-main:focus {
    outline: none;
}

.pg-skip-link {
    position: absolute;
    z-index: 1100;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.65rem 0.9rem;
    color: #ffffff;
    background: var(--pg-color-brand-800);
    border-radius: var(--pg-radius-md);
    box-shadow: var(--pg-shadow-md);
    transform: translateY(-150%);
    transition: transform 150ms ease;
}

.pg-skip-link:focus {
    color: #ffffff;
    transform: translateY(0);
}

.pg-nav {
    box-shadow: var(--pg-shadow-sm);
}

.pg-nav .navbar-brand {
    letter-spacing: 0;
    transition:
        color 160ms ease,
        transform 160ms ease;
}

.pg-nav .navbar-brand:hover,
.pg-nav .navbar-brand:focus-visible {
    color: var(--pg-color-brand-800) !important;
    transform: translateY(-1px);
}

.pg-nav .navbar-brand:focus-visible,
.pg-public-nav .nav-link:focus-visible,
.pg-admin-nav-link:focus-visible,
.pg-admin-nav .btn-outline-secondary:focus-visible,
.pg-admin-nav .btn-outline-danger:focus-visible {
    outline: 3px solid rgb(22 163 74 / 0.24);
    outline-offset: 3px;
    box-shadow: none;
}

.pg-public-nav {
    --bs-navbar-padding-y: 0.7rem;
}

.pg-public-nav .navbar-nav {
    gap: 0.25rem;
}

.pg-public-nav .nav-link {
    position: relative;
    padding: 0.45rem 0.8rem !important;
    color: var(--pg-color-muted);
    font-weight: 650;
    line-height: 1.2;
    border-radius: 999px;
    transition:
        color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.pg-public-nav .nav-link:hover,
.pg-public-nav .nav-link:focus {
    color: var(--pg-color-brand-800);
    background: var(--pg-color-brand-50);
}

.pg-public-nav .nav-link.active {
    color: var(--pg-color-brand-800);
}

.pg-public-nav .nav-link.active::after {
    position: absolute;
    right: 0.8rem;
    bottom: 0.22rem;
    left: 0.8rem;
    height: 2px;
    content: "";
    background: var(--pg-color-brand-600);
    border-radius: 999px;
}

.pg-admin-nav {
    padding-block: 0.65rem;
}

.pg-admin-nav-link {
    padding: 0.35rem 0.65rem;
    color: var(--pg-color-muted);
    font-weight: 650;
    line-height: 1.2;
    border-radius: 999px;
    transition:
        color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease;
}

.pg-admin-nav-link:hover,
.pg-admin-nav-link:focus {
    color: var(--pg-color-brand-800);
    background: var(--pg-color-brand-50);
}

.pg-admin-nav-link.active {
    color: var(--pg-color-brand-800);
    background: var(--pg-color-brand-100);
    box-shadow: inset 0 0 0 1px rgb(22 163 74 / 0.18);
}

.pg-admin-nav .btn-outline-secondary,
.pg-admin-nav .btn-outline-danger {
    border-radius: 999px;
    font-weight: 650;
}

.pg-home-hero {
    position: relative;
    isolation: isolate;
    min-height: 27rem;
    overflow: hidden;
    background-image: url("../images/home-hero-gluten-free.webp");
    background-position: center;
    background-size: cover;
    border-radius: var(--pg-radius-lg);
    box-shadow: var(--pg-shadow-md);
}

.pg-home-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background: linear-gradient(
        90deg,
        rgb(255 255 255 / 0.97) 0%,
        rgb(248 255 250 / 0.92) 46%,
        rgb(240 253 244 / 0.56) 72%,
        rgb(240 253 244 / 0.38) 100%
    );
}

.pg-home-hero-content {
    max-width: 48rem;
}

.pg-home-hero-card {
    color: var(--pg-color-text);
    background: rgb(255 255 255 / 0.82);
    border: 1px solid rgb(255 255 255 / 0.9);
    border-radius: var(--pg-radius-lg);
    box-shadow: 0 12px 30px rgb(15 23 42 / 0.1);
    backdrop-filter: blur(10px);
}

.pg-home-hero-card h2 {
    color: var(--pg-color-brand-800);
}

.pg-home-hero .btn:focus-visible {
    outline: 3px solid rgb(22 163 74 / 0.3);
    outline-offset: 3px;
    box-shadow: none;
}

@media (max-width: 991.98px) {
    .pg-home-hero {
        min-height: auto;
        background-position: 62% center;
    }

    .pg-home-hero::before {
        background: linear-gradient(
            135deg,
            rgb(255 255 255 / 0.97) 0%,
            rgb(248 255 250 / 0.9) 60%,
            rgb(240 253 244 / 0.7) 100%
        );
    }

    .pg-home-hero-content {
        max-width: 42rem;
    }
}

@media (max-width: 575.98px) {
    .pg-home-hero {
        background-position: 68% center;
        border-radius: var(--pg-radius-md);
    }

    .pg-home-hero::before {
        background: rgb(248 255 250 / 0.91);
    }

    .pg-home-hero .display-5 {
        font-size: 2.25rem;
        line-height: 1.1;
    }

    .pg-home-hero .btn {
        width: 100%;
    }

    .pg-home-hero-card {
        background: rgb(255 255 255 / 0.88);
        backdrop-filter: blur(6px);
    }
}

.pg-home-section {
    padding-block: clamp(2.75rem, 6vw, 4.5rem);
    border-top: 1px solid var(--pg-color-border);
}

.pg-home-section-soft {
    padding-inline: 0.75rem;
    margin-inline: -0.75rem;
    background: var(--pg-color-brand-50);
    border-bottom: 1px solid rgb(22 163 74 / 0.1);
}

.pg-home-section-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}

.pg-home-section-kicker {
    margin: 0 0 0.3rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--pg-color-brand-700);
    text-transform: uppercase;
}

.pg-home-section-link {
    color: var(--pg-color-brand-700);
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22rem;
}

.pg-home-section-link:hover,
.pg-home-section-link:focus {
    color: var(--pg-color-brand-800);
}

.pg-home-section-link:focus-visible,
.pg-home-places .btn:focus-visible {
    outline: 3px solid rgb(22 163 74 / 0.24);
    outline-offset: 3px;
    box-shadow: none;
}

.pg-home-content-card {
    position: relative;
    overflow: hidden;
    background: var(--pg-color-surface);
    border: 1px solid var(--pg-color-border);
    border-radius: var(--pg-radius-md);
    box-shadow: var(--pg-shadow-sm);
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.pg-home-content-card:hover {
    border-color: rgb(22 163 74 / 0.3);
    box-shadow: var(--pg-shadow-md);
    transform: translateY(-2px);
}

.pg-home-content-card:focus-within {
    border-color: var(--pg-color-brand-600);
    box-shadow: 0 0 0 3px rgb(22 163 74 / 0.18), var(--pg-shadow-md);
}

.pg-home-card-media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--pg-color-brand-50);
    border-bottom: 1px solid var(--pg-color-border);
}

.pg-home-card-placeholder {
    display: grid;
    place-items: center;
    background: var(--pg-color-brand-50);
}

.pg-home-card-placeholder::after {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--pg-color-brand-800);
    content: "PaGluten.com";
    opacity: 0.42;
}

.pg-home-content-card .card-body {
    padding: 1.25rem;
}

.pg-home-card-kicker {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--pg-color-brand-700);
    text-transform: uppercase;
}

.pg-home-card-title {
    margin-bottom: 0.65rem;
    font-weight: 750;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.pg-home-card-summary {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 1rem;
    color: var(--pg-color-muted);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.pg-home-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    margin-bottom: 0.65rem;
    font-size: 0.82rem;
    color: var(--pg-color-muted);
}

.pg-home-card-link {
    position: relative;
    z-index: 1;
    display: inline-block;
    align-self: flex-start;
    color: var(--pg-color-brand-700);
    font-weight: 750;
    text-decoration: none;
}

.pg-home-card-link:hover,
.pg-home-card-link:focus {
    color: var(--pg-color-brand-800);
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

.pg-home-card-link:focus-visible {
    outline: none;
}

.pg-home-product-status {
    white-space: normal;
    text-align: left;
}

.pg-home-note {
    padding: 0.75rem 1rem;
    margin: 1.25rem 0 0;
    font-size: 0.9rem;
    color: var(--pg-color-muted);
    border-left: 3px solid var(--pg-color-brand-600);
}

.pg-home-empty {
    padding: 1rem 1.25rem;
    color: var(--pg-color-muted);
    background: var(--pg-color-surface);
    border: 1px dashed var(--pg-color-border);
    border-radius: var(--pg-radius-md);
}

.pg-home-places {
    padding: clamp(2rem, 5vw, 3.25rem) clamp(1rem, 3vw, 2rem);
    background: var(--pg-color-brand-50);
    border-block: 1px solid rgb(22 163 74 / 0.14);
}

@media (max-width: 575.98px) {
    .pg-home-section {
        padding-block: 2.5rem;
    }

    .pg-home-section-header {
        align-items: flex-start;
    }

    .pg-home-section-link {
        width: 100%;
    }

    .pg-home-content-card .card-body {
        padding: 1.1rem;
    }

    .pg-home-places .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pg-home-content-card {
        transition: none;
    }

    .pg-home-content-card:hover {
        transform: none;
    }
}

.pg-articles-header,
.pg-recipes-header,
.pg-products-header,
.pg-restaurants-header {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--pg-color-border);
}

.pg-articles-header-main,
.pg-recipes-header-main,
.pg-products-header-main,
.pg-restaurants-header-main {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 3rem;
    align-items: end;
    justify-content: space-between;
}

.pg-articles-header-main > div,
.pg-recipes-header-main > div,
.pg-products-header-main > div,
.pg-restaurants-header-main > div {
    max-width: 46rem;
}

.pg-articles-count,
.pg-recipes-count,
.pg-products-count,
.pg-restaurants-count {
    max-width: 18rem;
    padding-left: 1rem;
    color: var(--pg-color-muted);
    border-left: 3px solid var(--pg-color-brand-600);
}

.pg-articles-count strong,
.pg-recipes-count strong,
.pg-products-count strong,
.pg-restaurants-count strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1.2;
    color: var(--pg-color-text);
}

.pg-articles-category-filter {
    margin-top: 1.5rem;
    overflow: hidden;
    background: var(--pg-color-surface);
    border: 1px solid var(--pg-color-border);
    border-radius: var(--pg-radius-md);
}

.pg-articles-category-summary {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    min-height: 4.25rem;
    padding: 0.8rem 1rem;
    cursor: pointer;
    list-style: none;
    transition: background-color 160ms ease;
}

.pg-articles-category-summary::-webkit-details-marker {
    display: none;
}

.pg-articles-category-summary:hover {
    background: var(--pg-color-brand-50);
}

.pg-articles-category-summary:focus-visible {
    outline: 3px solid rgb(22 163 74 / 0.24);
    outline-offset: -3px;
}

.pg-articles-category-label {
    display: block;
    margin-bottom: 0.12rem;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--pg-color-brand-700);
    text-transform: uppercase;
}

.pg-articles-category-summary strong {
    display: block;
    color: var(--pg-color-text);
}

.pg-articles-category-chevron {
    flex: 0 0 auto;
    width: 0.7rem;
    height: 0.7rem;
    margin-right: 0.25rem;
    border-right: 2px solid var(--pg-color-brand-700);
    border-bottom: 2px solid var(--pg-color-brand-700);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 160ms ease;
}

.pg-articles-category-filter[open] .pg-articles-category-chevron {
    transform: rotate(225deg) translate(-2px, -2px);
}

.pg-articles-category-panel {
    padding: 1rem;
    border-top: 1px solid var(--pg-color-border);
}

.pg-articles-category-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.pg-articles-category-link {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    min-height: 3rem;
    padding: 0.65rem 0.8rem;
    color: var(--pg-color-text);
    text-decoration: none;
    border: 1px solid var(--pg-color-border);
    border-radius: 0.375rem;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease;
}

.pg-articles-category-link > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.pg-articles-category-link:hover,
.pg-articles-category-link:focus {
    color: var(--pg-color-brand-800);
    background: var(--pg-color-brand-50);
    border-color: rgb(22 163 74 / 0.3);
}

.pg-articles-category-link:focus-visible {
    outline: 3px solid rgb(22 163 74 / 0.24);
    outline-offset: 2px;
}

.pg-articles-category-link.active {
    font-weight: 750;
    color: var(--pg-color-brand-800);
    background: var(--pg-color-brand-50);
    border-color: rgb(22 163 74 / 0.38);
}

.pg-articles-category-count {
    flex: 0 0 auto;
    min-width: 1.8rem;
    padding: 0.12rem 0.4rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--pg-color-brand-800);
    text-align: center;
    background: var(--pg-color-brand-100);
    border-radius: 999px;
}

.pg-articles-category-empty {
    padding-top: 0.85rem;
    margin-top: 0.85rem;
    color: var(--pg-color-muted);
    border-top: 1px dashed var(--pg-color-border);
}

.pg-articles-grid {
    align-items: stretch;
}

.pg-articles-state {
    padding: 1.25rem;
    color: var(--pg-color-muted);
    background: var(--pg-color-surface);
    border: 1px dashed var(--pg-color-border);
    border-radius: var(--pg-radius-md);
}

.pg-articles-state-warning {
    color: #854d0e;
    background: #fefce8;
    border-color: #fde68a;
    border-style: solid;
}

.pg-articles-page .pagination {
    flex-wrap: wrap;
    gap: 0.4rem;
}

.pg-articles-page .page-link {
    min-width: 2.5rem;
    color: var(--pg-color-brand-700);
    text-align: center;
    border-color: var(--pg-color-border);
    border-radius: 0.375rem !important;
}

.pg-articles-page .page-link:hover,
.pg-articles-page .page-link:focus {
    color: var(--pg-color-brand-800);
    background: var(--pg-color-brand-50);
    border-color: rgb(22 163 74 / 0.3);
}

.pg-articles-page .page-link:focus-visible {
    outline: 3px solid rgb(22 163 74 / 0.24);
    outline-offset: 2px;
    box-shadow: none;
}

.pg-articles-page .page-item.active .page-link {
    color: #ffffff;
    background: var(--pg-color-brand-700);
    border-color: var(--pg-color-brand-700);
}

.pg-articles-page .page-item.disabled .page-link {
    color: #94a3b8;
    background: #f8fafc;
}

@media (max-width: 575.98px) {
    .pg-articles-header-main,
    .pg-recipes-header-main,
    .pg-products-header-main,
    .pg-restaurants-header-main {
        align-items: flex-start;
    }

    .pg-articles-count,
    .pg-recipes-count,
    .pg-products-count,
    .pg-restaurants-count {
        width: 100%;
        max-width: none;
    }

    .pg-articles-category-links {
        grid-template-columns: minmax(0, 1fr);
    }

    .pg-articles-page .pagination {
        justify-content: flex-start !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pg-articles-category-summary,
    .pg-articles-category-chevron,
    .pg-articles-category-link {
        transition: none;
    }
}

.pg-recipes-filter,
.pg-list-filter {
    margin-top: 1.5rem;
    overflow: hidden;
    background: var(--pg-color-surface);
    border: 1px solid var(--pg-color-border);
    border-radius: var(--pg-radius-md);
}

.pg-recipes-filter-summary,
.pg-list-filter-summary {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    min-height: 4.25rem;
    padding: 0.8rem 1rem;
    cursor: pointer;
    list-style: none;
    transition: background-color 160ms ease;
}

.pg-recipes-filter-summary::-webkit-details-marker,
.pg-list-filter-summary::-webkit-details-marker {
    display: none;
}

.pg-recipes-filter-summary:hover,
.pg-list-filter-summary:hover {
    background: var(--pg-color-brand-50);
}

.pg-recipes-filter-summary:focus-visible,
.pg-list-filter-summary:focus-visible {
    outline: 3px solid rgb(22 163 74 / 0.24);
    outline-offset: -3px;
}

.pg-recipes-filter-label,
.pg-list-filter-label {
    display: block;
    margin-bottom: 0.12rem;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--pg-color-brand-700);
    text-transform: uppercase;
}

.pg-recipes-filter-summary strong,
.pg-list-filter-summary strong {
    display: block;
    color: var(--pg-color-text);
}

.pg-recipes-filter-chevron,
.pg-list-filter-chevron {
    flex: 0 0 auto;
    width: 0.7rem;
    height: 0.7rem;
    margin-right: 0.25rem;
    border-right: 2px solid var(--pg-color-brand-700);
    border-bottom: 2px solid var(--pg-color-brand-700);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 160ms ease;
}

.pg-recipes-filter[open] .pg-recipes-filter-chevron,
.pg-list-filter[open] .pg-list-filter-chevron {
    transform: rotate(225deg) translate(-2px, -2px);
}

.pg-recipes-filter-panel,
.pg-list-filter-panel {
    padding: 1rem;
    border-top: 1px solid var(--pg-color-border);
}

.pg-recipes-filter-heading,
.pg-list-filter-heading {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.pg-recipes-filter-heading h2,
.pg-recipes-filter-group h2,
.pg-list-filter-heading h2,
.pg-list-filter-group h2 {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--pg-color-text);
}

.pg-recipes-filter-clear,
.pg-list-filter-clear {
    color: var(--pg-color-brand-700);
    font-size: 0.88rem;
    font-weight: 700;
    text-underline-offset: 0.2rem;
}

.pg-recipes-filter-clear:hover,
.pg-recipes-filter-clear:focus,
.pg-list-filter-clear:hover,
.pg-list-filter-clear:focus {
    color: var(--pg-color-brand-800);
}

.pg-recipes-filter-clear:focus-visible,
.pg-list-filter-clear:focus-visible {
    outline: 3px solid rgb(22 163 74 / 0.24);
    outline-offset: 3px;
}

.pg-recipes-filter-links,
.pg-recipes-difficulty-links,
.pg-list-filter-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.pg-recipes-filter-link,
.pg-list-filter-link {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    min-height: 3rem;
    padding: 0.65rem 0.8rem;
    color: var(--pg-color-text);
    text-decoration: none;
    border: 1px solid var(--pg-color-border);
    border-radius: 0.375rem;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease;
}

.pg-recipes-filter-link > span:first-child,
.pg-list-filter-link > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.pg-recipes-filter-link:hover,
.pg-recipes-filter-link:focus,
.pg-list-filter-link:hover,
.pg-list-filter-link:focus {
    color: var(--pg-color-brand-800);
    background: var(--pg-color-brand-50);
    border-color: rgb(22 163 74 / 0.3);
}

.pg-recipes-filter-link:focus-visible,
.pg-list-filter-link:focus-visible {
    outline: 3px solid rgb(22 163 74 / 0.24);
    outline-offset: 2px;
}

.pg-recipes-filter-link.active,
.pg-list-filter-link.active {
    font-weight: 750;
    color: var(--pg-color-brand-800);
    background: var(--pg-color-brand-50);
    border-color: rgb(22 163 74 / 0.38);
}

.pg-recipes-filter-count {
    flex: 0 0 auto;
    min-width: 1.8rem;
    padding: 0.12rem 0.4rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--pg-color-brand-800);
    text-align: center;
    background: var(--pg-color-brand-100);
    border-radius: 999px;
}

.pg-recipes-filter-empty,
.pg-list-filter-empty {
    padding-top: 0.85rem;
    color: var(--pg-color-muted);
}

.pg-recipes-filter-group,
.pg-list-filter-group {
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px dashed var(--pg-color-border);
}

.pg-recipes-filter-group h2,
.pg-list-filter-group h2 {
    margin-bottom: 0.75rem;
}

@media (max-width: 575.98px) {
    .pg-recipes-filter-links,
    .pg-recipes-difficulty-links,
    .pg-list-filter-links {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pg-recipes-filter-summary,
    .pg-recipes-filter-chevron,
    .pg-recipes-filter-link,
    .pg-list-filter-summary,
    .pg-list-filter-chevron,
    .pg-list-filter-link {
        transition: none;
    }
}

.pg-footer {
    color: var(--pg-color-muted);
}

.pg-container {
    width: min(100% - 2rem, var(--pg-content-width));
    margin-inline: auto;
}

.pg-surface {
    background: var(--pg-color-surface);
    border: 1px solid var(--pg-color-border);
}

.pg-card {
    background: var(--pg-color-surface);
    border: 1px solid var(--pg-color-border);
    border-radius: var(--pg-radius-lg);
    box-shadow: var(--pg-shadow-sm);
}

.pg-rounded {
    border-radius: var(--pg-radius-md);
}

.pg-rounded-lg {
    border-radius: var(--pg-radius-lg);
}

.pg-shadow {
    box-shadow: var(--pg-shadow-md);
}

.pg-flex {
    display: flex;
}

.pg-grid {
    display: grid;
}

.pg-grow {
    flex-grow: 1;
}

.pg-wrap {
    flex-wrap: wrap;
}

.pg-items-center {
    align-items: center;
}

.pg-justify-between {
    justify-content: space-between;
}

.pg-gap-2 {
    gap: 0.5rem;
}

.pg-gap-4 {
    gap: 1rem;
}

.pg-stack > * + * {
    margin-block-start: 1rem;
}

.pg-grid-responsive {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.pg-recipe-builder-row {
    background: #ffffff;
    transition:
        opacity 140ms ease,
        transform 140ms ease,
        box-shadow 140ms ease,
        border-color 140ms ease;
}

.pg-recipe-order-handle {
    min-width: 2.25rem;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.pg-recipe-order-handle:active {
    cursor: grabbing;
}

.pg-recipe-is-sorting,
.pg-recipe-is-sorting * {
    cursor: grabbing !important;
    user-select: none !important;
}

.pg-recipe-list-is-sorting .pg-recipe-builder-row {
    transition:
        transform 120ms ease,
        opacity 120ms ease,
        border-color 120ms ease;
}

.pg-recipe-drag-source {
    opacity: 0.32;
    background: linear-gradient(135deg, rgb(22 163 74 / 0.08), rgb(22 163 74 / 0.03));
    border-color: var(--pg-color-brand-600) !important;
    outline: 2px dashed rgb(22 163 74 / 0.45);
    outline-offset: 2px;
}

.pg-recipe-drag-clone {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1200;
    box-sizing: border-box;
    margin: 0 !important;
    pointer-events: none;
    background: #ffffff;
    border-color: var(--pg-color-brand-600) !important;
    border-radius: var(--pg-radius-md);
    box-shadow: 0 22px 55px rgb(15 23 42 / 0.22);
    opacity: 0.99;
    transform-origin: top left;
    will-change: transform;
}

.pg-recipe-drag-clone .pg-recipe-order-handle {
    cursor: grabbing;
}

@media (prefers-reduced-motion: reduce) {
    .pg-recipe-builder-row,
    .pg-recipe-list-is-sorting .pg-recipe-builder-row {
        transition: none;
    }

    .pg-recipe-drag-clone {
        box-shadow: 0 12px 30px rgb(15 23 42 / 0.18);
    }
}

.pg-p-4 {
    padding: 1rem;
}

.pg-p-6 {
    padding: 1.5rem;
}

.pg-py-4 {
    padding-block: 1rem;
}

.pg-my-4 {
    margin-block: 1rem;
}

.pg-text-brand {
    color: var(--pg-color-brand-700);
}

.pg-text-muted {
    color: var(--pg-color-muted);
}

.pg-bg-brand-soft {
    background: var(--pg-color-brand-50);
}

.pg-login-shell {
    display: grid;
    min-height: clamp(32rem, 70vh, 46rem);
    padding-block: 1rem;
    place-items: center;
}

.pg-login-layout {
    display: grid;
    width: min(100%, 60rem);
    overflow: hidden;
    background: var(--pg-color-surface);
    border: 1px solid var(--pg-color-border);
    border-radius: 1rem;
    box-shadow: var(--pg-shadow-md);
}

.pg-login-intro,
.pg-login-panel {
    padding: clamp(1.5rem, 5vw, 3.5rem);
}

.pg-login-intro {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 100% 0%, rgb(255 255 255 / 0.16), transparent 35%),
        linear-gradient(145deg, var(--pg-color-brand-800), var(--pg-color-brand-600));
}

.pg-login-intro h2 {
    max-width: 20ch;
    margin-block: 0.75rem 1rem;
    font-size: clamp(1.6rem, 4vw, 2.35rem);
    line-height: 1.15;
}

.pg-login-intro p {
    max-width: 46ch;
    color: rgb(255 255 255 / 0.84);
}

.pg-login-intro ul {
    display: grid;
    gap: 0.7rem;
    padding: 0;
    margin: 1.75rem 0 0;
    list-style: none;
}

.pg-login-intro li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
}

.pg-login-intro li::before {
    flex: 0 0 auto;
    width: 0.55rem;
    height: 0.55rem;
    margin-top: 0.48rem;
    content: "";
    background: var(--pg-color-brand-100);
    border-radius: 999px;
}

.pg-login-mark {
    display: grid;
    width: 3rem;
    height: 3rem;
    font-weight: 800;
    color: var(--pg-color-brand-800);
    background: #ffffff;
    border-radius: var(--pg-radius-lg);
    box-shadow: var(--pg-shadow-sm);
    place-items: center;
}

.pg-login-eyebrow {
    margin: 1.5rem 0 0;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pg-login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pg-login-heading {
    margin-bottom: 1.75rem;
}

.pg-login-heading .pg-login-eyebrow {
    margin-top: 0;
    color: var(--pg-color-brand-700);
}

.pg-login-heading h1 {
    margin-block: 0.35rem;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    line-height: 1.2;
}

.pg-login-heading p,
.pg-login-help p {
    margin: 0;
    color: var(--pg-color-muted);
}

.pg-login-form {
    display: grid;
    gap: 1.25rem;
}

.pg-login-field {
    display: grid;
    gap: 0.45rem;
}

.pg-login-field label {
    font-size: 0.9rem;
    font-weight: 700;
}

.pg-login-label-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: baseline;
    justify-content: space-between;
}

.pg-login-label-row span {
    font-size: 0.75rem;
    color: var(--pg-color-muted);
}

.pg-login-input {
    width: 100%;
    min-height: 3rem;
    padding: 0.7rem 0.85rem;
    color: var(--pg-color-text);
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--pg-radius-md);
    transition:
        border-color 150ms ease,
        box-shadow 150ms ease;
}

.pg-login-input:hover {
    border-color: #94a3b8;
}

.pg-login-input:focus {
    border-color: var(--pg-color-brand-600);
    box-shadow: 0 0 0 4px rgb(22 163 74 / 0.12);
}

.pg-login-input[aria-invalid="true"] {
    border-color: #dc2626;
}

.pg-login-button {
    min-height: 3rem;
    padding: 0.7rem 1rem;
    font-weight: 750;
    color: #ffffff;
    cursor: pointer;
    background: var(--pg-color-brand-700);
    border: 1px solid var(--pg-color-brand-700);
    border-radius: var(--pg-radius-md);
    transition:
        background-color 150ms ease,
        border-color 150ms ease;
}

.pg-login-button:hover {
    background: var(--pg-color-brand-800);
    border-color: var(--pg-color-brand-800);
}

.pg-login-alert {
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    border: 1px solid;
    border-radius: var(--pg-radius-md);
}

.pg-login-alert p {
    margin: 0 0 0.4rem;
    font-weight: 700;
}

.pg-login-alert ul {
    padding-left: 1.25rem;
    margin: 0;
}

.pg-login-alert-success {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.pg-login-alert-danger {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.pg-login-help {
    display: grid;
    gap: 0.5rem;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    border-top: 1px solid var(--pg-color-border);
}

.pg-login-help a {
    width: fit-content;
    font-weight: 700;
    color: var(--pg-color-brand-700);
}

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

.pg-page :where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid rgb(22 163 74 / 0.35);
    outline-offset: 2px;
}

.pg-page a {
    text-underline-offset: 0.18em;
}

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

.pg-rich-editor {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--pg-radius-md);
}

.pg-rich-editor-toolbar {
    border: 0;
    border-bottom: 1px solid #cbd5e1;
    border-radius: var(--pg-radius-md) var(--pg-radius-md) 0 0;
}

.pg-rich-editor-toolbar .ql-highlight,
.pg-rich-editor-toolbar .ql-undo,
.pg-rich-editor-toolbar .ql-redo {
    width: auto;
    padding-inline: 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
}

button.ql-redo,
button.ql-undo {
    width: auto !important;
}

.pg-rich-editor-toolbar .ql-highlight {
    background: #fff59d;
    border-radius: 0.25rem;
}

.pg-rich-editor-surface {
    min-height: 24rem;
}

.pg-rich-editor-surface .ql-editor {
    min-height: 24rem;
    font-size: 1rem;
    line-height: 1.7;
}

.pg-rich-editor-textarea {
    margin-top: 0.75rem;
}

.pg-rich-editor.is-ready .pg-rich-editor-textarea {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pg-article-content {
    display: flow-root;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.pg-article-content > * + * {
    margin-top: 1.25rem;
}

.pg-article-content h2,
.pg-article-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
    line-height: 1.2;
}

.pg-article-content h2 {
    font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.pg-article-content h3 {
    font-size: clamp(1.2rem, 2.4vw, 1.45rem);
}

.pg-article-content p,
.pg-article-content ul,
.pg-article-content ol,
.pg-article-content li,
.pg-article-content blockquote,
.pg-article-content figure {
    margin-bottom: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.pg-article-content ul,
.pg-article-content ol {
    padding-left: 1.5rem;
}

.pg-article-content li + li {
    margin-top: 0.35rem;
}

.pg-article-content a {
    font-weight: 700;
    color: var(--pg-color-brand-700);
}

.pg-article-content blockquote {
    padding: 1rem 1.25rem;
    color: #334155;
    background: #f8fafc;
    border-left: 4px solid var(--pg-color-brand-600);
    border-radius: 0 var(--pg-radius-md) var(--pg-radius-md) 0;
}

.pg-article-content mark,
.pg-article-content span[style*="background-color"] {
    padding-inline: 0.15em;
    background-color: #fff59d;
}

.pg-article-content figure {
    display: grid;
    gap: 0.5rem;
}

.pg-article-content img {
    display: block;
    width: auto;
    max-width: 100%;
    margin-inline: auto;
    border-radius: var(--pg-radius-md);
}

.pg-article-content figcaption {
    font-size: 0.9rem;
    color: var(--pg-color-muted);
    text-align: center;
}

.pg-article-content .ql-align-center {
    text-align: center;
}

.pg-article-content .ql-align-right {
    text-align: right;
}

.pg-article-content .ql-align-justify {
    text-align: justify;
}

.pg-recipe-card {
    max-width: 64rem;
    padding: clamp(1.25rem, 4vw, 2rem);
    margin-inline: auto;
    background: #ffffff;
    border: 1px solid #d7dee8;
    border-radius: var(--pg-radius-md);
    box-shadow: var(--pg-shadow-sm);
}

.pg-recipe-hero {
    display: grid;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-items: start;
}

.pg-recipe-card-has-image .pg-recipe-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
}

.pg-recipe-card-no-image .pg-recipe-hero-content {
    max-width: 48rem;
}

.pg-recipe-kicker {
    margin-bottom: 0.4rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--pg-color-brand-700);
    text-transform: uppercase;
}

.pg-recipe-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 850;
    line-height: 1.08;
}

.pg-recipe-author {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: baseline;
    margin: 1rem 0 0;
    color: var(--pg-color-muted);
}

.pg-recipe-author strong {
    color: var(--pg-color-text);
}

.pg-recipe-summary {
    max-width: 56ch;
    margin: 1.2rem 0 0;
    font-size: 1.12rem;
    color: #334155;
}

.pg-recipe-image {
    margin: 0;
}

.pg-recipe-image img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--pg-radius-md);
}

.pg-recipe-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding-block: clamp(1.25rem, 3vw, 2rem);
}

.pg-recipe-action {
    min-height: 3.75rem;
    padding: 0.75rem 1rem;
    font-weight: 800;
    border-radius: var(--pg-radius-md);
    transition:
        background-color 150ms ease,
        border-color 150ms ease,
        color 150ms ease;
}

.pg-recipe-action-primary {
    color: #ffffff;
    background: #8fbe52;
    border: 1px solid #8fbe52;
}

.pg-recipe-action-primary:hover {
    background: #7dab41;
    border-color: #7dab41;
}

.pg-recipe-action-secondary {
    color: var(--pg-color-text);
    background: #ffffff;
    border: 1px solid #8f98a6;
}

.pg-recipe-action-secondary:hover {
    color: var(--pg-color-brand-800);
    border-color: var(--pg-color-brand-600);
}

.pg-recipe-icon {
    width: 1.55rem;
    height: 1.55rem;
    color: #9ca3af;
}

.pg-recipe-fact-group {
    padding-block: 1.15rem;
}

.pg-recipe-fact-divider {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 1.25rem;
    align-items: center;
    color: #9ca3af;
}

.pg-recipe-fact-divider::before,
.pg-recipe-fact-divider::after {
    height: 1px;
    content: "";
    background: var(--pg-color-border);
}

.pg-recipe-fact-divider .pg-recipe-icon {
    width: 2rem;
    height: 2rem;
}

.pg-recipe-facts {
    display: grid;
    gap: 1rem;
    padding-top: 1.25rem;
}

.pg-recipe-time-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pg-recipe-info-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pg-recipe-fact {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
    text-align: center;
}

.pg-recipe-info-fact {
    justify-items: center;
}

.pg-recipe-info-fact .pg-recipe-icon {
    margin-bottom: 0.35rem;
}

.pg-recipe-fact-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--pg-color-muted);
    text-transform: uppercase;
}

.pg-recipe-fact-value {
    overflow-wrap: anywhere;
    font-size: 1.03rem;
    color: var(--pg-color-text);
}

.pg-recipe-section {
    padding-top: clamp(1.75rem, 4vw, 2.4rem);
}

.pg-recipe-section-heading {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.pg-recipe-section-heading .pg-recipe-icon {
    flex: 0 0 auto;
}

.pg-recipe-section-heading::after {
    flex: 1 1 auto;
    height: 1px;
    content: "";
    background: var(--pg-color-border);
}

.pg-recipe-section h2 {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 650;
    line-height: 1.2;
}

.pg-recipe-ingredients,
.pg-recipe-instructions,
.pg-recipe-notes {
    font-size: 1.05rem;
    color: #253044;
}

.pg-recipe-ingredients h3,
.pg-recipe-instructions h3 {
    margin: 1.5rem 0 0.65rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--pg-color-muted);
}

.pg-recipe-ingredient {
    display: grid;
    grid-template-columns: 0.6rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    padding-block: 0.35rem;
}

.pg-recipe-ingredient span {
    width: 0.42rem;
    height: 0.42rem;
    margin-top: 0.65rem;
    background: var(--pg-color-text);
    border-radius: 999px;
}

.pg-recipe-ingredient p,
.pg-recipe-step p {
    min-width: 0;
    margin: 0;
}

.pg-recipe-step {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
    margin-bottom: 0.9rem;
}

.pg-recipe-step-number {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--pg-color-text);
    line-height: 1.6;
    text-align: right;
}

.pg-recipe-notes {
    line-height: 1.75;
}

.pg-recipe-keywords {
    display: grid;
    gap: 0.65rem;
    justify-items: center;
    padding-top: 1.75rem;
    margin-top: 2rem;
    text-align: center;
    border-top: 1px solid var(--pg-color-border);
}

.pg-recipe-keywords .pg-recipe-fact-divider {
    width: 100%;
}

.pg-recipe-keywords-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--pg-color-muted);
    text-transform: uppercase;
}

.pg-recipe-keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.pg-recipe-keyword-list span {
    padding: 0.25rem 0.65rem;
    color: var(--pg-color-brand-800);
    background: var(--pg-color-brand-50);
    border: 1px solid var(--pg-color-brand-100);
    border-radius: 999px;
}

.pg-recipe-empty-text {
    margin: 0;
    color: var(--pg-color-muted);
}

@media (min-width: 48rem) {
    .pg-md-grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pg-md-p-8 {
        padding: 2rem;
    }

    .pg-login-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

@media (min-width: 64rem) {
    .pg-lg-grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.pg-recipe-autocomplete-menu {
    position: absolute;
    z-index: 1080;
    width: min(24rem, calc(100vw - 2rem));
    max-height: 18rem;
    margin-top: 0.25rem;
    overflow-y: auto;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background: #ffffff;
    box-shadow: 0 0.75rem 1.5rem rgb(15 23 42 / 12%);
}

.pg-recipe-autocomplete-heading {
    padding: 0.45rem 0.75rem 0.25rem;
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pg-recipe-autocomplete-option {
    display: block;
    width: 100%;
    padding: 0.45rem 0.75rem;
    border: 0;
    background: transparent;
    color: #212529;
    text-align: left;
}

.pg-recipe-autocomplete-option:hover,
.pg-recipe-autocomplete-option:focus {
    background: #e9f7ef;
    outline: 0;
}

@media (max-width: 48rem) {
    .pg-recipe-card-has-image .pg-recipe-hero,
    .pg-recipe-actions,
    .pg-recipe-time-facts,
    .pg-recipe-info-facts {
        grid-template-columns: 1fr;
    }

    .pg-recipe-fact {
        padding-block: 0.55rem;
        text-align: left;
        border-bottom: 1px solid var(--pg-color-border);
    }

    .pg-recipe-info-fact {
        justify-items: start;
    }

    .pg-recipe-fact:last-child {
        border-bottom: 0;
    }
}

.pg-scroll-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    color: #ffffff;
    background: var(--pg-color-brand-700);
    border: 1px solid rgb(255 255 255 / 0.75);
    border-radius: 999px;
    box-shadow: 0 14px 34px rgb(21 128 61 / 0.28), var(--pg-shadow-sm);
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.75rem);
    transition:
        opacity 160ms ease,
        transform 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease;
}

.pg-scroll-top:hover,
.pg-scroll-top:focus-visible {
    color: #ffffff;
    background: var(--pg-color-brand-800);
    box-shadow: 0 18px 42px rgb(21 128 61 / 0.34), var(--pg-shadow-sm);
    transform: translateY(0);
}

.pg-scroll-top:focus-visible {
    outline: 3px solid rgb(22 163 74 / 0.28);
    outline-offset: 3px;
}

.pg-scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.pg-scroll-top-icon {
    width: 1.35rem;
    height: 1.35rem;
}

@media (max-width: 575.98px) {
    .pg-scroll-top {
        right: 1rem;
        bottom: 1rem;
        width: 2.75rem;
        height: 2.75rem;
    }
}
@media print {
    .pg-nav,
    .pg-footer,
    .pg-recipe-actions,
    .pg-scroll-top,
    .breadcrumb {
        display: none !important;
    }

    .pg-page {
        background: #ffffff !important;
    }

    .pg-main {
        padding: 0 !important;
    }

    .pg-recipe-card {
        max-width: none;
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    .pg-recipe-card-has-image .pg-recipe-hero {
        grid-template-columns: 1fr 12rem;
    }

    .pg-recipe-image img {
        max-height: 12rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
