/* WEB-041: retain approved colours/art; contain intrinsic widths and touch UI. */
.chip, .spot-btn { min-height:44px; box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; }
.compare-toggle, .cmp-remove, .cc-x { width:44px; height:44px; min-width:44px; flex-shrink:0; }
.spot-dot { width:44px; height:44px; }
.spot-dot::before { inset:17px; }
.compare-controls, .compare-modes, .compare-actions, .compare-card, .cmp-body { min-width:0; max-width:100%; }
.compare-actions .chip, .compare-modes .chip { white-space:normal; overflow-wrap:anywhere; }
.compare-cards { grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); }
.cmp-body h3 a { display:inline-flex; align-items:center; min-height:44px; padding:0; margin:0; overflow-wrap:anywhere; }
.cmp-facts { display:block; }
.cmp-facts > div { display:grid; grid-template-columns:minmax(3.5rem,auto) minmax(0,1fr); gap:4px 12px; }
.cmp-facts dd, .cmp-sub { overflow-wrap:anywhere; }
.compare-bar { max-height:45vh; max-height:45dvh; overflow-y:auto; overscroll-behavior:contain; padding-bottom:env(safe-area-inset-bottom,0px); }
body.compare-active { padding-bottom:calc(45vh + env(safe-area-inset-bottom,0px)); }
.compare-bar-inks { flex:1 1 16rem; }
.compare-chip { max-width:100%; min-width:0; box-sizing:border-box; }
.cc-dot { flex-shrink:0; }
.cc-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.compare-bar-actions { flex-wrap:wrap; max-width:100%; }
.card[hidden], .ink-card[hidden], .product-popup[hidden] { display:none; }
.product-popup { position:fixed; box-sizing:border-box; width:min(264px,calc(100vw - 24px)); max-height:calc(100vh - 24px); overflow:auto; }
.product-popup .pp-info { min-width:0; overflow-wrap:anywhere; }
.ink-swatch-col img, .cmp-sw img { max-width:100%; }
.nav-search { min-height:44px; margin-block:-7px; box-sizing:border-box; }
.colorbar, .colorbar.minibar { min-height:44px; }
.colorbar .colorbar-handle, .colorbar.minibar .colorbar-handle { width:44px; height:44px; top:0; left:clamp(22px,var(--hue-pos,50%),calc(100% - 22px)); }
@media (max-width:768px) {
  nav.main.open { max-height:calc(100vh - 88px); max-height:calc(100dvh - 88px); overflow-y:auto; overscroll-behavior:contain; }
  .chromo-vert { min-width:0; max-width:100%; }
  .chromo-vert .bar { display:flex; flex-direction:column; width:44px; max-width:100%; height:100%; }
  .chromo-vert .bar .seg { min-width:0; min-height:44px; box-sizing:border-box; }
  .chromo-vert .bar .seg span { writing-mode:vertical-rl; transform:rotate(180deg); letter-spacing:0; font-size:clamp(.65rem,3.2vw,.775rem); }
  .compare-bar .row { gap:8px; }
}
@media (hover:none) { .sw-wrap:hover .sw-title { opacity:1; } }
@media (prefers-reduced-motion:reduce) { .sw-title, .nav-toggle span { transition:none; } }
/* Lane 2026-11-10: phone ink page. The colour bar runs across under the swatch
   and the info block sits centred below it. Later than the vertical-bar rules
   above and in site.css, same selector weight, so these win. */
@media (max-width:768px) {
  .ink-head-stacked { grid-template-columns:minmax(0,1fr); }
  .chromo-vert { height:auto; }
  .chromo-vert.chromo-empty { display:none; }
  .chromo-vert .bar { flex-direction:row; width:100%; height:46px; }
  .chromo-vert .bar .seg span { writing-mode:horizontal-tb; transform:none; }
  .ink-meta { text-align:center; }
}
