/*!
Theme Name: factaryntu
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: factaryntu
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

factaryntu is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Flexbox layout
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments
# Customisations
# Dadabik

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

.wpforms-submit:not(:hover):not(:active) {
	background-color: #ffd700 !important;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Flexbox layout
--------------------------------------------- */

html, body {
	height: 100%;
}

#page {
	height: 100%;
	display: flex;
	flex-direction: column;
}

header {
	flex: 0;
	z-index: 9;
}

main {
	flex: 1 0 auto;
	padding: 0 12px;
	margin: 0 auto;
	max-width: 700px;
	width: 100%;
}

body.home main,
body.error404 main,
body.page-template-pdf-server main {
	max-width: 1200px;
}

body.page-contact-factary main {
	width: 100%;
}

footer {
	flex-shrink: 0;
}

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: #404040;
	font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 1rem;
	line-height: 1.6;
}
h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
	color: #05305e;
}
h1 {
	font-size: 2.4rem;
	line-height: calc(2.4rem * 1.15);
	letter-spacing: -0.015em;
}
@media screen and (min-width: 37.5em) {
	h1 span {
		color: #ffffff;
		background-color: #05305e;
		border-radius: 4px;
		padding: 0 10px 3px;
		margin: 0 -6px 6px;
		box-shadow: 0px 5px 9px 12px rgba(0,0,0,0.02);
		display: inline-block;
		position: relative;
		text-shadow: 3px 4px 0 #05305e, -3px 4px 0 #05305e;
	}
	h1 span.uppercase {
		text-transform: uppercase;		
	}
	h1 span.big {
		font-size: 2.879rem;	
		line-height: calc(2.879rem * 1.15);	
	}
	h1 span.underline {
		padding-bottom: 9px;
	}
	h1 span.underline::after {
		content: '';
		position: absolute;
		display: inline-block;
		height: 7px;
		width: calc(100% - (2 * 6px) );
		background-color: rgb(255, 215, 0);
		left: 6px;
		bottom: 6px;
	}
}

h2 {
	font-size: 2.488rem;
	line-height: calc(2.488rem * 1.15);
}
	.sectionWrapper h2 {
		text-align: center;
	}
h3 {
	font-size: 2.074rem;
	line-height: calc(2.074rem * 1.15);
}
h4 {
	font-size: 1.728rem;
	line-height: calc(1.728rem * 1.15);
}
h5 {
	font-size: 1.44rem;
	line-height: calc(1.44rem * 1.15);
}
h6 {
	font-size: 1.2rem;
	line-height: calc(1.2rem * 1.15);
}

p,
ul:not(#primary-menu):not(#search-menu):not(.sub-menu) li,
ol li,
td,
dd,
dt,
figure,
figcaption {
	font-size: 1.15rem;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	break-inside: avoid;
}

p {
	line-height: calc(1.15rem * 1.25);
	margin-bottom: 1.5em;
}
	h2 + p,
	h3 + p,
	h4 + p,
	h5 + p,
	h6 + p {
		margin-top: 0;
	}
	main article .sectionWrapper > section p:first-of-type {
		font-size: 1.4rem;
		font-style: italic;
		line-height: calc(1.4rem * 1.25);
	}
	main article p:first-of-type {
		font-size: 1.2rem;
		font-style: italic;
		line-height: calc(1.2rem * 1.25);
	}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
	font-size: 1.15rem;
	margin: 0 1.5em;
	line-height: calc(1.15rem * 1.25);
	border-left: 9px dotted #ffd700;
	padding: 0px 0 0 12px;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	break-inside: avoid;
}

	blockquote::before {
		content: '“';
		float: left;
		font-size: 3.9rem;
		margin-left: 0rem;
		color: #4b6687;
		margin-right: -0.05rem;
		font-family: sans-serif;
	}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #e1e7ed;
	background: #eeeeee;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 1em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

