﻿
/* Dynamic Catalogues Search State Classes (eliminates inline JS styles) */
.cat-card.is-hidden,
.cat-section.is-hidden {
  display: none !important;
}

#catSearchClear {
  display: none;
}

#catSearchClear.is-visible {
  display: block !important;
}

#catEmptyState {
  display: none;
}

#catEmptyState.is-visible {
  display: flex !important;
}

#catResultsCounter {
  display: none;
}

#catResultsCounter.is-visible {
  display: block !important;
}

@charset "UTF-8";
/**
 * Site Core CSS (site_core.css)
 * Common foundational styling across all Web Museums
 * Includes structural container, typography, sidebar navigation,
 * intro, contact, catalogues, back-to-top button, footer legal layout,
 * and common content page resets.
 * Parameterized via CSS custom properties (:root) defined per museum.
 */

: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%, var(--theme-panel-bg) 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%, var(--theme-primary) 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: #e9d7ab;
  --nav-bg-strong: #d0ae68;
  --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;
  --content-text: var(--theme-text-body);
  --link: #8e6741;
  --link-hover: #2a1f17;
  --border-soft: var(--theme-border);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* -------------------------------------------------------------------------
   1. Box Sizing & Font-Face Foundation
   ------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  background: var(--page-bg, #000000);
  color: var(--content-text, #2c241d);
}

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

/* -------------------------------------------------------------------------
   2. Main Container & Structural Shell
   ------------------------------------------------------------------------- */
#container {
  width: 96%;
  max-width: 1720px;
  margin: 14px auto 20px auto;
  background: var(--page-shell-bg, #ffffff);
  box-shadow: var(--shadow-soft, 0 12px 30px rgba(0, 0, 0, 0.08));
  border-radius: 16px;
  overflow: hidden;
}

#layoutMenu {
  position: relative;
  height: 32px;
  background: linear-gradient(180deg, var(--nav-bg, #f0dfb8) 0%, var(--nav-bg-strong, #d8b875) 100%);
  border-bottom: 1px solid var(--theme-border, 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;
}

#layoutMenu nav {
  height: 100%;
}

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

.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: var(--theme-primary-dark, #333);
  opacity: 1;
  font: clamp(20px, 2.5vw, 44px) 'MainTitle', Georgia, serif;
  position: absolute;
  bottom: 6px;
  right: 14px;
  text-align: right;
  white-space: nowrap;
}

.maintitle br {
  display: none;
}

@media (max-width: 1350px) {
  .maintitle {
    font: clamp(18px, 2.8vw, 30px) 'MainTitle', Georgia, serif;
    line-height: 1.15;
    bottom: 6px;
    white-space: normal;
  }
  .maintitle br {
    display: inline;
  }
}

/* -------------------------------------------------------------------------
   3. Central Wrapper & Left Sidebar Navigation Menu
   ------------------------------------------------------------------------- */
#layoutCenterBody {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 10px 5px 0 10px;
  padding-bottom: 18px;
}

#layoutNavigation {
  width: 200px;
  min-width: 200px;
  flex: 0 0 200px;
  border: 1px solid var(--theme-border, rgba(41, 38, 23, 0.18));
  background: var(--nav-panel-bg, linear-gradient(180deg, #f9f4ec 0%, #f1e7d8 100%));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  letter-spacing: normal;
}

#layoutNavigation .navTitle {
  background: linear-gradient(180deg, var(--nav-bg, #e9d7ab) 0%, var(--nav-bg-strong, #d0ae68) 100%);
  color: var(--nav-text, #2f2318);
  font-weight: bold;
  padding: 6px 8px;
  letter-spacing: 0.02em;
  margin: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

#layoutNavigation ul,
#layoutNavigation li {
  list-style: none;
  margin: 0;
  padding: 0;
}

#layoutNavigation a {
  display: block;
  background: transparent;
  border-bottom: 1px solid var(--theme-border-subtle, rgba(41, 38, 23, 0.12));
  margin: 0;
  padding: 5px 10px;
  color: var(--theme-text-body, var(--content-text, #2c241d));
  text-decoration: none;
  line-height: 1.45;
  border-radius: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  letter-spacing: normal;
  transition: background 0.15s ease, color 0.15s ease;
}

#layoutNavigation a:hover {
  color: var(--theme-primary-dark, var(--nav-text, #2a1f17));
  background: var(--nav-hover-bg, rgba(116, 89, 55, 0.08));
}

#layoutNavigation .active > a,
#layoutNavigation .active a,
#layoutNavigation a#active {
  color: var(--theme-primary-dark, var(--nav-text, #2a1f17)) !important;
  background: var(--nav-active-bg, rgba(116, 89, 55, 0.18));
  font-weight: bold;
}

#layoutNavigation li:has(.active) > a {
  color: var(--theme-primary-dark, var(--nav-text, #2a1f17)) !important;
  font-weight: bold;
  background: var(--nav-parent-active-bg, rgba(116, 89, 55, 0.12));
}

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

#layoutNavigation > ul.topnav {
  display: block;
}

#layoutNavigation .topnav li {
  padding: 0;
  margin: 0;
  line-height: 1.35;
}

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

#layoutNavigation .topnav ul {
  display: none;
  padding-left: 10px;
  background: var(--nav-sub-bg, rgba(41, 38, 23, 0.03));
}

#layoutNavigation .topnav ul ul:last-child li {
  font-weight: normal;
}

#layoutNavigation ul.topnav span,
#layoutNavigation .accordion-sign,
#layoutNavigation1 .accordion-sign {
  float: right;
}

/* -------------------------------------------------------------------------
   4. Central Content Card & Layout Body Resets
   ------------------------------------------------------------------------- */
#layoutBodyContent {
  margin-left: 0;
  margin-right: 0;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
}

.contact-page,
.donators-page,
.faq-page,
.news-page,
.history-page,
.join-page,
.reviews-page,
.awards-page,
.nano-album-page,
.videos-page,
.pdetails-page,
.cinderellas-page,
.links-page,
.commem-page,
.prnd-page,
.mono-page,
.upu-page,
.intro-page,
.intro,
.intro-redesign,
.catalogues-page,
.search-page,
.details-page,
.stats-page,
.cancels-page,
.type-page,
#layoutBodyContent[class],
#layoutBodyContent[class*="-page"] {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 8px 12px 32px !important;
  box-sizing: border-box;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

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

#layoutBodyContent a:hover {
  color: var(--link-hover, #2a1f17);
  font-weight: bold;
}

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

#layoutBodyContent h1:not(.intro-main-title):not(.contact-main-title):not(.cat-main-title):not(.search-hero-title) {
  color: var(--theme-primary-dark, var(--content-text, #2c241d));
  font-weight: bold;
  font-size: 24px;
}

#layoutBodyContent h2 {
  color: var(--theme-primary-dark, var(--content-text, #2c241d));
}

#layoutBodyContent p {
  margin-top: 5px;
  color: var(--theme-text-body, var(--content-text, #2c241d));
}

.clearer {
  clear: both;
  height: 5px;
}

/* -------------------------------------------------------------------------
   5. Intro Page Component Styles (Twin Master & Grid Architectures)
   ------------------------------------------------------------------------- */
.intro-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.intro-header-card {
  position: relative;
  padding: 24px 28px;
  margin: 0;
  background: var(--theme-panel-gradient);
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  box-shadow: var(--theme-card-shadow);
}

.intro-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 40px;
  right: 40px;
  height: 3px;
  background: var(--theme-accent-gradient);
  border-radius: 2px;
}

.intro-kicker {
  display: block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--theme-primary);
  margin: 0 0 6px 0;
}

#layoutBodyContent .intro-main-title,
.intro-header-card .intro-main-title,
.intro-main-title {
  display: block;
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--theme-primary-dark) !important;
  margin: 0 0 10px 0 !important;
  background: transparent !important;
}

.intro-header-card .intro-main-title:last-child {
  margin-bottom: 0 !important;
}

.intro-lead {
  display: block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--theme-text-muted);
  margin: 0 !important;
}

.intro-card,
.archival-section-card {
  padding: 24px;
  background: var(--theme-card-bg);
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  box-shadow: var(--theme-card-shadow);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--theme-text-body);
  margin-bottom: 0;
  box-sizing: border-box;
}

