@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display&display=swap');

:root {
    --green-dark:  #1a3a2a;
    --green-mid:   #2d6a4f;
    --green-light: #52b788;
    --green-pale:  #d8f3dc;
    --bg:          #6b7c6e;
    --card:        #ffffff;
    --card-alt:    #f2f7f4;
    --text:        #1c2b22;
    --text-muted:  #4a5e52;
    --border:      #c5d9cc;
    --row-hover:   #c7ead2;
    --accent:      #e07b39;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg);
    min-height: 100vh;
    color: var(--text);
}

#container {
    width: 1100px;
    margin: 0 auto;
    background-color: #e8f0eb;
    padding: 30px;
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.25);
}

header h1 {
    font-family: 'DM Serif Display', serif;
    background-color: var(--green-dark);
    padding: 18px 24px;
    border-radius: 8px;
    font-size: 26pt;
    text-align: center;
    color: white;
    letter-spacing: 0.01em;
}

.navigation {
    background-color: var(--green-mid);
    border-radius: 8px;
    margin-top: 14px;
    margin-bottom: 28px;
    padding: 10px 0;
}

nav {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
}

nav a {
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    font-weight: 600;
    font-size: 13pt;
    padding: 7px 18px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

nav a:hover,
nav a.active {
    background: rgba(255,255,255,0.16);
    color: white;
}

.line {
    width: 100%;
    height: 2px;
    background-color: var(--green-light);
    margin-bottom: 14px;
}

.section_title {
    font-family: 'DM Serif Display', serif;
    color: var(--green-dark);
    font-size: 16pt;
    margin-bottom: 10px;
}

.hero {
    background-color: var(--green-dark);
    border-radius: 8px;
    padding: 32px 28px;
    color: white;
}

.hero h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 19pt;
    margin-bottom: 12px;
    color: var(--green-pale);
}

.hero p {
    font-size: 11.5pt;
    line-height: 1.75;
    color: rgba(255,255,255,0.87);
    max-width: 820px;
}

.assumptions {
    background: var(--card);
    border-radius: 8px;
    padding: 20px 24px;
    margin-top: 20px;
    border: 1px solid var(--border);
}

.assumptions h2 {
    font-family: 'DM Serif Display', serif;
    color: var(--green-dark);
    font-size: 15pt;
    margin-bottom: 10px;
}

.assumptions ul {
    list-style: none;
    padding: 0;
}

.assumptions ul li {
    padding: 8px 0 8px 20px;
    position: relative;
    font-size: 11pt;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    line-height: 1.65;
}

.assumptions ul li:last-child { border-bottom: none; }

.assumptions ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--green-mid);
    font-weight: 700;
}

.dataset {
    background: var(--card);
    padding: 20px 24px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid var(--border);
}

.table_wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-top: 16px;
    margin-bottom: 8px;
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 10.5pt;
}

th, td {
    border: 1px solid var(--border);
    padding: 9px 10px;
    text-align: center;
}

th {
    background-color: var(--green-mid);
    color: white;
    font-weight: 600;
    position: relative;
    cursor: pointer;
    user-select: none;
}

td { background: #f9fbf9; }
td:nth-child(odd) { background: #f0f6f2; }

.food_name {
    text-align: left;
    font-weight: 600;
    color: var(--green-dark);
    cursor: pointer;
}

tbody tr:hover td { background: var(--row-hover) !important; }

th.tip { position: relative; }

.tip_definition {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--green-dark);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 10pt;
    font-weight: 400;
    width: 190px;
    z-index: 200;
    line-height: 1.4;
}

.message_box {
    background: var(--card);
    padding: 16px 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--green-light);
}

.message_title {
    font-family: 'DM Serif Display', serif;
    color: var(--green-dark);
    font-size: 14pt;
    margin-bottom: 8px;
}

#message {
    font-size: 11pt;
    color: var(--text-muted);
    line-height: 1.6;
}

.viz_section {
    background: var(--card);
    padding: 20px 24px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid var(--border);
}

.viz_section p {
    font-size: 11pt;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 14px;
}

.viz_image_box {
    text-align: center;
    margin-top: 12px;
}

