/* Base Layout */
body {
  font-family: Arial, sans-serif;
  padding: 2rem;
  background: #f9f9f9;
  color: #333;
  max-width: 1400px;
  margin: auto;
}

h1 {
  text-align: center;
  margin-bottom: 2rem;
}

/* Slide Presentation */
.slide {
  display: none;
  width: 100%;
  transition: visibility 0.3s, opacity 0.3s ease-in-out;
}

/* Buttons */
button {
  display: block;
  margin: 2rem auto;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background-color: #2c7be5;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
button:hover {
  background-color: #1a5fd1;
}

/* Question Styling */
.question {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 4px rgba(0,0,0,0.05);
}
.question p {
  margin-bottom: 0.5rem;
}
.question > label {
  display: block;
  margin-bottom: 0.5rem;
}

input[type="radio"] {
  margin-right: 0.5rem;
}

/* Results Grid Layout */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.results-upper,
.results-lower {
  display: contents;
}

.results-upper-left {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 500px;
}

@media (min-width: 901px) {
  .results-upper-left {
    grid-column: span 1;
  }
}

.results-lower-left {
  padding-top: 4rem;
}

.results-upper-left,
.results-lower-left,
.results-lower-right {
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

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

/* Chart Canvas */
#resultChartCanvas {
  width: auto !important;
  height: auto !important;
  min-width: 500px;
  max-width: 100%;
  margin: 0 auto;
  display: block;
  aspect-ratio: 1/1;
  object-fit: contain;
}

/* Result Description */
.result-description {
  font-size: 1.1rem;
  line-height: 1.6;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

/* Subtype and Attribute Notes Blocks */
.attribute-notes {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 4px rgba(0,0,0,0.05);
  font-size: 1rem;
  line-height: 1.6;
}
.attribute-notes h4 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

/* Image Grid on Quiz Slides */
.image-grid label {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0;
  padding: 0;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  justify-items: center;
}
@media (max-width: 900px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.quiz-image {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  margin: 0.5rem 0;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s ease-in-out;
}

.quiz-image:hover {
  border-color: #2c7be5;
}

/* Show attribute names at ends */
.range-label {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.range-label span {
  width: 50%;
  text-align: center;
}
.range-label span:first-child {
  text-align: left;
}
.range-label span:last-child {
  text-align: right;
}

.dual-wrapper {
  margin: 1.5rem 0;
  position: relative;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.dual-track {
  position: relative;
  width: 90%;
  height: 8px;
  background: #e0e0e0;
  margin: 1rem auto;
  border-radius: 4px;
  overflow: visible;
}

.range-bar {
  position: absolute;
  height: 100%;
  background: #000;
  border-radius: 4px;
  left: 0;
  right: 0;
}

/* Zero marker visual anchor */
.zero-marker {
  position: absolute;
  left: 50%;
  top: -26px;
  width: 4px;
  height: 60px;
  background: black;
  transform: translateX(-50%);
  z-index: 3;
}

/* Tick marks at 0%, 25%, 50%, 75%, 100% */
.dual-track .tick {
  position: absolute;
  top: -6px;
  width: 2px;
  height: 20px;
  background: #999;
  transform: translateX(-50%);
  z-index: 2;
}

.dual-track .tick-0   { left: 0%; }
.dual-track .tick-25  { left: 25%; }
.dual-track .tick-50  { left: 50%; }
.dual-track .tick-75  { left: 75%; }
.dual-track .tick-100 { left: 100%; }

/* Position percentage labels underneath the track */
.marker-labels {
  position: relative;
  height: 1.5rem;
  margin-top: 0.25rem;
}
.marker-labels .label-a,
.marker-labels .label-b {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-size: 0.9rem;
  color: black;
}

.cover-slide {
  margin-top: -20px;
  text-align: center;
  padding: 3rem 2rem;
}

.cover-slide h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cover-slide p {
  font-size: 1.125rem;
  margin-top: -20px;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cover-buttons {
  display: flex;
  flex-direction: column;
  align-items: stretch;    /* make buttons fill container width */
  gap: 0.75rem;            /* vertical space between each button */
  width: 100%;             /* ensure the container is full‐width */
  max-width: 300px;        /* optional: cap its width */
  margin: 0 auto;          /* center on the page */
}

.section-header {
  font-size: 1.25rem;
  font-weight: bold;
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-align: left;
  color: #222;
}

#attributeResults {
  margin-top: 1rem;
}

.readiness-block {
  max-width: 100%;
  margin: 2rem auto 0 auto;
  padding: 2rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.05);
  font-size: 1.1rem;
  line-height: 1.7;
}

.readiness-block p {
  margin-top: 1rem;
  padding: 0 1rem;
  word-wrap: break-word;
}

@media (min-width: 900px) {
  .results-upper-left canvas {
    height: auto !important;
    max-height: 100% !important;
  }

  .results-upper-left {
    align-items: stretch !important;
  }

  #resultChartCanvas {
    height: auto !important;
    max-height: 100% !important;
    aspect-ratio: 1 / 1;
    object-fit: contain;
  }
}

.strategy-guide h3 {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  color: #2c7be5;
}

.strategy-guide h4 {
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.strategy-guide ul {
  margin: 0.5rem 1rem 1rem;
  list-style: disc inside;
}

.strategy-guide p {
  margin: 0.5rem 0;
}

#attribute-insights {
  grid-column: 1 / -1;
  padding: 1rem;
  margin: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  text-align: center;
}

#attribute-insights ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1rem;  /* adjust bottom margin as needed */
}

#attribute-details {
  display: none;      /* hidden by default */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

#toggle-attributes {
  display: inline-block;  /* shrink‐to‐fit button */
  margin: 0;              /* reset default margins */
}

.paywall-block {
  text-align: center;
  margin-top: 1rem;
}
.paywall-block p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
#unlock-results {
  display: inline-block;
  margin: 0 auto;
}

