/* The tokens and base styles the v10c grid page expects from its dashboard runtime, for the website.
   Values match the claude.ai dashboard's default look (read from its stylesheet, Nov 20 2026), except the fonts:
   the site uses the reader's own system fonts. */
:root {
  color-scheme: light dark;
  --color-fg: #0b0b0b;
  --color-fg-muted: #898781;
  --color-bg: #f9f9f7;
  --color-panel: #ffffff;
  --color-border-line: rgb(11 11 11 / 10%);
  --color-ok: #006300;
  --color-warn: #734500;
  --color-bad: #8e2626;
  --cds-border: rgb(11 11 11 / 10%);
  --cds-text-secondary: #52514e;
  --cds-surface-popover: #ffffff;
  --cds-shadow-popover: 0 8px 24px #0000001f, 0 2px 6px #00000014;
  --cds-chart-axis: #c3c2b7;
  --cds-chart-grid: rgb(11 11 11 / 10%);
  --cds-chart-muted: #c3c2b7;
  --cds-chart-reference: #898781;
  --cds-chart-categorical-1: #2a78d6;
  --cds-chart-categorical-2: #eb6834;
  --cds-chart-categorical-3: #1baf7a;
  --cds-chart-categorical-4: #eda100;
  --cds-chart-categorical-5: #e87ba4;
  --cds-chart-categorical-6: #008300;
  --cds-chart-categorical-7: #6250d6;
  --cds-chart-categorical-8: #e34948;

  --cds-radius: .5rem;
  --cds-font-size-caption: .75rem;
  --cds-font-size-body: .875rem;
  --cds-font-size-heading: .9375rem;
  --cds-font-size-title: 1.375rem;
  --cds-font-weight-medium: 500;
  --cds-gap-xs: .5rem;
  --cds-gap-sm: .75rem;
  --cds-gap-md: 1rem;
  --cds-gap-lg: 1.75rem;
  --cds-gap-xl: 2.5rem;
  --cds-pad-xs: .375rem;
  --cds-pad-sm: .5rem;
  --cds-pad-md: .75rem;
  --cds-pad-lg: 1rem;
  --cds-pad-xl: 1.5rem;
  --font-anthropic-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-anthropic-serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --color-fg: #f0efec;
    --color-fg-muted: #898781;
    --color-bg: #0b0b0b;
    --color-panel: #1a1a19;
    --color-border-line: rgb(255 255 255 / 10%);
    --color-ok: #0ca30c;
    --color-warn: #db9300;
    --color-bad: #ec7e7e;
    --cds-border: rgb(255 255 255 / 10%);
    --cds-text-secondary: #c3c2b7;
    --cds-surface-popover: #20201f;
    --cds-shadow-popover: 0 8px 24px #00000052, 0 2px 6px #0003;
    --cds-chart-axis: #383835;
    --cds-chart-grid: rgb(255 255 255 / 10%);
    --cds-chart-muted: #5f5e5a;
    --cds-chart-reference: #97958d;
    --cds-chart-categorical-1: #3987e5;
    --cds-chart-categorical-2: #d95926;
    --cds-chart-categorical-3: #199e70;
    --cds-chart-categorical-4: #c98500;
    --cds-chart-categorical-5: #d55181;
    --cds-chart-categorical-6: #0ca30c;
    --cds-chart-categorical-7: #9085e9;
    --cds-chart-categorical-8: #e66767;
  }
}

/* The element reset the dashboard applies under the page's own styles (Tailwind's preflight, MIT licence).
   It is in a layer, as there, so every rule of the page wins over it. */
