:root {
  --theme-primary: #996515;
  --theme-primary-dark: #2c241d;
  --theme-primary-light: rgba(153, 101, 21, 0.12);
  --theme-border: rgba(41, 38, 23, 0.18);
  --theme-border-subtle: rgba(41, 38, 23, 0.08);
  --theme-text-body: #2c241d;
  --theme-text-muted: #7a6652;
  --theme-panel-bg: #faf6f0;
  --theme-panel-bg-subtle: #f4eee5;
  --theme-panel-gradient: linear-gradient(180deg, #ffffff 0%, #faf6f0 100%);
  --theme-card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 246, 240, 0.92) 100%);
  --theme-accent-gradient: linear-gradient(90deg, transparent 0%, #996515 50%, transparent 100%);
  --theme-card-shadow: 0 4px 14px rgba(41, 38, 23, 0.04);
  --theme-card-shadow-hover: 0 8px 20px rgba(41, 38, 23, 0.10);
  --nav-bg: #f0dfb8;
  --nav-bg-strong: #d8b875;
  --nav-text: #2f2318;
  --nav-panel-bg: linear-gradient(180deg, #f9f4ec 0%, #f1e7d8 100%);
  --nav-hover-bg: rgba(116, 89, 55, 0.08);
  --nav-active-bg: rgba(116, 89, 55, 0.18);
  --nav-parent-active-bg: rgba(116, 89, 55, 0.12);
  --nav-sub-bg: rgba(41, 38, 23, 0.03);
  --page-bg: #f3efe7;
  --page-shell-bg: #fffdf9;
  --link: #8e6741;
  --link-hover: #2a1f17;
  --border-soft: rgba(41, 38, 23, 0.18);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   1. Top Navigation & SmartMenus Theme (Consolidated)
   ========================================================================== */

/* -------------------------------------------------------------------------
   Base & Mobile Layout (Mobile-first, collapsible mode)
   ------------------------------------------------------------------------- */
.sm-simple {
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

.sm-simple,
.sm-simple * {
  box-sizing: border-box;
}

.sm-simple a,
.sm-simple a:link,
.sm-simple a:visited,
.sm-simple a:hover,
.sm-simple a:focus,
.sm-simple a:active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #2c1e10;
  text-decoration: none;
  position: relative;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sm-simple a:hover,
.sm-simple a:focus {
  background: rgba(255, 255, 255, 0.55);
  color: #6b1d2f;
}

.sm-simple a.disabled {
  color: #8c7660;
  cursor: default;
}

/* Sub-indicator: Clear, solid, high-contrast marker - NO movement */
.sm-simple a .sub-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: auto;
  flex: 0 0 14px;
  pointer-events: none;
}

.sm-simple a .sub-arrow::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #241608;
  transform: none !important;
  transition: none !important;
}

.sm-simple li {
  position: relative;
  border-top: 1px solid rgba(80, 50, 15, 0.08);
}

.sm-simple > li:first-child {
  border-top: 0;
}

.sm-simple ul {
  position: static;
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgba(240, 228, 209, 0.55);
  border-top: 1px solid rgba(80, 50, 15, 0.08);
  border-bottom: 1px solid rgba(80, 50, 15, 0.08);
}

.sm-simple ul a,
.sm-simple ul a:link,
.sm-simple ul a:visited {
  padding: 10px 18px 10px 32px;
  font-size: 13.5px;
  font-weight: 500;
  color: #3b2b1a;
  border-left: 3px solid transparent;
}

.sm-simple ul a:hover,
.sm-simple ul a:focus {
  background: rgba(255, 255, 255, 0.65);
  color: #6b1d2f;
  border-left-color: #c5a059;
}

.sm-simple ul ul a {
  padding-left: 44px;
}

.sm-simple ul a img {
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.sm-simple .menu-globe-icon {
  width: 19px;
  height: 19px;
  vertical-align: middle;
  margin-right: 6px;
}

/* -------------------------------------------------------------------------
   Desktop Layout (min-width: 769px)
   STRICT: All items have IDENTICAL styling, zero width shift, zero movement
   ------------------------------------------------------------------------- */
@media (min-width: 769px) {
  .topmenu-mobile-bar {
    display: none !important;
  }

  #layoutMenu {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
  }

  #topmenu-nav {
    height: 32px;
  }

  #main-menu {
    display: block !important;
    height: 32px;
  }

  .sm-simple {
    display: flex;
    align-items: center;
    width: 100%;
    height: 32px;
  }

  .sm-simple > li {
    float: left;
    height: 32px;
    border-top: 0;
    border-left: 0;
  }

  .sm-simple > li.langglobe {
    margin-left: auto;
  }

  .sm-simple > li > a,
  .sm-simple > li > a:link,
  .sm-simple > li > a:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12px !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 32px !important;
    white-space: nowrap;
    color: #2c1e10 !important;
    text-decoration: none;
    background: transparent;
    transition: background-color 0.15s ease, color 0.15s ease;
  }

  .sm-simple > li > a:hover,
  .sm-simple > li > a:focus,
  .sm-simple > li > a.highlighted {
    background: rgba(255, 255, 255, 0.35) !important;
    color: #1a1107 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 0 12px !important;
    height: 32px !important;
    line-height: 32px !important;
    transform: none !important;
  }

  .sm-simple > li > a.has-submenu {
    padding: 0 12px !important;
  }

  .sm-simple > li > a .sub-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 9px;
    height: 9px;
    margin-left: 6px;
    margin-right: 0;
    flex: 0 0 9px;
    position: static;
    border: none;
    background: transparent;
    pointer-events: none;
  }

  .sm-simple > li > a .sub-arrow::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 4.5px solid transparent;
    border-right: 4.5px solid transparent;
    border-top: 5.5px solid #241608;
    opacity: 0.92;
    transform: none !important;
    transition: none !important;
  }

  .sm-simple > li > a:hover .sub-arrow::after,
  .sm-simple > li > a:focus .sub-arrow::after,
  .sm-simple > li > a.highlighted .sub-arrow::after {
    border-top-color: #1a0f05;
    opacity: 1;
    transform: none !important;
    transition: none !important;
  }

  .sm-simple ul {
    position: absolute;
    top: 100%;
    width: auto;
    min-width: 13em;
    background: #ffffff;
    border: 1px solid rgba(80, 50, 15, 0.15);
    border-radius: 8px;
    box-shadow: 0 10px 25px -4px rgba(44, 33, 19, 0.18), 0 4px 8px -2px rgba(44, 33, 19, 0.08);
    padding: 5px 0;
    z-index: 1000;
  }

  .sm-simple ul li {
    float: none;
    border-top: 0;
    height: auto;
  }

  .sm-simple ul a,
  .sm-simple ul a:link,
  .sm-simple ul a:visited {
    display: flex;
    align-items: center;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4 !important;
    white-space: nowrap;
    color: #2c1e10;
    border-left: 3px solid transparent;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  }

  .sm-simple ul a:hover,
  .sm-simple ul a:focus,
  .sm-simple ul a:active,
  .sm-simple ul a.highlighted {
    background: #fbf6ec;
    color: #6b1d2f;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 7px 16px !important;
    border-left-color: #c5a059;
    transform: none !important;
  }

  .sm-simple ul a .sub-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 8px;
    height: 8px;
    margin-left: auto;
    flex: 0 0 8px;
    pointer-events: none;
  }

  .sm-simple ul a .sub-arrow::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid #241608;
    transform: none !important;
    transition: none !important;
  }

  .sm-simple > li.langglobe > a {
    padding: 0 10px !important;
  }

  .sm-simple > li.langglobe .lang-menu-text {
    display: none;
  }

  .sm-simple > li.langglobe > ul {
    right: 0 !important;
    left: auto !important;
    min-width: 9.5em;
    width: auto;
  }

  .sm-simple > li.langglobe > ul a {
    white-space: nowrap;
    gap: 8px;
  }
}

/* -------------------------------------------------------------------------
   Mobile Specific Layout (max-width: 768px)
   ------------------------------------------------------------------------- */
