/* Colors */ :root { --ink: #1a2748; --muted: #5a6b92; --line: #e6eaf2; --line-strong: #dce8fc; --surface: #ffffff; --tint: #f3f7fe; --canvas: #f7f9fc; --accent: #054fb3; --accent-soft: #e8f1ff; --focus: #7db6ff; --shadow: rgb(7 32 76 / 0.04); } /* The width switch, what the rule decided, and the page buttons */ .toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; } /* One choice of a few: the pressed button is the current one */ .segmented { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--tint); border: 1px solid var(--line); border-radius: 11px; } .segmented button { font: inherit; font-size: 12.5px; font-weight: 550; color: var(--muted); background: transparent; border: 0; border-radius: 8px; padding: 6px 12px; cursor: pointer; white-space: nowrap; } .segmented button:hover { color: var(--ink); } .segmented button[aria-pressed='true'] { color: var(--accent); background: var(--surface); box-shadow: 0 1px 2px rgb(7 32 76 / 0.1); } .segmented button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; } .badge { font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--tint); border: 1px solid var(--line); border-radius: 8px; padding: 6px 11px; white-space: nowrap; } .badge strong { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; } /* The badge lights up while the compact rule applies */ .badge[data-on='true'] { color: var(--accent); background: var(--accent-soft); border-color: var(--line-strong); } .pager { display: flex; gap: 8px; margin-left: auto; } .button { min-width: 38px; font: inherit; font-size: 13.5px; font-weight: 550; line-height: 1.1; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; cursor: pointer; white-space: nowrap; box-shadow: 0 1px 2px var(--shadow); transition: background-color 0.15s ease, border-color 0.15s ease; } .button:hover { background: var(--tint); border-color: var(--line-strong); } .button:active { transform: translateY(1px); } .button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; } .button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; } /* The Stage measures its own box: a narrow frame is compact on any screen */ .frame { margin: 0 auto; transition: max-width 0.25s ease; } .frame[data-width='narrow'] { max-width: 360px; } /* 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); } .loading { margin: 0; padding: 24px 0; text-align: center; font-size: 13px; color: var(--muted); }