@layer base {
  *, ::after, ::before, ::backdrop { box-sizing: border-box; border: 0 solid; margin: 0; padding: 0; }
  html { -webkit-text-size-adjust: 100%; tab-size: 4; line-height: 1.5; -webkit-tap-highlight-color: transparent; }
  hr { height: 0; color: inherit; border-top-width: 1px; }
  h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
  a { color: inherit; text-decoration: inherit; }
  b, strong { font-weight: bolder; }
  small { font-size: 80%; }
  table { text-indent: 0; border-color: inherit; border-collapse: collapse; }
  summary { display: list-item; }
  ol, ul, menu { list-style: none; }
  img, svg, video, canvas { vertical-align: middle; display: block; }
  img, video { max-width: 100%; height: auto; }
  button, input, select, optgroup, textarea {
    font: inherit; font-feature-settings: inherit; font-variation-settings: inherit; letter-spacing: inherit;
    color: inherit; opacity: 1; background-color: #0000; border-radius: 0;
  }
  button { appearance: button; cursor: pointer; }
  button:disabled { cursor: default; }
  [hidden]:where(:not([hidden=until-found])) { display: none !important; }
  #dash-root, #dash-root *, #dash-root ::before, #dash-root ::after { border-color: var(--cds-border); }
}

body { background: var(--color-bg); font-family: var(--font-anthropic-sans); }
#dash-root { color: var(--color-fg); font-size: 14px; line-height: 1.45; padding: clamp(var(--cds-pad-md), 4%, var(--cds-pad-xl)); }
#dash-root a[href] { color: inherit; text-underline-offset: .15em; text-decoration: underline; }

.dash-select {
  appearance: none; border: 1px solid var(--color-border-line); border-radius: var(--cds-radius);
  background: var(--color-panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20'%3E%3Cpath fill='%23808080' d='M14.128 7.165a.502.502 0 0 1 .744.67l-4.5 5-.078.07a.5.5 0 0 1-.666-.07l-4.5-5-.06-.082a.501.501 0 0 1 .729-.656l.075.068L10 11.752z'/%3E%3C/svg%3E") no-repeat right .5em center;
  max-width: 100%; color: var(--color-fg); font: inherit; text-overflow: ellipsis; padding: .35em 2em .35em .75em;
}
.dash-select:disabled { opacity: .55; }

/* A placeholder over a part whose data hasn't arrived */
.dash-skeleton { position: relative; min-height: 1.2em; color: transparent !important; }
.dash-skeleton > * { visibility: hidden; }
.dash-skeleton::after { content: ''; position: absolute; inset: 0; border-radius: var(--cds-radius); background: var(--color-border-line); }
@media (prefers-reduced-motion: no-preference) {
  .dash-skeleton::after { animation: dash-wait 1.4s ease-in-out infinite alternate; }
  @keyframes dash-wait { from { opacity: .45; } to { opacity: 1; } }
}

/* Site only (user, Nov 21): the grid is complete, so the buttons carry no marks for whether their runs are back;
   the Compare buttons look different from the value buttons; the ranking's bars have room to show their scale. */
#dash-root .ws-fx-btn.ws-fx-all::before, #dash-root .ws-fx-btn.ws-fx-some::before { content: none; display: none; }
#dash-root .ws-fx-btn.ws-fx-none:not([aria-pressed=true]) { border-style: solid; color: var(--color-fg); }
#dash-root .ws-fx-btn.ws-fx-cmp { border-radius: 999px; border-color: var(--cds-chart-categorical-1); color: var(--cds-chart-categorical-1);
  background: transparent; font-weight: var(--cds-font-weight-medium); padding-inline: var(--cds-pad-md); }
