/* Ottnews mobile shell. Desktop layout remains owned by Blocksy. */
.ott-app-nav{display:none}
.ott-community-hub{max-width:var(--theme-normal-container-max-width,1200px);width:var(--theme-container-width,90%);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{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));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}}

/* Community content follows the same Blocksy container as its page title, whatever the page ID. */
.entry-content > .ott-community-hub{max-width:var(--theme-normal-container-max-width,1200px)!important;width:var(--theme-container-width,90%)!important;margin-inline:auto!important;text-align:left;}
/* Five communities: on phones the tabs fill the row and scroll sideways when they no longer fit. */
@media(max-width:680px){.ott-community-tabs{display:flex;gap:3px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}.ott-community-tabs::-webkit-scrollbar{display:none}.ott-community-tabs button{flex:1 0 auto;font-size:12px;padding:10px 10px;white-space:nowrap;}.ott-community-story-title{overflow-wrap:anywhere;}}

/* Mobile refresh controls. */
.ott-app-refresh,.ott-app-refresh-status{display:none}
@media(max-width:680px){
  .ott-app-installed #header [data-device=mobile] .ott-app-refresh{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;min-width:44px;height:44px;min-height:44px;padding:0!important;border:0;border-radius:50%;background:transparent!important;color:#475569!important;box-shadow:none;cursor:pointer;touch-action:manipulation}
  .ott-app-refresh svg{display:block;flex:none}
  #header [data-device=mobile] .ott-app-refresh:active{background:#f5f6f8!important}
  .ott-app-refresh:focus-visible{outline:2px solid #d9232d;outline-offset:-3px}
  html[data-ott-theme=dark] #header [data-device=mobile] .ott-app-refresh{color:#cbd5e1!important}
  html[data-ott-theme=dark] #header [data-device=mobile] .ott-app-refresh:active{background:#1e293b!important}
  .ott-app-refresh-status{position:fixed;z-index:95;top:calc(64px + env(safe-area-inset-top,0px));left:50%;display:block;width:max-content;max-width:calc(100% - 32px);padding:9px 16px;border:1px solid #e5e7eb;border-radius:22px;box-shadow:0 4px 14px #00000012;background:#fff;color:#475569;font:500 13px/1.5 system-ui,-apple-system,"Microsoft YaHei",sans-serif;opacity:0;visibility:hidden;pointer-events:none;transform:translate(-50%,0);transition:opacity .15s ease}
  .ott-app-refresh-status.is-visible{opacity:1;visibility:visible;transform:translate(-50%,var(--ott-pull-distance,12px))}
  .ott-app-refresh-status.is-ready{color:#d9232d;border-color:#f3a4a9}
  html[data-ott-theme=dark] .ott-app-refresh-status{background:#172033;color:#cbd5e1;border-color:#334155}
  html[data-ott-theme=dark] .ott-app-refresh-status.is-ready{color:#f87171;border-color:#9f4248}
  html.ott-app-installed,html.ott-app-installed body{overscroll-behavior-y:contain}
  .ott-app-refreshing .ott-app-refresh svg{animation:ott-refresh-spin .85s linear infinite}
}
@keyframes ott-refresh-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.ott-app-refresh-status{transition:none}.ott-app-refreshing .ott-app-refresh svg{animation:none}}
@media print{.ott-app-refresh,.ott-app-refresh-status{display:none!important}}

@media(max-width:680px){
 #header [data-device=mobile] .ct-container{grid-template-columns:minmax(0,1fr) auto!important}
 #header [data-device=mobile] [data-column=start]{min-width:0}
 #header [data-device=mobile] .site-logo-container{max-width:min(44vw,calc(100vw - 184px))!important}
 /* Home-screen app shows four header buttons (refresh, search, theme, menu). */
 .ott-app-installed #header [data-device=mobile] .site-logo-container{max-width:min(44vw,calc(100vw - 232px))!important}
 #header [data-device=mobile] .site-logo-container img{max-width:100%!important}
 #header [data-device=mobile] .ott-app-refresh,#header [data-device=mobile] .ott-app-search,#header [data-device=mobile] .ott-theme-toggle,#header [data-device=mobile] .ct-header-trigger{margin:0!important}
}

/* Mobile search. */
.ott-app-search,.ott-search-panel{display:none}
.ott-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:680px){
  #header [data-device=mobile] .ott-app-search{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;min-width:44px;height:44px;min-height:44px;padding:0!important;border:0;border-radius:50%;background:transparent!important;color:#475569!important;box-shadow:none;cursor:pointer;touch-action:manipulation}
  .ott-app-search svg{display:block;flex:none}
  #header [data-device=mobile] .ott-app-search:active,#header [data-device=mobile] .ott-app-search[aria-expanded=true]{background:#f5f6f8!important;color:#d9232d!important}
  .ott-app-search:focus-visible{outline:2px solid #d9232d;outline-offset:-3px}
  .ott-search-panel:not([hidden]){position:fixed;z-index:96;top:calc(64px + env(safe-area-inset-top,0px));left:0;right:0;display:flex;align-items:center;gap:8px;box-sizing:border-box;padding:10px max(14px,env(safe-area-inset-right,0px)) 10px max(14px,env(safe-area-inset-left,0px));background:#fff;border-bottom:1px solid #e5e7eb;box-shadow:0 8px 20px #1118270f}
  .ott-search-form{flex:1;min-width:0;display:flex;gap:8px;margin:0}
  .ott-search-form input[type=search]{flex:1;min-width:0;height:44px;margin:0;padding:0 14px;border:1px solid #e5e7eb;border-radius:10px;background:#f5f6f8;color:#111827;font:16px/1.4 system-ui,-apple-system,"Microsoft YaHei",sans-serif;box-shadow:none}
  .ott-search-form input[type=search]:focus{outline:none;border-color:#d9232d;background:#fff}
  .ott-search-form button{flex:none;height:44px;padding:0 16px;border:0;border-radius:10px;background:#d9232d;color:#fff;font:600 15px/1 system-ui,-apple-system,"Microsoft YaHei",sans-serif;cursor:pointer}
  .ott-search-close{flex:none;height:44px;padding:0 4px;border:0;background:transparent;color:#6b7280;font:500 15px/1 system-ui,-apple-system,"Microsoft YaHei",sans-serif;cursor:pointer}
  .ott-search-form button:focus-visible,.ott-search-close:focus-visible{outline:2px solid #d9232d;outline-offset:2px}
  html[data-ott-theme=dark] #header [data-device=mobile] .ott-app-search{color:#cbd5e1!important}
  html[data-ott-theme=dark] #header [data-device=mobile] .ott-app-search:active,html[data-ott-theme=dark] #header [data-device=mobile] .ott-app-search[aria-expanded=true]{background:#1e293b!important;color:#f87171!important}
  html[data-ott-theme=dark] .ott-search-panel:not([hidden]){background:#111827;border-color:#334155}
  html[data-ott-theme=dark] .ott-search-form input[type=search]{background:#1e293b;border-color:#334155;color:#f1f5f9}
  html[data-ott-theme=dark] .ott-search-form input[type=search]:focus{border-color:#f87171;background:#172033}
  html[data-ott-theme=dark] .ott-search-close{color:#94a3b8}
}
@media print{.ott-app-search,.ott-search-panel{display:none!important}}

/* Subscription entry (from the Ottnews push plugin): a small bell on phones so it no longer covers headlines. */
@media(max-width:680px){
  .ottnews-push-entry{width:46px!important;height:46px!important;min-width:0!important;padding:0!important;gap:0!important;align-items:center!important;justify-content:center!important;border-radius:50%!important;font-size:0!important;line-height:0!important}
  .ottnews-push-entry > span{font-size:20px;line-height:1}
}

/* Community page 1.3.0: local briefs, local news and an expired list per community. */
.ott-community-hub{--ott-hood-soft:#eef3fa;--ott-hood-live:#d9232d;--ott-hood-ok:#1d7a46;--ott-t-traffic:#b45309;--ott-t-traffic-bg:#fff4e0;--ott-t-power:#a16207;--ott-t-power-bg:#fef9c3;--ott-t-alert:#b91c1c;--ott-t-alert-bg:#fee2e2;--ott-t-event:#7c3aed;--ott-t-event-bg:#f3eeff;--ott-t-service:#0f766e;--ott-t-service-bg:#e3f6f3;--ott-t-community:#155189;--ott-t-community-bg:#edf5fe}
html[data-ott-theme=dark] .ott-community-hub{--ott-hood-soft:#1c2842;--ott-hood-live:#ff7a85;--ott-hood-ok:#5fd394;--ott-t-traffic:#fbbf6b;--ott-t-traffic-bg:#3a2a12;--ott-t-power:#fde047;--ott-t-power-bg:#3a3412;--ott-t-alert:#fca5a5;--ott-t-alert-bg:#3f1d1d;--ott-t-event:#c4a8ff;--ott-t-event-bg:#2c2147;--ott-t-service:#5eead4;--ott-t-service-bg:#123632;--ott-t-community:#9db8ff;--ott-t-community-bg:#1d2a4a}
.ott-community-intro a{color:var(--ott-app-text);text-decoration:underline;text-underline-offset:3px}
.ott-community-tabs .ott-tab-n{font-weight:400;font-size:12px;color:var(--ott-app-muted);margin-left:5px}
.ott-hood-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;margin:0 0 12px}
.ott-community-panel .ott-hood-head h2{margin:0!important;font-size:22px!important}
.ott-hood-upd{font-size:12.5px;color:var(--ott-hood-ok)}
.ott-hood-all,.ott-hood-side{margin-left:auto;font-size:13px;font-weight:400;color:var(--ott-app-accent)!important;text-decoration:none!important}
.ott-hood-sec{background:var(--ott-app-surface);border:1px solid var(--ott-app-line);border-radius:12px;margin:0 0 16px;overflow:hidden}
.ott-hood-sec>h3{display:flex;align-items:center;gap:8px;margin:0!important;padding:11px 18px;font-size:15.5px!important;line-height:1.5;color:var(--ott-app-text);border-bottom:1px solid var(--ott-app-line)}
.ott-hood-cnt{font-size:12px;font-weight:600;color:var(--ott-app-muted);background:var(--ott-hood-soft);border-radius:10px;padding:0 8px}
.ott-hood-sub{padding:7px 18px;font-size:12.5px;font-weight:700;color:var(--ott-app-muted);background:var(--ott-hood-soft);border-top:1px solid var(--ott-app-line)}
.ott-hood-sec>h3+.ott-hood-sub{border-top:0}
.ott-hood-sub.is-live{color:var(--ott-hood-live)}
.ott-hood-brief{display:grid;grid-template-columns:52px minmax(0,1fr);gap:12px;padding:10px 18px;border-top:1px solid var(--ott-app-line)}
.ott-hood-sub+.ott-hood-brief{border-top:0}
.ott-hood-type{align-self:start;justify-self:start;font-size:12px;font-weight:700;line-height:1.6;border-radius:5px;padding:0 7px;white-space:nowrap}
.ott-hood-type.is-traffic{color:var(--ott-t-traffic);background:var(--ott-t-traffic-bg)}
.ott-hood-type.is-power{color:var(--ott-t-power);background:var(--ott-t-power-bg)}
.ott-hood-type.is-alert{color:var(--ott-t-alert);background:var(--ott-t-alert-bg)}
.ott-hood-type.is-event{color:var(--ott-t-event);background:var(--ott-t-event-bg)}
.ott-hood-type.is-service{color:var(--ott-t-service);background:var(--ott-t-service-bg)}
.ott-hood-type.is-community{color:var(--ott-t-community);background:var(--ott-t-community-bg)}
.ott-hood-copy{min-width:0}
.ott-hood-copy h4{margin:0!important;font-size:15px!important;line-height:1.5;font-weight:600}
.ott-hood-copy h4 a{color:var(--ott-app-text)!important;text-decoration:none!important}
.ott-hood-copy h4 a:hover{color:var(--ott-app-accent)!important}
.ott-hood-meta{display:flex;flex-wrap:wrap;gap:2px 12px;margin-top:2px;font-size:12.5px;color:var(--ott-app-muted);font-variant-numeric:tabular-nums}
.ott-hood-when{font-weight:600;color:var(--ott-app-text)}
.ott-hood-brief.is-live .ott-hood-when{color:var(--ott-hood-live)}
.ott-hood-news{display:grid;grid-template-columns:120px minmax(0,1fr);gap:14px;align-items:start;padding:12px 18px;border-top:1px solid var(--ott-app-line)}
.ott-hood-sec>h3+.ott-hood-news{border-top:0}
.ott-hood-ph{display:block;aspect-ratio:16/10;border-radius:8px;overflow:hidden;background:var(--ott-hood-soft)}
.ott-hood-ph img{display:block;width:100%!important;height:100%!important;object-fit:cover}
.ott-hood-ph.is-none{display:grid;place-items:center;font-size:11px;font-weight:700;letter-spacing:1px;color:var(--ott-app-muted)!important;text-decoration:none!important}
.ott-hood-multi{font-size:11.5px;border:1px solid var(--ott-app-line);border-radius:4px;padding:0 5px}
.ott-hood-empty{margin:0!important;padding:14px 18px;font-size:14px;color:var(--ott-app-muted)}
.ott-hood-empty a{color:var(--ott-app-text)!important;text-decoration:underline}
.ott-hood-old{margin:0 0 16px}
.ott-hood-old summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px;padding:11px 18px;background:var(--ott-app-surface);border:1px solid var(--ott-app-line);border-radius:12px;font-weight:700;color:var(--ott-app-muted)}
.ott-hood-old summary::-webkit-details-marker{display:none}
.ott-hood-old summary::after{content:"展开 ›";margin-left:auto;font-size:13px;font-weight:400}
.ott-hood-old[open] summary::after{content:"收起"}
.ott-hood-old[open] summary{border-radius:12px 12px 0 0}
.ott-hood-old ul{list-style:none;margin:0!important;padding:0!important;background:var(--ott-app-surface);border:1px solid var(--ott-app-line);border-top:0;border-radius:0 0 12px 12px}
.ott-hood-old li{margin:0!important;padding:9px 18px;border-top:1px solid var(--ott-app-line);font-size:14px;color:var(--ott-app-muted)}
.ott-hood-old li:first-child{border-top:0}
.ott-hood-old li a{color:var(--ott-app-muted)!important;text-decoration:none!important}
.ott-hood-old li span{font-size:12px;margin-left:8px;white-space:nowrap}
@media(max-width:680px){
  .ott-hood-brief{grid-template-columns:minmax(0,1fr);gap:4px;padding:10px 14px}
  .ott-hood-news{grid-template-columns:minmax(0,1fr) 96px;gap:12px;padding:11px 14px}
  .ott-hood-news .ott-hood-ph{grid-column:2;grid-row:1;aspect-ratio:4/3}
  .ott-hood-news .ott-hood-copy{grid-column:1;grid-row:1}
  .ott-hood-sec>h3,.ott-hood-sub,.ott-hood-old summary,.ott-hood-old li{padding-left:14px;padding-right:14px}
}
