/* ==========================================================================
   RepuNEXT TV — "Suggest a topic / Collaborate with us" card
   Shared by the homepage (section 8) and the Insights page.
   Markup: template-parts/sections/collab.php · Behaviour: assets/js/collab.js
   The camera on the card's top edge: media-art.css / media-art.js.
   ========================================================================== */
/* Same spacing and resets on every page (inner pages use main.css defaults for headings, links and buttons) */
.collab.section { padding-block: var(--section-y); }
.collab { font-size: 1rem; line-height: 1.6; }   /* inner pages use a larger body size */
/* low-specificity resets (:where) so the card's own rules below always win */
:where(.collab) h2, :where(.collab) p { margin: 0; }
:where(.collab) a { color: inherit; text-decoration: none; }
.collab .btn { min-height: 52px; justify-content: normal; }

.collab__card {
  padding: clamp(24px, 3.2vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1.5px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink);
}
.collab__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px 32px; flex-wrap: wrap;
}
.collab__copy { min-width: 0; }
.collab__title {
  margin-top: 10px;
  font-family: var(--f-display); font-weight: 800; color: var(--ink);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.1; letter-spacing: -.03em;
}
/* Keep the heading on one line at every width: it scales with the viewport */
.collab__title { white-space: nowrap; }
@media (min-width: 700px) {
  .collab__title { font-size: clamp(1.35rem, 3vw, 2.2rem); }
}
@media (max-width: 699px) {
  /* Phones: size it from the card's inner width (container query on .collab__head) so it fills one line */
  .collab__head { container-type: inline-size; }
  .collab__title { font-size: min(1.5rem, calc(100cqi / 17.8)); }
}
.collab__text { max-width: 54ch; margin-top: 10px; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.collab__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.collab__actions .btn[aria-expanded="true"] {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--sh);
}

.collab__panel {
  margin-top: 24px; padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  animation: collab-in .28s var(--ease-out) both;
}
.collab__panel[hidden] { display: none; }
@keyframes collab-in {
  from { opacity: 0; transform: translateY(-6px); }
}
.collab__panel-label {
  font-size: .875rem; font-weight: 600; color: var(--muted);
  margin-bottom: 12px;
}
.collab__options {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.collab__option {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  transition: transform .25s var(--ease-out), border-color .25s, box-shadow .25s var(--ease-out);
}
.collab__option:hover, .collab__option:focus-visible {
  transform: translateY(-2px);
  border-color: var(--ink);
  box-shadow: 0 4px 0 var(--sq-5);
}
.collab__option-kind {
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--tagline);
}
.collab__option-val {
  font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; color: var(--ink);
  word-break: break-word;
}
@media (max-width: 680px) {
  .collab__options { grid-template-columns: 1fr; }
  .collab__actions { width: 100%; }
  .collab__actions .btn { flex: 1 1 auto; justify-content: center; }
}
