/*
Theme Name: Primary GE TMS
Description: Companion theme for the Primary GE Fleet TMS plugin. Highway-sign styling, built for phones first, with a home page for shipment tracking and driver sign-in.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Author: Primary GE
Text Domain: pge-tms-theme
*/

:root {
	--sign: #00613F;
	--sign-dark: #004A30;
	--ink: #1B2421;
	--muted: #5B6661;
	--line: #D5DBD8;
	--surface: #F4F6F5;
	--paper: #FFFFFF;
	--display: "Overpass", "Helvetica Neue", Arial, sans-serif;
	--body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	box-sizing: border-box;
	padding-top: env(safe-area-inset-top, 0px);
	padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.55;
	-webkit-text-size-adjust: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}
img { max-width: 100%; height: auto; }
a { color: var(--sign); text-underline-offset: 2px; }
a:hover { color: var(--sign-dark); }
:focus-visible { outline: 3px solid var(--sign); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 6vw, 46px); }
h2 { font-size: clamp(22px, 4vw, 28px); }
h3 { font-size: 20px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip-link:focus { left: 8px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header: the guide sign */
.site-header { background: var(--sign); color: #fff; padding: 8px 0; }
.site-header .sign {
	border: 2px solid #fff;
	border-radius: 9px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	flex-wrap: wrap;
	padding: 10px 18px 8px;
}
.brand { font-family: var(--display); font-weight: 800; font-size: 22px; color: #fff; text-decoration: none; line-height: 1.1; }
.brand:hover, .brand:focus { color: #fff; }
.custom-logo-link { display: block; line-height: 0; }
.custom-logo { max-height: 56px; width: auto; display: block; }
.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; }
.nav a { font-family: var(--display); font-weight: 700; font-size: 16px; color: #fff; text-decoration: none; padding: 4px 0 2px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a:focus, .nav .current-menu-item > a { color: #fff; border-bottom-color: #fff; }
.site-header :focus-visible { outline-color: #fff; }

/* Content */
.site-main { padding: 40px 0 64px; flex: 1 0 auto; }
.entry { max-width: 760px; }
.entry-content > * { max-width: 70ch; }
.entry-content .pge-public { max-width: 720px; margin: 0; }
.entry-wide { max-width: none; }
.entry-wide .entry-content > * { max-width: none; }
.pge-wide .wrap { max-width: 1400px; }
.site-main:has(.entry-wide) { padding-top: 28px; }

/* Home page */
.home-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.lede { color: var(--muted); font-size: 19px; margin: 0 0 24px; max-width: 46ch; }
.track-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.track-row { display: flex; gap: 10px; }
.track-row input {
	flex: 1;
	min-width: 0;
	font-family: var(--display);
	font-weight: 700;
	font-size: 22px;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 14px 16px 10px;
	border: 2px solid var(--ink);
	border-radius: 8px;
	background: var(--paper);
	color: var(--ink);
}
.button, .track-row button {
	font-family: var(--display);
	font-weight: 800;
	font-size: 18px;
	background: var(--sign);
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 14px 22px 11px;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
	white-space: nowrap;
}
.button:hover, .track-row button:hover { background: var(--sign-dark); color: #fff; }

/* Side signs: drivers and dispatch */
.side-signs { display: flex; flex-direction: column; gap: 16px; }
.mini-sign { background: var(--sign); color: #fff; border-radius: 12px; padding: 5px; }
.mini-sign .inner { border: 2px solid #fff; border-radius: 8px; padding: 16px 18px 18px; }
.mini-sign h2 { color: #fff; font-size: 24px; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.mini-sign h2 svg { flex: none; }
.mini-sign p { margin: 0 0 14px; opacity: .92; }
.mini-sign .button { background: #fff; color: var(--sign); }
.mini-sign .button:hover { background: #E6F2EC; color: var(--sign-dark); }
.mini-sign :focus-visible { outline-color: #fff; }
.plate { border: 2px solid var(--ink); border-radius: 12px; padding: 16px 18px; }
.plate h2 { font-size: 20px; margin-bottom: 4px; }
.plate .phone { font-family: var(--display); font-weight: 800; font-size: 26px; text-decoration: none; color: var(--ink); }

/* Footer */
.site-footer { border-top: 2px solid var(--ink); padding: 20px 0 28px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.site-footer strong { color: var(--ink); font-family: var(--display); }

.notice-box { background: var(--surface); border-left: 4px solid var(--muted); padding: 12px 16px; }

/* WordPress basics */
.alignleft { float: left; margin: 0 1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
#loginform p { margin: 0 0 12px; }
#loginform input[type=text], #loginform input[type=password] { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #A9B3AE; border-radius: 6px; }
#loginform input[type=submit] { font-family: var(--display); font-weight: 800; font-size: 17px; background: var(--sign); color: #fff; border: 0; border-radius: 8px; padding: 12px 20px 10px; cursor: pointer; }

@media (max-width: 820px) {
	.home-grid { grid-template-columns: 1fr; }
	.site-main { padding-top: 28px; }
}
@media (max-width: 480px) {
	.track-row { flex-direction: column; }
	.site-header .sign { padding: 8px 12px 6px; }
	.brand { font-size: 19px; }
	.custom-logo { max-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
