/*
 * CSS Reset
 * Source: https://www.joshwcomeau.com/css/custom-css-reset/
 */

/*
  1. Use a more-intuitive box-sizing model.
*/

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

/*
  2. Remove default margin
*/

* {
  margin: 0;
}

/*
  3. Allow percentage-based heights in the application
*/

html,
body {
  height: 100%;
}

/*
  Typographic tweaks!
  4. Add accessible line-height
  5. Improve text rendering
*/

body {
  line-height: 1.5;
  margin: 0;
  /* -webkit-font-smoothing: antialiased; */
}

/*
  6. Improve media defaults
*/

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/*
  7. Remove built-in form typography styles
*/

input,
button,
textarea,
select {
  font: inherit;
}

/*
  8. Avoid text overflows
*/

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* ------------------------------------- */

/*
  Tailwind Preflight (modified)
/*

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: 700;
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

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

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type="button"]),
input:where([type="reset"]),
input:where([type="submit"]) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

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

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: --var(--disabled-text-color); /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: --var(--disabled-text-color); /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/*
Make elements with the HTML hidden attribute stay hidden by default.
*/

[hidden] {
  display: none;
}

:root {
  /* Color palette: from lightest to darkest */

  --white: #fff;

  /* Neutrals */
  --light-grey-1: #f5f7fa;
  --light-grey-2: #e4e7eb;
  --light-grey-3: #cbd2d9;
  --light-grey-4: #9aa5b1;
  --light-grey-5: #131920;

  --grey-1: #616e7c;
  --grey-2: #52606d;
  --grey-3: #3e4c59;
  --grey-4: #323f4b;
  --grey-5: #1f2933;

  /* Main: Indigo */
  --light-indigo-1: #e0e8f9;
  --light-indigo-2: #bed0f7;
  --light-indigo-3: #98aeeb;
  --light-indigo-4: #7b93db;
  --light-indigo-5: #647acb;

  --indigo-1: #4c63b6;
  --indigo-2: #4055a8;
  --indigo-3: #35469c;
  --indigo-4: #2d3a8c;
  --indigo-5: #19216c;

  /* Main: Reds */
  --light-red-1: #ffe3e3;
  --light-red-2: #ffbdbd;
  --light-red-3: #ff9b9b;
  --light-red-4: #f86a6a;
  --light-red-5: #ef4e4e;

  --red-1: #e12d39;
  --red-2: #cf1124;
  --red-3: #ab091e;
  --red-4: #8a041a;
  --red-5: #610316;

  /* Supporting colors */

  /* Magentas */
  --light-magenta-1: #fdebff;
  --light-magenta-2: #f8c4fe;
  --light-magenta-3: #f48fff;
  --light-magenta-4: #f368fc;
  --light-magenta-5: #ed47ed;

  --magenta-1: #e019d0;
  --magenta-2: #cb10b8;
  --magenta-3: #b30ba3;
  --magenta-4: #960888;
  --magenta-5: #6e0560;

  /* Yellows */
  --light-yellow-1: #fffbea;
  --light-yellow-2: #fff3c4;
  --light-yellow-3: #fce588;
  --light-yellow-4: #fadb5f;
  --light-yellow-5: #f7c948;

  --yellow-1: #f0b429;
  --yellow-2: #de911d;
  --yellow-3: #cb6e17;
  --yellow-4: #b44d12;
  --yellow-5: #8d2b0b;

  /* Greens */
  --light-green-1: #e3f9e5;
  --light-green-2: #c1f2c7;
  --light-green-3: #91e697;
  --light-green-4: #51ca58;
  --light-green-5: #31b237;

  --green-1: #18981d;
  --green-2: #0f8613;
  --green-3: #0e7817;
  --green-4: #07600e;
  --green-5: #014807;

  /*
   * Spacing and typography
   *
   * Borrowed from Tailwind CSS
   * ----------------------------------------------------------------------- */

  /* Spacing Scale */
  --space-px: 1px;
  --space-0_5: 0.125rem; /* 2px */
  --space-1: 0.25rem; /* 4px */
  --space-1_5: 0.375rem; /* 6px */
  --space-2: 0.5rem; /* 8px */
  --space-2_5: 0.625rem; /* 10px */
  --space-3: 0.75rem; /* 12px */
  --space-3_5: 0.875rem; /* 14px */
  --space-4: 1rem; /* 16px */
  --space-5: 1.25rem; /* 20px */
  --space-6: 1.5rem; /* 24px */
  --space-7: 1.75rem; /* 28px */
  --space-8: 2rem; /* 32px */
  --space-9: 2.25rem; /* 36px */
  --space-10: 2.5rem; /* 40px */
  --space-11: 2.75rem; /* 44px */
  --space-12: 3rem; /* 48px */
  --space-14: 3.5rem; /* 56px */
  --space-16: 4rem; /* 64px */
  --space-20: 5rem; /* 80px */
  --space-24: 6rem; /* 96px */
  --space-28: 7rem; /* 112px */
  --space-32: 8rem; /* 128px */
  --space-36: 9rem; /* 144px */
  --space-40: 10rem; /* 160px */
  --space-44: 11rem; /* 176px */
  --space-48: 12rem; /* 192px */
  --space-52: 13rem; /* 208px */
  --space-56: 14rem; /* 224px */
  --space-60: 15rem; /* 240px */
  --space-64: 16rem; /* 256px */
  --space-72: 18rem; /* 288px */
  --space-80: 20rem; /* 320px */
  --space-96: 24rem; /* 384px */

  /* Text sizes */
  --text-2xs: 0.625rem; /* 10px */
  --text-xs: 0.75rem; /* 12px */
  --text-sm: 0.875rem; /* 14px */
  --text-base: 1rem; /* 16px */
  --text-lg: 1.125rem; /* 18px */
  --text-xl: 1.25rem; /* 20px */
  --text-2xl: 1.5rem; /* 24px */
  --text-3xl: 1.875rem; /* 30px */
  --text-4xl: 2.25rem; /* 36px */
  --text-5xl: 3rem; /* 48px */
  --text-6xl: 3.75rem; /* 60px */
  --text-7xl: 4.5rem; /* 72px */
  --text-8xl: 6rem; /* 96px */
  --text-9xl: 8rem; /* 128px */

  /* Line heights */
  --text-2xs-lh: 1rem; /* 16px */
  --text-xs-lh: 1rem; /* 16px */
  --text-sm-lh: 1.25rem; /* 20px */
  --text-base-lh: 1.5rem; /* 24px */
  --text-lg-lh: 1.75rem; /* 28px */
  --text-xl-lh: 1.75rem; /* 28px */
  --text-2xl-lh: 2rem; /* 32px */
  --text-3xl-lh: 2.25rem; /* 36px */
  --text-4xl-lh: 2.5rem; /* 40px */
  --text-5xl-lh: 1;
  --text-6xl-lh: 1;
  --text-7xl-lh: 1;
  --text-8xl-lh: 1;
  --text-9xl-lh: 1;

  /* ----------------------------------------------------------------------- */

  --background-color: var(--white);
  --background-color-accent-1: var(--light-grey-1);
  --background-color-accent-2: var(--light-grey-2);

  --dark: var(--grey-5);
  --light: var(--light-grey-1);

  /*--font-family: 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;*/
  /* --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", sans-serif;

  --text-color: var(--grey-5);
  --light-text-color: var(--grey-2);
  --disabled-text-color: var(--light-grey-4);
  --error-color: var(--light-red-4);
  --link-color: var(--indigo-1);
  --border-radius: 4px;
  --border-color: var(--light-grey-3);
  --border-color-light: var(--light-grey-2);
  --box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  --line-height: calc(1em + 0.725rem);

  --form-input-border-color: var(--light-grey-4);

  --button-bg: var(--indigo-1);
  --button-bg-hover: var(--light-indigo-4);
  --button-bg-secondary: var(--main-indigo);
  --button-color: var(--white);
  --button-border-radius: var(--border-radius);
  --button-padding: var(--space-3) var(--space-4);

  --header-height: var(--space-16);
  --header-padding: 0 var(--space-6);
  --header-bg: var(--background-color-accent-2);

  --footer-bg: var(--light-grey-1);
  --footer-text-color: var(--light-text-color);
  --footer-padding: var(--space-6) var(--space-6);

  --max-content-width: 800px;
  --content-container-max-width: 80ch;
  --content-container-max-width-narrow: calc(var(--space-80) * 2);

  /* "Processing file" overlay styles */
  --processing-color: var(--indigo-5);
  --processing-color-transparent-1: rgba(123, 147, 219, 0.4);
  --processing-color-transparent-2: rgba(123, 147, 219, 0.6);

  --welcome-bg: var(--light-yellow-2);
  --welcome-color: var(--text-color);
}

