
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050711;
  color: #f5f7ff;
  line-height: 1.6;
}



a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(90deg, rgba(3,8,23,0.96), rgba(3,7,18,0.96));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 0.9rem;
  background: radial-gradient(circle at 0% 0%, #38bdf8, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.logo-text span:last-child {
  color: #38bdf8;
}

/* Brand logo image */
.logo-img{
  height: 30px;
  width: auto;
  display: block;
}
.footer .logo-img, footer .logo-img{
  height: 34px;
}

.logo a{
  display:flex;
  align-items:center;
}


.main-nav {
  position: relative;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(148,163,184,0.6);
  border-radius: 0.6rem;
  padding: 0.3rem 0.6rem;
  color: #e5e7eb;
  font-size: 1.1rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  font-size: 0.95rem;
}

.nav-links a {
  color: #e5e7eb;
  opacity: 0.86;
}

.nav-links a:hover {
  opacity: 1;
  color: #38bdf8;
}

.hero {
  padding: 3.5rem 0 2.5rem;
  background: radial-gradient(circle at top left, rgba(56,189,248,0.18), transparent 55%),
              radial-gradient(circle at top right, rgba(59,130,246,0.22), transparent 60%);
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 840px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
  }
}

.hero-text h1 {
  font-size: clamp(2.1rem, 3.2vw + 1.5rem, 2.9rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-sub {
  color: #cbd5f5;
  max-width: 36rem;
  margin-bottom: 1.4rem;
}

.hero-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.hero-search input {
  flex: 1 1 240px;
  padding: 0.65rem 0.9rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  font-size: 0.95rem;
}

.hero-search button {
  padding: 0.65rem 1.1rem;
  border-radius: 0.8rem;
  border: none;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: #0b1120;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}

.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.pill {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  font-size: 0.82rem;
  color: #e5e7eb;
  background: rgba(15,23,42,0.85);
}

.pill-accent {
  border-color: transparent;
  background: linear-gradient(135deg, #38bdf8, #10b981);
  color: #022c22;
  font-weight: 600;
}

.hero-panel {
  background: radial-gradient(circle at top left, rgba(56,189,248,0.12), #020617);
  border-radius: 1.1rem;
  padding: 1.4rem 1.3rem;
  border: 1px solid rgba(148,163,184,0.4);
  box-shadow: 0 16px 40px rgba(15,23,42,0.8);
}

.hero-panel h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #9ca3af;
  margin-bottom: 0.7rem;
}

.hero-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.9rem;
}

.hero-list a {
  color: #e5e7eb;
}

.hero-list a:hover {
  color: #38bdf8;
}

.section {
  padding: 2.5rem 0;
}

.section-alt {
  background: radial-gradient(circle at center, rgba(15,23,42,0.9), #020617);
}

.grid-3 {
  display: grid;
  gap: 1.4rem;
}

/* Generic grid helpers (used across manufacturer hubs and profiles) */
.grid {
  display: grid;
  gap: 1.4rem;
}

.grid-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  display: block;
  background: rgba(15,23,42,0.95);
  border-radius: 1rem;
  border: 1px solid rgba(148,163,184,0.5);
  padding: 1.2rem 1.1rem;
  box-shadow: 0 14px 30px rgba(15,23,42,0.8);
}

/* Cards that are links (common on manufacturer hubs) */
.card-link {
  cursor: pointer;
}

.card-link:hover {
  border-color: rgba(56,189,248,0.65);
  transform: translateY(-1px);
}

.card-cta {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #38bdf8;
  opacity: 0.95;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: #cbd5f5;
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}

.text-link {
  font-size: 0.85rem;
  color: #38bdf8;
}

.two-col {
  display: grid;
  gap: 1.6rem;
}

@media (min-width: 900px) {
  .two-col {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: start;
  }
}

.info-panel {
  background: rgba(2,6,23,0.96);
  border-radius: 1rem;
  border: 1px solid rgba(148,163,184,0.5);
  padding: 1.2rem 1.1rem;
  font-size: 0.9rem;
}

.checklist {
  list-style: none;
  margin: 0.9rem 0 1rem;
  display: grid;
  gap: 0.25rem;
}

.checklist li::before {
  content: "✔";
  color: #22c55e;
  margin-right: 0.4rem;
  font-size: 0.8rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 0.8rem;
  border: none;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: #0b1120;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Generic button links used across newer manufacturer hubs */
.btn {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(148,163,184,0.55);
  background: rgba(15,23,42,0.88);
  color: #e5e7eb;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn:hover {
  border-color: rgba(56,189,248,0.7);
  color: #38bdf8;
}

.btn-secondary {
  background: transparent;
}

.site-footer {
  border-top: 1px solid rgba(148,163,184,0.4);
  padding: 1.8rem 0 1.2rem;
  background: #020617;
  margin-top: 1rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 780px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-logo {
  margin-bottom: 0.35rem;
}

.footer-text {
  font-size: 0.82rem;
  color: #9ca3af;
  max-width: 28rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.1rem;
  font-size: 0.85rem;
  color: #d1d5db;
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-bottom {
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(148,163,184,0.4);
  text-align: center;
  font-size: 0.78rem;
  color: #6b7280;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Simple layout for inner pages */

.page {
  padding: 2.2rem 0;
}

.page-header {
  margin-bottom: 1.2rem;
}

.page-header h1 {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.page-header p {
  font-size: 0.9rem;
  color: #9ca3af;
}

.page-grid {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 900px) {
  .page-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }
}

.box {
  background: rgba(15,23,42,0.96);
  border-radius: 0.9rem;
  border: 1px solid rgba(148,163,184,0.5);
  padding: 1rem 1rem;
  font-size: 0.9rem;
}

.box h2, .box h3 {
  margin-bottom: 0.4rem;
}

/* Responsive navigation */

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    position: absolute;
    right: 0;
    margin-top: 0.4rem;
    background: rgba(15,23,42,0.98);
    border-radius: 0.9rem;
    border: 1px solid rgba(148,163,184,0.7);
    padding: 0.6rem 0.8rem;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 180px;
    display: none;
  }
  .nav-links.show {
    display: flex;
  }
}


.checklist.small-list li {
  font-size: 0.85rem;
}


.product-grid {
  align-items: stretch;
}

.ai-output {
  white-space: pre-wrap;
  font-size: 0.95rem;
  line-height: 1.6;
}

#code-filter {
  max-width: 360px;
}

.quick-code-form {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.quick-code-form input {
  max-width: 180px;
  padding: 0.35rem 0.5rem;
  font-size: 0.85rem;
}

.btn-small {
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
}

/* Show quick code form on larger screens */
@media (min-width: 768px) {
  .header-inner {
    gap: 1.5rem;
  }
  .quick-code-form {
    display: flex;
    margin-left: auto;
  }
}

/* Active nav link styling */
.main-nav .nav-links a.active {
  color: #60a5fa;
  border-bottom: 2px solid #60a5fa;
  padding-bottom: 0.15rem;
}


.section-muted {
  padding: 2.25rem 0;
  background: radial-gradient(circle at top left, rgba(56,189,248,0.18), transparent 55%), #020617;
  border-top: 1px solid rgba(148,163,184,0.25);
  border-bottom: 1px solid rgba(15,23,42,0.9);
}

.section-muted .section-title {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(148,163,184,0.5);
  color: #e5e7eb;
}

.badge.badge-new {
  border-color: rgba(56,189,248,0.6);
  color: #bae6fd;
}

.badge.badge-code {
  border-color: rgba(94,234,212,0.6);
  color: #a5f3fc;
}

/* Card hover polish */
.card {
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out, border-color 0.16s ease-out;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(148,163,184,0.8);
  box-shadow: 0 14px 35px rgba(15,23,42,0.85);
}

/* Footer links */
.site-footer a {
  color: #9ca3af;
  text-decoration: none;
}

.site-footer a:hover {
  color: #e5e7eb;
  text-decoration: underline;
}

/* ==========================
   v35 Visual Polish Overrides
   (Drop-in theme + nicer UI)
   ========================== */

:root {
  --ash-bg: #050711;
  --ash-bg2: #020617;
  --ash-surface: rgba(15, 23, 42, 0.92);
  --ash-surface2: rgba(2, 6, 23, 0.92);
  --ash-border: rgba(148, 163, 184, 0.42);
  --ash-text: #f5f7ff;
  --ash-muted: #cbd5f5;
  --ash-muted2: #9ca3af;
  --ash-accent: #38bdf8;
  --ash-accent2: #2563eb;
  --ash-good: #22c55e;
  --ash-warn: #f59e0b;
  --ash-bad: #ef4444;
}

body {
  background: radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.12), transparent 55%),
              radial-gradient(circle at 85% 0%, rgba(37, 99, 235, 0.12), transparent 55%),
              linear-gradient(180deg, var(--ash-bg), var(--ash-bg2));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.10), transparent 60%),
    radial-gradient(circle at 80% 30%, rgba(16, 185, 129, 0.06), transparent 55%);
  opacity: 0.85;
  mix-blend-mode: screen;
  z-index: -1;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.8);
  outline-offset: 2px;
}

