/* ==========================================================================
   MAW Pages Styles (Intro, Stats, Search, Catalogues, Contact)
   ========================================================================== */

/* --- Intro & Stats Page Styling --- */


.intro {
	width: 100%;
	max-width: 1680px;
	padding: 10px 14px 30px;
	line-height: 1.7;
	font-size: 1rem;
	box-sizing: border-box;
}

.intro-header-card {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 243, 232, 0.94) 100%);
	border: 1px solid rgba(141, 116, 64, 0.28);
	border-radius: 18px;
	padding: 24px 28px 20px;
	margin-bottom: 22px;
	box-shadow: 0 10px 24px rgba(36, 29, 17, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
	position: relative;
}

.intro-header-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 40px;
	right: 40px;
	height: 3px;
	background: linear-gradient(90deg, transparent 0%, #b8860b 50%, transparent 100%);
	border-radius: 2px;
}

.intro-main-title {
	margin: 0 0 10px;
	color: #2c241d;
	font-family: 'Lora', Georgia, serif;
	font-size: clamp(1.6rem, 2.5vw, 2.1rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.25;
}

.intro-lead {
	margin: 0 !important;
	color: #7a5a27;
	font-family: 'Lora', Georgia, serif;
	font-size: 1.15rem;
	line-height: 1.6;
}

.intro-section-title {
	margin: 0 0 14px;
	color: #382414;
	font-family: 'Lora', Georgia, serif;
	font-size: 1.35rem;
	font-weight: 700;
	position: relative;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(141, 116, 64, 0.2);
}

.intro-main-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.95fr);
	gap: 22px;
	align-items: stretch;
	margin-bottom: 24px;
}

.intro-about-card {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 244, 233, 0.92) 100%);
	border: 1px solid rgba(141, 116, 64, 0.24);
	border-radius: 16px;
	padding: 22px 24px;
	box-shadow: 0 8px 22px rgba(36, 29, 17, 0.05);
	color: #3e3223;
}

.intro-about-card p {
	margin: 0 0 14px;
	line-height: 1.7;
}

.intro-about-card p:last-child {
	margin-bottom: 0;
}

.intro-contribute-card {
	background: linear-gradient(180deg, rgba(252, 248, 238, 0.98) 0%, rgba(246, 238, 222, 0.95) 100%);
	border: 1px solid rgba(184, 134, 11, 0.35);
	border-radius: 16px;
	padding: 22px 24px;
	box-shadow: 0 8px 22px rgba(36, 29, 17, 0.05);
	display: flex;
	flex-direction: column;
}

.intro-kicker {
	display: inline-block;
	margin-bottom: 6px;
	color: #8c6820;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.intro-contribute-title {
	margin: 0 0 12px;
	color: #382414;
	font-family: 'Lora', Georgia, serif;
	font-size: 1.25rem;
	font-weight: 700;
	border-bottom: 1px solid rgba(184, 134, 11, 0.25);
	padding-bottom: 8px;
}

.intro-contribute-card p {
	margin: 0 0 12px;
	font-size: 0.94rem;
	line-height: 1.6;
	color: #4a3a27;
}

.intro-email-cta {
	margin-top: auto;
	padding-top: 10px;
}

.intro-email-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 18px;
	border-radius: 24px;
	background: linear-gradient(135deg, #996515 0%, #7e520f 100%);
	color: #ffffff !important;
	font-weight: 600;
	font-size: 0.92rem;
	text-decoration: none !important;
	box-shadow: 0 4px 12px rgba(126, 82, 15, 0.28);
	transition: all 0.2s ease;
}

.intro-email-btn:hover {
	background: linear-gradient(135deg, #ad7319 0%, #905e12 100%);
	box-shadow: 0 6px 16px rgba(126, 82, 15, 0.38);
	transform: translateY(-1px);
	color: #ffffff !important;
}

/* Features section */
.intro-features-section {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(249, 243, 232, 0.92) 100%);
	border: 1px solid rgba(141, 116, 64, 0.24);
	border-radius: 16px;
	padding: 22px 24px 20px;
	margin-bottom: 22px;
	box-shadow: 0 8px 22px rgba(36, 29, 17, 0.05);
}

.intro-features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
	margin-top: 14px;
}

.intro-feature-item {
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid rgba(141, 116, 64, 0.2);
	border-radius: 12px;
	padding: 16px 18px;
	transition: all 0.2s ease;
}

.intro-feature-item:hover {
	background: #ffffff;
	border-color: rgba(141, 116, 64, 0.45);
	box-shadow: 0 6px 16px rgba(36, 29, 17, 0.08);
	transform: translateY(-2px);
}

