/* Landing page proportions follow the approved desktop reference.
   Internal views in index.html keep the shared application layout. */
body.bst-home-page:not(.bst-inner-view) {
  --home-ink: #10233b;
  --home-lime: #73d700;
  --home-line: #d3dfea;
  --home-gutter: clamp(16px, 4.1667vw, 80px);
  --home-title-em: 16.1;
  --home-tagline-em: 22.5;
  margin: 0;
  background: #fff;
  color: var(--home-ink);
  font-family: Arial, Helvetica, sans-serif;
}

body.bst-home-page:not(.bst-inner-view) > .shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.bst-home-page .hero-blue {
  margin: 0;
  padding: 14px var(--home-gutter) 26px;
  background: var(--home-ink);
  color: #fff;
}
body.bst-home-page .hero-top {
  position: relative;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
body.bst-home-page .flag-wrap { margin: 0 auto; min-width:0; max-width:100%; }
body.bst-home-page .guinea-flag {
  width: 78px;
  height: 45px;
  border-radius: 5px;
  box-shadow: none;
}
body.bst-home-page .motto {
  margin-top: 8px;
  color: #fff;
  font-size: clamp(.75rem, .6875rem + .2778vw, .9375rem);
  font-weight: 700;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  letter-spacing: 0;
}
body.bst-home-page .hero-brand { margin: 2px auto 0; }
body.bst-home-page .hero-brand h1 {
  margin: 0;
  color: #fff;
  /* Preserve the full title on one line, including the longest translation. */
  font-size: min(2.75rem, calc((100vw - 2 * var(--home-gutter)) / var(--home-title-em)));
  font-weight: 700;
  line-height: 1.2727;
  letter-spacing: 0;
  white-space: nowrap;
  overflow-wrap: normal;
  text-wrap: nowrap;
  max-width: none;
}
body.bst-home-page .hero-brand p {
  margin: 12px auto 0;
  max-width: 48em;
  color: #fff;
  font-size: min(1.125rem, calc((100vw - 2 * var(--home-gutter)) / var(--home-tagline-em)));
  line-height: 1.4;
  white-space: nowrap;
  overflow-wrap: normal;
  text-wrap: nowrap;
}
body.bst-home-page .language-switcher {
  position: absolute;
  inset: 4px -12px auto auto;
  width: auto;
}
body.bst-home-page .language-switcher select {
  appearance: none;
  width: 80px;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 8px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--home-ink);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

body.bst-home-page #home {
  max-width: 1600px;
  margin: 0 auto;
  padding: 28px var(--home-gutter) 18px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
body.bst-home-page #home .role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px 20px;
}
body.bst-home-page #home .role-card {
  min-height: 70px;
  padding: 18px 21px;
  border: 0;
  border-radius: 12px;
  background: var(--home-lime);
  color: var(--home-ink);
  box-shadow: none;
  text-align: start;
  transform: none;
}
body.bst-home-page #home .role-card strong {
  font-size: clamp(1.0625rem, .875rem + .5556vw, 1.375rem);
  font-weight: 700;
  line-height: 1.25;
}
body.bst-home-page #home .role-arrow { font-size: 24px; text-align: end; }
body.bst-home-page #home .admin-access { margin-top: 18px; padding: 0; }
body.bst-home-page #home .admin-divider {
  gap: clamp(12px, 4.8vw, 70px);
  color: var(--home-ink);
  font-size: clamp(.75rem, .6875rem + .2084vw, .875rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: center;
}
body.bst-home-page #home .admin-divider::before,
body.bst-home-page #home .admin-divider::after { background: var(--home-line); }
body.bst-home-page #home .admin-divider > span { min-width:0; overflow-wrap:anywhere; }
body.bst-home-page #home .admin-grid { margin-top: 10px; }
body.bst-home-page #home .admin-card {
  min-height: 66px;
  padding: 16px 21px;
  border: 1px solid var(--home-ink);
  border-radius: 12px;
  background: var(--home-ink);
  color: #fff;
}
body.bst-home-page #home .admin-card strong {
  font-size: clamp(1rem, .875rem + .4167vw, 1.25rem);
  line-height: 1.3;
  font-weight: 700;
}
body.bst-home-page #home .admin-card > span:last-child { text-align: end; line-height: 24px; }
body.bst-home-page #home .admin-card { grid-template-columns:34px minmax(0,1fr) 18px; }
body.bst-home-page #home :is(.role-card,.admin-card) > * { min-width:0; overflow-wrap:anywhere; }
body.bst-home-page #androidDownloadCard {
  margin-top: 10px;
  padding: 15px 21px;
  border: 1px solid var(--home-line);
  border-radius: 12px;
  background: #fff;
}
body.bst-home-page #androidDownloadCard h3 {
  margin: 0;
  font-size: clamp(1rem, .875rem + .4167vw, 1.25rem);
  line-height: 1.2;
  font-weight: 700;
}
body.bst-home-page #androidDownloadCard p { margin: 8px 0 0; }
body.bst-home-page:not(.bst-inner-view) .primary,
body.bst-home-page:not(.bst-inner-view) .bst-facebook-link {
  width: auto;
  min-height: 44px;
  padding: 10px 30px;
  border: 0;
  border-radius: 10px;
  background: var(--home-ink);
  color: #fff;
  box-shadow: none;
  font-size: clamp(.9375rem, .875rem + .2084vw, 1.125rem);
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
  white-space: normal;
}
body.bst-home-page:not(.bst-inner-view) .bst-support-contact {
  margin: 0;
  padding: 14px var(--home-gutter) 0;
  border-top: 1px solid var(--home-line);
}
body.bst-home-page:not(.bst-inner-view) .bst-social-strip {
  padding: 10px var(--home-gutter) 28px;
}
body.bst-home-page:not(.bst-inner-view) .bst-facebook-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 10px 16px;
  min-height: 50px;
}
body.bst-home-page:not(.bst-inner-view) .bst-facebook-icon { flex: 0 0 30px; color: var(--home-ink); }
body.bst-home-page #home .role-card:hover { background: #69c600; }
body.bst-home-page #home .admin-card:hover,
body.bst-home-page:not(.bst-inner-view) .primary:hover,
body.bst-home-page:not(.bst-inner-view) .bst-facebook-link:hover { background: #1c3858; transform: none; }
body.bst-home-page :is(a, button, select):focus-visible {
  outline: 3px solid #3272b8;
  outline-offset: 4px;
}
html[dir="rtl"] body.bst-home-page .language-switcher { inset: 4px auto auto -12px; }
html[lang="en"] body.bst-home-page { --home-tagline-em: 23; --home-title-em: 14.2; }
html[lang="es"] body.bst-home-page { --home-tagline-em: 22.5; --home-title-em: 16.7; }
html[lang="de"] body.bst-home-page { --home-tagline-em: 24; --home-title-em: 19.5; }
html[lang="it"] body.bst-home-page { --home-tagline-em: 21; --home-title-em: 16.5; }
html[lang="zh-CN"] body.bst-home-page { --home-tagline-em: 15; --home-title-em: 7.5; }
html[lang="ar"] body.bst-home-page { --home-tagline-em: 16; --home-title-em: 6.4; }

@media (max-width: 600px) {
  body.bst-home-page .hero-blue { padding-top: 16px; padding-bottom: 22px; }
  body.bst-home-page .guinea-flag { width: 62px; height: 36px; }
  body.bst-home-page .motto { margin-top: 7px; }
  body.bst-home-page .hero-brand { margin-top: 12px; }
  body.bst-home-page .hero-brand h1 { margin-inline: auto; line-height: 1.2; }
  body.bst-home-page .hero-brand p { margin-top: 10px; line-height: 1.4; }
  body.bst-home-page .language-switcher { inset: 0 0 auto auto; }
  body.bst-home-page .language-switcher select { width: 52px; font-size: 16px; }
  body.bst-home-page #home { padding-top: 20px; }
  body.bst-home-page #home .role-grid { grid-template-columns: 1fr !important; gap: 10px; }
  body.bst-home-page #home .role-card { min-height: 58px; padding: 15px 16px; }
  body.bst-home-page #home .admin-access { margin-top: 16px; }
  body.bst-home-page #home .admin-card { min-height: 58px; padding: 15px 16px; }
  body.bst-home-page #androidDownloadCard { padding: 16px; }
  body.bst-home-page #androidDownloadCard .primary { width: 100%; padding-inline: 12px; }
  body.bst-home-page:not(.bst-inner-view) .bst-facebook-link { gap: 12px; }
  html[dir="rtl"] body.bst-home-page .language-switcher { inset: 0 auto auto 0; }
}
