/* MaiKaja Community & Social Feed Design (2026 Modern Magazine & Game Hub) */
.mk-community-web-only { display: none; }
html:not(.maikaja-app) .mk2-community-main .mk-community-app-only { display: none; }
html:not(.maikaja-app) .mk2-community-main .mk-community-web-only:not([hidden]) { display: revert; }

/* Hide redundant legacy mobile widgets on desktop web */
html:not(.maikaja-app) .mk2-community-main :is(
  .feed-inline-logo, .feed-inline-slogan, .feed-inline-actions,
  .app-home-intro, .feed-hero-recommended, .mk-app-social-entrance,
  .app-cuisine-strip, .feed-compose-quick, .app-challenge-teaser, .mk-app-social-head
) {
  display: none !important;
}

/* Page background & ambient glow */
html:not(.maikaja-app) body.app-feed-screen {
  background:
    radial-gradient(ellipse 75% 45% at 50% 0%, rgba(234, 88, 12, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 55% 35% at 85% 25%, rgba(16, 185, 129, 0.06) 0%, transparent 55%),
    #0a1017 !important;
  color: #f1f5f9;
  min-height: 100vh;
}

/* Main Grid Layout */
html:not(.maikaja-app) body.app-feed-screen .mk2-community-main {
  --community-ink: #f1f5f9;
  --community-muted: #94a3b8;
  --community-green: #10b981;
  --community-line: rgba(255, 255, 255, 0.08);
  --community-surface: rgba(18, 26, 36, 0.78);
  --community-surface-hover: rgba(26, 38, 52, 0.90);
  --community-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --community-action: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2.7fr);
  width: min(calc(100% - 32px), 1560px);
  margin-inline: auto;
  margin-top: 18px;
  gap: 16px;
  align-items: start;
  color: var(--community-ink);
}

html:not(.maikaja-app) body.app-feed-screen .mk2-community-main:not(:has(> .mk2-community-side)) {
  grid-template-columns: minmax(0, 1fr);
}

html:not(.maikaja-app) .mk2-community-main :is(.mk2-community-center, .mk2-community-side) {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
}

/* Unified Cards with Glassmorphism */
html:not(.maikaja-app) .mk2-community-main :is(.mk2-card, .feed-card, .feed-hero-shell, .feed-empty) {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--community-line);
  border-radius: 20px;
  background: var(--community-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--community-shadow);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

html:not(.maikaja-app) .mk2-community-main :is(.mk2-card, .feed-card):hover {
  border-color: rgba(255, 255, 255, 0.15);
}

/* Hero Banner */
html:not(.maikaja-app) .mk2-community-main .mk2-community-hero {
  position: relative;
  min-height: 190px;
  margin: 0;
  padding: 28px 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(10, 16, 23, 0.94) 0%, rgba(15, 23, 34, 0.85) 45%, rgba(20, 30, 42, 0.35) 85%),
    url(hero/maikaja-kezdolap-mediterran-teszta.webp) center right / cover no-repeat;
  overflow: visible;
  position: relative;
  z-index: 4;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.mk-community-discover-search {
  position: relative;
  flex: 0 1 360px;
  width: clamp(260px, 28vw, 360px);
  min-width: 240px;
  max-width: 380px;
  margin-left: 8px;
}

.mk-community-discover-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.mk-community-discover-input-wrap:focus-within {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

.mk-community-discover-input-wrap i {
  color: #64748b;
  font-size: 14px;
  flex-shrink: 0;
}

html body .mk2-top .mk-community-discover-input-wrap input {
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #0f172a !important;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  outline: none !important;
}

.mk-community-discover-input-wrap input::placeholder {
  color: #64748b;
}

html.mk-dark .mk-community-discover-input-wrap {
  background: #0f172a;
  border-color: #334155;
  color: #e6eef7;
}

html.mk-dark .mk-community-discover-input-wrap i,
html.mk-dark .mk-community-discover-input-wrap input::placeholder {
  color: #94a3b8;
}

html.mk-dark body .mk2-top .mk-community-discover-input-wrap input {
  color: #e6eef7 !important;
}

.mk-community-discover-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 40;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
  max-height: 360px;
  overflow-y: auto;
  display: grid;
  gap: 8px;
}

