/* GBC Job Hub website: page layout on top of gbc-ui.css (the brand copy, unchanged). GBC Screen Standard 1.2:
   content up to 1,320 px, 40 px side margins on desktop and 16 px on phones, 15 px body text (16 px on phones),
   44 px tap targets (48 px on phones), 32 px between cards. Dark mode follows the device's setting: the header stays
   Midnight Green with the orange mark (the Blueprint's Negative Colour Profile); everything else swaps to dark greys. */

@font-face { font-family: "Lexend"; font-weight: 300; font-display: swap; src: url("/assets/fonts/Lexend-Light.ttf") format("truetype"); }
@font-face { font-family: "Lexend"; font-weight: 400; font-display: swap; src: url("/assets/fonts/Lexend-Regular.ttf") format("truetype"); }
@font-face { font-family: "Lexend"; font-weight: 500; font-display: swap; src: url("/assets/fonts/Lexend-Medium.ttf") format("truetype"); }

:root {
	--jh-heading: var(--gbc-green);
	--jh-jobno: #003B3F;
	--jh-hash: #F05730;
	--jh-button-edge: var(--gbc-green);
}

@media (prefers-color-scheme: dark) {
	:root {
		--gbc-ink: #E7EEEE;
		--gbc-ink-soft: #C3D0D1;
		--gbc-muted: #9DAEAF;
		--gbc-line: #2A3D3F;
		--gbc-line-strong: #3B5356;
		--gbc-surface: #142527;
		--gbc-canvas: #0C1819;
		--gbc-green-wash: #1B3133;
		--gbc-green-tint: #1F3A3C;
		--gbc-red-bg: #3A1A17;
		--gbc-red-line: #7A3A33;
		--jh-heading: #D6E8E6;
		--jh-jobno: #BFE0DC;
		--jh-hash: #F47A5A;
		--jh-button-edge: #6FA8A0;
	}
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; background: var(--gbc-canvas); color: var(--gbc-ink); font-size: 15px; }
h1, h2, h3 { color: var(--jh-heading); }

/* Header (Screen Standard section 1): orange mark 56 px, a thin divider, then the name and version. */
.gbc-header { display: block; padding: 0; }
.gbc-head-in { max-width: 1320px; margin: 0 auto; padding: 12px 40px; display: flex; align-items: center; gap: 18px; }
.gbc-header .gbc-mark { display: block; flex: none; height: 56px; width: auto; padding: 0; }
.gbc-head-text { border-left: 1px solid rgba(255, 255, 255, 0.25); padding-left: 18px; min-width: 0; }
.gbc-header .gbc-title { color: #fff; margin: 0; font-size: 18px; font-weight: 500; line-height: 1.3; }
.gbc-ver { font-weight: 300; font-size: 13px; color: rgba(255, 255, 255, 0.78); }
.gbc-person { margin-left: auto; text-align: right; font-size: 15px; font-weight: 400; color: rgba(255, 255, 255, 0.92); }

/* Content */
.page { max-width: 1320px; margin: 0 auto; padding: 40px 40px 64px; }
.page h1 { font-size: 26px; margin: 0 0 12px; }
.page p { line-height: 1.55; margin: 0 0 16px; }
.lead { color: var(--gbc-ink-soft); margin-bottom: 28px !important; }
.grey-line { color: var(--gbc-muted); font-size: 15px; }
.card { max-width: 760px; padding: 32px 36px; margin: 0 0 32px; background: var(--gbc-surface); border-color: var(--gbc-line); }
.card.stop { border-left: 4px solid var(--gbc-red); }
.card p:last-child { margin-bottom: 0; }
.gbc-kicker { font-size: 12px; }

/* Who is signed in */
.who-name { font-size: 24px; font-weight: 500; color: var(--jh-heading); margin: 6px 0 2px; line-height: 1.3; }
.who-role { font-size: 16px; color: var(--gbc-ink-soft); font-weight: 400; }
.facts { margin: 24px 0 28px; padding: 0; border-top: 1px solid var(--gbc-line); }
.facts .row { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--gbc-line); }
.facts dt { flex: 0 0 160px; color: var(--gbc-muted); font-weight: 400; }
.facts dd { margin: 0; flex: 1 1 auto; }

/* Job numbers (Job Hub 1.26-test, option E): Midnight Green number, only the # in Cinnabar. */
.jn { color: var(--jh-jobno); font-weight: 500; font-size: 16px; }
.jn-hash { color: var(--jh-hash); font-weight: 600; margin-right: 1px; }

/* Buttons and button-like links: 44 px tall on desktop, 48 px on phones. */
button, .button { min-height: 44px; font-size: 15px; padding: 10px 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; font-family: var(--gbc-font); font-weight: 500; line-height: 1.2; border-radius: var(--gbc-radius-sm); border: 1px solid var(--jh-button-edge); text-decoration: none; }
.button.primary, button.primary { background: var(--gbc-green); color: #fff; border-color: var(--jh-button-edge); }
.button.primary:hover, button.primary:hover:not(:disabled) { background: var(--gbc-green-hover); }
.button.secondary, button.secondary { background: transparent; color: var(--jh-heading); border-color: var(--jh-button-edge); }
.button.secondary:hover { background: var(--gbc-green-wash); }
a.button, a.button:visited { color: inherit; }
a.button.primary, a.button.primary:visited { color: #fff; }
a.button.secondary, a.button.secondary:visited { color: var(--jh-heading); }
.card .button { margin-top: 8px; }
.actions { margin: 0; }

/* Waiting (Screen Standard section 4): a moving spinner with plain words. */
.wait { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--gbc-ink-soft); padding: 16px 0; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--gbc-line-strong); border-top-color: var(--jh-hash); animation: jh-spin 0.9s linear infinite; }
@keyframes jh-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.5s; } }

/* Phones */
@media (max-width: 640px) {
	body { font-size: 16px; }
	.gbc-head-in { padding: 12px 16px; gap: 14px; }
	.gbc-head-text { padding-left: 14px; }
	.gbc-person { display: none; }
	.page { padding: 28px 16px 48px; }
	.page h1 { font-size: 23px; }
	.page p, .grey-line { font-size: 16px; }
	.card { padding: 24px 20px; }
	.facts .row { flex-direction: column; gap: 2px; }
	.facts dt { flex: none; font-size: 15px; }
	button, .button { min-height: 48px; font-size: 16px; width: 100%; }
}
