/* Resources directory: six whole-card links (.card, .card-sheet, .card-link in styles/components.css) on the ground,
   each with its icon disc in a brand bright, its group, title, description, a sample of what is inside on a Mist panel,
   and its link words at the foot. Cards in a row share subgrid rows, so titles, text, samples and links line up (the
   Level Row Rule). The company row is a quieter Mist panel of plain links. Logical properties, so Arabic mirrors. */
.rs-dir-head { display: grid; gap: 18px; max-width: 860px; }
.rs-tiles {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 26px);
  margin-top: clamp(30px, 3.4vw, 46px);
}
.rs-tile { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 12px; align-content: start; }
.rs-tile-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rs-tile-disc {
  flex: none; width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--sky); color: var(--on-bright);
  box-shadow: var(--shadow-xs);
}
.rs-tile-disc .i { width: 26px; height: 26px; }
.rs-tile-disc.is-knowledge { background: var(--mint); }
.rs-tile-disc.is-glossary { background: var(--coral); }
.rs-tile-disc.is-playbooks { background: var(--btn-bg); color: var(--btn-ink); }
.rs-tile-disc.is-compare { background: var(--ink); color: var(--ground); }
.rs-tile-disc.is-linkgen { background: var(--green); }
.rs-tile-group { background: var(--surface-2); color: var(--ink-soft); }
.rs-tile .card-title { font-size: 1.24rem; }
.rs-tile .card-cta { align-self: end; color: var(--accent-ink); }
.rs-tile .card-cta .i { transition: translate 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .rs-tile:hover .card-cta .i { translate: 3px 0; }
  [dir="rtl"] .rs-tile:hover .card-cta .i { translate: -3px 0; }
}

/* The sample of what is inside: a Mist panel that fills its row, so the panels in a row match */
.rs-prev {
  min-width: 0; align-self: stretch;
  padding: 14px 16px; border-radius: 18px;
  background: var(--surface-2);
}
.rs-prev-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rs-prev-tags .tag { white-space: normal; text-align: start; }
.rs-prev-rows li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 40px; padding-block: 6px;
  font: 700 15px/1.35 var(--text);
}
.rs-prev-rows li + li { border-top: 1px solid var(--line); }
.rs-prev-rows li > span:last-of-type { min-width: 0; overflow-wrap: anywhere; }
.rs-prev-rows .i { width: 18px; height: 18px; color: var(--ink-soft); }
.rs-prev-rows.is-plays li { justify-content: flex-start; }
.rs-prev-tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green); color: var(--on-bright);
}
.rs-prev-tick .i { width: 13px; height: 13px; }
.rs-prev-term { display: grid; gap: 6px; }
.rs-prev-term dt { font: 800 16px/1.3 var(--text); }
.rs-prev-term dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }
.rs-prev-qr { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: center; }
/* The code stays dark on white in both themes, so every phone camera reads it */
.rs-qr {
  display: block; width: 92px; aspect-ratio: 1; padding: 6px; border-radius: 12px;
  background: var(--qr-bg); color: var(--qr-ink);
  box-shadow: var(--shadow-xs);
}
.rs-qr svg { display: block; width: 100%; height: 100%; }
.rs-qr.is-fallback { display: none; }
.rs-prev-qr p { font-size: 14px; line-height: 1.45; color: var(--ink-soft); text-wrap: pretty; }
.rs-prev-url {
  display: block; margin-bottom: 4px;
  font: 600 13px/1.35 var(--mono); color: var(--ink);
  overflow-wrap: anywhere; unicode-bidi: isolate;
}

/* The company row: a quieter Mist panel of plain links */
.rs-co {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr);
  gap: 20px clamp(24px, 4vw, 56px); align-items: center;
  margin-top: clamp(28px, 3vw, 40px);
  padding: clamp(20px, 2.8vw, 32px);
  border-radius: 28px;
  background: var(--surface-2);
}
.rs-co-copy { display: grid; gap: 8px; min-width: 0; }
.rs-co-h { font: 800 1.3rem/1.25 var(--text); letter-spacing: -0.01em; text-wrap: balance; }
.rs-co-copy p { font-size: 16px; line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }
.rs-co-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rs-co-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 100%; min-height: 64px; padding: 12px 16px;
  border-radius: 18px; background: var(--surface); color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: color 160ms ease;
}
.rs-co-t { display: grid; gap: 2px; min-width: 0; }
.rs-co-t b { font: 800 16px/1.3 var(--text); }
.rs-co-t small { font-size: 14px; line-height: 1.4; color: var(--ink-soft); text-wrap: pretty; }
.rs-co-link .i { flex: none; width: 18px; height: 18px; color: var(--accent-ink); transition: translate 200ms var(--ease-out); }
.rs-co-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .rs-co-link:hover { color: var(--accent-ink); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .rs-co-link:hover .i { translate: 3px 0; }
  [dir="rtl"] .rs-co-link:hover .i { translate: -3px 0; }
}

/* Responsive */
@media (max-width: 1099px) {
  .rs-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-co { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 719px) {
  .rs-tiles { grid-template-columns: minmax(0, 1fr); }
  .rs-tile { grid-row: auto; grid-template-rows: none; display: flex; }
  .rs-tile .card-cta { align-self: flex-start; }
  .rs-co-links { grid-template-columns: minmax(0, 1fr); }
}
@supports not (grid-template-rows: subgrid) {
  .rs-tile { display: flex; }
}