/* evenly distribute the attribute descriptions vertically */
#attributeDescriptions {
  display: flex;
  flex-direction: column;
  justify-content: space-between;  /* or space-evenly if you want padding above & below too */
  height: 100%;                     /* ensure it fills its parent’s height */
}

  .subtype-description {
    padding-bottom: 2rem;
}

@media print {
  /* 1) Collapse the results grid into one column */
  .results-grid {
    grid-template-columns: 1fr !important;  /* override the default 2-column layout */ 
  }

  /* 2) Make each grid cell span full width */
  .results-upper-left,
  .results-upper-right,
  .results-lower-left,
  .results-lower-right {
    min-width: 0 !important;    /* remove any leftover min-widths */
    width:     100% !important; /* force each cell to fill the page width */
  }

  /* 3) Ensure your radar chart and text blocks shrink to fit */
  #resultChartCanvas,
  .result-description,
  .subtype-description,
  .attribute-notes {
    max-width: 100% !important;
    width:     100% !important;
  }
}

@media (max-width: 900px) {
  /* allow the grid cells to shrink past their content’s min-width */
  .results-upper-left,
  .results-upper-right,
  .results-lower-left,
  .results-lower-right {
    min-width: 0;
  }

  /* override the chart’s forced 500px minimum and make it fluid */
  #resultChartCanvas {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* force all result-section paragraphs to wrap inside their boxes */
.result-description p,
.subtype-description p,
.attribute-notes p,
.strategy-guide p {
  /* legacy and modern wrapping */
  word-wrap:       break-word;
  overflow-wrap:   break-word;
}

/* 4×4 grid for the 16 subtype buttons */
.subtype-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}
.subtype-grid button {
  padding: 0.5rem;
  font-size: 0.9rem;
  border: 1px solid #333;
  border-radius: 4px;
  background: #f7f7f7;
  cursor: pointer;
}
.subtype-grid button:hover {
  background: #e2e2e2;
}

/* in your main CSS (e.g. styles.css) */
.person-photo {
  width: 100%;        /* fill its container’s width */
  max-width: 14rem;   /* match the grid-column/button width */
  height: auto;       /* keep aspect ratio */
  border-radius: 0;   /* ensure it’s not rounded */
  display: block;     /* remove any inline spacing */
  margin: 0 auto;     /* center if needed */
}

.person-photo {
  display: block;
  width: 100%;
  height: auto;
}

/* make the photo look clickable */
.person-photo-container {
  position: relative;
  display: inline-block;
  width: 14rem;      /* same width as your buttons */
  cursor: pointer;
}

.person-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.5rem 0; /* space above & below text */
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 1.2rem;
  text-align: center;
  font-weight: bold;
  box-sizing: border-box;
}

.cover-person-grid {
  display: grid;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  /* fallback for very old browsers: */
  grid-template-columns: repeat(1, 14rem);
}

.cover-person-grid button {
  margin-top: .5rem;
}

/* phones: 1 across (you already have that as the default) */
@media (min-width: 480px) {
  .cover-person-grid {
    grid-template-columns: repeat(2, 14rem);
  }
}

/* vertical iPad (~768px wide): 2 across → switch to 2 (same as phones) but you could bump to 3 above 768 if you like */
@media (min-width: 768px) {
  .cover-person-grid {
    grid-template-columns: repeat(2, 14rem);
  }
}

/* horizontal iPad (~1024px wide): 3 across */
@media (min-width: 1024px) {
  .cover-person-grid {
    grid-template-columns: repeat(3, 14rem);
  }
}

/* desktops and large screens: 4 across */
@media (min-width: 1280px) {
  .cover-person-grid {
    grid-template-columns: repeat(4, 14rem);
  }
}

/* Dashboard panel styling */
.dashboard-panel {
  display: none;
  background-color: #f5f7fa; /* light gray-blue background */
  border: 1px solid #d1d5db;  /* subtle gray border */
  border-radius: 0.5rem;      /* rounded corners */
  padding: 1rem;              /* inner space */
  margin-top: 2rem;           /* separation from grid */
  box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* slight drop-shadow */
}

#panel-summary {
  font-weight: 500;
  font-size: 1rem;
  color: #1f2937;
  margin-bottom: 0.5rem;
}
#panel-influencer {
  font-size: 0.95rem;
  color: #374151;
  margin-bottom: 0.5rem;
}
#panel-count {
  font-size: 0.95rem;
  color: #374151;
  margin-bottom: 1rem;
}

#panel-overview {
  font-size: 0.95rem;
  color: #1f2937;
  margin-bottom: 1rem;
}
#panel-overview div {
  margin-bottom: 0.25rem;
}
#panel-overview strong {
  font-weight: 600;
}

.paypal-container-V7PC7K2747GRN {
    text-align: center;
}