* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color : transparent;
}

body {
  background: linear-gradient(135deg, #f9fafb 0%, #eff6ff 100%);
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;  overflow-x: hidden;
}

body.mc-locked { overflow: hidden; }

/* Overlay */
#mc-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26,26,24,0.65);
  z-index: 200000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
#mc-overlay.mc-hidden { display: none; }

/* Banner card */
#mc-banner {
  background: #ffffff;
  border: 1px solid #c8c2b8;
  border-radius: 0.85rem;
  box-shadow: 0 24px 64px rgba(26,26,24,0.20), 0 4px 16px rgba(26,26,24,0.10);
  width: 100%;
  max-width: 820px;
  max-height: 82vh;
  overflow-y: auto;
  overflow-x: hidden;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
}
#mc-banner::-webkit-scrollbar { width: 4px; }
#mc-banner::-webkit-scrollbar-track { background: transparent; }
#mc-banner::-webkit-scrollbar-thumb { background: #c8c2b8; border-radius: 2px; }

/* Top bar */
#mc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem 0.9rem;
  border-bottom: 1px solid #c8c2b8;
  gap: 1rem;
}
#mc-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
#mc-heading svg { color: #1d4ed8; flex-shrink: 0; }
#mc-heading h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: #1a1a18;
  margin: 0;
}

/* Language switcher */
#mc-lang-wrap {
  display: flex;
  align-items: center;
  background: #e8e2d8;
  border: 1px solid #c8c2b8;
  border-radius: 2rem;
  padding: 0.2rem;
  gap: 0.2rem;
  flex-shrink: 0;
}
.mc-lang-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  border-radius: 2rem;
  border: none;
  background: transparent;
  color: #3a3530;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.mc-lang-btn.mc-active {
  background: #ffffff;
  color: #1a1a18;
  box-shadow: 0 1px 4px rgba(26,26,24,0.12);
}
.mc-lang-btn:focus-visible { outline: 2px solid rgba(29,78,216,0.6); outline-offset: 1px; }

/* Intro paragraph */
#mc-intro {
  padding: 1rem 1.5rem;
  font-size: 0.845rem;
  line-height: 1.7;
  color: #2e2a26;
  margin: 0;
}
#mc-intro a { color: #1d4ed8; font-weight: 500; text-underline-offset: 2px; }
#mc-intro a:focus-visible { outline: 2px solid rgba(29,78,216,0.6); outline-offset: 2px; border-radius: 2px; }

