/* Guest homepage: deliberately uses the portal's normal shell and its theme. */
.gh-home{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,31%);gap:16px;align-items:start;min-width:0;color:#0f172a}.dark .gh-home{color:#f5f5f5}
.gh-main,.gh-side{display:grid;gap:14px;min-width:0;align-content:start}.gh-side{position:static;max-height:none;overflow:visible;padding-bottom:2px}.gh-card{background:#fff;border:1px solid #e2e8f0;border-radius:26px;padding:16px;min-width:0;box-shadow:0 3px 14px rgba(15,23,42,.035)}.dark .gh-card{background:rgba(23,23,23,.66);border-color:#262626;box-shadow:none}.gh-card h2,.gh-feed-heading h2{font-size:16px;font-weight:800;letter-spacing:-.025em;line-height:1.3;margin:0}.gh-card p{color:#64748b;font-size:13px;line-height:1.5;margin:5px 0 0}.dark .gh-card p{color:#a3a3a3}.gh-welcome{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px}.gh-welcome-title,.gh-auth-brandline{display:flex;align-items:center;gap:11px;min-width:0}.gh-welcome h1{font-size:23px;font-weight:800;line-height:1.15;letter-spacing:-.04em;margin:0}.gh-brand,.gh-auth-brand-icon{display:grid;place-items:center;background:rgba(14,165,233,.09);border-radius:16px;width:46px;height:46px;flex:none}.gh-brand img,.gh-auth-brand-icon img{width:32px;height:32px;object-fit:contain}.gh-text-link{color:#0284c7;font-size:12px;font-weight:700;white-space:nowrap}.dark .gh-text-link{color:#38bdf8}.gh-quick{width:100%;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.gh-quick a{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;gap:6px;border-radius:16px;padding:10px 3px;color:#334155;background:#f8fafc;font-size:10px;font-weight:650;transition:background .18s,transform .18s}.dark .gh-quick a{color:#e5e5e5;background:#202020}.gh-quick a:hover{background:#e0f2fe;transform:translateY(-2px)}.dark .gh-quick a:hover{background:#183044}.gh-quick svg{width:23px;height:23px;color:#0284c7}.dark .gh-quick svg{color:#38bdf8}.gh-quick span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gh-recommendations{display:grid;gap:14px;min-width:0}.gh-recommendations[hidden]{display:none}.gh-recommendations .feed-smart-recs{border:1px solid #e2e8f0;border-radius:26px;background:#fff;overflow:hidden}.dark .gh-recommendations .feed-smart-recs{border-color:#262626;background:rgba(23,23,23,.66)}.gh-recommendations .feed-smart-rec-card{flex-basis:174px;width:174px;min-width:174px;max-width:174px;height:190px;min-height:190px;max-height:190px;border-radius:18px}.gh-recommendations .feed-smart-rec-main{height:150px}.gh-recommendations .feed-smart-rec-cover{height:62px}.gh-recommendations .feed-smart-rec-avatar-wrap{width:54px;height:54px;top:34px}.gh-recommendations .feed-smart-rec-info{top:94px}.gh-recommendations .feed-smart-rec-subscribe{height:30px;min-height:30px}.gh-loading{font-size:13px;color:#64748b;min-height:80px;display:grid;place-items:center}.gh-feed-heading{display:flex;align-items:center;justify-content:space-between;padding:0 4px;gap:8px}.gh-auth-brand-copy{display:grid;gap:2px}.gh-auth-brand-copy b{font-size:17px;font-weight:800;letter-spacing:-.03em}.gh-auth-brand-copy small{color:#64748b;font-size:11px}.dark .gh-auth-brand-copy small{color:#a3a3a3}.gh-auth-intro h2{margin-top:14px}.gh-auth .gh-auth-form{margin-top:14px}.gh-auth input[name=login],.gh-auth input[name=password]{width:100%;min-width:0;font-size:13px;padding:11px;border-radius:14px}.gh-auth .two-factor-otp-input{width:min(12%,36px);height:40px;padding:0;min-width:0}.gh-auth #loginSubmitBtn,.gh-primary,.gh-register{display:flex;align-items:center;justify-content:center;min-height:42px;width:100%;border-radius:14px;font-size:13px;font-weight:750;text-align:center;padding:9px 12px}.gh-primary{background:#0284c7;color:white}.gh-primary:hover{background:#0369a1}.gh-register{margin-top:9px;background:#f1f5f9;color:#0f172a}.dark .gh-register{background:#262626;color:#f5f5f5}.gh-login-legal{margin-top:11px;font-size:10px;color:#64748b;line-height:1.5}.gh-login-legal-actions{display:flex;flex-wrap:wrap;gap:2px 8px}.gh-login-legal a{color:#0284c7}.dark .gh-login-legal a{color:#38bdf8}.gh-danger-title{display:flex;align-items:center;gap:8px}.gh-danger-title svg{width:22px;height:22px;color:#e11d48;flex:none}.gh-map{margin-top:12px;min-height:90px;aspect-ratio:2.1;overflow:hidden;border-radius:17px;display:grid;place-items:center;background:linear-gradient(145deg,#13232c,#274653)}.gh-map img{width:100%;height:100%;object-fit:contain;opacity:.86}.gh-danger-status{margin:10px 0!important}.gh-danger-status[data-level=alert]{color:#e11d48;font-weight:700}.dark .gh-danger-status[data-level=alert]{color:#fda4af}.gh-services h2{margin-bottom:8px}.gh-services>a:not(.gh-text-link){display:flex;justify-content:space-between;align-items:center;padding:10px 2px;gap:5px;border-bottom:1px solid #f1f5f9}.dark .gh-services>a:not(.gh-text-link){border-color:#262626}.gh-services>a b,.gh-services>a small{display:block}.gh-services>a b{font-size:13px;font-weight:700}.gh-services>a small{font-size:11px;color:#64748b;margin-top:3px}.dark .gh-services>a small{color:#a3a3a3}.gh-services .gh-text-link{display:block;margin-top:12px}.gh-dialog{position:fixed;inset:0;margin:auto;width:min(380px,calc(100% - 28px));max-width:100%;padding:24px;text-align:center;z-index:10000;color:#0f172a}.dark .gh-dialog{background:#171717;color:#fff}.gh-dialog::backdrop{background:rgba(0,0,0,.5);backdrop-filter:blur(8px)}.gh-dialog img{display:block;margin:0 auto 12px}.gh-dialog h2{font-size:21px}.gh-dialog p{margin:9px 0 18px}.gh-close{position:absolute;top:10px;right:13px;width:32px;height:32px;border-radius:50%;font-size:22px;color:#64748b;background:#f1f5f9}.dark .gh-close{background:#262626;color:#e5e5e5}
@media(max-width:1100px){.gh-home{grid-template-columns:minmax(0,1fr) minmax(240px,34%);gap:12px}.gh-quick{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:850px){.gh-home{grid-template-columns:minmax(0,1fr)}.gh-side{position:static;max-height:none;overflow:visible;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-row:1}.gh-side .gh-services{display:none}.gh-quick{grid-template-columns:repeat(6,minmax(0,1fr))}}@media(max-width:550px){.gh-home{gap:12px}.gh-main,.gh-side{gap:12px}.gh-side{grid-template-columns:minmax(0,1fr)}.gh-card{border-radius:22px;padding:14px}.gh-quick{grid-template-columns:repeat(3,minmax(0,1fr))}.gh-side .gh-map{display:none}.gh-danger{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 10px}.gh-danger-title h2{font-size:14px}.gh-danger-status{grid-column:1;margin:0!important;font-size:12px!important}.gh-danger .gh-primary{grid-column:2;grid-row:1/3;min-height:36px;font-size:11px}.gh-recommendations .feed-smart-rec-card{flex-basis:160px;width:160px;min-width:160px;max-width:160px}.gh-welcome h1{font-size:20px}}@media(prefers-reduced-motion:reduce){.gh-home *{scroll-behavior:auto!important;transition:none!important}.gh-home .feed-smart-rec-name-text{animation:none!important}}
@media(max-width:850px){.gh-home{grid-template-columns:repeat(2,minmax(0,1fr))}.gh-side{display:contents}.gh-auth,.gh-danger{grid-row:1}.gh-main{grid-column:1/-1;grid-row:2}.gh-side .gh-services{display:block;grid-column:1/-1;grid-row:3}}
@media(max-width:550px){.gh-home{grid-template-columns:minmax(0,1fr)}.gh-auth{grid-row:1}.gh-danger{grid-row:2}.gh-main{grid-row:3}.gh-side .gh-services{grid-row:4}}

/* The real portal grid has a sidebar outside this component. Use the actual
   available column width, and keep the document as the only vertical scroller. */
.gh-home,.gh-main,.gh-side,.gh-main>section,.gh-main #feedList{min-width:0;max-width:100%}
.gh-home{overflow-anchor:auto}
.gh-home .feed-smart-rec-track{overscroll-behavior-x:contain}
.gh-home .gh-side{position:static;max-height:none;overflow:visible}
@media (min-width:851px) and (max-width:1100px){
  .gh-home{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gh-side{display:contents}
  .gh-auth,.gh-danger{grid-row:1}
  .gh-main{grid-column:1/-1;grid-row:2}
  .gh-side .gh-services{display:block;grid-column:1/-1;grid-row:3}
  .gh-quick{grid-template-columns:repeat(6,minmax(0,1fr))}
}
@media (min-width:768px) and (max-width:880px){
  .gh-home{grid-template-columns:minmax(0,1fr)}
  .gh-auth{grid-row:1}.gh-danger{grid-row:2}.gh-main{grid-row:3}.gh-side .gh-services{grid-row:4}
  .gh-quick{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Guest homepage is a normal portal page, never the cinematic /about shell.
   Strong route + content selectors also override previously cached landing CSS.
   Preserve the original header island styling, dimensions and controls. */
body[data-route="/"][data-my-id="0"]:not(.account-banned),
body:not(.account-banned):has(#siteMain [data-guest-home]) {
  padding-top: max(64px, calc(var(--header-offset, 56px) + 8px)) !important;
}
body[data-route="/"][data-my-id="0"]:not(.account-banned) > header.app-header,
body:not(.account-banned):has(#siteMain [data-guest-home]) > header.app-header {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: fixed !important;
  z-index: 50 !important;
}
