/* V2 6/11/26 */
*, *::before, *::after {
  box-sizing: border-box;
}
:root {
  --primary: #e4b46c;              /* warm tan */
  --secondary-blue: #8b8de5;       /* softened lavender-blue */
  --secondary-green: #93f1b0;      /* mint green */
  --light: #fefdfb;                /* very soft off-white */
  --dark: #1e1e1e;
  --text: #2e2e2e;
  --card-bg: #fff9f0;    
  /* new — drawer-specific */
  --overlay-bg: rgba(30, 30, 30, 0.5);          /* creamy card background */
}

body.dark-mode {
  --primary: #f0c688;
  --secondary-blue: #989aee;
  --secondary-green: #93f1b0;
  --light: #2e2e2e;
  --dark: #fff;
  --text: #ecf0f1;
  --card-bg: #2c2c2c;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--light);
  color: var(--text);
  margin: 0;
}

.container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 180px;
  background-color: var(--secondary-blue);
  color: white;
  padding: 20px;
}
#home-section {
  animation: fadeIn 0.4s ease-in-out;
}

#home-section h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

#dashboard-summary p {
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

#dashboard-summary strong {
  color: var(--text);
}

#dashboard-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;  /* 2 equal columns */
  gap: 16px;
  margin: 30px auto 0 auto;
  width: 100%;
}

.dashboard-card {               /* each card takes equal space */
  min-width: 450px;   
  max-width: 850px;      /* below this width they'll wrap to stack */
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pp-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.pp-action-card {
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 14px 15px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.pp-action-card:hover {
  background: var(--purple-lt, #EEEDFE);
  border-color: var(--secondary-blue);
}

.pp-action-icon {
  font-size: 20px;
  color: var(--secondary-blue);
  margin-top: 1px;
  flex-shrink: 0;
}

.pp-action-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 3px;
}

.pp-action-desc {
  font-size: 12px;
  color: #666660;
  line-height: 1.5;
}

.options-panel {
  margin-top: 16px;
  padding: 16px 20px;
  background: #F3F2EE;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.09);
}

.options-panel-label {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--text);
}

.options-select,
.options-input {
  width: 100%;
  max-width: 320px;
  padding: 8px 12px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  background: white;
  margin-bottom: 12px;
}

.options-panel-actions {
  display: flex;
  gap: 10px;
}

.options-confirm-btn {
  background: var(--secondary-blue);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  width: auto;
  max-width: none;
}

.options-confirm-btn:hover {
  opacity: 0.88;
}

.options-cancel-btn {
  background: none;
  color: #666660;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  width: auto;
  max-width: none;
}

.options-cancel-btn:hover {
  background: white;
}
.pp-panel-title {
  font-size: 10px;
  font-weight: 600;
  color: #999994;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.pp-panel-title i {
  font-size: 15px;
  color: var(--secondary-blue);
}
.info-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  cursor: pointer;
}

.info-tooltip .ti-info-circle {
  font-size: 14px;
  color: #999994;
  transition: color 0.15s;
}

.info-tooltip:hover .ti-info-circle {
  color: var(--secondary-blue);
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 8px);
  background: #2e2e2e;
  color: white;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  padding: 10px 14px;
  border-radius: 8px;
  width: 280px;
  text-transform: none;
  letter-spacing: 0;
  z-index: 100;
  transition: opacity 0.2s;
  pointer-events: none;
}

/* little arrow pointing up */
.tooltip-text::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: #2e2e2e;
}

.info-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}
.growth-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.growth-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.growth-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.growth-name {
  font-size: 13px;
  color: var(--text);
}

.growth-gained {
  font-size: 11px;
  font-weight: 500;
}

.growth-track {
  height: 10px;
  background: #F3F2EE;
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.growth-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0;
  border-radius: 99px;
  transition: width 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.growth-meta {
  font-size: 10px;
  color: #999994;
  text-align: right;
}
.dashboard-card-streak-top {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dashboard-card-streak-top p {
  font-size: 10px;
  font-weight: 600;
  color: #999994;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}

.dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.streak-length {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.streak-length-top {
  padding: 0 2rem 0;
  display: flex;
  align-items: flex-start; /* IMPORTANT: top-align both columns */
  justify-content: space-between;
  width: 100%;
}
.streak-left {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.streak-right {
  flex: 1;
  max-width: 250px; /* optional */
}

#sidebar-menu .day-row { 
  margin: 0; 
}
#sidebar-menu .day-row a { 
  display: block; 
  padding: 3px 0; 
}

#dashboard-summary button {
  margin-top: 1.5rem;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  background-color: #4CAF50;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s;
}

#dashboard-summary button:hover {
  background-color: #3e8e41;
}
.progress-label {
  font-weight: bold;
  margin-bottom: 0.3rem;
  justify-content: space-between;
  display: flex;
}

.progress-bar {
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  height: 20px;
}

.progress-fill {
  height: 100%;
  background-color: #4CAF50;
  transition: width 0.3s ease-in-out;
}

/* Countdown and quote styling */
#countdown {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
}
#plan-length {
  padding-top: 20px;
}
.ti-checklist {
  content: "\f074";
}

