/* Top Women: page, list, filters and nomination form */

.np-tw-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 20px 72px;
}
.np-tw-page__title {
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}
.np-tw-page__content > p:first-child {
    max-width: 680px;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--united-muted-color, #6B6B6B);
    margin: 0 0 32px;
}

/* ---- Filter bar ---- */
.np-tw__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}
.np-tw__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.np-tw__chip {
    appearance: none;
    border: 1px solid var(--united-border-color, #E6E6E6);
    background: var(--united-surface-color, #fff);
    color: var(--united-text-color, #1A1A1F);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 999px;
    cursor: pointer;
}
.np-tw__chip:hover {
    border-color: var(--united-heading-color, #0B0B0F);
}
.np-tw__chip[aria-pressed="true"] {
    background: var(--united-heading-color, #0B0B0F);
    border-color: var(--united-heading-color, #0B0B0F);
    color: var(--united-background-color, #fff);
}
.np-tw__tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.np-tw__search {
    min-width: 230px;
    padding: 10px 14px;
    border: 1px solid var(--united-border-color, #E6E6E6);
    border-radius: var(--united-radius-sm, 10px);
    background: var(--united-surface-color, #fff);
    color: var(--united-text-color, #1A1A1F);
    font: inherit;
}

/* ---- Buttons ---- */
.np-tw__button {
    display: inline-block;
    appearance: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    padding: 11px 20px;
    border-radius: 999px;
    background: var(--united-accent-color, #FF2E63);
    color: #fff;
    line-height: 1.2;
}
.np-tw__button:hover {
    background: var(--united-accent-strong-color, #d92755);
    color: #fff;
}
.np-tw__button--ghost {
    background: transparent;
    color: var(--united-heading-color, #0B0B0F);
    box-shadow: inset 0 0 0 1px var(--united-border-strong-color, #0B0B0F);
    margin-left: 8px;
}
.np-tw__button--ghost:hover {
    background: var(--united-alt-color, #F3F3F3);
    color: var(--united-heading-color, #0B0B0F);
}

/* ---- Cards ---- */
.np-tw__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}
.np-tw-card {
    display: flex;
    flex-direction: column;
    background: var(--united-surface-color, #fff);
    border: 1px solid var(--united-border-color, #E6E6E6);
    border-radius: var(--united-radius-md, 14px);
    overflow: hidden;
}
.np-tw-card[hidden],
.np-tw__empty[hidden] {
    display: none;
}
.np-tw-card__photo {
    aspect-ratio: 4 / 5;
    background: var(--united-alt-color, #F3F3F3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.np-tw-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.np-tw-card__initials {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--united-heading-font-family);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    background: var(--united-accent-color, #FF2E63);
}
.np-tw-card__body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.np-tw-card__cat {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--united-accent-ink-color, #b3153f);
}
.np-tw-card__name {
    margin: 2px 0 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
    text-transform: none;
}
.np-tw-card__role {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--united-text-color, #1A1A1F);
}
.np-tw-card__place {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--united-muted-color, #6B6B6B);
}
.np-tw-card__more {
    margin-top: 10px;
    font-size: 0.9375rem;
}
.np-tw-card__more summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--united-heading-color, #0B0B0F);
}
.np-tw-card__bio {
    margin-top: 8px;
    line-height: 1.65;
    color: var(--united-text-color, #1A1A1F);
}
.np-tw-card__bio p {
    margin: 0 0 0.8em;
}
.np-tw__empty {
    text-align: center;
    color: var(--united-muted-color, #6B6B6B);
    padding: 32px 0;
}

/* ---- Notices ---- */
.np-tw__notice,
.np-tw__success,
.np-tw__error {
    border-radius: var(--united-radius-md, 14px);
    padding: 20px 22px;
    margin: 0 0 24px;
    border: 1px solid var(--united-border-color, #E6E6E6);
    background: var(--united-alt-color, #F3F3F3);
}
.np-tw__notice p,
.np-tw__success p,
.np-tw__error p {
    margin: 0 0 8px;
}
.np-tw__notice p:last-child,
.np-tw__success p:last-child,
.np-tw__error p:last-child {
    margin-bottom: 0;
}
.np-tw__success {
    border-color: #1f9d55;
}
.np-tw__error {
    border-color: var(--united-accent-color, #FF2E63);
}
.np-tw__error ul {
    margin: 8px 0 0 20px;
}

/* ---- Nomination form ---- */
.np-tw-form {
    max-width: 760px;
}
.np-tw-form__group {
    border: 1px solid var(--united-border-color, #E6E6E6);
    border-radius: var(--united-radius-md, 14px);
    padding: 8px 22px 12px;
    margin: 0 0 24px;
}
.np-tw-form__group legend {
    font-family: var(--united-heading-font-family);
    font-weight: 700;
    font-size: 1.125rem;
    padding: 0 8px;
}
.np-tw-form p {
    margin: 0 0 16px;
}
.np-tw-form label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.np-tw-form input[type="text"],
.np-tw-form input[type="email"],
.np-tw-form input[type="url"],
.np-tw-form input[type="tel"],
.np-tw-form select,
.np-tw-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--united-border-color, #CFCFCF);
    border-radius: var(--united-radius-sm, 10px);
    background: var(--united-surface-color, #fff);
    color: var(--united-text-color, #1A1A1F);
    font: inherit;
    font-weight: 400;
    box-sizing: border-box;
}
.np-tw-form input:focus,
.np-tw-form select:focus,
.np-tw-form textarea:focus {
    outline: 2px solid var(--united-accent-color, #FF2E63);
    outline-offset: 1px;
}
.np-tw-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}
.np-tw-form__check label {
    font-weight: 400;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.5;
}
.np-tw-form__check input {
    margin-top: 4px;
}
.np-tw-req {
    color: var(--united-accent-color, #FF2E63);
}
.np-tw-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 640px) {
    .np-tw-form__row {
        grid-template-columns: 1fr;
    }
    .np-tw__search {
        min-width: 0;
        width: 100%;
    }
    .np-tw__tools {
        width: 100%;
    }
}

/* ---- Articles about her, and the profile card on search results ---- */
.np-tw__button--small {
    padding: 8px 16px;
    font-size: 0.875rem;
}
.np-tw-card__articles {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--united-border-color, #E6E6E6);
}
.np-tw-card__articles h4 {
    margin: 0 0 8px;
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: none;
}
.np-tw-card__articles-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.np-tw-card__articles-list li {
    margin: 0;
    padding: 7px 0;
    border-bottom: 1px solid var(--united-border-color, #E6E6E6);
    line-height: 1.4;
}
.np-tw-card__articles-list li:last-child {
    border-bottom: 0;
}
.np-tw-card__articles-list a {
    font-weight: 600;
    text-decoration: none;
    color: var(--united-heading-color, #0B0B0F);
}
.np-tw-card__articles-list a:hover {
    text-decoration: underline;
}
.np-tw-card__articles-list time {
    display: block;
    margin-top: 2px;
    font-size: 0.8125rem;
    color: var(--united-muted-color, #6B6B6B);
}
.np-tw-card__loading,
.np-tw-card__empty {
    margin: 0;
    font-size: 0.875rem;
    color: var(--united-muted-color, #6B6B6B);
}
.np-tw-card__articles-all {
    margin: 10px 0 0;
    font-size: 0.875rem;
}
.np-tw-card:target {
    outline: 2px solid var(--united-accent-color, #FF2E63);
    outline-offset: 2px;
}
.np-tw-match {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 0 32px;
    padding: 20px 22px;
    background: var(--united-alt-color, #F3F3F3);
    border: 1px solid var(--united-border-color, #E6E6E6);
    border-radius: var(--united-radius-md, 14px);
}
.np-tw-match__photo {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--united-surface-color, #fff);
}
.np-tw-match__photo .np-tw-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.np-tw-match__photo .np-tw-card__initials {
    width: 100%;
    height: 100%;
    border-radius: 0;
}
.np-tw-match__name {
    margin: 2px 0 0;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: none;
}
.np-tw-match__role {
    margin: 4px 0 0;
    font-size: 0.9375rem;
}
.np-tw-match__note {
    margin: 6px 0 10px;
    font-size: 0.9375rem;
    color: var(--united-muted-color, #6B6B6B);
}
.np-tw-match__text p:last-child {
    margin-bottom: 0;
}
@media (max-width: 520px) {
    .np-tw-match {
        flex-direction: column;
        align-items: flex-start;
    }
}