[data-theme="dark"] {
  /* --dark: #181818; */
  --dark: #111111;
  --light: var(--white);

  --background-color: var(--dark);
  --background-color-accent-1: #202020;
  --background-color-accent-2: #383838;

  --header-bg: var(--background-color);
  --text-color: var(--white);
  --light-text-color: #aaa;
  --disabled-text-color: #717171;
  --border-color: #383838;
  --border-color-light: #212121;

  --footer-bg: #202020;
  --footer-text-color: var(--light-text-color);

  --form-input-border-color: #383838;

  --link-color: var(--yellow-2);

  --button-bg: var(--yellow-4);
  --button-bg-hover: var(--yellow-2);

  /* "Processing file" overlay styles */
  --processing-color: var(--light-yellow-4);
  --processing-color-transparent-1: rgba(222, 145, 29, 0.3);
  --processing-color-transparent-2: rgba(222, 145, 29, 0.6);

  --welcome-bg: var(--light-yellow-3);
  --welcome-color: var(--dark);
}

@custom-media --small-viewport (max-width: 30em);

@media (--small-viewport) {
  /* styles for small viewport */
}

/* @font-face {
  font-family: 'Inter var';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/InterVariable.woff2") format('woff2');
  font-named-instance: 'Regular';
} */

html {
  font-size: 100%;
  font-family: var(--font-family);
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  overscroll-behavior: none;
  transition: color 0.2s, background-color 0.2s;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: var(--line-height);
}

