:root {
    color-scheme: light;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #29352e;
    background: #fff8f3;
    --bg: #fff8f3;
    --surface: #ffffff;
    --surface-soft: #f2f8f3;
    --text: #29352e;
    --muted: #667068;
    --accent: #3e8a60;
    --accent-strong: #276b46;
    --accent-soft: #dff1e5;
    --tomato: #e4573f;
    --tomato-strong: #c63f2c;
    --tomato-soft: #ffe6de;
    --gold: #f2b84b;
    --border: rgba(41, 53, 46, 0.13);
    --shadow: 0 18px 50px rgba(53, 76, 62, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at 8% 0%, rgba(228, 87, 63, 0.13), transparent 28%), radial-gradient(circle at 92% 8%, rgba(62, 138, 96, 0.12), transparent 25%), linear-gradient(180deg, #fffaf6 0%, #fff8f3 100%);
    color: var(--text);
}

img {
    max-width: 100%;
    display: block;
}

button,
a {
    font: inherit;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(62, 138, 96, 0.42);
    outline-offset: 3px;
}

select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(62, 138, 96, 0.42);
    outline-offset: 3px;
}

/* Global Ask Minji contact widget */
.ask-minji-widget {
    --ask-minji-edge: max(1.15rem, env(safe-area-inset-right));
    position: fixed;
    right: var(--ask-minji-edge);
    bottom: max(1.15rem, env(safe-area-inset-bottom));
    z-index: 40;
    font-size: 0.92rem;
}

.ask-minji-trigger {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(41, 53, 46, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 30px rgba(41, 53, 46, 0.16);
    color: var(--text);
    cursor: pointer;
    font-weight: 750;
}

.ask-minji-trigger iconify-icon {
    color: var(--tomato);
    font-size: 1.25rem;
}

.ask-minji-trigger:hover {
    border-color: rgba(228, 87, 63, 0.35);
    transform: translateY(-1px);
}

.ask-minji-layer[hidden] {
    display: none;
}

.ask-minji-backdrop {
    display: none;
}

.ask-minji-panel {
    position: absolute;
    right: 0;
    bottom: 3.8rem;
    width: min(23rem, calc(100vw - 2rem));
    max-height: calc(100vh - 6.5rem);
    overflow-y: auto;
    padding: 1.25rem;
    border: 1px solid rgba(41, 53, 46, 0.14);
    border-radius: 1.35rem;
    background: #fffdfb;
    box-shadow: 0 24px 70px rgba(30, 50, 38, 0.22);
    opacity: 0;
    transform: translateY(0.75rem) scale(0.98);
    transition: opacity 0.18s ease, transform 0.18s ease;
    overscroll-behavior: contain;
}

.ask-minji-layer.is-open .ask-minji-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ask-minji-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.ask-minji-kicker {
    margin: 0 0 0.2rem;
    color: var(--tomato-strong);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ask-minji-panel h2 {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.15;
}

.ask-minji-close {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--text);
    cursor: pointer;
}

.ask-minji-description {
    margin: 0.65rem 0 1rem;
    color: var(--muted);
    font-size: 0.83rem;
    line-height: 1.55;
}

.ask-minji-form,
.ask-minji-field-row {
    display: grid;
    gap: 0.48rem;
}

.ask-minji-form {
    gap: 0.8rem;
}

.ask-minji-field-row label {
    font-size: 0.76rem;
    font-weight: 800;
}

.ask-minji-field-row input,
.ask-minji-field-row select,
.ask-minji-field-row textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(41, 53, 46, 0.18);
    border-radius: 0.72rem;
    background: #fff;
    color: var(--text);
    font: inherit;
}

.ask-minji-field-row input,
.ask-minji-field-row select {
    min-height: 2.65rem;
    padding: 0 0.75rem;
}

.ask-minji-field-row select {
    display: block;
    max-width: 100%;
    padding-right: 2.65rem;
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%233e8a60' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.15rem;
}

