:root {
    --cream: #fbf6ec;
    --cream-deep: #f0e4d3;
    --green: #304d25;
    --green-soft: #557341;
    --rose: #b76569;
    --rose-deep: #9e4f54;
    --ink: #1f241b;
    --muted: #6f695f;
    --line: rgba(48, 77, 37, 0.16);
    --shadow: 0 18px 50px rgba(72, 52, 34, 0.12);
    --page-gutter: max(1rem, calc((100vw - 1800px) / 2));
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: "Roboto", "Segoe UI", Arial, sans-serif;
}

h1,
h2,
h3,
.navbar-brand,
.admin-brand {
    color: var(--green);
    font-family: "Noto Serif", Georgia, "Times New Roman", serif;
}

a {
    color: var(--rose-deep);
    text-decoration: none;
}

a:hover {
    color: var(--green);
}

.container-fluid {
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
}

.site-header {
    background: rgba(251, 246, 236, 0.96);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}

.navbar-brand img {
    display: block;
    height: 56px;
    width: auto;
    max-width: 100%;
}

.navbar-nav {
    gap: 1rem;
}

.nav-link {
    color: var(--green);
    font-weight: 600;
}

.nav-link:hover,
.nav-link:focus-visible {
    text-decoration: underline;
}

.nav-icon {
    align-items: center;
    border-radius: 999px;
    color: var(--ink);
    display: inline-flex;
    font-size: 1.4rem;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}

.home-hero {
    padding: 0 0 1.5rem;
}

