:root {
  --theme-primary: #5d7686;
  --theme-primary-dark: #2c3942;
  --theme-primary-light: rgba(93, 118, 134, 0.12);
  --theme-border: rgba(44, 57, 66, 0.14);
  --theme-border-subtle: rgba(44, 57, 66, 0.08);
  --theme-text-body: #2c3942;
  --theme-text-muted: #576873;
  --theme-panel-bg: #f3f7f9;
  --theme-panel-bg-subtle: #edf3f8;
  --theme-panel-gradient: linear-gradient(180deg, #ffffff 0%, #f3f7f9 100%);
  --theme-card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(243, 247, 249, 0.92) 100%);
  --theme-accent-gradient: linear-gradient(90deg, transparent 0%, #5d7686 50%, transparent 100%);
  --theme-card-shadow: 0 4px 14px rgba(44, 57, 66, 0.04);
  --theme-card-shadow-hover: 0 8px 20px rgba(44, 57, 66, 0.10);
  --nav-bg: #d6e3ed;
  --nav-bg-strong: #a4bac8;
  --nav-text: #000000;
  --nav-panel-bg: linear-gradient(180deg, #fdfefe 0%, #edf3f8 100%);
  --nav-hover-bg: rgba(109, 139, 162, 0.10);
  --nav-active-bg: linear-gradient(180deg, rgba(109, 139, 162, 0.22), rgba(109, 139, 162, 0.12));
  --nav-parent-active-bg: rgba(109, 139, 162, 0.14);
  --nav-sub-bg: rgba(44, 57, 66, 0.03);
  --page-bg: radial-gradient(circle at top, rgba(109, 139, 162, 0.12), transparent 42%), linear-gradient(180deg, #f3f5f6 0%, #dae4ea 100%);
  --page-shell-bg: linear-gradient(180deg, #fcfdfd 0%, #f3f7f9 100%);
  --link: #5d7686;
  --link-hover: #2c3942;
  --border-soft: rgba(44, 57, 66, 0.14);
  --shadow-soft: 0 0 0 1px rgba(44, 57, 66, 0.08), 0 18px 40px rgba(88, 109, 124, 0.12);
}

/* ==========================================================================
   Pénzügyi Értékcikkek Webmúzeuma (PEW)
   Unified Archival Design System (Slate Blue Palette)
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. Top Navigation & SmartMenus Theme (Consolidated)
   ------------------------------------------------------------------------- */
.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: #000000;
  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: #000000;
}

.sm-simple a.disabled {
  color: #8c9aa5;
  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 #000000;
  transform: none !important;
  transition: none !important;
}

/* Mobile list items & sub-menus */
.sm-simple li {
  position: relative;
  border-top: 1px solid rgba(44, 57, 66, 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(223, 234, 241, 0.65);
  border-top: 1px solid rgba(44, 57, 66, 0.08);
  border-bottom: 1px solid rgba(44, 57, 66, 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: #2c3942;
  border-left: 3px solid transparent;
}

.sm-simple ul a:hover,
.sm-simple ul a:focus {
  background: rgba(255, 255, 255, 0.65);
  color: #466070;
  border-left-color: #5d7686;
}

.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;
    background: linear-gradient(180deg, #a8becd 0%, #7c92a4 45%, #5d7686 100%);
    border-bottom: 1px solid rgba(44, 57, 66, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 4px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 1000;
  }

  #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; /* push language to right edge */
  }

  /* Desktop topbar links - EVERY LINK has identical styling */
  .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: #000000 !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.45) !important;
    color: #000000 !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 #000000;
    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: #000000;
    opacity: 1;
    transform: none !important;
    transition: none !important;
  }

  /* Desktop floating dropdown sub-menus */
  .sm-simple ul {
    position: absolute;
    width: 14em;
    background: #ffffff;
    border: 1px solid rgba(44, 57, 66, 0.18);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(44, 57, 66, 0.14);
    padding: 4px 0;
    margin: 0;
    z-index: 10000;
  }

  .sm-simple ul li {
    border-top: 0;
    margin: 0;
    padding: 0;
  }

  .sm-simple ul a,
  .sm-simple ul a:link,
  .sm-simple ul a:visited {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    color: #000000;
    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: #edf3f8;
    color: #000000;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 7px 14px !important;
    border-left-color: #5d7686;
    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 #2c3942;
    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, #a8becd 0%, #7c92a4 45%, #5d7686 100%);
    border-bottom: 1px solid rgba(44, 57, 66, 0.22);
  }

  .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.45);
    border: 1px solid rgba(44, 57, 66, 0.22);
    border-radius: 6px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #000000;
    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.7);
  }

  .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: #000000;
    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.4);
    border: 1px solid rgba(44, 57, 66, 0.2);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
    transition: all 0.15s ease;
  }

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

  .mobile-quick-lang .m-lang-btn.is-active {
    background: #5d7686;
    border-color: #466070;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(44, 57, 66, 0.3);
  }

  #main-menu {
    display: none;
    width: 100% !important;
    background: linear-gradient(180deg, #edf3f8 0%, #dae4ea 100%);
    box-shadow: 0 10px 24px rgba(44, 57, 66, 0.22);
    border-bottom: 2px solid #5d7686;
    border-top: 1px solid rgba(44, 57, 66, 0.12);
  }

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

  .sm-simple > li {
    float: none;
    width: 100%;
    border-top: 1px solid rgba(44, 57, 66, 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
   ========================================================================== */

* {
	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:
		radial-gradient(circle at top, rgba(109, 139, 162, 0.12), transparent 42%),
		linear-gradient(180deg, #f3f5f6 0%, #dae4ea 100%);
	color: #2c3942;
}

#container {
	width: 96%;
	max-width: 1720px;
	margin: 14px auto 20px auto;
	background: linear-gradient(180deg, #fcfdfd 0%, #f3f7f9 100%);
	box-shadow: 0 0 0 1px rgba(44, 57, 66, 0.08), 0 18px 40px rgba(88, 109, 124, 0.12);
	border-radius: 16px;
	overflow: hidden;
}

/* Header */
#layoutHeader {
	background: url(../images/header.jpg) no-repeat left;
	position: relative;
	width: 100%;
	height: 116px;
	border-bottom: 1px solid rgba(44, 57, 66, 0.14);
}

.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', Georgia, serif;
    position: absolute;
    bottom: 1px;
    right: 10px;
    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;
	}
}

