/* Redfish slot ruler: signature component */
.slot-ruler { margin-bottom: 1.25rem; padding: 1rem 1.25rem; }
.slot-svg { display: block; width: 100%; height: auto; max-height: 150px; overflow: visible; }
.slot-old { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 4; }
.slot-new { fill: var(--brand); }
.slot-axis { stroke: var(--ink); stroke-width: 1.5; }
.slot-ticks line { stroke: var(--ink); stroke-width: 1.5; }
.slot-ticks text, .slot-txt {
  fill: var(--muted);
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  paint-order: stroke;
  stroke: var(--card, var(--bg, #fff));
  stroke-width: 4px;
  stroke-linejoin: round;
}
.slot-ticks text { text-anchor: middle; }
.slot-txt--new { fill: var(--ink); }
.slot-marker { stroke: var(--ink); stroke-width: 3; transition: transform .2s ease; }
.slot-marker.is-out { stroke: var(--muted); stroke-dasharray: 3 3; }
#slot-verdict.is-keep { color: var(--brand); }
#slot-verdict.is-release { color: var(--ink); }
.tool .field input, .tool .field select { min-width: 0; max-width: 100%; }
@media (max-width: 600px) {
  .slot-svg { max-height: none; }
  .slot-ticks text, .slot-txt { font-size: 24px; stroke-width: 6px; }
}
@media (max-width: 480px) {
  .slot-ruler { padding: .75rem; }
}

/* Prevent horizontal scroll on narrow screens */
html { overflow-x: hidden; max-width: 100%; }
body { overflow-x: clip; max-width: 100%; }
img, svg, video, iframe, table { max-width: 100%; }
h1, h2, h3, p, li, a, td, th, summary { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .tool__panel, .tool__result, .field-row, .field, .data-grid, .check-grid, .band { min-width: 0; max-width: 100%; }
  table { display: block; overflow-x: auto; }
}

/* Affiliate link contrast on tinted box */
.aff-box a { color: #46601d; }
.aff-box a:hover { color: #34481a; }

/* Mobile header: one row, menu button stays on screen */
@media (max-width: 600px) {
  header, .site-header, .site-header__inner, .header, .header__inner, .masthead {
    flex-wrap: nowrap;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .brand, .site-brand, .site-header__brand, .site-title, .logo {
    min-width: 0;
    font-size: .95rem;
    line-height: 1.15;
    flex: 1 1 0;
  }
  .brand span, .site-brand span, .site-header__brand span, .site-title span {
    min-width: 0;
  }
  .menu-toggle, .nav-toggle, .menu-btn, .menu-button, .site-header button, header button {
    flex-shrink: 0;
    margin-right: 0;
  }
}