/* /how-we-measure, /sample, /clean-methods (page_layouts/method.py). Every rule sits under body.t-method. */
/* --- rows: a full-width article, one row per section (heading on the left, body on the right). The same block is in
   audience.css, about.css, method.css and tool.css, each under its own body class. --- */
body.t-method .article .wrap { grid-template-columns: minmax(0, 1fr); }
body.t-method .toc { display: none; }
body.t-method .prose { --gap: clamp(24px, 4.4vw, 64px); --row: clamp(52px, 7vw, 96px); --frame: 0 0 0 5px var(--paper), 0 0 0 7px var(--ink);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--gap); row-gap: var(--row); }
body.t-method .prose > * { grid-column: 1 / -1; margin-top: 0; min-width: 0; }
body.t-method .me { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--row); }
body.t-method .me > * { min-width: 0; }
body.t-method .me-sec { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--gap); padding-top: 26px; border-top: var(--came) solid var(--ink); }
body.t-method .me-sec::before { content: ""; position: absolute; left: 0; top: -2px; width: 44px; height: 8px; background: var(--accent); }
body.t-method .me-sec h2 { margin: 0; padding: 0; border: 0; font-size: clamp(1.375rem, 1.05rem + 1.3vw, 2rem); line-height: 1.06; overflow-wrap: break-word; }
body.t-method .me-sec h2::before { content: none; }
body.t-method .me-h, body.t-method .me-b { min-width: 0; }
body.t-method .me-b > * { margin: 0; }
body.t-method .me-b > * + * { margin-top: 1.1em; }
body.t-method .me-b > p, body.t-method .me-b > ul:not([class]) > li, body.t-method .me-b > ol:not([class]) > li { max-width: 64ch; }
body.t-method .me-sec--wide { grid-template-columns: minmax(0, 1fr); }
body.t-method .me-sec--wide > .me-h { margin-bottom: 24px; max-width: 26ch; }
@media (min-width: 901px) {
  body.t-method .me-sec:not(.me-sec--wide) > .me-h > h2 { position: sticky; top: calc(var(--bar) + 44px); }
}
@media (max-width: 900px) {
  body.t-method .prose, body.t-method .me-sec { grid-template-columns: minmax(0, 1fr); }
  body.t-method .me-sec > .me-h { margin-bottom: 18px; }
}
/* a stained glass window hung in the page */
body.t-method .me-win { min-width: 0; margin: 7px; background: var(--night) center / cover no-repeat; background-image: var(--w-m); border: var(--came) solid var(--ink); box-shadow: var(--frame); }
@media (max-width: 600px) { body.t-method .me-win { background-image: var(--w-s); } }
@media (min-width: 1700px) { body.t-method .me-win { background-image: var(--w-l); } }
/* bold-led items as leaded cells, plain items as ruled rows */
body.t-method ul.me-cells { list-style: none; margin-left: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--came); background: var(--ink); border: var(--came) solid var(--ink); }
body.t-method ul.me-cells > li { margin: 0; max-width: none; padding: 18px 20px 20px; background: var(--tint); font-size: 1rem; line-height: 1.55; }
body.t-method ul.me-cells > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
body.t-method ul.me-cells > li > strong:first-child { font-size: 1.0625rem; }
body.t-method ul.me-rows { list-style: none; padding: 0; border-top: var(--came) solid var(--ink); }
body.t-method ul.me-rows > li { position: relative; margin: 0; max-width: none; padding: 14px 0 14px 32px; border-bottom: 1px solid var(--ink); }
body.t-method ul.me-rows > li::before { content: ""; position: absolute; left: 4px; top: calc(14px + .5em); width: 10px; height: 10px; background: var(--accent); }
@media (max-width: 700px) { body.t-method ul.me-cells { grid-template-columns: minmax(0, 1fr); } }
/* count tables: a bar per row */
body.t-method .table-wrap { margin: 0; }
body.t-method .me-bars table { min-width: 0; }
body.t-method .me-bars .bar-cell { width: 44%; vertical-align: middle; }
body.t-method .me-bars .bar-track { display: block; height: 16px; border: 1.5px solid var(--ink); background: var(--paper); }
body.t-method .me-bars .bar-fill { display: block; height: 100%; background: var(--accent); }
body.t-method .me-bars td .mark { margin-right: 9px; }
body.t-method .me-bars td:not(:first-child):not(.bar-cell) { font-family: var(--f-mono); font-size: .9375rem; white-space: nowrap; }
body.t-method .me-bars td:has(> .mark) { white-space: nowrap; }
@media (max-width: 600px) {
  body.t-method .me-bars .bar-cell { width: 34%; }
  body.t-method .me-bars th, body.t-method .me-bars td { padding: 10px; }
  body.t-method .me-bars table:has(tr > :nth-child(4)) .bar-cell { display: none; }
}
/* the questions and the sources, after the rows */
body.t-method .prose > h2#faq { grid-column: 1; align-self: start; margin: 0 calc(-1 * var(--gap)) 0 0; padding: 26px var(--gap) 0 0; font-size: clamp(1.375rem, 1.05rem + 1.3vw, 2rem); line-height: 1.06; }
body.t-method .prose > .faq-list { grid-column: 2; margin: 0; }
body.t-method .prose > .sources { margin: 0; }
@media (min-width: 901px) {
  body.t-method .prose > .sources ol { columns: 2; column-gap: var(--gap); }
  body.t-method .prose > .sources li { break-inside: avoid; }
}
@media (max-width: 900px) {
  body.t-method .prose > h2#faq { grid-column: 1; margin: 0 0 calc(18px - var(--row)); padding-right: 0; }
  body.t-method .prose > .faq-list { grid-column: 1; }
}

