/* Meal Match — blog / article styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --green:#16a34a; --green-dark:#15803d; --green-light:#dcfce7;
    --bg:#f9fafb; --surface:#fff; --text:#111827; --muted:#6b7280; --border:#e5e7eb;
}
html { scroll-behavior:smooth; }
body { font-family:'Inter',sans-serif; background:var(--bg); color:var(--text); line-height:1.7; -webkit-font-smoothing:antialiased; }
img { max-width:100%; height:auto; }

/* nav */
nav { position:sticky; top:0; z-index:100; background:rgba(255,255,255,.92); backdrop-filter:blur(10px); border-bottom:1px solid var(--border); padding:0 5%; display:flex; align-items:center; justify-content:space-between; height:64px; }
.nav-brand { display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--text); }
.nav-brand img { width:34px; height:34px; border-radius:8px; }
.nav-brand span { font-weight:800; font-size:1.15rem; color:var(--green); }
.nav-cta { background:var(--green); color:#fff; padding:9px 18px; border-radius:8px; font-weight:700; font-size:.9rem; text-decoration:none; }
.nav-cta:hover { background:var(--green-dark); }

/* article shell */
.article { max-width:760px; margin:0 auto; padding:48px 24px 80px; }
.crumbs { font-size:.85rem; color:var(--muted); margin-bottom:20px; }
.crumbs a { color:var(--green-dark); text-decoration:none; }
.article h1 { font-size:clamp(1.9rem,4.5vw,2.7rem); font-weight:800; line-height:1.2; margin-bottom:14px; }
.meta { color:var(--muted); font-size:.92rem; margin-bottom:28px; padding-bottom:24px; border-bottom:1px solid var(--border); }
.lede { font-size:1.18rem; color:#374151; margin-bottom:28px; }
.article h2 { font-size:1.55rem; font-weight:800; margin:40px 0 14px; }
.article h3 { font-size:1.2rem; font-weight:700; margin:28px 0 10px; }
.article p { margin-bottom:18px; }
.article ul, .article ol { margin:0 0 18px 22px; }
.article li { margin-bottom:8px; }
.article strong { font-weight:700; }
.article a { color:var(--green-dark); }

/* tables */
.table-wrap { overflow-x:auto; margin:20px 0 28px; }
table { width:100%; border-collapse:collapse; font-size:.95rem; background:var(--surface); border:1px solid var(--border); border-radius:12px; overflow:hidden; }
th, td { padding:11px 14px; text-align:left; border-bottom:1px solid var(--border); }
th { background:#f3f4f6; font-weight:700; }
tr:last-child td { border-bottom:none; }
td.num, th.num { text-align:right; white-space:nowrap; }
tfoot td { font-weight:800; background:var(--green-light); }

/* callout / CTA */
.cta-box { background:linear-gradient(135deg,#16a34a,#15803d); color:#fff; border-radius:16px; padding:32px; margin:36px 0; text-align:center; }
.cta-box h3 { color:#fff; font-size:1.35rem; margin-bottom:8px; }
.cta-box p { color:rgba(255,255,255,.92); margin-bottom:20px; }
.cta-box a { display:inline-block; background:#fff; color:var(--green-dark); padding:13px 28px; border-radius:10px; font-weight:800; text-decoration:none; }
.cta-box a:hover { transform:translateY(-1px); }
.note { background:#f0fdf4; border:1px solid var(--green-light); border-radius:12px; padding:16px 18px; margin:24px 0; font-size:.95rem; color:#15803d; }

/* faq */
.faq h2 { margin-top:48px; }
details { border:1px solid var(--border); border-radius:10px; padding:14px 18px; margin-bottom:10px; background:var(--surface); }
summary { font-weight:700; cursor:pointer; }
details p { margin:12px 0 0; color:var(--muted); }

/* related */
.related { margin-top:48px; padding-top:28px; border-top:1px solid var(--border); }
.related a { display:block; font-weight:700; color:var(--green-dark); text-decoration:none; margin-top:8px; }

/* footer */
footer { background:#fff; border-top:1px solid var(--border); padding:32px 5%; text-align:center; color:var(--muted); font-size:.88rem; }
footer a { color:var(--green-dark); text-decoration:none; }

/* blog index */
.blog-head { max-width:760px; margin:0 auto; padding:56px 24px 20px; }
.blog-head h1 { font-size:clamp(2rem,5vw,2.8rem); font-weight:800; margin-bottom:10px; }
.blog-head p { color:var(--muted); font-size:1.1rem; }
.post-list { max-width:760px; margin:0 auto; padding:8px 24px 80px; }
.post-card { display:block; background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:26px; margin-bottom:18px; text-decoration:none; color:inherit; transition:transform .15s, box-shadow .15s; }
.post-card:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(0,0,0,.06); }
.post-card .tag { display:inline-block; background:var(--green-light); color:var(--green-dark); font-size:.75rem; font-weight:700; padding:4px 10px; border-radius:999px; margin-bottom:12px; }
.post-card h2 { font-size:1.35rem; font-weight:800; margin-bottom:8px; }
.post-card p { color:var(--muted); }
