﻿:root
{
	--background-color: #F0F0F0;
	--darkBlue-color: #146BB4;
	--lightBlue-color: #69B4E4;
	--almostBlack-color: #231F20;
	--grey-color: #E6E6E5;
	--text-color: #434343;
}

@font-face
{
	font-family: 'DMSans';
	src: url('/fonts/DMSans-VariableFont_opsz,wght.ttf') format('truetype');
}

@font-face
{
	font-family: 'LeagueGothic-Regular';
	src: url('/fonts/LeagueGothic-Regular.ttf') format('truetype');
}

html
{
	font-size: 14px;
	color: #000;
}

@media (min-width: 768px)
{
	html
	{
		font-size: 14px;
	}
}

html,
body
{
	height: 100%;
	min-height: 100vh;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0;
	background-color: var(--background-color);
	color: var(--text-color);
	font-family: "DMSans", sans-serif;
	font-weight: 400;
	font-style: normal;
}

header {
	position: sticky;
	top: 0;
	background-color: var(--background-color);
	padding: 10px;
	z-index: 1000;
	border-bottom: solid 1px #ccc;
}

nav
{
	display: grid;
	grid-template-columns: 1fr 1fr auto auto;
	position: relative; /* provides positioning context for the mobile dropdown */
}

.logoblock a
{
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px;
	color: var(--text-color);
	text-decoration: none;
}

	.logoblock a div
	{
		font-weight: 700;
	}

	.logoblock a img
	{
		display: grid;
		grid-template-columns: auto 1fr;
		gap: 10px;
		align-self: center;
		height: 36px;
		width: 36px;
	}

.logo-side-block
{
	line-height: 16px;
}

.livetrafficblock
{
	text-align: end;
	margin-right: 10px;
	align-self: center;
	background: black;
	padding: 5px 15px;
}

	.livetrafficblock a
	{
		color: white;
		text-decoration: none;
		font-size: 12px;
		font-weight: bold;
	}

/* ── CSS-only hamburger menu ─────────────────────────────── */
.hamburger-menu
{
	position: relative;
	display: inline-block;
}

/* Hide the checkbox — it's only used as a state toggle */
#menu__toggle
{
	display: none;
}

/* The visible button: three bars */
.menu__btn
{
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	cursor: pointer;
}

	.menu__btn span,
	.menu__btn span::before,
	.menu__btn span::after
	{
		display: block;
		background-color: var(--darkBlue-color);
		height: 3px;
		width: 28px;
		border-radius: 2px;
		position: absolute;
		transition: transform 0.3s ease, background-color 0.3s ease, top 0.3s ease;
	}

		.menu__btn span::before
		{
			content: '';
			top: -9px;
		}

		.menu__btn span::after
		{
			content: '';
			top: 9px;
		}

/* Animate the three bars into an × when checked */
#menu__toggle:checked + .menu__btn span
{
	background-color: transparent;
}

	#menu__toggle:checked + .menu__btn span::before
	{
		transform: rotate(45deg);
		top: 0;
	}

	#menu__toggle:checked + .menu__btn span::after
	{
		transform: rotate(-45deg);
		top: 0;
	}

/* The dropdown list — hidden by default */
.menu__box
{
	display: none;
	position: absolute;
	top: 44px;
	left: auto;
	right: 0;
	min-width: 200px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background-color: #fff;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 1100;
}

/* Show the list when the checkbox is checked.
   Uses :has() to reach .menu__box across the div boundary that
   prevents the old ~ sibling selector from ever matching. */
nav:has(#menu__toggle:checked) .menu__box
{
	display: block;
}

.menu__item
{
	display: block;
	font-size: 13px;
	font-weight: 400;
	padding: 10px 16px;
	color: var(--text-color);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}

	.menu__item:hover
	{
		border-bottom: solid 2px navy;
	}

/* ── Mobile: let nav be the sole positioning context ── */
@media (max-width: 767px)
{
	.hamburger-menu
	{
		position: static; /* hand positioning control up to nav */
	}

	.menu__box
	{
		top: 100%; /* flush below the nav bar */
	}

	.logo-commuterguide
	{
		display: none;
	}
}

/* ── Wide screens: show nav items directly, hide the hamburger ── */
@media (min-width: 768px)
{
	.menu__btn
	{
		display: none;
	}

	.menu__box
	{
		display: flex;
		flex-direction: row;
		position: static;
		background-color: transparent;
		border: none;
		box-shadow: none;
		border-radius: 0;
		padding: 0;
		margin: 0;
		gap: 4px;
	}

	.menu__item
	{
		padding: 8px 12px;
	}

		.menu__item.picked
		{
			border-bottom: solid 2px navy;
		}
}

footer
{
	background-color: #1A2535;
	color: #ccc;
	font-size: 14px;
	padding: 0 80px 0 80px;
}

@media (max-width: 767px)
{
	footer
	{
		padding: 0 10px 0 10px;
	}
}

.footer-title
{
	font-weight: 700;
	margin-bottom: 20px;
}

	.footer-title > a
	{
		text-decoration: none;
		color: #ccc;
	}

.footer-title-item
{
	margin-bottom: 20px;
}

@media screen and (max-width: 767px)
{
	.footer-title-item
	{
		display: none;
	}
}

.footer-title-item a
{
	text-decoration: none;
	color: inherit;
}

.footer-link-box-container
{
	margin-top: 10px;
}

.footer-link-boxes
{
	border: solid 1px #ccc;
	padding: 5px;
}

	.footer-link-boxes > a
	{
		text-decoration: none;
		color: inherit;
	}


.footer-grid
{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	padding: 20px;
}

.footer-last-line
{
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	padding: 20px 20px;
}