.intro-feature-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: rgba(184, 134, 11, 0.14);
	color: #7b5810;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}

.intro-feature-item h3 {
	margin: 0 0 8px;
	font-family: 'Lora', Georgia, serif;
	font-size: 1.05rem;
	font-weight: 700;
	color: #2e2014;
}

.intro-feature-item p {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.55;
	color: #554432;
}

/* Thanks card */
.intro-thanks-card {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(249, 243, 232, 0.92) 100%);
	border: 1px solid rgba(141, 116, 64, 0.24);
	border-radius: 16px;
	padding: 20px 24px;
	box-shadow: 0 8px 22px rgba(36, 29, 17, 0.05);
}

.intro-thanks-list {
	margin: 0;
	padding-left: 24px;
	color: #4c3c2b;
	line-height: 1.7;
}

.intro-thanks-list li + li {
	margin-top: 8px;
}
.clearer {
	clear: both;
	height: 5px;
}

#layoutFooter {
	clear: both;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 14px;
	box-sizing: border-box;
	background: linear-gradient(180deg, #e9d7ab 0%, #d0ae68 100%);
	border-top: 1px solid rgba(41, 38, 23, 0.25);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

#layoutFooter .footer-admin-link {
	font-size: 11.5px;
	font-weight: 600;
	color: #2c241d;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 12px;
	border-radius: 6px;
	transition: background 0.15s ease, color 0.15s ease;
}

#layoutFooter .footer-admin-link:hover {
	color: #000000;
	background: rgba(255, 255, 255, 0.45);
	text-decoration: none;
}

#layoutFooter .siteinfoLegal {
	display: inline-flex;
	align-items: center;
	margin-left: auto;
}

#layoutFooter .siteinfoText {
	font-size: 12px;
	color: #2f2318;
	margin-right: 8px;
	line-height: 22px;
	vertical-align: middle;
}

/* --- Modernized Statistics Page Styling --- */

.stats-page {
	width: 100%;
	box-sizing: border-box;
}

/* ==========================================================================
   Ultra-Compact Multi-Column Statistics (Original layout, modernized)
   ========================================================================== */

.stats-page {
	width: 100%;
	box-sizing: border-box;
	text-align: center;
}

.stats-summary-bar {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 246, 238, 0.96) 100%);
	border: 1px solid rgba(141, 116, 64, 0.28);
	border-radius: 12px;
	padding: 12px 18px 10px;
	margin: 0 auto 16px;
	width: 100%;
	max-width: 100%;
	text-align: center;
	font-size: 0.94rem;
	color: #2c1e10;
	box-shadow: 0 3px 12px rgba(36, 29, 17, 0.05);
}

.stats-summary-bar strong {
	color: #80602e;
	font-weight: 700;
}

.stats-summary-bar .stats-bar-track {
	width: 100%;
	max-width: 480px;
	height: 6px;
	background: rgba(141, 116, 64, 0.16);
	border-radius: 4px;
	overflow: hidden;
	margin: 8px auto 3px;
}

