/*
 * components.css - Reusable pieces: buttons, form controls, search/filter/sort, tabs, tags, cards, images, feedback.
 *
 * Sections:
 *   BUTTONS
 *   FORM CONTROLS
 *   SEARCH, FILTER AND SORT
 *   TABS AND MENUS
 *   TAGS AND BADGES
 *   CARDS AND LIST ROWS
 *   IMAGES AND AVATARS
 *   FEEDBACK: SNACKBAR, CALLOUTS, TUTORIAL, MESSAGES
 */

/* ==================================================================
   BUTTONS
   ================================================================== */

/*Icon buttons*/
.icon-button {
    width: 30px;
    height: 30px;
    margin-top: 20px;
    border: none;
    background-color: transparent;
}

    .icon-button:focus {
        outline: none;
    }

    .icon-button.small {
        width: 15px;
        height: 15px;
        margin-top: 5px;
        border-color: dimgray
    }

    .icon-button.medium {
        width: 20px;
        height: 20px;
        margin-top: 5px;
        border-color: dimgray
    }

    .icon-button.large {
        width: 50px;
        height: 50px;
        margin-top: 5px;
        border-color: dimgray
    }

@media (max-width: 480px) {
    .icon-button {
        margin-right: 10px;
        width: 25px;
        height: 25px;
        border-color: transparent
    }
}

.rsvp-button {
    display: block;
}

.mobile-rsvp-button {
    display: none;
    font-size: 14px;
}

@media (max-width: 1700px) {
    .mobile-rsvp-button {
        display: block;
        font-size: 14px;
    }

    .rsvp-button {
        display: none;
    }
}

.quick-add-text {
    margin-top: 13px;
    width: 225px;
    height: 40px;
    color: black;
    font-size: medium;
    border-radius: var(--border-radius-small);
    padding-left: 10px;
}

.quick-add-button:focus {
    outline: none;
}

.quick-add-button.focus {
    outline: none;
}

.quick-add-radio-button {
    margin-left: 10px;
    margin-right: 15px;
}

    .quick-add-radio-button.last {
        margin-right: 0px !important;
    }

@media (max-width: 480px) {
    .quick-add-radio-button {
        margin-left: 5px !important;
        margin-right: 10px !important;
    }

        .quick-add-radio-button.last {
            margin-left: 5px !important;
            margin-right: 0px !important;
        }
}

.add-new-button {
    position: fixed;
    width: 56px;
    height: 56px;
    bottom: 65px;
    right: 16px;
    background-color: var(--important-button);
    color: var(--greyscale-grey-01);
    border-radius: var(--border-radius-large);
    text-align: center;
    box-shadow: 2px 2px 3px #999;
    touch-action: none;
    user-select: none;
    display: none;
}

    .add-new-button:active {
        transform: translateY(4px);
    }

    .add-new-button:focus {
        outline: none;
    }

.info-button {
    margin-right: 15px;
    font-size: 24px;
    color: var(--label);
}

    .info-button:hover {
        cursor: pointer;
    }

@media (max-width: 768px) {
    .add-new-button {
        display: none;
    }
}

.large-button {
    width: 140px;
    height: 40px;
    margin-left: 16px;
    padding: 8px 12px 8px 12px;
    border-radius: var(--border-radius-large);
    text-align: center;
    white-space: nowrap;
    color: black;
    background-color: var(--typography-white);
}

@media (max-width: 481px) {
    .large-button {
        width: 110px;
        height: 40px;
        margin-left: 12px;
        padding: 6px 10px 6px 10px;
    }

    .button-label {
        font-size: 12px;
    }
}

@media (max-width: 365px) {
    .large-button {
        width: 100px;
        height: 40px;
        margin-left: 10px;
        padding: 4px 10px 4px 10px;
    }

    .button-label {
        font-size: 10px;
    }
}

@media (max-width: 340px) {
    .large-button {
        width: 80px;
        height: 40px;
        margin-left: 8px;
        padding: 4px 8px 4px 8px;
    }

    .button-label {
        font-size: 8px;
    }
}

.large-button:focus {
    outline: none;
}

.large-button:active {
    transform: translateY(4px);
}

.medium-button {
    width: auto;
    height: 30px;
    font-size: 12px;
    margin: 0 8px 0 0;
    padding: 1px 8px 4px 8px;
    border-radius: var(--border-radius-large);
    white-space: nowrap;
    color: black;
    background-color: var(--typography-white);
}

.small-button {
    width: auto;
    height: 40px;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 16px 0 0;
    padding: 0 16px 0 16px;
    border-radius: var(--border-radius-large);
    border: .5px solid var(--important-button);
    white-space: nowrap;
    color: black;
    background-color: var(--typography-white);
}

@media (max-width: 480px) {
    .small-button {
        height: 40px;
        font-size: 16px;
    }
}

.small-button:focus {
    outline: none;
}

.important-button {
    background-color: var(--important-button);
    color: var(--important-text);
    font-weight: 500;
    border: none;
}

.small-button:hover {
    background: color-mix(in srgb, white 98%, black) !important;
    border-color: #7AAED4;
    border: none;
    transform: scale(1.05);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}

.important-button:hover, .sort-btn:hover, .page-add-new-button:hover {
    background: color-mix(in srgb, var(--important-button) 98%, black) !important;
    border-color: #7AAED4;
    color: var(--important-text);
    border: none;
    transform: scale(1.05);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}

.c-horizontal-menu-button.active {
    background-color: var(--typography-white);
    font-weight: bold;
    box-shadow: 0px 4px 20px rgba(17, 17, 15, 0.12);
    color: var(--colors-primary);
}

.c-horizontal-menu-button {
    padding: 15px;
    width: auto;
    height: 50px;
    margin: 2px;
    border-radius: var(--border-radius-small);
    font-size: 20px;
    font-family: var(--global-font-family);
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.08;
    letter-spacing: var(--global-letter-spacing);
    text-align: center;
    color: var(--greyscale-grey-03);
}

@media (max-width: 480px) {
    .c-horizontal-menu-button {
        font-size: 14px;
        padding: 15px 10px 10px 10px;
    }
}

.journal-nav-button {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    border: none;
}

    .journal-nav-button.active {
        background-color: var(--colors-primary);
    }

    .journal-nav-button:focus {
        outline: none;
    }

@media (min-width: 600px) and (max-width: 1024px) {
    .add-new-button {
        display: none;
    }
}

.btn-danger {
    padding: 2px 8px;
    font-size: 14px;
}

.btn-link {
    color: #007bff;
    text-decoration: none;
}

    .btn-link:hover {
        text-decoration: underline;
    }

.add-another-date-button {
    width: 95%;
    margin-top: 10px;
    margin-bottom: 10px;
    display: block;
}

button.browser-panel-button {
    width: 140px;
    padding: 8px;
    font-weight: bold;
    border-radius: var(--border-radius-small);
    margin-bottom: 6px;
    text-align: center;
}

.sync-calendar-btn {
    background-color: #005ba5;
    color: white;
    border: none;
    border-radius: var(--border-radius-small);
    padding: 8px 16px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

    .sync-calendar-btn:hover {
        background-color: #0052cc;
    }

    .sync-calendar-btn i.material-icons {
        font-size: 18px;
    }

@media (max-width: 480px) {
    .material-symbols-outlined.back-button {
        font-size: 36px;
    }
}

.btn-with-badge {
    position: relative;
}

    /* If your theme shifts padding/line-height on :active, freeze them */
    .btn-with-badge:active {
        padding: .375rem .75rem; /* match your normal .btn padding */
        line-height: 1.5;
    }

    .btn-with-badge .filter-icon-badge {
        position: absolute;
        top: 0px; /* adjust as needed */
        right: 0px; /* adjust as needed */
        transform: translate(50%, -50%); /* nudges into corner cleanly */
        pointer-events: none; /* keep clicks on button */
    }

@media (max-width: 480px) {
    .btn-with-badge .filter-icon-badge {
        transform: translate(70%, -40%); /* was 45%, nudged further right */
    }
}

.button-label {
    font-family: var(--global-font-family);
    font-size: 16px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: -0.5px;
    text-align: center;
}

@media (max-width: 480px) {
    .page-icon-button_title {
        display: none;
    }
}

.toggle-button-title {
    margin-right: 10px;
    color: black;
    font-size: 16px;
}

    .toggle-button-title.important-button {
        margin-right: 10px;
        color: white;
        font-size: 16px;
    }

.page-add-new-title {
    margin-right: 10px;
    color: white;
    font-size: 16px;
    margin-top: -5px;
}

.page-add-new-hint {
    display: none;
}

    .page-add-new-hint.force-small {
        display: block;
        font-size: 8px;
    }

@media (max-width: 1200px) {
    .toggle-button-title {
        margin-right: 10px;
        color: black;
        font-size: 16px;
    }
}

.page-add-new-title.force-small {
    display: none;
}

@media (max-width: 800px) {
    .page-add-new-hint {
        display: block;
    }

    .page-add-new-title:not(.keep-large) {
        display: none;
    }

    .page-add-new-title.keep-title {
        display: block;
    }

    .toggle-button-title {
        display: none;
        font-size: 16px;
    }

    .toggle-button-icon {
        display: none;
        font-size: 16px !important;
    }
}

.page-icon-button-title {
    margin-top: 0px;
}

.page-add-new-button {
    width: 128px;
    height: 40px;
    margin: 0 11px 0 0;
    padding: 8px 16px 8px 15px;
    border-radius: var(--border-radius-large);
    white-space: nowrap;
    color: black;
    background-color: var(--typography-white);
    font-family: var(--global-font-family);
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    font-size: 18px;
    line-height: 1.5;
    letter-spacing: -0.5px;
    margin-top: 15px;
}

    .page-add-new-button:focus {
        outline: none;
    }

    .page-add-new-button:active {
        transform: translateY(4px);
    }

    .page-add-new-button.force-small {
        width: 45px;
        min-width: 45px;
        height: 45px;
        padding: 3px 8px 3px 8px;
        border: none;
        border-radius: var(--border-radius-small);
        background-color: transparent;
    }

.page-add-new-icon {
    padding-top: 0px;
    margin-top: -2px;
    font-size: 24px;
    margin-right: 0px;
    margin-left: 12px !important;
}

    .page-add-new-icon.suggested-button {
        margin-left: 0px !important;
    }

.page-add-new-button.suggested-button {
    padding: 6px 8px;
}

.page-add-new-icon.force-small {
    font-size: 24px;
    flex: 1;
    margin-top: 0px;
    margin-left: 0px !important;
}

@media (max-width: 1200px) {
    .page-add-new-button:not(.keep-large) {
        width: 70px;
        height: 42px;
        font-size: 12px;
        text-align: center;
        padding: 4px 8px 4px 8px;
    }

    .page-add-new-icon:not(.keep-large) {
        padding-top: 0px;
        font-size: 24px;
        margin-right: 0px
    }

    .page-add-new-title:not(.keep-large) {
        margin-top: -2px;
        padding-top: 0px;
        font-size: 10px;
    }

    .page-icon-button-title:not(.keep-large) {
        margin-top: 0px;
    }
}

@media (max-width: 481px) {
    .page-add-new-button:not(.keep-large) {
        width: 45px;
        min-width: 45px;
        height: 45px;
        padding: 3px 8px 3px 8px;
        border-radius: var(--border-radius-small);
        border: none;
        background-color: transparent;
    }

    .page-add-new-button.browser-add-recipe {
        width: 65px !important;
        height: 65px;
        border: 1px solid lightgray;
    }

    .page-add-new-icon {
        flex: 1;
        font-size: 18px;
    }
}

.button-bar {
    background-color: var(--button-bar-bg);
    border-radius: var(--border-radius-small);
    padding: 5px;
    border: 1px solid black;
    flex: 9;
    min-height: 40px;
}

.search-bar-button {
    border-width: thin;
    border-right: none;
    height: 44px;
    border: none;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border-color: var(--greyscale-grey-04);
    max-width: 90%;
}

    .search-bar-button.right {
        border-left-style: none;
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
    }

    .search-bar-button.left {
        border-right-style: none;
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
    }

/* Clear icon button itself */
.clear-search-button {
    margin-top: 20px;
    margin-left: -50px;
    border: none;
    background: transparent;
    padding: 0 0px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-bottom: 5px;
}

@media (max-width: 481px) {
    .clear-search-button {
        margin-top: 0px;
    }
}

.page-nav-button {
    font-weight: normal;
}

    .page-nav-button:hover {
        cursor: pointer;
    }

@media (max-width: 480px) {
    .page-nav-button.large {
        font-size: 36px;
    }
}

.back-button {
    line-height: 1;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.badge-button {
    border-radius: var(--border-radius-small);
    width: auto;
    height: 30px;
    padding: 0 5px 5px 5px;
    background-color: transparent;
}

    .badge-button:focus {
        outline: none;
    }

.email-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: var(--border-radius-small);
    font-weight: bold;
    transition: background-color 0.3s ease;
}

    .email-button:hover {
        background-color: #0056b3;
    }

.rsvp-filter-button {
    margin-right: 15px;
    padding-left: 9px;
    padding-right: 9px;
    border: none;
    font-size: 16px;
    color: var(--important-text);
    background-color: var(--important-button);
    transition: transform 0.1s ease-out; /* Smooth transition for the effect */
}

    .rsvp-filter-button:active {
        transform: translateY(2px); /* Move the button down slightly */
        background-color: #e0e0e0;
    }

    .rsvp-filter-button:hover {
        transform: translateY(2px); /* Move the button down slightly */
        background-color: #C7DDF2 !important;
    }

@media (max-width: 480px) {
    .rsvp-filter-button {
        margin-right: 7px;
        padding-left: 5px;
        padding-right: 5px;
        font-size: 11px;
    }
}

.page-filter-button {
    padding: 15px 15px 10px 15px;
    width: auto;
    height: 40px;
    margin-right: 20px;
    border-radius: var(--border-radius-small);
    font-size: 18px;
    font-family: var(--global-font-family);
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.08;
    letter-spacing: -0.5px;
    text-align: center;
    color: var(--greyscale-grey-03);
}

    .page-filter-button.active {
        background-color: var(--typography-white);
        font-weight: bold;
    }

    .page-filter-button:hover {
        cursor: pointer;
    }

@media (max-width: 1300px) {
    .page-filter-button {
        font-size: 16px;
        width: auto;
        height: 30px;
        padding: 8px 3px 5px 3px;
        margin-right: 10px;
        flex-shrink: 0;
    }

        .page-filter-button.active {
            font-weight: bold;
        }
}

@media (max-width: 900px) {
    .page-filter-button {
        font-size: 14px;
        width: auto;
        height: 30px;
        padding: 8px 3px 5px 3px;
        margin-right: 10px;
        flex-shrink: 0;
    }

        .page-filter-button.active {
            font-weight: bold;
        }
}

@media (max-width: 480px) {
    .page-filter-button {
        font-size: 12px;
        width: auto;
        height: 30px;
        padding: 8px 3px 5px 3px;
        margin-right: 10px;
        flex-shrink: 0;
    }

        .page-filter-button.active {
            font-weight: bold;
        }
}

.xlarge-wide {
    width: 100%;
    height: 56px;
    margin: 0 0 16px;
    padding: 16px 125.5px;
    border-radius: var(--border-radius-large);
    color: white;
    white-space: nowrap;
    background-color: var(--colors-primary);
}

.landing-button {
    margin: 10px 10px 10px 10px;
    width: 300px;
}

/*Quick add button*/
.quick-add-button {
    margin-bottom: 20px !important;
    margin-left: 10px !important;
    padding-left: 5px !important;
    font-size: 14px !important;
    width: 130px !important;
    outline: none;
    color: white;
    background-color: var(--important-button);
}

@media (max-width: 768px) {
    .quick-add-button {
        display: none
    }
}

@media (max-width: 480px) {
    .quick-add-button {
        display: none
    }
}

.quick-add-menu-button {
    background-color: var(--button-bar-bg);
    font-weight: bold;
    color: black;
    margin-right: 3px;
}

    .quick-add-menu-button:focus {
        outline: none;
    }

.image-delete-button {
    position: relative;
    top: 5px;
    right: 8px;
    z-index: 100;
    background-color: #FFF;
    padding: 4px 3px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    font-size: 22px;
    line-height: 10px;
    border-radius: 50%;
    border: 1px solid red;
}

.badge-button:hover {
    background-color: var(--greyscale-grey-04);
}

.badge-button:active {
    transform: translateY(4px);
}

.filter-menu-button {
    margin-top: 15px !important;
}

@media (max-width: 480px) {
    .filter-menu-button {
        margin-top: 5px !important;
    }
}

.filter-button {
    width: auto;
    margin-right: 10px;
    font-size: 20px;
    font-family: var(--global-font-family);
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.08;
    letter-spacing: -0.5px;
    text-align: left;
    padding: 10px;
    height: 40px;
    margin-top: 10px;
    border-radius: var(--border-radius-small);
    color: var(--greyscale-grey-01);
}

@media (max-width: 480px) {
    .filter-button {
        height: auto;
    }
}

@media (min-width: 480px) and (max-width: 800px) {
    .page-add-new-button:not(.keep-large) {
        height: 55px !important;
        margin-left: 2px;
    }

    .page-add-new-icon:not(.keep-large) {
        font-size: 18px !important;
        margin-left: 0px;
    }

    .page-icon-button-title:not(.keep-large) {
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .page-add-new-icon:not(.keep-large) {
        margin-left: 0px !important;
    }
}

@media (min-width: 1024px) and (max-width: 1215px) {
    .add-new-button {
        width: 60px !important;
        height: 60px !important;
        bottom: 60px !important;
    }

    #quick_add_button {
        display: none !important;
    }
}

@media (min-width: 600px) and (max-width: 1215px) {
    #mobile_quick_add .material-symbols-outlined {
        font-size: 30px;
    }

    .add-new-button {
        width: 70px;
        height: 70px;
        bottom: 70px;
        right: 35px;
    }

    .page-add-new-title {
        font-size: 16px;
    }
}

