mirror of
https://github.com/pugarte7/spanish-top-tech-companies.git
synced 2026-10-26 06:58:11 +01:00
427 lines
25 KiB
CSS
427 lines
25 KiB
CSS
:root {
|
||
color-scheme: light;
|
||
--bg: #f5f5f7;
|
||
--tile: #ffffff;
|
||
--text: #1d1d1f;
|
||
--text-2: #6e6e73;
|
||
--muted: #86868b;
|
||
--line: #d2d2d7;
|
||
--grid: #ececf0;
|
||
--fill: #e8e8ed;
|
||
--hover: #f5f5f7;
|
||
--blue: #0071e3;
|
||
--blue-soft: #d6e7fb;
|
||
--range: #7fb2ef;
|
||
--bar: rgba(245, 245, 247, .92);
|
||
--empty: #ececf0;
|
||
--seq-1: #cde2fb; --seq-2: #8fbdf3; --seq-3: #4b94e8; --seq-4: #0071e3; --seq-5: #004a99;
|
||
--ink-1: #1d1d1f; --ink-2: #1d1d1f; --ink-3: #fff; --ink-4: #fff; --ink-5: #fff;
|
||
--shadow: 0 2px 10px rgba(0, 0, 0, .04);
|
||
}
|
||
@media (prefers-color-scheme: dark) {
|
||
:root:not([data-theme="light"]) {
|
||
color-scheme: dark;
|
||
--bg: #000000;
|
||
--tile: #1c1c1e;
|
||
--text: #f5f5f7;
|
||
--text-2: #a1a1a6;
|
||
--muted: #8e8e93;
|
||
--line: #3a3a3c;
|
||
--grid: #2c2c2e;
|
||
--fill: #2c2c2e;
|
||
--hover: #2c2c2e;
|
||
--blue: #2997ff;
|
||
--blue-soft: #0b3a66;
|
||
--range: #1d5fa8;
|
||
--bar: rgba(22, 22, 23, .92);
|
||
--empty: #2c2c2e;
|
||
--seq-1: #0b3a66; --seq-2: #145a9e; --seq-3: #1f7ad6; --seq-4: #2997ff; --seq-5: #8cc4ff;
|
||
--ink-1: #fff; --ink-2: #fff; --ink-3: #fff; --ink-4: #fff; --ink-5: #000;
|
||
--shadow: none;
|
||
}
|
||
}
|
||
:root[data-theme="dark"] {
|
||
color-scheme: dark;
|
||
--bg: #000000;
|
||
--tile: #1c1c1e;
|
||
--text: #f5f5f7;
|
||
--text-2: #a1a1a6;
|
||
--muted: #8e8e93;
|
||
--line: #3a3a3c;
|
||
--grid: #2c2c2e;
|
||
--fill: #2c2c2e;
|
||
--hover: #2c2c2e;
|
||
--blue: #2997ff;
|
||
--blue-soft: #0b3a66;
|
||
--range: #1d5fa8;
|
||
--bar: rgba(22, 22, 23, .92);
|
||
--empty: #2c2c2e;
|
||
--seq-1: #0b3a66; --seq-2: #145a9e; --seq-3: #1f7ad6; --seq-4: #2997ff; --seq-5: #8cc4ff;
|
||
--ink-1: #fff; --ink-2: #fff; --ink-3: #fff; --ink-4: #fff; --ink-5: #000;
|
||
--shadow: none;
|
||
}
|
||
* { box-sizing: border-box; }
|
||
/* Rules like .more { display: block } would otherwise beat the hidden attribute. */
|
||
[hidden] { display: none !important; }
|
||
html { -webkit-text-size-adjust: 100%; }
|
||
body {
|
||
margin: 0; background: var(--bg); color: var(--text);
|
||
font: 17px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
|
||
"Inter", system-ui, sans-serif;
|
||
letter-spacing: -0.022em;
|
||
-webkit-font-smoothing: antialiased;
|
||
}
|
||
a { color: var(--blue); text-decoration: none; }
|
||
a:hover { text-decoration: underline; }
|
||
button, select, input { font: inherit; letter-spacing: inherit; color: inherit; }
|
||
|
||
/* Frosted bar */
|
||
/* Not ".bar": the map ranking draws its bars with that class and would turn sticky too. */
|
||
.topbar {
|
||
position: sticky; top: 0; z-index: 20; background: var(--bar);
|
||
-webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
|
||
border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
|
||
}
|
||
.topbar-in { max-width: 1120px; margin: 0 auto; padding: 8px 22px; min-height: 52px;
|
||
display: flex; align-items: center; gap: 16px; }
|
||
.brand { font-size: 17px; font-weight: 600; color: var(--text); white-space: nowrap; }
|
||
.brand:hover { text-decoration: none; }
|
||
.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 6px; }
|
||
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%;
|
||
background: none; color: var(--text-2); cursor: pointer; }
|
||
.icon-btn:hover { background: var(--fill); color: var(--text); text-decoration: none; }
|
||
.icon-btn svg { width: 18px; height: 18px; }
|
||
.icon-btn .sun { display: none; }
|
||
:root[data-theme="dark"] .icon-btn .sun { display: block; }
|
||
:root[data-theme="dark"] .icon-btn .moon { display: none; }
|
||
@media (prefers-color-scheme: dark) {
|
||
:root:not([data-theme="light"]) .icon-btn .sun { display: block; }
|
||
:root:not([data-theme="light"]) .icon-btn .moon { display: none; }
|
||
}
|
||
.seg { display: flex; background: var(--fill); border-radius: 980px; padding: 2px; }
|
||
.seg a { font-size: 12px; font-weight: 600; color: var(--text-2); padding: 4px 10px; border-radius: 980px; }
|
||
.seg a:hover { text-decoration: none; color: var(--text); }
|
||
.seg a.on { background: var(--tile); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
|
||
|
||
/* Hero */
|
||
.hero { max-width: 980px; margin: 0 auto; padding: 72px 22px 56px; text-align: center; }
|
||
.eyebrow { font-size: 21px; font-weight: 600; color: var(--blue); margin: 0 0 8px;
|
||
letter-spacing: .011em; min-height: 1.4em; }
|
||
.hero-stat { margin-top: 12px; display: flex; flex-direction: column; align-items: center; }
|
||
.hero-value { font-size: clamp(64px, 12vw, 128px); line-height: 1; font-weight: 700;
|
||
letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
|
||
background: linear-gradient(180deg, var(--text) 30%, color-mix(in srgb, var(--text) 55%, var(--blue)));
|
||
-webkit-background-clip: text; background-clip: text; color: transparent; }
|
||
.hero-label { font-size: 17px; color: var(--text-2); margin-top: 10px; }
|
||
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 820px;
|
||
margin: 48px auto 0; padding: 0; }
|
||
.stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
|
||
.stats dt { font-size: 14px; color: var(--text-2); }
|
||
.stats dd { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -0.02em;
|
||
font-variant-numeric: tabular-nums; }
|
||
|
||
/* Bento */
|
||
.bento { max-width: 1120px; margin: 0 auto; padding: 0 22px; display: grid;
|
||
grid-template-columns: 1fr 1fr; gap: 20px; }
|
||
.tile { background: var(--tile); border-radius: 28px; padding: 40px; min-width: 0;
|
||
box-shadow: var(--shadow); }
|
||
.tile.wide { grid-column: 1 / -1; }
|
||
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; font-weight: 700;
|
||
letter-spacing: -0.012em; margin: 0; }
|
||
.tile > h2, .tile-head { margin-bottom: 28px; }
|
||
.tile > h2:has(+ .lede) { margin-bottom: 8px; }
|
||
.lede { margin: 0 0 24px; font-size: 15px; color: var(--text-2); max-width: 60ch; }
|
||
.tile-head .lede { margin: 8px 0 0; }
|
||
.seg { display: inline-flex; flex: none; background: var(--fill); border-radius: 980px; padding: 2px; }
|
||
.seg button { border: 0; background: transparent; height: 30px; padding: 0 14px; font-size: 14px;
|
||
border-radius: 980px; cursor: pointer; color: var(--text); white-space: nowrap;
|
||
transition: background .2s, box-shadow .2s; }
|
||
.seg button[aria-pressed=true] { background: var(--tile); box-shadow: 0 1px 4px rgba(0,0,0,.12); font-weight: 500; }
|
||
.seg button:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 35%, transparent); }
|
||
#companies-card > h2 { margin-bottom: 20px; }
|
||
.source { margin: 40px 0 0; font-size: 14px; color: var(--text-2); }
|
||
.rule { margin: 40px auto 0; max-width: 60ch; font-size: 17px; text-wrap: balance; }
|
||
.rule + .source { margin-top: 10px; }
|
||
.how { max-width: 680px; margin: 18px auto 0; text-align: left; }
|
||
.how summary { width: fit-content; margin: 0 auto; padding: 4px 12px; border-radius: 980px; cursor: pointer;
|
||
list-style: none; font-size: 15px; font-weight: 600; color: var(--blue); }
|
||
.how summary::-webkit-details-marker { display: none; }
|
||
.how summary::after { content: "›"; display: inline-block; margin-left: 6px; transition: transform .15s; }
|
||
.how[open] summary::after { transform: rotate(90deg); }
|
||
.how summary:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 35%, transparent); }
|
||
.steps { margin: 16px 0 0; padding: 22px 24px 22px 44px; background: var(--tile); border-radius: 18px;
|
||
box-shadow: var(--shadow); display: grid; gap: 12px; font-size: 15px; color: var(--text-2); }
|
||
.steps b { color: var(--text); font-weight: 600; }
|
||
@media (prefers-reduced-motion: reduce) { .how summary::after { transition: none; } }
|
||
.tile-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
|
||
flex-wrap: wrap; }
|
||
input[type=search] { -webkit-appearance: none; appearance: none; background: var(--fill); border: 0;
|
||
border-radius: 12px; height: 38px; padding: 0 14px; font-size: 15px; width: 220px; outline: none; }
|
||
input[type=search]:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 35%, transparent); }
|
||
|
||
/* Company filters: a button per filter, each opening a list */
|
||
.filter-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px 16px;
|
||
margin-bottom: 20px; }
|
||
.filters { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; min-width: 0; }
|
||
.filter-row input[type=search] { flex: none; height: 34px; border-radius: 980px; font-size: 14px; }
|
||
.filter { position: relative; }
|
||
.pick { border: 0; background: var(--fill); border-radius: 980px; height: 34px; padding: 0 30px 0 14px;
|
||
font-size: 14px; cursor: pointer; white-space: nowrap; position: relative; max-width: 100%;
|
||
overflow: hidden; text-overflow: ellipsis; }
|
||
.pick::after { content: ""; position: absolute; right: 13px; top: 50%; width: 6px; height: 6px;
|
||
border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
|
||
transform: translateY(-70%) rotate(45deg); opacity: .7; }
|
||
.pick .lab { color: var(--text-2); }
|
||
.pick:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 35%, transparent); }
|
||
.filter.on .pick { background: var(--blue); color: #fff; }
|
||
.filter.on .pick .lab { color: rgba(255, 255, 255, .75); }
|
||
.menu { position: absolute; z-index: 25; top: calc(100% + 6px); left: 0; min-width: 220px;
|
||
max-width: calc(100vw - 32px); max-height: 340px; overflow-y: auto; margin: 0; padding: 6px; list-style: none;
|
||
background: var(--tile); border-radius: 14px; font-size: 14px;
|
||
box-shadow: 0 10px 32px rgba(0, 0, 0, .16), 0 0 0 .5px var(--line); }
|
||
.menu li { padding: 8px 12px 8px 32px; border-radius: 8px; cursor: pointer; position: relative;
|
||
white-space: nowrap; }
|
||
.menu li:hover, .menu li:focus-visible { background: var(--hover); outline: none; }
|
||
.menu li.sel::before { content: "✓"; position: absolute; left: 11px; color: var(--blue); font-weight: 600; }
|
||
.menu li.check::before { content: ""; position: absolute; left: 10px; top: 50%; width: 14px; height: 14px;
|
||
margin-top: -7px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--line); }
|
||
.menu li.check.sel::before { content: "✓"; background: var(--blue); color: #fff; box-shadow: none;
|
||
font-size: 11px; line-height: 14px; text-align: center; font-weight: 700; }
|
||
.menu small { color: var(--muted); font-size: 12px; margin-left: 8px; font-variant-numeric: tabular-nums; }
|
||
.menu.tree { min-width: min(320px, calc(100vw - 24px)); }
|
||
.tree li { display: flex; align-items: center; gap: 4px; padding-right: 6px; }
|
||
.tree li > span { flex: 1; overflow: hidden; text-overflow: ellipsis; }
|
||
.tree li.spec { padding-left: 48px; font-size: 13.5px; }
|
||
.tree li.spec.sel::before { left: 28px; }
|
||
.twist { flex: none; border: 0; background: none; width: 26px; height: 26px; margin: -4px 0 -4px 4px;
|
||
border-radius: 6px; color: var(--text-2); font-size: 16px; cursor: pointer; transition: transform .15s; }
|
||
.twist:hover { background: var(--fill); }
|
||
.twist.open { transform: rotate(90deg); }
|
||
.menu.span { width: 320px; padding: 16px 22px 14px; }
|
||
.span-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
|
||
.span-head b { font-size: 15px; font-weight: 600; }
|
||
.link { border: 0; background: none; color: var(--blue); font-size: 13px; cursor: pointer; padding: 0; }
|
||
.dual { position: relative; height: 24px; }
|
||
.dual .rail { position: absolute; left: 9px; right: 9px; top: 10px; height: 4px; border-radius: 2px; background: var(--fill); }
|
||
.dual .rail i { position: absolute; top: 0; bottom: 0; background: var(--blue); border-radius: 2px; }
|
||
.dual input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none;
|
||
-webkit-appearance: none; appearance: none; }
|
||
.dual input::-webkit-slider-runnable-track { background: none; height: 24px; }
|
||
.dual input::-moz-range-track { background: none; }
|
||
.dual input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 18px; height: 18px;
|
||
margin-top: 3px; border-radius: 50%; background: var(--tile); cursor: grab;
|
||
box-shadow: 0 1px 4px rgba(0, 0, 0, .25), 0 0 0 .5px var(--line); }
|
||
.dual input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border: 0; border-radius: 50%;
|
||
background: var(--tile); cursor: grab; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
|
||
.dual input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 40%, transparent); }
|
||
.ticks { display: flex; justify-content: space-between; margin: 6px 9px 0; font-size: 11px; color: var(--muted);
|
||
font-variant-numeric: tabular-nums; }
|
||
.ticks span { width: 0; display: flex; justify-content: center; white-space: nowrap; }
|
||
.dual input:focus { outline: none; }
|
||
.menu li.any { color: var(--text-2); border-bottom: 1px solid var(--grid); border-radius: 8px 8px 0 0;
|
||
margin-bottom: 4px; }
|
||
|
||
/* Map */
|
||
.map-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px;
|
||
align-items: start; }
|
||
#map { width: 100%; height: auto; display: block; }
|
||
#map .region { fill: var(--empty); stroke: var(--tile); stroke-width: 1.2; stroke-linejoin: round;
|
||
transition: fill .35s, opacity .25s; }
|
||
#map .region.has:hover { opacity: .8; }
|
||
|
||
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--text-2);
|
||
margin-top: 16px; font-variant-numeric: tabular-nums; letter-spacing: 0; }
|
||
.legend span { display: inline-flex; align-items: center; gap: 6px; }
|
||
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
|
||
|
||
/* Every region in full: an inner scroll hid the last four, with no scrollbar on a Mac. */
|
||
.ranking { list-style: none; margin: 0; padding: 0; font-size: 15px; }
|
||
.ranking li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 7px 12px;
|
||
border-radius: 12px; transition: background .15s; }
|
||
.ranking li:hover { background: var(--hover); }
|
||
.ranking .v { font-variant-numeric: tabular-nums; font-weight: 600; }
|
||
.ranking .bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--grid); }
|
||
.ranking .bar i { display: block; height: 100%; border-radius: 2px; background: var(--blue); }
|
||
.ranking .n { color: var(--muted); font-size: 13px; margin-left: 6px; }
|
||
|
||
/* Role x experience matrix */
|
||
.matrix-wrap { overflow-x: auto; margin: 0 -4px; }
|
||
.matrix { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 4px; font-size: 14px;
|
||
table-layout: fixed; }
|
||
.matrix thead th:first-child { width: 220px; }
|
||
.matrix thead th { font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; padding: 0 0 6px;
|
||
border: 0; letter-spacing: 0; }
|
||
.matrix tbody th { text-align: left; font-weight: 600; padding: 0 12px 0 0; white-space: nowrap; border: 0;
|
||
font-size: 14px; color: var(--text); letter-spacing: -0.01em;
|
||
position: sticky; left: 0; z-index: 1; background: var(--tile); }
|
||
.matrix tbody th small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
|
||
.matrix td { padding: 0; border: 0; height: 46px; }
|
||
.matrix td.na { text-align: center; color: var(--muted); background: var(--empty); border-radius: 8px; opacity: .6; }
|
||
.matrix button { width: 100%; height: 100%; border: 0; border-radius: 8px; cursor: pointer; font-size: 14px;
|
||
font-weight: 600; font-variant-numeric: tabular-nums; transition: box-shadow .15s; }
|
||
.matrix button:hover, .matrix button:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--text); }
|
||
.s1 { background: var(--seq-1); color: var(--ink-1); }
|
||
.s2 { background: var(--seq-2); color: var(--ink-2); }
|
||
.s3 { background: var(--seq-3); color: var(--ink-3); }
|
||
.s4 { background: var(--seq-4); color: var(--ink-4); }
|
||
.s5 { background: var(--seq-5); color: var(--ink-5); }
|
||
#matrix-legend i { border-radius: 3px; width: 18px; }
|
||
#matrix-legend i.na { background: var(--empty); }
|
||
|
||
/* Summary of the table's filters */
|
||
.summary { display: grid; grid-template-columns: repeat(4, auto) minmax(160px, 1fr); gap: 16px 32px; align-items: end;
|
||
padding: 16px 20px; margin-bottom: 20px; background: var(--hover); border-radius: 16px; }
|
||
.summary dl { margin: 0; display: flex; flex-direction: column-reverse; align-items: center; gap: 2px;
|
||
text-align: center; }
|
||
.summary dt { font-size: 12px; color: var(--text-2); letter-spacing: 0; }
|
||
.summary dd { margin: 0; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
||
.summary .empty { grid-column: 1 / -1; padding: 8px 0; }
|
||
.dist .bars { display: flex; align-items: flex-end; gap: 2px; height: 44px; }
|
||
.dist .col { flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; }
|
||
.dist .bars i { flex: 1; background: var(--range); border-radius: 2px 2px 0 0; transition: opacity .15s; }
|
||
.dist .bars:hover i { opacity: .45; }
|
||
.dist .bars .col:hover i { opacity: 1; }
|
||
.dist .bars i.hi { background: var(--blue); }
|
||
.dist .bars i.wh { background: none; border: 1px dashed var(--muted); border-bottom: 0; }
|
||
.dist .axis { position: relative; display: flex; justify-content: space-between; margin-top: 4px; font-size: 11px;
|
||
color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0; }
|
||
.dist .axis span:nth-child(2) { position: absolute; transform: translateX(-50%); }
|
||
|
||
/* Table */
|
||
.table-wrap { overflow-x: auto; margin: 0 -12px; }
|
||
table { width: 100%; border-collapse: collapse; font-size: 15px; }
|
||
th { font-size: 12px; font-weight: 600; color: var(--muted); text-align: left; letter-spacing: 0;
|
||
padding: 0 12px 10px; border-bottom: 1px solid var(--grid); white-space: nowrap; }
|
||
td { padding: 14px 12px; border-bottom: 1px solid var(--grid); vertical-align: middle; }
|
||
tr:last-child td { border-bottom: 0; }
|
||
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
||
td.co .name { font-weight: 600; }
|
||
td.co .co-in { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
|
||
.links { display: grid; grid-template-columns: repeat(3, 22px); gap: 10px; flex: none; }
|
||
.links a { display: block; width: 22px; height: 22px; opacity: .9; color: var(--text-2); }
|
||
.links a:hover { opacity: 1; }
|
||
.links svg { display: block; width: 22px; height: 22px; }
|
||
/* On a desktop the row carries the links; the open row repeats them for phones. */
|
||
.detail .links { display: none; }
|
||
th.sort { cursor: pointer; user-select: none; }
|
||
th.sort:hover, th.sort.on { color: var(--text); }
|
||
/* The arrow takes no width, so it does not push a centred heading off its column. */
|
||
th.sort.on::after { content: "↓"; display: inline-block; width: 0; margin-left: 4px; }
|
||
th.sort.on.asc::after { content: "↑"; }
|
||
#companies th.num, #companies td.num, #companies th.pay, #companies td.pay { text-align: center; }
|
||
td.co .cities { display: block; font-size: 13px; color: var(--muted); }
|
||
tr.main { cursor: pointer; }
|
||
tr.main:hover td, tr.main:focus-visible td { background: var(--hover); }
|
||
tr.main:focus-visible { outline: none; }
|
||
.chev { width: 20px; padding-right: 0; color: var(--muted); }
|
||
.chev span { display: inline-block; transition: transform .15s; }
|
||
tr.open .chev span { transform: rotate(90deg); }
|
||
tr.open td { border-bottom-color: transparent; }
|
||
td.pay, th.pay { text-align: right; white-space: nowrap; }
|
||
td.pay b { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
|
||
td.num b { font-weight: 600; }
|
||
tr.det td { background: var(--hover); padding: 18px 12px 20px 44px; }
|
||
.detail { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: end; }
|
||
.ybars { display: grid; grid-template-columns: repeat(6, minmax(44px, 64px)); gap: 8px; align-items: end; }
|
||
.yb { display: grid; gap: 4px; justify-items: center; font-size: 11px; color: var(--text-2);
|
||
letter-spacing: 0; }
|
||
.yb b { font-size: 12px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
|
||
.yb i { display: block; width: 100%; background: var(--range); border-radius: 4px 4px 0 0; }
|
||
.yb.on i { background: var(--blue); }
|
||
.yb.on span:last-child { color: var(--text); font-weight: 600; }
|
||
.yb i.none { height: 3px; background: var(--line); }
|
||
.yb .na { color: var(--muted); }
|
||
.split { display: grid; gap: 10px; width: 280px; max-width: 100%; }
|
||
.split dl { margin: 0; display: grid; gap: 2px; }
|
||
.split dt { font-size: 12px; color: var(--muted); }
|
||
.split dd { margin: 0; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
|
||
.mix { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; }
|
||
.mix i { display: block; }
|
||
.b0 { --c: var(--seq-4); } .b1 { --c: var(--seq-2); } .b2 { --c: var(--seq-5); }
|
||
.mix i { background: var(--c); }
|
||
.mix-key { display: flex; gap: 14px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--text-2); }
|
||
.mix-key li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 5px;
|
||
border-radius: 2px; background: var(--c); }
|
||
.mix-key b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
|
||
.mix-key .nil { opacity: .5; }
|
||
.empty { color: var(--muted); padding: 32px 0; text-align: center; }
|
||
.more { display: block; margin: 20px auto 0; border: 0; background: none; color: var(--blue);
|
||
font-size: 17px; cursor: pointer; }
|
||
.more::after { content: " ›"; }
|
||
.more:hover { text-decoration: underline; }
|
||
|
||
footer { max-width: 1120px; margin: 0 auto; padding: 40px 22px 64px; color: var(--muted);
|
||
font-size: 12px; line-height: 1.6; letter-spacing: 0; }
|
||
footer p { margin: 4px 0; max-width: 720px; }
|
||
|
||
/* Star prompt */
|
||
.star-pop { position: fixed; z-index: 25; width: 320px; max-width: calc(100vw - 32px);
|
||
right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px));
|
||
padding: 18px 20px 16px; border-radius: 18px; background: var(--tile); color: var(--text);
|
||
box-shadow: 0 12px 40px rgba(0, 0, 0, .18), 0 0 0 .5px var(--line);
|
||
animation: star-in .35s ease-out; }
|
||
@keyframes star-in { from { opacity: 0; transform: translateY(12px); } }
|
||
.star-title { margin: 0 24px 4px 0; font-size: 17px; font-weight: 600; }
|
||
.star-text { margin: 0 0 14px; font-size: 14px; color: var(--text-2); line-height: 1.4; }
|
||
.star-btn { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto; border-radius: 16px;
|
||
background: var(--fill); color: var(--text); transition: color .15s, transform .15s; }
|
||
.star-btn:hover { color: #e3b341; transform: scale(1.06); text-decoration: none; }
|
||
.star-btn svg { width: 28px; height: 28px; }
|
||
.star-x { position: absolute; top: 8px; right: 10px; width: 28px; height: 28px; border: 0; border-radius: 50%;
|
||
background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
|
||
.star-x:hover { background: var(--fill); color: var(--text); }
|
||
.star-btn:focus-visible, .star-x:focus-visible {
|
||
outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 40%, transparent); }
|
||
@media (prefers-reduced-motion: reduce) { .star-pop { animation: none; } .star-btn { transition: none; } }
|
||
|
||
#tip { position: fixed; z-index: 30; pointer-events: none; font-size: 13px; line-height: 1.45;
|
||
letter-spacing: 0; padding: 10px 12px; border-radius: 12px; max-width: 260px;
|
||
background: color-mix(in srgb, var(--tile) 86%, transparent); color: var(--text);
|
||
-webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
|
||
box-shadow: 0 8px 28px rgba(0,0,0,.16), 0 0 0 .5px var(--line); }
|
||
#tip b { font-weight: 600; }
|
||
#tip .t-sub { color: var(--text-2); }
|
||
|
||
@media (max-width: 900px) {
|
||
.summary { grid-template-columns: repeat(4, 1fr); }
|
||
.dist { grid-column: 1 / -1; }
|
||
.bento { grid-template-columns: 1fr; }
|
||
.map-grid { grid-template-columns: 1fr; gap: 24px; }
|
||
.roles { grid-template-columns: 1fr; }
|
||
.stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
|
||
}
|
||
@media (max-width: 640px) {
|
||
/* One row, so the sticky bar takes 52px of a phone's screen, not 90. */
|
||
.topbar-in { padding: 8px 10px 8px 16px; gap: 8px; }
|
||
.brand { font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
|
||
.topbar-end { gap: 2px; flex: none; }
|
||
/* The companies table fits a phone: the links move into the open row and
|
||
headings wrap, so the median and the 60k+ share stay on screen. */
|
||
td.co .co-in > .links { display: none; }
|
||
.detail .links { display: grid; }
|
||
#companies th { white-space: normal; font-size: 11px; line-height: 1.25; padding: 0 6px 8px; }
|
||
#companies td { padding: 12px 6px; }
|
||
#companies td.chev, #companies th.chev { width: 12px; padding-left: 6px; padding-right: 0; }
|
||
.hero { padding: 56px 16px 40px; }
|
||
.bento { padding: 0 12px; gap: 12px; }
|
||
.tile { padding: 28px 20px; border-radius: 22px; }
|
||
.stats dd { font-size: 26px; }
|
||
input[type=search] { width: 100%; }
|
||
td.pay b { font-size: 16px; }
|
||
tr.det td { padding-left: 12px; }
|
||
.ybars { grid-template-columns: repeat(6, 1fr); width: 100%; }
|
||
.hide-sm { display: none; }
|
||
footer { padding: 32px 16px 48px; }
|
||
.summary { grid-template-columns: 1fr 1fr; }
|
||
.filter-row { flex-wrap: wrap; }
|
||
.star-pop { width: auto; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }
|
||
.matrix { min-width: 560px; }
|
||
.matrix thead th:first-child { width: 112px; }
|
||
.matrix tbody th { white-space: normal; min-width: 104px; max-width: 120px; font-size: 13px; }
|
||
.dist { grid-column: 1 / -1; }
|
||
}
|
||
@media (max-width: 400px) {
|
||
/* The footer and the star prompt link to GitHub too. */
|
||
.topbar-end > a.icon-btn { display: none; }
|
||
}
|