/* Central Wrapper */
#layoutCenterBody {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 10px 5px 0 10px;
    padding-bottom: 18px;
}

/* Left Navigation Menu */
#layoutNavigation {
    width: 200px;
    min-width: 200px;
    flex: 0 0 200px;
    border: 1px solid rgba(44, 57, 66, 0.14);
    background: linear-gradient(180deg, #fdfefe 0%, #edf3f8 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
    border-radius: 12px;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    letter-spacing: normal;
}

#layoutNavigation .navTitle {
    background: linear-gradient(180deg, #d6e3ed 0%, #a4bac8 100%);
    color: #2c3942;
    font-weight: bold;
    padding: 6px 8px;
    letter-spacing: 0.02em;
    margin: 0 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
    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 rgba(44, 57, 66, 0.10);
    margin: 0;
    padding: 5px 10px;
    color: #2c3942;
    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: #1a252c;
    background: rgba(98, 126, 143, 0.12);
    font-weight: normal;
}

#layoutNavigation .active > a,
#layoutNavigation .active a,
#layoutNavigation a#active {
    color: #1a252c !important;
    background: linear-gradient(180deg, rgba(98,126,143,0.22), rgba(98,126,143,0.12));
    font-weight: bold;
}

#layoutNavigation li:has(.active) > a {
    color: #1a252c !important;
    font-weight: bold;
    background: rgba(98, 126, 143, 0.14);
}

#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 li:last-child {
    padding-bottom: 0;
}