@media (max-width: 768px) {
  #layoutMenu {
    position: relative;
    height: auto !important;
    min-height: 42px !important;
    background: linear-gradient(180deg, #f0dfb8 0%, #d8b875 100%);
    border-bottom: 1px solid rgba(80, 50, 15, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 2px 4px rgba(0, 0, 0, 0.04);
    z-index: 1000;
  }

  .topmenu-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 42px;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .main-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 11px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(80, 50, 15, 0.22);
    border-radius: 6px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #2c1e10;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  }

  .main-menu-btn:active {
    transform: scale(0.97);
  }

  .main-menu-btn:hover {
    background: rgba(255, 255, 255, 0.6);
  }

  .main-menu-btn-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 15px;
    height: 12px;
  }

  .main-menu-btn-icon .bar {
    display: block;
    width: 100%;
    height: 2px;
    background: #2c1e10;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  #layoutMenu.menu-open .main-menu-btn-icon .bar-1 {
    transform: translateY(5px) rotate(45deg);
  }

  #layoutMenu.menu-open .main-menu-btn-icon .bar-2 {
    opacity: 0;
  }

  #layoutMenu.menu-open .main-menu-btn-icon .bar-3 {
    transform: translateY(-5px) rotate(-45deg);
  }

  .mobile-quick-lang {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  .mobile-quick-lang .m-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(80, 50, 15, 0.18);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #2c1e10;
    text-decoration: none;
    transition: all 0.15s ease;
  }

  .mobile-quick-lang .m-lang-btn:hover {
    background: rgba(255, 255, 255, 0.6);
  }

  .mobile-quick-lang .m-lang-btn.is-active {
    background: #6b1d2f;
    border-color: #6b1d2f;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(107, 29, 47, 0.3);
  }

  .mobile-quick-lang .m-lang-btn img {
    border-radius: 1px;
  }

  #main-menu {
    display: none;
    position: absolute;
    top: 42px;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(180deg, #fdfbf7 0%, #f6ede0 100%);
    border-bottom: 3px solid #c5a059;
    box-shadow: 0 16px 32px rgba(44, 33, 19, 0.22);
    z-index: 9999;
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
  }

  #main-menu.is-open {
    display: block;
  }

  .sm-simple a {
    padding: 12px 18px;
    font-size: 14px;
  }

  .sm-simple > li {
    float: none;
    width: 100%;
    border-top: 1px solid rgba(80, 50, 15, 0.08);
  }

  .sm-simple > li:first-child {
    border-top: 0;
  }

  .sm-simple > li.langglobe {
    display: none !important;
  }

  .sm-simple .lang-menu-text {
    display: inline;
  }
}

/* ==========================================================================
   2. Core Site Layout & Styles
   ========================================================================== */

:root {
	--page-bg: #f3efe7;
	--page-shell-bg: #fffdf9;
	--nav-bg: #e9d7ab;
	--nav-bg-strong: #d0ae68;
	--nav-text: #2f2318;
	--content-text: #2c241d;
	--link: #8e6741;
	--border-soft: rgba(41, 38, 23, 0.18);
	--panel-bg: #f8f3ec;
	--shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.08);
	--card-border: 1px solid rgba(47, 35, 24, 0.14);
	--card-radius: 12px;
	--card-shadow: 0 2px 10px rgba(31, 22, 15, 0.08);
	--card-shadow-hover: 0 6px 16px rgba(31, 22, 15, 0.13);
	--card-transition: box-shadow 0.3s ease;
	--grid-gap: 15px;
	--grid-row-gap: 40px;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

@font-face {
  font-family: MainTitle;
  src: url('../fonts/PlayfairDisplay-Bold.ttf');
}

@font-face {
    font-family: 'stamp_symbolsregular';
    src: url('../fonts/stampsymbols-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

#specfont,
.specfont {
	font-family: 'stamp_symbolsregular', sans-serif !important;
	font-size: 13px;
	display: inline-block;
	font-style: normal;
	line-height: 1;
}

td.cell-extra #specfont,
td.cell-extra .specfont,
.mobile-meta-pill #specfont,
.mobile-meta-pill .specfont {
	font-family: 'stamp_symbolsregular', sans-serif !important;
	font-size: 14px;
	line-height: 1;
	vertical-align: middle;
}

body {
	margin: 0;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	line-height: 1.5;
	background: linear-gradient(180deg, #f0e8dc 0%, #f8f4ee 100%);
	color: var(--content-text);
}

@media (max-width: 768px) {
	body {
		overflow-x: hidden;
	}
}

/* Headings use Lora (elegant serif for historical context) */
h3, h4 {
	font-family: 'Lora', Georgia, 'Times New Roman', serif;
	font-weight: 700;
	line-height: 1.3;
}

/* h2 uses modern sans-serif */
h2 {
	font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-weight: 600;
	line-height: 1.4;
}

#container {
	width: 96%;
	max-width: 1720px;
	margin: 14px auto 20px auto;
	background: var(--page-shell-bg);
	box-shadow: var(--shadow-soft);
	border-radius: 16px;
	overflow: hidden;
}

/* top menu begins */
#layoutMenu {
	position: relative;
	height: 32px;
	background: linear-gradient(180deg, #f0dfb8 0%, #d8b875 100%);
	border-bottom: 1px solid rgba(80, 50, 15, 0.2);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 2px 4px rgba(0, 0, 0, 0.04);
	z-index: 100;
}

#layoutMenu nav {
	height: 100%;
}
/* top menu ends */

/* header begins*/
#layoutHeader {
	background: url(../images/header.jpg) no-repeat left;
	position: relative;
	width: 100%;
	height: 116px;
	border-bottom: 1px solid var(--border-soft);
}

.maintitle {
	text-shadow: 2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff, 1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff;
	color: #333;
	opacity: 1;
	font: clamp(20px, 2.5vw, 48px) 'MainTitle';
	position: absolute;
	bottom: 1px;
	right: 10px;
	text-align: right;
	white-space: nowrap;
}

.maintitle br {
	display: none;
}

@media (max-width: 1100px) {
	.maintitle {
		font: clamp(18px, 3vw, 28px) 'MainTitle';
		line-height: 1.12;
		bottom: 6px;
		white-space: normal;
	}

	.maintitle br {
		display: inline;
	}
}
/* header ends*/

/*central wrapper begins*/
#layoutCenterBody {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 10px 5px 0 10px;
	padding-bottom: 18px;
	min-width: 0;
	max-width: 100%;
}

#layoutNavigation {
    width: 200px;
    border: 1px solid var(--border-soft);
    background: linear-gradient(180deg, #f9f4ec 0%, #f1e7d8 100%);
    float: none;
    flex: 0 0 200px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
    border-radius: 12px;
    overflow: hidden;
}

#layoutBodyContent {
	margin-left: 0;
	margin-right: 0;
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
	width: 100%;
	overflow-x: hidden;
	box-sizing: border-box;
	padding: 16px 20px;
	background: linear-gradient(180deg, rgba(248,243,236,0.95), rgba(255,255,255,0.8));
	border: 1px solid rgba(54, 44, 34, 0.12);
	border-radius: 12px;
	box-shadow: 0 8px 20px rgba(41, 38, 23, 0.04);
}

#layoutBodyContent > :first-child {
	margin-top: 0;
}

#layoutBodyContent a:link, #layoutBodyContent a:visited {
    color: var(--link);
    text-decoration: none;
}

#layoutBodyContent h1 {
    color: var(--content-text);
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 14px;
}

#layoutBodyContent h2 {
	color: var(--content-text);
}

#layoutBodyContent p {
    margin-top: 5px;
	color: var(--content-text);
}

.clearer {
    clear: both;
    height: 0;
    line-height: 0;
    font-size: 0;
}

#layoutFooter {
	clear: both;
    height: 34px;
    background: linear-gradient(180deg, #e9d7ab 0%, #d0ae68 100%);
    border-top: 1px solid rgba(41, 38, 23, 0.25);
    overflow: hidden;
}

#layoutFooter .siteinfoLegal {
    float: right;
    padding: 6px;
}

#layoutNavigation .navTitle {
    background: linear-gradient(180deg, #e9d7ab 0%, #d0ae68 100%);
    color: var(--nav-text);
    font-weight: bold;
    padding: 6px 8px;
    letter-spacing: 0.02em;
    margin: 0 !important;
}