.btn-link {
    color: #007bff;
    text-decoration: none;
}

    .btn-link:hover {
        text-decoration: underline;
    }

/* Icon inside it */
.clear-search-button .material-symbols-outlined {
    font-size: 20px;
    opacity: 0.4;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.clear-search-button:hover .material-symbols-outlined {
    opacity: 0.9;
    transform: scale(1.1);
}


/* ==================================================================
   FORM CONTROLS
   ================================================================== */

@media (min-width: 0px) and (max-width: 312px) {
    .my-textbox.comment-textbox {
        min-width: 50% !important;
        height: 75px !important;
        scrollbar-width: none;
    }
}

@media (min-width: 312px) and (max-width: 480px) {
    .my-textbox.comment-textbox {
        min-width: 70% !important;
        height: 75px !important;
        scrollbar-width: none;
    }
}

@media (min-width: 480px) and (max-width: 720px) {
    .my-textbox.comment-textbox {
        min-width: 80% !important;
        height: 75px !important;
        scrollbar-width: none;
    }
}

@media (max-width: 768px) {
    .my-landing-page {
        flex-direction: column;
        text-align: center;
    }
}

.my-landing-page {
    gap: 40px; /* spacing between logo and text */
    padding: 60px 5%;
    background-color: var(--default-bg);
}

.my-label {
    text-align: right;
    padding-right: 10px;
    margin-top: 10px;
    font-size: medium;
    font-weight: bold;
}

.my-textarea {
    width: -webkit-fill-available;
    font-size: 18px;
    height: 6em;
    font-family: var(--global-font-family);
    font-weight: 400;
    font-stretch: normal;
    font-style: normal;
    line-height: 24px;
    letter-spacing: var(--global-letter-spacing);
    text-align: left;
    padding: 12px 20px 12px 12px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: var(--border-radius-small);
    min-width: 100%;
    box-sizing: border-box;
}

.my-textbox {
    width: -webkit-fill-available;
    font-size: 18px;
    font-family: var(--global-font-family);
    font-weight: 400;
    font-stretch: normal;
    font-style: normal;
    line-height: 24px;
    letter-spacing: var(--global-letter-spacing);
    text-align: left;
    padding: 12px 20px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: var(--border-radius-small);
    min-width: 100%;
    box-sizing: border-box;
}

    .my-textbox:not(.comment-textbox) {
        height: 44px !important;
    }

    .my-textbox.comment-textbox {
        min-width: 0%;
        height: 75px;
        scrollbar-width: none;
    }

.my-textbox-short {
    padding: 12px 20px;
    margin: 8px 0;
    height: 40px !important;
    border: 1px solid #ccc;
    border-radius: var(--border-radius-small);
    box-sizing: border-box;
}

.my-textbox-shorter {
    padding: 12px 20px;
    margin: 8px 0;
    height: 40px !important;
    border: 1px solid #ccc;
    border-radius: var(--border-radius-small);
    box-sizing: border-box;
}

.my-textbox.limited {
    flex: 1;
    min-width: 50%;
}

@media (max-width: 1024px) {
    .my-textbox.limited {
        flex: 0;
        min-width: 75%;
    }
}

@media (max-width: 480px) {
    .my-textbox {
        font-size: 18px;
        height: 40px !important;
    }

        .my-textbox.limited {
            flex: 0;
            max-width: 65%;
        }
}

.my-checkbox {
    border: 0;
    margin: 2px 2px 2px 2px;
    width: 1em;
    height: 1em;
}

    .my-checkbox.small-checkbox {
        width: 25px;
        height: 25px;
    }

    .my-checkbox input[type="checkbox"] {
        margin-right: 5px;
    }

.my-dropdownlist {
    /*font size is small-medium*/
    height: 40px;
    border-radius: var(--border-radius-small);
    padding-left: 5px;
    font-size: 16px;
    font-family: var(--global-font-family);
    font-weight: 400;
    font-stretch: normal;
    font-style: normal;
    line-height: 16px;
    letter-spacing: var(--global-letter-spacing);
    text-align: left;
    margin-top: 5px;
}

    .my-dropdownlist.ctwrounded {
        border-radius: 999px;
        border-width: 3px;
    }

@media (max-width: 480px) {
    .my-dropdownlist {
        /*font size is small-medium*/
        font-size: 16px;
        height: 40px;
    }
}

.my-dropdown-label {
    font-size: 20px;
    margin-right: 5px;
}

@media (max-width: 480px) {
    .my-dropdown-label {
        font-size: 15px;
    }
}

.twitter-typeahead > input {
    width: 100% !important;
    height: 30px;
}

.twitter-typeahead {
    width: 100% !important;
}

.tag-field-container .twitter-typeahead {
    width: 89% !important;
}

.tt-dropdown-menu {
    width: 102%;
}

.typeahead, .tt-query, .tt-hint {
    border: 2px solid #CCCCCC;
    border-radius: var(--border-radius-small);
    font-size: 22px; /* Set input font size */
    height: 30px;
    line-height: 30px;
    outline: medium none;
    padding: 8px 12px;
    width: 396px;
}

.tt-hint {
    display: none !important;
    color: #999999;
}

.typeahead {
    background-color: #FFFFFF;
    margin-top: 10px;
}

    .typeahead:focus {
        border: 2px solid #0097CF;
    }

.tt-query {
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
}

.tt-menu {
    background-color: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-small);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    margin-top: 12px;
    padding: 8px 0;
    width: 422px;
}

.tt-suggestion {
    font-size: 22px; /* Set suggestion dropdown font size */
    padding: 3px 20px;
}

    .tt-suggestion:hover {
        cursor: pointer;
        background-color: #0097CF;
        color: #FFFFFF;
    }

    .tt-suggestion p {
        margin: 0;
    }

/* 2) Fixed/natural width for small boxes like quantity */
.edit-popup-section .popup-form-section-row.align-elements .quantity-widget {
    flex: 0 0 56px; /* adjust as you like */
    min-width: 56px;
}

/* 3) Let typeahead occupy the remaining space (handles nested wrappers) */
.popup-form-section-row.align-elements .twitter-typeahead {
    display: flex !important; /* override inline-block */
    flex: 1 1 0% !important; /* take leftover space */
    min-width: 0; /* allow shrinking */
    width: 100%; /* pass width through nested wrappers */
    max-width: none !important; /* clear caps */
}

/* 4) Visible input fills its wrapper (clear any global max-width) */
.edit-popup-section .popup-form-section-row.align-elements .twitter-typeahead .tt-input {
    flex: 1 1 auto;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
    height: 40px; /* match your control height */
}

.edit-photo-link {
    text-align: center;
    color: blue;
    margin-bottom: 10px;
}

.edit-widget {
    margin-bottom: 24px;
}

@media (max-width: 580px) {
    .edit-widget {
        margin-bottom: 5px;
    }
}

.my-hint {
    color: var(--greyscale-grey-01);
    font-size: small;
    margin-top: 2px;
}

.required-field-indicator {
    color: var(--alert);
    text-align: left;
}

.error-label {
    margin-top: 5px;
    font-size: medium;
    color: var(--alert)
}

.my-validator {
    color: var(--alert);
    text-align: left;
}

