/* 英文名生成器 /chs/English/NameGenerator */

.ng-readback {
    padding: .6rem .85rem;
    border-radius: .5rem;
    background: var(--bs-tertiary-bg);
    font-size: .95rem;
}

.ng-pinyin {
    font-weight: 600;
    color: var(--bs-primary);
}

/* ---------- suggestion cards ---------- */
.ng-card {
    padding: .9rem 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .6rem;
    background: var(--bs-body-bg);
}

/* Sound matches are the point of the tool, so they are visually distinct from the
   meaning/style top-ups that follow them. */
.ng-card-sound {
    border-left: 4px solid var(--bs-primary);
}

.ng-card-top {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-bottom: .1rem;
}

.ng-name {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
}

.ng-gender {
    margin-left: auto;
    font-size: .72rem;
    padding: .1rem .45rem;
    border-radius: 1rem;
    background: var(--bs-secondary-bg);
    color: var(--bs-secondary-color);
}

.ng-ipa {
    font-family: "Segoe UI", "Noto Sans", "DejaVu Sans", system-ui, sans-serif;
    color: var(--bs-secondary-color);
    margin-bottom: .5rem;
}

.ng-audio-btn {
    border: 0;
    background: transparent;
    color: var(--bs-primary);
    padding: 0 .15rem;
    cursor: pointer;
    line-height: 1;
}

.ng-audio-btn:hover {
    color: var(--bs-link-hover-color);
}

.ng-audio-btn[disabled] {
    opacity: .4;
    cursor: default;
}

/* Definition list as a two-column grid: label left, value right, aligned across rows. */
.ng-meta {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: .15rem .5rem;
    margin: 0 0 .6rem;
    font-size: .85rem;
}

.ng-meta dt {
    color: var(--bs-secondary-color);
    font-weight: 400;
}

.ng-meta dd {
    margin: 0;
}

.ng-reason {
    font-size: .85rem;
    padding-top: .5rem;
    border-top: 1px dashed var(--bs-border-color);
    color: var(--bs-secondary-color);
}

/* ---------- avoid list ---------- */
.ng-avoid-table td {
    font-size: .88rem;
    vertical-align: top;
}

.ng-avoid-names {
    width: 32%;
    font-weight: 600;
    color: var(--bs-danger);
}

@media (max-width: 575.98px) {
    .ng-avoid-names {
        width: 40%;
    }
}
