/**
 * Supercomputing Challenge 2026–2027 landing theme tokens.
 * Palette sampled from official t-shirt artwork (May 2026).
 */

:root {
  /* Typography — IBM Plex pairs with hero artwork monospace voice */
  --sc-font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --sc-font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Sampled from PNG */
  --sc-bg-deep: #030913;
  --sc-bg-elevated: #0b1522;
  --sc-page-background: linear-gradient(
    142deg,
    #02070e 0%,
    #050d18 42%,
    #0b1022 74%,
    #07101a 100%
  );
  --sc-valley-blue: #013c91;
  --sc-teal: #014f90;
  /* Greens — three roles only; do not introduce one-off hex greens in feature CSS. */
  --sc-peak-green: #028a6c; /* deep: text on cream/light, path fills */
  --sc-peak-green-bright: #2fd6a5; /* bright: accents on dark UI */
  --sc-editorial-green: #58d7ad; /* mid: stage labels, editorial chrome */
  --sc-brand-orange: #f4b417;
  --sc-brand-yellow: #fbbb0f;
  /* Logo accent red — used sparingly for emphasis (sampled from the SC logo triangle). */
  --sc-brand-red: #e0231b;
  /* Studio cream — intentional light bands on the dark landing (stats, quicklinks). */
  --sc-studio-cream: #f7f4ec;
  --sc-studio-cream-deep: #f3f0e8;
  --sc-studio-cream-band: linear-gradient(
    180deg,
    var(--sc-studio-cream) 0%,
    var(--sc-studio-cream-deep) 100%
  );
  --sc-heading-h3-color: var(--sc-brand-yellow);
  --sc-text-muted: #b9c5d4;
  --sc-grid-line: rgba(128, 177, 230, 0.04);
  --sc-grid-line-teal: rgba(47, 214, 165, 0.055);
  --sc-grid-line-blue: rgba(74, 150, 255, 0.045);
  --sc-grid-size: 64px;
  --sc-grid-pulse-green: rgba(2, 138, 108, 0.9);
  --sc-grid-pulse-green-soft: rgba(2, 138, 108, 0.2);
  --sc-surface-gradient: linear-gradient(135deg, var(--sc-valley-blue) 0%, var(--sc-teal) 45%, var(--sc-peak-green) 100%);
  --sc-brand-gradient: linear-gradient(135deg, var(--sc-brand-orange) 0%, var(--sc-brand-yellow) 100%);
  --sc-header-bg: rgba(3, 9, 19, 0.94);
  --sc-auth-nav-bg: rgba(4, 11, 21, 0.97);

  /* Translucent peak-green panels (content containers) */
  --sc-surface-card-gradient: linear-gradient(
    135deg,
    rgba(10, 20, 32, 0.96) 0%,
    rgba(9, 25, 35, 0.94) 58%,
    rgba(7, 15, 25, 0.98) 100%
  );
  --sc-surface-card-gradient-muted: linear-gradient(
    135deg,
    rgba(12, 20, 32, 0.88) 0%,
    rgba(10, 29, 34, 0.82) 55%,
    rgba(8, 16, 26, 0.92) 100%
  );
  --sc-surface-card-gradient-strong: linear-gradient(
    135deg,
    rgba(16, 28, 45, 0.97) 0%,
    rgba(13, 40, 45, 0.94) 55%,
    rgba(10, 21, 34, 0.97) 100%
  );
  --sc-surface-card-bg: var(--sc-surface-card-gradient);
  --sc-surface-card-bg-muted: var(--sc-surface-card-gradient-muted);
  --sc-surface-card-bg-strong: var(--sc-surface-card-gradient-strong);
  --sc-surface-card-border: rgba(116, 170, 227, 0.18);
  --sc-surface-card-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 70px rgba(0, 0, 0, 0.22);

  /*
   * Ops system — role hubs + registration.
   * Denser cards stay; accents/surfaces share the landing brand tokens so
   * these flows do not read as a second palette.
   */
  --sc-ops-surface: #121923;
  --sc-ops-surface-raised: #171f2a;
  --sc-ops-field: color-mix(in srgb, var(--sc-bg-deep) 88%, #ffffff 4%);
  --sc-ops-border: var(--sc-surface-card-border);
  --sc-ops-border-strong: rgba(116, 170, 227, 0.28);
  --sc-ops-rule: rgba(116, 170, 227, 0.22);
  --sc-ops-ink: #f4f8fc;
  --sc-ops-muted: var(--sc-text-muted);
  --sc-ops-accent: var(--sc-peak-green-bright);
  --sc-ops-accent-mid: var(--sc-editorial-green);
  --sc-ops-accent-soft: color-mix(in srgb, var(--sc-peak-green-bright) 14%, transparent);
  --sc-ops-accent-border: color-mix(in srgb, var(--sc-peak-green-bright) 55%, transparent);
  --sc-ops-accent-deep-soft: color-mix(in srgb, var(--sc-peak-green) 16%, transparent);
  --sc-ops-highlight: var(--sc-brand-yellow);
  --sc-ops-highlight-soft: color-mix(in srgb, var(--sc-brand-yellow) 22%, transparent);
  --sc-ops-danger: var(--sc-brand-red);
  --sc-ops-cream: var(--sc-studio-cream);

  /*
   * Spacing scale — landing bands, public masthead/document, forms.
   * Prefer these over one-off clamps in feature CSS.
   */
  --sc-landing-max: 1200px;
  --sc-landing-pad: clamp(1.5rem, 5vw + 1rem, 4.5rem);
  --sc-band-xs: clamp(1.25rem, 3vw, 2.25rem);
  --sc-band-sm: clamp(2.5rem, 5vw, 3.5rem);
  --sc-band-md: clamp(3rem, 6vw, 5rem);
  --sc-band-lg: clamp(4rem, 8vw, 6.5rem);
  --sc-band-xl: clamp(5rem, 10vw, 9rem);
  --sc-head-gap: clamp(2.5rem, 4vw, 3.5rem);
  --sc-inset: clamp(1.5rem, 3.5vw, 2.75rem);
  --sc-gap: clamp(2rem, 5vw, 4rem);
  --sc-gap-lg: clamp(3rem, 8vw, 7.5rem);
  --sc-page-content-max: 920px;
  --sc-page-wide-max: 1120px;
  /* Legacy alias used by update.css mobile gutters */
  --sc-mobile-pad: var(--sc-landing-pad);

  --sc-surface-card-grid:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(1, 79, 144, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 79, 144, 0.18) 1px, transparent 1px);
  --sc-surface-card-grid-size: 32px 32px, 32px 32px, 64px 64px, 64px 64px;

  /* Corner radii — engineered / grid-aligned (sharp structure, pills for CTAs). */
  --sc-radius-none: 0;
  --sc-radius-sm: 4px;
  --sc-radius-md: 6px;
  --sc-radius-lg: 8px;
  --sc-radius-pill: 999px;
  --sc-radius-round: 50%;

  /* Chamfered corners — clipped 45° cuts (wireframe / plot cage). */
  --sc-chamfer-sm: 4px;
  --sc-chamfer-md: 6px;
  --sc-chamfer-lg: 8px;
  --sc-chamfer-clip-sm: polygon(
    4px 0,
    calc(100% - 4px) 0,
    100% 4px,
    100% calc(100% - 4px),
    calc(100% - 4px) 100%,
    4px 100%,
    0 calc(100% - 4px),
    0 4px
  );
  --sc-chamfer-clip-md: polygon(
    6px 0,
    calc(100% - 6px) 0,
    100% 6px,
    100% calc(100% - 6px),
    calc(100% - 6px) 100%,
    6px 100%,
    0 calc(100% - 6px),
    0 6px
  );
  --sc-chamfer-clip-lg: polygon(
    8px 0,
    calc(100% - 8px) 0,
    100% 8px,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    8px 100%,
    0 calc(100% - 8px),
    0 8px
  );

  /* Map legacy Ygency variables */
  --ygency-primary-color: var(--sc-brand-yellow);
  --ygency-primary-rgb: 251, 187, 15;
  --ygency-dark-color: var(--sc-bg-deep);
  --ygency-tertiary-color: var(--sc-bg-elevated);
  --ygency-headline-color: #ffffff;
  --ygency-body-color: rgba(255, 255, 255, 0.86);
  --ygency-border-color: rgba(255, 255, 255, 0.12);
  /* Headings in style.css use --ygency-secondary-font (was Inter). */
  --ygency-primary-font: var(--sc-font-sans);
  --ygency-secondary-font: var(--sc-font-sans);
}

