/* Everything and Industry in "The Marketing Record" design (2026-10-01; spec in design/marketing-record/). Loaded
   after record.css (tokens, compact masthead, nav, footer). Everything is a dated ledger; Industry is answer-led
   chapters with ruled tables. */
svg.defs { position: absolute; overflow: hidden; }
.lg-head { padding: 30px 0 6px; }
.lg-head h1 { font-family: var(--font-editorial); font-weight: 500; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -.035em; }
.lg-head .dek { font-family: var(--font-editorial); font-size: var(--text-deck); line-height: 1.45; color: var(--body); max-width: 820px; margin-top: 12px; }
.lg-head .dateline { margin-top: 10px; font-size: 11px; color: var(--muted); }
.lg-toc { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); margin-top: 22px; }
.lg-toc .eyebrow { color: var(--muted); font-size: 10px; margin-right: 4px; }
.lg-toc a { min-height: 44px; display: inline-flex; align-items: center; font-size: 12.5px; color: var(--body); }
.lg-toc a:hover { color: var(--accent); }
.note { font-size: 12px; line-height: 1.55; color: var(--muted); max-width: 840px; margin-top: 10px; }
.lg-empty { padding: 30px 0; color: var(--body); }
.sub { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; font-weight: 400; }
.sub-i { font-size: 11px; color: var(--muted); }
.up { color: var(--positive); } .down { color: var(--negative); }
.tick { font-size: 11px; color: var(--muted); letter-spacing: .04em; font-weight: 400; }
.icon { width: 14px; height: 14px; display: inline-block; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.15em; }

/* filters: underlined type switches with counts, native search and selects, a summary that says what you're seeing */
.lg-filters { border-top: 2px solid var(--rule-strong); margin-top: 24px; padding-top: 6px; }
.lg-types { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }
.lg-grp { font-size: 9.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--data); margin-left: 6px; }
.lg-tf { border: 0; border-bottom: 2px solid transparent; background: none; min-width: 0; min-height: 40px; padding: 6px 0; font-size: 12.5px; color: var(--muted); cursor: pointer; display: inline-flex; gap: 5px; align-items: baseline; }
.lg-tf span { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lg-tf.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.lg-tf:hover { color: var(--accent); }
.lg-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.lg-bar input, .lg-bar select { font: 14px var(--font-utility); color: var(--ink); background: var(--paper); border: 1px solid var(--rule-strong); min-height: 44px; padding: 0 10px; border-radius: 0; }
.lg-bar input { flex: 1 1 280px; }
.lg-bar input:focus, .lg-bar select:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.lg-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 12.5px; color: var(--body); }
.lg-summary b { color: var(--ink); font-variant-numeric: tabular-nums; }
.lg-clear { border: 0; background: none; min-width: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* the ledger: a day heading, then one row per item with its type in words */
.lg-day h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 30px; padding: 12px 0 8px; border-top: 2px solid var(--rule-strong);
  font: 550 22px/1.2 var(--font-editorial); letter-spacing: -.015em; }
