/* ResistorStandardValues.html — tools, tables and poster swatches (js/resistor-values.js) */
:root {
  --rv-ink: #1a3a40;
  --rv-soft: #4a5a5f;
  --rv-line: #c5d0d3;
  --rv-accent: #1a6475;
  --rv-tint: #e8f0f3;
}
.rv-main { max-width: 1240px; margin: 0 auto; padding: 0 16px 60px; font-family: Roboto, Arial, sans-serif; color: var(--rv-ink); }
.rv-sub { color: var(--rv-soft); font-size: 15.5px; line-height: 1.55; max-width: 78ch; margin: 18px auto 18px; text-align: center; }
.rv-jump { display: flex; flex-wrap: wrap; gap: 6px 8px; justify-content: center; margin: 0 0 22px; }
.rv-jump a { font-size: 13px; padding: 4px 11px; border: 1px solid var(--rv-line); border-radius: 999px; background: #fff; color: var(--rv-accent); text-decoration: none; }
.rv-jump a:hover { background: var(--rv-tint); border-color: var(--rv-accent); }

.rv-h2 { font-size: 22px; font-weight: 800; margin: 34px 0 6px; color: var(--rv-ink); }
.rv-lead { color: var(--rv-soft); font-size: 14.5px; line-height: 1.55; margin: 0 0 14px; max-width: 95ch; }

.rv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.rv-card { background: #fff; border: 2px solid #434343; border-radius: 10px; box-shadow: 0 3px 5px rgba(0,0,0,.25); overflow: hidden; min-width: 0; }
.rv-card-h { padding: 10px 14px; border-bottom: 2px solid #434343; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; background: #f4f7f8; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rv-card-b { padding: 14px; }
.rv-wide { grid-column: 1 / -1; }

.rv-in { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin-bottom: 10px; }
.rv-in label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 700; color: var(--rv-soft); }
.rv-in input, .rv-in select { font: 15px Roboto, Arial, sans-serif; padding: 7px 9px; border: 1.5px solid #6b7b80; border-radius: 7px; min-width: 0; }
.rv-in input[type=text] { width: 150px; }
.rv-in input[type=number] { width: 110px; }
.rv-ex { font-size: 12.5px; color: var(--rv-soft); margin: 0 0 8px; }
.rv-ex a { color: var(--rv-accent); margin-right: 6px; }

.rv-seg { display: inline-flex; border: 1.5px solid #434343; border-radius: 8px; overflow: hidden; }
.rv-seg button { font: 700 13px Roboto, Arial, sans-serif; padding: 6px 12px; border: none; border-right: 1px solid #434343; background: #fff; color: var(--rv-ink); cursor: pointer; }
.rv-seg button:last-child { border-right: none; }
.rv-seg button[aria-pressed=true], .rv-seg button[aria-selected=true] { background: #1d3f4b; color: #fff; }

.rv-val-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 6px 0; }
.rv-big { font-size: 26px; font-weight: 800; color: var(--rv-ink); }
.rv-tol { font-size: 15px; color: var(--rv-soft); font-weight: 700; }
.rv-rkm { font-size: 13px; color: var(--rv-soft); }
.rv-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.rv-chip { font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: #dff1e3; color: #1e5a2a; }
.rv-chip-no { background: #f6e6d6; color: #8a4a12; }
.rv-range { font-size: 14px; color: var(--rv-ink); margin: 6px 0; line-height: 1.6; }
.rv-note { font-size: 12.5px; color: var(--rv-soft); margin: 8px 0 0; }
.rv-err { color: #a3312a; font-size: 14px; }
.rv-warn { color: #9a6200; font-weight: 700; }

.rv-bands { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin: 10px 0; }
.rv-band-card { border: 1px solid var(--rv-line); border-radius: 8px; padding: 8px 10px; background: #fbfdfd; }
.rv-bc-h { font-weight: 800; font-size: 13.5px; }
.rv-bc-h small { font-weight: 600; color: var(--rv-soft); margin-left: 4px; }
.rv-bc-sw { margin: 2px 0; }
.rv-bc-n { font-size: 12px; color: var(--rv-soft); }
.rv-svg { width: 100%; max-width: 320px; height: auto; display: block; margin: 2px auto; }
.rv-noband { font-size: 12.5px; color: var(--rv-soft); padding: 22px 0; text-align: center; }

.rv-smd-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.rv-smd-row > div { border: 1px solid var(--rv-line); border-radius: 8px; padding: 6px 10px; display: flex; flex-direction: column; background: #fbfdfd; }
.rv-smd-row span { font-size: 11.5px; font-weight: 700; color: var(--rv-soft); text-transform: uppercase; letter-spacing: .06em; }
.rv-smd-row small { font-size: 11.5px; color: var(--rv-soft); }
.rv-code { font: 800 22px "Roboto Mono", Consolas, monospace; letter-spacing: .06em; color: var(--rv-ink); }
@media (max-width: 520px) { .rv-smd-row { grid-template-columns: 1fr; } }

.rv-near, .rv-tbl, .rv-ref { border-collapse: collapse; width: 100%; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.rv-near th, .rv-near td, .rv-ref th, .rv-ref td { border-bottom: 1px solid #e3eaec; padding: 5px 8px; text-align: left; }
.rv-near thead th, .rv-ref thead th { background: #1d3f4b; color: #fff; font-size: 12px; font-weight: 700; }
.rv-near tr.rv-exact td, .rv-near tr.rv-exact th { background: #eef6ee; }
.rv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .rv-two { grid-template-columns: 1fr; } }
.rv-scroll { overflow-x: auto; }

.rb-pick { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 700; color: var(--rv-soft); }
.rb-pick select { font: 700 14px Roboto, Arial, sans-serif; padding: 6px 8px; border: 1.5px solid #434343; border-radius: 7px; min-width: 150px; }
#rbPick { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }

/* colour swatch with its two-letter name, so it reads in black and white too */
.rb { display: inline-block; min-width: 1.9em; padding: 0 .2em; margin-right: 2px; border-radius: 3px; font: 700 .78em/1.55 Roboto, Arial, sans-serif; font-style: normal; text-align: center; border: 1px solid rgba(0,0,0,.35);
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }

.rv-tbl th, .rv-tbl td { border-bottom: 1px solid #e3eaec; padding: 4px 8px; text-align: right; white-space: nowrap; }
.rv-tbl thead th { position: sticky; top: 0; background: #1d3f4b; color: #fff; font-size: 12px; text-align: center; line-height: 1.6; }
.rv-tbl tbody tr:nth-child(even) { background: #f4f8f9; }
.rv-tbl td.rv-sw { text-align: left; }
.rv-tbl td.rv-also { color: var(--rv-soft); font-size: 12px; text-align: left; }
.rv-tbl-wrap { max-height: 640px; overflow: auto; border: 1px solid var(--rv-line); border-radius: 8px; }
#rvSerTabs { margin: 0 0 8px; flex-wrap: wrap; }
.rv-ser-info { font-size: 13.5px; color: var(--rv-soft); margin: 4px 0 10px; }
#rvBandsChart svg { width: 100%; height: auto; display: block; }

.rv-ref td.c { white-space: nowrap; }
.rv-eia td { padding: 3px 8px; border-bottom: 1px solid #e3eaec; font-size: 13px; font-variant-numeric: tabular-nums; }
.rv-eia td b { color: var(--rv-accent); display: inline-block; min-width: 1.6em; }

.rv-poster-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 6px 0 14px; }
.rv-poster-cta .poster-btn, .poster-cta-btn { background: #5fc7db; color: #10303a; border: none; border-radius: 7px; padding: 10px 16px; font-weight: 800; font-size: 13px; letter-spacing: .04em; cursor: pointer; text-transform: uppercase; }
.rv-poster-cta .poster-btn:hover { background: #8ad9e8; }

/* poster swatches in black and white: outline only */
.poster.bw .rb { background: #fff !important; color: #000 !important; border-color: #000; }
.poster .rv-p-key .rb { font-size: .9em; }
.poster .rs { display: inline-block; width: 2.9em; font-style: normal; font-weight: 700; color: #1a6475; }
