/* Ekerö Utbildning survey theme - custom overrides (Claude, 2026-10-01). Brand colours live in css/variations/theme_ekero.css. */

/* Bug fix in Fruity TwentyThree: on small screens arrays are stacked, but the header row stays visible because
   ".no-tables-mobile table.ls-answers thead:not(.ls-hidden) {display:block}" outranks the rule that hides it. */
@media only screen and (max-width: 767px) {
  .no-tables-mobile table.ls-answers thead,
  .no-tables-mobile table.ls-answers thead:not(.ls-hidden) {
    display: none;
  }
}
@media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px) {
  table.ls-answers thead,
  table.ls-answers thead:not(.ls-hidden) {
    display: none;
  }
}

/* The language picker wrapper is hard-coded white, which shows as a white box on our grey-blue page background. */
.form-change-lang #lang-select {
  background-color: transparent;
}

/* Soft-mandatory questions: we use the popup ("Fortsätt utan att svara" / "Svara på fråga"), so hide the inline
   checkbox, whose label "Continue without answering to this question." has no Swedish translation in LimeSurvey.
   The popup still ticks the hidden checkbox, so skipping works as before. (Vanilla hides it via JS, Fruity 23 does not.) */
.ls-softmandatory-input {
  display: none !important;
}
/* On soft-mandatory arrays LimeSurvey also shows "Du måste fylla i alla delar", which contradicts the soft
   reminder above it. Hide it only where a soft-mandatory input exists, so real mandatory questions keep it. */
.question-container:has(.ls-softmandatory-input) .ls-question-mandatory-array,
.question-container:has(.ls-softmandatory-input) .ls-question-mandatory-arraycolumn {
  display: none !important;
}

/* Fruity TwentyThree sets "hyphens: auto" on #outerframeContainer, so browsers split long Swedish words mid-word
   (e.g. "arbetsförhål-landen"). Turn automatic hyphenation off; overflow-wrap still breaks a word only if it
   cannot fit on a line at all (e.g. a long URL on a phone). (Holger, 2026-11-01) */
#outerframeContainer,
#outerframeContainer * {
  -webkit-hyphens: manual;
  -o-hyphens: manual;
  hyphens: manual;
  word-break: normal;
  overflow-wrap: break-word;
}
