/* GG mm / in unit toggle (2026-11-06, assets/js/gg-units.js). Original GG UI: silver track, navy for the
   chosen unit. Works on the GG /design pages and on Stands & Displays. */
.gg-units { --ggu-navy: #14213d; --ggu-silver: #c9ced6; --ggu-track: #eef0f3; --ggu-ink: #2b313b;
  display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .6rem; margin: .2rem 0 .8rem; }
.gg-units[hidden] { display: none; }
.gg-units__label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ggu-ink); }
.gg-units__seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--ggu-track); border: 1px solid var(--ggu-silver); border-radius: 999px; }
.gg-units__btn { min-width: 3.1rem; min-height: 44px; padding: .2rem .9rem; border: 0; border-radius: 999px; background: transparent;
  color: var(--ggu-ink); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; line-height: 1; }
.gg-units__btn:hover { background: #dfe3e8; }
.gg-units__btn.is-on, .gg-units__btn[aria-pressed="true"] { background: var(--ggu-navy); color: #fff; box-shadow: 0 1px 2px rgba(20,33,61,.35); }
.gg-units__btn:focus-visible { outline: 2px solid var(--ggu-navy); outline-offset: 2px; }
.gg-units__note { flex: 1 1 14rem; margin: 0; font-size: .78rem; color: #5b616b; line-height: 1.35; }
/* in a step heading row (GG /design "2. Make it yours") */
.gg-units-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; }
.gg-units-row > .gg-units { margin: 0; }
/* the inch twin field and the mm it sends */
.gg-u-in[hidden], .gg-u-echo[hidden] { display: none !important; }
.gg-u-echo { font-size: .74rem; color: #5b616b; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sd-field > .gg-u-echo { display: block; margin-top: .2rem; }
/* inch mode: the inch reading goes first in the size badges; the old "(x in)" hint is not needed */
.gg-units-in .gp-inch { display: none; }
.gg-units-in .gp-dims, .gg-units-in .sdc-dims { display: flex; flex-direction: column-reverse; }
.gg-units-in .sdc-dims:empty, .gg-units-in .gp-dims:empty { display: none; }
.gg-units-in .gp-dims span, .gg-units-in .sdc-dims span { font-size: inherit; font-weight: 800; color: inherit; opacity: 1; }
@media (max-width: 480px) {
  .gg-units__note { flex-basis: 100%; }
}
