/* Shoemaker Emergency Lighting — the TigerTough page.
   The Switch Panel world, unchanged: gunmetal grounds, glass over a real
   photograph, rockers that latch. What is new here is material: every color
   choice on this page is a photograph of the actual fabric, and the floor
   liner section stands on the liner itself. */

/* ---------- hero: the panel sits left so the seat reads on the right ---------- */
.tt-hero {
  min-height: min(92svh, 880px);
  place-items: center start;
  padding-inline: max(var(--gut), calc((100% - 1220px) / 2));
}
.tt-hero .hero-media img { object-position: 74% 40%; }
/* No darkening where the glass sits: the backdrop filter does the contrast job, and a
   vignette under it turned the panel into a slab that kept 10% of the photograph's local
   contrast (finish review). This only clears the header band and lands the foot on ink. */
.tt-hero .hero-media::after {
  background:
    linear-gradient(180deg, rgba(14,16,19,0.72) 0%, rgba(14,16,19,0) 17%, rgba(14,16,19,0) 72%, var(--ink) 100%),
    linear-gradient(270deg, rgba(14,16,19,0.5) 0%, rgba(14,16,19,0) 22%);
}
@media (max-width: 860px) {
  .tt-hero { place-items: center; }
}
.tt-plate { padding-block: 0.35rem 0.8rem; }
.tt-plate img { width: auto; height: 36px; border-radius: 0; }
@media (max-width: 560px) { .tt-plate img { height: 32px; } }

/* ---------- which cover: a switchboard legend, each row a lamp and a line ---------- */
.tt-choose {
  display: grid;
  gap: clamp(1.4rem, 3.4vw, 3rem);
  align-items: center;
}
@media (min-width: 960px) { .tt-choose { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

.tt-pick {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.09);
  border-radius: var(--r);
  overflow: hidden;
}
.tt-pick a {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.95rem;
  min-height: 64px;
  padding: 0.9rem 1.15rem;
  background: var(--ink-2);
  color: #D6DCE4;
  text-decoration: none;
  transition: background var(--detent);
}
/* the indicator: the line's own lamp color as a small dot, with no halo. A halo is
   reserved for a thrown rocker's lamp. */
.tt-pick a::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lamp);
  opacity: 0.85;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.8);
}
.tt-pick b {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 700;
  font-stretch: 105%;
  color: #fff;
  white-space: nowrap;
  transition: transform var(--detent);
}
@media (hover: hover) and (pointer: fine) {
  .tt-pick a:hover { background: #1B2127; }
  .tt-pick a:hover b { transform: translateX(3px); }
}
@media (max-width: 520px) {
  .tt-pick a { grid-template-columns: 8px minmax(0, 1fr); row-gap: 0.25rem; }
  .tt-pick b { grid-column: 2; }
}

/* ---------- a fabric line: the photograph held while you read ---------- */
.tt-line-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
@media (min-width: 960px) {
  .tt-line-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .tt-line-grid.tt-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .tt-flip > .tt-shot { order: 2; }
  .tt-shot--stick { position: sticky; top: calc(var(--safe-t) + 96px); }
  .tt-shot--stick img { aspect-ratio: 4 / 5; }
}
.tt-shot img {
  width: 100%;
  border-radius: var(--r-lg);
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.9);
}
@media (max-width: 959px) {
  .tt-shot--stick img { aspect-ratio: 4 / 3; }
}
.tt-shot figcaption { margin-top: 0.65rem; }

/* Three fabrics in one run: a seam between them, so one ends before the next begins. */
.tt-line + .tt-line > .wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: clamp(2.2rem, 5vw, 3.6rem);
}

/* body copy beside a photograph keeps a reading measure: 56ch of a "0" is about 74 characters of prose here */
.tt-copy > p:not(.lede) { max-width: 56ch; }

.tt-h { margin-top: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 0.75rem; }
.tt-copy > .tt-h:first-child { margin-top: 0; }

.tt-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  max-width: 64ch;
  color: #D6DCE4;
}
.tt-list li { position: relative; padding-left: 1.55rem; }
/* a rivet for a feature, a drawn check for a pro, a rule for a con: one stroke weight */
.tt-list li::before {
  content: '';
  position: absolute;
  left: 0.3rem;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 1.5px;
  background: var(--paper-low);
  transform: rotate(45deg);
}
.tt-list--pro li::before {
  left: 0.2rem;
  top: 0.3em;
  width: 6px;
  height: 11px;
  border-radius: 0;
  background: none;
  border: solid var(--paper);
  border-width: 0 1.7px 1.7px 0;
}
.tt-list--con li::before {
  left: 0.12rem;
  top: 0.74em;
  width: 11px;
  height: 0;
  border-radius: 0;
  background: none;
  border-top: 1.7px solid var(--paper-low);
  transform: none;
}
.tt-list--con { color: var(--paper-dim); }