#layoutNavigation .topnav ul {
    display: none;
    padding-left: 10px;
    background: rgba(44, 57, 66, 0.03);
}

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

#layoutNavigation ul.topnav span {
    float: right;
}

/* Center Content Card */
#layoutBodyContent {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 10px;
    color: #2c3942;
    background: linear-gradient(180deg, rgba(253,254,254,0.98), rgba(237,243,248,0.9));
    border: 1px solid rgba(44, 57, 66, 0.14);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(44, 57, 66, 0.04);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
}

#layoutBodyContent a:link,
#layoutBodyContent a:visited {
    color: #466070;
    text-decoration: none;
}

#layoutBodyContent a:hover {
	color: #1a252c;
	font-weight: bold;
}

#layoutBodyContent > p {
    margin-top: 10px;
}

/* Catalog Card Grid & Details */
.catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 20px;
    padding: 4px 6px 0;
}

.catalog-header h1 {
    margin: 0;
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.6rem, 2.2vw, 2.4rem);
    line-height: 1.2;
    color: #2c3942;
    letter-spacing: -0.02em;
}

.catalog-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #dfeaf1 0%, #a3bac8 100%);
    border: 1px solid rgba(44, 57, 66, 0.18);
    color: #2c3942;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 3px 10px rgba(98, 126, 143, 0.16);
}

.catalog-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
    align-items: stretch;
    padding: 6px 2px 20px;
}

.catalog-card {
    margin: 0;
    width: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
    border: 1px solid rgba(44, 57, 66, 0.14);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(44, 57, 66, 0.05), 0 1px 3px rgba(44, 57, 66, 0.03);
    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;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    user-select: none;
    outline: none;
}

.catalog-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #5d7686, #80a0b4, #5d7686);
    opacity: 0.9;
    z-index: 2;
}

.catalog-card:hover,
.catalog-card:focus-visible {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 14px 28px rgba(44, 57, 66, 0.12), 0 4px 10px rgba(44, 57, 66, 0.06);
    border-color: #5d7686;
}

/* Card Header: ID Badge & Face Value Badge */
.catalog-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px 8px;
    border-bottom: 1px solid rgba(44, 57, 66, 0.08);
    background: rgba(255, 255, 255, 0.85);
}

.card-badge-id {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #2c3942;
    letter-spacing: 0.02em;
}

.card-badge-fv {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: rgba(93, 118, 134, 0.12);
    border: 1px solid rgba(93, 118, 134, 0.28);
    border-radius: 9999px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #3d5667;
}

