/*
Theme Name: CPT Markets Mobile
Description: CPT Markets UK mobile child theme for GeneratePress.
Author: CPT Markets UK
Template: generatepress
Version: 1.5.3
Text Domain: cpt-mobile
*/

/* =========================================================
   CPT MOBILE PAGE LAYOUT
   Remove GeneratePress page furniture.
   Our header, page content and footer own the mobile layout.
   ========================================================= */

body {
	background: #fff;
}

/* Remove GeneratePress container constraints */
.site.grid-container,
.site-content,
.content-area,
.site-main,
.inside-article,
.entry-content {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

/* Remove GeneratePress article/container styling */
.separate-containers .inside-article,
.separate-containers .site-main {
	margin: 0;
	padding: 0;
	background: transparent;
}

/* We do not need GeneratePress page titles on the mobile site */
.entry-header {
	display: none;
}

/* Remove the gap GeneratePress inserts around page content */
.separate-containers .site-main > article {
	margin: 0;
	padding: 0;
}

/* Gutenberg should not introduce its own outer page spacing */
.entry-content {
	margin-top: 0;
}


/* =========================================================
   REMOVE GAP BETWEEN CPT MOBILE HEADER AND PAGE CONTENT
   ========================================================= */

.site-content,
.content-area,
.site-main,
.inside-article,
.entry-content,
.separate-containers .inside-article,
.separate-containers .site-main,
.separate-containers .site-main > article {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.entry-content > *:first-child {
    margin-top: 0 !important;
}

#primary,
#main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Final removal of space below custom CPT header */
.cpt-mobile-header,
.cpt-header,
header + .site,
header + #page,
#page,
.site {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.site-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove GeneratePress gap between CPT header and page content */
#main > article,
#main > article > .inside-article,
#main > article > .inside-article > .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#main > article > .inside-article > .entry-header {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.cpt-mobile-header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.cpt-menu-toggle,
.cpt-menu-toggle:hover,
.cpt-menu-toggle:focus,
.cpt-menu-toggle:active {
	background: transparent !important;
	box-shadow: none !important;
	-webkit-tap-highlight-color: transparent;
}

.cpt-menu-toggle:focus {
	outline: none;
}

.cpt-menu-toggle:focus-visible {
	outline: 2px solid #0b2947;
	outline-offset: 2px;
}