/* Phoenix · liquid glass kit (11 Nov 2026)
   Owner, 11 Nov: "not using frosted glass as much, and rather using the liquid glass that Apple has ... create our own
   elements". Used only by the /review/next/ pages until he approves them. Everything is prefixed lq-.

   What makes it liquid rather than frosted:
   - the middle stays clear (a light 2-3px blur, raised saturation), so the picture behind still reads;
   - the edges bend what is behind them (liquid-2026-11-11.js draws an edge-lens map per element; Chromium only,
     other browsers keep the clear glass without the bend);
   - a bright rim and a moving highlight (it follows the pointer on desktop) instead of a flat white tint;
   - glass always sits over colour or a photo, never alone on white, so there is something to bend.

    1 Tokens    2 The glass surface    3 Glass controls    4 Stages (what glass sits on)    5 Type and layout helpers
    6 Story rail    7 Notifications, rows, receipts    8 Motion and fallbacks */

/* ============================================================ 1 Tokens */
:root {
  --lq-radius: 28px;
  --lq-radius-s: 18px;
  --lq-pill: 999px;
  --lq-tint: rgba(255, 255, 255, 0.16);
  --lq-tint-strong: rgba(255, 255, 255, 0.42);
  --lq-rim: rgba(255, 255, 255, 0.85);
  --lq-rim-soft: rgba(255, 255, 255, 0.32);
  --lq-ink: #1d1d1f;
  --lq-ink-2: #515154;
  --lq-shadow: 0 18px 50px -12px rgba(16, 24, 40, 0.22), 0 4px 12px rgba(16, 24, 40, 0.08);
  --lq-blue: #3b4fd8;
  --lq-green: #2f8a3a;
  --lq-wash-a: #dfe6ff;
  --lq-wash-b: #e6f5dc;
  --lq-wash-c: #ffe7dc;
}
[data-theme="dark"] {
  --lq-tint: rgba(40, 40, 46, 0.22);
  --lq-tint-strong: rgba(30, 30, 34, 0.5);
  --lq-rim: rgba(255, 255, 255, 0.4);
  --lq-rim-soft: rgba(255, 255, 255, 0.12);
  --lq-ink: #f5f5f7;
  --lq-ink-2: #b4b4ba;
  --lq-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.3);
  --lq-wash-a: #1c2240;
  --lq-wash-b: #17261a;
  --lq-wash-c: #2c1d17;
}