#layoutNavigation1 {
	padding: 0;
}

#layoutNavigation ul.topnav,
#layoutNavigation ul.topnav ul,
#layoutNavigation dl.table-display {
	margin: 0 !important;
	padding: 0 !important;
}

#layoutNavigation ul.topnav li {
	margin: 0;
	padding: 0;
}

#layoutNavigation .topnav li:last-child a {
	border-bottom: none;
}

#layoutNavigation a {
	display: block;
	background: transparent;
	border-bottom: 1px solid rgba(98, 76, 51, 0.18);
	margin: 0;
    color: #3d2f22;
    text-decoration: none;
	padding: 5px 10px;
	line-height: 1.45;
}

#layoutNavigation a:hover {
    color: #2a1f17;
	background: rgba(116, 89, 55, 0.06);
}

#layoutNavigation .active a {
	color: #2a1f17;
	font-weight: bold;
	background: rgba(116, 89, 55, 0.1);
}

#layoutNavigation .topnav {
    list-style: none;
	font-weight: bold;
	line-height: 1.35;
}

.legend-mobile-wrapper {
    margin-top: 8px;
}

.legend-details {
    display: block;
}

.legend-mobile-toggle {
    display: none;
    width: 100%;
    border: 0;
    background: linear-gradient(180deg, #e9d7ab 0%, #d0ae68 100%);
}

.legend-panel .navTitle {
    display: block;
}

dl.table-display dt {
	width: 48px;
	margin: 0;
	padding: 2px 1px 2px 7px;
	float: left;
    clear: left;
	font-size: 11px;
}

dl.table-display dd {
	width: 140px;
	float: left;
	font-size: 11px;
	font-weight: normal;
	padding: 2px;
	margin: 0;
}

.table-display:after {
    content: '';
    display: table;
    clear: both;
}

/* Postmark Search Table & Gallery */
.searchresult {
    margin: 15px 0;
    border: 1px solid rgba(141, 116, 64, 0.22);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(45, 35, 20, 0.06);
    background: #ffffff;
}

.searchresult-table-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.searchresult-table {
    border-collapse: collapse;
    width: 100%;
    min-width: 860px;
    font-size: 13px;
    text-align: left;
}

.searchresult-table thead th {
    background: linear-gradient(180deg, #f4e8cc 0%, #dfc385 100%);
    border-bottom: 2px solid #b8860b;
    padding: 8px 6px;
    font-weight: 700;
    color: #2b1f13;
    white-space: nowrap;
    vertical-align: middle;
}

.searchresult-table thead th.th-b,
.searchresult-table tbody td.searchresult-cell-b {
    padding: 6px 3px;
    width: 42px;
}

.searchresult-table thead th.th-title,
.searchresult-table tbody td.cell-title {
    padding-left: 10px;
    padding-right: 8px;
}

.th-b-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.searchresult-b-header-img {
    width: 38px !important;
    height: 38px !important;
    object-fit: contain;
    display: block;
}

.b-header-sub {
    font-size: 10px;
    font-weight: 700;
    color: #5a4114;
    background: rgba(255, 255, 255, 0.6);
    padding: 1px 5px;
    border-radius: 4px;
    line-height: 1.1;
}

.searchresult-table tbody tr:nth-child(even) {
    background: #faf6f0;
}

.searchresult-table tbody tr:nth-child(odd) {
    background: #ffffff;
}

.searchresult-table tbody tr:hover {
    background: #f4ead7;
    transition: background-color 0.15s ease;
}

.searchresult-table tbody td {
    padding: 6px 10px;
    border-bottom: 1px solid rgba(141, 116, 64, 0.12);
    vertical-align: middle;
}

.cell-title strong {
    font-size: 0.9rem;
    color: #1a1208;
    letter-spacing: 0.02em;
}

.search-type-pill,
#layoutBodyContent a.search-type-pill {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #6b4d1b !important;
    background: #fbf5ea;
    border: 1px solid rgba(184, 134, 11, 0.35);
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
    cursor: zoom-in;
}

.search-type-pill:hover,
#layoutBodyContent a.search-type-pill:hover {
    background: #8b6b23;
    color: #ffffff !important;
    border-color: #8b6b23;
}

.b-points-badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #2b1f13;
    background: rgba(184, 134, 11, 0.12);
    border-radius: 4px;
}

.b-muted-dash {
    opacity: 0.3;
    font-weight: normal;
}

.searchresult-mobile-cards {
    display: none;
}

/* Mobile searchresult cards */
.searchresult-mobile-card {
    background: #ffffff;
    border: 1px solid rgba(141, 116, 64, 0.2);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 3px 8px rgba(45, 35, 20, 0.04);
}

.searchresult-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.searchresult-mobile-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2b1f13;
}

.searchresult-mobile-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.mobile-meta-pill {
    font-size: 0.75rem;
    color: #5c4520;
    background: #fbf5ea;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(184, 134, 11, 0.25);
}

.searchresult-mobile-b-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.searchresult-mobile-b-cell {
    background: #faf7f2;
    border: 1px solid rgba(141, 116, 64, 0.15);
    border-radius: 6px;
    padding: 6px 4px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.searchresult-mobile-b-cell.has-val {
    background: #ffffff;
    border-color: rgba(184, 134, 11, 0.35);
}

.b-sub-num {
    font-size: 9px;
    font-weight: 700;
    color: #8b6b23;
}

.siteinfoLegal img {
    height: 22px !important;
    margin-left: 3px;
}

.search-loading { text-align: center; }
.search-error { color: red; }
.search-info { text-align: center; font-weight: bold; margin: 10px 0; }

.legend-red { color: red; }
.legend-green { color: green; }
.legend-blue { color: blue; }
.legend-purple { color: purple; }

/* =========================================================================
   Cancels & Type Modern Archival Exhibition Pages
   ========================================================================= */

.cancels-page,
.type-page {
    max-width: 1680px;
    margin: 0 auto;
    padding-bottom: 50px;
}

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

.cancels-header-card::before,
.type-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;
}

.cancels-header-badges,
.type-header-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.cancels-header-badge,
.type-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #5c4320;
    background: rgba(184, 134, 11, 0.1);
    border: 1px solid rgba(184, 134, 11, 0.25);
    border-radius: 20px;
}

/* --- CANCELS TIMELINE GRID & CARDS --- */
.cancels-timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.cancel-card {
    background: #ffffff;
    border: 1px solid rgba(141, 116, 64, 0.22);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(45, 35, 20, 0.05);
    padding: 16px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
    position: relative;
}

.cancel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(45, 35, 20, 0.12);
    border-color: rgba(184, 134, 11, 0.45);
}

.cancel-card-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 12px;
    gap: 8px;
}

.cancel-year-pill {
    font-size: 0.88rem;
    font-weight: 700;
    color: #2b1f13;
    background: #f4ecdf;
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid rgba(141, 116, 64, 0.2);
}

.cancel-scan-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    background: linear-gradient(180deg, #faf7f2 0%, #f4ede2 100%);
    border: 1px solid rgba(141, 116, 64, 0.16);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 14px;
    overflow: hidden;
    cursor: default;
    user-select: none;
}

.cancel-card-image {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
    pointer-events: none;
}

.cancel-card-body {
    flex: 1 1 auto;
    margin-bottom: 12px;
}

.cancel-card-text {
    font-size: 0.88rem;
    line-height: 1.45;
    color: #3e3223;
    margin: 0;
}

.cancel-card-text b {
    color: #1a1208;
    font-weight: 700;
}

.cancel-card-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed rgba(141, 116, 64, 0.2);
}

.cancel-btn-era,
#layoutBodyContent a.cancel-btn-era,
#layoutBodyContent a.cancel-btn-era:link,
#layoutBodyContent a.cancel-btn-era:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 7px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #7a5416 !important;
    background: #fbf5ea;
    border: 1px solid rgba(184, 134, 11, 0.35);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cancel-btn-era svg {
    stroke: currentColor;
    flex-shrink: 0;
}

