/* assets/dcr-page-method.css · The Desert Camel Report, How we build it page (desert-camel-report/method.html).
   Loaded after assets/dcr.css on that page only. Owned by the method lane: this page's own charts and diagrams.
   Shared chart primitives and the report bar stay in assets/dcr.css.

   #method-flow          how a row gets onto the report: HTML nodes in an ordered list; assets/dcr-viz-method.js
                         draws the curved connectors (pipeline language: béziers and rounded nodes, never elbows).
   #register-mix         one square per register source, by what happened to it, shaded by tier.
   #method-floors-chart  every floor as a bar from zero on one count axis.
   #method-coverage      the compensation sources per market and role, by publisher, with each cell's total.
   #method-roles         the authored INFINITE mark, and under it one rail per role cut aligned to the mark's rooms
                         (role colours dv-1 to dv-3, as on the roles page).
   The three charts are SVG drawn by the script from their tables; the tables stay the no-script view.
   Panels are solid elev-1 (data ink never sits on glass) and nodes elev-2; nothing here is glass.
   Magenta: one insight on the page, the "Never published" row of #register-mix; the close band carries the action.
   Logical properties only, so the Arabic twin mirrors the layout; plot areas carry dir="ltr" and do not mirror. */

.dcr-mviz.k-sec{ padding-block:clamp(20px, 3vw, 32px) clamp(12px, 2vw, 24px); }
.dcr-mviz .dcr-dash{ margin-block-start:0; }
.dcr-mviz .dcr-w{ position:relative; }
@media (min-width:1024px){
  .dcr-mviz .dcr-dash > .dcr-w--m7{ grid-column:span 7; }
  .dcr-mviz .dcr-dash > .dcr-w--m5{ grid-column:span 5; }
}
.dcr-mviz .dcr-takeaway{ font:600 15px/1.5 var(--font-sans); color:var(--ink); text-wrap:pretty; }
.dcr-mviz .dcr-takeaway .k-num{ font-family:var(--font-mono); font-variant-numeric:tabular-nums; }
.dcr-mviz .dcr-w__head + .dcr-takeaway{ margin-block-start:-6px; }

/* ---------------------------------------------------------------- tier swatches (sequential, one hue) */
.dcr-mtier{ display:inline-block; inline-size:12px; block-size:12px; border-radius:3px; flex:none; }
.dcr-mtier--primary{ background:var(--purple-300); }
.dcr-mtier--secondary{ background:var(--purple-600); }
.dcr-mtier--snippet{ background:transparent; box-shadow:inset 0 0 0 1.5px var(--slate-500); }
.dcr-mkey{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:6px 16px;
  font:400 13px/1.4 var(--font-sans); color:var(--ink-muted); }
.dcr-mkey li{ display:inline-flex; align-items:center; gap:8px; }

/* ---------------------------------------------------------------- the flow */
.dcr-mflow{ margin:0; display:grid; gap:14px; }
.dcr-mflow__grid{ position:relative; list-style:none; margin:0; padding:0; display:grid; gap:22px;
  grid-template-columns:minmax(0, 1fr); padding-inline-end:26px; }
.dcr-mflow__svg{ position:absolute; inset:0; inline-size:100%; block-size:100%; overflow:visible; pointer-events:none; z-index:0; }
.dcr-mflow__svg path{ fill:none; stroke:var(--slate-500); stroke-width:2; stroke-linecap:round; }
.dcr-mflow__svg path.is-exit{ stroke:var(--dv-6); stroke-dasharray:2 6; }
.dcr-mflow__svg circle{ fill:var(--slate-500); }
.dcr-mflow__svg circle.is-exit{ fill:var(--dv-6); }
.dcr-mflow__n{ position:relative; z-index:1; display:grid; gap:10px; align-content:start; align-self:start; min-inline-size:0;
  padding:16px 18px; border-radius:16px; background:var(--elev-2); }
.dcr-mflow__n--exit{ background:var(--elev-1); box-shadow:inset 0 0 0 1px var(--elev-4); }
.dcr-mflow__n--gate{ box-shadow:inset 0 0 0 1px var(--slate-700); }
.dcr-mflow__k{ display:flex; align-items:baseline; gap:10px; font:500 12px/1.4 var(--font-mono);
  letter-spacing:var(--track-label, .08em); text-transform:uppercase; color:var(--ink); }
