@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

* {
}

body {
  font-family: "Space Grotesk", var(--font-ui);
}

:root {
  --page-width: 120rem;
}

/* Global scrollbar fallback from styles.css */
html {
  scrollbar-width: thin !important;
  scrollbar-color: #5ed6dd transparent !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
  background: transparent !important;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: transparent !important;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: #5ed6dd !important;
  border-radius: 999px !important;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: #4bcad1 !important;
}

*::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}

*::-webkit-scrollbar-track {
  background: transparent !important;
}

*::-webkit-scrollbar-thumb {
  background: #5ed6dd !important;
  border-radius: 999px !important;
}

*::-webkit-scrollbar-thumb:hover {
  background: #4bcad1 !important;
}

.page-width {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 750px) {
  .page-width {
    padding: 0 5rem;
  }
}

.rte-width {
  max-width: 82rem;
  margin: 0 auto 2rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 20px;
}

.site-header .logo {
  height: 40px;
  width: auto;
}

.menu-toggle {
  display: none;
  appearance: none;
  background: none;
  border: none;
  box-shadow: none;
  cursor: pointer;
  position: absolute;
  left: 20px;
  top: 50%;
  padding: 0;
  transform: translateY(-50%);
  transition: none;
  color: #000;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: none;
}

.menu-toggle:hover,
.menu-toggle:active,
.menu-toggle:focus,
.menu-toggle:focus-visible {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: translateY(-50%) !important;
  outline: none !important;
}

.menu-toggle__icon-close {
  display: none;
}

.menu-toggle.is-open .menu-toggle__icon-open {
  display: none;
}

.menu-toggle.is-open .menu-toggle__icon-close {
  display: block;
}

/* Header color overrides */
/* Light mode: login icon black */
.site-header .icon-button {
  color: #000000;
}

.icons {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 16px;
}

.icon-button {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.icon-button svg,
.icon-button img {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
}

.main-nav {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 16px;
}

.main-nav a {
  font-weight: 500;
}

.lang-selector {
  appearance: none;
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: #fff;
  color: var(--text-color);
  font-size: 0.875rem;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27currentColor%27%20stroke-width%3D%273%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpolyline%20points%3D%276%209%2012%2015%2018%209%27%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
  padding-right: 24px;
}

.site-footer {
  background: #fff;
  border-top: 1px solid #e0e0e0;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  position: relative !important;
}
/* Mirror header nav spacing in footer */
.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.footer-nav a {
  font-weight: 500;
}

.footer__sustainable-energy {
  display: flex;
  justify-content: center;
  margin: 8px 0 12px;
}

.footer__sustainable-energy-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: inherit;
}

.footer__sustainable-energy-highlight {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
}

.footer__sustainable-energy-highlight-bg {
  position: absolute;
  inset: 50% -8px auto -8px;
  height: 1.95em;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
}

.footer__sustainable-energy-highlight-bg svg {
  display: block;
  width: 100%;
  height: 100%;
}

.footer__sustainable-energy-highlight-label {
  position: relative;
  z-index: 1;
  font-weight: 700;
  color: #111;
  padding: 0 2px;
}

#lang-container {
  position: absolute;
  bottom: 10px;
  right: 20px;
}

/* Ensure footer doesn't overlap news list content */
.news-page {
  padding-bottom: 220px;
}

.news-hero-image {
  width: 100%;
  border-radius: 8px;
}

/* News pages should inherit marketing shell typography + color tokens */
.news-marketing-theme {
  color: var(--text-color);
  font-family: var(--font-ui) !important;
}

.news-marketing-theme,
.news-marketing-theme .news-container,
.news-marketing-theme .news-card,
.news-marketing-theme .news-card-body,
.news-marketing-theme article,
.news-marketing-theme p,
.news-marketing-theme span,
.news-marketing-theme a,
.news-marketing-theme li {
  font-family: var(--font-ui) !important;
}

.news-marketing-theme h1,
.news-marketing-theme h2,
.news-marketing-theme h3,
.news-marketing-theme h4,
.news-marketing-theme h5,
.news-marketing-theme h6,
.news-marketing-theme .news-card-title,
.news-marketing-theme .news-article-title {
  color: var(--heading-color) !important;
  font-family: var(--font-heading) !important;
  letter-spacing: -0.3px;
}

