/**********************
*      HOMEPAGE       *
**********************/
/* .flex-child-half { width: 45%; }

h1.home {
  font-size: 50px;
  max-width: 500px;
  margin: 30px 0 60px;
  line-height: 1.2;
}

.section {
  display: block;
  width: 100%;
  background-color: var(--bg-surface);
  box-shadow: $boxShadow;
  margin: 10px 0;
  min-height: 200px;
}

.section h2 {
  margin: 0;
  padding: 10px 20px;
  border: 1px dashed #ccc;
}

.section img {
  height: 200px;
  padding: 30px 20px 30px 15px;
}

.section-content {
  display: inline-block;
  position: relative;
  width: 60%;
  padding-left: 30px;
}

.home-course-list {
  padding: 0;
  margin: 10px 0;
}

.home-course-list-item {
  width: 100%;
  padding: 5px 15px;
  display: grid;
  grid-template-columns: 10fr 1fr;
  grid-gap: 100px;
  border: 2px solid transparent;
  cursor: pointer;
}

.home-course-list a {
  color: $bluepurple;
  font-weight: bold;
}

.home-course-list a:hover { text-decoration: none; }

.home-course-list-item:hover {
  border-radius: 15px;
  border: 2px solid $purple;
}

.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

a.bottom-link { margin: 0 15px 20px; } */



/* ---------- Homepage: hero card tokens ---------- */
 
:root {
  --bg-hero: #2B3A67;
  --text-on-hero: #F5F0E4;
  --text-on-hero-muted: #B5C0E4;
  --track-on-hero: #455184;
}
 
[data-theme="dark"] {
  --bg-hero: #2A3350;
  --text-on-hero: #F0EBE0;
  --text-on-hero-muted: #9FA9C4;
  --track-on-hero: #3A4360;
}
 
/* ---------- Homepage: welcome + section spacing ---------- */
 
.welcome {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 20px;
}
 
.home-section {
  margin-bottom: 35px;
}
 
.scroll-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
 
.section-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}
 
.scroll-header .section-label {
  margin: 0;
}
 
.scroll-hint {
  font-size: 12px;
  color: var(--text-secondary);
}
 
/* ---------- Homepage: continue-learning horizontal scroll ---------- */
 
.continue-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.continue-scroll a:hover {
    text-decoration: none;
}

.continue-card,
.edit-card {
  flex-flow: column;
  padding: 18px 20px;
  min-width: 240px;
  max-width: 240px;
  scroll-snap-align: start;
  gap:10px;
  flex-shrink: 0;

}
 
.continue-card {
  height: 320px;
}

.edit-card {
  height: 150px;
}

.course-info {
  width: 100%;
  flex-direction: column;
  display: flex;
}

.continue-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
 
.continue-track {
  flex: 1;
  height: 5px;
  background: var(--track-on-hero);
  border-radius: 3px;
  overflow: hidden;
}
 
.continue-fill {
  height: 100%;
  width: var(--progress, 0%);
  background: var(--color-accent);
  border-radius: 3px;
}
 
.continue-count {
  font-size: 15px;
  color: var(--text-secondary);
  text-align: left;
}
 
.progress-track {
    margin-top: auto;
}

.view-all-card {
  background: var(--tint-phonology-bg);
  border: 1px dashed var(--border);
  min-width: 180px;
  max-width: 180px;
  flex-shrink: 0;
}