/* Contextual catalog navigation follows the saved ORM palette and fonts. */
.orm-home .orm-related {
  padding-block: clamp(48px, 6vw, 84px);
  padding-inline: var(--orm-design-gutter, 24px);
  background: var(--orm-design-soft, #faf8f4);
  color: var(--orm-ink, #000);
  border-top: 1px solid var(--orm-design-line, #e3e3e3);
}
.orm-related-container { max-width: var(--orm-design-width, 1280px); margin-inline: auto; }
.orm-related-heading { max-width: 68ch; margin-block-end: 26px; }
.orm-related-heading h2 { font-size: clamp(1.7rem, 2.7vw, 2.4rem); font-weight: 700; line-height: 1.3; margin: 0 0 10px; }
.orm-related-heading p { color: var(--orm-design-muted, #666); line-height: 1.8; margin: 0; }
.orm-related-hubs { display: flex; flex-wrap: wrap; gap: 10px; margin-block-end: 34px; }
.orm-related-hubs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--orm-design-line, #ddd);
  border-radius: 999px;
  background: var(--orm-surface, #fff);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.orm-related-hubs a:hover {
  background: var(--orm-gold);
  border-color: var(--orm-gold);
  color: #111;
}
.orm-related-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 44px; }
.orm-related-group { min-width: 0; }
.orm-related-group--developers, .orm-related-group--catalog { grid-column: 1 / -1; }
.orm-related-group h3 { font-size: 1.12rem; font-weight: 700; line-height: 1.45; margin: 0 0 16px; color: var(--orm-gold-dark, #663500); }
.orm-related-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.orm-related-list li { min-width: 0; }
.orm-related-group--developers .orm-related-list, .orm-related-group--catalog .orm-related-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 20px; }
.orm-related-link {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 98px;
  padding: 14px 16px;
  border: 1px solid var(--orm-design-line, #ddd);
  border-radius: 12px;
  background: var(--orm-surface, #fff);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--orm-shadow-xs, 0 2px 8px rgb(0 0 0 / .04));
  transition: transform .28s ease, border-color .22s ease, box-shadow .28s ease;
}
@media (hover: hover) and (pointer: fine) {
  .orm-related-link:hover {
    transform: translateY(-2px);
    border-color: var(--orm-gold);
    box-shadow: var(--orm-shadow-sm, 0 10px 24px -8px rgb(0 0 0 / .1));
  }
  .orm-related-link:hover .orm-related-image img { transform: scale(1.06); }
  .orm-related-link:hover .orm-related-arrow { color: var(--orm-gold-dark); transform: translateX(3px); }
  html[dir=rtl] .orm-related-link:hover .orm-related-arrow { transform: scaleX(-1) translateX(3px); }
}
.orm-related-image { display: flex; flex: 0 0 86px; width: 86px; height: 70px; overflow: hidden; border-radius: 8px; background: var(--orm-design-soft, #f5f5f5); align-items: center; justify-content: center; }
.orm-related-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.orm-related-link--developer .orm-related-image { flex-basis: 56px; width: 56px; height: 56px; padding: 8px; background: #fff; border: 1px solid var(--orm-design-line, #e3e3e3); }
.orm-related-link--developer .orm-related-image img { object-fit: contain; }
.orm-related-initial { color: var(--orm-gold-dark, #663500); font-size: 1.45rem; font-weight: 700; }
.orm-related-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.orm-related-copy strong { font-weight: 700; font-size: .98rem; line-height: 1.45; overflow-wrap: anywhere; transition: color .2s ease; }
.orm-related-link:hover strong { color: var(--orm-gold-dark, #663500); }
.orm-related-context { font-size: .82rem; color: var(--orm-design-muted, #666); line-height: 1.6; overflow-wrap: anywhere; }
.orm-related-badge { align-self: flex-start; font-size: .72rem; font-weight: 600; color: var(--orm-gold-dark, #663500); line-height: 1.6; }
.orm-related-arrow { flex: 0 0 20px; color: var(--orm-design-muted, #666); transition: color .2s ease, transform .22s ease; }
.orm-related :where(a):focus-visible { outline: 2px solid var(--orm-gold-dark, #663500); outline-offset: 4px; }
html[dir=rtl] .orm-related-arrow { transform: scaleX(-1); }
@media (max-width: 1000px) {
  .orm-related-groups { gap: 28px 24px; }
  .orm-related-group--developers .orm-related-list, .orm-related-group--catalog .orm-related-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .orm-related-groups { grid-template-columns: minmax(0, 1fr); }
  .orm-related-group--developers .orm-related-list, .orm-related-group--catalog .orm-related-list { grid-template-columns: minmax(0, 1fr); }
  .orm-related-link { min-height: 92px; gap: 12px; padding: 12px; }
  .orm-related-image { flex-basis: 74px; width: 74px; height: 64px; }
  .orm-related-hubs { gap: 8px; margin-block-end: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .orm-related-link, .orm-related-image img, .orm-related-arrow { transition: none; transform: none; }
}
