/*
 * Collection pages (includes/collections.php). Sections, code blocks and the
 * FAQ reuse metallic.css; this adds the hex palette, the "use them" cards and
 * the unofficial notice.
 */
.cl-palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.cl-sw { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 8px 10px; border: 1px solid #EDEDF0; border-radius: 18px; background: #fff; cursor: pointer; text-align: left; font: inherit; color: inherit; transition: transform .12s ease, box-shadow .12s ease; }
.cl-sw:hover, .cl-sw:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .08); background: #fff; color: inherit; }
.cl-sw i { display: block; width: 100%; height: 72px; border-radius: 12px; margin-bottom: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.cl-sw b { font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace; font-size: 13px; font-weight: 600; color: #111; padding: 0 4px; }
.cl-sw span { font-size: 12.5px; color: #6B6B76; padding: 0 4px; }
.cl-sw.is-copied b { color: #0A8F4E; }

.cl-uses { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.cl-use { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid #EDEDF0; border-radius: 18px; background: #fff; text-decoration: none !important; transition: transform .12s ease, box-shadow .12s ease; }
.cl-use:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .08); }
.cl-use b { font-size: 15px; font-weight: 700; color: #111; }
.cl-use span { font-size: 13.5px; line-height: 1.5; color: #55555F; }
.cl-use b span { font-size: inherit; color: inherit; }

.tg-guide .cl-notice { margin-top: 22px !important; font-size: 13px !important; line-height: 1.6; color: #6B6B76 !important; }

html[data-theme="dark"] .cl-sw, html[data-theme="dark"] .cl-use { background: #17171C; border-color: #26262E; }
html[data-theme="dark"] .cl-sw:hover, html[data-theme="dark"] .cl-sw:focus-visible { background: #17171C; }
html[data-theme="dark"] .cl-sw b, html[data-theme="dark"] .cl-use b { color: #EDEDF2; }
html[data-theme="dark"] .cl-sw span, html[data-theme="dark"] .cl-use span { color: #9393A3; }
html[data-theme="dark"] .cl-sw.is-copied b { color: #4ADE80; }
html[data-theme="dark"] .tg-guide .cl-notice { color: #9393A3 !important; }
