/* Protect the mapped Astritis layout from legacy builder Bootstrap containers. */
.astritis-page .container {
  width: min(1240px, calc(100% - 100px));
  padding-left: 0;
  padding-right: 0;
}
.astritis-page .container::before,
.astritis-page .container::after {
  content: none;
  display: none;
}
@media (max-width: 1100px) {
  .astritis-page .container { width: calc(100% - 64px); }
}
@media (max-width: 680px) {
  .astritis-page .container { width: calc(100% - 40px); }
}

/* Mobile usability improvements — 25 October 2026. */
@media (max-width: 920px) {
  .header-actions {
    gap: 8px;
    flex-shrink: 0;
  }

  .language-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    font-size: 11px;
    touch-action: manipulation;
  }

  .menu-toggle {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
    touch-action: manipulation;
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 16px;
    min-height: 48px;
  }
}

@media (max-width: 430px) {
  .header-inner {
    width: calc(100% - 24px);
    gap: 6px;
  }

  .header-actions {
    gap: 4px;
  }

  .language-switch {
    gap: 0;
  }

  .site-header .brand {
    gap: 6px;
    min-height: 44px;
  }

  .site-header .brand-mark {
    width: 28px;
    height: 32px;
    flex: 0 0 28px;
    font-size: 14px;
  }

  .site-header .brand-word {
    font-size: 20px;
  }

  .site-header .brand-word > span {
    font-size: 6px;
    letter-spacing: 0.18em;
  }
}

/* Device-independent UI symbols inherit the original brand colour and size. */
.astritis-page .astritis-icon {
  display: block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  overflow: visible;
}

.astritis-page .astritis-footer-external-icon {
  display: inline-block;
  vertical-align: -0.12em;
}