.mk-community-discover-results[hidden] {
  display: none;
}

.mk-discover-group {
  display: grid;
  gap: 4px;
}

.mk-discover-group > strong {
  padding: 4px 8px 2px;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.mk-discover-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: #0f172a !important;
  font-size: 13.5px;
  font-weight: 700;
  transition: background 0.12s ease;
}

.mk-discover-item:hover {
  background: #f1f5f9;
}

.mk-discover-item img,
.mk-discover-ph {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e2e8f0;
  display: grid;
  place-items: center;
  font-size: 15px;
}

.mk-discover-item span {
  display: grid;
  min-width: 0;
  line-height: 1.25;
}

.mk-discover-item b {
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mk-discover-item small {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

.mk-discover-empty {
  margin: 0 !important;
  padding: 10px 12px;
  font-size: 13px !important;
  color: #64748b !important;
  text-align: center;
}

html.mk-dark .mk-community-discover-results {
  background: #151f29;
  border-color: #263443;
  color: #e6eef7;
}

html.mk-dark .mk-discover-group > strong,
html.mk-dark .mk-discover-item small,
html.mk-dark .mk-discover-empty {
  color: #94a3b8 !important;
}

html.mk-dark .mk-discover-item {
  color: #e6eef7 !important;
}

html.mk-dark .mk-discover-item:hover {
  background: #223040;
}

html:not(.maikaja-app) .mk2-community-hero h1 {
  font-family: var(--ds-font-display, 'DM Serif Display', Georgia, serif);
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.015em;
  color: #fff;
}

html:not(.maikaja-app) .mk2-community-hero p {
  max-width: 54ch;
  margin: 8px 0 16px;
  font-size: 15px;
  line-height: 1.45;
  color: #cbd5e1;
}

.mk-community-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

html:not(.maikaja-app) .mk2-community-hero .mk-community-hero-actions .mk2-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

html:not(.maikaja-app) .mk2-community-hero .mk-community-hero-actions .mk2-button:hover {
  background: var(--community-action);
  border-color: #f97316;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.4);
}

.mk-community-hero-actions .mk2-button i,
.mk-community-challenge h2 i,
.mk-community-leaders h2 i {
  color: #ea580c;
}

html:not(.maikaja-app) .mk2-community-main :is(.mk2-button, .mk2-text-button, .mk-community-nav a, .feed-recipe-title a) {
  text-decoration: none;
}

html:not(.maikaja-app) .mk2-community-main :is(.mk2-text-button, .feed-recipe-title a) {
  color: var(--community-ink);
}

html:not(.maikaja-app) .mk2-community-main :is(.mk2-text-button, .feed-recipe-title a):hover {
  color: #ea580c;
}

/* Post Composer */
html:not(.maikaja-app) .mk2-community-main .mk-community-composer {
  display: grid;
  gap: 12px;
  padding: 16px 20px;
}

.mk-community-composer > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mk-community-composer > div:first-child { flex-wrap: nowrap; gap: 12px; }

.mk-community-composer img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.mk-community-composer > div:first-child button {
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--community-muted);
  text-align: start;
  font-size: 14.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mk-community-composer > div:first-child button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.2);
}

.mk-community-composer .mk2-choice {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid var(--community-line);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mk-community-composer .mk2-choice:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.mk-community-composer .mk2-choice i { color: #10b981; }

.mk-community-composer > div:last-child .mk2-button {
  margin-inline-start: auto;
  min-height: 36px;
  padding: 6px 18px;
  border-radius: 10px;
  background: var(--community-action);
  border: 0;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mk-community-composer > div:last-child .mk2-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.5);
}

/* Feed Shell & Tabs */
html:not(.maikaja-app) body.app-feed-screen .mk2-community-main .feed-hero-shell {
  min-height: 0;
  padding: 16px 20px;
  background: var(--community-surface) !important;
  color: var(--community-ink) !important;
}

html:not(.maikaja-app) .mk2-community-main .mk-community-feed-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
  color: var(--community-ink) !important;
}

