.knewscommunity-novabb-layout {
	display: grid;
	gap: 2rem;
}

.knewscommunity-novabb-page-content {
	display: grid;
	gap: 1rem;
}

.knewscommunity-novabb-section {
	display: grid;
	gap: 1rem;
}

.knewscommunity-novabb-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.knewscommunity-novabb-section-header h2 {
	margin: 0;
}

.knewscommunity-novabb-section-body {
	display: grid;
	gap: 1rem;
}

.knewscommunity-novabb-tabs {
	display: grid;
	gap: 1rem;
}

.knewscommunity-novabb-tab-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.knewscommunity-novabb-tab-button {
	border: 1px solid currentColor;
	background: transparent;
	padding: 0.5rem 0.875rem;
	border-radius: 999px;
	cursor: pointer;
	font: inherit;
}

.knewscommunity-novabb-tab-button.is-active,
.knewscommunity-novabb-tab-button[aria-selected="true"] {
	font-weight: 600;
}

.knewscommunity-novabb-tab-panel[hidden] {
	display: none;
}

.knewscommunity-novabb-config-error {
	margin: 0;
	padding: 1rem 1.25rem;
	border-left: 4px solid currentColor;
	background: rgba(0, 0, 0, 0.05);
}

.knewscommunity-novabb-thread-discovery-header {
	align-items: flex-start;
}

.knewscommunity-novabb-thread-discovery-header h2 {
	margin: 0;
}

.knewscommunity-novabb-thread-discovery-header p {
	margin: 0.45rem 0 0;
	color: #64748b;
	line-height: 1.6;
}

#novabb-thread-filter-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.85rem;
}

#novabb-thread-filter-form p {
	margin: 0;
	display: grid;
	gap: 0.35rem;
}

#novabb-subcategory-filters {
	flex: 1 1 240px;
	max-width: 420px;
}

#novabb-thread-controls-right {
	display: flex;
	flex: 1 1 360px;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: flex-end;
	gap: 0.75rem;
	margin-left: auto;
}

#novabb-thread-filters,
#novabb-search-filter {
	flex: 0 1 280px;
	min-width: 220px;
}

#novabb-thread-filters p {
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

#novabb-thread-filters label {
	margin: 0;
	white-space: nowrap;
	font-size: .85rem;
}

#novabb-thread-filters select {
	flex: 1 1 auto;
}

#novabb-thread-filter-form #novabb-search-filter {
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

#novabb-search-filter input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
}

#novabb-search-filter button {
	flex: 0 0 auto;
	padding: 0.28rem 0.58rem;
	font-size: 0.8rem;
	line-height: 1.2;
}

#novabb-thread-filter-form select,
#novabb-thread-filter-form input[type="search"] {
	width: 100%;
}

select#novabb-region-filter {
    appearance: none;
    -webkit-appearance: none;
    background-color: white;
    background-image: 
        /* The White Arrow (SVG) */
        url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"),
        /* The #222 Background Block */
        linear-gradient(to right, #222 100%, #222 100%);
    background-repeat: no-repeat;
    background-position: right 7px center, right center;
    background-size: 15px, 32px 100%;
    height: 32px;
    border: 1px solid #222;
    padding-left: 7px;
	font-size: .85rem;
}
input#novabb-search {
    height: 32px;
    border: 1px solid #222;
    padding-left: 7px;
    border-radius: 0 !important;
	font-size: .85rem;
}
#novabb-thread-controls-right {
	flex-wrap: initial;
}

/* Table Title and Form */
.knewscommunity-novabb-thread-discovery-body {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap to a new line */
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.knewscommunity-novabb-thread-discovery-body h2 {
    margin: 0;
    flex: 0 1 auto; /* Grow only as much as needed */
}

.knewscommunity-novabb-thread-discovery-body > .knewscommunity-novabb-thread-detail-stack {
	flex: 1 0 100%;
	width: 100%;
}

.knewscommunity-novabb-thread-discovery-title-accent {
	color: #ef4444;
}
.knewscommunity-novabb-thread-discovery-body #novabb-thread-filter-form {
    margin: 0;
    flex: 0 1 auto;
}
#novabb-thread-list {
    flex: 1 0 100%; 
    width: 100%;
    margin-top: 5px;
}


