/* Traxcelerator — Productly-derived theme (ThemeWagon) *
 * Palette & typography from https://themewagon.github.io/productly/v1.0.0/ */

@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap");

:root {
  /* Productly theme.css */
  --prod-purple: #747def;
  --prod-indigo: #6237ff;
  --prod-coral: #df6951;
  --prod-orange: #ff9900;
  --prod-green: #79b93c;
  --prod-teal: #567592;
  --prod-bg: #fffefe;
  --prod-section: #f0f4f9;
  --prod-text: #2f281e;
  --prod-text-muted: #544837;
  --prod-border: #e8edf2;
  --prod-white: #fffefe;

  /* Map legacy “g-*” utilities to Productly accents (templates keep working) */
  --g-blue: #747def;
  --g-red: #df6951;
  --g-yellow: #ff9900;
  --g-green: #79b93c;
  --g-grey-50: #f0f4f9;
  --g-grey-100: #e8eef5;
  --g-grey-300: #dde4ec;
  --g-grey-500: #979797;
  --g-grey-700: #544837;
  --g-grey-900: #2f281e;
  --g-on-primary: #fffefe;

  --bs-primary: #747def;
  --bs-primary-rgb: 116, 125, 239;
  --bs-link-color: #747def;
  --bs-link-hover-color: #6237ff;
  --bs-success: #79b93c;
  --bs-success-rgb: 121, 185, 60;
  --bs-danger: #df6951;
  --bs-danger-rgb: 223, 105, 81;
  --bs-warning: #ff9900;
  --bs-warning-rgb: 255, 153, 0;
  --bs-info: #567592;
  --bs-info-rgb: 86, 117, 146;
  --bs-body-bg: #fffefe;
  --bs-body-color: #2f281e;
  --bs-secondary-color: #544837;
  --bs-border-color: var(--prod-border);
  --bs-border-radius: 0.375rem;
  --bs-border-radius-lg: 0.75rem;
  --bs-border-radius-sm: 0.25rem;

  --font-sans: "Poppins", rubik, "Open Sans", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", menlo, monaco, consolas, monospace;
}

.playful-body {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  background-color: var(--prod-bg);
  color: var(--prod-text);
  -webkit-font-smoothing: antialiased;
}

.prod-page-bg {
  background-color: var(--prod-bg);
}

/*
  Keep all page content (including sticky sidebars, e.g. Campus Q&A) in a stacking layer
  below the site header. Otherwise sticky children can paint over the navbar dropdown
  because they share Bootstrap’s default sticky z-index (1020).
*/
main.prod-page-bg {
  position: relative;
  z-index: 0;
}

/* ——— Site header ——— */
.site-header {
  background: var(--prod-white);
  border-bottom: 1px solid var(--prod-border);
  box-shadow: 0 1px 0 rgba(47, 40, 30, 0.04);
}

/* Above main (z-index: 0) and in-page stickies; below modals (Bootstrap ~1055) */
.site-header.sticky-top {
  z-index: 1040;
}

.site-nav {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding-top: 0.65rem !important;
  padding-bottom: 0.65rem !important;
}

@media (min-width: 992px) {
  .site-nav .navbar-collapse,
  .site-nav .site-nav__collapse-inner {
    overflow: visible;
  }
}

.site-brand__name {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--prod-text);
  line-height: 1.2;
}

.site-brand__tagline {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--prod-text-muted);
  margin-top: 0.125rem;
  max-width: 18rem;
  line-height: 1.35;
}

.brand-mark {
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 0.5rem;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--prod-indigo) 0%, var(--prod-purple) 55%, #5a63d4 100%);
  box-shadow: 0 2px 10px rgba(98, 55, 255, 0.22);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 28%;
  border: 2px solid rgba(255, 254, 254, 0.92);
  border-radius: 2px;
  transform: rotate(45deg);
}

.brand-mark--footer {
  width: 2rem;
  height: 2rem;
  border-radius: 0.4rem;
  box-shadow: none;
}

.site-nav__link {
  color: var(--prod-text) !important;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0.85rem !important;
  border-radius: 0.375rem;
}

.site-nav__link:hover {
  color: var(--prod-purple) !important;
  background: rgba(116, 125, 239, 0.06);
}

.site-nav .dropdown-toggle::after {
  margin-left: 0.35em;
  vertical-align: 0.12em;
}

.site-nav__dropdown {
  --bs-dropdown-min-width: 11.5rem;
  border-radius: 0.5rem;
  padding: 0.35rem 0;
  margin-top: 0.35rem !important;
  /* Above header bar so menu wins over any overlapping siblings */
  z-index: 1050;
}

.site-nav__dropdown .dropdown-item {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  color: var(--prod-text);
  border-radius: 0.25rem;
  margin: 0 0.25rem;
  width: auto;
}

.site-nav__dropdown .dropdown-item:hover,
.site-nav__dropdown .dropdown-item:focus {
  background: rgba(116, 125, 239, 0.1);
  color: var(--prod-indigo);
}

.site-nav__dropdown .dropdown-item:active {
  background: rgba(116, 125, 239, 0.18);
  color: var(--prod-indigo);
}

.site-nav__toggler {
  border-color: var(--prod-border) !important;
}

.site-role-pill {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--prod-border);
  color: var(--prod-text-muted);
  background: var(--prod-white);
  white-space: nowrap;
}

.site-role-pill--teacher {
  border-color: rgba(116, 125, 239, 0.35);
  color: #5a63d4;
  background: rgba(116, 125, 239, 0.08);
}