/* ------------------------------------------------------------------ */
/* Base & background motif                                            */
/* ------------------------------------------------------------------ */

body {
  background: var(--sc-page-background) fixed !important;
  color: var(--ygency-body-color);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.34;
  background-image:
    linear-gradient(var(--sc-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--sc-grid-line) 1px, transparent 1px),
    linear-gradient(var(--sc-grid-line-blue) 1px, transparent 1px),
    linear-gradient(90deg, var(--sc-grid-line-blue) 1px, transparent 1px);
  background-size: var(--sc-grid-size) var(--sc-grid-size), var(--sc-grid-size) var(--sc-grid-size), 96px 96px, 96px 96px;
}

body.sc-landing-page::before {
  opacity: 0.4;
}

/* H3 section subheads — brand yellow in 2627 content areas */
body.sc-site-shell .sc-public-wrap__main h3,
body.sc-site-shell .sc-registration-wrap__main h3,
body.sc-site-shell .sc-registration-wrap h3,
body.sc-site-shell .sc-login-wrap h3,
body.sc-site-shell .sc-auth-wrap__main h3,
body.sc-site-shell .sc-auth-wrap__content h3,
body.sc-site-shell .node__content h3,
body.sc-site-shell .field--name-body h3,
body.sc-landing-page .sc-landing-impact-card h3 {
  color: var(--sc-heading-h3-color);
}

