/**
 * Base on: https://github.com/jenil/chota
 */

:root {
  --bg-color: #fff;
  --bg-secondary-color: #e9ecef;

  --color-primary: #0d6efd;
  --color-secondary: #6c757d;
  --color-light: #d2d6dd;
  --color-dark: #3f4144;
  --color-error: #dc3545;
  --color-success: #198754;
  --color-border: #dee2e6;
  --color-placeholder: #bdbfc4;

  --border-radius: 0.5em;
  --card-border-radius: 0.75em;
  --grid-gutter: 2em;

  --font-size: 1em;
  --font-color: #212529;
  --font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  color-scheme: light dark;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/*
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #212529;
    --bg-secondary-color: #343a40;
    --font-color: #dee2e6;
    --color-secondary: #bbbbbb;
    --color-dark: #808080;
    --color-border: #495057;
  }
}
*/

html {
  box-sizing: border-box;
  font-size: var(--font-size);
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  background-color: var(--bg-color);
  line-height: 1.6;
  font-size: var(--font-size);
  color: var(--font-color);
  font-family: var(--font-sans-serif);
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  margin: 0.35rem 0 0.7rem;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.85rem;
}

header {
  display: flex;
  flex-flow: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.675rem;
}

small {
  font-size: 0.85rem;
  color: var(--color-secondary);
}

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

a:hover:not(.button) {
  opacity: 0.75;
  text-decoration: underline;
}

button {
  font-family: inherit;
}

p {
  margin-top: 0;
  opacity: 0.8;
  font-size: 0.875rem;
}

blockquote {
  background-color: var(--bg-secondary-color);
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--color-border);
}

menu {
  padding: 0.785rem 0.785rem;
}

menu li {
  list-style: none;
}

dl dt {
  font-weight: 700;
}

dl dd {
  margin-left: 0;
}

hr {
  border: none;
  background-color: var(--color-light);
  height: 1px;
  margin: 1rem 0;
}

table {
  width: 100%;
  border: none;
  border-collapse: collapse;
  border-spacing: 0;
  text-align: left;
}

table.striped tr:nth-of-type(2n) {
  background-color: var(--bg-secondary-color);
}

td,
th {
  vertical-align: middle;
  padding: 1.2rem 0.4rem;
}

thead {
  border-bottom: 2px solid var(--color-light);
}

tfoot {
  border-top: 2px solid var(--color-light);
}

code,
kbd,
pre,
samp,
tt {
  font-family: var(--font-mono);
}

code,
kbd {
  font-size: 0.9rem;
  white-space: pre-wrap;
  border-radius: var(--border-radius);
  padding: 0.2rem 0.4rem;
  background-color: var(--bg-secondary-color);
  color: var(--color-error);
}

pre {
  background-color: var(--bg-secondary-color);
  font-size: 1rem;
  padding: 1rem;
  overflow-x: auto;
}

pre code {
  background: none;
  padding: 0;
}

abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
}

img {
  max-width: 100%;
}

fieldset {
  border: 1px solid var(--color-border);
}

iframe {
  border: 0;
}

fieldset {
  padding: 0.5rem 2rem;
}

legend {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1rem;
}

details.dropdown {
  position: relative;
  display: inline-block;
}

details.dropdown> :last-child {
  position: absolute;
  left: 0;
  white-space: nowrap;
}

dialog {
  border-radius: var(--card-border-radius);
  background-color: var(--bg-color);
  color: var(--font-color);
}