.stats-summary-bar .stats-bar-fill {
	height: 100%;
	background: linear-gradient(90deg, #b8860b 0%, #2e7d32 100%);
	border-radius: 4px;
	transition: width 0.3s ease;
}

.stats-table-container {
	width: 100%;
	overflow-x: auto;
	margin: 0 auto;
	text-align: center;
}

.stats-multi-table {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 0.82rem;
	background: #ffffff;
	box-shadow: 0 4px 16px rgba(36, 29, 17, 0.06);
	border: 1px solid rgba(141, 116, 64, 0.3);
	border-radius: 8px;
	overflow: hidden;
}

.stats-multi-table th {
	background: linear-gradient(180deg, #f0dfb8 0%, #d8b875 100%);
	background-color: #e9d7ab;
	color: #2c1e10;
	padding: 7px 6px;
	font-weight: 700;
	font-size: 0.76rem;
	letter-spacing: 0.3px;
	text-align: center;
	white-space: nowrap;
	border-bottom: 2px solid rgba(141, 116, 64, 0.4);
	border-right: 1px solid rgba(141, 116, 64, 0.2);
	text-shadow: none;
}

.stats-multi-table th.col-divider {
	border-right: 2px solid rgba(141, 116, 64, 0.45);
}

.stats-multi-table td.col-divider {
	border-right: 2px solid rgba(141, 116, 64, 0.35);
}

.stats-multi-table td {
	padding: 5px 6px;
	text-align: center;
	border-bottom: 1px solid rgba(141, 116, 64, 0.12);
	border-right: 1px solid rgba(141, 116, 64, 0.08);
	white-space: nowrap;
	color: #2b1d10;
	font-size: 0.82rem;
}

.stats-multi-table tr:nth-child(even) td {
	background: #faf8f5;
}

.stats-multi-table tr:hover td {
	background: #f4ede0;
}

.stats-multi-table td a {
	color: #80602e !important;
	font-weight: 700;
	text-decoration: none !important;
}

.stats-multi-table td a:hover {
	color: #5d4421 !important;
	text-decoration: underline !important;
}

.stats-pct-cell {
	padding: 3px 4px !important;
}

.stats-pct-badge {
	display: inline-block;
	min-width: 48px;
	padding: 2px 6px;
	border-radius: 10px;
	font-weight: 700;
	font-size: 0.74rem;
	letter-spacing: 0.2px;
	text-align: center;
	box-sizing: border-box;
}

.pct-high {
	background-color: #e6f4ea !important;
	color: #137333 !important;
	border: 1px solid rgba(19, 115, 51, 0.3);
}

.pct-mid {
	background-color: #fef7e0 !important;
	color: #b06000 !important;
	border: 1px solid rgba(176, 96, 0, 0.3);
}

.pct-low {
	background-color: #fce8e6 !important;
	color: #c5221f !important;
	border: 1px solid rgba(197, 34, 31, 0.3);
}
.emulated-flex-gap {
	--gap: 14px;
	display: inline-flex;
	flex-wrap: wrap;
	margin: calc(-1 * var(--gap)) 0 0 calc(-1 * var(--gap));
	width: calc(100% + var(--gap));
}

.emulated-flex-gap > * {
	margin: var(--gap) 0 0 var(--gap);
}

.gallery2 {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	text-align: center;
	gap: 0;
	margin-top: 40px;
}

/* --- Search Form & Results Styling --- */


.search-page {
	width: 100%;
	box-sizing: border-box;
}

.search-hero-card {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 243, 232, 0.94) 100%);
	border: 1px solid rgba(141, 116, 64, 0.28);
	border-radius: 18px;
	padding: 22px 28px 18px;
	margin-bottom: 20px;
	box-shadow: 0 10px 24px rgba(36, 29, 17, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
	position: relative;
}

.search-hero-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 40px;
	right: 40px;
	height: 3px;
	background: linear-gradient(90deg, transparent 0%, #b8860b 50%, transparent 100%);
	border-radius: 2px;
}

.search-main-title {
	margin: 0 0 8px;
	color: #2c241d;
	font-family: 'Lora', Georgia, serif;
	font-size: clamp(1.5rem, 2.5vw, 1.95rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.25;
}

.search-lead {
	margin: 0 !important;
	color: #7a5a27;
	font-family: 'Lora', Georgia, serif;
	font-size: 1.05rem;
	line-height: 1.55;
}

/* Search Form Card */
.search-card-wrapper {
	margin-bottom: 24px;
}

#searchForm.search-form-card {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(250, 244, 233, 0.94) 100%);
	border: 1px solid rgba(141, 116, 64, 0.28);
	border-radius: 18px;
	padding: 24px 28px 22px;
	box-shadow: 0 10px 28px rgba(36, 29, 17, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.95);
	box-sizing: border-box;
}

.search-form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 28px;
	align-items: start;
}

.search-col {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.search-label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 8px;
	font-weight: 700;
	font-size: 0.92rem;
	color: #4a3622;
	letter-spacing: 0.01em;
}

.search-label svg {
	color: #8d7440;
	flex-shrink: 0;
}

/* Text Inputs */
.search-input-wrap input[type="text"] {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 14px;
	font-size: 0.95rem;
	font-family: inherit;
	color: #2b1d10;
	background: #ffffff;
	border: 1.5px solid rgba(141, 116, 64, 0.32);
	border-radius: 10px;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input-wrap input[type="text"]:focus {
	outline: none;
	border-color: #8d7440;
	box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.18), inset 0 1px 2px rgba(0,0,0,0.03);
}

.search-input-wrap input[type="text"]::placeholder {
	color: #a89882;
	font-size: 0.88rem;
}

/* Year & Month Dropdowns */
.year-month-box {
	display: flex;
	gap: 12px;
	width: 100%;
	box-sizing: border-box;
}

.search-select-wrap {
	flex: 1;
	min-width: 0;
	position: relative;
}

.search-select-wrap select {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 14px;
	font-size: 0.92rem;
	font-family: inherit;
	color: #2b1d10;
	background: #ffffff;
	border: 1.5px solid rgba(141, 116, 64, 0.32);
	border-radius: 10px;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-select-wrap select:focus {
	outline: none;
	border-color: #8d7440;
	box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.18);
}