body.sc-site-shell .sc-public-wrap__main h3 a,
body.sc-site-shell .sc-registration-wrap__main h3 a,
body.sc-site-shell .sc-registration-wrap h3 a,
body.sc-site-shell .sc-login-wrap h3 a,
body.sc-site-shell .sc-auth-wrap__main h3 a,
body.sc-site-shell .sc-auth-wrap__content h3 a,
body.sc-site-shell .node__content h3 a,
body.sc-site-shell .field--name-body h3 a,
body.sc-landing-page .sc-landing-impact-card h3 a {
  color: inherit;
}

/* Wandering lights on grid lines (canvas, grid-lights-path.js) */
.sc-grid-lights-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* Green pulse traveling along grid lines (masked to match the white grid). */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: linear-gradient(
    115deg,
    transparent 0%,
    transparent 34%,
    var(--sc-grid-pulse-green-soft) 40%,
    var(--sc-grid-pulse-green) 50%,
    var(--sc-grid-pulse-green-soft) 60%,
    transparent 66%,
    transparent 100%
  );
  background-size: 55% 100%;
  background-repeat: no-repeat;
  -webkit-mask-image:
    linear-gradient(#fff 1px, transparent 1px),
    linear-gradient(90deg, #fff 1px, transparent 1px);
  mask-image:
    linear-gradient(#fff 1px, transparent 1px),
    linear-gradient(90deg, #fff 1px, transparent 1px);
  -webkit-mask-size: var(--sc-grid-size) var(--sc-grid-size);
  mask-size: var(--sc-grid-size) var(--sc-grid-size);
  -webkit-mask-composite: source-over;
  mask-composite: add;
  animation: sc-grid-pulse-sweep 20s ease-in-out infinite;
}

body.sc-landing-page::after {
  animation-duration: 20s;
}

/* Sweep stays snappy (~3.5s); most of the 20s cycle is idle between waves. */
@keyframes sc-grid-pulse-sweep {
  0% {
    background-position: -55% 50%;
    opacity: 0.15;
  }

  5% {
    opacity: 0.65;
  }

  14% {
    background-position: 155% 50%;
    opacity: 0.65;
  }

  18% {
    opacity: 0.2;
  }

  100% {
    background-position: 155% 50%;
    opacity: 0.15;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::after {
    animation: none;
    opacity: 0;
  }
}

.site-footer {
  background: var(--sc-bg-elevated) !important;
}

/* ------------------------------------------------------------------ */
/* Typography                                                         */
/* ------------------------------------------------------------------ */

body.sc-site-shell,
body.sc-landing-page {
  /* Re-assert after style.css body { --ygency-*-font: Inter }. */
  --ygency-primary-font: var(--sc-font-sans);
  --ygency-secondary-font: var(--sc-font-sans);
  font-family: var(--sc-font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.sc-site-shell :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6),
body.sc-landing-page :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) {
  font-family: var(--sc-font-sans);
}

.sc-tagline,
.hero-area-two .sc-tagline {
  font-family: var(--sc-font-mono);
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  color: var(--sc-brand-orange);
  margin-bottom: 2rem;
}

.hero-title,
.section-title h2,
.headline-area .marquee-item strong {
  font-family: var(--sc-font-sans);
  font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Header & navigation                                                */
/* ------------------------------------------------------------------ */

.main-header,
.header-upper,
.header-style1.site-header,
.header-style2.site-header {
  background-color: rgba(13, 13, 25, 0.92) !important;
}

.main-header .navbar-nav a.nav-link,
.header-section.style1 ul li a,
.main-menu .navbar-nav li a {
  color: #ffffff !important;
}

.main-header .navbar-nav a.nav-link:hover,
.main-header .navbar-nav a.nav-link.active,
.header-section.style1 ul li a:hover {
  color: var(--sc-brand-yellow) !important;
}

.header-top.bgc-primary {
  background: var(--sc-bg-elevated) !important;
}

/* ------------------------------------------------------------------ */
/* Hero                                                               */
/* ------------------------------------------------------------------ */

.sc-hero-section,
.hero-area-two {
  background-color: var(--sc-bg-deep) !important;
  background-image: none !important;
  position: relative;
}

.hero-area-two::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--sc-surface-gradient);
}

.hero-two-image img {
  border-radius: var(--sc-radius-md);
  box-shadow: 0 12px 40px rgba(1, 60, 145, 0.35);
}

.hero-two-content .explore-more,
.hero-two-btn .explore-more {
  color: var(--sc-brand-yellow);
}

.sub-title::before,
.section-title .sub-title {
  color: var(--sc-brand-orange) !important;
}

/* ------------------------------------------------------------------ */
/* Buttons & CTAs                                                     */
/* ------------------------------------------------------------------ */

.theme-btn,
a.theme-btn,
.read-more,
.bgc-primary:not(.headline-area):not(.advertise-banner) {
  background: var(--sc-brand-gradient) !important;
  border-color: var(--sc-brand-yellow) !important;
  color: var(--sc-bg-deep) !important;
}

.theme-btn:hover,
a.theme-btn:hover,
.read-more:hover {
  background: var(--sc-brand-orange) !important;
  border-color: var(--sc-brand-orange) !important;
  color: #ffffff !important;
}

.theme-btn.style-two,
a.theme-btn.style-two {
  background: transparent !important;
  border: 2px solid var(--sc-brand-yellow) !important;
  color: var(--sc-brand-yellow) !important;
}

.theme-btn.style-two:hover,
a.theme-btn.style-two:hover {
  background: var(--sc-brand-gradient) !important;
  color: var(--sc-bg-deep) !important;
}

/* ------------------------------------------------------------------ */
/* Yellow marquee banners                                             */
/* ------------------------------------------------------------------ */

.headline-area.bgc-primary,
#block-supercomputing-challenge-2425yellowbanner,
#block-supercomputing-challenge-2425yellowbanner-2,
.block-block-content[id*="2425yellowbanner"] {
  background: var(--sc-brand-gradient) !important;
}

.headline-area.bgc-primary .marquee-item,
.headline-area.bgc-primary .marquee-item strong,
.headline-area.bgc-primary .marquee-item em {
  color: var(--sc-bg-deep) !important;
}

.advertise-banner.bgc-primary {
  background: var(--sc-bg-elevated) !important;
  border: 1px solid rgba(251, 187, 15, 0.25);
}

/* ------------------------------------------------------------------ */
/* Section accents                                                    */
/* ------------------------------------------------------------------ */

.section-title .sub-title::after,
.sub-title.mb-15::after {
  filter: hue-rotate(35deg) saturate(1.4);
}

.feature-item .icon,
.counter-item .count-text,
.service-item .icon {
  color: var(--sc-brand-yellow) !important;
}

/* Override hardcoded mint/lime in compiled style.css */
[style*="#55E6A5"],
[style*="#e5ff19"] {
  color: var(--sc-brand-yellow) !important;
}

/* Feature section top gradient */
.feature-item::before,
.features-area .feature-item::after,
.testimonial-item::before {
  background: var(--sc-surface-gradient) !important;
}

/* Testimonial glow — replace #55E6A5 radial/linear gradients */
.testimonial-item .author-text::before,
.testimonials-area .testimonial-item::after,
.testimonial-active .slick-slide::before {
  background: radial-gradient(49.57% 329259.92% at 50.43% 100.01%, var(--sc-teal) 20%, rgba(2, 138, 108, 0) 100%) !important;
}

.testimonial-item .quote-icon::after,
.testimonials-page .testimonial-item::before {
  background: linear-gradient(90deg, var(--sc-peak-green) 0.86%, rgba(2, 138, 108, 0) 100%) !important;
}

.features-area .feature-item .icon::before {
  background: linear-gradient(180deg, var(--sc-peak-green) 0%, rgba(2, 138, 108, 0) 100%) !important;
}

/* Links */
a:not(.theme-btn):not(.btn):not(.nav-link):hover {
  color: var(--sc-brand-yellow);
}

/* ------------------------------------------------------------------ */
/* Footer                                                             */
/* ------------------------------------------------------------------ */

.footer-top,
.footer-bottom,
.footer-classic {
  background-color: var(--sc-bg-elevated) !important;
}

.footer-top a:hover,
.site-footer a:hover {
  color: var(--sc-brand-yellow) !important;
}

/* Testimonials section */
.testimonial-section,
#block-supercomputing-challenge-2425testimonials {
  background-color: var(--sc-bg-deep) !important;
}

.testimonials-active::before,
.testimonial-item::before,
.testimonial-item .author-text::before {
  background: radial-gradient(49.57% 329259.92% at 50.43% 100.01%, var(--sc-teal) 20%, rgba(2, 138, 108, 0) 100%) !important;
}

/* About / team / sponsors sections */
#block-supercomputing-challenge-2425about,
#block-supercomputing-challenge-2425team,
#block-supercomputing-challenge-2425sponsors,
#block-supercomputing-challenge-2425projectideas {
  background-color: transparent;
}

#block-supercomputing-challenge-2425footer {
  background-color: var(--sc-bg-elevated) !important;
}

