/* Water types page: only what sits inside this page's own visuals (the profile window, the signature view,
   the hub panel). Tokens only; nothing here restyles a kit class outside a visual. */

/* ---- the hub panel beside the statement ---- */
.mxh__panel { --p-h: 320px; height: 320px; margin-top: var(--s-7); padding: 0; overflow: hidden; background: var(--surface); }
.mxh__panel .dg { width: 100%; height: 100%; }

/* ---- the water profile: tabs, then a drawn VizO window ---- */
.mx { display: grid; gap: var(--s-5); align-content: start; }
.mx > h2 { margin: 0; }
.mx .tabs { gap: var(--s-2); }
.mx .tab { padding-inline: var(--s-3); }
.mx__panel { display: grid; gap: var(--s-4); align-content: start; }
.mx__panel[hidden] { display: none; }
.mx__panel > .t-lead { margin: 0; min-height: 2lh; }
.mx__win { overflow: hidden; background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.mx__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); }
.mx__crumb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-muted); }
.mx__crumb i { font-style: normal; padding-inline: 2px; }
.mx__crumb b { font-weight: 500; color: var(--u-ink); }
.mx__cols { display: flex; justify-content: space-between; padding: 8px var(--s-4); border-bottom: 1px solid var(--u-line); font-size: 12px; line-height: 16px; color: var(--u-muted); }
.mx__rows { display: grid; }
.mx__rows li { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 40px; padding: 6px var(--s-4); }
.mx__rows li + li { box-shadow: inset 0 1px 0 var(--u-line); }
.mx__rows li > span { min-width: 0; }
.mx__rows .ui-chip { flex: none; }
.mx__notes { display: grid; gap: var(--s-3); margin: 0; padding: var(--s-4); border-top: 1px solid var(--u-line); background: var(--u-fill); }
.mx__notes dt { font-size: 12px; line-height: 16px; color: var(--u-muted); }
.mx__notes dd { margin: 2px 0 0; color: var(--u-ink); }
.other__photo { aspect-ratio: 1 / 1; align-self: start; max-height: calc(100svh - var(--padt) - var(--padb)); }
.other__photo .frame__img { object-position: 50% 40%; }
/* the photograph takes the height of the profile beside it (never fixed), a plain 16:10 band once stacked */
.mx__photo { align-self: stretch; height: auto; min-height: 320px; }
/* from 640 to 1279 what grows past one screen is two screens, never in between */
@media (min-width: 640px) and (max-width: 1023px) { #types { --h: 2; } }
@media (min-width: 640px) and (max-width: 1279px) { .msx__chart { height: 240px; } }

/* ---- the signature view ---- */
.msx { overflow: hidden; margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); --alert-c: var(--alert); }
.msx__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); }
.msx__crumb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-muted); }
.msx__crumb i { font-style: normal; padding-inline: 2px; }
.msx__crumb b { font-weight: 500; color: var(--u-ink); }
.msx__chip { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; color: var(--u-ink); font-weight: 500; }
.msx__chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--alert); }
.msx__axis { margin: 0; padding: var(--s-4) var(--s-5) 0; color: var(--u-muted); font-size: 12px; }
.msx__chart { position: relative; height: 300px; margin: var(--s-3) var(--s-5) var(--s-4); }
.msx__chart svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.msx__band { position: absolute; left: 0; top: 82%; padding-top: 4px; color: var(--u-muted); font-size: 12px; }
.msx__mark { position: absolute; width: 0; height: 0; }
.msx__mark i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--u-bg); border: 2px solid var(--ink); }
.msx__mark b { position: absolute; padding: 0 4px; border-radius: 4px; background: var(--u-bg); font-weight: 400; font-size: 12px; line-height: 16px; color: var(--u-ink); white-space: nowrap; }
.msx__mark--sched b { left: -10px; top: 14px; }
.msx__mark--end b { left: auto; right: -10px; }
.msx__mark--flag i { background: var(--alert); border-color: var(--alert); }
.msx__mark--flag b { right: 14px; top: -8px; font-weight: 500; }
.msx__mark--target i { border-color: var(--accent); background: var(--u-bg); }
.msx__mark--target b { left: 14px; top: -8px; font-weight: 500; }
.msx__days { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; color: var(--u-muted); font-size: 12px; line-height: 16px; }

@media (max-width: 1023px) {
  .mx__photo { align-self: start; aspect-ratio: 100 / 96; min-height: 0; }
  .mxh__panel { --p-h: 320px; height: 320px; }
  .other__photo { aspect-ratio: 16 / 10; }
}
@media (max-width: 639px) {
  .mxh__panel { --p-h: 240px; height: 240px; margin-top: var(--s-5); }
  .mx { gap: var(--s-4); }
  .mx__panel > .t-lead { min-height: 0; }
  .mx__rows li { min-height: 32px; padding-block: 4px; }
  .mx__panel { gap: var(--s-3); }
  .mx__notes { padding: var(--s-3) var(--s-4); gap: var(--s-2); }
  .mx__bar { height: 36px; }
  .msx { margin-top: var(--s-5); }
  .msx__chart { height: 170px; margin-inline: var(--s-4); }
  .msx__axis { padding-inline: var(--s-4); }
  .msx__band { display: none; }
  .msx__chip { display: none; }
  .mx__cols { display: none; }
}

@media (max-width: 359px) { .hero--photo .hero__lead { font-size: 16px; line-height: 1.45; } }