.news-marketing-theme p,
.news-marketing-theme li {
  color: var(--text-color) !important;
  font-family: var(--font-ui) !important;
}

.news-marketing-theme .news-meta,
.news-marketing-theme .news-source {
  color: #6b7280 !important;
  font-family: var(--font-ui) !important;
}

.news-marketing-theme .news-card,
.news-marketing-theme .news-empty {
  background: #ffffff;
  color: var(--text-color);
}

.news-marketing-theme .news-subheading {
  color: #6b7280 !important;
  font-family: "Space Grotesk", var(--font-ui) !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

.news-marketing-theme .news-title,
.news-marketing-theme h1 .shader-text {
  font-family:
    "Neue Haas Grotesk Display Pro", var(--font-heading), "Space Grotesk",
    sans-serif !important;
  font-weight: 600 !important;
}

.news-page.news-marketing-theme.news-shell {
  width: 100%;
  max-width: none !important;
  padding-top: 2rem;
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.news-page.news-marketing-theme .news-container {
  width: 100% !important;
  max-width: none !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.news-marketing-theme .news-header {
  margin-bottom: 3rem;
}

.news-marketing-theme .news-title {
  margin: 0 0 0.75rem !important;
}

.news-marketing-theme .news-empty {
  border: 1px solid #f6d88f;
  border-radius: 12px;
  padding: 14px 16px;
}

.news-marketing-theme .news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.news-marketing-theme .news-card {
  display: block;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.news-marketing-theme .news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.news-marketing-theme .news-card-media {
  min-height: 180px;
}

.news-marketing-theme .news-card-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.news-marketing-theme .news-card-media-placeholder {
  height: 180px;
  background: linear-gradient(135deg, #f5f2ec 0%, #e1e6ef 100%);
}

.news-marketing-theme .news-card-body {
  padding: 16px;
}

.news-marketing-theme .news-meta {
  margin: 0;
}

.news-marketing-theme .news-card-title {
  margin: 8px 0 0;
}

.news-marketing-theme .news-back-link {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
}

.news-marketing-theme .news-article {
  margin-top: 2rem;
}

.news-marketing-theme .news-article-header {
  margin-bottom: 1.5rem;
}

.news-marketing-theme .news-article-title {
  margin: 0.4rem 0 0;
}

.news-marketing-theme .news-source-row {
  margin-top: 0.6rem;
}

.news-marketing-theme .news-hero-wrap {
  margin-bottom: 1.5rem;
}

.news-marketing-theme .news-article-content {
  margin-top: 1rem;
}

.news-marketing-theme .news-article-actions {
  margin-top: 2rem;
}

.news-marketing-theme .news-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.news-marketing-theme .news-pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #5ed6dd;
  border-radius: 999px;
  color: #5ed6dd;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.news-marketing-theme .news-pagination-link:hover {
  background: #5ed6dd;
  color: #04131a;
  transform: translateY(-1px);
}

.news-marketing-theme .news-pagination-link.is-active {
  background: #5ed6dd;
  color: #04131a;
}

.news-marketing-theme .news-pagination-link.news-pagination-disabled {
  border-color: rgba(94, 214, 221, 0.35);
  color: rgba(94, 214, 221, 0.35);
  pointer-events: none;
  transform: none;
}

.news-marketing-theme .news-pagination-arrow {
  font-size: 1.1rem;
}

@media (min-width: 750px) {
  .news-page.news-marketing-theme .news-container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

/* Unified layout adjustments */
section {
  padding: 2rem 0;
  margin: 0 auto;
  max-width: 1200px;
  background: none;
}

h1,
h2,
h3 {
  margin: 1rem 0;
}

.glass-panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  padding: 20px;
}

.glass-panel {
  background: none;
}

.acquisition.glass-panel,
.lead-form.glass-panel {
  border: none;
  box-shadow: none;
}

.text-center {
  text-align: center;
}

.content {
  padding: 2rem 1rem;
}

/* Gradient text effect */
.shader-text {
  background: linear-gradient(90deg, #00ffff, #40666d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline;
}
/* Full page loading overlay */
#loadingScreen {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
#loadingScreen img {
  max-width: 300px;
  width: 80%;
}

@media (max-width: 600px) {
  .site-header {
    justify-content: center;
    min-height: 64px;
  }
  .menu-toggle {
    display: block;
  }
  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    transform: none;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    z-index: 1001;
  }
  .main-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    text-align: left;
    line-height: 1.2;
  }
  .main-nav a:hover,
  .main-nav a:focus-visible {
    background: rgba(15, 23, 42, 0.05);
    outline: none;
  }
  .main-nav.open {
    display: flex;
  }
  .icons {
    top: 50%;
    transform: translateY(-50%);
  }
  #lang-container {
    position: static;
    margin-top: 10px;
  }
}

#projectPanel img {
  margin-bottom: 10px;
}

