/*
 * pages.css - Rules that only apply to one page or feature.
 *
 * Sections:
 *   LANDING AND LOGIN
 *   HOME
 *   JOURNAL
 *   HABITS
 *   RECIPES AND CLIPPINGS
 *   HEALTH RECORDS
 *   CALENDAR
 *   EVENTS
 *   COMMUNITY
 *   PEOPLE AND JOBS
 *   PROFILE
 *   ADMIN
 *   SEARCH RESULTS
 *   FAQ
 *   PRINT (INACTIVE: THE STYLESHEETS LOAD WITH MEDIA="SCREEN")
 */

/* ==================================================================
   LANDING AND LOGIN
   ================================================================== */

.landing-page {
    display: flex;
    flex-direction: column;
    width: 330px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    padding: 16px;
}

@media (max-width: 768px) {
    .landing-page-image-container img {
        max-width: 180px; /* smaller logo for mobile */
        margin-bottom: 20px;
    }
}

/* If you still see it, overlap the image by 1px */
.landing-page-image-container img {
    width: calc(100% + 2px);
    margin-left: -1px;
}

.landing-page-image-container {
    width: clamp(140px, 18vw, 240px); /* <= pick your max here */
    height: auto;
    flex: 0 0 auto;
    display: flex;
    align-self: center;
    align-items: center; /* vertical center */
    justify-content: center; /* horizontal center */
    margin: 0 auto; /* <-- this centers the entire container in its parent */
}

.landing-logo {
    width: 100% !important;
    height: auto !important;
    max-width: 240px !important; /* ensures hard cap */
    display: block;
}

@media (max-width: 480px) {
    #landing_page_content1.my-landing-page {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 12px 16px 0;
        gap: 10px;
    }

    /* tighten headline */
    #landing_page_content1 .conxus-font.large {
        font-size: 1rem;
        line-height: 1.4;
    }

    /* pull carousel up */
    .cx-carousel {
        margin-top: 8px !important;
    }
}

/* ===== Carousel Shell ===== */
.cx-carousel {
    width: 100%;
    overflow: hidden; /* hides scrollbar area */
    position: relative;
}

/* ===== Scroll Track ===== */
/* ===== Cards ===== */
.cx-track {
    display: flex;
    gap: var(--cx-gap);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* hides Firefox scrollbar */
    padding: 8px 2px 12px;
    padding-left: 0;
    padding-right: 0; /* keep your top/bottom padding if you like */
}

    /* hide scrollbars visually but keep scroll behavior */
    .cx-track::-webkit-scrollbar {
        display: none;
    }

.cx-card {
    background-color: var(--card);
    border-radius: var(--cx-radius);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    padding: 14px 14px 16px;
    scroll-snap-align: start;
    flex: 0 0 calc(100% - var(--cx-peek)); /* 1 + peek on mobile */
    min-width: 240px;
}

.cx-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: var(--border-radius-small);
    background: #e8f1f9; /* light brand tint */
    margin-bottom: 10px;
    color: var(--button);
}

    .cx-icon svg {
        fill: var(--button);
    }

.cx-title {
    margin: 0 0 6px;
    font: 700 1rem/1.3 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color: var(--button);
}

