/* Shared chrome for trader Help / Learn / Developers / Status hubs */

:root {
  --th-bg: #0b0f14;
  --th-panel: rgba(8, 12, 18, 0.92);
  --th-line: rgba(255, 255, 255, 0.08);
  --th-text: rgba(238, 242, 247, 0.96);
  --th-muted: rgba(154, 168, 187, 0.82);
  --th-accent: rgba(142, 184, 234, 0.94);
  --th-ok: rgba(109, 205, 168, 0.94);
  --th-warn: rgba(232, 176, 96, 0.94);
  --font-body: "Manrope", "Noto Sans JP", system-ui, sans-serif;
  --font-display: "Manrope", "Noto Sans JP", system-ui, sans-serif;
  --font-logo-hyper: "Inter", system-ui, sans-serif;
  --font-logo-growth: "Times New Roman", Times, "Newsreader", "Instrument Serif", serif;
}

body.hg-trader-hub {
  margin: 0;
  min-height: 100vh;
  color: var(--th-text);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(142, 184, 234, 0.12), transparent 55%),
    radial-gradient(900px 500px at 88% 0%, rgba(109, 205, 168, 0.08), transparent 50%),
    var(--th-bg);
}

.th-shell {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 3.5rem;
}

.th-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--th-line);
}

.th-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
}

.th-brand img {
  width: 28px;
  height: 28px;
}

.th-brand-name {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.th-brand-name__hyper {
  font-family: var(--font-logo-hyper);
  font-weight: 700;
}

.th-brand-name__growth {
  font-family: var(--font-logo-growth);
  font-weight: 400;
  font-style: italic;
}

.th-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin-left: 0.25rem;
}

.th-nav a {
  color: var(--th-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.th-nav a:hover,
.th-nav a[aria-current="page"] {
  color: var(--th-text);
}

.th-actions {
  margin-left: auto;
  display: flex;
  gap: 0.55rem;
}

.th-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.9rem;
  border: 1px solid var(--th-line);
  color: var(--th-text);
}

.th-actions a.is-primary {
  background: rgba(142, 184, 234, 0.16);
  border-color: rgba(142, 184, 234, 0.35);
  color: var(--th-accent);
}

.th-hero h1 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
}

.th-hero p {
  margin: 0;
  max-width: 42rem;
  color: var(--th-muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.th-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.th-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--th-line);
  border-radius: 1rem;
  background: var(--th-panel);
  text-decoration: none;
  color: inherit;
  min-height: 8.5rem;
}

.th-card:hover {
  border-color: rgba(142, 184, 234, 0.28);
}

.th-card strong {
  font-size: 1.02rem;
}

.th-card span {
  color: var(--th-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.th-section {
  margin-top: 2rem;
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--th-line);
  border-radius: 1.1rem;
  background: var(--th-panel);
}

.th-section h2 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
}

.th-section p,
.th-section li {
  color: var(--th-muted);
  line-height: 1.55;
}

.th-section ul {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.th-status-ok {
  color: var(--th-ok);
  font-weight: 650;
}

.th-status-warn {
  color: var(--th-warn);
  font-weight: 650;
}

.th-footer {
  margin-top: 2.5rem;
  color: var(--th-muted);
  font-size: 0.86rem;
}

.th-footer a {
  color: var(--th-accent);
}

@media (max-width: 720px) {
  .th-actions {
    width: 100%;
    margin-left: 0;
  }

  .th-actions a {
    flex: 1;
    justify-content: center;
  }
}
