*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: #333; line-height: 1.7; background: #fafaf8; }
img { max-width: 100%; height: auto; display: block; }
a { color: #669B02; text-decoration: none; }
a:hover { color: #4a7a01; }
ul { list-style: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header { background: linear-gradient(135deg, #A5C100 0%, #6D8901 100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; max-width: 1140px; margin: 0 auto; flex-wrap: wrap; gap: 15px; }
.header-logo a { display: flex; align-items: center; }
.header-logo img { height: 50px; width: auto; }
.nav { display: flex; gap: 5px; flex-wrap: wrap; }
.nav a { color: #fff; padding: 8px 16px; border-radius: 8px; font-size: .95rem; font-weight: 600; transition: background .2s; }
.nav a:hover, .nav a.active { background: rgba(255,255,255,.2); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; margin-left: auto; z-index: 1001; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero { background: linear-gradient(135deg, #EAFFC4 0%, #d4f5a0 100%); padding: 60px 0; text-align: center; }
.hero h1 { font-size: 2.4rem; color: #4a6a00; margin-bottom: 15px; }
.hero p { font-size: 1.15rem; color: #555; max-width: 700px; margin: 0 auto; }

/* Diet Card Grid */
.diet-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin: 30px 0; }
.diet-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.06); transition: transform .2s, box-shadow .2s; }
.diet-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.diet-card a { color: inherit; display: block; }
.diet-card img { width: 100%; height: 180px; object-fit: cover; }
.diet-card-body { padding: 18px; }
.diet-card-body h3 { font-size: 1.1rem; margin-bottom: 8px; color: #333; }
.diet-card-body p { font-size: .9rem; color: #666; line-height: 1.5; }
.diet-category { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: .78rem; font-weight: 600; margin-bottom: 8px; }
.cat-fruit { background: #fff3e0; color: #e65100; }
.cat-vegetable { background: #e8f5e9; color: #2e7d32; }
.cat-protein { background: #fce4ec; color: #c62828; }
.cat-grain { background: #fff8e1; color: #f57f17; }
.cat-dairy { background: #e3f2fd; color: #1565c0; }

/* Content Layout */
.row { display: flex; flex-wrap: wrap; gap: 30px; }
.col-main { flex: 1 1 65%; min-width: 0; }
.col-side { flex: 1 1 30%; min-width: 280px; }
.content-area { padding: 40px 0; }
.section-padded { padding: 40px 0; }

/* Page Header */
.page-header { margin-bottom: 25px; }
.page-header h1 { font-size: 2rem; color: #4a6a00; margin-bottom: 8px; }
.page-header p { color: #666; font-size: 1.05rem; }

/* Featured Image */
.featured-img { border-radius: 14px; margin-bottom: 25px; max-height: 400px; width: 100%; object-fit: cover; }


/* About Image */
.about-image { float: left; margin: 0 24px 16px 0; max-width: 280px; border-radius: 14px; }
@media (max-width: 600px) { .about-image { float: none; max-width: 100%; margin: 0 0 16px 0; } }
/* Breadcrumbs */
.breadcrumbs { font-size: .85rem; color: #999; margin-bottom: 16px; }
.breadcrumbs a { color: #669B02; }
.breadcrumbs span { color: #999; }

/* Content Typography */
.content-area h2 { font-size: 1.5rem; color: #4a6a00; margin: 30px 0 12px; }
.content-area h3 { font-size: 1.2rem; color: #4a6a00; margin: 25px 0 10px; }
.content-area p { margin-bottom: 16px; color: #444; }
.content-area ul, .content-area ol { margin: 0 0 16px 20px; }
.content-area li { margin-bottom: 6px; color: #444; }
.section-subtitle { color: #666; font-size: 1.05rem; margin-bottom: 0; }

/* Sidebar */
.sidebar { position: sticky; top: 20px; }
.sidebar-section { background: #fff; border-radius: 14px; padding: 22px; margin-bottom: 24px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.sidebar-section h4 { font-size: 1.05rem; color: #4a6a00; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid #EAFFC4; }
.sidebar-list li { margin-bottom: 6px; }
.sidebar-list a { display: block; padding: 6px 10px; border-radius: 6px; font-size: .9rem; transition: background .2s; }
.sidebar-list a:hover { background: #EAFFC4; }

/* Disclaimer */
.disclaimer { background: #fef9e7; border-left: 4px solid #f0c040; padding: 12px 16px; border-radius: 0 8px 8px 0; font-size: .85rem; color: #777; margin: 24px 0; }

/* Recommended */
.rec-list { margin: 24px 0; }
.rec-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid #eee; }
.rec-item:last-child { border-bottom: none; }
.rec-item img { width: 80px; height: 80px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.rec-item h4 { font-size: .95rem; margin-bottom: 4px; }
.rec-item h4 a { color: #333; }
.rec-item h4 a:hover { color: #669B02; }
.rec-item p { font-size: .82rem; color: #777; line-height: 1.4; margin: 0; }

/* Footer */
.footer { background: #2d3a00; padding: 30px 0; text-align: center; margin-top: 50px; }
.footer p { margin: 5px 0; font-size: .85rem; color: #999; }
.footer a { color: #A5C100; }

/* Calculator */
.calculator { background: #fff; border-radius: 14px; padding: 30px; box-shadow: 0 2px 10px rgba(0,0,0,.06); max-width: 500px; margin: 20px 0 0 0; }
.calculator label { display: block; font-weight: 600; color: #4a6a00; margin: 16px 0 6px; font-size: .95rem; }
.calculator input, .calculator select { width: 100%; padding: 10px 14px; border: 2px solid #e0e0e0; border-radius: 8px; font-size: 1rem; }
.calculator input:focus, .calculator select:focus { outline: none; border-color: #A5C100; }
.calc-btn { background: #A5C100; color: #fff; border: none; padding: 12px 24px; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; margin-top: 20px; width: 100%; }
.calc-btn:hover { background: #6D8901; }
.calc-result { background: #EAFFC4; border-radius: 10px; padding: 16px; text-align: center; margin-top: 20px; display: none; }
.calc-result.show { display: block; }
.calc-result .value { font-size: 2rem; font-weight: 700; color: #4a6a00; }
.calc-result .label { font-size: .9rem; color: #666; }

@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .col-main, .col-side { flex: 1 1 100%; }
  .diet-card-grid { grid-template-columns: 1fr; }
  .header { position: relative; }
  .header-inner { flex-wrap: nowrap; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #6D8901; flex-direction: column; gap: 2px; padding: 10px 20px 20px; box-shadow: 0 10px 20px rgba(0,0,0,.2); }
  .nav ul { flex-direction: column; gap: 2px; width: 100%; }
  .nav li { width: 100%; }
  .nav a { display: block; padding: 12px 16px; border-radius: 8px; }
  .nav.open { display: flex; }
}


/* Cookie Consent */
#cookie-consent { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(45,58,0,.97); color: #e0e0c0; z-index: 9999; padding: 16px 20px; font-size: .85rem; line-height: 1.5; }
.cookie-inner { max-width: 1140px; margin: 0 auto; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; }
.cookie-text { flex: 1 1 500px; }
.cookie-text p { margin: 0 0 4px 0; color: #e0e0c0; }
.cookie-text .cookie-small { font-size: .75rem; color: #a0a080; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn { border: none; padding: 10px 20px; border-radius: 8px; font-size: .85rem; font-weight: 600; cursor: pointer; transition: background .2s; }
.cookie-btn-accept { background: #A5C100; color: #fff; }
.cookie-btn-accept:hover { background: #6D8901; }
.cookie-btn-essential { background: transparent; color: #ccc; border: 1px solid #666; }
.cookie-btn-essential:hover { background: rgba(255,255,255,.1); }
@media (max-width: 768px) {
  .cookie-inner { flex-direction: column; text-align: center; }
  #cookie-consent { padding: 12px 16px; }
  .cookie-text .cookie-small { display: none; }
  .cookie-text { flex: 0 0 auto; font-size: .8rem; }
  .cookie-actions { width: 100%; flex-direction: row; flex: 0 0 auto; }
  .cookie-btn { flex: 1; padding: 12px 10px; }
}
@media print {
  .header, .footer, .sidebar, .nav, .rec-list { display: none; }
  .col-main { flex: 1 1 100%; }
}
/* DLMenu nav */
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.nav li { margin: 0; padding: 0; }

/* Meal plan tables (7/14 day menus) */
.menu-table { width: 100%; border-collapse: collapse; margin: 24px 0; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.menu-table th, .menu-table td { border: 1px solid #e8e8e0; padding: 10px 14px; text-align: left; font-size: .9rem; vertical-align: top; }
.menu-table th { background: #EAFFC4; color: #4a6a00; font-weight: 600; }
.menu-table td:first-child { font-weight: 600; color: #4a6a00; white-space: nowrap; }
.menu-table tr:nth-child(even) { background: #fafaf5; }
@media (max-width: 600px) {
  .menu-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* Related blocks (meal plans / recipes on diet pages) */
.related-block { background: #fff; border-radius: 12px; padding: 20px 22px; margin: 26px 0; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.related-block h3 { color: #4a6a00; font-size: 1.1rem; margin-bottom: 12px; border-bottom: 2px solid #EAFFC4; padding-bottom: 8px; }
.related-list { margin: 0; padding: 0; }
.related-list li { margin-bottom: 8px; }
.related-list a { font-weight: 600; }

/* Recipe meta badges */
.recipe-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.meta-badge { background: #EAFFC4; color: #4a6a00; border-radius: 20px; padding: 6px 14px; font-size: .85rem; font-weight: 600; }

/* Share button */
.share-wrapper { margin: 18px 0 6px; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #4a6a00; border: 2px solid #A5C100; border-radius: 30px; padding: 10px 22px; font-size: .95rem; font-weight: 600; cursor: pointer; transition: all .2s; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.share-btn:hover { background: #A5C100; color: #fff; transform: translateY(-1px); }
.share-btn svg { width: 18px; height: 18px; fill: currentColor; }
.share-btn.copied { background: #2e7d32; border-color: #2e7d32; color: #fff; }


/* Recipe content lists (ingredients + instructions) aligned with body text */
.col-main ol {
    margin: 0 0 16px 0;
    padding-left: 16px;
}