.cancel-btn-era:hover,
#layoutBodyContent a.cancel-btn-era:hover,
#layoutBodyContent a.cancel-btn-era:active {
    background: #7a5416;
    color: #ffffff !important;
    border-color: #7a5416;
    text-decoration: none;
}

/* --- TYPE MUSEUM CATALOG GRID & CARDS --- */
.type-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
    align-items: stretch;
}

.type-shape-card {
    background: #ffffff;
    border: 1px solid rgba(141, 116, 64, 0.22);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(45, 35, 20, 0.05);
    padding: 18px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.type-shape-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(45, 35, 20, 0.12);
    border-color: rgba(184, 134, 11, 0.45);
}

.type-shape-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.type-shape-badge {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8b6b23;
    background: #fbf5ea;
    border: 1px solid rgba(184, 134, 11, 0.3);
    padding: 3px 10px;
    border-radius: 6px;
}

.type-shape-title {
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #2b1f13;
    margin: 4px 0 12px 0;
    line-height: 1.3;
}

.type-scan-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 170px;
    background: linear-gradient(180deg, #faf7f2 0%, #f4ede2 100%);
    border: 1px solid rgba(141, 116, 64, 0.16);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 14px;
    overflow: hidden;
    cursor: default;
    user-select: none;
}

.type-shape-image {
    max-width: 100%;
    max-height: 145px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
    pointer-events: none;
}

.type-shape-body {
    flex: 1 1 auto;
    margin-bottom: 14px;
}

.type-shape-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #4a3e2f;
    margin: 0;
}

.type-shape-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(141, 116, 64, 0.15);
}

.type-btn-search,
#layoutBodyContent a.type-btn-search,
#layoutBodyContent a.type-btn-search:link,
#layoutBodyContent a.type-btn-search:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 9px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff !important;
    background: linear-gradient(180deg, #8b6b23 0%, #6f5417 100%);
    border: 1px solid #5a4310;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(111, 84, 23, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.type-btn-search span,
#layoutBodyContent a.type-btn-search span {
    color: #ffffff !important;
}

.type-btn-search svg {
    stroke: #ffffff;
    flex-shrink: 0;
}

.type-btn-search:hover,
#layoutBodyContent a.type-btn-search:hover,
#layoutBodyContent a.type-btn-search:active {
    background: linear-gradient(180deg, #9c7828 0%, #7d601a 100%);
    box-shadow: 0 4px 12px rgba(111, 84, 23, 0.35);
    color: #ffffff !important;
    text-decoration: none;
}

.type-btn-search:hover span,
#layoutBodyContent a.type-btn-search:hover span {
    color: #ffffff !important;
}

/* Responsive adjustments for Cancels and Type */
@media (max-width: 768px) {
    .cancels-timeline-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .type-cards-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .cancels-header-card,
    .type-header-card {
        padding: 18px 18px 16px;
    }
}

/* Screenshot Preview Popup & Modal Card */
#screenshot {
	position: fixed;
	border: 1px solid rgba(141, 116, 64, 0.32);
	background: #ffffff;
	border-radius: 14px;
	padding: 14px 16px;
	display: none;
	color: #2c241d;
	z-index: 99999;
	pointer-events: auto;
	max-width: 380px;
	width: auto;
	box-shadow: 0 16px 40px rgba(36, 29, 17, 0.22);
	transform: translateZ(0);
	box-sizing: border-box;
}

.screenshot-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(141, 116, 64, 0.18);
}

.screenshot-title {
	font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
	font-size: 1.05rem;
	font-weight: 700;
	color: #2b1f13;
}

.screenshot-type-badge {
	font-size: 0.75rem;
	font-weight: 700;
	color: #8b6b23;
	background: #fbf5ea;
	border: 1px solid rgba(184, 134, 11, 0.3);
	padding: 2px 8px;
	border-radius: 6px;
	letter-spacing: 0.04em;
}

.screenshot-close-btn {
	background: transparent;
	border: none;
	font-size: 22px;
	line-height: 1;
	color: #8b6b23;
	cursor: pointer;
	padding: 0 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: auto;
	transition: color 0.15s ease;
}

.screenshot-close-btn:hover {
	color: #a82424;
}

.screenshot-img-box {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, #faf7f2 0%, #f4ede2 100%);
	border: 1px solid rgba(141, 116, 64, 0.16);
	border-radius: 8px;
	padding: 10px;
	min-height: 90px;
}

#screenshot img {
	max-width: 100%;
	height: auto;
	display: block;
}

img.screenshot2 {
	max-width: 280px;
	max-height: 220px;
	object-fit: contain;
}

/* =========================================================================
   Postmark Search Page, Modern Archival Form & Gallery Table
   ========================================================================= */

.search-page {
    max-width: 1680px;
    margin: 0 auto;
    padding-bottom: 50px;
}

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

.search-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;
}

.search-header-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.search-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #5c4320;
    background: rgba(184, 134, 11, 0.1);
    border: 1px solid rgba(184, 134, 11, 0.25);
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.lastupdate-back-link:hover,
#layoutBodyContent a.lastupdate-back-link:hover {
    background: #8b6b23;
    color: #ffffff !important;
    border-color: #8b6b23;
    text-decoration: none;
}

.lastupdate-back-link:hover svg {
    stroke: #ffffff;
}

/* --- Search Container & Form Card --- */
.search-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 28px auto;
}

.search-form-card {
    background: #ffffff;
    border: 1px solid rgba(141, 116, 64, 0.25);
    border-radius: 16px;
    padding: 22px 26px;
    box-shadow: 0 6px 20px rgba(45, 35, 20, 0.06);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(141, 116, 64, 0.18);
}

.search-card-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fbf5ea;
    border: 1px solid rgba(184, 134, 11, 0.3);
    color: #8b6b23;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-card-title {
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2b1f13;
    margin: 0;
}

.search-card-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: #8b6b23;
    background: #fbf5ea;
    border: 1px solid rgba(184, 134, 11, 0.3);
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.04em;
}

/* Primary Search Row (Megnevezés) */
.search-form-primary-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-form-label {
    font-weight: 700;
    font-size: 0.88rem;
    color: #2b1f13;
}

.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-icon {
    position: absolute;
    left: 12px;
    color: #8b6b23;
    pointer-events: none;
}

.search-input-wrap input[type="text"] {
    width: 100%;
    padding: 10px 38px 10px 38px;
    font-size: 0.95rem;
    color: #2b1f13;
    background: #faf7f2;
    border: 1px solid rgba(141, 116, 64, 0.3);
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.search-input-wrap input[type="text"]:focus {
    background: #ffffff;
    border-color: #8b6b23;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
    outline: none;
}

.search-input-clear {
    position: absolute;
    right: 10px;
    width: 22px;
    height: 22px;
    background: #d8c8b4;
    color: #2b1f13;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.search-input-clear:hover {
    background: #8b6b23;
    color: #ffffff;
}

.search-field-hint {
    font-size: 0.78rem;
    font-style: italic;
    color: #7a6652;
}

#type-select option[value=""] {
    color: #8c6e3b;
    font-style: italic;
}

/* Filters Grid */
.search-filters-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.search-filter-box {
    background: #faf7f2;
    border: 1px solid rgba(141, 116, 64, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
}

.search-filter-box-full {
    grid-column: auto;
}

.search-filter-box-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8b6b23;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(141, 116, 64, 0.12);
}

.search-filter-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-filter-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #4a3e2f;
}

.search-filter-field select {
    width: 100%;
    height: 38px;
    padding: 6px 12px;
    font-size: 0.88rem;
    color: #2b1f13;
    background: #ffffff;
    border: 1px solid rgba(141, 116, 64, 0.25);
    border-radius: 8px;
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-filter-field select:focus {
    border-color: #8b6b23;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
    outline: none;
}

@media (max-width: 960px) and (min-width: 769px) {
    .search-filters-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 12px;
    }
}

/* Quick Filter Preset Chips */
.search-quick-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
    background: #fdfbf7;
    border: 1px dashed rgba(141, 116, 64, 0.25);
    border-radius: 10px;
}

.quick-chips-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #6a5323;
    margin-right: 4px;
}