iframe {
	min-height: 320px;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a {
	color: #05305e;
	position: relative;
	cursor: pointer;
	text-decoration: none;
}

a:not(.no-dec) {
	border-bottom: 2px solid #ffd700;
}

a:visited {
	color: #134982;
}

a:hover,
a:focus,
a:active {
	color: #0a1a2c;
}

a:not(.no-dec):hover,
a:not(.no-dec):focus,
a:not(.no-dec):active {
	color: #0a1a2c;
	border-bottom: 4px solid #ffd700;
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

button {
	/*background-color: #ffd700 !important;*/
	color: #1e4773 !important;
}
	button:hover {
		background-color: #1e4773 !important;
		color: #fff !important;
	}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	width: 100%;
	text-align: center;
}
@media screen and (min-width: 37.5em) {
	.main-navigation {
		height: 100%;
		text-align: left;
	}
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	display: block;
	left: auto;
}

.main-navigation ul ul a {
	width: 200px;
}

body:not(.role-administrator) .menu-item.admin {
	display: none !important;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

@media screen and (min-width: 37.5em) {

	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: flex;
	}
}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.post,
.page {
	margin: 0 0 1.5em;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-content,
.entry-content {
	height: 100%;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

.edit-link {
	display: none !important;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/*--------------------------------------------------------------
# Customisations
--------------------------------------------------------------*/

/* Header, menu, site branding
--------------------------------------------- */
#masthead-flex-wrapper {
	width: 100%;
	background-color: #05305e;
	color: #ffffff;
	z-index: 9999;
}
	body:not(.home) #masthead-flex-wrapper {
		position: fixed;
		top: 0;
		width: 100%;
		height: calc( 2 * ( 24px + 1.7em ) );
		display: flex;
		transition: transform 1s ease, opacity 1s ease;
		opacity: 1;
	}
	body:not(.home).scroll #masthead-flex-wrapper {
		transform: translateY(-50%);
	}
	body:not(.home).deepScroll #masthead-flex-wrapper {
		transform: translateY(-105%);
		opacity: 0;
	}

body:not(.home) .site-branding {
	height: calc(50% - .2rem);
	position: absolute;
}
	@media screen and (max-width: 37.5em) {		
		body:not(.home) .site-branding {
			height: calc(50% + .3rem);
		}
	}

body.home .site-branding {
	display: flex;
	align-items: center;
}

body:not(.home) .site-title {
	width: 100px;
	margin: 0;
	height: 100%;
}

	.site-title a {
		display: inline-block;
		background-image: url('/assets/ntulogo_small.png');
		background-repeat: no-repeat;
		background-size: auto 66.67%;
		background-position: .5rem center;
		height: 100%;
		width: 100%;
		position: relative;
		border-bottom: none;
	}

	body:not(.home) .site-title a {
		/*background-color: #e7e7e7;*/
	}
	
	.site-title span {
		margin-left: -9999px;
	}
	
	body.home .site-title {
		aspect-ratio: 2.35 / 1;
		height: 90px;
		margin: 0;
	}
	@media screen and (max-width: 430px) {
		body.home .site-title {
			margin: 0 auto;
			position: relative;
			left: 12px;
		}	
	}
	
	body.home .site-title a {
		background-image: url('/assets/ntulogo_notext_white.png');
	}
	
.site-description {
	margin: 0;
}
@media screen and (max-width: 430px) {
	.site-description {
		display: none;
	}	
}

/*.site-description::before {
	content: '';
	display: inline-block;
	border-left: 1px dotted #fff;
	width: 1px;
	height: 3rem;
	margin: 0 10px -1rem 0;
}*/

body:not(.home) .site-description {
	display: none;
}

.menu-toggle {
	width: 100%;
	border-radius: 0;
	border: medium none;
	cursor: pointer;
	padding: 12px 0;
	height: 64px;
	background-color: rgb(231, 231, 231);
}
	body.home .menu-toggle {
		background-color: #fff;
	}

#primary-menu {
	background-color: #fefefe;
	justify-content: flex-end;
}

#primary-menu a {
	padding: 12px;
	color: #4B4B4B;
	margin: 0;
	background-color: #fefefe;
	border-bottom: none;
}

.user-link {
	position: relative;
	width: 3.6rem;
}

.user-link > a {
	background-image: url('/assets/user.svg');
	background-size: 78% auto;
	background-repeat: no-repeat;
	background-position: center center;
	aspect-ratio: 1/1;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 0 0 3px gray;
	height: calc(50% + 3px);
	top: calc( ( ( ( 100% - 50% ) / 2 ) ) - 2.5px );
	left: calc( ( ( ( 100% - 50% ) / 2 ) ) - 5px );
	/* display: none; */
	position: absolute;
}

.user-link > a span {
	left: -9999px;
	position: relative;
}

