@import '_gds.css';
@import 'cookie-control.css';

[data-grid-columns="1"] { --grid-cols: 1 }
[data-grid-columns="2"] { --grid-cols: 2 }
[data-grid-columns="3"] { --grid-cols: 3 }
[data-grid-columns="4"] { --grid-cols: 4 }
[data-grid-columns="5"] { --grid-cols: 5 }
[data-grid-columns="6"] { --grid-cols: 6 }
[data-grid-columns="7"] { --grid-cols: 7 }
[data-grid-columns="8"] { --grid-cols: 8 }
[data-grid-columns="9"] { --grid-cols: 9 }
[data-grid-columns="10"] { --grid-cols: 10 }
[data-grid-columns="11"] { --grid-cols: 11 }
[data-grid-columns="12"] { --grid-cols: 12 }

[data-col-span] {
  --col-span: var(--grid-cols, 1);
}

@media (min-width: 320px) {
  [data-col-span="1"] { --col-span: 6 }
  [data-col-span="2"] { --col-span: 6 }
  [data-col-span="3"] { --col-span: 6 }
  [data-col-span="4"] { --col-span: 12 }
  [data-col-span="5"] { --col-span: 12 }
  [data-col-span="6"] { --col-span: 12 }
  [data-col-span="7"] { --col-span: 12 }
  [data-col-span="8"] { --col-span: 12 }
  [data-col-span="9"] { --col-span: 12 }
  [data-col-span="10"] { --col-span: 12 }
  [data-col-span="11"] { --col-span: 12 }
  [data-col-span="12"] { --col-span: 12 }
}

@media (min-width: 480px) {
  [data-col-span="1"] { --col-span: 6 }
  [data-col-span="2"] { --col-span: 6 }
  [data-col-span="3"] { --col-span: 6 }
  [data-col-span="4"] { --col-span: 6 }
  [data-col-span="5"] { --col-span: 6 }
  [data-col-span="6"] { --col-span: 12 }
  [data-col-span="7"] { --col-span: 12 }
  [data-col-span="8"] { --col-span: 12 }
  [data-col-span="9"] { --col-span: 12 }
  [data-col-span="10"] { --col-span: 12 }
  [data-col-span="11"] { --col-span: 12 }
  [data-col-span="12"] { --col-span: 12 }
}

@media (min-width: 768px) {
  [data-col-span="1"] { --col-span: 4 }
  [data-col-span="2"] { --col-span: 4 }
  [data-col-span="3"] { --col-span: 4 }
  [data-col-span="4"] { --col-span: 4 }
  [data-col-span="5"] { --col-span: 4 }
  [data-col-span="6"] { --col-span: 6 }
  [data-col-span="7"] { --col-span: 8 }
  [data-col-span="8"] { --col-span: 8 }
  [data-col-span="9"] { --col-span: 8 }
  [data-col-span="10"] { --col-span: 8 }
  [data-col-span="11"] { --col-span: 8 }
  [data-col-span="12"] { --col-span: 12 }
}

@media (min-width: 1080px) {
  [data-col-span="1"] { --col-span: 1 }
  [data-col-span="2"] { --col-span: 2 }
  [data-col-span="3"] { --col-span: 3 }
  [data-col-span="4"] { --col-span: 4 }
  [data-col-span="5"] { --col-span: 5 }
  [data-col-span="6"] { --col-span: 6 }
  [data-col-span="7"] { --col-span: 7 }
  [data-col-span="8"] { --col-span: 8 }
  [data-col-span="9"] { --col-span: 9 }
  [data-col-span="10"] { --col-span: 10 }
  [data-col-span="11"] { --col-span: 11 }
  [data-col-span="12"] { --col-span: 12 }
}

[data-row-span="1"] { --row-span: 1 }
[data-row-span="2"] { --row-span: 2 }
[data-row-span="3"] { --row-span: 3 }
[data-row-span="4"] { --row-span: 4 }
[data-row-span="5"] { --row-span: 5 }
[data-row-span="6"] { --row-span: 6 }
[data-row-span="7"] { --row-span: 7 }
[data-row-span="8"] { --row-span: 8 }
[data-row-span="9"] { --row-span: 9 }
[data-row-span="10"] { --row-span: 10 }
[data-row-span="11"] { --row-span: 11 }
[data-row-span="12"] { --row-span: 12 }

.block-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols, 1), minmax(0, 1fr));
  grid-auto-rows: minmax(50px, min-content);
}

.block-grid,
.block-grid > .block {
  position: relative;
  grid-column-end: span min(calc(var(--col-span, 1) * 3), var(--grid-cols, 1));
  grid-row-end: span var(--row-span, 1);
}

@media (min-width: 1024px) {
  .block-grid {
    grid-column-end: span var(--col-span, 1);
    grid-auto-rows: auto;
  }

  .block-grid > .block {
    grid-column-end: span min(var(--col-span, 1), var(--grid-cols, 1));
  }
}

.block-grid.align-top {
  align-content: start;
}

.block-grid.align-centre {
  align-content: center;
}

