/* Missie Online base theme. Branding arrives as custom properties (inc/branding.php). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--mo-bg, #fff);
	color: var(--mo-text-color);
	font-family: var(--mo-body-font);
	font-size: var(--mo-font-size, 16px);
	line-height: var(--mo-line-height, 1.6);
}
h1, h2, h3, h4, h5, h6 { color: var(--mo-heading-color); font-family: var(--mo-heading-font); line-height: 1.25; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
a { color: var(--mo-link-color); }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; clip-path: none; z-index: 100000; padding: 10px 16px; background: #fff; color: #000; }

.mo-wrap, .mo-header__inner, .mo-titlebar__inner, .mo-footer__grid, .mo-bottom__inner {
	max-width: var(--mo-container);
	margin: 0 auto;
	padding-left: var(--mo-side);
	padding-right: var(--mo-side);
}
@media (max-width: 767px) {
	.mo-wrap, .mo-header__inner, .mo-titlebar__inner, .mo-footer__grid, .mo-bottom__inner { padding-left: var(--mo-side-m); padding-right: var(--mo-side-m); }
}
.mo-page, .mo-single { padding-top: var(--mo-pad-top, 0); padding-bottom: var(--mo-pad-bottom, 0); }
.mo-wrap { padding-top: 60px; padding-bottom: 60px; }

/* Header */
.mo-header { position: relative; z-index: 50; background: var(--mo-bg, #fff); }
.mo-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 90px; }
.mo-logo { display: inline-flex; align-items: center; text-decoration: none; }
.mo-logo__img { display: block; width: auto; max-height: 70px; }
.mo-logo__text { font-family: var(--mo-heading-font); font-size: 22px; font-weight: 700; color: var(--mo-heading-color); }
.mo-menu { display: flex; flex-wrap: wrap; gap: 0 28px; list-style: none; margin: 0; padding: 0; }
.mo-menu > li { position: relative; }
.mo-menu a { display: block; padding: 10px 0; color: var(--mo-heading-color); text-decoration: none; }
.mo-menu a:hover, .mo-menu .current-menu-item > a, .mo-menu .current-menu-ancestor > a { color: var(--mo-accent); }
.mo-menu .sub-menu { position: absolute; top: 100%; left: -16px; min-width: 220px; list-style: none; margin: 0; padding: 8px 0; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.08); opacity: 0; visibility: hidden; transition: opacity .15s; }
.mo-menu li:hover > .sub-menu, .mo-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; }
.mo-menu .sub-menu a { padding: 8px 16px; }
.mo-burger { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: none; cursor: pointer; }
.mo-burger span { display: block; height: 2px; margin: 5px 0; background: var(--mo-heading-color); }
@media (max-width: 991px) {
	.mo-nav { display: none; }
	.mo-burger { display: block; }
}

/* Drawer */
.mo-drawer { position: fixed; inset: 0; z-index: 1000; visibility: hidden; }
.mo-drawer__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .2s; }
.mo-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 85vw); padding: 60px 24px 24px; background: #fff; overflow-y: auto; transform: translateX(100%); transition: transform .25s; }
.mo-menu-open .mo-drawer { visibility: visible; }
.mo-menu-open .mo-drawer__overlay { opacity: 1; }
.mo-menu-open .mo-drawer__panel { transform: none; }
.mo-drawer__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--mo-heading-color); }
.mo-mobile-menu, .mo-mobile-menu .sub-menu { list-style: none; margin: 0; padding: 0; }
.mo-mobile-menu .sub-menu { padding-left: 16px; }
.mo-mobile-menu a { display: block; padding: 10px 0; color: var(--mo-heading-color); text-decoration: none; border-bottom: 1px solid rgba(0,0,0,.06); }
@media (prefers-reduced-motion: reduce) { .mo-drawer__overlay, .mo-drawer__panel { transition: none; } }

/* Title bar */
.mo-titlebar { background: var(--mo-light); padding: 40px 0; }
.mo-titlebar h1 { margin: 0; }
.mo-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 8px 0 0; padding: 0; font-size: .875em; }
.mo-breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }

/* Footer */
.mo-footer__widgets { padding: 60px 0 30px; background: var(--mo-light); }
.mo-footer__grid { display: grid; grid-template-columns: repeat(var(--mo-footer-cols, 3), minmax(0, 1fr)); gap: 30px; }
@media (max-width: 767px) { .mo-footer__grid { grid-template-columns: 1fr; } }
.mo-footer .widget-title { font-family: var(--mo-heading-font); color: var(--mo-heading-color); font-weight: 700; margin-bottom: 12px; }
.mo-bottom { padding: 16px 0; font-size: .875em; }
.mo-bottom__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; }
.mo-footer-menu { display: flex; flex-wrap: wrap; gap: 0 20px; list-style: none; margin: 0; padding: 0; }

/* Search */
.mo-search { display: flex; max-width: 420px; }
.mo-search input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #ccc; font: inherit; }
.mo-search button { padding: 0 14px; border: 0; background: var(--mo-accent); color: #fff; cursor: pointer; }
.mo-results { list-style: none; padding: 0; }
.mo-results li { margin-bottom: 24px; }