/* Toggle chips for special and francotyp */
.search-toggles-group {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 4px;
}

/* Segmented pill group for image status */
.segmented-radio-group {
	display: inline-flex;
	padding: 4px;
	background: rgba(141, 116, 64, 0.12);
	border-radius: 24px;
	gap: 4px;
	border: 1px solid rgba(141, 116, 64, 0.22);
	flex-wrap: wrap;
}

.segmented-pill {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: 20px;
	cursor: pointer;
	font-size: 0.88rem;
	font-weight: 600;
	color: #55412b;
	transition: all 0.2s ease;
	user-select: none;
}

.segmented-pill input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.segmented-pill:hover {
	background: rgba(255, 255, 255, 0.65);
	color: #2a1b0e;
}

.segmented-pill:has(input:checked),
.segmented-pill.is-active {
	background: #ffffff;
	color: #80602e;
	box-shadow: 0 2px 8px rgba(36, 29, 17, 0.12);
}

/* Action Buttons */
.search-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top: 8px;
	padding-top: 8px;
}

.search-btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 22px;
	border-radius: 24px;
	background: linear-gradient(135deg, #8c6932 0%, #705326 100%);
	color: #ffffff !important;
	border: 1px solid #705326;
	font-weight: 700;
	font-size: 0.95rem;
	font-family: inherit;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(112, 83, 38, 0.25);
	transition: all 0.2s ease;
}

.search-btn-primary:hover:not(:disabled) {
	background: linear-gradient(135deg, #9d7739 0%, #80602e 100%);
	box-shadow: 0 6px 18px rgba(112, 83, 38, 0.35);
	transform: translateY(-1px);
}

.search-btn-primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.search-btn-secondary {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 10px 18px;
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.85);
	color: #6e4f2b !important;
	border: 1.5px solid rgba(141, 116, 64, 0.4);
	font-weight: 600;
	font-size: 0.92rem;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.2s ease;
}

.search-btn-secondary:hover {
	background: #ffffff;
	border-color: rgba(141, 116, 64, 0.7);
	color: #382414 !important;
	box-shadow: 0 3px 10px rgba(36, 29, 17, 0.08);
	transform: translateY(-1px);
}

.search-btn-ghost {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	border-radius: 24px;
	background: transparent;
	color: #7b6852 !important;
	border: 1px solid rgba(141, 116, 64, 0.25);
	font-weight: 500;
	font-size: 0.88rem;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.2s ease;
}

.search-btn-ghost:hover {
	background: rgba(255, 255, 255, 0.7);
	border-color: rgba(141, 116, 64, 0.45);
	color: #382414 !important;
}

/* Results section */
#search-results {
	width: 100%;
	margin-top: 24px;
	box-sizing: border-box;
}

.search-results-summary {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 10px 0 24px;
}

.search-count-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 16px;
	border-radius: 20px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 242, 230, 0.95) 100%);
	border: 1px solid rgba(141, 116, 64, 0.28);
	color: #55412b;
	font-size: 0.95rem;
	box-shadow: 0 4px 12px rgba(36, 29, 17, 0.06);
}

.search-count-badge svg {
	color: #8d7440;
}

.search-count-badge strong {
	color: #2b1d10;
	font-size: 1.05rem;
}

/* Empty state */
.search-empty-state {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(249, 243, 232, 0.92) 100%);
	border: 1px solid rgba(141, 116, 64, 0.24);
	border-radius: 16px;
	padding: 40px 24px;
	text-align: center;
	max-width: 540px;
	margin: 20px auto;
	box-shadow: 0 8px 24px rgba(36, 29, 17, 0.05);
}

.search-empty-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(184, 134, 11, 0.12);
	color: #8d7440;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
}

.search-empty-title {
	margin: 0 0 8px;
	color: #382414;
	font-family: 'Lora', Georgia, serif;
	font-size: 1.25rem;
	font-weight: 700;
}

.search-empty-desc {
	margin: 0;
	font-size: 0.94rem;
	line-height: 1.6;
	color: #6a5843;
}
#search-results {
    margin-top: 20px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    margin-left: 0;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 0;
}

.pagination a, .pagination strong {
    padding: 10px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    flex-shrink: 0;
    min-width: max-content;
}

