/* Technical & Standard page styles, mapped to K&B tokens */
.stdz{--font-head:var(--f-display);--font-body:var(--f-body);--teal-50:#EAF2FA;--teal-300:#4E9BD8;--shadow-sm:0 2px 8px rgba(18,28,31,.06);--grad:linear-gradient(135deg,#4E9BD8 0%,#0068B8 45%,#00508F 100%)}
/* Kantilal & Brothers: fastener standards & calculators (Technical & Standards page) */
.stdz { --surface: #fff; --f-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; --r: 14px; }
.stdz .toc { display: flex; gap: 8px; margin-bottom: 40px; position: sticky; top: 92px; z-index: 5; padding: 10px 12px; margin-inline: -12px; border-radius: 22px;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; box-shadow: 0 10px 24px -18px rgba(18, 28, 31, .35); }
/* scroller wrapper added by stdacc.js */
.stdz .toc-wrap { position: sticky; top: 92px; z-index: 5; margin: 0 -12px 40px; border-radius: 22px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); box-shadow: 0 10px 24px -18px rgba(18, 28, 31, .35); }
.stdz .toc-wrap .toc { position: static; margin: 0; background: none; box-shadow: none; backdrop-filter: none; padding: 10px 52px; scroll-padding-inline: 52px; cursor: grab; }
.stdz .toc-wrap .toc.dragging { cursor: grabbing; }
.stdz .toc-wrap .toc.dragging a { pointer-events: none; }
.stdz .toc-wrap::before, .stdz .toc-wrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: 72px; pointer-events: none; z-index: 1; transition: opacity .2s; }
.stdz .toc-wrap::before { left: 0; border-radius: 22px 0 0 22px; background: linear-gradient(90deg, #fff 45%, rgba(255, 255, 255, 0)); }
.stdz .toc-wrap::after { right: 0; border-radius: 0 22px 22px 0; background: linear-gradient(270deg, #fff 45%, rgba(255, 255, 255, 0)); }
.stdz .toc-arr { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--teal-700, #0e6a7a);
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 12px -6px rgba(18, 28, 31, .4); transition: opacity .2s, border-color .2s; }
.stdz .toc-arr:hover { border-color: var(--teal); }
.stdz .toc-arr svg { width: 18px; height: 18px; }
.stdz .toc-arr.prev { left: 8px; } .stdz .toc-arr.next { right: 8px; }
.stdz .toc-wrap.at-start .toc-arr.prev, .stdz .toc-wrap.at-start::before, .stdz .toc-wrap.at-end .toc-arr.next, .stdz .toc-wrap.at-end::after { opacity: 0; pointer-events: none; }
.stdz .toc-wrap.at-start .toc { padding-left: 12px; } .stdz .toc-wrap.at-end .toc { padding-right: 12px; }
.stdz .toc-wrap.no-ovf .toc-arr, .stdz .toc-wrap.no-ovf::before, .stdz .toc-wrap.no-ovf::after { display: none; }
.stdz .toc a.on { border-color: var(--teal); background: var(--teal, #12808f); color: #fff; }
.stdz .toc::-webkit-scrollbar { display: none; }
.stdz .toc a { flex: none; font: 600 .86rem/1 var(--font-head); padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; background: #fff; transition: border-color .25s, color .25s; }
.stdz .toc a:hover { border-color: var(--teal); color: var(--teal-700); }
.stdz .std-block { scroll-margin-top: 170px; }
.stdz .std-block + .std-block { margin-top: 56px; }
.stdz .std-block h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; margin-bottom: 8px; }
.stdz .std-block > p { color: var(--muted); margin-bottom: 18px; max-width: 72ch; }
.stdz .label { font: 600 .72rem/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--teal-700); display: inline-flex; align-items: center; gap: 10px; }
.stdz .label::before { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
.stdz .std-block.tool { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.stdz .std-block.tool h3 { margin-top: 10px; }

/* tables */
.stdz .tbl-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.stdz table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .93rem; }
.stdz th, .stdz td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.stdz th { font: 600 .72rem/1.3 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--teal-50); }
.stdz td { font-variant-numeric: tabular-nums; }
.stdz td b { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.stdz tr:last-child td { border-bottom: 0; }
.stdz table.sizes { min-width: 420px; }
.stdz table.sizes td:first-child { font-family: var(--f-mono); font-size: .84rem; white-space: nowrap; }
.stdz table.sizes tbody tr:nth-child(even) { background: #f7fafb; }
.stdz table.galv td { text-align: center; }
.stdz table.galv td:first-child { text-align: left; }
.stdz .g { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 800; }
.stdz .g.ok { background: #ddf3e3; color: #1f7a3a; } .stdz .g.warn { background: #fdf0d3; color: #9a6b00; } .stdz .g.bad { background: #fbe0de; color: #b3261e; }
.stdz .legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 12px; font-size: .88rem; color: var(--muted); }
.stdz .fine { font-size: .85rem; color: var(--muted); margin-top: 12px; }
.stdz .note { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--teal); padding: 12px 16px; background: var(--teal-50); border-radius: 0 10px 10px 0; margin-top: 40px; }
.stdz .note a { color: var(--teal-700); font-weight: 600; }
.stdz .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stdz .two > * { min-width: 0; }

/* bolt finder + calculators */
.stdz .size-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.stdz .size-pills button { font: 700 .9rem var(--f-mono); padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--slate); cursor: pointer; min-width: 58px; transition: all .2s; }
.stdz .size-pills button:hover { border-color: var(--teal); }
.stdz .size-pills button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 0 -2px var(--teal-700); }
.stdz .finder, .stdz .calc-out { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stdz .fcell { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; animation: stdpop .35s ease both; }
.stdz .fcell span { font: 600 .68rem/1.3 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stdz .fcell b { font: 700 1.45rem/1.15 var(--font-head); color: var(--slate-900); }
.stdz .fcell small { color: var(--muted); font-size: .8rem; }
.stdz .fcell.hl { background: var(--slate-900); border-color: var(--slate-900); }
.stdz .fcell.hl span, .stdz .fcell.hl small { color: #a9c0c5; } .stdz .fcell.hl b { color: #fff; }
@keyframes stdpop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.stdz .calc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.stdz .calc label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--slate); }
.stdz .calc select, .stdz .calc input { font: inherit; font-weight: 500; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.stdz .calc select:focus, .stdz .calc input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-50); }
.stdz .wt-form .wt-type { grid-column: span 2; }
.stdz .wt-form [hidden], .stdz [data-w][hidden] { display: none; }
.stdz #weight .calc-out { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stdz .wt-dims { font-family: var(--f-mono); font-size: .8rem; color: var(--teal-700); margin: 12px 0 0; }
.stdz .wt-acc { margin-top: 14px; background: var(--teal-50); border-left: 4px solid var(--teal); border-radius: 10px; padding: 12px 14px; font-size: .9rem; color: var(--ink); }

/* head markings */
.stdz .marks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stdz .mark { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; transition: transform .25s; }
.stdz .mark:hover { transform: translateY(-4px) rotate(-1deg); }
.stdz .mark svg { width: 96px; height: 96px; }
.stdz .mark figcaption { display: flex; flex-direction: column; }
.stdz .mark figcaption span { font-size: .82rem; color: var(--muted); }

@media (max-width: 1080px) { .stdz .toc, .stdz .toc-wrap { top: 88px; } }
@media (max-width: 860px) {
  .stdz .finder, .stdz .calc-out, .stdz #weight .calc-out { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stdz .two { grid-template-columns: 1fr; }
  .stdz .wt-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .stdz .marks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stdz .calc, .stdz .wt-form { grid-template-columns: 1fr; }
  .stdz .wt-form .wt-type { grid-column: auto; }
  .stdz .std-block.tool { padding: 20px; }
  .stdz .toc { position: static; margin-inline: 0; box-shadow: none; padding: 0 0 6px; background: none; }
  .stdz .toc-wrap { position: relative; top: auto; margin-inline: 0; }
  .stdz .toc-wrap .toc { padding: 8px 46px; }
  .stdz .toc-arr { width: 32px; height: 32px; } .stdz .toc-arr.prev { left: 6px; } .stdz .toc-arr.next { right: 6px; }
}

/* ---------- rivet nut & blind rivet selectors ---------- */
.stdz .fx { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; margin: 18px 0; align-items: start; }
.stdz .fx-in { display: grid; gap: 14px; }
.stdz .fx-row { display: grid; gap: 8px; }
.stdz .fx-row > span { font: 600 .72rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.stdz .fx-row > span b { color: var(--teal-700); letter-spacing: 0; font-size: .9rem; text-transform: none; }
.stdz .pills { display: flex; flex-wrap: wrap; gap: 6px; }
.stdz .pills button { font: 600 .84rem/1 var(--font-head); padding: 9px 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--slate); cursor: pointer; transition: all .2s; }
.stdz .pills.mono button { font-family: var(--f-mono); min-width: 52px; }
.stdz .pills button:hover:not([disabled]) { border-color: var(--teal); color: var(--teal-700); }
.stdz .pills button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; box-shadow: 0 4px 0 -1px var(--teal-700); }
.stdz .pills button[disabled] { opacity: .35; cursor: not-allowed; }
.stdz input[type="range"] { width: 100%; accent-color: var(--teal); height: 28px; }
.stdz .fx-note { margin: 0; font-size: .88rem; color: var(--slate); background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 0 10px 10px 0; padding: 10px 14px; }
.stdz .fx-fig { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; position: sticky; top: 170px; }
.stdz .fx-fig svg { width: 100%; height: auto; display: block; }
.stdz .fx-fig figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 4px 2px; }
.stdz .fx-fig figcaption a { font: 600 .86rem/1.3 var(--font-head); color: var(--teal-700); }
.stdz .fx-btn { padding: 11px 18px; font-size: .86rem; }
.stdz svg .sheet { fill: #c9d6dc; stroke: #3f5257; stroke-width: 1.2; }
.stdz svg .part { fill: #e7edf0; stroke: #2c3b3f; stroke-width: 1.6; stroke-linejoin: round; }
.stdz svg .boreh { fill: #fff; stroke: #2c3b3f; stroke-width: 1; }
.stdz svg .thr line { stroke: #8fa6b0; stroke-width: 1.2; }
.stdz svg .kn { stroke: #8fa6b0; stroke-width: 1.4; }
.stdz svg .knurl { stroke: none; opacity: .9; }
.stdz svg .rn-screw rect { fill: rgba(37, 150, 180, .22); stroke: var(--teal-700); stroke-width: 1.2; }
.stdz svg .mandrel rect, .stdz svg .mandrel ellipse { fill: #8fa6b0; stroke: #2c3b3f; stroke-width: 1.2; }
.stdz svg .stem-off { fill: #8fa6b0; stroke: #2c3b3f; stroke-width: 1.2; opacity: .55; }
.stdz svg .nose { fill: #2c3b3f; transition: opacity .3s; }
.stdz svg .lab { font: 600 11px var(--font-head); fill: #64777c; }
.stdz .fx-more { margin-top: 14px; }
.stdz .fx-more summary { cursor: pointer; font: 600 .9rem/1.3 var(--font-head); color: var(--teal-700); padding: 6px 0; }
.stdz .fx-more .tbl-wrap { margin-top: 8px; }
.stdz .fx-more table { min-width: 420px; }
.stdz .fx-more tr.fit td { background: #e9f7ee; font-weight: 600; }
.stdz .fx-h { font-size: 1.05rem; margin: 26px 0 12px; }
.stdz .gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.stdz .gcard { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; cursor: pointer; display: grid; gap: 4px; font: inherit; color: inherit; transition: border-color .25s, transform .25s, box-shadow .25s; }
.stdz .gcard:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.stdz .gcard b { font: 600 .95rem/1.2 var(--font-head); color: var(--ink); }
.stdz .gcard span { font-size: .84rem; color: var(--muted); line-height: 1.4; }
#rn-out, #br-out { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#br-out { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .stdz .fx { grid-template-columns: 1fr; } .stdz .fx-fig { position: static; } }
@media (max-width: 760px) { #rn-out, #br-out { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- selectors v2: catalogue-style configurator ---------- */
.stdz .fxw { padding: 30px; }
.stdz .fx2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; margin-top: 20px; align-items: start; }
.stdz .fx-steps-in { display: grid; gap: 10px; }
#br-tool .fx-steps-in { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
.stdz .fx-step { display: grid; grid-template-columns: 30px 1fr; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.stdz .fx-step .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--slate-900); color: #fff; font: 700 .82rem/1 var(--font-head); }
.stdz .fx-step h4 { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin: 6px 0 10px; display: flex; justify-content: space-between; gap: 8px; }
.stdz .fx-step h4 b { color: var(--teal-700); letter-spacing: 0; text-transform: none; font-size: .95rem; }
.stdz .fx-step .fx-note { margin-top: 10px; }
.stdz .ticks-scale { display: flex; justify-content: space-between; font: 500 .7rem/1 var(--f-mono); color: var(--muted); margin-top: 2px; }
.stdz .calc.load { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 10px; }
#br-calc-out { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#br-calc-out .fcell b { font-size: 1.2rem; }
.stdz .fx-res { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; max-height: 640px; }
.stdz .fx-res-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--teal-50); }
.stdz .fx-res-head h4 { margin: 0; font-size: 1rem; }
.stdz .fx-res-head span { font-size: .82rem; color: var(--teal-700); font-weight: 600; }
.stdz .fx-res-list { overflow: auto; }
.stdz table.res { min-width: 520px; font-size: .86rem; }
.stdz table.res th { position: sticky; top: 0; z-index: 1; }
.stdz table.res td { padding: 10px 14px; }
.stdz table.res tr[data-p] { cursor: pointer; transition: background .15s; }
.stdz table.res tr[data-p]:hover td { background: #f3f8fa; }
.stdz table.res tr.nofit td { color: #9aaaae; }
.stdz table.res tr.sel td { background: var(--teal-50); box-shadow: inset 0 0 0 0 var(--teal); }
.stdz table.res tr.sel td:first-child { box-shadow: inset 4px 0 0 var(--teal); }
.stdz table.res .pn { font-family: var(--f-mono); font-weight: 700; color: var(--ink); white-space: nowrap; }
.stdz .tag { display: inline-block; font: 700 .7rem/1 var(--font-head); padding: 5px 9px; border-radius: 999px; }
.stdz .tag.ok { background: #ddf3e3; color: #1f7a3a; }
.stdz .dcard { grid-column: 1 / -1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.stdz .dcard-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, var(--slate-900), #1d2a2e); color: #b8c8cc; }
.stdz .dcard-h h4 { color: #fff; font-size: 1.45rem; margin: 4px 0 4px; font-family: var(--font-head); }
.stdz .dcard-h p { margin: 0; font-size: .9rem; max-width: 70ch; }
.stdz .eyebrow-s { font: 600 .68rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-300); }
.stdz .fit-badge { flex: none; font: 700 .78rem/1.2 var(--font-head); padding: 9px 13px; border-radius: 999px; max-width: 280px; text-align: center; }
.stdz .fit-badge.ok { background: #ddf3e3; color: #1f7a3a; }
.stdz .fit-badge.warn { background: #fdf0d3; color: #8a5f00; }
.stdz .dcard-b { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
.stdz .fx-view { border-right: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.stdz .fx-view svg { width: 100%; height: auto; background: repeating-linear-gradient(0deg, transparent 0 19px, rgba(37, 150, 180, .06) 19px 20px), repeating-linear-gradient(90deg, transparent 0 19px, rgba(37, 150, 180, .06) 19px 20px); border: 1px solid var(--line); border-radius: 10px; }
.stdz .fx-tabs { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px; align-self: flex-start; }
.stdz .fx-tabs button { border: 0; background: none; padding: 8px 14px; border-radius: 999px; font: 600 .82rem/1 var(--font-head); color: var(--slate); cursor: pointer; }
.stdz .fx-tabs button[aria-selected="true"] { background: var(--slate-900); color: #fff; }
.stdz .fx-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.stdz .fx-steps button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 6px; font: 600 .76rem/1.2 var(--font-head); color: var(--slate); cursor: pointer; display: flex; align-items: center; gap: 6px; justify-content: center; }
.stdz .fx-steps button b { width: 20px; height: 20px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: .72rem; flex: none; }
.stdz .fx-steps button.on { border-color: var(--teal); color: var(--teal-700); }
.stdz .fx-steps button.on b, .stdz .fx-steps button.done b { background: var(--teal); color: #fff; }
.stdz .fx-bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.stdz .fx-bar i { display: block; height: 100%; width: 0; background: var(--grad); }
.stdz .fx-ctl { display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; }
.stdz .fx-play { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; background: var(--teal); color: #fff; padding: 9px 14px; font: 600 .8rem/1 var(--font-head); cursor: pointer; }
.stdz .fx-play svg { width: 14px; height: 14px; }
.stdz .fx-cap { margin: 0; font-size: .86rem; color: var(--slate); min-height: 2.6em; }
.stdz .dcard-spec { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.stdz table.dsheet { min-width: 0; font-size: .9rem; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; border-collapse: separate; border-spacing: 0; }
.stdz table.dsheet th { width: 42%; background: var(--teal-50); text-transform: none; letter-spacing: 0; font: 600 .84rem/1.3 var(--font-head); color: var(--slate); padding: 9px 12px; }
.stdz table.dsheet td { padding: 9px 12px; font-weight: 500; color: var(--ink); }
.stdz table.dsheet td small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.stdz table.dsheet a { color: var(--teal-700); font-weight: 600; }
.stdz .dcard-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stdz .dcard-act .btn { padding: 12px 18px; font-size: .86rem; }
.stdz .dcard-act .btn svg { width: 16px; height: 16px; }
.stdz .qty { display: inline-flex; align-items: center; gap: 8px; font: 600 .82rem/1 var(--font-head); color: var(--slate); }
.stdz .qty input { width: 96px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.stdz .dcard-spec .fine a { color: var(--teal-700); font-weight: 600; }
.stdz .dcard-rules { border-top: 1px solid var(--line); padding: 16px 24px 20px; background: #fbfdfd; }
.stdz .dcard-rules h5 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.stdz .rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.stdz .rules li { position: relative; padding-left: 26px; font-size: .9rem; color: var(--slate); }
.stdz .rules li::before { position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font: 800 .7rem/1 var(--font-body); }
.stdz .rules li.ok::before { content: "✓"; background: #ddf3e3; color: #1f7a3a; }
.stdz .rules li.warn::before { content: "!"; background: #fdf0d3; color: #9a6b00; }
.stdz .rules li.info::before { content: "i"; background: var(--teal-50); color: var(--teal-700); }
/* drawing styles */
.stdz svg .dim line, .stdz svg .dim path { stroke: var(--teal-700); stroke-width: 1; fill: none; }
.stdz svg .dim text { font: 600 10.5px var(--f-mono); fill: var(--teal-700); }
.stdz svg .ext { stroke: #8fa6b0; stroke-width: .8; stroke-dasharray: 3 2; }
.stdz svg .axis { stroke: #c9473c; stroke-width: .8; stroke-dasharray: 8 3 2 3; }
.stdz svg .dlab { font: 700 11px var(--f-mono); fill: #2c3b3f; }
.stdz svg .ttl { font: 700 12px var(--f-mono); fill: var(--ink); }
.stdz svg .sub { font: 500 10px var(--font-head); fill: #64777c; }
.stdz svg .bore-line { fill: none; stroke: #8fa6b0; stroke-width: .8; stroke-dasharray: 3 2; }
.stdz svg .mandrel { fill: #a7b8bf; stroke: #2c3b3f; stroke-width: 1.1; }
.stdz svg .tool .mandrel { fill: #b9c7cd; }
.stdz svg .screw rect { fill: rgba(37, 150, 180, .2); stroke: var(--teal-700); stroke-width: 1.1; }
.stdz svg .screw .plate { fill: rgba(63, 82, 87, .12); stroke: #3f5257; stroke-dasharray: 4 2; }
@media (max-width: 1080px) {
  .stdz .fx2, .stdz .dcard-b { grid-template-columns: 1fr; }
  .stdz .fx-view { border-right: 0; border-bottom: 1px solid var(--line); }
  #br-tool .fx-steps-in { grid-template-columns: 1fr; }
  .stdz .rules { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .stdz .fxw { padding: 18px; }
  .stdz .fx-steps { grid-template-columns: 1fr 1fr; }
  .stdz .dcard-h { flex-direction: column; padding: 16px; }
  .stdz .calc.load, #br-calc-out { grid-template-columns: 1fr; }
  .stdz .dcard-spec { padding: 14px; }
}

/* ---------- fastener dimensions (DIN / ISO / IS) ---------- */
.stdz .dim-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 18px 0; }
.stdz .dim-type { display: flex; align-items: center; gap: 10px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; font: inherit; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
.stdz .dim-type:hover { border-color: var(--teal); transform: translateY(-1px); }
.stdz .dim-type[aria-pressed="true"] { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-50); background: var(--teal-50); }
.stdz .dim-type svg { flex: none; width: 34px; height: 34px; fill: #e7edf0; stroke: #2c3b3f; stroke-width: 1.3; stroke-linejoin: round; }
.stdz .dim-type[aria-pressed="true"] svg { fill: #fff; stroke: var(--teal-700); }
.stdz .dim-type b { display: block; font: 600 .88rem/1.2 var(--font-head); color: var(--ink); }
.stdz .dim-type small { display: block; font-size: .74rem; color: var(--muted); margin-top: 2px; }
.stdz .dim-main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.stdz .dim-fig { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.stdz .dim-fig svg { width: 100%; height: auto; display: block; background: repeating-linear-gradient(0deg, transparent 0 19px, rgba(37, 150, 180, .06) 19px 20px), repeating-linear-gradient(90deg, transparent 0 19px, rgba(37, 150, 180, .06) 19px 20px); border-radius: 8px; }
.stdz .dim-side { display: flex; flex-direction: column; gap: 12px; }
.stdz .dim-std { display: flex; flex-wrap: wrap; gap: 8px; }
.stdz .stdb { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 6px; font: 700 .9rem/1 var(--font-head); color: var(--ink); }
.stdz .stdb i { font-style: normal; background: var(--slate-900); color: #fff; border-radius: 999px; padding: 5px 8px; font-size: .7rem; letter-spacing: .06em; }
.stdz .stdb.none { color: var(--muted); font-weight: 500; font-size: .8rem; }
.stdz .stdb.none i { background: #c9d6dc; color: var(--slate); }
.stdz .dim-key { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stdz .dim-key .fcell b { font-size: 1.2rem; }
.stdz .dim-tbl tr[data-n] { cursor: pointer; }
.stdz .dim-tbl tr[data-n]:hover td { background: #f3f8fa; }
.stdz .dim-tbl tr.sel td { background: var(--teal-50); font-weight: 700; color: var(--ink); }
.stdz .dim-tbl tr.sel td:first-child { box-shadow: inset 4px 0 0 var(--teal); }
.stdz svg .edge { stroke: #8fa6b0; stroke-width: .9; }
.stdz svg .hole { fill: #fff; stroke: #2c3b3f; stroke-width: 1.2; }
.stdz svg .thrc { fill: none; stroke: #8fa6b0; stroke-width: .9; stroke-dasharray: 10 5; }
.stdz svg .chamf { fill: none; stroke: #8fa6b0; stroke-width: .8; }
.stdz svg .sock { fill: #fff; stroke: #2c3b3f; stroke-width: 1.2; }
.stdz svg .sockd { fill: #fff; stroke: #8fa6b0; stroke-width: 1; stroke-dasharray: 3 2; }
.stdz svg .nyl { fill: rgba(37, 150, 180, .35); stroke: var(--teal-700); stroke-width: .9; }
.stdz svg .hiddenl { fill: none; stroke: #8fa6b0; stroke-width: .9; stroke-dasharray: 4 3; }
.stdz svg .breakl { fill: none; stroke: #2c3b3f; stroke-width: 1.2; }
@media (max-width: 1080px) { .stdz .dim-main { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .stdz .dim-key { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stdz .dim-types { grid-template-columns: 1fr 1fr; } }

/* rivet nut / blind rivet type-true drawings (v5) */
.stdz svg .cut { fill: url(#fxhatch) #dfe6ea; stroke: none; }
.stdz svg .outl { fill: none; stroke: #2c3b3f; stroke-width: 1.6; stroke-linejoin: round; }
.stdz svg .thr .minor { stroke: #2c3b3f; stroke-width: .8; }
.stdz svg .face, .stdz svg .kn { fill: none; stroke: #6f8790; stroke-width: 1; }
.stdz svg .slot { fill: none; stroke: #2c3b3f; stroke-width: 1.6; }
.stdz svg .slot.open { stroke-width: 2.6; }
.stdz svg .slit { stroke: #2c3b3f; stroke-width: 1.1; }
.stdz svg .fold { stroke: #6f8790; stroke-width: 1; }
.stdz svg .part.leg { fill: #d5dee2; }
.stdz svg .mandrel.hid { fill: none; stroke-dasharray: 3 2; }
.stdz svg .brk { stroke: #c0392b; stroke-width: 1.2; stroke-dasharray: 2 2; }
.stdz svg .lockr { fill: #2596b4; stroke: #1b6f86; stroke-width: 1; }
.stdz svg .rot { font: 600 11px/1 system-ui, sans-serif; fill: #1b6f86; }
.stdz svg .plan .hd { fill: #f3f6f8; stroke: #6f8790; stroke-width: 1; stroke-dasharray: 3 2; }
.stdz svg .plan .bd { fill: #e7edf0; stroke: #2c3b3f; stroke-width: 1.4; }
.stdz svg .plan .bo { fill: #fff; stroke: #2c3b3f; stroke-width: 1.1; }
.stdz svg .plan .cl { fill: #b9c7cd; stroke: #2c3b3f; stroke-width: 1.1; }
.stdz svg .plan .sl { stroke: #2c3b3f; stroke-width: 2; }
.stdz svg .inset .frame { fill: #f6f9fa; stroke: #c9d6dc; }

/* dimensions v3: multi-standard tabs, differences, NF E */
.stdz .dim-disc { background: #fff8e6; border: 1px solid #f1d28a; border-left: 4px solid #d99a00; border-radius: 10px; padding: 10px 14px; font-size: .88rem; color: #5b4a1c; margin: 12px 0 0; }
.stdz .dim-grp { grid-column: 1 / -1; margin: 10px 0 0; font: 700 .72rem/1.2 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stdz .dim-grp:first-child { margin-top: 0; }
.stdz .dim-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.stdz .dim-tabs button { font: 700 .9rem/1.1 var(--font-head); background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; cursor: pointer; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.stdz .dim-tabs button small { font: 500 .72rem/1.1 var(--font-body, inherit); color: var(--muted); }
.stdz .dim-tabs button[aria-selected="true"] { background: var(--slate-900); border-color: var(--slate-900); color: #fff; }
.stdz .dim-tabs button[aria-selected="true"] small { color: #a9c0c5; }
.stdz .dim-eq { margin: 0; font-size: .86rem; color: var(--muted); }
.stdz .dim-eq b { color: var(--ink); }
.stdz .fcell.df { border-color: #e7b85c; background: #fff9ec; }
.stdz .fcell.df small { color: #8a5d00; font-weight: 600; }
.stdz .dim-diff { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 10px 12px; font-size: .86rem; line-height: 1.45; }
.stdz .dim-diff:empty { display: none; }
.stdz .dim-diff.warn { background: #fff9ec; border: 1px solid #f1d28a; color: #5b4a1c; }
.stdz .dim-diff.ok { background: #eef8f3; border: 1px solid #bfe3cf; color: #1f5a3c; }
.stdz .dd-ic { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: #d99a00; color: #fff; }
.stdz .dim-diff.ok .dd-ic { background: #2f9461; }
.stdz .dim-tbl td.df { background: #fff3d6; color: #6b4700; font-weight: 700; }
.stdz .dim-tbl tr.sel td.df { background: #ffe7ad; }
.stdz .df-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: #fff3d6; border: 1px solid #e7b85c; vertical-align: -1px; }
.stdz svg .nyl { fill: #f3d9a0; stroke: #b07b16; stroke-width: 1; }
.stdz svg .slotd { fill: #2c3b3f; }
.stdz svg .clipr { fill: #2596b4; stroke: #1b6f86; }
.stdz svg .minorl { stroke: #8fa6b0; stroke-width: .8; stroke-dasharray: 6 3; }
.stdz svg .hiddenl { fill: none; stroke: #6f8790; stroke-width: 1; stroke-dasharray: 4 3; }

/* dimensions v4: DIN chart types, search, cross-reference */
.stdz .dim-find { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 16px 0 4px; max-width: 560px; }
.stdz .dim-find svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.stdz .dim-find input { border: 0; outline: 0; font: inherit; width: 100%; background: transparent; color: var(--ink); }
.stdz .dim-find:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-50); }
.stdz .dim-count { margin: 0 0 6px; }
.stdz .dim-type[hidden], .stdz .dim-grp[hidden] { display: none; }
.stdz .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.stdz .xref-tools { margin: 10px 0; }
.stdz .xref-tools input { font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; width: min(100%, 320px); }
.stdz .xref-tbl td { vertical-align: middle; font-size: .86rem; }
.stdz .xref-tbl td:first-child { white-space: nowrap; }
.stdz .xref-go { font: 600 .8rem/1 var(--font-head); color: var(--teal-700); background: var(--teal-50); border: 1px solid var(--teal-100, #cfe9f0); border-radius: 999px; padding: 6px 10px; cursor: pointer; white-space: nowrap; }
.stdz .xref-go:hover { background: var(--teal); color: #fff; }
.stdz .xref-tbl tr[hidden] { display: none; }
.stdz svg .slotcut { fill: #fff; stroke: #2c3b3f; stroke-width: 1; }
.stdz svg .crest { fill: none; stroke: #2c3b3f; stroke-width: 1; }
.stdz svg .flute { fill: none; stroke: #6f8790; stroke-width: 1.2; }
.stdz svg .boss { fill: #f3d9a0; stroke: #b07b16; stroke-width: 1; }
.stdz svg .shaftc { fill: #c9d6dc; stroke: #6f8790; stroke-dasharray: 3 2; }
.stdz svg .wll { fill: #1b6f86; }

/* dimensions v5: detail panel opens under the selected card, inside its group */
.stdz .dim-types > .dim-detail { grid-column: 1 / -1; position: relative; background: #fff; border: 1.5px solid var(--teal); border-radius: 16px; padding: 18px; margin: 6px 0 14px; box-shadow: 0 12px 30px -18px rgba(20, 60, 70, .45); animation: dimopen .28s ease both; }
.stdz .dim-types > .dim-detail[hidden] { display: none; }
.stdz .dim-types > .dim-detail::before { content: ""; position: absolute; top: -9px; left: calc(var(--px, 40px) - 8px); width: 16px; height: 16px; background: #fff; border-left: 1.5px solid var(--teal); border-top: 1.5px solid var(--teal); transform: rotate(45deg); }
.stdz .dim-detail .dim-fig { background: #f8fbfc; }
.stdz .dim-detail .fx-more { margin-top: 14px; }
.stdz .dim-close { position: absolute; top: 8px; right: 10px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--muted); z-index: 1; }
.stdz .dim-close:hover { color: var(--ink); border-color: var(--teal); }
.stdz .dim-type.row-open:not([aria-pressed="true"]) { opacity: .75; }
@keyframes dimopen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .stdz .dim-types > .dim-detail { animation: none; } }
@media (max-width: 520px) { .stdz .dim-types > .dim-detail { padding: 12px; } }

/* type cards: part thumbnails drawn from the standard */
.stdz .dim-type { align-items: center; }
.stdz .dim-thumb { flex: none; width: 76px; height: 60px; border-radius: 10px; background: radial-gradient(circle at 40% 35%, #fff, #eef3f5); display: grid; place-items: center; overflow: hidden; }
.stdz .dim-type .dim-thumb svg { width: 70px; height: 54px; fill: none; stroke: none; }
.stdz .dim-thumb svg.real .part { fill: url(#fxmetal) #d9e2e6; stroke: #2c3b3f; stroke-width: 2.4; }
.stdz .dim-thumb svg.real .thr line { stroke: #7e95a0; stroke-width: 1.8; }
.stdz .dim-thumb svg.real .crest { stroke: #2c3b3f; stroke-width: 1.6; }
.stdz .dim-thumb svg.real .edge, .stdz .dim-thumb svg.real .kn { stroke: #7e95a0; stroke-width: 1.6; }
.stdz .dim-thumb svg.real .hole, .stdz .dim-thumb svg.real .slotcut { fill: #fff; stroke: #2c3b3f; stroke-width: 2; }
.stdz .dim-thumb svg.real .hiddenl { display: none; }
.stdz .dim-thumb svg.real .nyl { fill: #f3d9a0; stroke: #b07b16; }
.stdz .dim-thumb svg.real .boss { fill: #f3d9a0; stroke: #b07b16; }
.stdz .dim-thumb svg.real .clipr { fill: #2596b4; }
.stdz .dim-thumb svg.real .mandrel { fill: #a7b8bf; }
.stdz .dim-type[aria-pressed="true"] .dim-thumb { background: #fff; box-shadow: inset 0 0 0 1.5px var(--teal); }
.stdz .dim-type[aria-pressed="true"] .dim-thumb svg { fill: none; }
@media (max-width: 520px) { .stdz .dim-thumb { width: 60px; height: 50px; } .stdz .dim-type .dim-thumb svg { width: 56px; height: 46px; } }
.stdz .dim-types { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.stdz .dim-thumb { width: 96px; height: 72px; }
.stdz .dim-type .dim-thumb svg { width: 90px; height: 66px; }
@media (max-width: 520px) { .stdz .dim-types { grid-template-columns: 1fr; } .stdz .dim-thumb { width: 84px; height: 62px; } .stdz .dim-type .dim-thumb svg { width: 78px; height: 56px; } }
.stdz .fcell.lenc { border-color: var(--teal); background: var(--teal-50); }
.stdz .dim-len { max-height: 132px; overflow-y: auto; }
.stdz svg .brand { font: 700 11px var(--font-head); fill: #1e2e36; }
.stdz svg .brandline { stroke: #c9d6dc; stroke-width: 1; }

/* dimensions v6: categories open on click */
.stdz .dim-groups { display: grid; gap: 12px; margin-top: 14px; }
.stdz .dim-group[hidden] { display: none; }
.stdz .dim-grp-btn { width: 100%; display: flex; align-items: center; gap: 16px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px 12px 12px; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.stdz .dim-grp-btn:hover { border-color: var(--teal); box-shadow: 0 8px 22px -16px rgba(20, 60, 70, .5); }
.stdz .dim-group.open > .dim-grp-btn { border-color: var(--teal); background: var(--teal-50); }
.stdz .dim-grp-ic { flex: none; display: flex; gap: 2px; width: 150px; height: 58px; background: radial-gradient(circle at 40% 35%, #fff, #eef3f5); border-radius: 10px; padding: 4px; align-items: center; justify-content: center; overflow: hidden; }
.stdz .dim-grp-ic svg { width: 46px; height: 50px; }
.stdz .dim-grp-ic svg .part { fill: url(#fxmetal) #d9e2e6; stroke: #2c3b3f; stroke-width: 2.4; }
.stdz .dim-grp-ic svg .thr line, .stdz .dim-grp-ic svg .edge, .stdz .dim-grp-ic svg .kn { stroke: #7e95a0; stroke-width: 1.8; }
.stdz .dim-grp-ic svg .hole, .stdz .dim-grp-ic svg .slotcut { fill: #fff; stroke: #2c3b3f; stroke-width: 2; }
.stdz .dim-grp-ic svg .crest { fill: none; stroke: #2c3b3f; stroke-width: 1.6; }
.stdz .dim-grp-ic svg .hiddenl { display: none; }
.stdz .dim-grp-ic svg .nyl, .stdz .dim-grp-ic svg .boss { fill: #f3d9a0; stroke: #b07b16; }
.stdz .dim-grp-tx { flex: 1; min-width: 0; }
.stdz .dim-grp-tx b { display: block; font: 700 1.08rem/1.2 var(--font-head); }
.stdz .dim-grp-tx small { display: block; color: var(--muted); font-size: .8rem; margin-top: 3px; }
.stdz .dim-grp-chev { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; position: relative; transition: transform .25s; }
.stdz .dim-grp-chev::after { content: ""; position: absolute; left: 11px; top: 9px; width: 9px; height: 9px; border-right: 2px solid var(--teal-700); border-bottom: 2px solid var(--teal-700); transform: rotate(45deg); }
.stdz .dim-group.open .dim-grp-chev { transform: rotate(180deg); }
.stdz .dim-group > .dim-types { margin: 10px 0 4px; }
.stdz .dim-group > .dim-types[hidden] { display: none; }
.stdz .dim-detail[hidden] { display: none; }
@media (max-width: 520px) { .stdz .dim-grp-ic { width: 92px; } .stdz .dim-grp-ic svg:nth-child(3) { display: none; } .stdz .dim-grp-btn { gap: 10px; padding: 10px; } }

/* Technical & Standards: click-to-open sections */
.stdz .std-allbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; color: var(--muted); font-size: .88rem; }
.stdz .std-allbar span { margin-right: auto; }
.stdz .std-allbar button { font: 600 .85rem/1 var(--font-head); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; color: var(--ink); }
.stdz .std-allbar button:hover { border-color: var(--teal); color: var(--teal-700); }
.stdz .std-block.acc { padding: 0; overflow: visible; }
.stdz .std-block.acc > .std-h { margin: 0; }
.stdz .std-toggle { width: 100%; display: flex; align-items: center; gap: 16px; background: none; border: 0; padding: 20px 24px; text-align: left; cursor: pointer; font: inherit; color: inherit; border-radius: inherit; }
.stdz .std-toggle:hover { background: rgba(37, 150, 180, .05); }
.stdz .std-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.stdz .std-tt small { font: 700 .68rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-700); }
.stdz .std-tt b { font: 700 1.2rem/1.25 var(--font-head); color: var(--ink); }
.stdz .std-tt em { font-style: normal; font-size: .88rem; color: var(--muted); }
.stdz .std-block.open .std-tt em { display: none; }
.stdz .std-chev { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; position: relative; transition: transform .25s; }
.stdz .std-chev::after { content: ""; position: absolute; left: 12px; top: 10px; width: 9px; height: 9px; border-right: 2px solid var(--teal-700); border-bottom: 2px solid var(--teal-700); transform: rotate(45deg); }
.stdz .std-block.open .std-chev { transform: rotate(180deg); }
.stdz .std-block.open { border-color: var(--teal); }
.stdz .std-body { padding: 0 24px 24px; }
.stdz .std-body[hidden] { display: none; }
.stdz .std-block.acc { margin-bottom: 12px; }
@media (max-width: 520px) { .stdz .std-toggle { padding: 16px; gap: 10px; } .stdz .std-body { padding: 0 14px 18px; } .stdz .std-tt b { font-size: 1.05rem; } }
.stdz .std-block.acc { background: var(--bg, #fff); border: 1px solid var(--line); border-radius: var(--radius, 16px); }
.stdz .std-block.acc.tool { background: var(--bg); }
.stdz .std-block.acc, .stdz .std-block.acc + .std-block.acc { margin: 0 0 12px !important; }

/* weight basis labels */
.wt-basis { margin: 10px 0 0; font-size: .92rem; line-height: 1.5; }
.wt-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; margin-right: 6px; vertical-align: 1px; white-space: nowrap; }
.wt-tag.pub { background: #e3f4e8; color: #1d6b36; }
.wt-tag.cal { background: #fff1d9; color: #8a5a00; }
.wt-tag.calc { background: #eceff3; color: #44505e; }
.wt-legend { margin: 8px 0 10px 0; padding-left: 0; list-style: none; }
.wt-legend li { margin: 6px 0; }

/* Softer, easier-to-read accordion cards */
.stdz .std-block.acc { background: #fff; border: 1px solid #E1E7EE; border-radius: 14px; box-shadow: 0 1px 2px rgba(11,37,69,.04); transition: border-color .25s ease, box-shadow .25s ease; }
.stdz .std-block.acc:hover { border-color: #C9D6E4; box-shadow: 0 6px 18px -10px rgba(11,37,69,.18); }
.stdz .std-block.open { border-color: #9CC3E6; box-shadow: 0 10px 28px -16px rgba(0,104,184,.35); }
.stdz .std-toggle { padding: 18px 24px; gap: 18px; transition: background-color .2s ease; }
.stdz .std-toggle:hover { background: #F7FAFD; }
.stdz .std-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.stdz .std-tt { gap: 5px; }
.stdz .std-tt small { font-weight: 600; font-size: .7rem; letter-spacing: .08em; color: #4E7FAE; }
.stdz .std-tt b { font-weight: 600; font-size: 1.12rem; line-height: 1.35; color: #14263D; }
.stdz .std-tt em { font-weight: 400; font-size: .93rem; line-height: 1.55; color: #5D6B7C; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.stdz .std-chev { width: 34px; height: 34px; border-color: #DCE4EC; background: #F5F8FB; transition: transform .3s ease, background-color .2s ease; }
.stdz .std-block.open .std-chev { background: #E8F1FA; }
.stdz .std-body:not([hidden]) { animation: stdOpen .32s ease both; }
@keyframes stdOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.stdz .std-body > p, .stdz .std-body li { font-weight: 400; color: #3F4D5E; line-height: 1.7; }
@media (max-width: 520px) { .stdz .std-tt em { -webkit-line-clamp: 2; font-size: .88rem; } .stdz .std-tt b { font-size: 1.02rem; } }
@media (prefers-reduced-motion: reduce) { .stdz .std-body:not([hidden]) { animation: none; } .stdz .std-chev { transition: none; } }

/* Interactive tools: same clean white card as the others, marked by a slim cobalt edge */
.stdz .std-block.acc.tool { background: #fff; padding: 0; box-shadow: 0 1px 2px rgba(11,37,69,.04); border-left: 4px solid var(--teal, #0068B8); }
.stdz .std-block.acc.tool .std-tt small { color: #C46500; }
.stdz .std-block.acc.tool .std-tt small::after { content: " · tap to use"; color: #8A97A6; letter-spacing: .04em; font-weight: 500; text-transform: none; }
