/* Browse the Catalogue (Phase 1): landing-page tiles, badges and tag chips on cards. Brand tokens, 4/8/12/16/24/32/48 spacing and the type scale only.
   Motion: transform and opacity, 150 to 300 ms, none under prefers-reduced-motion. */
.page-browse .mono { font-family: var(--font-mono); font-weight: 500; }
.ihead__eyebrow .ihead__txt { display: block; }

/* ---- landing grid: 5 columns (220 px tiles) for industries, 4 for families, 2 under 1,024 px ---- */
.tgrid { display: grid; gap: 24px; margin: 32px 0 0; padding: 0; list-style: none; }
.tgrid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tgrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ctile { display: flex; }
.ctile__a { position: relative; display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 8px 8px 16px; border: 1px solid var(--pw-line); border-radius: 16px; background: var(--pw-white); color: var(--pw-bark); text-decoration: none; transition: border-color .15s ease-out, transform .15s ease-out; }
.ctile__a:focus-visible { outline: 3px solid var(--pw-foil-gold); outline-offset: 2px; }
.ctile__media { display: block; overflow: hidden; border-radius: 12px; }
.ctile__media .pframe { border-radius: 12px; }
.ctile__name { display: block; padding: 0 8px; font: 600 18px/24px var(--font-body); transition: color .15s ease-out; }
.ctile__pill { align-self: flex-start; margin: 0 8px; padding: 4px 8px; border-radius: 999px; background: var(--pw-sage-mist); font: 500 12px/16px var(--font-mono); color: var(--pw-forest); }
.ctile__line { display: block; padding: 0 8px; font: 400 14px/20px var(--font-body); color: var(--pw-bark-muted); }
@media (hover: hover) {
  .ctile__a:hover { border-color: var(--state-border-hover); transform: translateY(-2px); }
  .ctile__a:hover .pframe img { transform: scale(1.03); }
  .ctile__a:hover .ctile__name { color: var(--state-text-hover); }
}
.tfind { margin: 32px 0 0; font: 400 16px/24px var(--font-body); color: var(--pw-bark-muted); }
.tfind .link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }

/* ---- badge (one per card, top-left) and use tags ---- */
.icard__badge { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 4px 8px; border-radius: 999px; background: var(--pw-white); font: 600 13px/16px var(--font-body); color: var(--pw-bark); }
.ichips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.ichips li { padding: 4px 8px; border-radius: 999px; background: var(--pw-sage-mist); font: 600 13px/16px var(--font-body); color: var(--pw-forest); }
.ichips--hover { position: absolute; left: 8px; bottom: 8px; z-index: 2; margin: 0; opacity: 0; transition: opacity .15s ease-out; pointer-events: none; }
@media (hover: hover) { .icard:hover .ichips--hover { opacity: 1; } }
.icard:focus-within .ichips--hover { opacity: 1; }
@media (hover: none) { .ichips--hover { display: none; } }
.icard__more { color: var(--pw-forest); font-weight: 600; white-space: nowrap; }
.icard--style .icard__foot { padding-top: 12px; }

.iother__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1023px) {
  .tgrid--5, .tgrid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iother__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .tgrid { gap: 12px; }
  .ctile__name { font-size: 16px; line-height: 22px; }
}
@media (prefers-reduced-motion: reduce) { .ctile__a, .ctile__name, .ichips--hover { transition: none !important; } .ctile__a:hover { transform: none; } }
