/* Gulu website: content pages (purine guide and food pages). Colors and buttons come from /landing/landing.css. */
:root { --vlow: #BFE3A6; --low: #DDEFB4; --mid: #FFE08A; --high: #FFB98A; --vhigh: #FF8F8F; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --vlow: #3D5A2E; --low: #4C5A2B; --mid: #6B5520; --high: #6E3F22; --vhigh: #6E2A2A; }
}
.logo-icon img { display: block; width: 100%; height: 100%; }
.langs a { display: inline-block; padding: 6px 12px; min-height: 36px; font-size: 14px; font-weight: 700; text-decoration: none; line-height: 24px; }
.langs a[aria-current="page"] { background: var(--ink); color: var(--paper); }

.article { max-width: 860px; padding-bottom: 40px; }
.article h1 { font-size: clamp(32px, 5vw, 48px); margin: 8px 0 18px; }
.article h2 { font-size: clamp(24px, 3.2vw, 30px); margin: 36px 0 12px; }
.article h3 { font-size: 18px; margin: 18px 0 4px; }
.article p { margin: 0 0 12px; }
.crumbs { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }
.crumbs a { text-decoration: none; }
.hint { font-size: 14px; color: var(--ink-soft); }
.lead { margin-bottom: 8px; }

.answer { padding: 18px 20px; font-size: 18px; }
.answer p:last-child { margin-bottom: 0; }
.answer.band-veryLow, .answer.band-low { background: var(--fiber-tint); }
.answer.band-moderate { background: var(--protein-tint); }
.answer.band-high, .answer.band-veryHigh { background: var(--sugar-tint); }
.advice { font-weight: 600; }

.scale { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 0; margin: 0; }
.scale li { border: 2.5px solid var(--ink); border-radius: 12px; padding: 8px 6px; text-align: center; font-size: 13px; line-height: 1.3; opacity: .55; }
.scale li b { display: block; font-size: 14px; }
.scale li.here { opacity: 1; box-shadow: 3px 3px 0 var(--shadow); transform: translateY(-3px); }
.band-veryLow { background: var(--vlow); } .band-low { background: var(--low); } .band-moderate { background: var(--mid); }
.band-high { background: var(--high); } .band-veryHigh { background: var(--vhigh); }
.answer.band-veryLow, .answer.band-low, .answer.band-moderate, .answer.band-high, .answer.band-veryHigh { border-color: var(--ink); }

table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1.5px solid var(--dashed); vertical-align: top; }
.facts { background: var(--card); border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; border-collapse: separate; border-spacing: 0; }
.facts thead th { background: var(--paper-deep); font-size: 14px; }
.facts tr.hl { background: var(--purine-tint); font-weight: 700; }
.facts tr.sub th { padding-left: 26px; font-weight: 400; color: var(--ink-soft); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }

.compare { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 6px; }
.compare li { display: grid; grid-template-columns: minmax(120px, 34%) 1fr 48px; gap: 10px; align-items: center; font-size: 15px; }
.compare .bar { height: 14px; border: 2px solid var(--ink); border-radius: 99px; background: var(--card); overflow: hidden; }
.compare .bar span { display: block; height: 100%; background: var(--purine); }
.compare li.self .bar span { background: var(--tomato); }
.compare .val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }

.food-links { padding-left: 20px; margin: 0; columns: 2 260px; column-gap: 28px; }
.food-links li { margin: 0 0 8px; break-inside: avoid; }
.pill { display: inline-block; font-size: 12px; padding: 1px 8px; border: 1.5px solid var(--ink); border-radius: 99px; white-space: nowrap; color: #4A2F23; }

.faq h3 { font-family: inherit; }
.sources { font-size: 14px; color: var(--ink-soft); border-left: 4px solid var(--purine); padding-left: 12px; }
.cta { margin: 40px 0 10px; padding: 22px; background: var(--note); color: var(--ink); }
.cta h2 { margin: 0 0 8px; color: var(--ink); }
.how { padding-left: 20px; }
.two { display: grid; gap: 10px 32px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.two .food-links { columns: 1; }
.filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 30px 0 0; font-weight: 700; }
.filter input { flex: 1 1 220px; min-height: 46px; padding: 8px 14px; border: 3px solid var(--ink); border-radius: 999px; font: inherit; background: var(--card); color: var(--ink); }
.group h2 { margin-top: 28px; }
.scroll { overflow-x: auto; }
.guide { min-width: 560px; }
.guide tbody tr:hover { background: var(--paper-deep); }
footer { padding: 30px 0 40px; font-size: 14px; color: var(--ink-soft); text-align: center; }
@media (max-width: 560px) {
  .scale li { font-size: 11px; padding: 6px 2px; } .scale li b { font-size: 12px; }
  .compare li { grid-template-columns: 1fr 70px 40px; }
}
.article section { padding: 0; }

/* The row linking a food's pages in each topic (purines, protein, sugar). */
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.topics .chip { text-decoration: none; color: inherit; font-weight: 700; }
.topics .chip[aria-current="page"] { background: var(--ink); color: var(--paper); box-shadow: none; }

/* A food's overview: one box per nutrient, per usual serving. */
.glance { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.glance-card { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.glance-card h3 { margin: 0; font-size: 15px; color: var(--ink-soft); }
.glance-card h3 small { font-weight: 400; }
.glance-card .big { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.1; }
.glance-card .sub { margin: 0; font-size: 14px; color: var(--ink-soft); }
.glance-card .more { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 14px; }

/* Rewards rules: one card per rule. */
.rules { display: grid; gap: 16px; margin-top: 18px; }
.rules .rule { padding: 18px 22px; }
.rule h2 { margin: 0 0 8px; font-size: 22px; }
.rule ul { margin: 0; padding-left: 20px; }
.rule li { margin-bottom: 6px; }
.rule p:last-child { margin-bottom: 0; }
.list-card { margin: 16px 0; padding: 20px 22px; }
.list-card h2 { margin: 0 0 6px; }
.list-card p { margin: 6px 0 0; }
