:root {
  --map-accent: #244bc0;
  --map-border: #dde3ee;
  --map-muted: #526174;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f7f9fc;
  color: #172338;
}

a { color: var(--map-accent); }
.text-muted { color: var(--map-muted) !important; }
.brand-mark { color: var(--map-accent); font-family: monospace; }
.home-hero { background: linear-gradient(120deg, #18357f, #315bd1); color: #fff; }
.card { border-color: var(--map-border); border-radius: .75rem; overflow: hidden; }
.card-header { background: #eef2f8; padding: 1rem; }
.block-card:hover { border-color: var(--map-accent); background: #eef3ff; }
.character-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .75rem; }
.character-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: 1rem .5rem;
  border: 1px solid var(--map-border);
  border-radius: .75rem;
  background: #fff;
  text-align: center;
  text-decoration: none;
  min-width: 0;
}
.character-tile:hover { border-color: var(--map-accent); background: #eef3ff; }
.tile-glyph, .character-hero, .analyzer-glyph { font-family: "Segoe UI", "Noto Sans", "Segoe UI Symbol", "Segoe UI Emoji", sans-serif; }
.tile-glyph { font-size: 2.8rem; line-height: 1.5; color: #172338; }
.tile-name { font-size: .65rem; color: var(--map-muted); overflow-wrap: anywhere; }
.character-hero { font-size: clamp(6rem, 14vw, 11rem); font-weight: 700; line-height: 1.4; margin: 0; }
.analyzer-glyph { font-size: 1.8rem; text-align: center; }
.encoding-value { white-space: pre-wrap; overflow-wrap: anywhere; }
.encoding-card .card-body { min-width: 0; }
.encoding-card .encoding-value { display: block; font-size: 1rem; line-height: 1.6; }
.encoding-notes { padding: 1rem; border: 1px solid var(--map-border); border-radius: .75rem; background: #fff; }
.encoding-notes summary { cursor: pointer; font-weight: 500; }
.encoding-notes li + li { margin-top: .4rem; }
code { color: #9c2450; }
.table > :not(caption) > * > * { padding: .8rem 1rem; }
.table caption { font-size: .85rem; }
dt, dd { margin-bottom: .7rem; }
:focus-visible { outline: 3px solid #244bc0; outline-offset: 3px; }
.skip-link { position: absolute; z-index: 1100; background: #fff; padding: 1rem; }
.copy-status:not(:empty) { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); background: #172338; color: #fff; padding: .75rem 1.5rem; border-radius: .5rem; z-index: 1090; }
@media (max-width: 575px) {
  .character-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table > :not(caption) > * > * { padding: .65rem; }
}