/* =============== /how-we-measure =============== */
body.t-method .me-open { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: center; }
body.t-method .me-open-t > p { margin: 0; max-width: 60ch; }
body.t-method .me-open-t > .me-lead { max-width: 30em; font: 500 clamp(1.25rem, 1.03rem + 1vw, 1.75rem)/1.28 var(--f-body); letter-spacing: -.012em; text-wrap: balance; }
body.t-method .me-open-t > p + p { margin-top: 1.1em; }
body.t-method .me-open-t > .me-tag { font: 900 clamp(1.25rem, 1rem + 1.2vw, 2rem)/1.04 var(--f-head); text-transform: uppercase; letter-spacing: -.02em; color: var(--accent); }
/* the window: one pane per answer */
body.t-method .me-window { margin: 7px; min-width: 0; }
body.t-method .me-eq { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; padding: 18px clamp(14px, 2vw, 24px) 16px; border-bottom: var(--came) solid var(--ink); }
body.t-method .me-term { display: grid; justify-items: center; gap: 10px; min-width: 0; }
body.t-method .me-term b { font: 900 clamp(1.875rem, 1.3rem + 2.6vw, 3.5rem)/.9 var(--f-head); letter-spacing: -.04em; }
body.t-method .me-term--sum b { color: var(--accent); }
body.t-method .me-op { padding-top: .35em; font: 700 clamp(1.125rem, 1rem + .8vw, 1.5rem)/1 var(--f-head); color: var(--sub); }
body.t-method .me-pic { display: flex; align-items: center; gap: 3px; height: 16px; }
body.t-method .me-pic i { display: grid; place-items: center; width: 14px; height: 14px; border: 1.5px solid var(--ink); font: 500 .5625rem/1 var(--f-mono); font-style: normal; }
body.t-method .me-pic--sum i { background: var(--accent); border-color: var(--accent); }
body.t-method .me-pic .mark { width: 14px; height: 14px; vertical-align: 0; }
body.t-method .me-panes { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)) 6px repeat(3, minmax(0, 1fr)) 6px repeat(3, minmax(0, 1fr)) 6px repeat(3, minmax(0, 1fr)) 6px repeat(3, minmax(0, 1fr)); gap: 4px; align-items: center; padding: 14px clamp(14px, 2vw, 24px) clamp(16px, 2vw, 24px); background: var(--tint); }
body.t-method .me-q { grid-column: span 3; margin-bottom: 4px; padding-bottom: 5px; border-bottom: 1.5px solid var(--ink); text-align: center; font: 500 var(--t-label)/1 var(--f-mono); color: var(--sub); }
body.t-method .me-ai { display: flex; align-items: center; gap: 8px; padding-right: 12px; font: 700 .6875rem/1 var(--f-head); text-transform: uppercase; white-space: nowrap; }
body.t-method .me-ai em { font-style: normal; }
body.t-method .me-ai .mark { width: 16px; height: 16px; vertical-align: 0; }
body.t-method .me-panes i { aspect-ratio: 1; min-width: 0; background: var(--paper); border: 1.5px solid var(--ink); }
body.t-method .me-panes i.lit { background: var(--accent); border-color: var(--accent); }
/* the steps as a path */
body.t-method .me-path ol { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 0; }
body.t-method .me-path--2 ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.t-method .me-path--4 ol { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.t-method .me-path li { counter-increment: step; position: relative; margin: 0; max-width: none; padding: 66px 30px 0 0; background: none; border: 0; font-size: 1rem; line-height: 1.58; }
body.t-method .me-path li::before { content: counter(step); position: absolute; left: 0; top: 0; bottom: auto; width: 46px; height: 46px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 900 1.125rem/1 var(--f-head); }
body.t-method .me-path li::after { content: ""; position: absolute; left: 46px; right: 0; top: 22px; height: 2px; background: var(--ink); }
body.t-method .me-path li:last-child::after { right: 30px; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 15px); }
body.t-method .me-path li:last-child::before { background: var(--accent); }
body.t-method .me-path li > strong:first-child { display: block; margin-bottom: 8px; font: 700 1.0625rem/1.2 var(--f-head); text-transform: uppercase; letter-spacing: -.01em; }
body.t-method .me-sec--wide .me-b > p { max-width: 72ch; }
body.t-method .me-sec--wide .me-b > .me-path + p { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--ink); }
body.t-method .me-who { display: flex; gap: 6px; margin-bottom: 12px; }
body.t-method .me-who:empty { display: none; }
body.t-method .me-who .mark { width: 22px; height: 22px; vertical-align: 0; }
body.t-method .me-fields table { font-size: 1rem; }
body.t-method .me-fields td:first-child { white-space: nowrap; font: 500 .8125rem/1.6 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }

/* =============== /sample: a report sheet per part =============== */
body.t-method .sm-open { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: center; }
body.t-method .sm-open > p { margin: 0; font: 500 clamp(1.25rem, 1.03rem + 1vw, 1.75rem)/1.28 var(--f-body); letter-spacing: -.012em; text-wrap: balance; }
body.t-method .sm-flag { padding: 16px 20px; background: var(--paper); border: var(--came) dashed var(--ink); font-size: .9375rem; line-height: 1.55; }
body.t-method .sm-flag p { max-width: none; }
body.t-method .sm-flag strong:first-child { display: block; margin-bottom: 6px; font: 500 var(--t-label)/1.3 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; }
body.t-method .sm-part { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap); align-items: start; }
body.t-method .sm-side { min-width: 0; align-self: stretch; }
body.t-method .sm-side-in { position: sticky; top: calc(var(--bar) + 44px); display: grid; gap: 18px; }
body.t-method .sm-side h2 { margin: 0; font-size: clamp(1.375rem, 1.05rem + 1.3vw, 2rem); line-height: 1.06; overflow-wrap: break-word; }
body.t-method .sm-side p { margin: 0; }
body.t-method .sm-nav { list-style: none; margin: 0; padding: 0; border: var(--came) solid var(--ink); font-size: .9375rem; }
body.t-method .sm-nav li { margin: 0; max-width: none; border-top: 1px solid var(--ink); }
body.t-method .sm-nav li:first-child { border-top: 0; }
body.t-method .sm-nav a { display: block; padding: 9px 14px; line-height: 1.35; text-decoration: none; color: var(--sub); }
body.t-method .sm-nav a:hover { background: var(--tint); color: var(--ink); }
body.t-method .sm-sheet { margin: 7px; min-width: 0; }
body.t-method .sm-blk > h3 { margin: 0; padding: 10px 18px; border-top: var(--came) solid var(--ink); border-bottom: var(--came) solid var(--ink); background: var(--tint); font: 500 var(--t-label)/1.3 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; }
body.t-method .sm-blk--top > h3 { padding: 16px 18px; border-top: 0; background: var(--ink); color: var(--paper); font: 900 clamp(1.125rem, .95rem + 1vw, 1.625rem)/1.05 var(--f-head); letter-spacing: -.02em; }
body.t-method .sm-c { padding: 18px 18px 22px; }
body.t-method .sm-c > * { margin: 0; }
body.t-method .sm-c > * + * { margin-top: 1em; }
body.t-method .sm-c > p, body.t-method .sm-c li { max-width: 70ch; }
body.t-method .sm-blk--top .sm-c > p:first-child { font: 400 var(--t-label)/1.5 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--sub); }
body.t-method .sm-figure .stat { margin: 0; padding: 0; background: none; border: 0; gap: 8px 22px; }
body.t-method .sm-figure .stat b { font-size: clamp(2.5rem, 1.7rem + 3.4vw, 4.75rem); white-space: nowrap; }
body.t-method .sm-figure .stat span { font-weight: 500; }
body.t-method .sm-figure .stat small { font: 400 var(--t-label)/1.4 var(--f-mono); letter-spacing: .04em; color: var(--sub); }
body.t-method .sm-dots { display: grid; grid-template-columns: repeat(25, 1fr); gap: 4px; max-width: 580px; margin-top: 18px; }
body.t-method .sm-dots i { aspect-ratio: 1; min-width: 0; border: 1.5px solid var(--ink); }
body.t-method .sm-dots i.lit { background: var(--accent); border-color: var(--accent); }
body.t-method .sm-meter { max-width: 580px; height: 24px; margin-top: 18px; border: var(--came) solid var(--ink); }
body.t-method .sm-meter span { display: block; height: 100%; background: var(--accent); }
body.t-method .sm-means { padding: 12px 16px 14px; background: var(--tint); border: 1px solid var(--ink); font-size: .9375rem; line-height: 1.55; }
body.t-method .sm-c > p.sm-means { max-width: none; }
body.t-method .sm-means > strong:first-child { display: block; margin-bottom: 4px; font: 500 var(--t-label)/1.3 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--sub); }
body.t-method .sm-means > strong:first-child ~ strong { font-weight: 650; }
body.t-method .sm-quote { padding: 18px 18px 20px; background: var(--accent); color: var(--on-accent); border: 0; }
body.t-method .sm-quote p { max-width: 64ch; }
body.t-method .sm-quote p:first-child { font: 500 var(--t-label)/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
body.t-method .sm-quote p:first-child strong { font-weight: 500; }
body.t-method .sm-quote p + p { margin-top: 12px; font-size: 1.125rem; line-height: 1.45; font-weight: 500; }
body.t-method .sm-quote ::selection { background: #fff; color: var(--accent); }
body.t-method ol.sm-list { list-style: none; counter-reset: q; padding: 0; display: grid; gap: 8px; }
body.t-method ol.sm-list > li { counter-increment: q; position: relative; margin: 0; max-width: none; padding: 12px 16px 12px 54px; background: var(--tint); border: 1.5px solid var(--ink); font-size: 1rem; line-height: 1.5; }
body.t-method ol.sm-list > li::before { content: counter(q); position: absolute; left: 0; top: 0; width: 40px; height: 100%; display: grid; place-items: center; border-right: 1px solid var(--ink); font: 500 .8125rem/1 var(--f-mono); color: var(--sub); }
body.t-method .sm-c .table-wrap table { font-size: .9375rem; }
body.t-method .sm-groups tr.sm-g td { border-top: var(--came) solid var(--ink); }
body.t-method .sm-groups tbody tr:first-child td { border-top: 0; }
body.t-method .sm-groups tr:not(.sm-g) td { border-bottom-color: rgba(68, 44, 37, .35); }
body.t-method .sm-groups td:first-child { font: 700 .8125rem/1.3 var(--f-head); text-transform: uppercase; letter-spacing: -.01em; }
body.t-method .sm-groups td:last-child { white-space: nowrap; font: 500 var(--t-label)/1.7 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
body.t-method .sm-close { margin: 0 7px; padding: clamp(20px, 3vw, 36px); max-width: 820px; }
body.t-method .sm-close h2 { margin: 0 0 14px; padding: 0; border: 0; }
body.t-method .sm-close h2::before { content: none; }
body.t-method .sm-close p { max-width: 60ch; }

/* =============== /clean-methods: two facing columns =============== */
body.t-method .cl-open { max-width: 880px; }
body.t-method .cl-open > p { margin: 0; max-width: 62ch; }
body.t-method .cl-open > p + p { margin-top: 1.1em; }
body.t-method .cl-open > .cl-say { max-width: 28em; font: 500 clamp(1.25rem, 1.03rem + 1vw, 1.75rem)/1.28 var(--f-body); letter-spacing: -.012em; text-wrap: balance; }
body.t-method .cl-face { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: start; margin: 0 7px; }
body.t-method .cl-col { min-width: 0; }
body.t-method .cl-col--yes { position: sticky; top: var(--cl-top, auto); }
body.t-method .cl-col-in { box-shadow: var(--frame); }
body.t-method .cl-col h2 { margin: 0; padding: 14px 18px; border: 0; border-bottom: var(--came) solid var(--ink); font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem); }
body.t-method .cl-col h2::before { content: none; }
body.t-method .cl-col--no h2 { background: var(--ink); color: var(--paper); }
body.t-method .cl-col--yes h2 { background: var(--accent); color: var(--on-accent); }
body.t-method .cl-item { position: relative; padding: 18px 20px 20px 60px; border-top: 1px solid var(--ink); }
body.t-method .cl-col h2 + .cl-item { border-top: 0; }
body.t-method .cl-item::before { content: ""; position: absolute; left: 18px; top: 19px; width: 26px; height: 26px; background: var(--ink) center / 16px no-repeat; }
body.t-method .cl-col--no .cl-item::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E9DFCF' stroke-width='3' stroke-linecap='square'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
body.t-method .cl-col--yes .cl-item::before { background-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='square'%3E%3Cpath d='M5 12.5l5 5L19.5 7'/%3E%3C/svg%3E"); }
body.t-method .cl-item h3 { margin: 0; font: 650 1.125rem/1.3 var(--f-body); text-transform: none; letter-spacing: -.005em; }
body.t-method .cl-item p { margin: 8px 0 0; max-width: none; font-size: .9375rem; line-height: 1.58; }
body.t-method .cl-close { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 18px var(--gap); margin: 0 7px; padding: clamp(22px, 3.4vw, 48px); background: var(--ink); color: var(--paper); border: var(--came) solid var(--ink); box-shadow: var(--frame); }
body.t-method .cl-close h2 { margin: 0; padding: 0; border: 0; color: var(--paper); font-size: clamp(1.375rem, 1.05rem + 1.3vw, 2rem); }
body.t-method .cl-close h2::before { content: none; }
body.t-method .cl-close p { margin: 0; max-width: 56ch; font-size: var(--t-lg); line-height: 1.5; }
body.t-method .cl-close p + p { margin-top: 1em; }
body.t-method .cl-close ::selection { background: var(--paper); color: var(--ink); }
body.t-method .cl-close a { color: var(--paper); text-decoration-color: var(--paper); }
body.t-method .cl-close :focus-visible, body.t-method .sm-quote :focus-visible { outline-color: var(--paper); }
body.t-method .sm-quote a { color: var(--on-accent); text-decoration-color: var(--on-accent); }

@media (max-width: 900px) {
  body.t-method .me-open, body.t-method .sm-open, body.t-method .sm-part, body.t-method .cl-face, body.t-method .cl-close { grid-template-columns: minmax(0, 1fr); }
  body.t-method .sm-side-in { position: static; }
  body.t-method .sm-nav { display: none; }
  body.t-method .cl-col--yes { position: static; }
  body.t-method .me-path ol, body.t-method .me-path--2 ol, body.t-method .me-path--4 ol { grid-template-columns: minmax(0, 1fr); }
  body.t-method .me-path li { padding: 4px 0 30px 66px; }
  body.t-method .me-path li::after, body.t-method .me-path li:last-child::after { left: 22px; right: auto; top: 46px; bottom: 0; width: 2px; height: auto; }
  body.t-method .me-path li:last-child::after { background: repeating-linear-gradient(180deg, var(--ink) 0 8px, transparent 8px 15px); }
  body.t-method .me-path li:last-child { padding-bottom: 6px; }
}
@media (max-width: 600px) {
  body.t-method .me-ai em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  body.t-method .me-ai { padding-right: 6px; }
  body.t-method .me-panes { gap: 3px; grid-template-columns: auto repeat(3, minmax(0, 1fr)) 3px repeat(3, minmax(0, 1fr)) 3px repeat(3, minmax(0, 1fr)) 3px repeat(3, minmax(0, 1fr)) 3px repeat(3, minmax(0, 1fr)); }
  body.t-method .me-panes i { border-width: 1px; }
  body.t-method .me-pic i, body.t-method .me-pic .mark { width: 9px; height: 9px; font-size: 0; }
  body.t-method .me-pic { gap: 2px; }
  body.t-method .me-fields td:first-child { white-space: normal; }
  body.t-method .sm-dots { gap: 3px; }
  body.t-method .sm-dots i { border-width: 1px; }
  body.t-method .sm-c { padding: 16px 14px 20px; }
  body.t-method .sm-blk > h3 { padding-left: 14px; padding-right: 14px; }
  body.t-method .cl-item { padding: 16px 16px 18px 52px; }
  body.t-method .cl-item::before { left: 14px; }
}