.intro-card p {
  margin: 0 0 14px;
}

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

.intro-meta-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 16px;
  background: var(--theme-primary-light);
  border: 1px solid var(--theme-border);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--theme-primary-dark);
}

.intro-quote-card {
  margin-top: 14px;
  padding: 16px 20px;
  background: #ffffff;
  border-left: 4px solid var(--theme-primary);
  border-radius: 0 8px 8px 0;
  box-shadow: var(--theme-card-shadow);
}

.intro-quote-text {
  font-style: italic;
  font-size: 14px;
  line-height: 1.6;
  color: var(--theme-primary-dark);
  margin-bottom: 6px;
}

.intro-quote-author {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--theme-primary);
}

/* Grid & Feature Intro Variant (Gudlin, etc.) */
.intro-main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  margin-top: 16px;
}

.intro-about-card,
.intro-contribute-card {
  padding: 24px;
  background: var(--theme-card-bg);
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  box-shadow: var(--theme-card-shadow);
  color: var(--theme-text-body);
}

.intro-section-title,
.intro-contribute-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--theme-primary-dark);
  margin: 0 0 12px;
}

.intro-email-cta {
  margin-top: 16px;
}

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

.intro-email-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.intro-features-section {
  background: var(--theme-card-bg);
  border: 1px solid var(--theme-border);
  border-radius: 16px;
  padding: 22px 24px 20px;
  margin-top: 20px;
  box-shadow: var(--theme-card-shadow);
}

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

