/* STEP966 beta.253: graphic parity for public SEO guides + clickable menus.
   Existing authenticated topbars, Lobby, cards/table/chat are untouched. */

/* Public guides keep the usual hand cursor for clickable navigation. */
.sb253-public-bar a { cursor: pointer !important; }

/* Public guide masthead uses the same 62px, gold-spade visual language
   as the approved beta.252 authenticated topbar, without pretending
   anonymous visitors are logged in. */
.sb253-public-bar,
.sb253-public-bar * { box-sizing: border-box; }
.sb253-public-bar {
  width: 100%; min-height: 62px; height: 62px;
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 0 clamp(12px, 2.2vw, 34px);
  background: #08140edc;
  border-bottom: 1px solid rgba(176,151,98,.16);
  backdrop-filter: blur(18px);
  color: #eef1ed; font-family: Inter, system-ui, sans-serif;
}
.sb253-public-brand {
  display: inline-flex; align-items: center; gap: 10px;
  flex: 0 1 auto; min-width: 0;
  color: #f4dfb4 !important; text-decoration: none !important;
}
.sb253-public-mark {
  flex: 0 0 37px; width: 37px; height: 37px;
  display: grid; place-items: center;
  color: #efd395 !important; font-size: 2.25rem;
  font-weight: 400; line-height: 1; letter-spacing: 0;
}
.sb253-public-name {
  color: #f4dfb4 !important; font: 700 clamp(1.22rem,1.65vw,1.7rem)/1 Georgia,serif;
  letter-spacing: -.038em; white-space: nowrap;
}
.sb253-public-links {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 8px; min-width: 0; margin-left: auto;
}
.sb253-public-links a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 37px; padding: 0 14px;
  border: 1px solid rgba(222,189,114,.20);
  border-radius: 999px; background: rgba(2,15,9,.22);
  color: #e7e8df !important; font-size: .76rem; font-weight: 700;
  line-height: 1; text-decoration: none !important; white-space: nowrap;
}
.sb253-public-links a:hover,
.sb253-public-links a:focus-visible {
  border-color: #dbb66d;
  background: rgba(200,170,109,.12);
  outline: none;
}
.sb253-public-links .sb253-public-login {
  background: linear-gradient(120deg,#e6c788,#9d854a);
  border-color: #dbb66d;
  color: #1d1a13 !important;
  box-shadow: inset 0 0 0 2px rgba(9,17,11,.45),0 0 0 2px rgba(212,180,114,.12);
}
.sb253-public-login-short { display: none; }
/* An authenticated visitor sees the original beta.252 global header,
   injected by the existing shared JS (not a duplicate public masthead). */
html.sb253-authenticated .sb253-public-bar { display: none !important; }
@media(max-width: 900px) {
  .sb253-public-links a:not(.sb253-public-login) { display: none; }
}
@media(max-width: 780px) {
  .sb253-public-bar {height: 60px; min-height:60px; padding:0 12px;}
  .sb253-public-name {font-size: 1.25rem;}
}
@media(max-width: 420px) {
  .sb253-public-login-full {display:none;}
  .sb253-public-login-short {display:inline;}
  .sb253-public-links a {padding:0 12px;}
}
@media(max-width: 320px) {
  .sb253-public-bar {padding:0 8px; gap:5px;}
  .sb253-public-name {font-size:1.1rem;}
  .sb253-public-mark {flex-basis:32px;width:32px;}
}
/* The guide page's *content* heading is not a second site masthead.
   Keep its title/read-control readable on narrow smartphones. */
@media(max-width: 780px) {
  .rules-guide-shell .rules-header {
    display: grid; grid-template-columns: minmax(0,1fr) auto;
    gap: 12px; align-items:center; padding: 15px 0 17px;
    height:auto; min-height:0;
  }
  .rules-guide-shell .rules-header > a {
    grid-column:1; grid-row:1; justify-self:start;
  }
  .rules-guide-shell .rules-header > button {
    grid-column:2; grid-row:1; justify-self:end;
    min-width:0; white-space:nowrap; font-size:.77rem; padding:8px 10px;
  }
  .rules-guide-shell .rules-header > div {
    grid-column:1/-1; grid-row:2; text-align:left; min-width:0;
  }
  .rules-guide-shell .rules-header h1 {
    margin:0; font-size:clamp(1.3rem,4.6vw,1.65rem);
    line-height:1.24; overflow-wrap:break-word;
  }
}
