/* Unicode Search — scoped to /unicodes */

.uc-lead {
  margin: 8px 0 22px;
  color: var(--as-muted);
  font-size: 16px;
  line-height: 1.55;
}

.uc-search.asante-search {
  max-width: none;
  margin: 0;
}

.uc-hint {
  margin: 10px 0 0;
  color: var(--as-muted);
  font-size: 13px;
}

.uc-hint button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--as-accent-dark);
  font-family: var(--as-font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px solid rgba(20, 189, 238, 0.45);
}

.uc-hint button:hover {
  color: var(--as-navy);
}

.uc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}

.uc-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
  margin: 16px 0 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--as-line);
  border-radius: 16px;
  box-shadow: var(--as-shadow);
}

.uc-cat {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 1px solid transparent;
  background: var(--as-paper);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  font-family: var(--as-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--as-ink);
  text-align: left;
}

.uc-cat:hover {
  border-color: var(--as-navy);
}

.uc-cat[aria-pressed="true"] {
  background: var(--as-navy);
  border-color: var(--as-navy);
  color: #fff;
}

.uc-cat-mark {
  flex: none;
  width: 1.35em;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-variant-emoji: emoji;
  font-size: 18px;
  line-height: 1;
  text-align: center;
}

.uc-cat-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uc-chip {
  border: 1px solid var(--as-line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--as-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--as-ink-soft);
  cursor: pointer;
}

.uc-chip:hover {
  border-color: var(--as-navy);
  color: var(--as-navy);
}

.uc-chip[aria-pressed="true"] {
  background: var(--as-navy);
  border-color: var(--as-navy);
  color: #fff;
}

.uc-block-label {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--as-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--as-ink-soft);
}

.uc-block-label select {
  min-width: 220px;
  max-width: 320px;
  height: 36px;
  border: 1px solid var(--as-line);
  border-radius: 999px;
  background: #fff;
  color: var(--as-ink);
  font-family: var(--as-font);
  font-size: 13px;
  font-weight: 600;
  padding: 0 28px 0 12px;
}

.uc-status {
  margin: 0 0 12px;
  color: var(--as-muted);
  font-size: 14px;
  min-height: 1.3em;
}

.uc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.uc-inspect {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.uc-inspect[hidden] {
  display: none !important;
}

.uc-gbtn {
  border: 1px solid var(--as-line);
  background: #fff;
  border-radius: 12px;
  min-width: 52px;
  padding: 8px 10px 6px;
  cursor: pointer;
  font-family: var(--as-font);
  color: var(--as-ink);
}

.uc-gbtn.is-on {
  border-color: var(--as-accent);
  box-shadow: 0 0 0 3px rgba(20, 189, 238, 0.18);
}

.uc-gbtn .uc-glyph {
  font-size: 22px;
  min-height: 0;
}

.uc-gbtn .uc-glyph--label {
  font-size: 11px;
}

.uc-norm {
  flex-basis: 100%;
  margin: 0;
  color: var(--as-muted);
  font-size: 13px;
}

.uc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}

.uc-card-wrap {
  position: relative;
}

.uc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 148px;
  text-align: center;
  border: 1px solid var(--as-line);
  background: #fff;
  border-radius: 16px;
  padding: 18px 12px 14px;
  cursor: pointer;
  font-family: var(--as-font);
  color: var(--as-ink);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.uc-card:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 189, 238, 0.45);
  box-shadow: var(--as-shadow);
}

.uc-card.is-on {
  border-color: var(--as-accent);
  box-shadow: 0 0 0 3px rgba(20, 189, 238, 0.18);
}

.uc-fav {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  border: 0;
  background: transparent;
  color: #c4b8a8;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 4px;
}

.uc-fav.is-on {
  color: var(--as-gold);
}

