/*
 * Baihushe public presentation layer - shared responsive stylesheet.
 *
 * Scope: loaded ONLY for public views (bhs_enqueue_assets). Every rule is keyed to
 * a "bhs-" class or to body.bhs-public, so nothing leaks into the member center
 * (which never loads this file). No external fonts, icons or CDN runtime: icons come
 * from the Font Awesome already shipped with the theme, fonts are system stacks.
 *
 * Mobile-first. Breakpoints: 640 / 768 / 1024 / 1280. Verified widths in the plan:
 * 360 / 390 / 768 / 1024 / 1440 (NOT RUN here, see reports/IMPLEMENTATION.txt).
 */

/* ------------------------------------------------------------------ tokens */
body.bhs-public {
  --bhs-primary: #ac2c23;
  --bhs-primary-container: #ce4538;
  --bhs-primary-fixed: #ffdad5;
  --bhs-on-primary-fixed: #410001;
  --bhs-on-primary-fixed-variant: #8d1510;
  --bhs-tertiary: #984300;
  --bhs-tertiary-container: #bb5810;
  --bhs-tertiary-fixed: #ffdbca;
  --bhs-secondary: #855300;
  --bhs-secondary-fixed: #ffddb8;
  --bhs-secondary-container: #fea619;
  --bhs-on-secondary-fixed: #2a1700;
  --bhs-surface: #fff8f5;
  --bhs-low: #faf2ee;
  --bhs-container: #f4ece8;
  --bhs-high: #eee7e3;
  --bhs-highest: #e9e1dd;
  --bhs-lowest: #ffffff;
  --bhs-text: #1e1b19;
  --bhs-text-2: #59413e;
  --bhs-muted: #7a5f5b;
  --bhs-outline: #8d706c;
  --bhs-outline-variant: #e1bfba;
  --bhs-error: #ba1a1a;
  --bhs-error-container: #ffdad6;
  --bhs-on-error-container: #93000a;
  --bhs-ok: #1b6b3a;

  --bhs-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "WenQuanYi Micro Hei", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bhs-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", "Times New Roman", serif;

  --bhs-maxw: 1360px;
  --bhs-gutter: 16px;
  --bhs-header-h: 56px;
  --bhs-radius: 12px;
  --bhs-radius-lg: 16px;
  --bhs-shadow-sm: 0 1px 2px rgba(30, 27, 25, .06);
  --bhs-shadow-md: 0 4px 12px -2px rgba(30, 27, 25, .08), 0 2px 4px rgba(30, 27, 25, .04);
  --bhs-shadow-xl: 0 20px 25px -5px rgba(30, 27, 25, .1), 0 8px 10px -6px rgba(30, 27, 25, .08);
  --bhs-ring: 0 0 0 2px rgba(172, 44, 35, .28);

  background: var(--bhs-surface);
  color: var(--bhs-text);
  font-family: var(--bhs-font);
  font-size: 14px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip; /* never create a scroll container (keeps position: sticky working) */
}

@media (min-width: 640px) { body.bhs-public { --bhs-gutter: 24px; } }
@media (min-width: 768px) { body.bhs-public { --bhs-header-h: 72px; } }
@media (min-width: 1024px) { body.bhs-public { --bhs-gutter: 32px; --bhs-header-h: 88px; } }

/* Neutralise original global element styles inside bhs containers. */
.bhs-header, .bhs-main, .bhs-footer, .bhs-tabbar, .bhs-dlbar, .bhs-authpage {
  box-sizing: border-box;
}
.bhs-header *, .bhs-main *, .bhs-footer *, .bhs-tabbar *, .bhs-dlbar *, .bhs-authpage *,
.bhs-header *::before, .bhs-main *::before, .bhs-footer *::before, .bhs-tabbar *::before, .bhs-dlbar *::before, .bhs-authpage *::before,
.bhs-header *::after, .bhs-main *::after, .bhs-footer *::after, .bhs-tabbar *::after, .bhs-dlbar *::after, .bhs-authpage *::after {
  box-sizing: border-box;
}
/* Resets use :where() => ZERO specificity, so every component rule below (.bhs-btn, .bhs-search__btn,
   .bhs-prose p, ...) wins regardless of order. (Scoped element selectors such as ".bhs-main button
   { border-radius: 0 }" used to out-rank .bhs-btn and made the submit buttons square.) */
:where(.bhs-main, .bhs-header, .bhs-footer, .bhs-tabbar, .bhs-dlbar, .bhs-authpage) a {
  color: inherit;
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .2s ease, transform .2s ease;
}
:where(.bhs-main, .bhs-header, .bhs-footer, .bhs-tabbar, .bhs-dlbar, .bhs-authpage) a:hover { color: inherit; } /* beat main.min.css "a:hover" */
:where(.bhs-main, .bhs-authpage) :where(h1, h2, h3, h4), :where(.bhs-footer) h2 {
  margin: 0;
  color: var(--bhs-text);
  font-family: var(--bhs-font);
  letter-spacing: 0;
}
:where(.bhs-main) :where(p, ul, ol, figure), :where(.bhs-footer) :where(p, ul) { margin: 0; padding: 0; }
:where(.bhs-main, .bhs-footer, .bhs-header, .bhs-tabbar) :where(ul, ol) { list-style: none; }
:where(.bhs-main, .bhs-header, .bhs-footer, .bhs-authpage) img { max-width: 100%; }
:where(.bhs-main, .bhs-header, .bhs-footer, .bhs-dlbar, .bhs-authpage) button { font-family: inherit; }

.bhs-main :focus-visible, .bhs-header :focus-visible, .bhs-footer :focus-visible, .bhs-tabbar :focus-visible,
.bhs-dlbar :focus-visible, .bhs-authpage :focus-visible, .ri-popup :focus-visible {
  outline: 2px solid var(--bhs-primary);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- utilities */
.bhs-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.bhs-skip {
  position: absolute; left: 12px; top: -64px; z-index: 300;
  padding: 10px 16px; border-radius: 8px;
  background: var(--bhs-primary); color: #fff !important; font-weight: 700;
  transition: top .15s ease;
}
.bhs-skip:focus { top: 12px; }
.bhs-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.bhs-wrap { width: 100%; max-width: var(--bhs-maxw); margin-inline: auto; padding-inline: var(--bhs-gutter); }
.bhs-main { display: block; min-height: 60vh; outline: none; background: var(--bhs-surface); padding-bottom: 24px; }
.bhs-main [hidden], .bhs-header [hidden], .bhs-footer [hidden] { display: none !important; }
.bhs-grad {
  background: linear-gradient(90deg, var(--bhs-primary), var(--bhs-tertiary-container) 55%, var(--bhs-secondary));
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.bhs-bar { display: inline-block; width: 6px; height: 18px; border-radius: 3px; background: var(--bhs-primary); }
.bhs-hint { color: var(--bhs-muted); font-size: 13px; line-height: 20px; }

/* ------------------------------------------------- buttons, chips, badges */
.bhs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer;
  background: transparent; color: var(--bhs-primary);
}
.bhs-btn--sm { min-height: 40px; padding: 0 16px; }
.bhs-btn--lg { min-height: 48px; padding: 0 28px; font-size: 15px; border-radius: 14px; }
.bhs-btn--block { display: flex; width: 100%; }
.bhs-btn--solid { background: var(--bhs-primary); color: #fff !important; box-shadow: 0 2px 6px rgba(172, 44, 35, .22); }
.bhs-btn--solid:hover { background: var(--bhs-primary-container); }
.bhs-btn--ghost { border-color: var(--bhs-primary); color: var(--bhs-primary) !important; background: transparent; }
.bhs-btn--ghost:hover { background: rgba(255, 218, 213, .4); }
.bhs-btn--soft { background: var(--bhs-low); color: var(--bhs-text) !important; border-radius: 12px; box-shadow: var(--bhs-shadow-sm); }
.bhs-btn--soft:hover { background: var(--bhs-primary); color: #fff !important; }
.bhs-btn:disabled, .bhs-btn[disabled] { opacity: .6; cursor: not-allowed; }

.bhs-iconbtn {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 999px; background: transparent; color: var(--bhs-text-2); cursor: pointer; font-size: 18px;
}
.bhs-iconbtn:hover { background: var(--bhs-low); color: var(--bhs-primary); }

.bhs-chip {
  display: inline-flex; align-items: center; max-width: 100%;
  padding: 2px 10px; border-radius: 999px;
  font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: .02em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bhs-chip--solid { background: var(--bhs-primary); color: #fff !important; box-shadow: var(--bhs-shadow-sm); }
.bhs-chip--glass { background: rgba(255, 255, 255, .92); color: var(--bhs-text) !important; }
.bhs-chip--soft { background: var(--bhs-primary-fixed); color: var(--bhs-on-primary-fixed-variant) !important; }
a.bhs-chip:hover { filter: brightness(.96); }

.bhs-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 12px; line-height: 16px; font-weight: 700; white-space: nowrap;
}
.bhs-badge--rose { background: var(--bhs-primary-fixed); color: var(--bhs-on-primary-fixed); }
.bhs-badge--pin { background: var(--bhs-error-container); color: var(--bhs-on-error-container); border-radius: 6px; padding: 2px 10px; }
.bhs-badge--tagline { background: var(--bhs-secondary-fixed); color: var(--bhs-secondary); font-size: 11px; padding: 4px 12px; }
.bhs-badge__dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--bhs-primary); }

.bhs-taglist { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bhs-tag {
  display: inline-flex; align-items: center; min-height: 28px; padding: 2px 10px; border-radius: 8px;
  background: var(--bhs-container); color: var(--bhs-text-2) !important; font-size: 12px; line-height: 18px; font-weight: 700;
  overflow-wrap: anywhere;
}
a.bhs-tag:hover { background: var(--bhs-primary-fixed); color: var(--bhs-on-primary-fixed) !important; }
.bhs-tag--lg { min-height: 32px; padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--bhs-container); }

.bhs-link-arrow {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px;
  color: var(--bhs-primary) !important; font-size: 13px; font-weight: 700;
}
.bhs-link-arrow:hover { color: var(--bhs-primary-container) !important; }
.bhs-link-arrow .fas { font-size: 12px; transition: transform .2s ease; }
.bhs-link-arrow:hover .fas { transform: translateX(3px); }

/* ---------------------------------------------------------------- forms */
.bhs-search {
  position: relative; display: flex; align-items: center; gap: 4px; width: 100%; margin: 0;
  background: var(--bhs-lowest); border: 1px solid rgba(225, 191, 186, .7); border-radius: 999px;
  transition: border-color .15s ease, box-shadow .2s ease;
}
.bhs-search:focus-within { border-color: var(--bhs-primary); box-shadow: var(--bhs-ring); }
.bhs-search__icon { display: inline-flex; flex: 0 0 auto; padding-left: 14px; color: var(--bhs-outline); font-size: 14px; }
.bhs-search input.bhs-search__input,
.bhs-search input.bhs-search__input:focus,
.bhs-search input.bhs-search__input:active {
  -webkit-appearance: none; appearance: none;
  flex: 1 1 auto; min-width: 0; width: 100%; height: 44px; margin: 0; padding: 0 8px;
  border: 0 !important; border-radius: 0; outline: 0 !important; box-shadow: none !important;
  background: transparent !important; color: var(--bhs-text);
  font: inherit; font-size: 14px; line-height: 24px;
}
.bhs-search input.bhs-search__input::placeholder { color: var(--bhs-outline); opacity: 1; }
.bhs-search input.bhs-search__input::-webkit-search-decoration,
.bhs-search input.bhs-search__input::-webkit-search-cancel-button,
.bhs-search input.bhs-search__input::-webkit-search-results-button,
.bhs-search input.bhs-search__input::-webkit-search-results-decoration { display: none; -webkit-appearance: none; }
.bhs-search input.bhs-search__input:-webkit-autofill { -webkit-text-fill-color: var(--bhs-text); transition: background-color 9999s ease-out 0s; }
.bhs-search__btn {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  min-height: 40px; margin: 2px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--bhs-primary); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease;
}
.bhs-search__btn:hover { background: var(--bhs-primary-container); }

.bhs-search--hero { border-radius: 16px; padding: 6px 6px 6px 10px; background: var(--bhs-lowest); box-shadow: var(--bhs-shadow-sm); }
.bhs-search--hero .bhs-search__icon { color: var(--bhs-primary); font-size: 18px; padding-left: 8px; }
.bhs-search--hero input.bhs-search__input { height: 48px; font-size: 15px; }
.bhs-search--hero .bhs-search__btn { min-height: 44px; border-radius: 12px; padding: 0 22px; font-size: 15px; margin: 0; }
.bhs-search--page { border-radius: 14px; background: var(--bhs-low); padding: 4px 4px 4px 8px; border-color: transparent; }
.bhs-search--page:focus-within { background: var(--bhs-lowest); }
.bhs-search--page .bhs-search__btn { border-radius: 10px; min-height: 44px; margin: 0; padding: 0 24px; }
.bhs-search--panel, .bhs-search--generic { border-radius: 14px; }
.bhs-search--header { background: var(--bhs-low); }
.bhs-search--header input.bhs-search__input { height: 38px; width: 150px; font-size: 13px; }
.bhs-search--header .bhs-search__btn { min-height: 32px; padding: 0 14px; font-size: 12px; margin: 3px; }

/* Auth / comment inputs (no black inner frame: the ring sits on the wrapper). */
.bhs-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; }
.bhs-label { display: block; color: var(--bhs-text); font-size: 13px; font-weight: 700; line-height: 18px; }
.bhs-req { color: var(--bhs-primary); }
.bhs-control {
  position: relative; display: flex; align-items: center; width: 100%;
  background: var(--bhs-low); border-radius: 10px; box-shadow: var(--bhs-shadow-sm);
  transition: background-color .15s ease, box-shadow .2s ease;
}
.bhs-control:hover { box-shadow: var(--bhs-shadow-md); }
.bhs-control:focus-within { background: var(--bhs-lowest); box-shadow: 0 0 0 2px var(--bhs-primary); }
.bhs-control__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--bhs-outline); font-size: 15px; pointer-events: none; }
.bhs-control:focus-within .bhs-control__icon { color: var(--bhs-primary); }
.bhs-control input.bhs-input,
.bhs-control input.bhs-input:focus {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 48px; margin: 0; padding: 0 16px 0 42px;
  border: 0 !important; border-radius: 10px; outline: 0 !important; box-shadow: none !important;
  background: transparent !important; color: var(--bhs-text);
  font: inherit; font-size: 15px; line-height: 24px;
}
.bhs-control input.bhs-input--pw { padding-right: 48px; }
.bhs-control input.bhs-input::placeholder { color: rgba(141, 112, 108, .8); opacity: 1; }
.bhs-control input.bhs-input:-webkit-autofill { -webkit-text-fill-color: var(--bhs-text); transition: background-color 9999s ease-out 0s; }
.bhs-pwtoggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 0; border-radius: 8px; background: transparent; color: var(--bhs-outline); cursor: pointer;
}
.bhs-pwtoggle:hover { color: var(--bhs-text); }
.bhs-field > input.bhs-input, .bhs-field > textarea.bhs-input {
  -webkit-appearance: none; appearance: none; width: 100%; margin: 0; padding: 12px 14px;
  border: 1px solid var(--bhs-outline-variant); border-radius: 12px; outline: 0; box-shadow: none;
  background: var(--bhs-lowest); color: var(--bhs-text); font: inherit; font-size: 14px; line-height: 22px;
  transition: border-color .15s ease, box-shadow .2s ease;
}
.bhs-field > input.bhs-input:focus, .bhs-field > textarea.bhs-input:focus { border-color: var(--bhs-primary); box-shadow: var(--bhs-ring); }
.bhs-field > textarea.bhs-input { min-height: 112px; resize: vertical; }
.bhs-field.is-invalid .bhs-control { box-shadow: 0 0 0 2px var(--bhs-error); background: #fff; }
.bhs-field__error { margin: 0; color: var(--bhs-error); font-size: 12px; line-height: 18px; }

.bhs-check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; color: var(--bhs-text-2); font-size: 13px; }
.bhs-check__input { width: 18px; height: 18px; margin: 0; accent-color: var(--bhs-primary); cursor: pointer; }

