:root {
    --amber: #f4b41a;
    --amber-dark: #c47d0e;
    --slate: #2c3e50;
    --green-clinical: #2e7d32;
    --blue-data: #2196f3;
    --bg-light: #fafafa;
    --text-primary: #222;
    --border: #ddd;
}
.dashboard-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}
.section-intro {
    margin-bottom: 2rem;
}
.page-title {
    font-size: 2rem;
    color: var(--slate);
    line-height: 1.3;
    margin: 0 0 0.5rem;
}
.api-sync-stamp {
    font-size: 0.85rem;
    color: var(--green-clinical);
    font-weight: 600;
    margin: 0 0 1rem;
    letter-spacing: 0.02em;
}
.jump-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.jump-link {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--slate);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s;
}
.jump-link:hover {
    background: var(--amber);
    border-color: var(--amber-dark);
    color: #fff;
}
.sticky-toc {
    position: sticky;
    top: 0;
    z-index: 90;
    background: var(--slate);
    padding: 0.5rem 1rem;
}
.toc-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0;
}
.toc-icon {
    font-size: 1.2rem;
}
.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
}
.toc-list.active {
    display: block;
    padding: 0.5rem 0 0;
}
.toc-list li {
    margin: 0;
}
.toc-list a {
    display: block;
    padding: 0.4rem 0;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.2s;
}
.toc-list a:hover {
    color: var(--amber);
}
.tldr-box {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-left: 4px solid var(--amber-dark);
    border-radius: 4px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}
.objectives-box .objectives-title {
    font-size: 1.1rem;
    color: var(--slate);
    margin: 0 0 0.75rem;
}
.objectives-list {
    margin: 0;
    padding-left: 1.25rem;
}
.objectives-list li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    color: var(--text-primary);
}
.visual-learning-path {
    margin-bottom: 2rem;
}
.visual-learning-path h4 {
    font-size: 1.15rem;
    color: var(--slate);
    margin: 0 0 1rem;
}
.pathway-svg {
    width: 100%;
    margin-bottom: 0.75rem;
}
.pathway-svg svg {
    width: 100%;
    height: auto;
    display: block;
}
.pathway-svg svg.pathway-mobile {
    display: none;
}
.pathway-caption {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin: 0 0 1rem;
}
.affiliate-inline-disclosure {
    font-size: 0.8rem;
    color: #888;
    margin-top: 1.25rem;
    line-height: 1.6;
}
.affiliate-inline-disclosure a {
    color: #888;
    text-decoration: underline;
}
.pathway-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 2rem;
}
.sanctuary-data-section {
    margin-bottom: 2rem;
}
.section-heading {
    font-size: 1.5rem;
    color: var(--slate);
    margin: 0 0 0.75rem;
}
.section-description {
    margin: 0 0 1.25rem;
    line-height: 1.6;
    color: var(--text-primary);
}
.table-wrapper {
    overflow-x: auto;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}
.sanctuary-table,
.sourcing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 640px;
}
.sanctuary-table th,
.sanctuary-table td,
.sourcing-table th,
.sourcing-table td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.sanctuary-table thead th,
.sourcing-table thead th {
    background: var(--slate);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}