.quick-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b4d1b;
    background: #ffffff;
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.quick-chip:hover {
    background: #fbf5ea;
    border-color: #8b6b23;
    transform: translateY(-1px);
}

/* Form Action Buttons */
.search-form-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 6px;
}

.search-btn-primary,
#layoutBodyContent button.search-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 180px;
    height: 42px;
    padding: 0 24px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff !important;
    background: linear-gradient(180deg, #8b6b23 0%, #6f5417 100%);
    border: 1px solid #5a4310;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(111, 84, 23, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.search-btn-primary svg {
    stroke: #ffffff;
    flex-shrink: 0;
}

.search-btn-primary:hover,
#layoutBodyContent button.search-btn-primary:hover {
    background: linear-gradient(180deg, #9c7828 0%, #7d601a 100%);
    box-shadow: 0 6px 16px rgba(111, 84, 23, 0.38);
    transform: translateY(-1px);
}

.search-btn-primary.is-loading {
    opacity: 0.8;
    pointer-events: none;
}

.search-btn-secondary,
#layoutBodyContent button.search-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    padding: 0 18px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #5c4520 !important;
    background: #ffffff;
    border: 1px solid rgba(141, 116, 64, 0.3);
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.search-btn-secondary:hover,
#layoutBodyContent button.search-btn-secondary:hover {
    background: #faf6f0;
    border-color: #8b6b23;
    text-decoration: none;
}

/* --- Results Summary Card --- */
.search-results-summary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: #ffffff;
    border: 1px solid rgba(141, 116, 64, 0.22);
    border-radius: 12px;
    padding: 12px 18px;
    margin: 20px 0 16px 0;
    box-shadow: 0 3px 10px rgba(45, 35, 20, 0.04);
}

.summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #2b1f13;
    background: #fbf5ea;
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 16px;
}

.summary-chips-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.summary-chips-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6a5323;
}

.summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #3e301d;
    background: #f4ede2;
    border: 1px solid rgba(141, 116, 64, 0.25);
    border-radius: 12px;
}

.summary-chip-remove {
    background: transparent;
    border: none;
    color: #8b6b23;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-chip-remove:hover {
    color: #a82424;
}

.summary-clear-link,
#layoutBodyContent a.summary-clear-link {
    font-size: 0.78rem;
    color: #8b6b23 !important;
    text-decoration: underline;
    margin-left: 4px;
}

/* --- Empty Results State Card --- */
.search-empty-card {
    padding: 40px 20px;
    text-align: center;
    background: #ffffff;
}

.search-empty-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #faf4e8;
    color: #b8860b;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.search-empty-title {
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2b1f13;
    margin: 0 0 8px 0;
}

.search-empty-desc {
    font-size: 0.9rem;
    color: #6a5742;
    max-width: 500px;
    margin: 0 auto 20px auto;
}

.search-empty-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-empty-btn-reset,
#layoutBodyContent a.search-empty-btn-reset {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff !important;
    background: #8b6b23;
    border-radius: 8px;
    text-decoration: none;
}

.search-empty-btn-reset:hover,
#layoutBodyContent a.search-empty-btn-reset:hover {
    background: #735719;
}

.search-empty-btn-types,
#layoutBodyContent a.search-empty-btn-types {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b4d1b !important;
    background: #fbf5ea;
    border: 1px solid rgba(184, 134, 11, 0.35);
    border-radius: 8px;
    text-decoration: none;
}

.search-empty-btn-types:hover,
#layoutBodyContent a.search-empty-btn-types:hover {
    background: #f4ecdf;
}

/* --- Loading Animation --- */
.search-loading-card {
    padding: 40px 20px;
    text-align: center;
    background: #ffffff;
    border: 1px solid rgba(141, 116, 64, 0.2);
    border-radius: 14px;
    margin: 20px 0;
}

.search-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(184, 134, 11, 0.2);
    border-top-color: #8b6b23;
    border-radius: 50%;
    animation: searchSpin 0.8s linear infinite;
    margin: 0 auto 12px auto;
}

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

.search-loading-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b4d1b;
    margin: 0;
}

/* Gallery & Pagination */
.gallery2 {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 15px;
	margin: 20px 0;
	padding: 10px;
}

.gallery2 figure {
	margin: 0;
	padding: 0;
	border: 1px solid rgba(47, 35, 24, 0.14);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	transition: transform 0.3s, box-shadow 0.3s;
	cursor: pointer;
}

.gallery2 figure:hover {
	transform: translateY(-5px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery2 a {
	display: block;
	position: relative;
	overflow: hidden;
	background: #f8f3ec;
	height: 120px;
}

.gallery2 img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 5px;
	display: block;
}

.gallery2 figcaption {
	padding: 8px;
	background: #f8f3ec;
	font-size: 12px;
	line-height: 1.3;
	word-break: break-word;
	min-height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #555;
}

.pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin: 18px 0 6px;
	font-size: 13px;
	line-height: 1;
}

.pagination a,
.pagination strong {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 28px;
	padding: 0 8px;
	border-radius: 6px;
	border: 1px solid rgba(47, 35, 24, 0.18);
	background: #f7f1e7;
	color: #2f2318;
	text-decoration: none;
	font-weight: 700;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pagination a:hover,
.pagination a:focus {
	background: linear-gradient(180deg, #e9d7ab 0%, #d0ae68 100%);
	border-color: rgba(47, 35, 24, 0.28);
	color: #2f2318;
	transform: translateY(-1px);
}

.pagination strong.current-page {
	background: linear-gradient(180deg, #d4b36c 0%, #b98b3d 100%);
	border-color: rgba(47, 35, 24, 0.25);
	color: #fffaf2;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

.pagination-dots {
	color: #6d5841;
	font-weight: 700;
	padding: 0 2px;
}

.pagination .arrow {
	font-size: 16px;
	font-weight: bold;
}

.pagination .prev-btn,
.pagination .next-btn {
	min-width: 32px;
	padding: 0 10px;
}

/* ==========================================================================
   3. Intro Page Modern Archival 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-kicker {
	display: inline-block;
	margin-bottom: 6px;
	color: #8c6820;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.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: 6px;
	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);
}

.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-contribute-title {
	margin: 0 0 12px;
	color: #382414;
	font-family: 'Lora', Georgia, serif;
	font-size: 1.25rem;
	font-weight: 700;
}

.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, #6b1d2f 0%, #4f1220 100%);
	color: #ffffff !important;
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none !important;
	box-shadow: 0 4px 12px rgba(110, 29, 36, 0.28);
	transition: all 0.2s ease;
}

.intro-email-btn:hover {
	background: linear-gradient(135deg, #8e2832 0%, #6e1d24 100%);
	box-shadow: 0 6px 16px rgba(110, 29, 36, 0.35);
	transform: translateY(-1px);
	color: #ffffff !important;
}

.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;
}

.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;
}

/* ==========================================================================
   4. Contact Page Modern Archival Styling
   ========================================================================== */

.contact-page {
	max-width: 1060px;
	padding: 10px 14px 30px;
	line-height: 1.6;
	font-size: 1rem;
	box-sizing: border-box;
}

.contact-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;
}

.contact-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;
}

.contact-kicker {
	display: inline-block;
	font-family: 'Inter', sans-serif;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #996515;
	margin-bottom: 6px;
}

.contact-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;
}

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

.contact-main-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
	align-items: stretch;
	margin-bottom: 24px;
}

