/* hallmark:floor v1 — pestIX Floor fixes (t88, route A).
   Contrast, focus, motion, states, overflow — accessibility and operability.
   Consumes tokens from pestix-tokens.css (light) / pestix-dark.css v2 (dark).
   Rollback: remove <link> from nginx sub_filter.
   Stamp: px-hm 2026-10-27 floor-a */

/* ---------- 26a: visible focus everywhere ---------- */
:focus-visible {
  outline: 2px solid var(--px-ring) !important;
  outline-offset: 2px;
}

/* ---------- 34: no horizontal page scroll; sticky-safe clip ---------- */
html, body { overflow-x: clip; }
body.mnv-open { overflow-x: clip !important; }
/* map popup: 100vw includes the scrollbar -> sideways overflow (gate 34) */
.pxmap-pop { max-width: calc(100vw - 48px); }

/* ---------- 27: honour reduced motion globally ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 11: identical scale-hovers on map pins -> shadow instead ---------- */
.hover\:scale-110:hover {
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  filter: drop-shadow(0 4px 10px rgba(15, 118, 110, .45));
}

/* ---------- 39a: disabled is more than opacity ---------- */
button:disabled, button[disabled], input:disabled, select:disabled,
textarea:disabled, fieldset:disabled, [aria-disabled="true"] {
  cursor: not-allowed;
}

/* ---------- 50: image grids never blow out on long content ---------- */
.geo-wiz .grid, .geo-wiz [class*="grid"] { grid-template-columns: minmax(0, 1fr); }

/* ---------- 40: contrast fixes for overlay components ---------- */
/* scheme editor save button: #0d9488+#fff = 3.65 -> brand teal 4.9 */
.pxsch-save { background: var(--px-accent); border-color: var(--px-accent); }
.pxsch-save:hover { background: #0c5d56; border-color: #0c5d56; }
/* px2fa status chips: stone-500 on stone-100 = 4.39 -> 6.3 */
.px2-off { color: var(--px-ink-3) !important; }
/* jobs header approval counters (amber/green fills with white text) */
#pxux-bar .b-appr { background: var(--px-amber-ink); }
#pxux-bar .b-done, #pxux2-apbar .b-ok { background: #166534; }
/* week view "create order" chip: teal-600 text on white = 3.65 */
.pxux2-daycreate { color: var(--px-accent); }
/* contractors chips: stone-500 on stone-100 = 4.39 */
.pxce-chip { color: var(--px-ink-3); }
/* what's-new modal kicker: caps+tracking inline style (gate 67) */
[style*="letter-spacing:.08em"] {
  text-transform: none !important;
  letter-spacing: normal !important;
  font-size: 12.5px !important;
}
/* caps labels in enhancement components (gate 67) */
.mnv-group, .geo-org-dd-label, .px-group, .pxr-tbl th {
  text-transform: none;
  letter-spacing: normal;
}
/* contract wizard chips keep pill shape; sidebar section labels step down */
.geo-org-dd-label, .px-group { font-size: 12px; }

/* ---------- 41: dark surfaces that set no text colour ---------- */
html.dark .geo-wo-appr, html.dark .geo-womenu, html.dark .geo-wk-prep { color: var(--px-ink); }
html.dark .pxmg-hrow, html.dark .px-rep-card { color: var(--px-ink); }
html.dark .px-rep-bar { color: var(--px-ink-2); }
.dark .px2-card, .dark .px2-codes { color: var(--px-ink); }
html.dark aside button[aria-label="Свернуть панель"],
html.dark aside button[aria-label="Развернуть панель"] { color: var(--px-ink-2); }
html.dark .px-pill button.on { background: var(--px-accent); color: var(--px-white); }

/* ---------- 40: login form fields ---------- */
/* field edge 1.26:1 -> stone-500 tone 4.0:1; hint/link raised via token remaps */
form.rounded-xl input, form.rounded-xl select, form.rounded-xl textarea {
  border-color: #78716c;
}

/* ---------- F3: display headings balance ---------- */
h1, h2 { text-wrap: balance; }
