@import "./maso/globals.css";
@import "./maso/inputs.css";

html {
  scrollbar-gutter: stable;
}

/* Header */
div.maso-header {
  text-align: center;
  background-color: #ffd842;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  color: black;
}

div.maso-header h1 {
  font-weight: 700;
  font-size: 2em;
  margin-top: 0.67em;
  margin-bottom: 0.67em;
  color: black;
}

div.maso-header h2 {
  font-weight: 700;
  font-size: 1.5em;
  margin-bottom: 0.83em;
  color: black;
}

div.maso-testweb {
  background-color: #4fc !important;
}

div.maso-header div {
  margin: 10pt;
  display: inline-block;
}

div.maso-header div img {
  vertical-align: bottom;
  margin: 5pt 10pt;
  width: 120pt;
}

div.maso-header div span {
  display: inline-block;
  margin: 5pt 10pt;
  text-align: left;
}

/* Home Header */
div.maso-home-header {
  text-align: center;
  background-color: #ffd842;
  min-height: 100vh;
  vertical-align: middle;

  display: flex;
  justify-content: center;
  align-items: center;
}

div.maso-home-header div {
  margin: auto;
  display: inline-block;
  vertical-align: middle;
}

div.maso-home-header div img {
  vertical-align: bottom;
  margin: 5pt 10pt;
  width: 240pt;
}

div.maso-home-header div span {
  display: block;
  margin: 5pt 10pt;
  text-align: center;
}

div.maso-home-header div span h1 {
  font-size: 40pt;
}

div.sticky {
  position: sticky;
  top: 0;
}

/* Navigation bar */
div.nav-bar {
  /* font-variant 1 */
  /*font-family: Helvetica, Arial, sans-serif;*/
  /* font-variant 2 */
  font-size: 12pt;
  /*font-weight: bold;*/

  overflow: hidden;
  background: #555;
  box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.2),
    0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 3px 1px -2px rgba(0, 0, 0, 0.12);
  text-align: center;
  margin-bottom: 20pt;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

div.nav-bar em.fas {
  padding-right: 5pt;
}

div.nav-bar a,
div.nav-bar label {
  display: block;
  padding: 0pt;
  margin: 0pt auto;
  color: #fff;
  text-decoration: none;
  line-height: 10pt;
}

div.nav-bar a.selected {
  background-color: #ffe953;
  color: #000;
}

div.nav-bar a.darker {
  background-color: #444;
  color: #fff;
}

div.nav-menu a,
div.nav-bar label {
  padding: 12pt 10pt;
  cursor: pointer;
}

div.nav-bar a:hover,
div.nav-bar label:hover {
  background-color: #000 !important;
  color: #fff !important;
}

div.nav-menu {
  max-height: 0;
  width: 100%;
  -webkit-transition: max-height 0.3s;
  -moz-transition: max-height 0.3s;
  -o-transition: max-height 0.3s;
  transition: max-height 0.3s;
}

div.nav-menu ul {
  margin: 0;
  padding: 0;
}

div.nav-menu li {
  display: block;
  text-align: center;
}

#nav-toggle {
  display: none;
}

#nav-toggle:checked ~ div.nav-menu {
  max-height: 300pt;
}

@media only screen and (min-width: 630pt) {
  div.nav-bar label {
    display: none;
  }

  div.nav-bar {
    text-align: left;
    /* Sticky menu */
    /*
		position: sticky;
		top: 0;
		*/
  }

  div.nav-menu {
    width: auto;
    max-height: none;
  }

  div.nav-menu ul {
    padding: 0;
  }

  div.nav-menu li {
    display: inline-block;
    text-align: left;
  }

  .nav-right {
    position: absolute;
    right: 0pt;
  }
}

@media only screen and (min-width: 860pt) {
  div.nav-bar {
    text-align: center;
  }
}

/* Page content */
div.maso-content {
  flex: 1;
  font-size: 14pt;
}

div.maso-content p {
  font-size: 14pt;
  text-align: left;
  line-height: 1.22;
}