.intro-feature-item {
  background: #ffffff;
  border: 1px solid var(--theme-border-subtle);
  border-radius: 12px;
  padding: 16px 18px;
  transition: all 0.2s ease;
}

.intro-feature-item:hover {
  background: #ffffff;
  border-color: var(--theme-primary);
  box-shadow: var(--theme-card-shadow-hover);
  transform: translateY(-2px);
}

.intro-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--theme-primary-light);
  color: var(--theme-primary);
  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: var(--theme-primary-dark);
}

.intro-feature-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--theme-text-muted);
}

.intro-thanks-card {
  background: var(--theme-card-bg);
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 20px;
  box-shadow: var(--theme-card-shadow);
}

.intro-thanks-list {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--theme-text-body);
}

.intro-thanks-list li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* -------------------------------------------------------------------------
   6. Contact Page Component Styles & Webmaster Box
   ------------------------------------------------------------------------- */
.contact-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-header-card {
  position: relative;
  padding: 24px 28px;
  margin: 0;
  background: var(--theme-panel-gradient);
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  box-shadow: var(--theme-card-shadow);
}

.contact-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 40px;
  right: 40px;
  height: 3px;
  background: var(--theme-accent-gradient);
  border-radius: 2px;
}

.contact-kicker {
  display: block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--theme-primary);
  margin: 0 0 6px 0;
}

.contact-main-title {
  display: block;
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--theme-primary-dark);
  margin: 0 0 10px 0 !important;
}

.contact-lead {
  display: block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--theme-text-muted);
  margin: 0 !important;
  max-width: 860px;
}

