@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.section-bordered {
  border-top: 1px solid var(--border-light);
}

.problems-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.problems-grid > * {
  min-width: 0;
}

.problem-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  min-width: 0;
}

.problems-grid .badge-tag {
  white-space: normal;
  overflow-wrap: anywhere;
}

.problem-card {
  min-width: 0;
  background: #f5f0eb;
  padding: 24px;
  border-radius: 4px;
  border-left: 4px solid var(--neon-green);
}

.problem-card-heading,
.problem-card-actions,
.problem-card-reference-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.problem-card-heading {
  margin-bottom: 12px;
}

.problem-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-light-primary);
}

.problem-card-description,
.problem-card-failure-intro {
  font-size: 0.9rem;
  color: var(--text-light-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.problem-card-failure-intro {
  margin-bottom: 12px;
}

.problem-card-failure-modes {
  font-size: 0.88rem;
  color: var(--text-light-secondary);
  line-height: 1.8;
  padding-left: 20px;
  margin-bottom: 16px;
}

.problem-card-actions {
  margin: 16px 0;
}

.problem-card-action {
  flex: 1;
  min-width: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.problem-card-reference {
  min-width: 0;
  background: #f5f0eb;
  padding: 24px;
  border-radius: 4px;
  border-left: 4px solid var(--neon-green);
}

.problem-card-reference-heading {
  margin-bottom: 12px;
}

.problem-card-reference-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.problem-card-reference-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
}

.problems-how-it-works {
  display: none;
  background: #e5e4de;
  padding: 24px;
  border-radius: 4px;
}

.problems-how-it-works-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-light-primary);
}

.problems-how-it-works-list {
  font-size: 0.88rem;
  color: var(--text-light-secondary);
  line-height: 1.8;
  padding-left: 20px;
}

.problems-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-light-secondary);
  padding: 60px 20px;
}

.problems-empty-state .mono-tag {
  display: inline-block;
  margin-bottom: 16px;
}

.problems-empty-state h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 16px 0 8px;
}

.problems-empty-state p {
  max-width: 500px;
  margin: 0 auto 24px;
}

@media (max-width: 768px) {
  .problem-card,
  .problem-card-reference {
    padding: 18px;
  }
}

@media (min-width: 1024px) {
  .problem-pair-has-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 32px;
  }

  .problem-card-reference-heading {
    margin-top: 2px;
  }
}

:root {
  --bg-dark: #101214;
  --bg-dark-card: #171A1E;
  --bg-dark-card-hover: #1F2328;
  --bg-light: #F4F3EE;
  --bg-light-card: #FFFFFF;
  --bg-light-muted: #E8E7E0;
  --border-dark: rgba(255, 255, 255, 0.1);
  --border-light: rgba(0, 0, 0, 0.08);
  --text-dark-primary: #FFFFFF;
  --text-dark-secondary: #8E959F;
  --text-light-primary: #101214;
  --text-light-secondary: #585F69;
  --neon-green: #22EE60;
  --neon-green-hover: #1AE054;
  --neon-green-text: #083313;
  --burnt-orange: #FF4A22;
  --burnt-orange-hover: #E83F19;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  --max-w: 1360px;
  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-dark-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.mono-tag.orange {
  color: var(--burnt-orange);
}

.mono-tag.muted-dark {
  color: var(--text-dark-secondary);
}

.mono-tag.muted-light {
  color: var(--text-light-secondary);
}

.btn-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--neon-green);
  color: #000000;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 4px;
  transition: transform var(--transition), background-color var(--transition);
  text-decoration: none;
}

.btn-green:hover {
  background: var(--neon-green-hover);
  transform: translateY(-1px);
}

.btn-dark-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--text-dark-primary);
  border: 1px solid var(--border-dark);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 4px;
  transition: all var(--transition);
}

.btn-dark-outline:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.btn-black {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #101214;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 16px 32px;
  border-radius: 4px;
  transition: transform var(--transition), background-color var(--transition);
}

