/**
 * Recipe library page (/cong-thuc-pha-che/), ported from the site owner's mockup.
 * Loaded only on that page, after app.css. Every rule is scoped under .saly-recipes (the page's
 * <main>) or uses the saly-recipes- prefix, so nothing reaches other pages or the header/footer.
 * Colours follow the theme tokens (brand #0d824b, page #f6f8f6, line #e4ece6, accent #e5761f).
 */

.saly-recipes {
	--sr-brand: #0d824b;
	--sr-brand-dark: #096c3d;
	--sr-green-soft: #e7f2eb;
	--sr-page: #f6f8f6;
	--sr-ink: #1e1b18;
	--sr-muted: #68716b;
	--sr-line: #e4ece6;
	--sr-orange: #e5761f;
	--sr-orange-dark: #c9621a;
	--sr-yellow: #ffd34e;
	--sr-header: 76px;
	display: block;
	color: var(--sr-ink);
	background: var(--sr-page);
	overflow-x: clip;
	padding-bottom: 8px;
}
.saly-recipes :where(h1, h2, h3, p) { margin: 0; }
.saly-recipes :where(button) { cursor: pointer; font: inherit; color: inherit; background: none; border: 0; padding: 0; }
.saly-recipes :where(input, select) { font: inherit; }
.saly-recipes :where(a) { color: inherit; text-decoration: none; }
.saly-recipes svg { flex-shrink: 0; }
.saly-recipes button svg, .saly-recipes a svg { pointer-events: none; }
.saly-recipes button:disabled { cursor: default; opacity: .4; }
.saly-recipes [hidden] { display: none !important; }
.saly-recipes :where(a, button, input, select, summary):focus-visible { outline: 3px solid #eaa85a; outline-offset: 3px; border-radius: 6px; }
/* Controls that only work with the library script stay out of the way without JavaScript. */
.saly-recipes:not(.has-js) [data-js-only] { display: none !important; }

/* Buttons */
.saly-recipes .sr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 20px; border-radius: 10px; font-size: .875rem; font-weight: 600; line-height: 1.5; white-space: nowrap; transition: background .16s, box-shadow .16s, transform .16s; }
.saly-recipes .sr-btn:hover { transform: translateY(-1px); }
.saly-recipes .sr-btn--brand { background: var(--sr-brand); color: #fff; }
.saly-recipes .sr-btn--brand:hover { background: var(--sr-brand-dark); box-shadow: 0 6px 15px #0d824b1c; }
.saly-recipes .sr-btn--orange { background: linear-gradient(100deg, var(--sr-orange-dark), var(--sr-orange)); color: #fff; }
.saly-recipes .sr-btn--orange:hover { box-shadow: 0 6px 18px #d871242b; }
.saly-recipes .sr-btn--ghost { background: #fff; color: var(--sr-brand); border: 1px solid #bfdcc9; }
.saly-recipes .sr-btn--ghost:hover { background: var(--sr-green-soft); }
.saly-recipes .sr-icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.saly-recipes .sr-icon-btn:hover { background: var(--sr-green-soft); }
.saly-recipes .sr-text-btn { color: var(--sr-brand); font-size: .875rem; font-weight: 600; padding: 6px 0; min-height: 36px; }
.saly-recipes .sr-text-btn:hover { text-decoration: underline; }
.saly-recipes .sr-eyebrow { display: flex; align-items: center; gap: 7px; font-size: .75rem; font-weight: 700; letter-spacing: .09em; color: var(--sr-brand); line-height: 1.6; }

/* Breadcrumb (theme part) */
.saly-recipes .sr-crumbs { padding: 14px 0 12px; }

/* Hero */
.saly-recipes .sr-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding: 26px 38px; background: #eaf3ed; border: 1px solid #dfebe3; border-radius: 24px; }
.saly-recipes .sr-hero--solo { grid-template-columns: minmax(0, 1fr); }
.saly-recipes .sr-hero::before { content: ""; position: absolute; left: 59%; top: -175px; width: 540px; height: 540px; background: #e0ede3; border-radius: 50%; z-index: -1; }
.saly-recipes .sr-hero::after { content: ""; position: absolute; width: 230px; height: 230px; right: -80px; bottom: -100px; border: 1px solid #b6cfbb; border-radius: 50%; z-index: -1; }
.saly-recipes .sr-hero__copy { min-width: 0; }
.saly-recipes .sr-hero h1 { margin: 10px 0 12px; font-size: clamp(2rem, 3.35vw, 2.75rem); line-height: 1.22; letter-spacing: -.045em; font-weight: 700; color: #174b34; }
.saly-recipes .sr-hero h1 span { color: var(--sr-brand); }
.saly-recipes .sr-hero__copy > p { max-width: 480px; font-size: 1rem; line-height: 1.8; color: #536a5b; }
.saly-recipes .sr-search { display: flex; align-items: center; gap: 6px; max-width: 560px; margin-top: 18px; padding: 5px; background: #fff; border: 1px solid #d4e4d8; border-radius: 12px; box-shadow: 0 6px 18px #134e3510; }
.saly-recipes .sr-search:focus-within { box-shadow: 0 0 0 3px #0d824b18; border-color: #74a98b; }
.saly-recipes .sr-search__icon { display: flex; margin-left: 12px; color: var(--sr-brand); }
.saly-recipes .sr-search input { width: 100%; min-width: 0; height: 40px; border: 0; background: transparent; outline: 0; font-size: 1rem; line-height: 1.5; color: var(--sr-ink); }
.saly-recipes .sr-search input::placeholder { color: #7b867e; }
.saly-recipes .sr-search input::-webkit-search-cancel-button { display: none; }
.saly-recipes .sr-search__clear { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; color: #7b867e; }
.saly-recipes .sr-search__clear:hover { background: var(--sr-green-soft); }
.saly-recipes .sr-search__submit { min-height: 44px; padding: 10px 16px; border-radius: 8px; }
.saly-recipes .sr-search__short { display: none; }
.saly-recipes .sr-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 11px; font-size: .875rem; }
.saly-recipes .sr-suggest > span { color: #61776a; }
.saly-recipes .sr-suggest button { position: relative; padding: 6px 10px; font-size: .875rem; color: #436552; background: #ffffff8c; border: 1px solid #d4e4d9; border-radius: 30px; transition: background .15s; }
/* Taller invisible hit area so the small suggestion chips are easy to tap. */
.saly-recipes .sr-suggest button::after { content: ""; position: absolute; inset: -6px 0; }
.saly-recipes .sr-suggest button:hover { background: #fff; border-color: #8cb79e; }
.saly-recipes .sr-feature { position: relative; display: block; max-width: 356px; margin: 0 0 0 auto; overflow: hidden; background: #fff; border: 5px solid #fff; border-radius: 18px; box-shadow: 0 12px 30px #14513216; transform: rotate(1.2deg); transition: transform .2s; }
.saly-recipes .sr-feature:hover { transform: rotate(0) translateY(-2px); }
.saly-recipes .sr-feature__photo { position: relative; overflow: hidden; aspect-ratio: 1.65; border-radius: 12px 12px 0 0; background: #eef3ec; }
.saly-recipes .sr-feature__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 47%; }
.saly-recipes .sr-feature__label { position: absolute; left: 10px; top: 10px; display: flex; align-items: center; gap: 5px; padding: 6px 9px; font-size: .75rem; font-weight: 600; color: #6a5b20; background: #fffef4f5; border: 1px solid #ece8ce; border-radius: 25px; }
.saly-recipes .sr-feature__label svg { color: #cf9824; fill: currentColor; }
.saly-recipes .sr-feature__caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 14px 13px; }
.saly-recipes .sr-feature__caption > div > span { font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: #8b948e; }
.saly-recipes .sr-feature__caption h2 { margin-top: 4px; font-size: 1.0625rem; font-weight: 700; color: #214a34; }
.saly-recipes .sr-feature__open { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex-shrink: 0; color: var(--sr-brand); background: var(--sr-page); border: 1px solid var(--sr-line); border-radius: 50%; }

/* Drink-type chips */
.saly-recipes .sr-categories { padding: 25px 0 24px; }
.saly-recipes .sr-rail { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.saly-recipes .sr-rail::-webkit-scrollbar { display: none; }
.saly-recipes .sr-chip { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 13px; font-size: .875rem; font-weight: 500; white-space: nowrap; color: #56605a; background: #fff; border: 1px solid #e1e8e3; border-radius: 10px; transition: background .16s, border-color .16s; }
.saly-recipes .sr-chip:hover { border-color: #7caa8e; background: #f1f7f3; }
.saly-recipes .sr-chip.is-active { color: #fff; background: var(--sr-brand); border-color: var(--sr-brand); }

/* Tabs */
.saly-recipes .sr-library { scroll-margin-top: calc(var(--sr-header) + 16px); }
.saly-recipes:not(.has-js) .sr-library, .saly-recipes .sr-hero + .sr-library { margin-top: 24px; }
.saly-recipes .sr-library__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #dbe6de; }
.saly-recipes .sr-tabs { display: flex; align-items: center; gap: 25px; }
.saly-recipes .sr-tab { position: relative; display: flex; align-items: center; gap: 8px; padding: 15px 2px 19px; font-size: .875rem; font-weight: 600; white-space: nowrap; color: #788179; }
.saly-recipes .sr-tab span { padding: 2px 6px; font-size: .75rem; font-weight: 600; color: #6b746e; background: #ebeeeb; border-radius: 6px; }
.saly-recipes .sr-tab.is-active { color: var(--sr-brand); }
.saly-recipes .sr-tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--sr-brand); border-radius: 3px; }
.saly-recipes .sr-tab.is-active span { color: var(--sr-brand); background: #dfede4; }
.saly-recipes .sr-library__note { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: #859087; }
.saly-recipes .sr-library__note svg { color: #7ba089; }

/* Sidebar + results */
.saly-recipes .sr-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 26px; align-items: start; padding-top: 26px; }
.saly-recipes .sr-layout--wide, .saly-recipes:not(.has-js) .sr-layout { grid-template-columns: minmax(0, 1fr); }
.saly-recipes .sr-filters { position: sticky; top: calc(var(--sr-header) + 20px); overflow: hidden; background: #fff; border: 1px solid var(--sr-line); border-radius: 16px; }
.saly-recipes .sr-filters__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 17px 18px; border-bottom: 1px solid var(--sr-line); }
.saly-recipes .sr-filters__head h2 { display: flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 700; }
.saly-recipes .sr-filters__head h2 svg { color: var(--sr-brand); }
.saly-recipes .sr-filters__head .sr-text-btn { font-size: .75rem; }
.saly-recipes .sr-filters__close, .saly-recipes .sr-filters__foot { display: none; }
.saly-recipes .sr-group { padding: 0 18px; border-bottom: 1px solid var(--sr-line); }
.saly-recipes .sr-group summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 0; font-size: .875rem; font-weight: 700; line-height: 1.5; list-style: none; cursor: pointer; }
.saly-recipes .sr-group summary::-webkit-details-marker { display: none; }
.saly-recipes .sr-group summary::after { content: ""; width: 6px; height: 6px; margin: 0 3px 3px 0; border-right: 1.5px solid #7a8a7f; border-bottom: 1.5px solid #7a8a7f; transform: rotate(45deg); transition: transform .16s; }
.saly-recipes .sr-group[open] summary::after { transform: rotate(225deg); margin-top: 6px; }
.saly-recipes .sr-group__count { margin-left: 6px; padding: 1px 5px; font-size: .75rem; color: #287345; background: #e3eee7; border-radius: 4px; }
.saly-recipes .sr-options { display: flex; flex-direction: column; gap: 1px; padding: 0 0 15px; }
.saly-recipes .sr-options--scroll { max-height: 220px; overflow: auto; padding-right: 5px; scrollbar-width: thin; scrollbar-color: #c6d7cb transparent; }
.saly-recipes .sr-option { display: flex; align-items: center; gap: 8px; padding: 7px 1px; font-size: .875rem; line-height: 1.55; color: #59665e; cursor: pointer; }
.saly-recipes .sr-option input { width: 16px; height: 16px; flex-shrink: 0; margin: 0 2px 0 0; accent-color: var(--sr-brand); }
.saly-recipes .sr-option__count { margin-left: auto; font-size: .75rem; color: #97a198; }
.saly-recipes .sr-option:has(input:checked) { color: var(--sr-brand); font-weight: 600; }
.saly-recipes .sr-option:hover { color: var(--sr-brand); }
.saly-recipes .sr-option.is-unavailable { opacity: .45; cursor: default; }
.saly-recipes .sr-ingredient-search { display: flex; align-items: center; gap: 7px; min-height: 36px; margin: 0 0 8px; padding: 7px 9px; background: #f8faf8; border: 1px solid var(--sr-line); border-radius: 8px; color: #93a297; }
.saly-recipes .sr-ingredient-search:focus-within { border-color: #76a688; }
.saly-recipes .sr-ingredient-search input { width: 100%; min-width: 0; height: 23px; border: 0; background: transparent; outline: none; font-size: .875rem; color: #4c6254; }
.saly-recipes .sr-ingredient-empty { padding: 8px 0 16px; font-size: .75rem; line-height: 1.7; color: #85958a; }
.saly-recipes .sr-filters__help { display: flex; align-items: flex-start; gap: 8px; padding: 16px 17px; color: #829086; background: #f7faf7; }
.saly-recipes .sr-filters__help svg { margin-top: 2px; color: #a5814a; }
.saly-recipes .sr-filters__help p { font-size: .75rem; line-height: 1.8; }
.saly-recipes .sr-backdrop { display: none; }

.saly-recipes .sr-results { min-width: 0; }
.saly-recipes .sr-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 42px; margin-bottom: 20px; }
.saly-recipes .sr-toolbar__copy h2 { font-size: 1rem; font-weight: 700; color: #344b3d; }
.saly-recipes .sr-toolbar__copy h2 strong { color: var(--sr-brand); }
.saly-recipes .sr-toolbar__copy p { margin-top: 5px; font-size: .75rem; line-height: 1.7; color: #859087; }
.saly-recipes .sr-toolbar__controls { display: flex; align-items: center; gap: 10px; }
.saly-recipes .sr-sort { min-width: 0; display: flex; align-items: center; gap: 6px; font-size: .75rem; white-space: nowrap; color: #899087; }
.saly-recipes .sr-sort select, .saly-recipes .sr-per-page select { appearance: none; min-height: 38px; padding: 10px 31px 10px 12px; font-size: .75rem; font-weight: 500; color: #49594f; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23566c5d' stroke-width='1.8'%3E%3Cpath d='m7 9 5 5 5-5'/%3E%3C/svg%3E") right 8px center / 17px no-repeat; border: 1px solid #dfe8e1; border-radius: 8px; cursor: pointer; }
.saly-recipes .sr-filter-trigger { display: none; }
.saly-recipes .sr-active { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 17px; }
.saly-recipes .sr-active-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 7px 9px; font-size: .75rem; font-weight: 500; color: #277747; background: #e6f0e9; border: 1px solid #cfe1d5; border-radius: 7px; }
.saly-recipes .sr-active-chip:hover { background: #d9eadd; }
.saly-recipes .sr-active-clear { padding: 7px 3px; font-size: .875rem; color: var(--sr-brand); text-decoration: underline; text-underline-offset: 3px; }

/* Cards */
.saly-recipes .sr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px 18px; }
.saly-recipes .sr-card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #fff; border: 1px solid #e1e8e2; border-radius: 14px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.saly-recipes .sr-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px #1f573610; border-color: #a8c8b4; }
.saly-recipes .sr-card__photo { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #eef3ec; }
.saly-recipes .sr-card__media { position: relative; display: block; width: 100%; height: 100%; }
.saly-recipes .sr-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.saly-recipes .sr-card:hover .sr-card__media img { transform: scale(1.025); }
/* A photo that fails to load is swapped for a neutral illustrated background by the script. */
.saly-recipes .sr-feature__photo.is-broken,
.saly-recipes .sr-card__media.is-broken { background: linear-gradient(140deg, #ecf2e8, #e0eadd); }
.saly-recipes .sr-card__media.is-broken::after { content: "Ảnh minh họa"; position: absolute; inset: auto 0 14px; text-align: center; font-size: .75rem; color: #66866d; }
.saly-recipes .sr-badge { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 4px; padding: 5px 7px; font-size: .75rem; font-weight: 600; line-height: 1.4; color: #64551b; background: #fffdf0f5; border: 1px solid #e8dfb5; border-radius: 5px; pointer-events: none; }
.saly-recipes .sr-badge svg { color: #bc8f2c; fill: currentColor; }
.saly-recipes .sr-save { position: absolute; top: 4px; right: 4px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; }
.saly-recipes .sr-save__dot { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: #577263; background: #fffffff2; border: 1px solid #ffffffa8; border-radius: 50%; box-shadow: 0 2px 7px #142f3610; transition: background .15s, transform .15s; }
.saly-recipes .sr-save:hover .sr-save__dot { color: var(--sr-brand); background: #fff; transform: scale(1.08); }
.saly-recipes .sr-save.is-saved .sr-save__dot { color: var(--sr-brand); background: #e4f5e9; border-color: #c5e5d0; }
.saly-recipes .sr-save.is-saved svg { fill: currentColor; }
.saly-recipes .sr-card__body { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 16px 15px 0; }
.saly-recipes .sr-card__type { margin-bottom: 7px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #73907e; }
.saly-recipes .sr-card__title { min-height: 2.9em; margin: 0 0 12px; font-size: 1rem; font-weight: 700; line-height: 1.55; letter-spacing: -.01em; color: #243d2e; }
.saly-recipes .sr-card__title a:hover { color: var(--sr-brand); }
.saly-recipes .sr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0 0 15px; padding: 0; list-style: none; font-size: .75rem; line-height: 1.5; color: #7b857e; }
.saly-recipes .sr-meta li { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.saly-recipes .sr-meta svg { color: #859f8e; }
.saly-recipes .sr-card__footer { display: flex; align-items: center; margin-top: auto; padding: 4px 0 5px; border-top: 1px solid #edf1ed; }
.saly-recipes .sr-card__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: .875rem; font-weight: 600; white-space: nowrap; color: var(--sr-brand); }
.saly-recipes .sr-card__link:hover { text-decoration: underline; }

.saly-recipes .sr-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--sr-ph-color, #708e77); background: var(--sr-ph-bg, #e8eee5); }
.saly-recipes .sr-placeholder svg { width: 79%; height: 77%; }
.saly-recipes .sr-placeholder span { font-size: .75rem; opacity: .7; }

/* "More recipes coming" tile: fills the rest of the first row while the library is small. */
.saly-recipes .sr-soon { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 100%; padding: 28px 24px; text-align: center; background: #fbfdfb; border: 1.5px dashed #c9dccf; border-radius: 14px; }
.saly-recipes .sr-soon--1 { grid-column: span 2; }
.saly-recipes .sr-soon__icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; color: var(--sr-brand); background: var(--sr-green-soft); border-radius: 50%; }
.saly-recipes .sr-soon h3 { font-size: 1rem; font-weight: 700; color: #31563e; }
.saly-recipes .sr-soon p { max-width: 380px; font-size: .875rem; line-height: 1.75; color: var(--sr-muted); }
.saly-recipes .sr-soon .sr-btn { margin-top: 4px; min-height: 44px; padding: 10px 18px; }

/* Pagination */
.saly-recipes .sr-pages { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--sr-line); }
.saly-recipes .sr-pages > p { font-size: .75rem; color: #8b948e; }
.saly-recipes .sr-pagination { display: flex; align-items: center; gap: 6px; }
.saly-recipes .sr-page-btn { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; font-size: .875rem; color: #687e6f; background: #fff; border: 1px solid #e1e8e2; border-radius: 7px; }
.saly-recipes .sr-page-btn.is-current { color: #fff; background: var(--sr-brand); border-color: var(--sr-brand); }
.saly-recipes .sr-page-btn:hover:not(:disabled):not(.is-current) { background: var(--sr-green-soft); }
.saly-recipes .sr-page-btn--prev svg { transform: rotate(180deg); }
.saly-recipes .sr-per-page { display: flex; align-items: center; gap: 7px; font-size: .75rem; color: #8b948e; }
.saly-recipes .sr-per-page select { min-height: 33px; padding: 7px 26px 7px 9px; }

/* Empty state */
.saly-recipes .sr-empty { min-height: 330px; padding: 60px 20px; text-align: center; background: #fff; border: 1px solid var(--sr-line); border-radius: 18px; }
.saly-recipes .sr-empty__icon { display: flex; align-items: center; justify-content: center; width: 66px; height: 66px; margin: 0 auto 18px; color: var(--sr-brand); background: var(--sr-green-soft); border-radius: 50%; }
.saly-recipes .sr-empty h3 { margin-bottom: 10px; font-size: 1.125rem; color: #31563e; }
.saly-recipes .sr-empty p { margin-bottom: 22px; font-size: .875rem; line-height: 1.8; color: var(--sr-muted); }

/* Course call to action */
.saly-recipes .sr-cta { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1.6fr 1fr; margin: 46px 0 40px; padding: 36px 44px; color: #fff; background: var(--sr-brand); border-radius: 22px; }
.saly-recipes .sr-cta::before { content: ""; position: absolute; right: 0; top: 15px; z-index: -1; width: 390px; height: 390px; background: #ffffff08; border: 1px solid #ffffff16; border-radius: 50%; }
.saly-recipes .sr-cta .sr-eyebrow { color: #b2dfc2; }
.saly-recipes .sr-cta h2 { margin: 10px 0 12px; font-size: 1.75rem; font-weight: 600; line-height: 1.45; letter-spacing: -.025em; color: #fff; }
.saly-recipes .sr-cta p { max-width: 470px; font-size: 1rem; line-height: 1.9; color: #c4e4d1; }
.saly-recipes .sr-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 23px; margin-top: 22px; }
.saly-recipes .sr-cta__link { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; font-weight: 600; color: #fff; border-bottom: 1px solid #69b78f; }
.saly-recipes .sr-cta__link:hover { color: var(--sr-yellow); }
.saly-recipes .sr-cta__portrait { position: absolute; right: 42px; bottom: 0; display: flex; align-items: flex-end; justify-content: center; width: 300px; height: 100%; }
.saly-recipes .sr-cta__portrait img { width: auto; height: 95%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 5px 5px #07382416); }
.saly-recipes .sr-cta__sign { position: absolute; right: 0; bottom: 26px; display: flex; flex-direction: column; gap: 5px; padding: 12px 18px; color: #fff; background: #185c3fd9; border: 1px solid #ffffff25; border-radius: 10px; backdrop-filter: blur(8px); }
.saly-recipes .sr-cta__sign strong { font-size: 1rem; font-weight: 600; }
.saly-recipes .sr-cta__sign span { font-size: .75rem; color: #ccdfd2; }

/* Save confirmation */
.saly-recipes .sr-toast { position: fixed; left: 50%; bottom: 25px; z-index: 90; width: max-content; max-width: calc(100% - 32px); padding: 13px 20px; font-size: .875rem; text-align: center; color: #fff; background: #174e35; border: 1px solid #ffffff1c; border-radius: 12px; box-shadow: 0 12px 35px #122f342a; opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: opacity .2s, transform .2s; }
.saly-recipes .sr-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.saly-recipes .sr-toast:empty { display: none; }

@media (min-width: 1500px) {
	.saly-recipes .sr-hero { grid-template-columns: 1.5fr 1fr; padding: 40px 48px; }
	.saly-recipes .sr-hero--solo { grid-template-columns: minmax(0, 1fr); }
	.saly-recipes .sr-feature { max-width: 370px; }
	.saly-recipes .sr-layout { grid-template-columns: 248px minmax(0, 1fr); gap: 28px; }
	.saly-recipes .sr-layout--wide { grid-template-columns: minmax(0, 1fr); }
	.saly-recipes .sr-grid { gap: 25px 22px; }
	.saly-recipes .sr-card__body { padding: 18px 18px 0; }
}

@media (max-width: 1180px) {
	.saly-recipes .sr-hero { padding: 30px; gap: 26px; }
	.saly-recipes .sr-hero h1 { font-size: 2.3rem; }
	.saly-recipes .sr-feature { max-width: 330px; }
	.saly-recipes .sr-suggest { gap: 5px; }
	.saly-recipes .sr-layout { grid-template-columns: 214px minmax(0, 1fr); gap: 21px; }
	.saly-recipes .sr-layout--wide { grid-template-columns: minmax(0, 1fr); }
	.saly-recipes .sr-library__note, .saly-recipes .sr-toolbar__copy p { display: none; }
	.saly-recipes .sr-grid { gap: 19px 14px; }
	.saly-recipes .sr-card__body { padding: 14px 13px 0; }
	.saly-recipes .sr-meta { gap: 7px; }
	.saly-recipes .sr-group { padding: 0 15px; }
}

@media (max-width: 1000px) {
	.saly-recipes .sr-hero { grid-template-columns: 1.5fr 1fr; gap: 25px; padding: 26px; }
	.saly-recipes .sr-hero--solo { grid-template-columns: minmax(0, 1fr); }
	.saly-recipes .sr-hero h1 { font-size: 2.05rem; }
	.saly-recipes .sr-feature { max-width: 290px; }
	.saly-recipes .sr-feature__photo { aspect-ratio: 1.35; }
	.saly-recipes .sr-search__submit { padding: 10px 12px; font-size: .75rem; }
	.saly-recipes .sr-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 20px; }
	.saly-recipes .sr-layout--wide { grid-template-columns: minmax(0, 1fr); }
	.saly-recipes .sr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
	.saly-recipes .sr-soon--1 { grid-column: span 1; }
	.saly-recipes .sr-soon--2 { grid-column: 1 / -1; }
	.saly-recipes .sr-card__body { padding: 16px 15px 0; }
	.saly-recipes .sr-toolbar__copy h2 { font-size: .9375rem; }
	.saly-recipes .sr-sort > span { display: none; }
	.saly-recipes .sr-pages { flex-wrap: wrap; gap: 14px; }
	.saly-recipes .sr-cta { grid-template-columns: 1.6fr 1fr; padding: 30px; }
	.saly-recipes .sr-cta h2 { font-size: 1.5rem; }
	.saly-recipes .sr-cta p { max-width: 385px; font-size: .875rem; }
	.saly-recipes .sr-cta__portrait { right: 18px; width: 270px; }
	.saly-recipes .sr-cta__sign { right: 5px; }
}

@media (max-width: 760px) {
	.saly-recipes { --sr-header: 64px; }
	.saly-recipes .sr-crumbs { padding: 4px 0; }
	.saly-recipes .sr-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 27px 24px; border-radius: 20px; }
	.saly-recipes .sr-hero::before { width: 350px; height: 350px; left: 60%; top: -80px; }
	.saly-recipes .sr-hero h1 { margin: 11px 0 13px; font-size: 2rem; line-height: 1.25; }
	.saly-recipes .sr-hero__copy > p { font-size: .9375rem; }
	.saly-recipes .sr-search { margin-top: 21px; }
	.saly-recipes .sr-search input { height: 39px; font-size: 1rem; }
	.saly-recipes .sr-search__long { display: none; }
	.saly-recipes .sr-search__short { display: inline; }
	.saly-recipes .sr-search__submit { min-width: 54px; padding: 10px 13px; font-size: .75rem; }
	.saly-recipes .sr-feature { display: none; }
	.saly-recipes .sr-suggest { gap: 6px; margin-top: 12px; font-size: .75rem; }
	.saly-recipes .sr-suggest button { padding: 6px 9px; font-size: .75rem; }
	.saly-recipes .sr-categories { padding: 19px 0 20px; margin-right: -16px; }
	.saly-recipes .sr-rail { gap: 7px; padding-right: 16px; }
	.saly-recipes .sr-chip { padding: 9px 12px; font-size: .8125rem; }
	.saly-recipes .sr-tabs { gap: 20px; justify-content: space-between; width: 100%; overflow-x: auto; scrollbar-width: none; }
	.saly-recipes .sr-tab { gap: 6px; padding: 12px 0 16px; font-size: .8125rem; }
	.saly-recipes .sr-tab > svg { display: none; }
	.saly-recipes .sr-tab span { padding: 2px 5px; }
	.saly-recipes .sr-layout { display: block; padding-top: 21px; }
	.saly-recipes .sr-toolbar { flex-wrap: wrap; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
	.saly-recipes .sr-toolbar__copy { width: 100%; }
	.saly-recipes .sr-toolbar__copy h2 { font-size: 1rem; }
	.saly-recipes .sr-toolbar__copy p { display: block; font-size: .8125rem; line-height: 1.6; }
	.saly-recipes .sr-toolbar__controls { width: 100%; justify-content: space-between; }
	.saly-recipes .sr-filter-trigger { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; font-size: .8125rem; font-weight: 600; background: #fff; border: 1px solid #dce6de; border-radius: 8px; }
	.saly-recipes .sr-filter-trigger > span { display: flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; font-size: .75rem; color: #fff; background: var(--sr-brand); border-radius: 4px; }
	.saly-recipes .sr-sort > span { display: inline; }
	.saly-recipes .sr-sort select { min-height: 44px; padding: 9px 29px 9px 10px; }
	.saly-recipes .sr-toolbar__controls:not(:has(.sr-filter-trigger)) { justify-content: flex-end; }

	/* Filter sheet */
	.saly-recipes .sr-filters { position: fixed; top: 0; bottom: 0; left: 0; z-index: 70; display: flex; flex-direction: column; width: min(360px, 90vw); max-height: 100dvh; border-radius: 0 20px 20px 0; visibility: hidden; transform: translateX(-105%); transition: transform .24s, visibility .24s; }
	/* Visible at once when opening (so focus can move in), hidden only after the slide-out. */
	.saly-recipes .sr-filters.is-open { visibility: visible; transform: translateX(0); transition: transform .24s, visibility 0s; }
	.saly-recipes .sr-backdrop { position: fixed; inset: 0; z-index: 60; display: block; background: #193a2a7a; backdrop-filter: blur(2px); }
	.saly-recipes .sr-filters__head { padding: 14px 14px 14px 20px; }
	.saly-recipes .sr-filters__head h2 { font-size: 1rem; }
	.saly-recipes .sr-filters__reset { display: none; }
	.saly-recipes .sr-filters__close { display: flex; width: 44px; height: 44px; }
	.saly-recipes .sr-filters__groups { flex: 1; min-height: 0; overflow: auto; }
	.saly-recipes .sr-group { padding: 0 20px; }
	.saly-recipes .sr-group summary { padding: 18px 0; font-size: .9375rem; }
	.saly-recipes .sr-option { min-height: 44px; padding: 9px 0; font-size: .9375rem; }
	.saly-recipes .sr-option input { width: 18px; height: 18px; }
	.saly-recipes .sr-options--scroll { max-height: 264px; }
	.saly-recipes .sr-ingredient-search { min-height: 44px; }
	.saly-recipes .sr-ingredient-search input { font-size: 1rem; }
	.saly-recipes .sr-filters__help { display: none; }
	.saly-recipes .sr-filters__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--sr-line); }
	.saly-recipes .sr-filters__foot .sr-btn { padding: 11px 15px; }
	.saly-recipes .sr-filters__foot .sr-text-btn { min-height: 44px; }

	/* Two-column cards */
	.saly-recipes .sr-grid { gap: 14px 11px; }
	.saly-recipes .sr-card__body { padding: 12px 11px 0; }
	.saly-recipes .sr-card__type { font-size: .6875rem; letter-spacing: .035em; }
	.saly-recipes .sr-card__title { min-height: 3.1em; margin-bottom: 10px; font-size: .9375rem; }
	.saly-recipes .sr-meta { gap: 4px 7px; margin-bottom: 11px; }
	.saly-recipes .sr-meta li:last-child { flex-basis: 100%; }
	.saly-recipes .sr-card__footer { padding: 0; }
	/* One line inside the narrow card: no icon, slightly smaller text. */
	.saly-recipes .sr-card__link { gap: 4px; font-size: .8125rem; }
	.saly-recipes .sr-card__link svg { display: none; }
	.saly-recipes .sr-badge { left: 7px; bottom: 7px; gap: 3px; padding: 4px 5px; font-size: .6875rem; }
	.saly-recipes .sr-save { top: 0; right: 0; }
	/* The "Cô Ly gợi ý" badge takes the bottom of a narrow photo, so the placeholder caption steps aside. */
	.saly-recipes .sr-card__photo:has(.sr-badge) .sr-placeholder span { display: none; }
	.saly-recipes .sr-save__dot { width: 30px; height: 30px; }
	.saly-recipes .sr-soon { padding: 18px 12px; gap: 8px; }
	.saly-recipes .sr-soon--1 p { display: none; }
	.saly-recipes .sr-soon h3 { font-size: .875rem; line-height: 1.5; }
	.saly-recipes .sr-soon__icon { width: 44px; height: 44px; }
	.saly-recipes .sr-soon .sr-btn { padding: 10px 12px; font-size: .8125rem; white-space: normal; }

	.saly-recipes .sr-pages { justify-content: center; gap: 16px; margin-top: 23px; padding-top: 18px; }
	.saly-recipes .sr-pages > p { order: 2; width: 100%; text-align: center; }
	.saly-recipes .sr-pagination { gap: 6px; }
	.saly-recipes .sr-page-btn { width: 44px; height: 44px; }
	.saly-recipes .sr-per-page select { min-height: 44px; }

	.saly-recipes .sr-cta { display: block; margin: 35px 0 28px; padding: 28px 25px; border-radius: 18px; }
	.saly-recipes .sr-cta h2 { font-size: 1.4rem; }
	.saly-recipes .sr-cta p { max-width: none; font-size: .9375rem; line-height: 1.85; }
	.saly-recipes .sr-cta__portrait { display: none; }
	.saly-recipes .sr-cta__actions { gap: 17px; margin-top: 20px; }
	.saly-recipes .sr-cta__actions .sr-btn { min-height: 44px; padding: 10px 14px; font-size: .8125rem; }
	.saly-recipes .sr-cta__link { font-size: .8125rem; }
	.saly-recipes .sr-toast { bottom: 20px; padding: 12px 16px; font-size: .8125rem; }
}

@media (max-width: 390px) {
	.saly-recipes .sr-hero { padding: 24px 18px; }
	.saly-recipes .sr-hero h1 { font-size: 1.9rem; }
	.saly-recipes .sr-search__icon { margin-left: 7px; }
	.saly-recipes .sr-search__submit { padding: 9px 10px; }
	.saly-recipes .sr-categories { margin-right: -16px; }
	.saly-recipes .sr-tabs { gap: 10px; }
	.saly-recipes .sr-tab { gap: 5px; font-size: .75rem; }
	.saly-recipes .sr-sort > span { display: none; }
	.saly-recipes .sr-card__body { padding: 11px 10px 0; }
	.saly-recipes .sr-cta h2 { font-size: 1.25rem; }
	.saly-recipes .sr-cta__actions { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.saly-recipes *, .saly-recipes *::before, .saly-recipes *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
	.saly-recipes .sr-card:hover, .saly-recipes .sr-feature, .saly-recipes .sr-feature:hover, .saly-recipes .sr-btn:hover { transform: none; }
}

/* Page scroll is locked while the phone filter sheet is open (class set on <body> by the script). */
body.saly-recipes-lock { overflow: hidden; }

/* SEO article above the course call to action (templates/parts/recipes/seo.php): collapsed to a
   short preview with a fade until "Xem thêm"; shown open when JavaScript is off. */
.saly-recipes .sr-seo { margin: 46px 0 0; padding: 28px 32px 20px; background: #fff; border: 1px solid var(--sr-line); border-radius: 22px; }
.saly-recipes .sr-seo__body { max-width: 820px; margin-inline: auto; color: var(--sr-ink); }
.saly-recipes .sr-seo__body > :first-child { margin-top: 0; }
.saly-recipes .sr-seo__body a { color: var(--sr-brand-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.saly-recipes.has-js .sr-seo:not(.is-open) .sr-seo__body { position: relative; max-height: 260px; overflow: hidden; }
.saly-recipes.has-js .sr-seo:not(.is-open) .sr-seo__body::after { content: ""; position: absolute; inset: auto 0 0; height: 110px; background: linear-gradient(to bottom, #fff0, #fff); pointer-events: none; }
.saly-recipes .sr-seo__toggle { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin: 14px auto 0; padding: 0 22px; font-size: .9375rem; font-weight: 700; color: var(--sr-brand-dark); background: var(--sr-green-soft); border: 0; border-radius: 999px; cursor: pointer; transition: background-color .15s ease; }
.saly-recipes .sr-seo__toggle:hover { background: #d6eadd; }
.saly-recipes .sr-seo__toggle:focus-visible { outline: 3px solid var(--sr-ink); outline-offset: 2px; }
.saly-recipes .sr-seo__toggle svg { transition: transform .2s ease; }
.saly-recipes .sr-seo.is-open .sr-seo__toggle svg { transform: rotate(180deg); }
.saly-recipes .sr-seo + .sr-cta { margin-top: 28px; }
@media (max-width: 760px) {
	.saly-recipes .sr-seo { margin-top: 32px; padding: 20px 16px 16px; border-radius: 18px; }
	.saly-recipes.has-js .sr-seo:not(.is-open) .sr-seo__body { max-height: 300px; }
}
@media (prefers-reduced-motion: reduce) { .saly-recipes .sr-seo__toggle svg { transition: none; } }
.saly-recipes .sr-seo__body :is(p, ul, ol) { margin: 0 0 1em; }
.saly-recipes .sr-seo__body :is(ul, ol) { padding-left: 1.3em; }
.saly-recipes .sr-seo__body li { margin-bottom: .45em; }
.saly-recipes .sr-seo__body h2 { margin: 1.5em 0 .6em; }
.saly-recipes .sr-seo__body > h2:first-child { margin-top: 0; }
