/* anPCB Impedance Calculator — module styles
   Shared by the full tool page and the compact category-page embed.
   © 2026 anPCB. All rights reserved.
   Unauthorized copying or redistribution of this file is prohibited without written permission. */

.anpcb-imp,
.imp-page {
  --imp-blue: #0f4c81;
  --imp-navy: #14356b;
  --imp-ink: #33475c;
  --imp-text: #43566d;
  --imp-muted: #6b7f96;
  --imp-line: #dbe6f0;
  --imp-line-soft: #edf3fa;
  --imp-soft: #f1f6fc;
  --imp-amber: #c05621;
  --imp-amber-line: #e3be97;
  --imp-amber-bg: #fdf6ec;
  --imp-red: #b42318;
  --imp-red-bg: #fdf2f2;
  --imp-red-line: #f3c6c2;
}

.imp-tool {
  font-size: 14px;
  color: var(--imp-text);
}

.imp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 28px;
  align-items: start;
}

.imp-grid > * { min-width: 0; }

.imp-panel {
  background: #fff;
  border: 1px solid var(--imp-line);
  border-radius: 12px;
  padding: 26px;
}

.imp-controls {
  box-shadow: 0 10px 28px -24px rgba(13, 44, 84, .28);
}

.imp-results {
  background: linear-gradient(180deg, #f8fbfe 0%, #ffffff 100%);
  position: sticky;
  top: 118px;
}

.imp-group { margin-top: 20px; }
.imp-group:first-child { margin-top: 0; }

.imp-label {
  display: block;
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #2a4767;
  font-weight: 700;
  margin-bottom: 8px;
}

.imp-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.imp-label-row .imp-label { margin-bottom: 0; }

.imp-mini {
  font-size: 10.5px;
  color: var(--imp-muted);
  letter-spacing: .04em;
}

.imp-help {
  margin: 7px 0 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: #8a9bb0;
}

.imp-row2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.imp-row2 > .imp-group { margin-top: 0; }

.imp-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.imp-mode {
  position: relative;
  display: block;
  border: 1px solid var(--imp-line);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  background: #fff;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.imp-mode input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.imp-mode:hover { border-color: #b9cfe6; }

.imp-mode:has(input:checked) {
  border-color: var(--imp-blue);
  background: #f3f8fd;
  box-shadow: inset 0 0 0 1px var(--imp-blue);
}

.imp-mode:has(input:focus-visible) {
  outline: 3px solid rgba(15, 76, 129, .18);
  outline-offset: 2px;
}

.imp-mode-body { display: block; }

.imp-mode-name {
  display: block;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--imp-navy);
}

.imp-mode-sub {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--imp-muted);
}

.imp-seg {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--imp-line);
  border-radius: 6px;
  background: var(--imp-soft);
}

.imp-seg label {
  flex: 1 1 0;
  position: relative;
  cursor: pointer;
}

.imp-seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.imp-seg span {
  display: block;
  text-align: center;
  padding: 7px 6px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.2;
  color: #5c6d82;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.imp-seg label:has(input:checked) span {
  background: #fff;
  color: var(--imp-blue);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(17, 48, 82, .14);
}

.imp-seg label:has(input:focus-visible) span {
  outline: 2px solid rgba(15, 76, 129, .3);
  outline-offset: 1px;
}

.imp-seg label.is-disabled {
  opacity: .45;
  cursor: not-allowed;
}

.imp-seg label.is-disabled span { pointer-events: none; }

.imp-select,
.imp-inputwrap input {
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  border: 1px solid #cfe0f1;
  border-radius: 6px;
  background: #fff;
  padding: 0 12px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--imp-navy);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.imp-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #6b7f96 50%), linear-gradient(135deg, #6b7f96 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
  font-size: 13.5px;
}

.imp-select:focus,
.imp-inputwrap input:focus {
  border-color: var(--imp-blue);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, .12);
}

.imp-inputwrap {
  position: relative;
  display: block;
}

.imp-inputwrap input { padding-right: 46px; }
.imp-inputwrap input[data-er],
.imp-inputwrap input[data-mask-er] { padding-right: 12px; }

.imp-inputwrap em {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-style: normal;
  font-size: 11.5px;
  color: var(--imp-muted);
  pointer-events: none;
}

.imp-geometry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.imp-geometry > .imp-field:nth-child(3):last-child { grid-column: 1 / -1; }

.imp-field {
  display: block;
  min-width: 0;
}

.imp-field-label {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: #3a4e66;
  font-weight: 600;
  margin-bottom: 6px;
}

.imp-field small {
  display: block;
  margin-top: 5px;
  font-size: 10.5px;
  line-height: 1.4;
  color: #8a9bb0;
}

.imp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.imp-chips button {
  appearance: none;
  border: 1px solid var(--imp-line);
  background: #f7fafd;
  border-radius: 4px;
  padding: 5px 8px;
  font-family: inherit;
  font-size: 11px;
  line-height: 1.2;
  color: #4e657e;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.imp-chips button:hover {
  border-color: var(--imp-blue);
  color: var(--imp-blue);
  background: #fff;
}

.imp-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  min-height: 44px;
}

.imp-group.is-disabled { opacity: .55; }
.imp-group.is-disabled .imp-switch { cursor: not-allowed; }
.imp-group.is-disabled .imp-inputwrap input {
  background: #f5f8fb;
  color: #8a9bb0;
  cursor: not-allowed;
}

.imp-mask-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.imp-mask-fields .imp-inputwrap input { height: 40px; }

.imp-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.imp-switch > span {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #cfe0f1;
  transition: background .18s ease;
  flex: 0 0 auto;
}

.imp-switch > span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(17, 48, 82, .25);
  transition: transform .18s ease;
}

.imp-switch input:checked + span { background: var(--imp-blue); }
.imp-switch input:checked + span::after { transform: translateX(16px); }

.imp-switch input:focus-visible + span {
  outline: 3px solid rgba(15, 76, 129, .18);
  outline-offset: 2px;
}

.imp-switch b {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--imp-ink);
}

.imp-adv {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--imp-line);
}

