/* The masthead orange and page gold come from the original site. */
:root {
	--jezus-header: #ed7f50;
	--jezus-gold: #eab64f;
	--jezus-paper: #fff6df;
	--jezus-ink: #3b241c;
	--jezus-rust: #803927;
	--jezus-amber: #ffda85;
	--jezus-footer: #54291f;
}

body.wp-theme-cordero {
	background-color: var(--jezus-gold);
}

body.wp-theme-cordero #masthead:not(.transparent) {
	background-color: var(--jezus-header);
	color: var(--jezus-ink);
}

#masthead:not(.transparent) #site-navigation,
#masthead:not(.transparent) #site-navigation a {
	color: var(--jezus-ink);
}

#masthead:not(.transparent) #primary-menu > li > a {
	font-size: 0.925rem;
	font-weight: 600;
	text-transform: none;
}

#masthead:not(.transparent) #primary-menu > li > a:hover,
#masthead:not(.transparent) #primary-menu > .current-menu-item > a {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

#masthead:not(.transparent) :is(a, button):focus-visible,
.jezus-shortcuts a:focus-visible {
	outline: 3px solid var(--jezus-ink);
	outline-offset: 3px;
}

#masthead:not(.transparent) #masthead-inner {
	width: min(96%, 75rem);
	padding-block: 0.5rem;
	column-gap: clamp(1rem, 3vw, 2.5rem);
}

#masthead:not(.transparent) #site-branding .custom-logo {
	width: clamp(8.5rem, 15vw, 12rem);
	height: auto;
	margin: 0;
	transition: none;
}

.jezus-shortcuts {
	width: min(calc(100% - 2rem), 68.75rem);
	margin: 0.875rem auto 0;
	color: var(--jezus-ink);
}

.jezus-shortcuts--home {
	margin-top: clamp(1.25rem, 3.6vw, 3.25rem);
	padding: clamp(0.65rem, 2.5vw, 1.5rem);
	background-color: var(--jezus-paper);
	border-radius: 1rem;
}

.jezus-shortcuts__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.jezus-shortcuts a.jezus-shortcuts__entry {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	min-height: 3rem;
	padding: 0.65rem 0.9rem;
	border-radius: 0.625rem;
	border: 1px solid transparent;
	background-color: var(--jezus-paper);
	color: var(--jezus-ink);
	text-decoration: none;
}

.jezus-shortcuts--home a.jezus-shortcuts__entry {
	min-height: clamp(4.5rem, 9vw, 7.75rem);
	padding: 0.75rem clamp(0.85rem, 3vw, 1.75rem);
}

.jezus-shortcuts--home a.jezus-shortcuts__entry--mesek {
	background-color: var(--jezus-rust);
	color: var(--jezus-paper);
}

.jezus-shortcuts--home a.jezus-shortcuts__entry--rejtvenyek-a-bibliabol {
	background-color: var(--jezus-amber);
}

.jezus-shortcuts a.jezus-shortcuts__entry[aria-current="page"] {
	border-color: var(--jezus-rust);
	color: var(--jezus-rust);
}

.jezus-shortcuts__title,
.jezus-shortcuts__description {
	display: block;
}

.jezus-shortcuts__title {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 1.25rem;
	line-height: 1.15;
}

.jezus-shortcuts--home .jezus-shortcuts__title {
	font-size: clamp(1.65rem, 4vw, 2.5rem);
}

.jezus-shortcuts__description {
	margin-top: 0.2rem;
	font-size: 1rem;
	line-height: 1.35;
}

.jezus-shortcuts__arrow {
	flex: none;
	width: 0.55rem;
	height: 0.55rem;
	margin-right: 0.2rem;
	border: solid currentColor;
	border-width: 2px 2px 0 0;
	transform: rotate(45deg);
}

.jezus-shortcuts [aria-current="page"] .jezus-shortcuts__arrow {
	visibility: hidden;
}

.jezus-shortcuts__entry:active .jezus-shortcuts__title {
	text-decoration: underline;
	text-underline-offset: 0.14em;
}

