/* Small repairs for the static copy; the original desktop design is retained. */
#header > a { display: flow-root; text-decoration: none; }
#content img { max-width: calc(100% - 20px); }
.form-notice { border-left: 3px solid #880f10; padding: 10px 12px; background: #f2f2f2; }
.buttons input:disabled { cursor: not-allowed; opacity: 0.55; }
form li:focus-within { background: #e6edf7; }
form li:focus-within > .instruct { visibility: visible; }
a:focus-visible, input:focus-visible { outline: 2px solid #880f10; outline-offset: 3px; }

/* Keep the existing branding readable on narrower screens. */
@media (max-width: 959px) {
  #wrapper { width: 100%; margin-bottom: 0; min-height: 0; background-position: center top; }
  #header { width: calc(100% - 40px); }
  #header span.companyname { width: 100%; font-size: clamp(28px, 5.7vw, 47px); line-height: 1.05; }
  #header span.strapline { padding-top: 6px; }
  #navigation { padding-left: 24px; width: 180px; }
  #navigation ul { width: 180px; }
  #content { width: calc(100% - 252px); padding-right: 24px; }
  .push { height: 0; }
  #footer { height: auto; min-height: 170px; }
  #footer-content { padding: 0 20px 24px; }
}

@media (max-width: 600px) {
  body { font-size: 0.875em; }
  #wrapper { background-size: auto 200px; }
  #header { height: 210px; }
  #header span.companyname { margin-top: 112px; }
  #header span.strapline { font-size: 0.9em; }
  #navigation { float: none; padding: 0 20px; width: auto; margin-bottom: 24px; }
  #navigation ul { float: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; width: auto; }
  #navigation ul li { float: none; width: auto; padding-bottom: 12px; background-position: left bottom; }
  #navigation ul li a { float: none; font-size: 1.3em; }
  #navigation ul li span.navigation-supplement { font-size: 0.9em; line-height: 1.3; margin-top: 3px; }
  #content { float: none; width: auto; padding: 0 20px 32px; margin-bottom: 0; overflow-wrap: break-word; }
  form li { width: auto; padding-right: 9px; }
  form .instruct { display: none; }
  input.text { box-sizing: border-box; font-size: 16px; min-height: 32px; padding: 4px; }
  #footer #footer-content span.footer-companyname { font-size: 1.45em; padding-top: 28px; }
  #footer #footer-content span.footer-telephone { font-size: 1.25em; }
  #footer #footer-content span.footer-email { font-size: 1.2em; overflow-wrap: anywhere; }
}
