/*
 * Mobility Hub — games subdomain shell styles (hub/shell.css)
 * Piece 4 standards (locked): shell body text >= 18px; tap targets >= 48px (primary 56px);
 * dark text on light ground, high contrast (all pairs below are >= 7:1); words on every button;
 * no animation or transition that moves text.
 *
 * Bar placement: NORMAL DOCUMENT FLOW above #app (position: static). It takes its own space,
 * so it can never sit on top of game UI. hub/shell.js subtracts the bar height from the
 * suite's board-fit height so bar + board fit the visible screen together.
 * Everything is scoped under .hub-* classes / #hub-* ids; nothing inside #app is styled.
 */

/* ---------- top bar ---------- */
.hub-bar {
  position: static;            /* in flow: cannot overlap game controls */
  display: block;
  margin: 0;
  padding: 8px 12px;
  background: #ffffff;
  color: #111111;              /* 18.9:1 on white */
  border-bottom: 3px solid #1a1a1a;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.5;
  text-align: left;
}
.hub-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
}
.hub-bar .hub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 56px;            /* primary-size target for both shell actions */
  min-width: 48px;
  padding: 8px 20px;
  margin: 0;
  border: 3px solid #1a1a1a;
  border-radius: 12px;
  font: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: none;
  animation: none;
}
.hub-bar .hub-btn--primary   { background: #ffe08a; color: #111111; }   /* 15.4:1 */
.hub-bar .hub-btn--secondary { background: #ffffff; color: #111111; }   /* 18.9:1 */
.hub-bar .hub-btn:hover      { background: #f0f0f0; color: #111111; }
.hub-bar .hub-btn--primary:hover { background: #ffd24d; }
.hub-bar .hub-btn:focus-visible {
  outline: 4px solid #111111;
  outline-offset: 3px;
}
.hub-bar__message {
  max-width: 1200px;
  margin: 8px auto 0;
  padding: 8px 12px;
  background: #fff8e1;
  color: #111111;
  border-left: 6px solid #1a1a1a;
  font-size: 18px;
  line-height: 1.5;
}
.hub-bar__message[hidden] { display: none; }

/* Very small phones: buttons share the row; text stays >= 18px. */
@media (max-width: 420px) {
  .hub-bar { padding: 6px 8px; }
  .hub-bar__inner { gap: 6px; }
  .hub-bar .hub-btn { flex: 1 1 0; padding: 6px 10px; font-size: 18px; white-space: normal; text-align: center; }
}

/* The suite's #app asks for a full screen of height; give the bar its share. Styles the
   mount's outer box only — nothing inside #app is changed. */
body > #app { min-height: calc(100vh - var(--hub-bar-h, 0px)); }

/* ---------- house-ad slots (filled by hub/ads.js) ---------- */
.hub-ad-slot {
  display: block;
  box-sizing: border-box;
  max-width: 760px;
  margin: 16px auto;
  padding: 0 12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.hub-ad-slot[hidden], .hub-ad-slot.hub-ad-slot--off, .hub-ad-slot:empty { display: none; }

.hub-ad-card {
  display: flex;
  align-items: stretch;
  gap: 14px;
  min-height: 112px;
  padding: 12px;
  background: #ffffff;
  color: #111111;
  border: 3px solid #1a1a1a;
  border-radius: 14px;
  text-decoration: none;
  transition: none;
  animation: none;
}
.hub-ad-card:hover { background: #fbf7ea; }
.hub-ad-card:focus-visible { outline: 4px solid #ffe08a; outline-offset: 3px; }
.hub-ad-card__img {
  flex: 0 0 132px;
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 10px;
  background: #e6e6e6;
}
.hub-ad-card__body { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.hub-ad-card__label { font-size: 18px; line-height: 1.4; color: #3d3d3d; }               /* 11:1 */
.hub-ad-card__title { font-size: 22px; line-height: 1.35; font-weight: 700; color: #111111; }
.hub-ad-card__hook  { font-size: 18px; line-height: 1.5; color: #2b2b2b; }               /* 14:1 */
.hub-ad-card__cta   { font-size: 18px; line-height: 1.5; font-weight: 700; color: #0b3d91; text-decoration: underline; } /* 10.6:1 */

@media (max-width: 480px) {
  .hub-ad-card__img { flex-basis: 96px; width: 96px; height: 96px; }
  .hub-ad-card__title { font-size: 20px; }
}