.tt-pc { display: grid; gap: 0 clamp(1.4rem, 3vw, 2.4rem); }
@media (min-width: 700px) { .tt-pc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* the colors are the fabric itself, photographed, not a flat fill */
.tt-swatches {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 0.9rem;
}
.tt-swatches li {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.5rem;
  width: 78px;
  text-align: center;
}
.tt-swatches img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 8px 16px -8px rgba(0, 0, 0, 0.9);
}
.tt-swatches span { font-size: 0.86rem; line-height: 1.25; color: var(--paper-dim); }

.tt-rail { margin-top: clamp(1.6rem, 3vw, 2.2rem); max-width: 560px; }
.tt-size { color: var(--paper-low); font-weight: 500; }

/* ---------- ShieldTech's lab result: a recessed meter, log scale ---------- */
.tt-lab {
  margin-top: clamp(1.4rem, 3vw, 1.9rem);
  padding: 1.15rem 1.25rem 1.2rem;
  border-radius: var(--r);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.95), inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  max-width: 640px;
}
.tt-lab .tt-h { margin: 0 0 0.25rem; }
.tt-meter { display: grid; gap: 0.95rem; margin-top: 1.1rem; }
.tt-meter > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 1rem;
  align-items: baseline;
  --bar: var(--paper-dim);
}
.tt-meter dt { font-size: 0.92rem; color: var(--paper-dim); }
.tt-meter dd {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 700;
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;
  color: #fff;
  white-space: nowrap;
}
.tt-meter i {
  grid-column: 1 / -1;
  position: relative;
  display: block;
  height: 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.tt-meter i::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--bar);
  transform-origin: left center;
  transform: scaleX(var(--v));
  transition: transform 1100ms var(--ease-out-strong);
}
.tt-meter .is-bad { --bar: var(--red); }
.tt-meter .is-good { --bar: #DCE6F2; }
.tt-meter > div:nth-child(2) i::after { transition-delay: 160ms; }
.tt-meter > div:nth-child(3) i::after { transition-delay: 320ms; }
/* The bars fill as the meter comes into view. Without JS they are simply full. */
.js .tt-lab:not(.in) .tt-meter i::after { transform: scaleX(0); }
@media (prefers-reduced-motion: reduce) { .tt-meter i::after { transition: none; } }
.tt-note { margin-top: 0.95rem; color: var(--paper-low); }

/* ---------- facts: dt/dd blocks under a hairline, never cards ---------- */
.tt-details {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
@media (min-width: 960px) {
  .tt-details { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .tt-details > .tt-shot { position: sticky; top: calc(var(--safe-t) + 96px); }
}
@media (max-width: 959px) { .tt-details > .tt-shot img { aspect-ratio: 16 / 10; object-position: 50% 40%; } }

.tt-facts {
  display: grid;
  gap: 0 clamp(1.4rem, 3vw, 2.4rem);
  margin-top: clamp(1.4rem, 3vw, 2rem);
}
@media (min-width: 700px) { .tt-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .tt-facts--three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tt-facts.tt-facts--one { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
.tt-facts > div { border-top: 1px solid rgba(255, 255, 255, 0.11); padding: 1rem 0 1.15rem; }
.tt-facts dt {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 700;
  font-stretch: 105%;
  font-size: 1.05rem;
  line-height: 1.25;
  color: #fff;
}
.tt-facts dd { margin-top: 0.35rem; color: var(--paper-dim); font-size: 0.95rem; max-width: 60ch; }

/* ---------- your department ---------- */
.tt-dept { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 960px) { .tt-dept { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.tt-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; margin-top: clamp(1.2rem, 3vw, 1.8rem); max-width: 560px; }
.tt-pair img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r-lg); }

/* ---------- floor liners: the section stands on the liner ---------- */
/* The section opens on TigerTough's own close-ups of the liner at native resolution:
   heel pads, logo plate and micro grid. Their orange stays inside their picture. */
.tt-band { margin-top: clamp(1.4rem, 3vw, 2rem); }
.tt-band img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.9);
}
@media (max-width: 700px) {
  /* a phone shows the heel pads and logo plate, not a sliver of the whole strip */
  .tt-band img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 18% 40%; }
}

/* ---------- side-by-sides ---------- */
.tt-utv { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 960px) { .tt-utv { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.tt-equip {
  width: 100%;
  max-width: 380px;
  margin-top: clamp(1.2rem, 3vw, 1.8rem);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
}

/* ---------- who uses them: a sentence, not a set of filter chips ---------- */
.tt-tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; color: #D6DCE4; max-width: 60ch; }
/* the dot trails its word, so a wrapped line never opens on one */
.tt-tags li:not(:last-child)::after { content: '·'; margin-inline: 0.55rem; color: var(--paper-low); }

/* ---------- what we need ---------- */
.tt-order { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 960px) { .tt-order { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

.credit { margin-top: clamp(2rem, 4vw, 2.8rem); max-width: 68ch; }

/* The owner's jobs that used this line, under its copy. */
.tt-installs { margin-top: clamp(1.8rem, 3.4vw, 2.4rem); }
.tt-installs .bcards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
