:root {
  --page-bg: #f6eee5;
  --page-bg-soft: #fbf4eb;
  --section-bg: #eadccc;
  --surface: #fffaf5;
  --surface-alt: #f5e9dc;
  --line: #d9c3a9;
  --text: #38261a;
  --text-muted: #8f6f55;
  --primary: #f28f16;
  --primary-strong: #d67d12;
  --accent: #730c02;
  --chip-bg: #f4dfca;
  --success-bg: #e8f6ee;
  --success-line: #b7dbc6;
  --danger: #730c02;
  --danger-red: #e23b2e;
  --danger-red-strong: #b21e14;
  --btn-primary-text: #fff;
  --star-gold: #f5a623;
  --ingredient-selected-bg: #f6bd73;
  --ingredient-selected-line: #f28f16;
  --ingredient-selected-icon: #d67d12;
  --ingredient-selected-text: #1a2601;
  --ingredient-selected-icon-text: #fff;
  --tips-surface: var(--surface-alt);
  --contrast-bg: #730c02;
  --contrast-surface: #59210c;
  --contrast-line: #a6886d;
  --contrast-text: #fff4e8;
  --chip-hover: #f2cfac;
  --empty-bg: #faeee2;
  --empty-line: #a6886d;
  --header-bg: rgba(255, 246, 236, 0.94);
  --header-line: rgba(115, 12, 2, 0.16);
  --header-link-bg: var(--primary);
  --header-link-line: var(--primary);
  --header-link-text: #fff;
  --header-link-hover-bg: var(--primary-strong);
  --shadow-soft: 0 16px 34px rgba(17, 24, 39, 0.12);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-hover: 0 20px 42px rgba(17, 24, 39, 0.16);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --tracking-tight: -0.01em;
  --tracking-eyebrow: 0.09em;
  --ndk-berry-700: #730c02;
}

:root[data-theme="dark"] {
  --page-bg: #0d0d0d;
  --page-bg-soft: #15180f;
  --section-bg: #1a2601;
  --surface: #171d11;
  --surface-alt: #2a301d;
  --line: #594230;
  --text: #f3eadf;
  --text-muted: #bfae9c;
  --primary: #d2d918;
  --primary-strong: #b4bb14;
  --accent: #bf7f5a;
  --chip-bg: #2b311f;
  --success-bg: #1f2b14;
  --success-line: #536835;
  --danger: #bf7f5a;
  --btn-primary-text: #0d0d0d;
  --ingredient-selected-bg: #4f8f1f;
  --ingredient-selected-line: #ccff66;
  --ingredient-selected-icon: #e6ff9e;
  --ingredient-selected-text: #e6ffc0;
  --ingredient-selected-icon-text: #1a2601;
  --tips-surface: #2a1b12;
  --contrast-bg: #0d0d0d;
  --contrast-surface: #1a2601;
  --contrast-line: #594230;
  --contrast-text: #f6f1df;
  --chip-hover: #353d26;
  --empty-bg: #1e2316;
  --empty-line: #594230;
  --header-bg: rgba(13, 13, 13, 0.94);
  --header-line: rgba(210, 217, 24, 0.22);
  --header-link-bg: #d2d918;
  --header-link-line: #d2d918;
  --header-link-text: #1a2601;
  --header-link-hover-bg: #b4bb14;
  --ndk-berry-700: #4a0801;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --page-bg: #0d0d0d;
    --page-bg-soft: #15180f;
    --section-bg: #1a2601;
    --surface: #171d11;
    --surface-alt: #2a301d;
    --line: #594230;
    --text: #f3eadf;
    --text-muted: #bfae9c;
    --primary: #d2d918;
    --primary-strong: #b4bb14;
    --accent: #bf7f5a;
    --chip-bg: #2b311f;
    --success-bg: #1f2b14;
    --success-line: #536835;
    --danger: #bf7f5a;
    --btn-primary-text: #0d0d0d;
    --ingredient-selected-bg: #4f8f1f;
    --ingredient-selected-line: #ccff66;
    --ingredient-selected-icon: #e6ff9e;
    --ingredient-selected-text: #e6ffc0;
    --ingredient-selected-icon-text: #1a2601;
    --tips-surface: #2a1b12;
    --contrast-bg: #0d0d0d;
    --contrast-surface: #1a2601;
    --contrast-line: #594230;
    --contrast-text: #f6f1df;
    --chip-hover: #353d26;
    --empty-bg: #1e2316;
    --empty-line: #594230;
    --header-bg: rgba(13, 13, 13, 0.94);
    --header-line: rgba(210, 217, 24, 0.22);
    --header-link-bg: #d2d918;
    --header-link-line: #d2d918;
    --header-link-text: #1a2601;
    --header-link-hover-bg: #b4bb14;
    --ndk-berry-700: #4a0801;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body.public-body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 4%, var(--page-bg-soft) 0, transparent 36%),
    radial-gradient(circle at 92% 0%, var(--section-bg) 0, transparent 24%),
    linear-gradient(180deg, var(--page-bg-soft) 0%, var(--page-bg) 56%, var(--section-bg) 100%);
  font-family: var(--font-body);
}