@media only screen and (min-width: 500pt) {
  div.maso-content {
    font-size: 15pt;
  }

  div.maso-content p {
    font-size: 15pt;
    text-align: justify;
  }

  div.nav-bar {
    font-size: 13pt;
  }

  ul.archive-menu {
    font-size: 13pt;
  }

  div.archive-block p.label {
    font-size: 13pt !important;
  }
}

a.anchor {
  display: block;
  position: relative;
  visibility: hidden;
}

div.dense-block {
  margin-left: auto;
  margin-right: auto;
  margin-top: 0pt;
  /*margin-bottom: 20pt;*/
  box-sizing: border-box;
  background-color: #fff;
  padding: 10pt;
  /*box-shadow: 3px 3px 5px 0px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 3px 1px -2px rgba(0,0,0,0.12);*/
  padding-top: 0pt;
  padding-bottom: 0pt;
  padding-left: 20pt;
  padding-right: 20pt;
  text-align: center;
}

div.sparse-block {
  margin-left: auto;
  margin-right: auto;
  margin-top: 0pt;
  /*margin-bottom: 20pt;*/
  box-sizing: border-box;
  background-color: #fff;
  padding: 10pt;
  /*box-shadow: 3px 3px 5px 0px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 3px 1px -2px rgba(0,0,0,0.12);*/
  padding-top: 50pt;
  padding-bottom: 50pt;
  padding-left: 20pt;
  padding-right: 20pt;
  text-align: center;
}

div.inner-block {
  text-align: left;
  display: inline-block;
  width: 100%;
}

div.leftpad {
  padding-left: 35px;
}

div.wide-block {
  text-align: left;
  display: inline-block;
  width: 100%;
}

div.yellow-block {
  background-color: #ffd842;
}

div.red-block {
  background-color: #ff8645;
}

div.archive-block {
  margin-top: -20pt;
  margin-bottom: 20pt;
  box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.2),
    0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 3px 1px -2px rgba(0, 0, 0, 0.12);
}

div.blue-block {
  background-color: #37a0f4;
  color: #fff;
}

div.error-block {
  background-color: #ff0000;
  color: #fff;
}

div.dense-block h1,
div.dense-block h2,
div.dense-block h3,
div.dense-block h4,
div.sparse-block h1,
div.sparse-block h2,
div.sparse-block h3,
div.sparse-block h4 {
  margin-bottom: 0.5rem;
}

@media only screen and (min-width: 820pt) {
  div.maso-content div.inner-block {
    min-width: 500pt;
    width: 50%;
  }
}

/* Archive menu */
ul.archive-menu {
  /* font-variant 1 */
  /*font-family: Helvetica, Arial, sans-serif;
	font-size: 12pt;*/
  /* font-variant 2 */
  /*font-weight: bold;*/
  font-size: 12pt;

  padding: 0;
  margin: 0;
}

ul.archive-menu li {
  display: inline-block;
  text-align: center;
  margin: 3pt;
}

ul.archive-menu a {
  display: block;
  padding: 0pt;
  margin: 0pt auto;
  color: #fff;
  background: #555;
  text-decoration: none;
  line-height: 10pt;
  padding: 6pt 8pt;
  border: 1pt solid #444;
}

ul.archive-menu a.darker {
  background-color: #333;
  color: #fff;
}

ul.archive-menu a:hover {
  background-color: #000 !important;
  color: #fff !important;
}

ul.archive-menu a.selected {
  background-color: #ffe953;
  color: #000;
}

/* Side menu - middle variant */
/*
@media only screen and (min-width: 820pt) {
	div.side-menu > h1 {
		display: none;
	}

	div.wide-sticky {
		position: sticky;
		top: 0pt;
	}

	a.anchor {
		top: -120pt;
	}
}

*/
/* Side menu - wide variant */
/*
@media only screen and (min-width: 1160pt) {
	div.wide-sticky {
		position: sticky;
		top: 0pt;
	}

	a.anchor {
		top: -120pt;
	}
}
*/

