/* Codemoot's native layer: what the product actually used of Bootstrap,
   rewritten as plain platform CSS.

   This file replaces bootstrap.min.css: 232,803 bytes of render-blocking
   stylesheet on every page, of which the product used a grid, a navbar,
   a dropdown, one modal pattern, two offcanvas panels, the form
   controls and a few dozen utilities. The inventory came from scanning
   every page and page script in the tree (tools kept the list honest:
   264 class families, most of them ours, this subset Bootstrap's), and
   nothing is in here that no page uses.

   The markup contract is Bootstrap 5's on purpose. Every class keeps
   its Bootstrap name and its Bootstrap metrics, paddings, breakpoints
   and scale values, because 51 pages were written against them and the
   whole point of this layer is that not one page changes. The
   behaviours (collapse, dropdown, modal, offcanvas) live in native.js
   under the same data-bs-* attributes for the same reason.

   Breakpoints, identical to Bootstrap 5:
     sm 576px · md 768px · lg 992px · xl 1200px
   Spacing scale, identical: 1=4px 2=8px 3=16px 4=24px 5=48px.
   theme.css loads after this file and keeps every override it had. */

/* ==========================================================================
   Reboot: the slice of Bootstrap's reset the pages were built on
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, h4, h5, h6 { margin-top: 0; margin-bottom: 8px; line-height: 1.2; }
h1 { font-size: 2.5rem; } h2 { font-size: 2rem; } h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; } h5 { font-size: 1.25rem; } h6 { font-size: 1rem; }
p { margin-top: 0; margin-bottom: 1rem; }
ul, ol { margin-top: 0; margin-bottom: 1rem; padding-left: 32px; }
ul ul, ol ul, ul ol, ol ol { margin-bottom: 0; }
dl { margin-top: 0; margin-bottom: 1rem; }
dd { margin-bottom: 8px; margin-left: 0; }
blockquote, figure { margin: 0 0 1rem; }
hr { margin: 1rem 0; border: 0; border-top: 1px solid currentColor; opacity: .25; }
small { font-size: .875em; }
strong, b { font-weight: bolder; }
a { color: inherit; }
img, svg { vertical-align: middle; }
img { border-style: none; }
table { caption-side: bottom; border-collapse: collapse; }
th { text-align: inherit; }
label { display: inline-block; }
button { border-radius: 0; }
button, input, optgroup, select, textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
button, select { text-transform: none; }
button, [type="button"], [type="submit"] { -webkit-appearance: button; appearance: button; }
button:not(:disabled), [type="button"]:not(:disabled), [type="submit"]:not(:disabled) { cursor: pointer; }
textarea { resize: vertical; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }
:focus:not(:focus-visible) { outline: 0; }

/* ==========================================================================
   Layout: container, row, columns, gutters
   ========================================================================== */
.container-fluid { width: 100%; padding-right: 12px; padding-left: 12px; margin-right: auto; margin-left: auto; }

.row {
  --gutter-x: 24px;
  --gutter-y: 0px;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--gutter-y));
  margin-right: calc(-.5 * var(--gutter-x));
  margin-left: calc(-.5 * var(--gutter-x));
}
.row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--gutter-x) * .5);
  padding-left: calc(var(--gutter-x) * .5);
  margin-top: var(--gutter-y);
}
.g-0 { --gutter-x: 0px; --gutter-y: 0px; }
.g-3 { --gutter-x: 16px; --gutter-y: 16px; }
.g-4 { --gutter-x: 24px; --gutter-y: 24px; }
.g-5 { --gutter-x: 48px; --gutter-y: 48px; }

.col-6 { width: 50%; }
.col-12 { width: 100%; }
@media (min-width: 576px) {
  .col-sm-4 { width: 33.3333%; }
  .col-sm-6 { width: 50%; }
  .col-sm-8 { width: 66.6667%; }
}
@media (min-width: 768px) {
  .col-md-3 { width: 25%; }
  .col-md-4 { width: 33.3333%; }
  .col-md-5 { width: 41.6667%; }
  .col-md-6 { width: 50%; }
  .col-md-7 { width: 58.3333%; }
  .col-md-8 { width: 66.6667%; }
}
@media (min-width: 992px) {
  .col-lg-2 { width: 16.6667%; }
  .col-lg-3 { width: 25%; }
  .col-lg-4 { width: 33.3333%; }
  .col-lg-5 { width: 41.6667%; }
  .col-lg-6 { width: 50%; }
  .col-lg-7 { width: 58.3333%; }
  .col-lg-8 { width: 66.6667%; }
}

