﻿/* ============================================================
   Custom Plastic Electrical Control Box Enclosure — IM-18 product page
   Scope: .ecb   (B2B product marketing layout, 1180px, no article rail)
   Derived from the .ecb product-page system so all product pages
   share one visual language: sticky horizontal section nav, hero with
   spec pills + dual CTA, two-tone Fixed/Drawing spec tags, card grids,
   dark gradient CTA band.
   Brand: blue #0052cc . navy #0f2747 . accent #00a3c4
   Deploy to: /assets/css/electrical-control-box-enclosure.css
   ============================================================ */

.ecb{
  --blue:#0052cc;
  --blue-700:#0046b0;
  --navy:#0f2747;
  --accent:#00a3c4;
  --ink:#1f2733;
  --muted:#545f6e;
  --line:#e2e9f2;
  --soft:#f5f8fc;
  --soft2:#eef3f9;
  --radius:12px;
  --shadow-sm:0 1px 2px rgba(15,39,71,.05),0 8px 24px rgba(15,39,71,.06);
  --shadow-md:0 2px 4px rgba(15,39,71,.06),0 16px 40px rgba(15,39,71,.10);
  max-width:1180px;
  margin:0 auto;
  padding:0 24px;
  color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  background:#fff;
  scroll-behavior:smooth;
}
@media (max-width:640px){ .ecb{padding:0 16px;font-size:16.5px;} }

