/* OZS MODO v2.6.25 — targeted mobile search, whitespace, brand lockup and OAuth polish. */
/* The same brand geometry is kept at every location; only the surrounding lockup scales. */
:root{--ozs2625-brand-gap:8px}
.site-header .site-brand{gap:7px!important}
.site-header .site-brand-mark,.site-header .site-brand-mark svg{width:38px!important;height:38px!important;flex:0 0 38px!important}
.site-header .site-brand-word{font-size:29px!important;line-height:1.1!important}
.footer-brand-lockup{display:inline-flex!important;align-items:center!important;gap:8px!important}
.footer-brand-mark,.footer-brand-mark svg{width:45px!important;height:45px!important;flex:0 0 45px!important;display:block!important}
.footer-brand-lockup .footer-word{font-size:35px!important;line-height:1.1!important}
.ozs-auth-brand{gap:8px!important}
.ozs-auth-brand .ozs-auth-brand-mark{width:48px!important;height:48px!important;flex:0 0 48px!important;padding:10px!important}
.ozs-auth-brand .ozs-auth-brand-mark svg{width:100%!important;height:100%!important}
.ozs-auth-brand strong{font-size:19px!important;line-height:1.2!important}
.ozs-login-form-brand{display:flex!important;align-items:center!important;gap:7px!important}
.ozs-login-form-brand svg{width:32px!important;height:32px!important;flex:0 0 32px!important}
.ozs-login-form-brand strong{font-size:23px!important;line-height:1.15!important}
/* Same hit target and visual icon scale for notification, theme and account. */
.site-header .site-header-actions>:is(.notice-trigger,.ozs-theme-trigger,.site-account){box-sizing:border-box!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;flex:0 0 42px!important;border:1px solid #dfe9dd!important;border-radius:12px!important;background:rgba(255,255,255,.86)!important;box-shadow:none!important;color:#355741!important;display:grid!important;place-items:center!important;padding:0!important}
.site-header .site-header-actions .site-account-avatar{width:29px!important;height:29px!important;flex:0 0 29px!important;background:transparent!important;border-radius:50%!important}
.site-header .site-header-actions .site-account-avatar .ozs-avatar-guest{width:100%!important;height:100%!important;display:grid!important;place-items:center!important}
.site-header .site-header-actions .site-account-avatar .ozs-avatar-guest svg{width:23px!important;height:23px!important}
.site-header .site-header-actions .site-account-avatar img{width:100%!important;height:100%!important;border-radius:50%!important;object-fit:cover!important}
.site-header .site-header-actions>:is(.notice-trigger,.ozs-theme-trigger,.site-account):focus-visible{outline:2px solid #548666!important;outline-offset:2px!important}
.site-header .site-header-actions>:is(.notice-trigger,.ozs-theme-trigger,.site-account):hover{background:#edf4ec!important;transform:none!important}
.site-header .site-header-actions .notice-trigger>.icon,.site-header .site-header-actions .ozs-theme-trigger>.icon{width:20px!important;height:20px!important}
/* OAuth identity remains recognizable while its buttons share one shape. */
.ozs-auth-fields .ozs-oauth{display:flex!important;flex-wrap:wrap!important;gap:10px!important;margin-top:18px!important}
.ozs-auth-fields .ozs-oauth a{display:inline-flex!important;align-items:center!important;gap:9px!important;justify-content:center!important;min-height:44px!important;padding:8px 16px!important;border:1px solid #dbe7dc!important;border-radius:12px!important;background:#f9fbf8!important;color:#2b543c!important;font-size:13px!important;font-weight:750!important;text-decoration:none!important;box-shadow:none!important}
.ozs-auth-fields .ozs-oauth a:focus-visible{outline:2px solid #548666!important;outline-offset:2px!important}
.ozs-auth-fields .ozs-oauth .ozs-social-icon{width:23px!important;height:23px!important;flex:0 0 23px!important;display:block!important}
.ozs-auth-fields .ozs-oauth .ozs-social-qq{color:#285e55!important}
.ozs-auth-fields .ozs-oauth .ozs-social-weibo{color:#386849!important}
/* Popup search: only a floating overlay, never pushes page content. */
.ozs2625-mobile-search-trigger{display:none}
.ozs2625-mobile-search-panel[hidden]{display:none!important}
.ozs2625-mobile-search-panel{position:fixed;top:var(--ozs2625-panel-top,108px);left:12px;right:12px;width:min(420px,calc(100vw - 24px));margin-left:auto;z-index:120;border:1px solid #dce6db;border-radius:17px;background:rgba(252,254,250,.98);backdrop-filter:blur(16px);box-shadow:0 18px 45px rgba(20,48,30,.18);padding:12px;display:flex;flex-direction:column;gap:11px;max-height:min(540px,calc(100dvh - 170px));overflow:hidden}
.ozs2625-search-panel-head{display:flex;align-items:center;gap:8px}
.ozs2625-search-input-wrap{display:flex;align-items:center;gap:9px;flex:1;min-width:0;border:1px solid #d8e3d8;background:#f5f9f3;border-radius:11px;padding:0 12px;height:44px;color:#54735a}
.ozs2625-search-input-wrap>.icon{width:19px;height:19px;flex:0 0 19px}
.ozs2625-search-input-wrap input{border:0;outline:0;background:none;color:#243e2d;width:100%;min-width:0;font-size:14px}
.ozs2625-search-close{width:44px;height:44px;display:grid;place-items:center;flex:0 0 44px;background:#fff;border:1px solid #e2e9df;border-radius:11px;color:#315740}
.ozs2625-search-close>.icon{width:19px;height:19px}
.ozs2625-search-results{overflow:auto;overscroll-behavior:contain;min-height:45px;max-height:calc(100dvh - 285px);-webkit-overflow-scrolling:touch}
.ozs2625-search-prompt,.ozs2625-search-empty,.ozs2625-result-count{font-size:12px;color:#789081;margin:14px 8px;line-height:1.55}
.ozs2625-search-result{display:flex;width:100%;align-items:center;gap:10px;min-height:57px;padding:10px 8px;border:0;border-bottom:1px solid #e7ece5;background:transparent;color:#254431;text-align:left;border-radius:8px}
.ozs2625-search-result:hover,.ozs2625-search-result:focus-visible{background:#edf5ec;outline:none}
.ozs2625-result-symbol{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;background:#e9f2e7;border-radius:9px;color:#487856}
.ozs2625-result-copy{display:grid;min-width:0;flex:1;gap:2px}
.ozs2625-result-copy strong{font-size:13px}
.ozs2625-result-copy small{font-size:11px;color:#789081;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ozs2625-search-all{min-height:43px;display:flex;justify-content:center;align-items:center;gap:8px;width:100%;border:0;border-radius:11px;background:#eaf3e7;color:#305c41;font-size:12px;font-weight:750}
.ozs2625-search-all>.icon{width:14px;height:14px}
@media(max-width:820px){
  .site-header .site-header-actions .ozs2625-mobile-search-trigger{display:grid!important;place-items:center!important;box-sizing:border-box!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;flex:0 0 42px!important;border:1px solid #dfe9dd!important;border-radius:12px!important;background:#fffefa!important;color:#355741!important;padding:0!important}
  .site-header .site-header-actions .ozs2625-mobile-search-trigger>.icon{width:20px!important;height:20px!important}
  .ozs2625-mobile-search-panel{max-height:calc(100dvh - 155px - env(safe-area-inset-top,0px))}
}
@media(max-width:600px){
  .site-header .site-brand{gap:6px!important}
  .site-header .site-brand-word{font-size:26px!important}
  .site-header .site-brand-mark,.site-header .site-brand-mark svg{width:34px!important;height:34px!important;flex-basis:34px!important}
  .site-header .header-inner{padding:0 11px!important;gap:5px!important}
  .site-header .site-header-actions{gap:5px!important}
  .site-header .site-header-actions .ozs2625-mobile-search-trigger{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;flex-basis:40px!important}
  .site-header .site-header-actions>.ozs-theme-trigger{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;flex-basis:40px!important}
  .site-header .mobile-menu-trigger{width:40px!important;height:40px!important;min-width:40px!important;flex:0 0 40px!important}
  .site-header .site-brand-divider,.site-header .site-brand-caption{display:none!important}
  /* Use exactly one reserved footer/navigation gap instead of stacking large padding and min-heights. */
  #page.content{min-height:0!important;padding-bottom:0!important}
  #page.content .website-footer{margin-top:23px!important;padding-top:24px!important;padding-bottom:12px!important}
  #page.content .footer-main{padding-bottom:22px!important}
  #page.content .footer-brand{margin-bottom:20px!important}
  #page.content .footer-brand p{margin:14px 0!important}
  #page.content .footer-links{gap:20px 15px!important}
  .main{padding-bottom:var(--ozs-mobile-nav-clearance,calc(73px + env(safe-area-inset-bottom,0px)))!important}
  .bottom-nav{padding-bottom:calc(7px + env(safe-area-inset-bottom,0px))!important}
  .footer-brand-mark,.footer-brand-mark svg{width:40px!important;height:40px!important;flex-basis:40px!important}
  .footer-brand-lockup .footer-word{font-size:32px!important}
  .ozs2625-mobile-search-panel{left:10px;right:10px;width:calc(100vw - 20px);margin:0 auto;max-height:calc(100dvh - 165px - env(safe-area-inset-top,0px))}
}
@media(max-width:360px){
  .site-header .site-brand-word{font-size:24px!important}
  .site-header .site-brand-mark,.site-header .site-brand-mark svg{width:31px!important;height:31px!important;flex-basis:31px!important}
  .site-header .site-header-actions{gap:4px!important}
  .site-header .site-header-actions>.ozs-theme-trigger,.site-header .site-header-actions .ozs2625-mobile-search-trigger,.site-header .mobile-menu-trigger{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;flex-basis:38px!important}
}
@media(prefers-reduced-motion:reduce){.ozs2625-mobile-search-panel *{scroll-behavior:auto!important}}

/* Explicit operation order: theme/color -> mobile search -> menu. Preserve existing mobile notification visibility. */
.site-header .site-header-actions>.site-search{order:0}
.site-header .site-header-actions>.notice-trigger{order:0}
.site-header .site-header-actions>.ozs-theme-trigger{order:1!important}
.site-header .site-header-actions>.ozs2625-mobile-search-trigger{order:2!important}
.site-header .site-header-actions>.site-account{order:3}
.site-header .site-header-actions>.mobile-menu-trigger{order:4}
@media(max-width:820px){.site-header .site-header-actions>.notice-trigger{display:none!important}}
