/* goalcal.css -- the goal calendars (js/goalcal.js), shared by the Main dashboard and display.html.
   Colours: green / yellow / red differ in lightness too, and each day carries its number. */
.gc{--gc-g:#2E7D4F;--gc-y:#D9A441;--gc-r:#B3413E;--gc-n:#E9E7E0;--gc-card:var(--surface,#fff);--gc-line:var(--border,#E6E4DC);--gc-ink:var(--ink,#141413);--gc-dim:var(--ink-2,#52514E);
  --gc-t1:#3A6EA5;--gc-t2:#B4531D;--gc-t3:#7A5BA6;--gc-t4:#2F8C8C;--gc-t5:#8A6A12;display:flex;flex-direction:column;gap:12px;color:var(--gc-ink)}
.gc-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
.gc-card,.gc-cal{background:var(--gc-card);border:1px solid var(--gc-line);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:5px}
.gc-row{display:flex;justify-content:space-between;align-items:center;gap:8px}
.gc-score{font:700 30px/1.1 var(--font,system-ui)}.gc-score small{font-size:13px;font-weight:400;color:var(--gc-dim)}
.gc-sub{font-size:12px;color:var(--gc-dim)}
.gc-badge{font:500 11px var(--mono,monospace);padding:3px 8px;border-radius:10px;background:var(--gc-n)}
.gc-badge.g{background:#E3F1E8;color:#1F5C39}.gc-badge.y{background:#F7EED6;color:#6B4F0E}.gc-badge.r{background:#F6E1E0;color:#8A2F2C}
.gc-bar{height:6px;border-radius:3px;background:var(--gc-n);overflow:hidden}.gc-bar i{display:block;height:100%}
.gc-bar i.g,.gc-key i.g,.gc-day.g{background:var(--gc-g)}.gc-bar i.y,.gc-key i.y,.gc-day.y{background:var(--gc-y)}.gc-bar i.r,.gc-key i.r,.gc-day.r{background:var(--gc-r)}
.gc-pts{font:600 12px var(--mono,monospace)}.gc-pts.g{color:var(--gc-g)}.gc-pts.y{color:#9A7314}.gc-pts.r{color:var(--gc-r)}
.gc-key{display:flex;flex-wrap:wrap;gap:12px;align-items:center;font-size:12px;color:var(--gc-dim)}
.gc-key span{display:flex;align-items:center;gap:5px}.gc-key i{width:13px;height:13px;border-radius:3px;display:inline-block}.gc-key i.none{background:var(--gc-n)}
.gc-k{font:500 10.5px var(--mono,monospace);letter-spacing:.1em;text-transform:uppercase}
.gc-cals{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.gc-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;margin-top:4px}
.gc-h{font:500 10px var(--mono,monospace);color:var(--gc-dim);text-align:center}
.gc-day{aspect-ratio:1;border-radius:4px;font:500 10px var(--mono,monospace);padding:2px 3px;box-sizing:border-box;background:var(--gc-n);color:#3A3936}
.gc-day.g,.gc-day.r{color:#fff}.gc-day.blank{background:transparent}.gc-day.future{background:transparent;border:1px dashed var(--gc-line)}
.gc-histcard{display:flex;flex-direction:column;gap:6px}
.gc-hist{position:relative;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;height:120px;border-bottom:1px solid var(--gc-line);padding:0 6px}
.gc-target{position:absolute;left:0;right:0;bottom:85%;border-top:1.5px dashed var(--ember,#B4531D)}
.gc-hcol{display:flex;gap:3px;align-items:flex-end;justify-content:center;height:100%}.gc-hcol i{width:10px;border-radius:3px 3px 0 0;display:block}
.gc-hlab{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;font:500 11px var(--mono,monospace);color:var(--gc-dim);text-align:center;padding:0 6px}
.gc-legend{display:flex;flex-wrap:wrap;gap:12px;font-size:12px;color:var(--gc-dim)}.gc-legend span{display:flex;align-items:center;gap:5px}.gc-legend i{width:10px;height:10px;border-radius:2px;display:inline-block}
.gc-share .row{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
