/* =====================================================================
   WDSF International Open Ruse 2026
   Responsive stylesheet - mobile first, usable from 400px wide screens.
   Brand: accent #f3204b, dark #191a1f, PT Sans Narrow.
   ===================================================================== */

:root{
	--accent: #f3204b;
	--dark: #191a1f;
	--ink: #1a1a1a;
	--muted: #444955;
	--paper: #f4f2ec;
	--line: #d6d6ca;
	--line-warm: #eadbc6;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ -webkit-text-size-adjust: 100%; }

body{
	margin: 0;
	padding: 0;
	background-color: var(--dark);
	background-image: url('../images/top_bgr.jpg');
	background-repeat: repeat-x;
	font-family: 'PT Sans Narrow', 'Arial Narrow', Arial, sans-serif;
	font-size: 18px;
	line-height: 1.45;
	color: var(--ink);
}

img{ border: 0; max-width: 100%; height: auto; }
a{ color: var(--accent); text-decoration: none; }
a:hover{ text-decoration: underline; }
strong{ font-weight: 700; }

.site{
	max-width: 1000px;
	margin: 0 auto;
	background: var(--paper) url('../images/pattern2.jpg') repeat;
	box-shadow: 0 0 30px rgba(0,0,0,.5);
}

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */

.site-header{
	background: var(--dark) url('../images/top_image.jpg') no-repeat right top;
	border-bottom: 3px solid var(--accent);
	min-height: 92px;
}

/* the decorative photo would sit behind the title on narrow screens */
@media (max-width: 700px){
	.site-header{ background-image: none; min-height: 0; }
}

.header-inner{
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 16px 12px;
}

.brand-title{
	font-weight: 400;
	font-size: clamp(26px, 4.6vw, 42px);
	line-height: 1.05;
	color: var(--accent);
}

.brand-sub{
	margin-top: 4px;
	font-size: clamp(15px, 3vw, 18px);
	color: #a7adb8;
}

.brand-memoriam{
	margin-top: 6px;
	font-size: clamp(14px, 2.6vw, 16px);
	font-style: italic;
	color: #d4d8e0;
}

.lang-switch{
	display: flex;
	gap: 10px;
	flex-shrink: 0;
	padding-top: 4px;
}

.lang-switch a{
	display: inline-block;
	line-height: 0;
	opacity: .65;
}

.lang-switch img{
	width: 26px;
	height: 16px;
	display: block;
}

.lang-switch a.active,
.lang-switch a:hover{
	opacity: 1;
	outline: 1px solid rgba(255,255,255,.7);
}

/* ------------------------------------------------------------------ */
/* Navigation                                                          */
/* ------------------------------------------------------------------ */

.site-nav{
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--paper) url('../images/pattern2.jpg') repeat;
	border-bottom: 1px solid var(--line);
}

.nav-toggle{
	display: none;
	width: 100%;
	padding: 12px 16px;
	border: 0;
	background: transparent;
	color: var(--muted);
	font: 700 18px 'PT Sans Narrow', Arial, sans-serif;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	text-align: left;
	align-items: center;
	gap: 10px;
}

.nav-toggle-bars{
	display: inline-block;
	vertical-align: -2px;
	margin-right: 10px;
}

.nav-toggle-bars i{
	display: block;
	width: 20px;
	height: 2px;
	margin: 4px 0;
	background: var(--accent);
}

