/* index.css: the styles of xslt/index.xslt.

   The B612 fonts come from /static/fonts (served by the Go server), so
   every visitor gets them, installed or not; WOFF2, which all current
   browsers read. Bold also covers font-weight 600. */

@font-face { font-family: B612; font-weight: 400; font-style: normal; font-display: swap; src: url(/static/fonts/B612-Regular.woff2) format("woff2"); }
@font-face { font-family: B612; font-weight: 700; font-style: normal; font-display: swap; src: url(/static/fonts/B612-Bold.woff2) format("woff2"); }
@font-face { font-family: "B612 Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url(/static/fonts/B612Mono-Regular.woff2) format("woff2"); }
:root { color-scheme: light dark;
    --bg: light-dark(#fff, #17191c); --fg: light-dark(#222, #e6e6e6); --fg-strong: light-dark(#000, #fff);
    --fg-2: light-dark(#444, #c4c4c4); --fg-3: light-dark(#555, #b0b0b0); --fg-4: light-dark(#666, #9c9c9c);
    --fg-5: light-dark(#888, #858585); --fg-faint: light-dark(#aaa, #6b6b6b);
    --border-faint: light-dark(#eee, #2a2d31); --border: light-dark(#ddd, #34373c); --border-2: light-dark(#ccc, #44484e);
    --border-3: light-dark(#bbb, #555a60); --border-4: light-dark(#999, #6b7076); --border-heavy: light-dark(#555, #a0a0a0);
    --surface: light-dark(#f6f6f6, #25282c); --surface-hover: light-dark(#e8e8e8, #30343a);
    --hover: light-dark(#eef, #263042); --hover-2: light-dark(#f4f4f4, #23262a);
    --neg: light-dark(#a00, #ff8a80); --mismatch: light-dark(#fde8e8, #4d2323);
    --link: light-dark(#00e, #8ab4f8);
    --mark: light-dark(#fff3b0, #4a4120); --mark-strong: light-dark(#ffd84d, #7a6420); --callout: light-dark(#b35c00, #ffb15c);
    --warn: light-dark(#ffe0b8, #4d3416); --warn-strong: light-dark(#ffa94d, #b35c00);
    --shadow: light-dark(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.6)); --backdrop: light-dark(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)); }
:root[data-theme=light] { color-scheme: light; }
:root[data-theme=dark] { color-scheme: dark; }
a { color: var(--link); }
body { font-family:  B612, Helvetica, Arial, sans-serif; margin: 0 24px 24px; color: var(--fg); background: var(--bg); display: flex; flex-direction: column; min-height: calc(100dvh - 24px); }
main { margin-bottom: 3em; }
/* "Preview" (index.xslt): a band at 45 degrees across the top left corner
   of the window, over the content and the sticky header, which keep their
   place */
.preview-ribbon { position: fixed; top: 14px; left: -36px; z-index: 10; width: 120px; padding: 3px 0; transform: rotate(-45deg); text-align: center; font-size: 0.7em; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; color: var(--fg-strong); background: var(--warn-strong); box-shadow: 0 1px 3px var(--shadow); }
a.preview-ribbon:hover { text-decoration: underline; }
/* a link to what is part of the paid service, for a visitor (index.xslt,
   mode paid-links): grey with a lock, not the page it is on. In a dense list
   no lock: the years dotted; a figure that links to its fact-refs, public
   itself, only that */
body a.paid-link:not([aria-current]), section.peers p.sectors a.paid-link:not([aria-current]) { color: var(--fg-4); }
a.paid-link:not([aria-current])::after { content: ""; display: inline-block; width: 0.7em; height: 0.7em; margin-left: 0.3em; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 7h1V5a4 4 0 0 1 8 0v2h1v8H3zm3 0h4V5a2 2 0 0 0-4 0z'/%3E%3C/svg%3E") center / contain no-repeat; }
body td a.paid-link:not([aria-current]) { color: inherit; text-decoration: underline dotted var(--fg-5); }
body span.years a.paid-link:not([aria-current]) { color: var(--fg-5); text-decoration: underline dotted; }
:is(td, span.years, section.peers) a.paid-link:not([aria-current])::after { display: none; }
/* why a report's figures are X (index.xslt, throttle-notice, #81; older-notice) */
p.throttle-notice, p.older-notice { margin: 1em 0; padding: 10px 14px; border-left: 4px solid var(--warn-strong); background: var(--warn); color: var(--fg-strong); }
/* a form of forms.xml (forms.xslt): in a post (blog.xslt), or the rule's
   below the content (index.xslt page-form), on the company pages the
   note on the data, apart from the report */
form.form { display: grid; gap: 1em; margin: 1em 0 2em; }
form.form label { display: grid; gap: 0.3em; }
form.form label span { font-weight: bold; }
form.form input, form.form textarea { font: inherit; box-sizing: border-box; width: 100%; background: var(--bg); color: var(--fg); padding: 0.4em 0.6em; border: 1px solid var(--border-3); border-radius: 4px; }
form.form textarea { resize: vertical; line-height: 1.5; }
form.form button { font: inherit; justify-self: start; padding: 4px 14px; border: 1px solid var(--fg-3); border-radius: 4px; background: var(--surface); color: var(--fg); font-weight: bold; cursor: pointer; }
form.form button:hover { background: var(--surface-hover); }
form.form label small { color: var(--fg-3); }
form.form .form-error { color: var(--neg); }
form.form p.form-error { margin: 0; font-weight: bold; }
form.form [aria-invalid="true"] { border-color: var(--neg); }
p.form-sent { padding: 0.8em 1em; background: var(--surface); border-radius: 4px; }
main > div.form { max-width: 40em; margin-top: 2.5em; padding-top: 1em; border-top: 1px solid var(--border-faint); }
/* a form without done, back on its page (#form-<name>): its <sent> instead
   of it; after a rejected one (no <sent>) the form with the errors */
div.form > p.form-sent { display: none; }
div.form:target > p.form-sent { display: block; }
div.form:target:has(> p.form-sent) > :is(form, details) { display: none; }
/* a form with a <summary>: closed, "Spotted an error in the data? Let us know ›",
   the arrow turned down once open */
div.form > details > summary { list-style: none; display: inline-block; font-size: 0.85em; color: var(--fg-4); cursor: pointer; }
div.form > details > summary::-webkit-details-marker { display: none; }
div.form > details > summary::after { content: "›"; display: inline-block; margin-left: 0.4em; transition: transform 0.15s; }
div.form > details[open] > summary::after { transform: rotate(90deg); }
div.form > details > summary:hover { color: var(--fg-strong); text-decoration: underline; }
/* a table wider than the screen (the statements on a phone) scrolls in
   its div.scroll, not the whole page */
div.scroll { overflow-x: auto; }
div.top { order: -1; position: sticky; top: 0; z-index: 1; margin: 0 -24px; padding: 0 24px; background: var(--bg); display: flex; flex-direction: column; }
div.top:has(> :not(header.site)) { border-bottom: 1px solid var(--border-faint); }
header.site { order: -1; margin: 0 -24px; padding: 16px 24px 12px; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 1fr auto auto 1fr; align-items: center; column-gap: 16px; }
header.site > hgroup { grid-area: 1 / 1; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 16px; margin: 0 0 0.3em; }
header.site > hgroup > h1 { margin: 0; }
p.claim { margin: 0; color: var(--fg-4); }
header.site > div { grid-area: 2 / 1; }
header.site > form.site-search { grid-area: 1 / 2 / 3 / 3; }
header.site > nav.pick { grid-area: 1 / 3 / 3 / 4; }
header.site > div.end { grid-area: 1 / 4 / 3 / 5; justify-self: end; display: flex; align-items: center; gap: 16px; }
/* the search next to the sections on a wide screen, below them on a medium
   one, a row of its own above them on a narrow one */
@media (max-width: 70em) { header.site { grid-template-columns: 1fr auto 1fr; } header.site > nav.pick { grid-area: 1 / 2 / 3 / 3; } header.site > div.end { grid-area: 1 / 3 / 3 / 4; } header.site > form.site-search { grid-area: 3 / 2 / 4 / 3; margin-top: 0.8em; } }
@media (max-width: 48em) { header.site { grid-template-columns: minmax(0, 1fr) auto; } header.site > div.end { grid-area: 1 / 2 / 3 / 3; } header.site > form.site-search { grid-area: 3 / 1 / 4 / 3; margin-top: 0.8em; } header.site > nav.pick { grid-area: 4 / 1 / 5 / 3; margin-top: 0.8em; } }
nav.more { display: flex; gap: 16px; }
nav.more a { color: var(--fg); text-decoration: none; }
nav.more a:hover { color: var(--fg-strong); text-decoration: underline; }
nav.more a[aria-current] { color: var(--fg-strong); text-decoration: underline; text-underline-offset: 4px; }
footer.site { margin: auto -24px -24px; padding: 12px 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 0.85em; color: var(--fg-4); }
footer.site a { color: var(--fg-4); text-decoration: none; }
footer.site a:hover { color: var(--fg-strong); text-decoration: underline; }
h1 { font-size: 1.3em; font-weight: normal; max-width: 60em; margin: 0 0 0.3em; }
h1 > a { color: var(--fg-strong); text-decoration: none;}
/* read by crawlers and screen readers, not shown: the rest of the <h1> */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
button.theme { display: flex; padding: 6px; border: 1px solid var(--border-2); border-radius: 50%; background: var(--bg); color: var(--fg); cursor: pointer; }
button.theme:hover { background: var(--surface-hover); }
/* the signup, /subscribe: a rounded link next to the theme switch, in its border */
a.subscribe { padding: 4px 12px; border: 1px solid var(--border-2); border-radius: 999px; background: var(--bg); color: var(--fg); text-decoration: none; }
a.subscribe:hover { background: var(--surface-hover); }
a.subscribe[aria-current] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
article.account dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; }
article.account dt { color: var(--fg-4); }
article.account dd { margin: 0; overflow-wrap: anywhere; }
span.dots span { opacity: 0; animation: 4s steps(1) infinite; }
span.dots span:nth-child(1) { animation-name: dot-1; }
span.dots span:nth-child(2) { animation-name: dot-2; }
span.dots span:nth-child(3) { animation-name: dot-3; }
@keyframes dot-1 { 0% { opacity: 1; } 75% { opacity: 0; } }
@keyframes dot-2 { 25% { opacity: 1; } 75% { opacity: 0; } }
@keyframes dot-3 { 50% { opacity: 1; } 75% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { span.dots span { opacity: 1; animation: none; } }