/* Catch remaining compiled mint/lime accents (exclude marquee banners) */
:not(.headline-area):not(.advertise-banner).bgc-primary,
[style*="#55e6a5"],
[style*="#55E6A5"],
[style*="#e5ff19"] {
  background-color: var(--sc-brand-yellow) !important;
  background-image: none !important;
}

.headline-area.bgc-primary[style],
.advertise-banner.bgc-primary {
  background: var(--sc-brand-gradient) !important;
}

.features-area .feature-item::before,
.service-area .service-item .icon::after {
  background: var(--sc-surface-gradient) !important;
}


/* Drupal local tasks (View / Edit / Delete) — horizontal pills on 2627 shell */
body.sc-site-shell.user-logged-in nav.tabs,
body.sc-landing-page.user-logged-in nav.tabs {
  position: static !important;
  left: auto !important;
  top: auto !important;
  z-index: auto !important;
  margin: 0 0 1.25rem;
}

body.sc-site-shell.user-logged-in nav.tabs ul.nav.primary,
body.sc-site-shell.user-logged-in .tabs-wrapper .nav-tabs,
body.sc-landing-page.user-logged-in nav.tabs ul.nav.primary,
body.sc-landing-page.user-logged-in .tabs-wrapper .nav-tabs {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center;
  gap: 0.35rem;
  background: transparent !important;
  border: none !important;
  list-style: none;
  margin: 0;
  padding: 0;
  opacity: 1 !important;
}