.uc-style {
  display: inline-flex;
  border: 1px solid var(--as-line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.uc-style-btn {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  font-family: var(--as-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--as-ink-soft);
  cursor: pointer;
}

.uc-style-btn + .uc-style-btn {
  border-left: 1px solid var(--as-line);
}

.uc-style-btn[aria-pressed="true"] {
  background: var(--as-navy);
  color: #fff;
}

.uc-glyph,
.uc-hero,
.uc-pills button {
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Plus Jakarta Sans", "Segoe UI Symbol", sans-serif;
  font-variant-emoji: emoji;
}

.uc-layout.is-text .uc-glyph,
.uc-layout.is-text .uc-hero,
.uc-layout.is-text .uc-pills button {
  font-family: "Plus Jakarta Sans", "Segoe UI Symbol", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-variant-emoji: text;
}

.uc-glyph {
  font-size: 40px;
  line-height: 1.15;
  min-height: 48px;
}

.uc-glyph--label,
.uc-layout.is-text .uc-glyph--label {
  font-family: var(--as-font);
  font-variant-emoji: normal;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--as-navy);
  border: 1px dashed var(--as-line);
  border-radius: 8px;
  padding: 6px 8px;
  min-height: 0;
  line-height: 1.2;
}

.uc-glyph--mark {
  font-size: 34px;
}

.uc-glyph.uc-glyph--flag,
.uc-hero.uc-glyph--flag,
.uc-pills button.uc-glyph--flag {
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-variant-emoji: emoji;
}

.uc-flag {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.1em;
  object-fit: contain;
}

.uc-name {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.uc-code {
  margin-top: 4px;
  font-size: 12px;
  color: var(--as-muted);
  font-variant-numeric: tabular-nums;
}

.uc-detail[hidden] {
  display: none !important;
}

.uc-detail {
  background: #fff;
  border: 1px solid var(--as-line);
  border-radius: 16px;
  padding: 18px 18px 14px;
  box-shadow: var(--as-shadow);
}

.uc-detail-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.uc-hero {
  line-height: 1.1;
  min-height: 1.1em;
  word-break: break-word;
}

.uc-detail h3 {
  font-size: 22px;
  letter-spacing: -0.03em;
  margin: 10px 0 2px;
}

.uc-official {
  margin: 0 0 8px;
  color: var(--as-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.uc-fontnote {
  margin: 0 0 12px;
  color: var(--as-muted);
  font-size: 12px;
}

.uc-size {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--as-ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.uc-size input {
  flex: 1;
}

.uc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.uc-actions .asante-copy {
  margin-left: 0;
}

.uc-star,
.uc-close {
  border: 1px solid var(--as-line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--as-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--as-navy);
  cursor: pointer;
}

.uc-star.is-on {
  border-color: var(--as-gold);
  color: #8a6438;
}

.uc-section {
  margin-top: 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--as-gold);
}

.uc-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px 0;
  border-top: 1px solid var(--as-line);
  font-size: 13px;
}

.uc-row dt {
  margin: 0;
  color: var(--as-muted);
  font-weight: 600;
}

.uc-row dd {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.uc-row code {
  font-size: 12px;
  word-break: break-all;
  color: var(--as-ink);
  background: transparent;
}

.uc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.uc-pills button {
  border: 1px solid var(--as-line);
  background: var(--as-paper);
  border-radius: 10px;
  min-width: 42px;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1.2;
}

.uc-pills button.is-on {
  border-color: var(--as-accent);
  box-shadow: 0 0 0 3px rgba(20, 189, 238, 0.18);
}

.uc-pills button small {
  display: block;
  font-family: var(--as-font);
  font-size: 10px;
  color: var(--as-muted);
}

@media (min-width: 992px) {
  .uc-layout.has-detail {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .uc-detail {
    position: sticky;
    top: calc(var(--as-header) + 12px);
    max-height: calc(100vh - var(--as-header) - 28px);
    overflow: auto;
  }
}

@media (max-width: 991px) {
  .uc-detail {
    order: -1;
  }

  .uc-block-label {
    margin-left: 0;
    width: 100%;
  }

  .uc-block-label select {
    flex: 1;
    max-width: none;
  }
}
