/* JB Forum Multilingual 1.2.1 */
.jbfl-navigation { display: flex !important; flex-wrap: wrap; align-items: center; gap: .25rem; padding: 0 .4rem; }
.jbfl-navigation .jbfl-label { margin-right: .25rem; font-size: .85em; }
.jbfl-navigation .jbfl-choice { display: inline-block; padding: .1rem .35rem; border: 1px solid transparent; border-radius: .3rem; text-decoration: none; }
.jbfl-navigation .jbfl-choice:hover, .jbfl-navigation .jbfl-choice:focus-visible { border-color: currentColor; text-decoration: underline; }
.jbfl-navigation .jbfl-current { border-color: currentColor; font-weight: 700; text-decoration: underline; }
@media (max-width: 700px) { .jbfl-navigation .jbfl-label { display: none; } .jbfl-navigation { gap: .1rem; } }

/* V1.3: manually written five-language global announcements. */
.jbfl-global-announcement { margin: .25rem 0; }
.jbfl-ga-tabs { display:flex; align-items:center; flex-wrap:wrap; gap:.35rem; padding:.5rem 0 .75rem; border-bottom:1px solid rgba(128,128,128,.3); margin-bottom:.8rem; }
.jbfl-ga-choice { display:inline-flex; align-items:center; padding:.35rem .6rem; border:1px solid #8e939b; border-radius:.4rem; font-weight:600; text-decoration:none !important; line-height:1.3; }
.jbfl-ga-choice:hover, .jbfl-ga-choice:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
.jbfl-ga-active { border-width:2px; text-decoration:underline !important; }
.jbfl-ga-text { overflow-wrap:anywhere; }
.jbfl-ga-text + .jbfl-ga-text { margin-top:1.25rem; padding-top:1rem; border-top:1px solid rgba(128,128,128,.3); }
.jbfl-ga-heading { margin:0 0 .5rem; font-size:1rem; }

/* v1.4: five-title / five-body composer. */
.jbfl-ga-form .jbfl-ga-field {margin: 1rem 0; padding: .8rem; border: 1px solid rgba(128,128,128,.25); border-radius:.5rem}
.jbfl-ga-form .jbfl-ga-field legend {font-weight:bold; padding: 0 .3rem}
.jbfl-ga-form .inputbox {width:100%; box-sizing:border-box}
.jbfl-ga-create {margin-left:.5rem}
.jbfl-ga-preview-body {white-space:pre-wrap; overflow-wrap:anywhere}

/* V1.7.1 — accessible first-visit language choice with five flags. */
.jbfl-language-choice-open { overflow: hidden; }
.jbfl-language-backdrop {
  position: fixed; inset: 0; z-index: 2147482000;
  display: flex; justify-content: center; align-items: center;
  overflow-y: auto; padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  box-sizing: border-box; background: rgba(13,31,48,.73);
}
.jbfl-language-dialog {
  width: 100%; max-width: 28rem; max-height: 100%; overflow-y: auto;
  margin: auto; padding: 1.4rem; box-sizing: border-box;
  background: #fff; color: #203647; border-radius: 1rem;
  box-shadow: 0 .8rem 2.8rem rgba(0,0,0,.28);
  text-align: center;
}
.jbfl-language-dialog:focus { outline: none; }
.jbfl-language-dialog h2 { margin: .35rem 0 .45rem; color: #164968; font-size: 1.5rem; line-height: 1.25; }
.jbfl-language-dialog p { margin: 0 0 1.1rem; color: #445766; line-height: 1.5; font-size: .95rem; }
.jbfl-language-heading-icon { font-size: 2rem; line-height: 1.1; }
.jbfl-language-options { display: flex; flex-direction: column; gap: .48rem; }
.jbfl-language-option {
  display: flex; align-items: center; gap: .85rem;
  min-height: 3.2rem; border: 1px solid #c6d6e0; border-radius: .62rem;
  padding: .45rem .75rem; box-sizing: border-box;
  background: #f7fbff; color: #174363 !important;
  text-align: left; text-decoration: none !important; font-size: 1.05rem;
}
.jbfl-language-option[href]:hover, .jbfl-language-option[href]:focus-visible {
  border-color: #116e9b; background: #e8f5ff; outline: 2px solid #116e9b; outline-offset: 1px;
}
.jbfl-language-flag { font-size: 1.7rem; line-height: 1; min-width: 2.1rem; text-align: center; }
.jbfl-language-name { flex: 1; font-weight: 600; }
.jbfl-language-chevron { font-size: 1.65rem; color: #336988; }
.jbfl-language-unavailable { opacity: .55; background: #f4f4f4; cursor: not-allowed; }
.jbfl-language-unavailable-note { max-width: 6.5rem; font-size: .67rem; line-height: 1.1; }
@media (max-width: 420px) {
 .jbfl-language-dialog { padding: 1.1rem .9rem; }
 .jbfl-language-dialog h2 { font-size: 1.3rem; }
 .jbfl-language-option { min-height: 3.3rem; }
}