.cx-desc {
    margin: 0;
    color: var(--button);
    font: 400 0.95rem/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* ===== Controls ===== */
.cx-controls {
    display: none; /* shown via media query */
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

    .cx-controls button {
        border: 0;
        background-color: var(--button);
        color: white;
        border-radius: var(--border-radius-small);
        line-height: 50px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        cursor: pointer;
        font-size: 1.2rem;
    }

        .cx-controls button:focus-visible {
            outline: 2px solid #005BA5;
            outline-offset: 2px;
        }

@media (min-width: 640px) {
    /* show controls (desktop/tablet) */
    .cx-controls {
        display: flex !important;
    }

    /* show ~3 cards */
    .cx-card {
        flex: 0 0 calc((100% - var(--cx-gap) * 2) / 3);
    }
}

@media (min-width: 1024px) {
    /* show ~4 cards */
    .cx-card {
        flex: 0 0 calc((100% - var(--cx-gap) * 3) / 4);
    }
}

@media (min-width: 1280px) {
    /* show ~5 cards */
    .cx-card {
        flex: 0 0 calc((100% - var(--cx-gap) * 4) / 5);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .cx-track {
        scroll-behavior: smooth;
    }
}

.landing-page-content {
    width: 328px;
    height: 608px;
    padding: 24px 0 7px;
}

.landing-page-default {
    width: 100%;
    height: 3238px;
    background-color: var(--default-bg);
}

.landing-page-blocks {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;
}

.add-new-interest-title {
    font-size: 18px;
}

@media (max-width: 480px) {
    .add-new-interest-title {
        font-size: 12px;
    }
}

.landing-page-font {
    font-weight: bold;
    font-family: var(--global-font-family);
    color: var(--label);
}

.landing-page-subtitle {
    width: 312px;
    height: 52px;
    margin: 16px 0 0;
    font-family: var(--global-font-family);
    font-size: 24px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.08;
    letter-spacing: -0.5px;
    text-align: left;
}

    .landing-page-subtitle.small {
        font-size: 14px;
    }

#login_error_message {
    font-family: var(--global-font-family);
    font-size: 14px;
    font-weight: normal;
    margin-top: 5px;
    width: 100%;
    line-height: 1.5;
    margin-right: 30px;
    letter-spacing: -0.5px;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px 15px;
    border-radius: 12px;
    display: none;
}

.landing-page-link {
    font-weight: bold;
    color: var(--link);
}

    .landing-page-link:hover {
        cursor: pointer;
    }

.landing-page-link-small {
    width: 328px;
    height: 16px;
    margin: 8px 0 0;
    font-family: var(--global-font-family);
    font-size: 12px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.33;
    letter-spacing: 0.5px;
    text-align: left;
    color: var(--link);
}


/* ==================================================================
   HOME
   ================================================================== */

.home-habit-container {
    width: 800px;
}

@media (max-width: 480px) {
    .home-habit-container {
        width: auto;
    }
}

@media (max-width: 768px) {
    #home_upcoming_content {
        padding-top: 10px !important;
    }
}

#home_habit_content .content-section {
    width: 100%;
    overflow: hidden;
}

#today_header {
    margin-top: 20px;
    padding-left: 10px !important;
    margin-bottom: 20px !important;
    width: 100%;
    margin-left: 0px !important
}

.dashboard-title {
    height: auto;
    margin: 0;
    font-family: var(--global-font-family);
    font-size: 32px;
    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) {
    .dashboard-title {
        font-size: 20px;
        margin-top: 0px;
        margin-bottom: 10px;
    }
}

.dashboard-setup-icon {
    margin-left: 10px;
    margin-top: 28px;
}

@media (max-width: 480px) {
    .dashboard-setup-icon {
        margin-top: 20px;
        font-size: 16px;
    }
}

.home-page-greeting {
    font-size: 48px;
    margin-left: 20px;
    margin-top: 30px;
    margin-bottom: 20px;
    height: auto;
    font-family: var(--global-font-family);
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.05;
    letter-spacing: -0.5px;
    text-align: left;
}

@media (max-width: 480px) {
    .home-page-greeting {
        font-size: 30px;
        margin-left: 10px;
        margin-top: 10px;
        margin-bottom: 10px;
        display: none;
    }
}

.contributor-widget {
    font-size: 24px;
}

@media (max-width: 1200px) {
    .contributor-widget {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    #home_habit_content .content-section {
        padding: 20px 10px 10px 10px !important;
    }
}

@media (max-width: 1400px) {
    #home_habit_content {
        padding: 5px 10px 10px 10px !important;
    }
}

@media (min-width: 600px) and (max-width: 1215px) {
    .home-habit-container {
        width: 750px !important;
    }

    #today_section {
        margin-bottom: 50px !important;
    }
}


/* ==================================================================
   JOURNAL
   ================================================================== */

.add-journal-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;
}

@media (max-width: 1200px) {
    .add-journal-title {
        font-size: 16px;
    }
}

.add-journal-subtitle {
    height: auto;
    margin: 0;
    font-family: var(--global-font-family);
    font-size: 16px;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.05;
    letter-spacing: -0.5px;
    text-align: left;
}

@media (max-width: 1200px) {
    .add-journal-subtitle {
        font-size: 10px;
    }
}

@media (max-width: 900px) {
    .journal-nav-buttons {
        display: none;
    }
}