.site-role-pill--admin {
  background: linear-gradient(135deg, #2d1f3d 0%, #4a3068 100%);
  color: #f3e8ff;
  border: 1px solid rgba(243, 232, 255, 0.35);
}

.site-role-pill--student {
  border-color: rgba(86, 117, 146, 0.35);
  color: var(--prod-teal);
  background: rgba(86, 117, 146, 0.08);
}

.btn-site-outline {
  border: 1px solid var(--prod-border);
  color: var(--prod-text) !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.4rem 1rem;
  border-radius: 0.375rem;
  background: var(--prod-white);
}

.btn-site-outline:hover {
  border-color: var(--prod-purple);
  color: var(--prod-purple) !important;
  background: rgba(116, 125, 239, 0.05);
}

.navbar-brand.site-brand {
  margin-right: 1rem;
}

/* ——— Typography ——— */
.display-playful,
.page-title {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--prod-text);
  letter-spacing: -0.02em;
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--prod-text-muted);
  margin-bottom: 0.35rem;
}

.page-title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
}

.page-title strong {
  font-weight: 800;
}

/* ——— Landing hero: headline + two cards (problem / fix) ——— */
.home-hero {
  padding: 2.25rem 0 2.5rem;
  background: var(--prod-white);
  border-bottom: 1px solid var(--prod-border);
}

@media (min-width: 992px) {
  .home-hero {
    padding: 2.5rem 0 2.75rem;
  }
}

.home-hero__intro {
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .home-hero__intro {
    margin-bottom: 1.75rem;
  }
}

.home-hero__cards {
  margin-bottom: 1.5rem;
}

/* Outline sign-in: home hero + marketing navbar */
.btn-signin-outline {
  font-weight: 600;
  padding: 0.6rem 1.35rem;
  border-width: 2px;
}

.home-hero__eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--prod-text-muted);
  margin-bottom: 0.65rem;
}

.home-hero__title {
  font-size: clamp(1.65rem, 3.5vw + 0.45rem, 2.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--prod-text);
  margin-bottom: 0;
}

.home-hero__card {
  position: relative;
  border-radius: 0.75rem;
  padding: 1rem 1.1rem 1.1rem;
  border: 1px solid var(--prod-border);
  overflow: hidden;
}

.home-hero__card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: 0.75rem 0.75rem 0 0;
}

.home-hero__card--fog::before {
  background: linear-gradient(90deg, var(--prod-coral) 0%, #e88a75 100%);
}

.home-hero__card--clarity::before {
  background: linear-gradient(90deg, #8bc34a 0%, var(--prod-green) 100%);
}

.home-hero__card--fog {
  background: #fdfcfb;
  border-color: rgba(223, 105, 81, 0.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 6px 24px -16px rgba(47, 40, 30, 0.1);
}

.home-hero__card--clarity {
  background: #fafcf8;
  border-color: rgba(121, 185, 60, 0.25);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 6px 24px -16px rgba(95, 148, 40, 0.12);
}

.home-hero__card-kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.home-hero__card-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.home-hero__card-icon--fog {
  background: rgba(223, 105, 81, 0.14);
  color: var(--prod-coral);
  border: 1px dashed rgba(223, 105, 81, 0.35);
}

.home-hero__card-icon--clear {
  background: rgba(121, 185, 60, 0.18);
  color: #5a8f28;
  border: 1px solid rgba(121, 185, 60, 0.35);
}

.home-hero__card-title {
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--prod-text);
  line-height: 1.25;
}

.home-hero__card-lead {
  font-size: 0.90625rem;
  line-height: 1.6;
  color: var(--prod-text-muted);
  margin: 0;
}

.home-hero__card-lead strong {
  color: var(--prod-text);
  font-weight: 700;
}

.home-hero__muddle {
  list-style: none;
  padding: 0;
  margin: 0.85rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.home-hero__muddle li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--prod-text-muted);
  padding: 0.45rem 0.65rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(223, 105, 81, 0.28);
}

.home-hero__q {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: linear-gradient(145deg, #e88a75 0%, var(--prod-coral) 100%);
  box-shadow: 0 2px 6px rgba(223, 105, 81, 0.35);
}

.home-hero__card-outro {
  margin: 0.75rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(223, 105, 81, 0.12);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--prod-text-muted);
  font-style: italic;
}

.home-hero__path {
  list-style: none;
  padding: 0;
  margin: 0.85rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.home-hero__path li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--prod-text);
  padding: 0.5rem 0.65rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(121, 185, 60, 0.22);
}

.home-hero__path-dot {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--prod-green);
  box-shadow: 0 0 0 3px rgba(121, 185, 60, 0.2);
}

.home-hero__actions {
  margin-top: 0;
}

/* ——— Home: Ask the expert / Campus Q&A preview ——— */
.home-ask-expert__title {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--prod-text);
  margin-bottom: 0;
}

.home-ask-expert__lead {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 32rem;
}

.home-ask-expert__bullets li {
  font-size: 0.9375rem;
  color: var(--prod-text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
}

.home-ask-expert__bullets li:last-child {
  margin-bottom: 0;
}

.home-ask-expert__mock {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 1rem;
  background: var(--prod-white);
  border: 1px solid var(--prod-border);
  box-shadow:
    0 18px 48px -28px rgba(47, 40, 30, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  overflow: hidden;
}

@media (min-width: 992px) {
  .home-ask-expert__mock {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }
}

.home-ask-expert__mock-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: linear-gradient(180deg, #f6f8fb 0%, #eef2f8 100%);
  border-bottom: 1px solid var(--prod-border);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--prod-text);
}

.home-ask-expert__mock-dots {
  display: flex;
  gap: 0.35rem;
}

.home-ask-expert__mock-dots span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #c5cdd8;
}

.home-ask-expert__mock-dots span:nth-child(1) {
  background: #e88a75;
}

.home-ask-expert__mock-dots span:nth-child(2) {
  background: #f0c14a;
}

.home-ask-expert__mock-dots span:nth-child(3) {
  background: #79b93c;
}