#projectPanel ul {
  list-style: none;
  padding: 0;
}

#projectPanel li {
  margin-bottom: 5px;
}

/* Home project cards */
.project-card p {
  color: #4b5563; /* light */
}

.project-card h3 {
  color: #111827; /* light */
}

/* Project detail units cards: color controlled by CSS, not JS inline */
#projectPanel .unit-card {
  color: #111827;
}

#projectPanel .unit-card h4 {
  color: #111827;
}

.pixel {
  display: none;
}

.developer-page .developer-logo {
  max-width: 200px;
}

.developer-page .projects-grid .project-card {
  background: #fff;
  color: #000;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px;
}

.developer-page .projects-grid .project-card h3 {
  color: #111827;
  margin: 8px 0 4px;
}

.developer-page .projects-grid .project-card p {
  color: #6b7280;
  margin: 0 0 6px;
}

.developer-page .projects-grid .project-card img {
  border-radius: 8px;
  display: block;
  width: 100%;
  height: auto;
}

/* Admin modal scroll container */
.admin-modal-scroll {
  max-height: 90vh;
  overflow-y: auto;
}

/* Login overlays */
.overlay-title {
  text-align: center;
  margin-top: 0;
}

.overlay-links {
  text-align: center;
  margin-top: 0.5rem;
}

/* Login overlay alignment hard overrides */
body.login-page #loginBackdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(249, 250, 251, 0.86) !important;
  z-index: 1200 !important;
}

body.login-page #loginOverlay {
  position: fixed !important;
  inset: 0 !important;
  width: auto !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  z-index: 1300 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px 16px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
}

body.login-page #loginForm,
body.login-page .reset-form,
body.login-page #signupForm {
  width: 100% !important;
  max-width: 600px !important;
  margin: 0 !important;
  background: #ffffff !important;
  border: 1px solid #e7eaf1 !important;
  border-radius: 20px !important;
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.08),
    0 2px 6px rgba(15, 23, 42, 0.05) !important;
  padding: 36px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 14px !important;
}

body.login-page #loginForm > *,
body.login-page .reset-form > *,
body.login-page #signupForm > * {
  position: static !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  max-width: 100% !important;
}

body.login-page #loginForm input,
body.login-page .reset-form input {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 48px !important;
  margin: 0 auto !important;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  border: 1px solid #d9dde7 !important;
  background: #f8fafc !important;
  position: static !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}

body.login-page #loginForm .password-wrapper {
  width: 100% !important;
  margin: 0 auto !important;
  position: static !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}

body.login-page #loginForm .button-primary,
body.login-page .reset-form .button-primary {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 48px !important;
  margin: 6px auto 0 !important;
  border-radius: 12px !important;
  position: static !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}

body.login-page #loginForm .overlay-links,
body.login-page .reset-form .overlay-links {
  margin: 4px 0 0 !important;
  text-align: center !important;
}

body.login-page #loginForm .reset-status,
body.login-page .reset-form .reset-status {
  margin: 2px 0 0 !important;
  min-height: 20px !important;
  text-align: center !important;
  font-size: 13px !important;
  color: #6b7280 !important;
}

@media (max-width: 640px) {
  body.login-page {
    padding: 16px 0 24px;
    overflow-y: auto;
  }

  body.login-page #loginOverlay {
    position: relative !important;
    inset: auto !important;
    min-height: auto !important;
    display: block !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    overflow: visible !important;
    padding: max(16px, env(safe-area-inset-top)) 12px
      max(20px, env(safe-area-inset-bottom)) !important;
  }

  body.login-page #loginForm,
  body.login-page .reset-form,
  body.login-page #signupForm {
    max-width: none !important;
    padding: 20px !important;
    border-radius: 18px !important;
  }
}

