/* Colors */ :root { --ink: #1a2748; --muted: #5a6b92; --line: #e6eaf2; --line-strong: #dce8fc; --surface: #ffffff; --tint: #f3f7fe; --canvas: #f7f9fc; --accent: #054fb3; --focus: #7db6ff; --shadow: rgb(7 32 76 / 0.04); } /* The matches beside the pages; above them on a narrow screen */ .layout { container-type: inline-size; display: flex; flex-wrap: wrap; gap: 12px; } .hits { flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; align-content: start; margin: 0; padding: 0; list-style: none; } .hit { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; font: inherit; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; cursor: pointer; box-shadow: 0 1px 2px var(--shadow); } .hit:hover { background: var(--tint); border-color: var(--line-strong); } .hit:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; } .where { font-size: 13px; font-weight: 600; color: var(--ink); } .rect { font-size: 11.5px; color: var(--accent); } /* The pages */ .stage { height: 420px; border: 1px solid var(--line); border-radius: 14px; background: var(--canvas); box-shadow: 0 1px 2px var(--shadow), 0 18px 40px -28px rgb(7 32 76 / 0.28); flex: 1 1 100%; } @container (min-width: 620px) { .hits { flex: 0 0 180px; grid-template-columns: 1fr; } .stage { flex: 1 1 0; min-width: 0; } } .loading { margin: 0; padding: 24px 0; text-align: center; font-size: 13px; color: var(--muted); }