.home-ask-expert__mock-title {
  flex: 1;
  text-align: center;
  font-weight: 700;
  color: var(--prod-text-muted);
}

.home-ask-expert__mock-title .bi {
  color: var(--prod-purple);
  vertical-align: -0.1em;
}

.home-ask-expert__mock-body {
  padding: 1rem 1rem 1.15rem;
  background: linear-gradient(180deg, #fafbfd 0%, var(--prod-white) 40%);
  min-height: 14rem;
}

.home-ask-expert__msg {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  align-items: flex-end;
}

.home-ask-expert__msg--in {
  justify-content: flex-start;
}

.home-ask-expert__msg--out {
  justify-content: flex-end;
}

.home-ask-expert__avatar {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #9ca8d8 0%, var(--prod-purple) 100%);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(116, 125, 239, 0.35);
}

.home-ask-expert__avatar--peer {
  background: linear-gradient(145deg, #7eb8d6 0%, var(--prod-teal) 100%);
  box-shadow: 0 2px 8px rgba(86, 117, 146, 0.3);
}

.home-ask-expert__avatar--ta {
  background: linear-gradient(145deg, #9ccd5e 0%, var(--prod-green) 100%);
  box-shadow: 0 2px 8px rgba(121, 185, 60, 0.35);
}

.home-ask-expert__bubble-col {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 85%;
}

.home-ask-expert__bubble-col--out {
  align-items: flex-end;
}

.home-ask-expert__who {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--prod-text-muted);
  opacity: 0.85;
}

.home-ask-expert__bubble-col--out .home-ask-expert__who {
  text-align: right;
}

.home-ask-expert__bubble {
  font-size: 0.8125rem;
  line-height: 1.45;
  padding: 0.55rem 0.75rem;
  border-radius: 0.85rem;
}

.home-ask-expert__bubble--in {
  background: var(--prod-white);
  border: 1px solid var(--prod-border);
  color: var(--prod-text);
  border-bottom-left-radius: 0.2rem;
  box-shadow: 0 2px 8px rgba(47, 40, 30, 0.04);
}

.home-ask-expert__bubble--out {
  background: linear-gradient(145deg, #8b92f0 0%, var(--prod-purple) 55%, var(--prod-indigo) 100%);
  color: #fff;
  border-bottom-right-radius: 0.2rem;
  box-shadow: 0 4px 14px rgba(116, 125, 239, 0.3);
}

.home-ask-expert__tag {
  display: inline-block;
  padding: 0.05rem 0.35rem;
  border-radius: 0.25rem;
  background: rgba(116, 125, 239, 0.12);
  color: var(--prod-indigo);
  font-weight: 600;
  font-size: 0.75em;
}

.home-ask-expert__bubble--out .home-ask-expert__tag {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.home-ask-expert__typing {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  margin-top: 0.25rem;
  margin-left: 2.55rem;
  width: fit-content;
  border-radius: 999px;
  background: var(--prod-section);
  border: 1px dashed rgba(116, 125, 239, 0.25);
}

.home-ask-expert__typing span:not(.home-ask-expert__typing-label) {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--prod-purple);
  opacity: 0.45;
}

@media (prefers-reduced-motion: no-preference) {
  .home-ask-expert__typing span:not(.home-ask-expert__typing-label) {
    animation: homeAskExpertTyping 1.15s ease-in-out infinite;
  }

  .home-ask-expert__typing span:not(.home-ask-expert__typing-label):nth-child(2) {
    animation-delay: 0.18s;
  }

  .home-ask-expert__typing span:not(.home-ask-expert__typing-label):nth-child(3) {
    animation-delay: 0.36s;
  }
}

@keyframes homeAskExpertTyping {
  0%,
  70%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  35% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.home-ask-expert__typing-label {
  font-size: 0.6875rem;
  color: var(--prod-text-muted);
  font-weight: 600;
  margin-left: 0.25rem;
  white-space: nowrap;
}

.prod-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.65rem 1.75rem;
  border-radius: 0.25rem;
  border: none;
  background: var(--prod-orange);
  color: var(--prod-white) !important;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(255, 153, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.prod-btn-cta:hover {
  background: #e68a00;
  color: var(--prod-white) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
}

.prod-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--prod-purple);
  text-decoration: none;
  padding: 0.65rem 1rem;
  border: none;
  background: transparent;
}

.prod-btn-ghost:hover {
  color: var(--prod-indigo);
}

.prod-btn-ghost .prod-play {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--prod-coral);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(223, 105, 81, 0.35);
}

.prod-section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--prod-text);
  text-align: center;
  margin-bottom: 3rem;
}

.prod-section-title--subhead {
  margin-bottom: 1rem;
}

.prod-section {
  padding: 4rem 0;
}

.prod-section--muted {
  background: var(--prod-section);
}

.prod-focus-card--warn {
  border-color: rgba(223, 105, 81, 0.35) !important;
  background: rgba(253, 232, 228, 0.35);
}

.prod-focus-card--ok {
  border-color: rgba(121, 185, 60, 0.4) !important;
  background: rgba(232, 245, 224, 0.35);
}

/* Marketing home — journey flow (SVG path + timeline, no cards) */
.prod-flow {
  position: relative;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(0.75rem, 2vw, 1.25rem);
  border-radius: 1.35rem;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(116, 125, 239, 0.12);
  background: linear-gradient(
    165deg,
    rgba(240, 244, 249, 0.65) 0%,
    rgba(255, 254, 254, 0.92) 45%,
    rgba(232, 245, 224, 0.12) 100%
  );
}