.btn-black:hover {
  background: #000000;
  transform: translateY(-2px);
}

.site-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(16, 18, 20, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
  transition: background var(--transition), transform 0.3s ease;
}

/* Sticky navigation – appears after scrolling past the hero */
.site-nav.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--bg-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

/* Hide the bar when scrolling down */
.site-nav.hide {
  transform: translateY(-100%);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-logo-brand {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.nav-logo-desc {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.25;
  letter-spacing: 0.12em;
  color: var(--text-dark-secondary);
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #C8CDD5;
  transition: color var(--transition);
}

.nav-menu a:hover {
  color: #FFFFFF;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.user-profile-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: var(--bg-dark-card-hover);
}

.user-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--neon-green);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #171A1E;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  width: 220px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  padding: 8px;
  display: none;
  flex-direction: column;
  z-index: 1001;
}

.profile-dropdown.open {
  display: flex;
}

.dropdown-user-header {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 6px;
}

.dropdown-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #FFFFFF;
}

.dropdown-user-email {
  font-size: 0.75rem;
  color: var(--text-dark-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-link {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  color: #C8CDD5;
  font-size: 0.85rem;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}

.dropdown-link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
}

.dropdown-link.logout {
  color: #FF5A45;
}

.dropdown-link.logout:hover {
  background: rgba(255, 90, 69, 0.1);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: transform var(--transition);
}

.mobile-nav-pane {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  background: #101214;
  border-bottom: 1px solid var(--border-dark);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
}

.mobile-nav-pane.open {
  display: flex;
}

.mobile-nav-pane a {
  font-size: 1.1rem;
  font-weight: 500;
  color: #FFFFFF;
  padding: 8px 0;
}

.hero-section {
  position: relative;
  background: linear-gradient(to right, rgba(16, 18, 20, 0.95) 0%, rgba(16, 18, 20, 0.85) 50%, rgba(16, 18, 20, 0.92) 100%), url('assets/soe.png'), var(--bg-dark);  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: clamp(60px, 8vw, 110px) 0 40px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
}

.hero-headline {
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #FFFFFF;
  margin: 24px 0;
}

.hero-subhead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-dark-secondary);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-btn-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cad-exploded-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cad-exploded-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.7));
}

.hero-ticker {
  border-top: 1px solid var(--border-dark);
  margin-top: 60px;
  padding-top: 24px;
}

.hero-ticker-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-dark-secondary);
  text-transform: uppercase;
}

.hero-ticker-inner span.highlight {
  color: var(--burnt-orange);
}

.stats-bar-neon {
  background: var(--neon-green);
  color: #000000;
  padding: clamp(28px, 4vw, 42px) 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-box {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 0 28px;
}

.stat-box:not(:last-child) {
  border-right: 1px solid rgba(0, 0, 0, 0.2);
}

.stat-number {
  font-family: var(--font-main);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #000000;
}

.stat-label-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000000;
  line-height: 1.3;
}

.section-cream {
  background-color: var(--bg-light);
  color: var(--text-light-primary);
  padding: clamp(70px, 9vw, 120px) 0;
  border-bottom: 1px solid var(--border-light);
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}

.editorial-left h2 {
  font-size: clamp(2.4rem, 4.8vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-light-primary);
  margin-top: 16px;
}

.editorial-right {
  display: flex;
  flex-direction: column;
  padding-top: 12px;
}

.editorial-lead {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-light-primary);
  margin-bottom: 20px;
}

.editorial-body {
  font-size: 1rem;
  color: var(--text-light-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 600px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.pillar-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-light-primary);
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.section-header-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: inherit;
  margin-top: 12px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition);
}

.link-arrow:hover {
  opacity: 0.7;
}

.projects-three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.project-editorial-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-light-primary);
  transition: transform var(--transition);
}

.project-card-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #E5E4DE;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 18px;
  position: relative;
}

