/*!
 * Texas United Membership — signup form default styles.
 *
 * Brand palette is exposed as CSS custom properties on the wrapper so
 * themes can rebrand the form with one declaration block:
 *
 *   .txunited-signup-form-wrap {
 *     --txunited-primary: #0a1f44;
 *     --txunited-accent:  #c8a951;
 *     ...
 *   }
 *
 * Defaults match the Texas United Christian Chamber of Commerce
 * branding (navy + gold). Themes targeting a different brand should
 * override the variables rather than fork the selectors — that way
 * any future markup changes don't break the customization.
 */

.txunited-signup-form-wrap {
    /* Brand palette */
    --txunited-primary: #0a1f44;
    --txunited-primary-hover: #051333;
    --txunited-accent: #c8a951;
    --txunited-accent-hover: #a88936;
    --txunited-text: #0a1f44;
    --txunited-text-muted: #5a6072;
    --txunited-bg: #ffffff;
    --txunited-bg-alt: #faf7f0;
    --txunited-border: #d9d2c0;
    --txunited-error: #b32d2e;
    --txunited-error-bg: #fbeaea;
    --txunited-success: #1d6b32;
    --txunited-success-bg: #e5f1e7;

    /* Layout */
    position: relative;
    z-index: 10;
    box-sizing: border-box;
    max-width: 720px;
    margin: 2.5rem auto;
    padding: 2.25rem 2rem;
    background: var(--txunited-bg);
    border: 1px solid var(--txunited-border);
    border-top: 4px solid var(--txunited-accent);
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(10, 31, 68, 0.08);
    color: var(--txunited-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    text-align: left;
}

.txunited-signup-form-wrap *,
.txunited-signup-form-wrap *::before,
.txunited-signup-form-wrap *::after {
    box-sizing: inherit;
}

.txunited-signup-form__notice {
    margin: 0 0 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 3px;
    font-size: 0.95em;
    border-left: 4px solid;
}

.txunited-signup-form__notice--success {
    background: var(--txunited-success-bg);
    color: var(--txunited-success);
    border-left-color: var(--txunited-success);
}

.txunited-signup-form__notice--error {
    background: var(--txunited-error-bg);
    color: var(--txunited-error);
    border-left-color: var(--txunited-error);
}

.txunited-signup-form__live-notice[hidden] {
    display: none;
}

.txunited-signup-form__submit[disabled] {
    opacity: 0.65;
    cursor: progress;
}

.txunited-signup-form__section {
    border: 0;
    margin: 0 0 1.5rem;
    padding: 1.25rem 0 0;
    border-top: 1px solid var(--txunited-border);
}

.txunited-signup-form__section:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.txunited-signup-form__section-title {
    display: block;
    padding: 0 0 0.75rem;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--txunited-accent-hover);
}

/*
 * Two-column section body. The grid container sits inside the
 * <fieldset> rather than being the fieldset itself, because <legend>
 * isn't a reliable grid item across browsers. Full-width specials
 * (Location grid, MultiSelect checkbox grid) span both columns.
 */
.txunited-signup-form__section-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.1rem;
}

.txunited-signup-form__row {
    margin: 0 0 1.1rem;
}

.txunited-signup-form__row--location,
.txunited-signup-form__row--multiselect {
    grid-column: 1 / -1;
}

@media (max-width: 560px) {
    .txunited-signup-form__section-body {
        grid-template-columns: 1fr;
    }
}

.txunited-signup-form__row--location {
    margin-bottom: 1.4rem;
}

.txunited-signup-form__location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 0.85rem;
    margin-top: 0.5rem;
}

.txunited-signup-form__location-cell--street,
.txunited-signup-form__location-cell--country {
    grid-column: 1 / -1;
}

.txunited-signup-form__sublabel {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.8em;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--txunited-text-muted);
}

.txunited-signup-form__row--multiselect {
    border: 0;
    padding: 0;
    margin: 0 0 1.4rem;
}

.txunited-signup-form__choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
    margin-top: 0.5rem;
}

@media (max-width: 480px) {
    .txunited-signup-form__choice-grid {
        grid-template-columns: 1fr;
    }
}

.txunited-signup-form__choice {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.92em;
    line-height: 1.35;
    cursor: pointer;
    color: var(--txunited-text);
}

.txunited-signup-form__choice input[type="checkbox"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
    accent-color: var(--txunited-accent);
}

.txunited-signup-form__choice:hover {
    color: var(--txunited-accent-hover);
}

.txunited-signup-form__row--submit {
    margin-top: 1.75rem;
    margin-bottom: 0;
}

.txunited-signup-form__label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.875em;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--txunited-primary);
}

.txunited-signup-form__required {
    margin-left: 0.2em;
    color: var(--txunited-accent);
}

