/* The fold-out charts (charts.js), shared by the weather and garden pages.
 * Colours come from the page: --card --line --bg --ink --dim --cool --cmp. */
/* Spans the whole row, placed by charts.js right below the clicked tile's row. */
.chart{grid-column:1/-1;background:var(--card);border:1px solid var(--line);border-radius:14px;
       padding:12px 14px 10px}
.chart .tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:6px}
.chart .tools b{font-weight:600;font-size:.92rem;margin-right:auto}
/* On a phone the title gets its own line and the buttons stay together below it. */
@media (max-width:560px){ .chart .tools b{flex-basis:100%} }
.chart .tools button{font:inherit;font-size:.86rem;min-width:34px;height:32px;padding:0 10px;
       border-radius:8px;border:1px solid var(--line);background:var(--bg);color:var(--ink);cursor:pointer}
.chart .tools button:hover{border-color:var(--cool)}
.chart canvas{display:block;width:100%;height:230px;touch-action:pan-y;cursor:grab;
       user-select:none;-webkit-user-select:none}
.chart canvas.drag{cursor:grabbing}
.chart .legend{display:flex;gap:14px;flex-wrap:wrap;color:var(--dim);font-size:.8rem;margin-top:4px}
.chart .legend > span:first-child{display:contents}
.chart .legend i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:5px;vertical-align:-1px}
.chart .readout{color:var(--dim);font-size:.84rem;min-height:1.3em;margin-top:2px}
.chart .readout b{color:var(--ink);font-weight:500}
.chart .cmpnote{color:var(--cmp)}
.chart .legend .cmp{margin-left:auto;display:flex;align-items:center;gap:6px}
.chart .legend select{font:inherit;font-size:.8rem;border-radius:6px;border:1px solid var(--line);
       background:var(--bg);color:var(--ink);padding:2px 4px}