.project-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-editorial-card:hover .project-card-image {
  transform: scale(1.04);
}

.project-card-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light-secondary);
  margin-bottom: 8px;
}

.project-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.project-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-light-primary);
}

.project-card-desc {
  font-size: 0.88rem;
  color: var(--text-light-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.project-card-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.project-card-tools span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 3px 8px;
  background: var(--bg-light-muted);
  border-radius: 2px;
  color: var(--text-light-secondary);
}

.mindset-banner {
  margin-top: 64px;
  background: var(--bg-light-muted);
  border-radius: 4px;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.mindset-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-light-primary);
  margin-top: 6px;
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-dark-primary);
  padding: clamp(70px, 9vw, 120px) 0;
  border-bottom: 1px solid var(--border-dark);
}

.process-grid-four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 60px;
  border-top: 1px solid var(--border-dark);
  padding-top: 36px;
}

.process-step-col {
  display: flex;
  flex-direction: column;
}

.process-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--burnt-orange);
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 20px;
}

.process-heading {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.process-desc {
  font-size: 0.9rem;
  color: var(--text-dark-secondary);
  line-height: 1.65;
}

.challenge-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.challenge-card-light {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.countdown-flex {
  display: flex;
  gap: 12px;
  margin: 28px 0;
}

.cd-box {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  padding: 12px 16px;
  border-radius: 4px;
  min-width: 68px;
  text-align: center;
}

.cd-val {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1;
  color: var(--text-light-primary);
}

.cd-lbl {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light-secondary);
  margin-top: 4px;
}

.workshop-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.workshop-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  transition: transform var(--transition), border-color var(--transition);
  text-decoration: none;
  color: var(--text-light-primary);
}

.workshop-entry:hover {
  transform: translateX(4px);
  border-color: rgba(0, 0, 0, 0.2);
}

.workshop-entry-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 4px;
}

.workshop-entry-sub {
  font-size: 0.85rem;
  color: var(--text-light-secondary);
  margin-top: 2px;
}

.table-editorial-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background: #FFFFFF;
}

.editorial-table {
  width: 100%;
  border-collapse: collapse;
}

.editorial-table th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light-secondary);
  background: var(--bg-light);
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.editorial-table td {
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--text-light-primary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.editorial-table tr:last-child td {
  border-bottom: none;
}

.rank-text-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 2px;
  background: var(--bg-light-muted);
  color: var(--text-light-primary);
}

.rank-text-pill.gold {
  background: #FFF2B2;
  color: #7A5800;
}

.rank-text-pill.silver {
  background: #E3E7ED;
  color: #434B57;
}

.rank-text-pill.bronze {
  background: #FCE1D4;
  color: #8C4318;
}

.badge-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 2px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  color: var(--text-light-secondary);
}

.suggestion-box-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.suggestion-form-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 32px;
}

.form-textarea {
  width: 100%;
  padding: 14px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  resize: vertical;
  min-height: 120px;
  margin-top: 12px;
  outline: none;
  transition: border-color var(--transition);
}

.form-textarea:focus {
  border-color: #101214;
}

.suggestion-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.suggestion-feed-item {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.vote-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  color: var(--text-light-primary);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.vote-action-btn:hover {
  background: #E8E7E0;
  border-color: rgba(0, 0, 0, 0.25);
}

.vote-action-btn.voted {
  background: #E2FDE9;
  border-color: var(--neon-green);
  color: #0B5C22;
  cursor: default;
}

.vote-action-btn.voted svg {
  stroke: #0B5C22;
  fill: rgba(34, 238, 96, 0.2);
}

.vote-count-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 7px;
  border-radius: 2px;
}

.vote-action-btn.voted .vote-count-badge {
  background: rgba(11, 92, 34, 0.12);
}

.banner-orange-cta {
  background: var(--neon-green);
  color: #000000;
  padding: clamp(70px, 9vw, 110px) 0;
}