/* Streak Display */
#streak-count {
  font-size: 18px;
  font-weight: 500;
  color: var(--primary);   /* gold/warm tone like pp-stats uses --gold */
}

/* Light/Dark mode support (optional) */
body.dark-mode #dashboard-summary {
  background-color: #222;
  color: #eee;
}

body.dark-mode #dashboard-summary strong {
  color: #ccc;
}

body.dark-mode #countdown,
body.dark-mode #quote {
  color: #ccc;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.sidebar h2 {
  font-size: 1rem;
}
.today-highlight {
  border: 3px solid #4CAF50;
  background-color: #e8f9e8;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.4);
  scroll-margin-top: 220px;
}
.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin: 12px 0;
}

.sidebar a, .sidebar button {
  color: white;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}
.week-goal-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #Fff; 
  border: 1px solid rgba(228, 180, 108, 0.35); /* subtle tan-tinted border */
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #6b5a3a;
  grid-column: 1 / -1; /* spans full width if week-grid is a CSS grid */
}

.week-goal-card i {
  font-size: 18px;
  flex-shrink: 0;
}
.main-content {
  flex: 1;
  padding: 30px;
  background-color: var(--card-bg);
}

.top-row {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: 12px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  flex-wrap: nowrap;
}
.dashboard-card-streak-top,
.countdown,
#today-button,
.pp-divider {
  flex-shrink: 0;
}

#today-button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  width: auto;
  max-width: none;
  background: var(--secondary-blue);
  border-radius: 8px;
}
#today-button:hover {
  background: #6f37e5;
}
.pp-divider { 
  width: 1px; 
  height: 38px; 
  background: rgba(0,0,0,0.09); 
  flex-shrink: 0; }
.top-row-label {
  font-size: 10px;
  font-weight: 600;
  color: #999994;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.top-row-divider {
  width: 1px;
  height: 38px;
  background: rgba(0,0,0,0.09);
  flex-shrink: 0;
}

.countdown {
  font-weight: bold;
  color: #444;
}

.progress-box {
  flex: 1 1 240px;
  min-width: 180px;
  max-width: 300px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  color: #999994;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0;
}
.progress-bar {
  background: #F3F2EE;
  border-radius: 99px;
  overflow: hidden;
  height: 8px;          /* was 12px or 20px */
  margin: 7px 0 0 0;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 99px;
  width: 0%;
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.quote {
  font-style: italic;
  font-size: 11px;
  max-width: 300px;
  color: #999994;
  line-height: 1.6;
}
.settings-wrapper {
  max-width: 600px;
  margin: 32px auto 0; /* top margin from header, centered horizontally */
}

.pp-settings-list {
  display: flex;
  flex-direction: column;
  gap: 4px; /* tight stack, since there's no card bg to separate items visually */
}

.pp-settings-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 8px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.08); /* thin divider instead of a boxed card */
  cursor: pointer;
  text-align: left;
}

.pp-settings-item:last-child {
  border-bottom: none;
}

.pp-settings-item:hover {
  background: rgba(0,0,0,0.02); /* subtle hover feedback since there's no card elevation to rely on */
}

.pp-action-icon {
  font-size: 22px;
  color: var(--text); /* or whatever accent color you use elsewhere */
  margin-top: 2px;
  flex-shrink: 0;
}

.week-grid {
  display: grid;
  grid-template-columns: 1fr;  /* single column, full width */
  gap: 12px;
  margin: 20px auto 0 auto;
  max-width: 700px;  /* comfortable reading width, not full screen */
}

.day-box {
  background: var(--light);
  padding: 6px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}
.day-box h4 {
font-size: 1.1rem;
}
#week-title {
  max-width: 700px;
  margin: 0 auto 0 auto;
}

.day-box:hover {
  transform: translateY(-3px);
}