@media (max-width: 480px) {
    .journal-nav-buttons {
        display: none;
    }
}

.journal-header-region {
    padding: 32px 32px 16px 32px;
}

@media (max-width: 480px) {
    .journal-header-region {
        padding: 10px;
    }
}

@media (min-width: 760px) {
    .notebook .carousel-indicators {
        bottom: -80px !important;
    }
}

.notebook .carousel-indicators li {
    background-color: black;
}


/* ==================================================================
   HABITS
   ================================================================== */

.habit-day i {
    cursor: pointer !important;
}

.habit-date {
    font-size: 16px;
    margin-top: 22px;
}

@media (max-width: 480px) {
    .habit-date {
        font-size: 12px;
        margin-top: 10px;
    }
}

.habit-title {
    font-size: 18px;
}

@media (max-width: 480px) {
    .habit-title {
        font-size: 10px;
    }
}

.habit-report-comment {
    margin: 0 0 6px;
    font-family: var(--global-font-family);
    font-size: 12px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.08;
    letter-spacing: var(--global-letter-spacing);
    text-align: left;
}


/* ==================================================================
   RECIPES AND CLIPPINGS
   ================================================================== */

.recipe-card {
    width: 220px;
    padding: 0px;
}

@media (max-width: 480px) {
    .recipe-card {
        padding: 5px;
        flex-shrink: 0;
        width: 200px;
        height: 120px;
        margin-right: 16px;
    }
}

.recipe-details {
    font-size: 20px;
    font-family: var(--global-font-family);
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.4;
    letter-spacing: var(--global-letter-spacing);
    text-align: left;
    margin-bottom: 5px;
    margin-top: 2px;
}

@media (max-width: 480px) {
    .recipe-details {
        font-size: 14px !important;
        margin-bottom: 5px;
        margin-top: 2px;
    }
}

.ingredient-checkbox + .checkbox-text {
    flex: 1;
}

#clippings_right_panel .modal-content {
    border: none !important;
    box-shadow: none !important;
    background-color: var(--content-panel) !important;
}

#clippings_right_panel .recipe-modal {
    background-color: transparent !important;
}

#clippings_right_panel .modal-footer {
    padding: 15px 20px !important;
}

#clippings_right_panel.content-panel {
    padding-top: 0px !important;
    padding-right: 0px !important;
    padding-bottom: 0px !important;
    padding-left: 0px !important;
    border: none !important;
    box-shadow: none !important;
}

#clippings_right_panel #quick_add_popup .modal-dialog {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.recipe-ingredient:hover {
    cursor: pointer;
}

@media (min-width: 600px) and (max-width: 1215px) {
    #favorite_group {
        margin-left: 0px !important;
    }

    #favorite_collection {
        margin-left: 0px !important;
    }

    #recipe_collection {
        margin-top: 10px !important;
    }

    .recipes_container {
        padding-right: 0px !important;
    }

        .recipes_container .core-content-region {
            padding-right: 0px !important;
        }
}

.recipe-modal .modal-dialog {
    max-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.recipe-modal .modal-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
}

.recipe-modal .modal-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}


/* ==================================================================
   HEALTH RECORDS
   ================================================================== */

.health-fact {
    font-size: 16px;
    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;
}

@media (max-width: 480px) {
    .health-fact {
        font-size: 12px;
        line-height: 16px;
    }
}

.tox.tox-tinymce {
    margin-top: 0 !important; /* Remove any extra margin at the top */
    padding-top: 0 !important; /* Remove any extra padding at the top */
}

/* You can also adjust the TinyMCE content area specifically */
.tox-edit-area {
    padding-top: 0 !important; /* Remove padding at the top of the content area */
}

.health-record-region {
    width: 1000px;
    height: auto;
    flex: 7;
    background-color: white;
    padding: 10px;
    border-radius: var(--border-radius-small);
}

@media (max-width: 1400px) {
    .health-record-region {
        width: 600px;
    }
}

@media (max-width: 1300px) {
    .health-record-region {
        width: 500px;
    }
}