.privacy-hero {
  padding: clamp(56px, 8vw, 96px) 0 48px;
  background: var(--bg-dark);
  color: var(--text-dark-primary);
}

.privacy-hero h1 {
  margin: 12px 0;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.privacy-hero p {
  max-width: 680px;
  color: var(--text-dark-secondary);
  font-size: 1.05rem;
}

.privacy-updated {
  display: inline-block;
  margin-top: 20px;
  color: var(--text-dark-secondary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.privacy-main {
  padding: 64px 0 88px;
}

.privacy-layout {
  max-width: 920px;
}

.privacy-content section {
  margin-bottom: 36px;
  scroll-margin-top: 96px;
}

.privacy-content h2 {
  margin-bottom: 12px;
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--text-light-primary);
}

.privacy-content p,
.privacy-content li {
  color: var(--text-light-secondary);
  font-size: 0.96rem;
  line-height: 1.75;
}

.privacy-content p + p {
  margin-top: 12px;
}

.privacy-content ul {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.privacy-content a {
  color: #0b8a3e;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-public-display {
  padding: 24px;
  background: #e6f9ee;
  border-left: 4px solid var(--neon-green);
}

@media (max-width: 600px) {
  .privacy-public-display {
    padding: 18px;
  }
}

.orange-cta-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}

.orange-headline {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: #000000;
  margin: 16px 0 20px;
}

.orange-subhead {
  font-size: 1.05rem;
  color: rgba(0, 0, 0, 0.75);
  max-width: 460px;
}

.orange-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer-dark {
  background: #090B0D;
  border-top: 1px solid var(--border-dark);
  padding: 60px 0 36px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-dark);
}

.footer-links-row {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-links-row a {
  font-size: 0.88rem;
  color: var(--text-dark-secondary);
  transition: color var(--transition);
}

.footer-links-row a:hover {
  color: #FFFFFF;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-dark-secondary);
  text-transform: uppercase;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-dialog-card {
  width: 100%;
  max-width: 520px;
  background: #FFFFFF;
  color: var(--text-light-primary);
  border-radius: 4px;
  padding: 36px;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 1.1rem;
  color: var(--text-light-secondary);
}

.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-msg {
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #FFFFFF;
  background: #171A1E;
  border: 1px solid var(--border-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: auto;
}

.toast-msg.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-msg.success {
  border-color: var(--neon-green);
}

.toast-msg.error {
  border-color: #FF4A22;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .editorial-grid {
    grid-template-columns: 1fr;
  }
  .stats-bar-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .stat-box {
    padding: 0;
  }
  .stat-box:not(:last-child) {
    border-right: none;
  }
  .projects-three-col {
    grid-template-columns: 1fr;
  }
  .process-grid-four {
    grid-template-columns: 1fr 1fr;
  }
  .challenge-row-grid {
    grid-template-columns: 1fr;
  }
  .suggestion-box-grid {
    grid-template-columns: 1fr;
  }
  .orange-cta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  #top-login-btn {
    padding: 8px 14px;
    font-size: 0.78rem;
    gap: 4px;
    white-space: nowrap;
  }
  .nav-menu {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  .stats-bar-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .process-grid-four {
    grid-template-columns: 1fr;
  }
  .footer-links-row {
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  #top-login-btn {
    padding: 6px 10px;
    font-size: 0.72rem;
    gap: 3px;
  }
}

.cog-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.cog-grid input { width:100%; padding:10px 12px; background:var(--bg-light); border:1px solid var(--border-light); border-radius:4px; font-family:inherit; font-size:0.9rem; }

/* ---------- Meeting time and place (CTA banner) ---------- */
.meet-line {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.25);
  font-size: 0.95rem;
  color: #000000;
}

.meet-line span:last-child {
  color: rgba(0, 0, 0, 0.75);
  font-size: 0.85rem;
}

/* ---------- Contacts ("The People") ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.contact-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 12px;
}

.contact-role {
  font-size: 0.88rem;
  color: var(--text-light-secondary);
  margin-bottom: 14px;
}

.contact-card a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-light-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .nav-menu { gap: 22px; }
}

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

.btn-black.is-disabled,
.btn-black:disabled,
.btn-green.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.6);
}

.btn-black.is-disabled:hover,
.btn-black:disabled:hover,
.btn-green.is-disabled:hover {
  transform: none;
  background: #101214;
}

.btn-green.is-disabled:hover {
  background: var(--neon-green);
}

/* Anchor buttons can't be truly disabled, so block clicks */
a.is-disabled {
  pointer-events: none;
}

.submit-lock-note {
  margin-top: 14px;
  padding: 10px 14px;
  background: #FFF4E5;
  border-left: 3px solid var(--burnt-orange);
  border-radius: 3px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-light-secondary);
}

.submit-lock-note[hidden] {
  display: none;
}

.submit-lock-note a {
  color: var(--burnt-orange);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cad-exploded-svg:not([src]),
.project-card-image:not([src]) {
  display: none;
}

.cert-panel {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.cert-panel-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 12px 0 24px;
}

.cert-list {
  display: flex;
  flex-direction: column;
  max-height: 520px;
  overflow-y: auto;
}

.cert-member {
  padding: 16px 0;
  border-top: 1px solid var(--border-light);
}

.cert-member:first-child {
  border-top: none;
  padding-top: 0;
}

.cert-member-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cert-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 2px;
  background: #E2FDE9;
  border: 1px solid var(--neon-green);
  color: #0B5C22;
  text-decoration: none;
}

a.cert-badge:hover {
  background: var(--neon-green);
  color: #000000;
}

.cert-empty {
  padding: 24px 0;
  font-size: 0.9rem;
  color: var(--text-light-secondary);
}

.cert-table {
  width: 100%;
  border-collapse: collapse;
}

.cert-table th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light-secondary);
  background: var(--bg-light);
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.cert-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  vertical-align: top;
}

