﻿
.qw {
  background: #fff;
  padding: 0;
  overflow: hidden;        /* clips peek cards at bottom */
}

/* 3-equal-column grid, full-bleed (no container) */
.qw__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  align-items: start;
}

/* â”€â”€ Column â”€â”€ */
.qw__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* â”€â”€ Center header block â”€â”€ */
.qw__head {
  padding: var(--sp-md) var(--sp-sm) var(--sp-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-sm);
}

.qw__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 900;
  color: var(--clr-text);
  line-height: 1.1;
  letter-spacing: -.03em;
}

.qw__sub {
  font-size: 1rem;
  color: var(--clr-text-muted);
  line-height: 1.55;
}

.qw__cta {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  margin-top: var(--sp-xs);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  color: var(--clr-primary);
  text-decoration: none;
  transition: gap .2s var(--ease), opacity .2s var(--ease);
}
.qw__cta:hover { gap: .7em; opacity: .8; }

/* â”€â”€ Flip card â”€â”€ */
.qw__card {
  height: 420px;
  perspective: 1100px;
  border-radius: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.qw__card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .65s cubic-bezier(.4, 0, .2, 1);
  border-radius: inherit;
}

/* Hover AND focus */
.qw__card:hover .qw__card-inner,
.qw__card:focus .qw__card-inner {
  transform: rotateY(180deg);
}

/* Both faces */
.qw__face {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

/* â”€â”€ Front face â”€â”€ */
.qw__face--front {
  box-shadow: 0 8px 32px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.06);
}

.qw__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .65s var(--ease);
}

.qw__card:hover .qw__img {
  transform: scale(1.04);
}

/* White label box overlapping the image bottom */
.qw__label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 14px 16px 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.09);
}

.qw__label-win {
  font-family: var(--font-display);
  font-size: clamp(.85rem, 1.1vw, .98rem);
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qw__label-tags {
  font-size: .775rem;
  color: var(--clr-text-muted);
  letter-spacing: .01em;
}

/* â”€â”€ Back face â”€â”€ */
.qw__face--back {
  background: linear-gradient(155deg, #1a0a2e 0%, #2d1060 55%, #0e1a3a 100%);
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-xl);
}

.qw__back-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  max-width: 340px;
}

.qw__back-tags {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.qw__back-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.qw__back-excerpt {
  font-size: .875rem;
  color: rgba(255,255,255,.72);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qw__back-cta {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  margin-top: var(--sp-xs);
  padding: .65rem 1.35rem;
  background: var(--clr-primary);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9rem;
  border-radius: var(--r-full);
  text-decoration: none;
  align-self: flex-start;
  box-shadow: 0 4px 14px rgba(168,112,219,.35);
  transition: box-shadow .2s, transform .2s;
}
.qw__back-cta:hover { box-shadow: 0 6px 20px rgba(168,112,219,.50); transform: translateY(-2px); }

/* All 6 cards share the same height */
.qw__card {
  height: 420px;
}

/* â–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆ
/* ─── Quick Wins responsive ─────────────────────────────────── */

/* Mobile section header – hidden on desktop */
.qw__mobile-head { display: none; }

@media (max-width: 992px) {
  .qw__grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .qw__col--center {
    grid-column: 1 / -1;
  }
  .qw__col--center .qw__head { padding-bottom: var(--sp-lg); }
}

/* ≤640 px – phones: title on top + every card as an individual scroll item */
@media (max-width: 640px) {
  .qw__mobile-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--sp-sm);
    padding-bottom: var(--sp-lg);
  }
  /* Flatten all columns so each card becomes a direct flex child of the scroll strip */
  .qw__col,
  .qw__col--center { display: contents; }
  /* Hide only the text header inside the centre column */
  .qw__head { display: none; }
  .qw__grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    padding-bottom: var(--sp-md);
    scroll-snap-type: x mandatory;
  }
  .qw__grid::-webkit-scrollbar { display: none; }
  .qw__card {
    flex: 0 0 78vw;
    height: 380px;
    scroll-snap-align: start;
  }
}

/* ══════════════════════════════════════════════════════════════════════════════
   Quick Wins: Listing page hero  (.qw-listing-hero)
   ══════════════════════════════════════════════════════════════════════════════ */

.qw-listing-hero {
  padding: var(--sp-xl) 0 var(--sp-lg);
  background: #fff;
  border-bottom: 1px solid var(--clr-border);
}

.qw-listing-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .8rem;
  color: var(--clr-text-muted);
  margin-bottom: 1.75rem;
}
.qw-listing-hero__breadcrumb a {
  color: var(--clr-primary);
  text-decoration: none;
}
.qw-listing-hero__breadcrumb a:hover { text-decoration: underline; }

.qw-listing-hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.04em;
  color: var(--clr-text);
  margin-bottom: .9rem;
}
.qw-listing-hero__title-grad {
  background: linear-gradient(130deg, #FA3DC7 0%, #A870DB 50%, #46C0DF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.qw-listing-hero__sub {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 520px;
  line-height: 1.6;
}

.qw-listing-hero__stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
}
.qw-listing-hero__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(130deg, #FA3DC7 0%, #A870DB 50%, #46C0DF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.qw-listing-hero__stat span {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--clr-text-muted);
  margin-top: .2rem;
  display: block;
}