/* Small-table */
div.small-table {
  margin: 40pt 20pt;
  box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.2),
    0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 3px 1px -2px rgba(0, 0, 0, 0.12);
}

div.small-table table {
  text-align: left;
  font-size: 15pt;
  width: 100%;
  border-spacing: 0pt;
}

div.small-table thead {
  color: #fff;
  background-color: #2196f3;
}

div.small-table td,
div.small-table th {
  padding: 15pt 25pt;
}

div.small-table tr.odd {
  background-color: #f1f1f1;
}

/* Footer */
div.maso-footer {
  text-align: center;
  background-color: #ffd842;
  padding: 10pt 0pt;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  color: black;
}

div.maso-footer * {
  margin: 10pt 20pt;
  font-size: 14pt;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  color: black;
}

div.maso-footer a {
  margin: 0pt;
}

div.maso-footer img {
  vertical-align: middle;
  height: 100pt;
  padding: 10pt 0pt;
  max-width: -moz-calc(100% - 40pt);
  max-width: -webkit-calc(100% - 40pt);
  max-width: -o-calc(100% - 40pt);
  max-width: calc(100% - 40pt);
}

div.archive-block p.label {
  display: block;
  margin: 0pt;
  font-size: 12pt;
}

div.archive-block p.label label {
  display: block;
  padding: 12pt 10pt;
}

div.archive-block div.hide-me {
  margin-top: 10pt;
  margin-bottom: 10pt;
}

input.sub-checkbox[type="checkbox"] {
  display: none;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  opacity: 0;
}

input.sub-checkbox[type="checkbox"]:checked + .label + div.hide-me {
  display: none;
}

.sub-checkbox + .label > label > em.fas {
  width: 1em;
}

.sub-checkbox + .label > label > em.fas:before {
  /* fa-caret-down */
  content: "\f0d7";
}

input.sub-checkbox[type="checkbox"]:checked + .label > label > em.fas:before {
  /* fa-caret-right */
  content: "\f0da";
}

.sub-checkbox + .label > label {
  cursor: pointer;
  position: relative;
}

/* wide version */
input.sub-checkbox[type="checkbox"]:checked + .inner-block + div.hide-me {
  display: none;
}

.sub-checkbox + .inner-block > .label > label > em.fas {
  width: 1em;
}

.sub-checkbox + .inner-block > .label > label > em.fas:before {
  /* fa-caret-down */
  content: "\f0d7";
}

input.sub-checkbox[type="checkbox"]:checked
  + .inner-block
  > .label
  > label
  > em.fas:before {
  /* fa-caret-right */
  content: "\f0da";
}

.sub-checkbox + .inner-block > .label > label {
  cursor: pointer;
  position: relative;
}

div.hide-me {
  margin-bottom: 20pt;
}

.fake-label a {
  color: black;
  text-decoration: none;
  position: relative;
}

.fake-label a > em.fas {
  width: 1em;
}

.fake-label a > em.fas:before {
  /* fa-caret-right */
  content: "\f0da";
}

table.results {
  width: 100%;
  border: 1px solid #ddd;
  border-spacing: 0pt;
  border-collapse: collapse;
}

table.results td,
table.results th {
  padding: 4pt 5pt;
}

table.results tr {
  border-bottom: 1px solid #ddd;
}

table.results tr.even {
  /* background-color: #f1f1f1; */
  background-color: #0000000f;
}

tr.sticky-table-hdr {
  position: sticky;
  top: 0;
  background: white;
  box-shadow: inset -1px -1px #ddd;
}

.filtered {
  background-color: #fc8;
}

/* contacts */
div.contacts {
  display: inline-block;
  text-align: center;
  width: 170px;
  height: 225px;
  vertical-align: top;
  padding-bottom: 20px;
}

.orgs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;

  .org {
    padding: 0.5rem;
    border: 1px dashed gray;
    display: flex;
    flex-flow: row;
    gap: 1rem;

    div {
      overflow: hidden;
    }

    .pic {
      width: 97px;
      height: 120px;
      object-fit: cover;
    }

    .contact {
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      font-size: 14px;
    }
  }

  @media (max-width: 992px) {
    display: flex;
    flex-flow: column;
  }
}

