/* Glucose, the optional module (views/glucose.js). Colours and spacing come from the tokens in style.css. */
.glu{display:flex;flex-direction:column;gap:16px}
/* a group's rows are lines of one card, a divider between them, as Me's are (more.css .mor-group) */
.card.glu-rows,:is(#app,#pane).screen .card.glu-rows{display:flex;flex-direction:column;gap:0;margin:0;padding-block:6px}
/* the row's own box goes; a line above each row but the first (a re-import row's line is on its wrapper) */
.glu-rows .navrow{border:0;border-radius:0;background:none;padding-inline:0}
.glu-rows>.navrow,.glu-rows>.reimp-row{border-block-start:1px solid var(--line)}
.glu-rows>.navrow:first-child,.glu-rows>.reimp-row:first-child{border-block-start:0}
.glu-rows .reimp-row{padding-block:8px}
.glu-opt{display:inline-flex;padding:3px 10px;border-radius:var(--pill);background:var(--a-soft);color:var(--a);font-size:.74rem;font-weight:800}
.glu-chart{min-inline-size:0}
/* under today's chart the hero gives the average and the range, so one or two numbers stay, each taking its share */
.facts.glu-n1{grid-template-columns:minmax(0,1fr)}
.facts.glu-n2{grid-template-columns:repeat(2,minmax(0,1fr))}
.glu-step{display:flex;flex-direction:column;gap:16px;justify-content:center;padding-block:8px 20px}
.glu-step .orb{align-self:center}
.glu-step .title,.glu-step .sub{text-align:center}
.glu-choice{display:flex;flex-direction:column;gap:10px}
.glu-choice .btn{min-height:64px;flex-direction:column;gap:0}
.glu-choice .btn small{font-weight:600;font-size:.78rem;color:var(--mut)}
.glu-choice .btn.pri small{color:var(--on-p);opacity:.9}
/* a past day's chart (no reading today): the sensor note and the way to newer readings, quieter than the chart */
.glu-past{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.glu-past .note{padding:10px 12px;font-size:.82rem}
.glu-past .btn{min-height:48px;font-size:.88rem}
/* the Today button beside the heading of a window paged to (views/chart-nav.js draws the row) */
.glu-jump{flex:none}
.glu-group{display:flex;flex-direction:column;gap:8px}
.glu-group>.sec{margin:0}
/* Findings (views/glucose-findings.js): the finding in everyday words, its pill beside the way to its curves, then How
   we know with each label on a line of its own over its value at the full width, so neither can squeeze the other */
.glu-fd{display:flex;flex-direction:column;gap:8px}
.glu-fd-say{margin:0;font-size:1rem;font-weight:600;line-height:1.45}
.glu-fd-act{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.glu-fd-how .kv{grid-template-columns:minmax(0,1fr);gap:2px;padding-block-end:8px}
.glu-fd-how .kv dt{font-size:.8rem;margin-block-start:8px}
.glu-fd-how .kv dd{text-align:start;font-weight:500;line-height:1.45}
/* a supporting meal's date and time stay on one line, so the list of meals reads as a list */
.glu-fd-how .kv dd a{display:inline-block;white-space:nowrap;margin-inline-end:6px}
/* A fold's arrow sits at its row's end (widgets.css pushes it there with margin-inline-start:auto); on the paper the
   pad rule of paper.css sizes a loose summary to its text, which left the arrow just after the label. The analysis
   rows draw into #tabbody (views/explore.js), so their folds on the paper (Compare's builder and model, Patterns'
   More numbers) take the full row again; the pad, at no specificity, still paints behind it. */
/* Patterns (views/glucose-patterns.js): the rises and the nights as short rows of one card, a bold lead and its
   figures on the first line, what was written down on the second; the older ones fold under the newest (LEAD_ROWS) */
.glu-pl{display:flex;flex-direction:column;padding-block:4px}
.glu-pl>details.fold summary{min-height:44px;font-size:.88rem}
.glu-pl-more{display:flex;flex-direction:column}
.glu-pr{display:flex;flex-direction:column;gap:1px;padding:6px 0;border-block-end:1px solid var(--line);text-align:start;background:none;border-inline:0;border-block-start:0;color:inherit;font:inherit;inline-size:100%;cursor:default}
button.glu-pr{cursor:pointer}
.glu-pl>.glu-pr:last-of-type,.glu-pl-more>.glu-pr:last-child{border-block-end:0}
.glu-pr-1{display:flex;flex-wrap:wrap;column-gap:10px;align-items:baseline;font-size:.9rem}
.glu-pr-1 b{font-weight:700}
.glu-pr small{color:var(--mut);font-size:.8rem;line-height:1.35}
/* the grid of hours a little lower than the timeline's, so a week of days stays within its screen */
.glu-hm .hm .c{height:10px;border-radius:2px}
.glu-hm .hm .lbl{line-height:10px;font-size:10px}
.glu-need{margin:12px 0 0}
.glu-hm .legend{padding:0;margin:8px 0 0;gap:4px 10px}
.glu-ramp{gap:2px}
.glu-ramp .sw{width:10px;height:10px}
/* the lead sections a little closer together than a report's, each heading over its one quiet line */
.glu-pat>h3{margin:20px 0 4px}
.glu-pat>h3:first-child{margin-top:4px}
.glu-pat>p.tiny{margin:0 0 6px}
.glu-pat>.card{margin-block:6px 0}
/* in More numbers a stacked table's row (legacy.css .stackable) puts its labelled figures two to a line under the
   row's name, so a day of eleven figures is six lines, not eleven */
@media (max-width:639px){
  .glu-pat table.t.stackable tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px}
  .glu-pat table.t.stackable td.lead{grid-column:1/-1}
  .glu-pat table.t.stackable td:not([data-label]):not(.lead):not(.act){grid-column:1/-1}
  .glu-pat table.t.stackable td[data-label]::before{flex:0 1 auto;min-width:0}
  .glu-pat table.t.stackable td[data-label]{justify-content:space-between}
}