.txunited-signup-form__input {
    display: block;
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: var(--txunited-bg);
    color: var(--txunited-text);
    border: 1px solid var(--txunited-border);
    border-radius: 3px;
    font: inherit;
    /* What members TYPE is set in Inter — Raleway's proportional digits look
       uneven in a field. tnum gives clean, even-width numerals. */
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-feature-settings: 'tnum' 1;
    line-height: 1.4;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.txunited-signup-form__input::placeholder {
    color: var(--txunited-text-muted);
}

.txunited-signup-form__input:hover {
    border-color: var(--txunited-accent);
}

.txunited-signup-form__input:focus {
    outline: none;
    border-color: var(--txunited-accent);
    box-shadow: 0 0 0 3px rgba(200, 169, 81, 0.25);
}

/* Read-only fields (e.g. the locked sign-in email) read as non-editable. */
.txunited-signup-form__input[readonly] {
    background: var(--txunited-bg-alt, #faf7f0);
    color: var(--txunited-text-muted);
    cursor: not-allowed;
}
.txunited-signup-form__input[readonly]:hover,
.txunited-signup-form__input[readonly]:focus {
    border-color: var(--txunited-border);
    box-shadow: none;
}

.txunited-signup-form__row.has-error .txunited-signup-form__input {
    border-color: var(--txunited-error);
}

.txunited-signup-form__row.has-error .txunited-signup-form__input:focus {
    box-shadow: 0 0 0 3px rgba(179, 45, 46, 0.20);
}

.txunited-signup-form__field-error {
    margin: 0.4rem 0 0;
    color: var(--txunited-error);
    font-size: 0.85em;
    font-weight: 500;
}

.txunited-signup-form__field-help {
    margin: 0.4rem 0 0;
    color: var(--txunited-text-muted);
    font-size: 0.8em;
    line-height: 1.4;
}

/* ── Password setup: show/hide toggle, live requirements, match feedback ── */
.txunited-signup-form__pw {
    position: relative;
}
.txunited-signup-form__pw .txunited-signup-form__input {
    padding-right: 2.85rem; /* room for the eye toggle */
}
.txunited-signup-form__pw-toggle {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 2.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--txunited-text-muted);
    cursor: pointer;
    border-radius: 0 3px 3px 0;
    transition: color 120ms ease, box-shadow 120ms ease;
}
.txunited-signup-form__pw-toggle:hover,
.txunited-signup-form__pw-toggle:focus-visible {
    color: var(--txunited-accent);
    outline: none;
}
.txunited-signup-form__pw-toggle:focus-visible {
    box-shadow: 0 0 0 3px rgba(200, 169, 81, 0.25);
}
.txunited-signup-form__pw-eyeoff { display: none; }
.txunited-signup-form__pw-toggle.is-on .txunited-signup-form__pw-eye { display: none; }
.txunited-signup-form__pw-toggle.is-on .txunited-signup-form__pw-eyeoff { display: inline; }

/* Field success state — green border + soft glow when every rule passes. */
.txunited-signup-form__row.is-valid .txunited-signup-form__input {
    border-color: var(--txunited-success);
}
.txunited-signup-form__row.is-valid .txunited-signup-form__input:focus {
    box-shadow: 0 0 0 3px rgba(29, 107, 50, 0.20);
}
.txunited-signup-form__row.is-valid .txunited-signup-form__pw-toggle {
    color: var(--txunited-success);
}

/* Requirement checklist. */
.txunited-signup-form__pw-reqs {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem 1rem;
}
.txunited-signup-form__pw-req {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82em;
    color: var(--txunited-text-muted);
    transition: color 120ms ease;
}
.txunited-signup-form__pw-req-mark {
    flex: none;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    border: 1.5px solid var(--txunited-border);
    background: var(--txunited-bg);
    position: relative;
    transition: background-color 120ms ease, border-color 120ms ease;
}
.txunited-signup-form__pw-req.is-met {
    color: var(--txunited-success);
    font-weight: 600;
}
.txunited-signup-form__pw-req.is-met .txunited-signup-form__pw-req-mark,
.txunited-signup-form__pw-match.is-ok .txunited-signup-form__pw-req-mark {
    background: var(--txunited-success);
    border-color: var(--txunited-success);
}
.txunited-signup-form__pw-req.is-met .txunited-signup-form__pw-req-mark::after,
.txunited-signup-form__pw-match.is-ok .txunited-signup-form__pw-req-mark::after {
    content: "";
    position: absolute;
    left: 0.34rem;
    top: 0.15rem;
    width: 0.28rem;
    height: 0.52rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Confirm-password match line. */
.txunited-signup-form__pw-match {
    margin: 0.5rem 0 0;
    font-size: 0.82em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.txunited-signup-form__pw-match.is-ok { color: var(--txunited-success); }
.txunited-signup-form__pw-match.is-bad { color: var(--txunited-text-muted); }

@media (max-width: 480px) {
    .txunited-signup-form__pw-reqs { grid-template-columns: 1fr; }
}

.txunited-signup-form__submit {
    display: inline-block;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: var(--txunited-primary);
    color: #ffffff;
    border: 0;
    border-radius: 3px;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    font-size: 0.95em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 120ms ease, transform 60ms ease;
}

.txunited-signup-form__submit:hover {
    background: var(--txunited-primary-hover);
    color: #ffffff;
}

.txunited-signup-form__submit:focus {
    outline: 2px solid var(--txunited-accent);
    outline-offset: 2px;
    background: var(--txunited-primary-hover);
    color: #ffffff;
}

.txunited-signup-form__submit:active {
    transform: translateY(1px);
}

/* Tier picker */
.txunited-signup-form__tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

/* Tier cards share the payment-plan card DNA (rounded, drawn check circle,
   gold selection ring) so step 1 reads as one family. The gold stars rank
   the tiers using the chamber's own emblem — no copy required. */
.txunited-signup-form__tier {
    display: flex;
    flex-direction: column;
    padding: 1.05rem 1.15rem 1rem;
    border: 1px solid var(--txunited-border);
    border-radius: 10px;
    background: var(--txunited-bg);
    cursor: pointer;
    transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.txunited-signup-form__tier:hover {
    border-color: var(--txunited-accent);
}

.txunited-signup-form__tier:has(input:checked) {
    border-color: var(--txunited-accent);
    box-shadow: 0 0 0 2px var(--txunited-accent), 0 8px 18px rgba(10, 31, 68, 0.07);
    background: var(--txunited-bg-alt);
}

/* The real radio stays for the form + keyboard a11y; the check circle draws it. */
.txunited-signup-form__tier input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.txunited-signup-form__tier:has(input:focus-visible) {
    outline: 2px solid var(--txunited-primary);
    outline-offset: 2px;
}

.txunited-signup-form__tier-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.txunited-signup-form__tier-check {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 2px solid var(--txunited-border);
    position: relative;
    flex: 0 0 auto;
    transition: border-color 120ms ease, background 120ms ease;
}

.txunited-signup-form__tier:has(input:checked) .txunited-signup-form__tier-check {
    border-color: var(--txunited-accent);
    background: var(--txunited-accent);
}

.txunited-signup-form__tier:has(input:checked) .txunited-signup-form__tier-check::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #fff;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%);
}

.txunited-signup-form__tier-name {
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--txunited-primary);
}

.txunited-signup-form__tier-stars {
    margin-left: auto;
    color: var(--txunited-accent);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

.txunited-signup-form__tier-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--txunited-primary);
    margin: 0.55rem 0 0.05rem;
    line-height: 1.2;
}

.txunited-signup-form__tier-price small {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--txunited-text-muted);
    font-family: 'Raleway', system-ui, sans-serif;
}

.txunited-signup-form__tier-desc {
    font-size: 0.76rem;
    color: var(--txunited-text-muted);
}

/* Pay-in-full vs installments choice, shown under the tier grid for the
   selected tier when it offers an installment option. Comparison cards:
   big due-today figure, the installment schedule as a timeline, and an
   explicit full-year total on both. */
.txunited-signup-form__plan-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
}

.txunited-signup-form__plan-options[hidden] {
    display: none;
}

.txunited-signup-form__plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.05rem 1.15rem 0.9rem;
    border: 1px solid var(--txunited-border);
    border-radius: 10px;
    background: var(--txunited-bg);
    cursor: pointer;
    transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.txunited-signup-form__plan-card:hover {
    border-color: var(--txunited-accent);
}

.txunited-signup-form__plan-card:has(input:checked) {
    border-color: var(--txunited-accent);
    box-shadow: 0 0 0 2px var(--txunited-accent), 0 8px 18px rgba(10, 31, 68, 0.07);
    background: var(--txunited-bg-alt);
}

/* The real radio stays for the form + keyboard a11y; the check circle draws it. */
.txunited-signup-form__plan-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.txunited-signup-form__plan-card:has(input:focus-visible) {
    outline: 2px solid var(--txunited-primary);
    outline-offset: 2px;
}

.txunited-signup-form__plan-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.txunited-signup-form__plan-check {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 2px solid var(--txunited-border);
    position: relative;
    flex: 0 0 auto;
    transition: border-color 120ms ease, background 120ms ease;
}

.txunited-signup-form__plan-card:has(input:checked) .txunited-signup-form__plan-check {
    border-color: var(--txunited-accent);
    background: var(--txunited-accent);
}

.txunited-signup-form__plan-card:has(input:checked) .txunited-signup-form__plan-check::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #fff;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%);
}

.txunited-signup-form__plan-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--txunited-primary);
}

.txunited-signup-form__plan-badge {
    position: absolute;
    top: -10px;
    right: 14px;
    background: var(--txunited-accent);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 3px 10px;
}

/* Money reads in Inter with tabular figures (the form's numeric face —
   same pairing the directory uses), Raleway stays for the labels. */
.txunited-signup-form__tier-price,
.txunited-signup-form__plan-price,
.txunited-signup-form__plan-line-caps,
.txunited-signup-form__plan-total b {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-variant-numeric: tabular-nums;
}

.txunited-signup-form__plan-price {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--txunited-primary);
    margin: 0.5rem 0 0.1rem;
    line-height: 1.2;
}

.txunited-signup-form__plan-price small {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--txunited-text-muted);
}

.txunited-signup-form__plan-sub {
    font-size: 0.78rem;
    color: var(--txunited-text-muted);
}

.txunited-signup-form__plan-line {
    display: flex;
    align-items: center;
    margin: 0.85rem 0 0.35rem;
}

.txunited-signup-form__plan-node {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--txunited-accent);
    flex: 0 0 auto;
}

.txunited-signup-form__plan-node--sm {
    width: 8px;
    height: 8px;
    background: #ddcd96;
}

