/* -------------------------------------------------- */
/* BRAND COLORS */
/* -------------------------------------------------- */

:root {
  --bg: #1A1A1A;        /* charcoal K90% */
  --text: #E7E8E9;      /* chalk K10% */ /* was #E6E6E6 */
  --accent: #8FC73E;    /* closest to Pantone 2286C */ /* was #7ACC00*/
  --muted: #B3B3B3;     /* soft chalk */
  --border: #333333;    /* subtle border on dark */
  --max-width: 900px;
  --font-body: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* -------------------------------------------------- */
/* GLOBAL RESET */
/* -------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* -------------------------------------------------- */
/* TYPOGRAPHY */
/* -------------------------------------------------- */

h1, h2, h3 {
  margin-top: 0;
  line-height: 1.3;
  color: var(--accent);
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: 1.3rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

p {
  margin: 0 0 0.9rem;
  color: var(--text);
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
}

/* -------------------------------------------------- */
/* LINKS */
/* -------------------------------------------------- */

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* -------------------------------------------------- */
/* LAYOUT */
/* -------------------------------------------------- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* -------------------------------------------------- */
/* HEADER */
/* -------------------------------------------------- */

.site-header {
  background-color: #1A1A1A; /* charcoal */
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.site-title {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}

.site-title a {
  color: var(--text);
}

.logo {
  height: 110px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 1.2rem;
}

.site-nav a {
  color: var(--text);
}

.site-nav a:hover {
  color: var(--accent);
}

/* -------------------------------------------------- */
/* MAIN CONTENT */
/* -------------------------------------------------- */

main {
  padding: 1rem 0 2rem;
}

.section {
  margin-top: 1.5rem;
}

/* -------------------------------------------------- */
/* CARDS */
/* -------------------------------------------------- */

.card-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 cards wide per line */
  gap: 1.25rem;
}

.card {
  background: #222222; /* slate panel */
  border: 1px solid #333333;
  padding: 1.25rem;
  border-radius: 4px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card h3 {
  margin-top: 0;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 0;
}

.meta {
  font-size: 0.85rem;
  color: var(--muted);
}

/* -------------------------------------------------- */
/* FOOTER */
/* -------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: #1A1A1A;
  font-size: 0.9rem;
  color: var(--muted);
}

/* -------------------------------------------------- */
/* IMAGES */
/* -------------------------------------------------- */

.icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

/* -------------------------------------------------- */
/* RESPONSIVE */
/* -------------------------------------------------- */

@media (max-width: 900px) {
  .card-list {
    grid-template-columns: repeat(2, 1fr); /* 2 cards per line on tablets */
  }
}

@media (max-width: 600px) {
  .site-nav {
    flex-direction: column;
  }
  .card-list {
    grid-template-columns: 1fr; /* 1 card per line on mobile */
  }
}

/* -------------------------------------------------- */
/* RESTORED HERO GRID (WHITE TILES, NO DARK BACKGROUND) */
/* -------------------------------------------------- */

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.hero-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: #ffffff; /* white tile */
  height: 220px;
  cursor: default;
  border: 1px solid var(--border);
}

.hero-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: transform 0.35s ease;
}

.hero-tile:hover img {
  transform: scale(1.03);
}

.hero-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  background: rgba(255, 255, 255, 0.92); /* white band */
  padding: 1rem 1.25rem;

  color: #222; /* dark text for readability */
  border-top: 1px solid var(--border);
}

.hero-text h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
}

.hero-text p {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: #555;
}

.hero-large {
  grid-column: span 2;
  height: 300px;
}

@media (max-width: 700px) {
  .hero-large {
    grid-column: span 1;
    height: 240px;
  }
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* -------------------------------------------------- */
/* SMALLER COLLABORATOR GRID (TEXT UNDER IMAGE) */
/* -------------------------------------------------- */

.collaborator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.collaborator-tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 6px;
  background: #222222; /* slate panel matching site cards */
  border: 1px solid var(--border);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.collaborator-tile:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.collaborator-img-wrap {
  width: 100%;
  height: 120px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.collaborator-tile img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.collaborator-text {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.collaborator-text h2 {
  margin: 0 0 0.4rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent); /* Accent green for collaborator names */
}

.collaborator-text p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text); /* Ensures description text is fully visible (chalk white) */
  line-height: 1.4;
}

/* -------------------------------------------------- */
/* FOOTNOTES & ETYMOLOGY */
/* -------------------------------------------------- */

.footnote-ref {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  margin-left: 2px;
}

.footnote-ref:hover {
  text-decoration: underline;
}

.footnotes {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}

.footnote-item {
  margin-bottom: 1rem;
}

.footnote-item strong {
  color: var(--text);
}

.footnote-phonetic {
  color: var(--accent);
}

/* -------------------------------------------------- */
/* PORTAL & COMPONENT ADDITIONS */
/* -------------------------------------------------- */

.nav-link {
  font-weight: 600;
}

.nav-active,
.footer-accent {
  color: var(--accent);
}

.portal-card {
  margin-top: 1.5rem;
  max-width: 650px;
}

.portal-guidelines {
  padding-left: 1.25rem;
  margin: 0.75rem 0 1rem;
  color: var(--text);
}

.portal-guidelines li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.btn-portal {
  display: inline-block;
  background: var(--accent);
  color: #1A1A1A;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  margin-top: 1.25rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.btn-portal:hover {
  opacity: 0.9;
  text-decoration: none;
}

.construction-badge {
  display: inline-block;
  background: rgba(122, 204, 0, 0.15);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- Shared Inline Project Viewer Styles --- */
.viewer-wrapper {
  display: none;
  margin-top: 1.5rem;
}
.viewer-wrapper.active {
  display: block;
}
.back-nav-bar {
  margin-bottom: 1rem;
}
.btn-back {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: background 0.2s, color 0.2s;
}
.btn-back:hover {
  background: var(--accent);
  color: #1A1A1A;
  text-decoration: none;
}
.project-viewer-container {
  width: 100%;
  height: 700px;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: #222222;
  position: relative;
}
.project-viewer-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.expand-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  z-index: 10;
  transition: background 0.2s;
}
.expand-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}
.project-viewer-container.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  border-radius: 0;
  border: none;
}

/* --- Map Page & General Utilities --- */
.map-container {
  width: 100%;
  height: 600px;
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: #222222;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.construction-badge {
  display: inline-block;
  background: rgba(122, 204, 0, 0.15);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- Global Browser Translation Styles --- */
.goog-te-banner-frame {
  display: none !important;
}
body {
  top: 0 !important;
}
/* Optional styling for your French nav button */
.btn-lang {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: background 0.2s, color 0.2s;
  margin-left: 0.5rem;
}
.btn-lang:hover {
  background: var(--accent);
  color: #1A1A1A;
}

/* --- Translation Disclaimer State --- */
.translation-disclaimer {
  display: none; /* Hidden by default */
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.5rem;
  line-height: 1.4;
}
.translation-disclaimer.visible {
  display: block; /* Shown once translated */
}