/* Card Image Stage */
.catalog-card-image {
    padding: 14px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 170px;
    background: radial-gradient(circle at center, #ffffff 40%, #f4f8fa 100%);
    position: relative;
    overflow: hidden;
}

.catalog-card-image img {
    max-width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease;
}

.catalog-card:hover .catalog-card-image img {
    transform: scale(1.04);
}

/* Hover hint overlay */
.catalog-card-hover-hint {
    position: absolute;
    inset: auto 12px 10px auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(44, 57, 66, 0.85);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.catalog-card:hover .catalog-card-hover-hint {
    opacity: 1;
    transform: translateY(0);
}

/* Card Body: Available Details */
.catalog-card-body {
    padding: 10px 12px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #ffffff;
    border-top: 1px solid rgba(44, 57, 66, 0.06);
}

.catalog-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-meta-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
    font-size: 11.5px;
    line-height: 1.35;
    padding: 2px 0;
    border-bottom: 1px dashed rgba(44, 57, 66, 0.08);
}

.card-meta-line:last-child {
    border-bottom: none;
}

.card-meta-k {
    font-family: 'Inter', -apple-system, sans-serif;
    color: #556c7d;
    font-weight: 600;
    text-transform: capitalize;
    flex-shrink: 0;
}

.card-meta-v {
    font-weight: 700;
    color: #2c3942;
    text-align: right;
    word-break: break-word;
}

.card-meta-empty {
    color: #7c92a4;
    font-size: 11px;
}

/* Card Action Footer */
.catalog-card-footer {
    padding: 8px 12px;
    background: #f7fafc;
    border-top: 1px solid rgba(44, 57, 66, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-open-hint {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    color: #5d7686;
    transition: color 0.15s ease;
}

.catalog-card:hover .card-open-hint {
    color: #1a252c;
}

/* ==========================================================================
   Magnified Center Exhibition Card Modal (On-Click Lightbox)
   ========================================================================== */

body.pew-modal-open {
    overflow: hidden !important;
}

.pew-card-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.pew-card-modal.is-active {
    opacity: 1;
    visibility: visible;
}

/* Dark Backdrop with Blur */
.pew-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 26, 31, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.pew-card-modal.is-active .pew-modal-backdrop {
    opacity: 1;
}

/* Floating Navigation Arrows */
.pew-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(44, 57, 66, 0.22);
    color: #2c3942;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.18s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pew-modal-nav.prev {
    left: max(12px, calc((100vw - 940px) / 2 - 58px));
}

.pew-modal-nav.next {
    right: max(12px, calc((100vw - 940px) / 2 - 58px));
}

.pew-modal-nav:hover {
    background: #5d7686;
    border-color: #466070;
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Center Magnified Card - FIXED SIZE & SMOOTH POP TRANSITION */
.pew-modal-card {
    position: relative;
    z-index: 5;
    width: 920px;
    height: 580px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42), 0 4px 16px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9) translateY(12px);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.24s ease;
    box-sizing: border-box;
}

.pew-card-modal.is-active .pew-modal-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Topbar */
.pew-modal-card-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    flex: 0 0 48px;
    padding: 0 16px;
    background: linear-gradient(180deg, #f7fafc 0%, #edf3f8 100%);
    border-bottom: 1px solid rgba(44, 57, 66, 0.14);
    box-sizing: border-box;
}

.pew-modal-badge-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pew-modal-badge {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #3d5667;
    background: rgba(93, 118, 134, 0.14);
    border: 1px solid rgba(93, 118, 134, 0.3);
    border-radius: 9999px;
    padding: 2px 8px;
}

.pew-modal-id {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #2c3942;
}

.pew-modal-counter {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    color: #2c3942;
    background: rgba(44, 57, 66, 0.08);
    padding: 3px 9px;
    border-radius: 6px;
    border: 1px solid rgba(44, 57, 66, 0.12);
}

.pew-modal-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pew-modal-action-btn,
.pew-modal-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(44, 57, 66, 0.18);
    color: #2c3942;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pew-modal-action-btn:hover,
.pew-modal-close-btn:hover {
    background: #5d7686;
    border-color: #466070;
    color: #ffffff;
}

.pew-modal-action-btn.is-active {
    background: #5d7686;
    border-color: #466070;
    color: #ffffff;
}

/* Card Body: 2 Columns (Image Stage & Details Column) with Slide/Fade Transition */
.pew-modal-card-body {
    display: flex;
    align-items: stretch;
    flex: 1 1 auto;
    height: calc(100% - 48px);
    min-height: 0;
    overflow: hidden;
    position: relative;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    box-sizing: border-box;
    will-change: transform, opacity;
}

/* Smooth Slide Transitions for Prev / Next Navigation */
.pew-modal-card-body.slide-out-left {
    transform: translateX(-32px);
    opacity: 0;
    transition: transform 0.12s ease-in, opacity 0.12s ease-in;
}

.pew-modal-card-body.slide-out-right {
    transform: translateX(32px);
    opacity: 0;
    transition: transform 0.12s ease-in, opacity 0.12s ease-in;
}

.pew-modal-card-body.slide-in-right {
    transform: translateX(32px);
    opacity: 0;
    transition: none !important;
}

.pew-modal-card-body.slide-in-left {
    transform: translateX(-32px);
    opacity: 0;
    transition: none !important;
}

/* Left Image Column - FIXED 54% PROPORTION */
.pew-modal-image-col {
    flex: 0 0 54%;
    width: 54%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: radial-gradient(circle at center, #ffffff 40%, #edf3f8 100%);
    border-right: 1px solid rgba(44, 57, 66, 0.12);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.pew-modal-image-viewport {
    flex: 1 1 auto;
    width: 100%;
    height: calc(100% - 44px);
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: zoom-in;
    position: relative;
    border-radius: 8px;
}

.pew-modal-image-viewport.is-zoomed {
    cursor: zoom-out;
}

.pew-modal-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.18s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.pew-modal-image-caption {
    font-size: 12px;
    font-weight: 700;
    color: #556c7d;
    margin-top: 8px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 95%;
}

.pew-modal-zoom-hint {
    font-size: 11px;
    color: #7c92a4;
    margin-top: 3px;
    text-align: center;
}

/* Right Details Column - FIXED 46% PROPORTION WITH DEDICATED SCROLL */
.pew-modal-details-col {
    flex: 0 0 46%;
    width: 46%;
    height: 100%;
    padding: 18px 20px;
    background: #ffffff;
    overflow-y: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.pew-modal-details-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pew-modal-meta-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 10px;
    background: #f7fafc;
    border: 1px solid rgba(44, 57, 66, 0.08);
    border-radius: 6px;
    transition: background 0.12s ease;
}

.pew-modal-meta-row:hover {
    background: #edf3f8;
}

.pew-modal-meta-row .meta-label {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    color: #556c7d;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.pew-modal-meta-row .meta-value {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1a252c;
    text-align: right;
    word-break: break-word;
}

.pew-modal-meta-empty {
    padding: 12px;
    color: #7c92a4;
    text-align: center;
    font-style: italic;
    font-size: 12px;
}

/* Mobile & Tablet Responsive Adjustments */
@media screen and (max-width: 768px) {
    .catalog-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .pew-modal-nav.prev {
        left: 8px;
        width: 38px;
        height: 38px;
    }

    .pew-modal-nav.next {
        right: 8px;
        width: 38px;
        height: 38px;
    }

    .pew-modal-card {
        width: calc(100vw - 20px);
        height: min(620px, calc(100vh - 24px));
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 12px;
    }

    .pew-modal-card-body {
        flex-direction: column;
        height: calc(100% - 46px);
    }

    .pew-modal-image-col {
        flex: 0 0 48%;
        width: 100%;
        height: 48%;
        border-right: none;
        border-bottom: 1px solid rgba(44, 57, 66, 0.12);
        padding: 10px;
    }

    .pew-modal-img {
        max-height: 100%;
    }

    .pew-modal-details-col {
        flex: 0 0 52%;
        width: 100%;
        height: 52%;
        padding: 12px 14px;
    }
}

/* Footer */
.clearer {
	clear: both;
	height: 5px;
}

#layoutFooter {
	clear: both;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 14px;
	box-sizing: border-box;
	background: linear-gradient(180deg, #bfd0dc 0%, #8ea8ba 100%);
	border-top: 1px solid rgba(44, 57, 66, 0.14);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
}

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

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

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

#layoutFooter .siteinfoLegal .footer-legal-icon {
  height: 22px;
  margin-left: 3px;
  vertical-align: middle;
}

#layoutFooter .siteinfoLegal .footer-legal-icon--last {
  margin-right: 3px;
}

#layoutFooter a,
#layoutFooter a:link,
#layoutFooter a:visited {
	color: #2c3942;
	text-decoration: none;
}