/* --------------------------------------------------------------- header */
.bhs-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--bhs-high);
  box-shadow: 0 4px 24px -4px rgba(40, 25, 20, .05);
  padding-top: env(safe-area-inset-top, 0px);
}
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .bhs-header { background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px); }
}
body.admin-bar .bhs-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .bhs-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .bhs-header { top: 0; } }

.bhs-header__bar { display: flex; align-items: center; gap: 8px; min-height: var(--bhs-header-h); }
.bhs-back { display: none; margin-left: -10px; margin-right: -4px; color: var(--bhs-text); }
@media (max-width: 767px) { body.bhs-kind-single .bhs-back, body.bhs-kind-page .bhs-back { display: inline-flex; } }
.bhs-brand { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 44px; margin-right: auto; }
.bhs-brand__img { display: block; width: auto; height: 44px; max-width: none; object-fit: contain; transition: transform .3s ease; }
.bhs-brand:hover .bhs-brand__img { transform: scale(1.02); }
.bhs-brand__text { font-size: 20px; font-weight: 800; color: var(--bhs-primary); letter-spacing: .02em; }
@media (min-width: 768px) { .bhs-brand__img { height: 52px; } .bhs-brand { margin-right: 8px; } }
@media (min-width: 1024px) { .bhs-brand__img { height: 64px; } .bhs-header__bar { gap: 16px; } }

.bhs-badge--tagline { display: none; }
@media (min-width: 1280px) { .bhs-badge--tagline { display: inline-flex; } }

.bhs-nav { display: none; }
@media (min-width: 768px) {
  .bhs-nav { display: block; margin-right: auto; }
  .bhs-nav__list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
  .bhs-nav__link {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
    border-radius: 12px; color: var(--bhs-text) !important; font-size: 15px; font-weight: 600; white-space: nowrap;
  }
  .bhs-nav__link:hover { background: var(--bhs-low); color: var(--bhs-primary) !important; }
  .bhs-nav__link.is-current { background: var(--bhs-primary-container); color: #fff !important; }
  .bhs-nav__icon { display: inline-flex; font-size: 15px; color: var(--bhs-primary); }
  .bhs-nav__icon--language { color: var(--bhs-tertiary); }
  .bhs-nav__icon--spark { color: var(--bhs-secondary); }
  .bhs-nav__link.is-current .bhs-nav__icon { color: #fff; }
}
@media (min-width: 1024px) { .bhs-nav__link { padding: 0 14px; font-size: 15px; } }
@media (min-width: 1280px) { .bhs-nav__link { padding: 0 20px; font-size: 16px; } }
.bhs-nav__list { flex-wrap: nowrap; }
.bhs-header__bar { flex-wrap: nowrap; }

.bhs-header__tools { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; margin-left: auto; }
.bhs-prose h2, .bhs-prose h3, .bhs-prose h4 { scroll-margin-top: calc(var(--bhs-header-h) + 16px); }
/* Inline header search only where it really fits (>=1280px); 768-1279px use the search icon + drawer,
   so the three category entries, the login/register pair and the account menu never overflow at 1024px. */
.bhs-header__search { display: none; }
@media (min-width: 1280px) {
  .bhs-header__search { display: block; }
  .bhs-search-toggle { display: none; }
}
/* The approved mobile header has no bell; the original popup stays reachable programmatically (homepage CTA, auto-open). */
@media (max-width: 767px) { .bhs-header .toggle-notify { display: none; } }
/* Mobile (M03/M05/M06): plain "登录 / 注册" text links, 注册 emphasised; pills from 768px. */
.bhs-auth-links { display: flex; align-items: center; gap: 0; }
.bhs-auth-links .bhs-btn { min-height: 44px; padding: 0 8px; font-size: 14px; border-radius: 8px; border-color: transparent; background: transparent; box-shadow: none; color: var(--bhs-text) !important; }
.bhs-auth-links .bhs-btn--solid { color: var(--bhs-primary) !important; font-weight: 800; }
.bhs-auth-links .bhs-btn:hover { background: var(--bhs-low); }
.bhs-auth-links__sep { color: var(--bhs-outline-variant); }
@media (min-width: 768px) {
  .bhs-auth-links { gap: 6px; }
  .bhs-auth-links__sep { display: none; }
  .bhs-auth-links .bhs-btn { min-height: 38px; padding: 0 14px; font-size: 13px; border-radius: 999px; }
  .bhs-auth-links .bhs-btn--ghost { border-color: var(--bhs-primary); color: var(--bhs-primary) !important; }
  .bhs-auth-links .bhs-btn--ghost:hover { background: rgba(255, 218, 213, .4); }
  .bhs-auth-links .bhs-btn--solid { background: var(--bhs-primary); border-color: var(--bhs-primary); color: #fff !important; box-shadow: 0 2px 6px rgba(172, 44, 35, .22); }
  .bhs-auth-links .bhs-btn--solid:hover { background: var(--bhs-primary-container); }
}
@media (min-width: 1280px) { .bhs-auth-links { gap: 8px; margin-left: 4px; } .bhs-auth-links .bhs-btn { min-height: 40px; padding: 0 18px; font-size: 14px; } }
.bhs-burger { display: inline-flex; }
@media (min-width: 768px) { .bhs-burger { display: none; } }

.bhs-search-panel, .bhs-menu {
  position: absolute; left: 0; right: 0; top: 100%; /* overlay under the sticky header, no layout shift */
  border-top: 1px solid var(--bhs-high);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 20px 40px -8px rgba(28, 25, 23, .12);
}
.bhs-search-panel .bhs-wrap { padding-block: 12px; }
.bhs-menu .bhs-wrap { padding-block: 16px 20px; }
.bhs-menu__title { margin: 0 0 8px; color: var(--bhs-muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.bhs-menu__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; }
.bhs-menu__link {
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 8px; text-align: center;
  border-radius: 10px; background: var(--bhs-low); color: var(--bhs-text) !important; font-size: 14px; font-weight: 600; overflow-wrap: anywhere;
}
.bhs-menu__link:hover { background: var(--bhs-primary-fixed); }
.bhs-menu__link.is-current { background: var(--bhs-primary); color: #fff !important; }
.bhs-menu__label { display: inline-flex; align-items: center; gap: 10px; }
@media (min-width: 768px) { .bhs-menu { display: none !important; } }
@media (min-width: 1280px) { .bhs-search-panel { display: none !important; } }

.bhs-user { position: relative; }
.bhs-user__btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px 0 4px;
  border: 0; border-radius: 999px; background: transparent; color: var(--bhs-text); cursor: pointer; font-size: 13px; font-weight: 600;
}
.bhs-user__btn:hover { background: var(--bhs-low); }
.bhs-user__avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--bhs-container); }
.bhs-user__name { display: none; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bhs-user__caret { display: none; font-size: 10px; color: var(--bhs-outline); }
@media (min-width: 1280px) { .bhs-user__name, .bhs-user__caret { display: inline; } }
.bhs-user__panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 120; min-width: 180px; padding: 8px;
  background: var(--bhs-lowest); border: 1px solid var(--bhs-high); border-radius: 14px; box-shadow: var(--bhs-shadow-xl);
}
.bhs-user__list { margin: 0; padding: 0; }
.bhs-user__link { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--bhs-text) !important; font-size: 14px; font-weight: 600; }
.bhs-user__link:hover { background: var(--bhs-low); color: var(--bhs-primary) !important; }
.bhs-user__link.is-logout { color: var(--bhs-muted) !important; border-top: 1px solid var(--bhs-high); border-radius: 0 0 10px 10px; margin-top: 4px; }

/* -------------------------------------------------------- mobile bottom */
.bhs-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 0 4px env(safe-area-inset-bottom, 0px);
  background: rgba(255, 248, 245, .96);
  box-shadow: 0 -1px 12px rgba(28, 25, 23, .06);
}
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .bhs-tabbar { background: rgba(255, 248, 245, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}
.bhs-tabbar__list { display: flex; justify-content: space-around; align-items: stretch; height: 60px; margin: 0; padding: 0; }
.bhs-tabbar__list > li { flex: 1 1 0; min-width: 0; }
.bhs-tabbar__link {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: 100%; min-height: 48px; padding: 4px 2px;
  color: var(--bhs-text-2) !important; font-size: 11px; line-height: 16px; font-weight: 600; text-align: center;
}
.bhs-tabbar__link .fas, .bhs-tabbar__link .far { font-size: 20px; line-height: 24px; }
.bhs-tabbar__link span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bhs-tabbar__link.is-current { color: var(--bhs-primary) !important; font-weight: 800; }
@media (min-width: 768px) { .bhs-tabbar { display: none; } }
body.bhs-has-dlbar .bhs-tabbar { display: none; }
body:has(.bhs-dlbar) .bhs-tabbar { display: none; }

/* ----------------------------------------------------------------- footer */
.bhs-footer { margin-top: 32px; padding: 32px 0 calc(24px + 72px + env(safe-area-inset-bottom, 0px)); background: var(--bhs-low); border-top: 1px solid var(--bhs-high); color: var(--bhs-text-2); }
@media (min-width: 768px) { .bhs-footer { margin-top: 40px; padding: 40px 0 28px; } }
.bhs-footer__grid { display: grid; grid-template-columns: 1fr; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--bhs-high); }
/* Brand column + a nested column set. (An auto-fit repeat() cannot be mixed with a flexible "fr" track in
   the same track list - that declaration is invalid - so the variable number of real footer groups lives in .bhs-footer__cols.) */
