.isf-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 1rem;
}

.isf-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    text-align: center;
}

.isf-sub {
    margin: 0 0 1.25rem;
    color: #4b5563;
    line-height: 1.55;
    text-align: center;
}

.isf-search-row { position: relative; }

.isf-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #d6d3d1;
    border-radius: 10px;
    font: inherit;
    font-size: 1.05rem;
    box-sizing: border-box;
}

.isf-input:focus {
    outline: none;
    border-color: #65a30d;
}

.isf-suggest {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 20;
    overflow: hidden;
}

.isf-suggest[hidden] { display: none; }

.isf-sug {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.6rem 1rem;
    border: none;
    background: #fff;
    font: inherit;
    cursor: pointer;
}

.isf-sug.isf-on, .isf-sug:hover { background: #f7fee7; }

.isf-chips {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin: 0.9rem 0 0;
    justify-content: center;
}

.isf-chip {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid #d6d3d1;
    background: #fff;
    font: inherit;
    font-size: 0.87rem;
    cursor: pointer;
}

.isf-chip:hover { background: #f7fee7; border-color: #65a30d; }

.isf-result {
    margin-top: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem;
    background: #fff;
}

.isf-rh { margin: 0 0 0.4rem; font-size: 1.2rem; }
.isf-rdesc { color: #57534e; font-size: 0.93rem; margin: 0 0 1rem; line-height: 1.55; }

.isf-sub {
    border: 1px solid #ecfccb;
    border-left: 4px solid #65a30d;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.8rem;
    background: #fdfff7;
}

.isf-sub-head { display: flex; gap: 0.6rem; align-items: center; margin-bottom: 0.4rem; }
.isf-sub-head h4 { margin: 0; font-size: 1.02rem; }

.isf-rank {
    flex-shrink: 0;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: #65a30d;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.isf-amount { margin: 0 0 0.35rem; }
.isf-for { color: #6b7280; font-size: 0.88rem; }
.isf-sub p { margin: 0.3rem 0; font-size: 0.93rem; line-height: 1.55; }

.isf-note-sm { font-size: 0.85rem; color: #57534e; font-style: italic; }

.isf-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 0.45rem; }
.isf-tag {
    font-size: 0.75rem;
    font-weight: 600;
    background: #ecfccb;
    color: #3f6212;
    border-radius: 999px;
    padding: 0.12rem 0.6rem;
}

.isf-page-link { display: inline-block; margin-top: 0.6rem; color: #4d7c0f; font-weight: 600; }

.isf-note { text-align: center; color: #6b7280; font-size: 0.9rem; margin: 1.2rem 0 0.6rem; }
.isf-h { font-size: 1.1rem; margin: 0 0 0.8rem; }

.isf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
}

.isf-cell {
    display: block;
    padding: 0.55rem 0.7rem;
    border: 1px solid #e7e5e4;
    border-radius: 8px;
    text-decoration: none;
    color: #1c1917;
    font-size: 0.9rem;
    background: #fff;
}

.isf-cell:hover { border-color: #65a30d; background: #f7fee7; }

/* ------- virtual ingredient pages ------- */
.isf-page-wrap { max-width: 760px; margin: 0 auto; padding: 1rem; }
.isf-page-wrap h1 { font-size: 1.6rem; line-height: 1.3; }
.isf-crumb { font-size: 0.85rem; color: #6b7280; margin-bottom: 0.6rem; }
.isf-crumb a { color: #4d7c0f; }
.isf-lead { font-size: 1.02rem; color: #44403c; line-height: 1.6; }
.isf-page-subs { margin: 1.5rem 0; }
.isf-psub {
    border: 1px solid #e7e5e4;
    border-left: 4px solid #65a30d;
    border-radius: 8px;
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
    background: #fff;
}
.isf-psub-head { display: flex; gap: 0.6rem; align-items: center; }
.isf-psub-head h2 { margin: 0; font-size: 1.15rem; }
.isf-faq { margin: 1rem 0 1.5rem; }
.isf-qa { border-bottom: 1px solid #f0ede8; padding: 0.7rem 0; }
.isf-qa h3 { margin: 0 0 0.3rem; font-size: 1rem; }
.isf-qa p { margin: 0; color: #57534e; line-height: 1.6; }
.isf-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.6rem; margin: 1rem 0 1.5rem; }
.isf-rel-card {
    display: block;
    padding: 0.7rem 0.9rem;
    border: 1px solid #e7e5e4;
    border-radius: 8px;
    text-decoration: none;
    color: #1c1917;
    font-weight: 600;
    font-size: 0.92rem;
}
.isf-rel-card:hover { border-color: #65a30d; background: #f7fee7; }
.isf-cta { background: #f7fee7; border-radius: 10px; padding: 1rem 1.2rem; }
.isf-cta a { color: #4d7c0f; font-weight: 600; }
