/* Tank size explorer */
.tx { margin: 0 0 0.5rem; }
.tx-layout { display: flex; flex-direction: column; gap: 1.35rem; }
.tx-stage { position: relative; background: #cfe6f8; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.tx-frame { position: relative; width: 100%; aspect-ratio: 1152 / 1664; max-height: 72vh; margin: 0 auto; }
.tx-frame img.tx-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom center; display: block; }
.tx-tank-wrap { position: absolute; left: 0; bottom: 0; transform-origin: bottom center; pointer-events: none; will-change: width, height, left, bottom; transition: width 0.55s ease, height 0.55s ease, left 0.55s ease, bottom 0.55s ease; }
.tx-tank-wrap { overflow: visible; }
.tx-tank-wrap canvas { display: block; width: auto; height: auto; max-width: none; }
.tx-dim { position: absolute; right: calc(100% + 0.15rem); left: auto; top: 6%; bottom: 8%; width: 2.5rem; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #0b1f3a; z-index: 2; }
.tx-tank-wrap.is-flush .tx-dim { right: auto; left: 0.45rem; top: 8%; bottom: 10%; width: auto; }
.tx-dim-line { flex: 1; width: 0; border-left: 1px solid rgba(11,31,58,0.55); position: relative; margin: 0.15rem 0; }
.tx-dim-line::before, .tx-dim-line::after { content: ""; position: absolute; left: -4px; width: 8px; height: 0; border-top: 1px solid rgba(11,31,58,0.55); }
.tx-dim-line::before { top: 0; }
.tx-dim-line::after { bottom: 0; }
.tx-dim-lbl { background: rgba(255,255,255,0.88); font-size: 0.68rem; font-weight: 700; letter-spacing: -0.02em; padding: 0.12rem 0.28rem; border-radius: 4px; white-space: nowrap; box-shadow: 0 1px 3px rgba(15,23,42,0.12); }
.tx-scale-note { position: absolute; left: 0.7rem; bottom: 0.65rem; font-size: 0.68rem; font-weight: 500; color: #334155; background: rgba(255,255,255,0.78); backdrop-filter: blur(6px); padding: 0.28rem 0.5rem; border-radius: 6px; max-width: 46%; line-height: 1.35; }
.tx-specs { position: absolute; right: 0.7rem; top: 0.7rem; background: rgba(11,31,58,0.86); color: #f8fafc; padding: 0.7rem 0.9rem 0.8rem; border-radius: 12px; min-width: 10.5rem; box-shadow: var(--shadow-md); }
.tx-specs strong { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.tx-specs .tx-code { display: block; font-size: 0.72rem; font-weight: 600; color: #93c5fd; margin: 0.15rem 0 0.45rem; }
.tx-specs dl { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.7rem; margin: 0; font-size: 0.75rem; }
.tx-specs dt { color: #94a3b8; font-weight: 500; }
.tx-specs dd { margin: 0; font-weight: 650; text-align: right; }
.tx-controls { display: flex; flex-direction: column; gap: 1.15rem; }
.tx-block h3 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-500); margin: 0 0 0.55rem; }
.tx-sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.45rem; }
.tx-sizes button, .tx-layers button { appearance: none; background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; cursor: pointer; color: var(--blue-900); box-shadow: var(--shadow); transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s; font: inherit; }
.tx-sizes button { display: flex; align-items: baseline; justify-content: center; gap: 0.15rem; padding: 0.72rem 0.12rem; font-size: 0.98rem; font-weight: 800; letter-spacing: -0.03em; }
.tx-sizes button small { font-size: 0.62rem; font-weight: 600; color: var(--gray-500); letter-spacing: 0.02em; }
.tx-sizes button[aria-checked="true"], .tx-layers button[aria-checked="true"] { background: var(--blue-900); color: #fff; border-color: var(--blue-900); box-shadow: 0 6px 16px rgba(11,31,58,0.22); }
.tx-sizes button[aria-checked="true"] small { color: #bfdbfe; }
.tx-sizes button:hover, .tx-layers button:hover { border-color: #93c5fd; background: var(--blue-50); }
.tx-sizes button[aria-checked="true"]:hover, .tx-layers button[aria-checked="true"]:hover { background: var(--blue-800); color: #fff; }
.tx-layers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.45rem; }
.tx-layers button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.12rem; padding: 0.65rem 0.2rem 0.55rem; text-align: center; }
.tx-layers .tx-lnum { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.tx-layers .tx-ltier { font-size: 0.58rem; font-weight: 600; color: var(--gray-500); line-height: 1.2; max-width: 100%; }
.tx-layers button[aria-checked="true"] .tx-ltier { color: #bfdbfe; }
.tx-layer-info { background: var(--blue-50); border: 1px solid #dbeafe; border-radius: 14px; padding: 0.95rem 1.05rem 1.05rem; }
.tx-layer-info .tx-ltitle { font-size: 1.02rem; font-weight: 800; color: var(--blue-900); letter-spacing: -0.02em; margin: 0 0 0.2rem; }
.tx-layer-info .tx-lblurb { font-size: 0.85rem; color: var(--gray-600); margin: 0 0 0.75rem; line-height: 1.45; }
.tx-wall { display: flex; flex-direction: column; gap: 0.35rem; }
.tx-wall-stack { display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; border: 1px solid var(--gray-200); }
.tx-wall-band { display: flex; align-items: center; gap: 0.55rem; padding: 0.42rem 0.65rem; color: #0f172a; font-size: 0.78rem; font-weight: 600; min-height: 2rem; transition: padding 0.35s ease, min-height 0.35s ease; }
.tx-wall-band .tx-wnum { flex-shrink: 0; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: rgba(11,31,58,0.9); color: #fff; font-size: 0.68rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.tx-wall-caps { display: flex; justify-content: space-between; font-size: 0.68rem; font-weight: 600; color: var(--gray-500); }
.tx-more { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; align-items: center; margin-top: 0.15rem; }
@media (min-width: 900px) {
  .tx-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.95fr); gap: 1.75rem; align-items: start; }
  .tx-controls { position: sticky; top: 5.5rem; }
  .tx-sizes { grid-template-columns: repeat(5, 1fr); }
  .tx-frame { max-height: 78vh; }
  .tx-specs strong { font-size: 1.55rem; }
}
@media (max-width: 420px) {
  .tx-layers { grid-template-columns: repeat(5, 1fr); gap: 0.3rem; }
  .tx-layers .tx-ltier { font-size: 0.5rem; }
  .tx-sizes { gap: 0.35rem; }
  .tx-sizes button { font-size: 0.88rem; padding: 0.62rem 0.08rem; }
  .tx-scale-note { max-width: 58%; font-size: 0.62rem; }
  .tx-dim { width: 2.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tx-tank-wrap { transition: none; }
}

/* Person for scale (separate layer so he can step aside for wide tanks) */
.tx-frame img.tx-person { position: absolute; display: block; max-width: none; pointer-events: none; transition: left 0.55s ease; }
.tx-person-shadow { position: absolute; pointer-events: none; border-radius: 50%; background: radial-gradient(ellipse at 45% 50%, rgba(0,0,0,0.32), rgba(0,0,0,0) 70%); transition: left 0.55s ease; }
@media (prefers-reduced-motion: reduce) { .tx-frame img.tx-person, .tx-person-shadow { transition: none; } }

.tx-enquire { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.85rem; }
.tx-enquire .btn { min-height: 44px; }