.txunited-signup-form__plan-rail {
    height: 2px;
    background: linear-gradient(90deg, var(--txunited-accent), #e6dab0);
    flex: 1;
}

.txunited-signup-form__plan-line-caps {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--txunited-text-muted);
}

.txunited-signup-form__plan-total {
    margin-top: auto;
    padding-top: 0.6rem;
    border-top: 1px dashed var(--txunited-border);
    font-size: 0.76rem;
    color: var(--txunited-text-muted);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.txunited-signup-form__plan-total b {
    color: var(--txunited-primary);
}

/* Give the pay-in-full card a stable footer position: the timeline block
   only exists on the installment card, so let the total row sink. */
.txunited-signup-form__plan-card > .txunited-signup-form__plan-total {
    margin-top: 0.8rem;
}

.txunited-signup-form__plan-card:has(.txunited-signup-form__plan-line) > .txunited-signup-form__plan-total {
    margin-top: 0.55rem;
}

#txunited-payment-element {
    margin-top: 0.5rem;
}

/* --- Avatar (shared by portal header + profile editor) --------------- */
.txunited-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(10, 31, 68, 0.18);
}

.txunited-avatar--photo {
    object-fit: cover;
}

.txunited-avatar--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    line-height: 1;
    text-transform: uppercase;
}

.txunited-avatar--lg {
    width: 104px;
    height: 104px;
}

.txunited-avatar--lg.txunited-avatar--initials {
    font-size: 2.25rem;
}

/* --- Member portal --------------------------------------------------- */
.txunited-portal__header {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--txunited-border);
}

.txunited-portal__avatar {
    display: flex;
}

.txunited-portal__identity {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.txunited-portal__name {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.15;
    color: var(--txunited-primary);
}

.txunited-portal__email {
    font-size: 0.9em;
    color: var(--txunited-text-muted);
    word-break: break-word;
}

.txunited-portal__section {
    border-top: 0;
    padding-top: 0;
}

.txunited-portal__table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.txunited-portal__table th {
    text-align: left;
    padding: 0.55rem 1rem 0.55rem 0;
    color: var(--txunited-text-muted);
    font-weight: 600;
    white-space: nowrap;
    vertical-align: top;
    width: 1%;
}

.txunited-portal__table tr + tr th,
.txunited-portal__table tr + tr td {
    border-top: 1px solid var(--txunited-bg-alt);
}

.txunited-portal__table td {
    padding: 0.55rem 0;
}

.txunited-portal__badge {
    display: inline-block;
    align-self: flex-start;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.txunited-portal__badge--success {
    background: var(--txunited-success-bg);
    color: var(--txunited-success);
}

.txunited-portal__badge--error {
    background: var(--txunited-error-bg);
    color: var(--txunited-error);
}

.txunited-portal__billing {
    margin-top: 1.25rem;
}

.txunited-portal__billing-btn {
    width: auto;
    margin-bottom: 0.4rem;
}

.txunited-portal__billing-help {
    display: block;
}

.txunited-portal__footer {
    margin-top: 1.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--txunited-border);
    font-size: 0.9em;
}

/* --- Profile photo control ------------------------------------------- */
.txunited-profile-avatar {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.6rem;
}

.txunited-profile-avatar__controls {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.txunited-profile-avatar__upload {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.txunited-profile-avatar__upload-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--txunited-primary);
    border-radius: 3px;
    color: var(--txunited-primary);
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background-color 120ms ease, color 120ms ease;
}

.txunited-profile-avatar__upload:hover .txunited-profile-avatar__upload-btn {
    background: var(--txunited-primary);
    color: #ffffff;
}

/* Keep the native file input usable but visually replaced by the button. */
.txunited-profile-avatar__upload input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.txunited-profile-avatar__upload:focus-within .txunited-profile-avatar__upload-btn {
    outline: 2px solid var(--txunited-accent);
    outline-offset: 2px;
}

.txunited-profile-avatar__remove {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85em;
    color: var(--txunited-text-muted);
    cursor: pointer;
}

.txunited-profile-avatar__remove input {
    width: auto;
    margin: 0;
}

@media (max-width: 480px) {
    .txunited-portal__header,
    .txunited-profile-avatar {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

/* --- Member login form ----------------------------------------------- */

.txunited-login-wrap {
    max-width: 26rem;
}

.txunited-login-form__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9em;
}

.txunited-login-form__remember {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

.txunited-login-form__remember input {
    width: auto;
    margin: 0;
}

.txunited-login-form__lost {
    white-space: nowrap;
    color: var(--txunited-text-muted);
    text-decoration: none;
    font-weight: 600;
}
.txunited-login-form__lost:hover,
.txunited-login-form__lost:focus {
    color: var(--txunited-accent-hover);
    text-decoration: underline;
}

/* --- Auth screens (login / forgot / reset) --------------------------- */
.txunited-auth {
    max-width: 26rem;
}
.txunited-auth__head {
    text-align: center;
    margin-bottom: 1.75rem;
}
.txunited-auth__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.9rem;
    border-radius: 999px;
    background: var(--txunited-primary);
    color: var(--txunited-accent);
    box-shadow: 0 8px 20px -10px rgba(10, 31, 68, 0.6);
}
.txunited-auth__icon svg {
    width: 1.4rem;
    height: 1.4rem;
}
.txunited-auth__icon--ok {
    background: var(--txunited-success, #1d6b32);
    color: #ffffff;
}
.txunited-auth__icon--warn {
    background: var(--txunited-error-bg, #fbeaea);
    color: var(--txunited-error, #b32d2e);
}
.txunited-auth__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--txunited-accent-hover, #a88936);
}
.txunited-auth__title {
    margin: 0 0 0.4rem;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--txunited-primary);
}
.txunited-auth__sub {
    margin: 0 auto;
    max-width: 22rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--txunited-text-muted);
}
.txunited-auth__foot {
    margin: 1.4rem 0 0;
    padding-top: 1.1rem;
    border-top: 1px solid var(--txunited-border);
    text-align: center;
    font-size: 0.9em;
}
.txunited-auth__back {
    color: var(--txunited-text-muted);
    text-decoration: none;
    font-weight: 600;
}
.txunited-auth__back:hover,
.txunited-auth__back:focus {
    color: var(--txunited-primary);
}

/* --- Member profile editor ------------------------------------------- */

.txunited-profile-edit {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--txunited-border);
}

.txunited-profile-edit__subhead {
    margin-top: 1.75rem;
}

.txunited-profile-form__checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

.txunited-profile-form__checkbox input {
    width: auto;
    margin: 0;
}

/* ============ Directory & matching — multi-select pill toggles ============ */
/* Facet + custom multi-select options render as tappable chips instead of a
   cramped row of native checkboxes. Each <label> is the pill; its checkbox is
   visually hidden but fully accessible/clickable. */
.txunited-profile-cf-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.55rem;
}

.txunited-profile-cf-options .txunited-profile-form__checkbox {
    position: relative;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.5rem 0.95rem 0.5rem 0.8rem;
    border: 1.5px solid var(--txunited-border);
    border-radius: 999px;
    background: var(--txunited-bg);
    color: var(--txunited-primary);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color .18s ease, background .2s ease, color .2s ease,
                box-shadow .2s ease, transform .14s ease;
}

/* Hide the native box — the pill itself is the control. */
.txunited-profile-cf-options .txunited-profile-form__checkbox input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

/* Leading indicator dot (fills gold + gets a check when selected). */
.txunited-profile-cf-options .txunited-profile-form__checkbox::before {
    content: "";
    flex: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1.5px solid var(--txunited-border);
    background: transparent no-repeat center / 9px 9px;
    transition: border-color .2s ease, background-color .2s ease;
}

