/* The mirror uses the existing av2 palette, Inter, heading-tail and reveal controller. */
.av2-article-page { --av2-subnav-height: 0px; }
.av2-article { padding-top: calc(var(--nav-height) + 56px); padding-bottom: var(--av2-space-section); }
.av2-article-header time { display: block; margin: 0 0 24px; color: var(--text-muted); font-size: 13px; }
.av2-article-header h1 { max-width: 24ch; margin: 0; font-size: clamp(32px, 5vw, 56px); line-height: 1.08; letter-spacing: -.025em; }
.av2-article-header .av2-lead { max-width: 66ch; margin-block: 20px 28px; font-size: 17px; line-height: 1.6; }
.av2-article-hero { overflow: hidden; border-radius: var(--av2-radius); }
.av2-article-hero img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.av2-article-reading { max-width: 800px; margin: 0 auto; }
.av2-article-stats { grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.av2-article-quote { margin: 24px 0 32px; border-left: 3px solid var(--gold); padding: 4px 0 4px 20px; font-size: 17px; line-height: 1.6; font-weight: 600; font-style: normal; color: var(--text-primary); }
.av2-article-quote p { margin: 0; }
.av2-article-content { color: var(--text-secondary); font-size: 16px; line-height: 1.7; }
.av2-article-content > p { margin: 0 0 20px; }
.av2-article-content > ul, .av2-article-content > ol { margin: 0 0 28px; padding-left: 1.25em; }
.av2-article-content > ul > li, .av2-article-content > ol > li { margin-bottom: 8px; }
.av2-article-content > p a { color: var(--brg); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.av2-article-content strong { color: var(--text-primary); }
.av2-article-content .av2-heading { margin-block: 48px 16px; }
.av2-article-content .av2-heading h2 { max-width: none; font-size: clamp(26px, 3.5vw, 38px); line-height: 1.15; letter-spacing: -.02em; }
.av2-article-content img { display: block; max-width: 100%; height: auto; margin-block: 32px; border-radius: var(--av2-radius); }
.av2-article-content .table-scroll-wrapper { margin-block: 28px; border: 1px solid var(--border); border-radius: var(--av2-radius); }
.av2-article-content table { width: 100%; min-width: 0; table-layout: fixed; font-size: 14px; }
.av2-article-content th, .av2-article-content td { padding: 16px; overflow-wrap: anywhere; vertical-align: top; }
.av2-article-content th { color: var(--brg); background: var(--bg-alt); }
.av2-article-product { margin-top: 64px; padding: 28px; background: var(--bg-alt); }
.av2-article-product > img, .av2-article-product > picture { flex: 0 1 200px; max-width: 200px; }
.av2-article-product img { display: block; width: 100%; height: auto; }
.av2-article-product > div { flex: 1 1 280px; }
.av2-article-product h3 { margin-bottom: 12px; font-size: 28px; letter-spacing: -.02em; }
.av2-article-product p { margin-bottom: 16px; }
.av2-article-product .av2-eyebrow { font-size: 10px; letter-spacing: .15em; }
.av2-article-viz { height: auto; margin: 32px 0; padding: 24px; font-variant-numeric: tabular-nums; }
.av2-article-viz .av2-diagram-title { font-size: 20px; line-height: 1.35; }
.av2-viz-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 24px; }
.av2-viz-metric { display: flex; flex-direction: column; }
.av2-article-viz .av2-viz-unit { min-height: 48px; margin: 0 0 16px; font-size: 13px; line-height: 1.5; }
.av2-viz-unit strong { display: block; }
.av2-article-viz .av2-viz-metric ul { list-style: none; margin: auto 0 0; padding: 0; }
.av2-article-viz .av2-viz-metric li { margin-bottom: 0; }
.av2-viz-row .av2-diagram-bar-fill { display: block; background: var(--gold); }
.av2-viz-row.is-featured .av2-diagram-bar-fill { background: var(--brg-light); }
.av2-viz-row.is-featured .av2-diagram-bar-label { color: var(--brg); font-weight: 700; }
.av2-article-viz .av2-viz-panel-label { margin: 16px 0 8px; font-size: 15px; font-weight: 700; color: var(--text-primary); }
.av2-article-svg { display: block; width: 100%; max-height: 340px; height: auto; overflow: visible; }
.av2-viz-grid { stroke: var(--border); stroke-width: 1; }
.av2-viz-tick { fill: var(--text-secondary); font-size: 14px; }
.av2-viz-axis { fill: var(--text-secondary); font-size: 13px; }
.av2-viz-color--neutral { --viz-color: #777777; }
.av2-viz-color--brg { --viz-color: var(--brg-light); }
.av2-viz-color--gold { --viz-color: var(--gold); }
.av2-viz-color--slate { --viz-color: #456678; }
.av2-article .av2-draw, .av2-article-viz .av2-draw { stroke: var(--viz-color); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; clip-path: inset(0 100% 0 0); transition: clip-path 1400ms var(--av2-ease); }
.av2-article-viz.is-visible .av2-draw, .av2-article-viz .av2-draw.is-visible, .av2-article .av2-draw.is-visible { clip-path: inset(0); }
.av2-article .av2-viz-dashed, .av2-article-viz .av2-viz-dashed { stroke-dasharray: .025 .015; }
.av2-viz-point { fill: var(--viz-color); stroke: var(--bg-alt); stroke-width: 1; }
.av2-viz-region { fill: var(--viz-color); fill-opacity: .12; }
.av2-viz-region-label { fill: var(--viz-color); font-size: 19px; font-weight: 700; }
.av2-viz-rider { stroke: var(--text-muted); stroke-width: 1; stroke-dasharray: 4 4; }
.av2-article-viz .av2-viz-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 8px 0; list-style: none; font-size: 13px; }
.av2-article-viz .av2-viz-legend li { display: flex; align-items: center; gap: 8px; margin-bottom: 0; }
.av2-viz-key { width: 24px; border-top: 3px solid var(--viz-color); }
.av2-viz-key--dashed { border-top-style: dashed; }
.av2-viz-original { margin-top: 16px; font-size: 13px; }
.av2-viz-original summary { cursor: pointer; color: var(--brg); font-weight: 700; }
.av2-viz-original img, .av2-article-viz noscript img { width: 100%; height: auto; margin-top: 16px; background: white; }
.av2-article-viz .av2-diagram-caption { margin: 14px 0 0; }
/* bars: optional per-row colour (stability chart) */
.av2-viz-row[class*="av2-viz-color--"] .av2-diagram-bar-fill { background: var(--viz-color); }
.av2-viz-row.is-featured[class*="av2-viz-color--"] .av2-diagram-bar-label { color: var(--text-primary); }
/* diagram: static vector drawing; the stacked variant is picked below 600px */
.av2-article-content .av2-viz-diagram img, .blog-post-content .av2-viz-diagram img { width: 100%; margin-block: 8px 0; border-radius: 0; }
/* columns: grouped columns, scroll sideways on narrow screens instead of shrinking the labels */
.av2-viz-key--block { width: 12px; height: 12px; border: 0; border-radius: 3px; background: var(--viz-color); }
.av2-viz-columns { overflow-x: auto; }
.av2-viz-columns-svg { display: block; width: 100%; min-width: 560px; height: auto; }
.av2-viz-baseline { stroke: var(--text-muted); }
.av2-viz-col-tick { fill: var(--text-muted); font-size: 13px; }
.av2-viz-col-axis { fill: var(--text-secondary); font-size: 13px; }
.av2-viz-col-value { fill: var(--text-secondary); font-size: 12px; }
.av2-viz-column { fill: var(--viz-color); transform: scaleY(0); transform-box: fill-box; transform-origin: 50% 100%; transition: transform 900ms var(--av2-ease); }
.av2-article-viz.is-visible .av2-viz-column { transform: none; }
@media (max-width: 600px) {
  .av2-article-viz { padding: 16px 12px; }
  .av2-viz-metrics { grid-template-columns: 1fr; }
  .av2-article-viz .av2-viz-unit { min-height: 0; }
  .av2-article-content th, .av2-article-content td { padding: 12px; }
  .av2-viz-tick { font-size: 18px; }
  .av2-viz-axis { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .av2-article .av2-draw, .av2-article-viz .av2-draw { clip-path: none !important; transition: none !important; }
  .av2-article .av2-diagram-bar-fill, .av2-article-viz .av2-diagram-bar-fill { width: var(--av2-percent); transition: none !important; }
  .av2-article-viz .av2-viz-column { transform: none; transition: none !important; }
}
