/* ==========================================================================
   BOA shell: header with text-only main menu, page head, footer.
   ========================================================================== */

/* Header */
.bo-header { background: var(--tb-surface); border-bottom: 1px solid var(--tb-border); position: sticky; top: 0; z-index: 50; }
.bo-header__bar { height: var(--tb-header-h); display: flex; align-items: center; gap: 44px; }
.bo-logo { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; flex-shrink: 0; }
.bo-logo:hover { text-decoration: none; }
.bo-logo__name { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--tb-primary); }
.bo-logo__tag { font-size: 12px; font-weight: 500; color: var(--tb-text-muted); }

/* Main menu: text only, active item underlined */
.bo-nav { flex: 1; align-self: stretch; }
.bo-nav__list { display: flex; gap: 28px; height: 100%; margin: 0; padding: 0; list-style: none; }
.bo-nav__item { position: relative; display: flex; }
.bo-nav__link {
    display: flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none;
    font: 500 14px var(--tb-font); color: var(--tb-text-neutral); cursor: pointer;
}
.bo-nav__link:hover { color: var(--tb-text-strong); }
.bo-nav__link.is-active { color: var(--tb-text-strong); font-weight: 600; box-shadow: inset 0 -2px 0 var(--tb-primary); }
.bo-nav__link[aria-expanded="true"] { color: var(--tb-text-strong); }
.bo-nav__link[aria-expanded="true"] .ic--sm { transform: rotate(180deg); }
.bo-nav__menu {
    position: absolute; top: calc(100% - 4px); left: -12px; min-width: 220px; margin: 0; padding: 6px; list-style: none;
    background: var(--tb-surface); border: 1px solid var(--tb-border); border-radius: 12px; box-shadow: var(--tb-shadow-pop);
}
.bo-nav__menu[hidden] { display: none; }
.bo-nav__menu a { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--tb-text); }
.bo-nav__menu a:hover { background: var(--tb-ice-2); color: var(--tb-primary); }

/* Account */
.bo-account { position: relative; margin-left: auto; display: flex; align-items: center; gap: 8px; }
.bo-account__btn { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; border: 0; background: none; cursor: pointer; font: 500 14px var(--tb-font); color: var(--tb-text-strong); }
.bo-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--tb-primary); color: var(--tb-on-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.bo-account > .bo-nav__menu { top: calc(100% + 6px); left: auto; right: 0; }
.bo-menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--tb-border-strong); border-radius: var(--tb-radius-control); background: var(--tb-surface); color: var(--tb-primary); cursor: pointer; }
.bo-menu-btn .ic { width: 20px; height: 20px; }

/* Main + footer */
.bo-main { flex: 1; width: 100%; padding-top: 52px; padding-bottom: 64px; }
.bo-main--under-hero { padding-top: 0; }   /* content overlaps the page's hero band */
.bo-footer { background: var(--tb-surface); border-top: 1px solid var(--tb-border); }
.bo-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 16px; padding-bottom: 16px; font-size: 12.5px; color: var(--tb-text-muted); }

/* Tablet and phone: the menu folds into a panel under the header */
@media (max-width: 960px) {
    .bo-header__bar { gap: 16px; }
    .bo-menu-btn { display: inline-flex; }
    .bo-account__name { display: none; }
    .bo-nav { display: none; position: absolute; top: var(--tb-header-h); left: 0; right: 0; background: var(--tb-surface); border-bottom: 1px solid var(--tb-border); box-shadow: var(--tb-shadow-pop); padding: 8px 16px 16px; }
    .bo-nav.is-open { display: block; }
    .bo-nav__list { flex-direction: column; gap: 0; }
    .bo-nav__item { flex-direction: column; }
    .bo-nav__link { width: 100%; justify-content: space-between; min-height: 48px; font-size: 15px; }
    a.bo-nav__link { justify-content: flex-start; }
    .bo-nav__link.is-active { box-shadow: inset 3px 0 0 var(--tb-primary); padding-left: 12px; }
    .bo-nav .bo-nav__menu { position: static; box-shadow: none; border: 0; padding: 0 0 8px 8px; }}
@media (max-width: 560px) {
    :root { --tb-gutter: 16px; }
    .bo-main { padding-top: 32px; }
    .bo-main--under-hero { padding-top: 0; }
}