@media (max-width: 1200px) {
    .health-record-region {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .health-record-region {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .health-record-region {
        width: 100%;
    }
}


/* ==================================================================
   CALENDAR
   ================================================================== */

.calendar-header {
    font-size: 24px;
    margin-top: 15px;
}

@media (max-width: 480px) {
    .calendar-header {
        font-size: 20px;
        margin-top: 20px;
    }
}

.fc-scrollgrid-sync-table {
    width: 100% !important
}

@media (max-width: 768px) {
    .fc.fc-media-screen.fc-direction-ltr.fc-theme-standard {
        height: 561px;
    }

    .fc .fc-col-header-cell-cushion {
        font-size: 10px !important;
    }

    .fc .fc-daygrid-day-top {
        font-size: 10px !important;
    }

    .fc .fc-timegrid-slot-label-cushion {
        font-size: 10px !important;
    }

    .fc .fc-timegrid-axis-cushion {
        font-size: 10px !important;
    }

    .fc .fc-list-day-cushion, .fc .fc-list-table td {
        font-size: 10px !important;
    }

    .fc-event-main {
        font-size: 10px !important;
    }
}

#upcomingCalendar {
    margin: 0px !important;
}

#addCalendarEventPopup #event_popup_region {
    padding-top: 0px !important;
}

#addCalendarEventPopup #edit_event_title_widget {
    margin-bottom: 0px !important;
}

#addCalendarEventPopup #edit_event_description_widget {
    margin-bottom: 0px !important;
}

.fc-theme-standard .fc-list-day.fc-day-today .fc-list-day-cushion.fc-cell-shaded {
    background-color: #F7E9C5 !important;
    color: #fff !important;
}

tr.fc-event.fc-event-today.fc-event-future {
    background-color: #FFFADF !important;
}

#calendar-color-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

    #calendar-color-legend .color-checkbox {
        position: relative;
    }

        #calendar-color-legend .color-checkbox span {
            line-height: 1;
        }

.fc-list-sticky .fc-list-day {
    position: unset;
}

.fc .fc-list-sticky .fc-list-day > * {
    position: unset;
}

.fc-timegrid-event, .fc-event-main, .fc-event-main-frame {
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
}

@media (max-width: 768px) {
    .fc-header-toolbar {
        flex-wrap: nowrap;
    }

        .fc-header-toolbar .fc-button {
            padding: 2px 4px;
            font-size: 10px;
        }

    .fc-toolbar-title {
        white-space: nowrap;
        font-size: 10px;
    }

    .fc-direction-ltr .fc-toolbar > * > :not(:first-child) {
        margin-left: 0.25rem;
    }
}

@media (max-width: 480px) {
    .fc .fc-toolbar-title {
        font-size: 10px;
    }

    .fc .fc-button {
        font-size: 10px;
    }

    .fc .fc-icon {
        font-size: 10px;
    }
}


/* ==================================================================
   EVENTS
   ================================================================== */

.event-card {
    padding: 0 20px 0 20px;
}

@media (max-width: 480px) {
    .event-card {
        padding: 0 5px 0 5px;
    }
}

.event-details-icon {
    font-size: 40px;
}

.event-details-container {
    padding: 20px;
}

@media (max-width: 480px) {
    .event-details-icon {
        font-size: 20px;
    }

    .event-details-container {
        padding: 10px;
        margin-top: 10px;
        flex: none;
        width: 100%;
    }

    .event-details-photo {
        flex: none;
        width: 100%;
    }
}

#event_content_body_region .c-horizontal-menu {
    overflow-x: auto;
    scrollbar-width: none;
}

    #event_content_body_region .c-horizontal-menu::-webkit-scrollbar {
        display: none;
    }

@media (min-width: 600px) and (max-width: 1215px) {
    #event_content_body_region .c-horizontal-menu {
        overflow-x: auto;
        scrollbar-width: none;
    }

        #event_content_body_region .c-horizontal-menu::-webkit-scrollbar {
            display: none;
        }
}


/* ==================================================================
   COMMUNITY
   ================================================================== */

#community_tag_widget .popup-form-section-row .twitter-typeahead {
    max-width: 89%;
}

@media (max-width: 480px) {
    #community_tag_widget .popup-form-section-row .twitter-typeahead {
        max-width: 86%;
    }
}

@media (max-width: 768px) {
    #community_tag_widget .popup-form-section-row .twitter-typeahead {
        max-width: 86%;
    }
}

#add_community_region #community_options_widget {
    margin-top: 10px !important;
}