.block-grid.align-bottom {
  align-content: end;
}

.block[data-align="top"],
.block[data-align="start"] {
  align-self: start;
}

.block[data-align="middle"],
.block[data-align="center"],
.block[data-align="centre"] {
  align-self: center;
}

.block[data-align="bottom"],
.block[data-align="end"] {
  align-self: end;
}

.block[data-justify="left"] {
  justify-self: left;
}

.block[data-justify="start"] {
  justify-self: start;
}

.block[data-justify="middle"],
.block[data-justify="center"],
.block[data-justify="centre"] {
  justify-self: center;
}

.block[data-justify="right"] {
  justify-self: right;
}

.block[data-justify="end"] {
  justify-self: end;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local(''), url('../typefaces/inter-v12-latin-regular.woff2') format('woff2'), url('../typefaces/inter-v12-latin-regular.woff') format('woff');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local(''), url('../typefaces/inter-v12-latin-700.woff2') format('woff2'), url('../typefaces/inter-v12-latin-700.woff') format('woff');
}

@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local(''), url('../typefaces/fira-code-v21-latin-regular.woff2') format('woff2'), url('../typefaces/fira-code-v21-latin-regular.woff') format('woff');
}

html {
  font-family: Inter, Helvetica, Arial, sans-serif;
  font-weight: 400;
}

code, pre, kbd, samp {
  font-family: 'Fira Code', monospace;
  font-weight: 400;
}

* {
  box-sizing: border-box;
}

.screen-reader-text {
  border: none;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
}

body#tinymce {
  margin: 1rem;
}

hr {
  height: 0;
  border: solid currentColor;
  border-width: 0 0 1px;
  margin: 1rem auto;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-colour, inherit);
}

p:empty {
  display: none;
}

img {
  max-width: 100%;
}

img:not([src*=".svg?"]):not([src$=".svg"])[height] {
  height: auto !important;
}

picture {
  display: inline-block;
}

picture > img,
figure > img,
a > img:only-of-type {
  display: block;
}

figure {
  margin: 0;
  display: inline-block;
}

figcaption {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  text-align: right;
  line-height: 2;
  color: var(--dark-grey);
}

iframe {
  border: none;
}

iframe:focus,
body:focus {
  outline: none;
}

:where(ol, ul):is(.menu, .submenu) {
  list-style: none;
  margin: 0;
  padding: 0;
}

:where(ol, ul):not(:is(.menu, .submenu)) > li:not(:last-child) {
  margin-bottom: 0.5em;
}

:where(thead, tbody) th {
  background-color: var(--blue);
  color: white;
}

th, td, td:last-child {
  padding: 0.5rem;
}

audio, video {
  display: block;
  width: 100%;
}

video {
  aspect-ratio: 16/9;
}

input:not(:is([type="button"], [type="reset"], [type="submit"], [type="radio"], [type="checkbox"])), select {
  max-width: 100%;
  min-width: 15rem;
}

.left {
  text-align: left;
}

img.left, picture.left, audio.left, video.left {
  display: block;
  margin: 0 auto 1rem;
}

@media (min-width: 1024px) {
  img.left, picture.left, audio.left, video.left {
    float: left;
    margin: 0 1rem 0.5rem 0;
  }
}

table.left {
  margin-left: 0px;
  margin-right: auto;
}

.right {
  text-align: right;
}

img.right, picture.right, audio.right, video.right {
  display: block;
  margin: 0 auto 1rem;
}

@media (min-width: 1024px) {
  img.right, picture.right, audio.right, video.right {
    float: right;
    margin: 0 0 0.5rem 1rem;
  }
}

table.right {
  margin-left: auto;
  margin-right: 0px;
}

.center {
  text-align: center;
}

img.center, picture.center, audio.center, video.center {
  display: block;
  margin: 0 auto;
}

table.center {
  margin: 0 auto;
}

.full {
  text-align: justify;
}

img.full, picture.full, audio.full, video.full {
  display: block;
  margin: 0 auto;
}

table.full {
  margin: 0 auto;
}

code {
  font-size: 0.875em;
  display: inline-block;
  padding: 0 3px;
  border-radius: 1px;
}

code,
.umb-rte code[data-mce-selected="inline-boundary"] {
  background-color: #f5f2f0;
  outline: 3px solid #f5f2f0;
  color: #2d2d2d;
}

pre > code:only-child {
  display: block;
  padding: 1rem;
  margin: 1rem 0;
  overflow-x: auto;
}

@media (prefers-color-scheme: dark) {
  code,
  .umb-rte code[data-mce-selected="inline-boundary"] {
    background-color: #2d2d2d;
    outline: 3px solid #2d2d2d;
    color: #e5e2e0;
  }
}

ul {
  list-style: disc;
  margin: 1rem 0;
}

