/* The supplied benchmark reference supplies the compact cards and expandable
   table; Nutri's existing paper/ink tokens supply the typography and surfaces. */
.accuracy-page { max-width: 1072px; margin: auto; padding: 40px var(--gutter) 0; }
.accuracy-page [hidden] { display: none !important; }
.report-title { text-align: center; margin-bottom: 28px; }
.report-title h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.1; letter-spacing: -.04em; margin: 0 0 12px; }
.report-title p { color: var(--pencil); margin: 0; }
.draft-note { padding: 16px 20px; border: 1px solid var(--separator); background: var(--highlight); border-radius: 12px; font-size: 13px; line-height: 1.6; margin: 0 0 24px; }
.scorecards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.product-score { min-width: 0; background: var(--raised); border: 1px solid var(--separator); border-radius: 18px; padding: 28px 24px; text-align: center; }
.nutri-score { border: 2px solid var(--accent); padding: 27px 23px; }
.score-brand { display: flex; justify-content: center; align-items: center; gap: 12px; }
.score-brand img { border-radius: 10px; }
.score-brand h2 { font-size: 17px; margin: 0; font-weight: 650; }
.product-score .headline-grade { font-size: 64px; letter-spacing: -.06em; font-weight: 750; line-height: 1; margin: 24px 0 10px; background: none; }
.headline-grade span { font-size: 24px; color: var(--pencil); font-weight: 400; letter-spacing: -.04em; }
.product-score .pending-grade { font-size: 34px; font-weight: 650; letter-spacing: -.04em; line-height: 64px; margin: 24px 0 10px; }
.product-score > p { margin: 10px auto 0; font-size: 13px; color: var(--pencil); max-width: 300px; }
.product-score .grade-label { font-size: 12px; }
.green { color: #16753C; background: #E8F6ED; }
.yellow { color: #8C5A00; background: #FFF2CE; }
.red { color: #B42332; background: #FFEBED; }
.grading-method { margin: 18px 0 32px; font-size: 13px; color: var(--pencil); }
.grading-method summary { cursor: pointer; min-height: 44px; padding: 10px 0; color: var(--ink); }
.grading-method > div { padding: 0 0 12px; max-width: 760px; line-height: 1.7; }
.legend { display: inline-flex; gap: 6px; margin-left: 12px; }
.legend span { border-radius: 6px; padding: 2px 8px; font-size: 11px; font-weight: 650; }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.results-toolbar h2 { font-size: 21px; margin: 0; letter-spacing: -.025em; }
.search-food { min-width: 0; }
.search-food input { width: 220px; max-width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--separator); border-radius: 10px; color: var(--ink); background: var(--raised); font: inherit; font-size: 14px; }
.table-hint { font-size: 12px; color: var(--pencil); margin: 12px 0 16px; }
.food-table-wrap { overflow-x: auto; background: var(--raised); border: 1px solid var(--separator); border-radius: 14px; }
.food-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.food-table thead { background: var(--surface); }
.food-table thead th { padding: 17px 12px; text-align: center; font-size: 12px; font-weight: 550; color: var(--pencil); }
.food-table thead th:first-child { text-align: left; padding-left: 22px; }
.food-table thead small { display: block; font-size: 11px; font-weight: 400; }
.food-row > th, .food-row > td { border-top: 1px solid var(--separator); }
.food-row > th { width: 48%; text-align: left; font-weight: 450; }
.food-row > td { text-align: center; padding: 14px 12px; }
.food-toggle { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 14px 20px; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.food-toggle:hover { background: var(--surface); }
.row-chevron { color: var(--pencil); font-size: 21px; transition: transform .15s; }
.food-toggle[aria-expanded="true"] .row-chevron { transform: rotate(90deg); }
.score-badge { display: inline-flex; justify-content: center; align-items: center; min-width: 44px; min-height: 34px; border-radius: 8px; padding: 5px 9px; font-size: 15px; font-weight: 700; }
.unmeasured { color: var(--pencil); }
.food-detail > td { background: var(--paper); padding: 20px 24px; border-top: 1px solid var(--separator); }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.detail-grid h3 { margin: 0 0 12px; font-size: 13px; }
.detail-grid ul { margin: 0; padding: 0; list-style: none; }
.detail-grid li { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 8px 0; font-size: 13px; }
.detail-grid li > span { min-width: 0; overflow-wrap: anywhere; }
.detail-grid li b { flex: none; font-weight: 550; }
.detail-grid small { display: block; color: var(--pencil); font-size: 11px; margin-top: 4px; }
.food-detail p { margin: 16px 0 0; color: var(--pencil); font-size: 12px; }
.results-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 16px 0 28px; font-size: 12px; color: var(--pencil); }
.results-bottom button { min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--separator); background: var(--raised); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.results-bottom button:hover { background: var(--highlight); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 600px) {
 .accuracy-page { padding-top: 28px; }
 .scorecards { gap: 12px; }
 .product-score, .nutri-score { padding: 20px 12px; }
 .score-brand { flex-direction: column; gap: 8px; }
 .score-brand h2 { font-size: 14px; }
 .product-score .headline-grade { font-size: 48px; }
 .product-score .pending-grade { font-size: 24px; line-height: 48px; }
 .headline-grade span { font-size: 18px; }
 .product-score > p { font-size: 12px; }
 .results-toolbar { align-items: stretch; flex-direction: column; gap: 12px; }
 .search-food input { width: 100%; }
 .food-table { min-width: 650px; }
 .food-row > th { width: 44%; }
 .detail-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
}
@media (prefers-reduced-motion: reduce) { .row-chevron { transition: none; } }
.product-score .headline-grade.green { color: #16753C; }
.product-score .headline-grade.yellow { color: #8C5A00; }
.product-score .headline-grade.red { color: #B42332; }

/* A measured Nutri report, without empty competitor cards or columns. */
.accuracy-page { max-width: 1200px; padding-bottom: 36px; }
.report-title { text-align: left; margin-bottom: 32px; }
.report-title h1 { font-size: clamp(30px, 3.5vw, 42px); }
.accuracy-summary { padding: clamp(22px, 4vw, 36px); border: 1px solid var(--separator); border-radius: 24px; background: var(--raised); }
.summary-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--pencil); font-size: 13px; }
.summary-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 19px; }
.summary-brand img { border-radius: 9px; }
.summary-brand b { font-weight: 650; }
.accuracy-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding: 28px 0 32px; }
.accuracy-metrics > div { min-width: 0; }
.accuracy-metrics > div + div { padding-left: 32px; border-left: 1px solid var(--separator); }
.metric-value { font-size: clamp(46px, 5vw, 64px); font-weight: 700; line-height: 1; letter-spacing: -.05em; margin: 0 0 16px; }
.metric-value small { font-size: .42em; font-weight: 400; color: var(--pencil); letter-spacing: -.02em; }
.accuracy-metrics h2 { margin: 0 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.accuracy-metrics h2 + p { margin: 0; font-size: 14px; color: var(--pencil); }
.error-distribution { display: flex; gap: 3px; height: 12px; border-radius: 999px; overflow: hidden; }
.distribution-close { background: #39815A; }.distribution-near { background: #D4A447; }.distribution-far { background: #B96C6B; }
.distribution-key { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 14px 0 24px; padding: 0; list-style: none; color: var(--pencil); font-size: 13px; }
.distribution-key li { display: inline-flex; align-items: center; gap: 6px; }
.distribution-key i { width: 8px; height: 8px; display: inline-block; border-radius: 50%; }
.distribution-key b { color: var(--ink); font-weight: 600; }
.report-limits { margin: 0; padding-top: 20px; border-top: 1px solid var(--separator); font-size: 13px; line-height: 1.6; color: var(--pencil); max-width: 75ch; }
.food-row > th { width: 55%; }
@media (max-width: 600px) {
 .summary-heading { gap: 12px; }
 .summary-heading > span:last-child { font-size: 12px; }
 .accuracy-metrics { gap: 18px; }
 .accuracy-metrics > div + div { padding-left: 18px; }
 .accuracy-metrics h2 { font-size: 15px; }
 .accuracy-metrics h2 + p { font-size: 12px; }
 .metric-value { font-size: 46px; }
 .legend { margin-left: 6px; gap: 4px; }
 .legend span { padding: 2px 5px; }
 .food-table { min-width: 480px; }
 .food-row > th { width: 52%; }
}
@media (max-width: 360px) {
 .accuracy-metrics { grid-template-columns: minmax(0, 1fr); gap: 24px; }
 .accuracy-metrics > div + div { padding-left: 0; border-left: 0; padding-top: 24px; border-top: 1px solid var(--separator); }
}

/* Explain the test with counts, examples and ordinary calorie differences. */
.plain-accuracy { padding: clamp(24px, 4vw, 40px); background: var(--raised); border: 1px solid var(--separator); border-radius: 24px; }
.plain-result-main { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.plain-brand { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--pencil); }
.plain-brand img { border-radius: 8px; }.plain-brand b { font-weight: 500; }
.plain-result-copy h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.12; letter-spacing: -.035em; max-width: 18ch; margin: 24px 0 16px; }
.plain-result-copy > p { margin: 0; color: var(--pencil); font-size: 16px; line-height: 1.65; max-width: 43ch; }
.estimate-dots { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
.estimate-dot { aspect-ratio: 1; background: #DCD7CD; border-radius: 50%; }.estimate-dot.is-close { background: #39815A; }
.estimate-key { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; color: var(--pencil); font-size: 13px; }
.estimate-key > span { display: flex; align-items: center; gap: 6px; }.estimate-key i { width: 8px; height: 8px; border-radius: 50%; background: #DCD7CD; }.estimate-key .close-key { background: #39815A; }
.close-example { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--separator); }
.close-example h3 { margin: 0 0 20px; font-size: 16px; font-weight: 600; }.calorie-example { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }.calorie-example > div { display: flex; flex-direction: column; gap: 6px; }.calorie-example > div > span { font-size: 13px; color: var(--pencil); }.calorie-example b { font-size: 26px; font-weight: 600; letter-spacing: -.025em; }.calorie-example small { font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--pencil); }.example-arrow { color: var(--pencil); font-size: 24px; }.close-label { background: #E8F6ED; color: #246441; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; }.close-example > p { color: var(--pencil); margin: 16px 0 0; font-size: 14px; }
.plain-result-note { color: var(--pencil); font-size: 13px; line-height: 1.65; margin: 24px 0 0; max-width: 70ch; }
.mfp-test-status { display: flex; gap: 12px; align-items: flex-start; padding: 0 0 28px; margin: 0 0 28px; border-bottom: 1px solid var(--separator); }.mfp-test-status img { border-radius: 7px; flex: none; margin-top: 2px; }.mfp-test-status h2 { font-size: 14px; font-weight: 600; margin: 0 0 4px; }.mfp-test-status p { font-size: 13px; color: var(--pencil); line-height: 1.6; margin: 0; }
.difference-badge { display: inline-flex; justify-content: center; padding: 6px 10px; border-radius: 8px; font-size: 12px; font-weight: 550; white-space: nowrap; }
@media (max-width: 720px) { .plain-result-main { grid-template-columns: minmax(0, 1fr); gap: 28px; }.plain-result-picture { max-width: 340px; }.plain-result-copy h2 { max-width: 22ch; }.calorie-example { gap: 16px; }.calorie-example b { font-size: 23px; } }
@media (max-width: 400px) { .calorie-example { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; }.example-arrow { display: none; }.close-label { grid-column: 1 / -1; justify-self: start; }.calorie-example b { font-size: 21px; } }

#benchmarks { margin-bottom: 56px; }
.restaurant-row > th, .restaurant-row > td { border-top: 1px solid var(--separator); }
.restaurant-row > th { width: 34%; padding: 16px 12px 16px 22px; text-align: left; font-weight: 450; }
.restaurant-row > td { text-align: center; padding: 14px 12px; }
#benchmarks .food-table { min-width: 560px; }
.restaurant-average > th, .restaurant-average > td { background: var(--surface); font-weight: 600; }
.col-score { display: block; width: fit-content; margin: 8px auto 0; padding: 2px 14px; border-radius: 12px; font-size: 34px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.col-score-label { display: block; margin: 2px 0 8px; font-size: 11px; font-weight: 500; }
.app-logo { display: block; margin: 0 auto 6px; border-radius: 7px; }
#benchmarks .food-table :is(th, td):is(:nth-child(2), :nth-child(3)) { background: rgba(46, 125, 80, .09); }
#benchmarks .food-table thead :is(th):is(:nth-child(2), :nth-child(3)) { background: rgba(46, 125, 80, .16); }
#benchmarks th .flag { display: block; font-size: 24px; line-height: 1.3; margin: 2px 0 1px; }
#benchmarks .canada-note .flag { font-size: 18px; vertical-align: -2px; }
#benchmarks .app-logo { width: 52px; height: 52px; border-radius: 12px; margin-bottom: 8px; }
.food-table .app-logo { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 6px; }
.table-section > th { padding: 14px 22px; text-align: left; background: var(--surface); border-top: 1px solid var(--separator); font-size: 13px; font-weight: 650; }
.table-section small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--pencil); }
.food-table .no-grade { color: var(--pencil); text-align: center; }