.community-column {
    padding: 5px;
}

    .community-column.left {
        width: 35%;
        margin-right: 20px
    }

    .community-column.right {
        width: 60%;
    }

@media (max-width: 480px) {
    .community-column.left {
        width: 100%;
        margin-right: 0
    }

    .community-column.right {
        width: 100%;
    }
}

.community-description.truncated {
    width: 216px !important;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 480px) {
    .community-description.truncated {
        width: 163px !important;
    }
}

@media (max-width: 768) {
    .community-description.truncated {
        width: 140px !important;
    }

    .community-description {
        font-size: 10px
    }
}

.community-details-icon {
    font-size: 40px;
}

.community-details-container {
    padding: 20px;
    flex: 2;
}

.community-details-photo {
    flex: 4;
}

@media (max-width: 480px) {
    .community-details-icon {
        font-size: 20px;
    }

    .community-details-container {
        padding: 10px;
        margin-top: 10px;
        flex: none;
        width: 100%;
    }

    .community-details-photo {
        flex: none;
        width: 100%;
    }
}

.community-detail-header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
}

@media (max-width: 480px) {
    .community-detail-header {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        width: 100%;
    }
}

.community-panel {
    background-color: white;
    border-radius: var(--border-radius-small);
    padding: 20px;
    box-shadow: 10px 5px 10px grey;
}

@media (max-width: 480px) {
    .community-panel {
        margin: 10px 5px 10px 5px;
    }
}


/* ==================================================================
   PEOPLE AND JOBS
   ================================================================== */

@media (max-width: 768px) {
    .sharing-panel .filter-widget {
        min-width: 100%;
    }
}

/* Main container to center content on the page */
#people_job_list {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
}

.job-row {
    display: flex;
    align-items: center; /* Align items vertically if needed */
    padding: 16px; /* Adds spacing inside the row */
    border-bottom: 1px solid #ccc; /* Light black underline */
    gap: 16px; /* Space between items in the row */
    background-color: #f9f9f9;
    font-family: Arial, sans-serif;
    font-size: 16px;
}

    /* Remove underline from the last row */
    .job-row:last-child {
        border-bottom: none;
    }

@media (max-width: 768px) {
    #people_job_list {
        width: -webkit-fill-available; /* Adjust width for smaller screens */
        padding: 0px;
    }

    .job-row {
        flex-wrap: wrap; /* Allow items to wrap in smaller screens */
        padding: 12px;
    }
}

@media (min-width: 600px) and (max-width: 1215px) {
    #people_left_panel {
        padding: 10px !important;
    }
}

@media (min-width: 600px) and (max-width: 1024px) {
    #people_left_panel {
        padding: 10px !important;
    }
}

#people_job_filter_dropdown {
    margin-top: 5px;
}

@media (min-width: 600px) and (max-width: 1215px) {
    #people_right_panel .c-horizontal-menu {
        overflow-x: auto;
        scrollbar-width: none;
    }

        #people_right_panel .c-horizontal-menu::-webkit-scrollbar {
            display: none;
        }

    #people_left_panel .filter-section .my-dropdownlist {
        width: 48%;
    }
}


/* ==================================================================
   PROFILE
   ================================================================== */

#user_main_tab #user_profile_tags_widget .popup-form-section-row .twitter-typeahead {
    max-width: 87%;
}

/* not inline-flex */
#user_profile_popup .user-profile-page-header {
    display: none;
}

.user-profile-box {
    background-color: white;
    border-radius: var(--border-radius-small);
    padding: 0px;
}

.user-profile-right-bar {
    margin-left: 24px;
}

.user-profile-container {
    flex-direction: row;
    z-index: 10000;
    width: 1200px;
}

.user-profile-content {
    width: 800px;
    background-color: white;
    border-radius: var(--border-radius-small);
    padding: 20px;
    margin-top: 0px;
}

@media (max-width: 768px) {
    .user-profile-content {
        width: 100%;
    }

    .user-profile-container {
        width: 100%;
        flex-direction: column;
    }

    .user-profile-box {
        width: 100%;
        margin-left: 0px;
    }

    .user-profile-right-bar {
        margin-left: 0px;
    }
}