/* ── Listing page grid container ── */
.qw--listing .qw__grid {
  max-width: var(--container, 1200px);
  margin-inline: auto;
  padding: var(--sp-lg) var(--sp-md) var(--sp-xl);
}

/* ── Metric on the front label ── */
.qw__label-metric {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 5px;
}
.qw__label-metric span {
  display: block;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  margin-top: 1px;
}

/* ── Link wrapper inside proj-qw cards ── */
.proj-qw__card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.proj-qw__card-link:hover .proj-qw__card-img img {
  transform: scale(1.04);
}

/* ══════════════════════════════════════════════════════════════════════════════
   Quick Win: Single / Detail page  (.qws-*)
   ══════════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   HERO — dark with animated rings & carousel
   ───────────────────────────────────────── */
.qws-hero {
  position: relative;
  background: linear-gradient(140deg, #0e0620 0%, #1c0848 55%, #0d1330 100%);
  overflow: hidden;
  padding: calc(var(--nav-h) + 3.5rem) 1.5rem 5rem;
}

/* Animated rings */
.qws-hero__ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  transform: translate(-50%, -50%);
}
.qws-hero__ring--1 {
  width: 280px;
  height: 280px;
  border: 1.5px solid rgba(159,58,253,.40);
  animation: qws-ring-spin 16s linear infinite, qws-ring-breathe 5s ease-in-out infinite;
}
.qws-hero__ring--1::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  background: #FA3DC7;
  box-shadow: 0 0 8px 3px rgba(250, 61,199,.85), 0 0 20px 6px rgba(250, 61,199,.40);
  animation: qws-dot-pulse 5s ease-in-out infinite;
}
.qws-hero__ring--2 {
  width: 460px;
  height: 460px;
  border: 1.5px solid rgba(70,192,223,.22);
  animation: qws-ring-spin 24s linear infinite reverse, qws-ring-breathe 7s ease-in-out 1.5s infinite;
}
.qws-hero__ring--2::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: #46C0DF;
  box-shadow: 0 0 8px 3px rgba(70,192,223,.85), 0 0 24px 8px rgba(70,192,223,.35);
  animation: qws-dot-pulse 7s ease-in-out 1.5s infinite;
}
.qws-hero__ring--3 {
  width: 660px;
  height: 660px;
  border: 1.5px dashed rgba(255,255,255,.10);
  animation: qws-ring-spin 36s linear infinite, qws-ring-breathe 9s ease-in-out 3s infinite;
}
.qws-hero__ring--3::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,.9);
  box-shadow: 0 0 6px 2px rgba(255,255,255,.6), 0 0 16px 5px rgba(255,255,255,.2);
  animation: qws-dot-pulse 9s ease-in-out 3s infinite;
}
@keyframes qws-ring-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes qws-ring-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes qws-dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Background orbs */
.qws-hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}
.qws-hero__orb--1 {
  width: 480px; height: 480px;
  top: -120px; right: -80px;
  background: radial-gradient(circle, rgba(250,61,199,.35) 0%, transparent 70%);
  animation: qwsOrbDrift 10s ease-in-out infinite alternate;
}
.qws-hero__orb--2 {
  width: 360px; height: 360px;
  bottom: -60px; left: -60px;
  background: radial-gradient(circle, rgba(70,192,223,.25) 0%, transparent 70%);
  animation: qwsOrbDrift 14s ease-in-out 2s infinite alternate-reverse;
}
.qws-hero__orb--3 {
  width: 280px; height: 280px;
  top: 40%; left: 40%;
  background: radial-gradient(circle, rgba(168,112,219,.20) 0%, transparent 70%);
  animation: qwsOrbDrift 18s ease-in-out 5s infinite alternate;
}
@keyframes qwsOrbDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, -20px) scale(1.08); }
}

/* Two-column layout inside hero */
.qws-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  max-width: var(--container);
  margin-inline: auto;
}

/* Breadcrumb */
.qws-hero__breadcrumb {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,.5);
  max-width: var(--container);
  margin-inline: auto;
}
.qws-hero__breadcrumb a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color 0.2s;
}
.qws-hero__breadcrumb a:hover { color: #fff; }

/* Content side */
.qws-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
}
.qws-hero__badge-metric {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}
.qws-hero__badge-sep {
  color: rgba(255,255,255,.4);
  font-size: 1rem;
}
.qws-hero__badge-unit {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
}

.qws-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 1.1rem;
}

.qws-hero__excerpt {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,.7);
  margin-bottom: 1.75rem;
  max-width: 48ch;
}

.qws-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.qws-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.75);
}

/* Image side */
.qws-hero__img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.5);
}
.qws-hero__carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.qws-hero__img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.qws-hero__img.active {
  opacity: 1;
}
.qws-hero__carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 10;
}
.qws-hero__carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  border: 1px solid rgba(255,255,255,.5);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.qws-hero__carousel-dot.active {
  background: #fff;
  width: 28px;
  border-radius: 4px;
  border-color: #fff;
}
.qws-hero__carousel-dot:hover {
  background: rgba(255,255,255,.7);
}
.qws-hero__img-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(250,61,199,.12), rgba(70,192,223,.08));
  pointer-events: none;
}