.lg-day h2 span { font: 11px var(--font-utility); color: var(--muted); font-variant-numeric: tabular-nums; }
ol.lg-list { list-style: none; padding: 0; }
.lg-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-top: 1px solid var(--rule); }
.lg-day .lg-row:first-child { border-top: 0; }
.lg-type { display: flex; align-items: center; gap: 6px; align-self: start; padding-top: 3px; font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--data); }
.t-quote .lg-type, .t-earnings .lg-type, .t-filing .lg-type, .t-officer .lg-type { color: var(--ink); }
.lg-body { min-width: 0; max-width: 820px; }
.lg-co { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.lg-co a:hover { color: var(--accent); }
.lg-title { font: 550 19px/1.3 var(--font-editorial); letter-spacing: -.01em; overflow-wrap: break-word; }
.lg-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.lg-title.q { font-weight: 400; font-size: 18px; line-height: 1.45; }
.lg-text { font-size: 13.5px; line-height: 1.55; color: var(--body); margin-top: 6px; }
.lg-expand { border: 0; background: none; min-width: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; }
.lg-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 8px; font-size: 11px; color: var(--muted); }
.lg-meta .must-read { color: var(--accent); }
.lg-meta .must-read .icon { width: 12px; height: 12px; }
.lg-meta .must-label { font-size: 9px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.lg-meta .country { display: inline-flex; align-items: center; gap: 3px; border: 1px solid var(--rule); padding: 0 5px; }
.lg-meta .country .icon { width: 11px; height: 11px; }
.lg-move { color: var(--body); } .lg-move b { color: var(--data); font-weight: 600; } .lg-move del { color: var(--muted); }
.lg-src { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.lg-src a, .lg-link { text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; color: var(--body); }
.lg-link { display: inline-flex; align-items: center; gap: 3px; } .lg-link .icon { width: 11px; height: 11px; }
.paywall { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; font-size: 10px; } .paywall .icon { width: 11px; height: 11px; }
.lg-outlets { display: inline; } .lg-outlets > summary { display: inline; cursor: pointer; list-style: none; text-decoration: underline dotted; text-underline-offset: 3px; }
.lg-outlets[open] > summary { color: var(--accent); }
.lg-outlets > span { display: flex; flex-wrap: wrap; gap: 2px 12px; padding-top: 6px; }
.lg-more { padding: 18px 0 0; }
#more { border: 0; border-bottom: 1px solid var(--ink); background: none; min-height: 44px; padding: 6px 0; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
#more:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Industry: answer-led chapters */
.ch { margin-top: 48px; }
.ch > .eyebrow { color: var(--data); font-size: 10px; border-top: 2px solid var(--rule-strong); padding-top: 13px; }
.ch > h2 { font-family: var(--font-editorial); font-weight: 550; font-size: var(--text-section); line-height: 1.12; letter-spacing: -.025em; margin: 8px 0 10px; max-width: 980px; }
.ch > h3 { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 26px 0 6px; }
.ch .lede { font-size: 15px; line-height: 1.55; color: var(--body); max-width: 840px; margin-bottom: 14px; }
.lg-tw { overflow-x: auto; }
table.lg-t { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums lining-nums; }
table.lg-t th { text-align: left; font-size: 11px; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--rule-strong); padding: 8px 14px 8px 0; white-space: nowrap; }
table.lg-t td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; color: var(--ink); }
table.lg-t td:first-child a { font: 550 15.5px/1.3 var(--font-editorial); } table.lg-t td:first-child a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
table.lg-t .n { text-align: right; }
table.lg-t tr.minor td { color: var(--body); } table.lg-t tr.minor td:first-child a { font-size: 14px; font-weight: 450; }
table.lg-t tbody tr:hover td { background: var(--surface); }
.rev { font-size: 10.5px; } .rev.up { color: var(--positive); } .rev.down { color: var(--negative); }
svg.obars rect.pos { fill: var(--data); } svg.obars rect.neg { fill: var(--accent); } svg.obars line { stroke: var(--rule-strong); }
svg.spark polyline { fill: none; stroke: var(--data); stroke-width: 1.5; } svg.spark circle { fill: var(--accent); }
svg.stack { width: 100%; height: auto; display: block; margin: 14px 0 4px; }
svg.stack .s0 { fill: var(--data); } svg.stack .s1 { fill: var(--chart-muted); } svg.stack .s2 { fill: var(--accent); }
svg.stack text { font: 11px var(--font-utility); fill: var(--muted); }
.lg-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 12px; color: var(--body); margin-bottom: 16px; }
.lg-legend i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; }
.lg-legend i.s0 { background: var(--data); } .lg-legend i.s1 { background: var(--chart-muted); } .lg-legend i.s2 { background: var(--accent); }
.lg-kpis { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 2px solid var(--rule-strong); border-bottom: 1px solid var(--rule); margin: 6px 0 4px; }
.lg-kpis div { padding: 14px 16px 14px 0; } .lg-kpis div + div { padding-left: 16px; border-left: 1px solid var(--rule); }
.lg-kpis b { display: block; font: 500 clamp(28px, 3.2vw, 38px)/1.1 var(--font-editorial); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.02em; }
.lg-kpis span { display: block; margin-top: 4px; font-size: 12px; color: var(--body); }
ol.lg-board { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); column-gap: 26px; border-top: 1px solid var(--rule); }
ol.lg-board li { border-bottom: 1px solid var(--rule); }
ol.lg-board button { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto auto; gap: 6px; align-items: baseline; border: 0; background: none; min-height: 44px; padding: 10px 0; text-align: left; cursor: pointer; color: var(--ink); font-size: 14px; }
ol.lg-board b { font: 500 19px var(--font-editorial); font-variant-numeric: tabular-nums lining-nums; } ol.lg-board i { font-style: normal; font-size: 11px; color: var(--muted); }
ol.lg-board button:hover span, ol.lg-board button.on span { color: var(--accent); } ol.lg-board button.on { box-shadow: inset 0 -2px var(--accent); }
ol.lg-dated .lg-row { grid-template-columns: 80px minmax(0, 1fr); }
.lg-d { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 3px; }
ol.lg-cal { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); column-gap: 26px; border-top: 1px solid var(--rule); }
ol.lg-cal li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
ol.lg-cal time { grid-row: span 2; font: 500 16px var(--font-editorial); font-variant-numeric: lining-nums; }

@media (max-width: 760px) {
  .lg-row, ol.lg-dated .lg-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .lg-title { font-size: 18px; }
  .lg-kpis { grid-auto-flow: row; grid-template-columns: 1fr; } .lg-kpis div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  table.lg-t .opt { display: none; }
  .lg-bar select { flex: 1 1 30%; }
}