.prod-flow__canvas {
  position: absolute;
  inset: -35% -15%;
  background:
    radial-gradient(ellipse 50% 42% at 12% 25%, rgba(116, 125, 239, 0.22), transparent 68%),
    radial-gradient(ellipse 48% 40% at 92% 72%, rgba(121, 185, 60, 0.18), transparent 65%),
    radial-gradient(ellipse 36% 32% at 55% 8%, rgba(223, 105, 81, 0.08), transparent 62%);
  filter: blur(38px);
  opacity: 0.9;
  z-index: 0;
  pointer-events: none;
}

.prod-flow__diagram {
  position: relative;
  z-index: 1;
  margin-bottom: 0.35rem;
  width: 100%;
}

.prod-flow__svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 168;
  min-height: 5.25rem;
}

.prod-flow__ribbon {
  pointer-events: none;
}

.prod-flow__line {
  pointer-events: none;
}

.prod-flow__node-hit {
  cursor: pointer;
}

.prod-flow__node-hit:focus {
  outline: none;
}

.prod-flow__node-hit:focus-visible .prod-flow__node-dot {
  stroke: var(--prod-orange);
  stroke-width: 3.5;
}

.prod-flow__node-hit:hover .prod-flow__node-dot {
  filter: brightness(1.1) drop-shadow(0 2px 8px rgba(116, 125, 239, 0.45));
}

.prod-flow__hit {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 0.65rem;
  padding: 0.2rem 0.35rem;
  margin: 0 -0.35rem;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.prod-flow__hit:hover {
  background: rgba(116, 125, 239, 0.06);
}

.prod-flow__hit:hover .prod-flow__title {
  color: var(--prod-purple);
}

.prod-flow__hit:focus {
  outline: none;
}

.prod-flow__hit:focus-visible {
  outline: 2px solid var(--prod-purple);
  outline-offset: 2px;
}

.prod-flow__steps {
  list-style: none;
  margin: 0;
  padding: 0 0 0 2.35rem;
  position: relative;
  z-index: 1;
}

.prod-flow__steps::before {
  content: "";
  position: absolute;
  left: 0.68rem;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(
    175deg,
    #747def 0%,
    #8b92f0 42%,
    #79b93c 100%
  );
  opacity: 0.38;
}

.prod-flow__step {
  position: relative;
  padding-bottom: 1.4rem;
}

.prod-flow__step:last-child {
  padding-bottom: 0;
}

.prod-flow__marker {
  position: absolute;
  left: -2.35rem;
  top: 0.05rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #747def 0%, #6237ff 100%);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  box-shadow:
    0 0 0 2px rgba(255, 254, 254, 0.95),
    0 4px 14px rgba(116, 125, 239, 0.35);
}

.prod-flow__n {
  transform: translateY(0.5px);
}

.prod-flow__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--prod-text);
  margin: 0 0 0.25rem;
  line-height: 1.25;
}

.prod-flow__text {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--prod-text-muted);
  margin: 0;
}

.prod-flow__foot {
  position: relative;
  z-index: 1;
}

@media (min-width: 992px) {
  .prod-flow__steps {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.35rem 0.5rem;
    padding-left: 0;
    align-items: start;
  }

  .prod-flow__steps::before {
    display: none;
  }

  .prod-flow__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 0;
    min-width: 0;
  }

  .prod-flow__hit {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 0.35rem 0.2rem;
  }

  .prod-flow__body {
    width: 100%;
  }

  .prod-flow__title {
    font-size: 0.8125rem;
    margin-bottom: 0.2rem;
  }

  .prod-flow__text {
    font-size: 0.7rem;
    line-height: 1.45;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .prod-flow__diagram {
    margin-bottom: 0.15rem;
  }

  .prod-flow__svg {
    min-height: 5.75rem;
  }
}

@media (min-width: 1200px) {
  .prod-flow__title {
    font-size: 0.875rem;
  }

  .prod-flow__text {
    font-size: 0.75rem;
  }
}

@media (min-width: 576px) {
  .prod-compare-headline-br {
    display: none;
  }
}

/* Marketing home — without tracking vs with app */
.prod-section--compare {
  position: relative;
}

.prod-compare-row {
  position: relative;
  z-index: 1;
}

.prod-compare-row > [class*="col"] {
  min-width: 0;
}

.prod-compare-card {
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--prod-border);
  background: var(--prod-white);
  box-shadow: 0 10px 40px rgba(47, 40, 30, 0.06);
}

.prod-compare-card--noise {
  background: linear-gradient(
    165deg,
    rgba(253, 232, 228, 0.5) 0%,
    var(--prod-white) 48%
  );
  border-color: rgba(223, 105, 81, 0.28);
}

.prod-compare-card--noise .prod-compare-card__body {
  background-image: radial-gradient(
    circle at 90% 10%,
    rgba(223, 105, 81, 0.06) 0%,
    transparent 45%
  );
}

.prod-compare-card--trax {
  border-color: rgba(116, 125, 239, 0.35);
  background: linear-gradient(
    165deg,
    rgba(232, 234, 252, 0.55) 0%,
    var(--prod-white) 45%
  );
  box-shadow: 0 12px 44px rgba(116, 125, 239, 0.12);
}

.prod-compare-card__ribbon {
  padding: 0.65rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
}

.prod-compare-card__ribbon--warn {
  background: linear-gradient(
    90deg,
    rgba(223, 105, 81, 0.2) 0%,
    rgba(255, 153, 0, 0.12) 100%
  );
  color: #b34732;
  border-bottom: 1px solid rgba(223, 105, 81, 0.22);
}

.prod-compare-card__ribbon--ok {
  background: linear-gradient(
    90deg,
    rgba(116, 125, 239, 0.22) 0%,
    rgba(121, 185, 60, 0.15) 100%
  );
  color: #3d4280;
  border-bottom: 1px solid rgba(116, 125, 239, 0.25);
}

.prod-compare-card__body {
  padding: 1.35rem 1.35rem 1.5rem;
  flex: 1;
}