.imp-adv summary {
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--imp-blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.imp-adv summary::-webkit-details-marker { display: none; }

.imp-adv summary::after {
  content: "+";
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  color: var(--imp-blue);
}

.imp-adv[open] summary::after { content: "–"; }

.imp-adv .imp-row2 { margin-top: 14px; }

.imp-form-note {
  margin: 18px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--imp-line-soft);
  font-size: 11px;
  line-height: 1.6;
  color: #8a9bb0;
}

.imp-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.imp-status {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  line-height: 1.2;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid transparent;
}

.imp-status.is-ok {
  background: #eaf2f9;
  color: var(--imp-blue);
}

.imp-status.is-edge {
  background: var(--imp-amber-bg);
  color: var(--imp-amber);
  border-color: var(--imp-amber-line);
}

.imp-status.is-out {
  background: var(--imp-red-bg);
  color: var(--imp-red);
  border-color: var(--imp-red-line);
}

.imp-status.is-loading {
  background: var(--imp-soft);
  color: var(--imp-muted);
}

.imp-badge {
  font-size: 10.5px;
  color: var(--imp-muted);
}

.imp-diagram {
  margin: 14px 0 0;
  border: 1px solid #e1eaf5;
  border-radius: 8px;
  overflow: hidden;
  background: #fbfdff;
}

.imp-diagram svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: Arimo, Arial, Helvetica, sans-serif;
}

.imp-result-label {
  margin: 18px 0 2px;
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #5c6d82;
  font-weight: 700;
}

.imp-big {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--imp-blue);
  font-weight: 800;
  font-size: 54px;
  line-height: 1;
  letter-spacing: -.03em;
}

.imp-big small {
  font-size: 20px;
  font-weight: 600;
  color: #2a4767;
}

/* Result line: the number keeps its place, the print action sits on the same
   optical line at the right and only wraps under the number on very narrow
   cards. Nothing else in the panel changes size or position. */
.imp-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.imp-print-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 9px 13px;
  border: 1px solid #0b3a63;
  border-radius: 7px;
  background: #0f4c81;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 59, 99, .28);
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.imp-print-btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.imp-print-btn:hover {
  background: #0b3a63;
  border-color: #082946;
  box-shadow: 0 2px 5px rgba(15, 59, 99, .3);
}

.imp-print-btn:focus-visible {
  outline: 2px solid #7fb0dd;
  outline-offset: 2px;
}

.imp-print-btn:active {
  transform: translateY(1px);
}

.imp-result-note {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #5c6d82;
}

.imp-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  border: 1px solid var(--imp-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--imp-line);
}

.imp-metrics > div {
  background: #fff;
  padding: 10px 12px;
  min-width: 0;
}

.imp-metrics span {
  display: block;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--imp-muted);
}

.imp-metrics b {
  display: block;
  margin-top: 3px;
  font-size: 14.5px;
  line-height: 1.3;
  color: var(--imp-navy);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.imp-warnings {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.imp-warn {
  margin: 0;
  padding: 8px 10px;
  border-left: 2px solid var(--imp-blue);
  border-radius: 4px;
  background: var(--imp-soft);
  font-size: 11.5px;
  line-height: 1.5;
  color: #3d5875;
}

.imp-warn.is-edge {
  border-left-color: var(--imp-amber);
  background: var(--imp-amber-bg);
  color: #7a4a1e;
}

.imp-warn.is-out {
  border-left-color: var(--imp-red);
  background: var(--imp-red-bg);
  color: #8f2a22;
}

.imp-warn a,
.imp-warn button.imp-linkbtn {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin-left: 6px;
  font: inherit;
  font-weight: 700;
  color: var(--imp-blue);
  text-decoration: underline;
  cursor: pointer;
}

.imp-solve {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--imp-line);
}

.imp-solve-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.imp-solve-head h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  color: var(--imp-navy);
  font-weight: 700;
}

.imp-solve-head span {
  font-size: 10.5px;
  color: var(--imp-muted);
}

.imp-target {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.imp-target label {
  flex: 0 0 auto;
  font-size: 11.5px;
  color: var(--imp-text);
}

.imp-target .imp-inputwrap { flex: 1 1 auto; }
.imp-target input { height: 40px; }

.imp-solve-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.imp-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c7d8e9;
  background: #fff;
  border-radius: 6px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--imp-blue);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.imp-btn:hover {
  background: #f3f8fd;
  border-color: var(--imp-blue);
}

.imp-btn-primary {
  background: #3b6da1;
  border-color: #3b6da1;
  color: #fff;
}

.imp-btn-primary:hover {
  background: var(--imp-blue);
  border-color: var(--imp-blue);
  color: #fff;
}

.imp-btn-small {
  margin-top: 8px;
  padding: 7px 10px;
  font-size: 11.5px;
}

.imp-btn:disabled,
.imp-btn.is-applied {
  opacity: .55;
  cursor: default;
  background: #f1f6fc;
  border-color: var(--imp-line);
  color: var(--imp-muted);
}

.imp-btn.is-applied:hover {
  background: #f1f6fc;
  border-color: var(--imp-line);
}

.imp-solve-out {
  margin-top: 12px;
  min-height: 56px;
  padding: 12px;
  border: 1px dashed #cfe0f1;
  border-radius: 6px;
  background: #f7fafd;
  font-size: 12px;
  line-height: 1.55;
  color: var(--imp-text);
}

.imp-solve-out p { margin: 0; }

.imp-solve-result p { margin: 0; }
.imp-solve-result b { color: var(--imp-blue); }

.imp-disclaimer {
  margin: 18px 0 0;
  padding: 0;
  border: 0;
  max-width: 980px;
  font-size: 11.5px;
  line-height: 1.65;
  color: #7b8ea4;
}

.imp-source {
  margin: 6px 0 0;
  font-size: 10.5px;
  line-height: 1.6;
  color: #93a4b7;
}

/* Compact embed */

.imp-tool--compact .imp-panel { padding: 22px; }
.imp-tool--compact .imp-results { position: static; }
.imp-tool--compact .imp-big { font-size: 46px; }