.ecb *{ box-sizing:border-box; }
.ecb h2,.ecb h3,.ecb h4{ color:var(--navy); line-height:1.24; font-weight:800; letter-spacing:-.015em; margin:0; }
.ecb p{ margin:0 0 14px; }
.ecb p:last-child{ margin-bottom:0; }
.ecb a{ color:var(--blue); text-decoration:none; }
.ecb a:hover{ text-decoration:underline; }
.ecb strong{ font-weight:700; color:var(--navy); }
.ecb code{ font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:.88em; background:var(--soft2); border:1px solid #dde7f2; border-radius:4px; padding:1px 5px; color:#12385f; }

/* ---------- Breadcrumb ---------- */
.ecb-crumbs{ padding:18px 0 0; font-size:14px; color:var(--muted); }
.ecb-crumbs a{ color:var(--muted); }
.ecb-crumbs span{ margin:0 7px; color:#9db0c4; }

/* ---------- Hero ---------- */
.ecb-hero{ display:grid; grid-template-columns:1.02fr .98fr; gap:48px; align-items:center; padding:26px 0 40px; }
.ecb-shot{ position:relative; }
.ecb-intro{ min-width:0; }
.ecb-shot img{ display:block; width:100%; height:auto; border-radius:16px; border:1px solid var(--line); box-shadow:var(--shadow-md); }
.ecb-shot-badge{
  position:absolute; left:14px; top:14px; z-index:2;
  background:rgba(15,39,71,.88); color:#fff; font-size:12.5px; font-weight:700;
  letter-spacing:.06em; text-transform:uppercase; padding:6px 12px; border-radius:999px;
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
}
.ecb-eyebrow{ font-size:13px; font-weight:800; letter-spacing:.11em; text-transform:uppercase; color:var(--accent); margin:0 0 10px; }
.ecb-title{ font-size:35px; line-height:1.14; letter-spacing:-.025em; margin:0 0 12px; }
.ecb-sub{ font-size:18px; color:var(--muted); line-height:1.6; margin:14px 0 20px; }

.ecb-chips{ display:flex; flex-wrap:wrap; gap:9px; margin:0 0 24px; padding:0; list-style:none; }
.ecb-chip{
  display:inline-flex; align-items:center; gap:7px;
  border:1px solid var(--line); background:var(--soft); border-radius:999px;
  padding:7px 14px; font-size:14.5px; color:var(--navy); font-weight:600;
}
.ecb-chip i{ width:6px; height:6px; border-radius:50%; background:var(--accent); display:block; }

.ecb-actions{ display:flex; flex-wrap:wrap; align-items:center; gap:16px; margin-bottom:22px; }
.ecb-ghost{ font-size:15.5px; font-weight:700; color:var(--blue); }

.ecb-facts{ list-style:none; margin:0; padding:18px 0 0; border-top:1px solid var(--line); display:grid; gap:9px; }
.ecb-facts li{ display:flex; gap:10px; font-size:15px; color:var(--muted); line-height:1.55; }
.ecb-facts li:before{ content:""; flex:none; width:5px; height:5px; margin-top:9px; border-radius:50%; background:var(--blue); }

/* ---------- Standard site CTA button ---------- */
.ecb .gcq-btn{
  display:inline-block; cursor:pointer; background:var(--blue); color:#fff;
  font-size:16px; font-weight:800; padding:14px 30px; border-radius:10px;
  box-shadow:0 8px 22px rgba(0,82,204,.30); border:0; text-decoration:none;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.ecb .gcq-btn:hover{ background:var(--blue-700); transform:translateY(-2px); box-shadow:0 12px 30px rgba(0,82,204,.42); color:#fff; text-decoration:none; }
.ecb .gcq-btn:active{ transform:translateY(0); box-shadow:0 6px 16px rgba(0,82,204,.28); }
.ecb-cta .gcq-btn{ font-size:17px; padding:15px 34px; }

/* ---------- Key-fact strip ---------- */
.ecb-strip{
  display:grid; grid-template-columns:repeat(4,1fr); gap:0;
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
}
.ecb-strip div{ padding:20px 22px; border-left:1px solid var(--line); }
.ecb-strip div:first-child{ border-left:0; padding-left:0; }
.ecb-strip b{ display:block; font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin-bottom:5px; }
.ecb-strip span{ display:block; font-size:15.5px; font-weight:700; color:var(--navy); line-height:1.4; }

/* ---------- Sticky section nav ---------- */
.ecb-nav{
  position:sticky; top:0; z-index:30; background:rgba(255,255,255,.96);
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line); margin-top:26px;
}
.ecb-nav ul{ display:flex; gap:4px; margin:0; padding:9px 0; list-style:none; overflow-x:auto; scrollbar-width:none; }
.ecb-nav ul::-webkit-scrollbar{ display:none; }
.ecb-nav a{ display:block; white-space:nowrap; padding:8px 14px; border-radius:8px; font-size:14.5px; font-weight:700; color:var(--muted); }
.ecb-nav a:hover{ background:var(--soft2); color:var(--navy); text-decoration:none; }

/* ---------- Sections ---------- */
.ecb-sec{ padding:48px 0; border-top:1px solid var(--line); }
.ecb-sec:first-of-type{ border-top:0; }
h3.ecb-h3{ font-size:23px; margin:34px 0 14px; letter-spacing:-.02em; }\n.ecb-h3{ font-size:27px; margin:0 0 16px; letter-spacing:-.02em; }
.ecb-h3:before{ content:""; display:block; width:38px; height:3px; border-radius:2px; background:var(--blue); margin-bottom:14px; }
.ecb-lead{ font-size:17px; color:var(--muted); max-width:74ch; margin:0 0 26px; }
.ecb-h4{ font-size:17px; margin:0 0 6px; }

/* ---------- Two-column text ---------- */
.ecb-2col{ display:grid; grid-template-columns:1fr 1fr; gap:32px; }
.ecb-2col p{ font-size:16.5px; }

/* ---------- Spec sheet ---------- */
.ecb-spec{ border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.ecb-spec-row{ display:grid; grid-template-columns:250px 1fr; gap:24px; padding:13px 20px; border-top:1px solid var(--line); }
.ecb-spec-row:first-child{ border-top:0; }
.ecb-spec-row:nth-child(odd){ background:var(--soft); }
.ecb-spec-row dt,.ecb-spec-row .k{ font-weight:700; color:var(--navy); font-size:15px; }
.ecb-spec-row dd,.ecb-spec-row .v{ margin:0; font-size:15.5px; color:var(--ink); }
.ecb-tag{ display:inline-block; font-size:12.5px; font-weight:800; letter-spacing:.04em; padding:2px 8px; border-radius:5px; margin-left:8px; vertical-align:1px; }
.ecb-tag.fixed{ background:#e6f0ff; color:#0046b0; }
.ecb-tag.draw{ background:#fff3d6; color:#8a5a00; }

/* ---------- Tables ---------- */
.ecb-tbl{ width:100%; border-collapse:collapse; font-size:15.5px; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.ecb-tbl caption{ caption-side:top; text-align:left; font-size:13.5px; font-weight:700; color:var(--muted); padding:0 0 8px; }
.ecb-tbl th{ background:var(--soft2); color:var(--navy); font-weight:800; text-align:left; padding:12px 14px; font-size:14px; letter-spacing:.01em; border-bottom:1px solid var(--line); }
.ecb-tbl td{ padding:12px 14px; border-top:1px solid var(--line); vertical-align:top; line-height:1.6; }
.ecb-tbl tbody tr:nth-child(even){ background:#fbfdff; }
.ecb-tbl-scroll{ overflow-x:auto; margin:0 0 18px; }

/* ---------- Cards ---------- */
.ecb-cards{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px; margin:0 0 20px; }
.ecb-card{ display:flex; flex-direction:column; border:1px solid var(--line); border-radius:var(--radius); padding:20px 20px 18px; background:#fff; }
.ecb-card h4{ font-size:16.5px; margin:0 0 4px; display:flex; align-items:center; gap:9px; }
.ecb-card .num{ flex:none; width:22px; height:22px; border-radius:6px; background:var(--blue); color:#fff; font-size:12.5px; font-weight:800; display:inline-flex; align-items:center; justify-content:center; }
.ecb-card p{ font-size:15px; color:var(--muted); margin:0 0 10px; }
.ecb-card .crit{ margin-top:auto; font-size:14px; color:var(--navy); background:var(--soft); border-radius:8px; padding:9px 11px; margin:0; }

/* ---------- Figure / SVG ---------- */
.ecb-fig{ margin:0 0 24px; }
.ecb-svgwrap{ border:1px solid var(--line); border-radius:var(--radius); background:var(--soft); padding:16px 10px; }
.ecb-svgwrap svg{ display:block; width:100%; height:auto; }
.ecb-fig img{ display:block; width:100%; height:auto; border-radius:var(--radius); border:1px solid var(--line); box-shadow:var(--shadow-sm); }
.ecb-fig figcaption{ font-size:14px; color:var(--muted); margin-top:10px; line-height:1.6; }

/* ---------- Notes ---------- */
.ecb-note{ border-left:3px solid var(--blue); background:var(--soft); border-radius:0 10px 10px 0; padding:14px 18px; font-size:15.5px; color:var(--ink); margin:20px 0 0; }
.ecb-note b{ color:var(--navy); }

/* ---------- Process steps ---------- */
.ecb-steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; list-style:none; margin:0; padding:0; counter-reset:step; }
.ecb-step{ position:relative; border:1px solid var(--line); border-radius:var(--radius); padding:18px 18px 16px 56px; background:#fff; }
.ecb-step:before{
  counter-increment:step; content:counter(step,decimal-leading-zero);
  position:absolute; left:16px; top:16px;
  font-size:13px; font-weight:800; color:var(--blue); letter-spacing:.02em;
}
.ecb-step h4{ font-size:15.5px; margin:0 0 3px; }
.ecb-step p{ font-size:14.5px; color:var(--muted); margin:0; line-height:1.55; }

/* ---------- Applications ---------- */
.ecb-apps{ display:flex; flex-wrap:wrap; gap:10px; margin:0; padding:0; list-style:none; }
.ecb-apps li{ border:1px solid var(--line); background:var(--soft); border-radius:999px; padding:8px 15px; font-size:15px; color:var(--navy); font-weight:600; }

/* ---------- FAQ ---------- */
.ecb-faq{ border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.ecb-faq details{ border-top:1px solid var(--line); }
.ecb-faq details:first-child{ border-top:0; }
.ecb-faq summary{
  cursor:pointer; list-style:none; padding:16px 44px 16px 20px; position:relative;
  font-weight:700; color:var(--navy); font-size:16px;
}
.ecb-faq summary::-webkit-details-marker{ display:none; }
.ecb-faq summary:after{
  content:"+"; position:absolute; right:20px; top:14px; font-size:20px; font-weight:400; color:var(--blue); line-height:1;
}
.ecb-faq details[open] summary:after{ content:"\2212"; }
.ecb-faq summary:hover{ background:var(--soft); }
.ecb-a{ padding:0 20px 16px; }
.ecb-a p{ font-size:15.5px; color:var(--muted); margin:0; }

/* ---------- CTA panel ---------- */
.ecb-cta{
  margin:8px 0 0; padding:42px 40px; border-radius:16px; text-align:center;
  background:linear-gradient(135deg,#0f2747 0%,#123a66 55%,#15507f 100%);
  box-shadow:var(--shadow-md);
}
.ecb-cta h2,.ecb-cta h3{ color:#fff; font-size:26px; margin:0 0 10px; }
.ecb-cta p{ color:#c9d8e8; font-size:16.5px; max-width:62ch; margin:0 auto 22px; }
.ecb-cta .micro,.ecb-cta .ecb-micro{ color:#9fb4cb; font-size:14px; margin:16px auto 0; }

/* ---------- Related ---------- */
.ecb-rel{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.ecb-rel a{ display:block; border:1px solid var(--line); border-radius:var(--radius); padding:17px 18px; background:#fff; transition:border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.ecb-rel a:hover{ text-decoration:none; border-color:#c6d9ee; box-shadow:var(--shadow-sm); transform:translateY(-2px); }
.ecb-rel .k{ display:block; font-size:12px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; color:var(--accent); margin-bottom:5px; }
.ecb-rel .t{ display:block; font-size:16px; font-weight:800; color:var(--navy); line-height:1.35; }
.ecb-rel p{ font-size:14px; color:var(--muted); margin:5px 0 0; }

/* ---------- Footnote ---------- */
.ecb-foot{ padding:26px 0 44px; border-top:1px solid var(--line); margin-top:34px; }
.ecb-foot p{ font-size:14px; color:var(--muted); max-width:88ch; }

/* ---------- Responsive ---------- */
@media (max-width:1000px){
  .ecb-hero{ grid-template-columns:1fr; gap:26px; padding-top:18px; }
  .ecb-title{ font-size:30px; }
  .ecb-strip{ grid-template-columns:repeat(2,1fr); }
  .ecb-strip div{ border-left:0; padding-left:0; padding-right:18px; }
  .ecb-strip div:nth-child(n+3){ border-top:1px solid var(--line); }
  .ecb-2col{ grid-template-columns:1fr; gap:0; }
  .ecb-steps{ grid-template-columns:repeat(2,1fr); }
  .ecb-rel{ grid-template-columns:1fr; }
}
@media (max-width:720px){
  .ecb-title{ font-size:26px; }
  .ecb-h3{ font-size:22px; }
  .ecb-sec{ padding:36px 0; }
  .ecb-cards{ grid-template-columns:1fr; }
  .ecb-steps{ grid-template-columns:1fr; }
  .ecb-spec-row{ grid-template-columns:1fr; gap:2px; padding:12px 16px; }
  .ecb-cta{ padding:30px 22px; }
  .ecb-tbl{ font-size:14.5px; }
  .ecb-tbl th,.ecb-tbl td{ padding:10px 11px; }
}

/* list + byline (not present in the parent product stylesheet) */
.ecb-list{ margin:0 0 4px; padding-left:18px; }
.ecb-list li{ font-size:15px; color:var(--muted); line-height:1.62; margin:0 0 7px; }
.ecb-byline{ font-size:13.5px; color:var(--muted); margin:14px 0 0; }

/* --- layout corrections --- */
.ecb-nav ul{ align-items:center; }
.ecb-nav li{ flex:0 0 auto; }
.ecb-nav a{ line-height:1.2; }
.ecb-lead{ max-width:82ch; }
.ecb-tbl .ecb-tag{ margin-left:0; }

.ecb-tbl-kv td:first-child{ width:210px; font-weight:700; color:var(--navy); }
.ecb-tbl-base td:last-child{ white-space:nowrap; width:96px; }

/* card chip alignment + basis column alignment */
.ecb-card{ display:flex; flex-direction:column; }
.ecb-card .crit{ margin-top:auto; margin-top:auto; }
.ecb-tbl-base th:last-child,
.ecb-tbl-base td:last-child{ padding-left:14px; padding-right:14px; }
.ecb-tbl-base td:last-child .ecb-tag{ margin-left:0; }

/* one measure for prose; tables and cards stay full width */
.ecb-sec > p{ max-width:82ch; }
.ecb-note{ max-width:92ch; }

/* mobile: keep tables legible by scrolling rather than crushing columns */
@media (max-width:720px){
  .ecb-tbl{ min-width:560px; }
  .ecb-tbl-kv td:first-child{ width:140px; }
  .ecb-tbl-base td:last-child{ width:84px; }
  .ecb-tbl-scroll{ -webkit-overflow-scrolling:touch; box-shadow:inset -14px 0 12px -12px rgba(15,39,71,.18); }
  .ecb-tbl-scroll::-webkit-scrollbar{ height:6px; }
  .ecb-tbl-scroll::-webkit-scrollbar-thumb{ background:#c9d6e6; border-radius:3px; }
}

/* ---------- IM-18 additions ---------- */
.ecb-tag.proj{ background:#e8f7f0; color:#0a6b46; }
.ecb-tag.mold{ background:#e6f0ff; color:#0046b0; }
.ecb-tag.draw{ background:#fff3d6; color:#8a5a00; }
.ecb-spec-row .k .ecb-tag{ margin-left:0; margin-right:8px; }
.ecb-spec-note{ font-size:13.5px; color:var(--muted); line-height:1.6; margin:12px 0 0; }

/* dimensional definition figure */
.ecb-dim{ display:grid; grid-template-columns:1.15fr .85fr; gap:28px; align-items:start; margin:0 0 8px; }
.ecb-dim svg{ width:100%; height:auto; display:block; }
.ecb-dim .ecb-svgbox{ border:1px solid var(--line); border-radius:var(--radius); background:linear-gradient(180deg,#fbfdff,#f2f7fd); padding:14px; }
.ecb-keylist{ list-style:none; margin:0; padding:0; }
.ecb-keylist li{ display:grid; grid-template-columns:34px 1fr; gap:10px; padding:9px 0; border-top:1px solid var(--line); font-size:14.5px; }
.ecb-keylist li:first-child{ border-top:0; }
.ecb-keylist .kk{ font-weight:800; color:var(--blue); font-variant-numeric:tabular-nums; }
.ecb-keylist .kd{ color:var(--ink); }
.ecb-keylist .kd b{ color:var(--navy); }

/* honest-scope callout */
.ecb-scope{ border-left:4px solid #d97706; background:#fffaf0; border-radius:10px; padding:16px 18px; margin:0 0 18px; }
.ecb-scope p{ font-size:15.5px; margin:0; }
.ecb-scope strong{ color:#8a4b00; }

@media (max-width:820px){
  .ecb-dim{ grid-template-columns:1fr; gap:18px; }
}

/* ---------- IM-18 layout glue ---------- */
.ecb-crumbs .cur{ color:var(--muted); }
.ecb-rel.four{ grid-template-columns:repeat(2,1fr); }
.ecb-rel .ecb-rel-link .p{ display:block; }
.ecb-micro{ font-size:14px; color:var(--muted); margin:14px 0 0; }
@media (max-width:640px){
  .ecb-rel.four{ grid-template-columns:1fr; }
}
.ecb-dimcap{ font-size:13.5px; color:var(--muted); line-height:1.55; margin:0 0 14px; }
