/* =========================================================
   MONO — Case study (museum app)
   Reuses the PACER poster chrome (pacer.css) for all page
   structure. This file only adds the MONO product UI: a
   monochrome, photography-led museum interface shown inside
   the shared device frames, plus a couple of layout tweaks.
   ========================================================= */

:root {
  --m-ink:   #14171C;   /* near-black — text + primary action */
  --m-soft:  #6B6F78;   /* secondary ink */
  --m-mute:  #9A9DA4;   /* metadata */
  --m-line:  #ECECEE;   /* hairlines */
  --m-card:  #F5F5F6;   /* filled chips / soft cards */
  --m-img:   #E3E4E7;   /* photo placeholder tone */
}

/* Real hi-fi screens: keep every phone frame ONE consistent size,
   even when a screen is long — the shot fills width and crops from the
   top (object-fit: cover, top — inherited from pacer.css). */
.phone { aspect-ratio: 393 / 876; }

/* image-slot inside any frame fills its box */
.phone-screen image-slot,
.laptop-screen image-slot,
.mui-img image-slot { width: 100%; height: 100%; display: block; }

/* ---------- Museum screen shell -------------------------- */
/* Designed at a fixed 182x396 canvas and uniformly scaled to whatever
   device frame it sits in (--pw), so one screen markup stays perfectly
   proportional in the hero (196), wireframes (140) and final (172). */
.mui-screen { position: absolute; top: 0; left: 0; width: 182px; height: 396px; transform-origin: top left; transform: scale(calc((var(--pw, 196) - 14) / 182)); display: flex; flex-direction: column; background: #fff; color: var(--m-ink); font-family: var(--font-mono); }
.mui-top { display: flex; align-items: center; justify-content: space-between; padding: 5px 13px 8px; flex: 0 0 auto; }
.mui-logo { font-family: var(--font-display-alt); font-weight: 900; font-size: 12px; letter-spacing: 0.06em; color: var(--m-ink); }
.mui-top svg { width: 13px; height: 13px; stroke: var(--m-ink); fill: none; stroke-width: 1.8; stroke-linecap: round; }
.mui-ey { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: -0.01em; color: var(--m-ink); }

.mui-body { padding: 0 13px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; overflow: hidden; }
.mui-h { font-family: var(--font-display-alt); font-weight: 800; letter-spacing: -0.015em; color: var(--m-ink); line-height: 1.04; }
.mui-mute { color: var(--m-mute); }
.mui-sect { font-size: 7px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--m-mute); }
.mui-row { display: flex; align-items: center; justify-content: space-between; }

.mui-chips { display: flex; gap: 5px; padding: 0 13px 7px; flex: 0 0 auto; }
.mui-chip { font-size: 6.5px; letter-spacing: 0.04em; padding: 3px 9px; border: 1px solid var(--m-line); border-radius: 20px; color: var(--m-mute); }
.mui-chip.on { background: var(--m-ink); color: #fff; border-color: var(--m-ink); }

.mui-img { background: var(--m-img); position: relative; overflow: hidden; flex: 0 0 auto; }
.mui-card { border: 1px solid var(--m-line); border-radius: 8px; overflow: hidden; }

.mui-btn { background: var(--m-ink); color: #fff; text-align: center; padding: 9px; font-size: 7.5px; letter-spacing: 0.12em; text-transform: uppercase; border-radius: 7px; flex: 0 0 auto; }
.mui-btn.ghost { background: #fff; color: var(--m-ink); border: 1px solid #DBDBDE; }

/* exhibition list item: photo + caption */
.mui-exh { display: flex; flex-direction: column; gap: 5px; }
.mui-exh .cap-t { font-size: 8.5px; font-weight: 700; color: var(--m-ink); }
.mui-exh .cap-d { font-size: 6.5px; color: var(--m-mute); }

/* small event row */
.mui-event { display: flex; align-items: center; gap: 7px; padding: 6px; border: 1px solid var(--m-line); border-radius: 8px; }
.mui-event .thumb { width: 22px; height: 22px; border-radius: 5px; background: var(--m-img); overflow: hidden; flex: 0 0 auto; }

/* bottom tab bar */
.mui-tab { position: absolute; bottom: 0; left: 0; right: 0; height: 33px; background: #fff; border-top: 1px solid var(--m-line); display: flex; align-items: center; justify-content: space-around; padding-bottom: 2px; }
.mui-tab svg { width: 14px; height: 14px; stroke: #B7B9BF; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mui-tab .on svg { stroke: var(--m-ink); }

/* QR */
.mui-qr { width: 100%; aspect-ratio: 1; display: block; }
.mui-qr rect { fill: var(--m-ink); }

/* tag strip used on ticket */
.mui-ticket-meta { display: flex; justify-content: space-between; align-items: flex-end; }
.mui-ticket-meta .k { font-size: 6px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--m-mute); }
.mui-ticket-meta .v { font-size: 8.5px; font-weight: 700; color: var(--m-ink); margin-top: 2px; }

/* dashed perforation line on ticket */
.mui-perf { height: 1px; border-top: 1px dashed #CFCFD2; margin: 2px -13px; position: relative; }

/* ---------- Section tweaks for MONO ---------------------- */
/* 08 demonstrates carries 5 cards → 3 + 2 rhythm */
.demo-cards.five { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1080px) { .demo-cards.five { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .demo-cards.five { grid-template-columns: 1fr; } }

/* IA tree connectors (museum IA) — lines in full accent, 2px, so the mind-map reads */
.ia-tree { margin-top: 20px; }
.ia-root { display: flex; justify-content: center; }
.ia-root .node-pill { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent-soft); background: var(--surface); padding: 7px 18px; }
.ia-branch { height: 22px; position: relative; }
.ia-branch::before { content: ''; position: absolute; left: 50%; top: 0; width: 2px; margin-left: -1px; height: 11px; background: var(--accent); }
.ia-branch::after { content: ''; position: absolute; left: 10%; right: 10%; top: 11px; height: 2px; background: var(--accent); }
.ia-boxes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ia-box { position: relative; border: 1px solid var(--line-soft); background: var(--surface); padding: 12px 11px; display: flex; flex-direction: column; gap: 8px; }
.ia-box::before { content: ''; position: absolute; left: 50%; top: -11px; width: 2px; margin-left: -1px; height: 11px; background: var(--accent); }
.ia-box .nm { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.ia-box .nm svg { width: 13px; height: 13px; stroke: var(--accent); fill: none; stroke-width: 1.5; }
.ia-box .subs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ia-box .subs li { font-family: var(--font-mono); font-size: 10px; line-height: 1.35; color: var(--ink-mute); }
@media (max-width: 1080px) { .ia-boxes { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px)  { .ia-boxes { grid-template-columns: 1fr 1fr; } }

@media (max-width: 1024px) { .ia-box .subs li { font-size: 12px; line-height: 1.45; } }