/* ─────────────────────────────────────────
   BODY — two-column: main + sidebar
   ───────────────────────────────────────── */
.qws-body {
  background: #fff;
  padding: 4rem 1.5rem;
}
.qws-body__grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3.5rem;
  align-items: start;
}

/* Main prose */
.qws-body__main { min-width: 0; }
.qws-body__prose {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--clr-text);
}
.qws-body__prose h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--clr-text);
}
.qws-body__prose h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--clr-text);
}
.qws-body__prose p { margin-bottom: 1.25rem; }
.qws-body__prose ul, .qws-body__prose ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.qws-body__prose li { margin-bottom: 0.5rem; }
.qws-body__prose a { color: var(--clr-primary); text-decoration: underline; }
.qws-body__prose img { max-width: 100%; border-radius: 8px; margin: 2rem 0; }
.qws-body__empty {
  padding: 3rem;
  text-align: center;
  color: var(--clr-text-muted);
  background: var(--clr-surface);
  border-radius: 10px;
  border: 1px dashed var(--clr-border);
}

/* Sidebar */
.qws-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}
.qws-sidebar__header { margin-bottom: 1.25rem; }
.qws-sidebar__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: 0.3rem;
}
.qws-sidebar__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-text);
  margin: 0;
  line-height: 1.25;
}

/* Sidebar list */
.qws-sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--clr-border);
  border-radius: 12px;
  overflow: hidden;
}
.qws-sidebar__item + .qws-sidebar__item {
  border-top: 1px solid var(--clr-border);
}

/* Blog-style sidebar card */
.qws-sidebar__card {
  display: flex;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: background 0.18s ease;
}
.qws-sidebar__card:hover { background: var(--clr-surface); }

.qws-sidebar__card-img {
  width: 80px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--clr-elevated);
  align-self: flex-start;
}
.qws-sidebar__card-img img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
}

.qws-sidebar__card-body { flex: 1; min-width: 0; }
.qws-sidebar__card-metric {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.qws-sidebar__card-metric span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  font-family: var(--font-sans);
}
.qws-sidebar__card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--clr-text);
  margin: 0 0 0.3rem;
  line-height: 1.3;
  font-family: var(--font-display);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.qws-sidebar__card-tags {
  font-size: 0.68rem;
  color: var(--clr-text-dim);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qws-sidebar__all {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--clr-primary);
  text-decoration: none;
  transition: gap 0.2s ease;
}

/* ─────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .qws-body__grid { grid-template-columns: 1fr; }
  .qws-sidebar { position: static; top: auto; }
  .qws-sidebar__list { flex-direction: row; flex-wrap: wrap; border: none; border-radius: 0; gap: 0.75rem; overflow: visible; }
  .qws-sidebar__item { flex: 1 1 240px; border: 1px solid var(--clr-border); border-radius: 10px; overflow: hidden; }
  .qws-sidebar__item + .qws-sidebar__item { border-top: 1px solid var(--clr-border); }
  .qws-sidebar__card { flex-direction: column; gap: 0.6rem; }
  .qws-sidebar__card-img { width: 100%; border-radius: 0; }
  .qws-sidebar__card-img img { aspect-ratio: 16/9; }
}

@media (max-width: 768px) {
  .qws-hero { padding: calc(var(--nav-h) + 2rem) 1rem 3.5rem; }
  .qws-hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .qws-hero__img-wrap { order: -1; }
  .qws-hero__img { aspect-ratio: 16/9; }
  .qws-hero__ring { display: none; }
  .qws-body { padding: 2.5rem 1rem; }
}

@media (max-width: 480px) {
  .qws-hero__title { font-size: 1.7rem; }
  .qws-sidebar__list { flex-direction: column; }
}



/* ── Related quick wins grid ── */
.qw-related { padding-top: 0; }

.qw-rel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.qw-rel-card {
  text-decoration: none;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--clr-border);
  background: var(--clr-surface, #fafafe);
  transition: transform .22s var(--ease, ease), box-shadow .22s var(--ease, ease);
  display: block;
}
.qw-rel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,.10);
}
.qw-rel-card__img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform .3s var(--ease, ease);
}
.qw-rel-card:hover .qw-rel-card__img img { transform: scale(1.03); }

.qw-rel-card__body { padding: 18px 20px 20px; }
.qw-rel-card__metric {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
}
.qw-rel-card__title {
  font-weight: 700;
  font-size: .95rem;
  color: var(--clr-text);
  margin-bottom: 3px;
}
.qw-rel-card__unit {
  font-size: .82rem;
  color: var(--clr-text-muted);
  margin-bottom: 6px;
}
.qw-rel-card__tags {
  font-size: .75rem;
  color: var(--clr-text-muted);
  opacity: .75;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .qw-listing-hero__stats { gap: 1.5rem; }
  .qw-rel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .qw-rel-grid { grid-template-columns: 1fr; }
}

