
/* Hub V406 — Full Site Clean + Polish
   Goal: unify guides, fixes, cards, routing pages, and older legacy pages under the premium STLBEAST Hub system.
*/

/* Global polish */
:root{
  --hub406-ink:#0f172a;
  --hub406-muted:#64748b;
  --hub406-soft:#f8fbff;
  --hub406-soft2:#eef6ff;
  --hub406-line:#dbeafe;
  --hub406-blue:#0ea5e9;
  --hub406-blue2:#2563eb;
  --hub406-cyan:#67e8f9;
  --hub406-dark:#020617;
}
html{scroll-behavior:smooth}
body{
  background:
    radial-gradient(circle at 14% 0%,rgba(14,165,233,.13),transparent 32%),
    radial-gradient(circle at 92% 10%,rgba(139,92,246,.10),transparent 30%),
    linear-gradient(180deg,#f8fbff 0%,#eef6ff 42%,#f8fbff 100%) !important;
  color:var(--hub406-ink);
}
main, .main, .legacy-main{
  overflow:hidden;
}
main :where(p,li){
  line-height:1.62;
}
main :where(h1,h2,h3){
  letter-spacing:-.045em;
}
main :where(a){
  text-underline-offset:3px;
}

/* Page breathing room */
section[class*="hub"],
.hero,
.section,
.wrap{
  box-sizing:border-box;
}
.wrap,
[class$="-wrap"],
.hub368-wrap,
.hub382-wrap,
.hub383-wrap,
.hub384-wrap,
.hub387-wrap,
.hub393-home,
.hub395-guide,
.hub403-page{
  max-width:1180px;
}

/* Universal hero/card upgrade for older guides and fixes */
.hero,
.hub368-hero,
.hub382-symptom-nav,
.hub383-hero,
.hub384-hero,
.hub387-hero,
.hub388-start-here,
.hub395-hero,
.hub403-page-hero,
section[class*="hero"]{
  border:1px solid rgba(191,219,254,.92) !important;
  border-radius:32px !important;
  background:
    radial-gradient(circle at 80% 8%,rgba(14,165,233,.16),transparent 32%),
    linear-gradient(135deg,#ffffff,#f8fbff 62%,#eef6ff) !important;
  box-shadow:0 22px 62px rgba(15,23,42,.08) !important;
}
.hero :where(h1,h2),
.hub368-hero h1,
.hub383-hero h1,
.hub384-hero h1,
.hub387-hero h1,
.hub395-hero h1,
.hub403-page-hero h1{
  color:#0f172a !important;
  text-shadow:none !important;
}
.hero :where(p),
.hub368-hero p,
.hub383-hero p,
.hub384-hero p,
.hub387-hero p,
.hub395-hero p,
.hub403-page-hero p{
  color:#475569 !important;
}

/* Kicker / pills consistency */
[class*="kicker"],
[class*="pill"],
[class*="chip"]{
  border-radius:999px !important;
}
.hub368-kicker,
.hub382-pill,
.hub383-kicker,
.hub384-kicker,
.hub387-kicker,
.hub388-polish-pill,
.hub393-kicker,
.hub395-kicker,
.hub403-kicker,
.eyebrow{
  display:inline-flex !important;
  width:max-content;
  align-items:center;
  gap:8px;
  padding:7px 10px !important;
  border-radius:999px !important;
  background:#e0f2fe !important;
  color:#075985 !important;
  font-size:.76rem !important;
  font-weight:950 !important;
  letter-spacing:.12em !important;
  text-transform:uppercase !important;
}

/* Cards, guide grids, fix grids */
.card,
.cards .card,
.hub363-card,
.hub368-section,
.hub382-card,
.hub382-symptom-grid a,
.hub383-card,
.hub384-card,
.hub384-step,
.hub387-panel,
.hub388-card,
.hub393-card,
.hub393-path,
.hub395-card,
.hub395-library-card,
.hub398-icon-grid a,
.hub403-route,
.hub403-steps a,
.hub403-collection-grid a,
[class*="card"],
[class*="panel"]{
  border:1px solid rgba(191,219,254,.86) !important;
  border-radius:24px !important;
  background:linear-gradient(180deg,#ffffff,#f8fbff) !important;
  box-shadow:0 16px 42px rgba(15,23,42,.07) !important;
}
.card:hover,
.hub382-symptom-grid a:hover,
.hub384-card:hover,
.hub384-step:hover,
.hub393-card:hover,
.hub393-path:hover,
.hub395-library-card:hover,
.hub398-icon-grid a:hover,
.hub403-route:hover{
  border-color:#7dd3fc !important;
  box-shadow:0 22px 52px rgba(14,165,233,.13) !important;
}

/* Make old guide sections easier to read */
.hub368-section,
.hub382-intel,
.hub384-path,
.hub387-panel,
.hub395-card,
article,
section[class*="guide"],
section[class*="fix"]{
  color:#0f172a;
}
.hub368-section h2,
.hub382-intel h2,
.hub384-path h2,
.hub387-panel h2,
.hub395-card h2,
article h2,
section[class*="guide"] h2,
section[class*="fix"] h2{
  color:#0f172a !important;
}
.hub368-section p,
.hub382-intel p,
.hub384-path p,
.hub387-panel p,
.hub395-card p,
article p,
section[class*="guide"] p,
section[class*="fix"] p{
  color:#475569 !important;
}

/* TOC and next-step link polish */
.hub368-toc,
.hub374-breadcrumbs,
.breadcrumbs,
nav[aria-label*="Guide"],
nav[aria-label*="Breadcrumb"]{
  max-width:1180px;
  margin:12px auto 18px !important;
  padding:10px !important;
  border-radius:20px !important;
  border:1px solid rgba(191,219,254,.85) !important;
  background:rgba(255,255,255,.92) !important;
  box-shadow:0 12px 30px rgba(15,23,42,.06) !important;
}
.hub368-toc a,
.hub374-breadcrumbs a,
.breadcrumbs a{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:7px 10px !important;
  margin:3px;
  border-radius:999px;
  background:#eff6ff;
  color:#0369a1 !important;
  text-decoration:none;
  font-weight:850;
}

/* Buttons */
.btn,
.button,
.hub393-btn,
.hub395-btn,
.hub144-btn,
[class*="btn"]{
  border-radius:999px !important;
  font-weight:900 !important;
}
.btn.primary,
.hub393-btn.primary,
.hub395-btn.primary,
.hub144-btn.primary,
.button.primary{
  background:linear-gradient(135deg,#0ea5e9,#2563eb) !important;
  color:#fff !important;
  border-color:transparent !important;
}

/* Fix-path hub and symptom grids */
.hub382-symptom-nav{
  max-width:1180px;
  margin:18px auto !important;
  padding:clamp(22px,4vw,42px) !important;
}
.hub382-symptom-nav h2{
  margin:0 0 10px;
  color:#0f172a;
  font-size:clamp(2rem,4vw,4rem);
  line-height:.92;
}
.hub382-symptom-grid{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px !important;
  margin-top:18px !important;
}
.hub382-symptom-grid a{
  display:block !important;
  padding:18px !important;
  text-decoration:none !important;
}
.hub382-symptom-grid b{
  display:block;
  color:#0f172a;
  margin-bottom:6px;
}
.hub382-symptom-grid span{
  color:#475569;
}

/* Guide category grids */
.hub384-grid,
.hub383-grid,
.grid.cards,
.cards,
.hub395-library-grid{
  gap:14px !important;
}
.hub384-card a,
.hub383-card a,
.hub395-library-card em,
.card a{
  color:#0369a1 !important;
  font-weight:900;
}

/* Form polish for wizard/search/tools */
input,select,textarea{
  border-radius:16px !important;
  border:1px solid #bfdbfe !important;
  background:#fff !important;
  color:#0f172a !important;
}
label{
  color:#0f172a !important;
  font-weight:850;
}
.hub387-field,
.field,
.form-field{
  margin-bottom:14px;
}

/* Tables and code blocks */
table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border-radius:18px;
  border:1px solid #dbeafe;
  background:#fff;
}
th,td{
  padding:12px 14px;
  border-bottom:1px solid #e2e8f0;
}
th{
  background:#eff6ff;
  color:#0f172a;
  text-align:left;
}
code,pre{
  border-radius:14px;
  background:#0f172a !important;
  color:#dbeafe !important;
}
pre{
  padding:16px;
  overflow:auto;
}

/* Image consistency */
main img{
  max-width:100%;
}
.hub393-card img,
.hub396-visual-card img,
.hub398-icon-grid img,
.hub403-route img{
  object-position:center !important;
}

/* Footer polish */
.footer{
  background:
    radial-gradient(circle at 18% 0%,rgba(14,165,233,.16),transparent 34%),
    linear-gradient(135deg,#020617,#07111f) !important;
  border-top:1px solid rgba(125,211,252,.18) !important;
}
.footer,
.footer p,
.footer a,
.footer b{
  color:#dbeafe !important;
}
.footer a:hover{
  color:#67e8f9 !important;
}

/* Clean old empty/status-looking panels */
[class*="status"],
[class*="benchmark"],
[class*="presentation"]{
  border-radius:22px;
}

/* Mobile readability */
@media(max-width:1020px){
  .hub382-symptom-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  body{
    background:linear-gradient(180deg,#f8fbff,#eef6ff) !important;
  }
  .hero,
  .hub368-hero,
  .hub382-symptom-nav,
  .hub383-hero,
  .hub384-hero,
  .hub387-hero,
  .hub395-hero,
  .hub403-page-hero{
    border-radius:24px !important;
    padding:22px 18px !important;
  }
  .hub382-symptom-grid{
    grid-template-columns:1fr;
  }
  .card,
  .hub382-symptom-grid a,
  .hub383-card,
  .hub384-card,
  .hub387-panel,
  .hub393-card,
  .hub395-card{
    border-radius:20px !important;
  }
  .hub368-toc{
    display:flex;
    overflow-x:auto;
    gap:6px;
  }
  .hub368-toc a{
    white-space:nowrap;
  }
}


/* V406 added organization sections */
.hub406-fix-command,
.hub406-guide-command,
.hub406-quality-bar{
  max-width:1180px;
  margin:18px auto;
  padding:0 18px;
}
.hub406-fix-command-head,
.hub406-guide-command-head{
  padding:clamp(24px,4vw,46px);
  border-radius:34px;
  background:
    radial-gradient(circle at 84% 12%,rgba(14,165,233,.20),transparent 34%),
    linear-gradient(135deg,#ffffff,#f8fbff 60%,#eef6ff);
  border:1px solid rgba(191,219,254,.92);
  box-shadow:0 22px 62px rgba(15,23,42,.08);
}
.hub406-fix-command-head h1,
.hub406-guide-command-head h1{
  margin:12px 0 10px;
  color:#0f172a;
  font-size:clamp(2.2rem,4.8vw,4.7rem);
  line-height:.9;
  letter-spacing:-.075em;
}
.hub406-fix-command-head p,
.hub406-guide-command-head p{
  max-width:790px;
  color:#475569;
  line-height:1.62;
  margin:0;
}
.hub406-fix-flow,
.hub406-guide-routes{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}
.hub406-guide-routes{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.hub406-fix-flow a,
.hub406-guide-routes a{
  display:block;
  padding:18px;
  text-decoration:none;
  border-radius:24px;
  background:linear-gradient(180deg,#ffffff,#f8fbff);
  border:1px solid rgba(191,219,254,.88);
  box-shadow:0 16px 42px rgba(15,23,42,.07);
}
.hub406-fix-flow b,
.hub406-guide-routes b{
  display:block;
  color:#0f172a;
  margin-bottom:6px;
}
.hub406-fix-flow span,
.hub406-guide-routes span{
  display:block;
  color:#475569;
  line-height:1.45;
  font-size:.92rem;
}
.hub406-quality-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border-radius:24px;
  padding:18px 22px;
  background:linear-gradient(135deg,#020617,#07111f);
  border:1px solid rgba(125,211,252,.24);
  box-shadow:0 20px 54px rgba(2,6,23,.20);
}
.hub406-quality-bar b{
  display:block;
  color:#fff;
  margin-bottom:4px;
}
.hub406-quality-bar span{
  color:#bfdbfe;
}
.hub406-quality-bar a{
  color:#67e8f9 !important;
  font-weight:900;
  text-decoration:none;
  white-space:nowrap;
}
@media(max-width:960px){
  .hub406-fix-flow,
  .hub406-guide-routes{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .hub406-fix-command,
  .hub406-guide-command,
  .hub406-quality-bar{padding:0 10px}
  .hub406-fix-command-head,
  .hub406-guide-command-head{border-radius:24px;padding:22px 18px}
  .hub406-fix-flow,
  .hub406-guide-routes{grid-template-columns:1fr}
  .hub406-quality-bar{display:block}
  .hub406-quality-bar a{display:inline-flex;margin-top:10px}
}