@media (min-width: 992px) {
  .prod-compare-card__body {
    padding: 1.65rem 1.75rem 1.85rem;
  }
}

.prod-compare-card__headline {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--prod-text);
  margin: 0 0 0.5rem;
  line-height: 1.35;
  word-break: normal;
  overflow-wrap: break-word;
}

.prod-compare-card__lede {
  font-size: 0.875rem;
  color: var(--prod-text-muted);
  margin: 0 0 1.15rem;
  line-height: 1.5;
}

.prod-compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.prod-compare-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--prod-text-muted);
  margin-bottom: 0.85rem;
}

.prod-compare-list__text {
  flex: 1;
  min-width: 0;
}

.prod-compare-list li:last-child {
  margin-bottom: 0;
}

.prod-compare-list__icon {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  margin-top: 0.1rem;
}

.prod-compare-card--noise .prod-compare-list__icon {
  background: rgba(223, 105, 81, 0.15);
  color: var(--prod-coral);
}

.prod-compare-list--ok .prod-compare-list__icon {
  background: rgba(121, 185, 60, 0.2);
  color: #5a8f2a;
}

.prod-compare-bridge__orbit {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 2px dashed rgba(116, 125, 239, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--prod-white);
  box-shadow: 0 4px 16px rgba(116, 125, 239, 0.1);
}

.prod-compare-bridge__arrow {
  font-size: 1.35rem;
  color: var(--prod-purple);
}

.prod-compare-bridge__label {
  letter-spacing: 0.06em;
}

.prod-compare-bridge__sublabel {
  font-size: 0.7rem;
  line-height: 1.35;
  max-width: 7rem;
}

.prod-compare-mobile-arrow {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--prod-white);
  border: 2px dashed var(--prod-border);
  color: var(--prod-purple);
  font-size: 1.15rem;
  box-shadow: 0 4px 14px rgba(47, 40, 30, 0.06);
}

.prod-feature-card {
  text-align: center;
  padding: 1.5rem 1rem;
  height: 100%;
}

.prod-feature-card__icon {
  width: 3.125rem;
  height: 3.125rem;
  margin: 0 auto 1.25rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
}

.prod-feature-card__icon--1 {
  background: var(--prod-purple);
}
.prod-feature-card__icon--2 {
  background: var(--prod-coral);
}
.prod-feature-card__icon--3 {
  background: var(--prod-teal);
}
.prod-feature-card__icon--4 {
  background: var(--prod-orange);
}

.prod-feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--prod-text);
}

.prod-feature-card p {
  font-size: 0.9375rem;
  color: var(--prod-text-muted);
  margin: 0;
}

.prod-cta-band {
  background: linear-gradient(135deg, var(--prod-purple) 0%, #8b92f0 100%);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  text-align: center;
  color: #fff;
  margin: 2rem 0;
  box-shadow: 0 12px 40px rgba(116, 125, 239, 0.25);
}

.prod-cta-band h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #fff;
}

.prod-cta-band .prod-btn-cta {
  background: var(--prod-white);
  color: var(--prod-purple) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.prod-cta-band .prod-btn-cta:hover {
  background: var(--prod-section);
  color: var(--prod-indigo) !important;
}

.prod-cta-bottom {
  text-align: center;
  padding: 4rem 1rem;
}

.prod-cta-bottom h2 {
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--prod-text);
  margin-bottom: 1rem;
}

.prod-cta-bottom p {
  color: var(--prod-text-muted);
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}

/* ——— Inner pages panel ——— */
.playful-main-wrap,
.prod-panel {
  background: var(--prod-white);
  border: 1px solid var(--prod-border);
  border-radius: 1rem;
  box-shadow: 0 8px 30px rgba(47, 40, 30, 0.06);
}