.bhs-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; }
.bhs-footer__cols:empty { display: none; }
@media (min-width: 768px) {
  .bhs-footer__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 2.6fr); gap: 32px; }
  .bhs-footer__cols { gap: 32px; }
}
.bhs-footer__logo-img { display: block; width: auto; height: 40px; max-width: none; object-fit: contain; }
.bhs-footer__logo-text { font-size: 20px; font-weight: 800; color: var(--bhs-primary); }
.bhs-footer__desc { margin-top: 12px; max-width: 480px; font-size: 14px; line-height: 24px; color: var(--bhs-text-2); }
.bhs-footer__heading { margin: 0 0 12px; font-size: 16px; line-height: 24px; font-weight: 700; color: var(--bhs-text); }
.bhs-footer__list { display: flex; flex-direction: column; gap: 4px; }
.bhs-footer__list a { display: inline-flex; align-items: center; min-height: 32px; color: var(--bhs-text-2) !important; font-size: 14px; }
.bhs-footer__list a:hover { color: var(--bhs-primary) !important; }
.bhs-footer__contact { font-size: 14px; line-height: 24px; color: var(--bhs-text-2); overflow-wrap: anywhere; }
.bhs-footer__contact a { text-decoration: underline; }
.bhs-footer__friends { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; padding: 16px 0 0; font-size: 13px; }
.bhs-footer__friends ul { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.bhs-footer__friends a:hover { color: var(--bhs-primary) !important; }
.bhs-footer__legal { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; font-size: 13px; line-height: 20px; color: var(--bhs-muted); }
.bhs-footer__legal a { text-decoration: underline; }
@media (min-width: 768px) { .bhs-footer__legal { flex-direction: row; justify-content: space-between; align-items: center; } }

/* -------------------------------------------------- shared page elements */
.bhs-crumbs { margin: 0 0 12px; font-size: 13px; line-height: 20px; color: var(--bhs-text-2); }
.bhs-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; padding: 0; }
.bhs-crumbs li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; font-weight: 600; }
.bhs-crumbs li + li::before { content: "/"; color: var(--bhs-outline-variant); font-weight: 400; }
.bhs-crumbs a { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; color: var(--bhs-text-2) !important; }
.bhs-crumbs a:hover { color: var(--bhs-primary) !important; }
.bhs-crumbs [aria-current="page"] { color: var(--bhs-primary); }
.bhs-crumbs [aria-current="page"] > span { overflow-wrap: anywhere; }
.bhs-crumbs--center { max-width: 880px; margin-inline: auto; }
.bhs-eyebrow { margin: 0 0 12px; display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--bhs-text-2); }
.bhs-eyebrow strong { color: var(--bhs-primary); }

.bhs-pagehead {
  position: relative; overflow: hidden; margin: 16px 0; padding: 20px 16px;
  background: var(--bhs-lowest); border: 1px solid var(--bhs-high); border-radius: var(--bhs-radius-lg); box-shadow: var(--bhs-shadow-sm);
}
.bhs-pagehead__glow { position: absolute; right: -48px; top: -48px; width: 256px; height: 256px; border-radius: 50%; background: rgba(172, 44, 35, .06); filter: blur(48px); pointer-events: none; }
.bhs-pagehead > *:not(.bhs-pagehead__glow) { position: relative; }
.bhs-pagehead__main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.bhs-pagehead__bar { width: 10px; height: 24px; border-radius: 999px; background: var(--bhs-primary); }
.bhs-pagehead__title { font-size: 24px; line-height: 32px; font-weight: 700; overflow-wrap: anywhere; }
.bhs-pagehead__desc { margin-top: 8px; max-width: 760px; color: var(--bhs-text-2); font-size: 14px; line-height: 24px; overflow-wrap: anywhere; }
@media (min-width: 1024px) {
  .bhs-pagehead { margin: 24px 0; padding: 28px 40px; }
  .bhs-pagehead__title { font-size: 30px; line-height: 40px; }
  .bhs-pagehead__desc { font-size: 16px; line-height: 26px; }
}

.bhs-pagehead--search .bhs-search { margin-top: 8px; }
/* Mobile search (M04/M04E): compact search card, no breadcrumb eyebrow, count line under it. */
@media (max-width: 767px) {
  .bhs-searchpage .bhs-pagehead { margin: 8px 0 12px; padding: 8px; }
  .bhs-searchpage .bhs-pagehead__glow, .bhs-searchpage .bhs-eyebrow { display: none; }
  .bhs-searchpage .bhs-search--page { padding: 4px 4px 4px 6px; }
  .bhs-searchpage .bhs-search--page .bhs-search__btn { min-height: 44px; padding: 0 16px; }
  .bhs-searchpage .bhs-searchpage__summary { margin-top: 10px; padding: 0 4px; font-size: 13px; }
}
.bhs-searchpage__summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; color: var(--bhs-text); font-size: 14px; line-height: 24px; }
.bhs-searchpage__summary strong { color: var(--bhs-primary); font-weight: 700; }
.bhs-filter { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; padding: 16px; background: var(--bhs-lowest); border: 1px solid var(--bhs-high); border-radius: var(--bhs-radius-lg); box-shadow: var(--bhs-shadow-sm); }
.bhs-filter__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.bhs-filter__label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--bhs-text-2); white-space: nowrap; }
.bhs-filter__label .fas { color: var(--bhs-primary); font-size: 12px; }
.bhs-filter__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.bhs-filter__chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 10px;
  background: var(--bhs-container); color: var(--bhs-text-2) !important; font-size: 13px; font-weight: 600;
}
.bhs-filter__chip:hover { background: var(--bhs-high); color: var(--bhs-text) !important; }
.bhs-filter__chip.is-active { background: var(--bhs-primary); color: #fff !important; box-shadow: var(--bhs-shadow-sm); }

.bhs-segment { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 4px; background: var(--bhs-container); border-radius: 12px; list-style: none; }
.bhs-segment a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 8px;
  color: var(--bhs-text-2) !important; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.bhs-segment a:hover { color: var(--bhs-text) !important; }
.bhs-segment a.is-active { background: var(--bhs-lowest); color: var(--bhs-primary) !important; box-shadow: var(--bhs-shadow-sm); }
.bhs-filter__row--sort .bhs-segment { background: var(--bhs-low); }
@media (min-width: 1024px) { .bhs-filter { padding: 20px 24px; } .bhs-filter__row--sort { margin-left: auto; } }

/* Mobile archive (M02): flat heading, horizontally scrollable 44px sub-category pills, 3-up sort grid. */
@media (max-width: 767px) {
  .bhs-archive .bhs-pagehead { margin: 4px 0 8px; padding: 12px 0 4px; background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .bhs-archive .bhs-pagehead__glow { display: none; }
  .bhs-filter { padding: 12px; gap: 10px; }
  .bhs-filter__row { flex-direction: column; align-items: stretch; gap: 8px; }
  .bhs-filter__chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 2px 12px 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .bhs-filter__chips::-webkit-scrollbar { display: none; }
  .bhs-filter__chip { flex: 0 0 auto; min-height: 44px; padding: 0 16px; border-radius: 999px; white-space: nowrap; }
  .bhs-filter__row--sort .bhs-segment { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .bhs-filter__row--sort .bhs-segment a { justify-content: center; min-height: 44px; text-align: center; white-space: normal; line-height: 18px; }
}
.bhs-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 0; }
@media (min-width: 640px) { .bhs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1024px) { .bhs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bhs-stack { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1024px) { .bhs-stack { gap: 20px; } }

.bhs-cover { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bhs-container); }
.bhs-cover__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .5s ease; }
.bhs-cover:empty::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--bhs-container), var(--bhs-high)); }