.nav-list{
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.nav-list a{
	display: block;
	padding: 15px 14px;
	color: var(--muted);
	font-size: 18px;
}

.nav-list a:hover{
	background: var(--accent);
	color: #fff;
	text-decoration: none;
	text-shadow: 1px 1px var(--muted);
}

.nav-list a.active{
	background: var(--accent);
	color: #fff;
	text-shadow: 1px 1px var(--muted);
}

.nav-list a.nav-reg{
	color: var(--accent);
	font-weight: 700;
}

.nav-list a.nav-reg:hover{ color: #fff; }

@media (max-width: 760px){
	.nav-toggle{ display: flex; }
	.nav-list{ display: none; flex-direction: column; }
	.nav-list.open{ display: flex; }
	.nav-list a{ border-top: 1px solid var(--line); }
}

/* ------------------------------------------------------------------ */
/* Hero slider (vanilla, scroll-snap based)                            */
/* ------------------------------------------------------------------ */

.slider{
	position: relative;
	background: #000;
}

.slides{
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.slides::-webkit-scrollbar{ display: none; }

.slide{
	flex: 0 0 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.slide img{
	display: block;
	width: 100%;
	aspect-ratio: 870 / 330;
	object-fit: cover;
}

@media (max-width: 560px){
	.slide img{ aspect-ratio: 16 / 10; }
}

.slider-arrow{
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: rgba(25,26,31,.55);
	color: #fff;
	font-size: 18px;
	line-height: 42px;
	cursor: pointer;
	transition: background .2s;
	padding: 0;
}

.slider-arrow:hover{ background: var(--accent); }
.slider-prev{ left: 10px; }
.slider-next{ right: 10px; }

.slider-dots{
	position: absolute;
	left: 0;
	right: 0;
	bottom: 8px;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.slider-dots button{
	width: 11px;
	height: 11px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255,255,255,.55);
	cursor: pointer;
}

.slider-dots button.active{ background: var(--accent); }

/* ------------------------------------------------------------------ */
/* Content                                                             */
/* ------------------------------------------------------------------ */

.content{
	padding: 10px 0 30px;
}

.section{
	padding: 22px clamp(14px, 4vw, 40px);
	border-top: 1px solid var(--line);
}

.section:first-child{ border-top: 0; }

.section h1{
	margin: 0 0 4px;
	font-size: 22px;
	font-weight: 700;
	color: var(--accent);
	text-transform: uppercase;
	letter-spacing: .5px;
}

.section h2{
	margin: 18px 0 2px;
	font-size: 19px;
	font-weight: 700;
	color: var(--accent);
	text-transform: uppercase;
	text-decoration: underline;
}

.section p{
	margin: 0;
	padding-top: 12px;
	font-size: 18px;
}

.section ul{
	margin: 8px 0 0;
	padding-left: 24px;
}

.section li{ padding: 2px 0; }

.note-red{ color: var(--accent); }

.section-flat{ border-top: 0; padding-top: 8px; }

/* full width poster images */
.poster{
	padding: 10px clamp(8px, 2vw, 20px);
}

.poster img{
	display: block;
	width: 100%;
	border-radius: 4px;
}

/* responsive video */
.video-wrap{
	padding: 12px clamp(8px, 2vw, 20px) 4px;
}

.video-wrap .video-inner{
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 4px;
	overflow: hidden;
}

.video-wrap iframe{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* venue block */
.venue{
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: center;
}

.venue-text{ flex: 1 1 260px; }
.venue-map{ flex: 0 1 220px; }
.venue-map img{ border-radius: 6px; }

/* ------------------------------------------------------------------ */
/* Tables                                                              */
/* ------------------------------------------------------------------ */

.table-scroll{
	margin-top: 14px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

table.table-time{
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	font-size: 17px;
}

table.table-time th{
	background: var(--accent);
	color: #fff;
	padding: 7px 10px;
	border: 1px solid #666;
	text-align: left;
}

table.table-time td{
	padding: 7px 10px;
	border: 1px solid #666;
	vertical-align: top;
	background: rgba(255,255,255,.5);
}

table.table-wide{ min-width: 860px; }

/* ------------------------------------------------------------------ */
/* Hotels (accommodation)                                              */
/* ------------------------------------------------------------------ */

.hotel{
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	padding: 18px 0;
	border-bottom: 1px dotted #666;
}

.hotel-text{ flex: 1 1 320px; }

.hotel-photo{
	flex: 0 1 220px;
	align-self: flex-start;
	margin-top: 12px;
}

.hotel-photo img{ border-radius: 6px; }

/* contacts */
.contact-card{
	margin-top: 16px;
	padding: 16px 18px;
	background: rgba(255,255,255,.6);
	border: 1px solid var(--line-warm);
	border-left: 4px solid var(--accent);
	border-radius: 4px;
}

.contact-card p{ padding-top: 4px; }

/* archive list */
.archive-list{
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
}

.archive-list li{
	padding: 7px 0;
	border-bottom: 1px dotted #999;
}

.archive-list a{ font-size: 19px; }

/* ------------------------------------------------------------------ */
/* Gallery + lightbox                                                  */
/* ------------------------------------------------------------------ */

.gallery-grid{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
	margin-top: 16px;
}

.gallery-grid a{
	display: block;
	background: #eee;
	border: 1px solid #bbb;
	border-radius: 4px;
	overflow: hidden;
}

.gallery-grid img{
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: transform .2s;
}

.gallery-grid a:hover img{ transform: scale(1.04); }

.lightbox{
	position: fixed;
	inset: 0;
	z-index: 200;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(10,10,12,.92);
	padding: 20px;
}

.lightbox.open{ display: flex; }

.lightbox img{
	max-width: 95vw;
	max-height: 88vh;
	width: auto;
	height: auto;
	box-shadow: 0 0 40px rgba(0,0,0,.8);
}

.lightbox button{
	position: absolute;
	border: 0;
	background: rgba(255,255,255,.12);
	color: #fff;
	font-size: 22px;
	cursor: pointer;
	border-radius: 50%;
	width: 44px;
	height: 44px;
}

.lightbox button:hover{ background: var(--accent); }
.lightbox .lb-close{ top: 14px; right: 14px; }
.lightbox .lb-prev{ left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next{ right: 10px; top: 50%; transform: translateY(-50%); }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.site-footer{
	background: var(--dark) url('../images/pattern1.jpg') repeat-x;
	padding: 22px 16px 26px;
	text-align: center;
}

.partner-logos{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 12px;
}

.partner-logos a{
	background: #fff;
	border-radius: 4px;
	padding: 4px 8px;
	display: inline-flex;
	align-items: center;
}

.partner-logos img{ width: auto; max-height: 60px; }

.mlps-logo{
	margin-top: 14px;
}

.mlps-logo img{
	max-width: 620px;
	width: 100%;
	background: #fff;
	border-radius: 4px;
	padding: 6px;
}

.footer-contact{
	margin-top: 18px;
	color: var(--accent);
	font-size: 19px;
	font-weight: 700;
}

.footer-contact a{ color: #fff; }

.footer-copy{
	margin-top: 10px;
	color: #9aa;
	font-size: 15px;
}

.footer-copy a{ color: #9aa; text-decoration: underline; }
