/* Tap module page: only what sits inside this page's own visuals (the plant-to-tap diagram, the step drawings)
   and a few layout helpers for its own sections. Tokens only. */

/* ---- the last metre: plant, network, tap ---- */
.flm { display: grid; gap: var(--s-4); }
.flm .tab { padding-inline: var(--s-3); }
.flm__win { overflow: hidden; background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.flm__state[hidden] { display: none; }
.flm__svg { display: block; width: 100%; height: auto; padding: var(--s-5); }
.flm__svg text { font: 400 13px/1 var(--font-text); fill: var(--ink); }
.flm__bar { display: flex; align-items: center; gap: var(--s-3); height: 44px; padding-inline: var(--s-4); border-bottom: 1px solid var(--u-line); background: var(--u-fill); }
.flm__crumb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-muted); }
.flm__crumb i { font-style: normal; padding-inline: 2px; }
.flm__crumb b { font-weight: 500; color: var(--u-ink); }
.flm__chip { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--u-ink); }
.flm__chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.flm__chip--off::before { background: var(--alert); }

/* ---- the three step drawings (pinned chapters share the home's frame rules in site.css) ---- */
.fls__svg { display: block; width: 100%; height: auto; padding: var(--s-4); }
.fls__svg text { font: 400 13px/1 var(--font-text); fill: var(--ink); }
.capv__chip--ok { color: var(--accent); }
.fls__gauge { height: 14px; margin-top: var(--s-4); border-radius: 7px; background: var(--u-fill-3); overflow: hidden; }
.fls__gauge i { display: block; height: 100%; border-radius: 7px; background: var(--accent); }
.fls__msg { margin: var(--s-3) var(--s-4) var(--s-4); padding: var(--s-3) var(--s-4); border: 1px solid var(--u-line-2); border-radius: var(--u-r2); background: var(--u-fill); color: var(--u-ink); font-size: 13px; line-height: 20px; }
.fls__ends { display: flex; justify-content: space-between; margin: var(--s-2) 0 0; font-size: 12px; color: var(--u-muted); }
[data-moment="pinned-chapters"] .capv__chart .capv__axis { margin-bottom: 0; }

/* ---- sections ---- */
/* what it changes: on a desktop the head and the two lists are the left column and the photograph the right one
   (.chg__a dissolves into the grid); on a phone it is two groups, the head with the photograph, then the lists */
.chg__a { display: contents; }
.chg__head { grid-column: 1 / span 6; margin-bottom: 0; }
.chg__photo { grid-column: 7 / -1; grid-row: 1 / span 2; align-self: stretch; height: auto; min-height: 320px; }
.chg__cols { grid-column: 1 / span 6; grid-row: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); align-content: start; }
.steps__link { margin-top: var(--s-5); }
.chg__col { display: grid; gap: var(--s-4); align-content: start; }
.chg__col > h3 { margin: 0; font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
@media (min-width: 1024px) {
  #weak .rows > li { padding-block: var(--s-5); }
  #weak .rows > li:first-child { padding-top: 0; }
  #weak .flm__svg { padding: var(--s-6) var(--s-5); }
}
#where .tile__media { --tile-ratio: 1 / 1; }
#where .tile:nth-child(1) .tile__media img { object-position: 50% 60%; }

/* tablet (640 to 1023): what grows past one screen is two screens, never in between */
@media (min-width: 640px) and (max-width: 1023px) {
  #where { --h: 2; }
  #weak .rows li:nth-child(n+2) { display: none; }
  #weak .flm { max-width: 560px; }
}
@media (max-width: 1023px) {
  .chg__a { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); align-content: start; }
  .chg__head, .chg__photo, .chg__cols { grid-column: 1 / -1; grid-row: auto; }
  .chg__photo { aspect-ratio: 4 / 3; min-height: 0; align-self: start; width: 100%; }
  .chg__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 640px) and (max-width: 1023px) { .chg__photo { aspect-ratio: 3 / 1; } .chg__photo .frame__img { object-position: 50% 45%; } }
@media (max-width: 639px) {
  #where { --hm: 2; }
  #where .grid > .tile { grid-column: 1 / -1; }
  #where .tile__media { --tile-ratio: 5 / 4; }
  .hero--product .hero__stage:has(> img:not(.is-cutout)) { aspect-ratio: 5 / 4; }
  .chg__a { gap: var(--s-5); }
  .chg__photo { aspect-ratio: 4 / 5; }
  .chg__col:first-child .rows > li:nth-child(3) { display: none; }
  .chg__cols { grid-template-columns: minmax(0, 1fr); }
  .flm__svg { padding: var(--s-4) var(--s-3); }
  .flm__svg text { font-size: 22px; }
  .fls__svg text { font-size: 17px; }
  .flm__chip--on { display: none; }
  .flm__bar .ui-dots { display: none; }
  .fls__msg { display: none; }
}
