.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

body {
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding-top: 0.5rem;
  padding-right: 2rem;
  padding-bottom: 2rem;
  padding-left: 2rem;
}

.header-content {
  display: flex;
  align-items: flex-end; /* aligns nav to bottom of logo */
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

header {
  margin-bottom: 1rem;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

#title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

#executive-summary,
#executive-summary.highlight {
  background-color: rgba(0, 0, 0, 0.6); /* semi-opaque black overlay */
  color: #fefefe;                       /* light text for contrast */
  font-size: 1.1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  border-radius: 6px;
  font-style: italic;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* subtle depth */
}

/* === Persona Notes === */
.persona-note {
  display: flex;
  align-items: flex-start;
  margin: 2rem 0;
  padding: 1rem;
  background-color: #f9f4ee;
  border-radius: 8px;
  max-width: 800px;
  box-sizing: border-box;
}

.logo {
  max-height: 60px;
  margin-bottom: 0;
}

.persona-note.left {
  flex-direction: row;
}

.persona-note.right {
  flex-direction: row-reverse;
  text-align: right;
}

.persona-avatar {
  width: 100px;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.persona-text-wrapper {
  flex: 1;
  margin-left: 1rem;
  margin-right: 1rem;
}

.persona-name {
  margin: 0 0 0.5rem 0;
  font-weight: bold;
  font-size: 1rem;
}

.persona-text {
  margin: 0;
  font-style: italic;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 0.75rem;
  }

  .main-column {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem 0;
    box-sizing: border-box;
  }

  .main-column > * {
    margin-bottom: 0.75rem;
  }

  .hamburger {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
}

/* === NAVIGATION === */
.nav-links {
  display: flex;
  gap: 24px;              /* consistent spacing */
  margin-left: auto;      /* pushes nav to the far right */
  align-items: flex-end;  /* aligns links with bottom of logo */
  position: relative;
  z-index: 10;            /* keep above content */
}

.nav-item {
  position: relative;     /* anchor for first-level dropdown */
}

.nav-item a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
  padding: 8px 12px;
  display: inline-block;
  transition: color 0.2s ease;
}

.nav-item a:hover {
  color: #0077cc;
}

/* First-level dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ccc;
  min-width: 180px;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.dropdown a {
  display: block;
  padding: 8px 12px;
  color: #333;
  font-weight: 500;
  white-space: nowrap;
}

.dropdown a:hover {
  background: #f2f2f2;
}

.nav-item:hover > .dropdown {
  display: block;
}

/* Nested dropdown */
.dropdown .nav-subitem {
  position: relative;
}

.dropdown .nav-subitem > a {
  display: block;
  padding-right: 24px;
  white-space: nowrap;
}

.dropdown .nav-subitem > a::after {
  content: "›";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  opacity: 0.6;
  font-size: 0.8rem;
}

.dropdown .sub-dropdown {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 180px;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  z-index: 1100;
}

.dropdown .nav-subitem:hover > .sub-dropdown {
  display: block;
}

.dropdown .sub-dropdown.open-left {
  left: auto;
  right: 100%;
}

/* === Footer Metadata === */
#byline {
  font-size: 0.75rem;
  text-align: right;
  color: #666;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.published-date,
.copyright {
  font-size: 0.75rem;
  text-align: right;
  color: #666;
  margin: 0;
}

.published-date span {
  font-size: 0.75rem;
}

/* === Chatbox / Cards === */
.chatbox {
  max-width: 400px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

.card {
  background-color: #fff !important;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 12px 0 0 0;
  flex-grow: 1;
}

.card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
  color: #222;
}

.card-teaser {
  margin: 6px 0;
  font-size: 0.9rem;
  line-height: 1.3;
  color: #444;
}

.card-image {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
  border-radius: 4px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.more-button {
  align-self: flex-start;
  margin-top: 6px;
  font-size: 0.85rem;
  padding: 4px 10px;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

/* === Teasers grid === */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.more-button {
  display: inline-block;
  padding: 6px 12px;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

/* === Contact form === */
#contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  width: 100%;
  max-width: none;
  margin-top: 1rem;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 6px 10px;
  font-size: 0.85rem;
  border: 1px solid #bbb;
  border-radius: 4px;
  background-color: #fff;
  color: #222;
  font-family: system-ui, sans-serif;
}

#contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

#contact-form button {
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* === Background & head layers === */
.background-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/png/question-marks.png');
  background-color: var(--day-color);
  background-blend-mode: multiply;
  background-size: cover;
  z-index: 0;
  pointer-events: none;
}

.head-layer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding-top: 4rem;
}

.head-layer img {
  width: 120px;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

.em {
  font-style: italic;
}

.guys-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.guy {
  display: block;
  aspect-ratio: 1 / 1.15;
  background-image: url("/png/guys-grid.png");
  background-size: 300% 300%;
  background-repeat: no-repeat;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

/* row 1 */
.g1 { background-position:   0%   0%; }
.g2 { background-position:  50%   0%; }
.g3 { background-position: 100%   0%; }

/* row 2 */
.g4 { background-position:   0%  50%; }
.g5 { background-position:  50%  50%; }
.g6 { background-position: 100%  50%; }

/* row 3 */
.g7 { background-position:   0% 100%; }
.g8 { background-position:  50% 100%; }
.g9 { background-position: 100% 100%; }

/* ---------- Image Lightbox ---------- */
#image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
}

#image-lightbox.active {
  display: flex;
}

#image-lightbox img {
  max-width: 95vw;
  max-height: 95vh;
  box-shadow: 0 0 40px rgba(0,0,0,0.6);
  cursor: default;
}

.article-figure img {
  cursor: zoom-in;
}

main h2 {
  margin-bottom: 0.25rem;
}

main h2 + p {
  margin-top: 0;
}

.image-wrapper {
  position: relative;
  display: inline-block;
}

.image-wrapper img {
  display: block;
  width: 600px;
  height: auto;
}

.color-math-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.color-math-wrapper {
  position: relative;
}

.white-overlay {
  position: absolute;
  top: 0;
  height: 33.33%;
  width: 100%;
  background: white;
  pointer-events: none;
}

.gray-overlay {
  position: absolute;
  top: 33.33%;
  height: 33.33%;
  width: 100%;
  background: gray;
  pointer-events: none;
}

.black-overlay {
  position: absolute;
  top: 66.66%;
  height: 33.33%;
  width: 100%;
  background: black;
  pointer-events: none;
}

.overlay {
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s linear;
}

.white-overlay { background: white; }
.black-overlay { background: black; }
.gray-overlay  { background: gray; }

/* === NEW: Skin Tone Overlay === */
.skin-overlay {
  position: absolute;
  top: 0;
  height: 100%;
  width: 100%;
  pointer-events: none;
  mix-blend-mode: plus-lighter;
  opacity: 1;
}


.slider-row {
  margin-top: 12px;
}

label {
  display: inline-block;
  width: 120px;
}