/* Forms */
.input-group-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.input-group-inline select {
  width: 160px;
}

div.basic-form {
  display: inline-block;
  padding: 10pt;
  border: 1pt solid #bbb;
  border-radius: 4pt;
  margin: 20pt 0pt;
}

div.dense-form {
  display: inline-block;
  padding: 0pt 10pt;
  border: 1pt solid #bbb;
  border-radius: 4pt;
  margin: 2pt 0pt;
}

div.basic-form td.label {
  text-align: right;
  padding: 5pt;
}

div.basic-form td.full {
  text-align: center;
  padding: 5pt;
}

tr.prezence:hover {
  background: #ffe953 !important;
}

tr.prezence td,
tr.sort-header th {
  padding: 0pt !important;
  height: 100%;
}

tr.prezence td a,
tr.sort-header th a {
  display: table;
  color: black;
  text-decoration: none;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}
tr.prezence td a span,
tr.sort-header th a span,
tr.smart-table td span {
  display: inline-block;
  padding: 4pt 5pt;
}

table.results tr.blue {
  background-color: #37a0f4 !important;
}

.med-indent {
  padding-left: 15pt;
}

/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #555;
  color: #fff;
  text-align: center;
  padding: 5pt 5pt;
  border-radius: 6px;

  /* Position the tooltip text */
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;

  /* Fade in tooltip */
  opacity: 0;
  transition: opacity 0.3s;
}

/* Tooltip arrow */
.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Table quick search */
.quick-search {
  margin-bottom: 5pt;
  width: 100%;
  box-sizing: border-box;
  padding: 4pt;
}

.problem-box {
  border: 1pt solid gray;
  padding: 4pt;
  margin: 4pt 0pt;
}

@media only screen and (max-width: 499.999pt) {
  .problem-header {
    display: table;
  }
  .problem-mobile-top {
    display: table-header-group;
  }
}

.problem-box h1,
.problem-box h2,
.problem-box h3,
.problem-box h4 {
  margin-bottom: 12pt !important;
}

.problem-small {
  color: gray;
  font-size: 14pt;
}

.black {
  color: black;
}

.problem-newer {
  color: red;
  font-size: 14pt;
}

.problem-svg {
  width: 100%;
}

.form-full-size {
  width: 100%;
  box-sizing: border-box;
}

.form-full-size textarea {
  width: 100%;
  min-height: 12em;
  box-sizing: border-box;
}

.form-full-size input.text-input {
  width: 100%;
  box-sizing: border-box;
}

.text-input,
.med-textarea-input {
  font-size: 13pt !important;
  font: inherit;
  font-family: inherit;
}

textarea.med-textarea-input {
  min-height: 4.1em;
  resize: none;
  padding: 6pt;
}

.warning-box {
  background-color: #ffd842;
}

.light-warning-box {
  background-color: #ffefb1;
}

.red-border-box {
  border: 2.5pt solid red !important;
  box-shadow: 0px 3px 3px 0px rgba(255, 0, 0, 0.2),
    0px 6px 6px 0px rgba(255, 0, 0, 0.14),
    0px 9px 4px -6px rgba(255, 0, 0, 0.12);
}

.problem-reaction-box {
  padding-left: 1.5em;
}

blockquote {
  background: #0000000a;
  border-left: 8pt solid #00000020;
  margin: 1.5em 8pt;
  padding: 0.5em 10pt;
}

blockquote p {
  display: inline;
}

.multi-attachement-delete {
  color: red;
  display: inline-block;
  margin-left: 7pt;
  cursor: pointer;
}

.multi-attachement input[type="file"] {
  display: none;
}

.multi-attachement > div:last-child > label {
  display: inline-block;
  width: 23pt;
  height: 23pt;
  color: #280;
  text-align: center;
  border: 2pt solid #280;
  border-radius: 50%;
}