#dash-root .ws-fx-btn.ws-fx-cmp[aria-pressed=true] { background: var(--cds-chart-categorical-1); border-color: var(--cds-chart-categorical-1); color: #fff; }
#dash-root .ws-fx-btn.ws-fx-cmp:disabled { border-color: var(--color-border-line); color: var(--color-fg-muted); }
#dash-root [data-draw="fx_rank"] td:last-child, #dash-root [data-draw="fx_rank"] th:last-child { width: 55%; min-width: 9rem; }
#dash-root .ws-fx-bar { height: 16px; border-radius: 3px; }
/* (on a phone the bars take about half that, so the "Average size of its effect" heading has room) */
@media (max-width: 40rem) { #dash-root [data-draw="fx_rank"] td:last-child, #dash-root [data-draw="fx_rank"] th:last-child { width: 28%; min-width: 4.5rem; } }
/* (user, Nov 21: the ranking shows no Comparisons column, its third) */
#dash-root [data-draw="fx_rank"] th:nth-child(3), #dash-root [data-draw="fx_rank"] td:nth-child(3) { display: none; }

/* Site only (user, Nov 21): on a phone the view buttons leave out "LLM's share" (the page's own phone width) */
@media (max-width: 40rem) { #dash-root [data-fx-view="cov"] { display: none; } }

/* Site only (user, Nov 21): what each factor means, beside its name. Shown while the pointer is on the name or the
   "i" has focus; site-factors.js keeps it open after a tap. */
#dash-root .ws-fx-namecell { position: relative; display: flex; align-items: center; gap: var(--cds-gap-xs); align-self: start; }
#dash-root .ws-fx-info { flex: none; width: 1.25rem; height: 1.25rem; padding: 0; border: 1px solid var(--color-border-line); border-radius: 50%;
  background: var(--color-panel); color: var(--color-fg-muted); font: italic 600 .75rem/1 Georgia, 'Times New Roman', serif; cursor: pointer; }
#dash-root .ws-fx-info:hover, #dash-root .ws-fx-open > .ws-fx-info { color: var(--color-fg); border-color: var(--color-fg-muted); }
#dash-root .ws-fx-info:focus-visible { outline: 2px solid var(--color-fg); outline-offset: 2px; }
#dash-root .ws-fx-tip { display: none; position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; width: min(30rem, calc(100vw - 4rem));
  padding: var(--cds-pad-md) var(--cds-pad-lg); background: var(--cds-surface-popover); color: var(--color-fg); border: 1px solid var(--cds-border);
  border-radius: var(--cds-radius); box-shadow: var(--cds-shadow-popover); font-size: var(--cds-font-size-caption); line-height: 1.5; }
/* (only the name and the "i" bring it up: the rest of the name's cell, to the right of the "i", does not) */
#dash-root .ws-fx-name:hover ~ .ws-fx-tip, #dash-root .ws-fx-info:hover + .ws-fx-tip, #dash-root .ws-fx-info:focus-visible + .ws-fx-tip,
#dash-root .ws-fx-open > .ws-fx-tip { display: grid; gap: var(--cds-gap-xs); }
#dash-root .ws-fx-tip-intro { color: var(--cds-text-secondary); }
#dash-root .ws-fx-tip-row b { font-weight: var(--cds-font-weight-medium); margin-right: .35em; }

/* Site only (user, Nov 20, 21): the page uses the width of the window, up to the model document page's limit on a
   wide screen (1500px, centred; narrowed from 1800px, Nov 21, so a chart fits a 1080p screen) */
#dash-root .ws { max-width: 1500px; }
/* Site only: dragging across the chart zooms to those years (site-chart.js) */
#dash-root [data-draw="fx_chart"] svg > rect { cursor: crosshair; }
#dash-root [data-draw="fx_chart"] svg { user-select: none; -webkit-user-select: none; }
.ws-zoom-band { position: absolute; pointer-events: none; background: var(--color-fg); opacity: .1; }
.ws-fx-years .dash-select { width: auto; }

/* Site only: at phone width a long dropdown made its card, and so the page, wider than the screen.
   A card's column may now shrink below its content, so the dropdown's own max-width holds. */
#dash-root .ws-card { grid-template-columns: minmax(0, 1fr); }

.site-foot a[href$=".html"] { margin-right: var(--cds-gap-md); }
.site-foot { max-width: 1500px; margin: var(--cds-gap-xl) auto 0; color: var(--color-fg-muted); font-size: var(--cds-font-size-caption); }