.bhs-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--bhs-lowest); border: 1px solid var(--bhs-high); border-radius: var(--bhs-radius-lg); box-shadow: var(--bhs-shadow-sm);
  transition: box-shadow .3s ease, transform .3s ease;
}
.bhs-card:hover { box-shadow: var(--bhs-shadow-xl); transform: translateY(-3px); }
.bhs-card:hover .bhs-cover__img, .bhs-row:hover .bhs-cover__img { transform: scale(1.04); }
.bhs-card__media { position: relative; }
.bhs-card__media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(51, 48, 45, .5), transparent 45%, rgba(0, 0, 0, .16)); }
.bhs-card--wiki .bhs-card__media::after { background: linear-gradient(to top, rgba(0, 0, 0, .32), transparent 55%); }
.bhs-card__imglink { display: block; }
.bhs-card__chips { position: absolute; left: 12px; top: 12px; right: 12px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.bhs-card__body { display: flex; flex-direction: column; flex: 1 1 auto; gap: 8px; padding: 16px; }
.bhs-card__title { font-size: 16px; line-height: 24px; font-weight: 700; overflow-wrap: anywhere; word-break: break-word; }
.bhs-card__title a { color: var(--bhs-text) !important; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.bhs-card:hover .bhs-card__title a { color: var(--bhs-primary) !important; }
.bhs-card__excerpt { color: var(--bhs-text-2); font-size: 13px; line-height: 20px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.bhs-card__excerpt--3 { -webkit-line-clamp: 3; line-clamp: 3; }
/* Real post tags on cards: small chips, long tags are ellipsised inside the card width. */
.bhs-card__tags { gap: 6px; }
.bhs-card__tags li { min-width: 0; max-width: 100%; }
.bhs-card__tags .bhs-tag { max-width: 100%; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 24px; padding: 2px 8px; font-weight: 600; }
.bhs-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--bhs-high); }
.bhs-card__foot--wrap { flex-wrap: wrap; justify-content: flex-start; gap: 4px 16px; }
.bhs-card__date { color: var(--bhs-muted); font-size: 12px; line-height: 18px; }
.bhs-card__cta {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 10px;
  background: var(--bhs-container); color: var(--bhs-primary) !important; font-size: 13px; font-weight: 700; white-space: nowrap;
}
.bhs-card__cta .fas { font-size: 11px; }
.bhs-card__cta:hover { background: var(--bhs-primary); color: #fff !important; }
@media (min-width: 768px) { .bhs-card__title a { -webkit-line-clamp: 2; line-clamp: 2; } .bhs-card__body { padding: 18px 20px; } }

/* Result row (search) */
.bhs-row { display: flex; flex-direction: column; gap: 14px; padding: 14px; background: var(--bhs-lowest); border: 1px solid var(--bhs-high); border-radius: var(--bhs-radius); box-shadow: var(--bhs-shadow-sm); transition: box-shadow .2s ease; }
.bhs-row:hover { box-shadow: var(--bhs-shadow-md); }
.bhs-row__media { position: relative; flex: 0 0 auto; width: 100%; border-radius: 10px; overflow: hidden; }
.bhs-row__media .bhs-card__chips { left: 8px; top: 8px; }
.bhs-row__body { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-width: 0; flex: 1 1 auto; }
.bhs-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--bhs-muted); font-size: 12px; }
.bhs-row__title { font-size: 18px; line-height: 26px; font-weight: 700; overflow-wrap: anywhere; word-break: break-word; }
.bhs-row__title a { color: var(--bhs-text) !important; }
.bhs-row:hover .bhs-row__title a { color: var(--bhs-primary) !important; }
.bhs-mark { background: transparent; color: var(--bhs-primary); font-weight: 800; padding: 0; }
.bhs-row__excerpt { color: var(--bhs-text-2); font-size: 14px; line-height: 24px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.bhs-row__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 4px; }
.bhs-link-arrow .fas { font-size: 11px; }
@media (min-width: 768px) {
  .bhs-row { flex-direction: row; gap: 20px; padding: 20px; }
  .bhs-row__media { width: 288px; }
  .bhs-row--plain .bhs-row__media { display: none; }
  .bhs-row__title { font-size: 22px; line-height: 30px; }
}
@media (min-width: 1024px) { .bhs-row__media { width: 320px; } }

/* Announcement row (D11) */
.bhs-notice-row { display: flex; flex-direction: column; gap: 14px; padding: 18px; background: var(--bhs-lowest); border: 1px solid var(--bhs-high); border-radius: var(--bhs-radius-lg); box-shadow: var(--bhs-shadow-sm); transition: box-shadow .2s ease; }
.bhs-notice-row:hover { box-shadow: var(--bhs-shadow-md); }
.bhs-notice-row__main { display: flex; flex-direction: column; gap: 10px; min-width: 0; flex: 1 1 auto; }
.bhs-notice-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--bhs-muted); font-size: 12px; }
.bhs-notice-row__title { font-size: 18px; line-height: 26px; font-weight: 700; overflow-wrap: anywhere; }
.bhs-notice-row__title a { color: var(--bhs-text) !important; }
.bhs-notice-row:hover .bhs-notice-row__title a { color: var(--bhs-primary) !important; }
.bhs-notice-row__excerpt { color: var(--bhs-text-2); font-size: 14px; line-height: 24px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.bhs-notice-row__cta { align-self: flex-start; }
@media (min-width: 768px) { .bhs-notice-row { flex-direction: row; align-items: center; justify-content: space-between; padding: 24px; } .bhs-notice-row__title { font-size: 22px; line-height: 30px; } }

/* Pager */
.bhs-pager { display: flex; flex-direction: column; gap: 14px; align-items: center; margin-top: 28px; padding: 14px 16px; background: var(--bhs-lowest); border: 1px solid var(--bhs-high); border-radius: var(--bhs-radius-lg); box-shadow: var(--bhs-shadow-sm); }
.bhs-pager__list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 0; }
.bhs-pager__list > li { display: inline-flex; }
.bhs-pager__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 40px; min-height: 40px; padding: 0 10px;
  border-radius: 12px; background: var(--bhs-container); color: var(--bhs-text-2) !important; font-size: 13px; font-weight: 700;
}
a.bhs-pager__btn:hover { background: var(--bhs-high); color: var(--bhs-text) !important; }
.bhs-pager__btn.is-current { background: var(--bhs-primary); color: #fff !important; box-shadow: var(--bhs-shadow-sm); }
.bhs-pager__btn--dir { padding: 0 14px; }
.bhs-pager__btn--dir .fas { font-size: 11px; }
.bhs-pager__btn.is-disabled { background: var(--bhs-low); color: rgba(89, 65, 62, .45) !important; cursor: not-allowed; }
.bhs-pager__gap { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; color: var(--bhs-muted); }
.bhs-pager__info { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; color: var(--bhs-muted); font-size: 13px; }
.bhs-pager__jump { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.bhs-pager__jump:not([hidden]) { display: inline-flex; }
.bhs-pager__jump input {
  -webkit-appearance: textfield; appearance: textfield; width: 64px; height: 40px; padding: 0 8px; text-align: center;
  border: 1px solid transparent; border-radius: 10px; outline: 0; box-shadow: none; background: var(--bhs-container); color: var(--bhs-text); font: inherit; font-size: 13px; font-weight: 700;
}
.bhs-pager__jump input:focus { border-color: var(--bhs-primary); box-shadow: var(--bhs-ring); background: #fff; }
.bhs-pager__go { min-height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--bhs-container); color: var(--bhs-text-2); font-weight: 700; cursor: pointer; }
.bhs-pager__go:hover { background: var(--bhs-primary-fixed); color: var(--bhs-on-primary-fixed); }
@media (min-width: 768px) { .bhs-pager { flex-direction: row; justify-content: space-between; padding: 16px 24px; } }

/* Empty / error / expired */
.bhs-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 8px 0; padding: 40px 20px; text-align: center; background: var(--bhs-lowest); border: 1px solid var(--bhs-high); border-radius: var(--bhs-radius-lg); box-shadow: var(--bhs-shadow-sm); }
.bhs-empty__icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--bhs-container); color: var(--bhs-outline); font-size: 26px; }
.bhs-empty--warn .bhs-empty__icon { background: var(--bhs-error-container); color: var(--bhs-error); }
.bhs-empty__title { font-size: 18px; line-height: 26px; font-weight: 700; overflow-wrap: anywhere; }
.bhs-empty__text { max-width: 460px; color: var(--bhs-text-2); font-size: 14px; line-height: 24px; }
.bhs-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