.mk-community-feed-title i { color: #ea580c; }

html:not(.maikaja-app) .mk2-community-main :is(.feed-top, .feed-one-line-header) {
  display: flex;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  border: 0;
}

html:not(.maikaja-app) .mk2-community-main .feed-inline-tabs {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  padding: 2px 2px 8px;
  background: none;
  border: 0;
  box-shadow: none;
  scrollbar-width: none;
}

html:not(.maikaja-app) .mk2-community-main .feed-inline-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  min-height: 36px;
  padding: 6px 16px;
  border: 1px solid var(--community-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--community-muted);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

html:not(.maikaja-app) .mk2-community-main .feed-inline-tabs button:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

html:not(.maikaja-app) .mk2-community-main .feed-inline-tabs button.is-active {
  background: var(--community-action);
  color: #fff;
  border-color: #f97316;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}

.mk2-community-main .feed-inline-tabs button i { color: #10b981; }
.mk2-community-main .feed-inline-tabs button.is-active i { color: inherit; }

/* Feed Stream & Posts */
html:not(.maikaja-app) .mk2-community-main .feed-stream {
  width: 100%;
  max-width: none;
  margin: 12px 0 0;
  display: grid;
  gap: 12px;
}

html:not(.maikaja-app) .mk2-community-main .feed-community-card {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  gap: 10px;
}

html:not(.maikaja-app) .mk2-community-main .feed-community-card .feed-card-head {
  order: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

html:not(.maikaja-app) .mk2-community-main .feed-community-card .feed-big-image {
  order: 1;
  min-height: 0;
  aspect-ratio: 2.4;
  max-height: 320px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

html:not(.maikaja-app) .mk2-community-main .feed-big-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

html:not(.maikaja-app) .mk2-community-main .feed-community-card .feed-post-text {
  order: 2;
  margin: 6px 0;
  font-size: 15px;
  line-height: 1.5;
  color: #e2e8f0;
}

html:not(.maikaja-app) .mk2-community-main .feed-community-card .feed-card-body {
  order: 3;
  padding: 4px 0 0;
}

html:not(.maikaja-app) .mk2-community-main .feed-card .feed-actions button {
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid var(--community-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--community-muted);
}

html:not(.maikaja-app) .mk2-community-main .feed-card .feed-actions [data-like] i { color: #f43f5e; }

/* Left Sidebar Navigation */
html:not(.maikaja-app) .mk2-community-main .mk-community-nav {
  padding: 16px;
}

.mk-community-side-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 4px 14px;
  border-bottom: 1px solid var(--community-line);
  margin-bottom: 10px;
}

.mk-community-side-title > i {
  color: #ea580c;
  font-size: 28px;
}

.mk-community-side-title h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  color: #f1f5f9;
}

.mk-community-side-title p {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.25;
  color: var(--community-muted);
}

html:not(.maikaja-app) .mk-community-nav .mk2-link-list {
  display: grid;
  gap: 4px;
}

html:not(.maikaja-app) .mk-community-nav .mk2-link-list a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 38px;
  padding: 6px 12px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.mk-community-nav .mk2-link-list a i {
  width: 20px;
  text-align: center;
  color: #10b981;
  font-size: 16px;
}

html:not(.maikaja-app) .mk-community-nav .mk2-link-list a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transform: translateX(3px);
}

html:not(.maikaja-app) .mk-community-nav .mk2-link-list a.is-current {
  border-radius: 12px;
  background: rgba(234, 88, 12, 0.16);
  color: #ff9a51;
  border: 1px solid rgba(234, 88, 12, 0.35);
  font-weight: 700;
}

.mk-community-unread {
  margin-inline-start: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: #ea580c;
  color: white;
  font-size: 12px;
  font-weight: 800;
}

/* User Mini Profile in Sidebar */
.mk-community-profile {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 16px;
}

.mk-community-profile img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ea580c;
  box-shadow: 0 0 14px rgba(234, 88, 12, 0.35);
}

.mk-community-profile h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #f1f5f9;
}

.mk-community-profile span {
  font-size: 13px;
  color: var(--community-muted);
}

.mk-community-progress {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.mk-community-progress span { font-size: 12px; color: var(--community-muted); }

.mk-community-progress progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  accent-color: #ea580c;
}

/* Weekly Leaders in Sidebar */
.mk-community-leaders {
  padding: 16px;
}

.mk-community-leaders h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: #f1f5f9;
}

