/* TOP NAVIGATION */
shy-header {
	flex-direction: column;
	pointer-events: none; /* prevents header-mobile-spacer from blocking buttons in page content */
}

.header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.25rem;
	padding: 0.25rem 0.75rem;
	background-color: var(--color-header-background);
	z-index: 9999;
	pointer-events: all;
	
	&.mobile {
		flex: 1;
	}
	
	&.desktop {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		box-sizing: border-box;
	}
	
	.ticon-wrapper {
		display: flex;
		align-items: center;
		justify-content: center;
		height: 0;
		position: absolute;
		bottom: 0;
		left: 2rem;
	}
	
	.buttons-left {
		flex: 1;
		display: flex;
		align-items: center;
		justify-content: flex-start;
		gap: 0.25rem;
		margin-left: 6rem;
	}
	
	.buttons-right {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: 0.25rem;
	}

	.welcome-msg {
		flex: 1;
		text-align: left;
	}
}

.header-button {
	position: relative;
	margin: 0.25rem;

	&.button {
		color: var(--color-header-button);
		background-color: var(--color-header-button-background);
		border: none;

		&:hover,
		&:active,
		&.active {
			color: var(--color-header-button--hover);
			background-color: var(--color-header-button-background--hover);
		}
	}

	&.icon-button {
		color: var(--color-header-button);

		&:hover,
		&:active {
			color: var(--color-header-button--hover);
		}
	}
	
	.badge {
		position: absolute;
		top: 0;
		right: -12%;	
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 1px;
		min-height: 0.75rem;
		min-width: 0.75rem;
		border: 1px solid var(--color-text-on-accent);
		border-radius: 1rem;
		font-size: 0.675rem;
		color: var(--color-text-on-accent);
		background: var(--color-primary);
	}
}

/* prevents ticon from sticking out when shy header is closed */
.header-mobile-spacer {
	/* calculates half of tiny ticon height (= its diagonal) + some extra pixels*/
	height: calc((sqrt(48 * 48 * 2) * 0.5px) + 3px );
}

.header-menu {
	position: fixed;
	top: 2.75rem; /* height of mobile header */
	right: 0;
	max-height: calc(100vh - 8rem);
	overflow: auto;
	transform: translateX(100%);
	transition: transform 250ms ease-in-out, box-shadow 250ms ease-in-out;
	display: flex;
	flex-direction: column;
	padding: 0.5rem;
	min-width: 12.25rem;
	max-width: 100%;
	background-color: var(--color-header-background);
	border-radius: 1rem 0 0 1rem;
	box-shadow: 0 0 0 0 transparent;
	box-sizing: border-box;
	z-index: 9999;
	overflow: auto;
	scrollbar-gutter: stable;

	&.show {
		transform: translateX(0);
		box-shadow: var(--box-shadow-medium);
	}
	
	.header-button {
		justify-content: flex-start;
		padding: 0.5rem;
		flex-shrink: 0;
	}
	
	.submenu {
		display: none;
		
		&.active {
			display: flex;
			flex-direction: column;
			padding-left: 0.5rem;
		}
	}
}

/* FORUM TITLE */
.forum-title {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 8rem;
	padding-bottom: 6rem;
	width: var(--forum-max-width-standard);
	max-width: 100%;
	
	&.classic {
		width: var(--forum-max-width-classic);
	}
	
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 0.25rem;
		box-sizing: border-box;
		padding: 1rem;
	
		.forum-name {
			font-family: var(--font-secondary);
			color: var(--color-forum-title-name);
			font-weight: 350;
			font-style: italic;
			font-size: 3.75rem;
			line-height: 0.9;
			letter-spacing: 0.15em;
			text-shadow: 1px 1px 1px var(--color-forum-title-name-shadow);
		}

		.forum-shortfacts {
			font-family: var(--font-primary);
			color: var(--color-forum-title-shortfacts);
			font-size: 0.875rem;
			font-weight: 500;
			letter-spacing: 0.3em;
		}
	}
	
	@media (width <= 991px) {
		padding-top: 2rem;
		padding-bottom: 3rem;
	}
	
	@media (width <= 576px) {
		padding-top: 0.5rem;
		padding-bottom: 1rem;
		
		.content {
			.forum-name {
				font-size: 2.75rem;
			}
			
			.forum-shortfacts {
				font-size: 0.75rem;
			}
		}
	}
}

/* FORuM HEADER INFO */
.forum-info {
	display: flex;
	gap: 1.5rem;
	
	.icon-col {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: space-evenly;
		gap: 1rem;
	}
	
	.info-box {
		flex: 1;
		display: flex;
		flex-direction: column;
		gap: 0.5rem;
		padding: 1rem 0 1rem 1rem;
		background: var(--color-forum-info-box-background);
		border: 1px solid var(--color-forum-info-box-border);
		font-size: 0.875rem;
		box-sizing: border-box;
		height: 15rem;
		overflow: auto;
		
		&.team {
			flex: unset;
			min-width: 6rem;
		}
		
		.title-select {
			display: flex;
			justify-content: space-between;
			gap: 1rem;
			padding-right: 1rem;
		}
		
		.title {
			font-weight: 500;
			text-transform: uppercase;
			
			&.button {
				border: none;
				flex: 1;
				justify-content: center;
				
				&:first-child {
					justify-content: flex-start;
				}
				
				&:last-child {
					justify-content: flex-end;
				}
			}
		}
		
		.content {
			overflow: auto;
			padding-right: 1rem;
			display: flex;
            flex-direction: column;
            gap: 1rem;
			
			h4,
			a{
				text-align: center;
			}
			
			&.team {
				display: grid;
				grid-template-rows: repeat(2, 1fr);
				align-content: space-between;
				gap: 1rem;
				height: 100%;
				
				.team-member {
					border: 1px solid var(--color-ticon-border);
					box-sizing: border-box;
					padding: 0.25rem;
					width: 5rem;
					aspect-ratio: 1;
					cursor: pointer;
					
					.team-member-image {
						padding: 0.25rem;
						width: 100%;
						height: 100%;
						box-sizing: border-box;
					
						&#team-arby {
							background: var(--image-team-arby) center / 100%;
						}

						&#team-ina {
							background: var(--image-team-ina) center / 100%;
						}

						&#team-lucy {
							background: var(--image-team-lucy) center / 100%;
						}

						&#team-nython {
							background: var(--image-team-nython) center / 100%;
						}
					}
				}
				
				@container teambox (width < 18rem) {
					grid-template-columns: repeat(2, 1fr);
				}
			}
		}
	}
}