/* ==========================================================================
   Utilities: exactly the set the pages use
   ========================================================================== */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }
@media (min-width: 576px) {
  .d-sm-block { display: block !important; }
  .d-sm-inline-flex { display: inline-flex !important; }
}
@media (min-width: 768px) {
  .d-md-block { display: block !important; }
  .d-md-table-cell { display: table-cell !important; }
}
@media (min-width: 992px) {
  .d-lg-none { display: none !important; }
  .d-lg-block { display: block !important; }
  .d-lg-flex { display: flex !important; }
  .d-lg-inline-flex { display: inline-flex !important; }
  .d-lg-inline { display: inline !important; }
  .d-lg-grid { display: grid !important; }
  .d-lg-table-cell { display: table-cell !important; }
}
@media (min-width: 1200px) {
  .d-xl-none { display: none !important; }
  .d-xl-block { display: block !important; }
}

.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.flex-fill { flex: 1 1 auto !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
@media (min-width: 576px) { .flex-sm-row { flex-direction: row !important; } }
@media (min-width: 768px) {
  .flex-md-row { flex-direction: row !important; }
  .flex-md-wrap { flex-wrap: wrap !important; }
}
@media (min-width: 992px) { .flex-lg-row { flex-direction: row !important; } }

.align-items-start { align-items: flex-start !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-baseline { align-items: baseline !important; }
.align-items-stretch { align-items: stretch !important; }
@media (min-width: 576px) { .align-items-sm-center { align-items: center !important; } }
@media (min-width: 768px) {
  .align-items-md-center { align-items: center !important; }
  .align-items-md-end { align-items: flex-end !important; }
}
@media (min-width: 992px) {
  .align-items-lg-center { align-items: center !important; }
  .align-items-lg-end { align-items: flex-end !important; }
}
.align-self-start { align-self: flex-start !important; }
@media (min-width: 768px) { .align-self-md-auto { align-self: auto !important; } }
.align-baseline { vertical-align: baseline !important; }

.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-between { justify-content: space-between !important; }
@media (min-width: 768px) { .justify-content-md-start { justify-content: flex-start !important; } }

.order-1 { order: 1 !important; }
.order-2 { order: 2 !important; }
@media (min-width: 992px) {
  .order-lg-1 { order: 1 !important; }
  .order-lg-2 { order: 2 !important; }
  .order-lg-3 { order: 3 !important; }
}

.gap-1 { gap: 4px !important; }
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 16px !important; }
.gap-4 { gap: 24px !important; }
@media (min-width: 992px) { .gap-lg-4 { gap: 24px !important; } }

.m-0 { margin: 0 !important; }
.m-3 { margin: 16px !important; }
.m-4 { margin: 24px !important; }
.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 16px !important; }
.mt-4 { margin-top: 24px !important; }
.mt-auto { margin-top: auto !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 24px !important; }
.mb-5 { margin-bottom: 48px !important; }
.ms-2 { margin-left: 8px !important; }
.ms-auto { margin-left: auto !important; }
.mx-auto { margin-right: auto !important; margin-left: auto !important; }
.my-3 { margin-top: 16px !important; margin-bottom: 16px !important; }
@media (min-width: 992px) {
  .me-lg-4 { margin-right: 24px !important; }
  .mx-lg-auto { margin-right: auto !important; margin-left: auto !important; }
}

.p-0 { padding: 0 !important; }
.p-2 { padding: 8px !important; }
.p-3 { padding: 16px !important; }
.p-4 { padding: 24px !important; }
.p-5 { padding: 48px !important; }
.px-1 { padding-right: 4px !important; padding-left: 4px !important; }
.px-2 { padding-right: 8px !important; padding-left: 8px !important; }
.px-3 { padding-right: 16px !important; padding-left: 16px !important; }
.ps-0 { padding-left: 0 !important; }
.pt-1 { padding-top: 4px !important; }
.pt-2 { padding-top: 8px !important; }
.pt-3 { padding-top: 16px !important; }
.pb-1 { padding-bottom: 4px !important; }
@media (min-width: 768px) {
  .p-md-5 { padding: 48px !important; }
  .pb-md-1 { padding-bottom: 4px !important; }
  .pb-md-2 { padding-bottom: 8px !important; }
}

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

.text-start { text-align: left !important; }
.text-center { text-align: center !important; }
.text-end { text-align: right !important; }
.text-nowrap { white-space: nowrap !important; }
@media (min-width: 576px) { .text-sm-start { text-align: left !important; } }
@media (min-width: 768px) { .text-md-start { text-align: left !important; } }
.text-decoration-none { text-decoration: none !important; }

