/*
 * Recipeat site redesign: the app's "Wine & gold kitchen" look (recipeat_app: lib/core/theme).
 * Loaded last (layouts/main.blade.php), so it overrides app.css / bootstrap-overwrite.css.
 * Logical properties (inset-inline, margin-inline, ...) keep Hebrew (rtl) and English (ltr) in sync.
 */
@font-face { font-family: "Rubik"; font-weight: 400; font-display: swap; src: url("/fonts/rubik/Rubik-Regular.ttf") format("truetype"); }
@font-face { font-family: "Rubik"; font-weight: 500; font-display: swap; src: url("/fonts/rubik/Rubik-Medium.ttf") format("truetype"); }
@font-face { font-family: "Rubik"; font-weight: 600; font-display: swap; src: url("/fonts/rubik/Rubik-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Rubik"; font-weight: 700; font-display: swap; src: url("/fonts/rubik/Rubik-Bold.ttf") format("truetype"); }

:root {
  --rd-wine: #6D0C06;
  --rd-wine-pressed: #5A0905;
  --rd-blush: #F5C3C0;
  --rd-tint: #FBE3E1;
  --rd-subtle: #FBEDEB;
  --rd-red: #B01D23;
  --rd-gold: #F5DB49;
  --rd-gold-soft: #FFF6CC;
  --rd-gold-border: #F1D96B;
  --rd-on-gold: #4A3A00;
  --rd-ink: #221A19;
  --rd-muted: #6B6362;
  --rd-ground: #F6F3F2;
  --rd-hair: #EADFDC;
  --rd-input: #DCCFCC;
  --rd-tile-border: #F3D6D2;
  --rd-shadow: 0 4px 14px rgba(34, 26, 25, 0.08);
  --primary: #6D0C06;
}

/* ---------- base ---------- */
body {
  background-color: var(--rd-ground);
  color: var(--rd-ink);
  font-family: "Rubik", "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
a { color: var(--rd-wine); }
a:hover, a:focus { color: var(--rd-wine-pressed); }
main { background-color: var(--rd-ground); }
main header + section { padding: 0 0 15px; }
.yad-font { font-family: "DanaYad", "Kalam", "Rubik", sans-serif; }
h1, h2, h3, h4, h5, h6 { color: var(--rd-ink); }

/* buttons */
.btn { border-radius: 16px; font-weight: 500; }
.btn-primary, .btn-primary-gradient {
  background: var(--rd-wine) !important;
  border-color: var(--rd-wine) !important;
  color: #fff !important;
  box-shadow: none;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active { background: var(--rd-wine-pressed) !important; border-color: var(--rd-wine-pressed) !important; }
.btn-outline-primary { color: var(--rd-wine); border: 1.5px solid var(--rd-wine); background: #fff; }
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active { background: var(--rd-tint) !important; color: var(--rd-wine) !important; border-color: var(--rd-wine) !important; }
.text-primary { color: var(--rd-wine) !important; }
.badge-primary { background: var(--rd-wine); }
.form-control { border-radius: 14px; border: 1.5px solid var(--rd-input); background-color: #fff; }
.form-control:focus { border-color: var(--rd-wine); box-shadow: none; }
.pagination { background: none; padding: 0; margin: 26px 0 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-item .page-link {
  min-width: 44px; height: 44px; padding: 0 12px; margin: 0; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--rd-hair); border-radius: 14px; background: #fff; color: var(--rd-wine); font-weight: 500; font-size: 15px; line-height: 1; box-shadow: none;
}
.pagination .page-item .page-link i { font-size: 22px; }
.pagination .page-item a.page-link:hover { background: var(--rd-tint); border-color: var(--rd-wine); color: var(--rd-wine); }
.pagination .page-item.active .page-link { background: var(--rd-wine); border-color: var(--rd-wine); color: #fff; font-weight: 600; box-shadow: 0 4px 10px rgba(109, 12, 6, 0.3); }
.pagination .page-item.disabled .page-link { background: transparent; color: #b5a9a6; border-color: var(--rd-hair); }

/* generic cards / boxes */
.card { border-radius: 22px; border: 0; box-shadow: var(--rd-shadow); overflow: hidden; }

/* ---------- header ---------- */
.rd-header {
  background: var(--rd-wine);
  color: #fff;
  border-radius: 0 0 32px 32px;
  padding: 0 max(40px, calc((100% - 1360px) / 2)) 28px;
  position: relative;
  z-index: 5;
  flex-shrink: 0;
}
.rd-bar { display: flex; align-items: center; gap: 24px; height: 72px; }
.rd-logo img { height: 44px; width: auto; display: block; }
.rd-menu-btn { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.12); border: 0; color: #fff; font-size: 19px; padding: 0; line-height: 1; cursor: pointer; }
.rd-menu-btn:hover, .rd-menu-btn:focus { color: #fff; background: rgba(255,255,255,.22); outline: 0; }
.rd-nav { display: flex; gap: 6px; margin-inline-start: 8px; }
.rd-nav a { padding: 9px 16px; border-radius: 14px; font-weight: 500; font-size: 15px; color: #f3d9d6; white-space: nowrap; text-decoration: none; }
.rd-nav a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.rd-nav a.on { background: rgba(255, 255, 255, 0.16); color: #fff; }
.rd-spacer { flex: 1; }
.rd-header .lang-switch, .rd-header .rd-lang {
  position: static; padding: 0; font-size: 14px; color: #f3d9d6; display: inline-flex; gap: 6px; align-items: center;
}
.rd-header .rd-lang:hover { color: #fff; text-decoration: none; }
.rd-account { display: inline-flex; align-items: center; gap: 6px; color: #f3d9d6; font-size: 14px; font-weight: 500; white-space: nowrap; text-decoration: none; }
.rd-account:hover, .rd-account:focus { color: #fff; text-decoration: none; }
.rd-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--rd-blush); color: var(--rd-wine); display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.rd-lang-switch { display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, 0.12); }
.rd-lang-switch a { min-width: 38px; height: 32px; padding: 0 10px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: #f3d9d6; text-decoration: none; }
.rd-lang-switch a:hover { color: #fff; }
.rd-lang-switch a.on { background: #fff; color: var(--rd-wine); cursor: default; }
.rd-add {
  height: 42px; padding: 0 18px; border-radius: 14px; background: var(--rd-gold); color: var(--rd-on-gold);
  font-weight: 600; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; white-space: nowrap;
}
.rd-add:hover, .rd-add:focus { color: var(--rd-on-gold); text-decoration: none; background: #ecd13d; }
.rd-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-top: 4px; }
.rd-hero-text h1 { margin: 0 0 2px; font-size: 44px; font-weight: 400; color: #fff; line-height: 1.15; }
.rd-hero-text p { margin: 0; color: var(--rd-blush); font-size: 17px; }
.rd-header .header-search { flex: 0 1 560px; margin: 0; margin-inline-start: auto; position: relative; display: block; }
.rd-header:not(.is-home) .header-search { flex-basis: 100%; max-width: 640px; }
.rd-header .header-search form {
  display: flex; align-items: center; gap: 4px; height: 56px; background: #fff; border-radius: 18px;
  padding: 0 8px 0 20px; padding-inline: 20px 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22); margin: 0;
}
.rd-header .header-search form input {
  background: transparent; border: 0; box-shadow: none; color: var(--rd-ink); font-size: 16px; padding: 0 8px; min-width: 0; width: 100%; height: 56px; line-height: 1;
}
.rd-header .header-search form input::placeholder { color: #7A706E; }
.rd-search-btn { order: 2; background: none; border: 0; color: var(--rd-wine); font-size: 18px; width: 44px; height: 44px; }
.rd-header .autocomplete-container { flex: 1; position: static; }
.rd-header .autocomplete-results {
  position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 30; background: #fff; border-radius: 16px;
  box-shadow: 0 12px 30px rgba(34, 26, 25, 0.25); overflow: hidden; color: var(--rd-ink);
}
.rd-header .autocomplete-results a, .rd-header .autocomplete-results .autocomplete-item { color: var(--rd-ink); }
.rd-header:not(.is-home) { padding-bottom: 20px; }
.rd-header:not(.is-home) .rd-hero { padding-top: 0; }

/* ---------- drawer (hamburger menu) ----------
   A fixed overlay on the start side (right in Hebrew, left in English) that slides in; it does not depend on the page width. */
:root { --rd-dir: 1; }
:root:lang(en) { --rd-dir: -1; }
#main-menu {
  position: fixed; top: 0; bottom: 0; right: auto; left: auto; inset-inline-start: 0; z-index: 1050;
  width: min(360px, 88vw); max-width: none; margin: 0 !important; padding: 0 0 24px; display: block !important;
  background: #fff; border: 0; box-shadow: none; overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(calc(100% * var(--rd-dir))); visibility: hidden;
  transition: transform .28s ease, visibility 0s linear .28s;
}
#main-menu.open { transform: none; visibility: visible; box-shadow: 0 0 40px rgba(0, 0, 0, .3); transition: transform .28s ease, visibility 0s; }
#main-menu.open + main, #main-menu + main { margin: 0 !important; }
.rd-drawer-backdrop { position: fixed; inset: 0; z-index: 1040; background: rgba(34, 26, 25, .5); }
.rd-drawer-backdrop[hidden] { display: none; }
html.rd-drawer-open, html.rd-drawer-open body { overflow: hidden; }
.rd-drawer-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 20px; background: var(--rd-wine); }
.rd-drawer-head img { height: 30px; display: block; }
.rd-drawer-close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 18px; display: grid; place-items: center; cursor: pointer; }
.rd-drawer-close:hover, .rd-drawer-close:focus { background: rgba(255, 255, 255, .26); outline: 0; }
#main-menu .list-group { padding: 4px 12px; border-radius: 0; }
.rd-drawer-sec { padding: 18px 10px 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--rd-muted); }
#main-menu .list-group-item {
  display: flex; align-items: center; gap: 14px; border: 0; border-radius: 14px; background: none; color: var(--rd-ink);
  padding: 9px 10px; font-weight: 500; font-size: 15px; text-align: start;
}
#main-menu .list-group-item > i { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--rd-tint); color: var(--rd-wine); font-size: 17px; margin: 0; }
#main-menu .list-group-item > span { flex: 1; min-width: 0; }
#main-menu .list-group-item:hover, #main-menu .list-group-item:focus { background: var(--rd-subtle); text-decoration: none; color: var(--rd-ink); }
#main-menu .list-group-item.rd-drawer-lang { background: var(--rd-subtle); margin: 10px 0 0; }
#main-menu .badge { flex: none; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--rd-wine); color: #fff; font-size: 12px; display: inline-grid; place-items: center; }
.rd-drawer-badge { flex: none; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--rd-wine); color: #fff; font-size: 12px; display: grid; place-items: center; }
.rd-drawer-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 10px; }
.rd-drawer-chips a { padding: 7px 14px; border-radius: 16px; background: var(--rd-subtle); border: 1px solid var(--rd-hair); color: var(--rd-ink); font-size: 14px; text-decoration: none; }
.rd-drawer-chips a:hover { background: var(--rd-tint); border-color: var(--rd-wine); color: var(--rd-wine); }
.rd-drawer-legal { display: flex; gap: 16px; padding: 18px 10px 0; font-size: 13px; }
.rd-drawer-legal a { color: var(--rd-muted); }

/* ---------- layout columns ---------- */
.rd-columns { padding: 28px max(40px, calc((100% - 1360px) / 2)) 0; align-items: flex-start; flex-wrap: nowrap; gap: 28px; }
.rd-columns > .rd-content { flex: 1 1 0; max-width: none; width: auto; min-width: 0; }
.rd-columns > .rd-aside { flex: 0 0 300px; max-width: 300px; width: 300px; min-width: 0; }
.rd-content > .container-fluid, .rd-content .container-fluid { padding-inline: 0; }

/* ---------- section headings ---------- */
.rd-sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 14px; }
.rd-sec-head h2, .latest-recipes-title { margin: 0; font-size: 30px; font-weight: 400; color: var(--rd-wine); text-align: start; }
.rd-sec-head a { color: var(--rd-wine); font-weight: 500; font-size: 14px; }
.rd-latest-head { margin-top: 30px; }

/* ---------- home ---------- */
.rd-home { padding: 0; }
.rd-section { margin-bottom: 30px; }
.rd-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; }
.rd-cat {
  background: #fff; border: 1px solid var(--rd-tile-border); border-radius: 20px; padding: 14px 6px 12px; text-align: center;
  font-size: 14px; font-weight: 500; color: var(--rd-ink); display: flex; flex-direction: column; align-items: center; gap: 8px;
  box-shadow: 0 2px 6px rgba(109, 12, 6, 0.06); text-decoration: none; line-height: 1.25;
}
.rd-cat:hover { background: var(--rd-subtle); color: var(--rd-wine); text-decoration: none; }
.rd-cat-icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--rd-wine); font-size: 36px; }
.rd-cat-svg { display: block; width: 40px; height: 40px; background: var(--rd-wine); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.rd-cat-icon b { width: 38px; height: 38px; border: 2px solid var(--rd-wine); border-radius: 50%; font-size: 17px; display: grid; place-items: center; }
.rd-top10 {
  display: flex; align-items: center; gap: 16px; background: var(--rd-gold-soft); border: 1px solid var(--rd-gold-border);
  border-radius: 22px; padding: 14px 20px; margin-bottom: 18px; color: var(--rd-ink); text-decoration: none;
}
.rd-top10:hover { color: var(--rd-ink); text-decoration: none; background: #fff0b3; }
.rd-top10-n { width: 52px; height: 52px; border-radius: 16px; background: var(--rd-gold); color: var(--rd-on-gold); font-weight: 700; font-size: 22px; display: grid; place-items: center; flex: none; }
.rd-top10-text { display: flex; flex-direction: column; }
.rd-top10-text b { font-size: 18px; }
.rd-top10-text small { color: #5E5440; font-size: 14px; }
.rd-top10 > .fa { margin-inline-start: auto; color: var(--rd-wine); font-size: 26px; }
.rd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.rd-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 18px; border: 1px solid var(--rd-hair);
  background: #fff; font-size: 14px; color: var(--rd-ink); text-decoration: none; white-space: nowrap;
}
.rd-chip i { color: var(--rd-wine); }
.rd-chip:hover { background: var(--rd-tint); border-color: var(--rd-wine); color: var(--rd-wine); text-decoration: none; }
.all-recipes-banner, .main-boxes, .rosh-hashana { display: none; }

/* ---------- recipe cards ---------- */
.post.card { background: #fff; margin-bottom: 14px; display: flex; flex-direction: column; }
[class*="col-"] > .post.card { height: calc(100% - 14px); }
.category-page h1, .search-page h1, .articles-page h1 { font-family: "DanaYad", "Kalam", "Rubik", sans-serif; font-weight: 400; color: var(--rd-wine); font-size: 40px; }
.post.card .card-header { background: none; border: 0; padding: 10px 14px 6px; }
.user-item { display: flex; align-items: center; gap: 10px; }
.user-item .avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--rd-blush); color: var(--rd-wine); overflow: hidden; margin: 0 !important;
  display: grid; place-items: center; flex: none; font-weight: 600; font-size: 13px;
}
.user-item .avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-item .username a { color: var(--rd-ink); font-weight: 500; font-size: 14px; }
.post.card .recipe-thumb { position: relative; }
.post.card .card-img-top { width: 100%; height: 188px; object-fit: cover; border-radius: 0; display: block; }
.post.card .editors-choice-stump { position: absolute; z-index: 2; top: 8px; inset-inline-start: 8px; width: 46px; height: auto; }
.post.card .card-body { padding: 12px 14px 10px; flex: 1; }
.post.card .post-title { font-size: 24px; color: var(--rd-wine); line-height: 1.2; margin-bottom: 8px; }
.post.card .recipe-info-icons {
  display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px 14px; font-size: 13px; color: var(--rd-muted); font-family: "Rubik", sans-serif;
}
.post.card .recipe-info-icons > * { margin: 0; display: inline-flex; align-items: center; gap: 5px; text-align: start; }
.post.card .recipe-info-icons i { font-size: 16px !important; color: var(--rd-muted) !important; }
.post.card .recipe-info-icons .separator { display: none; }
.rd-card-actions { border-top: 1px solid var(--rd-hair); }
.rd-card-actions .actions { display: flex; justify-content: space-around; padding: 0; }
.rd-card-actions .actions .btn, .rd-card-actions .actions a.btn {
  flex: 1; margin: 0 !important; border: 0; border-radius: 0; background: none !important; color: var(--rd-muted) !important;
  height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; box-shadow: none;
}
.rd-card-actions .actions .btn:hover { background: var(--rd-subtle) !important; color: var(--rd-wine) !important; }
.rd-card-actions .actions .fa-heart { color: var(--rd-red); }
.post.card .card-footer { background: var(--rd-subtle); border: 0; }

/* masonry (public/js/masonry.js) */
.card-columns.rd-masonry, .recipes.rd-masonry { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 14px; margin: 0; -webkit-column-count: auto; column-count: auto; }
.rd-masonry .rd-mcol > [class*="col-"] { flex: none; width: 100%; max-width: none; padding: 0; }
.rd-masonry .rd-mcol { flex: 1 1 0; min-width: 0; }
.rd-masonry .post.card { display: flex; width: 100%; height: auto; margin: 0 0 14px; }

/* ---------- sidebar ---------- */
.sidebar { max-width: none; margin: 0; padding: 0; }
.sidebar > div, .sidebar > .subscribe-wrapper {
  background: #fff; border-radius: 22px; box-shadow: var(--rd-shadow); padding: 18px; margin-bottom: 20px;
}
.sidebar .title {
  font-family: "DanaYad", "Kalam", "Rubik", sans-serif; font-weight: 400; font-size: 24px; color: var(--rd-wine); text-align: start; margin-bottom: 12px; position: static;
}
.sidebar .title::after { display: none; }
.sidebar .popular-recipes .title { color: var(--rd-wine); }
.sidebar .popular-recipes .popular-recipe { padding: 8px 0; border-top: 1px solid var(--rd-hair); gap: 10px; font-size: 14px; font-weight: 500; }
.sidebar .popular-recipes .popular-recipe:first-of-type { border-top: 0; }
.sidebar .popular-recipes .popular-recipe img { width: 52px; height: 52px; margin: 0; border-radius: 12px; object-fit: cover; }
.sidebar .popular-recipes .popular-recipe a { color: var(--rd-ink); }
.sidebar .about-us { border: 0; }
.sidebar .about-us h5 { font-family: "DanaYad", "Kalam", "Rubik", sans-serif; font-weight: 400; font-size: 24px; text-align: start !important; color: var(--rd-wine) !important; }
.sidebar .about-us p { font-size: 14px; color: var(--rd-muted); line-height: 1.5; }
.sidebar .follow-us a.social {
  direction: inherit; text-align: start; display: flex; flex-grow: 0; align-items: center; gap: 12px; height: 52px; margin: 0 0 8px; padding: 0 14px; border-radius: 16px; box-shadow: none; overflow: visible;
  background: var(--rd-subtle); border: 1px solid var(--rd-tile-border); color: var(--rd-ink); font-weight: 500; font-size: 14px; text-decoration: none;
}
.sidebar .follow-us a.social:last-child { margin-bottom: 0; }
.sidebar .follow-us a.social:hover { background: var(--rd-tint); border-color: var(--rd-wine); color: var(--rd-wine); }
.sidebar .follow-us a.social i { flex: none; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--rd-wine); color: #fff; font-size: 17px; margin: 0; padding: 0; flex-grow: 0; position: static; }
.sidebar .follow-us a.social.instagram i { background: linear-gradient(45deg, #f5a623, #d6249f 55%, #5b51d8); }
.sidebar .follow-us a.social.youtube i { background: #d3201f; }
.sidebar .follow-us a.social.facebook i { background: #1877f2; }
.sidebar .subscribe-wrapper .btn { width: 100%; height: 46px; }
.rd-app-card { background: linear-gradient(160deg, #8d1109, var(--rd-wine)) !important; color: #fff; }
.rd-app-card .title { color: #fff !important; }
.rd-app-card p { color: var(--rd-blush); font-size: 14px; line-height: 1.5; margin-bottom: 14px; }
.rd-app-btn { display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 16px; background: #fff; color: var(--rd-wine); font-weight: 600; text-decoration: none; }
.rd-app-btn:hover { color: var(--rd-wine); background: var(--rd-tint); text-decoration: none; }
#sidebar-toggle { display: none !important; }


/* ---------- recipe page (the app's recipe screen) ---------- */
.recipe-page { background: transparent; box-shadow: none; overflow: visible; margin: 0 0 24px; }
.recipe-page .cover { border-radius: 22px; overflow: hidden; margin-bottom: 0; box-shadow: var(--rd-shadow); }
.recipe-page .cover img { width: 100%; max-height: 460px; object-fit: cover; }
.recipe-page > .container { max-width: none; padding: 0; }
.recipe-page .recipe-text { padding-top: 18px; }
.recipe-title { font-family: "DanaYad", "Kalam", "Rubik", sans-serif; font-weight: 400; color: var(--rd-wine); font-size: 46px; line-height: 1.15; margin: 0 0 12px; }
.recipe-byline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.recipe-byline .user-item .avatar { width: 44px; height: 44px; font-size: 15px; }
.recipe-byline .user-item .username a { font-size: 16px; font-weight: 600; }
.recipe-views { color: var(--rd-muted); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.recipe-page .categories-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.recipe-page .categories-list .badge { height: 36px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 18px; background: #fff; border: 1px solid var(--rd-hair); color: var(--rd-ink); font-size: 14px; font-weight: 500; }
.recipe-page .categories-list .badge:hover { background: var(--rd-tint); border-color: var(--rd-wine); color: var(--rd-wine); text-decoration: none; }
.recipe-page .description { color: var(--rd-inksoft, #4A4241); line-height: 1.7; margin-bottom: 16px; }

.recipe-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.recipe-stats .stat { background: #fff; border-radius: 18px; padding: 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: 0 4px 14px rgba(34, 26, 25, 0.06); text-align: center; }
.recipe-stats .stat > i { font-size: 24px; color: var(--rd-wine); line-height: 1; height: 26px; }
.stat-ico { width: 26px; height: 26px; fill: none; stroke: var(--rd-wine); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.recipe-stats .stat small { font-size: 12.5px; color: var(--rd-muted); }
.recipe-stats .stat b { font-size: 16px; font-weight: 600; }
.level-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 26px; }
.level-bars i { width: 5px; border-radius: 3px; background: #DCCFCC; display: block; }
.level-bars i:nth-child(1) { height: 9px; }
.level-bars i:nth-child(2) { height: 17px; }
.level-bars i:nth-child(3) { height: 26px; }
.level-bars.level-1 i:nth-child(1), .level-bars.level-2 i:nth-child(-n+2), .level-bars.level-3 i { background: var(--rd-wine); }

.recipe-actions-bar { background: #fff; border-radius: 18px; box-shadow: var(--rd-shadow); display: flex; flex-wrap: wrap; overflow: hidden; margin-bottom: 20px; }
.recipe-actions-bar .rd-tools-marker { flex-basis: 100%; height: 0; order: 5; }
.recipe-actions-bar .rd-tool { order: 6; flex: 1 1 auto; height: 44px; font-size: 13px; font-weight: 500; color: var(--rd-muted) !important; background: var(--rd-ground) !important; border-top: 1px solid var(--rd-hair) !important; }
.recipe-actions-bar .rd-tool + .rd-tool { border-inline-start: 1px solid var(--rd-hair); }
.recipe-actions-bar .rd-tool i { font-size: 16px; color: var(--rd-muted); }
.recipe-actions-bar .rd-tool:hover i { color: var(--rd-wine); }
.recipe-actions-bar .rd-tool.btn-danger:hover i { color: var(--rd-red); }
.recipe-actions-bar .btn { flex: 1; margin: 0 !important; height: 56px; border: 0; border-radius: 0; background: transparent !important; color: var(--rd-ink) !important; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: none; }
.recipe-actions-bar .btn + .btn { border-inline-start: 1px solid var(--rd-hair); }
.recipe-actions-bar .btn:hover { background: var(--rd-subtle) !important; }
.recipe-actions-bar .btn i { font-size: 20px; color: var(--rd-ink); }
.recipe-actions-bar .btn .fa-heart { color: var(--rd-red); }

.recipe-sections { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
.recipe-block { background: #fff; border-radius: 22px; box-shadow: var(--rd-shadow); padding: 20px 24px 22px; }
.recipe-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.recipe-block-head h3, .recipe-page h3 { font-family: "DanaYad", "Kalam", "Rubik", sans-serif; font-weight: 400; color: var(--rd-wine); font-size: 32px; margin: 0; }
.ingredients-progress { color: var(--rd-muted); font-size: 13px; }

.ingredients-list { list-style: none; margin: 0; padding: 0; }
.ingredients-list li { border-bottom: 1px solid var(--rd-hair); }
.ingredients-list li:last-child { border-bottom: 0; }
.ingredients-list label { display: flex; align-items: center; gap: 14px; margin: 0; padding: 14px 0; cursor: pointer; font-size: 16px; line-height: 1.4; }
.ingredients-list input { position: absolute; opacity: 0; pointer-events: none; }
.ingredients-list .rd-check {
  flex: none; box-sizing: border-box; width: 28px; height: 28px; padding: 0; margin: 0; border-radius: 9px; border: 2px solid var(--rd-input); background: #fff;
  position: relative; transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.ingredients-list .rd-check::after {
  content: ""; position: absolute; left: 50%; top: 46%; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; border-radius: 1px;
  transform: translate(-50%, -50%) rotate(45deg) scale(0); transition: transform .15s ease;
}
.ingredients-list label:hover .rd-check { border-color: var(--rd-wine); }
.ingredients-list input:checked + .rd-check { background: var(--rd-wine); border-color: var(--rd-wine); }
.ingredients-list input:checked + .rd-check::after { transform: translate(-50%, -50%) rotate(45deg) scale(1); }
.ingredients-list input:active + .rd-check { transform: scale(.92); }
.ingredients-list input:focus-visible + .rd-check { outline: 2px solid var(--rd-wine); outline-offset: 2px; }
.ingredients-list .text { transition: color .15s ease; }
.ingredients-list li.done .text { text-decoration: line-through; text-decoration-color: rgba(34, 26, 25, .45); color: var(--rd-muted); }

.steps-list { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps-list li { counter-increment: step; display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rd-hair); line-height: 1.65; font-size: 16px; }
.steps-list li:last-child { border-bottom: 0; }
.steps-list .num { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--rd-wine); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; margin-top: 1px; }
.steps-list .num::before { content: counter(step); }
.recipe-note { margin: 14px 0 0; padding: 14px 16px; background: var(--rd-gold-soft); border: 1px solid var(--rd-gold-border); border-radius: 16px; line-height: 1.65; color: #4a3a00; }

.recipe-page hr { display: none; }
.recipe-page #comments, .recipe-page #add-comment, .recipe-page .recipe-images:has(img), .recipe-page .videos:has(iframe), .recipe-page .recipe-follow { background: #fff; border-radius: 22px; box-shadow: var(--rd-shadow); padding: 18px 24px; margin-top: 20px; }
.recipe-page .recipe-follow { margin-top: 20px; }
.recipe-follow p { margin: 0 0 12px; font-weight: 500; }
.recipe-follow-links { display: flex; flex-wrap: wrap; gap: 8px; }
.recipe-follow-links a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 18px; border: 1px solid var(--rd-hair); background: var(--rd-subtle); color: var(--rd-ink); font-size: 14px; font-weight: 500; text-decoration: none; }
.recipe-follow-links a i { color: var(--rd-wine); }
.recipe-follow-links a:hover { background: var(--rd-tint); border-color: var(--rd-wine); color: var(--rd-wine); }
.recipe-page .recipe-images:not(:has(img)), .recipe-page .videos:not(:has(iframe)) { display: none; }
.recipe-page .comments h3, .recipe-page #add-comment label { font-family: "DanaYad", "Kalam", "Rubik", sans-serif; font-weight: 400; color: var(--rd-wine); font-size: 28px; }
.comments .list-group-item { border-radius: 0; border-color: var(--rd-hair); }
/* previous / next recipe */
.recipe-page .rd-prevnext { margin-top: 20px; gap: 12px; flex-wrap: nowrap; }
.recipe-page .rd-prevnext .btn { height: 44px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; border-radius: 22px; padding: 0 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
/* write a comment */
.recipe-page #add-comment .form-group { margin-bottom: 14px; }
.recipe-page #add-comment .form-group:last-child { margin-bottom: 0; }
.recipe-page .comment-input-wrapper { background: var(--rd-subtle); border: 1px solid var(--rd-hair); border-radius: 18px; padding: 10px 16px; align-items: center; min-height: 56px; transition: border-color .15s, box-shadow .15s; }
.recipe-page .comment-input-wrapper:focus-within { border-color: var(--rd-wine); box-shadow: 0 0 0 3px rgba(107,15,26,.12); background: #fff; }
.recipe-page #comment-content { min-height: 32px; outline: 0; line-height: 1.6; padding: 4px 0; }
.recipe-page .comment-actions { align-self: center; }
.recipe-page .comment-actions label { margin: 0; }
.recipe-page .add-images { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--rd-wine); font-size: 18px; }
.recipe-page .add-images:hover { background: var(--rd-tint); }
.recipe-page #add-comment .btn-primary { height: 42px; border-radius: 21px; padding: 0 26px; }
.recipe-page .images-preview img { border-radius: 14px; object-fit: cover; }
/* more recipes */
.recipe-page .related-recipes { margin-top: 26px; }
.recipe-page .related-recipes .container { padding: 0; max-width: none; }
.recipe-page .related-recipes .h3 { font-family: "DanaYad", "Kalam", "Rubik", sans-serif; font-weight: 400; color: var(--rd-wine); font-size: 28px; margin: 0 0 6px; }
.recipe-page .related-recipes .slider { background: transparent; padding-bottom: 54px; }
.recipe-page .related-recipes .slider .slick-arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; padding: 0; font-size: 16px; background: var(--rd-wine); box-shadow: var(--rd-shadow); cursor: pointer; }
.recipe-page .related-recipes .slider .slick-arrow-prev { right: calc(50% - 46px); }
.recipe-page .related-recipes .slider .slick-arrow-next { left: calc(50% - 46px); }

@media (max-width: 575px) {
  .recipe-actions-bar .btn { font-size: 13px; gap: 5px; padding: 0 4px; white-space: nowrap; height: 52px; }
  .recipe-actions-bar .btn i { font-size: 18px; }
}
@media (max-width: 991px) {
  .recipe-title { font-size: 34px; }
  .recipe-sections { grid-template-columns: 1fr; }
  .recipe-page .cover { border-radius: 0 0 22px 22px; margin: 0 -16px; }
  .recipe-block { padding: 18px 18px 20px; }
}

/* ---------- misc pages ---------- */
.alert { border-radius: 16px; }
.list-group-item { border-color: var(--rd-hair); }
.table { border-radius: 14px; }
.nav-tabs .nav-link.active { color: var(--rd-wine); border-color: var(--rd-wine); }

/* ---------- footer ---------- */
main > footer { background: transparent; color: var(--rd-muted); font-size: 13px; padding: 8px 0 !important; flex-shrink: 0; }
main > footer a { color: var(--rd-muted); margin: 0 6px; }
main > footer p { margin-bottom: 2px; }

/* ---------- app banner (top strip) ---------- */
.app-banner { background: var(--rd-wine); border-bottom: 0; color: #fff; }
.app-banner-link, .app-banner-link:hover { color: #fff; }
.app-banner-cta { background: var(--rd-gold); color: var(--rd-on-gold); }
.app-banner-close { color: var(--rd-blush); }
@media (min-width: 992px) { .app-banner { display: none !important; } }

/* ---------- bottom nav (mobile) ---------- */
.rd-bottom-nav { display: none; }

/* ---------- tablet / mobile ---------- */
@media (max-width: 991px) {
  .rd-header { padding: 0 16px 20px; border-radius: 0 0 28px 28px; }
  .rd-bar { height: 56px; gap: 8px; }
  .rd-nav, .rd-add, .rd-lang-switch, .rd-admin, .rd-account span:not(.rd-avatar) { display: none; }
  .rd-logo { position: absolute; inset-inline: 0; margin: 0 auto; width: fit-content; }
  .rd-logo img { height: 36px; }
  .rd-hero { flex-direction: column; align-items: stretch; gap: 12px; }
  .rd-hero-text h1 { font-size: 30px; }
  .rd-hero-text p { display: none; }
  .rd-header .header-search { flex: none; margin: 0; max-width: none !important; }
  .rd-header .header-search form { height: 52px; border-radius: 16px; }
  .rd-header .header-search form input { height: 52px; }
  .rd-columns { padding: 18px 16px 0; flex-direction: column; gap: 0; align-items: stretch; }
  .rd-columns > .rd-content { flex: none; width: 100%; }
  .rd-columns > .rd-aside { flex: none; width: 100%; max-width: none; margin-top: 24px; }
  .rd-sec-head h2, .latest-recipes-title { font-size: 25px; }
  .rd-cats { display: flex; overflow-x: auto; gap: 10px; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .rd-cats::-webkit-scrollbar { display: none; }
  .rd-cat { flex: none; width: 92px; }
  main > footer { display: none; }
  main header + section { padding-bottom: 0; }
  .rd-bottom-nav {
    display: flex; align-items: flex-start; justify-content: space-around; flex-shrink: 0; position: relative; z-index: 20;
    background: #fff; border-top: 1px solid var(--rd-hair); height: 70px; padding: 6px 4px 0; box-shadow: 0 -6px 20px rgba(20, 10, 8, 0.08);
  }
  .rd-bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; color: #5A5250; text-decoration: none; padding: 5px 2px; border-radius: 18px; }
  .rd-bottom-nav a i { font-size: 20px; }
  .rd-bottom-nav a.on { background: var(--rd-tint); color: var(--rd-wine); font-weight: 600; }
  .rd-bottom-nav .rd-bn-add { color: var(--rd-wine); font-weight: 600; margin-top: -26px; }
  .rd-bottom-nav .rd-bn-add b { width: 54px; height: 54px; border-radius: 50%; background: var(--rd-wine); color: #fff; display: grid; place-items: center; border: 4px solid #fff; box-shadow: 0 6px 16px rgba(109, 12, 6, 0.4); }
  .rd-bottom-nav .rd-bn-add b i { font-size: 22px; }
}
@media (max-width: 575px) {
  .rd-hero-text h1 { font-size: 28px; }
}

/* ---------- admin menu in the header ---------- */
.rd-admin { position: relative; }
.rd-admin summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 21px; background: rgba(255,255,255,.12); color: #fff; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.rd-admin summary::-webkit-details-marker { display: none; }
.rd-admin summary:hover, .rd-admin[open] summary { background: rgba(255,255,255,.22); }
.rd-admin-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60; min-width: 220px; padding: 8px; border-radius: 18px; background: #fff; box-shadow: 0 14px 34px rgba(34, 26, 25, .3); }
.rd-admin-menu a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--rd-ink); font-size: 14px; text-decoration: none; }
.rd-admin-menu a:hover { background: var(--rd-subtle); color: var(--rd-wine); }
/* the header gets crowded for an admin: labels first, then the nav pills (they are all in the drawer) */
@media (max-width: 1599px) {
  .rd-admin summary span, .rd-account.logout-btn span { display: none; }
  .rd-admin summary { width: 42px; padding: 0; justify-content: center; }
  .rd-account.logout-btn { width: 42px; height: 42px; padding: 0; justify-content: center; }
}
@media (max-width: 1349px) { .rd-nav { gap: 2px; } .rd-nav a { padding: 9px 11px; font-size: 14px; } .rd-bar { gap: 8px; } }
@media (max-width: 1249px) and (min-width: 992px) { .rd-nav { display: none; } }

/* ---------- articles ---------- */
.article-card.card { border: 0; border-radius: 22px; background: #fff; box-shadow: var(--rd-shadow); overflow: hidden; margin: 0 0 14px; display: flex; flex-direction: column; width: 100%; }
.rd-masonry .article-card.card { margin: 0 0 14px; }
.article-card .article-thumb { position: relative; }
.article-card .article-thumb img { width: 100%; display: block; }
.article-card .buttons-overlay { position: absolute; top: 10px; inset-inline-start: 10px; }
.article-card .buttons-overlay .btn { width: 36px; height: 36px; border-radius: 50%; padding: 0; background: rgba(34,26,25,.55); border: 0; color: #fff; }
.article-card .card-body { background: none !important; padding: 16px 18px 6px; line-height: 1.6; color: var(--rd-muted); font-size: 15px; }
.article-card .card-body > *:not(.card-title) { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.article-card .card-title { margin: 0 0 8px; font-family: "DanaYad", "Kalam", "Rubik", sans-serif; font-weight: 400; font-size: 27px; line-height: 1.15; }
.article-card .card-title a, .article-card .card-title a:visited { color: var(--rd-wine); }
.article-card .card-footer { background: none; border: 0; padding: 6px 14px 14px; }
.article-card .actions, .article-page .actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.article-card .actions a, .article-page .actions a { float: none !important; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 18px; background: var(--rd-tint); color: var(--rd-wine); font-size: 14px; font-weight: 500; text-decoration: none; }
.article-card .actions a:hover, .article-page .actions a:hover { background: var(--rd-wine); color: #fff; }
.rd-art-admin { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rd-hair); }
.rd-art-admin a { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid var(--rd-hair); background: var(--rd-subtle); color: var(--rd-ink); font-size: 13px; text-decoration: none; }
.rd-art-admin a:hover { border-color: var(--rd-wine); color: var(--rd-wine); background: var(--rd-tint); }
.rd-art-admin .views { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--rd-muted); }
.rd-art-new { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; margin-bottom: 14px; border-radius: 20px; background: var(--rd-wine); color: #fff !important; font-weight: 500; text-decoration: none !important; }
.articles-page h1 { margin: 0 0 14px; }
.article-page > .card { border: 0; border-radius: 26px; background: #fff; box-shadow: var(--rd-shadow); overflow: hidden; margin-top: 0 !important; }
.article-page .card-img-top { width: 100%; max-height: 420px; object-fit: cover; }
.article-page .card-body { background: none !important; padding: 26px clamp(18px, 4vw, 44px); line-height: 1.8; font-size: 17px; }
.article-page .card-body h1 { font-family: "DanaYad", "Kalam", "Rubik", sans-serif; font-weight: 400; color: var(--rd-wine); font-size: clamp(32px, 5vw, 46px); line-height: 1.1; margin-bottom: 16px; }
.article-page .card-body img { max-width: 100%; height: auto; border-radius: 16px; }
.article-page .card-footer { background: var(--rd-subtle); border: 0; padding: 14px clamp(18px, 4vw, 44px); }