body.menu-open {
  overflow: hidden;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.side-menu {
  position: fixed;
  top: 12px;
  left: 12px;
  bottom: 12px;
  width: 240px;
  transform: translateX(calc(-100% - 24px));
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 60;
  background: linear-gradient(190deg, var(--ndk-berry-700, #730c02), #2a0a02);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.45);
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-menu.open {
  transform: translateX(0);
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
  background: rgba(2, 6, 23, 0.52);
  transition: opacity 0.22s ease;
  z-index: 50;
}

body.menu-open .menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.menu-close-btn {
  align-self: flex-end;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 244, 232, 0.8);
  margin-bottom: 6px;
  flex-shrink: 0;
}

.menu-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.menu-group-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 244, 232, 0.55);
  padding: 0.5rem 0.75rem 0.2rem;
  margin-top: 4px;
}

.menu-group-label:first-of-type {
  margin-top: 0;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff4e8;
  text-decoration: none;
  transition: background 0.15s;
}

.menu-link svg {
  opacity: 0.8;
  flex-shrink: 0;
}

.menu-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.menu-link--active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.site-shell {
  min-height: 100vh;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto auto auto 1fr auto auto;
  align-items: center;
  gap: 0.7rem;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  max-width: 1240px;
  backdrop-filter: blur(10px);
  background: var(--header-bg);
  border: 0;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 12px 26px rgba(20, 12, 8, 0.08);
  overflow: visible;
}

.header::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 24%, var(--accent) 76%, transparent 100%);
  opacity: 0.85;
  pointer-events: none;
}

.header-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--surface);
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.header-brand-link {
  display: inline-flex;
  flex-direction: column;
  white-space: nowrap;
  text-decoration: none;
}

.header-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--text);
}

.header-brand-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.header-page-title {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 1rem 1rem 0;
}

.header-page-title h1 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.2;
  color: var(--text);
}

/* ─── Header search bar ────────────────────────────────────────────────── */

.header-search {
  position: relative;
  flex: 1;
  min-width: 0;
}

.header-search-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 0.32rem 0.75rem;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.header-search-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(242, 143, 22, 0.15);
}

.header-search-icon {
  flex-shrink: 0;
  color: var(--text-muted);
}

.header-search-input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  padding: 0.22rem 0;
  min-width: 0;
}

.header-search-input::placeholder {
  color: var(--text-muted);
}

.header-search-input:focus {
  outline: none;
}

.header-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
  padding: 0;
}

.header-search-submit:hover {
  background: var(--primary-strong);
}

/* ─── Search dropdown ──────────────────────────────────────────────────── */

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  z-index: 100;
  max-height: 400px;
  overflow-y: auto;
}

.search-dropdown[hidden] {
  display: none;
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  transition: background 0.1s;
}

.search-dropdown-item:hover {
  background: var(--surface-alt);
}

.search-dropdown-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.search-dropdown-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.search-dropdown-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-dropdown-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.search-dropdown-viewall {
  display: block;
  padding: 0.6rem 0.85rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--primary);
  border-top: 1px solid var(--line);
}

.search-dropdown-viewall:hover {
  background: var(--surface-alt);
}

.search-dropdown-empty {
  padding: 0.85rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ─── Header nav links ─────────────────────────────────────────────────── */

.header-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.header-nav-link {
  position: relative;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  transition: background 0.15s;
}

.header-nav-link:hover {
  background: var(--surface-alt);
}

.header-nav-link--active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
  transform: translateX(-50%);
}

.header-popular {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.32rem 0.7rem 0.32rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--danger-red);
  background: #ffe9db;
  border: 1px solid #f7c9a6;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.header-popular:hover {
  background: #ffd9bf;
  border-color: var(--primary);
}