@media screen and (max-width: 37.5em) {	
	li.user-link {
		height: 3rem;
		width: 100%;
	}
	
	.user-link > a {
		left: calc(50%);
		transform: translateX(-50%);
	}
}

ul li.user-link ul {
	box-shadow: none;
	right: 0;
	max-width: fit-content;
}

@media screen and (min-width: 37.5em) {
	#primary-menu a {
		margin: 0 3px;
	}
}

	#primary-menu a:hover {
		color: #fefefe;
		background-color: #496585;
	}

	#primary-menu .user-link > a:hover {
		background-color: #ffffff;
		box-shadow: 0 0 0 4px gray;
	}

#search-menu {
	background-color: #05305e;
}

body.home #search-menu {
	display: none;
}

@media screen and (min-width: 37.5em) {
	#search-menu::before {
		content: 'Search:';
		padding: calc(12px + (.2rem / 2 ) );
		color: #e3e3e3;
		font-size: 1rem;
	}
}

#search-menu a {
	color: #fff;
	padding: 12px;
	margin: 0 3px;
	font-size: 1.15em;
	border-bottom: none;
}
@media screen and (min-width: 37.5em) {
	#search-menu a {
		font-size: 1.15em;
	}	
}
	#search-menu a:hover,
	#search-menu a:active,
	#search-menu a:focus,
	#search-menu a:focus-within {
		color: #fefefe;
		background-color: #0a1a2c;
		border-bottom: 3px solid #ffd700;
		padding-bottom: 10px;
	}

.entry-header {
	padding: 0 12px;
	text-align: center;
}

body.home .entry-header {
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

body:not(.home) .entry-header {
	margin: calc( ( 3 * ( 24px + 1.5em ) ) ) auto 0;
	max-width: 700px;
}

body.page-trusts-search .entry-header,
body.page-grants-search .entry-header {
	display: none;
}

/* Footer
--------------------------------------------- */
footer#colophon {
	line-height: 1rem;
	background-color: #efefef;
	padding: 0 1rem;
	/* margin-top: -.5rem; */
	border-top: 1px solid #dbdbdb;
	color: #616161;
}

footer#colophon  p {
	font-size: 0.8rem;
}

footer#colophon  p:first-of-type {
	font-size: 0.8rem;
	margin-bottom: 0rem;
}

footer#colophon  p:last-of-type {
	font-size: 0.8rem;
	margin-top: 0rem;
}

/* Main content elements
--------------------------------------------- */
.sectionWrapper {
	position: relative;
	left: 5rem;
}

/* Search - bug button menu
--------------------------------------------- */
#trustsOrGrants {
	display: flex;
	padding: 0;
	margin: 0;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

	#searchTrusts, #searchGrants {
		list-style: none;
		flex-grow: 1;
		aspect-ratio: 16 / 9;
	}

	#trustsOrGrants a {
		display: inline-block;
		position: relative;
		width: 100%;
		background: rgb(30,71,115);
		/* background: linear-gradient(355deg, rgba(30,71,115,1) 0%, rgba(73,101,133,1) 100%); */
		color: #fff;
		text-decoration: none;
		height: 100%;
		border-radius: 10px;
		font-size: 2.5rem;
		text-transform: uppercase;
		font-weight: 800;
		overflow: hidden;
		transition: background 1s ease, color 1s ease;
	}
	@media screen and (min-width: 37.5em) {
		#trustsOrGrants a {
			min-width: 400px;
		}
	}
		
	#trustsOrGrants a:hover {
		background: rgb(255, 215, 0);
		color: #05305e;
	}
	
	#trustsOrGrants a span {
		height: 0;
		display: block;
		text-align: center;
		overflow: visible;
		position: relative;
		top: calc(100% / 3);
	}
	
	#trustsOrGrants a span::before {
		content: 'Search ';
		font-weight: 200;
		display: inline-block;
		position: relative;
		margin-right: 12px;
		font-size: 2.5rem;
	}
	
	#trustsOrGrants a:hover span::before {
		/* margin-right: calc(100% / 3); */
		/* top: -4rem; */
		/*font-size: 2.5rem;
		transform: rotate(0deg) translate(100%, -3.6rem);
		transform-origin: bottom right;*/
	}
	
	#trustsOrGrants a span::after {
		content: '';
		display: inline-block;
		width: 0;
		height: 0;
		border-top: 1.25rem solid #1e4773;
		border-bottom: 1.25rem solid #1e4773;
		border-left: 1.25rem solid #ffd700;
		margin-left: 6px;
		vertical-align: baseline;
		position: relative;
		top: 5px;
		background-color: #ffd700;
		transition: border-top 1s ease, border-bottom 1s ease, border-left 1s ease, margin-left 1s ease-in; 
	}
	
	#trustsOrGrants a:hover span::after {
		content: '';
		border-top: 1.25rem solid #ffd700;
		border-bottom: 1.25rem solid #ffd700;
		border-left: 1.25rem solid #1e4773;
		background-color: #1e4773;
		margin-left: 12px;
	}
	

