/* Styles for the generated colour pages (site/color/) and placeholder size pages (site/placeholder/).
   Builds on convert.css; the placeholder pages also reuse the .tt-btn buttons defined here. */
.mp-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(130px, 100%), 1fr)); gap: 0.8rem; margin: 0.8rem 0 1rem; }
.mp-swatches.mp-tight { grid-template-columns: repeat(auto-fill, minmax(min(105px, 100%), 1fr)); gap: 0.5rem; }
.mp-swatch { display: block; text-decoration: none; color: #333; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 2px 10px rgba(60, 50, 120, 0.12); }
a.mp-swatch:hover { box-shadow: 0 4px 16px rgba(60, 50, 120, 0.25); }
.mp-chip { display: flex; align-items: center; justify-content: center; height: 76px; font: 600 0.9rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.mp-chip-label { display: block; padding: 0.45rem 0.5rem; font-size: 0.85rem; text-align: center; line-height: 1.35; }
.mp-copy { font: inherit; font-size: 0.85rem; padding: 0.25rem 0.7rem; border-radius: 6px; border: 1px solid #c9cde6; background: #fff; color: #4c56c0; cursor: pointer; }
.mp-copy:hover { background: #eef0fd; }
.mp-code { margin: 1rem 0 0; padding: 0.9rem 1rem; background: #2d2f45; color: #f3f4ff; border-radius: 8px; overflow-x: auto; font: 0.92rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.cv-section code { background: #eef0fd; padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.95em; }
.mp-contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin: 0.8rem 0 1rem; }
.mp-contrast div { padding: 1.1rem; border-radius: 10px; text-align: center; line-height: 1.5; border: 1px solid rgba(0, 0, 0, 0.1); }
.mp-contrast strong { font-size: 1.4rem; }
.mp-canvas-wrap { background: repeating-conic-gradient(#eee 0% 25%, #fafafa 0% 50%) 50% / 20px 20px; border-radius: 10px; padding: 0.8rem; text-align: center; }
.mp-canvas-wrap canvas { max-width: 100%; max-height: 420px; height: auto; width: auto; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18); vertical-align: middle; }
.mp-controls { display: flex; flex-wrap: wrap; gap: 0.9rem 1.2rem; align-items: center; margin-top: 1rem; }
.mp-controls label { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: #444; }
.mp-controls input[type="color"] { width: 44px; height: 34px; padding: 0; border: 1px solid #c9cde6; border-radius: 6px; background: #fff; }
.mp-controls input[type="text"] { font: inherit; padding: 0.45rem 0.7rem; border: 2px solid #d9dcef; border-radius: 8px; min-width: 0; width: 100%; }
.mp-grow { flex: 1 1 220px; }
.cv-links.mp-wide { grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); }
.tt-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.9rem 0 0; }
.tt-btn { font: inherit; font-weight: 600; padding: 0.5rem 0.95rem; border-radius: 8px; border: 2px solid #667eea; background: #fff; color: #4c56c0; cursor: pointer; }
.tt-btn:hover { background: #eef0fd; }
.tt-btn.tt-primary { background: #667eea; color: #fff; }
