/* Design choices sit beside the brand in both visual styles. */
.topbar .appearance-controls{display:inline-flex;align-items:center;gap:.35rem;flex:none;margin-left:.4rem}
.topbar .design-options{
  display:inline-flex;flex:none;gap:2px;padding:3px;margin-left:0;
  border:1px solid rgba(255,255,255,.32);border-radius:999px;
  background:rgba(255,255,255,.08);
}
.topbar .design-options button{
  border:0;border-radius:999px;background:transparent;color:#f5f1e8;
  padding:.4rem .7rem;font:700 13.8px var(--font-ui,Arial,sans-serif);cursor:pointer;
}
.topbar .design-options button[aria-pressed="true"]{
  background:var(--amber);color:#172922;box-shadow:0 1px 5px rgba(0,0,0,.18);
}
.topbar .design-options button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.topbar .design-options .design-short{display:none}
.topbar .appearance-controls #themeToggle{
  width:38px;height:38px;flex:none;color:#fff;
  border:1px solid rgba(255,255,255,.55);background:rgba(255,255,255,.14);
  box-shadow:0 0 0 1px rgba(0,0,0,.1);
}
.topbar .appearance-controls #themeToggle:hover,.topbar .appearance-controls #themeToggle:focus-visible{
  color:#152d24;background:#e6c283;border-color:#e6c283;
}

