/**
 * GoCore Mainframe Chrome
 * Shared header / menubar / footer styles for gocore.solutions.
 *
 * Keep this file low-risk: only style layout chrome primitives.
 */

:root {
  /* Fallbacks when a page does not load the public theme CSS. */
  --bg: #f4f7fb;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: #ffffff;
  --line: rgba(18, 44, 88, 0.1);
  --text: #17324d;
  --muted: #5f7389;
  --primary: #1e5eff;
  --primary-strong: #1748c9;
  --accent: #d9e7ff;
  --shadow: 0 24px 70px rgba(21, 49, 84, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

.page-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px;
}

/* Chrome surfaces */
.topbar,
.menubar,
.footer {
  backdrop-filter: blur(12px);
}

.topbar {
  position: relative;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 30px rgba(18, 44, 88, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #215dff, #64bbff);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  flex: 0 0 auto;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.topnav-account {
  display: inline-flex;
  align-items: center;
}

.topnav-cta {
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  font-weight: 700;
}

.topnav-cta:hover {
  filter: brightness(0.99);
}

.menubar {
  margin-top: 16px;
  padding: 10px 6px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.menubar a {
  padding: 10px 2px;
  border-radius: 0;
  white-space: nowrap;
  font-weight: 600;
}

.menubar a:hover {
  color: var(--text);
}

.footer {
  margin-top: 24px;
  padding: 28px 6px 6px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.footer p {
  margin: 10px 0 0;
  max-width: 46ch;
  color: var(--muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
}

@media (max-width: 1080px) {
  .topbar {
    border-radius: 32px;
    padding: 18px;
  }
}

@media (max-width: 820px) {
  .page-shell {
    padding: 18px;
  }
  .topbar,
  .topbar-actions,
  .footer {
    flex-direction: column;
    align-items: stretch;
  }
  .menubar {
    margin-top: 12px;
  }
}