/* Table Styling Start */
#novabb-thread-list table thead tr {
    line-height: 3;
}
div#novabb-thread-list {
    border-top: 1px solid #111;
    padding-top: 2px;
}
#novabb-thread-list td:nth-child(1), td:nth-child(3), td:nth-child(4), td:nth-child(5) {
    text-align: center;
}
#novabb-thread-list table {
	border-collapse: collapse;
	font-size: .9rem;
}
#novabb-thread-list thead th {
    font-size: .9rem;
}

#novabb-thread-list table tr {
    border-top: 1px solid #e3e3e3 !important;
    border-bottom: 1px solid #e3e3e3 !important;
    line-height: 2.2;
}
#novabb-thread-list table thead tr {
    border-top: 0 !important;
}

#novabb-thread-list td:nth-child(1) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f4f4f4 !important;
    color: #222;
    font-size: .75rem !important;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 3px !important;
    border-radius: 30px !important;
    margin: 6px 0;
    min-width: 50px;
    width: 100%;
}

/* 2. Keep the other columns aligned correctly */
#novabb-thread-list td {
    vertical-align: middle;
	line-height: normal;
}
th#novabb-thread-label-date::before {
    content: "";
    display: inline-block;
    width: 13px;
    height: 13px;
	margin-right: 3px;
    flex-shrink: 0;
    background-color: currentColor; /* This makes the icon the same color as your text! */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewbox='0 0 16 16'%3E%3Cpath d='M10.854 7.146a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 1 1 .708-.708L7.5 9.793l2.646-2.647a.5.5 0 0 1 .708 0'/%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5M1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M10.854 7.146a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 1 1 .708-.708L7.5 9.793l2.646-2.647a.5.5 0 0 1 .708 0'/%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5M1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4z'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100%;
    mask-size: 100%;
}

th#novabb-thread-label-views::before {
    content: "";
    display: inline-block;
    width: 14px;  /* Size of the icon */
    height: 14px;
	margin-right: 3px;
    flex-shrink: 0; 
    background-color: currentColor; 
    
    /* 2. The Check-Circle SVG as a mask */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16'/%3E%3Cpath d='m10.97 4.97-.02.022-3.473 4.425-2.093-2.094a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-1.071-1.05'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16'/%3E%3Cpath d='m10.97 4.97-.02.022-3.473 4.425-2.093-2.094a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-1.071-1.05'/%3E%3C/svg%3E");
    
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
}
#novabb-thread-list table a {
    text-decoration: none;
    color: #111;
}
#novabb-thread-list tbody td:nth-child(2) {
    padding-left: 1rem;
}

nav.novabb-thread-pagination {
	text-align: center;
	font-size: .9rem;
}
nav.novabb-thread-pagination span {
    background: #17a3b6;
    color: white !important;
    padding: 3px 8px;
    text-decoration: none !important;
    margin: 0 5px;
}
nav.novabb-thread-pagination a {
    color: #222;
    text-decoration: none !important;
    margin: 0 4px;
}

/* Table Styling End */

@media (min-width: 960px) {
	#novabb-search-filter {
		min-width: 300px;
	}
}

@media (max-width: 959px) {
	#novabb-subcategory-filters,
	#novabb-thread-controls-right,
	#novabb-thread-filters,
	#novabb-search-filter {
		flex: 1 1 100%;
		max-width: none;
		min-width: 0;
	}

	#novabb-thread-controls-right {
		justify-content: stretch;
	}
}

.novabb-global-disclaimer,
.novabb-thread-photo-disclaimer {
	padding: 0.7rem 0.9rem;
	border-left: 3px solid #f59e0b;
	background: #fff8eb;
	color: #7c2d12;
	font-size: 0.92rem;
	line-height: 1.55;
}

.novabb-global-disclaimer {
	margin: 0 0 0.85rem;
}

.novabb-global-disclaimer-photo-thread,
.novabb-thread-photo-disclaimer {
	margin-top: 0.85rem;
	margin-bottom: 0;
}

#novabb-thread-list .novabb-thread-title-meta {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-left: 0.42rem;
	vertical-align: middle;
}

#novabb-thread-list .novabb-thread-new-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.08rem;
	height: 1.08rem;
	padding: 0 0.24rem;
	border-radius: 5px;
	background: #ef4444;
	color: #fff;
	font-size: 0.6rem;
	font-weight: 700;
	line-height: 1;
}

#novabb-thread-list .novabb-thread-reply-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	padding: 0.12rem 0.3rem 0.13rem;
	border-radius: 5px;
	background: #4ea0ff;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1;
}