.ask-minji-field-row textarea {
    min-height: 6rem;
    padding: 0.7rem 0.75rem;
    resize: vertical;
}

.ask-minji-field-row input:hover,
.ask-minji-field-row select:hover,
.ask-minji-field-row textarea:hover {
    border-color: rgba(62, 138, 96, 0.48);
}

.ask-minji-safety,
.ask-minji-status {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.45;
}

.ask-minji-safety {
    color: var(--muted);
}

.ask-minji-status {
    min-height: 1.05rem;
    color: var(--muted);
    font-weight: 700;
}

.ask-minji-status.is-success {
    color: var(--accent-strong);
}

.ask-minji-status.is-error {
    color: var(--tomato-strong);
}

.ask-minji-submit {
    width: 100%;
    min-height: 2.75rem;
}

.ask-minji-submit:disabled {
    cursor: wait;
    opacity: 0.68;
}

.ask-minji-full-link {
    justify-self: center;
    color: var(--accent-strong);
    font-size: 0.76rem;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

.ask-minji-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 680px) {
    body.ask-minji-open {
        overflow: hidden;
    }

    .ask-minji-widget {
        --ask-minji-edge: max(0.85rem, env(safe-area-inset-right));
        bottom: max(0.85rem, env(safe-area-inset-bottom));
    }

    .ask-minji-backdrop {
        position: fixed;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        background: rgba(26, 36, 30, 0.34);
        cursor: default;
    }

    .ask-minji-panel {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: min(78vh, 43rem);
        padding: 1.15rem max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
        border-width: 1px 0 0;
        border-radius: 1.3rem 1.3rem 0 0;
        transform: translateY(100%);
    }

    .ask-minji-field-row select {
        min-height: 3rem;
        font-size: 1rem;
    }

    .ask-minji-layer.is-open .ask-minji-panel {
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ask-minji-trigger,
    .ask-minji-panel {
        transition: none;
    }
}

a {
    color: inherit;
    text-decoration: none;
}

.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;
}

.skip-link {
    position: fixed;
    left: 1rem;
    top: 1rem;
    z-index: 100;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: var(--text);
    color: var(--surface);
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.breadcrumb {
    margin: 0 0 2rem;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 0.9rem;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
}

.breadcrumb li + li::before {
    margin-right: 0.45rem;
    content: '›';
    color: rgba(44, 42, 36, 0.4);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
    color: var(--text);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(16px);
    background: rgba(255, 250, 246, 0.9);
    border-bottom: 1px solid rgba(41, 53, 46, 0.09);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.brand iconify-icon {
    color: var(--tomato);
    font-size: 1.45rem;
}

iconify-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    color: var(--muted);
    transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
}

.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-width: 2.75rem;
    min-height: 2.75rem;
    border: none;
    background: transparent;
    padding: 0.5rem;
    cursor: pointer;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 1.5rem;
    height: 2px;
    margin: 4px 0;
    background: var(--text);
    transition: transform 0.2s ease;
}

.hero-section {
    padding: 4rem 0 3rem;
}

