/* The training plan chart and table. Colours come from site.css. */
.plan { margin: 1.5em 0 2em; }
.plan-scroll { overflow-x: auto; }
.plan-chart { display: block; width: 100%; height: auto; }
/* On a small screen the page's chart scrolls sideways rather than shrink. */
.plan .plan-chart { min-width: 36em; }
.plan figcaption { font-size: 0.75em; color: var(--ink-soft); text-align: left; }
.plan-key { display: inline-block; width: 0.8em; height: 0.8em; margin: 0 0.4em 0 0.8em; }
.plan-key:first-child { margin-left: 0; }
.plan-key-low { background: var(--forest); }
.plan-key-high { background: var(--forest); opacity: 0.45; }
.plan-key-easy { box-sizing: border-box; border: 1.5px solid var(--forest); }

.plan-grid { stroke: var(--rule); stroke-width: 0.7; opacity: 0.6; }
.plan-span { fill: none; stroke: var(--ink-soft); stroke-width: 1; }
.plan-low { fill: var(--forest); }
.plan-high { fill: var(--forest); opacity: 0.45; }
.plan-easy { fill: none; stroke: var(--forest); stroke-width: 1.5; }
.plan-pole { stroke: var(--trail); stroke-width: 2; }
.plan-flag { fill: var(--trail); }
.plan-chart text { fill: var(--ink-soft); letter-spacing: 0; text-anchor: middle; }
.plan-chart text.plan-phase { fill: var(--ink); font-size: 14px; font-weight: bold; }
.plan-length { font-size: 12px; }
.plan-chart text.plan-axis { font-size: 11px; font-variant-numeric: tabular-nums; }
.plan-chart text.plan-axis[text-anchor="end"] { text-anchor: end; }
.plan-chart text.plan-month { font-size: 12px; text-anchor: start; }

/* Hairlines under rows only, like the ride tables. */
.content .plan-table { width: 100%; border-collapse: collapse; border: 0; font-size: 0.8em; }
.content .plan-table th,
.content .plan-table td { padding: 0.5em 0.6em; border: 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.content .plan-table td:nth-child(2) { white-space: nowrap; }