.day-box h4 {
  margin: 0 0 10px 0;
}

/* Buttons */
  button {
    width: auto;
    max-width: 375px;
    padding: 10px 20px;
    font-size: 20px;
    background: #7a7ceb;
    color: white;
    white-space: normal;
    word-wrap: break-word;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
  }
  
  button:hover {
    background-color: #4b1ab6;
  }
  
  button:active {
    transform: scale(0.98);
  }

.task {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.task input[type="checkbox"] {
  margin-right: 8px;
}

.task.completed label {
  text-decoration: line-through;
  opacity: 0.6;
}

#level-badge {
  color: #999994;
  border-radius: 8px;
  font-weight: bold;
  display: flex;
}

#calendar-streak {
  display: flex;
  gap: 4px;
  margin-top: 15px;
}

.streak-day {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ccc;
}

.streak-day.active {
  background: var(--secondary-green);
}

@keyframes confetti {
  0% {transform: translateY(0);}
  100% {transform: translateY(300px) rotate(720deg);}
}

.confetti {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  animation: confetti 2s ease-out forwards;
  pointer-events: none;
  opacity: 0.8;
}
/* Partner Callout Block */
.partner-callout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #f0f7ff, #e8f4e8);
  border: 2px solid #4a90d9;
  border-radius: 12px;
  padding: 28px 24px;
  margin-bottom: 36px;
  text-align: center;
}

.partner-badge {
  background: #4a90d9;
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
}

.partner-logo {
  max-width: 220px;
  max-height: 80px;
  object-fit: contain;
}

.partner-description {
  font-size: 1rem;
  color: #333;
  max-width: 400px;
  margin: 0;
}

.promo-code {
  background: #fff;
  border: 2px dashed #4a90d9;
  color: #4a90d9;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  padding: 10px 24px;
  border-radius: 8px;
}

.partner-cta {
  display: inline-block;
  background: #4a90d9;
  color: white;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.partner-cta:hover {
  background: #357abd;
}
/* === Resources Section === */
#resources-section {
  padding: 1rem;
  animation: fadeIn 0.4s ease-in-out;
}
#howitworks-section {
  animation: fadeIn 0.4s ease-in-out;
}
.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.results-table th {
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  color: #999994;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-bottom: 10px;
  padding-right: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.09);
}

.results-table td {
  padding: 10px 0 10px 0;
  vertical-align: middle;
  border-bottom: 1px solid rgba(0,0,0,0.09);
  color: var(--text);
}

.results-table tr:last-child td {
  border-bottom: none;
}

/* Badge styles to replace inline color text */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 99px;
  white-space: nowrap;
}