#layoutFooter a:hover {
	color: #1d2a34;
	text-decoration: underline;
}

/* Responsive Media Queries (Mobile / Tablet max-width: 900px) */
@media screen and (max-width: 900px) {
	#container {
		width: 100%;
		max-width: 100%;
		border-radius: 0;
		box-shadow: none;
		margin: 0;
	}

	#layoutCenterBody {
		display: block;
		margin: 8px 10px 0;
		padding-bottom: 12px;
	}

	#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%;
		min-width: 100%;
		flex: none;
		float: none;
		margin: 0 0 10px 0;
		box-sizing: border-box;
	}

	#layoutNavigation .navTitle {
		cursor: pointer;
	}

	#layoutNavigation .navTitle::after {
		content: "▾";
		font-size: 14px;
		transition: transform 0.2s ease;
	}

	#layoutNavigation.is-collapsed .navTitle::after {
		transform: rotate(-90deg);
	}

	#layoutBodyContent {
		width: 100%;
		min-width: 0;
		margin-top: 0;
		padding: 10px;
	}

	.catalog-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.catalog-card-grid {
		grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	}
}

@media screen and (min-width: 901px) {
  #layoutNavigation .navTitle::after {
    display: none;
  }
}

/* =========================================================================
   Contact Page Styles (Slate Blue Theme)
   ========================================================================= */
