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

span.country { color: var(--fg-4); margin-left: -10px; }
details.company { font-size: 0.85em; margin-left: -10px; }
details.company summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 1.6em; height: 1.6em; border: 1px solid var(--border-2); border-radius: 50%; color: var(--fg-3); font-weight: bold; cursor: pointer; }
details.company summary::-webkit-details-marker { display: none; }
details.company summary:hover { color: var(--fg-strong); background: var(--hover); }
details.company[open] summary { background: var(--fg); border-color: var(--fg); color: var(--bg); }
/* LEI not ISSUED (meta.xslt): the "i" and the row of the status orange; the
   row's band spans the column gap and the box's padding */
details.company.warn summary, details.company.warn[open] summary { background: var(--warn-strong); border-color: var(--warn-strong); color: var(--fg-strong); }
details.company dt.warn, details.company dd.warn { background: var(--warn); }
details.company dt.warn { margin-left: -14px; padding-left: 14px; box-shadow: 16px 0 0 var(--warn); }
details.company dd.warn { margin-right: -14px; padding-right: 14px; }
/* open: a clear layer over the page under the box; a click outside the box
   lands on it, a click on the summary, and closes the details (no script) */
details.company[open] summary::before { content: ""; position: fixed; inset: 0; z-index: 1; cursor: default; }
details.company dl { position: absolute; z-index: 2; top: 100%; left: 0; box-sizing: border-box; width: max-content; max-width: min(60em, 100%); max-height: 70vh; overflow-y: auto; display: grid; grid-template-columns: minmax(8em, max-content) minmax(0, 1fr); gap: 4px 16px; margin: 0.4em 0 0; padding: 10px 14px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); box-shadow: 0 8px 32px var(--shadow); }
/* the website: the box's header, across both columns */
details.company div.website { grid-column: 1 / -1; display: flex; gap: 0.5em; padding-bottom: 6px; margin-bottom: 2px; border-bottom: 1px solid var(--border); }
details.company dt { color: var(--fg-4); }
details.company dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 40em) { details.company dl { display: block; } details.company dd { margin-bottom: 0.5em; } details.company dt.warn { box-shadow: none; } }