.badge-warn   { background: #FAEEDA; color: #854F0B; }
.badge-danger { background: #FCEBEB; color: #A32D2D; }
.badge-ok     { background: #EAF3DE; color: #27500A; }

.header-overall {
  background-color: #e4b46c;
}
.header-background {
  top: 0;
  width: 100%;
  z-index: 10000;
  position: sticky;
}
.detail-task-list li,
.task {
  position: relative;
}
.xp-pop {
  position: absolute;
  top: -4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--secondary-blue);
  pointer-events: none;
  opacity: 0;
  white-space: nowrap;
  animation: xp-float 900ms ease-out forwards;
}

@keyframes xp-float {
  0%   { opacity: 0; transform: translateY(0) scale(0.9); }
  15%  { opacity: 1; transform: translateY(-6px) scale(1.05); }
  30%  { transform: translateY(-10px) scale(1); }
  100% { opacity: 0; transform: translateY(-24px) scale(1); }
}

.cb-pulse {
  animation: cb-pulse 350ms ease-out;
}

@keyframes cb-pulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.utility-links {
  font-size: 0.8rem;
  gap: 10px;
  list-style: none;
  margin: 0;
  display: flex;
}

.header-utility a {
  color: #555;
  text-decoration: none;
}
.utility-divider {
  border-top: 2px solid white;
  margin: 12px 0 8px;
}
.howitworks-wrapper {
  max-width: 700px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 24px; /* this is your missing gap */
}

.howitworks-video-card,
.howitworks-contact-card {
  text-align: center;
}

.video-wrapper {
  margin-top: 16px; /* space between the intro sentence and the video itself */
}

.video-wrapper iframe {
  max-width: 640px;
  width: 100%;
  aspect-ratio: 640 / 347; /* keeps proportions responsive instead of a fixed 640px width */
  height: auto;
}
.howitworks-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.header-container {
    display: flex;
    align-items: center; /* Center vertically */
    justify-content: space-between; /* Space out elements */
    padding: 0px 10px 10px 10px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;  
}
.header-logo {
    max-width: 200px; /* Adjust to make the logo smaller */
    height: auto; /* Maintain aspect ratio */
    margin-right: 40px; /* Space between the logo and the nav */
    padding-left: 20px;
    flex: 1 1 auto;
}
.nav-links {
    display: flex;
    flex: 2 1 auto;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 8px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center; /* Center icons and text */
}
.nav-links img {
    width: 24px;
    height: 24px;
    margin-left: 5px;
    vertical-align: middle;
    object-fit: contain;
}
.faq-item {
  text-align: left;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: 10px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+ ";
}

.faq-item[open] summary::before {
  content: "– ";
}

.faq-item p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

/* Example topic colors */
.topic-label.cardiopulmonary {
  color: rgb(60,125,34);
}
.topic-label.musculoskeletal {
  color: rgb(237,0,0);
}
.topic-label.neuromuscular {
  color: rgb(112,48,160);
}
.topic-label.other-systems {
  color: rgb(166,101,0);
}
.topic-label.non-systems {
  color: rgb(0,112,192);
}


.topic-toggle.musculoskeletal .toggle-icon { color: rgb(237,0,0); }
.topic-toggle.neuromuscular .toggle-icon { color: rgb(112,48,160); }
.topic-toggle.cardiopulmonary .toggle-icon { color: rgb(60,125,34); }
.topic-toggle.other-systems .toggle-icon { color: rgb(166,101,0); }
.topic-toggle.non-systems .toggle-icon { color: rgb(0,112,192); }

/* etc... just add as needed */

.resources-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0;
}
.video-wrapper {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  position: relative;
  margin: 0 auto;   /* 👈 centers horizontally */
}


.video-wrapper iframe {
  position: absolute;   /* force fill */
  inset: 0;             /* top/right/bottom/left = 0 */
  width: 100%;
  height: 100%;
  border: 0;
}
.expand-tasks-btn {
  margin-top: 8px;
  background: none;
  border: 1px solid var(--accent, #6c8ebf);
  border-radius: 4px;
  color: var(--accent, #6c8ebf);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px 10px;
  width: 100%;
  text-align: left;
  transition: background 0.2s;
}

.topic-toggle:hover {
  opacity: 0.75;
}

.topic-toggle-meta {
  margin-bottom: 4px;
  display:block;
}
.topic-task {
  display: block;
  margin-bottom: 20px;
}

.topic-toggle {
  cursor: pointer;
  font-weight: bold;
  user-select: none;
}
.topic-toggle-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.toggle-icon {
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1;
  margin-right: 8px;
}
.detail-task-list {
  display: block;  /* explicit block so it always stacks below */
  margin: 8px 0 0 0;
  padding-left: 0;
  list-style: none;
  width: 100%;
}
.detail-task-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 0;
  font-size: 0.85rem;
  font-weight: normal;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  color: initial;
}
.detail-task-list li.completed label {
  text-decoration: line-through;
  opacity: 0.5;
}
.expand-tasks-btn:hover {
  background: var(--accent, #6c8ebf);
  color: white;
}
.week-group-header { 
  display: flex; 
  align-items: center; 
  gap: 6px; 
  padding: 8px 4px; 
  cursor: pointer; 
  opacity: 0.7; 
  font-size: 14px; 
}
.star-badge { 
  margin-left: 4px; 
  color: rgba(255,255,255,0.35); 
  transition: color 0.2s ease; 
}
.star-badge.star-complete { color: gold; }
.week-entry.week-entry-open {
  background: rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 8px;
}
.week-group-header:hover { 
  opacity: 1; 
}
.week-group-body, .week-days, .current-week-days { 
  list-style: none; 
  margin: 4px 0 8px; 
  padding-left: 14px; 
}
.week-group-body .week-entry-text,
.week-group-body .day-row a {
  font-size: 14px;
  opacity: 0.8;
  transition: opacity 0.15s ease;
}
.contact-card-actions {
  display: flex;
  gap: 10%;
  justify-content:center;
}
.level-track {
  display: flex;
  width: 100%;
  gap: 2px;
  margin-top: 8px;
}

.level-dot {
  flex: 1;
  aspect-ratio: 1;
  min-width: 0; /* lets flex items shrink below their content size */
  max-width: 14px; /* caps how big they get when there are few of them */
  border-radius: 50%;
  background: #e0e0e0;
}

.level-dot.current {
  box-shadow: 0 0 0 2px rgba(0,0,0,0.18);
  transform: scale(1.35);
}
.app-loading #welcome-heading,
.app-loading #competence-growth,
.app-loading #plan-blueprint,
.app-loading #current-scores {
  visibility: hidden;
}
.get-ready-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}

.get-ready-modal {
  position: relative;
  width: 420px;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.get-ready-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #888;
}

.get-ready-modal h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.get-ready-modal > p {
  margin: 0 0 16px;
  font-size: 14px;
  color: #666;
}

.get-ready-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.get-ready-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid #eee;
}