#novabb-thread-list .novabb-thread-reply-icon {
	width: 0.74rem;
	height: 0.74rem;
	stroke: currentColor;
	fill: none;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	margin-top: .07rem;
    margin-bottom: .03rem;
	margin-left: 0.05rem;
}

#novabb-thread-list .novabb-thread-reply-count {
	display: inline-block;
	min-width: 0.35rem;
}

/* Thread form layout inspired by reference screenshot */
#novabb-new-thread {
	margin: 0;
	padding: 0;
	background: #fff;
	border-top: 1px solid #e6ebf1;
	border-bottom: 1px solid #e6ebf1;
}

#novabb-new-thread > p,
#novabb-new-thread #novabb-custom-fields > p[data-novabb-thread-core-field],
#novabb-new-thread #novabb-region-group > p,
#novabb-new-thread #novabb-custom-fields .novabb-custom-field-row,
#novabb-new-thread #novabb-custom-fields .novabb-custom-field-card > p {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	column-gap: 1rem;
	align-items: center;
	margin: 0;
	padding: 0.9rem 0;
	border-bottom: 1px solid #edf2f7;
}

#novabb-new-thread #novabb-custom-fields .novabb-custom-field-card {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

#novabb-new-thread #novabb-custom-fields .novabb-custom-field-row,
#novabb-new-thread #novabb-custom-fields .novabb-custom-field-card > p {
	align-items: start;
}

#novabb-new-thread #novabb-custom-fields .novabb-custom-field-card-image > p {
	align-items: center;
	row-gap: 0;
}

#novabb-new-thread #novabb-custom-fields .novabb-custom-field-row-image > label {
	grid-column: 1;
}

#novabb-new-thread #novabb-custom-fields .novabb-custom-field-row-image > .novabb-custom-image-upload {
	grid-column: 2;
	align-self: center;
}

#novabb-new-thread > p:last-of-type {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 0.95rem 0;
	border-bottom: 0;
}

#novabb-new-thread label {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	color: #1f2937;
	line-height: 1.4;
}

#novabb-new-thread label span {
	color: #6b7280;
	font-size: 0.78rem;
	font-weight: 500;
	margin-left: 0.35rem;
}

#novabb-new-thread small {
	grid-column: 2;
	margin-top: 0.4rem;
	color: #6b7280;
	font-size: 0.82rem;
	line-height: 1.45;
}

#novabb-new-thread input[type="text"],
#novabb-new-thread input[type="email"],
#novabb-new-thread input[type="tel"],
#novabb-new-thread input[type="search"],
#novabb-new-thread select,
#novabb-new-thread textarea {
	width: 100%;
	margin: 0;
	padding: 0.55rem 0.65rem;
	border: 1px solid #dde3ea;
	border-radius: 2px;
	background: #fff;
	color: #111827;
	font-size: 0.92rem;
	box-sizing: border-box;
}

#novabb-new-thread #novabb-content {
	min-height: 215px;
}

#novabb-new-thread #novabb-image {
	padding: 0.38rem 0.45rem;
	color: #4b5563;
}

#novabb-new-thread #novabb-image::file-selector-button {
	border: 1px solid #15a4b5;
	background: #15a4b5;
	color: #fff;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	padding: 0.42rem 0.68rem;
	margin-right: 0.65rem;
	border-radius: 2px;
	cursor: pointer;
}

#novabb-new-thread .novabb-custom-image-upload {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.65rem;
}

#novabb-new-thread [data-novabb-custom-image-button] {
	border: 1px solid #15a4b5;
	background: #15a4b5;
	color: #fff;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	padding: 0.42rem 0.68rem;
	border-radius: 2px;
	cursor: pointer;
}

#novabb-new-thread [data-novabb-custom-image-summary] {
	grid-column: auto;
	margin-top: 0;
	display: inline-block;
	color: #6b7280;
	font-size: 0.82rem;
	line-height: 1.4;
	white-space: nowrap;
}

#novabb-new-thread [data-novabb-custom-region-field] {
	display: grid;
	gap: 0.5rem;
}

#novabb-new-thread > p:last-of-type button[type="submit"] {
	border: 1px solid #15a4b5;
	background: #15a4b5;
	color: #fff;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 0.45rem 0.9rem;
	border-radius: 2px;
	cursor: pointer;
}

#novabb-new-thread .novabb-thread-form-actions-row {
	flex-direction: column;
	align-items: flex-end;
	gap: 0.45rem;
}

#novabb-new-thread .novabb-thread-auth-actions {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.45rem;
}