.maso-markdown img {
  max-width: 100%;
}

/* Path menu */

ul.maso-path-menu {
  padding: 0;
  list-style: none;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  font-size: 13pt;
}

.maso-path-menu li,
.maso-toggle li {
  display: block;
  white-space: nowrap;
  clip-path: polygon(
    0 0,
    8pt 50%,
    0% 100%,
    calc(100% - 8pt) 100%,
    100% 50%,
    calc(100% - 8pt) 0%
  );
  -webkit-clip-path: polygon(
    0 0,
    8pt 50%,
    0% 100%,
    calc(100% - 8pt) 100%,
    100% 50%,
    calc(100% - 8pt) 0%
  );
  background-color: #000;
}
.maso-path-menu li:first-of-type {
  clip-path: polygon(
    0 0,
    0% 100%,
    calc(100% - 8pt) 100%,
    100% 50%,
    calc(100% - 8pt) 0%
  );
  -webkit-clip-path: polygon(
    0 0,
    0% 100%,
    calc(100% - 8pt) 100%,
    100% 50%,
    calc(100% - 8pt) 0%
  );
}
.maso-path-menu li:first-of-type a,
.maso-path-menu li:first-of-type .fake-a {
  padding-left: 10pt;
  clip-path: polygon(
    1pt 1pt,
    1pt calc(100% - 1pt),
    calc(100% - 8.5pt) calc(100% - 1pt),
    calc(100% - 1pt) 50%,
    calc(100% - 8.5pt) 1pt
  );
  -webkit-clip-path: polygon(
    1pt 1pt,
    1pt calc(100% - 1pt),
    calc(100% - 8.5pt) calc(100% - 1pt),
    calc(100% - 1pt) 50%,
    calc(100% - 8.5pt) 1pt
  );
}
.maso-path-menu li.selected a,
.maso-path-menu li.selected .fake-a {
  background: #ffe953;
  color: #000;
}
.maso-path-menu li .fake-a {
  cursor: default;
}

.maso-path-menu a,
.maso-path-menu .fake-a {
  display: inline-block;
  position: relative;
  line-height: 32pt;
  text-decoration: none;
  color: #fff;
  background: #555;

  clip-path: polygon(
    1.5pt 1pt,
    9pt 50%,
    1.5pt calc(100% - 1pt),
    calc(100% - 8.5pt) calc(100% - 1pt),
    calc(100% - 1pt) 50%,
    calc(100% - 8.5pt) 1pt
  );
  -webkit-clip-path: polygon(
    1.5pt 1pt,
    9pt 50%,
    1.5pt calc(100% - 1pt),
    calc(100% - 8.5pt) calc(100% - 1pt),
    calc(100% - 1pt) 50%,
    calc(100% - 8.5pt) 1pt
  );
  padding: 0pt 12pt 0pt 13pt;
}

.maso-path-menu a:hover {
  color: #fff;
  background-color: #000;
}

span.maso-path-menu-negative {
  margin-left: -9pt;
}

/* Tags */
@media only screen and (min-width: 500pt) {
  .maso-tag-container {
    text-align: right !important;
    float: right;
    /*width: min-content;*/
  }
}

.maso-tag-container {
  line-height: 2em;
  margin: 0pt 3pt;
}

.maso-tag {
  border-radius: 4pt;
  padding: 2pt 6pt;
  white-space: nowrap;
}

/* Diffs */
ins.maso-diff {
  background: #cfc;
}

del.maso-diff {
  background: #fcc;
}

/* Document table */

td.maso-doc-header {
  padding-right: 30pt;
}

td.maso-doc-link em {
  font-size: 40pt;
  vertical-align: middle;
  margin-right: 7pt;
  color: #000;
}

/* General */

.center {
  text-align: center;
}

.hidden {
  display: none !important;
}

/* Checkbox in table */
.table-true {
  background-color: #00ff0075;
}

.table-false {
  background-color: #ff000075;
}