.prod-auth-wrap {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.prod-auth-wrap--wide {
  max-width: 540px;
}

/* ——— Cards & components ——— */
.playful-card {
  background: var(--prod-white);
  border: 1px solid var(--prod-border);
  border-radius: 0.75rem;
  box-shadow: 0 4px 18px rgba(47, 40, 30, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.playful-card:hover {
  box-shadow: 0 8px 28px rgba(47, 40, 30, 0.08);
}

.playful-card-accent {
  border-left: 4px solid var(--prod-purple);
}

.pillar-card {
  border: 1px solid var(--prod-border);
  border-radius: 0.75rem;
  background: var(--prod-white);
  border-top-width: 3px;
  border-top-color: var(--pillar-accent, var(--prod-purple));
  box-shadow: 0 4px 16px rgba(47, 40, 30, 0.04);
}

.pillar-card--blue {
  --pillar-accent: var(--prod-purple);
}
.pillar-card--red {
  --pillar-accent: var(--prod-coral);
}
.pillar-card--green {
  --pillar-accent: var(--prod-green);
}
.pillar-card--yellow {
  --pillar-accent: var(--prod-orange);
}

.pillar-num {
  color: var(--prod-text-muted);
}

.pillar-title {
  color: var(--prod-text);
}

.brand-dots span:nth-child(1) {
  background: var(--prod-purple);
}
.brand-dots span:nth-child(2) {
  background: var(--prod-coral);
}
.brand-dots span:nth-child(3) {
  background: var(--prod-orange);
}
.brand-dots span:nth-child(4) {
  background: var(--prod-green);
}

.brand-dots-lg span {
  width: 9px;
  height: 9px;
}

.hero-surface {
  background: var(--prod-white);
  border: 1px solid var(--prod-border);
  border-radius: 1rem;
  box-shadow: 0 6px 24px rgba(47, 40, 30, 0.06);
  padding: 2rem 1.5rem;
}

.card-muted-surface {
  border: 1px solid var(--prod-border);
  border-radius: 0.75rem;
}

.playful-card.card-muted-surface {
  background: var(--prod-section);
}

/* ——— Site footer ——— */
.site-footer__main {
  background: #0f172a;
  color: #cbd5e1;
  font-size: 0.875rem;
}

.site-footer__brand {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.site-footer__lead {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

.site-footer__heading {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.site-footer__links a {
  color: #e2e8f0;
  text-decoration: none;
  display: inline-block;
  padding: 0.2rem 0;
  font-weight: 500;
}

.site-footer__links a:hover {
  color: #fff;
}

.site-footer__links li {
  margin-bottom: 0.25rem;
}

.site-footer__muted {
  color: #94a3b8;
}

.site-footer__bar {
  background: #020617;
  color: rgba(248, 250, 252, 0.75);
  font-size: 0.8125rem;
}

.site-footer__bar-note {
  color: rgba(148, 163, 184, 0.95);
  text-align: center;
}

@media (min-width: 576px) {
  .site-footer__bar-note {
    text-align: right;
  }
}

/* ——— Buttons ——— */
.btn-playful-primary {
  background: var(--prod-orange);
  border: none;
  color: var(--prod-white) !important;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 0.25rem;
  padding: 0.5rem 1.35rem;
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.btn-playful-primary:hover,
.btn-playful-primary:focus {
  background: #e68a00;
  color: var(--prod-white) !important;
}

.btn-playful-outline {
  border-radius: 0.25rem;
  font-weight: 600;
  border: 1px solid var(--prod-border);
  color: var(--prod-purple);
  background: var(--prod-white);
}

.btn-playful-outline:hover {
  background: var(--prod-section);
  border-color: var(--prod-purple);
  color: var(--prod-indigo);
}

.text-g-blue {
  color: var(--prod-purple) !important;
}
.text-g-red {
  color: var(--prod-coral) !important;
}
.text-g-yellow {
  color: var(--prod-orange) !important;
}
.text-g-green {
  color: var(--prod-green) !important;
}

.join-code-playful {
  font-family: var(--font-mono);
  background: var(--prod-section);
  border: 1px solid var(--prod-border);
  color: var(--prod-text);
  border-radius: 0.375rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.join-code-with-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.join-code-copy-btn {
  line-height: 1;
  padding: 0.25rem 0.45rem;
  border-radius: 0.35rem;
}

.join-code-copy-btn .bi {
  font-size: 1rem;
  vertical-align: -0.1em;
}

.timer-playful {
  font-family: var(--font-mono);
  background: var(--prod-section);
  border: 1px solid var(--prod-border);
  color: var(--prod-text);
  border-radius: 0.5rem;
}

/* Activity kind pills — capsule shape + distinct semantic colours */
.pill {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.2;
  padding: 0.38rem 0.75rem;
  border-radius: 50rem;
  border: 1px solid transparent;
  vertical-align: middle;
  white-space: nowrap;
}

.pill-youtube {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}

.pill-reading {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}

.pill-dsa {
  background: #ede9fe;
  color: #5b21b6;
  border-color: #ddd6fe;
}

.pill-blog {
  background: #d1fae5;
  color: #047857;
  border-color: #a7f3d0;
}

.pill-other {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}

.pill-podcast {
  background: #ede9fe;
  color: #5b21b6;
  border-color: #ddd6fe;
}

.pill-platform {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
}

.daily-habit-check .form-check-input {
  margin-top: 0.35rem;
}

.watch-status-unknown {
  background: var(--prod-section);
  color: var(--prod-text-muted);
}
.watch-status-started,
.watch-status-progress {
  background: #e8eafd;
  color: #5a63d4;
}
.watch-status-almost {
  background: #fff4e5;
  color: #b35c00;
}
.watch-status-nearly {
  background: #fde8e4;
  color: #c54a38;
}
.watch-status-completed {
  background: #e8f5e0;
  color: #4a7c23;
}

.table-playful thead th {
  color: var(--prod-text-muted);
  border-bottom-color: var(--prod-border);
}

.youtube-embed-rounded {
  border-radius: 0.75rem;
  border: 1px solid var(--prod-border);
}

.ratio #yt-player,
.ratio #yt-player iframe {
  width: 100%;
  height: 100%;
}

.alert {
  border-radius: 0.5rem;
}

.playful-body .form-control,
.playful-body .form-select {
  border-color: var(--prod-border);
  border-radius: 0.375rem;
}

.playful-body .breadcrumb {
  font-size: 0.875rem;
}

.list-heading {
  color: var(--prod-text-muted);
}

.playful-body .table-primary {
  --bs-table-bg: rgba(116, 125, 239, 0.14);
  --bs-table-color: var(--prod-text);
}

.playful-body .table-hover .table-primary:hover {
  --bs-table-bg: rgba(116, 125, 239, 0.22);
}

/* ——— Dashboard & lists ——— */
.stat-card {
  background: var(--prod-white);
  border: 1px solid var(--prod-border);
  border-radius: var(--bs-border-radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 14px rgba(47, 40, 30, 0.05);
}

.stat-card-value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.stat-card-label {
  font-size: 0.8125rem;
  color: var(--prod-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
}

.stat-card-inline .stat-card-label {
  text-transform: none;
  font-weight: 500;
  font-size: 0.875rem;
  margin-top: 0;
}

.stat-card-inline {
  padding: 0.65rem 1rem;
}

.stat-card-inline .stat-card-value {
  font-size: 1.35rem;
}

.empty-state-card {
  background: var(--prod-section);
  border: 1px dashed var(--prod-border);
  border-radius: var(--bs-border-radius-lg);
}

.sticky-start {
  position: sticky;
  left: 0;
  z-index: 2;
  box-shadow: 4px 0 8px -4px rgba(47, 40, 30, 0.1);
}

/* ——— Chart.js canvases ——— */
.chart-surface {
  position: relative;
  height: 240px;
  width: 100%;
}

.chart-surface--tall {
  height: 300px;
}

.chart-surface--donut {
  height: 220px;
  max-width: 280px;
}

.chart-surface--bar {
  height: 260px;
}

.chart-surface--hbar {
  height: 200px;
  max-width: 420px;
}

/* ——— Student daily quote ——— */
.daily-quote-card {
  border-radius: var(--bs-border-radius-lg);
  border: 1px solid var(--prod-border);
  background: linear-gradient(135deg, rgba(116, 125, 239, 0.08) 0%, rgba(255, 153, 0, 0.06) 50%, rgba(121, 185, 60, 0.07) 100%);
  box-shadow: 0 4px 18px rgba(47, 40, 30, 0.05);
  overflow: hidden;
}

.daily-quote-card__inner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.35rem;
  border-left: 4px solid var(--prod-purple);
}

.daily-quote-card__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(116, 125, 239, 0.15);
  color: var(--prod-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.daily-quote-card__label {
  letter-spacing: 0.04em;
  color: var(--prod-text-muted);
}

.daily-quote-card__text {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--prod-text);
  margin: 0;
  font-style: italic;
  border: none;
  padding: 0;
}

.daily-quote-card__author {
  color: var(--prod-text-muted);
  font-style: normal;
}

/* Campus Q&A */
.qa-body {
  white-space: pre-wrap;
  word-break: break-word;
}

.qa-thread-indent {
  border-left: 3px solid var(--prod-border);
  padding-left: 1rem;
  margin-left: 0.25rem;
}

.qa-pill-teacher {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.qa-pill-student {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ——— Campus Q&A (/campus-qa): feed-first, professional ——— */
.qa-feed--page {
  max-width: none;
  margin-inline: 0;
}

.qa-feed-page-head__title {
  font-size: clamp(1.35rem, 2.2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--prod-text);
  margin-bottom: 0.35rem;
}

.qa-feed-label {
  letter-spacing: 0.07em;
  font-size: 0.6875rem !important;
}

@media (min-width: 992px) {
  /*
    Campus Q&A feed only: Bootstrap’s .sticky-lg-top sets z-index: 1020, same layer as the
    navbar — on desktop the “New question” column can paint over the Study menu. Override
    with a low z-index so the sidebar stays above .qa-feed-stream (see z-index: 0 below)
    but never competes with the site header.
  */
  .qa-feed--page .qa-feed-sidebar.sticky-lg-top {
    position: sticky;
    top: 5.25rem;
    z-index: 1;
  }
}

.qa-feed-ask,
.qa-feed-guest {
  border-radius: 0.65rem;
  border: 1px solid var(--prod-border);
  background: var(--prod-white);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 2px 12px rgba(47, 40, 30, 0.04);
}

.qa-feed-textarea {
  border-radius: 0.375rem;
  font-size: 0.9375rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.qa-feed-textarea:focus {
  border-color: rgba(116, 125, 239, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(116, 125, 239, 0.12);
}

.qa-feed-stream {
  position: relative;
  z-index: 0;
  border-radius: 0.65rem;
  border: 1px solid var(--prod-border);
  background: var(--prod-white);
  box-shadow: 0 2px 16px rgba(47, 40, 30, 0.05);
  overflow: hidden;
}

.qa-feed-stream__ribbon {
  height: 3px;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--prod-purple) 0%,
    var(--prod-indigo) 40%,
    var(--prod-green) 100%
  );
}

.qa-feed-stream__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--prod-border);
  background: var(--prod-section);
}

.qa-feed-stream__head-main {
  flex: 1 1 14rem;
  min-width: 0;
}

.qa-feed-stream__title {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--prod-text);
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.qa-feed-stream__head-meta {
  flex-shrink: 0;
}

.qa-feed-stream__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.375rem;
  background: var(--prod-white);
  border: 1px solid var(--prod-border);
  cursor: default;
  user-select: none;
  pointer-events: none;
}

.qa-feed-stream__stat i {
  color: var(--prod-purple);
  font-size: 1rem;
}

.qa-feed-stream__stat-line {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.qa-feed-stream__stat-num {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--prod-text);
  font-variant-numeric: tabular-nums;
}

.qa-feed-stream__stat-label {
  font-weight: 600;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--prod-text-muted);
}

.qa-feed-stream__body {
  padding: 0;
}

.qa-feed-stream__body--has-cards {
  padding-bottom: 0.25rem;
}

.qa-feed-list--in-stream {
  padding: 0;
}

.qa-feed-list--in-stream > li + li {
  border-top: 1px solid var(--prod-border);
}

.qa-feed-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  transition: background 0.15s ease;
}

@media (min-width: 768px) {
  .qa-feed-row {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
  }
}

.qa-feed-row:hover {
  background: rgba(240, 244, 249, 0.45);
}

.qa-feed-row__main {
  flex: 1 1 auto;
  min-width: 0;
}

.qa-feed-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.5rem;
}

.qa-feed-row__author {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--prod-text);
}

.qa-feed-row__role {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 0.2rem;
}

.qa-feed-row__role--teacher {
  color: #5a63d4;
  background: rgba(116, 125, 239, 0.12);
}

.qa-feed-row__role--student {
  color: var(--prod-teal);
  background: rgba(86, 117, 146, 0.1);
}

.qa-feed-row__time {
  font-size: 0.75rem;
  white-space: nowrap;
}

.qa-feed-row__excerpt {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--prod-text);
  word-break: break-word;
}

.qa-feed-row__counts {
  margin-top: 0.5rem;
}

.qa-feed-row__action {
  flex-shrink: 0;
}

.qa-feed-row__btn {
  font-weight: 600;
  min-width: min(100%, 10rem);
  border-color: rgba(116, 125, 239, 0.35);
  color: var(--prod-indigo);
}

.qa-feed-row__btn:hover {
  background: rgba(116, 125, 239, 0.08);
  border-color: var(--prod-purple);
  color: var(--prod-indigo);
}

.qa-feed-empty {
  text-align: center;
  padding: 2.25rem 1.25rem;
}

.qa-feed-empty--in-stream {
  border: none;
  background: transparent;
  margin: 0;
}

.qa-feed-empty__title {
  color: var(--prod-text);
}

/* Campus Q&A tags */
.qa-tag-filters__chips {
  max-height: 11rem;
  overflow-y: auto;
  padding-bottom: 0.15rem;
}

.qa-tag-chip {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--prod-text-muted);
  background: rgba(240, 244, 249, 0.9);
  border: 1px solid var(--prod-border);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  line-height: 1.3;
  text-align: center;
}

.qa-tag-chip:hover {
  color: var(--prod-indigo);
  border-color: rgba(116, 125, 239, 0.35);
  background: rgba(116, 125, 239, 0.08);
}

.qa-tag-chip--active {
  color: var(--prod-white);
  background: linear-gradient(145deg, var(--prod-purple) 0%, var(--prod-indigo) 100%);
  border-color: transparent;
}

.qa-tag-chip--active:hover {
  color: var(--prod-white);
  filter: brightness(1.05);
}

.qa-tag-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 0.3rem;
  text-decoration: none;
  color: #5a63d4;
  background: rgba(116, 125, 239, 0.12);
  border: 1px solid rgba(116, 125, 239, 0.2);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.qa-tag-badge:hover {
  background: rgba(116, 125, 239, 0.2);
  border-color: rgba(116, 125, 239, 0.35);
  color: var(--prod-indigo);
}

.qa-feed-row__tags {
  margin-top: 0.15rem;
}

.qa-tag-pick-grid .form-check-label {
  font-size: 0.78rem;
  line-height: 1.35;
}

/* Single back link — no path-style “Home / …” breadcrumbs */
.app-nav-back {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--prod-text-muted);
  border-radius: 0.375rem;
  padding: 0.35rem 0.5rem 0.35rem 0.25rem;
  margin-left: -0.25rem;
  transition: color 0.15s ease, background 0.15s ease;
}

