/*
Theme Name: Merkurij Archive
Description: WordPress reconstruction of the Merkurij travel club website.
Version: 1.1.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: merkurij-archive
*/

* { box-sizing: border-box; }
body { margin: 0; background: #36648b; color: #243d51; font: 16px/1.55 Arial, sans-serif; }
a { color: #036c9e; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #036c9e; outline-offset: 2px; }
img { max-width: 100%; height: auto; vertical-align: middle; }
table { display: block; max-width: 100%; overflow-x: auto; }
td, th { padding: .2rem .35rem; vertical-align: top; }
h1, h2, h4, .s5_h3_first { color: #036c9e; }
h1, h2, h3, h4 { line-height: 1.25; overflow-wrap: anywhere; }
.site-width { width: min(1224px, calc(100% - 32px)); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid #ececec; }
.header-inner { display: flex; align-items: center; min-height: 80px; padding: 12px 0; background-size: cover; background-position: center; }
.site-brand { display: inline-block; margin-left: clamp(0px, 4vw, 50px); font-size: 1.3rem; font-weight: bold; }
.site-brand img { max-height: 115px; width: auto; }
.mobile-brand-title { display: none; }
.primary-nav { position: relative; z-index: 2; background: #fff; border: 1px solid #ddd; border-radius: 0 0 8px 8px; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > ul { display: flex; flex-wrap: wrap; }
.primary-nav li { position: relative; }
.primary-nav a { display: block; padding: .78rem .9rem; text-decoration: none; font-weight: bold; }
.primary-nav a:hover, .primary-nav a:focus { background: #e7f3f8; }
.primary-nav li ul { display: none; position: absolute; min-width: 230px; background: #fff; border: 1px solid #ddd; }
.primary-nav li:not(.has-submenu):hover > ul, .primary-nav li:not(.has-submenu):focus-within > ul, .primary-nav li.menu-open > ul { display: block; }
.primary-nav li.has-submenu > a { padding-right: 2.65rem; }
.submenu-toggle { position: absolute; top: 0; right: .1rem; height: 2.65rem; width: 2.5rem; border: 0; background: transparent; color: #036c9e; cursor: pointer; }
.archive-breadcrumb { margin: .65rem 0; padding-left: 14px; color: #fff; font-size: .9rem; }
.archive-breadcrumb a { color: inherit; }
.archive-panel { padding: clamp(12px, 2vw, 24px); margin: 0 0 1rem; background: #fff; border: 1px solid #dfdfdf; border-radius: 8px; box-shadow: 0 2px 3px #253e55; overflow-wrap: anywhere; }
.archive-panel::after { content: ""; display: block; clear: both; }
.archive-panel > :first-child { margin-top: 0; }
.archive-row > div > .s5_float_left, .archive-row > .s5_float_left { padding: 0 .65rem; float: left; }
.archive-row::after { content: ""; display: block; clear: both; }
.s5_mod_h3 { padding-bottom: .5rem; border-bottom: 1px solid #ddd; }
.s5_mod_h3_inner, .module_round_box_outer { display: block; }
.s5_va_toggler { color: #036c9e; }
#s5_va_accordion { max-width: 100%; }
#s5_va_accordion details { padding: .35rem .65rem; border-bottom: 1px solid #dfdfdf; }
#s5_va_accordion summary { color: #036c9e; font-weight: bold; cursor: pointer; }
.archive-missing { display: inline-block; font-size: .9rem; }
.archive-gallery { max-width: 950px; margin-inline: auto; text-align: center; }
.archive-gallery .slides { list-style: none; padding: 0; margin: 0; }
.archive-gallery li { margin: .6rem 0; }
.gallery-controls button { min-width: 44px; margin: .25rem; padding: .35rem .65rem; background: #fff; border: 1px solid #036c9e; color: #036c9e; cursor: pointer; }
.site-footer { background: #ffd700; color: #243d51; margin-top: 1.5rem; padding: .75rem 0; }
.site-footer a { color: #243d51; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: white; padding: .5rem; z-index: 9; }
.skip-link:focus { top: .5rem; }
@media (max-width: 740px) {
    .site-width { width: calc(100% - 20px); }
    .header-inner { background-image: none !important; }
    .mobile-brand-title { display: inline; margin-left: .65rem; }
    .primary-nav a { padding: .55rem .65rem; }
    .primary-nav li.has-submenu > ul { display: none; }
    .primary-nav li.menu-open > ul { display: block; }
    .archive-row div.s5_float_left { width: 100% !important; float: none; padding-inline: 0; }
}
