/* ==========================================================
   COMMUNITY — extends the TechMagpies system (tm.css / tm-chrome.css).
   Palette: blue (--blue/--ink), white, very light blue (--ice), light green (--mint).
   ========================================================== */
:root {
  --mint: #e4f7ee;
  --mint-2: #bfebd4;
  --mint-ink: #0c7a52;
}
#cMain[hidden], #cDetail[hidden] { display: none; }

/* ---------- hero ---------- */
.c-hero { position: relative; overflow: hidden; background: var(--ice); padding-block: clamp(40px, 7vw, 96px) clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.c-hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; top: -240px; border-radius: 50%; background: var(--mint); opacity: .9; }
.c-hero::after { content: ""; position: absolute; width: 300px; height: 300px; left: -120px; bottom: -190px; border-radius: 50%; border: 2px dashed rgba(31, 111, 242, .25); }
.c-hero__in { position: relative; z-index: 1; display: grid; gap: 20px; justify-items: start; }
.c-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--blue); font-weight: 800; font-size: 13px; }
.c-hero h1 { font-size: clamp(2.3rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -.04em; font-weight: 800; max-width: 16ch; }
.c-hero__lead { font-size: clamp(17px, 1.7vw, 21px); color: var(--muted); max-width: 52ch; }
.c-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.c-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; padding: 12px 16px; border-radius: var(--r-m); background: var(--mint); border: 1px solid var(--mint-2); color: #0b5a3e; font-size: 14px; line-height: 1.5; }
.c-note .ic { margin-top: 2px; color: var(--mint-ink); }

/* ---------- five feature cards ---------- */
.c-feat { padding-block: clamp(28px, 4vw, 48px) 0; }
.c-feat__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.c-fcard { --a: var(--blue); --bg: var(--ice); display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 22px 20px; border-radius: var(--r-l); background: #fff; border: 1.5px solid var(--line); box-shadow: var(--shadow-1); transition: transform .2s, border-color .2s, background-color .2s; }
.c-fcard--g { --a: var(--mint-ink); --bg: var(--mint); }
.c-fcard:hover { transform: translateY(-3px); border-color: var(--a); background: color-mix(in srgb, var(--bg) 45%, #fff); }
.c-fcard__ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--bg); color: var(--a); }
.c-fcard h3 { font-size: 18px; letter-spacing: -.02em; line-height: 1.2; }
.c-fcard p { color: var(--muted); font-size: 14.5px; line-height: 1.5; flex: 1; }
.c-fcard__go { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--a); }

/* ---------- sections ---------- */
.c-sec { padding-block: clamp(44px, 6vw, 84px); }
.c-sec--tint { background: var(--ice); }
.c-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(22px, 3vw, 36px); }
.c-head > div { display: grid; gap: 10px; max-width: 680px; }
.c-kicker { color: var(--mint-ink); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.c-head h2 { font-size: clamp(1.8rem, 3.8vw, 2.9rem); letter-spacing: -.035em; }
.c-head .lead { font-size: clamp(15px, 1.4vw, 18px); }

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

/* ---------- cards ---------- */
.c-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-1); transition: transform .2s, border-color .2s; }
.c-card:hover { transform: translateY(-3px); border-color: #b7cdf0; }
.c-card--pad { padding: 22px; gap: 12px; }
.c-card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.c-card h3 { font-size: 20px; letter-spacing: -.025em; line-height: 1.2; }
.c-card h3 a:hover { color: var(--blue); }
.c-card p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.c-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.c-by { font-size: 13px; font-weight: 700; color: var(--muted); }
.c-badge { padding: 3px 9px; border-radius: 999px; background: #fff4de; color: #8a5200; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.c-level { padding: 3px 10px; border-radius: 999px; background: var(--mint); color: var(--mint-ink); font-size: 12px; font-weight: 800; }
.c-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: -4px; }

.c-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.c-tags li { padding: 4px 10px; border-radius: 8px; background: var(--ice); border: 1px solid var(--line); color: var(--ink-2); font-size: 12.5px; font-weight: 700; }

.c-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: auto; padding-top: 6px; }
.c-actions--lg { margin-top: 28px; }
.c-link { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; font-weight: 800; font-size: 14px; color: var(--blue); }
.c-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.c-thumb { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; color: var(--blue-2); background: var(--ice); overflow: hidden; }
.c-thumb::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(31, 111, 242, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 111, 242, .08) 1px, transparent 1px); background-size: 22px 22px; }
.c-thumb .ic { position: relative; width: 52px; height: 52px; padding: 0; }
.c-thumb--green { background: var(--mint); color: var(--mint-ink); }
.c-thumb--sky { background: #e2f4ff; color: #0a7bbf; }
.c-thumb--big { border-radius: var(--r-l); border: 1.5px solid var(--line); }
.c-thumb--big .ic { width: 72px; height: 72px; }

.c-person { display: flex; align-items: center; gap: 12px; }
.c-person b { display: block; color: var(--ink); line-height: 1.25; }
.c-person em { font-style: normal; font-size: 13.5px; color: var(--muted); }
.c-av { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ice); color: var(--blue); font-weight: 800; font-size: 14px; }
.c-av--g { background: var(--mint); color: var(--mint-ink); }
.c-when { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 15px; }
.c-when .ic, .c-deadline .ic { color: var(--blue); }