/* ------------------------------------------------------------------- home */
.bhs-home { padding-top: 16px; display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 1024px) { .bhs-home { padding-top: 24px; gap: 40px; } }
.bhs-hero { position: relative; overflow: hidden; padding: 24px 16px; background: var(--bhs-lowest); border: 1px solid var(--bhs-high); border-radius: var(--bhs-radius-lg); box-shadow: var(--bhs-shadow-sm); }
.bhs-hero__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 85% 20%, rgba(255, 218, 213, .5) 0%, transparent 60%); }
.bhs-hero__deco { position: absolute; right: -24px; bottom: -28px; font-size: 220px; color: var(--bhs-primary); opacity: .05; pointer-events: none; }
.bhs-hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 896px; margin: 0 auto; text-align: center; }
.bhs-hero__eyebrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.bhs-hero__sep { color: var(--bhs-outline); }
.bhs-hero__note { color: var(--bhs-text-2); font-size: 13px; font-weight: 600; letter-spacing: .03em; }
.bhs-hero__title { font-size: 30px; line-height: 38px; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.bhs-hero__desc { max-width: 672px; color: var(--bhs-text-2); font-size: 15px; line-height: 26px; }
.bhs-hero__search { width: 100%; max-width: 672px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bhs-scopes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 4px; background: var(--bhs-container); border-radius: 12px; max-width: 100%; }
.bhs-scopes:not([hidden]) { display: flex; }
.bhs-scopes__btn { min-height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--bhs-text-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.bhs-scopes__btn:hover { color: var(--bhs-text); }
.bhs-scopes__btn.is-active { background: var(--bhs-lowest); color: var(--bhs-primary); box-shadow: var(--bhs-shadow-sm); }
.bhs-hots { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.bhs-hots__label { color: var(--bhs-muted); font-size: 12px; font-weight: 700; }
.bhs-hots__tag { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--bhs-container); color: var(--bhs-primary) !important; font-size: 12px; font-weight: 700; }
.bhs-hots__tag:hover { background: var(--bhs-high); }
/* Mobile hero (M01): left aligned gradient card, no scope tabs, compact search. */
@media (max-width: 639px) {
  .bhs-hero { padding: 18px 16px; background: linear-gradient(135deg, var(--bhs-low), var(--bhs-container) 60%, var(--bhs-high)); border: 0; border-radius: var(--bhs-radius); }
  .bhs-hero__glow, .bhs-hero__deco { display: none; }
  .bhs-hero__inner { align-items: flex-start; text-align: left; gap: 10px; }
  .bhs-hero__eyebrow { justify-content: flex-start; }
  .bhs-hero__sep, .bhs-hero__note { display: none; }
  .bhs-hero__title { font-size: 24px; line-height: 32px; }
  .bhs-hero__desc { font-size: 13px; line-height: 20px; }
  .bhs-scopes { display: none !important; }
  .bhs-hots { justify-content: flex-start; }
  .bhs-search--hero { border-radius: 12px; padding: 4px 4px 4px 6px; }
  .bhs-search--hero .bhs-search__btn { min-height: 44px; padding: 0 16px; font-size: 14px; }
}
@media (min-width: 768px) { .bhs-hero { padding: 36px 32px; } .bhs-hero__title { font-size: 36px; line-height: 46px; } }
@media (min-width: 1024px) { .bhs-hero { padding: 40px; } .bhs-hero__title { font-size: 42px; line-height: 54px; letter-spacing: -.02em; } .bhs-hero__desc { font-size: 16px; } .bhs-hero__deco { font-size: 300px; right: -10px; } }

.bhs-notice { position: relative; display: flex; flex-direction: column; gap: 12px; overflow: hidden; padding: 16px 16px 16px 22px; background: var(--bhs-lowest); border: 1px solid var(--bhs-high); border-radius: var(--bhs-radius-lg); box-shadow: var(--bhs-shadow-sm); }
.bhs-notice__bar { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(to bottom, var(--bhs-primary), var(--bhs-tertiary-container), var(--bhs-secondary)); }
.bhs-notice__icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--bhs-primary-fixed); color: var(--bhs-primary); font-size: 18px; }
.bhs-notice__main { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; }
.bhs-notice__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.bhs-notice__title { font-size: 17px; line-height: 26px; font-weight: 700; overflow-wrap: anywhere; }
.bhs-notice__date { color: var(--bhs-muted); font-size: 13px; }
.bhs-notice__text { color: var(--bhs-text-2); font-size: 14px; line-height: 24px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.bhs-notice__cta { align-self: flex-start; min-height: 44px; border-radius: 12px; }
.bhs-notice__cta[hidden] { display: none !important; }
@media (min-width: 768px) {
  .bhs-notice { flex-direction: row; align-items: center; padding: 16px 24px 16px 28px; gap: 16px; }
  .bhs-notice__cta { align-self: center; }
  .bhs-notice__text { -webkit-line-clamp: 1; line-clamp: 1; }
}

.bhs-section { display: flex; flex-direction: column; gap: 16px; }
.bhs-section__head { display: flex; flex-direction: column; gap: 12px; }
.bhs-section__title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bhs-section__title > div { min-width: 0; }
.bhs-section__title h2 { font-size: 22px; line-height: 30px; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
.bhs-section__title p { color: var(--bhs-text-2); font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.bhs-section__icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; color: #fff; font-size: 17px; box-shadow: var(--bhs-shadow-sm); }
.bhs-section__icon--primary { background: linear-gradient(to top right, var(--bhs-primary), var(--bhs-primary-container)); }
.bhs-section__icon--amber { background: linear-gradient(to top right, var(--bhs-secondary), var(--bhs-tertiary-container)); }
.bhs-section__icon--soft { background: var(--bhs-primary-fixed); color: var(--bhs-primary); box-shadow: none; }
.bhs-section__tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bhs-section__tools .bhs-segment { display: none; }
.bhs-section__head--compact { margin-bottom: 4px; }
@media (min-width: 768px) { .bhs-section__head { flex-direction: row; align-items: flex-end; justify-content: space-between; } .bhs-section__title h2 { font-size: 26px; line-height: 34px; } .bhs-section__title p { font-size: 14px; } }
@media (min-width: 1024px) { .bhs-section__title h2 { font-size: 30px; line-height: 40px; } .bhs-section__tools .bhs-segment { display: inline-flex; } }
@media (max-width: 1023px) { .bhs-section__tools .bhs-segment { display: none; } }

/* --------------------------------------------------------- single article */
.bhs-single, .bhs-pagewrap { padding-top: 16px; padding-bottom: 8px; }
.bhs-titlecard { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
.bhs-titlecard__main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bhs-titlecard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--bhs-muted); font-size: 13px; }
.bhs-title { font-family: var(--bhs-serif); font-size: 24px; line-height: 32px; font-weight: 700; color: var(--bhs-text); overflow-wrap: anywhere; word-break: break-word; }
.bhs-titlecard__cta { display: none; }
@media (min-width: 768px) {
  .bhs-titlecard { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 28px 32px; background: var(--bhs-lowest); border-radius: var(--bhs-radius); box-shadow: var(--bhs-shadow-sm); }
  .bhs-titlecard__cta { display: block; flex: 0 0 auto; }
  .bhs-title { font-size: 32px; line-height: 42px; }
}
@media (min-width: 1024px) { .bhs-titlecard { padding: 36px 40px; } .bhs-title { font-size: 40px; line-height: 52px; letter-spacing: -.01em; } }

.bhs-single__grid { display: block; }
.bhs-single__main { min-width: 0; }
.bhs-single__sidebar { min-width: 0; margin-top: 20px; }
.bhs-sidebar-widgets:empty { display: none; }
.bhs-pagewrap .bhs-single__main > .bhs-doc { max-width: none; margin: 0; }
.bhs-article { margin: 0; padding: 0; min-width: 0; }
.bhs-article__cover { margin: 0 0 16px; border-radius: 10px; overflow: hidden; }
.bhs-article__cover .bhs-cover { border-radius: 10px; }
.bhs-cta-mobile { margin-bottom: 20px; }
@media (min-width: 768px) {
  .bhs-cta-mobile { display: none; }
  .bhs-article { padding: 32px; background: var(--bhs-lowest); border-radius: var(--bhs-radius); box-shadow: var(--bhs-shadow-sm); }
  .bhs-article__cover { margin-bottom: 24px; }
}
@media (min-width: 1024px) {
  .bhs-single__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
  .bhs-single__sidebar { margin-top: 0; }
  .bhs-article { padding: 40px; }
}

.bhs-toc { position: relative; margin-top: 20px; padding: 20px; background: var(--bhs-lowest); border-radius: var(--bhs-radius); box-shadow: var(--bhs-shadow-sm); }
body.admin-bar .bhs-toc { top: calc(var(--bhs-header-h) + 48px); }
.bhs-toc__title { margin-bottom: 8px; font-size: 16px; line-height: 24px; font-weight: 700; }
.bhs-toc__list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; counter-reset: bhs-toc; }
.bhs-toc__list li { counter-increment: bhs-toc; }
.bhs-toc__list a { display: flex; gap: 8px; align-items: baseline; min-height: 36px; padding: 6px 4px; color: var(--bhs-text-2) !important; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.bhs-toc__list a::before { content: counter(bhs-toc) "."; flex: 0 0 auto; color: var(--bhs-muted); }
.bhs-toc__list a:hover { color: var(--bhs-primary) !important; }
.bhs-toc__list li.is-download a { color: var(--bhs-primary) !important; font-weight: 700; }
.bhs-toc[hidden] { display: none !important; }

/* Rich text (original the_content). Natural image aspect ratios, no overflow. */
.bhs-prose { color: var(--bhs-text); font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; word-break: break-word; }
.bhs-prose > *:first-child { margin-top: 0; }
.bhs-prose p { margin: 0 0 1.1em; color: var(--bhs-text-2); }
.bhs-prose h1, .bhs-prose h2, .bhs-prose h3, .bhs-prose h4 { margin: 1.6em 0 .7em; color: var(--bhs-text); line-height: 1.4; }
.bhs-prose h2 { padding: 4px 0 4px 14px; border-left: 4px solid var(--bhs-primary); font-size: 20px; font-weight: 700; font-family: var(--bhs-serif); }
.bhs-prose h3 { font-size: 18px; font-weight: 700; }
.bhs-prose h4 { font-size: 16px; font-weight: 700; }
@media (min-width: 768px) { .bhs-prose h2 { padding: 6px 16px; background: var(--bhs-low); border-radius: 0 10px 10px 0; font-size: 22px; line-height: 30px; font-family: var(--bhs-font); } }
.bhs-prose a { color: var(--bhs-primary); text-decoration: underline; text-underline-offset: 3px; }
.bhs-prose a:hover { color: var(--bhs-primary-container); }
.bhs-prose img, .bhs-prose video, .bhs-prose canvas { max-width: 100%; height: auto; }
.bhs-prose img { border-radius: 8px; }
.bhs-prose figure { margin: 1.4em 0; max-width: 100%; }
.bhs-prose figcaption, .bhs-prose .wp-caption-text { margin-top: 8px; color: var(--bhs-muted); font-size: 12px; line-height: 18px; text-align: center; }
.bhs-prose .wp-caption { max-width: 100% !important; }
.bhs-prose iframe, .bhs-prose embed, .bhs-prose object { max-width: 100%; }
.bhs-prose ul, .bhs-prose ol { margin: 0 0 1.1em; padding-left: 1.4em; color: var(--bhs-text-2); }
.bhs-prose ul { list-style: disc; }
.bhs-prose ol { list-style: decimal; }
.bhs-prose li { margin: .3em 0; }
.bhs-prose blockquote { margin: 1.2em 0; padding: 12px 16px; border-left: 4px solid var(--bhs-outline-variant); background: var(--bhs-low); border-radius: 0 10px 10px 0; color: var(--bhs-text-2); }
.bhs-prose pre { max-width: 100%; margin: 1.2em 0; padding: 14px 16px; overflow-x: auto; border-radius: 10px; background: #2b2523; color: #f7efeb; font-size: 13px; line-height: 1.7; word-break: normal; overflow-wrap: normal; }
.bhs-prose code { font-size: .92em; }
.bhs-prose :not(pre) > code { padding: 2px 6px; border-radius: 6px; background: var(--bhs-container); }
.bhs-prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.2em 0; font-size: 14px; }
.bhs-prose th, .bhs-prose td { padding: 8px 12px; border: 1px solid var(--bhs-high); text-align: left; }
.bhs-prose th { background: var(--bhs-low); }
.bhs-prose hr { margin: 2em 0; border: 0; border-top: 1px solid var(--bhs-high); }
.bhs-prose .alignleft, .bhs-prose .alignright { float: none; display: block; margin: 1em auto; }
.bhs-prose .aligncenter { display: block; margin-inline: auto; }
@media (min-width: 768px) {
  .bhs-prose .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
  .bhs-prose .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
}
.bhs-prose::after { content: ""; display: table; clear: both; }
.bhs-linkpages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 20px 0 0; font-size: 13px; }
.bhs-linkpages > span:first-child { color: var(--bhs-muted); margin-right: 6px; }
.bhs-linkpages a, .bhs-linkpages > .post-page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; padding: 0 10px; border-radius: 10px; background: var(--bhs-container); color: var(--bhs-text-2); text-decoration: none; }