.viz_img {
    max-width: 100%;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.caption {
    font-size: 10pt;
    color: var(--text-muted);
    margin-top: 8px;
    font-style: italic;
}

.interactive_ideas {
    background: var(--card-alt);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 16px 20px;
    margin-top: 16px;
}

.interactive_ideas h4 {
    color: var(--green-dark);
    font-size: 11pt;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.interactive_ideas ul {
    list-style: none;
    padding: 0;
}

.interactive_ideas ul li {
    font-size: 10.5pt;
    color: var(--text);
    padding: 6px 0 6px 22px;
    position: relative;
    line-height: 1.55;
    border-bottom: 1px solid var(--border);
}

.interactive_ideas ul li:last-child { border-bottom: none; }

.interactive_ideas ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--green-mid);
    font-weight: 700;
}

.resources_intro {
    background: var(--card);
    padding: 20px 24px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 11pt;
    color: var(--text-muted);
    line-height: 1.7;
}

.resource_category {
    background: var(--card);
    padding: 20px 24px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid var(--border);
}

.resource_category h2 {
    font-family: 'DM Serif Display', serif;
    color: var(--green-dark);
    font-size: 15pt;
    margin-bottom: 10px;
}

.resource_item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.resource_item:last-child { border-bottom: none; }

.resource_item a {
    font-weight: 600;
    color: var(--green-mid);
    font-size: 11.5pt;
    text-decoration: none;
}

.resource_item a:hover { text-decoration: underline; }

.resource_item p {
    font-size: 10.5pt;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.6;
}

.source_tag {
    display: inline-block;
    background: var(--green-pale);
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: 9pt;
    padding: 2px 7px;
    color: var(--green-dark);
    margin-left: 8px;
    vertical-align: middle;
    font-weight: 600;
}

.usda_table_wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-top: 14px;
}

.usda_table {
    border-collapse: collapse;
    width: 100%;
    font-size: 10pt;
}

.usda_table th {
    background-color: var(--green-mid);
    color: white;
    padding: 9px 12px;
    text-align: left;
}

.usda_table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    background: #f9fbf9;
}

.usda_table tr:nth-child(even) td { background: #f0f6f2; }

.usda_table td a {
    color: var(--green-mid);
    word-break: break-all;
    font-size: 9.5pt;
}

.footer { margin-top: 28px; }

.footer_web {
    background-color: var(--green-dark);
    text-align: center;
    font-size: 11pt;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
    padding: 14px;
    border-radius: 0 0 8px 8px;
}

.footer_link {
    color: white;
    text-decoration: underline;
}

.page_title {
    font-family: 'DM Serif Display', serif;
    background-color: var(--green-dark);
    padding: 18px 24px;
    border-radius: 8px;
    font-size: 26pt;
    text-align: center;
    color: white;
    letter-spacing: 0.01em;
    margin-bottom: 0;
}

.data_section {
    background: var(--card);
    padding: 20px 24px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid var(--border);
}

.data_section h2 {
    font-family: 'DM Serif Display', serif;
    color: var(--green-dark);
    font-size: 15pt;
    margin-bottom: 10px;
}

.data_section h3 {
    font-family: 'DM Serif Display', serif;
    color: var(--green-dark);
    font-size: 13pt;
    margin: 20px 0 10px;
}

.data_section img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px auto;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.data_section p {
    font-size: 11pt;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 8px;
}

.chart_wrap {
    width: 100%;
    max-width: 700px;
    margin: 16px auto;
}

.cart_section {
    background: var(--card-alt);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 16px 20px;
    margin-top: 16px;
    text-align: left;
}

.cart_section h2 {
    font-family: 'DM Serif Display', serif;
    color: var(--green-dark);
    font-size: 13pt;
    margin-bottom: 10px;
}

.cart_section select,
.cart_section button {
    font-family: 'DM Sans', sans-serif;
    font-size: 10.5pt;
    padding: 6px 12px;
    border-radius: 5px;
    border: 1px solid var(--border);
    margin-right: 8px;
    cursor: pointer;
}

.cart_section button {
    background-color: var(--green-mid);
    color: white;
    border-color: var(--green-mid);
}

.cart_section button:hover { background-color: var(--green-dark); }

.remove-btn {
    background-color: #c0392b !important;
    border-color: #c0392b !important;
    font-size: 9pt !important;
    padding: 3px 8px !important;
}

.charts_row {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.source_logo {
    width: 220px;
    border-radius: 8px;
    margin: 10px auto;
    display: block;
}