.sanctuary-table tbody tr:hover,
.sourcing-table tbody tr:hover {
    background: rgba(244, 180, 26, 0.06);
}
.mgo-high {
    color: var(--green-clinical);
    font-weight: 700;
}
.mgo-mid {
    color: var(--amber-dark);
    font-weight: 600;
}
.mgo-standard {
    color: #666;
    font-weight: 500;
}
.grade-premium,
.grade-standard,
.grade-consumer {
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    display: inline-block;
    line-height: 1.4;
}
.grade-premium {
    background: var(--green-clinical);
    color: #fff;
}
.grade-standard {
    background: var(--amber-dark);
    color: #fff;
}
.grade-consumer {
    background: #666;
    color: #fff;
}
.table-note {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
    margin: 0 0 2rem;
}
.sourcing-table tfoot td {
    font-size: 0.8rem;
    color: #777;
    font-style: italic;
    padding: 0.75rem;
    border-top: 2px solid var(--border);
}
.sourcing-table a {
    color: var(--amber-dark);
    text-decoration: underline;
    font-weight: 500;
}
.sourcing-table a:hover {
    color: var(--slate);
}
.clinical-content {
    margin-bottom: 2rem;
}
.content-section p {
    line-height: 1.7;
    margin: 0 0 1rem;
    color: var(--text-primary);
}
.data-bridge-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--slate), #1a252f);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 2rem;
}
.data-bridge-cta .icon {
    font-size: 2rem;
    color: var(--amber);
    flex-shrink: 0;
}
.data-bridge-cta .content h4 {
    color: #fff;
    margin: 0 0 0.25rem;
    font-size: 1rem;
}
.data-bridge-cta .content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}
.cta-button {
    display: inline-block;
    background: var(--amber);
    color: var(--slate);
    padding: 0.6rem 1.25rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s;
}
.cta-button:hover {
    background: var(--amber-dark);
    color: #fff;
}
.study-methodology {
    margin-bottom: 2rem;
}
.study-methodology > p {
    line-height: 1.7;
    margin: 0 0 1.25rem;
    color: var(--text-primary);
}
.methodology-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.methodology-grid-item {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
}
.methodology-grid-item strong {
    display: block;
    color: var(--slate);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.methodology-grid-item p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #555;
    margin: 0;
}
.clinical-impact-box {
    background: #f0f7f0;
    border-left: 4px solid var(--green-clinical);
    border-radius: 0 4px 4px 0;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.clinical-impact-box strong {
    color: var(--green-clinical);
    font-size: 0.9rem;
}
.clinical-impact-box p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0.35rem 0 0;
}
.chart-container {
    margin: 2rem 0;
}
.chart-container h3 {
    font-size: 1.15rem;
    color: var(--slate);
    margin: 0 0 0.35rem;
}
.chart-description {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 1rem;
}
.methodology-svg {
    width: 100%;
    display: block;
}
.stewardship-heading {
    margin-top: 2rem;
}
.stewardship-paragraph {
    margin-bottom: 2rem;
}
.takeaways-box .takeaways-title {
    font-size: 1.1rem;
    color: var(--slate);
    margin: 0 0 0.75rem;
}
.takeaways-list {
    margin: 0;
    padding-left: 1.25rem;
}
.takeaways-list li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    color: var(--text-primary);
}
.mgo-decision-tool {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.mgo-decision-tool .section-heading {
    font-size: 1.35rem;
}
.mgo-decision-tool > p {
    line-height: 1.6;
    margin: 0 0 1.5rem;
    color: var(--text-primary);
}
.tool-step {
    margin-bottom: 1.25rem;
}
.tool-step.hidden,
.tool-result.hidden {
    display: none;
}
.tool-step-label {
    font-weight: 700;
    color: var(--slate);
    margin: 0 0 0.75rem;
    font-size: 1rem;
}
.tool-btn {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    margin: 0 0.4rem 0.5rem 0;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.tool-btn:hover {
    border-color: var(--amber-dark);
    background: rgba(244, 180, 26, 0.08);
}
.tool-btn.active {
    border-color: var(--amber-dark);
    background: var(--amber);
    color: var(--slate);
    font-weight: 700;
}
.tool-result {
    margin-top: 1rem;
}
.tool-product-card {
    background: #fff;
    border: 2px solid var(--amber-dark);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-top: 1rem;
}
.mgo-tier-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--green-clinical);
    margin: 0 0 0.5rem;
}
.rationale-text {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0 0 1rem;
}
.tool-product-link {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--amber-dark);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.tool-product-link:hover {
    background: var(--amber);
    color: var(--slate);
}
.tool-reset-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.45rem 1rem;
    background: none;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.tool-reset-btn:hover {
    border-color: var(--slate);
    color: var(--slate);
}
.field-notes-section {
    margin-bottom: 2rem;
}
.field-notes-section > p {
    line-height: 1.7;
    margin: 0 0 1.25rem;
    color: var(--text-primary);
}
.disclosure-inset {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-left: 4px solid var(--amber-dark);
    border-radius: 0 4px 4px 0;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-primary);
}
.disclosure-inset strong {
    color: var(--slate);
}
.continue-education {
    margin-bottom: 2rem;
}
.continue-title {
    font-size: 1.1rem;
    color: var(--slate);
    margin: 0 0 0.75rem;
}
.continue-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.continue-list li {
    margin-bottom: 0.5rem;
    font-size: 0.92rem;
}
.continue-list a {
    color: var(--amber-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.continue-list a:hover {
    color: var(--slate);
    text-decoration: underline;
}
.disclosure-paragraph {
    margin-top: 0.75rem;
}
@media (max-width: 768px) {
    .page-title {
        font-size: 1.5rem;
    }
    .section-heading {
        font-size: 1.25rem;
    }
    .methodology-grid {
        grid-template-columns: 1fr;
    }
    .data-bridge-cta {
        flex-direction: column;
        text-align: center;
    }
    .tool-btn {
        display: block;
        width: 100%;
        margin: 0 0 0.5rem;
    }
    .pathway-svg svg.pathway-desktop {
        display: none;
    }
    .pathway-svg svg.pathway-mobile {
        display: block;
    }
}
@media (max-width: 480px) {
    .dashboard-main {
        padding: 1rem 0.75rem 2rem;
    }
    .page-title {
        font-size: 1.3rem;
    }
    .section-heading {
        font-size: 1.15rem;
    }
    .jump-nav {
        gap: 0.35rem;
    }
    .jump-link {
        font-size: 0.78rem;
        padding: 0.3rem 0.5rem;
    }
    .tldr-box {
        padding: 1rem;
    }
    .mgo-decision-tool {
        padding: 1rem;
    }
    .sanctuary-table,
    .sourcing-table {
        font-size: 0.8rem;
    }
}
