/*! normalize.css v3.0.1 | MIT License | git.io/normalize */
html {
  font-family: sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary {
  display: block;
}

audio, canvas, progress, video {
  display: inline-block;
  vertical-align: baseline;
}

audio:not([controls]) {
  display: none;
  height: 0;
}

[hidden], template {
  display: none;
}

a {
  background: transparent;
}

a:active, a:hover {
  outline: 0;
}

abbr[title] {
  border-bottom: 1px dotted;
}

b, strong {
  font-weight: bold;
}

dfn {
  font-style: italic;
}

h1 {
  font-size: 2em;
  margin: .67em 0;
}

mark {
  background: #ff0;
  color: #000;
}

small {
  font-size: 80%;
}

sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

img {
  border: 0;
}

svg:not(:root) {
  overflow: hidden;
}

figure {
  margin: 1em 40px;
}

hr {
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  height: 0;
}

pre {
  overflow: auto;
}

code, kbd, pre, samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

button, input, optgroup, select, textarea {
  color: inherit;
  font: inherit;
  margin: 0;
}

button {
  overflow: visible;
}

button, select {
  text-transform: none;
}

button, html input[type="button"], input[type="reset"], input[type="submit"] {
  -webkit-appearance: button;
  cursor: pointer;
}

button[disabled], html input[disabled] {
  cursor: default;
}

button::-moz-focus-inner, input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

input {
  line-height: normal;
}

input[type="checkbox"], input[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

input[type="search"] {
  -webkit-appearance: textfield;
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
}

input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: .35em .625em .75em;
}

legend {
  border: 0;
  padding: 0;
}

textarea {
  overflow: auto;
}

optgroup {
  font-weight: bold;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td, th {
  padding: 0;
}

@media only screen and (min-width: 0) {
  *, *:before, *:after {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
  }

  html, body {
    width: 100%;
    min-width: 296px;
    height: 100%;
  }

  body {
    color: #222;
    background: url("/static/img/handmadepaper.png");
    font-family: Arial, sans-serif;
  }

  body > header, body > main, body > footer {
    display: block;
    width: 100%;
  }

  body > header {
    height: 48px;
    background: #222;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.5);
  }

  body > header > nav {
    position: relative;
    top: 0;
    color: #eee;
    padding: 0 .25em;
    line-height: 48px;
  }

  body > header > nav a#menu-icon {
    display: inline-block;
    text-decoration: none;
    color: #eee;
    padding: 8px .5em;
    vertical-align: bottom;
  }

  body > header > nav a#menu-icon img {
    height: 32px;
    display: block;
  }

  body > header > nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
  }

  body > header > nav ul li a, body > header > nav a#current-language {
    display: inline-block;
    text-decoration: none;
    color: #eee;
    font-weight: bold;
  }

  body > header > nav ul li a {
    padding: 0 1em;
    width: 100%;
  }

  body > header > nav ul li a:hover, body > header > nav a#current-language:hover {
    color: #08C;
    text-decoration: none;
  }

  body > header > nav a#current-language {
    position: absolute;
    right: 0;
  }

  body > header > nav ul.menu, body > header > nav ul.languages {
    position: absolute;
    background: #222;
    display: none;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.5);
  }

  body > header > nav ul.menu li, body > header > nav ul.languages li {
    border-top: 1px solid #1a1a1a;
  }

  body > header > nav ul.menu li:first-child, body > header > nav ul.languages li:first-child {
    border-top: 1px solid #090909;
  }

  body > header > nav ul.menu {
    left: 0;
    border-bottom-right-radius: 3px;
  }

  body > header > nav ul.languages {
    right: 0;
    border-bottom-left-radius: 3px;
  }

  body > header > nav a#current-language, body > header > nav ul.languages li a {
    padding: 0 1em;
    font-size: .8em;
  }

  body > header > nav span.pipe {
    display: none;
  }

  body > header > nav div.fb-like {
    display: inline-block;
    margin: 0 .5em;
    position: relative;
    top: -1em;
  }

  body > main {
    text-align: center;
  }

  body > main > section {
    margin: 0 .5em;
  }

  body > footer {
    height: 48px;
    text-align: center;
    color: #222;
  }

  body > img.loading {
    display: none;
  }

  h1, h2 {
    color: #222;
    text-shadow: 0 1px 1px white;
    margin: 1em 0;
  }

  h1 span, h2 span {
    color: #08C;
  }

  a {
    color: #08C;
    text-decoration: none;
  }

  a:hover {
    text-decoration: underline;
  }

  div.scroll-top {
    width: 2em;
    height: 2em;
    padding: .25em .5em;
    font-size: 1.5em;
    right: 16px;
    bottom: 24px;
    background: rgba(34, 34, 34, 0.5);
    color: white;
    position: fixed;
    cursor: pointer;
    display: none;
    vertical-align: middle;
    border-radius: 2em;
    box-shadow: 0 6px 8px -4px rgba(0, 0, 0, 0.5);
  }

  div.scroll-top:hover {
    color: #222;
  }

  div.row {
    display: block;
  }

  div.cell {
    display: inline-block;
    width: 49%;
  }

  section.search {
    margin-bottom: 2em;
  }

  section.search input[name="q"] {
    width: 100%;
    max-width: 20em;
    padding: .75em 1em .75em 2.5em;
    outline: 0;
    border-top: 1px solid #909090;
    border-left: 1px solid #AAA;
    border-right: 1px solid #AAA;
    border-bottom: 1px solid #c3c3c3;
    border-radius: 2em;
    box-shadow: inset 0 3px 6px -3px rgba(0, 0, 0, 0.5);
    background-color: white;
    background-image: url("/static/img/search.svg");
    background-position: 4px 5px;
    background-size: 32px;
    background-repeat: no-repeat;
  }

  section.search div.results {
    padding: 1em 0;
    margin: 2em 0 1em;
    border-top: 1px dashed #AAA;
    border-bottom: 1px dashed #AAA;
  }

  section.search div.results table {
    margin: 1em 0;
    width: 100%;
    border-top: 1px solid #eee;
    font-size: .7em;
  }

  section.search div.results table tbody tr:nth-child(odd) {
    background: rgba(238, 238, 238, 0.5);
  }

  section.search div.results table th {
    padding: 2em .25em 1em;
    text-align: left;
  }

  section.search div.results table td {
    padding: 1em .25em;
    text-align: left;
  }

  section.search div.results table td.settlement-heading {
    padding: 0 .25em;
  }

  section.search div.results div.show-more {
    margin-top: 1em;
    display: inline-block;
    background: #222;
    color: white;
    padding: .67em 1em;
    cursor: pointer;
    border: 1px solid black;
    border-radius: 2em;
  }

  section.search div.results.hidden {
    display: none;
  }

  section.search img.loading {
    display: block;
    margin: 0 auto;
    width: 128px;
    height: 128px;
    background: url("/static/img/loading.svg");
    background-size: 100%;
    background-repeat: no-repeat;
    animation: spin 1s steps(12) infinite;
  }

  @-moz-keyframes spin {
    100% {
      -moz-transform: rotate(360deg);
    }
  }

  @-webkit-keyframes spin {
    100% {
      -webkit-transform: rotate(360deg);
    }
  }

  @keyframes spin {
    100% {
      -webkit-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }

  section.ads {
    margin-top: 2em;
  }

  .ad-slot { display: block; margin-bottom: 0.5em; }
  .ad-slot:last-child { margin-bottom: 0; }
  .ad-slot--left { text-align: left; }
  .ad-slot--center { text-align: center; }
  .ad-slot--right { text-align: right; }
  .ad-text-link { color: #08C; text-decoration: underline; }
  .ad-text-link:hover { text-decoration: none; }

  section.ads.hidden,
  aside.ads.hidden {
    display: none !important;
  }

  .main-with-sidebars {
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
    margin: 0 0.5em;
  }

  .main-with-sidebars .main-content {
    flex: 1 1 0;
    min-width: 0;
  }

  .main-with-sidebars .ads-sidebar-left,
  .main-with-sidebars .ads-sidebar-right {
    flex: 0 0 auto;
    width: 160px;
    margin-top: 1em;
  }

  .main-with-sidebars .ads-sidebar-left {
    order: -1;
    margin-right: 0.5em;
  }

  .main-with-sidebars .ads-sidebar-right {
    margin-left: 0.5em;
  }

  section.ads.ads-top {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0.5em 1em;
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  section.ads.ads-top .cms-ads-text,
  section.ads.ads-top .cms-ads-banner {
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center !important;
  }

  section.ads.ads-top .ad-slot,
  section.ads.ads-top .ad-text,
  section.ads.ads-top .ad-text-link {
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center !important;
  }

  section.ads.ads-top .ad-slot--left,
  section.ads.ads-top .ad-slot--right {
    text-align: center !important;
  }

  section.ads.ads-footer {
    width: 100%;
    box-sizing: border-box;
    margin: 1em 0.5em 0;
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  section.ads.ads-footer .cms-ads-text,
  section.ads.ads-footer .cms-ads-banner {
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center !important;
  }

  section.ads.ads-footer .ad-slot,
  section.ads.ads-footer .ad-text,
  section.ads.ads-footer .ad-text-link {
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center !important;
  }

  section.ads.ads-footer .ad-slot--left,
  section.ads.ads-footer .ad-slot--right {
    text-align: center !important;
  }

  section.ads.ads-mid {
    text-align: center !important;
  }

  section.ads.ads-mid .cms-ads-text,
  section.ads.ads-mid .cms-ads-banner {
    text-align: center !important;
  }

  section.ads.ads-mid .ad-slot,
  section.ads.ads-mid .ad-slot--left,
  section.ads.ads-mid .ad-slot--right,
  section.ads.ads-mid .ad-text,
  section.ads.ads-mid .ad-text-link {
    text-align: center !important;
  }

  .ads-sidebar .ad-table img {
    max-height: 200px;
  }

  @media (max-width: 767px) {
    .main-with-sidebars .ads-sidebar-left,
    .main-with-sidebars .ads-sidebar-right {
      width: 100%;
      order: 0;
    }
  }

  section.ads div.ad-table img {
    margin: .25em 0;
    vertical-align: middle;
    max-width: 100%;
    max-height: 128px;
  }

  section.content {
    margin-bottom: 2em;
  }

  section.catalog div.cell {
    padding-bottom: 1em;
    vertical-align: top;
    line-height: 2em;
  }

  section.catalog div.breadcrumbs {
    margin-bottom: 1em;
    padding: .5em;
  }

  section.catalog div.breadcrumbs a {
    color: #08C;
  }

  section.catalog a {
    color: #444;
  }

  section.catalog a.county {
    font-weight: bold;
  }

  div.map-container {
    position: relative;
    margin: 1em auto 0;
    width: 100%;
    padding-bottom: 56.25%;
  }

  div.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }

  section.blog {
    margin-bottom: 2em;
  }

  section.blog article {
    padding: 0 .5em 1em;
    line-height: 1.5em;
  }

  section.blog article main {
    text-align: left;
  }

  section.blog article main img.image {
    margin: 0 auto;
    width: 80%;
    max-width: 360px;
    display: block;
  }

  section.blog article main ul {
    list-style-position: inside;
  }

  section.blog article main iframe {
    width: 100%;
    height: 240px;
  }
}

@media only screen and (min-width: 768px) {
  body > main > section {
    margin: 0 1em;
  }

  body > header > nav a#menu-icon {
    display: none;
  }

  body > header > nav ul li a {
    padding: 0 .5em;
    width: auto;
  }

  body > header > nav ul.menu {
    display: inline-block;
    position: static;
    border: 0;
    box-shadow: none;
  }

  body > header > nav ul.menu li {
    display: inline;
    border-top: 0;
  }

  body > header > nav ul.menu li:first-child {
    border-top: 0;
  }

  body > header > nav ul.languages {
    border-bottom-right-radius: 3px;
  }

  body > header > nav span.pipe {
    display: inline;
  }

  div.scroll-top {
    font-size: 2em;
    right: 32px;
    bottom: 48px;
  }

  div.cell {
    width: 24.5%;
  }

  section.search div.results table {
    font-size: 1em;
  }

  section.search div.results table th {
    padding: 1em .25em .5em;
    text-align: left;
  }

  section.search div.results table td {
    padding: .5em .25em;
    text-align: left;
  }

  div.map-container {
    width: 720px;
    height: 405px;
    padding: 0;
  }

  section.blog article {
    padding: 0 1em 1em;
  }

  section.blog article main img.image {
    margin: 16px;
    display: inline;
    float: left;
  }

  section.blog article main iframe {
    width: 480px;
    height: 320px;
  }
}

@media only screen and (min-width: 1024px) {
  body > header > nav {
    width: 1000px;
    margin: 0 auto;
  }

  body > main > section {
    width: 1000px;
    margin: 0 auto;
  }

  section.blog article main iframe {
    width: 720px;
    height: 480px;
  }
}

/* Ad centering: top, mid, footer - applied last so they always win */
section.ads.ads-top,
section.ads.ads-footer,
section.ads.ads-mid {
  width: 100% !important;
  box-sizing: border-box !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

section.ads.ads-top .cms-ads-text,
section.ads.ads-top .cms-ads-banner,
section.ads.ads-footer .cms-ads-text,
section.ads.ads-footer .cms-ads-banner,
section.ads.ads-mid .cms-ads-text,
section.ads.ads-mid .cms-ads-banner {
  display: block !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

/* Injected ad wrappers: shrink to content and center (fixes centered alignment in top/footer) */
section.ads.ads-top .ad-slot,
section.ads.ads-top .ad-text,
section.ads.ads-top .ad-text-link,
section.ads.ads-footer .ad-slot,
section.ads.ads-footer .ad-text,
section.ads.ads-footer .ad-text-link {
  width: fit-content !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

section.ads.ads-top .ad-slot,
section.ads.ads-top .ad-slot--left,
section.ads.ads-top .ad-slot--right,
section.ads.ads-top .ad-text,
section.ads.ads-top .ad-text-link,
section.ads.ads-footer .ad-slot,
section.ads.ads-footer .ad-slot--left,
section.ads.ads-footer .ad-slot--right,
section.ads.ads-footer .ad-text,
section.ads.ads-footer .ad-text-link,
section.ads.ads-mid .ad-slot,
section.ads.ads-mid .ad-slot--left,
section.ads.ads-mid .ad-slot--right,
section.ads.ads-mid .ad-text {
  text-align: center !important;
}
