/* ==========================================================================
   MAW Core Layout & Shell Stylesheet (Hungarian Postmark Web Museum)
   Modular structure: menu in sm-simple.css, cards/modal in cards.css,
   year filters in details.css, pages in pages.css, admin in admin.css.
   ========================================================================== */

/* ==========================================================================
   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;
}

/* Google Fonts — Lora (serif headings) + Inter (UI) */
/* Google Fonts moved to <head> links for non-blocking parallel load */

:root {
	--page-bg: #f3efe7;
	--page-shell-bg: #fffdf9;
	--nav-bg: #e9d7ab;
	--nav-bg-strong: #d0ae68;
	--nav-text: #2f2318;
	--content-text: #2c241d;
	--link: #8e6741;
	--border-soft: rgba(41, 38, 23, 0.18);
	--panel-bg: #f8f3ec;
	--shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.08);
}

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

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

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

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

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

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

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

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

.maintitle {
	text-shadow: 2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff, 1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff;
	color: #333;
	opacity: 1;
	font: min(max(21px, 3vw), 60px) 'MainTitle';
	position: absolute;
	bottom: 1px;
	right: 10px;
	white-space: nowrap;
}

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

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

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

#layoutNavigation .navTitle {
	background: linear-gradient(180deg, #e9d7ab 0%, #d0ae68 100%);
	color: var(--nav-text);
	font-weight: bold;
	padding: 6px 8px;
	letter-spacing: 0.02em;
	display: flex;
	align-items: center;
	justify-content: space-between;
	user-select: none;
}

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

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

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

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

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

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

/* Active year link */
#layoutNavigation .active > a {
	color: #2a1f17 !important;
	font-weight: bold;
	background: rgba(116, 89, 55, 0.1);
}

/* Parent group(s) containing the active item */
#layoutNavigation li:has(.active) > a {
	color: #2a1f17 !important;
	font-weight: bold;
	background: rgba(116, 89, 55, 0.1);
}

#layoutNavigation ul {
	margin: 0;
	padding: 0;
}

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

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

#layoutNavigation ul.topnav span {
	float: right;
}
/* left navigation menu ends */

/* center content begins */
#layoutBodyContent {
	flex: 1;
	min-width: 0;
	margin: 0;
	padding: 10px;
	background: linear-gradient(180deg, rgba(248,243,236,0.95), rgba(255,255,255,0.8));
	border: 1px solid rgba(54, 44, 34, 0.12);
	border-radius: 12px;
	box-shadow: 0 8px 20px rgba(41, 38, 23, 0.04);
}

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

#layoutBodyContent a:hover{
	color:#2a1f17;
	font-weight:bold;
}

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

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

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

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

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


/* Modular Domain Stylesheets */
@import url('cards.css');
@import url('pages.css');
/* Responsive styling for smaller screens */
@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%;
		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;
	}

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

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

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

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

	.intro-features-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	#layoutNavigation .topnav li {
		padding: 0;
	}

	#layoutNavigation .topnav ul {
		padding-left: 20px;
	}
}

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

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

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

/* extracted inline styles */
.justify-text {
    text-align: justify;
}
.question {
    border: 0;
	padding: 5px 0 0 0;
}
.hideEX {
    display: flex;
}
.hideNA {
    display: flex;
}