.txunited-profile-cf-options .txunited-profile-form__checkbox:hover {
    border-color: var(--txunited-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 31, 68, .10);
}

.txunited-profile-cf-options .txunited-profile-form__checkbox:focus-within {
    outline: 2px solid var(--txunited-accent);
    outline-offset: 2px;
}

/* Selected = filled navy pill, gold dot + checkmark. */
.txunited-profile-cf-options .txunited-profile-form__checkbox:has(input:checked) {
    border-color: var(--txunited-primary);
    background: var(--txunited-primary);
    color: #fff;
    box-shadow: 0 5px 16px rgba(10, 31, 68, .22);
}

.txunited-profile-cf-options .txunited-profile-form__checkbox:has(input:checked)::before {
    border-color: var(--txunited-accent);
    background-color: var(--txunited-accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1f44' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
    .txunited-profile-cf-options .txunited-profile-form__checkbox { transition: none; }
    .txunited-profile-cf-options .txunited-profile-form__checkbox:hover { transform: none; }
}

/* A chip disabled because the category's selection cap is reached. */
.txunited-profile-form__checkbox.is-disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* ============ Searchable facet picker (large categories) ============ */
/* Built by discovery-facets.js when a category has more options than chips can
   comfortably show. Type-to-filter, with selections pinned as removable
   tokens. Reads the same --txunited-* tokens as the chips. */
.txunited-facetpicker { margin-top: .55rem; max-width: 560px; }

.txunited-facetpicker__tokens {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .6rem;
}
.txunited-facetpicker__tokens:empty { display: none; }
.txunited-facetpicker__token {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .55rem .35rem .8rem;
    border-radius: 999px;
    background: var(--txunited-primary);
    color: #fff;
    font-size: .85rem;
    font-weight: 500;
    line-height: 1;
}
.txunited-facetpicker__token-x {
    border: 0;
    background: transparent;
    color: var(--txunited-accent);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.txunited-facetpicker__control {
    display: flex;
    align-items: center;
    gap: .6rem;
}
.txunited-facetpicker__search {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    padding: 0 .9rem;
    border: 1.5px solid var(--txunited-border);
    border-radius: 10px;
    background: var(--txunited-bg);
    color: var(--txunited-primary);
    font-size: .95rem;
}
.txunited-facetpicker__search:focus {
    outline: none;
    border-color: var(--txunited-primary);
    box-shadow: 0 0 0 3px rgba(10, 31, 68, .10);
}
/* Off Raleway — its lining numerals read awkwardly here. A system stack with
   tabular figures keeps "2 of 5" crisp + evenly spaced. */
.txunited-facetpicker__count {
    flex: none;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    font-size: .76rem;
    letter-spacing: .01em;
    color: var(--txunited-text-muted, #6b6b6b);
    white-space: nowrap;
}
/* At the cap: a quiet gold cue that the limit is reached. */
.txunited-facetpicker__count.is-full {
    color: var(--txunited-accent);
    font-weight: 600;
}

.txunited-facetpicker__list {
    list-style: none;
    margin: .4rem 0 0;
    padding: .25rem;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid var(--txunited-border);
    border-radius: 10px;
    background: #fff;
}
.txunited-facetpicker__list[hidden] { display: none; }
.txunited-facetpicker__opt {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .5rem .6rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: .92rem;
    color: var(--txunited-primary);
}
.txunited-facetpicker__opt:hover,
.txunited-facetpicker__opt.is-active {
    background: var(--txunited-bg-alt, #f5f1e8);
}
.txunited-facetpicker__opt.is-disabled {
    opacity: .4;
    cursor: not-allowed;
}
.txunited-facetpicker__box {
    flex: none;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid var(--txunited-border);
    position: relative;
}
.txunited-facetpicker__opt.is-checked .txunited-facetpicker__box {
    background: var(--txunited-primary);
    border-color: var(--txunited-primary);
}
.txunited-facetpicker__opt.is-checked .txunited-facetpicker__box::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid var(--txunited-accent);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.txunited-facetpicker__empty {
    padding: .5rem .6rem;
    font-size: .85rem;
    color: var(--txunited-text-muted, #6b6b6b);
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Member directory ------------------------------------------------ */
/* Brand tokens — aligned with the member portal (.txunited-mp). Shared with
   .txunited-conn (My Connections) so the same member-card component renders
   identically inside the member-area shell. */
.txunited-directory,
.txunited-conn {
    --txunited-primary: #0a1d3b;
    --txunited-primary-2: #11335c;
    --txunited-primary-hover: #071733;
    --txunited-accent: #c9a14a;
    --txunited-accent-hover: #b08a3a;
    --txunited-gold-tint: #f5ecd6;
    --txunited-text: #1a1a1a;
    --txunited-text-muted: #56607a;
    --txunited-faint: #8a8f9c;
    --txunited-bg: #ffffff;
    --txunited-bg-alt: #faf7f2;
    --txunited-border: #e5e0d6;
    --txunited-border-soft: #efe9dd;
    --txunited-font: 'Raleway', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --txunited-num: 'Inter', system-ui, -apple-system, sans-serif;
    --txunited-shadow: 0 1px 3px rgba(10, 29, 59, 0.06), 0 6px 18px rgba(10, 29, 59, 0.05);
}

.txunited-directory {
    box-sizing: border-box;
    max-width: 1160px;
    margin: 2.5rem auto;
    padding: 0 1rem;
    color: var(--txunited-text);
    font-family: var(--txunited-font);
    line-height: 1.5;
}

.txunited-directory *,
.txunited-directory *::before,
.txunited-directory *::after {
    box-sizing: inherit;
}

/* Numerals always set in Inter — Raleway digits look off. */
.txunited-directory .txunited-num {
    font-family: var(--txunited-num);
    font-variant-numeric: tabular-nums;
}

/* ---- Search + filter command bar ------------------------------------ */
.txunited-directory__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    background: var(--txunited-bg);
    border: 1px solid var(--txunited-border);
    border-top: 3px solid var(--txunited-accent);
    border-radius: 6px;
    box-shadow: var(--txunited-shadow);
}

.txunited-directory__search {
    position: relative;
    flex: 1 1 280px;
    display: flex;
}

.txunited-directory__search-ico {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    color: var(--txunited-accent-hover);
    pointer-events: none;
}

.txunited-directory__search-input,
.txunited-directory__facet select {
    width: 100%;
    height: 46px;
    padding: 0 0.9rem;
    border: 1px solid var(--txunited-border);
    border-radius: 4px;
    background: var(--txunited-bg-alt);
    color: var(--txunited-text);
    font-family: var(--txunited-font);
    font-size: 0.92rem;
}

.txunited-directory__search-input {
    padding-left: 40px;
}

.txunited-directory__search-input::placeholder {
    color: var(--txunited-faint);
}

.txunited-directory__search-input:focus,
.txunited-directory__facet select:focus {
    outline: none;
    border-color: var(--txunited-accent);
    background: var(--txunited-bg);
    box-shadow: 0 0 0 3px rgba(201, 161, 74, 0.22);
}

.txunited-directory__facets {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.txunited-directory__facet {
    margin: 0;
    min-width: 150px;
}

.txunited-directory__facet select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b08a3a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 13px;
}

/* Discovery selects (e.g. Business stage): draw our own caret so it sits a
   comfortable, left-matching distance from the edge instead of hugging it, and
   cap the width — a short-option dropdown reads better contained than stretched
   the full column with a big empty gap. Stays responsive on small screens. */
.txunited-discovery__form select.txunited-signup-form__input {
    width: 100%;
    max-width: 340px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.4rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b08a3a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.95rem center;
    background-size: 14px;
}

.txunited-directory__submit {
    height: 46px;
    padding: 0 1.6rem;
    background: var(--txunited-primary);
    color: #ffffff;
    border: 1.5px solid var(--txunited-primary);
    border-radius: 2px;
    cursor: pointer;
    font-family: var(--txunited-font);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    transition: background-color 140ms ease, border-color 140ms ease;
}

.txunited-directory__submit:hover {
    background: var(--txunited-accent-hover);
    border-color: var(--txunited-accent-hover);
    color: #ffffff;
}

.txunited-directory__clear {
    align-self: center;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--txunited-text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.txunited-directory__clear:hover {
    color: var(--txunited-accent-hover);
}

/* ---- Result count — editorial rule line ------------------------------ */
.txunited-directory__count {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 1.6rem 0 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--txunited-text-muted);
}

.txunited-directory__count .txunited-num {
    font-size: 0.95rem;
    color: var(--txunited-primary);
}

.txunited-directory__count::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--txunited-border), transparent);
}

.txunited-directory__empty {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--txunited-text-muted);
    background: var(--txunited-bg);
    border: 1px dashed var(--txunited-border);
    border-radius: 6px;
}

/* ---- Card grid — fills the container edge to edge -------------------- */
.txunited-directory__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Member card: navy cover + centred gold monogram + name / title / business. */
.txunited-dircard {
    display: flex;
    flex-direction: column;
    background: var(--txunited-bg);
    border: 1px solid var(--txunited-border);
    border-radius: 6px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 1px 2px rgba(10, 29, 59, 0.05);
    transition: box-shadow 160ms ease, transform 140ms ease, border-color 140ms ease;
}

.txunited-dircard:hover {
    box-shadow: 0 12px 28px rgba(10, 29, 59, 0.14);
    border-color: rgba(201, 161, 74, 0.55);
    transform: translateY(-3px);
}

.txunited-dircard__top {
    display: block;
    position: relative;
    text-decoration: none;
}

.txunited-dircard__cover {
    display: block;
    height: 64px;
    background:
        repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 30px),
        radial-gradient(120% 170% at 82% 0%, rgba(201, 161, 74, 0.32), transparent 60%),
        linear-gradient(120deg, #08182f, var(--txunited-primary-2) 58%, var(--txunited-primary));
}

.txunited-dircard__avatar {
    display: inline-block;
    margin-top: -40px;
    line-height: 0;
}

.txunited-dircard__avatar .txunited-avatar {
    display: inline-grid;
    place-items: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: #ffffff;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px var(--txunited-accent), 0 4px 10px rgba(10, 29, 59, 0.18);
    font-family: var(--txunited-num);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}

.txunited-dircard__avatar .txunited-avatar--photo,
.txunited-dircard__avatar img.txunited-avatar {
    object-fit: cover;
}

.txunited-dircard__avatar .txunited-avatar--initials {
    color: #ffffff;
}

.txunited-dircard__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 16px 16px;
}