.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

    .password-container input {
        width: 100%;
        padding-right: 40px;
    }

    .password-container .toggle-password {
        position: absolute;
        right: 10px;
        cursor: pointer;
    }

.pac-container {
    max-height: 300px;
    overflow-y: auto;
    position: absolute !important;
    z-index: 99999 !important;
    top: 100%;
    width: 100%;
    z-index: 9999;
}

#user_profile_tags_widget .popup-form-section-row .twitter-typeahead {
    width: 93% !important;
}

@media (max-width: 768px) {
    #user_profile_tags_widget .popup-form-section-row .twitter-typeahead {
        width: 87% !important;
    }
}

#popup_manage_tags_widget .popup-form-section-row .twitter-typeahead {
    max-width: 86%;
}

#manage_interest_text {
    min-width: auto;
}

.date-widget.collapsed {
    max-height: 50px;
    overflow: hidden;
}

.url-widget.collapsed {
    max-height: 100px;
    overflow: hidden;
}

    .url-widget.collapsed .url-address {
        display: block;
    }

    .url-widget.collapsed .url-display-text, .url-widget.collapsed .url-display-order {
        display: none;
    }

.popup-form-section-row.actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.toggle-collapse {
    color: #555;
}

.date-widget.collapsed {
    max-height: 50px;
    overflow: hidden;
}

.url-widget.collapsed {
    max-height: 105px;
    overflow: hidden;
}

.date-widget.collapsed .popup-form-section-row + * {
    display: none;
}

.date-widget.collapsed .date-summary {
    display: flex !important;
}

.date-widget.collapsed .popup-form-section-row:first-child {
    display: block;
}

.action-right {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 10px !important;
}

.email-field-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.form-control {
    flex: 1;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.alternate-container {
    position: relative;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-small);
    padding: 10px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .dynamic-field > div {
        margin-top: 5px;
    }

    .has-date-widget .date-widget .start-date {
        width: 30% !important;
        margin-top: 12px !important;
    }

    #add_event_popup .date-widget .end-date {
        width: 30% !important;
        margin-top: 12px !important;
    }

    .has-date-widget .date-widget .end-date {
        width: 30% !important;
        margin-top: 12px !important;
    }

    .alt-edit-form-label::placeholder {
        font-size: 14px;
    }

    .alt-textbox::placeholder {
        font-size: 14px !important;
        height: 44px !important;
        font-family: Assistant, Arial, sans-serif !important;
        font-weight: 400 !important;
    }

    .alt-edit-form-label {
        font-family: Assistant, Arial, sans-serif !important;
        font-size: 18px !important;
        font-weight: bold !important;
        height: 44px !important;
    }

    .alt-textbox {
        font-size: 18px !important;
        height: 44px !important;
        font-family: Assistant, Arial, sans-serif !important;
        font-weight: 400 !important;
    }

    .url-widget.collapsed {
        max-height: 105px;
        overflow: hidden;
    }

    .date-widget.collapsed {
        max-height: 47px;
        overflow: hidden;
    }

    .recurrence-dropdown {
        width: 45% !important;
    }

    .toggle-icon {
        font-size: 36px !important;
    }
}

.global-toggle {
    position: absolute;
    top: -30px;
    right: 10px;
    font-size: 24px;
    color: #555;
    cursor: pointer;
}

.dynamic-field {
    transition: all 0.3s ease;
    display: flex;
}

.alt-edit-form-label {
    font-family: Assistant, Arial, sans-serif !important;
    font-size: 20px !important;
    font-weight: bold !important;
    height: 44px !important;
}

.alt-textbox {
    font-size: 23px !important;
    height: 44px !important;
    font-family: Assistant, Arial, sans-serif !important;
    font-weight: 400 !important;
}

.date-options-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.recurring-container {
    gap: 10px;
    display: flex;
    align-items: center;
    margin-top: 10px;
    font-size: 14px;
}

.recurrence-dropdown {
    font-size: 18px !important;
    height: 44px !important;
    font-family: var(--global-font-family);
    font-weight: 400 !important;
    width: 30%;
    font-size: 14px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius-small);
}

.textarea {
    width: 100%;
    resize: none;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius-small);
    font-size: 14px;
}

.recurring-checkbox {
    margin-right: 5px;
}

.recurring-container label {
    margin-right: 10px;
    font-size: 14px;
    font-weight: normal;
}

#quick_add_list_item {
    min-width: 0% !important;
    flex: 1 1 0%;
}

.email-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: var(--border-radius-small);
    background-color: #fdfdfd;
}

.email-label-input {
    width: 18%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius-small);
}

.email-text-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius-small);
}

.remove-icon {
    color: #777;
    cursor: pointer;
    font-size: 20px;
    margin-left: 8px;
}

.toggle-icon {
    font-size: 40px;
}

.sharewith-input-wrapper {
    border: 1px solid lightgray;
    border-radius: var(--border-radius-small);
    padding: 6px;
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 40px;
    position: relative;
    background: #fff;
}

    .sharewith-input-wrapper input {
        border: none;
        outline: none;
        flex: 1;
        min-width: 100px;
        font-size: 14px;
    }

.sharewith-dropdown {
    max-height: 196px;
    overflow-y: auto;
    border: 1px solid lightgray;
    border-radius: var(--border-radius-small);
    margin-top: 4px;
    display: none;
    position: absolute;
    background: white;
    z-index: 1000;
    width: -webkit-fit-content;
    top: 100%;
    left: 0;
}

.sharewith-option {
    padding: 6px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .sharewith-option:hover {
        background: #eee;
    }

.sharewith-tag {
    background: var(--tag-bg);
    padding: 4px 8px;
    margin: 2px;
    border-radius: var(--border-radius-small);
    display: flex;
    align-items: center;
    font-size: 14px;
}

    .sharewith-tag span {
        margin-right: 6px;
    }

    .sharewith-tag .remove-btn {
        cursor: pointer;
        font-weight: bold;
    }

    .sharewith-tag.everyone-tag {
        background: #ddd;
    }

.other-sharing-options {
    display: none;
}

.responsive-add-item-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}

    .responsive-add-item-row .quantity-widget {
        flex: 0 1 50px;
        min-width: 40px;
        max-width: 60px;
    }

    .responsive-add-item-row .twitter-typeahead {
        flex: 1 1 auto;
        min-width: 120px;
        position: relative;
    }

    .responsive-add-item-row .tt-input {
        width: 100% !important;
        box-sizing: border-box;
    }

    .responsive-add-item-row .clear-search-button {
        flex: 0 0 auto;
        cursor: pointer;
    }

    .responsive-add-item-row .add-item-button {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 32px !important;
    }

@media (max-width: 500px) {
    .responsive-add-item-row {
        gap: 4px;
    }

        .responsive-add-item-row .twitter-typeahead {
            min-width: 80px;
        }
}

#content_search_text {
    max-width: initial !important;
}

@media (max-width: 768px) {
    .email-text {
        font-size: 14px !important;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        display: block;
        max-width: 100%;
    }
}

.form-element-label {
    font-family: var(--global-font-family);
    font-size: 12px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.33;
    letter-spacing: normal;
    text-align: left;
    color: var(--greyscale-grey-01);
}

.form-element-body {
    font-family: var(--global-font-family);
    font-size: 16px;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.33;
    letter-spacing: normal;
    text-align: left;
}

.landing-textbox {
    width: 328px !important;
    height: 48px;
    margin: 3px 0 0;
    max-width: none;
    padding: 6px 16px;
    border-radius: var(--border-radius-small);
    border: solid 1px var(--greyscale-grey-04);
    background-color: var(--typography-white);
}

    .landing-textbox.textarea {
        height: 200px;
    }

    .landing-textbox.narrow {
        width: 175px !important;
    }

@media (max-width: 480px) {
    .landing-textbox.narrow {
        width: 125px !important;
    }

    .landing-textbox {
        font-size: 15px;
        height: 30px;
    }
}

.landing-textbox-label {
    width: 328px;
    height: 16px;
    font-family: var(--global-font-family);
    font-size: 12px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.33;
    letter-spacing: normal;
    text-align: left;
    color: var(--greyscale-grey-01);
}

    .landing-textbox-label.error {
        color: var( --alert);
    }

.item-quantity-edit {
    max-width: 100px;
}

.input.landing-textbox.error:focus {
    border-color: var( --alert) !important;
}

.landing-textbox.error {
    border: solid 1px var( --alert);
}

@media (max-width: 480px) {
    .item-quantity-edit {
        max-width: 70px;
    }
}

.quantity-widget {
    width: 100px;
    margin-right: 5px;
    min-width: 100px;
    max-width: 100px;
    padding: 5px;
    padding-left: 10px;
}

@media (max-width: 480px) {
    .quantity-widget {
        width: 50px;
        min-width: 50px;
        max-width: 50px;
    }
}

.edit-form-label {
    font-family: var(--global-font-family);
    font-size: 20px;
    font-stretch: normal;
    font-style: normal;
    font-weight: bold;
    line-height: 1.33;
    letter-spacing: normal;
    text-align: left;
    color: var(--label);
    margin-top: 10px;
}

    .edit-form-label.in-box {
        font-size: 14px;
        font-style: normal;
        font-weight: lighter;
        margin-top: -2px;
        margin-left: 15px;
        background-color: white;
        position: absolute;
    }

@media (max-width: 480px) {
    .edit-form-label {
        font-size: 14px;
    }
}

.edit-form-label.error {
    color: var( --alert);
}

.edit-form-label-column {
    width: auto;
    flex: 2;
}

.edit-form-entry {
    width: auto;
    flex: 8;
}

@media (max-width: 768px) {
    .edit-form-label-column {
        width: auto;
        flex: 2;
    }

    .edit-form-entry {
        width: auto;
        flex: 4;
    }
}

.edit-popup-section .edit-form-entry .popup-form-section-row .twitter-typeahead {
    width: 90% !important;
}

@media (max-width: 768px) {
    .edit-popup-section .edit-form-entry .popup-form-section-row .twitter-typeahead {
        width: 91% !important;
    }
}

@media (max-width: 480px) {
    .edit-popup-section .edit-form-entry .popup-form-section-row .twitter-typeahead {
        width: 83% !important;
    }
}

#profile_interest_section .popup-form-section-row .twitter-typeahead {
    width: 93% !important;
}

@media (max-width: 768px) {
    #profile_interest_section .popup-form-section-row .twitter-typeahead {
        width: 92% !important;
    }
}

@media (max-width: 480px) {
    #profile_interest_section .popup-form-section-row .twitter-typeahead {
        width: 85% !important;
    }
}

@media (max-width: 481px) {
    .edit-form-label-column {
        width: auto;
        flex: 2;
        min-width: -webkit-fill-available;
    }

    .edit-form-entry {
        width: auto;
        flex: 4;
    }
}

@media (max-width: 385px) {
    .edit-form-label-column {
        width: auto;
        flex: 1;
    }

    .edit-form-entry {
        width: auto;
        flex: 3;
    }
}

.editing-group {
    border-style: solid;
    width: 100%;
    border-width: thin;
    border-radius: var(--border-radius-small);
    border-color: black;
    padding: 8px;
}

    .editing-group.multiple {
        padding: 5px;
        overflow: hidden;
    }

.edit-field-font {
    font-size: 20px;
    padding-left: 10px;
}

@media (max-width: 480px) {
    .edit-field-font {
        font-size: 14px;
    }
}

.interest-textbox {
    width: 156px;
    height: 40px;
    margin: 0 0 12px;
    padding: 8px 10px;
    border-radius: var(--border-radius-small);
    border: solid 1px black;
}

.landing-textbox:hover {
    border: solid 1px var(--greyscale-grey-01);
}

.landing-textbox:focus {
    border: solid 1px var(--colors-primary);
}

.photo-comment-textbox {
    width: 100%;
}

.feed-checkbox + .checkbox-text {
    flex: 1;
}

.checkbox-text {
    flex: 1;
}

.add-section:not(.responsive-add-item-row) .my-textbox {
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
}

.responsive-add-item-row .my-textbox {
    flex: initial !important;
    width: 100% !important;
    min-width: 0 !important;
}

.toggle-icon.filled {
    font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 48;
}

#quick_add_category_widget select {
    width: 400px;
    margin-right: 0px;
}

/*styles for edit popup*/
.edit_popup_title {
    font-size: 20px;
    font-family: var(--global-font-family);
    font-weight: 700;
    font-stretch: normal;
    font-style: normal;
    line-height: 24px;
    letter-spacing: -0.5px;
    text-align: left;
}

.upload-care-control {
    background-color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
}