.mc-rule { height: 1px; background: #c8c2b8; margin: 0 1.5rem; }

/* Category list */
#mc-cats {
  padding: 0.85rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mc-cat {
  border: 1px solid #c8c2b8;
  border-radius: 0.65rem;
  overflow: hidden;
  transition: border-color 0.18s;
}
.mc-cat:focus-within { border-color: #1d4ed8; }
.mc-cat.mc-open { border-color: #1d4ed8; }

.mc-cat-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: 'Source Sans 3', sans-serif;
  cursor: pointer;
}
.mc-cat-btn:focus-visible { outline: 2px solid #1d4ed8; outline-offset: -2px; border-radius: 0.55rem; }

.mc-dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.mc-cat-label {
  flex: 1;
  font-size: 0.845rem;
  font-weight: 600;
  color: #1a1a18;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.mc-always-on {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: #1d4ed8;
  border: 1px solid rgba(29,78,216,0.25);
  padding: 0.15rem 0.5rem;
  border-radius: 2rem;
  font-weight: 600;
}

/* Toggle switch */
.mc-tog-wrap { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.mc-tog-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  min-width: 1.8rem;
  text-align: right;
  color: #4a4540;
}
.mc-tog-lbl.mc-on { color: #1d4ed8; }

.mc-tog { position: relative; width: 2.2rem; height: 1.25rem; flex-shrink: 0; }
.mc-tog input { position: absolute; opacity: 0; width: 0; height: 0; }
.mc-tog-track {
  position: absolute; inset: 0;
  border-radius: 2rem;
  background: #8a8480;
  cursor: pointer;
  transition: background 0.2s;
}
.mc-tog-track::after {
  content: '';
  position: absolute;
  top: 0.155rem; left: 0.155rem;
  width: 0.94rem; height: 0.94rem;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.22);
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.mc-tog input:checked ~ .mc-tog-track { background: #1d4ed8; }
.mc-tog input:checked ~ .mc-tog-track::after { transform: translateX(0.95rem); }
.mc-tog input:disabled ~ .mc-tog-track { opacity: 0.45; cursor: default; }
.mc-tog input:focus-visible ~ .mc-tog-track { box-shadow: 0 0 0 3px rgba(29,78,216,0.4); }

/* Chevron */
.mc-chev { width: 1rem; height: 1rem; color: #4a4540; flex-shrink: 0; transition: transform 0.2s; }
.mc-cat.mc-open .mc-chev { transform: rotate(180deg); }

/* Expanded body */
.mc-cat-body { display: none; border-top: 1px solid #c8c2b8; background: #fdfcfb; }
.mc-cat.mc-open .mc-cat-body { display: block; }

.mc-cat-desc {
  padding: 0.8rem 1rem 0.65rem;
  font-size: 0.8rem;
  line-height: 1.65;
  color: #3a3530;
  margin: 0;
}

/* Cookie table */
.mc-tbl-wrap { overflow-x: auto; padding: 0 1rem 1rem; }
table.mc-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.755rem;
  min-width: 460px;
}
.mc-tbl thead tr { background: #e8e2d8; }
.mc-tbl th {
  padding: 0.38rem 0.6rem;
  text-align: left;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #2e2a26;
  white-space: nowrap;
}
.mc-tbl th:first-child { border-radius: 0.35rem 0 0 0.35rem; }
.mc-tbl th:last-child  { border-radius: 0 0.35rem 0.35rem 0; }
.mc-tbl td {
  padding: 0.48rem 0.6rem;
  border-bottom: 1px solid #ddd8ce;
  vertical-align: top;
  line-height: 1.45;
  color: #2e2a26;
}
.mc-tbl tr:last-child td { border-bottom: none; }
.mc-tbl td:first-child {
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: #1a1a18;
  white-space: nowrap;
}
.mc-tbl td small { color: #3a3530; }

.mc-exp {
  display: inline-block;
  font-size: 0.62rem;
  background: #e8e2d8;
  border: 1px solid #c8c2b8;
  color: #2e2a26;
  padding: 0.1rem 0.4rem;
  border-radius: 2rem;
  white-space: nowrap;
}

/* Action buttons */
#mc-actions {
  padding: 0.9rem 1.5rem 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}
.mc-btn {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.58rem 1.15rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: opacity 0.15s, transform 0.1s;
}
.mc-btn:active { transform: scale(0.97); }
.mc-btn:focus-visible { outline: 2px solid rgba(29,78,216,0.6); outline-offset: 2px; }

.mc-btn-accept {
  background: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(29,78,216,0.28);
}
.mc-btn-accept:hover { background: #1a45c4; }

.mc-btn-save { background: #1a1a18; color: #ffffff; }
.mc-btn-save:hover { background: #2e2a26; }

.mc-btn-reject {
  background: transparent;
  color: #2e2a26;
  border: 1px solid #8a8480;
}
.mc-btn-reject:hover { background: #e8e2d8; color: #1a1a18; }

/* Toast */
#mc-toast {
  position: fixed;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #1a1a18;
  color: #ffffff;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem;
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}
#mc-toast.mc-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Responsive */
@media (max-width: 560px) {
  #mc-overlay { padding: 0; align-items: center; }
  #mc-banner  { border-radius: 0.85rem; max-height: 90vh; margin: 0 5px; }
  #mc-topbar, #mc-intro, #mc-cats, #mc-actions { padding-left: 1rem; padding-right: 1rem; }
  .mc-rule { margin: 0 1rem; }
  #mc-actions { flex-direction: column; align-items: stretch; }
  .mc-btn { text-align: center; }
}

.top-navbar {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
  height: 120px;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 2000;
}

.navbar-container {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: space-between;
  max-width: 100%;
  padding: 0 2rem;
}

.navbar-logo {
  align-items: center;
  display: flex;
  gap: 1rem;margin-top: -12px;
}

.logo-image {
  height: 80px;
  width: 150px;
}

.hamburger {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 24px;
  justify-content: space-between;
  padding: 0;
  transition: transform .3s ease;
  width: 30px;
  z-index: 2001;
}

.hamburger:hover {
  transform: scale(1.1);
}

.hamburger span {
  background: #1f2937;
  border-radius: 3px;
  display: block;
  height: 3px;
  transform-origin: center;
  transition: all .3s ease;
  width: 100%;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

.sidebar {
  background: white;
  border-right: 1px solid #e5e7eb;
  box-shadow: 2px 0 16px rgba(0, 0, 0, .1);
  height: 100vh;
  left: -320px;
  overflow-y: auto;
  padding-top: 120px;
  position: fixed;
  top: 0;
  transition: left .3s ease;
  width: 320px;
  z-index: 1999;
}

.sidebar.open {
  left: 0;
}

.sidebar-overlay {
  background: rgba(0, 0, 0, .5);
  bottom: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: 0;
  transition: opacity .3s ease;
  z-index: 1998;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.main-nav {
  border-bottom: 2px solid #e5e7eb;
  padding: 1.5rem 1rem;
}

.main-nav-title {
  color: #6b7280;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 1rem;
  padding: 0 .75rem;
  text-transform: uppercase;
}

.main-nav-link {
  border-radius: 8px;
  color: #1f2937;
  display: block;
  font-weight: 500;
  margin-bottom: .25rem;
  padding: .875rem .75rem;
  text-decoration: none;
  transition: all .2s;
}

.main-nav-link:hover {
  background: #eff6ff;
  color: #2563eb;
}

.main-nav-link.active {
  background: #2563eb;
  color: white;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: #ccc; }
.sidebar::-webkit-scrollbar-thumb { background: #2563eb; border-radius: 4px; }

.recipe-nav {
  padding: 1.5rem 1rem;
}

.recipe-nav-title {
  color: #6b7280;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 1rem;
  padding: 0 .75rem;
  text-transform: uppercase;
}

.accordion-category {
  margin-bottom: .5rem;
}

.accordion-header {
  align-items: center;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #1f2937;
  cursor: pointer;
  display: flex;
  font-weight: 500;
  justify-content: space-between;
  padding: .875rem .75rem;
  transition: all .2s;
}

.accordion-header:hover {
  background: #eff6ff;
  border-color: #3b82f6;
}

.accordion-header.active {
  background: #2563eb;
  border-color: #2563eb;
  color: white;
}

.accordion-icon {
  font-size: 1.25rem;
  transition: transform .3s;
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.accordion-content.open {
  max-height: 2000px;
}

.recipe-link {
  border-left: 2px solid transparent;
  color: #1f2937;
  display: block;
  font-size: .9rem;
  margin: .25rem 0;
  padding: .75rem .75rem .75rem 2rem;
  text-decoration: none;
  transition: all .2s;
}

.recipe-link:hover {
  background: #f9fafb;
  border-left-color: #2563eb;
  color: #2563eb;
}

.recipe-link.active {
  background: #eff6ff;
  border-left-color: #2563eb;
  color: #2563eb;
  font-weight: 500;
}

.recipe-number {
  color: #6b7280;
  display: block;
  font-size: .75rem;
  margin-top: .125rem;
}

.main-content {
  margin-top: 120px;
  min-height: calc(100vh - 120px);
  padding: 3rem 0;
}

  .top-search-outer {
    position: relative;
  }

  .top-search-inner {
  position: fixed;
  right: 100px;
  top: 60px;
  transform: translateY(-50%);
  z-index: 100000;
  }
      .nd {
      margin-top: 1px;
    }
  @media (max-width: 450px) {
    .top-search-inner {
      right: 70px;
    }
  }

  @media (max-width: 374px) {
    .top-search-inner {
      right: 70px;
    }

    .nd {
      display: none;
    }
  }

  @media (max-width: 340px) {
    .top-search-inner {
      right: 60px;
    }
  }

  .nav-search-btn {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #000;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    font-weight: 500;
    gap: 6px;
    padding: 8px 14px;
  }

  .nav-search-btn:hover {
    background-color: #f5f5f5;
  }

  .nav-search-btn:active {
    background-color: #eee;
  }

  a.navbar-search {
    text-decoration: none;
  }

.cta-button {
  background: linear-gradient(135deg, #3498db, #3498db);
  border: none;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(52,152,219, .3);
  color: white;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  padding: 12px 24px;
  transition: all .25s ease;
}

.cta-button:hover {
  box-shadow: 0 12px 28px rgba(52,152,219, .4);
  transform: translateY(-2px);
}

.footer {
  background: white;
  border-top: 1px solid #e5e7eb;
  margin: 0;
  padding: 3rem 0 0 0;
  width: 100%;
}

.footer-container {
  margin: 0 auto;
  max-width: 100%;
  padding: 0 3rem;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: #1f2937;
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.footer-section p {
  color: #6b7280;
  font-size: .875rem;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: .5rem;
}

.footer-links a {
  color: #6b7280;
  font-size: .875rem;
  text-decoration: none;
  transition: color .3s;
}

.footer-links a:hover {
  color: #2563eb;
}

.footer-bottom {
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: .875rem;
  margin: 0;
  padding: 2rem 0;
  text-align: center;
}

@media (max-width: 768px) {
  .navbar-container {
    padding: 0 1.5rem;
  }

  .logo-image {
    height: 80px;
    width: auto;
  }

  .main-content {
    padding: 1.5rem;
  }

  .footer-container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 605px) {
  .footer-grid {
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
}

@media (max-width: 536px) {
  .footer-grid {
    gap: 2rem;
    grid-template-columns: 1fr;
  }
}
