/* tg-spec-v4-polish-1126.css
   26 Nov 2026 IST — Mirza (t1173u): fix spec-block alignment, match fact
   icons to the pastel quick-link button row, and correct margins.
   Loaded after /tg-live/tg-spec-v4-pastel-1126.css on shop 50 product
   pages only. Does not edit 1113, 1117, the pastel file, or #tgpd-css.
   Rollback: remove the TG-SPEC-V4-POLISH-1126 link from head.tpl and
   this file; see ~/tg-private-backups/spec-rollout-1126-20261125232006/css-polish-1126/restore.sh
*/

/* ------------------------------------------------------------------
   1. Outer margins
   The host was pulled 22px into the gutters (computed margin
   4px -22px 0), so the block sat at x:-6 / 387px on a 375px screen
   and clipped "Specifications" plus the style code. Reset to 0 so
   the block lines up with the product title and price bar
   (#tpx 8px + .tpx-story 8px = 16px inset, 343px content on 375).
   ------------------------------------------------------------------ */
html body .tpx-spec-v3-host,
html.tgpd .tpx-spec-v3-host,
html.tgpd body .tpx-spec-v3-host,
html body #tpx .tpx-spec-v3-host,
html.tgpd #tpx .tpx-spec-v3-host,
html body .tpx .tpx-spec-v3-host,
html.tgpd .tpx .tpx-spec-v3-host {
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 8px !important;
  margin-bottom: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

html body .tg-spec-v4,
html.tgpd .tpx .tg-spec-v4,
html.tgpd body .tpx .tg-spec-v4,
html body #tpx .tg-spec-v4 {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

html body .tg-spec-v4 .t4-head,
html.tgpd .tpx .tg-spec-v4 .t4-head,
html body .tg-spec-v4 .t4-gal,
html.tgpd .tpx .tg-spec-v4 .t4-gal,
html body .tg-spec-v4 .t4-grid,
html.tgpd .tpx .tg-spec-v4 .t4-grid {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Head: keep title + style code on one row, allow the code to wrap
   rather than overflow once the box is the correct width. */
html body .tg-spec-v4 .t4-head,
html.tgpd .tpx .tg-spec-v4 .t4-head {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  min-width: 0 !important;
}

html body .tg-spec-v4 .t4-head h3,
html.tgpd .tpx .tg-spec-v4 .t4-head h3 {
  margin: 0 !important;
  min-width: 0 !important;
  flex: 0 1 auto !important;
}

html body .tg-spec-v4 .t4-head span,
html.tgpd .tpx .tg-spec-v4 .t4-head span {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  text-align: right !important;
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------
   2. Fact grid: 2 columns on mobile, 4 on desktop; equal row heights;
      consistent gap; no overflow clip.
   ------------------------------------------------------------------ */
html body .tg-spec-v4 .t4-facts,
html.tgpd .tpx .t4-facts,
html.tgpd body .tpx .t4-facts,
html body #tpx .tg-spec-v4 .t4-facts,
html.tgpd #tpx .t4-facts {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: auto !important;
  align-items: stretch !important;
  justify-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

/* ------------------------------------------------------------------
   3. Fact tiles: flex row, icon + text vertically centred, labels
      and values left-aligned in a shrinking text column.
   ------------------------------------------------------------------ */
html body .tg-spec-v4 .t4-facts .t4-f,
html.tgpd .tpx .t4-facts .t4-f,
html.tgpd body .tpx .t4-facts .t4-f,
html body #tpx .tg-spec-v4 .t4-facts .t4-f,
html.tgpd #tpx .t4-facts .t4-f {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  align-self: stretch !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  position: relative !important;
  box-sizing: border-box !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 60px !important;
  padding: 10px 10px 10px 10px !important;
  overflow: hidden !important;
}

html body .tg-spec-v4 .t4-facts .t4-f .t4-fx,
html.tgpd .tpx .t4-facts .t4-f .t4-fx,
html.tgpd body .tpx .t4-facts .t4-f .t4-fx {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body .tg-spec-v4 .t4-facts .t4-f .t4-fl,
html.tgpd .tpx .t4-facts .t4-f .t4-fl,
html body .tg-spec-v4 .t4-facts .t4-f .t4-fv,
html.tgpd .tpx .t4-facts .t4-f .t4-fv {
  display: block !important;
  max-width: 100% !important;
  min-width: 0 !important;
  text-align: left !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  hyphens: manual !important;
}

/* ------------------------------------------------------------------
   4. Fact icons match the button-row language:
      30px pastel circle, 17px centred glyph, contain, no second plate.
      (Button row .t4-ib is 30px; its .t4-ic is 17px / contain.)
      Position in normal flex flow so vertical centring is reliable.
   ------------------------------------------------------------------ */
html body .tg-spec-v4 .t4-facts .t4-f .t4-ic,
html body .tg-spec-v4 .t4-facts .t4-f > .t4-ic,
html.tgpd .tpx .t4-facts .t4-f .t4-ic,
html.tgpd .tpx .t4-facts .t4-f > .t4-ic,
html.tgpd body .tpx .t4-facts .t4-f .t4-ic,
html.tgpd body .tpx .t4-facts .t4-f > .t4-ic,
html body #tpx .tg-spec-v4 .t4-facts .t4-f > .t4-ic,
html.tgpd #tpx .t4-facts .t4-f > .t4-ic,
html body.tgpd .tpx .t4-facts .t4-f > .t4-ic {
  position: static !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  transform: none !important;
  width: 30px !important;
  height: 30px !important;
  flex: 0 0 30px !important;
  align-self: center !important;
  border-radius: 50% !important;
  background-size: 17px 17px !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  box-sizing: border-box !important;
  display: block !important;
}

/* Keep the single-circle fix: never show the PDP-skin ::before plate. */
html body .tg-spec-v4 .t4-facts .t4-f::before,
html.tgpd .tpx .t4-facts .t4-f::before,
html.tgpd body .tpx .t4-facts .t4-f::before,
html body #tpx .tg-spec-v4 .t4-facts .t4-f::before {
  content: none !important;
  display: none !important;
}

/* Desktop: 4 columns, a touch more gap, icons bump to the same
   34px / 19px size 1113 uses for the button-row circles. */
@media (min-width: 768px) {
  html body .tg-spec-v4 .t4-facts,
  html.tgpd .tpx .t4-facts,
  html.tgpd body .tpx .t4-facts,
  html body #tpx .tg-spec-v4 .t4-facts,
  html.tgpd #tpx .t4-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
  }

  html body .tg-spec-v4 .t4-facts .t4-f,
  html.tgpd .tpx .t4-facts .t4-f,
  html.tgpd body .tpx .t4-facts .t4-f,
  html body #tpx .tg-spec-v4 .t4-facts .t4-f,
  html.tgpd #tpx .t4-facts .t4-f {
    padding: 12px !important;
    gap: 10px !important;
  }

  /* Same selector list as the mobile 30px rule, so these beat it at 768+. */
  html body .tg-spec-v4 .t4-facts .t4-f .t4-ic,
  html body .tg-spec-v4 .t4-facts .t4-f > .t4-ic,
  html.tgpd .tpx .t4-facts .t4-f .t4-ic,
  html.tgpd .tpx .t4-facts .t4-f > .t4-ic,
  html.tgpd body .tpx .t4-facts .t4-f .t4-ic,
  html.tgpd body .tpx .t4-facts .t4-f > .t4-ic,
  html body #tpx .tg-spec-v4 .t4-facts .t4-f > .t4-ic,
  html.tgpd #tpx .t4-facts .t4-f > .t4-ic,
  html body.tgpd .tpx .t4-facts .t4-f > .t4-ic {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
    background-size: 19px 19px !important;
  }
}