.hero-image {
    background: #eee1cf;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

.hero-image::after {
    background: linear-gradient(90deg, rgba(251, 246, 236, 0.96) 0%, rgba(251, 246, 236, 0.82) 30%, rgba(251, 246, 236, 0) 65%);
    content: "";
    inset: 0;
    position: absolute;
    z-index: 1;
}

.hero-image img {
    display: block;
    height: 100%;
    inset: 0;
    object-fit: cover;
    object-position: center right;
    position: absolute;
    width: 100%;
}

.hero-copy {
    margin-left: var(--page-gutter);
    max-width: 750px;
    padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
    position: relative;
    z-index: 2;
}

.hero-copy h1 {
    font-size: clamp(3rem, 7vw, 5.6rem);
    line-height: 0.94;
    margin: 0 0 1.5rem;
}

.hero-copy h1 span,
.confidence-panel h2 span {
    color: var(--rose);
    font-style: italic;
    font-weight: 400;
}

.hero-copy p {
    color: #302b25;
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 430px;
}

.hero-search {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(63, 45, 27, 0.1);
    display: flex;
    gap: 0.75rem;
    max-width: 540px;
    padding: 0.5rem;
}

.hero-search input {
    border: 0;
    border-radius: 999px;
    flex: 1;
    min-width: 0;
    padding: 0.85rem 1rem;
}

.hero-search input:focus {
    box-shadow: none;
    outline: 3px solid rgba(183, 101, 105, 0.2);
}

.category-pill-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.category-pill {
    align-items: center;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    display: inline-flex;
    font-weight: 700;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
}

.category-pill:hover {
    background: #fff;
}

.category-pill span {
    background: var(--line);
    border-radius: 999px;
    color: var(--green);
    font-size: 0.78rem;
    padding: 0.1rem 0.45rem;
}

.category-pill.is-active {
    background: var(--green);
    color: #fff;
}

.category-pill.is-active span {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.btn {
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    padding: 0.8rem 1.35rem;
}

.btn-rose {
    background: var(--rose);
    color: #fff;
}

.btn-rose:hover {
    background: var(--rose-deep);
    color: #fff;
}

.btn-green {
    background: var(--green-soft);
    color: #fff;
}

.btn-green:hover {
    background: var(--green);
    color: #fff;
}

.btn-soft {
    background: #efe6d8;
    color: var(--green);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.pill-link {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-weight: 700;
    padding: 0.8rem 1.1rem;
}

.content-band {
    padding: 2.25rem 0;
}

.section-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.section-heading h2 {
    font-size: 2rem;
    margin: 0;
}

.recipe-card-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.recipe-load-more {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.recipe-card {
    background: rgba(255, 252, 246, 0.86);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(72, 52, 34, 0.08);
    overflow: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.recipe-card.recipe-card-entering {
    opacity: 0;
    transform: translateY(12px);
}

.recipe-card-link {
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

.recipe-card-link:hover {
    color: inherit;
}

.recipe-card-image {
    aspect-ratio: 4 / 3;
    background:
        linear-gradient(135deg, rgba(48, 77, 37, 0.2), rgba(183, 101, 105, 0.16)),
        #eadfcc;
    overflow: hidden;
    position: relative;
}

.recipe-card-badge {
    background: var(--green);
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(31, 36, 27, 0.25);
    color: var(--cream);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.3rem 0.7rem;
    position: absolute;
    right: 0.6rem;
    text-transform: uppercase;
    top: 0.6rem;
}

.recipe-card-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.recipe-card-body {
    flex: 1 1 auto;
    padding: 1rem 1rem 0;
}

.recipe-card h3 {
    font-size: 1.45rem;
    margin: 0;
}

.recipe-card p {
    color: var(--rose-deep);
    font-size: 1.05rem;
    margin: 0.2rem 0 1rem;
}

.recipe-card-footer {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 0.9rem;
    justify-content: space-between;
    padding: 0.35rem 1rem;
}

.recipe-meta-time {
    align-items: center;
    display: flex;
    gap: 0.4rem;
}

.recipe-meta-difficulty {
    align-items: center;
    display: flex;
    gap: 0.25rem;
}

.chef-hat-icon {
    height: 1rem;
    width: 1rem;
}

.category-strip {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.category-strip a {
    background: rgba(255, 252, 246, 0.74);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--green);
    font-weight: 700;
    padding: 1rem;
    text-align: center;
}

.confidence-panel {
    background:
        linear-gradient(90deg, rgba(251, 246, 236, 0.95), rgba(251, 246, 236, 0.58)),
        #eadfcc;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(2rem, 5vw, 4rem);
}

.confidence-panel h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1;
}

.confidence-panel li {
    margin: 0.45rem 0;
}


.recipe-wide-container {
    margin: 0 auto;
    max-width: 1500px;
    padding: 0 1.5rem;
    width: 100%;
}

.recipe-detail-hero {
    padding: 0 0 1.5rem;
}

.recipe-hero-overlay {
    margin-left: var(--page-gutter);
    max-width: min(540px, 54%);
    padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
    position: relative;
    z-index: 2;
}
.recipe-hero-overlay h1 {
    font-size: clamp(3rem, 7vw, 5.4rem);
    line-height: 0.98;
    margin: 0 0 1rem;
}

.recipe-subtitle {
    color: var(--rose-deep);
    font-family: "Noto Serif", Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    line-height: 1.2;
}

.recipe-description {
    color: #302b25;
    font-size: 1.08rem;
    line-height: 1.7;
}

.recipe-summary-bar {
    align-items: center;
    background: rgba(255, 252, 246, 0.9);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(72, 52, 34, 0.08);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 1rem;
}

.recipe-fact-strip {
    display: grid;
    flex: 1;
    gap: 0.75rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.recipe-fact-strip div {
    background: #f3eadc;
    border-radius: 8px;
    padding: 0.9rem;
}

.recipe-fact-strip span {
    color: var(--muted);
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.recipe-fact-strip strong {
    color: var(--green);
    display: block;
    font-size: 1.05rem;
    margin-top: 0.25rem;
}

.recipe-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}
.recipe-notes-band {
    padding: 1.5rem 0 0;
}

.recipe-notes {
    align-items: stretch;
    background: rgba(255, 252, 246, 0.88);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(72, 52, 34, 0.08);
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
}

.recipe-notes-photo {
    border-radius: 8px;
    flex: 0 0 200px;
    height: auto;
    object-fit: cover;
    width: 200px;
}

.recipe-notes-text {
    flex: 1 1 auto;
    min-width: 0;
}

.recipe-notes-title {
    border-radius: 8px;
    display: inline-block;
    margin: 0 0 1rem;
    padding: 0.5rem 0;
}

.recipe-notes-title h2 {
    margin: 0;
}

.recipe-detail-band {
    padding: 1rem 0 3rem;
}

.recipe-detail-layout {
    align-items: start;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
}

.recipe-detail-main {
    min-width: 0;
}

.recipe-detail-sidebar {
    display: grid;
    gap: 1.5rem;
    min-width: 0;
}

.recipe-panel {
    padding: clamp(1.35rem, 3vw, 2rem);
}

.recipe-panel h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.recipe-panel h3 {
    font-size: 1.25rem;
    margin: 1.25rem 0 0.7rem;
}

.ingredient-list {
    display: grid;
    gap: 0.65rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ingredient-list li {
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.65rem;
}

.method-list {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding-left: 1.45rem;
}

.method-list li {
    padding-left: 0.35rem;
}

.method-list li::marker {
    color: var(--green);
    font-family: "Noto Serif", Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
    font-weight: 800;
}

.method-list p {
    line-height: 1.75;
    margin: 0.35rem 0 0;
}

.step-notes,
.recipe-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.step-notes span,
.recipe-pill-list span {
    align-items: center;
    background: #f3eadc;
    border-radius: 999px;
    color: var(--green);
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 800;
    gap: 0.35rem;
    padding: 0.45rem 0.7rem;
}

.step-timer-group {
    align-items: center;
    display: inline-flex;
    gap: 0.3rem;
}

.step-timer {
    align-items: center;
    background: #f3eadc;
    border: 0;
    border-radius: 999px;
    color: var(--green);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 800;
    gap: 0.35rem;
    padding: 0.45rem 0.7rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.step-timer:hover,
.step-timer:focus-visible {
    background: #e7dbc2;
}

.step-timer.is-running {
    background: var(--green);
    color: #fff;
}

.step-timer.is-running .bi-clock {
    animation: step-timer-spin 2s linear infinite;
}

.step-timer.is-paused {
    background: #f4eadc;
    color: var(--rose-deep);
}

.step-timer.is-done {
    animation: step-timer-pulse 1s ease-in-out infinite;
    background: var(--rose);
    color: #fff;
}

.step-timer-reset {
    align-items: center;
    background: #f3eadc;
    border: 0;
    border-radius: 999px;
    color: var(--muted);
    cursor: pointer;
    display: none;
    font-size: 0.8rem;
    height: 1.9rem;
    justify-content: center;
    width: 1.9rem;
}

.step-timer-reset:hover,
.step-timer-reset:focus-visible {
    background: #e7dbc2;
    color: var(--rose-deep);
}

.step-timer.is-running ~ .step-timer-reset,
.step-timer.is-paused ~ .step-timer-reset,
.step-timer.is-done ~ .step-timer-reset {
    display: inline-flex;
}

@keyframes step-timer-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes step-timer-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nutrition-panel {
    margin-top: 1.5rem;
}

.nutrition-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.page-hero {
    padding: 4rem 0 2rem;
}

.page-hero.compact h1 {
    font-size: clamp(2.8rem, 6vw, 4.8rem);
}

.empty-state,
.auth-panel,
.admin-action-panel,
.import-preview,
.import-form,
.admin-stat {
    background: rgba(255, 252, 246, 0.88);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(72, 52, 34, 0.08);
}

.empty-state {
    padding: 3rem;
    text-align: center;
}

.about-layout {
    align-items: flex-start;
    display: flex;
    gap: 2rem;
}

.about-portrait {
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(72, 52, 34, 0.08);
    flex: 0 0 280px;
    height: 360px;
    object-fit: cover;
    width: 280px;
}

.about-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.site-footer {
    padding: 2rem 0;
}

.footer-panel {
    align-items: center;
    background: rgba(255, 252, 246, 0.84);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    padding: 1.5rem;
}

.newsletter-form {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    min-width: min(440px, 100%);
}

.newsletter-fields {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 0.75rem;
    min-width: min(440px, 100%);
}

.newsletter-fields .form-control {
    flex: 1 1 160px;
    min-width: 0;
}

.newsletter-honeypot {
    left: -5000px;
    position: absolute;
}

.footer-small {
    color: var(--muted);
    display: flex;
    font-size: 0.9rem;
    justify-content: space-between;
    margin-top: 1.25rem;
}

.admin-body {
    background: #f7f0e6;
}

.admin-header {
    background: var(--green);
    color: #fff;
    padding: 1rem 0;
}

.admin-brand,
.admin-brand:hover,
.admin-brand:focus,
.admin-nav a,
.admin-nav a:hover,
.admin-nav a:focus {
    color: #fff;
}

.admin-brand {
    font-size: 1.35rem;
    font-weight: 700;
}

.admin-nav {
    display: flex;
    gap: 1rem;
}

.admin-main {
    padding: 2rem 0;
}

.admin-page-heading {
    margin-bottom: 1.5rem;
}

.admin-stat-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1.5rem;
}

.admin-stat {
    padding: 1.25rem;
}

.admin-stat span {
    color: var(--muted);
    display: block;
    font-weight: 700;
}

.admin-stat strong {
    color: var(--green);
    font-size: 2.5rem;
}

.admin-stat.warning strong {
    color: var(--rose-deep);
}

.admin-action-panel,
.auth-panel {
    padding: 1.5rem;
}

.auth-panel {
    margin: 2rem auto;
    max-width: 440px;
}

.import-layout {
    align-items: start;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
}

.import-form,
.import-preview {
    padding: 1.25rem;
}

.code-textarea {
    font-family: Consolas, "Courier New", monospace;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.muted {
    color: var(--muted);
}

.notice {
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1rem;
}

.notice.error {
    background: #f8d7da;
}

.notice.warning {
    background: #fff3cd;
}

.notice.success {
    background: #d1e7dd;
}

.flash-stack {
    margin-bottom: 1rem;
}

.alert-action {
    font-weight: 700;
    margin-left: 0.75rem;
    text-decoration: underline;
}

.cooking-shell {
    padding: 2rem 0;
}

.cooking-layout {
    align-items: start;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(260px, 0.32fr) minmax(0, 0.68fr);
}

.cooking-kicker {
    color: var(--rose-deep);
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.cooking-ingredients {
    background: rgba(255, 252, 246, 0.9);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    padding: 1.5rem;
    position: sticky;
    top: 1.5rem;
}

.cooking-ingredients-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.cooking-ingredients h1 {
    font-size: 1.6rem;
    margin: 0 0 1rem;
}

.cooking-ingredients h2 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}

.cooking-ingredients h3 {
    font-size: 1rem;
    margin: 1rem 0 0.4rem;
}

.cooking-ingredient-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cooking-ingredient-list li {
    border-radius: 6px;
    cursor: pointer;
    padding: 0.5rem 0.6rem;
    transition: background-color 0.15s ease;
}

.cooking-ingredient-list li.is-active {
    background: #f4eadc;
    font-weight: 800;
}

.cooking-ingredient-list li.is-checked {
    color: var(--muted);
    text-decoration: line-through;
}

.cooking-main {
    background: rgba(255, 252, 246, 0.9);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    min-height: 60vh;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.cooking-progress {
    margin-bottom: 1.5rem;
}

.cooking-progress span {
    color: var(--rose-deep);
    display: block;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.cooking-progress-bar {
    background: var(--line);
    border-radius: 999px;
    height: 0.5rem;
    overflow: hidden;
}

.cooking-progress-fill {
    background: var(--green);
    height: 100%;
    transition: width 0.2s ease;
}

.cooking-step {
    display: none;
}

.cooking-step.is-active {
    display: block;
}

.cooking-step-section {
    color: var(--rose-deep);
    font-weight: 800;
    text-transform: uppercase;
}

.cooking-step h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 0.35rem 0 1rem;
}

.cooking-step-instruction {
    font-size: clamp(1.25rem, 2.6vw, 1.8rem);
    line-height: 1.5;
}

.cooking-empty {
    font-size: 1.2rem;
}

.cooking-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
}

@media (max-width: 991px) {
    .recipe-card-grid,
    .category-strip,
    .admin-stat-grid,
    .import-layout,
    .photo-slot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .import-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .navbar-brand img {
        height: 42px;
    }

    .hero-search,
    .newsletter-form,
    .footer-panel,
    .about-layout {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-search {
        border-radius: 20px;
    }

    .about-portrait {
        height: 280px;
        width: 100%;
    }

    .recipe-card-grid,
    .category-strip,
    .admin-stat-grid {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .footer-small {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
    }
}


.login-debug-panel {
    margin: 1rem auto 1.25rem;
    max-width: 860px;
}

.login-debug-panel.debug-visible {
    border-color: rgba(183, 101, 105, 0.45);
    box-shadow: 0 12px 34px rgba(183, 101, 105, 0.14);
}

.login-debug-panel h1,
.login-debug-panel h2 {
    font-size: 1.65rem;
}

.debug-list {
    display: grid;
    gap: 0.75rem 1rem;
    grid-template-columns: minmax(180px, 0.35fr) minmax(0, 0.65fr);
}

.debug-list dt {
    color: var(--green);
    font-weight: 800;
}

.debug-list dd {
    margin: 0;
    min-width: 0;
}

.debug-list code {
    background: #f4eadc;
    border-radius: 8px;
    display: block;
    overflow-x: auto;
    padding: 0.5rem;
    white-space: pre-wrap;
}

@media (max-width: 680px) {
    .debug-list {
        grid-template-columns: 1fr;
    }
}

.preview-summary {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 0.45rem 1rem;
    grid-template-columns: minmax(120px, 0.45fr) minmax(0, 0.55fr);
    margin: 1rem 0;
    padding-top: 1rem;
}

.preview-summary dt {
    color: var(--muted);
    font-weight: 800;
}

.preview-summary dd {
    margin: 0;
}
.admin-heading-row {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.admin-action-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-stat {
    color: inherit;
    display: block;
}

.admin-stat:hover {
    color: inherit;
    transform: translateY(-1px);
}

.admin-filter-bar {
    align-items: center;
    background: rgba(255, 252, 246, 0.88);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
}

.admin-filter-bar .form-control {
    flex: 1 1 320px;
    max-width: 420px;
}

.admin-filter-bar .form-select {
    flex: 1 1 200px;
    max-width: 260px;
}

.admin-filter-bar button[type="submit"] {
    margin-left: auto;
}

.admin-table-panel,
.admin-detail-panel {
    background: rgba(255, 252, 246, 0.88);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(72, 52, 34, 0.08);
}

.admin-table-panel {
    overflow-x: auto;
}

.admin-table,
.compact-table {
    border-collapse: collapse;
    width: 100%;
}

.admin-table th,
.admin-table td,
.compact-table th,
.compact-table td {
    border-bottom: 1px solid var(--line);
    padding: 0.9rem 1rem;
    text-align: left;
    vertical-align: top;
}

.admin-table th,
.compact-table th {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
}

.admin-table tr:last-child td,
.compact-table tr:last-child td {
    border-bottom: 0;
}

.admin-table-title {
    color: var(--green);
    display: block;
    font-family: "Noto Serif", Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.admin-table-title-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-table-title-row .admin-table-title {
    display: inline-flex;
}

.featured-badge {
    align-items: center;
    background: var(--green);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 0.78rem;
    gap: 0.3rem;
    line-height: 1;
    padding: 0.45rem 0.65rem;
    white-space: nowrap;
}

.featured-badge .bi {
    font-size: 0.78rem;
}

.featured-order {
    opacity: 0.82;
}

.row-actions {
    display: flex;
    gap: 0.5rem;
}

.row-action-btn {
    border-radius: 8px;
    display: grid;
    height: 2.25rem;
    line-height: 0;
    place-items: center;
    width: 2.25rem;
}

.row-action-btn:hover,
.row-action-btn:focus-visible {
    opacity: 0.85;
}

.row-action-btn.view {
    background: #d1e7dd;
    color: var(--green);
}

.row-action-btn.edit {
    background: var(--green);
    color: #fff;
}

.row-action-btn.photos {
    background: var(--rose);
    color: #fff;
}

.row-action-btn .bi {
    font-size: 1.05rem;
    line-height: 0;
}

.status-badge,
.estimate-pill {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    padding: 0.45rem 0.65rem;
}

.status-badge {
    background: #efe6d8;
    color: var(--green);
}

.status-published {
    background: #d1e7dd;
}

.status-hidden,
.status-archived {
    background: #e2e3e5;
}

.status-review,
.status-draft {
    background: #fff3cd;
}

.estimate-pill {
    background: #f4eadc;
    color: var(--rose-deep);
    margin-left: 0.25rem;
}

.warning-text {
    color: var(--rose-deep);
    font-weight: 800;
}

.admin-detail-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1.5rem;
}

.admin-detail-panel {
    padding: 1.25rem;
}

.admin-detail-tabs {
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.admin-detail-tabs .nav-link {
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    color: var(--muted);
    font-weight: 700;
    padding: 0.75rem 1rem;
}

.admin-detail-tabs .nav-link:hover,
.admin-detail-tabs .nav-link:focus-visible {
    border-bottom-color: var(--line);
    color: var(--green);
    text-decoration: none;
}

.admin-detail-tabs .nav-link.active {
    background: transparent;
    border-bottom-color: var(--green);
    color: var(--green);
}

.admin-detail-panel.span-2 {
    grid-column: span 2;
}

.admin-detail-panel h2 {
    font-size: 1.55rem;
    margin-bottom: 1rem;
}

.admin-detail-panel h3 {
    font-size: 1.18rem;
    margin: 1.25rem 0 0.75rem;
}

.detail-summary-grid {
    display: grid;
    gap: 0.65rem 1rem;
    grid-template-columns: minmax(140px, 0.24fr) minmax(0, 0.76fr);
}

.detail-summary-grid.compact {
    grid-template-columns: minmax(100px, 0.35fr) minmax(0, 0.65fr);
}

.detail-summary-grid dt {
    color: var(--muted);
    font-weight: 800;
}

.detail-summary-grid dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.private-note {
    background: #f4eadc;
    border-radius: 8px;
    margin: 1rem 0 0;
    padding: 0.85rem;
}

.plain-list {
    margin-bottom: 0;
    padding-left: 1.1rem;
}

.pill-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pill-stack span {
    align-items: center;
    background: #f4eadc;
    border-radius: 999px;
    color: var(--green);
    display: inline-flex;
    font-weight: 700;
    gap: 0.4rem;
    padding: 0.4rem 0.65rem;
}

.admin-inline-form {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.75rem 0 1.25rem;
}

.admin-inline-form .form-control,
.admin-inline-form .form-select {
    max-width: 260px;
    width: auto;
}

.pill-stack form {
    display: inline-flex;
    margin: 0;
}

.pill-remove-btn {
    background: transparent;
    border: 0;
    color: inherit;
    font-weight: 800;
    line-height: 1;
    padding: 0;
}

.pill-remove-btn:hover,
.pill-remove-btn:focus-visible {
    color: var(--rose-deep);
}

.admin-pagination {
    align-items: center;
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.method-review-list {
    display: grid;
    gap: 1rem;
    padding-left: 1.25rem;
}

.method-review-list li {
    border-bottom: 1px solid var(--line);
    padding-bottom: 1rem;
}

.method-review-list li:last-child {
    border-bottom: 0;
}

.method-review-list p {
    margin: 0.35rem 0 0.5rem;
}

.mini-meta {
    color: var(--muted);
    font-size: 0.92rem;
    margin-top: 0.35rem;
}

.back-link {
    display: inline-block;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

@media (max-width: 780px) {
    .admin-heading-row,
    .admin-action-grid,
    .admin-detail-grid,
    .detail-summary-grid,
    .detail-summary-grid.compact {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .admin-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-filter-bar .form-control,
    .admin-filter-bar .form-select,
    .admin-filter-bar button[type="submit"] {
        flex-basis: auto;
        margin-left: 0;
        width: 100%;
    }

    .admin-detail-panel.span-2 {
        grid-column: span 1;
    }
}
.heading-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.admin-edit-form {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-section.span-2,
.admin-edit-form .span-2 {
    grid-column: span 2;
}

.form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.form-grid.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.compact-fields {
    align-items: end;
}

.form-field label,
.checkbox-row span {
    color: var(--green);
    display: block;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.form-field.full-width,
.checkbox-row.full-width {
    grid-column: span 2;
}

.checkbox-row {
    align-items: center;
    background: #f4eadc;
    border-radius: 8px;
    display: flex;
    gap: 0.55rem;
    min-height: 2.65rem;
    padding: 0.65rem 0.8rem;
}

.checkbox-row input {
    flex: 0 0 auto;
}

.checkbox-row span {
    margin-bottom: 0;
}

.admin-edit-form textarea.form-control {
    min-height: 7rem;
}

@media (max-width: 780px) {
    .heading-actions,
    .admin-edit-form,
    .form-grid.two-columns {
        align-items: stretch;
        grid-template-columns: 1fr;
        justify-content: flex-start;
    }

    .form-section.span-2,
    .admin-edit-form .span-2,
    .form-field.full-width,
    .checkbox-row.full-width {
        grid-column: span 1;
    }
}
.image-upload-form {
    margin-top: 1.5rem;
}

.admin-image-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.admin-image-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1200px) {
    .admin-image-grid.compact {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.admin-image-card a {
    display: block;
}

.admin-image-card a:hover img,
.admin-image-card a:focus-visible img {
    opacity: 0.85;
}

.admin-image-card {
    background: #f4eadc;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 0;
    overflow: hidden;
}

.admin-image-card img,
.private-image-placeholder {
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    width: 100%;
}

.private-image-placeholder {
    align-items: center;
    background: linear-gradient(135deg, rgba(48, 77, 37, 0.18), rgba(183, 101, 105, 0.16));
    color: var(--green);
    display: flex;
    font-weight: 800;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}

.admin-image-card figcaption {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    justify-content: space-between;
    padding: 0.75rem;
}

.photo-dimensions {
    color: var(--muted);
    font-size: 0.85rem;
}

@media (max-width: 780px) {
    .admin-image-grid,
    .admin-image-grid.compact {
        grid-template-columns: 1fr;
    }
}
.photo-slot-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.photo-slot-card {
    display: grid;
    gap: 1rem;
}

.photo-slot-card.missing {
    border-color: rgba(183, 101, 105, 0.26);
}

.photo-slot-heading {
    align-items: flex-start;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.photo-slot-heading > div {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.photo-slot-heading h2 {
    font-size: 1.25rem;
    margin: 0;
}

.photo-number {
    align-items: center;
    background: var(--green);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.95rem;
    font-weight: 800;
    height: 2.35rem;
    justify-content: center;
    line-height: 1;
    width: 2.35rem;
}

.photo-spec-list {
    display: grid;
    gap: 0.35rem 0.75rem;
    grid-template-columns: minmax(70px, 0.3fr) minmax(0, 0.7fr);
    margin: 0;
}

.photo-spec-list dt {
    color: var(--muted);
    font-weight: 800;
}

.photo-spec-list dd {
    margin: 0;
}

.photo-empty {
    align-items: center;
    aspect-ratio: 4 / 3;
    background: #f4eadc;
    border: 1px dashed rgba(48, 77, 37, 0.28);
    border-radius: 8px;
    color: var(--muted);
    display: flex;
    font-weight: 800;
    justify-content: center;
}

.slot-upload-form {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 1.1rem;
    padding-top: 1rem;
}

.slot-upload-form .form-field {
    margin-bottom: 0.15rem;
}

.slot-upload-form .btn {
    justify-self: flex-start;
    margin-top: 0.35rem;
}

@media (max-width: 780px) {
    .photo-slot-grid,
    .photo-spec-list {
        grid-template-columns: 1fr;
    }
}
.photo-slot-card,
.photo-slot-card *,
.admin-image-card,
.admin-image-card *,
.slot-upload-form,
.slot-upload-form * {
    min-width: 0;
}

.photo-slot-card {
    overflow: hidden;
}

.photo-slot-card .form-control,
.photo-slot-card .form-select {
    max-width: 100%;
    width: 100%;
}

.photo-slot-card .admin-image-card img,
.photo-slot-card .photo-empty,
.photo-slot-card .private-image-placeholder {
    max-width: 100%;
}

.admin-image-card figcaption,
.admin-image-card figcaption span {
    overflow-wrap: anywhere;
    word-break: break-word;
}
.go-to-top {
    background: var(--green);
    border: 0;
    border-radius: 999px;
    bottom: 1.35rem;
    box-shadow: 0 12px 28px rgba(31, 36, 27, 0.24);
    color: #fff;
    display: grid;
    height: 3rem;
    line-height: 0;
    opacity: 0;
    padding: 0;
    place-items: center;
    pointer-events: none;
    position: fixed;
    right: 1.35rem;
    transform: translateY(0.75rem);
    transition: opacity 0.2s ease, transform 0.2s ease;
    width: 3rem;
    z-index: 1040;
}

.go-to-top:hover,
.go-to-top:focus {
    background: var(--green);
    color: #fff;
}

.go-to-top:focus-visible {
    outline: 3px solid rgba(183, 101, 105, 0.45);
    outline-offset: 3px;
}

.go-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.go-to-top .bi {
    font-size: 1.4rem;
    line-height: 0;
}
.step-photo {
    margin: 1rem 0 0;
}

.step-photo img {
    border-radius: 8px;
    display: block;
    height: auto;
    width: 100%;
}

.step-photo figcaption {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.45rem;
}

.ingredient-photo {
    margin: 1rem 0 0;
}

.ingredient-photo img {
    border-radius: 8px;
    display: block;
    height: auto;
    width: 100%;
}

.ingredient-photo figcaption {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.45rem;
}

.photo-lightbox-trigger {
    background: none;
    border: 0;
    cursor: zoom-in;
    display: block;
    padding: 0;
    width: 100%;
}

.photo-lightbox-trigger img {
    transition: opacity 0.15s ease;
}

.photo-lightbox-trigger:hover img,
.photo-lightbox-trigger:focus-visible img {
    opacity: 0.88;
}

.photo-lightbox .modal-content {
    background: transparent;
    border: 0;
}

.photo-lightbox .modal-body {
    padding: 0;
    position: relative;
}

.photo-lightbox-close {
    background-color: #fff;
    border-radius: 999px;
    opacity: 1;
    padding: 0.6rem;
    position: absolute;
    right: -0.75rem;
    top: -0.75rem;
    z-index: 3;
}

#lightboxImage {
    border-radius: 8px;
    display: block;
    max-height: 80vh;
    object-fit: contain;
    width: 100%;
}

#lightboxCaption {
    background: rgba(31, 36, 27, 0.72);
    border-radius: 0 0 8px 8px;
    color: #fff;
    margin: 0;
    padding: 0.75rem 1rem;
    text-align: center;
}

#lightboxCaption:empty {
    display: none;
}

.photo-lightbox-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.nutrition-list {
    display: grid;
    gap: 0.45rem;
    margin: 1rem 0 0;
}

.nutrition-list div {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(10rem, 1fr) minmax(5rem, auto);
}

.nutrition-list dt,
.nutrition-list dd {
    margin: 0;
}

.nutrition-list dt {
    color: var(--muted);
    font-weight: 800;
}

.nutrition-list dd {
    color: var(--green);
    font-weight: 800;
    text-align: right;
}
@media (max-width: 991.98px) {
    .hero-image {
        min-height: auto;
    }

    .hero-image img {
        height: 360px;
        position: relative;
    }

    .hero-image::after {
        display: none;
    }

    .hero-copy,
    .recipe-hero-overlay {
        margin-left: 0;
        max-width: 100%;
        padding: 1.5rem;
    }

    .recipe-detail-layout {
        grid-template-columns: 1fr;
    }

    .recipe-summary-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .recipe-fact-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .recipe-detail-actions {
        justify-content: flex-start;
    }

    .recipe-notes {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .cooking-layout {
        grid-template-columns: 1fr;
    }

    .cooking-ingredients {
        max-height: none;
        position: static;
    }
}




.btn-danger-soft {
    background: #f2d6d7;
    color: var(--rose-deep);
}

.btn-danger-soft:hover,
.btn-danger-soft:focus {
    background: #e8c0c2;
    color: var(--rose-deep);
}

.photo-upload-list {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 0.7rem;
    padding-top: 1rem;
}

.photo-upload-list h3 {
    font-size: 1rem;
    margin: 0;
}

.photo-upload-row {
    align-items: center;
    background: #f4eadc;
    border-radius: 8px;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0.75rem;
}

.photo-upload-row strong,
.photo-upload-row span {
    display: block;
    overflow-wrap: anywhere;
}

.photo-upload-row span {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

.photo-upload-row .btn {
    padding: 0.65rem 0.95rem;
}

@media (max-width: 575.98px) {
    .photo-upload-row {
        align-items: stretch;
        grid-template-columns: 1fr;
    }
}



