/*
Theme Name: Hemingway Child
Theme URI: https://andersnoren.se/teman/hemingway-wordpress-theme/
Template: hemingway
Author: Anders Norén
Author URI: https://andersnoren.se
Description: Hemingway is a clean and beautiful two-column theme for bloggers. It features a responsive design, retina-ready assets, Block Editor support, full-width header image with parallax scrolling effect, custom accent color settings, custom logo upload, and editor styles. Demo: https://andersnoren.se/themes/hemingway/
Tags: blog,two-columns,right-sidebar,custom-colors,custom-header,custom-menu,editor-style,featured-images,footer-widgets,full-width-template,post-formats,sticky-post,theme-options,threaded-comments,translation-ready,block-styles,wide-blocks
Version: 2.3.2.1780221783
Updated: 2026-05-31 10:03:03

*/

/* --------------------------------------------------------------
   Custom menu styling
   Places the menu on a white background with smaller mixed-case text.
   Added by ChatGPT, 31 May 2026.
-------------------------------------------------------------- */

/* Main navigation bar background */

@import url('https://fonts.googleapis.com/css2?family=Federo&display=swap');

.navigation,
.navigation.section,
.navigation.bg-dark {
	background: #fff;
}

/* Keep the inner navigation area white as well */
.navigation-inner {
	background: #fff;
}

/* Desktop menu links */
.blog-menu li a,
.blog-menu > li > a {
	color: #111;
	font-size: 14px;
	text-transform: none;
	letter-spacing: normal;
}

/* Desktop menu hover and keyboard-focus states */
.blog-menu li:hover > a,
.blog-menu li a:hover,
.blog-menu li a:focus {
	color: #000;
	background: #f2f2f2;
}

/* Current page/menu item */
.blog-menu .current-menu-item > a,
.blog-menu .current_page_item > a,
.blog-menu .current-menu-ancestor > a,
.blog-menu .current_page_ancestor > a {
	color: #000;
	background: #f2f2f2;
}

/* Drop-down menus */
.blog-menu ul {
	background: #fff;
}

/* Drop-down menu links */
.blog-menu ul li a {
	color: #111;
	font-size: 14px;
	text-transform: none;
	letter-spacing: normal;
	background: #fff;
}

/* Drop-down hover and focus states */
.blog-menu ul li:hover > a,
.blog-menu ul li a:hover,
.blog-menu ul li a:focus {
	color: #000;
	background: #f2f2f2;
}

/* Mobile menu background */
.mobile-menu,
.mobile-menu li,
.mobile-menu li a {
	background: #fff;
	color: #111;
	font-size: 14px;
	text-transform: none;
	letter-spacing: normal;
}

/* Mobile menu hover and focus states */
.mobile-menu li a:hover,
.mobile-menu li a:focus {
	color: #000;
	background: #f2f2f2;
}

/* Mobile toggle/search button area */
.toggle-container,
.nav-toggle,
.search-toggle {
	background: #fff;
}

/* Hamburger icon bars */
.nav-toggle .bar {
	background: #111;
}

/* Search icon parts */
.search-toggle .metal,
.search-toggle .glass,
.search-toggle .handle {
	border-color: #111;
	background: transparent;
}

/* Search box area */
.blog-search {
	background: #fff;
}

/* Menu background */
.navigation {
    background: #ffffff !important;
}

/* Centre the menu */
.blog-menu {
    text-align: center;
}

/* Menu items */
.blog-menu li {
    float: none;
    display: inline-block;
}

/* Remove the slash separators */
.blog-menu li:after {
    display: none !important;
    content: none !important;
}

/* Menu links */
.blog-menu a {
    color: #000000 !important;
    font-family: Calibri, "Trebuchet MS", Arial, sans-serif;
    font-size: 14px;
    text-transform: none !important;
    letter-spacing: 0;
}

/* Hover colour */
.blog-menu a:hover {
    color: #666666 !important;
}

/* Centre the main desktop menu */
.blog-menu {
	display: flex !important;
	justify-content: center !important;
	margin-left: 0 !important;
}

/* Remove the / separators between menu items */
.blog-menu > li + li:before {
	content: none !important;
	display: none !important;
}