#novabb-new-thread .novabb-thread-auth-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #15a4b5;
	background: #15a4b5;
	color: #fff;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 0.45rem 0.9rem;
	border-radius: 2px;
	text-decoration: none;
}

#novabb-new-thread .novabb-thread-auth-action:hover,
#novabb-new-thread .novabb-thread-auth-action:focus {
	opacity: 0.92;
}

#novabb-new-thread .novabb-thread-auth-action-signup {
	background: #fff;
	color: #15a4b5;
}

#novabb-new-thread .novabb-thread-auth-note {
	display: block;
	margin-top: 0;
	text-align: right;
	max-width: 40rem;
}

body.novabb-auth-modal-open {
	overflow: hidden;
}

.novabb-auth-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: grid;
	place-items: center;
	padding: 1rem;
}

.novabb-auth-modal[hidden] {
	display: none;
}

.novabb-auth-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.58);
}

.novabb-auth-modal-dialog {
	position: relative;
	width: min(30rem, calc(100vw - 2rem));
	padding: 1.15rem 1.15rem 1.1rem;
	background: #fff;
	border: 1px solid #dbe2ea;
	border-radius: 0.6rem;
	box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.novabb-auth-modal-close {
	position: absolute;
	top: 0.32rem;
	right: 0.42rem;
	border: 0;
	background: transparent;
	color: #64748b;
	font-size: 1.45rem;
	line-height: 1;
	padding: 0.1rem 0.35rem;
	cursor: pointer;
}

.novabb-auth-modal-dialog h3 {
	margin: 0 0 0.35rem;
	font-size: 1.08rem;
	color: #0f172a;
}

.novabb-auth-modal-copy,
.novabb-auth-modal-note {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: #475569;
}

.novabb-auth-modal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0.92rem 0 0.62rem;
}

.novabb-auth-modal-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #15a4b5;
	background: #15a4b5;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.48rem 0.85rem;
	border-radius: 2px;
	cursor: pointer;
}

.novabb-auth-modal-action.novabb-auth-modal-action-alt {
	background: #fff;
	color: #15a4b5;
}

.novabb-auth-modal-status {
	margin: 0.6rem 0 0;
	padding-left: 0.6rem;
	border-left: 3px solid #cbd5e1;
	font-size: 0.86rem;
	line-height: 1.42;
	color: #334155;
}

.novabb-auth-modal-status[data-state="error"] {
	border-left-color: #ef4444;
	color: #991b1b;
}

.novabb-auth-modal-status[data-state="success"] {
	border-left-color: #22c55e;
	color: #166534;
}

#novabb-new-thread [data-novabb-status] {
	margin: 0 0 0.85rem;
	padding: 0.62rem 0.75rem;
	border-left: 3px solid #cbd5e1;
	background: #f8fafc;
	color: #374151;
	font-size: 0.9rem;
	line-height: 1.45;
}

#novabb-new-thread [data-novabb-status][data-state="success"] {
	border-left-color: #22c55e;
	background: #f0fdf4;
	color: #166534;
}

#novabb-new-thread [data-novabb-status][data-state="error"] {
	border-left-color: #ef4444;
	background: #fef2f2;
	color: #991b1b;
}

@media (max-width: 900px) {
	#novabb-new-thread > p,
	#novabb-new-thread #novabb-custom-fields > p[data-novabb-thread-core-field],
	#novabb-new-thread #novabb-region-group > p,
	#novabb-new-thread #novabb-custom-fields .novabb-custom-field-row,
	#novabb-new-thread #novabb-custom-fields .novabb-custom-field-card > p {
		grid-template-columns: 1fr;
		row-gap: 0.45rem;
	}

	#novabb-new-thread #novabb-custom-fields .novabb-custom-field-row-image > .novabb-custom-image-upload {
		grid-column: 1;
	}

	#novabb-new-thread small {
		grid-column: 1;
	}

	#novabb-new-thread > p:last-of-type {
		justify-content: flex-start;
	}

	#novabb-new-thread .novabb-thread-form-actions-row {
		align-items: flex-start;
	}

	#novabb-new-thread .novabb-thread-auth-actions {
		justify-content: flex-start;
	}

	#novabb-new-thread .novabb-thread-auth-note {
		text-align: left;
	}

	#novabb-new-thread .novabb-custom-image-upload {
		flex-wrap: wrap;
	}

	.novabb-auth-modal-actions {
		flex-direction: column;
	}
}
