/* TMT Bar Tags (tmt-tags.html) and its four format pages, in eight sections.
   Loaded after site.css on those pages only: nothing here reaches hole-eyelet-tag.html or any other page. */

/* ---------- 1. banner: the picture alone, nothing written over it ---------- */
.tban__pic { background: #1C1C1C; }
.tban__pic img { width: 100%; max-width: 1600px; height: auto; margin-inline: auto; }
.tban__intro {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(32px, 5vw, 80px);
  align-items: end; padding-block: clamp(36px, 4.5vw, 64px) clamp(44px, 5vw, 72px);
}
.tban h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.6rem, 1.5rem + 3vw, 4.6rem); line-height: 0.98; letter-spacing: -0.012em;
}
.tban__lede { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem); line-height: 1.5; margin-top: 18px; max-width: 34em; }
.tban__act .hero__direct { margin-top: 18px; }

/* ---------- 2. categories: five whole-card links ---------- */
.tcats { padding-top: clamp(16px, 2vw, 24px); }
.tcats__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.tcat {
  display: flex; flex-direction: column; height: 100%;
  background: var(--face); color: var(--ink); text-decoration: none;
  border-radius: 3px; overflow: hidden; box-shadow: 0 1px 2px rgba(18, 17, 15, 0.14), 0 6px 18px rgba(18, 17, 15, 0.08);
  transition: box-shadow 0.2s, transform 0.2s;
}
.tcat:hover { color: var(--ink); box-shadow: 0 2px 4px rgba(18, 17, 15, 0.18), 0 12px 28px rgba(18, 17, 15, 0.14); }
.tcat__img { display: block; aspect-ratio: 1; background: var(--graphite); overflow: hidden; }
/* photos are shown whole, as on Home: a frame of one shape, each photo fitted inside it, never cut */
.tcat__img img { width: 100%; height: 100%; object-fit: contain; }
.tcat__name {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: 1;
  padding: 14px 16px 15px; border-top: 3px solid var(--yellow);
  font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1.1;
}
.tcat__name::after { content: ""; flex: 0 0 auto; width: 0.5em; height: 0.5em; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); }
.tcat:hover .tcat__name { color: var(--teal-deep); }
@media (prefers-reduced-motion: no-preference) { .tcat:hover { transform: translateY(-2px); } }

/* ---------- 3. how each format stays on: one row each, read across ---------- */
.tcmp { border-top: 1.5px solid rgba(245, 244, 240, 0.6); }
.tcmp__head, .tcmp__row {
  display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 3fr) minmax(0, 2.6fr) minmax(0, 3.4fr);
  gap: 12px clamp(18px, 2.4vw, 36px); align-items: start;
}
.tcmp__head { padding: 12px 0; border-bottom: 1px solid rgba(245, 244, 240, 0.2); font-family: var(--display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-soft); }
.tcmp__row { padding: 22px 0 24px; border-bottom: 1px solid rgba(245, 244, 240, 0.2); scroll-margin-top: 16px; }
.tcmp__name { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem); line-height: 1.02; text-transform: uppercase; letter-spacing: 0.01em; }
.tcmp__name a { text-decoration: none; }
.tcmp__name a::after { content: ""; display: inline-block; width: 0.38em; height: 0.38em; margin-left: 0.35em; vertical-align: 0.12em; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); }
.tcmp__name a:hover { text-decoration: underline; }
.tcmp__row p, .tcmp__row li { font-size: 1.02rem; line-height: 1.45; }
.tcmp__k { display: none; }
.tcmp__steps { margin: 0; padding-left: 1.3em; }
.tcmp__steps li + li { margin-top: 4px; }
.tcmp__steps--plain { list-style: none; padding-left: 0; }

/* ---------- 4. features: nine photographs, three by three ---------- */
.tfeats__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); max-width: 820px; }
.tfeats__grid figure { margin: 0; }
.tfeats__grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; background: var(--lifted); }
.tfeats__grid figcaption {
  margin-top: 10px; padding-top: 8px; border-top: 1.5px solid var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 1.2rem; line-height: 1.1; letter-spacing: 0.04em; text-transform: uppercase;
}

/* ---------- 5. smart tags: a photograph over each list ---------- */
.tsmart__img { width: 100%; max-width: 389px; aspect-ratio: 1; object-fit: cover; border-radius: 3px; margin-bottom: 16px; background: var(--face); }