/* Original components inside the content (kept, only tamed for the layout). */
.bhs-prose .ri-hide, .bhs-prose .mmp-download-anchor, .bhs-prose .ri-down-warp { max-width: 100%; }
.bhs-prose .meimog-article-wiki-entry {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin: 28px 0 0; padding: 16px; border: 0; border-radius: var(--bhs-radius); background: var(--bhs-low); color: var(--bhs-text);
}
.bhs-prose .meimog-article-wiki-entry:not([data-wiki-mapped]) { display: none; }
.bhs-prose .meimog-article-wiki-entry strong { color: var(--bhs-text); font-size: 16px; }
.bhs-prose .meimog-article-wiki-entry span { color: var(--bhs-text-2); font-size: 13px; }
.bhs-prose .meimog-article-wiki-entry a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--bhs-lowest); color: var(--bhs-text) !important; box-shadow: var(--bhs-shadow-sm); text-decoration: none; font-weight: 700; white-space: normal;
}
.bhs-prose .meimog-article-wiki-entry a:hover { background: var(--bhs-primary); color: #fff !important; text-decoration: none; }
@media (min-width: 640px) { .bhs-prose .meimog-article-wiki-entry { flex-direction: row; align-items: center; } }
.bhs-legacy-video { margin: 0 0 16px; border-radius: var(--bhs-radius); overflow: hidden; }
.bhs-legacy-video .archive-hero { margin: 0; }

/* Download section: ONE original component. */
.bhs-download { margin-top: 24px; padding: 20px 16px; background: var(--bhs-lowest); border-radius: var(--bhs-radius); box-shadow: var(--bhs-shadow-md); scroll-margin-top: calc(var(--bhs-header-h) + 16px); outline: none; }
.bhs-download__head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 2px solid var(--bhs-high); }
.bhs-download__icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--bhs-primary-fixed); color: var(--bhs-primary); }
.bhs-download__head h2 { font-size: 22px; line-height: 30px; font-weight: 700; }
.bhs-download__head p { color: var(--bhs-text-2); font-size: 13px; line-height: 20px; }
.bhs-download__body { min-width: 0; }
.bhs-download__body .post-buy-widget, .bhs-download__body .mmp-resource-card, .bhs-download__body .widget { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.bhs-download__body .mmp-resource-card > h2, .bhs-download__body .widget-title { display: none; }
.bhs-download__body .ri-down-warp, .bhs-download__body .down-buy-warp { max-width: 100%; }
.bhs-download__body .btn-group { display: flex; flex-wrap: wrap; gap: 6px; max-width: 100%; }
.bhs-download__body .btn, .bhs-download__body .ml-btn { min-height: 44px; border-radius: 999px; max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
.bhs-download__body img { max-width: 100%; height: auto; }
/* The member-center card ships a blue palette (assets/member-center/production.css); inside the bhs download
   section it is re-skinned to the site palette. Selectors are longer than the originals on purpose. */
.bhs-download__body .mmp-resource-card .btn-success, .bhs-download__body .mmp-resource-card .btn-danger, .bhs-download__body .mmp-resource-card .btn-info,
.bhs-download__body .btn-success, .bhs-download__body .btn-danger, .bhs-download__body .btn-info,
.bhs-download__body .mmp-resource-card .ml-btn, .bhs-download__body .ml-btn {
  background: var(--bhs-primary); border-color: var(--bhs-primary); color: #fff; border-radius: 999px; padding: 12px 20px; font-size: 14px; font-weight: 700;
}
.bhs-download__body .mmp-resource-card .btn-success:hover, .bhs-download__body .btn-success:hover, .bhs-download__body .ml-btn:hover { background: var(--bhs-primary-container); border-color: var(--bhs-primary-container); color: #fff; }
.bhs-download__body .mmp-resource-card .ml-btn.secondary, .bhs-download__body .ml-btn.secondary { background: var(--bhs-container); border-color: transparent; color: var(--bhs-primary); }
.bhs-download__body .mmp-resource-card .buy-title, .bhs-download__body .buy-title { color: var(--bhs-text); font-size: 17px; font-weight: 700; }
.bhs-download__body .mmp-resource-card .ml-gift-teaser, .bhs-download__body .ml-gift-teaser { background: var(--bhs-low); border: 0; border-radius: 12px; box-shadow: none; }
.bhs-download__body .mmp-resource-card .ml-gift-teaser h3, .bhs-download__body .ml-gift-teaser h3 { color: var(--bhs-text); }
.bhs-download__body .mmp-resource-card .ml-gift-teaser p, .bhs-download__body .ml-gift-teaser p { color: var(--bhs-text-2); }
.bhs-download__body .ml-key-value { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 12px 0; color: var(--bhs-text-2); }
.bhs-download__body .prices-info { padding-left: 0; list-style: none; }
.bhs-download__body .d-grid { display: grid; gap: 8px; }
@media (min-width: 768px) { .bhs-download { margin-top: 32px; padding: 32px; } .bhs-download__head h2 { font-size: 28px; line-height: 38px; } }

/* The full WordPress sidebar is not a single download card. Keep widget titles,
   order and mobile content; only re-skin the original output, no invented data. */
.bhs-sidebar-widgets { scroll-margin-top: calc(var(--bhs-header-h) + 16px); outline: none; }
.bhs-sidebar-widgets .widget {
  margin: 0 0 20px; padding: 20px; border: 0; background: var(--bhs-lowest);
  color: var(--bhs-text); border-radius: var(--bhs-radius); box-shadow: var(--bhs-shadow-sm);
  min-width: 0; overflow-wrap: anywhere;
}
.bhs-sidebar-widgets .widget:last-child { margin-bottom: 0; }
.bhs-sidebar-widgets .widget-title, .bhs-sidebar-widgets .mmp-resource-card > h2 {
  display: block; margin: 0 0 16px; color: var(--bhs-text); font-size: 18px; line-height: 1.5;
}
.bhs-sidebar-widgets .widget ul { padding-left: 0; list-style: none; }
.bhs-sidebar-widgets .widget img { max-width: 100%; height: auto; }
.bhs-sidebar-widgets .post-title { white-space: normal; overflow-wrap: anywhere; -webkit-line-clamp: unset; line-clamp: unset; }
/* Native recent-post widgets keep their original query/links. Their legacy
   200px list cover must not squeeze titles into one-character columns. */
.bhs-sidebar-widgets .sidebar-posts-list .row { margin-right: 0; margin-left: 0; }
.bhs-sidebar-widgets .sidebar-posts-list .row > .col { padding-right: 0; padding-left: 0; }
.bhs-sidebar-widgets .sidebar-posts-list .post-item.item-list {
  display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px;
  align-items: start; margin: 0; padding: 0; border: 0; background: transparent;
}
.bhs-sidebar-widgets .sidebar-posts-list .entry-media {
  width: 84px; max-width: 84px; min-width: 0; height: auto;
  aspect-ratio: 3 / 2; margin: 0; border-radius: 8px; overflow: hidden;
}
.bhs-sidebar-widgets .sidebar-posts-list .entry-wrapper,
.bhs-sidebar-widgets .sidebar-posts-list .entry-body { min-width: 0; width: auto; padding: 0; }
.bhs-sidebar-widgets .sidebar-posts-list .entry-title {
  margin: 0; font-size: 14px; line-height: 1.55; color: var(--bhs-text);
}
.bhs-sidebar-widgets .sidebar-posts-list .entry-title a {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
  line-clamp: 3; overflow: hidden; white-space: normal; overflow-wrap: anywhere;
}
.bhs-sidebar-widgets form { min-width: 0; }
.bhs-sidebar-widgets input, .bhs-sidebar-widgets select { max-width: 100%; min-width: 0; }
.bhs-sidebar-widgets input[type="search"], .bhs-sidebar-widgets input[name="s"],
.bhs-sidebar-widgets button, .bhs-sidebar-widgets .btn { min-height: 44px; }
.bhs-sidebar-widgets .post-buy-widget, .bhs-sidebar-widgets .mmp-resource-card, .bhs-article__content .ri-hide-warp {
  scroll-margin-top: calc(var(--bhs-header-h) + 16px);
}
.bhs-resource-status p { color: var(--bhs-text-2); }
.bhs-sidebar-widgets .widget_search form { display: flex; flex-wrap: wrap; gap: 8px; }
.bhs-sidebar-widgets .widget_search label { display: block; flex: 1 1 140px; min-width: 0; }
.bhs-sidebar-widgets .widget_search input[type="search"] {
  display: block; width: 100%; padding: 8px 12px; border: 1px solid var(--bhs-high);
  border-radius: 10px; background: var(--bhs-low); color: var(--bhs-text);
}
.bhs-sidebar-widgets .widget_search button {
  align-self: flex-end; padding: 8px 16px; border: 0; border-radius: 10px;
  background: var(--bhs-primary); color: #fff;
}
/* Re-skin the original hidden-resource renderer, retaining all native controls. */
.bhs-article__content .ri-hide-warp {
  margin: 24px 0 0; padding: 24px 20px; border: 1px solid var(--bhs-high);
  border-radius: var(--bhs-radius); background: var(--bhs-low); color: var(--bhs-text);
}
.bhs-article__content .ri-hide-warp .hide-msg { background: var(--bhs-primary); color: #fff; }
.bhs-article__content .ri-hide-warp .buy-title { color: var(--bhs-text); }
.bhs-article__content .ri-hide-warp .buy-count { color: var(--bhs-text-2); }
.bhs-article__content .ri-hide-warp .btn {
  min-height: 44px; max-width: 100%; padding: 10px 20px; border-radius: 999px;
  border-color: var(--bhs-primary); background: var(--bhs-primary); color: #fff;
  white-space: normal; overflow-wrap: anywhere;
}
.bhs-article__content .ri-hide-warp .prices-info { width: 100%; max-width: 100%; padding-left: 0; list-style: none; background: var(--bhs-lowest); }
.bhs-article__content .ri-hide-warp .prices-info::before { display: none; }

/* Original configured components (copyright note, author, share / favourite / like) in the site palette. */
.bhs-extras { margin-top: 20px; padding: 16px 20px; background: var(--bhs-lowest); border-radius: var(--bhs-radius); box-shadow: var(--bhs-shadow-sm); }
.bhs-extras .entry-copyright { color: var(--bhs-text-2); font-size: 13px; line-height: 22px; overflow-wrap: anywhere; }
.bhs-extras .entry-copyright .fa-info-circle { color: var(--bhs-primary); }
.bhs-extras .entry-copyright + .entry-social { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--bhs-high); }
.bhs-extras .entry-social .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0; }
.bhs-extras .entry-social .col, .bhs-extras .entry-social .col-auto { width: auto; max-width: 100%; padding: 0; flex: 0 1 auto; }
.bhs-extras .entry-social .col-auto { display: flex; flex-wrap: wrap; gap: 8px; }
.bhs-extras .entry-social .share-author { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--bhs-text); font-weight: 600; }
.bhs-extras .entry-social .share-author .avatar-img { width: 32px; height: 32px; border: 0 !important; box-shadow: none !important; }
.bhs-extras .entry-social .btn { display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0 16px; border: 0; border-radius: 999px; background: var(--bhs-container); color: var(--bhs-text-2); font-size: 13px; font-weight: 700; cursor: pointer; }
.bhs-extras .entry-social .btn:hover { background: var(--bhs-primary-fixed); color: var(--bhs-on-primary-fixed); }
.bhs-extras .entry-social .btn.disabled { opacity: .6; }
.bhs-tagbar { display: none; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; padding: 16px 20px; background: var(--bhs-lowest); border-radius: var(--bhs-radius); box-shadow: var(--bhs-shadow-sm); }
.bhs-tagbar__label { color: var(--bhs-text-2); font-size: 13px; font-weight: 700; }
@media (min-width: 768px) { .bhs-tagbar { display: flex; } }

.bhs-postnav { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
.bhs-postnav__item { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 16px 20px; background: var(--bhs-lowest); border-radius: var(--bhs-radius); box-shadow: var(--bhs-shadow-sm); }
.bhs-postnav__item:hover { box-shadow: var(--bhs-shadow-md); }
.bhs-postnav__item--next { align-items: flex-end; text-align: right; }
.bhs-postnav__label { display: inline-flex; align-items: center; gap: 6px; color: var(--bhs-muted); font-size: 12px; font-weight: 700; }
.bhs-postnav__title { max-width: 100%; color: var(--bhs-text); font-size: 15px; line-height: 22px; font-weight: 700; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.bhs-postnav__item:hover .bhs-postnav__title { color: var(--bhs-primary); }
@media (min-width: 768px) { .bhs-postnav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.bhs-related { margin-top: 28px; }
.bhs-related .bhs-section__title h2 { font-size: 20px; line-height: 28px; }

.bhs-dlbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 248, 245, .96); box-shadow: 0 -1px 12px rgba(28, 25, 23, .08);
}
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) { .bhs-dlbar { background: rgba(255, 248, 245, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); } }
.bhs-dlbar__label { color: var(--bhs-text); font-size: 12px; font-weight: 700; line-height: 16px; }
.bhs-dlbar .bhs-btn { min-height: 48px; border-radius: 14px; padding: 0 20px; }
@media (min-width: 768px) { .bhs-dlbar { display: none; } }

/* Comments */
.bhs-comments { margin-top: 24px; padding: 20px 16px; background: var(--bhs-lowest); border-radius: var(--bhs-radius); box-shadow: var(--bhs-shadow-sm); }
.bhs-comments__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 2px solid var(--bhs-high); }
.bhs-comments__head h2 { font-size: 20px; line-height: 28px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.bhs-comments__head h2 .far { color: var(--bhs-primary); }
.bhs-comments__count { color: var(--bhs-muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.bhs-comments__empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 12px; text-align: center; }
.bhs-comments__empty h3 { font-size: 16px; font-weight: 700; }
.bhs-comments__empty p { color: var(--bhs-text-2); font-size: 14px; }
.bhs-comments__reply-title { margin: 16px 0 12px; font-size: 16px; font-weight: 700; }
.bhs-comments .comment-form { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
.bhs-comments .comment-form .comment-form-comment, .bhs-comments .comment-form .form-submit, .bhs-comments .comment-form .bhs-comments__login { grid-column: 1 / -1; }
.bhs-comments .comment-form .form-submit { margin: 0; }
.bhs-comments .comment-form .submit { cursor: pointer; }
.bhs-comments__login { display: flex; justify-content: center; padding: 8px 0 16px; }
.bhs-comments__list { margin: 16px 0 0; padding: 0; list-style: none; }
.bhs-comments__list .comment-body, .bhs-comments__list li { overflow-wrap: anywhere; }
.bhs-comments__list img { max-width: 100%; height: auto; }
@media (min-width: 768px) { .bhs-comments { padding: 28px 32px; } .bhs-comments .comment-form { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ------------------------------------------------------ content page (D12) */
.bhs-doc { max-width: 880px; margin: 0 auto; padding: 4px 0 0; }
.bhs-doc__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.bhs-title--doc { margin-bottom: 16px; }
.bhs-doc__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 20px; padding: 12px 16px; border-radius: 12px; background: var(--bhs-low); color: var(--bhs-text-2); font-size: 13px; }
.bhs-doc .bhs-article { margin-top: 8px; }
@media (min-width: 768px) {
  .bhs-doc { padding: 40px 40px 32px; background: var(--bhs-lowest); border-radius: var(--bhs-radius-lg); box-shadow: var(--bhs-shadow-md); }
  .bhs-doc .bhs-article { padding: 0; background: transparent; box-shadow: none; }
}
@media (min-width: 1024px) { .bhs-doc { padding: 56px 64px 48px; } }
.bhs-pagewrap .bhs-comments { max-width: 880px; margin-inline: auto; }

/* --------------------------------------------------------------------- 404 */
.bhs-404 { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 40px; padding-bottom: 40px; text-align: center; min-height: 56vh; }
.bhs-404__glow { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: min(620px, 100%); height: 300px; border-radius: 50%; background: linear-gradient(to bottom, rgba(255, 218, 213, .55), rgba(255, 221, 184, .2), transparent); filter: blur(48px); pointer-events: none; }
.bhs-404 > *:not(.bhs-404__glow) { position: relative; }
.bhs-404__code { font-size: 112px; line-height: 1; font-weight: 800; letter-spacing: -.04em; background: linear-gradient(to bottom, rgba(172, 44, 35, .32), rgba(206, 69, 56, .14), transparent); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; user-select: none; }
.bhs-404__seal { display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; margin-top: -76px; margin-bottom: 8px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--bhs-primary); font-size: 36px; box-shadow: var(--bhs-shadow-xl); border: 4px solid rgba(255, 218, 213, .7); }
.bhs-404__title { font-size: 26px; line-height: 34px; font-weight: 800; }
.bhs-404__text { max-width: 480px; color: var(--bhs-text-2); font-size: 15px; line-height: 26px; }
.bhs-404__search { width: 100%; max-width: 520px; margin-top: 6px; }
.bhs-404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
@media (min-width: 768px) { .bhs-404__code { font-size: 168px; } .bhs-404__seal { width: 112px; height: 112px; margin-top: -108px; font-size: 48px; } .bhs-404__title { font-size: 32px; line-height: 42px; } }

/* -------------------------------------------------------------------- wiki */
.bhs-wiki { padding-top: 16px; padding-bottom: 8px; }
.bhs-wiki__head { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 20px; }
.bhs-wiki__title { font-size: 28px; line-height: 36px; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.bhs-wiki__lead { max-width: 760px; color: var(--bhs-text-2); font-size: 15px; line-height: 26px; }
.bhs-wiki__strip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 16px; border-radius: 12px; background: var(--bhs-low); color: var(--bhs-text-2); font-size: 13px; font-weight: 600; }
@media (min-width: 1024px) { .bhs-wiki__title { font-size: 42px; line-height: 54px; } .bhs-wiki__lead { font-size: 16px; } }
.bhs-wikihero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 0; background: transparent; box-shadow: none; }
.bhs-wikihero__head, .bhs-wikihero__body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bhs-wikihero__cover { margin: 0; min-width: 0; }
.bhs-wikihero__cover .bhs-cover { border-radius: 16px; box-shadow: var(--bhs-shadow-md); }
.bhs-wikihero__body > section:first-child .bhs-wikihero__desc { padding: 16px; background: var(--bhs-lowest); border-radius: 16px; box-shadow: var(--bhs-shadow-sm); }
/* Wiki breadcrumbs scroll horizontally on phones instead of wrapping (M06). */
@media (max-width: 767px) {
  .bhs-wiki .bhs-crumbs ol { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .bhs-wiki .bhs-crumbs ol::-webkit-scrollbar { display: none; }
  .bhs-wiki .bhs-crumbs li { flex: 0 0 auto; }
  .bhs-wiki .bhs-crumbs li[aria-current="page"] { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
}
.bhs-wikihero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--bhs-muted); font-size: 13px; }
.bhs-title--wiki { font-size: 26px; line-height: 34px; }
.bhs-wikihero__desc { color: var(--bhs-text-2); font-size: 14px; line-height: 26px; }
.bhs-wikiblock__title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 20px; line-height: 28px; font-weight: 700; }
.bhs-wikiblock__title--small { margin-bottom: 10px; font-size: 14px; line-height: 20px; }
.bhs-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 14px; background: var(--bhs-low); border-radius: 12px; }
.bhs-facts > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bhs-facts dt { margin: 0; color: var(--bhs-muted); font-size: 11px; font-weight: 700; }
.bhs-facts dd { margin: 0; color: var(--bhs-text); font-size: 13px; line-height: 20px; font-weight: 600; overflow-wrap: anywhere; }
.bhs-wiki__cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.bhs-wiki__main, .bhs-wiki__side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bhs-wikiblock { padding: 18px 16px; background: var(--bhs-lowest); border-radius: var(--bhs-radius-lg); box-shadow: var(--bhs-shadow-sm); }
.bhs-wikigallery { display: grid; grid-template-columns: 1fr; gap: 12px; }
.bhs-wikigallery__item { margin: 0; }
.bhs-wikigallery .bhs-cover { border-radius: 10px; }
.bhs-timeline { margin: 0; padding: 0; }
.bhs-timeline li { position: relative; margin: 0 0 16px; padding: 0 0 16px 20px; border-left: 2px solid var(--bhs-outline-variant); }
.bhs-timeline li:last-child { margin-bottom: 0; padding-bottom: 0; }
.bhs-timeline li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--bhs-primary); }
.bhs-timeline h3 { margin: 0 0 4px; font-size: 16px; line-height: 24px; font-weight: 700; }
.bhs-timeline p { color: var(--bhs-text-2); line-height: 26px; overflow-wrap: anywhere; }
.bhs-timeline span { display: block; margin-top: 6px; color: var(--bhs-muted); font-size: 12px; }
.bhs-points { margin: 0; padding-left: 1.2em; list-style: disc; color: var(--bhs-text-2); }
.bhs-points li { margin: 8px 0; line-height: 26px; overflow-wrap: anywhere; }
.bhs-versions { margin: 0; padding: 0; border-top: 1px solid var(--bhs-high); }
.bhs-versions a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 44px; padding: 10px 2px; border-bottom: 1px solid var(--bhs-high); color: var(--bhs-text) !important; }
.bhs-versions a:hover span { color: var(--bhs-primary); text-decoration: underline; }
.bhs-versions span { font-weight: 600; overflow-wrap: anywhere; }
.bhs-versions time { color: var(--bhs-muted); font-size: 12px; white-space: nowrap; }
.bhs-sources { margin: 0; padding: 0; }
.bhs-sources li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 8px 0; }
.bhs-sources a { color: var(--bhs-primary) !important; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.bhs-sources span { color: var(--bhs-muted); font-size: 12px; }
@media (min-width: 768px) {
  .bhs-wikihero {
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr); grid-template-areas: "cover head" "cover body";
    grid-template-rows: auto 1fr; gap: 16px 28px; align-items: start; padding: 24px;
    background: var(--bhs-lowest); border-radius: var(--bhs-radius-lg); box-shadow: var(--bhs-shadow-sm);
  }
  .bhs-wikihero__cover { grid-area: cover; }
  .bhs-wikihero__head { grid-area: head; }
  .bhs-wikihero__body { grid-area: body; }
  .bhs-wikihero__body > section:first-child .bhs-wikihero__desc { padding: 0; background: transparent; box-shadow: none; }
  .bhs-title--wiki { font-size: 32px; line-height: 42px; }
  .bhs-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bhs-wikigallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .bhs-wikihero { padding: 32px; }
  .bhs-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bhs-wiki__cols.has-side { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .bhs-wikiblock { padding: 24px; }
}

/* ---------------------------------------------------------------- auth */
.bhs-authpage { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: flex-start; justify-content: center; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px)); background: var(--bhs-surface); overflow: hidden; }
/* main.min.css gives .login-and-register height:100vh + a cover background; the page must grow with its form. */
.bhs-authpage.login-and-register { height: auto; min-height: 100vh; min-height: 100dvh; background-image: none; background-color: var(--bhs-surface); }
.bhs-authpage__glow { position: absolute; left: 50%; top: -48px; transform: translateX(-50%); width: 420px; height: 420px; border-radius: 50%; background: rgba(172, 44, 35, .06); filter: blur(60px); pointer-events: none; }
.bhs-authwrap { position: relative; width: 100%; max-width: 460px; margin-top: 8px; }
.bhs-authback { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-bottom: 4px; color: var(--bhs-text-2) !important; font-size: 13px; }
.bhs-authback:hover { color: var(--bhs-primary) !important; }
.bhs-authcard { position: relative; overflow: hidden; padding: 28px 20px 24px; background: var(--bhs-lowest); border-radius: var(--bhs-radius); box-shadow: 0 20px 25px -5px rgba(172, 44, 35, .06), 0 8px 10px -6px rgba(30, 27, 25, .06); }
.bhs-authcard__accent { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(to right, transparent, var(--bhs-primary), transparent); opacity: .85; }
.bhs-authcard__logo { display: flex; justify-content: center; margin-bottom: 8px; }
.bhs-authcard__logo-img { display: block; width: auto; height: 64px; max-width: none; object-fit: contain; }
@media (min-width: 640px) { .bhs-authcard { padding: 40px; } .bhs-authpage { align-items: center; padding-top: 24px; } .bhs-authwrap { margin-top: 0; } }

