/* SWA Study Desk — tracker + course path */

.study-desk .dash-content {
  max-width: 1100px;
}

.study-panel-desc {
  color: #6a7a70;
  margin: -0.35rem 0 1.15rem;
  font-size: 0.92rem;
}

.study-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 1.65rem;
  margin-bottom: 1.15rem;
  border-radius: 18px;
  background: linear-gradient(125deg, #145524 0%, #22823a 55%, #2ea855 100%);
  color: #fff;
  box-shadow: 0 16px 40px rgba(34, 130, 58, 0.22);
}

.study-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

.study-hero h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-head, Syne, sans-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  color: #fff;
}

.study-hero-text > p:not(.study-kicker) {
  margin: 0;
  opacity: 0.92;
  max-width: 42ch;
  line-height: 1.45;
}

.study-hero .welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.study-hero .btn-two {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.study-ring-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  min-width: 220px;
}

.study-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: conic-gradient(#fff calc(var(--pct) * 1%), rgba(255, 255, 255, 0.22) 0);
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
}

.study-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #1a6b2e;
}

.study-ring span {
  position: relative;
  z-index: 1;
  font-weight: 800;
  font-size: 0.9rem;
}

.study-ring-meta strong {
  display: block;
  font-size: 0.95rem;
}

.study-ring-meta span {
  font-size: 0.78rem;
  opacity: 0.85;
}

/* Tracker bar */
.study-tracker-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 1.4fr;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(34, 130, 58, 0.12);
  box-shadow: 0 8px 28px rgba(15, 40, 25, 0.05);
}

.study-tracker-bar.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.st-stat .st-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a7a70;
  margin-bottom: 0.2rem;
}

.st-stat strong {
  font-size: 1.15rem;
  color: #131615;
}

.st-track-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.st-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(34, 130, 58, 0.12);
  overflow: hidden;
}

.st-track.tall {
  height: 14px;
}

.st-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1a6b2e, #3ecf6a);
  transition: width 0.45s ease;
}

.st-track-wrap span {
  font-size: 0.78rem;
  color: #6a7a70;
  font-weight: 600;
}

/* Course path timeline */
.study-path {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 0.25rem;
}

.study-path-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.85rem;
  position: relative;
  padding-bottom: 1.15rem;
}

.study-path-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background: rgba(34, 130, 58, 0.18);
}

.spath-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(34, 130, 58, 0.1);
  color: #145524;
  border: 2px solid rgba(34, 130, 58, 0.25);
  z-index: 1;
}

.spath-dot.done {
  background: #22823a;
  color: #fff;
  border-color: #22823a;
}

.spath-dot.current {
  box-shadow: 0 0 0 4px rgba(34, 130, 58, 0.18);
  border-color: #22823a;
}

.spath-body {
  background: #fff;
  border: 1px solid rgba(34, 130, 58, 0.12);
  border-radius: 14px;
  padding: 0.85rem 1rem;
}

.spath-body h4 {
  margin: 0 0 0.2rem;
  font-family: var(--font-head, Syne, sans-serif);
  font-size: 1rem;
  color: #131615;
}

.spath-body .theme {
  font-size: 0.75rem;
  color: #22823a;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.spath-body p {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: #6a7a70;
}

.spath-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  justify-content: space-between;
}

.spath-meta .mini {
  flex: 1;
  min-width: 120px;
  height: 6px;
  border-radius: 999px;
  background: rgba(34, 130, 58, 0.12);
  overflow: hidden;
}

.spath-meta .mini i {
  display: block;
  height: 100%;
  background: #22823a;
}

.spath-meta span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #3d4a42;
}

.spath-outline {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(34, 130, 58, 0.1);
  padding-top: 0.65rem;
}

.spath-outline li a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0;
  color: #2a332f;
  text-decoration: none;
  font-size: 0.88rem;
}

.spath-outline li a.done {
  color: #22823a;
}

.spath-outline li a:hover {
  color: #145524;
}

/* Types grid */
.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.types-grid a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(34, 130, 58, 0.14);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.types-grid a:hover {
  border-color: rgba(34, 130, 58, 0.35);
  box-shadow: 0 10px 28px rgba(15, 40, 25, 0.08);
  transform: translateY(-2px);
}

.types-grid .badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #22823a;
}

.types-grid strong {
  font-size: 0.92rem;
  color: #131615;
}

.types-grid em {
  font-style: normal;
  font-size: 0.75rem;
  color: #6a7a70;
}

.types-grid a.is-done {
  border-color: rgba(34, 130, 58, 0.4);
  background: rgba(34, 130, 58, 0.05);
}

/* Tracker grade list */
.tracker-grade-list {
  margin-top: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tr-grade {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(34, 130, 58, 0.12);
  background: #fafcfb;
}

.tr-grade h4 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
}

.tr-grade .bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(34, 130, 58, 0.12);
  overflow: hidden;
  margin-top: 0.35rem;
}

.tr-grade .bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1a6b2e, #3ecf6a);
}

.tr-grade .pct {
  font-weight: 800;
  color: #22823a;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .study-hero {
    grid-template-columns: 1fr;
  }
  .study-tracker-bar {
    grid-template-columns: 1fr 1fr;
  }
  .study-tracker-bar.compact {
    grid-template-columns: 1fr 1fr;
  }
  .st-track-wrap {
    grid-column: 1 / -1;
  }
}