.txunited-dircard__name {
    font-weight: 800;
    font-size: 1.02rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--txunited-primary);
    text-decoration: none;
}

.txunited-dircard__name:hover,
.txunited-dircard__name:focus {
    color: var(--txunited-accent-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Job title — quiet supporting line under the name. */
.txunited-dircard__role {
    margin: 3px 0 0;
    font-size: 0.85rem;
    line-height: 1.35;
    color: var(--txunited-text-muted);
}

/* Business name — small caps gold, the brand line of the card. */
.txunited-dircard__biz {
    margin: 6px 0 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--txunited-accent-hover);
}

/* Industry · region — faint footer fact line. */
.txunited-dircard__meta {
    margin: 10px 0 0;
    padding-top: 9px;
    width: 100%;
    border-top: 1px solid var(--txunited-border-soft);
    font-size: 0.74rem;
    letter-spacing: 0.02em;
    color: var(--txunited-faint);
}

.txunited-dircard__action {
    margin-top: auto;
    padding-top: 14px;
    width: 100%;
}

/* Two side-by-side actions (e.g. Message + View profile on My Connections). */
.txunited-dircard__action--pair {
    display: flex;
    gap: 8px;
}

.txunited-dircard__action--pair .txunited-connect-btn {
    flex: 1;
    display: inline-flex;
    justify-content: center;
}

.txunited-connect-btn--full {
    display: flex;
    width: 100%;
    justify-content: center;
}

.txunited-directory__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.15rem;
}

.txunited-directory__tag {
    display: inline-block;
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: var(--txunited-bg-alt);
    color: var(--txunited-accent-hover);
    border: 1px solid var(--txunited-border);
}

.txunited-directory__tag--muted {
    color: var(--txunited-text-muted);
}

.txunited-directory__card-link {
    margin-top: 0.2rem;
    font-size: 0.85em;
    word-break: break-all;
}

.txunited-directory__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 2rem;
}

.txunited-directory__page {
    padding: 0.5rem 1.05rem;
    border: 1.5px solid var(--txunited-border);
    border-radius: 2px;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--txunited-primary);
    text-decoration: none;
    transition: border-color 140ms ease, background-color 140ms ease;
}

.txunited-directory__page:hover {
    border-color: var(--txunited-accent);
    background: var(--txunited-gold-tint);
    color: var(--txunited-primary);
}

.txunited-directory__page-status {
    font-size: 0.85rem;
    color: var(--txunited-text-muted);
}

/* --- Member directory: single-member detail page --------------------- */
.txunited-directory--detail {
    max-width: 720px;
}

.txunited-directory__back {
    margin: 0 0 1rem;
    font-size: 0.9em;
}

.txunited-directory-profile {
    padding: 1.75rem;
    background: var(--txunited-bg);
    border: 1px solid var(--txunited-border);
    border-top: 4px solid var(--txunited-accent);
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(10, 31, 68, 0.08);
}

.txunited-directory-profile__header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--txunited-border);
}

.txunited-directory-profile__name {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.15;
    color: var(--txunited-primary);
}

.txunited-directory-profile__company {
    margin: 0.25rem 0 0;
    color: var(--txunited-text-muted);
}

.txunited-directory-profile__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.85rem 1.5rem;
    margin: 1.5rem 0 0;
}

.txunited-directory-profile__fact {
    margin: 0;
}

.txunited-directory-profile__fact dt {
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--txunited-accent-hover);
}

.txunited-directory-profile__fact dd {
    margin: 0.15rem 0 0;
    color: var(--txunited-text);
}

.txunited-directory-profile__contact {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--txunited-border);
}

.txunited-directory-profile__contact-row {
    margin: 0.25rem 0 0;
    word-break: break-word;
}