/* Login page (migrated from /assets/login/login.css, scoped) */
body.login-page {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 100vh;
  background: #f9fafb;
  padding: 24px 0;
  overflow-x: hidden;
}

body.login-page header,
body.login-page footer {
  width: 100%;
  flex-shrink: 0;
  position: relative;
  z-index: 10000;
}

body.login-page header {
  margin-bottom: 1rem;
}

body.login-page footer {
  margin-top: auto;
  padding-top: 24px;
}

body.login-page .logo {
  width: 160px;
  height: auto;
}

body.login-page #signupForm {
  background: #ffffff;
  border: 1px solid #e7eaf1;
  border-radius: 20px;
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.08),
    0 2px 6px rgba(15, 23, 42, 0.05);
  padding: 36px;
  width: 100%;
  max-width: 600px;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

body.login-page #signupForm h2 {
  text-align: center;
  margin: 0;
  font-size: 1.6rem;
}

body.login-page #signupForm .signup-header {
  text-align: center;
  margin-bottom: 6px;
}

body.login-page #signupForm .signup-header p {
  margin: 8px 0 0;
  color: #6b7280;
}

body.login-page #signupForm .signup-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.login-page #signupForm .signup-label {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #64748b;
  font-weight: 600;
}

body.login-page #signupForm .signup-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

body.login-page #signupForm .signup-grid input {
  margin-bottom: 0;
}

body.login-page #signupForm input,
body.login-page #signupForm select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #d9dde7;
  font-size: 16px;
  height: 48px;
  background: #f8fafc;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

body.login-page #signupForm select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none'><path d='M6 8l4 4 4-4' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
}

body.login-page #signupForm input:focus,
body.login-page #signupForm select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

body.login-page #signupForm .phone-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

body.login-page #signupForm .phone-group select,
body.login-page #signupForm .phone-group input {
  margin-bottom: 0;
}

body.login-page #signupForm .phone-group select {
  width: 30%;
}

body.login-page #signupForm .phone-group input {
  flex: 1;
}

body.login-page #signupForm .signup-code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 10px;
}

body.login-page #signupForm .signup-code-row .button-secondary {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #d9dde7;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 13px;
  cursor: pointer;
  height: 48px;
}

body.login-page #signupForm .signup-code-status {
  margin-top: 8px;
  font-size: 13px;
  color: #6b7280;
}

body.login-page #signupForm .signup-footer {
  text-align: center;
  margin-top: 8px;
  color: #6b7280;
}

body.login-page #loginLink {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

body.login-page #loginLink:hover {
  text-decoration: underline;
}

/* Tables */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
  margin-top: 20px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

th,
td {
  text-align: left;
  padding: 12px 18px;
  font-size: 14px;
  color: #444;
}

th {
  background: #f0f0f5;
  font-weight: 600;
  color: #000;
}

tr:hover {
  background-color: #f7faff;
}

/* Buttons */
.button,
button {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 12px 24px;
  color: #111;
  font-weight: 600;
  font-size: 14px;
  border-radius: 12px;
  cursor: pointer;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.button:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 600px) {
  table {
    font-size: 14px;
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  body.login-page #signupForm {
    padding: 20px !important;
  }
  body.login-page #signupForm .signup-grid {
    grid-template-columns: 1fr;
  }
  body.login-page #signupForm h2 {
    font-size: 1.35rem;
    line-height: 1.2;
  }
  body.login-page #signupForm .signup-header p {
    font-size: 0.95rem;
  }
  body.login-page #signupForm .signup-code-row {
    grid-template-columns: 1fr;
  }
  body.login-page #signupForm .signup-code-row .button-secondary {
    width: 100%;
  }
  body.login-page #signupForm .phone-group {
    flex-direction: column;
    align-items: stretch;
  }
  body.login-page #signupForm .phone-group select {
    width: 100%;
  }
}

/* Project detail: cleaner label/value cards */
#projectPanel {
  max-width: none;
  margin: 0;
}

#projectPanel .project-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

#projectPanel .project-meta-item {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  color: #111827;
}

#projectPanel .project-meta-item .label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 4px;
}

#projectPanel .project-meta-item .value {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  color: #111827;
}

#projectPanel .project-docs-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0 0 14px;
}

#projectPanel .project-doc-link {
  border: 1px solid #d9dde7;
  background: #ffffff;
  color: #0f172a;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

