/* ==================================================================
   AISO MATTER - lenses, temperature explorer, compare, trends, spotlight
   ================================================================== */

/* lens colour interpolation: --c is a registered colour, so it can transition */
@property --c { syntax: '<color>'; inherits: true; initial-value: #5aa2ff; }
.pt-el { transition: transform .9s cubic-bezier(.65, .05, .25, 1), translate .16s cubic-bezier(.2, .8, .2, 1), border-color .16s, box-shadow .16s, opacity .45s, filter .3s, --c .5s cubic-bezier(.4, 0, .2, 1); }
.pt-board.is-live .pt-el { transition: translate .16s, border-color .16s, box-shadow .16s, opacity .45s, --c .5s; }

.pt-title em { display: block; margin-top: 6px; font-size: .42em; font-weight: 400; letter-spacing: 0; }

.pt-modesrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.pt-lenslabel { font: 500 10.5px "IBM Plex Mono", monospace; letter-spacing: 1.6px; text-transform: uppercase; color: var(--pt-faint); }
.pt-lensinfo { flex: 1 1 100%; margin: 0; min-height: 18px; font-size: 13px; color: var(--pt-muted); line-height: 1.5; }

.pt-search-hint { margin: 6px 0 0; min-height: 16px; font: 500 11.5px "IBM Plex Mono", monospace; color: var(--pt-accent); }
.pt-search-try { margin: 4px 0 0; font: 400 11.5px "IBM Plex Mono", monospace; color: var(--pt-faint); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; max-width: 520px; }
.pt-search-try button { border: 1px solid var(--pt-line); background: transparent; color: #c9d1dd; border-radius: 6px; padding: 2px 6px; font: inherit; cursor: pointer; }
.pt-search-try button:hover { border-color: rgba(143, 184, 255, .5); color: #fff; }
.pt-search-try kbd { font: inherit; padding: 1px 5px; border: 1px solid var(--pt-line2); border-radius: 4px; }
.pt-tools { flex-direction: column; align-items: flex-start; }

/* temperature explorer */
.pt-app.mode-phase .pt-temp { display: block; }
.pt-temp { max-width: 980px; padding: 14px 16px; }
.pt-temp-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 8px; }
.pt-temp output { min-width: 0; text-align: left; display: flex; align-items: baseline; gap: 10px; }
.pt-temp output b { font: 500 30px/1 "IBM Plex Mono", monospace; color: #fff; }
.pt-temp output span { font: 400 12px "IBM Plex Mono", monospace; color: var(--pt-muted); }
.pt-temp input[type=range] { width: 100%; accent-color: #39c9d9; }
.pt-temp-presets { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.pt-temp-note { margin: 8px 0 0; font-size: 12px; color: var(--pt-faint); line-height: 1.5; }
.pt-cnt { font: 500 11px "IBM Plex Mono", monospace; color: var(--pt-muted); margin-left: 2px; }
/* phase appearance - not colour alone: liquids get a surface line, gases a dashed, airy outline */
.pt-el[data-phase="l"]::before { top: auto; bottom: 0; height: 32%; opacity: .35; background: linear-gradient(180deg, color-mix(in oklab, var(--c) 70%, transparent), var(--c)); }
.pt-el[data-phase="g"] { border-style: dashed; background: linear-gradient(180deg, color-mix(in oklab, var(--c) 8%, #101521), #0d1119 80%); }
.pt-el[data-phase="g"]::before { opacity: .35; }
.pt-el[data-phase="u"] { border-style: dotted; }

/* colour-independent family codes */
.pt-el .code { position: absolute; right: 7%; bottom: 7%; font: 600 max(7px, 0.5cqi)/1 "IBM Plex Mono", monospace; letter-spacing: .5px; color: color-mix(in oklab, var(--c) 60%, #fff); opacity: 0; transition: opacity .2s; }
.pt-app.show-codes .pt-board:not(.chips) .pt-el .code { opacity: .85; }
.pt-app.show-codes .pt-board:not(.chips) .pt-el .w { opacity: 0; }
.pt-legend .pt-legend-opt { --c: #8fb8ff; border-style: dashed; }
.pt-legend .pt-legend-opt[aria-pressed="true"] { border-style: solid; }

/* zoom bar: only useful on narrow screens */
.pt-zoombar { display: none; align-items: center; gap: 4px; margin: 0 0 8px; }
.pt-zoombar span { font: 400 11px "IBM Plex Mono", monospace; color: var(--pt-faint); margin-left: 6px; }
@media (max-width: 900px) { .pt-zoombar { display: flex; } }

/* explorer additions */
.pt-prose { font-size: 13.5px; line-height: 1.6; color: #c9d1dd; margin: 0 0 8px; }
.pt-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.pt-tag { border: 1px solid var(--pt-line2); background: #0f141d; color: #c9d1dd; border-radius: 99px; padding: 3px 9px; font: 500 11px "IBM Plex Mono", monospace; cursor: pointer; }
.pt-tag:hover { color: #fff; border-color: var(--c); }
.pt-hist-year { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.pt-hist-year b { font: 500 22px "IBM Plex Mono", monospace; color: #fff; }
.pt-hist-year span { font-size: 13px; color: var(--pt-muted); }
.pt-beyond { position: relative; }
.pt-beyond p { font: 400 16px/1.55 "IBM Plex Sans", sans-serif; color: #fff; margin: 0 0 12px; padding-left: 14px; border-left: 2px solid var(--c); }
.pt-est { color: #ffcc80; font-size: .75em; margin-left: 1px; }
.pt-src { margin-top: 12px !important; font-size: 11.5px !important; color: var(--pt-faint) !important; }

/* compare */
.pt-cmp-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.pt-cmpgrid { display: flex; flex-direction: column; gap: 1px; margin-top: 12px; border: 1px solid var(--pt-line); border-radius: 12px; overflow: hidden; background: var(--pt-line); }
.pt-cmprow { display: grid; gap: 1px; }
.pt-cmprow > * { background: #0f141d; padding: 9px 10px; font-size: 13px; color: #e3e8ef; min-width: 0; overflow-wrap: anywhere; }
.pt-cmprow-l { color: var(--pt-muted) !important; font-size: 12px !important; }
.pt-cmprow-l small { color: var(--pt-faint); }
.pt-cmprow.is-head > * { background: #121927; }
.pt-cmphead { display: flex; flex-direction: column; gap: 2px; }
.pt-cmphead b { font: 600 24px/1 "IBM Plex Sans", sans-serif; color: color-mix(in oklab, var(--c) 40%, #fff); }
.pt-cmphead small { font-size: 11px; color: var(--pt-muted); }
.pt-cmpval { display: flex; flex-direction: column; gap: 6px; }
.pt-cmpval b { font: 500 13px "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums; }
.pt-cmpval i { display: block; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--c) calc(var(--f) * 100%), #1a212e 0); }
.pt-cmpval.is-hi b::after { content: " ▲"; color: #ffd166; font-size: 10px; }
.pt-cmpval.is-lo b::after { content: " ▼"; color: #8fb8ff; font-size: 10px; }
.pt-cmpval.is-na { color: var(--pt-faint); font-style: italic; }
.pt-cmpval.is-na small { font-style: normal; font-size: 10.5px; }
.mono { font-family: "IBM Plex Mono", monospace; }

/* trends */
.pt-card-trend { background: rgba(13, 18, 28, .78); }
.pt-card-trend p { font-size: clamp(11px, 0.95cqi, 13.5px); }
.pt-trendarrow { filter: drop-shadow(0 0 6px rgba(255, 209, 102, .5)); }
.pt-trend-ex { flex: 1 1 100%; margin: 4px 0 0; padding: 10px 12px; border-left: 2px solid #ffd166; background: rgba(255, 209, 102, .06); color: #e3e8ef; font-size: 13px; line-height: 1.55; border-radius: 0 8px 8px 0; }
.pt-sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 10px; vertical-align: -1px; }

/* spotlight */
.pt-spot { position: fixed; inset: 0; z-index: 100000; display: none; flex-direction: column; overflow: auto; color: var(--pt-text, #e9edf3);
  background: radial-gradient(ellipse 60% 50% at 30% 30%, color-mix(in oklab, var(--c) 16%, transparent), transparent 70%), radial-gradient(ellipse at 80% 100%, rgba(143, 184, 255, .08), transparent 60%), #070a10;
  font-family: "IBM Plex Sans", "Noto Sans Georgian", sans-serif; }
.pt-spot.is-on { display: flex; animation: pt-spot-in .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes pt-spot-in { from { opacity: 0; } }
html.pt-spot-open { overflow: hidden; }
.pt-spot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 18px clamp(16px, 4vw, 56px); }
.pt-spot-bar > div { display: flex; gap: 6px; flex-wrap: wrap; }
.pt-spot .pt-btn { border: 1px solid rgba(160, 180, 210, .22); background: #121824; color: #c9d1dd; border-radius: 9px; padding: 8px 12px; cursor: pointer; font: 500 13px "IBM Plex Sans", sans-serif; }
.pt-spot .pt-btn-hot { color: #fff; border-color: rgba(143, 184, 255, .5); }
.pt-spot .pt-eyebrow { margin: 0; font: 500 11px "IBM Plex Mono", monospace; letter-spacing: 2.4px; text-transform: uppercase; color: #8c97a8; }
.pt-spot .pt-eyebrow b { color: #8fb8ff; font-weight: 500; }
.pt-spot-body { flex: 1; padding: 0 clamp(16px, 4vw, 56px) 40px; display: flex; flex-direction: column; gap: clamp(16px, 3vh, 36px); }
.pt-spot-hero { display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 3vw, 48px); align-items: center; }
.pt-spot-tile { width: clamp(140px, 16vw, 260px); aspect-ratio: 1 / 1.08; border-radius: 22px; padding: clamp(12px, 1.4vw, 22px); display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid color-mix(in oklab, var(--c) 65%, transparent); background: linear-gradient(180deg, color-mix(in oklab, var(--c) 26%, #151c29), #0d121b 90%); box-shadow: 0 0 120px -30px var(--c), inset 0 1px 0 rgba(255, 255, 255, .08); }
.pt-spot-tile .z { font: 500 clamp(14px, 1.4vw, 22px) "IBM Plex Mono", monospace; color: #8c97a8; }
.pt-spot-tile .sym { font: 600 clamp(70px, 9vw, 150px)/1 "IBM Plex Sans", sans-serif; letter-spacing: -0.05em; color: color-mix(in oklab, var(--c) 35%, #fff); }
.pt-spot-tile .w { font: 400 clamp(12px, 1.1vw, 18px) "IBM Plex Mono", monospace; color: #8c97a8; }
.pt-spot-id h2 { margin: 10px 0 8px !important; font: 300 clamp(40px, 6vw, 92px)/1 "IBM Plex Sans", sans-serif !important; letter-spacing: -1.5px; color: #fff !important; text-transform: none !important; }
.pt-spot-id .pt-cfg { font: 400 clamp(15px, 1.5vw, 22px) "IBM Plex Mono", monospace; color: #c9d4e6; }
.pt-spot-desc { max-width: 760px; margin: 14px 0 0; font-size: clamp(14px, 1.25vw, 19px); line-height: 1.6; color: #b9c3d2; }
.pt-spot-main { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(16px, 2.5vw, 40px); }
.pt-spot-atom { margin: 0; border: 1px solid rgba(160, 180, 210, .12); border-radius: 18px; overflow: hidden; background: radial-gradient(circle at 50% 45%, color-mix(in oklab, var(--c) 10%, #101622), #070a10 72%); }
.pt-spot-atom canvas { display: block; width: 100%; height: clamp(300px, 46vh, 560px); }
.pt-spot-atom figcaption { padding: 9px 14px; font: 400 12px "IBM Plex Mono", monospace; color: #8c97a8; border-top: 1px solid rgba(160, 180, 210, .12); }
.pt-spot-side { display: flex; flex-direction: column; gap: 16px; }
.pt-spot-props { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(160, 180, 210, .12); border: 1px solid rgba(160, 180, 210, .12); border-radius: 14px; overflow: hidden; }
.pt-spot-props div { background: #0c1018; padding: clamp(10px, 1.2vw, 16px); }
.pt-spot-props span { display: block; font: 500 10.5px "IBM Plex Mono", monospace; letter-spacing: 1.3px; text-transform: uppercase; color: #5d6778; margin-bottom: 6px; }
.pt-spot-props b { font: 500 clamp(15px, 1.4vw, 21px) "IBM Plex Mono", monospace; color: #fff; }
.pt-spot-fact span, .pt-spot-rel span { display: block; font: 500 10.5px "IBM Plex Mono", monospace; letter-spacing: 1.6px; text-transform: uppercase; color: #5d6778; margin-bottom: 8px; }
.pt-spot-fact p { margin: 0; padding-left: 14px; border-left: 2px solid var(--c); font-size: clamp(15px, 1.35vw, 20px); line-height: 1.55; color: #fff; }
.pt-spot-rel .pt-minis { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-spot .pt-mini { --c: #888; min-width: 44px; height: 40px; border-radius: 8px; cursor: pointer; border: 1px solid color-mix(in oklab, var(--c) 40%, transparent); background: color-mix(in oklab, var(--c) 12%, #0f141d); color: color-mix(in oklab, var(--c) 45%, #fff); font: 600 16px "IBM Plex Sans", sans-serif; }
.pt-spot .pt-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px; border-radius: 99px; font: 500 12px "IBM Plex Mono", monospace; letter-spacing: .6px; text-transform: uppercase; color: #dfe6f0; background: color-mix(in oklab, var(--c) 16%, transparent); border: 1px solid color-mix(in oklab, var(--c) 40%, transparent); }
.pt-spot .pt-chip i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
@media (max-width: 900px) {
  .pt-spot-hero, .pt-spot-main { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .pt-el { transition-duration: 0s !important; }
  .pt-spot.is-on { animation: none; }
}
.pt-app:not(.has-modes) .pt-lenslabel, .pt-app:not(.has-modes) .pt-lensinfo { display: none; }
.pt-app:not(.has-modes) .pt-modesrow { margin: 0; }

/* fitted phone table: symbols only */
.pt-board.tiny .pt-el .z, .pt-board.tiny .pt-el .nm, .pt-board.tiny .pt-el .w, .pt-board.tiny .pt-el .val, .pt-board.tiny .pt-el .code { opacity: 0; }
.pt-board.tiny .pt-el { padding: 0; border-radius: 4px; }
.pt-board.tiny .pt-el .sym { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-52%); text-align: center; font-size: 10px; margin: 0; }
.pt-board.tiny .pt-insp, .pt-board.tiny .pt-frow-label { display: none; }
.pt-board.tiny .pt-ph { font-size: 6px; }
.pt-board.tiny .pt-ph small { display: none; }