.pagination a {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background-color: #80602e;
    color: white;
    border-color: #80602e;
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.pagination strong {
    background-color: #e9d7ab;
    color: #2f2318;
    font-weight: bold;
    border: 1px solid #d0ae68;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pagination-dots {
    padding: 8px 6px;
    color: #999;
    font-size: 14px;
    font-weight: bold;
    cursor: default;
}

.pagination a.prev-btn:hover,
.pagination a.next-btn:hover {
    background-color: #80602e;
    border-color: #80602e;
    transform: translateY(-2px);
}

.pagination a span.arrow {
    display: inline-block;
    margin: 0 6px;
    font-weight: bold;
      color: inherit;
    transition: all 0.3s ease;
    vertical-align: middle;
    letter-spacing: 0;
}

.pagination a:hover span.arrow {
    transform: scale(1.4) translateY(-2px);
}

/* Pages Responsive Styling */
@media screen and (max-width: 768px) {
    .intro-main-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .intro-header-card {
        padding: 16px 16px 14px;
    }
    .intro-features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .search-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    #searchForm.search-form-card {
        padding: 16px 14px;
        border-radius: 14px;
    }
    .search-actions {
        flex-direction: column;
        width: 100%;
    }
    .search-btn-primary,
    .search-btn-secondary,
    .search-btn-ghost {
        width: 100%;
        justify-content: center;
    }
    .year-month-box {
        flex-direction: column;
        gap: 8px;
    }
    .stats-multi-table th,
    .stats-multi-table td {
        padding: 6px 8px;
        font-size: 0.85rem;
    }
}

/* Wide and centered search results & 4 cards in a row */
.search,
.search-card-wrapper,
#search-results,
.search-results-grid {
	width: 100% !important;
	max-width: 100% !important;
	margin: 20px auto 0 !important;
	box-sizing: border-box !important;
	clear: both !important;
}

.search-results-summary {
	width: 100% !important;
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	margin: 16px auto 20px !important;
	text-align: center !important;
}

.gallery2.details-cards,
.gallery2.details-cards.emulated-flex-gap,
.search-results-grid .gallery2.details-cards,
.search-page .gallery2.details-cards,
#search-results .gallery2.details-cards {
	display: flex !important;
	flex-wrap: wrap !important;
	justify-content: center !important;
	align-items: stretch !important;
	gap: 20px !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 16px auto 0 !important;
	padding: 0 !important;
	box-sizing: border-box !important;
}

.gallery2.details-cards figure,
.gallery2.details-cards.emulated-flex-gap > figure,
.gallery2.details-cards.emulated-flex-gap > *,
.search-results-grid .gallery2.details-cards figure,
.search-page .gallery2.details-cards figure,
#search-results .gallery2.details-cards figure {
	margin: 0 !important;
	flex: 0 0 calc((100% - 3 * 20px) / 4) !important;
	max-width: calc((100% - 3 * 20px) / 4) !important;
	width: calc((100% - 3 * 20px) / 4) !important;
	min-width: 0 !important;
	height: auto !important;
	display: flex !important;
	justify-content: center !important;
	box-sizing: border-box !important;
}

@media screen and (max-width: 768px) {
    .gallery2.details-cards,
    .gallery2.details-cards.emulated-flex-gap,
    .search-results-grid .gallery2.details-cards,
    .search-page .gallery2.details-cards,
    #search-results .gallery2.details-cards {
        gap: 14px !important;
    }
    .gallery2.details-cards figure,
    .gallery2.details-cards.emulated-flex-gap > figure,
    .gallery2.details-cards.emulated-flex-gap > *,
    .search-results-grid .gallery2.details-cards figure,
    .search-page .gallery2.details-cards figure,
    #search-results .gallery2.details-cards figure {
        flex: 0 0 calc((100% - 14px) / 2) !important;
        max-width: calc((100% - 14px) / 2) !important;
        width: calc((100% - 14px) / 2) !important;
    }
}

@media screen and (max-width: 480px) {
    .gallery2.details-cards,
    .gallery2.details-cards.emulated-flex-gap,
    .search-results-grid .gallery2.details-cards,
    .search-page .gallery2.details-cards,
    #search-results .gallery2.details-cards {
        gap: 12px !important;
    }
    .gallery2.details-cards figure,
    .gallery2.details-cards.emulated-flex-gap > figure,
    .gallery2.details-cards.emulated-flex-gap > *,
    .search-results-grid .gallery2.details-cards figure,
    .search-page .gallery2.details-cards figure,
    #search-results .gallery2.details-cards figure {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}


/* Search loading indicator */
.search-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 12px;
    color: #80602e;
    font-weight: 600;
}

.search-loading .spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(128, 96, 46, 0.2);
    border-top-color: #80602e;
    border-radius: 50%;
    animation: searchSpin 0.8s linear infinite;
}

@keyframes searchSpin {
    to { transform: rotate(360deg); }
}
