:root {
  color-scheme: light;
  --paper: #faf9f3;
  --band: #f2efe5;
  --ink: #222822;
  --muted: #596158;
  --line: #dad8ca;
  --green: #146353;
  --mint: #e6eee2;
  font: 15px/1.45 'Avenir Next', Avenir, Verdana, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 3rem, 1100px); margin: 2rem auto; }
.site-nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; column-gap: 1.25rem; row-gap: .5rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: .48rem; color: var(--ink); font-size: 1.25rem; font-weight: 800; letter-spacing: -.035em; text-decoration: none; min-height: 44px; }
.wordmark img { flex: none; }
.categories { display: flex; flex-wrap: wrap; gap: .35rem; }
.categories a { padding: .55rem .9rem; border-bottom: 3px solid transparent; color: var(--ink); font-weight: 700; text-decoration: none; }
.categories a:hover { background: var(--band); }
.categories a[aria-current=page] { border-bottom-color: var(--green); background: var(--mint); color: var(--green); }
.page-title { border-bottom: 2px solid var(--ink); padding-bottom: .9rem; margin-bottom: .85rem; }
h1 { margin: 0; font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -.045em; }
.page-title p, #count, .price-note { margin: .35rem 0 0; color: var(--muted); font-size: .85rem; }
a { color: var(--green); text-underline-offset: .18em; }
:focus-visible { outline: 2px solid #a44529; outline-offset: 2px; }
#filters, #bar-options { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; }
#filters label, #bar-options label { flex: 0 1 12rem; min-width: 0; font-size: .8rem; font-weight: 700; }
#filters .search { flex: 1 1 14rem; max-width: 25rem; }
input, select, button { font: inherit; color: inherit; }
input, select { display: block; width: 100%; min-height: 2.2rem; margin-top: .2rem; padding: .35rem .45rem; border: 1px solid #bdbeb1; background: #fffefa; border-radius: 2px; }
.view-line { display: flex; justify-content: space-between; align-items: baseline; gap: .65rem; margin-top: 1rem; border-bottom: 1px solid var(--line); }
#views { display: flex; gap: .2rem; }
#views button { cursor: pointer; border: 0; border-bottom: 2px solid transparent; background: transparent; padding: .4rem .65rem; }
#views button[aria-pressed=true] { border-bottom-color: var(--green); color: var(--green); font-weight: 700; }
#bar-options { margin-top: .6rem; }
#bar-options label:first-child { flex-basis: 16rem; }
#sort-direction { min-width: 2.45rem; min-height: 2.2rem; border: 1px solid #bdbeb1; background: #fffefa; cursor: pointer; }
.sort-heading { padding: .35rem 0; border: 0; background: transparent; text-align: left; font-weight: 700; cursor: pointer; }
.sort-heading:hover { text-decoration: underline; }
.sort-heading[aria-pressed=true] { color: var(--green); }
.sort-arrow { white-space: nowrap; }
.price-note { margin: .55rem 0 .65rem; }
.chart-row, .result-head, .bar summary { display: grid; gap: .65rem; align-items: center; padding: .5rem .6rem; }
.chart-row { grid-template-columns: minmax(117px, 1.2fr) minmax(180px, 3.1fr) repeat(5, minmax(54px, 1fr)); }
.chart.extra-metric .chart-row { grid-template-columns: minmax(117px, 1.2fr) minmax(160px, 3.1fr) repeat(6, minmax(50px, 1fr)); }
.chart-row:nth-child(even), .bar:nth-of-type(even) { background: var(--band); }
.chart-head, .result-head { font-size: .8rem; font-weight: 700; border-bottom: 1px solid var(--ink); }
.axis { text-align: center; }
.ticks { position: relative; height: 1rem; color: var(--muted); font-size: .7rem; font-weight: 400; margin-top: .18rem; }
.ticks span { position: absolute; transform: translateX(-50%); }
.plot { position: relative; align-self: stretch; min-height: 2.1rem; background: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px var(--grid-step)); border-right: 1px solid var(--line); }
.plot > .sub { text-align: center; padding-top: .44rem; }
.dot, .mean-tick { position: absolute; transform: translate(-50%, -50%); }
.dot { width: .51rem; height: .51rem; border: 1px solid var(--paper); border-radius: 50%; background: var(--green); }
.mean-tick { top: 50%; height: 90%; width: 3px; border-radius: 2px; background: var(--ink); }
.brand-link { padding: 0; background: none; text-align: left; border: 0; font-weight: 700; cursor: pointer; }
.brand-link:hover { text-decoration: underline; }
.result-head, .bar summary { grid-template-columns: minmax(160px, 2.5fr) repeat(6, minmax(51px, 1fr)); }
.yoghurt-products .result-head, .yoghurt-products .bar summary { grid-template-columns: minmax(150px, 1.8fr) minmax(180px, 2.6fr) repeat(5, minmax(50px, 1fr)); }
.extra-metric .result-head, .extra-metric .bar summary { grid-template-columns: minmax(145px, 2.5fr) repeat(7, minmax(48px, 1fr)); }
.yoghurt-products.extra-metric .result-head, .yoghurt-products.extra-metric .bar summary { grid-template-columns: minmax(145px, 1.8fr) minmax(165px, 2.6fr) repeat(6, minmax(46px, 1fr)); }
.yoghurt-products .axis { padding-right: 4rem; }
.density-stat { display: grid; grid-template-columns: minmax(0, 1fr) 3.45rem; gap: .55rem; align-items: center; text-align: right; }
.product-plot { display: block; min-height: 1.15rem; background-color: #e9e7dd; }
.product-plot .dot { top: 50%; }
.bar { border-bottom: 1px solid var(--line); }
.bar summary { cursor: pointer; list-style: none; }
.bar summary::-webkit-details-marker { display: none; }
.bar summary:hover, .bar[open] summary { background: var(--mint); }
.product { display: flex; align-items: flex-start; gap: .5rem; }
.product::before { content: '+'; flex: none; color: var(--green); }
.bar[open] .product::before { content: '−'; }
.product-name { font-weight: 700; }
.sub { display: block; color: var(--muted); font-size: .75rem; font-weight: 400; }
.stat { font-variant-numeric: tabular-nums; font-weight: 600; }
.stat-label { display: none; }
.strip { display: block; width: min(100%, 4.5rem); height: .22rem; background: #e4dfd2; margin-top: .22rem; }
.strip span { display: block; width: var(--fill); height: 100%; background: color-mix(in srgb, var(--dark) var(--tone), var(--light)); }
.stat.value { color: var(--green); }
.details { padding: .65rem .8rem .7rem 1.7rem; background: #fffefa; color: var(--muted); font-size: .85rem; }
.details p, .method p { margin: 0 0 .4rem; }
.details p:last-child { margin-bottom: 0; }
.claim { color: var(--green); }
.method { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .65rem; color: var(--muted); font-size: .85rem; }
.method summary { cursor: pointer; font-weight: 700; color: var(--ink); width: fit-content; }
.method p:first-of-type { margin-top: .5rem; }
@media (max-width: 725px) {
  .wrap { width: calc(100% - 1.5rem); margin-top: 1.1rem; }
  #filters label { flex: 1 1 7rem; }
  #filters .search { flex: 1 0 100%; max-width: none; }
  #bar-options label:first-child { flex: 1 1 70%; }
  #bar-options label:last-child { flex: 1 1 100%; }
  input, select, #sort-direction, #views button, .categories a { min-height: 44px; }
  input, select { font-size: 16px; }
  .chart-row, .chart.extra-metric .chart-row { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .38rem; font-size: .82rem; }
  .chart-head > :not(.axis) { display: none; }
  .axis, .plot { grid-column: 1 / -1; }
  .brand-link { grid-column: 1 / -1; display: flex; align-items: center; gap: .4rem; min-height: 44px; }
  .stat-label { display: block; }
  .chart-row .stat-label { min-height: 2.2em; line-height: 1.15; font-size: .69rem; }
  .result-head, .extra-metric .result-head { display: none; }
  .bar summary, .extra-metric .bar summary, .yoghurt-products .bar summary, .yoghurt-products.extra-metric .bar summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .42rem; }
  .yoghurt-products .result-head, .yoghurt-products.extra-metric .result-head { display: grid; grid-template-columns: 1fr; }
  .yoghurt-products .result-head > span { display: none; }
  .density-stat { grid-column: 1 / -1; }
  .density-stat .stat-label { display: none; }
  .product { grid-column: 1 / -1; }
}