.contact-page {
  padding: 14px 18px 24px;
}

.contact-header-card {
  background: linear-gradient(180deg, #fdfefe 0%, #edf3f8 100%);
  border: 1px solid rgba(44, 57, 66, 0.16);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(44, 57, 66, 0.04);
}

.contact-kicker {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #5d7686;
  margin-bottom: 8px;
}

.contact-main-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #2c3942;
  margin: 0 0 8px;
  line-height: 1.25;
}

.contact-lead {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #3d4f5c;
  margin: 0;
  max-width: 820px;
}

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

.contact-card {
  background: #ffffff;
  border: 1px solid rgba(44, 57, 66, 0.14);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(44, 57, 66, 0.04);
  display: flex;
  flex-direction: column;
}

.contact-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(44, 57, 66, 0.1);
}

.contact-icon-bubble {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(180deg, #edf3f8 0%, #dae4ea 100%);
  border: 1px solid rgba(44, 57, 66, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5d7686;
  flex-shrink: 0;
}

.contact-card-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #2c3942;
  margin: 0;
}

.contact-card-sub {
  font-size: 0.8rem;
  color: #5d7686;
  font-weight: 600;
}

.contact-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #3d4f5c;
  margin-bottom: 14px;
}

.contact-middle-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.contact-email-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f7fafc;
  border: 1px solid rgba(44, 57, 66, 0.12);
  border-radius: 8px;
}

.contact-info-icon {
  color: #5d7686;
  display: flex;
  align-items: center;
}

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

.contact-info-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6d8291;
}

.contact-email-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: #466070;
  text-decoration: none;
}

.contact-email-link:hover {
  text-decoration: underline;
}

.contact-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  background: linear-gradient(180deg, #5d7686 0%, #466070 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(70, 96, 112, 0.25);
  transition: all 0.15s ease;
  border: none;
}

.contact-btn-primary:hover {
  background: linear-gradient(180deg, #6c8697 0%, #526f82 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(70, 96, 112, 0.35);
}

.contact-callout-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: #f4f7f9;
  border-left: 3px solid #5d7686;
  border-radius: 4px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #4c5d69;
}

.contact-specs-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.contact-spec-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.contact-spec-item strong {
  color: #2c3942;
  margin-right: 4px;
}

.spec-bullet {
  color: #5d7686;
  font-weight: bold;
}

/* =========================================================================
   Catalogues / Digital Library Page (Slate Blue Theme)
   ========================================================================= */
.catalogues-page {
  padding: 14px 18px 24px;
}

.catalogues-header-card {
  background: linear-gradient(180deg, #fdfefe 0%, #edf3f8 100%);
  border: 1px solid rgba(44, 57, 66, 0.16);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 22px;
  box-shadow: 0 4px 14px rgba(44, 57, 66, 0.04);
}

.cat-kicker {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #5d7686;
  margin-bottom: 8px;
}

.cat-main-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #2c3942;
  margin: 0 0 8px;
  line-height: 1.25;
}

.cat-lead {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #3d4f5c;
  margin: 0 0 16px;
  max-width: 840px;
}

.cat-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.cat-search-box {
  position: relative;
  flex: 1 1 240px;
  min-width: 200px;
}

.cat-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6d8291;
  pointer-events: none;
}