.cert-table tr:last-child td {
  border-bottom: none;
}

.cert-num {
  width: 48px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-light-secondary);
}

.cert-name-cell {
  font-weight: 700;
}

.cert-badge-btn {
  cursor: pointer;
}

.cert-badge-btn:hover {
  background: var(--neon-green);
  color: #000000;
}

/* ---------- Hero podium: top 3 of the current weekly challenge ---------- */
.podium-panel {
  --pg: #7DF56E;
  --pg-deep: #55CF55;
  width: 100%;
  max-width: 420px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(125, 245, 110, 0.10) 0%, rgba(125, 245, 110, 0) 55%),
    linear-gradient(160deg, #1D211F 0%, #151816 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.podium-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.podium-kicker {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #C8CDD5;
}

.podium-kicker i,
.podium-meta i {
  font-style: normal;
  color: #5B626B;
  margin: 0 0.4em;
}

.podium-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(125, 245, 110, 0.14);
  color: var(--pg);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.podium-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pg);
}

.podium-title {
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.podium-title span { color: var(--pg); }

.podium-meta {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.podium-meta i { margin: 0 8px; }
.podium-week { color: #FF6B4A; }
.podium-code { color: #D5DAE0; }

.podium-sub {
  margin-top: 4px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #8E959F;
}

/* ----- Podium columns ----- */
.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: end;
  margin-top: 18px;
}

.pod-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.pod-badge {
  padding: 3px 9px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: var(--pg);
  color: #0F2A12;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.pod-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 500;
  color: #FFFFFF;
  background: #3A404A;
  border: 2px solid #505762;
}

.pod-name {
  width: 100%;
  margin: 8px 0 10px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
  color: #E8EBEF;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pod-block {
  position: relative;
  width: 100%;
  border-radius: 10px 10px 0 0;
  background: #2E3432;
  color: #FFFFFF;
}

.pod-rank {
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #8E959F;
}

.pod-score {
  position: absolute;
  left: 12px;
  bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pod-score b {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.pod-score small {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  color: #8E959F;
}

/* 1st place: tall, green, centre */
.pod-col.p1 .pod-avatar {
  width: 52px;
  height: 52px;
  font-size: 1.3rem;
  color: var(--pg);
  background: rgba(125, 245, 110, 0.12);
  border-color: var(--pg);
}

.pod-col.p1 .pod-name {
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.pod-col.p1 .pod-block {
  height: 124px;
  background: linear-gradient(180deg, #9CFF8C 0%, var(--pg-deep) 100%);
  color: #0F2A12;
}

.pod-col.p1 .pod-rank,
.pod-col.p1 .pod-score small { color: rgba(15, 42, 18, 0.7); }
.pod-col.p1 .pod-score b { font-size: clamp(2rem, 3.4vw, 2.6rem); }

/* 2nd and 3rd */
.pod-col.p2 .pod-block { height: 86px; }

.pod-col.p3 .pod-block { height: 70px; }
.pod-col.p3 .pod-avatar {
  color: #E7B48F;
  background: #4A3A33;
  border-color: #8A5E45;
}

/* Empty slot (fewer than three scorers) */
.pod-col.is-open { opacity: 0.4; }
.pod-col.is-open .pod-avatar { border-style: dashed; background: transparent; color: #8E959F; }

/* ---------- Resources & FAQ sections ---------- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.resource-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--neon-green);
  border-radius: 4px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.resource-card-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-light-primary);
  margin: 8px 0 6px;
}

.resource-card-desc {
  font-size: 0.88rem;
  color: var(--text-light-secondary);
  line-height: 1.6;
  margin: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 18px 22px;
}

.faq-item summary {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-light-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--burnt-orange);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 0.92rem;
  color: var(--text-light-secondary);
  line-height: 1.65;
}

/* ---------- Member Profile page ---------- */
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 960px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
}

.profile-email-text {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.profile-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.profile-points-history {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.profile-points-history-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(150px, 190px);
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-points-history-header h4 {
  margin-bottom: 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-light-primary);
}

.profile-points-history-header p,
.points-history-message {
  color: var(--text-light-secondary);
  font-size: 0.85rem;
}

.points-history-filter-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-light-secondary);
}

.points-history-range {
  min-width: 0;
  padding: 9px 10px;
}

.points-history-summary {
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light-primary);
}

.points-history-summary span {
  padding: 0 4px;
  color: var(--text-light-secondary);
}

.points-history-svg {
  display: block;
  width: 100%;
  min-height: 180px;
  overflow: visible;
}

.points-chart-gridline {
  stroke: var(--border-light);
  stroke-width: 1;
}

.points-chart-axis-label {
  fill: var(--text-light-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
}

.points-chart-area {
  fill: rgba(34, 238, 96, 0.14);
}

.points-chart-line {
  fill: none;
  stroke: #0b8a3e;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.points-chart-marker {
  fill: #0b8a3e;
  stroke: #ffffff;
  stroke-width: 2;
}

.points-history-message {
  padding: 28px 12px;
  text-align: center;
}

@media (max-width: 620px) {
  .profile-points-history-header {
    grid-template-columns: minmax(0, 1fr) minmax(125px, 150px);
  }

  .profile-points-history-header > div {
    grid-column: 1 / -1;
  }

  .points-history-filter-label {
    align-self: center;
  }
}

.profile-card .form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-card .field-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light-secondary);
}

.profile-card .form-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-light-primary);
  background: #FAFAFA;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.profile-card .form-input:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--neon-green);
  box-shadow: 0 0 0 3px rgba(125, 245, 110, 0.2);
}

.profile-cancel-btn {
  padding: 11px 20px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  color: var(--text-light-primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.profile-cancel-btn:hover {
  background: #F5F0EB;
  border-color: #C7C5BE;
}

.podium-empty-note {
  grid-column: 1 / -1;
  padding: 28px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #8E959F;
}

.podium-empty-note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
  color: #FFFFFF;
}

/* ----- Footer ----- */
.podium-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.72rem;
  color: #8E959F;
}

.podium-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pg);
}