a {
  color: var(--link-color);
  text-decoration: none;
}

p,
ul,
ol {
  line-height: var(--line-height);
}

p {
  margin-bottom: var(--space-6);
}

p:first-child {
    margin-top: 0;
  }

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

button {
  padding: 0;
  background: none;
  outline: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
}

/* Scrollbars */

* {
  scrollbar-width: thin;
  scrollbar-color: var(--background-color-accent-2) var(--background-color);
}

/* Works on Chrome/Edge/Safari */

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: var(--background-color);
}

*::-webkit-scrollbar-thumb {
  background-color: var(--background-color-accent-2);
  border-radius: 8px;
  border: none;
}

::-webkit-scrollbar-corner {
  background: var(--background-color);
}

[data-tooltip] {
  position: relative;
}

[data-tooltip]:before {
    display: none;
    transition: opacity 1s ease-in-out;
    bottom: 100%;
    left: var(--space-1);
    padding: var(--space-2);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background: var(--background-color-accent-2);
    line-height: var(--line-height);
    content: attr(data-tooltip);
    position: absolute;
    z-index: 1000;
  }

[data-tooltip]:hover:before {
    display: block;
  }

/* Turbo */

turbo-frame,
turbo-cable-stream-source {
  display: contents;
}

p > code,
li > code,
a > code {
  padding: var(--space-1) var(--space-1_5);
  margin: 0;
  font-size: 85%;
  white-space: break-spaces;
  background-color: var(--background-color-accent-2);
  border-radius: 6px;
}