ul[data-horizontal] {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

[data-style="arabic"] {
  list-style: decimal;
}

[data-style="roman"] {
  list-style: lower-roman;
}

[data-style="alpha"] {
  list-style: lower-alpha;
}

[data-style="disc"] {
  list-style: disc;
}

[data-style="circle"] {
  list-style: circle;
}

[data-style="square"] {
  list-style: square;
}
/* 
 This file composes part of the core LocalGov Umbraco package. 
 If you intend to include upstream changes, it is advised to not edit directly, but override any styles in a separate file. 
*/

.block.padding-small {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.block.padding-medium {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.block.padding-large {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.block.margin-small {
  margin-bottom: 1rem;
}

.block.margin-medium {
  margin-bottom: 3rem;
}

.block.margin-large {
  margin-bottom: 5rem;
}

.block.align-top > .inner > .block-grid {
  align-items: start;
}

.block.align-centre > .inner > .block-grid {
  align-items: center;
}

.block.align-bottom > .inner > .block-grid {
  align-items: end;
}

@media (max-width: 1023px) {
  .block.spacer {
    display: none;
  }
}

.block.fixed-width-row {
  padding-left: 1rem;
  padding-right: 1rem;
}

.block.fixed-width-row .block-grid {
  gap: 1rem;
}

@media (min-width: 600px) {
  .block.fixed-width-row.gap-small .block-grid {
    gap: 1rem;
  }

  .block.fixed-width-row.gap-medium .block-grid {
    gap: 2rem;
  }

  .block.fixed-width-row.gap-large .block-grid {
    gap: 3rem;
  }
}

.block.hero .hero-wrapper {
  position: relative;
  color: var(--primary-contrast, var(--gds--white, white));
  background-color: var(--primary, var(--gds--black, black));
}

.block.hero a:link:not(:focus) {
  color: inherit;
}

.block.hero .content {
  padding: 1rem;
}

.block.hero .content > .inner {
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .block.hero {
    --hero-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 100' preserveAspectRatio='none'%3E%3Cpolygon points='0,0 50,50 0,100'/%3E%3C/svg%3E");
  }

  .block.hero .hero-wrapper {
    display: flex;
    gap: 2rem;
  }

  .block.hero .image-left {
    flex-direction: row;
  }

  .block.hero .image-right {
    flex-direction: row-reverse;
  }

  .block.hero picture {
    position: relative;
    flex: 1 1 50%;
  }

  .block.hero img {
    height: 100% !important;
    width: 100%;
    object-fit: cover;
    aspect-ratio: auto;
  }

  .block.hero .content {
    position: relative;
    flex: 1 1 50%;
    display: flex;
  }

  .block.hero .image-left .content {
    justify-content: start;
  }

  .block.hero .image-right .content {
    justify-content: end;
  }

  .block.hero .content > .inner {
    align-self: center;
    max-width: calc((var(--max-width, var(--gds--max-width, 100vw)) / 2) - 2rem);
  }

  .block.hero .hero-wrapper:after {
    content: '';
    display: block;
    position: absolute;
    height: 100%;
    width: 4rem;
    background: inherit;
    z-index: 50;
    left: 50%;
    -webkit-mask: var(--hero-mask) no-repeat center left;
    mask: var(--hero-mask) no-repeat center left;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }

  .block.hero .image-left:after {
    transform: translateX(calc(-100% - 1rem)) scale(-1, 1);
  }

  .block.hero .image-right:after {
    transform: translateX(1rem);
  }
}

.block.responsive-image *:is(a, figure, picture) {
  display: block;
}

.block.responsive-image *:is(a, figure) {
  height: 100%;
}

.block.responsive-image picture > img {
  margin: auto;
}

.block.responsive-image a:any-link:not(:focus) {
  color: var(--primary-contrast, var(--gds-white, white));
  text-decoration: none;
  box-shadow: none;
}

.block.responsive-image a figure {
  display: flex;
  flex-direction: column;
}

.block.responsive-image a picture:not(:last-child) img {
  width: 100%;
}

.block.responsive-image a figcaption {
  color: inherit;
  background-color: var(--primary, var(--gds-dark-blue, black));
  text-align: center;
  padding: 0.5rem 1rem;
  font-weight: 700;
  text-decoration: none !important;
  margin: 0;
  font-size: inherit;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.block.responsive-image a:focus figcaption {
  background: none;
}

.block.info-box {
  border: 1px solid var(--medium-grey, var(--gds-mid-grey, #b1b4b6));
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.block.info-box .heading {
  margin: 0;
}

.block.info-box .menu {
  margin-top: auto;
}

.block.rss-feed article {
  display: flex;
  gap: 1rem;
}

.block.rss-feed article img {
  display: block;
  flex: 0;
  max-width: 200px;
}

.block.rss-feed article .inner {
  flex: 1;
}

.block.rss-feed article .heading {
  margin-bottom: 1rem;
}

.block.rss-feed .categories ul {
  display: inline;
  list-style: none;
  margin: 0;
  padding: 0;
}

.block.rss-feed .categories li {
  display: inline;
}

.block.rss-feed .categories li:where(:not(:last-child):after) {
  content: ',';
}

.block.rss-feed .article-archive {
  margin-top: 1rem;
}

.block.video iframe {
  width: 100%;
  aspect-ratio: 16/9;
}