/* Search pages
--------------------------------------------- */	
#searchButton,
body.nearFoot #searchButton {
	background-color: #3c6356;
	transition: background-color 1s ease, opacity 1s ease .0s, transform 1s ease .0s, left 1s ease .0s, right 1s ease .0s;
	font-size: .9rem;
	padding: 7px 12px 6px;
	color: #fff;
	height: 2.4rem;
	border-radius: calc(2.4rem / 2);
	margin: 0;
	position: fixed;
	bottom: 1.5rem;
	left: 1rem;
	right: 1rem;
	text-align: center;
	font-weight: 600;
	font-style: normal;
	font-family: sans-serif;
	transform: translateY(calc(100% + 1.5rem));
	opacity: 0;
}

#searchButton:hover {
	background-color: #325348;
}

body.scroll #searchButton {
	transform: translateY(0%);
	left: 2rem;
	right: 2rem;
	opacity: 1;
}

body:not(.notNearFoot) #searchButton {
	transform: translateY(calc(100% + 1.5rem));
	left: 1rem;
	right: 1rem;
	opacity: 0;
}

body.page-trusts-search main,
body.page-grants-search main,
body.page-user-management main,
body.page-dadabik-settings main {
	width: 100%;
	max-width: 100%;
	padding: 0;
}

body.page-trusts-search main,
body.page-grants-search main {
	margin-top: calc( 2 * ( 24px + 1.7em ) );
}
	
body.page-trusts-search .page,
body.page-grants-search .page, 
body.page-trusts-search .entry-content,
body.page-grants-search .entry-content,
body.page-trusts-search .entry-content p,
body.page-grants-search .entry-content p {
	margin: 0;
}	

/* Full-width pages
--------------------------------------------- */
body.page-template-page_fullwidth main, 
body.page-template-page_fullwidth .sectionWrapper {
	max-width: 100%;
	padding: 3rem 0;
	width: 100%;
}

.sectionWrapper:nth-of-type(2n) {
	/* background-color: #edf0f4; */
	background-color: #fefefe;
}

body.page-template-page_fullwidth .sectionWrapperInner {
	max-width: 700px;
	margin: 0 auto;
	padding: 0 12px;
}

.twoColMax {
	columns: 320px 2;
	column-gap: 4rem;
	column-rule: 1px solid #bfcad7;
	max-width: 1200px;
	margin: 0 auto;
}

@media screen and (min-width: 800px) {
	.twoColMax {
		padding: 0 1.5rem;
	}	
}
.twoColMax section {
	display: inline-block;
}

/* FAQ
--------------------------------------------- */
.answer {
	max-height:0;
	overflow: hidden;
	transition: max-height 1s ease;
}

.answer.active {
	max-height: 9999px;
}

/* Contact
--------------------------------------------- */

body.page-contact-factary input {
	min-width: 480px;
}
 
@media screen and (max-width: 320px) {
	body.page-contact-factary input {
		min-width: 300px;
	}
}
 
body.page-contact-factary button {
	width: 100%;
}


/* Addtional typography and layout
--------------------------------------------- */
	
main section {
	max-width: 700px;
	margin: 0 auto;
}

body:not(.page-trusts-search):not(.page-grants-search) main section {
	padding-left: 1rem;
	padding-right: 1rem;
}
	
#primary a:not(.no-dec)::after {
	position: absolute;
	content: '';
	background-color: #ffd700;
	height: 3px;
	bottom: -3px;
	left: 0;
	width: 100%;
	z-index: -1;
	transition: all 1s ease;
}

	#primary a:not(.no-dec):hover::after {
		content: '';
		position: absolute;
		height: 20px;
		width: 100%;
		display: inline-block;
		background-color: #ffd700;
		bottom: -5px;
		left: 0;
		z-index: -1;
		border-radius: 5px;
	}
	
	