@media (max-width: 480px) {
    .txunited-directory-profile__header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

/* --- Stepped signup wizard -------------------------------------------- */

/* Honeypot: kept in the DOM + tab order out, but off-screen for humans. */
.txunited-signup-form__hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ── Events-registration look, scoped to the signup wizard (--flow) ──
   Mirrors the txu-events "editorial" design — Raleway + Inter, navy/gold,
   paper surfaces, 2px corners — so the membership signup matches the event
   registration flow. Scoped to .txunited-signup-form-wrap--flow so the member
   portal / login / profile (which share .txunited-signup-form-wrap) are untouched.
   Fonts are loaded by SignupForm::registerAssets (falls back to system sans). */
.txunited-signup-form-wrap--flow {
    --txunited-primary: #0a1d3b;
    --txunited-primary-hover: #b08a3a;   /* events: primary buttons hover to gold */
    --txunited-accent: #c9a14a;
    --txunited-accent-hover: #b08a3a;
    --txunited-text: #1a1a1a;
    --txunited-text-muted: #8a8a8a;
    --txunited-bg: #ffffff;
    --txunited-bg-alt: #faf7f2;
    --txunited-border: #e5e0d6;
    --txunited-error: #8b1e1e;
    --txunited-error-bg: #fff5f5;
    --txunited-success: #2d6a4f;
    --txunited-success-bg: #e9f1ec;
    --txunited-font-head: 'Raleway', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --txunited-font-body: 'Raleway', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --txunited-font-num: 'Inter', system-ui, -apple-system, sans-serif;
    font-family: var(--txunited-font-body);

    /* Editorial layout: drop the white card → warm paper panel that fills the
       page's content container (no awkward side gutters), like events. */
    max-width: none;
    margin: 2.5rem 0;
    background: var(--txunited-bg-alt);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 2.75rem clamp(1.25rem, 4vw, 3rem) 3.5rem;
}

/* Inter (tabular) for numerics — step numbers, OTP code, tier prices. */
.txunited-signup-form-wrap--flow .txunited-stepper__dot,
.txunited-signup-form-wrap--flow .txunited-signup-form__otp-input,
.txunited-signup-form-wrap--flow .txunited-signup-form__tier-price {
    font-family: var(--txunited-font-num);
    font-feature-settings: 'tnum' 1, 'ss01' 1;
    font-variant-numeric: tabular-nums;
}

/* Sharper corners + navy focus ring, matching the events fields. */
.txunited-signup-form-wrap--flow .txunited-signup-form__input,
.txunited-signup-form-wrap--flow .txunited-signup-form__btn {
    border-radius: 2px;
}
.txunited-signup-form-wrap--flow .txunited-signup-form__input:focus {
    border-color: var(--txunited-primary);
    box-shadow: 0 0 0 3px rgba(10, 29, 59, 0.10);
}

/* Numbered stepper */
.txunited-stepper {
    display: flex;
    align-items: flex-start;
    gap: 0.25rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}

.txunited-stepper__item {
    position: relative;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    text-align: center;
}

/* Connector line from the previous dot to this one. */
.txunited-stepper__item::before {
    content: "";
    position: absolute;
    top: 18px;
    right: 50%;
    left: -50%;
    height: 1px;
    background: var(--txunited-border);
    z-index: 0;
}

.txunited-stepper__item:first-child::before {
    display: none;
}

.txunited-stepper__item.is-done::before,
.txunited-stepper__item.is-active::before {
    background: var(--txunited-accent);
}

.txunited-stepper__dot {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--txunited-bg-alt);
    border: 1.5px solid var(--txunited-border);
    color: var(--txunited-text-muted);
    font-size: 0.9375rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    transition: background-color 280ms ease, border-color 280ms ease, color 280ms ease, transform 280ms ease;
}

.txunited-stepper__item.is-active .txunited-stepper__dot {
    background: var(--txunited-primary);
    border-color: var(--txunited-primary);
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 0 0 4px rgba(10, 29, 59, 0.08);
}

.txunited-stepper__item.is-done .txunited-stepper__dot {
    background: var(--txunited-accent);
    border-color: var(--txunited-accent);
    color: var(--txunited-primary);
}

/* Completed steps show a checkmark instead of the number (events behavior). */
.txunited-stepper__item.is-done .txunited-stepper__num {
    display: none;
}
.txunited-stepper__item.is-done .txunited-stepper__dot::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--txunited-primary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
}

.txunited-stepper__label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--txunited-text-muted);
    line-height: 1.2;
}

.txunited-stepper__item.is-active .txunited-stepper__label {
    color: var(--txunited-primary);
}

@media (max-width: 560px) {
    /* Keep the numbered dots + connectors; drop labels to avoid crowding. */
    .txunited-stepper {
        gap: 0;
    }
    .txunited-stepper__label {
        display: none;
    }
}

/* Per-step heading */
.txunited-signup-form__step-head {
    margin: 0 0 1.5rem;
}

.txunited-signup-form__step-title {
    margin: 0;
    font-family: var(--txunited-font-head);
    font-size: 1.75rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--txunited-primary);
}

.txunited-signup-form__step-desc {
    margin: 0.4rem 0 0;
    font-size: 0.98rem;
    line-height: 1.5;
    color: var(--txunited-text-muted);
}

@media (max-width: 480px) {
    .txunited-signup-form__step-title {
        font-size: 1.4rem;
    }
}

.txunited-signup-form__step[hidden] {
    display: none;
}

.txunited-signup-form.is-enhanced .txunited-signup-form__step {
    animation: txunited-signup-fade 200ms ease;
}

@keyframes txunited-signup-fade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .txunited-signup-form.is-enhanced .txunited-signup-form__step {
        animation: none;
    }
}

/* Step navigation */
.txunited-signup-form__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.txunited-signup-form__nav > .txunited-signup-form__btn--primary:only-child {
    margin-left: auto;
}

.txunited-signup-form__btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 3px;
    border: 1px solid transparent;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    font-size: 0.92em;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
    transition: background-color 120ms ease, color 120ms ease, transform 60ms ease;
}

.txunited-signup-form__btn--primary {
    background: var(--txunited-primary);
    color: #ffffff;
}

.txunited-signup-form__btn--primary:hover,
.txunited-signup-form__btn--primary:focus {
    background: var(--txunited-primary-hover);
    color: #ffffff;
}

.txunited-signup-form__btn--ghost {
    background: transparent;
    color: var(--txunited-text-muted);
    border-color: var(--txunited-border);
}

.txunited-signup-form__btn--ghost:hover {
    border-color: var(--txunited-accent);
    color: var(--txunited-primary);
}

.txunited-signup-form__btn:focus-visible {
    outline: 2px solid var(--txunited-accent);
    outline-offset: 2px;
}

.txunited-signup-form__btn[disabled] {
    opacity: 0.6;
    cursor: progress;
}

.txunited-signup-form__btn:active {
    transform: translateY(1px);
}

/* Submit button reuses __submit styles elsewhere; in the nav it sits inline. */
.txunited-signup-form__nav .txunited-signup-form__submit {
    width: auto;
}

/* OTP interstitial */
.txunited-signup-form__otp-status {
    margin: 0 0 1rem;
    font-size: 0.92em;
    color: var(--txunited-text-muted);
}

.txunited-signup-form__otp-status.is-error {
    color: var(--txunited-error);
}

.txunited-signup-form__otp-status.is-success {
    color: var(--txunited-success);
}

.txunited-signup-form__otp-input {
    max-width: 12rem;
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.txunited-signup-form__nav--otp {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.txunited-signup-form__nav--otp .txunited-signup-form__btn--ghost {
    margin-right: auto;
}

/* Link-style button (OTP "resend"). Defined after the base .txunited-signup-form__btn
   so its padding + colors take precedence. */
.txunited-signup-form__btn--link {
    background: transparent;
    border-color: transparent;
    color: var(--txunited-accent-hover);
    text-transform: none;
    letter-spacing: 0;
    text-decoration: underline;
    padding: 0.8rem 0.5rem;
}

.txunited-signup-form__btn--link:hover {
    color: var(--txunited-primary);
    background: transparent;
}

.txunited-signup-form__btn--link[disabled] {
    color: var(--txunited-text-muted);
    text-decoration: none;
    cursor: default;
}

/* ── Editorial masthead (mirrors the events registration header) ── */
.txunited-signup-form__masthead {
    text-align: center;
    padding: 0.25rem 0 2rem;
    margin: 0 0 2.5rem;
    border-bottom: 1px solid var(--txunited-border);
}
.txunited-signup-form__kicker {
    display: inline-block;
    font-weight: 700;
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--txunited-accent-hover);
    margin-bottom: 0.75rem;
}
.txunited-signup-form__title {
    margin: 0 0 0.75rem;
    font-family: var(--txunited-font-head);
    font-weight: 700;
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--txunited-primary);
}
.txunited-signup-form__masthead-sub {
    margin: 0 auto;
    max-width: 46ch;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--txunited-text-muted);
}

