:root {
    --body-bgcolor: #f7f7f9;
    --default-text-color: #1a1a1a;
    --primary-color: #509ED0;
    --primary-contrast-color: #FFD358;

    --primary-color-hover: #3187BE;
    --primary-color-active: #0F6DAA;
    --primary-color-text: #fff;

    --bs-primary-bg-subtle: #cfe2ff5e;

    --border-radius: 10px;
	--shadow: 
		0 1px 2px rgba(15, 23, 42, 0.06),
		0 4px 14px rgba(2, 98, 121, 0.08),
		0 12px 32px rgba(4, 9, 20, 0.06);
	--box-shadow: 0px 6px 20px rgb(38 43 67 / 0.18);
    --interface-border-color: #d3d3d3;

    --header-bgcolor: #075689;
    --page-topnav-bgcolor: #fff;
    --pagenav-link-color: #0F6DAA;

    --tag-bgcolor: #356a8b;
}

html {
	font-size: 100%;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	font-family: 'Manrope', system-ui, -apple-system, sans-serif;
	font-size: 1rem; 
    color: var(--default-text-color);
	background-color: var(--body-bgcolor);	
    padding-top: 0;
}

.max-page-width {
    max-width: 1300px;
    margin: 0 auto;
}



a {
    color: var(--pagenav-link-color);
    text-decoration: underline;
    text-underline-offset: 0.125em !important;
}

h1 {
    font-size: 2rem;
    font-weight: 600;
}
h2 {
    font-size: 1.2rem;
    font-weight: 600;
}
h3 {
    font-size: 1.1rem;
    font-weight: 600;
}
h4 {
    font-size: 1rem;
    font-weight: 600;
}
h5 {
    font-size: 0.9rem;
    font-weight: 600;
}
h6 {
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}


/* ================= Offcanvas Menu ================= */
.offcanvas {
    width: 260px !important;
    box-shadow: var(--box-shadow);
    transition: transform 0.25s ease-in-out !important;
}

.offcanvas-header {
    height:60px;
    background: var(--header-bgcolor);
    border-bottom: 1px solid var(--interface-border-color);
    color: #fff;
}
.offcanvas-header button {
    color: #fff !important;
}

.offcanvas-expand-link {
    border: none;
    background: none;
    font-size: 20px;
    color: #fff;
    display:none;
    position: relative;
    left: -10px;
}

.offcanvas-expand-link:hover, .offcanvas-expand-link:active {
    color: #fff;
}

.offcanvas-close-link {
    padding:10px 5px;
    cursor: pointer;
}
.offcanvas-close-link i {
    font-size:28px;
    color: #fff !important;
}


/* ================= Header band ================= */
.page-brand {
    text-decoration: none;
}
.page-brand p {
    margin:0; 
    padding:0;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
    display:inline-block;
    font-size:1.5rem;
}
.page-brand p span {
    color: var(--primary-contrast-color);
}
.page-brand i {
    position:relative;
    top:-2px;
    font-size: 22px;
    color: var(--primary-color);
    margin-right: 8px;
}
.header-wrapper {
    background: var(--header-bgcolor);
    border-bottom: 1px solid var(--interface-border-color);
    padding: 0 20px;
}
header {
    height:60px;
    
}

/* ================= Page Top Nav ================= */
.page-topnav-wrapper {
    background-color: var(--page-topnav-bgcolor);
    -webkit-box-shadow: 0px -10px 34px 20px rgba(151,151,174,0.5); 
    box-shadow: 0px -10px 34px 20px rgba(151,151,174,0.5);
    padding: 2px 20px;
}

.page-topnav {
    display:block;
    z-index: 1030;
}
.page-topnav-link {
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--pagenav-link-color);
    padding: 8px 12px;
}

.page-topnav-link:hover, .page-topsubnav-link:hover {
    font-weight: 800;
}
.page-topnav-link i {
    font-size: 1.1rem;
    margin-right: 8px;
    position: relative;
    top: 1px;
}
.page-topnav-link:first-child {
    padding-left:0 !important;
}
.page-topnav-link:last-child {
    padding-right:0 !important;
}

.page-topnav-link.active {
    font-weight: 800;
}

.page-topnav-dropdown {
    display: inline-block;
}

.page-topnav-dropdown .dropdown-toggle {
    border: 0;
    background: transparent;
    line-height: inherit;
}

.page-topnav-dropdown .dropdown-toggle::after {
    margin-left: 0.35em;
    vertical-align: 0.15em;
}

.page-topnav-dropdown .dropdown-menu .dropdown-item i {
    width: 1.1rem;
}

.offcanvas-admin-heading {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--interface-border-color);
    font-weight: 700;
    color: var(--pagenav-link-color);
    cursor: default;
}

.offcanvas-admin-link {
    padding-left: 2rem !important;
}