.start-date, .end-date {
    width: auto;
    min-width: 0px;
}

/* Scope everything to this section so you don't affect other forms */
/* Two columns: narrow label, flexible content */
.edit-popup-section.task-date-widget {
    display: grid;
    grid-template-columns: 140px 1fr; /* <- adjust label width here */
    column-gap: 12px;
    align-items: start;
}

@media (max-width: 480px) {
    .edit-popup-section.task-date-widget {
        grid-template-columns: 1fr; /* single column */
    }

        /* label now sits above widgets */
        .edit-popup-section.task-date-widget .edit-form-label-column {
            grid-column: 1 / -1; /* span full width */
            margin-bottom: 4px;
        }

        /* let entry container take full width below label */
        .edit-popup-section.task-date-widget .entry-form-entry {
            grid-column: 1 / -1;
        }
}

/* prevent inherited full-width/flex growth on the label column */
.edit-popup-section.task-date-widget .edit-form-label-column {
    margin: 0 !important;
    padding: 0 !important;
}

/* the right-hand column stacks rows with tight spacing */
.edit-popup-section.task-date-widget .entry-form-entry {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0; /* allow children to shrink */
}

/* row with date + time */
.edit-popup-section.task-date-widget .popup-form-section-row.align-elements {
    display: flex;
    align-items: center;
    gap: 6px; /* exact spacing between date/time */
}

/* let inputs shrink and avoid theme widths */
.edit-popup-section.task-date-widget .my-textbox, .edit-popup-section.task-date-widget .my-dropdownlist {
    flex: 1 1 0;
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
    box-sizing: border-box;
}

/* generic fit on line row */
/* one tight row for: label | number | up/down | dropdown */
.fit-on-line {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap; /* don’t let items wrap */
    gap: 8px; /* horizontal spacing between items */
}

    /* neutralize any “full width” form-control styles */
    .fit-on-line .my-textbox, .fit-on-line .my-dropdownlist {
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        box-sizing: border-box;
        flex: 0 0 auto; /* don’t stretch unless you want to */
    }

    .fit-on-line .conxus-font {
        flex: 0 0 auto;
    }

    /* small numeric field */
    .fit-on-line .number-picker {
        flex: 0 0 65px; /* pick a width you like (48–72px) */
        text-align: center;
    }

    /* The up/down arrows stack vertically and stay narrow */
    .fit-on-line .popup-form-section-column {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 18px; /* << key: narrow width */
        flex: 0 0 18px; /* prevent stretching */
        line-height: 1;
    }

        /* make the arrow icons sit closer */
        /* prevent highlighting / selection / focus glow on the chevrons */
        .fit-on-line .popup-form-section-column i {
            line-height: 30px; /* tighten vertical spacing */
            padding: 0; /* remove internal spacing */
            /* slight overlap, if needed */
            user-select: none; /* no text selection */
            -webkit-user-select: none; /* Safari */
            -moz-user-select: none; /* Firefox */
            outline: none; /* remove focus outline */
        }

    /* dropdown can be auto width, or give it a min for stability */
    .fit-on-line .interval-picker {
        flex: 0 0 auto; /* or 1 1 auto if you want it to grow */
        min-width: 110px; /* tweak as needed */
    }

    /* in case some upstream row sets space-between or auto margins */
    .fit-on-line > * {
        margin-left: 0 !important;
    }

    .fit-on-line .popup-form-section-column i:focus, .fit-on-line .popup-form-section-column i:active {
        outline: none;
        background: none;
        box-shadow: none;
    }

.custom-recurrence input[type="radio"] {
    width: 30px; /* Adjust as needed */
    height: 30px; /* Adjust as needed */
}

@media (max-width: 480px) {
    .start-date, .end-date {
        width: 120px;
        padding-left: 5px;
        padding-right: 5px;
    }
}

.url-widget:hover, .date-widget:hover {
    background-color: var(--greyscale-grey-06);
}

.url-widget, .date-widget {
    padding: 5px;
}

    .url-widget.collapsed {
        max-height: 100px;
        overflow: hidden;
    }

.popup-form-section-row.actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.date-widget.collapsed {
    max-height: 50px;
    overflow: hidden;
}

    .date-widget.collapsed .popup-form-section-row:first-child {
        display: block;
    }

.color-square-icon {
    font-variation-settings: 'FILL' 1;
    color: #43a047; /* the fill color */
    -webkit-text-stroke: 1px black; /* the border */
}

.popup-form-section-row .feed-checkbox {
    flex-shrink: 0;
    margin-top: 3px; /* fine-tune vertical alignment with text */
}

.popup-form-section-row .collection-object-title {
    flex: 1 1 auto;
    min-width: 0; /* lets long titles wrap instead of overflowing */
}

.pill-readonly {
    background-color: #D4D4D4;
    color: #333333;
    border: 1px solid #B0B0B0;
    border-radius: var(--border-radius-large);
    padding: 4px 12px;
    font-size: 14px;
}

.readonly-field {
    background-color: #F5F5F5 !important;
    border: 1px solid #D0D0D0;
    border-radius: var(--radius); /* or 8px if not using CSS variables */
    padding: 10px 12px;
}

.textarea {
    width: 100%;
    resize: none;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius-small);
    font-size: 14px;
}

@media (max-width: 768px) {
    .has-date-widget .date-widget .start-date {
        width: 100% !important;
        margin-top: 12px !important;
    }

    .has-date-widget .date-widget .end-date {
        width: 43% !important;
        margin-top: 12px !important;
    }

    #add_event_popup .date-widget .start-time {
        width: 28% !important;
    }

    .has-date-widget .date-widget .start-time {
        width: 28% !important;
    }

    #add_event_popup .date-widget .time-duration {
        width: 43% !important;
    }

    .has-date-widget .date-widget .time-duration {
        width: 22% !important;
    }

    .alt-edit-form-label::placeholder {
        font-size: 14px;
    }

    .alt-textbox::placeholder {
        font-size: 14px !important;
        height: 44px !important;
        font-family: Assistant, Arial, sans-serif !important;
        font-weight: 400 !important;
    }

    .alt-edit-form-label::placeholder {
        font-size: 14px;
    }

    .alt-textbox {
        font-size: 18px !important;
        height: 44px !important;
        font-family: Assistant, Arial, sans-serif !important;
        font-weight: 400 !important;
    }

    .alt-edit-form-label {
        font-family: Assistant, Arial, sans-serif !important;
        font-size: 18px !important;
        font-weight: bold !important;
        height: 44px !important;
    }

    .alt-textbox {
        font-size: 18px !important;
        height: 44px !important;
        font-family: Assistant, Arial, sans-serif !important;
        font-weight: 400 !important;
    }

    .url-widget.collapsed {
        max-height: 105px;
        overflow: hidden;
    }

    .date-widget.collapsed {
        max-height: 47px;
        overflow: hidden;
    }

    .recurrence-dropdown {
        width: 45% !important;
    }
}

/* Container alignment */
.responsive-add-item-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

    /* Make all controls equal height and line up visually */
    .responsive-add-item-row input.my-textbox, .responsive-add-item-row button.add-item-button, .responsive-add-item-row .clear-search-button {
        height: 36px;
        display: flex;
        align-items: center;
    }

.color-picker-popover {
    z-index: 999999;
    background: #fff;
    border: 1px solid var(--greyscale-grey-04);
    border-radius: var(--border-radius-small);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    padding: 16px;
    width: auto; /* was 200px */
    min-width: 220px; /* keeps it from ever looking too narrow */
    box-sizing: border-box;
}

.color-picker-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.color-picker-swatch {
    width: 22px;
    height: 22px;
    border-radius: var(--border-radius-small);
    border: 1px solid rgba(0,0,0,0.15);
    cursor: pointer;
    padding: 0;
}

    .color-picker-swatch:hover {
        outline: 2px solid var(--important-button, #4c6b52);
    }

.color-picker-custom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid var(--greyscale-grey-04);
    padding-top: 8px;
}

.color-picker-custom-input {
    width: 40px;
    height: 28px;
    border: none;
    padding: 0;
    cursor: pointer;
}

.color-picker-title {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--greyscale-grey-04);
}


/* ==================================================================
   SEARCH, FILTER AND SORT
   ================================================================== */

.mobile-filter {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;
}

.mobile-filter-widget {
    margin-left: 0px;
}

.filter-widget.checkbox-widget {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding-left: 8px;
}

.filter-widget:not(.checkbox-widget) {
    flex: 1 1 0;
    max-width: 250px;
    min-width: 120px;
    width: 100%;
}

@media (max-width: 600px) {
    .filter-widget.checkbox-widget {
        padding-left: 0;
        flex: 0 0 auto;
        width: auto !important;
        white-space: nowrap;
    }

    .filter-row {
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (min-width: 769px) {
    .filter-widget:not(.checkbox-widget) {
        flex-basis: calc(33.333% - 10px);
    }
}

@media (max-width: 768px) {
    .filter-widget:not(.checkbox-widget) {
        flex-basis: calc(50% - 10px);
        max-width: 150px; /* tighter max for mobile */
    }
}

#favorite_page_filter .tooltip-specific {
    position: relative;
    cursor: pointer;
}

    #favorite_page_filter .tooltip-specific:hover::after {
        content: attr(title);
        position: absolute;
        top: -30px;
        left: 50%;
        transform: translateX(-50%);
        background-color: black;
        color: white;
        padding: 5px;
        border-radius: var(--border-radius-small);
        font-size: 12px;
        white-space: nowrap;
        z-index: 1000;
        opacity: 1;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    #favorite_page_filter .tooltip-specific::after {
        opacity: 0;
        transition: opacity 0.3s ease;
    }

/* anchor for absolute children */
.filter-icon-badge {
    /* already absolute via JS */
    min-width: 1.1rem;
    height: 1.1rem;
    line-height: 1.1rem;
    border-radius: 999px;
    border-color: var(--badge);
    color: var(--badge-font);
    text-align: center;
    font-size: 12px;
    background-color: var(--badge);
    border-radius: 35%;
    border: 1px solid #ddd;
    pointer-events: none; /* clicks go to the button */
}

.reset-filter:hover {
    cursor: pointer;
    color: green;
}

.filter-widget.align-elements {
    gap: 6px;
}

.search-bar-textbox {
    margin: 3px 0 0;
    max-width: 90%;
    padding: 6px 16px;
    border-radius: var(--border-radius-small);
    border: solid 0px var(--greyscale-grey-04);
    margin-top: 0px;
    margin-right: 5px;
    border-left-style: none;
    height: 44px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background-color: var(--greyscale-grey-06);
}

@media (min-width: 481px) {
    .search-bar-textbox.content-page {
        margin-top: 15px;
    }
}

@media (min-width: 600px) {
    .search-bar-textbox {
        flex: 6;
    }
}

@media (max-width: 480px) {
    .search-bar-textbox {
        display: flex;
        flex: 1 0 80% !important;
    }

    .home_search_text {
        display: flex;
        flex: 0 0 65% !important;
    }
}

.filter-menu-icon {
    font-size: 24px !important;
}

    .filter-menu-icon:hover {
        cursor: pointer;
    }

.filter-button-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    height: 62px;
    padding: 10px;
    background-color: var(--greyscale-grey-06);
    border-radius: var(--border-radius-small);
}

@media (max-width: 1300px) {
    .filter-menu-icon {
        font-size: 16px;
    }

    .filter-button-menu {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        width: auto;
        overflow-x: scroll;
        height: 40px;
        padding: 5px;
    }
}

@media (max-width: 480px) {
    .filter-button-menu {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        width: auto;
        overflow-x: scroll;
        height: 40px;
        padding: 5px;
    }
}

.filter-label {
    font-size: 20px;
    font-family: var(--global-font-family);
    font-weight: normal;
    margin-top: 12px;
    margin-left: 10px;
    margin-right: 10px;
}

@media (max-width: 1300px) {
    .filter-label {
        font-size: 16px;
        margin-top: 5px;
    }
}

@media (max-width: 900px) {
    .filter-label {
        font-size: 14px;
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .filter-label {
        display: none;
    }
}

.sort-by-section {
    margin-right: 10px;
    font-size: 20px;
}

@media (max-width: 480px) {
    .sort-by-section {
        margin-right: 10px;
        font-size: 12px;
        margin-top: 20px;
    }
}

.filter-row {
    flex-wrap: wrap !important;
    width: 100%;
}

    .filter-row select, .filter-row input:not([type="checkbox"]), #favorite_location_wrapper {
        flex: 1;
        min-width: 180px;
        max-width: calc(25% - 8px);
        margin-right: 0 !important;
        box-sizing: border-box;
    }

    .filter-row input {
        padding-left: 8px;
    }

    .filter-row .my-textbox:not(.comment-textbox) {
        height: 40px !important;
        margin-top: 5px;
        margin-bottom: 0px;
    }

