:root {
  --backdrop: #e3e7eb;
  --frame: #b3c0cc;
  --sheet: #f5f7f9;
  --ink: #232d36;
  --ink-soft: #56636f;
  --box: #ffffff;
  --box-line: #d0d8e0;
  --bar: #3a6286;
  --bar-top: #3f688c;
  --bar-ink: #ffffff;
  --heading: #335a7c;
  --link: #2a5f92;
  --call: #a63a32;
  --call-deep: #8e2f28;
  --call-dark: #74241e;
  --rule: #dfe5eb;
  --tint: #edf1f5;
  --shadow: 0 1px 2px rgba(28, 45, 62, 0.06), 0 3px 10px rgba(28, 45, 62, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 0 calc(76px + env(safe-area-inset-bottom, 0px));
  background: var(--backdrop);
  color: var(--ink);
  font-family: Verdana, Tahoma, "DejaVu Sans", Geneva, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

a {
  color: var(--link);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--call);
}

a[href^="tel:"] {
  white-space: nowrap;
}

a:focus-visible {
  outline: 2px solid var(--bar);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--box);
  border: 1px solid var(--frame);
  border-radius: 6px;
}

.skip:focus {
  top: 8px;
}

.page {
  width: 100%;
  background: var(--sheet);
}

/* Banner */

.banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 16px 18px;
  background: var(--box);
  border-bottom: 1px solid var(--box-line);
  text-align: center;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.crest {
  display: block;
  width: 100%;
  max-width: 300px;
  line-height: 0;
}

.crest-art {
  display: block;
  width: 100%;
  height: auto;
}

.tagline {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.banner-call {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.banner-hours {
  font-size: 14px;
  color: var(--ink-soft);
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 10px 20px;
  font-family: Tahoma, Verdana, "DejaVu Sans", sans-serif;
  font-weight: bold;
  line-height: 1.3;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 2px solid var(--bar);
  outline-offset: 3px;
}

.btn-call,
.btn-call:visited {
  color: #ffffff;
  background: var(--call);
  border-color: var(--call-deep);
  font-size: 17px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 1px 2px rgba(60, 20, 16, 0.25), 0 3px 8px rgba(60, 20, 16, 0.16);
}

.btn-call:hover {
  color: #ffffff;
  background: var(--call-deep);
}

.btn-call:active {
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2), 0 1px 1px rgba(60, 20, 16, 0.2);
}

.btn-home,
.btn-home:visited {
  color: var(--ink);
  background: var(--tint);
  border-color: var(--frame);
  font-size: 15px;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(28, 45, 62, 0.12), 0 3px 8px rgba(28, 45, 62, 0.08);
}

.btn-home:hover {
  color: var(--ink);
  background: #e3e9ef;
}

.btn-home:active {
  box-shadow: inset 0 1px 2px rgba(28, 45, 62, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

/* Section links */

.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  padding: 10px 16px;
  background: var(--tint);
  border-bottom: 1px solid var(--box-line);
  font-family: Tahoma, Verdana, "DejaVu Sans", sans-serif;
  font-size: 15px;
  line-height: 1.4;
}

.menu a,
.menu a:visited {
  padding: 4px 0;
  color: var(--heading);
  font-weight: bold;
  text-decoration: none;
}

.menu a:hover {
  color: var(--call);
  text-decoration: underline;
}

/* Content boxes */

.layout {
  display: grid;
  gap: 20px;
  padding: 20px 12px 28px;
}

.panel {
  min-width: 0;
  background: var(--box);
  border: 1px solid var(--box-line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.panel-bar {
  margin: 0;
  padding: 11px 16px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(var(--bar-top), var(--bar));
  color: var(--bar-ink);
  font-family: "Trebuchet MS", Tahoma, Verdana, sans-serif;
  font-size: 19px;
  font-weight: bold;
  line-height: 1.35;
}

.panel-body {
  padding: 18px 16px 20px;
}

.panel-body > :first-child {
  margin-top: 0;
}

.panel-body > :last-child {
  margin-bottom: 0;
}

.panel-body h2,
.panel-body h3 {
  margin: 0 0 6px;
  font-family: "Trebuchet MS", Tahoma, Verdana, sans-serif;
  font-size: 18px;
  line-height: 1.4;
  color: var(--heading);
}

.panel-body h2::before,
.panel-body h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  vertical-align: 2px;
  background: var(--call);
  border-radius: 2px;
}

.panel-body p {
  margin: 0 0 14px;
}

hr {
  height: 0;
  margin: 20px 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

.facts {
  margin: 0;
}

.facts dt {
  font-size: 14px;
  font-weight: bold;
  color: var(--heading);
}

.facts dd {
  margin: 2px 0 16px;
}

.facts dd:last-child {
  margin-bottom: 0;
}

address {
  font-style: normal;
}

.suburbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.suburbs li {
  padding: 7px 12px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 6px;
}

.suburbs li::before {
  content: "\203A";
  margin-right: 8px;
  font-weight: bold;
  color: var(--call);
}

.updated {
  font-size: 14px;
  color: var(--ink-soft);
}

/* Footer */

.colophon {
  padding: 24px 16px;
  background: var(--tint);
  border-top: 1px solid var(--box-line);
  color: var(--ink-soft);
  font-size: 14px;
  text-align: center;
}

.colophon p {
  margin: 0 0 6px;
}

.colophon p:last-child {
  margin-bottom: 0;
}

.colophon-name {
  font-family: "Trebuchet MS", Tahoma, Verdana, sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: var(--heading);
}

.colophon-email {
  overflow-wrap: anywhere;
}

/* Call bar for phones */

.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--box-line);
  box-shadow: 0 -2px 10px rgba(28, 45, 62, 0.1);
}

.callbar .btn {
  display: block;
  text-align: center;
}

/* Wider screens */

@media (min-width: 560px) {
  .layout {
    padding: 24px 16px 32px;
  }

  .suburbs {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

@media (min-width: 800px) {
  body {
    padding: 32px 20px 40px;
  }

  .page {
    max-width: 1040px;
    margin: 0 auto;
    border: 1px solid var(--frame);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(28, 45, 62, 0.06), 0 12px 32px rgba(28, 45, 62, 0.1);
  }

  .banner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 22px 28px;
    border-radius: 7px 7px 0 0;
    text-align: left;
  }

  .brand {
    align-items: flex-start;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .banner-call {
    flex: none;
    align-items: flex-end;
    text-align: right;
  }

  .menu {
    justify-content: flex-start;
    gap: 4px 32px;
    padding: 10px 28px;
  }

  .layout {
    grid-template-columns: 340px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    padding: 28px 28px 36px;
  }

  .layout > .panel {
    grid-column: 2;
  }

  .layout > .panel-side {
    grid-column: 1;
    grid-row: 1 / span 4;
  }

  .layout-single {
    grid-template-columns: minmax(0, 1fr);
  }

  .layout-single > .panel {
    grid-column: 1;
  }

  .panel-bar {
    padding: 12px 22px;
  }

  .panel-body {
    padding: 22px 22px 24px;
  }

  .colophon {
    padding: 28px;
    border-radius: 0 0 7px 7px;
  }

  .callbar {
    display: none;
  }

  .facts dd:first-of-type {
    white-space: nowrap;
  }

  .facts .colophon-email {
    font-size: 15px;
  }
}
