/*
 * Student Innovation Challenge — theme layer in the main site's new look.
 * Loaded LAST on every page in /student-innovation-challenge/. It only restyles: no page logic depends on it.
 * Remove the <link> to this file (or the file) to get the previous look back.
 *
 * Same tokens as the main site and Open Source Week: Poppins headings at 600–700, pill buttons,
 * 20px cards with a soft shadow, 12px-radius fields with a green focus ring, red-dash green eyebrows,
 * dark panels in near-black with a green glow, heroes with the green glow + map of Canada + dot grid.
 */
:root {
  --lx-black: #111111; --lx-green: #10AC84; --lx-green-dark: #087D60; --lx-green-light: #E7F6F0;
  --lx-red: #D60000; --lx-muted: #5C5C5C; --lx-line: #E5E5E5; --lx-page: #F7F7F7;
  --lx-head: Poppins, Arial, Helvetica, sans-serif; --lx-radius: 20px;
  --lx-shadow: 0 10px 30px rgba(0,0,0,.06); --lx-shadow-lift: 0 18px 40px rgba(0,0,0,.10);
  --lx-dark: radial-gradient(ellipse 70% 90% at 100% 0%, rgba(16,172,132,.20), rgba(16,172,132,0) 62%),
             linear-gradient(150deg, #141414 0%, #1A1A1A 60%, #15302A 100%);
}

/* ── Headings: Poppins 700 (h1/h2) and 600 (h3/h4) instead of 800 ───────────── */
html body main:not(#_) :is(h1, h2):not(footer *):not(header *) {
  font-family: var(--lx-head) !important; font-weight: 700 !important; letter-spacing: -.015em !important;
}
html body main:not(#_) :is(h3, h4):not(footer *):not(header *) {
  font-family: var(--lx-head) !important; font-weight: 600 !important; letter-spacing: -.005em !important;
}

/* ── Eyebrows / kickers: green caps with a short red dash ─────────────────── */
html body :is(.sic-eyebrow, .sicx-eyebrow, .sici-eyebrow, .sic-kicker, .sic-part-kicker, .sic-partners-kicker,
  .sic-contact-kicker, .sic-prospectus-kicker, .sic-partners-level-tag):not(#_) {
  display: flex !important; width: fit-content; max-width: 100%; align-items: center; gap: 10px;
  font-family: var(--lx-head) !important; font-size: 12.5px !important; font-weight: 600 !important;
  letter-spacing: .14em !important; text-transform: uppercase !important; color: var(--lx-green) !important;
}
html body :is(.sic-eyebrow, .sicx-eyebrow, .sici-eyebrow, .sic-kicker, .sic-part-kicker, .sic-partners-kicker,
  .sic-contact-kicker, .sic-prospectus-kicker)::before {
  content: ""; width: 26px; height: 2px; background: var(--lx-red); border-radius: 2px; flex: none;
}
/* On dark heroes and panels the eyebrow is the light green of the main heroes */
html body :is(.sic-hero, .sicx-hero, .sici-hero, .sicx-panel-dark, .sicx-cta, .sic-partners-cta, .sici-foot)
  :is(.sic-eyebrow, .sicx-eyebrow, .sici-eyebrow, .sic-partners-kicker):not(#_) { color: #6EE7C5 !important; }

/* ── Heroes: standard banner (green glow, map of Canada, dot grid) ────────── */
html body :is(.sic-hero, .sicx-hero, .sici-hero):not(#_) {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(ellipse 60% 120% at 78% 50%, rgba(16,172,132,.28) 0%, rgba(16,172,132,0) 70%),
              linear-gradient(115deg, #151515 0%, #1B2723 50%, #12382E 100%) !important;
}
html body :is(.sic-hero, .sicx-hero, .sici-hero):not(#_)::before {
  content: "" !important; position: absolute !important; inset: 0 !important; z-index: -1 !important; pointer-events: none;
  background: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px) 0 0 / 26px 26px !important;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 65%); mask-image: linear-gradient(90deg, transparent 0%, #000 65%);
  opacity: 1 !important;
}
html body :is(.sic-hero, .sicx-hero, .sici-hero):not(#_)::after {
  content: "" !important; position: absolute !important; z-index: -1 !important; pointer-events: none;
  top: -6% !important; bottom: -6% !important; left: auto !important; right: 5% !important; width: 40% !important; height: auto !important;
  background: url("/assets/images/canada-map.svg") center / contain no-repeat !important; opacity: .24 !important;
  border: 0 !important; border-radius: 0 !important; transform: none !important; filter: none !important;
}
html body :is(.sic-hero, .sicx-hero, .sici-hero) h1 { color: #fff !important; letter-spacing: -.02em !important; }
html body .sic-hero .sic-date {
  border-color: rgba(110,231,197,.35) !important; background: rgba(16,172,132,.14) !important;
}
@media (max-width: 767px) {
  html body :is(.sic-hero, .sicx-hero, .sici-hero):not(#_)::after { width: 85% !important; right: -22% !important; opacity: .14 !important; }
}

/* ── Buttons: pills, weight 600 ───────────────────────────────────────────── */
html body :is(.sic-button, .sicx-btn, .lac-btn, .sic-prospectus-download, .sjp-btn, .sici-cta a, .sici-toggle-all,
  .sic-registration-section button[type=submit], .sic-sponsor-section button[type=submit], .sic-contact-form button[type=submit]):not(#_) {
  border-radius: 999px !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s;
}
html body :is(.sic-button, .sicx-btn, .lac-btn-primary, .sic-prospectus-download, .sjp-btn):not(#_):hover { transform: translateY(-1px); }
html body :is(.sic-button, .sicx-btn, .lac-btn, .sic-prospectus-download):not(.sici-toggle-all):not(#_) { min-height: 46px; padding-left: 24px !important; padding-right: 24px !important; }
html body :is(.sic-button, .lac-btn-primary, .sicx-btn-primary):not(#_) { box-shadow: 0 8px 20px rgba(16,172,132,.22); }
/* The two-line download button in the home hero: a pill with comfortable padding */
html body .sicx-hero .sicx-btn:not(#_) { padding-top: 10px !important; padding-bottom: 10px !important; }
/* Button-like text links */
html body :is(.sicp-link, .sicx-link):not(#_) { border-radius: 14px; }

/* ── Cards and panels: 20px corners, soft shadow ──────────────────────────── */
html body :is(.sic-grid article, .sic-contact-card, .sic-partners-level, .sic-sponsor-card, .sic-registration-section .lac-card,
  .sic-sponsor-section .lac-card, .sicx-part, .sicx-guide, .sicx-role, .sicx-step, .sicx-facts, .sicx-division,
  .sici-card, .sici-stats, .sjp-card, .sjp-panel, .sic-part-participant, .sic-part-card, .sic-part-step,
  .sic-rules-page .sr-article, .sic-rules-page .sr-card, .sic-toc, .sic-prospectus-panel, .sicp-grid > *, .sic-project-form,
  .sic-note, .sicx-note, .sicx-panel, .sicx-panel-light, .sic-partners-featured, .sic-partners-benefits > *):not(#_) {
  border-radius: var(--lx-radius) !important;
}
html body :is(.sic-grid article, .sic-contact-card, .sic-partners-level, .sic-registration-section .lac-card, .sic-sponsor-section .lac-card,
  .sicx-part, .sicx-guide, .sicx-role, .sicx-step, .sicx-division, .sici-card, .sjp-card, .sjp-panel,
  .sic-part-participant, .sic-part-card, .sic-part-step, .sic-rules-page .sr-article, .sic-prospectus-panel, .sicx-panel-light):not(#_) {
  box-shadow: var(--lx-shadow) !important;
}
html body :is(.sic-grid article, .sic-partners-level, .sicx-part, .sicx-role, .sicx-step, .sicx-division,
  .sic-part-participant, .sic-part-card, .sic-part-step):not(#_) { transition: transform .25s, box-shadow .25s; }
html body :is(.sic-grid article, .sic-partners-level, .sicx-part, .sicx-role, .sicx-step, .sicx-division,
  .sic-part-participant, .sic-part-card, .sic-part-step):not(#_):hover { transform: translateY(-3px); box-shadow: var(--lx-shadow-lift) !important; }
/* Icon chips: rounded squares in the main green tint */
html body :is(.sicx-step-icon, .sicx-role-icon, .sicx-guide-icon, .sic-partners-benefit-icon):not(#_) { border-radius: 14px !important; }

/* ── Dark panels: near-black with a green glow instead of black/red ───────── */
html body :is(.sicx-panel-dark, .sicx-cta, .sic-partners-cta, .sici-foot, .sicp-timeline, .sic-part-cta):not(#_) {
  background: var(--lx-dark) !important; border-radius: var(--lx-radius) !important;
}

/* ── Forms: roomy fields, green focus ring ────────────────────────────────── */
html body :is(.lac-input, .lac-select, .lac-textarea, .sic-contact-form input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
  .sic-contact-form select, .sic-contact-form textarea, .sic-project-form input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
  .sic-project-form textarea, .sjp-panel input[type=number], .sjp-panel textarea):not(#_) {
  border: 1.5px solid #DDDDDD !important; border-radius: 12px !important; font-size: 15px !important; background-color: #fff !important;
  min-height: 48px; padding: 11px 14px !important; color: var(--lx-black) !important; transition: border-color .15s, box-shadow .15s;
}
html body :is(.lac-textarea, .sic-contact-form textarea, .sic-project-form textarea, .sjp-panel textarea):not(#_) { min-height: 120px; line-height: 1.55; }
html body :is(.lac-input, .lac-select, .lac-textarea, .sic-contact-form input, .sic-contact-form select, .sic-contact-form textarea,
  .sic-project-form input, .sic-project-form textarea, .sjp-panel input, .sjp-panel textarea):not(#_):focus {
  border-color: var(--lx-green) !important; outline: 0 !important; box-shadow: 0 0 0 3px var(--lx-green-light) !important;
}
html body :is(.lac-label, .sic-contact-form label, .sic-project-form label):not(#_) { font-weight: 600 !important; color: #333 !important; }
html body main input[type=checkbox], html body main input[type=radio] { accent-color: var(--lx-green); }
html body :is(.sic-sponsor-consent, .sic-registration-section label:has(> input[type=checkbox])):not(#_) { border-radius: 12px !important; }
html body :is(.sic-form-success):not(#_) { border-radius: 14px !important; background: #E8F8F2 !important; border: 1px solid #BFE9DA !important; color: #0A6B51 !important; }
html body :is(.sic-form-error):not(#_) { border-radius: 14px !important; background: #FDEDED !important; border: 1px solid #F5C2C2 !important; color: #A30000 !important; }

/* ── Small tags / badges: pills ───────────────────────────────────────────── */
html body :is(.sici-badge, .sic-part-participant-division, .sicx-part-div, .sic-part-number, .sicx-step-num):not(#_) { border-radius: 999px !important; }

/* ── Sections on the light grey page background like the main site ───────── */
html body :is(.sicx-section, .sic-content):not(#_) { scroll-margin-top: 90px; }

/* ── Small readability fixes ──────────────────────────────────────────────── */
/* Projects page timeline: the step names were dark text on the dark panel */
html body .sicp-timeline b:not(#_) { color: #fff !important; }
html body .sicp-timeline span:not(#_) { color: #C9D6D0 !important; }
/* "(optional)" next to field labels was too light to read */
html body .lac-label .opt:not(#_), html body label .opt:not(#_) { color: #767676 !important; }
