/* ============================================================

Site: Smart Justice
Stylesheet: Main

============================================================ */
/*
This file is used to contain all abstracts imports.
Files inside this folder can contain abstract settings, helpers or functions. They have no direct output.
*/
/* Stylesheet: Fonts */
/* Stylesheet: Mixins */
/* Stylesheet: Variables */
:root {
  --size-100: 0.8rem;
  --size-200: 1rem;
  --size-300: 1.125rem;
  --size-400: 1.35rem;
  --size-500: 2.125rem;
  --size-600: 3rem;
  --size-700: 3.75rem;
  --size-800: 4.5rem;
  --size-900: 7rem;
  --space-xxs: clamp(0.25rem, calc(0.18rem + 0.37vw), 0.44rem);
  --space-xs: clamp(0.5rem, calc(0.38rem + 0.61vw), 0.81rem);
  --space-sm: clamp(0.75rem, calc(0.55rem + 0.98vw), 1.25rem);
  --space-rg: clamp(1rem, calc(0.76rem + 1.22vw), 1.63rem);
  --space-md: clamp(1.5rem, calc(1.13rem + 1.83vw), 2.44rem);
  --space-lg: clamp(2rem, calc(1.51rem + 2.44vw), 3.25rem);
  --space-xl: clamp(3rem, calc(2.27rem + 3.66vw), 4.88rem);
  --space-xxl: clamp(4rem, calc(3.02rem + 4.88vw), 6.5rem);
  --space-xxxl: clamp(6rem, calc(4.54rem + 7.32vw), 9.75rem);
  --clr-orange: hsl(32, 93%, 54%);
  --clr-red: hsl(354, 73%, 43%);
  --neutral-100: hsl(0, 0%, 100%);
  --neutral-200: hsl(240, 6%, 90%);
  --neutral-300: hsl(240, 6%, 70%);
  --neutral-400: hsl(240, 6%, 60%);
  --neutral-500: hsl(240, 6%, 50%);
  --neutral-600: hsl(240, 6%, 40%);
  --neutral-700: hsl(240, 6%, 30%);
  --neutral-800: hsl(240, 6%, 20%);
  --neutral-900: hsl(240, 6%, 10%);
  --ff-heading: "Bebas Neue", Arial, sans-serif;
  --ff-body: "Work Sans", Arial, sans-serif;
  --ff-serif: museo-slab, serif;
  --fw-100: 100;
  --fw-200: 200;
  --fw-300: 300;
  --fw-400: 400;
  --fw-500: 500;
  --fw-600: 600;
  --fw-700: 700;
  --fw-800: 800;
  --fw-900: 900;
  --fs-xs: clamp(0.78rem, 0.84rem + -0.29vw, 0.63rem);
  --fs-sm: clamp(0.94rem, 0.97rem + -0.18vw, 0.84rem);
  --fs-rg: clamp(1.13rem, 1.13rem + 0vw, 1.13rem);
  --fs-lg: clamp(1.35rem, 1.29rem + 0.29vw, 1.5rem);
  --fs-h4: clamp(1.62rem, 1.47rem + 0.74vw, 2rem);
  --fs-h3: clamp(1.94rem, 1.66rem + 1.41vw, 2.66rem);
  --fs-h2: clamp(2.33rem, 1.86rem + 2.38vw, 3.55rem);
  --fs-h1: clamp(2.8rem, 2.04rem + 3.78vw, 4.74rem);
  --radius: 1em;
  --radius-xs: calc(var(--radius) / 4);
  --radius-sm: calc(var(--radius) / 2);
  --radius-rg: var(--radius);
  --radius-md: calc(var(--radius) * 2);
  --radius-lg: calc(var(--radius) * 4);
  --shadow-01: 0px 2px 4px rgba(37, 37, 37, 0.1);
  --shadow-02: 0px 4px 8px rgba(37, 37, 37, 0.1);
  --shadow-03: 0px 8px 16px rgba(37, 37, 37, 0.1);
  --shadow-04: 0px 16px 24px rgba(37, 37, 37, 0.1);
  --shadow-05: 0px 24px 32px rgba(37, 37, 37, 0.1);
  --speed-instant: 100ms;
  --speed-fast: 250ms;
  --speed-normal: 500ms;
  --speed-slow: 750ms;
}

/* Stylesheet: Functions */
/*
This file is used to contain all base imports.
Files inside this folder can contain global styles used in the project.
*/
/* Stylesheet: Reset */
/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role=list],
ol[role=list] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  -webkit-text-decoration-skip: ink;
          text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* Stylesheet: Typography */
h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4 {
  font-family: var(--ff-heading);
  line-height: 1;
}

.h1,
.entry-title {
  font-size: var(--fs-h1);
  font-weight: var(--fw-300);
  letter-spacing: 5px;
}

h2,
.h2,
.sub-title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-sm);
}

h3,
.h3,
.sub-heading {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-sm);
}

h4,
.h4,
.small-heading {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-xs);
}