#favorite_location_wrapper input {
    width: 100%;
    flex: none;
    max-width: 100%;
}

@media (max-width: 600px) {
    .filter-row select, .filter-row input:not([type="checkbox"]), #favorite_location_wrapper {
        max-width: calc(50% - 5px);
        min-width: 0;
        flex: 0 0 calc(50% - 5px);
    }
}

@media (min-width: 600px) and (max-width: 1215px) {
    .search-bar-textbox {
        max-width: 100% !important;
    }
}

/*Sort stuff*/
.sort-wrap {
    position: relative;
    display: inline-block;
}

.sort-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-small);
    border: 0.5px solid var(--color-border-secondary);
    background: none;
    cursor: pointer;
    color: var(--color-text-secondary);
}

    .sort-btn:hover {
        background: var(--color-background-secondary);
    }

    .sort-btn.active {
        background: var(--important-button);
        border-color: #B5D4F4;
        color: var(--important-text);
        border-width: 1.5px;
    }

.tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    right: 0;
    background: #2C2C2A;
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: var(--border-radius-small);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 300;
    min-width: 120px;
}

    .tooltip::after {
        content: '';
        position: absolute;
        top: 100%;
        right: 10px;
        border: 4px solid transparent;
        border-top-color: #2C2C2A;
    }

.sort-wrap:hover .tooltip {
    opacity: 1;
}

.sort-dd {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: var(--color-background-primary);
    border: 0.5px solid var(--color-border-secondary);
    border-radius: var(--border-radius-small);
    min-width: 210px;
    z-index: 200;
    overflow: hidden;
}

    .sort-dd.open {
        display: block;
    }

.sort-custom-list {
    padding: 4px 0;
    background: var(--color-background-primary);
}

.sort-custom-item {
    padding: 10px 14px;
    font-size: 13px;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: background 0.1s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .sort-custom-item:hover {
        background: var(--color-background-secondary);
        color: var(--color-text-primary);
    }

    .sort-custom-item.selected {
        color: #185FA5;
        font-weight: 500;
        background: #E6F1FB;
    }

    .sort-custom-item .chk {
        font-size: 12px;
        color: #185FA5;
        display: none; /* change from visibility:hidden to display:none */
    }

    .sort-custom-item.selected .chk {
        display: inline; /* change from visibility:visible to display:inline */
    }

/* Complete / Select toggle on the "List items" row */
.mode-toggle {
    display: inline-flex;
    padding: 2px;
    border-radius: 6px;
    background-color: color-mix(in srgb, var(--content-panel) 88%, black);
}

    .mode-toggle button {
        border: 0;
        background: transparent;
        padding: 5px 12px;
        border-radius: 5px;
        font-size: 13px;
        color: var(--label);
        opacity: 0.75;
        cursor: pointer;
    }

        .mode-toggle button.active {
            background-color: white;
            font-weight: bold;
            opacity: 1;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
            cursor: default;
        }


/* ==================================================================
   TABS AND MENUS
   ================================================================== */

.horizontal-menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #333333;
}

.horizontal-menu li {
    float: left;
    font-size: medium;
}

    .horizontal-menu li a {
        display: block;
        color: white;
        text-align: center;
        padding: 16px;
        text-decoration: none;
    }

        .horizontal-menu li a:hover {
            background-color: #111111;
        }

.c-horizontal-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0; /* lets it shrink inside a flex parent instead of overflowing it */
    overflow-x: auto; /* scroll sideways when the tabs don't fit */
    overflow-y: hidden;
    scrollbar-width: thin;
    scroll-behavior: smooth;
}

    .c-horizontal-menu.more-right {
        -webkit-mask-image: linear-gradient(to right, black calc(100% - 48px), transparent);
        mask-image: linear-gradient(to right, black calc(100% - 48px), transparent);
    }

    .c-horizontal-menu.more-left {
        -webkit-mask-image: linear-gradient(to left, black calc(100% - 48px), transparent);
        mask-image: linear-gradient(to left, black calc(100% - 48px), transparent);
    }

        .c-horizontal-menu.more-left.more-right {
            -webkit-mask-image: linear-gradient(to right, transparent, black 48px, black calc(100% - 48px), transparent);
            mask-image: linear-gradient(to right, transparent, black 48px, black calc(100% - 48px), transparent);
        }

    .c-horizontal-menu > * {
        flex: 0 0 auto; /* tabs keep their width instead of squeezing */
        white-space: nowrap;
    }

    .c-horizontal-menu.icon-menu {
        height: auto;
        flex-wrap: wrap;
        margin-left: 0px;
        margin-bottom: 32px;
        padding-left: 30px;
        padding-top: 10px;
    }

@media (max-width: 1024px) {
    .c-horizontal-menu.icon-menu {
        padding-left: 10px;
    }
}

@media (max-width: 480px) {
    .c-horizontal-menu {
        overflow-x: scroll;
    }
}

.c-horizontal-menu-button-small.active {
    border-bottom-color: var(--colors-primary);
    border-bottom-style: solid;
    font-weight: bold;
    color: black;
}

.c-horizontal-menu-button-small {
    font-weight: bold;
    padding-top: 5px;
    padding-left: 2px;
    padding-right: 2px;
    font-family: var(--global-font-family);
    font-size: 16px;
    width: auto;
    height: 30px;
    color: var(--greyscale-grey-03);
}

.c-horizontal-menu-button-medium {
    font-weight: bold;
    padding-top: 5px;
    padding-left: 2px;
    padding-right: 2px;
    padding-bottom: 25px;
    font-family: var(--global-font-family);
    border-color: transparent;
    font-size: 20px;
    width: auto;
    height: 30px;
    color: var(--greyscale-grey-03);
}

    .c-horizontal-menu-button-medium:focus {
        outline: none;
    }

    .c-horizontal-menu-button-medium.active {
        border-bottom-color: var(--colors-primary);
        border-bottom-style: solid;
        font-weight: bold;
        color: black;
    }

.dashboard-menu-item {
    padding-top: 5px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 25px;
    font-family: var(--global-font-family);
    border-color: transparent;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    width: auto;
    height: 30px;
    color: var(--icon-menu);
    margin-top: 5px;
    margin-right: 20px;
}

    /*Common breakpoints
320px: A baseline for smaller mobile devices.
375px: Often used for modern smartphones.
768px: A typical size for tablets in portrait mode.
992px: A common point for smaller desktops or tablets in landscape mode.
1200px: A standard width for desktop monitors.
1920px: A breakpoint for very large or high-resolution desktop monitors.*/
    .dashboard-menu-item.small {
        height: 25px;
        margin-right: 20px;
    }

/*These area the tabbed menu items with icon + title* for large monitors*/
.dashboard-icon-menu {
    position: relative; /* badge now measures from the tab itself */
    border-color: transparent;
    background-color: color-mix(in srgb, var(--content-panel) 92%, black);
    text-align: center;
    margin-right: 6px;
    display: flex;
    align-items: center;
    flex-direction: row;
    padding: 15px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    height: 50px !important;
    color: var(--greyscale-grey-02);
    margin-top: 5px;
}

.dashboard-menu-item:focus {
    outline: none;
}

.dashboard-icon-menu .icon-badge {
    top: -8px;
    right: -8px;
    margin-top: 0;
}

.dashboard-menu-item:hover {
    cursor: pointer;
}

.dashboard-menu-item.active {
    font-weight: bold;
    color: var(--button);
    border-bottom: 3px solid var(--alert);
}

/*This is the tabbed menu icon*/
/*this is the icon on the dashboard menus*/
.material-symbols-outlined.dashboard-menu-icon {
    font-size: 22px;
    padding-top: 0px;
    margin-right: 10px;
    display: block;
}

.dashboard-icon-menu.active {
    background-color: var(--content-panel);
    color: black;
    font-weight: 500;
    border-bottom: none; /* modern underline, pick your brand color */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/*This is tabbed menu title*/
.dashboard-icon-title {
    line-height: 1em;
    margin-top: 0px;
    font-weight: bold;
    flex: 1;
    font-family: var(--global-font-family);
    font-size: 18px;
}

@media (max-width: 1320px) {
    .dashboard-icon-menu:not(.keep-title) {
        padding: 6px;
        width: 125px !important;
        margin-right: 20px;
    }

    .dashboard-icon-title {
        font-size: 16px;
    }

    .dashboard-icon-menu .icon-badge {
        right: 15px;
    }
}

@media (max-width: 1180px) {
    .dashboard-icon-menu:not(.keep-title) {
        width: 60px !important;
        height: 50px !important;
    }

    .dashboard-icon-title:not(.keep-title) {
        font-size: 12px;
        display: none;
    }

    .material-symbols-outlined.dashboard-menu-icon:not(.keep-title) {
        font-size: 24px;
        padding-top: 0px;
        flex: 1;
        margin-right: 0px;
    }
}

@media (max-width: 480px) {
    .dashboard-menu-item.small {
        margin-right: 15px;
    }

    .dashboard-icon-menu:not(.keep-title) {
        width: 55px !important;
        height: 45px !important;
        padding-top: 0px;
    }

    .dashboard-icon-menu.keep-title {
        height: 40px !important;
    }

    .dashboard-icon-title:not(.keep-title) {
        font-size: 9px;
    }
}

@media (max-width: 440px) {
    .dashboard-icon-menu:not(.keep-title) {
        width: 48px !important;
        height: 35px !important;
        padding-top: 6px;
        margin-right: 12px;
    }

    .dashboard-icon-menu.keep-title {
        width: 125px !important;
        height: 35px !important;
        padding: 6px;
        margin-right: 20px;
    }

    .dashboard-icon-title.keep-title {
        font-size: 14px;
    }

    .dashboard-icon-menu .icon-badge {
        right: 8px;
    }

    .material-symbols-outlined.dashboard-menu-icon:not(.keep-title) {
        font-size: 20px;
        padding-top: 0px;
        flex: 1;
    }
}

@media (max-width: 395px) {
    .dashboard-icon-menu:not(.keep-title) {
        width: 48px !important;
        height: 35px !important;
        padding-top: 6px;
        margin-right: 12px;
    }

    .dashboard-icon-menu.keep-title {
        width: 125px !important;
        height: 35px !important;
        padding: 6px;
        margin-right: 20px;
    }

    .dashboard-icon-title.keep-title {
        font-size: 14px;
    }

    .dashboard-icon-menu .icon-badge {
        right: 8px;
    }

    .material-symbols-outlined.dashboard-menu-icon:not(.keep-title) {
        font-size: 20px;
        padding-top: 0px;
        flex: 1;
    }
}

@media (max-width: 360px) {
    .dashboard-icon-menu:not(.keep-title) {
        width: 45px !important;
        height: 35px !important;
        padding: 6px;
        margin-right: 12px;
    }
}

.feed-menu-widget {
    width: auto;
}

@media (max-width: 480px) {
    .feed-menu-widget {
        flex: 2;
    }
}

.context-menu-hint {
    color: var(--greyscale-grey-03);
    font-size: 14px;
}

@media (max-width: 480px) {
    .context-menu-hint {
        display: none;
    }
}

.context-menu-item:hover {
    background-color: var(--greyscale-grey-06);
}

.feed-menu-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
    color: var(--important-text);
    cursor: pointer;
}

.feed-menu-icon.filled {
    font-variation-settings: "FILL" 1, "wght" 700, 'GRAD' 0, 'opsz' 48;
}

@media (max-width: 1800px) {
    .feed-menu-label {
        display: none;
    }
}

@media (max-width: 768px) {
    .feed-menu-label {
        display: none;
    }
}

@media (max-width: 480px) {
    .feed-menu-label {
        display: none;
    }
}

.dropdown-menu-item {
    font-size: 20px;
    font-family: var(--global-font-family);
    font-weight: 400;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.4;
    letter-spacing: -0.5px;
    text-align: left;
}

@media (max-width: 480px) {
    .dropdown-menu-item {
        font-size: 16px;
    }
}

.c-horizontal-menu {
    overflow-x: auto;
    scrollbar-width: none;
}

    .c-horizontal-menu::-webkit-scrollbar {
        display: none;
    }

.clipping-dropdown {
    position: relative;
}

/* tabs a guest (access link) can see but not open */
.dashboard-menu-item.access-locked {
    opacity: 0.45;
}


/* ==================================================================
   TAGS AND BADGES
   ================================================================== */

