:root{
  --ink:#16202e; --muted:#5b6878; --line:#dce3eb; --paper:#ffffff;
  --blue:#114EB1; --blue-dark:#0d3f8f; --blue-soft:#eaf3fb;
  --amber:#b87415; --amber-soft:#fdf4e6; --green:#24713f; --green-soft:#eaf6ee;
  --radius:10px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#f6f8fa;color:var(--ink);font-family:Arial,Helvetica,sans-serif;line-height:1.65;font-size:15px}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:1120px;margin:0 auto;padding:0 20px}

/* header aligned with geefook.com main site */
.site-header{background:#fff;color:#16202e;border-top:4px solid #114EB1;border-bottom:1px solid #114EB1}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;min-height:72px;gap:18px;flex-wrap:wrap}
.brand{font-size:0;line-height:0}
.brand::before{content:"";display:block;width:190px;height:48px;background:url("https://www.geefook.com/upload/image/static/20260320/%E7%94%B5%E5%AD%90%E5%85%83%E5%99%A8%E4%BB%B6%E8%A1%8C%E4%B8%9ALOGO%E8%AE%BE%E8%AE%A1%20-%20%E5%89%AF%E6%9C%AC.png") no-repeat left center/contain}
.brand span{display:none}
.nav{display:flex;gap:20px;flex-wrap:wrap;align-items:center}
.nav a{color:#222;font-size:15px;font-weight:bold}
.nav a:hover{color:#114EB1;text-decoration:none}
.nav a.active{color:#114EB1;border-bottom:3px solid #114EB1;padding-bottom:2px}

.crumb{font-size:13px;color:var(--muted);padding:18px 0 6px}
.crumb a{color:var(--muted)}
h1{font-size:31px;line-height:1.3;margin:8px 0 10px;letter-spacing:-.4px}
.lead{font-size:16px;color:var(--muted);max-width:820px;margin:0 0 24px}
h2{font-size:21px;margin:34px 0 12px;letter-spacing:-.2px}
h3{font-size:16px;margin:22px 0 8px}
p{margin:10px 0}
.main-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:26px;align-items:start}
@media(max-width:860px){.main-grid{grid-template-columns:1fr}}

.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:22px 24px;margin-bottom:18px}
.calc-card{border-top:3px solid var(--blue)}
.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px}
.field label{display:block;font-size:13px;font-weight:600;margin-bottom:6px;color:#33445a}
.field input,.field select{width:100%;padding:10px 11px;border:1px solid #c8d3df;border-radius:7px;background:#fff;color:var(--ink);font-size:15px;font-family:inherit}
.field input:focus,.field select:focus{outline:2px solid #9cc9f0;border-color:var(--blue)}
.field small{display:block;color:var(--muted);font-size:12px;margin-top:5px}
.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
button{cursor:pointer;font-family:inherit;font-size:14px;padding:10px 18px;border-radius:7px;border:1px solid var(--line);background:#fff;color:var(--ink)}
button.primary{background:var(--blue);border-color:var(--blue);color:#fff;font-weight:600}
button.primary:hover{background:var(--blue-dark)}
.radio-row{display:flex;gap:18px;flex-wrap:wrap;font-size:14px}
.radio-row label{display:flex;align-items:center;gap:6px;cursor:pointer}

.results{background:var(--blue-soft);border:1px solid #cfe2f4;border-radius:8px;padding:16px 18px;margin-top:18px;display:none}
.results.show{display:block}
.results h3{margin:0 0 10px;font-size:15px;color:var(--blue-dark)}
.result-line{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px solid #d6e6f5;font-size:14px}
.result-line:last-child{border-bottom:none}
.result-line strong{font-variant-numeric:tabular-nums;font-size:15px}
.note{font-size:12px;color:var(--muted);margin-top:10px}
.warnbox{background:var(--amber-soft);border-left:3px solid var(--amber);padding:10px 14px;font-size:13px;border-radius:0 6px 6px 0;margin-top:12px}
.okbox{background:var(--green-soft);border-left:3px solid var(--green);padding:10px 14px;font-size:13px;border-radius:0 6px 6px 0;margin-top:12px}

.sidebar .card{padding:18px 20px}
.sidebar h3{margin-top:0;font-size:15px}
.sidebar ul{list-style:none;padding:0;margin:0}
.sidebar li{padding:7px 0;border-bottom:1px solid var(--line);font-size:14px}
.sidebar li:last-child{border-bottom:none}
.cta-box{background:#114EB1;color:#fff;border-radius:var(--radius);padding:20px}
.cta-box h3{color:#fff;margin-top:0}
.cta-box p{color:#cfe0f0;font-size:13px}
.cta-box a{display:inline-block;background:#fff;color:#114EB1;padding:9px 16px;border-radius:6px;font-weight:600;font-size:14px;margin-top:8px}

table{width:100%;border-collapse:collapse;font-size:14px;margin:12px 0}
th,td{border:1px solid var(--line);padding:8px 10px;text-align:left}
th{background:#f1f5f9;font-weight:600}
code{background:#eef2f6;padding:1px 5px;border-radius:4px;font-size:13px}
.formula{background:#f4f7fa;border:1px solid var(--line);border-radius:6px;padding:12px 16px;font-family:"Courier New",monospace;font-size:14px;overflow-x:auto}
.faq details{border-bottom:1px solid var(--line);padding:10px 0}
.faq summary{cursor:pointer;font-weight:600;font-size:14px}
.faq p{font-size:14px;color:#3c4a5b}

.tool-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:14px;margin-top:18px}
.tool-tile{background:#fff;border:1px solid var(--line);border-radius:9px;padding:16px 18px;display:block}
.tool-tile:hover{border-color:var(--blue);text-decoration:none}
.tool-tile b{display:block;color:var(--ink);font-size:15px;margin-bottom:4px}
.tool-tile span{font-size:13px;color:var(--muted)}

.site-footer{background:#333;color:#cfcfcf;margin-top:50px;padding:26px 0;font-size:13px}
.site-footer a{color:#cfe0f0}

@media print{.site-header,.site-footer,.sidebar,.actions{display:none}.main-grid{display:block}}

/* ---------- Geefook toolbox UI ---------- */
:root{--ico:#114EB1;--ico-soft:#eaf3fb;--line-soft:#e5ecf3}
.ico{display:inline-block;width:24px;height:24px;flex:0 0 auto;background-repeat:no-repeat;background-position:center;background-size:contain;vertical-align:middle}
.ico-lg{width:30px;height:30px}
.ico-sm{width:18px;height:18px}

/* tool icons */
.ico-resistor{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12h3m14 0h3'/><rect x='5' y='8' width='14' height='8' rx='2'/><path d='M8 8v8m3-8v8m3-8v8'/></svg>")}
.ico-chip{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='7' y='7' width='10' height='10' rx='2'/><path d='M10 4v3m4-3v3m-4 10v3m4-3v3M4 10h3m-3 4h3m10-4h3m-3 4h3'/></svg>")}
.ico-battery{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='7' width='16' height='10' rx='2'/><path d='M21 10v4M7 10v4m4-4v4'/></svg>")}
.ico-signal{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12h3l2-5 4 10 3-7 2 2h4'/></svg>")}
.ico-led{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12h5m8 0h5'/><path d='M8 7l7 5-7 5z'/><path d='M15 9v6m2-9l3-3m0 0h-3m3 0v3'/></svg>")}
.ico-divider{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='9' y='3' width='6' height='5' rx='1'/><rect x='9' y='16' width='6' height='5' rx='1'/><path d='M12 8v8M4 12h5m6 0h5'/><circle cx='19' cy='12' r='1.4'/></svg>")}
.ico-pcb{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='4' width='16' height='16' rx='2'/><path d='M8 8h5v5h3'/><circle cx='8' cy='8' r='1.2'/><circle cx='16' cy='13' r='1.2'/></svg>")}
.ico-ohm{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M4 7c1 6 3.5 10 8 10s7-4 8-10M8 7l2.2 5M16 7l-2.2 5'/></svg>")}
.ico-toolbox{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='8' width='18' height='12' rx='2'/><path d='M9 8V6a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2M3 13h18'/></svg>")}
.ico-input{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M4 7h16M4 12h16M4 17h16'/><circle cx='9' cy='7' r='2' fill='%23fff'/><circle cx='15' cy='12' r='2' fill='%23fff'/><circle cx='8' cy='17' r='2' fill='%23fff'/></svg>")}
.ico-calc{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='3' width='14' height='18' rx='2'/><path d='M8 7h8M8 11h2m4 0h2m-8 4h2m4 0h2m-6 4h4'/></svg>")}
.ico-output{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M5 19V9m5 10V5m5 14v-7m5 7V8'/></svg>")}
.ico-formula{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M18 5H7l5 7-5 7h11'/></svg>")}
.ico-shield{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3l7 3v6c0 4.5-3 7.5-7 9-4-1.5-7-4.5-7-9V6z'/><path d='M9 12l2 2 4-4'/></svg>")}
.ico-quote{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M5 5h14v11H9l-4 4z'/><path d='M8 9h8M8 12h5'/></svg>")}
.ico-check{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2324713f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M8 12l3 3 5-6'/></svg>")}
.ico-alert{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b87415' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 4l9 16H3z'/><path d='M12 10v4m0 3h.01'/></svg>")}

/* title icon */
h1{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
h1::before{content:"";width:40px;height:40px;flex:0 0 auto;border-radius:10px;background-color:var(--ico-soft);background-repeat:no-repeat;background-position:center;background-size:24px;box-shadow:inset 0 0 0 1px #d4e6f5}
h1::after{content:"FREE TOOL";font-size:10px;font-weight:700;letter-spacing:.12em;color:var(--blue);background:var(--blue-soft);border:1px solid #d4e6f5;border-radius:99px;padding:4px 9px;line-height:1.2}
body[data-tool="index"] h1::after{content:"08 TOOLS"}
body[data-tool="resistor-color-code"] h1::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12h3m14 0h3'/><rect x='5' y='8' width='14' height='8' rx='2'/><path d='M8 8v8m3-8v8m3-8v8'/></svg>")}
body[data-tool="smd-resistor-code"] h1::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='7' y='7' width='10' height='10' rx='2'/><path d='M10 4v3m4-3v3m-4 10v3m4-3v3M4 10h3m-3 4h3m10-4h3m-3 4h3'/></svg>")}
body[data-tool="battery-life"] h1::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='7' width='16' height='10' rx='2'/><path d='M21 10v4M7 10v4m4-4v4'/></svg>")}
body[data-tool="rc-time-constant"] h1::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12h3l2-5 4 10 3-7 2 2h4'/></svg>")}
body[data-tool="led-resistor"] h1::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12h5m8 0h5'/><path d='M8 7l7 5-7 5z'/><path d='M15 9v6m2-9l3-3m0 0h-3m3 0v3'/></svg>")}
body[data-tool="voltage-divider"] h1::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='9' y='3' width='6' height='5' rx='1'/><rect x='9' y='16' width='6' height='5' rx='1'/><path d='M12 8v8M4 12h5m6 0h5'/><circle cx='19' cy='12' r='1.4'/></svg>")}
body[data-tool="pcb-trace-width"] h1::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='4' width='16' height='16' rx='2'/><path d='M8 8h5v5h3'/><circle cx='8' cy='8' r='1.2'/><circle cx='16' cy='13' r='1.2'/></svg>")}
body[data-tool="ohms-law"] h1::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M4 7c1 6 3.5 10 8 10s7-4 8-10M8 7l2.2 5M16 7l-2.2 5'/></svg>")}
body[data-tool="index"] h1::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='8' width='18' height='12' rx='2'/><path d='M9 8V6a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2M3 13h18'/></svg>")}

/* 3-step flow strip */
.tool-flow{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#fff;border:1px solid var(--line-soft);border-radius:10px;padding:12px 16px;margin:0 0 22px;box-shadow:0 2px 8px rgba(13,43,77,.04)}
.tool-flow span{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:#33445a}
.tool-flow span::before{content:"";width:22px;height:22px;flex:0 0 auto;border-radius:6px;background-color:var(--ico-soft);background-repeat:no-repeat;background-position:center;background-size:16px}
.tool-flow span:nth-of-type(1)::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 7h16M4 12h16M4 17h16'/><circle cx='9' cy='7' r='2' fill='%23fff'/><circle cx='15' cy='12' r='2' fill='%23fff'/><circle cx='8' cy='17' r='2' fill='%23fff'/></svg>")}
.tool-flow span:nth-of-type(2)::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='3' width='14' height='18' rx='2'/><path d='M8 7h8M8 11h2m4 0h2m-8 4h2m4 0h2m-6 4h4'/></svg>")}
.tool-flow span:nth-of-type(3)::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 19V9m5 10V5m5 14v-7m5 7V8'/></svg>")}
.tool-flow b{color:#9aabbb;font-size:16px;font-weight:400}

/* calculator card rail */
.calc-card{position:relative;padding-top:58px}
.calc-card::before{content:"INPUT";position:absolute;left:24px;top:18px;font-size:10px;font-weight:700;letter-spacing:.14em;color:var(--blue);background:var(--blue-soft);border:1px solid #d4e6f5;border-radius:4px;padding:4px 8px;line-height:1.2}
.calc-card::after{content:"LIVE CALCULATOR";position:absolute;right:24px;top:22px;font-size:10px;font-weight:700;letter-spacing:.10em;color:var(--green)}
.calc-card::after{background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'><circle cx='4' cy='4' r='3' fill='%2324713f'/></svg>") no-repeat left center;padding-left:13px}
.actions button{display:inline-flex;align-items:center;gap:8px}
.actions button::before{content:"";width:17px;height:17px;flex:0 0 auto;background-repeat:no-repeat;background-position:center;background-size:contain;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='3' width='14' height='18' rx='2'/><path d='M8 7h8M8 11h2m4 0h2m-8 4h2m4 0h2m-6 4h4'/></svg>")}
.actions button.primary::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='3' width='14' height='18' rx='2'/><path d='M8 7h8M8 11h2m4 0h2m-8 4h2m4 0h2m-6 4h4'/></svg>")}

/* output panel */
.results{position:relative;padding-top:46px}
.results::before{content:"OUTPUT / RESULT";position:absolute;left:16px;top:14px;font-size:10px;font-weight:700;letter-spacing:.14em;color:var(--blue-dark);background:#fff;border:1px solid #cfe2f4;border-radius:4px;padding:4px 8px;line-height:1.2}
.results::after{content:"";position:absolute;right:16px;top:14px;width:18px;height:18px;background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2324713f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M8 12l3 3 5-6'/></svg>") no-repeat center/contain}

/* small explainers */
.note,.warnbox,.okbox{padding-left:38px;background-repeat:no-repeat;background-position:12px center;background-size:18px}
.warnbox{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b87415' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 4l9 16H3z'/><path d='M12 10v4m0 3h.01'/></svg>")}
.okbox{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2324713f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M8 12l3 3 5-6'/></svg>")}
.sidebar li{padding-left:16px;background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M6 3l5 5-5 5'/></svg>") no-repeat left center/12px}
.formula{padding-left:44px;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M18 5H7l5 7-5 7h11'/></svg>");background-repeat:no-repeat;background-position:14px center;background-size:20px}

/* index hero */
.index-hero{display:flex;align-items:center;gap:18px;background:linear-gradient(120deg,#eaf3fb,#f7fbff);border:1px solid #d4e6f5;border-radius:12px;padding:20px 22px;margin:0 0 22px}
.index-hero-ico{width:56px;height:56px;flex:0 0 auto;border-radius:14px;background:#fff;border:1px solid #d4e6f5;display:flex;align-items:center;justify-content:center;box-shadow:0 3px 10px rgba(11,92,171,.08)}
.index-hero-copy{flex:1 1 auto}
.eyebrow{display:block;font-size:10px;font-weight:700;letter-spacing:.14em;color:var(--blue);margin-bottom:4px}
.index-hero h2{margin:0 0 4px;font-size:20px}
.index-hero p{margin:0;color:var(--muted);font-size:14px}
.index-hero-count{text-align:center;padding-left:18px;border-left:1px solid #d4e6f5}
.index-hero-count b{display:block;font-size:30px;line-height:1;color:var(--blue)}
.index-hero-count span{font-size:12px;color:var(--muted)}
@media(max-width:680px){.index-hero{align-items:flex-start}.index-hero-count{display:none}}

/* index tool tiles */
.tool-tile{position:relative;padding:16px 44px 16px 62px;min-height:88px}
.tool-tile::before{content:"";position:absolute;left:18px;top:50%;transform:translateY(-50%);width:32px;height:32px;border-radius:8px;background-color:var(--ico-soft);background-repeat:no-repeat;background-position:center;background-size:22px}
.tool-tile::after{content:"→";position:absolute;right:18px;top:50%;transform:translateY(-50%);color:#9aabbb;font-size:17px}
.tool-tile:hover::after{color:var(--blue)}
.tool-tile[href="resistor-color-code.html"]::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12h3m14 0h3'/><rect x='5' y='8' width='14' height='8' rx='2'/><path d='M8 8v8m3-8v8m3-8v8'/></svg>")}
.tool-tile[href="smd-resistor-code.html"]::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='7' y='7' width='10' height='10' rx='2'/><path d='M10 4v3m4-3v3m-4 10v3m4-3v3M4 10h3m-3 4h3m10-4h3m-3 4h3'/></svg>")}
.tool-tile[href="rc-time-constant.html"]::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12h3l2-5 4 10 3-7 2 2h4'/></svg>")}
.tool-tile[href="voltage-divider.html"]::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='9' y='3' width='6' height='5' rx='1'/><rect x='9' y='16' width='6' height='5' rx='1'/><path d='M12 8v8M4 12h5m6 0h5'/><circle cx='19' cy='12' r='1.4'/></svg>")}
.tool-tile[href="battery-life.html"]::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='7' width='16' height='10' rx='2'/><path d='M21 10v4M7 10v4m4-4v4'/></svg>")}
.tool-tile[href="led-resistor.html"]::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12h5m8 0h5'/><path d='M8 7l7 5-7 5z'/><path d='M15 9v6m2-9l3-3m0 0h-3m3 0v3'/></svg>")}
.tool-tile[href="ohms-law.html"]::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M4 7c1 6 3.5 10 8 10s7-4 8-10M8 7l2.2 5M16 7l-2.2 5'/></svg>")}
.tool-tile[href="pcb-trace-width.html"]::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='4' width='16' height='16' rx='2'/><path d='M8 8h5v5h3'/><circle cx='8' cy='8' r='1.2'/><circle cx='16' cy='13' r='1.2'/></svg>")}
body[data-tool="index"] .card > h2::before{content:"";display:inline-block;width:18px;height:18px;margin-right:8px;vertical-align:-4px;background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3 7h7l2 2h9v10H3z'/></svg>") no-repeat center/contain}

/* feature badges */
.feature-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin:16px 0}
.feature{display:grid;grid-template-columns:30px 1fr;gap:4px 10px;align-items:start;background:#f8fafc;border:1px solid var(--line-soft);border-radius:8px;padding:13px 14px}
.feature .ico{grid-row:1 / span 2;width:26px;height:26px;margin-top:2px}
.feature b{font-size:13px}
.feature span{font-size:12px;color:var(--muted);line-height:1.5}

/* ---------- tools 9-21 icons ---------- */
body[data-tool="index"] h1::after{content:"21 TOOLS"}
body[data-tool="capacitor-series-parallel"] h1::before,.tool-tile[href="capacitor-series-parallel.html"]::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12h7m6 0h7M9 6v12m6-12v12'/></svg>")}
body[data-tool="resistor-series-parallel"] h1::before,.tool-tile[href="resistor-series-parallel.html"]::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='8' y='3' width='8' height='5' rx='1'/><rect x='8' y='16' width='8' height='5' rx='1'/><path d='M12 8v8M4 5.5h4m-4 13h4m8-13h4m-4 13h4'/></svg>")}
body[data-tool="heatsink-temp-rise"] h1::before,.tool-tile[href="heatsink-temp-rise.html"]::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='7' y='4' width='10' height='16' rx='1'/><path d='M4 7h3m10 0h3M4 11h3m10 0h3M4 15h3m10 0h3M4 19h3m10 0h3'/></svg>")}
body[data-tool="thermal-resistance"] h1::before,.tool-tile[href="thermal-resistance.html"]::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M10 14V5a2 2 0 0 1 4 0v9a4 4 0 1 1-4 0z'/><path d='M12 9v6m4-6h5m-2-2l2 2-2 2'/></svg>")}
body[data-tool="buck-duty-cycle"] h1::before,.tool-tile[href="buck-duty-cycle.html"]::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3 18h4V6h5v12h5V6h4'/></svg>")}
body[data-tool="fuse-selection"] h1::before,.tool-tile[href="fuse-selection.html"]::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='9' width='18' height='6' rx='3'/><path d='M7 12h10'/></svg>")}
body[data-tool="555-timer"] h1::before,.tool-tile[href="555-timer.html"]::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='6' y='6' width='12' height='12' rx='2'/><path d='M9 3v3m6-3v3M9 18v3m6-3v3M3 9h3m-3 6h3m12-6h3m-3 6h3'/><circle cx='12' cy='12' r='2'/></svg>")}
body[data-tool="dbm-to-watt"] h1::before,.tool-tile[href="dbm-to-watt.html"]::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12c3-7 6-7 9 0s6 7 9 0'/><path d='M6 17h12'/></svg>")}
body[data-tool="frequency-wavelength"] h1::before,.tool-tile[href="frequency-wavelength.html"]::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12c2-6 4-6 6 0s4 6 6 0 4-6 6 0'/></svg>")}
body[data-tool="antenna-length"] h1::before,.tool-tile[href="antenna-length.html"]::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21v-9M8 8a4 4 0 0 1 8 0M5 5a7 7 0 0 1 14 0M9 21h6'/></svg>")}
body[data-tool="via-current"] h1::before,.tool-tile[href="via-current.html"]::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='8'/><circle cx='12' cy='12' r='3'/><path d='M12 2v4m0 12v4M2 12h4m12 0h4'/></svg>")}
body[data-tool="smt-pad-size"] h1::before,.tool-tile[href="smt-pad-size.html"]::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='8' width='7' height='8' rx='1'/><rect x='14' y='8' width='7' height='8' rx='1'/><path d='M10 12h4'/></svg>")}
body[data-tool="bom-cost-estimator"] h1::before,.tool-tile[href="bom-cost-estimator.html"]::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23114EB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M6 3h9l4 4v14H6z'/><path d='M15 3v4h4M9 12h7m-7 4h7'/></svg>")}


/* ---------- reference design cross-promo ---------- */
.rd-promo{display:grid;grid-template-columns:52px 1fr auto;gap:16px;align-items:center;background:linear-gradient(120deg,#114EB1,#0d3f8f);color:#fff;border-radius:12px;padding:20px 22px;margin-bottom:18px;border:1px solid #0d3f8f}
.rd-promo-icon{width:52px;height:52px;flex:0 0 auto;border-radius:13px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center}
.rd-promo-icon .ico{filter:brightness(0) invert(1)}
.rd-promo .eyebrow{color:#cfe4ff}
.rd-promo h2{margin:0 0 4px;font-size:19px;color:#fff}
.rd-promo p{margin:0;color:#cfe0f0;font-size:13px;max-width:660px}
.rd-promo-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.rd-promo-tags span{font-size:11px;padding:3px 9px;border:1px solid rgba(255,255,255,.26);border-radius:20px;color:#e6f0fa}
.rd-promo-btn{display:inline-block;background:#fff;color:#114EB1;font-weight:700;font-size:14px;padding:11px 17px;border-radius:7px;white-space:nowrap;text-decoration:none}
.rd-promo-btn:hover{background:#e8f0fb;text-decoration:none}
@media(max-width:760px){.rd-promo{grid-template-columns:1fr}.rd-promo-btn{justify-self:start}}
