/* Shared compact footer: identity, registration and editor share one horizontal centre. */
.rh-footer,
.site-footer{--footer-gutter:32px;padding:10px var(--footer-gutter);background:#111;color:#f3f2ef}
.rh-footer .rh-footer-grid h4{color:#fff}
.rh-footer .rh-footer-grid p,.rh-footer .rh-footer-grid a,.site-footer .footer-brand .brand-wordmark small{color:#b4b1ab}
.rh-footer .rh-footer-bottom,.site-footer .footer-copyright{color:#b4b1ab}
.rh-footer:not(.rh-story-site-footer):has(>.rh-footer-grid[hidden]){padding-top:10px}
.rh-footer .rh-footer-bottom,
.site-footer .footer-inner{width:100%;max-width:none;min-height:44px;margin:0;padding:0;border:0;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);column-gap:28px;row-gap:0;align-items:center}
.footer-identity{min-width:0;display:flex;align-items:center;justify-content:flex-start;gap:28px;grid-column:1;grid-row:1}
.rh-footer-brand,
.site-footer .footer-brand{min-width:0;max-width:240px;flex:0 1 auto;display:inline-flex;align-items:center;justify-content:flex-start;color:#fff}
.rh-footer-brand img{display:block;width:auto;height:auto;max-width:100%;max-height:40px;object-fit:contain}
.rh-footer-brand span{font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.site-footer .footer-brand>.brand-logo-wrap{order:-1}
.site-footer .footer-brand .brand-wordmark{min-width:0}
.site-footer .footer-brand .brand-wordmark strong{overflow-wrap:anywhere}
.footer-identity>#rhFooterNotice,
.site-footer .footer-copyright{min-width:0;flex:0 1 auto;width:auto;margin:0;line-height:18px;overflow-wrap:anywhere;order:0;white-space:normal}
.rh-footer .rh-footer-bottom>#rhIcpLink,
.site-footer .footer-inner>.icp-record{grid-column:2;grid-row:1;justify-self:center;align-self:center;max-width:100%;margin:0;text-align:center;color:#d8d5cf;font:12px/20px Arial,"PingFang SC","Microsoft YaHei",sans-serif;white-space:nowrap}
.rh-footer .rh-footer-bottom>.rh-footer-editor,
.site-footer .footer-inner>button[data-open-editor]{grid-column:3;grid-row:1;align-self:center;justify-self:end;flex:none;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;line-height:1;justify-content:center;color:#b4b1ab}
.rh-footer .rh-footer-bottom>#rhIcpLink:hover,.rh-footer .rh-footer-bottom>#rhIcpLink:focus-visible,.site-footer .footer-inner>.icp-record:hover,.site-footer .footer-inner>.icp-record:focus-visible,.rh-footer .rh-footer-editor:hover,.rh-footer .rh-footer-editor:focus-visible,.site-footer .footer-inner>button[data-open-editor]:hover,.site-footer .footer-inner>button[data-open-editor]:focus-visible{color:#fff}
.rh-footer-bottom>.rh-footer-editor svg,
.site-footer .footer-inner>button[data-open-editor] svg{display:block;width:18px;height:18px}
@media(max-width:1250px){.rh-footer{--footer-gutter:24px}}
@media(max-width:1000px){.rh-footer{--footer-gutter:18px}}
@media(max-width:1100px){
  .rh-footer .rh-footer-bottom,.site-footer .footer-inner{grid-template-columns:minmax(0,1fr) auto auto;column-gap:18px}
  .footer-identity{gap:16px}
}
@media(max-width:640px){
  .site-footer{--footer-gutter:14px}
  .rh-footer,.site-footer{padding-block:10px}
  .rh-footer .rh-footer-bottom,.site-footer .footer-inner{column-gap:10px;min-height:36px}
  .footer-identity{gap:10px}
  .rh-footer-brand{max-width:70px;flex:0 1 70px}
  .rh-footer-brand img{max-height:32px}
  .site-footer .footer-brand{max-width:130px;flex:0 1 130px;gap:6px}
  .site-footer .footer-brand .brand-logo-wrap,.site-footer .footer-brand .default-logo{width:28px;height:28px}
  .site-footer .footer-brand .brand-wordmark strong{font-size:11px;line-height:1.3}
  .footer-identity>#rhFooterNotice,.site-footer .footer-copyright{font-size:9px;line-height:14px}
  .rh-footer .rh-footer-bottom>#rhIcpLink,.site-footer .footer-inner>.icp-record{font-size:10px;line-height:16px}
}

@media(max-width:600px){.rh-footer{--footer-gutter:14px}}

.site-footer .footer-brand{color:#fff}.site-footer .footer-brand .brand-wordmark strong{color:#fff}.site-footer .footer-brand .default-logo{color:#111;background:#fff}
.rh-footer.rh-story-site-footer{background:#111;color:#f3f2ef}.rh-footer.rh-story-site-footer .rh-footer-bottom{color:#b4b1ab}.rh-footer.rh-story-site-footer .rh-footer-editor{color:#b4b1ab}
