.tir-wear .wear-intro picture { max-width: 28rem; margin-top: 1.35rem; }
.tir-wear .wear-intro picture img { display: block; width: 100%; aspect-ratio: 2.65; object-fit: cover; object-position: 50% 57%; }
.wf { --wf-accent: #d0f77a; container-type: inline-size; min-width: 0; padding: min(clamp(1.3rem, 3.6vw, 3rem), 7vw); background: #23372c; border-radius: 14px; }
.wf [hidden] { display: none; }
.wf svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wf .wf-symbols { width: 0; height: 0; position: absolute; }
.wf-caption, .wf-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; }
.wf-caption { border-bottom: 1px solid #62735e; padding-bottom: .85rem; }
.wf-caption strong { font-size: 1.08rem; font-weight: 650; }
.wf-caption small { font-size: .83rem; color: #ccdac8; }
.wf-devices { display: grid; grid-template-columns: 3.6rem minmax(2rem, 1fr) 3.6rem; align-items: start; gap: .7rem; margin: clamp(1.5rem, 3vw, 2.7rem) 0 1.2rem; }
.wf-end { display: grid; justify-items: center; gap: .3rem; color: #e1eedd; }
.wf-end span { font-size: .82rem; font-weight: 600; }
.wf .wf-device { width: 3rem; height: 3.45rem; color: var(--wf-accent); stroke-width: 2; }
.wf-track { align-self: start; margin-top: 1.7rem; height: 1px; background: #8e9b84; position: relative; }
.wf-track::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid #cbd9c0; border-right: 1px solid #cbd9c0; transform: rotate(45deg); }
.wf[data-direction="return"] .wf-track::after { right: auto; left: 0; transform: rotate(225deg); }
.wf-track i { position: absolute; top: -3px; left: calc(50% - 5px); border-radius: 2px; background: var(--wf-accent); width: 10px; height: 7px; }
.wf-readings { padding: .4rem 0 1.2rem; overflow-wrap: anywhere; }
.wf-readings [data-reading] + [data-reading] { margin-top: 1rem; }
/* Overlay each reading on the same four rows. Every state contributes its natural
   text height, so resizing, zooming or changing fonts keeps the controls in place. */
.wf[data-enhanced] .wf-readings { display: grid; grid-template-columns: minmax(0, 1fr); }
.wf[data-enhanced] [data-reading] { display: contents; }
.wf[data-enhanced] [data-reading][hidden] { visibility: hidden; pointer-events: none; }
.wf[data-enhanced] [data-reading] > h3 { grid-area: 1 / 1; }
.wf[data-enhanced] [data-reading] > strong { grid-area: 2 / 1; }
.wf[data-enhanced] [data-reading] > .wf-mini { grid-area: 3 / 1; }
.wf[data-enhanced] [data-reading] > p { grid-area: 4 / 1; }
.wf-readings h3 { color: #dbe8d3; font-size: 1rem; font-weight: 550; line-height: 1.3; }
.wf-readings strong { display: block; color: var(--wf-accent); font-size: clamp(2.65rem, 4.5vw, 4.25rem); font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: -.04em; line-height: 1.07; margin-top: .22rem; }
.wf-mini { display: flex; align-items: center; gap: .7rem; min-height: 2rem; margin: .45rem 0 .15rem; color: #cee5c2; font-size: .78rem; font-variant-numeric: tabular-nums; }
.wf-mini .wf-bars { width: 7.25rem; height: 1.8rem; fill: var(--wf-accent); stroke: none; }
.wf-mini .wf-clock { width: 1.8rem; height: 1.8rem; color: var(--wf-accent); }
.wf-night i { width: min(8rem, 38%); height: .65rem; border-radius: 2px; background: linear-gradient(to right, var(--wf-accent) 0 29.167%, #72856c 29.167% 33.333%, var(--wf-accent) 33.333% 75%, #72856c 75% 79.167%, var(--wf-accent) 79.167%); }
.tir-wear .wf-readings p { margin: .35rem 0 0; max-width: 38ch; color: #d8e5d4; font-size: .97rem; }
.wf-controls { padding-top: .9rem; border-top: 1px solid #62735e; }
.wf-choices { flex: 1 1 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; }
.wf button { display: inline-flex; align-items: center; justify-content: center; gap: .32rem; min-height: 44px; font: inherit; font-size: .85rem; font-weight: 600; color: #e5eedf; background: transparent; border: 1px solid #83977b; border-radius: 5px; padding: .5rem .25rem; cursor: pointer; }
.wf button:hover { border-color: var(--wf-accent); }
.wf button:focus-visible { outline: 3px solid var(--wf-accent); outline-offset: 3px; }
.wf button[aria-pressed="true"] { color: #17261c; background: var(--wf-accent); border-color: var(--wf-accent); }
.wf button svg { width: 1rem; height: 1rem; flex: none; }
.wf-update { position: absolute; width: 1px; height: 1px; overflow: hidden; white-space: nowrap; clip-path: inset(50%); }
.wf-disclosure { margin-top: 2rem; border-top: 1px solid #52654f; }
.wf-disclosure summary { cursor: pointer; padding: 1rem 0; color: #dcebd3; font-weight: 600; }
.wf-disclosure summary:focus-visible { outline: 2px solid #d0f77a; outline-offset: 3px; }
.wf-disclosure p { margin: 0; max-width: 70ch; color: #cbdac8; line-height: 1.55; }
@media (max-width: 990px) and (min-width: 741px), (max-width: 470px) {
  .wf-choices button { flex-direction: column; }
}
@media (max-width: 740px) {
  .tir-wear .wear-intro picture { width: 100%; max-width: 28rem; }
  .wf { max-width: 36rem; }
}
@container (max-width: 17rem) {
  .wf-devices { grid-template-columns: minmax(0, 1fr) minmax(1rem, .65fr) minmax(0, 1fr); column-gap: .35rem; }
  .wf .wf-device { width: min(3rem, 100%); height: auto; aspect-ratio: 48 / 55; }
  .wf-end span { max-width: 100%; overflow-wrap: anywhere; text-align: center; }
  .wf-track { margin-top: min(1.7rem, 17cqi); }
  .wf-choices { grid-template-columns: repeat(auto-fit, minmax(min(100%, 3.3rem), 1fr)); }
  .wf-choices button { flex-direction: column; }
}
