/* Blog posts: styles for the markup Hugo and the shortcodes emit. */

/* author line */
.article .authors-line { font-size: 13px; line-height: 1.7; color: var(--ink); margin: 0 0 6px; }
.article .authors-line .sym { font-size: 9px; color: var(--ink); vertical-align: super; }
.article .paper-meta { display: none; }              /* date is in the eyebrow */
.article .paper-affiliations { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--ink); margin-bottom: 30px; display: flex; flex-wrap: wrap; gap: 0 18px; }
.article .paper-affiliation__sym { font-size: 9px; vertical-align: super; margin-right: 2px; }
.article .byline-block { display: flex; gap: 16px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; margin-bottom: 30px; }
.article .byline-block a { color: var(--ink); }

/* table of contents */
.toc #TableOfContents > ul { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 32px; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc #TableOfContents li { counter-increment: toc; margin: 0; padding: 0; }
.toc #TableOfContents li::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; color: var(--ink); margin-right: 9px; }
.toc #TableOfContents ul ul { display: none; }
.toc #TableOfContents a code { font-size: 0.92em; }
@media (max-width: 640px) { .toc #TableOfContents > ul { grid-template-columns: 1fr; } }

/* section numbers */
.prose { counter-reset: sec; }
.prose h2 { counter-increment: sec; }
.prose h2::before { content: counter(sec, decimal-leading-zero); display: block; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; }
.prose h2 code, .prose h3 code { font-family: var(--font-mono); font-size: 0.92em; letter-spacing: 0.02em; }

/* prose */
.prose ol, .prose ul { padding-left: 1.3em; margin: 0 0 1.4em; }
.prose li { margin-bottom: 0.5em; }
.prose blockquote { margin: 0 0 1.4em; padding-left: 16px; border-left: 3px solid var(--cyan); }
.prose pre { margin: 0 0 1.4em; padding: 12px 14px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); overflow-x: auto; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.55; }
.prose pre code { background: transparent; padding: 0; }
.prose code { font-family: var(--font-mono); font-size: 0.92em; letter-spacing: 0.02em; color: inherit; background: transparent; }
.prose hr { border: 0; height: 0; margin: 2.5rem 0; }
.prose table { border-collapse: collapse; margin: 0 0 1.4em; font-size: 13.5px; }
.prose th, .prose td { text-align: left; padding: 6px 10px; border: 0; }
.prose th { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--ink); color: var(--paper); }
.prose img { max-width: 100%; height: auto; }
.prose .katex-display { margin: 1.3em 0; }

/* sidenotes */
.prose .sidenote-number { font-family: var(--font-mono); font-size: 0.625rem; font-weight: 600; color: var(--ink); vertical-align: super; line-height: 1; margin-left: 1px; cursor: default; }
.prose .sidenote-toggle-input { display: none; }
.prose .sidenote .sidenote-num { font-family: var(--font-mono); font-size: 0.625rem; font-weight: 600; color: var(--ink); margin-right: 3px; vertical-align: super; }
.prose .sidenote a { color: var(--cyan); }
@media (max-width: 1340px) { .prose .sidenote { display: none; } }

/* citations */
.prose .citation-ref { font-family: var(--font-mono); font-size: 0.625rem; font-weight: 600; vertical-align: super; margin-left: 1px; }
.prose .citation-ref a { color: var(--cyan); text-decoration: none; }
.prose .citation-ref a:hover { color: var(--cyan-press); }
.prose .citation-ref + .citation-ref { margin-left: 2px; }

