/* ==========================================================================
   Superluminal · Community Campaign window — page-specific styles
   (shell: styles.css · shared content skin: slides.css)
   ========================================================================== */

.hero-meta--prize strong { color: #7a5c00; }

.stat-icon--rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 22px;
  border: 1px solid #000;
  color: #000;
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.6);
  font-family: "Courier New", monospace;
  font-size: 10px;
  font-weight: 700;
}

.tree-node-icon[data-section="brief"] { background: var(--slx-navy); }
.tree-node-icon[data-section="join"] { background: #006400; }
.tree-node-icon[data-section="prizes"] { color: #000; background: var(--slx-yellow); }
.tree-node-icon[data-section="examples"] { background: #111; }

/* ---------- examples: cards linking to published X posts ---------- */

.exampleGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.exampleCard {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 6px;
  color: #000;
  background: var(--face-light);
  text-decoration: none;
  transition: transform 80ms linear;
}

.exampleCard:hover,
.exampleCard:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow:
    2px 2px 0 rgba(0, 0, 0, 0.18),
    inset 1px 1px 0 var(--face-light),
    inset -1px -1px 0 var(--shadow);
  outline: none;
}

.exampleThumb {
  position: relative;
  display: block;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 128, 0.06) 1px, transparent 1px) 0 0 / 12px 12px,
    linear-gradient(rgba(0, 0, 128, 0.06) 1px, transparent 1px) 0 0 / 12px 12px,
    #fff;
}

.exampleThumb img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* article banners are wider than 2:1 — letterbox them on a dark backdrop like X's card */
.exampleThumb[data-type="article"]:has(img) { background: #08130f; }
.exampleThumb[data-type="article"] img { object-fit: contain; }

.exampleFallback {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  color: #9a9a9a;
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  line-height: 1.6;
}

.exampleThumb[data-type="video"] .exampleFallback { color: #7a5c00; }

.playBadge {
  position: absolute;
  z-index: 3;
  right: 8px;
  bottom: 8px;
  display: grid;
  width: 30px;
  height: 22px;
  place-items: center;
  border: 1px solid #000;
  color: #000;
  background: var(--slx-yellow);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35);
  font-size: 11px;
}

.exampleBody {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 5px;
  padding: 8px 6px 4px;
}

.exampleKicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.exampleType {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid #000;
  font-family: "Courier New", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.exampleType--article { color: #fff; background: var(--slx-navy); }
.exampleType--video { color: #000; background: var(--slx-yellow); }

.exampleHandle {
  color: #666;
  font-family: "Courier New", monospace;
  font-size: 9px;
  white-space: nowrap;
}

.exampleTitle {
  color: #11115d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.25;
}

.exampleOpen {
  margin-top: auto;
  padding-top: 6px;
  color: var(--slx-navy);
  font-size: 10px;
  font-weight: 700;
}

.exampleOpen b { font-size: 12px; }
.tree-node-icon[data-section="resources"] { background: #4b318d; }

.side-note a { color: var(--slx-navy); font-weight: 700; }

.toolbar a.classic-button { color: #000; text-decoration: none; }

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 22px 44px;
}

.csection {
  padding: 8px 0 22px;
  margin-bottom: 14px;
  border-bottom: 1px dotted #999;
  scroll-margin-top: 10px;
}

.csection:last-child { border-bottom: 0; }

.stepBtn {
  display: inline-flex;
  margin-top: 8px;
  color: #000;
  text-decoration: none;
}

.steps--four { grid-template-columns: repeat(4, 1fr); }
.step--submit { background: var(--slx-paper); }
.submit-link { color: #000; }
.linkIcon--form { color: #000; background: var(--slx-paper); }

.prizeWrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 12px;
}

.prizeWrap .note { margin-top: 0; }

.linkList {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.linkRow {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  color: #000;
  background: var(--face-light);
  text-decoration: none;
  transition: transform 80ms linear;
}

.linkRow:hover {
  transform: translate(-1px, -1px);
  box-shadow:
    2px 2px 0 rgba(0, 0, 0, 0.18),
    inset 1px 1px 0 var(--face-light),
    inset -1px -1px 0 var(--shadow);
}

.linkRow b { display: block; color: var(--slx-navy); font-size: 13px; }
.linkRow small { display: block; margin-top: 3px; color: #555; font-size: 10px; line-height: 1.45; }

.linkIcon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #000;
  color: #fff;
  background: #111;
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.4);
  font-family: "Courier New", monospace;
  font-size: 14px;
  font-weight: 700;
}

.linkIcon--deck { background: var(--slx-navy); }
.linkIcon--ref { color: #000; background: var(--slx-yellow); }
.linkArrow { color: var(--slx-navy); font-size: 16px; font-weight: 700; text-align: center; }

@media (max-width: 920px) {
  .prizeWrap { grid-template-columns: 1fr; }
  .exampleGrid { grid-template-columns: 1fr 1fr; }
  .steps--four { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .exampleGrid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .page { padding: 12px 10px 30px; }
  .toolbar a.classic-button:not(.primary-action) { flex: 1 1 auto; }
}