h5,
.h5,
.xs-heading {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-xs);
}

a {
  text-decoration: none;
}

p,
li {
  font-size: var(--fs-rg);
}

p.large {
  font-size: var(--fs-lg);
}

p.small {
  font-size: var(--fs-sm);
}

p a,
.entry-content li a {
  color: var(--clr-primary);
  font-weight: var(--fw-600);
  text-decoration: none;
  display: inline;
  padding-bottom: 2px;
  transition: all 0.25s linear;
  background: linear-gradient(to right, var(--clr-primary) 0%, var(--clr-primary) 100%);
  background-size: 0px 2px;
  background-repeat: no-repeat;
  background-position: left 100%;
}
p a:hover,
.entry-content li a:hover {
  background-size: 100% 2px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry-content ul li {
  margin-left: 1.25rem;
  position: relative;
  margin-top: var(--space-xxs);
}
.entry-content ul li::before {
  content: "";
  background: currentColor;
  border-radius: 50%;
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  position: absolute;
  top: 0.35em;
  margin-right: 0.6rem;
  margin-left: -1.25rem;
}

ol {
  counter-reset: my-awesome-counter;
  margin: 0;
  list-style: none;
  padding: 0 0 0 1.75rem;
}

ol li {
  counter-increment: my-awesome-counter;
  position: relative;
}

ol li::before {
  content: counter(my-awesome-counter) ".";
  font-weight: var(--fw-600);
  position: absolute;
  left: -1.75rem;
}

/* Stylesheet: Animations */
/*
This file is used to contain all component imports.
Files inside this folder should contain all styles relating to a reusable component.
*/
/* Stylesheet: Banner */
/* Stylesheet: Elements */
.btn {
  padding: var(--size-100) var(--size-400);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10ch;
  min-height: 44px;
  font-family: var(--ff-heading);
  font-size: var(--fs-rg);
  font-weight: var(--fw-400);
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: all var(--speed-slow) ease-in-out;
  border: 1px solid var(--clr-secondary);
  background-color: var(--neutral-100);
  color: var(--clr-secondry);
}
.btn:hover {
  background-color: var(--clr-secondary);
  color: var(--neutral-100);
  transition: all var(--speed-slow) ease-in-out;
}

.btn-white {
  padding: var(--size-100) var(--size-400);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10ch;
  min-height: 44px;
  font-family: var(--ff-heading);
  font-size: var(--fs-rg);
  font-weight: var(--fw-400);
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: all var(--speed-slow) ease-in-out;
  border: 1px solid var(--clr-secondary);
  background-color: var(--neutral-100);
  color: var(--clr-secondry);
}
.btn-white:hover {
  background-color: var(--clr-secondary);
  color: var(--neutral-100);
  transition: all var(--speed-slow) ease-in-out;
}

.wp-block-button__link,
.wp-block-file__button {
  padding: var(--size-100) var(--size-400);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10ch;
  min-height: 44px;
  font-family: var(--ff-heading);
  font-size: var(--fs-rg);
  font-weight: var(--fw-400);
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: all var(--speed-slow) ease-in-out;
  border: 1px solid var(--clr-secondary);
  background-color: var(--neutral-100);
  color: var(--clr-secondry);
  padding: var(--size-100) var(--size-400) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid var(--clr-secondary) !important;
  background-color: var(--neutral-100) !important;
  color: var(--clr-secondary) !important;
  margin-top: var(--space-rg);
}
.wp-block-button__link:hover,
.wp-block-file__button:hover {
  background-color: var(--clr-secondary);
  color: var(--neutral-100);
  transition: all var(--speed-slow) ease-in-out;
}
.wp-block-button__link:hover,
.wp-block-file__button:hover {
  background-color: var(--clr-secondary) !important;
  color: var(--neutral-100) !important;
}

.flow > * + * {
  margin-top: 1em;
}

.flow-large > * + * {
  margin-top: 2em;
}

.full-width {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  display: grid;
}

.text-center {
  text-align: center;
}

.h-center {
  margin-inline: auto;
}

.v-center {
  margin-block: auto;
}

.flex-center {
  align-self: center;
}

.mt-lg {
  margin-top: var(--space-lg);
}

.bg-secondary {
  background-color: var(--clr-secondary);
}

.red {
  color: var(--clr-red);
}

.orange {
  color: var(--clr-orange);
}

/* Stylesheet: Popup */
/* Stylesheet: Blocks */
.call-out-red {
  background: var(--clr-red);
  padding: 2rem;
  color: var(--neutral-100);
}

.call-out-orange {
  background: var(--clr-orange);
  padding: 2rem;
  color: var(--neutral-100);
}

.call-out-grey {
  background: var(--neutral-200);
  padding: 2rem;
  color: var(--neutral-900);
}

.wp-block-group__inner-container > * + * {
  margin-top: 1em;
}

/* Stylesheet: Carousel */
ul.wp-block-post-template {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 70%;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  anchor-name: --carousel;
  scroll-marker-group: after;
}
@media (min-width: 48.875em) {
  ul.wp-block-post-template {
    grid-auto-columns: 62%;
  }
}
@media (min-width: 60em) {
  ul.wp-block-post-template {
    grid-auto-columns: 28%;
  }
}
ul.wp-block-post-template::scroll-marker-group {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
}
ul.wp-block-post-template > li {
  scroll-snap-align: center;
}
ul.wp-block-post-template > li::scroll-marker {
  content: " ";
  width: 12px;
  height: 12px;
  aspect-ratio: 1/1;
  border-radius: 100%;
  border: 2px solid var(--clr-primary);
}
ul.wp-block-post-template > li::scroll-marker:target-current {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
}
ul.wp-block-post-template::scroll-button(*) {
  position: fixed;
  position-anchor: --carousel;
  margin: -1rem;
  border: 0;
  background-color: var(--clr-primary);
  color: var(--neutral-100);
  border-radius: 50%;
  height: 30px;
  width: 30px;
  padding: 0.5em 1em 0.5em 0.75em;
  font-weight: 900;
  cursor: pointer;
}
@media (min-width: 48.875em) {
  ul.wp-block-post-template::scroll-button(*) {
    margin: 1rem;
  }
}
ul.wp-block-post-template::scroll-button(right) {
  content: ">";
  position-area: center right;
}
ul.wp-block-post-template::scroll-button(left) {
  content: "<";
  position-area: center left;
}
ul.wp-block-post-template .xs-heading a {
  color: var(--clr-primary);
}
ul.wp-block-post-template .xs-heading a:hover {
  color: var(--clr-primary-dark);
}
ul.wp-block-post-template .post-thumbnail img {
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  aspect-ratio: 1/1;
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
}

h2.wp-block-post-title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-400);
}
h2.wp-block-post-title a {
  color: var(--clr-primary);
}
h2.wp-block-post-title a:hover {
  color: var(--clr-primary-dark);
}