body.sc-site-shell.user-logged-in nav.tabs ul.nav.primary li,
body.sc-site-shell.user-logged-in .tabs-wrapper .nav-item {
  float: none !important;
  opacity: 1 !important;
  padding: 0 !important;
  margin: 0;
  background: transparent !important;
}

body.sc-site-shell.user-logged-in nav.tabs ul.nav.primary li a,
body.sc-site-shell.user-logged-in .tabs-wrapper .nav-link,
body.sc-site-shell.user-logged-in .tabs-wrapper .tab-toggle {
  display: inline-block;
  padding: 0.5rem 0.9rem !important;
  border-radius: var(--sc-radius-md) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  background: rgba(13, 13, 25, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem !important;
  margin-right: 0 !important;
}

body.sc-site-shell.user-logged-in nav.tabs ul.nav.primary li.active a,
body.sc-site-shell.user-logged-in nav.tabs ul.nav.primary li a.active,
body.sc-site-shell.user-logged-in nav.tabs ul.nav.primary li a.is-active,
body.sc-site-shell.user-logged-in .tabs-wrapper .nav-link.active,
body.sc-site-shell.user-logged-in .tabs-wrapper .nav-link.is-active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

body.sc-site-shell.user-logged-in nav.tabs ul.nav.primary li a:hover,
body.sc-site-shell.user-logged-in .tabs-wrapper .nav-link:hover,
body.sc-site-shell.user-logged-in .tabs-wrapper .tab-toggle:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

@media (max-width: 767.98px) {
  body.sc-site-shell.user-logged-in .tabs-wrapper.is-collapsible .nav-item.active {
    background-color: transparent !important;
  }
}

/* ------------------------------------------------------------------ */
/* Cleanup: remove Ygency yellow spinning / circle decorations        */
/* Sources: html.html.twig preloader, _hero.sass .arrow:before,        */
/*          _about.sass .about-image img rotation                     */
/* ------------------------------------------------------------------ */

.preloader {
  display: none !important;
}

.hero-title .arrow::before {
  display: none !important;
}

.about-image img {
  animation: none !important;
}

/* Restyle giant yellow "Explore more" circle as a simple CTA link */
.hero-two-btn .explore-more {
  width: auto;
  height: auto;
  border-radius: var(--sc-radius-sm);
  padding: 12px 24px;
  background: var(--sc-brand-gradient) !important;
  color: var(--sc-bg-deep) !important;
  flex-direction: row;
  gap: 8px;
}

.hero-two-btn .explore-more i {
  transform: none !important;
}

/* Header: official SCC logo */
.main-header .logo-outer .logo img,
.main-header .mobile-logo img {
  max-height: 65px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ------------------------------------------------------------------ */
/* Shared site shell — header + logged-in dashboard bar               */
/* ------------------------------------------------------------------ */

/* Legacy Ygency .page-wrapper { overflow: hidden } breaks position: sticky */
body.sc-site-shell .page-wrapper,
body.sc-landing-page .page-wrapper,
body.sc-authenticated-page .dialog-off-canvas-main-canvas {
  overflow: visible !important;
}

.sc-landing-header-wrap {
  position: sticky;
  top: 0;
  z-index: 500;
  width: 100%;
}

/* Below Drupal core admin toolbar (CSS-only; no JS measurement). */
body.toolbar-fixed .sc-landing-header-wrap {
  top: 2.4375rem;
}

body.toolbar-fixed.toolbar-horizontal.toolbar-tray-open .sc-landing-header-wrap {
  top: 4.91331rem;
}

.sc-landing-header {
  position: relative;
  z-index: 1;
  background: transparent !important;
  backdrop-filter: none;
  border-bottom: 1px solid transparent !important;
  box-shadow: none;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    backdrop-filter 0.35s ease;
}

.sc-landing-header.is-scrolled,
.sc-landing-header.is-open {
  background: var(--sc-header-bg) !important;
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .sc-landing-header {
    transition: none;
  }
}

.sc-auth-nav {
  background: var(--sc-auth-nav-bg) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.sc-auth-nav__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: var(--sc-landing-max, 1200px);
  margin: 0 auto;
  padding: 0.65rem var(--sc-landing-pad, clamp(1.5rem, 5vw + 1rem, 4.5rem));
  box-sizing: border-box;
}

.sc-auth-nav__search-link {
  justify-self: start;
  white-space: nowrap;
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(13, 13, 25, 0.55) !important;
}

.sc-auth-nav__search-link:hover,
.sc-auth-nav__search-link:focus {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.sc-auth-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-self: end;
}

.sc-auth-nav__link {
  color: #ffffff !important;
}

.sc-auth-nav__link:hover,
.sc-auth-nav__link:focus {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.sc-auth-nav__link.is-active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.sc-auth-nav__link--switch-back {
  color: var(--sc-bg-deep, #0d0d19) !important;
  background: var(--sc-brand-gradient, linear-gradient(135deg, #fbbb0f, #f4b417)) !important;
  border-color: transparent !important;
  font-weight: 700;
}

.sc-auth-nav__link--switch-back:hover,
.sc-auth-nav__link--switch-back:focus {
  color: var(--sc-bg-deep, #0d0d19) !important;
  filter: brightness(1.05);
}

@media (max-width: 768px) {
  .sc-landing-header.is-open .sc-landing-nav {
    background: rgba(9, 11, 22, 0.985) !important;
    border-bottom-color: rgba(255, 255, 255, 0.14) !important;
  }
}

/* ------------------------------------------------------------------ */
/* Sponsor logo tiles (landing partners + /sponsors page)               */
/* ------------------------------------------------------------------ */

.sc-sponsor-logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.5rem;
  padding: 1rem 1.1rem;
  border-radius: var(--sc-radius-md);
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease,
    background-color 0.25s ease;
}

.sc-sponsor-logo-tile:hover,
.sc-sponsor-logo-tile:focus-visible {
  border-color: rgba(251, 187, 15, 0.45);
  background: rgba(13, 13, 25, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  outline: none;
}

.sc-sponsor-logo-tile__img {
  display: block;
  max-width: 100%;
  max-height: 3.25rem;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(1.15);
  opacity: 0.88;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.sc-sponsor-logo-tile:hover .sc-sponsor-logo-tile__img,
.sc-sponsor-logo-tile:focus-visible .sc-sponsor-logo-tile__img {
  filter: grayscale(0) brightness(1);
  opacity: 1;
}

.sc-sponsor-logo-tile--text {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.sc-sponsor-logo-tile__label {
  display: block;
}

.sc-sponsor-logo-tile--page {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  min-height: auto;
  width: 100%;
  padding: 0.85rem 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.sc-sponsor-logo-tile--page:hover,
.sc-sponsor-logo-tile--page:focus-visible {
  background: transparent;
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.sc-sponsor-logo-tile--page .sc-sponsor-logo-tile__img {
  max-height: 2.75rem;
  opacity: 0.85;
  filter: grayscale(1) saturate(0) brightness(1.05);
  transition: filter 180ms ease, opacity 180ms ease;
}

.sc-sponsor-logo-tile--page:hover .sc-sponsor-logo-tile__img,
.sc-sponsor-logo-tile--page:focus-visible .sc-sponsor-logo-tile__img {
  opacity: 1;
  filter: none;
}

.sc-sponsor-logo-tile--page .sc-sponsor-logo-tile__name {
  color: #fff;
  font-weight: 600;
  line-height: 1.4;
}

.sc-sponsor-logo-tile--page:hover .sc-sponsor-logo-tile__name,
.sc-sponsor-logo-tile--page:focus-visible .sc-sponsor-logo-tile__name {
  color: var(--sc-brand-yellow);
}

body.sc-sponsors-page .sc-sponsor-tier__logo-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.sc-sponsors-page .sc-sponsor-tier__logo-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.sc-sponsors-page .sc-sponsor-tier__logo-list li:last-child {
  border-bottom: none;
}

/* Shared CTA buttons (landing + public pages) */
.sc-landing-btn {
  display: inline-block;
  padding: 0.75rem 1.35rem;
  border-radius: var(--sc-radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  line-height: 1.2;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.sc-landing-btn--primary {
  background: var(--sc-brand-gradient);
  color: var(--sc-bg-deep) !important;
  border: 2px solid transparent;
}

.sc-landing-btn--primary:hover,
.sc-landing-btn--primary:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.05);
  outline: none;
}

.sc-landing-btn--outline {
  background: transparent;
  color: #ffffff !important;
  border: 2px solid rgba(251, 187, 15, 0.55);
}

.sc-landing-btn--outline:hover,
.sc-landing-btn--outline:focus-visible {
  background: rgba(251, 187, 15, 0.12);
  border-color: var(--sc-brand-yellow);
  outline: none;
}

/* ------------------------------------------------------------------ */
/* Form checkboxes & radios — side-by-side with comfortable gap         */
/* ------------------------------------------------------------------ */

body.sc-site-shell {
  --sc-form-check-size: 1.125rem;
  --sc-form-check-gap: 0.75rem;
}

body.sc-site-shell :is(
    .webform-submission-form,
    .sc-auth-wrap__card form,
    .sc-public-wrap__main form,
    form.team-formation-form,
    form#user-login-form,
    form.user-login-form,
    form#user-pass,
    form#user-pass-reset
  )
  :is(.form-check, .js-form-type-checkbox.checkbox, .js-form-type-radio.radio) {
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.35rem var(--sc-form-check-gap);
  padding-left: 0 !important;
  padding-right: 0;
  margin-bottom: 0.65rem;
  min-height: 0;
}

body.sc-site-shell :is(
    .webform-submission-form,
    .sc-auth-wrap__card form,
    .sc-public-wrap__main form,
    form.team-formation-form,
    form#user-login-form,
    form.user-login-form,
    form#user-pass,
    form#user-pass-reset
  )
  :is(.form-check-input, input.form-checkbox, input.form-radio) {
  float: none !important;
  flex: 0 0 var(--sc-form-check-size);
  width: var(--sc-form-check-size) !important;
  height: var(--sc-form-check-size) !important;
  min-width: var(--sc-form-check-size) !important;
  min-height: var(--sc-form-check-size) !important;
  max-width: var(--sc-form-check-size) !important;
  max-height: var(--sc-form-check-size) !important;
  margin: 0.15em 0 0 !important;
  padding: 0 !important;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

body.sc-site-shell :is(
    .webform-submission-form,
    .sc-auth-wrap__card form,
    .sc-public-wrap__main form,
    form.team-formation-form,
    form#user-login-form,
    form.user-login-form,
    form#user-pass,
    form#user-pass-reset
  )
  :is(.form-check-input, input.form-checkbox, input.form-radio):checked {
  background-color: var(--sc-brand-yellow) !important;
  border-color: var(--sc-brand-orange) !important;
}

body.sc-site-shell :is(
    .webform-submission-form,
    .sc-auth-wrap__card form,
    .sc-public-wrap__main form,
    form.team-formation-form,
    form#user-login-form,
    form.user-login-form,
    form#user-pass,
    form#user-pass-reset
  )
  input.form-checkbox.form-check-input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%2312121a' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

body.sc-site-shell :is(
    .webform-submission-form,
    .sc-auth-wrap__card form,
    .sc-public-wrap__main form,
    form.team-formation-form,
    form#user-login-form,
    form.user-login-form,
    form#user-pass,
    form#user-pass-reset
  )
  .form-check-label {
  flex: 1 1 0;
  min-width: 0;
  line-height: 1.45;
  padding-left: 0 !important;
}

body.sc-site-shell :is(
    .webform-submission-form,
    .sc-auth-wrap__card form,
    .sc-public-wrap__main form,
    form.team-formation-form,
    form#user-login-form,
    form.user-login-form,
    form#user-pass,
    form#user-pass-reset
  )
  .form-check :is(.description, .webform-element-description, small.description) {
  flex: 1 1 100%;
  margin: 0 0 0 calc(var(--sc-form-check-size) + var(--sc-form-check-gap));
  padding-left: 0;
  line-height: 1.5;
}

/* Checkbox with description only (no visible label) — keep text beside the box */
body.sc-site-shell :is(
    .webform-submission-form,
    .sc-auth-wrap__card form,
    .sc-public-wrap__main form,
    form.team-formation-form
  )
  .form-check-input + :is(.description, .webform-element-description, small.description) {
  flex: 1 1 0;
  margin-left: 0;
}
