/* A source (sections/sources.py): a statement's source, which its text cites in brackets, as a raised mark that
   carries the link. Its number in Caption and the accent ink, raised off the line with no room taken from it; its
   brackets and the source's name in the markup, in the line and out of the picture (no size: a page's text reads
   "uptime (Synthflow facts)" as before); the name over the mark on hover, on focus and on a tap (.is-open), on a white
   card with the source's host under it. A thumb reaches it: its tap area is 44 px high on a phone. */
html main :is(.src-b, a.src > .src-name) { font-size: 0; line-height: 0; letter-spacing: 0; white-space: nowrap; }
html main a.src { position: relative; top: -0.5em; margin-inline-start: 0.1em; color: var(--src-ink, var(--ink-accent)); font: var(--t-caption); letter-spacing: 0;
  font-variant-numeric: tabular-nums; line-height: 0; vertical-align: baseline; text-decoration: none; white-space: nowrap; }
html main a.src::before { content: attr(data-n); content: attr(data-n) / ""; }
html main a.src.src--then { margin-inline-start: 0; }
html main a.src.src--then::before { content: "," attr(data-n); content: "," attr(data-n) / ""; }
html main a.src::after { content: ""; position: absolute; inset: -0.9em -0.3em -0.5em; }
html main a.src:hover { color: var(--src-ink-hover, var(--accent-strong)); }
html main a.src:not(.is-shut):is(:focus-visible, .is-open) > .src-name { position: absolute; bottom: calc(100% + var(--space-1)); left: 50%; z-index: var(--layer-raised); translate: calc(-50% + var(--src-shift, 0px)) 0;
  display: block; width: max-content; max-width: min(20rem, calc(100vw - var(--space-6))); padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-xs); background: var(--surface-card); box-shadow: var(--elev-2); color: var(--ink-accent); font: var(--t-small); white-space: normal;
  text-align: start; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; overflow-wrap: anywhere; text-wrap: pretty; }
html main a.src:not(.is-shut):is(:focus-visible, .is-open) > .src-name::after { content: attr(data-host); content: attr(data-host) / ""; display: inline-block; width: 100%; margin-top: 2px; color: var(--ink-secondary); font: var(--t-meta); }
@media (hover: hover) {
  html main a.src:not(.is-shut):hover > .src-name { position: absolute; bottom: calc(100% + var(--space-1)); left: 50%; z-index: var(--layer-raised); translate: calc(-50% + var(--src-shift, 0px)) 0;
  display: block; width: max-content; max-width: min(20rem, calc(100vw - var(--space-6))); padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-xs); background: var(--surface-card); box-shadow: var(--elev-2); color: var(--ink-accent); font: var(--t-small); white-space: normal;
  text-align: start; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; overflow-wrap: anywhere; text-wrap: pretty; }
  html main a.src:not(.is-shut):hover > .src-name::after { content: attr(data-host); content: attr(data-host) / ""; display: inline-block; width: 100%; margin-top: 2px; color: var(--ink-secondary); font: var(--t-meta); }
}
html main .src-probe { position: absolute; bottom: calc(100% + var(--space-1)); left: 50%; z-index: var(--layer-raised); translate: calc(-50% + var(--src-shift, 0px)) 0;
  display: block; width: max-content; max-width: min(20rem, calc(100vw - var(--space-6))); padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-xs); background: var(--surface-card); box-shadow: var(--elev-2); color: var(--ink-accent); font: var(--t-small); white-space: normal;
  text-align: start; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; overflow-wrap: anywhere; text-wrap: pretty; position: fixed; top: 0; left: 0; translate: none; visibility: hidden; }
html main .src-probe::after { content: attr(data-host); content: attr(data-host) / ""; display: inline-block; width: 100%; margin-top: 2px; color: var(--ink-secondary); font: var(--t-meta); }
html main :is(a.src > .src-name, .src-probe)[data-host=""]::after { content: none; }
@media (pointer: coarse) { html main a.src::after { inset: -16px -12px; } }
/* On midnight the mark takes the link's ink there */
html main :is(.fr-quote, a.src.text-link--on-dark) { --src-ink: var(--ink-on-dark-accent); --src-ink-hover: var(--ink-on-dark); }
/* On paper the source stands as the text wrote it, in its brackets */
@media print {
  html main :is(.src-b, a.src > .src-name) { position: static; font: inherit; line-height: inherit; translate: none; box-shadow: none; padding: 0; }
  html main a.src { top: 0; margin: 0; color: inherit; font: inherit; line-height: inherit; }
  html main a.src::before, html main a.src > .src-name::after { content: none; }
}
/* The page's end of sources: its notes on them, then each source it cites by its number, its name and its host, in
   Small and the secondary ink, in columns as wide as a source's line reads */
.fr-sources > .container { display: grid; gap: var(--space-3); padding-top: var(--space-5); border-top: 1px solid var(--border-subtle); }
.fr-sources-title { margin: 0; color: var(--ink-primary); font: var(--t-label); letter-spacing: 0; }
.fr-sources-read { max-width: var(--measure); margin: 0; color: var(--ink-secondary); font: var(--t-small); text-wrap: pretty; }
.fr-sources-read a { color: inherit; }
.fr-sources-list { margin: var(--space-2) 0 0; padding: 0 0 0 2.25em; columns: 3 17rem; column-gap: var(--space-7); color: var(--ink-secondary); font: var(--t-small);
  font-variant-numeric: tabular-nums; list-style: decimal outside; }
.fr-sources-list > li { display: list-item; padding-block: 2px; break-inside: avoid; overflow-wrap: anywhere; scroll-margin-top: var(--space-9); }
@media (max-width: 599px) { .fr-sources-list { font: var(--t-meta); } .fr-sources-list > li { padding-block: 1px; } }
.fr-sources-list > li::marker { color: var(--ink-secondary); }
.fr-sources-list a.text-link { color: var(--ink-primary); font: inherit; }
.fr-sources-list > li:not([data-host=""])::after { content: " · " attr(data-host); content: " · " attr(data-host) / ""; color: var(--ink-secondary); }   /* its host: an address, the same in every language */