/* Keep the existing Imahét link and bring the illustrated grid nearer to it. */
.home #content {
	margin-block-start: 0.875rem;
}

.home .elementor[data-elementor-type="wp-page"] > .elementor-element-8b8ba87 {
	max-width: 70rem;
	margin-inline: auto;
}

.home .elementor[data-elementor-type="wp-page"] > .elementor-element-e0c8298 {
	margin-top: 1rem;
}

.home .elementor-element-7944843 a.elementor-button {
	min-height: 2.75rem;
	display: inline-flex;
	align-items: center;
	background: var(--jezus-paper);
	color: var(--jezus-ink);
}

.home .elementor-element-7944843 a.elementor-button:focus-visible {
	outline: 3px solid var(--jezus-ink);
	outline-offset: 3px;
}

/* These two Elementor sections contain the restored catalogue titles. */
.wp-theme-cordero .elementor[data-elementor-type="wp-page"] > .elementor-element:is(.elementor-element-f50bc8d, .elementor-element-973e80a) {
	background-color: var(--jezus-paper);
	border-radius: 0.625rem;
}

.wp-theme-cordero .elementor[data-elementor-type="wp-page"] > .elementor-element:is(.elementor-element-f50bc8d, .elementor-element-973e80a) .elementor-heading-title {
	color: var(--jezus-rust);
	font-family: Georgia, 'Times New Roman', serif;
}

body.wp-theme-cordero #colophon {
	background-color: var(--jezus-footer);
	color: var(--jezus-paper);
}

#colophon a {
	color: var(--jezus-amber);
	text-decoration: underline;
	text-underline-offset: 0.16em;
}

#colophon a:focus-visible {
	outline: 2px solid var(--jezus-amber);
	outline-offset: 3px;
}

@media (hover: hover) {
	.jezus-shortcuts__entry:hover .jezus-shortcuts__title {
		text-decoration: underline;
		text-underline-offset: 0.14em;
	}
}

@media (min-width: 1025px) {
	#masthead:not(.transparent) #masthead-inner:not(.logo-right, .logo-below) {
		grid-template-columns: auto minmax(0, 1fr);
	}

	#masthead:not(.transparent) #masthead-inner:not(.logo-right, .logo-below) #site-branding {
		grid-column: 1;
		text-align: left;
	}

	#masthead:not(.transparent) #masthead-inner:not(.logo-right, .logo-below) #site-navigation {
		grid-column: 2;
		justify-self: stretch;
	}

	#masthead:not(.transparent) #primary-menu > li {
		padding-inline: 0.65rem;
	}
}

@media (max-width: 1024px) {
	#masthead:not(.transparent) #masthead-inner:not(.logo-right) {
		width: min(calc(100% - 2rem), 75rem);
		grid-template-columns: minmax(0, 1fr) auto;
	}

	#masthead:not(.transparent) #masthead-inner:not(.logo-right) #site-branding {
		grid-column: 1;
		text-align: left;
	}

	#masthead:not(.transparent) #masthead-inner:not(.logo-right) .toggle-nav {
		grid-column: 2;
		justify-self: end;
		min-width: 2.75rem;
		min-height: 2.75rem;
		color: var(--jezus-ink);
	}

	#masthead:not(.transparent) #site-navigation {
		background-color: var(--jezus-paper);
	}

	#site-navigation,
	.menu-open #site-navigation {
		transition: left 180ms ease-out, opacity 180ms ease-out;
	}

	.menu-open #site-navigation:has(:focus-visible) {
		transition: none;
	}

	#masthead:not(.transparent) #site-navigation .toggle-nav-open:focus-visible {
		outline-offset: -3px;
	}
}

@media (max-width: 1024px) and (prefers-reduced-motion: reduce) {
	#site-navigation,
	#site-nav-after,
	.menu-open #site-navigation,
	.menu-open #site-nav-after {
		transition: none;
	}
}

@media (max-width: 540px) {
	.jezus-shortcuts--home .jezus-shortcuts__list {
		grid-template-columns: minmax(0, 1fr);
	}
}