.header-subscribe-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.84rem;
  background: var(--primary);
  color: var(--btn-primary-text);
  border: 1px solid var(--primary);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(242, 143, 22, 0.28);
  transition: background 0.15s;
}

.header-subscribe-cta:hover {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
}

/* ─── Header user menu ─────────────────────────────────────────────────── */

.header-user {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.header-avatar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--line);
  overflow: hidden;
  background: var(--surface-alt);
  transition: border-color 0.15s;
  flex-shrink: 0;
  text-decoration: none;
}

.header-avatar-link:hover {
  border-color: var(--primary);
}

.header-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.header-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-muted);
}

/* Mobile search link (visible only on small screens) */
.header-search-link-mobile {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.15s;
}

.header-search-link-mobile:hover {
  border-color: var(--primary);
}

.theme-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  min-height: 36px;
  padding: 0.34rem 0.66rem;
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--accent);
}

.theme-toggle-icon {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.theme-toggle-icon svg {
  width: 16px;
  height: 16px;
}

.site-theme-toggle {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 120;
  box-shadow: var(--shadow-soft);
}

.header-link {
  border: 0;
  border-radius: 999px;
  background: var(--header-link-bg);
  color: var(--header-link-text);
  padding: 0.38rem 0.78rem;
  font-weight: 700;
  font-size: 0.87rem;
  font-family: inherit;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}

.header-link:hover {
  background: var(--header-link-hover-bg);
}

.header-link-btn {
  font: inherit;
  cursor: pointer;
  min-height: 36px;
  padding: 0.38rem 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.87rem;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.1;
}

.logout-form {
  margin: 0;
  display: inline;
}

.page-container {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 1.25rem 1rem 2.8rem;
}

.home-page,
.category-page,
.recipe-page,
.login-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.2rem;
}

.home-section,
.category-banner,
.hero-card,
.recipe-card,
.recipe-hero-card,
.ingredients-panel,
.instructions-panel,
.login-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
}

.hero-media-link {
  min-height: 280px;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 0.85rem;
  padding: clamp(1.1rem, 2vw, 1.8rem);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.hero-copy h2,
.section-head h2,
.category-banner h2,
.recipe-hero-copy h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}

.hero-copy p {
  color: var(--text-muted);
  line-height: 1.56;
}

.hero-meta {
  display: inline-flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.hero-meta span {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.28rem 0.58rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  min-height: 42px;
  padding: 0.55rem 1.05rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  color: var(--btn-primary-text);
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}


.home-section,
.category-banner {
  padding: 1rem;
  min-width: 0;
}

.recipe-grid {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.9rem;
}


.recipe-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: 160px auto;
}

.recipe-card-media-link {
  display: block;
  width: 100%;
  height: 100%;
}

.recipe-card-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-card-body {
  display: grid;
  gap: 0.52rem;
  padding: 0.88rem;
}

.recipe-card-category-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.recipe-card-category {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

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

.recipe-card-title a:hover {
  color: var(--accent);
}

.recipe-card-description {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.recipe-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.recipe-card-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}

/* ─── Recipe action buttons (save / like) ───────────────────────────────── */

.recipe-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

@media (max-width: 620px) {
  .recipe-actions {
    flex-wrap: wrap;
  }
}

.recipe-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.38rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition:
    border-color 0.15s,
    color 0.15s,
    background 0.15s;
}

.recipe-action-btn:hover {
  border-color: var(--primary);
  color: var(--text);
}

.recipe-action-btn.is-active {
  border-color: var(--primary);
  background: var(--chip-bg);
  color: var(--text);
}

.recipe-action-btn.is-active svg {
  fill: currentColor;
}

.recipe-action-btn--sm.is-active svg {
  fill: currentColor;
}

.recipe-action-btn--sm {
  padding: 0.28rem 0.52rem;
  font-size: 0.82rem;
}

.recipe-action-btn[data-auth-state="guest"],
.recipe-action-btn[data-auth-state="free"] {
  opacity: 0.72;
}

/* ─── Gate popup (save/like prompt for non-subscribers) ─────────────────── */

.recipe-gate-popup {
  position: absolute;
  z-index: 400;
  min-width: 220px;
  max-width: 300px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 0.85rem 0.95rem;
  display: grid;
  gap: 0.65rem;
}

.recipe-gate-popup-msg {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.45;
}

.recipe-gate-popup-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.recipe-gate-popup-btn {
  display: inline-block;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--primary);
  color: var(--btn-primary-text);
  border: 1px solid var(--primary);
  transition:
    background 0.15s,
    border-color 0.15s;
}