.wp-block-post-featured-image img {
  aspect-ratio: 16/10;
  margin-bottom: var(--space-xs);
}

/*
This file is used to contain all layout imports.
Files inside this folder can contain specific element styles and layout. 
*/
/* Stylesheet: Site */
html,
body {
  margin: 0 auto;
  font-family: var(--ff-body);
  font-size: 100%;
  line-height: 1.4;
  color: var(--neutral-800);
}

.site {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

.full {
  --gap: clamp(2rem, 6vw, 3rem);
  --narrow: min(60ch, 100% - var(--gap) * 2);
  --full: minmax(var(--gap), 1fr);
  --content: minmax(0, 12rem);
  --breakout: minmax(0, 20rem);
  --wide: minmax(0, 28rem);
  display: grid;
  grid-template-columns: [full-start] var(--full) [wide-start] var(--wide) [breakout-start] var(--breakout) [content-start] var(--content) [narrow-start] var(--narrow) [narrow-end] var(--content) [content-end] var(--breakout) [breakout-end] var(--wide) [wide-end] var(--full) [full-end];
  row-gap: var(--space-xxl);
}

.full > .full {
  row-gap: var(--space-rg);
}

.home .full > .full {
  row-gap: var(--space-rg);
}

.full > * {
  grid-column: full;
}

.content {
  grid-column: content;
}

.wide {
  grid-column: wide;
}

.breakout {
  grid-column: breakout;
}

.narrow {
  grid-column: narrow;
}

.site-main {
  margin-block: var(--space-lg);
}

.site-footer {
  background: linear-gradient(180deg, rgb(247, 145, 29) 0%, rgb(190, 30, 46) 75%);
  padding: 4rem;
}

/* Stylesheet: Header */
.site-header {
  height: auto;
  padding-block: 0 var(--space-lg);
  background-image: url(/wp-content/uploads/football-pitch.jpg);
  background-repeat: no-repeat;
  background-size: cover;
}

.site-branding {
  display: grid;
  justify-content: center;
  row-gap: var(--space-rg);
}

.custom-logo-link {
  display: block;
  margin: 0 auto;
  min-width: 140px;
  width: 200px;
  max-width: 35vw;
  transition: 350ms ease-in-out;
}
.custom-logo-link:hover {
  scale: 1.015;
  transition: 350ms ease-in-out;
}

.site-title {
  font: 0/0 serif;
  text-shadow: none;
  color: transparent;
}

.site-description {
  font-size: var(--fs-h4);
  font-weight: var(--fw-700);
  color: var(--neutral-100);
  line-height: 1.2;
  max-width: 50ch;
  text-align: center;
  padding-inline: 1rem;
  filter: drop-shadow(0 0 2px var(--neutral-900));
}

/* Stylesheet: Sidebar */
/* Stylesheet: Form */
/* Stylesheet: Footer */
/*
This file is used to contain all pages imports. 
*/
/* Stylesheet: Page */
.entry-title {
  text-align: center;
}

/* Stylesheet: Post */
/* Stylesheet: Home */
/* Stylesheet: Contact */