@use "../../scss/mixins/breakpoints";

.jp-footer {
	--jp-white: #fff;

	background-color: var(--jp-white);
	padding: 22px 0;
	margin-top: 48px;
}

.jp-footer__container {
	max-width: 68rem;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.jp-footer--static {
	--jp-black: #000;
	--font-body-extra-small: 12px;

	&,
	*,
	*::before,
	*::after {
		box-sizing: border-box;
	}

	.jp-footer__container {
		align-items: center;
		color: var(--jp-black);
		display: flex;
		flex-wrap: wrap;
		font-size: var(--font-body-extra-small);
		line-height: 1.333;
		width: 100%;

		@include breakpoints.breakpoint( "<960px" ) {
			flex-direction: column;
			align-items: flex-start;
		}
	}

	a {

		&,
		&:link,
		&:hover,
		&:visited,
		&:active {
			color: var(--jp-black);
			text-decoration: none;
		}
	}

	.jp-footer__logo {
		margin-right: 32px;

		@include breakpoints.breakpoint( "<960px" ) {
			margin-right: 0;
			margin-bottom: 24px;
		}

		@include breakpoints.breakpoint( "<660px" ) {
			margin-bottom: 48px;
		}
	}

	.jp-footer__module-name,
	.jp-footer__jetpack-symbol {
		vertical-align: middle;
		display: inline-block;
	}

	.jp-footer__module-name {
		margin-left: 5px;
		font-weight: 600;
	}

	.jp-footer__menu {
		display: flex;

		@include breakpoints.breakpoint( "<960px" ) {
			margin-bottom: 24px;
		}

		@include breakpoints.breakpoint( "<660px" ) {
			flex-direction: column;
			align-items: flex-start;
			margin-bottom: 48px;

			.jp-footer__menu-item {
				margin-right: 0;
				margin-bottom: 16px;

				&:last-child {
					margin-bottom: 0;
				}
			}
		}

		.jp-footer__menu-item {
			position: relative;
			color: var(--jp-black);
			margin-right: 16px;
			text-decoration: none;

			&.is-external {
				padding-right: 20px;
			}

			&:focus {
				box-shadow: none;
				outline-width: 0;
			}

			&:focus-visible {
				border-radius: 2px;
				outline-offset: 3px;
				outline: 1.5px solid var(--jp-black);
				box-shadow: none;
			}

			&:hover {
				text-decoration: underline;
				text-decoration-thickness: 1.5px;
			}

			&:hover:focus {
				text-decoration: none;
			}
		}

		.jp-footer__menu-item__icon {
			width: 16px;
			height: 16px;
			margin-left: 4px;
			position: absolute;
			right: 0;
		}
	}

	.jp-footer__a8c-logo {
		margin-left: auto;

		@include breakpoints.breakpoint( "<960px" ) {
			margin-left: 0;
		}
	}
}
