/* Static reference pages use the existing Looksift theme and desktop shell. */
.reference-page{min-width:960px}
.reference-header{height:var(--header-height);border-bottom:1px solid var(--line);background:var(--paper)}
.reference-header .ls-header{gap:clamp(12px,1.5vw,24px);padding:0 24px}
.reference-header .ls-brand-wordmark{width:clamp(140px,12vw,184px)}
.reference-header .ls-navigation{gap:clamp(10px,1.4vw,20px);display:flex;position:static}
.reference-header .ls-navigation>a{font-size:13px}
.reference-main{width:min(100% - 80px,1280px);margin:0 auto;padding:24px 0 64px}
.reference-breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:12px;color:var(--muted);font-size:13px;margin-bottom:32px}
.reference-breadcrumbs a:hover,.reference-footer a:hover{color:var(--accent);text-decoration:underline}
.reference-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:32px;margin-bottom:32px}
.reference-heading>div:first-child{min-width:0;flex:1}
.reference-kicker{font-size:13px;font-weight:650;color:var(--accent);margin-bottom:12px}
.reference-title-line,.reference-numbered-title{display:flex;align-items:baseline;gap:16px}
.reference-title-id{order:-1;flex-shrink:0;color:var(--muted);font-size:18px;font-weight:650}
.reference-heading h1{font-size:clamp(28px,2.5vw,40px);line-height:1.25;overflow-wrap:anywhere;text-wrap:balance}
.reference-description{color:var(--muted);margin-top:16px;font-size:16px;line-height:1.8;max-width:82ch;white-space:pre-line}
.reference-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;max-width:320px;padding-top:4px}
.reference-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px 16px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);font:600 14px/1.5 var(--sans);text-align:center;text-decoration:none}
.reference-button:hover{background:var(--hover)}
.reference-button.reference-primary{background:var(--action-bg);color:var(--action-ink);border-color:var(--action-bg)}
.reference-button.reference-primary:hover{filter:brightness(1.06)}
.reference-visuals{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:24px;align-items:start}
.reference-image,.reference-diagram{margin:0;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-md);overflow:hidden}
.reference-image>a{position:relative;display:flex;justify-content:center;align-items:center;min-height:280px;background:var(--paper-deep);border-radius:var(--radius-sm);overflow:hidden}
.reference-model-label{position:absolute;top:12px;left:12px;padding:6px 10px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--paper);color:var(--ink);font-size:13px;line-height:1.5;pointer-events:none}
.reference-image img{display:block;width:100%;height:auto;max-height:680px;object-fit:contain}
.reference-image figcaption,.reference-diagram figcaption{font-size:14px;color:var(--muted);padding-top:12px;overflow-wrap:anywhere}
.reference-type-palette .reference-visuals{grid-template-columns:repeat(3,minmax(0,1fr))}
.reference-type-palette .reference-image>a{aspect-ratio:2/3;min-height:0}
.reference-type-palette .reference-image img{width:100%;height:100%;max-height:none;object-fit:contain}
.reference-palette-overlay{position:absolute;inset:0;display:flex;flex-direction:column;pointer-events:none}
.reference-palette-overlay>span{flex:1;display:flex;align-items:center;justify-content:center}
.reference-palette-overlay code{font:600 14px/1.5 var(--sans);padding:4px 8px;border-radius:var(--radius-sm);background:var(--paper);color:var(--ink)}
.reference-type-expression .reference-visuals{grid-template-columns:repeat(3,minmax(0,1fr))}
.reference-type-pose .reference-visuals{max-width:600px}
.reference-diagram svg{display:block;width:100%;height:420px;color:var(--accent)}
.reference-diagram path{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.reference-section{margin-top:40px}
.reference-section>h2{font-size:22px;margin-bottom:20px}
.reference-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px 32px;margin:0;padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-md)}
.reference-facts>div{min-width:0}
.reference-facts dt{font-size:13px;color:var(--muted);margin-bottom:4px}
.reference-facts dd{font-size:15px;line-height:1.7;margin:0;overflow-wrap:anywhere;white-space:pre-line}
.reference-prompt{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-md);margin-top:16px;overflow:hidden}
.reference-prompt-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px 24px;border-bottom:1px solid var(--line)}
.reference-prompt-heading h3{font-size:16px;line-height:1.6;letter-spacing:normal}
.reference-prompt pre{font:15px/1.8 var(--sans);white-space:pre-wrap;overflow-wrap:anywhere;margin:0;padding:24px;max-height:none;tab-size:2}
.reference-related{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;list-style:none;margin:0;padding:0}
.reference-related a{display:flex;flex-direction:column;gap:12px;height:100%;padding:16px;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface);font-size:14px}
.reference-related a:hover{border-color:var(--accent);background:var(--surface-soft)}
.reference-related img{display:block;width:100%;height:180px;object-fit:contain;background:var(--paper-deep);border-radius:var(--radius-sm)}
.reference-footer{display:flex;justify-content:space-between;gap:32px;align-items:center;border-top:1px solid var(--line);padding:24px 40px;color:var(--muted);font-size:14px}
.reference-footer>a:first-child{font-size:20px;font-weight:750;color:var(--ink)}
.reference-copy-status:empty{display:none}
.reference-copy-status{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:var(--z-toast);background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius-sm);box-shadow:var(--shadow-panel);padding:12px 24px;font-size:14px;max-width:640px}
.reference-swatches{display:flex;list-style:none;padding:0;margin:24px 0 0;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius-md)}
.reference-swatches li{flex:1;min-width:0;min-height:112px;display:flex;align-items:flex-end;justify-content:center;padding:12px}
.reference-swatches code{background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius-sm);padding:6px 10px;font:600 14px/1.5 var(--sans)}