/* challenge */
.c-chal { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.c-chal__main, .c-chal__side { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-1); padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.c-chal__main { border-top: 5px solid var(--mint-ink); }
.c-chal__main h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.03em; }
.c-chal__main > p { color: var(--muted); }
.c-chal__side { background: var(--mint); border-color: var(--mint-2); }
.c-chal__side h4 { font-size: 18px; font-family: var(--f-display); color: var(--ink); }
.c-chal__side ol, .c-steps { list-style: none; counter-reset: n; display: grid; gap: 10px; padding: 0; margin: 0; }
.c-chal__side li, .c-steps li { counter-increment: n; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--text); }
.c-chal__side li::before, .c-steps li::before { content: counter(n); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--mint-ink); font-weight: 800; font-size: 13px; border: 1px solid var(--mint-2); }
.c-deadline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-weight: 600; color: var(--ink); }
.c-deadline em { font-style: normal; padding: 3px 10px; border-radius: 999px; background: #fff4de; color: #8a5200; font-size: 12.5px; font-weight: 800; }

/* rules */
.c-rules { list-style: none; counter-reset: r; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 0; margin: 0; }
.c-rules li { counter-increment: r; display: flex; flex-direction: column; gap: 6px; padding: 20px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-m); }
.c-rules li::before { content: counter(r); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--mint-ink); font-weight: 800; font-size: 14px; margin-bottom: 4px; }
.c-rules b { color: var(--ink); font-family: var(--f-display); font-size: 17px; }
.c-rules span { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* ---------- detail views ---------- */
.c-detail { padding-block: clamp(24px, 4vw, 56px) clamp(48px, 7vw, 96px); min-height: 60vh; }
.c-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 14px; font-weight: 800; font-size: 14.5px; color: var(--blue); }
.c-back .ic { transform: rotate(180deg); }
.c-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.c-dgrid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.c-dmain { display: grid; gap: 14px; min-width: 0; }
.c-dmain--solo { max-width: 760px; }
.c-dmain h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -.035em; line-height: 1.05; outline: none; }
.c-dmain h2 { font-size: 19px; letter-spacing: -.015em; margin-top: 12px; }
.c-dmain p { color: var(--text); line-height: 1.65; }
.c-dmain .lead { color: var(--muted); }
.c-ticks { display: grid; gap: 8px; }
.c-ticks li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.c-ticks .ic { margin-top: 2px; color: var(--mint-ink); }
.c-roles { display: grid; gap: 8px; }
.c-roles li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-m); background: var(--ice); border: 1px solid var(--line); }
.c-roles span { padding: 3px 10px; border-radius: 999px; background: var(--mint); color: var(--mint-ink); font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.c-person--lg .c-av { width: 50px; height: 50px; }
.c-fine { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.c-fine--form { margin-top: 12px; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .c-feat__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .c-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .c-chal, .c-dgrid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  /* compact hero: first useful action stays near the top */
  .c-hero { padding-block: 24px 28px; }
  .c-hero__in { gap: 14px; }
  .c-hero__lead { font-size: 16px; }
  .c-hero__cta { width: 100%; margin-top: 4px; }
  .c-hero__cta .btn { flex: 1 1 100%; }
  .c-note { margin-top: 16px; font-size: 13px; }

  /* feature cards become a snap-scrolling strip */
  .c-feat { padding-top: 20px; }
  .c-feat .container { padding-inline: 0; }
  .c-feat__grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gut) 14px; scroll-padding-inline: var(--gut); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .c-feat__grid::-webkit-scrollbar { display: none; }
  .c-feat__grid li { flex: 0 0 70%; max-width: 260px; scroll-snap-align: start; }
  .c-fcard { padding: 18px 16px; }

  .c-grid--3 { grid-template-columns: 1fr; gap: 16px; }
  .c-sec { padding-block: 36px; }
  .c-head { align-items: flex-start; }
  .c-head .btn { width: 100%; }
  .c-actions .btn { min-height: 44px; }
  .c-actions--lg .btn { width: 100%; }
  .c-card--pad { padding: 18px; }
  .c-link { min-height: 44px; }
  .modal__panel { padding: 28px 20px 22px; }
}
.c-note .ic { flex: none; width: 18px; height: 18px; }

/* ==========================================================
   v2 — colourful redesign (pastel cards, teal banners, gold actions)
   ========================================================== */
:root {
  --teal-d: #0b3d3a; --teal: #0f766e; --teal-l: #14a394; --gold: #f5b82e; --gold-d: #e0a010;
  --p-blue: #e6efff; --p-purple: #efe7ff; --p-green: #dcf7ea; --p-orange: #ffecd6; --p-pink: #ffe4ec;
  --a-blue: #1f6ff2; --a-purple: #7a45e5; --a-green: #0c9a64; --a-orange: #e8780c; --a-pink: #e0306a;
}
.c-btn-gold { background: var(--gold); color: #3a2a00; font-weight: 800; box-shadow: 0 8px 20px rgba(245, 184, 46, .35); }
.c-btn-gold:hover { background: var(--gold-d); }
.c-btn-line { background: transparent; color: inherit; border: 1.5px solid currentColor; font-weight: 700; }
.c-btn-teal { background: var(--teal); color: #fff; font-weight: 800; }
.c-btn-teal:hover { background: var(--teal-d); }

/* hero: deep teal with colourful collage */
.c-hero { background: linear-gradient(120deg, #eaf6ff 0%, #e4f7ee 55%, #fff4dc 100%); }
.c-hero::before { width: 640px; height: 640px; right: -140px; top: -120px; background: linear-gradient(145deg, var(--teal-d), var(--teal)); opacity: 1; border-radius: 46% 54% 40% 60% / 50% 45% 55% 50%; }
.c-hero::after { border-color: rgba(245, 184, 46, .7); }
.c-hero__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 40px; }
.c-hero__copy { display: grid; gap: 20px; justify-items: start; }
.c-hero h1 { color: var(--teal-d); max-width: 14ch; }
.c-hero h1 em { font-style: normal; color: var(--a-green); }
.c-hero__lead { color: #35514f; }
.c-hero .c-btn-line { color: var(--teal-d); }
.c-hero__art { position: relative; min-height: 340px; display: grid; place-items: center; }
.c-hero__list { position: relative; z-index: 2; background: #fff; border-radius: 20px; padding: 18px 22px; display: grid; gap: 10px; min-width: 220px; box-shadow: 0 24px 50px rgba(11, 61, 58, .3); }
.c-hero__list li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14.5px; color: var(--teal-d); }
.c-hero__list .ic { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--a-green); color: #fff; }
.c-chip { position: absolute; z-index: 3; padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 14px; box-shadow: 0 10px 22px rgba(0, 0, 0, .18); transform: rotate(-4deg); }
.c-chip--1 { top: 10%; left: 6%; background: var(--gold); color: #3a2a00; }
.c-chip--2 { top: 2%; right: 10%; background: #fff; color: var(--a-purple); transform: rotate(5deg); }
.c-chip--3 { bottom: 14%; left: 2%; background: var(--a-pink); color: #fff; transform: rotate(3deg); }
.c-chip--4 { bottom: 4%; right: 4%; background: var(--a-blue); color: #fff; }
.c-eyebrow { background: #fff; color: var(--teal); }

/* pastel feature cards */
.c-feat { padding-top: 0; margin-top: -8px; }
.c-fcard { background: var(--bg); border-color: transparent; box-shadow: none; --a: var(--a-blue); --bg: var(--p-blue); }
.c-fcard--blue { --a: var(--a-blue); --bg: var(--p-blue); }
.c-fcard--purple { --a: var(--a-purple); --bg: var(--p-purple); }
.c-fcard--green { --a: var(--a-green); --bg: var(--p-green); }
.c-fcard--orange { --a: var(--a-orange); --bg: var(--p-orange); }
.c-fcard--pink { --a: var(--a-pink); --bg: var(--p-pink); }
.c-fcard:hover { background: var(--bg); border-color: var(--a); }
.c-fcard__ic { background: #fff; color: var(--a); box-shadow: 0 6px 14px rgba(0, 0, 0, .08); }
.c-fcard p { color: #3f4f6b; }

/* colourful project thumbnails (mini app window) */
.c-thumb { --t1: #dbe8ff; --t2: #b9d2ff; --tc: var(--a-blue); background: linear-gradient(135deg, var(--t1), var(--t2)); color: var(--tc); }
.c-thumb--green { --t1: #d6f7e7; --t2: #a9e8c9; --tc: var(--a-green); }
.c-thumb--sky { --t1: #d9f2ff; --t2: #a8dcf7; --tc: #0a7bbf; }
.c-thumb--purple { --t1: #ece2ff; --t2: #cdb8fb; --tc: var(--a-purple); }
.c-thumb--orange { --t1: #ffe9cf; --t2: #ffcc96; --tc: var(--a-orange); }
.c-thumb--pink { --t1: #ffe0ea; --t2: #ffb7cb; --tc: var(--a-pink); }
.c-thumb::before { display: none; }
.c-thumb > * { position: relative; }
.c-win { position: absolute !important; top: 10px; left: 12px; display: flex; gap: 5px; }
.c-win i { width: 8px; height: 8px; border-radius: 50%; background: rgba(0, 0, 0, .18); }
.c-ph { width: 74px; height: 74px; border-radius: 22px; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0, 0, 0, .14); }
.c-ph .ic { width: 40px; height: 40px; }
.c-thumb--big .c-ph { width: 110px; height: 110px; border-radius: 32px; }
.c-thumb--big .c-ph .ic { width: 64px; height: 64px; }
.c-bars { position: absolute !important; left: 14px; right: 14px; bottom: 12px; display: grid; gap: 5px; }
.c-bars b { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .75); width: 60%; }
.c-bars b + b { width: 38%; }
.c-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-card { border-color: #e3ecf7; }
.c-tags li { background: #f2f7ff; }

/* challenge banner */
#challenge { background: #fff; padding-top: 0; }
#challenge .c-head { display: none; }
.c-chal { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 24px; align-items: center; background: linear-gradient(120deg, var(--teal-d), #0d5a54); border-radius: 28px; padding: clamp(24px, 4vw, 48px); color: #fff; overflow: hidden; position: relative; }
.c-chal::after { content: ""; position: absolute; width: 300px; height: 300px; right: -80px; top: -110px; border-radius: 50%; background: rgba(245, 184, 46, .16); }
.c-chal__main { background: none; border: 0; box-shadow: none; padding: 0; gap: 16px; border-top: 0; position: relative; z-index: 1; }
.c-chal__tag { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-weight: 800; font-size: 18px; flex-wrap: wrap; }
.c-chal__main h3 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); color: #fff; }
.c-chal__main > p { color: #d3ebe7; font-size: 17px; max-width: 46ch; }
.c-chal__meta { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.c-chal__meta li { display: flex; gap: 10px; align-items: center; }
.c-chal__meta .ic { color: var(--gold); }
.c-chal__meta small { display: block; font-size: 12px; color: #9fd0c8; }
.c-chal__meta b { font-size: 14.5px; }
.c-chal .c-tags li { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .2); color: #fff; }
.c-chal .c-badge { background: var(--gold); color: #3a2a00; }
.c-chal .c-btn-line { color: #fff; }
.c-chal__art { position: relative; min-height: 240px; z-index: 1; }
.c-laptop { position: absolute; inset: 10px 40px 10px 0; background: #fff; border-radius: 16px 16px 6px 6px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); overflow: hidden; }
.c-laptop__bar { height: 22px; background: #edf3fb; display: flex; align-items: center; gap: 5px; padding-left: 10px; }
.c-laptop__bar i { width: 8px; height: 8px; border-radius: 50%; background: #c6d3e6; }
.c-laptop__body { padding: 14px; display: grid; gap: 10px; }
.c-laptop__body b { height: 34px; border-radius: 10px; background: var(--p-blue); }
.c-laptop__body b:nth-child(2) { background: var(--p-green); width: 80%; }
.c-laptop__body b:nth-child(3) { background: var(--p-orange); width: 55%; }
.c-phone { position: absolute; right: 0; bottom: -6px; width: 92px; height: 170px; background: #fff; border: 5px solid #11204a; border-radius: 20px; padding: 14px 8px; display: grid; gap: 8px; align-content: start; box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
.c-phone b { height: 24px; border-radius: 7px; background: var(--p-pink); }
.c-phone b + b { background: var(--p-purple); }

/* mentors + teams row */
.c-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.c-duo .c-head { margin-bottom: 18px; }
.c-duo .c-head h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.c-list { display: grid; gap: 14px; }
.c-row { display: flex; align-items: center; gap: 16px; padding: 16px; background: #fff; border: 1.5px solid #e3ecf7; border-radius: var(--r-l); box-shadow: var(--shadow-1); }
.c-row__main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.c-row h3 { font-size: 17px; letter-spacing: -.02em; line-height: 1.25; }
.c-row h3 a:hover { color: var(--teal); }
.c-sub { color: var(--muted); font-size: 14px; line-height: 1.45; }
.c-sub--t { display: flex; align-items: center; gap: 6px; }
.c-row__act { display: grid; gap: 2px; justify-items: end; flex: none; }
.c-date { flex: none; width: 62px; border-radius: 14px; overflow: hidden; text-align: center; background: #fff; border: 1.5px solid var(--p-pink); }
.c-date small { display: block; background: var(--a-pink); color: #fff; font-weight: 800; font-size: 11px; letter-spacing: .08em; padding: 4px 0; }
.c-date b { display: block; font-size: 24px; line-height: 1.6; color: var(--ink); font-family: var(--f-display); }
.c-list > .c-row:nth-child(3n+2) .c-date { border-color: var(--p-purple); } .c-list > .c-row:nth-child(3n+2) .c-date small { background: var(--a-purple); }
.c-list > .c-row:nth-child(3n) .c-date { border-color: var(--p-orange); } .c-list > .c-row:nth-child(3n) .c-date small { background: var(--a-orange); }
.c-av--lg { width: 52px; height: 52px; }
.c-av--blue { background: var(--p-blue); color: var(--a-blue); } .c-av--purple { background: var(--p-purple); color: var(--a-purple); }
.c-av--green { background: var(--p-green); color: var(--a-green); } .c-av--orange { background: var(--p-orange); color: var(--a-orange); } .c-av--pink { background: var(--p-pink); color: var(--a-pink); }
.c-row--team .c-tags li { font-size: 12px; padding: 3px 8px; }
.c-post { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 16px 18px; border-radius: var(--r-l); background: var(--p-green); border: 1.5px solid #b9ebd2; }
.c-post > .ic { color: var(--a-green); flex: none; }
.c-post div { flex: 1; display: grid; gap: 2px; min-width: 0; }
.c-post b { color: var(--teal-d); } .c-post div span { color: #35514f; font-size: 14px; }

/* achievements with photo slot */
.c-story { display: flex; flex-direction: column; background: #fff; border-radius: var(--r-l); border: 1.5px solid #e3ecf7; box-shadow: var(--shadow-1); overflow: hidden; transition: transform .2s; }
.c-story:hover { transform: translateY(-3px); }
.c-story__img { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: linear-gradient(135deg, var(--p-blue), #b9d2ff); overflow: hidden; }
.c-story__img--purple { background: linear-gradient(135deg, var(--p-purple), #cdb8fb); }
.c-story__img--green { background: linear-gradient(135deg, var(--p-green), #a9e8c9); }
.c-story__img--orange { background: linear-gradient(135deg, var(--p-orange), #ffcc96); }
.c-story__img--pink { background: linear-gradient(135deg, var(--p-pink), #ffb7cb); }
.c-story__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-story__ini { display: none; width: 92px; height: 92px; border-radius: 50%; background: #fff; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 32px; color: var(--teal-d); box-shadow: 0 12px 28px rgba(0, 0, 0, .15); }
.c-story__img.is-empty .c-story__ini { display: grid; }
.c-story__img .c-badge { position: absolute; top: 12px; left: 12px; }
.c-story__body { display: grid; gap: 6px; padding: 18px 20px 20px; }
.c-story__body > b { color: var(--teal); font-size: 14px; }
.c-story__body h3 { font-size: 18px; letter-spacing: -.02em; line-height: 1.25; }
.c-story__body p { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* community member profiles */
#achievements .c-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.c-story--profile { height: 100%; }
.c-story__img--profile { min-height: 188px; aspect-ratio: auto; padding: 22px; background: linear-gradient(135deg, #edf4ff, var(--mint)); }
.c-story__img--profile img,
.c-story__img--profile .c-story__ini { position: relative; inset: auto; width: 144px; height: 144px; border: 4px solid #fff; border-radius: 50%; object-fit: cover; box-shadow: 0 8px 22px rgba(11, 26, 62, .14); }
.c-story__img--profile .c-story__ini { font-size: 30px; }
.c-story--profile .c-story__body { display: flex; flex: 1; flex-direction: column; gap: 10px; }
.c-story__body .c-story__name { color: var(--ink); font-size: 21px; }
.c-story__body .c-story__headline { color: var(--blue); font-size: 14px; font-weight: 800; line-height: 1.45; }
.c-story__body .c-story__detail { color: var(--muted); font-size: 13.5px; }
.c-story__body .c-story__about { line-height: 1.6; }
.c-story__interests { display: grid; gap: 7px; padding-top: 2px; }
.c-story__interests > b { color: var(--mint-ink); font-size: 13px; }
.c-story__interests .c-tags { gap: 6px; }
.c-story__interests .c-tags li { background: var(--mint); border-color: var(--mint-2); color: #0b5a3e; }
.c-story__linkedin { align-self: flex-start; margin-top: auto; background: var(--blue); color: #fff; }
.c-story__linkedin:hover { background: #155bd0; }

/* final banner */
.c-cta { padding-block: 0 clamp(40px, 6vw, 72px); background: var(--ice); }
.c-cta__in { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; padding: clamp(24px, 4vw, 40px) clamp(22px, 4vw, 48px); border-radius: 26px; background: linear-gradient(110deg, var(--teal-d), var(--teal)); color: #fff; }
.c-cta h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: -.03em; }
.c-cta p { color: #cfeae6; margin-top: 6px; }
#guidelines { padding-bottom: 20px; }
.c-rules li::before { background: var(--p-purple); color: var(--a-purple); }
.c-rules li:nth-child(2n)::before { background: var(--p-orange); color: var(--a-orange); }
.c-rules li:nth-child(3n)::before { background: var(--p-green); color: var(--a-green); }

@media (max-width: 1100px) { .c-duo { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .c-hero__in { grid-template-columns: 1fr; }
  .c-hero__art { display: none; }
  .c-hero::before { width: 340px; height: 340px; right: -160px; top: -140px; }
  .c-chal { grid-template-columns: 1fr; }
  .c-chal__art { display: none; }
  #achievements .c-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .c-hero .c-btn-line { background: #fff; }
  .c-row { flex-wrap: wrap; }
  .c-row__act { width: 100%; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .c-row--team { align-items: flex-start; }
  #achievements .c-grid--3 { grid-template-columns: 1fr; }
  .c-post { flex-wrap: wrap; } .c-post .btn { width: 100%; }
  .c-chal { border-radius: 22px; }
  .c-chal__main .c-actions .btn { width: 100%; }
  .c-cta__in .btn { width: 100%; }
}
.c-cta h2 { color: #fff; }

.c-thumb--contain img { object-fit: contain; }
.c-thumb--big { aspect-ratio: 4 / 3; }
.c-thumb--big img { border-radius: inherit; }