.podium-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(125, 245, 110, 0.14);
  font-size: 0.85rem;
}

.podium-link:hover { opacity: 0.85; }

@media (max-width: 480px) {
  .podium-panel { padding: 18px; }
  .podium-grid { gap: 6px; }
  .pod-avatar { width: 36px; height: 36px; font-size: 0.95rem; }
  .pod-col.p1 .pod-avatar { width: 46px; height: 46px; }
  .pod-name { font-size: 0.7rem; }
  .pod-rank { left: 9px; top: 8px; }
  .pod-score { left: 9px; bottom: 8px; gap: 4px; }
  .pod-score b { font-size: 1.3rem; }
  .pod-col.p1 .pod-score b { font-size: 1.8rem; }
  .pod-col.p1 .pod-block { height: 108px; }
  .pod-col.p2 .pod-block { height: 76px; }
  .pod-col.p3 .pod-block { height: 62px; }
}

/* ---------- "More info" toggle ---------- */
.more-info { margin: 0 0 4px; }

.more-info summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light-secondary);
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  transition: border-color var(--transition), color var(--transition);
}

.more-info summary::-webkit-details-marker { display: none; }
.more-info summary::after { content: '+'; font-size: 1rem; line-height: 1; }
.more-info[open] summary::after { content: '\2212'; }
.more-info summary:hover { border-color: rgba(0, 0, 0, 0.25); color: var(--text-light-primary); }
.more-info[hidden] { display: none; }