.home-simple {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.home-simple main {
    flex: 1;
}

.home-welcome {
    position: relative;
    display: grid;
    min-height: clamp(38rem, calc(100vh - 5rem), 56rem);
    place-items: center;
    padding: 5rem 0;
    background: linear-gradient(90deg, rgba(18, 29, 21, 0.83), rgba(18, 29, 21, 0.5)), url('/images/main-hero.webp') center 52% / cover no-repeat;
    color: #fff;
}

.home-welcome-inner {
    max-width: 1120px;
    text-align: left;
}

.home-welcome .eyebrow {
    color: #ffd0c5;
}

.home-welcome h1 {
    max-width: 48rem;
    margin: 0 0 1.5rem;
    font-size: clamp(3rem, 7vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.home-welcome-copy {
    max-width: 42rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.75;
}

.home-welcome-action {
    margin-top: 2rem;
}

.home-welcome-note {
    max-width: 34rem;
    margin: 1.25rem 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    line-height: 1.6;
}

.home-gallery {
    overflow: hidden;
    padding: clamp(1rem, 2vw, 1.5rem) 0;
    background: #183427;
}

.home-gallery-viewport {
    width: 100%;
    overflow: hidden;
}

.home-gallery-track,
.home-gallery-group {
    display: flex;
    width: max-content;
}

.home-gallery-track {
    animation: home-gallery-flow-right 46s linear infinite;
    will-change: transform;
}

.home-gallery-group {
    gap: clamp(0.75rem, 1.4vw, 1.25rem);
    padding-right: clamp(0.75rem, 1.4vw, 1.25rem);
}

.home-gallery-item {
    width: clamp(10.5rem, 15vw, 15rem);
    height: clamp(7rem, 9vw, 9rem);
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: clamp(1rem, 2vw, 1.5rem);
    background: #26493a;
    box-shadow: 0 18px 38px rgba(8, 20, 13, 0.24);
}

.home-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-gallery:hover .home-gallery-track,
.home-gallery:focus-within .home-gallery-track {
    animation-play-state: paused;
}

@keyframes home-gallery-flow-right {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

.finder-page-intro {
    padding: 2rem 0 1rem;
}

.finder-page-intro h1 {
    max-width: 48rem;
    margin: 0 0 1rem;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.finder-page-intro > .container > p:last-child {
    max-width: 44rem;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.ingredient-index-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.ingredient-index-grid a {
    display: flex;
    min-height: 6rem;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.2rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
}

.ingredient-index-grid span {
    font-size: 1.1rem;
    font-weight: 750;
}

.ingredient-index-grid small {
    color: var(--muted);
}

.ingredient-index-grid a:hover,
.ingredient-index-grid a:focus-visible {
    border-color: var(--accent);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-latest {
    padding: 1.35rem;
    border-radius: 1.4rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(243, 226, 218, 0.78));
    border: 1px solid rgba(126, 85, 67, 0.12);
    box-shadow: 0 24px 60px rgba(59, 58, 52, 0.08);
}

.hero-latest-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hero-latest-heading .eyebrow {
    flex: 0 0 auto;
    margin: 0;
}

.hero-latest-heading h2 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.2;
    text-align: right;
}

.hero-latest-grid {
    display: grid;
}

.hero-recipe-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(44, 42, 36, 0.09);
    border-radius: 1.05rem;
    background: rgba(255, 255, 255, 0.92);
}

.hero-recipe-card-link {
    display: grid;
    grid-template-columns: minmax(9rem, 0.9fr) minmax(0, 1.1fr);
    color: inherit;
}

.hero-recipe-thumbnail {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 13rem;
    place-items: center;
    object-fit: cover;
}

.hero-recipe-card-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 1.25rem;
}

.hero-recipe-date {
    margin: 0 0 0.65rem;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-recipe-card h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.2;
}

.hero-recipe-card-link:hover h3,
.hero-recipe-card-link:focus-visible h3,
.hero-recipe-card-link:hover .hero-recipe-link,
.hero-recipe-card-link:focus-visible .hero-recipe-link {
    color: var(--accent);
}

.hero-recipe-names {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
    margin: 0.55rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.hero-recipe-time {
    margin: 0.8rem 0 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.hero-recipe-link {
    align-self: flex-start;
    margin-top: 0.85rem;
    color: var(--accent-strong);
    font-size: 0.88rem;
    font-weight: 800;
}

.hero-latest-empty {
    margin: 0;
    color: var(--muted);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1,
.section-header h2 {
    margin: 0;
    line-height: 1.05;
}

.hero-copy h1 {
    font-size: clamp(2.75rem, 5vw, 4.2rem);
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
}

.hero-copy p {
    max-width: 40rem;
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 1.75rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.95rem 1.6rem;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hero-note {
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.button-primary {
    background: var(--tomato);
    color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
    transform: translateY(-1px);
    background: var(--tomato-strong);
}

.hero-note {
    color: var(--muted);
    font-size: 0.96rem;
}

.hero-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.4rem;
    overflow: hidden;
}

.hero-image {
    position: relative;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.hero-card-inner {
    padding: 2rem;
}

.hero-card-label {
    margin: 0 0 1rem;
    color: var(--accent);
    font-weight: 700;
}

.ingredient-tags {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.ingredient-tags span,
.chips-grid span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #6f483b;
    font-weight: 600;
    font-size: 0.95rem;
}

.section-panel {
    padding: 3.5rem 0;
}

.warm-panel {
    background: var(--surface-soft);
}

.section-header {
    max-width: 38rem;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    margin-bottom: 0.75rem;
}

.section-description,
.section-note {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.chips-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 2rem;
}

.ingredient-finder {
    margin-top: 2rem;
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid var(--border);
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.75);
}

.pantry-toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    width: fit-content;
    cursor: pointer;
}

.pantry-toggle input {
    width: 1.2rem;
    height: 1.2rem;
    margin: 0.15rem 0 0;
    accent-color: var(--accent);
}

.pantry-toggle span,
.pantry-toggle small {
    display: block;
}

.pantry-toggle small {
    margin-top: 0.25rem;
    color: var(--muted);
}

.ingredient-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.75rem 0 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.ingredient-count {
    margin: 0;
    font-weight: 700;
}

.text-button {
    padding: 0.25rem;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
}

.text-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ingredient-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.ingredient-category {
    align-self: start;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--surface);
    overflow: hidden;
}

.ingredient-category summary {
    padding: 1rem 1.1rem;
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}

.ingredient-category[open] summary {
    border-bottom: 1px solid var(--border);
}

.ingredient-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 1rem;
}

.ingredient-chip {
    min-height: 2.6rem;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.ingredient-chip:hover:not(:disabled) {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.ingredient-chip.is-selected {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.ingredient-chip:disabled {
    cursor: default;
    opacity: 0.78;
}

.selected-ingredients {
    margin-top: 1.25rem;
    padding: 1.15rem;
    border-radius: 1rem;
    background: var(--surface-soft);
}

.selected-ingredients h3 {
    margin: 0 0 0.8rem;
    font-size: 1rem;
}

.selected-ingredient-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.selected-ingredient {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.45rem 0.45rem 0.75rem;
    border-radius: 999px;
    background: var(--surface);
    font-size: 0.9rem;
    font-weight: 600;
}

.selected-ingredient button {
    display: inline-grid;
    place-items: center;
    width: 1.6rem;
    height: 1.6rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--text);
    cursor: pointer;
}

.empty-selection {
    margin: 0;
    color: var(--muted);
}

.finder-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.finder-actions .button {
    cursor: pointer;
}

.finder-actions .button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.finder-message {
    min-height: 1.5em;
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.finder-error {
    grid-column: 1 / -1;
    margin: 0;
    padding: 1rem;
    border-radius: 0.8rem;
    background: #fff4f1;
    color: #8a3d2e;
}

.recipe-results {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.recipe-results-header {
    max-width: 42rem;
    margin-bottom: 1.5rem;
}

.recipe-results-header h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.1;
}

.recipe-results-status {
    margin: 0.75rem 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.recipe-results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.recipe-result-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    background: var(--surface);
    box-shadow: 0 18px 40px rgba(44, 42, 36, 0.06);
}

.recipe-result-card.is-add-one {
    border-color: rgba(92, 126, 115, 0.45);
}

.recipe-result-image,
.recipe-result-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.recipe-result-image {
    height: auto;
    object-fit: cover;
}

.recipe-result-placeholder {
    display: grid;
    place-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-soft), #f4dfd5);
    color: rgba(44, 42, 36, 0.58);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.recipe-result-content {
    padding: 1.4rem;
}

.recipe-accessibility {
    display: inline-flex;
    margin: 0 0 0.8rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #4b6d62;
    font-size: 0.76rem;
    font-weight: 700;
}

.recipe-result-content h3 {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.25;
}

.recipe-romanized-name {
    margin: 0.4rem 0 0;
    color: var(--accent);
    font-weight: 700;
}

.recipe-korean-name {
    margin: 0.2rem 0 0;
    color: var(--muted);
}

.recipe-result-description {
    margin: 1rem 0;
    color: var(--muted);
    line-height: 1.65;
}

.recipe-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1.1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 0.88rem;
}

.recipe-metadata li + li {
    position: relative;
}

.recipe-metadata li + li::before {
    position: absolute;
    left: -0.65rem;
    content: '·';
}

.recipe-match-message {
    margin: 1rem 0 0;
    color: var(--text);
    font-weight: 700;
}

.recipe-page-note {
    margin: 0.45rem 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.recipe-detail-link {
    margin-top: 1rem;
    padding: 0.75rem 1.1rem;
    font-size: 0.9rem;
}

.recipe-add-ingredient {
    margin-top: 1rem;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    font-size: 0.9rem;
}

.recipe-add-ingredient:hover,
.recipe-add-ingredient:focus-visible {
    background: var(--accent-soft);
    transform: translateY(-1px);
}

.steps-grid,
.cards-grid,
.recipe-list,
.substitute-card,
.featured-card {
    display: grid;
    gap: 1rem;
}

.steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 1.75rem;
}

.step-card h3,
.feature-card h3,
.substitute-card h3,
.recipe-list article h3 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
}

.step-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.substitute-card,
.featured-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 1.75rem;
}

.feature-card .card-label {
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.85rem;
}

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

.recipe-list article {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 1.5rem;
}

.recipe-list article h3 {
    margin: 0;
}

.substitute-card {
    padding: 2rem;
}

.section-note {
    margin-top: 1rem;
}

.featured-card {
    grid-template-columns: 1fr;
    padding: 2rem;
}

.featured-label {
    margin: 0 0 0.65rem;
    font-weight: 700;
    color: var(--accent);
}

.about-panel {
    padding-bottom: 5rem;
}

.site-footer {
    padding: clamp(3rem, 7vw, 5rem) 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    background: #183427;
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(15rem, 0.75fr) minmax(0, 1.25fr);
    gap: clamp(2.5rem, 8vw, 7rem);
    align-items: start;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.footer-brand iconify-icon {
    color: #ff8b72;
    font-size: 1.65rem;
}

.footer-intro > p {
    max-width: 27rem;
    margin: 1.2rem 0 0;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.75;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 3.5rem);
}

.footer-link-group {
    display: grid;
    align-content: start;
    gap: 0.78rem;
}

.footer-link-group h2 {
    margin: 0 0 0.35rem;
    color: #ffb8a7;
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer-link-group a {
    width: fit-content;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
}

.footer-link-group a:hover,
.footer-link-group a:focus-visible {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: clamp(2.5rem, 6vw, 4.5rem);
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
}

.footer-bottom p {
    margin: 0;
}

@media (max-width: 980px) {
    .hero-grid,
    .steps-grid,
    .cards-grid,
    .recipe-list {
        grid-template-columns: 1fr;
    }

    .ingredient-tags,
    .chips-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ingredient-categories {
        grid-template-columns: 1fr;
    }

    .recipe-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ingredient-index-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .site-nav {
        width: 100%;
        display: none;
    }

    .site-nav.open {
        display: block;
        background: rgba(248, 243, 238, 0.98);
        margin-top: 0.75rem;
        border-radius: 1rem;
        padding: 1rem;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 0.85rem;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .hero-section {
        padding-top: 3rem;
    }

    .hero-latest-grid {
        grid-template-columns: 1fr;
    }

    .hero-recipe-card-link {
        grid-template-columns: minmax(8rem, 0.8fr) minmax(0, 1.2fr);
    }

    .hero-recipe-thumbnail {
        min-height: 11rem;
    }

    .hero-card {
        padding: 1.5rem;
    }

    .steps-grid,
    .cards-grid,
    .recipe-list,
    .chips-grid,
    .ingredient-tags {
        grid-template-columns: 1fr;
    }

    .finder-actions {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 520px) {
    .home-welcome {
        min-height: calc(100svh - 4.8rem);
        padding: 4rem 0;
        background-position: 57% center;
    }

    .home-welcome h1 {
        font-size: 2.75rem;
    }

    .home-gallery-item {
        width: 10rem;
        height: 6.75rem;
    }

    .footer-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 2rem;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .ingredient-index-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        font-size: 2.4rem;
    }

    .button {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-latest-heading {
        display: block;
    }

    .hero-latest-heading h2 {
        margin-top: 0.35rem;
        text-align: left;
    }

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

    .hero-recipe-thumbnail {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .ingredient-finder {
        padding: 1rem;
    }

    .ingredient-chip-group {
        gap: 0.5rem;
        padding: 0.85rem;
    }

    .ingredient-chip {
        flex: 1 1 calc(50% - 0.5rem);
    }

    .finder-actions .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-gallery-viewport {
        overflow-x: auto;
    }

    .home-gallery-track {
        animation: none;
        transform: none;
    }

    .home-gallery-group[aria-hidden="true"] {
        display: none;
    }
}

/* 2026 visual refresh: tomato warmth, market green, and a clearer Finder flow. */
.finder-page-intro {
    padding: 3rem 0 2rem;
}

.finder-page-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.65fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: end;
}

.finder-page-intro-inner > .breadcrumb {
    margin-bottom: 2rem;
}

.finder-page-intro-grid > div > p:last-child {
    max-width: 43rem;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.finder-guide {
    display: grid;
    gap: 0.8rem;
    padding: 1.3rem;
    border: 1px solid rgba(62, 138, 96, 0.16);
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: var(--shadow);
}

.finder-guide p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 700;
}

.finder-guide p span {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 1.15rem;
}

.finder-page .warm-panel {
    background: linear-gradient(180deg, rgba(223, 241, 229, 0.7), rgba(255, 248, 243, 0.72));
}

.ingredient-finder {
    margin-top: 0;
    padding: clamp(1.2rem, 3vw, 2rem);
    border-color: rgba(62, 138, 96, 0.18);
    border-radius: 1.75rem;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 24px 70px rgba(53, 76, 62, 0.1);
}

.finder-picker-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.finder-picker-heading h2,
.selected-ingredients h2 {
    margin: 0;
    font-size: 1.35rem;
}

.finder-step-label {
    margin: 0 0 0.3rem;
    color: var(--tomato);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ingredient-toolbar {
    margin: 0;
    padding: 0;
    border: 0;
}

.ingredient-count {
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 0.82rem;
}

.text-button {
    border: 0;
    color: var(--tomato-strong);
    font-size: 0.82rem;
    font-weight: 750;
}

.pantry-toggle {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    width: 100%;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(228, 87, 63, 0.18);
    border-radius: 1.15rem;
    background: var(--tomato-soft);
}

.pantry-toggle .pantry-toggle-icon {
    display: grid;
    width: 2.65rem;
    height: 2.65rem;
    align-self: center;
    justify-self: start;
    place-items: center;
    border-radius: 0.85rem;
    border-radius: 50%;
    background: var(--tomato);
    color: #fff;
    font-size: 1.35rem;
    line-height: 0;
}

.pantry-toggle .pantry-toggle-icon iconify-icon {
    display: block;
    width: 1.35rem;
    height: 1.35rem;
}

.pantry-toggle-copy small {
    margin-top: 0.2rem;
}

.pantry-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.pantry-toggle-switch {
    position: relative;
    width: 3rem;
    height: 1.65rem;
    border-radius: 999px;
    background: rgba(102, 112, 104, 0.32);
    transition: background 0.2s ease;
}

.pantry-toggle-switch::after {
    position: absolute;
    top: 0.2rem;
    left: 0.2rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 7px rgba(41, 53, 46, 0.22);
    content: '';
    transition: transform 0.2s ease;
}

.pantry-toggle input:checked + .pantry-toggle-switch {
    background: var(--accent);
}

.pantry-toggle input:checked + .pantry-toggle-switch::after {
    transform: translateX(1.35rem);
}

.pantry-toggle input:focus-visible + .pantry-toggle-switch {
    outline: 3px solid rgba(62, 138, 96, 0.38);
    outline-offset: 3px;
}

.finder-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(17rem, 0.7fr);
    gap: 1.25rem;
    align-items: start;
}

.ingredient-categories {
    grid-template-columns: 1fr;
}

.ingredient-category {
    border-color: rgba(41, 53, 46, 0.1);
    border-radius: 1.2rem;
    box-shadow: 0 8px 24px rgba(53, 76, 62, 0.04);
}

.ingredient-category summary {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.65rem;
    color: var(--accent-strong);
}

.ingredient-category summary iconify-icon {
    display: grid;
    width: 2.15rem;
    height: 2.15rem;
    padding: 0.5rem;
    place-items: center;
    border-radius: 50%;
    background: var(--tomato);
    color: #fff;
    font-size: 1.15rem;
    box-sizing: border-box;
}

.ingredient-category summary > iconify-icon {
    flex: 0 0 2.15rem;
}

.ingredient-chip > iconify-icon {
    width: 1.3rem;
    height: 1.3rem;
}

.finder-page-intro {
    position: relative;
    overflow: hidden;
    min-height: 25rem;
    padding: 0;
    background: linear-gradient(90deg, rgba(20, 31, 24, 0.84), rgba(20, 31, 24, 0.58)), url('/images/sub-top.webp') center 58% / cover no-repeat;
    color: #fff;
}

.finder-page-intro-inner {
    display: flex;
    min-height: 25rem;
    flex-direction: column;
    justify-content: center;
    padding-block: 2.5rem;
}

.finder-page-intro .breadcrumb,
.finder-page-intro .breadcrumb ol,
.finder-page-intro .breadcrumb a,
.finder-page-intro-grid > div > p:last-child {
    color: rgba(255, 255, 255, 0.84);
}

.finder-page-intro .breadcrumb li + li::before {
    color: rgba(255, 255, 255, 0.55);
}

.finder-page-intro .eyebrow {
    color: #ffd0c5;
}

.finder-guide {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(19, 40, 28, 0.66);
    color: #fff;
    backdrop-filter: blur(8px);
}

.finder-guide p {
    color: #fff;
}

.ingredient-category summary small {
    display: grid;
    width: 1.65rem;
    height: 1.65rem;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 0.72rem;
}

.ingredient-chip-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.ingredient-chip {
    display: flex;
    min-width: 0;
    min-height: 3.25rem;
    align-items: center;
    justify-content: flex-start;
    gap: 0.6rem;
    border-radius: 0.9rem;
    text-align: left;
}

.ingredient-chip iconify-icon {
    color: var(--accent);
    font-size: 1.25rem;
}

.ingredient-chip.is-selected {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 8px 18px rgba(62, 138, 96, 0.2);
}

.ingredient-chip.is-selected iconify-icon {
    color: #fff;
}

.ingredient-chip.is-selected:disabled iconify-icon {
    color: var(--tomato);
}

.ingredient-chip:disabled {
    border-color: rgba(228, 87, 63, 0.15);
    background: #fff8f5;
    color: var(--muted);
    opacity: 1;
}

.finder-selection-panel {
    position: sticky;
    top: 6.5rem;
    overflow: hidden;
    border: 1px solid rgba(62, 138, 96, 0.17);
    border-radius: 1.25rem;
    background: var(--surface-soft);
}

.selected-ingredients {
    min-height: 13rem;
    margin: 0;
    padding: 1.25rem;
    border-radius: 0;
    background: transparent;
}

.selected-ingredients-help {
    margin: 0.45rem 0 1rem;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.selected-ingredient {
    border: 1px solid rgba(62, 138, 96, 0.14);
    color: var(--accent-strong);
}

.selected-ingredient > iconify-icon {
    color: var(--tomato) !important;
}

.selected-ingredient button {
    background: var(--tomato-soft);
    color: var(--tomato-strong);
}

.finder-actions {
    display: block;
    margin: 0;
    padding: 1.25rem;
    border-top: 1px solid rgba(62, 138, 96, 0.14);
    background: #fff;
}

.finder-actions .button {
    width: 100%;
    gap: 0.5rem;
    border-radius: 0.9rem;
}

.finder-message {
    margin-top: 0.65rem;
    font-size: 0.82rem;
}

.recipe-results {
    border-color: rgba(62, 138, 96, 0.18);
}

.recipe-result-card {
    border-color: rgba(62, 138, 96, 0.13);
    box-shadow: var(--shadow);
}

.recipe-result-card.is-add-one {
    border-color: rgba(228, 87, 63, 0.38);
}

.recipe-accessibility {
    color: var(--accent-strong);
}

@media (max-width: 900px) {
    .finder-page-intro-grid,
    .finder-workspace {
        grid-template-columns: 1fr;
    }

    .finder-guide {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .finder-selection-panel {
        position: static;
    }
}

@media (max-width: 680px) {
    .finder-guide,
    .ingredient-chip-group {
        grid-template-columns: 1fr;
    }

    .finder-picker-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .ingredient-toolbar {
        width: 100%;
    }

    .pantry-toggle {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .ingredient-chip {
        flex: none;
        width: 100%;
    }
}
/* Global share actions */
.share-boundary {
    position: relative;
    z-index: 8;
    min-height: 6.25rem;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 253, 249, 0.97);
    box-shadow: 0 12px 28px rgba(43, 66, 52, 0.06);
}

.share-boundary > .container {
    display: flex;
    min-height: 6.25rem;
    align-items: center;
}

.share-actions {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0;
    width: fit-content;
    max-width: 100%;
}

.share-action,
.share-platform {
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.48rem;
    padding: 0.65rem 0.95rem;
    background: rgba(255, 255, 255, 0.94);
    color: #173427;
    font: inherit;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.share-action:hover,
.share-platform:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(20, 54, 39, 0.14);
}

.share-action:focus-visible,
.share-platform:focus-visible {
    outline: 3px solid #ffcf87;
    outline-offset: 3px;
}

.share-actions iconify-icon {
    display: inline-block;
    width: 1.05em;
    height: 1.05em;
    flex: 0 0 1.05em;
}

.share-platforms {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.share-platform {
    width: 44px;
    height: 44px;
    min-height: 44px;
    flex: 0 0 44px;
    padding: 0;
    border-color: transparent;
    border-radius: 50%;
    box-shadow: 0 7px 17px rgba(27, 52, 39, 0.13);
    color: #fff;
}

.share-platform-pinterest { background: #bd081c; }
.share-platform-facebook { background: #1877f2; }
.share-platform-x { background: #111; }
.share-platform-threads { background: #252525; }
.share-platform-instagram { background: linear-gradient(135deg, #833ab4, #e1306c 52%, #fcb045); }

.share-platform[aria-disabled="true"] {
    cursor: not-allowed;
    filter: grayscale(1);
    opacity: 0.42;
}

.share-platform iconify-icon {
    width: 1.12rem;
    height: 1.12rem;
    flex-basis: 1.12rem;
}

.share-feedback {
    min-height: 1.2em;
    color: currentColor;
    font-size: 0.87rem;
    font-weight: 750;
    opacity: 0;
}

.share-feedback.is-visible { opacity: 1; }

.share-copy-fallback {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
}

@media (max-width: 520px) {
    .share-boundary,
    .share-boundary > .container { min-height: 7.25rem; }
    .share-boundary > .container { padding-block: 1.15rem; }
    .share-actions { width: 100%; }
    .share-action { flex: 0 1 auto; }
    .share-feedback { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .share-action,
    .share-platform { transition: none; }
}