.contact-main-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.contact-card,
.contact-card-primary,
.contact-card-secondary {
  padding: 24px;
  background: var(--theme-card-bg, #ffffff);
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  box-shadow: var(--theme-card-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.contact-card:hover {
  box-shadow: var(--theme-card-shadow-hover);
}

.contact-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--theme-border-subtle);
}

.contact-icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--theme-primary-dark) 0%, var(--theme-primary) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.contact-card-secondary .contact-icon-bubble {
  background: linear-gradient(135deg, var(--theme-primary-dark) 0%, var(--theme-primary) 100%);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.contact-card-header-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.contact-card-title {
  margin: 0 !important;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--theme-primary-dark);
  line-height: 1.25;
}

.contact-card-sub {
  display: block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--theme-primary);
  line-height: 1.3;
}

.contact-desc {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--theme-text-body);
  margin: 0 0 16px !important;
  min-height: 44px;
}

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

.contact-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  padding: 12px 14px;
  background: var(--theme-panel-bg);
  border: 1px solid var(--theme-border-subtle);
  border-radius: 10px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--theme-text-body);
}

.contact-spec-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.spec-bullet {
  color: var(--theme-primary);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
}

.contact-spec-item strong {
  color: var(--theme-primary-dark);
}

.contact-callout-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: var(--theme-panel-bg-subtle);
  border: 1px solid var(--theme-border);
  border-radius: 8px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--theme-text-muted);
}

.contact-callout-note svg {
  color: var(--theme-primary);
  flex: 0 0 16px;
  margin-top: 2px;
}

.contact-email-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--theme-panel-bg);
  border: 1px solid var(--theme-border);
  border-radius: 10px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.contact-email-box:hover {
  background: var(--theme-panel-bg-subtle);
  border-color: var(--theme-primary);
}

.contact-info-icon {
  color: var(--theme-primary);
  flex: 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.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: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--theme-text-muted);
  margin-bottom: 2px;
}

.contact-info-value,
.contact-email-link {
  font-family: 'Inter', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--theme-primary-dark);
  text-decoration: none;
  word-break: break-all;
}

.contact-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  background: var(--theme-primary-dark);
  color: #ffffff !important;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  border: 1px solid var(--theme-primary-dark);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
  transition: all 0.15s ease;
}

.contact-btn-primary:hover {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
}

/* Webmaster Box Styles */
.contact-webmaster-box {
  margin-top: 18px;
  padding: 16px 20px;
  background: var(--theme-panel-gradient);
  border: 1px solid var(--theme-border);
  border-left: 4px solid var(--theme-primary-dark);
  border-radius: 10px;
  box-shadow: var(--theme-card-shadow);
}

.contact-webmaster-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.contact-webmaster-icon {
  color: var(--theme-primary-dark);
  flex-shrink: 0;
}

.contact-webmaster-name {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--theme-primary-dark);
}

.contact-webmaster-role {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--theme-primary);
  background: var(--theme-primary-light);
  padding: 2px 8px;
  border-radius: 6px;
}

.contact-webmaster-desc {
  margin: 0 0 10px !important;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--theme-text-muted);
}

.contact-webmaster-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--theme-primary-dark) !important;
  text-decoration: none;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid var(--theme-border);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.contact-webmaster-email:hover {
  background: var(--theme-primary-dark);
  color: #ffffff !important;
}

/* -------------------------------------------------------------------------
   7. Catalogues Page Component Styles
   ------------------------------------------------------------------------- */
.catalogues-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.catalogues-header-card {
  position: relative;
  padding: 24px 28px;
  margin: 0;
  background: var(--theme-panel-gradient);
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  box-shadow: var(--theme-card-shadow);
}

.catalogues-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 40px;
  right: 40px;
  height: 3px;
  background: var(--theme-accent-gradient);
  border-radius: 2px;
}

.cat-kicker {
  display: block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--theme-primary);
  margin: 0 0 6px 0;
}

.cat-main-title {
  display: block;
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--theme-primary-dark);
  margin: 0 0 10px 0 !important;
}

