/*
 * "Shades of …" pages and the Color shades hub (includes/shades.php). Loaded
 * after landing.css; library cards keep their own styles.
 */
.tg-shades .sh-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.tg-shades .sh-jump a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid #E6E6EC; border-radius: 999px; background: #fff; color: #222; font-size: 13px; font-weight: 600; text-decoration: none; }
.tg-shades .sh-jump a:hover { border-color: #111; }
.tg-shades .sh-jump span { color: #8A8A96; font-weight: 500; }
.tg-shades .sh-hint { margin: 4px 0 20px; font-size: 13px; color: #6E6E78; }

.tg-shades .sh-group { margin: 0 0 34px; scroll-margin-top: 110px; }
.tg-shades .sh-group h2, .tg-shades .sh-section h2 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.02em; margin: 0 0 14px; }
.tg-shades .sh-group h2 span { font-size: 15px; font-weight: 600; color: #8A8A96; margin-left: 6px; }
.tg-shades .sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.tg-shades .sh-card { display: flex; flex-direction: column; padding: 0; margin: 0; border: 1px solid #EDEDF2; border-radius: 18px; background: #fff; text-align: left; overflow: hidden; cursor: pointer; transition: transform .12s, box-shadow .12s; scroll-margin-top: 110px; font: inherit; color: inherit; }
.tg-shades .sh-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(17, 17, 30, .08); }
.tg-shades .sh-card:target { outline: 3px solid #7B5CFF; outline-offset: 2px; }
.tg-shades .sh-sw { position: relative; display: block; height: 96px; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .06); }
.tg-shades .sh-sw em { position: absolute; left: 10px; bottom: 8px; font: 600 11.5px/1 'SF Mono', 'Fira Code', ui-monospace, monospace; font-style: normal; opacity: 0; transition: opacity .12s; }
.tg-shades .sh-card:hover .sh-sw em, .tg-shades .sh-card:focus-visible .sh-sw em { opacity: 1; }
.tg-shades .sh-ink-dark { color: rgba(0, 0, 0, .72); }
.tg-shades .sh-ink-light { color: rgba(255, 255, 255, .9); }
.tg-shades .sh-meta { display: grid; gap: 3px; padding: 10px 12px 12px; }
.tg-shades .sh-meta b { font-size: 14.5px; font-weight: 700; color: #111; }
.tg-shades .sh-meta small { font: 500 12px/1.3 'SF Mono', 'Fira Code', ui-monospace, monospace; color: #6E6E78; }
.tg-shades .sh-meta small:first-of-type::before { content: ''; }

.tg-shades .sh-section { margin: 10px 0 40px; scroll-margin-top: 110px; }
.tg-shades .sh-sub { margin: -6px 0 16px; color: #6E6E78; font-size: 14px; }
.tg-shades .sh-palettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.tg-shades .sh-pal { border: 1px solid #EDEDF2; border-radius: 18px; overflow: hidden; background: #fff; }
.tg-shades .sh-pal-strip { display: flex; height: 92px; }
.tg-shades .sh-pal-strip button { flex: 1; position: relative; padding: 0; margin: 0; border: 0; border-radius: 0; cursor: pointer; transition: flex .15s; }
.tg-shades .sh-pal-strip button:hover { flex: 1.6; }
.tg-shades .sh-pal-strip em { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font: 600 10.5px/1 'SF Mono', 'Fira Code', ui-monospace, monospace; font-style: normal; }
.tg-shades .sh-pal-ft { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; }
.tg-shades .sh-pal-ft b { font-size: 14px; }
.tg-shades .sh-copy { padding: 6px 12px; margin: 0; border: 1px solid #E2E2E8; border-radius: 999px; background: #fff; color: #222; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tg-shades .sh-copy:hover { border-color: #111; }

.tg-shades .sh-grads { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 26px; }
.tg-shades .sh-grad { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid #EDEDF2; border-radius: 18px; background: #fff; }
.tg-shades .sh-grad > span { width: 76px; height: 56px; flex-shrink: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.tg-shades .sh-grad > div { flex: 1; display: grid; gap: 2px; min-width: 0; }
.tg-shades .sh-grad b { font-size: 14px; }
.tg-shades .sh-grad small { font-size: 12px; color: #6E6E78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-shades .sh-lib-hd { font-size: 18px; margin: 6px 0 14px; }
.tg-shades .sh-more { margin: 14px 0 0; } .tg-shades .sh-more a, .tg-shades .sh-tools a { color: #4B3CC9; font-weight: 600; }

.tg-shades .sh-faq details { border-bottom: 1px solid #EDEDF2; padding: 14px 2px; }
.tg-shades .sh-faq summary { cursor: pointer; font-weight: 700; font-size: 16px; }
.tg-shades .sh-faq p { margin: 10px 0 0; color: #333; line-height: 1.65; max-width: 760px; }
.tg-shades .sh-faq code, .tg-shades .sh-tools code { padding: 1px 6px; border-radius: 6px; background: #F4F4F7; font-size: .9em; }

.tg-shades .sh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tg-shades .sh-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border: 1px solid #E6E6EC; border-radius: 999px; background: #fff; color: #222; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.tg-shades .sh-chips a:hover { border-color: #111; }
.tg-shades .sh-chips i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.tg-shades .sh-tools { margin-top: 16px; font-size: 14px; color: #55555F; }

.tg-shades .sh-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 40px; }
.tg-shades .sh-hub-card { display: grid; gap: 4px; padding: 10px 10px 14px; border: 1px solid #EDEDF2; border-radius: 20px; background: #fff; color: #111; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.tg-shades .sh-hub-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(17, 17, 30, .08); }
.tg-shades .sh-hub-strip { display: flex; height: 80px; border-radius: 14px; overflow: hidden; margin-bottom: 8px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.tg-shades .sh-hub-strip i { flex: 1; }
.tg-shades .sh-hub-card b { font-size: 16px; padding: 0 4px; } .tg-shades .sh-hub-card small { color: #6E6E78; padding: 0 4px; }

.tg-shades .sh-toast { position: fixed; left: 50%; bottom: 24px; z-index: 9999; transform: translate(-50%, 20px); padding: 10px 18px; border-radius: 999px; background: #111; color: #fff; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.tg-shades .sh-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.ga-shades-link { margin: 4px 0 18px; } .ga-shades-link a { color: #4B3CC9; font-weight: 600; }

@media (max-width: 640px) {
	.tg-shades .sh-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.tg-shades .sh-sw { height: 80px; }
	.tg-shades .sh-sw em { opacity: 1; }
}

/* Dark mode */
html[data-theme="dark"] .tg-shades .sh-card, html[data-theme="dark"] .tg-shades .sh-pal, html[data-theme="dark"] .tg-shades .sh-grad, html[data-theme="dark"] .tg-shades .sh-hub-card { background: #15151D; border-color: rgba(255, 255, 255, .09); color: #EDEDF2; }
html[data-theme="dark"] .tg-shades .sh-meta b, html[data-theme="dark"] .tg-shades .sh-hub-card b { color: #EDEDF2; }
html[data-theme="dark"] .tg-shades .sh-meta small, html[data-theme="dark"] .tg-shades .sh-grad small, html[data-theme="dark"] .tg-shades .sh-hint, html[data-theme="dark"] .tg-shades .sh-sub, html[data-theme="dark"] .tg-shades .sh-hub-card small { color: #9393A3; }
html[data-theme="dark"] .tg-shades .sh-jump a, html[data-theme="dark"] .tg-shades .sh-chips a, html[data-theme="dark"] .tg-shades .sh-copy { background: #1D1D27; border-color: rgba(255, 255, 255, .16); color: #EDEDF2; }
html[data-theme="dark"] .tg-shades .sh-faq details { border-color: rgba(255, 255, 255, .09); }
html[data-theme="dark"] .tg-shades .sh-faq p, html[data-theme="dark"] .tg-shades .sh-tools { color: #C9C9D4; }
html[data-theme="dark"] .tg-shades .sh-faq code { background: #1D1D27; color: #EDEDF2; }
html[data-theme="dark"] .tg-shades .sh-more a, html[data-theme="dark"] .tg-shades .sh-tools a, html[data-theme="dark"] .ga-shades-link a { color: #C4B5FD; }
html[data-theme="dark"] .tg-shades .sh-toast { background: #EDEDF2; color: #111; }