.imp-embed-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--imp-line);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  line-height: 1.6;
  color: var(--imp-muted);
}

.imp-embed-foot a {
  color: var(--imp-blue);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.imp-embed-foot a:hover { text-decoration: underline; }

/* Tool page layout helpers (Elementor containers) */

.anpcb-imp-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 10px;
}

.anpcb-imp-card {
  background: #fff;
  border: 1px solid #dbe6f0;
  border-radius: 10px;
  padding: 22px 20px;
}

.anpcb-imp-split {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.anpcb-imp-split > * { min-width: 0; }

/* Tool page header — full-width band, same rhythm as /pcb/ (30 / 27 / 23 px) */

.page-id-263 .anpcb-imp-hero-v2 {
  padding: 30px 24px !important;
  background-color: #F5F7FA;
}

.page-id-263 .anpcb-imp-hero-v2 .anpcb-imp-hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.page-id-263 .anpcb-imp-hero-v2 .elementor-heading-title {
  margin: 0;
  font-size: 46px;
  line-height: 1.12;
  letter-spacing: -.01em;
  color: #0F4C81;
}

.page-id-263 .anpcb-imp-hero-v2 .anpcb-hub-hero-sub {
  margin: 18px 0 0 !important;
  max-width: 760px;
  font-size: 17px !important;
  line-height: 1.7 !important;
  color: #33475C !important;
}

.page-id-263 .anpcb-imp-hero-v2 .anpcb-hub-crumb,
.page-id-263 .anpcb-imp-hero-v2 .anpcb-hub-crumb nav,
.page-id-263 .anpcb-imp-hero-v2 .anpcb-hub-crumb a,
.page-id-263 .anpcb-imp-hero-v2 .anpcb-hub-crumb-sep {
  color: #7C93AC;
}

.page-id-263 .anpcb-imp-hero-v2 .anpcb-hub-crumb a:hover {
  color: #0F4C81;
}

.page-id-263 .anpcb-imp-hero-v2 .anpcb-hub-crumb-here {
  color: #5B7391;
}

@media (max-width: 1024px) {
  .page-id-263 .anpcb-imp-hero-v2 { padding: 27px 24px !important; }
}

@media (max-width: 767px) {
  .page-id-263 .anpcb-imp-hero-v2 { padding: 23px 20px !important; }
  .page-id-263 .anpcb-imp-hero-v2 .elementor-heading-title { font-size: 32px; }
}

/* Model page one-line link */

.anpcb-imp-model-link {
  margin: 26px 0 0;
  padding-top: 16px;
  border-top: 1px solid #dbe6f0;
  font-size: 14px;
  line-height: 1.6;
  color: #5c6d82;
}

.anpcb-imp-model-link a {
  color: #0f4c81;
  font-weight: 600;
  text-decoration: none;
}

.anpcb-imp-model-link a:hover { text-decoration: underline; }

/* Table (tool page copy) */

.imp-tablewrap {
  min-width: 0;
  border: 1px solid var(--imp-line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.imp-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.imp-table th {
  background: #eaf2f9;
  border-bottom: 1px solid var(--imp-line);
  padding: 10px 16px;
  text-align: left;
  font-size: 10.5px;
  line-height: 1.3;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #2a4767;
  font-weight: 700;
}

/* The theme blocks text selection on body; calculator fields must still take
   a caret and typed input even if that rule wins the cascade. */
.anpcb-imp input,
.anpcb-imp textarea,
.anpcb-imp select,
.anpcb-imp option {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default !important;
}

.imp-table td {
  border-bottom: 1px solid var(--imp-line-soft);
  padding: 10px 16px;
  font-size: 12.8px;
  line-height: 1.55;
  color: var(--imp-ink);
  vertical-align: top;
}

.imp-table tr:last-child td { border-bottom: 0; }
.imp-table td:first-child { color: var(--imp-navy); font-weight: 600; }

/* Equal-height columns: both cards end on the same line, footer notes sit on the card edge. */
.imp-panel {
  display: flex;
  flex-direction: column;
}

.imp-controls form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

@media (min-width: 1001px) {
  .imp-grid { align-items: start; }
  .imp-controls { align-self: start; }
  .imp-results { align-self: start; }
  .imp-form-note,
  .imp-results .imp-disclaimer { margin-top: auto; }
}

@media (max-width: 1000px) {
  .imp-grid { grid-template-columns: 1fr; }
  .imp-results { position: static; }
  .anpcb-imp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .anpcb-imp-split { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 767px) {
  .imp-panel { padding: 18px; }
  .imp-controls { box-shadow: none; }
  .imp-row2 { grid-template-columns: 1fr; gap: 14px; }
  .imp-geometry { grid-template-columns: 1fr; }
  .imp-geometry > .imp-field:nth-child(3):last-child { grid-column: auto; }
  .imp-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .imp-big { font-size: 44px; }
  .imp-select,
  .imp-inputwrap input { font-size: 16px; }
  .imp-solve-actions .imp-btn { flex: 1 1 auto; }
  .imp-result-top { align-items: flex-start; }
  .imp-badge { text-align: right; }
  .imp-embed-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .imp-tablewrap { overflow-x: auto; }
  .imp-table { min-width: 560px; }
  .anpcb-imp-cards { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .imp-panel { padding: 16px; }
  .imp-big { font-size: 40px; }
  .imp-target { flex-direction: column; align-items: flex-start; gap: 6px; }
  .imp-target .imp-inputwrap { width: 100%; }
}

/* ==========================================================================
   Compact layout: keep header + parameters + cross-section + result + solve
   inside the first screen on a 900 px-tall display.
   ========================================================================== */

.page-id-263 .anpcb-imp-hero-v2 { padding: 18px 24px !important; }

.page-id-263 .anpcb-imp-hero-v2 .anpcb-hub-crumb.anpcb-inline-crumb {
  margin: 0 0 4px;
  font-size: 12px;
}

.page-id-263 .anpcb-imp-hero-v2 .elementor-heading-title {
  font-size: 46px;
  line-height: 1.12;
  letter-spacing: -.01em;
}

.page-id-263 .anpcb-imp-hero-v2 .anpcb-hub-hero-sub {
  margin: 12px 0 0 !important;
  max-width: 780px;
  font-size: 16px !important;
  line-height: 1.6 !important;
}

.page-id-263 .anpcb-imp-calc-slot {
  padding-top: 22px !important;
  padding-bottom: 26px !important;
}

.page-id-263 .anpcb-imp-calc-slot .elementor-widget-heading { margin-bottom: 2px; }

.page-id-263 .anpcb-imp-calc-slot .elementor-heading-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.page-id-263 .anpcb-imp-calc-slot .elementor-widget-text-editor p {
  margin: 0 0 10px !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}

.anpcb-imp .imp-grid { gap: 18px; }
.anpcb-imp .imp-panel { padding: 16px; }
.anpcb-imp .imp-group { margin-top: 12px; }
.anpcb-imp .imp-label { margin-bottom: 6px; font-size: 10.5px; letter-spacing: .07em; }
.anpcb-imp .imp-label-row { margin-bottom: 6px; }
.anpcb-imp .imp-mini { font-size: 10px; }
.anpcb-imp .imp-row2 { gap: 10px; margin-top: 12px; }
.anpcb-imp .imp-modes { gap: 6px; }
.anpcb-imp .imp-mode { padding: 7px 9px; border-radius: 6px; }
.anpcb-imp .imp-mode-name { font-size: 12.5px; }
.anpcb-imp .imp-mode-sub { font-size: 10px; }

.anpcb-imp .imp-select,
.anpcb-imp .imp-inputwrap input {
  height: 36px;
  padding: 0 10px;
  font-size: 13.5px;
}

.anpcb-imp .imp-select {
  background-position: calc(100% - 16px) 16px, calc(100% - 11px) 16px;
  font-size: 12.5px;
}

.anpcb-imp .imp-inputwrap input { padding-right: 38px; }
.anpcb-imp .imp-inputwrap em { right: 10px; font-size: 10.5px; }
.anpcb-imp .imp-geometry { gap: 10px; margin-top: 12px; }
.anpcb-imp .imp-field-label { margin-bottom: 4px; font-size: 11px; }
.anpcb-imp .imp-field small { margin-top: 3px; font-size: 10px; }
.anpcb-imp .imp-chips { gap: 5px; margin-top: 6px; }
.anpcb-imp .imp-chips button { padding: 4px 7px; font-size: 10.5px; }
.anpcb-imp .imp-switch { min-height: 32px; gap: 8px; }
.anpcb-imp .imp-switch b { font-size: 12px; }
.anpcb-imp .imp-switch > span { width: 34px; height: 20px; }
.anpcb-imp .imp-switch > span::after { width: 14px; height: 14px; }
.anpcb-imp .imp-switch input:checked + span::after { transform: translateX(14px); }
.anpcb-imp .imp-form-note { margin-top: 12px; padding-top: 10px; font-size: 10px; }

.anpcb-imp .imp-result-top { gap: 8px; }
.anpcb-imp .imp-status { padding: 4px 8px; font-size: 10px; }
.anpcb-imp .imp-badge { font-size: 10px; }
.anpcb-imp .imp-diagram { margin-top: 10px; }
.anpcb-imp .imp-result-label { margin: 12px 0 2px; font-size: 10.5px; }
.anpcb-imp .imp-big { font-size: 42px; }
.anpcb-imp .imp-big small { font-size: 17px; }
.anpcb-imp .imp-result-note { margin-top: 6px; font-size: 11.5px; }
.anpcb-imp .imp-metrics { margin-top: 12px; }
.anpcb-imp .imp-metrics > div { padding: 7px 10px; }
.anpcb-imp .imp-metrics span { font-size: 9.5px; }
.anpcb-imp .imp-metrics b { margin-top: 2px; font-size: 13px; }
.anpcb-imp .imp-warnings { margin-top: 10px; gap: 4px; }
.anpcb-imp .imp-warn { padding: 5px 8px; font-size: 10.5px; }
.anpcb-imp .imp-solve { margin-top: 12px; padding-top: 12px; }
.anpcb-imp .imp-solve-head h3 { font-size: 13.5px; }
.anpcb-imp .imp-target { margin-top: 8px; }
.anpcb-imp .imp-target input { height: 34px; }
.anpcb-imp .imp-solve-actions { margin-top: 6px; gap: 6px; }
.anpcb-imp .imp-btn { padding: 7px 10px; font-size: 11.5px; }
.anpcb-imp .imp-solve-out { margin-top: 8px; min-height: 40px; padding: 8px 10px; font-size: 11.5px; }
.anpcb-imp .imp-disclaimer { margin-top: 12px; font-size: 10.5px; line-height: 1.55; }
.anpcb-imp .imp-source { margin-top: 4px; font-size: 9.5px; }

/* Material picker */

.imp-material { margin-top: 12px; }
.imp-chips--materials button { white-space: nowrap; }
.imp-chips--materials button.is-active {
  border-color: var(--imp-blue);
  background: #fff;
  color: var(--imp-blue);
  font-weight: 700;
}
.imp-material-note {
  margin: 6px 0 0;
  font-size: 10.5px;
  line-height: 1.4;
  color: #6b7f96;
}

/* Collapsible helpers */

.imp-fold { margin-top: 6px; }
.imp-fold summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: #3b6da1;
}
.imp-fold summary::-webkit-details-marker { display: none; }
.imp-fold summary::after { content: "+"; font-size: 13px; font-weight: 400; line-height: 1; }
.imp-fold[open] summary::after { content: "–"; }
.imp-fold .imp-help { margin-top: 4px; }
.imp-mask-fold .imp-mask-fields { margin-top: 8px; }

.imp-more-body {
  max-height: 220px;
  margin-top: 8px;
  padding: 10px;
  overflow: auto;
  border: 1px solid var(--imp-line);
  border-radius: 8px;
  background: #fbfdff;
}
.imp-more-group { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.imp-more-g {
  flex: 0 0 100%;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a9bb0;
}
.imp-more-body button {
  appearance: none;
  padding: 4px 7px;
  border: 1px solid var(--imp-line);
  border-radius: 4px;
  background: #fff;
  font-family: inherit;
  font-size: 10.5px;
  line-height: 1.3;
  color: #3a4e66;
  text-align: left;
  cursor: pointer;
}
.imp-more-body button em { font-style: normal; font-size: 9.5px; color: #8a9bb0; }
.imp-more-body button:hover { border-color: var(--imp-blue); }
.imp-more-note { margin: 6px 0 0; font-size: 9.5px; line-height: 1.5; color: #93a4b7; }

/* Related reading */

.imp-links {
  margin: 14px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: #5c6d82;
}
.imp-links-h {
  margin-right: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #2a4767;
}
.imp-links a { color: #3b6da1; font-weight: 600; text-decoration: none; }
.imp-links a:hover { text-decoration: underline; }
.imp-links-sep { margin: 0 7px; color: #a9b9c9; }

@media (max-width: 1024px) {
  .page-id-263 .anpcb-imp-hero-v2 { padding: 16px 24px !important; }
}

@media (max-width: 767px) {
  .page-id-263 .anpcb-imp-hero-v2 { padding: 14px 20px 172px !important; }
  .page-id-263 .anpcb-imp-hero-v2 .elementor-heading-title { font-size: 32px; }
  .page-id-263 .anpcb-imp-hero-v2 .anpcb-hub-hero-sub { font-size: 14.5px !important; }
  .page-id-263 .anpcb-imp-calc-slot { padding-top: 16px !important; padding-bottom: 20px !important; }
}

/* ==========================================================================
   Typography pass: every small-text tier up one step; height recovered from
   padding and group gaps so the module does not grow.
   ========================================================================== */

.anpcb-imp .imp-grid { gap: 16px; }
.anpcb-imp .imp-panel { padding: 14px; }
.anpcb-imp .imp-label { margin-bottom: 5px; font-size: 11.5px; letter-spacing: .06em; }
.anpcb-imp .imp-label-row { margin-bottom: 5px; }
.anpcb-imp .imp-mini { font-size: 11px; }
.anpcb-imp .imp-help { font-size: 11.5px; }

.anpcb-imp .imp-group { margin-top: 10px; }
.anpcb-imp .imp-modes { gap: 5px; }
.anpcb-imp .imp-mode { padding: 6px 8px; }
.anpcb-imp .imp-mode-name { font-size: 13.5px; }
.anpcb-imp .imp-mode-sub { font-size: 11px; }

.anpcb-imp .imp-row2 { gap: 8px; margin-top: 10px; }
.anpcb-imp .imp-seg { padding: 2px; }
.anpcb-imp .imp-seg span { padding: 6px 4px; font-size: 12.5px; }

.anpcb-imp .imp-select,
.anpcb-imp .imp-inputwrap input { height: 34px; padding: 0 9px; font-size: 14px; }
.anpcb-imp .imp-select { font-size: 13px; background-position: calc(100% - 16px) 15px, calc(100% - 11px) 15px; }
.anpcb-imp .imp-inputwrap input { padding-right: 36px; }
.anpcb-imp .imp-inputwrap em { right: 9px; font-size: 11px; }

.anpcb-imp .imp-geometry { gap: 8px; margin-top: 10px; }
.anpcb-imp .imp-field-label { margin-bottom: 3px; font-size: 11.5px; }
.anpcb-imp .imp-field small { margin-top: 2px; font-size: 11px; }

.anpcb-imp .imp-chips { gap: 4px; margin-top: 5px; }
.anpcb-imp .imp-chips button { padding: 3px 6px; font-size: 11.5px; }
.anpcb-imp .imp-material-note { margin-top: 5px; font-size: 11.5px; }

.anpcb-imp .imp-switch { min-height: 30px; }
.anpcb-imp .imp-switch b { font-size: 13px; }
.anpcb-imp .imp-fold summary { font-size: 12px; }
.anpcb-imp .imp-form-note { margin-top: 10px; padding-top: 8px; font-size: 11px; }

.anpcb-imp .imp-status { padding: 3px 7px; font-size: 11px; }
.anpcb-imp .imp-badge { font-size: 11px; }
.anpcb-imp .imp-diagram { margin-top: 8px; }
.anpcb-imp .imp-result-label { margin: 10px 0 2px; font-size: 11.5px; }
.anpcb-imp .imp-big { font-size: 42px; }
.anpcb-imp .imp-big small { font-size: 18px; }
.anpcb-imp .imp-result-note { margin-top: 5px; font-size: 12.5px; }
.anpcb-imp .imp-metrics { margin-top: 10px; }
.anpcb-imp .imp-metrics > div { padding: 6px 9px; }
.anpcb-imp .imp-metrics span { font-size: 10.5px; }
.anpcb-imp .imp-metrics b { font-size: 14px; }
.anpcb-imp .imp-warnings { margin-top: 8px; }
.anpcb-imp .imp-warn { padding: 4px 7px; font-size: 11.5px; }
.anpcb-imp .imp-solve { margin-top: 10px; padding-top: 10px; }
.anpcb-imp .imp-solve-head h3 { font-size: 14.5px; }
.anpcb-imp .imp-target { margin-top: 6px; }
.anpcb-imp .imp-target input { height: 34px; font-size: 14px; }
.anpcb-imp .imp-solve-actions { margin-top: 5px; }
.anpcb-imp .imp-btn { padding: 6px 10px; font-size: 12.5px; }
.anpcb-imp .imp-solve-out { margin-top: 6px; min-height: 36px; padding: 7px 9px; font-size: 12.5px; }
.anpcb-imp .imp-disclaimer { margin-top: 10px; font-size: 11.5px; }
.anpcb-imp .imp-source { margin-top: 4px; font-size: 10.5px; }

.anpcb-imp .imp-more-g { font-size: 10.5px; }
.anpcb-imp .imp-more-body button { padding: 3px 6px; font-size: 11.5px; }
.anpcb-imp .imp-more-body button em { font-size: 10.5px; }
.anpcb-imp .imp-more-note { font-size: 10.5px; }
.anpcb-imp .imp-links { margin-top: 12px; font-size: 12.5px; }
.anpcb-imp .imp-links-h { font-size: 11px; }

@media (max-width: 767px) {
  .anpcb-imp .imp-select,
  .anpcb-imp .imp-inputwrap input { font-size: 16px; height: 38px; }
  .anpcb-imp .imp-target input { height: 38px; font-size: 16px; }
}

/* Hero: light band with the controlled-impedance illustration on the right.
   No dark overlay and no light-on-dark text any more. */
.page-id-263 .anpcb-imp-hero-v2::before {
  opacity: 0 !important;
}

.page-id-263 .anpcb-imp-hero-v2 .elementor-widget-text-editor,
.page-id-263 .anpcb-imp-hero-v2 .elementor-widget-text-editor p,
.page-id-263 .anpcb-imp-hero-v2 .anpcb-hub-hero-sub,
.page-id-263 .anpcb-imp-hero-v2 .anpcb-hub-hero-sub p {
  color: #33475C !important;
  text-shadow: none;
}

.page-id-263 .anpcb-imp-hero-v2 .anpcb-hub-crumb,
.page-id-263 .anpcb-imp-hero-v2 .anpcb-hub-crumb nav,
.page-id-263 .anpcb-imp-hero-v2 .anpcb-hub-crumb a,
.page-id-263 .anpcb-imp-hero-v2 .anpcb-hub-crumb-sep {
  color: #7C93AC !important;
}

.page-id-263 .anpcb-imp-hero-v2 .elementor-heading-title {
  color: #0F4C81 !important;
  text-shadow: none;
}

/* Tool-level copyright line, below the calculator card */
p.anpcb-imp-legal {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: #7b8ea4;
  overflow-wrap: anywhere;
}

p.anpcb-imp-legal a {
  color: #5f7a96;
  text-decoration: underline;
}

@media (max-width: 767px) {
  p.anpcb-imp-legal { margin-top: 12px; font-size: 10.5px; }
}

/* Desktop layout: give the result card more vertical breathing so it ends close
   to the input column. Scoped to the full layout; compact embeds and mobile keep
   the compact stack (no fixed heights). */
@media (min-width: 1025px) {
  .anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-results { padding: 30px; }
  .anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-diagram { margin-top: 16px; }
  .anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-result-label { margin-top: 14px; }
  .anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-metrics { margin-top: 14px; }
  .anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-warnings { margin-top: 12px; }
  .anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-solve { margin-top: 14px; padding-top: 12px; }
}

/* Explanatory copy: match the stackup page's readable fine print. Scoped to the
   full tool so compact embeds keep their dense layout. */
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-help,
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-form-note,
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-disclaimer,
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-source {
  font-size: 14px;
  line-height: 1.7;
  color: #6b7f96;
}

.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-help { margin-top: 8px; }
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-form-note { margin-top: 12px; padding-top: 10px; }
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-disclaimer { margin-top: 14px; }
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-source { margin-top: 6px; }

/* Inline metadata follows its label on the same line. */
.anpcb-imp .imp-meta {
  margin-left: 8px;
  display: inline-block;
  width: 101.93px;
  height: 17px;
  background-image: var(--ref-asset);
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 100% 100%;
  vertical-align: -3px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.anpcb-imp .imp-meta--block {
  display: block;
  margin: 0;
  width: 101.93px;
  height: 18px;
  background-position: 0 -1.3px;
  background-size: 101.93px 17px;
  vertical-align: baseline;
}
.anpcb-imp .imp-result-top { flex-wrap: wrap; }
.anpcb-imp .imp-result-top > .imp-meta { align-self: flex-start; margin-top: 2.2px; }
@media (max-width: 768px) {
  .anpcb-imp .imp-meta { display: none; }
}
.anpcb-imp .imp-wm {
  font-family: Arimo, Arial, Helvetica, sans-serif;
}

/* Compact embeds: the note sits on whitespace the compact grid already
   owns, so the panel height stays pixel-identical to the earlier build. */
.anpcb-imp .imp-grid--compact .imp-label .imp-meta,
.anpcb-imp .imp-grid--compact .imp-result-top > .imp-meta { line-height: 0; }
.anpcb-imp .imp-grid--compact .imp-inputwrap > .imp-meta--block {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
}

@media (max-width: 520px) {
  .anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-help,
  .anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-form-note,
  .anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-disclaimer,
  .anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-source {
    font-size: 13.5px;
    line-height: 1.7;
  }
}

/* ==========================================================================
   Batch 4 — control and annotation type scale.
   The page is zoomed 1.1x for ≥1200px, so 14px here renders as 15.4px, the
   same optical tier as the site body copy. Scoped to the full tool grid; the
   compact category embed keeps its dense scale. Watermark rules are untouched.
   ========================================================================== */

/* Primary form labels: body-copy tier. */
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-label,
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-field-label {
  font-size: 14px;
  line-height: 1.35;
}
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-label {
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-label-row { margin-bottom: 6px; gap: 10px; }
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-field-label { margin-bottom: 4px; }
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-target label { font-size: 14px; }

/* Explanatory copy: body-copy tier. */
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-help,
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-form-note,
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-disclaimer,
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-source,
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-result-note,
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-material-note,
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-warn,
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-solve-out {
  font-size: 14px;
  line-height: 1.65;
}
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-field small { font-size: 13.5px; line-height: 1.45; }
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-mini { font-size: 13px; }
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-links { font-size: 13.5px; }
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-links-h { font-size: 12.5px; }
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-fold summary { font-size: 13.5px; }
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-more-g { font-size: 12.5px; }
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-more-note { font-size: 13px; }

/* Micro labels that sit above values. */
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-result-label { font-size: 12.5px; letter-spacing: .06em; }
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-metrics span { font-size: 12px; letter-spacing: .05em; }
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-solve-head span { font-size: 12.5px; }
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-status { font-size: 12px; padding: 4px 9px; }
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-badge { font-size: 12.5px; }

/* Values. */
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-solve-head h3 { font-size: 15.5px; }
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-metrics b { font-size: 16px; }
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-big { font-size: 48px; }
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-big small { font-size: 20px; }
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-mode-name { font-size: 14.5px; }
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-mode-sub { font-size: 12.5px; }
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-mode { padding: 9px 10px; }

/* Fields: 16px avoids the iOS focus zoom. */
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-select,
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-inputwrap input {
  height: 36px;
  font-size: 16px;
}
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-select {
  background-position: calc(100% - 17px) 16px, calc(100% - 12px) 16px;
}
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-inputwrap em { font-size: 12.5px; }
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-target input { height: 36px; font-size: 16px; }
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-mask-fields .imp-inputwrap input { height: 36px; }

/* Buttons and chips: 15px text, 44px hit height where the layout allows. */
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-btn {
  font-size: 15px;
  min-height: 44px;
  padding: 10px 14px;
}
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-btn-small { min-height: 44px; font-size: 14.5px; }
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-chips button {
  font-size: 15px;
  padding: 12px 10px;
  line-height: 1.2;
}
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-chips { gap: 6px; margin-top: 6px; }
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-more-body button { font-size: 14px; padding: 8px 9px; }
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-more-body button em { font-size: 12.5px; }
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-seg span { font-size: 15px; padding: 13px 6px; }
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-switch { min-height: 44px; }
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-switch b { font-size: 14px; }

/* Keep both cards on the same baseline after the type bump. */
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-metrics > div { padding: 9px 11px; }
.anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-metrics { margin-top: 16px; }

@media (max-width: 767px) {
  .anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-select,
  .anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-inputwrap input { height: 40px; font-size: 16px; }
  .anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-target input { height: 40px; }
  .anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-big { font-size: 44px; }
  .anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-big small { font-size: 19px; }
  .anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-btn { flex: 1 1 auto; }
}

/* The input column grew with the larger controls; give the result card the same
   vertical rhythm so both columns still finish within 10px at 1440. */
@media (min-width: 1001px) {
  .anpcb-imp .imp-grid:not(.imp-grid--compact) { align-items: stretch; }
  .anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-controls,
  .anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-results { align-self: stretch; }
  .anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-form-note { margin-top: auto; }
  .anpcb-imp .imp-grid--compact { align-items: stretch; }
  .anpcb-imp .imp-grid--compact .imp-controls,
  .anpcb-imp .imp-grid--compact .imp-results { align-self: stretch; }
  .anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-diagram { margin-top: 16px; }
  .anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-result-label { margin-top: 18px; margin-bottom: 5px; }
  .anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-big { font-size: 54px; }
  .anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-big small { font-size: 21px; }
  .anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-result-note { margin-top: 8px; }
  .anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-metrics { margin-top: 20px; }
  .anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-metrics > div { padding: 13px 12px; }
  .anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-warnings { margin-top: 20px; }
  .anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-solve { margin-top: 18px; padding-top: 16px; }
  .anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-solve-out { min-height: 50px; padding: 14px 11px; }
  .anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-status { padding: 6px 10px; }
}

/* Six line types share one row at desktop widths without changing the type
   scale or the labels; the columns size to their own text and the side padding
   is trimmed so the row stays inside the 633px control panel. */
@media (min-width: 1200px) {
  .anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-modes {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
  }
  .anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-mode {
    flex: 1 1 auto;
    min-width: 0;
    padding: 6px 3px;
    text-align: center;
  }
  .anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-mode-name,
  .anpcb-imp .imp-grid:not(.imp-grid--compact) .imp-mode-sub {
    white-space: nowrap;
  }
}

/* Bottom fine print: tool purpose, then the liability / trademark note. The
   block lives outside the two-column grid so it stays in normal flow and can
   never sit under the sticky result panel. */
.anpcb-imp .imp-tail:not(.imp-tail--compact) .imp-footnote {
  font-size: 13px;
  line-height: 1.8;
  color: #4A5A6A;
}
.anpcb-imp .imp-tail:not(.imp-tail--compact) .imp-footnote.imp-why { margin-top: 18px; }
.anpcb-imp .imp-tail:not(.imp-tail--compact) .imp-footnote.imp-disclaimer { margin-top: 10px; }
.anpcb-imp .imp-tail:not(.imp-tail--compact) .imp-links { font-size: 13.5px; }
.anpcb-imp .imp-tail:not(.imp-tail--compact) .imp-links-h { font-size: 12.5px; }
.anpcb-imp .imp-tail:not(.imp-tail--compact) .imp-source {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: #6b7f96;
}
.anpcb-imp .imp-tail:not(.imp-tail--compact) .imp-footnote.imp-copyright { margin-top: 10px; }
.anpcb-imp .imp-tail--compact .imp-copyright {
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.55;
  color: #7b8ea4;
}
.anpcb-imp .imp-tail .imp-footnote a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========================================================================
   Print / export sheet.
   Reuses the capability-sheet PDF template (anpcb-capability-fr4 v1.0):
   logo + brand block, navy rule, blue eyebrow over a 17pt navy title,
   7.2pt tables with alternating fills, company footer. The sheet is created
   only when the visitor prints, so the live page is never affected.
   ========================================================================== */

.imp-sheet-root { display: none; }

@media print {
  @page { size: A4 portrait; margin: 0; }

  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  /* Only the export sheet reaches paper; every other body child steps aside. */
  body > *:not(.imp-sheet-root) { display: none !important; }

  .imp-sheet-root {
    display: block !important;
    width: 210mm;
    margin: 0;
    padding: 0;
  }

  /* Browsers strip background fills when printing unless told otherwise.
     This keeps the navy band, row tints, notes and the SVG section intact. */
  .imp-sheet,
  .imp-sheet * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  .imp-sheet {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 210mm;
    min-height: 293mm;
    margin: 0;
    padding: 15mm 11.3mm 0;
    background: #fff;
    color: #1b2530;
    font-family: Arimo, Arial, Helvetica, sans-serif;
    font-size: 7.2pt;
    line-height: 1.45;
    text-align: left;
  }

  .imp-sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10mm;
    padding-bottom: 3.4mm;
  }

  .imp-sheet-logo { display: block; width: 28.9mm; height: auto; }
  .imp-sheet-wordmark {
    font-size: 20pt;
    font-weight: 700;
    letter-spacing: -.02em;
    color: #0f3a63;
  }

  .imp-sheet-brand {
    text-align: right;
    font-size: 6.8pt;
    line-height: 1.5;
    color: #5a6875;
  }

  .imp-sheet-brand span { display: block; }

  .imp-sheet-brand b {
    display: block;
    font-size: 8pt;
    font-weight: 700;
    color: #0f3a63;
  }

  .imp-sheet-rule { height: 1.1pt; background: #0f3b63; }

  .imp-sheet-title { padding-top: 5.4mm; }

  .imp-sheet-eyebrow {
    margin: 0 0 1.6mm;
    font-size: 7pt;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #1f6fb2;
  }

  .imp-sheet-title h1 {
    margin: 0;
    font-size: 17pt;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: #0f3a63;
  }

  .imp-sheet-sub { margin: 1.8mm 0 0; font-size: 7.6pt; color: #5a6875; }
  .imp-sheet-meta { margin: 1mm 0 0; font-size: 6.7pt; color: #5a6875; }

  .imp-sheet-main {
    display: grid;
    grid-template-columns: 1.34fr 1fr;
    gap: 5mm;
    align-items: start;
    margin-top: 4.6mm;
  }

  .imp-sheet-figure {
    margin: 0;
    padding: 2.4mm;
    border: .7pt solid #cbd6e0;
    border-radius: 2pt;
    background: #fff;
  }

  .imp-sheet-diagram { min-height: 30mm; }
  .imp-sheet-diagram svg { display: block; width: 86%; height: auto; margin: 0 auto; }

  .imp-sheet-nodraw {
    margin: 0;
    padding: 8mm 2mm;
    font-size: 6.8pt;
    color: #5a6875;
    text-align: center;
  }

  .imp-sheet-figure figcaption {
    margin-top: 1.8mm;
    padding-top: 1.5mm;
    border-top: .35pt solid #dde5ec;
    font-size: 6.4pt;
    line-height: 1.45;
    color: #5a6875;
  }

  .imp-sheet-band {
    padding: 3mm 3.2mm 2.8mm;
    background: #0f3b63;
    border-radius: 2pt 2pt 0 0;
    color: #fff;
  }

  .imp-sheet-band-label {
    margin: 0;
    font-size: 6.6pt;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #a9c6e2;
  }

  .imp-sheet-big {
    margin-top: 1.6mm;
    font-size: 27pt;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.01em;
  }

  .imp-sheet-big small {
    margin-left: 1.2mm;
    font-size: 11pt;
    font-weight: 400;
    color: #cfe0f0;
  }

  .imp-sheet-band-note {
    margin: 1.8mm 0 0;
    font-size: 6.9pt;
    line-height: 1.4;
    color: #d7e4f1;
  }

  .imp-sheet-metrics {
    width: 100%;
    border-collapse: collapse;
    border: .35pt solid #dde5ec;
    border-top: 0;
  }

  .imp-sheet-metrics td {
    width: 50%;
    padding: 2mm 2.2mm;
    border: .35pt solid #dde5ec;
    vertical-align: top;
  }

  .imp-sheet-metrics span {
    display: block;
    font-size: 6.2pt;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #5a6875;
  }

  .imp-sheet-metrics b {
    display: block;
    margin-top: .6mm;
    font-size: 9pt;
    color: #0f3a63;
  }

  .imp-sheet-level {
    display: flex;
    align-items: center;
    gap: 1.6mm;
    margin: 2mm 0 0;
    font-size: 6.8pt;
    color: #5a6875;
  }

  .imp-sheet-dot {
    width: 1.8mm;
    height: 1.8mm;
    border-radius: 50%;
    background: #1f6fb2;
  }

  .imp-sheet-dot.is-edge { background: #c05621; }
  .imp-sheet-dot.is-out { background: #b42318; }

  .imp-sheet-sec {
    margin-top: 3.8mm;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .imp-sheet-h2 {
    margin: 0 0 1.6mm;
    padding-bottom: 1.2mm;
    border-bottom: .35pt solid #dde5ec;
    font-size: 8.2pt;
    font-weight: 700;
    color: #0f3a63;
  }

  .imp-sheet-table {
    width: 100%;
    border-collapse: collapse;
    border: .7pt solid #cbd6e0;
  }

  .imp-sheet-table th,
  .imp-sheet-table td {
    padding: 1.4mm 2.4mm;
    border-bottom: .35pt solid #dde5ec;
    font-size: 7.2pt;
    line-height: 1.4;
    text-align: left;
    vertical-align: top;
  }

  .imp-sheet-table th { width: 40%; font-weight: 700; color: #1b2530; }
  .imp-sheet-table td { color: #1b2530; }
  .imp-sheet-table tr.is-alt { background: #f4f7fa; }
  .imp-sheet-table tr:last-child th,
  .imp-sheet-table tr:last-child td { border-bottom: 0; }

  .imp-sheet-note {
    margin: 0 0 1.4mm;
    padding: 1.8mm 2.4mm;
    border-left: 2pt solid #1f6fb2;
    background: #f1f6fc;
    font-size: 6.9pt;
    line-height: 1.5;
    color: #33475c;
  }

  .imp-sheet-note.is-edge { border-left-color: #c05621; background: #fdf6ec; color: #7a4a1e; }
  .imp-sheet-note.is-out { border-left-color: #b42318; background: #fdf2f2; color: #8f2a22; }
  .imp-sheet-note:last-child { margin-bottom: 0; }

  .imp-sheet-disclaimer {
    margin: 4mm 0 0;
    font-size: 6.2pt;
    line-height: 1.5;
    color: #5a6875;
  }

  .imp-sheet-foot {
    margin-top: auto;
    padding: 3mm 0 8mm;
    border-top: .7pt solid #cbd6e0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 4mm;
    font-size: 7.2pt;
    color: #5a6875;
  }
}