.contact-card {
	background: linear-gradient(180deg, #ffffff 0%, #faf5eb 100%);
	border: 1px solid rgba(141, 116, 64, 0.25);
	border-radius: 16px;
	padding: 22px 24px;
	box-shadow: 0 8px 20px rgba(36, 29, 17, 0.05);
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
}

.contact-card-header {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 52px;
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(141, 116, 64, 0.18);
}

.contact-card-header-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.contact-icon-bubble {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: linear-gradient(135deg, #6b1d2f 0%, #85223a 100%);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	box-shadow: 0 4px 10px rgba(107, 29, 47, 0.25);
}

.contact-icon-bubble.bubble-gold {
	background: linear-gradient(135deg, #b8860b 0%, #d4af37 100%);
	box-shadow: 0 4px 10px rgba(184, 134, 11, 0.25);
}

.contact-card-title {
	margin: 0 !important;
	font-family: 'Lora', Georgia, serif;
	font-size: 1.25rem;
	font-weight: 700;
	color: #2c241d;
	line-height: 1.25;
}

.contact-card-sub {
	display: block;
	font-family: 'Inter', sans-serif;
	font-size: 0.82rem;
	color: #7a5a27;
	margin-top: 3px;
	line-height: 1.3;
}

.contact-desc {
	color: #4a3e33;
	font-size: 0.94rem;
	line-height: 1.55;
	margin-bottom: 16px !important;
	min-height: 48px;
}

.contact-middle-panel {
	margin-bottom: 16px;
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.contact-email-box {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(141, 116, 64, 0.2);
	border-radius: 10px;
	margin-bottom: 12px;
}

.contact-info-icon {
	color: #8a6428;
	flex: 0 0 20px;
}

.contact-info-content {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.contact-info-label {
	font-family: 'Inter', sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #8c7355;
	margin-bottom: 2px;
}

.contact-info-value {
	font-family: 'Inter', sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
	color: #6b1d2f !important;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	word-break: break-all;
	transition: color 0.15s ease;
}

.contact-info-value:hover {
	color: #8e273f !important;
	text-decoration: underline !important;
}

.contact-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 11px 20px;
	background: linear-gradient(135deg, #6b1d2f 0%, #85223a 100%);
	color: #ffffff !important;
	border-radius: 10px;
	font-family: 'Inter', sans-serif;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none !important;
	box-shadow: 0 4px 12px rgba(107, 29, 47, 0.25);
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.contact-btn-primary:hover {
	background: linear-gradient(135deg, #7c2237 0%, #982843 100%);
	color: #ffffff !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(107, 29, 47, 0.35);
}

.contact-specs-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 14px;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(141, 116, 64, 0.2);
	border-radius: 10px;
	padding: 12px 14px;
}

.contact-spec-item {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	font-size: 0.85rem;
	color: #3d3227;
	line-height: 1.4;
}

.spec-bullet {
	color: #b8860b;
	font-weight: bold;
	font-size: 0.95rem;
	line-height: 1.25;
	flex: 0 0 14px;
}

.contact-callout-note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.83rem;
	color: #735932;
	background: rgba(184, 134, 11, 0.08);
	border: 1px solid rgba(184, 134, 11, 0.18);
	border-radius: 8px;
	padding: 10px 12px;
	line-height: 1.45;
	margin-top: auto;
	min-height: 52px;
	box-sizing: border-box;
}

.contact-callout-note svg {
	flex: 0 0 16px;
	margin-top: 2px;
	color: #b8860b;
}

.contact-faq-section {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 241, 230, 0.9) 100%);
	border: 1px solid rgba(141, 116, 64, 0.24);
	border-radius: 16px;
	padding: 22px 26px;
	box-shadow: 0 6px 18px rgba(36, 29, 17, 0.04);
}

.contact-section-title {
	margin: 0 0 18px;
	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);
}

.contact-faq-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.contact-faq-item {
	background: #ffffff;
	border: 1px solid rgba(141, 116, 64, 0.16);
	border-radius: 12px;
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
}

.contact-faq-icon {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: rgba(184, 134, 11, 0.1);
	color: #996515;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 10px;
}

.contact-faq-item h3 {
	margin: 0 0 8px;
	color: #2c241d;
	font-family: 'Lora', Georgia, serif;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.35;
}

.contact-faq-item p {
	margin: 0;
	color: #5c4e40;
	font-size: 0.9rem;
	line-height: 1.55;
}

/* ==========================================================================
   5. Further Catalogues Page Modern Archival Styling
   ========================================================================== */

.catalogues-page {
	max-width: 100%;
	padding: 8px 12px 36px;
	box-sizing: border-box;
}

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

.catalogues-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;
}

.cat-kicker {
	display: inline-block;
	font-family: 'Inter', sans-serif;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #996515;
	margin-bottom: 6px;
}

.cat-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;
}

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

.cat-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding-top: 14px;
	border-top: 1px solid rgba(141, 116, 64, 0.2);
}

.cat-search-box {
	position: relative;
	width: 100%;
	max-width: 440px;
	height: 40px;
	flex: 0 1 440px;
}

.cat-search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	color: #996515;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cat-search-box input {
	width: 100%;
	height: 40px;
	padding: 0 34px 0 34px;
	background: #ffffff;
	border: 1px solid rgba(141, 116, 64, 0.3);
	border-radius: 10px;
	font-family: 'Inter', sans-serif;
	font-size: 0.92rem;
	color: #2c241d;
	outline: none;
	box-sizing: border-box;
	transition: all 0.2s ease;
}

.cat-search-box input:focus {
	border-color: #b8860b;
	box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.18);
}

.cat-search-clear {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	font-size: 18px;
	color: #996515;
	cursor: pointer;
	padding: 0 4px;
	line-height: 1;
}

.cat-filter-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.cat-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 14px;
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid rgba(141, 116, 64, 0.28);
	border-radius: 9999px;
	font-family: 'Inter', sans-serif;
	font-size: 0.84rem;
	font-weight: 600;
	color: #4a3e33;
	cursor: pointer;
	transition: all 0.15s ease;
}

.cat-chip:hover {
	background: #ffffff;
	border-color: #b8860b;
	color: #2c241d;
}

.cat-chip.is-active {
	background: linear-gradient(135deg, #6b1d2f 0%, #85223a 100%);
	border-color: #6b1d2f;
	color: #ffffff;
	box-shadow: 0 3px 8px rgba(107, 29, 47, 0.28);
}

.chip-count {
	font-size: 0.75rem;
	font-weight: 700;
	padding: 1px 6px;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.08);
}

.cat-chip.is-active .chip-count {
	background: rgba(255, 255, 255, 0.25);
	color: #ffffff;
}

.cat-results-bar {
	padding: 8px 14px;
	margin-bottom: 16px;
	background: rgba(184, 134, 11, 0.1);
	border: 1px solid rgba(184, 134, 11, 0.25);
	border-radius: 8px;
	font-family: 'Inter', sans-serif;
	font-size: 0.86rem;
	font-weight: 600;
	color: #7a5a27;
}

.cat-section {
	margin-bottom: 32px;
}

.cat-section-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid rgba(141, 116, 64, 0.22);
}

.cat-section-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: linear-gradient(135deg, #6b1d2f 0%, #85223a 100%);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	box-shadow: 0 4px 10px rgba(107, 29, 47, 0.22);
}