.cat-search-box input {
  width: 100%;
  height: 36px;
  padding: 0 32px 0 36px;
  background: #ffffff;
  border: 1px solid rgba(44, 57, 66, 0.22);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #2c3942;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cat-search-box input:focus {
  outline: none;
  border-color: #5d7686;
  box-shadow: 0 0 0 3px rgba(93, 118, 134, 0.18);
}

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

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

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(44, 57, 66, 0.18);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #2c3942;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cat-chip:hover {
  background: #f0f4f7;
  border-color: #5d7686;
}

.cat-chip.is-active {
  background: #5d7686;
  border-color: #466070;
  color: #ffffff;
}

.cat-chip .chip-count {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(44, 57, 66, 0.1);
}

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

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

.cat-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(44, 57, 66, 0.14);
}

.cat-section-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(180deg, #edf3f8 0%, #dae4ea 100%);
  border: 1px solid rgba(44, 57, 66, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5d7686;
  flex-shrink: 0;
}

.cat-section-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.22rem;
  font-weight: 700;
  color: #2c3942;
  margin: 0 0 2px;
}

.cat-section-sub {
  font-size: 0.82rem;
  color: #5d7686;
}

.cat-grid {
  display: grid;
  gap: 16px;
}

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

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

.cat-card {
  background: #ffffff;
  border: 1px solid rgba(44, 57, 66, 0.14);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(44, 57, 66, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(44, 57, 66, 0.10);
  border-color: #5d7686;
}

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

.cat-badge {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  background: #edf3f8;
  color: #466070;
  border: 1px solid rgba(70, 96, 112, 0.2);
}

.badge-pdf {
  background: #edf3f8;
  color: #466070;
}

.badge-ebook {
  background: #eef2f5;
  color: #3b5262;
}

.badge-museum {
  background: #e9eff4;
  color: #344c5c;
}

.cat-meta-date, .cat-meta-domain {
  font-size: 11px;
  color: #6d8291;
}

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

.cat-card-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #2c3942;
  margin: 0 0 4px;
  line-height: 1.35;
}

.cat-card-author {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #5d7686;
  margin-bottom: 6px;
}

.cat-card-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #4c5d69;
  margin: 0;
}

.cat-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

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

.cat-btn-primary {
  flex: 1 1 auto;
  background: linear-gradient(180deg, #5d7686 0%, #466070 100%);
  color: #ffffff !important;
  box-shadow: 0 2px 5px rgba(70, 96, 112, 0.22);
}

.cat-btn-primary:hover {
  background: linear-gradient(180deg, #6c8697 0%, #526f82 100%);
  box-shadow: 0 4px 8px rgba(70, 96, 112, 0.3);
}

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

.cat-btn-secondary {
  width: 32px;
  padding: 0;
  background: #f4f7f9;
  border: 1px solid rgba(44, 57, 66, 0.18);
  color: #466070 !important;
}

.cat-btn-secondary:hover {
  background: #edf3f8;
  border-color: #5d7686;
}

.cat-empty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
  text-align: center;
  color: #6d8291;
  background: #ffffff;
  border: 1px dashed rgba(44, 57, 66, 0.2);
  border-radius: 12px;
  gap: 12px;
}

/* Intro Page Styles */
.intro-page {
  padding: 14px 18px 24px;
}

.intro-header-card {
  background: linear-gradient(180deg, #fdfefe 0%, #edf3f8 100%);
  border: 1px solid rgba(44, 57, 66, 0.16);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(44, 57, 66, 0.04);
}

.intro-kicker {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #5d7686;
  margin-bottom: 8px;
}

.intro-main-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #2c3942;
  margin: 0;
  line-height: 1.25;
}

.intro-card {
  background: #ffffff;
  border: 1px solid rgba(44, 57, 66, 0.14);
  border-radius: 12px;
  padding: 22px 26px;
  box-shadow: 0 4px 14px rgba(44, 57, 66, 0.04);
  line-height: 1.7;
  font-size: 0.95rem;
  color: #2c3942;
}

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

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