:root {
  --bg: #ffffff;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #0a66c2;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans TC", sans-serif;
}

main { max-width: 1400px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.6rem; margin: 0.25rem 0 0.5rem; }
a { color: var(--accent); }
.muted { color: var(--muted); font-size: 0.9rem; }
.crumbs { font-size: 0.9rem; color: var(--muted); }

.coming-soon {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.coming-soon h1 { font-size: clamp(2.2rem, 8vw, 4rem); letter-spacing: -0.02em; margin: 0; }
.coming-soon .tagline { font-size: clamp(1.1rem, 3.5vw, 1.4rem); color: var(--muted); margin: 0.5rem 0 0; }

.diagram { margin: 12px 0; }
.diagram img { display: block; max-width: 100%; height: auto; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  margin: 12px 0;
}
.toolbar input {
  font: inherit;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: min(360px, 100%);
}
.toolbar button {
  font: inherit;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f5f5f7;
  cursor: pointer;
}

/* Data pages use the full window: the grid has many columns and folds the rest. */
main#issuers { max-width: none; }
#grid { font-size: 0.9rem; }
/* Folded columns (narrow screens): wrap long values such as Notes instead of overflowing. */
#grid .tabulator-responsive-collapse td { white-space: normal; word-break: break-word; vertical-align: top; }
#grid .tabulator-responsive-collapse td:first-child { white-space: nowrap; word-break: normal; padding-right: 12px; }
