/* The house report style (spec 036): every original report's look, applied
   automatically. Extracted from the first original (The Detector Paradox)
   and scoped under .original-report with native CSS nesting, so a report
   is SEMANTIC MARKUP ONLY - masthead, standfirst, eyebrow, tables - and
   inline <style>/<link> tags in pasted documents are stripped at render.
   body/:root rules from the source became the container's own (&). */
.original-report {

  & {
    --ground: #edf0ee;
    --surface: #f6f8f6;
    --sunken: #e2e7e3;
    --ink: #131917;
    --ink-2: #3d4844;
    --ink-3: #6b7873;
    --rule: #cdd6d1;
    --rule-soft: #dde3df;
    --signal: #0e6e63;
    --signal-soft: #d3e5e0;
    --alert: #8a5900;
    --alert-soft: #f0e4c8;
    --drift: #8c2f39;
    --drift-soft: #f0d9da;

    --display: "Newsreader", "Iowan Old Style", Georgia, serif;
    --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

    --measure: 66ch;
    --wide: 62rem;
  }

  
  
  * { box-sizing: border-box; }

  & {
    background: var(--ground);
    color: var(--ink);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
  }

  .page {
    max-width: var(--wide);
    margin: 0 auto;
    padding: 0 1.5rem 6rem;
  }

  .col {
    max-width: var(--measure);
    margin-inline: auto;
  }

  h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; font-weight: 500; }

  p { margin: 0; }

  .col > * + * { margin-top: 1.1rem; }

  a { color: var(--signal); text-underline-offset: 3px; }
  a:focus-visible, summary:focus-visible {
    outline: 2px solid var(--signal);
    outline-offset: 3px;
    border-radius: 2px;
  }

  .eyebrow {
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-3);
  }

  /* ---------- masthead ---------- */

  .masthead {
    padding: 5rem 0 2.5rem;
    border-bottom: 1px solid var(--rule);
  }

  .masthead h1 {
    font-size: clamp(2.6rem, 6.5vw, 4.4rem);
    line-height: 1.03;
    letter-spacing: -0.022em;
    margin-top: 1.4rem;
  }

  .standfirst {
    font-family: var(--display);
    font-size: clamp(1.15rem, 2.4vw, 1.4rem);
    line-height: 1.5;
    color: var(--ink-2);
    margin-top: 1.4rem;
    max-width: 52ch;
  }

  .byline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.4rem;
    margin-top: 2rem;
    font-family: var(--mono);
    font-size: 0.74rem;
    color: var(--ink-3);
  }

  /* ---------- the headline finding ---------- */

  .finding {
    margin: 3rem auto 0;
    max-width: var(--wide);
    border: 1px solid var(--alert);
    background: var(--alert-soft);
    border-radius: 3px;
    padding: 1.75rem 1.9rem;
    display: grid;
    gap: 1rem;
  }

  .finding .eyebrow { color: var(--alert); }

  .finding p {
    font-family: var(--display);
    font-size: clamp(1.2rem, 2.6vw, 1.55rem);
    line-height: 1.42;
    max-width: 46ch;
  }

  .finding .quiet {
    font-family: var(--body);
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--ink-2);
    max-width: 62ch;
  }

  /* ---------- sections ---------- */

  section { padding-top: 4.5rem; }

  section > .col > .eyebrow + h2 { margin-top: 0.7rem; }

  h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.2rem);
    line-height: 1.15;
    letter-spacing: -0.014em;
  }

  h2 + p { margin-top: 1.3rem; }

  h3 {
    font-size: 1.16rem;
    line-height: 1.3;
    margin-top: 2.2rem;
  }

  .lede { font-size: 1.08rem; color: var(--ink-2); }

  /* ---------- pull quote ---------- */

  .pull {
    border-left: 2px solid var(--signal);
    padding-left: 1.3rem;
    font-family: var(--display);
    font-size: 1.28rem;
    line-height: 1.45;
    color: var(--ink);
  }

  /* ---------- translation chain ---------- */

  .breakout {
    max-width: var(--wide);
    margin: 2.5rem auto 0;
  }

  .chain {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    border-radius: 3px;
    overflow: hidden;
  }

  .hop {
    background: var(--surface);
    padding: 1.2rem 1.15rem 1.3rem;
    display: grid;
    gap: 0.55rem;
    align-content: start;
  }

  .hop-n {
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--ink-3);
  }

  .hop-langs {
    font-family: var(--mono);
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--signal);
    letter-spacing: 0.01em;
  }

  .hop-engine {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
  }

  .hop-note {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--ink-2);
  }

  .hop[data-kind="llm"] { background: var(--signal-soft); }

  .chain-caption {
    font-size: 0.84rem;
    color: var(--ink-3);
    margin-top: 0.85rem;
    max-width: 68ch;
  }

  /* ---------- mechanism cards ---------- */

  .mechanisms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
  }

  .mech {
    border: 1px solid var(--rule);
    border-radius: 3px;
    background: var(--surface);
    padding: 1.5rem 1.5rem 1.7rem;
    display: grid;
    gap: 0.8rem;
    align-content: start;
  }

  .mech h3 { margin-top: 0; font-size: 1.24rem; }

  .mech .eyebrow { color: var(--signal); }

  .mech p { font-size: 0.92rem; line-height: 1.6; color: var(--ink-2); }

  .mech dl {
    margin: 0.3rem 0 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.4rem 1rem;
    font-size: 0.84rem;
  }

  .mech dt { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; padding-top: 0.15rem; }
  .mech dd { margin: 0; color: var(--ink); }

  /* ---------- prompt block ---------- */

  .prompt {
    background: var(--sunken);
    border: 1px solid var(--rule-soft);
    border-radius: 3px;
    padding: 1.1rem 1.25rem;
    font-family: var(--mono);
    font-size: 0.86rem;
    line-height: 1.6;
    overflow-x: auto;
  }

  .prompt .gloss { color: var(--ink-3); font-style: italic; }

  /* ---------- tables ---------- */

  .table-wrap {
    overflow-x: auto;
    border: 1px solid var(--rule);
    border-radius: 3px;
    background: var(--surface);
  }

  table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    font-variant-numeric: tabular-nums;
  }

  th, td {
    text-align: left;
    padding: 0.72rem 0.95rem;
    border-bottom: 1px solid var(--rule-soft);
    vertical-align: top;
  }

  thead th {
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ink-3);
    background: var(--sunken);
    white-space: nowrap;
  }

  tbody tr:last-child td { border-bottom: none; }

  td.num { font-family: var(--mono); font-weight: 500; white-space: nowrap; }

  th[scope="row"] { font-weight: 600; white-space: nowrap; }

  .verdict {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.16rem 0.45rem;
    border-radius: 2px;
    white-space: nowrap;
  }

  .verdict[data-v="miss"] { background: var(--alert-soft); color: var(--alert); }
  .verdict[data-v="hit"]  { background: var(--signal-soft); color: var(--signal); }
  .verdict[data-v="na"]   { background: var(--sunken); color: var(--ink-3); }

  /* ---------- scale chart ---------- */

  .chart {
    border: 1px solid var(--rule);
    border-radius: 3px;
    background: var(--surface);
    padding: 1.7rem 1.6rem 1.4rem;
    margin-top: 2.5rem;
  }

  .chart-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: baseline;
    margin-bottom: 1.5rem;
  }

  .chart-title { font-family: var(--display); font-size: 1.12rem; }

  .rows { display: grid; gap: 0.95rem; }

  .row {
    display: grid;
    grid-template-columns: minmax(120px, 168px) 1fr auto;
    gap: 0.9rem;
    align-items: center;
  }

  .row-label { font-size: 0.86rem; line-height: 1.3; }
  .row-label small { display: block; color: var(--ink-3); font-size: 0.74rem; font-family: var(--mono); }

  .track {
    height: 22px;
    background: var(--sunken);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
  }

  .bar {
    height: 100%;
    border-radius: 2px 0 0 2px;
    background: var(--signal);
  }

  .bar[data-tone="raw"]  { background: var(--alert); }
  .bar[data-tone="post"] { background: var(--drift); }

  .row-val {
    font-family: var(--mono);
    font-size: 0.88rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    min-width: 3.6rem;
    text-align: right;
  }

  .chart-note {
    margin-top: 1.4rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--rule-soft);
    font-size: 0.86rem;
    line-height: 1.6;
    color: var(--ink-2);
  }

  /* ---------- drift examples ---------- */

  .drift-list { display: grid; gap: 1rem; margin-top: 2rem; }

  .drift-item {
    border: 1px solid var(--rule);
    border-left: 3px solid var(--drift);
    border-radius: 3px;
    background: var(--surface);
    padding: 1.1rem 1.3rem;
    display: grid;
    gap: 0.55rem;
  }

  .drift-pair { display: grid; gap: 0.35rem; font-size: 0.92rem; line-height: 1.55; }

  .drift-pair span { display: block; }

  .drift-from { color: var(--ink-2); }
  .drift-from b, .drift-to b { font-weight: 600; }
  .drift-from b { color: var(--ink); }
  .drift-to b { color: var(--drift); }

  .drift-why {
    font-size: 0.82rem;
    color: var(--ink-3);
    font-family: var(--mono);
    line-height: 1.5;
  }

  /* ---------- caveat ---------- */

  .caveat {
    margin-top: 2.5rem;
    border: 1px dashed var(--rule);
    border-radius: 3px;
    padding: 1.4rem 1.5rem;
    background: transparent;
  }

  .caveat h3 { margin-top: 0; font-size: 1.05rem; }
  .caveat ul { margin: 0.8rem 0 0; padding-left: 1.1rem; display: grid; gap: 0.45rem; }
  .caveat li { font-size: 0.88rem; line-height: 1.55; color: var(--ink-2); }

  /* ---------- takeaways ---------- */

  .takeaways { display: grid; gap: 0; margin-top: 2.4rem; border-top: 1px solid var(--rule); }

  .takeaway {
    display: grid;
    grid-template-columns: 2.4rem 1fr;
    gap: 1rem;
    padding: 1.3rem 0;
    border-bottom: 1px solid var(--rule);
  }

  .takeaway .mark {
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--signal);
    padding-top: 0.28rem;
  }

  .takeaway h3 { margin: 0 0 0.35rem; font-size: 1.08rem; }
  .takeaway p { font-size: 0.92rem; line-height: 1.6; color: var(--ink-2); }

  footer {
    margin-top: 4.5rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--rule);
    font-size: 0.82rem;
    color: var(--ink-3);
    line-height: 1.6;
  }

  footer p + p { margin-top: 0.7rem; }

  @media (max-width: 620px) {
    .row { grid-template-columns: 1fr; gap: 0.3rem; }
    .row-val { text-align: left; }
    .takeaway { grid-template-columns: 1fr; gap: 0.3rem; }
  }

  @media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
  }

}

/* Owner-directed (spec 035): report text runs at table width. Placed after
   the token block so it wins over the source's 66ch measure. */
.original-report { --measure: var(--wide, 62rem); }

/* Spacing/mono utilities so reports carry no inline style attributes. */
.original-report .mt-3 { margin-top: 3rem; }
.original-report .mt-2-6 { margin-top: 2.6rem; }
.original-report .mt-1-6 { margin-top: 1.6rem; }
.original-report .mt-0-9 { margin-top: 0.9rem; }
.original-report .mono { font-family: var(--mono); font-size: 0.9em; }

/* The report block ends where the page does: the source document's 6rem
   page tail plus the site's own spacing stacked into the dead band the
   owner screenshotted between report and footer. */
.original-report .page { padding-bottom: 2rem; }
.original-report { margin-bottom: 0; }
