/* Ресурсы — каталог внешних сервисов. Только токены из app.css. */

.v-resources > * + * { margin-top: 20px; }

/* ---- "Что уже есть внутри Cornello" ---- */
.v-resources .res-inside { padding: 0; overflow: hidden; }
.v-resources .res-inside > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 12px 16px; user-select: none;
}
.v-resources .res-inside > summary::-webkit-details-marker { display: none; }
.v-resources .res-inside > summary::after {
  content: ""; flex: none; width: 8px; height: 8px; margin: 0 4px 3px 0;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg); transition: transform .15s ease;
}
.v-resources .res-inside[open] > summary::after { transform: rotate(-135deg); margin-bottom: -3px; }
.v-resources .res-inside > summary:hover { background: var(--surface-2); }
.v-resources .res-inside-head { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.v-resources .res-inside-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.v-resources .res-inside-title svg { color: var(--blue); }
.v-resources .res-inside-list {
  display: grid; gap: 8px; padding: 4px 16px 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
}
.v-resources .res-in {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2);
  color: var(--ink); text-decoration: none; transition: border-color .15s ease, transform .15s ease;
}
.v-resources .res-in:hover { border-color: var(--line-2); transform: translateY(-1px); }
.v-resources .res-in-ico {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 10px; background: var(--blue-soft); color: var(--blue);
}
.v-resources .res-in-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.v-resources .res-in-title { font-weight: 600; font-size: var(--t-sm); line-height: 1.3; }
.v-resources .res-in-like { color: var(--ink-3); font-size: var(--t-xs); line-height: 1.35; }
.v-resources .res-in-go { flex: none; color: var(--ink-3); display: inline-flex; }
.v-resources .res-in:hover .res-in-go { color: var(--blue); }

/* ---- каталог ---- */
.v-resources .res-catalog { gap: 12px; }
.v-resources .res-chips { flex: 1 1 320px; }
.v-resources .res-count { margin-left: 2px; font: 500 11px var(--f-mono); opacity: .65; }
.v-resources .res-grid { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.v-resources .res-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.v-resources .res-head { display: flex; flex-direction: column; gap: 8px; }
.v-resources .res-name { font-size: var(--t-lg); font-weight: 650; line-height: 1.2; overflow-wrap: anywhere; }
.v-resources .res-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.v-resources .res-note { margin-top: -4px; }
.v-resources .res-desc { line-height: 1.5; }
.v-resources .res-tip {
  margin-top: auto; padding: 9px 12px; display: flex; flex-direction: column; gap: 3px;
  background: var(--surface-2); border-left: 3px solid var(--marker); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.v-resources .res-tip-head { display: flex; align-items: center; gap: 6px; color: var(--ink-3); }
.v-resources .res-tip p { color: var(--ink-2); line-height: 1.5; }
.v-resources .res-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.v-resources .res-host { margin-left: auto; font-size: var(--t-xs); overflow-wrap: anywhere; }

.v-resources .res-disclaimer { max-width: 72ch; }

/* ---- источники данных ---- */
.v-resources .res-credits[hidden] { display: none; }
.v-resources .res-credits h2 { font-size: var(--t-md); }
.v-resources .res-credits-list { margin: 0; padding: 0 0 0 1.2em; display: flex; flex-direction: column; gap: 6px; font-size: var(--t-sm); }
.v-resources .res-credits-list .badge { margin-left: 6px; }