.hero-search input,
.quick-code-form input,
textarea,
select {
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.hero-search input:focus,
.quick-code-form input:focus,
textarea:focus {
  border-color: rgba(56, 189, 248, 0.95);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.card,
.box,
.info-panel,
.hero-panel {
  border-color: var(--ash-border);
}

.card {
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.85);
}

.btn-primary {
  transition: transform 140ms ease, filter 140ms ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.text-link {
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* Cleaner typography for content-heavy pages */
.page h1, .page h2, .page h3 {
  letter-spacing: -0.01em;
}

.page p, .page li {
  color: var(--ash-muted);
}

.page strong {
  color: var(--ash-text);
}

.page ul {
  padding-left: 1.15rem;
}

.page li {
  margin: 0.2rem 0;
}

/* Common form row styling (replaces inline styles gracefully) */
.form-row {
  display: grid;
  gap: 0.45rem;
}

.form-row label {
  font-size: 0.9rem;
  color: var(--ash-muted);
}

/* Footer polish */
.site-footer {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 55%), var(--ash-bg2);
}

.footer-links a {
  opacity: 0.9;
}

.footer-links a:hover {
  opacity: 1;
}


/* Fault trees: clearer decision flow styling */
.fault-tree .page-header p{max-width:72ch;}
.fault-tree .ft-meta{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.6rem;}
.fault-tree .ft-pill{font-size:.8rem;padding:.2rem .55rem;border-radius:999px;background:rgba(56,189,248,.10);border:1px solid rgba(56,189,248,.22);color:var(--ash-text);}
.fault-tree .ft-flow ol.hero-list{padding-left:1.2rem;}
.fault-tree .ft-flow ol.hero-list>li{position:relative;margin:.75rem 0;padding:.75rem .9rem;border:1px solid rgba(148,163,184,.18);border-radius:16px;background:rgba(2,6,23,.28);}
.fault-tree .ft-flow ol.hero-list>li strong{display:block;margin-bottom:.25rem;}
.fault-tree .ft-callout{margin-top:.55rem;padding:.6rem .75rem;border-radius:14px;background:rgba(99,102,241,.08);border:1px solid rgba(99,102,241,.18);color:var(--ash-text);}
.fault-tree .ft-next{margin-top:.55rem;padding:.6rem .75rem;border-radius:14px;background:rgba(34,197,94,.08);border:1px solid rgba(34,197,94,.18);}
.fault-tree .ft-warn{margin-top:.55rem;padding:.6rem .75rem;border-radius:14px;background:rgba(245,158,11,.10);border:1px solid rgba(245,158,11,.22);}

/* Fault tree: next actions block */
.fault-tree .ft-actions{margin-top:1rem;}
.fault-tree .ft-actions .ft-action-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.75rem;margin-top:.75rem;}
.fault-tree .ft-actions a.ft-action{display:block;padding:.85rem .95rem;border:1px solid rgba(148,163,184,.18);border-radius:16px;background:rgba(2,6,23,.24);text-decoration:none;}
.fault-tree .ft-actions a.ft-action:hover{transform:translateY(-1px);}
.fault-tree .ft-actions .ft-action-title{display:block;font-weight:700;margin-bottom:.2rem;}
.fault-tree .ft-actions .ft-action-desc{display:block;color:rgba(226,232,240,.85);font-size:.95rem;line-height:1.35;}

/* Symptom selector */
.ft-filter{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center;}
.ft-filter input{flex:1;min-width:240px;}
.ft-tag-row{display:flex;gap:.4rem;flex-wrap:wrap;margin-top:.6rem;}
.ft-tag{border:1px solid rgba(148,163,184,.18);border-radius:999px;padding:.25rem .55rem;font-size:.85rem;background:rgba(2,6,23,.24);cursor:pointer;user-select:none;}
.ft-tag[aria-pressed="true"]{background:rgba(59,130,246,.18);border-color:rgba(59,130,246,.35);}

/* Fault tree: related links strip */
.ft-related-links{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
}
.ft-related-link{
  display:inline-block;
  padding:.4rem .6rem;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  text-decoration:none;
  font-weight:600;
}
.ft-related-link:hover{
  border-color:rgba(255,255,255,.22);
  text-decoration:none;
}

/* Fault tree: print / save checklist */
.fault-tree .ft-checklist{margin-top:1rem;}
.ft-checklist .checklist{margin:.6rem 0 0;padding:0;}
.ft-checklist .checklist li{list-style:none;display:flex;gap:.6rem;align-items:flex-start;padding:.35rem 0;}
.ft-checklist .checklist li::before{content:"\2610"; /* ballot box */
  font-size:1.1rem;line-height:1.15;margin-top:.05rem;opacity:.9;}
.ft-checklist .ft-print-row{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:.75rem;}
.ft-checklist .btn-print{display:inline-block;padding:.55rem .85rem;border-radius:14px;border:1px solid rgba(148,163,184,.22);background:rgba(59,130,246,.14);text-decoration:none;font-weight:800;}
.ft-checklist .btn-print:hover{transform:translateY(-1px);}

@media print{
  .site-header,.site-footer,.nav-toggle,.main-nav,.ft-actions,.ft-related{display:none !important;}
  body{background:#fff !important;color:#000 !important;}
  .box{border:1px solid #ddd !important;background:#fff !important;}
  a{color:#000 !important;text-decoration:none !important;}
}

/* Fault tree: print / save checklist */
.fault-tree .ft-checklist{margin-top:1rem;}
.ft-checklist .checklist{margin:.6rem 0 0;padding:0;}
.ft-checklist .checklist li{list-style:none;display:flex;gap:.6rem;align-items:flex-start;padding:.35rem 0;}
.ft-checklist .checklist li::before{content:"\2610"; /* ballot box */
  font-size:1.1rem;line-height:1.15;margin-top:.05rem;opacity:.9;}
.ft-checklist .ft-print-row{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.75rem;}
.ft-checklist .ft-print-btn{display:inline-block;padding:.55rem .8rem;border-radius:999px;border:1px solid rgba(255,255,255,.16);background:rgba(59,130,246,.14);text-decoration:none;font-weight:700;}
.ft-checklist .ft-print-btn:hover{border-color:rgba(59,130,246,.35);text-decoration:none;}

@media print{
  .site-header,.site-footer,.main-nav,.nav-toggle{display:none !important;}
  body{background:#fff !important;color:#000 !important;}
  .box{border:1px solid #ddd !important;background:#fff !important;}
  a{text-decoration:none !important;color:#000 !important;}
  .ft-action-grid,.ft-related-links{display:none !important;}
  .ft-print-row{display:none !important;}
}

/* --- AutoSolveHub earning engine additions --- */
.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0.35rem 0.6rem;
  border-radius:999px;
  font-size:0.75rem;
  font-weight:700;
  letter-spacing:0.02em;
  border:1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
}
.badge-low{ border-color: rgba(34,197,94,0.35); }
.badge-med{ border-color: rgba(245,158,11,0.35); }
.badge-high{ border-color: rgba(239,68,68,0.35); }

.muted{ color:#9ca3af; }
.meta{ font-size:0.85rem; color:#9ca3af; margin-top:0.35rem; }
.tool-card .btn-small{ margin-top:0.7rem; display:inline-block; }

.numbered{
  padding-left:1.25rem;
}
.numbered li{ margin-top:0.45rem; }

.grid-2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:1rem;
}
@media (max-width: 840px){
  .grid-2{ grid-template-columns: 1fr; }
}

/* Update 3A: related fix chips */
.chips { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:.25rem; }
.chip { display:inline-block; padding:.35rem .6rem; border:1px solid rgba(255,255,255,.18); border-radius:999px; text-decoration:none; }
.chip:hover { border-color: rgba(255,255,255,.35); }


/* --- Update 3B: decision tree + what-fixed-it --- */
.ash-tree h3 { margin: 0.2rem 0 0.8rem; }
.ash-tree-buttons { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.chip-btn { cursor: pointer; border: 0; }
.chip-btn:hover { filter: brightness(1.08); }


/* === v4 Step 4: Guides/Chips visual bug hardening === */
.grid-2 .card .badge{ margin-bottom: .6rem; }
.chip{ white-space: nowrap; line-height: 1.1; }
.chips{ align-items: flex-start; }
.type-label,.type-pill{ display:none !important; }