/* Menu font */
.blog-menu a {
	font-family: Calibri, "Trebuchet MS", Arial, sans-serif !important;
	font-size: 14px !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}

.navigation {
    border-bottom: 1px solid #d0d0d0;
}
.blog-menu li {
    margin: 0 12px;
}

/* Dropdown menu background */
.blog-menu ul,
.blog-menu ul li,
.blog-menu ul li a {
    background: #f2f2f2 !important;
    color: #000000 !important;
}

/* Dropdown menu hover */
.blog-menu ul li:hover,
.blog-menu ul li:hover > a,
.blog-menu ul li a:hover {
    background: #f2f2f2 !important;
    color: #000000 !important;
}

/* Sub-menu container */
.blog-menu .sub-menu {
    background: #f2f2f2 !important;
}

/* Make dropdown menus narrower */
.blog-menu ul,
.blog-menu .sub-menu {
    width: 160px !important;
    min-width: 160px !important;
}

/* Allow text to wrap if needed */
.blog-menu ul li a {
    white-space: normal;
}

/* Make dropdown containers narrower */
.blog-menu > li {
	position: relative;
}

.blog-menu > li > ul,
.blog-menu > li > .sub-menu,
.blog-menu > li > .children {
	width: 150px !important;
	min-width: 150px !important;
	max-width: 150px !important;
	left: 50% !important;
	transform: translateX(-50%) !important;
}

/* Make dropdown items fit inside the narrower box */
.blog-menu ul li,
.blog-menu .sub-menu li,
.blog-menu .children li {
	display: block !important;
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
}

/* Make dropdown links fit the narrower container */
.blog-menu ul li a,
.blog-menu .sub-menu li a,
.blog-menu .children li a {
	display: block !important;
	width: 100% !important;
	box-sizing: border-box !important;
	padding: 10px 12px !important;
	white-space: normal !important;
	background: #f2f2f2 !important;
	color: #000000 !important;
}

/* Restrict masthead width to match content area */
.header-cover {
    max-width: 1200px;
    margin: 0 auto;
}

/* Reduce menu bar height */
.blog-menu a,
.blog-menu li a {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    line-height: 1.2 !important;
}

/* Reduce overall navigation bar height */
.navigation,
.navigation-inner {
    min-height: 0 !important;
}

/* Show more of the header image */
.header {
    min-height: 317px !important;
}

/* Ensure the full image can be seen */
.header-cover {
    overflow: visible !important;
}

/* --------------------------------------------------------------
   Mobile menu fix
   Restores Hemingway's hamburger menu on smaller screens.
   Added after custom desktop menu styling.
-------------------------------------------------------------- */

@media (max-width: 800px) {

	/* Hide the full desktop menu on mobile */
	.blog-menu {
		display: none !important;
	}

	/* Show the mobile toggle bar, including the hamburger icon */
	.toggle-container {
		display: block !important;
		visibility: visible !important;
	}

	/* Keep the mobile dropdown menu available for the toggle script */
	.mobile-menu {
		display: none;
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	/* When Hemingway opens the mobile menu, display it vertically */
	.mobile-menu.active,
	.mobile-menu.visible,
	.mobile-menu[style*="display: block"] {
		display: block !important;
	}

	.mobile-menu li {
		display: block !important;
		width: 100% !important;
		margin: 0 !important;
		float: none !important;
	}

	.mobile-menu li a {
		display: block !important;
		width: 100% !important;
		box-sizing: border-box !important;
		padding: 10px 16px !important;
	}
}

/* Force masthead title to sit at the bottom of the actual header image */
.header {
    position: relative !important;
}

.header-inner {
    position: static !important;
}

.masthead-title {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 15px !important;
    width: 100% !important;

    color: #ffffff !important;
    font-family: 'Federo', sans-serif !important;
    font-size: 38px !important;
    font-weight: normal !important;
    text-align: center !important;

    text-shadow:
        1px 1px 2px #000,
       -1px -1px 2px #000,
        1px -1px 2px #000,
       -1px 1px 2px #000;

    z-index: 999 !important;
    pointer-events: none;
}

@media (max-width: 900px) {
    .masthead-title {
        font-size: 28px !important;
    }
}

@media (max-width: 600px) {
    .masthead-title {
        font-size: 20px !important;
        bottom: 8px !important;
    }
}