.list-unstyled { padding-left: 0; list-style: none; }
.overflow-hidden { overflow: hidden !important; }
.rounded-circle { border-radius: 50%; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.stretched-link::after { position: absolute; inset: 0; z-index: 1; content: ""; }

.fade { transition: opacity .15s linear; }
.fade:not(.show) { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .fade { transition: none; } }

/* ==========================================================================
   Buttons: the base the btn-cm-* skins in theme.css sit on
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 6px 12px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  border-radius: 6px;
  background-color: transparent;
  color: inherit;
  transition: color .15s ease-in-out, background-color .15s ease-in-out,
              border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.btn:disabled { pointer-events: none; opacity: .65; }
.btn-link { font-weight: 400; text-decoration: underline; border: 0; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

.btn-close {
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  padding: 4px;
  border: 0;
  border-radius: 6px;
  background: transparent center / 1em auto no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3E%3Cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3E%3C/svg%3E");
  opacity: .5;
  cursor: pointer;
}
.btn-close:hover { opacity: .8; }
[data-theme="dark"] .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

/* ==========================================================================
   Forms: form-control, form-select, checks and the switch
   ========================================================================== */
.form-control {
  display: block;
  width: 100%;
  padding: 6px 12px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: inherit;
  background-color: transparent;
  background-clip: padding-box;
  border: 1px solid currentColor;
  border-radius: 6px;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.form-control:focus { outline: 0; }
.form-control::placeholder { opacity: .6; color: inherit; }
.form-control:disabled { opacity: .65; }
textarea.form-control { min-height: calc(1.5em + 14px); }
@media (prefers-reduced-motion: reduce) { .form-control { transition: none; } }

.form-select {
  display: block;
  width: 100%;
  padding: 6px 36px 6px 12px;
  font-size: 1rem;
  line-height: 1.5;
  color: inherit;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 12px;
  border: 1px solid currentColor;
  border-radius: 6px;
  appearance: none;
}
.form-select:focus { outline: 0; }

.form-check { display: block; min-height: 24px; padding-left: 24px; margin-bottom: 2px; }
.form-check .form-check-input { float: left; margin-left: -24px; }
.form-check-input {
  width: 1em;
  height: 1em;
  margin-top: 4px;
  vertical-align: top;
  appearance: none;
  background-color: transparent;
  border: 1px solid currentColor;
  border-radius: 4px;
  cursor: pointer;
}
.form-check-input[type="radio"] { border-radius: 50%; }
.form-check-input:checked { background-color: currentColor; }
.form-check-label { cursor: pointer; }
.form-switch { padding-left: 40px; }
.form-switch .form-check-input {
  width: 32px;
  margin-left: -40px;
  border-radius: var(--cm-radius-pill);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23888'/%3E%3C/svg%3E");
  background-position: left center;
  background-repeat: no-repeat;
  transition: background-position .15s ease-in-out;
}
.form-switch .form-check-input:checked {
  background-position: right center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23fff'/%3E%3C/svg%3E");
}
.is-invalid { border-color: #dc3545 !important; }

/* ==========================================================================
   Tables: the plain .table a few screens print
   ========================================================================== */
.table {
  width: 100%;
  margin-bottom: 1rem;
  vertical-align: top;
  border-collapse: collapse;
}
.table > :not(caption) > * > * {
  padding: 8px;
  border-bottom: 1px solid var(--cm-border, rgba(127, 127, 127, .25));
}
.table tbody tr:last-child > * { border-bottom: 0; }

/* ==========================================================================
   Navbar: brand, links, toggler, and the collapse it opens
   ========================================================================== */
.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}
.navbar > .container-fluid {
  display: flex;
  flex-wrap: inherit;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  margin-right: 16px;
  font-size: 1.25rem;
  text-decoration: none;
  white-space: nowrap;
}
.navbar-nav {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin: 0;
  list-style: none;
}
.nav-item { list-style: none; }
.nav-link {
  display: block;
  padding: 8px 0;
  text-decoration: none;
  transition: color .15s ease-in-out;
}
@media (prefers-reduced-motion: reduce) { .nav-link { transition: none; } }
.navbar-toggler { padding: 4px 12px; font-size: 1.25rem; line-height: 1; background: transparent; border: 1px solid transparent; border-radius: 6px; }
.navbar-collapse { flex-grow: 1; flex-basis: 100%; align-items: center; }

/* The collapse behaviour, shared by the navbar and every
   data-bs-toggle="collapse" on the pages. native.js drives the classes
   exactly as Bootstrap did: .collapsing during the height animation,
   .collapse.show at rest open. */
.collapse:not(.show) { display: none; }
.collapsing { height: 0; overflow: hidden; transition: height .35s ease; }
@media (prefers-reduced-motion: reduce) { .collapsing { transition: none; } }

@media (min-width: 992px) {
  .navbar-expand-lg { flex-wrap: nowrap; justify-content: flex-start; }
  .navbar-expand-lg .navbar-nav { flex-direction: row; }
  .navbar-expand-lg .navbar-nav .nav-link { padding-right: 8px; padding-left: 8px; }
  .navbar-expand-lg .navbar-collapse { display: flex !important; flex-basis: auto; }
  .navbar-expand-lg .navbar-toggler { display: none; }
}

/* The signed-out navbar carries ten links plus two calls to action and
   does not fit between 992 and 1200; the menu expands at xl instead. */
@media (min-width: 1200px) {
  .navbar-expand-xl { flex-wrap: nowrap; justify-content: flex-start; }
  .navbar-expand-xl .navbar-nav { flex-direction: row; }
  .navbar-expand-xl .navbar-nav .nav-link { padding-right: 8px; padding-left: 8px; }
  .navbar-expand-xl .navbar-collapse { display: flex !important; flex-basis: auto; }
  .navbar-expand-xl .navbar-toggler { display: none; }
}

/* ==========================================================================
   Dropdown: the avatar menu and its kin
   ========================================================================== */
.dropdown { position: relative; }
.dropdown-toggle { white-space: nowrap; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  min-width: 160px;
  padding: 8px 0;
  margin: 2px 0 0;
  font-size: 1rem;
  text-align: left;
  list-style: none;
  background-clip: padding-box;
  border-radius: 6px;
}
.dropdown-menu.show { display: block; }
.dropdown-menu-end { right: 0; left: auto; }
.dropdown-item {
  display: block;
  width: 100%;
  padding: 4px 16px;
  clear: both;
  font-weight: 400;
  text-align: inherit;
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: 0;
  cursor: pointer;
}
.dropdown-item-text { display: block; padding: 4px 16px; }
.dropdown-header { display: block; padding: 8px 16px; margin-bottom: 0; font-size: .875rem; white-space: nowrap; }
.dropdown-divider { height: 0; margin: 8px 0; overflow: hidden; border-top: 1px solid currentColor; opacity: .15; }

/* ==========================================================================
   Modal: one pattern, focus kept inside by native.js
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1055;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
}
.modal.show { display: block; }
.modal-dialog { position: relative; width: auto; margin: 8px; pointer-events: none; }
.modal.fade .modal-dialog { transform: translateY(-32px); transition: transform .3s ease-out; }
.modal.fade.show .modal-dialog { transform: none; }
@media (prefers-reduced-motion: reduce) { .modal.fade .modal-dialog { transition: none; } }
.modal-dialog-centered { display: flex; align-items: center; min-height: calc(100% - 16px); }
.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-clip: padding-box;
  border-radius: var(--cm-radius-card);
  outline: 0;
}
.modal-body { position: relative; flex: 1 1 auto; padding: 16px; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background-color: #000;
  opacity: 0;
  transition: opacity .15s linear;
}
.modal-backdrop.show { opacity: .5; }
@media (prefers-reduced-motion: reduce) { .modal-backdrop { transition: none; } }
.modal-open { overflow: hidden; }
@media (min-width: 576px) {
  .modal-dialog { max-width: 500px; margin: 28px auto; }
  .modal-dialog-centered { min-height: calc(100% - 56px); }
}

/* ==========================================================================
   Offcanvas: the chat and messages side panels
   ========================================================================== */
.offcanvas {
  position: fixed;
  bottom: 0;
  z-index: 1045;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  visibility: hidden;
  background-clip: padding-box;
  outline: 0;
  transition: transform .3s ease-in-out, visibility .3s;
}
@media (prefers-reduced-motion: reduce) { .offcanvas { transition: none; } }
.offcanvas-start { top: 0; left: 0; width: 400px; transform: translateX(-100%); }
.offcanvas-end { top: 0; right: 0; width: 400px; transform: translateX(100%); }
.offcanvas.show { visibility: visible; transform: none; }
.offcanvas-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background-color: #000;
  opacity: 0;
  transition: opacity .15s linear;
}
.offcanvas-backdrop.show { opacity: .5; }
@media (prefers-reduced-motion: reduce) { .offcanvas-backdrop { transition: none; } }
.offcanvas-header { display: flex; align-items: center; justify-content: space-between; padding: 16px; }
.offcanvas-body { flex-grow: 1; padding: 16px; overflow-y: auto; }
