/*
  @file Base/element level theming.

  This file sets up default CSS for elements, such as links as
  well as font sizes, vertical rhythm, etc.
*/

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin-top: 0; /* Removing top margin, for better vertical rhythm layout */
}

@media screen and (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--font-size);
  line-height: var(--line-height);
  color: var(--color-text);
}

.dialog-off-canvas-main-canvas {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  /* To give us a sticky footer. */
  margin-bottom: calc(var(--spacing)*3);
}

a {
  color: var(--color-link);
  transition: var(--transition-time);
}

a:hover {
  text-decoration-thickness: max(3px, 0.1875rem, 0.12em);
}

a:focus {
  color: var(--color-black);
  text-decoration: underline;
  outline: 0;
  background-color: var(--color-yellow);
  box-shadow: none;
  -webkit-box-decoration-break: clone;
}
.main a:is(:focus, :hover) {
  background-color: var(--color-yellow);
  color: var(--color-black);
  text-decoration: underline;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6,
.heading {
  margin-bottom: var(--vertical-rhythm-spacing);
  font-family: var(--font-secondary);
}

h1,
.h1 {
  font-family: var(--font-heading-1);
  font-size: var(--font-size-h1);
  line-height: var(--heading-1-line-height);
  font-weight: var(--heading-1-font-weight);
}

h2,
.h2 {
  font-family: var(--font-heading-2);
  font-size: var(--font-size-h2);
  line-height: var(--heading-2-line-height);
  font-weight: var(--heading-2-font-weight);
}

@media screen and (min-width: 48em) {
  h2,
  .h2 {
    font-size: var(--font-size-h2);
  }
}

h3,
.h3 {
  font-family: var(--font-heading-3);
  font-size: var(--font-size-h3);
  line-height: var(--heading-3-line-height);
  font-weight: var(--heading-3-font-weight);
}

@media screen and (min-width: 48em) {
  h2,
  .h2 {
    font-size: var(--font-size-h2);
  }
}

h4,
.h4 {
  font-family: var(--font-heading-4);
  font-size: var(--font-size-h4);
  font-weight: bold;
  line-height: var(--heading-4-line-height);
  font-weight: var(--heading-4-font-weight);
}

h5,
.h5 {
  font-family: var(--font-heading-5);
  font-size: var(--font-size-h5);
  font-variant: small-caps;
  line-height: var(--heading-5-line-height);
  font-weight: var(--heading-5-font-weight);
}

h6,
.h6 {
  text-decoration: underline;
  font-family: var(--font-heading-6);
  font-size: var(--font-size-h6);
  font-variant: small-caps;
  line-height: var(--heading-6-line-height);
  font-weight: var(--heading-6-font-weight);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

p,
ul,
ol,
pre,
table,
blockquote {
  margin-bottom: var(--vertical-rhythm-spacing);
}

ul ul,
ol ol,
ul ol,
ol ul {
  margin-bottom: 0;
}

sub,
sup {
  position: relative;
  vertical-align: baseline;
  line-height: 0;
}

sup {
  top: -0.5rem;
}

sub {
  bottom: -0.25rem;
}

table {
  width: 100%;
  text-align: left;
  border: var(--table-border);
  border-collapse: collapse;
}

thead th {
  padding: var(--table-padding);
  background-color: var(--table-bg-color);
}

tbody td {
  padding: var(--table-padding);
}

tbody tr {
  border-bottom: var(--table-border);
}

input,
select,
option,
textarea,
button {
  font-family: var(--font-primary);
}

.main {
  font-size: var(--font-size-medium);
}

.main.theme--b .layout--threecol-33-34-33 {
  justify-content: space-between;
}
.main.theme--b .layout--threecol-33-34-33 .layout__region {
  height: auto;
}

.node--type-localgov-services-page .field--type-text-with-summary h2 {
  margin-top: 2.5rem;
}

@media screen and (min-width: 48rem) {
  .media-oembed-content {
    width: 30vw;
    height: calc(30vw * 9 / 16);
  }
  .path-frontpage .main{
    font-size: var(--font-size-body);
  }
  .main {
    font-size: var(--font-size-summary);
  }
  .main.theme--b .layout--threecol-33-34-33 .layout__region {
    flex: 0 1 calc(33% - 20px);
    margin-bottom: 20px;
  }
  .main.theme--b .layout--threecol-33-34-33 .layout__region.layout__region--bottom {
    flex: 0 1 100%;
  }
}

.btn.btn-start:not(.page-node-type-localgov-subsites-overview .btn.btn-start) {
  background-color: var(--color-accent);
  color: var(--color-white);
}
.btn.btn-start:focus:not(.page-node-type-localgov-subsites-overview .btn.btn-start) {
  background-color: var(--color-yellow);
  color: var(--color-black);
}

.btn.btn-start:hover:not(.page-node-type-localgov-subsites-overview .btn.btn-start) {
  background-color: var(--color-white);
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn.btn-start.btn-secondary:not(.page-node-type-localgov-subsites-overview .btn.btn-start.btn-secondary) {
  background-color: var(--color-accent-hover);
  color: var(--color-white);
}

.btn.btn-start.btn-secondary:focus:not(.page-node-type-localgov-subsites-overview .btn.btn-start.btn-secondary) {
  background-color: var(--color-yellow);
  color: var(--color-black);
}

.btn.btn-start.btn-secondary:hover:not(.page-node-type-localgov-subsites-overview .btn.btn-start) {
  background-color: var(--color-white);
  color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.btn.btn-start:not(.page-node-type-localgov-subsites-overview .btn.btn-start):hover:after {
  background-image: var(--btn-start-icon--no-bg);
}
.btn.btn-start:not(.page-node-type-localgov-subsites-overview .btn.btn-start):focus:after {
  background-image: var(--btn-start-icon--no-bg);
}

.btn.btn-start:hover:after:not(.page-node-type-localgov-subsites-overview .btn.btn-start:after) {
  background-image: var(--btn-start-icon--no-bg);
}

@media screen and (min-width: 48em) {
  .mobile-only {
    display: none;
  }
}

.node--view-mode-search-result {
  margin-bottom: 20px;
}

.node--view-mode-search-result .node__content {
  display: flex;
}

.node--view-mode-search-result .node__content > div:first-child {
  min-width: 33%;
  margin-right: 20px;
}

.view-display-id-sitewide_search_page .views-row {
  margin-bottom: 10px;
  border-bottom: 2px solid #ccc;
}

.skip-link{
  display: block;
}

.blockquote {
  position: relative;
  padding: 2em;
}

.blockquote:before {
  content: '“';
  position: absolute;
  left: -20px;
  top: -20px;
  font-size: 100px;
  line-height: 1;
  font-family: Arial, serif;
  font-weight: 700;
  color: #D8DCEE;
  pointer-events: none;
}

.blockquote:after {
  content: '”';
  position: absolute;
  right: -20px;
  bottom: -20px;
  font-size: 100px;
  line-height: 1;
  font-family: Arial, serif;
  font-weight: 700;
  color: #D8DCEE;
  pointer-events: none;
}

.views-field-field-news-header-description {
  font-size: var(--font-size-large);
  margin-bottom: var(--vertical-rhythm-spacing);
}