.bhs-auth__head { text-align: center; margin-bottom: 20px; }
.bhs-auth__title { font-size: 22px; line-height: 30px; font-weight: 800; }
.bhs-auth__sub { margin-top: 4px; color: var(--bhs-text-2); font-size: 13px; line-height: 20px; }
.bhs-form { margin: 0; }
.bhs-form__status { margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; font-size: 13px; line-height: 20px; background: var(--bhs-error-container); color: var(--bhs-on-error-container); }
.bhs-form__status.is-ok { background: #dff3e6; color: var(--bhs-ok); }
.bhs-form__status[hidden] { display: none !important; }
.bhs-form__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px 0 12px; }
.bhs-form__link { display: inline-flex; align-items: center; min-height: 44px; color: var(--bhs-text-2) !important; font-size: 13px; }
.bhs-form__link:hover { color: var(--bhs-primary) !important; }
.bhs-form .bhs-btn--block { margin-top: 4px; }
.bhs-form #click-submit { box-shadow: 0 2px 8px rgba(172, 44, 35, .25); }
.bhs-form #click-submit:disabled { opacity: .65; cursor: progress; }
.bhs-form__switch { margin: 16px 0 0; text-align: center; color: var(--bhs-text-2); font-size: 14px; }
.bhs-form__switch a { display: inline-flex; align-items: center; min-height: 32px; color: var(--bhs-primary) !important; font-weight: 700; }
.bhs-captcha { display: flex; align-items: stretch; gap: 10px; }
.bhs-captcha .bhs-control { flex: 1 1 auto; min-width: 0; }
/* The live challenge is shown whole (object-fit: contain, natural aspect at a fixed 48px height): it is
   never stretched to the column width nor cropped, also at 360px. */