/* Hairline rule above the step buttons (events .txu-step-actions). */
.txunited-signup-form-wrap--flow .txunited-signup-form__nav {
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--txunited-border);
}

/* Tier cards read as white on the paper panel, like the events ticket rows. */
.txunited-signup-form-wrap--flow .txunited-signup-form__tier {
    background: var(--txunited-bg);
}

/* Match events: email / phone / password span the full row. */
.txunited-signup-form-wrap--flow .txunited-signup-form__row--email,
.txunited-signup-form-wrap--flow .txunited-signup-form__row--phone,
.txunited-signup-form-wrap--flow .txunited-signup-form__row--password,
.txunited-signup-form-wrap--flow .txunited-signup-form__row--password-confirm,
.txunited-signup-form-wrap--flow .txunited-signup-form__row--otp-code {
    grid-column: 1 / -1;
}

@media (max-width: 600px) {
    .txunited-signup-form-wrap--flow {
        padding: 1.75rem 1.25rem 2.5rem;
    }
}

/* Field labels: sentence case + sizing to match the events fields
   (the base style is uppercase; events uses sentence-case ink labels). */
.txunited-signup-form-wrap--flow .txunited-signup-form__label,
.txunited-signup-form-wrap--flow .txunited-signup-form__sublabel {
    text-transform: none;
    letter-spacing: 0.01em;
}
.txunited-signup-form-wrap--flow .txunited-signup-form__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--txunited-text);
}
.txunited-signup-form-wrap--flow .txunited-signup-form__input {
    padding: 0.75rem 0.875rem;
}

/* Buttons get the events → / ← arrows + a subtle lift on hover. */
.txunited-signup-form-wrap--flow .txunited-signup-form__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}
.txunited-signup-form-wrap--flow .txunited-signup-form__btn--primary::after,
.txunited-signup-form-wrap--flow .txunited-signup-form__btn--ghost[data-back]::before {
    content: "";
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    background-color: currentColor;
    transition: transform 200ms ease;
}
.txunited-signup-form-wrap--flow .txunited-signup-form__btn--primary::after {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") center / contain no-repeat;
}
.txunited-signup-form-wrap--flow .txunited-signup-form__btn--ghost[data-back]::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='19' y1='12' x2='5' y2='12'/%3E%3Cpolyline points='12 19 5 12 12 5'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='19' y1='12' x2='5' y2='12'/%3E%3Cpolyline points='12 19 5 12 12 5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.txunited-signup-form-wrap--flow .txunited-signup-form__btn--primary:hover {
    transform: translateY(-1px);
}
.txunited-signup-form-wrap--flow .txunited-signup-form__btn--primary:hover::after {
    transform: translateX(3px);
}
.txunited-signup-form-wrap--flow .txunited-signup-form__btn--ghost[data-back]:hover::before {
    transform: translateX(-3px);
}
@media (prefers-reduced-motion: reduce) {
    .txunited-signup-form-wrap--flow .txunited-signup-form__btn--primary:hover { transform: none; }
}

/* ── Focused "verify your email" block ── */
.txunited-signup-form__verify {
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
    padding: 0.5rem 0 0;
}
.txunited-signup-form__verify-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    display: grid;
    place-items: center;
    background: var(--txunited-primary);
    color: #ffffff;
    border-radius: 50%;
}
.txunited-signup-form__verify-icon svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    stroke-width: 1.6;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.txunited-signup-form__verify .txunited-signup-form__step-title {
    text-align: center;
}
.txunited-signup-form__verify-lead {
    margin: 0.5rem 0 1.5rem;
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--txunited-text-muted);
}
.txunited-signup-form__verify-lead strong {
    color: var(--txunited-primary);
    font-weight: 700;
    word-break: break-word;
}
.txunited-signup-form__verify-input {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    padding: 0.85rem 1rem;
    font-family: var(--txunited-font-num);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.5rem;
    text-indent: 0.5rem; /* optical centering with the letter-spacing */
    text-align: center;
    color: var(--txunited-primary);
    background: var(--txunited-bg);
    border: 1.5px solid var(--txunited-border);
    border-radius: 4px;
    font-variant-numeric: tabular-nums;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}
.txunited-signup-form__verify-input:focus {
    outline: none;
    border-color: var(--txunited-primary);
    box-shadow: 0 0 0 3px rgba(10, 29, 59, 0.10);
}
.txunited-signup-form__verify-input::placeholder {
    color: var(--txunited-border);
}
.txunited-signup-form__verify .txunited-signup-form__otp-status {
    margin: 1rem 0 0;
    min-height: 1.25em;
    font-size: 0.9rem;
}
.txunited-signup-form__verify-submit {
    margin-top: 1.5rem;
    min-width: 220px;
    justify-content: center;
}
.txunited-signup-form__verify-foot {
    margin: 1.25rem 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: var(--txunited-text-muted);
    font-size: 0.85rem;
}
.txunited-signup-form__linkbtn {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-weight: 600;
    color: var(--txunited-accent-hover);
    text-decoration: underline;
    cursor: pointer;
}
.txunited-signup-form__linkbtn:hover {
    color: var(--txunited-primary);
}
.txunited-signup-form__linkbtn[disabled] {
    color: var(--txunited-text-muted);
    text-decoration: none;
    cursor: default;
}

/* ── Post-signup confirmation ── */
.txunited-signup-form__done {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    padding: 1.5rem 0;
    animation: txunited-signup-fade 240ms ease;
}
.txunited-signup-form__done-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    display: grid;
    place-items: center;
    background: var(--txunited-success);
    color: #ffffff;
    border-radius: 50%;
}
.txunited-signup-form__done-icon svg {
    width: 36px;
    height: 36px;
    stroke: currentColor;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.txunited-signup-form__done-title {
    margin: 0 0 0.5rem;
    font-family: var(--txunited-font-head);
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--txunited-primary);
}
.txunited-signup-form__done-sub {
    margin: 0 auto 1.75rem;
    max-width: 30rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--txunited-text-muted);
}
.txunited-signup-form__done-btn {
    min-width: 220px;
    justify-content: center;
    text-decoration: none;
}
.txunited-signup-form__done-note {
    margin: 1rem 0 0;
    font-size: 0.85rem;
    color: var(--txunited-text-muted);
}

/* ── Member directory: Connect button (self-contained colors so it works
      on the directory page, which doesn't load member-portal.css) ── */
.txunited-directory-profile__connect {
    margin-top: 12px;
}
.txunited-connect-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.2;
    padding: 0.55rem 1.15rem;
    border-radius: 2px;
    border: 1.5px solid #0a1d3b;
    background: #0a1d3b;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.txunited-connect-btn:hover {
    background: #b08a3a;
    border-color: #b08a3a;
}
.txunited-connect-btn--ghost {
    background: transparent;
    color: #0a1d3b;
    border-color: #d9d2c0;
}
.txunited-connect-btn--ghost:hover {
    background: #faf7f0;
    border-color: #0a1d3b;
    color: #0a1d3b;
}
.txunited-connect-btn--gold {
    background: #c9a14a;
    color: #0a1d3b;
    border-color: #c9a14a;
}
.txunited-connect-btn--gold:hover {
    background: #b08a3a;
    border-color: #b08a3a;
    color: #ffffff;
}
.txunited-connect-btn[disabled] {
    opacity: 0.6;
    cursor: default;
}

/* ===== Profile editor: tabs ===== */
/* Without JS the tab bar is hidden and every panel shows (stacked). With JS
   the form gets .txunited-pe--js and only the active panel shows. */