.cat-section-icon.icon-gold {
	background: linear-gradient(135deg, #b8860b 0%, #d4af37 100%);
	box-shadow: 0 4px 10px rgba(184, 134, 11, 0.25);
}

.cat-section-icon.icon-wine {
	background: linear-gradient(135deg, #442a18 0%, #613e24 100%);
	box-shadow: 0 4px 10px rgba(68, 42, 24, 0.22);
}

.cat-section-title {
	margin: 0 !important;
	font-family: 'Lora', Georgia, serif;
	font-size: 1.35rem;
	font-weight: 700;
	color: #2c241d;
	line-height: 1.25;
}

.cat-section-sub {
	display: block;
	font-family: 'Inter', sans-serif;
	font-size: 0.84rem;
	color: #7a5a27;
	margin-top: 2px;
}

.cat-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.cat-grid.cat-grid-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cat-card {
	background: linear-gradient(180deg, #ffffff 0%, #faf5ea 100%);
	border: 1px solid rgba(141, 116, 64, 0.25);
	border-radius: 14px;
	padding: 20px 22px;
	box-shadow: 0 6px 18px rgba(36, 29, 17, 0.05);
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cat-card:hover {
	transform: translateY(-3px);
	border-color: rgba(184, 134, 11, 0.6);
	box-shadow: 0 12px 28px rgba(36, 29, 17, 0.12);
}

.cat-card-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 12px;
}

.cat-badge {
	display: inline-block;
	font-family: 'Inter', sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 3px 9px;
	border-radius: 6px;
	line-height: 1.2;
}

.badge-pdf {
	background: rgba(107, 29, 47, 0.1);
	border: 1px solid rgba(107, 29, 47, 0.25);
	color: #6b1d2f;
}

.badge-ebook {
	background: rgba(184, 134, 11, 0.12);
	border: 1px solid rgba(184, 134, 11, 0.3);
	color: #996515;
}

.badge-museum {
	background: rgba(44, 33, 19, 0.08);
	border: 1px solid rgba(44, 33, 19, 0.2);
	color: #3b2817;
}

.cat-meta-date,
.cat-meta-domain {
	font-family: 'Inter', sans-serif;
	font-size: 0.78rem;
	font-weight: 600;
	color: #8c7148;
}

.cat-card-title {
	margin: 0 0 6px !important;
	font-family: 'Lora', Georgia, serif;
	font-size: 1.15rem;
	font-weight: 700;
	color: #2c241d;
	line-height: 1.35;
}

.cat-card-author {
	font-family: 'Inter', sans-serif;
	font-size: 0.82rem;
	font-weight: 600;
	color: #7a5a27;
	margin-bottom: 10px;
}

.cat-card-desc {
	margin: 0 0 16px !important;
	color: #4a3e33;
	font-size: 0.92rem;
	line-height: 1.55;
	flex: 1 1 auto;
}

.cat-card-actions {
	display: flex;
	gap: 8px;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid rgba(141, 116, 64, 0.16);
}

.cat-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 38px;
	padding: 0 16px;
	border-radius: 8px;
	font-family: 'Inter', sans-serif;
	font-size: 0.86rem;
	font-weight: 600;
	text-decoration: none !important;
	transition: all 0.15s ease;
	cursor: pointer;
	box-sizing: border-box;
}

.cat-btn.full-width {
	width: 100%;
}

.cat-btn-primary {
	flex: 1;
	background: linear-gradient(135deg, #6b1d2f 0%, #85223a 100%);
	color: #ffffff !important;
	border: none;
	box-shadow: 0 3px 8px rgba(107, 29, 47, 0.22);
}

.cat-btn-primary:hover {
	background: linear-gradient(135deg, #7c2237 0%, #982843 100%);
	box-shadow: 0 6px 14px rgba(107, 29, 47, 0.35);
	transform: translateY(-1px);
}

.cat-btn-secondary {
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(141, 116, 64, 0.3);
	color: #4a3e33 !important;
	padding: 0 12px;
}

.cat-btn-secondary:hover {
	background: #ffffff;
	border-color: #b8860b;
	color: #2c241d !important;
	transform: translateY(-1px);
}

.cat-empty-card {
	background: #ffffff;
	border: 2px dashed rgba(141, 116, 64, 0.3);
	border-radius: 14px;
	padding: 40px 20px;
	text-align: center;
	color: #8c7355;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 20px 0;
}

.cat-empty-card svg {
	color: #b8860b;
	opacity: 0.7;
}

.cat-empty-card p {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
}

/* ==========================================================================
   6. Fancybox Archival & Document Reader Customizations
   ========================================================================== */

.fancybox__container {
	--fancybox-zIndex: 99999;
	z-index: 99999;
	--fancybox-bg: #ffffff;
	--fancybox-color: #2c241d;
	--fancybox-accent-color: #b8860b;
	--fancybox-content-color: #334155;
	--fancybox-content-bg: transparent;
	--fancybox-thumbs-width: 76px;
	--fancybox-thumbs-ratio: 1;
	--carousel-button-svg-filter: none;
	display: flex;
	flex-direction: row;
}

.fancybox__leftCol {
	flex: 1 1 auto;
	width: 100%;
	min-height: 1px;
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	position: relative;
	background: #ffffff;
	box-sizing: border-box;
}

.fancybox__slide .fancybox__content,
.fancybox__slide.has-image .fancybox__content,
.fancybox__slide.has-image .fancybox__content img,
.fancybox__image {
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	background: transparent !important;
}

/* Desktop Centered Navigation Arrows */
.fancybox__leftCol .carousel__button.is-prev,
.fancybox__leftCol .carousel__button.is-next {
	top: 50% !important;
	transform: translateY(-50%) !important;
	width: 48px !important;
	height: 48px !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.94) !important;
	border: 1px solid rgba(141, 116, 64, 0.3) !important;
	color: #2c1e10 !important;
	box-shadow: 0 4px 14px rgba(36, 29, 17, 0.14) !important;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	cursor: pointer;
	z-index: 10;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.fancybox__leftCol .carousel__button.is-prev {
	left: 20px !important;
}

.fancybox__leftCol .carousel__button.is-next {
	right: 20px !important;
}

.fancybox__leftCol .carousel__button.is-prev:hover,
.fancybox__leftCol .carousel__button.is-next:hover {
	background: linear-gradient(135deg, #6b1d2f 0%, #85223a 100%) !important;
	border-color: #6b1d2f !important;
	color: #ffffff !important;
	transform: translateY(-50%) scale(1.08) !important;
	box-shadow: 0 6px 18px rgba(107, 29, 47, 0.35) !important;
}

.fancybox__toolbar {
	background: rgba(255, 255, 255, 0.94) !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(141, 116, 64, 0.2);
	padding: 6px 14px;
	text-shadow: none;
}

.fancybox__toolbar .carousel__button {
	color: #2c1e10 !important;
}

/* Mobile: Move navigation arrows to bottom of section so they don't cover the picture */
@media screen and (max-width: 860px) {
	.fancybox__leftCol .carousel__button.is-prev,
	.fancybox__leftCol .carousel__button.is-next {
		top: auto !important;
		bottom: 14px !important;
		transform: none !important;
		width: 42px !important;
		height: 42px !important;
	}

	.fancybox__leftCol .carousel__button.is-prev {
		left: 14px !important;
	}

	.fancybox__leftCol .carousel__button.is-next {
		right: 14px !important;
	}

	.fancybox__leftCol .carousel__button.is-prev:hover,
	.fancybox__leftCol .carousel__button.is-next:hover {
		transform: scale(1.08) !important;
	}
}

.fancybox__slide.has-iframe {
	padding: 12px 16px !important;
}

.fancybox__content.is-type-iframe,
.fancybox__slide.has-iframe .fancybox__content,
.fancybox__slide .fancybox__iframe,
.fancybox__iframe {
	width: 94vw !important;
	height: 92vh !important;
	max-width: 1440px !important;
	max-height: 94vh !important;
	border-radius: 8px !important;
	border: 1px solid rgba(141, 116, 64, 0.3) !important;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28) !important;
	background: #ffffff !important;
}

/* ==========================================================================
   7. Floating Scroll-to-Top Button
   ========================================================================== */

#back-to-top-btn {
	position: fixed;
	bottom: 25px;
	right: 25px;
	width: 46px;
	height: 46px;
	background: #80602e;
	color: #ffffff;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 999;
	transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

#back-to-top-btn:hover {
	background: #5d4421;
	transform: translateY(-3px);
}

/* ==========================================================================
   8. Responsive Layout Adjustments
   ========================================================================== */

@media (max-width: 1200px) {
	.cat-grid.cat-grid-4 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 1024px) {
	.searchresult-table-wrap {
		display: none !important;
	}

	.searchresult-mobile-cards {
		display: block !important;
		margin-top: 12px;
	}
}

@media (max-width: 960px) {
	.cat-grid,
	.cat-grid.cat-grid-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.cat-toolbar {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}
	.cat-search-box {
		width: 100%;
		max-width: 100%;
		height: 40px;
		flex: 0 0 40px;
	}
}

@media (max-width: 900px) {
	.contact-faq-grid {
		grid-template-columns: 1fr;
	}
	.contact-main-grid {
		grid-template-columns: 1fr;
	}
	.contact-specs-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	body {
		overflow-x: hidden;
	}

	#screenshot {
		position: fixed !important;
		left: 50% !important;
		top: 50% !important;
		transform: translate(-50%, -50%) !important;
		width: calc(100vw - 24px) !important;
		max-width: 360px !important;
		max-height: 85vh !important;
		overflow-y: auto !important;
	}

	#container {
		width: 100%;
		max-width: 100%;
		border-radius: 0;
		box-shadow: none;
		margin: 0;
	}

	#layoutHeader {
		height: 10vh;
		min-height: 90px;
		max-height: 120px;
		background-position: center left;
		background-size: cover;
	}

	.maintitle {
		right: 12px;
		bottom: 8px;
		left: auto;
		max-width: calc(100% - 24px);
		width: auto;
		text-align: right;
		font-size: clamp(14px, 4.2vw, 22px);
		white-space: normal;
		line-height: 1.15;
		word-break: break-word;
	}

	.maintitle br {
		display: inline;
	}

	#layoutCenterBody {
		display: block;
		margin: 8px 10px 0;
	}

	#layoutNavigation {
		width: 100%;
		margin: 0 0 12px;
		float: none;
		box-sizing: border-box;
		flex: none;
	}

	#layoutBodyContent {
		margin-top: 0;
		width: 100%;
		padding: 12px;
		float: none;
		flex: none;
	}

	.intro {
		padding: 8px 0 24px;
	}

	.intro-main-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.intro-header-card {
		padding: 16px 16px 14px;
	}

	.intro-lead {
		font-size: 1rem;
	}

	.intro-features-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.legend-mobile-wrapper {
		margin-top: 0;
	}

	.legend-mobile-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 6px 10px;
		min-height: 32px;
		line-height: 1.2;
		color: #2f2318;
		font-weight: bold;
		cursor: pointer;
		background: linear-gradient(180deg, #e9d7ab 0%, #d0ae68 100%);
		border-top: 1px solid rgba(41, 38, 23, 0.2);
		border-bottom: 1px solid rgba(41, 38, 23, 0.2);
		user-select: none;
	}

	.legend-mobile-toggle::-webkit-details-marker {
		display: none;
	}

	.legend-toggle-icon {
		margin-left: auto;
		display: inline-block;
		transition: transform 0.2s ease;
	}

	.legend-details[open] .legend-toggle-icon {
		transform: rotate(180deg);
	}

	/* On mobile, summary acts as the main legend header, so hide the duplicate inside the panel */
	.legend-panel .legend-title-main,
	.legend-panel > .navTitle:first-child {
		display: none !important;
	}

	/* Keep color cancels header visible */
	.legend-panel .legend-title-color {
		display: block !important;
	}

	.legend-details:not([open]) .legend-panel {
		display: none;
	}

	.legend-details[open] .legend-panel {
		display: block;
	}

	.legend-panel .table-display {
		width: 100%;
		display: block;
	}

	.legend-panel .table-display dt {
		width: 52px;
		float: left;
		clear: left;
	}

	.legend-panel .table-display dd {
		width: auto;
		min-width: 0;
		margin-left: 58px;
		display: block;
		float: none;
		padding: 2px 0;
	}

	/* --- Search Responsive Modern Styling --- */
	.search-page {
		padding-bottom: 30px;
	}

	.search-header-card {
		padding: 16px 16px 14px;
		margin-bottom: 16px;
	}

	.search-header-badges {
		gap: 6px;
		margin-top: 10px;
	}

	.search-header-badge {
		padding: 4px 10px;
		font-size: 0.75rem;
	}

	.search-container {
		margin-bottom: 20px;
	}

	.search-form-card {
		padding: 16px 14px;
		gap: 14px;
		border-radius: 14px;
	}

	.search-card-header {
		flex-wrap: wrap;
		gap: 8px;
		padding-bottom: 10px;
	}

	.search-card-title {
		font-size: 1.1rem;
	}

	.search-filters-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.search-filter-fields {
		display: flex;
		flex-direction: column;
		gap: 8px;
	}

	.search-quick-chips {
		padding: 8px 10px;
		gap: 6px;
	}

	.quick-chip {
		padding: 4px 8px;
		font-size: 0.75rem;
	}

	.search-form-actions {
		flex-direction: column;
		width: 100%;
		gap: 8px;
		margin-top: 4px;
	}

	.search-btn-primary,
	#layoutBodyContent button.search-btn-primary,
	.search-btn-secondary,
	#layoutBodyContent button.search-btn-secondary {
		width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}

	.search-results-summary-card {
		padding: 12px 14px;
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.summary-chips-group {
		gap: 6px;
	}

	.searchresult-table-wrap {
		display: none;
	}

	.searchresult-mobile-cards {
		display: block;
		margin-top: 12px;
	}

	.searchresult-mobile-card {
		background: #ffffff;
		border: 1px solid rgba(141, 116, 64, 0.22);
		border-radius: 12px;
		padding: 12px 14px;
		margin-bottom: 12px;
		box-shadow: 0 3px 10px rgba(45, 35, 20, 0.05);
	}

	.searchresult-mobile-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		margin-bottom: 8px;
	}

	.searchresult-mobile-title {
		font-size: 1.05rem;
		font-weight: 700;
		color: #2b1f13;
		line-height: 1.25;
	}

	.searchresult-mobile-meta-pills {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
		margin-bottom: 10px;
	}

	.mobile-meta-pill {
		font-size: 0.75rem;
		color: #5c4520;
		background: #fbf5ea;
		padding: 3px 8px;
		border-radius: 6px;
		border: 1px solid rgba(184, 134, 11, 0.25);
	}

	.searchresult-mobile-b-grid {
		display: grid;
		grid-template-columns: repeat(5, 1fr);
		gap: 6px;
	}

	.searchresult-mobile-b-cell {
		background: #faf7f2;
		border: 1px solid rgba(141, 116, 64, 0.16);
		border-radius: 6px;
		padding: 6px 3px;
		text-align: center;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		min-height: auto;
	}

	.searchresult-mobile-b-cell.has-val {
		background: #ffffff;
		border-color: rgba(184, 134, 11, 0.38);
		box-shadow: 0 1px 3px rgba(45, 35, 20, 0.04);
	}

	.searchresult-mobile-b-icon {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 2px;
	}

	.searchresult-mobile-b-icon img {
		width: 26px;
		height: 26px;
		object-fit: contain;
		display: block;
	}

	.searchresult-mobile-b-value {
		font-size: 11px;
		font-weight: 700;
		color: #2b1f13;
		line-height: 1.15;
		word-break: break-word;
	}

	.b-sub-num {
		font-size: 9px;
		font-weight: 700;
		color: #8b6b23;
		line-height: 1;
	}

	.b-muted-dash {
		opacity: 0.35;
		font-weight: normal;
	}

	.gallery2 {
		grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
		gap: 10px;
	}

	.gallery2 a {
		height: 100px;
	}
}

