/* Banana House: multilingual additions (footer, language switcher, notice band, RTL, fonts) */

/* ---- Header language switcher ---- */
.bh-lang { position: relative; }
.bh-lang > summary { list-style: none; cursor: pointer; }
.bh-lang > summary::-webkit-details-marker { display: none; }
.bh-lang__menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 1000;
  min-width: 190px; max-height: 70vh; overflow-y: auto;
  margin: 0; padding: 6px 0; list-style: none;
  background: var(--white, #fff); border: 1px solid var(--border, #ddd);
  border-radius: var(--radius-md, 8px); box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.bh-lang__menu a { display: block; padding: 7px 16px; font-size: .86rem; color: var(--gray-700, #333); text-decoration: none; }
.bh-lang__menu a:hover { background: var(--green-50, #eef7e8); color: var(--green-700, #2d7018); }
.bh-lang__menu a.is-current { font-weight: 700; color: var(--green-700, #2d7018); }
.bh-lang__menu small { color: #b45309; font-size: .7rem; }
@media (max-width: 660px) {
  .bh-lang > summary span { display: none; }
  .bh-lang > summary { padding: 6px 8px; }
}

/* ---- Footer (Egosaru layout: company / sitemap+services / contact / languages) ---- */
.bh-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
.bh-footer__grid.has-langs { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
.bh-footer__license { font-size: .8rem; color: rgba(255,255,255,.75); margin-bottom: 12px; line-height: 1.7; }
.bh-footer__subtitle { margin-top: 22px; }
.bh-footer__policy { font-size: .78rem; line-height: 1.7; color: rgba(255,255,255,.85); background: rgba(255,255,255,.08); border-radius: 6px; padding: 8px 10px; margin-bottom: 12px; }
.bh-footer__langbox > summary { list-style: none; cursor: pointer; }
.bh-footer__langbox > summary::-webkit-details-marker { display: none; }
.bh-footer__langbox > summary::after { content: " \25BE"; font-size: .7rem; }
.bh-footer__langs ul li { margin-bottom: 6px; }
.bh-footer__legal { display: inline-block; margin-left: 12px; }
.bh-footer__legal a { color: rgba(255,255,255,.6); text-decoration: underline; }
@media (max-width: 900px) {
  .bh-footer__grid, .bh-footer__grid.has-langs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 660px) {
  .bh-footer__grid, .bh-footer__grid.has-langs { grid-template-columns: 1fr; }
  .bh-footer__legal { display: block; margin: 6px 0 0; }
}

/* ---- Language notice band and translated pages ---- */
.bh-notice { background: #fff8e1; border-bottom: 1px solid #f3d27a; font-size: .88rem; line-height: 1.7; }
.bh-notice__inner { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.bh-notice__inner p { margin: 0; flex: 1; }
.bh-notice__title { font-weight: 700; margin-right: 6px; }
.bh-notice__close { background: none; border: 1px solid #d9b65a; border-radius: 4px; padding: 2px 10px; cursor: pointer; font-size: .78rem; }
.bh-mt-notice { font-size: .78rem; color: var(--text-muted, #777); text-align: center; padding: 16px 0 0; }
.bh-lang-box { background: #fff8e1; border: 1px solid #f3d27a; border-radius: var(--radius-md, 8px); padding: 16px 20px; margin-bottom: 28px; line-height: 1.8; }
.bh-lang-box strong { color: #7a4b00; }
.bh-channels { list-style: none; margin: 0; padding: 0; }
.bh-channels li { padding: 8px 0; border-bottom: 1px solid var(--border, #e5e5e5); font-size: .9rem; }
.bh-channels li:last-child { border-bottom: none; }
.bh-steps { counter-reset: bhstep; list-style: none; margin: 0; padding: 0; }
.bh-steps li { counter-increment: bhstep; position: relative; padding: 0 0 18px 48px; line-height: 1.8; }
.bh-steps li::before { content: counter(bhstep); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--green-600, #3a8c22); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.bh-prose { max-width: 860px; }
.bh-prose h2 { font-size: 1.35rem; margin: 32px 0 12px; color: var(--green-900, #1a4d10); }
.bh-prose h3 { font-size: 1.08rem; margin: 22px 0 8px; color: var(--green-700, #2d7018); }
.bh-prose p, .bh-prose li { line-height: 1.9; color: var(--gray-700, #333); }
.bh-prose p { margin-bottom: 14px; }
.bh-prose ul { list-style: disc; margin: 8px 0 16px 1.4em; }
.bh-prose a { color: var(--green-600, #3a8c22); text-decoration: underline; }
.bh-prose .info-table { margin: 12px 0 20px; }

/* ---- Fonts per script ---- */
html[lang^="zh-CN"] body, html[lang="zh"] body { font-family: "Noto Sans SC", var(--font-base, sans-serif); }
html[lang^="zh-TW"] body { font-family: "Noto Sans TC", var(--font-base, sans-serif); }
html[lang^="ko"] body { font-family: "Noto Sans KR", var(--font-base, sans-serif); }
html[lang^="hi"] body { font-family: "Noto Sans Devanagari", var(--font-base, sans-serif); }
html[lang^="th"] body { font-family: "Noto Sans Thai", var(--font-base, sans-serif); }
html[lang^="ar"] body { font-family: "Noto Sans Arabic", var(--font-base, sans-serif); }

/* ---- RTL (Arabic) ---- */
[dir="rtl"] .bh-lang__menu { right: auto; left: 0; }
[dir="rtl"] .bh-steps li { padding: 0 48px 18px 0; }
[dir="rtl"] .bh-steps li::before { left: auto; right: 0; }
[dir="rtl"] .bh-prose ul { margin: 8px 1.4em 16px 0; }
[dir="rtl"] .bh-footer__legal { margin-left: 0; margin-right: 12px; }
[dir="rtl"] .info-table th, [dir="rtl"] .info-table td { text-align: right; }
[dir="rtl"] .breadcrumb__list li + li::before { transform: scaleX(-1); display: inline-block; }
[dir="rtl"] .site-name, [dir="rtl"] .footer-logo-name, [dir="rtl"] .hero__catchcopy { unicode-bidi: plaintext; text-align: right; }

/* translated area/spot pages: long button labels wrap instead of overflowing */
html:not([lang^="ja"]) .sidebar-box .btn, html:not([lang^="ja"]) .bha-cta .btn { white-space: normal; height: auto; line-height: 1.5; }
