* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #111;
  background: #fff;
}

.container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header base styles */
header {
  background: #F2C6C6;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Header nav polish (non-Donate links) */
header nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Base nav links */
header nav a {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.4px;
  text-decoration: none;
  color: #111;
  padding: 10px 12px;
  border-radius: 999px; /* pill */
  transition: background 0.15s ease, transform 0.12s ease, opacity 0.15s ease;
}

/* Hover: soft pill background */
header nav a:hover {
  background: rgba(242, 198, 198, 0.35); /* blush */
  transform: translateY(-1px);
}

/* Active page highlight */
header nav a.active {
  background: rgba(242, 198, 198, 0.55);
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

/* Keep Donate looking like a button */
header nav a.btn {
  padding: 10px 16px;
  border-radius: 14px;
  background: #0B0B0B;
  color: #fff;
}

header nav a.btn:hover {
  background: #111;
  transform: translateY(-1px);
}

/* Nice keyboard focus */
header nav a:focus-visible {
  outline: 2px solid rgba(241, 166, 160, 0.9);
  outline-offset: 3px;
  border-radius: 999px;
}

.logo img {
  height: 60px;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.4px;
  text-decoration: none;
  color: #111;
  padding: 10px 12px;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.12s ease, opacity 0.15s ease;
}

.dropdown-toggle:hover {
  background: rgba(242, 198, 198, 0.35);
  transform: translateY(-1px);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 14px;
  padding: 8px 0;
  z-index: 1000;
  margin-top: 8px;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #111;
  text-decoration: none;
  transition: background-color 0.2s;
  white-space: nowrap;
  font-weight: 600;
  font-size: 14px;
  border-radius: 0;
}

.dropdown-menu a:hover {
  background-color: rgba(242, 198, 198, 0.35);
  transform: none;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* Add a small animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown:hover .dropdown-menu {
  animation: fadeIn 0.2s ease-in-out;
}

/* Buttons! */

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.btn-primary {
  background: #111;
  color: #fff;
}

.btn-primary:hover {
  background: #333;
}

.btn-secondary {
  background: #333;
  color: #fff;
}

.btn-secondary:hover {
  background: #111;
}

.btn-dark {
  background: #111;
  color: #fff;
}

.btn-dark:hover {
  background: #333;
}

.hero {
  background: linear-gradient(rgba(11, 11, 11, 0.4), rgba(11, 11, 11, 0.6)), url('../images/activities/classroom.avif') center/cover;
  color: #fff;
  padding: 120px 0;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  letter-spacing: 3px;
}

.hero p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

section {
  padding: 80px 0;
}

section h2 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 50px;
  color: #111;
}

.programs-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 30px;
}

@media (max-width: 650px){
  .programs-grid{
    grid-template-columns: 1fr;
  }
}

.program-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.program-card:hover {
  transform: translateY(-5px);
}

.program-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.program-card-content {
  padding: 25px;
}

.program-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.program-card p {
  color: #666;
  margin-bottom: 15px;
}

.about-section {
  background: #F3F4F6;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-content img {
  width: 100%;
  border-radius: 10px;
}

footer {
  background: #F2C6C6;
  color: #111;
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: #111;
  margin-bottom: 20px;
  font-size: 16px;
}

.footer-section a {
  display: block;
  color: #333;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #111;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.1);
  color: #333;
}

.page-header {
  background: linear-gradient(135deg, #FDF1F1 0%, #FFF5F5 100%);
  color: #111;
  padding: 60px 40px;
  text-align: center;
  border-bottom: 2px solid rgba(17, 17, 17, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 182, 193, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 192, 203, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.page-header h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #111 0%, #333 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  font-size: 18px;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  font-weight: 400;
}

.content-section {
  padding: 60px 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #F1A6A0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Field of Interest - segmented radio style */
.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.interest-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.interest-options input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.interest-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #dcdcdc;
  background: #ffffff;
  color: #111;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.interest-pill:hover {
  background: #f7f7f7;
  border-color: #cfcfcf;
}

.interest-options input[type="radio"]:focus-visible + .interest-pill {
  outline: 3px solid rgba(242, 198, 198, 0.6);
  outline-offset: 2px;
}

.interest-options input[type="radio"]:checked + .interest-pill {
  background: #F2C6C6;       /* your blush */
  border-color: #e4b1b1;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.interest-options input[type="radio"]:checked + .interest-pill:active {
  transform: scale(0.98);
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.login-container {
  max-width: 400px;
  margin: 80px auto;
  padding: 0 20px;
}

.login-card {
  background: #fff;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.login-card h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #111;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  background: #f8f8f8;
  font-weight: 600;
  color: #333;
}

tr:hover {
  background: #fafafa;
}

.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.search-box input {
  flex: 1;
  padding: 12px 20px;
  border: 1px solid #ddd;
  border-radius: 25px;
  font-size: 14px;
}

.search-box button {
  padding: 12px 30px;
}

.action-buttons {
  display: flex;
  gap: 10px;
}

.action-buttons a,
.action-buttons button {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 5px;
  text-decoration: none;
}

.btn-edit {
  background: #F2C6C6;
  color: #111;
  border: none;
  cursor: pointer;
}

.btn-delete {
  background: #ff6b6b;
  color: #fff;
  border: none;
  cursor: pointer;
}

/* Enroll Button Formatting */
.enroll-cta {
  text-align: center;
  padding: 60px 0 00px;
}

.enroll-btn {
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 16px 40px;
  border-radius: 999px;             /* big pill shape */
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
  text-transform: uppercase;
}

.enroll-btn:hover,
.enroll-btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}


.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  text-align: center;
}

.stat-card h3 {
  font-size: 36px;
  color: #F1A6A0;
  margin-bottom: 5px;
}

.stat-card p {
  color: #666;
  font-size: 14px;
}

.alert {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.alert-error {
  background: #ffe6e6;
  color: #cc0000;
  border: 1px solid #ffcccc;
}

.alert-success {
  background: #e6ffe6;
  color: #006600;
  border: 1px solid #ccffcc;
}

.donate-form {
  max-width: 600px;
  margin: 0 auto;
}

.donation-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.donation-amounts button {
  padding: 15px;
  border: 2px solid #ddd;
  background: #fff;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
}

.donation-amounts button:hover,
.donation-amounts button.active {
  border-color: #F1A6A0;
  background: #F2C6C6;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  nav {
    gap: 15px;
    flex-wrap: wrap;
  }
  
  .donation-amounts {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* THANK YOU / SPONSORS */
.thankyou-section {
  background: #FFF;
}

.thankyou-title {
  text-align: center;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.thankyou-text,
.thankyou-subtext {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  color: #333;
}

.thankyou-text {
  font-size: 18px;
  margin-bottom: 10px;
}

.thankyou-subtext {
  font-size: 16px;
  opacity: 0.9;
  font-weight: 700;      /* bold */
  margin-bottom: 40px;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 on one row */
  gap: 18px;
  align-items: stretch;   /* equal heights */
}

.sponsor-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;          /* slightly smaller */
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;

  height: 120px;          /* all cards same size */
}

.sponsor-card img {
  max-width: 140px;       /* narrower logo area */
  width: 100%;
  height: 70px;           /* consistent logo box */
  object-fit: contain;
}

/* responsive */
@media (max-width: 900px) {
  .sponsors-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
  .sponsors-grid { grid-template-columns: 1fr; }
}

/* DONATE (match THANK YOU styling) */
.donate-section {
  background: #FFF;
}

.donate-title {
  text-align: center;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.donate-text {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  color: #333;
  font-size: 18px;
  margin-bottom: 10px;
}

.donate-subtext {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  color: #333;
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 10px;
}

.donate-final {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  color: #333;
  font-size: 16px;
  opacity: 0.9;
  font-weight: 700; /* bold like thankyou-subtext */
  margin-bottom: 26px;
}

/* Donate button row */
.donate-actions {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

/* Optional: make email link match your site */
.donate-section a {
  color: #111;
  font-weight: 600;
  text-decoration: none;
}

/* Keep donate paragraph links styled, but NOT the button */
.donate-section a.btn {
  color: #fff;            /* matches .btn-primary */
  font-weight: 600;
  text-decoration: none;
}

.donate-section a:hover {
  text-decoration: underline;
}

/* PARTICIPANT BANNER */
.banner-section {
  padding: 0;           /* overrides your default section padding */
}

.banner-image {
  width: 100%;
  height: 500px;        /* adjust taller/shorter */
  background: url("/images/activities/participant_banner.avif") center/cover no-repeat;
}

/* TEAM BIOS - mobile stacking for alternating layout */
@media (max-width: 820px) {
  .team-section .card > div {
    grid-template-columns: 1fr !important;
  }

  .team-section img {
    max-width: 320px !important;
    justify-self: start !important;
  }
}


/* Team bio name + LinkedIn icon */
.team-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.team-linkedin {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.team-linkedin img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.9;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.team-linkedin:hover img {
  opacity: 1;
  transform: translateY(-1px);
}

.team-linkedin:focus-visible {
  outline: 2px solid rgba(241, 166, 160, 0.9); /* soft coral */
  outline-offset: 4px;
  border-radius: 8px;
}

/* ================================
   ELLA RISES PROGRAMS PAGE (UNIQUE CLASSES)
   ================================ */

  .er-programs-page {
  background: #fff;
}

/* Intro text under header */
.er-programs-intro {
  max-width: 880px;
  margin: 0 auto 10px;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

/* Container that holds all program cards (stacked vertically) */
.er-programs-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Individual program card */
.er-program-card {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: center;
  gap: 28px;
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.02);
}
  
/* Alternate which side the images appear on (desktop and up) */
@media (min-width: 900px) {
  /* Even cards: adjust column widths so text gets the wider column */
  .er-program-card:nth-child(even) {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); /* images narrow, text wide */
  }

  /* Even cards: image on the left, text on the right */
  .er-program-card:nth-child(even) .er-program-content {
    grid-column: 2;
    grid-row: 1;
  }

  .er-program-card:nth-child(even) .er-program-images-container {
    grid-column: 1;
    grid-row: 1;
  }
}

/* Text column in each card */
.er-program-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Program title */
.er-program-title {
  font-size: 26px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 2px;
}

/* Small tag pill under the title */
.er-program-tag {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(242, 198, 198, 0.22); /* blush tint */
  color: #444;
  margin-bottom: 12px;
}

/* Metadata list (ages, schedule, fees, etc.) */
.er-program-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  font-size: 14px;
  color: #444;
}

.er-program-meta li + li {
  margin-top: 4px;
}

.er-program-note {
  font-size: 13px;
  opacity: 0.85;
}

/* Body paragraphs */
.er-program-content p {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}

/* Emphasized callout paragraph */
.er-program-callout {
  margin-top: 8px;
  padding: 10px 14px;
  border-left: 3px solid #F1A6A0; /* warm peach */
  background: #FFF7F5;
  border-radius: 12px;
  font-size: 14px;
}

/* Image column container - for vertical centering */
.er-program-images-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image column */
.er-program-images {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-width: 380px;   /* 🔹 cap width so even-card images aren't huge */
  width: 100%;
}

/* Multi-image layout (STEAM, Summit) */
.er-program-images-multi {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-content: start;
  max-width: 420px;   /* 🔹 same idea: keep a comfortable max width */
  width: 100%;
}

/* Multi-image layout (STEAM, Summit) */
.er-program-images-multi {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-content: start;
}

/* Individual image wrapper */
.er-program-image-wrapper {
  overflow: hidden;
  border-radius: 18px;
  background: #f9f9f9;
  position: relative;
  /* Taller aspect ratio for single images to fill vertical space */
  aspect-ratio: 5/6;
}

/* Multi-image wrapper - smaller aspect ratio */
.er-program-images-multi .er-program-image-wrapper {
  aspect-ratio: 1 / 1;
}

/* Make first image in multi-layout span full width */
.er-program-images-multi .er-program-image-wrapper:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

/* Image styling */
.er-program-image-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 220ms ease-out;
}

.er-program-image-wrapper img:hover {
  transform: scale(1.03);
}

/* -------- Responsive for Programs page -------- */
@media (max-width: 960px) {
  .er-program-card {
    grid-template-columns: 1fr;
  }

  /* Stack images below content on mobile */
  .er-program-images {
    order: 2;
  }
  
  .er-program-content {
    order: 1;
  }
}

@media (max-width: 640px) {
  .er-program-card {
    padding: 20px;
    gap: 20px;
  }

  .er-program-title {
    font-size: 22px;
  }

  /* Single column layout for multi-images on mobile */
  .er-program-images-multi {
    grid-template-columns: 1fr;
  }

  .er-program-images-multi .er-program-image-wrapper:first-child {
    grid-column: 1;
  }

  /* Adjust aspect ratios for mobile */
  .er-program-image-wrapper {
    aspect-ratio: 16 / 10;
  }

  .er-program-images-multi .er-program-image-wrapper {
    aspect-ratio: 16 / 10;
  }
}

/*Survey Table */
.comments-cell {
  max-width: 500px;
  position: relative;
}

.comment-text {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.comment-text.truncated {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comment-toggle {
  color: #999;
  cursor: pointer;
  font-size: 0.9em;
  text-decoration: underline;
  margin-top: 4px;
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}

.comment-toggle:hover {
  color: #666;
}

/* Surveys score legend */
.score-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 12px;
  margin: 0 0 12px 0;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.02);
  border-radius: 12px;
  color: rgba(0,0,0,0.72);
  font-size: 0.92rem;
}

/* Scrollable table container with sticky headers */
.table-scroll {
  max-height: 520px;       /* adjust if you want taller/shorter */
  overflow: auto;
  border-radius: 12px;     /* matches modern card shapes */
}

/* Keep table layout unchanged */
.table-scroll table {
  width: 100%;
}

/* Sticky header */
.table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 2;              /* ensures header stays above body cells */
}

.score-legend .legend-title {
  font-weight: 600;
  color: rgba(0,0,0,0.75);
  margin-right: 2px;
}

.score-legend .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.score-legend .legend-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  font-weight: 650;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: rgba(0,0,0,0.75);
}

/* Edit Modal */
.action-buttons { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.btn-edit {
  background: #f2f2f2;
  border: 1px solid #d6d6d6;
  color: #333;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
}
.btn-edit:hover { background: #e9e9e9; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}
.modal {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  overflow: hidden;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #eee;
}
.modal-header h3 { margin: 0; font-size: 18px; }
.modal-close {
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  color: #444;
}
.modal-body { padding: 18px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.btn-cancel {
  background: #fff;
  border: 1px solid #d6d6d6;
  color: #111;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

/* Milestones button (blush) */
.btn-milestones{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:8px;
  font-weight:700;
  font-size:12px;
  line-height:1;
  text-decoration:none;
  cursor:pointer;

  background:#FDF1F1;      /* blush */
  border:1px solid #E7B1B1; /* slightly deeper blush border */
  color:#111;
}

.btn-milestones:hover{
  background:#F6D0CF;       /* a touch lighter */
  border-color:#E7B1B1;
  text-decoration:none;
}

.btn-milestones:active{
  transform:translateY(1px);
}

.btn-milestones:focus-visible{
  outline:3px solid rgba(242,198,198,0.6);
  outline-offset:2px;
}

/* ================================
   CREATE ACCOUNT PAGE (SCOPED)
   Nothing here overrides global form styles
   ================================ */

  .create-account-page .ca-wrap {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.create-account-page .ca-card {
  width: 100%;
  max-width: 760px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.08);
  overflow: hidden;
}

.create-account-page .ca-hero {
  background: #F2C6C6; /* site blush */
  padding: 26px 26px 22px;
}

.create-account-page .ca-hero h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0.2px;
  color: #111;
}

.create-account-page .ca-hero p {
  margin: 8px 0 0;
  opacity: 0.85;
  color: #111;
  font-weight: 600;
}

.create-account-page .ca-body {
  padding: 26px;
}

/* Helper row under CTA */
.create-account-page .ca-helper-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 13px;
  opacity: 0.85;
}

/* "Login" link styled like a subtle button-link */
.create-account-page .ca-link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
  color: inherit;
}

/* Small hint text under some fields */
.create-account-page .ca-hint {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.75;
  line-height: 1.35;
}

/* Full width CTA button without touching .btn globally */
.create-account-page .btn.ca-btn-wide {
  width: 100%;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

/* Tiny disclaimer at bottom */
.create-account-page .ca-small-note {
  margin-top: 12px;
  font-size: 12px;
  opacity: 0.7;
  text-align: center;
  line-height: 1.35;
}

/* Password match message */
.create-account-page .ca-password-match {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  display: none;
}

.create-account-page .ca-password-match.ok { color: #137333; }
.create-account-page .ca-password-match.bad { color: #b3261e; }

/* Optional: a slightly fancier focus ring ONLY for inputs inside create account page.
    This does not change borders/radius — just adds a ring on focus. */
.create-account-page input:focus,
.create-account-page select:focus,
.create-account-page textarea:focus {
  box-shadow: 0 0 0 4px rgba(242, 198, 198, 0.35);
}

/* Dashboard wrapper that matches your site cards */
.dashboard-card {
  padding: 18px;
  border-radius: 18px;
  overflow: hidden; /* prevents the viz from spilling past rounded corners */
}

/* Keep it full width of your site container, clean edges */
.dashboard-embed {
  width: 100%;
}

/* Optional: soften the Tableau embed edges (works when iframe/object renders inside) */
.dashboard-card .tableauPlaceholder {
  width: 100%;
}