/* article.css — article/research page styles (requires base.css) */

    .content {
      width: 100%;
      max-width: 795px;
      margin: 0 auto;
      padding: 0 16px;
      box-sizing: border-box;
    }
    body {
      margin: 0;
      position: relative;
      font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    }
    .content img, .content video, .content svg, .content canvas {
      display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto;
    }
    .content img[style*="width"]   { width: auto !important; }
    .content img[style*="height"]  { height: auto !important; }
    .content img[style*="max-width"] { max-width: 100% !important; }
    .content a > img { display: block; margin-left: auto; margin-right: auto; }
    .content figure { margin: 1.25rem 0; text-align: center; }
    .content figure > a { display: block; }
    .content .page-body figure img,
    .content .page-body p > img {
      margin-left: auto;
      margin-right: auto;
    }
    .content .page-body p > img {
      margin-top: 1.25rem;
      margin-bottom: 0.75rem;
    }
    .content div[style*="text-align: center"] {
      margin: 1.25rem 0;
    }
    .content figure figcaption,
    .content figcaption,
    .content .figure-caption,
    .content .figure-source,
    .content div[style*="text-align: center"] em,
    .content img + p em,
    .content img + div em {
      display: block; text-align: center !important; font-size: .875rem; color: #666; line-height: 1.4; margin-top: .5rem; font-style: italic;
    }
    .content p.figure-caption,
    .content p.figure-source,
    .content .figure-caption,
    .content .figure-source {
      margin: 0.5rem 0 1.25rem;
      text-align: center !important;
      font-style: italic;
    }
    .content .paired-figures {
      display: flex;
      gap: 20px;
      justify-content: center;
      align-items: stretch;
      width: min(100%, 360px);
      margin: 2rem auto 0.5rem;
    }
    .content .paired-figures img {
      flex: 1 1 0;
      width: 100% !important;
      max-width: none !important;
      height: auto !important;
      object-fit: contain;
    }
    .content div[style*="display: flex"] img { max-width: 100% !important; height: auto !important; object-fit: contain; }
    @media (min-width: 900px) {
      .content img, .content video, .content svg, .content canvas {
        max-width: min(100%, 680px) !important; height: auto !important; margin-left: auto; margin-right: auto;
      }
      .content div[style*="display: flex"] { flex-wrap: wrap; }
    }
    @media (max-width: 899px) {
      .content img, .content img[style*="width"] { width: 100% !important; max-width: 100% !important; height: auto !important; }
      .content div[style*="display: flex"] { flex-direction: column !important; gap: 24px !important; align-items: stretch !important; }
    }
    .ev-logo { position: fixed; top: 16px; right: 16px; width: 80px; height: auto; z-index: 10; }
    @media (max-width: 899px) { .ev-logo { position: absolute; width: 64px; } .content { padding-top: 96px; } }
    .page-title {
      margin: 1.25rem 0 .5rem;
      font-size: 2rem;
      line-height: 1.2;
      color: #8D3832;
      text-transform: none;
      font-variant: normal;
      font-variant-caps: normal;
    }
    .page-description { color: #666; margin-bottom: 1rem; }
    .page-description:empty { display: none; }
    .content > article > header { margin-bottom: 2rem; }
    .page-body > :first-child { margin-top: 0; }
    .page-title,
    .page-description {
      overflow-wrap: anywhere;
    }

    .content img[width]  { width: auto !important; max-width: 100% !important; }
    .content img[height] { height: auto !important; }

    .content svg[width]  { width: auto !important; max-width: 100% !important; }
    .content svg[height] { height: auto !important; }

    .content p { line-height: 1.6; overflow-wrap: anywhere; }
    .content p:empty { display: none; }
    .content .page-body > br { display: none; }
    .content hr {
      margin: 2rem 0;
      border: none;
      border-top: 1px solid #ddd;
    }

    .content li { margin-bottom: 0.4em; line-height: 1.6; overflow-wrap: anywhere; }
    .content ul,
    .content ol { padding-left: 1.25rem; }
    .content .bulleted-list,
    .content .numbered-list {
      margin: 0 0 1rem;
      padding-left: 1.1rem;
    }
    .content .bulleted-list {
      list-style: disc;
    }
    .content .numbered-list {
      list-style: decimal;
    }
    .content ul li::marker,
    .content ol li::marker {
      font-size: 0.85em;
      color: #666;
    }

    .content h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; padding-bottom: 0.3rem; border-bottom: 2px solid #000; }
    .content h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
    .content h2 > strong,
    .content h2 > em,
    .content h3 > strong,
    .content h3 > em {
      font-weight: inherit;
      font-style: inherit;
    }

    .content a:link, .content a:visited { color: #06f; }
    .content a { text-underline-offset: 2px; overflow-wrap: anywhere; word-break: break-word; }
    .content a:hover { text-decoration-thickness: 2px; }

    .byline {
      font-size: 0.9rem;
      color: #999;
      margin: -0.25rem 0 1.5rem;
    }

    .download-btn {
      display: block;
      margin: 2rem auto 0;
      width: fit-content;
      text-align: center;
      padding: 12px 24px;
      background-color: #8D3832;
      color: #fff;
      font-weight: 600;
      text-decoration: none;
      border-radius: 24px;
      transition: background-color 0.2s ease;
    }

    .download-btn:link, .download-btn:visited { color: #fff; }
    .download-btn:hover {
      background-color: #6e2d28;
    }

    .content header .download-btn {
      margin: 1rem auto 0;
      text-align: center;
    }

    .content a.download-btn,
    .content a.download-btn:link,
    .content a.download-btn:visited,
    .content a.download-btn:hover,
    .content a.download-btn:active {
      color: #fff;
    }

    .page-body > .download-btn:first-child {
      margin-top: 0;
    }

    .pdf-transcript {
      margin: 1.5rem 0 0;
    }

    .pdf-transcript > :first-child {
      margin-top: 0;
    }

    .pdf-transcript hr {
      margin: 2rem 0;
      border: none;
      border-top: 1px solid #ddd;
    }

    .pdf-transcript h2 {
      margin-top: 2.25rem;
    }

    .pdf-transcript h3 {
      margin-top: 1.5rem;
    }

    .pdf-transcript p {
      margin: 0 0 1rem;
    }

    .content .research-bullet-list {
      margin: 0 0 1rem;
      padding-left: 1.1rem;
      list-style: disc;
    }

    .content .research-figure {
      margin: 1.25rem auto 0.75rem;
    }

    .content .page-body figure.image img,
    .content .page-body figure > a > img,
    .content .page-body .paired-figures img {
      box-sizing: border-box;
    }

    .content .research-bullet-list li {
      margin-bottom: 0.55rem;
    }

    .content .table-scroll {
      margin: 1.25rem 0;
      overflow-x: auto;
    }

    .content table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.95rem;
    }

    .content th,
    .content td {
      padding: 0.65rem 0.75rem;
      border-bottom: 1px solid #ddd;
      vertical-align: top;
      text-align: left;
    }

    .content thead th {
      border-bottom: 2px solid #000;
      font-size: 0.8rem;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: #555;
    }

    @media (max-width: 640px) {
      .content {
        padding-left: 20px;
        padding-right: 20px;
      }

      .page-title {
        font-size: 1.7rem;
        line-height: 1.15;
        margin-top: 0.75rem;
      }

      .byline {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
      }

      .content p,
      .content li,
      .pdf-transcript p,
      .content td,
      .content th {
        font-size: 1rem;
        line-height: 1.7;
      }

      .content h2 {
        font-size: 1.25rem;
        margin-top: 1.75rem;
      }

      .content h3 {
        font-size: 1.08rem;
        margin-top: 1.35rem;
      }

      .content figure,
      .content .research-figure,
      .content .table-scroll,
      .content blockquote {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
      }

      .content figcaption,
      .content .figure-caption,
      .content .figure-source,
      .content div[style*="text-align: center"] em,
      .content img + p em,
      .content img + div em {
        font-size: 0.92rem;
      }

      .content .table-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
      }

      .content table {
        min-width: 520px;
      }

      .content th,
      .content td {
        padding: 0.55rem 0.6rem;
      }
    }

    .content .footnote-ref {
      font-size: 0.72em;
      line-height: 0;
      vertical-align: super;
      margin-left: 0.12em;
    }

    .content .footnote-ref a,
    .content .footnote-backref {
      text-decoration: none;
    }

    .content .footnotes {
      margin-top: 2rem;
      padding-top: 1rem;
      border-top: 1px solid #ddd;
    }

    .content .footnotes h2 {
      margin-top: 0;
      border-bottom: none;
      padding-bottom: 0;
      font-size: 1.1rem;
    }

    .content .footnote-list {
      margin: 0.75rem 0 0;
      padding-left: 1.25rem;
      font-size: 0.94rem;
      color: #444;
    }

    .content .footnote-list li {
      margin-bottom: 0.7rem;
    }

    .content .footnote-list p {
      margin: 0;
    }

    /* Notion-export blocks that still appear on older research pieces. */
    .content .column-list {
      display: flex;
      gap: 24px;
      align-items: flex-start;
      margin: 1.5rem 0;
    }

    .content .column-list .column {
      flex: 1 1 0;
      min-width: 0;
    }

    .content .column-list .column:empty {
      display: none;
    }

    .content .callout {
      display: flex;
      gap: 0.85rem;
      align-items: flex-start;
      margin: 1.5rem 0;
      padding: 1rem 1.125rem;
      border-left: 4px solid #8D3832;
      border-radius: 6px;
      background: #f6f1ef;
    }

    .content .callout > div:first-child {
      flex: 0 0 auto;
      line-height: 1;
    }

    .content .callout > div:last-child {
      width: auto !important;
      flex: 1 1 auto;
    }

    .content details {
      margin: 1.25rem 0;
    }

    .content figure.image > figure {
      margin: 0;
    }

    .content figure.image > figure > img {
      margin-left: auto;
      margin-right: auto;
    }

    .content span.sans[style*="padding-top:2em"] {
      display: none;
    }

    .content summary {
      cursor: pointer;
      font-weight: 600;
    }

    /* Neutralize imported highlight styling from PDFs/exports on research pages. */
    .content mark,
    .content .highlight,
    .content [class*="highlight"],
    .content span[style*="background"],
    .content span[style*="background-color"],
    .content span[style*="border-bottom"] {
      background: transparent !important;
      border-bottom: none !important;
      box-shadow: none !important;
    }

    /* Tables */
    .content table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; font-size: 0.95rem; }
    .content th, .content td { border: 1px solid #ddd; padding: 8px 12px; text-align: left; }
    .content th { font-weight: 700; background: #f5f5f5; }

    /* Blockquotes */
    .content blockquote { border-left: 4px solid #8D3832; margin: 1.5rem 0; padding: 0.75rem 1.25rem; font-style: italic; color: #555; }
    .content blockquote p { margin: 0.5rem 0; }
    .content blockquote.quote-callout {
      border-left: none;
      margin: 2rem auto;
      padding: 0;
      max-width: 44rem;
      text-align: center;
      color: #666;
      font-size: 0.94rem;
      line-height: 1.65;
    }
    .content blockquote.quote-callout p {
      margin: 0;
    }

    /* Code */
    .content code { font-family: "Courier New", Courier, monospace; background: #f4f4f4; padding: 2px 5px; border-radius: 3px; font-size: 0.9em; }
    .content pre { background: #f4f4f4; padding: 1rem; overflow-x: auto; border-radius: 4px; margin: 1.5rem 0; }
    .content pre code { background: none; padding: 0; font-size: 0.85em; }

    /* Horizontal rules */
    .content hr { border: none; border-top: 1px solid #ddd; margin: 2rem 0; }

    /* Article-specific print additions */
    @media print {
      .content { max-width: 100% !important; margin: 0 !important; padding: 0 !important; }
      .content a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
      .content a[href^="#"]::after, .content a[href^="javascript"]::after { content: none; }
    }

    @media (max-width: 899px) {
      .content {
        padding-top: 20px;
      }

      .content .paired-figures {
        flex-direction: column;
        gap: 16px;
      }

      .content .column-list {
        flex-direction: column;
      }

      .ev-logo {
        position: static;
        display: block;
        margin: 12px 12px 0 auto;
        width: 52px;
      }
    }
