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

table.compare th.company { text-align: right; vertical-align: bottom; white-space: normal; min-width: 9em; max-width: 14em; }
table.compare th.company a { color: var(--fg-strong); }
table.compare th.company span { display: block; color: var(--fg-4); font-size: 0.9em; }
table.compare th.company span.differs { color: var(--neg); }
table.compare th.company nav { display: flex; justify-content: flex-end; gap: 6px; font-size: 0.9em; }
table.compare th.company nav a { color: var(--fg-4); text-decoration: none; padding: 0 4px; border: 1px solid var(--border-2); border-radius: 4px; }
table.compare th.company nav a:hover { background: var(--hover); color: var(--fg-strong); }
table.compare td sup { font-size: 0.7em; color: var(--fg-4); margin-left: 1px; }
table.compare td sup.partial { color: var(--warn-strong); font-weight: 700; }
table.compare td[title] { cursor: help; }
/* the companies to compare with: a fly-over box under the button "Compare
   with", above the table; a click outside the box lands on the clear layer
   of the open summary and closes it (no script), as details.company */
details.peers { position: relative; margin: 1em 0 0; }
details.peers > summary { list-style: none; display: inline-block; padding: 2px 10px; border: 1px solid var(--border-2); border-radius: 4px; color: var(--fg); cursor: pointer; }
details.peers > summary::-webkit-details-marker { display: none; }
details.peers > summary:hover { background: var(--hover); }
details.peers[open] > summary { background: var(--fg); border-color: var(--fg); color: var(--bg); }
details.peers[open] > summary::before { content: ""; position: fixed; inset: 0; z-index: 1; cursor: default; }
details.peers > section.peers { position: absolute; z-index: 2; top: 100%; left: 0; box-sizing: border-box; width: min(60em, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; margin-top: 0.4em; padding: 4px 16px 14px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); box-shadow: 0 8px 32px var(--shadow); }
section.peers h3 { font-size: 1em; font-weight: 600; margin: 1.5em 0 0.4em; }
section.peers > :first-child { margin-top: 0.8em; }
section.peers ul { list-style: none; margin: 0; padding: 0; columns: 18em; column-gap: 24px; }
section.peers li { break-inside: avoid; padding: 2px 0; }
/* the company names as in the cards of the sections (ul.entries) */
section.peers li a { color: var(--fg); text-decoration: none; }
section.peers li a:hover { text-decoration: underline; }
section.peers form { display: flex; gap: 8px; margin: 0.6em 0 0; }
section.peers input[type=search] { font: inherit; background: var(--bg); color: var(--fg); padding: 4px 8px; border: 1px solid var(--border-3); border-radius: 4px; width: min(24em, 100%); }
section.peers button { font: inherit; padding: 4px 14px; border: 1px solid var(--border-4); border-radius: 4px; background: var(--surface); color: var(--fg); cursor: pointer; }
section.peers p { color: var(--fg-4); }
section.peers p.sectors { color: var(--fg); margin: 0.3em 0; line-height: 1.7; }
section.peers p.sectors a { color: var(--fg); }
section.peers p.sectors a[aria-current] { font-weight: 600; }
/* the peers of a sector median below the table (#86) */
section.median-peers h3 { font-size: 1em; font-weight: 600; margin: 1.5em 0 0.4em; }
section.median-peers ul { list-style: none; margin: 0; padding: 0; columns: 22em; column-gap: 24px; }
section.median-peers li { break-inside: avoid; padding: 2px 0; }
section.median-peers li a { color: var(--fg); }
nav.statements { display: flex; flex-wrap: wrap; gap: 4px; margin: 1em 0 0; }
nav.statements a { padding: 2px 10px; border: 1px solid var(--border-2); border-radius: 4px; color: var(--fg); text-decoration: none; }
nav.statements a:hover { background: var(--hover); }
nav.statements a[aria-current] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
p.variants { margin: 0.6em 0 0; font-size: 0.85em; color: var(--fg-4); }
table.compare tbody.memo th, table.compare tbody.memo td { font-size: 0.9em; color: var(--fg-3); }
/* calibrated on a row (the parameter "base"): the index column, the base
   row shaded; the ÷ after each row calibrates on it, faint until the row
   is pointed at */
table.compare th.cal, table.compare td.cal { border-bottom-color: transparent; padding: 3px 0 3px 6px; text-align: center; }
table.compare td.cal a { display: inline-block; min-width: 1.4em; color: var(--fg-faint); text-decoration: none; padding: 0 4px; border: 1px solid transparent; border-radius: 4px; font-weight: normal; }
table.compare tr:hover td.cal a { color: var(--fg-4); border-color: var(--border-2); }
table.compare td.cal a:hover { background: var(--hover); color: var(--fg-strong); }
table.compare tr.base th, table.compare tr.base td:not(.cal) { background: var(--hover); }
table.compare tr.base td.cal a { color: var(--bg); background: var(--fg); border-color: var(--fg); }
table.compare th.index { min-width: 4.5em; }
table.compare th.index span { display: block; color: var(--fg-4); font-size: 0.9em; }
table.compare td.index { color: var(--fg-3); border-left: 1px solid var(--border-faint); }
table.compare td.index.near { color: var(--fg-4); }
table.compare td.index.far { color: var(--fg-strong); font-weight: 600; }
table.compare tr.base td.index { color: var(--fg-strong); }
table.compare td.index.empty { color: var(--fg-faint); }
p.calibrated { margin: 1em 0 0; }
p.calibrated a { color: var(--fg-4); margin-left: 0.6em; }
p.calibrated span.explain { color: var(--fg-4); font-size: 0.9em; }