.recipe-gate-popup-btn:hover {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
}

.recipe-gate-popup-btn--sec {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.recipe-gate-popup-btn--sec:hover {
  background: var(--surface-alt);
  border-color: var(--primary);
}

.recipe-action-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.recipe-action-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.category-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.category-chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: var(--chip-bg);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
  font-size: 0.87rem;
}

.category-chip:hover {
  background: var(--chip-hover);
}

.text-link {
  font-weight: 700;
  color: var(--accent);
}

.empty-state {
  margin-top: 0.95rem;
  border: 1px dashed var(--empty-line);
  border-radius: var(--radius-md);
  background: var(--empty-bg);
  padding: 0.95rem;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .header {
    grid-template-columns: auto auto 1fr auto auto;
    gap: 0.5rem;
  }

  .header-brand-link {
    display: none;
  }

  .header-search {
    grid-column: auto;
  }

  .header-nav {
    display: none;
  }

  .header-popular {
    display: none;
  }

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

  .hero-media-link {
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .header {
    grid-template-columns: auto auto 1fr auto;
    gap: 0.4rem;
  }

  .header-search {
    display: none;
  }

  .header-search-link-mobile {
    display: inline-flex;
  }
}

/* ─── Fade-in animation ─────────────────────────────────────────────────── */

/* Start visible by default; JS adds .js-fade-ready to enable animation */
.js-fade-ready .fade-in-section {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.js-fade-ready .fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Recipe carousel ───────────────────────────────────────────────────── */

.recipe-carousel-wrap {
  position: relative;
  margin-top: 0.95rem;
  overflow: visible;
}

.recipe-carousel {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.25rem 0 0.75rem;
}

.recipe-carousel::-webkit-scrollbar {
  display: none;
}

.recipe-carousel-item {
  flex: 0 0 260px;
}

.recipe-carousel-item .recipe-card {
  width: 100%;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: var(--shadow-soft);
  transition:
    background 0.15s,
    border-color 0.15s,
    opacity 0.2s;
}

.carousel-arrow:hover {
  background: var(--surface-alt);
  border-color: var(--primary);
}

.carousel-arrow--prev {
  left: -18px;
}

.carousel-arrow--next {
  right: -18px;
}

.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.carousel-arrow[hidden] {
  display: none;
}

/* ─── Meals of the Day ──────────────────────────────────────────────────── */

.meals-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.95rem;
  justify-content: center;
}

.meal-card {
  flex: 1 1 220px;
  max-width: 300px;
  min-width: 200px;
}

.meal-label {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── Category filter chips ─────────────────────────────────────────────── */

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.filter-chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: var(--chip-bg);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
  font-size: 0.87rem;
  font-family: inherit;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.filter-chip:hover {
  background: var(--chip-hover);
}

.filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--btn-primary-text);
}

#filter-grid .recipe-card[hidden] {
  display: none;
}

.filter-chips-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.filter-view-all {
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.95rem;
}
.filter-view-all:hover { text-decoration: underline; }
.filter-view-all[hidden] { display: none; }

/* ─── Search page ───────────────────────────────────────────────────────── */

.search-page-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 0 1.5rem;
}

.search-page-heading {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}

.search-page-form {
  display: flex;
  gap: 0.55rem;
  width: 100%;
  max-width: 600px;
}

.search-page-input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 48px;
  padding: 0.6rem 1.25rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
}

.search-page-input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.search-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--primary);
  border-radius: 999px;
  min-height: 48px;
  padding: 0.6rem 1.3rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: var(--btn-primary-text);
  background: var(--primary);
  white-space: nowrap;
}

.search-page-btn:hover {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
}

.search-tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.2rem 0 0;
}

.search-result-count {
  margin: 0.7rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-hint {
  margin: 1rem 0 0;
  color: var(--text-muted);
}

/* ─── Menu open button (hamburger in header) ────────────────────────────── */

.menu-open-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
}

.menu-open-btn:hover {
  background: var(--surface-alt);
}