.cat-lead {
  display: block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--theme-text-muted);
  margin: 0 0 18px 0 !important;
}

/* Toolbar */
.cat-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--theme-border-subtle);
}

.cat-search-box {
  position: relative;
  flex: 1 1 260px;
}

.cat-search-box input {
  width: 100%;
  height: 38px;
  padding: 0 32px 0 34px;
  border-radius: 8px;
  border: 1px solid var(--theme-border);
  background: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--theme-primary-dark);
  outline: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.cat-search-box input:focus {
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 3px var(--theme-primary-light);
}

.cat-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--theme-text-muted);
  pointer-events: none;
}

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

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

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  background: var(--theme-panel-bg-subtle);
  border: 1px solid var(--theme-border);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--theme-primary-dark);
  cursor: pointer;
  transition: all 0.15s ease;
}

.cat-chip:hover {
  background: var(--theme-panel-bg);
}

.cat-chip.is-active {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.cat-chip .chip-count {
  font-size: 11px;
  opacity: 0.8;
}

/* Sections */
.cat-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cat-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--theme-border-subtle);
}

.cat-section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--theme-primary-light);
  color: var(--theme-primary);
}

.cat-section-icon.icon-gold {
  background: rgba(184, 134, 11, 0.12);
  color: #8c6b12;
}

.cat-section-icon.icon-wine {
  background: rgba(128, 0, 32, 0.12);
  color: #800020;
}

.cat-section-title {
  margin: 0;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--theme-primary-dark);
}

.cat-section-sub {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  color: var(--theme-text-muted);
}

/* Catalogues Grid & Cards */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.cat-grid-4 {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.cat-card {
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid var(--theme-border);
  border-radius: 10px;
  box-shadow: var(--theme-card-shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-sizing: border-box;
}

.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--theme-card-shadow-hover);
  border-color: var(--theme-primary);
}

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

.cat-badge {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
}

.badge-pdf {
  background: rgba(192, 57, 43, 0.12);
  color: #c0392b;
}

.badge-ebook {
  background: rgba(184, 134, 11, 0.14);
  color: #8c6b12;
}

.badge-museum {
  background: var(--theme-primary-light);
  color: var(--theme-primary);
}

.cat-meta-date,
.cat-meta-domain {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--theme-text-muted);
}

.cat-card-title {
  margin: 0;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--theme-primary-dark);
  line-height: 1.3;
}

.cat-card-author {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--theme-primary);
}

.cat-card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--theme-text-body);
  margin: 0;
  flex: 1 1 auto;
}

.cat-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--theme-border-subtle);
}

.cat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.cat-btn-primary {
  background: var(--theme-primary);
  color: #ffffff !important;
  border: 1px solid var(--theme-primary);
}

.cat-btn-primary:hover {
  background: var(--theme-primary-dark);
  border-color: var(--theme-primary-dark);
}

.cat-btn-secondary {
  background: var(--theme-panel-bg-subtle);
  color: var(--theme-primary) !important;
  border: 1px solid var(--theme-border);
}

.cat-btn-secondary:hover {
  background: var(--theme-panel-bg);
}

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

/* Results bar & empty state */
.cat-results-bar {
  padding: 8px 14px;
  background: var(--theme-panel-bg-subtle);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--theme-primary);
}

.cat-results-text {
  display: inline-block;
}

.cat-empty-card {
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--theme-text-muted);
}

/* -------------------------------------------------------------------------
   8. Footer & Legal Architecture
   ------------------------------------------------------------------------- */
#layoutFooter {
  clear: both;
  height: 34px;
  background: linear-gradient(180deg, var(--nav-bg, #e9d7ab) 0%, var(--nav-bg-strong, #d0ae68) 100%);
  border-top: 1px solid var(--border-soft, rgba(41, 38, 23, 0.18));
  overflow: hidden;
}

#layoutFooter .siteinfoLegal {
  float: right;
  padding: 6px;
  display: flex;
  align-items: center;
}