#projectPanel .project-doc-link:hover {
  transform: translateY(-1px);
  border-color: var(--accent-color);
  color: #0a8f98;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

#projectPanel .project-doc-link:focus-visible {
  outline: 2px solid rgba(94, 214, 221, 0.55);
  outline-offset: 2px;
}

.project-doc-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.project-doc-overlay[hidden] {
  display: none !important;
}

.project-doc-overlay-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(15, 23, 42, 0.6);
  cursor: pointer;
}

.project-doc-overlay-panel {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100vw - 24px));
  height: min(88vh, 900px);
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
}

.project-doc-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
}

.project-doc-overlay-close {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  cursor: pointer;
  line-height: 1;
  font-weight: 700;
}

.project-doc-overlay-body {
  flex: 1;
  min-height: 0;
}

.project-text-overlay-panel {
  width: min(760px, calc(100vw - 24px));
  height: auto;
  max-height: min(88vh, 900px);
}

.project-text-overlay-body {
  overflow-y: auto;
  padding: 22px 20px 24px;
  background: #ffffff;
}

.project-text-section + .project-text-section {
  margin-top: 22px;
}

.project-text-section strong {
  display: block;
  margin-bottom: 10px;
  color: #111827;
}

.project-text-content p {
  margin: 0;
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.6;
  white-space: pre-wrap;
}

.project-text-content p + p {
  margin-top: 8px;
}

.project-text-list {
  margin: 0;
  padding-left: 28px;
  list-style: disc;
  color: #6b7280;
}

.project-text-list li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.project-doc-frame {
  width: 100%;
  height: 100%;
  border: 0;
}

.project-location-map {
  width: 100%;
  height: 100%;
  min-height: 420px;
  background: #f8fcfd;
}

.project-location-map .leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.88);
  color: #0f172a;
  border-top-left-radius: 8px;
}

.project-location-map .leaflet-popup-content-wrapper {
  border-radius: 10px;
  border: 1px solid #b5edf1;
}

.project-location-map .leaflet-popup-tip {
  background: #ffffff;
  border: 1px solid #b5edf1;
}

.project-map-popup {
  color: #0f172a;
  font-size: 0.86rem;
  line-height: 1.35;
}

.project-map-popup-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 160px;
  max-height: 44px;
  object-fit: contain;
}

.project-map-popup-title {
  display: block;
  font-family: "Neue Haas Grotesk Display Pro", var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.project-map-popup span {
  color: #0ea5af;
  text-transform: capitalize;
}

/* keep CTA centered */
#talkToLiv {
  text-align: center;
  background: #5ed6dd !important;
  border-color: #5ed6dd !important;
  color: #000 !important;
}

#talkToLiv:hover {
  background: #50c7ce !important;
  border-color: #50c7ce !important;
  color: #000 !important;
}

/* Project gallery */
.project-gallery {
  position: relative;
}

.project-gallery-media {
  width: 100%;
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.project-gallery-media.is-image {
  height: auto;
  background: transparent;
}

.project-gallery-media.is-video {
  height: auto;
  max-height: 86vh;
}

.project-gallery-image,
.project-gallery-video,
.project-gallery-iframe {
  width: 100%;
  display: block;
}

.project-gallery-image {
  height: auto;
  max-height: 86vh;
  object-fit: unset;
}

.project-gallery-video {
  height: 100%;
  object-fit: cover;
}

.project-gallery-media.is-video .project-gallery-video {
  height: auto;
  max-height: 86vh;
  object-fit: contain;
}

.project-gallery-iframe {
  border: 0;
}

.project-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
  color: #ffffff !important;
  font-size: 72px !important;
  font-weight: 600;
  line-height: 1;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  text-shadow: none !important;
  appearance: none !important;
  cursor: pointer;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  display: block;
  transition: none !important;
  animation: none !important;
}

.project-gallery-arrow:hover,
.project-gallery-arrow:focus,
.project-gallery-arrow:focus-visible {
  transform: translateY(-50%) !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

.project-gallery-arrow:disabled {
  cursor: default;
  opacity: 0.35;
}

.project-gallery-arrow:not(:disabled) {
  opacity: 1;
}

.project-gallery-arrow-left {
  left: 8px;
}

.project-gallery-arrow-right {
  right: 8px;
}

.project-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.project-gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gallery-dot);
  transition:
    width 0.15s ease,
    height 0.15s ease;
}