/* ─── Footer ────────────────────────────────────────────────────────────── */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 2rem 1rem 1.5rem;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-brand {
  flex: 1 1 200px;
  display: grid;
  gap: 0.45rem;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.footer-brand-link svg {
  flex-shrink: 0;
}

.footer-tagline {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-nav-col {
  min-width: 100px;
}

.footer-nav-title {
  margin: 0 0 0.6rem;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
}

.footer-nav-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-nav-col a {
  font-size: 0.9rem;
  color: var(--text);
  transition: color 0.15s;
}

.footer-nav-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 0.85rem 1rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* ─── Back to top ───────────────────────────────────────────────────────── */

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  transition:
    border-color 0.15s,
    background 0.15s;
}

.back-to-top:hover {
  background: var(--surface-alt);
  border-color: var(--primary);
}

.back-to-top[hidden] {
  display: none;
}

/* ─── Ingredients checklist controls ───────────────────────────────────── */

.ingredients-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.btn-check-all {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  cursor: pointer;
  white-space: nowrap;
}

.btn-check-all:hover {
  border-color: var(--primary);
}

.ingredients-progress {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0.35rem 0 0.65rem;
}

/* ─── Recipe hover effects ──────────────────────────────────────────────── */

.recipe-card {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.recipe-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(17, 24, 39, 0.16);
}

/* ─── Site shell layout (needed for sticky footer) ──────────────────────── */

.site-shell {
  display: flex;
  flex-direction: column;
}

.page-container {
  flex: 1;
}

/* ─── Print styles ──────────────────────────────────────────────────────── */

@media print {
  .header,
  .side-menu,
  .menu-backdrop,
  .site-theme-toggle,
  .back-to-top,
  .recipe-actions,
  .ingredients-controls,
  .site-footer {
    display: none !important;
  }

  body,
  .page-container {
    max-width: 100%;
    padding: 0;
  }
}

/* ─── About page ────────────────────────────────────────────────────────── */

.about-page {
  display: grid;
  gap: 1.2rem;
}

.about-hero {
  background: linear-gradient(130deg, var(--surface) 0%, var(--section-bg) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.4rem, 3vw, 2.5rem);
  text-align: center;
}

.about-hero h2 {
  margin: 0.3rem 0 0.6rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.about-hero-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 52ch;
  margin: 0 auto;
}

.about-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.1rem, 2vw, 1.8rem);
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  gap: 0.8rem;
}

.about-section h3 {
  margin: 0;
  font-size: 1.3rem;
}

.about-section p {
  color: var(--text-muted);
  line-height: 1.65;
}

.about-cta {
  background: linear-gradient(130deg, var(--surface) 0%, var(--section-bg) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.4rem, 3vw, 2.5rem);
  text-align: center;
  display: grid;
  gap: 0.8rem;
  justify-items: center;
}

.about-cta h3 {
  margin: 0;
  font-size: 1.3rem;
}

.about-cta p {
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 52ch;
}

/* ─── Difficulty badges ──────────────────────────────────────────────────── */

.difficulty-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.difficulty-easy {
  background: var(--success-bg);
  border: 1px solid var(--success-line);
  color: var(--text);
}

.difficulty-medium {
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #533d00;
}

.difficulty-hard {
  background: #f8d7da;
  border: 1px solid #dc3545;
  color: #58000d;
}

:root[data-theme="dark"] .difficulty-medium {
  background: #3d3000;
  border-color: #ffc107;
  color: #ffd966;
}

:root[data-theme="dark"] .difficulty-hard {
  background: #2d0009;
  border-color: #dc3545;
  color: #ff8fa0;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .difficulty-medium {
    background: #3d3000;
    border-color: #ffc107;
    color: #ffd966;
  }
  :root:not([data-theme]) .difficulty-hard {
    background: #2d0009;
    border-color: #dc3545;
    color: #ff8fa0;
  }
}


@media (max-width: 760px) {
  .page-container {
    padding: 1rem 0.8rem 2.2rem;
  }

  .header {
    padding: 0.55rem 0.8rem;
  }

  .header-link {
    padding: 0.34rem 0.62rem;
    font-size: 0.82rem;
  }

  .site-theme-toggle {
    left: 0.75rem;
    bottom: 0.75rem;
  }

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

  .recipe-card {
    grid-template-rows: 180px auto;
  }

  .carousel-arrow--prev {
    left: 0;
  }

  .carousel-arrow--next {
    right: 0;
  }

  .meal-card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
  }

  .header-page-title {
    padding: 0.75rem 0.8rem 0;
  }

  .header-page-title h1 {
    font-size: 1.2rem;
  }
}

/* ─── Recipe Card Rating ─────────────────────────────────────────────────── */

.recipe-card-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--star-gold);
}

/* ─── Breadcrumbs ───────────────────────────────────────────────────────── */

.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.crumbs a {
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}

.crumbs a:hover {
  color: var(--primary);
}

