/* ===== COLLEX v2 Resources: hub + post pieces the kit does not cover =====
   Loaded after /kit.css and chrome.css. Kit variables only. */

.art-card[hidden], .res-empty[hidden] { display: none; }
.art-card:hover .t-h3 { color: var(--strong); }
.art-card__media { position: relative; }
.art-card__media img { transition: transform 200ms ease; }
.art-card:hover .art-card__media img { transform: scale(1.02); }
@media (prefers-reduced-motion: reduce) { .art-card__media img { transition: none; } .art-card:hover .art-card__media img { transform: none; } }

/* ---- hub ---- */
.res-hub { padding-bottom: 96px; }
.res-filter { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 40px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.res-grid { row-gap: 56px; }
.res-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 48px 0; }

/* ---- post ---- */
.res-post { padding-top: 40px; padding-bottom: 0; }
.res-post__bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.res-post__head { display: flex; flex-direction: column; gap: 18px; max-width: 880px; padding: 40px 0; }
.res-post__head .t-lede { max-width: 64ch; }
.res-hero__media { aspect-ratio: 2 / 1; }
.res-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.res-post__column { max-width: 68ch; padding-top: 64px; display: flex; flex-direction: column; gap: 24px; }

.res-body { max-width: 68ch; font-size: 16px; line-height: 1.65; }
.res-body > * + * { margin-top: 24px; }
.res-body h2 { font-family: var(--display); font-weight: 700; font-size: 36px; line-height: 1.1; letter-spacing: -.02em; color: var(--strong); margin-top: 48px; text-wrap: balance; }
.res-body h3 { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.25; letter-spacing: -.01em; color: var(--strong); margin-top: 32px; }
.res-body h4 { font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--strong); margin-top: 24px; }
.res-body p, .res-body li { margin: 0; }
.res-body ul, .res-body ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.res-body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.res-body a:hover { text-decoration-color: currentColor; }
.res-body strong { color: var(--strong); font-weight: 600; }
.res-body code { font-family: var(--mono); font-size: .9em; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.res-body hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.res-body blockquote { margin: 0; padding: 16px 20px; border: 1px solid var(--line); border-top: 2px solid var(--red); border-radius: 12px; color: var(--muted); }
.res-body img { border-radius: 12px; }
.res-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14px; }
.res-body th, .res-body td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.res-figure { margin: 16px 0; display: flex; flex-direction: column; gap: 12px; }
.res-figure img { width: 100%; height: auto; background: var(--stage); }
.res-figure figcaption { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* FAQ accordion (details/summary, kit .faq look) */
.res-faq { margin-top: 32px; max-width: 880px; }
.res-faq > h2 { margin-bottom: 24px; }
.res-faq__item { border-bottom: 1px solid var(--line); }
.res-faq > h2 + .res-faq__item { border-top: 1px solid var(--line); }
.res-faq__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 64px; padding: 16px 0; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--text); }
.res-faq__item summary::-webkit-details-marker { display: none; }
.res-faq__item summary::after { content: ""; flex: none; width: 18px; height: 18px; background: currentColor; color: var(--muted); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat; }
.res-faq__item[open] summary::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E"); }
.res-faq__answer { padding: 0 0 20px; color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 68ch; }
.res-faq__answer > * + * { margin-top: 12px; }
.res-faq__answer p { margin: 0; }

.res-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 16px; }
.res-share .t-label { margin-right: 8px; }

.res-cta { margin-top: 64px; padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.res-cta__body { display: flex; flex-direction: column; gap: 8px; }
.res-cta__body .t-h3 { color: var(--strong); }
.res-related { margin-top: 96px; }

@media (max-width: 900px) {
  .res-hub { padding-bottom: 64px; }
  .res-filter { padding-bottom: 28px; margin-bottom: 32px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .res-filter::-webkit-scrollbar { display: none; }
  .res-filter .chip { flex: none; }
  .res-grid { row-gap: 40px; }
  .res-post { padding-top: 24px; }
  .res-post__head { padding: 28px 0; }
  .res-post__column { padding-top: 40px; }
  .res-body h2 { font-size: 28px; margin-top: 40px; }
  .res-cta { flex-direction: column; align-items: flex-start; padding: 24px; margin-top: 48px; }
  .res-related { margin-top: 64px; }
  .art-card { min-width: 0; }
}
