/* Stepped subject menu. Closed menu is display:none, so the search card keeps a single row. */
form.tt-search-picker-on .sdc5,
form.tt-search-picker-on .subject_ct {
    display: none !important;
}

.tt-search-picker {
    position: fixed;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    max-height: min(380px, 56vh);
    margin: 0;
    padding: 8px 0 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 16px 28px rgba(0, 0, 0, .12);
    color: #222;
}

.tt-search-picker,
.tt-search-picker * {
    box-sizing: border-box;
}

.tt-search-picker[hidden] {
    display: none !important;
    border: 0;
    box-shadow: none;
}

.tt-search-picker .tt-cat-head {
    position: relative;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin: 0 12px 6px;
    padding-bottom: 2px;
    border-bottom: 1px solid #ddd;
}

.tt-search-picker .tt-cat-title {
    width: 100%;
    margin: 0;
    padding: 0 64px;
    text-align: center;
    font-size: 13px;
    line-height: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #222;
}

.tt-search-picker .tt-cat-back {
    position: absolute;
    z-index: 2;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    min-width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #222;
    cursor: pointer;
}

.tt-search-picker .tt-cat-back:hover {
    background: #f7f7f7;
}

.tt-search-picker .tt-cat-back svg {
    display: block;
    width: 10px;
    height: 14px;
}

.tt-search-picker .tt-search-skip {
    position: absolute;
    z-index: 2;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    color: #222;
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.tt-search-picker .tt-search-skip:hover {
    color: #222;
    background: none;
    text-decoration: underline;
}

.tt-search-picker .tt-search-skip:focus {
    outline: none;
}

a.tpt9,
a.tpt9:hover,
a.tpt9:focus,
a.tpt9:active {
    text-decoration: none;
    color: inherit;
}

.tt-search-picker .tt-search-skip:focus-visible {
    outline: 2px solid #222;
    outline-offset: 2px;
}

.tt-search-picker .tt-search-skip[hidden] {
    display: none !important;
}

.tt-search-picker .tt-cat-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 12px 8px;
}

.tt-search-picker .tt-cat-row {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 0 28px 0 10px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    position: relative;
}

.tt-search-picker .tt-cat-row:hover,
.tt-search-picker .tt-cat-row.is-selected {
    background: #f7f7f7;
}

.tt-search-picker .tt-cat-row.is-selected {
    background: #f3fbf9;
}

.tt-search-picker .tt-cat-chev {
    width: .9em;
    height: .9em;
    position: absolute;
    right: 10px;
    color: #717171;
}

.tt-search-picker .tt-level-group {
    margin: 10px 2px 2px;
    font-size: 10px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #222;
    font-weight: 600;
}

.tt-search-picker .tt-boards-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 2px 8px;
}

.tt-search-picker .tt-chip {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #fff;
    color: #222;
    font: inherit;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
}

.tt-search-picker .tt-chip:hover,
.tt-search-picker .tt-chip.on {
    border-color: #02c8a7;
    background: #f3fbf9;
}

.tt-search-picker .tt-search-empty {
    margin: 8px 2px;
    color: #717171;
    font-size: 14px;
}
