/* Phone layout for the static copy. Desktop (768px and up) is untouched: every rule sits inside this query. */
.wds-mobilebar { display: none; }

@media (max-width: 767px) {
	body { -webkit-text-size-adjust: 100%; }
	#bg_top, #bg_bottom { background: none; display: block; }
	#container, #banner, #menu_field, #frame, #frame .frame { width: auto; }
	#container > div[style*="width: 1024px"] { width: auto !important; }

	/* Logo: the left of bg_top.jpg (logo spans x 30-570, y 15-110), scaled to the screen width. */
	#banner {
		height: 0;
		padding-top: 17.6%;
		margin: 8px 12px 0;
		background: url('../image/bg_top.jpg') no-repeat;
		background-size: 189.6% auto;
		background-position: 6.2% 3.5%;
	}

	/* Strapline and phone: baked into the desktop header image, real text here. */
	.wds-mobilebar {
		display: flex; align-items: center; justify-content: space-between; gap: 8px;
		margin: 8px 12px 0; color: #fff; font-size: 12px; font-weight: bold; letter-spacing: 1px; text-transform: uppercase;
	}
	.wds-mobilebar a, .wds-mobilebar a:visited {
		flex: none; color: #fff; background: #C11420; text-decoration: none; letter-spacing: 0;
		padding: 10px 12px; border-radius: 3px; font-size: 14px; white-space: nowrap;
	}

	/* Menu: wraps to fit, no hover dropdowns (each section page links its sub-pages). */
	#menu_field { height: auto; margin: 10px 12px 0; overflow: hidden; }
	#menu { float: none; width: auto; height: auto; margin: 0; background: #0b1130; border-radius: 3px; }
	.nav.left { display: flex !important; flex-wrap: wrap; white-space: normal !important; float: none; }
	.nav > li { flex: 1 1 auto; width: auto !important; float: none; background: none !important; }
	.nav > li + li { border-left: 1px solid #222c5a; }
	.nav .top { padding: 13px 8px; font-size: 13px; white-space: nowrap; }
	.nav li ul { display: none !important; }
	#menu_field .c, #menu_field .h { display: none; }

	/* Home slideshow: scale the fixed 1024x375 frames. */
	#frame { height: auto; margin: 10px 12px 0; }
	#frame .frame { height: auto; padding-top: 0; }
	#frame .frame > div { position: relative; width: 100% !important; height: auto !important; aspect-ratio: 1024 / 375; overflow: hidden; }
	#frame .frame > div > div { width: 100% !important; height: 100% !important; }
	#frame .frame img { width: 100% !important; height: auto !important; display: block; }

	/* Content column: full width; the right column only holds an empty Latest News box. */
	#column_right { display: none; }
	#content { margin: 16px 12px 10px; }
	#content h1, .heading { font-size: 22px; line-height: 1.2; }
	#content .top .center { padding-left: 0 !important; }
	#content .middle { padding: 8px 0 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
	#content .middle img { max-width: 100%; height: auto !important; }
	#content .middle img[style*="float"] { float: none !important; display: block; width: auto !important; margin: 10px auto !important; }
	#content table { max-width: 100%; }
	#content input[type="text"], #content textarea { width: 100% !important; box-sizing: border-box; font-size: 16px; padding: 8px; }
	#content .middle td[style*="width: 50%"] { display: block; width: auto !important; }

	#content .top td:first-child { white-space: nowrap; }
	#content .button { background: #C11420; border-radius: 3px; padding: 0; margin: 0; }
	#content .button span { background: none; padding: 10px 22px; font-size: 15px; }

	/* Footer: the desktop panel is a 1024px background image. */
	#footer { box-sizing: border-box; padding: 24px 12px 32px; background: #0a0f2b; margin-top: 16px; }
	#footermenu a { display: inline-block; padding: 8px 6px; font-size: 14px; }
}
