/* Ottnews mobile shell. Desktop layout remains owned by Blocksy. */
.ott-app-nav{display:none}
.ott-community-hub{max-width:820px;margin-inline:auto;--ott-app-surface:#fff;--ott-app-line:#e5e7eb;--ott-app-text:#111827;--ott-app-muted:#6b7280;--ott-app-accent:#d9232d}
.ott-community-intro{color:var(--ott-app-muted);margin:0 0 22px!important}
.ott-community-tabs{display:flex;gap:6px;background:#f5f6f8;border-radius:12px;padding:5px;margin-bottom:22px}
.ott-community-tabs button{flex:1;min-width:0;min-height:44px;padding:10px 6px;border:0;border-radius:9px;background:transparent;color:var(--ott-app-muted);font:600 14px/1.4 system-ui,sans-serif;cursor:pointer}
.ott-community-tabs button[aria-selected=true]{background:var(--ott-app-surface);color:var(--ott-app-accent);box-shadow:0 2px 7px #0000000b}
.ott-community-panel[hidden]{display:none!important}
.ott-community-panel h2{font-size:20px!important;color:var(--ott-app-text);margin:0 0 12px!important}
.ott-community-stories{list-style:none;padding:0!important;margin:0!important}
.ott-community-stories li{margin:0!important;border-bottom:1px solid var(--ott-app-line)}
.ott-community-story{display:flex;gap:14px;align-items:center;padding:16px 0;text-decoration:none!important;color:var(--ott-app-text)!important}
.ott-community-thumb{width:96px!important;height:76px!important;object-fit:cover;border-radius:9px;flex:none}
.ott-community-placeholder{display:grid;place-items:center;background:#f5f6f8;color:#d9232d;font-size:25px;font-weight:700}
.ott-community-story-copy{min-width:0;display:flex;flex-direction:column;gap:5px}
.ott-community-story-copy time{font-size:12px;color:var(--ott-app-muted)}
.ott-community-story-title{font-size:16px;font-weight:600;line-height:1.55}
.ott-community-more,.ott-community-calendar{display:flex;align-items:center;justify-content:space-between;min-height:48px;text-decoration:none!important;color:var(--ott-app-accent)!important;font-size:14px;font-weight:600;padding:14px 0}
.ott-community-calendar{margin-top:20px;padding:15px 18px;background:var(--ott-app-surface);border:1px solid var(--ott-app-line);border-radius:12px}
.ott-community-tabs button:focus-visible,.ott-app-nav a:focus-visible{outline:2px solid #d9232d;outline-offset:-3px}
html[data-ott-theme=dark] .ott-community-hub{--ott-app-surface:#172033;--ott-app-line:#334155;--ott-app-text:#f1f5f9;--ott-app-muted:#94a3b8;--ott-app-accent:#f87171}
html[data-ott-theme=dark] .ott-community-tabs,html[data-ott-theme=dark] .ott-community-placeholder{background:#1e293b}
@media(max-width:680px){
  html{--ott-app-bottom:calc(64px + env(safe-area-inset-bottom,0px));scroll-padding-top:76px;scroll-padding-bottom:calc(var(--ott-app-bottom) + 16px)}
  html,body{min-height:100%;-webkit-tap-highlight-color:transparent}
  body{padding-bottom:var(--ott-app-bottom)!important}
  #header{position:sticky;top:0;z-index:90;background:#fff;border-bottom:1px solid #e5e7eb}
  #header [data-device=mobile] [data-row=middle]{--height:64px;min-height:64px;padding-top:env(safe-area-inset-top,0px)}
  #header [data-device=mobile] .ct-container{width:calc(100% - 28px);min-height:64px}
  #header [data-device=mobile] .site-logo-container img{width:170px!important;max-width:44vw!important;height:auto!important;object-fit:contain}
  #header [data-device=mobile] [data-items=primary]{gap:6px}
  #header [data-device=mobile] .ct-header-trigger,#header [data-device=mobile] .ott-theme-toggle{width:44px;min-width:44px;height:44px;min-height:44px;justify-content:center;padding:0!important}
  #header [data-device=mobile] .ct-header-account{display:none}
  .ott-app-nav{position:fixed;z-index:80;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));box-sizing:border-box;background:#fff;border-top:1px solid #e5e7eb;box-shadow:0 -4px 20px #11182708;padding:4px max(4px,env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(4px,env(safe-area-inset-left,0px))}
  .ott-app-nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;min-height:59px;padding:4px 0;color:#6b7280!important;text-decoration:none!important;font:500 11px/1.3 system-ui,-apple-system,"Microsoft YaHei",sans-serif;touch-action:manipulation}
  .ott-app-nav-icon{display:flex;align-items:center;justify-content:center;width:44px;height:29px;border-radius:10px}
  .ott-app-nav-item.is-active{color:#d9232d!important;font-weight:700}
  .ott-app-nav-item.is-active .ott-app-nav-icon{background:#fff0f1}
  .ott-app-nav-item:active .ott-app-nav-icon{background:#f5f6f8}
  .ott-app-nav-item svg{display:block;flex:none}
  .ott-app-keyboard .ott-app-nav{display:none}
  .ottnews-push-entry{bottom:calc(var(--ott-app-bottom) + 12px)!important;right:12px!important}
  .ct-back-to-top{bottom:calc(var(--ott-app-bottom) + 14px)!important}
  .ott-community-hub{margin-top:0}
  .ott-community-story{gap:12px;padding:14px 0}
  .ott-community-thumb{width:82px!important;height:68px!important}
  .ott-community-story-title{font-size:15px}
  #main .hero-section[data-type=type-1]{padding-bottom:18px}
  html[data-ott-theme=dark] #main h1.page-title{color:#f1f5f9!important}
  html[data-ott-theme=dark] #header,html[data-ott-theme=dark] .ott-app-nav{background:#111827!important;border-color:#334155!important}
  html[data-ott-theme=dark] .ott-app-nav-item{color:#94a3b8!important}
  html[data-ott-theme=dark] .ott-app-nav-item.is-active{color:#f87171!important}
  html[data-ott-theme=dark] .ott-app-nav-item.is-active .ott-app-nav-icon{background:#3a202b}
  html[data-ott-theme=dark] .ott-app-nav-item:active .ott-app-nav-icon{background:#1e293b}
  /* Reader-facing mobile shell also stays clean when an editor is signed in. */
  html:has(body.admin-bar){margin-top:0!important}
  #wpadminbar{display:none!important}
}
@media print{.ott-app-nav{display:none!important}body{padding-bottom:0!important}#header{position:static}}
