/* Written case studies on Product.aspx (AppCode\CaseStudies.cs; the HTML is built by training\tools\casestudy.py).
   The site is light-only, so these are the light values. Chart colors are categorical slots 1 and 2 of the
   data-visualization palette (blue, orange), a pair validated for color-vision deficiency on a light surface. */

.CaseStudy
{
    --cs-ink: #0b0b0b;
    --cs-ink-2: #52514e;
    --cs-muted: #898781;
    --cs-grid: #e1e0d9;
    --cs-axis: #c3c2b7;
    --cs-surface: #ffffff;
    --cs-wash: #f6f5f1;
    --cs-rule: #d9d7cf;
    --cs-accent: #0583b5;     /* the search box's blue */
    --cs-series-1: #2a78d6;
    --cs-series-2: #eb6834;

    max-width: 700px;
    margin: 8px 0 16px 0;
    color: var(--cs-ink);
    font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.5;
}

.CaseStudy h2
{
    margin: 28px 0 8px 0;
    font-family: Verdana, Helvetica, sans-serif;
    font-size: 19px;
    color: Blue;              /* as .ProductTitle */
}

.CaseStudy h3
{
    margin: 20px 0 6px 0;
    font-family: Verdana, Helvetica, sans-serif;
    font-size: 16px;
    color: var(--cs-ink);
}

.CaseStudy p
{
    margin: 8px 0;
}

.CaseStudy p.CsLead
{
    font-size: 17px;
    color: var(--cs-ink-2);
}

.CaseStudy ul,
.CaseStudy ol
{
    margin: 6px 0 10px 0;
    padding-left: 24px;
}

.CaseStudy li
{
    margin: 3px 0;
}

.CaseStudy hr
{
    border: 0;
    border-top: 1px solid var(--cs-rule);
    margin: 20px 0;
}

.CaseStudy a
{
    color: #0b5ea8;
}

.CaseStudy code
{
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    background: var(--cs-wash);
    padding: 0 3px;
    border-radius: 3px;
}

.CaseStudy pre.CsCode
{
    margin: 10px 0;
    padding: 10px 12px;
    background: var(--cs-wash);
    border: 1px solid var(--cs-rule);
    border-radius: 4px;
    overflow-x: auto;
    line-height: 1.35;
}

.CaseStudy pre.CsCode code
{
    background: none;
    padding: 0;
    font-size: 13px;
    white-space: pre;
}

.CaseStudy blockquote
{
    margin: 14px 0;
    padding: 6px 14px;
    background: #eef6fa;
    border-left: 4px solid var(--cs-accent);
}

/* Tables: wide ones scroll inside the column instead of widening the page */
.CaseStudy .CsTable
{
    margin: 10px 0;
    overflow-x: auto;
}

.CaseStudy table
{
    border-collapse: collapse;
    font-family: Verdana, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.4;
}

.CaseStudy th,
.CaseStudy td
{
    border: 1px solid var(--cs-rule);
    padding: 4px 7px;
    text-align: left;
    vertical-align: top;
}

.CaseStudy th
{
    background: var(--cs-wash);
}

.CaseStudy td code,
.CaseStudy th code
{
    font-size: 12px;
}

/* Contents */
.CaseStudy .CsContents
{
    margin: 16px 0;
    padding: 8px 16px;
    background: var(--cs-wash);
    border: 1px solid var(--cs-rule);
    border-radius: 4px;
    font-family: Verdana, Helvetica, sans-serif;
    font-size: 13px;
}

.CaseStudy .CsContents p.CsContentsTitle
{
    margin: 4px 0;
    font-weight: bold;
}

.CaseStudy .CsContents ul
{
    margin: 2px 0;
}

.CaseStudy p.CsLocked
{
    margin: 16px 0;
    padding: 10px 14px;
    background: #fff4b0;      /* the site's announcement yellow */
    font-family: Verdana, Helvetica, sans-serif;
    font-size: 13px;
}

.CaseStudy p.CsWarning
{
    padding: 8px 12px;
    background: #fdecea;
    border-left: 4px solid #d03b3b;
    font-family: Verdana, Helvetica, sans-serif;
    font-size: 13px;
}

.CaseStudy ul.CsFiles
{
    font-family: Verdana, Helvetica, sans-serif;
    font-size: 12px;
}

/* The chart */
.CaseStudy .CsFigure
{
    margin: 16px 0;
    padding: 10px 12px;
    background: var(--cs-surface);
    border: 1px solid var(--cs-rule);
    border-radius: 4px;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.CaseStudy .CsFigure figcaption
{
    font-size: 13px;
    color: var(--cs-ink-2);
    line-height: 1.4;
}

.CaseStudy .CsLegend
{
    margin: 8px 0 2px 0;
    font-size: 12px;
    color: var(--cs-ink-2);
}

.CaseStudy .CsLegend span
{
    margin-right: 16px;
}

.CaseStudy .CsKey
{
    display: inline-block;
    width: 14px;
    height: 3px;
    margin: 0 6px 3px 0;
    vertical-align: middle;
    border-radius: 2px;
}

.CaseStudy .CsKey.CsS1 { background: var(--cs-series-1); }
.CaseStudy .CsKey.CsS2 { background: var(--cs-series-2); }

.CaseStudy .CsPlot
{
    position: relative;
}

.CaseStudy svg.CsChart
{
    display: block;
    width: 100%;
    height: auto;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.CaseStudy .CsGrid { stroke: var(--cs-grid); stroke-width: 1; }
.CaseStudy .CsGrid.CsBase { stroke: var(--cs-axis); }
.CaseStudy .CsTick { fill: var(--cs-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.CaseStudy .CsAxis { fill: var(--cs-ink-2); font-size: 11px; }
.CaseStudy .CsLine { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.CaseStudy .CsLine.CsS1 { stroke: var(--cs-series-1); }
.CaseStudy .CsLine.CsS2 { stroke: var(--cs-series-2); }
.CaseStudy .CsDot { stroke: var(--cs-surface); stroke-width: 2; }
.CaseStudy .CsDot.CsS1 { fill: var(--cs-series-1); }
.CaseStudy .CsDot.CsS2 { fill: var(--cs-series-2); }
.CaseStudy .CsNote { fill: var(--cs-ink-2); font-size: 11px; }
.CaseStudy .CsLeader { stroke: var(--cs-muted); stroke-width: 1; }
.CaseStudy .CsEnd { fill: var(--cs-ink); font-size: 11px; }
.CaseStudy .CsEndValue { fill: var(--cs-ink-2); font-size: 11px; }
.CaseStudy .CsHover line { stroke: var(--cs-muted); stroke-width: 1; }
.CaseStudy .CsHit { fill: transparent; cursor: crosshair; }

.CaseStudy .CsTip
{
    position: absolute;
    padding: 6px 8px;
    background: var(--cs-surface);
    border: 1px solid var(--cs-rule);
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(11, 11, 11, 0.12);
    font-size: 12px;
    line-height: 1.5;
    color: var(--cs-ink);
    white-space: nowrap;
    pointer-events: none;
}

.CaseStudy .CsTip[hidden]
{
    display: none;
}
