/* Calorie Calculator Tool — shared stylesheet for the content pages.
   index.html keeps its own inline styles (it carries the calculator UI);
   this file gives every other page one consistent nav, footer and layout. */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container { max-width: 1000px; margin: 0 auto; padding: 20px; }

header { text-align: center; color: white; padding: 50px 20px 35px; }
header h1 { font-size: 2.6em; margin-bottom: 12px; text-shadow: 2px 2px 4px rgba(0,0,0,0.2); }
header h1 a { color: inherit; text-decoration: none; }
header p { font-size: 1.15em; opacity: 0.9; max-width: 620px; margin: 0 auto; }

/* ---- sitewide navigation ---- */
.nav-links { display: flex; justify-content: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.nav-links a {
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    transition: all 0.3s;
    font-size: 0.93em;
}
.nav-links a:hover { background: rgba(255,255,255,0.2); border-color: white; }
.nav-links a.here { background: rgba(255,255,255,0.22); border-color: white; font-weight: 600; }

/* ---- page furniture ---- */
.tool-box {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    margin-bottom: 30px;
}
.content-section h2 {
    color: #333;
    font-size: 1.75em;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
}
.content-section h3 { color: #667eea; font-size: 1.25em; margin: 24px 0 12px; }
.content-section p { color: #555; margin-bottom: 15px; line-height: 1.8; }
.content-section ul, .content-section ol { margin: 15px 0 15px 28px; color: #555; }
.content-section li { margin-bottom: 9px; line-height: 1.6; }

.formula-box {
    background: #f0f7ff;
    border-left: 4px solid #667eea;
    border-radius: 0 10px 10px 0;
    padding: 18px 20px;
    margin: 20px 0;
}
.formula-box h3 { margin-top: 0; }
.formula-box p { margin-bottom: 8px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.93em; }

.faq-item { margin: 18px 0; padding: 18px; background: #f8f9fa; border-radius: 10px; }
.faq-item h4 { color: #667eea; margin-bottom: 9px; font-size: 1.08em; }
.faq-item p { color: #555; line-height: 1.7; }

.tip-box {
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    border: 2px solid #667eea;
    border-radius: 10px;
    padding: 18px 20px;
    margin: 22px 0;
}
.tip-box h4 { color: #667eea; margin-bottom: 9px; }

.data-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.data-table th { background: #667eea; color: white; padding: 12px; text-align: left; }
.data-table td { padding: 10px 12px; border-bottom: 1px solid #ddd; vertical-align: top; }
.data-table tr:nth-child(even) { background: #f8f9fa; }
.table-scroll { overflow-x: auto; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }
.org-card { background: #f8f9fa; border-radius: 8px; padding: 16px 18px; }
.org-card h4 { margin-bottom: 8px; font-size: 1em; }
.org-card.asmbs h4 { color: #667eea; }
.org-card.and h4 { color: #28a745; }
.org-card ul { margin: 0 0 0 18px; font-size: 0.93em; line-height: 1.65; color: #555; }

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 30px;
    font-size: 17px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(102,126,234,0.4); }

/* ---- review-status banner ---- */
.review-banner {
    max-width: 1000px;
    margin: 0 auto 24px;
    border-radius: 12px;
    padding: 13px 18px;
    font-size: 0.92em;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 11px;
}
.review-banner .rb-icon { font-size: 1.15em; line-height: 1.35; flex: 0 0 auto; }
.review-banner strong { display: block; margin-bottom: 2px; }
.review-banner a { font-weight: 600; text-decoration: underline; }
.review-banner.unreviewed { background: #fff8e6; border: 2px solid #e8b93b; color: #6a5312; }
.review-banner.unreviewed strong, .review-banner.unreviewed a { color: #8a6a12; }
.review-banner.reviewed { background: #eaf6f0; border: 2px solid #2e9e6b; color: #1c5b3f; }
.review-banner.reviewed strong, .review-banner.reviewed a { color: #1c5b3f; }
@media (max-width: 600px) { .review-banner { margin: 0 14px 20px; font-size: 0.87em; } }

/* ---- transparency blocks ---- */
.byline {
    background: #f4f5fb;
    border-left: 4px solid #667eea;
    border-radius: 0 10px 10px 0;
    padding: 16px 20px;
    margin: 0 0 26px;
    font-size: 0.92em;
    color: #555;
}
.byline p { margin: 0 0 6px; line-height: 1.6; }
.byline p:last-child { margin-bottom: 0; }
.byline a { color: #667eea; font-weight: 600; }

.med-disclaimer {
    background: #fff8e6;
    border: 2px solid #e8b93b;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 26px 0;
    font-size: 0.93em;
    color: #6a5312;
}
.med-disclaimer strong { color: #8a6a12; }

.sources { font-size: 0.92em; color: #666; }
.sources h3 { color: #667eea; font-size: 1.12em; margin: 24px 0 12px; }
.sources ul { margin-left: 22px; }
.sources a { color: #667eea; }

/* ---- footer ---- */
footer { padding: 40px 20px; color: white; opacity: 0.92; }
footer .container { text-align: center; }
footer a { color: white; text-decoration: none; margin: 0 12px; }
footer a:hover { text-decoration: underline; }
footer .legal {
    margin-top: 18px;
    font-size: 0.85em;
    opacity: 0.85;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

@media (max-width: 600px) {
    header h1 { font-size: 1.9em; }
    header { padding: 36px 15px 26px; }
    .nav-links { gap: 9px; }
    .nav-links a { padding: 8px 14px; font-size: 0.86em; }
    .tool-box { padding: 22px 18px; }
}