@media (max-width: 480px) {
    .user-profile-content {
        width: 100%;
    }

    .user-profile-box {
        width: 100%;
        margin-left: 0px;
    }

    .user-profile-container {
        flex-direction: column;
    }

    .user-profile-right-bar {
        margin-left: 0px;
    }
}

.profile-notes {
    font-size: 16px;
}

@media (max-width: 480px) {
    .profile-notes {
        font-size: 14px;
    }
}

.user-interest-list {
    font-size: 12px;
    font-family: var(--global-font-family);
    font-weight: 400;
    font-stretch: normal;
    font-style: normal;
    line-height: 24px;
    letter-spacing: -0.5px;
    text-align: left;
    margin-bottom: 10px;
}

@media (min-width: 600px) and (max-width: 1215px) {
    .user-profile-container {
        width: 97% !important;
        margin-top: 5px !important;
        margin-left: 10px !important;
    }
}


/* ==================================================================
   ADMIN
   ================================================================== */

.word-management-container {
    display: flex;
    flex-direction: column;
    height: 100%; /* or 100vh if you want full screen height */
}

.log-results-container {
    display: flex;
    flex-direction: column;
    height: 100%; /* or 100vh if you want full screen height */
}

.user-management-container {
    width: 100% !important;
}

body:has(.admin-panel) {
    overflow: hidden;
}

.admin-panel {
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    height: auto !important;
    max-height: calc(100vh - 100px);
}

#user_management_container.admin-panel, #interest_management_container.admin-panel {
    width: 100%;
}

#admin_message_container .content-section,
#interest_management_container .content-section,
.word-management-container .content-section,
.log-results-container .content-section {
    flex: 1;
    overflow-y: auto;
}

#admin_message_container .content-section {
    scrollbar-gutter: stable;
}

@media (max-width: 480px) {
    .admin-panel {
        width: 100%;
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (min-width: 600px) and (max-width: 1215px) {
    .admin-panel {
        width: 100%;
    }

    #admin_menu {
        margin-left: 0px !important;
    }

    .admin-container {
        padding: 20px !important;
    }

    #user_status_filter_dropdown {
        width: 100% !important;
    }
}


/* ==================================================================
   SEARCH RESULTS
   ================================================================== */

@media (max-width: 480px) {
    .search-results {
        width: 100%;
    }
}

.search-result-item {
    left: 0;
    right: 0;
    padding: 30px 30px 0 30px;
}

@media (max-width: 480px) {
    .search-result-item {
        margin-left: 5px;
        margin-right: 5px;
        padding: 0px 5px 10px 5px;
    }
}

.search-result-title {
    font-size: 20px;
    font-family: Roboto;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    color: #1a0dab;
    line-height: 1.3;
    margin-top: 0px;
    letter-spacing: -0.5px;
    text-align: left;
}

.search-result-category {
    font-size: 16px;
    font-family: Roboto;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.08;
    margin-top: 2px;
    letter-spacing: -0.5px;
    text-align: left;
}

.search-result-body {
    font-size: 14px;
    font-family: Roboto;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.58;
    letter-spacing: -0.5px;
    text-align: left;
}

@media (max-width: 768px) {
    .search-result-title {
        font-size: 20px;
    }

    .search-result-category {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .search-result-title {
        font-size: 20px;
    }
}


/* ==================================================================
   FAQ
   ================================================================== */

/*FAQ page*/
.faq-toc {
    list-style: none;
    margin: 0 auto 40px;
    padding: 0;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .faq-toc li {
        padding-bottom: 12px;
        border-bottom: 1px solid var(--app-border, #E3E4E9);
    }

        .faq-toc li:last-child {
            border-bottom: none;
        }

    .faq-toc a {
        color: #005BA5;
        text-decoration: none;
        line-height: 1.5;
    }

        .faq-toc a:hover {
            text-decoration: underline;
        }


/* ==================================================================
   PRINT (INACTIVE: THE STYLESHEETS LOAD WITH MEDIA="SCREEN")
   ================================================================== */

@media print {
    @page {
        margin: 0;
        size: letter portrait;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .pagebreak {
        break-after: auto
    }

    .people-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
        page-break-inside: avoid;
    }

    .person-card {
        page-break-inside: avoid !important;
        width: 100% !important;
        max-width: 100% !important;
        break-inside: avoid !important;
    }

        .person-card img {
            width: 100% !important;
            height: auto !important;
        }
}