.app-nav-back:hover {
  color: var(--prod-purple);
  background: rgba(116, 125, 239, 0.08);
}

.app-nav-back:focus-visible {
  outline: 2px solid rgba(116, 125, 239, 0.55);
  outline-offset: 2px;
}

.app-nav-back__icon {
  display: inline-flex;
  font-size: 1.1rem;
  line-height: 1;
}

/* Industry case studies */
.industry-case-label {
  letter-spacing: 0.08em;
}

.industry-logo {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--ind-accent-2, var(--ind-accent)) 0%, var(--ind-accent) 100%);
  box-shadow: 0 4px 14px rgba(47, 40, 30, 0.12);
}

.industry-logo--lg {
  width: 4rem;
  height: 4rem;
  border-radius: 0.9rem;
}

.industry-logo__letter {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.industry-logo--lg .industry-logo__letter {
  font-size: 1.75rem;
}

.industry-card-link {
  transition: transform 0.15s ease;
}

.industry-card-link:hover .industry-card {
  box-shadow: 0 12px 36px -20px rgba(47, 40, 30, 0.2) !important;
  border-color: rgba(116, 125, 239, 0.2) !important;
}

.industry-card-link:hover .industry-card__title {
  color: var(--prod-purple);
}

.industry-card-link:focus-visible {
  outline: 2px solid rgba(116, 125, 239, 0.55);
  outline-offset: 3px;
  border-radius: 0.5rem;
}

.industry-detail-block {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--prod-border);
}