.container,
.container-fluid {
  margin: 0 auto;
  width: 100%;
  padding: 0 calc(var(--grid-gutter) / 2);
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

label {
  line-height: 200%;
}

input:not([type="checkbox"], [type="radio"], [type="submit"], [type="color"], [type="button"], [type="reset"]),
select,
textarea {
  font-family: inherit;
  padding: 0.375rem 0.875rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  font-size: 1rem;
  transition: all 0.2s ease;
  display: inline-block;
  width: 100%;
  background-color: var(--bg-color);
  color: var(--font-color);
}

textarea {
  resize: vertical;
}

input[type="checkbox"],
input[type="radio"],
input[type="range"],
progress {
  accent-color: var(--color-primary);
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-size: 1ex;
  background-origin: content-box;
  background: url("data:image/svg+xml,%3Csvg width='16' height='16' fill='none' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.146 6.354a.5.5 0 0 0 .708 0L8 3.207l3.146 3.147a.5.5 0 0 0 .708-.708l-3.5-3.5a.5.5 0 0 0-.708 0l-3.5 3.5a.5.5 0 0 0 0 .708Zm0 3.292a.5.5 0 0 1 .708 0L8 12.793l3.146-3.147a.5.5 0 0 1 .708.708l-3.5 3.5a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 0 1 0-.708Z' fill='%23D9D9D9'/%3E%3C/svg%3E") no-repeat calc(100% - 0.25rem) 50%;
}

select[multiple] {
  background: none;
}

select > option {
  border-radius: var(--border-radius);
  border-color: transparent;
  background: transparent;
  padding: 10px;
  color: var(--font-color);
}

[type="button"],
[type="reset"],
[type="submit"],
button {
  padding: 0.5rem 1.5rem;
  color: var(--color-dark);
  background: var(--color-light);
  border-radius: var(--border-radius);
  border: 1px solid transparent;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
  transition: opacity 0.2s ease;
  text-decoration: none;
  display: flex;
  fill-opacity: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
}

button.primary,
button.secondary,
button.dark,
button.error,
button.success,
[type="submit"] {
  color: #fff;
  z-index: 1;
  background-color: #000;
  background-color: var(--color-primary);
}

[type="button"]:hover,
[type="reset"]:hover,
[type="submit"]:hover,
button:hover {
  filter: brightness(0.9);
}

button.full {
  width: 100%;
}

input:disabled,
input:disabled:hover,
button:disabled,
button:disabled:hover {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.grouped {
  display: flex;
  flex-flow: row;
  gap: 0 1rem;
  align-items: center;
  justify-content: space-evenly;
}

input:not([type="checkbox"], [type="radio"], [type="submit"], [type="color"], [type="button"], [type="reset"], :disabled):hover,
select:hover,
textarea:hover,
textarea[type="text"]:hover {
  border-color: var(--color-secondary);
}

input:not([type="checkbox"], [type="radio"], [type="submit"], [type="color"], [type="button"], [type="reset"]):focus,
select:focus,
textarea:focus,
textarea[type="text"]:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 6px var(--color-light);
}

input.error:not([type="checkbox"], [type="radio"], [type="submit"], [type="color"], [type="button"], [type="reset"]),
textarea.error {
  border-color: var(--color-error);
}

input.success:not([type="checkbox"], [type="radio"], [type="submit"], [type="color"], [type="button"], [type="reset"]),
textarea.success {
  border-color: var(--color-success);
}

[type="checkbox"],
[type="radio"] {
  transform: scale(1.2);
}

.button+.button {
  margin-left: 1rem;
}

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

button.dark {
  background-color: var(--color-dark);
}

button.error {
  background-color: var(--color-error);
}

button.success {
  background-color: var(--color-success);
}

button.outline {
  background-color: transparent;
  border-color: var(--color-border);
}

button.outline:hover {
  background-color: var(--color-light);
}

button.outline.primary {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

button.outline.secondary {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

button.outline.dark {
  border-color: var(--color-dark);
  color: var(--color-dark);
}

button.outline.error {
  border-color: var(--color-error);
  color: var(--color-error);
}

button.outline.success {
  border-color: var(--color-success);
  color: var(--color-success);
}

button.flat {
  background-color: transparent;
  border-color: transparent;
  padding: 0.5rem 0.5rem;
}

button.flat:hover {
  background-color: var(--color-light);
}

button.flat.error {
  color: var(--color-error);
}

button.flat.success {
  color: var(--color-success);
}

::-webkit-input-placeholder,
::-moz-placeholder,
:-ms-input-placeholder,
::-ms-input-placeholder,
::placeholder {
  color: var(--color-placeholder);
}

label:has(input[type="checkbox"]) {
  display: flex;
  flex-flow: row;
  align-items: center;
  gap: 0.25rem;
}

fieldset.line {
  position: relative;
  display: block;
  width: 100%;
  height: fit-content;
  border-bottom: 0;
  border-left: 0;
  border-right: 0;
  margin-top: 1rem;
  margin-bottom: -0.675rem;
}

fieldset.line > legend {
  width: auto;
  margin-left: auto;
  margin-right: auto;
  padding: 0 0.5rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 1.75rem;
  height: 0.875rem;
}

.switch>input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 1.25rem;
}

.switch::before {
  content: "";
  display: block;
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--color-secondary);
  border-radius: 1.25rem;
  transition: background-color 0.3s, box-shadow 0.3s;
  left: 0.125rem;
  top: 0.1rem;
  width: 2.185rem;
  height: 1.125rem;
}

.switch::after {
  content: "";
  position: absolute;
  display: block;
  height: 0.875rem;
  width: 0.875rem;
  top: 0.215rem;
  inset-inline-start: 0.3rem;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}

.switch:has(:checked)::before {
  background-color: var(--color-primary);
}

.switch:has(:checked)::after {
  transform: translateX(1rem);
}

.nav {
  display: flex;
  min-height: 5rem;
  align-items: stretch;
}

.nav img {
  max-height: 3rem;
}

.nav>.container {
  display: flex;
}

.nav-center,
.nav-left,
.nav-right {
  display: flex;
  flex: 1;
}

.nav-left {
  justify-content: flex-start;
}

.nav-right {
  justify-content: flex-end;
}

.nav-center {
  justify-content: center;
}

@media screen and (max-width: 575.98px) {

  .nav,
  .nav>.container {
    flex-direction: column;
  }

  .nav-center,
  .nav-left,
  .nav-right {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.nav a,
.nav .brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
  color: var(--color-dark);
}

.nav [aria-current="page"]:not(.button),
.nav .active:not(.button) {
  color: #000;
  color: var(--color-primary);
}

.nav .brand {
  font-size: 1.75rem;
  padding-top: 0;
  padding-bottom: 0;
}

.nav .brand img {
  padding-right: 1rem;
}

.nav .button {
  margin: auto 1rem;
}

.card {
  display: flex;
  flex-flow: column;
  padding: 1rem 1.5rem;
  border-radius: var(--card-border-radius);
  background: var(--bg-color);
  border: 1px solid var(--color-border);
}

.card > .card-img {
  display: block;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  margin-top: -1rem;
  margin-bottom: 0;
}

.card > .card-img:last-child {
  margin-top: 0;
  margin-bottom: -1rem;
}

.tabs {
  display: flex;
}

.tabs a {
  text-decoration: none;
}

.tabs>.dropdown>summary,
.tabs>a {
  padding: 1rem 2rem;
  flex: 0 1 auto;
  color: var(--color-dark);
  border-bottom: 2px solid var(--color-light);
  text-align: center;
}

.tabs>a[aria-current="page"],
.tabs>a.active,
.tabs>a:hover {
  opacity: 1;
  border-bottom: 2px solid var(--color-dark);
}

.tabs>a[aria-current="page"],
.tabs>a.active {
  border-color: var(--color-primary);
}

.tabs.is-full a {
  flex: 1 1 auto;
}

.tag {
  display: inline-block;
  border: 1px solid var(--color-light);
  text-transform: uppercase;
  color: var(--color-secondary);
  padding: 0.5rem;
  line-height: 1;
  letter-spacing: 0.5px;
}

.tag.is-small {
  padding: 0.4rem;
  font-size: 0.75rem;
}

.tag.is-large {
  padding: 0.7rem;
  font-size: 1.125rem;
}

.tag+.tag {
  margin-left: 1rem;
}

.list {
  display: flex;
  flex-flow: column;
  padding: 0.785rem 0;
}

.list.gap {
  gap: 1rem;
  padding: 0 0.785rem;
}

menu.list > li,
menu.list > li > label {
  display: flex;
  flex-flow: row;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.25rem;
}

menu.list > li > label {
  align-items: baseline;
  gap: 0.725rem;
}

menu.list.gap > li:has(input[type="radio"]) {
  border-radius: var(--card-border-radius);
  border-width: 1px;
  border-color: transparent;
  border-style: solid;
}

menu.list.gap > li:has(input[type="radio"]:checked) {
  border-color: var(--color-primary);
  background-color: var(--color-light);
}

/* Colors */
.bg-primary {
  background-color: var(--color-primary) !important;
}

.bg-light {
  background-color: var(--color-light) !important;
}

.bg-dark {
  background-color: var(--color-dark) !important;
}

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

.bg-error {
  background-color: var(--color-error) !important;
}

.bg-success {
  background-color: var(--color-success) !important;
}

.bd-primary {
  border: 1px solid var(--color-primary) !important;
}

.bd-light {
  border: 1px solid var(--color-light) !important;
}

.bd-dark {
  border: 1px solid var(--color-dark) !important;
}

.bd-secondary {
  border: 1px solid var(--color-secondary) !important;
}

.bd-error {
  border: 1px solid var(--color-error) !important;
}

.bd-success {
  border: 1px solid var(--color-success) !important;
}

.text-primary {
  color: var(--color-primary) !important;
}

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

.text-dark {
  color: var(--color-dark) !important;
}

.text-secondary {
  color: var(--color-secondary) !important;
}

.text-error {
  color: var(--color-error) !important;
}

.text-success {
  color: var(--color-success) !important;
}

.text-white {
  color: #fff !important;
}

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

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

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

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

.text-uppercase {
  text-transform: uppercase;
}

.text-lowercase {
  text-transform: lowercase;
}

.text-capitalize {
  text-transform: capitalize;
}

.clearfix {
  content: "";
  display: table;
  clear: both;
}

.hide {
  display: none !important;
}

@media screen and (max-width: 575.98px) {
  .hide-xs {
    display: none !important;
  }
}

@media screen and (min-width: 576px) and (max-width: 767.98px) {
  .hide-sm {
    display: none !important;
  }
}

@media screen and (min-width: 768px) and (max-width: 991.98px) {
  .hide-md {
    display: none !important;
  }
}

@media screen and (min-width: 992px) and (min-width: 1199.98px) {
  .hide-lg {
    display: none !important;
  }
}

@media print {
  .hide-pr {
    display: none !important;
  }
}
