/* v1.4.9.9 — compact square arrow toggle beside the question title; saved collapse states kept */
.question-card-header .v1499-question-arrow-toggle,
.v1499-question-arrow-toggle {
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  min-width: 1.85rem;
  margin-left: 0.45rem;
  margin-right: auto;
  padding: 0;
  border-radius: 4px;
  border: 2px solid var(--ink, #27324a);
  background: rgba(255, 250, 240, 0.88);
  color: var(--ink, #27324a);
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 1000;
  line-height: 1;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(39, 50, 74, 0.10);
  position: relative;
  z-index: 2;
}

.question-card-header .v1499-question-arrow-toggle:hover,
.v1499-question-arrow-toggle:hover,
.question-card-header .v1499-question-arrow-toggle:focus-visible,
.v1499-question-arrow-toggle:focus-visible {
  border-color: var(--ink, #27324a);
  background: #fff7ed;
  box-shadow: 3px 3px 0 rgba(39, 50, 74, 0.16);
  outline: none;
}

.question-card.v1499-question-collapsed,
article.question-card.v1499-question-collapsed {
  padding-bottom: 0.9rem;
}

.question-card.v1499-question-collapsed > :not(.question-card-header),
article.question-card.v1499-question-collapsed > :not(.question-card-header) {
  display: none !important;
}

.question-card.v1499-question-collapsed .question-card-header,
article.question-card.v1499-question-collapsed .question-card-header {
  margin-bottom: 0 !important;
}

.question-card.v1499-question-collapsed .v1499-question-arrow-toggle,
article.question-card.v1499-question-collapsed .v1499-question-arrow-toggle {
  background: #f7ead2;
  box-shadow: 2px 2px 0 rgba(39, 50, 74, 0.12);
}

@media (max-width: 720px) {
  .question-card-header {
    flex-wrap: wrap;
    gap: 0.45rem;
  }

  .question-card-header .v1499-question-arrow-toggle,
  .v1499-question-arrow-toggle {
    margin-left: 0.35rem;
    margin-right: auto;
    flex: 0 0 auto;
  }
}

body.cf-night-mode .question-card-header .v1499-question-arrow-toggle,
body.night-mode .question-card-header .v1499-question-arrow-toggle,
html.cf-night-mode .question-card-header .v1499-question-arrow-toggle,
html.night-mode .question-card-header .v1499-question-arrow-toggle,
body.cf-night-mode .v1499-question-arrow-toggle,
body.night-mode .v1499-question-arrow-toggle,
html.cf-night-mode .v1499-question-arrow-toggle,
html.night-mode .v1499-question-arrow-toggle {
  background: rgba(24, 30, 46, 0.72);
  border-color: rgba(247, 234, 210, 0.72);
  color: #f7ead2;
}

body.cf-night-mode .question-card-header .v1499-question-arrow-toggle:hover,
body.night-mode .question-card-header .v1499-question-arrow-toggle:hover,
html.cf-night-mode .question-card-header .v1499-question-arrow-toggle:hover,
html.night-mode .question-card-header .v1499-question-arrow-toggle:hover,
body.cf-night-mode .v1499-question-arrow-toggle:hover,
body.night-mode .v1499-question-arrow-toggle:hover,
html.cf-night-mode .v1499-question-arrow-toggle:hover,
html.night-mode .v1499-question-arrow-toggle:hover,
body.cf-night-mode .question-card-header .v1499-question-arrow-toggle:focus-visible,
body.night-mode .question-card-header .v1499-question-arrow-toggle:focus-visible,
html.cf-night-mode .question-card-header .v1499-question-arrow-toggle:focus-visible,
html.night-mode .question-card-header .v1499-question-arrow-toggle:focus-visible,
body.cf-night-mode .v1499-question-arrow-toggle:focus-visible,
body.night-mode .v1499-question-arrow-toggle:focus-visible,
html.cf-night-mode .v1499-question-arrow-toggle:focus-visible,
html.night-mode .v1499-question-arrow-toggle:focus-visible {
  border-color: rgba(247, 234, 210, 0.72);
  background: rgba(72, 85, 116, 0.95);
}