/* figures written as <figure class="post-figure"> in Markdown */
.prose .post-figure { margin: 36px 0; }
.prose .post-figure:not(.plotly-figure):not(.explorer-figure) { background: var(--cyan); padding: 18px 22px 16px; }
.prose .post-figure:not(.plotly-figure):not(.explorer-figure) figcaption { margin-top: 14px; font-family: var(--font-mono); font-size: 11px; line-height: 1.6; color: var(--paper); }
.prose .post-figure figcaption .figure-num { display: none; }  /* number is in the figure header */
.prose .post-figure figcaption a { color: var(--paper); text-decoration: underline; }
.prose .post-figure .stamp__header { margin-bottom: 14px; }
.prose .svg-embed svg { width: 100%; height: auto; display: block; }
.prose .svg-embed--blockprint { max-width: 640px; margin: 0 auto; }
.prose .post-figure .plotly-container { margin: 0 auto; }
.prose .post-figure figcaption .plotly-figure-inner { display: none; }
@media (max-width: 640px) { .prose .post-figure:not(.plotly-figure):not(.explorer-figure) { padding: 14px 14px 12px; margin-left: -20px; margin-right: -20px; } }

/* references */
.references-block { margin: 3rem 0 30px; }
.references-heading { font-family: var(--font-sans); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 0.875rem; }
.references-list { list-style: none; margin: 0; padding: 0; }
.references-list li { display: flex; gap: 12px; font-size: 12.5px; line-height: 1.55; color: var(--ink); margin-bottom: 9px; }
.references-list__marker { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; flex-shrink: 0; padding-top: 2px; }
.references-list a { color: var(--cyan); }
.references-venue { font-style: normal; }

/* authors */
.authors-end-block { margin: 0 0 30px; }
.authors-end-label { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.authors-end-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; font-size: 13px; line-height: 1.7; }
.authors-end-list li { break-inside: avoid; }
.authors-end-num { font-family: var(--font-mono); font-size: 10px; font-weight: 600; margin-right: 8px; }
.authors-end-aff { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; margin-left: 6px; }
@media (max-width: 640px) { .authors-end-list { columns: 1; } }

/* cite-as block */
.cite-as-block { margin: 0 0 40px; }
.cite-as-label { display: none; }
.cite-as-box { font-family: var(--font-mono); font-size: 11px; line-height: 1.7; color: var(--paper); background: var(--cyan); padding: 16px 18px; }
.cite-as-box::before { content: 'Cite as'; display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.cite-as-box p { margin: 0; }
.cite-as-box a { color: var(--paper); }

/* loading text */
.prose .footnotes { font-size: 12.5px; }
.article .plotly-loading, .article .plotly-error { font-family: var(--font-mono); font-size: 11px; color: var(--paper); text-transform: uppercase; letter-spacing: 0.08em; }

/* lede, callout aside, code figures, footnotes */
.prose .post-description { font-weight: 600; font-size: 15.5px; line-height: 1.55; margin: 0 0 1.6em; }
.prose aside.prose-callout { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--cyan); }
.prose aside.prose-callout p { font-size: 14px; }
.prose aside.prose-callout .post-figure { margin: 20px 0; }
.prose .post-figure pre { border: 0; margin: 0; background: var(--paper); color: var(--ink); font-size: 12px; }
.prose .post-figure .highlight { margin: 0; }
.prose .footnotes { margin-top: 3rem; font-size: 12.5px; }
.prose .footnotes hr { display: none; }
.prose .footnotes ol { padding-left: 1.4em; }
.prose .footnotes li { margin-bottom: 0.6em; }
.prose .footnotes .footnote-backref { font-family: var(--font-mono); text-decoration: none; margin-left: 4px; }
.prose sup a, .prose .footnote-ref { font-family: var(--font-mono); font-size: 0.625rem; font-weight: 600; color: var(--cyan); text-decoration: none; }

/* code blocks: overrides the inline highlighter colours */
.prose .highlight, .prose .highlight pre, .prose pre, .prose .chroma { background: var(--paper) !important; color: var(--ink) !important; }
.prose .highlight span, .prose .chroma span, .prose pre span { color: var(--ink) !important; background: transparent !important; font-style: normal !important; }
.prose .highlight .k, .prose .highlight .kd, .prose .highlight .nd, .prose .highlight .nf { font-weight: 700 !important; }
/* date is in the eyebrow */
.article .byline-block .meta-date { display: none; }