.calendar-badge {
    height: 50px;
    width: 50px;
    text-align: center;
    line-height: 50px; /* same as height */
    border-radius: 50%;
}

@media (max-width: 480px) {
    .calendar-badge {
        height: 30px;
        width: 30px;
        line-height: 30px; /* same as height */
    }
}

.icon-badge-container {
    margin-top: 0px;
    position: relative;
}

.icon-badge {
    background-color: var(--badge);
    border-color: var(--badge);
    font-size: 14px;
    color: var(--badge-font);
    text-align: center;
    width: 25px;
    height: 25px;
    border-radius: 35%;
    line-height: 25px;
    position: absolute; /* changed */
    top: -5px; /* changed */
    left: auto;
    right: -7px;
    margin-top: 5px;
}

    /* a count badge shown inline, next to a label (not on the corner of an icon) */
    .icon-badge.inline-badge {
        position: static;
        display: inline-block;
        margin: 0 0 0 10px;
    }

@media (max-width: 1600px) {
    .icon-badge {
        font-size: 12px;
        width: 20px;
        height: 20px;
        line-height: 20px;
    }
}

@media (max-width: 480px) {
    .icon-badge {
        font-size: 10px;
        width: 15px;
        height: 15px;
        line-height: 15px;
    }
}

.tag-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
}

.title-count {
    background-color: var(--greyscale-grey-06);
    display: block;
    width: 40px;
    height: 40px;
    font-weight: bold;
    padding: 5px 10px 10px 6px;
    border-radius: var(--border-radius-small);
    color: darkblue;
    font-size: 20px;
    margin-left: 10px;
}

@media (max-width: 480px) {
    .title-count {
        font-size: 16px;
        height: 30px;
        width: auto;
        padding: 0px 5px 0px 5px;
    }
}

.tag-count-badge {
    width: auto;
    height: auto;
    border-radius: var(--border-radius-small);
    margin-top: 0;
    margin-left: 10px;
    padding: 3px 10px 5px 10px;
    background-color: white;
    font-weight: bold;
}

@media (max-width: 480px) {
    .tag-count-badge {
        width: 30px;
        height: 30px;
        margin-top: -6px !important;
    }
}

.interest-button {
    width: 156px;
    height: 40px;
    margin: 0 0 12px;
    padding: 8px 10px;
    border-radius: var(--border-radius-large);
    font-weight: bold;
    white-space: nowrap;
    border: solid 1px black;
    color: var(--greyscale-grey-03);
    background-color: var(--typography-white);
}

    .interest-button.small {
        width: 140px;
        height: 30px;
        margin: 0 0 5px;
        padding: 4px 8px;
        font-size: 14px;
        white-space: normal;
        border: none;
        background-color: var(--tag-bg);
        color: var(--typography-white);
    }

.tag-button {
    height: 30px;
    width: auto;
    margin: 0 0 5px;
    margin-right: 20px;
    display: inline-flex;
    line-height: 1;
    margin-top: 10px;
    padding: 0px 8px;
    align-items: center;
    white-space: normal;
    border-radius: var(--border-radius-small);
    border: none;
    background-color: var(--tag-bg);
    color: var(--tag);
}

    .tag-button.category, .tag-button.contributor {
        background-color: var(--button-bar-bg);
        color: white;
        margin-top: 3px;
    }

    .tag-button.member-tag-button {
        margin-right: 10px;
        margin-top: 3px;
        padding: 0px 8px;
    }

@media (max-width: 480px) {
    .tag-button {
        padding: 0px 6px;
    }
}

.tag-button:hover {
    box-shadow: 10px 5px 10px grey;
}

.profile-tag-button {
    width: auto;
    height: 40px;
    padding: 0px 20px 0px 20px;
    border-radius: var(--border-radius-large);
    align-items: center;
    border: none;
    margin-right: 20px;
    margin-top: 20px;
    background-color: var(--tag-bg);
}

    .profile-tag-button:hover {
        box-shadow: 10px 5px 10px grey;
    }

.interest-button-spacer {
    width: 16px;
    height: auto;
    display: inline-block;
}

/* a category tag followed by a tag list: lay all the tags out as one wrapping row */
.popup-form-section-row:has(> .tag-button.category) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

    .popup-form-section-row:has(> .tag-button.category) > .tag-list {
        display: contents !important; /* the box's children join the parent row; !important beats the inline display:flex */
    }

    .popup-form-section-row:has(> .tag-button.category) > .tag-button.category {
        margin-right: 0 !important; /* the gap handles spacing now */
    }

.category-count {
    color: #0b6e7f; /* text color */
    background-color: color-mix(in srgb, currentColor 12%, transparent); /* tint of that same color */
    border-radius: var(--border-radius-small);
    padding: 1px 8px;
    font-size: 12px;
    font-weight: 600;
    display: none;
    font-weight: bold;
    margin-top: 5px;
    margin-bottom: 5px;
    text-align: center;
    line-height: 30px;
}

@media (max-width: 480px) {
    .category-count {
        width: 25px;
        height: 25px;
    }
}

.home-tag-button {
    width: auto;
    margin-right: 10px;
    font-size: 20px;
    font-family: var(--global-font-family);
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.08;
    letter-spacing: -0.5px;
    text-align: left;
    height: 40px;
    margin-top: 10px;
    border-radius: var(--border-radius-small);
    color: var(--greyscale-grey-01);
    box-shadow: 10px 5px 10px grey;
    padding: 20px;
    margin-right: 20px;
}

    .home-tag-button.interest {
        font-size: 18px;
        background-color: var(--tag-bg);
        color: black;
        padding: 10px;
        height: 40px;
        margin-bottom: 10px;
    }

    .home-tag-button.category {
        background-color: white;
        color: black;
        font-size: 20px;
        height: auto;
        width: auto;
    }

    .home-tag-button.a {
        outline: none;
    }

.home-card-badge {
    background-color: var(--badge);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 480px) {
    .home-tag-button.interest {
        font-size: 12px;
        margin-right: 10px;
    }

    .home-tag-button.category {
        font-size: 12px;
        padding: 7px;
        width: 100px;
    }

    .home-card-badge {
        width: 35px;
        height: 35px;
        margin-left: auto;
        margin-right: auto;
    }

    .home-tag-button .icon-button {
        width: 10px;
        height: 10px;
    }
}