.project-gallery-dot.is-active {
  width: 10px;
  height: 10px;
  background: var(--gallery-dot-active);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 120px; /* leave space for footer */
}

.partner-section {
  margin-top: 28px;
}
.partner-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 12px;
  text-align: center;
}
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.partner-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.partner-card .partner-meta {
  color: var(--muted);
  font-size: 0.9rem;
}
.partner-logo {
  display: block;
  width: auto;
  height: 44px;
  max-width: 160px;
  max-height: 44px;
  min-width: 1px;
  min-height: 1px;
  object-fit: contain;
  flex: 0 0 auto;
}
.partner-logo-button,
.partner-logo-static,
.footer-partner-logo-static {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.partner-logo-button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  box-shadow: none !important;
  filter: none !important;
  outline: none;
}
.partner-logo-button:hover .partner-logo,
.partner-logo-button:focus-visible .partner-logo {
  opacity: 1;
  transform: translateY(-1px);
}
.partner-logo-button:focus-visible {
  outline: 2px solid rgba(94, 214, 221, 0.55);
  outline-offset: 4px;
  border-radius: 10px;
}
.partner-logo-button .partner-logo {
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.site-footer-floating {
  position: fixed;
  left: 16px;
  right: auto;
  bottom: 14px;
  z-index: 10;
  pointer-events: none;
  max-width: calc(100vw - 32px);
}
.site-footer-floating .footer-partners {
  pointer-events: auto;
}
.footer-partners {
  display: inline-flex;
  width: fit-content;
  max-width: calc(100vw - 32px);
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e6e8ee;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  white-space: normal;
  overflow: hidden;
}
.footer-partners .partner-logo {
  height: 22px;
  max-height: 22px;
  max-width: 96px;
  min-width: 1px;
  min-height: 1px;
  object-fit: contain;
  width: auto;
  display: inline-block;
  opacity: 0.9;
  vertical-align: middle;
  flex: 0 0 auto;
}
.footer-partners .partner-logo:hover,
.footer-partners .partner-logo-button:hover .partner-logo,
.footer-partners .partner-logo-button:focus-visible .partner-logo {
  opacity: 1;
}
.footer-partner-logo-button {
  border-radius: 999px;
}
.projects-partner-logo-button {
  margin: 0 0 12px;
}

@media (max-width: 860px) {
  .partner-grid {
    grid-template-columns: 1fr;
  }
  .partner-card {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .project-gallery-media {
    height: 280px;
  }
  .project-gallery-media.is-image {
    height: auto;
  }
  .project-gallery-media.is-video {
    height: auto;
    max-height: 70vh;
  }
  main {
    padding: 28px 16px 120px;
  }
  .site-footer-floating {
    position: static;
    margin: 24px 0 0;
    display: flex;
    justify-content: center;
  }
  .footer-partners {
    justify-content: center;
    margin-inline: auto;
  }
}

/* Keep indexes/projects full-width (similar to news behavior) */
.indexes-page main,
.projects-page main {
  max-width: none;
  width: 100%;
  margin: 0;
  padding-left: 10px !important;
  padding-right: 10px !important;
}

/* Indexes page (migrated from /public/indexes/index.html) */
.indexes-page .indexes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.indexes-page .indexes-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px;
  overflow: hidden;
}

body.dark-mode .indexes-page .indexes-card {
  background: #111;
  border-color: #222;
}

.indexes-page .indexes-card h3 {
  margin: 6px 0 8px;
}

.indexes-page iframe {
  width: 100%;
  border: 0;
}

.indexes-page .tradingview-widget-container {
  width: 100%;
}

.indexes-page .tradingview-widget-container__widget {
  width: 100%;
}

.indexes-page .indexes-chart-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

/* Center page titles/subheadings for Projects, Indexes and News */
.projects-page main > h1,
.projects-page main > p,
.indexes-page main > h1,
.indexes-page main > p {
  text-align: center;
}

.news-page.news-marketing-theme .news-header {
  text-align: center;
}

.news-page.news-marketing-theme .news-header .news-title,
.news-page.news-marketing-theme .news-header .news-subheading {
  text-align: center;
}

/* Ensure home hero/how headings explicitly use Neue Haas */
.hero h1,
.acquisition h2 {
  font-family: "Neue Haas Grotesk Display Pro", var(--font-ui);
}