.settings-link-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.settings-link-item + .settings-link-item {
    padding-top: 1rem;
    border-top: 1px solid var(--interface-border-color);
}

.settings-link-title {
    display: inline-block;
    font-weight: 700;
    color: var(--pagenav-link-color);
    text-decoration: none;
    margin-bottom: 0.25rem;
}

.settings-link-title:hover {
    text-decoration: underline;
}

.settings-link-desc {
    font-size: 0.875rem;
    color: var(--text-muted, #6c757d);
}


/* ================= Page Top Sub-Nav ================= */
.page-subnav-wrapper {
    padding: 15px 20px 0 20px;
    border-bottom: 1px solid var(--interface-border-color);
}
.page-subnav-link {
    border-right:1px solid var(--interface-border-color);
    padding: 8px 20px;
    
}
.page-subnav-link a {
    text-decoration: none;
    font-size: 0.85rem;
    color: var(--pagenav-link-color);
}
.page-subnav-link a:hover {
    font-weight: 800;
}
.page-subnav-link a.active {
    font-weight: 800;
}
.page-subnav-link:first-child {
    padding-left:0 !important;
}
.page-subnav-link:last-child {
    border: none;
}
.page-subnav-buttons {
    padding-bottom:10px;
}


/* ================= Main Content Area ================= */
.main-wrapper {
    padding-left: 20px;
    padding-right: 20px;
}
main {
    margin:10px auto !important;
    padding:10px 0;
}

.content-panel {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 10px 15px 15px 15px;
    margin-bottom: 25px;
}
.content-panel.pt-fix {
    padding-top: 15px !important;
}
.empty-state {
    padding: 30px 0 60px 0;
    text-align: center;
}
.empty-state-icon {
    font-size: 2.5rem;
}
.empty-state h2 {
    font-size: 1.5rem;
}



/* ================= Buttons ================= */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--primary-color-text);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--primary-color-hover);
    border-color: var(--primary-color-hover);
}
.btn-primary:active {
    background-color: var(--primary-color-active) !important;
    border-color: var(--primary-color-active) !important;
}

.btn-outline-primary, .btn-white-primary {
    border-color: var(--primary-color) !important;
    color: var(--primary-color);
}
.btn-white-primary {
    background-color: #fff;
}
.btn-outline-primary:hover, .btn-white-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}


.btn-outline-primary:active {
    background-color: var(--primary-color-active) !important;
    border-color: var(--primary-color-active) !important;
}
.btn-outline-disabled {
    border: 1px solid var(--interface-border-color) !important;
    background-color: #f8f9fa !important;
    text-align:center;
    color: var(--interface-border-color) !important;
}

.btn-ellipsis-dropdown {
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid var(--interface-border-color);
	border-radius: 50%;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #64748b;
}
.btn-ellipsis-dropdown:hover {
	background: #f8fafc;
	color: #0f172a;
}
.btn-mini {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
}
.btn-check:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}
.btn.disabled {
    opacity: 0.3 !important;
}

/* ================= Form Elements ================= */
.toggle-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.toggle-checkbox:checked + .toggle-label, .toggle-label.active, .toggle-label.active:hover {
    background: var(--tag-bgcolor);
    color: white;
    border-color: var(--tag-bgcolor);
    font-weight:700;
}
.toggle-label {
    display: inline-block;
    padding: 1px 10px 2px 10px !important;
    margin: 0 4px 0 0;
    border: 2px solid #ccc;
    color: #aaa;
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    background: #f8f9fa;
    transition: all 0.2s ease;
    font-size:0.8rem;
}
.toggle-label:hover {
    border-color: #999;
    color: #999;
}

.numeric-input {
    width: 80px;
}

.alt-tune-input {
    width: 140px;
}
.day-select-checkbox {
    display: none;
}
.day-select-label {
    display: flex;
	align-items: center;
	justify-content: center;
    width: 30px;
	height: 30px;
	background-color: #e9eef6;
	color: #bdc1c8;
	border-radius: 50%;
	cursor: pointer;
	font-weight: bold;
	user-select: none;
	transition: background-color 0.2s, color 0.2s;
}
/* When the hidden checkbox is checked, style the sibling label */
.day-select-checkbox:checked + .day-select-label {
	background-color: #0d6efd; /* Bootstrap Blue */
	color: white;
}
.day-select-label:hover {
	background-color: #dbdfe7;
}
.day-select-checkbox:checked + .day-select-label:hover {
	background-color: #0b5ed7;
}
.input-sm {
    font-size: 0.85rem;
}