.pagination {
  margin: 0 auto;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.pagination .current {
    background-color: var(--background-color-accent-2);
  }

.pagination span {
    padding: var(--space-1) var(--space-3);
    border: 1px solid var(--background-color-accent-2);
    margin-right: 0.25rem;
    text-align: center;
  }

.breadcrumbs {
  margin-bottom: var(--space-10);
  overflow: hidden;
}

.breadcrumbs .breadcrumbs-container {
    overflow-x: hidden;
  }

.breadcrumbs ol {
    display: flex;
    align-items: center;
    font-size: var(--text-xs);
    overflow-x: auto;
  }

.breadcrumbs li {
    display: flex;
    align-items: center;
    white-space: nowrap;
  }

.breadcrumbs .breadcrumb::after {
    content: "/";
    padding: 0 0.5rem;
    color: rgba(0, 0, 0, 0.2);
    font-size: 12px;
  }

.breadcrumbs .breadcrumb:last-child::after {
    content: "" !important;
    padding: 0;
  }

/* For Webkit-based browsers (Chrome, Safari and Opera) */

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* For IE, Edge and Firefox */

.scrollbar-hide {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/*
 * Page layout
 */

.page-wrapper {
  max-width: var(--max-content-width);
  margin: 0 auto;
  display: grid;
  grid-template-areas:
    "header header header"
    "content content content"
    "footer footer footer";
  grid-gap: var(--space-6);
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

.page-header {
  grid-area: header;
  padding: var(--space-6) var(--space-8);
}

.page-content {
  grid-area: content;
  padding: 0 var(--space-8);
  min-width: 0;
}

.page-footer {
  grid-area: footer;
  padding: var(--space-10) var(--space-8);
}

.flashes {
}

.flash {
  text-align: center;
  padding: var(--space-2);
  margin: var(--space-6) 0;
  font-size: var(--text-sm);
  border-radius: var(--border-radius);
}

.flash--alert {
  background-color: var(--light-red-2);
  color: var(--red-5);
}

.flash--notice {
  background-color: var(--light-yellow-3);
  color: var(--yellow-5);
}

.btn {
  display: inline-block;
  text-align: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}

.btn--fw {
  width: 100%;
}

.btn--primary {
  background: var(--indigo-1);
  border: 1px var(--indigo-1) solid;
  color: var(--white);
}

.btn--primary:hover {
    background: var(--indigo-2);
  }

.btn--secondary {
  background: var(--yellow-3);
  border: 1px var(--yellow-3) solid;
  color: var(--white);
}

.btn--secondary:hover {
    background: var(--yellow-4);
  }

.btn--tertiary {
  background: transparent;
  color: var(--indigo-1);
  border: 1px var(--indigo-1) solid;
}

.btn--danger {
  background: var(--red-1);
  border: 1px var(--red-1) solid;
  color: var(--white);
}

.btn--danger:hover {
    background: var(--red-2);
  }

.form-error {
  color: var(--error-color);
  text-align: center;
  margin-bottom: var(--space-6);
}

.form-field {
  margin-bottom: var(--space-6);
}

.form-field label {
    margin-bottom: var(--space-1);
  }

.form-field--with-errors input {
    border: 1px var(--error-color) solid;
  }

.form-field__error {
  color: var(--error-color);
  font-size: var(--text-sm);
}

.form-actions {
  margin-bottom: var(--space-4);
}

label {
  display: block;
  font-weight: 500;
  line-height: 1.2;
}

.label--plain {
  font-weight: inherit;
}

[type="text"],
[type="password"],
[type="search"],
[type="email"],
[type="number"],
[type="url"],
[type="tel"],
textarea,
select {
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: var(--text-md);
  padding: var(--space-2) var(--space-4);
  transition: all 0.2s ease-in-out;
  outline: 0;
  display: block;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  width: 100%;
}

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

textarea {
  height: auto;
  min-height: 100px;
  padding-top: 1rem !important;
}

[type="text"]:focus,
[type="password"]:focus,
[type="search"]:focus,
[type="email"]:focus,
[type="url"]:focus,
[type="tel"]:focus,
[type="number"]:focus,
textarea:focus,
select:focus,
input[type="radio"]:focus,
input[type="checkbox"]:focus {
  outline: none;
  border-color: var(--indigo-1) !important;
}

.login-form,
.signup-form {
  margin: var(--space-6) auto;
  padding: var(--space-6);
  max-width: 400px;
  background-color: var(--background-color-accent-1);
  border-radius: 12px;
}

/*
 * Page header styles
 */

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-header__group {
}

.page-header__user-nav {
  display: flex;
}

.page-header__user-nav li {
    margin-left: var(--space-4);
  }

.block { display: block !important; }

.hidden    { display: none; }

.invisible { visibility: hidden; }

.overflow-hidden { overflow: hidden; }

.overflow-x-hidden { overflow-x: hidden; }

/* For IE, Edge and Firefox */

.scrollbar-hide {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */

  /* For Webkit-based browsers (Chrome, Safari and Opera) */
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
  }

.w-full { width: 100% !important; }

/* Flex */

.flex { display: flex; }

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

.justify-between { justify-content: space-between; }

.gap-6 { gap: var(--space-6); }

/* Spacing */

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

.mt-0\\.5 { margin-top: var(--space-0.5); }

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

.mt-1\\.5 { margin-top: var(--space-1.5); }

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

.mt-2\\.5 { margin-top: var(--space-2.5); }

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

.mt-3\\.5 { margin-top: var(--space-3.5); }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Typography */

.text-2xs  { font-size: var(--text-2xs);  line-height: var(--text-2xs-lh); }

.text-xs   { font-size: var(--text-xs);   line-height: var(--text-xs-lh); }

.text-sm   { font-size: var(--text-sm);   line-height: var(--text-sm-lh); }

.text-base { font-size: var(--text-base); line-height: var(--text-base-lh); }

.text-lg   { font-size: var(--text-lg);   line-height: var(--text-lg-lh); }

.text-xl   { font-size: var(--text-xl);   line-height: var(--text-xl-lh); }

.text-2xl  { font-size: var(--text-2xl);  line-height: var(--text-2xl-lh); }

.text-3xl  { font-size: var(--text-3xl);  line-height: var(--text-3xl-lh); }

.text-4xl  { font-size: var(--text-4xl);  line-height: var(--text-4xl-lh); }

.text-5xl  { font-size: var(--text-5xl);  line-height: var(--text-5xl-lh); }

.text-6xl  { font-size: var(--text-6xl);  line-height: var(--text-6xl-lh); }

.text-7xl  { font-size: var(--text-7xl);  line-height: var(--text-7xl-lh); }

.text-8xl  { font-size: var(--text-8xl);  line-height: var(--text-8xl-lh); }

.text-9xl  { font-size: var(--text-9xl);  line-height: var(--text-9xl-lh); }

.text-light { color: var(--light-text-color); }

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

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

.font-thin	{ font-weight: 100; }

.font-extralight { font-weight: 200; }

.font-light	{ font-weight: 300; }

.font-normal { font-weight: 400; }

.font-medium { font-weight: 500; }

.font-semibold { font-weight: 600; }

.font-bold { font-weight: 700; }

.font-extrabold	{ font-weight: 800; }

.font-black	{ font-weight: 900; }

/* Lists */

.ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.ul li {
    position: relative;
  }

.ul li::before {
      content: "•";
      font-feature-settings: "case","tnum";
      left: -1.8em;
      position: absolute;
      text-align: right;
      top: 0;
      width: 1.4em;
    }

.ol {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: decimal inside none;
}

/* Media queries */

.show-m {
  display: none;
}

@media (min-width: 768px) {

.show-m {
    display: block;
}
  }

.show-m--flex {
  display: none !important;
}

@media (min-width: 768px) {

.show-m--flex {
    display: flex !important;
}
  }

.color-text {
  color: var(--text-color);
}

.page-body p {
    word-break: break-word;
  }

.page-body h2 {
    margin-top: var(--space-12);
    margin-bottom: var(--space-2);
    font-size: var(--text-2xl);
    font-weight: bold;
  }

.page-body h3 {
    margin-top: var(--space-12);
    margin-bottom: var(--space-2);
    font-size: var(--text-xl);
    font-weight: bold;
  }

.page-body blockquote {
    padding: 0 var(--space-4);
    border-left: 3px solid var(--light-indigo-2);
    margin-top: var(--space-6);
    margin-bottom: var(--space-6);
    font-style: italic;
  }

.page-body figure {

    margin: var(--space-6) 0;
  }

.page-body figure.bleed {
      max-width: 100% !important;
    }

.page-body figure img {
      display: block;
      max-width: 100%;
      height: auto;
      margin: 0 auto;
      padding: var(--space-2);
      background-color: var(--background-color-accent-2);
    }

.page-body figure figcaption {
      margin: var(--space-2);
      color: var(--light-text-color);
      text-align: center;
      font-size: var(--text-sm);
    }

.page-body ul {
    margin: var(--space-6) 0;
    list-style-type: disc;
  }

.page-content h1 {
  font-weight: bold;
  font-size: var(--text-3xl);
}