.mk-community-leaders ol {
  list-style: none;
  margin: 8px 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.mk-community-leaders li a {
  display: grid;
  grid-template-columns: 24px 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease;
}

.mk-community-leaders li a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.mk-community-leaders li a > span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(234, 88, 12, 0.18);
  color: #ff9a51;
  font-weight: 800;
  font-size: 12px;
}

.mk-community-leaders li img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.mk-community-leaders li b {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13.5px;
  font-weight: 600;
}

.mk-community-leaders small {
  color: #ea580c;
  font-weight: 700;
  font-size: 12.5px;
}

.mk-community-leaders .mk2-text-button {
  display: flex;
  justify-content: center;
  color: #ea580c;
  font-weight: 700;
  font-size: 13.5px;
  margin-top: 8px;
}

/* Right Rail: Weekly Challenge & Popular Recipes */
html:not(.maikaja-app) .mk2-community-main .mk-community-challenge {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
}

.mk-community-challenge h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #f1f5f9;
}

.mk-community-challenge > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
  gap: 12px;
  align-items: center;
}

.mk-community-challenge > div:not(:has(img)) { grid-template-columns: 1fr; }

.mk-community-challenge img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mk-community-challenge b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
}

.mk-community-challenge p {
  margin: 4px 0 6px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--community-muted);
}

.mk-community-challenge span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #ea580c;
}

.mk-community-challenge > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 14px;
  text-align: center;
  border-radius: 12px;
  background: var(--community-action);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
  transition: all 0.2s ease;
}

.mk-community-challenge > a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.5);
}

/* Left Rail: Popular Recipes List */
html:not(.maikaja-app) .mk2-community-main .mk2-community-side .mk2-feature {
  padding: 16px 18px;
}

html:not(.maikaja-app) .mk2-community-main .mk2-community-side .mk2-feature h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--community-ink);
}

html:not(.maikaja-app) .mk2-community-main .mk2-community-recipe {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--community-line) !important;
  color: #e2e8f0 !important;
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.3;
  transition: all 0.2s ease;
}

html:not(.maikaja-app) .mk2-community-main .mk2-community-recipe:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
  transform: translateX(2px);
}

html:not(.maikaja-app) .mk2-community-main .mk2-community-recipe img {
  width: 56px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
}

/* Member Search Box */
.mk-community-member-form {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.mk-community-member-form label {
  font-size: 12.5px;
  color: var(--community-muted);
}

.mk-community-member-form input {
  min-width: 0;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--community-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
  font: inherit;
  font-size: 14px;
}

.mk-community-member-form input:focus {
  outline: none;
  border-color: #ea580c;
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.25);
}