/* ================= Bootstrap Overrides ================= */
.offcanvas-backdrop.show {
    opacity: .3 !important;
}
.text-muted {
    opacity: 0.75 !important;
}
.form-label {
    margin-bottom: .2rem !important;
}
.form-control, .form-select, .form-check-input {
    border-color: #c8cbcf !important;
}
.form-check-input:checked {
    border-color: var(--primary-color) !important;
}
.form-control:focus, .form-select:focus, .form-check-input:focus {
    box-shadow: 0 0 0 1px rgba(13, 110, 253, .60);
}


/* ================= Modal Updates ================= */
.modal-header, .modal-footer {
    padding: 8px 15px;
    border:none !important;
}
.modal-title {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
}
.modal-body {
    padding:0 15px 10px 15px;
}



/* ================= Miscellaneous ================= */
.avatar {
	width: 38px;
	height: 38px;
	border-radius: var(--border-radius);
}
.thin {
    font-weight: 300 !important;
}
.lead {
    font-size: 1rem;
    opacity: 0.8;
}
.tag-select-box,
.thread-tag-select-box {
    max-height: 220px;
    overflow: auto;
}
.thread-form-right-column, .poll-form-right-column {
    max-width: 350px;
    margin-left: 30px;
    border-left: 1px solid #0000001a;
    padding-left: 30px;
}
.poll-form-right-column {
    max-width: 450px !important;
}
.person-detail-image {
    max-width: 150px;
}
.event-recurrence-wrapper {
    background: var(--body-bgcolor);
    border: 1px solid var(--interface-border-color);
    border-radius: var(--border-radius);
    padding: 15px 20px;
}
.poll-vote-icon {
    font-size: 25px;
    margin-right: 8px;
}
.poll-panel {
    position: relative;
    flex: 1 1 16rem;
    max-width: 100%;
    border: 1px solid var(--interface-border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    background-color: #fff;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.poll-panel:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}
.poll-panel:hover a {
    color: #fff;
}
.login-wrapper {
    margin: 0 auto;
    max-width: 400px; 
}
i.dot {
    font-size: 5px;
    position: relative;
    top: -3px;
}

.note {
    position: relative;
    padding: 15px;
    
    background: #f1f1f1;
    overflow: hidden;
  }
  
  .note:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    border-width: 0 16px 16px 0;
    border-style: solid;
    border-color: #fff #fff #ccc #ccc;
    background: #ccc;
    -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);
    -moz-box-shadow: 0 1px 1px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);
    box-shadow: 0 1px 1px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);
    /* Firefox 3.0 damage limitation */
    display: block; width: 0;
  }

.callout-panel {
    background: rgba(73, 116, 153, 0.65);
    color: #fff !important;
}
.callout-panel a, .callout-panel span, .callout-panel p {
    color: #fff !important;
}

.panel-icon {
    font-size:3rem;
    opacity: 0.1;
    margin-right: 20px;
    line-height:3rem;
}

.content-info-strip {
    background-color:#e5f1f8;
    border-radius: var(--border-radius);
    padding: 3px 10px 5px 10px;
}

.alphabet-link {
    background: #eee;
    text-decoration: none;
    padding: 3px 10px;
    color: #aaa;
    font-weight: 600;
    margin-right: 1px;
    flex: 0 0 auto;
    white-space: nowrap;
}
.alphabet-link.active {
    background: var(--primary-color);
    color: #fff;
}
.h-100 {
    height: 100% !important;
}
.primary-household-icon {
    opacity: 0.15 !important;
    font-size: 0.8rem;
}
.hh-option-sub {
    border: 1px solid var(--interface-border-color);
    border-radius: var(--border-radius);
    padding: 10px 15px 15px 15px;
    background-color: #f8f8f8;
}

.directory-image {
    max-width: 150px;
    max-height: 150px;
}