/* The large mark belongs to the main title, where its metal detail remains visible. */
.hero-title-lockup{display:flex;align-items:flex-start;gap:clamp(.7rem,1.7vw,1.5rem);min-width:0}
.hero-title-copy{flex:1;min-width:0}
.hero-title-copy h1{margin-bottom:0}
.city-tabs-shell{display:flex;align-items:flex-start;gap:.4rem;min-width:0}
.city-tabs-shell .tabs-row{flex:1;min-width:0;scroll-behavior:smooth}
.city-scroll{display:none;flex:none;place-items:center;width:38px;height:38px;margin-top:.2rem;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--card-bg);color:var(--ink);font-size:28px;line-height:1;cursor:pointer}
.city-scroll:hover:not(:disabled){border-color:var(--amber);color:var(--amber-deep)}
.city-scroll:disabled{opacity:.35;cursor:default}
.city-scroll:focus-visible{outline:2px solid var(--amber);outline-offset:2px}
@media(min-width:641px){.city-tabs-shell.has-overflow .city-scroll{display:grid}}
.hub-social-links{display:grid;gap:.55rem;min-width:0}
.hub-social-label{color:var(--ink-3);font-size:12.65px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.hub-social-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}
.hub-social-button{display:flex;align-items:center;gap:.7rem;min-height:62px;padding:.55rem .85rem;border-radius:10px;box-sizing:border-box;color:#fff;text-decoration:none;box-shadow:0 8px 20px rgba(0,0,0,.18);overflow:hidden}
.hub-social-button b,.hub-social-button small{display:block;white-space:nowrap}
.hub-social-button b{font:700 18.4px/1.15 var(--font-ui,Arial,sans-serif)}
.hub-social-button small{margin-top:3px;font:600 12.65px/1.15 var(--font-ui,Arial,sans-serif);opacity:.9}
.hub-social-icon{width:31px;height:31px;flex:none}
.hub-social-telegram{background:linear-gradient(135deg,#36b5e9,#1687c6);border:1px solid #58c4ef}
.hub-social-telegram:hover{filter:brightness(1.08);transform:translateY(-2px);box-shadow:0 11px 24px rgba(30,155,210,.35)}
.hub-social-telegram:focus-visible{outline:3px solid var(--amber);outline-offset:3px}
.hub-social-max{background:linear-gradient(125deg,#471aff,#9500ff 72%,#6e1aff);border:1px solid #a16eff}
.hub-social-max:hover{filter:brightness(1.08);transform:translateY(-2px);box-shadow:0 11px 24px rgba(112,42,245,.35)}
.hub-social-max:focus-visible{outline:3px solid var(--amber);outline-offset:3px}
.hero-emblem{width:clamp(140px,12vw,190px);aspect-ratio:1;flex:none;perspective:650px;display:grid;place-items:center}
.hero-emblem img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 14px 12px rgba(0,0,0,.35)) drop-shadow(0 0 13px rgba(211,168,93,.17));backface-visibility:visible;transform-origin:center;animation:hub-x-turn 11s ease-in-out infinite}
@media(min-width:960px){
  .hero-title-lockup{align-items:center}
  .hero-right{align-self:start;justify-content:flex-start}
  [data-design="zielinski"] .hero-emblem{width:clamp(155px,11vw,180px)}
  [data-design="zielinski"] .hero-title-copy h1{font-size:clamp(48px,4.2vw,61px)}
}
@keyframes hub-x-turn{
  0%,68%{transform:rotateY(0deg)}
  82%{transform:rotateY(180deg)}
  96%,100%{transform:rotateY(360deg)}
}
@media(max-width:640px){
  .hero-title-lockup{gap:.55rem}
  .hero-emblem{width:clamp(62px,19vw,82px);margin-top:.25rem}
  .hero-title-copy .zone-line{letter-spacing:.12em;font-size:11.5px}
  .hero-title-copy h1{font-size:clamp(28px,8vw,39px);line-height:1.08}
  .hub-social-links{margin-top:.35rem}
  .hub-social-button{min-height:56px;padding:.5rem .65rem;gap:.5rem}
  .hub-social-icon{width:26px;height:26px}
  .hub-social-button b{font-size:16.1px}
  .hub-social-button small{font-size:11.5px}
}
@media(max-width:360px){.hub-social-button{padding:.45rem}.hub-social-icon{width:23px;height:23px}}
@media(prefers-reduced-motion:reduce){.hero-emblem img{animation:none}}

/* Classic dark mode keeps its light header, so all header labels need dark ink. */
[data-design="classic"][data-theme="dark"] .topbar{color:#17191b}
[data-design="classic"][data-theme="dark"] .topbar .brand-text b,
[data-design="classic"][data-theme="dark"] .topbar .brand-text i,
[data-design="classic"][data-theme="dark"] .topbar .topnav a,
[data-design="classic"][data-theme="dark"] .topbar .design-options button{color:#17191b}
[data-design="classic"][data-theme="dark"] .topbar .design-options{
  border-color:#8b8579;background:rgba(0,0,0,.04);
}
[data-design="classic"][data-theme="dark"] .topbar-right .icon-btn{
  color:#17191b;border-color:#8b8579;background:rgba(0,0,0,.04);
}
[data-design="classic"][data-theme="dark"] .topbar .appearance-controls #themeToggle{
  color:#17191b;border-color:#8b8579;background:rgba(0,0,0,.04);
}
[data-design="classic"][data-theme="dark"] .topbar #authBtn{
  color:#17191b!important;border-color:#8b8579!important;
}
[data-design="classic"][data-theme="dark"] .topbar #topPostBtn{color:#17191b}

[data-theme="dark"] .geo-map .leaflet-container{background:#28383b}
[data-theme="dark"] .leaflet-tile{filter:brightness(.8) saturate(.9) contrast(.95)}
.topbar #registerBtn,.topbar .mobile-menu-btn,.topbar .mobile-nav{display:none}
@media(max-width:640px){
  .topbar{
    display:grid;grid-template-columns:minmax(0,1fr) auto 38px;
    gap:.4rem;padding:.45rem .75rem;min-height:0;
  }
  .topbar .brand{grid-column:1;min-width:0}
  .topbar .brand-text{display:block;font-size:13.8px;letter-spacing:.015em}
  .topbar .topnav{display:none}
  .topbar .appearance-controls{grid-column:2;justify-self:center;margin:0;gap:.2rem}
  .topbar .design-options{
    margin:0;padding:2px;min-width:0;
  }
  .topbar .design-options button{
    display:inline-flex;align-items:center;justify-content:center;
    width:32px;height:32px;padding:0;font-size:14.95px;white-space:nowrap;
  }
  .topbar .design-options .design-name{display:none}
  .topbar .design-options .design-short{display:inline}
  .topbar .appearance-controls #themeToggle{width:38px;height:38px}
  .topbar .mobile-menu-btn{
    grid-column:3;display:flex;align-items:center;justify-content:center;
    width:38px;height:38px;color:#f0ead9;border-color:rgba(240,234,217,.45);
    font-size:20px;line-height:1;
  }
  .topbar-right{
    grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;
    gap:.4rem;margin:0;min-width:0;
  }
  .topbar-right #authBtn,.topbar-right #registerBtn{
    display:inline-flex;align-items:center;justify-content:center;
    width:auto;height:38px;padding:0 .75rem;font-size:13.8px;white-space:nowrap;
  }
  .topbar-right #registerBtn{margin-right:auto}
  .topbar-right #cabinetBtn{width:38px;height:38px}
  [data-authenticated="false"] .topbar-right #cabinetBtn{display:none}
  [data-authenticated="true"] .topbar-right #authBtn,
  [data-authenticated="true"] .topbar-right #registerBtn{display:none}
  .topbar-right #topPostBtn{
    display:inline-flex;align-items:center;justify-content:center;
    width:38px;height:38px;padding:0;font-size:0;flex:none;
  }
  .topbar-right #topPostBtn::before{content:"+";font-size:22px;font-weight:700;line-height:1}
  .topbar .mobile-nav:not([hidden]){
    grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;
    gap:.3rem;padding:.4rem 0 .1rem;border-top:1px solid rgba(255,255,255,.25);
  }
  .topbar .mobile-nav a{
    color:#f0ead9;text-decoration:none;font-size:13.8px;font-weight:600;
    padding:.65rem .5rem;border:1px solid rgba(255,255,255,.22);
    border-radius:6px;text-align:center;
  }
  [data-design="classic"][data-theme="dark"] .topbar .mobile-menu-btn,
  [data-design="classic"][data-theme="dark"] .topbar .mobile-nav a{color:#17191b;border-color:#8b8579}
  [data-design="classic"][data-theme="dark"] .topbar .mobile-nav:not([hidden]){border-color:#8b8579}
  .hero,.hero-left,.hero-right,.feed-head{min-width:0}
  .hero-cta .referral-cta{max-width:100%;min-width:0;box-sizing:border-box;white-space:normal}
  .feed-meta{min-width:0;flex-wrap:wrap}
  .console-body-log .console-row:nth-child(n+2){display:none}
  .maps > .sec-head p{display:none}
}
@media(max-width:340px){
  .topbar{padding-inline:.45rem;gap:.2rem}
  .topbar .brand-text{display:none}
  .topbar-right{gap:.2rem}
  .topbar-right #authBtn,.topbar-right #registerBtn{padding:0 .55rem;font-size:12.65px}
}