@media (min-width: 769px) {
	.legend-mobile-toggle {
		display: none !important;
	}

	.legend-details,
	.legend-details .legend-panel {
		display: block !important;
	}

	.legend-panel .navTitle,
	.legend-panel .legend-title-main,
	.legend-panel .legend-title-color {
		display: block !important;
	}
}

@media (max-width: 640px) {
	.cat-grid,
	.cat-grid.cat-grid-4 {
		grid-template-columns: 1fr;
	}
	.cat-card-actions {
		flex-direction: column;
	}
	.cat-btn-secondary {
		width: 100%;
	}
}

@media (max-width: 480px) {
	#screenshot {
		left: 50% !important;
		top: 50% !important;
		transform: translate(-50%, -50%) !important;
		width: calc(100vw - 20px) !important;
		max-width: 380px !important;
		max-height: 85vh !important;
		overflow-y: auto !important;
	}

	.search-filter-fields {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.search-input-wrap input[type="text"] {
		font-size: 16px;
	}

	.searchresult-mobile-b-grid {
		gap: 4px;
	}

	.searchresult-mobile-b-cell {
		padding: 5px 2px;
	}

	.searchresult-mobile-b-icon img {
		width: 22px;
		height: 22px;
	}

	.searchresult-mobile-b-value {
		font-size: 10px;
	}

	.gallery2 {
		grid-template-columns: repeat(2, 1fr);
	}

	.pagination {
		gap: 4px;
	}

	.pagination a,
	.pagination strong {
		min-width: 24px;
		height: 26px;
		padding: 0 7px;
		font-size: 12px;
	}
}