/* Person profile hero (person.cfm) */
.person-profile-hero .person-profile-identity .directory-image {
    max-width: 140px;
    max-height: 140px;
}
.people-search-results {
    z-index: 1050;
    max-height: 260px;
    overflow-y: auto;
    /* Opaque surface — transparent list-group items otherwise show semi-transparent page content (e.g. footer) through */
    background-color: #fff;
    border: 1px solid var(--interface-border-color);
    border-radius: var(--border-radius);
    isolation: isolate;
}
.people-search-results .list-group-item {
    background-color: #fff;
    border-color: var(--interface-border-color);
}
.people-search-results .list-group-item-action:hover,
.people-search-results .list-group-item-action:focus,
.people-search-results .list-group-item-action:active {
    background-color: var(--bs-list-group-action-hover-bg, #f8f9fa);
    font-weight: 400;
}

/* Directory search: selected name shown in the input (not in the dropdown) */
.directory-search-input-wrap {
    position: relative;
}
.directory-search-input-wrap .form-control.directory-search-selected,
.directory-search-input-wrap input.directory-search-selected {
    font-weight: 700;
    background-color: var(--bs-primary-bg-subtle, #e8f4fc) !important;
    border-color: var(--bs-primary-border-subtle, #b6d4fe) !important;
    padding-right: 2.5rem;
    cursor: default;
}
.directory-search-input-wrap .form-control.directory-search-selected:focus,
.directory-search-input-wrap input.directory-search-selected:focus {
    background-color: var(--bs-primary-bg-subtle, #e8f4fc);
    box-shadow: none;
}
.directory-search-input-wrap input[type="search"].directory-search-selected::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}
.directory-search-clear {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--bs-secondary-color, #6c757d);
    font-size: 1rem;
    line-height: 1;
    border-radius: 0.25rem;
    cursor: pointer;
}
.directory-search-clear:hover,
.directory-search-clear:focus {
    color: var(--bs-body-color);
    background-color: rgba(0, 0, 0, 0.06);
}

/* Custom field validation (no Bootstrap valid/invalid icons) */
.form-validation-summary[hidden] {
    display: none !important;
}
.form-control.field-has-error,
.form-select.field-has-error,
input[type="search"].field-has-error {
    border-color: var(--bs-danger, #dc3545) !important;
    box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.2);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control.field-has-error:focus,
.form-select.field-has-error:focus,
input[type="search"].field-has-error:focus {
    border-color: var(--bs-danger, #dc3545) !important;
    box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.6);
}
.directory-search-input-wrap .form-control.field-has-error {
    background-color: var(--bs-primary-bg-subtle, #e8f4fc);
}
.directory-search-input-wrap .form-control.field-has-error:focus,
.directory-search-input-wrap input.field-has-error:focus {
    background-color: var(--bs-primary-bg-subtle, #e8f4fc);
    box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.6);
}
.field-error-message {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--bs-danger, #dc3545);
}
.field-error-message[hidden] {
    display: none !important;
}

.person-profile-badges .badge + .badge {
    margin-left: 0.35rem;
}
.person-profile-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.person-profile-contact-panel {
    flex: 1 1 12rem;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}
.person-profile-contact-panel > .d-flex {
    min-width: 0;
}
.person-profile-contact-panel .panel-icon {
    flex-shrink: 0;
}
.person-profile-contact-panel .flex-grow-1 {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.person-profile-contact-panel .flex-grow-1 a,
.person-profile-contact-panel .flex-grow-1 p {
    overflow-wrap: anywhere;
    word-break: break-word;
}
@media (max-width: 575.98px) {
    .person-profile-contact-panel {
        flex: 1 1 100%;
    }
}
.person-profile-bio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}
@media (min-width: 576px) {
    .person-profile-bio-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (min-width: 992px) {
    .person-profile-identity {
        min-width: 11rem;
        padding-right: 0.5rem;
    }
    .person-profile-details {
        flex: 1;
        min-width: 0;
    }
}


.livestream-date-dow {
    text-transform: uppercase;  
    font-size: 0.75rem;
    color: #fff;
    background-color: #64748b;
    font-weight: 700;
    text-align: center;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}
.livestream-date-day {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    background-color: #64748b0f;
    text-align: center;
    font-weight: 700;
}
.livestream-date-time {
    font-size: 0.75rem;
    color: #212529;
    background-color: #64748b0f;
    text-align: center;
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}


/* People directory: horizontal A–Z scroller */
.people-alphabet-scroller {
    position: relative;
    margin-bottom:10px;
    width: 100%;
}

.people-alphabet-scroller__track {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.people-alphabet-scroller__track::-webkit-scrollbar {
    display: none;
}

.people-alphabet-scroller__track:focus-visible {
    outline: 2px solid var(--primary-color, #026279);
    outline-offset: 2px;
}

.people-alphabet-nav {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 1px;
    min-width: min-content;
}

.people-alphabet-nav .alphabet-link:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.people-alphabet-nav .alphabet-link:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.people-alphabet-scroller__btn {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    padding: 0;
    border: 0;
    color: var(--primary-color, #026279);
    background: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.people-alphabet-scroller__btn--prev {
    left: 0;
    box-shadow: 4px 0 6px -2px rgba(15, 23, 42, 0.12);
}

.people-alphabet-scroller__btn--next {
    right: 0;
    box-shadow: -4px 0 6px -2px rgba(15, 23, 42, 0.12);
}

.people-alphabet-scroller__btn.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.people-alphabet-scroller__btn:focus-visible {
    outline: 2px solid var(--primary-color, #026279);
    outline-offset: 1px;
}

.pagination-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--interface-border-color);
    background: #f0f2f4;
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}
.pagination-nav-top {
    border-top: none;
    border-bottom: 1px solid var(--interface-border-color);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.pagination-nav .page-link {
    color: var(--primary-color, #026279);
}

.pagination-nav .page-link.active  {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.3rem 0.8rem;
}
.pagination-nav .page-link.disabled {
    color: #64748ba4 !important;
    cursor: not-allowed;
}

.people-directory-filters__layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
}

.people-directory-filters__search {
    width: 100%;
    min-width: 0;
}

.people-directory-filters__selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
}

.people-directory-filters__field {
    min-width: 0;
}

.people-directory-filters__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

@media (min-width: 768px) {
    .people-directory-filters__layout {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.5rem;
    }

    .people-directory-filters__search {
        flex: 1 1 12rem;
        width: auto;
    }

    .people-directory-filters__selects {
        display: flex;
        flex: 0 1 auto;
        gap: 0.5rem;
        width: auto;
    }

    .people-directory-filters__field {
        flex: 0 0 auto;
        min-width: 9.5rem;
    }

    .people-directory-filters__field .form-select {
        min-width: 9.5rem;
    }

    .people-directory-filters__actions {
        flex: 0 0 auto;
        width: auto;
        margin-left: auto;
        justify-content: flex-end;
    }
}


/* ================= Bible Book Autocomplete ================= */
.bible-book-ac-list {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 40;
	margin-top: 2px;
	max-height: 14rem;
	overflow-y: auto;
	border: 1px solid #e2e8f0;
	border-radius: var(--default-border-radius, 0.5rem);
	background: #fff;
	box-shadow: 0 0.35rem 1rem rgba(15, 23, 42, 0.12);
}
.bible-book-ac-item {
	padding: 0.45rem 0.75rem;
	font-size: 1rem;
	cursor: pointer;
	color: #0f172a;
}
.bible-book-ac-item:hover,
.bible-book-ac-item-active {
	background: #f1f5f9;
}

/* ================= Trix Editor ================= */
trix-toolbar .trix-button-group { 
    margin-bottom: 5px !important; 
    margin-top:5px !important; 
    border:none !important; 
}

trix-toolbar .trix-button { 
    border:none !important; 
    margin-right:2px !important;
}

.trix-button-group--file-tools { 
    display: none !important; 
}

trix-toolbar .trix-button.trix-active { 
	background:#dfdfdf !important; 
	border-radius: 8px; 
}

.trix-button-row {
	border-top:1px solid #ccc;
	border-right:1px solid #ccc;
	border-left:1px solid #ccc;
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
	padding-left:5px;
	border-bottom:1px solid #ccc;
	background:#fafafa;
}

trix-toolbar .trix-button--icon {
    font-size: 16px !important;
	width:2rem !important;
}

trix-editor {
	border-top:none !important;
	border-top-left-radius: 0 !important;
	border-top-right-radius: 0 !important;
	border-bottom-left-radius: 10px !important;
	border-bottom-right-radius: 10px !important;
	border-color:#ccc !important;
    min-height: 250px !important;
}

trix-toolbar .trix-button-group:not(:first-child) {
    margin-left: 10px !important;
}

.trix-editor-thin trix-editor { 
    min-height:100px !important;
}


/* ================= Footer ================= */
footer {
    border-top: 1px solid var(--interface-border-color);
    padding: 5px 0;
    margin: 40px auto 10px auto;
}
footer div {
    padding: 0 20px;
    font-size:0.75rem;
    opacity:0.75;
}

/* ================= Media Queries ================= */
@media (max-width: 1355px) {
	
}

@media (max-width: 992px) {
    .thread-form-right-column, .poll-form-right-column {
        max-width: 100% !important;
        margin-left: 0;
        border-left: none;
        padding-left: 0;
        margin-top:50px;
    }
}

@media (max-width: 880px) {
	.page-topnav {
		display:none !important;
	}
    .offcanvas-expand-link {
        display: block !important;
    }
}

@media (max-width: 768px) {
    trix-toolbar .trix-button--icon {
		font-size: 16px !important;
		width:2rem !important;
		height: auto !important;
    }
    .person-edit-container {
        width: 100% !important;
    }
}

@media (max-width: 575px) {
    .person-detail-name {
        text-align: center;
    }
    .directory-image {
        margin-left: 0 !important;
    }
}



/* ================= Events Calendar Mobile View ================= */
.events-mobile-day-label {
    border: 1px solid var(--interface-border-color);
    width: 80px;
    border-radius: var(--border-radius);
    padding: 5px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 800;
}
.events-mobile-day-label.today {
	background: var(--tag-bgcolor);
    color: #fff;
    border-color: var(--tag-bgcolor);
}
.events-mobile-item {
	display: block;
	text-decoration: none;
	color: inherit;
	border-radius: 6px;
	padding: 0.65rem 0.75rem;
	margin-bottom: 0.5rem;
	background: #f3f5f8;
	transition: background-color 0.15s ease;
}
.events-mobile-item.events-mobile-all-day {
	border-left: 4px solid #0d6efd;
	background: #e7f1ff;
}
.events-mobile-item:hover {
    background: #eceff4;
}
.events-mobile-all-day:hover {
	background: #dae9ff !important;
}
.events-mobile-item-time {
	font-size: 0.75rem;
	font-weight: 600;
	color: #495057;
	margin-bottom: 0.15rem;
}
.events-mobile-item-title {
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.35;
}


/* ================= Events Calendar Desktop View ================= */
.calendar-container {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--interface-border-color);
}

/* Calendar Header (Days of Week) */
.calendar-header {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
}

.calendar-header-item {
	padding: 4px;
	text-align: center;
	font-weight: 800;
    text-transform: uppercase;
	font-size: 0.9rem;
}

/* Grid Layout for Days */
.calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
}

/* Individual Day Cell */
.calendar-day {
	position: relative;
	min-width: 0; /* Prevents flex/grid blowouts */
	height: 160px; 
	border-right: 1px solid var(--interface-border-color);
	border-bottom: 1px solid var(--interface-border-color);
	transition: background-color 0.2s ease;
}
.calendar-event-link-all-day { color:#fff !important; }

.calendar-day:nth-child(7n) {
	border-right: none;
}

.calendar-day:hover {
	background-color: #fcfcfc;
}

/* Top Bar of the Day Cell */
.day-top-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 10px;
	height: 35px;
}

/* "New" Link - Hidden by default, shown on hover */
.new-event-link {
	font-size: 0.8rem;
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 600;
	opacity: 0;
	transition: opacity 0.2s ease;
}
.new-event-link span { font-size:1rem; }

.calendar-day:hover .new-event-link {
	opacity: 1;
}

/* Day Number */
.day-number {
	font-weight: 500;
	font-size: 0.8rem;
	color: #212529;
}
.day-number.today {
	text-align: center;
	background: #67748e;
	color:#fff;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	align-content: center;
}
.other-month {
	background-color: #fbfbfb;
	color: #adb5bd;
}

.other-month .day-number {
	color: #adb5bd;
}

/* Scrollable Events Area */
.events-list {
	height: calc(160px - 35px); /* Total height minus top bar */
	overflow-y: auto;
	padding: 0 8px 8px 8px;
	scrollbar-width: thin; /* Firefox */
}

/* Custom Scrollbar for Chrome/Safari */
.events-list::-webkit-scrollbar {
	width: 4px;
}
.events-list::-webkit-scrollbar-thumb {
	background: #dee2e6;
	border-radius: 4px;
}

.events-today {
	background-color: #509ed029;
}

.event-proposed {
	background-color: #fff8e6;
	color: #7a5a00;
	border: 2px dashed #ffc107;
}


/* Individual Event Styling */
.event-item {
	font-size: 0.75rem;
	padding: 4px 8px;
	margin-bottom: 4px;
	border-radius: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
	text-decoration:none;
}
.event-item a { text-decoration:none; }
.event-item a:hover { font-weight:500; }

.event-all-day {
	font-weight:600;
	background: #0d6efd !important;
}
.event-all-day { color: #fff !important; }

.meeting-notes-body {
	white-space: pre-wrap;
}

.meeting-agenda-outline-scroll {
	max-height: min(24rem, 50vh);
	overflow-y: auto;
	padding-right: 0.25rem;
}

.meeting-agenda-outline {
	margin: 0;
	padding-left: 1.5rem;
}

.meeting-agenda-outline--depth-0 {
	list-style-type: decimal;
}

.meeting-agenda-outline--depth-1 {
	list-style-type: lower-alpha;
	margin-top: 0.35rem;
}

.meeting-agenda-outline--depth-2 {
	list-style-type: decimal;
	margin-top: 0.35rem;
}

.meeting-agenda-outline__item {
	margin-bottom: 0.4rem;
	padding-left: 0.25rem;
}

.meeting-agenda-outline__item::marker {
	font-weight: 600;
}

.meeting-agenda-outline__title {
	font-weight: 500;
}

.meeting-agenda-editor-row .border-bottom:last-child {
	border-bottom: 0 !important;
}

.meeting-agenda-sortable {
	min-height: 0.25rem;
}

.meeting-agenda-drag-handle {
	cursor: grab;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
}

.meeting-agenda-drag-handle:active {
	cursor: grabbing;
}

.meeting-agenda-sortable-ghost {
	opacity: 0.45;
}

.meeting-agenda-sortable-chosen .meeting-agenda-editor-row {
	background: rgba(var(--bs-primary-rgb), 0.06);
	border-radius: 0.375rem;
}

.meeting-agenda-sortable-children {
	border-left: 2px solid var(--bs-border-color);
	margin-left: 0.35rem;
}

.event-resource-sort-col {
	width: 2.25rem;
	padding-left: 0.25rem !important;
	padding-right: 0.25rem !important;
}

.event-resource-drag-handle {
	cursor: grab;
	color: var(--bs-secondary-color);
	line-height: 1;
}

.event-resource-drag-handle:active {
	cursor: grabbing;
}

.event-resource-sortable-ghost {
	opacity: 0.45;
}

.event-resource-sortable-chosen {
	background: rgba(var(--bs-primary-rgb), 0.06);
}

.meeting-agenda-collapse-spacer {
	display: inline-block;
	width: 2.125rem;
	flex-shrink: 0;
}

.meeting-agenda-collapse-toggle {
	width: 2.125rem;
	padding-left: 0;
	padding-right: 0;
}

.meeting-agenda-collapse-toggle .meeting-agenda-collapse-icon--closed {
	display: none;
}

.meeting-agenda-collapse-toggle[aria-expanded="false"] .meeting-agenda-collapse-icon--open {
	display: none;
}

.meeting-agenda-collapse-toggle[aria-expanded="false"] .meeting-agenda-collapse-icon--closed {
	display: inline-block;
}

.meeting-agenda-collapsible.is-collapsed {
	display: none;
}

.page-people-directory .avatar.avatar-lg {
	width: 5rem;
	height: 5rem;
	object-fit: cover;
	border-radius: 50%;
}

.directory-person-header .avatar-lg {
	border: 2px solid var(--bs-border-color);
}

/* Meeting settings — sectioned layout */
.meeting-settings-jump {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	padding: 0.65rem 1rem;
	margin-bottom: 0;
	background: var(--bs-light, #f8f9fa);
	border-radius: var(--border-radius, 0.375rem);
	border: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.1));
}

.meeting-settings-jump a {
	color: var(--primary-color, #0d6efd);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
}

.meeting-settings-jump a:hover {
	text-decoration: underline;
}

.meeting-settings-block__head {
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.1));
}

.meeting-settings-block__title {
	margin: 0 0 0.35rem;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--secondary-color, #334155);
}

.meeting-settings-block__lead {
	margin: 0;
	font-size: 0.875rem;
	color: var(--bs-secondary-color, #6c757d);
	max-width: 42rem;
}


.meeting-settings-block .panel-title--sub {
	font-size: 0.75rem;
	letter-spacing: 0.04em;
}

.meeting-settings-doc-grid .panel-body {
	padding: 1rem 1.15rem;
}

.meeting-settings-savebar {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.1));
}

@media (min-width: 768px) {
	.meeting-settings-savebar {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

.meeting-settings-aside__links li + li {
	margin-top: 0.65rem;
}

.meeting-settings-aside__links a {
	text-decoration: none;
	font-weight: 500;
}

.meeting-settings-aside__links a:hover {
	text-decoration: underline;
}

@media (min-width: 1200px) {
	.meeting-settings-block--sidebar {
		position: sticky;
		top: 1rem;
	}
}

/* Meeting setup wizard */
.meeting-setup-stepper {
	margin-bottom: 1.25rem;
}

.meeting-setup-stepper__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0;
	list-style: none;
	padding: 0;
	margin: 0;
	counter-reset: setup-step;
}

.meeting-setup-stepper__item {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.75rem 0.35rem 0.35rem;
	border-radius: 2rem;
	background: var(--bs-light, #f8f9fa);
	border: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.1));
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--bs-secondary-color, #6c757d);
}

.meeting-setup-stepper__item.is-active {
	background: var(--primary-color, #0d6efd);
	border-color: var(--primary-color, #0d6efd);
	color: #fff;
}

.meeting-setup-stepper__item.is-done {
	background: #e8f5e9;
	border-color: #c8e6c9;
	color: #2e7d32;
}

.meeting-setup-stepper__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 50%;
	font-size: 0.75rem;
	background: rgba(0, 0, 0, 0.08);
}

.meeting-setup-stepper__item.is-active .meeting-setup-stepper__num {
	background: rgba(255, 255, 255, 0.25);
}

.meeting-setup-summary__desc {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Poll create wizard */
.poll-wizard-stepper {
	margin-bottom: 1.25rem;
}

.poll-wizard-stepper__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0;
	list-style: none;
	padding: 0;
	margin: 0;
}

.poll-wizard-stepper__item {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.75rem 0.35rem 0.35rem;
	border-radius: 2rem;
	background: var(--bs-light, #f8f9fa);
	border: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.1));
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--bs-secondary-color, #6c757d);
}

.poll-wizard-stepper__item.is-active {
	background: var(--primary-color, #509ED0);
	border-color: var(--primary-color, #509ED0);
	color: #fff;
}

.poll-wizard-stepper__item.is-done {
	background: #e8f5e9;
	border-color: #c8e6c9;
	color: #2e7d32;
}

.poll-wizard-stepper__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 50%;
	font-size: 0.75rem;
	background: rgba(0, 0, 0, 0.08);
}

.poll-wizard-stepper__item.is-active .poll-wizard-stepper__num {
	background: rgba(255, 255, 255, 0.25);
}

.poll-wizard-panel {
	display: none;
}

.poll-wizard-panel.is-active {
	display: block;
}

.poll-wizard-type-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	gap: 1rem;
}

.poll-wizard-type-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
	padding: 1rem 1.1rem;
	border: 2px solid var(--interface-border-color, #d3d3d3);
	border-radius: var(--border-radius, 10px);
	background: #fff;
	cursor: pointer;
	text-align: left;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.poll-wizard-type-card:hover {
	border-color: var(--primary-color, #509ED0);
}

.poll-wizard-type-card.is-selected {
	border-color: var(--primary-color, #509ED0);
	box-shadow: 0 0 0 3px rgba(80, 158, 208, 0.2);
}

.poll-wizard-type-card__icon {
	font-size: 1.35rem;
	color: var(--primary-color, #509ED0);
}

.poll-wizard-type-card__title {
	font-weight: 700;
	font-size: 1rem;
}

.poll-wizard-review-list .list-group-item {
	font-size: 0.9375rem;
}

.poll-wizard-preview {
	border: 1px dashed var(--interface-border-color, #d3d3d3);
	border-radius: var(--border-radius, 10px);
	padding: 1.25rem;
	background: #fafbfc;
}

.poll-wizard-preview__title {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.poll-wizard-hint {
	font-size: 0.875rem;
	color: var(--bs-secondary-color, #6c757d);
}

/* Meeting page — attendance sidebar */




.meeting-attendance-search {
	position: relative;
}

.meeting-attendance-search__results {
	position: absolute;
	z-index: 20;
	left: 0;
	right: 0;
	max-height: 14rem;
	overflow-y: auto;
	margin-top: 0.25rem;
	box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.12);
	border-radius: 0.375rem;
}

.meeting-attendance-list {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	max-height: min(28rem, 55vh);
	overflow-y: auto;
}

.meeting-attendance-list__row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 0.25rem;
	border-radius: 0.25rem;
}

.meeting-attendance-list__row--added {
	background: var(--bs-primary-bg-subtle, rgba(13, 110, 253, 0.08));
}

.meeting-attendance-list__check {
	margin: 0;
	flex-shrink: 0;
}

.meeting-attendance-list__label {
	margin: 0;
	flex: 1;
	font-size: 0.9375rem;
	line-height: 1.3;
}

.meeting-attendance-list__status {
	width: 1.25rem;
	text-align: center;
	flex-shrink: 0;
}

.meeting-filename-link-container {
    border: 1px solid var(--interface-border-color);
    border-radius: var(--border-radius);
    padding:10px;
    text-decoration: none;
}
.meeting-filename-link-container .icon-container {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius);
    background-color: #e7f0f5;
    color: #28516a;
    display: flex;
    align-items: center;
    justify-content: center;
}
.meeting-filename-link-container .icon-container i {
    font-size: 20px;
}
.meeting-filename-link-container .filename-container {
    line-height: 1.2rem;
}
.meeting-filename-link:hover .meeting-filename-link-container {
    border-color: var(--primary-color);
}


.repo-browser-item .fa-file-pdf {
    color: #ff0000 !important;
}
.repo-browser-item .fa-image {
    color: #1d91f0 !important;
}
.repo-browser-item .fa-file-word {
    color: #1c4bc1 !important;
}
.repo-browser-item .fa-file-excel {
    color: #19874d !important;
}

.dt-reply-children {
	border-left: 2px solid var(--interface-border-color, #d8dde6);
	margin-left: 0.5rem;
	padding-left: 1rem;
}

.dt-reply-child + .dt-reply-child {
	border-top: 1px solid var(--interface-border-color, #e6e8ef);
}

.email-campaign-block-item {
    padding:10px;
    background-color: #f8f8f8;
    margin-bottom: 20px !important;
}
.email-block-drag {
    background-color: #fff;
}
.email-campaign-block-item .badge {
    background-color: #fff !important;
    padding: 8px 20px;
    border: 1px solid #aaa !important;
}

.email-campaign-block-item .email-block-header {
    cursor: default;
}

.email-campaign-block-item .email-block-toggle {
    background-color: #fff;
}

.email-campaign-block-item.is-collapsed .email-block-header {
    margin-bottom: 0 !important;
}

/* Trix in campaign block editor — compact height inside block list */
.email-trix-wrap {
    background-color: #fff;
    overflow: hidden;
}

.email-trix-wrap trix-editor.email-campaign-trix {
    min-height: 7.5rem !important;
    max-height: 16rem;
    overflow-y: auto;
}