/* Animations
--------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
	.sectionWrapper {
		opacity: 0;
		animation: fade-in linear forwards;
		animation-timeline: view();
		animation-range: 0 calc(100% / 3);
	}

	@keyframes fade-in {
		to {
			opacity: 1;
			left: 0;
		}
	}
}

#activeSearchList {
	position: fixed;
	top: 105px;
	left: 2px;
	width: 100%;
	z-index: 1000;
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	height: 0;
	overflow: visible;
	transition: top 1s ease;
}
	body.scroll #activeSearchList {
		top: 54.5px;
	}
	body.deepScroll #activeSearchList {
		top: 2px;
	}


	#activeSearchList::after {
		content: 'This shows a summary of active search terms. You can click on terms here to remove them from your search.';
		font-size: .9rem;
		line-height: 1rem;
		width: 500px;
		background: #cecece;
		border: 1px solid #b7b7b7;
		border-radius: 1rem;
		height: 0;
		overflow: hidden;
		padding: 0;
		opacity: 0;
		transition: opacity 1s ease, padding 0s ease 1s, height 0s ease 1s;
		position: relative;
		left: -9999px;
	}
	#activeSearchList:hover::after {
		display: inline-table;
		opacity: 1;
		height: auto;
		padding: 0.25rem 1rem 0.5rem;
		left: 0;
		top: 3rem;
		transition: opacity 1s ease .75s;
	}

body #activeSearchList li {
	height: auto;
	max-height: 0;
	transition: max-height .5s ease;
	overflow: hidden;
}

ul#activeSearchList li {
	height: 9rem;
	max-height: 0;
	transition: max-height 0.5s ease;
	font-size: 0.8rem !important;
	width: 0;
	max-width: 99rem;
	position: relative;
	margin: 0;
}

#activeSearchList a {
	padding: 4px;
	border-radius: 0.4rem;
	background-color: #496585;
	color: #fff;
}

#primary #activeSearchList a::after {
	content: '\d7' !important;
	display: inline-block;
	color: #fff;
	height: 1rem !important;
	width: 1rem !important;
	padding-left: 0.2rem;
}


body.Animals #activeSearchList li#Animals,
body.Armed_Forces #activeSearchList li#Armed_Forces,
body.Arts_Culture #activeSearchList li#Arts_Culture,
body.Community #activeSearchList li#Community,
body.Christianity #activeSearchList li#Christianity,
body.Children_Youth #activeSearchList li#Children_Youth,
body.Disability #activeSearchList li#Disability,
body.Education_Training #activeSearchList li#Education_Training,
body.Environment #activeSearchList li#Environment,
body.Heritage #activeSearchList li#Heritage,
body.Housing #activeSearchList li#Housing,
body.Judaism #activeSearchList li#Judaism,
body.Other_Religions #activeSearchList li#Other_Religions,
body.Political_Body #activeSearchList li#Political_Body,
body.Emergency_Services #activeSearchList li#Emergency_Services,
body.Health #activeSearchList li#Health,
body.Hospices #activeSearchList li#Hospices,
body.Islam #activeSearchList li#Islam,
body.Rights_Law_Conflict #activeSearchList li#Rights_Law_Conflict,
body.Elderly #activeSearchList li#Elderly,
body.General_Charitable_Purposes #activeSearchList li#General_Charitable_Purposes,
body.Higher_Education #activeSearchList li#Higher_Education,
body.International_Development #activeSearchList li#International_Development,
body.Mental_Health #activeSearchList li#Mental_Health,
body.Research #activeSearchList li#Research,
body.Sports_Recreation #activeSearchList li#Sports_Recreation,
body.Welfare #activeSearchList li#Welfare,
body.Women #activeSearchList li#Women,

body.Regional #activeSearchList li#Regional,
body.Regional_GreaterLondon #activeSearchList li#Regional_GreaterLondon,
body.Regional_NorthEastEngland #activeSearchList li#Regional_NorthEastEngland,

body.Grant_Data_Available #activeSearchList li#Grant_Data_Available,
body.Smallest_Grant_Amount #activeSearchList li#Smallest_Grant_Amount,
body.Average_Grant_Amount #activeSearchList li#Average_Grant_Amount,
body.Latest_Income #activeSearchList li#Latest_Income,

body.National #activeSearchList li#National,
body.Overseas #activeSearchList li#Overseas,
body.Overseas_Africa #activeSearchList li#Overseas_Africa,
body.Overseas_Americas #activeSearchList li#Overseas_Americas,
body.Overseas_AsiaPacific #activeSearchList li#Overseas_AsiaPacific,
body.Overseas_Europe #activeSearchList li#Overseas_Europe,
body.map-visible #activeSearchList li#map-visible,
body.Regional_Scotland #activeSearchList li#Regional_Scotland,
body.Regional_Wales #activeSearchList li#Regional_Wales,
body.Regional_NorthernIreland #activeSearchList li#Regional_NorthernIreland,
body.Regional_EastMidlands #activeSearchList li#Regional_EastMidlands,
body.Regional_EastOfEngland #activeSearchList li#Regional_EastOfEngland,
body.Regional_NorthWestEngland #activeSearchList li#Regional_NorthWestEngland,
body.Regional_SouthEastEngland #activeSearchList li#Regional_SouthEastEngland,
body.Regional_SouthWestEngland #activeSearchList li#Regional_SouthWestEngland,
body.Regional_WestMidlandsRegion #activeSearchList li#Regional_WestMidlandsRegion,
body.Regional_YorkshireAndTheHumber #activeSearchList li#Regional_YorkshireAndTheHumber,

body.TrustStatusNew #activeSearchList li#TrustStatusNew,
body.TrustStatusRemoved #activeSearchList li#TrustStatusRemoved,

body.Registered_Charity_Number #activeSearchList li#Registered_Charity_Number,
body.Charity_Name #activeSearchList li#Charity_Name,
body.Charity_Objects #activeSearchList li#Charity_Objects,
body.Trustee_Names #activeSearchList li#Trustee_Names,
body.Research_notes #activeSearchList li#Research_notes,
body.Corporate_Foundation #activeSearchList li#Corporate_Foundation,
body.No_Unsolicited_Applications #activeSearchList li#No_Unsolicited_Applications,
body.Accepts_Unsolicited_Applications #activeSearchList li#Accepts_Unsolicited_Applications,
body.Foundations_of_Wealth #activeSearchList li#Foundations_of_Wealth,

body.\32 011 #activeSearchList li#\32 011,
body.\32 012 #activeSearchList li#\32 012,
body.\32 013 #activeSearchList li#\32 013,
body.\32 014 #activeSearchList li#\32 014,
body.\32 015 #activeSearchList li#\32 015,
body.\32 016 #activeSearchList li#\32 016,
body.\32 017 #activeSearchList li#\32 017,
body.\32 018 #activeSearchList li#\32 018,
body.\32 019 #activeSearchList li#\32 019,
body.\32 020 #activeSearchList li#\32 020,
body.\32 021 #activeSearchList li#\32 021,
body.\32 022 #activeSearchList li#\32 022,
body.\32 023 #activeSearchList li#\32 023,
body.\32 024 #activeSearchList li#\32 024,
body.\32 025 #activeSearchList li#\32 025,
body.\32 010s #activeSearchList li#\32 010s,
body.\32 020s #activeSearchList li#\32 020s,

body.reg_charity_number #activeSearchList li#reg_charity_number,
body.Recipient #activeSearchList li#Recipient,
body.Amount #activeSearchList li#Amount,
body.GiftBandLower #activeSearchList li#GiftBandLower,
body.GiftBandUpper #activeSearchList li#GiftBandUpper,
body.Newly_registered #activeSearchList li#Newly_registered,
body.Accepts_Unsolicited_Applications #activeSearchList li#Accepts_Unsolicited_Applications,
body.NotesOnDonation #activeSearchList li#NotesOnDonation {
	max-height: calc(1rem + (2 * 4px));
	width: auto;
	margin: 0 1px;
}

body.page-pdf-server #masthead .entry-header .entry-title {
	display: none;
	margin: 0;
}

body.page-pdf-server .page-content {
	margin: 0;
}
body.page-pdf-server .entry-header {
	margin: calc( 2 * ( 24px + 1.7em ) ) auto 0;
}

