/* gem-category-directory.css: /shop-by-category/ (templates/category-directory.php,
   inc/gem-category-directory.php). Builds on gem-archive.css, which styles the
   crumbs, gold eyebrow, ink H1 and intro through main[data-gem="archive"]; the
   photo cards here use the same 16px corners, #EBEBED hairline, ink/slate text,
   gold-outline button and chip pills. Loaded on this page only. */

main.gcd .gcd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 28px; margin: 40px 0 0; }
main.gcd .gcd-cat { min-width: 0; }

/* the photo card: the whole card is one link */
main.gcd .gcd-card { display: block; overflow: hidden; background: #fff; border: 1px solid var(--ga-line); border-radius: 16px; color: inherit; text-decoration: none; transition: transform .55s var(--ga-ease), box-shadow .55s var(--ga-ease); }
main.gcd .gcd-card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -22px rgba(1, 1, 12, .35); }
main.gcd .gcd-card:focus-visible { outline: 3px solid #EAC66E; outline-offset: 3px; }
main.gcd .gcd-ph { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(160deg, #F5F5F8, #EDEDF3); }
main.gcd .gcd-ph img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .8s var(--ga-ease); }
main.gcd .gcd-card:hover .gcd-ph img { transform: scale(1.03); }
main.gcd .gcd-body { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 22px; border-top: 1px solid var(--ga-line); }
main.gcd .gcd-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
main.gcd .gcd-name { margin: 0; font: 700 1.45rem/1.15 "Quasimoda", system-ui, sans-serif; letter-spacing: -.02em; color: var(--ga-ink); }
main.gcd .gcd-n { font-size: .92rem; font-weight: 500; color: var(--ga-slate); }

/* "Shop": the archive's gold-outline button, filled gold while the card is hovered */
main.gcd .gcd-go { position: relative; isolation: isolate; overflow: hidden; flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--ga-gold); border-radius: 999px; background: #fff; color: var(--ga-gold-text); font: 600 .92rem/1.2 "Quasimoda", system-ui, sans-serif; transition: color .35s var(--ga-ease), box-shadow .35s var(--ga-ease); }
main.gcd .gcd-go::after { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: linear-gradient(#EAC66E, #D39700); opacity: 0; transition: opacity .35s var(--ga-ease); }
main.gcd .gcd-go svg { width: 16px; height: 16px; }
main.gcd .gcd-card:is(:hover, :focus-visible) .gcd-go { color: #fff; box-shadow: 0 10px 22px -12px rgba(138, 98, 0, .6); }
main.gcd .gcd-card:is(:hover, :focus-visible) .gcd-go::after { opacity: 1; }

/* subcategories: the archive's chip pills, a size smaller */
main.gcd .gcd-subs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
main.gcd .gcd-subs li { margin: 0; padding: 0; }
main.gcd .gcd-subs li::before { content: none; }
main.gcd .gcd-subs a { display: inline-flex; align-items: center; padding: 8px 14px; background: #fff; border: 1px solid #DADAE0; border-radius: 999px; color: var(--ga-ink); font: 600 .88rem/1.2 "Quasimoda", system-ui, sans-serif; text-decoration: none; transition: border-color .25s; }
main.gcd .gcd-subs a:hover { border-color: var(--ga-navy); color: var(--ga-ink); }
main.gcd .gcd-subs a:focus-visible { outline: 3px solid #EAC66E; outline-offset: 2px; }

/* the quiet way out to everything */
main.gcd .gcd-all { max-width: none; margin: 64px 0 0; padding-top: 28px; border-top: 1px solid var(--ga-line); text-align: center; }
main.gcd .gcd-all a { display: inline-flex; align-items: center; gap: 8px; color: var(--ga-navy); font: 600 1rem/1.3 "Quasimoda", system-ui, sans-serif; text-decoration: underline; text-decoration-color: rgba(9, 9, 96, .3); text-underline-offset: 4px; }
main.gcd .gcd-all a:hover { text-decoration-color: currentColor; }
main.gcd .gcd-all a:focus-visible { outline: 3px solid #EAC66E; outline-offset: 3px; border-radius: 4px; }
main.gcd .gcd-all svg { width: 16px; height: 16px; }

@media (max-width: 760px) {
  main.gcd .gcd-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 28px; }
  main.gcd .gcd-ph { aspect-ratio: 4 / 3; }
  main.gcd .gcd-body { padding: 16px 16px 18px; }
  main.gcd .gcd-name { font-size: 1.25rem; }
  main.gcd .gcd-go { padding: 9px 14px; font-size: .86rem; }
  main.gcd .gcd-subs { margin-top: 12px; gap: 6px; }
  main.gcd .gcd-subs a { padding: 7px 12px; font-size: .84rem; }
  main.gcd .gcd-all { margin-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  main.gcd :is(.gcd-card, .gcd-ph img, .gcd-go, .gcd-go::after) { transition: none; }
  main.gcd .gcd-card:hover, main.gcd .gcd-card:hover .gcd-ph img { transform: none; }
}

/* 2026-11-11 Treyson's standard: underlined text links on light grounds are gray with a gray underline */
main.gcd .gcd-all a { color: #61616B !important; border-color: #61616B !important; text-decoration-color: #61616B !important; }
main.gcd .gcd-all a::after { background: #61616B !important; }
main.gcd .gcd-all a:is(:hover, :focus-visible) { color: #01010C !important; border-color: #01010C !important; text-decoration-color: #01010C !important; }