.get-ready-list strong {
  font-size: 14px;
}

.get-ready-list span {
  font-size: 13px;
  color: #666;
}

.get-ready-primary {
  width: 100%;
  margin-top: 16px;
  height: 40px;
  background: var(--secondary-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.week1-banner {
  background: var(--bg-accent-muted, #eef4fc);
  border: 1px solid var(--border-accent, #b5d4f4);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.week1-banner p {
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}
#resources-section,
#howitworks-section,
#settings-section {
  scroll-margin-top: 130px;
}
#howitworks-section .dashboard-card {
  margin-bottom: 24px;
}
.week-group-body .week-entry:hover .week-entry-text,
.week-group-body .week-entry:hover .day-row a {
  opacity: 1;
}

.week-group-body .week-entry.week-entry-open .week-entry-text,
.week-group-body .week-entry.week-entry-open .day-row a {
  opacity: 1;
}
.week-entry-link { 
  display: block; 
  padding: 0; 
  color: rgba(255,255,255,0.75); 
  text-decoration: none;
 }
.current-week-block { 
  background: rgba(255,255,255,0.12); 
  border-radius: 8px; 
  padding: 10px; 
  margin: 8px 0; 
}
.current-week-days a { 
  color: white; 
  font-size: 14px; 
  text-decoration: none; 
  display: block; 
  padding: 3px 0; 
}
.sidebar-secondary {
  font-size: 12px;
}
.today-row a { 
  font-weight: 600;
 }
.xp-bar-track { 
  height: 6px; 
  border-radius: 99px; 
  background: rgba(255,255,255,0.25); 
  overflow: hidden; 
}
.xp-bar-fill { 
  height: 100%; 
  background: white; 
  border-radius: 99px; 
}
.xp-bar-label { 
  font-size: 11px; 
  color: rgba(255,255,255,0.85); 
}

.resource-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card-bg, #f9f9f9);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
  background-color: var(--light);
}

.resource-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.resource-item img {
  width: 32px;
  height: 32px;
}
.page-wrapper {
/* allows inner content to determine width */
  min-width: 100%;    /* ensures header spans at least full screen */
}
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #333;
  padding: 10px;
  margin: 0;
  width: auto;
  max-width: none;
}
.hamburger-header {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.hamburger-header span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.hamburger-header.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-header.is-open span:nth-child(2) { opacity: 0; }
.hamburger-header.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 998;
}
.sidebar-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav {
  display: none;
}
#week-section {
  animation: fadeIn 0.4s ease-in-out;
}
@media (max-width: 1170px) {
  .quote {
    display: none;
  }
}
@media (max-width: 768px) {
  body {
    background-color: var(--card-bg);
  }
  .dashboard-card {  
  min-width: 0px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.current-week-days a {
  color: var(--text);
}
.sidebar a {
  color: var(--text);
  opacity: 0.85;
}
.star-badge {
  color: rgba(0,0,0,0.35);
}
.xp-bar-fill {
  background: var(--text);
  opacity: 0.8;
}
.xp-bar-label {
  color: rgba(0, 0, 0, 0.85)
}
  .nav-links-mobile-img {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links-mobile-img li {
    margin: 4px 0;
}

.nav-links-mobile-img a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center; /* Center icons and text */
}
.nav-links-mobile-img img {
    width: 24px;
    height: 24px;
    margin-left: 5px;
    margin-right: 10px;
    vertical-align: middle;
    object-fit: contain;
}

  .nav-links-mobile {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links-mobile li {
  margin: 4px 0;
}
.progress-box {
  flex: none;
}
.nav-links-mobile a {
  color: var(--text);              /* was: var(--light) */
}
.nav-links-mobile a:hover,
.nav-links-mobile a:focus-visible {
  background: rgba(228, 180, 108, .12);   /* tan tint */
  color: #a97b32;                          /* darkened tan — keeps contrast on a light bg */
}
.nav-links-mobile img {
    width: 24px;
    height: 24px;
    margin-left: 5px;
    vertical-align: middle;
    object-fit: contain;
}
  .hamburger {
    display: block;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  .header-container {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
  }
  .header-utility {
    display: none;
  }
    #dashboard-summary {
    grid-template-columns: 1fr;
  }
  .utility-divider {
  height: 1px;
  margin: 16px 20px;
}
.xp-bar-track {
  background: rgba(0,0,0,0.25);
}
    .pp-divider,
  .top-row-divider {
    display: none;
  }

  .dashboard-card-full {
    grid-column: span 1;  /* can't span 2 if there's only 1 column */
  }


  .header-container h1 {
  order: 2;
  flex: 1;            /* takes up remaining space between hamburger and logo */
  text-align: center;
  font-size: 1.4rem;
  margin: 0;
  width: auto;        /* remove the 100% width */
}  

.header-logo-link {
  order: 3;
  margin: 0;
  max-width: 120px;
  min-width: 0;
  display: block; /* or inline-block, helps sizing behave */
}

  .header-logo {
    max-width: 100%;
    display: block;
    padding: 0;
    margin: 0;          /* ← add this: kills the leftover 40px */
  }

  .hamburger-header { display: flex; }
  .mobile-nav {
    display: flex;
    flex-direction: column;
  }
  .desktop-nav {
    display: none;
  }
  .sidebar {
  padding: 40px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 82%;
  max-width: 300px;
  background: var(--card-bg);      /* was: var(--drawer-bg) */
  color: var(--text);          
  overflow-y: auto;
  box-shadow: 16px 0 40px rgba(30, 30, 30, .18); 
  border-right: 1px solid rgba(30, 30, 30, .08);
  transform: translateX(-100%);
  transition: transform .32s cubic-bezier(.22,.68,0,1.02);
  z-index: 999;
  display: block;
}
.sidebar.open {
  transform: translateX(0);
}
  .sidebar li {
    margin: 4px 0;
  }
.sidebar-divider {
  height: 1px;
  margin: 16px 20px;
}
.utility-divider,
.sidebar-divider {
  background: rgba(30, 30, 30, .8);        /* was: rgba(255,255,255,.1) */
}

#sidebar-menu {
  padding: 20px 20px 4px;      /* was: padding: 16px 20px 0; margin-top: 16px; border-top: 1px solid ...; */
}
.study-plan-title {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(46, 46, 46, .55);
  margin-bottom: 8px;
  padding-top: 60px;
}
#sidebar-menu li,
#sidebar-menu b {
  color: var(--text);              /* was: var(--light) */
}
@media (prefers-reduced-motion: reduce) {
  .sidebar, .sidebar-overlay, .hamburger-header span { transition: none !important; }
}

  .nav-links {
    flex-direction: row;           /* keep nav links in a row */
    justify-content: center;       /* center them under header text */
    flex-wrap: wrap;               /* wrap to next line if too long */
    width: 100%;
  }

  .nav-links li {
    margin: 4px 8px;               /* spacing between links */
  }
  .streak-and-length {
    flex-direction: column;
    gap: 10px;
  }
    #week-section {
    flex-direction: column;
  }
  #week-summary-panel {
    position: static;
    width: 100%;
    box-sizing: border-box;
  }
    .page-wrapper {
    width: 100%;  /* was 768px — this was causing horizontal scroll */
  }
.streak-length-top {
  flex-direction: column;
}
.container {
    flex-direction: column;
  }
   .top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .progress-box {
    width: 100%;
    margin-bottom: 10px;
  }
  .quote {
    max-width: 100%;
  }
    button {
    font-size: 16px;
    padding: 8px 16px;
    max-width: 80%;
  }
    .day-box {
    padding: 12px;
    font-size: 0.95rem;
  }
  #week-title {
    max-width: 100%;
    margin: 0 0 0 0;
    padding: 0 12px;
  }
  .week-grid {
    padding: 0 12px;
    margin-top: 12px;
  }
.results-table {
    border-spacing: 0;
  }
  .results-table thead {
    display: none;
  }
  .results-table th {
    display: none;
  }
  .results-table tr {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  }
  .results-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 0.85rem;
    text-align: left !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  .results-table td:last-child {
    border-bottom: none;
  }
  .results-table td::before {
    content: attr(data-label);
    font-weight: bold;
    margin-right: 10px;
    flex-shrink: 0;
    color: #555;
  }
}