.problem-box-end {
  border-top: 1pt solid gray;
  padding: 4pt;
  margin: -4pt;
  background-color: #00000010;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-evenly;
}

.problem-box-inline {
  min-width: 25%;
  padding: 0pt 10pt;
  text-align: center;
  box-sizing: border-box;
  white-space: nowrap;
}

input.checkbox-remove {
  display: none;
}
input.checkbox-remove[type="checkbox"]:checked + div.removable-form {
  background: #ff000050;
  border-color: red;
}
input.checkbox-remove[type="checkbox"]
  + div.removable-form
  > span
  > label
  > em.far:before {
  content: "\f0c8";
  padding: 0pt 10pt;
}

input.checkbox-remove[type="checkbox"]:checked
  + div.removable-form
  > span
  > label
  > em.far:before {
  content: "\f14a";
}

span.removable-label {
  padding: 5pt 15pt;
  display: block;
}

div.maso-kanboard-container {
  margin-top: -19pt;
}

.inline-image-container {
  text-align: center;
  width: 100%;
}

.inline-image-container img {
  max-width: calc(100vw - 80px);
  height: auto;
}

.margin-top {
  margin-top: 20px;
}

.katex-autorender p:has(> img) {
  width: 100%;
  margin: 20px 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.katex-autorender p > img {
  max-width: 100%;
  max-height: 250px;
  height: auto;
  width: auto;
  display: block;
}

.katex-autorender.katex-small p > img {
  max-height: 120px;
}

.maso-toggle {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13pt;
}

/* the buttons (inner fill) — inset polygon so black border shows */
.maso-toggle button.fake-a {
  all: unset;
  display: inline-block;
  position: relative;
  z-index: 1;
  line-height: 24pt;
  padding: 0 14pt;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: #fff;
  background: #555;

  /* inset shape (1pt inset) that leaves the black border visible */
  clip-path: polygon(
    1.5pt 1pt,
    9pt 50%,
    1.5pt calc(100% - 1pt),
    calc(100% - 8.5pt) calc(100% - 1pt),
    calc(100% - 1pt) 50%,
    calc(100% - 8.5pt) 1pt
  );
  -webkit-clip-path: polygon(
    1.5pt 1pt,
    9pt 50%,
    1.5pt calc(100% - 1pt),
    calc(100% - 8.5pt) calc(100% - 1pt),
    calc(100% - 1pt) 50%,
    calc(100% - 8.5pt) 1pt
  );
}

/* overlap so the chevrons join without gaps */
.maso-toggle li + li {
  margin-left: -9pt;
}

/* make the left button draw the visible seam above the right button */
.maso-toggle li:first-of-type button.fake-a {
  z-index: 2;
}

/* active (selected) */
.maso-toggle li.selected button.fake-a {
  background: #ffe953;
  color: #000;
}

/* hover */
.maso-toggle button.fake-a:hover {
  background: #000;
  color: #fff;
}

/* Short mode */
#problems-container.mode-short .problem-box .maso-tag-container,
#problems-container.mode-short .problem-box .problem-small,
#problems-container.mode-short .problem-box .problem-box-end,
#problems-container.mode-short .problem-box .maso-markdown {
  display: none;
}

.mode-short .problem-box h3 {
  margin-bottom: 0 !important;
}

#problems-container.mode-short.sortable {
  cursor: grab;
}

#problems-container.mode-short .problem-mobile-top {
  min-width: 50%;
}

#problems-container:not(.mode-short) .short-mode-only {
  display: none;
}

#problems-container a {
  text-decoration: none;
}

.short-mode-only {
  display: flex;
  align-items: center;
}

.drag-ghost {
  opacity: 0.6;
  background: #f0f0f0;
}

.number-changed {
  background-color: #ffeaa3;
  transition: background-color 1s;
}

.mode-short .problem-box:has(.maso-markdown img) h3 a::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-left: 0.4em;
  vertical-align: middle;
  background: no-repeat center/contain
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5 11 17l3.5-4.5 4.5 6H5l3.5-5z"/></svg>');
}