/* ============================================================ 2 The glass surface */
.lq {
  position: relative;
  isolation: isolate;
  border-radius: var(--lq-radius);
  color: var(--lq-ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.06) 46%, rgba(255, 255, 255, 0.14) 100%),
    var(--lq-tint);
  -webkit-backdrop-filter: blur(3px) saturate(1.9) brightness(1.06);
  backdrop-filter: blur(3px) saturate(1.9) brightness(1.06);
  box-shadow:
    inset 0 1.5px 0 var(--lq-rim),
    inset 0 -1px 0 var(--lq-rim-soft),
    inset 1px 0 0 var(--lq-rim-soft),
    inset -1px 0 0 var(--lq-rim-soft),
    inset 0 -22px 32px -24px rgba(255, 255, 255, 0.55),
    var(--lq-shadow);
}
/* the edge lens: the script sets --lq-filter to url(#lq-lens-N) once the map for this element's size is drawn */
.lq.is-lensed {
  -webkit-backdrop-filter: var(--lq-filter) blur(2px) saturate(1.9) brightness(1.06);
  backdrop-filter: var(--lq-filter) blur(2px) saturate(1.9) brightness(1.06);
}
/* rim light: a thin gradient border, brighter at the top-left and bottom-right, like light caught in a lens edge */
.lq::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.12) 38%, rgba(255, 255, 255, 0.05) 62%, rgba(255, 255, 255, 0.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
  z-index: 1;
}
/* the moving highlight (pointer position from the script; rests at the top-left) */
.lq::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 80% at var(--lq-mx, 18%) var(--lq-my, -10%), rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0) 55%);
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 1;
  transition: background-position 0.2s;
}
.lq > * { position: relative; z-index: 2; }
.lq--strong { background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.3)), var(--lq-tint-strong); }
.lq--dark { --lq-ink: #f5f5f7; --lq-ink-2: #c7c7cc; background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.18)), rgba(20, 20, 24, 0.38); }
.lq--s { border-radius: var(--lq-radius-s); }
.lq--pill { border-radius: var(--lq-pill); }

/* ============================================================ 3 Glass controls */
.lq-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--lq-pill);
  font: 500 16px/1 var(--font-text);
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 55%), var(--lq-blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(0, 0, 0, 0.18), 0 8px 22px -8px rgba(59, 79, 216, 0.7);
  transition: transform 0.25s cubic-bezier(0.3, 1.4, 0.5, 1), box-shadow 0.25s;
}
.lq-btn:hover { transform: scale(1.03); }
.lq-btn:active { transform: scale(0.97); }
.lq-btn:focus-visible { outline: 2px solid var(--lq-blue); outline-offset: 3px; }
.lq-btn .ic { width: 18px; height: 18px; fill: currentColor; }
.lq-btn--glass { color: var(--lq-ink); background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.2)); -webkit-backdrop-filter: blur(4px) saturate(1.8); backdrop-filter: blur(4px) saturate(1.8); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 6px 18px -8px rgba(16, 24, 40, 0.3); }
.lq-link { color: var(--lq-ink); font: 500 16px/1.3 var(--font-text); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.lq-link:hover { color: var(--lq-blue); }
.lq-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--lq-pill); font: 500 13px/1 var(--font-text); }
.lq-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lq-green); box-shadow: 0 0 0 3px rgba(47, 138, 58, 0.18); flex: none; }
.lq-dot--blue { background: var(--lq-blue); box-shadow: 0 0 0 3px rgba(59, 79, 216, 0.18); }
.lq-dot--amber { background: #c97d00; box-shadow: 0 0 0 3px rgba(201, 125, 0, 0.2); }

/* ============================================================ 4 Stages: what the glass sits on */
.lq-stage { position: relative; border-radius: 36px; overflow: hidden; background: var(--grey, #f5f5f7); }
.lq-stage > img.lq-photo { display: block; width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.lq-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.18)); pointer-events: none; }
.lq-stage > .lq-float { position: absolute; z-index: 2; }
/* a soft colour field: three blurred blobs so glass placed on a plain section still has colour to bend */
.lq-field { position: relative; isolation: isolate; overflow-x: clip; }
/* owner, 11 Nov review: no colour washes behind sections ("these gradients in the background ... not looking nice") */
.lq-field::before { display: none; }
.lq-field-off::before {
  content: "";
  position: absolute;
  inset: -10% -5%;
  z-index: -1;
  background:
    radial-gradient(38% 55% at 18% 40%, var(--lq-wash-a), transparent 70%),
    radial-gradient(34% 50% at 55% 70%, var(--lq-wash-b), transparent 70%),
    radial-gradient(30% 48% at 86% 30%, var(--lq-wash-c), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

/* ============================================================ 5 Type and layout helpers */
.lq-wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.lq-hero { padding-block: 56px 72px; display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .lq-hero { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; padding-block: 72px 96px; } }
.lq-crumb { display: flex; gap: 8px; font: 500 14px/1 var(--font-text); color: var(--ink-2, #6e6e73); }
.lq-crumb a { color: inherit; text-decoration: none; }
.lq-crumb a:hover { color: var(--ink, #1d1d1f); }
.lq-h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 4.7vw, 66px); line-height: 0.98; letter-spacing: -0.025em; margin: 18px 0 0; text-wrap: balance; }
.lq-h1 .lq-soft { color: var(--ink-2, #6e6e73); }
.lq-h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 4.2vw, 52px); line-height: 1.02; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.lq-lead { font: 400 19px/1.5 var(--font-text); color: var(--ink-2, #6e6e73); max-width: 30em; margin: 22px 0 0; }
.lq-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 32px; }
.lq-kicker { font: 600 13px/1 var(--font-text); letter-spacing: 0.04em; color: var(--ink-2, #6e6e73); }
.lq-section { padding-block: 88px; }
.lq-section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 44px; }
.lq-num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ============================================================ 6 Story rail: the page's three-part story on one glass rail */
.lq-rail { display: grid; gap: 0; padding: 10px; }
@media (min-width: 900px) { .lq-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lq-stop { position: relative; padding: 28px 28px 30px; display: grid; gap: 10px; align-content: start; }
.lq-stop + .lq-stop { border-top: 1px solid rgba(255, 255, 255, 0.55); }
@media (min-width: 900px) { .lq-stop + .lq-stop { border-top: 0; border-left: 1px solid rgba(255, 255, 255, 0.55); } }
.lq-stop-time { font: 500 13px/1 var(--mono); color: var(--lq-ink-2); display: flex; align-items: center; gap: 8px; }
.lq-stop h3 { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.1; letter-spacing: -0.015em; margin: 6px 0 0; }
.lq-stop p { font: 400 16px/1.5 var(--font-text); color: var(--lq-ink-2); margin: 0; }

/* ============================================================ 7 Notifications, rows, receipts (product moments on glass) */
.lq-note { width: min(360px, 100% - 32px); padding: 14px 16px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.42)); }
.lq-note, .lq-toast { --lq-ink-2: #3a3a3e; }
.lq-note { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 4px 12px; }
.lq-note-icon { grid-row: span 2; width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(160deg, #3ddc6b, #1fa84a); display: grid; place-items: center; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.lq-note-icon svg { width: 20px; height: 20px; fill: currentColor; }
.lq-note-top { display: flex; justify-content: space-between; gap: 8px; font: 600 13px/1.2 var(--font-text); }
.lq-note-top time { font-weight: 400; color: var(--lq-ink-2); }
.lq-note-body { font: 400 14.5px/1.4 var(--font-text); }
.lq-note-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.lq-note-actions span { text-align: center; padding: 9px 0; border-radius: 12px; font: 500 14px/1 var(--font-text); background: rgba(255, 255, 255, 0.5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9); }
.lq-note-actions span:first-child { color: #fff; background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0)), var(--lq-blue); }
.lq-toast { display: none !important; background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.4)); display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; font: 500 14px/1 var(--font-text); }
.lq-rows { display: grid; gap: 2px; padding: 8px; }
.lq-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; font: 400 15px/1.3 var(--font-text); }
.lq-row:nth-child(odd) { background: rgba(255, 255, 255, 0.22); }
.lq-row .lq-src { font: 500 12px/1 var(--font-text); color: var(--lq-ink-2); }
.lq-row .lq-state { font: 500 13px/1 var(--font-text); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.lq-receipt { background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.56)); --lq-ink-2: #3a3a3e; }
.lq-rows { background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.42)); --lq-ink-2: #3a3a3e; }
.lq-receipt { padding: 20px 22px; width: min(340px, 100%); display: grid; gap: 8px; font: 400 14.5px/1.3 var(--font-text); }
.lq-receipt-row { display: flex; justify-content: space-between; gap: 12px; }
.lq-receipt-row .lq-num { font-size: 14px; }
.lq-receipt hr { border: 0; border-top: 1px dashed rgba(29, 29, 31, 0.25); margin: 4px 0; width: 100%; }
.lq-receipt-total { font: 600 18px/1.2 var(--font-text); }

/* ============================================================ 8 Motion and fallbacks */
@media (prefers-reduced-motion: reduce) { .lq-btn, .lq::after { transition: none; } .lq-btn:hover, .lq-btn:active { transform: none; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lq { background: rgba(255, 255, 255, 0.82); }
  .lq--dark { background: rgba(24, 24, 28, 0.86); }
}

/* ============================================================ 9 After the owner's 11 Nov review: plain story columns and a compact notification on a photo */
.lq-story { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
@media (min-width: 900px) { .lq-story { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.lq-story > li { display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 1px solid var(--line, #e3e3e8); }
.lq-story h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.15; letter-spacing: -0.015em; }
.lq-story p { margin: 0; color: var(--ink-2, #6e6e73); font: 400 17px/1.5 var(--font-text); max-width: 30em; }
.lq-story + .ind-prose { margin-top: 48px; }
.lq-on-photo { position: relative; }
.lq-on-photo > .lq-note { position: absolute; z-index: 2; left: 16px; top: 16px; width: min(330px, 100% - 32px); }
.lq-on-photo > .lq-note.is-bottom { top: auto; bottom: 16px; }
.lq-note-file { grid-column: 2; display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9); font: 500 13.5px/1.2 var(--font-text); }
.lq-note-file small { display: block; font-weight: 400; color: var(--lq-ink-2); }
