/* wiring-chrome.css - a lighter, clearer look for the page furniture on wiring-diagrams.html
 *
 * The page header, tabs, diagram title bars, filter buttons, side-panel headers and table headers were solid dark navy with
 * hard offset shadows, and a lot of the text was 8-10px. This sheet restyles them: white cards, soft borders, dark text on light
 * backgrounds, and sizes that can be read on a phone.
 *
 * Additive: loaded after the page's own <style>, it only overrides appearance. Remove the <link> and the page is exactly as before.
 */

html, body { background: #f3f5f8; color: #0f172a; }
.page { padding: 14px; }

/* ---- page header ---- */
.hdr { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; gap: 12px 14px; box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.hdr-logo { width: 40px; height: 40px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; }
.hdr-logo svg { width: 22px; height: 22px; }
.hdr-ttl h1 { font-family: 'Inter', system-ui, sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -.01em; text-transform: none; color: #0f172a; line-height: 1.2; }
.hdr-ttl p { font-size: 13px; color: #64748b; margin-top: 4px; line-height: 1.4; }
.back-btn { background: #fff; border: 1px solid #cbd5e1; color: #1e293b; padding: 9px 14px; border-radius: 9px; font-family: 'Inter', system-ui, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0; box-shadow: none; min-height: 38px; }
.back-btn:hover { background: #f1f5f9; color: #0f172a; }
.badge { background: #f1f5f9; color: #475569; border-radius: 999px; padding: 5px 12px; font-family: 'Inter', system-ui, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .08em; }

/* ---- tabs: a segmented control ---- */
.tabs { display: inline-flex; flex-wrap: nowrap; gap: 4px; padding: 4px; margin-bottom: 14px; background: #e6ebf1; border: 0; border-radius: 12px; max-width: 100%; }
.tab { font-family: 'Inter', system-ui, sans-serif; font-weight: 600; font-size: 14px; letter-spacing: 0; text-transform: none; white-space: nowrap; text-align: center;
       padding: 10px 18px; margin: 0; background: transparent; color: #475569; border: 0; border-radius: 9px; min-height: 40px; }
.tab:hover { background: rgba(255,255,255,.6); color: #0f172a; }
.tab.active { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(15,23,42,.16), inset 0 -3px 0 #0369a1; }
@media (max-width: 640px) {
  .tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .tab { padding: 11px 8px; font-size: 14px; }
  .hdr-ttl h1 { font-size: 19px; }
}

/* ---- diagram card and its title bar ---- */
.dcard { border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 1px 3px rgba(15,23,42,.08); }
.dtbar { background: #f8fafc; border-bottom: 1px solid #e2e8f0; padding: 12px 14px; gap: 10px; }
.dtitle { font-family: 'Inter', system-ui, sans-serif; font-weight: 700; font-size: 14px; color: #0f172a; letter-spacing: .02em; white-space: normal; line-height: 1.3; }
.fbs { gap: 6px; }
.fb { background: #fff; border: 1px solid #cbd5e1; color: #334155; padding: 8px 12px; min-height: 36px; border-radius: 999px;
      font-family: 'Inter', system-ui, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0; }
.fb:hover { background: #e0f2fe; border-color: #7dd3fc; color: #075985; }
.fb.on { background: #0369a1; border-color: #0369a1; color: #fff; }
.bfw-bar { background: #fff; border-bottom: 1px solid #e2e8f0; }

/* ---- side panels ---- */
.rc { border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 1px 3px rgba(15,23,42,.08); }
.rh { background: #f8fafc; border-bottom: 1px solid #e2e8f0; padding: 11px 14px; }
.rh h3 { font-family: 'Inter', system-ui, sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; color: #0f172a; }
.rb { padding: 14px; }
.ph { font-size: 13px; color: #64748b; min-height: 70px; }
.cdet h4 { font-family: 'Inter', system-ui, sans-serif; font-size: 16px; font-weight: 700; color: #0369a1; }
.cdet p { font-size: 13px; line-height: 1.6; color: #334155; }
.tlist li { font-size: 12.5px; line-height: 1.5; padding: 6px 0; }
.tdot { width: 11px; height: 11px; margin-top: 3px; }
.litem { font-size: 13px; color: #334155; line-height: 1.45; }
.lswatch { height: 10px; border-radius: 5px; }
.steps li { font-size: 13px; line-height: 1.55; color: #334155; padding: 6px 0; }
.steps li::before { min-width: 20px; height: 20px; font-size: 11px; background: #334155; }
.vstates { border: 1px solid #cbd5e1; border-radius: 8px; }
.vstates-h { background: #f1f5f9; color: #0f172a; font-family: 'Inter', system-ui, sans-serif; font-size: 12px; letter-spacing: .02em; text-transform: none; padding: 7px 10px; }
.vcell { width: 46px; font-size: 10.5px; padding: 3px; }
.vdesc { font-size: 11.5px; }
.walert, .wnote { font-size: 12.5px; line-height: 1.55; border-radius: 8px; padding: 9px 11px; }

/* ---- fault finder tab ---- */
.ff-card { border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 1px 3px rgba(15,23,42,.08); }
.ff-card-head { background: #f8fafc; border-bottom: 1px solid #e2e8f0; padding: 12px 16px; }
.ff-card-head h2 { font-family: 'Inter', system-ui, sans-serif; font-size: 16px; font-weight: 700; letter-spacing: 0; text-transform: none; color: #0f172a; }
.ff-card-head .sys-badge { font-family: 'Inter', system-ui, sans-serif; font-size: 11px; letter-spacing: .06em; border-radius: 999px; padding: 4px 10px; }
.ff-section-title { font-family: 'Inter', system-ui, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: none; border-bottom: 1px solid #cbd5e1; padding-bottom: 6px; color: #0f172a; }
.mm-table, .ft-table { font-size: 12.5px; }
.mm-table th, .ft-table th { background: #eef2f7; color: #334155; font-family: 'Inter', system-ui, sans-serif; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; padding: 8px 10px; border-bottom: 1px solid #cbd5e1; }
.mm-table td { font-size: 12px; padding: 7px 10px; }
.ft-table td { font-size: 12.5px; padding: 8px 10px; }
.mm-table .t-probe, .mm-table .t-note { font-size: 11.5px; }
.info-box { font-size: 12.5px; line-height: 1.6; border-radius: 10px; padding: 11px 13px; }
.info-box strong { font-family: 'Inter', system-ui, sans-serif; font-size: 13px; letter-spacing: 0; text-transform: none; }
.v-badge { font-size: 11.5px; padding: 3px 8px; border-radius: 999px; }
.mm-setup { font-size: 12.5px; line-height: 1.6; }
.mm-setup strong { font-family: 'Inter', system-ui, sans-serif; font-size: 13px; letter-spacing: 0; text-transform: none; }
.test-steps li { font-size: 12.5px; line-height: 1.6; }
.test-steps li::before { min-width: 22px; height: 22px; font-size: 11px; }

/* ---- test cards: the index buttons, back button, table headers ---- */
.tc-head h2 { font-family: 'Inter', system-ui, sans-serif; font-size: 22px; font-weight: 700; text-transform: none; letter-spacing: -.01em; color: #0f172a; }
.tc-head p { font-size: 14px; line-height: 1.55; color: #475569; }
.tc-idx { background: #fff; border: 1px solid #cbd5e1; border-radius: 12px; box-shadow: 0 1px 2px rgba(15,23,42,.06); padding: 14px 16px; min-height: 52px;
          font-family: 'Inter', system-ui, sans-serif; font-weight: 600; font-size: 15px; letter-spacing: 0; color: #0f172a; }
.tc-idx:hover { background: #f0f9ff; border-color: #7dd3fc; color: #075985; transform: none; box-shadow: 0 2px 6px rgba(3,105,161,.15); }
.tc-idx.feat { background: #0369a1; border-color: #0369a1; color: #fff; }
.tc-idx.feat:hover { background: #075985; border-color: #075985; color: #fff; }
.tc-back { background: #fff; border: 1px solid #cbd5e1; border-radius: 9px; box-shadow: none; padding: 9px 16px; min-height: 38px;
           font-family: 'Inter', system-ui, sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0; text-transform: none; color: #1e293b; }
.tc-back:hover { background: #f1f5f9; color: #0f172a; }
.tc-root .card { border-radius: 14px; box-shadow: 0 1px 3px rgba(15,23,42,.08); }
.tc-root .card-t { font-family: 'Inter', system-ui, sans-serif; font-size: 19px; font-weight: 700; letter-spacing: -.01em; text-transform: none; color: #0f172a; }
.tc-root .badge { font-family: 'Inter', system-ui, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .06em; border-radius: 999px; padding: 4px 11px; }
.tc-root .what { font-size: 14px; line-height: 1.6; }
.tc-root .cond { font-size: 12.5px; line-height: 1.5; }
.tc-root .steps li { font-size: 13.5px; line-height: 1.6; padding-left: 30px; }
.tc-root .steps li::before { width: 21px; height: 21px; font-size: 11px; background: #334155; }
.tc-root .sec h4 { font-family: 'Inter', system-ui, sans-serif; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; }
.tc-root .ifw ul { font-size: 13.5px; line-height: 1.65; }
.tc-root table { font-size: 13px; }
.tc-root th { background: #eef2f7; color: #334155; font-family: 'Inter', system-ui, sans-serif; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; padding: 9px 11px; border-bottom: 1px solid #cbd5e1; }
.tc-root td { padding: 9px 11px; }
.tc-root .note, .tc-root .key, .tc-root .warn, .tc-root .teal { font-size: 13px; line-height: 1.65; }

/* ---- fault finder launcher (its styles are written inline, so these need !important) ---- */
#tab-fault > div { border: 1px solid #e2e8f0 !important; border-radius: 14px !important; box-shadow: 0 1px 3px rgba(15,23,42,.08); padding: 22px !important; }
#tab-fault > div > div:nth-child(1) { font-family: 'Inter', system-ui, sans-serif !important; font-size: 12px !important; font-weight: 700 !important; letter-spacing: .08em !important; color: #c2410c !important; }
#tab-fault > div > div:nth-child(2) { font-family: 'Inter', system-ui, sans-serif !important; font-size: 24px !important; font-weight: 700 !important; letter-spacing: -.01em; color: #0f172a !important; }
#tab-fault > div p { font-size: 15px !important; }
#tab-fault > div a { background: #0369a1 !important; border-radius: 10px !important; font-family: 'Inter', system-ui, sans-serif !important; font-size: 16px !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important; padding: 15px !important; }
#tab-fault > div a:hover { background: #075985 !important; }