.dcr-mflow__k .k-num{ color:var(--ink-muted); }
.dcr-mflow__s{ font:400 13px/1.5 var(--font-sans); color:var(--ink-muted); }
.dcr-mflow__s .k-link{ color:var(--ink); font-weight:600; }
.dcr-mflow__big{ font:500 15px/1.3 var(--font-sans); color:var(--ink-muted); }
.dcr-mflow__big .k-num{ font:500 clamp(30px, 3.2vw, 40px)/1 var(--font-mono); letter-spacing:-0.03em; color:var(--ink); }
.dcr-mflow__ico svg{ display:block; inline-size:28px; block-size:28px; fill:none; stroke:var(--ink); stroke-width:1.8;
  stroke-linecap:round; stroke-linejoin:round; }
.dcr-mflow__n--exit .dcr-mflow__ico svg{ stroke:var(--ink-muted); }
.dcr-mflow__tiers{ display:flex; gap:2px; block-size:10px; }
.dcr-mflow__tiers .dcr-mtier{ inline-size:auto; block-size:100%; flex-basis:0; }
.dcr-mflow__legend{ list-style:none; margin:0; padding:0; display:grid; gap:4px; font:400 13px/1.4 var(--font-sans); color:var(--ink-muted); }
.dcr-mflow__legend li{ display:flex; align-items:center; gap:8px; }
.dcr-mflow__legend b{ font-weight:500; color:var(--ink); }
.dcr-mflow__kpis{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.dcr-mflow__kpis li{ display:grid; grid-template-columns:auto minmax(0, 1fr); gap:0 10px; align-items:baseline; }
.dcr-mflow__kpis b{ grid-row:span 2; font:500 24px/1 var(--font-mono); letter-spacing:-0.02em; color:var(--ink); font-variant-numeric:tabular-nums; }
.dcr-mflow__kpis span{ font:500 13px/1.35 var(--font-sans); color:var(--ink); }
.dcr-mflow__kpis time{ font:500 11px/1.4 var(--font-mono); letter-spacing:var(--track-label, .08em); text-transform:uppercase; color:var(--ink-muted); }

@media (min-width:720px){
  .dcr-mflow__grid{ grid-template-columns:repeat(3, minmax(0, 1fr)); gap:28px 40px; padding-inline-end:0; }
  [data-flow-node="src"]{ grid-column:1; grid-row:1; }
  [data-flow-node="prop"]{ grid-column:2; grid-row:1; }
  [data-flow-node="pend"]{ grid-column:3; grid-row:1; }
  [data-flow-node="check"]{ grid-column:1; grid-row:2; }
  [data-flow-node="out"]{ grid-column:2 / span 2; grid-row:2; }
  [data-flow-node="rej"]{ grid-column:1; grid-row:3; }
}
@media (min-width:1100px){
  .dcr-mflow__grid{ grid-template-columns:repeat(5, minmax(0, 1fr)); gap:28px 36px; }
  [data-flow-node="check"]{ grid-column:4; grid-row:1; }
  [data-flow-node="out"]{ grid-column:5; grid-row:1 / span 2; }
  [data-flow-node="rej"]{ grid-column:4; grid-row:2; }
}

/* ---------------------------------------------------------------- the three SVG charts */
.dcr-mchart{ margin:0; min-inline-size:0; }
.dcr-mchart > *{ min-inline-size:0; max-inline-size:100%; }
.dcr-mchart .dcr-mkey{ order:0; margin-block-end:14px; }
.dcr-mchart__plot{ position:relative; border-radius:12px; }
.dcr-mchart__plot:focus-visible{ outline:3px solid var(--focus-ring); outline-offset:4px; }
.dcr-mchart .dcr-chartsvg{ overflow:visible; }
.dcr-mchart .dcr-chartsvg text{ font-family:var(--font-sans); }
.dcr-mchart .m-lab{ fill:var(--ink); font:500 13px/1 var(--font-sans); }
.dcr-mchart .m-lab--muted{ fill:var(--ink-muted); font-weight:400; }
.dcr-mchart .m-grp{ fill:var(--ink-muted); font:500 11px/1 var(--font-mono); letter-spacing:.06em; text-transform:uppercase; }
.dcr-mchart .m-n{ fill:var(--ink); font:500 13px/1 var(--font-mono); font-variant-numeric:tabular-nums; }
.dcr-mchart .m-ax{ fill:var(--ink-muted); font:500 11px/1 var(--font-mono); font-variant-numeric:tabular-nums; }
.dcr-mchart .m-grid{ stroke:var(--dv-grid); stroke-width:1; }
.dcr-mchart .m-base{ stroke:var(--elev-4); stroke-width:1; }
.dcr-mchart .m-track{ fill:var(--dv-grid); }
.dcr-mchart .m-bar{ fill:var(--dv-1); }
.dcr-mchart .m-t--primary{ fill:var(--purple-300); }
.dcr-mchart .m-t--secondary{ fill:var(--purple-600); }
.dcr-mchart .m-t--snippet{ fill:var(--elev-1); stroke:var(--slate-500); stroke-width:1.5; }
.dcr-mchart .m-hi{ fill:none; stroke:var(--dv-highlight); stroke-width:2; }
.dcr-mchart .m-dot{ fill:var(--dv-1); }
.dcr-mchart .m-dotn{ fill:var(--ground); font:600 11px/1 var(--font-mono); font-variant-numeric:tabular-nums; }
.dcr-mchart .m-zero{ fill:var(--elev-4); }
.dcr-mchart .m-gap{ fill:url(#dcr-mcov-hatch); }
.dcr-mchart .m-gapbg{ fill:var(--elev-1); }
.dcr-mchart .m-hatch{ stroke:var(--slate-700); stroke-width:1.5; }
.dcr-mchart .m-sel{ fill:none; stroke:var(--focus-ring); stroke-width:2; }
.dcr-mchart .m-hit{ fill:transparent; }
.dcr-mchart a .m-hit, .dcr-mchart a{ cursor:pointer; }
.dcr-mchart .dcr-chart__cap{ order:2; }
.dcr-mchart .dcr-seedata{ order:4; }
.dcr-mchart .dcr-chart__data :is(th, td){ padding:8px 10px; }
.dcr-mchart .dcr-chart__data tfoot :is(th, td){ font-weight:600; color:var(--ink); border-block-end:0; }

/* the stat chips under the floors chart and the publisher key under the coverage chart: solid, not glass */
.dcr-mchips, .dcr-msrcs{ order:3; list-style:none; margin:14px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.dcr-mchips li, .dcr-msrcs a{ display:inline-flex; align-items:center; gap:6px; min-height:32px; padding:0 12px; border-radius:999px;
  background:var(--elev-2); font:500 13px/1.3 var(--font-sans); color:var(--ink-muted); }
.dcr-mchips b{ font-weight:500; color:var(--ink); }
.dcr-msrcs a{ color:var(--ink); text-decoration:none; }
.dcr-msrcs a b{ font-weight:500; color:var(--ink-muted); }
.dcr-msrcs a:hover{ background:var(--elev-3); }
.dcr-mcov .dcr-msrcs{ order:0; margin:0 0 14px; }
.dcr-msrcs a:focus-visible{ outline:3px solid var(--focus-ring); outline-offset:2px; }

/* ---------------------------------------------------------------- the role cuts on the INFINITE Pipeline */
.dcr-mroles{ margin:0; display:grid; gap:16px; }
/* the authored mark and the rails share one width, so each lit stretch sits under the mark's own rooms */
.dcr-mroles__mark{ display:block; inline-size:100%; block-size:auto; }
.dcr-mroles__list{ list-style:none; margin:0; padding:0; display:grid; gap:14px; }
.dcr-mroles__i{ display:grid; gap:8px; min-inline-size:0; }
.dcr-mroles__t{ display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 10px; margin:0; }
.dcr-mroles__t b{ display:inline-flex; align-items:center; gap:8px; font:600 15px/1.3 var(--font-sans); color:var(--ink); }
.dcr-mroles__t b::before{ content:""; flex:none; inline-size:10px; block-size:10px; border-radius:3px; background:var(--dv-6); }
.dcr-mroles__t span{ font:500 11px/1.45 var(--font-mono); letter-spacing:.04em; text-transform:uppercase; color:var(--ink-muted); }
.dcr-mroles__rail{ display:grid; gap:2px; block-size:12px; }
.dcr-mroles__rail i{ display:block; border-radius:3px; background:var(--slate-800); }
.dcr-mroles__rail i.dcr-mroles__end{ background:none; }
.dcr-mroles__i--sdr .dcr-mroles__t b::before, .dcr-mroles__i--sdr .dcr-mroles__rail i.is-on{ background:var(--dv-1); }
.dcr-mroles__i--ae .dcr-mroles__t b::before, .dcr-mroles__i--ae .dcr-mroles__rail i.is-on{ background:var(--dv-2); }
.dcr-mroles__i--revops .dcr-mroles__t b::before, .dcr-mroles__i--revops .dcr-mroles__rail i.is-on{ background:var(--dv-3); }
@media (forced-colors:active){ .dcr-mroles__rail i.is-on{ background:CanvasText; } }

/* ---------------------------------------------------------------- the hover and keyboard read-out */
.dcr-mtip{ position:absolute; z-index:3; max-inline-size:260px; padding:10px 12px; border-radius:10px; background:var(--elev-3);
  color:var(--ink); font:400 13px/1.45 var(--font-sans); pointer-events:none; box-shadow:0 8px 24px rgba(0,0,0,.5); }
.dcr-mtip[hidden]{ display:none; }
.dcr-mtip b{ display:block; margin-block-end:4px; font-weight:600; }
.dcr-mtip span{ display:flex; justify-content:space-between; gap:14px; color:var(--ink-muted); }
.dcr-mtip span i{ font-style:normal; font-family:var(--font-mono); color:var(--ink); }

/* ---------------------------------------------------------------- the method in full, folded */
.dcr-mfull.k-sec{ padding-block-start:clamp(28px, 4vw, 48px); }
.dcr-mfull__head{ margin-block-end:clamp(16px, 2vw, 24px); }
.dcr-mfull__head .t-eyebrow{ margin:0 0 6px; }
.dcr-mfull__t{ margin:0; font:600 var(--fs-h3, 24px)/1.25 var(--font-sans); letter-spacing:-0.01em; color:var(--ink); }
.dcr-mfolds{ display:grid; gap:8px; }
.dcr-mfolds .dcr-msec.dcr-mfold{ margin:0; }
.dcr-mfold__d{ border-radius:16px; background:var(--elev-1); }
.dcr-mfold__s{ display:flex; align-items:center; gap:16px; min-height:56px; padding:12px 18px; cursor:pointer; list-style:none;
  border-radius:16px; }
.dcr-mfold__s::-webkit-details-marker{ display:none; }
.dcr-mfold__s::after{ content:"+"; margin-inline-start:auto; flex:none; font:400 20px/1 var(--font-mono); color:var(--ink-muted); }
.dcr-mfold__d[open] > .dcr-mfold__s::after{ content:"\2212"; }
.dcr-mfold__s:hover{ background:var(--elev-2); }
.dcr-mfold__s:focus-visible{ outline:3px solid var(--focus-ring); outline-offset:2px; }
.dcr-mfold__n{ flex:none; inline-size:2.2em; font:500 12px/1 var(--font-mono); letter-spacing:var(--track-label, .08em); color:var(--ink-muted); }
.dcr-mfold__s h2{ margin:0; font:600 16px/1.35 var(--font-sans); color:var(--ink); text-wrap:balance; }
.dcr-mfold__b{ padding:4px 18px 22px; }
.dcr-mfold__b > :first-child{ margin-block-start:0; }
@media (min-width:720px){ .dcr-mfold__b{ padding-inline-start:calc(18px + 2.2em * 12 / 16 + 16px); } }
.dcr-mfold__b .dcr-table-wrap:first-child{ margin-block-start:0; }

@media (prefers-reduced-motion:no-preference){
  .dcr-mfold__s{ transition:background-color var(--dur-instant, 120ms) var(--ease-standard, ease); }
}
@media print{
  .dcr-mflow__svg, .dcr-mtip{ display:none; }
  .dcr-mfold__s::after{ content:none; }
}