/* RSVP label in the guest list for link visitors */
.guest-rsvp {
    margin-left: 10px;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

    .guest-rsvp.coming {
        background-color: #e3f4e6;
        color: #2e7d32;
    }

    .guest-rsvp.maybe {
        background-color: #fff3dc;
        color: #a15c00;
    }

.guest-extra {
    margin-left: 8px;
    font-size: 12px;
    color: var(--label);
    opacity: 0.8;
    white-space: nowrap;
}


/* ==================================================================
   CARDS AND LIST ROWS
   ================================================================== */

.comment-more-link {
    font-weight: bold;
    margin-left: 50px;
}

@media (max-width: 480px) {
    .people-card input[type='checkbox'] {
        margin: 0px !important;
    }

    .list-item-row input[type='checkbox'] {
        width: 30px;
        height: 30px;
        background: white;
        border-radius: 5px;
        border: 2px solid #555;
    }
}

.manage-object-title {
    font-size: 18px;
    font-family: var(--global-font-family);
    font-weight: 600;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.08;
    letter-spacing: var(--global-letter-spacing);
    text-align: left;
}

    .manage-object-title.manage-object-body {
        font-weight: normal;
    }

.manage-object-item {
    padding: 10px;
}

.comment-box1 {
    max-width: 100% !important;
}

@media (max-width: 768px) {
    .comment-box1 {
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .comment-box1 {
        max-width: 100% !important;
    }
}

.feed-ingredients .popup-form-section-row .twitter-typeahead {
    width: 100% !important;
    max-width: 89%;
}

@media (max-width: 1024px) {
    .feed-ingredients .popup-form-section-row .twitter-typeahead {
        max-width: 88%;
    }
}

@media (max-width: 768px) {
    .feed-ingredients .popup-form-section-row .twitter-typeahead {
        max-width: 89%;
    }
}

@media (max-width: 480px) {
    .feed-ingredients .popup-form-section-row .twitter-typeahead {
        max-width: 85%;
    }
}

.feed-comment .quick-add-menu-button {
    background: transparent !important;
}

.comment-user {
    font-family: var(--global-font-family);
    font-size: 16px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.33;
    letter-spacing: normal;
    text-align: left;
    color: var(--greyscale-grey-01);
}

.comment-date {
    font-family: var(--global-font-family);
    font-size: 16px;
    font-weight: normal;
    font-stretch: normal;
    margin-left: 10px;
    font-style: normal;
    line-height: 1.33;
    letter-spacing: normal;
    text-align: left;
    color: var(--greyscale-grey-04);
}

.list-comment {
    font-family: var(--global-font-family);
    font-size: 16px;
    font-weight: normal;
    font-stretch: normal;
    margin-left: 10px;
    font-style: normal;
    line-height: 1.40;
    letter-spacing: normal;
    text-align: left;
    color: var(--greyscale-grey-03);
}

.feed-comment-element {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
}

.feed-daterange {
    font-family: var(--global-font-family);
    font-size: 16px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.33;
    letter-spacing: normal;
    text-align: left;
    color: var(--greyscale-grey-04);
}

.feed-comment-textbox {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
}

.feed-tags {
    font-family: var(--global-font-family);
    font-size: 16px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.33;
    letter-spacing: normal;
    text-align: left;
    color: var(--greyscale-grey-01);
}

.feed-card {
    background-color: var(--card);
}

.comment-text {
    font-family: var(--global-font-family);
    font-size: 16px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.33;
    letter-spacing: normal;
    text-align: left;
    color: var(--greyscale-grey-01);
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-top: 10px;
}

.side-card-title {
    height: auto;
    margin: 0;
    font-family: var(--global-font-family);
    font-size: 24px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.05;
    letter-spacing: -0.5px;
    text-align: left;
    margin-top: 20px;
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .side-card-title {
        font-size: 16px;
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

.log-row {
    font-size: 16px;
    padding-left: 5px;
}

.contact-row {
    margin-bottom: 5px;
}

@media (max-width: 480px) {
    .log-row {
        font-size: 10px;
    }
}

.list-comment.item-time {
    margin-right: 10px;
    margin-left: 10px;
}

@media (max-width: 480px) {
    .list-comment.item-time {
        margin-right: 5px;
        margin-left: 0px;
    }
}

.category-icon {
    color: blue;
    font-size: 24px;
    margin-left: 12px;
    margin-top: 12px;
}

@media (max-width: 480px) {
    .category-icon {
        font-size: 12px;
        margin-left: 5px;
        margin-top: 5px;
    }
}

.list-header {
    font-family: var(--global-font-family);
    color: var(--label);
}

.list-count {
    font-family: var(--global-font-family);
    color: var(--label);
}

@media (max-width: 480px) {
    .material-symbols-outlined.feed-context-menu {
        margin-right: -9px !important;
    }
}

.selection-card {
    background-color: var(--card);
}

.selection-list {
    align-items: center;
}

    .selection-list.active {
        background-color: color-mix(in srgb, var(--content-panel) 86%, black) !important;
        cursor: pointer;
    }

    .selection-list:hover {
        background-color: color-mix(in srgb, var(--content-panel) 92%, black) !important;
        cursor: pointer;
    }

.title-icon {
    margin-right: 10px;
    display: inline-flex !important;
    vertical-align: text-bottom;
}

.title-text {
    flex: 0 0 auto !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.title-text-content {
    display: block; /* ← REQUIRED */
}

.title-text.home-card-title {
    font-weight: 500;
}

.title-text.truncated {
    width: 216px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .title-text.truncated.truncate-icon {
        width: 200px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 480px) {
    .title-icon {
        margin-right: 5px;
    }

        .title-icon.large {
            margin-right: 5px;
        }

    .title-text.truncated {
        width: 163px;
    }

        .title-text.truncated.truncate-icon {
            width: 102px;
        }

    .title-text.home-card-title {
        margin-top: 0px;
    }
}

@media (max-width: 768px) {
    .title-text {
        margin-top: 0px
    }

        .title-text.truncated {
            width: 140px;
        }

            .title-text.truncated.truncate-icon {
                width: 102px;
            }
}

.feed-body.community-description {
    font-size: 14px;
    line-height: normal;
}

.navigation-card-title.truncated {
    width: 216px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 480px) {
    .navigation-card-title.truncated {
        width: 163px !important;
    }
}

.home-card {
    width: 195px;
    height: 140px;
    border-radius: var(--border-radius-small);
    margin-left: 0px;
    margin-bottom: 24px;
    box-shadow: 1px 3px 15px -4px rgba(17, 17, 15, 0.12);
    margin-right: 24px;
    background-color: #FFF8BC;
    flex-shrink: 0;
    padding: 10px;
}

.home-card-select {
    width: auto;
    min-width: 150px;
}

.grid-metadata {
    color: #888888;
    font-size: 12px;
}

.home-card-title {
    font-size: 24px;
}

.home-card-icon {
    font-size: 24px;
}

.home-card:hover {
    cursor: pointer;
}

.home-card:focus {
    outline: none;
}

.home-card:active {
    transform: translateY(4px);
}

@media (max-width: 1440) {
    .home-card {
        width: 175px;
        height: 175px;
    }

    .home-card-title {
        font-size: 18px;
        margin-top: 0px;
        line-height: 14px;
    }

    .home-card-icon {
        font-size: 18px;
    }
}

@media (max-width: 1280) {
    .home-card {
        width: 150px;
        height: 150px;
    }

    .home-card-title {
        font-size: 16px;
        margin-top: 0px;
        line-height: 14px;
    }

    .home-card-icon {
        font-size: 16px;
    }
}

@media (max-width: 1024) {
    .home-card {
        width: 140px;
        height: 140px;
    }

    .home-card-title {
        font-size: 14px;
        margin-top: 0px;
        line-height: 14px;
    }

    .home-card-icon {
        font-size: 16px;
    }
}

@media (max-width: 768) {
    .home-card {
        width: 125px;
        height: 125px;
    }

    .home-card-title {
        font-size: 12px;
        margin-top: 0px;
        line-height: 14px;
    }

    .home-card-icon {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .home-card {
        width: 94px;
        height: 94px;
    }

    .home-card-title {
        font-size: 8px;
        margin-top: 0px;
        line-height: 14px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .home-card-icon {
        font-size: 24px;
    }
}

@media (max-width: 320px) {
    .home-card {
        width: 135px;
        height: 135px;
    }

    .home-card-title {
        font-size: 13px;
        margin-top: 0px;
        line-height: 14px;
    }

    .home-card-icon {
        font-size: 24px;
    }
}

.home-card a:hover {
    text-decoration: none !important;
}

.home-card-body {
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    padding: 5px;
    background-color: var(--typography-white);
}

.home-card-image-div {
    width: 80px;
    height: 80px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
}

.home-card-image {
    height: 100%;
    width: 100%;
    display: block;
    object-fit: cover;
    margin: auto;
}

.home-card-thumbnail {
    display: none;
}

@media (max-width: 1200px) {
    .home-card-thumbnail {
        display: block;
    }
}

@media (max-width: 480px) {
    .home-card-thumbnail {
        display: block;
    }
}

.home-card-top {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    height: 120px;
}

@media (max-width: 1200px) {
    .home-card-top {
        display: none;
    }
}

@media (max-width: 480px) {
    .home-card-top {
        display: none;
    }
}

.card-category {
    font-size: 12px;
    font-family: var(--global-font-family);
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.08;
    letter-spacing: -0.5px;
    text-align: left;
    color: var(--greyscale-grey-03);
    margin-bottom: 5px;
}

.card-contributor {
    font-size: 12px;
    font-family: var(--global-font-family);
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.08;
    letter-spacing: -0.5px;
    text-align: left;
}

@media (max-width: 480px) {
    .card-contributor {
        font-size: 12px;
    }
}

.explore-card-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 30px;
}

@media (max-width: 1400px) {
    .explore-card-container {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        width: 100%;
        overflow-x: scroll;
        overflow-y: hidden;
        padding: 0 5px 0 5px;
    }
}

@media (max-width: 768px) {
    .explore-card-container {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        width: 100%;
        overflow-x: scroll;
        overflow-y: hidden;
        padding: 0 5px 0 5px;
    }
}

@media (max-width: 480px) {
    .explore-card-container {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        width: 100%;
        overflow-x: scroll;
        overflow-y: hidden;
        padding: 0 5px 0 5px
    }
}

.explore-card-container.medium {
    width: 40%;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .explore-card-container.medium {
        width: 100%;
    }
}

.menu {
    width: 328px;
    height: 568px;
    margin: 8px 16px 0;
}

.description {
    width: 328px;
    height: 256px;
    padding: 0 0 78px;
}

@media (max-width: 480px) {
    .description {
        width: 328px;
        height: auto;
        padding: 0 0 78px;
    }
}

.add-new-card {
    margin-left: 0px;
}

.shared-by-text {
    font-size: 16px;
    font-family: var(--global-font-family);
    font-stretch: normal;
    font-style: normal;
    line-height: 1.08;
    letter-spacing: -0.5px;
    text-align: left;
}

@media (max-width: 480px) {
    .shared-by-text {
        font-size: 12px;
    }

    .list-title {
        font-size: 16px;
    }
}

.grid-title {
    font-size: 30px;
    font-family: var(--global-font-family);
    font-weight: 700;
    font-stretch: normal;
    font-style: normal;
    letter-spacing: -0.5px;
    text-align: left;
    line-height: 50%;
}

@media (max-width: 480px) {
    .grid-title {
        font-size: 24px;
    }
}

.feed-title {
    font-weight: 600;
}

    .feed-title.search {
        font-size: 18px;
    }

    .feed-title .a {
        color: black;
    }

@media (max-width: 480px) {
    .feed-title.search {
        font-size: 14px;
    }
}

.navigation-card-title {
    font-size: 20px;
    font-family: var(--global-font-family);
    font-weight: 700;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.08;
    letter-spacing: -0.5px;
    text-align: left;
}

.card-title {
    font-weight: bold;
}

@media (max-width: 480px) {
    .navigation-card-title {
        font-size: 14px;
        padding: 0;
    }
}

.list-binding {
    width: 800px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

@media (max-width: 480px) {
    .list-binding {
        width: 100%;
        height: 30px;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }
}

.notification-item {
    background-color: var(--typography-white);
    width: 100%;
    padding: 10px;
}

    .notification-item:hover {
        background-color: var(--greyscale-grey-06);
    }

.feed-item {
    left: 0;
    right: 0;
    padding: 10px;
    width: 100%;
    border-radius: var(--border-radius-small);
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 5px;
}

    .feed-item.list-item {
        padding: 0px;
        padding-top: 10px;
        margin-left: 0px;
        margin-right: 0px;
    }

    .feed-item.journal {
        box-shadow: none;
        margin-bottom: 0px;
        border-radius: 0px;
        padding: 15px;
    }

    .feed-item.feed-card {
        margin-bottom: 24px;
        box-shadow: 0 2px 8px color-mix(in srgb, var(--card) 40%, rgb(0 0 0 / 0.35));
        border: 0;
    }

@media (max-width: 480px) {
    .feed-item.journal {
        padding: 0px;
    }
}

.people-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

.person-card {
    width: 180px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

    /* Wrapper for image + overlay */
    .person-card .image-wrapper {
        position: relative;
        width: 100%;
    }

    /* Image */
    .person-card .photo {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: var(--border-radius-small);
        margin-bottom: 6px;
    }

    /* Overlay controls (Pinterest style) */
    .person-card .overlay-controls {
        position: absolute;
        top: 6px;
        right: 6px;
        display: flex;
        gap: 6px;
        padding: 4px 6px;
        border-radius: var(--border-radius-large);
        background: rgba(0,0,0,0.45);
        backdrop-filter: blur(4px);
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .person-card:hover .overlay-controls {
        opacity: 1;
    }

    /* checkbox */
    .person-card .overlay-controls .feed-checkbox {
        width: 18px;
        height: 18px;
        accent-color: white;
    }

    /* menu icon */
    .person-card .overlay-controls .feed-context-menu {
        color: white;
        font-size: 20px;
        cursor: pointer;
    }

    /* This makes the overlay visible when the checkbox is checked */
    .person-card .overlay-controls:has(.feed-checkbox:checked) {
        opacity: 1 !important;
    }

    /* name */
    /* Tighten person-card name + interests block */
    .person-card .name {
        font-size: 16px;
        font-weight: 600;
        color: #222;
        line-height: 1.2;
        margin-top: 6px;
        margin-bottom: 0;
    }

    /* interests */
    /* Interest line closer to name */
    .person-card .interests {
        font-size: 13px;
        font-weight: 400;
        color: #666;
        margin-top: 2px !important;
        line-height: 1.2;
    }

@media (max-width: 600px) {
    .people-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        column-gap: 12px;
        row-gap: 20px;
        padding: 0 10px;
    }

        .people-grid .person-card {
            width: calc(50% - 12px); /* two equal-width columns */
            margin: 0;
        }

            /* image ratio adjustment for mobile */
            .people-grid .person-card .photo {
                height: 160px; /* smaller, consistent height */
                width: 100%;
                border-radius: var(--border-radius-small);
                object-fit: cover;
            }

            /* Reduce name spacing on mobile */
            .people-grid .person-card .name {
                font-size: 15px;
                font-weight: 600;
                margin-top: 6px;
            }

            /* Overlay tweaks for mobile */
            .people-grid .person-card .overlay-controls {
                top: 6px;
                right: 6px;
                padding: 4px 6px;
            }

    .person-card .interests {
        font-size: 12px;
        font-weight: 400;
        color: #777;
    }
}

/* These are the styles for people cards that include photo, name, and interests*/
.people-card {
    width: 265px;
    height: auto;
    text-align: center;
    margin-right: 24px;
    margin-bottom: 24px;
    box-shadow: 5px 10px 8px 5px lightgray;
    border: 0;
}

    .people-card:hover {
        cursor: pointer;
    }

@media (max-width: 570px) {
    .people-card {
        width: 160px;
        height: auto;
    }
}

@media (max-width: 480px) {
    .people-card {
        width: 175px;
        height: auto;
    }
}

@media (max-width: 390px) {
    .people-card {
        width: 160px;
        height: auto;
    }
}

@media (min-width: 480px) and (max-width: 570px) {
    .people-card {
        width: 190px !important;
        height: auto;
    }
}

@media (max-width: 480px) {
    .feed-item {
        margin-left: 5px;
        margin-right: 5px;
        margin-top: 5px;
    }

    .card {
        flex: 0 0 auto;
        max-width: 100%;
        max-height: 300px;
    }
}

.feed-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-small);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

    .feed-avatar:hover {
        cursor: pointer;
        transform: scale(1.05);
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
    }

.feed-item:hover {
    cursor: pointer;
}

.feed-avatar.small {
    width: 30px;
    height: 30px;
}

@media (max-width: 480px) {
    .feed-avatar {
        width: 30px;
        height: 30px;
    }
}

.feed-attachment {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.result-item {
    padding: 10px;
    width: 80%;
}

@media (max-width: 480px) {
    .result-item {
        margin-left: 5px;
        margin-right: 5px;
        width: 100%;
    }
}

.feed-category {
    font-size: 14px;
    font-family: var(--global-font-family);
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.08;
    letter-spacing: -0.5px;
    text-align: left;
}

.entry-category {
    font-size: 12px;
    font-family: var(--global-font-family);
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.08;
    letter-spacing: -0.5px;
    text-align: left;
    color: var(--greyscale-grey-03);
    margin-left: 10px;
    margin-top: 8px;
}

@media (max-width: 480px) {
    .entry-category {
        font-size: 12px;
        margin-left: 5px;
        margin-top: 3px;
    }
}

.feed-context-menu:hover {
    cursor: pointer;
}

.feed-contributor.navigation {
    font-size: 16px;
}

.feed-owner {
    width: auto;
    margin-right: 10px;
    margin-top: 3px;
    display: block;
}

@media (max-width: 480px) {
    .feed-contributor {
        display: none;
        margin-top: 5px;
        margin-bottom: 0px;
    }

    .feed-owner {
        display: none;
        margin-right: 0px;
    }

    .feed-category {
        display: block;
        font-size: 12px;
        margin-top: 5px;
    }
}

.feed-thumbnail + .checkbox-text {
    flex: 1;
}

.grid-title-details {
    font-size: 20px;
    font-family: var(--global-font-family);
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.08;
    letter-spacing: -0.5px;
    text-align: left;
    color: var(--greyscale-grey-02);
    margin-top: 10px;
    margin-bottom: 10px;
}

@media (max-width: 480px) {
    .grid-title-details {
        font-size: 16px;
    }
}

.feed-date {
    color: var(--greyscale-grey-02);
}

@media (max-width: 480px) {
    .feed-body.card-body {
        font-size: 12px;
        padding: 0 5px;
        line-height: 14px;
    }
}

.read-more-link {
    color: var(--link);
}

    .read-more-link:hover {
        cursor: pointer;
    }

.home-card-anchor:hover {
    outline: none;
}

.relationship-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    column-gap: 12px;
    align-items: start;
}

.relationship-browser-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    column-gap: 12px;
    align-items: start;
}

.relationship-mapped {
    min-width: 0; /* allows wrapping inside grid */
}

.relationship-type {
    white-space: nowrap;
    color: var(--label-muted);
}

.list-item-row {
    align-items: center;
}

@media (max-width: 480px) {
    .list-item-row {
        margin-bottom: 5px;
    }
}

.truncated-description-class {
    color: #555;
    font-size: 0.85rem;
    line-height: 1.3;
}

.list-details-card {
    background-color: white;
    border-radius: var(--border-radius-small);
    box-shadow: 0px 3px 15px -4px rgba(17, 17, 15, 0.12);
    width: 280px;
    padding: 10px;
    margin-bottom: 24px;
    margin-left: 24px;
    height: 200px;
}

    .list-details-card:hover {
        background-color: var(--greyscale-grey-06);
        color: black;
    }

@media (max-width: 1200px) {
    .list-details-card {
        padding: 5px;
        flex-shrink: 0;
        width: 180px;
        margin-left: 16px;
    }
}

@media (max-width: 768px) {
    .list-details-card {
        padding: 5px;
        flex-shrink: 0;
        width: 175px;
        margin-left: 10px;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .list-details-card {
        padding: 5px;
        flex-shrink: 0;
        width: 170px;
        margin-left: 10px;
        margin-bottom: 16px;
    }
}

.category-header {
    font-weight: bold;
    font-size: 28px;
    align-items: center;
}

@media (max-width: 480px) {
    .category-header {
        font-size: 20px;
    }
}

.category-header:hover {
    cursor: pointer;
}

.category-expander {
    margin-right: 10px;
}

/* list header: "4 members · 53 not yet joined" */
.people-header {
    gap: 6px;
    display: flex;
    flex-wrap: wrap; /* the detail drops to a second line on narrow screens */
    align-items: baseline;
    column-gap: 6px;
    row-gap: 2px;
    margin: 12px 0 8px;
}

.people-header-main {
    font-size: 16px;
    font-weight: 600;
    color: #1f2d31; /* dark, so it doesn't compete with the teal title */
}

.people-header-sub {
    font-size: 13px;
    font-weight: 400;
    color: #5d6e72; /* muted grey; passes contrast on white */
}

.list-detail {
    font-size: 14px;
    font-family: var(--global-font-family);
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.08;
    letter-spacing: -0.5px;
    text-align: left;
    color: var(--greyscale-grey-02);
    margin-top: 10px;
    margin-bottom: 10px;
}

@media (max-width: 1200px) {
    .list-detail {
        padding: 0px;
        font-size: 14px;
    }
}

@media (min-width: 600px) and (max-width: 1215px) {
    .material-symbols-outlined.feed-context-menu {
        margin-right: -9px !important;
    }

    .grid-view .material-symbols-outlined.feed-context-menu {
        margin-top: -150px !important;
    }

    .grid-view input[type='checkbox'] {
        margin-top: -150px !important;
    }
}

.people-header-sub:not(:empty)::before {
    content: "·";
    margin-right: 6px;
}

.people-header-sub:empty {
    display: none;
}


/* ==================================================================
   IMAGES AND AVATARS
   ================================================================== */

.icon-circle {
    margin-left: auto;
    margin-right: auto;
    background-color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

    .icon-circle.small {
        width: 30px;
        height: 30px;
    }

@media (max-width: 1200px) {
    .icon-circle {
        width: 25px;
        height: 25px;
        margin-bottom: 5px;
    }

        .icon-circle.small {
            width: 20px;
            height: 20px;
        }
}

.photo-container {
    width: 80%;
    margin: auto;
}

.search-photo-container {
    display: flex; /* activate flexbox */
    flex-wrap: wrap; /* allow wrapping to next row */
    gap: 10px; /* space between photos */
    align-items: flex-start; /* keep items top-aligned */
}

    .search-photo-container img {
        width: 300px;
        height: auto;
        border-radius: var(--border-radius-small);
        display: block; /* removes extra inline spacing */
    }

.photo-caption.search-photo {
    position: relative;
    bottom: 0;
    width: 300px;
    background-color: rgba(0, 0, 0, 0.6);
    font-size: .8rem;
    padding-left: 10px;
    color: white;
    text-align: left;
    box-sizing: border-box;
}

.search-photo-title {
    width: 300px;
    margin-bottom: 5px;
    margin-top: 10px;
    font-weight: 500;
    cursor: pointer;
}

@media (max-width: 480px) {
    .photo-container {
        width: 100%;
    }

    .search-photo-container img {
        width: 150px;
    }

    .search-photo-title {
        width: 150px;
    }

    .photo-caption.search-photo {
        font-size: .6rem;
        width: 150px;
    }
}

.header-photo {
    width: 100%;
    height: 250px;
    margin-top: 0;
    position: relative;
    object-fit: cover;
}

.sample-photo {
    width: 100%;
    height: auto;
    margin-top: 0;
    position: relative;
    object-fit: cover;
}

@media (max-width: 480px) {
    .header-photo {
        height: 100px;
    }
}

.additional-photo {
    width: 100%;
    height: auto;
}

    .additional-photo.thumbnail {
        width: auto;
        height: 200px;
        padding: 10px;
    }

.additional-photo-caption {
    width: auto;
    text-align: center;
}

.image-container {
    position: relative;
    display: inline-block;
}

.carousel-image-container {
    position: relative;
    display: inline-block;
}

.image-container img {
    display: block;
    width: 300px;
    height: auto;
    border-radius: var(--border-radius-small);
}

.carousel-image-container .image-edit-icon {
    color: white;
    position: absolute;
    top: auto;
    right: auto;
    bottom: 0px;
    left: 0px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 0px !important;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-edit-icon {
    color: white;
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 4px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.people-card-photo {
    width: 175px;
    height: 175px;
    padding: 0px 10px 10px 10px;
}

.people-card-photo-caption {
    width: 215px;
    text-align: center;
}

@media (max-width: 570px) {
    .additional-photo.thumbnail {
        width: 105px !important;
        height: 105px !important;
        padding: 3px;
    }

    .people-card-photo {
        width: 115px;
        height: 115px;
        padding: 10px 10px 10px 10px;
    }

    .people-card-photo-caption {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .additional-photo.thumbnail {
        width: 100px !important;
        height: 100px !important;
        padding: 2px;
    }

    .people-card-photo {
        width: 115px;
        height: 115px;
        padding: 10px 10px 10px 10px;
    }

    .people-card-photo-caption {
        width: 150px;
    }
}

@media (max-width: 390px) {
    .people-card-photo {
        width: 100px;
        height: 100px;
        padding: 0px 5px 5px 5px;
    }

    .people-card-photo-caption {
        width: 120px;
    }
}

@media (max-width: 768px) {
    .image-container img {
        display: block;
        width: 250px;
        height: auto;
        border-radius: var(--border-radius-small);
    }
}

.profile-avatar {
    width: 170px;
    height: 170px;
    margin-top: 6px;
    border-radius: var(--border-radius-small);
}

    .profile-avatar:hover {
        cursor: pointer;
    }

@media (max-width: 480px) {
    .profile-avatar {
        width: 120px;
        height: 120px;
        margin-top: 4px;
    }
}

@media (max-width: 384px) {
    .profile-avatar {
        width: 110px;
        height: 110px;
        margin-top: 4px;
    }
}

@media (max-width: 350px) {
    .profile-avatar {
        width: 100px;
        height: 100px;
        margin-top: 4px;
    }
}

.photo-meta {
    text-align: center;
    padding: 10px;
    background: #f9f9f9;
    border-top: 1px solid #ddd;
}

    .photo-meta
    .journal-entry-date, .journal-entry-location, .journal-entry-comment {
        font-size: 1rem;
    }

    .photo-meta .journal-entry-date {
        font-weight: bold;
        color: #333;
        line-height: 0 !important;
    }

    .photo-meta .journal-entry-location {
        color: #555;
        font-style: italic;
    }

    .photo-meta .journal-entry-comment {
        color: #666;
    }


/* ==================================================================
   FEEDBACK: SNACKBAR, CALLOUTS, TUTORIAL, MESSAGES
   ================================================================== */

.carousel-caption {
    position: relative;
    left: 0;
    top: 0;
}

.carousel.tutorial {
    width: 95%;
    height: 95%;
}

@media (max-width: 480px) {
    .carousel.tutorial {
        width: 95%;
        height: 95%;
    }
}

.snackbar {
    text-align: center !important;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    background-color: #C7DDF2;
    color: #003C71; /* ConXus dark blue */
    padding: 12px 28px;
    border-radius: var(--border-radius-small);
    border: 1px solid #A3C4E3;
    font-size: 15px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    opacity: 0;
    transition: opacity .25s ease, top .25s cubic-bezier(.33,1,.68,1);
    top: -60px;
}

@media (min-width: 900px) {
    .snackbar {
        font-size: 17px;
        padding: 18px 34px;
        max-width: 420px; /* wider = looks bigger */
        min-width: 300px; /* ensures consistent feel */
        border-width: 1.5px; /* slightly stronger */
        box-shadow: 0 6px 18px rgba(0,0,0,0.18);
        border-radius: var(--border-radius-small);
    }
}

@media (max-width: 480px) {
    .snackbar {
        font-size: 16px;
        border: 1px solid #AFCDE6;
        padding: 12px 20px;
        top: 60px;
        width: calc(100% - 40px); /* 20px margin on each side */
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
}

/* The snackbar - position it at the bottom and in the middle of the screen */
/* Hidden by default. Visible on click */
/* Set a default minimum width */
/* Divide value of min-width by 2 */
/* Black background color */
/* White text color */
/* Centered text */
/* Rounded borders */
/* Padding */
/* Sit on top of the screen */
/* Add a z-index if needed */
/* Center the snackbar */
/* 30px from the bottom */
/* Show the snackbar when clicking on a button (class added with JavaScript) */
.snackbar.show {
    visibility: visible; /* Show the snackbar */
    top: 40px; /* final position */
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
    However, delay the fade out process for 2.5 seconds */
}

.empty-list-message {
    font-size: 20px;
}

@media (max-width: 481px) {
    .empty-list-message {
        font-size: 16px;
    }
}

/* Callout styles*/
div.callout {
    width: 300px;
    float: left;
    background-color: var(--colors-primary);
    background-image: -moz-linear-gradient(top, var(--colors-primary), var(--colors-primary));
    position: relative;
    color: #ccc;
    padding: 10px;
    border-radius: var(--border-radius-small);
    box-shadow: 0px 0px 20px #999;
    margin: 25px;
    min-height: 50px;
    border: 1px solid #333;
    text-shadow: 0 0 1px #000;
}

.callout::before {
    content: "";
    width: 0px;
    height: 0px;
    border: 1em solid transparent;
    position: absolute;
}

.callout.top::before {
    left: 45%;
    bottom: -25px;
    border-top: 10px solid var(--colors-primary);
}

.callout.bottom::before {
    left: 45%;
    top: -25px;
    border-bottom: 10px solid var(--colors-primary);
}

.callout.left::before {
    right: -25px;
    top: 40%;
    border-left: 10px solid var(--colors-primary);
}

.callout.right::before {
    left: -25px;
    top: 40%;
    border-right: 10px solid var(--colors-primary);
}

.callout.top-left::before {
    left: 7px;
    bottom: -25px;
    border-top: 10px solid var(--colors-primary);
}

.callout.top-right::before {
    right: 7px;
    bottom: -25px;
    border-top: 10px solid var(--colors-primary);
}

.callout.bottom-right::before {
    right: 7px;
    top: -25px;
    border-bottom: 10px solid var(--colors-primary);
}

.callout.bottom-left::before {
    left: 7px;
    top: -25px;
    border-bottom: 10px solid var(--colors-primary);
}

.error-message {
    font-family: var(--global-font-family);
    margin-right: 30px;
    margin-top: 2px;
    font-size: 18px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: -0.5px;
    color: var(--alert);
}

.tutorial {
    width: 300px;
}

.tutorial-content {
    padding: 20px;
}

.tutorial-footer {
    margin-top: 10px;
    padding: 10px;
}

@media (max-width: 480px) {
    .tutorial {
        width: 200px;
    }

    .tutorial-content {
        padding: 10px;
        font-size: 14px
    }

    .tutorial-footer {
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .carousel-control-prev-icon, .carousel-control-next-icon {
        display: none !important;
    }
}