.mk-community-member-form button {
  min-height: 36px;
  border-radius: 10px;
  background: var(--community-action);
  border: 0;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.mk-community-member-result {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 6px 8px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s ease;
}

.mk-community-member-result:hover {
  background: rgba(255, 255, 255, 0.06);
}

.mk-community-member-result img {
  border-radius: 50%;
  object-fit: cover;
  width: 32px;
  height: 32px;
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
  html:not(.maikaja-app) body.app-feed-screen .mk2-community-main {
    grid-template-columns: minmax(180px, 0.9fr) minmax(0, 3fr);
  }
  html:not(.maikaja-app) body.app-feed-screen .mk2-community-main:not(:has(> .mk2-community-side)) {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  html:not(.maikaja-app) body.app-feed-screen .mk2-community-main {
    width: min(calc(100% - 20px), 560px);
    grid-template-columns: minmax(0, 1fr);
  }
  html:not(.maikaja-app) body.app-feed-screen .mk2-community-main:not(:has(> .mk2-community-side)) {
    grid-template-columns: minmax(0, 1fr);
  }
  html:not(.maikaja-app) .mk2-community-main .mk2-community-side {
    order: 3;
  }
  html:not(.maikaja-app) .mk2-community-main .mk2-community-center {
    order: 1;
  }
  html:not(.maikaja-app) .mk2-community-main .mk2-community-hero {
    padding: 20px;
    min-height: 160px;
  }
  .mk-community-hero-actions .mk2-button {
    flex: 1 1 auto;
  }
  html:not(.maikaja-app) .mk2-community-main .feed-big-image {
    aspect-ratio: 1.7;
    max-height: none;
  }
}

/* Light Mode Variation */
html:not(.mk-dark):not(.maikaja-app) body.app-feed-screen {
  background:
    radial-gradient(ellipse 75% 45% at 50% 0%, rgba(234, 88, 12, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 55% 35% at 85% 25%, rgba(28, 107, 67, 0.04) 0%, transparent 55%),
    var(--ds-bg, #faf7f2) !important;
  color: var(--ds-ink, #1e1b18);
}

html:not(.mk-dark):not(.maikaja-app) body.app-feed-screen .mk2-community-main {
  --community-ink: #1e1b18;
  --community-muted: #6f675f;
  --community-green: #1c6b43;
  --community-line: #e6dfd5;
  --community-surface: #ffffff;
  --community-surface-hover: #f8f3eb;
  --community-shadow: 0 4px 18px rgba(30, 27, 24, 0.06);
  color: var(--community-ink);
}

html:not(.mk-dark):not(.maikaja-app) body.app-feed-screen .mk2-community-main :is(.mk2-card, .feed-card, .feed-empty) {
  background: #ffffff;
  border-color: #e6dfd5;
  box-shadow: 0 4px 18px rgba(30, 27, 24, 0.06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html:not(.mk-dark):not(.maikaja-app) body.app-feed-screen .mk2-community-main :is(
  .mk-community-nav a:hover,
  .mk-community-nav button:hover,
  .mk-community-member-result:hover,
  .feed-chip:hover,
  .feed-action:hover,
  .mk-community-poll-opt:hover
) {
  background: #f5efe6;
}

html:not(.mk-dark):not(.maikaja-app) body.app-feed-screen .mk2-community-main :is(
  input[type="text"],
  input[type="search"],
  textarea,
  select,
  .mk-community-composer-input,
  .mk-community-search-input
) {
  background: #faf7f2 !important;
  border-color: #dcd3c6 !important;
  color: #1e1b18 !important;
}

html:not(.mk-dark):not(.maikaja-app) body.app-feed-screen .mk2-community-main :is(
  .feed-chip,
  .feed-action,
  .mk-community-tag,
  .mk-community-stat-pill
) {
  background: #f5efe6;
  border-color: #e6dfd5;
  color: #1e1b18;
}

html:not(.mk-dark):not(.maikaja-app) body.app-feed-screen .mk2-community-main .mk2-button.mk2-tonal {
  background: #f5efe6;
  color: #1e1b18;
  border-color: #e6dfd5;
}

html:not(.mk-dark):not(.maikaja-app) body.app-feed-screen .mk2-community-main :is(.mk2-community-side, .mk2-community-rail, .mk2-community-center > :not(.feed-hero-shell):not(.mk2-community-hero)) :is(h1, h2, h3, h4, strong, b, a:not(.mk2-button):not(.kaja-btn--primary), button:not(.mk2-button):not(.kaja-btn--primary):not([aria-pressed="true"]):not(.is-active)) {
  color: #1e1b18 !important;
}

html:not(.mk-dark):not(.maikaja-app) body.app-feed-screen .mk2-community-main .mk-community-nav :is(a, button)[aria-current="page"],
html:not(.mk-dark):not(.maikaja-app) body.app-feed-screen .mk2-community-main .mk-community-nav :is(a, button).is-active {
  color: #b92900 !important;
  background: #fff2e8 !important;
  border-color: #f4cdb2 !important;
}

/* Feed recipe cards: image-overlay card, same look as the weekly challenge recipe cards */
html body .feed-recipe-card.feed-recipe-card--overlay:not(#fo-a):not(#fo-b) {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  min-height: 340px !important;
  padding: 0 !important;
  overflow: hidden !important;
  isolation: isolate;
  border-radius: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: #111a26 !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: transform .24s cubic-bezier(0.16, 1, 0.3, 1), border-color .24s ease, box-shadow .24s ease !important;
}
html body .feed-recipe-card.feed-recipe-card--overlay:not(#fo-a):not(#fo-b):hover {
  transform: translateY(-2px);
  border-color: #f97316 !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3), 0 0 22px rgba(249, 115, 22, 0.25) !important;
}
html body .feed-recipe-card.feed-recipe-card--overlay:not(#fo-a):not(#fo-b) .feed-big-image {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  border-radius: 0 !important;
  overflow: hidden;
  background: #1b2733;
}
html body .feed-recipe-card.feed-recipe-card--overlay:not(#fo-a):not(#fo-b) .feed-big-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 13, 22, 0) 0%, rgba(7, 13, 22, 0) 40%, rgba(7, 13, 22, 0.18) 48%, rgba(7, 13, 22, 0.55) 58%, rgba(7, 13, 22, 0.82) 72%, rgba(7, 13, 22, 0.94) 100%);
}
html body .feed-recipe-card.feed-recipe-card--overlay:not(#fo-a):not(#fo-b) .feed-big-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  transition: transform .35s ease;
}
html body .feed-recipe-card.feed-recipe-card--overlay:not(#fo-a):not(#fo-b):hover .feed-big-image img { transform: scale(1.05); }
html body .feed-recipe-card.feed-recipe-card--overlay:not(#fo-a):not(#fo-b) .feed-recipe-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
}
html body .feed-recipe-card.feed-recipe-card--overlay:not(#fo-a):not(#fo-b) :is(.feed-discover-badge, .feed-points-badge) {
  position: static !important;
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  padding: 4px 10px !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-size: 11.5px !important;
  font-weight: 850 !important;
  line-height: 1.3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}
html body .feed-recipe-card.feed-recipe-card--overlay:not(#fo-a):not(#fo-b) .feed-discover-badge { background: rgba(255, 255, 255, 0.94) !important; color: #0f172a !important; }
html body .feed-recipe-card.feed-recipe-card--overlay:not(#fo-a):not(#fo-b) .feed-points-badge { background: rgba(234, 179, 8, 0.96) !important; color: #0f172a !important; }
html body .feed-recipe-card.feed-recipe-card--overlay:not(#fo-a):not(#fo-b) .feed-card-body {
  position: relative !important;
  z-index: 2;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  width: 100%;
  padding: 16px !important;
  background: transparent !important;
}
html body .feed-recipe-card.feed-recipe-card--overlay:not(#fo-a):not(#fo-b) .feed-recipe-title { margin: 0 !important; }
html body .feed-recipe-card.feed-recipe-card--overlay:not(#fo-a):not(#fo-b) .feed-recipe-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #ffffff !important;
  font-size: 20px !important;
  font-weight: 850 !important;
  line-height: 1.22 !important;
  text-decoration: none !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}
html body .feed-recipe-card.feed-recipe-card--overlay:not(#fo-a):not(#fo-b) .meta {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px !important;
  margin: 0 !important;
  color: #cbd5e1 !important;
  font-size: 13px !important;
  font-weight: 650 !important;
}
html body .feed-recipe-card.feed-recipe-card--overlay:not(#fo-a):not(#fo-b) .meta span { color: inherit !important; }
html body .feed-recipe-card.feed-recipe-card--overlay:not(#fo-a):not(#fo-b) .meta i { color: #fbbf24 !important; }
html body .feed-recipe-card.feed-recipe-card--overlay:not(#fo-a):not(#fo-b) .card-tags { display: none !important; }
html body .feed-recipe-card.feed-recipe-card--overlay:not(#fo-a):not(#fo-b) .feed-social-proof {
  margin: 0 !important;
  color: #cbd5e1 !important;
  font-size: 12px !important;
  font-weight: 650;
}
html body .feed-recipe-card.feed-recipe-card--overlay:not(#fo-a):not(#fo-b) .feed-social-proof i { color: inherit !important; }
html body .feed-recipe-card.feed-recipe-card--overlay:not(#fo-a):not(#fo-b) .feed-recipe-actions {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  margin: 6px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
html body .feed-recipe-card.feed-recipe-card--overlay:not(#fo-a):not(#fo-b) .feed-recipe-actions .feed-cook-btn {
  flex: 1 1 auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px !important;
  padding: 9px 16px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #ff7a00, #ea580c) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35) !important;
  cursor: pointer;
}
html body .feed-recipe-card.feed-recipe-card--overlay:not(#fo-a):not(#fo-b) .feed-recipe-actions .feed-cook-btn :is(i, span) { color: inherit !important; }
html body .feed-recipe-card.feed-recipe-card--overlay:not(#fo-a):not(#fo-b) .feed-recipe-actions .feed-cook-btn span { font-size: 14px !important; font-weight: 850 !important; }
html body .feed-recipe-card.feed-recipe-card--overlay:not(#fo-a):not(#fo-b) .feed-recipe-actions .feed-cook-btn.is-active {
  background: linear-gradient(135deg, #22a35a, #15803d) !important;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.35) !important;
}
html body .feed-recipe-card.feed-recipe-card--overlay:not(#fo-a):not(#fo-b) .feed-recipe-actions .feed-save-btn {
  flex: none;
  display: inline-grid !important;
  place-items: center;
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}
html body .feed-recipe-card.feed-recipe-card--overlay:not(#fo-a):not(#fo-b) .feed-recipe-actions .feed-save-btn i { color: inherit !important; }
html body .feed-recipe-card.feed-recipe-card--overlay:not(#fo-a):not(#fo-b) .feed-recipe-actions .feed-save-btn.is-active { background: rgba(255, 255, 255, 0.94) !important; color: #ea580c !important; }
html body .feed-recipe-card.feed-recipe-card--overlay:not(#fo-a):not(#fo-b) .feed-recipe-actions :is(.feed-cook-btn, .feed-save-btn):focus-visible { outline: 2px solid #ffffff !important; outline-offset: 2px; }
@media (max-width: 560px) {
  html body .feed-recipe-card.feed-recipe-card--overlay:not(#fo-a):not(#fo-b) { min-height: 300px !important; }
  html body .feed-recipe-card.feed-recipe-card--overlay:not(#fo-a):not(#fo-b) .feed-recipe-title a { font-size: 17px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html body .feed-recipe-card.feed-recipe-card--overlay:not(#fo-a):not(#fo-b),
  html body .feed-recipe-card.feed-recipe-card--overlay:not(#fo-a):not(#fo-b) .feed-big-image img { transition: none !important; }
  html body .feed-recipe-card.feed-recipe-card--overlay:not(#fo-a):not(#fo-b):hover { transform: none; }
  html body .feed-recipe-card.feed-recipe-card--overlay:not(#fo-a):not(#fo-b):hover .feed-big-image img { transform: none; }
}