.txunited-pe-tabs {
    display: none;
}
.txunited-pe--js .txunited-pe-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    border-bottom: 1px solid #e5e0d6;
    margin: 0 0 1.25rem;
}
.txunited-pe-tab {
    appearance: none;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    padding: 9px 14px;
    font: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    color: #56607a;
    cursor: pointer;
    white-space: nowrap;
}
.txunited-pe-tab:hover {
    color: #0a1d3b;
}
.txunited-pe-tab.is-active {
    color: #0a1d3b;
    border-bottom-color: #c9a14a;
}
.txunited-pe--js .txunited-pe-panel {
    display: none;
}
.txunited-pe--js .txunited-pe-panel.is-active {
    display: block;
}

/* ===== Profile editor: banner control ===== */
.txunited-profile-banner {
    margin-top: 1.4rem;
}
.txunited-profile-banner__preview {
    margin-top: 0.4rem;
    height: 130px;
    border-radius: 6px;
    border: 1px solid #e5e0d6;
    background-color: #0a1d3b;
    background-image: linear-gradient(120deg, #0a1d3b, #11335c);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}
.txunited-profile-banner__empty {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.85rem;
}
.txunited-profile-banner__controls {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.65rem;
}
.txunited-profile-banner.has-error .txunited-profile-banner__preview {
    border-color: var(--txunited-error, #c0392b);
}

/* ==================================================================
 * Affiliate membership pricing tiers — [txunited_pricing_tiers] + the
 * matching Elementor widget. Markup + values mirror the txccc theme's
 * page-membership.php (.mem-card) so the cards render identically, but
 * the rules are SELF-CONTAINED (own class names, literal brand colors,
 * inlined SVG chevrons) so they don't depend on the theme being active
 * and don't collide with the theme's global .mem-card selectors.
 * ================================================================== */
.txunited-pricing {
    box-sizing: border-box;
    width: 100%;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.txunited-pricing *,
.txunited-pricing *::before,
.txunited-pricing *::after {
    box-sizing: border-box;
}

/* --- Section heading (mirrors .member-title) --------------------------
 * Shared by the standalone [txunited_section_heading] widget AND the
 * pricing block's own header. */
.txunited-heading {
    display: flex;
    flex-direction: column;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.txunited-heading--center {
    align-items: center;
    text-align: center;
}
.txunited-heading--left {
    align-items: flex-start;
    text-align: left;
}
.txunited-heading--right {
    align-items: flex-end;
    text-align: right;
}
.txunited-heading__title {
    max-width: 784px;
    margin: 0;
    font-weight: 800;
    font-size: clamp(2rem, 1.2rem + 3vw, 3.375rem);
    line-height: 1.04;
    color: #040f25;
}
.txunited-heading__rule {
    display: inline-flex;
    line-height: 0;
    margin: 0.9rem 0 0.6rem;
}
.txunited-heading__sub {
    margin: 0;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #bd8b3d;
}
/* The pricing block's own header keeps the original spacing above the grid. */
.txunited-pricing > .txunited-heading {
    padding: 2.5rem 1rem 0;
    margin-bottom: 2.25rem;
}

/* --- Grid (mirrors .mem-grid) ------------------------------------- */
.txunited-pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    justify-items: center;
    align-items: start;
    gap: 2rem;
    max-width: 1140px;
    margin: 0 auto;
    padding-bottom: 1rem;
}

/* --- Card (mirrors .mem-card) ------------------------------------- */
.txunited-pricing__card {
    width: 100%;
    max-width: 360px;
    min-height: 719px;
    border-radius: 9px;
    overflow: hidden;
    border-bottom: 27px solid #9b7337;
    background: #ffffff;
    box-shadow: 0 0 22px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
.txunited-pricing__card.is-featured {
    box-shadow: 0 0 0 2px #a88450, 0 0 26px rgba(0, 0, 0, 0.4);
}
.txunited-pricing__card-main {
    width: 100%;
}

.txunited-pricing__title {
    width: 100%;
    background: #001236;
    border-radius: 9px 9px 0 0;
    font-weight: 800;
    font-size: 1.75rem;
    line-height: 1.4;
    text-align: center;
    color: #ffffff;
    padding: 1rem 0.5rem;
}

.txunited-pricing__price {
    width: 100%;
    min-height: 85px;
    background: #e4e5e8;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 800;
    font-size: 1.75rem;
    line-height: 1.3;
    text-align: center;
    color: #040f25;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0.5rem;
}
.txunited-pricing__pricenote {
    flex-basis: 100%;
    margin-top: 0.2rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: #5a6072;
}

.txunited-pricing__benefits {
    position: relative;
    width: 100%;
    min-height: 38px;
    background: #a88450;
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1.15;
    text-align: center;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}
.txunited-pricing__benefits-chev {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    line-height: 0;
}

.txunited-pricing__feature-row {
    padding: 0.5rem 2rem 0;
    text-align: center;
}
.txunited-pricing__tier-desc {
    border: 1px solid #9b7337;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 5px;
    font-size: 0.6875rem;
    line-height: 1.36;
    font-weight: 500;
    color: #333333;
}
.txunited-pricing__tier-desc strong {
    font-weight: 800;
    color: #001236;
}
.txunited-pricing__row {
    font-weight: 600;
    font-size: 0.75rem;
    line-height: 1.25;
    text-align: center;
    padding: 12px 0;
    color: #000000;
}
.txunited-pricing__row:not(:last-child) {
    border-bottom: 1px solid #d4d4d4;
}
.txunited-pricing__row--intro {
    color: #001236;
}

/* --- Register button (mirrors .mem-card .btn) --------------------- */
.txunited-pricing__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    max-width: 189px;
    min-height: 39px;
    margin: 2rem 0;
    padding: 10px 20px;
    background: #040f25;
    border-radius: 7px;
    font-weight: 700;
    font-size: 1.0625rem;
    line-height: 1.18;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.05s ease;
}
.txunited-pricing__cta:hover,
.txunited-pricing__cta:focus {
    background: #0a1f44;
    color: #ffffff;
}
.txunited-pricing__cta:active {
    transform: translateY(1px);
}
.txunited-pricing__cta-chev {
    display: inline-flex;
    line-height: 0;
}

/* ===================================================================
 * Compare Benefits — affiliate tier comparison table
 * ([txunited_compare_benefits] shortcode + Elementor widget).
 * Mirrors the live membership page's .compare-table; self-contained
 * so it does not depend on the txccc theme being active.
 * =================================================================== */
.txunited-compare {
    box-sizing: border-box;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 2.5rem 1rem 1rem;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.txunited-compare *,
.txunited-compare *::before,
.txunited-compare *::after {
    box-sizing: border-box;
}
/* The block's own header keeps spacing above the table. */
.txunited-compare > .txunited-heading {
    margin-bottom: 2.25rem;
}
.txunited-compare__wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.txunited-compare__table {
    width: 100%;
    border-collapse: collapse;
}
.txunited-compare__table thead th {
    font-weight: 800;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #040f25;
    padding: 1rem 1.5rem;
    text-align: center;
    border-bottom: 2px solid #d4d4d4;
    white-space: nowrap;
}
.txunited-compare__table th.txunited-compare__benefit {
    text-align: left;
}
.txunited-compare__table thead th.txunited-compare__benefit {
    width: 40%;
}
.txunited-compare__table tbody td {
    padding: 0.85rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #333333;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #e4e5e8;
}
.txunited-compare__table tbody td.txunited-compare__benefit {
    text-align: left;
    color: #040f25;
}
.txunited-compare__yes,
.txunited-compare__no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
}
.txunited-compare__yes {
    background: #2e7d32;
}
.txunited-compare__no {
    background: #c62828;
}
@media (max-width: 600px) {
    .txunited-compare {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .txunited-compare__table thead th,
    .txunited-compare__table tbody td {
        padding: 0.7rem 0.85rem;
    }
}