.crumbs span[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.crumbs span[aria-hidden="true"] {
  opacity: 0.45;
}

.recipe-card-dot {
  color: var(--line);
  flex-shrink: 0;
  font-size: 0.78rem;
}

/* ─── Recipe card media wrap ──────────────────────────────────────────── */

.recipe-card-media-wrap {
  position: relative;
  display: block;
  height: 100%;
}

.recipe-card-media-wrap .recipe-card-media-link {
  display: block;
  width: 100%;
  height: 100%;
}

/* ─── Skeleton loading cards ──────────────────────────────────────────── */

.skeleton-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  display: grid;
  grid-template-rows: 160px auto;
}

.skeleton-card-media {
  background: linear-gradient(90deg, var(--surface-alt) 25%, var(--surface) 50%, var(--surface-alt) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease infinite;
}

.skeleton-card-body {
  padding: 0.88rem;
  display: grid;
  gap: 0.5rem;
}

.skeleton-line {
  height: 0.85rem;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--surface-alt) 25%, var(--surface) 50%, var(--surface-alt) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease infinite;
}

.skeleton-line--short {
  width: 60%;
}

.skeleton-line--xs {
  width: 35%;
  height: 0.7rem;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ─── Empty state block ───────────────────────────────────────────────── */

.empty-state-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
}

.empty-state-block svg {
  opacity: 0.5;
}

.empty-state-block p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ─── Error toast ─────────────────────────────────────────────────────── */

.toast-bar {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  background: var(--surface);
  border: 1px solid var(--danger);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 0.65rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--danger);
  max-width: min(420px, 90vw);
  text-align: center;
  animation: toast-slide-up 0.25s ease;
}

.toast-bar--success {
  border-color: var(--success-line);
  color: var(--text);
}

@keyframes toast-slide-up {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ─── Accessibility: focus-visible ring ────────────────────────────────── */

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ─── Filter toolbar — sticky horizontal bar (shared: category, search) ─── */

.filter-toolbar {
  position: sticky;
  top: 0.5rem;
  z-index: 5;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .filter-toolbar {
    background: var(--surface);
  }
}

.filter-toolbar.has-active {
  border-color: color-mix(in srgb, var(--primary) 50%, var(--line));
  box-shadow: 0 14px 32px -16px color-mix(in srgb, var(--primary) 45%, transparent),
              var(--shadow-soft);
}

.filter-toolbar-inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 0.85rem;
  min-width: 0;
}

.filter-toolbar-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.filter-toolbar-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-toolbar-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.3rem;
  height: 1.3rem;
  padding: 0 0.4rem;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--btn-primary-text);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.filter-toolbar-panel {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
  min-width: 0;
}

.filter-toolbar-tags {
  display: flex;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.15rem 0.1rem;
  scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}

.filter-toolbar-tags::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.filter-toolbar .filter-pill {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 0.36rem 0.78rem;
  background: var(--chip-bg);
  border: 1px solid transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}

.filter-toolbar .filter-pill:hover {
  background: var(--chip-hover);
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
}

.filter-toolbar .filter-pill:active {
  transform: scale(0.97);
}

.filter-toolbar .filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--btn-primary-text);
  box-shadow: 0 4px 12px -6px color-mix(in srgb, var(--primary) 70%, transparent);
}

.filter-toolbar-selects {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.filter-toolbar-select-wrap {
  position: relative;
}

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

.filter-select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238f6f55' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 0.7rem center;
  background-size: 11px;
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.38rem 1.85rem 0.38rem 0.8rem;
  min-height: 34px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.filter-select:hover,
.filter-select:focus {
  border-color: var(--primary);
  color: var(--primary);
  outline: none;
}

.filter-select:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent);
}

[data-theme="dark"] .filter-select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23bfae9c' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .filter-select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23bfae9c' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  }
}

@media (max-width: 760px) {
  .filter-toolbar {
    border-radius: var(--radius-md);
  }

  .filter-toolbar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding: 0.55rem 0.7rem;
  }

  .filter-toolbar-toggle {
    display: inline-flex;
    align-self: flex-start;
  }

  .filter-toolbar-panel {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding-top: 0.2rem;
  }

  .filter-toolbar.is-open .filter-toolbar-panel {
    display: flex;
  }

  .filter-toolbar-tags {
    flex-wrap: wrap;
    overflow-x: visible;
    -webkit-mask-image: none;
            mask-image: none;
  }

  .filter-toolbar-selects {
    flex-direction: column;
    gap: 0.45rem;
  }

  .filter-select {
    width: 100%;
  }
}