.industry-detail-block:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.industry-kw {
  display: block;
  font-size: 0.875rem;
  color: var(--prod-text-muted);
}

.industry-aside {
  z-index: 1;
}

/* Communication practice — minimal recording tiles */
.comm-rec-grid {
  --comm-tile-thumb-h: 5.25rem;
}

@media (min-width: 576px) {
  .comm-rec-grid {
    --comm-tile-thumb-h: 6rem;
  }
}

@media (min-width: 992px) {
  .comm-rec-grid {
    --comm-tile-thumb-h: 6.5rem;
  }
}

.comm-tile {
  border: 1px solid var(--prod-border);
  border-radius: 0.65rem;
  overflow: hidden;
  background: var(--prod-white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.comm-tile:hover {
  border-color: rgba(116, 125, 239, 0.25);
  box-shadow: 0 6px 20px -12px rgba(47, 40, 30, 0.18);
}

.comm-tile__thumb {
  display: block;
  position: relative;
  height: var(--comm-tile-thumb-h);
  overflow: hidden;
  background: var(--prod-section);
}

.comm-tile__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.comm-tile:hover .comm-tile__thumb img {
  transform: scale(1.03);
}

.comm-tile__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 40, 30, 0.35);
  color: #fff;
  font-size: 1.35rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.comm-tile__thumb:hover .comm-tile__play,
.comm-tile__thumb:focus-visible .comm-tile__play {
  opacity: 1;
}

.comm-tile__thumb:focus-visible {
  outline: 2px solid rgba(116, 125, 239, 0.55);
  outline-offset: 2px;
  z-index: 1;
}

.comm-tile__body {
  padding: 0.65rem 0.75rem 0.7rem;
}

.comm-tile__title {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--prod-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.comm-tile__meta {
  font-size: 0.7rem;
  color: var(--prod-text-muted);
  margin-top: 0.35rem;
}

.comm-tile__note {
  font-size: 0.7rem;
  color: var(--prod-text-muted);
  margin-top: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.comm-tile__actions {
  margin-top: 0.5rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--prod-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}