.siteinfoLegal {
  display: flex;
  align-items: center;
}

.cc-icon {
  height: 22px !important;
  margin-left: 3px;
  vertical-align: middle;
}

.cc-icon.last {
  margin-right: 3px;
}

/* -------------------------------------------------------------------------
   9. Floating Back-to-Top Button
   ------------------------------------------------------------------------- */
#back-to-top-btn.is-visible {
  display: flex !important;
}

#back-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--nav-bg-strong, #d0ae68);
  color: var(--nav-text, #2f2318);
  border: 1px solid var(--border-soft, rgba(41, 38, 23, 0.25));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

#back-to-top-btn:hover {
  transform: translateY(-3px);
  background: var(--nav-bg, #e9d7ab);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
}

#back-to-top-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

/* -------------------------------------------------------------------------
   10. Mobile Global Responsiveness (max-width: 768px)
   ------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
  #layoutMenu {
    height: auto !important;
    min-height: 42px !important;
    z-index: 1000;
  }

  #layoutMenu nav {
    height: auto;
  }

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

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

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

  .maintitle br {
    display: inline;
  }

  .maintitle {
    width: auto;
    max-width: 90%;
    font-size: clamp(16px, 4.5vw, 24px);
    right: 10px;
    bottom: 6px;
    text-align: right;
    white-space: normal;
    line-height: 1.1;
  }

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

  #layoutNavigation .navTitle {
    padding: 8px 12px;
  }

  #layoutBodyContent {
    margin-top: 0;
    margin-left: 0;
    width: auto;
    padding: 8px;
    float: none;
  }

  #back-to-top-btn {
    bottom: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
  }

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

  .intro-header-card,
  .intro-card,
  .intro-about-card,
  .intro-contribute-card,
  .intro-features-section,
  .intro-thanks-card {
    padding: 18px 16px;
  }

  .contact-main-grid {
    grid-template-columns: 1fr;
  }

  .cat-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .cat-search-box {
    width: 100%;
    flex: 1 1 100%;
  }

  .cat-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Unified Search Form, Result Table (search + lastupdate), Pagination,
   Screenshot Preview & Legend — identical on every webmuseum
   (restored from the previous live pu.ibk10025.hu search style)
   ========================================================================== */

/* --- Search form --- */
.search {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.search-form {
  display: grid;
  gap: 6px;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.search-form-header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.search-form-heading,
.search-form-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.search-form-heading h2 {
  margin: 0;
}

.search-form-meta-text {
  color: var(--theme-text-muted, #4d3e2f);
  font-weight: 700;
}

.search-form-row {
  display: grid;
  grid-template-columns: minmax(94px, 120px) minmax(0, 1fr);
  gap: 10px 14px;
  align-items: center;
  min-height: 34px;
}

.search-form-row-dual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.search-form-dual-cell {
  display: grid;
  grid-template-columns: minmax(92px, 120px) minmax(0, 1fr);
  gap: 10px 14px;
  align-items: center;
}

.search-form-label {
  font-weight: 700;
  color: var(--nav-text, #2f2318);
  white-space: nowrap;
  text-align: right;
  padding-right: 4px;
}

.search-form-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.search-form-hint {
  white-space: nowrap;
  color: var(--theme-text-muted, #5a4837);
}

.search-form-static {
  color: var(--theme-text-body, #43372d);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.search-form input,
.search-form select {
  width: 100%;
  max-width: 100%;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid var(--theme-border, rgba(47, 35, 24, 0.18));
  border-radius: 8px;
  background: #fffefb;
  color: var(--theme-text-body, #2c241d);
  box-sizing: border-box;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.search-form input:focus,
.search-form select:focus {
  outline: none;
  border-color: var(--theme-primary, rgba(120, 89, 36, 0.5));
  box-shadow: 0 0 0 3px var(--theme-primary-light, rgba(185, 145, 74, 0.14));
}

.search-form-actions {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

.search-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 120px;
  min-height: 34px;
  padding: 0 18px;
  border: 1px solid var(--theme-border, rgba(47, 35, 24, 0.18));
  border-radius: 10px;
  background: linear-gradient(180deg, var(--nav-bg, #f1d79c) 0%, var(--nav-bg-strong, #d39f4d) 100%);
  color: var(--nav-text, #2f2318);
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 3px 10px rgba(47, 35, 24, 0.1);
}

.search-form input[type="submit"]:hover,
.search-form input[type="submit"]:focus {
  filter: brightness(1.06);
}

/* --- Result count & messages --- */
.searchresult-count {
  text-align: center;
  font-weight: 700;
  margin: 10px 0 4px;
}

.search-loading,
.search-info {
  text-align: center;
}

.search-info {
  font-weight: 700;
  margin: 10px 0;
}

.search-error {
  color: #a82424;
  text-align: center;
}

/* --- Result table (search & lastupdate) --- */
.searchresult {
  margin: 10px 0;
}

.searchresult-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.searchresult table,
.searchresult2 {
  width: 100%;
  padding: 5px 2px;
  border-collapse: collapse;
  font-size: 13px;
}

.searchresult td {
  padding: 2px 10px;
  text-align: center;
}

.searchresult td.search-table-title {
  text-align: left;
}

.searchresult td img {
  height: 46px;
  width: 46px;
  object-fit: contain;
}

.searchresult img.searchresult-b-header-img {
  width: 40px;
  height: 40px;
}

.searchresult-cell-b {
  font-size: 12px;
  white-space: nowrap;
}

.searchresult tr:nth-child(even) {
  background: var(--theme-panel-bg, #f7f1e7);
}

.searchresult tr:nth-child(odd) {
  background: #fffdf9;
}

.searchresult tr:first-child {
  background: linear-gradient(180deg, var(--nav-bg, #e9d7ab) 0%, var(--nav-bg-strong, #d0ae68) 100%);
  color: var(--nav-text, #2f2318);
  font-weight: bold;
}

.searchresult a.screenshot,
.searchresult a.screenshotpopup {
  color: var(--link, #8e6741);
  font-weight: 600;
  text-decoration: none;
}

.searchresult a.screenshot:hover,
.searchresult a.screenshotpopup:hover {
  text-decoration: underline;
}

.searchresult-no-results {
  text-align: center;
  font-weight: 700;
  padding: 20px !important;
}

/* --- Rich text / legend colours coming from the database --- */
.rich-text-color-red, .rich-text-color-r, .legend-red, .legend-color-red { color: red; }
.rich-text-color-green, .rich-text-color-g, .legend-green, .legend-color-green { color: green; }
.rich-text-color-blue, .rich-text-color-b, .legend-blue, .legend-color-blue { color: blue; }
.rich-text-color-purple, .rich-text-color-violet, .rich-text-color-v, .legend-purple, .legend-color-purple { color: purple; }
.rich-text-color-black { color: black; }
.rich-text-color-white { color: white; }

/* --- Pagination --- */
.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 var(--theme-border, rgba(47, 35, 24, 0.18));
  background: var(--theme-panel-bg, #f7f1e7);
  color: var(--nav-text, #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, var(--nav-bg, #e9d7ab) 0%, var(--nav-bg-strong, #d0ae68) 100%);
  color: var(--nav-text, #2f2318);
  transform: translateY(-1px);
}

.pagination strong.current-page {
  background: var(--theme-primary, #b98b3d);
  border-color: var(--theme-primary, #b98b3d);
  color: #fffaf2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.pagination .pagination-dots {
  color: var(--theme-text-muted, #6d5841);
  font-weight: 700;
  padding: 0 2px;
}

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

/* --- Screenshot hover / tap preview --- */
#screenshot {
  position: fixed;
  display: none;
  z-index: 99999;
  max-width: calc(100vw - 24px);
  width: auto;
  padding: 5px;
  border: 1px solid #ccc;
  background: #333;
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  transform: translateZ(0);
}

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

img.screenshot2 {
  max-width: 350px;
  max-height: 350px;
}

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

.screenshot-title {
  font-weight: 700;
}

.screenshot-type-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 1px 6px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
}

.screenshot-close-btn {
  margin-left: auto;
  padding: 0 4px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.screenshot-caption {
  margin-top: 4px;
  font-size: 12px;
}

/* --- Legend (left sidebar of search pages) --- */
dl.table-display {
  margin: 0;
  padding: 0;
}

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

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

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

/* --- Responsive: search form + data-label result cards --- */
@media (max-width: 1024px) {
  .search {
    overflow-x: hidden;
  }

  .search-form {
    gap: 8px;
  }

  .search-form-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .search-form-meta {
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .search-form-row {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 1px 0;
  }

  .search-form-row-dual {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .search-form-dual-cell {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .search-form-label {
    display: block;
    width: 100%;
    text-align: center;
  }

  .search-form-control {
    flex-wrap: wrap;
    gap: 6px;
    max-width: 100%;
  }

  .search-form input,
  .search-form select {
    padding: 6px 10px;
  }

  .search-form-hint {
    font-size: 12px;
  }

  .search-form input[type="submit"] {
    min-height: 32px;
    padding: 0 16px;
    margin: 6px auto 0;
  }

  .searchresult {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .searchresult table,
  .searchresult thead,
  .searchresult tbody,
  .searchresult tr,
  .searchresult td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .searchresult table {
    min-width: 0;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0;
  }

  .searchresult tr {
    margin: 0 0 8px;
    padding: 6px 10px;
    border: 1px solid var(--theme-border, rgba(47, 35, 24, 0.14));
    border-radius: 12px;
    background: var(--theme-panel-gradient, linear-gradient(180deg, #fff 0%, #f9f3e8 100%));
    box-shadow: 0 2px 10px rgba(31, 22, 15, 0.08);
  }

  .searchresult tr:first-child {
    display: none;
  }

  .searchresult td {
    position: relative;
    display: grid;
    grid-template-columns: minmax(100px, 38%) minmax(0, 1fr);
    align-items: flex-start;
    gap: 8px;
    min-height: 24px;
    padding: 4px 0;
    border: 0;
    border-bottom: 1px dashed var(--theme-border-subtle, rgba(47, 35, 24, 0.12));
    font-size: 12px;
    line-height: 1.3;
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .searchresult td.search-table-title {
    text-align: right;
  }

  .searchresult td:last-child {
    border-bottom: 0;
  }

  .searchresult td[data-empty="true"] {
    display: none;
  }

  .searchresult td::before {
    content: attr(data-label);
    display: block;
    width: 100%;
    font-size: 11px;
    font-weight: 700;
    color: var(--theme-text-muted, #473b2f);
    line-height: 1.4;
    text-align: left;
  }

  .searchresult td img {
    width: 32px;
    height: 32px;
    justify-self: end;
  }

  .searchresult td.searchresult-no-results {
    display: block;
    text-align: center;
  }

  .searchresult td.searchresult-no-results::before {
    content: none;
  }

  .pagination {
    gap: 6px;
    margin-top: 12px;
  }

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

  #screenshot {
    left: 50% !important;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) and (min-width: 420px) {
  .search-form-row {
    grid-template-columns: minmax(90px, 120px) minmax(0, 1fr);
    align-items: center;
  }
}

/* Philatelic symbol font (the @font-face source is defined per museum in style.css) */
#specfont,
.specfont {
  font-family: 'stamp_symbolsregular', sans-serif;
  font-size: 11px;
  display: inline-block;
  font-style: normal;
}