/* ---------- 6. videos, then Shorts: a still until pressed ---------- */
.tvids__wide, .tvids__tall { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(18px, 2.4vw, 32px); }
.tvids__wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tvids__tall { grid-template-columns: repeat(3, minmax(0, 264px)); }
.tvids__sub { margin: clamp(40px, 5vw, 60px) 0 18px; }
.tvid__still, .tvid__frame { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; background: #000; }
.tvid--short .tvid__still, .tvid--short .tvid__frame { aspect-ratio: 9 / 16; }
.tvid__still img { width: 100%; height: 100%; object-fit: cover; }
.tvid--short .tvid__still img { object-fit: contain; }
.tvid__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tvid__play {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px;
  border-radius: 50%; background: var(--yellow); box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}
.tvid__play::after { content: ""; position: absolute; left: 27px; top: 21px; border-style: solid; border-width: 13px 0 13px 20px; border-color: transparent transparent transparent var(--ink); }
.tvid__still:hover .tvid__play { background: var(--yellow-hover); }
.tvid__t { margin: 14px 0 0; font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1.15; }
.tvid__d { margin-left: 6px; font-family: var(--body); font-weight: 500; font-size: 0.95rem; color: var(--on-dark-soft); }
.tvid__c { margin-top: 6px; font-size: 1rem; line-height: 1.45; color: var(--on-dark-soft); max-width: 34em; }

/* ---------- 7. sample checks ---------- */
.tchecks { margin-top: clamp(40px, 5vw, 64px); }
.tchecks .sub-h { margin-bottom: 6px; }
.tchecks > p { color: var(--ink-soft); margin-bottom: 16px; }
.tchecks__list { columns: 2; column-gap: clamp(24px, 4vw, 56px); max-width: 860px; font-size: 1.05rem; }
.tchecks__list li { break-inside: avoid; }
.tchecks .tchecks__note { margin-top: 18px; margin-bottom: 0; }

/* ---------- 8. tonnage: the estimate rule, and the sample request on WhatsApp ---------- */
.tonnage__rule { margin-top: 14px; font-size: 1.25rem; line-height: 1.45; color: var(--on-dark); }
.tsample { margin-top: clamp(36px, 4.5vw, 56px); padding-top: 28px; border-top: 1px solid rgba(245, 244, 240, 0.2); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.sec--steel .tsample__go { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }
.sec--steel .tsample__go:hover { color: var(--ink); background: var(--yellow-hover); border-color: var(--yellow-hover); }
.tsample__who { color: var(--on-dark-soft); font-size: 0.98rem; font-variant-numeric: lining-nums tabular-nums; }

/* ---------- the four format pages: a photograph beside the head ---------- */
.fhead__photo { margin: 0; padding-top: clamp(56px, 6.5vw, 96px); width: 100%; max-width: 480px; }
.fhead__photo img { width: 100%; height: auto; border-radius: 3px; box-shadow: 0 2px 4px rgba(18, 17, 15, 0.16), 0 14px 30px rgba(18, 17, 15, 0.14); }
.fsteps .sub-h { margin-bottom: 12px; }
.fsteps .ruled-list { font-size: 1.08rem; }
.fsteps .ruled-list + .sub-h { margin-top: 32px; }
.fsteps ol.ruled-list { counter-reset: step; }
.fsteps ol.ruled-list li { counter-increment: step; display: grid; grid-template-columns: 2.2em minmax(0, 1fr); }
.fsteps ol.ruled-list li::before { content: counter(step); font-family: var(--display); font-weight: 600; color: var(--teal); }

/* ================= responsive ================= */
@media (max-width: 1099.98px) {
  .tcats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tcmp__head { display: none; }
  .tcmp__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tcmp__name { grid-column: 1 / -1; }
  .tcmp__row > :last-child { grid-column: 1 / -1; }
  .tcmp__k { display: block; margin-bottom: 4px; font-family: var(--display); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-soft); }
  .tcmp__steps { display: flex; flex-wrap: wrap; gap: 4px 24px; }
  .tcmp__steps li + li { margin-top: 0; }
}
@media (max-width: 960px) {
  .tban__intro { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .tban__act .btn--action { margin-top: 4px; }
}
@media (max-width: 760px) {
  .tvids__wide { grid-template-columns: minmax(0, 1fr); }
  .tvids__tall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .tvid--short .tvid__t { font-size: 1.05rem; }
  .tvid--short .tvid__d { display: block; margin: 2px 0 0; font-size: 0.85rem; }
  .tvid--short .tvid__c { font-size: 0.9rem; }
  .tvid--short .tvid__play { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
  .tvid--short .tvid__play::after { left: 19px; top: 14px; border-width: 10px 0 10px 15px; }
  .tchecks__list { columns: 1; }
  .fhead__photo { padding-top: 0; margin-inline: auto; }
  .phead__aside:has(.fhead__photo)::before { display: none; }
  .tsmart__img { max-width: 300px; }
}
@media (max-width: 599.98px) {
  .tcats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tcats__grid li:last-child { grid-column: 1 / -1; }
  .tcats__grid li:last-child .tcat__img { aspect-ratio: 16 / 9; }
  .tcat__name { font-size: 1.12rem; padding: 12px 12px 13px; }
  .tcmp__row { grid-template-columns: minmax(0, 1fr); }
  .tcmp__steps { display: block; }
  .tcmp__steps li + li { margin-top: 4px; }
  .tfeats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tfeats__grid li:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 7px); }
  .tfeats__grid figcaption { font-size: 1.05rem; }
}
@media (max-width: 480px) {
  .tvids__tall { grid-template-columns: repeat(3, 62vw); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .tvids__tall > li { scroll-snap-align: start; }
  .tvid--short .tvid__t { font-size: 1.15rem; }
  .tvid--short .tvid__d { display: inline; margin-left: 6px; }
  .tvid--short .tvid__c { font-size: 0.95rem; }
}