.more-info p {
  margin-top: 12px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-light-secondary);
  white-space: pre-line;
}

/* ---------- Past challenge cards ---------- */
.past-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 4px;
}

.past-card-top { display: flex; align-items: center; justify-content: space-between; }
.past-card-title { margin-bottom: 6px; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-light-primary); }
.past-card-dates { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-light-secondary); }
.past-card-foot { display: flex; gap: 10px; margin-top: auto; padding-top: 8px; }

.past-empty {
  grid-column: 1 / -1;
  padding: 48px 20px;
  text-align: center;
  background: #FFFFFF;
  border: 1px dashed var(--border-light);
  border-radius: 4px;
}
.past-empty h4 { margin: 12px 0 6px; font-size: 1.15rem; font-weight: 700; color: var(--text-light-primary); }
.past-empty p { margin: 0 0 20px; font-size: 0.9rem; color: var(--text-light-secondary); }

/* ---------- Official answers ---------- */
.answer-panel { padding: 14px 16px; background: #F0F2F5; border-radius: 4px; }

.answer-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-light-secondary);
}

.answer-mass {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 8px 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-light-secondary);
}

.answer-mass strong { font-family: var(--font-mono); font-size: 1.3rem; color: var(--text-light-primary); }

.answer-cog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.answer-cog div {
  padding: 8px 10px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 3px;
}

.answer-cog small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--text-light-secondary);
}

.answer-cog strong { font-family: var(--font-mono); font-size: 0.95rem; }

.btn-sm-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 4px;
  background: var(--neon-green);
  color: #000000;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ---------- Project Stages ---------- */
.project-stages {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.stage-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 3px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.stage-item.completed {
  background: #E6F9EE;
  color: #0B8A3E;
  text-decoration: line-through;
}

.stage-item.current {
  background: #FFF3E0;
  color: #E65100;
  font-weight: 700;
  animation: pulse 2s infinite;
}

.stage-item.pending {
  background: #F0F2F5;
  color: var(--text-light-secondary);
  opacity: 0.6;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 81, 0, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(230, 81, 0, 0); }
}

.stage-item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stage-item.completed::before {
  background: #0B8A3E;
}

.stage-item.current::before {
  background: #E65100;
  animation: blink 1s infinite;
}

.stage-item.pending::before {
  background: var(--text-light-secondary);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