.bhs-captcha__img { flex: 0 0 auto; width: auto; min-width: 96px; max-width: 160px; height: 48px; object-fit: contain; border-radius: 10px; background: var(--bhs-container); cursor: pointer; border: 0; }
.bhs-captcha__img:hover { filter: brightness(.97); }
.bhs-hint--captcha { margin-top: 2px; }
.bhs-oauth { margin-top: 20px; }
.bhs-oauth__label { position: relative; margin: 0 0 12px; text-align: center; font-size: 12px; color: var(--bhs-muted); }
.bhs-oauth__label::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--bhs-high); }
.bhs-oauth__label span { position: relative; padding: 0 10px; background: var(--bhs-lowest); }
.bhs-oauth__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.bhs-agree { margin: 16px 0 0; text-align: center; color: var(--bhs-muted); font-size: 12px; line-height: 20px; }
.bhs-agree a { text-decoration: underline; text-underline-offset: 2px; }
.bhs-auth .bhs-empty { box-shadow: none; border: 0; background: var(--bhs-low); }

/* Login modal: original .ri-popup container (zb_get_site_login), bhs skin. */
.ri-popup.bhs-auth-popup .ri-popup-body { width: min(440px, calc(100vw - 24px)) !important; max-width: none; padding-top: calc(24px + env(safe-area-inset-top, 0px)); padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.ri-popup.bhs-auth-popup .ri-popup-content { padding: 28px 22px 22px; border-radius: 14px; background: #fff; box-shadow: 0 25px 50px -12px rgba(30, 27, 25, .35); color: var(--bhs-text, #1e1b19); font-family: var(--bhs-font, inherit); }
.ri-popup.bhs-auth-popup .ri-popup-close { top: 12px; right: 12px; left: auto; bottom: auto; width: auto; transform: none; z-index: 100; }
.ri-popup.bhs-auth-popup .ri-popup-close .svg-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; cursor: pointer; border-radius: 50%; background-color: #f4ece8; }
.ri-popup.bhs-auth-popup .ri-popup-close .svg-close:hover { background-color: #eee7e3; }
.ri-popup.bhs-auth-popup .ri-popup-close .svg-close:focus-visible { outline: 2px solid #ac2c23; outline-offset: 2px; }
.ri-popup.bhs-auth-popup .logo-wrapper { display: flex; justify-content: center; margin-bottom: 4px; }
.ri-popup.bhs-auth-popup .logo-wrapper a { display: inline-flex; }
.ri-popup.bhs-auth-popup .logo-wrapper img.logo { display: block; width: auto; height: 56px; max-width: 100%; object-fit: contain; }
/* Phones (M14): bottom sheet, full-width, rounded top corners. */
@media (max-width: 639px) {
  .ri-popup.bhs-auth-popup { align-items: flex-end; }
  .ri-popup.bhs-auth-popup .ri-popup-body { width: 100% !important; max-width: 440px; padding: 0 0 env(safe-area-inset-bottom, 0px); }
  .ri-popup.bhs-auth-popup .ri-popup-content { border-radius: 18px 18px 0 0; max-height: 92vh; overflow-y: auto; }
}
.ri-popup.bhs-auth-popup .bhs-auth__head { margin-bottom: 16px; }
.ri-popup.bhs-auth-popup .bhs-auth__title { font-size: 20px; }
.ri-popup .ri-popup-content .bhs-auth { color: #1e1b19; }

/* Original toast skin on public pages (same element, warm palette). */
body.bhs-public .ri-notice { border-radius: 12px; background: rgba(30, 27, 25, .92); font-size: 14px; line-height: 22px; max-width: min(420px, calc(100vw - 32px)); box-shadow: 0 10px 30px rgba(30, 27, 25, .25); }
body.bhs-public .site-notify-body { color: #1e1b19; }
body.bhs-public .site-notify-body .notify-title { font-size: 18px; }

/* Original back-to-top button, restyled (still the original element/handler). */
body.bhs-public .back-top { right: 16px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; line-height: 44px; border-radius: 12px; background: #fff; color: var(--bhs-primary); box-shadow: var(--bhs-shadow-md); }
body.bhs-public .back-top:hover { background: var(--bhs-primary); color: #fff; }
body.bhs-public.bhs-has-dlbar .back-top { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 768px) { body.bhs-public .back-top, body.bhs-public.bhs-has-dlbar .back-top { right: 24px; bottom: 24px; } }
body.bhs-public .rollbar { bottom: 140px; }

/* Original legacy fallback inside the bhs shell (home fallback, tag/links pages). */
.bhs-legacy-home { background: transparent; }

/* ------------------------------------------------- reduced motion, print */
@media (prefers-reduced-motion: reduce) {
  .bhs-header *, .bhs-main *, .bhs-footer *, .bhs-tabbar *, .bhs-dlbar *, .bhs-authpage *, .ri-popup * {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .bhs-card:hover, .bhs-card:hover .bhs-cover__img, .bhs-row:hover .bhs-cover__img, .bhs-brand:hover .bhs-brand__img { transform: none !important; }
  html { scroll-behavior: auto !important; }
}
html { scroll-behavior: smooth; }
@media print {
  .bhs-header, .bhs-tabbar, .bhs-dlbar, .bhs-footer, .bhs-toc, body.bhs-public .back-top { display: none !important; }
}

/* 360px safety: no horizontal overflow from fixed-size children. */
@media (max-width: 380px) {
  .bhs-wrap { padding-inline: 12px; }
  .bhs-header__bar { gap: 4px; }
  .bhs-header__tools { gap: 2px; }
  .bhs-auth-links .bhs-btn { min-width: 44px; padding: 0 6px; }
  .bhs-brand__img { height: 34px; }
  .bhs-pager__btn { min-width: 36px; padding: 0 8px; }
  .bhs-captcha { flex-direction: column; }
  .bhs-captcha__img { align-self: flex-start; }
  .bhs-facts { grid-template-columns: 1fr; }
}
